diff --git a/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs b/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs index f1ac276..3e2bfcb 100644 --- a/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs +++ b/FatePaths/Questionable.FatePaths/AssemblyFateDefinitionLoader.cs @@ -48,26 +48,22 @@ public static class AssemblyFateDefinitionLoader List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = new FateActionTarget + span[0] = new FateActionTarget { DataId = 18862u, Action = EAction.CheerRhythmYellow }; - num2++; - span[num2] = new FateActionTarget + span[1] = new FateActionTarget { DataId = 18860u, Action = EAction.CheerRhythmBlue }; - num2++; - span[num2] = new FateActionTarget + span[2] = new FateActionTarget { DataId = 18861u, Action = EAction.CheerRhythmGreen }; - num2++; - span[num2] = new FateActionTarget + span[3] = new FateActionTarget { DataId = 18859u, Action = EAction.CheerRhythmRed @@ -76,34 +72,34 @@ public static class AssemblyFateDefinitionLoader obj.RequiredStatusId = EStatus.FaceInTheCrowd; obj.TransformNpcDataId = 1055771u; obj.TransformNpcPosition = new Vector3(-37.369385f, 5.0000005f, -130.14423f); - num2 = 3; - List list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - span2[num] = new DialogueChoice + span2[0] = 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") }; - num++; - span2[num] = new DialogueChoice + span2[1] = 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") }; - num++; - span2[num] = new DialogueChoice + span2[2] = 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 cc5cc46..53d688c 100644 --- a/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs +++ b/GatheringPaths/Questionable.GatheringPaths/AssemblyGatheringLocationLoader.cs @@ -53,16 +53,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -77,16 +73,13 @@ public static class AssemblyGatheringLocationLoader num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index2 = 0; - ref GatheringNode reference2 = ref span4[index2]; + ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; GatheringNode obj = new GatheringNode { DataId = 30016u @@ -94,23 +87,20 @@ public static class AssemblyGatheringLocationLoader int num3 = 3; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int num4 = 0; - span5[num4] = new GatheringLocation + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new GatheringLocation { Position = new Vector3(395.0683f, -4.213107f, 235.0844f), MinimumAngle = -200, MaximumAngle = 15 }; - num4++; - span5[num4] = new GatheringLocation + span2[1] = new GatheringLocation { Position = new Vector3(404.3488f, -2.116929f, 216.968f), MinimumAngle = -125, MaximumAngle = 10 }; - num4++; - span5[num4] = new GatheringLocation + span2[2] = new GatheringLocation { Position = new Vector3(388.5088f, -1.260179f, 222.3745f), MinimumAngle = -145, @@ -120,39 +110,33 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference3 = ref span3[index]; + ref GatheringNodeGroup reference3 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref GatheringNode reference4 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; GatheringNode obj2 = new GatheringNode { DataId = 30018u }; - num4 = 3; - List list7 = new List(num4); - CollectionsMarshal.SetCount(list7, num4); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new GatheringLocation + num3 = 3; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span3 = CollectionsMarshal.AsSpan(list7); + span3[0] = new GatheringLocation { Position = new Vector3(361.0402f, -6.135924f, 266.7503f), MinimumAngle = -155, MaximumAngle = 10 }; - num3++; - span7[num3] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(368.0511f, -6.085522f, 262.3561f), MinimumAngle = -135, MaximumAngle = 10 }; - num3++; - span7[num3] = new GatheringLocation + span3[2] = new GatheringLocation { Position = new Vector3(352.1197f, -2.546567f, 262.7847f), MinimumAngle = 250, @@ -162,15 +146,12 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference5 = ref span3[index]; + ref GatheringNodeGroup reference5 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref GatheringNode reference6 = ref span8[index2]; + ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; GatheringNode obj3 = new GatheringNode { DataId = 30081u @@ -178,23 +159,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + Span span4 = CollectionsMarshal.AsSpan(list9); + span4[0] = new GatheringLocation { Position = new Vector3(404.6927f, -3.737513f, 283.6237f), MinimumAngle = 55, MaximumAngle = 255 }; - num4++; - span9[num4] = new GatheringLocation + span4[1] = new GatheringLocation { Position = new Vector3(406.1155f, -4.338434f, 271.2292f), MinimumAngle = 0, MaximumAngle = 190 }; - num4++; - span9[num4] = new GatheringLocation + span4[2] = new GatheringLocation { Position = new Vector3(394.464f, -3.775356f, 286.3456f), MinimumAngle = 105, @@ -204,39 +182,33 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list8; reference5 = gatheringNodeGroup3; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[3]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - index2 = 1; - List list10 = new List(index2); - CollectionsMarshal.SetCount(list10, index2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num2 = 0; - ref GatheringNode reference8 = ref span10[num2]; + num2 = 1; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); + ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list10)[0]; GatheringNode obj4 = new GatheringNode { DataId = 30017u }; - num4 = 3; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - num3 = 0; - span11[num3] = new GatheringLocation + num3 = 3; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span5 = CollectionsMarshal.AsSpan(list11); + span5[0] = new GatheringLocation { Position = new Vector3(443.0036f, -1.818904f, 251.6805f), MinimumAngle = 0, MaximumAngle = 145 }; - num3++; - span11[num3] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(459.7153f, -1.026285f, 263.6502f), MinimumAngle = 50, MaximumAngle = 235 }; - num3++; - span11[num3] = new GatheringLocation + span5[2] = new GatheringLocation { Position = new Vector3(468.4217f, -1.290563f, 262.4874f), MinimumAngle = 15, @@ -249,19 +221,15 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(12, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - span12[num] = "liza"; + num = 1; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + CollectionsMarshal.AsSpan(list12)[0] = "liza"; gatheringRoot2.Author = list12; num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = new QuestStep(EInteractionType.None, null, null, 154) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -273,19 +241,16 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot2.Steps = list13; - index = 4; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref GatheringNodeGroup reference9 = ref span14[num]; + num = 4; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span6 = CollectionsMarshal.AsSpan(list14); + ref GatheringNodeGroup reference9 = ref span6[0]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref GatheringNode reference10 = ref span15[index2]; + ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; GatheringNode obj5 = new GatheringNode { DataId = 30020u @@ -293,23 +258,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num4 = 0; - span16[num4] = new GatheringLocation + Span span7 = CollectionsMarshal.AsSpan(list16); + span7[0] = new GatheringLocation { Position = new Vector3(279.9662f, -9.225774f, 318.6275f), MinimumAngle = 50, MaximumAngle = 240 }; - num4++; - span16[num4] = new GatheringLocation + span7[1] = new GatheringLocation { Position = new Vector3(295.7656f, -8.987611f, 311.5129f), MinimumAngle = 0, MaximumAngle = 190 }; - num4++; - span16[num4] = new GatheringLocation + span7[2] = new GatheringLocation { Position = new Vector3(283.9807f, -11.68445f, 310.4038f), MinimumAngle = 0, @@ -319,39 +281,33 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference11 = ref span14[num]; + ref GatheringNodeGroup reference11 = ref span6[1]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - index2 = 1; - List list17 = new List(index2); - CollectionsMarshal.SetCount(list17, index2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref GatheringNode reference12 = ref span17[num2]; + num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; GatheringNode obj6 = new GatheringNode { DataId = 30019u }; - num4 = 3; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new GatheringLocation + num3 = 3; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + Span span8 = CollectionsMarshal.AsSpan(list18); + span8[0] = new GatheringLocation { Position = new Vector3(238.5998f, -22.81126f, 254.0548f), MinimumAngle = -85, MaximumAngle = 55 }; - num3++; - span18[num3] = new GatheringLocation + span8[1] = new GatheringLocation { Position = new Vector3(234.2172f, -22.83841f, 265.2955f), MinimumAngle = -160, MaximumAngle = 0 }; - num3++; - span18[num3] = new GatheringLocation + span8[2] = new GatheringLocation { Position = new Vector3(257.4443f, -20.59358f, 246.4006f), MinimumAngle = -115, @@ -361,15 +317,12 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list17; reference11 = gatheringNodeGroup6; - num++; - ref GatheringNodeGroup reference13 = ref span14[num]; + ref GatheringNodeGroup reference13 = ref span6[2]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref GatheringNode reference14 = ref span19[index2]; + ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; GatheringNode obj7 = new GatheringNode { DataId = 30082u @@ -377,23 +330,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list20); + span9[0] = new GatheringLocation { Position = new Vector3(221.3946f, -27.69197f, 317.5874f), MinimumAngle = 0, MaximumAngle = 125 }; - num4++; - span20[num4] = new GatheringLocation + span9[1] = new GatheringLocation { Position = new Vector3(209.7868f, -29.03308f, 317.4061f), MinimumAngle = 130, MaximumAngle = 295 }; - num4++; - span20[num4] = new GatheringLocation + span9[2] = new GatheringLocation { Position = new Vector3(216.8077f, -28.68546f, 320.5408f), MinimumAngle = 45, @@ -403,32 +353,27 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list19; reference13 = gatheringNodeGroup7; - num++; - ref GatheringNodeGroup reference15 = ref span14[num]; + ref GatheringNodeGroup reference15 = ref span6[3]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref GatheringNode reference16 = ref span21[num2]; + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; GatheringNode obj8 = new GatheringNode { DataId = 30021u }; - num4 = 3; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new GatheringLocation + num3 = 3; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span10 = CollectionsMarshal.AsSpan(list22); + span10[0] = new GatheringLocation { Position = new Vector3(250.3709f, -20.9966f, 296.2364f), MinimumAngle = 105, MaximumAngle = 265 }; - num3++; - span22[num3] = new GatheringLocation + span10[1] = new GatheringLocation { Position = new Vector3(247.4017f, -21.53168f, 284.9166f), MinimumAngle = -40, @@ -436,8 +381,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - num3++; - span22[num3] = new GatheringLocation + span10[2] = new GatheringLocation { Position = new Vector3(255.3057f, -17.90455f, 302.6251f), MinimumAngle = 145, @@ -453,16 +397,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "liza"; + CollectionsMarshal.AsSpan(list23)[0] = "liza"; gatheringRoot3.Author = list23; - 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) + num = 1; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.None, null, null, 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -477,16 +417,13 @@ public static class AssemblyGatheringLocationLoader num = 4; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - ref GatheringNodeGroup reference17 = ref span25[index]; + Span span11 = CollectionsMarshal.AsSpan(list25); + ref GatheringNodeGroup reference17 = ref span11[0]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref GatheringNode reference18 = ref span26[index2]; + ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; GatheringNode obj9 = new GatheringNode { DataId = 30028u @@ -494,23 +431,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - num4 = 0; - span27[num4] = new GatheringLocation + Span span12 = CollectionsMarshal.AsSpan(list27); + span12[0] = new GatheringLocation { Position = new Vector3(225.8048f, -5.26357f, -71.51706f), MinimumAngle = -60, MaximumAngle = 105 }; - num4++; - span27[num4] = new GatheringLocation + span12[1] = new GatheringLocation { Position = new Vector3(229.0866f, -7.037199f, -62.40871f), MinimumAngle = 0, MaximumAngle = 175 }; - num4++; - span27[num4] = new GatheringLocation + span12[2] = new GatheringLocation { Position = new Vector3(210.4522f, -5.798344f, -69.99769f), MinimumAngle = 180, @@ -520,39 +454,33 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list26; reference17 = gatheringNodeGroup9; - index++; - ref GatheringNodeGroup reference19 = ref span25[index]; + ref GatheringNodeGroup reference19 = ref span11[1]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - index2 = 1; - List list28 = new List(index2); - CollectionsMarshal.SetCount(list28, index2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num2 = 0; - ref GatheringNode reference20 = ref span28[num2]; + num2 = 1; + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); + ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list28)[0]; GatheringNode obj10 = new GatheringNode { DataId = 30030u }; - num4 = 3; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = new GatheringLocation + num3 = 3; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span13 = CollectionsMarshal.AsSpan(list29); + span13[0] = new GatheringLocation { Position = new Vector3(205.3417f, -7.402449f, -46.44062f), MinimumAngle = 70, MaximumAngle = 320 }; - num3++; - span29[num3] = new GatheringLocation + span13[1] = new GatheringLocation { Position = new Vector3(204.9178f, -8.416177f, -24.97287f), MinimumAngle = 50, MaximumAngle = 260 }; - num3++; - span29[num3] = new GatheringLocation + span13[2] = new GatheringLocation { Position = new Vector3(196.8121f, -7.515049f, -31.74415f), MinimumAngle = 115, @@ -562,15 +490,12 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list28; reference19 = gatheringNodeGroup10; - index++; - ref GatheringNodeGroup reference21 = ref span25[index]; + ref GatheringNodeGroup reference21 = ref span11[2]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref GatheringNode reference22 = ref span30[index2]; + ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list30)[0]; GatheringNode obj11 = new GatheringNode { DataId = 30027u @@ -578,16 +503,14 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num4 = 0; - span31[num4] = new GatheringLocation + Span span14 = CollectionsMarshal.AsSpan(list31); + span14[0] = new GatheringLocation { Position = new Vector3(263.5084f, -7.83625f, -28.76189f), MinimumAngle = 220, MaximumAngle = 360 }; - num4++; - span31[num4] = new GatheringLocation + span14[1] = new GatheringLocation { Position = new Vector3(275.0262f, -6.339698f, -42.46669f), MinimumAngle = 30, @@ -595,8 +518,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.9f, MaximumDistance = 3f }; - num4++; - span31[num4] = new GatheringLocation + span14[2] = new GatheringLocation { Position = new Vector3(248.5661f, -8.912354f, -5.168106f), MinimumAngle = 0, @@ -606,25 +528,21 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list30; reference21 = gatheringNodeGroup11; - index++; - ref GatheringNodeGroup reference23 = ref span25[index]; + ref GatheringNodeGroup reference23 = ref span11[3]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - index2 = 1; - List list32 = new List(index2); - CollectionsMarshal.SetCount(list32, index2); - Span span32 = CollectionsMarshal.AsSpan(list32); - num2 = 0; - ref GatheringNode reference24 = ref span32[num2]; + num2 = 1; + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list32)[0]; GatheringNode obj12 = new GatheringNode { DataId = 30029u }; - num4 = 3; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = new GatheringLocation + num3 = 3; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + Span span15 = CollectionsMarshal.AsSpan(list33); + span15[0] = new GatheringLocation { Position = new Vector3(278.9887f, -6.181031f, -100.3401f), MinimumAngle = 0, @@ -632,15 +550,13 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.8f, MaximumDistance = 3f }; - num3++; - span33[num3] = new GatheringLocation + span15[1] = new GatheringLocation { Position = new Vector3(281.2963f, -6.572734f, -72.80408f), MinimumAngle = -5, MaximumAngle = 165 }; - num3++; - span33[num3] = new GatheringLocation + span15[2] = new GatheringLocation { Position = new Vector3(282.8807f, -5.350755f, -91.96065f), MinimumAngle = -30, @@ -655,19 +571,15 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list25; AddLocation(16, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - span34[num] = "liza"; + num = 1; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + CollectionsMarshal.AsSpan(list34)[0] = "liza"; gatheringRoot4.Author = list34; num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = new QuestStep(EInteractionType.None, null, null, 148) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.None, null, null, 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -679,19 +591,16 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot4.Steps = list35; - index = 4; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref GatheringNodeGroup reference25 = ref span36[num]; + num = 4; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span16 = CollectionsMarshal.AsSpan(list36); + ref GatheringNodeGroup reference25 = ref span16[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - ref GatheringNode reference26 = ref span37[index2]; + ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; GatheringNode obj13 = new GatheringNode { DataId = 30034u @@ -699,23 +608,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num4 = 0; - span38[num4] = new GatheringLocation + Span span17 = CollectionsMarshal.AsSpan(list38); + span17[0] = new GatheringLocation { Position = new Vector3(-105.3941f, 2.85339f, -121.8738f), MinimumAngle = -20, MaximumAngle = 165 }; - num4++; - span38[num4] = new GatheringLocation + span17[1] = new GatheringLocation { Position = new Vector3(-97.9409f, 3.064394f, -126.5676f), MinimumAngle = 115, MaximumAngle = 340 }; - num4++; - span38[num4] = new GatheringLocation + span17[2] = new GatheringLocation { Position = new Vector3(-125.5794f, 5.63143f, -133.3981f) }; @@ -723,37 +629,31 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list37; reference25 = gatheringNodeGroup13; - num++; - ref GatheringNodeGroup reference27 = ref span36[num]; + ref GatheringNodeGroup reference27 = ref span16[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - index2 = 1; - List list39 = new List(index2); - CollectionsMarshal.SetCount(list39, index2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref GatheringNode reference28 = ref span39[num2]; + num2 = 1; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list39)[0]; GatheringNode obj14 = new GatheringNode { DataId = 30035u }; - num4 = 3; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - span40[num3] = new GatheringLocation + num3 = 3; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span18 = CollectionsMarshal.AsSpan(list40); + span18[0] = new GatheringLocation { Position = new Vector3(-154.1009f, 4.5624f, -131.7312f), MinimumAngle = -270, MaximumAngle = 40 }; - num3++; - span40[num3] = new GatheringLocation + span18[1] = new GatheringLocation { Position = new Vector3(-128.832f, 9.71995f, -145.739f) }; - num3++; - span40[num3] = new GatheringLocation + span18[2] = new GatheringLocation { Position = new Vector3(-117.9702f, 9.59642f, -173.7937f), MinimumAngle = -155, @@ -763,15 +663,12 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list39; reference27 = gatheringNodeGroup14; - num++; - ref GatheringNodeGroup reference29 = ref span36[num]; + ref GatheringNodeGroup reference29 = ref span16[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref GatheringNode reference30 = ref span41[index2]; + ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; GatheringNode obj15 = new GatheringNode { DataId = 30036u @@ -779,23 +676,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheringLocation + Span span19 = CollectionsMarshal.AsSpan(list42); + span19[0] = new GatheringLocation { Position = new Vector3(-182.3201f, 3.129771f, -91.56992f), MinimumAngle = -190, MaximumAngle = 65 }; - num4++; - span42[num4] = new GatheringLocation + span19[1] = new GatheringLocation { Position = new Vector3(-177.8435f, 2.23569f, -67.93159f), MinimumAngle = -160, MaximumAngle = 30 }; - num4++; - span42[num4] = new GatheringLocation + span19[2] = new GatheringLocation { Position = new Vector3(-163.9663f, 1.91069f, -52.19678f), MinimumAngle = 135, @@ -805,37 +699,31 @@ public static class AssemblyGatheringLocationLoader reference30 = obj15; gatheringNodeGroup15.Nodes = list41; reference29 = gatheringNodeGroup15; - num++; - ref GatheringNodeGroup reference31 = ref span36[num]; + ref GatheringNodeGroup reference31 = ref span16[3]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - index2 = 1; - List list43 = new List(index2); - CollectionsMarshal.SetCount(list43, index2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num2 = 0; - ref GatheringNode reference32 = ref span43[num2]; + num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list43)[0]; GatheringNode obj16 = new GatheringNode { DataId = 30320u }; - num4 = 3; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = new GatheringLocation + num3 = 3; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + Span span20 = CollectionsMarshal.AsSpan(list44); + span20[0] = new GatheringLocation { Position = new Vector3(-131.0494f, 0.2034574f, -82.93172f), MinimumAngle = -155, MaximumAngle = 45 }; - num3++; - span44[num3] = new GatheringLocation + span20[1] = new GatheringLocation { Position = new Vector3(-121.5437f, -1.821766f, -74.98891f) }; - num3++; - span44[num3] = new GatheringLocation + span20[2] = new GatheringLocation { Position = new Vector3(-114.8504f, -1.186134f, -88.04849f), MinimumAngle = -210, @@ -851,16 +739,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; gatheringRoot5.Author = list45; - 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) + num = 1; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.None, null, null, 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -875,16 +759,13 @@ public static class AssemblyGatheringLocationLoader num = 4; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - ref GatheringNodeGroup reference33 = ref span47[index]; + Span span21 = CollectionsMarshal.AsSpan(list47); + ref GatheringNodeGroup reference33 = ref span21[0]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - ref GatheringNode reference34 = ref span48[index2]; + ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list48)[0]; GatheringNode obj17 = new GatheringNode { DataId = 30098u @@ -892,23 +773,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num4 = 0; - span49[num4] = new GatheringLocation + Span span22 = CollectionsMarshal.AsSpan(list49); + span22[0] = new GatheringLocation { Position = new Vector3(300.7484f, -15.4861f, 153.9048f), MinimumAngle = 175, MaximumAngle = 360 }; - num4++; - span49[num4] = new GatheringLocation + span22[1] = new GatheringLocation { Position = new Vector3(297.8418f, -20.09089f, 166.8599f), MinimumAngle = 95, MaximumAngle = 265 }; - num4++; - span49[num4] = new GatheringLocation + span22[2] = new GatheringLocation { Position = new Vector3(312.9494f, -14.81517f, 145.3793f), MinimumAngle = 110, @@ -918,39 +796,33 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list48; reference33 = gatheringNodeGroup17; - index++; - ref GatheringNodeGroup reference35 = ref span47[index]; + ref GatheringNodeGroup reference35 = ref span21[1]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - index2 = 1; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref GatheringNode reference36 = ref span50[num2]; + num2 = 1; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list50)[0]; GatheringNode obj18 = new GatheringNode { DataId = 30099u }; - num4 = 3; - List list51 = new List(num4); - CollectionsMarshal.SetCount(list51, num4); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - span51[num3] = new GatheringLocation + num3 = 3; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + Span span23 = CollectionsMarshal.AsSpan(list51); + span23[0] = new GatheringLocation { Position = new Vector3(317.6309f, 0.3300658f, 98.40825f), MinimumAngle = 15, MaximumAngle = 190 }; - num3++; - span51[num3] = new GatheringLocation + span23[1] = new GatheringLocation { Position = new Vector3(300.7116f, -9.200176f, 128.1148f), MinimumAngle = 20, MaximumAngle = 205 }; - num3++; - span51[num3] = new GatheringLocation + span23[2] = new GatheringLocation { Position = new Vector3(313.6669f, -5.031699f, 119.2471f), MinimumAngle = 0, @@ -960,15 +832,12 @@ public static class AssemblyGatheringLocationLoader reference36 = obj18; gatheringNodeGroup18.Nodes = list50; reference35 = gatheringNodeGroup18; - index++; - ref GatheringNodeGroup reference37 = ref span47[index]; + ref GatheringNodeGroup reference37 = ref span21[2]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - ref GatheringNode reference38 = ref span52[index2]; + ref GatheringNode reference38 = ref CollectionsMarshal.AsSpan(list52)[0]; GatheringNode obj19 = new GatheringNode { DataId = 30100u @@ -976,23 +845,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - num4 = 0; - span53[num4] = new GatheringLocation + Span span24 = CollectionsMarshal.AsSpan(list53); + span24[0] = new GatheringLocation { Position = new Vector3(222.8638f, -1.971927f, 82.03091f), MinimumAngle = -115, MaximumAngle = 25 }; - num4++; - span53[num4] = new GatheringLocation + span24[1] = new GatheringLocation { Position = new Vector3(274.0746f, 6.008316f, 65.73824f), MinimumAngle = -115, MaximumAngle = 75 }; - num4++; - span53[num4] = new GatheringLocation + span24[2] = new GatheringLocation { Position = new Vector3(252.9545f, 5.45654f, 50.69089f), MinimumAngle = 225, @@ -1002,39 +868,33 @@ public static class AssemblyGatheringLocationLoader reference38 = obj19; gatheringNodeGroup19.Nodes = list52; reference37 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference39 = ref span47[index]; + ref GatheringNodeGroup reference39 = ref span21[3]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - index2 = 1; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num2 = 0; - ref GatheringNode reference40 = ref span54[num2]; + num2 = 1; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + ref GatheringNode reference40 = ref CollectionsMarshal.AsSpan(list54)[0]; GatheringNode obj20 = new GatheringNode { DataId = 30101u }; - num4 = 3; - List list55 = new List(num4); - CollectionsMarshal.SetCount(list55, num4); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = new GatheringLocation + num3 = 3; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span25 = CollectionsMarshal.AsSpan(list55); + span25[0] = new GatheringLocation { Position = new Vector3(254.374f, -17.77545f, 174.2901f), MinimumAngle = 115, MaximumAngle = 265 }; - num3++; - span55[num3] = new GatheringLocation + span25[1] = new GatheringLocation { Position = new Vector3(240.5732f, -17.28173f, 176.6604f), MinimumAngle = 80, MaximumAngle = 255 }; - num3++; - span55[num3] = new GatheringLocation + span25[2] = new GatheringLocation { Position = new Vector3(256.3937f, -16.40165f, 164.8165f), MinimumAngle = 90, @@ -1054,16 +914,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; @@ -1071,16 +927,13 @@ public static class AssemblyGatheringLocationLoader num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index2 = 0; - ref GatheringNode reference2 = ref span4[index2]; + ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; GatheringNode obj = new GatheringNode { DataId = 30414u @@ -1088,23 +941,20 @@ public static class AssemblyGatheringLocationLoader int num3 = 3; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int num4 = 0; - span5[num4] = new GatheringLocation + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new GatheringLocation { Position = new Vector3(249.8601f, 55.12077f, 178.5377f), MinimumAngle = 125, MaximumAngle = 270 }; - num4++; - span5[num4] = new GatheringLocation + span2[1] = new GatheringLocation { Position = new Vector3(253.9519f, 55.95691f, 181.4238f), MinimumAngle = 180, MaximumAngle = 285 }; - num4++; - span5[num4] = new GatheringLocation + span2[2] = new GatheringLocation { Position = new Vector3(244.4912f, 53.49751f, 169.9265f), MinimumAngle = 150, @@ -1114,39 +964,33 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference3 = ref span3[index]; + ref GatheringNodeGroup reference3 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref GatheringNode reference4 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; GatheringNode obj2 = new GatheringNode { DataId = 30413u }; - num4 = 3; - List list7 = new List(num4); - CollectionsMarshal.SetCount(list7, num4); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new GatheringLocation + num3 = 3; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span3 = CollectionsMarshal.AsSpan(list7); + span3[0] = new GatheringLocation { Position = new Vector3(292.9385f, 59.79165f, 187.855f), MinimumAngle = 45, MaximumAngle = 165 }; - num3++; - span7[num3] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(300.3293f, 63.1124f, 175.0616f), MinimumAngle = 65, MaximumAngle = 155 }; - num3++; - span7[num3] = new GatheringLocation + span3[2] = new GatheringLocation { Position = new Vector3(296.3942f, 61.46834f, 182.3181f), MinimumAngle = 70, @@ -1156,15 +1000,12 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference5 = ref span3[index]; + ref GatheringNodeGroup reference5 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref GatheringNode reference6 = ref span8[index2]; + ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; GatheringNode obj3 = new GatheringNode { DataId = 30415u @@ -1172,23 +1013,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + Span span4 = CollectionsMarshal.AsSpan(list9); + span4[0] = new GatheringLocation { Position = new Vector3(262.1395f, 58.70948f, 239.3097f), MinimumAngle = 105, MaximumAngle = 210 }; - num4++; - span9[num4] = new GatheringLocation + span4[1] = new GatheringLocation { Position = new Vector3(284.4424f, 59.78878f, 222.5899f), MinimumAngle = 65, MaximumAngle = 240 }; - num4++; - span9[num4] = new GatheringLocation + span4[2] = new GatheringLocation { Position = new Vector3(278.6144f, 59.63044f, 231.8303f), MinimumAngle = 95, @@ -1198,39 +1036,33 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list8; reference5 = gatheringNodeGroup3; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[3]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - index2 = 1; - List list10 = new List(index2); - CollectionsMarshal.SetCount(list10, index2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num2 = 0; - ref GatheringNode reference8 = ref span10[num2]; + num2 = 1; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); + ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list10)[0]; GatheringNode obj4 = new GatheringNode { DataId = 30416u }; - num4 = 3; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - num3 = 0; - span11[num3] = new GatheringLocation + num3 = 3; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span5 = CollectionsMarshal.AsSpan(list11); + span5[0] = new GatheringLocation { Position = new Vector3(222.244f, 58.86799f, 244.9212f), MinimumAngle = 135, MaximumAngle = 275 }; - num3++; - span11[num3] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(212.3073f, 58.06055f, 245.9091f), MinimumAngle = 80, MaximumAngle = 220 }; - num3++; - span11[num3] = new GatheringLocation + span5[2] = new GatheringLocation { Position = new Vector3(235.9484f, 58.30469f, 249.0489f), MinimumAngle = 80, @@ -1243,36 +1075,29 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(154, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - span12[num] = "liza"; + num = 1; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + CollectionsMarshal.AsSpan(list12)[0] = "liza"; gatheringRoot2.Author = list12; num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = new QuestStep(EInteractionType.None, null, null, 141) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.None, null, null, 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; gatheringRoot2.Steps = list13; - index = 4; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref GatheringNodeGroup reference9 = ref span14[num]; + num = 4; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span6 = CollectionsMarshal.AsSpan(list14); + ref GatheringNodeGroup reference9 = ref span6[0]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref GatheringNode reference10 = ref span15[index2]; + ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; GatheringNode obj5 = new GatheringNode { DataId = 30425u @@ -1280,23 +1105,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num4 = 0; - span16[num4] = new GatheringLocation + Span span7 = CollectionsMarshal.AsSpan(list16); + span7[0] = new GatheringLocation { Position = new Vector3(118.6389f, 7.583679f, 262.4399f), MinimumAngle = 60, MaximumAngle = 170 }; - num4++; - span16[num4] = new GatheringLocation + span7[1] = new GatheringLocation { Position = new Vector3(113.4342f, 4.562373f, 271.4816f), MinimumAngle = 80, MaximumAngle = 190 }; - num4++; - span16[num4] = new GatheringLocation + span7[2] = new GatheringLocation { Position = new Vector3(116.9106f, 2.964557f, 285.8209f), MinimumAngle = 0, @@ -1306,39 +1128,33 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference11 = ref span14[num]; + ref GatheringNodeGroup reference11 = ref span6[1]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - index2 = 1; - List list17 = new List(index2); - CollectionsMarshal.SetCount(list17, index2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref GatheringNode reference12 = ref span17[num2]; + num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; GatheringNode obj6 = new GatheringNode { DataId = 30427u }; - num4 = 3; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new GatheringLocation + num3 = 3; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + Span span8 = CollectionsMarshal.AsSpan(list18); + span8[0] = new GatheringLocation { Position = new Vector3(127.2449f, 15.54889f, 240.1923f), MinimumAngle = 15, MaximumAngle = 115 }; - num3++; - span18[num3] = new GatheringLocation + span8[1] = new GatheringLocation { Position = new Vector3(122.0915f, 14.071f, 225.1131f), MinimumAngle = 0, MaximumAngle = 110 }; - num3++; - span18[num3] = new GatheringLocation + span8[2] = new GatheringLocation { Position = new Vector3(120.8954f, 15.9651f, 213.8515f), MinimumAngle = 30, @@ -1348,15 +1164,12 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list17; reference11 = gatheringNodeGroup6; - num++; - ref GatheringNodeGroup reference13 = ref span14[num]; + ref GatheringNodeGroup reference13 = ref span6[2]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref GatheringNode reference14 = ref span19[index2]; + ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; GatheringNode obj7 = new GatheringNode { DataId = 30426u @@ -1364,23 +1177,20 @@ public static class AssemblyGatheringLocationLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list20); + span9[0] = new GatheringLocation { Position = new Vector3(148.7842f, 16.44447f, 292.8037f), MinimumAngle = 30, MaximumAngle = 135 }; - num4++; - span20[num4] = new GatheringLocation + span9[1] = new GatheringLocation { Position = new Vector3(144.9166f, 18.86193f, 264.833f), MinimumAngle = 15, MaximumAngle = 95 }; - num4++; - span20[num4] = new GatheringLocation + span9[2] = new GatheringLocation { Position = new Vector3(152.6806f, 16.58945f, 300.3315f), MinimumAngle = 0, @@ -1390,39 +1200,33 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list19; reference13 = gatheringNodeGroup7; - num++; - ref GatheringNodeGroup reference15 = ref span14[num]; + ref GatheringNodeGroup reference15 = ref span6[3]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref GatheringNode reference16 = ref span21[num2]; + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; GatheringNode obj8 = new GatheringNode { DataId = 30428u }; - num4 = 3; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new GatheringLocation + num3 = 3; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span10 = CollectionsMarshal.AsSpan(list22); + span10[0] = new GatheringLocation { Position = new Vector3(137.6659f, 6.65416f, 311.1226f), MinimumAngle = 15, MaximumAngle = 135 }; - num3++; - span22[num3] = new GatheringLocation + span10[1] = new GatheringLocation { Position = new Vector3(141.0331f, 5.844177f, 325.063f), MinimumAngle = 0, MaximumAngle = 150 }; - num3++; - span22[num3] = new GatheringLocation + span10[2] = new GatheringLocation { Position = new Vector3(130.6749f, 5.736229f, 300.4703f), MinimumAngle = -5, @@ -1438,16 +1242,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "Censored"; + CollectionsMarshal.AsSpan(list23)[0] = "Censored"; gatheringRoot3.Author = list23; - 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) + num = 1; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.None, null, null, 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -1455,25 +1255,20 @@ public static class AssemblyGatheringLocationLoader num = 2; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = 2001424u; - index++; - span25[index] = 2001425u; + Span span11 = CollectionsMarshal.AsSpan(list25); + span11[0] = 2001424u; + span11[1] = 2001425u; gatheringRoot3.ExtraQuestItems = list25; - index = 4; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref GatheringNodeGroup reference17 = ref span26[num]; + num = 4; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span12 = CollectionsMarshal.AsSpan(list26); + ref GatheringNodeGroup reference17 = ref span12[0]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref GatheringNode reference18 = ref span27[index2]; + ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list27)[0]; GatheringNode obj9 = new GatheringNode { DataId = 31046u @@ -1481,14 +1276,12 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num4 = 0; - span28[num4] = new GatheringLocation + Span span13 = CollectionsMarshal.AsSpan(list28); + span13[0] = new GatheringLocation { Position = new Vector3(268.635f, 299.8158f, -114.4274f) }; - num4++; - span28[num4] = new GatheringLocation + span13[1] = new GatheringLocation { Position = new Vector3(284.4186f, 309.0771f, -128.535f) }; @@ -1496,30 +1289,25 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list27; reference17 = gatheringNodeGroup9; - num++; - ref GatheringNodeGroup reference19 = ref span26[num]; + ref GatheringNodeGroup reference19 = ref span12[1]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - index2 = 1; - List list29 = new List(index2); - CollectionsMarshal.SetCount(list29, index2); - Span span29 = CollectionsMarshal.AsSpan(list29); - num2 = 0; - ref GatheringNode reference20 = ref span29[num2]; + num2 = 1; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list29)[0]; GatheringNode obj10 = new GatheringNode { DataId = 31045u }; - num4 = 2; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - Span span30 = CollectionsMarshal.AsSpan(list30); - num3 = 0; - span30[num3] = new GatheringLocation + num3 = 2; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + Span span14 = CollectionsMarshal.AsSpan(list30); + span14[0] = new GatheringLocation { Position = new Vector3(198.4182f, 288.6254f, -93.58918f) }; - num3++; - span30[num3] = new GatheringLocation + span14[1] = new GatheringLocation { Position = new Vector3(206.082f, 279.446f, -57.03315f) }; @@ -1527,15 +1315,12 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list29; reference19 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference21 = ref span26[num]; + ref GatheringNodeGroup reference21 = ref span12[2]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - ref GatheringNode reference22 = ref span31[index2]; + ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; GatheringNode obj11 = new GatheringNode { DataId = 31047u @@ -1543,14 +1328,12 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num4 = 0; - span32[num4] = new GatheringLocation + Span span15 = CollectionsMarshal.AsSpan(list32); + span15[0] = new GatheringLocation { Position = new Vector3(270.5842f, 291.5777f, -57.16897f) }; - num4++; - span32[num4] = new GatheringLocation + span15[1] = new GatheringLocation { Position = new Vector3(242.9548f, 283.3405f, -56.95627f) }; @@ -1558,30 +1341,25 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list31; reference21 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference23 = ref span26[num]; + ref GatheringNodeGroup reference23 = ref span12[3]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - index2 = 1; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num2 = 0; - ref GatheringNode reference24 = ref span33[num2]; + num2 = 1; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list33)[0]; GatheringNode obj12 = new GatheringNode { DataId = 31048u }; - num4 = 2; - List list34 = new List(num4); - CollectionsMarshal.SetCount(list34, num4); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - span34[num3] = new GatheringLocation + num3 = 2; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + Span span16 = CollectionsMarshal.AsSpan(list34); + span16[0] = new GatheringLocation { Position = new Vector3(297.2305f, 305.3402f, -78.08051f) }; - num3++; - span34[num3] = new GatheringLocation + span16[1] = new GatheringLocation { Position = new Vector3(310.8341f, 307.6252f, -72.68935f) }; @@ -1595,16 +1373,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "Censored"; + CollectionsMarshal.AsSpan(list35)[0] = "Censored"; gatheringRoot4.Author = list35; - 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) + num = 1; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -1612,25 +1386,20 @@ public static class AssemblyGatheringLocationLoader num = 2; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = 2001391u; - index++; - span37[index] = 2001392u; + Span span17 = CollectionsMarshal.AsSpan(list37); + span17[0] = 2001391u; + span17[1] = 2001392u; gatheringRoot4.ExtraQuestItems = list37; - index = 4; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref GatheringNodeGroup reference25 = ref span38[num]; + num = 4; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span18 = CollectionsMarshal.AsSpan(list38); + ref GatheringNodeGroup reference25 = ref span18[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - ref GatheringNode reference26 = ref span39[index2]; + ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list39)[0]; GatheringNode obj13 = new GatheringNode { DataId = 31049u @@ -1638,16 +1407,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num4 = 0; - span40[num4] = new GatheringLocation + Span span19 = CollectionsMarshal.AsSpan(list40); + span19[0] = new GatheringLocation { Position = new Vector3(232.6686f, -2.063462f, -13.87066f), MinimumAngle = -75, MaximumAngle = 85 }; - num4++; - span40[num4] = new GatheringLocation + span19[1] = new GatheringLocation { Position = new Vector3(208.5002f, -1.21151f, -8.481951f), MinimumAngle = -105, @@ -1657,32 +1424,27 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list39; reference25 = gatheringNodeGroup13; - num++; - ref GatheringNodeGroup reference27 = ref span38[num]; + ref GatheringNodeGroup reference27 = ref span18[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - index2 = 1; - List list41 = new List(index2); - CollectionsMarshal.SetCount(list41, index2); - Span span41 = CollectionsMarshal.AsSpan(list41); - num2 = 0; - ref GatheringNode reference28 = ref span41[num2]; + num2 = 1; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list41)[0]; GatheringNode obj14 = new GatheringNode { DataId = 31051u }; - num4 = 2; - List list42 = new List(num4); - CollectionsMarshal.SetCount(list42, num4); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span42[num3] = new GatheringLocation + num3 = 2; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span20 = CollectionsMarshal.AsSpan(list42); + span20[0] = new GatheringLocation { Position = new Vector3(174.384f, -0.4081409f, 40.32799f), MinimumAngle = -155, MaximumAngle = 50 }; - num3++; - span42[num3] = new GatheringLocation + span20[1] = new GatheringLocation { Position = new Vector3(180.6999f, 0.5284532f, 43.46334f), MinimumAngle = -350, @@ -1692,15 +1454,12 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list41; reference27 = gatheringNodeGroup14; - num++; - ref GatheringNodeGroup reference29 = ref span38[num]; + ref GatheringNodeGroup reference29 = ref span18[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref GatheringNode reference30 = ref span43[index2]; + ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list43)[0]; GatheringNode obj15 = new GatheringNode { DataId = 31052u @@ -1708,16 +1467,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span44 = CollectionsMarshal.AsSpan(list44); - num4 = 0; - span44[num4] = new GatheringLocation + Span span21 = CollectionsMarshal.AsSpan(list44); + span21[0] = new GatheringLocation { Position = new Vector3(239.2585f, -10.81729f, 85.37144f), MinimumAngle = -260, MaximumAngle = -70 }; - num4++; - span44[num4] = new GatheringLocation + span21[1] = new GatheringLocation { Position = new Vector3(219.6392f, -8.915615f, 78.84674f), MinimumAngle = -255, @@ -1727,32 +1484,27 @@ public static class AssemblyGatheringLocationLoader reference30 = obj15; gatheringNodeGroup15.Nodes = list43; reference29 = gatheringNodeGroup15; - num++; - ref GatheringNodeGroup reference31 = ref span38[num]; + ref GatheringNodeGroup reference31 = ref span18[3]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - index2 = 1; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref GatheringNode reference32 = ref span45[num2]; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list45)[0]; GatheringNode obj16 = new GatheringNode { DataId = 31050u }; - num4 = 2; - List list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span46 = CollectionsMarshal.AsSpan(list46); - num3 = 0; - span46[num3] = new GatheringLocation + num3 = 2; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + Span span22 = CollectionsMarshal.AsSpan(list46); + span22[0] = new GatheringLocation { Position = new Vector3(172.7773f, -0.5520306f, -24.73335f), MinimumAngle = -65, MaximumAngle = 145 }; - num3++; - span46[num3] = new GatheringLocation + span22[1] = new GatheringLocation { Position = new Vector3(158.3542f, 0.1226652f, -17.62734f), MinimumAngle = -180, @@ -1772,16 +1524,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Censored"; + CollectionsMarshal.AsSpan(list)[0] = "Censored"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -1796,25 +1544,20 @@ public static class AssemblyGatheringLocationLoader num = 2; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - span3[index] = 2001415u; - index++; - span3[index] = 2001416u; + Span span = CollectionsMarshal.AsSpan(list3); + span[0] = 2001415u; + span[1] = 2001416u; gatheringRoot.ExtraQuestItems = list3; - index = 4; - List list4 = new List(index); - CollectionsMarshal.SetCount(list4, index); - Span span4 = CollectionsMarshal.AsSpan(list4); - num = 0; - ref GatheringNodeGroup reference = ref span4[num]; + num = 4; + List list4 = new List(num); + CollectionsMarshal.SetCount(list4, num); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNodeGroup reference = ref span2[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index2 = 0; - ref GatheringNode reference2 = ref span5[index2]; + ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list5)[0]; GatheringNode obj = new GatheringNode { DataId = 30452u @@ -1822,16 +1565,14 @@ public static class AssemblyGatheringLocationLoader int num3 = 2; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int num4 = 0; - span6[num4] = new GatheringLocation + Span span3 = CollectionsMarshal.AsSpan(list6); + span3[0] = new GatheringLocation { Position = new Vector3(-333.5713f, -15.49291f, -326.9827f), MinimumAngle = -250, MaximumAngle = -115 }; - num4++; - span6[num4] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(-353.6776f, -15.7935f, -321.7334f), MinimumAngle = -190, @@ -1841,25 +1582,21 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list5; reference = gatheringNodeGroup; - num++; - ref GatheringNodeGroup reference3 = ref span4[num]; + ref GatheringNodeGroup reference3 = ref span2[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - index2 = 1; - List list7 = new List(index2); - CollectionsMarshal.SetCount(list7, index2); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference4 = ref span7[num2]; + num2 = 1; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list7)[0]; GatheringNode obj2 = new GatheringNode { DataId = 30449u }; - num4 = 2; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - num3 = 0; - span8[num3] = new GatheringLocation + num3 = 2; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span4 = CollectionsMarshal.AsSpan(list8); + span4[0] = new GatheringLocation { Position = new Vector3(-308.8034f, -13.83647f, -329.9288f), MinimumAngle = -55, @@ -1867,8 +1604,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.4f, MaximumDistance = 3f }; - num3++; - span8[num3] = new GatheringLocation + span4[1] = new GatheringLocation { Position = new Vector3(-290.5811f, -11.39756f, -323.1493f), MinimumAngle = -65, @@ -1878,15 +1614,12 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list7; reference3 = gatheringNodeGroup2; - num++; - ref GatheringNodeGroup reference5 = ref span4[num]; + ref GatheringNodeGroup reference5 = ref span2[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - ref GatheringNode reference6 = ref span9[index2]; + ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; GatheringNode obj3 = new GatheringNode { DataId = 30450u @@ -1894,16 +1627,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span10 = CollectionsMarshal.AsSpan(list10); - num4 = 0; - span10[num4] = new GatheringLocation + Span span5 = CollectionsMarshal.AsSpan(list10); + span5[0] = new GatheringLocation { Position = new Vector3(-281.3932f, -8.5558f, -326.8167f), MinimumAngle = -135, MaximumAngle = 5 }; - num4++; - span10[num4] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(-266.9396f, -6.345774f, -325.4775f), MinimumAngle = 135, @@ -1915,32 +1646,27 @@ public static class AssemblyGatheringLocationLoader reference6 = obj3; gatheringNodeGroup3.Nodes = list9; reference5 = gatheringNodeGroup3; - num++; - ref GatheringNodeGroup reference7 = ref span4[num]; + ref GatheringNodeGroup reference7 = ref span2[3]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - index2 = 1; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref GatheringNode reference8 = ref span11[num2]; + num2 = 1; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; GatheringNode obj4 = new GatheringNode { DataId = 30451u }; - num4 = 2; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = new GatheringLocation + num3 = 2; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + Span span6 = CollectionsMarshal.AsSpan(list12); + span6[0] = new GatheringLocation { Position = new Vector3(-254.5719f, -5.395673f, -317.087f), MinimumAngle = 180, MaximumAngle = 275 }; - num3++; - span12[num3] = new GatheringLocation + span6[1] = new GatheringLocation { Position = new Vector3(-249.4642f, -5.140871f, -324.9326f), MinimumAngle = -10, @@ -1958,16 +1684,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "Censored"; + CollectionsMarshal.AsSpan(list13)[0] = "Censored"; gatheringRoot2.Author = list13; - 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) + num = 1; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -1982,25 +1704,20 @@ public static class AssemblyGatheringLocationLoader num = 2; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = 2001426u; - index++; - span15[index] = 2001427u; + Span span7 = CollectionsMarshal.AsSpan(list15); + span7[0] = 2001426u; + span7[1] = 2001427u; gatheringRoot2.ExtraQuestItems = list15; - index = 4; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref GatheringNodeGroup reference9 = ref span16[num]; + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span8 = CollectionsMarshal.AsSpan(list16); + ref GatheringNodeGroup reference9 = ref span8[0]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - ref GatheringNode reference10 = ref span17[index2]; + ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list17)[0]; GatheringNode obj5 = new GatheringNode { DataId = 30510u @@ -2008,14 +1725,12 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new GatheringLocation + Span span9 = CollectionsMarshal.AsSpan(list18); + span9[0] = new GatheringLocation { Position = new Vector3(334.4322f, 307.1861f, -252.2396f) }; - num4++; - span18[num4] = new GatheringLocation + span9[1] = new GatheringLocation { Position = new Vector3(318.1049f, 305.9586f, -236.1029f), MinimumAngle = -270, @@ -2027,32 +1742,27 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list17; reference9 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference11 = ref span16[num]; + ref GatheringNodeGroup reference11 = ref span8[1]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - index2 = 1; - List list19 = new List(index2); - CollectionsMarshal.SetCount(list19, index2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num2 = 0; - ref GatheringNode reference12 = ref span19[num2]; + num2 = 1; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list19)[0]; GatheringNode obj6 = new GatheringNode { DataId = 30511u }; - num4 = 2; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - num3 = 0; - span20[num3] = new GatheringLocation + num3 = 2; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span10 = CollectionsMarshal.AsSpan(list20); + span10[0] = new GatheringLocation { Position = new Vector3(347.1616f, 316.7778f, -231.3722f), MinimumAngle = -45, MaximumAngle = 190 }; - num3++; - span20[num3] = new GatheringLocation + span10[1] = new GatheringLocation { Position = new Vector3(355.554f, 321.804f, -231.1056f), MinimumAngle = -285, @@ -2062,15 +1772,12 @@ public static class AssemblyGatheringLocationLoader reference12 = obj6; gatheringNodeGroup6.Nodes = list19; reference11 = gatheringNodeGroup6; - num++; - ref GatheringNodeGroup reference13 = ref span16[num]; + ref GatheringNodeGroup reference13 = ref span8[2]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - ref GatheringNode reference14 = ref span21[index2]; + ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; GatheringNode obj7 = new GatheringNode { DataId = 30508u @@ -2078,16 +1785,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num4 = 0; - span22[num4] = new GatheringLocation + Span span11 = CollectionsMarshal.AsSpan(list22); + span11[0] = new GatheringLocation { Position = new Vector3(298.5091f, 309.1797f, -201.3309f), MinimumAngle = 105, MaximumAngle = 220 }; - num4++; - span22[num4] = new GatheringLocation + span11[1] = new GatheringLocation { Position = new Vector3(291.6585f, 305.774f, -206.6072f), MinimumAngle = -220, @@ -2097,32 +1802,27 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list21; reference13 = gatheringNodeGroup7; - num++; - ref GatheringNodeGroup reference15 = ref span16[num]; + ref GatheringNodeGroup reference15 = ref span8[3]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - index2 = 1; - List list23 = new List(index2); - CollectionsMarshal.SetCount(list23, index2); - Span span23 = CollectionsMarshal.AsSpan(list23); - num2 = 0; - ref GatheringNode reference16 = ref span23[num2]; + num2 = 1; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; GatheringNode obj8 = new GatheringNode { DataId = 30509u }; - num4 = 2; - List list24 = new List(num4); - CollectionsMarshal.SetCount(list24, num4); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - span24[num3] = new GatheringLocation + num3 = 2; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span12 = CollectionsMarshal.AsSpan(list24); + span12[0] = new GatheringLocation { Position = new Vector3(325.9026f, 306.1053f, -278.1509f), MinimumAngle = -350, MaximumAngle = -55 }; - num3++; - span24[num3] = new GatheringLocation + span12[1] = new GatheringLocation { Position = new Vector3(289.1882f, 302.4524f, -261.3322f), MinimumAngle = -240, @@ -2138,16 +1838,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "Censored"; + CollectionsMarshal.AsSpan(list25)[0] = "Censored"; gatheringRoot3.Author = list25; - 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) + num = 1; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -2155,25 +1851,20 @@ public static class AssemblyGatheringLocationLoader num = 2; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = 2001388u; - index++; - span27[index] = 2001389u; + Span span13 = CollectionsMarshal.AsSpan(list27); + span13[0] = 2001388u; + span13[1] = 2001389u; gatheringRoot3.ExtraQuestItems = list27; - index = 4; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref GatheringNodeGroup reference17 = ref span28[num]; + num = 4; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span14 = CollectionsMarshal.AsSpan(list28); + ref GatheringNodeGroup reference17 = ref span14[0]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - ref GatheringNode reference18 = ref span29[index2]; + ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list29)[0]; GatheringNode obj9 = new GatheringNode { DataId = 31037u @@ -2181,14 +1872,12 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + Span span15 = CollectionsMarshal.AsSpan(list30); + span15[0] = new GatheringLocation { Position = new Vector3(37.26512f, -5.35672f, -17.14218f) }; - num4++; - span30[num4] = new GatheringLocation + span15[1] = new GatheringLocation { Position = new Vector3(38.57137f, -5.615489f, -22.79385f), MinimumAngle = -175, @@ -2198,32 +1887,27 @@ public static class AssemblyGatheringLocationLoader reference18 = obj9; gatheringNodeGroup9.Nodes = list29; reference17 = gatheringNodeGroup9; - num++; - ref GatheringNodeGroup reference19 = ref span28[num]; + ref GatheringNodeGroup reference19 = ref span14[1]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - index2 = 1; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference20 = ref span31[num2]; + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; GatheringNode obj10 = new GatheringNode { DataId = 31040u }; - num4 = 2; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new GatheringLocation + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span16 = CollectionsMarshal.AsSpan(list32); + span16[0] = new GatheringLocation { Position = new Vector3(31.95057f, -6.724361f, -2.002786f), MinimumAngle = -140, MaximumAngle = 140 }; - num3++; - span32[num3] = new GatheringLocation + span16[1] = new GatheringLocation { Position = new Vector3(29.91186f, -7.849501f, -8.288407f), MinimumAngle = -310, @@ -2233,15 +1917,12 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference21 = ref span28[num]; + ref GatheringNodeGroup reference21 = ref span14[2]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - ref GatheringNode reference22 = ref span33[index2]; + ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; GatheringNode obj11 = new GatheringNode { DataId = 31038u @@ -2249,16 +1930,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span34 = CollectionsMarshal.AsSpan(list34); - num4 = 0; - span34[num4] = new GatheringLocation + Span span17 = CollectionsMarshal.AsSpan(list34); + span17[0] = new GatheringLocation { Position = new Vector3(78.76174f, -11.8893f, 3.8787f), MinimumAngle = 45, MaximumAngle = 220 }; - num4++; - span34[num4] = new GatheringLocation + span17[1] = new GatheringLocation { Position = new Vector3(81.825f, -12.01711f, -3.642704f), MinimumAngle = 0, @@ -2268,32 +1947,27 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference23 = ref span28[num]; + ref GatheringNodeGroup reference23 = ref span14[3]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - index2 = 1; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref GatheringNode reference24 = ref span35[num2]; + num2 = 1; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; GatheringNode obj12 = new GatheringNode { DataId = 31039u }; - num4 = 2; - List list36 = new List(num4); - CollectionsMarshal.SetCount(list36, num4); - Span span36 = CollectionsMarshal.AsSpan(list36); - num3 = 0; - span36[num3] = new GatheringLocation + num3 = 2; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + Span span18 = CollectionsMarshal.AsSpan(list36); + span18[0] = new GatheringLocation { Position = new Vector3(61.52108f, -11.51824f, -20.57552f), MinimumAngle = -145, MaximumAngle = 85 }; - num3++; - span36[num3] = new GatheringLocation + span18[1] = new GatheringLocation { Position = new Vector3(53.08001f, -11.09225f, -27.17002f), MinimumAngle = -50, @@ -2309,16 +1983,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "Censored"; + CollectionsMarshal.AsSpan(list37)[0] = "Censored"; gatheringRoot4.Author = list37; - 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) + num = 1; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -2333,25 +2003,20 @@ public static class AssemblyGatheringLocationLoader num = 2; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = 2001412u; - index++; - span39[index] = 2001413u; + Span span19 = CollectionsMarshal.AsSpan(list39); + span19[0] = 2001412u; + span19[1] = 2001413u; gatheringRoot4.ExtraQuestItems = list39; - index = 3; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref GatheringNodeGroup reference25 = ref span40[num]; + num = 3; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span20 = CollectionsMarshal.AsSpan(list40); + ref GatheringNodeGroup reference25 = ref span20[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref GatheringNode reference26 = ref span41[index2]; + ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list41)[0]; GatheringNode obj13 = new GatheringNode { DataId = 31043u @@ -2359,16 +2024,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheringLocation + Span span21 = CollectionsMarshal.AsSpan(list42); + span21[0] = new GatheringLocation { Position = new Vector3(-371.8556f, -15.86567f, -363.9182f), MinimumAngle = -145, MaximumAngle = -35 }; - num4++; - span42[num4] = new GatheringLocation + span21[1] = new GatheringLocation { Position = new Vector3(-372.1209f, -16.00947f, -351.6216f), MinimumAngle = -125, @@ -2378,32 +2041,28 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list41; reference25 = gatheringNodeGroup13; - num++; - ref GatheringNodeGroup reference27 = ref span40[num]; + ref GatheringNodeGroup reference27 = ref span20[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - index2 = 2; - List list43 = new List(index2); - CollectionsMarshal.SetCount(list43, index2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num2 = 0; - ref GatheringNode reference28 = ref span43[num2]; + num2 = 2; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span22 = CollectionsMarshal.AsSpan(list43); + ref GatheringNode reference28 = ref span22[0]; GatheringNode obj14 = new GatheringNode { DataId = 31044u }; - num4 = 2; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = new GatheringLocation + num3 = 2; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + Span span23 = CollectionsMarshal.AsSpan(list44); + span23[0] = new GatheringLocation { Position = new Vector3(-344.8759f, -16.46771f, -338.7833f), MinimumAngle = -90, MaximumAngle = 75 }; - num3++; - span44[num3] = new GatheringLocation + span23[1] = new GatheringLocation { Position = new Vector3(-332.5748f, -16.07329f, -337.0371f), MinimumAngle = -65, @@ -2411,8 +2070,7 @@ public static class AssemblyGatheringLocationLoader }; obj14.Locations = list44; reference28 = obj14; - num2++; - ref GatheringNode reference29 = ref span43[num2]; + ref GatheringNode reference29 = ref span22[1]; GatheringNode obj15 = new GatheringNode { DataId = 31042u @@ -2420,9 +2078,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span45[num4] = new GatheringLocation + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(-317.5309f, -16.18071f, -338.7262f), MinimumAngle = -35, @@ -2432,32 +2088,27 @@ public static class AssemblyGatheringLocationLoader reference29 = obj15; gatheringNodeGroup14.Nodes = list43; reference27 = gatheringNodeGroup14; - num++; - ref GatheringNodeGroup reference30 = ref span40[num]; + ref GatheringNodeGroup reference30 = ref span20[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - ref GatheringNode reference31 = ref span46[index2]; + ref GatheringNode reference31 = ref CollectionsMarshal.AsSpan(list46)[0]; GatheringNode obj16 = new GatheringNode { DataId = 31041u }; - num4 = 2; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - span47[num3] = new GatheringLocation + num3 = 2; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + Span span24 = CollectionsMarshal.AsSpan(list47); + span24[0] = new GatheringLocation { Position = new Vector3(-347.2882f, -15.12936f, -346.8752f), MinimumAngle = -195, MaximumAngle = -110 }; - num3++; - span47[num3] = new GatheringLocation + span24[1] = new GatheringLocation { Position = new Vector3(-348.3911f, -16.14678f, -363.7992f), MinimumAngle = -20, @@ -2477,16 +2128,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -2494,55 +2141,47 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 31406u }; - int num4 = 1; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index2 = 0; - span5[index2] = new GatheringLocation + int num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation { Position = new Vector3(-501.2244f, 118.0477f, -443.4114f) }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 31407u }; - index2 = 3; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 3; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + Span span3 = CollectionsMarshal.AsSpan(list6); + span3[0] = new GatheringLocation { Position = new Vector3(-468.6656f, 120.7944f, -420.1442f) }; - num4++; - span6[num4] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(-523.499f, 117.4618f, -449.0883f), MinimumAngle = -160, MaximumAngle = 65 }; - num4++; - span6[num4] = new GatheringLocation + span3[2] = new GatheringLocation { Position = new Vector3(-482.4585f, 120.3927f, -442.2994f) }; @@ -2550,54 +2189,46 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span4[0]; GatheringNode obj3 = new GatheringNode { DataId = 31408u }; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new GatheringLocation + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation { Position = new Vector3(-685.595f, 122.3003f, -379.202f) }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span4[1]; GatheringNode obj4 = new GatheringNode { DataId = 31409u }; - index2 = 3; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 3; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + Span span5 = CollectionsMarshal.AsSpan(list9); + span5[0] = new GatheringLocation { Position = new Vector3(-691.5064f, 123.4536f, -354.5497f), MinimumAngle = 95, MaximumAngle = 325 }; - num4++; - span9[num4] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(-673.4897f, 122.1564f, -378.4789f) }; - num4++; - span9[num4] = new GatheringLocation + span5[2] = new GatheringLocation { Position = new Vector3(-664.5702f, 121.697f, -394.0817f), MinimumAngle = 0, @@ -2607,56 +2238,48 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span6 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span6[0]; GatheringNode obj5 = new GatheringNode { DataId = 31410u }; - num4 = 1; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new GatheringLocation + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation { Position = new Vector3(-496.1503f, 121.0539f, -272.0342f) }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span6[1]; GatheringNode obj6 = new GatheringNode { DataId = 31411u }; - index2 = 3; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 3; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + Span span7 = CollectionsMarshal.AsSpan(list12); + span7[0] = new GatheringLocation { Position = new Vector3(-459.1924f, 121.1919f, -280.8376f), MinimumAngle = -105, MaximumAngle = 55 }; - num4++; - span12[num4] = new GatheringLocation + span7[1] = new GatheringLocation { Position = new Vector3(-472.298f, 121.4754f, -306.8053f), MinimumAngle = 30, MaximumAngle = 235 }; - num4++; - span12[num4] = new GatheringLocation + span7[2] = new GatheringLocation { Position = new Vector3(-486.2957f, 120.9394f, -257.3133f) }; @@ -2667,61 +2290,50 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(300, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "liza"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "liza"; gatheringRoot2.Author = list13; num = 2; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - ref QuestStep reference10 = ref span14[index]; + Span span8 = CollectionsMarshal.AsSpan(list14); + ref QuestStep reference10 = ref span8[0]; 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(); - num3 = 1; - List list15 = new List(num3); - CollectionsMarshal.SetCount(list15, num3); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - span15[num2] = 1073; + num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + CollectionsMarshal.AsSpan(list15)[0] = 1073; skipStepConditions.InTerritory = list15; skipConditions.StepIf = skipStepConditions; obj7.SkipConditions = skipConditions; reference10 = obj7; - index++; - span14[index] = new QuestStep(EInteractionType.None, null, null, 1073); + span8[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot2.Steps = list14; - index = 3; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref GatheringNodeGroup reference11 = ref span16[num]; + num = 3; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span9 = CollectionsMarshal.AsSpan(list16); + ref GatheringNodeGroup reference11 = ref span9[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num3 = 0; - ref GatheringNode reference12 = ref span17[num3]; + ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; GatheringNode obj8 = new GatheringNode { DataId = 31819u }; - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(-5.492728f, 499.6548f, 37.58726f), MinimumAngle = 145, @@ -2731,25 +2343,20 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list17; reference11 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference13 = ref span16[num]; + ref GatheringNodeGroup reference13 = ref span9[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span19 = CollectionsMarshal.AsSpan(list19); - num2 = 0; - ref GatheringNode reference14 = ref span19[num2]; + num2 = 1; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; GatheringNode obj9 = new GatheringNode { DataId = 31700u }; - index2 = 1; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = new GatheringLocation + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation { Position = new Vector3(27.22863f, 499.8322f, 2.94655f), MinimumAngle = -15, @@ -2759,25 +2366,20 @@ public static class AssemblyGatheringLocationLoader reference14 = obj9; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference15 = ref span16[num]; + ref GatheringNodeGroup reference15 = ref span9[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - ref GatheringNode reference16 = ref span21[num3]; + ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; GatheringNode obj10 = new GatheringNode { DataId = 31489u }; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new GatheringLocation + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = new GatheringLocation { Position = new Vector3(28.38036f, 500.019f, -0.7058061f), MinimumAngle = 0, @@ -2793,58 +2395,47 @@ public static class AssemblyGatheringLocationLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "liza"; + CollectionsMarshal.AsSpan(list23)[0] = "liza"; gatheringRoot3.Author = list23; - index = 2; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestStep reference17 = ref span24[num]; + num = 2; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span10 = CollectionsMarshal.AsSpan(list24); + ref QuestStep reference17 = ref span10[0]; 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(); - num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num2 = 0; - span25[num2] = 1073; + num2 = 1; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + CollectionsMarshal.AsSpan(list25)[0] = 1073; skipStepConditions2.InTerritory = list25; skipConditions2.StepIf = skipStepConditions2; obj11.SkipConditions = skipConditions2; reference17 = obj11; - num++; - span24[num] = new QuestStep(EInteractionType.None, null, null, 1073); + span10[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot3.Steps = list24; num = 3; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - ref GatheringNodeGroup reference18 = ref span26[index]; + Span span11 = CollectionsMarshal.AsSpan(list26); + ref GatheringNodeGroup reference18 = ref span11[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - num3 = 0; - ref GatheringNode reference19 = ref span27[num3]; + ref GatheringNode reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; GatheringNode obj12 = new GatheringNode { DataId = 31822u }; - index2 = 1; - List list28 = new List(index2); - CollectionsMarshal.SetCount(list28, index2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num4 = 0; - span28[num4] = new GatheringLocation + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = new GatheringLocation { Position = new Vector3(-4.054798f, 494.3483f, -54.37905f) }; @@ -2852,25 +2443,20 @@ public static class AssemblyGatheringLocationLoader reference19 = obj12; gatheringNodeGroup7.Nodes = list27; reference18 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference20 = ref span26[index]; + ref GatheringNodeGroup reference20 = ref span11[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 1; - List list29 = new List(num3); - CollectionsMarshal.SetCount(list29, num3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num2 = 0; - ref GatheringNode reference21 = ref span29[num2]; + num2 = 1; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + ref GatheringNode reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; GatheringNode obj13 = new GatheringNode { DataId = 31821u }; - num4 = 1; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new GatheringLocation + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation { Position = new Vector3(-5.287843f, 494.2204f, -66.80152f) }; @@ -2878,25 +2464,20 @@ public static class AssemblyGatheringLocationLoader reference21 = obj13; gatheringNodeGroup8.Nodes = list29; reference20 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference22 = ref span26[index]; + ref GatheringNodeGroup reference22 = ref span11[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num3 = 0; - ref GatheringNode reference23 = ref span31[num3]; + ref GatheringNode reference23 = ref CollectionsMarshal.AsSpan(list31)[0]; GatheringNode obj14 = new GatheringNode { DataId = 31820u }; - index2 = 1; - List list32 = new List(index2); - CollectionsMarshal.SetCount(list32, index2); - Span span32 = CollectionsMarshal.AsSpan(list32); - num4 = 0; - span32[num4] = new GatheringLocation + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation { Position = new Vector3(-9.143447f, 494.1166f, -82.62958f), MinimumAngle = -75, @@ -2909,61 +2490,50 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list26; AddLocation(317, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - span33[num] = "liza"; + num = 1; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + CollectionsMarshal.AsSpan(list33)[0] = "liza"; gatheringRoot4.Author = list33; num = 2; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - ref QuestStep reference24 = ref span34[index]; + Span span12 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference24 = ref span12[0]; 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(); - num3 = 1; - List list35 = new List(num3); - CollectionsMarshal.SetCount(list35, num3); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - span35[num2] = 1073; + num2 = 1; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + CollectionsMarshal.AsSpan(list35)[0] = 1073; skipStepConditions3.InTerritory = list35; skipConditions3.StepIf = skipStepConditions3; obj15.SkipConditions = skipConditions3; reference24 = obj15; - index++; - span34[index] = new QuestStep(EInteractionType.None, null, null, 1073); + span12[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot4.Steps = list34; - index = 3; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref GatheringNodeGroup reference25 = ref span36[num]; + num = 3; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span13 = CollectionsMarshal.AsSpan(list36); + ref GatheringNodeGroup reference25 = ref span13[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - ref GatheringNode reference26 = ref span37[num3]; + ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; GatheringNode obj16 = new GatheringNode { DataId = 33840u }; - num4 = 1; - List list38 = new List(num4); - CollectionsMarshal.SetCount(list38, num4); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new GatheringLocation + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new GatheringLocation { Position = new Vector3(10.28351f, 486.144f, -136.9586f) }; @@ -2971,25 +2541,20 @@ public static class AssemblyGatheringLocationLoader reference26 = obj16; gatheringNodeGroup10.Nodes = list37; reference25 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference27 = ref span36[num]; + ref GatheringNodeGroup reference27 = ref span13[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); - num3 = 1; - List list39 = new List(num3); - CollectionsMarshal.SetCount(list39, num3); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref GatheringNode reference28 = ref span39[num2]; + num2 = 1; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list39)[0]; GatheringNode obj17 = new GatheringNode { DataId = 33841u }; - index2 = 1; - List list40 = new List(index2); - CollectionsMarshal.SetCount(list40, index2); - Span span40 = CollectionsMarshal.AsSpan(list40); - num4 = 0; - span40[num4] = new GatheringLocation + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + CollectionsMarshal.AsSpan(list40)[0] = new GatheringLocation { Position = new Vector3(19.46428f, 485.9226f, -136.738f) }; @@ -2997,25 +2562,20 @@ public static class AssemblyGatheringLocationLoader reference28 = obj17; gatheringNodeGroup11.Nodes = list39; reference27 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference29 = ref span36[num]; + ref GatheringNodeGroup reference29 = ref span13[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - num3 = 0; - ref GatheringNode reference30 = ref span41[num3]; + ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; GatheringNode obj18 = new GatheringNode { DataId = 33643u }; - num4 = 1; - List list42 = new List(num4); - CollectionsMarshal.SetCount(list42, num4); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new GatheringLocation + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation { Position = new Vector3(14.21117f, 486.0551f, -143.435f) }; @@ -3029,58 +2589,47 @@ public static class AssemblyGatheringLocationLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "liza"; + CollectionsMarshal.AsSpan(list43)[0] = "liza"; gatheringRoot5.Author = list43; - index = 2; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestStep reference31 = ref span44[num]; + num = 2; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span14 = CollectionsMarshal.AsSpan(list44); + ref QuestStep reference31 = ref span14[0]; 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(); - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - span45[num2] = 1073; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + CollectionsMarshal.AsSpan(list45)[0] = 1073; skipStepConditions4.InTerritory = list45; skipConditions4.StepIf = skipStepConditions4; obj19.SkipConditions = skipConditions4; reference31 = obj19; - num++; - span44[num] = new QuestStep(EInteractionType.None, null, null, 1073); + span14[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot5.Steps = list44; num = 3; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - ref GatheringNodeGroup reference32 = ref span46[index]; + Span span15 = CollectionsMarshal.AsSpan(list46); + ref GatheringNodeGroup reference32 = ref span15[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - ref GatheringNode reference33 = ref span47[num3]; + ref GatheringNode reference33 = ref CollectionsMarshal.AsSpan(list47)[0]; GatheringNode obj20 = new GatheringNode { DataId = 33842u }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new GatheringLocation + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(-71.72573f, 495.8044f, -23.42241f), MinimumAngle = -15, @@ -3090,25 +2639,20 @@ public static class AssemblyGatheringLocationLoader reference33 = obj20; gatheringNodeGroup13.Nodes = list47; reference32 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference34 = ref span46[index]; + ref GatheringNodeGroup reference34 = ref span15[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num3 = 1; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref GatheringNode reference35 = ref span49[num2]; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + ref GatheringNode reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; GatheringNode obj21 = new GatheringNode { DataId = 33846u }; - num4 = 1; - List list50 = new List(num4); - CollectionsMarshal.SetCount(list50, num4); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new GatheringLocation + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation { Position = new Vector3(-85.765f, 493.9822f, -11.33734f), MinimumAngle = -185, @@ -3118,25 +2662,20 @@ public static class AssemblyGatheringLocationLoader reference35 = obj21; gatheringNodeGroup14.Nodes = list49; reference34 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference36 = ref span46[index]; + ref GatheringNodeGroup reference36 = ref span15[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - ref GatheringNode reference37 = ref span51[num3]; + ref GatheringNode reference37 = ref CollectionsMarshal.AsSpan(list51)[0]; GatheringNode obj22 = new GatheringNode { DataId = 33847u }; - index2 = 1; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num4 = 0; - span52[num4] = new GatheringLocation + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation { Position = new Vector3(-100.52f, 493.6702f, -9.731167f), MinimumAngle = -185, @@ -3149,61 +2688,50 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list46; AddLocation(322, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - span53[num] = "liza"; + num = 1; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + CollectionsMarshal.AsSpan(list53)[0] = "liza"; gatheringRoot6.Author = list53; num = 2; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - ref QuestStep reference38 = ref span54[index]; + Span span16 = CollectionsMarshal.AsSpan(list54); + ref QuestStep reference38 = ref span16[0]; 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(); - num3 = 1; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num2 = 0; - span55[num2] = 1073; + num2 = 1; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + CollectionsMarshal.AsSpan(list55)[0] = 1073; skipStepConditions5.InTerritory = list55; skipConditions5.StepIf = skipStepConditions5; obj23.SkipConditions = skipConditions5; reference38 = obj23; - index++; - span54[index] = new QuestStep(EInteractionType.None, null, null, 1073); + span16[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot6.Steps = list54; - index = 3; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref GatheringNodeGroup reference39 = ref span56[num]; + num = 3; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span17 = CollectionsMarshal.AsSpan(list56); + ref GatheringNodeGroup reference39 = ref span17[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - ref GatheringNode reference40 = ref span57[num3]; + ref GatheringNode reference40 = ref CollectionsMarshal.AsSpan(list57)[0]; GatheringNode obj24 = new GatheringNode { DataId = 33848u }; - num4 = 1; - List list58 = new List(num4); - CollectionsMarshal.SetCount(list58, num4); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new GatheringLocation + num3 = 1; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + CollectionsMarshal.AsSpan(list58)[0] = new GatheringLocation { Position = new Vector3(-109.0629f, 491.0458f, 34.78553f), MinimumAngle = -110, @@ -3213,25 +2741,20 @@ public static class AssemblyGatheringLocationLoader reference40 = obj24; gatheringNodeGroup16.Nodes = list57; reference39 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference41 = ref span56[num]; + ref GatheringNodeGroup reference41 = ref span17[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span59 = CollectionsMarshal.AsSpan(list59); - num2 = 0; - ref GatheringNode reference42 = ref span59[num2]; + num2 = 1; + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + ref GatheringNode reference42 = ref CollectionsMarshal.AsSpan(list59)[0]; GatheringNode obj25 = new GatheringNode { DataId = 33849u }; - index2 = 1; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new GatheringLocation + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation { Position = new Vector3(-110.2371f, 491.0116f, 54.68977f), MinimumAngle = -170, @@ -3241,25 +2764,20 @@ public static class AssemblyGatheringLocationLoader reference42 = obj25; gatheringNodeGroup17.Nodes = list59; reference41 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference43 = ref span56[num]; + ref GatheringNodeGroup reference43 = ref span17[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - ref GatheringNode reference44 = ref span61[num3]; + ref GatheringNode reference44 = ref CollectionsMarshal.AsSpan(list61)[0]; GatheringNode obj26 = new GatheringNode { DataId = 33850u }; - num4 = 1; - List list62 = new List(num4); - CollectionsMarshal.SetCount(list62, num4); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new GatheringLocation + num3 = 1; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + CollectionsMarshal.AsSpan(list62)[0] = new GatheringLocation { Position = new Vector3(-101.4737f, 490.7073f, 54.9267f), MinimumAngle = 90, @@ -3275,16 +2793,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "liza"; + CollectionsMarshal.AsSpan(list63)[0] = "liza"; gatheringRoot7.Author = list63; - 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) + num = 1; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -3292,26 +2806,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - ref GatheringNodeGroup reference45 = ref span65[index]; + Span span18 = CollectionsMarshal.AsSpan(list65); + ref GatheringNodeGroup reference45 = ref span18[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); - num3 = 2; - List list66 = new List(num3); - CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - num2 = 0; - ref GatheringNode reference46 = ref span66[num2]; + num2 = 2; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + Span span19 = CollectionsMarshal.AsSpan(list66); + ref GatheringNode reference46 = ref span19[0]; GatheringNode obj27 = new GatheringNode { DataId = 31344u }; - index2 = 1; - List list67 = new List(index2); - CollectionsMarshal.SetCount(list67, index2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num4 = 0; - span67[num4] = new GatheringLocation + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation { Position = new Vector3(40.36132f, 217.3049f, 405.1829f), MinimumAngle = 100, @@ -3321,19 +2831,17 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list67; reference46 = obj27; - num2++; - ref GatheringNode reference47 = ref span66[num2]; + ref GatheringNode reference47 = ref span19[1]; GatheringNode obj28 = new GatheringNode { DataId = 31345u, Fly = false }; - num4 = 3; - List list68 = new List(num4); - CollectionsMarshal.SetCount(list68, num4); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new GatheringLocation + num3 = 3; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + Span span20 = CollectionsMarshal.AsSpan(list68); + span20[0] = new GatheringLocation { Position = new Vector3(20.19547f, 216.5585f, 412.4353f), MinimumAngle = 75, @@ -3341,8 +2849,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - index2++; - span68[index2] = new GatheringLocation + span20[1] = new GatheringLocation { Position = new Vector3(17.58205f, 216.0664f, 421.5481f), MinimumAngle = 0, @@ -3350,8 +2857,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - index2++; - span68[index2] = new GatheringLocation + span20[2] = new GatheringLocation { Position = new Vector3(51.50931f, 217.6516f, 408.2164f), MinimumAngle = 155, @@ -3363,25 +2869,21 @@ public static class AssemblyGatheringLocationLoader reference47 = obj28; gatheringNodeGroup19.Nodes = list66; reference45 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference48 = ref span65[index]; + ref GatheringNodeGroup reference48 = ref span18[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); num2 = 3; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - num3 = 0; - ref GatheringNode reference49 = ref span69[num3]; + Span span21 = CollectionsMarshal.AsSpan(list69); + ref GatheringNode reference49 = ref span21[0]; GatheringNode obj29 = new GatheringNode { DataId = 31340u }; - index2 = 1; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num4 = 0; - span70[num4] = new GatheringLocation + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = new GatheringLocation { Position = new Vector3(56.06712f, 216.6702f, 225.849f), MinimumAngle = -20, @@ -3389,32 +2891,28 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list70; reference49 = obj29; - num3++; - ref GatheringNode reference50 = ref span69[num3]; + ref GatheringNode reference50 = ref span21[1]; GatheringNode obj30 = new GatheringNode { DataId = 31341u }; - num4 = 3; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new GatheringLocation + num3 = 3; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + Span span22 = CollectionsMarshal.AsSpan(list71); + span22[0] = new GatheringLocation { Position = new Vector3(85.05425f, 218.7078f, 220.0463f), MinimumAngle = -110, MaximumAngle = 25 }; - index2++; - span71[index2] = new GatheringLocation + span22[1] = new GatheringLocation { Position = new Vector3(78.99079f, 215.9441f, 228.9527f), MinimumAngle = -110, MaximumAngle = 40 }; - index2++; - span71[index2] = new GatheringLocation + span22[2] = new GatheringLocation { Position = new Vector3(67.29195f, 216.4685f, 228.7955f), MinimumAngle = -35, @@ -3422,18 +2920,15 @@ public static class AssemblyGatheringLocationLoader }; obj30.Locations = list71; reference50 = obj30; - num3++; - ref GatheringNode reference51 = ref span69[num3]; + ref GatheringNode reference51 = ref span21[2]; GatheringNode obj31 = new GatheringNode { DataId = 31342u }; - index2 = 1; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num4 = 0; - span72[num4] = new GatheringLocation + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation { Position = new Vector3(-124.1629f, 221.9654f, 197.8645f), MinimumAngle = -15, @@ -3443,39 +2938,33 @@ public static class AssemblyGatheringLocationLoader reference51 = obj31; gatheringNodeGroup20.Nodes = list69; reference48 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference52 = ref span65[index]; + ref GatheringNodeGroup reference52 = ref span18[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); - num3 = 1; - List list73 = new List(num3); - CollectionsMarshal.SetCount(list73, num3); - Span span73 = CollectionsMarshal.AsSpan(list73); - num2 = 0; - ref GatheringNode reference53 = ref span73[num2]; + num2 = 1; + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list73)[0]; GatheringNode obj32 = new GatheringNode { DataId = 31343u }; - num4 = 3; - List list74 = new List(num4); - CollectionsMarshal.SetCount(list74, num4); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new GatheringLocation + num3 = 3; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + Span span23 = CollectionsMarshal.AsSpan(list74); + span23[0] = new GatheringLocation { Position = new Vector3(-138.4112f, 220.679f, 204.6822f), MinimumAngle = -20, MaximumAngle = 20 }; - index2++; - span74[index2] = new GatheringLocation + span23[1] = new GatheringLocation { Position = new Vector3(-90.40117f, 223.687f, 202.5069f), MinimumAngle = -90, MaximumAngle = 45 }; - index2++; - span74[index2] = new GatheringLocation + span23[2] = new GatheringLocation { Position = new Vector3(-50.76083f, 222.9418f, 217.8322f), MinimumAngle = 50, @@ -3488,46 +2977,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list65; AddLocation(351, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - span75[num] = "liza"; + num = 1; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + CollectionsMarshal.AsSpan(list75)[0] = "liza"; gatheringRoot8.Author = list75; num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = new QuestStep(EInteractionType.None, null, null, 398) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot8.Steps = list76; - index = 3; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref GatheringNodeGroup reference54 = ref span77[num]; + num = 3; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span24 = CollectionsMarshal.AsSpan(list77); + ref GatheringNodeGroup reference54 = ref span24[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - ref GatheringNode reference55 = ref span78[num3]; + Span span25 = CollectionsMarshal.AsSpan(list78); + ref GatheringNode reference55 = ref span25[0]; GatheringNode obj33 = new GatheringNode { DataId = 31350u }; - index2 = 1; - List list79 = new List(index2); - CollectionsMarshal.SetCount(list79, index2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num4 = 0; - span79[num4] = new GatheringLocation + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new GatheringLocation { Position = new Vector3(-115.4501f, -44.90735f, 211.8084f), MinimumAngle = -5, @@ -3535,32 +3016,28 @@ public static class AssemblyGatheringLocationLoader }; obj33.Locations = list79; reference55 = obj33; - num3++; - ref GatheringNode reference56 = ref span78[num3]; + ref GatheringNode reference56 = ref span25[1]; GatheringNode obj34 = new GatheringNode { DataId = 31351u }; - num4 = 3; - List list80 = new List(num4); - CollectionsMarshal.SetCount(list80, num4); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new GatheringLocation + num3 = 3; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + Span span26 = CollectionsMarshal.AsSpan(list80); + span26[0] = new GatheringLocation { Position = new Vector3(-94.4983f, -46.65615f, 219.4642f), MinimumAngle = -90, MaximumAngle = 65 }; - index2++; - span80[index2] = new GatheringLocation + span26[1] = new GatheringLocation { Position = new Vector3(-133.4304f, -45.47835f, 211.6268f), MinimumAngle = -50, MaximumAngle = 80 }; - index2++; - span80[index2] = new GatheringLocation + span26[2] = new GatheringLocation { Position = new Vector3(-81.5194f, -52.42267f, 241.2021f), MinimumAngle = -35, @@ -3570,25 +3047,21 @@ public static class AssemblyGatheringLocationLoader reference56 = obj34; gatheringNodeGroup22.Nodes = list78; reference54 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference57 = ref span77[num]; + ref GatheringNodeGroup reference57 = ref span24[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); - num3 = 2; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span81 = CollectionsMarshal.AsSpan(list81); - num2 = 0; - ref GatheringNode reference58 = ref span81[num2]; + num2 = 2; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + Span span27 = CollectionsMarshal.AsSpan(list81); + ref GatheringNode reference58 = ref span27[0]; GatheringNode obj35 = new GatheringNode { DataId = 31346u }; - index2 = 1; - List list82 = new List(index2); - CollectionsMarshal.SetCount(list82, index2); - Span span82 = CollectionsMarshal.AsSpan(list82); - num4 = 0; - span82[num4] = new GatheringLocation + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation { Position = new Vector3(-154.299f, -70.63795f, 399.4617f), MinimumAngle = 110, @@ -3596,32 +3069,28 @@ public static class AssemblyGatheringLocationLoader }; obj35.Locations = list82; reference58 = obj35; - num2++; - ref GatheringNode reference59 = ref span81[num2]; + ref GatheringNode reference59 = ref span27[1]; GatheringNode obj36 = new GatheringNode { DataId = 31347u }; - num4 = 3; - List list83 = new List(num4); - CollectionsMarshal.SetCount(list83, num4); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new GatheringLocation + num3 = 3; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + Span span28 = CollectionsMarshal.AsSpan(list83); + span28[0] = new GatheringLocation { Position = new Vector3(-167.7846f, -70.11265f, 418.7766f), MinimumAngle = 90, MaximumAngle = 235 }; - index2++; - span83[index2] = new GatheringLocation + span28[1] = new GatheringLocation { Position = new Vector3(-152.9678f, -68.49996f, 365.0086f), MinimumAngle = -30, MaximumAngle = 70 }; - index2++; - span83[index2] = new GatheringLocation + span28[2] = new GatheringLocation { Position = new Vector3(-189.6693f, -68.18973f, 377.6652f), MinimumAngle = 205, @@ -3631,39 +3100,34 @@ public static class AssemblyGatheringLocationLoader reference59 = obj36; gatheringNodeGroup23.Nodes = list81; reference57 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference60 = ref span77[num]; + ref GatheringNodeGroup reference60 = ref span24[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - ref GatheringNode reference61 = ref span84[num3]; + Span span29 = CollectionsMarshal.AsSpan(list84); + ref GatheringNode reference61 = ref span29[0]; GatheringNode obj37 = new GatheringNode { DataId = 31349u }; - index2 = 3; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num4 = 0; - span85[num4] = new GatheringLocation + num3 = 3; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span30 = CollectionsMarshal.AsSpan(list85); + span30[0] = new GatheringLocation { Position = new Vector3(-312.3143f, -54.81182f, 331.0543f), MinimumAngle = -145, MaximumAngle = 5 }; - num4++; - span85[num4] = new GatheringLocation + span30[1] = new GatheringLocation { Position = new Vector3(-296.8107f, -51.96982f, 310.6086f), MinimumAngle = 235, MaximumAngle = 330 }; - num4++; - span85[num4] = new GatheringLocation + span30[2] = new GatheringLocation { Position = new Vector3(-299.3094f, -46.30565f, 293.9169f), MinimumAngle = 165, @@ -3671,18 +3135,15 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list85; reference61 = obj37; - num3++; - ref GatheringNode reference62 = ref span84[num3]; + ref GatheringNode reference62 = ref span29[1]; GatheringNode obj38 = new GatheringNode { DataId = 31348u }; - num4 = 1; - List list86 = new List(num4); - CollectionsMarshal.SetCount(list86, num4); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new GatheringLocation + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + CollectionsMarshal.AsSpan(list86)[0] = new GatheringLocation { Position = new Vector3(-311.9997f, -53.59439f, 326.8317f), MinimumAngle = -75, @@ -3698,16 +3159,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = "liza"; + CollectionsMarshal.AsSpan(list87)[0] = "liza"; gatheringRoot9.Author = list87; - index = 1; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref QuestStep reference63 = ref span88[num]; + num = 1; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list88)[0]; QuestStep obj39 = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -3719,12 +3176,10 @@ public static class AssemblyGatheringLocationLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num3 = 1; - List list89 = new List(num3); - CollectionsMarshal.SetCount(list89, num3); - Span span89 = CollectionsMarshal.AsSpan(list89); - num2 = 0; - span89[num2] = 399; + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + CollectionsMarshal.AsSpan(list89)[0] = 399; skipAetheryteCondition.InTerritory = list89; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition; obj39.SkipConditions = skipConditions6; @@ -3733,26 +3188,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - ref GatheringNodeGroup reference64 = ref span90[index]; + Span span31 = CollectionsMarshal.AsSpan(list90); + ref GatheringNodeGroup reference64 = ref span31[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - ref GatheringNode reference65 = ref span91[num3]; + Span span32 = CollectionsMarshal.AsSpan(list91); + ref GatheringNode reference65 = ref span32[0]; GatheringNode obj40 = new GatheringNode { DataId = 31356u }; - index2 = 1; - List list92 = new List(index2); - CollectionsMarshal.SetCount(list92, index2); - Span span92 = CollectionsMarshal.AsSpan(list92); - num4 = 0; - span92[num4] = new GatheringLocation + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation { Position = new Vector3(120.1556f, 70.42133f, 30.73328f), MinimumAngle = -95, @@ -3760,32 +3211,28 @@ public static class AssemblyGatheringLocationLoader }; obj40.Locations = list92; reference65 = obj40; - num3++; - ref GatheringNode reference66 = ref span91[num3]; + ref GatheringNode reference66 = ref span32[1]; GatheringNode obj41 = new GatheringNode { DataId = 31357u }; - num4 = 3; - List list93 = new List(num4); - CollectionsMarshal.SetCount(list93, num4); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new GatheringLocation + num3 = 3; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span33 = CollectionsMarshal.AsSpan(list93); + span33[0] = new GatheringLocation { Position = new Vector3(137.7684f, 70.04282f, 64.77115f), MinimumAngle = 30, MaximumAngle = 130 }; - index2++; - span93[index2] = new GatheringLocation + span33[1] = new GatheringLocation { Position = new Vector3(132.1863f, 70.08203f, 57.67828f), MinimumAngle = -10, MaximumAngle = 105 }; - index2++; - span93[index2] = new GatheringLocation + span33[2] = new GatheringLocation { Position = new Vector3(145.684f, 70.47159f, 45.05047f), MinimumAngle = 80, @@ -3795,39 +3242,34 @@ public static class AssemblyGatheringLocationLoader reference66 = obj41; gatheringNodeGroup25.Nodes = list91; reference64 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference67 = ref span90[index]; + ref GatheringNodeGroup reference67 = ref span31[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref GatheringNode reference68 = ref span94[num2]; + num2 = 2; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + Span span34 = CollectionsMarshal.AsSpan(list94); + ref GatheringNode reference68 = ref span34[0]; GatheringNode obj42 = new GatheringNode { DataId = 31355u }; - index2 = 3; - List list95 = new List(index2); - CollectionsMarshal.SetCount(list95, index2); - Span span95 = CollectionsMarshal.AsSpan(list95); - num4 = 0; - span95[num4] = new GatheringLocation + num3 = 3; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span35 = CollectionsMarshal.AsSpan(list95); + span35[0] = new GatheringLocation { Position = new Vector3(59.4164f, 54.40149f, 160.6752f), MinimumAngle = 155, MaximumAngle = 285 }; - num4++; - span95[num4] = new GatheringLocation + span35[1] = new GatheringLocation { Position = new Vector3(66.6783f, 53.80389f, 177.1926f), MinimumAngle = -90, MaximumAngle = 0 }; - num4++; - span95[num4] = new GatheringLocation + span35[2] = new GatheringLocation { Position = new Vector3(47.04347f, 53.91698f, 164.1816f), MinimumAngle = 0, @@ -3835,18 +3277,15 @@ public static class AssemblyGatheringLocationLoader }; obj42.Locations = list95; reference68 = obj42; - num2++; - ref GatheringNode reference69 = ref span94[num2]; + ref GatheringNode reference69 = ref span34[1]; GatheringNode obj43 = new GatheringNode { DataId = 31354u }; - num4 = 1; - List list96 = new List(num4); - CollectionsMarshal.SetCount(list96, num4); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new GatheringLocation + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation { Position = new Vector3(31.89844f, 54.71996f, 173.864f), MinimumAngle = 105, @@ -3856,25 +3295,21 @@ public static class AssemblyGatheringLocationLoader reference69 = obj43; gatheringNodeGroup26.Nodes = list94; reference67 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference70 = ref span90[index]; + ref GatheringNodeGroup reference70 = ref span31[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num3 = 0; - ref GatheringNode reference71 = ref span97[num3]; + Span span36 = CollectionsMarshal.AsSpan(list97); + ref GatheringNode reference71 = ref span36[0]; GatheringNode obj44 = new GatheringNode { DataId = 31352u }; - index2 = 1; - List list98 = new List(index2); - CollectionsMarshal.SetCount(list98, index2); - Span span98 = CollectionsMarshal.AsSpan(list98); - num4 = 0; - span98[num4] = new GatheringLocation + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = new GatheringLocation { Position = new Vector3(231.3517f, 74.23511f, 112.9807f), MinimumAngle = 130, @@ -3882,32 +3317,28 @@ public static class AssemblyGatheringLocationLoader }; obj44.Locations = list98; reference71 = obj44; - num3++; - ref GatheringNode reference72 = ref span97[num3]; + ref GatheringNode reference72 = ref span36[1]; GatheringNode obj45 = new GatheringNode { DataId = 31353u }; - num4 = 3; - List list99 = new List(num4); - CollectionsMarshal.SetCount(list99, num4); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new GatheringLocation + num3 = 3; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + Span span37 = CollectionsMarshal.AsSpan(list99); + span37[0] = new GatheringLocation { Position = new Vector3(239.051f, 80.42557f, 192.2325f), MinimumAngle = 140, MaximumAngle = 235 }; - index2++; - span99[index2] = new GatheringLocation + span37[1] = new GatheringLocation { Position = new Vector3(237.4622f, 74.67197f, 150.8143f), MinimumAngle = 60, MaximumAngle = 225 }; - index2++; - span99[index2] = new GatheringLocation + span37[2] = new GatheringLocation { Position = new Vector3(211.4673f, 75.37302f, 169.3396f), MinimumAngle = 145, @@ -3920,46 +3351,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list90; AddLocation(353, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - index = 1; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - span100[num] = "liza"; + num = 1; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + CollectionsMarshal.AsSpan(list100)[0] = "liza"; gatheringRoot10.Author = list100; num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = new QuestStep(EInteractionType.None, null, null, 401) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; gatheringRoot10.Steps = list101; - index = 3; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref GatheringNodeGroup reference73 = ref span102[num]; + num = 3; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span38 = CollectionsMarshal.AsSpan(list102); + ref GatheringNodeGroup reference73 = ref span38[0]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num3 = 2; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num2 = 0; - ref GatheringNode reference74 = ref span103[num2]; + num2 = 2; + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + Span span39 = CollectionsMarshal.AsSpan(list103); + ref GatheringNode reference74 = ref span39[0]; GatheringNode obj46 = new GatheringNode { DataId = 31366u }; - index2 = 1; - List list104 = new List(index2); - CollectionsMarshal.SetCount(list104, index2); - Span span104 = CollectionsMarshal.AsSpan(list104); - num4 = 0; - span104[num4] = new GatheringLocation + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation { Position = new Vector3(529.0662f, -110.3256f, 434.3149f), MinimumAngle = 15, @@ -3967,32 +3390,28 @@ public static class AssemblyGatheringLocationLoader }; obj46.Locations = list104; reference74 = obj46; - num2++; - ref GatheringNode reference75 = ref span103[num2]; + ref GatheringNode reference75 = ref span39[1]; GatheringNode obj47 = new GatheringNode { DataId = 31367u }; - num4 = 3; - List list105 = new List(num4); - CollectionsMarshal.SetCount(list105, num4); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new GatheringLocation + num3 = 3; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span40 = CollectionsMarshal.AsSpan(list105); + span40[0] = new GatheringLocation { Position = new Vector3(541.8505f, -111.128f, 452.5471f), MinimumAngle = -45, MaximumAngle = 40 }; - index2++; - span105[index2] = new GatheringLocation + span40[1] = new GatheringLocation { Position = new Vector3(517.9747f, -109.2984f, 417.9554f), MinimumAngle = -45, MaximumAngle = 55 }; - index2++; - span105[index2] = new GatheringLocation + span40[2] = new GatheringLocation { Position = new Vector3(499.3676f, -108.7323f, 410.8949f), MinimumAngle = -5, @@ -4002,39 +3421,34 @@ public static class AssemblyGatheringLocationLoader reference75 = obj47; gatheringNodeGroup28.Nodes = list103; reference73 = gatheringNodeGroup28; - num++; - ref GatheringNodeGroup reference76 = ref span102[num]; + ref GatheringNodeGroup reference76 = ref span38[1]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - ref GatheringNode reference77 = ref span106[num3]; + Span span41 = CollectionsMarshal.AsSpan(list106); + ref GatheringNode reference77 = ref span41[0]; GatheringNode obj48 = new GatheringNode { DataId = 31365u }; - index2 = 3; - List list107 = new List(index2); - CollectionsMarshal.SetCount(list107, index2); - Span span107 = CollectionsMarshal.AsSpan(list107); - num4 = 0; - span107[num4] = new GatheringLocation + num3 = 3; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span42 = CollectionsMarshal.AsSpan(list107); + span42[0] = new GatheringLocation { Position = new Vector3(625.9688f, -115.6856f, 344.535f), MinimumAngle = 125, MaximumAngle = 185 }; - num4++; - span107[num4] = new GatheringLocation + span42[1] = new GatheringLocation { Position = new Vector3(678.5617f, -122.8687f, 356.7407f), MinimumAngle = 190, MaximumAngle = 290 }; - num4++; - span107[num4] = new GatheringLocation + span42[2] = new GatheringLocation { Position = new Vector3(644.1035f, -122.3688f, 334.0371f), MinimumAngle = 105, @@ -4042,18 +3456,15 @@ public static class AssemblyGatheringLocationLoader }; obj48.Locations = list107; reference77 = obj48; - num3++; - ref GatheringNode reference78 = ref span106[num3]; + ref GatheringNode reference78 = ref span41[1]; GatheringNode obj49 = new GatheringNode { DataId = 31364u }; - num4 = 1; - List list108 = new List(num4); - CollectionsMarshal.SetCount(list108, num4); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new GatheringLocation + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation { Position = new Vector3(661.9959f, -122.6855f, 333.0707f), MinimumAngle = 140, @@ -4063,25 +3474,21 @@ public static class AssemblyGatheringLocationLoader reference78 = obj49; gatheringNodeGroup29.Nodes = list106; reference76 = gatheringNodeGroup29; - num++; - ref GatheringNodeGroup reference79 = ref span102[num]; + ref GatheringNodeGroup reference79 = ref span38[2]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num3 = 2; - List list109 = new List(num3); - CollectionsMarshal.SetCount(list109, num3); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - ref GatheringNode reference80 = ref span109[num2]; + num2 = 2; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span43 = CollectionsMarshal.AsSpan(list109); + ref GatheringNode reference80 = ref span43[0]; GatheringNode obj50 = new GatheringNode { DataId = 31369u }; - index2 = 1; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num4 = 0; - span110[num4] = new GatheringLocation + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation { Position = new Vector3(730.9626f, -96.64706f, 449.485f), MinimumAngle = 45, @@ -4089,18 +3496,15 @@ public static class AssemblyGatheringLocationLoader }; obj50.Locations = list110; reference80 = obj50; - num2++; - ref GatheringNode reference81 = ref span109[num2]; + ref GatheringNode reference81 = ref span43[1]; GatheringNode obj51 = new GatheringNode { DataId = 31368u }; - num4 = 1; - List list111 = new List(num4); - CollectionsMarshal.SetCount(list111, num4); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new GatheringLocation + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = new GatheringLocation { Position = new Vector3(727.2908f, -95.47571f, 460.3798f), MinimumAngle = 25, @@ -4116,16 +3520,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "liza"; + CollectionsMarshal.AsSpan(list112)[0] = "liza"; gatheringRoot11.Author = list112; - 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) + num = 1; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -4133,40 +3533,35 @@ public static class AssemblyGatheringLocationLoader num = 2; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - ref GatheringNodeGroup reference82 = ref span114[index]; + Span span44 = CollectionsMarshal.AsSpan(list114); + ref GatheringNodeGroup reference82 = ref span44[0]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - ref GatheringNode reference83 = ref span115[num3]; + Span span45 = CollectionsMarshal.AsSpan(list115); + ref GatheringNode reference83 = ref span45[0]; GatheringNode obj52 = new GatheringNode { DataId = 31363u }; - index2 = 3; - List list116 = new List(index2); - CollectionsMarshal.SetCount(list116, index2); - Span span116 = CollectionsMarshal.AsSpan(list116); - num4 = 0; - span116[num4] = new GatheringLocation + num3 = 3; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + Span span46 = CollectionsMarshal.AsSpan(list116); + span46[0] = new GatheringLocation { Position = new Vector3(338.6716f, -29.70343f, -89.65448f), MinimumAngle = 145, MaximumAngle = 275 }; - num4++; - span116[num4] = new GatheringLocation + span46[1] = new GatheringLocation { Position = new Vector3(285.6898f, -32.99854f, -100.1466f), MinimumAngle = 115, MaximumAngle = 275 }; - num4++; - span116[num4] = new GatheringLocation + span46[2] = new GatheringLocation { Position = new Vector3(326.7051f, -27.26759f, -89.31528f), MinimumAngle = 110, @@ -4174,18 +3569,15 @@ public static class AssemblyGatheringLocationLoader }; obj52.Locations = list116; reference83 = obj52; - num3++; - ref GatheringNode reference84 = ref span115[num3]; + ref GatheringNode reference84 = ref span45[1]; GatheringNode obj53 = new GatheringNode { DataId = 31362u }; - num4 = 1; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new GatheringLocation + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation { Position = new Vector3(299.2141f, -33.21008f, -103.5859f), MinimumAngle = 75, @@ -4195,25 +3587,21 @@ public static class AssemblyGatheringLocationLoader reference84 = obj53; gatheringNodeGroup31.Nodes = list115; reference82 = gatheringNodeGroup31; - index++; - ref GatheringNodeGroup reference85 = ref span114[index]; + ref GatheringNodeGroup reference85 = ref span44[1]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num3 = 2; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num2 = 0; - ref GatheringNode reference86 = ref span118[num2]; + num2 = 2; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + Span span47 = CollectionsMarshal.AsSpan(list118); + ref GatheringNode reference86 = ref span47[0]; GatheringNode obj54 = new GatheringNode { DataId = 31358u }; - index2 = 1; - List list119 = new List(index2); - CollectionsMarshal.SetCount(list119, index2); - Span span119 = CollectionsMarshal.AsSpan(list119); - num4 = 0; - span119[num4] = new GatheringLocation + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation { Position = new Vector3(316.6238f, -30.77305f, -230.0326f), MinimumAngle = -35, @@ -4221,32 +3609,28 @@ public static class AssemblyGatheringLocationLoader }; obj54.Locations = list119; reference86 = obj54; - num2++; - ref GatheringNode reference87 = ref span118[num2]; + ref GatheringNode reference87 = ref span47[1]; GatheringNode obj55 = new GatheringNode { DataId = 31359u }; - num4 = 3; - List list120 = new List(num4); - CollectionsMarshal.SetCount(list120, num4); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new GatheringLocation + num3 = 3; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + Span span48 = CollectionsMarshal.AsSpan(list120); + span48[0] = new GatheringLocation { Position = new Vector3(297.7187f, -32.66696f, -234.9031f), MinimumAngle = 15, MaximumAngle = 135 }; - index2++; - span120[index2] = new GatheringLocation + span48[1] = new GatheringLocation { Position = new Vector3(288.7547f, -33.61605f, -239.764f), MinimumAngle = -30, MaximumAngle = 65 }; - index2++; - span120[index2] = new GatheringLocation + span48[2] = new GatheringLocation { Position = new Vector3(324.8526f, -28.45777f, -209.4378f), MinimumAngle = -5, @@ -4259,73 +3643,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list114; AddLocation(355, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - index = 1; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - span121[num] = "liza"; + num = 1; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + CollectionsMarshal.AsSpan(list121)[0] = "liza"; gatheringRoot12.Author = list121; num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - Span span122 = CollectionsMarshal.AsSpan(list122); - index = 0; - span122[index] = new QuestStep(EInteractionType.None, null, null, 398) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot12.Steps = list122; - index = 3; - List list123 = new List(index); - CollectionsMarshal.SetCount(list123, index); - Span span123 = CollectionsMarshal.AsSpan(list123); - num = 0; - ref GatheringNodeGroup reference88 = ref span123[num]; + num = 3; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + Span span49 = CollectionsMarshal.AsSpan(list123); + ref GatheringNodeGroup reference88 = ref span49[0]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - ref GatheringNode reference89 = ref span124[num3]; + Span span50 = CollectionsMarshal.AsSpan(list124); + ref GatheringNode reference89 = ref span50[0]; GatheringNode obj56 = new GatheringNode { DataId = 31413u }; - index2 = 3; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num4 = 0; - span125[num4] = new GatheringLocation + num3 = 3; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span51 = CollectionsMarshal.AsSpan(list125); + span51[0] = new GatheringLocation { Position = new Vector3(-513.1596f, -85.63485f, 434.7382f) }; - num4++; - span125[num4] = new GatheringLocation + span51[1] = new GatheringLocation { Position = new Vector3(-562.0517f, -89.33559f, 445.0961f) }; - num4++; - span125[num4] = new GatheringLocation + span51[2] = new GatheringLocation { Position = new Vector3(-523.4441f, -81.67991f, 408.9826f) }; obj56.Locations = list125; reference89 = obj56; - num3++; - ref GatheringNode reference90 = ref span124[num3]; + ref GatheringNode reference90 = ref span50[1]; GatheringNode obj57 = new GatheringNode { DataId = 31412u }; - num4 = 1; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new GatheringLocation + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation { Position = new Vector3(-553.9171f, -84.75874f, 419.2539f) }; @@ -4333,52 +3705,44 @@ public static class AssemblyGatheringLocationLoader reference90 = obj57; gatheringNodeGroup33.Nodes = list124; reference88 = gatheringNodeGroup33; - num++; - ref GatheringNodeGroup reference91 = ref span123[num]; + ref GatheringNodeGroup reference91 = ref span49[1]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num3 = 2; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span127 = CollectionsMarshal.AsSpan(list127); - num2 = 0; - ref GatheringNode reference92 = ref span127[num2]; + num2 = 2; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + Span span52 = CollectionsMarshal.AsSpan(list127); + ref GatheringNode reference92 = ref span52[0]; GatheringNode obj58 = new GatheringNode { DataId = 31416u }; - index2 = 1; - List list128 = new List(index2); - CollectionsMarshal.SetCount(list128, index2); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = new GatheringLocation + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = new GatheringLocation { Position = new Vector3(-569.6527f, -96.50298f, 547.1465f) }; obj58.Locations = list128; reference92 = obj58; - num2++; - ref GatheringNode reference93 = ref span127[num2]; + ref GatheringNode reference93 = ref span52[1]; GatheringNode obj59 = new GatheringNode { DataId = 31417u }; - num4 = 3; - List list129 = new List(num4); - CollectionsMarshal.SetCount(list129, num4); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new GatheringLocation + num3 = 3; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span53 = CollectionsMarshal.AsSpan(list129); + span53[0] = new GatheringLocation { Position = new Vector3(-623.1743f, -101.8206f, 574.6146f) }; - index2++; - span129[index2] = new GatheringLocation + span53[1] = new GatheringLocation { Position = new Vector3(-562.2545f, -95.6534f, 545.6004f) }; - index2++; - span129[index2] = new GatheringLocation + span53[2] = new GatheringLocation { Position = new Vector3(-601.669f, -100.0121f, 559.5313f) }; @@ -4386,52 +3750,44 @@ public static class AssemblyGatheringLocationLoader reference93 = obj59; gatheringNodeGroup34.Nodes = list127; reference91 = gatheringNodeGroup34; - num++; - ref GatheringNodeGroup reference94 = ref span123[num]; + ref GatheringNodeGroup reference94 = ref span49[2]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - num3 = 0; - ref GatheringNode reference95 = ref span130[num3]; + Span span54 = CollectionsMarshal.AsSpan(list130); + ref GatheringNode reference95 = ref span54[0]; GatheringNode obj60 = new GatheringNode { DataId = 31415u }; - index2 = 3; - List list131 = new List(index2); - CollectionsMarshal.SetCount(list131, index2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num4 = 0; - span131[num4] = new GatheringLocation + num3 = 3; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + Span span55 = CollectionsMarshal.AsSpan(list131); + span55[0] = new GatheringLocation { Position = new Vector3(-680.4672f, -103.4997f, 624.0101f) }; - num4++; - span131[num4] = new GatheringLocation + span55[1] = new GatheringLocation { Position = new Vector3(-700.5361f, -107.5581f, 597.0253f) }; - num4++; - span131[num4] = new GatheringLocation + span55[2] = new GatheringLocation { Position = new Vector3(-715.8123f, -105.2011f, 622.3116f) }; obj60.Locations = list131; reference95 = obj60; - num3++; - ref GatheringNode reference96 = ref span130[num3]; + ref GatheringNode reference96 = ref span54[1]; GatheringNode obj61 = new GatheringNode { DataId = 31414u }; - num4 = 1; - List list132 = new List(num4); - CollectionsMarshal.SetCount(list132, num4); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new GatheringLocation + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation { Position = new Vector3(-714.2946f, -113.8825f, 557.3662f) }; @@ -4445,16 +3801,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span133 = CollectionsMarshal.AsSpan(list133); - index = 0; - span133[index] = "liza"; + CollectionsMarshal.AsSpan(list133)[0] = "liza"; gatheringRoot13.Author = list133; - 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) + num = 1; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; @@ -4462,55 +3814,47 @@ public static class AssemblyGatheringLocationLoader num = 3; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - ref GatheringNodeGroup reference97 = ref span135[index]; + Span span56 = CollectionsMarshal.AsSpan(list135); + ref GatheringNodeGroup reference97 = ref span56[0]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num3 = 2; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num2 = 0; - ref GatheringNode reference98 = ref span136[num2]; + num2 = 2; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + Span span57 = CollectionsMarshal.AsSpan(list136); + ref GatheringNode reference98 = ref span57[0]; GatheringNode obj62 = new GatheringNode { DataId = 31419u }; - index2 = 3; - List list137 = new List(index2); - CollectionsMarshal.SetCount(list137, index2); - Span span137 = CollectionsMarshal.AsSpan(list137); - num4 = 0; - span137[num4] = new GatheringLocation + num3 = 3; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + Span span58 = CollectionsMarshal.AsSpan(list137); + span58[0] = new GatheringLocation { Position = new Vector3(-204.7827f, -18.18443f, 272.0514f) }; - num4++; - span137[num4] = new GatheringLocation + span58[1] = new GatheringLocation { Position = new Vector3(-187.8667f, -18.16559f, 260.4704f), MinimumAngle = -85, MaximumAngle = 105 }; - num4++; - span137[num4] = new GatheringLocation + span58[2] = new GatheringLocation { Position = new Vector3(-219.7478f, -18.66556f, 279.3036f) }; obj62.Locations = list137; reference98 = obj62; - num2++; - ref GatheringNode reference99 = ref span136[num2]; + ref GatheringNode reference99 = ref span57[1]; GatheringNode obj63 = new GatheringNode { DataId = 31418u }; - num4 = 1; - List list138 = new List(num4); - CollectionsMarshal.SetCount(list138, num4); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new GatheringLocation + num3 = 1; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + CollectionsMarshal.AsSpan(list138)[0] = new GatheringLocation { Position = new Vector3(-216.0198f, -14.66686f, 263.2452f) }; @@ -4518,39 +3862,34 @@ public static class AssemblyGatheringLocationLoader reference99 = obj63; gatheringNodeGroup36.Nodes = list136; reference97 = gatheringNodeGroup36; - index++; - ref GatheringNodeGroup reference100 = ref span135[index]; + ref GatheringNodeGroup reference100 = ref span56[1]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - ref GatheringNode reference101 = ref span139[num3]; + Span span59 = CollectionsMarshal.AsSpan(list139); + ref GatheringNode reference101 = ref span59[0]; GatheringNode obj64 = new GatheringNode { DataId = 31423u }; - index2 = 3; - List list140 = new List(index2); - CollectionsMarshal.SetCount(list140, index2); - Span span140 = CollectionsMarshal.AsSpan(list140); - num4 = 0; - span140[num4] = new GatheringLocation + num3 = 3; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + Span span60 = CollectionsMarshal.AsSpan(list140); + span60[0] = new GatheringLocation { Position = new Vector3(-125.676f, -13.40994f, 434.1913f), MinimumAngle = 25, MaximumAngle = 260 }; - num4++; - span140[num4] = new GatheringLocation + span60[1] = new GatheringLocation { Position = new Vector3(-99.86462f, -11.67334f, 437.7415f), MinimumAngle = 85, MaximumAngle = 300 }; - num4++; - span140[num4] = new GatheringLocation + span60[2] = new GatheringLocation { Position = new Vector3(-71.04668f, -8.40571f, 445.0867f), MinimumAngle = -40, @@ -4558,18 +3897,15 @@ public static class AssemblyGatheringLocationLoader }; obj64.Locations = list140; reference101 = obj64; - num3++; - ref GatheringNode reference102 = ref span139[num3]; + ref GatheringNode reference102 = ref span59[1]; GatheringNode obj65 = new GatheringNode { DataId = 31422u }; - num4 = 1; - List list141 = new List(num4); - CollectionsMarshal.SetCount(list141, num4); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new GatheringLocation + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation { Position = new Vector3(-88.15926f, -8.882813f, 447.7102f), MinimumAngle = 155, @@ -4579,52 +3915,44 @@ public static class AssemblyGatheringLocationLoader reference102 = obj65; gatheringNodeGroup37.Nodes = list139; reference100 = gatheringNodeGroup37; - index++; - ref GatheringNodeGroup reference103 = ref span135[index]; + ref GatheringNodeGroup reference103 = ref span56[2]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num3 = 2; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num2 = 0; - ref GatheringNode reference104 = ref span142[num2]; + num2 = 2; + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + Span span61 = CollectionsMarshal.AsSpan(list142); + ref GatheringNode reference104 = ref span61[0]; GatheringNode obj66 = new GatheringNode { DataId = 31420u }; - index2 = 1; - List list143 = new List(index2); - CollectionsMarshal.SetCount(list143, index2); - Span span143 = CollectionsMarshal.AsSpan(list143); - num4 = 0; - span143[num4] = new GatheringLocation + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + CollectionsMarshal.AsSpan(list143)[0] = new GatheringLocation { Position = new Vector3(12.52414f, -14.81244f, 375.4579f) }; obj66.Locations = list143; reference104 = obj66; - num2++; - ref GatheringNode reference105 = ref span142[num2]; + ref GatheringNode reference105 = ref span61[1]; GatheringNode obj67 = new GatheringNode { DataId = 31421u }; - num4 = 3; - List list144 = new List(num4); - CollectionsMarshal.SetCount(list144, num4); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new GatheringLocation + num3 = 3; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + Span span62 = CollectionsMarshal.AsSpan(list144); + span62[0] = new GatheringLocation { Position = new Vector3(-11.31142f, -19.80939f, 383.9503f) }; - index2++; - span144[index2] = new GatheringLocation + span62[1] = new GatheringLocation { Position = new Vector3(4.771156f, -17.64155f, 386.0074f) }; - index2++; - span144[index2] = new GatheringLocation + span62[2] = new GatheringLocation { Position = new Vector3(9.879506f, -13.13191f, 358.7252f) }; @@ -4635,51 +3963,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list135; AddLocation(359, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - index = 1; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - span145[num] = "liza"; + num = 1; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + CollectionsMarshal.AsSpan(list145)[0] = "liza"; gatheringRoot14.Author = list145; num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = new QuestStep(EInteractionType.None, null, null, 401) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; gatheringRoot14.Steps = list146; - index = 3; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref GatheringNodeGroup reference106 = ref span147[num]; + num = 3; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span63 = CollectionsMarshal.AsSpan(list147); + ref GatheringNodeGroup reference106 = ref span63[0]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - ref GatheringNode reference107 = ref span148[num3]; + Span span64 = CollectionsMarshal.AsSpan(list148); + ref GatheringNode reference107 = ref span64[0]; GatheringNode obj68 = new GatheringNode { DataId = 31425u }; - index2 = 2; - List list149 = new List(index2); - CollectionsMarshal.SetCount(list149, index2); - Span span149 = CollectionsMarshal.AsSpan(list149); - num4 = 0; - span149[num4] = new GatheringLocation + num3 = 2; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + Span span65 = CollectionsMarshal.AsSpan(list149); + span65[0] = new GatheringLocation { Position = new Vector3(-63.97195f, 13.48263f, -559.9897f) }; - num4++; - span149[num4] = new GatheringLocation + span65[1] = new GatheringLocation { Position = new Vector3(-47.75371f, 13.66347f, -571.2774f), MinimumAngle = -80, @@ -4687,18 +4007,15 @@ public static class AssemblyGatheringLocationLoader }; obj68.Locations = list149; reference107 = obj68; - num3++; - ref GatheringNode reference108 = ref span148[num3]; + ref GatheringNode reference108 = ref span64[1]; GatheringNode obj69 = new GatheringNode { DataId = 31424u }; - num4 = 1; - List list150 = new List(num4); - CollectionsMarshal.SetCount(list150, num4); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new GatheringLocation + num3 = 1; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + CollectionsMarshal.AsSpan(list150)[0] = new GatheringLocation { Position = new Vector3(-26.91866f, 12.14502f, -554.869f) }; @@ -4706,47 +4023,40 @@ public static class AssemblyGatheringLocationLoader reference108 = obj69; gatheringNodeGroup39.Nodes = list148; reference106 = gatheringNodeGroup39; - num++; - ref GatheringNodeGroup reference109 = ref span147[num]; + ref GatheringNodeGroup reference109 = ref span63[1]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num3 = 2; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref GatheringNode reference110 = ref span151[num2]; + num2 = 2; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + Span span66 = CollectionsMarshal.AsSpan(list151); + ref GatheringNode reference110 = ref span66[0]; GatheringNode obj70 = new GatheringNode { DataId = 31426u }; - index2 = 1; - List list152 = new List(index2); - CollectionsMarshal.SetCount(list152, index2); - Span span152 = CollectionsMarshal.AsSpan(list152); - num4 = 0; - span152[num4] = new GatheringLocation + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = new GatheringLocation { Position = new Vector3(-26.56338f, 12.41532f, -442.6965f) }; obj70.Locations = list152; reference110 = obj70; - num2++; - ref GatheringNode reference111 = ref span151[num2]; + ref GatheringNode reference111 = ref span66[1]; GatheringNode obj71 = new GatheringNode { DataId = 31427u }; - num4 = 2; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new GatheringLocation + num3 = 2; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + Span span67 = CollectionsMarshal.AsSpan(list153); + span67[0] = new GatheringLocation { Position = new Vector3(2.215849f, 12.32494f, -434.0038f) }; - index2++; - span153[index2] = new GatheringLocation + span67[1] = new GatheringLocation { Position = new Vector3(-18.38633f, 12.4451f, -427.6107f) }; @@ -4754,49 +4064,42 @@ public static class AssemblyGatheringLocationLoader reference111 = obj71; gatheringNodeGroup40.Nodes = list151; reference109 = gatheringNodeGroup40; - num++; - ref GatheringNodeGroup reference112 = ref span147[num]; + ref GatheringNodeGroup reference112 = ref span63[2]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - ref GatheringNode reference113 = ref span154[num3]; + Span span68 = CollectionsMarshal.AsSpan(list154); + ref GatheringNode reference113 = ref span68[0]; GatheringNode obj72 = new GatheringNode { DataId = 31429u }; - index2 = 2; - List list155 = new List(index2); - CollectionsMarshal.SetCount(list155, index2); - Span span155 = CollectionsMarshal.AsSpan(list155); - num4 = 0; - span155[num4] = new GatheringLocation + num3 = 2; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + Span span69 = CollectionsMarshal.AsSpan(list155); + span69[0] = new GatheringLocation { Position = new Vector3(70.59737f, 13.45543f, -599.2373f), MinimumAngle = -60, MaximumAngle = 125 }; - num4++; - span155[num4] = new GatheringLocation + span69[1] = new GatheringLocation { Position = new Vector3(50.8525f, 13.158f, -646.834f) }; obj72.Locations = list155; reference113 = obj72; - num3++; - ref GatheringNode reference114 = ref span154[num3]; + ref GatheringNode reference114 = ref span68[1]; GatheringNode obj73 = new GatheringNode { DataId = 31428u }; - num4 = 1; - List list156 = new List(num4); - CollectionsMarshal.SetCount(list156, num4); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new GatheringLocation + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation { Position = new Vector3(85.6145f, 12.69149f, -629.3397f) }; @@ -4810,16 +4113,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; gatheringRoot15.Author = list157; - index = 1; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestStep reference115 = ref span158[num]; + num = 1; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep obj74 = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -4831,12 +4130,10 @@ public static class AssemblyGatheringLocationLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - num3 = 1; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span159 = CollectionsMarshal.AsSpan(list159); - num2 = 0; - span159[num2] = 399; + num2 = 1; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + CollectionsMarshal.AsSpan(list159)[0] = 399; skipAetheryteCondition2.InTerritory = list159; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; obj74.SkipConditions = skipConditions7; @@ -4845,40 +4142,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - ref GatheringNodeGroup reference116 = ref span160[index]; + Span span70 = CollectionsMarshal.AsSpan(list160); + ref GatheringNodeGroup reference116 = ref span70[0]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); num2 = 2; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - num3 = 0; - ref GatheringNode reference117 = ref span161[num3]; + Span span71 = CollectionsMarshal.AsSpan(list161); + ref GatheringNode reference117 = ref span71[0]; GatheringNode obj75 = new GatheringNode { DataId = 31431u }; - index2 = 3; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num4 = 0; - span162[num4] = new GatheringLocation + num3 = 3; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + Span span72 = CollectionsMarshal.AsSpan(list162); + span72[0] = new GatheringLocation { Position = new Vector3(-494.1652f, 142.7381f, -287.4084f), MinimumAngle = 0, MaximumAngle = 270 }; - num4++; - span162[num4] = new GatheringLocation + span72[1] = new GatheringLocation { Position = new Vector3(-485.4606f, 142.9737f, -290.856f), MinimumAngle = 65, MaximumAngle = 310 }; - num4++; - span162[num4] = new GatheringLocation + span72[2] = new GatheringLocation { Position = new Vector3(-533.1213f, 142.5874f, -262.2948f), MinimumAngle = -255, @@ -4886,18 +4178,15 @@ public static class AssemblyGatheringLocationLoader }; obj75.Locations = list162; reference117 = obj75; - num3++; - ref GatheringNode reference118 = ref span161[num3]; + ref GatheringNode reference118 = ref span71[1]; GatheringNode obj76 = new GatheringNode { DataId = 31430u }; - num4 = 1; - List list163 = new List(num4); - CollectionsMarshal.SetCount(list163, num4); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new GatheringLocation + num3 = 1; + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + CollectionsMarshal.AsSpan(list163)[0] = new GatheringLocation { Position = new Vector3(-510.6404f, 141.9014f, -280.1611f) }; @@ -4905,52 +4194,44 @@ public static class AssemblyGatheringLocationLoader reference118 = obj76; gatheringNodeGroup42.Nodes = list161; reference116 = gatheringNodeGroup42; - index++; - ref GatheringNodeGroup reference119 = ref span160[index]; + ref GatheringNodeGroup reference119 = ref span70[1]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); - num3 = 2; - List list164 = new List(num3); - CollectionsMarshal.SetCount(list164, num3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num2 = 0; - ref GatheringNode reference120 = ref span164[num2]; + num2 = 2; + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + Span span73 = CollectionsMarshal.AsSpan(list164); + ref GatheringNode reference120 = ref span73[0]; GatheringNode obj77 = new GatheringNode { DataId = 31434u }; - index2 = 1; - List list165 = new List(index2); - CollectionsMarshal.SetCount(list165, index2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num4 = 0; - span165[num4] = new GatheringLocation + num3 = 1; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + CollectionsMarshal.AsSpan(list165)[0] = new GatheringLocation { Position = new Vector3(-562.8221f, 148.9451f, -104.9014f) }; obj77.Locations = list165; reference120 = obj77; - num2++; - ref GatheringNode reference121 = ref span164[num2]; + ref GatheringNode reference121 = ref span73[1]; GatheringNode obj78 = new GatheringNode { DataId = 31435u }; - num4 = 3; - List list166 = new List(num4); - CollectionsMarshal.SetCount(list166, num4); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new GatheringLocation + num3 = 3; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + Span span74 = CollectionsMarshal.AsSpan(list166); + span74[0] = new GatheringLocation { Position = new Vector3(-520.0394f, 148.7521f, -97.8f) }; - index2++; - span166[index2] = new GatheringLocation + span74[1] = new GatheringLocation { Position = new Vector3(-570.4307f, 148.103f, -130.9921f) }; - index2++; - span166[index2] = new GatheringLocation + span74[2] = new GatheringLocation { Position = new Vector3(-573.738f, 148.4877f, -158.4798f), MinimumAngle = 130, @@ -4960,54 +4241,46 @@ public static class AssemblyGatheringLocationLoader reference121 = obj78; gatheringNodeGroup43.Nodes = list164; reference119 = gatheringNodeGroup43; - index++; - ref GatheringNodeGroup reference122 = ref span160[index]; + ref GatheringNodeGroup reference122 = ref span70[2]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - num3 = 0; - ref GatheringNode reference123 = ref span167[num3]; + Span span75 = CollectionsMarshal.AsSpan(list167); + ref GatheringNode reference123 = ref span75[0]; GatheringNode obj79 = new GatheringNode { DataId = 31432u }; - index2 = 1; - List list168 = new List(index2); - CollectionsMarshal.SetCount(list168, index2); - Span span168 = CollectionsMarshal.AsSpan(list168); - num4 = 0; - span168[num4] = new GatheringLocation + num3 = 1; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + CollectionsMarshal.AsSpan(list168)[0] = new GatheringLocation { Position = new Vector3(-388.4753f, 147.345f, -177.1972f) }; obj79.Locations = list168; reference123 = obj79; - num3++; - ref GatheringNode reference124 = ref span167[num3]; + ref GatheringNode reference124 = ref span75[1]; GatheringNode obj80 = new GatheringNode { DataId = 31433u }; - num4 = 3; - List list169 = new List(num4); - CollectionsMarshal.SetCount(list169, num4); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new GatheringLocation + num3 = 3; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + Span span76 = CollectionsMarshal.AsSpan(list169); + span76[0] = new GatheringLocation { Position = new Vector3(-349.5501f, 144.6325f, -185.3442f) }; - index2++; - span169[index2] = new GatheringLocation + span76[1] = new GatheringLocation { Position = new Vector3(-398.145f, 145.7528f, -198.2334f), MinimumAngle = 155, MaximumAngle = 360 }; - index2++; - span169[index2] = new GatheringLocation + span76[2] = new GatheringLocation { Position = new Vector3(-374.5566f, 145.3827f, -194.8224f) }; @@ -5018,61 +4291,50 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list160; AddLocation(361, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - index = 1; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - span170[num] = "liza"; + num = 1; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + CollectionsMarshal.AsSpan(list170)[0] = "liza"; gatheringRoot16.Author = list170; num = 2; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - ref QuestStep reference125 = ref span171[index]; + Span span77 = CollectionsMarshal.AsSpan(list171); + ref QuestStep reference125 = ref span77[0]; 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(); - num3 = 1; - List list172 = new List(num3); - CollectionsMarshal.SetCount(list172, num3); - Span span172 = CollectionsMarshal.AsSpan(list172); - num2 = 0; - span172[num2] = 1073; + num2 = 1; + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + CollectionsMarshal.AsSpan(list172)[0] = 1073; skipStepConditions6.InTerritory = list172; skipConditions8.StepIf = skipStepConditions6; obj81.SkipConditions = skipConditions8; reference125 = obj81; - index++; - span171[index] = new QuestStep(EInteractionType.None, null, null, 1073); + span77[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot16.Steps = list171; - index = 3; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref GatheringNodeGroup reference126 = ref span173[num]; + num = 3; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span78 = CollectionsMarshal.AsSpan(list173); + ref GatheringNodeGroup reference126 = ref span78[0]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - num3 = 0; - ref GatheringNode reference127 = ref span174[num3]; + ref GatheringNode reference127 = ref CollectionsMarshal.AsSpan(list174)[0]; GatheringNode obj82 = new GatheringNode { DataId = 33851u }; - index2 = 1; - List list175 = new List(index2); - CollectionsMarshal.SetCount(list175, index2); - Span span175 = CollectionsMarshal.AsSpan(list175); - num4 = 0; - span175[num4] = new GatheringLocation + num3 = 1; + List list175 = new List(num3); + CollectionsMarshal.SetCount(list175, num3); + CollectionsMarshal.AsSpan(list175)[0] = new GatheringLocation { Position = new Vector3(-10.66682f, 499.3763f, 34.01145f) }; @@ -5080,25 +4342,20 @@ public static class AssemblyGatheringLocationLoader reference127 = obj82; gatheringNodeGroup45.Nodes = list174; reference126 = gatheringNodeGroup45; - num++; - ref GatheringNodeGroup reference128 = ref span173[num]; + ref GatheringNodeGroup reference128 = ref span78[1]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num3 = 1; - List list176 = new List(num3); - CollectionsMarshal.SetCount(list176, num3); - Span span176 = CollectionsMarshal.AsSpan(list176); - num2 = 0; - ref GatheringNode reference129 = ref span176[num2]; + num2 = 1; + List list176 = new List(num2); + CollectionsMarshal.SetCount(list176, num2); + ref GatheringNode reference129 = ref CollectionsMarshal.AsSpan(list176)[0]; GatheringNode obj83 = new GatheringNode { DataId = 32269u }; - num4 = 1; - List list177 = new List(num4); - CollectionsMarshal.SetCount(list177, num4); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new GatheringLocation + num3 = 1; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + CollectionsMarshal.AsSpan(list177)[0] = new GatheringLocation { Position = new Vector3(-16.14751f, 499.7353f, 22.38433f) }; @@ -5106,25 +4363,20 @@ public static class AssemblyGatheringLocationLoader reference129 = obj83; gatheringNodeGroup46.Nodes = list176; reference128 = gatheringNodeGroup46; - num++; - ref GatheringNodeGroup reference130 = ref span173[num]; + ref GatheringNodeGroup reference130 = ref span78[2]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - ref GatheringNode reference131 = ref span178[num3]; + ref GatheringNode reference131 = ref CollectionsMarshal.AsSpan(list178)[0]; GatheringNode obj84 = new GatheringNode { DataId = 32766u }; - index2 = 1; - List list179 = new List(index2); - CollectionsMarshal.SetCount(list179, index2); - Span span179 = CollectionsMarshal.AsSpan(list179); - num4 = 0; - span179[num4] = new GatheringLocation + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = new GatheringLocation { Position = new Vector3(-28.72828f, 499.5391f, 33.41306f), MinimumAngle = 125, @@ -5140,58 +4392,47 @@ public static class AssemblyGatheringLocationLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "liza"; + CollectionsMarshal.AsSpan(list180)[0] = "liza"; gatheringRoot17.Author = list180; - index = 2; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestStep reference132 = ref span181[num]; + num = 2; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span79 = CollectionsMarshal.AsSpan(list181); + ref QuestStep reference132 = ref span79[0]; 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(); - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span182 = CollectionsMarshal.AsSpan(list182); - num2 = 0; - span182[num2] = 1073; + num2 = 1; + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + CollectionsMarshal.AsSpan(list182)[0] = 1073; skipStepConditions7.InTerritory = list182; skipConditions9.StepIf = skipStepConditions7; obj85.SkipConditions = skipConditions9; reference132 = obj85; - num++; - span181[num] = new QuestStep(EInteractionType.None, null, null, 1073); + span79[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot17.Steps = list181; num = 3; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - ref GatheringNodeGroup reference133 = ref span183[index]; + Span span80 = CollectionsMarshal.AsSpan(list183); + ref GatheringNodeGroup reference133 = ref span80[0]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - num3 = 0; - ref GatheringNode reference134 = ref span184[num3]; + ref GatheringNode reference134 = ref CollectionsMarshal.AsSpan(list184)[0]; GatheringNode obj86 = new GatheringNode { DataId = 34347u }; - num4 = 1; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new GatheringLocation + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation { Position = new Vector3(-13.64273f, 493.9979f, -58.21632f), MinimumAngle = -5, @@ -5201,25 +4442,20 @@ public static class AssemblyGatheringLocationLoader reference134 = obj86; gatheringNodeGroup48.Nodes = list184; reference133 = gatheringNodeGroup48; - index++; - ref GatheringNodeGroup reference135 = ref span183[index]; + ref GatheringNodeGroup reference135 = ref span80[1]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - num2 = 0; - ref GatheringNode reference136 = ref span186[num2]; + num2 = 1; + List list186 = new List(num2); + CollectionsMarshal.SetCount(list186, num2); + ref GatheringNode reference136 = ref CollectionsMarshal.AsSpan(list186)[0]; GatheringNode obj87 = new GatheringNode { DataId = 34348u }; - index2 = 1; - List list187 = new List(index2); - CollectionsMarshal.SetCount(list187, index2); - Span span187 = CollectionsMarshal.AsSpan(list187); - num4 = 0; - span187[num4] = new GatheringLocation + num3 = 1; + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + CollectionsMarshal.AsSpan(list187)[0] = new GatheringLocation { Position = new Vector3(-22.23647f, 494.0945f, -59.94842f), MinimumAngle = 125, @@ -5229,25 +4465,20 @@ public static class AssemblyGatheringLocationLoader reference136 = obj87; gatheringNodeGroup49.Nodes = list186; reference135 = gatheringNodeGroup49; - index++; - ref GatheringNodeGroup reference137 = ref span183[index]; + ref GatheringNodeGroup reference137 = ref span80[2]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - num3 = 0; - ref GatheringNode reference138 = ref span188[num3]; + ref GatheringNode reference138 = ref CollectionsMarshal.AsSpan(list188)[0]; GatheringNode obj88 = new GatheringNode { DataId = 34334u }; - num4 = 1; - List list189 = new List(num4); - CollectionsMarshal.SetCount(list189, num4); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new GatheringLocation + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation { Position = new Vector3(-20.58942f, 494.25f, -77.68658f), MinimumAngle = -45, @@ -5260,61 +4491,50 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list183; AddLocation(394, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - index = 1; - List list190 = new List(index); - CollectionsMarshal.SetCount(list190, index); - Span span190 = CollectionsMarshal.AsSpan(list190); - num = 0; - span190[num] = "liza"; + num = 1; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + CollectionsMarshal.AsSpan(list190)[0] = "liza"; gatheringRoot18.Author = list190; num = 2; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - ref QuestStep reference139 = ref span191[index]; + Span span81 = CollectionsMarshal.AsSpan(list191); + ref QuestStep reference139 = ref span81[0]; 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(); - num3 = 1; - List list192 = new List(num3); - CollectionsMarshal.SetCount(list192, num3); - Span span192 = CollectionsMarshal.AsSpan(list192); - num2 = 0; - span192[num2] = 1073; + num2 = 1; + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + CollectionsMarshal.AsSpan(list192)[0] = 1073; skipStepConditions8.InTerritory = list192; skipConditions10.StepIf = skipStepConditions8; obj89.SkipConditions = skipConditions10; reference139 = obj89; - index++; - span191[index] = new QuestStep(EInteractionType.None, null, null, 1073); + span81[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot18.Steps = list191; - index = 3; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref GatheringNodeGroup reference140 = ref span193[num]; + num = 3; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span82 = CollectionsMarshal.AsSpan(list193); + ref GatheringNodeGroup reference140 = ref span82[0]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - num3 = 0; - ref GatheringNode reference141 = ref span194[num3]; + ref GatheringNode reference141 = ref CollectionsMarshal.AsSpan(list194)[0]; GatheringNode obj90 = new GatheringNode { DataId = 34350u }; - index2 = 1; - List list195 = new List(index2); - CollectionsMarshal.SetCount(list195, index2); - Span span195 = CollectionsMarshal.AsSpan(list195); - num4 = 0; - span195[num4] = new GatheringLocation + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + CollectionsMarshal.AsSpan(list195)[0] = new GatheringLocation { Position = new Vector3(18.9518f, 485.9131f, -133.3762f) }; @@ -5322,25 +4542,20 @@ public static class AssemblyGatheringLocationLoader reference141 = obj90; gatheringNodeGroup51.Nodes = list194; reference140 = gatheringNodeGroup51; - num++; - ref GatheringNodeGroup reference142 = ref span193[num]; + ref GatheringNodeGroup reference142 = ref span82[1]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num3 = 1; - List list196 = new List(num3); - CollectionsMarshal.SetCount(list196, num3); - Span span196 = CollectionsMarshal.AsSpan(list196); - num2 = 0; - ref GatheringNode reference143 = ref span196[num2]; + num2 = 1; + List list196 = new List(num2); + CollectionsMarshal.SetCount(list196, num2); + ref GatheringNode reference143 = ref CollectionsMarshal.AsSpan(list196)[0]; GatheringNode obj91 = new GatheringNode { DataId = 34351u }; - num4 = 1; - List list197 = new List(num4); - CollectionsMarshal.SetCount(list197, num4); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new GatheringLocation + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation { Position = new Vector3(15.71416f, 486.0302f, -136.2497f) }; @@ -5348,25 +4563,20 @@ public static class AssemblyGatheringLocationLoader reference143 = obj91; gatheringNodeGroup52.Nodes = list196; reference142 = gatheringNodeGroup52; - num++; - ref GatheringNodeGroup reference144 = ref span193[num]; + ref GatheringNodeGroup reference144 = ref span82[2]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - num3 = 0; - ref GatheringNode reference145 = ref span198[num3]; + ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list198)[0]; GatheringNode obj92 = new GatheringNode { DataId = 34349u }; - index2 = 1; - List list199 = new List(index2); - CollectionsMarshal.SetCount(list199, index2); - Span span199 = CollectionsMarshal.AsSpan(list199); - num4 = 0; - span199[num4] = new GatheringLocation + num3 = 1; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + CollectionsMarshal.AsSpan(list199)[0] = new GatheringLocation { Position = new Vector3(9.524881f, 486.2234f, -142.2316f) }; @@ -5380,58 +4590,47 @@ public static class AssemblyGatheringLocationLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; gatheringRoot19.Author = list200; - index = 2; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestStep reference146 = ref span201[num]; + num = 2; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span83 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference146 = ref span83[0]; 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(); - num3 = 1; - List list202 = new List(num3); - CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - num2 = 0; - span202[num2] = 1073; + num2 = 1; + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + CollectionsMarshal.AsSpan(list202)[0] = 1073; skipStepConditions9.InTerritory = list202; skipConditions11.StepIf = skipStepConditions9; obj93.SkipConditions = skipConditions11; reference146 = obj93; - num++; - span201[num] = new QuestStep(EInteractionType.None, null, null, 1073); + span83[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot19.Steps = list201; num = 3; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span203 = CollectionsMarshal.AsSpan(list203); - index = 0; - ref GatheringNodeGroup reference147 = ref span203[index]; + Span span84 = CollectionsMarshal.AsSpan(list203); + ref GatheringNodeGroup reference147 = ref span84[0]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - ref GatheringNode reference148 = ref span204[num3]; + ref GatheringNode reference148 = ref CollectionsMarshal.AsSpan(list204)[0]; GatheringNode obj94 = new GatheringNode { DataId = 34353u }; - num4 = 1; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new GatheringLocation + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = new GatheringLocation { Position = new Vector3(-59.17508f, 494.132f, -1.865536f), MinimumAngle = -35, @@ -5441,25 +4640,20 @@ public static class AssemblyGatheringLocationLoader reference148 = obj94; gatheringNodeGroup54.Nodes = list204; reference147 = gatheringNodeGroup54; - index++; - ref GatheringNodeGroup reference149 = ref span203[index]; + ref GatheringNodeGroup reference149 = ref span84[1]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); - num3 = 1; - List list206 = new List(num3); - CollectionsMarshal.SetCount(list206, num3); - Span span206 = CollectionsMarshal.AsSpan(list206); - num2 = 0; - ref GatheringNode reference150 = ref span206[num2]; + num2 = 1; + List list206 = new List(num2); + CollectionsMarshal.SetCount(list206, num2); + ref GatheringNode reference150 = ref CollectionsMarshal.AsSpan(list206)[0]; GatheringNode obj95 = new GatheringNode { DataId = 34352u }; - index2 = 1; - List list207 = new List(index2); - CollectionsMarshal.SetCount(list207, index2); - Span span207 = CollectionsMarshal.AsSpan(list207); - num4 = 0; - span207[num4] = new GatheringLocation + num3 = 1; + List list207 = new List(num3); + CollectionsMarshal.SetCount(list207, num3); + CollectionsMarshal.AsSpan(list207)[0] = new GatheringLocation { Position = new Vector3(-61.05396f, 495.2124f, -22.16576f), MinimumAngle = -30, @@ -5469,25 +4663,20 @@ public static class AssemblyGatheringLocationLoader reference150 = obj95; gatheringNodeGroup55.Nodes = list206; reference149 = gatheringNodeGroup55; - index++; - ref GatheringNodeGroup reference151 = ref span203[index]; + ref GatheringNodeGroup reference151 = ref span84[2]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - ref GatheringNode reference152 = ref span208[num3]; + ref GatheringNode reference152 = ref CollectionsMarshal.AsSpan(list208)[0]; GatheringNode obj96 = new GatheringNode { DataId = 34354u }; - num4 = 1; - List list209 = new List(num4); - CollectionsMarshal.SetCount(list209, num4); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new GatheringLocation + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation { Position = new Vector3(-90.96052f, 493.2197f, -20.74431f), MinimumAngle = -70, @@ -5500,61 +4689,50 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list203; AddLocation(398, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - index = 1; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - span210[num] = "liza"; + num = 1; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + CollectionsMarshal.AsSpan(list210)[0] = "liza"; gatheringRoot20.Author = list210; num = 2; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span211 = CollectionsMarshal.AsSpan(list211); - index = 0; - ref QuestStep reference153 = ref span211[index]; + Span span85 = CollectionsMarshal.AsSpan(list211); + ref QuestStep reference153 = ref span85[0]; 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(); - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - span212[num2] = 1073; + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + CollectionsMarshal.AsSpan(list212)[0] = 1073; skipStepConditions10.InTerritory = list212; skipConditions12.StepIf = skipStepConditions10; obj97.SkipConditions = skipConditions12; reference153 = obj97; - index++; - span211[index] = new QuestStep(EInteractionType.None, null, null, 1073); + span85[1] = new QuestStep(EInteractionType.None, null, null, 1073); gatheringRoot20.Steps = list211; - index = 3; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref GatheringNodeGroup reference154 = ref span213[num]; + num = 3; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span86 = CollectionsMarshal.AsSpan(list213); + ref GatheringNodeGroup reference154 = ref span86[0]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - num3 = 0; - ref GatheringNode reference155 = ref span214[num3]; + ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; GatheringNode obj98 = new GatheringNode { DataId = 34357u }; - index2 = 1; - List list215 = new List(index2); - CollectionsMarshal.SetCount(list215, index2); - Span span215 = CollectionsMarshal.AsSpan(list215); - num4 = 0; - span215[num4] = new GatheringLocation + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation { Position = new Vector3(-91.21072f, 490.3782f, 41.27306f), MinimumAngle = 140, @@ -5564,25 +4742,20 @@ public static class AssemblyGatheringLocationLoader reference155 = obj98; gatheringNodeGroup57.Nodes = list214; reference154 = gatheringNodeGroup57; - num++; - ref GatheringNodeGroup reference156 = ref span213[num]; + ref GatheringNodeGroup reference156 = ref span86[1]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span216 = CollectionsMarshal.AsSpan(list216); - num2 = 0; - ref GatheringNode reference157 = ref span216[num2]; + num2 = 1; + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list216)[0]; GatheringNode obj99 = new GatheringNode { DataId = 34355u }; - num4 = 1; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new GatheringLocation + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + CollectionsMarshal.AsSpan(list217)[0] = new GatheringLocation { Position = new Vector3(-118.7086f, 490.4538f, 34.37638f), MinimumAngle = 40, @@ -5592,25 +4765,20 @@ public static class AssemblyGatheringLocationLoader reference157 = obj99; gatheringNodeGroup58.Nodes = list216; reference156 = gatheringNodeGroup58; - num++; - ref GatheringNodeGroup reference158 = ref span213[num]; + ref GatheringNodeGroup reference158 = ref span86[2]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num3 = 0; - ref GatheringNode reference159 = ref span218[num3]; + ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; GatheringNode obj100 = new GatheringNode { DataId = 34356u }; - index2 = 1; - List list219 = new List(index2); - CollectionsMarshal.SetCount(list219, index2); - Span span219 = CollectionsMarshal.AsSpan(list219); - num4 = 0; - span219[num4] = new GatheringLocation + num3 = 1; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + CollectionsMarshal.AsSpan(list219)[0] = new GatheringLocation { Position = new Vector3(-105.7026f, 490.5684f, 58.49864f), MinimumAngle = 0, @@ -5630,16 +4798,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -5647,26 +4811,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 32125u }; - int num4 = 1; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index2 = 0; - span5[index2] = new GatheringLocation + int num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation { Position = new Vector3(-317.5445f, 80.03535f, -449.2276f), MinimumAngle = -80, @@ -5674,32 +4834,28 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 32126u }; - index2 = 3; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 3; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + Span span3 = CollectionsMarshal.AsSpan(list6); + span3[0] = new GatheringLocation { Position = new Vector3(-301.3254f, 69.71587f, -485.7171f), MinimumAngle = -125, MaximumAngle = 30 }; - num4++; - span6[num4] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(-311.9155f, 76.91404f, -467.1509f), MinimumAngle = 160, MaximumAngle = 290 }; - num4++; - span6[num4] = new GatheringLocation + span3[2] = new GatheringLocation { Position = new Vector3(-311.1216f, 77.83449f, -454.2029f), MinimumAngle = -110, @@ -5709,39 +4865,34 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span4[0]; GatheringNode obj3 = new GatheringNode { DataId = 32124u }; - num4 = 3; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new GatheringLocation + num3 = 3; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span5 = CollectionsMarshal.AsSpan(list8); + span5[0] = new GatheringLocation { Position = new Vector3(-262.2596f, 62.06842f, -550.8122f), MinimumAngle = 185, MaximumAngle = 335 }; - index2++; - span8[index2] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(-266.0078f, 62.03654f, -564.1611f), MinimumAngle = 180, MaximumAngle = 340 }; - index2++; - span8[index2] = new GatheringLocation + span5[2] = new GatheringLocation { Position = new Vector3(-255.8366f, 62.63577f, -588.0093f), MinimumAngle = 245, @@ -5749,18 +4900,15 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span4[1]; GatheringNode obj4 = new GatheringNode { DataId = 32123u }; - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(-264.8189f, 62.61843f, -558.4091f), MinimumAngle = 175, @@ -5770,42 +4918,35 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span6 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span6[0]; GatheringNode obj5 = new GatheringNode { DataId = 32127u }; - num4 = 1; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new GatheringLocation + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation { Position = new Vector3(-108.2628f, 64.1357f, -485.6675f) }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span6[1]; GatheringNode obj6 = new GatheringNode { DataId = 32128u }; - index2 = 1; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(-103.2401f, 59.26093f, -463.1485f) }; @@ -5816,60 +4957,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(485, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "liza"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = new QuestStep(EInteractionType.None, null, null, 612) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot2.Steps = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref GatheringNodeGroup reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span7 = CollectionsMarshal.AsSpan(list15); + ref GatheringNodeGroup reference10 = ref span7[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num2 = 0; - ref GatheringNode reference11 = ref span16[num2]; + num2 = 2; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + Span span8 = CollectionsMarshal.AsSpan(list16); + ref GatheringNode reference11 = ref span8[0]; GatheringNode obj7 = new GatheringNode { DataId = 32132u }; - num4 = 3; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new GatheringLocation + num3 = 3; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + Span span9 = CollectionsMarshal.AsSpan(list17); + span9[0] = new GatheringLocation { Position = new Vector3(101.0199f, 50.70325f, -410.8297f), MinimumAngle = -55, MaximumAngle = 25 }; - index2++; - span17[index2] = new GatheringLocation + span9[1] = new GatheringLocation { Position = new Vector3(78.0303f, 48.68632f, -401.5028f), MinimumAngle = -50, MaximumAngle = 5 }; - index2++; - span17[index2] = new GatheringLocation + span9[2] = new GatheringLocation { Position = new Vector3(115.4548f, 51.50989f, -415.8416f), MinimumAngle = -115, @@ -5877,18 +5009,15 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - num2++; - ref GatheringNode reference12 = ref span16[num2]; + ref GatheringNode reference12 = ref span8[1]; GatheringNode obj8 = new GatheringNode { DataId = 32131u }; - index2 = 1; - List list18 = new List(index2); - CollectionsMarshal.SetCount(list18, index2); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(90.52106f, 49.82163f, -409.1239f), MinimumAngle = -35, @@ -5898,39 +5027,34 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference13 = ref span15[num]; + ref GatheringNodeGroup reference13 = ref span7[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - ref GatheringNode reference14 = ref span19[num3]; + Span span10 = CollectionsMarshal.AsSpan(list19); + ref GatheringNode reference14 = ref span10[0]; GatheringNode obj9 = new GatheringNode { DataId = 32134u }; - num4 = 3; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new GatheringLocation + num3 = 3; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span11 = CollectionsMarshal.AsSpan(list20); + span11[0] = new GatheringLocation { Position = new Vector3(84.90259f, 44.58842f, -324.1541f), MinimumAngle = -10, MaximumAngle = 105 }; - index2++; - span20[index2] = new GatheringLocation + span11[1] = new GatheringLocation { Position = new Vector3(82.56047f, 44.08657f, -269.3104f), MinimumAngle = -5, MaximumAngle = 80 }; - index2++; - span20[index2] = new GatheringLocation + span11[2] = new GatheringLocation { Position = new Vector3(98.20293f, 43.59855f, -299.3164f), MinimumAngle = 95, @@ -5938,18 +5062,15 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - num3++; - ref GatheringNode reference15 = ref span19[num3]; + ref GatheringNode reference15 = ref span10[1]; GatheringNode obj10 = new GatheringNode { DataId = 32133u }; - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = new GatheringLocation + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation { Position = new Vector3(82.94646f, 42.55737f, -292.9016f), MinimumAngle = 105, @@ -5959,25 +5080,21 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference16 = ref span15[num]; + ref GatheringNodeGroup reference16 = ref span7[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref GatheringNode reference17 = ref span22[num2]; + num2 = 2; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span12 = CollectionsMarshal.AsSpan(list22); + ref GatheringNode reference17 = ref span12[0]; GatheringNode obj11 = new GatheringNode { DataId = 32129u }; - num4 = 1; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new GatheringLocation + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation { Position = new Vector3(240.5221f, 43.60987f, -301.7685f), MinimumAngle = 155, @@ -5985,32 +5102,28 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - num2++; - ref GatheringNode reference18 = ref span22[num2]; + ref GatheringNode reference18 = ref span12[1]; GatheringNode obj12 = new GatheringNode { DataId = 32130u }; - index2 = 3; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new GatheringLocation + num3 = 3; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span13 = CollectionsMarshal.AsSpan(list24); + span13[0] = new GatheringLocation { Position = new Vector3(265.4354f, 43.19557f, -283.7873f), MinimumAngle = -155, MaximumAngle = -15 }; - num4++; - span24[num4] = new GatheringLocation + span13[1] = new GatheringLocation { Position = new Vector3(246.9251f, 43.54385f, -296.2532f), MinimumAngle = 170, MaximumAngle = 225 }; - num4++; - span24[num4] = new GatheringLocation + span13[2] = new GatheringLocation { Position = new Vector3(213.1443f, 43.26488f, -308.4924f), MinimumAngle = 110, @@ -6026,16 +5139,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; gatheringRoot3.Author = list25; - 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) + num = 1; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -6048,40 +5157,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - ref GatheringNodeGroup reference19 = ref span27[index]; + Span span14 = CollectionsMarshal.AsSpan(list27); + ref GatheringNodeGroup reference19 = ref span14[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref GatheringNode reference20 = ref span28[num3]; + Span span15 = CollectionsMarshal.AsSpan(list28); + ref GatheringNode reference20 = ref span15[0]; GatheringNode obj13 = new GatheringNode { DataId = 32140u }; - num4 = 3; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new GatheringLocation + num3 = 3; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span16 = CollectionsMarshal.AsSpan(list29); + span16[0] = new GatheringLocation { Position = new Vector3(210.5032f, 28.51213f, 718.0732f), MinimumAngle = 210, MaximumAngle = 325 }; - index2++; - span29[index2] = new GatheringLocation + span16[1] = new GatheringLocation { Position = new Vector3(202.0474f, 30.18633f, 700.0951f), MinimumAngle = 160, MaximumAngle = 295 }; - index2++; - span29[index2] = new GatheringLocation + span16[2] = new GatheringLocation { Position = new Vector3(195.6331f, 33.43727f, 695.2228f), MinimumAngle = 150, @@ -6089,18 +5193,15 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - num3++; - ref GatheringNode reference21 = ref span28[num3]; + ref GatheringNode reference21 = ref span15[1]; GatheringNode obj14 = new GatheringNode { DataId = 32139u }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation { Position = new Vector3(208.3533f, 28.65312f, 706.8864f), MinimumAngle = 180, @@ -6110,25 +5211,21 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference22 = ref span27[index]; + ref GatheringNodeGroup reference22 = ref span14[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference23 = ref span31[num2]; + num2 = 2; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span17 = CollectionsMarshal.AsSpan(list31); + ref GatheringNode reference23 = ref span17[0]; GatheringNode obj15 = new GatheringNode { DataId = 32135u }; - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new GatheringLocation + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation { Position = new Vector3(67.65472f, 25.89518f, 652.348f), MinimumAngle = -105, @@ -6136,32 +5233,28 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - num2++; - ref GatheringNode reference24 = ref span31[num2]; + ref GatheringNode reference24 = ref span17[1]; GatheringNode obj16 = new GatheringNode { DataId = 32136u }; - index2 = 3; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = new GatheringLocation + num3 = 3; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + Span span18 = CollectionsMarshal.AsSpan(list33); + span18[0] = new GatheringLocation { Position = new Vector3(41.55281f, 27.65364f, 654.9735f), MinimumAngle = -115, MaximumAngle = 35 }; - num4++; - span33[num4] = new GatheringLocation + span18[1] = new GatheringLocation { Position = new Vector3(52.98101f, 27.03981f, 652.5334f), MinimumAngle = -45, MaximumAngle = 55 }; - num4++; - span33[num4] = new GatheringLocation + span18[2] = new GatheringLocation { Position = new Vector3(71.80375f, 26.55341f, 644.8627f), MinimumAngle = 205, @@ -6171,25 +5264,21 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference25 = ref span27[index]; + ref GatheringNodeGroup reference25 = ref span14[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - ref GatheringNode reference26 = ref span34[num3]; + Span span19 = CollectionsMarshal.AsSpan(list34); + ref GatheringNode reference26 = ref span19[0]; GatheringNode obj17 = new GatheringNode { DataId = 32137u }; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new GatheringLocation + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation { Position = new Vector3(136.1673f, 35.7457f, 802.5483f), MinimumAngle = 175, @@ -6197,32 +5286,28 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - num3++; - ref GatheringNode reference27 = ref span34[num3]; + ref GatheringNode reference27 = ref span19[1]; GatheringNode obj18 = new GatheringNode { DataId = 32138u }; - index2 = 3; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span36[num4] = new GatheringLocation + num3 = 3; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + Span span20 = CollectionsMarshal.AsSpan(list36); + span20[0] = new GatheringLocation { Position = new Vector3(120.3011f, 33.62519f, 797.1313f), MinimumAngle = 100, MaximumAngle = 215 }; - num4++; - span36[num4] = new GatheringLocation + span20[1] = new GatheringLocation { Position = new Vector3(137.5746f, 35.89635f, 805.4796f), MinimumAngle = 195, MaximumAngle = 325 }; - num4++; - span36[num4] = new GatheringLocation + span20[2] = new GatheringLocation { Position = new Vector3(136.7552f, 38.41375f, 817.2667f), MinimumAngle = 215, @@ -6235,60 +5320,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(487, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - span37[num] = "liza"; + num = 1; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + CollectionsMarshal.AsSpan(list37)[0] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = new QuestStep(EInteractionType.None, null, null, 614) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; gatheringRoot4.Steps = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref GatheringNodeGroup reference28 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span21 = CollectionsMarshal.AsSpan(list39); + ref GatheringNodeGroup reference28 = ref span21[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref GatheringNode reference29 = ref span40[num2]; + num2 = 2; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span22 = CollectionsMarshal.AsSpan(list40); + ref GatheringNode reference29 = ref span22[0]; GatheringNode obj19 = new GatheringNode { DataId = 32144u }; - num4 = 3; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new GatheringLocation + num3 = 3; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + Span span23 = CollectionsMarshal.AsSpan(list41); + span23[0] = new GatheringLocation { Position = new Vector3(407.4102f, 68.66914f, 19.0117f), MinimumAngle = 105, MaximumAngle = 255 }; - index2++; - span41[index2] = new GatheringLocation + span23[1] = new GatheringLocation { Position = new Vector3(376.4243f, 61.81466f, 5.657309f), MinimumAngle = 170, MaximumAngle = 275 }; - index2++; - span41[index2] = new GatheringLocation + span23[2] = new GatheringLocation { Position = new Vector3(441.2355f, 75.06916f, 17.49573f), MinimumAngle = 110, @@ -6296,18 +5372,15 @@ public static class AssemblyGatheringLocationLoader }; obj19.Locations = list41; reference29 = obj19; - num2++; - ref GatheringNode reference30 = ref span40[num2]; + ref GatheringNode reference30 = ref span22[1]; GatheringNode obj20 = new GatheringNode { DataId = 32143u }; - index2 = 1; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheringLocation + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation { Position = new Vector3(417.9466f, 70.24178f, 19.50875f), MinimumAngle = 140, @@ -6319,37 +5392,32 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference31 = ref span39[num]; + ref GatheringNodeGroup reference31 = ref span21[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - ref GatheringNode reference32 = ref span43[num3]; + Span span24 = CollectionsMarshal.AsSpan(list43); + ref GatheringNode reference32 = ref span24[0]; GatheringNode obj21 = new GatheringNode { DataId = 32142u }; - num4 = 3; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new GatheringLocation + num3 = 3; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + Span span25 = CollectionsMarshal.AsSpan(list44); + span25[0] = new GatheringLocation { Position = new Vector3(606.259f, 93.63981f, 85.09741f), MinimumAngle = 65, MaximumAngle = 185 }; - index2++; - span44[index2] = new GatheringLocation + span25[1] = new GatheringLocation { Position = new Vector3(594.0188f, 87.54358f, 51.05505f) }; - index2++; - span44[index2] = new GatheringLocation + span25[2] = new GatheringLocation { Position = new Vector3(576.0488f, 91.74075f, 114.4922f), MinimumAngle = 75, @@ -6357,18 +5425,15 @@ public static class AssemblyGatheringLocationLoader }; obj21.Locations = list44; reference32 = obj21; - num3++; - ref GatheringNode reference33 = ref span43[num3]; + ref GatheringNode reference33 = ref span24[1]; GatheringNode obj22 = new GatheringNode { DataId = 32141u }; - index2 = 1; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span45[num4] = new GatheringLocation + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(608.4475f, 94.5528f, 80.633f), MinimumAngle = 45, @@ -6378,39 +5443,34 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference34 = ref span39[num]; + ref GatheringNodeGroup reference34 = ref span21[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num3 = 2; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref GatheringNode reference35 = ref span46[num2]; + num2 = 2; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span26 = CollectionsMarshal.AsSpan(list46); + ref GatheringNode reference35 = ref span26[0]; GatheringNode obj23 = new GatheringNode { DataId = 32146u }; - num4 = 3; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new GatheringLocation + num3 = 3; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + Span span27 = CollectionsMarshal.AsSpan(list47); + span27[0] = new GatheringLocation { Position = new Vector3(519.749f, 46.5653f, -59.9632f), MinimumAngle = 25, MaximumAngle = 125 }; - index2++; - span47[index2] = new GatheringLocation + span27[1] = new GatheringLocation { Position = new Vector3(532.2807f, 41.75984f, -85.99076f), MinimumAngle = 55, MaximumAngle = 190 }; - index2++; - span47[index2] = new GatheringLocation + span27[2] = new GatheringLocation { Position = new Vector3(519.0377f, 44.42293f, -67.19048f), MinimumAngle = 30, @@ -6418,18 +5478,15 @@ public static class AssemblyGatheringLocationLoader }; obj23.Locations = list47; reference35 = obj23; - num2++; - ref GatheringNode reference36 = ref span46[num2]; + ref GatheringNode reference36 = ref span26[1]; GatheringNode obj24 = new GatheringNode { DataId = 32145u }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new GatheringLocation + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(520.0951f, 43.35083f, -70.45672f), MinimumAngle = 40, @@ -6445,16 +5502,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; gatheringRoot5.Author = list49; - 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) + num = 1; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -6462,26 +5515,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - ref GatheringNodeGroup reference37 = ref span51[index]; + Span span28 = CollectionsMarshal.AsSpan(list51); + ref GatheringNodeGroup reference37 = ref span28[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - ref GatheringNode reference38 = ref span52[num3]; + Span span29 = CollectionsMarshal.AsSpan(list52); + ref GatheringNode reference38 = ref span29[0]; GatheringNode obj25 = new GatheringNode { DataId = 32147u }; - num4 = 1; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new GatheringLocation + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation { Position = new Vector3(112.743f, 115.1324f, -511.142f), MinimumAngle = -165, @@ -6489,32 +5538,28 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - num3++; - ref GatheringNode reference39 = ref span52[num3]; + ref GatheringNode reference39 = ref span29[1]; GatheringNode obj26 = new GatheringNode { DataId = 32148u }; - index2 = 3; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new GatheringLocation + num3 = 3; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + Span span30 = CollectionsMarshal.AsSpan(list54); + span30[0] = new GatheringLocation { Position = new Vector3(101.6789f, 114.9711f, -506.4506f), MinimumAngle = 20, MaximumAngle = 225 }; - num4++; - span54[num4] = new GatheringLocation + span30[1] = new GatheringLocation { Position = new Vector3(122.53f, 116.4095f, -533.6536f), MinimumAngle = -80, MaximumAngle = 75 }; - num4++; - span54[num4] = new GatheringLocation + span30[2] = new GatheringLocation { Position = new Vector3(108.0162f, 115.2875f, -509.5858f), MinimumAngle = -20, @@ -6524,39 +5569,34 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference40 = ref span51[index]; + ref GatheringNodeGroup reference40 = ref span28[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num3 = 2; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num2 = 0; - ref GatheringNode reference41 = ref span55[num2]; + num2 = 2; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span31 = CollectionsMarshal.AsSpan(list55); + ref GatheringNode reference41 = ref span31[0]; GatheringNode obj27 = new GatheringNode { DataId = 32152u }; - num4 = 3; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new GatheringLocation + num3 = 3; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span32 = CollectionsMarshal.AsSpan(list56); + span32[0] = new GatheringLocation { Position = new Vector3(-6.542124f, 113.9997f, -406.9197f), MinimumAngle = 80, MaximumAngle = 150 }; - index2++; - span56[index2] = new GatheringLocation + span32[1] = new GatheringLocation { Position = new Vector3(-4.06374f, 113.4698f, -413.3034f), MinimumAngle = 80, MaximumAngle = 200 }; - index2++; - span56[index2] = new GatheringLocation + span32[2] = new GatheringLocation { Position = new Vector3(-13.96204f, 113.9696f, -383.4135f), MinimumAngle = 45, @@ -6564,18 +5604,15 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - num2++; - ref GatheringNode reference42 = ref span55[num2]; + ref GatheringNode reference42 = ref span31[1]; GatheringNode obj28 = new GatheringNode { DataId = 32151u }; - index2 = 1; - List list57 = new List(index2); - CollectionsMarshal.SetCount(list57, index2); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = new GatheringLocation + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation { Position = new Vector3(-11.21539f, 114.1222f, -392.7825f), MinimumAngle = 70, @@ -6585,25 +5622,21 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference43 = ref span51[index]; + ref GatheringNodeGroup reference43 = ref span28[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - ref GatheringNode reference44 = ref span58[num3]; + Span span33 = CollectionsMarshal.AsSpan(list58); + ref GatheringNode reference44 = ref span33[0]; GatheringNode obj29 = new GatheringNode { DataId = 32149u }; - num4 = 1; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new GatheringLocation + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation { Position = new Vector3(167.207f, 137.3464f, -336.0433f), MinimumAngle = 85, @@ -6611,32 +5644,28 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - num3++; - ref GatheringNode reference45 = ref span58[num3]; + ref GatheringNode reference45 = ref span33[1]; GatheringNode obj30 = new GatheringNode { DataId = 32150u }; - index2 = 3; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new GatheringLocation + num3 = 3; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + Span span34 = CollectionsMarshal.AsSpan(list60); + span34[0] = new GatheringLocation { Position = new Vector3(176.9339f, 138.3656f, -335.729f), MinimumAngle = 115, MaximumAngle = 220 }; - num4++; - span60[num4] = new GatheringLocation + span34[1] = new GatheringLocation { Position = new Vector3(182.5719f, 138.795f, -333.3691f), MinimumAngle = 195, MaximumAngle = 290 }; - num4++; - span60[num4] = new GatheringLocation + span34[2] = new GatheringLocation { Position = new Vector3(198.0379f, 136.6125f, -337.0126f), MinimumAngle = 60, @@ -6649,76 +5678,64 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(489, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - span61[num] = "liza"; + num = 1; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + CollectionsMarshal.AsSpan(list61)[0] = "liza"; gatheringRoot6.Author = list61; num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span35 = CollectionsMarshal.AsSpan(list62); + span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index++; - span62[index] = new QuestStep(EInteractionType.None, null, null, 613); + span35[1] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot6.Steps = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref GatheringNodeGroup reference46 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span36 = CollectionsMarshal.AsSpan(list63); + ref GatheringNodeGroup reference46 = ref span36[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num3 = 2; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref GatheringNode reference47 = ref span64[num2]; + num2 = 2; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + Span span37 = CollectionsMarshal.AsSpan(list64); + ref GatheringNode reference47 = ref span37[0]; GatheringNode obj31 = new GatheringNode { DataId = 32153u }; - num4 = 1; - List list65 = new List(num4); - CollectionsMarshal.SetCount(list65, num4); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new GatheringLocation + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation { Position = new Vector3(-373.2205f, -136.6522f, -274.8914f) }; obj31.Locations = list65; reference47 = obj31; - num2++; - ref GatheringNode reference48 = ref span64[num2]; + ref GatheringNode reference48 = ref span37[1]; GatheringNode obj32 = new GatheringNode { DataId = 32154u }; - index2 = 3; - List list66 = new List(index2); - CollectionsMarshal.SetCount(list66, index2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num4 = 0; - span66[num4] = new GatheringLocation + num3 = 3; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + Span span38 = CollectionsMarshal.AsSpan(list66); + span38[0] = new GatheringLocation { Position = new Vector3(-448.4877f, -116.7225f, -302.5894f) }; - num4++; - span66[num4] = new GatheringLocation + span38[1] = new GatheringLocation { Position = new Vector3(-367.8707f, -141.2844f, -234.9824f) }; - num4++; - span66[num4] = new GatheringLocation + span38[2] = new GatheringLocation { Position = new Vector3(-410.8549f, -118.3526f, -327.6413f) }; @@ -6726,52 +5743,44 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference49 = ref span63[num]; + ref GatheringNodeGroup reference49 = ref span36[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - ref GatheringNode reference50 = ref span67[num3]; + Span span39 = CollectionsMarshal.AsSpan(list67); + ref GatheringNode reference50 = ref span39[0]; GatheringNode obj33 = new GatheringNode { DataId = 32158u }; - num4 = 3; - List list68 = new List(num4); - CollectionsMarshal.SetCount(list68, num4); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new GatheringLocation + num3 = 3; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + Span span40 = CollectionsMarshal.AsSpan(list68); + span40[0] = new GatheringLocation { Position = new Vector3(-541.3218f, -110.9725f, -162.0661f) }; - index2++; - span68[index2] = new GatheringLocation + span40[1] = new GatheringLocation { Position = new Vector3(-541.0571f, -101.0088f, -238.4313f) }; - index2++; - span68[index2] = new GatheringLocation + span40[2] = new GatheringLocation { Position = new Vector3(-557.3869f, -91.38704f, -232.6365f) }; obj33.Locations = list68; reference50 = obj33; - num3++; - ref GatheringNode reference51 = ref span67[num3]; + ref GatheringNode reference51 = ref span39[1]; GatheringNode obj34 = new GatheringNode { DataId = 32157u }; - index2 = 1; - List list69 = new List(index2); - CollectionsMarshal.SetCount(list69, index2); - Span span69 = CollectionsMarshal.AsSpan(list69); - num4 = 0; - span69[num4] = new GatheringLocation + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation { Position = new Vector3(-527.4707f, -125.4386f, -165.366f) }; @@ -6779,52 +5788,44 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference52 = ref span63[num]; + ref GatheringNodeGroup reference52 = ref span36[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num3 = 2; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref GatheringNode reference53 = ref span70[num2]; + num2 = 2; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span41 = CollectionsMarshal.AsSpan(list70); + ref GatheringNode reference53 = ref span41[0]; GatheringNode obj35 = new GatheringNode { DataId = 32155u }; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new GatheringLocation + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation { Position = new Vector3(-460.3799f, -154.5827f, -110.9484f) }; obj35.Locations = list71; reference53 = obj35; - num2++; - ref GatheringNode reference54 = ref span70[num2]; + ref GatheringNode reference54 = ref span41[1]; GatheringNode obj36 = new GatheringNode { DataId = 32156u }; - index2 = 3; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num4 = 0; - span72[num4] = new GatheringLocation + num3 = 3; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + Span span42 = CollectionsMarshal.AsSpan(list72); + span42[0] = new GatheringLocation { Position = new Vector3(-399.089f, -145.1425f, -6.001478f) }; - num4++; - span72[num4] = new GatheringLocation + span42[1] = new GatheringLocation { Position = new Vector3(-474.2804f, -142.6447f, -92.2213f) }; - num4++; - span72[num4] = new GatheringLocation + span42[2] = new GatheringLocation { Position = new Vector3(-474.9154f, -132.8651f, -73.47042f) }; @@ -6838,16 +5839,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; gatheringRoot7.Author = list73; - 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) + num = 1; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -6855,40 +5852,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - ref GatheringNodeGroup reference55 = ref span75[index]; + Span span43 = CollectionsMarshal.AsSpan(list75); + ref GatheringNodeGroup reference55 = ref span43[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - ref GatheringNode reference56 = ref span76[num3]; + Span span44 = CollectionsMarshal.AsSpan(list76); + ref GatheringNode reference56 = ref span44[0]; GatheringNode obj37 = new GatheringNode { DataId = 32160u }; - num4 = 3; - List list77 = new List(num4); - CollectionsMarshal.SetCount(list77, num4); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new GatheringLocation + num3 = 3; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + Span span45 = CollectionsMarshal.AsSpan(list77); + span45[0] = new GatheringLocation { Position = new Vector3(708.6117f, 111.2374f, -117.7716f), MinimumAngle = -65, MaximumAngle = 45 }; - index2++; - span77[index2] = new GatheringLocation + span45[1] = new GatheringLocation { Position = new Vector3(719.1514f, 103.8884f, -115.8518f), MinimumAngle = 170, MaximumAngle = 240 }; - index2++; - span77[index2] = new GatheringLocation + span45[2] = new GatheringLocation { Position = new Vector3(719.6881f, 103.6927f, -122.8691f), MinimumAngle = -85, @@ -6896,18 +5888,15 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list77; reference56 = obj37; - num3++; - ref GatheringNode reference57 = ref span76[num3]; + ref GatheringNode reference57 = ref span44[1]; GatheringNode obj38 = new GatheringNode { DataId = 32159u }; - index2 = 1; - List list78 = new List(index2); - CollectionsMarshal.SetCount(list78, index2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new GatheringLocation + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation { Position = new Vector3(728.5063f, 104.6812f, -115.4031f), MinimumAngle = 160, @@ -6917,39 +5906,34 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference58 = ref span75[index]; + ref GatheringNodeGroup reference58 = ref span43[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref GatheringNode reference59 = ref span79[num2]; + num2 = 2; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span46 = CollectionsMarshal.AsSpan(list79); + ref GatheringNode reference59 = ref span46[0]; GatheringNode obj39 = new GatheringNode { DataId = 32162u }; - num4 = 3; - List list80 = new List(num4); - CollectionsMarshal.SetCount(list80, num4); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new GatheringLocation + num3 = 3; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + Span span47 = CollectionsMarshal.AsSpan(list80); + span47[0] = new GatheringLocation { Position = new Vector3(786.5566f, 127.8859f, 12.83276f), MinimumAngle = 200, MaximumAngle = 280 }; - index2++; - span80[index2] = new GatheringLocation + span47[1] = new GatheringLocation { Position = new Vector3(843.5591f, 136.583f, 25.3552f), MinimumAngle = 150, MaximumAngle = 205 }; - index2++; - span80[index2] = new GatheringLocation + span47[2] = new GatheringLocation { Position = new Vector3(822.8708f, 132.8188f, 15.71949f), MinimumAngle = 120, @@ -6957,18 +5941,15 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list80; reference59 = obj39; - num2++; - ref GatheringNode reference60 = ref span79[num2]; + ref GatheringNode reference60 = ref span46[1]; GatheringNode obj40 = new GatheringNode { DataId = 32161u }; - index2 = 1; - List list81 = new List(index2); - CollectionsMarshal.SetCount(list81, index2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num4 = 0; - span81[num4] = new GatheringLocation + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation { Position = new Vector3(814.1754f, 132.0118f, 22.69431f), MinimumAngle = 70, @@ -6978,25 +5959,21 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference61 = ref span75[index]; + ref GatheringNodeGroup reference61 = ref span43[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - ref GatheringNode reference62 = ref span82[num3]; + Span span48 = CollectionsMarshal.AsSpan(list82); + ref GatheringNode reference62 = ref span48[0]; GatheringNode obj41 = new GatheringNode { DataId = 32163u }; - num4 = 1; - List list83 = new List(num4); - CollectionsMarshal.SetCount(list83, num4); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new GatheringLocation + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation { Position = new Vector3(893.1265f, 141.6431f, -143.2574f), MinimumAngle = 25, @@ -7004,32 +5981,28 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - num3++; - ref GatheringNode reference63 = ref span82[num3]; + ref GatheringNode reference63 = ref span48[1]; GatheringNode obj42 = new GatheringNode { DataId = 32164u }; - index2 = 3; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num4 = 0; - span84[num4] = new GatheringLocation + num3 = 3; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + Span span49 = CollectionsMarshal.AsSpan(list84); + span49[0] = new GatheringLocation { Position = new Vector3(885.5841f, 139.7701f, -160.253f), MinimumAngle = 35, MaximumAngle = 110 }; - num4++; - span84[num4] = new GatheringLocation + span49[1] = new GatheringLocation { Position = new Vector3(894.9779f, 147.4415f, -128.2257f), MinimumAngle = 20, MaximumAngle = 190 }; - num4++; - span84[num4] = new GatheringLocation + span49[2] = new GatheringLocation { Position = new Vector3(893.0733f, 142.1001f, -140.2642f), MinimumAngle = 30, @@ -7042,60 +6015,51 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(491, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - span85[num] = "liza"; + num = 1; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + CollectionsMarshal.AsSpan(list85)[0] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = new QuestStep(EInteractionType.None, null, null, 621) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; gatheringRoot8.Steps = list86; - index = 3; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref GatheringNodeGroup reference64 = ref span87[num]; + num = 3; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span50 = CollectionsMarshal.AsSpan(list87); + ref GatheringNodeGroup reference64 = ref span50[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref GatheringNode reference65 = ref span88[num2]; + num2 = 2; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + Span span51 = CollectionsMarshal.AsSpan(list88); + ref GatheringNode reference65 = ref span51[0]; GatheringNode obj43 = new GatheringNode { DataId = 32167u }; - num4 = 3; - List list89 = new List(num4); - CollectionsMarshal.SetCount(list89, num4); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new GatheringLocation + num3 = 3; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + Span span52 = CollectionsMarshal.AsSpan(list89); + span52[0] = new GatheringLocation { Position = new Vector3(-569.6677f, 17.29578f, -148.952f), MinimumAngle = 175, MaximumAngle = 300 }; - index2++; - span89[index2] = new GatheringLocation + span52[1] = new GatheringLocation { Position = new Vector3(-575.41f, 18.57019f, -160.1905f), MinimumAngle = -90, MaximumAngle = 15 }; - index2++; - span89[index2] = new GatheringLocation + span52[2] = new GatheringLocation { Position = new Vector3(-569.3643f, 15.97435f, -170.2152f), MinimumAngle = 225, @@ -7103,18 +6067,15 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - num2++; - ref GatheringNode reference66 = ref span88[num2]; + ref GatheringNode reference66 = ref span51[1]; GatheringNode obj44 = new GatheringNode { DataId = 32166u }; - index2 = 1; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num4 = 0; - span90[num4] = new GatheringLocation + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = new GatheringLocation { Position = new Vector3(-578.1491f, 20.07928f, -153.1853f), MinimumAngle = 205, @@ -7124,25 +6085,21 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference67 = ref span87[num]; + ref GatheringNodeGroup reference67 = ref span50[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - ref GatheringNode reference68 = ref span91[num3]; + Span span53 = CollectionsMarshal.AsSpan(list91); + ref GatheringNode reference68 = ref span53[0]; GatheringNode obj45 = new GatheringNode { DataId = 32170u }; - num4 = 1; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new GatheringLocation + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation { Position = new Vector3(-542.444f, 15.60992f, -299.645f), MinimumAngle = 245, @@ -7150,32 +6107,28 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - num3++; - ref GatheringNode reference69 = ref span91[num3]; + ref GatheringNode reference69 = ref span53[1]; GatheringNode obj46 = new GatheringNode { DataId = 32171u }; - index2 = 3; - List list93 = new List(index2); - CollectionsMarshal.SetCount(list93, index2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num4 = 0; - span93[num4] = new GatheringLocation + num3 = 3; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span54 = CollectionsMarshal.AsSpan(list93); + span54[0] = new GatheringLocation { Position = new Vector3(-540.2715f, 16.96567f, -304.0383f), MinimumAngle = 220, MaximumAngle = 350 }; - num4++; - span93[num4] = new GatheringLocation + span54[1] = new GatheringLocation { Position = new Vector3(-516.496f, 21.84032f, -346.177f), MinimumAngle = -55, MaximumAngle = 75 }; - num4++; - span93[num4] = new GatheringLocation + span54[2] = new GatheringLocation { Position = new Vector3(-507.6519f, 9.185992f, -287.0281f), MinimumAngle = 30, @@ -7185,25 +6138,21 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference70 = ref span87[num]; + ref GatheringNodeGroup reference70 = ref span50[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref GatheringNode reference71 = ref span94[num2]; + num2 = 2; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + Span span55 = CollectionsMarshal.AsSpan(list94); + ref GatheringNode reference71 = ref span55[0]; GatheringNode obj47 = new GatheringNode { DataId = 32168u }; - num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new GatheringLocation + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = new GatheringLocation { Position = new Vector3(-404.0753f, 14.02301f, -270.8308f), MinimumAngle = 195, @@ -7211,32 +6160,28 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - num2++; - ref GatheringNode reference72 = ref span94[num2]; + ref GatheringNode reference72 = ref span55[1]; GatheringNode obj48 = new GatheringNode { DataId = 32169u }; - index2 = 3; - List list96 = new List(index2); - CollectionsMarshal.SetCount(list96, index2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num4 = 0; - span96[num4] = new GatheringLocation + num3 = 3; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + Span span56 = CollectionsMarshal.AsSpan(list96); + span56[0] = new GatheringLocation { Position = new Vector3(-393.6106f, 13.93396f, -262.3799f), MinimumAngle = 15, MaximumAngle = 130 }; - num4++; - span96[num4] = new GatheringLocation + span56[1] = new GatheringLocation { Position = new Vector3(-406.0579f, 12.16138f, -255.3292f), MinimumAngle = -145, MaximumAngle = 20 }; - num4++; - span96[num4] = new GatheringLocation + span56[2] = new GatheringLocation { Position = new Vector3(-394.2554f, 13.38954f, -275.8168f), MinimumAngle = 60, @@ -7252,16 +6197,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; gatheringRoot9.Author = list97; - 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) + num = 1; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; @@ -7269,40 +6210,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - ref GatheringNodeGroup reference73 = ref span99[index]; + Span span57 = CollectionsMarshal.AsSpan(list99); + ref GatheringNodeGroup reference73 = ref span57[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - ref GatheringNode reference74 = ref span100[num3]; + Span span58 = CollectionsMarshal.AsSpan(list100); + ref GatheringNode reference74 = ref span58[0]; GatheringNode obj49 = new GatheringNode { DataId = 32176u }; - num4 = 3; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new GatheringLocation + num3 = 3; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span59 = CollectionsMarshal.AsSpan(list101); + span59[0] = new GatheringLocation { Position = new Vector3(411.0592f, 2.207043f, -174.1382f), MinimumAngle = -45, MaximumAngle = 130 }; - index2++; - span101[index2] = new GatheringLocation + span59[1] = new GatheringLocation { Position = new Vector3(382.993f, 13.25345f, -207.7346f), MinimumAngle = 130, MaximumAngle = 295 }; - index2++; - span101[index2] = new GatheringLocation + span59[2] = new GatheringLocation { Position = new Vector3(361.387f, 14.51455f, -203.9765f), MinimumAngle = 90, @@ -7310,18 +6246,15 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - num3++; - ref GatheringNode reference75 = ref span100[num3]; + ref GatheringNode reference75 = ref span58[1]; GatheringNode obj50 = new GatheringNode { DataId = 32175u }; - index2 = 1; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span102[num4] = new GatheringLocation + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation { Position = new Vector3(364.0281f, 14.81319f, -208.0434f), MinimumAngle = 65, @@ -7331,25 +6264,21 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference76 = ref span99[index]; + ref GatheringNodeGroup reference76 = ref span57[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num3 = 2; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num2 = 0; - ref GatheringNode reference77 = ref span103[num2]; + num2 = 2; + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + Span span60 = CollectionsMarshal.AsSpan(list103); + ref GatheringNode reference77 = ref span60[0]; GatheringNode obj51 = new GatheringNode { DataId = 32177u }; - num4 = 1; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new GatheringLocation + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation { Position = new Vector3(326.783f, 27.22089f, -328.1715f), MinimumAngle = -130, @@ -7357,32 +6286,28 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - num2++; - ref GatheringNode reference78 = ref span103[num2]; + ref GatheringNode reference78 = ref span60[1]; GatheringNode obj52 = new GatheringNode { DataId = 32178u }; - index2 = 3; - List list105 = new List(index2); - CollectionsMarshal.SetCount(list105, index2); - Span span105 = CollectionsMarshal.AsSpan(list105); - num4 = 0; - span105[num4] = new GatheringLocation + num3 = 3; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span61 = CollectionsMarshal.AsSpan(list105); + span61[0] = new GatheringLocation { Position = new Vector3(352.0781f, 33.91527f, -369.394f), MinimumAngle = -55, MaximumAngle = 110 }; - num4++; - span105[num4] = new GatheringLocation + span61[1] = new GatheringLocation { Position = new Vector3(319.4689f, 30.05529f, -341.346f), MinimumAngle = 50, MaximumAngle = 215 }; - num4++; - span105[num4] = new GatheringLocation + span61[2] = new GatheringLocation { Position = new Vector3(340.3498f, 34.56527f, -374.391f), MinimumAngle = -90, @@ -7392,25 +6317,21 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference79 = ref span99[index]; + ref GatheringNodeGroup reference79 = ref span57[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - ref GatheringNode reference80 = ref span106[num3]; + Span span62 = CollectionsMarshal.AsSpan(list106); + ref GatheringNode reference80 = ref span62[0]; GatheringNode obj53 = new GatheringNode { DataId = 32173u }; - num4 = 1; - List list107 = new List(num4); - CollectionsMarshal.SetCount(list107, num4); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new GatheringLocation + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation { Position = new Vector3(460.0648f, 32.44811f, -382.8145f), MinimumAngle = 30, @@ -7418,32 +6339,28 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - num3++; - ref GatheringNode reference81 = ref span106[num3]; + ref GatheringNode reference81 = ref span62[1]; GatheringNode obj54 = new GatheringNode { DataId = 32174u }; - index2 = 3; - List list108 = new List(index2); - CollectionsMarshal.SetCount(list108, index2); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = new GatheringLocation + num3 = 3; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + Span span63 = CollectionsMarshal.AsSpan(list108); + span63[0] = new GatheringLocation { Position = new Vector3(488.255f, 26.08804f, -365.4641f), MinimumAngle = 0, MaximumAngle = 195 }; - num4++; - span108[num4] = new GatheringLocation + span63[1] = new GatheringLocation { Position = new Vector3(460.4979f, 30.90669f, -376.0688f), MinimumAngle = 55, MaximumAngle = 180 }; - num4++; - span108[num4] = new GatheringLocation + span63[2] = new GatheringLocation { Position = new Vector3(438.8477f, 38.51477f, -413.352f), MinimumAngle = -70, @@ -7463,16 +6380,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -7480,38 +6393,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 32193u }; - int num4 = 3; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int num5 = 0; - span5[num5] = new GatheringLocation + int num3 = 3; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new GatheringLocation { Position = new Vector3(-249.9619f, 61.05618f, -604.3008f) }; - num5++; - span5[num5] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(-238.5267f, 60.51727f, -560.746f), MinimumAngle = -25, MaximumAngle = 120 }; - num5++; - span5[num5] = new GatheringLocation + span3[2] = new GatheringLocation { Position = new Vector3(-263.4823f, 61.9943f, -566.3988f), MinimumAngle = 115, @@ -7519,18 +6427,15 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 32192u }; - num5 = 1; - List list6 = new List(num5); - CollectionsMarshal.SetCount(list6, num5); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation { Position = new Vector3(-261.7163f, 61.86325f, -574.8586f), MinimumAngle = -140, @@ -7540,39 +6445,34 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span4[0]; GatheringNode obj3 = new GatheringNode { DataId = 32189u }; - num4 = 3; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - num5 = 0; - span8[num5] = new GatheringLocation + num3 = 3; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + Span span5 = CollectionsMarshal.AsSpan(list8); + span5[0] = new GatheringLocation { Position = new Vector3(-260.6172f, 70.60548f, -685.7728f), MinimumAngle = 55, MaximumAngle = 265 }; - num5++; - span8[num5] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(-293.3862f, 75.88585f, -675.9405f), MinimumAngle = -235, MaximumAngle = 10 }; - num5++; - span8[num5] = new GatheringLocation + span5[2] = new GatheringLocation { Position = new Vector3(-289.601f, 73.41101f, -659.3271f), MinimumAngle = 135, @@ -7580,18 +6480,15 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span4[1]; GatheringNode obj4 = new GatheringNode { DataId = 32188u }; - num5 = 1; - List list9 = new List(num5); - CollectionsMarshal.SetCount(list9, num5); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(-267.9963f, 75.16626f, -708.2614f), MinimumAngle = 150, @@ -7601,54 +6498,46 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span6 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span6[0]; GatheringNode obj5 = new GatheringNode { DataId = 32191u }; - num4 = 3; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - num5 = 0; - span11[num5] = new GatheringLocation + num3 = 3; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span7 = CollectionsMarshal.AsSpan(list11); + span7[0] = new GatheringLocation { Position = new Vector3(-97.48006f, 61.31205f, -668.7775f), MinimumAngle = -50, MaximumAngle = 30 }; - num5++; - span11[num5] = new GatheringLocation + span7[1] = new GatheringLocation { Position = new Vector3(-36.55207f, 61.9393f, -606.5457f) }; - num5++; - span11[num5] = new GatheringLocation + span7[2] = new GatheringLocation { Position = new Vector3(-79.96028f, 61.16011f, -625.305f) }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span6[1]; GatheringNode obj6 = new GatheringNode { DataId = 32190u }; - num5 = 1; - List list12 = new List(num5); - CollectionsMarshal.SetCount(list12, num5); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(-88.68313f, 61.06887f, -653.9121f) }; @@ -7659,46 +6548,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(505, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "liza"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = new QuestStep(EInteractionType.None, null, null, 613) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; gatheringRoot2.Steps = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref GatheringNodeGroup reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span8 = CollectionsMarshal.AsSpan(list15); + ref GatheringNodeGroup reference10 = ref span8[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num2 = 0; - ref GatheringNode reference11 = ref span16[num2]; + num2 = 2; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + Span span9 = CollectionsMarshal.AsSpan(list16); + ref GatheringNode reference11 = ref span9[0]; GatheringNode obj7 = new GatheringNode { DataId = 32205u }; - num4 = 1; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - num5 = 0; - span17[num5] = new GatheringLocation + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation { Position = new Vector3(58.18178f, 2.700867f, -778.6965f), MinimumAngle = 45, @@ -7706,18 +6587,15 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - num2++; - ref GatheringNode reference12 = ref span16[num2]; + ref GatheringNode reference12 = ref span9[1]; GatheringNode obj8 = new GatheringNode { DataId = 32204u }; - num5 = 1; - List list18 = new List(num5); - CollectionsMarshal.SetCount(list18, num5); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(72.41409f, 3.151178f, -776.8186f), MinimumAngle = 80, @@ -7727,25 +6605,21 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference13 = ref span15[num]; + ref GatheringNodeGroup reference13 = ref span8[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - ref GatheringNode reference14 = ref span19[num3]; + Span span10 = CollectionsMarshal.AsSpan(list19); + ref GatheringNode reference14 = ref span10[0]; GatheringNode obj9 = new GatheringNode { DataId = 32200u }; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - num5 = 0; - span20[num5] = new GatheringLocation + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation { Position = new Vector3(-69.36879f, 3.296089f, -821.5594f), MinimumAngle = -120, @@ -7753,32 +6627,28 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - num3++; - ref GatheringNode reference15 = ref span19[num3]; + ref GatheringNode reference15 = ref span10[1]; GatheringNode obj10 = new GatheringNode { DataId = 32201u }; - num5 = 3; - List list21 = new List(num5); - CollectionsMarshal.SetCount(list21, num5); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = new GatheringLocation + num3 = 3; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + Span span11 = CollectionsMarshal.AsSpan(list21); + span11[0] = new GatheringLocation { Position = new Vector3(-69.29061f, 3.013922f, -803.5723f), MinimumAngle = 30, MaximumAngle = 185 }; - num4++; - span21[num4] = new GatheringLocation + span11[1] = new GatheringLocation { Position = new Vector3(-58.63464f, 2.637568f, -819.6691f), MinimumAngle = 0, MaximumAngle = 195 }; - num4++; - span21[num4] = new GatheringLocation + span11[2] = new GatheringLocation { Position = new Vector3(-58.09113f, 3.463745f, -787.4418f) }; @@ -7786,25 +6656,21 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference16 = ref span15[num]; + ref GatheringNodeGroup reference16 = ref span8[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref GatheringNode reference17 = ref span22[num2]; + num2 = 2; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span12 = CollectionsMarshal.AsSpan(list22); + ref GatheringNode reference17 = ref span12[0]; GatheringNode obj11 = new GatheringNode { DataId = 32202u }; - num4 = 1; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - num5 = 0; - span23[num5] = new GatheringLocation + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation { Position = new Vector3(-73.56532f, 2.819433f, -633.0066f), MinimumAngle = 195, @@ -7812,32 +6678,28 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - num2++; - ref GatheringNode reference18 = ref span22[num2]; + ref GatheringNode reference18 = ref span12[1]; GatheringNode obj12 = new GatheringNode { DataId = 32203u }; - num5 = 3; - List list24 = new List(num5); - CollectionsMarshal.SetCount(list24, num5); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new GatheringLocation + num3 = 3; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span13 = CollectionsMarshal.AsSpan(list24); + span13[0] = new GatheringLocation { Position = new Vector3(-22.5884f, 3.535999f, -617.6862f), MinimumAngle = 35, MaximumAngle = 225 }; - num4++; - span24[num4] = new GatheringLocation + span13[1] = new GatheringLocation { Position = new Vector3(-84.8622f, 3.222104f, -642.1901f), MinimumAngle = 75, MaximumAngle = 305 }; - num4++; - span24[num4] = new GatheringLocation + span13[2] = new GatheringLocation { Position = new Vector3(-74.18819f, 2.731044f, -645.1037f), MinimumAngle = 20, @@ -7853,16 +6715,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; gatheringRoot3.Author = list25; - 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) + num = 1; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -7870,38 +6728,33 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - ref GatheringNodeGroup reference19 = ref span27[index]; + Span span14 = CollectionsMarshal.AsSpan(list27); + ref GatheringNodeGroup reference19 = ref span14[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref GatheringNode reference20 = ref span28[num3]; + Span span15 = CollectionsMarshal.AsSpan(list28); + ref GatheringNode reference20 = ref span15[0]; GatheringNode obj13 = new GatheringNode { DataId = 32209u }; - num4 = 3; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - num5 = 0; - span29[num5] = new GatheringLocation + num3 = 3; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span16 = CollectionsMarshal.AsSpan(list29); + span16[0] = new GatheringLocation { Position = new Vector3(631.2573f, 127.0901f, -332.0291f), MinimumAngle = 155, MaximumAngle = 300 }; - num5++; - span29[num5] = new GatheringLocation + span16[1] = new GatheringLocation { Position = new Vector3(622.622f, 131.7365f, -383.0027f) }; - num5++; - span29[num5] = new GatheringLocation + span16[2] = new GatheringLocation { Position = new Vector3(652.4154f, 136.6543f, -419.1716f), MinimumAngle = -25, @@ -7909,18 +6762,15 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - num3++; - ref GatheringNode reference21 = ref span28[num3]; + ref GatheringNode reference21 = ref span15[1]; GatheringNode obj14 = new GatheringNode { DataId = 32208u }; - num5 = 1; - List list30 = new List(num5); - CollectionsMarshal.SetCount(list30, num5); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation { Position = new Vector3(629.0482f, 138.9971f, -423.2108f), MinimumAngle = 240, @@ -7930,32 +6780,28 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference22 = ref span27[index]; + ref GatheringNodeGroup reference22 = ref span14[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference23 = ref span31[num2]; + num2 = 2; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span17 = CollectionsMarshal.AsSpan(list31); + ref GatheringNode reference23 = ref span17[0]; GatheringNode obj15 = new GatheringNode { DataId = 32207u }; - num4 = 2; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - num5 = 0; - span32[num5] = new GatheringLocation + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span18 = CollectionsMarshal.AsSpan(list32); + span18[0] = new GatheringLocation { Position = new Vector3(708.5831f, 127.3671f, -351.2474f), MinimumAngle = 0, MaximumAngle = 100 }; - num5++; - span32[num5] = new GatheringLocation + span18[1] = new GatheringLocation { Position = new Vector3(684.129f, 126.6719f, -335.2414f), MinimumAngle = 80, @@ -7963,18 +6809,15 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - num2++; - ref GatheringNode reference24 = ref span31[num2]; + ref GatheringNode reference24 = ref span17[1]; GatheringNode obj16 = new GatheringNode { DataId = 32206u }; - num5 = 1; - List list33 = new List(num5); - CollectionsMarshal.SetCount(list33, num5); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = new GatheringLocation + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation { Position = new Vector3(705.5267f, 125.35f, -370.0978f), MinimumAngle = -35, @@ -7984,25 +6827,21 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference25 = ref span27[index]; + ref GatheringNodeGroup reference25 = ref span14[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - ref GatheringNode reference26 = ref span34[num3]; + Span span19 = CollectionsMarshal.AsSpan(list34); + ref GatheringNode reference26 = ref span19[0]; GatheringNode obj17 = new GatheringNode { DataId = 32210u }; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - num5 = 0; - span35[num5] = new GatheringLocation + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation { Position = new Vector3(791.947f, 101.7719f, -288.1637f), MinimumAngle = 0, @@ -8010,32 +6849,28 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - num3++; - ref GatheringNode reference27 = ref span34[num3]; + ref GatheringNode reference27 = ref span19[1]; GatheringNode obj18 = new GatheringNode { DataId = 32211u }; - num5 = 3; - List list36 = new List(num5); - CollectionsMarshal.SetCount(list36, num5); - Span span36 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span36[num4] = new GatheringLocation + num3 = 3; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + Span span20 = CollectionsMarshal.AsSpan(list36); + span20[0] = new GatheringLocation { Position = new Vector3(788.803f, 103.5642f, -240.686f), MinimumAngle = 75, MaximumAngle = 270 }; - num4++; - span36[num4] = new GatheringLocation + span20[1] = new GatheringLocation { Position = new Vector3(809.0134f, 110.9159f, -306.1294f), MinimumAngle = 120, MaximumAngle = 255 }; - num4++; - span36[num4] = new GatheringLocation + span20[2] = new GatheringLocation { Position = new Vector3(760.2955f, 98.77714f, -209.9551f), MinimumAngle = 0, @@ -8048,75 +6883,63 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(508, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - span37[num] = "liza"; + num = 1; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + CollectionsMarshal.AsSpan(list37)[0] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = new QuestStep(EInteractionType.None, null, null, 612) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot4.Steps = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref GatheringNodeGroup reference28 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span21 = CollectionsMarshal.AsSpan(list39); + ref GatheringNodeGroup reference28 = ref span21[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref GatheringNode reference29 = ref span40[num2]; + num2 = 2; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span22 = CollectionsMarshal.AsSpan(list40); + ref GatheringNode reference29 = ref span22[0]; GatheringNode obj19 = new GatheringNode { DataId = 32217u }; - num4 = 3; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span41 = CollectionsMarshal.AsSpan(list41); - num5 = 0; - span41[num5] = new GatheringLocation + num3 = 3; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + Span span23 = CollectionsMarshal.AsSpan(list41); + span23[0] = new GatheringLocation { Position = new Vector3(-492.6537f, 52.48105f, 114.5392f) }; - num5++; - span41[num5] = new GatheringLocation + span23[1] = new GatheringLocation { Position = new Vector3(-523.8553f, 58.91578f, 174.0902f), MinimumAngle = -185, MaximumAngle = 115 }; - num5++; - span41[num5] = new GatheringLocation + span23[2] = new GatheringLocation { Position = new Vector3(-499.2416f, 54.9705f, 144.132f) }; obj19.Locations = list41; reference29 = obj19; - num2++; - ref GatheringNode reference30 = ref span40[num2]; + ref GatheringNode reference30 = ref span22[1]; GatheringNode obj20 = new GatheringNode { DataId = 32216u }; - num5 = 1; - List list42 = new List(num5); - CollectionsMarshal.SetCount(list42, num5); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheringLocation + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation { Position = new Vector3(-510.2239f, 55.62017f, 137.6676f) }; @@ -8124,54 +6947,46 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference31 = ref span39[num]; + ref GatheringNodeGroup reference31 = ref span21[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - ref GatheringNode reference32 = ref span43[num3]; + Span span24 = CollectionsMarshal.AsSpan(list43); + ref GatheringNode reference32 = ref span24[0]; GatheringNode obj21 = new GatheringNode { DataId = 32215u }; - num4 = 3; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - num5 = 0; - span44[num5] = new GatheringLocation + num3 = 3; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + Span span25 = CollectionsMarshal.AsSpan(list44); + span25[0] = new GatheringLocation { Position = new Vector3(-498.1188f, 57.86262f, 230.4597f) }; - num5++; - span44[num5] = new GatheringLocation + span25[1] = new GatheringLocation { Position = new Vector3(-513.0305f, 56.18323f, 239.2122f), MinimumAngle = -35, MaximumAngle = 235 }; - num5++; - span44[num5] = new GatheringLocation + span25[2] = new GatheringLocation { Position = new Vector3(-506.6473f, 56.30998f, 258.2175f) }; obj21.Locations = list44; reference32 = obj21; - num3++; - ref GatheringNode reference33 = ref span43[num3]; + ref GatheringNode reference33 = ref span24[1]; GatheringNode obj22 = new GatheringNode { DataId = 32214u }; - num5 = 1; - List list45 = new List(num5); - CollectionsMarshal.SetCount(list45, num5); - Span span45 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span45[num4] = new GatheringLocation + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(-509.9459f, 56.21313f, 252.2773f) }; @@ -8179,47 +6994,40 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference34 = ref span39[num]; + ref GatheringNodeGroup reference34 = ref span21[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num3 = 2; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref GatheringNode reference35 = ref span46[num2]; + num2 = 2; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span26 = CollectionsMarshal.AsSpan(list46); + ref GatheringNode reference35 = ref span26[0]; GatheringNode obj23 = new GatheringNode { DataId = 32213u }; - num4 = 2; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span47 = CollectionsMarshal.AsSpan(list47); - num5 = 0; - span47[num5] = new GatheringLocation + num3 = 2; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + Span span27 = CollectionsMarshal.AsSpan(list47); + span27[0] = new GatheringLocation { Position = new Vector3(-391.9599f, 50.21202f, 184.0853f) }; - num5++; - span47[num5] = new GatheringLocation + span27[1] = new GatheringLocation { Position = new Vector3(-419.9665f, 48.34329f, 125.2942f) }; obj23.Locations = list47; reference35 = obj23; - num2++; - ref GatheringNode reference36 = ref span46[num2]; + ref GatheringNode reference36 = ref span26[1]; GatheringNode obj24 = new GatheringNode { DataId = 32212u }; - num5 = 1; - List list48 = new List(num5); - CollectionsMarshal.SetCount(list48, num5); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new GatheringLocation + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(-391.2807f, 47.10617f, 153.422f) }; @@ -8233,16 +7041,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; gatheringRoot5.Author = list49; - 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) + num = 1; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -8250,48 +7054,41 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - ref GatheringNodeGroup reference37 = ref span51[index]; + Span span28 = CollectionsMarshal.AsSpan(list51); + ref GatheringNodeGroup reference37 = ref span28[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - ref GatheringNode reference38 = ref span52[num3]; + Span span29 = CollectionsMarshal.AsSpan(list52); + ref GatheringNode reference38 = ref span29[0]; GatheringNode obj25 = new GatheringNode { DataId = 32223u }; - num4 = 2; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - num5 = 0; - span53[num5] = new GatheringLocation + num3 = 2; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + Span span30 = CollectionsMarshal.AsSpan(list53); + span30[0] = new GatheringLocation { Position = new Vector3(-741.6174f, 6.276045f, -639.2435f) }; - num5++; - span53[num5] = new GatheringLocation + span30[1] = new GatheringLocation { Position = new Vector3(-724.2017f, 2.514658f, -647.5651f) }; obj25.Locations = list53; reference38 = obj25; - num3++; - ref GatheringNode reference39 = ref span52[num3]; + ref GatheringNode reference39 = ref span29[1]; GatheringNode obj26 = new GatheringNode { DataId = 32222u }; - num5 = 1; - List list54 = new List(num5); - CollectionsMarshal.SetCount(list54, num5); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new GatheringLocation + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation { Position = new Vector3(-719.345f, 2.520793f, -645.692f) }; @@ -8299,25 +7096,21 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference40 = ref span51[index]; + ref GatheringNodeGroup reference40 = ref span28[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num3 = 2; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num2 = 0; - ref GatheringNode reference41 = ref span55[num2]; + num2 = 2; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span31 = CollectionsMarshal.AsSpan(list55); + ref GatheringNode reference41 = ref span31[0]; GatheringNode obj27 = new GatheringNode { DataId = 32218u }; - num4 = 1; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span56 = CollectionsMarshal.AsSpan(list56); - num5 = 0; - span56[num5] = new GatheringLocation + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + CollectionsMarshal.AsSpan(list56)[0] = new GatheringLocation { Position = new Vector3(-664.7355f, 15.23751f, -801.2688f), MinimumAngle = -60, @@ -8325,28 +7118,24 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - num2++; - ref GatheringNode reference42 = ref span55[num2]; + ref GatheringNode reference42 = ref span31[1]; GatheringNode obj28 = new GatheringNode { DataId = 32219u }; - num5 = 3; - List list57 = new List(num5); - CollectionsMarshal.SetCount(list57, num5); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = new GatheringLocation + num3 = 3; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + Span span32 = CollectionsMarshal.AsSpan(list57); + span32[0] = new GatheringLocation { Position = new Vector3(-673.4941f, 16.74037f, -818.1156f) }; - num4++; - span57[num4] = new GatheringLocation + span32[1] = new GatheringLocation { Position = new Vector3(-677.8458f, 15.77772f, -809.6718f) }; - num4++; - span57[num4] = new GatheringLocation + span32[2] = new GatheringLocation { Position = new Vector3(-663.3188f, 14.57053f, -797.132f) }; @@ -8354,35 +7143,30 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference43 = ref span51[index]; + ref GatheringNodeGroup reference43 = ref span28[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - ref GatheringNode reference44 = ref span58[num3]; + Span span33 = CollectionsMarshal.AsSpan(list58); + ref GatheringNode reference44 = ref span33[0]; GatheringNode obj29 = new GatheringNode { DataId = 32221u }; - num4 = 3; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span59 = CollectionsMarshal.AsSpan(list59); - num5 = 0; - span59[num5] = new GatheringLocation + num3 = 3; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + Span span34 = CollectionsMarshal.AsSpan(list59); + span34[0] = new GatheringLocation { Position = new Vector3(-502.177f, 36.7399f, -724.8087f) }; - num5++; - span59[num5] = new GatheringLocation + span34[1] = new GatheringLocation { Position = new Vector3(-508.0492f, 33.89026f, -703.5477f) }; - num5++; - span59[num5] = new GatheringLocation + span34[2] = new GatheringLocation { Position = new Vector3(-490.3923f, 36.73062f, -685.7646f), MinimumAngle = -40, @@ -8390,18 +7174,15 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - num3++; - ref GatheringNode reference45 = ref span58[num3]; + ref GatheringNode reference45 = ref span33[1]; GatheringNode obj30 = new GatheringNode { DataId = 32220u }; - num5 = 1; - List list60 = new List(num5); - CollectionsMarshal.SetCount(list60, num5); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new GatheringLocation + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation { Position = new Vector3(-493.5531f, 36.08752f, -687.7089f), MinimumAngle = -70, @@ -8414,76 +7195,64 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(510, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - span61[num] = "liza"; + num = 1; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + CollectionsMarshal.AsSpan(list61)[0] = "liza"; gatheringRoot6.Author = list61; num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span35 = CollectionsMarshal.AsSpan(list62); + span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index++; - span62[index] = new QuestStep(EInteractionType.None, null, null, 613); + span35[1] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot6.Steps = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref GatheringNodeGroup reference46 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span36 = CollectionsMarshal.AsSpan(list63); + ref GatheringNodeGroup reference46 = ref span36[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num3 = 2; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref GatheringNode reference47 = ref span64[num2]; + num2 = 2; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + Span span37 = CollectionsMarshal.AsSpan(list64); + ref GatheringNode reference47 = ref span37[0]; GatheringNode obj31 = new GatheringNode { DataId = 32225u }; - num4 = 3; - List list65 = new List(num4); - CollectionsMarshal.SetCount(list65, num4); - Span span65 = CollectionsMarshal.AsSpan(list65); - num5 = 0; - span65[num5] = new GatheringLocation + num3 = 3; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + Span span38 = CollectionsMarshal.AsSpan(list65); + span38[0] = new GatheringLocation { Position = new Vector3(283.2321f, -105.8964f, -89.553f) }; - num5++; - span65[num5] = new GatheringLocation + span38[1] = new GatheringLocation { Position = new Vector3(251.241f, -112.7794f, -103.9756f) }; - num5++; - span65[num5] = new GatheringLocation + span38[2] = new GatheringLocation { Position = new Vector3(338.0264f, -86.76475f, -30.31015f) }; obj31.Locations = list65; reference47 = obj31; - num2++; - ref GatheringNode reference48 = ref span64[num2]; + ref GatheringNode reference48 = ref span37[1]; GatheringNode obj32 = new GatheringNode { DataId = 32224u }; - num5 = 1; - List list66 = new List(num5); - CollectionsMarshal.SetCount(list66, num5); - Span span66 = CollectionsMarshal.AsSpan(list66); - num4 = 0; - span66[num4] = new GatheringLocation + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation { Position = new Vector3(304.9474f, -98.91968f, -59.39315f) }; @@ -8491,52 +7260,44 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference49 = ref span63[num]; + ref GatheringNodeGroup reference49 = ref span36[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - ref GatheringNode reference50 = ref span67[num3]; + Span span39 = CollectionsMarshal.AsSpan(list67); + ref GatheringNode reference50 = ref span39[0]; GatheringNode obj33 = new GatheringNode { DataId = 32228u }; - num4 = 1; - List list68 = new List(num4); - CollectionsMarshal.SetCount(list68, num4); - Span span68 = CollectionsMarshal.AsSpan(list68); - num5 = 0; - span68[num5] = new GatheringLocation + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + CollectionsMarshal.AsSpan(list68)[0] = new GatheringLocation { Position = new Vector3(260.0728f, -124.0964f, 68.48814f) }; obj33.Locations = list68; reference50 = obj33; - num3++; - ref GatheringNode reference51 = ref span67[num3]; + ref GatheringNode reference51 = ref span39[1]; GatheringNode obj34 = new GatheringNode { DataId = 32229u }; - num5 = 3; - List list69 = new List(num5); - CollectionsMarshal.SetCount(list69, num5); - Span span69 = CollectionsMarshal.AsSpan(list69); - num4 = 0; - span69[num4] = new GatheringLocation + num3 = 3; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + Span span40 = CollectionsMarshal.AsSpan(list69); + span40[0] = new GatheringLocation { Position = new Vector3(265.4464f, -128.0422f, 88.30737f) }; - num4++; - span69[num4] = new GatheringLocation + span40[1] = new GatheringLocation { Position = new Vector3(256.5239f, -113.9164f, -3.19258f) }; - num4++; - span69[num4] = new GatheringLocation + span40[2] = new GatheringLocation { Position = new Vector3(237.8169f, -122.1193f, -35.11102f) }; @@ -8544,52 +7305,44 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference52 = ref span63[num]; + ref GatheringNodeGroup reference52 = ref span36[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num3 = 2; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref GatheringNode reference53 = ref span70[num2]; + num2 = 2; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span41 = CollectionsMarshal.AsSpan(list70); + ref GatheringNode reference53 = ref span41[0]; GatheringNode obj35 = new GatheringNode { DataId = 32226u }; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - Span span71 = CollectionsMarshal.AsSpan(list71); - num5 = 0; - span71[num5] = new GatheringLocation + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation { Position = new Vector3(318.7197f, -88.4566f, 91.66042f) }; obj35.Locations = list71; reference53 = obj35; - num2++; - ref GatheringNode reference54 = ref span70[num2]; + ref GatheringNode reference54 = ref span41[1]; GatheringNode obj36 = new GatheringNode { DataId = 32227u }; - num5 = 3; - List list72 = new List(num5); - CollectionsMarshal.SetCount(list72, num5); - Span span72 = CollectionsMarshal.AsSpan(list72); - num4 = 0; - span72[num4] = new GatheringLocation + num3 = 3; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + Span span42 = CollectionsMarshal.AsSpan(list72); + span42[0] = new GatheringLocation { Position = new Vector3(281.2504f, -113.1205f, 176.6557f) }; - num4++; - span72[num4] = new GatheringLocation + span42[1] = new GatheringLocation { Position = new Vector3(309.1248f, -88.04077f, 109.5688f) }; - num4++; - span72[num4] = new GatheringLocation + span42[2] = new GatheringLocation { Position = new Vector3(312.3843f, -95.51873f, 79.94166f) }; @@ -8603,16 +7356,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; gatheringRoot7.Author = list73; - 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) + num = 1; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -8620,53 +7369,45 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - ref GatheringNodeGroup reference55 = ref span75[index]; + Span span43 = CollectionsMarshal.AsSpan(list75); + ref GatheringNodeGroup reference55 = ref span43[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - ref GatheringNode reference56 = ref span76[num3]; + Span span44 = CollectionsMarshal.AsSpan(list76); + ref GatheringNode reference56 = ref span44[0]; GatheringNode obj37 = new GatheringNode { DataId = 32234u }; - num4 = 1; - List list77 = new List(num4); - CollectionsMarshal.SetCount(list77, num4); - Span span77 = CollectionsMarshal.AsSpan(list77); - num5 = 0; - span77[num5] = new GatheringLocation + num3 = 1; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + CollectionsMarshal.AsSpan(list77)[0] = new GatheringLocation { Position = new Vector3(-381.2856f, 66.03626f, -548.9689f) }; obj37.Locations = list77; reference56 = obj37; - num3++; - ref GatheringNode reference57 = ref span76[num3]; + ref GatheringNode reference57 = ref span44[1]; GatheringNode obj38 = new GatheringNode { DataId = 32235u }; - num5 = 3; - List list78 = new List(num5); - CollectionsMarshal.SetCount(list78, num5); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new GatheringLocation + num3 = 3; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + Span span45 = CollectionsMarshal.AsSpan(list78); + span45[0] = new GatheringLocation { Position = new Vector3(-421.8894f, 69.34563f, -520.4478f) }; - num4++; - span78[num4] = new GatheringLocation + span45[1] = new GatheringLocation { Position = new Vector3(-376.2228f, 66.67438f, -545.8188f) }; - num4++; - span78[num4] = new GatheringLocation + span45[2] = new GatheringLocation { Position = new Vector3(-355.3144f, 66.57961f, -545.7592f) }; @@ -8674,54 +7415,46 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference58 = ref span75[index]; + ref GatheringNodeGroup reference58 = ref span43[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref GatheringNode reference59 = ref span79[num2]; + num2 = 2; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span46 = CollectionsMarshal.AsSpan(list79); + ref GatheringNode reference59 = ref span46[0]; GatheringNode obj39 = new GatheringNode { DataId = 32232u }; - num4 = 1; - List list80 = new List(num4); - CollectionsMarshal.SetCount(list80, num4); - Span span80 = CollectionsMarshal.AsSpan(list80); - num5 = 0; - span80[num5] = new GatheringLocation + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = new GatheringLocation { Position = new Vector3(-517.0562f, 63.73144f, -477.6884f) }; obj39.Locations = list80; reference59 = obj39; - num2++; - ref GatheringNode reference60 = ref span79[num2]; + ref GatheringNode reference60 = ref span46[1]; GatheringNode obj40 = new GatheringNode { DataId = 32233u }; - num5 = 3; - List list81 = new List(num5); - CollectionsMarshal.SetCount(list81, num5); - Span span81 = CollectionsMarshal.AsSpan(list81); - num4 = 0; - span81[num4] = new GatheringLocation + num3 = 3; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + Span span47 = CollectionsMarshal.AsSpan(list81); + span47[0] = new GatheringLocation { Position = new Vector3(-550.7997f, 69.32131f, -449.5795f), MinimumAngle = 0, MaximumAngle = 230 }; - num4++; - span81[num4] = new GatheringLocation + span47[1] = new GatheringLocation { Position = new Vector3(-507.8166f, 66.39982f, -470.319f) }; - num4++; - span81[num4] = new GatheringLocation + span47[2] = new GatheringLocation { Position = new Vector3(-494.5092f, 63.5919f, -497.5369f) }; @@ -8729,25 +7462,21 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference61 = ref span75[index]; + ref GatheringNodeGroup reference61 = ref span43[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - ref GatheringNode reference62 = ref span82[num3]; + Span span48 = CollectionsMarshal.AsSpan(list82); + ref GatheringNode reference62 = ref span48[0]; GatheringNode obj41 = new GatheringNode { DataId = 32230u }; - num4 = 1; - List list83 = new List(num4); - CollectionsMarshal.SetCount(list83, num4); - Span span83 = CollectionsMarshal.AsSpan(list83); - num5 = 0; - span83[num5] = new GatheringLocation + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation { Position = new Vector3(-402.3759f, 95.33111f, -371.9796f), MinimumAngle = -15, @@ -8755,30 +7484,26 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - num3++; - ref GatheringNode reference63 = ref span82[num3]; + ref GatheringNode reference63 = ref span48[1]; GatheringNode obj42 = new GatheringNode { DataId = 32231u }; - num5 = 3; - List list84 = new List(num5); - CollectionsMarshal.SetCount(list84, num5); - Span span84 = CollectionsMarshal.AsSpan(list84); - num4 = 0; - span84[num4] = new GatheringLocation + num3 = 3; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + Span span49 = CollectionsMarshal.AsSpan(list84); + span49[0] = new GatheringLocation { Position = new Vector3(-398.7086f, 95.14203f, -377.1731f), MinimumAngle = 30, MaximumAngle = 230 }; - num4++; - span84[num4] = new GatheringLocation + span49[1] = new GatheringLocation { Position = new Vector3(-427.5446f, 90.42126f, -391.9806f) }; - num4++; - span84[num4] = new GatheringLocation + span49[2] = new GatheringLocation { Position = new Vector3(-398.5008f, 98.82507f, -351.0829f) }; @@ -8789,46 +7514,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(512, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - span85[num] = "liza"; + num = 1; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + CollectionsMarshal.AsSpan(list85)[0] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = new QuestStep(EInteractionType.None, null, null, 612) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; gatheringRoot8.Steps = list86; - index = 3; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref GatheringNodeGroup reference64 = ref span87[num]; + num = 3; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span50 = CollectionsMarshal.AsSpan(list87); + ref GatheringNodeGroup reference64 = ref span50[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref GatheringNode reference65 = ref span88[num2]; + num2 = 2; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + Span span51 = CollectionsMarshal.AsSpan(list88); + ref GatheringNode reference65 = ref span51[0]; GatheringNode obj43 = new GatheringNode { DataId = 32236u }; - num4 = 1; - List list89 = new List(num4); - CollectionsMarshal.SetCount(list89, num4); - Span span89 = CollectionsMarshal.AsSpan(list89); - num5 = 0; - span89[num5] = new GatheringLocation + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation { Position = new Vector3(-590.3985f, 37.74836f, 392.8004f), MinimumAngle = 60, @@ -8836,25 +7553,22 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - num2++; - ref GatheringNode reference66 = ref span88[num2]; + ref GatheringNode reference66 = ref span51[1]; GatheringNode obj44 = new GatheringNode { DataId = 32237u }; - num5 = 2; - List list90 = new List(num5); - CollectionsMarshal.SetCount(list90, num5); - Span span90 = CollectionsMarshal.AsSpan(list90); - num4 = 0; - span90[num4] = new GatheringLocation + num3 = 2; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + Span span52 = CollectionsMarshal.AsSpan(list90); + span52[0] = new GatheringLocation { Position = new Vector3(-713.7814f, 51.18425f, 365.8188f), MinimumAngle = 145, MaximumAngle = 275 }; - num4++; - span90[num4] = new GatheringLocation + span52[1] = new GatheringLocation { Position = new Vector3(-674.6958f, 44.06395f, 347.5866f), MinimumAngle = -70, @@ -8864,32 +7578,28 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference67 = ref span87[num]; + ref GatheringNodeGroup reference67 = ref span50[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - ref GatheringNode reference68 = ref span91[num3]; + Span span53 = CollectionsMarshal.AsSpan(list91); + ref GatheringNode reference68 = ref span53[0]; GatheringNode obj45 = new GatheringNode { DataId = 32239u }; - num4 = 2; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span92 = CollectionsMarshal.AsSpan(list92); - num5 = 0; - span92[num5] = new GatheringLocation + num3 = 2; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + Span span54 = CollectionsMarshal.AsSpan(list92); + span54[0] = new GatheringLocation { Position = new Vector3(-625.3124f, 36.73846f, 442.5669f), MinimumAngle = 140, MaximumAngle = 235 }; - num5++; - span92[num5] = new GatheringLocation + span54[1] = new GatheringLocation { Position = new Vector3(-655.4194f, 40.51354f, 402.2708f), MinimumAngle = -95, @@ -8897,18 +7607,15 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - num3++; - ref GatheringNode reference69 = ref span91[num3]; + ref GatheringNode reference69 = ref span53[1]; GatheringNode obj46 = new GatheringNode { DataId = 32238u }; - num5 = 1; - List list93 = new List(num5); - CollectionsMarshal.SetCount(list93, num5); - Span span93 = CollectionsMarshal.AsSpan(list93); - num4 = 0; - span93[num4] = new GatheringLocation + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation { Position = new Vector3(-628.1135f, 36.66908f, 480.3016f), MinimumAngle = 85, @@ -8918,25 +7625,21 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference70 = ref span87[num]; + ref GatheringNodeGroup reference70 = ref span50[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref GatheringNode reference71 = ref span94[num2]; + num2 = 2; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + Span span55 = CollectionsMarshal.AsSpan(list94); + ref GatheringNode reference71 = ref span55[0]; GatheringNode obj47 = new GatheringNode { DataId = 32240u }; - num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - Span span95 = CollectionsMarshal.AsSpan(list95); - num5 = 0; - span95[num5] = new GatheringLocation + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = new GatheringLocation { Position = new Vector3(-575.3094f, 36.61243f, 500.9136f), MinimumAngle = 15, @@ -8944,25 +7647,22 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - num2++; - ref GatheringNode reference72 = ref span94[num2]; + ref GatheringNode reference72 = ref span55[1]; GatheringNode obj48 = new GatheringNode { DataId = 32241u }; - num5 = 2; - List list96 = new List(num5); - CollectionsMarshal.SetCount(list96, num5); - Span span96 = CollectionsMarshal.AsSpan(list96); - num4 = 0; - span96[num4] = new GatheringLocation + num3 = 2; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + Span span56 = CollectionsMarshal.AsSpan(list96); + span56[0] = new GatheringLocation { Position = new Vector3(-560.735f, 37.00333f, 439.5417f), MinimumAngle = -15, MaximumAngle = 95 }; - num4++; - span96[num4] = new GatheringLocation + span56[1] = new GatheringLocation { Position = new Vector3(-586.5652f, 37.77999f, 459.6001f), MinimumAngle = 40, @@ -8978,16 +7678,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; gatheringRoot9.Author = list97; - 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) + num = 1; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; @@ -8995,40 +7691,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - ref GatheringNodeGroup reference73 = ref span99[index]; + Span span57 = CollectionsMarshal.AsSpan(list99); + ref GatheringNodeGroup reference73 = ref span57[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - ref GatheringNode reference74 = ref span100[num3]; + Span span58 = CollectionsMarshal.AsSpan(list100); + ref GatheringNode reference74 = ref span58[0]; GatheringNode obj49 = new GatheringNode { DataId = 32245u }; - num4 = 3; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span101 = CollectionsMarshal.AsSpan(list101); - num5 = 0; - span101[num5] = new GatheringLocation + num3 = 3; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span59 = CollectionsMarshal.AsSpan(list101); + span59[0] = new GatheringLocation { Position = new Vector3(333.1211f, 20.88004f, -522.5363f), MinimumAngle = 160, MaximumAngle = 335 }; - num5++; - span101[num5] = new GatheringLocation + span59[1] = new GatheringLocation { Position = new Vector3(338.3687f, 21.54188f, -512.1134f), MinimumAngle = 120, MaximumAngle = 275 }; - num5++; - span101[num5] = new GatheringLocation + span59[2] = new GatheringLocation { Position = new Vector3(374.9138f, 25.00688f, -515.2723f), MinimumAngle = -85, @@ -9036,18 +7727,15 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - num3++; - ref GatheringNode reference75 = ref span100[num3]; + ref GatheringNode reference75 = ref span58[1]; GatheringNode obj50 = new GatheringNode { DataId = 32244u }; - num5 = 1; - List list102 = new List(num5); - CollectionsMarshal.SetCount(list102, num5); - Span span102 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span102[num4] = new GatheringLocation + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation { Position = new Vector3(368.5785f, 24.38493f, -507.3824f), MinimumAngle = 65, @@ -9057,39 +7745,34 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference76 = ref span99[index]; + ref GatheringNodeGroup reference76 = ref span57[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num3 = 2; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num2 = 0; - ref GatheringNode reference77 = ref span103[num2]; + num2 = 2; + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + Span span60 = CollectionsMarshal.AsSpan(list103); + ref GatheringNode reference77 = ref span60[0]; GatheringNode obj51 = new GatheringNode { DataId = 32243u }; - num4 = 3; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span104 = CollectionsMarshal.AsSpan(list104); - num5 = 0; - span104[num5] = new GatheringLocation + num3 = 3; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + Span span61 = CollectionsMarshal.AsSpan(list104); + span61[0] = new GatheringLocation { Position = new Vector3(426.1108f, 25.12664f, -607.2003f), MinimumAngle = -20, MaximumAngle = 145 }; - num5++; - span104[num5] = new GatheringLocation + span61[1] = new GatheringLocation { Position = new Vector3(400.1029f, 25.21572f, -648.0899f), MinimumAngle = 190, MaximumAngle = 325 }; - num5++; - span104[num5] = new GatheringLocation + span61[2] = new GatheringLocation { Position = new Vector3(463.1597f, 24.9486f, -602.0026f), MinimumAngle = 0, @@ -9097,18 +7780,15 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - num2++; - ref GatheringNode reference78 = ref span103[num2]; + ref GatheringNode reference78 = ref span60[1]; GatheringNode obj52 = new GatheringNode { DataId = 32242u }; - num5 = 1; - List list105 = new List(num5); - CollectionsMarshal.SetCount(list105, num5); - Span span105 = CollectionsMarshal.AsSpan(list105); - num4 = 0; - span105[num4] = new GatheringLocation + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation { Position = new Vector3(396.3124f, 25.41136f, -663.1417f), MinimumAngle = 20, @@ -9118,39 +7798,34 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference79 = ref span99[index]; + ref GatheringNodeGroup reference79 = ref span57[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - ref GatheringNode reference80 = ref span106[num3]; + Span span62 = CollectionsMarshal.AsSpan(list106); + ref GatheringNode reference80 = ref span62[0]; GatheringNode obj53 = new GatheringNode { DataId = 32247u }; - num4 = 3; - List list107 = new List(num4); - CollectionsMarshal.SetCount(list107, num4); - Span span107 = CollectionsMarshal.AsSpan(list107); - num5 = 0; - span107[num5] = new GatheringLocation + num3 = 3; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span63 = CollectionsMarshal.AsSpan(list107); + span63[0] = new GatheringLocation { Position = new Vector3(274.2476f, 18.49642f, -627.4052f), MinimumAngle = -95, MaximumAngle = 100 }; - num5++; - span107[num5] = new GatheringLocation + span63[1] = new GatheringLocation { Position = new Vector3(248.6237f, 10.63078f, -592.5243f), MinimumAngle = -145, MaximumAngle = 35 }; - num5++; - span107[num5] = new GatheringLocation + span63[2] = new GatheringLocation { Position = new Vector3(259.3484f, 11.24844f, -586.5854f), MinimumAngle = -120, @@ -9158,18 +7833,15 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - num3++; - ref GatheringNode reference81 = ref span106[num3]; + ref GatheringNode reference81 = ref span62[1]; GatheringNode obj54 = new GatheringNode { DataId = 32246u }; - num5 = 1; - List list108 = new List(num5); - CollectionsMarshal.SetCount(list108, num5); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = new GatheringLocation + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation { Position = new Vector3(266.4147f, 18.26739f, -620.2316f), MinimumAngle = 135, @@ -9182,46 +7854,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list99; AddLocation(514, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - index = 1; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - span109[num] = "liza"; + num = 1; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + CollectionsMarshal.AsSpan(list109)[0] = "liza"; gatheringRoot10.Author = list109; num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = new QuestStep(EInteractionType.None, null, null, 622) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot10.Steps = list110; - index = 3; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref GatheringNodeGroup reference82 = ref span111[num]; + num = 3; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span64 = CollectionsMarshal.AsSpan(list111); + ref GatheringNodeGroup reference82 = ref span64[0]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num3 = 2; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span112 = CollectionsMarshal.AsSpan(list112); - num2 = 0; - ref GatheringNode reference83 = ref span112[num2]; + num2 = 2; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span65 = CollectionsMarshal.AsSpan(list112); + ref GatheringNode reference83 = ref span65[0]; GatheringNode obj55 = new GatheringNode { DataId = 32264u }; - num4 = 1; - List list113 = new List(num4); - CollectionsMarshal.SetCount(list113, num4); - Span span113 = CollectionsMarshal.AsSpan(list113); - num5 = 0; - span113[num5] = new GatheringLocation + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation { Position = new Vector3(-166.6597f, 3.616752f, 361.2099f), MinimumAngle = -95, @@ -9229,30 +7893,26 @@ public static class AssemblyGatheringLocationLoader }; obj55.Locations = list113; reference83 = obj55; - num2++; - ref GatheringNode reference84 = ref span112[num2]; + ref GatheringNode reference84 = ref span65[1]; GatheringNode obj56 = new GatheringNode { DataId = 32265u }; - num5 = 3; - List list114 = new List(num5); - CollectionsMarshal.SetCount(list114, num5); - Span span114 = CollectionsMarshal.AsSpan(list114); - num4 = 0; - span114[num4] = new GatheringLocation + num3 = 3; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + Span span66 = CollectionsMarshal.AsSpan(list114); + span66[0] = new GatheringLocation { Position = new Vector3(-191.0201f, 4.361521f, 354.6401f) }; - num4++; - span114[num4] = new GatheringLocation + span66[1] = new GatheringLocation { Position = new Vector3(-162.6655f, 3.441799f, 363.0803f), MinimumAngle = -95, MaximumAngle = 150 }; - num4++; - span114[num4] = new GatheringLocation + span66[2] = new GatheringLocation { Position = new Vector3(-167.5898f, 2.5177f, 377.1267f) }; @@ -9260,52 +7920,44 @@ public static class AssemblyGatheringLocationLoader reference84 = obj56; gatheringNodeGroup28.Nodes = list112; reference82 = gatheringNodeGroup28; - num++; - ref GatheringNodeGroup reference85 = ref span111[num]; + ref GatheringNodeGroup reference85 = ref span64[1]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - ref GatheringNode reference86 = ref span115[num3]; + Span span67 = CollectionsMarshal.AsSpan(list115); + ref GatheringNode reference86 = ref span67[0]; GatheringNode obj57 = new GatheringNode { DataId = 32267u }; - num4 = 3; - List list116 = new List(num4); - CollectionsMarshal.SetCount(list116, num4); - Span span116 = CollectionsMarshal.AsSpan(list116); - num5 = 0; - span116[num5] = new GatheringLocation + num3 = 3; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + Span span68 = CollectionsMarshal.AsSpan(list116); + span68[0] = new GatheringLocation { Position = new Vector3(-271.2292f, 3.341675f, 401.9989f) }; - num5++; - span116[num5] = new GatheringLocation + span68[1] = new GatheringLocation { Position = new Vector3(-349.3433f, 11.88452f, 378.1435f) }; - num5++; - span116[num5] = new GatheringLocation + span68[2] = new GatheringLocation { Position = new Vector3(-298.7296f, 5.809261f, 414.3437f) }; obj57.Locations = list116; reference86 = obj57; - num3++; - ref GatheringNode reference87 = ref span115[num3]; + ref GatheringNode reference87 = ref span67[1]; GatheringNode obj58 = new GatheringNode { DataId = 32266u }; - num5 = 1; - List list117 = new List(num5); - CollectionsMarshal.SetCount(list117, num5); - Span span117 = CollectionsMarshal.AsSpan(list117); - num4 = 0; - span117[num4] = new GatheringLocation + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation { Position = new Vector3(-317.19f, 7.863516f, 397.5005f) }; @@ -9313,52 +7965,44 @@ public static class AssemblyGatheringLocationLoader reference87 = obj58; gatheringNodeGroup29.Nodes = list115; reference85 = gatheringNodeGroup29; - num++; - ref GatheringNodeGroup reference88 = ref span111[num]; + ref GatheringNodeGroup reference88 = ref span64[2]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num3 = 2; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num2 = 0; - ref GatheringNode reference89 = ref span118[num2]; + num2 = 2; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + Span span69 = CollectionsMarshal.AsSpan(list118); + ref GatheringNode reference89 = ref span69[0]; GatheringNode obj59 = new GatheringNode { DataId = 32262u }; - num4 = 1; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - num5 = 0; - span119[num5] = new GatheringLocation + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation { Position = new Vector3(-350.0407f, 22.68479f, 230.4606f) }; obj59.Locations = list119; reference89 = obj59; - num2++; - ref GatheringNode reference90 = ref span118[num2]; + ref GatheringNode reference90 = ref span69[1]; GatheringNode obj60 = new GatheringNode { DataId = 32263u }; - num5 = 3; - List list120 = new List(num5); - CollectionsMarshal.SetCount(list120, num5); - Span span120 = CollectionsMarshal.AsSpan(list120); - num4 = 0; - span120[num4] = new GatheringLocation + num3 = 3; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + Span span70 = CollectionsMarshal.AsSpan(list120); + span70[0] = new GatheringLocation { Position = new Vector3(-352.7808f, 23.99817f, 203.1617f) }; - num4++; - span120[num4] = new GatheringLocation + span70[1] = new GatheringLocation { Position = new Vector3(-345.5888f, 22.30608f, 229.8253f) }; - num4++; - span120[num4] = new GatheringLocation + span70[2] = new GatheringLocation { Position = new Vector3(-377.2188f, 22.65303f, 221.3997f) }; @@ -9372,16 +8016,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "liza"; + CollectionsMarshal.AsSpan(list121)[0] = "liza"; gatheringRoot11.Author = list121; - 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) + num = 1; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -9389,36 +8029,29 @@ public static class AssemblyGatheringLocationLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - ref GatheringNodeGroup reference91 = ref span123[index]; + ref GatheringNodeGroup reference91 = ref CollectionsMarshal.AsSpan(list123)[0]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - ref GatheringNode reference92 = ref span124[num3]; + ref GatheringNode reference92 = ref CollectionsMarshal.AsSpan(list124)[0]; GatheringNode obj61 = new GatheringNode { DataId = 32274u }; - num4 = 3; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span125 = CollectionsMarshal.AsSpan(list125); - num5 = 0; - span125[num5] = new GatheringLocation + num3 = 3; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span71 = CollectionsMarshal.AsSpan(list125); + span71[0] = new GatheringLocation { Position = new Vector3(-737.3265f, 76.50858f, -591.2296f) }; - num5++; - span125[num5] = new GatheringLocation + span71[1] = new GatheringLocation { Position = new Vector3(-787.0406f, 78.22382f, -640.0532f) }; - num5++; - span125[num5] = new GatheringLocation + span71[2] = new GatheringLocation { Position = new Vector3(-670.0129f, 70.42876f, -645.2087f) }; @@ -9429,71 +8062,60 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list123; AddLocation(526, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - index = 1; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - span126[num] = "liza"; + num = 1; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + CollectionsMarshal.AsSpan(list126)[0] = "liza"; gatheringRoot12.Author = list126; num = 2; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span72 = CollectionsMarshal.AsSpan(list127); + span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index++; - span127[index] = new QuestStep(EInteractionType.None, null, null, 613); + span72[1] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot12.Steps = list127; - index = 3; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref GatheringNodeGroup reference93 = ref span128[num]; + num = 3; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + Span span73 = CollectionsMarshal.AsSpan(list128); + ref GatheringNodeGroup reference93 = ref span73[0]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num3 = 2; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - num2 = 0; - ref GatheringNode reference94 = ref span129[num2]; + num2 = 2; + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + Span span74 = CollectionsMarshal.AsSpan(list129); + ref GatheringNode reference94 = ref span74[0]; GatheringNode obj62 = new GatheringNode { DataId = 32282u }; - num5 = 2; - List list130 = new List(num5); - CollectionsMarshal.SetCount(list130, num5); - Span span130 = CollectionsMarshal.AsSpan(list130); - num4 = 0; - span130[num4] = new GatheringLocation + num3 = 2; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + Span span75 = CollectionsMarshal.AsSpan(list130); + span75[0] = new GatheringLocation { Position = new Vector3(-332.5556f, -139.5151f, -276.7727f) }; - num4++; - span130[num4] = new GatheringLocation + span75[1] = new GatheringLocation { Position = new Vector3(-398.5437f, -137.4753f, -264.6068f) }; obj62.Locations = list130; reference94 = obj62; - num2++; - ref GatheringNode reference95 = ref span129[num2]; + ref GatheringNode reference95 = ref span74[1]; GatheringNode obj63 = new GatheringNode { DataId = 32281u }; - num4 = 1; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span131 = CollectionsMarshal.AsSpan(list131); - num5 = 0; - span131[num5] = new GatheringLocation + num3 = 1; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + CollectionsMarshal.AsSpan(list131)[0] = new GatheringLocation { Position = new Vector3(-377.4165f, -151.0521f, -211.4394f) }; @@ -9501,52 +8123,44 @@ public static class AssemblyGatheringLocationLoader reference95 = obj63; gatheringNodeGroup32.Nodes = list129; reference93 = gatheringNodeGroup32; - num++; - ref GatheringNodeGroup reference96 = ref span128[num]; + ref GatheringNodeGroup reference96 = ref span73[1]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - ref GatheringNode reference97 = ref span132[num3]; + Span span76 = CollectionsMarshal.AsSpan(list132); + ref GatheringNode reference97 = ref span76[0]; GatheringNode obj64 = new GatheringNode { DataId = 32277u }; - num5 = 1; - List list133 = new List(num5); - CollectionsMarshal.SetCount(list133, num5); - Span span133 = CollectionsMarshal.AsSpan(list133); - num4 = 0; - span133[num4] = new GatheringLocation + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + CollectionsMarshal.AsSpan(list133)[0] = new GatheringLocation { Position = new Vector3(-509.283f, -107.1854f, -389.3152f) }; obj64.Locations = list133; reference97 = obj64; - num3++; - ref GatheringNode reference98 = ref span132[num3]; + ref GatheringNode reference98 = ref span76[1]; GatheringNode obj65 = new GatheringNode { DataId = 32278u }; - num4 = 3; - List list134 = new List(num4); - CollectionsMarshal.SetCount(list134, num4); - Span span134 = CollectionsMarshal.AsSpan(list134); - num5 = 0; - span134[num5] = new GatheringLocation + num3 = 3; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + Span span77 = CollectionsMarshal.AsSpan(list134); + span77[0] = new GatheringLocation { Position = new Vector3(-470.5726f, -93.28533f, -430.0346f) }; - num5++; - span134[num5] = new GatheringLocation + span77[1] = new GatheringLocation { Position = new Vector3(-549.3453f, -103.2194f, -352.9945f) }; - num5++; - span134[num5] = new GatheringLocation + span77[2] = new GatheringLocation { Position = new Vector3(-548.5269f, -99.45416f, -459.6198f) }; @@ -9554,25 +8168,21 @@ public static class AssemblyGatheringLocationLoader reference98 = obj65; gatheringNodeGroup33.Nodes = list132; reference96 = gatheringNodeGroup33; - num++; - ref GatheringNodeGroup reference99 = ref span128[num]; + ref GatheringNodeGroup reference99 = ref span73[2]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num3 = 2; - List list135 = new List(num3); - CollectionsMarshal.SetCount(list135, num3); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref GatheringNode reference100 = ref span135[num2]; + num2 = 2; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span78 = CollectionsMarshal.AsSpan(list135); + ref GatheringNode reference100 = ref span78[0]; GatheringNode obj66 = new GatheringNode { DataId = 32279u }; - num5 = 1; - List list136 = new List(num5); - CollectionsMarshal.SetCount(list136, num5); - Span span136 = CollectionsMarshal.AsSpan(list136); - num4 = 0; - span136[num4] = new GatheringLocation + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + CollectionsMarshal.AsSpan(list136)[0] = new GatheringLocation { Position = new Vector3(-347.0872f, -72.09894f, -420.7435f), MinimumAngle = -80, @@ -9580,28 +8190,24 @@ public static class AssemblyGatheringLocationLoader }; obj66.Locations = list136; reference100 = obj66; - num2++; - ref GatheringNode reference101 = ref span135[num2]; + ref GatheringNode reference101 = ref span78[1]; GatheringNode obj67 = new GatheringNode { DataId = 32280u }; - num4 = 3; - List list137 = new List(num4); - CollectionsMarshal.SetCount(list137, num4); - Span span137 = CollectionsMarshal.AsSpan(list137); - num5 = 0; - span137[num5] = new GatheringLocation + num3 = 3; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + Span span79 = CollectionsMarshal.AsSpan(list137); + span79[0] = new GatheringLocation { Position = new Vector3(-410.6145f, -86.76735f, -432.2196f) }; - num5++; - span137[num5] = new GatheringLocation + span79[1] = new GatheringLocation { Position = new Vector3(-407.9324f, -108.0931f, -384.4449f) }; - num5++; - span137[num5] = new GatheringLocation + span79[2] = new GatheringLocation { Position = new Vector3(-341.0429f, -89.68655f, -396.5815f), MinimumAngle = -45, @@ -9617,16 +8223,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "liza"; + CollectionsMarshal.AsSpan(list138)[0] = "liza"; gatheringRoot13.Author = list138; - 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) + num = 1; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -9634,26 +8236,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - ref GatheringNodeGroup reference102 = ref span140[index]; + Span span80 = CollectionsMarshal.AsSpan(list140); + ref GatheringNodeGroup reference102 = ref span80[0]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num3 = 0; - ref GatheringNode reference103 = ref span141[num3]; + Span span81 = CollectionsMarshal.AsSpan(list141); + ref GatheringNode reference103 = ref span81[0]; GatheringNode obj68 = new GatheringNode { DataId = 32286u }; - num5 = 1; - List list142 = new List(num5); - CollectionsMarshal.SetCount(list142, num5); - Span span142 = CollectionsMarshal.AsSpan(list142); - num4 = 0; - span142[num4] = new GatheringLocation + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = new GatheringLocation { Position = new Vector3(720.7598f, 247.8707f, -571.472f), MinimumAngle = 115, @@ -9661,25 +8259,22 @@ public static class AssemblyGatheringLocationLoader }; obj68.Locations = list142; reference103 = obj68; - num3++; - ref GatheringNode reference104 = ref span141[num3]; + ref GatheringNode reference104 = ref span81[1]; GatheringNode obj69 = new GatheringNode { DataId = 32287u }; - num4 = 2; - List list143 = new List(num4); - CollectionsMarshal.SetCount(list143, num4); - Span span143 = CollectionsMarshal.AsSpan(list143); - num5 = 0; - span143[num5] = new GatheringLocation + num3 = 2; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + Span span82 = CollectionsMarshal.AsSpan(list143); + span82[0] = new GatheringLocation { Position = new Vector3(749.6198f, 250.0555f, -569.6151f), MinimumAngle = 160, MaximumAngle = 280 }; - num5++; - span143[num5] = new GatheringLocation + span82[1] = new GatheringLocation { Position = new Vector3(700.801f, 248.3289f, -569.3172f), MinimumAngle = 185, @@ -9689,32 +8284,28 @@ public static class AssemblyGatheringLocationLoader reference104 = obj69; gatheringNodeGroup35.Nodes = list141; reference102 = gatheringNodeGroup35; - index++; - ref GatheringNodeGroup reference105 = ref span140[index]; + ref GatheringNodeGroup reference105 = ref span80[1]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num3 = 2; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num2 = 0; - ref GatheringNode reference106 = ref span144[num2]; + num2 = 2; + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + Span span83 = CollectionsMarshal.AsSpan(list144); + ref GatheringNode reference106 = ref span83[0]; GatheringNode obj70 = new GatheringNode { DataId = 32285u }; - num5 = 2; - List list145 = new List(num5); - CollectionsMarshal.SetCount(list145, num5); - Span span145 = CollectionsMarshal.AsSpan(list145); - num4 = 0; - span145[num4] = new GatheringLocation + num3 = 2; + List list145 = new List(num3); + CollectionsMarshal.SetCount(list145, num3); + Span span84 = CollectionsMarshal.AsSpan(list145); + span84[0] = new GatheringLocation { Position = new Vector3(792.5579f, 257.8186f, -661.4872f), MinimumAngle = 80, MaximumAngle = 155 }; - num4++; - span145[num4] = new GatheringLocation + span84[1] = new GatheringLocation { Position = new Vector3(773.1775f, 253.9753f, -671.3119f), MinimumAngle = -80, @@ -9722,18 +8313,15 @@ public static class AssemblyGatheringLocationLoader }; obj70.Locations = list145; reference106 = obj70; - num2++; - ref GatheringNode reference107 = ref span144[num2]; + ref GatheringNode reference107 = ref span83[1]; GatheringNode obj71 = new GatheringNode { DataId = 32284u }; - num4 = 1; - List list146 = new List(num4); - CollectionsMarshal.SetCount(list146, num4); - Span span146 = CollectionsMarshal.AsSpan(list146); - num5 = 0; - span146[num5] = new GatheringLocation + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation { Position = new Vector3(788.1879f, 257.4255f, -669.3115f), MinimumAngle = -50, @@ -9745,32 +8333,28 @@ public static class AssemblyGatheringLocationLoader reference107 = obj71; gatheringNodeGroup36.Nodes = list144; reference105 = gatheringNodeGroup36; - index++; - ref GatheringNodeGroup reference108 = ref span140[index]; + ref GatheringNodeGroup reference108 = ref span80[2]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - num3 = 0; - ref GatheringNode reference109 = ref span147[num3]; + Span span85 = CollectionsMarshal.AsSpan(list147); + ref GatheringNode reference109 = ref span85[0]; GatheringNode obj72 = new GatheringNode { DataId = 32289u }; - num5 = 2; - List list148 = new List(num5); - CollectionsMarshal.SetCount(list148, num5); - Span span148 = CollectionsMarshal.AsSpan(list148); - num4 = 0; - span148[num4] = new GatheringLocation + num3 = 2; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + Span span86 = CollectionsMarshal.AsSpan(list148); + span86[0] = new GatheringLocation { Position = new Vector3(846.4332f, 262.9354f, -500.6171f), MinimumAngle = 40, MaximumAngle = 155 }; - num4++; - span148[num4] = new GatheringLocation + span86[1] = new GatheringLocation { Position = new Vector3(838.9346f, 262.0732f, -527.0631f), MinimumAngle = 60, @@ -9778,18 +8362,15 @@ public static class AssemblyGatheringLocationLoader }; obj72.Locations = list148; reference109 = obj72; - num3++; - ref GatheringNode reference110 = ref span147[num3]; + ref GatheringNode reference110 = ref span85[1]; GatheringNode obj73 = new GatheringNode { DataId = 32288u }; - num4 = 1; - List list149 = new List(num4); - CollectionsMarshal.SetCount(list149, num4); - Span span149 = CollectionsMarshal.AsSpan(list149); - num5 = 0; - span149[num5] = new GatheringLocation + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation { Position = new Vector3(845.8228f, 263.8849f, -511.0472f), MinimumAngle = -30, @@ -9802,68 +8383,57 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list140; AddLocation(531, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - index = 1; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - span150[num] = "liza"; + num = 1; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + CollectionsMarshal.AsSpan(list150)[0] = "liza"; gatheringRoot14.Author = list150; num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = new QuestStep(EInteractionType.None, null, null, 620) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; gatheringRoot14.Steps = list151; - index = 3; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref GatheringNodeGroup reference111 = ref span152[num]; + num = 3; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span87 = CollectionsMarshal.AsSpan(list152); + ref GatheringNodeGroup reference111 = ref span87[0]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num3 = 2; - List list153 = new List(num3); - CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - num2 = 0; - ref GatheringNode reference112 = ref span153[num2]; + num2 = 2; + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + Span span88 = CollectionsMarshal.AsSpan(list153); + ref GatheringNode reference112 = ref span88[0]; GatheringNode obj74 = new GatheringNode { DataId = 32292u }; - num5 = 1; - List list154 = new List(num5); - CollectionsMarshal.SetCount(list154, num5); - Span span154 = CollectionsMarshal.AsSpan(list154); - num4 = 0; - span154[num4] = new GatheringLocation + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new GatheringLocation { Position = new Vector3(-276.0765f, 74.99889f, -751.7645f) }; obj74.Locations = list154; reference112 = obj74; - num2++; - ref GatheringNode reference113 = ref span153[num2]; + ref GatheringNode reference113 = ref span88[1]; GatheringNode obj75 = new GatheringNode { DataId = 32293u }; - num4 = 2; - List list155 = new List(num4); - CollectionsMarshal.SetCount(list155, num4); - Span span155 = CollectionsMarshal.AsSpan(list155); - num5 = 0; - span155[num5] = new GatheringLocation + num3 = 2; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + Span span89 = CollectionsMarshal.AsSpan(list155); + span89[0] = new GatheringLocation { Position = new Vector3(-291.6779f, 75.03039f, -740.0215f) }; - num5++; - span155[num5] = new GatheringLocation + span89[1] = new GatheringLocation { Position = new Vector3(-309.4909f, 74.66329f, -746.8633f) }; @@ -9871,47 +8441,40 @@ public static class AssemblyGatheringLocationLoader reference113 = obj75; gatheringNodeGroup38.Nodes = list153; reference111 = gatheringNodeGroup38; - num++; - ref GatheringNodeGroup reference114 = ref span152[num]; + ref GatheringNodeGroup reference114 = ref span87[1]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - num3 = 0; - ref GatheringNode reference115 = ref span156[num3]; + Span span90 = CollectionsMarshal.AsSpan(list156); + ref GatheringNode reference115 = ref span90[0]; GatheringNode obj76 = new GatheringNode { DataId = 32290u }; - num5 = 1; - List list157 = new List(num5); - CollectionsMarshal.SetCount(list157, num5); - Span span157 = CollectionsMarshal.AsSpan(list157); - num4 = 0; - span157[num4] = new GatheringLocation + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = new GatheringLocation { Position = new Vector3(-377.3709f, 59.22021f, -721.5839f) }; obj76.Locations = list157; reference115 = obj76; - num3++; - ref GatheringNode reference116 = ref span156[num3]; + ref GatheringNode reference116 = ref span90[1]; GatheringNode obj77 = new GatheringNode { DataId = 32291u }; - num4 = 2; - List list158 = new List(num4); - CollectionsMarshal.SetCount(list158, num4); - Span span158 = CollectionsMarshal.AsSpan(list158); - num5 = 0; - span158[num5] = new GatheringLocation + num3 = 2; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + Span span91 = CollectionsMarshal.AsSpan(list158); + span91[0] = new GatheringLocation { Position = new Vector3(-385.6718f, 59.15918f, -741.5427f) }; - num5++; - span158[num5] = new GatheringLocation + span91[1] = new GatheringLocation { Position = new Vector3(-409.1402f, 56.75652f, -746.273f) }; @@ -9919,47 +8482,40 @@ public static class AssemblyGatheringLocationLoader reference116 = obj77; gatheringNodeGroup39.Nodes = list156; reference114 = gatheringNodeGroup39; - num++; - ref GatheringNodeGroup reference117 = ref span152[num]; + ref GatheringNodeGroup reference117 = ref span87[2]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num3 = 2; - List list159 = new List(num3); - CollectionsMarshal.SetCount(list159, num3); - Span span159 = CollectionsMarshal.AsSpan(list159); - num2 = 0; - ref GatheringNode reference118 = ref span159[num2]; + num2 = 2; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + Span span92 = CollectionsMarshal.AsSpan(list159); + ref GatheringNode reference118 = ref span92[0]; GatheringNode obj78 = new GatheringNode { DataId = 32295u }; - num5 = 2; - List list160 = new List(num5); - CollectionsMarshal.SetCount(list160, num5); - Span span160 = CollectionsMarshal.AsSpan(list160); - num4 = 0; - span160[num4] = new GatheringLocation + num3 = 2; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + Span span93 = CollectionsMarshal.AsSpan(list160); + span93[0] = new GatheringLocation { Position = new Vector3(-456.0745f, 57.47042f, -804.0213f) }; - num4++; - span160[num4] = new GatheringLocation + span93[1] = new GatheringLocation { Position = new Vector3(-455.9548f, 57.93848f, -785.8549f) }; obj78.Locations = list160; reference118 = obj78; - num2++; - ref GatheringNode reference119 = ref span159[num2]; + ref GatheringNode reference119 = ref span92[1]; GatheringNode obj79 = new GatheringNode { DataId = 32294u }; - num4 = 1; - List list161 = new List(num4); - CollectionsMarshal.SetCount(list161, num4); - Span span161 = CollectionsMarshal.AsSpan(list161); - num5 = 0; - span161[num5] = new GatheringLocation + num3 = 1; + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + CollectionsMarshal.AsSpan(list161)[0] = new GatheringLocation { Position = new Vector3(-472.6482f, 57.45007f, -798.8556f) }; @@ -9973,16 +8529,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "liza"; + CollectionsMarshal.AsSpan(list162)[0] = "liza"; gatheringRoot15.Author = list162; - 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) + num = 1; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -9996,26 +8548,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span164 = CollectionsMarshal.AsSpan(list164); - index = 0; - ref GatheringNodeGroup reference120 = ref span164[index]; + Span span94 = CollectionsMarshal.AsSpan(list164); + ref GatheringNodeGroup reference120 = ref span94[0]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num3 = 0; - ref GatheringNode reference121 = ref span165[num3]; + Span span95 = CollectionsMarshal.AsSpan(list165); + ref GatheringNode reference121 = ref span95[0]; GatheringNode obj80 = new GatheringNode { DataId = 32296u }; - num5 = 1; - List list166 = new List(num5); - CollectionsMarshal.SetCount(list166, num5); - Span span166 = CollectionsMarshal.AsSpan(list166); - num4 = 0; - span166[num4] = new GatheringLocation + num3 = 1; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + CollectionsMarshal.AsSpan(list166)[0] = new GatheringLocation { Position = new Vector3(-216.1387f, 0.6300181f, 616.7697f), MinimumAngle = 180, @@ -10023,18 +8571,16 @@ public static class AssemblyGatheringLocationLoader }; obj80.Locations = list166; reference121 = obj80; - num3++; - ref GatheringNode reference122 = ref span165[num3]; + ref GatheringNode reference122 = ref span95[1]; GatheringNode obj81 = new GatheringNode { DataId = 32297u }; - num4 = 2; - List list167 = new List(num4); - CollectionsMarshal.SetCount(list167, num4); - Span span167 = CollectionsMarshal.AsSpan(list167); - num5 = 0; - span167[num5] = new GatheringLocation + num3 = 2; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + Span span96 = CollectionsMarshal.AsSpan(list167); + span96[0] = new GatheringLocation { Position = new Vector3(-236.5302f, 0.503479f, 634.821f), MinimumAngle = 45, @@ -10042,8 +8588,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.6f, MaximumDistance = 3f }; - num5++; - span167[num5] = new GatheringLocation + span96[1] = new GatheringLocation { Position = new Vector3(-242.0282f, 1.464991f, 649.7866f), MinimumAngle = -20, @@ -10053,25 +8598,21 @@ public static class AssemblyGatheringLocationLoader reference122 = obj81; gatheringNodeGroup41.Nodes = list165; reference120 = gatheringNodeGroup41; - index++; - ref GatheringNodeGroup reference123 = ref span164[index]; + ref GatheringNodeGroup reference123 = ref span94[1]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num3 = 2; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - num2 = 0; - ref GatheringNode reference124 = ref span168[num2]; + num2 = 2; + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + Span span97 = CollectionsMarshal.AsSpan(list168); + ref GatheringNode reference124 = ref span97[0]; GatheringNode obj82 = new GatheringNode { DataId = 32298u }; - num5 = 1; - List list169 = new List(num5); - CollectionsMarshal.SetCount(list169, num5); - Span span169 = CollectionsMarshal.AsSpan(list169); - num4 = 0; - span169[num4] = new GatheringLocation + num3 = 1; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + CollectionsMarshal.AsSpan(list169)[0] = new GatheringLocation { Position = new Vector3(-267.9128f, 0.6036554f, 722.319f), MinimumAngle = 230, @@ -10079,25 +8620,22 @@ public static class AssemblyGatheringLocationLoader }; obj82.Locations = list169; reference124 = obj82; - num2++; - ref GatheringNode reference125 = ref span168[num2]; + ref GatheringNode reference125 = ref span97[1]; GatheringNode obj83 = new GatheringNode { DataId = 32299u }; - num4 = 2; - List list170 = new List(num4); - CollectionsMarshal.SetCount(list170, num4); - Span span170 = CollectionsMarshal.AsSpan(list170); - num5 = 0; - span170[num5] = new GatheringLocation + num3 = 2; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + Span span98 = CollectionsMarshal.AsSpan(list170); + span98[0] = new GatheringLocation { Position = new Vector3(-275.2201f, 1.438162f, 727.0667f), MinimumAngle = 0, MaximumAngle = 105 }; - num5++; - span170[num5] = new GatheringLocation + span98[1] = new GatheringLocation { Position = new Vector3(-277.8375f, 2.060616f, 721.6605f), MinimumAngle = 20, @@ -10107,25 +8645,21 @@ public static class AssemblyGatheringLocationLoader reference125 = obj83; gatheringNodeGroup42.Nodes = list168; reference123 = gatheringNodeGroup42; - index++; - ref GatheringNodeGroup reference126 = ref span164[index]; + ref GatheringNodeGroup reference126 = ref span94[2]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - num3 = 0; - ref GatheringNode reference127 = ref span171[num3]; + Span span99 = CollectionsMarshal.AsSpan(list171); + ref GatheringNode reference127 = ref span99[0]; GatheringNode obj84 = new GatheringNode { DataId = 32300u }; - num5 = 1; - List list172 = new List(num5); - CollectionsMarshal.SetCount(list172, num5); - Span span172 = CollectionsMarshal.AsSpan(list172); - num4 = 0; - span172[num4] = new GatheringLocation + num3 = 1; + List list172 = new List(num3); + CollectionsMarshal.SetCount(list172, num3); + CollectionsMarshal.AsSpan(list172)[0] = new GatheringLocation { Position = new Vector3(-148.4246f, 11.42871f, 776.8299f), MinimumAngle = 105, @@ -10133,25 +8667,22 @@ public static class AssemblyGatheringLocationLoader }; obj84.Locations = list172; reference127 = obj84; - num3++; - ref GatheringNode reference128 = ref span171[num3]; + ref GatheringNode reference128 = ref span99[1]; GatheringNode obj85 = new GatheringNode { DataId = 32301u }; - num4 = 2; - List list173 = new List(num4); - CollectionsMarshal.SetCount(list173, num4); - Span span173 = CollectionsMarshal.AsSpan(list173); - num5 = 0; - span173[num5] = new GatheringLocation + num3 = 2; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + Span span100 = CollectionsMarshal.AsSpan(list173); + span100[0] = new GatheringLocation { Position = new Vector3(-135.4789f, 11.61927f, 765.4382f), MinimumAngle = 45, MaximumAngle = 155 }; - num5++; - span173[num5] = new GatheringLocation + span100[1] = new GatheringLocation { Position = new Vector3(-169.3294f, 11.36792f, 784.0237f), MinimumAngle = 85, @@ -10164,68 +8695,57 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list164; AddLocation(533, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - index = 1; - List list174 = new List(index); - CollectionsMarshal.SetCount(list174, index); - Span span174 = CollectionsMarshal.AsSpan(list174); - num = 0; - span174[num] = "liza"; + num = 1; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + CollectionsMarshal.AsSpan(list174)[0] = "liza"; gatheringRoot16.Author = list174; num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = new QuestStep(EInteractionType.None, null, null, 613) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; gatheringRoot16.Steps = list175; - index = 3; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref GatheringNodeGroup reference129 = ref span176[num]; + num = 3; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span101 = CollectionsMarshal.AsSpan(list176); + ref GatheringNodeGroup reference129 = ref span101[0]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num3 = 2; - List list177 = new List(num3); - CollectionsMarshal.SetCount(list177, num3); - Span span177 = CollectionsMarshal.AsSpan(list177); - num2 = 0; - ref GatheringNode reference130 = ref span177[num2]; + num2 = 2; + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + Span span102 = CollectionsMarshal.AsSpan(list177); + ref GatheringNode reference130 = ref span102[0]; GatheringNode obj86 = new GatheringNode { DataId = 32302u }; - num5 = 1; - List list178 = new List(num5); - CollectionsMarshal.SetCount(list178, num5); - Span span178 = CollectionsMarshal.AsSpan(list178); - num4 = 0; - span178[num4] = new GatheringLocation + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + CollectionsMarshal.AsSpan(list178)[0] = new GatheringLocation { Position = new Vector3(831.4452f, 48.62377f, -131.4108f) }; obj86.Locations = list178; reference130 = obj86; - num2++; - ref GatheringNode reference131 = ref span177[num2]; + ref GatheringNode reference131 = ref span102[1]; GatheringNode obj87 = new GatheringNode { DataId = 32303u }; - num4 = 2; - List list179 = new List(num4); - CollectionsMarshal.SetCount(list179, num4); - Span span179 = CollectionsMarshal.AsSpan(list179); - num5 = 0; - span179[num5] = new GatheringLocation + num3 = 2; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + Span span103 = CollectionsMarshal.AsSpan(list179); + span103[0] = new GatheringLocation { Position = new Vector3(865.9036f, 46.76892f, -129.9611f) }; - num5++; - span179[num5] = new GatheringLocation + span103[1] = new GatheringLocation { Position = new Vector3(822.6691f, 48.57434f, -130.6889f) }; @@ -10233,47 +8753,40 @@ public static class AssemblyGatheringLocationLoader reference131 = obj87; gatheringNodeGroup44.Nodes = list177; reference129 = gatheringNodeGroup44; - num++; - ref GatheringNodeGroup reference132 = ref span176[num]; + ref GatheringNodeGroup reference132 = ref span101[1]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - num3 = 0; - ref GatheringNode reference133 = ref span180[num3]; + Span span104 = CollectionsMarshal.AsSpan(list180); + ref GatheringNode reference133 = ref span104[0]; GatheringNode obj88 = new GatheringNode { DataId = 32305u }; - num5 = 2; - List list181 = new List(num5); - CollectionsMarshal.SetCount(list181, num5); - Span span181 = CollectionsMarshal.AsSpan(list181); - num4 = 0; - span181[num4] = new GatheringLocation + num3 = 2; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + Span span105 = CollectionsMarshal.AsSpan(list181); + span105[0] = new GatheringLocation { Position = new Vector3(780.787f, 51.3394f, -265.6496f) }; - num4++; - span181[num4] = new GatheringLocation + span105[1] = new GatheringLocation { Position = new Vector3(824.1245f, 40.93994f, -250.4464f) }; obj88.Locations = list181; reference133 = obj88; - num3++; - ref GatheringNode reference134 = ref span180[num3]; + ref GatheringNode reference134 = ref span104[1]; GatheringNode obj89 = new GatheringNode { DataId = 32304u }; - num4 = 1; - List list182 = new List(num4); - CollectionsMarshal.SetCount(list182, num4); - Span span182 = CollectionsMarshal.AsSpan(list182); - num5 = 0; - span182[num5] = new GatheringLocation + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + CollectionsMarshal.AsSpan(list182)[0] = new GatheringLocation { Position = new Vector3(816.6475f, 41.2146f, -263.6606f) }; @@ -10281,25 +8794,21 @@ public static class AssemblyGatheringLocationLoader reference134 = obj89; gatheringNodeGroup45.Nodes = list180; reference132 = gatheringNodeGroup45; - num++; - ref GatheringNodeGroup reference135 = ref span176[num]; + ref GatheringNodeGroup reference135 = ref span101[2]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num3 = 2; - List list183 = new List(num3); - CollectionsMarshal.SetCount(list183, num3); - Span span183 = CollectionsMarshal.AsSpan(list183); - num2 = 0; - ref GatheringNode reference136 = ref span183[num2]; + num2 = 2; + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + Span span106 = CollectionsMarshal.AsSpan(list183); + ref GatheringNode reference136 = ref span106[0]; GatheringNode obj90 = new GatheringNode { DataId = 32306u }; - num5 = 1; - List list184 = new List(num5); - CollectionsMarshal.SetCount(list184, num5); - Span span184 = CollectionsMarshal.AsSpan(list184); - num4 = 0; - span184[num4] = new GatheringLocation + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + CollectionsMarshal.AsSpan(list184)[0] = new GatheringLocation { Position = new Vector3(648.2073f, 75.29906f, -226.7926f), MinimumAngle = 25, @@ -10307,23 +8816,20 @@ public static class AssemblyGatheringLocationLoader }; obj90.Locations = list184; reference136 = obj90; - num2++; - ref GatheringNode reference137 = ref span183[num2]; + ref GatheringNode reference137 = ref span106[1]; GatheringNode obj91 = new GatheringNode { DataId = 32307u }; - num4 = 2; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - num5 = 0; - span185[num5] = new GatheringLocation + num3 = 2; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + Span span107 = CollectionsMarshal.AsSpan(list185); + span107[0] = new GatheringLocation { Position = new Vector3(652.0435f, 71.82505f, -241.2778f) }; - num5++; - span185[num5] = new GatheringLocation + span107[1] = new GatheringLocation { Position = new Vector3(645.0362f, 69.79202f, -255.1373f) }; @@ -10337,16 +8843,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "liza"; + CollectionsMarshal.AsSpan(list186)[0] = "liza"; gatheringRoot17.Author = list186; - 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) + num = 1; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -10354,40 +8856,33 @@ public static class AssemblyGatheringLocationLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - ref GatheringNodeGroup reference138 = ref span188[index]; + ref GatheringNodeGroup reference138 = ref CollectionsMarshal.AsSpan(list188)[0]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - ref GatheringNode reference139 = ref span189[num3]; + ref GatheringNode reference139 = ref CollectionsMarshal.AsSpan(list189)[0]; GatheringNode obj92 = new GatheringNode { DataId = 32308u }; - num5 = 3; - List list190 = new List(num5); - CollectionsMarshal.SetCount(list190, num5); - Span span190 = CollectionsMarshal.AsSpan(list190); - num4 = 0; - span190[num4] = new GatheringLocation + num3 = 3; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + Span span108 = CollectionsMarshal.AsSpan(list190); + span108[0] = new GatheringLocation { Position = new Vector3(-531.8166f, 16.39526f, 34.16671f), MinimumAngle = 245, MaximumAngle = 325 }; - num4++; - span190[num4] = new GatheringLocation + span108[1] = new GatheringLocation { Position = new Vector3(-532.9277f, 15.60621f, 50.29741f), MinimumAngle = 190, MaximumAngle = 330 }; - num4++; - span190[num4] = new GatheringLocation + span108[2] = new GatheringLocation { Position = new Vector3(-520.6714f, 14.15115f, 73.84262f), MinimumAngle = 105, @@ -10400,43 +8895,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list188; AddLocation(535, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - index = 1; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - span191[num] = "Theo"; + num = 1; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + CollectionsMarshal.AsSpan(list191)[0] = "Theo"; gatheringRoot18.Author = list191; num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = new QuestStep(EInteractionType.None, null, null, 622); + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.None, null, null, 622); gatheringRoot18.Steps = list192; - index = 1; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref GatheringNodeGroup reference140 = ref span193[num]; + num = 1; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + ref GatheringNodeGroup reference140 = ref CollectionsMarshal.AsSpan(list193)[0]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num3 = 3; - List list194 = new List(num3); - CollectionsMarshal.SetCount(list194, num3); - Span span194 = CollectionsMarshal.AsSpan(list194); - num2 = 0; - ref GatheringNode reference141 = ref span194[num2]; + num2 = 3; + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + Span span109 = CollectionsMarshal.AsSpan(list194); + ref GatheringNode reference141 = ref span109[0]; GatheringNode obj93 = new GatheringNode { DataId = 32314u }; - num4 = 1; - List list195 = new List(num4); - CollectionsMarshal.SetCount(list195, num4); - Span span195 = CollectionsMarshal.AsSpan(list195); - num5 = 0; - span195[num5] = new GatheringLocation + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + CollectionsMarshal.AsSpan(list195)[0] = new GatheringLocation { Position = new Vector3(-506.7959f, 67.50204f, -406.9001f), MinimumAngle = 5, @@ -10446,18 +8932,15 @@ public static class AssemblyGatheringLocationLoader }; obj93.Locations = list195; reference141 = obj93; - num2++; - ref GatheringNode reference142 = ref span194[num2]; + ref GatheringNode reference142 = ref span109[1]; GatheringNode obj94 = new GatheringNode { DataId = 32315u }; - num5 = 1; - List list196 = new List(num5); - CollectionsMarshal.SetCount(list196, num5); - Span span196 = CollectionsMarshal.AsSpan(list196); - num4 = 0; - span196[num4] = new GatheringLocation + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + CollectionsMarshal.AsSpan(list196)[0] = new GatheringLocation { Position = new Vector3(-505.4885f, 67.502f, -397.644f), MinimumAngle = -20, @@ -10467,18 +8950,15 @@ public static class AssemblyGatheringLocationLoader }; obj94.Locations = list196; reference142 = obj94; - num2++; - ref GatheringNode reference143 = ref span194[num2]; + ref GatheringNode reference143 = ref span109[2]; GatheringNode obj95 = new GatheringNode { DataId = 32316u }; - num4 = 1; - List list197 = new List(num4); - CollectionsMarshal.SetCount(list197, num4); - Span span197 = CollectionsMarshal.AsSpan(list197); - num5 = 0; - span197[num5] = new GatheringLocation + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation { Position = new Vector3(-501.4457f, 67.48835f, -391.6048f), MinimumAngle = -50, @@ -10496,40 +8976,31 @@ public static class AssemblyGatheringLocationLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "Theo"; + CollectionsMarshal.AsSpan(list198)[0] = "Theo"; gatheringRoot19.Author = list198; - 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); + num = 1; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.None, null, null, 622); gatheringRoot19.Steps = list199; num = 3; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - ref GatheringNodeGroup reference144 = ref span200[index]; + Span span110 = CollectionsMarshal.AsSpan(list200); + ref GatheringNodeGroup reference144 = ref span110[0]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - ref GatheringNode reference145 = ref span201[num3]; + ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list201)[0]; GatheringNode obj96 = new GatheringNode { DataId = 32320u }; - num5 = 1; - List list202 = new List(num5); - CollectionsMarshal.SetCount(list202, num5); - Span span202 = CollectionsMarshal.AsSpan(list202); - num4 = 0; - span202[num4] = new GatheringLocation + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = new GatheringLocation { Position = new Vector3(609.3118f, -21.51083f, 558.524f), MinimumAngle = 90, @@ -10540,25 +9011,20 @@ public static class AssemblyGatheringLocationLoader reference145 = obj96; gatheringNodeGroup49.Nodes = list201; reference144 = gatheringNodeGroup49; - index++; - ref GatheringNodeGroup reference146 = ref span200[index]; + ref GatheringNodeGroup reference146 = ref span110[1]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num3 = 1; - List list203 = new List(num3); - CollectionsMarshal.SetCount(list203, num3); - Span span203 = CollectionsMarshal.AsSpan(list203); - num2 = 0; - ref GatheringNode reference147 = ref span203[num2]; + num2 = 1; + List list203 = new List(num2); + CollectionsMarshal.SetCount(list203, num2); + ref GatheringNode reference147 = ref CollectionsMarshal.AsSpan(list203)[0]; GatheringNode obj97 = new GatheringNode { DataId = 32321u }; - num4 = 1; - List list204 = new List(num4); - CollectionsMarshal.SetCount(list204, num4); - Span span204 = CollectionsMarshal.AsSpan(list204); - num5 = 0; - span204[num5] = new GatheringLocation + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation { Position = new Vector3(609.9794f, -21.53052f, 579.6443f), MinimumAngle = 90, @@ -10569,25 +9035,20 @@ public static class AssemblyGatheringLocationLoader reference147 = obj97; gatheringNodeGroup50.Nodes = list203; reference146 = gatheringNodeGroup50; - index++; - ref GatheringNodeGroup reference148 = ref span200[index]; + ref GatheringNodeGroup reference148 = ref span110[2]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - ref GatheringNode reference149 = ref span205[num3]; + ref GatheringNode reference149 = ref CollectionsMarshal.AsSpan(list205)[0]; GatheringNode obj98 = new GatheringNode { DataId = 32322u }; - num5 = 1; - List list206 = new List(num5); - CollectionsMarshal.SetCount(list206, num5); - Span span206 = CollectionsMarshal.AsSpan(list206); - num4 = 0; - span206[num4] = new GatheringLocation + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + CollectionsMarshal.AsSpan(list206)[0] = new GatheringLocation { Position = new Vector3(588.3865f, -20.42655f, 561.5663f), MinimumAngle = 45, @@ -10601,46 +9062,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list200; AddLocation(543, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - index = 1; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - span207[num] = "plogon_enjoyer"; + num = 1; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + CollectionsMarshal.AsSpan(list207)[0] = "plogon_enjoyer"; gatheringRoot20.Author = list207; num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - Span span208 = CollectionsMarshal.AsSpan(list208); - index = 0; - span208[index] = new QuestStep(EInteractionType.None, null, null, 622) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot20.Steps = list208; - index = 3; - List list209 = new List(index); - CollectionsMarshal.SetCount(list209, index); - Span span209 = CollectionsMarshal.AsSpan(list209); - num = 0; - ref GatheringNodeGroup reference150 = ref span209[num]; + num = 3; + List list209 = new List(num); + CollectionsMarshal.SetCount(list209, num); + Span span111 = CollectionsMarshal.AsSpan(list209); + ref GatheringNodeGroup reference150 = ref span111[0]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num3 = 1; - List list210 = new List(num3); - CollectionsMarshal.SetCount(list210, num3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref GatheringNode reference151 = ref span210[num2]; + num2 = 1; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + ref GatheringNode reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; GatheringNode obj99 = new GatheringNode { DataId = 32323u }; - num4 = 1; - List list211 = new List(num4); - CollectionsMarshal.SetCount(list211, num4); - Span span211 = CollectionsMarshal.AsSpan(list211); - num5 = 0; - span211[num5] = new GatheringLocation + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + CollectionsMarshal.AsSpan(list211)[0] = new GatheringLocation { Position = new Vector3(-54.36381f, 55.83623f, -357.2043f) }; @@ -10648,25 +9100,20 @@ public static class AssemblyGatheringLocationLoader reference151 = obj99; gatheringNodeGroup52.Nodes = list210; reference150 = gatheringNodeGroup52; - num++; - ref GatheringNodeGroup reference152 = ref span209[num]; + ref GatheringNodeGroup reference152 = ref span111[1]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - ref GatheringNode reference153 = ref span212[num3]; + ref GatheringNode reference153 = ref CollectionsMarshal.AsSpan(list212)[0]; GatheringNode obj100 = new GatheringNode { DataId = 32325u }; - num5 = 1; - List list213 = new List(num5); - CollectionsMarshal.SetCount(list213, num5); - Span span213 = CollectionsMarshal.AsSpan(list213); - num4 = 0; - span213[num4] = new GatheringLocation + num3 = 1; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + CollectionsMarshal.AsSpan(list213)[0] = new GatheringLocation { Position = new Vector3(-56.99122f, 59.4855f, -368.9053f) }; @@ -10674,25 +9121,20 @@ public static class AssemblyGatheringLocationLoader reference153 = obj100; gatheringNodeGroup53.Nodes = list212; reference152 = gatheringNodeGroup53; - num++; - ref GatheringNodeGroup reference154 = ref span209[num]; + ref GatheringNodeGroup reference154 = ref span111[2]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num3 = 1; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num2 = 0; - ref GatheringNode reference155 = ref span214[num2]; + num2 = 1; + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; GatheringNode obj101 = new GatheringNode { DataId = 32324u }; - num4 = 1; - List list215 = new List(num4); - CollectionsMarshal.SetCount(list215, num4); - Span span215 = CollectionsMarshal.AsSpan(list215); - num5 = 0; - span215[num5] = new GatheringLocation + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation { Position = new Vector3(-83.84797f, 60.70433f, -366.7615f) }; @@ -10706,16 +9148,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - Span span216 = CollectionsMarshal.AsSpan(list216); - index = 0; - span216[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list216)[0] = "plogon_enjoyer"; gatheringRoot21.Author = list216; - 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) + num = 1; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; @@ -10723,26 +9161,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - ref GatheringNodeGroup reference156 = ref span218[index]; + Span span112 = CollectionsMarshal.AsSpan(list218); + ref GatheringNodeGroup reference156 = ref span112[0]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - num3 = 0; - ref GatheringNode reference157 = ref span219[num3]; + ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list219)[0]; GatheringNode obj102 = new GatheringNode { DataId = 32335u }; - num5 = 1; - List list220 = new List(num5); - CollectionsMarshal.SetCount(list220, num5); - Span span220 = CollectionsMarshal.AsSpan(list220); - num4 = 0; - span220[num4] = new GatheringLocation + num3 = 1; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + CollectionsMarshal.AsSpan(list220)[0] = new GatheringLocation { Position = new Vector3(-80.14488f, 58.18221f, -358.3333f) }; @@ -10750,25 +9183,20 @@ public static class AssemblyGatheringLocationLoader reference157 = obj102; gatheringNodeGroup55.Nodes = list219; reference156 = gatheringNodeGroup55; - index++; - ref GatheringNodeGroup reference158 = ref span218[index]; + ref GatheringNodeGroup reference158 = ref span112[1]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num3 = 1; - List list221 = new List(num3); - CollectionsMarshal.SetCount(list221, num3); - Span span221 = CollectionsMarshal.AsSpan(list221); - num2 = 0; - ref GatheringNode reference159 = ref span221[num2]; + num2 = 1; + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list221)[0]; GatheringNode obj103 = new GatheringNode { DataId = 32336u }; - num4 = 1; - List list222 = new List(num4); - CollectionsMarshal.SetCount(list222, num4); - Span span222 = CollectionsMarshal.AsSpan(list222); - num5 = 0; - span222[num5] = new GatheringLocation + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = new GatheringLocation { Position = new Vector3(-58.9046f, 52.59887f, -350.7942f) }; @@ -10776,25 +9204,20 @@ public static class AssemblyGatheringLocationLoader reference159 = obj103; gatheringNodeGroup56.Nodes = list221; reference158 = gatheringNodeGroup56; - index++; - ref GatheringNodeGroup reference160 = ref span218[index]; + ref GatheringNodeGroup reference160 = ref span112[2]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - num3 = 0; - ref GatheringNode reference161 = ref span223[num3]; + ref GatheringNode reference161 = ref CollectionsMarshal.AsSpan(list223)[0]; GatheringNode obj104 = new GatheringNode { DataId = 32337u }; - num5 = 1; - List list224 = new List(num5); - CollectionsMarshal.SetCount(list224, num5); - Span span224 = CollectionsMarshal.AsSpan(list224); - num4 = 0; - span224[num4] = new GatheringLocation + num3 = 1; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation { Position = new Vector3(-81.5958f, 51.05495f, -334.9854f) }; @@ -10805,53 +9228,45 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list218; AddLocation(548, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - index = 1; - List list225 = new List(index); - CollectionsMarshal.SetCount(list225, index); - Span span225 = CollectionsMarshal.AsSpan(list225); - num = 0; - span225[num] = "liza"; + num = 1; + List list225 = new List(num); + CollectionsMarshal.SetCount(list225, num); + CollectionsMarshal.AsSpan(list225)[0] = "liza"; gatheringRoot22.Author = list225; num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - Span span226 = CollectionsMarshal.AsSpan(list226); - index = 0; - span226[index] = new QuestStep(EInteractionType.None, null, null, 397) + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; gatheringRoot22.Steps = list226; - index = 3; - List list227 = new List(index); - CollectionsMarshal.SetCount(list227, index); - Span span227 = CollectionsMarshal.AsSpan(list227); - num = 0; - ref GatheringNodeGroup reference162 = ref span227[num]; + num = 3; + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span113 = CollectionsMarshal.AsSpan(list227); + ref GatheringNodeGroup reference162 = ref span113[0]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num3 = 2; - List list228 = new List(num3); - CollectionsMarshal.SetCount(list228, num3); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref GatheringNode reference163 = ref span228[num2]; + num2 = 2; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span114 = CollectionsMarshal.AsSpan(list228); + ref GatheringNode reference163 = ref span114[0]; GatheringNode obj105 = new GatheringNode { DataId = 32349u }; - num4 = 2; - List list229 = new List(num4); - CollectionsMarshal.SetCount(list229, num4); - Span span229 = CollectionsMarshal.AsSpan(list229); - num5 = 0; - span229[num5] = new GatheringLocation + num3 = 2; + List list229 = new List(num3); + CollectionsMarshal.SetCount(list229, num3); + Span span115 = CollectionsMarshal.AsSpan(list229); + span115[0] = new GatheringLocation { Position = new Vector3(63.68f, 227.89f, 570.31f), MinimumAngle = 140, MaximumAngle = 275 }; - num5++; - span229[num5] = new GatheringLocation + span115[1] = new GatheringLocation { Position = new Vector3(100.3585f, 236.1064f, 551.248f), MinimumAngle = 110, @@ -10859,18 +9274,15 @@ public static class AssemblyGatheringLocationLoader }; obj105.Locations = list229; reference163 = obj105; - num2++; - ref GatheringNode reference164 = ref span228[num2]; + ref GatheringNode reference164 = ref span114[1]; GatheringNode obj106 = new GatheringNode { DataId = 32348u }; - num5 = 1; - List list230 = new List(num5); - CollectionsMarshal.SetCount(list230, num5); - Span span230 = CollectionsMarshal.AsSpan(list230); - num4 = 0; - span230[num4] = new GatheringLocation + num3 = 1; + List list230 = new List(num3); + CollectionsMarshal.SetCount(list230, num3); + CollectionsMarshal.AsSpan(list230)[0] = new GatheringLocation { Position = new Vector3(68.42817f, 226.018f, 558.3953f), MinimumAngle = -15, @@ -10880,25 +9292,21 @@ public static class AssemblyGatheringLocationLoader reference164 = obj106; gatheringNodeGroup58.Nodes = list228; reference162 = gatheringNodeGroup58; - num++; - ref GatheringNodeGroup reference165 = ref span227[num]; + ref GatheringNodeGroup reference165 = ref span113[1]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - num3 = 0; - ref GatheringNode reference166 = ref span231[num3]; + Span span116 = CollectionsMarshal.AsSpan(list231); + ref GatheringNode reference166 = ref span116[0]; GatheringNode obj107 = new GatheringNode { DataId = 32346u }; - num4 = 1; - List list232 = new List(num4); - CollectionsMarshal.SetCount(list232, num4); - Span span232 = CollectionsMarshal.AsSpan(list232); - num5 = 0; - span232[num5] = new GatheringLocation + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + CollectionsMarshal.AsSpan(list232)[0] = new GatheringLocation { Position = new Vector3(-19.27065f, 219.13f, 618.5656f), MinimumAngle = 70, @@ -10906,25 +9314,22 @@ public static class AssemblyGatheringLocationLoader }; obj107.Locations = list232; reference166 = obj107; - num3++; - ref GatheringNode reference167 = ref span231[num3]; + ref GatheringNode reference167 = ref span116[1]; GatheringNode obj108 = new GatheringNode { DataId = 32347u }; - num5 = 2; - List list233 = new List(num5); - CollectionsMarshal.SetCount(list233, num5); - Span span233 = CollectionsMarshal.AsSpan(list233); - num4 = 0; - span233[num4] = new GatheringLocation + num3 = 2; + List list233 = new List(num3); + CollectionsMarshal.SetCount(list233, num3); + Span span117 = CollectionsMarshal.AsSpan(list233); + span117[0] = new GatheringLocation { Position = new Vector3(-11.97839f, 222.4612f, 613.5499f), MinimumAngle = 80, MaximumAngle = 235 }; - num4++; - span233[num4] = new GatheringLocation + span117[1] = new GatheringLocation { Position = new Vector3(-9.830506f, 220.8649f, 596.9268f), MinimumAngle = 70, @@ -10934,25 +9339,21 @@ public static class AssemblyGatheringLocationLoader reference167 = obj108; gatheringNodeGroup59.Nodes = list231; reference165 = gatheringNodeGroup59; - num++; - ref GatheringNodeGroup reference168 = ref span227[num]; + ref GatheringNodeGroup reference168 = ref span113[2]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num3 = 2; - List list234 = new List(num3); - CollectionsMarshal.SetCount(list234, num3); - Span span234 = CollectionsMarshal.AsSpan(list234); - num2 = 0; - ref GatheringNode reference169 = ref span234[num2]; + num2 = 2; + List list234 = new List(num2); + CollectionsMarshal.SetCount(list234, num2); + Span span118 = CollectionsMarshal.AsSpan(list234); + ref GatheringNode reference169 = ref span118[0]; GatheringNode obj109 = new GatheringNode { DataId = 32344u }; - num4 = 1; - List list235 = new List(num4); - CollectionsMarshal.SetCount(list235, num4); - Span span235 = CollectionsMarshal.AsSpan(list235); - num5 = 0; - span235[num5] = new GatheringLocation + num3 = 1; + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + CollectionsMarshal.AsSpan(list235)[0] = new GatheringLocation { Position = new Vector3(-60.89f, 241.99f, 692.56f), MinimumAngle = 60, @@ -10960,25 +9361,22 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list235; reference169 = obj109; - num2++; - ref GatheringNode reference170 = ref span234[num2]; + ref GatheringNode reference170 = ref span118[1]; GatheringNode obj110 = new GatheringNode { DataId = 32345u }; - num5 = 2; - List list236 = new List(num5); - CollectionsMarshal.SetCount(list236, num5); - Span span236 = CollectionsMarshal.AsSpan(list236); - num4 = 0; - span236[num4] = new GatheringLocation + num3 = 2; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + Span span119 = CollectionsMarshal.AsSpan(list236); + span119[0] = new GatheringLocation { Position = new Vector3(-70.72009f, 242.5652f, 704.0363f), MinimumAngle = 70, MaximumAngle = 225 }; - num4++; - span236[num4] = new GatheringLocation + span119[1] = new GatheringLocation { Position = new Vector3(-49.4545f, 241.67f, 686.183f), MinimumAngle = 100, @@ -10994,16 +9392,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - Span span237 = CollectionsMarshal.AsSpan(list237); - index = 0; - span237[index] = "liza"; + CollectionsMarshal.AsSpan(list237)[0] = "liza"; gatheringRoot23.Author = list237; - 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) + num = 1; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -11011,31 +9405,27 @@ public static class AssemblyGatheringLocationLoader num = 3; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - ref GatheringNodeGroup reference171 = ref span239[index]; + Span span120 = CollectionsMarshal.AsSpan(list239); + ref GatheringNodeGroup reference171 = ref span120[0]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - num3 = 0; - ref GatheringNode reference172 = ref span240[num3]; + Span span121 = CollectionsMarshal.AsSpan(list240); + ref GatheringNode reference172 = ref span121[0]; GatheringNode obj111 = new GatheringNode { DataId = 32355u }; - num4 = 2; - List list241 = new List(num4); - CollectionsMarshal.SetCount(list241, num4); - Span span241 = CollectionsMarshal.AsSpan(list241); - num5 = 0; - span241[num5] = new GatheringLocation + num3 = 2; + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + Span span122 = CollectionsMarshal.AsSpan(list241); + span122[0] = new GatheringLocation { Position = new Vector3(484.6112f, 160.7014f, -339.9558f) }; - num5++; - span241[num5] = new GatheringLocation + span122[1] = new GatheringLocation { Position = new Vector3(479.6101f, 160.8177f, -328.4199f), MinimumAngle = 160, @@ -11043,18 +9433,15 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list241; reference172 = obj111; - num3++; - ref GatheringNode reference173 = ref span240[num3]; + ref GatheringNode reference173 = ref span121[1]; GatheringNode obj112 = new GatheringNode { DataId = 32354u }; - num5 = 1; - List list242 = new List(num5); - CollectionsMarshal.SetCount(list242, num5); - Span span242 = CollectionsMarshal.AsSpan(list242); - num4 = 0; - span242[num4] = new GatheringLocation + num3 = 1; + List list242 = new List(num3); + CollectionsMarshal.SetCount(list242, num3); + CollectionsMarshal.AsSpan(list242)[0] = new GatheringLocation { Position = new Vector3(481.3153f, 160.57f, -339.8337f), MinimumAngle = -150, @@ -11064,47 +9451,40 @@ public static class AssemblyGatheringLocationLoader reference173 = obj112; gatheringNodeGroup61.Nodes = list240; reference171 = gatheringNodeGroup61; - index++; - ref GatheringNodeGroup reference174 = ref span239[index]; + ref GatheringNodeGroup reference174 = ref span120[1]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num3 = 2; - List list243 = new List(num3); - CollectionsMarshal.SetCount(list243, num3); - Span span243 = CollectionsMarshal.AsSpan(list243); - num2 = 0; - ref GatheringNode reference175 = ref span243[num2]; + num2 = 2; + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + Span span123 = CollectionsMarshal.AsSpan(list243); + ref GatheringNode reference175 = ref span123[0]; GatheringNode obj113 = new GatheringNode { DataId = 32351u }; - num4 = 2; - List list244 = new List(num4); - CollectionsMarshal.SetCount(list244, num4); - Span span244 = CollectionsMarshal.AsSpan(list244); - num5 = 0; - span244[num5] = new GatheringLocation + num3 = 2; + List list244 = new List(num3); + CollectionsMarshal.SetCount(list244, num3); + Span span124 = CollectionsMarshal.AsSpan(list244); + span124[0] = new GatheringLocation { Position = new Vector3(602.9045f, 172.9519f, -376.0714f) }; - num5++; - span244[num5] = new GatheringLocation + span124[1] = new GatheringLocation { Position = new Vector3(610.5079f, 174.6463f, -380.3387f) }; obj113.Locations = list244; reference175 = obj113; - num2++; - ref GatheringNode reference176 = ref span243[num2]; + ref GatheringNode reference176 = ref span123[1]; GatheringNode obj114 = new GatheringNode { DataId = 32350u }; - num5 = 1; - List list245 = new List(num5); - CollectionsMarshal.SetCount(list245, num5); - Span span245 = CollectionsMarshal.AsSpan(list245); - num4 = 0; - span245[num4] = new GatheringLocation + num3 = 1; + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation { Position = new Vector3(609.4385f, 174.6537f, -376.958f) }; @@ -11112,47 +9492,40 @@ public static class AssemblyGatheringLocationLoader reference176 = obj114; gatheringNodeGroup62.Nodes = list243; reference174 = gatheringNodeGroup62; - index++; - ref GatheringNodeGroup reference177 = ref span239[index]; + ref GatheringNodeGroup reference177 = ref span120[2]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num3 = 0; - ref GatheringNode reference178 = ref span246[num3]; + Span span125 = CollectionsMarshal.AsSpan(list246); + ref GatheringNode reference178 = ref span125[0]; GatheringNode obj115 = new GatheringNode { DataId = 32353u }; - num4 = 2; - List list247 = new List(num4); - CollectionsMarshal.SetCount(list247, num4); - Span span247 = CollectionsMarshal.AsSpan(list247); - num5 = 0; - span247[num5] = new GatheringLocation + num3 = 2; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + Span span126 = CollectionsMarshal.AsSpan(list247); + span126[0] = new GatheringLocation { Position = new Vector3(457.2875f, 160.5861f, -451.3749f) }; - num5++; - span247[num5] = new GatheringLocation + span126[1] = new GatheringLocation { Position = new Vector3(471.3904f, 159.7412f, -441.1613f) }; obj115.Locations = list247; reference178 = obj115; - num3++; - ref GatheringNode reference179 = ref span246[num3]; + ref GatheringNode reference179 = ref span125[1]; GatheringNode obj116 = new GatheringNode { DataId = 32352u }; - num5 = 1; - List list248 = new List(num5); - CollectionsMarshal.SetCount(list248, num5); - Span span248 = CollectionsMarshal.AsSpan(list248); - num4 = 0; - span248[num4] = new GatheringLocation + num3 = 1; + List list248 = new List(num3); + CollectionsMarshal.SetCount(list248, num3); + CollectionsMarshal.AsSpan(list248)[0] = new GatheringLocation { Position = new Vector3(478.0674f, 161.2902f, -449.485f), MinimumAngle = 0, @@ -11165,53 +9538,45 @@ public static class AssemblyGatheringLocationLoader gatheringRoot23.Groups = list239; AddLocation(552, gatheringRoot23); GatheringRoot gatheringRoot24 = new GatheringRoot(); - index = 1; - List list249 = new List(index); - CollectionsMarshal.SetCount(list249, index); - Span span249 = CollectionsMarshal.AsSpan(list249); - num = 0; - span249[num] = "liza"; + num = 1; + List list249 = new List(num); + CollectionsMarshal.SetCount(list249, num); + CollectionsMarshal.AsSpan(list249)[0] = "liza"; gatheringRoot24.Author = list249; num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = new QuestStep(EInteractionType.None, null, null, 400) + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; gatheringRoot24.Steps = list250; - index = 3; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref GatheringNodeGroup reference180 = ref span251[num]; + num = 3; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span127 = CollectionsMarshal.AsSpan(list251); + ref GatheringNodeGroup reference180 = ref span127[0]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num3 = 2; - List list252 = new List(num3); - CollectionsMarshal.SetCount(list252, num3); - Span span252 = CollectionsMarshal.AsSpan(list252); - num2 = 0; - ref GatheringNode reference181 = ref span252[num2]; + num2 = 2; + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + Span span128 = CollectionsMarshal.AsSpan(list252); + ref GatheringNode reference181 = ref span128[0]; GatheringNode obj117 = new GatheringNode { DataId = 32357u }; - num4 = 2; - List list253 = new List(num4); - CollectionsMarshal.SetCount(list253, num4); - Span span253 = CollectionsMarshal.AsSpan(list253); - num5 = 0; - span253[num5] = new GatheringLocation + num3 = 2; + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + Span span129 = CollectionsMarshal.AsSpan(list253); + span129[0] = new GatheringLocation { Position = new Vector3(557.625f, 5.119438f, 180.6541f), MinimumAngle = -70, MaximumAngle = 55 }; - num5++; - span253[num5] = new GatheringLocation + span129[1] = new GatheringLocation { Position = new Vector3(570.8357f, 11.89507f, 164.9729f), MinimumAngle = 55, @@ -11219,18 +9584,15 @@ public static class AssemblyGatheringLocationLoader }; obj117.Locations = list253; reference181 = obj117; - num2++; - ref GatheringNode reference182 = ref span252[num2]; + ref GatheringNode reference182 = ref span128[1]; GatheringNode obj118 = new GatheringNode { DataId = 32356u }; - num5 = 1; - List list254 = new List(num5); - CollectionsMarshal.SetCount(list254, num5); - Span span254 = CollectionsMarshal.AsSpan(list254); - num4 = 0; - span254[num4] = new GatheringLocation + num3 = 1; + List list254 = new List(num3); + CollectionsMarshal.SetCount(list254, num3); + CollectionsMarshal.AsSpan(list254)[0] = new GatheringLocation { Position = new Vector3(572.8384f, 11.68007f, 155.6572f), MinimumAngle = 70, @@ -11240,25 +9602,21 @@ public static class AssemblyGatheringLocationLoader reference182 = obj118; gatheringNodeGroup64.Nodes = list252; reference180 = gatheringNodeGroup64; - num++; - ref GatheringNodeGroup reference183 = ref span251[num]; + ref GatheringNodeGroup reference183 = ref span127[1]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - num3 = 0; - ref GatheringNode reference184 = ref span255[num3]; + Span span130 = CollectionsMarshal.AsSpan(list255); + ref GatheringNode reference184 = ref span130[0]; GatheringNode obj119 = new GatheringNode { DataId = 32358u }; - num4 = 1; - List list256 = new List(num4); - CollectionsMarshal.SetCount(list256, num4); - Span span256 = CollectionsMarshal.AsSpan(list256); - num5 = 0; - span256[num5] = new GatheringLocation + num3 = 1; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + CollectionsMarshal.AsSpan(list256)[0] = new GatheringLocation { Position = new Vector3(665.114f, 43.93011f, 151.3629f), MinimumAngle = -80, @@ -11266,25 +9624,22 @@ public static class AssemblyGatheringLocationLoader }; obj119.Locations = list256; reference184 = obj119; - num3++; - ref GatheringNode reference185 = ref span255[num3]; + ref GatheringNode reference185 = ref span130[1]; GatheringNode obj120 = new GatheringNode { DataId = 32359u }; - num5 = 2; - List list257 = new List(num5); - CollectionsMarshal.SetCount(list257, num5); - Span span257 = CollectionsMarshal.AsSpan(list257); - num4 = 0; - span257[num4] = new GatheringLocation + num3 = 2; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + Span span131 = CollectionsMarshal.AsSpan(list257); + span131[0] = new GatheringLocation { Position = new Vector3(697.7376f, 41.87314f, 124.1553f), MinimumAngle = -125, MaximumAngle = 30 }; - num4++; - span257[num4] = new GatheringLocation + span131[1] = new GatheringLocation { Position = new Vector3(681.178f, 41.71732f, 147.9972f), MinimumAngle = -15, @@ -11294,25 +9649,21 @@ public static class AssemblyGatheringLocationLoader reference185 = obj120; gatheringNodeGroup65.Nodes = list255; reference183 = gatheringNodeGroup65; - num++; - ref GatheringNodeGroup reference186 = ref span251[num]; + ref GatheringNodeGroup reference186 = ref span127[2]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num3 = 2; - List list258 = new List(num3); - CollectionsMarshal.SetCount(list258, num3); - Span span258 = CollectionsMarshal.AsSpan(list258); - num2 = 0; - ref GatheringNode reference187 = ref span258[num2]; + num2 = 2; + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + Span span132 = CollectionsMarshal.AsSpan(list258); + ref GatheringNode reference187 = ref span132[0]; GatheringNode obj121 = new GatheringNode { DataId = 32360u }; - num4 = 1; - List list259 = new List(num4); - CollectionsMarshal.SetCount(list259, num4); - Span span259 = CollectionsMarshal.AsSpan(list259); - num5 = 0; - span259[num5] = new GatheringLocation + num3 = 1; + List list259 = new List(num3); + CollectionsMarshal.SetCount(list259, num3); + CollectionsMarshal.AsSpan(list259)[0] = new GatheringLocation { Position = new Vector3(755.3978f, 20.37826f, 201.3921f), MinimumAngle = -30, @@ -11320,25 +9671,22 @@ public static class AssemblyGatheringLocationLoader }; obj121.Locations = list259; reference187 = obj121; - num2++; - ref GatheringNode reference188 = ref span258[num2]; + ref GatheringNode reference188 = ref span132[1]; GatheringNode obj122 = new GatheringNode { DataId = 32361u }; - num5 = 2; - List list260 = new List(num5); - CollectionsMarshal.SetCount(list260, num5); - Span span260 = CollectionsMarshal.AsSpan(list260); - num4 = 0; - span260[num4] = new GatheringLocation + num3 = 2; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + Span span133 = CollectionsMarshal.AsSpan(list260); + span133[0] = new GatheringLocation { Position = new Vector3(771.5975f, 20.41353f, 204.8761f), MinimumAngle = -45, MaximumAngle = 65 }; - num4++; - span260[num4] = new GatheringLocation + span133[1] = new GatheringLocation { Position = new Vector3(739.1428f, 23.87582f, 196.4766f), MinimumAngle = -40, @@ -11354,16 +9702,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - Span span261 = CollectionsMarshal.AsSpan(list261); - index = 0; - span261[index] = "liza"; + CollectionsMarshal.AsSpan(list261)[0] = "liza"; gatheringRoot25.Author = list261; - 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) + num = 1; + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; @@ -11371,48 +9715,41 @@ public static class AssemblyGatheringLocationLoader num = 3; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - ref GatheringNodeGroup reference189 = ref span263[index]; + Span span134 = CollectionsMarshal.AsSpan(list263); + ref GatheringNodeGroup reference189 = ref span134[0]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 2; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - num3 = 0; - ref GatheringNode reference190 = ref span264[num3]; + Span span135 = CollectionsMarshal.AsSpan(list264); + ref GatheringNode reference190 = ref span135[0]; GatheringNode obj123 = new GatheringNode { DataId = 32366u }; - num4 = 1; - List list265 = new List(num4); - CollectionsMarshal.SetCount(list265, num4); - Span span265 = CollectionsMarshal.AsSpan(list265); - num5 = 0; - span265[num5] = new GatheringLocation + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + CollectionsMarshal.AsSpan(list265)[0] = new GatheringLocation { Position = new Vector3(-699.5319f, 91.18189f, -362.7602f) }; obj123.Locations = list265; reference190 = obj123; - num3++; - ref GatheringNode reference191 = ref span264[num3]; + ref GatheringNode reference191 = ref span135[1]; GatheringNode obj124 = new GatheringNode { DataId = 32367u }; - num5 = 2; - List list266 = new List(num5); - CollectionsMarshal.SetCount(list266, num5); - Span span266 = CollectionsMarshal.AsSpan(list266); - num4 = 0; - span266[num4] = new GatheringLocation + num3 = 2; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + Span span136 = CollectionsMarshal.AsSpan(list266); + span136[0] = new GatheringLocation { Position = new Vector3(-681.9284f, 91.30399f, -363.0468f) }; - num4++; - span266[num4] = new GatheringLocation + span136[1] = new GatheringLocation { Position = new Vector3(-709.8129f, 91.42828f, -361.5186f), MinimumAngle = 85, @@ -11422,25 +9759,21 @@ public static class AssemblyGatheringLocationLoader reference191 = obj124; gatheringNodeGroup67.Nodes = list264; reference189 = gatheringNodeGroup67; - index++; - ref GatheringNodeGroup reference192 = ref span263[index]; + ref GatheringNodeGroup reference192 = ref span134[1]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num3 = 2; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span267 = CollectionsMarshal.AsSpan(list267); - num2 = 0; - ref GatheringNode reference193 = ref span267[num2]; + num2 = 2; + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + Span span137 = CollectionsMarshal.AsSpan(list267); + ref GatheringNode reference193 = ref span137[0]; GatheringNode obj125 = new GatheringNode { DataId = 32364u }; - num4 = 1; - List list268 = new List(num4); - CollectionsMarshal.SetCount(list268, num4); - Span span268 = CollectionsMarshal.AsSpan(list268); - num5 = 0; - span268[num5] = new GatheringLocation + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + CollectionsMarshal.AsSpan(list268)[0] = new GatheringLocation { Position = new Vector3(-680.1304f, 91.30952f, -479.2773f), MinimumAngle = 50, @@ -11448,25 +9781,22 @@ public static class AssemblyGatheringLocationLoader }; obj125.Locations = list268; reference193 = obj125; - num2++; - ref GatheringNode reference194 = ref span267[num2]; + ref GatheringNode reference194 = ref span137[1]; GatheringNode obj126 = new GatheringNode { DataId = 32365u }; - num5 = 2; - List list269 = new List(num5); - CollectionsMarshal.SetCount(list269, num5); - Span span269 = CollectionsMarshal.AsSpan(list269); - num4 = 0; - span269[num4] = new GatheringLocation + num3 = 2; + List list269 = new List(num3); + CollectionsMarshal.SetCount(list269, num3); + Span span138 = CollectionsMarshal.AsSpan(list269); + span138[0] = new GatheringLocation { Position = new Vector3(-691.5847f, 91.2657f, -491.8746f), MinimumAngle = -115, MaximumAngle = 90 }; - num4++; - span269[num4] = new GatheringLocation + span138[1] = new GatheringLocation { Position = new Vector3(-685.3473f, 91.26568f, -474.3657f), MinimumAngle = 0, @@ -11476,25 +9806,21 @@ public static class AssemblyGatheringLocationLoader reference194 = obj126; gatheringNodeGroup68.Nodes = list267; reference192 = gatheringNodeGroup68; - index++; - ref GatheringNodeGroup reference195 = ref span263[index]; + ref GatheringNodeGroup reference195 = ref span134[2]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num3 = 0; - ref GatheringNode reference196 = ref span270[num3]; + Span span139 = CollectionsMarshal.AsSpan(list270); + ref GatheringNode reference196 = ref span139[0]; GatheringNode obj127 = new GatheringNode { DataId = 32362u }; - num4 = 1; - List list271 = new List(num4); - CollectionsMarshal.SetCount(list271, num4); - Span span271 = CollectionsMarshal.AsSpan(list271); - num5 = 0; - span271[num5] = new GatheringLocation + num3 = 1; + List list271 = new List(num3); + CollectionsMarshal.SetCount(list271, num3); + CollectionsMarshal.AsSpan(list271)[0] = new GatheringLocation { Position = new Vector3(-764.3091f, 91.5154f, -554.3649f), MinimumAngle = -125, @@ -11502,25 +9828,22 @@ public static class AssemblyGatheringLocationLoader }; obj127.Locations = list271; reference196 = obj127; - num3++; - ref GatheringNode reference197 = ref span270[num3]; + ref GatheringNode reference197 = ref span139[1]; GatheringNode obj128 = new GatheringNode { DataId = 32363u }; - num5 = 2; - List list272 = new List(num5); - CollectionsMarshal.SetCount(list272, num5); - Span span272 = CollectionsMarshal.AsSpan(list272); - num4 = 0; - span272[num4] = new GatheringLocation + num3 = 2; + List list272 = new List(num3); + CollectionsMarshal.SetCount(list272, num3); + Span span140 = CollectionsMarshal.AsSpan(list272); + span140[0] = new GatheringLocation { Position = new Vector3(-763.1495f, 91.37257f, -542.7809f), MinimumAngle = 70, MaximumAngle = 305 }; - num4++; - span272[num4] = new GatheringLocation + span140[1] = new GatheringLocation { Position = new Vector3(-776.5944f, 91.16921f, -566.8766f), MinimumAngle = -95, @@ -11533,43 +9856,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot25.Groups = list263; AddLocation(554, gatheringRoot25); GatheringRoot gatheringRoot26 = new GatheringRoot(); - index = 1; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - span273[num] = "liza"; + num = 1; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + CollectionsMarshal.AsSpan(list273)[0] = "liza"; gatheringRoot26.Author = list273; num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - Span span274 = CollectionsMarshal.AsSpan(list274); - index = 0; - span274[index] = new QuestStep(EInteractionType.None, null, null, 814); + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.None, null, null, 814); gatheringRoot26.Steps = list274; - index = 6; - List list275 = new List(index); - CollectionsMarshal.SetCount(list275, index); - Span span275 = CollectionsMarshal.AsSpan(list275); - num = 0; - ref GatheringNodeGroup reference198 = ref span275[num]; + num = 6; + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + Span span141 = CollectionsMarshal.AsSpan(list275); + ref GatheringNodeGroup reference198 = ref span141[0]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num3 = 1; - List list276 = new List(num3); - CollectionsMarshal.SetCount(list276, num3); - Span span276 = CollectionsMarshal.AsSpan(list276); - num2 = 0; - ref GatheringNode reference199 = ref span276[num2]; + num2 = 1; + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + ref GatheringNode reference199 = ref CollectionsMarshal.AsSpan(list276)[0]; GatheringNode obj129 = new GatheringNode { DataId = 32512u }; - num4 = 1; - List list277 = new List(num4); - CollectionsMarshal.SetCount(list277, num4); - Span span277 = CollectionsMarshal.AsSpan(list277); - num5 = 0; - span277[num5] = new GatheringLocation + num3 = 1; + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + CollectionsMarshal.AsSpan(list277)[0] = new GatheringLocation { Position = new Vector3(-221.5365f, 88.75751f, 36.51096f), MinimumAngle = -100, @@ -11579,25 +9893,20 @@ public static class AssemblyGatheringLocationLoader reference199 = obj129; gatheringNodeGroup70.Nodes = list276; reference198 = gatheringNodeGroup70; - num++; - ref GatheringNodeGroup reference200 = ref span275[num]; + ref GatheringNodeGroup reference200 = ref span141[1]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - ref GatheringNode reference201 = ref span278[num3]; + ref GatheringNode reference201 = ref CollectionsMarshal.AsSpan(list278)[0]; GatheringNode obj130 = new GatheringNode { DataId = 32513u }; - num5 = 1; - List list279 = new List(num5); - CollectionsMarshal.SetCount(list279, num5); - Span span279 = CollectionsMarshal.AsSpan(list279); - num4 = 0; - span279[num4] = new GatheringLocation + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = new GatheringLocation { Position = new Vector3(-227.0897f, 89.90434f, 37.42806f), MinimumAngle = -20, @@ -11607,25 +9916,20 @@ public static class AssemblyGatheringLocationLoader reference201 = obj130; gatheringNodeGroup71.Nodes = list278; reference200 = gatheringNodeGroup71; - num++; - ref GatheringNodeGroup reference202 = ref span275[num]; + ref GatheringNodeGroup reference202 = ref span141[2]; GatheringNodeGroup gatheringNodeGroup72 = new GatheringNodeGroup(); - num3 = 1; - List list280 = new List(num3); - CollectionsMarshal.SetCount(list280, num3); - Span span280 = CollectionsMarshal.AsSpan(list280); - num2 = 0; - ref GatheringNode reference203 = ref span280[num2]; + num2 = 1; + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + ref GatheringNode reference203 = ref CollectionsMarshal.AsSpan(list280)[0]; GatheringNode obj131 = new GatheringNode { DataId = 32514u }; - num4 = 1; - List list281 = new List(num4); - CollectionsMarshal.SetCount(list281, num4); - Span span281 = CollectionsMarshal.AsSpan(list281); - num5 = 0; - span281[num5] = new GatheringLocation + num3 = 1; + List list281 = new List(num3); + CollectionsMarshal.SetCount(list281, num3); + CollectionsMarshal.AsSpan(list281)[0] = new GatheringLocation { Position = new Vector3(-233.9371f, 89.18435f, 42.91663f), MinimumAngle = -110, @@ -11635,25 +9939,20 @@ public static class AssemblyGatheringLocationLoader reference203 = obj131; gatheringNodeGroup72.Nodes = list280; reference202 = gatheringNodeGroup72; - num++; - ref GatheringNodeGroup reference204 = ref span275[num]; + ref GatheringNodeGroup reference204 = ref span141[3]; GatheringNodeGroup gatheringNodeGroup73 = new GatheringNodeGroup(); num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - ref GatheringNode reference205 = ref span282[num3]; + ref GatheringNode reference205 = ref CollectionsMarshal.AsSpan(list282)[0]; GatheringNode obj132 = new GatheringNode { DataId = 32515u }; - num5 = 1; - List list283 = new List(num5); - CollectionsMarshal.SetCount(list283, num5); - Span span283 = CollectionsMarshal.AsSpan(list283); - num4 = 0; - span283[num4] = new GatheringLocation + num3 = 1; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + CollectionsMarshal.AsSpan(list283)[0] = new GatheringLocation { Position = new Vector3(-243.0384f, 88.70179f, 48.95438f), MinimumAngle = -70, @@ -11663,25 +9962,20 @@ public static class AssemblyGatheringLocationLoader reference205 = obj132; gatheringNodeGroup73.Nodes = list282; reference204 = gatheringNodeGroup73; - num++; - ref GatheringNodeGroup reference206 = ref span275[num]; + ref GatheringNodeGroup reference206 = ref span141[4]; GatheringNodeGroup gatheringNodeGroup74 = new GatheringNodeGroup(); - num3 = 1; - List list284 = new List(num3); - CollectionsMarshal.SetCount(list284, num3); - Span span284 = CollectionsMarshal.AsSpan(list284); - num2 = 0; - ref GatheringNode reference207 = ref span284[num2]; + num2 = 1; + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + ref GatheringNode reference207 = ref CollectionsMarshal.AsSpan(list284)[0]; GatheringNode obj133 = new GatheringNode { DataId = 32516u }; - num4 = 1; - List list285 = new List(num4); - CollectionsMarshal.SetCount(list285, num4); - Span span285 = CollectionsMarshal.AsSpan(list285); - num5 = 0; - span285[num5] = new GatheringLocation + num3 = 1; + List list285 = new List(num3); + CollectionsMarshal.SetCount(list285, num3); + CollectionsMarshal.AsSpan(list285)[0] = new GatheringLocation { Position = new Vector3(-256.5147f, 90.32328f, 51.07351f), MinimumAngle = -75, @@ -11691,25 +9985,20 @@ public static class AssemblyGatheringLocationLoader reference207 = obj133; gatheringNodeGroup74.Nodes = list284; reference206 = gatheringNodeGroup74; - num++; - ref GatheringNodeGroup reference208 = ref span275[num]; + ref GatheringNodeGroup reference208 = ref span141[5]; GatheringNodeGroup gatheringNodeGroup75 = new GatheringNodeGroup(); num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - num3 = 0; - ref GatheringNode reference209 = ref span286[num3]; + ref GatheringNode reference209 = ref CollectionsMarshal.AsSpan(list286)[0]; GatheringNode obj134 = new GatheringNode { DataId = 32517u }; - num5 = 1; - List list287 = new List(num5); - CollectionsMarshal.SetCount(list287, num5); - Span span287 = CollectionsMarshal.AsSpan(list287); - num4 = 0; - span287[num4] = new GatheringLocation + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + CollectionsMarshal.AsSpan(list287)[0] = new GatheringLocation { Position = new Vector3(-265.2769f, 90.43383f, 45.49376f), MinimumAngle = -40, @@ -11725,16 +10014,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - Span span288 = CollectionsMarshal.AsSpan(list288); - index = 0; - span288[index] = "liza"; + CollectionsMarshal.AsSpan(list288)[0] = "liza"; gatheringRoot27.Author = list288; - 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) + num = 1; + List list289 = new List(num); + CollectionsMarshal.SetCount(list289, num); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; @@ -11742,33 +10027,29 @@ public static class AssemblyGatheringLocationLoader num = 3; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - ref GatheringNodeGroup reference210 = ref span290[index]; + Span span142 = CollectionsMarshal.AsSpan(list290); + ref GatheringNodeGroup reference210 = ref span142[0]; GatheringNodeGroup gatheringNodeGroup76 = new GatheringNodeGroup(); - num3 = 2; - List list291 = new List(num3); - CollectionsMarshal.SetCount(list291, num3); - Span span291 = CollectionsMarshal.AsSpan(list291); - num2 = 0; - ref GatheringNode reference211 = ref span291[num2]; + num2 = 2; + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + Span span143 = CollectionsMarshal.AsSpan(list291); + ref GatheringNode reference211 = ref span143[0]; GatheringNode obj135 = new GatheringNode { DataId = 32625u }; - num4 = 2; - List list292 = new List(num4); - CollectionsMarshal.SetCount(list292, num4); - Span span292 = CollectionsMarshal.AsSpan(list292); - num5 = 0; - span292[num5] = new GatheringLocation + num3 = 2; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + Span span144 = CollectionsMarshal.AsSpan(list292); + span144[0] = new GatheringLocation { Position = new Vector3(451.1189f, -40.18039f, 184.7025f), MinimumAngle = 95, MaximumAngle = 245 }; - num5++; - span292[num5] = new GatheringLocation + span144[1] = new GatheringLocation { Position = new Vector3(471.4881f, -41.63216f, 185.0577f), MinimumAngle = 160, @@ -11776,18 +10057,15 @@ public static class AssemblyGatheringLocationLoader }; obj135.Locations = list292; reference211 = obj135; - num2++; - ref GatheringNode reference212 = ref span291[num2]; + ref GatheringNode reference212 = ref span143[1]; GatheringNode obj136 = new GatheringNode { DataId = 32624u }; - num5 = 1; - List list293 = new List(num5); - CollectionsMarshal.SetCount(list293, num5); - Span span293 = CollectionsMarshal.AsSpan(list293); - num4 = 0; - span293[num4] = new GatheringLocation + num3 = 1; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + CollectionsMarshal.AsSpan(list293)[0] = new GatheringLocation { Position = new Vector3(463.4016f, -41.51461f, 181.6076f), MinimumAngle = 90, @@ -11797,25 +10075,21 @@ public static class AssemblyGatheringLocationLoader reference212 = obj136; gatheringNodeGroup76.Nodes = list291; reference210 = gatheringNodeGroup76; - index++; - ref GatheringNodeGroup reference213 = ref span290[index]; + ref GatheringNodeGroup reference213 = ref span142[1]; GatheringNodeGroup gatheringNodeGroup77 = new GatheringNodeGroup(); num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - num3 = 0; - ref GatheringNode reference214 = ref span294[num3]; + Span span145 = CollectionsMarshal.AsSpan(list294); + ref GatheringNode reference214 = ref span145[0]; GatheringNode obj137 = new GatheringNode { DataId = 32622u }; - num4 = 1; - List list295 = new List(num4); - CollectionsMarshal.SetCount(list295, num4); - Span span295 = CollectionsMarshal.AsSpan(list295); - num5 = 0; - span295[num5] = new GatheringLocation + num3 = 1; + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + CollectionsMarshal.AsSpan(list295)[0] = new GatheringLocation { Position = new Vector3(507.8041f, -33.50595f, 26.54234f), MinimumAngle = 60, @@ -11825,25 +10099,22 @@ public static class AssemblyGatheringLocationLoader }; obj137.Locations = list295; reference214 = obj137; - num3++; - ref GatheringNode reference215 = ref span294[num3]; + ref GatheringNode reference215 = ref span145[1]; GatheringNode obj138 = new GatheringNode { DataId = 32623u }; - num5 = 2; - List list296 = new List(num5); - CollectionsMarshal.SetCount(list296, num5); - Span span296 = CollectionsMarshal.AsSpan(list296); - num4 = 0; - span296[num4] = new GatheringLocation + num3 = 2; + List list296 = new List(num3); + CollectionsMarshal.SetCount(list296, num3); + Span span146 = CollectionsMarshal.AsSpan(list296); + span146[0] = new GatheringLocation { Position = new Vector3(509.3797f, -30.43971f, -2.22134f), MinimumAngle = -55, MaximumAngle = 30 }; - num4++; - span296[num4] = new GatheringLocation + span146[1] = new GatheringLocation { Position = new Vector3(490.9295f, -30.41992f, -0.7659363f), MinimumAngle = -70, @@ -11853,32 +10124,28 @@ public static class AssemblyGatheringLocationLoader reference215 = obj138; gatheringNodeGroup77.Nodes = list294; reference213 = gatheringNodeGroup77; - index++; - ref GatheringNodeGroup reference216 = ref span290[index]; + ref GatheringNodeGroup reference216 = ref span142[2]; GatheringNodeGroup gatheringNodeGroup78 = new GatheringNodeGroup(); - num3 = 2; - List list297 = new List(num3); - CollectionsMarshal.SetCount(list297, num3); - Span span297 = CollectionsMarshal.AsSpan(list297); - num2 = 0; - ref GatheringNode reference217 = ref span297[num2]; + num2 = 2; + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + Span span147 = CollectionsMarshal.AsSpan(list297); + ref GatheringNode reference217 = ref span147[0]; GatheringNode obj139 = new GatheringNode { DataId = 32621u }; - num4 = 2; - List list298 = new List(num4); - CollectionsMarshal.SetCount(list298, num4); - Span span298 = CollectionsMarshal.AsSpan(list298); - num5 = 0; - span298[num5] = new GatheringLocation + num3 = 2; + List list298 = new List(num3); + CollectionsMarshal.SetCount(list298, num3); + Span span148 = CollectionsMarshal.AsSpan(list298); + span148[0] = new GatheringLocation { Position = new Vector3(378.5f, -29.83888f, 25.41485f), MinimumAngle = -65, MaximumAngle = 30 }; - num5++; - span298[num5] = new GatheringLocation + span148[1] = new GatheringLocation { Position = new Vector3(358.2361f, -30f, 26.45336f), MinimumAngle = -40, @@ -11886,18 +10153,15 @@ public static class AssemblyGatheringLocationLoader }; obj139.Locations = list298; reference217 = obj139; - num2++; - ref GatheringNode reference218 = ref span297[num2]; + ref GatheringNode reference218 = ref span147[1]; GatheringNode obj140 = new GatheringNode { DataId = 32620u }; - num5 = 1; - List list299 = new List(num5); - CollectionsMarshal.SetCount(list299, num5); - Span span299 = CollectionsMarshal.AsSpan(list299); - num4 = 0; - span299[num4] = new GatheringLocation + num3 = 1; + List list299 = new List(num3); + CollectionsMarshal.SetCount(list299, num3); + CollectionsMarshal.AsSpan(list299)[0] = new GatheringLocation { Position = new Vector3(365.5395f, -34.4827f, 42.98462f), MinimumAngle = 190, @@ -11917,16 +10181,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; @@ -11934,50 +10194,43 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 32686u }; - int num4 = 2; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int num5 = 0; - span5[num5] = new GatheringLocation + int num3 = 2; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new GatheringLocation { Position = new Vector3(486.6385f, -28.30028f, -161.7677f), MinimumAngle = 155, MaximumAngle = 335 }; - num5++; - span5[num5] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(494.8945f, -21.52249f, -137.1469f) }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 32685u }; - num5 = 1; - List list6 = new List(num5); - CollectionsMarshal.SetCount(list6, num5); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation { Position = new Vector3(503.6436f, -23.70927f, -142.2979f) }; @@ -11985,25 +10238,21 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span4[0]; GatheringNode obj3 = new GatheringNode { DataId = 32689u }; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - num5 = 0; - span8[num5] = new GatheringLocation + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation { Position = new Vector3(657.1875f, -26.81644f, -235.4547f), MinimumAngle = 65, @@ -12011,25 +10260,22 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span4[1]; GatheringNode obj4 = new GatheringNode { DataId = 32690u }; - num5 = 2; - List list9 = new List(num5); - CollectionsMarshal.SetCount(list9, num5); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 2; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + Span span5 = CollectionsMarshal.AsSpan(list9); + span5[0] = new GatheringLocation { Position = new Vector3(655.8629f, -27.85928f, -256.156f), MinimumAngle = 65, MaximumAngle = 235 }; - num4++; - span9[num4] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(656.6887f, -26.66475f, -230.172f), MinimumAngle = -75, @@ -12039,32 +10285,28 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span6 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span6[0]; GatheringNode obj5 = new GatheringNode { DataId = 32688u }; - num4 = 2; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - num5 = 0; - span11[num5] = new GatheringLocation + num3 = 2; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span7 = CollectionsMarshal.AsSpan(list11); + span7[0] = new GatheringLocation { Position = new Vector3(487.4965f, -33.01668f, -304.6423f), MinimumAngle = 150, MaximumAngle = 330 }; - num5++; - span11[num5] = new GatheringLocation + span7[1] = new GatheringLocation { Position = new Vector3(477.8194f, -31.87613f, -320.6989f), MinimumAngle = 180, @@ -12072,18 +10314,15 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span6[1]; GatheringNode obj6 = new GatheringNode { DataId = 32687u }; - num5 = 1; - List list12 = new List(num5); - CollectionsMarshal.SetCount(list12, num5); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(481.1932f, -32.4591f, -313.7588f), MinimumAngle = 170, @@ -12096,51 +10335,43 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(611, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "liza"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = new QuestStep(EInteractionType.None, null, null, 814) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; gatheringRoot2.Steps = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref GatheringNodeGroup reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span8 = CollectionsMarshal.AsSpan(list15); + ref GatheringNodeGroup reference10 = ref span8[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num2 = 0; - ref GatheringNode reference11 = ref span16[num2]; + num2 = 2; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + Span span9 = CollectionsMarshal.AsSpan(list16); + ref GatheringNode reference11 = ref span9[0]; GatheringNode obj7 = new GatheringNode { DataId = 32816u }; - num4 = 2; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - num5 = 0; - span17[num5] = new GatheringLocation + num3 = 2; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + Span span10 = CollectionsMarshal.AsSpan(list17); + span10[0] = new GatheringLocation { Position = new Vector3(-210.0211f, 27.87489f, 244.1517f) }; - num5++; - span17[num5] = new GatheringLocation + span10[1] = new GatheringLocation { Position = new Vector3(-184.2966f, 33.53575f, 220.416f), MinimumAngle = -70, @@ -12148,18 +10379,15 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - num2++; - ref GatheringNode reference12 = ref span16[num2]; + ref GatheringNode reference12 = ref span9[1]; GatheringNode obj8 = new GatheringNode { DataId = 32815u }; - num5 = 1; - List list18 = new List(num5); - CollectionsMarshal.SetCount(list18, num5); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(-194.756f, 30.00866f, 235.5003f), MinimumAngle = 85, @@ -12169,25 +10397,21 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference13 = ref span15[num]; + ref GatheringNodeGroup reference13 = ref span8[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - ref GatheringNode reference14 = ref span19[num3]; + Span span11 = CollectionsMarshal.AsSpan(list19); + ref GatheringNode reference14 = ref span11[0]; GatheringNode obj9 = new GatheringNode { DataId = 32819u }; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - num5 = 0; - span20[num5] = new GatheringLocation + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation { Position = new Vector3(-184.1455f, 44.3671f, 162.0892f), MinimumAngle = -90, @@ -12195,25 +10419,22 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - num3++; - ref GatheringNode reference15 = ref span19[num3]; + ref GatheringNode reference15 = ref span11[1]; GatheringNode obj10 = new GatheringNode { DataId = 32820u }; - num5 = 2; - List list21 = new List(num5); - CollectionsMarshal.SetCount(list21, num5); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = new GatheringLocation + num3 = 2; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + Span span12 = CollectionsMarshal.AsSpan(list21); + span12[0] = new GatheringLocation { Position = new Vector3(-164.9459f, 43.40527f, 153.1118f), MinimumAngle = -100, MaximumAngle = 75 }; - num4++; - span21[num4] = new GatheringLocation + span12[1] = new GatheringLocation { Position = new Vector3(-167.3752f, 47.25292f, 136.0359f), MinimumAngle = -105, @@ -12223,32 +10444,28 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference16 = ref span15[num]; + ref GatheringNodeGroup reference16 = ref span8[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref GatheringNode reference17 = ref span22[num2]; + num2 = 2; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span13 = CollectionsMarshal.AsSpan(list22); + ref GatheringNode reference17 = ref span13[0]; GatheringNode obj11 = new GatheringNode { DataId = 32818u }; - num4 = 2; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - num5 = 0; - span23[num5] = new GatheringLocation + num3 = 2; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span14 = CollectionsMarshal.AsSpan(list23); + span14[0] = new GatheringLocation { Position = new Vector3(-246.385f, 72.55199f, 90.56253f), MinimumAngle = -85, MaximumAngle = 80 }; - num5++; - span23[num5] = new GatheringLocation + span14[1] = new GatheringLocation { Position = new Vector3(-208.7709f, 77.46264f, 68.17573f), MinimumAngle = -105, @@ -12256,18 +10473,15 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - num2++; - ref GatheringNode reference18 = ref span22[num2]; + ref GatheringNode reference18 = ref span13[1]; GatheringNode obj12 = new GatheringNode { DataId = 32817u }; - num5 = 1; - List list24 = new List(num5); - CollectionsMarshal.SetCount(list24, num5); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new GatheringLocation + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation { Position = new Vector3(-243.0861f, 79.1743f, 75.10091f), MinimumAngle = -120, @@ -12283,16 +10497,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; gatheringRoot3.Author = list25; - 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) + num = 1; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; @@ -12300,26 +10510,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - ref GatheringNodeGroup reference19 = ref span27[index]; + Span span15 = CollectionsMarshal.AsSpan(list27); + ref GatheringNodeGroup reference19 = ref span15[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref GatheringNode reference20 = ref span28[num3]; + Span span16 = CollectionsMarshal.AsSpan(list28); + ref GatheringNode reference20 = ref span16[0]; GatheringNode obj13 = new GatheringNode { DataId = 32825u }; - num4 = 1; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - num5 = 0; - span29[num5] = new GatheringLocation + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = new GatheringLocation { Position = new Vector3(-482.4797f, 39.54587f, 243.9857f), MinimumAngle = -95, @@ -12327,25 +10533,22 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - num3++; - ref GatheringNode reference21 = ref span28[num3]; + ref GatheringNode reference21 = ref span16[1]; GatheringNode obj14 = new GatheringNode { DataId = 32826u }; - num5 = 2; - List list30 = new List(num5); - CollectionsMarshal.SetCount(list30, num5); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + num3 = 2; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + Span span17 = CollectionsMarshal.AsSpan(list30); + span17[0] = new GatheringLocation { Position = new Vector3(-479.1443f, 39.79183f, 240.7795f), MinimumAngle = -75, MaximumAngle = 15 }; - num4++; - span30[num4] = new GatheringLocation + span17[1] = new GatheringLocation { Position = new Vector3(-486.3334f, 39.4147f, 246.6178f), MinimumAngle = -105, @@ -12355,32 +10558,28 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference22 = ref span27[index]; + ref GatheringNodeGroup reference22 = ref span15[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference23 = ref span31[num2]; + num2 = 2; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span18 = CollectionsMarshal.AsSpan(list31); + ref GatheringNode reference23 = ref span18[0]; GatheringNode obj15 = new GatheringNode { DataId = 32824u }; - num4 = 2; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - num5 = 0; - span32[num5] = new GatheringLocation + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span19 = CollectionsMarshal.AsSpan(list32); + span19[0] = new GatheringLocation { Position = new Vector3(-591.8113f, 26.1771f, 413.057f), MinimumAngle = 165, MaximumAngle = 265 }; - num5++; - span32[num5] = new GatheringLocation + span19[1] = new GatheringLocation { Position = new Vector3(-583.5104f, 26.20471f, 419.7504f), MinimumAngle = 180, @@ -12388,18 +10587,15 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - num2++; - ref GatheringNode reference24 = ref span31[num2]; + ref GatheringNode reference24 = ref span18[1]; GatheringNode obj16 = new GatheringNode { DataId = 32823u }; - num5 = 1; - List list33 = new List(num5); - CollectionsMarshal.SetCount(list33, num5); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = new GatheringLocation + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation { Position = new Vector3(-587.8331f, 26.20816f, 416.5177f), MinimumAngle = 155, @@ -12409,25 +10605,21 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference25 = ref span27[index]; + ref GatheringNodeGroup reference25 = ref span15[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - ref GatheringNode reference26 = ref span34[num3]; + Span span20 = CollectionsMarshal.AsSpan(list34); + ref GatheringNode reference26 = ref span20[0]; GatheringNode obj17 = new GatheringNode { DataId = 32821u }; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - num5 = 0; - span35[num5] = new GatheringLocation + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation { Position = new Vector3(-667.9664f, 24.58142f, 365.2537f), MinimumAngle = 165, @@ -12435,25 +10627,22 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - num3++; - ref GatheringNode reference27 = ref span34[num3]; + ref GatheringNode reference27 = ref span20[1]; GatheringNode obj18 = new GatheringNode { DataId = 32822u }; - num5 = 2; - List list36 = new List(num5); - CollectionsMarshal.SetCount(list36, num5); - Span span36 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span36[num4] = new GatheringLocation + num3 = 2; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + Span span21 = CollectionsMarshal.AsSpan(list36); + span21[0] = new GatheringLocation { Position = new Vector3(-672.0605f, 24.69111f, 363.4729f), MinimumAngle = 115, MaximumAngle = 215 }; - num4++; - span36[num4] = new GatheringLocation + span21[1] = new GatheringLocation { Position = new Vector3(-663.9247f, 24.84755f, 366.6812f), MinimumAngle = 170, @@ -12466,19 +10655,16 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(650, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - span37[num] = "liza"; + num = 1; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + CollectionsMarshal.AsSpan(list37)[0] = "liza"; gatheringRoot4.Author = list37; num = 2; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(329.38184f, 9.586891f, 749.2314f), 816) + Span span22 = CollectionsMarshal.AsSpan(list38); + span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(329.38184f, 9.586891f, 749.2314f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -12490,63 +10676,54 @@ public static class AssemblyGatheringLocationLoader } } }; - index++; - span38[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.29465f, -38.275272f, 763.0457f), 816) + span22[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(351.29465f, -38.275272f, 763.0457f), 816) { DisableNavmesh = true, Fly = true }; gatheringRoot4.Steps = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref GatheringNodeGroup reference28 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span23 = CollectionsMarshal.AsSpan(list39); + ref GatheringNodeGroup reference28 = ref span23[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref GatheringNode reference29 = ref span40[num2]; + num2 = 2; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span24 = CollectionsMarshal.AsSpan(list40); + ref GatheringNode reference29 = ref span24[0]; GatheringNode obj19 = new GatheringNode { DataId = 32832u }; - num4 = 3; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span41 = CollectionsMarshal.AsSpan(list41); - num5 = 0; - span41[num5] = new GatheringLocation + num3 = 3; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + Span span25 = CollectionsMarshal.AsSpan(list41); + span25[0] = new GatheringLocation { Position = new Vector3(382.7488f, -72.47251f, 794.3513f) }; - num5++; - span41[num5] = new GatheringLocation + span25[1] = new GatheringLocation { Position = new Vector3(388.7861f, -74.19925f, 801.0947f) }; - num5++; - span41[num5] = new GatheringLocation + span25[2] = new GatheringLocation { Position = new Vector3(386.1797f, -73.5009f, 787.0967f) }; obj19.Locations = list41; reference29 = obj19; - num2++; - ref GatheringNode reference30 = ref span40[num2]; + ref GatheringNode reference30 = ref span24[1]; GatheringNode obj20 = new GatheringNode { DataId = 32831u }; - num5 = 1; - List list42 = new List(num5); - CollectionsMarshal.SetCount(list42, num5); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheringLocation + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation { Position = new Vector3(396.5799f, -76.29187f, 790.9022f) }; @@ -12554,47 +10731,40 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference31 = ref span39[num]; + ref GatheringNodeGroup reference31 = ref span23[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - ref GatheringNode reference32 = ref span43[num3]; + Span span26 = CollectionsMarshal.AsSpan(list43); + ref GatheringNode reference32 = ref span26[0]; GatheringNode obj21 = new GatheringNode { DataId = 32830u }; - num4 = 2; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - num5 = 0; - span44[num5] = new GatheringLocation + num3 = 2; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + Span span27 = CollectionsMarshal.AsSpan(list44); + span27[0] = new GatheringLocation { Position = new Vector3(492.6384f, -82.73045f, 804.714f) }; - num5++; - span44[num5] = new GatheringLocation + span27[1] = new GatheringLocation { Position = new Vector3(482.808f, -82.61642f, 802.591f) }; obj21.Locations = list44; reference32 = obj21; - num3++; - ref GatheringNode reference33 = ref span43[num3]; + ref GatheringNode reference33 = ref span26[1]; GatheringNode obj22 = new GatheringNode { DataId = 32829u }; - num5 = 1; - List list45 = new List(num5); - CollectionsMarshal.SetCount(list45, num5); - Span span45 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span45[num4] = new GatheringLocation + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(493.5814f, -82.43644f, 790.831f) }; @@ -12602,42 +10772,35 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference34 = ref span39[num]; + ref GatheringNodeGroup reference34 = ref span23[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num3 = 2; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref GatheringNode reference35 = ref span46[num2]; + num2 = 2; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span28 = CollectionsMarshal.AsSpan(list46); + ref GatheringNode reference35 = ref span28[0]; GatheringNode obj23 = new GatheringNode { DataId = 32827u }; - num4 = 1; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span47 = CollectionsMarshal.AsSpan(list47); - num5 = 0; - span47[num5] = new GatheringLocation + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = new GatheringLocation { Position = new Vector3(490.9451f, -97.88062f, 636.6115f) }; obj23.Locations = list47; reference35 = obj23; - num2++; - ref GatheringNode reference36 = ref span46[num2]; + ref GatheringNode reference36 = ref span28[1]; GatheringNode obj24 = new GatheringNode { DataId = 32828u }; - num5 = 1; - List list48 = new List(num5); - CollectionsMarshal.SetCount(list48, num5); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new GatheringLocation + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(491.5274f, -100.762f, 626.6958f) }; @@ -12651,16 +10814,13 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; gatheringRoot5.Author = list49; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -12672,8 +10832,7 @@ public static class AssemblyGatheringLocationLoader } } }; - num++; - span50[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(506.00256f, -37.76961f, 485.49347f), 816) + span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(506.00256f, -37.76961f, 485.49347f), 816) { DisableNavmesh = true, Fly = true @@ -12682,40 +10841,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - ref GatheringNodeGroup reference37 = ref span51[index]; + Span span30 = CollectionsMarshal.AsSpan(list51); + ref GatheringNodeGroup reference37 = ref span30[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - ref GatheringNode reference38 = ref span52[num3]; + Span span31 = CollectionsMarshal.AsSpan(list52); + ref GatheringNode reference38 = ref span31[0]; GatheringNode obj25 = new GatheringNode { DataId = 32836u }; - num4 = 3; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - num5 = 0; - span53[num5] = new GatheringLocation + num3 = 3; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + Span span32 = CollectionsMarshal.AsSpan(list53); + span32[0] = new GatheringLocation { Position = new Vector3(539.5437f, -81.62054f, 520.1647f), MinimumAngle = -30, MaximumAngle = 165 }; - num5++; - span53[num5] = new GatheringLocation + span32[1] = new GatheringLocation { Position = new Vector3(555.8599f, -73.65717f, 494.6164f), MinimumAngle = 35, MaximumAngle = 240 }; - num5++; - span53[num5] = new GatheringLocation + span32[2] = new GatheringLocation { Position = new Vector3(576.4164f, -69.75835f, 512.9263f), MinimumAngle = -75, @@ -12723,18 +10877,15 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - num3++; - ref GatheringNode reference39 = ref span52[num3]; + ref GatheringNode reference39 = ref span31[1]; GatheringNode obj26 = new GatheringNode { DataId = 32835u }; - num5 = 1; - List list54 = new List(num5); - CollectionsMarshal.SetCount(list54, num5); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new GatheringLocation + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation { Position = new Vector3(552.5504f, -78.23183f, 512.429f), MinimumAngle = -30, @@ -12744,32 +10895,28 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference40 = ref span51[index]; + ref GatheringNodeGroup reference40 = ref span30[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num3 = 2; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num2 = 0; - ref GatheringNode reference41 = ref span55[num2]; + num2 = 2; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span33 = CollectionsMarshal.AsSpan(list55); + ref GatheringNode reference41 = ref span33[0]; GatheringNode obj27 = new GatheringNode { DataId = 32838u }; - num4 = 2; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span56 = CollectionsMarshal.AsSpan(list56); - num5 = 0; - span56[num5] = new GatheringLocation + num3 = 2; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span34 = CollectionsMarshal.AsSpan(list56); + span34[0] = new GatheringLocation { Position = new Vector3(652.7063f, -46.64378f, 488.4543f), MinimumAngle = 0, MaximumAngle = 120 }; - num5++; - span56[num5] = new GatheringLocation + span34[1] = new GatheringLocation { Position = new Vector3(669.2959f, -47.14824f, 513.9606f), MinimumAngle = -20, @@ -12777,18 +10924,15 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - num2++; - ref GatheringNode reference42 = ref span55[num2]; + ref GatheringNode reference42 = ref span33[1]; GatheringNode obj28 = new GatheringNode { DataId = 32837u }; - num5 = 1; - List list57 = new List(num5); - CollectionsMarshal.SetCount(list57, num5); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = new GatheringLocation + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation { Position = new Vector3(659.1685f, -46.65159f, 499.8015f), MinimumAngle = 0, @@ -12798,25 +10942,21 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference43 = ref span51[index]; + ref GatheringNodeGroup reference43 = ref span30[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - ref GatheringNode reference44 = ref span58[num3]; + Span span35 = CollectionsMarshal.AsSpan(list58); + ref GatheringNode reference44 = ref span35[0]; GatheringNode obj29 = new GatheringNode { DataId = 32834u }; - num4 = 1; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span59 = CollectionsMarshal.AsSpan(list59); - num5 = 0; - span59[num5] = new GatheringLocation + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation { Position = new Vector3(576.1583f, -46.68682f, 375.5306f), MinimumAngle = -40, @@ -12824,18 +10964,15 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - num3++; - ref GatheringNode reference45 = ref span58[num3]; + ref GatheringNode reference45 = ref span35[1]; GatheringNode obj30 = new GatheringNode { DataId = 32833u }; - num5 = 1; - List list60 = new List(num5); - CollectionsMarshal.SetCount(list60, num5); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new GatheringLocation + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation { Position = new Vector3(571.1834f, -46.41214f, 360.5112f), MinimumAngle = 0, @@ -12848,46 +10985,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(652, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - span61[num] = "liza"; + num = 1; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + CollectionsMarshal.AsSpan(list61)[0] = "liza"; gatheringRoot6.Author = list61; num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = new QuestStep(EInteractionType.None, null, null, 817) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; gatheringRoot6.Steps = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref GatheringNodeGroup reference46 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span36 = CollectionsMarshal.AsSpan(list63); + ref GatheringNodeGroup reference46 = ref span36[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num3 = 1; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref GatheringNode reference47 = ref span64[num2]; + num2 = 1; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + ref GatheringNode reference47 = ref CollectionsMarshal.AsSpan(list64)[0]; GatheringNode obj31 = new GatheringNode { DataId = 32993u }; - num4 = 1; - List list65 = new List(num4); - CollectionsMarshal.SetCount(list65, num4); - Span span65 = CollectionsMarshal.AsSpan(list65); - num5 = 0; - span65[num5] = new GatheringLocation + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation { Position = new Vector3(-704.8221f, 2.162976f, 563.2257f), MinimumAngle = 35, @@ -12899,25 +11027,20 @@ public static class AssemblyGatheringLocationLoader reference47 = obj31; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference48 = ref span63[num]; + ref GatheringNodeGroup reference48 = ref span36[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num3 = 0; - ref GatheringNode reference49 = ref span66[num3]; + ref GatheringNode reference49 = ref CollectionsMarshal.AsSpan(list66)[0]; GatheringNode obj32 = new GatheringNode { DataId = 32991u }; - num5 = 1; - List list67 = new List(num5); - CollectionsMarshal.SetCount(list67, num5); - Span span67 = CollectionsMarshal.AsSpan(list67); - num4 = 0; - span67[num4] = new GatheringLocation + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation { Position = new Vector3(-702.9366f, 3.147394f, 580.9824f), MinimumAngle = 20, @@ -12927,25 +11050,20 @@ public static class AssemblyGatheringLocationLoader reference49 = obj32; gatheringNodeGroup17.Nodes = list66; reference48 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference50 = ref span63[num]; + ref GatheringNodeGroup reference50 = ref span36[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num3 = 1; - List list68 = new List(num3); - CollectionsMarshal.SetCount(list68, num3); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref GatheringNode reference51 = ref span68[num2]; + num2 = 1; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + ref GatheringNode reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; GatheringNode obj33 = new GatheringNode { DataId = 32992u }; - num4 = 1; - List list69 = new List(num4); - CollectionsMarshal.SetCount(list69, num4); - Span span69 = CollectionsMarshal.AsSpan(list69); - num5 = 0; - span69[num5] = new GatheringLocation + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation { Position = new Vector3(-731.9697f, 2.883299f, 562.4577f), MinimumAngle = 100, @@ -12961,52 +11079,42 @@ public static class AssemblyGatheringLocationLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - span70[index] = "liza"; + CollectionsMarshal.AsSpan(list70)[0] = "liza"; gatheringRoot7.Author = list70; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - num++; - span71[num] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) + span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) { DisableNavmesh = true, Fly = true }; - num++; - span71[num] = new QuestStep(EInteractionType.None, null, null, 817); + span37[2] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot7.Steps = list71; num = 3; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - ref GatheringNodeGroup reference52 = ref span72[index]; + Span span38 = CollectionsMarshal.AsSpan(list72); + ref GatheringNodeGroup reference52 = ref span38[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - ref GatheringNode reference53 = ref span73[num3]; + ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list73)[0]; GatheringNode obj34 = new GatheringNode { DataId = 32996u }; - num5 = 1; - List list74 = new List(num5); - CollectionsMarshal.SetCount(list74, num5); - Span span74 = CollectionsMarshal.AsSpan(list74); - num4 = 0; - span74[num4] = new GatheringLocation + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + CollectionsMarshal.AsSpan(list74)[0] = new GatheringLocation { Position = new Vector3(-831.8083f, -41.57311f, 115.2932f), MinimumAngle = 40, @@ -13018,25 +11126,20 @@ public static class AssemblyGatheringLocationLoader reference53 = obj34; gatheringNodeGroup19.Nodes = list73; reference52 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference54 = ref span72[index]; + ref GatheringNodeGroup reference54 = ref span38[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref GatheringNode reference55 = ref span75[num2]; + num2 = 1; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + ref GatheringNode reference55 = ref CollectionsMarshal.AsSpan(list75)[0]; GatheringNode obj35 = new GatheringNode { DataId = 32994u }; - num4 = 1; - List list76 = new List(num4); - CollectionsMarshal.SetCount(list76, num4); - Span span76 = CollectionsMarshal.AsSpan(list76); - num5 = 0; - span76[num5] = new GatheringLocation + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = new GatheringLocation { Position = new Vector3(-874.5662f, -38.51086f, 112.2362f), MinimumAngle = -75, @@ -13046,25 +11149,20 @@ public static class AssemblyGatheringLocationLoader reference55 = obj35; gatheringNodeGroup20.Nodes = list75; reference54 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference56 = ref span72[index]; + ref GatheringNodeGroup reference56 = ref span38[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num3 = 0; - ref GatheringNode reference57 = ref span77[num3]; + ref GatheringNode reference57 = ref CollectionsMarshal.AsSpan(list77)[0]; GatheringNode obj36 = new GatheringNode { DataId = 32995u }; - num5 = 1; - List list78 = new List(num5); - CollectionsMarshal.SetCount(list78, num5); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new GatheringLocation + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation { Position = new Vector3(-885.0585f, -37.47266f, 140.9555f), MinimumAngle = 225, @@ -13077,43 +11175,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list72; AddLocation(686, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - span79[num] = "liza"; + num = 1; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + CollectionsMarshal.AsSpan(list79)[0] = "liza"; gatheringRoot8.Author = list79; num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = new QuestStep(EInteractionType.None, null, null, 817); + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot8.Steps = list80; - index = 3; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref GatheringNodeGroup reference58 = ref span81[num]; + num = 3; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span39 = CollectionsMarshal.AsSpan(list81); + ref GatheringNodeGroup reference58 = ref span39[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num3 = 1; - List list82 = new List(num3); - CollectionsMarshal.SetCount(list82, num3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num2 = 0; - ref GatheringNode reference59 = ref span82[num2]; + num2 = 1; + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + ref GatheringNode reference59 = ref CollectionsMarshal.AsSpan(list82)[0]; GatheringNode obj37 = new GatheringNode { DataId = 32997u }; - num4 = 1; - List list83 = new List(num4); - CollectionsMarshal.SetCount(list83, num4); - Span span83 = CollectionsMarshal.AsSpan(list83); - num5 = 0; - span83[num5] = new GatheringLocation + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = new GatheringLocation { Position = new Vector3(476.9907f, -2.17159f, -464.3045f), MinimumAngle = -10, @@ -13123,25 +11212,20 @@ public static class AssemblyGatheringLocationLoader reference59 = obj37; gatheringNodeGroup22.Nodes = list82; reference58 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference60 = ref span81[num]; + ref GatheringNodeGroup reference60 = ref span39[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - ref GatheringNode reference61 = ref span84[num3]; + ref GatheringNode reference61 = ref CollectionsMarshal.AsSpan(list84)[0]; GatheringNode obj38 = new GatheringNode { DataId = 32999u }; - num5 = 1; - List list85 = new List(num5); - CollectionsMarshal.SetCount(list85, num5); - Span span85 = CollectionsMarshal.AsSpan(list85); - num4 = 0; - span85[num4] = new GatheringLocation + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = new GatheringLocation { Position = new Vector3(447.1716f, -0.6280748f, -467.6738f), MinimumAngle = -120, @@ -13151,25 +11235,20 @@ public static class AssemblyGatheringLocationLoader reference61 = obj38; gatheringNodeGroup23.Nodes = list84; reference60 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference62 = ref span81[num]; + ref GatheringNodeGroup reference62 = ref span39[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num3 = 1; - List list86 = new List(num3); - CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - num2 = 0; - ref GatheringNode reference63 = ref span86[num2]; + num2 = 1; + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + ref GatheringNode reference63 = ref CollectionsMarshal.AsSpan(list86)[0]; GatheringNode obj39 = new GatheringNode { DataId = 32998u }; - num4 = 1; - List list87 = new List(num4); - CollectionsMarshal.SetCount(list87, num4); - Span span87 = CollectionsMarshal.AsSpan(list87); - num5 = 0; - span87[num5] = new GatheringLocation + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = new GatheringLocation { Position = new Vector3(438.931f, -1.880641f, -455.9972f), MinimumAngle = -80, @@ -13185,40 +11264,31 @@ public static class AssemblyGatheringLocationLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "liza"; + CollectionsMarshal.AsSpan(list88)[0] = "liza"; gatheringRoot9.Author = list88; - 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); + num = 1; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot9.Steps = list89; num = 3; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - ref GatheringNodeGroup reference64 = ref span90[index]; + Span span40 = CollectionsMarshal.AsSpan(list90); + ref GatheringNodeGroup reference64 = ref span40[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - ref GatheringNode reference65 = ref span91[num3]; + ref GatheringNode reference65 = ref CollectionsMarshal.AsSpan(list91)[0]; GatheringNode obj40 = new GatheringNode { DataId = 33002u }; - num5 = 1; - List list92 = new List(num5); - CollectionsMarshal.SetCount(list92, num5); - Span span92 = CollectionsMarshal.AsSpan(list92); - num4 = 0; - span92[num4] = new GatheringLocation + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = new GatheringLocation { Position = new Vector3(164.1997f, 24.4362f, 58.99305f), MinimumAngle = 85, @@ -13228,25 +11298,20 @@ public static class AssemblyGatheringLocationLoader reference65 = obj40; gatheringNodeGroup25.Nodes = list91; reference64 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference66 = ref span90[index]; + ref GatheringNodeGroup reference66 = ref span40[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num3 = 1; - List list93 = new List(num3); - CollectionsMarshal.SetCount(list93, num3); - Span span93 = CollectionsMarshal.AsSpan(list93); - num2 = 0; - ref GatheringNode reference67 = ref span93[num2]; + num2 = 1; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + ref GatheringNode reference67 = ref CollectionsMarshal.AsSpan(list93)[0]; GatheringNode obj41 = new GatheringNode { DataId = 33001u }; - num4 = 1; - List list94 = new List(num4); - CollectionsMarshal.SetCount(list94, num4); - Span span94 = CollectionsMarshal.AsSpan(list94); - num5 = 0; - span94[num5] = new GatheringLocation + num3 = 1; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = new GatheringLocation { Position = new Vector3(131.2174f, 27.21391f, 45.33313f), MinimumAngle = 160, @@ -13256,25 +11321,20 @@ public static class AssemblyGatheringLocationLoader reference67 = obj41; gatheringNodeGroup26.Nodes = list93; reference66 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference68 = ref span90[index]; + ref GatheringNodeGroup reference68 = ref span40[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - num3 = 0; - ref GatheringNode reference69 = ref span95[num3]; + ref GatheringNode reference69 = ref CollectionsMarshal.AsSpan(list95)[0]; GatheringNode obj42 = new GatheringNode { DataId = 33000u }; - num5 = 1; - List list96 = new List(num5); - CollectionsMarshal.SetCount(list96, num5); - Span span96 = CollectionsMarshal.AsSpan(list96); - num4 = 0; - span96[num4] = new GatheringLocation + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation { Position = new Vector3(65.9342f, 22.4589f, 45.68196f), MinimumAngle = 180, @@ -13287,46 +11347,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list90; AddLocation(688, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - index = 1; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - span97[num] = "liza"; + num = 1; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + CollectionsMarshal.AsSpan(list97)[0] = "liza"; gatheringRoot10.Author = list97; num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = new QuestStep(EInteractionType.None, null, null, 817) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; gatheringRoot10.Steps = list98; - index = 3; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref GatheringNodeGroup reference70 = ref span99[num]; + num = 3; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span41 = CollectionsMarshal.AsSpan(list99); + ref GatheringNodeGroup reference70 = ref span41[0]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num3 = 1; - List list100 = new List(num3); - CollectionsMarshal.SetCount(list100, num3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref GatheringNode reference71 = ref span100[num2]; + num2 = 1; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + ref GatheringNode reference71 = ref CollectionsMarshal.AsSpan(list100)[0]; GatheringNode obj43 = new GatheringNode { DataId = 33005u }; - num4 = 1; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span101 = CollectionsMarshal.AsSpan(list101); - num5 = 0; - span101[num5] = new GatheringLocation + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + CollectionsMarshal.AsSpan(list101)[0] = new GatheringLocation { Position = new Vector3(214.7744f, -19.57758f, 623.6767f), MinimumAngle = -15, @@ -13336,25 +11387,20 @@ public static class AssemblyGatheringLocationLoader reference71 = obj43; gatheringNodeGroup28.Nodes = list100; reference70 = gatheringNodeGroup28; - num++; - ref GatheringNodeGroup reference72 = ref span99[num]; + ref GatheringNodeGroup reference72 = ref span41[1]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - ref GatheringNode reference73 = ref span102[num3]; + ref GatheringNode reference73 = ref CollectionsMarshal.AsSpan(list102)[0]; GatheringNode obj44 = new GatheringNode { DataId = 33004u }; - num5 = 1; - List list103 = new List(num5); - CollectionsMarshal.SetCount(list103, num5); - Span span103 = CollectionsMarshal.AsSpan(list103); - num4 = 0; - span103[num4] = new GatheringLocation + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = new GatheringLocation { Position = new Vector3(235.4031f, -17.474f, 645.2612f), MinimumAngle = -75, @@ -13364,25 +11410,20 @@ public static class AssemblyGatheringLocationLoader reference73 = obj44; gatheringNodeGroup29.Nodes = list102; reference72 = gatheringNodeGroup29; - num++; - ref GatheringNodeGroup reference74 = ref span99[num]; + ref GatheringNodeGroup reference74 = ref span41[2]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num3 = 1; - List list104 = new List(num3); - CollectionsMarshal.SetCount(list104, num3); - Span span104 = CollectionsMarshal.AsSpan(list104); - num2 = 0; - ref GatheringNode reference75 = ref span104[num2]; + num2 = 1; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + ref GatheringNode reference75 = ref CollectionsMarshal.AsSpan(list104)[0]; GatheringNode obj45 = new GatheringNode { DataId = 33003u }; - num4 = 1; - List list105 = new List(num4); - CollectionsMarshal.SetCount(list105, num4); - Span span105 = CollectionsMarshal.AsSpan(list105); - num5 = 0; - span105[num5] = new GatheringLocation + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation { Position = new Vector3(263.691f, -15.7453f, 659.6932f), MinimumAngle = 5, @@ -13398,16 +11439,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "liza"; + CollectionsMarshal.AsSpan(list106)[0] = "liza"; gatheringRoot11.Author = list106; - 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) + num = 1; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -13415,26 +11452,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - ref GatheringNodeGroup reference76 = ref span108[index]; + Span span42 = CollectionsMarshal.AsSpan(list108); + ref GatheringNodeGroup reference76 = ref span42[0]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - ref GatheringNode reference77 = ref span109[num3]; + ref GatheringNode reference77 = ref CollectionsMarshal.AsSpan(list109)[0]; GatheringNode obj46 = new GatheringNode { DataId = 33007u }; - num5 = 1; - List list110 = new List(num5); - CollectionsMarshal.SetCount(list110, num5); - Span span110 = CollectionsMarshal.AsSpan(list110); - num4 = 0; - span110[num4] = new GatheringLocation + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation { Position = new Vector3(-643.0819f, 1.715566f, 600.3007f) }; @@ -13442,25 +11474,20 @@ public static class AssemblyGatheringLocationLoader reference77 = obj46; gatheringNodeGroup31.Nodes = list109; reference76 = gatheringNodeGroup31; - index++; - ref GatheringNodeGroup reference78 = ref span108[index]; + ref GatheringNodeGroup reference78 = ref span42[1]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num3 = 1; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num2 = 0; - ref GatheringNode reference79 = ref span111[num2]; + num2 = 1; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + ref GatheringNode reference79 = ref CollectionsMarshal.AsSpan(list111)[0]; GatheringNode obj47 = new GatheringNode { DataId = 33006u }; - num4 = 1; - List list112 = new List(num4); - CollectionsMarshal.SetCount(list112, num4); - Span span112 = CollectionsMarshal.AsSpan(list112); - num5 = 0; - span112[num5] = new GatheringLocation + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + CollectionsMarshal.AsSpan(list112)[0] = new GatheringLocation { Position = new Vector3(-664.0663f, 4.130917f, 608.2639f), MinimumAngle = 100, @@ -13470,25 +11497,20 @@ public static class AssemblyGatheringLocationLoader reference79 = obj47; gatheringNodeGroup32.Nodes = list111; reference78 = gatheringNodeGroup32; - index++; - ref GatheringNodeGroup reference80 = ref span108[index]; + ref GatheringNodeGroup reference80 = ref span42[2]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - ref GatheringNode reference81 = ref span113[num3]; + ref GatheringNode reference81 = ref CollectionsMarshal.AsSpan(list113)[0]; GatheringNode obj48 = new GatheringNode { DataId = 33008u }; - num5 = 1; - List list114 = new List(num5); - CollectionsMarshal.SetCount(list114, num5); - Span span114 = CollectionsMarshal.AsSpan(list114); - num4 = 0; - span114[num4] = new GatheringLocation + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = new GatheringLocation { Position = new Vector3(-689.2495f, 4.592032f, 603.05f), MinimumAngle = -95, @@ -13501,55 +11523,45 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list108; AddLocation(690, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - index = 1; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - span115[num] = "liza"; + num = 1; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + CollectionsMarshal.AsSpan(list115)[0] = "liza"; gatheringRoot12.Author = list115; num = 3; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) + Span span43 = CollectionsMarshal.AsSpan(list116); + span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.09827f, 5.6f, 239.26955f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; - index++; - span116[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) + span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-789.0584f, -26.2001f, 239.5829f), 817) { DisableNavmesh = true, Fly = true }; - index++; - span116[index] = new QuestStep(EInteractionType.None, null, null, 817); + span43[2] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot12.Steps = list116; - index = 3; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref GatheringNodeGroup reference82 = ref span117[num]; + num = 3; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span44 = CollectionsMarshal.AsSpan(list117); + ref GatheringNodeGroup reference82 = ref span44[0]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num3 = 1; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num2 = 0; - ref GatheringNode reference83 = ref span118[num2]; + num2 = 1; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + ref GatheringNode reference83 = ref CollectionsMarshal.AsSpan(list118)[0]; GatheringNode obj49 = new GatheringNode { DataId = 33011u }; - num4 = 1; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - num5 = 0; - span119[num5] = new GatheringLocation + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation { Position = new Vector3(-833.2918f, -44.18139f, 229.6708f) }; @@ -13557,25 +11569,20 @@ public static class AssemblyGatheringLocationLoader reference83 = obj49; gatheringNodeGroup34.Nodes = list118; reference82 = gatheringNodeGroup34; - num++; - ref GatheringNodeGroup reference84 = ref span117[num]; + ref GatheringNodeGroup reference84 = ref span44[1]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num3 = 0; - ref GatheringNode reference85 = ref span120[num3]; + ref GatheringNode reference85 = ref CollectionsMarshal.AsSpan(list120)[0]; GatheringNode obj50 = new GatheringNode { DataId = 33010u }; - num5 = 1; - List list121 = new List(num5); - CollectionsMarshal.SetCount(list121, num5); - Span span121 = CollectionsMarshal.AsSpan(list121); - num4 = 0; - span121[num4] = new GatheringLocation + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = new GatheringLocation { Position = new Vector3(-869.9858f, -41.20595f, 221.9869f) }; @@ -13583,25 +11590,20 @@ public static class AssemblyGatheringLocationLoader reference85 = obj50; gatheringNodeGroup35.Nodes = list120; reference84 = gatheringNodeGroup35; - num++; - ref GatheringNodeGroup reference86 = ref span117[num]; + ref GatheringNodeGroup reference86 = ref span44[2]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num3 = 1; - List list122 = new List(num3); - CollectionsMarshal.SetCount(list122, num3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num2 = 0; - ref GatheringNode reference87 = ref span122[num2]; + num2 = 1; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + ref GatheringNode reference87 = ref CollectionsMarshal.AsSpan(list122)[0]; GatheringNode obj51 = new GatheringNode { DataId = 33009u }; - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span123 = CollectionsMarshal.AsSpan(list123); - num5 = 0; - span123[num5] = new GatheringLocation + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = new GatheringLocation { Position = new Vector3(-847.5519f, -41.43839f, 195.9766f) }; @@ -13615,40 +11617,31 @@ public static class AssemblyGatheringLocationLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "liza"; + CollectionsMarshal.AsSpan(list124)[0] = "liza"; gatheringRoot13.Author = list124; - 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); + num = 1; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot13.Steps = list125; num = 3; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - ref GatheringNodeGroup reference88 = ref span126[index]; + Span span45 = CollectionsMarshal.AsSpan(list126); + ref GatheringNodeGroup reference88 = ref span45[0]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - num3 = 0; - ref GatheringNode reference89 = ref span127[num3]; + ref GatheringNode reference89 = ref CollectionsMarshal.AsSpan(list127)[0]; GatheringNode obj52 = new GatheringNode { DataId = 33013u }; - num5 = 1; - List list128 = new List(num5); - CollectionsMarshal.SetCount(list128, num5); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = new GatheringLocation + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = new GatheringLocation { Position = new Vector3(471.6041f, 0.1209641f, -476.659f), MinimumAngle = 0, @@ -13658,25 +11651,20 @@ public static class AssemblyGatheringLocationLoader reference89 = obj52; gatheringNodeGroup37.Nodes = list127; reference88 = gatheringNodeGroup37; - index++; - ref GatheringNodeGroup reference90 = ref span126[index]; + ref GatheringNodeGroup reference90 = ref span45[1]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num3 = 1; - List list129 = new List(num3); - CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - num2 = 0; - ref GatheringNode reference91 = ref span129[num2]; + num2 = 1; + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + ref GatheringNode reference91 = ref CollectionsMarshal.AsSpan(list129)[0]; GatheringNode obj53 = new GatheringNode { DataId = 33012u }; - num4 = 1; - List list130 = new List(num4); - CollectionsMarshal.SetCount(list130, num4); - Span span130 = CollectionsMarshal.AsSpan(list130); - num5 = 0; - span130[num5] = new GatheringLocation + num3 = 1; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + CollectionsMarshal.AsSpan(list130)[0] = new GatheringLocation { Position = new Vector3(448.4756f, 2.033593f, -482.1674f), MinimumAngle = 155, @@ -13686,25 +11674,20 @@ public static class AssemblyGatheringLocationLoader reference91 = obj53; gatheringNodeGroup38.Nodes = list129; reference90 = gatheringNodeGroup38; - index++; - ref GatheringNodeGroup reference92 = ref span126[index]; + ref GatheringNodeGroup reference92 = ref span45[2]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - ref GatheringNode reference93 = ref span131[num3]; + ref GatheringNode reference93 = ref CollectionsMarshal.AsSpan(list131)[0]; GatheringNode obj54 = new GatheringNode { DataId = 33014u }; - num5 = 1; - List list132 = new List(num5); - CollectionsMarshal.SetCount(list132, num5); - Span span132 = CollectionsMarshal.AsSpan(list132); - num4 = 0; - span132[num4] = new GatheringLocation + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation { Position = new Vector3(433.1882f, 10.99631f, -517.6039f) }; @@ -13715,43 +11698,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list126; AddLocation(692, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - index = 1; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - span133[num] = "liza"; + num = 1; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + CollectionsMarshal.AsSpan(list133)[0] = "liza"; gatheringRoot14.Author = list133; num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = new QuestStep(EInteractionType.None, null, null, 817); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 817); gatheringRoot14.Steps = list134; - index = 3; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref GatheringNodeGroup reference94 = ref span135[num]; + num = 3; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span46 = CollectionsMarshal.AsSpan(list135); + ref GatheringNodeGroup reference94 = ref span46[0]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num3 = 1; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num2 = 0; - ref GatheringNode reference95 = ref span136[num2]; + num2 = 1; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + ref GatheringNode reference95 = ref CollectionsMarshal.AsSpan(list136)[0]; GatheringNode obj55 = new GatheringNode { DataId = 33015u }; - num4 = 1; - List list137 = new List(num4); - CollectionsMarshal.SetCount(list137, num4); - Span span137 = CollectionsMarshal.AsSpan(list137); - num5 = 0; - span137[num5] = new GatheringLocation + num3 = 1; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation { Position = new Vector3(301.3512f, 8.535884f, 8.796566f), MinimumAngle = 55, @@ -13761,25 +11735,20 @@ public static class AssemblyGatheringLocationLoader reference95 = obj55; gatheringNodeGroup40.Nodes = list136; reference94 = gatheringNodeGroup40; - num++; - ref GatheringNodeGroup reference96 = ref span135[num]; + ref GatheringNodeGroup reference96 = ref span46[1]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num3 = 0; - ref GatheringNode reference97 = ref span138[num3]; + ref GatheringNode reference97 = ref CollectionsMarshal.AsSpan(list138)[0]; GatheringNode obj56 = new GatheringNode { DataId = 33016u }; - num5 = 1; - List list139 = new List(num5); - CollectionsMarshal.SetCount(list139, num5); - Span span139 = CollectionsMarshal.AsSpan(list139); - num4 = 0; - span139[num4] = new GatheringLocation + num3 = 1; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + CollectionsMarshal.AsSpan(list139)[0] = new GatheringLocation { Position = new Vector3(273.905f, 10.59709f, 19.72124f), MinimumAngle = 135, @@ -13789,25 +11758,20 @@ public static class AssemblyGatheringLocationLoader reference97 = obj56; gatheringNodeGroup41.Nodes = list138; reference96 = gatheringNodeGroup41; - num++; - ref GatheringNodeGroup reference98 = ref span135[num]; + ref GatheringNodeGroup reference98 = ref span46[2]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num3 = 1; - List list140 = new List(num3); - CollectionsMarshal.SetCount(list140, num3); - Span span140 = CollectionsMarshal.AsSpan(list140); - num2 = 0; - ref GatheringNode reference99 = ref span140[num2]; + num2 = 1; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + ref GatheringNode reference99 = ref CollectionsMarshal.AsSpan(list140)[0]; GatheringNode obj57 = new GatheringNode { DataId = 33017u }; - num4 = 1; - List list141 = new List(num4); - CollectionsMarshal.SetCount(list141, num4); - Span span141 = CollectionsMarshal.AsSpan(list141); - num5 = 0; - span141[num5] = new GatheringLocation + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation { Position = new Vector3(271.7985f, 7.424402f, -29.68495f), MinimumAngle = -165, @@ -13823,16 +11787,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "liza"; + CollectionsMarshal.AsSpan(list142)[0] = "liza"; gatheringRoot15.Author = list142; - 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) + num = 1; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.None, null, null, 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -13840,26 +11800,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - ref GatheringNodeGroup reference100 = ref span144[index]; + Span span47 = CollectionsMarshal.AsSpan(list144); + ref GatheringNodeGroup reference100 = ref span47[0]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num3 = 0; - ref GatheringNode reference101 = ref span145[num3]; + ref GatheringNode reference101 = ref CollectionsMarshal.AsSpan(list145)[0]; GatheringNode obj58 = new GatheringNode { DataId = 33020u }; - num5 = 1; - List list146 = new List(num5); - CollectionsMarshal.SetCount(list146, num5); - Span span146 = CollectionsMarshal.AsSpan(list146); - num4 = 0; - span146[num4] = new GatheringLocation + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation { Position = new Vector3(226.1767f, -20.10281f, 643.5543f), MinimumAngle = -50, @@ -13869,25 +11824,20 @@ public static class AssemblyGatheringLocationLoader reference101 = obj58; gatheringNodeGroup43.Nodes = list145; reference100 = gatheringNodeGroup43; - index++; - ref GatheringNodeGroup reference102 = ref span144[index]; + ref GatheringNodeGroup reference102 = ref span47[1]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num3 = 1; - List list147 = new List(num3); - CollectionsMarshal.SetCount(list147, num3); - Span span147 = CollectionsMarshal.AsSpan(list147); - num2 = 0; - ref GatheringNode reference103 = ref span147[num2]; + num2 = 1; + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + ref GatheringNode reference103 = ref CollectionsMarshal.AsSpan(list147)[0]; GatheringNode obj59 = new GatheringNode { DataId = 33018u }; - num4 = 1; - List list148 = new List(num4); - CollectionsMarshal.SetCount(list148, num4); - Span span148 = CollectionsMarshal.AsSpan(list148); - num5 = 0; - span148[num5] = new GatheringLocation + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + CollectionsMarshal.AsSpan(list148)[0] = new GatheringLocation { Position = new Vector3(248.9525f, -17.98949f, 657.4498f), MinimumAngle = -55, @@ -13899,25 +11849,20 @@ public static class AssemblyGatheringLocationLoader reference103 = obj59; gatheringNodeGroup44.Nodes = list147; reference102 = gatheringNodeGroup44; - index++; - ref GatheringNodeGroup reference104 = ref span144[index]; + ref GatheringNodeGroup reference104 = ref span47[2]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - num3 = 0; - ref GatheringNode reference105 = ref span149[num3]; + ref GatheringNode reference105 = ref CollectionsMarshal.AsSpan(list149)[0]; GatheringNode obj60 = new GatheringNode { DataId = 33019u }; - num5 = 1; - List list150 = new List(num5); - CollectionsMarshal.SetCount(list150, num5); - Span span150 = CollectionsMarshal.AsSpan(list150); - num4 = 0; - span150[num4] = new GatheringLocation + num3 = 1; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + CollectionsMarshal.AsSpan(list150)[0] = new GatheringLocation { Position = new Vector3(209.0277f, -25.56828f, 701.8604f) }; @@ -13935,16 +11880,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - index = 1; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestStep reference = ref span2[num]; + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + ref QuestStep reference = ref CollectionsMarshal.AsSpan(list2)[0]; QuestStep obj = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -13959,9 +11900,7 @@ public static class AssemblyGatheringLocationLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = 399; + CollectionsMarshal.AsSpan(list3)[0] = 399; skipAetheryteCondition.InTerritory = list3; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj.SkipConditions = skipConditions; @@ -13970,16 +11909,14 @@ public static class AssemblyGatheringLocationLoader num = 3; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - Span span4 = CollectionsMarshal.AsSpan(list4); - index = 0; - ref GatheringNodeGroup reference2 = ref span4[index]; + Span span = CollectionsMarshal.AsSpan(list4); + ref GatheringNodeGroup reference2 = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); - index2 = 2; - List list5 = new List(index2); - CollectionsMarshal.SetCount(list5, index2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num2 = 0; - ref GatheringNode reference3 = ref span5[num2]; + num2 = 2; + List list5 = new List(num2); + CollectionsMarshal.SetCount(list5, num2); + Span span2 = CollectionsMarshal.AsSpan(list5); + ref GatheringNode reference3 = ref span2[0]; GatheringNode obj2 = new GatheringNode { DataId = 33285u @@ -13987,31 +11924,26 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation { Position = new Vector3(-426.4134f, 137.5601f, 514.3357f) }; obj2.Locations = list6; reference3 = obj2; - num2++; - ref GatheringNode reference4 = ref span5[num2]; + ref GatheringNode reference4 = ref span2[1]; GatheringNode obj3 = new GatheringNode { DataId = 33286u }; - index3 = 2; - List list7 = new List(index3); - CollectionsMarshal.SetCount(list7, index3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new GatheringLocation + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span3 = CollectionsMarshal.AsSpan(list7); + span3[0] = new GatheringLocation { Position = new Vector3(-448.7838f, 137.5986f, 514.3243f) }; - num3++; - span7[num3] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(-433.5015f, 137.6451f, 487.8173f) }; @@ -14019,15 +11951,13 @@ public static class AssemblyGatheringLocationLoader reference4 = obj3; gatheringNodeGroup.Nodes = list5; reference2 = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference5 = ref span4[index]; + ref GatheringNodeGroup reference5 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); num2 = 2; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref GatheringNode reference6 = ref span8[index2]; + Span span4 = CollectionsMarshal.AsSpan(list8); + ref GatheringNode reference6 = ref span4[0]; GatheringNode obj4 = new GatheringNode { DataId = 33288u @@ -14035,26 +11965,21 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - index3 = 0; - span9[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(-354.5423f, 137.5715f, 638.9959f) }; obj4.Locations = list9; reference6 = obj4; - index2++; - ref GatheringNode reference7 = ref span8[index2]; + ref GatheringNode reference7 = ref span4[1]; GatheringNode obj5 = new GatheringNode { DataId = 33287u }; - index3 = 1; - List list10 = new List(index3); - CollectionsMarshal.SetCount(list10, index3); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - span10[num3] = new GatheringLocation + num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = new GatheringLocation { Position = new Vector3(-352.4377f, 137.5906f, 604.364f) }; @@ -14062,15 +11987,13 @@ public static class AssemblyGatheringLocationLoader reference7 = obj5; gatheringNodeGroup2.Nodes = list8; reference5 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference8 = ref span4[index]; + ref GatheringNodeGroup reference8 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); - index2 = 2; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref GatheringNode reference9 = ref span11[num2]; + num2 = 2; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + Span span5 = CollectionsMarshal.AsSpan(list11); + ref GatheringNode reference9 = ref span5[0]; GatheringNode obj6 = new GatheringNode { DataId = 33284u @@ -14078,9 +12001,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - index3 = 0; - span12[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(-254.4776f, 137.97f, 591.0092f), MinimumAngle = -20, @@ -14088,18 +12009,15 @@ public static class AssemblyGatheringLocationLoader }; obj6.Locations = list12; reference9 = obj6; - num2++; - ref GatheringNode reference10 = ref span11[num2]; + ref GatheringNode reference10 = ref span5[1]; GatheringNode obj7 = new GatheringNode { DataId = 33283u }; - index3 = 1; - List list13 = new List(index3); - CollectionsMarshal.SetCount(list13, index3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num3 = 0; - span13[num3] = new GatheringLocation + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = new GatheringLocation { Position = new Vector3(-263.1079f, 137.4419f, 569.8724f), MinimumAngle = -10, @@ -14112,36 +12030,30 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list4; AddLocation(723, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - span14[num] = "liza"; + num = 1; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + CollectionsMarshal.AsSpan(list14)[0] = "liza"; gatheringRoot2.Author = list14; num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = new QuestStep(EInteractionType.None, null, null, 397) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.None, null, null, 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; gatheringRoot2.Steps = list15; - index = 3; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref GatheringNodeGroup reference11 = ref span16[num]; + num = 3; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span6 = CollectionsMarshal.AsSpan(list16); + ref GatheringNodeGroup reference11 = ref span6[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - ref GatheringNode reference12 = ref span17[index2]; + Span span7 = CollectionsMarshal.AsSpan(list17); + ref GatheringNode reference12 = ref span7[0]; GatheringNode obj8 = new GatheringNode { DataId = 33290u @@ -14149,16 +12061,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span18 = CollectionsMarshal.AsSpan(list18); - index3 = 0; - span18[index3] = new GatheringLocation + Span span8 = CollectionsMarshal.AsSpan(list18); + span8[0] = new GatheringLocation { Position = new Vector3(-409.5019f, 171.5775f, 49.79576f), MinimumAngle = -40, MaximumAngle = 115 }; - index3++; - span18[index3] = new GatheringLocation + span8[1] = new GatheringLocation { Position = new Vector3(-418.5088f, 168.7132f, 33.29783f), MinimumAngle = 10, @@ -14166,18 +12076,15 @@ public static class AssemblyGatheringLocationLoader }; obj8.Locations = list18; reference12 = obj8; - index2++; - ref GatheringNode reference13 = ref span17[index2]; + ref GatheringNode reference13 = ref span7[1]; GatheringNode obj9 = new GatheringNode { DataId = 33289u }; - index3 = 1; - List list19 = new List(index3); - CollectionsMarshal.SetCount(list19, index3); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - span19[num3] = new GatheringLocation + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + CollectionsMarshal.AsSpan(list19)[0] = new GatheringLocation { Position = new Vector3(-413.911f, 170.7656f, 43.01591f), MinimumAngle = 0, @@ -14187,15 +12094,13 @@ public static class AssemblyGatheringLocationLoader reference13 = obj9; gatheringNodeGroup4.Nodes = list17; reference11 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference14 = ref span16[num]; + ref GatheringNodeGroup reference14 = ref span6[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); - index2 = 2; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref GatheringNode reference15 = ref span20[num2]; + num2 = 2; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span9 = CollectionsMarshal.AsSpan(list20); + ref GatheringNode reference15 = ref span9[0]; GatheringNode obj10 = new GatheringNode { DataId = 33292u @@ -14203,9 +12108,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - index3 = 0; - span21[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation { Position = new Vector3(-510.636f, 169.9518f, 119.9934f), MinimumAngle = 150, @@ -14213,18 +12116,15 @@ public static class AssemblyGatheringLocationLoader }; obj10.Locations = list21; reference15 = obj10; - num2++; - ref GatheringNode reference16 = ref span20[num2]; + ref GatheringNode reference16 = ref span9[1]; GatheringNode obj11 = new GatheringNode { DataId = 33291u }; - index3 = 1; - List list22 = new List(index3); - CollectionsMarshal.SetCount(list22, index3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new GatheringLocation + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = new GatheringLocation { Position = new Vector3(-519.3103f, 169.0242f, 111.3145f), MinimumAngle = 125, @@ -14234,15 +12134,13 @@ public static class AssemblyGatheringLocationLoader reference16 = obj11; gatheringNodeGroup5.Nodes = list20; reference14 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference17 = ref span16[num]; + ref GatheringNodeGroup reference17 = ref span6[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref GatheringNode reference18 = ref span23[index2]; + Span span10 = CollectionsMarshal.AsSpan(list23); + ref GatheringNode reference18 = ref span10[0]; GatheringNode obj12 = new GatheringNode { DataId = 33293u @@ -14250,9 +12148,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span24 = CollectionsMarshal.AsSpan(list24); - index3 = 0; - span24[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation { Position = new Vector3(-563.8201f, 159.5121f, -11.58269f), MinimumAngle = -100, @@ -14260,18 +12156,15 @@ public static class AssemblyGatheringLocationLoader }; obj12.Locations = list24; reference18 = obj12; - index2++; - ref GatheringNode reference19 = ref span23[index2]; + ref GatheringNode reference19 = ref span10[1]; GatheringNode obj13 = new GatheringNode { DataId = 33294u }; - index3 = 1; - List list25 = new List(index3); - CollectionsMarshal.SetCount(list25, index3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - span25[num3] = new GatheringLocation + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation { Position = new Vector3(-555.6268f, 159.594f, -17.77679f), MinimumAngle = -145, @@ -14287,16 +12180,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; gatheringRoot3.Author = list26; - 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) + num = 1; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -14304,16 +12193,14 @@ public static class AssemblyGatheringLocationLoader num = 3; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - ref GatheringNodeGroup reference20 = ref span28[index]; + Span span11 = CollectionsMarshal.AsSpan(list28); + ref GatheringNodeGroup reference20 = ref span11[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); - index2 = 2; - List list29 = new List(index2); - CollectionsMarshal.SetCount(list29, index2); - Span span29 = CollectionsMarshal.AsSpan(list29); - num2 = 0; - ref GatheringNode reference21 = ref span29[num2]; + num2 = 2; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + Span span12 = CollectionsMarshal.AsSpan(list29); + ref GatheringNode reference21 = ref span12[0]; GatheringNode obj14 = new GatheringNode { DataId = 33300u @@ -14321,16 +12208,14 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - span30[index3] = new GatheringLocation + Span span13 = CollectionsMarshal.AsSpan(list30); + span13[0] = new GatheringLocation { Position = new Vector3(560.8948f, -19.68621f, -534.3345f), MinimumAngle = -75, MaximumAngle = 30 }; - index3++; - span30[index3] = new GatheringLocation + span13[1] = new GatheringLocation { Position = new Vector3(557.1625f, -19.65358f, -547.1852f), MinimumAngle = 60, @@ -14338,18 +12223,15 @@ public static class AssemblyGatheringLocationLoader }; obj14.Locations = list30; reference21 = obj14; - num2++; - ref GatheringNode reference22 = ref span29[num2]; + ref GatheringNode reference22 = ref span12[1]; GatheringNode obj15 = new GatheringNode { DataId = 33299u }; - index3 = 1; - List list31 = new List(index3); - CollectionsMarshal.SetCount(list31, index3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num3 = 0; - span31[num3] = new GatheringLocation + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = new GatheringLocation { Position = new Vector3(571.0399f, -19.2677f, -544.8133f), MinimumAngle = 200, @@ -14359,15 +12241,13 @@ public static class AssemblyGatheringLocationLoader reference22 = obj15; gatheringNodeGroup7.Nodes = list29; reference20 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference23 = ref span28[index]; + ref GatheringNodeGroup reference23 = ref span11[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref GatheringNode reference24 = ref span32[index2]; + Span span14 = CollectionsMarshal.AsSpan(list32); + ref GatheringNode reference24 = ref span14[0]; GatheringNode obj16 = new GatheringNode { DataId = 33297u @@ -14375,9 +12255,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span33 = CollectionsMarshal.AsSpan(list33); - index3 = 0; - span33[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation { Position = new Vector3(630.7735f, -18.70739f, -566.2144f), MinimumAngle = 85, @@ -14385,25 +12263,22 @@ public static class AssemblyGatheringLocationLoader }; obj16.Locations = list33; reference24 = obj16; - index2++; - ref GatheringNode reference25 = ref span32[index2]; + ref GatheringNode reference25 = ref span14[1]; GatheringNode obj17 = new GatheringNode { DataId = 33298u }; - index3 = 2; - List list34 = new List(index3); - CollectionsMarshal.SetCount(list34, index3); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - span34[num3] = new GatheringLocation + num3 = 2; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + Span span15 = CollectionsMarshal.AsSpan(list34); + span15[0] = new GatheringLocation { Position = new Vector3(639.3101f, -18.78794f, -559.5169f), MinimumAngle = -175, MaximumAngle = 0 }; - num3++; - span34[num3] = new GatheringLocation + span15[1] = new GatheringLocation { Position = new Vector3(618.4453f, -18.9477f, -559.1786f), MinimumAngle = 60, @@ -14413,15 +12288,13 @@ public static class AssemblyGatheringLocationLoader reference25 = obj17; gatheringNodeGroup8.Nodes = list32; reference23 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference26 = ref span28[index]; + ref GatheringNodeGroup reference26 = ref span11[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); - index2 = 2; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref GatheringNode reference27 = ref span35[num2]; + num2 = 2; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span16 = CollectionsMarshal.AsSpan(list35); + ref GatheringNode reference27 = ref span16[0]; GatheringNode obj18 = new GatheringNode { DataId = 33295u @@ -14429,9 +12302,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span36 = CollectionsMarshal.AsSpan(list36); - index3 = 0; - span36[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation { Position = new Vector3(731.6483f, -20.17027f, -614.199f), MinimumAngle = -35, @@ -14439,25 +12310,22 @@ public static class AssemblyGatheringLocationLoader }; obj18.Locations = list36; reference27 = obj18; - num2++; - ref GatheringNode reference28 = ref span35[num2]; + ref GatheringNode reference28 = ref span16[1]; GatheringNode obj19 = new GatheringNode { DataId = 33296u }; - index3 = 2; - List list37 = new List(index3); - CollectionsMarshal.SetCount(list37, index3); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = new GatheringLocation + num3 = 2; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + Span span17 = CollectionsMarshal.AsSpan(list37); + span17[0] = new GatheringLocation { Position = new Vector3(743.4034f, -19.02f, -621.8422f), MinimumAngle = 195, MaximumAngle = 325 }; - num3++; - span37[num3] = new GatheringLocation + span17[1] = new GatheringLocation { Position = new Vector3(727.6966f, -20.47985f, -627.8105f), MinimumAngle = 60, @@ -14470,36 +12338,30 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list28; AddLocation(725, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - span38[num] = "liza"; + num = 1; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + CollectionsMarshal.AsSpan(list38)[0] = "liza"; gatheringRoot4.Author = list38; num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = new QuestStep(EInteractionType.None, null, null, 400) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.None, null, null, 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; gatheringRoot4.Steps = list39; - index = 3; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref GatheringNodeGroup reference29 = ref span40[num]; + num = 3; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span18 = CollectionsMarshal.AsSpan(list40); + ref GatheringNodeGroup reference29 = ref span18[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); num2 = 2; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref GatheringNode reference30 = ref span41[index2]; + Span span19 = CollectionsMarshal.AsSpan(list41); + ref GatheringNode reference30 = ref span19[0]; GatheringNode obj20 = new GatheringNode { DataId = 33305u @@ -14507,9 +12369,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span42 = CollectionsMarshal.AsSpan(list42); - index3 = 0; - span42[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation { Position = new Vector3(-560.7639f, 266.9573f, -744.8922f), MinimumAngle = -45, @@ -14517,18 +12377,15 @@ public static class AssemblyGatheringLocationLoader }; obj20.Locations = list42; reference30 = obj20; - index2++; - ref GatheringNode reference31 = ref span41[index2]; + ref GatheringNode reference31 = ref span19[1]; GatheringNode obj21 = new GatheringNode { DataId = 33306u }; - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span43[num3] = new GatheringLocation + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation { Position = new Vector3(-547.9997f, 268.3711f, -737.2209f), MinimumAngle = 0, @@ -14538,15 +12395,13 @@ public static class AssemblyGatheringLocationLoader reference31 = obj21; gatheringNodeGroup10.Nodes = list41; reference29 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference32 = ref span40[num]; + ref GatheringNodeGroup reference32 = ref span18[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); - index2 = 2; - List list44 = new List(index2); - CollectionsMarshal.SetCount(list44, index2); - Span span44 = CollectionsMarshal.AsSpan(list44); - num2 = 0; - ref GatheringNode reference33 = ref span44[num2]; + num2 = 2; + List list44 = new List(num2); + CollectionsMarshal.SetCount(list44, num2); + Span span20 = CollectionsMarshal.AsSpan(list44); + ref GatheringNode reference33 = ref span20[0]; GatheringNode obj22 = new GatheringNode { DataId = 33304u @@ -14554,9 +12409,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - index3 = 0; - span45[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(-682.6185f, 261.1417f, -778.2869f), MinimumAngle = -50, @@ -14566,18 +12419,15 @@ public static class AssemblyGatheringLocationLoader }; obj22.Locations = list45; reference33 = obj22; - num2++; - ref GatheringNode reference34 = ref span44[num2]; + ref GatheringNode reference34 = ref span20[1]; GatheringNode obj23 = new GatheringNode { DataId = 33303u }; - index3 = 1; - List list46 = new List(index3); - CollectionsMarshal.SetCount(list46, index3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num3 = 0; - span46[num3] = new GatheringLocation + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = new GatheringLocation { Position = new Vector3(-696.5138f, 261.6092f, -759.7711f), MinimumAngle = 215, @@ -14587,15 +12437,13 @@ public static class AssemblyGatheringLocationLoader reference34 = obj23; gatheringNodeGroup11.Nodes = list44; reference32 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference35 = ref span40[num]; + ref GatheringNodeGroup reference35 = ref span18[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); num2 = 2; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - ref GatheringNode reference36 = ref span47[index2]; + Span span21 = CollectionsMarshal.AsSpan(list47); + ref GatheringNode reference36 = ref span21[0]; GatheringNode obj24 = new GatheringNode { DataId = 33301u @@ -14603,9 +12451,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - index3 = 0; - span48[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(-792.3468f, 271.3054f, -737.431f), MinimumAngle = 280, @@ -14615,18 +12461,15 @@ public static class AssemblyGatheringLocationLoader }; obj24.Locations = list48; reference36 = obj24; - index2++; - ref GatheringNode reference37 = ref span47[index2]; + ref GatheringNode reference37 = ref span21[1]; GatheringNode obj25 = new GatheringNode { DataId = 33302u }; - index3 = 1; - List list49 = new List(index3); - CollectionsMarshal.SetCount(list49, index3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = new GatheringLocation + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = new GatheringLocation { Position = new Vector3(-800.0043f, 269.2748f, -729.5305f), MinimumAngle = 230, @@ -14642,16 +12485,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = "liza"; + CollectionsMarshal.AsSpan(list50)[0] = "liza"; gatheringRoot5.Author = list50; - 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) + num = 1; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; @@ -14659,16 +12498,14 @@ public static class AssemblyGatheringLocationLoader num = 3; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - ref GatheringNodeGroup reference38 = ref span52[index]; + Span span22 = CollectionsMarshal.AsSpan(list52); + ref GatheringNodeGroup reference38 = ref span22[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); - index2 = 2; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref GatheringNode reference39 = ref span53[num2]; + num2 = 2; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + Span span23 = CollectionsMarshal.AsSpan(list53); + ref GatheringNode reference39 = ref span23[0]; GatheringNode obj26 = new GatheringNode { DataId = 33308u @@ -14676,9 +12513,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - index3 = 0; - span54[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation { Position = new Vector3(612.0084f, -154.126f, 721.6054f), MinimumAngle = -220, @@ -14686,18 +12521,15 @@ public static class AssemblyGatheringLocationLoader }; obj26.Locations = list54; reference39 = obj26; - num2++; - ref GatheringNode reference40 = ref span53[num2]; + ref GatheringNode reference40 = ref span23[1]; GatheringNode obj27 = new GatheringNode { DataId = 33307u }; - index3 = 1; - List list55 = new List(index3); - CollectionsMarshal.SetCount(list55, index3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = new GatheringLocation + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = new GatheringLocation { Position = new Vector3(601.7455f, -154.7067f, 734.4706f), MinimumAngle = -120, @@ -14707,15 +12539,13 @@ public static class AssemblyGatheringLocationLoader reference40 = obj27; gatheringNodeGroup13.Nodes = list53; reference38 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference41 = ref span52[index]; + ref GatheringNodeGroup reference41 = ref span22[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); num2 = 2; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref GatheringNode reference42 = ref span56[index2]; + Span span24 = CollectionsMarshal.AsSpan(list56); + ref GatheringNode reference42 = ref span24[0]; GatheringNode obj28 = new GatheringNode { DataId = 33311u @@ -14723,26 +12553,21 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span57 = CollectionsMarshal.AsSpan(list57); - index3 = 0; - span57[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation { Position = new Vector3(654.2362f, -159.8305f, 820.9418f) }; obj28.Locations = list57; reference42 = obj28; - index2++; - ref GatheringNode reference43 = ref span56[index2]; + ref GatheringNode reference43 = ref span24[1]; GatheringNode obj29 = new GatheringNode { DataId = 33312u }; - index3 = 1; - List list58 = new List(index3); - CollectionsMarshal.SetCount(list58, index3); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - span58[num3] = new GatheringLocation + num3 = 1; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + CollectionsMarshal.AsSpan(list58)[0] = new GatheringLocation { Position = new Vector3(656.2291f, -160.4766f, 826.9885f), MinimumAngle = 100, @@ -14752,15 +12577,13 @@ public static class AssemblyGatheringLocationLoader reference43 = obj29; gatheringNodeGroup14.Nodes = list56; reference41 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference44 = ref span52[index]; + ref GatheringNodeGroup reference44 = ref span22[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); - index2 = 2; - List list59 = new List(index2); - CollectionsMarshal.SetCount(list59, index2); - Span span59 = CollectionsMarshal.AsSpan(list59); - num2 = 0; - ref GatheringNode reference45 = ref span59[num2]; + num2 = 2; + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + Span span25 = CollectionsMarshal.AsSpan(list59); + ref GatheringNode reference45 = ref span25[0]; GatheringNode obj30 = new GatheringNode { DataId = 33309u @@ -14768,9 +12591,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span60 = CollectionsMarshal.AsSpan(list60); - index3 = 0; - span60[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation { Position = new Vector3(739.0756f, -158.0396f, 642.5712f), MinimumAngle = 110, @@ -14780,18 +12601,15 @@ public static class AssemblyGatheringLocationLoader }; obj30.Locations = list60; reference45 = obj30; - num2++; - ref GatheringNode reference46 = ref span59[num2]; + ref GatheringNode reference46 = ref span25[1]; GatheringNode obj31 = new GatheringNode { DataId = 33310u }; - index3 = 1; - List list61 = new List(index3); - CollectionsMarshal.SetCount(list61, index3); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = new GatheringLocation + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = new GatheringLocation { Position = new Vector3(723.027f, -157.7834f, 626.666f), MinimumAngle = -170, @@ -14804,36 +12622,30 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list52; AddLocation(727, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - span62[num] = "liza"; + num = 1; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + CollectionsMarshal.AsSpan(list62)[0] = "liza"; gatheringRoot6.Author = list62; num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = new QuestStep(EInteractionType.None, null, null, 401) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.None, null, null, 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; gatheringRoot6.Steps = list63; - index = 3; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref GatheringNodeGroup reference47 = ref span64[num]; + num = 3; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + Span span26 = CollectionsMarshal.AsSpan(list64); + ref GatheringNodeGroup reference47 = ref span26[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref GatheringNode reference48 = ref span65[index2]; + Span span27 = CollectionsMarshal.AsSpan(list65); + ref GatheringNode reference48 = ref span27[0]; GatheringNode obj32 = new GatheringNode { DataId = 33313u @@ -14841,9 +12653,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - index3 = 0; - span66[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation { Position = new Vector3(284.0225f, -40.41348f, -766.5984f), MinimumAngle = 160, @@ -14853,18 +12663,15 @@ public static class AssemblyGatheringLocationLoader }; obj32.Locations = list66; reference48 = obj32; - index2++; - ref GatheringNode reference49 = ref span65[index2]; + ref GatheringNode reference49 = ref span27[1]; GatheringNode obj33 = new GatheringNode { DataId = 33314u }; - index3 = 1; - List list67 = new List(index3); - CollectionsMarshal.SetCount(list67, index3); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - span67[num3] = new GatheringLocation + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = new GatheringLocation { Position = new Vector3(291.4046f, -40.37925f, -758.5402f), MinimumAngle = 210, @@ -14874,15 +12681,13 @@ public static class AssemblyGatheringLocationLoader reference49 = obj33; gatheringNodeGroup16.Nodes = list65; reference47 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference50 = ref span64[num]; + ref GatheringNodeGroup reference50 = ref span26[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); - index2 = 2; - List list68 = new List(index2); - CollectionsMarshal.SetCount(list68, index2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref GatheringNode reference51 = ref span68[num2]; + num2 = 2; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + Span span28 = CollectionsMarshal.AsSpan(list68); + ref GatheringNode reference51 = ref span28[0]; GatheringNode obj34 = new GatheringNode { DataId = 33315u @@ -14890,9 +12695,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span69 = CollectionsMarshal.AsSpan(list69); - index3 = 0; - span69[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation { Position = new Vector3(358.8156f, -41.42974f, -734.5118f), MinimumAngle = 115, @@ -14900,18 +12703,15 @@ public static class AssemblyGatheringLocationLoader }; obj34.Locations = list69; reference51 = obj34; - num2++; - ref GatheringNode reference52 = ref span68[num2]; + ref GatheringNode reference52 = ref span28[1]; GatheringNode obj35 = new GatheringNode { DataId = 33316u }; - index3 = 1; - List list70 = new List(index3); - CollectionsMarshal.SetCount(list70, index3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num3 = 0; - span70[num3] = new GatheringLocation + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = new GatheringLocation { Position = new Vector3(367.6869f, -41.54303f, -735.3597f), MinimumAngle = 70, @@ -14921,15 +12721,13 @@ public static class AssemblyGatheringLocationLoader reference52 = obj35; gatheringNodeGroup17.Nodes = list68; reference50 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference53 = ref span64[num]; + ref GatheringNodeGroup reference53 = ref span26[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - ref GatheringNode reference54 = ref span71[index2]; + Span span29 = CollectionsMarshal.AsSpan(list71); + ref GatheringNode reference54 = ref span29[0]; GatheringNode obj36 = new GatheringNode { DataId = 33317u @@ -14937,9 +12735,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span72 = CollectionsMarshal.AsSpan(list72); - index3 = 0; - span72[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation { Position = new Vector3(452.3558f, -47.13874f, -752.6805f), MinimumAngle = 150, @@ -14947,18 +12743,15 @@ public static class AssemblyGatheringLocationLoader }; obj36.Locations = list72; reference54 = obj36; - index2++; - ref GatheringNode reference55 = ref span71[index2]; + ref GatheringNode reference55 = ref span29[1]; GatheringNode obj37 = new GatheringNode { DataId = 33318u }; - index3 = 1; - List list73 = new List(index3); - CollectionsMarshal.SetCount(list73, index3); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = new GatheringLocation + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = new GatheringLocation { Position = new Vector3(465.9165f, -47.82627f, -756.4039f), MinimumAngle = 35, @@ -14976,16 +12769,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "liza"; + CollectionsMarshal.AsSpan(list74)[0] = "liza"; gatheringRoot7.Author = list74; - 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) + num = 1; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -14993,16 +12782,14 @@ public static class AssemblyGatheringLocationLoader num = 3; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - ref GatheringNodeGroup reference56 = ref span76[index]; + Span span30 = CollectionsMarshal.AsSpan(list76); + ref GatheringNodeGroup reference56 = ref span30[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); - index2 = 2; - List list77 = new List(index2); - CollectionsMarshal.SetCount(list77, index2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num2 = 0; - ref GatheringNode reference57 = ref span77[num2]; + num2 = 2; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + Span span31 = CollectionsMarshal.AsSpan(list77); + ref GatheringNode reference57 = ref span31[0]; GatheringNode obj38 = new GatheringNode { DataId = 33321u @@ -15010,9 +12797,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - index3 = 0; - span78[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list78)[0] = new GatheringLocation { Position = new Vector3(518.1079f, 218.4718f, -593.7597f), MinimumAngle = -140, @@ -15020,25 +12805,22 @@ public static class AssemblyGatheringLocationLoader }; obj38.Locations = list78; reference57 = obj38; - num2++; - ref GatheringNode reference58 = ref span77[num2]; + ref GatheringNode reference58 = ref span31[1]; GatheringNode obj39 = new GatheringNode { DataId = 33322u }; - index3 = 2; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - span79[num3] = new GatheringLocation + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span32 = CollectionsMarshal.AsSpan(list79); + span32[0] = new GatheringLocation { Position = new Vector3(543.8551f, 223.6571f, -583.9418f), MinimumAngle = 175, MaximumAngle = 290 }; - num3++; - span79[num3] = new GatheringLocation + span32[1] = new GatheringLocation { Position = new Vector3(513.8116f, 218.4708f, -580.1434f), MinimumAngle = 0, @@ -15048,15 +12830,13 @@ public static class AssemblyGatheringLocationLoader reference58 = obj39; gatheringNodeGroup19.Nodes = list77; reference56 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference59 = ref span76[index]; + ref GatheringNodeGroup reference59 = ref span30[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - ref GatheringNode reference60 = ref span80[index2]; + Span span33 = CollectionsMarshal.AsSpan(list80); + ref GatheringNode reference60 = ref span33[0]; GatheringNode obj40 = new GatheringNode { DataId = 33323u @@ -15064,9 +12844,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - Span span81 = CollectionsMarshal.AsSpan(list81); - index3 = 0; - span81[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation { Position = new Vector3(648.0388f, 230.7679f, -678.8027f), MinimumAngle = 225, @@ -15074,18 +12852,15 @@ public static class AssemblyGatheringLocationLoader }; obj40.Locations = list81; reference60 = obj40; - index2++; - ref GatheringNode reference61 = ref span80[index2]; + ref GatheringNode reference61 = ref span33[1]; GatheringNode obj41 = new GatheringNode { DataId = 33324u }; - index3 = 1; - List list82 = new List(index3); - CollectionsMarshal.SetCount(list82, index3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = new GatheringLocation + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation { Position = new Vector3(675.1682f, 234.6712f, -675.749f), MinimumAngle = -55, @@ -15095,15 +12870,13 @@ public static class AssemblyGatheringLocationLoader reference61 = obj41; gatheringNodeGroup20.Nodes = list80; reference59 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference62 = ref span76[index]; + ref GatheringNodeGroup reference62 = ref span30[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); - index2 = 2; - List list83 = new List(index2); - CollectionsMarshal.SetCount(list83, index2); - Span span83 = CollectionsMarshal.AsSpan(list83); - num2 = 0; - ref GatheringNode reference63 = ref span83[num2]; + num2 = 2; + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + Span span34 = CollectionsMarshal.AsSpan(list83); + ref GatheringNode reference63 = ref span34[0]; GatheringNode obj42 = new GatheringNode { DataId = 33320u @@ -15111,9 +12884,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span84 = CollectionsMarshal.AsSpan(list84); - index3 = 0; - span84[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation { Position = new Vector3(722.4699f, 242.8886f, -598.9974f), MinimumAngle = 65, @@ -15121,18 +12892,15 @@ public static class AssemblyGatheringLocationLoader }; obj42.Locations = list84; reference63 = obj42; - num2++; - ref GatheringNode reference64 = ref span83[num2]; + ref GatheringNode reference64 = ref span34[1]; GatheringNode obj43 = new GatheringNode { DataId = 33319u }; - index3 = 1; - List list85 = new List(index3); - CollectionsMarshal.SetCount(list85, index3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num3 = 0; - span85[num3] = new GatheringLocation + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = new GatheringLocation { Position = new Vector3(718.4479f, 244.6019f, -583.6996f), MinimumAngle = 45, @@ -15145,39 +12913,33 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list76; AddLocation(729, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - span86[num] = "liza"; + num = 1; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + CollectionsMarshal.AsSpan(list86)[0] = "liza"; gatheringRoot8.Author = list86; num = 2; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span35 = CollectionsMarshal.AsSpan(list87); + span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index++; - span87[index] = new QuestStep(EInteractionType.None, null, null, 613); + span35[1] = new QuestStep(EInteractionType.None, null, null, 613); gatheringRoot8.Steps = list87; - index = 3; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref GatheringNodeGroup reference65 = ref span88[num]; + num = 3; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + Span span36 = CollectionsMarshal.AsSpan(list88); + ref GatheringNodeGroup reference65 = ref span36[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref GatheringNode reference66 = ref span89[index2]; + Span span37 = CollectionsMarshal.AsSpan(list89); + ref GatheringNode reference66 = ref span37[0]; GatheringNode obj44 = new GatheringNode { DataId = 33325u @@ -15185,9 +12947,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span90 = CollectionsMarshal.AsSpan(list90); - index3 = 0; - span90[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list90)[0] = new GatheringLocation { Position = new Vector3(953.1041f, -127.1716f, -816.3145f), MinimumAngle = -25, @@ -15195,25 +12955,22 @@ public static class AssemblyGatheringLocationLoader }; obj44.Locations = list90; reference66 = obj44; - index2++; - ref GatheringNode reference67 = ref span89[index2]; + ref GatheringNode reference67 = ref span37[1]; GatheringNode obj45 = new GatheringNode { DataId = 33326u }; - index3 = 2; - List list91 = new List(index3); - CollectionsMarshal.SetCount(list91, index3); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - span91[num3] = new GatheringLocation + num3 = 2; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + Span span38 = CollectionsMarshal.AsSpan(list91); + span38[0] = new GatheringLocation { Position = new Vector3(956.8734f, -129.366f, -843.1625f), MinimumAngle = 75, MaximumAngle = 210 }; - num3++; - span91[num3] = new GatheringLocation + span38[1] = new GatheringLocation { Position = new Vector3(976.0558f, -131.5356f, -813.2305f), MinimumAngle = -65, @@ -15225,15 +12982,13 @@ public static class AssemblyGatheringLocationLoader reference67 = obj45; gatheringNodeGroup22.Nodes = list89; reference65 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference68 = ref span88[num]; + ref GatheringNodeGroup reference68 = ref span36[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); - index2 = 2; - List list92 = new List(index2); - CollectionsMarshal.SetCount(list92, index2); - Span span92 = CollectionsMarshal.AsSpan(list92); - num2 = 0; - ref GatheringNode reference69 = ref span92[num2]; + num2 = 2; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + Span span39 = CollectionsMarshal.AsSpan(list92); + ref GatheringNode reference69 = ref span39[0]; GatheringNode obj46 = new GatheringNode { DataId = 33327u @@ -15241,9 +12996,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation { Position = new Vector3(887.1607f, -141.6279f, -863.3355f), MinimumAngle = 185, @@ -15251,25 +13004,22 @@ public static class AssemblyGatheringLocationLoader }; obj46.Locations = list93; reference69 = obj46; - num2++; - ref GatheringNode reference70 = ref span92[num2]; + ref GatheringNode reference70 = ref span39[1]; GatheringNode obj47 = new GatheringNode { DataId = 33328u }; - index3 = 2; - List list94 = new List(index3); - CollectionsMarshal.SetCount(list94, index3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = new GatheringLocation + num3 = 2; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + Span span40 = CollectionsMarshal.AsSpan(list94); + span40[0] = new GatheringLocation { Position = new Vector3(874.0369f, -135.9791f, -848.3512f), MinimumAngle = -80, MaximumAngle = 60 }; - num3++; - span94[num3] = new GatheringLocation + span40[1] = new GatheringLocation { Position = new Vector3(895.865f, -144.0468f, -890.5269f), MinimumAngle = 195, @@ -15279,15 +13029,13 @@ public static class AssemblyGatheringLocationLoader reference70 = obj47; gatheringNodeGroup23.Nodes = list92; reference68 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference71 = ref span88[num]; + ref GatheringNodeGroup reference71 = ref span36[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - ref GatheringNode reference72 = ref span95[index2]; + Span span41 = CollectionsMarshal.AsSpan(list95); + ref GatheringNode reference72 = ref span41[0]; GatheringNode obj48 = new GatheringNode { DataId = 33329u @@ -15295,9 +13043,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - Span span96 = CollectionsMarshal.AsSpan(list96); - index3 = 0; - span96[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation { Position = new Vector3(836.5433f, -140.1729f, -948.7974f), MinimumAngle = 130, @@ -15305,18 +13051,16 @@ public static class AssemblyGatheringLocationLoader }; obj48.Locations = list96; reference72 = obj48; - index2++; - ref GatheringNode reference73 = ref span95[index2]; + ref GatheringNode reference73 = ref span41[1]; GatheringNode obj49 = new GatheringNode { DataId = 33330u }; - index3 = 2; - List list97 = new List(index3); - CollectionsMarshal.SetCount(list97, index3); - Span span97 = CollectionsMarshal.AsSpan(list97); - num3 = 0; - span97[num3] = new GatheringLocation + num3 = 2; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span42 = CollectionsMarshal.AsSpan(list97); + span42[0] = new GatheringLocation { Position = new Vector3(843.2012f, -139.2853f, -961.9124f), MinimumAngle = -95, @@ -15324,8 +13068,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - num3++; - span97[num3] = new GatheringLocation + span42[1] = new GatheringLocation { Position = new Vector3(856.3994f, -142.4276f, -941.0324f), MinimumAngle = 115, @@ -15341,16 +13084,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "liza"; + CollectionsMarshal.AsSpan(list98)[0] = "liza"; gatheringRoot9.Author = list98; - 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) + num = 1; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.None, null, null, 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -15358,16 +13097,14 @@ public static class AssemblyGatheringLocationLoader num = 3; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - ref GatheringNodeGroup reference74 = ref span100[index]; + Span span43 = CollectionsMarshal.AsSpan(list100); + ref GatheringNodeGroup reference74 = ref span43[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); - index2 = 2; - List list101 = new List(index2); - CollectionsMarshal.SetCount(list101, index2); - Span span101 = CollectionsMarshal.AsSpan(list101); - num2 = 0; - ref GatheringNode reference75 = ref span101[num2]; + num2 = 2; + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + Span span44 = CollectionsMarshal.AsSpan(list101); + ref GatheringNode reference75 = ref span44[0]; GatheringNode obj50 = new GatheringNode { DataId = 33334u @@ -15375,31 +13112,26 @@ public static class AssemblyGatheringLocationLoader num3 = 2; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span102 = CollectionsMarshal.AsSpan(list102); - index3 = 0; - span102[index3] = new GatheringLocation + Span span45 = CollectionsMarshal.AsSpan(list102); + span45[0] = new GatheringLocation { Position = new Vector3(-222.386f, 23.28162f, 425.76f) }; - index3++; - span102[index3] = new GatheringLocation + span45[1] = new GatheringLocation { Position = new Vector3(-209.1725f, 22.35068f, 425.5524f) }; obj50.Locations = list102; reference75 = obj50; - num2++; - ref GatheringNode reference76 = ref span101[num2]; + ref GatheringNode reference76 = ref span44[1]; GatheringNode obj51 = new GatheringNode { DataId = 33333u }; - index3 = 1; - List list103 = new List(index3); - CollectionsMarshal.SetCount(list103, index3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = new GatheringLocation + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = new GatheringLocation { Position = new Vector3(-219.9592f, 22.78741f, 431.5036f) }; @@ -15407,15 +13139,13 @@ public static class AssemblyGatheringLocationLoader reference76 = obj51; gatheringNodeGroup25.Nodes = list101; reference74 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference77 = ref span100[index]; + ref GatheringNodeGroup reference77 = ref span43[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - ref GatheringNode reference78 = ref span104[index2]; + Span span46 = CollectionsMarshal.AsSpan(list104); + ref GatheringNode reference78 = ref span46[0]; GatheringNode obj52 = new GatheringNode { DataId = 33335u @@ -15423,9 +13153,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - index3 = 0; - span105[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list105)[0] = new GatheringLocation { Position = new Vector3(-349.8553f, 33.90925f, 452.5893f), MinimumAngle = -90, @@ -15433,23 +13161,20 @@ public static class AssemblyGatheringLocationLoader }; obj52.Locations = list105; reference78 = obj52; - index2++; - ref GatheringNode reference79 = ref span104[index2]; + ref GatheringNode reference79 = ref span46[1]; GatheringNode obj53 = new GatheringNode { DataId = 33336u }; - index3 = 2; - List list106 = new List(index3); - CollectionsMarshal.SetCount(list106, index3); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - span106[num3] = new GatheringLocation + num3 = 2; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + Span span47 = CollectionsMarshal.AsSpan(list106); + span47[0] = new GatheringLocation { Position = new Vector3(-361.5062f, 33.49068f, 453.4639f) }; - num3++; - span106[num3] = new GatheringLocation + span47[1] = new GatheringLocation { Position = new Vector3(-359.826f, 35.47207f, 442.164f) }; @@ -15457,15 +13182,13 @@ public static class AssemblyGatheringLocationLoader reference79 = obj53; gatheringNodeGroup26.Nodes = list104; reference77 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference80 = ref span100[index]; + ref GatheringNodeGroup reference80 = ref span43[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); - index2 = 2; - List list107 = new List(index2); - CollectionsMarshal.SetCount(list107, index2); - Span span107 = CollectionsMarshal.AsSpan(list107); - num2 = 0; - ref GatheringNode reference81 = ref span107[num2]; + num2 = 2; + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + Span span48 = CollectionsMarshal.AsSpan(list107); + ref GatheringNode reference81 = ref span48[0]; GatheringNode obj54 = new GatheringNode { DataId = 33331u @@ -15473,31 +13196,26 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - index3 = 0; - span108[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list108)[0] = new GatheringLocation { Position = new Vector3(-231.3864f, 17.74118f, 511.0694f) }; obj54.Locations = list108; reference81 = obj54; - num2++; - ref GatheringNode reference82 = ref span107[num2]; + ref GatheringNode reference82 = ref span48[1]; GatheringNode obj55 = new GatheringNode { DataId = 33332u }; - index3 = 2; - List list109 = new List(index3); - CollectionsMarshal.SetCount(list109, index3); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - span109[num3] = new GatheringLocation + num3 = 2; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + Span span49 = CollectionsMarshal.AsSpan(list109); + span49[0] = new GatheringLocation { Position = new Vector3(-219.0789f, 18.05494f, 525.418f) }; - num3++; - span109[num3] = new GatheringLocation + span49[1] = new GatheringLocation { Position = new Vector3(-220.9139f, 17.97838f, 514.0063f) }; @@ -15508,36 +13226,30 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list100; AddLocation(731, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - index = 1; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - span110[num] = "liza"; + num = 1; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + CollectionsMarshal.AsSpan(list110)[0] = "liza"; gatheringRoot10.Author = list110; num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = new QuestStep(EInteractionType.None, null, null, 621) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.None, null, null, 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; gatheringRoot10.Steps = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref GatheringNodeGroup reference83 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span50 = CollectionsMarshal.AsSpan(list112); + ref GatheringNodeGroup reference83 = ref span50[0]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); num2 = 2; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - ref GatheringNode reference84 = ref span113[index2]; + Span span51 = CollectionsMarshal.AsSpan(list113); + ref GatheringNode reference84 = ref span51[0]; GatheringNode obj56 = new GatheringNode { DataId = 33339u @@ -15545,9 +13257,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span114 = CollectionsMarshal.AsSpan(list114); - index3 = 0; - span114[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list114)[0] = new GatheringLocation { Position = new Vector3(440.6299f, 74.86803f, -205.3779f), MinimumAngle = 85, @@ -15555,18 +13265,16 @@ public static class AssemblyGatheringLocationLoader }; obj56.Locations = list114; reference84 = obj56; - index2++; - ref GatheringNode reference85 = ref span113[index2]; + ref GatheringNode reference85 = ref span51[1]; GatheringNode obj57 = new GatheringNode { DataId = 33340u }; - index3 = 2; - List list115 = new List(index3); - CollectionsMarshal.SetCount(list115, index3); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - span115[num3] = new GatheringLocation + num3 = 2; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + Span span52 = CollectionsMarshal.AsSpan(list115); + span52[0] = new GatheringLocation { Position = new Vector3(426.4497f, 70.57706f, -198.046f), MinimumAngle = 95, @@ -15574,8 +13282,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.3f, MaximumDistance = 3f }; - num3++; - span115[num3] = new GatheringLocation + span52[1] = new GatheringLocation { Position = new Vector3(453.1248f, 77.29013f, -211.6347f), MinimumAngle = 85, @@ -15585,15 +13292,13 @@ public static class AssemblyGatheringLocationLoader reference85 = obj57; gatheringNodeGroup28.Nodes = list113; reference83 = gatheringNodeGroup28; - num++; - ref GatheringNodeGroup reference86 = ref span112[num]; + ref GatheringNodeGroup reference86 = ref span50[1]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); - index2 = 2; - List list116 = new List(index2); - CollectionsMarshal.SetCount(list116, index2); - Span span116 = CollectionsMarshal.AsSpan(list116); - num2 = 0; - ref GatheringNode reference87 = ref span116[num2]; + num2 = 2; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + Span span53 = CollectionsMarshal.AsSpan(list116); + ref GatheringNode reference87 = ref span53[0]; GatheringNode obj58 = new GatheringNode { DataId = 33337u @@ -15601,9 +13306,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span117 = CollectionsMarshal.AsSpan(list117); - index3 = 0; - span117[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list117)[0] = new GatheringLocation { Position = new Vector3(561.2196f, 94.65154f, -315.6258f), MinimumAngle = 50, @@ -15611,18 +13314,15 @@ public static class AssemblyGatheringLocationLoader }; obj58.Locations = list117; reference87 = obj58; - num2++; - ref GatheringNode reference88 = ref span116[num2]; + ref GatheringNode reference88 = ref span53[1]; GatheringNode obj59 = new GatheringNode { DataId = 33338u }; - index3 = 1; - List list118 = new List(index3); - CollectionsMarshal.SetCount(list118, index3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - span118[num3] = new GatheringLocation + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + CollectionsMarshal.AsSpan(list118)[0] = new GatheringLocation { Position = new Vector3(563.1749f, 93.41929f, -335.4834f), MinimumAngle = -25, @@ -15632,15 +13332,13 @@ public static class AssemblyGatheringLocationLoader reference88 = obj59; gatheringNodeGroup29.Nodes = list116; reference86 = gatheringNodeGroup29; - num++; - ref GatheringNodeGroup reference89 = ref span112[num]; + ref GatheringNodeGroup reference89 = ref span50[2]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - ref GatheringNode reference90 = ref span119[index2]; + Span span54 = CollectionsMarshal.AsSpan(list119); + ref GatheringNode reference90 = ref span54[0]; GatheringNode obj60 = new GatheringNode { DataId = 33341u @@ -15648,9 +13346,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span120 = CollectionsMarshal.AsSpan(list120); - index3 = 0; - span120[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list120)[0] = new GatheringLocation { Position = new Vector3(388.9345f, 54.85489f, -350.8919f), MinimumAngle = 55, @@ -15658,18 +13354,15 @@ public static class AssemblyGatheringLocationLoader }; obj60.Locations = list120; reference90 = obj60; - index2++; - ref GatheringNode reference91 = ref span119[index2]; + ref GatheringNode reference91 = ref span54[1]; GatheringNode obj61 = new GatheringNode { DataId = 33342u }; - index3 = 1; - List list121 = new List(index3); - CollectionsMarshal.SetCount(list121, index3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = new GatheringLocation + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = new GatheringLocation { Position = new Vector3(394.7824f, 51.66671f, -369.6645f), MinimumAngle = 70, @@ -15685,16 +13378,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - Span span122 = CollectionsMarshal.AsSpan(list122); - index = 0; - span122[index] = "liza"; + CollectionsMarshal.AsSpan(list122)[0] = "liza"; gatheringRoot11.Author = list122; - 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) + num = 1; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.None, null, null, 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -15702,16 +13391,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - ref GatheringNodeGroup reference92 = ref span124[index]; + ref GatheringNodeGroup reference92 = ref CollectionsMarshal.AsSpan(list124)[0]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); - index2 = 1; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num2 = 0; - ref GatheringNode reference93 = ref span125[num2]; + num2 = 1; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + ref GatheringNode reference93 = ref CollectionsMarshal.AsSpan(list125)[0]; GatheringNode obj62 = new GatheringNode { DataId = 33028u @@ -15719,9 +13404,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span126 = CollectionsMarshal.AsSpan(list126); - index3 = 0; - span126[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation { Position = new Vector3(454.6367f, 227.1414f, -731.7471f), MinimumAngle = -120, @@ -15741,16 +13424,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -15763,26 +13442,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 33856u }; - int num4 = 1; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index2 = 0; - span5[index2] = new GatheringLocation + int num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation { Position = new Vector3(-395.4635f, 144.1793f, -249.5864f), MinimumAngle = -190, @@ -15790,18 +13465,15 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 33855u }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation { Position = new Vector3(-398.5591f, 144.6183f, -241.8769f), MinimumAngle = -140, @@ -15811,25 +13483,21 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span3 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span3[0]; GatheringNode obj3 = new GatheringNode { DataId = 33857u }; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new GatheringLocation + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation { Position = new Vector3(-407.5786f, 149.6453f, -93.85593f), MinimumAngle = 185, @@ -15839,18 +13507,15 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span3[1]; GatheringNode obj4 = new GatheringNode { DataId = 33858u }; - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(-413.9488f, 148.9834f, -71.42188f), MinimumAngle = 165, @@ -15860,25 +13525,21 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span4 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span4[0]; GatheringNode obj5 = new GatheringNode { DataId = 33860u }; - num4 = 1; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new GatheringLocation + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation { Position = new Vector3(-254.579f, 147.4603f, -91.96173f), MinimumAngle = 30, @@ -15886,18 +13547,15 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span4[1]; GatheringNode obj6 = new GatheringNode { DataId = 33859u }; - index2 = 1; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(-254.9425f, 146.4598f, -105.2472f), MinimumAngle = 35, @@ -15910,19 +13568,15 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(808, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "liza"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "liza"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = new QuestStep(EInteractionType.None, null, null, 399) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -15932,29 +13586,25 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot2.Steps = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref GatheringNodeGroup reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref GatheringNodeGroup reference10 = ref span5[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num2 = 0; - ref GatheringNode reference11 = ref span16[num2]; + num2 = 2; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + Span span6 = CollectionsMarshal.AsSpan(list16); + ref GatheringNode reference11 = ref span6[0]; GatheringNode obj7 = new GatheringNode { DataId = 33866u }; - num4 = 1; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new GatheringLocation + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation { Position = new Vector3(679.6339f, 116.0614f, 134.6795f), MinimumAngle = 200, @@ -15962,18 +13612,15 @@ public static class AssemblyGatheringLocationLoader }; obj7.Locations = list17; reference11 = obj7; - num2++; - ref GatheringNode reference12 = ref span16[num2]; + ref GatheringNode reference12 = ref span6[1]; GatheringNode obj8 = new GatheringNode { DataId = 33865u }; - index2 = 1; - List list18 = new List(index2); - CollectionsMarshal.SetCount(list18, index2); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(697.5129f, 122.1484f, 146.8725f), MinimumAngle = -205, @@ -15983,25 +13630,21 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference13 = ref span15[num]; + ref GatheringNodeGroup reference13 = ref span5[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - ref GatheringNode reference14 = ref span19[num3]; + Span span7 = CollectionsMarshal.AsSpan(list19); + ref GatheringNode reference14 = ref span7[0]; GatheringNode obj9 = new GatheringNode { DataId = 33862u }; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new GatheringLocation + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = new GatheringLocation { Position = new Vector3(809.8756f, 152.7643f, 205.2242f), MinimumAngle = -95, @@ -16009,18 +13652,15 @@ public static class AssemblyGatheringLocationLoader }; obj9.Locations = list20; reference14 = obj9; - num3++; - ref GatheringNode reference15 = ref span19[num3]; + ref GatheringNode reference15 = ref span7[1]; GatheringNode obj10 = new GatheringNode { DataId = 33861u }; - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = new GatheringLocation + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation { Position = new Vector3(834.4771f, 154.8756f, 206.0541f), MinimumAngle = 35, @@ -16030,25 +13670,21 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference16 = ref span15[num]; + ref GatheringNodeGroup reference16 = ref span5[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref GatheringNode reference17 = ref span22[num2]; + num2 = 2; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span8 = CollectionsMarshal.AsSpan(list22); + ref GatheringNode reference17 = ref span8[0]; GatheringNode obj11 = new GatheringNode { DataId = 33863u }; - num4 = 1; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new GatheringLocation + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation { Position = new Vector3(781.7728f, 134.6856f, -22.00103f), MinimumAngle = 0, @@ -16056,18 +13692,15 @@ public static class AssemblyGatheringLocationLoader }; obj11.Locations = list23; reference17 = obj11; - num2++; - ref GatheringNode reference18 = ref span22[num2]; + ref GatheringNode reference18 = ref span8[1]; GatheringNode obj12 = new GatheringNode { DataId = 33864u }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new GatheringLocation + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + CollectionsMarshal.AsSpan(list24)[0] = new GatheringLocation { Position = new Vector3(774.9854f, 134.3857f, -27.45042f), MinimumAngle = -25, @@ -16083,16 +13716,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; gatheringRoot3.Author = list25; - 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) + num = 1; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -16100,26 +13729,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - ref GatheringNodeGroup reference19 = ref span27[index]; + Span span9 = CollectionsMarshal.AsSpan(list27); + ref GatheringNodeGroup reference19 = ref span9[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref GatheringNode reference20 = ref span28[num3]; + Span span10 = CollectionsMarshal.AsSpan(list28); + ref GatheringNode reference20 = ref span10[0]; GatheringNode obj13 = new GatheringNode { DataId = 33871u }; - num4 = 1; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new GatheringLocation + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = new GatheringLocation { Position = new Vector3(556.8531f, 73.44064f, 99.57761f), MinimumAngle = 35, @@ -16127,18 +13752,15 @@ public static class AssemblyGatheringLocationLoader }; obj13.Locations = list29; reference20 = obj13; - num3++; - ref GatheringNode reference21 = ref span28[num3]; + ref GatheringNode reference21 = ref span10[1]; GatheringNode obj14 = new GatheringNode { DataId = 33872u }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation { Position = new Vector3(561.7782f, 73.45153f, 72.6368f), MinimumAngle = 15, @@ -16150,25 +13772,21 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference22 = ref span27[index]; + ref GatheringNodeGroup reference22 = ref span9[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference23 = ref span31[num2]; + num2 = 2; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span11 = CollectionsMarshal.AsSpan(list31); + ref GatheringNode reference23 = ref span11[0]; GatheringNode obj15 = new GatheringNode { DataId = 33867u }; - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new GatheringLocation + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation { Position = new Vector3(498.26f, 76.74628f, -46.34168f), MinimumAngle = -65, @@ -16176,18 +13794,15 @@ public static class AssemblyGatheringLocationLoader }; obj15.Locations = list32; reference23 = obj15; - num2++; - ref GatheringNode reference24 = ref span31[num2]; + ref GatheringNode reference24 = ref span11[1]; GatheringNode obj16 = new GatheringNode { DataId = 33868u }; - index2 = 1; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = new GatheringLocation + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new GatheringLocation { Position = new Vector3(473.011f, 76.55681f, -47.70556f), MinimumAngle = -45, @@ -16199,25 +13814,21 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference25 = ref span27[index]; + ref GatheringNodeGroup reference25 = ref span9[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - ref GatheringNode reference26 = ref span34[num3]; + Span span12 = CollectionsMarshal.AsSpan(list34); + ref GatheringNode reference26 = ref span12[0]; GatheringNode obj17 = new GatheringNode { DataId = 33870u }; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new GatheringLocation + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation { Position = new Vector3(361.4784f, 70.79905f, 146.1887f), MinimumAngle = -55, @@ -16227,18 +13838,15 @@ public static class AssemblyGatheringLocationLoader }; obj17.Locations = list35; reference26 = obj17; - num3++; - ref GatheringNode reference27 = ref span34[num3]; + ref GatheringNode reference27 = ref span12[1]; GatheringNode obj18 = new GatheringNode { DataId = 33869u }; - index2 = 1; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span36[num4] = new GatheringLocation + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation { Position = new Vector3(364.7684f, 70.90228f, 167.3831f), MinimumAngle = 105, @@ -16251,46 +13859,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list27; AddLocation(810, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - span37[num] = "liza"; + num = 1; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + CollectionsMarshal.AsSpan(list37)[0] = "liza"; gatheringRoot4.Author = list37; num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = new QuestStep(EInteractionType.None, null, null, 612) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; gatheringRoot4.Steps = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref GatheringNodeGroup reference28 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span13 = CollectionsMarshal.AsSpan(list39); + ref GatheringNodeGroup reference28 = ref span13[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num3 = 2; - List list40 = new List(num3); - CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref GatheringNode reference29 = ref span40[num2]; + num2 = 2; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span14 = CollectionsMarshal.AsSpan(list40); + ref GatheringNode reference29 = ref span14[0]; GatheringNode obj19 = new GatheringNode { DataId = 33875u }; - num4 = 1; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new GatheringLocation + num3 = 1; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation { Position = new Vector3(567.9412f, 50.43103f, 373.1152f), MinimumAngle = 200, @@ -16298,18 +13898,15 @@ public static class AssemblyGatheringLocationLoader }; obj19.Locations = list41; reference29 = obj19; - num2++; - ref GatheringNode reference30 = ref span40[num2]; + ref GatheringNode reference30 = ref span14[1]; GatheringNode obj20 = new GatheringNode { DataId = 33876u }; - index2 = 1; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheringLocation + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheringLocation { Position = new Vector3(578.4171f, 48.36443f, 365.4806f), MinimumAngle = -45, @@ -16319,25 +13916,21 @@ public static class AssemblyGatheringLocationLoader reference30 = obj20; gatheringNodeGroup10.Nodes = list40; reference28 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference31 = ref span39[num]; + ref GatheringNodeGroup reference31 = ref span13[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - ref GatheringNode reference32 = ref span43[num3]; + Span span15 = CollectionsMarshal.AsSpan(list43); + ref GatheringNode reference32 = ref span15[0]; GatheringNode obj21 = new GatheringNode { DataId = 33873u }; - num4 = 1; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new GatheringLocation + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = new GatheringLocation { Position = new Vector3(599.5352f, 75.60928f, 244.3069f), MinimumAngle = -80, @@ -16345,18 +13938,15 @@ public static class AssemblyGatheringLocationLoader }; obj21.Locations = list44; reference32 = obj21; - num3++; - ref GatheringNode reference33 = ref span43[num3]; + ref GatheringNode reference33 = ref span15[1]; GatheringNode obj22 = new GatheringNode { DataId = 33874u }; - index2 = 1; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span45[num4] = new GatheringLocation + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(592.9609f, 75.62624f, 268.9515f), MinimumAngle = 110, @@ -16366,25 +13956,21 @@ public static class AssemblyGatheringLocationLoader reference33 = obj22; gatheringNodeGroup11.Nodes = list43; reference31 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference34 = ref span39[num]; + ref GatheringNodeGroup reference34 = ref span13[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num3 = 2; - List list46 = new List(num3); - CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref GatheringNode reference35 = ref span46[num2]; + num2 = 2; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span16 = CollectionsMarshal.AsSpan(list46); + ref GatheringNode reference35 = ref span16[0]; GatheringNode obj23 = new GatheringNode { DataId = 33878u }; - num4 = 1; - List list47 = new List(num4); - CollectionsMarshal.SetCount(list47, num4); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new GatheringLocation + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = new GatheringLocation { Position = new Vector3(753.3094f, 72.73058f, 364.073f), MinimumAngle = 95, @@ -16392,18 +13978,15 @@ public static class AssemblyGatheringLocationLoader }; obj23.Locations = list47; reference35 = obj23; - num2++; - ref GatheringNode reference36 = ref span46[num2]; + ref GatheringNode reference36 = ref span16[1]; GatheringNode obj24 = new GatheringNode { DataId = 33877u }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new GatheringLocation + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(764.3023f, 74.18732f, 337.2563f), MinimumAngle = -70, @@ -16419,16 +14002,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; gatheringRoot5.Author = list49; - 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) + num = 1; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -16436,26 +14015,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - ref GatheringNodeGroup reference37 = ref span51[index]; + Span span17 = CollectionsMarshal.AsSpan(list51); + ref GatheringNodeGroup reference37 = ref span17[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - ref GatheringNode reference38 = ref span52[num3]; + Span span18 = CollectionsMarshal.AsSpan(list52); + ref GatheringNode reference38 = ref span18[0]; GatheringNode obj25 = new GatheringNode { DataId = 33883u }; - num4 = 1; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new GatheringLocation + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation { Position = new Vector3(128.0255f, -1.00095f, 322.0047f), MinimumAngle = -120, @@ -16463,18 +14038,15 @@ public static class AssemblyGatheringLocationLoader }; obj25.Locations = list53; reference38 = obj25; - num3++; - ref GatheringNode reference39 = ref span52[num3]; + ref GatheringNode reference39 = ref span18[1]; GatheringNode obj26 = new GatheringNode { DataId = 33884u }; - index2 = 1; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new GatheringLocation + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation { Position = new Vector3(116.5815f, -1.584854f, 321.8561f), MinimumAngle = -65, @@ -16484,25 +14056,21 @@ public static class AssemblyGatheringLocationLoader reference39 = obj26; gatheringNodeGroup13.Nodes = list52; reference37 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference40 = ref span51[index]; + ref GatheringNodeGroup reference40 = ref span17[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num3 = 2; - List list55 = new List(num3); - CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num2 = 0; - ref GatheringNode reference41 = ref span55[num2]; + num2 = 2; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span19 = CollectionsMarshal.AsSpan(list55); + ref GatheringNode reference41 = ref span19[0]; GatheringNode obj27 = new GatheringNode { DataId = 33882u }; - num4 = 1; - List list56 = new List(num4); - CollectionsMarshal.SetCount(list56, num4); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new GatheringLocation + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + CollectionsMarshal.AsSpan(list56)[0] = new GatheringLocation { Position = new Vector3(-31.5303f, -2.218102f, 328.7178f), MinimumAngle = 110, @@ -16510,18 +14078,15 @@ public static class AssemblyGatheringLocationLoader }; obj27.Locations = list56; reference41 = obj27; - num2++; - ref GatheringNode reference42 = ref span55[num2]; + ref GatheringNode reference42 = ref span19[1]; GatheringNode obj28 = new GatheringNode { DataId = 33881u }; - index2 = 1; - List list57 = new List(index2); - CollectionsMarshal.SetCount(list57, index2); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = new GatheringLocation + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation { Position = new Vector3(-44.53269f, -1.966054f, 332.6949f), MinimumAngle = 120, @@ -16531,25 +14096,21 @@ public static class AssemblyGatheringLocationLoader reference42 = obj28; gatheringNodeGroup14.Nodes = list55; reference40 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference43 = ref span51[index]; + ref GatheringNodeGroup reference43 = ref span17[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - ref GatheringNode reference44 = ref span58[num3]; + Span span20 = CollectionsMarshal.AsSpan(list58); + ref GatheringNode reference44 = ref span20[0]; GatheringNode obj29 = new GatheringNode { DataId = 33880u }; - num4 = 1; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new GatheringLocation + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + CollectionsMarshal.AsSpan(list59)[0] = new GatheringLocation { Position = new Vector3(37.46276f, -4.431953f, 425.0844f), MinimumAngle = 140, @@ -16557,18 +14118,15 @@ public static class AssemblyGatheringLocationLoader }; obj29.Locations = list59; reference44 = obj29; - num3++; - ref GatheringNode reference45 = ref span58[num3]; + ref GatheringNode reference45 = ref span20[1]; GatheringNode obj30 = new GatheringNode { DataId = 33879u }; - index2 = 1; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new GatheringLocation + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = new GatheringLocation { Position = new Vector3(46.12198f, -5.283945f, 426.5148f), MinimumAngle = 115, @@ -16583,63 +14141,52 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list51; AddLocation(812, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - span61[num] = "liza"; + num = 1; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + CollectionsMarshal.AsSpan(list61)[0] = "liza"; gatheringRoot6.Author = list61; num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = new QuestStep(EInteractionType.None, null, null, 622) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.None, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; gatheringRoot6.Steps = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref GatheringNodeGroup reference46 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span21 = CollectionsMarshal.AsSpan(list63); + ref GatheringNodeGroup reference46 = ref span21[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num3 = 2; - List list64 = new List(num3); - CollectionsMarshal.SetCount(list64, num3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref GatheringNode reference47 = ref span64[num2]; + num2 = 2; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + Span span22 = CollectionsMarshal.AsSpan(list64); + ref GatheringNode reference47 = ref span22[0]; GatheringNode obj31 = new GatheringNode { DataId = 33885u }; - num4 = 1; - List list65 = new List(num4); - CollectionsMarshal.SetCount(list65, num4); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new GatheringLocation + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = new GatheringLocation { Position = new Vector3(288.2408f, 23.61323f, -234.9867f) }; obj31.Locations = list65; reference47 = obj31; - num2++; - ref GatheringNode reference48 = ref span64[num2]; + ref GatheringNode reference48 = ref span22[1]; GatheringNode obj32 = new GatheringNode { DataId = 33886u }; - index2 = 1; - List list66 = new List(index2); - CollectionsMarshal.SetCount(list66, index2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num4 = 0; - span66[num4] = new GatheringLocation + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation { Position = new Vector3(281.9221f, 23.03055f, -231.9227f) }; @@ -16647,25 +14194,21 @@ public static class AssemblyGatheringLocationLoader reference48 = obj32; gatheringNodeGroup16.Nodes = list64; reference46 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference49 = ref span63[num]; + ref GatheringNodeGroup reference49 = ref span21[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - ref GatheringNode reference50 = ref span67[num3]; + Span span23 = CollectionsMarshal.AsSpan(list67); + ref GatheringNode reference50 = ref span23[0]; GatheringNode obj33 = new GatheringNode { DataId = 33887u }; - num4 = 1; - List list68 = new List(num4); - CollectionsMarshal.SetCount(list68, num4); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new GatheringLocation + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + CollectionsMarshal.AsSpan(list68)[0] = new GatheringLocation { Position = new Vector3(407.1815f, 26.86968f, -325.3348f), MinimumAngle = -60, @@ -16673,18 +14216,15 @@ public static class AssemblyGatheringLocationLoader }; obj33.Locations = list68; reference50 = obj33; - num3++; - ref GatheringNode reference51 = ref span67[num3]; + ref GatheringNode reference51 = ref span23[1]; GatheringNode obj34 = new GatheringNode { DataId = 33888u }; - index2 = 1; - List list69 = new List(index2); - CollectionsMarshal.SetCount(list69, index2); - Span span69 = CollectionsMarshal.AsSpan(list69); - num4 = 0; - span69[num4] = new GatheringLocation + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = new GatheringLocation { Position = new Vector3(413.6349f, 25.90826f, -320.5389f) }; @@ -16692,42 +14232,35 @@ public static class AssemblyGatheringLocationLoader reference51 = obj34; gatheringNodeGroup17.Nodes = list67; reference49 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference52 = ref span63[num]; + ref GatheringNodeGroup reference52 = ref span21[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num3 = 2; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref GatheringNode reference53 = ref span70[num2]; + num2 = 2; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span24 = CollectionsMarshal.AsSpan(list70); + ref GatheringNode reference53 = ref span24[0]; GatheringNode obj35 = new GatheringNode { DataId = 33889u }; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new GatheringLocation + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation { Position = new Vector3(451.9882f, 8.707673f, -136.5769f) }; obj35.Locations = list71; reference53 = obj35; - num2++; - ref GatheringNode reference54 = ref span70[num2]; + ref GatheringNode reference54 = ref span24[1]; GatheringNode obj36 = new GatheringNode { DataId = 33890u }; - index2 = 1; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num4 = 0; - span72[num4] = new GatheringLocation + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = new GatheringLocation { Position = new Vector3(458.5264f, 8.823095f, -132.5937f) }; @@ -16741,16 +14274,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; gatheringRoot7.Author = list73; - 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) + num = 1; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; @@ -16758,26 +14287,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - ref GatheringNodeGroup reference55 = ref span75[index]; + Span span25 = CollectionsMarshal.AsSpan(list75); + ref GatheringNodeGroup reference55 = ref span25[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - ref GatheringNode reference56 = ref span76[num3]; + Span span26 = CollectionsMarshal.AsSpan(list76); + ref GatheringNode reference56 = ref span26[0]; GatheringNode obj37 = new GatheringNode { DataId = 33894u }; - num4 = 1; - List list77 = new List(num4); - CollectionsMarshal.SetCount(list77, num4); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new GatheringLocation + num3 = 1; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + CollectionsMarshal.AsSpan(list77)[0] = new GatheringLocation { Position = new Vector3(458.9456f, 161.3972f, -602.1197f), MinimumAngle = 140, @@ -16785,32 +14310,28 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list77; reference56 = obj37; - num3++; - ref GatheringNode reference57 = ref span76[num3]; + ref GatheringNode reference57 = ref span26[1]; GatheringNode obj38 = new GatheringNode { DataId = 33895u }; - index2 = 3; - List list78 = new List(index2); - CollectionsMarshal.SetCount(list78, index2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new GatheringLocation + num3 = 3; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + Span span27 = CollectionsMarshal.AsSpan(list78); + span27[0] = new GatheringLocation { Position = new Vector3(443.0363f, 161.2974f, -616.2661f), MinimumAngle = 205, MaximumAngle = 345 }; - num4++; - span78[num4] = new GatheringLocation + span27[1] = new GatheringLocation { Position = new Vector3(444.8557f, 161.3728f, -600.3932f), MinimumAngle = 145, MaximumAngle = 275 }; - num4++; - span78[num4] = new GatheringLocation + span27[2] = new GatheringLocation { Position = new Vector3(454.163f, 161.1728f, -629.1985f), MinimumAngle = -125, @@ -16820,39 +14341,34 @@ public static class AssemblyGatheringLocationLoader reference57 = obj38; gatheringNodeGroup19.Nodes = list76; reference55 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference58 = ref span75[index]; + ref GatheringNodeGroup reference58 = ref span25[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num3 = 2; - List list79 = new List(num3); - CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref GatheringNode reference59 = ref span79[num2]; + num2 = 2; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span28 = CollectionsMarshal.AsSpan(list79); + ref GatheringNode reference59 = ref span28[0]; GatheringNode obj39 = new GatheringNode { DataId = 33899u }; - num4 = 3; - List list80 = new List(num4); - CollectionsMarshal.SetCount(list80, num4); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new GatheringLocation + num3 = 3; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + Span span29 = CollectionsMarshal.AsSpan(list80); + span29[0] = new GatheringLocation { Position = new Vector3(570.556f, 161.4453f, -670.7103f), MinimumAngle = -30, MaximumAngle = 95 }; - index2++; - span80[index2] = new GatheringLocation + span29[1] = new GatheringLocation { Position = new Vector3(581.0989f, 161.3507f, -660.939f), MinimumAngle = 0, MaximumAngle = 110 }; - index2++; - span80[index2] = new GatheringLocation + span29[2] = new GatheringLocation { Position = new Vector3(594.2559f, 163.7275f, -639.3449f), MinimumAngle = 0, @@ -16860,18 +14376,15 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list80; reference59 = obj39; - num2++; - ref GatheringNode reference60 = ref span79[num2]; + ref GatheringNode reference60 = ref span28[1]; GatheringNode obj40 = new GatheringNode { DataId = 33898u }; - index2 = 1; - List list81 = new List(index2); - CollectionsMarshal.SetCount(list81, index2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num4 = 0; - span81[num4] = new GatheringLocation + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = new GatheringLocation { Position = new Vector3(584.6903f, 161.4933f, -649.8119f), MinimumAngle = 70, @@ -16881,39 +14394,34 @@ public static class AssemblyGatheringLocationLoader reference60 = obj40; gatheringNodeGroup20.Nodes = list79; reference58 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference61 = ref span75[index]; + ref GatheringNodeGroup reference61 = ref span25[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - ref GatheringNode reference62 = ref span82[num3]; + Span span30 = CollectionsMarshal.AsSpan(list82); + ref GatheringNode reference62 = ref span30[0]; GatheringNode obj41 = new GatheringNode { DataId = 33897u }; - num4 = 3; - List list83 = new List(num4); - CollectionsMarshal.SetCount(list83, num4); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new GatheringLocation + num3 = 3; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + Span span31 = CollectionsMarshal.AsSpan(list83); + span31[0] = new GatheringLocation { Position = new Vector3(607.6349f, 161.3022f, -502.1884f), MinimumAngle = 0, MaximumAngle = 130 }; - index2++; - span83[index2] = new GatheringLocation + span31[1] = new GatheringLocation { Position = new Vector3(604.954f, 161.3468f, -508.9037f), MinimumAngle = 0, MaximumAngle = 125 }; - index2++; - span83[index2] = new GatheringLocation + span31[2] = new GatheringLocation { Position = new Vector3(589.7828f, 161.4424f, -519.1625f), MinimumAngle = 175, @@ -16921,18 +14429,15 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list83; reference62 = obj41; - num3++; - ref GatheringNode reference63 = ref span82[num3]; + ref GatheringNode reference63 = ref span30[1]; GatheringNode obj42 = new GatheringNode { DataId = 33896u }; - index2 = 1; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num4 = 0; - span84[num4] = new GatheringLocation + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation { Position = new Vector3(603.6301f, 161.3214f, -520.9421f), MinimumAngle = 20, @@ -16945,46 +14450,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list75; AddLocation(815, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - span85[num] = "liza"; + num = 1; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + CollectionsMarshal.AsSpan(list85)[0] = "liza"; gatheringRoot8.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = new QuestStep(EInteractionType.None, null, null, 956) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; gatheringRoot8.Steps = list86; - index = 3; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref GatheringNodeGroup reference64 = ref span87[num]; + num = 3; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span32 = CollectionsMarshal.AsSpan(list87); + ref GatheringNodeGroup reference64 = ref span32[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref GatheringNode reference65 = ref span88[num2]; + num2 = 2; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + Span span33 = CollectionsMarshal.AsSpan(list88); + ref GatheringNode reference65 = ref span33[0]; GatheringNode obj43 = new GatheringNode { DataId = 33902u }; - num4 = 1; - List list89 = new List(num4); - CollectionsMarshal.SetCount(list89, num4); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new GatheringLocation + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation { Position = new Vector3(88.60914f, 73.62239f, -402.4773f), MinimumAngle = 80, @@ -16992,32 +14489,28 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list89; reference65 = obj43; - num2++; - ref GatheringNode reference66 = ref span88[num2]; + ref GatheringNode reference66 = ref span33[1]; GatheringNode obj44 = new GatheringNode { DataId = 33903u }; - index2 = 3; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num4 = 0; - span90[num4] = new GatheringLocation + num3 = 3; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + Span span34 = CollectionsMarshal.AsSpan(list90); + span34[0] = new GatheringLocation { Position = new Vector3(85.61829f, 73.2991f, -400.5821f), MinimumAngle = 35, MaximumAngle = 225 }; - num4++; - span90[num4] = new GatheringLocation + span34[1] = new GatheringLocation { Position = new Vector3(93.23958f, 73.67628f, -393.219f), MinimumAngle = -80, MaximumAngle = 80 }; - num4++; - span90[num4] = new GatheringLocation + span34[2] = new GatheringLocation { Position = new Vector3(98.62136f, 74.0167f, -394.248f), MinimumAngle = -140, @@ -17027,39 +14520,34 @@ public static class AssemblyGatheringLocationLoader reference66 = obj44; gatheringNodeGroup22.Nodes = list88; reference64 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference67 = ref span87[num]; + ref GatheringNodeGroup reference67 = ref span32[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - ref GatheringNode reference68 = ref span91[num3]; + Span span35 = CollectionsMarshal.AsSpan(list91); + ref GatheringNode reference68 = ref span35[0]; GatheringNode obj45 = new GatheringNode { DataId = 33905u }; - num4 = 3; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new GatheringLocation + num3 = 3; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + Span span36 = CollectionsMarshal.AsSpan(list92); + span36[0] = new GatheringLocation { Position = new Vector3(120.6405f, 84.99234f, -556.7947f), MinimumAngle = -10, MaximumAngle = 155 }; - index2++; - span92[index2] = new GatheringLocation + span36[1] = new GatheringLocation { Position = new Vector3(90.8064f, 80.4303f, -549.3706f), MinimumAngle = -45, MaximumAngle = 90 }; - index2++; - span92[index2] = new GatheringLocation + span36[2] = new GatheringLocation { Position = new Vector3(108.5405f, 82.52325f, -552.4589f), MinimumAngle = -115, @@ -17067,18 +14555,15 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list92; reference68 = obj45; - num3++; - ref GatheringNode reference69 = ref span91[num3]; + ref GatheringNode reference69 = ref span35[1]; GatheringNode obj46 = new GatheringNode { DataId = 33904u }; - index2 = 1; - List list93 = new List(index2); - CollectionsMarshal.SetCount(list93, index2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num4 = 0; - span93[num4] = new GatheringLocation + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation { Position = new Vector3(102.0981f, 81.4679f, -550.4082f), MinimumAngle = -90, @@ -17088,39 +14573,34 @@ public static class AssemblyGatheringLocationLoader reference69 = obj46; gatheringNodeGroup23.Nodes = list91; reference67 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference70 = ref span87[num]; + ref GatheringNodeGroup reference70 = ref span32[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num3 = 2; - List list94 = new List(num3); - CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref GatheringNode reference71 = ref span94[num2]; + num2 = 2; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + Span span37 = CollectionsMarshal.AsSpan(list94); + ref GatheringNode reference71 = ref span37[0]; GatheringNode obj47 = new GatheringNode { DataId = 33901u }; - num4 = 3; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new GatheringLocation + num3 = 3; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span38 = CollectionsMarshal.AsSpan(list95); + span38[0] = new GatheringLocation { Position = new Vector3(2.243042f, 70.71661f, -453.1277f), MinimumAngle = 85, MaximumAngle = 215 }; - index2++; - span95[index2] = new GatheringLocation + span38[1] = new GatheringLocation { Position = new Vector3(-18.2041f, 69.83583f, -464.331f), MinimumAngle = -120, MaximumAngle = 50 }; - index2++; - span95[index2] = new GatheringLocation + span38[2] = new GatheringLocation { Position = new Vector3(1.110765f, 71.56169f, -477.9129f), MinimumAngle = -135, @@ -17128,18 +14608,15 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list95; reference71 = obj47; - num2++; - ref GatheringNode reference72 = ref span94[num2]; + ref GatheringNode reference72 = ref span37[1]; GatheringNode obj48 = new GatheringNode { DataId = 33900u }; - index2 = 1; - List list96 = new List(index2); - CollectionsMarshal.SetCount(list96, index2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num4 = 0; - span96[num4] = new GatheringLocation + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = new GatheringLocation { Position = new Vector3(-8.431995f, 70.52238f, -470.8453f), MinimumAngle = -125, @@ -17155,16 +14632,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; gatheringRoot9.Author = list97; - 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) + num = 1; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; @@ -17172,40 +14645,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - ref GatheringNodeGroup reference73 = ref span99[index]; + Span span39 = CollectionsMarshal.AsSpan(list99); + ref GatheringNodeGroup reference73 = ref span39[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - ref GatheringNode reference74 = ref span100[num3]; + Span span40 = CollectionsMarshal.AsSpan(list100); + ref GatheringNode reference74 = ref span40[0]; GatheringNode obj49 = new GatheringNode { DataId = 33914u }; - num4 = 3; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new GatheringLocation + num3 = 3; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + Span span41 = CollectionsMarshal.AsSpan(list101); + span41[0] = new GatheringLocation { Position = new Vector3(-12.16765f, 20.89473f, 506.2973f), MinimumAngle = -35, MaximumAngle = 60 }; - index2++; - span101[index2] = new GatheringLocation + span41[1] = new GatheringLocation { Position = new Vector3(38.53326f, 21.61461f, 494.6865f), MinimumAngle = -100, MaximumAngle = 35 }; - index2++; - span101[index2] = new GatheringLocation + span41[2] = new GatheringLocation { Position = new Vector3(11.01325f, 20.33474f, 505.0459f), MinimumAngle = -80, @@ -17213,18 +14681,15 @@ public static class AssemblyGatheringLocationLoader }; obj49.Locations = list101; reference74 = obj49; - num3++; - ref GatheringNode reference75 = ref span100[num3]; + ref GatheringNode reference75 = ref span40[1]; GatheringNode obj50 = new GatheringNode { DataId = 33913u }; - index2 = 1; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span102[num4] = new GatheringLocation + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation { Position = new Vector3(21.21178f, 20.57622f, 500.2734f), MinimumAngle = -75, @@ -17234,25 +14699,21 @@ public static class AssemblyGatheringLocationLoader reference75 = obj50; gatheringNodeGroup25.Nodes = list100; reference73 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference76 = ref span99[index]; + ref GatheringNodeGroup reference76 = ref span39[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num3 = 2; - List list103 = new List(num3); - CollectionsMarshal.SetCount(list103, num3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num2 = 0; - ref GatheringNode reference77 = ref span103[num2]; + num2 = 2; + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + Span span42 = CollectionsMarshal.AsSpan(list103); + ref GatheringNode reference77 = ref span42[0]; GatheringNode obj51 = new GatheringNode { DataId = 33909u }; - num4 = 1; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new GatheringLocation + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = new GatheringLocation { Position = new Vector3(-138.8536f, 28.9297f, 406.4425f), MinimumAngle = -25, @@ -17260,32 +14721,28 @@ public static class AssemblyGatheringLocationLoader }; obj51.Locations = list104; reference77 = obj51; - num2++; - ref GatheringNode reference78 = ref span103[num2]; + ref GatheringNode reference78 = ref span42[1]; GatheringNode obj52 = new GatheringNode { DataId = 33910u }; - index2 = 3; - List list105 = new List(index2); - CollectionsMarshal.SetCount(list105, index2); - Span span105 = CollectionsMarshal.AsSpan(list105); - num4 = 0; - span105[num4] = new GatheringLocation + num3 = 3; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + Span span43 = CollectionsMarshal.AsSpan(list105); + span43[0] = new GatheringLocation { Position = new Vector3(-151.642f, 28.40338f, 389.8896f), MinimumAngle = 0, MaximumAngle = 120 }; - num4++; - span105[num4] = new GatheringLocation + span43[1] = new GatheringLocation { Position = new Vector3(-153.7647f, 28.03966f, 372.3844f), MinimumAngle = 40, MaximumAngle = 165 }; - num4++; - span105[num4] = new GatheringLocation + span43[2] = new GatheringLocation { Position = new Vector3(-122.402f, 28.91794f, 415.5278f), MinimumAngle = -25, @@ -17295,25 +14752,21 @@ public static class AssemblyGatheringLocationLoader reference78 = obj52; gatheringNodeGroup26.Nodes = list103; reference76 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference79 = ref span99[index]; + ref GatheringNodeGroup reference79 = ref span39[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - ref GatheringNode reference80 = ref span106[num3]; + Span span44 = CollectionsMarshal.AsSpan(list106); + ref GatheringNode reference80 = ref span44[0]; GatheringNode obj53 = new GatheringNode { DataId = 33911u }; - num4 = 1; - List list107 = new List(num4); - CollectionsMarshal.SetCount(list107, num4); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new GatheringLocation + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation { Position = new Vector3(-178.974f, 22.0284f, 509.5606f), MinimumAngle = -145, @@ -17321,32 +14774,28 @@ public static class AssemblyGatheringLocationLoader }; obj53.Locations = list107; reference80 = obj53; - num3++; - ref GatheringNode reference81 = ref span106[num3]; + ref GatheringNode reference81 = ref span44[1]; GatheringNode obj54 = new GatheringNode { DataId = 33912u }; - index2 = 3; - List list108 = new List(index2); - CollectionsMarshal.SetCount(list108, index2); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = new GatheringLocation + num3 = 3; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + Span span45 = CollectionsMarshal.AsSpan(list108); + span45[0] = new GatheringLocation { Position = new Vector3(-180.526f, 25.92117f, 532.3414f), MinimumAngle = 175, MaximumAngle = 295 }; - num4++; - span108[num4] = new GatheringLocation + span45[1] = new GatheringLocation { Position = new Vector3(-162.8302f, 16.1582f, 523.17f), MinimumAngle = -115, MaximumAngle = -10 }; - num4++; - span108[num4] = new GatheringLocation + span45[2] = new GatheringLocation { Position = new Vector3(-180.8041f, 27.12615f, 522.0873f), MinimumAngle = -155, @@ -17359,46 +14808,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list99; AddLocation(818, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - index = 1; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - span109[num] = "liza"; + num = 1; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + CollectionsMarshal.AsSpan(list109)[0] = "liza"; gatheringRoot10.Author = list109; num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = new QuestStep(EInteractionType.None, null, null, 957) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; gatheringRoot10.Steps = list110; - index = 3; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref GatheringNodeGroup reference82 = ref span111[num]; + num = 3; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span46 = CollectionsMarshal.AsSpan(list111); + ref GatheringNodeGroup reference82 = ref span46[0]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num3 = 2; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span112 = CollectionsMarshal.AsSpan(list112); - num2 = 0; - ref GatheringNode reference83 = ref span112[num2]; + num2 = 2; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span47 = CollectionsMarshal.AsSpan(list112); + ref GatheringNode reference83 = ref span47[0]; GatheringNode obj55 = new GatheringNode { DataId = 33918u }; - num4 = 1; - List list113 = new List(num4); - CollectionsMarshal.SetCount(list113, num4); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new GatheringLocation + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation { Position = new Vector3(-582.5132f, 40.54578f, -426.0171f), MinimumAngle = -50, @@ -17406,32 +14847,28 @@ public static class AssemblyGatheringLocationLoader }; obj55.Locations = list113; reference83 = obj55; - num2++; - ref GatheringNode reference84 = ref span112[num2]; + ref GatheringNode reference84 = ref span47[1]; GatheringNode obj56 = new GatheringNode { DataId = 33919u }; - index2 = 3; - List list114 = new List(index2); - CollectionsMarshal.SetCount(list114, index2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num4 = 0; - span114[num4] = new GatheringLocation + num3 = 3; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + Span span48 = CollectionsMarshal.AsSpan(list114); + span48[0] = new GatheringLocation { Position = new Vector3(-578.2101f, 41.27147f, -447.6376f), MinimumAngle = 130, MaximumAngle = 220 }; - num4++; - span114[num4] = new GatheringLocation + span48[1] = new GatheringLocation { Position = new Vector3(-546.2882f, 44.52267f, -435.8184f), MinimumAngle = 200, MaximumAngle = 360 }; - num4++; - span114[num4] = new GatheringLocation + span48[2] = new GatheringLocation { Position = new Vector3(-606.7445f, 38.37634f, -425.5284f), MinimumAngle = -80, @@ -17441,25 +14878,21 @@ public static class AssemblyGatheringLocationLoader reference84 = obj56; gatheringNodeGroup28.Nodes = list112; reference82 = gatheringNodeGroup28; - num++; - ref GatheringNodeGroup reference85 = ref span111[num]; + ref GatheringNodeGroup reference85 = ref span46[1]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - ref GatheringNode reference86 = ref span115[num3]; + Span span49 = CollectionsMarshal.AsSpan(list115); + ref GatheringNode reference86 = ref span49[0]; GatheringNode obj57 = new GatheringNode { DataId = 33920u }; - num4 = 1; - List list116 = new List(num4); - CollectionsMarshal.SetCount(list116, num4); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new GatheringLocation + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = new GatheringLocation { Position = new Vector3(-488.2276f, 34.71221f, -359.6945f), MinimumAngle = 20, @@ -17468,32 +14901,28 @@ public static class AssemblyGatheringLocationLoader }; obj57.Locations = list116; reference86 = obj57; - num3++; - ref GatheringNode reference87 = ref span115[num3]; + ref GatheringNode reference87 = ref span49[1]; GatheringNode obj58 = new GatheringNode { DataId = 33921u }; - index2 = 3; - List list117 = new List(index2); - CollectionsMarshal.SetCount(list117, index2); - Span span117 = CollectionsMarshal.AsSpan(list117); - num4 = 0; - span117[num4] = new GatheringLocation + num3 = 3; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + Span span50 = CollectionsMarshal.AsSpan(list117); + span50[0] = new GatheringLocation { Position = new Vector3(-498.8687f, 31.08014f, -351.9397f), MinimumAngle = 40, MaximumAngle = 190 }; - num4++; - span117[num4] = new GatheringLocation + span50[1] = new GatheringLocation { Position = new Vector3(-490.7759f, 28.70215f, -344.4114f), MinimumAngle = -110, MaximumAngle = 60 }; - num4++; - span117[num4] = new GatheringLocation + span50[2] = new GatheringLocation { Position = new Vector3(-494.1286f, 32.89971f, -355.0208f), MinimumAngle = 80, @@ -17503,25 +14932,21 @@ public static class AssemblyGatheringLocationLoader reference87 = obj58; gatheringNodeGroup29.Nodes = list115; reference85 = gatheringNodeGroup29; - num++; - ref GatheringNodeGroup reference88 = ref span111[num]; + ref GatheringNodeGroup reference88 = ref span46[2]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num3 = 2; - List list118 = new List(num3); - CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num2 = 0; - ref GatheringNode reference89 = ref span118[num2]; + num2 = 2; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + Span span51 = CollectionsMarshal.AsSpan(list118); + ref GatheringNode reference89 = ref span51[0]; GatheringNode obj59 = new GatheringNode { DataId = 33922u }; - num4 = 1; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new GatheringLocation + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation { Position = new Vector3(-304.0609f, 68.76999f, -479.1875f), MinimumAngle = -110, @@ -17529,32 +14954,28 @@ public static class AssemblyGatheringLocationLoader }; obj59.Locations = list119; reference89 = obj59; - num2++; - ref GatheringNode reference90 = ref span118[num2]; + ref GatheringNode reference90 = ref span51[1]; GatheringNode obj60 = new GatheringNode { DataId = 33923u }; - index2 = 3; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num4 = 0; - span120[num4] = new GatheringLocation + num3 = 3; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + Span span52 = CollectionsMarshal.AsSpan(list120); + span52[0] = new GatheringLocation { Position = new Vector3(-293.6989f, 68.77935f, -484.2256f), MinimumAngle = -30, MaximumAngle = 110 }; - num4++; - span120[num4] = new GatheringLocation + span52[1] = new GatheringLocation { Position = new Vector3(-295.0806f, 69.12621f, -498.1898f), MinimumAngle = 10, MaximumAngle = 200 }; - num4++; - span120[num4] = new GatheringLocation + span52[2] = new GatheringLocation { Position = new Vector3(-281.4858f, 67.64153f, -477.6673f), MinimumAngle = -105, @@ -17570,16 +14991,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "liza"; + CollectionsMarshal.AsSpan(list121)[0] = "liza"; gatheringRoot11.Author = list121; - 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) + num = 1; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.None, null, null, 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; @@ -17587,40 +15004,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - ref GatheringNodeGroup reference91 = ref span123[index]; + Span span53 = CollectionsMarshal.AsSpan(list123); + ref GatheringNodeGroup reference91 = ref span53[0]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - ref GatheringNode reference92 = ref span124[num3]; + Span span54 = CollectionsMarshal.AsSpan(list124); + ref GatheringNode reference92 = ref span54[0]; GatheringNode obj61 = new GatheringNode { DataId = 33929u }; - num4 = 3; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new GatheringLocation + num3 = 3; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span55 = CollectionsMarshal.AsSpan(list125); + span55[0] = new GatheringLocation { Position = new Vector3(304.4121f, 118.8077f, 673.4494f), MinimumAngle = 50, MaximumAngle = 230 }; - index2++; - span125[index2] = new GatheringLocation + span55[1] = new GatheringLocation { Position = new Vector3(297.7666f, 119.4976f, 679.5604f), MinimumAngle = 50, MaximumAngle = 220 }; - index2++; - span125[index2] = new GatheringLocation + span55[2] = new GatheringLocation { Position = new Vector3(322.163f, 119.0883f, 657.4384f), MinimumAngle = 55, @@ -17628,18 +15040,15 @@ public static class AssemblyGatheringLocationLoader }; obj61.Locations = list125; reference92 = obj61; - num3++; - ref GatheringNode reference93 = ref span124[num3]; + ref GatheringNode reference93 = ref span54[1]; GatheringNode obj62 = new GatheringNode { DataId = 33928u }; - index2 = 1; - List list126 = new List(index2); - CollectionsMarshal.SetCount(list126, index2); - Span span126 = CollectionsMarshal.AsSpan(list126); - num4 = 0; - span126[num4] = new GatheringLocation + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation { Position = new Vector3(313.72f, 118.3442f, 664.8668f), MinimumAngle = 60, @@ -17649,39 +15058,34 @@ public static class AssemblyGatheringLocationLoader reference93 = obj62; gatheringNodeGroup31.Nodes = list124; reference91 = gatheringNodeGroup31; - index++; - ref GatheringNodeGroup reference94 = ref span123[index]; + ref GatheringNodeGroup reference94 = ref span53[1]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num3 = 2; - List list127 = new List(num3); - CollectionsMarshal.SetCount(list127, num3); - Span span127 = CollectionsMarshal.AsSpan(list127); - num2 = 0; - ref GatheringNode reference95 = ref span127[num2]; + num2 = 2; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + Span span56 = CollectionsMarshal.AsSpan(list127); + ref GatheringNode reference95 = ref span56[0]; GatheringNode obj63 = new GatheringNode { DataId = 33927u }; - num4 = 3; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new GatheringLocation + num3 = 3; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + Span span57 = CollectionsMarshal.AsSpan(list128); + span57[0] = new GatheringLocation { Position = new Vector3(394.3838f, 144.7951f, 820.7851f), MinimumAngle = 75, MaximumAngle = 250 }; - index2++; - span128[index2] = new GatheringLocation + span57[1] = new GatheringLocation { Position = new Vector3(421.0549f, 143.6111f, 805.9457f), MinimumAngle = 60, MaximumAngle = 225 }; - index2++; - span128[index2] = new GatheringLocation + span57[2] = new GatheringLocation { Position = new Vector3(414.2961f, 143.2405f, 811.3884f), MinimumAngle = 65, @@ -17689,18 +15093,15 @@ public static class AssemblyGatheringLocationLoader }; obj63.Locations = list128; reference95 = obj63; - num2++; - ref GatheringNode reference96 = ref span127[num2]; + ref GatheringNode reference96 = ref span56[1]; GatheringNode obj64 = new GatheringNode { DataId = 33926u }; - index2 = 1; - List list129 = new List(index2); - CollectionsMarshal.SetCount(list129, index2); - Span span129 = CollectionsMarshal.AsSpan(list129); - num4 = 0; - span129[num4] = new GatheringLocation + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + CollectionsMarshal.AsSpan(list129)[0] = new GatheringLocation { Position = new Vector3(405.2481f, 143.6621f, 816.6496f), MinimumAngle = 75, @@ -17710,39 +15111,34 @@ public static class AssemblyGatheringLocationLoader reference96 = obj64; gatheringNodeGroup32.Nodes = list127; reference94 = gatheringNodeGroup32; - index++; - ref GatheringNodeGroup reference97 = ref span123[index]; + ref GatheringNodeGroup reference97 = ref span53[2]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - num3 = 0; - ref GatheringNode reference98 = ref span130[num3]; + Span span58 = CollectionsMarshal.AsSpan(list130); + ref GatheringNode reference98 = ref span58[0]; GatheringNode obj65 = new GatheringNode { DataId = 33925u }; - num4 = 3; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new GatheringLocation + num3 = 3; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + Span span59 = CollectionsMarshal.AsSpan(list131); + span59[0] = new GatheringLocation { Position = new Vector3(474.679f, 143.4776f, 698.5961f), MinimumAngle = 20, MaximumAngle = 170 }; - index2++; - span131[index2] = new GatheringLocation + span59[1] = new GatheringLocation { Position = new Vector3(474.8585f, 144.2588f, 685.7468f), MinimumAngle = 0, MaximumAngle = 155 }; - index2++; - span131[index2] = new GatheringLocation + span59[2] = new GatheringLocation { Position = new Vector3(467.506f, 144.9235f, 654.2f), MinimumAngle = 0, @@ -17750,18 +15146,15 @@ public static class AssemblyGatheringLocationLoader }; obj65.Locations = list131; reference98 = obj65; - num3++; - ref GatheringNode reference99 = ref span130[num3]; + ref GatheringNode reference99 = ref span58[1]; GatheringNode obj66 = new GatheringNode { DataId = 33924u }; - index2 = 1; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num4 = 0; - span132[num4] = new GatheringLocation + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation { Position = new Vector3(470.7754f, 144.8793f, 672.114f), MinimumAngle = -5, @@ -17774,46 +15167,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list123; AddLocation(821, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - index = 1; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - span133[num] = "liza"; + num = 1; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + CollectionsMarshal.AsSpan(list133)[0] = "liza"; gatheringRoot12.Author = list133; num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = new QuestStep(EInteractionType.None, null, null, 958) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; gatheringRoot12.Steps = list134; - index = 3; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref GatheringNodeGroup reference100 = ref span135[num]; + num = 3; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span60 = CollectionsMarshal.AsSpan(list135); + ref GatheringNodeGroup reference100 = ref span60[0]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num3 = 2; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num2 = 0; - ref GatheringNode reference101 = ref span136[num2]; + num2 = 2; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + Span span61 = CollectionsMarshal.AsSpan(list136); + ref GatheringNode reference101 = ref span61[0]; GatheringNode obj67 = new GatheringNode { DataId = 33932u }; - num4 = 1; - List list137 = new List(num4); - CollectionsMarshal.SetCount(list137, num4); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new GatheringLocation + num3 = 1; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation { Position = new Vector3(-80.95969f, -9.810837f, 462.2579f), MinimumAngle = 130, @@ -17821,32 +15206,28 @@ public static class AssemblyGatheringLocationLoader }; obj67.Locations = list137; reference101 = obj67; - num2++; - ref GatheringNode reference102 = ref span136[num2]; + ref GatheringNode reference102 = ref span61[1]; GatheringNode obj68 = new GatheringNode { DataId = 33933u }; - index2 = 3; - List list138 = new List(index2); - CollectionsMarshal.SetCount(list138, index2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num4 = 0; - span138[num4] = new GatheringLocation + num3 = 3; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + Span span62 = CollectionsMarshal.AsSpan(list138); + span62[0] = new GatheringLocation { Position = new Vector3(-72.11935f, -10.90324f, 471.2258f), MinimumAngle = 105, MaximumAngle = 250 }; - num4++; - span138[num4] = new GatheringLocation + span62[1] = new GatheringLocation { Position = new Vector3(-98.97565f, -5.664787f, 463.9966f), MinimumAngle = 60, MaximumAngle = 230 }; - num4++; - span138[num4] = new GatheringLocation + span62[2] = new GatheringLocation { Position = new Vector3(-63.49503f, -11.21235f, 469.3839f), MinimumAngle = 80, @@ -17856,39 +15237,34 @@ public static class AssemblyGatheringLocationLoader reference102 = obj68; gatheringNodeGroup34.Nodes = list136; reference100 = gatheringNodeGroup34; - num++; - ref GatheringNodeGroup reference103 = ref span135[num]; + ref GatheringNodeGroup reference103 = ref span60[1]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - ref GatheringNode reference104 = ref span139[num3]; + Span span63 = CollectionsMarshal.AsSpan(list139); + ref GatheringNode reference104 = ref span63[0]; GatheringNode obj69 = new GatheringNode { DataId = 33931u }; - num4 = 3; - List list140 = new List(num4); - CollectionsMarshal.SetCount(list140, num4); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new GatheringLocation + num3 = 3; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + Span span64 = CollectionsMarshal.AsSpan(list140); + span64[0] = new GatheringLocation { Position = new Vector3(-61.34306f, 6.11244f, 318.3409f), MinimumAngle = -120, MaximumAngle = 70 }; - index2++; - span140[index2] = new GatheringLocation + span64[1] = new GatheringLocation { Position = new Vector3(-61.47854f, 6.076105f, 281.4938f), MinimumAngle = 65, MaximumAngle = 240 }; - index2++; - span140[index2] = new GatheringLocation + span64[2] = new GatheringLocation { Position = new Vector3(-73.25829f, 6.108262f, 302.9926f), MinimumAngle = 50, @@ -17896,18 +15272,15 @@ public static class AssemblyGatheringLocationLoader }; obj69.Locations = list140; reference104 = obj69; - num3++; - ref GatheringNode reference105 = ref span139[num3]; + ref GatheringNode reference105 = ref span63[1]; GatheringNode obj70 = new GatheringNode { DataId = 33930u }; - index2 = 1; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num4 = 0; - span141[num4] = new GatheringLocation + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + CollectionsMarshal.AsSpan(list141)[0] = new GatheringLocation { Position = new Vector3(-51.28564f, 6.088318f, 318.0529f), MinimumAngle = -65, @@ -17917,39 +15290,34 @@ public static class AssemblyGatheringLocationLoader reference105 = obj70; gatheringNodeGroup35.Nodes = list139; reference103 = gatheringNodeGroup35; - num++; - ref GatheringNodeGroup reference106 = ref span135[num]; + ref GatheringNodeGroup reference106 = ref span60[2]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num3 = 2; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num2 = 0; - ref GatheringNode reference107 = ref span142[num2]; + num2 = 2; + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + Span span65 = CollectionsMarshal.AsSpan(list142); + ref GatheringNode reference107 = ref span65[0]; GatheringNode obj71 = new GatheringNode { DataId = 33935u }; - num4 = 3; - List list143 = new List(num4); - CollectionsMarshal.SetCount(list143, num4); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new GatheringLocation + num3 = 3; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + Span span66 = CollectionsMarshal.AsSpan(list143); + span66[0] = new GatheringLocation { Position = new Vector3(72.58704f, -11.59895f, 354.757f), MinimumAngle = 75, MaximumAngle = 235 }; - index2++; - span143[index2] = new GatheringLocation + span66[1] = new GatheringLocation { Position = new Vector3(65.33016f, -11.61111f, 358.7321f), MinimumAngle = 65, MaximumAngle = 235 }; - index2++; - span143[index2] = new GatheringLocation + span66[2] = new GatheringLocation { Position = new Vector3(68.21196f, -11.81954f, 366.5172f), MinimumAngle = 5, @@ -17957,18 +15325,15 @@ public static class AssemblyGatheringLocationLoader }; obj71.Locations = list143; reference107 = obj71; - num2++; - ref GatheringNode reference108 = ref span142[num2]; + ref GatheringNode reference108 = ref span65[1]; GatheringNode obj72 = new GatheringNode { DataId = 33934u }; - index2 = 1; - List list144 = new List(index2); - CollectionsMarshal.SetCount(list144, index2); - Span span144 = CollectionsMarshal.AsSpan(list144); - num4 = 0; - span144[num4] = new GatheringLocation + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = new GatheringLocation { Position = new Vector3(81.30492f, -11.53227f, 347.9922f), MinimumAngle = 50, @@ -17984,16 +15349,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; gatheringRoot13.Author = list145; - 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) + num = 1; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -18001,26 +15362,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span147 = CollectionsMarshal.AsSpan(list147); - index = 0; - ref GatheringNodeGroup reference109 = ref span147[index]; + Span span67 = CollectionsMarshal.AsSpan(list147); + ref GatheringNodeGroup reference109 = ref span67[0]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - ref GatheringNode reference110 = ref span148[num3]; + Span span68 = CollectionsMarshal.AsSpan(list148); + ref GatheringNode reference110 = ref span68[0]; GatheringNode obj73 = new GatheringNode { DataId = 33938u }; - num4 = 1; - List list149 = new List(num4); - CollectionsMarshal.SetCount(list149, num4); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new GatheringLocation + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation { Position = new Vector3(44.65063f, 100.2818f, -531.6971f), MinimumAngle = 150, @@ -18028,32 +15385,28 @@ public static class AssemblyGatheringLocationLoader }; obj73.Locations = list149; reference110 = obj73; - num3++; - ref GatheringNode reference111 = ref span148[num3]; + ref GatheringNode reference111 = ref span68[1]; GatheringNode obj74 = new GatheringNode { DataId = 33939u }; - index2 = 3; - List list150 = new List(index2); - CollectionsMarshal.SetCount(list150, index2); - Span span150 = CollectionsMarshal.AsSpan(list150); - num4 = 0; - span150[num4] = new GatheringLocation + num3 = 3; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + Span span69 = CollectionsMarshal.AsSpan(list150); + span69[0] = new GatheringLocation { Position = new Vector3(33.19277f, 104.5029f, -555.932f), MinimumAngle = 190, MaximumAngle = 350 }; - num4++; - span150[num4] = new GatheringLocation + span69[1] = new GatheringLocation { Position = new Vector3(65.9342f, 97.38677f, -524.9155f), MinimumAngle = 125, MaximumAngle = 295 }; - num4++; - span150[num4] = new GatheringLocation + span69[2] = new GatheringLocation { Position = new Vector3(74.52164f, 98.45871f, -489.864f), MinimumAngle = 165, @@ -18063,39 +15416,34 @@ public static class AssemblyGatheringLocationLoader reference111 = obj74; gatheringNodeGroup37.Nodes = list148; reference109 = gatheringNodeGroup37; - index++; - ref GatheringNodeGroup reference112 = ref span147[index]; + ref GatheringNodeGroup reference112 = ref span67[1]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num3 = 2; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref GatheringNode reference113 = ref span151[num2]; + num2 = 2; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + Span span70 = CollectionsMarshal.AsSpan(list151); + ref GatheringNode reference113 = ref span70[0]; GatheringNode obj75 = new GatheringNode { DataId = 33941u }; - num4 = 3; - List list152 = new List(num4); - CollectionsMarshal.SetCount(list152, num4); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new GatheringLocation + num3 = 3; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + Span span71 = CollectionsMarshal.AsSpan(list152); + span71[0] = new GatheringLocation { Position = new Vector3(279.4078f, 101.9103f, -511.9555f), MinimumAngle = 80, MaximumAngle = 215 }; - index2++; - span152[index2] = new GatheringLocation + span71[1] = new GatheringLocation { Position = new Vector3(265.2476f, 100.4918f, -491.8746f), MinimumAngle = 110, MaximumAngle = 180 }; - index2++; - span152[index2] = new GatheringLocation + span71[2] = new GatheringLocation { Position = new Vector3(290.6152f, 102.41f, -549.2336f), MinimumAngle = 40, @@ -18103,18 +15451,15 @@ public static class AssemblyGatheringLocationLoader }; obj75.Locations = list152; reference113 = obj75; - num2++; - ref GatheringNode reference114 = ref span151[num2]; + ref GatheringNode reference114 = ref span70[1]; GatheringNode obj76 = new GatheringNode { DataId = 33940u }; - index2 = 1; - List list153 = new List(index2); - CollectionsMarshal.SetCount(list153, index2); - Span span153 = CollectionsMarshal.AsSpan(list153); - num4 = 0; - span153[num4] = new GatheringLocation + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + CollectionsMarshal.AsSpan(list153)[0] = new GatheringLocation { Position = new Vector3(288.9601f, 101.2474f, -520.9278f), MinimumAngle = 35, @@ -18124,39 +15469,34 @@ public static class AssemblyGatheringLocationLoader reference114 = obj76; gatheringNodeGroup38.Nodes = list151; reference112 = gatheringNodeGroup38; - index++; - ref GatheringNodeGroup reference115 = ref span147[index]; + ref GatheringNodeGroup reference115 = ref span67[2]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - ref GatheringNode reference116 = ref span154[num3]; + Span span72 = CollectionsMarshal.AsSpan(list154); + ref GatheringNode reference116 = ref span72[0]; GatheringNode obj77 = new GatheringNode { DataId = 33937u }; - num4 = 3; - List list155 = new List(num4); - CollectionsMarshal.SetCount(list155, num4); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new GatheringLocation + num3 = 3; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + Span span73 = CollectionsMarshal.AsSpan(list155); + span73[0] = new GatheringLocation { Position = new Vector3(124.7882f, 105.6518f, -712.3575f), MinimumAngle = -45, MaximumAngle = 70 }; - index2++; - span155[index2] = new GatheringLocation + span73[1] = new GatheringLocation { Position = new Vector3(94.71277f, 105.52f, -696.7798f), MinimumAngle = -60, MaximumAngle = 80 }; - index2++; - span155[index2] = new GatheringLocation + span73[2] = new GatheringLocation { Position = new Vector3(172.8746f, 102.9022f, -700.0879f), MinimumAngle = -50, @@ -18164,18 +15504,15 @@ public static class AssemblyGatheringLocationLoader }; obj77.Locations = list155; reference116 = obj77; - num3++; - ref GatheringNode reference117 = ref span154[num3]; + ref GatheringNode reference117 = ref span72[1]; GatheringNode obj78 = new GatheringNode { DataId = 33936u }; - index2 = 1; - List list156 = new List(index2); - CollectionsMarshal.SetCount(list156, index2); - Span span156 = CollectionsMarshal.AsSpan(list156); - num4 = 0; - span156[num4] = new GatheringLocation + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation { Position = new Vector3(156.3894f, 103.6386f, -707.1092f), MinimumAngle = -85, @@ -18188,53 +15525,45 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list147; AddLocation(823, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - index = 1; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - span157[num] = "liza"; + num = 1; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + CollectionsMarshal.AsSpan(list157)[0] = "liza"; gatheringRoot14.Author = list157; num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = new QuestStep(EInteractionType.None, null, null, 961) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; gatheringRoot14.Steps = list158; - index = 3; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref GatheringNodeGroup reference118 = ref span159[num]; + num = 3; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span74 = CollectionsMarshal.AsSpan(list159); + ref GatheringNodeGroup reference118 = ref span74[0]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num3 = 2; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span160 = CollectionsMarshal.AsSpan(list160); - num2 = 0; - ref GatheringNode reference119 = ref span160[num2]; + num2 = 2; + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + Span span75 = CollectionsMarshal.AsSpan(list160); + ref GatheringNode reference119 = ref span75[0]; GatheringNode obj79 = new GatheringNode { DataId = 33945u }; - num4 = 3; - List list161 = new List(num4); - CollectionsMarshal.SetCount(list161, num4); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new GatheringLocation + num3 = 3; + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + Span span76 = CollectionsMarshal.AsSpan(list161); + span76[0] = new GatheringLocation { Position = new Vector3(-478.091f, 136.505f, -144.7721f), MinimumAngle = 185, MaximumAngle = 360 }; - index2++; - span161[index2] = new GatheringLocation + span76[1] = new GatheringLocation { Position = new Vector3(-472.7283f, 136.9691f, -153.0142f), MinimumAngle = -105, @@ -18242,8 +15571,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.6f, MaximumDistance = 3f }; - index2++; - span161[index2] = new GatheringLocation + span76[2] = new GatheringLocation { Position = new Vector3(-457.2324f, 136.2298f, -153.2787f), MinimumAngle = 70, @@ -18251,18 +15579,15 @@ public static class AssemblyGatheringLocationLoader }; obj79.Locations = list161; reference119 = obj79; - num2++; - ref GatheringNode reference120 = ref span160[num2]; + ref GatheringNode reference120 = ref span75[1]; GatheringNode obj80 = new GatheringNode { DataId = 33944u }; - index2 = 1; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num4 = 0; - span162[num4] = new GatheringLocation + num3 = 1; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + CollectionsMarshal.AsSpan(list162)[0] = new GatheringLocation { Position = new Vector3(-477.1867f, 137.1741f, -150.0524f), MinimumAngle = -95, @@ -18272,25 +15597,21 @@ public static class AssemblyGatheringLocationLoader reference120 = obj80; gatheringNodeGroup40.Nodes = list160; reference118 = gatheringNodeGroup40; - num++; - ref GatheringNodeGroup reference121 = ref span159[num]; + ref GatheringNodeGroup reference121 = ref span74[1]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - num3 = 0; - ref GatheringNode reference122 = ref span163[num3]; + Span span77 = CollectionsMarshal.AsSpan(list163); + ref GatheringNode reference122 = ref span77[0]; GatheringNode obj81 = new GatheringNode { DataId = 33946u }; - num4 = 1; - List list164 = new List(num4); - CollectionsMarshal.SetCount(list164, num4); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new GatheringLocation + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new GatheringLocation { Position = new Vector3(-335.5337f, 148.5269f, -83.30743f), MinimumAngle = 140, @@ -18298,32 +15619,28 @@ public static class AssemblyGatheringLocationLoader }; obj81.Locations = list164; reference122 = obj81; - num3++; - ref GatheringNode reference123 = ref span163[num3]; + ref GatheringNode reference123 = ref span77[1]; GatheringNode obj82 = new GatheringNode { DataId = 33947u }; - index2 = 3; - List list165 = new List(index2); - CollectionsMarshal.SetCount(list165, index2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num4 = 0; - span165[num4] = new GatheringLocation + num3 = 3; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + Span span78 = CollectionsMarshal.AsSpan(list165); + span78[0] = new GatheringLocation { Position = new Vector3(-333.4615f, 148.59f, -78.42037f), MinimumAngle = -160, MaximumAngle = -15 }; - num4++; - span165[num4] = new GatheringLocation + span78[1] = new GatheringLocation { Position = new Vector3(-342.3078f, 145.4429f, -109.3348f), MinimumAngle = 210, MaximumAngle = 355 }; - num4++; - span165[num4] = new GatheringLocation + span78[2] = new GatheringLocation { Position = new Vector3(-327.4102f, 143.6382f, -118.3601f), MinimumAngle = -30, @@ -18333,25 +15650,21 @@ public static class AssemblyGatheringLocationLoader reference123 = obj82; gatheringNodeGroup41.Nodes = list163; reference121 = gatheringNodeGroup41; - num++; - ref GatheringNodeGroup reference124 = ref span159[num]; + ref GatheringNodeGroup reference124 = ref span74[2]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num3 = 2; - List list166 = new List(num3); - CollectionsMarshal.SetCount(list166, num3); - Span span166 = CollectionsMarshal.AsSpan(list166); - num2 = 0; - ref GatheringNode reference125 = ref span166[num2]; + num2 = 2; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + Span span79 = CollectionsMarshal.AsSpan(list166); + ref GatheringNode reference125 = ref span79[0]; GatheringNode obj83 = new GatheringNode { DataId = 33942u }; - num4 = 1; - List list167 = new List(num4); - CollectionsMarshal.SetCount(list167, num4); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new GatheringLocation + num3 = 1; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + CollectionsMarshal.AsSpan(list167)[0] = new GatheringLocation { Position = new Vector3(-291.2093f, 136.4047f, -228.9244f), MinimumAngle = 120, @@ -18359,32 +15672,28 @@ public static class AssemblyGatheringLocationLoader }; obj83.Locations = list167; reference125 = obj83; - num2++; - ref GatheringNode reference126 = ref span166[num2]; + ref GatheringNode reference126 = ref span79[1]; GatheringNode obj84 = new GatheringNode { DataId = 33943u }; - index2 = 3; - List list168 = new List(index2); - CollectionsMarshal.SetCount(list168, index2); - Span span168 = CollectionsMarshal.AsSpan(list168); - num4 = 0; - span168[num4] = new GatheringLocation + num3 = 3; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + Span span80 = CollectionsMarshal.AsSpan(list168); + span80[0] = new GatheringLocation { Position = new Vector3(-343.5337f, 140.0085f, -243.2652f), MinimumAngle = 115, MaximumAngle = 255 }; - num4++; - span168[num4] = new GatheringLocation + span80[1] = new GatheringLocation { Position = new Vector3(-337.3867f, 136.3985f, -237.7285f), MinimumAngle = -130, MaximumAngle = 10 }; - num4++; - span168[num4] = new GatheringLocation + span80[2] = new GatheringLocation { Position = new Vector3(-304.9684f, 136.2381f, -229.2424f), MinimumAngle = 115, @@ -18400,16 +15709,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; gatheringRoot15.Author = list169; - 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) + num = 1; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -18422,26 +15727,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - ref GatheringNodeGroup reference127 = ref span171[index]; + Span span81 = CollectionsMarshal.AsSpan(list171); + ref GatheringNodeGroup reference127 = ref span81[0]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - num3 = 0; - ref GatheringNode reference128 = ref span172[num3]; + Span span82 = CollectionsMarshal.AsSpan(list172); + ref GatheringNode reference128 = ref span82[0]; GatheringNode obj85 = new GatheringNode { DataId = 33974u }; - num4 = 1; - List list173 = new List(num4); - CollectionsMarshal.SetCount(list173, num4); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new GatheringLocation + num3 = 1; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + CollectionsMarshal.AsSpan(list173)[0] = new GatheringLocation { Position = new Vector3(-218.7686f, 166.4283f, -723.4156f), MinimumAngle = 85, @@ -18449,32 +15750,28 @@ public static class AssemblyGatheringLocationLoader }; obj85.Locations = list173; reference128 = obj85; - num3++; - ref GatheringNode reference129 = ref span172[num3]; + ref GatheringNode reference129 = ref span82[1]; GatheringNode obj86 = new GatheringNode { DataId = 33975u }; - index2 = 3; - List list174 = new List(index2); - CollectionsMarshal.SetCount(list174, index2); - Span span174 = CollectionsMarshal.AsSpan(list174); - num4 = 0; - span174[num4] = new GatheringLocation + num3 = 3; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + Span span83 = CollectionsMarshal.AsSpan(list174); + span83[0] = new GatheringLocation { Position = new Vector3(-212.9429f, 165.4075f, -702.5071f), MinimumAngle = 80, MaximumAngle = 230 }; - num4++; - span174[num4] = new GatheringLocation + span83[1] = new GatheringLocation { Position = new Vector3(-230.457f, 166.878f, -708.8349f), MinimumAngle = 115, MaximumAngle = 235 }; - num4++; - span174[num4] = new GatheringLocation + span83[2] = new GatheringLocation { Position = new Vector3(-211.0781f, 165.8331f, -732.723f), MinimumAngle = 60, @@ -18484,25 +15781,21 @@ public static class AssemblyGatheringLocationLoader reference129 = obj86; gatheringNodeGroup43.Nodes = list172; reference127 = gatheringNodeGroup43; - index++; - ref GatheringNodeGroup reference130 = ref span171[index]; + ref GatheringNodeGroup reference130 = ref span81[1]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num3 = 2; - List list175 = new List(num3); - CollectionsMarshal.SetCount(list175, num3); - Span span175 = CollectionsMarshal.AsSpan(list175); - num2 = 0; - ref GatheringNode reference131 = ref span175[num2]; + num2 = 2; + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + Span span84 = CollectionsMarshal.AsSpan(list175); + ref GatheringNode reference131 = ref span84[0]; GatheringNode obj87 = new GatheringNode { DataId = 33972u }; - num4 = 1; - List list176 = new List(num4); - CollectionsMarshal.SetCount(list176, num4); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new GatheringLocation + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + CollectionsMarshal.AsSpan(list176)[0] = new GatheringLocation { Position = new Vector3(-281.8436f, 181.3823f, -815.8576f), MinimumAngle = 230, @@ -18510,32 +15803,28 @@ public static class AssemblyGatheringLocationLoader }; obj87.Locations = list176; reference131 = obj87; - num2++; - ref GatheringNode reference132 = ref span175[num2]; + ref GatheringNode reference132 = ref span84[1]; GatheringNode obj88 = new GatheringNode { DataId = 33973u }; - index2 = 3; - List list177 = new List(index2); - CollectionsMarshal.SetCount(list177, index2); - Span span177 = CollectionsMarshal.AsSpan(list177); - num4 = 0; - span177[num4] = new GatheringLocation + num3 = 3; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + Span span85 = CollectionsMarshal.AsSpan(list177); + span85[0] = new GatheringLocation { Position = new Vector3(-268.4985f, 181.0501f, -829.9652f), MinimumAngle = -115, MaximumAngle = 45 }; - num4++; - span177[num4] = new GatheringLocation + span85[1] = new GatheringLocation { Position = new Vector3(-290.0164f, 182.6228f, -817.2674f), MinimumAngle = -145, MaximumAngle = 35 }; - num4++; - span177[num4] = new GatheringLocation + span85[2] = new GatheringLocation { Position = new Vector3(-264.0305f, 180.8218f, -837.3401f), MinimumAngle = -40, @@ -18545,39 +15834,34 @@ public static class AssemblyGatheringLocationLoader reference132 = obj88; gatheringNodeGroup44.Nodes = list175; reference130 = gatheringNodeGroup44; - index++; - ref GatheringNodeGroup reference133 = ref span171[index]; + ref GatheringNodeGroup reference133 = ref span81[2]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - ref GatheringNode reference134 = ref span178[num3]; + Span span86 = CollectionsMarshal.AsSpan(list178); + ref GatheringNode reference134 = ref span86[0]; GatheringNode obj89 = new GatheringNode { DataId = 33971u }; - num4 = 3; - List list179 = new List(num4); - CollectionsMarshal.SetCount(list179, num4); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new GatheringLocation + num3 = 3; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + Span span87 = CollectionsMarshal.AsSpan(list179); + span87[0] = new GatheringLocation { Position = new Vector3(-385.0122f, 189.0781f, -711.0446f), MinimumAngle = -30, MaximumAngle = 100 }; - index2++; - span179[index2] = new GatheringLocation + span87[1] = new GatheringLocation { Position = new Vector3(-407.4641f, 187.9986f, -684.2576f), MinimumAngle = 180, MaximumAngle = 310 }; - index2++; - span179[index2] = new GatheringLocation + span87[2] = new GatheringLocation { Position = new Vector3(-395.5105f, 187.897f, -687.5342f), MinimumAngle = 0, @@ -18585,18 +15869,15 @@ public static class AssemblyGatheringLocationLoader }; obj89.Locations = list179; reference134 = obj89; - num3++; - ref GatheringNode reference135 = ref span178[num3]; + ref GatheringNode reference135 = ref span86[1]; GatheringNode obj90 = new GatheringNode { DataId = 33970u }; - index2 = 1; - List list180 = new List(index2); - CollectionsMarshal.SetCount(list180, index2); - Span span180 = CollectionsMarshal.AsSpan(list180); - num4 = 0; - span180[num4] = new GatheringLocation + num3 = 1; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + CollectionsMarshal.AsSpan(list180)[0] = new GatheringLocation { Position = new Vector3(-400.513f, 188.9934f, -695.2208f), MinimumAngle = 165, @@ -18609,73 +15890,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list171; AddLocation(837, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - index = 1; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - span181[num] = "liza"; + num = 1; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + CollectionsMarshal.AsSpan(list181)[0] = "liza"; gatheringRoot16.Author = list181; num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = new QuestStep(EInteractionType.None, null, null, 956) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.None, null, null, 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; gatheringRoot16.Steps = list182; - index = 3; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref GatheringNodeGroup reference136 = ref span183[num]; + num = 3; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span88 = CollectionsMarshal.AsSpan(list183); + ref GatheringNodeGroup reference136 = ref span88[0]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num3 = 2; - List list184 = new List(num3); - CollectionsMarshal.SetCount(list184, num3); - Span span184 = CollectionsMarshal.AsSpan(list184); - num2 = 0; - ref GatheringNode reference137 = ref span184[num2]; + num2 = 2; + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + Span span89 = CollectionsMarshal.AsSpan(list184); + ref GatheringNode reference137 = ref span89[0]; GatheringNode obj91 = new GatheringNode { DataId = 33980u }; - num4 = 1; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new GatheringLocation + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation { Position = new Vector3(331.2026f, 86.06693f, -318.6516f) }; obj91.Locations = list185; reference137 = obj91; - num2++; - ref GatheringNode reference138 = ref span184[num2]; + ref GatheringNode reference138 = ref span89[1]; GatheringNode obj92 = new GatheringNode { DataId = 33981u }; - index2 = 3; - List list186 = new List(index2); - CollectionsMarshal.SetCount(list186, index2); - Span span186 = CollectionsMarshal.AsSpan(list186); - num4 = 0; - span186[num4] = new GatheringLocation + num3 = 3; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + Span span90 = CollectionsMarshal.AsSpan(list186); + span90[0] = new GatheringLocation { Position = new Vector3(334.0037f, 85.40742f, -300.7174f) }; - num4++; - span186[num4] = new GatheringLocation + span90[1] = new GatheringLocation { Position = new Vector3(355.6456f, 86.62501f, -308.6764f) }; - num4++; - span186[num4] = new GatheringLocation + span90[2] = new GatheringLocation { Position = new Vector3(340.9933f, 86.25529f, -324.239f) }; @@ -18683,52 +15952,44 @@ public static class AssemblyGatheringLocationLoader reference138 = obj92; gatheringNodeGroup46.Nodes = list184; reference136 = gatheringNodeGroup46; - num++; - ref GatheringNodeGroup reference139 = ref span183[num]; + ref GatheringNodeGroup reference139 = ref span88[1]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - num3 = 0; - ref GatheringNode reference140 = ref span187[num3]; + Span span91 = CollectionsMarshal.AsSpan(list187); + ref GatheringNode reference140 = ref span91[0]; GatheringNode obj93 = new GatheringNode { DataId = 33979u }; - num4 = 3; - List list188 = new List(num4); - CollectionsMarshal.SetCount(list188, num4); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new GatheringLocation + num3 = 3; + List list188 = new List(num3); + CollectionsMarshal.SetCount(list188, num3); + Span span92 = CollectionsMarshal.AsSpan(list188); + span92[0] = new GatheringLocation { Position = new Vector3(255.936f, 70.96983f, -233.1732f) }; - index2++; - span188[index2] = new GatheringLocation + span92[1] = new GatheringLocation { Position = new Vector3(239.4902f, 69.74259f, -224.506f) }; - index2++; - span188[index2] = new GatheringLocation + span92[2] = new GatheringLocation { Position = new Vector3(265.0269f, 70.56706f, -208.2487f) }; obj93.Locations = list188; reference140 = obj93; - num3++; - ref GatheringNode reference141 = ref span187[num3]; + ref GatheringNode reference141 = ref span91[1]; GatheringNode obj94 = new GatheringNode { DataId = 33978u }; - index2 = 1; - List list189 = new List(index2); - CollectionsMarshal.SetCount(list189, index2); - Span span189 = CollectionsMarshal.AsSpan(list189); - num4 = 0; - span189[num4] = new GatheringLocation + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation { Position = new Vector3(262.5149f, 69.96209f, -200.2567f), MinimumAngle = 55, @@ -18738,52 +15999,44 @@ public static class AssemblyGatheringLocationLoader reference141 = obj94; gatheringNodeGroup47.Nodes = list187; reference139 = gatheringNodeGroup47; - num++; - ref GatheringNodeGroup reference142 = ref span183[num]; + ref GatheringNodeGroup reference142 = ref span88[2]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num3 = 2; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - num2 = 0; - ref GatheringNode reference143 = ref span190[num2]; + num2 = 2; + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + Span span93 = CollectionsMarshal.AsSpan(list190); + ref GatheringNode reference143 = ref span93[0]; GatheringNode obj95 = new GatheringNode { DataId = 33976u }; - num4 = 1; - List list191 = new List(num4); - CollectionsMarshal.SetCount(list191, num4); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new GatheringLocation + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new GatheringLocation { Position = new Vector3(375.1279f, 67.35788f, -150.6431f) }; obj95.Locations = list191; reference143 = obj95; - num2++; - ref GatheringNode reference144 = ref span190[num2]; + ref GatheringNode reference144 = ref span93[1]; GatheringNode obj96 = new GatheringNode { DataId = 33977u }; - index2 = 3; - List list192 = new List(index2); - CollectionsMarshal.SetCount(list192, index2); - Span span192 = CollectionsMarshal.AsSpan(list192); - num4 = 0; - span192[num4] = new GatheringLocation + num3 = 3; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + Span span94 = CollectionsMarshal.AsSpan(list192); + span94[0] = new GatheringLocation { Position = new Vector3(392.5393f, 65.98527f, -141.6628f) }; - num4++; - span192[num4] = new GatheringLocation + span94[1] = new GatheringLocation { Position = new Vector3(368.5759f, 67.33283f, -140.4326f) }; - num4++; - span192[num4] = new GatheringLocation + span94[2] = new GatheringLocation { Position = new Vector3(383.0393f, 67.01035f, -158.8207f) }; @@ -18797,16 +16050,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "liza"; + CollectionsMarshal.AsSpan(list193)[0] = "liza"; gatheringRoot17.Author = list193; - 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) + num = 1; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -18814,26 +16063,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - ref GatheringNodeGroup reference145 = ref span195[index]; + Span span95 = CollectionsMarshal.AsSpan(list195); + ref GatheringNodeGroup reference145 = ref span95[0]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 2; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - num3 = 0; - ref GatheringNode reference146 = ref span196[num3]; + Span span96 = CollectionsMarshal.AsSpan(list196); + ref GatheringNode reference146 = ref span96[0]; GatheringNode obj97 = new GatheringNode { DataId = 33982u }; - num4 = 1; - List list197 = new List(num4); - CollectionsMarshal.SetCount(list197, num4); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new GatheringLocation + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = new GatheringLocation { Position = new Vector3(-274.8412f, 17.35062f, 118.8987f), MinimumAngle = 175, @@ -18841,32 +16086,28 @@ public static class AssemblyGatheringLocationLoader }; obj97.Locations = list197; reference146 = obj97; - num3++; - ref GatheringNode reference147 = ref span196[num3]; + ref GatheringNode reference147 = ref span96[1]; GatheringNode obj98 = new GatheringNode { DataId = 33983u }; - index2 = 3; - List list198 = new List(index2); - CollectionsMarshal.SetCount(list198, index2); - Span span198 = CollectionsMarshal.AsSpan(list198); - num4 = 0; - span198[num4] = new GatheringLocation + num3 = 3; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + Span span97 = CollectionsMarshal.AsSpan(list198); + span97[0] = new GatheringLocation { Position = new Vector3(-267.3967f, 17.7139f, 123.6814f), MinimumAngle = 40, MaximumAngle = 245 }; - num4++; - span198[num4] = new GatheringLocation + span97[1] = new GatheringLocation { Position = new Vector3(-287.5207f, 18.51543f, 101.9367f), MinimumAngle = 155, MaximumAngle = 325 }; - num4++; - span198[num4] = new GatheringLocation + span97[2] = new GatheringLocation { Position = new Vector3(-268.33f, 19.74485f, 102.5864f), MinimumAngle = -150, @@ -18876,25 +16117,21 @@ public static class AssemblyGatheringLocationLoader reference147 = obj98; gatheringNodeGroup49.Nodes = list196; reference145 = gatheringNodeGroup49; - index++; - ref GatheringNodeGroup reference148 = ref span195[index]; + ref GatheringNodeGroup reference148 = ref span95[1]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num3 = 2; - List list199 = new List(num3); - CollectionsMarshal.SetCount(list199, num3); - Span span199 = CollectionsMarshal.AsSpan(list199); - num2 = 0; - ref GatheringNode reference149 = ref span199[num2]; + num2 = 2; + List list199 = new List(num2); + CollectionsMarshal.SetCount(list199, num2); + Span span98 = CollectionsMarshal.AsSpan(list199); + ref GatheringNode reference149 = ref span98[0]; GatheringNode obj99 = new GatheringNode { DataId = 33984u }; - num4 = 1; - List list200 = new List(num4); - CollectionsMarshal.SetCount(list200, num4); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new GatheringLocation + num3 = 1; + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + CollectionsMarshal.AsSpan(list200)[0] = new GatheringLocation { Position = new Vector3(-152.7941f, 38.65108f, 20.30975f), MinimumAngle = 0, @@ -18902,32 +16139,28 @@ public static class AssemblyGatheringLocationLoader }; obj99.Locations = list200; reference149 = obj99; - num2++; - ref GatheringNode reference150 = ref span199[num2]; + ref GatheringNode reference150 = ref span98[1]; GatheringNode obj100 = new GatheringNode { DataId = 33985u }; - index2 = 3; - List list201 = new List(index2); - CollectionsMarshal.SetCount(list201, index2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num4 = 0; - span201[num4] = new GatheringLocation + num3 = 3; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + Span span99 = CollectionsMarshal.AsSpan(list201); + span99[0] = new GatheringLocation { Position = new Vector3(-142.8687f, 41.0236f, 21.84206f), MinimumAngle = -65, MaximumAngle = 85 }; - num4++; - span201[num4] = new GatheringLocation + span99[1] = new GatheringLocation { Position = new Vector3(-146.3786f, 40.56817f, 29.28198f), MinimumAngle = -10, MaximumAngle = 140 }; - num4++; - span201[num4] = new GatheringLocation + span99[2] = new GatheringLocation { Position = new Vector3(-147.6553f, 41.60496f, -0.04698198f), MinimumAngle = -130, @@ -18937,32 +16170,28 @@ public static class AssemblyGatheringLocationLoader reference150 = obj100; gatheringNodeGroup50.Nodes = list199; reference148 = gatheringNodeGroup50; - index++; - ref GatheringNodeGroup reference151 = ref span195[index]; + ref GatheringNodeGroup reference151 = ref span95[2]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 2; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - num3 = 0; - ref GatheringNode reference152 = ref span202[num3]; + Span span100 = CollectionsMarshal.AsSpan(list202); + ref GatheringNode reference152 = ref span100[0]; GatheringNode obj101 = new GatheringNode { DataId = 33987u }; - num4 = 2; - List list203 = new List(num4); - CollectionsMarshal.SetCount(list203, num4); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new GatheringLocation + num3 = 2; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + Span span101 = CollectionsMarshal.AsSpan(list203); + span101[0] = new GatheringLocation { Position = new Vector3(-270.0331f, 35.83369f, -29.07548f), MinimumAngle = 200, MaximumAngle = 330 }; - index2++; - span203[index2] = new GatheringLocation + span101[1] = new GatheringLocation { Position = new Vector3(-274.9584f, 35.26747f, -31.89327f), MinimumAngle = 90, @@ -18970,18 +16199,15 @@ public static class AssemblyGatheringLocationLoader }; obj101.Locations = list203; reference152 = obj101; - num3++; - ref GatheringNode reference153 = ref span202[num3]; + ref GatheringNode reference153 = ref span100[1]; GatheringNode obj102 = new GatheringNode { DataId = 33986u }; - index2 = 1; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num4 = 0; - span204[num4] = new GatheringLocation + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation { Position = new Vector3(-267.6438f, 35.07198f, -44.49979f), MinimumAngle = -100, @@ -18994,73 +16220,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list195; AddLocation(839, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - index = 1; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - span205[num] = "liza"; + num = 1; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + CollectionsMarshal.AsSpan(list205)[0] = "liza"; gatheringRoot18.Author = list205; num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = new QuestStep(EInteractionType.None, null, null, 957) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.None, null, null, 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; gatheringRoot18.Steps = list206; - index = 3; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref GatheringNodeGroup reference154 = ref span207[num]; + num = 3; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span102 = CollectionsMarshal.AsSpan(list207); + ref GatheringNodeGroup reference154 = ref span102[0]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num3 = 2; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span208 = CollectionsMarshal.AsSpan(list208); - num2 = 0; - ref GatheringNode reference155 = ref span208[num2]; + num2 = 2; + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + Span span103 = CollectionsMarshal.AsSpan(list208); + ref GatheringNode reference155 = ref span103[0]; GatheringNode obj103 = new GatheringNode { DataId = 33993u }; - num4 = 1; - List list209 = new List(num4); - CollectionsMarshal.SetCount(list209, num4); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new GatheringLocation + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation { Position = new Vector3(-97.85602f, 91.39626f, -562.7067f) }; obj103.Locations = list209; reference155 = obj103; - num2++; - ref GatheringNode reference156 = ref span208[num2]; + ref GatheringNode reference156 = ref span103[1]; GatheringNode obj104 = new GatheringNode { DataId = 33992u }; - index2 = 3; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num4 = 0; - span210[num4] = new GatheringLocation + num3 = 3; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + Span span104 = CollectionsMarshal.AsSpan(list210); + span104[0] = new GatheringLocation { Position = new Vector3(-91.53894f, 91.14209f, -520.9888f) }; - num4++; - span210[num4] = new GatheringLocation + span104[1] = new GatheringLocation { Position = new Vector3(-82.73576f, 91.15034f, -532.2811f) }; - num4++; - span210[num4] = new GatheringLocation + span104[2] = new GatheringLocation { Position = new Vector3(-119.5286f, 89.67725f, -601.3649f) }; @@ -19068,52 +16282,44 @@ public static class AssemblyGatheringLocationLoader reference156 = obj104; gatheringNodeGroup52.Nodes = list208; reference154 = gatheringNodeGroup52; - num++; - ref GatheringNodeGroup reference157 = ref span207[num]; + ref GatheringNodeGroup reference157 = ref span102[1]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - num3 = 0; - ref GatheringNode reference158 = ref span211[num3]; + Span span105 = CollectionsMarshal.AsSpan(list211); + ref GatheringNode reference158 = ref span105[0]; GatheringNode obj105 = new GatheringNode { DataId = 33990u }; - num4 = 1; - List list212 = new List(num4); - CollectionsMarshal.SetCount(list212, num4); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new GatheringLocation + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + CollectionsMarshal.AsSpan(list212)[0] = new GatheringLocation { Position = new Vector3(105.0951f, 75.30056f, -581.8511f) }; obj105.Locations = list212; reference158 = obj105; - num3++; - ref GatheringNode reference159 = ref span211[num3]; + ref GatheringNode reference159 = ref span105[1]; GatheringNode obj106 = new GatheringNode { DataId = 33991u }; - index2 = 3; - List list213 = new List(index2); - CollectionsMarshal.SetCount(list213, index2); - Span span213 = CollectionsMarshal.AsSpan(list213); - num4 = 0; - span213[num4] = new GatheringLocation + num3 = 3; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + Span span106 = CollectionsMarshal.AsSpan(list213); + span106[0] = new GatheringLocation { Position = new Vector3(113.0813f, 72.75166f, -575.8746f) }; - num4++; - span213[num4] = new GatheringLocation + span106[1] = new GatheringLocation { Position = new Vector3(133.7231f, 67.87361f, -567.9795f) }; - num4++; - span213[num4] = new GatheringLocation + span106[2] = new GatheringLocation { Position = new Vector3(109.7108f, 71.64627f, -562.0082f) }; @@ -19121,52 +16327,44 @@ public static class AssemblyGatheringLocationLoader reference159 = obj106; gatheringNodeGroup53.Nodes = list211; reference157 = gatheringNodeGroup53; - num++; - ref GatheringNodeGroup reference160 = ref span207[num]; + ref GatheringNodeGroup reference160 = ref span102[2]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num3 = 2; - List list214 = new List(num3); - CollectionsMarshal.SetCount(list214, num3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num2 = 0; - ref GatheringNode reference161 = ref span214[num2]; + num2 = 2; + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + Span span107 = CollectionsMarshal.AsSpan(list214); + ref GatheringNode reference161 = ref span107[0]; GatheringNode obj107 = new GatheringNode { DataId = 33988u }; - num4 = 1; - List list215 = new List(num4); - CollectionsMarshal.SetCount(list215, num4); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new GatheringLocation + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation { Position = new Vector3(53.25103f, 92.24804f, -643.022f) }; obj107.Locations = list215; reference161 = obj107; - num2++; - ref GatheringNode reference162 = ref span214[num2]; + ref GatheringNode reference162 = ref span107[1]; GatheringNode obj108 = new GatheringNode { DataId = 33989u }; - index2 = 3; - List list216 = new List(index2); - CollectionsMarshal.SetCount(list216, index2); - Span span216 = CollectionsMarshal.AsSpan(list216); - num4 = 0; - span216[num4] = new GatheringLocation + num3 = 3; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + Span span108 = CollectionsMarshal.AsSpan(list216); + span108[0] = new GatheringLocation { Position = new Vector3(59.02333f, 93.08621f, -646.8438f) }; - num4++; - span216[num4] = new GatheringLocation + span108[1] = new GatheringLocation { Position = new Vector3(8.818645f, 90.40326f, -640.8149f) }; - num4++; - span216[num4] = new GatheringLocation + span108[2] = new GatheringLocation { Position = new Vector3(41.15356f, 96.41193f, -676.5558f), MinimumAngle = -85, @@ -19182,16 +16380,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "liza"; + CollectionsMarshal.AsSpan(list217)[0] = "liza"; gatheringRoot19.Author = list217; - 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) + num = 1; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -19199,33 +16393,29 @@ public static class AssemblyGatheringLocationLoader num = 3; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - ref GatheringNodeGroup reference163 = ref span219[index]; + Span span109 = CollectionsMarshal.AsSpan(list219); + ref GatheringNodeGroup reference163 = ref span109[0]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - num3 = 0; - ref GatheringNode reference164 = ref span220[num3]; + Span span110 = CollectionsMarshal.AsSpan(list220); + ref GatheringNode reference164 = ref span110[0]; GatheringNode obj109 = new GatheringNode { DataId = 34002u }; - num4 = 2; - List list221 = new List(num4); - CollectionsMarshal.SetCount(list221, num4); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new GatheringLocation + num3 = 2; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + Span span111 = CollectionsMarshal.AsSpan(list221); + span111[0] = new GatheringLocation { Position = new Vector3(-278.0806f, 23.49333f, 457.1718f), MinimumAngle = 155, MaximumAngle = 360 }; - index2++; - span221[index2] = new GatheringLocation + span111[1] = new GatheringLocation { Position = new Vector3(-247.303f, 24.73875f, 431.0542f), MinimumAngle = 55, @@ -19233,18 +16423,15 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list221; reference164 = obj109; - num3++; - ref GatheringNode reference165 = ref span220[num3]; + ref GatheringNode reference165 = ref span110[1]; GatheringNode obj110 = new GatheringNode { DataId = 34001u }; - index2 = 1; - List list222 = new List(index2); - CollectionsMarshal.SetCount(list222, index2); - Span span222 = CollectionsMarshal.AsSpan(list222); - num4 = 0; - span222[num4] = new GatheringLocation + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = new GatheringLocation { Position = new Vector3(-231.6437f, 23.05049f, 438.9474f), MinimumAngle = 135, @@ -19254,25 +16441,21 @@ public static class AssemblyGatheringLocationLoader reference165 = obj110; gatheringNodeGroup55.Nodes = list220; reference163 = gatheringNodeGroup55; - index++; - ref GatheringNodeGroup reference166 = ref span219[index]; + ref GatheringNodeGroup reference166 = ref span109[1]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num3 = 2; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref GatheringNode reference167 = ref span223[num2]; + num2 = 2; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + Span span112 = CollectionsMarshal.AsSpan(list223); + ref GatheringNode reference167 = ref span112[0]; GatheringNode obj111 = new GatheringNode { DataId = 33999u }; - num4 = 1; - List list224 = new List(num4); - CollectionsMarshal.SetCount(list224, num4); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new GatheringLocation + num3 = 1; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation { Position = new Vector3(-224.5309f, 18.15879f, 302.212f), MinimumAngle = -20, @@ -19280,25 +16463,22 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list224; reference167 = obj111; - num2++; - ref GatheringNode reference168 = ref span223[num2]; + ref GatheringNode reference168 = ref span112[1]; GatheringNode obj112 = new GatheringNode { DataId = 34000u }; - index2 = 2; - List list225 = new List(index2); - CollectionsMarshal.SetCount(list225, index2); - Span span225 = CollectionsMarshal.AsSpan(list225); - num4 = 0; - span225[num4] = new GatheringLocation + num3 = 2; + List list225 = new List(num3); + CollectionsMarshal.SetCount(list225, num3); + Span span113 = CollectionsMarshal.AsSpan(list225); + span113[0] = new GatheringLocation { Position = new Vector3(-201.1902f, 17.46593f, 293.0554f), MinimumAngle = -20, MaximumAngle = 180 }; - num4++; - span225[num4] = new GatheringLocation + span113[1] = new GatheringLocation { Position = new Vector3(-206.8405f, 21.01518f, 327.3298f), MinimumAngle = 0, @@ -19308,32 +16488,28 @@ public static class AssemblyGatheringLocationLoader reference168 = obj112; gatheringNodeGroup56.Nodes = list223; reference166 = gatheringNodeGroup56; - index++; - ref GatheringNodeGroup reference169 = ref span219[index]; + ref GatheringNodeGroup reference169 = ref span109[2]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - num3 = 0; - ref GatheringNode reference170 = ref span226[num3]; + Span span114 = CollectionsMarshal.AsSpan(list226); + ref GatheringNode reference170 = ref span114[0]; GatheringNode obj113 = new GatheringNode { DataId = 33998u }; - num4 = 2; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new GatheringLocation + num3 = 2; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + Span span115 = CollectionsMarshal.AsSpan(list227); + span115[0] = new GatheringLocation { Position = new Vector3(-356.6845f, 25.77399f, 371.3325f), MinimumAngle = -245, MaximumAngle = -55 }; - index2++; - span227[index2] = new GatheringLocation + span115[1] = new GatheringLocation { Position = new Vector3(-378.934f, 21.82056f, 365.7343f), MinimumAngle = -160, @@ -19341,18 +16517,15 @@ public static class AssemblyGatheringLocationLoader }; obj113.Locations = list227; reference170 = obj113; - num3++; - ref GatheringNode reference171 = ref span226[num3]; + ref GatheringNode reference171 = ref span114[1]; GatheringNode obj114 = new GatheringNode { DataId = 33997u }; - index2 = 1; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num4 = 0; - span228[num4] = new GatheringLocation + num3 = 1; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = new GatheringLocation { Position = new Vector3(-365.8535f, 18.70865f, 339.1927f), MinimumAngle = -180, @@ -19365,73 +16538,61 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list219; AddLocation(842, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - index = 1; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - span229[num] = "liza"; + num = 1; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + CollectionsMarshal.AsSpan(list229)[0] = "liza"; gatheringRoot20.Author = list229; num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - Span span230 = CollectionsMarshal.AsSpan(list230); - index = 0; - span230[index] = new QuestStep(EInteractionType.None, null, null, 958) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.None, null, null, 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; gatheringRoot20.Steps = list230; - index = 3; - List list231 = new List(index); - CollectionsMarshal.SetCount(list231, index); - Span span231 = CollectionsMarshal.AsSpan(list231); - num = 0; - ref GatheringNodeGroup reference172 = ref span231[num]; + num = 3; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + Span span116 = CollectionsMarshal.AsSpan(list231); + ref GatheringNodeGroup reference172 = ref span116[0]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num3 = 2; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span232 = CollectionsMarshal.AsSpan(list232); - num2 = 0; - ref GatheringNode reference173 = ref span232[num2]; + num2 = 2; + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + Span span117 = CollectionsMarshal.AsSpan(list232); + ref GatheringNode reference173 = ref span117[0]; GatheringNode obj115 = new GatheringNode { DataId = 34004u }; - num4 = 3; - List list233 = new List(num4); - CollectionsMarshal.SetCount(list233, num4); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new GatheringLocation + num3 = 3; + List list233 = new List(num3); + CollectionsMarshal.SetCount(list233, num3); + Span span118 = CollectionsMarshal.AsSpan(list233); + span118[0] = new GatheringLocation { Position = new Vector3(121.8413f, -6.651628f, 246.5624f) }; - index2++; - span233[index2] = new GatheringLocation + span118[1] = new GatheringLocation { Position = new Vector3(118.1294f, -6.603673f, 242.6448f) }; - index2++; - span233[index2] = new GatheringLocation + span118[2] = new GatheringLocation { Position = new Vector3(104.2039f, -10.52542f, 266.5598f) }; obj115.Locations = list233; reference173 = obj115; - num2++; - ref GatheringNode reference174 = ref span232[num2]; + ref GatheringNode reference174 = ref span117[1]; GatheringNode obj116 = new GatheringNode { DataId = 34003u }; - index2 = 1; - List list234 = new List(index2); - CollectionsMarshal.SetCount(list234, index2); - Span span234 = CollectionsMarshal.AsSpan(list234); - num4 = 0; - span234[num4] = new GatheringLocation + num3 = 1; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + CollectionsMarshal.AsSpan(list234)[0] = new GatheringLocation { Position = new Vector3(98.86316f, -9.970013f, 257.6278f) }; @@ -19439,52 +16600,44 @@ public static class AssemblyGatheringLocationLoader reference174 = obj116; gatheringNodeGroup58.Nodes = list232; reference172 = gatheringNodeGroup58; - num++; - ref GatheringNodeGroup reference175 = ref span231[num]; + ref GatheringNodeGroup reference175 = ref span116[1]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - num3 = 0; - ref GatheringNode reference176 = ref span235[num3]; + Span span119 = CollectionsMarshal.AsSpan(list235); + ref GatheringNode reference176 = ref span119[0]; GatheringNode obj117 = new GatheringNode { DataId = 34005u }; - num4 = 1; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new GatheringLocation + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + CollectionsMarshal.AsSpan(list236)[0] = new GatheringLocation { Position = new Vector3(215.6167f, 1.599456f, 144.3346f) }; obj117.Locations = list236; reference176 = obj117; - num3++; - ref GatheringNode reference177 = ref span235[num3]; + ref GatheringNode reference177 = ref span119[1]; GatheringNode obj118 = new GatheringNode { DataId = 34006u }; - index2 = 3; - List list237 = new List(index2); - CollectionsMarshal.SetCount(list237, index2); - Span span237 = CollectionsMarshal.AsSpan(list237); - num4 = 0; - span237[num4] = new GatheringLocation + num3 = 3; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + Span span120 = CollectionsMarshal.AsSpan(list237); + span120[0] = new GatheringLocation { Position = new Vector3(215.9073f, 1.613284f, 136.584f) }; - num4++; - span237[num4] = new GatheringLocation + span120[1] = new GatheringLocation { Position = new Vector3(191.0582f, 2.43164f, 147.7836f) }; - num4++; - span237[num4] = new GatheringLocation + span120[2] = new GatheringLocation { Position = new Vector3(185.1617f, 2.402756f, 138.276f) }; @@ -19492,52 +16645,44 @@ public static class AssemblyGatheringLocationLoader reference177 = obj118; gatheringNodeGroup59.Nodes = list235; reference175 = gatheringNodeGroup59; - num++; - ref GatheringNodeGroup reference178 = ref span231[num]; + ref GatheringNodeGroup reference178 = ref span116[2]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num3 = 2; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref GatheringNode reference179 = ref span238[num2]; + num2 = 2; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + Span span121 = CollectionsMarshal.AsSpan(list238); + ref GatheringNode reference179 = ref span121[0]; GatheringNode obj119 = new GatheringNode { DataId = 34007u }; - num4 = 1; - List list239 = new List(num4); - CollectionsMarshal.SetCount(list239, num4); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new GatheringLocation + num3 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + CollectionsMarshal.AsSpan(list239)[0] = new GatheringLocation { Position = new Vector3(264.295f, -11.52659f, 306.4464f) }; obj119.Locations = list239; reference179 = obj119; - num2++; - ref GatheringNode reference180 = ref span238[num2]; + ref GatheringNode reference180 = ref span121[1]; GatheringNode obj120 = new GatheringNode { DataId = 34008u }; - index2 = 3; - List list240 = new List(index2); - CollectionsMarshal.SetCount(list240, index2); - Span span240 = CollectionsMarshal.AsSpan(list240); - num4 = 0; - span240[num4] = new GatheringLocation + num3 = 3; + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + Span span122 = CollectionsMarshal.AsSpan(list240); + span122[0] = new GatheringLocation { Position = new Vector3(280.1551f, -11.53278f, 301.5915f) }; - num4++; - span240[num4] = new GatheringLocation + span122[1] = new GatheringLocation { Position = new Vector3(257.884f, -12.02824f, 296.5428f) }; - num4++; - span240[num4] = new GatheringLocation + span122[2] = new GatheringLocation { Position = new Vector3(271.8952f, -12.7945f, 320.4683f) }; @@ -19551,16 +16696,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "liza"; + CollectionsMarshal.AsSpan(list241)[0] = "liza"; gatheringRoot21.Author = list241; - 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) + num = 1; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.None, null, null, 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; @@ -19568,48 +16709,41 @@ public static class AssemblyGatheringLocationLoader num = 3; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span243 = CollectionsMarshal.AsSpan(list243); - index = 0; - ref GatheringNodeGroup reference181 = ref span243[index]; + Span span123 = CollectionsMarshal.AsSpan(list243); + ref GatheringNodeGroup reference181 = ref span123[0]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - num3 = 0; - ref GatheringNode reference182 = ref span244[num3]; + Span span124 = CollectionsMarshal.AsSpan(list244); + ref GatheringNode reference182 = ref span124[0]; GatheringNode obj121 = new GatheringNode { DataId = 34020u }; - num4 = 1; - List list245 = new List(num4); - CollectionsMarshal.SetCount(list245, num4); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new GatheringLocation + num3 = 1; + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation { Position = new Vector3(44.78436f, 7.229512f, 98.57001f) }; obj121.Locations = list245; reference182 = obj121; - num3++; - ref GatheringNode reference183 = ref span244[num3]; + ref GatheringNode reference183 = ref span124[1]; GatheringNode obj122 = new GatheringNode { DataId = 34021u }; - index2 = 2; - List list246 = new List(index2); - CollectionsMarshal.SetCount(list246, index2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num4 = 0; - span246[num4] = new GatheringLocation + num3 = 2; + List list246 = new List(num3); + CollectionsMarshal.SetCount(list246, num3); + Span span125 = CollectionsMarshal.AsSpan(list246); + span125[0] = new GatheringLocation { Position = new Vector3(46.74728f, 7.877012f, 88.79111f) }; - num4++; - span246[num4] = new GatheringLocation + span125[1] = new GatheringLocation { Position = new Vector3(34.40783f, 3.908499f, 67.13975f) }; @@ -19617,47 +16751,40 @@ public static class AssemblyGatheringLocationLoader reference183 = obj122; gatheringNodeGroup61.Nodes = list244; reference181 = gatheringNodeGroup61; - index++; - ref GatheringNodeGroup reference184 = ref span243[index]; + ref GatheringNodeGroup reference184 = ref span123[1]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num3 = 2; - List list247 = new List(num3); - CollectionsMarshal.SetCount(list247, num3); - Span span247 = CollectionsMarshal.AsSpan(list247); - num2 = 0; - ref GatheringNode reference185 = ref span247[num2]; + num2 = 2; + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + Span span126 = CollectionsMarshal.AsSpan(list247); + ref GatheringNode reference185 = ref span126[0]; GatheringNode obj123 = new GatheringNode { DataId = 34023u }; - num4 = 2; - List list248 = new List(num4); - CollectionsMarshal.SetCount(list248, num4); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new GatheringLocation + num3 = 2; + List list248 = new List(num3); + CollectionsMarshal.SetCount(list248, num3); + Span span127 = CollectionsMarshal.AsSpan(list248); + span127[0] = new GatheringLocation { Position = new Vector3(-91.27831f, -8.489767f, 69.08894f) }; - index2++; - span248[index2] = new GatheringLocation + span127[1] = new GatheringLocation { Position = new Vector3(-117.3572f, -11.70367f, 38.49854f) }; obj123.Locations = list248; reference185 = obj123; - num2++; - ref GatheringNode reference186 = ref span247[num2]; + ref GatheringNode reference186 = ref span126[1]; GatheringNode obj124 = new GatheringNode { DataId = 34022u }; - index2 = 1; - List list249 = new List(index2); - CollectionsMarshal.SetCount(list249, index2); - Span span249 = CollectionsMarshal.AsSpan(list249); - num4 = 0; - span249[num4] = new GatheringLocation + num3 = 1; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + CollectionsMarshal.AsSpan(list249)[0] = new GatheringLocation { Position = new Vector3(-124.86f, -11.29384f, 89.80068f) }; @@ -19665,47 +16792,40 @@ public static class AssemblyGatheringLocationLoader reference186 = obj124; gatheringNodeGroup62.Nodes = list247; reference184 = gatheringNodeGroup62; - index++; - ref GatheringNodeGroup reference187 = ref span243[index]; + ref GatheringNodeGroup reference187 = ref span123[2]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - num3 = 0; - ref GatheringNode reference188 = ref span250[num3]; + Span span128 = CollectionsMarshal.AsSpan(list250); + ref GatheringNode reference188 = ref span128[0]; GatheringNode obj125 = new GatheringNode { DataId = 34019u }; - num4 = 2; - List list251 = new List(num4); - CollectionsMarshal.SetCount(list251, num4); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new GatheringLocation + num3 = 2; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + Span span129 = CollectionsMarshal.AsSpan(list251); + span129[0] = new GatheringLocation { Position = new Vector3(-13.48685f, 4.629431f, 208.5452f) }; - index2++; - span251[index2] = new GatheringLocation + span129[1] = new GatheringLocation { Position = new Vector3(-65.74567f, -2.738637f, 195.961f) }; obj125.Locations = list251; reference188 = obj125; - num3++; - ref GatheringNode reference189 = ref span250[num3]; + ref GatheringNode reference189 = ref span128[1]; GatheringNode obj126 = new GatheringNode { DataId = 34018u }; - index2 = 1; - List list252 = new List(index2); - CollectionsMarshal.SetCount(list252, index2); - Span span252 = CollectionsMarshal.AsSpan(list252); - num4 = 0; - span252[num4] = new GatheringLocation + num3 = 1; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + CollectionsMarshal.AsSpan(list252)[0] = new GatheringLocation { Position = new Vector3(-41.94958f, -0.697382f, 173.7239f) }; @@ -19716,44 +16836,35 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list243; AddLocation(846, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - index = 1; - List list253 = new List(index); - CollectionsMarshal.SetCount(list253, index); - Span span253 = CollectionsMarshal.AsSpan(list253); - num = 0; - span253[num] = "liza"; + num = 1; + List list253 = new List(num); + CollectionsMarshal.SetCount(list253, num); + CollectionsMarshal.AsSpan(list253)[0] = "liza"; gatheringRoot22.Author = list253; num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = new QuestStep(EInteractionType.None, null, null, 956); + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.None, null, null, 956); gatheringRoot22.Steps = list254; gatheringRoot22.FlyBetweenNodes = false; - index = 8; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref GatheringNodeGroup reference190 = ref span255[num]; + num = 8; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span130 = CollectionsMarshal.AsSpan(list255); + ref GatheringNodeGroup reference190 = ref span130[0]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num3 = 1; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span256 = CollectionsMarshal.AsSpan(list256); - num2 = 0; - ref GatheringNode reference191 = ref span256[num2]; + num2 = 1; + List list256 = new List(num2); + CollectionsMarshal.SetCount(list256, num2); + ref GatheringNode reference191 = ref CollectionsMarshal.AsSpan(list256)[0]; GatheringNode obj127 = new GatheringNode { DataId = 34281u }; - num4 = 1; - List list257 = new List(num4); - CollectionsMarshal.SetCount(list257, num4); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new GatheringLocation + num3 = 1; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + CollectionsMarshal.AsSpan(list257)[0] = new GatheringLocation { Position = new Vector3(-510.2663f, -20.72923f, -119.9257f), MinimumAngle = -120, @@ -19763,25 +16874,20 @@ public static class AssemblyGatheringLocationLoader reference191 = obj127; gatheringNodeGroup64.Nodes = list256; reference190 = gatheringNodeGroup64; - num++; - ref GatheringNodeGroup reference192 = ref span255[num]; + ref GatheringNodeGroup reference192 = ref span130[1]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - num3 = 0; - ref GatheringNode reference193 = ref span258[num3]; + ref GatheringNode reference193 = ref CollectionsMarshal.AsSpan(list258)[0]; GatheringNode obj128 = new GatheringNode { DataId = 34283u }; - index2 = 1; - List list259 = new List(index2); - CollectionsMarshal.SetCount(list259, index2); - Span span259 = CollectionsMarshal.AsSpan(list259); - num4 = 0; - span259[num4] = new GatheringLocation + num3 = 1; + List list259 = new List(num3); + CollectionsMarshal.SetCount(list259, num3); + CollectionsMarshal.AsSpan(list259)[0] = new GatheringLocation { Position = new Vector3(-502.4525f, -18.55583f, -139.683f), MinimumAngle = -95, @@ -19793,25 +16899,20 @@ public static class AssemblyGatheringLocationLoader reference193 = obj128; gatheringNodeGroup65.Nodes = list258; reference192 = gatheringNodeGroup65; - num++; - ref GatheringNodeGroup reference194 = ref span255[num]; + ref GatheringNodeGroup reference194 = ref span130[2]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num3 = 1; - List list260 = new List(num3); - CollectionsMarshal.SetCount(list260, num3); - Span span260 = CollectionsMarshal.AsSpan(list260); - num2 = 0; - ref GatheringNode reference195 = ref span260[num2]; + num2 = 1; + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + ref GatheringNode reference195 = ref CollectionsMarshal.AsSpan(list260)[0]; GatheringNode obj129 = new GatheringNode { DataId = 34284u }; - num4 = 1; - List list261 = new List(num4); - CollectionsMarshal.SetCount(list261, num4); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new GatheringLocation + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + CollectionsMarshal.AsSpan(list261)[0] = new GatheringLocation { Position = new Vector3(-499.3535f, -18.75164f, -141.9256f), MinimumAngle = -75, @@ -19823,25 +16924,20 @@ public static class AssemblyGatheringLocationLoader reference195 = obj129; gatheringNodeGroup66.Nodes = list260; reference194 = gatheringNodeGroup66; - num++; - ref GatheringNodeGroup reference196 = ref span255[num]; + ref GatheringNodeGroup reference196 = ref span130[3]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - num3 = 0; - ref GatheringNode reference197 = ref span262[num3]; + ref GatheringNode reference197 = ref CollectionsMarshal.AsSpan(list262)[0]; GatheringNode obj130 = new GatheringNode { DataId = 34285u }; - index2 = 1; - List list263 = new List(index2); - CollectionsMarshal.SetCount(list263, index2); - Span span263 = CollectionsMarshal.AsSpan(list263); - num4 = 0; - span263[num4] = new GatheringLocation + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = new GatheringLocation { Position = new Vector3(-495.1168f, -18.65139f, -142.5636f), MinimumAngle = -85, @@ -19851,25 +16947,20 @@ public static class AssemblyGatheringLocationLoader reference197 = obj130; gatheringNodeGroup67.Nodes = list262; reference196 = gatheringNodeGroup67; - num++; - ref GatheringNodeGroup reference198 = ref span255[num]; + ref GatheringNodeGroup reference198 = ref span130[4]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num3 = 1; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - Span span264 = CollectionsMarshal.AsSpan(list264); - num2 = 0; - ref GatheringNode reference199 = ref span264[num2]; + num2 = 1; + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + ref GatheringNode reference199 = ref CollectionsMarshal.AsSpan(list264)[0]; GatheringNode obj131 = new GatheringNode { DataId = 34286u }; - num4 = 1; - List list265 = new List(num4); - CollectionsMarshal.SetCount(list265, num4); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new GatheringLocation + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + CollectionsMarshal.AsSpan(list265)[0] = new GatheringLocation { Position = new Vector3(-491.4826f, -19.44574f, -144.2088f), MinimumAngle = -105, @@ -19879,25 +16970,20 @@ public static class AssemblyGatheringLocationLoader reference199 = obj131; gatheringNodeGroup68.Nodes = list264; reference198 = gatheringNodeGroup68; - num++; - ref GatheringNodeGroup reference200 = ref span255[num]; + ref GatheringNodeGroup reference200 = ref span130[5]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - num3 = 0; - ref GatheringNode reference201 = ref span266[num3]; + ref GatheringNode reference201 = ref CollectionsMarshal.AsSpan(list266)[0]; GatheringNode obj132 = new GatheringNode { DataId = 34287u }; - index2 = 1; - List list267 = new List(index2); - CollectionsMarshal.SetCount(list267, index2); - Span span267 = CollectionsMarshal.AsSpan(list267); - num4 = 0; - span267[num4] = new GatheringLocation + num3 = 1; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + CollectionsMarshal.AsSpan(list267)[0] = new GatheringLocation { Position = new Vector3(-488.8665f, -19.70717f, -147.403f), MinimumAngle = 230, @@ -19907,25 +16993,20 @@ public static class AssemblyGatheringLocationLoader reference201 = obj132; gatheringNodeGroup69.Nodes = list266; reference200 = gatheringNodeGroup69; - num++; - ref GatheringNodeGroup reference202 = ref span255[num]; + ref GatheringNodeGroup reference202 = ref span130[6]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num3 = 1; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span268 = CollectionsMarshal.AsSpan(list268); - num2 = 0; - ref GatheringNode reference203 = ref span268[num2]; + num2 = 1; + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + ref GatheringNode reference203 = ref CollectionsMarshal.AsSpan(list268)[0]; GatheringNode obj133 = new GatheringNode { DataId = 34289u }; - num4 = 1; - List list269 = new List(num4); - CollectionsMarshal.SetCount(list269, num4); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new GatheringLocation + num3 = 1; + List list269 = new List(num3); + CollectionsMarshal.SetCount(list269, num3); + CollectionsMarshal.AsSpan(list269)[0] = new GatheringLocation { Position = new Vector3(-489.1829f, -19.91622f, -153.7781f), MinimumAngle = 200, @@ -19935,25 +17016,20 @@ public static class AssemblyGatheringLocationLoader reference203 = obj133; gatheringNodeGroup70.Nodes = list268; reference202 = gatheringNodeGroup70; - num++; - ref GatheringNodeGroup reference204 = ref span255[num]; + ref GatheringNodeGroup reference204 = ref span130[7]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num3 = 0; - ref GatheringNode reference205 = ref span270[num3]; + ref GatheringNode reference205 = ref CollectionsMarshal.AsSpan(list270)[0]; GatheringNode obj134 = new GatheringNode { DataId = 34291u }; - index2 = 1; - List list271 = new List(index2); - CollectionsMarshal.SetCount(list271, index2); - Span span271 = CollectionsMarshal.AsSpan(list271); - num4 = 0; - span271[num4] = new GatheringLocation + num3 = 1; + List list271 = new List(num3); + CollectionsMarshal.SetCount(list271, num3); + CollectionsMarshal.AsSpan(list271)[0] = new GatheringLocation { Position = new Vector3(-490.1324f, -18.06493f, -164.4281f), MinimumAngle = 210, @@ -19973,16 +17049,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; @@ -19990,26 +17062,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 34337u }; - int num4 = 1; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index2 = 0; - span5[index2] = new GatheringLocation + int num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation { Position = new Vector3(531.9888f, 133.5777f, 288.7549f), MinimumAngle = 190, @@ -20017,18 +17085,15 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 34338u }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation { Position = new Vector3(562.9013f, 134.3907f, 254.6339f), MinimumAngle = -75, @@ -20038,25 +17103,21 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span3 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span3[0]; GatheringNode obj3 = new GatheringNode { DataId = 34339u }; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new GatheringLocation + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation { Position = new Vector3(685.4268f, 130.6815f, 267.9914f), MinimumAngle = -75, @@ -20064,18 +17125,15 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span3[1]; GatheringNode obj4 = new GatheringNode { DataId = 34340u }; - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(720.4895f, 139.9972f, 239.97f), MinimumAngle = -30, @@ -20085,25 +17143,21 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span4 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span4[0]; GatheringNode obj5 = new GatheringNode { DataId = 34335u }; - num4 = 1; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new GatheringLocation + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = new GatheringLocation { Position = new Vector3(629.7982f, 144.0473f, 418.6548f), MinimumAngle = 120, @@ -20111,18 +17165,15 @@ public static class AssemblyGatheringLocationLoader }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span4[1]; GatheringNode obj6 = new GatheringNode { DataId = 34336u }; - index2 = 1; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(712.2249f, 149.0579f, 390.7473f), MinimumAngle = 35, @@ -20135,46 +17186,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(902, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "plogon_enjoyer"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "plogon_enjoyer"; gatheringRoot2.Author = list13; num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = new QuestStep(EInteractionType.None, null, null, 960) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot2.Steps = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref GatheringNodeGroup reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref GatheringNodeGroup reference10 = ref span5[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num3 = 1; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num2 = 0; - ref GatheringNode reference11 = ref span16[num2]; + num2 = 1; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + ref GatheringNode reference11 = ref CollectionsMarshal.AsSpan(list16)[0]; GatheringNode obj7 = new GatheringNode { DataId = 34364u }; - num4 = 1; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new GatheringLocation + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + CollectionsMarshal.AsSpan(list17)[0] = new GatheringLocation { Position = new Vector3(-470.5523f, 79.49631f, 259.4856f), MinimumAngle = 0, @@ -20184,25 +17226,20 @@ public static class AssemblyGatheringLocationLoader reference11 = obj7; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference12 = ref span15[num]; + ref GatheringNodeGroup reference12 = ref span5[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - ref GatheringNode reference13 = ref span18[num3]; + ref GatheringNode reference13 = ref CollectionsMarshal.AsSpan(list18)[0]; GatheringNode obj8 = new GatheringNode { DataId = 34365u }; - index2 = 1; - List list19 = new List(index2); - CollectionsMarshal.SetCount(list19, index2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num4 = 0; - span19[num4] = new GatheringLocation + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + CollectionsMarshal.AsSpan(list19)[0] = new GatheringLocation { Position = new Vector3(-493.5432f, 73.7095f, 288.547f), MinimumAngle = 15, @@ -20212,25 +17249,20 @@ public static class AssemblyGatheringLocationLoader reference13 = obj8; gatheringNodeGroup5.Nodes = list18; reference12 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference14 = ref span15[num]; + ref GatheringNodeGroup reference14 = ref span5[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num3 = 1; - List list20 = new List(num3); - CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref GatheringNode reference15 = ref span20[num2]; + num2 = 1; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + ref GatheringNode reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; GatheringNode obj9 = new GatheringNode { DataId = 34366u }; - num4 = 1; - List list21 = new List(num4); - CollectionsMarshal.SetCount(list21, num4); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new GatheringLocation + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation { Position = new Vector3(-478.8098f, 76.21393f, 280.0947f), MinimumAngle = 50, @@ -20246,16 +17278,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; gatheringRoot3.Author = list22; - 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) + num = 1; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -20263,26 +17291,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - ref GatheringNodeGroup reference16 = ref span24[index]; + Span span6 = CollectionsMarshal.AsSpan(list24); + ref GatheringNodeGroup reference16 = ref span6[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - ref GatheringNode reference17 = ref span25[num3]; + ref GatheringNode reference17 = ref CollectionsMarshal.AsSpan(list25)[0]; GatheringNode obj10 = new GatheringNode { DataId = 34369u }; - index2 = 1; - List list26 = new List(index2); - CollectionsMarshal.SetCount(list26, index2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num4 = 0; - span26[num4] = new GatheringLocation + num3 = 1; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + CollectionsMarshal.AsSpan(list26)[0] = new GatheringLocation { Position = new Vector3(-381.6697f, 246.9727f, -221.478f), MinimumAngle = 0, @@ -20292,25 +17315,20 @@ public static class AssemblyGatheringLocationLoader reference17 = obj10; gatheringNodeGroup7.Nodes = list25; reference16 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference18 = ref span24[index]; + ref GatheringNodeGroup reference18 = ref span6[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 1; - List list27 = new List(num3); - CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - num2 = 0; - ref GatheringNode reference19 = ref span27[num2]; + num2 = 1; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + ref GatheringNode reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; GatheringNode obj11 = new GatheringNode { DataId = 34367u }; - num4 = 1; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new GatheringLocation + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = new GatheringLocation { Position = new Vector3(-384.7752f, 246.2142f, -220.8562f) }; @@ -20318,25 +17336,20 @@ public static class AssemblyGatheringLocationLoader reference19 = obj11; gatheringNodeGroup8.Nodes = list27; reference18 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference20 = ref span24[index]; + ref GatheringNodeGroup reference20 = ref span6[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - ref GatheringNode reference21 = ref span29[num3]; + ref GatheringNode reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; GatheringNode obj12 = new GatheringNode { DataId = 34368u }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation { Position = new Vector3(-396.0184f, 245.9229f, -236.488f) }; @@ -20347,46 +17360,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list24; AddLocation(906, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - span31[num] = "plogon_enjoyer"; + num = 1; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + CollectionsMarshal.AsSpan(list31)[0] = "plogon_enjoyer"; gatheringRoot4.Author = list31; num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = new QuestStep(EInteractionType.None, null, null, 960) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot4.Steps = list32; - index = 3; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref GatheringNodeGroup reference22 = ref span33[num]; + num = 3; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span7 = CollectionsMarshal.AsSpan(list33); + ref GatheringNodeGroup reference22 = ref span7[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - num3 = 1; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref GatheringNode reference23 = ref span34[num2]; + num2 = 1; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + ref GatheringNode reference23 = ref CollectionsMarshal.AsSpan(list34)[0]; GatheringNode obj13 = new GatheringNode { DataId = 34370u }; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new GatheringLocation + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = new GatheringLocation { Position = new Vector3(-614.3087f, 81.96295f, 262.5681f), MinimumAngle = -150, @@ -20396,25 +17400,20 @@ public static class AssemblyGatheringLocationLoader reference23 = obj13; gatheringNodeGroup10.Nodes = list34; reference22 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference24 = ref span33[num]; + ref GatheringNodeGroup reference24 = ref span7[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num3 = 0; - ref GatheringNode reference25 = ref span36[num3]; + ref GatheringNode reference25 = ref CollectionsMarshal.AsSpan(list36)[0]; GatheringNode obj14 = new GatheringNode { DataId = 34371u }; - index2 = 1; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num4 = 0; - span37[num4] = new GatheringLocation + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = new GatheringLocation { Position = new Vector3(-624.2021f, 79.12945f, 278.3768f) }; @@ -20422,25 +17421,20 @@ public static class AssemblyGatheringLocationLoader reference25 = obj14; gatheringNodeGroup11.Nodes = list36; reference24 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference26 = ref span33[num]; + ref GatheringNodeGroup reference26 = ref span7[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - num3 = 1; - List list38 = new List(num3); - CollectionsMarshal.SetCount(list38, num3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num2 = 0; - ref GatheringNode reference27 = ref span38[num2]; + num2 = 1; + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + ref GatheringNode reference27 = ref CollectionsMarshal.AsSpan(list38)[0]; GatheringNode obj15 = new GatheringNode { DataId = 34372u }; - num4 = 1; - List list39 = new List(num4); - CollectionsMarshal.SetCount(list39, num4); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new GatheringLocation + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + CollectionsMarshal.AsSpan(list39)[0] = new GatheringLocation { Position = new Vector3(-639.8513f, 78.34773f, 274.0034f), MinimumAngle = -60, @@ -20456,16 +17450,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; gatheringRoot5.Author = list40; - 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) + num = 1; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -20473,26 +17463,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - ref GatheringNodeGroup reference28 = ref span42[index]; + Span span8 = CollectionsMarshal.AsSpan(list42); + ref GatheringNodeGroup reference28 = ref span8[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - ref GatheringNode reference29 = ref span43[num3]; + ref GatheringNode reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; GatheringNode obj16 = new GatheringNode { DataId = 34375u }; - index2 = 1; - List list44 = new List(index2); - CollectionsMarshal.SetCount(list44, index2); - Span span44 = CollectionsMarshal.AsSpan(list44); - num4 = 0; - span44[num4] = new GatheringLocation + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = new GatheringLocation { Position = new Vector3(-408.5904f, 259.0197f, -361.8408f), MinimumAngle = -120, @@ -20502,25 +17487,20 @@ public static class AssemblyGatheringLocationLoader reference29 = obj16; gatheringNodeGroup13.Nodes = list43; reference28 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference30 = ref span42[index]; + ref GatheringNodeGroup reference30 = ref span8[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref GatheringNode reference31 = ref span45[num2]; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + ref GatheringNode reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; GatheringNode obj17 = new GatheringNode { DataId = 34374u }; - num4 = 1; - List list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new GatheringLocation + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = new GatheringLocation { Position = new Vector3(-410.1218f, 261.0269f, -364.9317f), MinimumAngle = -120, @@ -20530,25 +17510,20 @@ public static class AssemblyGatheringLocationLoader reference31 = obj17; gatheringNodeGroup14.Nodes = list45; reference30 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference32 = ref span42[index]; + ref GatheringNodeGroup reference32 = ref span8[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - ref GatheringNode reference33 = ref span47[num3]; + ref GatheringNode reference33 = ref CollectionsMarshal.AsSpan(list47)[0]; GatheringNode obj18 = new GatheringNode { DataId = 34373u }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new GatheringLocation + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheringLocation { Position = new Vector3(-421.3381f, 263.4496f, -366.897f), MinimumAngle = -105, @@ -20561,46 +17536,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list42; AddLocation(908, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - span49[num] = "plogon_enjoyer"; + num = 1; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + CollectionsMarshal.AsSpan(list49)[0] = "plogon_enjoyer"; gatheringRoot6.Author = list49; num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = new QuestStep(EInteractionType.None, null, null, 960) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; gatheringRoot6.Steps = list50; - index = 3; - List list51 = new List(index); - CollectionsMarshal.SetCount(list51, index); - Span span51 = CollectionsMarshal.AsSpan(list51); - num = 0; - ref GatheringNodeGroup reference34 = ref span51[num]; + num = 3; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span9 = CollectionsMarshal.AsSpan(list51); + ref GatheringNodeGroup reference34 = ref span9[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - num3 = 1; - List list52 = new List(num3); - CollectionsMarshal.SetCount(list52, num3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref GatheringNode reference35 = ref span52[num2]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref GatheringNode reference35 = ref CollectionsMarshal.AsSpan(list52)[0]; GatheringNode obj19 = new GatheringNode { DataId = 34376u }; - num4 = 1; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new GatheringLocation + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new GatheringLocation { Position = new Vector3(-586.0029f, 84.39367f, 568.1448f), MinimumAngle = -60, @@ -20612,25 +17578,20 @@ public static class AssemblyGatheringLocationLoader reference35 = obj19; gatheringNodeGroup16.Nodes = list52; reference34 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference36 = ref span51[num]; + ref GatheringNodeGroup reference36 = ref span9[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - ref GatheringNode reference37 = ref span54[num3]; + ref GatheringNode reference37 = ref CollectionsMarshal.AsSpan(list54)[0]; GatheringNode obj20 = new GatheringNode { DataId = 34377u }; - index2 = 1; - List list55 = new List(index2); - CollectionsMarshal.SetCount(list55, index2); - Span span55 = CollectionsMarshal.AsSpan(list55); - num4 = 0; - span55[num4] = new GatheringLocation + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = new GatheringLocation { Position = new Vector3(-578.2748f, 86.34826f, 567.2876f), MinimumAngle = -80, @@ -20640,25 +17601,20 @@ public static class AssemblyGatheringLocationLoader reference37 = obj20; gatheringNodeGroup17.Nodes = list54; reference36 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference38 = ref span51[num]; + ref GatheringNodeGroup reference38 = ref span9[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - num3 = 1; - List list56 = new List(num3); - CollectionsMarshal.SetCount(list56, num3); - Span span56 = CollectionsMarshal.AsSpan(list56); - num2 = 0; - ref GatheringNode reference39 = ref span56[num2]; + num2 = 1; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + ref GatheringNode reference39 = ref CollectionsMarshal.AsSpan(list56)[0]; GatheringNode obj21 = new GatheringNode { DataId = 34378u }; - num4 = 1; - List list57 = new List(num4); - CollectionsMarshal.SetCount(list57, num4); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new GatheringLocation + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = new GatheringLocation { Position = new Vector3(-600.2446f, 86.01588f, 557.4477f), MinimumAngle = -35, @@ -20674,16 +17630,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list58)[0] = "plogon_enjoyer"; gatheringRoot7.Author = list58; - 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) + num = 1; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; @@ -20691,26 +17643,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - ref GatheringNodeGroup reference40 = ref span60[index]; + Span span10 = CollectionsMarshal.AsSpan(list60); + ref GatheringNodeGroup reference40 = ref span10[0]; GatheringNodeGroup gatheringNodeGroup19 = new GatheringNodeGroup(); num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - ref GatheringNode reference41 = ref span61[num3]; + ref GatheringNode reference41 = ref CollectionsMarshal.AsSpan(list61)[0]; GatheringNode obj22 = new GatheringNode { DataId = 34379u }; - index2 = 1; - List list62 = new List(index2); - CollectionsMarshal.SetCount(list62, index2); - Span span62 = CollectionsMarshal.AsSpan(list62); - num4 = 0; - span62[num4] = new GatheringLocation + num3 = 1; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + CollectionsMarshal.AsSpan(list62)[0] = new GatheringLocation { Position = new Vector3(454.8535f, 307.5555f, -590.8547f), MinimumAngle = -105, @@ -20722,25 +17669,20 @@ public static class AssemblyGatheringLocationLoader reference41 = obj22; gatheringNodeGroup19.Nodes = list61; reference40 = gatheringNodeGroup19; - index++; - ref GatheringNodeGroup reference42 = ref span60[index]; + ref GatheringNodeGroup reference42 = ref span10[1]; GatheringNodeGroup gatheringNodeGroup20 = new GatheringNodeGroup(); - num3 = 1; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref GatheringNode reference43 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref GatheringNode reference43 = ref CollectionsMarshal.AsSpan(list63)[0]; GatheringNode obj23 = new GatheringNode { DataId = 34380u }; - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new GatheringLocation + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new GatheringLocation { Position = new Vector3(447.787f, 300.8405f, -597.8972f), MinimumAngle = 45, @@ -20750,25 +17692,20 @@ public static class AssemblyGatheringLocationLoader reference43 = obj23; gatheringNodeGroup20.Nodes = list63; reference42 = gatheringNodeGroup20; - index++; - ref GatheringNodeGroup reference44 = ref span60[index]; + ref GatheringNodeGroup reference44 = ref span10[2]; GatheringNodeGroup gatheringNodeGroup21 = new GatheringNodeGroup(); num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - num3 = 0; - ref GatheringNode reference45 = ref span65[num3]; + ref GatheringNode reference45 = ref CollectionsMarshal.AsSpan(list65)[0]; GatheringNode obj24 = new GatheringNode { DataId = 34381u }; - index2 = 1; - List list66 = new List(index2); - CollectionsMarshal.SetCount(list66, index2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num4 = 0; - span66[num4] = new GatheringLocation + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = new GatheringLocation { Position = new Vector3(448.707f, 305.0525f, -591.1053f), MinimumAngle = 30, @@ -20781,46 +17718,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot7.Groups = list60; AddLocation(910, gatheringRoot7); GatheringRoot gatheringRoot8 = new GatheringRoot(); - index = 1; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - span67[num] = "liza"; + num = 1; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + CollectionsMarshal.AsSpan(list67)[0] = "liza"; gatheringRoot8.Author = list67; num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = new QuestStep(EInteractionType.None, null, null, 398) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; gatheringRoot8.Steps = list68; - index = 3; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref GatheringNodeGroup reference46 = ref span69[num]; + num = 3; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span11 = CollectionsMarshal.AsSpan(list69); + ref GatheringNodeGroup reference46 = ref span11[0]; GatheringNodeGroup gatheringNodeGroup22 = new GatheringNodeGroup(); - num3 = 1; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref GatheringNode reference47 = ref span70[num2]; + num2 = 1; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + ref GatheringNode reference47 = ref CollectionsMarshal.AsSpan(list70)[0]; GatheringNode obj25 = new GatheringNode { DataId = 34382u }; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new GatheringLocation + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new GatheringLocation { Position = new Vector3(-528.8412f, -89.70924f, 458.582f), MinimumAngle = -10, @@ -20832,25 +17760,20 @@ public static class AssemblyGatheringLocationLoader reference47 = obj25; gatheringNodeGroup22.Nodes = list70; reference46 = gatheringNodeGroup22; - num++; - ref GatheringNodeGroup reference48 = ref span69[num]; + ref GatheringNodeGroup reference48 = ref span11[1]; GatheringNodeGroup gatheringNodeGroup23 = new GatheringNodeGroup(); num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - ref GatheringNode reference49 = ref span72[num3]; + ref GatheringNode reference49 = ref CollectionsMarshal.AsSpan(list72)[0]; GatheringNode obj26 = new GatheringNode { DataId = 34383u }; - index2 = 1; - List list73 = new List(index2); - CollectionsMarshal.SetCount(list73, index2); - Span span73 = CollectionsMarshal.AsSpan(list73); - num4 = 0; - span73[num4] = new GatheringLocation + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = new GatheringLocation { Position = new Vector3(-636.4533f, -100.1258f, 484.7436f), MinimumAngle = -75, @@ -20860,25 +17783,20 @@ public static class AssemblyGatheringLocationLoader reference49 = obj26; gatheringNodeGroup23.Nodes = list72; reference48 = gatheringNodeGroup23; - num++; - ref GatheringNodeGroup reference50 = ref span69[num]; + ref GatheringNodeGroup reference50 = ref span11[2]; GatheringNodeGroup gatheringNodeGroup24 = new GatheringNodeGroup(); - num3 = 1; - List list74 = new List(num3); - CollectionsMarshal.SetCount(list74, num3); - Span span74 = CollectionsMarshal.AsSpan(list74); - num2 = 0; - ref GatheringNode reference51 = ref span74[num2]; + num2 = 1; + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + ref GatheringNode reference51 = ref CollectionsMarshal.AsSpan(list74)[0]; GatheringNode obj27 = new GatheringNode { DataId = 34384u }; - num4 = 1; - List list75 = new List(num4); - CollectionsMarshal.SetCount(list75, num4); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new GatheringLocation + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = new GatheringLocation { Position = new Vector3(-589.4542f, -100.4852f, 528.1926f), MinimumAngle = -25, @@ -20894,16 +17812,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list76)[0] = "plogon_enjoyer"; gatheringRoot9.Author = list76; - 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) + num = 1; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; @@ -20911,26 +17825,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - ref GatheringNodeGroup reference52 = ref span78[index]; + Span span12 = CollectionsMarshal.AsSpan(list78); + ref GatheringNodeGroup reference52 = ref span12[0]; GatheringNodeGroup gatheringNodeGroup25 = new GatheringNodeGroup(); num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - ref GatheringNode reference53 = ref span79[num3]; + ref GatheringNode reference53 = ref CollectionsMarshal.AsSpan(list79)[0]; GatheringNode obj28 = new GatheringNode { DataId = 34385u }; - index2 = 1; - List list80 = new List(index2); - CollectionsMarshal.SetCount(list80, index2); - Span span80 = CollectionsMarshal.AsSpan(list80); - num4 = 0; - span80[num4] = new GatheringLocation + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = new GatheringLocation { Position = new Vector3(27.77994f, 73.57088f, 695.2364f), MinimumAngle = 0, @@ -20940,25 +17849,20 @@ public static class AssemblyGatheringLocationLoader reference53 = obj28; gatheringNodeGroup25.Nodes = list79; reference52 = gatheringNodeGroup25; - index++; - ref GatheringNodeGroup reference54 = ref span78[index]; + ref GatheringNodeGroup reference54 = ref span12[1]; GatheringNodeGroup gatheringNodeGroup26 = new GatheringNodeGroup(); - num3 = 1; - List list81 = new List(num3); - CollectionsMarshal.SetCount(list81, num3); - Span span81 = CollectionsMarshal.AsSpan(list81); - num2 = 0; - ref GatheringNode reference55 = ref span81[num2]; + num2 = 1; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + ref GatheringNode reference55 = ref CollectionsMarshal.AsSpan(list81)[0]; GatheringNode obj29 = new GatheringNode { DataId = 34386u }; - num4 = 1; - List list82 = new List(num4); - CollectionsMarshal.SetCount(list82, num4); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new GatheringLocation + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = new GatheringLocation { Position = new Vector3(23.20134f, 70.90392f, 698.6194f), MinimumAngle = -10, @@ -20968,25 +17872,20 @@ public static class AssemblyGatheringLocationLoader reference55 = obj29; gatheringNodeGroup26.Nodes = list81; reference54 = gatheringNodeGroup26; - index++; - ref GatheringNodeGroup reference56 = ref span78[index]; + ref GatheringNodeGroup reference56 = ref span12[2]; GatheringNodeGroup gatheringNodeGroup27 = new GatheringNodeGroup(); num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - num3 = 0; - ref GatheringNode reference57 = ref span83[num3]; + ref GatheringNode reference57 = ref CollectionsMarshal.AsSpan(list83)[0]; GatheringNode obj30 = new GatheringNode { DataId = 34387u }; - index2 = 1; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num4 = 0; - span84[num4] = new GatheringLocation + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = new GatheringLocation { Position = new Vector3(30.69294f, 75.43362f, 688.8371f), MinimumAngle = -5, @@ -20999,46 +17898,37 @@ public static class AssemblyGatheringLocationLoader gatheringRoot9.Groups = list78; AddLocation(912, gatheringRoot9); GatheringRoot gatheringRoot10 = new GatheringRoot(); - index = 1; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - span85[num] = "plogon_enjoyer"; + num = 1; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + CollectionsMarshal.AsSpan(list85)[0] = "plogon_enjoyer"; gatheringRoot10.Author = list85; num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = new QuestStep(EInteractionType.None, null, null, 960) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.None, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; gatheringRoot10.Steps = list86; - index = 3; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref GatheringNodeGroup reference58 = ref span87[num]; + num = 3; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span13 = CollectionsMarshal.AsSpan(list87); + ref GatheringNodeGroup reference58 = ref span13[0]; GatheringNodeGroup gatheringNodeGroup28 = new GatheringNodeGroup(); - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref GatheringNode reference59 = ref span88[num2]; + num2 = 1; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + ref GatheringNode reference59 = ref CollectionsMarshal.AsSpan(list88)[0]; GatheringNode obj31 = new GatheringNode { DataId = 34388u }; - num4 = 1; - List list89 = new List(num4); - CollectionsMarshal.SetCount(list89, num4); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new GatheringLocation + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + CollectionsMarshal.AsSpan(list89)[0] = new GatheringLocation { Position = new Vector3(398.7177f, 292.5112f, -462.82f), MinimumAngle = -65, @@ -21048,25 +17938,20 @@ public static class AssemblyGatheringLocationLoader reference59 = obj31; gatheringNodeGroup28.Nodes = list88; reference58 = gatheringNodeGroup28; - num++; - ref GatheringNodeGroup reference60 = ref span87[num]; + ref GatheringNodeGroup reference60 = ref span13[1]; GatheringNodeGroup gatheringNodeGroup29 = new GatheringNodeGroup(); num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - ref GatheringNode reference61 = ref span90[num3]; + ref GatheringNode reference61 = ref CollectionsMarshal.AsSpan(list90)[0]; GatheringNode obj32 = new GatheringNode { DataId = 34389u }; - index2 = 1; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num4 = 0; - span91[num4] = new GatheringLocation + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + CollectionsMarshal.AsSpan(list91)[0] = new GatheringLocation { Position = new Vector3(373.1678f, 290.8189f, -442.4228f), MinimumAngle = 160, @@ -21076,25 +17961,20 @@ public static class AssemblyGatheringLocationLoader reference61 = obj32; gatheringNodeGroup29.Nodes = list90; reference60 = gatheringNodeGroup29; - num++; - ref GatheringNodeGroup reference62 = ref span87[num]; + ref GatheringNodeGroup reference62 = ref span13[2]; GatheringNodeGroup gatheringNodeGroup30 = new GatheringNodeGroup(); - num3 = 1; - List list92 = new List(num3); - CollectionsMarshal.SetCount(list92, num3); - Span span92 = CollectionsMarshal.AsSpan(list92); - num2 = 0; - ref GatheringNode reference63 = ref span92[num2]; + num2 = 1; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + ref GatheringNode reference63 = ref CollectionsMarshal.AsSpan(list92)[0]; GatheringNode obj33 = new GatheringNode { DataId = 34390u }; - num4 = 1; - List list93 = new List(num4); - CollectionsMarshal.SetCount(list93, num4); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new GatheringLocation + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new GatheringLocation { Position = new Vector3(383.5671f, 289.9682f, -392.3997f), MinimumAngle = 65, @@ -21112,16 +17992,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "liza"; + CollectionsMarshal.AsSpan(list94)[0] = "liza"; gatheringRoot11.Author = list94; - 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) + num = 1; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.None, null, null, 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; @@ -21129,26 +18005,21 @@ public static class AssemblyGatheringLocationLoader num = 3; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - ref GatheringNodeGroup reference64 = ref span96[index]; + Span span14 = CollectionsMarshal.AsSpan(list96); + ref GatheringNodeGroup reference64 = ref span14[0]; GatheringNodeGroup gatheringNodeGroup31 = new GatheringNodeGroup(); num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num3 = 0; - ref GatheringNode reference65 = ref span97[num3]; + ref GatheringNode reference65 = ref CollectionsMarshal.AsSpan(list97)[0]; GatheringNode obj34 = new GatheringNode { DataId = 34391u }; - index2 = 1; - List list98 = new List(index2); - CollectionsMarshal.SetCount(list98, index2); - Span span98 = CollectionsMarshal.AsSpan(list98); - num4 = 0; - span98[num4] = new GatheringLocation + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = new GatheringLocation { Position = new Vector3(-49.75243f, -31.70323f, -171.6977f) }; @@ -21156,25 +18027,20 @@ public static class AssemblyGatheringLocationLoader reference65 = obj34; gatheringNodeGroup31.Nodes = list97; reference64 = gatheringNodeGroup31; - index++; - ref GatheringNodeGroup reference66 = ref span96[index]; + ref GatheringNodeGroup reference66 = ref span14[1]; GatheringNodeGroup gatheringNodeGroup32 = new GatheringNodeGroup(); - num3 = 1; - List list99 = new List(num3); - CollectionsMarshal.SetCount(list99, num3); - Span span99 = CollectionsMarshal.AsSpan(list99); - num2 = 0; - ref GatheringNode reference67 = ref span99[num2]; + num2 = 1; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + ref GatheringNode reference67 = ref CollectionsMarshal.AsSpan(list99)[0]; GatheringNode obj35 = new GatheringNode { DataId = 34392u }; - num4 = 1; - List list100 = new List(num4); - CollectionsMarshal.SetCount(list100, num4); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new GatheringLocation + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + CollectionsMarshal.AsSpan(list100)[0] = new GatheringLocation { Position = new Vector3(-44.89702f, -32.39204f, -153.4274f) }; @@ -21182,25 +18048,20 @@ public static class AssemblyGatheringLocationLoader reference67 = obj35; gatheringNodeGroup32.Nodes = list99; reference66 = gatheringNodeGroup32; - index++; - ref GatheringNodeGroup reference68 = ref span96[index]; + ref GatheringNodeGroup reference68 = ref span14[2]; GatheringNodeGroup gatheringNodeGroup33 = new GatheringNodeGroup(); num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - num3 = 0; - ref GatheringNode reference69 = ref span101[num3]; + ref GatheringNode reference69 = ref CollectionsMarshal.AsSpan(list101)[0]; GatheringNode obj36 = new GatheringNode { DataId = 34393u }; - index2 = 1; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span102[num4] = new GatheringLocation + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = new GatheringLocation { Position = new Vector3(-36.6049f, -31.32222f, -134.1001f) }; @@ -21211,46 +18072,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot11.Groups = list96; AddLocation(914, gatheringRoot11); GatheringRoot gatheringRoot12 = new GatheringRoot(); - index = 1; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - span103[num] = "liza"; + num = 1; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + CollectionsMarshal.AsSpan(list103)[0] = "liza"; gatheringRoot12.Author = list103; num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = new QuestStep(EInteractionType.None, null, null, 816) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.None, null, null, 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; gatheringRoot12.Steps = list104; - index = 3; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref GatheringNodeGroup reference70 = ref span105[num]; + num = 3; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span15 = CollectionsMarshal.AsSpan(list105); + ref GatheringNodeGroup reference70 = ref span15[0]; GatheringNodeGroup gatheringNodeGroup34 = new GatheringNodeGroup(); - num3 = 2; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span106 = CollectionsMarshal.AsSpan(list106); - num2 = 0; - ref GatheringNode reference71 = ref span106[num2]; + num2 = 2; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + Span span16 = CollectionsMarshal.AsSpan(list106); + ref GatheringNode reference71 = ref span16[0]; GatheringNode obj37 = new GatheringNode { DataId = 34407u }; - num4 = 1; - List list107 = new List(num4); - CollectionsMarshal.SetCount(list107, num4); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new GatheringLocation + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new GatheringLocation { Position = new Vector3(398.7715f, 58.00708f, -1682f / (float)Math.PI), MinimumAngle = 95, @@ -21258,18 +18111,16 @@ public static class AssemblyGatheringLocationLoader }; obj37.Locations = list107; reference71 = obj37; - num2++; - ref GatheringNode reference72 = ref span106[num2]; + ref GatheringNode reference72 = ref span16[1]; GatheringNode obj38 = new GatheringNode { DataId = 34408u }; - index2 = 2; - List list108 = new List(index2); - CollectionsMarshal.SetCount(list108, index2); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = new GatheringLocation + num3 = 2; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + Span span17 = CollectionsMarshal.AsSpan(list108); + span17[0] = new GatheringLocation { Position = new Vector3(395.787f, 57.58823f, -532.1421f), MinimumAngle = 105, @@ -21277,8 +18128,7 @@ public static class AssemblyGatheringLocationLoader MinimumDistance = 1.5f, MaximumDistance = 3f }; - num4++; - span108[num4] = new GatheringLocation + span17[1] = new GatheringLocation { Position = new Vector3(403.3334f, 58.56588f, -533.6083f), MinimumAngle = 185, @@ -21290,25 +18140,21 @@ public static class AssemblyGatheringLocationLoader reference72 = obj38; gatheringNodeGroup34.Nodes = list106; reference70 = gatheringNodeGroup34; - num++; - ref GatheringNodeGroup reference73 = ref span105[num]; + ref GatheringNodeGroup reference73 = ref span15[1]; GatheringNodeGroup gatheringNodeGroup35 = new GatheringNodeGroup(); num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - ref GatheringNode reference74 = ref span109[num3]; + Span span18 = CollectionsMarshal.AsSpan(list109); + ref GatheringNode reference74 = ref span18[0]; GatheringNode obj39 = new GatheringNode { DataId = 34405u }; - num4 = 1; - List list110 = new List(num4); - CollectionsMarshal.SetCount(list110, num4); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new GatheringLocation + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = new GatheringLocation { Position = new Vector3(563.6605f, 96.62567f, -409.83f), MinimumAngle = 60, @@ -21316,23 +18162,20 @@ public static class AssemblyGatheringLocationLoader }; obj39.Locations = list110; reference74 = obj39; - num3++; - ref GatheringNode reference75 = ref span109[num3]; + ref GatheringNode reference75 = ref span18[1]; GatheringNode obj40 = new GatheringNode { DataId = 34406u }; - index2 = 2; - List list111 = new List(index2); - CollectionsMarshal.SetCount(list111, index2); - Span span111 = CollectionsMarshal.AsSpan(list111); - num4 = 0; - span111[num4] = new GatheringLocation + num3 = 2; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span19 = CollectionsMarshal.AsSpan(list111); + span19[0] = new GatheringLocation { Position = new Vector3(584.2038f, 97.61217f, -429.3185f) }; - num4++; - span111[num4] = new GatheringLocation + span19[1] = new GatheringLocation { Position = new Vector3(541.3574f, 95.33327f, -385.5562f) }; @@ -21340,25 +18183,21 @@ public static class AssemblyGatheringLocationLoader reference75 = obj40; gatheringNodeGroup35.Nodes = list109; reference73 = gatheringNodeGroup35; - num++; - ref GatheringNodeGroup reference76 = ref span105[num]; + ref GatheringNodeGroup reference76 = ref span15[2]; GatheringNodeGroup gatheringNodeGroup36 = new GatheringNodeGroup(); - num3 = 2; - List list112 = new List(num3); - CollectionsMarshal.SetCount(list112, num3); - Span span112 = CollectionsMarshal.AsSpan(list112); - num2 = 0; - ref GatheringNode reference77 = ref span112[num2]; + num2 = 2; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span20 = CollectionsMarshal.AsSpan(list112); + ref GatheringNode reference77 = ref span20[0]; GatheringNode obj41 = new GatheringNode { DataId = 34403u }; - num4 = 1; - List list113 = new List(num4); - CollectionsMarshal.SetCount(list113, num4); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new GatheringLocation + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new GatheringLocation { Position = new Vector3(569.0512f, 96.43839f, -571.2072f), MinimumAngle = 45, @@ -21366,25 +18205,22 @@ public static class AssemblyGatheringLocationLoader }; obj41.Locations = list113; reference77 = obj41; - num2++; - ref GatheringNode reference78 = ref span112[num2]; + ref GatheringNode reference78 = ref span20[1]; GatheringNode obj42 = new GatheringNode { DataId = 34404u }; - index2 = 2; - List list114 = new List(index2); - CollectionsMarshal.SetCount(list114, index2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num4 = 0; - span114[num4] = new GatheringLocation + num3 = 2; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + Span span21 = CollectionsMarshal.AsSpan(list114); + span21[0] = new GatheringLocation { Position = new Vector3(557.5918f, 92.0403f, -582.1814f), MinimumAngle = 70, MaximumAngle = 200 }; - num4++; - span114[num4] = new GatheringLocation + span21[1] = new GatheringLocation { Position = new Vector3(573.9432f, 96.50874f, -575.4167f), MinimumAngle = 85, @@ -21400,16 +18236,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; gatheringRoot13.Author = list115; - 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) + num = 1; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -21417,26 +18249,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - ref GatheringNodeGroup reference79 = ref span117[index]; + Span span22 = CollectionsMarshal.AsSpan(list117); + ref GatheringNodeGroup reference79 = ref span22[0]; GatheringNodeGroup gatheringNodeGroup37 = new GatheringNodeGroup(); num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - ref GatheringNode reference80 = ref span118[num3]; + Span span23 = CollectionsMarshal.AsSpan(list118); + ref GatheringNode reference80 = ref span23[0]; GatheringNode obj43 = new GatheringNode { DataId = 34411u }; - num4 = 1; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new GatheringLocation + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = new GatheringLocation { Position = new Vector3(-418.0731f, 16.25609f, -127.4739f), MinimumAngle = 240, @@ -21444,25 +18272,22 @@ public static class AssemblyGatheringLocationLoader }; obj43.Locations = list119; reference80 = obj43; - num3++; - ref GatheringNode reference81 = ref span118[num3]; + ref GatheringNode reference81 = ref span23[1]; GatheringNode obj44 = new GatheringNode { DataId = 34412u }; - index2 = 2; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num4 = 0; - span120[num4] = new GatheringLocation + num3 = 2; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + Span span24 = CollectionsMarshal.AsSpan(list120); + span24[0] = new GatheringLocation { Position = new Vector3(-436.8404f, 18.18649f, -121.9686f), MinimumAngle = -80, MaximumAngle = 75 }; - num4++; - span120[num4] = new GatheringLocation + span24[1] = new GatheringLocation { Position = new Vector3(-412.7203f, 17.72583f, -144.2871f), MinimumAngle = -145, @@ -21472,25 +18297,21 @@ public static class AssemblyGatheringLocationLoader reference81 = obj44; gatheringNodeGroup37.Nodes = list118; reference79 = gatheringNodeGroup37; - index++; - ref GatheringNodeGroup reference82 = ref span117[index]; + ref GatheringNodeGroup reference82 = ref span22[1]; GatheringNodeGroup gatheringNodeGroup38 = new GatheringNodeGroup(); - num3 = 2; - List list121 = new List(num3); - CollectionsMarshal.SetCount(list121, num3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num2 = 0; - ref GatheringNode reference83 = ref span121[num2]; + num2 = 2; + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + Span span25 = CollectionsMarshal.AsSpan(list121); + ref GatheringNode reference83 = ref span25[0]; GatheringNode obj45 = new GatheringNode { DataId = 34409u }; - num4 = 1; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new GatheringLocation + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = new GatheringLocation { Position = new Vector3(-309.9351f, 22.43881f, -196.324f), MinimumAngle = -70, @@ -21498,25 +18319,22 @@ public static class AssemblyGatheringLocationLoader }; obj45.Locations = list122; reference83 = obj45; - num2++; - ref GatheringNode reference84 = ref span121[num2]; + ref GatheringNode reference84 = ref span25[1]; GatheringNode obj46 = new GatheringNode { DataId = 34410u }; - index2 = 2; - List list123 = new List(index2); - CollectionsMarshal.SetCount(list123, index2); - Span span123 = CollectionsMarshal.AsSpan(list123); - num4 = 0; - span123[num4] = new GatheringLocation + num3 = 2; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span26 = CollectionsMarshal.AsSpan(list123); + span26[0] = new GatheringLocation { Position = new Vector3(-301.4662f, 22.08392f, -205.1306f), MinimumAngle = -145, MaximumAngle = -20 }; - num4++; - span123[num4] = new GatheringLocation + span26[1] = new GatheringLocation { Position = new Vector3(-318.3467f, 23.1723f, -198.7676f), MinimumAngle = -45, @@ -21526,32 +18344,28 @@ public static class AssemblyGatheringLocationLoader reference84 = obj46; gatheringNodeGroup38.Nodes = list121; reference82 = gatheringNodeGroup38; - index++; - ref GatheringNodeGroup reference85 = ref span117[index]; + ref GatheringNodeGroup reference85 = ref span22[2]; GatheringNodeGroup gatheringNodeGroup39 = new GatheringNodeGroup(); num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - ref GatheringNode reference86 = ref span124[num3]; + Span span27 = CollectionsMarshal.AsSpan(list124); + ref GatheringNode reference86 = ref span27[0]; GatheringNode obj47 = new GatheringNode { DataId = 34414u }; - num4 = 2; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new GatheringLocation + num3 = 2; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span28 = CollectionsMarshal.AsSpan(list125); + span28[0] = new GatheringLocation { Position = new Vector3(-229.6105f, 5.158276f, -103.3359f), MinimumAngle = -40, MaximumAngle = 170 }; - index2++; - span125[index2] = new GatheringLocation + span28[1] = new GatheringLocation { Position = new Vector3(-247.2413f, 9.6758f, -128.0531f), MinimumAngle = 30, @@ -21559,18 +18373,15 @@ public static class AssemblyGatheringLocationLoader }; obj47.Locations = list125; reference86 = obj47; - num3++; - ref GatheringNode reference87 = ref span124[num3]; + ref GatheringNode reference87 = ref span27[1]; GatheringNode obj48 = new GatheringNode { DataId = 34413u }; - index2 = 1; - List list126 = new List(index2); - CollectionsMarshal.SetCount(list126, index2); - Span span126 = CollectionsMarshal.AsSpan(list126); - num4 = 0; - span126[num4] = new GatheringLocation + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = new GatheringLocation { Position = new Vector3(-248.8988f, 7.998118f, -121.8732f), MinimumAngle = 0, @@ -21583,68 +18394,57 @@ public static class AssemblyGatheringLocationLoader gatheringRoot13.Groups = list117; AddLocation(919, gatheringRoot13); GatheringRoot gatheringRoot14 = new GatheringRoot(); - index = 1; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - span127[num] = "liza"; + num = 1; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + CollectionsMarshal.AsSpan(list127)[0] = "liza"; gatheringRoot14.Author = list127; num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = new QuestStep(EInteractionType.None, null, null, 816) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.None, null, null, 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; gatheringRoot14.Steps = list128; - index = 3; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref GatheringNodeGroup reference88 = ref span129[num]; + num = 3; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span29 = CollectionsMarshal.AsSpan(list129); + ref GatheringNodeGroup reference88 = ref span29[0]; GatheringNodeGroup gatheringNodeGroup40 = new GatheringNodeGroup(); - num3 = 2; - List list130 = new List(num3); - CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - num2 = 0; - ref GatheringNode reference89 = ref span130[num2]; + num2 = 2; + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + Span span30 = CollectionsMarshal.AsSpan(list130); + ref GatheringNode reference89 = ref span30[0]; GatheringNode obj49 = new GatheringNode { DataId = 34422u }; - num4 = 2; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new GatheringLocation + num3 = 2; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + Span span31 = CollectionsMarshal.AsSpan(list131); + span31[0] = new GatheringLocation { Position = new Vector3(-161.9915f, 60.04895f, -647.3901f) }; - index2++; - span131[index2] = new GatheringLocation + span31[1] = new GatheringLocation { Position = new Vector3(-179.2945f, 60.84981f, -630.9084f) }; obj49.Locations = list131; reference89 = obj49; - num2++; - ref GatheringNode reference90 = ref span130[num2]; + ref GatheringNode reference90 = ref span30[1]; GatheringNode obj50 = new GatheringNode { DataId = 34421u }; - index2 = 1; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num4 = 0; - span132[num4] = new GatheringLocation + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = new GatheringLocation { Position = new Vector3(-182.311f, 60.81965f, -640.2197f) }; @@ -21652,47 +18452,40 @@ public static class AssemblyGatheringLocationLoader reference90 = obj50; gatheringNodeGroup40.Nodes = list130; reference88 = gatheringNodeGroup40; - num++; - ref GatheringNodeGroup reference91 = ref span129[num]; + ref GatheringNodeGroup reference91 = ref span29[1]; GatheringNodeGroup gatheringNodeGroup41 = new GatheringNodeGroup(); num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - num3 = 0; - ref GatheringNode reference92 = ref span133[num3]; + Span span32 = CollectionsMarshal.AsSpan(list133); + ref GatheringNode reference92 = ref span32[0]; GatheringNode obj51 = new GatheringNode { DataId = 34423u }; - num4 = 1; - List list134 = new List(num4); - CollectionsMarshal.SetCount(list134, num4); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new GatheringLocation + num3 = 1; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + CollectionsMarshal.AsSpan(list134)[0] = new GatheringLocation { Position = new Vector3(-182.0749f, 60.70063f, -567.6271f) }; obj51.Locations = list134; reference92 = obj51; - num3++; - ref GatheringNode reference93 = ref span133[num3]; + ref GatheringNode reference93 = ref span32[1]; GatheringNode obj52 = new GatheringNode { DataId = 34424u }; - index2 = 2; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num4 = 0; - span135[num4] = new GatheringLocation + num3 = 2; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + Span span33 = CollectionsMarshal.AsSpan(list135); + span33[0] = new GatheringLocation { Position = new Vector3(-184.7115f, 59.23207f, -573.9592f) }; - num4++; - span135[num4] = new GatheringLocation + span33[1] = new GatheringLocation { Position = new Vector3(-171.0273f, 62.20385f, -576.3321f) }; @@ -21700,49 +18493,42 @@ public static class AssemblyGatheringLocationLoader reference93 = obj52; gatheringNodeGroup41.Nodes = list133; reference91 = gatheringNodeGroup41; - num++; - ref GatheringNodeGroup reference94 = ref span129[num]; + ref GatheringNodeGroup reference94 = ref span29[2]; GatheringNodeGroup gatheringNodeGroup42 = new GatheringNodeGroup(); - num3 = 2; - List list136 = new List(num3); - CollectionsMarshal.SetCount(list136, num3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num2 = 0; - ref GatheringNode reference95 = ref span136[num2]; + num2 = 2; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + Span span34 = CollectionsMarshal.AsSpan(list136); + ref GatheringNode reference95 = ref span34[0]; GatheringNode obj53 = new GatheringNode { DataId = 34425u }; - num4 = 1; - List list137 = new List(num4); - CollectionsMarshal.SetCount(list137, num4); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new GatheringLocation + num3 = 1; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + CollectionsMarshal.AsSpan(list137)[0] = new GatheringLocation { Position = new Vector3(-333.3387f, 82.66466f, -505.7937f) }; obj53.Locations = list137; reference95 = obj53; - num2++; - ref GatheringNode reference96 = ref span136[num2]; + ref GatheringNode reference96 = ref span34[1]; GatheringNode obj54 = new GatheringNode { DataId = 34426u }; - index2 = 2; - List list138 = new List(index2); - CollectionsMarshal.SetCount(list138, index2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num4 = 0; - span138[num4] = new GatheringLocation + num3 = 2; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + Span span35 = CollectionsMarshal.AsSpan(list138); + span35[0] = new GatheringLocation { Position = new Vector3(-333.0683f, 82.72758f, -501.5885f), MinimumAngle = 75, MaximumAngle = 265 }; - num4++; - span138[num4] = new GatheringLocation + span35[1] = new GatheringLocation { Position = new Vector3(-349.0388f, 89.44427f, -512.492f) }; @@ -21756,16 +18542,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; gatheringRoot15.Author = list139; - 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) + num = 1; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.None, null, null, 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -21773,48 +18555,41 @@ public static class AssemblyGatheringLocationLoader num = 3; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - ref GatheringNodeGroup reference97 = ref span141[index]; + Span span36 = CollectionsMarshal.AsSpan(list141); + ref GatheringNodeGroup reference97 = ref span36[0]; GatheringNodeGroup gatheringNodeGroup43 = new GatheringNodeGroup(); num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - ref GatheringNode reference98 = ref span142[num3]; + Span span37 = CollectionsMarshal.AsSpan(list142); + ref GatheringNode reference98 = ref span37[0]; GatheringNode obj55 = new GatheringNode { DataId = 34430u }; - num4 = 2; - List list143 = new List(num4); - CollectionsMarshal.SetCount(list143, num4); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new GatheringLocation + num3 = 2; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + Span span38 = CollectionsMarshal.AsSpan(list143); + span38[0] = new GatheringLocation { Position = new Vector3(-449.9385f, -1.370689f, -409.258f) }; - index2++; - span143[index2] = new GatheringLocation + span38[1] = new GatheringLocation { Position = new Vector3(-445.7757f, -0.7637522f, -415.8121f) }; obj55.Locations = list143; reference98 = obj55; - num3++; - ref GatheringNode reference99 = ref span142[num3]; + ref GatheringNode reference99 = ref span37[1]; GatheringNode obj56 = new GatheringNode { DataId = 34429u }; - index2 = 1; - List list144 = new List(index2); - CollectionsMarshal.SetCount(list144, index2); - Span span144 = CollectionsMarshal.AsSpan(list144); - num4 = 0; - span144[num4] = new GatheringLocation + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = new GatheringLocation { Position = new Vector3(-451.2528f, -1.577711f, -414.294f) }; @@ -21822,49 +18597,42 @@ public static class AssemblyGatheringLocationLoader reference99 = obj56; gatheringNodeGroup43.Nodes = list142; reference97 = gatheringNodeGroup43; - index++; - ref GatheringNodeGroup reference100 = ref span141[index]; + ref GatheringNodeGroup reference100 = ref span36[1]; GatheringNodeGroup gatheringNodeGroup44 = new GatheringNodeGroup(); - num3 = 2; - List list145 = new List(num3); - CollectionsMarshal.SetCount(list145, num3); - Span span145 = CollectionsMarshal.AsSpan(list145); - num2 = 0; - ref GatheringNode reference101 = ref span145[num2]; + num2 = 2; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + Span span39 = CollectionsMarshal.AsSpan(list145); + ref GatheringNode reference101 = ref span39[0]; GatheringNode obj57 = new GatheringNode { DataId = 34427u }; - num4 = 1; - List list146 = new List(num4); - CollectionsMarshal.SetCount(list146, num4); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new GatheringLocation + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = new GatheringLocation { Position = new Vector3(-346.0392f, 0.6433533f, -541.9421f) }; obj57.Locations = list146; reference101 = obj57; - num2++; - ref GatheringNode reference102 = ref span145[num2]; + ref GatheringNode reference102 = ref span39[1]; GatheringNode obj58 = new GatheringNode { DataId = 34428u }; - index2 = 2; - List list147 = new List(index2); - CollectionsMarshal.SetCount(list147, index2); - Span span147 = CollectionsMarshal.AsSpan(list147); - num4 = 0; - span147[num4] = new GatheringLocation + num3 = 2; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + Span span40 = CollectionsMarshal.AsSpan(list147); + span40[0] = new GatheringLocation { Position = new Vector3(-326.9622f, 1.097262f, -537.5435f), MinimumAngle = 0, MaximumAngle = 220 }; - num4++; - span147[num4] = new GatheringLocation + span40[1] = new GatheringLocation { Position = new Vector3(-357.2281f, 0.4458784f, -513.3207f) }; @@ -21872,47 +18640,40 @@ public static class AssemblyGatheringLocationLoader reference102 = obj58; gatheringNodeGroup44.Nodes = list145; reference100 = gatheringNodeGroup44; - index++; - ref GatheringNodeGroup reference103 = ref span141[index]; + ref GatheringNodeGroup reference103 = ref span36[2]; GatheringNodeGroup gatheringNodeGroup45 = new GatheringNodeGroup(); num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - ref GatheringNode reference104 = ref span148[num3]; + Span span41 = CollectionsMarshal.AsSpan(list148); + ref GatheringNode reference104 = ref span41[0]; GatheringNode obj59 = new GatheringNode { DataId = 34431u }; - num4 = 1; - List list149 = new List(num4); - CollectionsMarshal.SetCount(list149, num4); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new GatheringLocation + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + CollectionsMarshal.AsSpan(list149)[0] = new GatheringLocation { Position = new Vector3(-441.0019f, -5.337227f, -636.1525f) }; obj59.Locations = list149; reference104 = obj59; - num3++; - ref GatheringNode reference105 = ref span148[num3]; + ref GatheringNode reference105 = ref span41[1]; GatheringNode obj60 = new GatheringNode { DataId = 34432u }; - index2 = 2; - List list150 = new List(index2); - CollectionsMarshal.SetCount(list150, index2); - Span span150 = CollectionsMarshal.AsSpan(list150); - num4 = 0; - span150[num4] = new GatheringLocation + num3 = 2; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + Span span42 = CollectionsMarshal.AsSpan(list150); + span42[0] = new GatheringLocation { Position = new Vector3(-464.1121f, -5.420424f, -649.8243f) }; - num4++; - span150[num4] = new GatheringLocation + span42[1] = new GatheringLocation { Position = new Vector3(-436.4872f, -5.205373f, -638.8244f), MinimumAngle = -95, @@ -21925,53 +18686,45 @@ public static class AssemblyGatheringLocationLoader gatheringRoot15.Groups = list141; AddLocation(922, gatheringRoot15); GatheringRoot gatheringRoot16 = new GatheringRoot(); - index = 1; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - span151[num] = "liza"; + num = 1; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + CollectionsMarshal.AsSpan(list151)[0] = "liza"; gatheringRoot16.Author = list151; num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = new QuestStep(EInteractionType.None, null, null, 818) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.None, null, null, 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; gatheringRoot16.Steps = list152; - index = 3; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref GatheringNodeGroup reference106 = ref span153[num]; + num = 3; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span43 = CollectionsMarshal.AsSpan(list153); + ref GatheringNodeGroup reference106 = ref span43[0]; GatheringNodeGroup gatheringNodeGroup46 = new GatheringNodeGroup(); - num3 = 2; - List list154 = new List(num3); - CollectionsMarshal.SetCount(list154, num3); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref GatheringNode reference107 = ref span154[num2]; + num2 = 2; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + Span span44 = CollectionsMarshal.AsSpan(list154); + ref GatheringNode reference107 = ref span44[0]; GatheringNode obj61 = new GatheringNode { DataId = 34458u }; - num4 = 2; - List list155 = new List(num4); - CollectionsMarshal.SetCount(list155, num4); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new GatheringLocation + num3 = 2; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + Span span45 = CollectionsMarshal.AsSpan(list155); + span45[0] = new GatheringLocation { Position = new Vector3(44.00173f, 428.2346f, -656.6179f), MinimumAngle = -65, MaximumAngle = 10 }; - index2++; - span155[index2] = new GatheringLocation + span45[1] = new GatheringLocation { Position = new Vector3(16.55597f, 426.627f, -670.5577f), MinimumAngle = -25, @@ -21979,18 +18732,15 @@ public static class AssemblyGatheringLocationLoader }; obj61.Locations = list155; reference107 = obj61; - num2++; - ref GatheringNode reference108 = ref span154[num2]; + ref GatheringNode reference108 = ref span44[1]; GatheringNode obj62 = new GatheringNode { DataId = 34457u }; - index2 = 1; - List list156 = new List(index2); - CollectionsMarshal.SetCount(list156, index2); - Span span156 = CollectionsMarshal.AsSpan(list156); - num4 = 0; - span156[num4] = new GatheringLocation + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = new GatheringLocation { Position = new Vector3(37.23584f, 427.2601f, -653.0619f), MinimumAngle = 245, @@ -22000,49 +18750,42 @@ public static class AssemblyGatheringLocationLoader reference108 = obj62; gatheringNodeGroup46.Nodes = list154; reference106 = gatheringNodeGroup46; - num++; - ref GatheringNodeGroup reference109 = ref span153[num]; + ref GatheringNodeGroup reference109 = ref span43[1]; GatheringNodeGroup gatheringNodeGroup47 = new GatheringNodeGroup(); num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - ref GatheringNode reference110 = ref span157[num3]; + Span span46 = CollectionsMarshal.AsSpan(list157); + ref GatheringNode reference110 = ref span46[0]; GatheringNode obj63 = new GatheringNode { DataId = 34461u }; - num4 = 1; - List list158 = new List(num4); - CollectionsMarshal.SetCount(list158, num4); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new GatheringLocation + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + CollectionsMarshal.AsSpan(list158)[0] = new GatheringLocation { Position = new Vector3(-65.51347f, 400.3132f, -539.7745f) }; obj63.Locations = list158; reference110 = obj63; - num3++; - ref GatheringNode reference111 = ref span157[num3]; + ref GatheringNode reference111 = ref span46[1]; GatheringNode obj64 = new GatheringNode { DataId = 34462u }; - index2 = 2; - List list159 = new List(index2); - CollectionsMarshal.SetCount(list159, index2); - Span span159 = CollectionsMarshal.AsSpan(list159); - num4 = 0; - span159[num4] = new GatheringLocation + num3 = 2; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + Span span47 = CollectionsMarshal.AsSpan(list159); + span47[0] = new GatheringLocation { Position = new Vector3(-67.70384f, 400.7841f, -542.4638f), MinimumAngle = -85, MaximumAngle = 55 }; - num4++; - span159[num4] = new GatheringLocation + span47[1] = new GatheringLocation { Position = new Vector3(-55.10947f, 399.0878f, -536.9024f), MinimumDistance = 1f, @@ -22052,49 +18795,42 @@ public static class AssemblyGatheringLocationLoader reference111 = obj64; gatheringNodeGroup47.Nodes = list157; reference109 = gatheringNodeGroup47; - num++; - ref GatheringNodeGroup reference112 = ref span153[num]; + ref GatheringNodeGroup reference112 = ref span43[2]; GatheringNodeGroup gatheringNodeGroup48 = new GatheringNodeGroup(); - num3 = 2; - List list160 = new List(num3); - CollectionsMarshal.SetCount(list160, num3); - Span span160 = CollectionsMarshal.AsSpan(list160); - num2 = 0; - ref GatheringNode reference113 = ref span160[num2]; + num2 = 2; + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + Span span48 = CollectionsMarshal.AsSpan(list160); + ref GatheringNode reference113 = ref span48[0]; GatheringNode obj65 = new GatheringNode { DataId = 34459u }; - num4 = 1; - List list161 = new List(num4); - CollectionsMarshal.SetCount(list161, num4); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new GatheringLocation + num3 = 1; + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + CollectionsMarshal.AsSpan(list161)[0] = new GatheringLocation { Position = new Vector3(-216.086f, 426.8226f, -649.2361f) }; obj65.Locations = list161; reference113 = obj65; - num2++; - ref GatheringNode reference114 = ref span160[num2]; + ref GatheringNode reference114 = ref span48[1]; GatheringNode obj66 = new GatheringNode { DataId = 34460u }; - index2 = 2; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num4 = 0; - span162[num4] = new GatheringLocation + num3 = 2; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + Span span49 = CollectionsMarshal.AsSpan(list162); + span49[0] = new GatheringLocation { Position = new Vector3(-215.228f, 427.4708f, -653.9598f), MinimumAngle = -55, MaximumAngle = 135 }; - num4++; - span162[num4] = new GatheringLocation + span49[1] = new GatheringLocation { Position = new Vector3(-201.5463f, 427.882f, -655.0467f), MinimumAngle = -70, @@ -22110,16 +18846,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "liza"; + CollectionsMarshal.AsSpan(list163)[0] = "liza"; gatheringRoot17.Author = list163; - 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) + num = 1; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.None, null, null, 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -22127,33 +18859,29 @@ public static class AssemblyGatheringLocationLoader num = 3; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - ref GatheringNodeGroup reference115 = ref span165[index]; + Span span50 = CollectionsMarshal.AsSpan(list165); + ref GatheringNodeGroup reference115 = ref span50[0]; GatheringNodeGroup gatheringNodeGroup49 = new GatheringNodeGroup(); num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - num3 = 0; - ref GatheringNode reference116 = ref span166[num3]; + Span span51 = CollectionsMarshal.AsSpan(list166); + ref GatheringNode reference116 = ref span51[0]; GatheringNode obj67 = new GatheringNode { DataId = 34466u }; - num4 = 2; - List list167 = new List(num4); - CollectionsMarshal.SetCount(list167, num4); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new GatheringLocation + num3 = 2; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + Span span52 = CollectionsMarshal.AsSpan(list167); + span52[0] = new GatheringLocation { Position = new Vector3(403.2184f, 408.0598f, -755.5223f), MinimumAngle = 80, MaximumAngle = 190 }; - index2++; - span167[index2] = new GatheringLocation + span52[1] = new GatheringLocation { Position = new Vector3(438.6136f, 416.6389f, -758.985f), MinimumAngle = 110, @@ -22161,18 +18889,15 @@ public static class AssemblyGatheringLocationLoader }; obj67.Locations = list167; reference116 = obj67; - num3++; - ref GatheringNode reference117 = ref span166[num3]; + ref GatheringNode reference117 = ref span51[1]; GatheringNode obj68 = new GatheringNode { DataId = 34465u }; - index2 = 1; - List list168 = new List(index2); - CollectionsMarshal.SetCount(list168, index2); - Span span168 = CollectionsMarshal.AsSpan(list168); - num4 = 0; - span168[num4] = new GatheringLocation + num3 = 1; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + CollectionsMarshal.AsSpan(list168)[0] = new GatheringLocation { Position = new Vector3(415.5816f, 412.4482f, -758.7325f), MinimumAngle = 90, @@ -22182,25 +18907,21 @@ public static class AssemblyGatheringLocationLoader reference117 = obj68; gatheringNodeGroup49.Nodes = list166; reference115 = gatheringNodeGroup49; - index++; - ref GatheringNodeGroup reference118 = ref span165[index]; + ref GatheringNodeGroup reference118 = ref span50[1]; GatheringNodeGroup gatheringNodeGroup50 = new GatheringNodeGroup(); - num3 = 2; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span169 = CollectionsMarshal.AsSpan(list169); - num2 = 0; - ref GatheringNode reference119 = ref span169[num2]; + num2 = 2; + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + Span span53 = CollectionsMarshal.AsSpan(list169); + ref GatheringNode reference119 = ref span53[0]; GatheringNode obj69 = new GatheringNode { DataId = 34463u }; - num4 = 1; - List list170 = new List(num4); - CollectionsMarshal.SetCount(list170, num4); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new GatheringLocation + num3 = 1; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + CollectionsMarshal.AsSpan(list170)[0] = new GatheringLocation { Position = new Vector3(415.8845f, 431.2351f, -896.2997f), MinimumAngle = -65, @@ -22208,25 +18929,22 @@ public static class AssemblyGatheringLocationLoader }; obj69.Locations = list170; reference119 = obj69; - num2++; - ref GatheringNode reference120 = ref span169[num2]; + ref GatheringNode reference120 = ref span53[1]; GatheringNode obj70 = new GatheringNode { DataId = 34464u }; - index2 = 2; - List list171 = new List(index2); - CollectionsMarshal.SetCount(list171, index2); - Span span171 = CollectionsMarshal.AsSpan(list171); - num4 = 0; - span171[num4] = new GatheringLocation + num3 = 2; + List list171 = new List(num3); + CollectionsMarshal.SetCount(list171, num3); + Span span54 = CollectionsMarshal.AsSpan(list171); + span54[0] = new GatheringLocation { Position = new Vector3(400.7106f, 428.3826f, -893.9595f), MinimumAngle = -40, MaximumAngle = 50 }; - num4++; - span171[num4] = new GatheringLocation + span54[1] = new GatheringLocation { Position = new Vector3(431.8092f, 434.546f, -902.1445f), MinimumAngle = -95, @@ -22236,25 +18954,21 @@ public static class AssemblyGatheringLocationLoader reference120 = obj70; gatheringNodeGroup50.Nodes = list169; reference118 = gatheringNodeGroup50; - index++; - ref GatheringNodeGroup reference121 = ref span165[index]; + ref GatheringNodeGroup reference121 = ref span50[2]; GatheringNodeGroup gatheringNodeGroup51 = new GatheringNodeGroup(); num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - num3 = 0; - ref GatheringNode reference122 = ref span172[num3]; + Span span55 = CollectionsMarshal.AsSpan(list172); + ref GatheringNode reference122 = ref span55[0]; GatheringNode obj71 = new GatheringNode { DataId = 34467u }; - num4 = 1; - List list173 = new List(num4); - CollectionsMarshal.SetCount(list173, num4); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new GatheringLocation + num3 = 1; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + CollectionsMarshal.AsSpan(list173)[0] = new GatheringLocation { Position = new Vector3(284.0778f, 433.4644f, -916.6171f), MinimumAngle = -75, @@ -22262,25 +18976,22 @@ public static class AssemblyGatheringLocationLoader }; obj71.Locations = list173; reference122 = obj71; - num3++; - ref GatheringNode reference123 = ref span172[num3]; + ref GatheringNode reference123 = ref span55[1]; GatheringNode obj72 = new GatheringNode { DataId = 34468u }; - index2 = 2; - List list174 = new List(index2); - CollectionsMarshal.SetCount(list174, index2); - Span span174 = CollectionsMarshal.AsSpan(list174); - num4 = 0; - span174[num4] = new GatheringLocation + num3 = 2; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + Span span56 = CollectionsMarshal.AsSpan(list174); + span56[0] = new GatheringLocation { Position = new Vector3(278.6176f, 428.9509f, -904.3234f), MinimumAngle = 220, MaximumAngle = 345 }; - num4++; - span174[num4] = new GatheringLocation + span56[1] = new GatheringLocation { Position = new Vector3(305.7502f, 432.027f, -912.7272f), MinimumAngle = -80, @@ -22293,47 +19004,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot17.Groups = list165; AddLocation(928, gatheringRoot17); GatheringRoot gatheringRoot18 = new GatheringRoot(); - index = 1; - List list175 = new List(index); - CollectionsMarshal.SetCount(list175, index); - Span span175 = CollectionsMarshal.AsSpan(list175); - num = 0; - span175[num] = "liza"; + num = 1; + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + CollectionsMarshal.AsSpan(list175)[0] = "liza"; gatheringRoot18.Author = list175; num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = new QuestStep(EInteractionType.None, null, null, 1188) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; gatheringRoot18.Steps = list176; gatheringRoot18.FlyBetweenNodes = true; - index = 6; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref GatheringNodeGroup reference124 = ref span177[num]; + num = 6; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span57 = CollectionsMarshal.AsSpan(list177); + ref GatheringNodeGroup reference124 = ref span57[0]; GatheringNodeGroup gatheringNodeGroup52 = new GatheringNodeGroup(); - num3 = 1; - List list178 = new List(num3); - CollectionsMarshal.SetCount(list178, num3); - Span span178 = CollectionsMarshal.AsSpan(list178); - num2 = 0; - ref GatheringNode reference125 = ref span178[num2]; + num2 = 1; + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + ref GatheringNode reference125 = ref CollectionsMarshal.AsSpan(list178)[0]; GatheringNode obj73 = new GatheringNode { DataId = 34520u }; - num4 = 1; - List list179 = new List(num4); - CollectionsMarshal.SetCount(list179, num4); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new GatheringLocation + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = new GatheringLocation { Position = new Vector3(759.8123f, 26.14559f, -561.7435f) }; @@ -22341,25 +19043,20 @@ public static class AssemblyGatheringLocationLoader reference125 = obj73; gatheringNodeGroup52.Nodes = list178; reference124 = gatheringNodeGroup52; - num++; - ref GatheringNodeGroup reference126 = ref span177[num]; + ref GatheringNodeGroup reference126 = ref span57[1]; GatheringNodeGroup gatheringNodeGroup53 = new GatheringNodeGroup(); num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - num3 = 0; - ref GatheringNode reference127 = ref span180[num3]; + ref GatheringNode reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; GatheringNode obj74 = new GatheringNode { DataId = 34521u }; - index2 = 1; - List list181 = new List(index2); - CollectionsMarshal.SetCount(list181, index2); - Span span181 = CollectionsMarshal.AsSpan(list181); - num4 = 0; - span181[num4] = new GatheringLocation + num3 = 1; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + CollectionsMarshal.AsSpan(list181)[0] = new GatheringLocation { Position = new Vector3(791.0515f, 25.74059f, -545.9295f) }; @@ -22367,25 +19064,20 @@ public static class AssemblyGatheringLocationLoader reference127 = obj74; gatheringNodeGroup53.Nodes = list180; reference126 = gatheringNodeGroup53; - num++; - ref GatheringNodeGroup reference128 = ref span177[num]; + ref GatheringNodeGroup reference128 = ref span57[2]; GatheringNodeGroup gatheringNodeGroup54 = new GatheringNodeGroup(); - num3 = 1; - List list182 = new List(num3); - CollectionsMarshal.SetCount(list182, num3); - Span span182 = CollectionsMarshal.AsSpan(list182); - num2 = 0; - ref GatheringNode reference129 = ref span182[num2]; + num2 = 1; + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + ref GatheringNode reference129 = ref CollectionsMarshal.AsSpan(list182)[0]; GatheringNode obj75 = new GatheringNode { DataId = 34522u }; - num4 = 1; - List list183 = new List(num4); - CollectionsMarshal.SetCount(list183, num4); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new GatheringLocation + num3 = 1; + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + CollectionsMarshal.AsSpan(list183)[0] = new GatheringLocation { Position = new Vector3(821.4519f, 28.47348f, -533.9607f) }; @@ -22393,25 +19085,20 @@ public static class AssemblyGatheringLocationLoader reference129 = obj75; gatheringNodeGroup54.Nodes = list182; reference128 = gatheringNodeGroup54; - num++; - ref GatheringNodeGroup reference130 = ref span177[num]; + ref GatheringNodeGroup reference130 = ref span57[3]; GatheringNodeGroup gatheringNodeGroup55 = new GatheringNodeGroup(); num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - num3 = 0; - ref GatheringNode reference131 = ref span184[num3]; + ref GatheringNode reference131 = ref CollectionsMarshal.AsSpan(list184)[0]; GatheringNode obj76 = new GatheringNode { DataId = 34517u }; - index2 = 1; - List list185 = new List(index2); - CollectionsMarshal.SetCount(list185, index2); - Span span185 = CollectionsMarshal.AsSpan(list185); - num4 = 0; - span185[num4] = new GatheringLocation + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new GatheringLocation { Position = new Vector3(840.8483f, 34.05744f, -586.0533f) }; @@ -22419,25 +19106,20 @@ public static class AssemblyGatheringLocationLoader reference131 = obj76; gatheringNodeGroup55.Nodes = list184; reference130 = gatheringNodeGroup55; - num++; - ref GatheringNodeGroup reference132 = ref span177[num]; + ref GatheringNodeGroup reference132 = ref span57[4]; GatheringNodeGroup gatheringNodeGroup56 = new GatheringNodeGroup(); - num3 = 1; - List list186 = new List(num3); - CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - num2 = 0; - ref GatheringNode reference133 = ref span186[num2]; + num2 = 1; + List list186 = new List(num2); + CollectionsMarshal.SetCount(list186, num2); + ref GatheringNode reference133 = ref CollectionsMarshal.AsSpan(list186)[0]; GatheringNode obj77 = new GatheringNode { DataId = 34518u }; - num4 = 1; - List list187 = new List(num4); - CollectionsMarshal.SetCount(list187, num4); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new GatheringLocation + num3 = 1; + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + CollectionsMarshal.AsSpan(list187)[0] = new GatheringLocation { Position = new Vector3(837.7969f, 33.55795f, -619.7623f) }; @@ -22445,25 +19127,20 @@ public static class AssemblyGatheringLocationLoader reference133 = obj77; gatheringNodeGroup56.Nodes = list186; reference132 = gatheringNodeGroup56; - num++; - ref GatheringNodeGroup reference134 = ref span177[num]; + ref GatheringNodeGroup reference134 = ref span57[5]; GatheringNodeGroup gatheringNodeGroup57 = new GatheringNodeGroup(); num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - num3 = 0; - ref GatheringNode reference135 = ref span188[num3]; + ref GatheringNode reference135 = ref CollectionsMarshal.AsSpan(list188)[0]; GatheringNode obj78 = new GatheringNode { DataId = 34519u }; - index2 = 1; - List list189 = new List(index2); - CollectionsMarshal.SetCount(list189, index2); - Span span189 = CollectionsMarshal.AsSpan(list189); - num4 = 0; - span189[num4] = new GatheringLocation + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new GatheringLocation { Position = new Vector3(784.021f, 24.16835f, -598.9781f) }; @@ -22477,16 +19154,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "liza"; + CollectionsMarshal.AsSpan(list190)[0] = "liza"; gatheringRoot19.Author = list190; - 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) + num = 1; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -22495,26 +19168,21 @@ public static class AssemblyGatheringLocationLoader num = 6; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - ref GatheringNodeGroup reference136 = ref span192[index]; + Span span58 = CollectionsMarshal.AsSpan(list192); + ref GatheringNodeGroup reference136 = ref span58[0]; GatheringNodeGroup gatheringNodeGroup58 = new GatheringNodeGroup(); - num3 = 1; - List list193 = new List(num3); - CollectionsMarshal.SetCount(list193, num3); - Span span193 = CollectionsMarshal.AsSpan(list193); - num2 = 0; - ref GatheringNode reference137 = ref span193[num2]; + num2 = 1; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + ref GatheringNode reference137 = ref CollectionsMarshal.AsSpan(list193)[0]; GatheringNode obj79 = new GatheringNode { DataId = 34601u }; - num4 = 1; - List list194 = new List(num4); - CollectionsMarshal.SetCount(list194, num4); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new GatheringLocation + num3 = 1; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + CollectionsMarshal.AsSpan(list194)[0] = new GatheringLocation { Position = new Vector3(484.1779f, 16.59889f, -304.2079f), MinimumAngle = -185, @@ -22524,25 +19192,20 @@ public static class AssemblyGatheringLocationLoader reference137 = obj79; gatheringNodeGroup58.Nodes = list193; reference136 = gatheringNodeGroup58; - index++; - ref GatheringNodeGroup reference138 = ref span192[index]; + ref GatheringNodeGroup reference138 = ref span58[1]; GatheringNodeGroup gatheringNodeGroup59 = new GatheringNodeGroup(); num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - ref GatheringNode reference139 = ref span195[num3]; + ref GatheringNode reference139 = ref CollectionsMarshal.AsSpan(list195)[0]; GatheringNode obj80 = new GatheringNode { DataId = 34599u }; - index2 = 1; - List list196 = new List(index2); - CollectionsMarshal.SetCount(list196, index2); - Span span196 = CollectionsMarshal.AsSpan(list196); - num4 = 0; - span196[num4] = new GatheringLocation + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + CollectionsMarshal.AsSpan(list196)[0] = new GatheringLocation { Position = new Vector3(509.181f, 21.64949f, -349.9709f), MinimumAngle = -25, @@ -22552,25 +19215,20 @@ public static class AssemblyGatheringLocationLoader reference139 = obj80; gatheringNodeGroup59.Nodes = list195; reference138 = gatheringNodeGroup59; - index++; - ref GatheringNodeGroup reference140 = ref span192[index]; + ref GatheringNodeGroup reference140 = ref span58[2]; GatheringNodeGroup gatheringNodeGroup60 = new GatheringNodeGroup(); - num3 = 1; - List list197 = new List(num3); - CollectionsMarshal.SetCount(list197, num3); - Span span197 = CollectionsMarshal.AsSpan(list197); - num2 = 0; - ref GatheringNode reference141 = ref span197[num2]; + num2 = 1; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + ref GatheringNode reference141 = ref CollectionsMarshal.AsSpan(list197)[0]; GatheringNode obj81 = new GatheringNode { DataId = 34597u }; - num4 = 1; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new GatheringLocation + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + CollectionsMarshal.AsSpan(list198)[0] = new GatheringLocation { Position = new Vector3(534.7657f, 19.33411f, -333.3713f), MinimumAngle = 155, @@ -22580,25 +19238,20 @@ public static class AssemblyGatheringLocationLoader reference141 = obj81; gatheringNodeGroup60.Nodes = list197; reference140 = gatheringNodeGroup60; - index++; - ref GatheringNodeGroup reference142 = ref span192[index]; + ref GatheringNodeGroup reference142 = ref span58[3]; GatheringNodeGroup gatheringNodeGroup61 = new GatheringNodeGroup(); num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - ref GatheringNode reference143 = ref span199[num3]; + ref GatheringNode reference143 = ref CollectionsMarshal.AsSpan(list199)[0]; GatheringNode obj82 = new GatheringNode { DataId = 34600u }; - index2 = 1; - List list200 = new List(index2); - CollectionsMarshal.SetCount(list200, index2); - Span span200 = CollectionsMarshal.AsSpan(list200); - num4 = 0; - span200[num4] = new GatheringLocation + num3 = 1; + List list200 = new List(num3); + CollectionsMarshal.SetCount(list200, num3); + CollectionsMarshal.AsSpan(list200)[0] = new GatheringLocation { Position = new Vector3(525.0291f, 11.97125f, -252.6589f), MinimumAngle = 145, @@ -22608,25 +19261,20 @@ public static class AssemblyGatheringLocationLoader reference143 = obj82; gatheringNodeGroup61.Nodes = list199; reference142 = gatheringNodeGroup61; - index++; - ref GatheringNodeGroup reference144 = ref span192[index]; + ref GatheringNodeGroup reference144 = ref span58[4]; GatheringNodeGroup gatheringNodeGroup62 = new GatheringNodeGroup(); - num3 = 1; - List list201 = new List(num3); - CollectionsMarshal.SetCount(list201, num3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num2 = 0; - ref GatheringNode reference145 = ref span201[num2]; + num2 = 1; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + ref GatheringNode reference145 = ref CollectionsMarshal.AsSpan(list201)[0]; GatheringNode obj83 = new GatheringNode { DataId = 34598u }; - num4 = 1; - List list202 = new List(num4); - CollectionsMarshal.SetCount(list202, num4); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new GatheringLocation + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = new GatheringLocation { Position = new Vector3(518.5205f, 9.694121f, -223.9382f), MinimumAngle = 65, @@ -22636,25 +19284,20 @@ public static class AssemblyGatheringLocationLoader reference145 = obj83; gatheringNodeGroup62.Nodes = list201; reference144 = gatheringNodeGroup62; - index++; - ref GatheringNodeGroup reference146 = ref span192[index]; + ref GatheringNodeGroup reference146 = ref span58[5]; GatheringNodeGroup gatheringNodeGroup63 = new GatheringNodeGroup(); num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - num3 = 0; - ref GatheringNode reference147 = ref span203[num3]; + ref GatheringNode reference147 = ref CollectionsMarshal.AsSpan(list203)[0]; GatheringNode obj84 = new GatheringNode { DataId = 34602u }; - index2 = 1; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num4 = 0; - span204[num4] = new GatheringLocation + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = new GatheringLocation { Position = new Vector3(480.2552f, 10.94543f, -234.4949f), MinimumAngle = 95, @@ -22667,47 +19310,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot19.Groups = list192; AddLocation(955, gatheringRoot19); GatheringRoot gatheringRoot20 = new GatheringRoot(); - index = 1; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - span205[num] = "liza"; + num = 1; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + CollectionsMarshal.AsSpan(list205)[0] = "liza"; gatheringRoot20.Author = list205; num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = new QuestStep(EInteractionType.None, null, null, 1187) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot20.Steps = list206; gatheringRoot20.FlyBetweenNodes = false; - index = 6; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref GatheringNodeGroup reference148 = ref span207[num]; + num = 6; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span59 = CollectionsMarshal.AsSpan(list207); + ref GatheringNodeGroup reference148 = ref span59[0]; GatheringNodeGroup gatheringNodeGroup64 = new GatheringNodeGroup(); - num3 = 1; - List list208 = new List(num3); - CollectionsMarshal.SetCount(list208, num3); - Span span208 = CollectionsMarshal.AsSpan(list208); - num2 = 0; - ref GatheringNode reference149 = ref span208[num2]; + num2 = 1; + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + ref GatheringNode reference149 = ref CollectionsMarshal.AsSpan(list208)[0]; GatheringNode obj85 = new GatheringNode { DataId = 34646u }; - num4 = 1; - List list209 = new List(num4); - CollectionsMarshal.SetCount(list209, num4); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new GatheringLocation + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + CollectionsMarshal.AsSpan(list209)[0] = new GatheringLocation { Position = new Vector3(227.4615f, -89.93336f, -225.4792f), MinimumAngle = 150, @@ -22717,25 +19351,20 @@ public static class AssemblyGatheringLocationLoader reference149 = obj85; gatheringNodeGroup64.Nodes = list208; reference148 = gatheringNodeGroup64; - num++; - ref GatheringNodeGroup reference150 = ref span207[num]; + ref GatheringNodeGroup reference150 = ref span59[1]; GatheringNodeGroup gatheringNodeGroup65 = new GatheringNodeGroup(); num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - ref GatheringNode reference151 = ref span210[num3]; + ref GatheringNode reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; GatheringNode obj86 = new GatheringNode { DataId = 34641u }; - index2 = 1; - List list211 = new List(index2); - CollectionsMarshal.SetCount(list211, index2); - Span span211 = CollectionsMarshal.AsSpan(list211); - num4 = 0; - span211[num4] = new GatheringLocation + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + CollectionsMarshal.AsSpan(list211)[0] = new GatheringLocation { Position = new Vector3(249.5856f, -97.79176f, -217.3474f), MinimumAngle = 135, @@ -22745,25 +19374,20 @@ public static class AssemblyGatheringLocationLoader reference151 = obj86; gatheringNodeGroup65.Nodes = list210; reference150 = gatheringNodeGroup65; - num++; - ref GatheringNodeGroup reference152 = ref span207[num]; + ref GatheringNodeGroup reference152 = ref span59[2]; GatheringNodeGroup gatheringNodeGroup66 = new GatheringNodeGroup(); - num3 = 1; - List list212 = new List(num3); - CollectionsMarshal.SetCount(list212, num3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - ref GatheringNode reference153 = ref span212[num2]; + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + ref GatheringNode reference153 = ref CollectionsMarshal.AsSpan(list212)[0]; GatheringNode obj87 = new GatheringNode { DataId = 34642u }; - num4 = 1; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new GatheringLocation + num3 = 1; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + CollectionsMarshal.AsSpan(list213)[0] = new GatheringLocation { Position = new Vector3(257.8141f, -99.51778f, -217.7757f), MinimumAngle = 130, @@ -22773,26 +19397,21 @@ public static class AssemblyGatheringLocationLoader reference153 = obj87; gatheringNodeGroup66.Nodes = list212; reference152 = gatheringNodeGroup66; - num++; - ref GatheringNodeGroup reference154 = ref span207[num]; + ref GatheringNodeGroup reference154 = ref span59[3]; GatheringNodeGroup gatheringNodeGroup67 = new GatheringNodeGroup(); num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - num3 = 0; - ref GatheringNode reference155 = ref span214[num3]; + ref GatheringNode reference155 = ref CollectionsMarshal.AsSpan(list214)[0]; GatheringNode obj88 = new GatheringNode { DataId = 34643u, Fly = true }; - index2 = 1; - List list215 = new List(index2); - CollectionsMarshal.SetCount(list215, index2); - Span span215 = CollectionsMarshal.AsSpan(list215); - num4 = 0; - span215[num4] = new GatheringLocation + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + CollectionsMarshal.AsSpan(list215)[0] = new GatheringLocation { Position = new Vector3(274.7205f, -99.65348f, -201.6824f), MinimumAngle = 220, @@ -22802,25 +19421,20 @@ public static class AssemblyGatheringLocationLoader reference155 = obj88; gatheringNodeGroup67.Nodes = list214; reference154 = gatheringNodeGroup67; - num++; - ref GatheringNodeGroup reference156 = ref span207[num]; + ref GatheringNodeGroup reference156 = ref span59[4]; GatheringNodeGroup gatheringNodeGroup68 = new GatheringNodeGroup(); - num3 = 1; - List list216 = new List(num3); - CollectionsMarshal.SetCount(list216, num3); - Span span216 = CollectionsMarshal.AsSpan(list216); - num2 = 0; - ref GatheringNode reference157 = ref span216[num2]; + num2 = 1; + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + ref GatheringNode reference157 = ref CollectionsMarshal.AsSpan(list216)[0]; GatheringNode obj89 = new GatheringNode { DataId = 34644u }; - num4 = 1; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new GatheringLocation + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + CollectionsMarshal.AsSpan(list217)[0] = new GatheringLocation { Position = new Vector3(278.0735f, -101.2599f, -194.8121f), MinimumAngle = 200, @@ -22830,25 +19444,20 @@ public static class AssemblyGatheringLocationLoader reference157 = obj89; gatheringNodeGroup68.Nodes = list216; reference156 = gatheringNodeGroup68; - num++; - ref GatheringNodeGroup reference158 = ref span207[num]; + ref GatheringNodeGroup reference158 = ref span59[5]; GatheringNodeGroup gatheringNodeGroup69 = new GatheringNodeGroup(); num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num3 = 0; - ref GatheringNode reference159 = ref span218[num3]; + ref GatheringNode reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; GatheringNode obj90 = new GatheringNode { DataId = 34645u }; - index2 = 1; - List list219 = new List(index2); - CollectionsMarshal.SetCount(list219, index2); - Span span219 = CollectionsMarshal.AsSpan(list219); - num4 = 0; - span219[num4] = new GatheringLocation + num3 = 1; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + CollectionsMarshal.AsSpan(list219)[0] = new GatheringLocation { Position = new Vector3(308.4911f, -100.6525f, -174.6859f), MinimumAngle = 145, @@ -22864,16 +19473,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span220 = CollectionsMarshal.AsSpan(list220); - index = 0; - span220[index] = "liza"; + CollectionsMarshal.AsSpan(list220)[0] = "liza"; gatheringRoot21.Author = list220; - 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) + num = 1; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; @@ -22881,26 +19486,21 @@ public static class AssemblyGatheringLocationLoader num = 6; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - ref GatheringNodeGroup reference160 = ref span222[index]; + Span span60 = CollectionsMarshal.AsSpan(list222); + ref GatheringNodeGroup reference160 = ref span60[0]; GatheringNodeGroup gatheringNodeGroup70 = new GatheringNodeGroup(); - num3 = 1; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref GatheringNode reference161 = ref span223[num2]; + num2 = 1; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + ref GatheringNode reference161 = ref CollectionsMarshal.AsSpan(list223)[0]; GatheringNode obj91 = new GatheringNode { DataId = 34721u }; - num4 = 1; - List list224 = new List(num4); - CollectionsMarshal.SetCount(list224, num4); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new GatheringLocation + num3 = 1; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + CollectionsMarshal.AsSpan(list224)[0] = new GatheringLocation { Position = new Vector3(663.934f, 25.09505f, -87.81284f), MinimumAngle = -30, @@ -22910,25 +19510,20 @@ public static class AssemblyGatheringLocationLoader reference161 = obj91; gatheringNodeGroup70.Nodes = list223; reference160 = gatheringNodeGroup70; - index++; - ref GatheringNodeGroup reference162 = ref span222[index]; + ref GatheringNodeGroup reference162 = ref span60[1]; GatheringNodeGroup gatheringNodeGroup71 = new GatheringNodeGroup(); num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - num3 = 0; - ref GatheringNode reference163 = ref span225[num3]; + ref GatheringNode reference163 = ref CollectionsMarshal.AsSpan(list225)[0]; GatheringNode obj92 = new GatheringNode { DataId = 34722u }; - index2 = 1; - List list226 = new List(index2); - CollectionsMarshal.SetCount(list226, index2); - Span span226 = CollectionsMarshal.AsSpan(list226); - num4 = 0; - span226[num4] = new GatheringLocation + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + CollectionsMarshal.AsSpan(list226)[0] = new GatheringLocation { Position = new Vector3(652.5192f, 21.87234f, -111.9597f), MinimumAngle = 195, @@ -22938,25 +19533,20 @@ public static class AssemblyGatheringLocationLoader reference163 = obj92; gatheringNodeGroup71.Nodes = list225; reference162 = gatheringNodeGroup71; - index++; - ref GatheringNodeGroup reference164 = ref span222[index]; + ref GatheringNodeGroup reference164 = ref span60[2]; GatheringNodeGroup gatheringNodeGroup72 = new GatheringNodeGroup(); - num3 = 1; - List list227 = new List(num3); - CollectionsMarshal.SetCount(list227, num3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num2 = 0; - ref GatheringNode reference165 = ref span227[num2]; + num2 = 1; + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + ref GatheringNode reference165 = ref CollectionsMarshal.AsSpan(list227)[0]; GatheringNode obj93 = new GatheringNode { DataId = 34723u }; - num4 = 1; - List list228 = new List(num4); - CollectionsMarshal.SetCount(list228, num4); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new GatheringLocation + num3 = 1; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = new GatheringLocation { Position = new Vector3(605.4673f, 22.40212f, -91.82993f), MinimumAngle = 220, @@ -22966,25 +19556,20 @@ public static class AssemblyGatheringLocationLoader reference165 = obj93; gatheringNodeGroup72.Nodes = list227; reference164 = gatheringNodeGroup72; - index++; - ref GatheringNodeGroup reference166 = ref span222[index]; + ref GatheringNodeGroup reference166 = ref span60[3]; GatheringNodeGroup gatheringNodeGroup73 = new GatheringNodeGroup(); num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - num3 = 0; - ref GatheringNode reference167 = ref span229[num3]; + ref GatheringNode reference167 = ref CollectionsMarshal.AsSpan(list229)[0]; GatheringNode obj94 = new GatheringNode { DataId = 34724u }; - index2 = 1; - List list230 = new List(index2); - CollectionsMarshal.SetCount(list230, index2); - Span span230 = CollectionsMarshal.AsSpan(list230); - num4 = 0; - span230[num4] = new GatheringLocation + num3 = 1; + List list230 = new List(num3); + CollectionsMarshal.SetCount(list230, num3); + CollectionsMarshal.AsSpan(list230)[0] = new GatheringLocation { Position = new Vector3(547.7242f, 17.74087f, -106.2755f), MinimumAngle = 45, @@ -22994,25 +19579,20 @@ public static class AssemblyGatheringLocationLoader reference167 = obj94; gatheringNodeGroup73.Nodes = list229; reference166 = gatheringNodeGroup73; - index++; - ref GatheringNodeGroup reference168 = ref span222[index]; + ref GatheringNodeGroup reference168 = ref span60[4]; GatheringNodeGroup gatheringNodeGroup74 = new GatheringNodeGroup(); - num3 = 1; - List list231 = new List(num3); - CollectionsMarshal.SetCount(list231, num3); - Span span231 = CollectionsMarshal.AsSpan(list231); - num2 = 0; - ref GatheringNode reference169 = ref span231[num2]; + num2 = 1; + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + ref GatheringNode reference169 = ref CollectionsMarshal.AsSpan(list231)[0]; GatheringNode obj95 = new GatheringNode { DataId = 34725u }; - num4 = 1; - List list232 = new List(num4); - CollectionsMarshal.SetCount(list232, num4); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new GatheringLocation + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + CollectionsMarshal.AsSpan(list232)[0] = new GatheringLocation { Position = new Vector3(534.3469f, 18.59627f, -78.46846f), MinimumAngle = -20, @@ -23022,25 +19602,20 @@ public static class AssemblyGatheringLocationLoader reference169 = obj95; gatheringNodeGroup74.Nodes = list231; reference168 = gatheringNodeGroup74; - index++; - ref GatheringNodeGroup reference170 = ref span222[index]; + ref GatheringNodeGroup reference170 = ref span60[5]; GatheringNodeGroup gatheringNodeGroup75 = new GatheringNodeGroup(); num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - num3 = 0; - ref GatheringNode reference171 = ref span233[num3]; + ref GatheringNode reference171 = ref CollectionsMarshal.AsSpan(list233)[0]; GatheringNode obj96 = new GatheringNode { DataId = 34726u }; - index2 = 1; - List list234 = new List(index2); - CollectionsMarshal.SetCount(list234, index2); - Span span234 = CollectionsMarshal.AsSpan(list234); - num4 = 0; - span234[num4] = new GatheringLocation + num3 = 1; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + CollectionsMarshal.AsSpan(list234)[0] = new GatheringLocation { Position = new Vector3(485.1973f, 17.44523f, -79.501f), MinimumAngle = -55, @@ -23053,46 +19628,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot21.Groups = list222; AddLocation(970, gatheringRoot21); GatheringRoot gatheringRoot22 = new GatheringRoot(); - index = 1; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - span235[num] = "liza"; + num = 1; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + CollectionsMarshal.AsSpan(list235)[0] = "liza"; gatheringRoot22.Author = list235; num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = new QuestStep(EInteractionType.None, null, null, 1187) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot22.Steps = list236; - index = 3; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref GatheringNodeGroup reference172 = ref span237[num]; + num = 3; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span61 = CollectionsMarshal.AsSpan(list237); + ref GatheringNodeGroup reference172 = ref span61[0]; GatheringNodeGroup gatheringNodeGroup76 = new GatheringNodeGroup(); - num3 = 2; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref GatheringNode reference173 = ref span238[num2]; + num2 = 2; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + Span span62 = CollectionsMarshal.AsSpan(list238); + ref GatheringNode reference173 = ref span62[0]; GatheringNode obj97 = new GatheringNode { DataId = 34749u }; - num4 = 1; - List list239 = new List(num4); - CollectionsMarshal.SetCount(list239, num4); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new GatheringLocation + num3 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + CollectionsMarshal.AsSpan(list239)[0] = new GatheringLocation { Position = new Vector3(-392.813f, -47.04364f, -386.862f), MinimumAngle = -10, @@ -23100,32 +19667,28 @@ public static class AssemblyGatheringLocationLoader }; obj97.Locations = list239; reference173 = obj97; - num2++; - ref GatheringNode reference174 = ref span238[num2]; + ref GatheringNode reference174 = ref span62[1]; GatheringNode obj98 = new GatheringNode { DataId = 34750u }; - index2 = 3; - List list240 = new List(index2); - CollectionsMarshal.SetCount(list240, index2); - Span span240 = CollectionsMarshal.AsSpan(list240); - num4 = 0; - span240[num4] = new GatheringLocation + num3 = 3; + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + Span span63 = CollectionsMarshal.AsSpan(list240); + span63[0] = new GatheringLocation { Position = new Vector3(-402.8987f, -45.59287f, -390.7613f), MinimumAngle = 220, MaximumAngle = 305 }; - num4++; - span240[num4] = new GatheringLocation + span63[1] = new GatheringLocation { Position = new Vector3(-388.9036f, -46.86702f, -381.3985f), MinimumAngle = -50, MaximumAngle = 210 }; - num4++; - span240[num4] = new GatheringLocation + span63[2] = new GatheringLocation { Position = new Vector3(-394.2657f, -47.86026f, -394.9654f), MinimumAngle = -145, @@ -23135,25 +19698,21 @@ public static class AssemblyGatheringLocationLoader reference174 = obj98; gatheringNodeGroup76.Nodes = list238; reference172 = gatheringNodeGroup76; - num++; - ref GatheringNodeGroup reference175 = ref span237[num]; + ref GatheringNodeGroup reference175 = ref span61[1]; GatheringNodeGroup gatheringNodeGroup77 = new GatheringNodeGroup(); num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - num3 = 0; - ref GatheringNode reference176 = ref span241[num3]; + Span span64 = CollectionsMarshal.AsSpan(list241); + ref GatheringNode reference176 = ref span64[0]; GatheringNode obj99 = new GatheringNode { DataId = 34753u }; - num4 = 1; - List list242 = new List(num4); - CollectionsMarshal.SetCount(list242, num4); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new GatheringLocation + num3 = 1; + List list242 = new List(num3); + CollectionsMarshal.SetCount(list242, num3); + CollectionsMarshal.AsSpan(list242)[0] = new GatheringLocation { Position = new Vector3(-541.7726f, -22.952f, -517.8604f), MinimumAngle = 215, @@ -23161,32 +19720,28 @@ public static class AssemblyGatheringLocationLoader }; obj99.Locations = list242; reference176 = obj99; - num3++; - ref GatheringNode reference177 = ref span241[num3]; + ref GatheringNode reference177 = ref span64[1]; GatheringNode obj100 = new GatheringNode { DataId = 34754u }; - index2 = 3; - List list243 = new List(index2); - CollectionsMarshal.SetCount(list243, index2); - Span span243 = CollectionsMarshal.AsSpan(list243); - num4 = 0; - span243[num4] = new GatheringLocation + num3 = 3; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + Span span65 = CollectionsMarshal.AsSpan(list243); + span65[0] = new GatheringLocation { Position = new Vector3(-522.9433f, -25.87319f, -537.3257f), MinimumAngle = 225, MaximumAngle = 360 }; - num4++; - span243[num4] = new GatheringLocation + span65[1] = new GatheringLocation { Position = new Vector3(-532.3487f, -22.79275f, -510.8069f), MinimumAngle = 135, MaximumAngle = 270 }; - num4++; - span243[num4] = new GatheringLocation + span65[2] = new GatheringLocation { Position = new Vector3(-536.2922f, -23.79476f, -526.0406f), MinimumAngle = -110, @@ -23196,25 +19751,21 @@ public static class AssemblyGatheringLocationLoader reference177 = obj100; gatheringNodeGroup77.Nodes = list241; reference175 = gatheringNodeGroup77; - num++; - ref GatheringNodeGroup reference178 = ref span237[num]; + ref GatheringNodeGroup reference178 = ref span61[2]; GatheringNodeGroup gatheringNodeGroup78 = new GatheringNodeGroup(); - num3 = 2; - List list244 = new List(num3); - CollectionsMarshal.SetCount(list244, num3); - Span span244 = CollectionsMarshal.AsSpan(list244); - num2 = 0; - ref GatheringNode reference179 = ref span244[num2]; + num2 = 2; + List list244 = new List(num2); + CollectionsMarshal.SetCount(list244, num2); + Span span66 = CollectionsMarshal.AsSpan(list244); + ref GatheringNode reference179 = ref span66[0]; GatheringNode obj101 = new GatheringNode { DataId = 34751u }; - num4 = 1; - List list245 = new List(num4); - CollectionsMarshal.SetCount(list245, num4); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new GatheringLocation + num3 = 1; + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + CollectionsMarshal.AsSpan(list245)[0] = new GatheringLocation { Position = new Vector3(-448.8079f, -14.9586f, -658.0133f), MinimumAngle = -45, @@ -23222,32 +19773,28 @@ public static class AssemblyGatheringLocationLoader }; obj101.Locations = list245; reference179 = obj101; - num2++; - ref GatheringNode reference180 = ref span244[num2]; + ref GatheringNode reference180 = ref span66[1]; GatheringNode obj102 = new GatheringNode { DataId = 34752u }; - index2 = 3; - List list246 = new List(index2); - CollectionsMarshal.SetCount(list246, index2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num4 = 0; - span246[num4] = new GatheringLocation + num3 = 3; + List list246 = new List(num3); + CollectionsMarshal.SetCount(list246, num3); + Span span67 = CollectionsMarshal.AsSpan(list246); + span67[0] = new GatheringLocation { Position = new Vector3(-452.2813f, -12.43015f, -665.0275f), MinimumAngle = 0, MaximumAngle = 150 }; - num4++; - span246[num4] = new GatheringLocation + span67[1] = new GatheringLocation { Position = new Vector3(-431.5875f, -16.68724f, -656.528f), MinimumAngle = -35, MaximumAngle = 90 }; - num4++; - span246[num4] = new GatheringLocation + span67[2] = new GatheringLocation { Position = new Vector3(-439.8079f, -16.67447f, -654.6749f), MinimumAngle = -45, @@ -23263,16 +19810,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "liza"; + CollectionsMarshal.AsSpan(list247)[0] = "liza"; gatheringRoot23.Author = list247; - 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) + num = 1; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -23280,26 +19823,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span249 = CollectionsMarshal.AsSpan(list249); - index = 0; - ref GatheringNodeGroup reference181 = ref span249[index]; + Span span68 = CollectionsMarshal.AsSpan(list249); + ref GatheringNodeGroup reference181 = ref span68[0]; GatheringNodeGroup gatheringNodeGroup79 = new GatheringNodeGroup(); num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - num3 = 0; - ref GatheringNode reference182 = ref span250[num3]; + Span span69 = CollectionsMarshal.AsSpan(list250); + ref GatheringNode reference182 = ref span69[0]; GatheringNode obj103 = new GatheringNode { DataId = 34759u }; - num4 = 1; - List list251 = new List(num4); - CollectionsMarshal.SetCount(list251, num4); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new GatheringLocation + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + CollectionsMarshal.AsSpan(list251)[0] = new GatheringLocation { Position = new Vector3(-120.3785f, 30.38074f, 396.7192f), MinimumAngle = 125, @@ -23307,32 +19846,28 @@ public static class AssemblyGatheringLocationLoader }; obj103.Locations = list251; reference182 = obj103; - num3++; - ref GatheringNode reference183 = ref span250[num3]; + ref GatheringNode reference183 = ref span69[1]; GatheringNode obj104 = new GatheringNode { DataId = 34760u }; - index2 = 3; - List list252 = new List(index2); - CollectionsMarshal.SetCount(list252, index2); - Span span252 = CollectionsMarshal.AsSpan(list252); - num4 = 0; - span252[num4] = new GatheringLocation + num3 = 3; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + Span span70 = CollectionsMarshal.AsSpan(list252); + span70[0] = new GatheringLocation { Position = new Vector3(-133.0528f, 32.64423f, 399.1742f), MinimumAngle = 85, MaximumAngle = 235 }; - num4++; - span252[num4] = new GatheringLocation + span70[1] = new GatheringLocation { Position = new Vector3(-108.2323f, 32.42883f, 407.0955f), MinimumAngle = 150, MaximumAngle = 290 }; - num4++; - span252[num4] = new GatheringLocation + span70[2] = new GatheringLocation { Position = new Vector3(-102.1287f, 35.23303f, 416.1898f), MinimumAngle = 155, @@ -23342,25 +19877,21 @@ public static class AssemblyGatheringLocationLoader reference183 = obj104; gatheringNodeGroup79.Nodes = list250; reference181 = gatheringNodeGroup79; - index++; - ref GatheringNodeGroup reference184 = ref span249[index]; + ref GatheringNodeGroup reference184 = ref span68[1]; GatheringNodeGroup gatheringNodeGroup80 = new GatheringNodeGroup(); - num3 = 2; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span253 = CollectionsMarshal.AsSpan(list253); - num2 = 0; - ref GatheringNode reference185 = ref span253[num2]; + num2 = 2; + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + Span span71 = CollectionsMarshal.AsSpan(list253); + ref GatheringNode reference185 = ref span71[0]; GatheringNode obj105 = new GatheringNode { DataId = 34755u }; - num4 = 1; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new GatheringLocation + num3 = 1; + List list254 = new List(num3); + CollectionsMarshal.SetCount(list254, num3); + CollectionsMarshal.AsSpan(list254)[0] = new GatheringLocation { Position = new Vector3(-171.2521f, 46.49414f, 142.4124f), MinimumAngle = -80, @@ -23368,32 +19899,28 @@ public static class AssemblyGatheringLocationLoader }; obj105.Locations = list254; reference185 = obj105; - num2++; - ref GatheringNode reference186 = ref span253[num2]; + ref GatheringNode reference186 = ref span71[1]; GatheringNode obj106 = new GatheringNode { DataId = 34756u }; - index2 = 3; - List list255 = new List(index2); - CollectionsMarshal.SetCount(list255, index2); - Span span255 = CollectionsMarshal.AsSpan(list255); - num4 = 0; - span255[num4] = new GatheringLocation + num3 = 3; + List list255 = new List(num3); + CollectionsMarshal.SetCount(list255, num3); + Span span72 = CollectionsMarshal.AsSpan(list255); + span72[0] = new GatheringLocation { Position = new Vector3(-150.6633f, 47.30524f, 116.4768f), MinimumAngle = -135, MaximumAngle = 0 }; - num4++; - span255[num4] = new GatheringLocation + span72[1] = new GatheringLocation { Position = new Vector3(-164.8948f, 47.17537f, 138.1664f), MinimumAngle = -60, MaximumAngle = 20 }; - num4++; - span255[num4] = new GatheringLocation + span72[2] = new GatheringLocation { Position = new Vector3(-157.4637f, 46.7111f, 126.0358f), MinimumAngle = -90, @@ -23403,25 +19930,21 @@ public static class AssemblyGatheringLocationLoader reference186 = obj106; gatheringNodeGroup80.Nodes = list253; reference184 = gatheringNodeGroup80; - index++; - ref GatheringNodeGroup reference187 = ref span249[index]; + ref GatheringNodeGroup reference187 = ref span68[2]; GatheringNodeGroup gatheringNodeGroup81 = new GatheringNodeGroup(); num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - num3 = 0; - ref GatheringNode reference188 = ref span256[num3]; + Span span73 = CollectionsMarshal.AsSpan(list256); + ref GatheringNode reference188 = ref span73[0]; GatheringNode obj107 = new GatheringNode { DataId = 34757u }; - num4 = 1; - List list257 = new List(num4); - CollectionsMarshal.SetCount(list257, num4); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new GatheringLocation + num3 = 1; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + CollectionsMarshal.AsSpan(list257)[0] = new GatheringLocation { Position = new Vector3(-313.222f, 62.79089f, 335.1643f), MinimumAngle = 195, @@ -23429,32 +19952,28 @@ public static class AssemblyGatheringLocationLoader }; obj107.Locations = list257; reference188 = obj107; - num3++; - ref GatheringNode reference189 = ref span256[num3]; + ref GatheringNode reference189 = ref span73[1]; GatheringNode obj108 = new GatheringNode { DataId = 34758u }; - index2 = 3; - List list258 = new List(index2); - CollectionsMarshal.SetCount(list258, index2); - Span span258 = CollectionsMarshal.AsSpan(list258); - num4 = 0; - span258[num4] = new GatheringLocation + num3 = 3; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + Span span74 = CollectionsMarshal.AsSpan(list258); + span74[0] = new GatheringLocation { Position = new Vector3(-309.2621f, 71.25529f, 367.5573f), MinimumAngle = 190, MaximumAngle = 300 }; - num4++; - span258[num4] = new GatheringLocation + span74[1] = new GatheringLocation { Position = new Vector3(-323.9727f, 58.3564f, 295.3081f), MinimumAngle = 205, MaximumAngle = 325 }; - num4++; - span258[num4] = new GatheringLocation + span74[2] = new GatheringLocation { Position = new Vector3(-305.3915f, 72.10517f, 385.1654f), MinimumAngle = 210, @@ -23467,46 +19986,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot23.Groups = list249; AddLocation(975, gatheringRoot23); GatheringRoot gatheringRoot24 = new GatheringRoot(); - index = 1; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - span259[num] = "liza"; + num = 1; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + CollectionsMarshal.AsSpan(list259)[0] = "liza"; gatheringRoot24.Author = list259; num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - Span span260 = CollectionsMarshal.AsSpan(list260); - index = 0; - span260[index] = new QuestStep(EInteractionType.None, null, null, 1188) + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; gatheringRoot24.Steps = list260; - index = 3; - List list261 = new List(index); - CollectionsMarshal.SetCount(list261, index); - Span span261 = CollectionsMarshal.AsSpan(list261); - num = 0; - ref GatheringNodeGroup reference190 = ref span261[num]; + num = 3; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span75 = CollectionsMarshal.AsSpan(list261); + ref GatheringNodeGroup reference190 = ref span75[0]; GatheringNodeGroup gatheringNodeGroup82 = new GatheringNodeGroup(); - num3 = 2; - List list262 = new List(num3); - CollectionsMarshal.SetCount(list262, num3); - Span span262 = CollectionsMarshal.AsSpan(list262); - num2 = 0; - ref GatheringNode reference191 = ref span262[num2]; + num2 = 2; + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + Span span76 = CollectionsMarshal.AsSpan(list262); + ref GatheringNode reference191 = ref span76[0]; GatheringNode obj109 = new GatheringNode { DataId = 34763u }; - num4 = 1; - List list263 = new List(num4); - CollectionsMarshal.SetCount(list263, num4); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new GatheringLocation + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = new GatheringLocation { Position = new Vector3(-628.5966f, 3.089153f, -417.3812f), MinimumAngle = -80, @@ -23514,32 +20025,28 @@ public static class AssemblyGatheringLocationLoader }; obj109.Locations = list263; reference191 = obj109; - num2++; - ref GatheringNode reference192 = ref span262[num2]; + ref GatheringNode reference192 = ref span76[1]; GatheringNode obj110 = new GatheringNode { DataId = 34764u }; - index2 = 3; - List list264 = new List(index2); - CollectionsMarshal.SetCount(list264, index2); - Span span264 = CollectionsMarshal.AsSpan(list264); - num4 = 0; - span264[num4] = new GatheringLocation + num3 = 3; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + Span span77 = CollectionsMarshal.AsSpan(list264); + span77[0] = new GatheringLocation { Position = new Vector3(-644.7781f, 2.261729f, -416.9234f), MinimumAngle = -70, MaximumAngle = 100 }; - num4++; - span264[num4] = new GatheringLocation + span77[1] = new GatheringLocation { Position = new Vector3(-621.8856f, 3.151928f, -418.6934f), MinimumAngle = -85, MaximumAngle = 75 }; - num4++; - span264[num4] = new GatheringLocation + span77[2] = new GatheringLocation { Position = new Vector3(-632.9135f, 2.716663f, -417.9657f), MinimumAngle = -55, @@ -23549,39 +20056,34 @@ public static class AssemblyGatheringLocationLoader reference192 = obj110; gatheringNodeGroup82.Nodes = list262; reference190 = gatheringNodeGroup82; - num++; - ref GatheringNodeGroup reference193 = ref span261[num]; + ref GatheringNodeGroup reference193 = ref span75[1]; GatheringNodeGroup gatheringNodeGroup83 = new GatheringNodeGroup(); num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - num3 = 0; - ref GatheringNode reference194 = ref span265[num3]; + Span span78 = CollectionsMarshal.AsSpan(list265); + ref GatheringNode reference194 = ref span78[0]; GatheringNode obj111 = new GatheringNode { DataId = 34766u }; - num4 = 3; - List list266 = new List(num4); - CollectionsMarshal.SetCount(list266, num4); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new GatheringLocation + num3 = 3; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + Span span79 = CollectionsMarshal.AsSpan(list266); + span79[0] = new GatheringLocation { Position = new Vector3(-823.1537f, 7.570713f, -344.0435f), MinimumAngle = -150, MaximumAngle = -10 }; - index2++; - span266[index2] = new GatheringLocation + span79[1] = new GatheringLocation { Position = new Vector3(-824.2916f, 8.34999f, -311.9117f), MinimumAngle = 215, MaximumAngle = 345 }; - index2++; - span266[index2] = new GatheringLocation + span79[2] = new GatheringLocation { Position = new Vector3(-825.0306f, 9.265428f, -279.9193f), MinimumAngle = 205, @@ -23589,18 +20091,15 @@ public static class AssemblyGatheringLocationLoader }; obj111.Locations = list266; reference194 = obj111; - num3++; - ref GatheringNode reference195 = ref span265[num3]; + ref GatheringNode reference195 = ref span78[1]; GatheringNode obj112 = new GatheringNode { DataId = 34765u }; - index2 = 1; - List list267 = new List(index2); - CollectionsMarshal.SetCount(list267, index2); - Span span267 = CollectionsMarshal.AsSpan(list267); - num4 = 0; - span267[num4] = new GatheringLocation + num3 = 1; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + CollectionsMarshal.AsSpan(list267)[0] = new GatheringLocation { Position = new Vector3(-824.3366f, 7.884955f, -327.8148f), MinimumAngle = 205, @@ -23610,25 +20109,21 @@ public static class AssemblyGatheringLocationLoader reference195 = obj112; gatheringNodeGroup83.Nodes = list265; reference193 = gatheringNodeGroup83; - num++; - ref GatheringNodeGroup reference196 = ref span261[num]; + ref GatheringNodeGroup reference196 = ref span75[2]; GatheringNodeGroup gatheringNodeGroup84 = new GatheringNodeGroup(); - num3 = 2; - List list268 = new List(num3); - CollectionsMarshal.SetCount(list268, num3); - Span span268 = CollectionsMarshal.AsSpan(list268); - num2 = 0; - ref GatheringNode reference197 = ref span268[num2]; + num2 = 2; + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + Span span80 = CollectionsMarshal.AsSpan(list268); + ref GatheringNode reference197 = ref span80[0]; GatheringNode obj113 = new GatheringNode { DataId = 34761u }; - num4 = 1; - List list269 = new List(num4); - CollectionsMarshal.SetCount(list269, num4); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new GatheringLocation + num3 = 1; + List list269 = new List(num3); + CollectionsMarshal.SetCount(list269, num3); + CollectionsMarshal.AsSpan(list269)[0] = new GatheringLocation { Position = new Vector3(-593.9269f, 3.169262f, -223.1938f), MinimumAngle = 65, @@ -23636,32 +20131,28 @@ public static class AssemblyGatheringLocationLoader }; obj113.Locations = list269; reference197 = obj113; - num2++; - ref GatheringNode reference198 = ref span268[num2]; + ref GatheringNode reference198 = ref span80[1]; GatheringNode obj114 = new GatheringNode { DataId = 34762u }; - index2 = 3; - List list270 = new List(index2); - CollectionsMarshal.SetCount(list270, index2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num4 = 0; - span270[num4] = new GatheringLocation + num3 = 3; + List list270 = new List(num3); + CollectionsMarshal.SetCount(list270, num3); + Span span81 = CollectionsMarshal.AsSpan(list270); + span81[0] = new GatheringLocation { Position = new Vector3(-584.8643f, 3.320522f, -227.3047f), MinimumAngle = 110, MaximumAngle = 245 }; - num4++; - span270[num4] = new GatheringLocation + span81[1] = new GatheringLocation { Position = new Vector3(-602.5651f, 3.251461f, -217.1539f), MinimumAngle = 70, MaximumAngle = 210 }; - num4++; - span270[num4] = new GatheringLocation + span81[2] = new GatheringLocation { Position = new Vector3(-613.296f, 2.557324f, -205.7018f), MinimumAngle = 50, @@ -23677,16 +20168,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "liza"; + CollectionsMarshal.AsSpan(list271)[0] = "liza"; gatheringRoot25.Author = list271; - 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) + num = 1; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -23694,40 +20181,35 @@ public static class AssemblyGatheringLocationLoader num = 3; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - ref GatheringNodeGroup reference199 = ref span273[index]; + Span span82 = CollectionsMarshal.AsSpan(list273); + ref GatheringNodeGroup reference199 = ref span82[0]; GatheringNodeGroup gatheringNodeGroup85 = new GatheringNodeGroup(); num2 = 2; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - ref GatheringNode reference200 = ref span274[num3]; + Span span83 = CollectionsMarshal.AsSpan(list274); + ref GatheringNode reference200 = ref span83[0]; GatheringNode obj115 = new GatheringNode { DataId = 34768u }; - num4 = 3; - List list275 = new List(num4); - CollectionsMarshal.SetCount(list275, num4); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new GatheringLocation + num3 = 3; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + Span span84 = CollectionsMarshal.AsSpan(list275); + span84[0] = new GatheringLocation { Position = new Vector3(-488.7683f, 7.979174f, -200.5838f), MinimumAngle = -35, MaximumAngle = 155 }; - index2++; - span275[index2] = new GatheringLocation + span84[1] = new GatheringLocation { Position = new Vector3(-482.2286f, 5.531401f, -196.1891f), MinimumAngle = -45, MaximumAngle = 85 }; - index2++; - span275[index2] = new GatheringLocation + span84[2] = new GatheringLocation { Position = new Vector3(-471.8323f, 5.569422f, -196.5274f), MinimumAngle = -95, @@ -23735,18 +20217,15 @@ public static class AssemblyGatheringLocationLoader }; obj115.Locations = list275; reference200 = obj115; - num3++; - ref GatheringNode reference201 = ref span274[num3]; + ref GatheringNode reference201 = ref span83[1]; GatheringNode obj116 = new GatheringNode { DataId = 34767u }; - index2 = 1; - List list276 = new List(index2); - CollectionsMarshal.SetCount(list276, index2); - Span span276 = CollectionsMarshal.AsSpan(list276); - num4 = 0; - span276[num4] = new GatheringLocation + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + CollectionsMarshal.AsSpan(list276)[0] = new GatheringLocation { Position = new Vector3(-476.9659f, 6.191905f, -196.2125f), MinimumAngle = -70, @@ -23756,39 +20235,34 @@ public static class AssemblyGatheringLocationLoader reference201 = obj116; gatheringNodeGroup85.Nodes = list274; reference199 = gatheringNodeGroup85; - index++; - ref GatheringNodeGroup reference202 = ref span273[index]; + ref GatheringNodeGroup reference202 = ref span82[1]; GatheringNodeGroup gatheringNodeGroup86 = new GatheringNodeGroup(); - num3 = 2; - List list277 = new List(num3); - CollectionsMarshal.SetCount(list277, num3); - Span span277 = CollectionsMarshal.AsSpan(list277); - num2 = 0; - ref GatheringNode reference203 = ref span277[num2]; + num2 = 2; + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + Span span85 = CollectionsMarshal.AsSpan(list277); + ref GatheringNode reference203 = ref span85[0]; GatheringNode obj117 = new GatheringNode { DataId = 34772u }; - num4 = 3; - List list278 = new List(num4); - CollectionsMarshal.SetCount(list278, num4); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new GatheringLocation + num3 = 3; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + Span span86 = CollectionsMarshal.AsSpan(list278); + span86[0] = new GatheringLocation { Position = new Vector3(-484.7457f, -11.7739f, -35.59686f), MinimumAngle = 115, MaximumAngle = 270 }; - index2++; - span278[index2] = new GatheringLocation + span86[1] = new GatheringLocation { Position = new Vector3(-490.1306f, -12.35526f, -37.11329f), MinimumAngle = 105, MaximumAngle = 280 }; - index2++; - span278[index2] = new GatheringLocation + span86[2] = new GatheringLocation { Position = new Vector3(-465.1013f, -11.11267f, -37.65248f), MinimumAngle = 70, @@ -23798,18 +20272,15 @@ public static class AssemblyGatheringLocationLoader }; obj117.Locations = list278; reference203 = obj117; - num2++; - ref GatheringNode reference204 = ref span277[num2]; + ref GatheringNode reference204 = ref span85[1]; GatheringNode obj118 = new GatheringNode { DataId = 34771u }; - index2 = 1; - List list279 = new List(index2); - CollectionsMarshal.SetCount(list279, index2); - Span span279 = CollectionsMarshal.AsSpan(list279); - num4 = 0; - span279[num4] = new GatheringLocation + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = new GatheringLocation { Position = new Vector3(-474.0215f, -11.19864f, -33.31685f), MinimumAngle = 105, @@ -23821,25 +20292,21 @@ public static class AssemblyGatheringLocationLoader reference204 = obj118; gatheringNodeGroup86.Nodes = list277; reference202 = gatheringNodeGroup86; - index++; - ref GatheringNodeGroup reference205 = ref span273[index]; + ref GatheringNodeGroup reference205 = ref span82[2]; GatheringNodeGroup gatheringNodeGroup87 = new GatheringNodeGroup(); num2 = 2; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - num3 = 0; - ref GatheringNode reference206 = ref span280[num3]; + Span span87 = CollectionsMarshal.AsSpan(list280); + ref GatheringNode reference206 = ref span87[0]; GatheringNode obj119 = new GatheringNode { DataId = 34769u }; - num4 = 1; - List list281 = new List(num4); - CollectionsMarshal.SetCount(list281, num4); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new GatheringLocation + num3 = 1; + List list281 = new List(num3); + CollectionsMarshal.SetCount(list281, num3); + CollectionsMarshal.AsSpan(list281)[0] = new GatheringLocation { Position = new Vector3(-359.9215f, 7.800453f, -75.53547f), MinimumAngle = -5, @@ -23847,32 +20314,28 @@ public static class AssemblyGatheringLocationLoader }; obj119.Locations = list281; reference206 = obj119; - num3++; - ref GatheringNode reference207 = ref span280[num3]; + ref GatheringNode reference207 = ref span87[1]; GatheringNode obj120 = new GatheringNode { DataId = 34770u }; - index2 = 3; - List list282 = new List(index2); - CollectionsMarshal.SetCount(list282, index2); - Span span282 = CollectionsMarshal.AsSpan(list282); - num4 = 0; - span282[num4] = new GatheringLocation + num3 = 3; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + Span span88 = CollectionsMarshal.AsSpan(list282); + span88[0] = new GatheringLocation { Position = new Vector3(-357.9739f, 6.927034f, -74.45865f), MinimumAngle = -20, MaximumAngle = 80 }; - num4++; - span282[num4] = new GatheringLocation + span88[1] = new GatheringLocation { Position = new Vector3(-362.3269f, 8.58064f, -80.35127f), MinimumAngle = 45, MaximumAngle = 105 }; - num4++; - span282[num4] = new GatheringLocation + span88[2] = new GatheringLocation { Position = new Vector3(-362.3572f, 9.697624f, -82.81331f), MinimumAngle = 25, @@ -23885,46 +20348,38 @@ public static class AssemblyGatheringLocationLoader gatheringRoot25.Groups = list273; AddLocation(977, gatheringRoot25); GatheringRoot gatheringRoot26 = new GatheringRoot(); - index = 1; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - span283[num] = "liza"; + num = 1; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + CollectionsMarshal.AsSpan(list283)[0] = "liza"; gatheringRoot26.Author = list283; num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = new QuestStep(EInteractionType.None, null, null, 1190) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.None, null, null, 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; gatheringRoot26.Steps = list284; - index = 3; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref GatheringNodeGroup reference208 = ref span285[num]; + num = 3; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span89 = CollectionsMarshal.AsSpan(list285); + ref GatheringNodeGroup reference208 = ref span89[0]; GatheringNodeGroup gatheringNodeGroup88 = new GatheringNodeGroup(); - num3 = 2; - List list286 = new List(num3); - CollectionsMarshal.SetCount(list286, num3); - Span span286 = CollectionsMarshal.AsSpan(list286); - num2 = 0; - ref GatheringNode reference209 = ref span286[num2]; + num2 = 2; + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + Span span90 = CollectionsMarshal.AsSpan(list286); + ref GatheringNode reference209 = ref span90[0]; GatheringNode obj121 = new GatheringNode { DataId = 34777u }; - num4 = 1; - List list287 = new List(num4); - CollectionsMarshal.SetCount(list287, num4); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - span287[index2] = new GatheringLocation + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + CollectionsMarshal.AsSpan(list287)[0] = new GatheringLocation { Position = new Vector3(395.7766f, -15.0432f, -793.4127f), MinimumAngle = 265, @@ -23932,32 +20387,28 @@ public static class AssemblyGatheringLocationLoader }; obj121.Locations = list287; reference209 = obj121; - num2++; - ref GatheringNode reference210 = ref span286[num2]; + ref GatheringNode reference210 = ref span90[1]; GatheringNode obj122 = new GatheringNode { DataId = 34778u }; - index2 = 3; - List list288 = new List(index2); - CollectionsMarshal.SetCount(list288, index2); - Span span288 = CollectionsMarshal.AsSpan(list288); - num4 = 0; - span288[num4] = new GatheringLocation + num3 = 3; + List list288 = new List(num3); + CollectionsMarshal.SetCount(list288, num3); + Span span91 = CollectionsMarshal.AsSpan(list288); + span91[0] = new GatheringLocation { Position = new Vector3(372.0282f, -16.77722f, -785.652f), MinimumAngle = 255, MaximumAngle = 360 }; - num4++; - span288[num4] = new GatheringLocation + span91[1] = new GatheringLocation { Position = new Vector3(419.309f, -10.25133f, -784.8259f), MinimumAngle = -25, MaximumAngle = 85 }; - num4++; - span288[num4] = new GatheringLocation + span91[2] = new GatheringLocation { Position = new Vector3(410.6989f, -10.9656f, -790.8315f), MinimumAngle = -20, @@ -23967,39 +20418,34 @@ public static class AssemblyGatheringLocationLoader reference210 = obj122; gatheringNodeGroup88.Nodes = list286; reference208 = gatheringNodeGroup88; - num++; - ref GatheringNodeGroup reference211 = ref span285[num]; + ref GatheringNodeGroup reference211 = ref span89[1]; GatheringNodeGroup gatheringNodeGroup89 = new GatheringNodeGroup(); num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - num3 = 0; - ref GatheringNode reference212 = ref span289[num3]; + Span span92 = CollectionsMarshal.AsSpan(list289); + ref GatheringNode reference212 = ref span92[0]; GatheringNode obj123 = new GatheringNode { DataId = 34774u }; - num4 = 3; - List list290 = new List(num4); - CollectionsMarshal.SetCount(list290, num4); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new GatheringLocation + num3 = 3; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + Span span93 = CollectionsMarshal.AsSpan(list290); + span93[0] = new GatheringLocation { Position = new Vector3(594.6921f, -6.424452f, -826.2967f), MinimumAngle = -90, MaximumAngle = 40 }; - index2++; - span290[index2] = new GatheringLocation + span93[1] = new GatheringLocation { Position = new Vector3(618.4105f, -4.948164f, -824.438f), MinimumAngle = -60, MaximumAngle = 60 }; - index2++; - span290[index2] = new GatheringLocation + span93[2] = new GatheringLocation { Position = new Vector3(625.7259f, -4.734236f, -825.9003f), MinimumAngle = -55, @@ -24007,18 +20453,15 @@ public static class AssemblyGatheringLocationLoader }; obj123.Locations = list290; reference212 = obj123; - num3++; - ref GatheringNode reference213 = ref span289[num3]; + ref GatheringNode reference213 = ref span92[1]; GatheringNode obj124 = new GatheringNode { DataId = 34773u }; - index2 = 1; - List list291 = new List(index2); - CollectionsMarshal.SetCount(list291, index2); - Span span291 = CollectionsMarshal.AsSpan(list291); - num4 = 0; - span291[num4] = new GatheringLocation + num3 = 1; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + CollectionsMarshal.AsSpan(list291)[0] = new GatheringLocation { Position = new Vector3(606.1035f, -5.781946f, -827.3289f), MinimumAngle = -40, @@ -24028,39 +20471,34 @@ public static class AssemblyGatheringLocationLoader reference213 = obj124; gatheringNodeGroup89.Nodes = list289; reference211 = gatheringNodeGroup89; - num++; - ref GatheringNodeGroup reference214 = ref span285[num]; + ref GatheringNodeGroup reference214 = ref span89[2]; GatheringNodeGroup gatheringNodeGroup90 = new GatheringNodeGroup(); - num3 = 2; - List list292 = new List(num3); - CollectionsMarshal.SetCount(list292, num3); - Span span292 = CollectionsMarshal.AsSpan(list292); - num2 = 0; - ref GatheringNode reference215 = ref span292[num2]; + num2 = 2; + List list292 = new List(num2); + CollectionsMarshal.SetCount(list292, num2); + Span span94 = CollectionsMarshal.AsSpan(list292); + ref GatheringNode reference215 = ref span94[0]; GatheringNode obj125 = new GatheringNode { DataId = 34776u }; - num4 = 3; - List list293 = new List(num4); - CollectionsMarshal.SetCount(list293, num4); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new GatheringLocation + num3 = 3; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + Span span95 = CollectionsMarshal.AsSpan(list293); + span95[0] = new GatheringLocation { Position = new Vector3(729.9794f, -6.851574f, -746.845f), MinimumAngle = 0, MaximumAngle = 155 }; - index2++; - span293[index2] = new GatheringLocation + span95[1] = new GatheringLocation { Position = new Vector3(730.2341f, -6.406585f, -724.3364f), MinimumAngle = 0, MaximumAngle = 165 }; - index2++; - span293[index2] = new GatheringLocation + span95[2] = new GatheringLocation { Position = new Vector3(732.0835f, -6.737461f, -738.1154f), MinimumAngle = 35, @@ -24068,18 +20506,15 @@ public static class AssemblyGatheringLocationLoader }; obj125.Locations = list293; reference215 = obj125; - num2++; - ref GatheringNode reference216 = ref span292[num2]; + ref GatheringNode reference216 = ref span94[1]; GatheringNode obj126 = new GatheringNode { DataId = 34775u }; - index2 = 1; - List list294 = new List(index2); - CollectionsMarshal.SetCount(list294, index2); - Span span294 = CollectionsMarshal.AsSpan(list294); - num4 = 0; - span294[num4] = new GatheringLocation + num3 = 1; + List list294 = new List(num3); + CollectionsMarshal.SetCount(list294, num3); + CollectionsMarshal.AsSpan(list294)[0] = new GatheringLocation { Position = new Vector3(730.0588f, -6.698792f, -733.2113f), MinimumAngle = 25, @@ -24095,16 +20530,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; gatheringRoot27.Author = list295; - 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) + num = 1; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -24112,26 +20543,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span297 = CollectionsMarshal.AsSpan(list297); - index = 0; - ref GatheringNodeGroup reference217 = ref span297[index]; + Span span96 = CollectionsMarshal.AsSpan(list297); + ref GatheringNodeGroup reference217 = ref span96[0]; GatheringNodeGroup gatheringNodeGroup91 = new GatheringNodeGroup(); num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - num3 = 0; - ref GatheringNode reference218 = ref span298[num3]; + Span span97 = CollectionsMarshal.AsSpan(list298); + ref GatheringNode reference218 = ref span97[0]; GatheringNode obj127 = new GatheringNode { DataId = 34783u }; - num4 = 1; - List list299 = new List(num4); - CollectionsMarshal.SetCount(list299, num4); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new GatheringLocation + num3 = 1; + List list299 = new List(num3); + CollectionsMarshal.SetCount(list299, num3); + CollectionsMarshal.AsSpan(list299)[0] = new GatheringLocation { Position = new Vector3(-273.0702f, 15.09387f, -443.001f), MinimumAngle = -15, @@ -24139,32 +20566,28 @@ public static class AssemblyGatheringLocationLoader }; obj127.Locations = list299; reference218 = obj127; - num3++; - ref GatheringNode reference219 = ref span298[num3]; + ref GatheringNode reference219 = ref span97[1]; GatheringNode obj128 = new GatheringNode { DataId = 34784u }; - index2 = 3; - List list300 = new List(index2); - CollectionsMarshal.SetCount(list300, index2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num4 = 0; - span300[num4] = new GatheringLocation + num3 = 3; + List list300 = new List(num3); + CollectionsMarshal.SetCount(list300, num3); + Span span98 = CollectionsMarshal.AsSpan(list300); + span98[0] = new GatheringLocation { Position = new Vector3(-268.5216f, 15.18526f, -438.1259f), MinimumAngle = -160, MaximumAngle = 100 }; - num4++; - span300[num4] = new GatheringLocation + span98[1] = new GatheringLocation { Position = new Vector3(-282.2694f, 15.46158f, -437.156f), MinimumAngle = 200, MaximumAngle = 350 }; - num4++; - span300[num4] = new GatheringLocation + span98[2] = new GatheringLocation { Position = new Vector3(-284.5246f, 15.61228f, -445.3587f), MinimumAngle = 155, @@ -24174,39 +20597,34 @@ public static class AssemblyGatheringLocationLoader reference219 = obj128; gatheringNodeGroup91.Nodes = list298; reference217 = gatheringNodeGroup91; - index++; - ref GatheringNodeGroup reference220 = ref span297[index]; + ref GatheringNodeGroup reference220 = ref span96[1]; GatheringNodeGroup gatheringNodeGroup92 = new GatheringNodeGroup(); - num3 = 2; - List list301 = new List(num3); - CollectionsMarshal.SetCount(list301, num3); - Span span301 = CollectionsMarshal.AsSpan(list301); - num2 = 0; - ref GatheringNode reference221 = ref span301[num2]; + num2 = 2; + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + Span span99 = CollectionsMarshal.AsSpan(list301); + ref GatheringNode reference221 = ref span99[0]; GatheringNode obj129 = new GatheringNode { DataId = 34782u }; - num4 = 3; - List list302 = new List(num4); - CollectionsMarshal.SetCount(list302, num4); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new GatheringLocation + num3 = 3; + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + Span span100 = CollectionsMarshal.AsSpan(list302); + span100[0] = new GatheringLocation { Position = new Vector3(-431.8761f, 34.533f, -654.7189f), MinimumAngle = -100, MaximumAngle = 30 }; - index2++; - span302[index2] = new GatheringLocation + span100[1] = new GatheringLocation { Position = new Vector3(-430.493f, 32.50696f, -679.2305f), MinimumAngle = 170, MaximumAngle = 295 }; - index2++; - span302[index2] = new GatheringLocation + span100[2] = new GatheringLocation { Position = new Vector3(-435.1992f, 35.77378f, -649.1482f), MinimumAngle = -145, @@ -24214,18 +20632,15 @@ public static class AssemblyGatheringLocationLoader }; obj129.Locations = list302; reference221 = obj129; - num2++; - ref GatheringNode reference222 = ref span301[num2]; + ref GatheringNode reference222 = ref span99[1]; GatheringNode obj130 = new GatheringNode { DataId = 34781u }; - index2 = 1; - List list303 = new List(index2); - CollectionsMarshal.SetCount(list303, index2); - Span span303 = CollectionsMarshal.AsSpan(list303); - num4 = 0; - span303[num4] = new GatheringLocation + num3 = 1; + List list303 = new List(num3); + CollectionsMarshal.SetCount(list303, num3); + CollectionsMarshal.AsSpan(list303)[0] = new GatheringLocation { Position = new Vector3(-427.0237f, 33.4935f, -668.6351f), MinimumAngle = 200, @@ -24235,25 +20650,21 @@ public static class AssemblyGatheringLocationLoader reference222 = obj130; gatheringNodeGroup92.Nodes = list301; reference220 = gatheringNodeGroup92; - index++; - ref GatheringNodeGroup reference223 = ref span297[index]; + ref GatheringNodeGroup reference223 = ref span96[2]; GatheringNodeGroup gatheringNodeGroup93 = new GatheringNodeGroup(); num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - num3 = 0; - ref GatheringNode reference224 = ref span304[num3]; + Span span101 = CollectionsMarshal.AsSpan(list304); + ref GatheringNode reference224 = ref span101[0]; GatheringNode obj131 = new GatheringNode { DataId = 34779u }; - num4 = 1; - List list305 = new List(num4); - CollectionsMarshal.SetCount(list305, num4); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new GatheringLocation + num3 = 1; + List list305 = new List(num3); + CollectionsMarshal.SetCount(list305, num3); + CollectionsMarshal.AsSpan(list305)[0] = new GatheringLocation { Position = new Vector3(-524.4308f, 33.95129f, -578.9917f), MinimumAngle = 250, @@ -24261,32 +20672,28 @@ public static class AssemblyGatheringLocationLoader }; obj131.Locations = list305; reference224 = obj131; - num3++; - ref GatheringNode reference225 = ref span304[num3]; + ref GatheringNode reference225 = ref span101[1]; GatheringNode obj132 = new GatheringNode { DataId = 34780u }; - index2 = 3; - List list306 = new List(index2); - CollectionsMarshal.SetCount(list306, index2); - Span span306 = CollectionsMarshal.AsSpan(list306); - num4 = 0; - span306[num4] = new GatheringLocation + num3 = 3; + List list306 = new List(num3); + CollectionsMarshal.SetCount(list306, num3); + Span span102 = CollectionsMarshal.AsSpan(list306); + span102[0] = new GatheringLocation { Position = new Vector3(-533.9852f, 31.36117f, -558.8026f), MinimumAngle = -140, MaximumAngle = 0 }; - num4++; - span306[num4] = new GatheringLocation + span102[1] = new GatheringLocation { Position = new Vector3(-522.1197f, 36.22581f, -597.019f), MinimumAngle = 170, MaximumAngle = 320 }; - num4++; - span306[num4] = new GatheringLocation + span102[2] = new GatheringLocation { Position = new Vector3(-549.8734f, 28.65267f, -533.7023f), MinimumAngle = -130, @@ -24299,19 +20706,16 @@ public static class AssemblyGatheringLocationLoader gatheringRoot27.Groups = list297; AddLocation(979, gatheringRoot27); GatheringRoot gatheringRoot28 = new GatheringRoot(); - index = 1; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - span307[num] = "liza"; + num = 1; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + CollectionsMarshal.AsSpan(list307)[0] = "liza"; gatheringRoot28.Author = list307; num = 3; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - Span span308 = CollectionsMarshal.AsSpan(list308); - index = 0; - span308[index] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) + Span span103 = CollectionsMarshal.AsSpan(list308); + span103[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -24326,8 +20730,7 @@ public static class AssemblyGatheringLocationLoader } } }; - index++; - span308[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) + span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -24338,36 +20741,31 @@ public static class AssemblyGatheringLocationLoader } } }; - index++; - span308[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) + span103[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) { DisableNavmesh = true, Fly = true }; gatheringRoot28.Steps = list308; - index = 3; - List list309 = new List(index); - CollectionsMarshal.SetCount(list309, index); - Span span309 = CollectionsMarshal.AsSpan(list309); - num = 0; - ref GatheringNodeGroup reference226 = ref span309[num]; + num = 3; + List list309 = new List(num); + CollectionsMarshal.SetCount(list309, num); + Span span104 = CollectionsMarshal.AsSpan(list309); + ref GatheringNodeGroup reference226 = ref span104[0]; GatheringNodeGroup gatheringNodeGroup94 = new GatheringNodeGroup(); - num3 = 2; - List list310 = new List(num3); - CollectionsMarshal.SetCount(list310, num3); - Span span310 = CollectionsMarshal.AsSpan(list310); - num2 = 0; - ref GatheringNode reference227 = ref span310[num2]; + num2 = 2; + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + Span span105 = CollectionsMarshal.AsSpan(list310); + ref GatheringNode reference227 = ref span105[0]; GatheringNode obj133 = new GatheringNode { DataId = 34787u }; - num4 = 1; - List list311 = new List(num4); - CollectionsMarshal.SetCount(list311, num4); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span311[index2] = new GatheringLocation + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = new GatheringLocation { Position = new Vector3(482.7197f, -38.14573f, -612.8046f), MinimumAngle = 100, @@ -24375,32 +20773,28 @@ public static class AssemblyGatheringLocationLoader }; obj133.Locations = list311; reference227 = obj133; - num2++; - ref GatheringNode reference228 = ref span310[num2]; + ref GatheringNode reference228 = ref span105[1]; GatheringNode obj134 = new GatheringNode { DataId = 34788u }; - index2 = 3; - List list312 = new List(index2); - CollectionsMarshal.SetCount(list312, index2); - Span span312 = CollectionsMarshal.AsSpan(list312); - num4 = 0; - span312[num4] = new GatheringLocation + num3 = 3; + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + Span span106 = CollectionsMarshal.AsSpan(list312); + span106[0] = new GatheringLocation { Position = new Vector3(503.5652f, -41.40348f, -600.9512f), MinimumAngle = 185, MaximumAngle = 275 }; - num4++; - span312[num4] = new GatheringLocation + span106[1] = new GatheringLocation { Position = new Vector3(441.1733f, -36.58192f, -610.3331f), MinimumAngle = 120, MaximumAngle = 265 }; - num4++; - span312[num4] = new GatheringLocation + span106[2] = new GatheringLocation { Position = new Vector3(457.5484f, -40.0437f, -608.3312f), MinimumAngle = 115, @@ -24410,37 +20804,32 @@ public static class AssemblyGatheringLocationLoader reference228 = obj134; gatheringNodeGroup94.Nodes = list310; reference226 = gatheringNodeGroup94; - num++; - ref GatheringNodeGroup reference229 = ref span309[num]; + ref GatheringNodeGroup reference229 = ref span104[1]; GatheringNodeGroup gatheringNodeGroup95 = new GatheringNodeGroup(); num2 = 2; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - num3 = 0; - ref GatheringNode reference230 = ref span313[num3]; + Span span107 = CollectionsMarshal.AsSpan(list313); + ref GatheringNode reference230 = ref span107[0]; GatheringNode obj135 = new GatheringNode { DataId = 34790u }; - num4 = 3; - List list314 = new List(num4); - CollectionsMarshal.SetCount(list314, num4); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new GatheringLocation + num3 = 3; + List list314 = new List(num3); + CollectionsMarshal.SetCount(list314, num3); + Span span108 = CollectionsMarshal.AsSpan(list314); + span108[0] = new GatheringLocation { Position = new Vector3(584.035f, -49.84215f, -759.925f), MinimumAngle = 115, MaximumAngle = 240 }; - index2++; - span314[index2] = new GatheringLocation + span108[1] = new GatheringLocation { Position = new Vector3(624.3585f, -61.07853f, -748.2542f) }; - index2++; - span314[index2] = new GatheringLocation + span108[2] = new GatheringLocation { Position = new Vector3(605.4849f, -59.0002f, -772.6049f), MinimumAngle = 175, @@ -24448,18 +20837,15 @@ public static class AssemblyGatheringLocationLoader }; obj135.Locations = list314; reference230 = obj135; - num3++; - ref GatheringNode reference231 = ref span313[num3]; + ref GatheringNode reference231 = ref span107[1]; GatheringNode obj136 = new GatheringNode { DataId = 34789u }; - index2 = 1; - List list315 = new List(index2); - CollectionsMarshal.SetCount(list315, index2); - Span span315 = CollectionsMarshal.AsSpan(list315); - num4 = 0; - span315[num4] = new GatheringLocation + num3 = 1; + List list315 = new List(num3); + CollectionsMarshal.SetCount(list315, num3); + CollectionsMarshal.AsSpan(list315)[0] = new GatheringLocation { Position = new Vector3(601.6854f, -53.68699f, -741.3439f), MinimumAngle = 185, @@ -24469,25 +20855,21 @@ public static class AssemblyGatheringLocationLoader reference231 = obj136; gatheringNodeGroup95.Nodes = list313; reference229 = gatheringNodeGroup95; - num++; - ref GatheringNodeGroup reference232 = ref span309[num]; + ref GatheringNodeGroup reference232 = ref span104[2]; GatheringNodeGroup gatheringNodeGroup96 = new GatheringNodeGroup(); - num3 = 2; - List list316 = new List(num3); - CollectionsMarshal.SetCount(list316, num3); - Span span316 = CollectionsMarshal.AsSpan(list316); - num2 = 0; - ref GatheringNode reference233 = ref span316[num2]; + num2 = 2; + List list316 = new List(num2); + CollectionsMarshal.SetCount(list316, num2); + Span span109 = CollectionsMarshal.AsSpan(list316); + ref GatheringNode reference233 = ref span109[0]; GatheringNode obj137 = new GatheringNode { DataId = 34785u }; - num4 = 1; - List list317 = new List(num4); - CollectionsMarshal.SetCount(list317, num4); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new GatheringLocation + num3 = 1; + List list317 = new List(num3); + CollectionsMarshal.SetCount(list317, num3); + CollectionsMarshal.AsSpan(list317)[0] = new GatheringLocation { Position = new Vector3(754.1298f, -57.09224f, -571.5818f), MinimumAngle = 100, @@ -24495,32 +20877,28 @@ public static class AssemblyGatheringLocationLoader }; obj137.Locations = list317; reference233 = obj137; - num2++; - ref GatheringNode reference234 = ref span316[num2]; + ref GatheringNode reference234 = ref span109[1]; GatheringNode obj138 = new GatheringNode { DataId = 34786u }; - index2 = 3; - List list318 = new List(index2); - CollectionsMarshal.SetCount(list318, index2); - Span span318 = CollectionsMarshal.AsSpan(list318); - num4 = 0; - span318[num4] = new GatheringLocation + num3 = 3; + List list318 = new List(num3); + CollectionsMarshal.SetCount(list318, num3); + Span span110 = CollectionsMarshal.AsSpan(list318); + span110[0] = new GatheringLocation { Position = new Vector3(734.2795f, -55.15427f, -573.6763f), MinimumAngle = 90, MaximumAngle = 260 }; - num4++; - span318[num4] = new GatheringLocation + span110[1] = new GatheringLocation { Position = new Vector3(714.931f, -53.3118f, -569.4072f), MinimumAngle = 115, MaximumAngle = 250 }; - num4++; - span318[num4] = new GatheringLocation + span110[2] = new GatheringLocation { Position = new Vector3(773.049f, -55.97124f, -569.7167f), MinimumAngle = 105, @@ -24536,16 +20914,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - Span span319 = CollectionsMarshal.AsSpan(list319); - index = 0; - span319[index] = "liza"; + CollectionsMarshal.AsSpan(list319)[0] = "liza"; gatheringRoot29.Author = list319; - 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) + num = 1; + List list320 = new List(num); + CollectionsMarshal.SetCount(list320, num); + CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -24553,26 +20927,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span321 = CollectionsMarshal.AsSpan(list321); - index = 0; - ref GatheringNodeGroup reference235 = ref span321[index]; + Span span111 = CollectionsMarshal.AsSpan(list321); + ref GatheringNodeGroup reference235 = ref span111[0]; GatheringNodeGroup gatheringNodeGroup97 = new GatheringNodeGroup(); num2 = 2; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - num3 = 0; - ref GatheringNode reference236 = ref span322[num3]; + Span span112 = CollectionsMarshal.AsSpan(list322); + ref GatheringNode reference236 = ref span112[0]; GatheringNode obj139 = new GatheringNode { DataId = 34809u }; - num4 = 1; - List list323 = new List(num4); - CollectionsMarshal.SetCount(list323, num4); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new GatheringLocation + num3 = 1; + List list323 = new List(num3); + CollectionsMarshal.SetCount(list323, num3); + CollectionsMarshal.AsSpan(list323)[0] = new GatheringLocation { Position = new Vector3(503.1253f, 113.6339f, 332.9355f), MinimumAngle = 35, @@ -24580,32 +20950,28 @@ public static class AssemblyGatheringLocationLoader }; obj139.Locations = list323; reference236 = obj139; - num3++; - ref GatheringNode reference237 = ref span322[num3]; + ref GatheringNode reference237 = ref span112[1]; GatheringNode obj140 = new GatheringNode { DataId = 34810u }; - index2 = 3; - List list324 = new List(index2); - CollectionsMarshal.SetCount(list324, index2); - Span span324 = CollectionsMarshal.AsSpan(list324); - num4 = 0; - span324[num4] = new GatheringLocation + num3 = 3; + List list324 = new List(num3); + CollectionsMarshal.SetCount(list324, num3); + Span span113 = CollectionsMarshal.AsSpan(list324); + span113[0] = new GatheringLocation { Position = new Vector3(516.6899f, 116.4842f, 326.5524f), MinimumAngle = 20, MaximumAngle = 160 }; - num4++; - span324[num4] = new GatheringLocation + span113[1] = new GatheringLocation { Position = new Vector3(505.7916f, 114.2773f, 342.2974f), MinimumAngle = 0, MaximumAngle = 100 }; - num4++; - span324[num4] = new GatheringLocation + span113[2] = new GatheringLocation { Position = new Vector3(515.9227f, 114.58f, 317.4333f), MinimumAngle = 0, @@ -24615,25 +20981,21 @@ public static class AssemblyGatheringLocationLoader reference237 = obj140; gatheringNodeGroup97.Nodes = list322; reference235 = gatheringNodeGroup97; - index++; - ref GatheringNodeGroup reference238 = ref span321[index]; + ref GatheringNodeGroup reference238 = ref span111[1]; GatheringNodeGroup gatheringNodeGroup98 = new GatheringNodeGroup(); - num3 = 2; - List list325 = new List(num3); - CollectionsMarshal.SetCount(list325, num3); - Span span325 = CollectionsMarshal.AsSpan(list325); - num2 = 0; - ref GatheringNode reference239 = ref span325[num2]; + num2 = 2; + List list325 = new List(num2); + CollectionsMarshal.SetCount(list325, num2); + Span span114 = CollectionsMarshal.AsSpan(list325); + ref GatheringNode reference239 = ref span114[0]; GatheringNode obj141 = new GatheringNode { DataId = 34813u }; - num4 = 1; - List list326 = new List(num4); - CollectionsMarshal.SetCount(list326, num4); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new GatheringLocation + num3 = 1; + List list326 = new List(num3); + CollectionsMarshal.SetCount(list326, num3); + CollectionsMarshal.AsSpan(list326)[0] = new GatheringLocation { Position = new Vector3(370.5957f, 64.7135f, 158.4955f), MinimumAngle = -45, @@ -24641,32 +21003,28 @@ public static class AssemblyGatheringLocationLoader }; obj141.Locations = list326; reference239 = obj141; - num2++; - ref GatheringNode reference240 = ref span325[num2]; + ref GatheringNode reference240 = ref span114[1]; GatheringNode obj142 = new GatheringNode { DataId = 34814u }; - index2 = 3; - List list327 = new List(index2); - CollectionsMarshal.SetCount(list327, index2); - Span span327 = CollectionsMarshal.AsSpan(list327); - num4 = 0; - span327[num4] = new GatheringLocation + num3 = 3; + List list327 = new List(num3); + CollectionsMarshal.SetCount(list327, num3); + Span span115 = CollectionsMarshal.AsSpan(list327); + span115[0] = new GatheringLocation { Position = new Vector3(363.6682f, 64.62195f, 152.1782f), MinimumAngle = 20, MaximumAngle = 140 }; - num4++; - span327[num4] = new GatheringLocation + span115[1] = new GatheringLocation { Position = new Vector3(394.519f, 63.70097f, 168.7538f), MinimumAngle = -125, MaximumAngle = 15 }; - num4++; - span327[num4] = new GatheringLocation + span115[2] = new GatheringLocation { Position = new Vector3(386.34f, 63.7528f, 166.915f), MinimumAngle = 15, @@ -24676,39 +21034,34 @@ public static class AssemblyGatheringLocationLoader reference240 = obj142; gatheringNodeGroup98.Nodes = list325; reference238 = gatheringNodeGroup98; - index++; - ref GatheringNodeGroup reference241 = ref span321[index]; + ref GatheringNodeGroup reference241 = ref span111[2]; GatheringNodeGroup gatheringNodeGroup99 = new GatheringNodeGroup(); num2 = 2; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - num3 = 0; - ref GatheringNode reference242 = ref span328[num3]; + Span span116 = CollectionsMarshal.AsSpan(list328); + ref GatheringNode reference242 = ref span116[0]; GatheringNode obj143 = new GatheringNode { DataId = 34812u }; - num4 = 3; - List list329 = new List(num4); - CollectionsMarshal.SetCount(list329, num4); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new GatheringLocation + num3 = 3; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + Span span117 = CollectionsMarshal.AsSpan(list329); + span117[0] = new GatheringLocation { Position = new Vector3(328.846f, 79.13469f, 434.0204f), MinimumAngle = 175, MaximumAngle = 280 }; - index2++; - span329[index2] = new GatheringLocation + span117[1] = new GatheringLocation { Position = new Vector3(352.4181f, 81.39249f, 446.0517f), MinimumAngle = 180, MaximumAngle = 260 }; - index2++; - span329[index2] = new GatheringLocation + span117[2] = new GatheringLocation { Position = new Vector3(336.5682f, 80.73547f, 443.9305f), MinimumAngle = 120, @@ -24716,18 +21069,15 @@ public static class AssemblyGatheringLocationLoader }; obj143.Locations = list329; reference242 = obj143; - num3++; - ref GatheringNode reference243 = ref span328[num3]; + ref GatheringNode reference243 = ref span116[1]; GatheringNode obj144 = new GatheringNode { DataId = 34811u }; - index2 = 1; - List list330 = new List(index2); - CollectionsMarshal.SetCount(list330, index2); - Span span330 = CollectionsMarshal.AsSpan(list330); - num4 = 0; - span330[num4] = new GatheringLocation + num3 = 1; + List list330 = new List(num3); + CollectionsMarshal.SetCount(list330, num3); + CollectionsMarshal.AsSpan(list330)[0] = new GatheringLocation { Position = new Vector3(341.6647f, 80.125f, 436.6368f), MinimumAngle = 100, @@ -24740,43 +21090,35 @@ public static class AssemblyGatheringLocationLoader gatheringRoot29.Groups = list321; AddLocation(984, gatheringRoot29); GatheringRoot gatheringRoot30 = new GatheringRoot(); - index = 1; - List list331 = new List(index); - CollectionsMarshal.SetCount(list331, index); - Span span331 = CollectionsMarshal.AsSpan(list331); - num = 0; - span331[num] = "liza"; + num = 1; + List list331 = new List(num); + CollectionsMarshal.SetCount(list331, num); + CollectionsMarshal.AsSpan(list331)[0] = "liza"; gatheringRoot30.Author = list331; num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = new QuestStep(EInteractionType.None, null, null, 1190); + CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.None, null, null, 1190); gatheringRoot30.Steps = list332; - index = 3; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref GatheringNodeGroup reference244 = ref span333[num]; + num = 3; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + Span span118 = CollectionsMarshal.AsSpan(list333); + ref GatheringNodeGroup reference244 = ref span118[0]; GatheringNodeGroup gatheringNodeGroup100 = new GatheringNodeGroup(); - num3 = 2; - List list334 = new List(num3); - CollectionsMarshal.SetCount(list334, num3); - Span span334 = CollectionsMarshal.AsSpan(list334); - num2 = 0; - ref GatheringNode reference245 = ref span334[num2]; + num2 = 2; + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + Span span119 = CollectionsMarshal.AsSpan(list334); + ref GatheringNode reference245 = ref span119[0]; GatheringNode obj145 = new GatheringNode { DataId = 34819u }; - num4 = 1; - List list335 = new List(num4); - CollectionsMarshal.SetCount(list335, num4); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new GatheringLocation + num3 = 1; + List list335 = new List(num3); + CollectionsMarshal.SetCount(list335, num3); + CollectionsMarshal.AsSpan(list335)[0] = new GatheringLocation { Position = new Vector3(-86.69859f, -8.177663f, 572.7712f), MinimumAngle = 45, @@ -24784,32 +21126,28 @@ public static class AssemblyGatheringLocationLoader }; obj145.Locations = list335; reference245 = obj145; - num2++; - ref GatheringNode reference246 = ref span334[num2]; + ref GatheringNode reference246 = ref span119[1]; GatheringNode obj146 = new GatheringNode { DataId = 34820u }; - index2 = 3; - List list336 = new List(index2); - CollectionsMarshal.SetCount(list336, index2); - Span span336 = CollectionsMarshal.AsSpan(list336); - num4 = 0; - span336[num4] = new GatheringLocation + num3 = 3; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + Span span120 = CollectionsMarshal.AsSpan(list336); + span120[0] = new GatheringLocation { Position = new Vector3(-83.81214f, -8.291362f, 581.595f), MinimumAngle = 80, MaximumAngle = 175 }; - num4++; - span336[num4] = new GatheringLocation + span120[1] = new GatheringLocation { Position = new Vector3(-88.70462f, -8.511888f, 578.6565f), MinimumAngle = 35, MaximumAngle = 150 }; - num4++; - span336[num4] = new GatheringLocation + span120[2] = new GatheringLocation { Position = new Vector3(-81.00482f, -7.330131f, 574.7444f), MinimumAngle = 150, @@ -24819,25 +21157,21 @@ public static class AssemblyGatheringLocationLoader reference246 = obj146; gatheringNodeGroup100.Nodes = list334; reference244 = gatheringNodeGroup100; - num++; - ref GatheringNodeGroup reference247 = ref span333[num]; + ref GatheringNodeGroup reference247 = ref span118[1]; GatheringNodeGroup gatheringNodeGroup101 = new GatheringNodeGroup(); num2 = 2; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - num3 = 0; - ref GatheringNode reference248 = ref span337[num3]; + Span span121 = CollectionsMarshal.AsSpan(list337); + ref GatheringNode reference248 = ref span121[0]; GatheringNode obj147 = new GatheringNode { DataId = 34817u }; - num4 = 1; - List list338 = new List(num4); - CollectionsMarshal.SetCount(list338, num4); - Span span338 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span338[index2] = new GatheringLocation + num3 = 1; + List list338 = new List(num3); + CollectionsMarshal.SetCount(list338, num3); + CollectionsMarshal.AsSpan(list338)[0] = new GatheringLocation { Position = new Vector3(-264.2871f, -21.57944f, 593.6306f), MinimumAngle = 130, @@ -24847,32 +21181,28 @@ public static class AssemblyGatheringLocationLoader }; obj147.Locations = list338; reference248 = obj147; - num3++; - ref GatheringNode reference249 = ref span337[num3]; + ref GatheringNode reference249 = ref span121[1]; GatheringNode obj148 = new GatheringNode { DataId = 34818u }; - index2 = 3; - List list339 = new List(index2); - CollectionsMarshal.SetCount(list339, index2); - Span span339 = CollectionsMarshal.AsSpan(list339); - num4 = 0; - span339[num4] = new GatheringLocation + num3 = 3; + List list339 = new List(num3); + CollectionsMarshal.SetCount(list339, num3); + Span span122 = CollectionsMarshal.AsSpan(list339); + span122[0] = new GatheringLocation { Position = new Vector3(-266.9412f, -21.20901f, 593.9532f), MinimumAngle = 70, MaximumAngle = 225 }; - num4++; - span339[num4] = new GatheringLocation + span122[1] = new GatheringLocation { Position = new Vector3(-268.0496f, -21.79604f, 598.2532f), MinimumAngle = -45, MaximumAngle = 160 }; - num4++; - span339[num4] = new GatheringLocation + span122[2] = new GatheringLocation { Position = new Vector3(-260.2841f, -22.10003f, 595.726f), MinimumAngle = 160, @@ -24882,52 +21212,44 @@ public static class AssemblyGatheringLocationLoader reference249 = obj148; gatheringNodeGroup101.Nodes = list337; reference247 = gatheringNodeGroup101; - num++; - ref GatheringNodeGroup reference250 = ref span333[num]; + ref GatheringNodeGroup reference250 = ref span118[2]; GatheringNodeGroup gatheringNodeGroup102 = new GatheringNodeGroup(); - num3 = 2; - List list340 = new List(num3); - CollectionsMarshal.SetCount(list340, num3); - Span span340 = CollectionsMarshal.AsSpan(list340); - num2 = 0; - ref GatheringNode reference251 = ref span340[num2]; + num2 = 2; + List list340 = new List(num2); + CollectionsMarshal.SetCount(list340, num2); + Span span123 = CollectionsMarshal.AsSpan(list340); + ref GatheringNode reference251 = ref span123[0]; GatheringNode obj149 = new GatheringNode { DataId = 34815u }; - num4 = 1; - List list341 = new List(num4); - CollectionsMarshal.SetCount(list341, num4); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new GatheringLocation + num3 = 1; + List list341 = new List(num3); + CollectionsMarshal.SetCount(list341, num3); + CollectionsMarshal.AsSpan(list341)[0] = new GatheringLocation { Position = new Vector3(-276.2859f, -3.218076f, 437.6798f) }; obj149.Locations = list341; reference251 = obj149; - num2++; - ref GatheringNode reference252 = ref span340[num2]; + ref GatheringNode reference252 = ref span123[1]; GatheringNode obj150 = new GatheringNode { DataId = 34816u }; - index2 = 3; - List list342 = new List(index2); - CollectionsMarshal.SetCount(list342, index2); - Span span342 = CollectionsMarshal.AsSpan(list342); - num4 = 0; - span342[num4] = new GatheringLocation + num3 = 3; + List list342 = new List(num3); + CollectionsMarshal.SetCount(list342, num3); + Span span124 = CollectionsMarshal.AsSpan(list342); + span124[0] = new GatheringLocation { Position = new Vector3(-277.8067f, -2.664376f, 433.8469f) }; - num4++; - span342[num4] = new GatheringLocation + span124[1] = new GatheringLocation { Position = new Vector3(-273.7089f, -2.972111f, 434.3939f) }; - num4++; - span342[num4] = new GatheringLocation + span124[2] = new GatheringLocation { Position = new Vector3(-281.1727f, -2.682134f, 433.9476f) }; @@ -24941,16 +21263,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - Span span343 = CollectionsMarshal.AsSpan(list343); - index = 0; - span343[index] = "liza"; + CollectionsMarshal.AsSpan(list343)[0] = "liza"; gatheringRoot31.Author = list343; - 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) + num = 1; + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.None, null, null, 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -24958,26 +21276,22 @@ public static class AssemblyGatheringLocationLoader num = 3; List list345 = new List(num); CollectionsMarshal.SetCount(list345, num); - Span span345 = CollectionsMarshal.AsSpan(list345); - index = 0; - ref GatheringNodeGroup reference253 = ref span345[index]; + Span span125 = CollectionsMarshal.AsSpan(list345); + ref GatheringNodeGroup reference253 = ref span125[0]; GatheringNodeGroup gatheringNodeGroup103 = new GatheringNodeGroup(); num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - num3 = 0; - ref GatheringNode reference254 = ref span346[num3]; + Span span126 = CollectionsMarshal.AsSpan(list346); + ref GatheringNode reference254 = ref span126[0]; GatheringNode obj151 = new GatheringNode { DataId = 34821u }; - num4 = 1; - List list347 = new List(num4); - CollectionsMarshal.SetCount(list347, num4); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new GatheringLocation + num3 = 1; + List list347 = new List(num3); + CollectionsMarshal.SetCount(list347, num3); + CollectionsMarshal.AsSpan(list347)[0] = new GatheringLocation { Position = new Vector3(-114.9673f, 9.311809f, -638.1873f), MinimumAngle = -125, @@ -24985,25 +21299,22 @@ public static class AssemblyGatheringLocationLoader }; obj151.Locations = list347; reference254 = obj151; - num3++; - ref GatheringNode reference255 = ref span346[num3]; + ref GatheringNode reference255 = ref span126[1]; GatheringNode obj152 = new GatheringNode { DataId = 34822u }; - index2 = 2; - List list348 = new List(index2); - CollectionsMarshal.SetCount(list348, index2); - Span span348 = CollectionsMarshal.AsSpan(list348); - num4 = 0; - span348[num4] = new GatheringLocation + num3 = 2; + List list348 = new List(num3); + CollectionsMarshal.SetCount(list348, num3); + Span span127 = CollectionsMarshal.AsSpan(list348); + span127[0] = new GatheringLocation { Position = new Vector3(-139.9428f, 17.33419f, -662.0339f), MinimumAngle = -175, MaximumAngle = 10 }; - num4++; - span348[num4] = new GatheringLocation + span127[1] = new GatheringLocation { Position = new Vector3(-98.84892f, 8.927668f, -645.7149f), MinimumAngle = 165, @@ -25013,32 +21324,28 @@ public static class AssemblyGatheringLocationLoader reference255 = obj152; gatheringNodeGroup103.Nodes = list346; reference253 = gatheringNodeGroup103; - index++; - ref GatheringNodeGroup reference256 = ref span345[index]; + ref GatheringNodeGroup reference256 = ref span125[1]; GatheringNodeGroup gatheringNodeGroup104 = new GatheringNodeGroup(); - num3 = 2; - List list349 = new List(num3); - CollectionsMarshal.SetCount(list349, num3); - Span span349 = CollectionsMarshal.AsSpan(list349); - num2 = 0; - ref GatheringNode reference257 = ref span349[num2]; + num2 = 2; + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + Span span128 = CollectionsMarshal.AsSpan(list349); + ref GatheringNode reference257 = ref span128[0]; GatheringNode obj153 = new GatheringNode { DataId = 34826u }; - num4 = 2; - List list350 = new List(num4); - CollectionsMarshal.SetCount(list350, num4); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new GatheringLocation + num3 = 2; + List list350 = new List(num3); + CollectionsMarshal.SetCount(list350, num3); + Span span129 = CollectionsMarshal.AsSpan(list350); + span129[0] = new GatheringLocation { Position = new Vector3(60.64223f, 4.514977f, -535.9874f), MinimumAngle = 20, MaximumAngle = 200 }; - index2++; - span350[index2] = new GatheringLocation + span129[1] = new GatheringLocation { Position = new Vector3(22.99263f, 3.71779f, -519.9791f), MinimumAngle = 110, @@ -25046,18 +21353,15 @@ public static class AssemblyGatheringLocationLoader }; obj153.Locations = list350; reference257 = obj153; - num2++; - ref GatheringNode reference258 = ref span349[num2]; + ref GatheringNode reference258 = ref span128[1]; GatheringNode obj154 = new GatheringNode { DataId = 34825u }; - index2 = 1; - List list351 = new List(index2); - CollectionsMarshal.SetCount(list351, index2); - Span span351 = CollectionsMarshal.AsSpan(list351); - num4 = 0; - span351[num4] = new GatheringLocation + num3 = 1; + List list351 = new List(num3); + CollectionsMarshal.SetCount(list351, num3); + CollectionsMarshal.AsSpan(list351)[0] = new GatheringLocation { Position = new Vector3(56.54757f, 4.987343f, -486.204f), MinimumAngle = 40, @@ -25067,32 +21371,28 @@ public static class AssemblyGatheringLocationLoader reference258 = obj154; gatheringNodeGroup104.Nodes = list349; reference256 = gatheringNodeGroup104; - index++; - ref GatheringNodeGroup reference259 = ref span345[index]; + ref GatheringNodeGroup reference259 = ref span125[2]; GatheringNodeGroup gatheringNodeGroup105 = new GatheringNodeGroup(); num2 = 2; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - num3 = 0; - ref GatheringNode reference260 = ref span352[num3]; + Span span130 = CollectionsMarshal.AsSpan(list352); + ref GatheringNode reference260 = ref span130[0]; GatheringNode obj155 = new GatheringNode { DataId = 34824u }; - num4 = 2; - List list353 = new List(num4); - CollectionsMarshal.SetCount(list353, num4); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new GatheringLocation + num3 = 2; + List list353 = new List(num3); + CollectionsMarshal.SetCount(list353, num3); + Span span131 = CollectionsMarshal.AsSpan(list353); + span131[0] = new GatheringLocation { Position = new Vector3(110.7947f, 6.466304f, -633.701f), MinimumAngle = 20, MaximumAngle = 205 }; - index2++; - span353[index2] = new GatheringLocation + span131[1] = new GatheringLocation { Position = new Vector3(78.47705f, 8.072021f, -627.9545f), MinimumAngle = 130, @@ -25100,18 +21400,15 @@ public static class AssemblyGatheringLocationLoader }; obj155.Locations = list353; reference260 = obj155; - num3++; - ref GatheringNode reference261 = ref span352[num3]; + ref GatheringNode reference261 = ref span130[1]; GatheringNode obj156 = new GatheringNode { DataId = 34823u }; - index2 = 1; - List list354 = new List(index2); - CollectionsMarshal.SetCount(list354, index2); - Span span354 = CollectionsMarshal.AsSpan(list354); - num4 = 0; - span354[num4] = new GatheringLocation + num3 = 1; + List list354 = new List(num3); + CollectionsMarshal.SetCount(list354, num3); + CollectionsMarshal.AsSpan(list354)[0] = new GatheringLocation { Position = new Vector3(91.40367f, 7.397814f, -659.1525f), MinimumAngle = -40, @@ -25124,43 +21421,35 @@ public static class AssemblyGatheringLocationLoader gatheringRoot31.Groups = list345; AddLocation(986, gatheringRoot31); GatheringRoot gatheringRoot32 = new GatheringRoot(); - index = 1; - List list355 = new List(index); - CollectionsMarshal.SetCount(list355, index); - Span span355 = CollectionsMarshal.AsSpan(list355); - num = 0; - span355[num] = "liza"; + num = 1; + List list355 = new List(num); + CollectionsMarshal.SetCount(list355, num); + CollectionsMarshal.AsSpan(list355)[0] = "liza"; gatheringRoot32.Author = list355; num = 1; List list356 = new List(num); CollectionsMarshal.SetCount(list356, num); - Span span356 = CollectionsMarshal.AsSpan(list356); - index = 0; - span356[index] = new QuestStep(EInteractionType.None, null, null, 1188); + CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.None, null, null, 1188); gatheringRoot32.Steps = list356; - index = 3; - List list357 = new List(index); - CollectionsMarshal.SetCount(list357, index); - Span span357 = CollectionsMarshal.AsSpan(list357); - num = 0; - ref GatheringNodeGroup reference262 = ref span357[num]; + num = 3; + List list357 = new List(num); + CollectionsMarshal.SetCount(list357, num); + Span span132 = CollectionsMarshal.AsSpan(list357); + ref GatheringNodeGroup reference262 = ref span132[0]; GatheringNodeGroup gatheringNodeGroup106 = new GatheringNodeGroup(); - num3 = 2; - List list358 = new List(num3); - CollectionsMarshal.SetCount(list358, num3); - Span span358 = CollectionsMarshal.AsSpan(list358); - num2 = 0; - ref GatheringNode reference263 = ref span358[num2]; + num2 = 2; + List list358 = new List(num2); + CollectionsMarshal.SetCount(list358, num2); + Span span133 = CollectionsMarshal.AsSpan(list358); + ref GatheringNode reference263 = ref span133[0]; GatheringNode obj157 = new GatheringNode { DataId = 34831u }; - num4 = 1; - List list359 = new List(num4); - CollectionsMarshal.SetCount(list359, num4); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new GatheringLocation + num3 = 1; + List list359 = new List(num3); + CollectionsMarshal.SetCount(list359, num3); + CollectionsMarshal.AsSpan(list359)[0] = new GatheringLocation { Position = new Vector3(654.7989f, 121.8574f, 518.8689f), MinimumAngle = -65, @@ -25168,25 +21457,22 @@ public static class AssemblyGatheringLocationLoader }; obj157.Locations = list359; reference263 = obj157; - num2++; - ref GatheringNode reference264 = ref span358[num2]; + ref GatheringNode reference264 = ref span133[1]; GatheringNode obj158 = new GatheringNode { DataId = 34832u }; - index2 = 2; - List list360 = new List(index2); - CollectionsMarshal.SetCount(list360, index2); - Span span360 = CollectionsMarshal.AsSpan(list360); - num4 = 0; - span360[num4] = new GatheringLocation + num3 = 2; + List list360 = new List(num3); + CollectionsMarshal.SetCount(list360, num3); + Span span134 = CollectionsMarshal.AsSpan(list360); + span134[0] = new GatheringLocation { Position = new Vector3(638.961f, 119.4446f, 467.7013f), MinimumAngle = -110, MaximumAngle = 25 }; - num4++; - span360[num4] = new GatheringLocation + span134[1] = new GatheringLocation { Position = new Vector3(690.0587f, 115.8617f, 496.8795f), MinimumAngle = 0, @@ -25196,25 +21482,21 @@ public static class AssemblyGatheringLocationLoader reference264 = obj158; gatheringNodeGroup106.Nodes = list358; reference262 = gatheringNodeGroup106; - num++; - ref GatheringNodeGroup reference265 = ref span357[num]; + ref GatheringNodeGroup reference265 = ref span132[1]; GatheringNodeGroup gatheringNodeGroup107 = new GatheringNodeGroup(); num2 = 2; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span361 = CollectionsMarshal.AsSpan(list361); - num3 = 0; - ref GatheringNode reference266 = ref span361[num3]; + Span span135 = CollectionsMarshal.AsSpan(list361); + ref GatheringNode reference266 = ref span135[0]; GatheringNode obj159 = new GatheringNode { DataId = 34828u }; - num4 = 1; - List list362 = new List(num4); - CollectionsMarshal.SetCount(list362, num4); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new GatheringLocation + num3 = 1; + List list362 = new List(num3); + CollectionsMarshal.SetCount(list362, num3); + CollectionsMarshal.AsSpan(list362)[0] = new GatheringLocation { Position = new Vector3(599.3455f, 121.5376f, 694.2341f), MinimumAngle = -125, @@ -25222,18 +21504,15 @@ public static class AssemblyGatheringLocationLoader }; obj159.Locations = list362; reference266 = obj159; - num3++; - ref GatheringNode reference267 = ref span361[num3]; + ref GatheringNode reference267 = ref span135[1]; GatheringNode obj160 = new GatheringNode { DataId = 34827u }; - index2 = 1; - List list363 = new List(index2); - CollectionsMarshal.SetCount(list363, index2); - Span span363 = CollectionsMarshal.AsSpan(list363); - num4 = 0; - span363[num4] = new GatheringLocation + num3 = 1; + List list363 = new List(num3); + CollectionsMarshal.SetCount(list363, num3); + CollectionsMarshal.AsSpan(list363)[0] = new GatheringLocation { Position = new Vector3(600.5253f, 124.8645f, 751.1969f), MinimumAngle = -240, @@ -25243,32 +21522,28 @@ public static class AssemblyGatheringLocationLoader reference267 = obj160; gatheringNodeGroup107.Nodes = list361; reference265 = gatheringNodeGroup107; - num++; - ref GatheringNodeGroup reference268 = ref span357[num]; + ref GatheringNodeGroup reference268 = ref span132[2]; GatheringNodeGroup gatheringNodeGroup108 = new GatheringNodeGroup(); - num3 = 2; - List list364 = new List(num3); - CollectionsMarshal.SetCount(list364, num3); - Span span364 = CollectionsMarshal.AsSpan(list364); - num2 = 0; - ref GatheringNode reference269 = ref span364[num2]; + num2 = 2; + List list364 = new List(num2); + CollectionsMarshal.SetCount(list364, num2); + Span span136 = CollectionsMarshal.AsSpan(list364); + ref GatheringNode reference269 = ref span136[0]; GatheringNode obj161 = new GatheringNode { DataId = 34830u }; - num4 = 2; - List list365 = new List(num4); - CollectionsMarshal.SetCount(list365, num4); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span365[index2] = new GatheringLocation + num3 = 2; + List list365 = new List(num3); + CollectionsMarshal.SetCount(list365, num3); + Span span137 = CollectionsMarshal.AsSpan(list365); + span137[0] = new GatheringLocation { Position = new Vector3(762.9977f, 123.3409f, 718.8274f), MinimumAngle = 75, MaximumAngle = 215 }; - index2++; - span365[index2] = new GatheringLocation + span137[1] = new GatheringLocation { Position = new Vector3(800.252f, 124.2032f, 656.793f), MinimumAngle = -25, @@ -25276,18 +21551,15 @@ public static class AssemblyGatheringLocationLoader }; obj161.Locations = list365; reference269 = obj161; - num2++; - ref GatheringNode reference270 = ref span364[num2]; + ref GatheringNode reference270 = ref span136[1]; GatheringNode obj162 = new GatheringNode { DataId = 34829u }; - index2 = 1; - List list366 = new List(index2); - CollectionsMarshal.SetCount(list366, index2); - Span span366 = CollectionsMarshal.AsSpan(list366); - num4 = 0; - span366[num4] = new GatheringLocation + num3 = 1; + List list366 = new List(num3); + CollectionsMarshal.SetCount(list366, num3); + CollectionsMarshal.AsSpan(list366)[0] = new GatheringLocation { Position = new Vector3(793.8721f, 127.6419f, 696.0015f), MinimumAngle = 25, @@ -25303,16 +21575,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - Span span367 = CollectionsMarshal.AsSpan(list367); - index = 0; - span367[index] = "liza"; + CollectionsMarshal.AsSpan(list367)[0] = "liza"; gatheringRoot33.Author = list367; - 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) + num = 1; + List list368 = new List(num); + CollectionsMarshal.SetCount(list368, num); + CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -25320,33 +21588,29 @@ public static class AssemblyGatheringLocationLoader num = 3; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - Span span369 = CollectionsMarshal.AsSpan(list369); - index = 0; - ref GatheringNodeGroup reference271 = ref span369[index]; + Span span138 = CollectionsMarshal.AsSpan(list369); + ref GatheringNodeGroup reference271 = ref span138[0]; GatheringNodeGroup gatheringNodeGroup109 = new GatheringNodeGroup(); num2 = 2; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - num3 = 0; - ref GatheringNode reference272 = ref span370[num3]; + Span span139 = CollectionsMarshal.AsSpan(list370); + ref GatheringNode reference272 = ref span139[0]; GatheringNode obj163 = new GatheringNode { DataId = 34836u }; - num4 = 2; - List list371 = new List(num4); - CollectionsMarshal.SetCount(list371, num4); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new GatheringLocation + num3 = 2; + List list371 = new List(num3); + CollectionsMarshal.SetCount(list371, num3); + Span span140 = CollectionsMarshal.AsSpan(list371); + span140[0] = new GatheringLocation { Position = new Vector3(70.75072f, -156.9112f, -15.01749f), MinimumAngle = 125, MaximumAngle = 320 }; - index2++; - span371[index2] = new GatheringLocation + span140[1] = new GatheringLocation { Position = new Vector3(49.44211f, -157.3086f, -8.53495f), MinimumAngle = 45, @@ -25354,18 +21618,15 @@ public static class AssemblyGatheringLocationLoader }; obj163.Locations = list371; reference272 = obj163; - num3++; - ref GatheringNode reference273 = ref span370[num3]; + ref GatheringNode reference273 = ref span139[1]; GatheringNode obj164 = new GatheringNode { DataId = 34835u }; - index2 = 1; - List list372 = new List(index2); - CollectionsMarshal.SetCount(list372, index2); - Span span372 = CollectionsMarshal.AsSpan(list372); - num4 = 0; - span372[num4] = new GatheringLocation + num3 = 1; + List list372 = new List(num3); + CollectionsMarshal.SetCount(list372, num3); + CollectionsMarshal.AsSpan(list372)[0] = new GatheringLocation { Position = new Vector3(56.47234f, -157.5328f, -17.13855f), MinimumAngle = 105, @@ -25375,32 +21636,28 @@ public static class AssemblyGatheringLocationLoader reference273 = obj164; gatheringNodeGroup109.Nodes = list370; reference271 = gatheringNodeGroup109; - index++; - ref GatheringNodeGroup reference274 = ref span369[index]; + ref GatheringNodeGroup reference274 = ref span138[1]; GatheringNodeGroup gatheringNodeGroup110 = new GatheringNodeGroup(); - num3 = 2; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - Span span373 = CollectionsMarshal.AsSpan(list373); - num2 = 0; - ref GatheringNode reference275 = ref span373[num2]; + num2 = 2; + List list373 = new List(num2); + CollectionsMarshal.SetCount(list373, num2); + Span span141 = CollectionsMarshal.AsSpan(list373); + ref GatheringNode reference275 = ref span141[0]; GatheringNode obj165 = new GatheringNode { DataId = 34838u }; - num4 = 2; - List list374 = new List(num4); - CollectionsMarshal.SetCount(list374, num4); - Span span374 = CollectionsMarshal.AsSpan(list374); - index2 = 0; - span374[index2] = new GatheringLocation + num3 = 2; + List list374 = new List(num3); + CollectionsMarshal.SetCount(list374, num3); + Span span142 = CollectionsMarshal.AsSpan(list374); + span142[0] = new GatheringLocation { Position = new Vector3(-146.5889f, -142.4388f, 111.3271f), MinimumAngle = 95, MaximumAngle = 260 }; - index2++; - span374[index2] = new GatheringLocation + span142[1] = new GatheringLocation { Position = new Vector3(-132.7688f, -145.5672f, 122.179f), MinimumAngle = 175, @@ -25410,18 +21667,15 @@ public static class AssemblyGatheringLocationLoader }; obj165.Locations = list374; reference275 = obj165; - num2++; - ref GatheringNode reference276 = ref span373[num2]; + ref GatheringNode reference276 = ref span141[1]; GatheringNode obj166 = new GatheringNode { DataId = 34837u }; - index2 = 1; - List list375 = new List(index2); - CollectionsMarshal.SetCount(list375, index2); - Span span375 = CollectionsMarshal.AsSpan(list375); - num4 = 0; - span375[num4] = new GatheringLocation + num3 = 1; + List list375 = new List(num3); + CollectionsMarshal.SetCount(list375, num3); + CollectionsMarshal.AsSpan(list375)[0] = new GatheringLocation { Position = new Vector3(-138.1429f, -143.8643f, 114.8867f), MinimumAngle = 150, @@ -25431,25 +21685,21 @@ public static class AssemblyGatheringLocationLoader reference276 = obj166; gatheringNodeGroup110.Nodes = list373; reference274 = gatheringNodeGroup110; - index++; - ref GatheringNodeGroup reference277 = ref span369[index]; + ref GatheringNodeGroup reference277 = ref span138[2]; GatheringNodeGroup gatheringNodeGroup111 = new GatheringNodeGroup(); num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - num3 = 0; - ref GatheringNode reference278 = ref span376[num3]; + Span span143 = CollectionsMarshal.AsSpan(list376); + ref GatheringNode reference278 = ref span143[0]; GatheringNode obj167 = new GatheringNode { DataId = 34833u }; - num4 = 1; - List list377 = new List(num4); - CollectionsMarshal.SetCount(list377, num4); - Span span377 = CollectionsMarshal.AsSpan(list377); - index2 = 0; - span377[index2] = new GatheringLocation + num3 = 1; + List list377 = new List(num3); + CollectionsMarshal.SetCount(list377, num3); + CollectionsMarshal.AsSpan(list377)[0] = new GatheringLocation { Position = new Vector3(-33.75101f, -160.675f, -94.77893f), MinimumAngle = -45, @@ -25457,25 +21707,22 @@ public static class AssemblyGatheringLocationLoader }; obj167.Locations = list377; reference278 = obj167; - num3++; - ref GatheringNode reference279 = ref span376[num3]; + ref GatheringNode reference279 = ref span143[1]; GatheringNode obj168 = new GatheringNode { DataId = 34834u }; - index2 = 2; - List list378 = new List(index2); - CollectionsMarshal.SetCount(list378, index2); - Span span378 = CollectionsMarshal.AsSpan(list378); - num4 = 0; - span378[num4] = new GatheringLocation + num3 = 2; + List list378 = new List(num3); + CollectionsMarshal.SetCount(list378, num3); + Span span144 = CollectionsMarshal.AsSpan(list378); + span144[0] = new GatheringLocation { Position = new Vector3(-38.13882f, -159.4724f, -105.7621f), MinimumAngle = 10, MaximumAngle = 170 }; - num4++; - span378[num4] = new GatheringLocation + span144[1] = new GatheringLocation { Position = new Vector3(-22.27635f, -161.6958f, -92.39622f), MinimumAngle = -80, @@ -25488,75 +21735,63 @@ public static class AssemblyGatheringLocationLoader gatheringRoot33.Groups = list369; AddLocation(988, gatheringRoot33); GatheringRoot gatheringRoot34 = new GatheringRoot(); - index = 1; - List list379 = new List(index); - CollectionsMarshal.SetCount(list379, index); - Span span379 = CollectionsMarshal.AsSpan(list379); - num = 0; - span379[num] = "liza"; + num = 1; + List list379 = new List(num); + CollectionsMarshal.SetCount(list379, num); + CollectionsMarshal.AsSpan(list379)[0] = "liza"; gatheringRoot34.Author = list379; num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - Span span380 = CollectionsMarshal.AsSpan(list380); - index = 0; - span380[index] = new QuestStep(EInteractionType.None, null, null, 1187) + CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; gatheringRoot34.Steps = list380; - index = 3; - List list381 = new List(index); - CollectionsMarshal.SetCount(list381, index); - Span span381 = CollectionsMarshal.AsSpan(list381); - num = 0; - ref GatheringNodeGroup reference280 = ref span381[num]; + num = 3; + List list381 = new List(num); + CollectionsMarshal.SetCount(list381, num); + Span span145 = CollectionsMarshal.AsSpan(list381); + ref GatheringNodeGroup reference280 = ref span145[0]; GatheringNodeGroup gatheringNodeGroup112 = new GatheringNodeGroup(); - num3 = 2; - List list382 = new List(num3); - CollectionsMarshal.SetCount(list382, num3); - Span span382 = CollectionsMarshal.AsSpan(list382); - num2 = 0; - ref GatheringNode reference281 = ref span382[num2]; + num2 = 2; + List list382 = new List(num2); + CollectionsMarshal.SetCount(list382, num2); + Span span146 = CollectionsMarshal.AsSpan(list382); + ref GatheringNode reference281 = ref span146[0]; GatheringNode obj169 = new GatheringNode { DataId = 34857u }; - num4 = 1; - List list383 = new List(num4); - CollectionsMarshal.SetCount(list383, num4); - Span span383 = CollectionsMarshal.AsSpan(list383); - index2 = 0; - span383[index2] = new GatheringLocation + num3 = 1; + List list383 = new List(num3); + CollectionsMarshal.SetCount(list383, num3); + CollectionsMarshal.AsSpan(list383)[0] = new GatheringLocation { Position = new Vector3(-12.48859f, -133.2091f, -427.7497f) }; obj169.Locations = list383; reference281 = obj169; - num2++; - ref GatheringNode reference282 = ref span382[num2]; + ref GatheringNode reference282 = ref span146[1]; GatheringNode obj170 = new GatheringNode { DataId = 34858u }; - index2 = 3; - List list384 = new List(index2); - CollectionsMarshal.SetCount(list384, index2); - Span span384 = CollectionsMarshal.AsSpan(list384); - num4 = 0; - span384[num4] = new GatheringLocation + num3 = 3; + List list384 = new List(num3); + CollectionsMarshal.SetCount(list384, num3); + Span span147 = CollectionsMarshal.AsSpan(list384); + span147[0] = new GatheringLocation { Position = new Vector3(-22.41956f, -129.3952f, -396.6573f) }; - num4++; - span384[num4] = new GatheringLocation + span147[1] = new GatheringLocation { Position = new Vector3(-16.08351f, -137.6674f, -464.35f), MinimumAngle = -65, MaximumAngle = 145 }; - num4++; - span384[num4] = new GatheringLocation + span147[2] = new GatheringLocation { Position = new Vector3(-9.000858f, -134.9256f, -439.0332f), MinimumAngle = -125, @@ -25566,25 +21801,21 @@ public static class AssemblyGatheringLocationLoader reference282 = obj170; gatheringNodeGroup112.Nodes = list382; reference280 = gatheringNodeGroup112; - num++; - ref GatheringNodeGroup reference283 = ref span381[num]; + ref GatheringNodeGroup reference283 = ref span145[1]; GatheringNodeGroup gatheringNodeGroup113 = new GatheringNodeGroup(); num2 = 2; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span385 = CollectionsMarshal.AsSpan(list385); - num3 = 0; - ref GatheringNode reference284 = ref span385[num3]; + Span span148 = CollectionsMarshal.AsSpan(list385); + ref GatheringNode reference284 = ref span148[0]; GatheringNode obj171 = new GatheringNode { DataId = 34861u }; - num4 = 1; - List list386 = new List(num4); - CollectionsMarshal.SetCount(list386, num4); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - span386[index2] = new GatheringLocation + num3 = 1; + List list386 = new List(num3); + CollectionsMarshal.SetCount(list386, num3); + CollectionsMarshal.AsSpan(list386)[0] = new GatheringLocation { Position = new Vector3(-234.8222f, -99.01237f, -376.7287f), MinimumAngle = -180, @@ -25592,32 +21823,28 @@ public static class AssemblyGatheringLocationLoader }; obj171.Locations = list386; reference284 = obj171; - num3++; - ref GatheringNode reference285 = ref span385[num3]; + ref GatheringNode reference285 = ref span148[1]; GatheringNode obj172 = new GatheringNode { DataId = 34862u }; - index2 = 3; - List list387 = new List(index2); - CollectionsMarshal.SetCount(list387, index2); - Span span387 = CollectionsMarshal.AsSpan(list387); - num4 = 0; - span387[num4] = new GatheringLocation + num3 = 3; + List list387 = new List(num3); + CollectionsMarshal.SetCount(list387, num3); + Span span149 = CollectionsMarshal.AsSpan(list387); + span149[0] = new GatheringLocation { Position = new Vector3(-236.0182f, -97.50027f, -372.1523f), MinimumAngle = -180, MaximumAngle = 45 }; - num4++; - span387[num4] = new GatheringLocation + span149[1] = new GatheringLocation { Position = new Vector3(-249.7221f, -96.55618f, -386.2397f), MinimumAngle = 35, MaximumAngle = 280 }; - num4++; - span387[num4] = new GatheringLocation + span149[2] = new GatheringLocation { Position = new Vector3(-241.8424f, -99.37369f, -386.2889f), MinimumAngle = -300, @@ -25627,37 +21854,32 @@ public static class AssemblyGatheringLocationLoader reference285 = obj172; gatheringNodeGroup113.Nodes = list385; reference283 = gatheringNodeGroup113; - num++; - ref GatheringNodeGroup reference286 = ref span381[num]; + ref GatheringNodeGroup reference286 = ref span145[2]; GatheringNodeGroup gatheringNodeGroup114 = new GatheringNodeGroup(); - num3 = 2; - List list388 = new List(num3); - CollectionsMarshal.SetCount(list388, num3); - Span span388 = CollectionsMarshal.AsSpan(list388); - num2 = 0; - ref GatheringNode reference287 = ref span388[num2]; + num2 = 2; + List list388 = new List(num2); + CollectionsMarshal.SetCount(list388, num2); + Span span150 = CollectionsMarshal.AsSpan(list388); + ref GatheringNode reference287 = ref span150[0]; GatheringNode obj173 = new GatheringNode { DataId = 34860u }; - num4 = 3; - List list389 = new List(num4); - CollectionsMarshal.SetCount(list389, num4); - Span span389 = CollectionsMarshal.AsSpan(list389); - index2 = 0; - span389[index2] = new GatheringLocation + num3 = 3; + List list389 = new List(num3); + CollectionsMarshal.SetCount(list389, num3); + Span span151 = CollectionsMarshal.AsSpan(list389); + span151[0] = new GatheringLocation { Position = new Vector3(-169.8177f, -85.61841f, -240.1007f) }; - index2++; - span389[index2] = new GatheringLocation + span151[1] = new GatheringLocation { Position = new Vector3(-116.6446f, -93.99508f, -274.6102f), MinimumAngle = -140, MaximumAngle = 150 }; - index2++; - span389[index2] = new GatheringLocation + span151[2] = new GatheringLocation { Position = new Vector3(-133.936f, -91.54122f, -273.3963f), MinimumAngle = -155, @@ -25665,18 +21887,15 @@ public static class AssemblyGatheringLocationLoader }; obj173.Locations = list389; reference287 = obj173; - num2++; - ref GatheringNode reference288 = ref span388[num2]; + ref GatheringNode reference288 = ref span150[1]; GatheringNode obj174 = new GatheringNode { DataId = 34859u }; - index2 = 1; - List list390 = new List(index2); - CollectionsMarshal.SetCount(list390, index2); - Span span390 = CollectionsMarshal.AsSpan(list390); - num4 = 0; - span390[num4] = new GatheringLocation + num3 = 1; + List list390 = new List(num3); + CollectionsMarshal.SetCount(list390, num3); + CollectionsMarshal.AsSpan(list390)[0] = new GatheringLocation { Position = new Vector3(-131.9198f, -89.88039f, -249.5422f) }; @@ -25690,16 +21909,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list391 = new List(num); CollectionsMarshal.SetCount(list391, num); - Span span391 = CollectionsMarshal.AsSpan(list391); - index = 0; - span391[index] = "liza"; + CollectionsMarshal.AsSpan(list391)[0] = "liza"; gatheringRoot35.Author = list391; - 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) + num = 1; + List list392 = new List(num); + CollectionsMarshal.SetCount(list392, num); + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -25707,57 +21922,49 @@ public static class AssemblyGatheringLocationLoader num = 3; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - Span span393 = CollectionsMarshal.AsSpan(list393); - index = 0; - ref GatheringNodeGroup reference289 = ref span393[index]; + Span span152 = CollectionsMarshal.AsSpan(list393); + ref GatheringNodeGroup reference289 = ref span152[0]; GatheringNodeGroup gatheringNodeGroup115 = new GatheringNodeGroup(); num2 = 2; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span394 = CollectionsMarshal.AsSpan(list394); - num3 = 0; - ref GatheringNode reference290 = ref span394[num3]; + Span span153 = CollectionsMarshal.AsSpan(list394); + ref GatheringNode reference290 = ref span153[0]; GatheringNode obj175 = new GatheringNode { DataId = 34866u }; - num4 = 3; - List list395 = new List(num4); - CollectionsMarshal.SetCount(list395, num4); - Span span395 = CollectionsMarshal.AsSpan(list395); - index2 = 0; - span395[index2] = new GatheringLocation + num3 = 3; + List list395 = new List(num3); + CollectionsMarshal.SetCount(list395, num3); + Span span154 = CollectionsMarshal.AsSpan(list395); + span154[0] = new GatheringLocation { Position = new Vector3(242.7737f, -135.9734f, -431.2313f), MinimumAngle = -55, MaximumAngle = 100 }; - index2++; - span395[index2] = new GatheringLocation + span154[1] = new GatheringLocation { Position = new Vector3(302.1836f, -135.4149f, -359.7965f), MinimumAngle = 5, MaximumAngle = 155 }; - index2++; - span395[index2] = new GatheringLocation + span154[2] = new GatheringLocation { Position = new Vector3(256.1657f, -135.744f, -414.7577f) }; obj175.Locations = list395; reference290 = obj175; - num3++; - ref GatheringNode reference291 = ref span394[num3]; + ref GatheringNode reference291 = ref span153[1]; GatheringNode obj176 = new GatheringNode { DataId = 34865u }; - index2 = 1; - List list396 = new List(index2); - CollectionsMarshal.SetCount(list396, index2); - Span span396 = CollectionsMarshal.AsSpan(list396); - num4 = 0; - span396[num4] = new GatheringLocation + num3 = 1; + List list396 = new List(num3); + CollectionsMarshal.SetCount(list396, num3); + CollectionsMarshal.AsSpan(list396)[0] = new GatheringLocation { Position = new Vector3(269.7338f, -134.0488f, -381.6242f), MinimumAngle = -85, @@ -25767,39 +21974,34 @@ public static class AssemblyGatheringLocationLoader reference291 = obj176; gatheringNodeGroup115.Nodes = list394; reference289 = gatheringNodeGroup115; - index++; - ref GatheringNodeGroup reference292 = ref span393[index]; + ref GatheringNodeGroup reference292 = ref span152[1]; GatheringNodeGroup gatheringNodeGroup116 = new GatheringNodeGroup(); - num3 = 2; - List list397 = new List(num3); - CollectionsMarshal.SetCount(list397, num3); - Span span397 = CollectionsMarshal.AsSpan(list397); - num2 = 0; - ref GatheringNode reference293 = ref span397[num2]; + num2 = 2; + List list397 = new List(num2); + CollectionsMarshal.SetCount(list397, num2); + Span span155 = CollectionsMarshal.AsSpan(list397); + ref GatheringNode reference293 = ref span155[0]; GatheringNode obj177 = new GatheringNode { DataId = 34868u }; - num4 = 3; - List list398 = new List(num4); - CollectionsMarshal.SetCount(list398, num4); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - span398[index2] = new GatheringLocation + num3 = 3; + List list398 = new List(num3); + CollectionsMarshal.SetCount(list398, num3); + Span span156 = CollectionsMarshal.AsSpan(list398); + span156[0] = new GatheringLocation { Position = new Vector3(389.1952f, -154.3099f, -368.3658f), MinimumAngle = 105, MaximumAngle = 345 }; - index2++; - span398[index2] = new GatheringLocation + span156[1] = new GatheringLocation { Position = new Vector3(401.9319f, -150.0004f, -408.114f), MinimumAngle = -70, MaximumAngle = 85 }; - index2++; - span398[index2] = new GatheringLocation + span156[2] = new GatheringLocation { Position = new Vector3(406.1098f, -152.2166f, -364.7227f), MinimumAngle = -210, @@ -25807,18 +22009,15 @@ public static class AssemblyGatheringLocationLoader }; obj177.Locations = list398; reference293 = obj177; - num2++; - ref GatheringNode reference294 = ref span397[num2]; + ref GatheringNode reference294 = ref span155[1]; GatheringNode obj178 = new GatheringNode { DataId = 34867u }; - index2 = 1; - List list399 = new List(index2); - CollectionsMarshal.SetCount(list399, index2); - Span span399 = CollectionsMarshal.AsSpan(list399); - num4 = 0; - span399[num4] = new GatheringLocation + num3 = 1; + List list399 = new List(num3); + CollectionsMarshal.SetCount(list399, num3); + CollectionsMarshal.AsSpan(list399)[0] = new GatheringLocation { Position = new Vector3(399.1297f, -152.1141f, -394.71f), MinimumAngle = 120, @@ -25828,52 +22027,44 @@ public static class AssemblyGatheringLocationLoader reference294 = obj178; gatheringNodeGroup116.Nodes = list397; reference292 = gatheringNodeGroup116; - index++; - ref GatheringNodeGroup reference295 = ref span393[index]; + ref GatheringNodeGroup reference295 = ref span152[2]; GatheringNodeGroup gatheringNodeGroup117 = new GatheringNodeGroup(); num2 = 2; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - num3 = 0; - ref GatheringNode reference296 = ref span400[num3]; + Span span157 = CollectionsMarshal.AsSpan(list400); + ref GatheringNode reference296 = ref span157[0]; GatheringNode obj179 = new GatheringNode { DataId = 34864u }; - num4 = 3; - List list401 = new List(num4); - CollectionsMarshal.SetCount(list401, num4); - Span span401 = CollectionsMarshal.AsSpan(list401); - index2 = 0; - span401[index2] = new GatheringLocation + num3 = 3; + List list401 = new List(num3); + CollectionsMarshal.SetCount(list401, num3); + Span span158 = CollectionsMarshal.AsSpan(list401); + span158[0] = new GatheringLocation { Position = new Vector3(359.517f, -161.1972f, -644.0471f) }; - index2++; - span401[index2] = new GatheringLocation + span158[1] = new GatheringLocation { Position = new Vector3(307.4235f, -159.1669f, -622.6444f) }; - index2++; - span401[index2] = new GatheringLocation + span158[2] = new GatheringLocation { Position = new Vector3(348.5925f, -165.3805f, -671.4193f) }; obj179.Locations = list401; reference296 = obj179; - num3++; - ref GatheringNode reference297 = ref span400[num3]; + ref GatheringNode reference297 = ref span157[1]; GatheringNode obj180 = new GatheringNode { DataId = 34863u }; - index2 = 1; - List list402 = new List(index2); - CollectionsMarshal.SetCount(list402, index2); - Span span402 = CollectionsMarshal.AsSpan(list402); - num4 = 0; - span402[num4] = new GatheringLocation + num3 = 1; + List list402 = new List(num3); + CollectionsMarshal.SetCount(list402, num3); + CollectionsMarshal.AsSpan(list402)[0] = new GatheringLocation { Position = new Vector3(323.8758f, -162.9682f, -648.8156f) }; @@ -25884,75 +22075,63 @@ public static class AssemblyGatheringLocationLoader gatheringRoot35.Groups = list393; AddLocation(993, gatheringRoot35); GatheringRoot gatheringRoot36 = new GatheringRoot(); - index = 1; - List list403 = new List(index); - CollectionsMarshal.SetCount(list403, index); - Span span403 = CollectionsMarshal.AsSpan(list403); - num = 0; - span403[num] = "liza"; + num = 1; + List list403 = new List(num); + CollectionsMarshal.SetCount(list403, num); + CollectionsMarshal.AsSpan(list403)[0] = "liza"; gatheringRoot36.Author = list403; num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - Span span404 = CollectionsMarshal.AsSpan(list404); - index = 0; - span404[index] = new QuestStep(EInteractionType.None, null, null, 1187) + CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.None, null, null, 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; gatheringRoot36.Steps = list404; - index = 3; - List list405 = new List(index); - CollectionsMarshal.SetCount(list405, index); - Span span405 = CollectionsMarshal.AsSpan(list405); - num = 0; - ref GatheringNodeGroup reference298 = ref span405[num]; + num = 3; + List list405 = new List(num); + CollectionsMarshal.SetCount(list405, num); + Span span159 = CollectionsMarshal.AsSpan(list405); + ref GatheringNodeGroup reference298 = ref span159[0]; GatheringNodeGroup gatheringNodeGroup118 = new GatheringNodeGroup(); - num3 = 2; - List list406 = new List(num3); - CollectionsMarshal.SetCount(list406, num3); - Span span406 = CollectionsMarshal.AsSpan(list406); - num2 = 0; - ref GatheringNode reference299 = ref span406[num2]; + num2 = 2; + List list406 = new List(num2); + CollectionsMarshal.SetCount(list406, num2); + Span span160 = CollectionsMarshal.AsSpan(list406); + ref GatheringNode reference299 = ref span160[0]; GatheringNode obj181 = new GatheringNode { DataId = 34869u }; - num4 = 1; - List list407 = new List(num4); - CollectionsMarshal.SetCount(list407, num4); - Span span407 = CollectionsMarshal.AsSpan(list407); - index2 = 0; - span407[index2] = new GatheringLocation + num3 = 1; + List list407 = new List(num3); + CollectionsMarshal.SetCount(list407, num3); + CollectionsMarshal.AsSpan(list407)[0] = new GatheringLocation { Position = new Vector3(-604.6953f, 59.64062f, 5.50073f) }; obj181.Locations = list407; reference299 = obj181; - num2++; - ref GatheringNode reference300 = ref span406[num2]; + ref GatheringNode reference300 = ref span160[1]; GatheringNode obj182 = new GatheringNode { DataId = 34870u }; - index2 = 3; - List list408 = new List(index2); - CollectionsMarshal.SetCount(list408, index2); - Span span408 = CollectionsMarshal.AsSpan(list408); - num4 = 0; - span408[num4] = new GatheringLocation + num3 = 3; + List list408 = new List(num3); + CollectionsMarshal.SetCount(list408, num3); + Span span161 = CollectionsMarshal.AsSpan(list408); + span161[0] = new GatheringLocation { Position = new Vector3(-618.7993f, 59.13951f, 17.80936f) }; - num4++; - span408[num4] = new GatheringLocation + span161[1] = new GatheringLocation { Position = new Vector3(-615.0759f, 59.08474f, -4.837158f), MinimumAngle = 115, MaximumAngle = 325 }; - num4++; - span408[num4] = new GatheringLocation + span161[2] = new GatheringLocation { Position = new Vector3(-593.0486f, 60.01728f, 15.20686f) }; @@ -25960,35 +22139,30 @@ public static class AssemblyGatheringLocationLoader reference300 = obj182; gatheringNodeGroup118.Nodes = list406; reference298 = gatheringNodeGroup118; - num++; - ref GatheringNodeGroup reference301 = ref span405[num]; + ref GatheringNodeGroup reference301 = ref span159[1]; GatheringNodeGroup gatheringNodeGroup119 = new GatheringNodeGroup(); num2 = 2; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span409 = CollectionsMarshal.AsSpan(list409); - num3 = 0; - ref GatheringNode reference302 = ref span409[num3]; + Span span162 = CollectionsMarshal.AsSpan(list409); + ref GatheringNode reference302 = ref span162[0]; GatheringNode obj183 = new GatheringNode { DataId = 34872u }; - num4 = 3; - List list410 = new List(num4); - CollectionsMarshal.SetCount(list410, num4); - Span span410 = CollectionsMarshal.AsSpan(list410); - index2 = 0; - span410[index2] = new GatheringLocation + num3 = 3; + List list410 = new List(num3); + CollectionsMarshal.SetCount(list410, num3); + Span span163 = CollectionsMarshal.AsSpan(list410); + span163[0] = new GatheringLocation { Position = new Vector3(-812.0394f, 55.42165f, 118.3947f) }; - index2++; - span410[index2] = new GatheringLocation + span163[1] = new GatheringLocation { Position = new Vector3(-821.9205f, 56.51463f, 121.8448f) }; - index2++; - span410[index2] = new GatheringLocation + span163[2] = new GatheringLocation { Position = new Vector3(-837.9932f, 57.59847f, 104.7306f), MinimumAngle = -100, @@ -25996,18 +22170,15 @@ public static class AssemblyGatheringLocationLoader }; obj183.Locations = list410; reference302 = obj183; - num3++; - ref GatheringNode reference303 = ref span409[num3]; + ref GatheringNode reference303 = ref span162[1]; GatheringNode obj184 = new GatheringNode { DataId = 34871u }; - index2 = 1; - List list411 = new List(index2); - CollectionsMarshal.SetCount(list411, index2); - Span span411 = CollectionsMarshal.AsSpan(list411); - num4 = 0; - span411[num4] = new GatheringLocation + num3 = 1; + List list411 = new List(num3); + CollectionsMarshal.SetCount(list411, num3); + CollectionsMarshal.AsSpan(list411)[0] = new GatheringLocation { Position = new Vector3(-818.8149f, 55.11676f, 112.5509f) }; @@ -26015,56 +22186,48 @@ public static class AssemblyGatheringLocationLoader reference303 = obj184; gatheringNodeGroup119.Nodes = list409; reference301 = gatheringNodeGroup119; - num++; - ref GatheringNodeGroup reference304 = ref span405[num]; + ref GatheringNodeGroup reference304 = ref span159[2]; GatheringNodeGroup gatheringNodeGroup120 = new GatheringNodeGroup(); - num3 = 2; - List list412 = new List(num3); - CollectionsMarshal.SetCount(list412, num3); - Span span412 = CollectionsMarshal.AsSpan(list412); - num2 = 0; - ref GatheringNode reference305 = ref span412[num2]; + num2 = 2; + List list412 = new List(num2); + CollectionsMarshal.SetCount(list412, num2); + Span span164 = CollectionsMarshal.AsSpan(list412); + ref GatheringNode reference305 = ref span164[0]; GatheringNode obj185 = new GatheringNode { DataId = 34874u }; - num4 = 3; - List list413 = new List(num4); - CollectionsMarshal.SetCount(list413, num4); - Span span413 = CollectionsMarshal.AsSpan(list413); - index2 = 0; - span413[index2] = new GatheringLocation + num3 = 3; + List list413 = new List(num3); + CollectionsMarshal.SetCount(list413, num3); + Span span165 = CollectionsMarshal.AsSpan(list413); + span165[0] = new GatheringLocation { Position = new Vector3(-672.2305f, 76.87632f, 257.5817f), MinimumAngle = 85, MaximumAngle = 265 }; - index2++; - span413[index2] = new GatheringLocation + span165[1] = new GatheringLocation { Position = new Vector3(-625.6287f, 71.04436f, 234.6465f), MinimumAngle = -95, MaximumAngle = 140 }; - index2++; - span413[index2] = new GatheringLocation + span165[2] = new GatheringLocation { Position = new Vector3(-635.3436f, 74.07207f, 244.9178f) }; obj185.Locations = list413; reference305 = obj185; - num2++; - ref GatheringNode reference306 = ref span412[num2]; + ref GatheringNode reference306 = ref span164[1]; GatheringNode obj186 = new GatheringNode { DataId = 34873u }; - index2 = 1; - List list414 = new List(index2); - CollectionsMarshal.SetCount(list414, index2); - Span span414 = CollectionsMarshal.AsSpan(list414); - num4 = 0; - span414[num4] = new GatheringLocation + num3 = 1; + List list414 = new List(num3); + CollectionsMarshal.SetCount(list414, num3); + CollectionsMarshal.AsSpan(list414)[0] = new GatheringLocation { Position = new Vector3(-654.1213f, 74.65144f, 254.1959f) }; @@ -26078,16 +22241,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - Span span415 = CollectionsMarshal.AsSpan(list415); - index = 0; - span415[index] = "liza"; + CollectionsMarshal.AsSpan(list415)[0] = "liza"; gatheringRoot37.Author = list415; - 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) + num = 1; + List list416 = new List(num); + CollectionsMarshal.SetCount(list416, num); + CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.None, null, null, 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; @@ -26095,53 +22254,45 @@ public static class AssemblyGatheringLocationLoader num = 3; List list417 = new List(num); CollectionsMarshal.SetCount(list417, num); - Span span417 = CollectionsMarshal.AsSpan(list417); - index = 0; - ref GatheringNodeGroup reference307 = ref span417[index]; + Span span166 = CollectionsMarshal.AsSpan(list417); + ref GatheringNodeGroup reference307 = ref span166[0]; GatheringNodeGroup gatheringNodeGroup121 = new GatheringNodeGroup(); num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span418 = CollectionsMarshal.AsSpan(list418); - num3 = 0; - ref GatheringNode reference308 = ref span418[num3]; + Span span167 = CollectionsMarshal.AsSpan(list418); + ref GatheringNode reference308 = ref span167[0]; GatheringNode obj187 = new GatheringNode { DataId = 34901u }; - num4 = 1; - List list419 = new List(num4); - CollectionsMarshal.SetCount(list419, num4); - Span span419 = CollectionsMarshal.AsSpan(list419); - index2 = 0; - span419[index2] = new GatheringLocation + num3 = 1; + List list419 = new List(num3); + CollectionsMarshal.SetCount(list419, num3); + CollectionsMarshal.AsSpan(list419)[0] = new GatheringLocation { Position = new Vector3(343.0447f, 0.1167868f, 146.4354f) }; obj187.Locations = list419; reference308 = obj187; - num3++; - ref GatheringNode reference309 = ref span418[num3]; + ref GatheringNode reference309 = ref span167[1]; GatheringNode obj188 = new GatheringNode { DataId = 34902u }; - index2 = 3; - List list420 = new List(index2); - CollectionsMarshal.SetCount(list420, index2); - Span span420 = CollectionsMarshal.AsSpan(list420); - num4 = 0; - span420[num4] = new GatheringLocation + num3 = 3; + List list420 = new List(num3); + CollectionsMarshal.SetCount(list420, num3); + Span span168 = CollectionsMarshal.AsSpan(list420); + span168[0] = new GatheringLocation { Position = new Vector3(350.1042f, -2.02238f, 133.0248f) }; - num4++; - span420[num4] = new GatheringLocation + span168[1] = new GatheringLocation { Position = new Vector3(349.9641f, 2.9944f, 166.7519f) }; - num4++; - span420[num4] = new GatheringLocation + span168[2] = new GatheringLocation { Position = new Vector3(358.951f, 1.226612f, 152.3553f) }; @@ -26149,52 +22300,44 @@ public static class AssemblyGatheringLocationLoader reference309 = obj188; gatheringNodeGroup121.Nodes = list418; reference307 = gatheringNodeGroup121; - index++; - ref GatheringNodeGroup reference310 = ref span417[index]; + ref GatheringNodeGroup reference310 = ref span166[1]; GatheringNodeGroup gatheringNodeGroup122 = new GatheringNodeGroup(); - num3 = 2; - List list421 = new List(num3); - CollectionsMarshal.SetCount(list421, num3); - Span span421 = CollectionsMarshal.AsSpan(list421); - num2 = 0; - ref GatheringNode reference311 = ref span421[num2]; + num2 = 2; + List list421 = new List(num2); + CollectionsMarshal.SetCount(list421, num2); + Span span169 = CollectionsMarshal.AsSpan(list421); + ref GatheringNode reference311 = ref span169[0]; GatheringNode obj189 = new GatheringNode { DataId = 34903u }; - num4 = 1; - List list422 = new List(num4); - CollectionsMarshal.SetCount(list422, num4); - Span span422 = CollectionsMarshal.AsSpan(list422); - index2 = 0; - span422[index2] = new GatheringLocation + num3 = 1; + List list422 = new List(num3); + CollectionsMarshal.SetCount(list422, num3); + CollectionsMarshal.AsSpan(list422)[0] = new GatheringLocation { Position = new Vector3(530.04f, 6.585761f, 243.3026f) }; obj189.Locations = list422; reference311 = obj189; - num2++; - ref GatheringNode reference312 = ref span421[num2]; + ref GatheringNode reference312 = ref span169[1]; GatheringNode obj190 = new GatheringNode { DataId = 34904u }; - index2 = 3; - List list423 = new List(index2); - CollectionsMarshal.SetCount(list423, index2); - Span span423 = CollectionsMarshal.AsSpan(list423); - num4 = 0; - span423[num4] = new GatheringLocation + num3 = 3; + List list423 = new List(num3); + CollectionsMarshal.SetCount(list423, num3); + Span span170 = CollectionsMarshal.AsSpan(list423); + span170[0] = new GatheringLocation { Position = new Vector3(534.63f, 7.40439f, 261.0851f) }; - num4++; - span423[num4] = new GatheringLocation + span170[1] = new GatheringLocation { Position = new Vector3(537.3219f, 6.59951f, 234.4762f) }; - num4++; - span423[num4] = new GatheringLocation + span170[2] = new GatheringLocation { Position = new Vector3(510.6736f, 5.43621f, 247.2418f), MinimumAngle = -135, @@ -26204,52 +22347,44 @@ public static class AssemblyGatheringLocationLoader reference312 = obj190; gatheringNodeGroup122.Nodes = list421; reference310 = gatheringNodeGroup122; - index++; - ref GatheringNodeGroup reference313 = ref span417[index]; + ref GatheringNodeGroup reference313 = ref span166[2]; GatheringNodeGroup gatheringNodeGroup123 = new GatheringNodeGroup(); num2 = 2; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span424 = CollectionsMarshal.AsSpan(list424); - num3 = 0; - ref GatheringNode reference314 = ref span424[num3]; + Span span171 = CollectionsMarshal.AsSpan(list424); + ref GatheringNode reference314 = ref span171[0]; GatheringNode obj191 = new GatheringNode { DataId = 34900u }; - num4 = 3; - List list425 = new List(num4); - CollectionsMarshal.SetCount(list425, num4); - Span span425 = CollectionsMarshal.AsSpan(list425); - index2 = 0; - span425[index2] = new GatheringLocation + num3 = 3; + List list425 = new List(num3); + CollectionsMarshal.SetCount(list425, num3); + Span span172 = CollectionsMarshal.AsSpan(list425); + span172[0] = new GatheringLocation { Position = new Vector3(571.4374f, 5.934396f, 93.85439f) }; - index2++; - span425[index2] = new GatheringLocation + span172[1] = new GatheringLocation { Position = new Vector3(580.9511f, 4.927295f, 64.64209f) }; - index2++; - span425[index2] = new GatheringLocation + span172[2] = new GatheringLocation { Position = new Vector3(595.0986f, 9.620093f, 81.96783f) }; obj191.Locations = list425; reference314 = obj191; - num3++; - ref GatheringNode reference315 = ref span424[num3]; + ref GatheringNode reference315 = ref span171[1]; GatheringNode obj192 = new GatheringNode { DataId = 34899u }; - index2 = 1; - List list426 = new List(index2); - CollectionsMarshal.SetCount(list426, index2); - Span span426 = CollectionsMarshal.AsSpan(list426); - num4 = 0; - span426[num4] = new GatheringLocation + num3 = 1; + List list426 = new List(num3); + CollectionsMarshal.SetCount(list426, num3); + CollectionsMarshal.AsSpan(list426)[0] = new GatheringLocation { Position = new Vector3(578.6227f, 5.976591f, 76.53668f) }; @@ -26267,16 +22402,12 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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) + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -26284,36 +22415,31 @@ public static class AssemblyGatheringLocationLoader num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 2; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - ref GatheringNode reference2 = ref span4[num3]; + Span span2 = CollectionsMarshal.AsSpan(list4); + ref GatheringNode reference2 = ref span2[0]; GatheringNode obj = new GatheringNode { DataId = 34906u }; - int num4 = 3; - List list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); - Span span5 = CollectionsMarshal.AsSpan(list5); - int num5 = 0; - span5[num5] = new GatheringLocation + int num3 = 3; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new GatheringLocation { Position = new Vector3(236.4964f, -5.339633f, -346.5587f) }; - num5++; - span5[num5] = new GatheringLocation + span3[1] = new GatheringLocation { Position = new Vector3(252.2469f, -4.50562f, -352.3626f) }; - num5++; - span5[num5] = new GatheringLocation + span3[2] = new GatheringLocation { Position = new Vector3(270.0348f, 4.734006f, -370.3f), MinimumAngle = -5, @@ -26321,18 +22447,15 @@ public static class AssemblyGatheringLocationLoader }; obj.Locations = list5; reference2 = obj; - num3++; - ref GatheringNode reference3 = ref span4[num3]; + ref GatheringNode reference3 = ref span2[1]; GatheringNode obj2 = new GatheringNode { DataId = 34905u }; - num5 = 1; - List list6 = new List(num5); - CollectionsMarshal.SetCount(list6, num5); - Span span6 = CollectionsMarshal.AsSpan(list6); - num4 = 0; - span6[num4] = new GatheringLocation + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = new GatheringLocation { Position = new Vector3(291.2657f, 16.76923f, -372.8286f) }; @@ -26340,25 +22463,21 @@ public static class AssemblyGatheringLocationLoader reference3 = obj2; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference4 = ref span3[index]; + ref GatheringNodeGroup reference4 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - num3 = 2; - List list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref GatheringNode reference5 = ref span7[num2]; + num2 = 2; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref GatheringNode reference5 = ref span4[0]; GatheringNode obj3 = new GatheringNode { DataId = 34909u }; - num4 = 1; - List list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); - Span span8 = CollectionsMarshal.AsSpan(list8); - num5 = 0; - span8[num5] = new GatheringLocation + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + CollectionsMarshal.AsSpan(list8)[0] = new GatheringLocation { Position = new Vector3(452.2735f, 19.0634f, -350.683f), MinimumAngle = -55, @@ -26366,28 +22485,24 @@ public static class AssemblyGatheringLocationLoader }; obj3.Locations = list8; reference5 = obj3; - num2++; - ref GatheringNode reference6 = ref span7[num2]; + ref GatheringNode reference6 = ref span4[1]; GatheringNode obj4 = new GatheringNode { DataId = 34910u }; - num5 = 3; - List list9 = new List(num5); - CollectionsMarshal.SetCount(list9, num5); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new GatheringLocation + num3 = 3; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + Span span5 = CollectionsMarshal.AsSpan(list9); + span5[0] = new GatheringLocation { Position = new Vector3(451.7433f, 18.42068f, -333.2723f) }; - num4++; - span9[num4] = new GatheringLocation + span5[1] = new GatheringLocation { Position = new Vector3(425.1651f, 19.24389f, -388.6381f) }; - num4++; - span9[num4] = new GatheringLocation + span5[2] = new GatheringLocation { Position = new Vector3(425.4706f, 18.96692f, -371.645f), MinimumAngle = -190, @@ -26397,52 +22512,44 @@ public static class AssemblyGatheringLocationLoader reference6 = obj4; gatheringNodeGroup2.Nodes = list7; reference4 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference7 = ref span3[index]; + ref GatheringNodeGroup reference7 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - ref GatheringNode reference8 = ref span10[num3]; + Span span6 = CollectionsMarshal.AsSpan(list10); + ref GatheringNode reference8 = ref span6[0]; GatheringNode obj5 = new GatheringNode { DataId = 34908u }; - num4 = 3; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span11 = CollectionsMarshal.AsSpan(list11); - num5 = 0; - span11[num5] = new GatheringLocation + num3 = 3; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + Span span7 = CollectionsMarshal.AsSpan(list11); + span7[0] = new GatheringLocation { Position = new Vector3(268.0552f, -4.003453f, -173.8766f) }; - num5++; - span11[num5] = new GatheringLocation + span7[1] = new GatheringLocation { Position = new Vector3(244.3824f, -8.541841f, -212.8872f) }; - num5++; - span11[num5] = new GatheringLocation + span7[2] = new GatheringLocation { Position = new Vector3(236.6972f, -13.99463f, -189.6181f) }; obj5.Locations = list11; reference8 = obj5; - num3++; - ref GatheringNode reference9 = ref span10[num3]; + ref GatheringNode reference9 = ref span6[1]; GatheringNode obj6 = new GatheringNode { DataId = 34907u }; - num5 = 1; - List list12 = new List(num5); - CollectionsMarshal.SetCount(list12, num5); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new GatheringLocation + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheringLocation { Position = new Vector3(269.0605f, -6.302063f, -193.4243f) }; @@ -26453,19 +22560,16 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1000, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - span13[num] = "liza"; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = "liza"; gatheringRoot2.Author = list13; num = 3; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) + Span span8 = CollectionsMarshal.AsSpan(list14); + span8[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(417.1447f, -0.6f, -647.60004f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -26480,8 +22584,7 @@ public static class AssemblyGatheringLocationLoader } } }; - index++; - span14[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) + span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.1447f, 3f, -647.60004f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -26492,63 +22595,54 @@ public static class AssemblyGatheringLocationLoader } } }; - index++; - span14[index] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) + span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(419.8578f, -32.6974f, -653.75275f), 1189) { DisableNavmesh = true, Fly = true }; gatheringRoot2.Steps = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref GatheringNodeGroup reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span9 = CollectionsMarshal.AsSpan(list15); + ref GatheringNodeGroup reference10 = ref span9[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - num3 = 2; - List list16 = new List(num3); - CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num2 = 0; - ref GatheringNode reference11 = ref span16[num2]; + num2 = 2; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + Span span10 = CollectionsMarshal.AsSpan(list16); + ref GatheringNode reference11 = ref span10[0]; GatheringNode obj7 = new GatheringNode { DataId = 34912u }; - num4 = 3; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - num5 = 0; - span17[num5] = new GatheringLocation + num3 = 3; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + Span span11 = CollectionsMarshal.AsSpan(list17); + span11[0] = new GatheringLocation { Position = new Vector3(458.8916f, -51.02777f, -689.8627f) }; - num5++; - span17[num5] = new GatheringLocation + span11[1] = new GatheringLocation { Position = new Vector3(430.228f, -56.21914f, -693.9346f) }; - num5++; - span17[num5] = new GatheringLocation + span11[2] = new GatheringLocation { Position = new Vector3(462.8787f, -58.29268f, -704.244f) }; obj7.Locations = list17; reference11 = obj7; - num2++; - ref GatheringNode reference12 = ref span16[num2]; + ref GatheringNode reference12 = ref span10[1]; GatheringNode obj8 = new GatheringNode { DataId = 34911u }; - num5 = 1; - List list18 = new List(num5); - CollectionsMarshal.SetCount(list18, num5); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(448.169f, -53.1458f, -696.1208f) }; @@ -26556,52 +22650,44 @@ public static class AssemblyGatheringLocationLoader reference12 = obj8; gatheringNodeGroup4.Nodes = list16; reference10 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference13 = ref span15[num]; + ref GatheringNodeGroup reference13 = ref span9[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - ref GatheringNode reference14 = ref span19[num3]; + Span span12 = CollectionsMarshal.AsSpan(list19); + ref GatheringNode reference14 = ref span12[0]; GatheringNode obj9 = new GatheringNode { DataId = 34914u }; - num4 = 3; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - num5 = 0; - span20[num5] = new GatheringLocation + num3 = 3; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span13 = CollectionsMarshal.AsSpan(list20); + span13[0] = new GatheringLocation { Position = new Vector3(453.7438f, -59.20442f, -884.0787f) }; - num5++; - span20[num5] = new GatheringLocation + span13[1] = new GatheringLocation { Position = new Vector3(399.0516f, -48.41589f, -900.1575f) }; - num5++; - span20[num5] = new GatheringLocation + span13[2] = new GatheringLocation { Position = new Vector3(470.4918f, -54.81378f, -912.1257f) }; obj9.Locations = list20; reference14 = obj9; - num3++; - ref GatheringNode reference15 = ref span19[num3]; + ref GatheringNode reference15 = ref span12[1]; GatheringNode obj10 = new GatheringNode { DataId = 34913u }; - num5 = 1; - List list21 = new List(num5); - CollectionsMarshal.SetCount(list21, num5); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = new GatheringLocation + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = new GatheringLocation { Position = new Vector3(433.2036f, -56.63199f, -898.0532f) }; @@ -26609,52 +22695,44 @@ public static class AssemblyGatheringLocationLoader reference15 = obj10; gatheringNodeGroup5.Nodes = list19; reference13 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference16 = ref span15[num]; + ref GatheringNodeGroup reference16 = ref span9[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - num3 = 2; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref GatheringNode reference17 = ref span22[num2]; + num2 = 2; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span14 = CollectionsMarshal.AsSpan(list22); + ref GatheringNode reference17 = ref span14[0]; GatheringNode obj11 = new GatheringNode { DataId = 34915u }; - num4 = 1; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - num5 = 0; - span23[num5] = new GatheringLocation + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation { Position = new Vector3(263.8979f, -44.71192f, -873.9875f) }; obj11.Locations = list23; reference17 = obj11; - num2++; - ref GatheringNode reference18 = ref span22[num2]; + ref GatheringNode reference18 = ref span14[1]; GatheringNode obj12 = new GatheringNode { DataId = 34916u }; - num5 = 3; - List list24 = new List(num5); - CollectionsMarshal.SetCount(list24, num5); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new GatheringLocation + num3 = 3; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span15 = CollectionsMarshal.AsSpan(list24); + span15[0] = new GatheringLocation { Position = new Vector3(287.7073f, -43.04572f, -886.5245f) }; - num4++; - span24[num4] = new GatheringLocation + span15[1] = new GatheringLocation { Position = new Vector3(266.3744f, -47.55014f, -846.1501f) }; - num4++; - span24[num4] = new GatheringLocation + span15[2] = new GatheringLocation { Position = new Vector3(259.2106f, -44.82758f, -817.9664f) }; @@ -26668,67 +22746,55 @@ public static class AssemblyGatheringLocationLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; gatheringRoot3.Author = list25; - 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); + num = 1; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.None, null, null, 1190); gatheringRoot3.Steps = list26; num = 3; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - ref GatheringNodeGroup reference19 = ref span27[index]; + Span span16 = CollectionsMarshal.AsSpan(list27); + ref GatheringNodeGroup reference19 = ref span16[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref GatheringNode reference20 = ref span28[num3]; + Span span17 = CollectionsMarshal.AsSpan(list28); + ref GatheringNode reference20 = ref span17[0]; GatheringNode obj13 = new GatheringNode { DataId = 34920u }; - num4 = 3; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - num5 = 0; - span29[num5] = new GatheringLocation + num3 = 3; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span18 = CollectionsMarshal.AsSpan(list29); + span18[0] = new GatheringLocation { Position = new Vector3(192.6021f, 12.31054f, 631.2545f) }; - num5++; - span29[num5] = new GatheringLocation + span18[1] = new GatheringLocation { Position = new Vector3(194.8373f, 12.50387f, 646.5401f) }; - num5++; - span29[num5] = new GatheringLocation + span18[2] = new GatheringLocation { Position = new Vector3(180.8447f, 12.43262f, 610.7131f) }; obj13.Locations = list29; reference20 = obj13; - num3++; - ref GatheringNode reference21 = ref span28[num3]; + ref GatheringNode reference21 = ref span17[1]; GatheringNode obj14 = new GatheringNode { DataId = 34919u }; - num5 = 1; - List list30 = new List(num5); - CollectionsMarshal.SetCount(list30, num5); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new GatheringLocation + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheringLocation { Position = new Vector3(186.171f, 12.54104f, 634.9042f) }; @@ -26736,52 +22802,44 @@ public static class AssemblyGatheringLocationLoader reference21 = obj14; gatheringNodeGroup7.Nodes = list28; reference19 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference22 = ref span27[index]; + ref GatheringNodeGroup reference22 = ref span16[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - num3 = 2; - List list31 = new List(num3); - CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference23 = ref span31[num2]; + num2 = 2; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span19 = CollectionsMarshal.AsSpan(list31); + ref GatheringNode reference23 = ref span19[0]; GatheringNode obj15 = new GatheringNode { DataId = 34917u }; - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - num5 = 0; - span32[num5] = new GatheringLocation + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation { Position = new Vector3(39.45634f, -0.06042051f, 502.3853f) }; obj15.Locations = list32; reference23 = obj15; - num2++; - ref GatheringNode reference24 = ref span31[num2]; + ref GatheringNode reference24 = ref span19[1]; GatheringNode obj16 = new GatheringNode { DataId = 34918u }; - num5 = 3; - List list33 = new List(num5); - CollectionsMarshal.SetCount(list33, num5); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = new GatheringLocation + num3 = 3; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + Span span20 = CollectionsMarshal.AsSpan(list33); + span20[0] = new GatheringLocation { Position = new Vector3(46.03248f, -0.7049216f, 491.6059f) }; - num4++; - span33[num4] = new GatheringLocation + span20[1] = new GatheringLocation { Position = new Vector3(36.15481f, -0.0501074f, 505.9388f) }; - num4++; - span33[num4] = new GatheringLocation + span20[2] = new GatheringLocation { Position = new Vector3(24.72226f, 0.5922582f, 528.0809f) }; @@ -26789,52 +22847,44 @@ public static class AssemblyGatheringLocationLoader reference24 = obj16; gatheringNodeGroup8.Nodes = list31; reference22 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference25 = ref span27[index]; + ref GatheringNodeGroup reference25 = ref span16[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - ref GatheringNode reference26 = ref span34[num3]; + Span span21 = CollectionsMarshal.AsSpan(list34); + ref GatheringNode reference26 = ref span21[0]; GatheringNode obj17 = new GatheringNode { DataId = 34922u }; - num4 = 3; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - num5 = 0; - span35[num5] = new GatheringLocation + num3 = 3; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + Span span22 = CollectionsMarshal.AsSpan(list35); + span22[0] = new GatheringLocation { Position = new Vector3(2.302937f, -4.586716f, 687.4797f) }; - num5++; - span35[num5] = new GatheringLocation + span22[1] = new GatheringLocation { Position = new Vector3(30.02284f, -2.447479f, 704.4326f) }; - num5++; - span35[num5] = new GatheringLocation + span22[2] = new GatheringLocation { Position = new Vector3(41.59287f, -0.8454803f, 692.0099f) }; obj17.Locations = list35; reference26 = obj17; - num3++; - ref GatheringNode reference27 = ref span34[num3]; + ref GatheringNode reference27 = ref span21[1]; GatheringNode obj18 = new GatheringNode { DataId = 34921u }; - num5 = 1; - List list36 = new List(num5); - CollectionsMarshal.SetCount(list36, num5); - Span span36 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span36[num4] = new GatheringLocation + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation { Position = new Vector3(18.47237f, -2.987581f, 690.8011f) }; @@ -26852,30 +22902,23 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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); + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot.Steps = list2; num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index2 = 0; - ref GatheringNode reference2 = ref span4[index2]; + ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; GatheringNode obj = new GatheringNode { DataId = 35244u @@ -26883,9 +22926,7 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation { Position = new Vector3(89.145f, -188.3096f, 261.9594f), MinimumAngle = -160, @@ -26895,25 +22936,20 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference3 = ref span3[index]; + ref GatheringNodeGroup reference3 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref GatheringNode reference4 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; GatheringNode obj2 = new GatheringNode { DataId = 35243u }; - index3 = 1; - List list7 = new List(index3); - CollectionsMarshal.SetCount(list7, index3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new GatheringLocation + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = new GatheringLocation { Position = new Vector3(86.21152f, -188.234f, 255.0701f), MinimumAngle = -190, @@ -26923,15 +22959,12 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference5 = ref span3[index]; + ref GatheringNodeGroup reference5 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref GatheringNode reference6 = ref span8[index2]; + ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; GatheringNode obj3 = new GatheringNode { DataId = 35245u @@ -26939,9 +22972,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - index3 = 0; - span9[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(81.46383f, -187.1622f, 251.1194f), MinimumAngle = -185, @@ -26954,43 +22985,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1194, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - span10[num] = "Theo"; + num = 1; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + CollectionsMarshal.AsSpan(list10)[0] = "Theo"; gatheringRoot2.Author = list10; num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = new QuestStep(EInteractionType.None, null, null, 1189); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot2.Steps = list11; - index = 3; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref GatheringNodeGroup reference7 = ref span12[num]; + num = 3; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span2 = CollectionsMarshal.AsSpan(list12); + ref GatheringNodeGroup reference7 = ref span2[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - index2 = 1; - List list13 = new List(index2); - CollectionsMarshal.SetCount(list13, index2); - Span span13 = CollectionsMarshal.AsSpan(list13); - num2 = 0; - ref GatheringNode reference8 = ref span13[num2]; + num2 = 1; + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; GatheringNode obj4 = new GatheringNode { DataId = 35246u }; - index3 = 1; - List list14 = new List(index3); - CollectionsMarshal.SetCount(list14, index3); - Span span14 = CollectionsMarshal.AsSpan(list14); - num3 = 0; - span14[num3] = new GatheringLocation + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = new GatheringLocation { Position = new Vector3(-664.2164f, -174.1682f, 370.6607f), MinimumAngle = -230, @@ -27000,15 +23022,12 @@ public static class AssemblyGatheringLocationLoader reference8 = obj4; gatheringNodeGroup4.Nodes = list13; reference7 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference9 = ref span12[num]; + ref GatheringNodeGroup reference9 = ref span2[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref GatheringNode reference10 = ref span15[index2]; + ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; GatheringNode obj5 = new GatheringNode { DataId = 35247u @@ -27016,9 +23035,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - index3 = 0; - span16[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list16)[0] = new GatheringLocation { Position = new Vector3(-646.3196f, -171.4666f, 393.6898f), MinimumAngle = 30, @@ -27028,25 +23045,20 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference11 = ref span12[num]; + ref GatheringNodeGroup reference11 = ref span2[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - index2 = 1; - List list17 = new List(index2); - CollectionsMarshal.SetCount(list17, index2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref GatheringNode reference12 = ref span17[num2]; + num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; GatheringNode obj6 = new GatheringNode { DataId = 35248u }; - index3 = 1; - List list18 = new List(index3); - CollectionsMarshal.SetCount(list18, index3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(-669.3735f, -177.0724f, 354.7159f), MinimumAngle = -225, @@ -27062,30 +23074,23 @@ public static class AssemblyGatheringLocationLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; gatheringRoot3.Author = list19; - 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); + num = 1; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot3.Steps = list20; num = 3; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - ref GatheringNodeGroup reference13 = ref span21[index]; + Span span3 = CollectionsMarshal.AsSpan(list21); + ref GatheringNodeGroup reference13 = ref span3[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref GatheringNode reference14 = ref span22[index2]; + ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; GatheringNode obj7 = new GatheringNode { DataId = 35251u @@ -27093,9 +23098,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span23 = CollectionsMarshal.AsSpan(list23); - index3 = 0; - span23[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation { Position = new Vector3(-120.962f, -214.1182f, 349.0067f), MinimumAngle = -65, @@ -27105,25 +23108,20 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list22; reference13 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference15 = ref span21[index]; + ref GatheringNodeGroup reference15 = ref span3[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref GatheringNode reference16 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list24)[0]; GatheringNode obj8 = new GatheringNode { DataId = 35249u }; - index3 = 1; - List list25 = new List(index3); - CollectionsMarshal.SetCount(list25, index3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - span25[num3] = new GatheringLocation + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation { Position = new Vector3(-151.3246f, -213.9648f, 361.8845f), MinimumAngle = 145, @@ -27133,15 +23131,12 @@ public static class AssemblyGatheringLocationLoader reference16 = obj8; gatheringNodeGroup8.Nodes = list24; reference15 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference17 = ref span21[index]; + ref GatheringNodeGroup reference17 = ref span3[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref GatheringNode reference18 = ref span26[index2]; + ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; GatheringNode obj9 = new GatheringNode { DataId = 35250u @@ -27149,9 +23144,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - span27[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list27)[0] = new GatheringLocation { Position = new Vector3(-164.6348f, -214.1782f, 337.2287f), MinimumAngle = -135, @@ -27164,43 +23157,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list21; AddLocation(1196, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - span28[num] = "liza"; + num = 1; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + CollectionsMarshal.AsSpan(list28)[0] = "liza"; gatheringRoot4.Author = list28; num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = new QuestStep(EInteractionType.None, null, null, 1189); + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot4.Steps = list29; - index = 3; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref GatheringNodeGroup reference19 = ref span30[num]; + num = 3; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span4 = CollectionsMarshal.AsSpan(list30); + ref GatheringNodeGroup reference19 = ref span4[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - index2 = 1; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference20 = ref span31[num2]; + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; GatheringNode obj10 = new GatheringNode { DataId = 35254u }; - index3 = 1; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new GatheringLocation + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation { Position = new Vector3(649.5298f, 14.19326f, -222.9378f) }; @@ -27208,15 +23192,12 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference21 = ref span30[num]; + ref GatheringNodeGroup reference21 = ref span4[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - ref GatheringNode reference22 = ref span33[index2]; + ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; GatheringNode obj11 = new GatheringNode { DataId = 35252u @@ -27224,9 +23205,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span34 = CollectionsMarshal.AsSpan(list34); - index3 = 0; - span34[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list34)[0] = new GatheringLocation { Position = new Vector3(652.2325f, 13.41525f, -227.1611f) }; @@ -27234,25 +23213,20 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference23 = ref span30[num]; + ref GatheringNodeGroup reference23 = ref span4[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - index2 = 1; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref GatheringNode reference24 = ref span35[num2]; + num2 = 1; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; GatheringNode obj12 = new GatheringNode { DataId = 35253u }; - index3 = 1; - List list36 = new List(index3); - CollectionsMarshal.SetCount(list36, index3); - Span span36 = CollectionsMarshal.AsSpan(list36); - num3 = 0; - span36[num3] = new GatheringLocation + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation { Position = new Vector3(657.8542f, 13.34004f, -225.5971f) }; @@ -27266,16 +23240,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "liza"; + CollectionsMarshal.AsSpan(list37)[0] = "liza"; gatheringRoot5.Author = list37; - 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) + num = 1; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -27295,16 +23265,13 @@ public static class AssemblyGatheringLocationLoader num = 3; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - ref GatheringNodeGroup reference25 = ref span39[index]; + Span span5 = CollectionsMarshal.AsSpan(list39); + ref GatheringNodeGroup reference25 = ref span5[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref GatheringNode reference26 = ref span40[index2]; + ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list40)[0]; GatheringNode obj13 = new GatheringNode { DataId = 35256u @@ -27312,9 +23279,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - index3 = 0; - span41[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation { Position = new Vector3(23.8063f, 17.44395f, -861.3718f), MinimumAngle = -80, @@ -27324,25 +23289,20 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list40; reference25 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference27 = ref span39[index]; + ref GatheringNodeGroup reference27 = ref span5[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - index2 = 1; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num2 = 0; - ref GatheringNode reference28 = ref span42[num2]; + num2 = 1; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; GatheringNode obj14 = new GatheringNode { DataId = 35257u }; - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span43[num3] = new GatheringLocation + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation { Position = new Vector3(31.8484f, 17.91638f, -864.6296f), MinimumAngle = -90, @@ -27352,15 +23312,12 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list42; reference27 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference29 = ref span39[index]; + ref GatheringNodeGroup reference29 = ref span5[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - ref GatheringNode reference30 = ref span44[index2]; + ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list44)[0]; GatheringNode obj15 = new GatheringNode { DataId = 35255u @@ -27368,9 +23325,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - index3 = 0; - span45[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(37.64392f, 17.34943f, -865.3544f), MinimumAngle = -75, @@ -27383,19 +23338,15 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list39; AddLocation(1198, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - span46[num] = "Censored"; + num = 1; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + CollectionsMarshal.AsSpan(list46)[0] = "Censored"; gatheringRoot6.Author = list46; num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = new QuestStep(EInteractionType.None, null, null, 1189) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -27412,29 +23363,24 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot6.Steps = list47; - index = 3; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref GatheringNodeGroup reference31 = ref span48[num]; + num = 3; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span6 = CollectionsMarshal.AsSpan(list48); + ref GatheringNodeGroup reference31 = ref span6[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - index2 = 1; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref GatheringNode reference32 = ref span49[num2]; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list49)[0]; GatheringNode obj16 = new GatheringNode { DataId = 35260u }; - index3 = 1; - List list50 = new List(index3); - CollectionsMarshal.SetCount(list50, index3); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = new GatheringLocation + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation { Position = new Vector3(-601.0465f, 10.95519f, -366.7967f), MinimumAngle = -215, @@ -27444,15 +23390,12 @@ public static class AssemblyGatheringLocationLoader reference32 = obj16; gatheringNodeGroup16.Nodes = list49; reference31 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference33 = ref span48[num]; + ref GatheringNodeGroup reference33 = ref span6[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - ref GatheringNode reference34 = ref span51[index2]; + ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; GatheringNode obj17 = new GatheringNode { DataId = 35259u @@ -27460,9 +23403,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span52 = CollectionsMarshal.AsSpan(list52); - index3 = 0; - span52[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation { Position = new Vector3(-606.3102f, 11.02901f, -372.3002f), MinimumAngle = -240, @@ -27472,25 +23413,20 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list51; reference33 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference35 = ref span48[num]; + ref GatheringNodeGroup reference35 = ref span6[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - index2 = 1; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref GatheringNode reference36 = ref span53[num2]; + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; GatheringNode obj18 = new GatheringNode { DataId = 35258u }; - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = new GatheringLocation + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation { Position = new Vector3(-612.5112f, 11.75366f, -374.3395f), MinimumAngle = -235, @@ -27510,30 +23446,23 @@ public static class AssemblyGatheringLocationLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; gatheringRoot.Author = list; - 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); + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot.Steps = list2; num = 3; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - index = 0; - ref GatheringNodeGroup reference = ref span3[index]; + Span span = CollectionsMarshal.AsSpan(list3); + ref GatheringNodeGroup reference = ref span[0]; GatheringNodeGroup gatheringNodeGroup = new GatheringNodeGroup(); int num2 = 1; List list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index2 = 0; - ref GatheringNode reference2 = ref span4[index2]; + ref GatheringNode reference2 = ref CollectionsMarshal.AsSpan(list4)[0]; GatheringNode obj = new GatheringNode { DataId = 35262u @@ -27541,9 +23470,7 @@ public static class AssemblyGatheringLocationLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list5)[0] = new GatheringLocation { Position = new Vector3(217.4239f, -190.3947f, 299.83f), MinimumAngle = -100, @@ -27553,25 +23480,20 @@ public static class AssemblyGatheringLocationLoader reference2 = obj; gatheringNodeGroup.Nodes = list4; reference = gatheringNodeGroup; - index++; - ref GatheringNodeGroup reference3 = ref span3[index]; + ref GatheringNodeGroup reference3 = ref span[1]; GatheringNodeGroup gatheringNodeGroup2 = new GatheringNodeGroup(); - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref GatheringNode reference4 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref GatheringNode reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; GatheringNode obj2 = new GatheringNode { DataId = 35263u }; - index3 = 1; - List list7 = new List(index3); - CollectionsMarshal.SetCount(list7, index3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new GatheringLocation + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = new GatheringLocation { Position = new Vector3(208.6546f, -191.3975f, 297.5333f), MinimumAngle = 0, @@ -27581,15 +23503,12 @@ public static class AssemblyGatheringLocationLoader reference4 = obj2; gatheringNodeGroup2.Nodes = list6; reference3 = gatheringNodeGroup2; - index++; - ref GatheringNodeGroup reference5 = ref span3[index]; + ref GatheringNodeGroup reference5 = ref span[2]; GatheringNodeGroup gatheringNodeGroup3 = new GatheringNodeGroup(); num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref GatheringNode reference6 = ref span8[index2]; + ref GatheringNode reference6 = ref CollectionsMarshal.AsSpan(list8)[0]; GatheringNode obj3 = new GatheringNode { DataId = 35261u @@ -27597,9 +23516,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - index3 = 0; - span9[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list9)[0] = new GatheringLocation { Position = new Vector3(212.4513f, -192.6452f, 292.6832f), MinimumAngle = 85, @@ -27612,43 +23529,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot.Groups = list3; AddLocation(1200, gatheringRoot); GatheringRoot gatheringRoot2 = new GatheringRoot(); - index = 1; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - span10[num] = "Theo"; + num = 1; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + CollectionsMarshal.AsSpan(list10)[0] = "Theo"; gatheringRoot2.Author = list10; num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = new QuestStep(EInteractionType.None, null, null, 1189); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot2.Steps = list11; - index = 3; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref GatheringNodeGroup reference7 = ref span12[num]; + num = 3; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span2 = CollectionsMarshal.AsSpan(list12); + ref GatheringNodeGroup reference7 = ref span2[0]; GatheringNodeGroup gatheringNodeGroup4 = new GatheringNodeGroup(); - index2 = 1; - List list13 = new List(index2); - CollectionsMarshal.SetCount(list13, index2); - Span span13 = CollectionsMarshal.AsSpan(list13); - num2 = 0; - ref GatheringNode reference8 = ref span13[num2]; + num2 = 1; + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + ref GatheringNode reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; GatheringNode obj4 = new GatheringNode { DataId = 35264u }; - index3 = 1; - List list14 = new List(index3); - CollectionsMarshal.SetCount(list14, index3); - Span span14 = CollectionsMarshal.AsSpan(list14); - num3 = 0; - span14[num3] = new GatheringLocation + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = new GatheringLocation { Position = new Vector3(-594.4667f, -169.826f, 379.3596f), MinimumAngle = -360, @@ -27658,15 +23566,12 @@ public static class AssemblyGatheringLocationLoader reference8 = obj4; gatheringNodeGroup4.Nodes = list13; reference7 = gatheringNodeGroup4; - num++; - ref GatheringNodeGroup reference9 = ref span12[num]; + ref GatheringNodeGroup reference9 = ref span2[1]; GatheringNodeGroup gatheringNodeGroup5 = new GatheringNodeGroup(); num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref GatheringNode reference10 = ref span15[index2]; + ref GatheringNode reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; GatheringNode obj5 = new GatheringNode { DataId = 35265u @@ -27674,9 +23579,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - index3 = 0; - span16[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list16)[0] = new GatheringLocation { Position = new Vector3(-611.1483f, -174.4638f, 343.6277f), MinimumAngle = -360, @@ -27686,25 +23589,20 @@ public static class AssemblyGatheringLocationLoader reference10 = obj5; gatheringNodeGroup5.Nodes = list15; reference9 = gatheringNodeGroup5; - num++; - ref GatheringNodeGroup reference11 = ref span12[num]; + ref GatheringNodeGroup reference11 = ref span2[2]; GatheringNodeGroup gatheringNodeGroup6 = new GatheringNodeGroup(); - index2 = 1; - List list17 = new List(index2); - CollectionsMarshal.SetCount(list17, index2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref GatheringNode reference12 = ref span17[num2]; + num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + ref GatheringNode reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; GatheringNode obj6 = new GatheringNode { DataId = 35266u }; - index3 = 1; - List list18 = new List(index3); - CollectionsMarshal.SetCount(list18, index3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new GatheringLocation + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new GatheringLocation { Position = new Vector3(-639.3258f, -171.871f, 388.8273f), MinimumAngle = -360, @@ -27720,30 +23618,23 @@ public static class AssemblyGatheringLocationLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; gatheringRoot3.Author = list19; - 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); + num = 1; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot3.Steps = list20; num = 3; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - ref GatheringNodeGroup reference13 = ref span21[index]; + Span span3 = CollectionsMarshal.AsSpan(list21); + ref GatheringNodeGroup reference13 = ref span3[0]; GatheringNodeGroup gatheringNodeGroup7 = new GatheringNodeGroup(); num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref GatheringNode reference14 = ref span22[index2]; + ref GatheringNode reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; GatheringNode obj7 = new GatheringNode { DataId = 35267u @@ -27751,9 +23642,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span23 = CollectionsMarshal.AsSpan(list23); - index3 = 0; - span23[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list23)[0] = new GatheringLocation { Position = new Vector3(-136.4091f, -213.3115f, 348.263f), MinimumAngle = -115, @@ -27765,25 +23654,20 @@ public static class AssemblyGatheringLocationLoader reference14 = obj7; gatheringNodeGroup7.Nodes = list22; reference13 = gatheringNodeGroup7; - index++; - ref GatheringNodeGroup reference15 = ref span21[index]; + ref GatheringNodeGroup reference15 = ref span3[1]; GatheringNodeGroup gatheringNodeGroup8 = new GatheringNodeGroup(); - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref GatheringNode reference16 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref GatheringNode reference16 = ref CollectionsMarshal.AsSpan(list24)[0]; GatheringNode obj8 = new GatheringNode { DataId = 35269u }; - index3 = 1; - List list25 = new List(index3); - CollectionsMarshal.SetCount(list25, index3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - span25[num3] = new GatheringLocation + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = new GatheringLocation { Position = new Vector3(-138.786f, -213.2544f, 335.4114f), MinimumAngle = -220, @@ -27795,15 +23679,12 @@ public static class AssemblyGatheringLocationLoader reference16 = obj8; gatheringNodeGroup8.Nodes = list24; reference15 = gatheringNodeGroup8; - index++; - ref GatheringNodeGroup reference17 = ref span21[index]; + ref GatheringNodeGroup reference17 = ref span3[2]; GatheringNodeGroup gatheringNodeGroup9 = new GatheringNodeGroup(); num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref GatheringNode reference18 = ref span26[index2]; + ref GatheringNode reference18 = ref CollectionsMarshal.AsSpan(list26)[0]; GatheringNode obj9 = new GatheringNode { DataId = 35268u @@ -27811,9 +23692,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - span27[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list27)[0] = new GatheringLocation { Position = new Vector3(-147.5682f, -212.363f, 348.0441f), MinimumAngle = 30, @@ -27828,43 +23707,34 @@ public static class AssemblyGatheringLocationLoader gatheringRoot3.Groups = list21; AddLocation(1202, gatheringRoot3); GatheringRoot gatheringRoot4 = new GatheringRoot(); - index = 1; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - span28[num] = "liza"; + num = 1; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + CollectionsMarshal.AsSpan(list28)[0] = "liza"; gatheringRoot4.Author = list28; num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = new QuestStep(EInteractionType.None, null, null, 1189); + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.None, null, null, 1189); gatheringRoot4.Steps = list29; - index = 3; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref GatheringNodeGroup reference19 = ref span30[num]; + num = 3; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span4 = CollectionsMarshal.AsSpan(list30); + ref GatheringNodeGroup reference19 = ref span4[0]; GatheringNodeGroup gatheringNodeGroup10 = new GatheringNodeGroup(); - index2 = 1; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref GatheringNode reference20 = ref span31[num2]; + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref GatheringNode reference20 = ref CollectionsMarshal.AsSpan(list31)[0]; GatheringNode obj10 = new GatheringNode { DataId = 35272u }; - index3 = 1; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new GatheringLocation + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheringLocation { Position = new Vector3(712.1951f, 19.23321f, -299.8495f), MinimumAngle = 195, @@ -27874,15 +23744,12 @@ public static class AssemblyGatheringLocationLoader reference20 = obj10; gatheringNodeGroup10.Nodes = list31; reference19 = gatheringNodeGroup10; - num++; - ref GatheringNodeGroup reference21 = ref span30[num]; + ref GatheringNodeGroup reference21 = ref span4[1]; GatheringNodeGroup gatheringNodeGroup11 = new GatheringNodeGroup(); num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - ref GatheringNode reference22 = ref span33[index2]; + ref GatheringNode reference22 = ref CollectionsMarshal.AsSpan(list33)[0]; GatheringNode obj11 = new GatheringNode { DataId = 35270u @@ -27890,9 +23757,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span34 = CollectionsMarshal.AsSpan(list34); - index3 = 0; - span34[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list34)[0] = new GatheringLocation { Position = new Vector3(740.6464f, 23.75824f, -303.4917f), MinimumAngle = -20, @@ -27902,25 +23767,20 @@ public static class AssemblyGatheringLocationLoader reference22 = obj11; gatheringNodeGroup11.Nodes = list33; reference21 = gatheringNodeGroup11; - num++; - ref GatheringNodeGroup reference23 = ref span30[num]; + ref GatheringNodeGroup reference23 = ref span4[2]; GatheringNodeGroup gatheringNodeGroup12 = new GatheringNodeGroup(); - index2 = 1; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref GatheringNode reference24 = ref span35[num2]; + num2 = 1; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + ref GatheringNode reference24 = ref CollectionsMarshal.AsSpan(list35)[0]; GatheringNode obj12 = new GatheringNode { DataId = 35271u }; - index3 = 1; - List list36 = new List(index3); - CollectionsMarshal.SetCount(list36, index3); - Span span36 = CollectionsMarshal.AsSpan(list36); - num3 = 0; - span36[num3] = new GatheringLocation + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = new GatheringLocation { Position = new Vector3(702.0139f, 21.35347f, -331.0941f), MinimumAngle = -140, @@ -27936,16 +23796,12 @@ public static class AssemblyGatheringLocationLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "liza"; + CollectionsMarshal.AsSpan(list37)[0] = "liza"; gatheringRoot5.Author = list37; - 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) + num = 1; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -27965,16 +23821,13 @@ public static class AssemblyGatheringLocationLoader num = 3; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - ref GatheringNodeGroup reference25 = ref span39[index]; + Span span5 = CollectionsMarshal.AsSpan(list39); + ref GatheringNodeGroup reference25 = ref span5[0]; GatheringNodeGroup gatheringNodeGroup13 = new GatheringNodeGroup(); num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref GatheringNode reference26 = ref span40[index2]; + ref GatheringNode reference26 = ref CollectionsMarshal.AsSpan(list40)[0]; GatheringNode obj13 = new GatheringNode { DataId = 35273u @@ -27982,9 +23835,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - index3 = 0; - span41[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list41)[0] = new GatheringLocation { Position = new Vector3(-104.9523f, 10.90963f, -784.3555f), MinimumAngle = 185, @@ -27994,25 +23845,20 @@ public static class AssemblyGatheringLocationLoader reference26 = obj13; gatheringNodeGroup13.Nodes = list40; reference25 = gatheringNodeGroup13; - index++; - ref GatheringNodeGroup reference27 = ref span39[index]; + ref GatheringNodeGroup reference27 = ref span5[1]; GatheringNodeGroup gatheringNodeGroup14 = new GatheringNodeGroup(); - index2 = 1; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num2 = 0; - ref GatheringNode reference28 = ref span42[num2]; + num2 = 1; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + ref GatheringNode reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; GatheringNode obj14 = new GatheringNode { DataId = 35275u }; - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span43[num3] = new GatheringLocation + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = new GatheringLocation { Position = new Vector3(-93.91187f, 2.599666f, -756.9727f), MinimumAngle = 75, @@ -28022,15 +23868,12 @@ public static class AssemblyGatheringLocationLoader reference28 = obj14; gatheringNodeGroup14.Nodes = list42; reference27 = gatheringNodeGroup14; - index++; - ref GatheringNodeGroup reference29 = ref span39[index]; + ref GatheringNodeGroup reference29 = ref span5[2]; GatheringNodeGroup gatheringNodeGroup15 = new GatheringNodeGroup(); num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - ref GatheringNode reference30 = ref span44[index2]; + ref GatheringNode reference30 = ref CollectionsMarshal.AsSpan(list44)[0]; GatheringNode obj15 = new GatheringNode { DataId = 35274u @@ -28038,9 +23881,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - index3 = 0; - span45[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list45)[0] = new GatheringLocation { Position = new Vector3(-78.69253f, 14.48961f, -810.1029f), MinimumAngle = -85, @@ -28053,19 +23894,15 @@ public static class AssemblyGatheringLocationLoader gatheringRoot5.Groups = list39; AddLocation(1204, gatheringRoot5); GatheringRoot gatheringRoot6 = new GatheringRoot(); - index = 1; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - span46[num] = "Censored"; + num = 1; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + CollectionsMarshal.AsSpan(list46)[0] = "Censored"; gatheringRoot6.Author = list46; num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = new QuestStep(EInteractionType.None, null, null, 1189) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.None, null, null, 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -28082,29 +23919,24 @@ public static class AssemblyGatheringLocationLoader } }; gatheringRoot6.Steps = list47; - index = 3; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref GatheringNodeGroup reference31 = ref span48[num]; + num = 3; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span6 = CollectionsMarshal.AsSpan(list48); + ref GatheringNodeGroup reference31 = ref span6[0]; GatheringNodeGroup gatheringNodeGroup16 = new GatheringNodeGroup(); - index2 = 1; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref GatheringNode reference32 = ref span49[num2]; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + ref GatheringNode reference32 = ref CollectionsMarshal.AsSpan(list49)[0]; GatheringNode obj16 = new GatheringNode { DataId = 35278u }; - index3 = 1; - List list50 = new List(index3); - CollectionsMarshal.SetCount(list50, index3); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = new GatheringLocation + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new GatheringLocation { Position = new Vector3(-576.3171f, 4.257174f, -398.7203f) }; @@ -28112,15 +23944,12 @@ public static class AssemblyGatheringLocationLoader reference32 = obj16; gatheringNodeGroup16.Nodes = list49; reference31 = gatheringNodeGroup16; - num++; - ref GatheringNodeGroup reference33 = ref span48[num]; + ref GatheringNodeGroup reference33 = ref span6[1]; GatheringNodeGroup gatheringNodeGroup17 = new GatheringNodeGroup(); num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - ref GatheringNode reference34 = ref span51[index2]; + ref GatheringNode reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; GatheringNode obj17 = new GatheringNode { DataId = 35277u @@ -28128,9 +23957,7 @@ public static class AssemblyGatheringLocationLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span52 = CollectionsMarshal.AsSpan(list52); - index3 = 0; - span52[index3] = new GatheringLocation + CollectionsMarshal.AsSpan(list52)[0] = new GatheringLocation { Position = new Vector3(-578.7101f, 3.045597f, -403.618f) }; @@ -28138,25 +23965,20 @@ public static class AssemblyGatheringLocationLoader reference34 = obj17; gatheringNodeGroup17.Nodes = list51; reference33 = gatheringNodeGroup17; - num++; - ref GatheringNodeGroup reference35 = ref span48[num]; + ref GatheringNodeGroup reference35 = ref span6[2]; GatheringNodeGroup gatheringNodeGroup18 = new GatheringNodeGroup(); - index2 = 1; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref GatheringNode reference36 = ref span53[num2]; + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + ref GatheringNode reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; GatheringNode obj18 = new GatheringNode { DataId = 35276u }; - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = new GatheringLocation + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheringLocation { Position = new Vector3(-576.8013f, 3.518943f, -406.4176f) }; diff --git a/QuestPaths/Questionable.QuestPaths.QuestSchema b/QuestPaths/Questionable.QuestPaths.QuestSchema index bd8a34d..6edb122 100644 --- a/QuestPaths/Questionable.QuestPaths.QuestSchema +++ b/QuestPaths/Questionable.QuestPaths.QuestSchema @@ -90,6 +90,21 @@ "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" }, @@ -624,8 +639,9 @@ } }, "then": { - "required": [ - "Position" + "anyOf": [ + { "required": ["Position"] }, + { "required": ["DataId"] } ] } }, @@ -1416,7 +1432,10 @@ "Cheer Rhythm: Red", "Cheer Rhythm: Blue", "Cheer Rhythm: Green", - "Cheer Rhythm: Yellow" + "Cheer Rhythm: Yellow", + "Pruning Pirouette", + "Roaring Eggscapade", + "The Spriganator" ] } }, diff --git a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs index c22e68f..491c956 100644 --- a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs +++ b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs @@ -149,16 +149,12 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; questRoot.Author = list; - index = 1; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -166,9 +162,8 @@ public static class AssemblyQuestLoader int num2 = 8; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int num3 = 0; - span3[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span = CollectionsMarshal.AsSpan(list3); + span[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -180,19 +175,16 @@ public static class AssemblyQuestLoader } } }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley, AetheryteShortcut = EAetheryteLocation.Limsa }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -201,8 +193,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - num3++; - span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + span[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -212,18 +203,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; @@ -236,48 +224,39 @@ public static class AssemblyQuestLoader num = 1; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - Span span4 = CollectionsMarshal.AsSpan(list4); - index = 0; - span4[index] = "liza"; + CollectionsMarshal.AsSpan(list4)[0] = "liza"; questRoot2.Author = list4; - index = 2; - List list5 = new List(index); - CollectionsMarshal.SetCount(list5, index); - Span span5 = CollectionsMarshal.AsSpan(list5); - num = 0; - ref QuestSequence reference2 = ref span5[num]; + num = 2; + List list5 = new List(num); + CollectionsMarshal.SetCount(list5, num); + Span span2 = CollectionsMarshal.AsSpan(list5); + ref QuestSequence reference2 = ref span2[0]; QuestSequence obj2 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetClass = EExtendedClassJob.BlueMage }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; - num2++; - ref QuestStep reference3 = ref span6[num2]; + ref QuestStep reference3 = ref span3[3]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1019615u, new Vector3(-71.763245f, 206.50021f, 32.638916f), 478) { StopDistance = 5f }; - int num4 = 1; - List list7 = new List(num4); - CollectionsMarshal.SetCount(list7, num4); - Span span7 = CollectionsMarshal.AsSpan(list7); - int index2 = 0; - span7[index2] = new DialogueChoice + int num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/003/CtsSfsCharacter1_00386", @@ -289,8 +268,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list6; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span5[num]; + ref QuestSequence reference4 = ref span2[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 @@ -298,16 +276,12 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - num3 = 0; - ref QuestStep reference5 = ref span8[num3]; + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list8)[0]; QuestStep questStep = new QuestStep(EInteractionType.None, null, null, 635); - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new DialogueChoice + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/003/CtsSfsCharacter1_00386", @@ -325,26 +299,21 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list10)[0] = "WigglyMuffin"; questRoot3.Author = list10; - index = 1; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference6 = ref span11[num]; + num = 1; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Gridania, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -356,30 +325,24 @@ public static class AssemblyQuestLoader } } }; - num2++; - span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + span4[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - num2++; - span12[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - num2++; - span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span4[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - num2++; - span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span4[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -388,15 +351,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - num2++; - span12[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span4[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -414,16 +374,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "liza"; + CollectionsMarshal.AsSpan(list13)[0] = "liza"; questRoot4.Author = list13; - index = 2; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference7 = ref span14[num]; + num = 2; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span5 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference7 = ref span5[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -431,16 +388,13 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num3 = 0; - span15[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 635) + Span span6 = CollectionsMarshal.AsSpan(list15); + span6[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 635) { TargetClass = EExtendedClassJob.BlueMage }; - num3++; - span15[num3] = new QuestStep(EInteractionType.Gather, null, null, 635); - num3++; - ref QuestStep reference8 = ref span15[num3]; + span6[1] = new QuestStep(EInteractionType.Gather, null, null, 635); + ref QuestStep reference8 = ref span6[2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -450,12 +404,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachNorthEast } }; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new DialogueChoice + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter2_00434", @@ -467,25 +419,20 @@ public static class AssemblyQuestLoader reference8 = obj7; obj6.Steps = list15; reference7 = obj6; - num++; - ref QuestSequence reference9 = ref span14[num]; + ref QuestSequence reference9 = ref span5[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list17 = new List(num3); - CollectionsMarshal.SetCount(list17, num3); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref QuestStep reference10 = ref span17[num2]; + 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); - index2 = 1; - List list18 = new List(index2); - CollectionsMarshal.SetCount(list18, index2); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = new DialogueChoice + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter2_00434", @@ -503,16 +450,12 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list19)[0] = "WigglyMuffin"; questRoot5.Author = list19; - index = 1; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference11 = ref span20[num]; + num = 1; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + ref QuestSequence reference11 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -520,9 +463,8 @@ public static class AssemblyQuestLoader num2 = 10; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - span21[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) + Span span7 = CollectionsMarshal.AsSpan(list21); + span7[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -534,42 +476,33 @@ public static class AssemblyQuestLoader } } }; - num3++; - span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + span7[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - 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) + span7[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + span7[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - num3++; - span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span7[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - num3++; - span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span7[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - num3++; - span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span7[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - num3++; - span21[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span7[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - 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) + 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) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; @@ -582,26 +515,21 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list22)[0] = "Cacahuetes"; questRoot6.Author = list22; - index = 2; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference12 = ref span23[num]; + num = 2; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span8 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference12 = ref span8[0]; QuestSequence obj10 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -616,20 +544,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = 133; + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = 133; obj12.InTerritory = list25; skipConditions.AetheryteShortcutIf = obj12; obj11.SkipConditions = skipConditions; reference13 = obj11; obj10.Steps = list24; reference12 = obj10; - num++; - ref QuestSequence reference14 = ref span23[num]; + ref QuestSequence reference14 = ref span8[1]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -637,16 +562,12 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num3 = 0; - ref QuestStep reference15 = ref span26[num3]; + ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list26)[0]; QuestStep questStep3 = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133); - index2 = 1; - List list27 = new List(index2); - CollectionsMarshal.SetCount(list27, index2); - Span span27 = CollectionsMarshal.AsSpan(list27); - num4 = 0; - span27[num4] = new DialogueChoice + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSHRV001_00003_Q1_000_1") @@ -663,43 +584,35 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot7.Author = list28; - index = 2; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference16 = ref span29[num]; + num = 2; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span9 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference16 = ref span9[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetClass = EExtendedClassJob.BlueMage }; - num2++; - span30[num2] = new QuestStep(EInteractionType.Gather, null, null, 613); - num2++; - ref QuestStep reference17 = ref span30[num2]; + span10[1] = new QuestStep(EInteractionType.Gather, null, null, 613); + ref QuestStep reference17 = ref span10[2]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num4 = 1; - List list31 = new List(num4); - CollectionsMarshal.SetCount(list31, num4); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new DialogueChoice + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter3_00481", @@ -711,8 +624,7 @@ public static class AssemblyQuestLoader reference17 = obj15; obj14.Steps = list30; reference16 = obj14; - num++; - ref QuestSequence reference18 = ref span29[num]; + ref QuestSequence reference18 = ref span9[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -720,16 +632,12 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - ref QuestStep reference19 = ref span32[num3]; + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.None, null, null, 613); - index2 = 1; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = new DialogueChoice + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/004/CtsSfsCharacter3_00481", @@ -747,26 +655,21 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list34)[0] = "WigglyMuffin"; questRoot8.Author = list34; - index = 1; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference20 = ref span35[num]; + num = 1; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + ref QuestSequence reference20 = ref CollectionsMarshal.AsSpan(list35)[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.GoldSaucer, AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -778,31 +681,26 @@ public static class AssemblyQuestLoader } } }; - num2++; - span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span11[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEntranceCardSquares }; - num2++; - span36[num2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) + span11[2] = new QuestStep(EInteractionType.Interact, 1011044u, new Vector3(-84.45868f, 3.7690625E-06f, 29.06836f), 144) { TargetTerritoryId = (ushort)388 }; - num2++; - span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + span11[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 5f, AethernetShard = EAetheryteLocation.GoldSaucerMinionSquare }; - num2++; - span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + span11[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerChocoboSquare }; - num2++; - span36[num2] = new QuestStep(EInteractionType.None, null, null, 388) + span11[5] = new QuestStep(EInteractionType.None, null, null, 388) { AethernetShortcut = new AethernetShortcut { @@ -810,22 +708,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - 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) + 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) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareWest }; - num2++; - span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span11[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareEast }; - num2++; - span36[num2] = new QuestStep(EInteractionType.None, null, null, 144) + span11[9] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -833,22 +727,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - num2++; - span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span11[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEventSquare }; - 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) + 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) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerCactpotBoard }; - num2++; - span36[num2] = new QuestStep(EInteractionType.None, null, null, 144) + span11[13] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -856,8 +746,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - num2++; - span36[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span11[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerRoundSquare @@ -871,16 +760,13 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "liza"; + CollectionsMarshal.AsSpan(list37)[0] = "liza"; questRoot9.Author = list37; - index = 2; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference21 = ref span38[num]; + num = 2; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span12 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference21 = ref span12[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -888,9 +774,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - ref QuestStep reference22 = ref span39[num3]; + ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list39)[0]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -905,47 +789,39 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = 133; + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + CollectionsMarshal.AsSpan(list40)[0] = 133; obj20.InTerritory = list40; skipConditions2.AetheryteShortcutIf = obj20; obj19.SkipConditions = skipConditions2; reference22 = obj19; obj18.Steps = list39; reference21 = obj18; - num++; - ref QuestSequence reference23 = ref span38[num]; + ref QuestSequence reference23 = ref span12[1]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 154); - index2 = 1; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num4 = 0; - span42[num4] = new GatheredItem + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheredItem { ItemId = 5498u, ItemCount = 10 }; questStep5.ItemsToGather = list42; reference24 = questStep5; - num2++; - span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) + span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -964,16 +840,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "liza"; + CollectionsMarshal.AsSpan(list43)[0] = "liza"; questRoot10.Author = list43; - index = 2; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference25 = ref span44[num]; + num = 2; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span14 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference25 = ref span14[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -981,26 +854,21 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) + Span span15 = CollectionsMarshal.AsSpan(list45); + span15[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 478) { TargetClass = EExtendedClassJob.BlueMage }; - num3++; - span45[num3] = new QuestStep(EInteractionType.Gather, null, null, 478); - num3++; - ref QuestStep reference26 = ref span45[num3]; + span15[1] = new QuestStep(EInteractionType.Gather, null, null, 478); + ref QuestStep reference26 = ref span15[2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; - num4 = 1; - List list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new DialogueChoice + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/005/CtsSfsCharacter4_00541", @@ -1012,25 +880,20 @@ public static class AssemblyQuestLoader reference26 = obj23; obj22.Steps = list45; reference25 = obj22; - num++; - ref QuestSequence reference27 = ref span44[num]; + ref QuestSequence reference27 = ref span14[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list47 = new List(num3); - CollectionsMarshal.SetCount(list47, num3); - Span span47 = CollectionsMarshal.AsSpan(list47); - num2 = 0; - ref QuestStep reference28 = ref span47[num2]; + 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); - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new DialogueChoice + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/005/CtsSfsCharacter4_00541", @@ -1048,16 +911,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot11.Author = list49; - index = 2; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference29 = ref span50[num]; + num = 2; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span16 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference29 = ref span16[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -1065,9 +925,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - ref QuestStep reference30 = ref span51[num3]; + ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1082,47 +940,39 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list52 = new List(num4); - CollectionsMarshal.SetCount(list52, num4); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = 133; + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = 133; obj27.InTerritory = list52; skipConditions3.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions3; reference30 = obj26; obj25.Steps = list51; reference29 = obj25; - num++; - ref QuestSequence reference31 = ref span50[num]; + ref QuestSequence reference31 = ref span16[1]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 148); - index2 = 1; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new GatheredItem + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheredItem { ItemId = 5352u, ItemCount = 10 }; questStep7.ItemsToGather = list54; reference32 = questStep7; - num2++; - span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) + span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1000295u, new Vector3(-234.24127f, 8.000092f, -155.169f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1141,16 +991,12 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list55)[0] = "WigglyMuffin"; questRoot12.Author = list55; - index = 1; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference33 = ref span56[num]; + num = 1; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + ref QuestSequence reference33 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -1158,9 +1004,8 @@ public static class AssemblyQuestLoader num2 = 10; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) + Span span18 = CollectionsMarshal.AsSpan(list57); + span18[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) { Aetheryte = EAetheryteLocation.Ishgard, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1172,13 +1017,11 @@ public static class AssemblyQuestLoader } } }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + span18[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardSkysteelManufactory }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + span18[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardBrume, AethernetShortcut = new AethernetShortcut @@ -1187,38 +1030,31 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Ishgard } }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + span18[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardForgottenKnight }; - num3++; - span57[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) + span18[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) { TargetTerritoryId = (ushort)419 }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span18[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardAthenaeumAstrologicum }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span18[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardTribunal }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span18[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardSaintReymanaudsCathedral }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span18[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardJeweledCrozier }; - num3++; - span57[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span18[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardLastVigil }; @@ -1231,43 +1067,35 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "liza"; + CollectionsMarshal.AsSpan(list58)[0] = "liza"; questRoot13.Author = list58; - index = 2; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference34 = ref span59[num]; + num = 2; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span19 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference34 = ref span19[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetClass = EExtendedClassJob.BlueMage }; - num2++; - span60[num2] = new QuestStep(EInteractionType.Gather, null, null, 820); - num2++; - ref QuestStep reference35 = ref span60[num2]; + span20[1] = new QuestStep(EInteractionType.Gather, null, null, 820); + ref QuestStep reference35 = ref span20[2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; - num4 = 1; - List list61 = new List(num4); - CollectionsMarshal.SetCount(list61, num4); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new DialogueChoice + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter5_00640", @@ -1279,8 +1107,7 @@ public static class AssemblyQuestLoader reference35 = obj31; obj30.Steps = list60; reference34 = obj30; - num++; - ref QuestSequence reference36 = ref span59[num]; + ref QuestSequence reference36 = ref span19[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -1288,16 +1115,12 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - num3 = 0; - ref QuestStep reference37 = ref span62[num3]; + ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list62)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.None, null, null, 635); - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num4 = 0; - span63[num4] = new DialogueChoice + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter5_00640", @@ -1315,26 +1138,21 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot14.Author = list64; - index = 4; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference38 = ref span65[num]; + num = 4; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span21 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference38 = ref span21[0]; QuestSequence obj33 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list66)[0]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1349,20 +1167,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list67 = new List(num4); - CollectionsMarshal.SetCount(list67, num4); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = 133; + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = 133; obj35.InTerritory = list67; skipConditions4.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions4; reference39 = obj34; obj33.Steps = list66; reference38 = obj33; - num++; - ref QuestSequence reference40 = ref span65[num]; + ref QuestSequence reference40 = ref span21[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -1370,9 +1185,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num3 = 0; - span68[num3] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) { AethernetShortcut = new AethernetShortcut { @@ -1382,35 +1195,29 @@ public static class AssemblyQuestLoader }; obj36.Steps = list68; reference40 = obj36; - num++; - ref QuestSequence reference41 = ref span65[num]; + ref QuestSequence reference41 = ref span21[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 148); - index2 = 1; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num4 = 0; - span70[num4] = new GatheredItem + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem { ItemId = 4832u, ItemCount = 10 }; questStep9.ItemsToGather = list70; reference42 = questStep9; - num2++; - span69[num2] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) + span22[2] = new QuestStep(EInteractionType.Interact, 1000239u, new Vector3(170.30591f, 15.699951f, -118.638916f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1421,8 +1228,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list69; reference41 = obj37; - num++; - ref QuestSequence reference43 = ref span65[num]; + ref QuestSequence reference43 = ref span21[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -1430,9 +1236,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - num3 = 0; - span71[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AethernetShortcut = new AethernetShortcut { @@ -1450,26 +1254,21 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list72)[0] = "WigglyMuffin"; questRoot15.Author = list72; - index = 1; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference44 = ref span73[num]; + num = 1; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + ref QuestSequence reference44 = ref CollectionsMarshal.AsSpan(list73)[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Idyllshire, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -1481,8 +1280,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span74[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) + span23[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 478) { AethernetShard = EAetheryteLocation.IdyllshireWest }; @@ -1495,16 +1293,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "liza"; + CollectionsMarshal.AsSpan(list75)[0] = "liza"; questRoot16.Author = list75; - index = 2; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference45 = ref span76[num]; + num = 2; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span24 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference45 = ref span24[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -1512,16 +1307,13 @@ public static class AssemblyQuestLoader num2 = 4; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num3 = 0; - span77[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) + Span span25 = CollectionsMarshal.AsSpan(list77); + span25[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 886) { TargetClass = EExtendedClassJob.BlueMage }; - num3++; - span77[num3] = new QuestStep(EInteractionType.Gather, null, null, 886); - num3++; - ref QuestStep reference46 = ref span77[num3]; + span25[1] = new QuestStep(EInteractionType.Gather, null, null, 886); + ref QuestStep reference46 = ref span25[2]; QuestStep obj41 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1533,12 +1325,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num4 = 1; - List list78 = new List(num4); - CollectionsMarshal.SetCount(list78, num4); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = 886; + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = 886; skipAetheryteCondition.InTerritory = list78; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; skipConditions5.AethernetShortcutIf = new SkipAetheryteCondition @@ -1547,8 +1337,7 @@ public static class AssemblyQuestLoader }; obj41.SkipConditions = skipConditions5; reference46 = obj41; - num3++; - ref QuestStep reference47 = ref span77[num3]; + ref QuestStep reference47 = ref span25[3]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut @@ -1557,12 +1346,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMattock } }; - index2 = 1; - List list79 = new List(index2); - CollectionsMarshal.SetCount(list79, index2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num4 = 0; - span79[num4] = new DialogueChoice + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter6_00674", @@ -1574,25 +1361,20 @@ public static class AssemblyQuestLoader reference47 = obj42; obj40.Steps = list77; reference45 = obj40; - num++; - ref QuestSequence reference48 = ref span76[num]; + ref QuestSequence reference48 = ref span24[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list80 = new List(num3); - CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - num2 = 0; - ref QuestStep reference49 = ref span80[num2]; + 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); - num4 = 1; - List list81 = new List(num4); - CollectionsMarshal.SetCount(list81, num4); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new DialogueChoice + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/006/CtsSfsCharacter6_00674", @@ -1610,16 +1392,13 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "liza"; + CollectionsMarshal.AsSpan(list82)[0] = "liza"; questRoot17.Author = list82; - index = 2; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference50 = ref span83[num]; + num = 2; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span26 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference50 = ref span26[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -1627,9 +1406,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - ref QuestStep reference51 = ref span84[num3]; + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -1644,47 +1421,39 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num4 = 0; - span85[num4] = 133; + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = 133; obj46.InTerritory = list85; skipConditions6.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions6; reference51 = obj45; obj44.Steps = list84; reference50 = obj44; - num++; - ref QuestSequence reference52 = ref span83[num]; + ref QuestSequence reference52 = ref span26[1]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 138); - num4 = 1; - List list87 = new List(num4); - CollectionsMarshal.SetCount(list87, num4); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new GatheredItem + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = new GatheredItem { ItemId = 5599u, ItemCount = 15 }; questStep11.ItemsToGather = list87; reference53 = questStep11; - num2++; - span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000292u, new Vector3(-233.99713f, 8f, -146.86816f), 133) + span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1000292u, new Vector3(-233.99713f, 8f, -146.86816f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -1702,16 +1471,12 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list88)[0] = "WigglyMuffin"; questRoot18.Author = list88; - index = 1; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference54 = ref span89[num]; + num = 1; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + ref QuestSequence reference54 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -1719,9 +1484,8 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) + Span span28 = CollectionsMarshal.AsSpan(list90); + span28[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) { Aetheryte = EAetheryteLocation.RhalgrsReach, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -1733,13 +1497,11 @@ public static class AssemblyQuestLoader } } }; - num3++; - span90[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + span28[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachWest }; - num3++; - span90[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + span28[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachNorthEast, AethernetShortcut = new AethernetShortcut @@ -1757,33 +1519,27 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot19.Author = list91; - index = 2; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference55 = ref span92[num]; + num = 2; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span29 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference55 = ref span29[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetClass = EExtendedClassJob.BlueMage }; - num2++; - span93[num2] = new QuestStep(EInteractionType.Gather, null, null, 886); - num2++; - ref QuestStep reference56 = ref span93[num2]; + span30[1] = new QuestStep(EInteractionType.Gather, null, null, 886); + ref QuestStep reference56 = ref span30[2]; QuestStep obj50 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -1795,12 +1551,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index2 = 1; - List list94 = new List(index2); - CollectionsMarshal.SetCount(list94, index2); - Span span94 = CollectionsMarshal.AsSpan(list94); - num4 = 0; - span94[num4] = 886; + num3 = 1; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = 886; skipAetheryteCondition2.InTerritory = list94; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -1809,8 +1563,7 @@ public static class AssemblyQuestLoader }; obj50.SkipConditions = skipConditions7; reference56 = obj50; - num2++; - span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.51667f, 0f, -134.36552f), 886) + span30[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.51667f, 0f, -134.36552f), 886) { AethernetShortcut = new AethernetShortcut { @@ -1818,18 +1571,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentWesternRisensongQuarter } }; - num2++; - ref QuestStep reference57 = ref span93[num2]; + ref QuestStep reference57 = ref span30[4]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 1035211u, new Vector3(-116.96039f, 0f, -133.95898f), 886) { StopDistance = 7f }; - num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new DialogueChoice + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter7_00710", @@ -1841,8 +1591,7 @@ public static class AssemblyQuestLoader reference57 = obj51; obj49.Steps = list93; reference55 = obj49; - num++; - ref QuestSequence reference58 = ref span92[num]; + ref QuestSequence reference58 = ref span29[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -1850,16 +1599,12 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - ref QuestStep reference59 = ref span96[num3]; + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep questStep12 = new QuestStep(EInteractionType.None, null, null, 635); - index2 = 1; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num4 = 0; - span97[num4] = new DialogueChoice + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter7_00710", @@ -1877,26 +1622,21 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list98)[0] = "WigglyMuffin"; questRoot20.Author = list98; - index = 1; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference60 = ref span99[num]; + num = 1; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list99)[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Kugane, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -1908,23 +1648,19 @@ public static class AssemblyQuestLoader } } }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeShiokazeHostelry }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeMarkets }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRubyBazaar }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRakuzaDistrict, AethernetShortcut = new AethernetShortcut @@ -1933,8 +1669,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeBokairoInn, AethernetShortcut = new AethernetShortcut @@ -1943,8 +1678,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - num2++; - span100[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) + span31[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-132.33249f, 4.510561f, 117.53347f), 628) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -1953,29 +1687,24 @@ public static class AssemblyQuestLoader StopDistance = 0.5f } }; - num2++; - span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) + span31[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) { DisableNavmesh = true }; - num2++; - span100[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) + span31[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) { DisableNavmesh = true }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { DisableNavmesh = true, AethernetShard = EAetheryteLocation.KuganePier1 }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeThavnairianConsulate }; - num2++; - span100[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span31[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeSekiseigumiBarracks, AethernetShortcut = new AethernetShortcut @@ -1993,16 +1722,13 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot21.Author = list101; - index = 2; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference61 = ref span102[num]; + num = 2; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span32 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference61 = ref span32[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -2010,16 +1736,13 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) + Span span33 = CollectionsMarshal.AsSpan(list103); + span33[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 962) { TargetClass = EExtendedClassJob.BlueMage }; - num3++; - span103[num3] = new QuestStep(EInteractionType.Gather, null, null, 962); - num3++; - ref QuestStep reference62 = ref span103[num3]; + span33[1] = new QuestStep(EInteractionType.Gather, null, null, 962); + ref QuestStep reference62 = ref span33[2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1042241u, new Vector3(222.85791f, 24.942732f, -197.77222f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -2029,12 +1752,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanLeveilleurEstate } }; - num4 = 1; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new DialogueChoice + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -2046,25 +1767,20 @@ public static class AssemblyQuestLoader reference62 = obj55; obj54.Steps = list103; reference61 = obj54; - num++; - ref QuestSequence reference63 = ref span102[num]; + ref QuestSequence reference63 = ref span32[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list105 = new List(num3); - CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - num2 = 0; - ref QuestStep reference64 = ref span105[num2]; + 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); - index2 = 1; - List list106 = new List(index2); - CollectionsMarshal.SetCount(list106, index2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num4 = 0; - span106[num4] = new DialogueChoice + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -2082,16 +1798,12 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list107)[0] = "WigglyMuffin"; questRoot22.Author = list107; - index = 1; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference65 = ref span108[num]; + num = 1; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + ref QuestSequence reference65 = ref CollectionsMarshal.AsSpan(list108)[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -2099,9 +1811,8 @@ public static class AssemblyQuestLoader num2 = 4; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - span109[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) + Span span34 = CollectionsMarshal.AsSpan(list109); + span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) { Aetheryte = EAetheryteLocation.DomanEnclave, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -2113,18 +1824,15 @@ public static class AssemblyQuestLoader } } }; - num3++; - span109[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + span34[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveDocks }; - num3++; - span109[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + span34[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveSouthern }; - num3++; - span109[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + span34[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveNorthern }; @@ -2137,44 +1845,36 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "liza"; + CollectionsMarshal.AsSpan(list110)[0] = "liza"; questRoot23.Author = list110; - index = 2; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference66 = ref span111[num]; + num = 2; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span35 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference66 = ref span35[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetClass = EExtendedClassJob.BlueMage }; - num2++; - span112[num2] = new QuestStep(EInteractionType.Gather, null, null, 816); - num2++; - ref QuestStep reference67 = ref span112[num2]; + span36[1] = new QuestStep(EInteractionType.Gather, null, null, 816); + ref QuestStep reference67 = ref span36[2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1044547u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num4 = 1; - List list113 = new List(num4); - CollectionsMarshal.SetCount(list113, num4); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new DialogueChoice + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter9_00815", @@ -2186,8 +1886,7 @@ public static class AssemblyQuestLoader reference67 = obj59; obj58.Steps = list112; reference66 = obj58; - num++; - ref QuestSequence reference68 = ref span111[num]; + ref QuestSequence reference68 = ref span35[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -2195,16 +1894,12 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - ref QuestStep reference69 = ref span114[num3]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list114)[0]; QuestStep questStep14 = new QuestStep(EInteractionType.None, null, null, 635); - index2 = 1; - List list115 = new List(index2); - CollectionsMarshal.SetCount(list115, index2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num4 = 0; - span115[num4] = new DialogueChoice + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter9_00815", @@ -2222,26 +1917,21 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list116)[0] = "WigglyMuffin"; questRoot24.Author = list116; - index = 1; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference70 = ref span117[num]; + num = 1; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + ref QuestSequence reference70 = ref CollectionsMarshal.AsSpan(list117)[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Crystarium, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -2253,18 +1943,15 @@ public static class AssemblyQuestLoader } } }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCrystallineMean }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumAmaroLaunch }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCabinetOfCuriosity, AethernetShortcut = new AethernetShortcut @@ -2273,8 +1960,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumMarkets, AethernetShortcut = new AethernetShortcut @@ -2283,8 +1969,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumDossalGate, AethernetShortcut = new AethernetShortcut @@ -2293,13 +1978,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumPendants }; - num2++; - span118[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span37[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumTemenosRookery, AetheryteShortcut = EAetheryteLocation.Crystarium @@ -2313,16 +1996,13 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "liza"; + CollectionsMarshal.AsSpan(list119)[0] = "liza"; questRoot25.Author = list119; - index = 2; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference71 = ref span120[num]; + num = 2; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span38 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference71 = ref span38[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -2330,29 +2010,23 @@ public static class AssemblyQuestLoader num2 = 4; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = new QuestStep(EInteractionType.SwitchClass, null, null, 956) + Span span39 = CollectionsMarshal.AsSpan(list121); + span39[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 956) { TargetClass = EExtendedClassJob.BlueMage }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - num3++; - ref QuestStep reference72 = ref span121[num3]; + ref QuestStep reference72 = ref span39[3]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956); - num4 = 1; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new DialogueChoice + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter10_00842", @@ -2364,25 +2038,20 @@ public static class AssemblyQuestLoader reference72 = questStep15; obj62.Steps = list121; reference71 = obj62; - num++; - ref QuestSequence reference73 = ref span120[num]; + ref QuestSequence reference73 = ref span38[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list123 = new List(num3); - CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num2 = 0; - ref QuestStep reference74 = ref span123[num2]; + 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); - index2 = 1; - List list124 = new List(index2); - CollectionsMarshal.SetCount(list124, index2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num4 = 0; - span124[num4] = new DialogueChoice + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/008/CtsSfsCharacter10_00842", @@ -2400,16 +2069,12 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list125)[0] = "WigglyMuffin"; questRoot26.Author = list125; - index = 1; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference75 = ref span126[num]; + num = 1; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + ref QuestSequence reference75 = ref CollectionsMarshal.AsSpan(list126)[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -2417,9 +2082,8 @@ public static class AssemblyQuestLoader num2 = 5; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - num3 = 0; - span127[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) + Span span40 = CollectionsMarshal.AsSpan(list127); + span40[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 820) { Aetheryte = EAetheryteLocation.Eulmore, AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -2431,18 +2095,15 @@ public static class AssemblyQuestLoader } } }; - num3++; - span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + span40[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreGloryGate }; - num3++; - span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + span40[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreMainstay }; - num3++; - span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + span40[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreSoutheastDerelict, AethernetShortcut = new AethernetShortcut @@ -2451,8 +2112,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - num3++; - span127[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + span40[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreNightsoilPots }; @@ -2465,44 +2125,36 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot27.Author = list128; - index = 2; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference76 = ref span129[num]; + num = 2; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span41 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference76 = ref span41[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetClass = EExtendedClassJob.BlueMage }; - num2++; - span130[num2] = new QuestStep(EInteractionType.Gather, null, null, 962); - num2++; - ref QuestStep reference77 = ref span130[num2]; + span42[1] = new QuestStep(EInteractionType.Gather, null, null, 962); + ref QuestStep reference77 = ref span42[2]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - num4 = 1; - List list131 = new List(num4); - CollectionsMarshal.SetCount(list131, num4); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new DialogueChoice + num3 = 1; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/009/CtsSfsCharacter11_00909", @@ -2514,8 +2166,7 @@ public static class AssemblyQuestLoader reference77 = obj66; obj65.Steps = list130; reference76 = obj65; - num++; - ref QuestSequence reference78 = ref span129[num]; + ref QuestSequence reference78 = ref span41[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -2523,16 +2174,12 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - ref QuestStep reference79 = ref span132[num3]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list132)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.None, null, null, 635); - index2 = 1; - List list133 = new List(index2); - CollectionsMarshal.SetCount(list133, index2); - Span span133 = CollectionsMarshal.AsSpan(list133); - num4 = 0; - span133[num4] = new DialogueChoice + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "custom/007/CtsSfsCharacter8_00773", @@ -2550,26 +2197,21 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list134)[0] = "WigglyMuffin"; questRoot28.Author = list134; - index = 1; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference80 = ref span135[num]; + num = 1; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + ref QuestSequence reference80 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.OldSharlayan, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -2581,33 +2223,27 @@ public static class AssemblyQuestLoader } } }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span43[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanScholarsHarbor }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) + span43[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 962) { Aetheryte = EAetheryteLocation.OldSharlayan }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span43[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanRostra }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span43[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanLeveilleurEstate }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span43[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanJourneysEnd }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span43[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanBaldesionAnnex, AethernetShortcut = new AethernetShortcut @@ -2616,8 +2252,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayan } }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span43[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanStudium }; @@ -2630,16 +2265,12 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list137)[0] = "WigglyMuffin"; questRoot29.Author = list137; - index = 1; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference81 = ref span138[num]; + num = 1; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + ref QuestSequence reference81 = ref CollectionsMarshal.AsSpan(list138)[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -2647,9 +2278,8 @@ public static class AssemblyQuestLoader num2 = 9; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) + Span span44 = CollectionsMarshal.AsSpan(list139); + span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) { Aetheryte = EAetheryteLocation.RadzAtHan, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -2661,28 +2291,23 @@ public static class AssemblyQuestLoader } } }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAlzadaalsPeace }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAirship }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMeghaduta }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanRuveydahFibers }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHighCrucible, AethernetShortcut = new AethernetShortcut @@ -2691,8 +2316,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMehrydesMeyhane, AethernetShortcut = new AethernetShortcut @@ -2701,8 +2325,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanKama, AethernetShortcut = new AethernetShortcut @@ -2711,8 +2334,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - num3++; - span139[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span44[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost, AethernetShortcut = new AethernetShortcut @@ -2730,26 +2352,21 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - span140[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list140)[0] = "WigglyMuffin"; questRoot30.Author = list140; - index = 1; - List list141 = new List(index); - CollectionsMarshal.SetCount(list141, index); - Span span141 = CollectionsMarshal.AsSpan(list141); - num = 0; - ref QuestSequence reference82 = ref span141[num]; + num = 1; + List list141 = new List(num); + CollectionsMarshal.SetCount(list141, num); + ref QuestSequence reference82 = ref CollectionsMarshal.AsSpan(list141)[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Tuliyollal, AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -2761,15 +2378,12 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { AethernetShard = EAetheryteLocation.TuliyollalBrightploomPost }; - num2++; - span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span45[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheResplendentQuarter, AethernetShortcut = new AethernetShortcut @@ -2778,14 +2392,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Tuliyollal } }; - num2++; - span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span45[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { Comment = "Dirigible Landing", AethernetShard = EAetheryteLocation.TuliyollalDirigibleLanding }; - num2++; - span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span45[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheForardCabins, AethernetShortcut = new AethernetShortcut @@ -2794,13 +2406,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num2++; - span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span45[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBaysideBevyMarketplace }; - num2++; - span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) + span45[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) { Comment = "Resplendent Quarter Lamp nav", AethernetShortcut = new AethernetShortcut @@ -2809,13 +2419,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - num2++; - span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span45[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalVollokShoonsa }; - num2++; - span142[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span45[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalWachumeqimeqi, AethernetShortcut = new AethernetShortcut @@ -2833,16 +2441,12 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list143)[0] = "WigglyMuffin"; questRoot31.Author = list143; - index = 1; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference83 = ref span144[num]; + num = 1; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + ref QuestSequence reference83 = ref CollectionsMarshal.AsSpan(list144)[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -2850,9 +2454,8 @@ public static class AssemblyQuestLoader num2 = 11; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num3 = 0; - span145[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) + Span span46 = CollectionsMarshal.AsSpan(list145); + span46[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1186) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.SolutionNine, @@ -2865,8 +2468,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span145[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.08527276f, 7.785223f, 28.881784f), 1186) + span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.08527276f, 7.785223f, 28.881784f), 1186) { SkipConditions = new SkipConditions { @@ -2881,13 +2483,11 @@ public static class AssemblyQuestLoader } } }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineInformationCenter }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNexusArcade, AethernetShortcut = new AethernetShortcut @@ -2896,13 +2496,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResidentialSector }; - num3++; - span145[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) + span46[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -2911,13 +2509,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResolution }; - num3++; - span145[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.50943f, 0.5499997f, 4.953261f), 1186) + span46[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.50943f, 0.5499997f, 4.953261f), 1186) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -2926,18 +2522,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNine } }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTrueVue }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNeonStein }; - num3++; - span145[num3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span46[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTheArcadion }; @@ -2950,26 +2543,21 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list146)[0] = "Cacahuetes"; questRoot32.Author = list146; - index = 4; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference84 = ref span147[num]; + num = 4; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span47 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference84 = ref span47[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -2987,8 +2575,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list148; reference84 = obj72; - num++; - ref QuestSequence reference85 = ref span147[num]; + ref QuestSequence reference85 = ref span47[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -2996,16 +2583,12 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - num3 = 0; - ref QuestStep reference86 = ref span149[num3]; + ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list149)[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132); - num4 = 1; - List list150 = new List(num4); - CollectionsMarshal.SetCount(list150, num4); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new DialogueChoice + num3 = 1; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC000_00021_Q1_000_1") @@ -3014,18 +2597,16 @@ public static class AssemblyQuestLoader reference86 = questStep18; obj73.Steps = list149; reference85 = obj73; - num++; - ref QuestSequence reference87 = ref span147[num]; + ref QuestSequence reference87 = ref span47[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list151 = new List(num3); - CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref QuestStep reference88 = ref span151[num2]; + num2 = 3; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + Span span48 = CollectionsMarshal.AsSpan(list151); + ref QuestStep reference88 = ref span48[0]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -3035,166 +2616,121 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list152 = new List(index2); - CollectionsMarshal.SetCount(list152, index2); - Span span152 = CollectionsMarshal.AsSpan(list152); - num4 = 0; - ref ComplexCombatData reference89 = ref span152[num4]; + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + ref ComplexCombatData reference89 = ref CollectionsMarshal.AsSpan(list152)[0]; ComplexCombatData obj76 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - 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; + 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; obj76.CompletionQuestVariablesFlags = list153; reference89 = obj76; obj75.ComplexCombatData = list152; - 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; + 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; obj75.CompletionQuestVariablesFlags = list154; reference88 = obj75; - num2++; - ref QuestStep reference90 = ref span151[num2]; + ref QuestStep reference90 = ref span48[1]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list155 = new List(index2); - CollectionsMarshal.SetCount(list155, index2); - Span span155 = CollectionsMarshal.AsSpan(list155); - num4 = 0; - ref ComplexCombatData reference91 = ref span155[num4]; + num3 = 1; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + ref ComplexCombatData reference91 = ref CollectionsMarshal.AsSpan(list155)[0]; ComplexCombatData obj78 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj78.CompletionQuestVariablesFlags = list156; reference91 = obj78; obj77.ComplexCombatData = list155; - 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; + 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; obj77.CompletionQuestVariablesFlags = list157; reference90 = obj77; - num2++; - ref QuestStep reference92 = ref span151[num2]; + ref QuestStep reference92 = ref span48[2]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list158 = new List(index2); - CollectionsMarshal.SetCount(list158, index2); - Span span158 = CollectionsMarshal.AsSpan(list158); - num4 = 0; - ref ComplexCombatData reference93 = ref span158[num4]; + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + ref ComplexCombatData reference93 = ref CollectionsMarshal.AsSpan(list158)[0]; ComplexCombatData obj80 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - 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; + 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; obj80.CompletionQuestVariablesFlags = list159; reference93 = obj80; obj79.ComplexCombatData = list158; - 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; + 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; obj79.CompletionQuestVariablesFlags = list160; reference92 = obj79; obj74.Steps = list151; reference87 = obj74; - num++; - ref QuestSequence reference94 = ref span147[num]; + ref QuestSequence reference94 = ref span47[3]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -3202,9 +2738,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - num3 = 0; - span161[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3231,26 +2765,21 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list162)[0] = "Cacahuetes"; questRoot33.Author = list162; - index = 4; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference95 = ref span163[num]; + num = 4; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span55 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference95 = ref span55[0]; QuestSequence obj82 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list164)[0]; QuestStep obj83 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3265,20 +2794,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list165 = new List(index2); - CollectionsMarshal.SetCount(list165, index2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num4 = 0; - span165[num4] = 133; + num3 = 1; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + CollectionsMarshal.AsSpan(list165)[0] = 133; obj84.InTerritory = list165; skipConditions8.AetheryteShortcutIf = obj84; obj83.SkipConditions = skipConditions8; reference96 = obj83; obj82.Steps = list164; reference95 = obj82; - num++; - ref QuestSequence reference97 = ref span163[num]; + ref QuestSequence reference97 = ref span55[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -3286,16 +2812,12 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - num3 = 0; - ref QuestStep reference98 = ref span166[num3]; + ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list166)[0]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); - num4 = 1; - List list167 = new List(num4); - CollectionsMarshal.SetCount(list167, num4); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new DialogueChoice + num3 = 1; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ000_00022_Q1_000_1") @@ -3304,18 +2826,16 @@ public static class AssemblyQuestLoader reference98 = questStep19; obj85.Steps = list166; reference97 = obj85; - num++; - ref QuestSequence reference99 = ref span163[num]; + ref QuestSequence reference99 = ref span55[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list168 = new List(num3); - CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - num2 = 0; - ref QuestStep reference100 = ref span168[num2]; + num2 = 3; + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + Span span56 = CollectionsMarshal.AsSpan(list168); + ref QuestStep reference100 = ref span56[0]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -3325,166 +2845,121 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list169 = new List(index2); - CollectionsMarshal.SetCount(list169, index2); - Span span169 = CollectionsMarshal.AsSpan(list169); - num4 = 0; - ref ComplexCombatData reference101 = ref span169[num4]; + num3 = 1; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + ref ComplexCombatData reference101 = ref CollectionsMarshal.AsSpan(list169)[0]; ComplexCombatData obj88 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - 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; + 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; obj88.CompletionQuestVariablesFlags = list170; reference101 = obj88; obj87.ComplexCombatData = list169; - 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; + 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; obj87.CompletionQuestVariablesFlags = list171; reference100 = obj87; - num2++; - ref QuestStep reference102 = ref span168[num2]; + ref QuestStep reference102 = ref span56[1]; QuestStep obj89 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list172 = new List(index2); - CollectionsMarshal.SetCount(list172, index2); - Span span172 = CollectionsMarshal.AsSpan(list172); - num4 = 0; - ref ComplexCombatData reference103 = ref span172[num4]; + num3 = 1; + List list172 = new List(num3); + CollectionsMarshal.SetCount(list172, num3); + ref ComplexCombatData reference103 = ref CollectionsMarshal.AsSpan(list172)[0]; ComplexCombatData obj90 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj90.CompletionQuestVariablesFlags = list173; reference103 = obj90; obj89.ComplexCombatData = list172; - 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; + 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; obj89.CompletionQuestVariablesFlags = list174; reference102 = obj89; - num2++; - ref QuestStep reference104 = ref span168[num2]; + ref QuestStep reference104 = ref span56[2]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list175 = new List(index2); - CollectionsMarshal.SetCount(list175, index2); - Span span175 = CollectionsMarshal.AsSpan(list175); - num4 = 0; - ref ComplexCombatData reference105 = ref span175[num4]; + num3 = 1; + List list175 = new List(num3); + CollectionsMarshal.SetCount(list175, num3); + ref ComplexCombatData reference105 = ref CollectionsMarshal.AsSpan(list175)[0]; ComplexCombatData obj92 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - 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; + 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; obj92.CompletionQuestVariablesFlags = list176; reference105 = obj92; obj91.ComplexCombatData = list175; - 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; + 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; obj91.CompletionQuestVariablesFlags = list177; reference104 = obj91; obj86.Steps = list168; reference99 = obj86; - num++; - ref QuestSequence reference106 = ref span163[num]; + ref QuestSequence reference106 = ref span55[3]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -3492,9 +2967,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - span178[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3513,26 +2986,21 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list179)[0] = "Cacahuetes"; questRoot34.Author = list179; - index = 4; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference107 = ref span180[num]; + num = 4; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span63 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference107 = ref span63[0]; QuestSequence obj94 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list181)[0]; QuestStep obj95 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -3547,20 +3015,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list182 = new List(index2); - CollectionsMarshal.SetCount(list182, index2); - Span span182 = CollectionsMarshal.AsSpan(list182); - num4 = 0; - span182[num4] = 132; + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + CollectionsMarshal.AsSpan(list182)[0] = 132; obj96.InTerritory = list182; skipConditions9.AetheryteShortcutIf = obj96; obj95.SkipConditions = skipConditions9; reference108 = obj95; obj94.Steps = list181; reference107 = obj94; - num++; - ref QuestSequence reference109 = ref span180[num]; + ref QuestSequence reference109 = ref span63[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -3568,16 +3033,12 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - num3 = 0; - ref QuestStep reference110 = ref span183[num3]; + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list183)[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133); - num4 = 1; - List list184 = new List(num4); - CollectionsMarshal.SetCount(list184, num4); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new DialogueChoice + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC000_00023_Q1_000_1") @@ -3586,18 +3047,16 @@ public static class AssemblyQuestLoader reference110 = questStep20; obj97.Steps = list183; reference109 = obj97; - num++; - ref QuestSequence reference111 = ref span180[num]; + ref QuestSequence reference111 = ref span63[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list185 = new List(num3); - CollectionsMarshal.SetCount(list185, num3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num2 = 0; - ref QuestStep reference112 = ref span185[num2]; + num2 = 3; + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + Span span64 = CollectionsMarshal.AsSpan(list185); + ref QuestStep reference112 = ref span64[0]; QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -3607,166 +3066,121 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list186 = new List(index2); - CollectionsMarshal.SetCount(list186, index2); - Span span186 = CollectionsMarshal.AsSpan(list186); - num4 = 0; - ref ComplexCombatData reference113 = ref span186[num4]; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + ref ComplexCombatData reference113 = ref CollectionsMarshal.AsSpan(list186)[0]; ComplexCombatData obj100 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - 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; + 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; obj100.CompletionQuestVariablesFlags = list187; reference113 = obj100; obj99.ComplexCombatData = list186; - 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; + 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; obj99.CompletionQuestVariablesFlags = list188; reference112 = obj99; - num2++; - ref QuestStep reference114 = ref span185[num2]; + ref QuestStep reference114 = ref span64[1]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list189 = new List(index2); - CollectionsMarshal.SetCount(list189, index2); - Span span189 = CollectionsMarshal.AsSpan(list189); - num4 = 0; - ref ComplexCombatData reference115 = ref span189[num4]; + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + ref ComplexCombatData reference115 = ref CollectionsMarshal.AsSpan(list189)[0]; ComplexCombatData obj102 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj102.CompletionQuestVariablesFlags = list190; reference115 = obj102; obj101.ComplexCombatData = list189; - 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; + 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; obj101.CompletionQuestVariablesFlags = list191; reference114 = obj101; - num2++; - ref QuestStep reference116 = ref span185[num2]; + ref QuestStep reference116 = ref span64[2]; QuestStep obj103 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list192 = new List(index2); - CollectionsMarshal.SetCount(list192, index2); - Span span192 = CollectionsMarshal.AsSpan(list192); - num4 = 0; - ref ComplexCombatData reference117 = ref span192[num4]; + num3 = 1; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + ref ComplexCombatData reference117 = ref CollectionsMarshal.AsSpan(list192)[0]; ComplexCombatData obj104 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - 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; + 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; obj104.CompletionQuestVariablesFlags = list193; reference117 = obj104; obj103.ComplexCombatData = list192; - 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; + 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; obj103.CompletionQuestVariablesFlags = list194; reference116 = obj103; obj98.Steps = list185; reference111 = obj98; - num++; - ref QuestSequence reference118 = ref span180[num]; + ref QuestSequence reference118 = ref span63[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -3774,9 +3188,7 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - span195[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -3795,30 +3207,24 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "liza"; + CollectionsMarshal.AsSpan(list196)[0] = "liza"; questRoot35.Author = list196; - index = 2; - List list197 = new List(index); - CollectionsMarshal.SetCount(list197, index); - Span span197 = CollectionsMarshal.AsSpan(list197); - num = 0; - ref QuestSequence reference119 = ref span197[num]; + num = 2; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span71 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference119 = ref span71[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj106.Steps = list198; reference119 = obj106; - num++; - ref QuestSequence reference120 = ref span197[num]; + ref QuestSequence reference120 = ref span71[1]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -3826,9 +3232,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - span199[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3845,30 +3249,24 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; questRoot36.Author = list200; - index = 3; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestSequence reference121 = ref span201[num]; + num = 3; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span72 = CollectionsMarshal.AsSpan(list201); + ref QuestSequence reference121 = ref span72[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj108.Steps = list202; reference121 = obj108; - num++; - ref QuestSequence reference122 = ref span201[num]; + ref QuestSequence reference122 = ref span72[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -3876,9 +3274,7 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - num3 = 0; - ref QuestStep reference123 = ref span203[num3]; + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list203)[0]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, null, new Vector3(112.12561f, 16.504576f, -268.8553f), 148) { AethernetShortcut = new AethernetShortcut @@ -3888,56 +3284,45 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num4 = 0; - ref ComplexCombatData reference124 = ref span204[num4]; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + ref ComplexCombatData reference124 = ref CollectionsMarshal.AsSpan(list204)[0]; ComplexCombatData obj111 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 6u }; - 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; + 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; obj111.CompletionQuestVariablesFlags = list205; reference124 = obj111; obj110.ComplexCombatData = list204; reference123 = obj110; obj109.Steps = list203; reference122 = obj109; - num++; - ref QuestSequence reference125 = ref span201[num]; + ref QuestSequence reference125 = ref span72[2]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)132 }; - num2++; - span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133) + span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1000263u, new Vector3(141.55786f, 15.5f, -274.43353f), 133) { AethernetShortcut = new AethernetShortcut { @@ -3954,16 +3339,13 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list207)[0] = "UcanPatates"; questRoot37.Author = list207; - index = 3; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference126 = ref span208[num]; + num = 3; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span75 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference126 = ref span75[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -3971,9 +3353,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - num3 = 0; - span209[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000194u, new Vector3(-16.281433f, -3.2499998f, 41.000854f), 132) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000194u, new Vector3(-16.281433f, -3.2499998f, 41.000854f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -3986,18 +3366,15 @@ public static class AssemblyQuestLoader }; obj113.Steps = list209; reference126 = obj113; - num++; - ref QuestSequence reference127 = ref span208[num]; + ref QuestSequence reference127 = ref span75[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -4010,8 +3387,7 @@ public static class AssemblyQuestLoader }; obj114.Steps = list210; reference127 = obj114; - num++; - ref QuestSequence reference128 = ref span208[num]; + ref QuestSequence reference128 = ref span75[2]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -4019,9 +3395,7 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - num3 = 0; - ref QuestStep reference129 = ref span211[num3]; + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list211)[0]; QuestStep obj116 = new QuestStep(EInteractionType.CompleteQuest, 1000789u, new Vector3(-33.76825f, 7.3172073f, -117.052f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -4036,12 +3410,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list212 = new List(num4); - CollectionsMarshal.SetCount(list212, num4); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = 132; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + CollectionsMarshal.AsSpan(list212)[0] = 132; obj117.InTerritory = list212; skipConditions10.AetheryteShortcutIf = obj117; obj116.SkipConditions = skipConditions10; @@ -4055,46 +3427,38 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "liza"; + CollectionsMarshal.AsSpan(list213)[0] = "liza"; questRoot38.Author = list213; - index = 2; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference130 = ref span214[num]; + num = 2; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span76 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference130 = ref span76[0]; QuestSequence obj118 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list215)[0]; 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(); - index2 = 1; - List list216 = new List(index2); - CollectionsMarshal.SetCount(list216, index2); - Span span216 = CollectionsMarshal.AsSpan(list216); - num4 = 0; - span216[num4] = 132; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + CollectionsMarshal.AsSpan(list216)[0] = 132; skipStepConditions.NotInTerritory = list216; skipConditions11.StepIf = skipStepConditions; obj119.SkipConditions = skipConditions11; reference131 = obj119; obj118.Steps = list215; reference130 = obj118; - num++; - ref QuestSequence reference132 = ref span214[num]; + ref QuestSequence reference132 = ref span76[1]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -4102,14 +3466,12 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - num3 = 0; - span217[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(158.06026f, -12.97808f, 158.08466f), 132) + Span span77 = CollectionsMarshal.AsSpan(list217); + span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(158.06026f, -12.97808f, 158.08466f), 132) { TargetTerritoryId = (ushort)148 }; - num3++; - span217[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj120.Steps = list217; reference132 = obj120; questRoot38.QuestSequence = list214; @@ -4119,26 +3481,21 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot39.Author = list218; - index = 10; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference133 = ref span219[num]; + num = 10; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span78 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference133 = ref span78[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -4151,8 +3508,7 @@ public static class AssemblyQuestLoader }; obj121.Steps = list220; reference133 = obj121; - num++; - ref QuestSequence reference134 = ref span219[num]; + ref QuestSequence reference134 = ref span78[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -4160,9 +3516,7 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - num3 = 0; - span221[num3] = new QuestStep(EInteractionType.Interact, 1009949u, new Vector3(-325.70386f, 7.228748f, -215.16754f), 133) + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1009949u, new Vector3(-325.70386f, 7.228748f, -215.16754f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -4173,18 +3527,15 @@ public static class AssemblyQuestLoader }; obj122.Steps = list221; reference134 = obj122; - num++; - ref QuestSequence reference135 = ref span219[num]; + ref QuestSequence reference135 = ref span78[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -4194,8 +3545,7 @@ public static class AssemblyQuestLoader }; obj123.Steps = list222; reference135 = obj123; - num++; - ref QuestSequence reference136 = ref span219[num]; + ref QuestSequence reference136 = ref span78[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -4203,91 +3553,66 @@ public static class AssemblyQuestLoader num2 = 3; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - num3 = 0; - ref QuestStep reference137 = ref span223[num3]; + Span span79 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference137 = ref span79[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list224; reference137 = questStep21; - num3++; - ref QuestStep reference138 = ref span223[num3]; + ref QuestStep reference138 = ref span79[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1000227u, new Vector3(168.62744f, 15.699999f, -65.690125f), 133); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list225; reference138 = questStep22; - num3++; - ref QuestStep reference139 = ref span223[num3]; + ref QuestStep reference139 = ref span79[2]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 1000228u, new Vector3(168.20007f, 15.69998f, -64.83563f), 133) { StopDistance = 5f }; - 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); + 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); obj125.CompletionQuestVariablesFlags = list226; reference139 = obj125; obj124.Steps = list223; reference136 = obj124; - num++; - ref QuestSequence reference140 = ref span219[num]; + ref QuestSequence reference140 = ref span78[4]; QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj126.Steps = list227; reference140 = obj126; - num++; - ref QuestSequence reference141 = ref span219[num]; + ref QuestSequence reference141 = ref span78[5]; QuestSequence obj127 = new QuestSequence { Sequence = 5 @@ -4295,27 +3620,21 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num3 = 0; - span228[num3] = new QuestStep(EInteractionType.Interact, 1000243u, new Vector3(170.03125f, 15.699999f, -127.03143f), 133); + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1000243u, new Vector3(170.03125f, 15.699999f, -127.03143f), 133); obj127.Steps = list228; reference141 = obj127; - num++; - ref QuestSequence reference142 = ref span219[num]; + ref QuestSequence reference142 = ref span78[6]; QuestSequence obj128 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj128.Steps = list229; reference142 = obj128; - num++; - ref QuestSequence reference143 = ref span219[num]; + ref QuestSequence reference143 = ref span78[7]; QuestSequence obj129 = new QuestSequence { Sequence = 7 @@ -4323,9 +3642,7 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - num3 = 0; - ref QuestStep reference144 = ref span230[num3]; + ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list230)[0]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-374.96555f, 63.686344f, -206.74146f), 148) { StopDistance = 0.5f, @@ -4337,35 +3654,29 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index2 = 1; - List list231 = new List(index2); - CollectionsMarshal.SetCount(list231, index2); - Span span231 = CollectionsMarshal.AsSpan(list231); - num4 = 0; - span231[num4] = 2863u; + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + CollectionsMarshal.AsSpan(list231)[0] = 2863u; obj130.KillEnemyDataIds = list231; reference144 = obj130; obj129.Steps = list230; reference143 = obj129; - num++; - ref QuestSequence reference145 = ref span219[num]; + ref QuestSequence reference145 = ref span78[8]; QuestSequence obj131 = new QuestSequence { Sequence = 8 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj131.Steps = list232; reference145 = obj131; - num++; - ref QuestSequence reference146 = ref span219[num]; + ref QuestSequence reference146 = ref span78[9]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -4373,9 +3684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - num3 = 0; - span233[num3] = new QuestStep(EInteractionType.CompleteQuest, 1009953u, new Vector3(31.5708f, -19.000002f, 100.48059f), 132) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009953u, new Vector3(31.5708f, -19.000002f, 100.48059f), 132) { AethernetShortcut = new AethernetShortcut { @@ -4393,26 +3702,21 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list234)[0] = "Cacahuetes"; questRoot40.Author = list234; - index = 4; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference147 = ref span235[num]; + num = 4; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span83 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference147 = ref span83[0]; QuestSequence obj133 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list236 = new List(num2); + CollectionsMarshal.SetCount(list236, num2); + ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -4427,20 +3731,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list237 = new List(num4); - CollectionsMarshal.SetCount(list237, num4); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = 133; + num3 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = 133; obj135.InTerritory = list237; skipConditions12.AetheryteShortcutIf = obj135; obj134.SkipConditions = skipConditions12; reference148 = obj134; obj133.Steps = list236; reference147 = obj133; - num++; - ref QuestSequence reference149 = ref span235[num]; + ref QuestSequence reference149 = ref span83[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -4448,9 +3749,8 @@ public static class AssemblyQuestLoader num2 = 3; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - num3 = 0; - span238[num3] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) + Span span84 = CollectionsMarshal.AsSpan(list238); + span84[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -4460,92 +3760,70 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num3++; - ref QuestStep reference150 = ref span238[num3]; + ref QuestStep reference150 = ref span84[1]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 142u, new Vector3(514.06104f, 44.169823f, -42.008118f), 148) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index2 = 1; - List list239 = new List(index2); - CollectionsMarshal.SetCount(list239, index2); - Span span239 = CollectionsMarshal.AsSpan(list239); - num4 = 0; - span239[num4] = 142u; + num3 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + CollectionsMarshal.AsSpan(list239)[0] = 142u; obj137.KillEnemyDataIds = list239; - 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; + 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; obj137.CompletionQuestVariablesFlags = list240; reference150 = obj137; - num3++; - span238[num3] = new QuestStep(EInteractionType.Interact, 2000966u, new Vector3(514.8546f, 43.778076f, -48.66101f), 148); + span84[2] = new QuestStep(EInteractionType.Interact, 2000966u, new Vector3(514.8546f, 43.778076f, -48.66101f), 148); obj136.Steps = list238; reference149 = obj136; - num++; - ref QuestSequence reference151 = ref span235[num]; + ref QuestSequence reference151 = ref span83[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num3 = 2; - List list241 = new List(num3); - CollectionsMarshal.SetCount(list241, num3); - Span span241 = CollectionsMarshal.AsSpan(list241); - num2 = 0; - ref QuestStep reference152 = ref span241[num2]; + num2 = 2; + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + Span span86 = CollectionsMarshal.AsSpan(list241); + ref QuestStep reference152 = ref span86[0]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(211.82294f, 23.458103f, 157.57333f), 148) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index2 = 1; - List list242 = new List(index2); - CollectionsMarshal.SetCount(list242, index2); - Span span242 = CollectionsMarshal.AsSpan(list242); - num4 = 0; - span242[num4] = 21u; + num3 = 1; + List list242 = new List(num3); + CollectionsMarshal.SetCount(list242, num3); + CollectionsMarshal.AsSpan(list242)[0] = 21u; obj139.KillEnemyDataIds = list242; - 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; + 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; obj139.CompletionQuestVariablesFlags = list243; reference152 = obj139; - num2++; - span241[num2] = new QuestStep(EInteractionType.Interact, 2000917u, new Vector3(215.99133f, 23.5141f, 153.1853f), 148); + span86[1] = new QuestStep(EInteractionType.Interact, 2000917u, new Vector3(215.99133f, 23.5141f, 153.1853f), 148); obj138.Steps = list241; reference151 = obj138; - num++; - ref QuestSequence reference153 = ref span235[num]; + ref QuestSequence reference153 = ref span83[3]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -4553,9 +3831,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - num3 = 0; - span244[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -4574,26 +3850,21 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "liza"; + CollectionsMarshal.AsSpan(list245)[0] = "liza"; questRoot41.Author = list245; - index = 9; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference154 = ref span246[num]; + num = 9; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span88 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference154 = ref span88[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -4606,8 +3877,7 @@ public static class AssemblyQuestLoader }; obj141.Steps = list247; reference154 = obj141; - num++; - ref QuestSequence reference155 = ref span246[num]; + ref QuestSequence reference155 = ref span88[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -4615,9 +3885,7 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - num3 = 0; - span248[num3] = new QuestStep(EInteractionType.Interact, 1009781u, new Vector3(-89.829956f, 5.2000036f, 45.426025f), 131) + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1009781u, new Vector3(-89.829956f, 5.2000036f, 45.426025f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -4628,114 +3896,83 @@ public static class AssemblyQuestLoader }; obj142.Steps = list248; reference155 = obj142; - num++; - ref QuestSequence reference156 = ref span246[num]; + ref QuestSequence reference156 = ref span88[2]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - num3 = 5; - List list249 = new List(num3); - CollectionsMarshal.SetCount(list249, num3); - Span span249 = CollectionsMarshal.AsSpan(list249); - num2 = 0; - ref QuestStep reference157 = ref span249[num2]; + num2 = 5; + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + Span span89 = CollectionsMarshal.AsSpan(list249); + ref QuestStep reference157 = ref span89[0]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 2004614u, new Vector3(-80.76605f, 8.895996f, -16.739136f), 131) { IgnoreDistanceToObject = true, ItemId = 2001459u }; - 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); + 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); obj144.CompletionQuestVariablesFlags = list250; reference157 = obj144; - num2++; - ref QuestStep reference158 = ref span249[num2]; + ref QuestStep reference158 = ref span89[1]; QuestStep obj145 = new QuestStep(EInteractionType.UseItem, 2004616u, new Vector3(-98.1308f, 8.987488f, -16.617126f), 131) { IgnoreDistanceToObject = true, ItemId = 2001459u }; - 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); + 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); obj145.CompletionQuestVariablesFlags = list251; reference158 = obj145; - num2++; - span249[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.42244f, 7.9935846f, -8.936225f), 131); - num2++; - ref QuestStep reference159 = ref span249[num2]; + span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-113.42244f, 7.9935846f, -8.936225f), 131); + ref QuestStep reference159 = ref span89[3]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1001859u, new Vector3(-142.71765f, 11.999999f, -15.610046f), 130); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list252; reference159 = questStep23; - num2++; - ref QuestStep reference160 = ref span249[num2]; + ref QuestStep reference160 = ref span89[4]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1009789u, new Vector3(-159.68573f, 12.596368f, 0.869751f), 130); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list253; reference160 = questStep24; obj143.Steps = list249; reference156 = obj143; - num++; - ref QuestSequence reference161 = ref span246[num]; + ref QuestSequence reference161 = ref span88[3]; QuestSequence obj146 = new QuestSequence { Sequence = 3 @@ -4743,32 +3980,26 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - 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); + 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); obj146.Steps = list254; reference161 = obj146; - num++; - ref QuestSequence reference162 = ref span246[num]; + ref QuestSequence reference162 = ref span88[4]; QuestSequence obj147 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Emote = EEmote.Welcome }; obj147.Steps = list255; reference162 = obj147; - num++; - ref QuestSequence reference163 = ref span246[num]; + ref QuestSequence reference163 = ref span88[5]; QuestSequence obj148 = new QuestSequence { Sequence = 5 @@ -4776,29 +4007,23 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - 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); + 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); obj148.Steps = list256; reference163 = obj148; - num++; - ref QuestSequence reference164 = ref span246[num]; + ref QuestSequence reference164 = ref span88[6]; QuestSequence obj149 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj149.Steps = list257; reference164 = obj149; - num++; - ref QuestSequence reference165 = ref span246[num]; + ref QuestSequence reference165 = ref span88[7]; QuestSequence obj150 = new QuestSequence { Sequence = 7 @@ -4806,40 +4031,33 @@ public static class AssemblyQuestLoader num2 = 2; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - 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]; + 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]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(-172.42809f, 16.059729f, 276.30084f), 141) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list259 = new List(num3); + CollectionsMarshal.SetCount(list259, num3); + Span span97 = CollectionsMarshal.AsSpan(list259); + span97[0] = 2853u; + span97[1] = 3120u; obj151.KillEnemyDataIds = list259; reference166 = obj151; obj150.Steps = list258; reference165 = obj150; - num++; - ref QuestSequence reference167 = ref span246[num]; + ref QuestSequence reference167 = ref span88[8]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1573) }; @@ -4852,16 +4070,13 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - Span span261 = CollectionsMarshal.AsSpan(list261); - index = 0; - span261[index] = "liza"; + CollectionsMarshal.AsSpan(list261)[0] = "liza"; questRoot42.Author = list261; - index = 3; - List list262 = new List(index); - CollectionsMarshal.SetCount(list262, index); - Span span262 = CollectionsMarshal.AsSpan(list262); - num = 0; - ref QuestSequence reference168 = ref span262[num]; + num = 3; + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + Span span98 = CollectionsMarshal.AsSpan(list262); + ref QuestSequence reference168 = ref span98[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -4869,141 +4084,102 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133); obj153.Steps = list263; reference168 = obj153; - num++; - ref QuestSequence reference169 = ref span262[num]; + ref QuestSequence reference169 = ref span98[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - num3 = 5; - List list264 = new List(num3); - CollectionsMarshal.SetCount(list264, num3); - Span span264 = CollectionsMarshal.AsSpan(list264); - num2 = 0; - ref QuestStep reference170 = ref span264[num2]; + num2 = 5; + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + Span span99 = CollectionsMarshal.AsSpan(list264); + ref QuestStep reference170 = ref span99[0]; QuestStep questStep25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.92119f, 15.700001f, -122.177925f), 133); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list265; skipConditions13.StepIf = skipStepConditions2; questStep25.SkipConditions = skipConditions13; reference170 = questStep25; - num2++; - ref QuestStep reference171 = ref span264[num2]; + ref QuestStep reference171 = ref span99[1]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1000238u, new Vector3(155.41309f, 15.700001f, -121.812805f), 133); - 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); + 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); questStep26.CompletionQuestVariablesFlags = list266; reference171 = questStep26; - num2++; - ref QuestStep reference172 = ref span264[num2]; + ref QuestStep reference172 = ref span99[2]; QuestStep questStep27 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(162.74281f, 15.699926f, -59.43834f), 133); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list267; skipConditions14.StepIf = skipStepConditions3; questStep27.SkipConditions = skipConditions14; reference172 = questStep27; - num2++; - ref QuestStep reference173 = ref span264[num2]; + ref QuestStep reference173 = ref span99[3]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1000218u, new Vector3(164.72107f, 15.699947f, -58.18268f), 133); - 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); + 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); questStep28.CompletionQuestVariablesFlags = list268; reference173 = questStep28; - num2++; - ref QuestStep reference174 = ref span264[num2]; + ref QuestStep reference174 = ref span99[4]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1000214u, new Vector3(151.4762f, 15.699964f, -63.920105f), 133) { StopDistance = 5f }; - 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); + 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); obj155.CompletionQuestVariablesFlags = list269; reference174 = obj155; obj154.Steps = list264; reference169 = obj154; - num++; - ref QuestSequence reference175 = ref span262[num]; + ref QuestSequence reference175 = ref span98[2]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -5011,9 +4187,7 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num3 = 0; - span270[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut { @@ -5030,33 +4204,26 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "liza"; + CollectionsMarshal.AsSpan(list271)[0] = "liza"; questRoot43.Author = list271; - index = 2; - List list272 = new List(index); - CollectionsMarshal.SetCount(list272, index); - Span span272 = CollectionsMarshal.AsSpan(list272); - num = 0; - ref QuestSequence reference176 = ref span272[num]; + num = 2; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span105 = CollectionsMarshal.AsSpan(list272); + ref QuestSequence reference176 = ref span105[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - num3 = 1; - List list273 = new List(num3); - CollectionsMarshal.SetCount(list273, num3); - Span span273 = CollectionsMarshal.AsSpan(list273); - num2 = 0; - ref QuestStep reference177 = ref span273[num2]; + 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); - index2 = 1; - List list274 = new List(index2); - CollectionsMarshal.SetCount(list274, index2); - Span span274 = CollectionsMarshal.AsSpan(list274); - num4 = 0; - span274[num4] = new DialogueChoice + num3 = 1; + List list274 = new List(num3); + CollectionsMarshal.SetCount(list274, num3); + CollectionsMarshal.AsSpan(list274)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningGridania", @@ -5067,8 +4234,7 @@ public static class AssemblyQuestLoader reference177 = questStep29; obj157.Steps = list273; reference176 = obj157; - num++; - ref QuestSequence reference178 = ref span272[num]; + ref QuestSequence reference178 = ref span105[1]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -5076,9 +4242,7 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - num3 = 0; - span275[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj158.Steps = list275; reference178 = obj158; questRoot43.QuestSequence = list272; @@ -5088,30 +4252,24 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "liza"; + CollectionsMarshal.AsSpan(list276)[0] = "liza"; questRoot44.Author = list276; - index = 3; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference179 = ref span277[num]; + num = 3; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span106 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference179 = ref span106[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj159.Steps = list278; reference179 = obj159; - num++; - ref QuestSequence reference180 = ref span277[num]; + ref QuestSequence reference180 = ref span106[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -5119,147 +4277,102 @@ public static class AssemblyQuestLoader num2 = 6; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - num3 = 0; - ref QuestStep reference181 = ref span279[num3]; + Span span107 = CollectionsMarshal.AsSpan(list279); + ref QuestStep reference181 = ref span107[0]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2000022u, new Vector3(-52.71997f, 6.7596436f, -109.9718f), 133); - 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); + 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); questStep30.CompletionQuestVariablesFlags = list280; reference181 = questStep30; - num3++; - ref QuestStep reference182 = ref span279[num3]; + ref QuestStep reference182 = ref span107[1]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 2000020u, new Vector3(-63.09613f, 6.94281f, -110.85681f), 133); - 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); + 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); questStep31.CompletionQuestVariablesFlags = list281; reference182 = questStep31; - num3++; - ref QuestStep reference183 = ref span279[num3]; + ref QuestStep reference183 = ref span107[2]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2000021u, new Vector3(-37.979797f, 5.996765f, -101.76245f), 133); - 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); + 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); questStep32.CompletionQuestVariablesFlags = list282; reference183 = questStep32; - num3++; - ref QuestStep reference184 = ref span279[num3]; + ref QuestStep reference184 = ref span107[3]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 2000025u, new Vector3(-47.80658f, 5.722107f, -99.4126f), 133); - 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); + 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); questStep33.CompletionQuestVariablesFlags = list283; reference184 = questStep33; - num3++; - ref QuestStep reference185 = ref span279[num3]; + ref QuestStep reference185 = ref span107[4]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 2000024u, new Vector3(-53.75763f, 6.4850464f, -89.52472f), 133); - 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); + 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); questStep34.CompletionQuestVariablesFlags = list284; reference185 = questStep34; - num3++; - ref QuestStep reference186 = ref span279[num3]; + ref QuestStep reference186 = ref span107[5]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 2000023u, new Vector3(-43.808716f, 6.4850464f, -85.80151f), 133); - 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); + 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); questStep35.CompletionQuestVariablesFlags = list285; reference186 = questStep35; obj160.Steps = list279; reference180 = obj160; - num++; - ref QuestSequence reference187 = ref span277[num]; + ref QuestSequence reference187 = ref span106[2]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj161.Steps = list286; reference187 = obj161; questRoot44.QuestSequence = list277; @@ -5269,17 +4382,14 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - Span span287 = CollectionsMarshal.AsSpan(list287); - index = 0; - span287[index] = "liza"; + CollectionsMarshal.AsSpan(list287)[0] = "liza"; questRoot45.Author = list287; questRoot45.Comment = "Only Turn 13 is required for the next quest to unlock"; - index = 6; - List list288 = new List(index); - CollectionsMarshal.SetCount(list288, index); - Span span288 = CollectionsMarshal.AsSpan(list288); - num = 0; - ref QuestSequence reference188 = ref span288[num]; + num = 6; + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + Span span114 = CollectionsMarshal.AsSpan(list288); + ref QuestSequence reference188 = ref span114[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -5287,9 +4397,8 @@ public static class AssemblyQuestLoader num2 = 4; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - num3 = 0; - ref QuestStep reference189 = ref span289[num3]; + Span span115 = CollectionsMarshal.AsSpan(list289); + ref QuestStep reference189 = ref span115[0]; QuestStep obj163 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -5297,80 +4406,67 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - 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; + num3 = 2; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + Span span116 = CollectionsMarshal.AsSpan(list290); + span116[0] = 140; + span116[1] = 212; skipStepConditions4.InTerritory = list290; skipConditions15.StepIf = skipStepConditions4; obj163.SkipConditions = skipConditions15; reference189 = obj163; - num3++; - ref QuestStep reference190 = ref span289[num3]; + ref QuestStep reference190 = ref span115[1]; QuestStep questStep36 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index2 = 1; - List list291 = new List(index2); - CollectionsMarshal.SetCount(list291, index2); - Span span291 = CollectionsMarshal.AsSpan(list291); - num4 = 0; - span291[num4] = 212; + num3 = 1; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + CollectionsMarshal.AsSpan(list291)[0] = 212; skipStepConditions5.InTerritory = list291; skipConditions16.StepIf = skipStepConditions5; questStep36.SkipConditions = skipConditions16; reference190 = questStep36; - num3++; - ref QuestStep reference191 = ref span289[num3]; + ref QuestStep reference191 = ref span115[2]; 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(); - num4 = 1; - List list292 = new List(num4); - CollectionsMarshal.SetCount(list292, num4); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = 212; + num3 = 1; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + CollectionsMarshal.AsSpan(list292)[0] = 212; skipStepConditions6.InTerritory = list292; skipConditions17.StepIf = skipStepConditions6; obj164.SkipConditions = skipConditions17; reference191 = obj164; - num3++; - span289[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span115[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj162.Steps = list289; reference188 = obj162; - num++; - ref QuestSequence reference192 = ref span288[num]; + ref QuestSequence reference192 = ref span114[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - num2++; - span293[num2] = new QuestStep(EInteractionType.Interact, 1009769u, new Vector3(430.6858f, 3.26411f, 171.58765f), 145) + span117[1] = new QuestStep(EInteractionType.Interact, 1009769u, new Vector3(430.6858f, 3.26411f, 171.58765f), 145) { StopDistance = 5f }; obj165.Steps = list293; reference192 = obj165; - num++; - ref QuestSequence reference193 = ref span288[num]; + ref QuestSequence reference193 = ref span114[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 @@ -5378,34 +4474,28 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - num3 = 0; - span294[num3] = new QuestStep(EInteractionType.Interact, 1009770u, new Vector3(469.5963f, -3.4332886f, -781.1856f), 156) + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1009770u, new Vector3(469.5963f, -3.4332886f, -781.1856f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj166.Steps = list294; reference193 = obj166; - num++; - ref QuestSequence reference194 = ref span288[num]; + ref QuestSequence reference194 = ref span114[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj167.Steps = list295; reference194 = obj167; - num++; - ref QuestSequence reference195 = ref span288[num]; + ref QuestSequence reference195 = ref span114[4]; QuestSequence obj168 = new QuestSequence { Sequence = 4 @@ -5413,28 +4503,23 @@ public static class AssemblyQuestLoader num2 = 2; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span296 = CollectionsMarshal.AsSpan(list296); - num3 = 0; - span296[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.2906f, 71.11877f, -189.74506f), 147) + Span span118 = CollectionsMarshal.AsSpan(list296); + span118[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-67.2906f, 71.11877f, -189.74506f), 147) { Fly = true }; - num3++; - span296[num3] = new QuestStep(EInteractionType.Interact, 1009772u, new Vector3(-67.12445f, 71.293205f, -190.96667f), 147); + span118[1] = new QuestStep(EInteractionType.Interact, 1009772u, new Vector3(-67.12445f, 71.293205f, -190.96667f), 147); obj168.Steps = list296; reference195 = obj168; - num++; - ref QuestSequence reference196 = ref span288[num]; + ref QuestSequence reference196 = ref span114[5]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(44) @@ -5448,16 +4533,13 @@ public static class AssemblyQuestLoader num = 1; List list298 = new List(num); CollectionsMarshal.SetCount(list298, num); - Span span298 = CollectionsMarshal.AsSpan(list298); - index = 0; - span298[index] = "liza"; + CollectionsMarshal.AsSpan(list298)[0] = "liza"; questRoot46.Author = list298; - index = 2; - List list299 = new List(index); - CollectionsMarshal.SetCount(list299, index); - Span span299 = CollectionsMarshal.AsSpan(list299); - num = 0; - ref QuestSequence reference197 = ref span299[num]; + num = 2; + List list299 = new List(num); + CollectionsMarshal.SetCount(list299, num); + Span span119 = CollectionsMarshal.AsSpan(list299); + ref QuestSequence reference197 = ref span119[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -5465,20 +4547,16 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num3 = 0; - ref QuestStep reference198 = ref span300[num3]; + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list300)[0]; QuestStep obj171 = new QuestStep(EInteractionType.AcceptQuest, 1009777u, new Vector3(-59.983215f, 76.798584f, -204.0589f), 147) { StopDistance = 1f, Fly = true }; - index2 = 1; - List list301 = new List(index2); - CollectionsMarshal.SetCount(list301, index2); - Span span301 = CollectionsMarshal.AsSpan(list301); - num4 = 0; - span301[num4] = new DialogueChoice + num3 = 1; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD502_00044_Q1_000_000"), @@ -5488,18 +4566,15 @@ public static class AssemblyQuestLoader reference198 = obj171; obj170.Steps = list300; reference197 = obj170; - num++; - ref QuestSequence reference199 = ref span299[num]; + ref QuestSequence reference199 = ref span119[1]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -5512,16 +4587,13 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - Span span303 = CollectionsMarshal.AsSpan(list303); - index = 0; - span303[index] = "liza"; + CollectionsMarshal.AsSpan(list303)[0] = "liza"; questRoot47.Author = list303; - index = 8; - List list304 = new List(index); - CollectionsMarshal.SetCount(list304, index); - Span span304 = CollectionsMarshal.AsSpan(list304); - num = 0; - ref QuestSequence reference200 = ref span304[num]; + num = 8; + List list304 = new List(num); + CollectionsMarshal.SetCount(list304, num); + Span span120 = CollectionsMarshal.AsSpan(list304); + ref QuestSequence reference200 = ref span120[0]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -5529,9 +4601,7 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - num3 = 0; - span305[num3] = new QuestStep(EInteractionType.AcceptQuest, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009812u, new Vector3(74.08252f, 30.549389f, -720.9735f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -5544,29 +4614,24 @@ public static class AssemblyQuestLoader }; obj173.Steps = list305; reference200 = obj173; - num++; - ref QuestSequence reference201 = ref span304[num]; + ref QuestSequence reference201 = ref span120[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - 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); + 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); obj174.Steps = list306; reference201 = obj174; - num++; - ref QuestSequence reference202 = ref span304[num]; + ref QuestSequence reference202 = ref span120[2]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -5574,30 +4639,24 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - num3 = 0; - span307[num3] = new QuestStep(EInteractionType.Interact, 2004628u, new Vector3(50.614136f, 31.143677f, -748.40924f), 156); + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 2004628u, new Vector3(50.614136f, 31.143677f, -748.40924f), 156); obj175.Steps = list307; reference202 = obj175; - num++; - ref QuestSequence reference203 = ref span304[num]; + ref QuestSequence reference203 = ref span120[3]; QuestSequence obj176 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj176.Steps = list308; reference203 = obj176; - num++; - ref QuestSequence reference204 = ref span304[num]; + ref QuestSequence reference204 = ref span120[4]; QuestSequence obj177 = new QuestSequence { Sequence = 4 @@ -5605,35 +4664,29 @@ public static class AssemblyQuestLoader num2 = 2; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - num3 = 0; - span309[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.20372f, 11.28438f, -619.29504f), 156) + Span span122 = CollectionsMarshal.AsSpan(list309); + span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.20372f, 11.28438f, -619.29504f), 156) { Fly = true }; - num3++; - span309[num3] = new QuestStep(EInteractionType.Interact, 2004629u, new Vector3(-166.79645f, 12.283508f, -619.8978f), 156); + span122[1] = new QuestStep(EInteractionType.Interact, 2004629u, new Vector3(-166.79645f, 12.283508f, -619.8978f), 156); obj177.Steps = list309; reference204 = obj177; - num++; - ref QuestSequence reference205 = ref span304[num]; + ref QuestSequence reference205 = ref span120[5]; QuestSequence obj178 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj178.Steps = list310; reference205 = obj178; - num++; - ref QuestSequence reference206 = ref span304[num]; + ref QuestSequence reference206 = ref span120[6]; QuestSequence obj179 = new QuestSequence { Sequence = 6 @@ -5641,26 +4694,21 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj179.Steps = list311; reference206 = obj179; - num++; - ref QuestSequence reference207 = ref span304[num]; + ref QuestSequence reference207 = ref span120[7]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(50) @@ -5674,16 +4722,13 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - Span span313 = CollectionsMarshal.AsSpan(list313); - index = 0; - span313[index] = "pot0to"; + CollectionsMarshal.AsSpan(list313)[0] = "pot0to"; questRoot48.Author = list313; - index = 5; - List list314 = new List(index); - CollectionsMarshal.SetCount(list314, index); - Span span314 = CollectionsMarshal.AsSpan(list314); - num = 0; - ref QuestSequence reference208 = ref span314[num]; + num = 5; + List list314 = new List(num); + CollectionsMarshal.SetCount(list314, num); + Span span123 = CollectionsMarshal.AsSpan(list314); + ref QuestSequence reference208 = ref span123[0]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -5691,9 +4736,7 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - num3 = 0; - span315[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -5712,295 +4755,216 @@ public static class AssemblyQuestLoader }; obj181.Steps = list315; reference208 = obj181; - num++; - ref QuestSequence reference209 = ref span314[num]; + ref QuestSequence reference209 = ref span123[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - num3 = 11; - List list316 = new List(num3); - CollectionsMarshal.SetCount(list316, num3); - Span span316 = CollectionsMarshal.AsSpan(list316); - num2 = 0; - ref QuestStep reference210 = ref span316[num2]; + num2 = 11; + List list316 = new List(num2); + CollectionsMarshal.SetCount(list316, num2); + Span span124 = CollectionsMarshal.AsSpan(list316); + ref QuestStep reference210 = ref span124[0]; QuestStep obj183 = new QuestStep(EInteractionType.Action, 2000925u, new Vector3(187.18237f, -2.7314453f, 79.087524f), 132) { StopDistance = 15f, Action = EAction.HeavyShot }; - 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); + 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); obj183.CompletionQuestVariablesFlags = list317; reference210 = obj183; - num2++; - ref QuestStep reference211 = ref span316[num2]; + ref QuestStep reference211 = ref span124[1]; QuestStep questStep37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(106.01592f, 0.14552212f, 57.230045f), 132); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list318; skipConditions18.StepIf = skipStepConditions7; questStep37.SkipConditions = skipConditions18; reference211 = questStep37; - num2++; - ref QuestStep reference212 = ref span316[num2]; + ref QuestStep reference212 = ref span124[2]; QuestStep obj184 = new QuestStep(EInteractionType.Action, 2000926u, new Vector3(113.42029f, 4.6539917f, 54.306763f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - 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); + 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); obj184.CompletionQuestVariablesFlags = list319; reference212 = obj184; - num2++; - ref QuestStep reference213 = ref span316[num2]; + ref QuestStep reference213 = ref span124[3]; QuestStep questStep38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.66375f, 2.5499606f, 15.033528f), 132); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list320; skipConditions19.StepIf = skipStepConditions8; questStep38.SkipConditions = skipConditions19; reference213 = questStep38; - num2++; - ref QuestStep reference214 = ref span316[num2]; + ref QuestStep reference214 = ref span124[4]; QuestStep obj185 = new QuestStep(EInteractionType.Action, 2000931u, new Vector3(36.453735f, 7.248047f, 10.879639f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - 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); + 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); obj185.CompletionQuestVariablesFlags = list321; reference214 = obj185; - num2++; - ref QuestStep reference215 = ref span316[num2]; + ref QuestStep reference215 = ref span124[5]; QuestStep questStep39 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-4.75964f, -3.0942674f, 21.23782f), 132); SkipConditions skipConditions20 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list322; skipConditions20.StepIf = skipStepConditions9; questStep39.SkipConditions = skipConditions20; reference215 = questStep39; - num2++; - ref QuestStep reference216 = ref span316[num2]; + ref QuestStep reference216 = ref span124[6]; QuestStep obj186 = new QuestStep(EInteractionType.Action, 2000929u, new Vector3(-5.7526855f, 2.0598755f, 30.655273f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - 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); + 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); obj186.CompletionQuestVariablesFlags = list323; reference216 = obj186; - num2++; - ref QuestStep reference217 = ref span316[num2]; + ref QuestStep reference217 = ref span124[7]; QuestStep questStep40 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(31.96446f, -1.5349445f, 60.44494f), 132); SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list324; skipConditions21.StepIf = skipStepConditions10; questStep40.SkipConditions = skipConditions21; reference217 = questStep40; - num2++; - ref QuestStep reference218 = ref span316[num2]; + ref QuestStep reference218 = ref span124[8]; QuestStep obj187 = new QuestStep(EInteractionType.Action, 2000928u, new Vector3(33.24939f, 5.4473877f, 70.63391f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - 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); + 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); obj187.CompletionQuestVariablesFlags = list325; reference218 = obj187; - num2++; - ref QuestStep reference219 = ref span316[num2]; + ref QuestStep reference219 = ref span124[9]; QuestStep questStep41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.39101f, -3.7351668f, 88.24835f), 132); SkipConditions skipConditions22 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list326; skipConditions22.StepIf = skipStepConditions11; questStep41.SkipConditions = skipConditions22; reference219 = questStep41; - num2++; - ref QuestStep reference220 = ref span316[num2]; + ref QuestStep reference220 = ref span124[10]; QuestStep obj188 = new QuestStep(EInteractionType.Action, 2000930u, new Vector3(56.595703f, -3.7385254f, 96.97107f), 132) { StopDistance = 20f, Action = EAction.HeavyShot }; - 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); + 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); obj188.CompletionQuestVariablesFlags = list327; reference220 = obj188; obj182.Steps = list316; reference209 = obj182; - num++; - ref QuestSequence reference221 = ref span314[num]; + ref QuestSequence reference221 = ref span123[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -6008,9 +4972,7 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - num3 = 0; - span328[num3] = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { AethernetShortcut = new AethernetShortcut { @@ -6020,18 +4982,16 @@ public static class AssemblyQuestLoader }; obj189.Steps = list328; reference221 = obj189; - num++; - ref QuestSequence reference222 = ref span314[num]; + ref QuestSequence reference222 = ref span123[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num3 = 2; - List list329 = new List(num3); - CollectionsMarshal.SetCount(list329, num3); - Span span329 = CollectionsMarshal.AsSpan(list329); - num2 = 0; - ref QuestStep reference223 = ref span329[num2]; + num2 = 2; + List list329 = new List(num2); + CollectionsMarshal.SetCount(list329, num2); + Span span136 = CollectionsMarshal.AsSpan(list329); + ref QuestStep reference223 = ref span136[0]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(303.89548f, -21.916101f, 210.33368f), 154) { StopDistance = 0.5f, @@ -6043,76 +5003,58 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list330 = new List(index2); - CollectionsMarshal.SetCount(list330, index2); - Span span330 = CollectionsMarshal.AsSpan(list330); - num4 = 0; - span330[num4] = new ComplexCombatData + num3 = 1; + List list330 = new List(num3); + CollectionsMarshal.SetCount(list330, num3); + CollectionsMarshal.AsSpan(list330)[0] = new ComplexCombatData { DataId = 5u, MinimumKillCount = 8u }; obj191.ComplexCombatData = list330; - 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; + 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; obj191.CompletionQuestVariablesFlags = list331; reference223 = obj191; - num2++; - ref QuestStep reference224 = ref span329[num2]; + ref QuestStep reference224 = ref span136[1]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(250.70682f, -11.9244995f, 40.554157f), 154) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list332 = new List(index2); - CollectionsMarshal.SetCount(list332, index2); - Span span332 = CollectionsMarshal.AsSpan(list332); - num4 = 0; - span332[num4] = new ComplexCombatData + num3 = 1; + List list332 = new List(num3); + CollectionsMarshal.SetCount(list332, num3); + CollectionsMarshal.AsSpan(list332)[0] = new ComplexCombatData { DataId = 32u, MinimumKillCount = 8u }; obj192.ComplexCombatData = list332; - 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; + 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; obj192.CompletionQuestVariablesFlags = list333; reference224 = obj192; obj190.Steps = list329; reference222 = obj190; - num++; - ref QuestSequence reference225 = ref span314[num]; + ref QuestSequence reference225 = ref span123[4]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -6120,9 +5062,7 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - num3 = 0; - span334[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -6149,26 +5089,21 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - Span span335 = CollectionsMarshal.AsSpan(list335); - index = 0; - span335[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list335)[0] = "Cacahuetes"; questRoot49.Author = list335; - index = 6; - List list336 = new List(index); - CollectionsMarshal.SetCount(list336, index); - Span span336 = CollectionsMarshal.AsSpan(list336); - num = 0; - ref QuestSequence reference226 = ref span336[num]; + num = 6; + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + Span span139 = CollectionsMarshal.AsSpan(list336); + ref QuestSequence reference226 = ref span139[0]; QuestSequence obj194 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list337 = new List(num2); + CollectionsMarshal.SetCount(list337, num2); + ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list337)[0]; QuestStep obj195 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -6183,20 +5118,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list338 = new List(index2); - CollectionsMarshal.SetCount(list338, index2); - Span span338 = CollectionsMarshal.AsSpan(list338); - num4 = 0; - span338[num4] = 133; + num3 = 1; + List list338 = new List(num3); + CollectionsMarshal.SetCount(list338, num3); + CollectionsMarshal.AsSpan(list338)[0] = 133; obj196.InTerritory = list338; skipConditions23.AetheryteShortcutIf = obj196; obj195.SkipConditions = skipConditions23; reference227 = obj195; obj194.Steps = list337; reference226 = obj194; - num++; - ref QuestSequence reference228 = ref span336[num]; + ref QuestSequence reference228 = ref span139[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -6204,9 +5136,8 @@ public static class AssemblyQuestLoader num2 = 3; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - num3 = 0; - span339[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.13162f, -11.982115f, -159.64388f), 148) + Span span140 = CollectionsMarshal.AsSpan(list339); + span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(260.13162f, -11.982115f, -159.64388f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -6215,84 +5146,63 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - num3++; - ref QuestStep reference229 = ref span339[num3]; + ref QuestStep reference229 = ref span140[1]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 2000911u, new Vector3(261.82947f, -11.795227f, -161.36414f), 148) { ItemId = 2000230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list340 = new List(num4); - CollectionsMarshal.SetCount(list340, num4); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = 42u; + num3 = 1; + List list340 = new List(num3); + CollectionsMarshal.SetCount(list340, num3); + CollectionsMarshal.AsSpan(list340)[0] = 42u; obj198.KillEnemyDataIds = list340; - 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); + 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); obj198.CompletionQuestVariablesFlags = list341; reference229 = obj198; - num3++; - ref QuestStep reference230 = ref span339[num3]; + ref QuestStep reference230 = ref span140[2]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 2000910u, new Vector3(266.31567f, -11.795227f, -174.88367f), 148) { ItemId = 2000230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list342 = new List(num4); - CollectionsMarshal.SetCount(list342, num4); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = 42u; + num3 = 1; + List list342 = new List(num3); + CollectionsMarshal.SetCount(list342, num3); + CollectionsMarshal.AsSpan(list342)[0] = 42u; obj199.KillEnemyDataIds = list342; - 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); + 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); obj199.CompletionQuestVariablesFlags = list343; reference230 = obj199; obj197.Steps = list339; reference228 = obj197; - num++; - ref QuestSequence reference231 = ref span336[num]; + ref QuestSequence reference231 = ref span139[2]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6303,8 +5213,7 @@ public static class AssemblyQuestLoader }; obj200.Steps = list344; reference231 = obj200; - num++; - ref QuestSequence reference232 = ref span336[num]; + ref QuestSequence reference232 = ref span139[3]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -6312,9 +5221,8 @@ public static class AssemblyQuestLoader num2 = 4; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - num3 = 0; - span345[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.2214f, 1.4752781f, 87.94056f), 148) + Span span143 = CollectionsMarshal.AsSpan(list345); + span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.2214f, 1.4752781f, 87.94056f), 148) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -6323,113 +5231,83 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - num3++; - ref QuestStep reference233 = ref span345[num3]; + ref QuestStep reference233 = ref span143[1]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2000914u, new Vector3(302.2965f, 2.090454f, 88.0293f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list346 = new List(num4); - CollectionsMarshal.SetCount(list346, num4); - Span span346 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - span346[index2] = 41u; + num3 = 1; + List list346 = new List(num3); + CollectionsMarshal.SetCount(list346, num3); + CollectionsMarshal.AsSpan(list346)[0] = 41u; obj202.KillEnemyDataIds = list346; - 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); + 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); obj202.CompletionQuestVariablesFlags = list347; reference233 = obj202; - num3++; - ref QuestStep reference234 = ref span345[num3]; + ref QuestStep reference234 = ref span143[2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2000916u, new Vector3(305.4093f, 4.501404f, 103.990234f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list348 = new List(num4); - CollectionsMarshal.SetCount(list348, num4); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - span348[index2] = 26u; + num3 = 1; + List list348 = new List(num3); + CollectionsMarshal.SetCount(list348, num3); + CollectionsMarshal.AsSpan(list348)[0] = 26u; obj203.KillEnemyDataIds = list348; - 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); + 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); obj203.CompletionQuestVariablesFlags = list349; reference234 = obj203; - num3++; - ref QuestStep reference235 = ref span345[num3]; + ref QuestStep reference235 = ref span143[3]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, 2000915u, new Vector3(327.10767f, 3.7078857f, 93.64453f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list350 = new List(num4); - CollectionsMarshal.SetCount(list350, num4); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = 41u; + num3 = 1; + List list350 = new List(num3); + CollectionsMarshal.SetCount(list350, num3); + CollectionsMarshal.AsSpan(list350)[0] = 41u; obj204.KillEnemyDataIds = list350; - 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); + 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); obj204.CompletionQuestVariablesFlags = list351; reference235 = obj204; obj201.Steps = list345; reference232 = obj201; - num++; - ref QuestSequence reference236 = ref span336[num]; + ref QuestSequence reference236 = ref span139[4]; QuestSequence obj205 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6444,8 +5322,7 @@ public static class AssemblyQuestLoader }; obj205.Steps = list352; reference236 = obj205; - num++; - ref QuestSequence reference237 = ref span336[num]; + ref QuestSequence reference237 = ref span139[5]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -6453,9 +5330,7 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - num3 = 0; - span353[num3] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { NextQuestId = new QuestId(35) }; @@ -6468,26 +5343,21 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - Span span354 = CollectionsMarshal.AsSpan(list354); - index = 0; - span354[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list354)[0] = "Cacahuetes"; questRoot50.Author = list354; - index = 5; - List list355 = new List(index); - CollectionsMarshal.SetCount(list355, index); - Span span355 = CollectionsMarshal.AsSpan(list355); - num = 0; - ref QuestSequence reference238 = ref span355[num]; + num = 5; + List list355 = new List(num); + CollectionsMarshal.SetCount(list355, num); + Span span147 = CollectionsMarshal.AsSpan(list355); + ref QuestSequence reference238 = ref span147[0]; QuestSequence obj207 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list356 = new List(num2); + CollectionsMarshal.SetCount(list356, num2); + ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list356)[0]; QuestStep obj208 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -6502,20 +5372,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list357 = new List(num4); - CollectionsMarshal.SetCount(list357, num4); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span357[index2] = 133; + num3 = 1; + List list357 = new List(num3); + CollectionsMarshal.SetCount(list357, num3); + CollectionsMarshal.AsSpan(list357)[0] = 133; obj209.InTerritory = list357; skipConditions24.AetheryteShortcutIf = obj209; obj208.SkipConditions = skipConditions24; reference239 = obj208; obj207.Steps = list356; reference238 = obj207; - num++; - ref QuestSequence reference240 = ref span355[num]; + ref QuestSequence reference240 = ref span147[1]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -6523,9 +5390,8 @@ public static class AssemblyQuestLoader num2 = 2; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - num3 = 0; - span358[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) + Span span148 = CollectionsMarshal.AsSpan(list358); + span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -6534,39 +5400,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - num3++; - span358[num3] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); + span148[1] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); obj210.Steps = list358; reference240 = obj210; - num++; - ref QuestSequence reference241 = ref span355[num]; + ref QuestSequence reference241 = ref span147[2]; QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - num3 = 1; - List list359 = new List(num3); - CollectionsMarshal.SetCount(list359, num3); - Span span359 = CollectionsMarshal.AsSpan(list359); - num2 = 0; - ref QuestStep reference242 = ref span359[num2]; + num2 = 1; + List list359 = new List(num2); + CollectionsMarshal.SetCount(list359, num2); + ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list359)[0]; QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2000883u, new Vector3(325.1848f, -5.217115f, 390.488f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list360 = new List(index2); - CollectionsMarshal.SetCount(list360, index2); - Span span360 = CollectionsMarshal.AsSpan(list360); - num4 = 0; - span360[num4] = 294u; + num3 = 1; + List list360 = new List(num3); + CollectionsMarshal.SetCount(list360, num3); + CollectionsMarshal.AsSpan(list360)[0] = 294u; obj212.KillEnemyDataIds = list360; reference242 = obj212; obj211.Steps = list359; reference241 = obj211; - num++; - ref QuestSequence reference243 = ref span355[num]; + ref QuestSequence reference243 = ref span147[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -6574,9 +5433,8 @@ public static class AssemblyQuestLoader num2 = 2; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span361 = CollectionsMarshal.AsSpan(list361); - num3 = 0; - span361[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) + Span span149 = CollectionsMarshal.AsSpan(list361); + span149[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(220.82336f, -28.335487f, 336.9016f), 154) { Fly = true, SkipConditions = new SkipConditions @@ -6587,22 +5445,18 @@ public static class AssemblyQuestLoader } } }; - num3++; - span361[num3] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); + span149[1] = new QuestStep(EInteractionType.Interact, 1000764u, new Vector3(218.89062f, -28.252495f, 338.39917f), 154); obj213.Steps = list361; reference243 = obj213; - num++; - ref QuestSequence reference244 = ref span355[num]; + ref QuestSequence reference244 = ref span147[4]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -6621,16 +5475,13 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - Span span363 = CollectionsMarshal.AsSpan(list363); - index = 0; - span363[index] = "liza"; + CollectionsMarshal.AsSpan(list363)[0] = "liza"; questRoot51.Author = list363; - index = 2; - List list364 = new List(index); - CollectionsMarshal.SetCount(list364, index); - Span span364 = CollectionsMarshal.AsSpan(list364); - num = 0; - ref QuestSequence reference245 = ref span364[num]; + num = 2; + List list364 = new List(num); + CollectionsMarshal.SetCount(list364, num); + Span span150 = CollectionsMarshal.AsSpan(list364); + ref QuestSequence reference245 = ref span150[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -6638,23 +5489,18 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - num3 = 0; - span365[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000788u, new Vector3(-43.90027f, 7.0877223f, -136.70563f), 133); + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000788u, new Vector3(-43.90027f, 7.0877223f, -136.70563f), 133); obj215.Steps = list365; reference245 = obj215; - num++; - ref QuestSequence reference246 = ref span364[num]; + ref QuestSequence reference246 = ref span150[1]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj216.Steps = list366; reference246 = obj216; questRoot51.QuestSequence = list364; @@ -6668,16 +5514,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -6685,9 +5528,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -6700,25 +5541,21 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -6726,26 +5563,22 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - index2 = 7; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref QuestStep reference5 = ref span6[num2]; + num2 = 7; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestStep reference5 = ref span2[0]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1009825u, new Vector3(86.07605f, 28.34813f, -622.18665f), 156) { StopDistance = 0.5f, @@ -6754,152 +5587,109 @@ public static class AssemblyQuestLoader int num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - 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); + 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); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - num2++; - ref QuestStep reference6 = ref span6[num2]; + ref QuestStep reference6 = ref span2[1]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list8; skipConditions.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions; reference6 = obj6; - num2++; - ref QuestStep reference7 = ref span6[num2]; + ref QuestStep reference7 = ref span2[2]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list9; reference7 = questStep; - num2++; - span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span2[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - num2++; - ref QuestStep reference8 = ref span6[num2]; + ref QuestStep reference8 = ref span2[4]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list10; skipConditions2.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions2; reference8 = obj7; - num2++; - ref QuestStep reference9 = ref span6[num2]; + ref QuestStep reference9 = ref span2[5]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list11; reference9 = questStep2; - num2++; - ref QuestStep reference10 = ref span6[num2]; + ref QuestStep reference10 = ref span2[6]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1009824u, new Vector3(22.262878f, 28.999968f, -780.85f), 156) { Fly = true }; - 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); + 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); obj8.CompletionQuestVariablesFlags = list12; reference10 = obj8; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[4]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -6907,9 +5697,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true, NextQuestId = new QuestId(100) @@ -6923,33 +5711,27 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; questRoot2.Author = list14; - index = 4; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference12 = ref span15[num]; + num = 4; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span9 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference12 = ref span9[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj10.Steps = list16; reference12 = obj10; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span9[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -6957,32 +5739,26 @@ public static class AssemblyQuestLoader num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span10 = CollectionsMarshal.AsSpan(list17); + span10[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span17[index2] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); + span10[1] = new QuestStep(EInteractionType.Interact, 1010078u, new Vector3(31.540405f, -1f, -0.80877686f), 351); obj11.Steps = list17; reference13 = obj11; - num++; - ref QuestSequence reference14 = ref span15[num]; + ref QuestSequence reference14 = ref span9[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj12.Steps = list18; reference14 = obj12; - num++; - ref QuestSequence reference15 = ref span15[num]; + ref QuestSequence reference15 = ref span9[3]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -6990,9 +5766,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -7005,26 +5779,21 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list20)[0] = "JerryWester"; questRoot3.Author = list20; - index = 7; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 7; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span11 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span11[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -7037,8 +5806,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list22; reference16 = obj14; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span11[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -7046,370 +5814,331 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span12 = CollectionsMarshal.AsSpan(list23); + span12[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - 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); + 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); obj15.Steps = list23; reference17 = obj15; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span11[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)156 }; - num2++; - span24[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 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) { - Mount = true + Mount = true, + SkipConditions = new SkipConditions + { + StepIf = new SkipStepConditions + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(-354.60443f, -15.981883f, -477.4395f), + MaximumDistance = 300f, + TerritoryId = 156 + } + } + } }; - num2++; - span24[num2] = new QuestStep(EInteractionType.Interact, 1009962u, new Vector3(-354.60443f, -15.981883f, -477.4395f), 156) + span13[3] = new QuestStep(EInteractionType.Interact, 1009962u, new Vector3(-354.60443f, -15.981883f, -477.4395f), 156) { Fly = true }; obj16.Steps = list24; reference18 = obj16; - num++; - ref QuestSequence reference19 = ref span21[num]; - QuestSequence obj17 = new QuestSequence + ref QuestSequence reference21 = ref span11[3]; + QuestSequence obj18 = new QuestSequence { Sequence = 3 }; num2 = 2; - 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) + 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) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - 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 + 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 { Sequence = 4 }; - 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) + 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) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj21.KillEnemyDataIds = list30; num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - 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); + 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); obj21.CompletionQuestVariablesFlags = list31; - 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) + reference24 = obj21; + ref QuestStep reference25 = ref span16[1]; + QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-542.5233f, -1.7329574f, -291.1239f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span19 = CollectionsMarshal.AsSpan(list32); + span19[0] = 55u; + span19[1] = 3566u; obj22.KillEnemyDataIds = list32; num3 = 6; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - 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); + 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); obj22.CompletionQuestVariablesFlags = list33; - reference24 = obj22; - obj19.Steps = list27; - reference21 = obj19; - num++; - ref QuestSequence reference25 = ref span21[num]; - QuestSequence obj23 = new QuestSequence + 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 { Sequence = 5 }; num2 = 1; - 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) + 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) { Fly = true }; - obj23.Steps = list34; - reference25 = obj23; - num++; - ref QuestSequence reference26 = ref span21[num]; - QuestSequence obj24 = new QuestSequence + obj24.Steps = list36; + reference27 = obj24; + ref QuestSequence reference28 = ref span11[6]; + QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - 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; + 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; questRoot3.QuestSequence = list21; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(54); QuestRoot questRoot4 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - 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 + 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 { Sequence = 2 }; num2 = 2; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num4 = 1; - List list42 = new List(num4); - CollectionsMarshal.SetCount(list42, num4); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span42[num3] = new DialogueChoice + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE403_00054_FORTEMPSGUARD00054_Q1_000_1") }; - obj29.DialogueChoices = list42; - reference31 = obj29; - obj28.Steps = list41; - reference30 = obj28; - questRoot4.QuestSequence = list37; + obj30.DialogueChoices = list44; + reference33 = obj30; + obj29.Steps = list43; + reference32 = obj29; + questRoot4.QuestSequence = list39; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(55); QuestRoot questRoot5 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7418,134 +6147,113 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions3 = new SkipConditions(); - SkipAetheryteCondition obj32 = new SkipAetheryteCondition + SkipConditions skipConditions5 = new SkipConditions(); + SkipAetheryteCondition obj33 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)152 }; - num2++; - ref QuestStep reference35 = ref span47[num2]; - QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152) + ref QuestStep reference37 = ref span28[1]; + QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1001194u, new Vector3(-416.37292f, 0.10675049f, 60.990234f), 152) { Fly = true }; - num4 = 1; - List list48 = new List(num4); - CollectionsMarshal.SetCount(list48, num4); - Span span48 = CollectionsMarshal.AsSpan(list48); - num3 = 0; - span48[num3] = new DialogueChoice + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSLNC003_00055_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSLNC003_00055_A1_000_1") }; - obj34.DialogueChoices = list48; - reference35 = obj34; - obj33.Steps = list47; - reference34 = obj33; - num++; - ref QuestSequence reference36 = ref span44[num]; - QuestSequence obj35 = new QuestSequence + obj35.DialogueChoices = list50; + reference37 = obj35; + obj34.Steps = list49; + reference36 = obj34; + ref QuestSequence reference38 = ref span27[2]; + QuestSequence obj36 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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) + 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) { ItemId = 2000235u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 2; - 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) + 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) { Fly = true }; - index2++; - span52[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000920u, new Vector3(267.5669f, -0.5951538f, -253.83386f), 148) + span29[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000920u, new Vector3(267.5669f, -0.5951538f, -253.83386f), 148) { Fly = true }; - obj38.Steps = list52; - reference39 = obj38; - num++; - ref QuestSequence reference40 = ref span44[num]; - QuestSequence obj39 = new QuestSequence + obj39.Steps = list54; + reference41 = obj39; + ref QuestSequence reference42 = ref span27[5]; + QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7555,36 +6263,31 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(56) }; - obj39.Steps = list53; - reference40 = obj39; - questRoot5.QuestSequence = list44; + obj40.Steps = list55; + reference42 = obj40; + questRoot5.QuestSequence = list46; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(56); QuestRoot questRoot6 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7593,35 +6296,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - SkipConditions skipConditions4 = new SkipConditions(); - SkipAetheryteCondition obj42 = new SkipAetheryteCondition + SkipConditions skipConditions6 = new SkipConditions(); + SkipAetheryteCondition obj43 = new SkipAetheryteCondition { InSameTerritory = true }; - 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 + 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 { Sequence = 1 }; - 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) + 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) { StopDistance = 4f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -7629,50 +6327,43 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj43.Steps = list58; - reference43 = obj43; - num++; - ref QuestSequence reference44 = ref span55[num]; - QuestSequence obj44 = new QuestSequence + obj44.Steps = list60; + reference45 = obj44; + ref QuestSequence reference46 = ref span30[2]; + QuestSequence obj45 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; num3 = 1; - List list60 = new List(num3); - CollectionsMarshal.SetCount(list60, num3); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new DialogueChoice + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC004_00056_Q1_000_1") }; - obj45.DialogueChoices = list60; - reference45 = obj45; - obj44.Steps = list59; - reference44 = obj44; - num++; - ref QuestSequence reference46 = ref span55[num]; - QuestSequence obj46 = new QuestSequence + obj46.DialogueChoices = list62; + reference47 = obj46; + obj45.Steps = list61; + reference46 = obj45; + ref QuestSequence reference48 = ref span30[3]; + QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)152, SkipConditions = new SkipConditions @@ -7683,64 +6374,55 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference47 = ref span61[num2]; - QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.39551f, -1.8032382f, 173.32715f), 152) + ref QuestStep reference49 = ref span31[1]; + QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.39551f, -1.8032382f, 173.32715f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list62 = new List(num4); - CollectionsMarshal.SetCount(list62, num4); - Span span62 = CollectionsMarshal.AsSpan(list62); - num3 = 0; - span62[num3] = new ComplexCombatData + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new ComplexCombatData { DataId = 15u, MinimumKillCount = 10u }; - obj47.ComplexCombatData = list62; - obj47.SkipConditions = new SkipConditions + obj48.ComplexCombatData = list64; + obj48.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition { InSameTerritory = true } }; - reference47 = obj47; - obj46.Steps = list61; - reference46 = obj46; - num++; - ref QuestSequence reference48 = ref span55[num]; - QuestSequence obj48 = new QuestSequence + reference49 = obj48; + obj47.Steps = list63; + reference48 = obj47; + ref QuestSequence reference50 = ref span30[4]; + QuestSequence obj49 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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) + 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) { Fly = true }; - obj48.Steps = list63; - reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span55[num]; - QuestSequence obj49 = new QuestSequence + obj49.Steps = list65; + reference50 = obj49; + ref QuestSequence reference51 = ref span30[5]; + QuestSequence obj50 = new QuestSequence { Sequence = 5 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -7748,20 +6430,17 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj49.Steps = list64; - reference49 = obj49; - num++; - ref QuestSequence reference50 = ref span55[num]; - QuestSequence obj50 = new QuestSequence + obj50.Steps = list66; + reference51 = obj50; + ref QuestSequence reference52 = ref span30[6]; + QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -7771,35 +6450,30 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(438) }; - obj50.Steps = list65; - reference50 = obj50; - questRoot6.QuestSequence = list55; + obj51.Steps = list67; + reference52 = obj51; + questRoot6.QuestSequence = list57; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(57); QuestRoot questRoot7 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -7811,116 +6485,136 @@ public static class AssemblyQuestLoader } } }; - obj51.Steps = list68; - reference51 = obj51; - num++; - ref QuestSequence reference52 = ref span67[num]; - QuestSequence obj52 = new QuestSequence + obj52.Steps = list70; + reference53 = obj52; + ref QuestSequence reference54 = ref span32[1]; + QuestSequence obj53 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { Mount = true }; - obj52.Steps = list69; - reference52 = obj52; - num++; - ref QuestSequence reference53 = ref span67[num]; - QuestSequence obj53 = new QuestSequence + obj53.Steps = list71; + reference54 = obj53; + ref QuestSequence reference55 = ref span32[2]; + QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span70[num2] = new QuestStep(EInteractionType.Interact, 1009979u, new Vector3(-281.48322f, 225.50882f, 556.115f), 155) + span33[1] = new QuestStep(EInteractionType.Interact, 1009979u, new Vector3(-281.48322f, 225.50882f, 556.115f), 155) { Fly = true }; - obj53.Steps = list70; - reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span67[num]; - QuestSequence obj54 = new QuestSequence + obj54.Steps = list72; + reference55 = obj54; + ref QuestSequence reference56 = ref span32[3]; + QuestSequence obj55 = new QuestSequence { Sequence = 3 }; num2 = 2; - 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) + 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) { Fly = true }; - index2++; - span71[index2] = new QuestStep(EInteractionType.Interact, 1009982u, new Vector3(208.88062f, 229.04996f, 322.4994f), 155) + span34[1] = new QuestStep(EInteractionType.Interact, 1009982u, new Vector3(208.88062f, 229.04996f, 322.4994f), 155) { StopDistance = 5f }; - obj54.Steps = list71; - reference54 = obj54; - num++; - ref QuestSequence reference55 = ref span67[num]; - QuestSequence obj55 = new QuestSequence + obj55.Steps = list73; + reference56 = obj55; + ref QuestSequence reference57 = ref span32[4]; + QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - 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; + span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1009977u, new Vector3(261.0055f, 303.1f, -198.59619f), 155); + obj56.Steps = list74; + reference57 = obj56; + questRoot7.QuestSequence = list69; AddQuest(questId7, questRoot7); - AlliedSocietyDailyId questId8 = new AlliedSocietyDailyId(6, 0); + QuestId questId8 = new QuestId(59); QuestRoot questRoot8 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -7933,35 +6627,30 @@ public static class AssemblyQuestLoader } } }; - obj56.Steps = list75; - reference56 = obj56; - questRoot8.QuestSequence = list74; - AddQuest(questId8, questRoot8); - QuestId questId9 = new QuestId(62); - QuestRoot questRoot9 = new QuestRoot(); + obj59.Steps = list81; + reference60 = obj59; + questRoot9.QuestSequence = list80; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(62); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -7972,59 +6661,50 @@ public static class AssemblyQuestLoader } } }; - obj57.Steps = list78; - reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span77[num]; - QuestSequence obj58 = new QuestSequence + obj60.Steps = list84; + reference61 = obj60; + ref QuestSequence reference62 = ref span37[1]; + QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - 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) + 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) { Mount = true }; - index2++; - span79[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -8041,191 +6721,35 @@ public static class AssemblyQuestLoader } } }; - obj59.Steps = list82; - reference59 = obj59; - num++; - ref QuestSequence reference60 = ref span81[num]; - QuestSequence obj60 = new QuestSequence + obj62.Steps = list88; + reference63 = obj62; + ref QuestSequence reference64 = ref span39[1]; + QuestSequence obj63 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - 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) + ref QuestStep reference66 = ref span40[1]; + QuestStep obj65 = new QuestStep(EInteractionType.Action, 2001173u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) { StopDistance = 15f, Action = EAction.HeavyShot @@ -8233,49 +6757,35 @@ public static class AssemblyQuestLoader num3 = 6; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - 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); + 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); obj65.CompletionQuestVariablesFlags = list91; - 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) + 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) { StopDistance = 15f, Action = EAction.HeavyShot @@ -8283,43 +6793,140 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - 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); + 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); obj66.CompletionQuestVariablesFlags = list93; - 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) + 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) { StopDistance = 15f, Action = EAction.HeavyShot }; - obj61.Steps = list84; - reference61 = obj61; - num++; - ref QuestSequence reference71 = ref span81[num]; - QuestSequence obj67 = new QuestSequence + 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 { Sequence = 3 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -8328,20 +6935,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj67.Steps = list94; - reference71 = obj67; - num++; - ref QuestSequence reference72 = ref span81[num]; - QuestSequence obj68 = new QuestSequence + obj70.Steps = list100; + reference75 = obj70; + ref QuestSequence reference76 = ref span39[4]; + QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -8357,76 +6962,60 @@ public static class AssemblyQuestLoader } } }; - num2++; - span95[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + span50[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut }; - num2++; - ref QuestStep reference73 = ref span95[num2]; - QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) + ref QuestStep reference77 = ref span50[2]; + QuestStep obj72 = 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 }; - 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 + 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 { DataId = 12u, MinimumKillCount = 8u }; - 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 + 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 { DataId = 39u, MinimumKillCount = 8u }; - 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 + 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 { AetheryteShortcutIf = new SkipAetheryteCondition { @@ -8434,21 +7023,18 @@ public static class AssemblyQuestLoader AetheryteLocked = EAetheryteLocation.EastShroudHawthorneHut } }; - reference73 = obj69; - obj68.Steps = list95; - reference72 = obj68; - num++; - ref QuestSequence reference76 = ref span81[num]; - QuestSequence obj72 = new QuestSequence + reference77 = obj72; + obj71.Steps = list101; + reference76 = obj71; + ref QuestSequence reference80 = ref span39[5]; + QuestSequence obj75 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -8457,66 +7043,56 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj72.Steps = list99; - reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span81[num]; - QuestSequence obj73 = new QuestSequence + obj75.Steps = list105; + reference80 = obj75; + ref QuestSequence reference81 = ref span39[6]; + QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - num4 = 0; - span101[num4] = new DialogueChoice + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC002_00067_Q1_000_1") }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -8533,34 +7109,29 @@ public static class AssemblyQuestLoader } } }; - obj75.Steps = list104; - reference79 = obj75; - num++; - ref QuestSequence reference80 = ref span103[num]; - QuestSequence obj76 = new QuestSequence + obj78.Steps = list110; + reference83 = obj78; + ref QuestSequence reference84 = ref span54[1]; + QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 14; - 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) + 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) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -8576,8 +7147,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span106[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + span55[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -8588,192 +7158,34 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference82 = ref span106[index2]; - QuestStep obj78 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.03064f, 9.169003f, 323.19617f), 152) + ref QuestStep reference86 = ref span55[2]; + QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.03064f, 9.169003f, 323.19617f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - 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 + 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 { InSameTerritory = true }; - 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) + 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) { StopDistance = 20f, Action = EAction.HeavyShot @@ -8781,49 +7193,35 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - 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); + 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); obj82.CompletionQuestVariablesFlags = list114; - 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) + 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) { StopDistance = 20f, Action = EAction.HeavyShot @@ -8831,43 +7229,140 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - 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); + 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); obj83.CompletionQuestVariablesFlags = list116; - 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) + 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) { StopDistance = 20f, Action = EAction.HeavyShot }; - obj77.Steps = list106; - reference81 = obj77; - num++; - ref QuestSequence reference92 = ref span103[num]; - QuestSequence obj84 = new QuestSequence + 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 { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -8876,20 +7371,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj84.Steps = list117; - reference92 = obj84; - num++; - ref QuestSequence reference93 = ref span103[num]; - QuestSequence obj85 = new QuestSequence + obj87.Steps = list123; + reference96 = obj87; + ref QuestSequence reference97 = ref span54[4]; + QuestSequence obj88 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -8898,20 +7390,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaYellowSerpentGate } }; - obj85.Steps = list118; - reference93 = obj85; - num++; - ref QuestSequence reference94 = ref span103[num]; - QuestSequence obj86 = new QuestSequence + obj88.Steps = list124; + reference97 = obj88; + ref QuestSequence reference98 = ref span54[5]; + QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -8920,180 +7409,151 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - obj86.Steps = list119; - reference94 = obj86; - num++; - ref QuestSequence reference95 = ref span103[num]; - QuestSequence obj87 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - 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) - }; - obj87.Steps = list120; - reference95 = obj87; - questRoot11.QuestSequence = list103; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(69); - QuestRoot questRoot12 = new QuestRoot(); - num = 1; - 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 - }; - 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 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 - }; - 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 - }; - obj89.Steps = list124; - reference97 = obj89; - num++; - ref QuestSequence reference98 = ref span122[num]; + obj89.Steps = list125; + reference98 = obj89; + ref QuestSequence reference99 = ref span54[6]; QuestSequence obj90 = new QuestSequence { - Sequence = 2 - }; - 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 - }; - obj90.Steps = list125; - reference98 = obj90; - num++; - ref QuestSequence reference99 = ref span122[num]; - QuestSequence obj91 = new QuestSequence - { - Sequence = 3 + Sequence = byte.MaxValue }; num2 = 1; 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) + CollectionsMarshal.AsSpan(list126)[0] = 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(); + 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 + { + 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 + { + 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) { Fly = true }; - obj91.Steps = list126; - reference99 = obj91; - num++; - ref QuestSequence reference100 = ref span122[num]; - QuestSequence obj92 = new QuestSequence + 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) + { + Fly = true + }; + obj92.Steps = list130; + reference101 = obj92; + ref QuestSequence reference102 = ref span66[2]; + QuestSequence obj93 = 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) + { + Fly = true + }; + obj93.Steps = list131; + reference102 = obj93; + ref QuestSequence reference103 = ref span66[3]; + QuestSequence obj94 = 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) + { + Fly = true + }; + obj94.Steps = list132; + reference103 = obj94; + ref QuestSequence reference104 = ref span66[4]; + QuestSequence obj95 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span127[num2] = new QuestStep(EInteractionType.Interact, 2004655u, new Vector3(-386.1906f, 270.46606f, 77.62268f), 155) + span68[1] = new QuestStep(EInteractionType.Interact, 2004655u, new Vector3(-386.1906f, 270.46606f, 77.62268f), 155) { Fly = true }; - obj92.Steps = list127; - reference100 = obj92; - num++; - ref QuestSequence reference101 = ref span122[num]; - QuestSequence obj93 = new QuestSequence + obj95.Steps = list133; + reference104 = obj95; + ref QuestSequence reference105 = ref span66[5]; + QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { Fly = true }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -9110,20 +7570,18 @@ public static class AssemblyQuestLoader } } }; - obj94.Steps = list131; - reference102 = obj94; - num++; - ref QuestSequence reference103 = ref span130[num]; - QuestSequence obj95 = new QuestSequence + obj97.Steps = list137; + reference106 = obj97; + ref QuestSequence reference107 = ref span70[1]; + QuestSequence obj98 = new QuestSequence { Sequence = 1 }; num2 = 2; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -9135,162 +7593,125 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 2 }; - 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); + 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); num3 = 6; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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); + 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); num3 = 2; - List list138 = new List(num3); - CollectionsMarshal.SetCount(list138, num3); - Span span138 = CollectionsMarshal.AsSpan(list138); - num4 = 0; - span138[num4] = new DialogueChoice + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + Span span76 = CollectionsMarshal.AsSpan(list144); + span76[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC004_00070_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSARC004_00070_A1_000_1") }; - num4++; - span138[num4] = new DialogueChoice + span76[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC004_00070_Q2_000_1"), Answer = new ExcelRef("TEXT_CLSARC004_00070_A2_000_3") }; - questStep14.DialogueChoices = list138; - reference109 = questStep14; - obj97.Steps = list137; - reference108 = obj97; - num++; - ref QuestSequence reference110 = ref span130[num]; - QuestSequence obj98 = new QuestSequence + questStep15.DialogueChoices = list144; + reference113 = questStep15; + obj100.Steps = list143; + reference112 = obj100; + ref QuestSequence reference114 = ref span70[4]; + QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = 5 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -9301,35 +7722,29 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(71) }; - obj100.Steps = list141; - reference112 = obj100; - questRoot13.QuestSequence = list130; - AddQuest(questId13, questRoot13); - AlliedSocietyDailyId questId14 = new AlliedSocietyDailyId(7, 0); - QuestRoot questRoot14 = new QuestRoot(); + obj103.Steps = list147; + reference116 = obj103; + questRoot14.QuestSequence = list136; + AddQuest(questId14, questRoot14); + AlliedSocietyDailyId questId15 = new AlliedSocietyDailyId(7, 0); + QuestRoot questRoot15 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -9341,35 +7756,30 @@ public static class AssemblyQuestLoader } } }; - obj101.Steps = list144; - reference113 = obj101; - questRoot14.QuestSequence = list143; - AddQuest(questId14, questRoot14); - QuestId questId15 = new QuestId(71); - QuestRoot questRoot15 = new QuestRoot(); + obj104.Steps = list150; + reference117 = obj104; + questRoot15.QuestSequence = list149; + AddQuest(questId15, questRoot15); + QuestId questId16 = new QuestId(71); + QuestRoot questRoot16 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -9386,80 +7796,67 @@ public static class AssemblyQuestLoader } } }; - obj102.Steps = list147; - reference114 = obj102; - num++; - ref QuestSequence reference115 = ref span146[num]; - QuestSequence obj103 = new QuestSequence + obj105.Steps = list153; + reference118 = obj105; + ref QuestSequence reference119 = ref span78[1]; + QuestSequence obj106 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - num4 = 1; - List list151 = new List(num4); - CollectionsMarshal.SetCount(list151, num4); - Span span151 = CollectionsMarshal.AsSpan(list151); - num3 = 0; - span151[num3] = new DialogueChoice + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSARC005_00071_Q1_000_1"), Answer = new ExcelRef("TEXT_CLSARC005_00071_A1_000_1") }; - obj106.DialogueChoices = list151; - reference118 = obj106; - obj105.Steps = list150; - reference117 = obj105; - num++; - ref QuestSequence reference119 = ref span146[num]; - QuestSequence obj107 = new QuestSequence + obj109.DialogueChoices = list157; + reference122 = obj109; + obj108.Steps = list156; + reference121 = obj108; + ref QuestSequence reference123 = ref span78[4]; + QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -9470,25 +7867,21 @@ public static class AssemblyQuestLoader } } }; - num2++; - span152[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000534u, new Vector3(134.47766f, -7f, -69.993164f), 148) + span79[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000534u, new Vector3(134.47766f, -7f, -69.993164f), 148) { Fly = true }; - obj107.Steps = list152; - reference119 = obj107; - num++; - ref QuestSequence reference120 = ref span146[num]; - QuestSequence obj108 = new QuestSequence + obj110.Steps = list158; + reference123 = obj110; + ref QuestSequence reference124 = ref span78[5]; + QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -9499,222 +7892,182 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(76) }; - obj108.Steps = list153; - reference120 = obj108; - questRoot15.QuestSequence = list146; - AddQuest(questId15, questRoot15); - QuestId questId16 = new QuestId(74); - QuestRoot questRoot16 = new QuestRoot(); + obj111.Steps = list159; + reference124 = obj111; + questRoot16.QuestSequence = list152; + AddQuest(questId16, questRoot16); + QuestId questId17 = new QuestId(74); + QuestRoot questRoot17 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 5; - 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) + 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) { Fly = true }; - 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) + 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) { Fly = true }; - index2++; - span157[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + span81[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - index2++; - ref QuestStep reference123 = ref span157[index2]; - QuestStep obj111 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.5987f, 231.30257f, 306.35776f), 155) + ref QuestStep reference127 = ref span81[4]; + QuestStep obj114 = 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 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 + 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 { Sequence = 2 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 4; - 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) + 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) { Fly = true }; - index2++; - span160[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) + span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.32645f, 262.82175f, 64.73429f), 155) { Fly = true }; - index2++; - span160[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) + span83[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.22275f, 265.1f, -206.5006f), 155) { Fly = true }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 3; - 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) + 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) { Fly = true }; - 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) + 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) { Fly = true }; - obj115.Steps = list164; - reference127 = obj115; - num++; - ref QuestSequence reference128 = ref span162[num]; - QuestSequence obj116 = new QuestSequence + obj118.Steps = list170; + reference131 = obj118; + ref QuestSequence reference132 = ref span84[2]; + QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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 + 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 { Sequence = 4 }; - 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) + num2 = 1; + List list173 = new List(num2); + CollectionsMarshal.SetCount(list173, num2); + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -9722,54 +8075,45 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 27u } }; - obj118.Steps = list167; - reference130 = obj118; - num++; - span162[num] = new QuestSequence + obj121.Steps = list173; + reference134 = obj121; + span84[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference131 = ref span162[num]; - QuestSequence obj119 = new QuestSequence + ref QuestSequence reference135 = ref span84[6]; + QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -9786,38 +8130,32 @@ public static class AssemblyQuestLoader } } }; - obj120.Steps = list171; - reference132 = obj120; - num++; - ref QuestSequence reference133 = ref span170[num]; - QuestSequence obj121 = new QuestSequence + obj123.Steps = list177; + reference136 = obj123; + ref QuestSequence reference137 = ref span86[1]; + QuestSequence obj124 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj121.Steps = list172; - reference133 = obj121; - num++; - ref QuestSequence reference134 = ref span170[num]; - QuestSequence obj122 = new QuestSequence + obj124.Steps = list178; + reference137 = obj124; + ref QuestSequence reference138 = ref span86[2]; + QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -9825,20 +8163,17 @@ public static class AssemblyQuestLoader Index = 1 } }; - obj122.Steps = list173; - reference134 = obj122; - num++; - ref QuestSequence reference135 = ref span170[num]; - QuestSequence obj123 = new QuestSequence + obj125.Steps = list179; + reference138 = obj125; + ref QuestSequence reference139 = ref span86[3]; + QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -9849,242 +8184,199 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(1085) }; - obj123.Steps = list174; - reference135 = obj123; - questRoot18.QuestSequence = list170; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(77); - QuestRoot questRoot19 = new QuestRoot(); + obj126.Steps = list180; + reference139 = obj126; + questRoot19.QuestSequence = list176; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(77); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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) + 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) { Fly = true }; - obj126.Steps = list179; - reference138 = obj126; - num++; - ref QuestSequence reference139 = ref span176[num]; - QuestSequence obj127 = new QuestSequence + obj129.Steps = list185; + reference142 = obj129; + ref QuestSequence reference143 = ref span87[3]; + QuestSequence obj130 = new QuestSequence { Sequence = 3 }; num2 = 3; - 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) + 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) { Fly = true }; - index2++; - span180[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) + span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-480.23077f, 296.2006f, 146.4662f), 155) { Fly = true }; - index2++; - span180[index2] = new QuestStep(EInteractionType.Interact, 2004657u, new Vector3(-395.31555f, 239.61243f, 343.83154f), 155) + span88[2] = new QuestStep(EInteractionType.Interact, 2004657u, new Vector3(-395.31555f, 239.61243f, 343.83154f), 155) { Fly = true }; - obj127.Steps = list180; - reference139 = obj127; - num++; - ref QuestSequence reference140 = ref span176[num]; - QuestSequence obj128 = new QuestSequence + obj130.Steps = list186; + reference143 = obj130; + ref QuestSequence reference144 = ref span87[4]; + QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - obj128.Steps = list181; - reference140 = obj128; - num++; - ref QuestSequence reference141 = ref span176[num]; - QuestSequence obj129 = new QuestSequence + obj131.Steps = list187; + reference144 = obj131; + ref QuestSequence reference145 = ref span87[5]; + QuestSequence obj132 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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) + 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) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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 + 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 { Sequence = 6 }; - 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 + 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 { Sequence = 7 }; num2 = 1; - 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) + 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) { Fly = true }; - obj132.Steps = list185; - reference144 = obj132; - num++; - ref QuestSequence reference145 = ref span176[num]; - QuestSequence obj133 = new QuestSequence + obj135.Steps = list191; + reference148 = obj135; + ref QuestSequence reference149 = ref span87[8]; + QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -10093,411 +8385,336 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj136.Steps = list191; - reference148 = obj136; - num++; - ref QuestSequence reference149 = ref span188[num]; - QuestSequence obj137 = new QuestSequence - { - Sequence = 3 - }; - 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 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") - }; - 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 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 - }; - 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 - }; - num2++; - span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132); - obj139.Steps = list195; + obj139.Steps = list197; 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]; + ref QuestSequence reference153 = ref span90[3]; QuestSequence obj140 = new QuestSequence { - Sequence = 0 + Sequence = 3 }; 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); + ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list198)[0]; + QuestStep questStep16 = 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 + { + Type = EDialogChoiceType.YesNo, + Prompt = new ExcelRef("TEXT_GAIUSE410_00078_Q1_000_1") + }; + questStep16.DialogueChoices = list199; + reference154 = questStep16; obj140.Steps = list198; reference153 = obj140; - num++; - ref QuestSequence reference154 = ref span197[num]; + ref QuestSequence reference155 = ref span90[4]; 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 + Sequence = 4 }; 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 + 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 { 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) + 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) { - Fly = true + TargetTerritoryId = (ushort)132 }; - 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; + span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132); + obj142.Steps = list201; + reference156 = obj142; + questRoot21.QuestSequence = list194; AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(84); + QuestId questId22 = new QuestId(82); QuestRoot questRoot22 = new QuestRoot(); num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list202)[0] = "JerryWester"; questRoot22.Author = list202; - 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 + 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 { Sequence = 0 }; num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - 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 + 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 { Sequence = 1 }; - 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) + 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) { - Fly = true, - AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead + TargetTerritoryId = (ushort)351 }; - obj145.Steps = list205; - reference158 = obj145; - num++; - ref QuestSequence reference159 = ref span203[num]; - QuestSequence obj146 = new QuestSequence + 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 { Sequence = 2 }; num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - 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]; + 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]; 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 }; - 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 + 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 { Sequence = 4 }; num2 = 1; - 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) + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 79u } }; - obj148.Steps = list208; - reference161 = obj148; - num++; - span203[num] = new QuestSequence + obj151.Steps = list214; + reference165 = obj151; + span95[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference162 = ref span203[num]; - QuestSequence obj149 = new QuestSequence + ref QuestSequence reference166 = ref span95[6]; + QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Gridania }; - 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) + 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) { Aetheryte = EAetheryteLocation.Gridania }; - num2++; - span213[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + span97[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - num2++; - span213[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + span97[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - num2++; - span213[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + span97[4] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; - num2++; - span213[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span97[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - num2++; - span213[num2] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) + span97[8] = new QuestStep(EInteractionType.Interact, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { Comment = "Lancer Receptionist" }; - obj151.Steps = list213; - reference164 = obj151; - num++; - ref QuestSequence reference166 = ref span211[num]; - QuestSequence obj153 = new QuestSequence + obj154.Steps = list219; + reference168 = obj154; + ref QuestSequence reference170 = ref span96[2]; + QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 8; - 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) + 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) { Disabled = true, Comment = "Pick up Class Quest" }; - index2++; - span215[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span99[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -10506,15 +8723,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - index2++; - span215[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span99[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -10523,8 +8737,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - index2++; - span215[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + span99[5] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -10537,8 +8750,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span215[index2] = new QuestStep(EInteractionType.None, null, null, 133) + span99[6] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -10546,8 +8758,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span99[7] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -10555,133 +8766,112 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - obj153.Steps = list215; - reference166 = obj153; - questRoot23.QuestSequence = list211; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(86); - QuestRoot questRoot24 = new QuestRoot(); + obj156.Steps = list221; + reference170 = obj156; + questRoot24.QuestSequence = list217; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(86); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) { Fly = true }; - 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 + 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 { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { Mount = true }; num3 = 1; - List list222 = new List(num3); - CollectionsMarshal.SetCount(list222, num3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num4 = 0; - span222[num4] = new DialogueChoice + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE416_00086_FORTEMPSGUARD00054_Q1_000_1") }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -10692,176 +8882,148 @@ public static class AssemblyQuestLoader } } }; - obj159.Steps = list225; - reference172 = obj159; - num++; - ref QuestSequence reference173 = ref span224[num]; - QuestSequence obj160 = new QuestSequence + obj162.Steps = list231; + reference176 = obj162; + ref QuestSequence reference177 = ref span103[1]; + QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span226[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span104[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - 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 + 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 { Sequence = 2 }; - 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 - }; - obj163.Steps = list231; - reference176 = obj163; - num++; - ref QuestSequence reference177 = ref span228[num]; - QuestSequence obj164 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; - 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 obj166 = new SinglePlayerDutyOptions - { - Enabled = true - }; - 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 - }; - 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 - }; - obj167.Steps = list234; - reference179 = obj167; - questRoot26.QuestSequence = list228; - AddQuest(questId26, questRoot26); - QuestId questId27 = new QuestId(89); - QuestRoot questRoot27 = new QuestRoot(); - num = 1; - 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 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) + CollectionsMarshal.AsSpan(list237)[0] = 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 + { + 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) + { + Fly = true, + AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant + }; + SinglePlayerDutyOptions obj169 = 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 + { + 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) + { + StopDistance = 5f + }; + obj170.Steps = list240; + reference183 = obj170; + questRoot27.QuestSequence = list234; + AddQuest(questId27, questRoot27); + QuestId questId28 = new QuestId(89); + QuestRoot questRoot28 = 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 + { + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -10873,141 +9035,120 @@ public static class AssemblyQuestLoader } } }; - obj168.Steps = list237; - reference180 = obj168; - num++; - ref QuestSequence reference181 = ref span236[num]; - QuestSequence obj169 = new QuestSequence + obj171.Steps = list243; + reference184 = obj171; + ref QuestSequence reference185 = ref span108[1]; + QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span238[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span109[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - 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 + 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 { Sequence = 2 }; num2 = 3; - 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) + 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) { Fly = true }; - index2++; - span243[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) + span112[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) { Fly = false }; - index2++; - span243[index2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155) + span112[2] = new QuestStep(EInteractionType.Interact, 1010054u, new Vector3(-916.6552f, 229.3692f, -6.4240723f), 155) { Fly = true }; - obj172.Steps = list243; - reference184 = obj172; - num++; - ref QuestSequence reference185 = ref span240[num]; - QuestSequence obj173 = new QuestSequence + obj175.Steps = list249; + reference188 = obj175; + ref QuestSequence reference189 = ref span110[3]; + QuestSequence obj176 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 80u } }; - obj173.Steps = list244; - reference185 = obj173; - num++; - ref QuestSequence reference186 = ref span240[num]; - QuestSequence obj174 = new QuestSequence + obj176.Steps = list250; + reference189 = obj176; + ref QuestSequence reference190 = ref span110[4]; + QuestSequence obj177 = new QuestSequence { Sequence = 4 }; num2 = 2; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -11019,65 +9160,54 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -11086,35 +9216,31 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions14 = new SkipConditions(); - SkipAetheryteCondition obj178 = new SkipAetheryteCondition + SkipConditions skipConditions16 = new SkipConditions(); + SkipAetheryteCondition obj181 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -11130,8 +9256,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span251[num2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152) + span116[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -11143,94 +9268,77 @@ public static class AssemblyQuestLoader } } }; - obj179.Steps = list251; - reference190 = obj179; - num++; - ref QuestSequence reference191 = ref span248[num]; - QuestSequence obj180 = new QuestSequence + obj182.Steps = list257; + reference194 = obj182; + ref QuestSequence reference195 = ref span115[2]; + QuestSequence obj183 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj183.Steps = list255; - reference194 = obj183; - num++; - ref QuestSequence reference195 = ref span248[num]; - QuestSequence obj184 = new QuestSequence + obj186.Steps = list261; + reference198 = obj186; + ref QuestSequence reference199 = ref span115[5]; + QuestSequence obj187 = new QuestSequence { Sequence = 5 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -11240,36 +9348,31 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(92) }; - obj185.Steps = list257; - reference196 = obj185; - questRoot29.QuestSequence = list248; - AddQuest(questId29, questRoot29); - QuestId questId30 = new QuestId(92); - QuestRoot questRoot30 = new QuestRoot(); + obj188.Steps = list263; + reference200 = obj188; + questRoot30.QuestSequence = list254; + AddQuest(questId30, questRoot30); + QuestId questId31 = new QuestId(92); + QuestRoot questRoot31 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -11278,36 +9381,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions15 = new SkipConditions(); - SkipAetheryteCondition obj188 = new SkipAetheryteCondition + SkipConditions skipConditions17 = new SkipConditions(); + SkipAetheryteCondition obj191 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - 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 + 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 { Sequence = 1 }; num2 = 4; - 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) + 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) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -11316,21 +9415,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - 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) + 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) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -11341,8 +9437,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-276.804f, 11.2529f, 366.10303f), 152) + span118[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-276.804f, 11.2529f, 366.10303f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -11354,128 +9449,104 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference201 = ref span262[index2]; - QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2000889u, new Vector3(-276.93604f, 11.734131f, 367.20825f), 152) + ref QuestStep reference205 = ref span118[3]; + QuestStep obj194 = new QuestStep(EInteractionType.Combat, 2000889u, new Vector3(-276.93604f, 11.734131f, 367.20825f), 152) { ItemId = 2000121u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; num3 = 1; - 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 + 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 { Sequence = 2 }; - 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) + 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) { Fly = true }; - 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) + 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) { DisableNavmesh = true }; - 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 + 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 { Sequence = 3 }; num2 = 5; - 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) + 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) { Mount = true }; - index2++; - span266[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152) + span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.34848f, 3.5425713f, 285.89532f), 152) { DisableNavmesh = true }; - 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) + 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) { Fly = true }; - 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 + 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 { Sequence = 4 }; - 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) + 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) { Action = EAction.Cure }; - obj194.Steps = list267; - reference204 = obj194; - num++; - ref QuestSequence reference205 = ref span259[num]; - QuestSequence obj195 = new QuestSequence + obj197.Steps = list273; + reference208 = obj197; + ref QuestSequence reference209 = ref span117[5]; + QuestSequence obj198 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj195.Steps = list268; - reference205 = obj195; - num++; - ref QuestSequence reference206 = ref span259[num]; - QuestSequence obj196 = new QuestSequence + obj198.Steps = list274; + reference209 = obj198; + ref QuestSequence reference210 = ref span117[6]; + QuestSequence obj199 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -11483,34 +9554,28 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj196.Steps = list269; - reference206 = obj196; - num++; - ref QuestSequence reference207 = ref span259[num]; - QuestSequence obj197 = new QuestSequence + obj199.Steps = list275; + reference210 = obj199; + ref QuestSequence reference211 = ref span117[7]; + QuestSequence obj200 = new QuestSequence { Sequence = 7 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -11520,36 +9585,31 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(93) }; - obj198.Steps = list271; - reference208 = obj198; - questRoot30.QuestSequence = list259; - AddQuest(questId30, questRoot30); - QuestId questId31 = new QuestId(93); - QuestRoot questRoot31 = new QuestRoot(); + obj201.Steps = list277; + reference212 = obj201; + questRoot31.QuestSequence = list265; + AddQuest(questId31, questRoot31); + QuestId questId32 = new QuestId(93); + QuestRoot questRoot32 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -11558,159 +9618,130 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipAetheryteCondition obj201 = new SkipAetheryteCondition + SkipConditions skipConditions19 = new SkipConditions(); + SkipAetheryteCondition obj204 = new SkipAetheryteCondition { InSameTerritory = true }; - 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 + 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 { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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 + 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 { Sequence = 3 }; - 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 - }; - 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 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 - }; - 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) + 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) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - 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]; + 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 + { + 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 + { + 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) + { + 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 { Sequence = 6 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -11720,10 +9751,10 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(440) }; - obj211.Steps = list285; - reference220 = obj211; - questRoot31.QuestSequence = list273; - AddQuest(questId31, questRoot31); + obj214.Steps = list291; + reference224 = obj214; + questRoot32.QuestSequence = list279; + AddQuest(questId32, questRoot32); } private static void LoadQuests2() @@ -11733,16 +9764,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 8; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 8; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -11750,9 +9778,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -11765,25 +9791,21 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -11791,26 +9813,21 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1009831u, new Vector3(-58.487915f, 3.4366195f, -645.655f), 156) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1009831u, new Vector3(-58.487915f, 3.4366195f, -645.655f), 156) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref QuestStep reference5 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -11818,19 +9835,15 @@ public static class AssemblyQuestLoader int num3 = 3; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - int num4 = 0; - span7[num4] = 3565u; - num4++; - span7[num4] = 4619u; - num4++; - span7[num4] = 5044u; + Span span2 = CollectionsMarshal.AsSpan(list7); + span2[0] = 3565u; + span2[1] = 4619u; + span2[2] = 5044u; obj5.KillEnemyDataIds = list7; reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -11838,27 +9851,21 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156); + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1009835u, new Vector3(-103.379944f, -1.3236009f, -615.9304f), 156); obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[6]; QuestSequence obj8 = new QuestSequence { Sequence = 6 @@ -11866,23 +9873,18 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 1009839u, new Vector3(-95.780945f, -0.42092213f, -625.6962f), 156); + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1009839u, new Vector3(-95.780945f, -0.42092213f, -625.6962f), 156); obj8.Steps = list10; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[7]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -11895,16 +9897,12 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list12)[0] = "Cacahuetes"; questRoot2.Author = list12; - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference10 = ref span13[num]; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + ref QuestSequence reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -11912,9 +9910,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - ref QuestStep reference11 = ref span14[index2]; + ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -11931,12 +9927,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - Span span15 = CollectionsMarshal.AsSpan(list15); - num3 = 0; - span15[num3] = new DialogueChoice + num3 = 1; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSROG001_00101_Q1_000_040") @@ -11953,30 +9947,24 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list16)[0] = "Cacahuetes"; questRoot3.Author = list16; - index = 2; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 2; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span3 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span3[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span3[1]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -11984,14 +9972,12 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span4 = CollectionsMarshal.AsSpan(list19); + span4[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129 }; - index2++; - ref QuestStep reference14 = ref span19[index2]; + ref QuestStep reference14 = ref span4[1]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f @@ -11999,9 +9985,7 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSROG011_00102_Q1_000_030") @@ -12018,26 +10002,22 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "liza"; + CollectionsMarshal.AsSpan(list21)[0] = "liza"; questRoot4.Author = list21; - index = 3; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 3; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span5 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span5[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, ItemId = 7952u, @@ -12056,10 +10036,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -12075,15 +10053,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span23[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span6[3] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span22[num]; + ref QuestSequence reference16 = ref span5[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -12091,28 +10067,24 @@ public static class AssemblyQuestLoader num2 = 4; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - ref QuestStep reference17 = ref span24[index2]; + Span span7 = CollectionsMarshal.AsSpan(list24); + ref QuestStep reference17 = ref span7[0]; 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(); - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - span25[num3] = 134; + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = 134; skipStepConditions.InTerritory = list25; skipStepConditions.ExtraCondition = EExtraSkipCondition.NotRoguesGuild; skipConditions.StepIf = skipStepConditions; obj17.SkipConditions = skipConditions; reference17 = obj17; - index2++; - ref QuestStep reference18 = ref span24[index2]; + ref QuestStep reference18 = ref span7[1]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -12125,53 +10097,38 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span26 = CollectionsMarshal.AsSpan(list26); - num4 = 0; - ref ComplexCombatData reference19 = ref span26[num4]; + ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; ComplexCombatData obj19 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - 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; + 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; obj19.CompletionQuestVariablesFlags = list27; reference19 = obj19; obj18.ComplexCombatData = list26; - 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; + 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; obj18.CompletionQuestVariablesFlags = list28; reference18 = obj18; - index2++; - ref QuestStep reference20 = ref span24[index2]; + ref QuestStep reference20 = ref span7[2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -12179,53 +10136,38 @@ public static class AssemblyQuestLoader num3 = 1; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num4 = 0; - ref ComplexCombatData reference21 = ref span29[num4]; + ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list29)[0]; ComplexCombatData obj21 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 3u }; - 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; + 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; obj21.CompletionQuestVariablesFlags = list30; reference21 = obj21; obj20.ComplexCombatData = list29; - 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; + 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; obj20.CompletionQuestVariablesFlags = list31; reference20 = obj20; - index2++; - ref QuestStep reference22 = ref span24[index2]; + ref QuestStep reference22 = ref span7[3]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(5.6626997f, 42.625427f, 55.983746f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -12233,65 +10175,49 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num4 = 0; - ref ComplexCombatData reference23 = ref span32[num4]; + ref ComplexCombatData reference23 = ref CollectionsMarshal.AsSpan(list32)[0]; ComplexCombatData obj23 = new ComplexCombatData { DataId = 383u, MinimumKillCount = 3u }; - 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; + 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; obj23.CompletionQuestVariablesFlags = list33; reference23 = obj23; obj22.ComplexCombatData = list32; - 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; + 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; obj22.CompletionQuestVariablesFlags = list34; reference22 = obj22; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference24 = ref span22[num]; + ref QuestSequence reference24 = ref span5[2]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -12301,8 +10227,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num2++; - span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(110) @@ -12316,16 +10241,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list36)[0] = "Cacahuetes"; questRoot5.Author = list36; - index = 2; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference25 = ref span37[num]; + num = 2; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span15 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference25 = ref span15[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -12333,30 +10255,23 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133); obj25.Steps = list38; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span37[num]; + ref QuestSequence reference26 = ref span15[1]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list39 = new List(index2); - CollectionsMarshal.SetCount(list39, index2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref QuestStep reference27 = ref span39[num2]; + num2 = 1; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; 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); - Span span40 = CollectionsMarshal.AsSpan(list40); - num4 = 0; - span40[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list40)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTAN000_00105_Q1_000_1") @@ -12372,16 +10287,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot6.Author = list41; - index = 3; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference28 = ref span42[num]; + num = 3; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span16 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference28 = ref span16[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -12389,16 +10301,12 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref QuestStep reference29 = ref span43[index2]; + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1001028u, new Vector3(-39.84137f, 19.999994f, -4.9592285f), 181); - num4 = 1; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = new DialogueChoice + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningLimsaLominsa", @@ -12409,25 +10317,20 @@ public static class AssemblyQuestLoader reference29 = questStep2; obj27.Steps = list43; reference28 = obj27; - num++; - ref QuestSequence reference30 = ref span42[num]; + ref QuestSequence reference30 = ref span16[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref QuestStep reference31 = ref span45[num2]; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; 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); - Span span46 = CollectionsMarshal.AsSpan(list46); - num4 = 0; - span46[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA001_00107_Q1_000_1") @@ -12436,8 +10339,7 @@ public static class AssemblyQuestLoader reference31 = questStep3; obj28.Steps = list45; reference30 = obj28; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span16[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -12445,9 +10347,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj29.Steps = list47; reference32 = obj29; questRoot6.QuestSequence = list42; @@ -12457,30 +10357,24 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot7.Author = list48; - index = 3; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference33 = ref span49[num]; + num = 3; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span17 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference33 = ref span17[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj30.Steps = list50; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span49[num]; + ref QuestSequence reference34 = ref span17[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -12488,74 +10382,55 @@ public static class AssemblyQuestLoader num2 = 11; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) + Span span18 = CollectionsMarshal.AsSpan(list51); + span18[0] = new QuestStep(EInteractionType.AcceptQuest, 1002698u, new Vector3(8.499207f, 39.505493f, 3.5552979f), 181) { PickUpQuestId = new QuestId(111) }; - index2++; - ref QuestStep reference35 = ref span51[index2]; + ref QuestStep reference35 = ref span18[1]; QuestStep obj32 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - 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); + 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); obj32.CompletionQuestVariablesFlags = list52; reference35 = obj32; - index2++; - span51[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + span18[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - index2++; - ref QuestStep reference36 = ref span51[index2]; + ref QuestStep reference36 = ref span18[3]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list53; reference36 = questStep4; - index2++; - span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span18[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - index2++; - span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span18[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - index2++; - span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span18[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -12564,8 +10439,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - index2++; - span51[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -12575,60 +10449,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - index2++; - span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span18[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - index2++; - span51[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span18[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - index2++; - ref QuestStep reference37 = ref span51[index2]; + ref QuestStep reference37 = ref span18[10]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { Comment = "MRD Receptionist" }; - 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); + 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); obj33.CompletionQuestVariablesFlags = list54; reference37 = obj33; obj31.Steps = list51; reference34 = obj31; - num++; - ref QuestSequence reference38 = ref span49[num]; + ref QuestSequence reference38 = ref span17[2]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Disabled = true, Comment = "Pick up Class Quest" }; - num2++; - span55[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span22[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle, SkipConditions = new SkipConditions @@ -12636,8 +10498,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + span22[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -12650,8 +10511,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.None, null, null, 134) + span22[3] = new QuestStep(EInteractionType.None, null, null, 134) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -12659,8 +10519,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.None, null, null, 129) + span22[4] = new QuestStep(EInteractionType.None, null, null, 129) { AethernetShortcut = new AethernetShortcut { @@ -12672,8 +10531,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + span22[5] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj34.Steps = list55; reference38 = obj34; questRoot7.QuestSequence = list49; @@ -12683,16 +10541,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot8.Author = list56; - index = 3; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference39 = ref span57[num]; + num = 3; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span23 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference39 = ref span23[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -12700,28 +10555,23 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002697u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 181); obj35.Steps = list58; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span57[num]; + ref QuestSequence reference40 = ref span23[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(111) }; - num2++; - ref QuestStep reference41 = ref span59[num2]; + ref QuestStep reference41 = ref span24[1]; QuestStep obj37 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa @@ -12729,59 +10579,42 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - 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); + 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); obj37.CompletionQuestVariablesFlags = list60; reference41 = obj37; - num2++; - span59[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + span24[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - num2++; - ref QuestStep reference42 = ref span59[num2]; + ref QuestStep reference42 = ref span24[3]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list61; reference42 = questStep5; - num2++; - span59[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span24[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - num2++; - span59[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span24[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - num2++; - ref QuestStep reference43 = ref span59[num2]; + ref QuestStep reference43 = ref span24[6]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { Comment = "ACN Receptionist" @@ -12789,25 +10622,18 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - 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); + 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); obj38.CompletionQuestVariablesFlags = list62; reference43 = obj38; obj36.Steps = list59; reference40 = obj36; - num++; - ref QuestSequence reference44 = ref span57[num]; + ref QuestSequence reference44 = ref span23[2]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -12815,15 +10641,13 @@ public static class AssemblyQuestLoader num2 = 10; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) + Span span28 = CollectionsMarshal.AsSpan(list63); + span28[0] = new QuestStep(EInteractionType.Interact, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { Disabled = true, Comment = "Pick up Class Quest" }; - index2++; - span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span28[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -12832,8 +10656,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -12843,18 +10666,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span28[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - index2++; - span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span28[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - index2++; - span63[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span28[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle, SkipConditions = new SkipConditions @@ -12862,8 +10682,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + span28[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -12876,8 +10695,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.None, null, null, 134) + span28[7] = new QuestStep(EInteractionType.None, null, null, 134) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -12885,8 +10703,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.None, null, null, 129) + span28[8] = new QuestStep(EInteractionType.None, null, null, 129) { AethernetShortcut = new AethernetShortcut { @@ -12898,8 +10715,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + span28[9] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj39.Steps = list63; reference44 = obj39; questRoot8.QuestSequence = list57; @@ -12909,26 +10725,22 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot9.Author = list64; - index = 10; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference45 = ref span65[num]; + num = 10; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span29 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference45 = ref span29[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -12949,15 +10761,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span30[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj40.Steps = list66; reference45 = obj40; - num++; - ref QuestSequence reference46 = ref span65[num]; + ref QuestSequence reference46 = ref span29[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -12965,44 +10775,37 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) { StopDistance = 7f }; obj41.Steps = list67; reference46 = obj41; - num++; - ref QuestSequence reference47 = ref span65[num]; + ref QuestSequence reference47 = ref span29[2]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list68 = new List(index2); - CollectionsMarshal.SetCount(list68, index2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref QuestStep reference48 = ref span68[num2]; + num2 = 2; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + Span span31 = CollectionsMarshal.AsSpan(list68); + ref QuestStep reference48 = ref span31[0]; 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(); - num4 = 1; - List list69 = new List(num4); - CollectionsMarshal.SetCount(list69, num4); - Span span69 = CollectionsMarshal.AsSpan(list69); - num3 = 0; - span69[num3] = 135; + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = 135; skipStepConditions2.InTerritory = list69; skipConditions2.StepIf = skipStepConditions2; obj43.SkipConditions = skipConditions2; reference48 = obj43; - num2++; - ref QuestStep reference49 = ref span68[num2]; + ref QuestStep reference49 = ref span31[1]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(174.3623f, 39.811382f, 52.27733f), 135) { Fly = true, @@ -13016,15 +10819,12 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num4 = 0; - span70[num4] = 324u; + CollectionsMarshal.AsSpan(list70)[0] = 324u; obj44.KillEnemyDataIds = list70; reference49 = obj44; obj42.Steps = list68; reference47 = obj42; - num++; - ref QuestSequence reference50 = ref span65[num]; + ref QuestSequence reference50 = ref span29[3]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -13032,9 +10832,8 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span32 = CollectionsMarshal.AsSpan(list71); + span32[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13055,25 +10854,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span71[index2] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) + span32[1] = new QuestStep(EInteractionType.Interact, 1010197u, new Vector3(-150.98804f, -129.4397f, 266.31567f), 129) { StopDistance = 7f }; obj45.Steps = list71; reference50 = obj45; - num++; - ref QuestSequence reference51 = ref span65[num]; + ref QuestSequence reference51 = ref span29[4]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)129, SkipConditions = new SkipConditions @@ -13084,8 +10880,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference52 = ref span72[num2]; + ref QuestStep reference52 = ref span33[1]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128) { AethernetShortcut = new AethernetShortcut @@ -13094,12 +10889,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num4 = 1; - List list73 = new List(num4); - CollectionsMarshal.SetCount(list73, num4); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = new DialogueChoice + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSROG050_00110_Q1_000_061"), @@ -13109,8 +10902,7 @@ public static class AssemblyQuestLoader reference52 = obj47; obj46.Steps = list72; reference51 = obj46; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span29[5]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -13118,9 +10910,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -13131,18 +10921,15 @@ public static class AssemblyQuestLoader }; obj48.Steps = list74; reference53 = obj48; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span29[6]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list75 = new List(index2); - CollectionsMarshal.SetCount(list75, index2); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref QuestStep reference55 = ref span75[num2]; + num2 = 1; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(101.76026f, 48.69752f, 10.89893f), 134) { Fly = true, @@ -13151,15 +10938,12 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num4 = 0; - span76[num4] = 769u; + CollectionsMarshal.AsSpan(list76)[0] = 769u; obj50.KillEnemyDataIds = list76; reference55 = obj50; obj49.Steps = list75; reference54 = obj49; - num++; - ref QuestSequence reference56 = ref span65[num]; + ref QuestSequence reference56 = ref span29[7]; QuestSequence obj51 = new QuestSequence { Sequence = 7 @@ -13167,23 +10951,19 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1010206u, new Vector3(107.71338f, 47.783855f, 50.736206f), 134); obj51.Steps = list77; reference56 = obj51; - num++; - ref QuestSequence reference57 = ref span65[num]; + ref QuestSequence reference57 = ref span29[8]; QuestSequence obj52 = new QuestSequence { Sequence = 8 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13204,15 +10984,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span78[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span34[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj52.Steps = list78; reference57 = obj52; - num++; - ref QuestSequence reference58 = ref span65[num]; + ref QuestSequence reference58 = ref span29[9]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -13220,9 +10998,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(126) @@ -13236,30 +11012,24 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot10.Author = list80; - index = 4; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference59 = ref span81[num]; + num = 4; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span35 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference59 = ref span35[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj54.Steps = list82; reference59 = obj54; - num++; - ref QuestSequence reference60 = ref span81[num]; + ref QuestSequence reference60 = ref span35[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -13267,16 +11037,12 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference61 = ref span83[index2]; + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list83)[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000969u, new Vector3(7.9193726f, 40.000175f, 17.471558f), 181); - num4 = 1; - List list84 = new List(num4); - CollectionsMarshal.SetCount(list84, num4); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = new DialogueChoice + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "quest/001/ManSea001_00107", @@ -13286,146 +11052,102 @@ public static class AssemblyQuestLoader reference61 = questStep6; obj55.Steps = list83; reference60 = obj55; - num++; - ref QuestSequence reference62 = ref span81[num]; + ref QuestSequence reference62 = ref span35[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - index2 = 6; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference63 = ref span85[num2]; + num2 = 6; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span36 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference63 = ref span36[0]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list86; reference63 = questStep7; - num2++; - ref QuestStep reference64 = ref span85[num2]; + ref QuestStep reference64 = ref span36[1]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001564u, new Vector3(-3.0671387f, 20.004517f, 9.964111f), 129); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list87; reference64 = questStep8; - num2++; - ref QuestStep reference65 = ref span85[num2]; + ref QuestStep reference65 = ref span36[2]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list88; reference65 = questStep9; - num2++; - ref QuestStep reference66 = ref span85[num2]; + ref QuestStep reference66 = ref span36[3]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2001566u, new Vector3(-18.32611f, 20.004517f, 1.7241821f), 129); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list89; reference66 = questStep10; - num2++; - ref QuestStep reference67 = ref span85[num2]; + ref QuestStep reference67 = ref span36[4]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list90; reference67 = questStep11; - num2++; - ref QuestStep reference68 = ref span85[num2]; + ref QuestStep reference68 = ref span36[5]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2001568u, new Vector3(-44.724243f, 20.004517f, -0.5036011f), 129); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list91; reference68 = questStep12; obj56.Steps = list85; reference62 = obj56; - num++; - ref QuestSequence reference69 = ref span81[num]; + ref QuestSequence reference69 = ref span35[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -13433,9 +11155,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003604u, new Vector3(-60.44104f, 18.00033f, -4.348877f), 129); obj57.Steps = list92; reference69 = obj57; questRoot10.QuestSequence = list81; @@ -13445,30 +11165,24 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "liza"; + CollectionsMarshal.AsSpan(list93)[0] = "liza"; questRoot11.Author = list93; - index = 3; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference70 = ref span94[num]; + num = 3; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span43 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference70 = ref span43[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj58.Steps = list95; reference70 = obj58; - num++; - ref QuestSequence reference71 = ref span94[num]; + ref QuestSequence reference71 = ref span43[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -13476,23 +11190,18 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1003274u, new Vector3(-110.46008f, 18f, 15.701477f), 129); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1003274u, new Vector3(-110.46008f, 18f, 15.701477f), 129); obj59.Steps = list96; reference71 = obj59; - num++; - ref QuestSequence reference72 = ref span94[num]; + ref QuestSequence reference72 = ref span43[2]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj60.Steps = list97; reference72 = obj60; questRoot11.QuestSequence = list94; @@ -13502,16 +11211,13 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "liza"; + CollectionsMarshal.AsSpan(list98)[0] = "liza"; questRoot12.Author = list98; - index = 3; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference73 = ref span99[num]; + num = 3; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span44 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference73 = ref span44[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -13519,23 +11225,18 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129); + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129); obj61.Steps = list100; reference73 = obj61; - num++; - ref QuestSequence reference74 = ref span99[num]; + ref QuestSequence reference74 = ref span44[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -13545,8 +11246,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list101; reference74 = obj62; - num++; - ref QuestSequence reference75 = ref span99[num]; + ref QuestSequence reference75 = ref span44[2]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -13554,9 +11254,7 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129) + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001209u, new Vector3(-103.74609f, 18.500334f, 16.03717f), 129) { AethernetShortcut = new AethernetShortcut { @@ -13573,30 +11271,24 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "liza"; + CollectionsMarshal.AsSpan(list103)[0] = "liza"; questRoot13.Author = list103; - index = 3; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference76 = ref span104[num]; + num = 3; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span45 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference76 = ref span45[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj64.Steps = list105; reference76 = obj64; - num++; - ref QuestSequence reference77 = ref span104[num]; + ref QuestSequence reference77 = ref span45[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -13604,84 +11296,60 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - ref QuestStep reference78 = ref span106[index2]; + Span span46 = CollectionsMarshal.AsSpan(list106); + ref QuestStep reference78 = ref span46[0]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list107; reference78 = questStep13; - index2++; - ref QuestStep reference79 = ref span106[index2]; + ref QuestStep reference79 = ref span46[1]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list108; reference79 = questStep14; - index2++; - ref QuestStep reference80 = ref span106[index2]; + ref QuestStep reference80 = ref span46[2]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list109; reference80 = questStep15; obj65.Steps = list106; reference77 = obj65; - num++; - ref QuestSequence reference81 = ref span104[num]; + ref QuestSequence reference81 = ref span45[2]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj66.Steps = list110; reference81 = obj66; questRoot13.QuestSequence = list104; @@ -13691,16 +11359,13 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "liza"; + CollectionsMarshal.AsSpan(list111)[0] = "liza"; questRoot14.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference82 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span50 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference82 = ref span50[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -13708,23 +11373,18 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000898u, new Vector3(-342.21405f, 12.893799f, 3.4942627f), 129); obj67.Steps = list113; reference82 = obj67; - num++; - ref QuestSequence reference83 = ref span112[num]; + ref QuestSequence reference83 = ref span50[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -13734,8 +11394,7 @@ public static class AssemblyQuestLoader }; obj68.Steps = list114; reference83 = obj68; - num++; - ref QuestSequence reference84 = ref span112[num]; + ref QuestSequence reference84 = ref span50[2]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -13743,9 +11402,7 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) { AethernetShortcut = new AethernetShortcut { @@ -13762,26 +11419,21 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list116)[0] = "UcanPatates"; questRoot15.Author = list116; - index = 4; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference85 = ref span117[num]; + num = 4; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span51 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference85 = ref span51[0]; QuestSequence obj70 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list118)[0]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1000959u, new Vector3(-65.62909f, 41.999985f, -139.45221f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13793,22 +11445,19 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + Span span52 = CollectionsMarshal.AsSpan(list119); + span52[0] = 129; + span52[1] = 128; skipAetheryteCondition.InTerritory = list119; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; obj71.SkipConditions = skipConditions3; reference86 = obj71; obj70.Steps = list118; reference85 = obj70; - num++; - ref QuestSequence reference87 = ref span117[num]; + ref QuestSequence reference87 = ref span51[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -13816,9 +11465,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - ref QuestStep reference88 = ref span120[index2]; + ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list120)[0]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1003603u, new Vector3(20.34021f, 20f, 4.3182373f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13833,11 +11480,9 @@ public static class AssemblyQuestLoader num3 = 2; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num4 = 0; - span121[num4] = 129; - num4++; - span121[num4] = 128; + Span span53 = CollectionsMarshal.AsSpan(list121); + span53[0] = 129; + span53[1] = 128; skipAetheryteCondition2.InTerritory = list121; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions4.AethernetShortcutIf = new SkipAetheryteCondition @@ -13848,104 +11493,82 @@ public static class AssemblyQuestLoader reference88 = obj73; obj72.Steps = list120; reference87 = obj72; - num++; - ref QuestSequence reference89 = ref span117[num]; + ref QuestSequence reference89 = ref span51[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list122 = new List(index2); - CollectionsMarshal.SetCount(list122, index2); - Span span122 = CollectionsMarshal.AsSpan(list122); - num2 = 0; - ref QuestStep reference90 = ref span122[num2]; + num2 = 2; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + Span span54 = CollectionsMarshal.AsSpan(list122); + ref QuestStep reference90 = ref span54[0]; 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(); - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = 134; + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = 134; skipStepConditions3.InTerritory = list123; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 2; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span124 = CollectionsMarshal.AsSpan(list124); - num4 = 0; - span124[num4] = 134; - num4++; - span124[num4] = 129; + Span span55 = CollectionsMarshal.AsSpan(list124); + span55[0] = 134; + span55[1] = 129; skipAetheryteCondition3.InTerritory = list124; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition3; obj75.SkipConditions = skipConditions5; reference90 = obj75; - num2++; - ref QuestStep reference91 = ref span122[num2]; + ref QuestStep reference91 = ref span54[1]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 338u, new Vector3(130.05261f, 51.719154f, 185.6565f), 134) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span125 = CollectionsMarshal.AsSpan(list125); - num3 = 0; - ref ComplexCombatData reference92 = ref span125[num3]; + num3 = 1; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + ref ComplexCombatData reference92 = ref CollectionsMarshal.AsSpan(list125)[0]; ComplexCombatData obj77 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 4u }; - 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; + 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; obj77.CompletionQuestVariablesFlags = list126; reference92 = obj77; obj76.ComplexCombatData = list125; num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - 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; + 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; obj76.CompletionQuestVariablesFlags = list127; reference91 = obj76; obj74.Steps = list122; reference89 = obj74; - num++; - ref QuestSequence reference93 = ref span117[num]; + ref QuestSequence reference93 = ref span51[3]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -13953,27 +11576,23 @@ public static class AssemblyQuestLoader num2 = 2; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - ref QuestStep reference94 = ref span128[index2]; + Span span58 = CollectionsMarshal.AsSpan(list128); + ref QuestStep reference94 = ref span58[0]; 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(); - num4 = 1; - List list129 = new List(num4); - CollectionsMarshal.SetCount(list129, num4); - Span span129 = CollectionsMarshal.AsSpan(list129); - num3 = 0; - span129[num3] = 134; + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + CollectionsMarshal.AsSpan(list129)[0] = 134; skipStepConditions4.NotInTerritory = list129; skipConditions6.StepIf = skipStepConditions4; obj79.SkipConditions = skipConditions6; reference94 = obj79; - index2++; - ref QuestStep reference95 = ref span128[index2]; + ref QuestStep reference95 = ref span58[1]; QuestStep obj80 = new QuestStep(EInteractionType.CompleteQuest, 1000959u, new Vector3(-65.62909f, 41.999985f, -139.45221f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -13988,11 +11607,9 @@ public static class AssemblyQuestLoader num3 = 2; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - num4 = 0; - span130[num4] = 129; - num4++; - span130[num4] = 128; + Span span59 = CollectionsMarshal.AsSpan(list130); + span59[0] = 129; + span59[1] = 128; skipAetheryteCondition4.InTerritory = list130; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition4; obj80.SkipConditions = skipConditions7; @@ -14006,26 +11623,21 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list131)[0] = "UcanPatates"; questRoot16.Author = list131; - index = 4; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference96 = ref span132[num]; + num = 4; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span60 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference96 = ref span60[0]; QuestSequence obj81 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list133)[0]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1001537u, new Vector3(-58.854065f, 42.299744f, -164.08032f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14037,22 +11649,19 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list134 = new List(num3); + CollectionsMarshal.SetCount(list134, num3); + Span span61 = CollectionsMarshal.AsSpan(list134); + span61[0] = 129; + span61[1] = 128; skipAetheryteCondition5.InTerritory = list134; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition5; obj82.SkipConditions = skipConditions8; reference97 = obj82; obj81.Steps = list133; reference96 = obj81; - num++; - ref QuestSequence reference98 = ref span132[num]; + ref QuestSequence reference98 = ref span60[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -14060,9 +11669,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - ref QuestStep reference99 = ref span135[index2]; + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1000957u, new Vector3(-49.271423f, 43.999977f, -146.37988f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14077,29 +11684,24 @@ public static class AssemblyQuestLoader num3 = 2; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num4 = 0; - span136[num4] = 129; - num4++; - span136[num4] = 128; + Span span62 = CollectionsMarshal.AsSpan(list136); + span62[0] = 129; + span62[1] = 128; skipAetheryteCondition6.InTerritory = list136; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition6; obj84.SkipConditions = skipConditions9; reference99 = obj84; obj83.Steps = list135; reference98 = obj83; - num++; - ref QuestSequence reference100 = ref span132[num]; + ref QuestSequence reference100 = ref span60[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list137 = new List(index2); - CollectionsMarshal.SetCount(list137, index2); - Span span137 = CollectionsMarshal.AsSpan(list137); - num2 = 0; - ref QuestStep reference101 = ref span137[num2]; + num2 = 1; + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list137)[0]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1000937u, new Vector3(-12.222534f, 44.99988f, -251.88074f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14111,22 +11713,19 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition7 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + Span span63 = CollectionsMarshal.AsSpan(list138); + span63[0] = 129; + span63[1] = 128; skipAetheryteCondition7.InTerritory = list138; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition7; obj86.SkipConditions = skipConditions10; reference101 = obj86; obj85.Steps = list137; reference100 = obj85; - num++; - ref QuestSequence reference102 = ref span132[num]; + ref QuestSequence reference102 = ref span60[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -14134,9 +11733,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - ref QuestStep reference103 = ref span139[index2]; + ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list139)[0]; QuestStep obj88 = new QuestStep(EInteractionType.CompleteQuest, 1000957u, new Vector3(-49.271423f, 43.999977f, -146.37988f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14151,11 +11748,9 @@ public static class AssemblyQuestLoader num3 = 2; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span140 = CollectionsMarshal.AsSpan(list140); - num4 = 0; - span140[num4] = 129; - num4++; - span140[num4] = 128; + Span span64 = CollectionsMarshal.AsSpan(list140); + span64[0] = 129; + span64[1] = 128; skipAetheryteCondition8.InTerritory = list140; skipConditions11.AetheryteShortcutIf = skipAetheryteCondition8; obj88.SkipConditions = skipConditions11; @@ -14169,30 +11764,24 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot17.Author = list141; - index = 2; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference104 = ref span142[num]; + num = 2; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span65 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference104 = ref span65[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj89.Steps = list143; reference104 = obj89; - num++; - ref QuestSequence reference105 = ref span142[num]; + ref QuestSequence reference105 = ref span65[1]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -14200,9 +11789,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AethernetShortcut = new AethernetShortcut { @@ -14219,30 +11806,24 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; questRoot18.Author = list145; - index = 3; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference106 = ref span146[num]; + num = 3; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span66 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference106 = ref span66[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj91.Steps = list147; reference106 = obj91; - num++; - ref QuestSequence reference107 = ref span146[num]; + ref QuestSequence reference107 = ref span66[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -14250,88 +11831,70 @@ public static class AssemblyQuestLoader num2 = 7; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - ref QuestStep reference108 = ref span148[index2]; + Span span67 = CollectionsMarshal.AsSpan(list148); + ref QuestStep reference108 = ref span67[0]; QuestStep obj93 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - 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); + 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); obj93.CompletionQuestVariablesFlags = list149; reference108 = obj93; - index2++; - span148[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + span67[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - index2++; - span148[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + span67[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - index2++; - span148[index2] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + span67[3] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { Comment = "Archer Receptionist" }; - index2++; - span148[index2] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) + span67[4] = new QuestStep(EInteractionType.Interact, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { Disabled = true, Comment = "Pick up Class Quest" }; - index2++; - span148[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + span67[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - index2++; - span148[index2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + span67[6] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; obj92.Steps = list148; reference107 = obj92; - num++; - ref QuestSequence reference109 = ref span146[num]; + ref QuestSequence reference109 = ref span66[2]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - num2++; - span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span69[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -14340,15 +11903,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - num2++; - span150[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span69[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -14357,8 +11917,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num2++; - span150[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + span69[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -14371,8 +11930,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span150[num2] = new QuestStep(EInteractionType.None, null, null, 133) + span69[8] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -14380,8 +11938,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span69[9] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -14398,16 +11955,13 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "liza"; + CollectionsMarshal.AsSpan(list151)[0] = "liza"; questRoot19.Author = list151; - index = 3; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference110 = ref span152[num]; + num = 3; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span70 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference110 = ref span70[0]; QuestSequence obj95 = new QuestSequence { Sequence = 0 @@ -14415,23 +11969,19 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001140u, new Vector3(23.788818f, -8f, 115.861694f), 183); obj95.Steps = list153; reference110 = obj95; - num++; - ref QuestSequence reference111 = ref span152[num]; + ref QuestSequence reference111 = ref span70[1]; QuestSequence obj96 = new QuestSequence { Sequence = 1 }; - index2 = 13; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference112 = ref span154[num2]; + num2 = 13; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + Span span71 = CollectionsMarshal.AsSpan(list154); + ref QuestStep reference112 = ref span71[0]; QuestStep obj97 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania @@ -14439,55 +11989,41 @@ public static class AssemblyQuestLoader num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list155; reference112 = obj97; - num2++; - span154[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + span71[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num2++; - span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + span71[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - num2++; - span154[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) + span71[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(102.810745f, 5.4071116f, 12.54738f), 132) { TargetTerritoryId = (ushort)133 }; - num2++; - span154[num2] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) + span71[4] = new QuestStep(EInteractionType.Interact, 1000768u, new Vector3(172.35059f, 15.5f, -89.951965f), 133) { Comment = "TODO Questflags" }; - num2++; - span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span71[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - num2++; - span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span71[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -14496,15 +12032,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - num2++; - span154[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span71[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -14513,15 +12046,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num2++; - span154[num2] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) + span71[12] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { Comment = "Conjurer Receptionist" }; obj96.Steps = list154; reference111 = obj96; - num++; - ref QuestSequence reference113 = ref span152[num]; + ref QuestSequence reference113 = ref span70[2]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -14529,15 +12060,13 @@ public static class AssemblyQuestLoader num2 = 4; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) + Span span73 = CollectionsMarshal.AsSpan(list156); + span73[0] = new QuestStep(EInteractionType.Interact, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { Disabled = true, Comment = "Pick up Class Quest" }; - index2++; - span156[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) + span73[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -14550,8 +12079,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span156[index2] = new QuestStep(EInteractionType.None, null, null, 133) + span73[2] = new QuestStep(EInteractionType.None, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -14559,8 +12087,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span73[3] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -14577,26 +12104,22 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; questRoot20.Author = list157; - index = 9; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference114 = ref span158[num]; + num = 9; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span74 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference114 = ref span74[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -14617,15 +12140,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span159[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span75[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj99.Steps = list159; reference114 = obj99; - num++; - ref QuestSequence reference115 = ref span158[num]; + ref QuestSequence reference115 = ref span74[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -14633,44 +12154,37 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 1010198u, new Vector3(-152.11719f, -129.4397f, 267.10913f), 129) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1010198u, new Vector3(-152.11719f, -129.4397f, 267.10913f), 129) { StopDistance = 7f }; obj100.Steps = list160; reference115 = obj100; - num++; - ref QuestSequence reference116 = ref span158[num]; + ref QuestSequence reference116 = ref span74[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list161 = new List(index2); - CollectionsMarshal.SetCount(list161, index2); - Span span161 = CollectionsMarshal.AsSpan(list161); - num2 = 0; - ref QuestStep reference117 = ref span161[num2]; + num2 = 2; + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + Span span76 = CollectionsMarshal.AsSpan(list161); + ref QuestStep reference117 = ref span76[0]; 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(); - num4 = 1; - List list162 = new List(num4); - CollectionsMarshal.SetCount(list162, num4); - Span span162 = CollectionsMarshal.AsSpan(list162); - num3 = 0; - span162[num3] = 128; + num3 = 1; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + CollectionsMarshal.AsSpan(list162)[0] = 128; skipStepConditions5.InTerritory = list162; skipConditions12.StepIf = skipStepConditions5; obj102.SkipConditions = skipConditions12; reference117 = obj102; - num2++; - span161[num2] = new QuestStep(EInteractionType.Interact, 1010212u, new Vector3(-50.8584f, 40f, 111.40613f), 128) + span76[1] = new QuestStep(EInteractionType.Interact, 1010212u, new Vector3(-50.8584f, 40f, 111.40613f), 128) { AethernetShortcut = new AethernetShortcut { @@ -14680,8 +12194,7 @@ public static class AssemblyQuestLoader }; obj101.Steps = list161; reference116 = obj101; - num++; - ref QuestSequence reference118 = ref span158[num]; + ref QuestSequence reference118 = ref span74[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -14689,23 +12202,19 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.Interact, 1010211u, new Vector3(-42.22174f, 42.249126f, 115.89221f), 128); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1010211u, new Vector3(-42.22174f, 42.249126f, 115.89221f), 128); obj103.Steps = list163; reference118 = obj103; - num++; - ref QuestSequence reference119 = ref span158[num]; + ref QuestSequence reference119 = ref span74[4]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - index2 = 8; - List list164 = new List(index2); - CollectionsMarshal.SetCount(list164, index2); - Span span164 = CollectionsMarshal.AsSpan(list164); - num2 = 0; - ref QuestStep reference120 = ref span164[num2]; + num2 = 8; + List list164 = new List(num2); + CollectionsMarshal.SetCount(list164, num2); + Span span77 = CollectionsMarshal.AsSpan(list164); + ref QuestStep reference120 = ref span77[0]; QuestStep obj105 = new QuestStep(EInteractionType.Action, null, new Vector3(-62.300663f, 42.300003f, -151.94725f), 128) { StopDistance = 0.5f, @@ -14721,55 +12230,40 @@ public static class AssemblyQuestLoader num3 = 6; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list165; skipConditions13.StepIf = skipStepConditions6; obj105.SkipConditions = skipConditions13; reference120 = obj105; - num2++; - ref QuestStep reference121 = ref span164[num2]; + ref QuestStep reference121 = ref span77[1]; QuestStep obj106 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.962505f, 42.300007f, -158.14607f), 128) { StopDistance = 0.5f, DisableNavmesh = true }; - 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); + 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); obj106.CompletionQuestVariablesFlags = list166; reference121 = obj106; - num2++; - span164[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 128) + span77[2] = new QuestStep(EInteractionType.StatusOff, null, null, 128) { Status = EStatus.Hidden }; - num2++; - ref QuestStep reference122 = ref span164[num2]; + ref QuestStep reference122 = ref span77[3]; QuestStep obj107 = new QuestStep(EInteractionType.Action, null, new Vector3(-155.25468f, 18f, 28.882175f), 129) { StopDistance = 0.5f, @@ -14785,54 +12279,39 @@ public static class AssemblyQuestLoader num3 = 6; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list167; skipConditions14.StepIf = skipStepConditions7; obj107.SkipConditions = skipConditions14; reference122 = obj107; - num2++; - ref QuestStep reference123 = ref span164[num2]; + ref QuestStep reference123 = ref span77[4]; QuestStep obj108 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.91245f, 18.2f, 34.06711f), 129) { StopDistance = 0.5f }; - 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); + 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); obj108.CompletionQuestVariablesFlags = list168; reference123 = obj108; - num2++; - span164[num2] = new QuestStep(EInteractionType.StatusOff, null, null, 129) + span77[5] = new QuestStep(EInteractionType.StatusOff, null, null, 129) { Status = EStatus.Hidden }; - num2++; - ref QuestStep reference124 = ref span164[num2]; + ref QuestStep reference124 = ref span77[6]; QuestStep obj109 = new QuestStep(EInteractionType.Action, null, new Vector3(-187.95581f, 1.2697256f, 208.46738f), 129) { StopDistance = 0.5f, @@ -14848,48 +12327,34 @@ public static class AssemblyQuestLoader num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list169; skipConditions15.StepIf = skipStepConditions8; obj109.SkipConditions = skipConditions15; reference124 = obj109; - num2++; - ref QuestStep reference125 = ref span164[num2]; + ref QuestStep reference125 = ref span77[7]; QuestStep questStep16 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-190.81572f, 0.9999907f, 210.59836f), 129); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list170; reference125 = questStep16; obj104.Steps = list164; reference119 = obj104; - num++; - ref QuestSequence reference126 = ref span158[num]; + ref QuestSequence reference126 = ref span74[5]; QuestSequence obj110 = new QuestSequence { Sequence = 5 @@ -14897,49 +12362,39 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 129) + Span span84 = CollectionsMarshal.AsSpan(list171); + span84[0] = new QuestStep(EInteractionType.StatusOff, null, null, 129) { Status = EStatus.Hidden }; - index2++; - span171[index2] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); + span84[1] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129); obj110.Steps = list171; reference126 = obj110; - num++; - ref QuestSequence reference127 = ref span158[num]; + ref QuestSequence reference127 = ref span74[6]; QuestSequence obj111 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list172 = new List(index2); - CollectionsMarshal.SetCount(list172, index2); - Span span172 = CollectionsMarshal.AsSpan(list172); - num2 = 0; - ref QuestStep reference128 = ref span172[num2]; + num2 = 1; + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list172)[0]; 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 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"; + 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"; singlePlayerDutyOptions.Notes = list173; questStep17.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference128 = questStep17; obj111.Steps = list172; reference127 = obj111; - num++; - ref QuestSequence reference129 = ref span158[num]; + ref QuestSequence reference129 = ref span74[7]; QuestSequence obj112 = new QuestSequence { Sequence = 7 @@ -14947,9 +12402,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1010213u, new Vector3(-161.12f, 1.9499999f, 239.30713f), 129) { AethernetShortcut = new AethernetShortcut { @@ -14959,23 +12412,20 @@ public static class AssemblyQuestLoader }; obj112.Steps = list174; reference129 = obj112; - num++; - ref QuestSequence reference130 = ref span158[num]; + ref QuestSequence reference130 = ref span74[8]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)129 }; - num2++; - span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(144) @@ -14989,16 +12439,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "liza"; + CollectionsMarshal.AsSpan(list176)[0] = "liza"; questRoot21.Author = list176; - index = 7; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference131 = ref span177[num]; + num = 7; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span87 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference131 = ref span87[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -15006,27 +12453,21 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj114.Steps = list178; reference131 = obj114; - num++; - ref QuestSequence reference132 = ref span177[num]; + ref QuestSequence reference132 = ref span87[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj115.Steps = list179; reference132 = obj115; - num++; - ref QuestSequence reference133 = ref span177[num]; + ref QuestSequence reference133 = ref span87[2]; QuestSequence obj116 = new QuestSequence { Sequence = 2 @@ -15034,126 +12475,88 @@ public static class AssemblyQuestLoader num2 = 5; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - ref QuestStep reference134 = ref span180[index2]; + Span span88 = CollectionsMarshal.AsSpan(list180); + ref QuestStep reference134 = ref span88[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1000512u, new Vector3(311.69592f, 14.8470745f, 164.47693f), 148); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list181; reference134 = questStep18; - index2++; - ref QuestStep reference135 = ref span180[index2]; + ref QuestStep reference135 = ref span88[1]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list182; reference135 = questStep19; - index2++; - ref QuestStep reference136 = ref span180[index2]; + ref QuestStep reference136 = ref span88[2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1000514u, new Vector3(296.1012f, 15.999987f, 171.4961f), 148); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list183; reference136 = questStep20; - index2++; - ref QuestStep reference137 = ref span180[index2]; + ref QuestStep reference137 = ref span88[3]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list184; reference137 = questStep21; - index2++; - ref QuestStep reference138 = ref span180[index2]; + ref QuestStep reference138 = ref span88[4]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1000516u, new Vector3(284.65698f, 21.97319f, 188.18945f), 148); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list185; reference138 = questStep22; obj116.Steps = list180; reference133 = obj116; - num++; - ref QuestSequence reference139 = ref span177[num]; + ref QuestSequence reference139 = ref span87[3]; QuestSequence obj117 = new QuestSequence { Sequence = 3 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -15162,13 +12565,11 @@ public static class AssemblyQuestLoader }; obj117.Steps = list186; reference139 = obj117; - num++; - span177[num] = new QuestSequence + span87[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference140 = ref span177[num]; + ref QuestSequence reference140 = ref span87[5]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -15176,25 +12577,20 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - 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); + 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); obj118.Steps = list187; reference140 = obj118; - num++; - ref QuestSequence reference141 = ref span177[num]; + ref QuestSequence reference141 = ref span87[6]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15219,16 +12615,13 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - Span span189 = CollectionsMarshal.AsSpan(list189); - index = 0; - span189[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list189)[0] = "Cacahuetes"; questRoot22.Author = list189; - index = 2; - List list190 = new List(index); - CollectionsMarshal.SetCount(list190, index); - Span span190 = CollectionsMarshal.AsSpan(list190); - num = 0; - ref QuestSequence reference142 = ref span190[num]; + num = 2; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + Span span95 = CollectionsMarshal.AsSpan(list190); + ref QuestSequence reference142 = ref span95[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -15236,23 +12629,18 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132); obj120.Steps = list191; reference142 = obj120; - num++; - ref QuestSequence reference143 = ref span190[num]; + ref QuestSequence reference143 = ref span95[1]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list192 = new List(index2); - CollectionsMarshal.SetCount(list192, index2); - Span span192 = CollectionsMarshal.AsSpan(list192); - num2 = 0; - ref QuestStep reference144 = ref span192[num2]; + num2 = 1; + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list192)[0]; QuestStep obj122 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 5f @@ -15260,9 +12648,7 @@ public static class AssemblyQuestLoader num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span193 = CollectionsMarshal.AsSpan(list193); - num4 = 0; - span193[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC998_00131_Q1_000_1") @@ -15278,16 +12664,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list194)[0] = "Cacahuetes"; questRoot23.Author = list194; - index = 2; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference145 = ref span195[num]; + num = 2; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span96 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference145 = ref span96[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -15295,9 +12678,7 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - ref QuestStep reference146 = ref span196[index2]; + ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list196)[0]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15312,37 +12693,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list197 = new List(num4); - CollectionsMarshal.SetCount(list197, num4); - Span span197 = CollectionsMarshal.AsSpan(list197); - num3 = 0; - span197[num3] = 133; + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = 133; obj125.InTerritory = list197; skipConditions16.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions16; reference146 = obj124; obj123.Steps = list196; reference145 = obj123; - num++; - ref QuestSequence reference147 = ref span195[num]; + ref QuestSequence reference147 = ref span96[1]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list198 = new List(index2); - CollectionsMarshal.SetCount(list198, index2); - Span span198 = CollectionsMarshal.AsSpan(list198); - num2 = 0; - ref QuestStep reference148 = ref span198[num2]; + num2 = 1; + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list198)[0]; 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); - Span span199 = CollectionsMarshal.AsSpan(list199); - num4 = 0; - span199[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list199)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC998_00132_Q1_000_1") @@ -15359,16 +12733,13 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; questRoot24.Author = list200; - index = 2; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestSequence reference149 = ref span201[num]; + num = 2; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span97 = CollectionsMarshal.AsSpan(list201); + ref QuestSequence reference149 = ref span97[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -15376,9 +12747,7 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - ref QuestStep reference150 = ref span202[index2]; + ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list202)[0]; QuestStep obj128 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15393,37 +12762,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list203 = new List(num4); - CollectionsMarshal.SetCount(list203, num4); - Span span203 = CollectionsMarshal.AsSpan(list203); - num3 = 0; - span203[num3] = 133; + num3 = 1; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + CollectionsMarshal.AsSpan(list203)[0] = 133; obj129.InTerritory = list203; skipConditions17.AetheryteShortcutIf = obj129; obj128.SkipConditions = skipConditions17; reference150 = obj128; obj127.Steps = list202; reference149 = obj127; - num++; - ref QuestSequence reference151 = ref span201[num]; + ref QuestSequence reference151 = ref span97[1]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num2 = 0; - ref QuestStep reference152 = ref span204[num2]; + num2 = 1; + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list204)[0]; 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); - Span span205 = CollectionsMarshal.AsSpan(list205); - num4 = 0; - span205[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ998_00133_Q1_000_1") @@ -15439,16 +12801,13 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list206)[0] = "Cacahuetes"; questRoot25.Author = list206; - index = 7; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference153 = ref span207[num]; + num = 7; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span98 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference153 = ref span98[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -15456,9 +12815,7 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -15477,22 +12834,18 @@ public static class AssemblyQuestLoader }; obj131.Steps = list208; reference153 = obj131; - num++; - ref QuestSequence reference154 = ref span207[num]; + ref QuestSequence reference154 = ref span98[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj132.Steps = list209; reference154 = obj132; - num++; - ref QuestSequence reference155 = ref span207[num]; + ref QuestSequence reference155 = ref span98[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -15500,260 +12853,191 @@ public static class AssemblyQuestLoader num2 = 12; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - span210[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) + Span span99 = CollectionsMarshal.AsSpan(list210); + span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-87.448326f, -3.8114734f, -77.68485f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - index2++; - ref QuestStep reference156 = ref span210[index2]; + ref QuestStep reference156 = ref span99[1]; QuestStep obj134 = new QuestStep(EInteractionType.Action, 2001177u, new Vector3(-88.24298f, 3.768982f, -88.24298f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - 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); + 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); obj134.CompletionQuestVariablesFlags = list211; reference156 = obj134; - index2++; - ref QuestStep reference157 = ref span210[index2]; + ref QuestStep reference157 = ref span99[2]; 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 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list212; skipConditions18.StepIf = skipStepConditions9; questStep25.SkipConditions = skipConditions18; reference157 = questStep25; - index2++; - ref QuestStep reference158 = ref span210[index2]; + ref QuestStep reference158 = ref span99[3]; QuestStep obj135 = new QuestStep(EInteractionType.Action, 2001175u, new Vector3(-115.58716f, -3.402832f, -51.07196f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - 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); + 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); obj135.CompletionQuestVariablesFlags = list213; reference158 = obj135; - index2++; - ref QuestStep reference159 = ref span210[index2]; + ref QuestStep reference159 = ref span99[4]; 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 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list214; skipConditions19.StepIf = skipStepConditions10; questStep26.SkipConditions = skipConditions19; reference159 = questStep26; - index2++; - ref QuestStep reference160 = ref span210[index2]; + ref QuestStep reference160 = ref span99[5]; QuestStep obj136 = new QuestStep(EInteractionType.Action, 2000959u, new Vector3(-143.32806f, -0.41204834f, -58.884644f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - 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); + 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); obj136.CompletionQuestVariablesFlags = list215; reference160 = obj136; - index2++; - ref QuestStep reference161 = ref span210[index2]; + ref QuestStep reference161 = ref span99[6]; 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 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list216; skipConditions20.StepIf = skipStepConditions11; questStep27.SkipConditions = skipConditions20; reference161 = questStep27; - index2++; - ref QuestStep reference162 = ref span210[index2]; + ref QuestStep reference162 = ref span99[7]; QuestStep obj137 = new QuestStep(EInteractionType.Action, 2000958u, new Vector3(-166.97955f, 10.2387085f, -138.41461f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - 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); + 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); obj137.CompletionQuestVariablesFlags = list217; reference162 = obj137; - index2++; - ref QuestStep reference163 = ref span210[index2]; + ref QuestStep reference163 = ref span99[8]; 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 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); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list218; skipConditions21.StepIf = skipStepConditions12; questStep28.SkipConditions = skipConditions21; reference163 = questStep28; - index2++; - ref QuestStep reference164 = ref span210[index2]; + ref QuestStep reference164 = ref span99[9]; QuestStep obj138 = new QuestStep(EInteractionType.Action, 2000957u, new Vector3(-120.68359f, 12.49707f, -182.39111f), 148) { StopDistance = 15f, Action = EAction.HeavyShot }; - 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); + 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); obj138.CompletionQuestVariablesFlags = list219; reference164 = obj138; - 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) + 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) { StopDistance = 15f, Action = EAction.HeavyShot }; obj133.Steps = list210; reference155 = obj133; - num++; - ref QuestSequence reference165 = ref span207[num]; + ref QuestSequence reference165 = ref span98[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15764,8 +13048,7 @@ public static class AssemblyQuestLoader }; obj139.Steps = list220; reference165 = obj139; - num++; - ref QuestSequence reference166 = ref span207[num]; + ref QuestSequence reference166 = ref span98[4]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -15773,9 +13056,8 @@ public static class AssemblyQuestLoader num2 = 3; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span109 = CollectionsMarshal.AsSpan(list221); + span109[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -15791,13 +13073,11 @@ public static class AssemblyQuestLoader } } }; - index2++; - span221[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + span109[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut }; - index2++; - ref QuestStep reference167 = ref span221[index2]; + ref QuestStep reference167 = ref span109[2]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.09494f, 2.9039853f, 239.26413f), 152) { StopDistance = 0.5f, @@ -15808,55 +13088,41 @@ public static class AssemblyQuestLoader num3 = 2; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num4 = 0; - ref ComplexCombatData reference168 = ref span222[num4]; + Span span110 = CollectionsMarshal.AsSpan(list222); + ref ComplexCombatData reference168 = ref span110[0]; ComplexCombatData obj142 = new ComplexCombatData { DataId = 12u, MinimumKillCount = 8u }; - 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; + 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; obj142.CompletionQuestVariablesFlags = list223; reference168 = obj142; - num4++; - ref ComplexCombatData reference169 = ref span222[num4]; + ref ComplexCombatData reference169 = ref span110[1]; ComplexCombatData obj143 = new ComplexCombatData { DataId = 39u, MinimumKillCount = 8u }; - 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; + 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; obj143.CompletionQuestVariablesFlags = list224; reference169 = obj143; obj141.ComplexCombatData = list222; @@ -15871,18 +13137,15 @@ public static class AssemblyQuestLoader reference167 = obj141; obj140.Steps = list221; reference166 = obj140; - num++; - ref QuestSequence reference170 = ref span207[num]; + ref QuestSequence reference170 = ref span98[5]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -15893,8 +13156,7 @@ public static class AssemblyQuestLoader }; obj144.Steps = list225; reference170 = obj144; - num++; - ref QuestSequence reference171 = ref span207[num]; + ref QuestSequence reference171 = ref span98[6]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -15902,19 +13164,15 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - ref QuestStep reference172 = ref span226[index2]; + ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list226)[0]; QuestStep obj146 = new QuestStep(EInteractionType.CompleteQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f }; - num4 = 1; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = new DialogueChoice + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC997_00134_Q1_000_1") @@ -15931,30 +13189,24 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "liza"; + CollectionsMarshal.AsSpan(list228)[0] = "liza"; questRoot26.Author = list228; - index = 2; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference173 = ref span229[num]; + num = 2; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span113 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference173 = ref span113[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj147.Steps = list230; reference173 = obj147; - num++; - ref QuestSequence reference174 = ref span229[num]; + ref QuestSequence reference174 = ref span113[1]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -15962,16 +13214,12 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - ref QuestStep reference175 = ref span231[index2]; + ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list231)[0]; 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); - Span span232 = CollectionsMarshal.AsSpan(list232); - num4 = 0; - span232[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list232)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWDK000_00138_Q1_000_1") @@ -15987,28 +13235,23 @@ public static class AssemblyQuestLoader num = 2; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "Cacahuetes"; - index++; - span233[index] = "liza"; + Span span114 = CollectionsMarshal.AsSpan(list233); + span114[0] = "Cacahuetes"; + span114[1] = "liza"; questRoot27.Author = list233; - index = 4; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference176 = ref span234[num]; + num = 4; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span115 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference176 = ref span115[0]; QuestSequence obj149 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list235)[0]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -16023,20 +13266,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list236 = new List(num4); - CollectionsMarshal.SetCount(list236, num4); - Span span236 = CollectionsMarshal.AsSpan(list236); - num3 = 0; - span236[num3] = 133; + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + CollectionsMarshal.AsSpan(list236)[0] = 133; obj151.InTerritory = list236; skipConditions22.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions22; reference177 = obj150; obj149.Steps = list235; reference176 = obj149; - num++; - ref QuestSequence reference178 = ref span234[num]; + ref QuestSequence reference178 = ref span115[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 @@ -16044,9 +13284,8 @@ public static class AssemblyQuestLoader num2 = 3; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) + Span span116 = CollectionsMarshal.AsSpan(list237); + span116[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(502.843f, 43.200996f, -32.464188f), 148) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -16056,8 +13295,7 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - ref QuestStep reference179 = ref span237[index2]; + ref QuestStep reference179 = ref span116[1]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 142u, new Vector3(514.06104f, 44.169823f, -42.008118f), 148) { StopDistance = 0.5f, @@ -16067,44 +13305,33 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num4 = 0; - span238[num4] = 142u; + CollectionsMarshal.AsSpan(list238)[0] = 142u; obj153.KillEnemyDataIds = list238; - 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; + 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; obj153.CompletionQuestVariablesFlags = list239; reference179 = obj153; - index2++; - span237[index2] = new QuestStep(EInteractionType.Interact, 2000967u, new Vector3(514.8546f, 43.808594f, -48.630554f), 148); + span116[2] = new QuestStep(EInteractionType.Interact, 2000967u, new Vector3(514.8546f, 43.808594f, -48.630554f), 148); obj152.Steps = list237; reference178 = obj152; - num++; - ref QuestSequence reference180 = ref span234[num]; + ref QuestSequence reference180 = ref span115[2]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list240 = new List(index2); - CollectionsMarshal.SetCount(list240, index2); - Span span240 = CollectionsMarshal.AsSpan(list240); - num2 = 0; - ref QuestStep reference181 = ref span240[num2]; + num2 = 2; + List list240 = new List(num2); + CollectionsMarshal.SetCount(list240, num2); + Span span118 = CollectionsMarshal.AsSpan(list240); + ref QuestStep reference181 = ref span118[0]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, null, new Vector3(211.82294f, 23.458103f, 157.57333f), 148) { StopDistance = 0.5f, @@ -16114,34 +13341,24 @@ public static class AssemblyQuestLoader num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - Span span241 = CollectionsMarshal.AsSpan(list241); - num4 = 0; - span241[num4] = 21u; + CollectionsMarshal.AsSpan(list241)[0] = 21u; obj155.KillEnemyDataIds = list241; - 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; + 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; obj155.CompletionQuestVariablesFlags = list242; reference181 = obj155; - num2++; - span240[num2] = new QuestStep(EInteractionType.Interact, 2000918u, new Vector3(215.99133f, 23.575134f, 153.2157f), 148); + span118[1] = new QuestStep(EInteractionType.Interact, 2000918u, new Vector3(215.99133f, 23.575134f, 153.2157f), 148); obj154.Steps = list240; reference180 = obj154; - num++; - ref QuestSequence reference182 = ref span234[num]; + ref QuestSequence reference182 = ref span115[3]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -16149,9 +13366,7 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -16170,26 +13385,22 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "liza"; + CollectionsMarshal.AsSpan(list244)[0] = "liza"; questRoot28.Author = list244; - index = 7; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference183 = ref span245[num]; + num = 7; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span120 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference183 = ref span120[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16210,15 +13421,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span246[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span121[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj157.Steps = list246; reference183 = obj157; - num++; - ref QuestSequence reference184 = ref span245[num]; + ref QuestSequence reference184 = ref span120[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -16226,34 +13435,28 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj158.Steps = list247; reference184 = obj158; - num++; - ref QuestSequence reference185 = ref span245[num]; + ref QuestSequence reference185 = ref span120[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj159.Steps = list248; reference185 = obj159; - num++; - ref QuestSequence reference186 = ref span245[num]; + ref QuestSequence reference186 = ref span120[3]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -16261,34 +13464,28 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 2004861u, new Vector3(-131.63965f, 0.503479f, 729.9762f), 135) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 2004861u, new Vector3(-131.63965f, 0.503479f, 729.9762f), 135) { Fly = true }; obj160.Steps = list249; reference186 = obj160; - num++; - ref QuestSequence reference187 = ref span245[num]; + ref QuestSequence reference187 = ref span120[4]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj161.Steps = list250; reference187 = obj161; - num++; - ref QuestSequence reference188 = ref span245[num]; + ref QuestSequence reference188 = ref span120[5]; QuestSequence obj162 = new QuestSequence { Sequence = 5 @@ -16296,23 +13493,18 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138); + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138); obj162.Steps = list251; reference188 = obj162; - num++; - ref QuestSequence reference189 = ref span245[num]; + ref QuestSequence reference189 = ref span120[6]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(145) @@ -16326,16 +13518,13 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - Span span253 = CollectionsMarshal.AsSpan(list253); - index = 0; - span253[index] = "liza"; + CollectionsMarshal.AsSpan(list253)[0] = "liza"; questRoot29.Author = list253; - index = 4; - List list254 = new List(index); - CollectionsMarshal.SetCount(list254, index); - Span span254 = CollectionsMarshal.AsSpan(list254); - num = 0; - ref QuestSequence reference190 = ref span254[num]; + num = 4; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + Span span122 = CollectionsMarshal.AsSpan(list254); + ref QuestSequence reference190 = ref span122[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -16343,9 +13532,7 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010218u, new Vector3(319.44763f, -36.353825f, 346.76123f), 138) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -16359,35 +13546,30 @@ public static class AssemblyQuestLoader }; obj164.Steps = list255; reference190 = obj164; - num++; - ref QuestSequence reference191 = ref span254[num]; + ref QuestSequence reference191 = ref span122[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span256[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010228u, new Vector3(594.1709f, 43.893982f, 303.76135f), 138) + span123[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010228u, new Vector3(594.1709f, 43.893982f, 303.76135f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions() }; obj165.Steps = list256; reference191 = obj165; - num++; - span254[num] = new QuestSequence + span122[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference192 = ref span254[num]; + ref QuestSequence reference192 = ref span122[3]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -16395,9 +13577,8 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span124 = CollectionsMarshal.AsSpan(list257); + span124[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16407,8 +13588,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - index2++; - span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(146) @@ -16422,26 +13602,22 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "liza"; + CollectionsMarshal.AsSpan(list258)[0] = "liza"; questRoot30.Author = list258; - index = 10; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference193 = ref span259[num]; + num = 10; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span125 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference193 = ref span125[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16462,15 +13638,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span260[num2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj167.Steps = list260; reference193 = obj167; - num++; - ref QuestSequence reference194 = ref span259[num]; + ref QuestSequence reference194 = ref span125[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -16478,14 +13652,12 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + Span span127 = CollectionsMarshal.AsSpan(list261); + span127[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129 }; - index2++; - span261[index2] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) + span127[1] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -16496,28 +13668,24 @@ public static class AssemblyQuestLoader }; obj168.Steps = list261; reference194 = obj168; - num++; - ref QuestSequence reference195 = ref span259[num]; + ref QuestSequence reference195 = ref span125[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, Action = EAction.Hide }; - num2++; - span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.24341f, 69.5f, 328.4606f), 134); + span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.24341f, 69.5f, 328.4606f), 134); obj169.Steps = list262; reference195 = obj169; - num++; - ref QuestSequence reference196 = ref span259[num]; + ref QuestSequence reference196 = ref span125[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -16525,31 +13693,26 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 134) + Span span129 = CollectionsMarshal.AsSpan(list263); + span129[0] = new QuestStep(EInteractionType.StatusOff, null, null, 134) { Status = EStatus.Hidden }; - index2++; - span263[index2] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) + span129[1] = new QuestStep(EInteractionType.Interact, 1010238u, new Vector3(146.71545f, 62.3279f, 291.82874f), 134) { Fly = true }; obj170.Steps = list263; reference196 = obj170; - num++; - ref QuestSequence reference197 = ref span259[num]; + ref QuestSequence reference197 = ref span125[4]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list264 = new List(index2); - CollectionsMarshal.SetCount(list264, index2); - Span span264 = CollectionsMarshal.AsSpan(list264); - num2 = 0; - ref QuestStep reference198 = ref span264[num2]; + num2 = 1; + List list264 = new List(num2); + CollectionsMarshal.SetCount(list264, num2); + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list264)[0]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134) { Fly = true, @@ -16559,17 +13722,14 @@ public static class AssemblyQuestLoader num3 = 2; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - Span span265 = CollectionsMarshal.AsSpan(list265); - num4 = 0; - span265[num4] = 3567u; - num4++; - span265[num4] = 3568u; + Span span130 = CollectionsMarshal.AsSpan(list265); + span130[0] = 3567u; + span130[1] = 3568u; obj172.KillEnemyDataIds = list265; reference198 = obj172; obj171.Steps = list264; reference197 = obj171; - num++; - ref QuestSequence reference199 = ref span259[num]; + ref QuestSequence reference199 = ref span125[5]; QuestSequence obj173 = new QuestSequence { Sequence = 5 @@ -16577,23 +13737,19 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.Interact, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134); + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1010242u, new Vector3(7.2174683f, 57.91383f, -307.11835f), 134); obj173.Steps = list266; reference199 = obj173; - num++; - ref QuestSequence reference200 = ref span259[num]; + ref QuestSequence reference200 = ref span125[6]; QuestSequence obj174 = new QuestSequence { Sequence = 6 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16603,15 +13759,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num2++; - span267[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span131[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj174.Steps = list267; reference200 = obj174; - num++; - ref QuestSequence reference201 = ref span259[num]; + ref QuestSequence reference201 = ref span125[7]; QuestSequence obj175 = new QuestSequence { Sequence = 7 @@ -16619,34 +13773,28 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) + CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010237u, new Vector3(242.29797f, 8.000164f, 668.2383f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj175.Steps = list268; reference201 = obj175; - num++; - ref QuestSequence reference202 = ref span259[num]; + ref QuestSequence reference202 = ref span125[8]; QuestSequence obj176 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 7f }; obj176.Steps = list269; reference202 = obj176; - num++; - ref QuestSequence reference203 = ref span259[num]; + ref QuestSequence reference203 = ref span125[9]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -16654,9 +13802,8 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span132 = CollectionsMarshal.AsSpan(list270); + span132[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16666,8 +13813,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - index2++; - span270[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(148) @@ -16681,28 +13827,23 @@ public static class AssemblyQuestLoader num = 2; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "Cacahuetes"; - index++; - span271[index] = "liza"; + Span span133 = CollectionsMarshal.AsSpan(list271); + span133[0] = "Cacahuetes"; + span133[1] = "liza"; questRoot31.Author = list271; - index = 7; - List list272 = new List(index); - CollectionsMarshal.SetCount(list272, index); - Span span272 = CollectionsMarshal.AsSpan(list272); - num = 0; - ref QuestSequence reference204 = ref span272[num]; + num = 7; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span134 = CollectionsMarshal.AsSpan(list272); + ref QuestSequence reference204 = ref span134[0]; QuestSequence obj178 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list273 = new List(num2); + CollectionsMarshal.SetCount(list273, num2); + ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list273)[0]; QuestStep obj179 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -16717,20 +13858,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list274 = new List(num4); - CollectionsMarshal.SetCount(list274, num4); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - span274[num3] = 133; + num3 = 1; + List list274 = new List(num3); + CollectionsMarshal.SetCount(list274, num3); + CollectionsMarshal.AsSpan(list274)[0] = 133; obj180.InTerritory = list274; skipConditions23.AetheryteShortcutIf = obj180; obj179.SkipConditions = skipConditions23; reference205 = obj179; obj178.Steps = list273; reference204 = obj178; - num++; - ref QuestSequence reference206 = ref span272[num]; + ref QuestSequence reference206 = ref span134[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -16738,29 +13876,24 @@ public static class AssemblyQuestLoader num2 = 2; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + Span span135 = CollectionsMarshal.AsSpan(list275); + span135[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - index2++; - span275[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + span135[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj181.Steps = list275; reference206 = obj181; - num++; - ref QuestSequence reference207 = ref span272[num]; + ref QuestSequence reference207 = ref span134[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list276 = new List(index2); - CollectionsMarshal.SetCount(list276, index2); - Span span276 = CollectionsMarshal.AsSpan(list276); - num2 = 0; - ref QuestStep reference208 = ref span276[num2]; + num2 = 1; + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list276)[0]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2001229u, new Vector3(-510.6432f, 6.301941f, 35.78235f), 152) { Fly = true, @@ -16769,15 +13902,12 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span277 = CollectionsMarshal.AsSpan(list277); - num4 = 0; - span277[num4] = 295u; + CollectionsMarshal.AsSpan(list277)[0] = 295u; obj183.KillEnemyDataIds = list277; reference208 = obj183; obj182.Steps = list276; reference207 = obj182; - num++; - ref QuestSequence reference209 = ref span272[num]; + ref QuestSequence reference209 = ref span134[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -16785,28 +13915,23 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + Span span136 = CollectionsMarshal.AsSpan(list278); + span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true }; - index2++; - span278[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + span136[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj184.Steps = list278; reference209 = obj184; - num++; - ref QuestSequence reference210 = ref span272[num]; + ref QuestSequence reference210 = ref span134[4]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -16816,8 +13941,7 @@ public static class AssemblyQuestLoader }; obj185.Steps = list279; reference210 = obj185; - num++; - ref QuestSequence reference211 = ref span272[num]; + ref QuestSequence reference211 = ref span134[5]; QuestSequence obj186 = new QuestSequence { Sequence = 5 @@ -16825,28 +13949,23 @@ public static class AssemblyQuestLoader num2 = 2; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) + Span span137 = CollectionsMarshal.AsSpan(list280); + span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-482.67407f, 9.16599f, 207.46878f), 152) { Fly = true }; - index2++; - span280[index2] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); + span137[1] = new QuestStep(EInteractionType.Interact, 1000767u, new Vector3(-483.42108f, 10.130882f, 209.46057f), 152); obj186.Steps = list280; reference211 = obj186; - num++; - ref QuestSequence reference212 = ref span272[num]; + ref QuestSequence reference212 = ref span134[6]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -16865,16 +13984,13 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - Span span282 = CollectionsMarshal.AsSpan(list282); - index = 0; - span282[index] = "liza"; + CollectionsMarshal.AsSpan(list282)[0] = "liza"; questRoot32.Author = list282; - index = 8; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - ref QuestSequence reference213 = ref span283[num]; + num = 8; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span138 = CollectionsMarshal.AsSpan(list283); + ref QuestSequence reference213 = ref span138[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -16882,9 +13998,8 @@ public static class AssemblyQuestLoader num2 = 2; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span139 = CollectionsMarshal.AsSpan(list284); + span139[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -16905,45 +14020,39 @@ public static class AssemblyQuestLoader } } }; - index2++; - span284[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span139[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj188.Steps = list284; reference213 = obj188; - num++; - ref QuestSequence reference214 = ref span283[num]; + ref QuestSequence reference214 = ref span138[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list285 = new List(index2); - CollectionsMarshal.SetCount(list285, index2); - Span span285 = CollectionsMarshal.AsSpan(list285); - num2 = 0; - ref QuestStep reference215 = ref span285[num2]; + num2 = 3; + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + Span span140 = CollectionsMarshal.AsSpan(list285); + ref QuestStep reference215 = ref span140[0]; 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(); - 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; + num3 = 2; + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + Span span141 = CollectionsMarshal.AsSpan(list286); + span141[0] = 134; + span141[1] = 135; skipStepConditions13.InTerritory = list286; skipConditions24.StepIf = skipStepConditions13; obj190.SkipConditions = skipConditions24; reference215 = obj190; - num2++; - ref QuestStep reference216 = ref span285[num2]; + ref QuestStep reference216 = ref span140[1]; QuestStep obj191 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.54845f, 65.80573f, 285.71436f), 134) { Fly = true, @@ -16958,37 +14067,30 @@ public static class AssemblyQuestLoader num3 = 1; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span287 = CollectionsMarshal.AsSpan(list287); - num4 = 0; - span287[num4] = 135; + CollectionsMarshal.AsSpan(list287)[0] = 135; skipStepConditions14.InTerritory = list287; skipConditions25.StepIf = skipStepConditions14; obj191.SkipConditions = skipConditions25; reference216 = obj191; - num2++; - ref QuestStep reference217 = ref span285[num2]; + ref QuestStep reference217 = ref span140[2]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(509.26575f, 95.90476f, -446.11078f), 135) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj192.KillEnemyDataIds = list288; reference217 = obj192; obj189.Steps = list285; reference214 = obj189; - num++; - ref QuestSequence reference218 = ref span283[num]; + ref QuestSequence reference218 = ref span138[2]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -16996,23 +14098,19 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.Interact, 1010252u, new Vector3(508.23218f, 95.95811f, -449.82074f), 135); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1010252u, new Vector3(508.23218f, 95.95811f, -449.82074f), 135); obj193.Steps = list289; reference218 = obj193; - num++; - ref QuestSequence reference219 = ref span283[num]; + ref QuestSequence reference219 = ref span138[3]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -17022,15 +14120,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num2++; - span290[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span143[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj194.Steps = list290; reference219 = obj194; - num++; - ref QuestSequence reference220 = ref span283[num]; + ref QuestSequence reference220 = ref span138[4]; QuestSequence obj195 = new QuestSequence { Sequence = 4 @@ -17038,9 +14134,8 @@ public static class AssemblyQuestLoader num2 = 5; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span291[index2] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) + Span span144 = CollectionsMarshal.AsSpan(list291); + span144[0] = new QuestStep(EInteractionType.Interact, 2004936u, new Vector3(-151.90363f, -128.16058f, 256.8551f), 129) { TargetTerritoryId = (ushort)129, SkipConditions = new SkipConditions @@ -17051,8 +14146,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span291[index2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + span144[1] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -17063,8 +14157,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span291[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + span144[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -17075,8 +14168,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.17413f, 16.072088f, 406.06335f), 137) + span144[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.17413f, 16.072088f, 406.06335f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -17088,26 +14180,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span291[index2] = new QuestStep(EInteractionType.Interact, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); + span144[4] = new QuestStep(EInteractionType.Interact, 1010251u, new Vector3(450.82776f, 16.18121f, 406.69873f), 137); obj195.Steps = list291; reference220 = obj195; - num++; - ref QuestSequence reference221 = ref span283[num]; + ref QuestSequence reference221 = ref span138[5]; QuestSequence obj196 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj196.Steps = list292; reference221 = obj196; - num++; - ref QuestSequence reference222 = ref span283[num]; + ref QuestSequence reference222 = ref span138[6]; QuestSequence obj197 = new QuestSequence { Sequence = 6 @@ -17115,23 +14202,19 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.Interact, 1010250u, new Vector3(448.47778f, 16.154829f, 408.77393f), 137); + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1010250u, new Vector3(448.47778f, 16.154829f, 408.77393f), 137); obj197.Steps = list293; reference222 = obj197; - num++; - ref QuestSequence reference223 = ref span283[num]; + ref QuestSequence reference223 = ref span138[7]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -17141,8 +14224,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num2++; - span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span145[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(154) @@ -17160,16 +14242,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -17177,9 +14256,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -17197,18 +14274,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -17228,16 +14302,13 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - index = 0; - span5[index] = "liza"; + CollectionsMarshal.AsSpan(list5)[0] = "liza"; questRoot2.Author = list5; - index = 6; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - ref QuestSequence reference3 = ref span6[num]; + num = 6; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestSequence reference3 = ref span2[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -17245,9 +14316,8 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span3 = CollectionsMarshal.AsSpan(list7); + span3[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -17268,32 +14338,28 @@ public static class AssemblyQuestLoader } } }; - index2++; - span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span3[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj3.Steps = list7; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span6[num]; + ref QuestSequence reference4 = ref span2[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)139, Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - num2++; - ref QuestStep reference5 = ref span8[num2]; + ref QuestStep reference5 = ref span4[1]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.69995f, -2.0159357f, 48.819775f), 139) { StopDistance = 1f, @@ -17302,19 +14368,15 @@ public static class AssemblyQuestLoader int num3 = 3; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - int num4 = 0; - span9[num4] = 3569u; - num4++; - span9[num4] = 3570u; - num4++; - span9[num4] = 3571u; + Span span5 = CollectionsMarshal.AsSpan(list9); + span5[0] = 3569u; + span5[1] = 3570u; + span5[2] = 3571u; obj5.KillEnemyDataIds = list9; reference5 = obj5; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference6 = ref span6[num]; + ref QuestSequence reference6 = ref span2[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -17322,30 +14384,24 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 2004916u, new Vector3(-436.02655f, -1.9379272f, 48.569458f), 139); + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 2004916u, new Vector3(-436.02655f, -1.9379272f, 48.569458f), 139); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span6[num]; + ref QuestSequence reference7 = ref span2[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span6[num]; + ref QuestSequence reference8 = ref span2[4]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -17353,27 +14409,23 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1010267u, new Vector3(-449.08832f, 21.634577f, -327.93164f), 134) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1010267u, new Vector3(-449.08832f, 21.634577f, -327.93164f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span6[num]; + ref QuestSequence reference9 = ref span2[5]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -17383,8 +14435,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num2++; - span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(155) @@ -17398,16 +14449,13 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "liza"; + CollectionsMarshal.AsSpan(list14)[0] = "liza"; questRoot3.Author = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span7 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference10 = ref span7[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -17415,9 +14463,8 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span8 = CollectionsMarshal.AsSpan(list16); + span8[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -17438,30 +14485,26 @@ public static class AssemblyQuestLoader } } }; - index2++; - span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span8[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span15[num]; + ref QuestSequence reference11 = ref span7[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)129 }; - num2++; - span17[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004863u, new Vector3(4.4403076f, 44.47998f, 121.29382f), 128) + span9[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004863u, new Vector3(4.4403076f, 44.47998f, 121.29382f), 128) { AethernetShortcut = new AethernetShortcut { @@ -17471,8 +14514,7 @@ public static class AssemblyQuestLoader }; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span15[num]; + ref QuestSequence reference12 = ref span7[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -17480,9 +14522,8 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span10 = CollectionsMarshal.AsSpan(list18); + span10[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -17491,8 +14532,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - index2++; - span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f, NextQuestId = new QuestId(212) @@ -17506,30 +14546,24 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; questRoot4.Author = list19; - index = 7; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference13 = ref span20[num]; + num = 7; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span11 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference13 = ref span11[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span20[num]; + ref QuestSequence reference14 = ref span11[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -17537,88 +14571,63 @@ public static class AssemblyQuestLoader num2 = 3; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference15 = ref span22[index2]; + Span span12 = CollectionsMarshal.AsSpan(list22); + ref QuestStep reference15 = ref span12[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000484u, new Vector3(2.0598755f, -7.9139543f, -22.171448f), 148); - 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); + 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); questStep.CompletionQuestVariablesFlags = list23; reference15 = questStep; - index2++; - ref QuestStep reference16 = ref span22[index2]; + ref QuestStep reference16 = ref span12[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list24; reference16 = questStep2; - index2++; - ref QuestStep reference17 = ref span22[index2]; + ref QuestStep reference17 = ref span12[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1000483u, new Vector3(85.496216f, -6.0870457f, 67.00232f), 148); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list25; reference17 = questStep3; obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference18 = ref span20[num]; + ref QuestSequence reference18 = ref span11[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj15.Steps = list26; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span20[num]; + ref QuestSequence reference19 = ref span11[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -17626,11 +14635,9 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - 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]; + 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]; QuestStep questStep4 = new QuestStep(EInteractionType.SinglePlayerDuty, 1003002u, new Vector3(-189.13562f, -26.70127f, 295.52136f), 148); SinglePlayerDutyOptions obj17 = new SinglePlayerDutyOptions { @@ -17639,30 +14646,24 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - 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"; + CollectionsMarshal.AsSpan(list28)[0] = "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; - num++; - ref QuestSequence reference21 = ref span20[num]; + ref QuestSequence reference21 = ref span11[4]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj18.Steps = list29; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span20[num]; + ref QuestSequence reference22 = ref span11[5]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -17670,26 +14671,21 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj19.Steps = list30; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span20[num]; + ref QuestSequence reference23 = ref span11[6]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj20.Steps = list31; reference23 = obj20; questRoot4.QuestSequence = list20; @@ -17699,16 +14695,13 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list32)[0] = "FalconTaterz"; questRoot5.Author = list32; - index = 7; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref QuestSequence reference24 = ref span33[num]; + num = 7; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span17 = CollectionsMarshal.AsSpan(list33); + ref QuestSequence reference24 = ref span17[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -17716,9 +14709,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009357u, new Vector3(528.95386f, 17.44805f, 448.69153f), 137) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009357u, new Vector3(528.95386f, 17.44805f, 448.69153f), 137) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -17732,18 +14723,16 @@ public static class AssemblyQuestLoader }; obj21.Steps = list34; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span33[num]; + ref QuestSequence reference25 = ref span17[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -17752,12 +14741,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num2++; - span35[num2] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); + span18[1] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); obj22.Steps = list35; reference25 = obj22; - num++; - ref QuestSequence reference26 = ref span33[num]; + ref QuestSequence reference26 = ref span17[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -17765,11 +14752,9 @@ public static class AssemblyQuestLoader num2 = 2; 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(-153.18225f, 14.005f, 43.458076f), 130); - index2++; - span36[index2] = new QuestStep(EInteractionType.Interact, 1001857u, new Vector3(-46.76892f, 10f, -12.741333f), 131) + 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) { AethernetShortcut = new AethernetShortcut { @@ -17779,18 +14764,16 @@ public static class AssemblyQuestLoader }; obj23.Steps = list36; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span33[num]; + ref QuestSequence reference27 = ref span17[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -17798,12 +14781,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num2++; - span37[num2] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); + span20[1] = new QuestStep(EInteractionType.Interact, 1010160u, new Vector3(-144.64032f, 12f, -5.6916504f), 130); obj24.Steps = list37; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span33[num]; + ref QuestSequence reference28 = ref span17[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -17811,27 +14792,22 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - 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); + 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); obj25.Steps = list38; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span33[num]; + ref QuestSequence reference29 = ref span17[5]; QuestSequence obj26 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -17839,16 +14815,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num2++; - span39[num2] = new QuestStep(EInteractionType.Interact, 1010281u, new Vector3(-70.96979f, 6.9839683f, 3.982544f), 131) + span22[2] = new QuestStep(EInteractionType.Interact, 1010281u, new Vector3(-70.96979f, 6.9839683f, 3.982544f), 131) { StopDistance = 7f, DisableNavmesh = true }; obj26.Steps = list39; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span33[num]; + ref QuestSequence reference30 = ref span17[6]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -17856,9 +14830,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(-153.18225f, 14.005f, 43.458076f), 130) + Span span23 = CollectionsMarshal.AsSpan(list40); + span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.18225f, 14.005f, 43.458076f), 130) { AethernetShortcut = new AethernetShortcut { @@ -17866,8 +14839,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - index2++; - span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010287u, new Vector3(-142.71765f, 12f, -3.9215698f), 130) + span23[1] = new QuestStep(EInteractionType.CompleteQuest, 1010287u, new Vector3(-142.71765f, 12f, -3.9215698f), 130) { NextQuestId = new QuestId(202) }; @@ -17880,30 +14852,24 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot6.Author = list41; - index = 3; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference31 = ref span42[num]; + num = 3; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span24 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference31 = ref span24[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj28.Steps = list43; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span24[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1, @@ -17912,112 +14878,79 @@ public static class AssemblyQuestLoader num2 = 6; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - 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) + 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) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - ref QuestStep reference33 = ref span44[index2]; + ref QuestStep reference33 = ref span25[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2000141u, new Vector3(179.4613f, -10.666138f, 99.56506f), 148); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list45; reference33 = questStep5; - index2++; - ref QuestStep reference34 = ref span44[index2]; + ref QuestStep reference34 = ref span25[3]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list46; reference34 = questStep6; - index2++; - ref QuestStep reference35 = ref span44[index2]; + ref QuestStep reference35 = ref span25[4]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2000149u, new Vector3(154.0398f, -10.75769f, 120.3479f), 148); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list47; reference35 = questStep7; - index2++; - ref QuestStep reference36 = ref span44[index2]; + ref QuestStep reference36 = ref span25[5]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list48; reference36 = questStep8; obj29.Steps = list44; reference32 = obj29; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span24[2]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj30.Steps = list49; reference37 = obj30; questRoot6.QuestSequence = list42; @@ -18027,16 +14960,13 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = "liza"; + CollectionsMarshal.AsSpan(list50)[0] = "liza"; questRoot7.Author = list50; - index = 2; - List list51 = new List(index); - CollectionsMarshal.SetCount(list51, index); - Span span51 = CollectionsMarshal.AsSpan(list51); - num = 0; - ref QuestSequence reference38 = ref span51[num]; + num = 2; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span30 = CollectionsMarshal.AsSpan(list51); + ref QuestSequence reference38 = ref span30[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -18044,23 +14974,19 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj31.Steps = list52; reference38 = obj31; - num++; - ref QuestSequence reference39 = ref span51[num]; + ref QuestSequence reference39 = ref span30[1]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -18069,18 +14995,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - num2++; - span53[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 148) + span31[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 148) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows }; - num2++; - span53[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) + span31[2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) { TaxiStandId = (byte)9 }; - num2++; - span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + span31[3] = new QuestStep(EInteractionType.CompleteQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj32.Steps = list53; reference39 = obj32; questRoot7.QuestSequence = list51; @@ -18090,16 +15013,12 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot8.Author = list54; - index = 1; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference40 = ref span55[num]; + num = 1; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + ref QuestSequence reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -18107,9 +15026,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref QuestStep reference41 = ref span56[index2]; + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -18124,21 +15041,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list57 = new List(num4); - CollectionsMarshal.SetCount(list57, num4); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = 131; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = 131; obj35.InTerritory = list57; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span58 = CollectionsMarshal.AsSpan(list58); - num4 = 0; - span58[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA001_00177_Q1_000_1") @@ -18154,26 +15067,20 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; questRoot9.Author = list59; - index = 1; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference42 = ref span60[num]; + num = 1; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + ref QuestSequence reference42 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestSequence obj36 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list61)[0]; QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -18185,12 +15092,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list62 = new List(num4); - CollectionsMarshal.SetCount(list62, num4); - Span span62 = CollectionsMarshal.AsSpan(list62); - num3 = 0; - span62[num3] = new DialogueChoice + num3 = 1; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL001_00178_Q1_000_1") @@ -18206,16 +15111,12 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list63)[0] = "Cacahuetes"; questRoot10.Author = list63; - index = 1; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref QuestSequence reference44 = ref span64[num]; + num = 1; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + ref QuestSequence reference44 = ref CollectionsMarshal.AsSpan(list64)[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -18223,9 +15124,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference45 = ref span65[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep obj39 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -18243,18 +15142,14 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - num4 = 0; - span66[num4] = 128; + CollectionsMarshal.AsSpan(list66)[0] = 128; obj40.InTerritory = list66; skipConditions2.AetheryteShortcutIf = obj40; obj39.SkipConditions = skipConditions2; - num4 = 1; - List list67 = new List(num4); - CollectionsMarshal.SetCount(list67, num4); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - span67[num3] = new DialogueChoice + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC001_00179_Q1_000_1") @@ -18270,26 +15165,20 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; questRoot11.Author = list68; - index = 1; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference46 = ref span69[num]; + num = 1; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + ref QuestSequence reference46 = ref CollectionsMarshal.AsSpan(list69)[0]; QuestSequence obj41 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list70)[0]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1000251u, new Vector3(147.08167f, 15.5f, -267.99426f), 133) { AethernetShortcut = new AethernetShortcut @@ -18301,9 +15190,7 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - num4 = 0; - span71[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSLNC999_00180_Q1_000_1") @@ -18319,16 +15206,12 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list72)[0] = "Cacahuetes"; questRoot12.Author = list72; - index = 1; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference48 = ref span73[num]; + num = 1; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + ref QuestSequence reference48 = ref CollectionsMarshal.AsSpan(list73)[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -18336,9 +15219,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference49 = ref span74[index2]; + ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list74)[0]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1000197u, new Vector3(201.31226f, -3.1634123E-15f, 43.900146f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -18355,12 +15236,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list75 = new List(num4); - CollectionsMarshal.SetCount(list75, num4); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - span75[num3] = new DialogueChoice + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARC999_00181_Q1_000_1") @@ -18376,26 +15255,20 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot13.Author = list76; - index = 1; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference50 = ref span77[num]; + num = 1; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + ref QuestSequence reference50 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestSequence obj45 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj46 = new QuestStep(EInteractionType.AcceptQuest, 1000323u, new Vector3(-234.02765f, -4.0000043f, -11.093384f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -18413,18 +15286,14 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num4 = 0; - span79[num4] = 133; + CollectionsMarshal.AsSpan(list79)[0] = 133; obj47.InTerritory = list79; skipConditions3.AetheryteShortcutIf = obj47; obj46.SkipConditions = skipConditions3; - num4 = 1; - List list80 = new List(num4); - CollectionsMarshal.SetCount(list80, num4); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - span80[num3] = new DialogueChoice + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCNJ999_00182_Q1_000_1") @@ -18440,16 +15309,12 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list81)[0] = "Cacahuetes"; questRoot14.Author = list81; - index = 1; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference52 = ref span82[num]; + num = 1; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + ref QuestSequence reference52 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -18457,9 +15322,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference53 = ref span83[index2]; + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list83)[0]; QuestStep obj49 = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -18479,9 +15342,7 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span84 = CollectionsMarshal.AsSpan(list84); - num4 = 0; - span84[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM001_00183_Q1_000_1") @@ -18497,26 +15358,20 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list85)[0] = "Cacahuetes"; questRoot15.Author = list85; - index = 1; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference54 = ref span86[num]; + num = 1; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + ref QuestSequence reference54 = ref CollectionsMarshal.AsSpan(list86)[0]; QuestSequence obj50 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list87)[0]; QuestStep obj51 = new QuestStep(EInteractionType.AcceptQuest, 1000148u, new Vector3(-20.279297f, -3.25f, 45.97534f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -18528,12 +15383,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list88 = new List(num4); - CollectionsMarshal.SetCount(list88, num4); - Span span88 = CollectionsMarshal.AsSpan(list88); - num3 = 0; - span88[num3] = new DialogueChoice + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWDK999_00184_Q1_000_1") @@ -18549,16 +15402,12 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list89)[0] = "Cacahuetes"; questRoot16.Author = list89; - index = 1; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference56 = ref span90[num]; + num = 1; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + ref QuestSequence reference56 = ref CollectionsMarshal.AsSpan(list90)[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -18566,9 +15415,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - ref QuestStep reference57 = ref span91[index2]; + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list91)[0]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -18586,18 +15433,14 @@ public static class AssemblyQuestLoader num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span92 = CollectionsMarshal.AsSpan(list92); - num4 = 0; - span92[num4] = 128; + CollectionsMarshal.AsSpan(list92)[0] = 128; obj54.InTerritory = list92; skipConditions4.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions4; - num4 = 1; - List list93 = new List(num4); - CollectionsMarshal.SetCount(list93, num4); - Span span93 = CollectionsMarshal.AsSpan(list93); - num3 = 0; - span93[num3] = new DialogueChoice + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM001_00185_Q1_000_1") @@ -18614,26 +15457,20 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list94)[0] = "Cacahuetes"; questRoot17.Author = list94; - index = 1; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference58 = ref span95[num]; + num = 1; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + ref QuestSequence reference58 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestSequence obj55 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj56 = new QuestStep(EInteractionType.AcceptQuest, 1000998u, new Vector3(-51.651794f, 42.79979f, 190.41736f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -18651,18 +15488,14 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span97 = CollectionsMarshal.AsSpan(list97); - num4 = 0; - span97[num4] = 128; + CollectionsMarshal.AsSpan(list97)[0] = 128; obj57.InTerritory = list97; skipConditions5.AetheryteShortcutIf = obj57; obj56.SkipConditions = skipConditions5; - num4 = 1; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = new DialogueChoice + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARM001_00186_Q1_000_1") @@ -18678,16 +15511,12 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list99)[0] = "Cacahuetes"; questRoot18.Author = list99; - index = 1; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference60 = ref span100[num]; + num = 1; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + ref QuestSequence reference60 = ref CollectionsMarshal.AsSpan(list100)[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -18695,9 +15524,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - ref QuestStep reference61 = ref span101[index2]; + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list101)[0]; QuestStep obj59 = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -18715,18 +15542,14 @@ public static class AssemblyQuestLoader num3 = 1; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span102 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span102[num4] = 131; + CollectionsMarshal.AsSpan(list102)[0] = 131; obj60.InTerritory = list102; skipConditions6.AetheryteShortcutIf = obj60; obj59.SkipConditions = skipConditions6; - num4 = 1; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = new DialogueChoice + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLD001_00187_Q1_000_1") @@ -18742,26 +15565,20 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list104)[0] = "Cacahuetes"; questRoot19.Author = list104; - index = 1; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference62 = ref span105[num]; + num = 1; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + ref QuestSequence reference62 = ref CollectionsMarshal.AsSpan(list105)[0]; QuestSequence obj61 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list106)[0]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1000352u, new Vector3(65.69006f, 8f, -147.41742f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -18779,18 +15596,14 @@ public static class AssemblyQuestLoader num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num4 = 0; - span107[num4] = 133; + CollectionsMarshal.AsSpan(list107)[0] = 133; obj63.InTerritory = list107; skipConditions7.AetheryteShortcutIf = obj63; obj62.SkipConditions = skipConditions7; - num4 = 1; - List list108 = new List(num4); - CollectionsMarshal.SetCount(list108, num4); - Span span108 = CollectionsMarshal.AsSpan(list108); - num3 = 0; - span108[num3] = new DialogueChoice + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTAN999_00188_Q1_000_1") @@ -18806,16 +15619,12 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list109)[0] = "Cacahuetes"; questRoot20.Author = list109; - index = 1; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference64 = ref span110[num]; + num = 1; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + ref QuestSequence reference64 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -18823,9 +15632,7 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - ref QuestStep reference65 = ref span111[index2]; + ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list111)[0]; QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -18843,18 +15650,14 @@ public static class AssemblyQuestLoader num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - Span span112 = CollectionsMarshal.AsSpan(list112); - num4 = 0; - span112[num4] = 131; + CollectionsMarshal.AsSpan(list112)[0] = 131; obj66.InTerritory = list112; skipConditions8.AetheryteShortcutIf = obj66; obj65.SkipConditions = skipConditions8; - num4 = 1; - List list113 = new List(num4); - CollectionsMarshal.SetCount(list113, num4); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - span113[num3] = new DialogueChoice + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWVR001_00189_Q1_000_1") @@ -18870,26 +15673,20 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list114)[0] = "Cacahuetes"; questRoot21.Author = list114; - index = 1; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference66 = ref span115[num]; + num = 1; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + ref QuestSequence reference66 = ref CollectionsMarshal.AsSpan(list115)[0]; QuestSequence obj67 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list116)[0]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -18907,18 +15704,14 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span117 = CollectionsMarshal.AsSpan(list117); - num4 = 0; - span117[num4] = 131; + CollectionsMarshal.AsSpan(list117)[0] = 131; obj69.InTerritory = list117; skipConditions9.AetheryteShortcutIf = obj69; obj68.SkipConditions = skipConditions9; - num4 = 1; - List list118 = new List(num4); - CollectionsMarshal.SetCount(list118, num4); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - span118[num3] = new DialogueChoice + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSALC001_00190_Q1_1") @@ -18934,16 +15727,12 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list119)[0] = "Cacahuetes"; questRoot22.Author = list119; - index = 1; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference68 = ref span120[num]; + num = 1; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + ref QuestSequence reference68 = ref CollectionsMarshal.AsSpan(list120)[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -18951,9 +15740,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - ref QuestStep reference69 = ref span121[index2]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list121)[0]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1000946u, new Vector3(-61.142883f, 42.299698f, -164.0498f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -18971,18 +15758,14 @@ public static class AssemblyQuestLoader num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num4 = 0; - span122[num4] = 128; + CollectionsMarshal.AsSpan(list122)[0] = 128; obj72.InTerritory = list122; skipConditions10.AetheryteShortcutIf = obj72; obj71.SkipConditions = skipConditions10; - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = new DialogueChoice + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCUL001_00191_Q1_000_1") @@ -18998,26 +15781,20 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "liza"; + CollectionsMarshal.AsSpan(list124)[0] = "liza"; questRoot23.Author = list124; - index = 1; - List list125 = new List(index); - CollectionsMarshal.SetCount(list125, index); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference70 = ref span125[num]; + num = 1; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + ref QuestSequence reference70 = ref CollectionsMarshal.AsSpan(list125)[0]; QuestSequence obj73 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list126)[0]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1002282u, new Vector3(3.5552979f, 7.5999613f, 153.2157f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -19035,18 +15812,14 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span127 = CollectionsMarshal.AsSpan(list127); - num4 = 0; - span127[num4] = 131; + CollectionsMarshal.AsSpan(list127)[0] = 131; obj75.InTerritory = list127; skipConditions11.AetheryteShortcutIf = obj75; obj74.SkipConditions = skipConditions11; - num4 = 1; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = new DialogueChoice + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSMIN001_00192_Q1_000_1") @@ -19062,16 +15835,12 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - Span span129 = CollectionsMarshal.AsSpan(list129); - index = 0; - span129[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list129)[0] = "Cacahuetes"; questRoot24.Author = list129; - index = 1; - List list130 = new List(index); - CollectionsMarshal.SetCount(list130, index); - Span span130 = CollectionsMarshal.AsSpan(list130); - num = 0; - ref QuestSequence reference72 = ref span130[num]; + num = 1; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + ref QuestSequence reference72 = ref CollectionsMarshal.AsSpan(list130)[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -19079,9 +15848,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - ref QuestStep reference73 = ref span131[index2]; + ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list131)[0]; QuestStep obj77 = new QuestStep(EInteractionType.AcceptQuest, 1000294u, new Vector3(-238.05603f, 8f, -142.93127f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -19099,18 +15866,14 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span132 = CollectionsMarshal.AsSpan(list132); - num4 = 0; - span132[num4] = 133; + CollectionsMarshal.AsSpan(list132)[0] = 133; obj78.InTerritory = list132; skipConditions12.AetheryteShortcutIf = obj78; obj77.SkipConditions = skipConditions12; - num4 = 1; - List list133 = new List(num4); - CollectionsMarshal.SetCount(list133, num4); - Span span133 = CollectionsMarshal.AsSpan(list133); - num3 = 0; - span133[num3] = new DialogueChoice + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSHRV999_00193_Q1_000_1") @@ -19130,16 +15893,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -19147,25 +15907,20 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; QuestStep obj3 = new QuestStep(EInteractionType.PurchaseItem, 1000396u, new Vector3(82.597046f, -7.893894f, -103.349365f), 148) { ItemId = 2653u, @@ -19181,9 +15936,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = EExtendedClassJob.DoW; + CollectionsMarshal.AsSpan(list5)[0] = EExtendedClassJob.DoW; obj3.RequiredCurrentJob = list5; obj3.PurchaseMenu = new PurchaseMenu { @@ -19191,19 +15944,16 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262227u) }; reference3 = obj3; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[2]; QuestStep obj4 = new QuestStep(EInteractionType.PurchaseItem, 1000396u, new Vector3(82.597046f, -7.893894f, -103.349365f), 148) { ItemId = 2655u, ItemCount = 1 }; - index3 = 1; - List list6 = new List(index3); - CollectionsMarshal.SetCount(list6, index3); - Span span6 = CollectionsMarshal.AsSpan(list6); - num3 = 0; - span6[num3] = EExtendedClassJob.DoM; + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = EExtendedClassJob.DoM; obj4.RequiredCurrentJob = list6; obj4.PurchaseMenu = new PurchaseMenu { @@ -19211,8 +15961,7 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262227u) }; reference4 = obj4; - num2++; - span4[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 148) + span2[3] = new QuestStep(EInteractionType.EquipItem, null, null, 148) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -19226,8 +15975,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span4[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 148) + span2[4] = new QuestStep(EInteractionType.EquipItem, null, null, 148) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -19241,8 +15989,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span4[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148) + span2[5] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148) { Comment = "All starting gear (except the hat) is ilvl 5 already" }; @@ -19255,16 +16002,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list7)[0] = "FalconTaterz"; questRoot2.Author = list7; - index = 6; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 6; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -19272,25 +16016,20 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010279u, new Vector3(-143.60266f, 11.999999f, -3.8911133f), 130); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010279u, new Vector3(-143.60266f, 11.999999f, -3.8911133f), 130); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -19300,8 +16039,7 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -19309,36 +16047,30 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.649715f, -11.872707f, -61.934204f), 141) + Span span5 = CollectionsMarshal.AsSpan(list11); + span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.649715f, -11.872707f, -61.934204f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - index2++; - span11[index2] = new QuestStep(EInteractionType.Interact, 1010293u, new Vector3(-61.387024f, -11.84896f, -63.126587f), 141); + span5[1] = new QuestStep(EInteractionType.Interact, 1010293u, new Vector3(-61.387024f, -11.84896f, -63.126587f), 141); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span3[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span3[4]; QuestSequence obj9 = new QuestSequence { Sequence = 4 @@ -19346,9 +16078,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1010310u, new Vector3(-55.436035f, 3.4680986f, 260.57825f), 141) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1010310u, new Vector3(-55.436035f, 3.4680986f, 260.57825f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -19360,18 +16090,16 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span8[num]; + ref QuestSequence reference10 = ref span3[5]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -19380,8 +16108,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num2++; - span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130) + span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130) { NextQuestId = new QuestId(203) }; @@ -19394,16 +16121,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list15)[0] = "FalconTaterz"; questRoot3.Author = list15; - index = 6; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 6; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span7 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span7[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -19411,25 +16135,20 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010290u, new Vector3(-144.73187f, 11.999999f, -5.661133f), 130); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span7[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -19439,8 +16158,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span7[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -19448,9 +16166,8 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-45.67461f, 11.927631f, -16.919664f), 131) + Span span9 = CollectionsMarshal.AsSpan(list19); + span9[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-45.67461f, 11.927631f, -16.919664f), 131) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -19458,25 +16175,22 @@ public static class AssemblyQuestLoader Position = new Vector3(-48.14437f, 9.999995f, -10.52473f) } }; - index2++; - span19[index2] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) + span9[1] = new QuestStep(EInteractionType.Interact, 1010316u, new Vector3(-54.581604f, 9.999972f, -12.64978f), 131) { StopDistance = 7f }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span7[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 4; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span10 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span10[0]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2004901u, new Vector3(103.50195f, 7.9804688f, 8.255066f), 131) { AethernetShortcut = new AethernetShortcut @@ -19488,69 +16202,47 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - 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); + 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); obj15.CompletionQuestVariablesFlags = list21; reference15 = obj15; - num2++; - span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(108.07826f, 8f, 8.036793f), 131); - num2++; - ref QuestStep reference16 = ref span20[num2]; + span10[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(108.07826f, 8f, 8.036793f), 131); + ref QuestStep reference16 = ref span10[2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2004900u, new Vector3(103.715576f, 7.9804688f, -35.233154f), 131); - 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); + 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); questStep.CompletionQuestVariablesFlags = list22; reference16 = questStep; - num2++; - ref QuestStep reference17 = ref span20[num2]; + ref QuestStep reference17 = ref span10[3]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list23; reference17 = questStep2; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference18 = ref span16[num]; + ref QuestSequence reference18 = ref span7[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -19558,11 +16250,9 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -19572,18 +16262,16 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference18 = obj16; - num++; - ref QuestSequence reference19 = ref span16[num]; + ref QuestSequence reference19 = ref span7[5]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -19591,8 +16279,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - num2++; - span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { StopDistance = 5f, NextQuestId = new QuestId(204) @@ -19606,16 +16293,13 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list26)[0] = "FalconTaterz"; questRoot4.Author = list26; - index = 7; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 7; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span16 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span16[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -19623,23 +16307,19 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010317u, new Vector3(139.78784f, 4.0099993f, -57.114563f), 131); + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010317u, new Vector3(139.78784f, 4.0099993f, -57.114563f), 131); obj18.Steps = list28; reference20 = obj18; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span16[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -19647,18 +16327,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num2++; - ref QuestStep reference22 = ref span29[num2]; + ref QuestStep reference22 = ref span17[1]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) { DisableNavmesh = true }; - index3 = 1; - List list30 = new List(index3); - CollectionsMarshal.SetCount(list30, index3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num3 = 0; - span30[num3] = new DialogueChoice + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB404_00204_Q1_000_000") @@ -19667,8 +16344,7 @@ public static class AssemblyQuestLoader reference22 = obj20; obj19.Steps = list29; reference21 = obj19; - num++; - ref QuestSequence reference23 = ref span27[num]; + ref QuestSequence reference23 = ref span16[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -19676,34 +16352,28 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.Interact, 1010772u, new Vector3(-72.40405f, 6.9839687f, -0.045776367f), 131) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1010772u, new Vector3(-72.40405f, 6.9839687f, -0.045776367f), 131) { StopDistance = 5f }; obj21.Steps = list31; reference23 = obj21; - num++; - ref QuestSequence reference24 = ref span27[num]; + ref QuestSequence reference24 = ref span16[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj22.Steps = list32; reference24 = obj22; - num++; - ref QuestSequence reference25 = ref span27[num]; + ref QuestSequence reference25 = ref span16[4]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -19711,9 +16381,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Duty, null, null, 145) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 145) { DutyOptions = new DutyOptions { @@ -19722,22 +16390,18 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference25 = obj23; - num++; - ref QuestSequence reference26 = ref span27[num]; + ref QuestSequence reference26 = ref span16[5]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj24.Steps = list34; reference26 = obj24; - num++; - ref QuestSequence reference27 = ref span27[num]; + ref QuestSequence reference27 = ref span16[6]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -19745,9 +16409,8 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) + Span span18 = CollectionsMarshal.AsSpan(list35); + span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-72.12142f, 6.9845715f, 8.82207f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -19756,8 +16419,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - index2++; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) + span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1010330u, new Vector3(-69.5354f, 6.9839687f, 0.07623291f), 131) { DisableNavmesh = true, NextQuestId = new QuestId(490) @@ -19771,35 +16433,29 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot5.Author = list36; - index = 2; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference28 = ref span37[num]; + num = 2; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span19 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference28 = ref span19[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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) + 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) { ItemId = 2314u }; - num2++; - span38[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj26.Steps = list38; reference28 = obj26; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span19[1]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -19807,9 +16463,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj27.Steps = list39; reference29 = obj27; questRoot5.QuestSequence = list37; @@ -19819,26 +16473,22 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot6.Author = list40; - index = 2; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference30 = ref span41[num]; + num = 2; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span21 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference30 = ref span21[0]; QuestSequence obj28 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + Span span22 = CollectionsMarshal.AsSpan(list42); + ref QuestStep reference31 = ref span22[0]; QuestStep obj29 = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -19866,21 +16516,16 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span43 = CollectionsMarshal.AsSpan(list43); - index3 = 0; - span43[index3] = 133; + CollectionsMarshal.AsSpan(list43)[0] = 133; obj31.InTerritory = list43; obj30.AetheryteShortcutIf = obj31; obj29.SkipConditions = obj30; reference31 = obj29; - 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); + 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); obj28.Steps = list42; reference30 = obj28; - num++; - ref QuestSequence reference32 = ref span41[num]; + ref QuestSequence reference32 = ref span21[1]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -19888,24 +16533,20 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - ref QuestStep reference33 = ref span44[index2]; + Span span23 = CollectionsMarshal.AsSpan(list44); + ref QuestStep reference33 = ref span23[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 154); - index3 = 1; - List list45 = new List(index3); - CollectionsMarshal.SetCount(list45, index3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = new GatheredItem + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new GatheredItem { ItemId = 5509u, ItemCount = 10 }; questStep3.ItemsToGather = list45; reference33 = questStep3; - index2++; - span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + span23[1] = new QuestStep(EInteractionType.CompleteQuest, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -19924,26 +16565,21 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot7.Author = list46; - index = 3; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference34 = ref span47[num]; + num = 3; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span24 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference34 = ref span24[0]; QuestSequence obj33 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -19961,17 +16597,14 @@ public static class AssemblyQuestLoader num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span49 = CollectionsMarshal.AsSpan(list49); - index3 = 0; - span49[index3] = 133; + CollectionsMarshal.AsSpan(list49)[0] = 133; obj35.InTerritory = list49; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; reference35 = obj34; obj33.Steps = list48; reference34 = obj33; - num++; - ref QuestSequence reference36 = ref span47[num]; + ref QuestSequence reference36 = ref span24[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -19979,9 +16612,8 @@ public static class AssemblyQuestLoader num2 = 3; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - ref QuestStep reference37 = ref span50[index2]; + Span span25 = CollectionsMarshal.AsSpan(list50); + ref QuestStep reference37 = ref span25[0]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -19991,12 +16623,10 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list51 = new List(index3); - CollectionsMarshal.SetCount(list51, index3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - ref ComplexCombatData reference38 = ref span51[num3]; + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + ref ComplexCombatData reference38 = ref CollectionsMarshal.AsSpan(list51)[0]; ComplexCombatData obj38 = new ComplexCombatData { DataId = 37u, @@ -20005,106 +16635,76 @@ public static class AssemblyQuestLoader int num4 = 6; List list52 = new List(num4); CollectionsMarshal.SetCount(list52, num4); - 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; + 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; obj38.CompletionQuestVariablesFlags = list52; reference38 = obj38; obj37.ComplexCombatData = list51; num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - 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; + 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; obj37.CompletionQuestVariablesFlags = list53; reference37 = obj37; - index2++; - ref QuestStep reference39 = ref span50[index2]; + ref QuestStep reference39 = ref span25[1]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - ref ComplexCombatData reference40 = ref span54[num3]; + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + ref ComplexCombatData reference40 = ref CollectionsMarshal.AsSpan(list54)[0]; ComplexCombatData obj40 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj40.CompletionQuestVariablesFlags = list55; reference40 = obj40; obj39.ComplexCombatData = list54; num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - 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; + 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; obj39.CompletionQuestVariablesFlags = list56; reference39 = obj39; - index2++; - ref QuestStep reference41 = ref span50[index2]; + ref QuestStep reference41 = ref span25[2]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list57 = new List(index3); - CollectionsMarshal.SetCount(list57, index3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - ref ComplexCombatData reference42 = ref span57[num3]; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + ref ComplexCombatData reference42 = ref CollectionsMarshal.AsSpan(list57)[0]; ComplexCombatData obj42 = new ComplexCombatData { DataId = 47u, @@ -20113,54 +16713,39 @@ public static class AssemblyQuestLoader num4 = 6; List list58 = new List(num4); CollectionsMarshal.SetCount(list58, num4); - 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; + 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; obj42.CompletionQuestVariablesFlags = list58; reference42 = obj42; obj41.ComplexCombatData = list57; num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - 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; + 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; obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; obj36.Steps = list50; reference36 = obj36; - num++; - ref QuestSequence reference43 = ref span47[num]; + ref QuestSequence reference43 = ref span24[2]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -20179,16 +16764,13 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "xan"; + CollectionsMarshal.AsSpan(list61)[0] = "xan"; questRoot8.Author = list61; - index = 8; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference44 = ref span62[num]; + num = 8; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span32 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference44 = ref span32[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -20196,9 +16778,8 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) + Span span33 = CollectionsMarshal.AsSpan(list63); + span33[0] = new QuestStep(EInteractionType.Interact, 1009944u, new Vector3(-152.66656f, 2.8562405f, 243.18298f), 129) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -20219,25 +16800,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) + span33[1] = new QuestStep(EInteractionType.AcceptQuest, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129) { StopDistance = 7f }; obj44.Steps = list63; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span62[num]; + ref QuestSequence reference45 = ref span32[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -20250,8 +16827,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span62[num]; + ref QuestSequence reference46 = ref span32[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -20259,16 +16835,12 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference47 = ref span65[index2]; + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1010603u, new Vector3(-67.36859f, 70.39888f, 11.032227f), 137); - index3 = 1; - List list66 = new List(index3); - CollectionsMarshal.SetCount(list66, index3); - Span span66 = CollectionsMarshal.AsSpan(list66); - num3 = 0; - span66[num3] = new DialogueChoice + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q1_000_000"), @@ -20278,25 +16850,21 @@ public static class AssemblyQuestLoader reference47 = questStep4; obj46.Steps = list65; reference46 = obj46; - num++; - ref QuestSequence reference48 = ref span62[num]; + ref QuestSequence reference48 = ref span32[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj47.Steps = list67; reference48 = obj47; - num++; - ref QuestSequence reference49 = ref span62[num]; + ref QuestSequence reference49 = ref span32[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -20304,9 +16872,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Interact, 1010611u, new Vector3(585.1987f, -2.4988298f, 221.85083f), 139) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1010611u, new Vector3(585.1987f, -2.4988298f, 221.85083f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -20320,18 +16886,15 @@ public static class AssemblyQuestLoader }; obj48.Steps = list68; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span62[num]; + ref QuestSequence reference50 = ref span32[5]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list69 = new List(index2); - CollectionsMarshal.SetCount(list69, index2); - Span span69 = CollectionsMarshal.AsSpan(list69); - num2 = 0; - ref QuestStep reference51 = ref span69[num2]; + num2 = 1; + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list69)[0]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1010615u, new Vector3(-8.529846f, 39.569904f, 260.8529f), 137) { Fly = true, @@ -20347,9 +16910,7 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - index3 = 0; - span70[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list70)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q2_000_000") @@ -20358,8 +16919,7 @@ public static class AssemblyQuestLoader reference51 = obj50; obj49.Steps = list69; reference50 = obj49; - num++; - ref QuestSequence reference52 = ref span62[num]; + ref QuestSequence reference52 = ref span32[6]; QuestSequence obj51 = new QuestSequence { Sequence = 6 @@ -20367,19 +16927,15 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - ref QuestStep reference53 = ref span71[index2]; + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list71)[0]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137 }; - index3 = 1; - List list72 = new List(index3); - CollectionsMarshal.SetCount(list72, index3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = new DialogueChoice + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN300_00212_Q3_000_000"), @@ -20389,18 +16945,15 @@ public static class AssemblyQuestLoader reference53 = obj52; obj51.Steps = list71; reference52 = obj51; - num++; - ref QuestSequence reference54 = ref span62[num]; + ref QuestSequence reference54 = ref span32[7]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(213) }; @@ -20413,16 +16966,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "xan"; + CollectionsMarshal.AsSpan(list74)[0] = "xan"; questRoot9.Author = list74; - index = 6; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference55 = ref span75[num]; + num = 6; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span34 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference55 = ref span34[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -20430,9 +16980,8 @@ public static class AssemblyQuestLoader num2 = 3; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span35 = CollectionsMarshal.AsSpan(list76); + span35[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, Comment = "Gatekeep", @@ -20449,27 +16998,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span76[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + span35[1] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 7886u }; - index2++; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span35[2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj54.Steps = list76; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span75[num]; + ref QuestSequence reference56 = ref span34[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -20485,15 +17030,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span77[num2] = new QuestStep(EInteractionType.Action, 2004927u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + span36[1] = new QuestStep(EInteractionType.Action, 2004927u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { Action = EAction.FumaShuriken }; obj55.Steps = list77; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span75[num]; + ref QuestSequence reference57 = ref span34[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -20501,32 +17044,25 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137); obj56.Steps = list78; reference57 = obj56; - num++; - ref QuestSequence reference58 = ref span75[num]; + ref QuestSequence reference58 = ref span34[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj57.Steps = list79; reference58 = obj57; - num++; - span75[num] = new QuestSequence + span34[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference59 = ref span75[num]; + ref QuestSequence reference59 = ref span34[5]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -20534,9 +17070,7 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010616u, new Vector3(-4.348877f, 39.531937f, 247.63867f), 137) { NextQuestId = new QuestId(214) }; @@ -20549,26 +17083,21 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "xan"; + CollectionsMarshal.AsSpan(list81)[0] = "xan"; questRoot10.Author = list81; - index = 2; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference60 = ref span82[num]; + num = 2; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span37 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference60 = ref span37[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -20581,8 +17110,7 @@ public static class AssemblyQuestLoader }; obj59.Steps = list83; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span82[num]; + ref QuestSequence reference61 = ref span37[1]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -20590,14 +17118,12 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span38 = CollectionsMarshal.AsSpan(list84); + span38[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137 }; - index2++; - span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(215) }; @@ -20610,26 +17136,22 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "xan"; + CollectionsMarshal.AsSpan(list85)[0] = "xan"; questRoot11.Author = list85; - index = 8; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference62 = ref span86[num]; + num = 8; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span39 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference62 = ref span39[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -20645,12 +17167,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span87[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span40[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj61.Steps = list87; reference62 = obj61; - num++; - ref QuestSequence reference63 = ref span86[num]; + ref QuestSequence reference63 = ref span39[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -20658,9 +17178,8 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) + Span span41 = CollectionsMarshal.AsSpan(list88); + span41[0] = new QuestStep(EInteractionType.Interact, 2004966u, new Vector3(-16.128845f, -23.300598f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -20676,29 +17195,24 @@ public static class AssemblyQuestLoader } } }; - index2++; - span88[index2] = new QuestStep(EInteractionType.Action, 2004928u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + span41[1] = new QuestStep(EInteractionType.Action, 2004928u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { Action = EAction.Raiton }; obj62.Steps = list88; reference63 = obj62; - num++; - ref QuestSequence reference64 = ref span86[num]; + ref QuestSequence reference64 = ref span39[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj63.Steps = list89; reference64 = obj63; - num++; - ref QuestSequence reference65 = ref span86[num]; + ref QuestSequence reference65 = ref span39[3]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -20706,31 +17220,25 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Action, 2004929u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Action, 2004929u, new Vector3(-10.605103f, 41.397705f, 267.87207f), 137) { StopDistance = 7f, Action = EAction.Katon }; obj64.Steps = list90; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span86[num]; + ref QuestSequence reference66 = ref span39[4]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj65.Steps = list91; reference66 = obj65; - num++; - ref QuestSequence reference67 = ref span86[num]; + ref QuestSequence reference67 = ref span39[5]; QuestSequence obj66 = new QuestSequence { Sequence = 5 @@ -20738,9 +17246,8 @@ public static class AssemblyQuestLoader num2 = 2; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - ref QuestStep reference68 = ref span92[index2]; + Span span42 = CollectionsMarshal.AsSpan(list92); + ref QuestStep reference68 = ref span42[0]; QuestStep obj67 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.71924f, 32.11566f, -14.989758f), 138) { TargetTerritoryId = (ushort)139, @@ -20752,45 +17259,36 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = 139; + CollectionsMarshal.AsSpan(list93)[0] = 139; skipStepConditions.InTerritory = list93; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list94 = new List(index3); - CollectionsMarshal.SetCount(list94, index3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = 139; + num3 = 1; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = 139; skipAetheryteCondition.InTerritory = list94; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj67.SkipConditions = skipConditions2; reference68 = obj67; - index2++; - span92[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) + span42[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010618u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) { Fly = true }; obj66.Steps = list92; reference67 = obj66; - num++; - ref QuestSequence reference69 = ref span86[num]; + ref QuestSequence reference69 = ref span39[6]; QuestSequence obj68 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj68.Steps = list95; reference69 = obj68; - num++; - ref QuestSequence reference70 = ref span86[num]; + ref QuestSequence reference70 = ref span39[7]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -20798,9 +17296,8 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span43 = CollectionsMarshal.AsSpan(list96); + span43[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -20816,8 +17313,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(216) }; @@ -20830,26 +17326,22 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "xan"; + CollectionsMarshal.AsSpan(list97)[0] = "xan"; questRoot12.Author = list97; - index = 2; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference71 = ref span98[num]; + num = 2; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span44 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference71 = ref span44[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -20865,15 +17357,12 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference72 = ref span99[num2]; + ref QuestStep reference72 = ref span45[1]; 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); - Span span100 = CollectionsMarshal.AsSpan(list100); - index3 = 0; - span100[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list100)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN400_00216_Q1_000_000"), @@ -20883,8 +17372,7 @@ public static class AssemblyQuestLoader reference72 = questStep5; obj70.Steps = list99; reference71 = obj70; - num++; - ref QuestSequence reference73 = ref span98[num]; + ref QuestSequence reference73 = ref span44[1]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -20892,9 +17380,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010619u, new Vector3(473.13635f, 16.492989f, 67.33801f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -20915,26 +17401,21 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "xan"; + CollectionsMarshal.AsSpan(list102)[0] = "xan"; questRoot13.Author = list102; - index = 7; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference74 = ref span103[num]; + num = 7; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span46 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference74 = ref span46[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -20947,8 +17428,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list104; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span103[num]; + ref QuestSequence reference75 = ref span46[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -20956,53 +17436,45 @@ public static class AssemblyQuestLoader num2 = 4; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) + Span span47 = CollectionsMarshal.AsSpan(list105); + span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.00787f, 16.493f, 62.747707f), 139) { Mount = false }; - index2++; - span105[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) + span47[1] = 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) } }; - index2++; - span105[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) + span47[2] = 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) } }; - index2++; - span105[index2] = new QuestStep(EInteractionType.Interact, 2004930u, new Vector3(439.78027f, 12.161377f, 70.54236f), 139); + span47[3] = new QuestStep(EInteractionType.Interact, 2004930u, new Vector3(439.78027f, 12.161377f, 70.54236f), 139); obj73.Steps = list105; reference75 = obj73; - num++; - ref QuestSequence reference76 = ref span103[num]; + ref QuestSequence reference76 = ref span46[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span106[num2] = new QuestStep(EInteractionType.Interact, 1010622u, new Vector3(488.365f, 16.907331f, 86.71704f), 139); + span48[1] = new QuestStep(EInteractionType.Interact, 1010622u, new Vector3(488.365f, 16.907331f, 86.71704f), 139); obj74.Steps = list106; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span103[num]; + ref QuestSequence reference77 = ref span46[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -21010,48 +17482,40 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1010623u, new Vector3(413.47375f, 3.6090105f, 76.21875f), 139); + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1010623u, new Vector3(413.47375f, 3.6090105f, 76.21875f), 139); obj75.Steps = list107; reference77 = obj75; - num++; - ref QuestSequence reference78 = ref span103[num]; + ref QuestSequence reference78 = ref span46[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Mount = false }; - num2++; - span108[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(472.10626f, 16.493f, 62.870472f), 139) + span49[1] = 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) } }; - num2++; - span108[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(462.61212f, 12.600694f, 60.520195f), 139) + span49[2] = 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) } }; - num2++; - span108[num2] = new QuestStep(EInteractionType.Interact, 1010621u, new Vector3(441.94702f, 15.396649f, 65.659546f), 139); + span49[3] = new QuestStep(EInteractionType.Interact, 1010621u, new Vector3(441.94702f, 15.396649f, 65.659546f), 139); obj76.Steps = list108; reference78 = obj76; - num++; - ref QuestSequence reference79 = ref span103[num]; + ref QuestSequence reference79 = ref span46[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -21059,9 +17523,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004931u, new Vector3(305.5924f, -25.0401f, 229.63293f), 138) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004931u, new Vector3(305.5924f, -25.0401f, 229.63293f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -21074,18 +17536,16 @@ public static class AssemblyQuestLoader }; obj77.Steps = list109; reference79 = obj77; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span46[6]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -21101,8 +17561,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(232) }; @@ -21115,16 +17574,13 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list111)[0] = "Cacahuetes"; questRoot14.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference81 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span51 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference81 = ref span51[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -21132,9 +17588,8 @@ public static class AssemblyQuestLoader num2 = 3; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - ref QuestStep reference82 = ref span113[index2]; + Span span52 = CollectionsMarshal.AsSpan(list113); + ref QuestStep reference82 = ref span52[0]; QuestStep obj80 = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -21150,34 +17605,28 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list114 = new List(index3); - CollectionsMarshal.SetCount(list114, index3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = 133; + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = 133; obj81.InTerritory = list114; skipConditions3.AetheryteShortcutIf = obj81; obj80.SkipConditions = skipConditions3; reference82 = obj80; - 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); + 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); obj79.Steps = list113; reference81 = obj79; - num++; - ref QuestSequence reference83 = ref span112[num]; + ref QuestSequence reference83 = ref span51[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list115 = new List(index2); - CollectionsMarshal.SetCount(list115, index2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num2 = 0; - ref QuestStep reference84 = ref span115[num2]; + num2 = 3; + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + Span span53 = CollectionsMarshal.AsSpan(list115); + ref QuestStep reference84 = ref span53[0]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.18397f, 17.128555f, -269.5008f), 148) { AethernetShortcut = new AethernetShortcut @@ -21190,53 +17639,38 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span116 = CollectionsMarshal.AsSpan(list116); - index3 = 0; - ref ComplexCombatData reference85 = ref span116[index3]; + ref ComplexCombatData reference85 = ref CollectionsMarshal.AsSpan(list116)[0]; ComplexCombatData obj84 = new ComplexCombatData { DataId = 37u, MinimumKillCount = 3u }; - 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; + 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; obj84.CompletionQuestVariablesFlags = list117; reference85 = obj84; obj83.ComplexCombatData = list116; - 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; + 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; obj83.CompletionQuestVariablesFlags = list118; reference84 = obj83; - num2++; - ref QuestStep reference86 = ref span115[num2]; + ref QuestStep reference86 = ref span53[1]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(119.449745f, 17.399649f, -259.6467f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -21244,9 +17678,7 @@ public static class AssemblyQuestLoader num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span119 = CollectionsMarshal.AsSpan(list119); - index3 = 0; - ref ComplexCombatData reference87 = ref span119[index3]; + ref ComplexCombatData reference87 = ref CollectionsMarshal.AsSpan(list119)[0]; ComplexCombatData obj86 = new ComplexCombatData { DataId = 49u, @@ -21255,42 +17687,29 @@ public static class AssemblyQuestLoader num4 = 6; List list120 = new List(num4); CollectionsMarshal.SetCount(list120, num4); - 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; + 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; obj86.CompletionQuestVariablesFlags = list120; reference87 = obj86; obj85.ComplexCombatData = list119; - 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; + 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; obj85.CompletionQuestVariablesFlags = list121; reference86 = obj85; - num2++; - ref QuestStep reference88 = ref span115[num2]; + ref QuestStep reference88 = ref span53[2]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -21298,55 +17717,40 @@ public static class AssemblyQuestLoader num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span122 = CollectionsMarshal.AsSpan(list122); - index3 = 0; - ref ComplexCombatData reference89 = ref span122[index3]; + ref ComplexCombatData reference89 = ref CollectionsMarshal.AsSpan(list122)[0]; ComplexCombatData obj88 = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u }; - 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; + 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; obj88.CompletionQuestVariablesFlags = list123; reference89 = obj88; obj87.ComplexCombatData = list122; - 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; + 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; obj87.CompletionQuestVariablesFlags = list124; reference88 = obj87; obj82.Steps = list115; reference83 = obj82; - num++; - ref QuestSequence reference90 = ref span112[num]; + ref QuestSequence reference90 = ref span51[2]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -21354,9 +17758,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -21375,26 +17777,21 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "pot0to"; + CollectionsMarshal.AsSpan(list126)[0] = "pot0to"; questRoot15.Author = list126; - index = 3; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference91 = ref span127[num]; + num = 3; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span60 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference91 = ref span60[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -21412,8 +17809,7 @@ public static class AssemblyQuestLoader }; obj90.Steps = list128; reference91 = obj90; - num++; - ref QuestSequence reference92 = ref span127[num]; + ref QuestSequence reference92 = ref span60[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -21421,9 +17817,8 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref QuestStep reference93 = ref span129[index2]; + Span span61 = CollectionsMarshal.AsSpan(list129); + ref QuestStep reference93 = ref span61[0]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(117.47766f, 17.661993f, -247.24017f), 148) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -21437,9 +17832,8 @@ public static class AssemblyQuestLoader num3 = 2; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - ref ComplexCombatData reference94 = ref span130[index3]; + Span span62 = CollectionsMarshal.AsSpan(list130); + ref ComplexCombatData reference94 = ref span62[0]; ComplexCombatData obj93 = new ComplexCombatData { DataId = 37u, @@ -21448,44 +17842,31 @@ public static class AssemblyQuestLoader num4 = 6; List list131 = new List(num4); CollectionsMarshal.SetCount(list131, num4); - 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; + 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; obj93.CompletionQuestVariablesFlags = list131; reference94 = obj93; - index3++; - ref ComplexCombatData reference95 = ref span130[index3]; + ref ComplexCombatData reference95 = ref span62[1]; ComplexCombatData obj94 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj94.CompletionQuestVariablesFlags = list132; reference95 = obj94; obj92.ComplexCombatData = list130; @@ -21494,45 +17875,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list133 = new List(index3); - CollectionsMarshal.SetCount(list133, index3); - Span span133 = CollectionsMarshal.AsSpan(list133); - num3 = 0; - span133[num3] = 148; + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + CollectionsMarshal.AsSpan(list133)[0] = 148; obj95.InTerritory = list133; skipConditions4.AetheryteShortcutIf = obj95; obj92.SkipConditions = skipConditions4; num3 = 6; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - 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; + 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; obj92.CompletionQuestVariablesFlags = list134; reference93 = obj92; - index2++; - ref QuestStep reference96 = ref span129[index2]; + ref QuestStep reference96 = ref span61[1]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, null, new Vector3(126.943115f, 2.910592f, -180.54787f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list135 = new List(index3); - CollectionsMarshal.SetCount(list135, index3); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = new ComplexCombatData + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + CollectionsMarshal.AsSpan(list135)[0] = new ComplexCombatData { DataId = 47u, MinimumKillCount = 3u @@ -21541,35 +17911,26 @@ public static class AssemblyQuestLoader num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - 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; + 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; obj96.CompletionQuestVariablesFlags = list136; reference96 = obj96; obj91.Steps = list129; reference92 = obj91; - num++; - ref QuestSequence reference97 = ref span127[num]; + ref QuestSequence reference97 = ref span60[2]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -21596,16 +17957,13 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "xan"; + CollectionsMarshal.AsSpan(list138)[0] = "xan"; questRoot16.Author = list138; - index = 12; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference98 = ref span139[num]; + num = 12; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span67 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference98 = ref span67[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -21613,9 +17971,8 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span68 = CollectionsMarshal.AsSpan(list140); + span68[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -21631,22 +17988,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span68[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj98.Steps = list140; reference98 = obj98; - num++; - ref QuestSequence reference99 = ref span139[num]; + ref QuestSequence reference99 = ref span67[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num2 = 0; - ref QuestStep reference100 = ref span141[num2]; + num2 = 2; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + Span span69 = CollectionsMarshal.AsSpan(list141); + ref QuestStep reference100 = ref span69[0]; QuestStep obj100 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-116.833f, 70.279f, 47.983f), 137) { TargetTerritoryId = (ushort)134, @@ -21655,44 +18009,36 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - index3 = 1; - List list142 = new List(index3); - CollectionsMarshal.SetCount(list142, index3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = 134; + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = 134; skipStepConditions2.InTerritory = list142; skipConditions5.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span143 = CollectionsMarshal.AsSpan(list143); - index3 = 0; - span143[index3] = 134; + CollectionsMarshal.AsSpan(list143)[0] = 134; skipAetheryteCondition2.InTerritory = list143; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition2; obj100.SkipConditions = skipConditions5; reference100 = obj100; - num2++; - ref QuestStep reference101 = ref span141[num2]; + ref QuestStep reference101 = ref span69[1]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, 1010573u, new Vector3(-188.46423f, 30.723186f, -685.1759f), 134) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list144 = new List(index3); - CollectionsMarshal.SetCount(list144, index3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - span144[num3] = 3572u; + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = 3572u; obj101.KillEnemyDataIds = list144; reference101 = obj101; obj99.Steps = list141; reference99 = obj99; - num++; - ref QuestSequence reference102 = ref span139[num]; + ref QuestSequence reference102 = ref span67[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -21700,23 +18046,19 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1010627u, new Vector3(-189.65442f, 30.837437f, -685.298f), 134); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1010627u, new Vector3(-189.65442f, 30.837437f, -685.298f), 134); obj102.Steps = list145; reference102 = obj102; - num++; - ref QuestSequence reference103 = ref span139[num]; + ref QuestSequence reference103 = ref span67[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list146 = new List(index2); - CollectionsMarshal.SetCount(list146, index2); - Span span146 = CollectionsMarshal.AsSpan(list146); - num2 = 0; - ref QuestStep reference104 = ref span146[num2]; + num2 = 2; + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + Span span70 = CollectionsMarshal.AsSpan(list146); + ref QuestStep reference104 = ref span70[0]; QuestStep obj104 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(246.007f, 56.384f, 839.334f), 137) { TargetTerritoryId = (ushort)135, @@ -21728,27 +18070,22 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span147 = CollectionsMarshal.AsSpan(list147); - index3 = 0; - span147[index3] = 135; + CollectionsMarshal.AsSpan(list147)[0] = 135; skipStepConditions3.InTerritory = list147; skipConditions6.StepIf = skipStepConditions3; SkipAetheryteCondition obj105 = new SkipAetheryteCondition { InSameTerritory = true }; - index3 = 1; - List list148 = new List(index3); - CollectionsMarshal.SetCount(list148, index3); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - span148[num3] = 135; + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + CollectionsMarshal.AsSpan(list148)[0] = 135; obj105.InTerritory = list148; skipConditions6.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions6; reference104 = obj104; - num2++; - ref QuestStep reference105 = ref span146[num2]; + ref QuestStep reference105 = ref span70[1]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 1010571u, new Vector3(491.05054f, 68.14364f, -198.50464f), 135) { Fly = true, @@ -21757,15 +18094,12 @@ public static class AssemblyQuestLoader num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span149 = CollectionsMarshal.AsSpan(list149); - index3 = 0; - span149[index3] = 3573u; + CollectionsMarshal.AsSpan(list149)[0] = 3573u; obj106.KillEnemyDataIds = list149; reference105 = obj106; obj103.Steps = list146; reference103 = obj103; - num++; - ref QuestSequence reference106 = ref span139[num]; + ref QuestSequence reference106 = ref span67[4]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -21773,35 +18107,28 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 2005006u, new Vector3(492.88147f, 68.955444f, -197.58905f), 135); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 2005006u, new Vector3(492.88147f, 68.955444f, -197.58905f), 135); obj107.Steps = list150; reference106 = obj107; - num++; - ref QuestSequence reference107 = ref span139[num]; + ref QuestSequence reference107 = ref span67[5]; QuestSequence obj108 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list151 = new List(index2); - CollectionsMarshal.SetCount(list151, index2); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref QuestStep reference108 = ref span151[num2]; + num2 = 1; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list151)[0]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, 1010575u, new Vector3(516.68555f, 9.414734f, 351.12524f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = 3572u; + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = 3572u; obj109.KillEnemyDataIds = list152; obj109.SkipConditions = new SkipConditions { @@ -21813,8 +18140,7 @@ public static class AssemblyQuestLoader reference108 = obj109; obj108.Steps = list151; reference107 = obj108; - num++; - ref QuestSequence reference109 = ref span139[num]; + ref QuestSequence reference109 = ref span67[6]; QuestSequence obj110 = new QuestSequence { Sequence = 6 @@ -21822,23 +18148,18 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 2005007u, new Vector3(515.5565f, 9.47583f, 349.93518f), 137); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2005007u, new Vector3(515.5565f, 9.47583f, 349.93518f), 137); obj110.Steps = list153; reference109 = obj110; - num++; - ref QuestSequence reference110 = ref span139[num]; + ref QuestSequence reference110 = ref span67[7]; QuestSequence obj111 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference111 = ref span154[num2]; + num2 = 1; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list154)[0]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, 1010572u, new Vector3(209.21643f, -2.0700505f, 260.3036f), 139) { Fly = true, @@ -21848,9 +18169,7 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = 3573u; + CollectionsMarshal.AsSpan(list155)[0] = 3573u; obj112.KillEnemyDataIds = list155; obj112.SkipConditions = new SkipConditions { @@ -21862,8 +18181,7 @@ public static class AssemblyQuestLoader reference111 = obj112; obj111.Steps = list154; reference110 = obj111; - num++; - ref QuestSequence reference112 = ref span139[num]; + ref QuestSequence reference112 = ref span67[8]; QuestSequence obj113 = new QuestSequence { Sequence = 8 @@ -21871,34 +18189,27 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 2005008u, new Vector3(208.27039f, -2.0905762f, 259.84583f), 139); + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 2005008u, new Vector3(208.27039f, -2.0905762f, 259.84583f), 139); obj113.Steps = list156; reference112 = obj113; - num++; - ref QuestSequence reference113 = ref span139[num]; + ref QuestSequence reference113 = ref span67[9]; QuestSequence obj114 = new QuestSequence { Sequence = 9 }; - index2 = 1; - List list157 = new List(index2); - CollectionsMarshal.SetCount(list157, index2); - Span span157 = CollectionsMarshal.AsSpan(list157); - num2 = 0; - ref QuestStep reference114 = ref span157[num2]; + num2 = 1; + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, 1010574u, new Vector3(-76.98181f, 64.50076f, -241.56561f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list158 = new List(index3); - CollectionsMarshal.SetCount(list158, index3); - Span span158 = CollectionsMarshal.AsSpan(list158); - num3 = 0; - span158[num3] = 3572u; + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + CollectionsMarshal.AsSpan(list158)[0] = 3572u; obj115.KillEnemyDataIds = list158; obj115.SkipConditions = new SkipConditions { @@ -21910,8 +18221,7 @@ public static class AssemblyQuestLoader reference114 = obj115; obj114.Steps = list157; reference113 = obj114; - num++; - ref QuestSequence reference115 = ref span139[num]; + ref QuestSequence reference115 = ref span67[10]; QuestSequence obj116 = new QuestSequence { Sequence = 10 @@ -21919,23 +18229,19 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 2005009u, new Vector3(-77.195435f, 64.49988f, -240.71112f), 180); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 2005009u, new Vector3(-77.195435f, 64.49988f, -240.71112f), 180); obj116.Steps = list159; reference115 = obj116; - num++; - ref QuestSequence reference116 = ref span139[num]; + ref QuestSequence reference116 = ref span67[11]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list160 = new List(index2); - CollectionsMarshal.SetCount(list160, index2); - Span span160 = CollectionsMarshal.AsSpan(list160); - num2 = 0; - ref QuestStep reference117 = ref span160[num2]; + num2 = 2; + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + Span span71 = CollectionsMarshal.AsSpan(list160); + ref QuestStep reference117 = ref span71[0]; QuestStep obj118 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-116.833f, 70.279f, 47.983f), 137) { TargetTerritoryId = (ushort)134, @@ -21947,27 +18253,22 @@ public static class AssemblyQuestLoader num3 = 1; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - Span span161 = CollectionsMarshal.AsSpan(list161); - index3 = 0; - span161[index3] = 134; + CollectionsMarshal.AsSpan(list161)[0] = 134; skipStepConditions4.InTerritory = list161; skipConditions7.StepIf = skipStepConditions4; SkipAetheryteCondition obj119 = new SkipAetheryteCondition { InSameTerritory = true }; - index3 = 1; - List list162 = new List(index3); - CollectionsMarshal.SetCount(list162, index3); - Span span162 = CollectionsMarshal.AsSpan(list162); - num3 = 0; - span162[num3] = 134; + num3 = 1; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + CollectionsMarshal.AsSpan(list162)[0] = 134; obj119.InTerritory = list162; skipConditions7.AetheryteShortcutIf = obj119; obj118.SkipConditions = skipConditions7; reference117 = obj118; - num2++; - span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 2004932u, new Vector3(-182.81836f, 30.533203f, -684.93176f), 134) + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 2004932u, new Vector3(-182.81836f, 30.533203f, -684.93176f), 134) { Fly = true, NextQuestId = new QuestId(233) @@ -21981,16 +18282,13 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "xan"; + CollectionsMarshal.AsSpan(list163)[0] = "xan"; questRoot17.Author = list163; - index = 5; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference118 = ref span164[num]; + num = 5; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span72 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference118 = ref span72[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -21998,9 +18296,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010628u, new Vector3(-189.01355f, 30.937378f, -687.2816f), 134) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010628u, new Vector3(-189.01355f, 30.937378f, -687.2816f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, @@ -22014,18 +18310,15 @@ public static class AssemblyQuestLoader }; obj120.Steps = list165; reference118 = obj120; - num++; - ref QuestSequence reference119 = ref span164[num]; + ref QuestSequence reference119 = ref span72[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -22039,8 +18332,7 @@ public static class AssemblyQuestLoader }; obj121.Steps = list166; reference119 = obj121; - num++; - ref QuestSequence reference120 = ref span164[num]; + ref QuestSequence reference120 = ref span72[2]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -22048,30 +18340,24 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010630u, new Vector3(-70.93927f, 36.04747f, 475.66956f), 137) + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1010630u, new Vector3(-70.93927f, 36.04747f, 475.66956f), 137) { Fly = true }; obj122.Steps = list167; reference120 = obj122; - num++; - ref QuestSequence reference121 = ref span164[num]; + ref QuestSequence reference121 = ref span72[3]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj123.Steps = list168; reference121 = obj123; - num++; - ref QuestSequence reference122 = ref span164[num]; + ref QuestSequence reference122 = ref span72[4]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -22079,9 +18365,8 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span73 = CollectionsMarshal.AsSpan(list169); + span73[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -22097,8 +18382,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span73[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(234) }; @@ -22111,26 +18395,22 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "xan"; + CollectionsMarshal.AsSpan(list170)[0] = "xan"; questRoot18.Author = list170; - index = 7; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference123 = ref span171[num]; + num = 7; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span74 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference123 = ref span74[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -22146,12 +18426,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span172[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span75[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj125.Steps = list172; reference123 = obj125; - num++; - ref QuestSequence reference124 = ref span171[num]; + ref QuestSequence reference124 = ref span74[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -22159,16 +18437,12 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - ref QuestStep reference125 = ref span173[index2]; + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list173)[0]; 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); - Span span174 = CollectionsMarshal.AsSpan(list174); - index3 = 0; - span174[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN500_00234_Q1_000_000"), @@ -22178,18 +18452,16 @@ public static class AssemblyQuestLoader reference125 = questStep6; obj126.Steps = list173; reference124 = obj126; - num++; - ref QuestSequence reference126 = ref span171[num]; + ref QuestSequence reference126 = ref span74[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list175 = new List(index2); - CollectionsMarshal.SetCount(list175, index2); - Span span175 = CollectionsMarshal.AsSpan(list175); - num2 = 0; - ref QuestStep reference127 = ref span175[num2]; + num2 = 2; + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + Span span76 = CollectionsMarshal.AsSpan(list175); + ref QuestStep reference127 = ref span76[0]; QuestStep obj128 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(407.71924f, 32.11566f, -14.989758f), 138) { TargetTerritoryId = (ushort)139, @@ -22198,37 +18470,30 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index3 = 1; - List list176 = new List(index3); - CollectionsMarshal.SetCount(list176, index3); - Span span176 = CollectionsMarshal.AsSpan(list176); - num3 = 0; - span176[num3] = 139; + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + CollectionsMarshal.AsSpan(list176)[0] = 139; skipStepConditions5.InTerritory = list176; skipConditions8.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - Span span177 = CollectionsMarshal.AsSpan(list177); - index3 = 0; - span177[index3] = 139; + CollectionsMarshal.AsSpan(list177)[0] = 139; skipAetheryteCondition3.InTerritory = list177; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition3; obj128.SkipConditions = skipConditions8; reference127 = obj128; - num2++; - ref QuestStep reference128 = ref span175[num2]; + ref QuestStep reference128 = ref span76[1]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1010633u, new Vector3(-570.82477f, -1.4935175f, -12.619263f), 139) { Fly = true }; - index3 = 1; - List list178 = new List(index3); - CollectionsMarshal.SetCount(list178, index3); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - span178[num3] = new DialogueChoice + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN500_00234_Q2_000_000"), @@ -22238,8 +18503,7 @@ public static class AssemblyQuestLoader reference128 = obj129; obj127.Steps = list175; reference126 = obj127; - num++; - ref QuestSequence reference129 = ref span171[num]; + ref QuestSequence reference129 = ref span74[3]; QuestSequence obj130 = new QuestSequence { Sequence = 3 @@ -22247,23 +18511,18 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.Interact, 1010634u, new Vector3(-560.0519f, -1.7964863f, -14.572449f), 139); + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1010634u, new Vector3(-560.0519f, -1.7964863f, -14.572449f), 139); obj130.Steps = list179; reference129 = obj130; - num++; - ref QuestSequence reference130 = ref span171[num]; + ref QuestSequence reference130 = ref span74[4]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -22277,8 +18536,7 @@ public static class AssemblyQuestLoader }; obj131.Steps = list180; reference130 = obj131; - num++; - ref QuestSequence reference131 = ref span171[num]; + ref QuestSequence reference131 = ref span74[5]; QuestSequence obj132 = new QuestSequence { Sequence = 5 @@ -22286,26 +18544,22 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004935u, new Vector3(19.943481f, 42.923584f, 855.46655f), 135) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2004935u, new Vector3(19.943481f, 42.923584f, 855.46655f), 135) { Fly = true }; obj132.Steps = list181; reference131 = obj132; - num++; - ref QuestSequence reference132 = ref span171[num]; + ref QuestSequence reference132 = ref span74[6]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -22321,8 +18575,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(235) }; @@ -22335,16 +18588,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "xan"; + CollectionsMarshal.AsSpan(list183)[0] = "xan"; questRoot19.Author = list183; - index = 8; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference133 = ref span184[num]; + num = 8; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span78 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference133 = ref span78[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -22352,9 +18602,8 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span79 = CollectionsMarshal.AsSpan(list185); + span79[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -22370,22 +18619,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span79[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj134.Steps = list185; reference133 = obj134; - num++; - ref QuestSequence reference134 = ref span184[num]; + ref QuestSequence reference134 = ref span78[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -22416,12 +18662,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span186[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + span80[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj135.Steps = list186; reference134 = obj135; - num++; - ref QuestSequence reference135 = ref span184[num]; + ref QuestSequence reference135 = ref span78[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -22429,9 +18673,7 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.Interact, 1013884u, new Vector3(172.8999f, 95.27325f, -202.92981f), 134) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1013884u, new Vector3(172.8999f, 95.27325f, -202.92981f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, SkipConditions = new SkipConditions @@ -22444,22 +18686,18 @@ public static class AssemblyQuestLoader }; obj136.Steps = list187; reference135 = obj136; - num++; - ref QuestSequence reference136 = ref span184[num]; + ref QuestSequence reference136 = ref span78[3]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj137.Steps = list188; reference136 = obj137; - num++; - ref QuestSequence reference137 = ref span184[num]; + ref QuestSequence reference137 = ref span78[4]; QuestSequence obj138 = new QuestSequence { Sequence = 4 @@ -22467,27 +18705,21 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.Interact, 2005922u, new Vector3(-90.37921f, 43.045654f, -308.30853f), 134); + CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 2005922u, new Vector3(-90.37921f, 43.045654f, -308.30853f), 134); obj138.Steps = list189; reference137 = obj138; - num++; - ref QuestSequence reference138 = ref span184[num]; + ref QuestSequence reference138 = ref span78[5]; QuestSequence obj139 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj139.Steps = list190; reference138 = obj139; - num++; - ref QuestSequence reference139 = ref span184[num]; + ref QuestSequence reference139 = ref span78[6]; QuestSequence obj140 = new QuestSequence { Sequence = 6 @@ -22495,23 +18727,19 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1013892u, new Vector3(-19.241638f, 12.516694f, -462.66882f), 134); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1013892u, new Vector3(-19.241638f, 12.516694f, -462.66882f), 134); obj140.Steps = list191; reference139 = obj140; - num++; - ref QuestSequence reference140 = ref span184[num]; + ref QuestSequence reference140 = ref span78[7]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -22527,8 +18755,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1684) }; @@ -22541,16 +18768,13 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "liza"; + CollectionsMarshal.AsSpan(list193)[0] = "liza"; questRoot20.Author = list193; - index = 12; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference141 = ref span194[num]; + num = 12; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span82 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference141 = ref span82[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -22558,9 +18782,7 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -22573,25 +18795,21 @@ public static class AssemblyQuestLoader }; obj142.Steps = list195; reference141 = obj142; - num++; - ref QuestSequence reference142 = ref span194[num]; + ref QuestSequence reference142 = ref span82[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj143.Steps = list196; reference142 = obj143; - num++; - ref QuestSequence reference143 = ref span194[num]; + ref QuestSequence reference143 = ref span82[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -22599,36 +18817,30 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.4774f, 62.89536f, -207.31602f), 140) + Span span83 = CollectionsMarshal.AsSpan(list197); + span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(326.4774f, 62.89536f, -207.31602f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 2004847u, new Vector3(323.62854f, 62.974f, -207.90424f), 140); + span83[1] = new QuestStep(EInteractionType.Interact, 2004847u, new Vector3(323.62854f, 62.974f, -207.90424f), 140); obj144.Steps = list197; reference143 = obj144; - num++; - ref QuestSequence reference144 = ref span194[num]; + ref QuestSequence reference144 = ref span82[3]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj145.Steps = list198; reference144 = obj145; - num++; - ref QuestSequence reference145 = ref span194[num]; + ref QuestSequence reference145 = ref span82[4]; QuestSequence obj146 = new QuestSequence { Sequence = 4 @@ -22636,9 +18848,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131) + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131) { AethernetShortcut = new AethernetShortcut { @@ -22648,22 +18858,18 @@ public static class AssemblyQuestLoader }; obj146.Steps = list199; reference145 = obj146; - num++; - ref QuestSequence reference146 = ref span194[num]; + ref QuestSequence reference146 = ref span82[5]; QuestSequence obj147 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj147.Steps = list200; reference146 = obj147; - num++; - ref QuestSequence reference147 = ref span194[num]; + ref QuestSequence reference147 = ref span82[6]; QuestSequence obj148 = new QuestSequence { Sequence = 6 @@ -22671,9 +18877,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut { @@ -22683,28 +18887,24 @@ public static class AssemblyQuestLoader }; obj148.Steps = list201; reference147 = obj148; - num++; - ref QuestSequence reference148 = ref span194[num]; + ref QuestSequence reference148 = ref span82[7]; QuestSequence obj149 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num2++; - span202[num2] = new QuestStep(EInteractionType.Interact, 1010341u, new Vector3(-89.40265f, -11.35f, -40.146484f), 141); + span84[1] = new QuestStep(EInteractionType.Interact, 1010341u, new Vector3(-89.40265f, -11.35f, -40.146484f), 141); obj149.Steps = list202; reference148 = obj149; - num++; - ref QuestSequence reference149 = ref span194[num]; + ref QuestSequence reference149 = ref span82[8]; QuestSequence obj150 = new QuestSequence { Sequence = 8 @@ -22712,34 +18912,28 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj150.Steps = list203; reference149 = obj150; - num++; - ref QuestSequence reference150 = ref span194[num]; + ref QuestSequence reference150 = ref span82[9]; QuestSequence obj151 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj151.Steps = list204; reference150 = obj151; - num++; - ref QuestSequence reference151 = ref span194[num]; + ref QuestSequence reference151 = ref span82[10]; QuestSequence obj152 = new QuestSequence { Sequence = 10 @@ -22747,9 +18941,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1010346u, new Vector3(-207.44641f, 18.499998f, 73.899414f), 130) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1010346u, new Vector3(-207.44641f, 18.499998f, 73.899414f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -22760,18 +18952,15 @@ public static class AssemblyQuestLoader }; obj152.Steps = list205; reference151 = obj152; - num++; - ref QuestSequence reference152 = ref span194[num]; + ref QuestSequence reference152 = ref span82[11]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -22789,16 +18978,13 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot21.Author = list207; - index = 6; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference153 = ref span208[num]; + num = 6; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span85 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference153 = ref span85[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -22806,9 +18992,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -22826,28 +19010,24 @@ public static class AssemblyQuestLoader }; obj154.Steps = list209; reference153 = obj154; - num++; - ref QuestSequence reference154 = ref span208[num]; + ref QuestSequence reference154 = ref span85[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - num2++; - span210[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + span86[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj155.Steps = list210; reference154 = obj155; - num++; - ref QuestSequence reference155 = ref span208[num]; + ref QuestSequence reference155 = ref span85[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -22855,42 +19035,35 @@ public static class AssemblyQuestLoader num2 = 3; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span87 = CollectionsMarshal.AsSpan(list211); + span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Mount = true }; - index2++; - span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.51706f, 48.854584f, 462.12476f), 137) + span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-250.51706f, 48.854584f, 462.12476f), 137) { Fly = true }; - index2++; - span211[index2] = new QuestStep(EInteractionType.Interact, 2004858u, new Vector3(-252.76575f, 49.66809f, 460.71558f), 137); + span87[2] = new QuestStep(EInteractionType.Interact, 2004858u, new Vector3(-252.76575f, 49.66809f, 460.71558f), 137); obj156.Steps = list211; reference155 = obj156; - num++; - ref QuestSequence reference156 = ref span208[num]; + ref QuestSequence reference156 = ref span85[3]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span212[num2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + span88[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj157.Steps = list212; reference156 = obj157; - num++; - ref QuestSequence reference157 = ref span208[num]; + ref QuestSequence reference157 = ref span85[4]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -22898,37 +19071,32 @@ public static class AssemblyQuestLoader num2 = 3; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span89 = CollectionsMarshal.AsSpan(list213); + span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Mount = true }; - index2++; - span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.36604f, 70.192245f, 746.02716f), 137) + span89[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.36604f, 70.192245f, 746.02716f), 137) { Fly = true }; - index2++; - span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.5895f, 95.61268f, -497.8778f), 135) + span89[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(570.5895f, 95.61268f, -497.8778f), 135) { Fly = true, RestartNavigationIfCancelled = true }; obj158.Steps = list213; reference157 = obj158; - num++; - ref QuestSequence reference158 = ref span208[num]; + ref QuestSequence reference158 = ref span85[5]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list214 = new List(index2); - CollectionsMarshal.SetCount(list214, index2); - Span span214 = CollectionsMarshal.AsSpan(list214); - num2 = 0; - ref QuestStep reference159 = ref span214[num2]; + num2 = 2; + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + Span span90 = CollectionsMarshal.AsSpan(list214); + ref QuestStep reference159 = ref span90[0]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(569.87854f, 95.62417f, -498.10028f), 135) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -22936,24 +19104,18 @@ public static class AssemblyQuestLoader num3 = 3; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span215 = CollectionsMarshal.AsSpan(list215); - index3 = 0; - span215[index3] = 2861u; - index3++; - span215[index3] = 3563u; - index3++; - span215[index3] = 3562u; + Span span91 = CollectionsMarshal.AsSpan(list215); + span91[0] = 2861u; + span91[1] = 3563u; + span91[2] = 3562u; obj160.KillEnemyDataIds = list215; reference159 = obj160; - num2++; - ref QuestStep reference160 = ref span214[num2]; + ref QuestStep reference160 = ref span90[1]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1010370u, new Vector3(569.87854f, 95.62417f, -498.10028f), 135); - index3 = 1; - List list216 = new List(index3); - CollectionsMarshal.SetCount(list216, index3); - Span span216 = CollectionsMarshal.AsSpan(list216); - num3 = 0; - span216[num3] = new DialogueChoice + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + CollectionsMarshal.AsSpan(list216)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST021_00241_Q1_000_000"), @@ -22971,16 +19133,13 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "liza"; + CollectionsMarshal.AsSpan(list217)[0] = "liza"; questRoot22.Author = list217; - index = 9; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference161 = ref span218[num]; + num = 9; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span92 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference161 = ref span92[0]; QuestSequence obj161 = new QuestSequence { Sequence = 0 @@ -22988,9 +19147,7 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23008,18 +19165,15 @@ public static class AssemblyQuestLoader }; obj161.Steps = list219; reference161 = obj161; - num++; - ref QuestSequence reference162 = ref span218[num]; + ref QuestSequence reference162 = ref span92[1]; QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -23030,8 +19184,7 @@ public static class AssemblyQuestLoader }; obj162.Steps = list220; reference162 = obj162; - num++; - ref QuestSequence reference163 = ref span218[num]; + ref QuestSequence reference163 = ref span92[2]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -23039,27 +19192,21 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130); obj163.Steps = list221; reference163 = obj163; - num++; - ref QuestSequence reference164 = ref span218[num]; + ref QuestSequence reference164 = ref span92[3]; QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj164.Steps = list222; reference164 = obj164; - num++; - ref QuestSequence reference165 = ref span218[num]; + ref QuestSequence reference165 = ref span92[4]; QuestSequence obj165 = new QuestSequence { Sequence = 4 @@ -23067,109 +19214,77 @@ public static class AssemblyQuestLoader num2 = 4; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - ref QuestStep reference166 = ref span223[index2]; + Span span93 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference166 = ref span93[0]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list224; reference166 = questStep8; - index2++; - ref QuestStep reference167 = ref span223[index2]; + ref QuestStep reference167 = ref span93[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1001294u, new Vector3(-214.22144f, 18.5f, 72.129395f), 130); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list225; reference167 = questStep9; - index2++; - ref QuestStep reference168 = ref span223[index2]; + ref QuestStep reference168 = ref span93[2]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list226; reference168 = questStep10; - index2++; - ref QuestStep reference169 = ref span223[index2]; + ref QuestStep reference169 = ref span93[3]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1001288u, new Vector3(-151.59845f, 12f, 16.220276f), 130); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list227; reference169 = questStep11; obj165.Steps = list223; reference165 = obj165; - num++; - ref QuestSequence reference170 = ref span218[num]; + ref QuestSequence reference170 = ref span92[5]; QuestSequence obj166 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj166.Steps = list228; reference170 = obj166; - num++; - ref QuestSequence reference171 = ref span218[num]; + ref QuestSequence reference171 = ref span92[6]; QuestSequence obj167 = new QuestSequence { Sequence = 6 @@ -23177,112 +19292,80 @@ public static class AssemblyQuestLoader num2 = 4; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - ref QuestStep reference172 = ref span229[index2]; + Span span98 = CollectionsMarshal.AsSpan(list229); + ref QuestStep reference172 = ref span98[0]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list230; reference172 = questStep12; - index2++; - ref QuestStep reference173 = ref span229[index2]; + ref QuestStep reference173 = ref span98[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2004885u, new Vector3(-206.50043f, 19.180542f, 49.94275f), 130); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list231; reference173 = questStep13; - index2++; - ref QuestStep reference174 = ref span229[index2]; + ref QuestStep reference174 = ref span98[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list232; reference174 = questStep14; - index2++; - ref QuestStep reference175 = ref span229[index2]; + ref QuestStep reference175 = ref span98[3]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2004888u, new Vector3(-243.64087f, 20.065613f, 104.41736f), 130) { IgnoreDistanceToObject = true }; - 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); + 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); obj168.CompletionQuestVariablesFlags = list233; reference175 = obj168; obj167.Steps = list229; reference171 = obj167; - num++; - ref QuestSequence reference176 = ref span218[num]; + ref QuestSequence reference176 = ref span92[7]; QuestSequence obj169 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj169.Steps = list234; reference176 = obj169; - num++; - ref QuestSequence reference177 = ref span218[num]; + ref QuestSequence reference177 = ref span92[8]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -23290,9 +19373,7 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 2004889u, new Vector3(-136.55304f, 11.9782715f, 23.5141f), 130) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004889u, new Vector3(-136.55304f, 11.9782715f, 23.5141f), 130) { NextQuestId = new QuestId(1574) }; @@ -23305,26 +19386,21 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = "liza"; + CollectionsMarshal.AsSpan(list236)[0] = "liza"; questRoot23.Author = list236; - index = 8; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref QuestSequence reference178 = ref span237[num]; + num = 8; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span103 = CollectionsMarshal.AsSpan(list237); + ref QuestSequence reference178 = ref span103[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -23337,8 +19413,7 @@ public static class AssemblyQuestLoader }; obj171.Steps = list238; reference178 = obj171; - num++; - ref QuestSequence reference179 = ref span237[num]; + ref QuestSequence reference179 = ref span103[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -23346,33 +19421,27 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Interact, 1001787u, new Vector3(-62.119568f, 18.000334f, 9.414734f), 129); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1001787u, new Vector3(-62.119568f, 18.000334f, 9.414734f), 129); obj172.Steps = list239; reference179 = obj172; - num++; - ref QuestSequence reference180 = ref span237[num]; + ref QuestSequence reference180 = ref span103[2]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span240[num2] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); + span104[1] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); obj173.Steps = list240; reference180 = obj173; - num++; - ref QuestSequence reference181 = ref span237[num]; + ref QuestSequence reference181 = ref span103[3]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -23380,35 +19449,29 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) + Span span105 = CollectionsMarshal.AsSpan(list241); + span105[0] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) { TargetTerritoryId = (ushort)139 }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 1010434u, new Vector3(241.74866f, -0.96623325f, 257.12976f), 139); + span105[1] = new QuestStep(EInteractionType.Interact, 1010434u, new Vector3(241.74866f, -0.96623325f, 257.12976f), 139); obj174.Steps = list241; reference181 = obj174; - num++; - ref QuestSequence reference182 = ref span237[num]; + ref QuestSequence reference182 = ref span103[4]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj175.Steps = list242; reference182 = obj175; - num++; - ref QuestSequence reference183 = ref span237[num]; + ref QuestSequence reference183 = ref span103[5]; QuestSequence obj176 = new QuestSequence { Sequence = 5 @@ -23416,9 +19479,8 @@ public static class AssemblyQuestLoader num2 = 2; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - ref QuestStep reference184 = ref span243[index2]; + Span span106 = CollectionsMarshal.AsSpan(list243); + ref QuestStep reference184 = ref span106[0]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 1010435u, new Vector3(340.04736f, -2.5074248f, 104.600464f), 139) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -23426,41 +19488,34 @@ public static class AssemblyQuestLoader num3 = 2; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span244 = CollectionsMarshal.AsSpan(list244); - index3 = 0; - span244[index3] = 3559u; - index3++; - span244[index3] = 3560u; + Span span107 = CollectionsMarshal.AsSpan(list244); + span107[0] = 3559u; + span107[1] = 3560u; obj177.KillEnemyDataIds = list244; reference184 = obj177; - index2++; - span243[index2] = new QuestStep(EInteractionType.Interact, 1010437u, new Vector3(271.59534f, 25.732939f, -100.35864f), 139) + span106[1] = new QuestStep(EInteractionType.Interact, 1010437u, new Vector3(271.59534f, 25.732939f, -100.35864f), 139) { Fly = true }; obj176.Steps = list243; reference183 = obj176; - num++; - ref QuestSequence reference185 = ref span237[num]; + ref QuestSequence reference185 = ref span103[6]; QuestSequence obj178 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; - num2++; - span245[num2] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); + span108[1] = new QuestStep(EInteractionType.Interact, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139); obj178.Steps = list245; reference185 = obj178; - num++; - ref QuestSequence reference186 = ref span237[num]; + ref QuestSequence reference186 = ref span103[7]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -23468,14 +19523,12 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) + Span span109 = CollectionsMarshal.AsSpan(list246); + span109[0] = new QuestStep(EInteractionType.Interact, 1003586u, new Vector3(-342.12262f, -1.0249884f, 111.46704f), 139) { TargetTerritoryId = (ushort)139 }; - index2++; - span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010438u, new Vector3(275.28796f, -0.93098116f, 231.61658f), 139) + span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1010438u, new Vector3(275.28796f, -0.93098116f, 231.61658f), 139) { Fly = true, NextQuestId = new QuestId(244) @@ -23489,26 +19542,21 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "liza"; + CollectionsMarshal.AsSpan(list247)[0] = "liza"; questRoot24.Author = list247; - index = 10; - List list248 = new List(index); - CollectionsMarshal.SetCount(list248, index); - Span span248 = CollectionsMarshal.AsSpan(list248); - num = 0; - ref QuestSequence reference187 = ref span248[num]; + num = 10; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + Span span110 = CollectionsMarshal.AsSpan(list248); + ref QuestSequence reference187 = ref span110[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -23521,8 +19569,7 @@ public static class AssemblyQuestLoader }; obj180.Steps = list249; reference187 = obj180; - num++; - ref QuestSequence reference188 = ref span248[num]; + ref QuestSequence reference188 = ref span110[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -23530,33 +19577,27 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj181.Steps = list250; reference188 = obj181; - num++; - ref QuestSequence reference189 = ref span248[num]; + ref QuestSequence reference189 = ref span110[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2001487u }; obj182.Steps = list251; reference189 = obj182; - num++; - ref QuestSequence reference190 = ref span248[num]; + ref QuestSequence reference190 = ref span110[3]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -23564,40 +19605,34 @@ public static class AssemblyQuestLoader num2 = 2; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) + Span span111 = CollectionsMarshal.AsSpan(list252); + span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-393.1081f, -57.326912f, 155.15263f), 145) { Mount = true }; - index2++; - span252[index2] = new QuestStep(EInteractionType.Interact, 2004877u, new Vector3(-299.48883f, -40.665344f, 7.095398f), 145) + span111[1] = new QuestStep(EInteractionType.Interact, 2004877u, new Vector3(-299.48883f, -40.665344f, 7.095398f), 145) { Fly = true }; obj183.Steps = list252; reference190 = obj183; - num++; - ref QuestSequence reference191 = ref span248[num]; + ref QuestSequence reference191 = ref span110[4]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span253[num2] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145); + span112[1] = new QuestStep(EInteractionType.Interact, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145); obj184.Steps = list253; reference191 = obj184; - num++; - ref QuestSequence reference192 = ref span248[num]; + ref QuestSequence reference192 = ref span110[5]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -23605,37 +19640,30 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.Interact, 2004866u, new Vector3(-382.22327f, -58.42682f, 168.65796f), 145); + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 2004866u, new Vector3(-382.22327f, -58.42682f, 168.65796f), 145); obj185.Steps = list254; reference192 = obj185; - num++; - ref QuestSequence reference193 = ref span248[num]; + ref QuestSequence reference193 = ref span110[6]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Mount = true }; - num2++; - span255[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.83288f, -17.544205f, 23.35826f), 145) + span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.83288f, -17.544205f, 23.35826f), 145) { Fly = true }; - num2++; - span255[num2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); + span113[2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); obj186.Steps = list255; reference193 = obj186; - num++; - ref QuestSequence reference194 = ref span248[num]; + ref QuestSequence reference194 = ref span110[7]; QuestSequence obj187 = new QuestSequence { Sequence = 7 @@ -23643,43 +19671,36 @@ public static class AssemblyQuestLoader num2 = 3; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.4535733f, -8.0592985f, 1.7329537f), 145) + Span span114 = CollectionsMarshal.AsSpan(list256); + span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.4535733f, -8.0592985f, 1.7329537f), 145) { Mount = true }; - index2++; - span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(435.9292f, 9.87471f, 143.03693f), 145) + span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(435.9292f, 9.87471f, 143.03693f), 145) { Fly = true }; - index2++; - span256[index2] = new QuestStep(EInteractionType.UseItem, 2004868u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) + span114[2] = new QuestStep(EInteractionType.UseItem, 2004868u, new Vector3(438.6206f, 12.436096f, 137.6211f), 145) { ItemId = 2001489u }; obj187.Steps = list256; reference194 = obj187; - num++; - ref QuestSequence reference195 = ref span248[num]; + ref QuestSequence reference195 = ref span110[8]; QuestSequence obj188 = new QuestSequence { Sequence = 8 }; - 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) + 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) { ItemId = 2001488u }; obj188.Steps = list257; reference195 = obj188; - num++; - ref QuestSequence reference196 = ref span248[num]; + ref QuestSequence reference196 = ref span110[9]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -23687,9 +19708,7 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010377u, new Vector3(-382.83362f, -59.300003f, 169.75659f), 145) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010377u, new Vector3(-382.83362f, -59.300003f, 169.75659f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, NextQuestId = new QuestId(240) @@ -23703,30 +19722,24 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - Span span259 = CollectionsMarshal.AsSpan(list259); - index = 0; - span259[index] = "liza"; + CollectionsMarshal.AsSpan(list259)[0] = "liza"; questRoot25.Author = list259; - index = 6; - List list260 = new List(index); - CollectionsMarshal.SetCount(list260, index); - Span span260 = CollectionsMarshal.AsSpan(list260); - num = 0; - ref QuestSequence reference197 = ref span260[num]; + num = 6; + List list260 = new List(num); + CollectionsMarshal.SetCount(list260, num); + Span span115 = CollectionsMarshal.AsSpan(list260); + ref QuestSequence reference197 = ref span115[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj190.Steps = list261; reference197 = obj190; - num++; - ref QuestSequence reference198 = ref span260[num]; + ref QuestSequence reference198 = ref span115[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -23734,25 +19747,21 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - ref QuestStep reference199 = ref span262[index2]; + Span span116 = CollectionsMarshal.AsSpan(list262); + ref QuestStep reference199 = ref span116[0]; QuestStep questStep15 = new QuestStep(EInteractionType.AcceptQuest, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - index3 = 1; - List list263 = new List(index3); - CollectionsMarshal.SetCount(list263, index3); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = 129; + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = 129; skipStepConditions6.InTerritory = list263; skipConditions9.StepIf = skipStepConditions6; questStep15.SkipConditions = skipConditions9; questStep15.PickUpQuestId = new QuestId(1431); reference199 = questStep15; - index2++; - span262[index2] = new QuestStep(EInteractionType.Interact, 1003621u, new Vector3(-192.0653f, 0.9999907f, 208.66711f), 129) + span116[1] = new QuestStep(EInteractionType.Interact, 1003621u, new Vector3(-192.0653f, 0.9999907f, 208.66711f), 129) { AethernetShortcut = new AethernetShortcut { @@ -23769,38 +19778,32 @@ public static class AssemblyQuestLoader }; obj191.Steps = list262; reference198 = obj191; - num++; - ref QuestSequence reference200 = ref span260[num]; + ref QuestSequence reference200 = ref span115[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f, TargetTerritoryId = (ushort)138 }; - num2++; - span264[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + span117[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaAleport }; - num2++; - span264[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002723u, new Vector3(298.63428f, -25.004364f, 233.14258f), 138) + span117[2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002723u, new Vector3(298.63428f, -25.004364f, 233.14258f), 138) { TaxiStandId = (byte)24 }; - num2++; - span264[num2] = new QuestStep(EInteractionType.Interact, 1017075u, new Vector3(356.5575f, -15.97664f, 136.73608f), 138); + span117[3] = new QuestStep(EInteractionType.Interact, 1017075u, new Vector3(356.5575f, -15.97664f, 136.73608f), 138); obj192.Steps = list264; reference200 = obj192; - num++; - ref QuestSequence reference201 = ref span260[num]; + ref QuestSequence reference201 = ref span115[3]; QuestSequence obj193 = new QuestSequence { Sequence = 3 @@ -23808,9 +19811,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.Interact, 1004472u, new Vector3(335.40857f, 9.635179f, 17.135864f), 138) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1004472u, new Vector3(335.40857f, 9.635179f, 17.135864f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -23823,18 +19824,15 @@ public static class AssemblyQuestLoader }; obj193.Steps = list265; reference201 = obj193; - num++; - ref QuestSequence reference202 = ref span260[num]; + ref QuestSequence reference202 = ref span115[4]; QuestSequence obj194 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Duty, null, null, 138) { DutyOptions = new DutyOptions { @@ -23844,8 +19842,7 @@ public static class AssemblyQuestLoader }; obj194.Steps = list266; reference202 = obj194; - num++; - ref QuestSequence reference203 = ref span260[num]; + ref QuestSequence reference203 = ref span115[5]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -23853,9 +19850,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -23878,27 +19873,22 @@ public static class AssemblyQuestLoader List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = "liza"; - num2++; - span[num2] = "Wigglez"; + span[0] = "liza"; + span[1] = "Wigglez"; questRoot.Author = list; - num2 = 4; - List list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + ref QuestSequence reference = ref span2[0]; QuestSequence obj = new QuestSequence { Sequence = 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]; + int num2 = 1; + List list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -23913,21 +19903,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - int num4 = 1; - List list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index2 = 0; - span4[index2] = 131; + int num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + CollectionsMarshal.AsSpan(list4)[0] = 131; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; - index2 = 1; - List list5 = new List(index2); - CollectionsMarshal.SetCount(list5, index2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num4 = 0; - span5[num4] = new DialogueChoice + num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA020_00253_Q1_000_1") @@ -23936,25 +19922,20 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span2[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - index = 1; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num3 = 0; - ref QuestStep reference4 = ref span6[num3]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list6)[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - num4 = 1; - List list7 = new List(num4); - CollectionsMarshal.SetCount(list7, num4); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new DialogueChoice + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA020_00253_Q2_000_1") @@ -23963,18 +19944,16 @@ public static class AssemblyQuestLoader reference4 = questStep; obj4.Steps = list6; reference3 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span2[2]; QuestSequence obj5 = new QuestSequence { Sequence = 2 }; - num3 = 4; - List list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - ref QuestStep reference6 = ref span8[index]; + num2 = 4; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestStep reference6 = ref span3[0]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) { AethernetShortcut = new AethernetShortcut @@ -23985,204 +19964,152 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = 141; + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = 141; skipStepConditions.InTerritory = list9; skipConditions2.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions2; reference6 = obj6; - index++; - ref QuestStep reference7 = ref span8[index]; + ref QuestStep reference7 = ref span3[1]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-74.7536f, 9.131219f, 278.35217f), 141) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list10 = new List(num4); - CollectionsMarshal.SetCount(list10, num4); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = 351u; + num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = 351u; obj7.KillEnemyDataIds = list10; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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; + 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; skipStepConditions2.CompletionQuestVariablesFlags = list11; skipConditions3.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions3; - 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; + 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; obj7.CompletionQuestVariablesFlags = list12; reference7 = obj7; - index++; - ref QuestStep reference8 = ref span8[index]; + ref QuestStep reference8 = ref span3[2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(-74.7536f, 9.131219f, 278.35217f), 141) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index2 = 1; - List list13 = new List(index2); - CollectionsMarshal.SetCount(list13, index2); - Span span13 = CollectionsMarshal.AsSpan(list13); - num4 = 0; - span13[num4] = 385u; + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = 385u; obj8.KillEnemyDataIds = list13; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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; + 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; skipStepConditions3.CompletionQuestVariablesFlags = list14; skipConditions4.StepIf = skipStepConditions3; obj8.SkipConditions = skipConditions4; - 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; + 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; obj8.CompletionQuestVariablesFlags = list15; reference8 = obj8; - index++; - ref QuestStep reference9 = ref span8[index]; + ref QuestStep reference9 = ref span3[3]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(27.49698f, -1.0683776f, 207.4475f), 141) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = 205u; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = 205u; obj9.KillEnemyDataIds = list16; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - 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; + 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; skipStepConditions4.CompletionQuestVariablesFlags = list17; skipConditions5.StepIf = skipStepConditions4; obj9.SkipConditions = skipConditions5; - 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; + 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; obj9.CompletionQuestVariablesFlags = list18; reference9 = obj9; obj5.Steps = list8; reference5 = obj5; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - index = 2; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num3 = 0; - ref QuestStep reference11 = ref span19[num3]; + num2 = 2; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + Span span10 = CollectionsMarshal.AsSpan(list19); + ref QuestStep reference11 = ref span10[0]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-118.17538f, 18.35357f, 341.3039f), 141); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index2 = 1; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = 141; + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = 141; skipStepConditions5.NotInTerritory = list20; skipConditions6.StepIf = skipStepConditions5; questStep2.SkipConditions = skipConditions6; reference11 = questStep2; - num3++; - span19[num3] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -24200,26 +20127,21 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - span21[num2] = "liza"; + CollectionsMarshal.AsSpan(list21)[0] = "liza"; questRoot2.Author = list21; - num2 = 9; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference12 = ref span22[num]; + num = 9; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span11 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference12 = ref span11[0]; QuestSequence obj11 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list23)[0]; QuestStep obj12 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24234,30 +20156,26 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list24 = new List(num4); - CollectionsMarshal.SetCount(list24, num4); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = 131; + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + CollectionsMarshal.AsSpan(list24)[0] = 131; obj13.InTerritory = list24; skipConditions7.AetheryteShortcutIf = obj13; obj12.SkipConditions = skipConditions7; reference13 = obj12; obj11.Steps = list23; reference12 = obj11; - num++; - ref QuestSequence reference14 = ref span22[num]; + ref QuestSequence reference14 = ref span11[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - index = 4; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - ref QuestStep reference15 = ref span25[num3]; + num2 = 4; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + Span span12 = CollectionsMarshal.AsSpan(list25); + ref QuestStep reference15 = ref span12[0]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1003990u, new Vector3(77.25635f, 4.0999947f, -138.62823f), 130) { AethernetShortcut = new AethernetShortcut @@ -24267,141 +20185,105 @@ public static class AssemblyQuestLoader }, Emote = EEmote.Me }; - 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); + 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); obj15.CompletionQuestVariablesFlags = list26; reference15 = obj15; - num3++; - ref QuestStep reference16 = ref span25[num3]; + ref QuestStep reference16 = ref span12[1]; QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1003984u, new Vector3(45.029297f, 3.9999998f, -128.16058f), 130) { Emote = EEmote.Me }; - 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); + 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); obj16.CompletionQuestVariablesFlags = list27; reference16 = obj16; - num3++; - ref QuestStep reference17 = ref span25[num3]; + ref QuestStep reference17 = ref span12[2]; QuestStep obj17 = new QuestStep(EInteractionType.Emote, 1003992u, new Vector3(12.191956f, 4.0999947f, -155.53528f), 130) { Emote = EEmote.Me }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list28; reference17 = obj17; - num3++; - ref QuestStep reference18 = ref span25[num3]; + ref QuestStep reference18 = ref span12[3]; QuestStep obj18 = new QuestStep(EInteractionType.Emote, 1003994u, new Vector3(15.976135f, 7.9999995f, -124.071106f), 130) { Emote = EEmote.Me }; - 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); + 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); obj18.CompletionQuestVariablesFlags = list29; reference18 = obj18; obj14.Steps = list25; reference14 = obj14; - num++; - ref QuestSequence reference19 = ref span22[num]; + ref QuestSequence reference19 = ref span11[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Emote = EEmote.Me }; obj19.Steps = list30; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span22[num]; + ref QuestSequence reference20 = ref span11[3]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj20.Steps = list31; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span22[num]; + ref QuestSequence reference21 = ref span11[4]; QuestSequence obj21 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -24411,128 +20293,98 @@ public static class AssemblyQuestLoader }; obj21.Steps = list32; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span22[num]; + ref QuestSequence reference22 = ref span11[5]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj22.Steps = list33; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span22[num]; + ref QuestSequence reference23 = ref span11[6]; QuestSequence obj23 = new QuestSequence { Sequence = 6 }; - num3 = 2; - List list34 = new List(num3); - CollectionsMarshal.SetCount(list34, num3); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - ref QuestStep reference24 = ref span34[index]; + num2 = 2; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span18 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference24 = ref span18[0]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2001408u, new Vector3(154.37549f, 52.536743f, 200.91553f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num4 = 0; - span35[num4] = 1246u; + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = 1246u; obj24.KillEnemyDataIds = list35; - 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); + 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); obj24.CompletionQuestVariablesFlags = list36; reference24 = obj24; - index++; - ref QuestStep reference25 = ref span34[index]; + ref QuestStep reference25 = ref span18[1]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2001409u, new Vector3(141.83252f, 52.994507f, 221.54565f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num4 = 0; - span37[num4] = 1390u; + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = 1390u; obj25.KillEnemyDataIds = list37; - 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); + 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); obj25.CompletionQuestVariablesFlags = list38; reference25 = obj25; obj23.Steps = list34; reference23 = obj23; - num++; - ref QuestSequence reference26 = ref span22[num]; + ref QuestSequence reference26 = ref span11[7]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj26.Steps = list39; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span22[num]; + ref QuestSequence reference27 = ref span11[8]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj27.Steps = list40; reference27 = obj27; questRoot2.QuestSequence = list22; @@ -24542,26 +20394,21 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - num2 = 0; - span41[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list41)[0] = "Cacahuetes"; questRoot3.Author = list41; - num2 = 7; - List list42 = new List(num2); - CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference28 = ref span42[num]; + num = 7; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span22 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference28 = ref span22[0]; QuestSequence obj28 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep obj29 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24576,30 +20423,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list44 = new List(index2); - CollectionsMarshal.SetCount(list44, index2); - Span span44 = CollectionsMarshal.AsSpan(list44); - num4 = 0; - span44[num4] = 131; + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = 131; obj30.InTerritory = list44; skipConditions8.AetheryteShortcutIf = obj30; obj29.SkipConditions = skipConditions8; reference29 = obj29; obj28.Steps = list43; reference28 = obj28; - num++; - ref QuestSequence reference30 = ref span42[num]; + ref QuestSequence reference30 = ref span22[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list45 = new List(num3); - CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - ref QuestStep reference31 = ref span45[index]; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141) { AethernetShortcut = new AethernetShortcut @@ -24609,42 +20451,34 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = 1245u; + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = 1245u; obj32.KillEnemyDataIds = list46; reference31 = obj32; obj31.Steps = list45; reference30 = obj31; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span22[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj33.Steps = list47; reference32 = obj33; - num++; - ref QuestSequence reference33 = ref span42[num]; + ref QuestSequence reference33 = ref span22[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - num3 = 1; - List list48 = new List(num3); - CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - ref QuestStep reference34 = ref span48[index]; + num2 = 1; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24659,30 +20493,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num4 = 0; - span49[num4] = 131; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = 131; obj36.InTerritory = list49; skipConditions9.AetheryteShortcutIf = obj36; obj35.SkipConditions = skipConditions9; reference34 = obj35; obj34.Steps = list48; reference33 = obj34; - num++; - ref QuestSequence reference35 = ref span42[num]; + ref QuestSequence reference35 = ref span22[4]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -24692,35 +20521,29 @@ public static class AssemblyQuestLoader }; obj37.Steps = list50; reference35 = obj37; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span22[5]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj38.Steps = list51; reference36 = obj38; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span22[6]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - index = 1; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - ref QuestStep reference38 = ref span52[num3]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep obj40 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24730,12 +20553,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num4 = 1; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new DialogueChoice + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA100_00261_Q1_000_160"), @@ -24753,26 +20574,21 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - num2 = 0; - span54[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list54)[0] = "Cacahuetes"; questRoot4.Author = list54; - num2 = 6; - List list55 = new List(num2); - CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference39 = ref span55[num]; + num = 6; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span23 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference39 = ref span23[0]; QuestSequence obj41 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24787,71 +20603,58 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list57 = new List(index2); - CollectionsMarshal.SetCount(list57, index2); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = 131; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = 131; obj43.InTerritory = list57; skipConditions10.AetheryteShortcutIf = obj43; obj42.SkipConditions = skipConditions10; reference40 = obj42; obj41.Steps = list56; reference39 = obj41; - num++; - ref QuestSequence reference41 = ref span55[num]; + ref QuestSequence reference41 = ref span23[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - index = 1; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - ref QuestStep reference42 = ref span58[num3]; + num2 = 1; + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list58)[0]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, 1004224u, new Vector3(-220.93542f, -38.407475f, 63.91992f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = 1244u; + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + CollectionsMarshal.AsSpan(list59)[0] = 1244u; obj45.KillEnemyDataIds = list59; reference42 = obj45; obj44.Steps = list58; reference41 = obj44; - num++; - ref QuestSequence reference43 = ref span55[num]; + ref QuestSequence reference43 = ref span23[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj46.Steps = list60; reference43 = obj46; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span23[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - index = 1; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - ref QuestStep reference45 = ref span61[num3]; + num2 = 1; + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list61)[0]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24866,30 +20669,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list62 = new List(index2); - CollectionsMarshal.SetCount(list62, index2); - Span span62 = CollectionsMarshal.AsSpan(list62); - num4 = 0; - span62[num4] = 131; + num3 = 1; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + CollectionsMarshal.AsSpan(list62)[0] = 131; obj49.InTerritory = list62; skipConditions11.AetheryteShortcutIf = obj49; obj48.SkipConditions = skipConditions11; reference45 = obj48; obj47.Steps = list61; reference44 = obj47; - num++; - ref QuestSequence reference46 = ref span55[num]; + ref QuestSequence reference46 = ref span23[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -24899,18 +20697,15 @@ public static class AssemblyQuestLoader }; obj50.Steps = list63; reference46 = obj50; - num++; - ref QuestSequence reference47 = ref span55[num]; + ref QuestSequence reference47 = ref span23[5]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -24928,26 +20723,21 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - num2 = 0; - span65[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list65)[0] = "Cacahuetes"; questRoot5.Author = list65; - num2 = 8; - List list66 = new List(num2); - CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference48 = ref span66[num]; + num = 8; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span24 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference48 = ref span24[0]; QuestSequence obj52 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list67)[0]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -24962,153 +20752,117 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list68 = new List(num4); - CollectionsMarshal.SetCount(list68, num4); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = 131; + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + CollectionsMarshal.AsSpan(list68)[0] = 131; obj54.InTerritory = list68; skipConditions12.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions12; reference49 = obj53; obj52.Steps = list67; reference48 = obj52; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span24[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj55.Steps = list69; reference50 = obj55; - num++; - ref QuestSequence reference51 = ref span66[num]; + ref QuestSequence reference51 = ref span24[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list70 = new List(num3); - CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - ref QuestStep reference52 = ref span70[index]; + num2 = 3; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span25 = CollectionsMarshal.AsSpan(list70); + ref QuestStep reference52 = ref span25[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1001462u, new Vector3(-93.33948f, -11.367981f, -41.397766f), 141); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list71; reference52 = questStep3; - index++; - ref QuestStep reference53 = ref span70[index]; + ref QuestStep reference53 = ref span25[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1001438u, new Vector3(-30.838562f, -1.0332576f, -145.67792f), 141); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list72; reference53 = questStep4; - index++; - ref QuestStep reference54 = ref span70[index]; + ref QuestStep reference54 = ref span25[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001434u, new Vector3(-115.77026f, 0.015197754f, -149.24854f), 141); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list73; reference54 = questStep5; obj56.Steps = list70; reference51 = obj56; - num++; - ref QuestSequence reference55 = ref span66[num]; + ref QuestSequence reference55 = ref span24[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj57.Steps = list74; reference55 = obj57; - num++; - ref QuestSequence reference56 = ref span66[num]; + ref QuestSequence reference56 = ref span24[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj58.Steps = list75; reference56 = obj58; - num++; - ref QuestSequence reference57 = ref span66[num]; + ref QuestSequence reference57 = ref span24[5]; QuestSequence obj59 = new QuestSequence { Sequence = 5 }; - index = 1; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - ref QuestStep reference58 = ref span76[num3]; + num2 = 1; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list76)[0]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut @@ -25117,12 +20871,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - num4 = 1; - List list77 = new List(num4); - CollectionsMarshal.SetCount(list77, num4); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new DialogueChoice + num3 = 1; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA200_00263_Q1_000_124"), @@ -25132,18 +20884,15 @@ public static class AssemblyQuestLoader reference58 = obj60; obj59.Steps = list76; reference57 = obj59; - num++; - ref QuestSequence reference59 = ref span66[num]; + ref QuestSequence reference59 = ref span24[6]; QuestSequence obj61 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -25154,18 +20903,15 @@ public static class AssemblyQuestLoader }; obj61.Steps = list78; reference59 = obj61; - num++; - ref QuestSequence reference60 = ref span66[num]; + ref QuestSequence reference60 = ref span24[7]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25184,26 +20930,21 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - num2 = 0; - span80[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list80)[0] = "Cacahuetes"; questRoot6.Author = list80; - num2 = 7; - List list81 = new List(num2); - CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference61 = ref span81[num]; + num = 7; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span29 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference61 = ref span29[0]; QuestSequence obj63 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestStep obj64 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25218,30 +20959,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list83 = new List(index2); - CollectionsMarshal.SetCount(list83, index2); - Span span83 = CollectionsMarshal.AsSpan(list83); - num4 = 0; - span83[num4] = 131; + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = 131; obj65.InTerritory = list83; skipConditions13.AetheryteShortcutIf = obj65; obj64.SkipConditions = skipConditions13; reference62 = obj64; obj63.Steps = list82; reference61 = obj63; - num++; - ref QuestSequence reference63 = ref span81[num]; + ref QuestSequence reference63 = ref span29[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - index = 1; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - ref QuestStep reference64 = ref span84[num3]; + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 1004225u, new Vector3(62.974f, 54.60642f, 284.90112f), 140) { Fly = true, @@ -25252,42 +20988,34 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list85 = new List(num4); - CollectionsMarshal.SetCount(list85, num4); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = 1243u; + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = 1243u; obj67.KillEnemyDataIds = list85; reference64 = obj67; obj66.Steps = list84; reference63 = obj66; - num++; - ref QuestSequence reference65 = ref span81[num]; + ref QuestSequence reference65 = ref span29[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj68.Steps = list86; reference65 = obj68; - num++; - ref QuestSequence reference66 = ref span81[num]; + ref QuestSequence reference66 = ref span29[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25298,42 +21026,34 @@ public static class AssemblyQuestLoader }; obj69.Steps = list87; reference66 = obj69; - num++; - ref QuestSequence reference67 = ref span81[num]; + ref QuestSequence reference67 = ref span29[4]; QuestSequence obj70 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj70.Steps = list88; reference67 = obj70; - num++; - ref QuestSequence reference68 = ref span81[num]; + ref QuestSequence reference68 = ref span29[5]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - index = 1; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num3 = 0; - ref QuestStep reference69 = ref span89[num3]; + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj72 = new QuestStep(EInteractionType.SinglePlayerDuty, 1004141u, new Vector3(-520.5005f, -21.460285f, 123.46069f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - index2 = 1; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num4 = 0; - span90[num4] = new DialogueChoice + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA250_00264_Q1_000_170"), @@ -25343,18 +21063,15 @@ public static class AssemblyQuestLoader reference69 = obj72; obj71.Steps = list89; reference68 = obj71; - num++; - ref QuestSequence reference70 = ref span81[num]; + ref QuestSequence reference70 = ref span29[6]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25373,26 +21090,21 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - num2 = 0; - span92[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list92)[0] = "Cacahuetes"; questRoot7.Author = list92; - num2 = 6; - List list93 = new List(num2); - CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference71 = ref span93[num]; + num = 6; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span30 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference71 = ref span30[0]; QuestSequence obj74 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list94)[0]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -25407,30 +21119,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = 131; + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = 131; obj76.InTerritory = list95; skipConditions14.AetheryteShortcutIf = obj76; obj75.SkipConditions = skipConditions14; reference72 = obj75; obj74.Steps = list94; reference71 = obj74; - num++; - ref QuestSequence reference73 = ref span93[num]; + ref QuestSequence reference73 = ref span30[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list96 = new List(num3); - CollectionsMarshal.SetCount(list96, num3); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - ref QuestStep reference74 = ref span96[index]; + num2 = 1; + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AethernetShortcut = new AethernetShortcut @@ -25439,12 +21146,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Uldah } }; - index2 = 1; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num4 = 0; - span97[num4] = new DialogueChoice + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA300_00265_Q1_000_40"), @@ -25454,18 +21159,16 @@ public static class AssemblyQuestLoader reference74 = obj78; obj77.Steps = list96; reference73 = obj77; - num++; - ref QuestSequence reference75 = ref span93[num]; + ref QuestSequence reference75 = ref span30[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -25480,8 +21183,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span98[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + span31[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -25492,8 +21194,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span98[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.30618f, 4.2185926f, -585.2695f), 146) + span31[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(140.30618f, 4.2185926f, -585.2695f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -25504,64 +21205,47 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference76 = ref span98[num3]; + ref QuestStep reference76 = ref span31[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2001455u, new Vector3(28.091797f, 6.9733276f, -611.2917f), 146); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list99; reference76 = questStep6; - num3++; - ref QuestStep reference77 = ref span98[num3]; + ref QuestStep reference77 = ref span31[4]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2001435u, new Vector3(101.823364f, 7.248047f, -534.56934f), 146); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list100; reference77 = questStep7; obj79.Steps = list98; reference75 = obj79; - num++; - ref QuestSequence reference78 = ref span93[num]; + ref QuestSequence reference78 = ref span30[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25572,18 +21256,15 @@ public static class AssemblyQuestLoader }; obj80.Steps = list101; reference78 = obj80; - num++; - ref QuestSequence reference79 = ref span93[num]; + ref QuestSequence reference79 = ref span30[4]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -25593,18 +21274,15 @@ public static class AssemblyQuestLoader }; obj81.Steps = list102; reference79 = obj81; - num++; - ref QuestSequence reference80 = ref span93[num]; + ref QuestSequence reference80 = ref span30[5]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -25623,47 +21301,37 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - num2 = 0; - span104[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list104)[0] = "Cacahuetes"; questRoot8.Author = list104; - num2 = 2; - List list105 = new List(num2); - CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference81 = ref span105[num]; + num = 2; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span35 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference81 = ref span35[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj83.Steps = list106; reference81 = obj83; - num++; - ref QuestSequence reference82 = ref span105[num]; + ref QuestSequence reference82 = ref span35[1]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - ref QuestStep reference83 = ref span107[index]; + 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); - num4 = 1; - List list108 = new List(num4); - CollectionsMarshal.SetCount(list108, num4); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new DialogueChoice + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSCUL011_00271_Q1_000_1") @@ -25679,40 +21347,33 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - span109[num2] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot9.Author = list109; - num2 = 3; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference84 = ref span110[num]; + num = 3; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span36 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference84 = ref span36[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj85.Steps = list111; reference84 = obj85; - num++; - ref QuestSequence reference85 = ref span110[num]; + ref QuestSequence reference85 = ref span36[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -25732,45 +21393,37 @@ public static class AssemblyQuestLoader } } }; - index++; - span112[index] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141) + span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141) { PickUpQuestId = new QuestId(638) }; - index++; - span112[index] = new QuestStep(EInteractionType.Interact, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); + span37[2] = new QuestStep(EInteractionType.Interact, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); obj86.Steps = list112; reference85 = obj86; - num++; - ref QuestSequence reference86 = ref span110[num]; + ref QuestSequence reference86 = ref span36[2]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num3++; - span113[num3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span38[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num3++; - span113[num3] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span38[4] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj87.Steps = list113; reference86 = obj87; questRoot9.QuestSequence = list110; @@ -25780,47 +21433,37 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - num2 = 0; - span114[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list114)[0] = "Cacahuetes"; questRoot10.Author = list114; - num2 = 2; - List list115 = new List(num2); - CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference87 = ref span115[num]; + num = 2; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span39 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference87 = ref span39[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj88.Steps = list116; reference87 = obj88; - num++; - ref QuestSequence reference88 = ref span115[num]; + ref QuestSequence reference88 = ref span39[1]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - index = 1; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num3 = 0; - ref QuestStep reference89 = ref span117[num3]; + num2 = 1; + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list117)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); - index2 = 1; - List list118 = new List(index2); - CollectionsMarshal.SetCount(list118, index2); - Span span118 = CollectionsMarshal.AsSpan(list118); - num4 = 0; - span118[num4] = new DialogueChoice + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSARM011_00273_Q1_000_1") @@ -25836,47 +21479,37 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - num2 = 0; - span119[num2] = "liza"; + CollectionsMarshal.AsSpan(list119)[0] = "liza"; questRoot11.Author = list119; - num2 = 2; - List list120 = new List(num2); - CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference90 = ref span120[num]; + num = 2; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span40 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference90 = ref span40[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj90.Steps = list121; reference90 = obj90; - num++; - ref QuestSequence reference91 = ref span120[num]; + ref QuestSequence reference91 = ref span40[1]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - index = 1; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - ref QuestStep reference92 = ref span122[num3]; + num2 = 1; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131); - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new DialogueChoice + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLA011_00285_Q2_000_1") @@ -25893,40 +21526,33 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - num2 = 0; - span124[num2] = "liza"; + CollectionsMarshal.AsSpan(list124)[0] = "liza"; questRoot12.Author = list124; - num2 = 3; - List list125 = new List(num2); - CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference93 = ref span125[num]; + num = 3; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + Span span41 = CollectionsMarshal.AsSpan(list125); + ref QuestSequence reference93 = ref span41[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj92.Steps = list126; reference93 = obj92; - num++; - ref QuestSequence reference94 = ref span125[num]; + ref QuestSequence reference94 = ref span41[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - index = 3; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num3 = 0; - ref QuestStep reference95 = ref span127[num3]; + num2 = 3; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + Span span42 = CollectionsMarshal.AsSpan(list127); + ref QuestStep reference95 = ref span42[0]; QuestStep obj94 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.13088f, 3.889354f, -166.51999f), 130) { AethernetShortcut = new AethernetShortcut @@ -25937,163 +21563,122 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - index2 = 1; - List list128 = new List(index2); - CollectionsMarshal.SetCount(list128, index2); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = 141; + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = 141; skipStepConditions6.InTerritory = list128; skipConditions15.StepIf = skipStepConditions6; obj94.SkipConditions = skipConditions15; reference95 = obj94; - num3++; - ref QuestStep reference96 = ref span127[num3]; + ref QuestStep reference96 = ref span42[1]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, null, new Vector3(-116.10664f, 10.801613f, 276.979f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list129 = new List(num4); - CollectionsMarshal.SetCount(list129, num4); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref ComplexCombatData reference97 = ref span129[index2]; + num3 = 2; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span43 = CollectionsMarshal.AsSpan(list129); + ref ComplexCombatData reference97 = ref span43[0]; ComplexCombatData obj96 = new ComplexCombatData { DataId = 351u, MinimumKillCount = 3u }; - 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; + 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; obj96.CompletionQuestVariablesFlags = list130; reference97 = obj96; - index2++; - ref ComplexCombatData reference98 = ref span129[index2]; + ref ComplexCombatData reference98 = ref span43[1]; ComplexCombatData obj97 = new ComplexCombatData { DataId = 141u, MinimumKillCount = 3u }; - 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; + 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; obj97.CompletionQuestVariablesFlags = list131; reference98 = obj97; obj95.ComplexCombatData = list129; - 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; + 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; obj95.CompletionQuestVariablesFlags = list132; reference96 = obj95; - num3++; - ref QuestStep reference99 = ref span127[num3]; + ref QuestStep reference99 = ref span42[2]; QuestStep obj98 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.635372f, 3.2401803f, 273.41232f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list133 = new List(num4); - CollectionsMarshal.SetCount(list133, num4); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - ref ComplexCombatData reference100 = ref span133[index2]; + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + ref ComplexCombatData reference100 = ref CollectionsMarshal.AsSpan(list133)[0]; ComplexCombatData obj99 = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; - 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; + 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; obj99.CompletionQuestVariablesFlags = list134; reference100 = obj99; obj98.ComplexCombatData = list133; - 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; + 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; obj98.CompletionQuestVariablesFlags = list135; reference99 = obj98; obj93.Steps = list127; reference94 = obj93; - num++; - ref QuestSequence reference101 = ref span125[num]; + ref QuestSequence reference101 = ref span41[2]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -26111,26 +21696,21 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - num2 = 0; - span137[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list137)[0] = "Cacahuetes"; questRoot13.Author = list137; - num2 = 7; - List list138 = new List(num2); - CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference102 = ref span138[num]; + num = 7; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span49 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference102 = ref span49[0]; QuestSequence obj101 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list139 = new List(num2); + CollectionsMarshal.SetCount(list139, num2); + ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list139)[0]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26145,30 +21725,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list140 = new List(num4); - CollectionsMarshal.SetCount(list140, num4); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = 131; + num3 = 1; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + CollectionsMarshal.AsSpan(list140)[0] = 131; obj103.InTerritory = list140; skipConditions16.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions16; reference103 = obj102; obj101.Steps = list139; reference102 = obj101; - num++; - ref QuestSequence reference104 = ref span138[num]; + ref QuestSequence reference104 = ref span49[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list141 = new List(num3); - CollectionsMarshal.SetCount(list141, num3); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - ref QuestStep reference105 = ref span141[index]; + num2 = 1; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list141)[0]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 1002296u, new Vector3(-139.42175f, 4.019726f, 205.0354f), 141) { AethernetShortcut = new AethernetShortcut @@ -26178,42 +21753,34 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list142 = new List(index2); - CollectionsMarshal.SetCount(list142, index2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num4 = 0; - span142[num4] = 1245u; + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = 1245u; obj105.KillEnemyDataIds = list142; reference105 = obj105; obj104.Steps = list141; reference104 = obj104; - num++; - ref QuestSequence reference106 = ref span138[num]; + ref QuestSequence reference106 = ref span49[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj106.Steps = list143; reference106 = obj106; - num++; - ref QuestSequence reference107 = ref span138[num]; + ref QuestSequence reference107 = ref span49[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - num3 = 1; - List list144 = new List(num3); - CollectionsMarshal.SetCount(list144, num3); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - ref QuestStep reference108 = ref span144[index]; + num2 = 1; + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list144)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26228,30 +21795,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list145 = new List(num4); - CollectionsMarshal.SetCount(list145, num4); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = 131; + num3 = 1; + List list145 = new List(num3); + CollectionsMarshal.SetCount(list145, num3); + CollectionsMarshal.AsSpan(list145)[0] = 131; obj109.InTerritory = list145; skipConditions17.AetheryteShortcutIf = obj109; obj108.SkipConditions = skipConditions17; reference108 = obj108; obj107.Steps = list144; reference107 = obj107; - num++; - ref QuestSequence reference109 = ref span138[num]; + ref QuestSequence reference109 = ref span49[4]; QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -26261,35 +21823,29 @@ public static class AssemblyQuestLoader }; obj110.Steps = list146; reference109 = obj110; - num++; - ref QuestSequence reference110 = ref span138[num]; + ref QuestSequence reference110 = ref span49[5]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj111.Steps = list147; reference110 = obj111; - num++; - ref QuestSequence reference111 = ref span138[num]; + ref QuestSequence reference111 = ref span49[6]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - index = 1; - List list148 = new List(index); - CollectionsMarshal.SetCount(list148, index); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - ref QuestStep reference112 = ref span148[num3]; + num2 = 1; + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list148)[0]; QuestStep obj113 = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.4999976f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -26299,12 +21855,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - index2 = 1; - List list149 = new List(index2); - CollectionsMarshal.SetCount(list149, index2); - Span span149 = CollectionsMarshal.AsSpan(list149); - num4 = 0; - span149[num4] = new DialogueChoice + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSGLA101_00288_Q1_000_160"), @@ -26322,26 +21876,21 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - num2 = 0; - span150[num2] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list150)[0] = "Cacahuetes"; questRoot14.Author = list150; - num2 = 2; - List list151 = new List(num2); - CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference113 = ref span151[num]; + num = 2; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span50 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference113 = ref span50[0]; QuestSequence obj114 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list152)[0]; QuestStep obj115 = new QuestStep(EInteractionType.AcceptQuest, 1000995u, new Vector3(-52.018066f, 42.799637f, 192.2179f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -26356,21 +21905,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = 128; + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + CollectionsMarshal.AsSpan(list153)[0] = 128; obj116.InTerritory = list153; skipConditions18.AetheryteShortcutIf = obj116; obj115.SkipConditions = skipConditions18; - index2 = 1; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num4 = 0; - span154[num4] = new DialogueChoice + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM011_00291_Q1_000_1") @@ -26379,25 +21924,20 @@ public static class AssemblyQuestLoader reference114 = obj115; obj114.Steps = list152; reference113 = obj114; - num++; - ref QuestSequence reference115 = ref span151[num]; + ref QuestSequence reference115 = ref span50[1]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - index = 1; - List list155 = new List(index); - CollectionsMarshal.SetCount(list155, index); - Span span155 = CollectionsMarshal.AsSpan(list155); - num3 = 0; - ref QuestStep reference116 = ref span155[num3]; + num2 = 1; + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list155)[0]; QuestStep questStep11 = new QuestStep(EInteractionType.CompleteQuest, 1000997u, new Vector3(-31.265808f, 44.49997f, 185.53442f), 128); - num4 = 1; - List list156 = new List(num4); - CollectionsMarshal.SetCount(list156, num4); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new DialogueChoice + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSBSM011_00291_Q1_000_1") @@ -26418,16 +21958,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -26435,23 +21972,19 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001500u, new Vector3(81.77307f, 1.051391f, 311.23828f), 141); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001500u, new Vector3(81.77307f, 1.051391f, 311.23828f), 141); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -26459,16 +21992,14 @@ public static class AssemblyQuestLoader Position = new Vector3(59.662186f, 0.9387207f, 258.3517f) } }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) + span2[1] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) { StopDistance = 7f, DelaySecondsAtStart = 2f }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -26476,14 +22007,12 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.070023f, -3.6582303f, 160.2097f), 141) + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-60.070023f, -3.6582303f, 160.2097f), 141) { Sprint = true }; - index2++; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -26493,30 +22022,24 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 3; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 3; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span4[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span4[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -26524,14 +22047,12 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.UseItem, 2000268u, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) + Span span5 = CollectionsMarshal.AsSpan(list9); + span5[0] = new QuestStep(EInteractionType.UseItem, 2000268u, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) { ItemId = 2000212u }; - index2++; - ref QuestStep reference6 = ref span9[index2]; + ref QuestStep reference6 = ref span5[1]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(25.680908f, 13.076904f, 47.80652f), 141) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -26539,25 +22060,20 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span10 = CollectionsMarshal.AsSpan(list10); - int index3 = 0; - span10[index3] = 187u; + CollectionsMarshal.AsSpan(list10)[0] = 187u; obj6.KillEnemyDataIds = list10; reference6 = obj6; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference7 = ref span7[num]; + ref QuestSequence reference7 = ref span4[2]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; questRoot2.QuestSequence = list7; @@ -26567,16 +22083,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list12)[0] = "Cacahuetes"; questRoot3.Author = list12; - index = 2; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference8 = ref span13[num]; + num = 2; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span6 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference8 = ref span6[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -26584,30 +22097,23 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128); obj8.Steps = list14; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span13[num]; + ref QuestSequence reference9 = ref span6[1]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference10 = ref span15[num2]; + num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128); - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new DialogueChoice + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC011_00310_Q2_000_1") @@ -26624,18 +22130,15 @@ public static class AssemblyQuestLoader num = 2; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; - index++; - span17[index] = "Wigglez"; + Span span7 = CollectionsMarshal.AsSpan(list17); + span7[0] = "liza"; + span7[1] = "Wigglez"; questRoot4.Author = list17; - index = 4; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference11 = ref span18[num]; + num = 4; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span8 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference11 = ref span8[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -26643,9 +22146,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference12 = ref span19[index2]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj11 = new QuestStep(EInteractionType.AcceptQuest, 1000926u, new Vector3(-10.055725f, 44.999794f, -245.80762f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -26663,34 +22164,27 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - index3 = 0; - span20[index3] = 128; + CollectionsMarshal.AsSpan(list20)[0] = 128; obj12.InTerritory = list20; skipConditions.AetheryteShortcutIf = obj12; obj11.SkipConditions = skipConditions; reference12 = obj11; obj10.Steps = list19; reference11 = obj10; - num++; - ref QuestSequence reference13 = ref span18[num]; + ref QuestSequence reference13 = ref span8[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref QuestStep reference14 = ref span21[num2]; + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128); - index3 = 1; - List list22 = new List(index3); - CollectionsMarshal.SetCount(list22, index3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new DialogueChoice + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSEXC020_00311_Q2_000_1") @@ -26699,8 +22193,7 @@ public static class AssemblyQuestLoader reference14 = questStep2; obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span8[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -26708,9 +22201,8 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref QuestStep reference16 = ref span23[index2]; + Span span9 = CollectionsMarshal.AsSpan(list23); + ref QuestStep reference16 = ref span9[0]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -26723,9 +22215,7 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span24 = CollectionsMarshal.AsSpan(list24); - index3 = 0; - ref ComplexCombatData reference17 = ref span24[index3]; + ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; ComplexCombatData obj16 = new ComplexCombatData { DataId = 347u, @@ -26734,42 +22224,29 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - 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; + 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; obj16.CompletionQuestVariablesFlags = list25; reference17 = obj16; obj15.ComplexCombatData = list24; - 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; + 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; obj15.CompletionQuestVariablesFlags = list26; reference16 = obj15; - index2++; - ref QuestStep reference18 = ref span23[index2]; + ref QuestStep reference18 = ref span9[1]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -26777,53 +22254,38 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - ref ComplexCombatData reference19 = ref span27[index3]; + ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj18.CompletionQuestVariablesFlags = list28; reference19 = obj18; obj17.ComplexCombatData = list27; - 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; + 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; obj17.CompletionQuestVariablesFlags = list29; reference18 = obj17; - index2++; - ref QuestStep reference20 = ref span23[index2]; + ref QuestStep reference20 = ref span9[2]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -26831,9 +22293,7 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - ref ComplexCombatData reference21 = ref span30[index3]; + ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 338u, @@ -26842,59 +22302,44 @@ public static class AssemblyQuestLoader num4 = 6; List list31 = new List(num4); CollectionsMarshal.SetCount(list31, num4); - 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; + 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; obj20.CompletionQuestVariablesFlags = list31; reference21 = obj20; obj19.ComplexCombatData = list30; - 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; + 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; obj19.CompletionQuestVariablesFlags = list32; reference20 = obj19; obj14.Steps = list23; reference15 = obj14; - num++; - ref QuestSequence reference22 = ref span18[num]; + ref QuestSequence reference22 = ref span8[3]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)128 }; - num2++; - span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AethernetShortcut = new AethernetShortcut { @@ -26912,16 +22357,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot5.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference23 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span17 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference23 = ref span17[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -26929,9 +22371,7 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference24 = ref span36[index2]; + ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list36)[0]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -26949,27 +22389,23 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span37 = CollectionsMarshal.AsSpan(list37); - index3 = 0; - span37[index3] = 128; + CollectionsMarshal.AsSpan(list37)[0] = 128; obj24.InTerritory = list37; skipConditions2.AetheryteShortcutIf = obj24; obj23.SkipConditions = skipConditions2; reference24 = obj23; obj22.Steps = list36; reference23 = obj22; - num++; - ref QuestSequence reference25 = ref span35[num]; + ref QuestSequence reference25 = ref span17[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list38 = new List(index2); - CollectionsMarshal.SetCount(list38, index2); - Span span38 = CollectionsMarshal.AsSpan(list38); - num2 = 0; - ref QuestStep reference26 = ref span38[num2]; + num2 = 3; + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + Span span18 = CollectionsMarshal.AsSpan(list38); + ref QuestStep reference26 = ref span18[0]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.662792f, 44.020653f, 146.94322f), 134) { AethernetShortcut = new AethernetShortcut @@ -26979,66 +22415,49 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list39 = new List(index3); - CollectionsMarshal.SetCount(list39, index3); - Span span39 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - ref ComplexCombatData reference27 = ref span39[num3]; + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + ref ComplexCombatData reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - 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; + 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; obj27.CompletionQuestVariablesFlags = list40; reference27 = obj27; obj26.ComplexCombatData = list39; num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - 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; + 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; obj26.CompletionQuestVariablesFlags = list41; reference26 = obj26; - num2++; - ref QuestStep reference28 = ref span38[num2]; + ref QuestStep reference28 = ref span18[1]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list42 = new List(index3); - CollectionsMarshal.SetCount(list42, index3); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - ref ComplexCombatData reference29 = ref span42[num3]; + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + ref ComplexCombatData reference29 = ref CollectionsMarshal.AsSpan(list42)[0]; ComplexCombatData obj29 = new ComplexCombatData { DataId = 49u, @@ -27047,98 +22466,70 @@ public static class AssemblyQuestLoader num4 = 6; List list43 = new List(num4); CollectionsMarshal.SetCount(list43, num4); - 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; + 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; obj29.CompletionQuestVariablesFlags = list43; reference29 = obj29; obj28.ComplexCombatData = list42; num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - 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; + 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; obj28.CompletionQuestVariablesFlags = list44; reference28 = obj28; - num2++; - ref QuestStep reference30 = ref span38[num2]; + ref QuestStep reference30 = ref span18[2]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(74.15681f, 45.953808f, 169.73499f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list45 = new List(index3); - CollectionsMarshal.SetCount(list45, index3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - ref ComplexCombatData reference31 = ref span45[num3]; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + ref ComplexCombatData reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; ComplexCombatData obj31 = new ComplexCombatData { DataId = 338u, MinimumKillCount = 3u }; - 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; + 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; obj31.CompletionQuestVariablesFlags = list46; reference31 = obj31; obj30.ComplexCombatData = list45; num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - 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; + 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; obj30.CompletionQuestVariablesFlags = list47; reference30 = obj30; obj25.Steps = list38; reference25 = obj25; - num++; - ref QuestSequence reference32 = ref span35[num]; + ref QuestSequence reference32 = ref span17[2]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -27146,9 +22537,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27167,26 +22556,21 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot6.Author = list49; - index = 12; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference33 = ref span50[num]; + num = 12; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span25 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference33 = ref span25[0]; QuestSequence obj33 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -27201,20 +22585,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list52 = new List(index3); - CollectionsMarshal.SetCount(list52, index3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = 128; + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = 128; obj35.InTerritory = list52; skipConditions3.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions3; reference34 = obj34; obj33.Steps = list51; reference33 = obj33; - num++; - ref QuestSequence reference35 = ref span50[num]; + ref QuestSequence reference35 = ref span25[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -27222,23 +22603,18 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128); obj36.Steps = list53; reference35 = obj36; - num++; - ref QuestSequence reference36 = ref span50[num]; + ref QuestSequence reference36 = ref span25[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -27248,8 +22624,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference36 = obj37; - num++; - ref QuestSequence reference37 = ref span50[num]; + ref QuestSequence reference37 = ref span25[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -27257,9 +22632,8 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference38 = ref span55[index2]; + Span span26 = CollectionsMarshal.AsSpan(list55); + ref QuestStep reference38 = ref span26[0]; QuestStep obj39 = new QuestStep(EInteractionType.Action, 2001481u, new Vector3(-52.140076f, 46.158447f, 15.823547f), 134) { Action = EAction.HeavySwing @@ -27267,47 +22641,33 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - 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); + 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); obj39.CompletionQuestVariablesFlags = list56; reference38 = obj39; - index2++; - ref QuestStep reference39 = ref span55[index2]; + ref QuestStep reference39 = ref span26[1]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 2001482u, new Vector3(-73.80792f, 43.259277f, 4.623413f), 134) { Action = EAction.HeavySwing }; - 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); + 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); obj40.CompletionQuestVariablesFlags = list57; reference39 = obj40; - index2++; - ref QuestStep reference40 = ref span55[index2]; + ref QuestStep reference40 = ref span26[2]; QuestStep obj41 = new QuestStep(EInteractionType.Action, 2001480u, new Vector3(-68.467285f, 43.503418f, 20.248657f), 134) { Action = EAction.HeavySwing @@ -27315,39 +22675,29 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - 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); + 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); obj41.CompletionQuestVariablesFlags = list58; reference40 = obj41; obj38.Steps = list55; reference37 = obj38; - num++; - ref QuestSequence reference41 = ref span50[num]; + ref QuestSequence reference41 = ref span25[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj42.Steps = list59; reference41 = obj42; - num++; - ref QuestSequence reference42 = ref span50[num]; + ref QuestSequence reference42 = ref span25[5]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -27355,33 +22705,25 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - ref QuestStep reference43 = ref span60[index2]; + Span span30 = CollectionsMarshal.AsSpan(list60); + ref QuestStep reference43 = ref span30[0]; QuestStep obj44 = new QuestStep(EInteractionType.Action, 2001483u, new Vector3(-12.314087f, 46.402588f, 31.47937f), 134) { Action = EAction.HeavySwing }; - 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); + 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); obj44.CompletionQuestVariablesFlags = list61; reference43 = obj44; - index2++; - ref QuestStep reference44 = ref span60[index2]; + ref QuestStep reference44 = ref span30[1]; QuestStep obj45 = new QuestStep(EInteractionType.Action, 2001485u, new Vector3(1.663208f, 48.2948f, 9.597839f), 134) { Action = EAction.HeavySwing @@ -27389,63 +22731,46 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - 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); + 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); obj45.CompletionQuestVariablesFlags = list62; reference44 = obj45; - index2++; - ref QuestStep reference45 = ref span60[index2]; + ref QuestStep reference45 = ref span30[2]; QuestStep obj46 = new QuestStep(EInteractionType.Action, 2001484u, new Vector3(-14.572449f, 47.40979f, 12.344482f), 134) { Action = EAction.HeavySwing }; - 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); + 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); obj46.CompletionQuestVariablesFlags = list63; reference45 = obj46; obj43.Steps = list60; reference42 = obj43; - num++; - ref QuestSequence reference46 = ref span50[num]; + ref QuestSequence reference46 = ref span25[6]; QuestSequence obj47 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj47.Steps = list64; reference46 = obj47; - num++; - ref QuestSequence reference47 = ref span50[num]; + ref QuestSequence reference47 = ref span25[7]; QuestSequence obj48 = new QuestSequence { Sequence = 7 @@ -27453,9 +22778,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27466,22 +22789,18 @@ public static class AssemblyQuestLoader }; obj48.Steps = list65; reference47 = obj48; - num++; - ref QuestSequence reference48 = ref span50[num]; + ref QuestSequence reference48 = ref span25[8]; QuestSequence obj49 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj49.Steps = list66; reference48 = obj49; - num++; - ref QuestSequence reference49 = ref span50[num]; + ref QuestSequence reference49 = ref span25[9]; QuestSequence obj50 = new QuestSequence { Sequence = 9 @@ -27489,11 +22808,9 @@ public static class AssemblyQuestLoader num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -27503,18 +22820,15 @@ public static class AssemblyQuestLoader }; obj50.Steps = list67; reference49 = obj50; - num++; - ref QuestSequence reference50 = ref span50[num]; + ref QuestSequence reference50 = ref span25[10]; QuestSequence obj51 = new QuestSequence { Sequence = 10 }; - 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) + 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) { StopDistance = 0.5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -27524,8 +22838,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list68; reference50 = obj51; - num++; - ref QuestSequence reference51 = ref span50[num]; + ref QuestSequence reference51 = ref span25[11]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -27533,9 +22846,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27554,26 +22865,21 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - span70[index] = "liza"; + CollectionsMarshal.AsSpan(list70)[0] = "liza"; questRoot7.Author = list70; - index = 5; - List list71 = new List(index); - CollectionsMarshal.SetCount(list71, index); - Span span71 = CollectionsMarshal.AsSpan(list71); - num = 0; - ref QuestSequence reference52 = ref span71[num]; + num = 5; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + Span span35 = CollectionsMarshal.AsSpan(list71); + ref QuestSequence reference52 = ref span35[0]; QuestSequence obj53 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -27591,17 +22897,14 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span73 = CollectionsMarshal.AsSpan(list73); - index3 = 0; - span73[index3] = 128; + CollectionsMarshal.AsSpan(list73)[0] = 128; obj55.InTerritory = list73; skipConditions4.AetheryteShortcutIf = obj55; obj54.SkipConditions = skipConditions4; reference53 = obj54; obj53.Steps = list72; reference52 = obj53; - num++; - ref QuestSequence reference54 = ref span71[num]; + ref QuestSequence reference54 = ref span35[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -27609,9 +22912,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference55 = ref span74[index2]; + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list74)[0]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.3196f, 73.47712f, -313.9601f), 135) { Fly = true, @@ -27622,12 +22923,10 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list75 = new List(index3); - CollectionsMarshal.SetCount(list75, index3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - ref ComplexCombatData reference56 = ref span75[num3]; + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + ref ComplexCombatData reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; ComplexCombatData obj58 = new ComplexCombatData { DataId = 5u, @@ -27636,37 +22935,28 @@ public static class AssemblyQuestLoader num4 = 6; List list76 = new List(num4); CollectionsMarshal.SetCount(list76, num4); - 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; + 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; obj58.CompletionQuestVariablesFlags = list76; reference56 = obj58; obj57.ComplexCombatData = list75; reference55 = obj57; obj56.Steps = list74; reference54 = obj56; - num++; - ref QuestSequence reference57 = ref span71[num]; + ref QuestSequence reference57 = ref span35[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27677,8 +22967,7 @@ public static class AssemblyQuestLoader }; obj59.Steps = list77; reference57 = obj59; - num++; - ref QuestSequence reference58 = ref span71[num]; + ref QuestSequence reference58 = ref span35[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -27686,9 +22975,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - ref QuestStep reference59 = ref span78[index2]; + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2000286u, new Vector3(-88.60913f, 43.564453f, -303.05945f), 134) { Fly = true, @@ -27703,9 +22990,7 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - index3 = 0; - span79[index3] = 2u; + CollectionsMarshal.AsSpan(list79)[0] = 2u; obj61.KillEnemyDataIds = list79; obj61.SkipConditions = new SkipConditions { @@ -27717,18 +23002,15 @@ public static class AssemblyQuestLoader reference59 = obj61; obj60.Steps = list78; reference58 = obj60; - num++; - ref QuestSequence reference60 = ref span71[num]; + ref QuestSequence reference60 = ref span35[4]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27747,16 +23029,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "liza"; + CollectionsMarshal.AsSpan(list81)[0] = "liza"; questRoot8.Author = list81; - index = 5; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference61 = ref span82[num]; + num = 5; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span37 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference61 = ref span37[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -27764,9 +23043,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference62 = ref span83[index2]; + ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list83)[0]; QuestStep obj64 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -27781,30 +23058,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list84 = new List(index3); - CollectionsMarshal.SetCount(list84, index3); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = 128; + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = 128; obj65.InTerritory = list84; skipConditions5.AetheryteShortcutIf = obj65; obj64.SkipConditions = skipConditions5; reference62 = obj64; obj63.Steps = list83; reference61 = obj63; - num++; - ref QuestSequence reference63 = ref span82[num]; + ref QuestSequence reference63 = ref span37[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference64 = ref span85[num2]; + num2 = 1; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.3196f, 73.47712f, -313.9601f), 135) { Fly = true, @@ -27818,38 +23090,29 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - index3 = 0; - ref ComplexCombatData reference65 = ref span86[index3]; + ref ComplexCombatData reference65 = ref CollectionsMarshal.AsSpan(list86)[0]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 5u, MinimumKillCount = 3u }; - 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; + 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; obj68.CompletionQuestVariablesFlags = list87; reference65 = obj68; obj67.ComplexCombatData = list86; reference64 = obj67; obj66.Steps = list85; reference63 = obj66; - num++; - ref QuestSequence reference66 = ref span82[num]; + ref QuestSequence reference66 = ref span37[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -27857,9 +23120,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27870,18 +23131,15 @@ public static class AssemblyQuestLoader }; obj69.Steps = list88; reference66 = obj69; - num++; - ref QuestSequence reference67 = ref span82[num]; + ref QuestSequence reference67 = ref span37[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list89 = new List(index2); - CollectionsMarshal.SetCount(list89, index2); - Span span89 = CollectionsMarshal.AsSpan(list89); - num2 = 0; - ref QuestStep reference68 = ref span89[num2]; + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2000287u, new Vector3(-88.60913f, 43.564453f, -303.05945f), 134) { Fly = true, @@ -27893,12 +23151,10 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list90 = new List(index3); - CollectionsMarshal.SetCount(list90, index3); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = 2u; + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = 2u; obj71.KillEnemyDataIds = list90; obj71.SkipConditions = new SkipConditions { @@ -27910,8 +23166,7 @@ public static class AssemblyQuestLoader reference68 = obj71; obj70.Steps = list89; reference67 = obj70; - num++; - ref QuestSequence reference69 = ref span82[num]; + ref QuestSequence reference69 = ref span37[4]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -27919,9 +23174,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -27940,26 +23193,21 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "liza"; + CollectionsMarshal.AsSpan(list92)[0] = "liza"; questRoot9.Author = list92; - index = 8; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference70 = ref span93[num]; + num = 8; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span39 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference70 = ref span39[0]; QuestSequence obj73 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list94)[0]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -27977,17 +23225,14 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span95 = CollectionsMarshal.AsSpan(list95); - index3 = 0; - span95[index3] = 128; + CollectionsMarshal.AsSpan(list95)[0] = 128; obj75.InTerritory = list95; skipConditions6.AetheryteShortcutIf = obj75; obj74.SkipConditions = skipConditions6; reference71 = obj74; obj73.Steps = list94; reference70 = obj73; - num++; - ref QuestSequence reference72 = ref span93[num]; + ref QuestSequence reference72 = ref span39[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -27995,9 +23240,8 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + Span span40 = CollectionsMarshal.AsSpan(list96); + span40[0] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)138, @@ -28007,27 +23251,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - index2++; - span96[index2] = new QuestStep(EInteractionType.Interact, 1002110u, new Vector3(319.84436f, -31.898647f, 273.51794f), 138); + span40[1] = new QuestStep(EInteractionType.Interact, 1002110u, new Vector3(319.84436f, -31.898647f, 273.51794f), 138); obj76.Steps = list96; reference72 = obj76; - num++; - ref QuestSequence reference73 = ref span93[num]; + ref QuestSequence reference73 = ref span39[2]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Aetheryte = EAetheryteLocation.WesternLaNosceaAleport }; - num2++; - span97[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(139.18224f, -20.931536f, 139.35034f), 138) + span41[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(139.18224f, -20.931536f, 139.35034f), 138) { SkipConditions = new SkipConditions { @@ -28037,25 +23277,21 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference74 = ref span97[num2]; + ref QuestStep reference74 = ref span41[2]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2000288u, new Vector3(99.22937f, -14.2977295f, 141.86316f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list98 = new List(index3); - CollectionsMarshal.SetCount(list98, index3); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = 28u; + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = 28u; obj78.KillEnemyDataIds = list98; reference74 = obj78; obj77.Steps = list97; reference73 = obj77; - num++; - ref QuestSequence reference75 = ref span93[num]; + ref QuestSequence reference75 = ref span39[3]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -28063,9 +23299,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -28076,18 +23310,16 @@ public static class AssemblyQuestLoader }; obj79.Steps = list99; reference75 = obj79; - num++; - ref QuestSequence reference76 = ref span93[num]; + ref QuestSequence reference76 = ref span39[4]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -28107,8 +23339,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span100[num2] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134) + span42[1] = new QuestStep(EInteractionType.Interact, 1002111u, new Vector3(-206.80554f, 41.757885f, -39.627747f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -28119,8 +23350,7 @@ public static class AssemblyQuestLoader }; obj80.Steps = list100; reference76 = obj80; - num++; - ref QuestSequence reference77 = ref span93[num]; + ref QuestSequence reference77 = ref span39[5]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -28128,30 +23358,24 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Action, 2001486u, new Vector3(-225.33002f, 42.191162f, -35.202576f), 134) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Action, 2001486u, new Vector3(-225.33002f, 42.191162f, -35.202576f), 134) { Action = EAction.HeavySwing }; obj81.Steps = list101; reference77 = obj81; - num++; - ref QuestSequence reference78 = ref span93[num]; + ref QuestSequence reference78 = ref span39[6]; QuestSequence obj82 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj82.Steps = list102; reference78 = obj82; - num++; - ref QuestSequence reference79 = ref span93[num]; + ref QuestSequence reference79 = ref span39[7]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -28159,9 +23383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -28180,26 +23402,21 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "liza"; + CollectionsMarshal.AsSpan(list104)[0] = "liza"; questRoot10.Author = list104; - index = 9; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference80 = ref span105[num]; + num = 9; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span43 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference80 = ref span43[0]; QuestSequence obj84 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list106)[0]; QuestStep obj85 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -28217,9 +23434,7 @@ public static class AssemblyQuestLoader num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - index3 = 0; - span107[index3] = 128; + CollectionsMarshal.AsSpan(list107)[0] = 128; obj86.InTerritory = list107; skipConditions7.AetheryteShortcutIf = obj86; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -28230,8 +23445,7 @@ public static class AssemblyQuestLoader reference81 = obj85; obj84.Steps = list106; reference80 = obj84; - num++; - ref QuestSequence reference82 = ref span105[num]; + ref QuestSequence reference82 = ref span43[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -28239,9 +23453,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1002682u, new Vector3(-86.930725f, 40.999992f, -153.91785f), 128) { AethernetShortcut = new AethernetShortcut { @@ -28251,18 +23463,15 @@ public static class AssemblyQuestLoader }; obj87.Steps = list108; reference82 = obj87; - num++; - ref QuestSequence reference83 = ref span105[num]; + ref QuestSequence reference83 = ref span43[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -28273,8 +23482,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list109; reference83 = obj88; - num++; - ref QuestSequence reference84 = ref span105[num]; + ref QuestSequence reference84 = ref span43[3]; QuestSequence obj89 = new QuestSequence { Sequence = 3 @@ -28282,30 +23490,24 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1002683u, new Vector3(559.6245f, 89.783f, -80.1557f), 135); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1002683u, new Vector3(559.6245f, 89.783f, -80.1557f), 135); obj89.Steps = list110; reference84 = obj89; - num++; - ref QuestSequence reference85 = ref span105[num]; + ref QuestSequence reference85 = ref span43[4]; QuestSequence obj90 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj90.Steps = list111; reference85 = obj90; - num++; - ref QuestSequence reference86 = ref span105[num]; + ref QuestSequence reference86 = ref span43[5]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -28313,32 +23515,23 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - ref QuestStep reference87 = ref span112[index2]; + Span span44 = CollectionsMarshal.AsSpan(list112); + ref QuestStep reference87 = ref span44[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2000289u, new Vector3(348.34814f, -18.60083f, 168.3833f), 138); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list113; reference87 = questStep3; - index2++; - span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138); - index2++; - ref QuestStep reference88 = ref span112[index2]; + span44[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138); + ref QuestStep reference88 = ref span44[2]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2000290u, new Vector3(297.38306f, -14.2977295f, 148.85168f), 138) { DelaySecondsAtStart = 5f @@ -28346,35 +23539,26 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - 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); + 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); obj92.CompletionQuestVariablesFlags = list114; reference88 = obj92; obj91.Steps = list112; reference86 = obj91; - num++; - ref QuestSequence reference89 = ref span105[num]; + ref QuestSequence reference89 = ref span43[6]; QuestSequence obj93 = new QuestSequence { Sequence = 6 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -28383,8 +23567,7 @@ public static class AssemblyQuestLoader }; obj93.Steps = list115; reference89 = obj93; - num++; - ref QuestSequence reference90 = ref span105[num]; + ref QuestSequence reference90 = ref span43[7]; QuestSequence obj94 = new QuestSequence { Sequence = 7 @@ -28392,9 +23575,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1002112u, new Vector3(561.6693f, 89.783f, -81.52899f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -28406,18 +23587,15 @@ public static class AssemblyQuestLoader }; obj94.Steps = list116; reference90 = obj94; - num++; - ref QuestSequence reference91 = ref span105[num]; + ref QuestSequence reference91 = ref span43[8]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -28436,16 +23614,13 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot11.Author = list118; - index = 4; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference92 = ref span119[num]; + num = 4; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span47 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference92 = ref span47[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -28453,9 +23628,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - ref QuestStep reference93 = ref span120[index2]; + ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list120)[0]; QuestStep obj97 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -28470,12 +23643,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list121 = new List(index3); - CollectionsMarshal.SetCount(list121, index3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = 128; + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = 128; obj98.InTerritory = list121; skipConditions8.AetheryteShortcutIf = obj98; skipConditions8.AethernetShortcutIf = new SkipAetheryteCondition @@ -28486,18 +23657,15 @@ public static class AssemblyQuestLoader reference93 = obj97; obj96.Steps = list120; reference92 = obj96; - num++; - ref QuestSequence reference94 = ref span119[num]; + ref QuestSequence reference94 = ref span47[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -28507,8 +23675,7 @@ public static class AssemblyQuestLoader }; obj99.Steps = list122; reference94 = obj99; - num++; - ref QuestSequence reference95 = ref span119[num]; + ref QuestSequence reference95 = ref span47[2]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -28516,9 +23683,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002685u, new Vector3(-235.33997f, -0.28636882f, 675.349f), 135) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002685u, new Vector3(-235.33997f, -0.28636882f, 675.349f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -28529,18 +23694,15 @@ public static class AssemblyQuestLoader }; obj100.Steps = list123; reference95 = obj100; - num++; - ref QuestSequence reference96 = ref span119[num]; + ref QuestSequence reference96 = ref span47[3]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -28559,16 +23721,13 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot12.Author = list125; - index = 9; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference97 = ref span126[num]; + num = 9; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span48 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference97 = ref span48[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -28576,9 +23735,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - ref QuestStep reference98 = ref span127[index2]; + ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list127)[0]; QuestStep obj103 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -28596,9 +23753,7 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span128 = CollectionsMarshal.AsSpan(list128); - index3 = 0; - span128[index3] = 128; + CollectionsMarshal.AsSpan(list128)[0] = 128; obj104.InTerritory = list128; skipConditions9.AetheryteShortcutIf = obj104; skipConditions9.AethernetShortcutIf = new SkipAetheryteCondition @@ -28609,18 +23764,15 @@ public static class AssemblyQuestLoader reference98 = obj103; obj102.Steps = list127; reference97 = obj102; - num++; - ref QuestSequence reference99 = ref span126[num]; + ref QuestSequence reference99 = ref span48[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -28631,8 +23783,7 @@ public static class AssemblyQuestLoader }; obj105.Steps = list129; reference99 = obj105; - num++; - ref QuestSequence reference100 = ref span126[num]; + ref QuestSequence reference100 = ref span48[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -28640,67 +23791,49 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - ref QuestStep reference101 = ref span130[index2]; + Span span49 = CollectionsMarshal.AsSpan(list130); + ref QuestStep reference101 = ref span49[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1002713u, new Vector3(554.4059f, 89.783f, -67.979004f), 135); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list131; reference101 = questStep4; - index2++; - ref QuestStep reference102 = ref span130[index2]; + ref QuestStep reference102 = ref span49[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list132; reference102 = questStep5; obj106.Steps = list130; reference100 = obj106; - num++; - ref QuestSequence reference103 = ref span126[num]; + ref QuestSequence reference103 = ref span48[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj107.Steps = list133; reference103 = obj107; - num++; - ref QuestSequence reference104 = ref span126[num]; + ref QuestSequence reference104 = ref span48[4]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -28708,36 +23841,30 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 2000297u, new Vector3(590.8141f, 72.40405f, -272.08368f), 135) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2000297u, new Vector3(590.8141f, 72.40405f, -272.08368f), 135) { StopDistance = 1f, Mount = false }; obj108.Steps = list134; reference104 = obj108; - num++; - ref QuestSequence reference105 = ref span126[num]; + ref QuestSequence reference105 = ref span48[5]; QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Mount = false }; - num2++; - span135[num2] = new QuestStep(EInteractionType.Interact, 2000298u, new Vector3(566.8268f, 85.52673f, -320.82092f), 135); + span52[1] = new QuestStep(EInteractionType.Interact, 2000298u, new Vector3(566.8268f, 85.52673f, -320.82092f), 135); obj109.Steps = list135; reference105 = obj109; - num++; - ref QuestSequence reference106 = ref span126[num]; + ref QuestSequence reference106 = ref span48[6]; QuestSequence obj110 = new QuestSequence { Sequence = 6 @@ -28745,9 +23872,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000299u, new Vector3(574.0901f, 90.440186f, -429.06842f), 135) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2000299u, new Vector3(574.0901f, 90.440186f, -429.06842f), 135) { Mount = false, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -28757,39 +23882,30 @@ public static class AssemblyQuestLoader }; obj110.Steps = list136; reference106 = obj110; - num++; - ref QuestSequence reference107 = ref span126[num]; + ref QuestSequence reference107 = ref span48[7]; QuestSequence obj111 = new QuestSequence { Sequence = 7 }; - index2 = 3; - List list137 = new List(index2); - CollectionsMarshal.SetCount(list137, index2); - Span span137 = CollectionsMarshal.AsSpan(list137); - num2 = 0; - ref QuestStep reference108 = ref span137[num2]; + num2 = 3; + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + Span span53 = CollectionsMarshal.AsSpan(list137); + ref QuestStep reference108 = ref span53[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002689u, new Vector3(569.6345f, 86.253204f, -363.94293f), 135); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list138; reference108 = questStep6; - num2++; - ref QuestStep reference109 = ref span137[num2]; + ref QuestStep reference109 = ref span53[1]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1002714u, new Vector3(572.5946f, 86.366455f, -365.3468f), 135) { StopDistance = 5f @@ -28797,49 +23913,35 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - 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); + 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); obj112.CompletionQuestVariablesFlags = list139; reference109 = obj112; - num2++; - ref QuestStep reference110 = ref span137[num2]; + ref QuestStep reference110 = ref span53[2]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1002715u, new Vector3(566.4302f, 86.2767f, -364.95007f), 135) { StopDistance = 5f }; - 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); + 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); obj113.CompletionQuestVariablesFlags = list140; reference110 = obj113; obj111.Steps = list137; reference107 = obj111; - num++; - ref QuestSequence reference111 = ref span126[num]; + ref QuestSequence reference111 = ref span48[8]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -28847,9 +23949,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -28868,30 +23968,24 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "liza"; + CollectionsMarshal.AsSpan(list142)[0] = "liza"; questRoot13.Author = list142; - index = 8; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference112 = ref span143[num]; + num = 8; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span57 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference112 = ref span57[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj115.Steps = list144; reference112 = obj115; - num++; - ref QuestSequence reference113 = ref span143[num]; + ref QuestSequence reference113 = ref span57[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -28899,23 +23993,19 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj116.Steps = list145; reference113 = obj116; - num++; - ref QuestSequence reference114 = ref span143[num]; + ref QuestSequence reference114 = ref span57[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list146 = new List(index2); - CollectionsMarshal.SetCount(list146, index2); - Span span146 = CollectionsMarshal.AsSpan(list146); - num2 = 0; - ref QuestStep reference115 = ref span146[num2]; + num2 = 4; + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + Span span58 = CollectionsMarshal.AsSpan(list146); + ref QuestStep reference115 = ref span58[0]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1002949u, new Vector3(-82.71924f, -11.350104f, -36.66742f), 141) { StopDistance = 2f @@ -28923,47 +24013,33 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - 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); + 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); obj118.CompletionQuestVariablesFlags = list147; reference115 = obj118; - num2++; - ref QuestStep reference116 = ref span146[num2]; + ref QuestStep reference116 = ref span58[1]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1002948u, new Vector3(-80.46088f, -12.785964f, -39.44464f), 141) { StopDistance = 7f }; - 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); + 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); obj119.CompletionQuestVariablesFlags = list148; reference116 = obj119; - num2++; - ref QuestStep reference117 = ref span146[num2]; + ref QuestStep reference117 = ref span58[2]; QuestStep obj120 = new QuestStep(EInteractionType.Interact, 1002950u, new Vector3(-80.76605f, -12.819771f, -34.439636f), 141) { StopDistance = 7f @@ -28971,49 +24047,35 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - 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); + 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); obj120.CompletionQuestVariablesFlags = list149; reference117 = obj120; - num2++; - ref QuestStep reference118 = ref span146[num2]; + ref QuestStep reference118 = ref span58[3]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1002951u, new Vector3(-80.094604f, -12.790767f, -33.463074f), 141) { StopDistance = 7f }; - 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); + 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); obj121.CompletionQuestVariablesFlags = list150; reference118 = obj121; obj117.Steps = list146; reference114 = obj117; - num++; - ref QuestSequence reference119 = ref span143[num]; + ref QuestSequence reference119 = ref span57[3]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -29021,30 +24083,24 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj122.Steps = list151; reference119 = obj122; - num++; - ref QuestSequence reference120 = ref span143[num]; + ref QuestSequence reference120 = ref span57[4]; QuestSequence obj123 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span152[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002955u, new Vector3(-228.47339f, -30.853842f, 117.29602f), 141) + span63[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002955u, new Vector3(-228.47339f, -30.853842f, 117.29602f), 141) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -29053,13 +24109,11 @@ public static class AssemblyQuestLoader }; obj123.Steps = list152; reference120 = obj123; - num++; - span143[num] = new QuestSequence + span57[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference121 = ref span143[num]; + ref QuestSequence reference121 = ref span57[6]; QuestSequence obj124 = new QuestSequence { Sequence = 6 @@ -29067,23 +24121,18 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1002947u, new Vector3(-95.71985f, -11.35f, -44.449524f), 141); obj124.Steps = list153; reference121 = obj124; - num++; - ref QuestSequence reference122 = ref span143[num]; + ref QuestSequence reference122 = ref span57[7]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -29101,16 +24150,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot14.Author = list155; - index = 3; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference123 = ref span156[num]; + num = 3; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span64 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference123 = ref span64[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -29118,23 +24164,18 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); obj126.Steps = list157; reference123 = obj126; - num++; - ref QuestSequence reference124 = ref span156[num]; + ref QuestSequence reference124 = ref span64[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -29144,8 +24185,7 @@ public static class AssemblyQuestLoader }; obj127.Steps = list158; reference124 = obj127; - num++; - ref QuestSequence reference125 = ref span156[num]; + ref QuestSequence reference125 = ref span64[2]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -29153,9 +24193,7 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129) { AethernetShortcut = new AethernetShortcut { @@ -29172,30 +24210,24 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot15.Author = list160; - index = 2; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference126 = ref span161[num]; + num = 2; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span65 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference126 = ref span65[0]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj129.Steps = list162; reference126 = obj129; - num++; - ref QuestSequence reference127 = ref span161[num]; + ref QuestSequence reference127 = ref span65[1]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -29203,9 +24235,7 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj130.Steps = list163; reference127 = obj130; questRoot15.QuestSequence = list161; @@ -29215,30 +24245,24 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span164 = CollectionsMarshal.AsSpan(list164); - index = 0; - span164[index] = "liza"; + CollectionsMarshal.AsSpan(list164)[0] = "liza"; questRoot16.Author = list164; - index = 3; - List list165 = new List(index); - CollectionsMarshal.SetCount(list165, index); - Span span165 = CollectionsMarshal.AsSpan(list165); - num = 0; - ref QuestSequence reference128 = ref span165[num]; + num = 3; + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + Span span66 = CollectionsMarshal.AsSpan(list165); + ref QuestSequence reference128 = ref span66[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj131.Steps = list166; reference128 = obj131; - num++; - ref QuestSequence reference129 = ref span165[num]; + ref QuestSequence reference129 = ref span66[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -29246,9 +24270,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - ref QuestStep reference130 = ref span167[index2]; + ref QuestStep reference130 = ref CollectionsMarshal.AsSpan(list167)[0]; QuestStep obj133 = new QuestStep(EInteractionType.Combat, null, new Vector3(203.66704f, 51.853172f, -150.48145f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -29256,9 +24278,7 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - index3 = 0; - span168[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list168)[0] = new ComplexCombatData { DataId = 136u, MinimumKillCount = 4u @@ -29267,18 +24287,15 @@ public static class AssemblyQuestLoader reference130 = obj133; obj132.Steps = list167; reference129 = obj132; - num++; - ref QuestSequence reference131 = ref span165[num]; + ref QuestSequence reference131 = ref span66[2]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj134.Steps = list169; reference131 = obj134; questRoot16.QuestSequence = list165; @@ -29288,16 +24305,13 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "liza"; + CollectionsMarshal.AsSpan(list170)[0] = "liza"; questRoot17.Author = list170; - index = 3; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference132 = ref span171[num]; + num = 3; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span67 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference132 = ref span67[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -29305,29 +24319,23 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj135.Steps = list172; reference132 = obj135; - num++; - ref QuestSequence reference133 = ref span171[num]; + ref QuestSequence reference133 = ref span67[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj136.Steps = list173; reference133 = obj136; - num++; - ref QuestSequence reference134 = ref span171[num]; + ref QuestSequence reference134 = ref span67[2]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -29335,9 +24343,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; @@ -29350,30 +24356,24 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "liza"; + CollectionsMarshal.AsSpan(list175)[0] = "liza"; questRoot18.Author = list175; - index = 2; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference135 = ref span176[num]; + num = 2; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span69 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference135 = ref span69[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj138.Steps = list177; reference135 = obj138; - num++; - ref QuestSequence reference136 = ref span176[num]; + ref QuestSequence reference136 = ref span69[1]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -29381,9 +24381,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; @@ -29396,30 +24394,24 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "liza"; + CollectionsMarshal.AsSpan(list179)[0] = "liza"; questRoot19.Author = list179; - index = 2; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference137 = ref span180[num]; + num = 2; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span70 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference137 = ref span70[0]; QuestSequence obj140 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj140.Steps = list181; reference137 = obj140; - num++; - ref QuestSequence reference138 = ref span180[num]; + ref QuestSequence reference138 = ref span70[1]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -29427,9 +24419,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002066u, new Vector3(-176.95892f, 15.652092f, -270.98505f), 140); + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002066u, new Vector3(-176.95892f, 15.652092f, -270.98505f), 140); obj141.Steps = list182; reference138 = obj141; questRoot19.QuestSequence = list180; @@ -29439,33 +24429,27 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot20.Author = list183; - index = 2; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference139 = ref span184[num]; + num = 2; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span71 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference139 = ref span71[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj142.Steps = list185; reference139 = obj142; - num++; - ref QuestSequence reference140 = ref span184[num]; + ref QuestSequence reference140 = ref span71[1]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -29473,13 +24457,10 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - 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); + 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); obj143.Steps = list186; reference140 = obj143; questRoot20.QuestSequence = list184; @@ -29489,30 +24470,24 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "liza"; + CollectionsMarshal.AsSpan(list187)[0] = "liza"; questRoot21.Author = list187; - index = 3; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference141 = ref span188[num]; + num = 3; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span73 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference141 = ref span73[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj144.Steps = list189; reference141 = obj144; - num++; - ref QuestSequence reference142 = ref span188[num]; + ref QuestSequence reference142 = ref span73[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -29520,11 +24495,9 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -29533,18 +24506,15 @@ public static class AssemblyQuestLoader }; obj145.Steps = list190; reference142 = obj145; - num++; - ref QuestSequence reference143 = ref span188[num]; + ref QuestSequence reference143 = ref span73[2]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj146.Steps = list191; reference143 = obj146; questRoot21.QuestSequence = list188; @@ -29554,16 +24524,13 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = "liza"; + CollectionsMarshal.AsSpan(list192)[0] = "liza"; questRoot22.Author = list192; - index = 7; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref QuestSequence reference144 = ref span193[num]; + num = 7; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span75 = CollectionsMarshal.AsSpan(list193); + ref QuestSequence reference144 = ref span75[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -29571,30 +24538,24 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj147.Steps = list194; reference144 = obj147; - num++; - ref QuestSequence reference145 = ref span193[num]; + ref QuestSequence reference145 = ref span75[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj148.Steps = list195; reference145 = obj148; - num++; - ref QuestSequence reference146 = ref span193[num]; + ref QuestSequence reference146 = ref span75[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -29602,9 +24563,7 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001592u, new Vector3(-356.71014f, -10.421997f, -242.51166f), 145) + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001592u, new Vector3(-356.71014f, -10.421997f, -242.51166f), 145) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -29613,25 +24572,21 @@ public static class AssemblyQuestLoader }; obj149.Steps = list196; reference146 = obj149; - num++; - ref QuestSequence reference147 = ref span193[num]; + ref QuestSequence reference147 = ref span75[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DisableNavmesh = true }; obj150.Steps = list197; reference147 = obj150; - num++; - ref QuestSequence reference148 = ref span193[num]; + ref QuestSequence reference148 = ref span75[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -29639,9 +24594,7 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Duty, null, null, 146) + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions { @@ -29651,22 +24604,18 @@ public static class AssemblyQuestLoader }; obj151.Steps = list198; reference148 = obj151; - num++; - ref QuestSequence reference149 = ref span193[num]; + ref QuestSequence reference149 = ref span75[5]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj152.Steps = list199; reference149 = obj152; - num++; - ref QuestSequence reference150 = ref span193[num]; + ref QuestSequence reference150 = ref span75[6]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -29674,22 +24623,18 @@ public static class AssemblyQuestLoader num2 = 4; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) + Span span76 = CollectionsMarshal.AsSpan(list200); + span76[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - index2++; - span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + span76[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj153.Steps = list200; reference150 = obj153; questRoot22.QuestSequence = list193; @@ -29699,30 +24644,24 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list201)[0] = "Cacahuetes"; questRoot23.Author = list201; - index = 2; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference151 = ref span202[num]; + num = 2; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span77 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference151 = ref span77[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj154.Steps = list203; reference151 = obj154; - num++; - ref QuestSequence reference152 = ref span202[num]; + ref QuestSequence reference152 = ref span77[1]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -29730,16 +24669,12 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference153 = ref span204[index2]; + ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep questStep7 = new QuestStep(EInteractionType.CompleteQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); - index3 = 1; - List list205 = new List(index3); - CollectionsMarshal.SetCount(list205, index3); - Span span205 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - span205[num3] = new DialogueChoice + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM011_00344_Q1_001_1") @@ -29756,26 +24691,21 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "liza"; + CollectionsMarshal.AsSpan(list206)[0] = "liza"; questRoot24.Author = list206; - index = 4; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference154 = ref span207[num]; + num = 4; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span78 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference154 = ref span78[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -29793,8 +24723,7 @@ public static class AssemblyQuestLoader }; obj156.Steps = list208; reference154 = obj156; - num++; - ref QuestSequence reference155 = ref span207[num]; + ref QuestSequence reference155 = ref span78[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -29802,16 +24731,12 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference156 = ref span209[index2]; + ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list209)[0]; 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); - Span span210 = CollectionsMarshal.AsSpan(list210); - index3 = 0; - span210[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSTHM020_00345_Q1_001_1") @@ -29821,18 +24746,16 @@ public static class AssemblyQuestLoader reference156 = questStep8; obj157.Steps = list209; reference155 = obj157; - num++; - ref QuestSequence reference157 = ref span207[num]; + ref QuestSequence reference157 = ref span78[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list211 = new List(index2); - CollectionsMarshal.SetCount(list211, index2); - Span span211 = CollectionsMarshal.AsSpan(list211); - num2 = 0; - ref QuestStep reference158 = ref span211[num2]; + num2 = 2; + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + Span span79 = CollectionsMarshal.AsSpan(list211); + ref QuestStep reference158 = ref span79[0]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, null, new Vector3(-71.92632f, 9.839797f, 283.98495f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -29843,12 +24766,11 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 2; - List list212 = new List(index3); - CollectionsMarshal.SetCount(list212, index3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - ref ComplexCombatData reference159 = ref span212[num3]; + num3 = 2; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + Span span80 = CollectionsMarshal.AsSpan(list212); + ref ComplexCombatData reference159 = ref span80[0]; ComplexCombatData obj160 = new ComplexCombatData { DataId = 351u, @@ -29857,44 +24779,31 @@ public static class AssemblyQuestLoader num4 = 6; List list213 = new List(num4); CollectionsMarshal.SetCount(list213, num4); - 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; + 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; obj160.CompletionQuestVariablesFlags = list213; reference159 = obj160; - num3++; - ref ComplexCombatData reference160 = ref span212[num3]; + ref ComplexCombatData reference160 = ref span80[1]; ComplexCombatData obj161 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - 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; + 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; obj161.CompletionQuestVariablesFlags = list214; reference160 = obj161; obj159.ComplexCombatData = list212; @@ -29906,32 +24815,23 @@ public static class AssemblyQuestLoader num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span215 = CollectionsMarshal.AsSpan(list215); - index3 = 0; - span215[index3] = 141; + CollectionsMarshal.AsSpan(list215)[0] = 141; obj162.InTerritory = list215; skipConditions10.AetheryteShortcutIf = obj162; obj159.SkipConditions = skipConditions10; - 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; + 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; obj159.CompletionQuestVariablesFlags = list216; reference158 = obj159; - num2++; - ref QuestStep reference161 = ref span211[num2]; + ref QuestStep reference161 = ref span79[1]; QuestStep obj163 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.449f, 3.082914f, 272.46896f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -29939,36 +24839,27 @@ public static class AssemblyQuestLoader num3 = 1; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span217 = CollectionsMarshal.AsSpan(list217); - index3 = 0; - span217[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list217)[0] = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u }; obj163.ComplexCombatData = list217; - 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; + 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; obj163.CompletionQuestVariablesFlags = list218; reference161 = obj163; obj158.Steps = list211; reference157 = obj158; - num++; - ref QuestSequence reference162 = ref span207[num]; + ref QuestSequence reference162 = ref span78[3]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -29976,9 +24867,7 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -29997,26 +24886,21 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span220 = CollectionsMarshal.AsSpan(list220); - index = 0; - span220[index] = "pot0to"; + CollectionsMarshal.AsSpan(list220)[0] = "pot0to"; questRoot25.Author = list220; - index = 3; - List list221 = new List(index); - CollectionsMarshal.SetCount(list221, index); - Span span221 = CollectionsMarshal.AsSpan(list221); - num = 0; - ref QuestSequence reference163 = ref span221[num]; + num = 3; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span85 = CollectionsMarshal.AsSpan(list221); + ref QuestSequence reference163 = ref span85[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30034,8 +24918,7 @@ public static class AssemblyQuestLoader }; obj165.Steps = list222; reference163 = obj165; - num++; - ref QuestSequence reference164 = ref span221[num]; + ref QuestSequence reference164 = ref span85[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -30043,9 +24926,8 @@ public static class AssemblyQuestLoader num2 = 2; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - ref QuestStep reference165 = ref span223[index2]; + Span span86 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference165 = ref span86[0]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-71.92632f, 9.839797f, 283.98495f), 141) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -30059,9 +24941,8 @@ public static class AssemblyQuestLoader num3 = 2; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span224 = CollectionsMarshal.AsSpan(list224); - index3 = 0; - ref ComplexCombatData reference166 = ref span224[index3]; + Span span87 = CollectionsMarshal.AsSpan(list224); + ref ComplexCombatData reference166 = ref span87[0]; ComplexCombatData obj168 = new ComplexCombatData { DataId = 351u, @@ -30070,44 +24951,31 @@ public static class AssemblyQuestLoader num4 = 6; List list225 = new List(num4); CollectionsMarshal.SetCount(list225, num4); - 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; + 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; obj168.CompletionQuestVariablesFlags = list225; reference166 = obj168; - index3++; - ref ComplexCombatData reference167 = ref span224[index3]; + ref ComplexCombatData reference167 = ref span87[1]; ComplexCombatData obj169 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - 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; + 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; obj169.CompletionQuestVariablesFlags = list226; reference167 = obj169; obj167.ComplexCombatData = list224; @@ -30116,45 +24984,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list227 = new List(index3); - CollectionsMarshal.SetCount(list227, index3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = 141; + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = 141; obj170.InTerritory = list227; skipConditions11.AetheryteShortcutIf = obj170; obj167.SkipConditions = skipConditions11; num3 = 6; List list228 = new List(num3); CollectionsMarshal.SetCount(list228, num3); - 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; + 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; obj167.CompletionQuestVariablesFlags = list228; reference165 = obj167; - index2++; - ref QuestStep reference168 = ref span223[index2]; + ref QuestStep reference168 = ref span86[1]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, null, new Vector3(39.449f, 3.082914f, 272.46896f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list229 = new List(index3); - CollectionsMarshal.SetCount(list229, index3); - Span span229 = CollectionsMarshal.AsSpan(list229); - num3 = 0; - span229[num3] = new ComplexCombatData + num3 = 1; + List list229 = new List(num3); + CollectionsMarshal.SetCount(list229, num3); + CollectionsMarshal.AsSpan(list229)[0] = new ComplexCombatData { DataId = 205u, MinimumKillCount = 3u @@ -30163,35 +25020,26 @@ public static class AssemblyQuestLoader num3 = 6; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - 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; + 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; obj171.CompletionQuestVariablesFlags = list230; reference168 = obj171; obj166.Steps = list223; reference164 = obj166; - num++; - ref QuestSequence reference169 = ref span221[num]; + ref QuestSequence reference169 = ref span85[2]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30210,16 +25058,13 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "pot0to"; + CollectionsMarshal.AsSpan(list232)[0] = "pot0to"; questRoot26.Author = list232; - index = 6; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference170 = ref span233[num]; + num = 6; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span92 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference170 = ref span92[0]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -30227,9 +25072,7 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30247,22 +25090,18 @@ public static class AssemblyQuestLoader }; obj173.Steps = list234; reference170 = obj173; - num++; - ref QuestSequence reference171 = ref span233[num]; + ref QuestSequence reference171 = ref span92[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj174.Steps = list235; reference171 = obj174; - num++; - ref QuestSequence reference172 = ref span233[num]; + ref QuestSequence reference172 = ref span92[2]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -30270,9 +25109,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - ref QuestStep reference173 = ref span236[index2]; + ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep obj176 = new QuestStep(EInteractionType.UseItem, 2001468u, new Vector3(-87.38843f, 50.614136f, 315.6023f), 140) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -30288,30 +25125,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list237 = new List(index3); - CollectionsMarshal.SetCount(list237, index3); - Span span237 = CollectionsMarshal.AsSpan(list237); - num3 = 0; - span237[num3] = 140; + num3 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = 140; obj177.InTerritory = list237; skipConditions12.AetheryteShortcutIf = obj177; obj176.SkipConditions = skipConditions12; reference173 = obj176; obj175.Steps = list236; reference172 = obj175; - num++; - ref QuestSequence reference174 = ref span233[num]; + ref QuestSequence reference174 = ref span92[3]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list238 = new List(index2); - CollectionsMarshal.SetCount(list238, index2); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref QuestStep reference175 = ref span238[num2]; + num2 = 1; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list238)[0]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2001469u, new Vector3(-74.96759f, 53.238647f, 336.78186f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -30319,15 +25151,12 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - index3 = 0; - span239[index3] = 12u; + CollectionsMarshal.AsSpan(list239)[0] = 12u; obj179.KillEnemyDataIds = list239; reference175 = obj179; obj178.Steps = list238; reference174 = obj178; - num++; - ref QuestSequence reference176 = ref span233[num]; + ref QuestSequence reference176 = ref span92[4]; QuestSequence obj180 = new QuestSequence { Sequence = 4 @@ -30335,28 +25164,23 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-253.97243f, 33.2412f, 408.68488f), 140) + Span span93 = CollectionsMarshal.AsSpan(list240); + span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-253.97243f, 33.2412f, 408.68488f), 140) { Fly = true }; - index2++; - span240[index2] = new QuestStep(EInteractionType.Interact, 1002027u, new Vector3(-255.23767f, 33.238777f, 407.27856f), 140); + span93[1] = new QuestStep(EInteractionType.Interact, 1002027u, new Vector3(-255.23767f, 33.238777f, 407.27856f), 140); obj180.Steps = list240; reference176 = obj180; - num++; - ref QuestSequence reference177 = ref span233[num]; + ref QuestSequence reference177 = ref span92[5]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30375,18 +25199,15 @@ public static class AssemblyQuestLoader num = 2; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "liza"; - index++; - span242[index] = "pot0to"; + Span span94 = CollectionsMarshal.AsSpan(list242); + span94[0] = "liza"; + span94[1] = "pot0to"; questRoot27.Author = list242; - index = 8; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference178 = ref span243[num]; + num = 8; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span95 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference178 = ref span95[0]; QuestSequence obj182 = new QuestSequence { Sequence = 0 @@ -30394,9 +25215,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30414,22 +25233,18 @@ public static class AssemblyQuestLoader }; obj182.Steps = list244; reference178 = obj182; - num++; - ref QuestSequence reference179 = ref span243[num]; + ref QuestSequence reference179 = ref span95[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj183.Steps = list245; reference179 = obj183; - num++; - ref QuestSequence reference180 = ref span243[num]; + ref QuestSequence reference180 = ref span95[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -30437,9 +25252,8 @@ public static class AssemblyQuestLoader num2 = 3; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - ref QuestStep reference181 = ref span246[index2]; + Span span96 = CollectionsMarshal.AsSpan(list246); + ref QuestStep reference181 = ref span96[0]; QuestStep obj185 = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -30454,12 +25268,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list247 = new List(index3); - CollectionsMarshal.SetCount(list247, index3); - Span span247 = CollectionsMarshal.AsSpan(list247); - num3 = 0; - span247[num3] = 141; + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + CollectionsMarshal.AsSpan(list247)[0] = 141; obj186.InTerritory = list247; obj186.AetheryteUnlocked = EAetheryteLocation.CentralThanalanBlackBrushStation; skipConditions13.AetheryteShortcutIf = obj186; @@ -30469,8 +25281,7 @@ public static class AssemblyQuestLoader }; obj185.SkipConditions = skipConditions13; reference181 = obj185; - index2++; - span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) + span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) { SkipConditions = new SkipConditions { @@ -30481,8 +25292,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference182 = ref span246[index2]; + ref QuestStep reference182 = ref span96[2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.07747f, -2f, -225.21188f), 141) { Fly = true, @@ -30492,9 +25302,7 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - Span span248 = CollectionsMarshal.AsSpan(list248); - index3 = 0; - ref ComplexCombatData reference183 = ref span248[index3]; + ref ComplexCombatData reference183 = ref CollectionsMarshal.AsSpan(list248)[0]; ComplexCombatData obj188 = new ComplexCombatData { DataId = 160u, @@ -30503,19 +25311,13 @@ public static class AssemblyQuestLoader num4 = 6; List list249 = new List(num4); CollectionsMarshal.SetCount(list249, num4); - 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; + 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; obj188.CompletionQuestVariablesFlags = list249; reference183 = obj188; obj187.ComplexCombatData = list248; @@ -30529,18 +25331,15 @@ public static class AssemblyQuestLoader reference182 = obj187; obj184.Steps = list246; reference180 = obj184; - num++; - ref QuestSequence reference184 = ref span243[num]; + ref QuestSequence reference184 = ref span95[3]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list250 = new List(index2); - CollectionsMarshal.SetCount(list250, index2); - Span span250 = CollectionsMarshal.AsSpan(list250); - num2 = 0; - ref QuestStep reference185 = ref span250[num2]; + num2 = 1; + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list250)[0]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -30557,12 +25356,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list251 = new List(index3); - CollectionsMarshal.SetCount(list251, index3); - Span span251 = CollectionsMarshal.AsSpan(list251); - num3 = 0; - span251[num3] = new DialogueChoice + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + CollectionsMarshal.AsSpan(list251)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM100_00348_Q_000_1"), @@ -30572,8 +25369,7 @@ public static class AssemblyQuestLoader reference185 = obj190; obj189.Steps = list250; reference184 = obj189; - num++; - ref QuestSequence reference186 = ref span243[num]; + ref QuestSequence reference186 = ref span95[4]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -30581,9 +25377,7 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - ref QuestStep reference187 = ref span252[index2]; + ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list252)[0]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2001511u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145) { Fly = true, @@ -30593,11 +25387,9 @@ public static class AssemblyQuestLoader num3 = 2; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span253 = CollectionsMarshal.AsSpan(list253); - index3 = 0; - span253[index3] = 166u; - index3++; - span253[index3] = 1238u; + Span span98 = CollectionsMarshal.AsSpan(list253); + span98[0] = 166u; + span98[1] = 1238u; obj192.KillEnemyDataIds = list253; obj192.SkipConditions = new SkipConditions { @@ -30609,22 +25401,18 @@ public static class AssemblyQuestLoader reference187 = obj192; obj191.Steps = list252; reference186 = obj191; - num++; - ref QuestSequence reference188 = ref span243[num]; + ref QuestSequence reference188 = ref span95[5]; QuestSequence obj193 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj193.Steps = list254; reference188 = obj193; - num++; - ref QuestSequence reference189 = ref span243[num]; + ref QuestSequence reference189 = ref span95[6]; QuestSequence obj194 = new QuestSequence { Sequence = 6 @@ -30632,9 +25420,7 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30645,18 +25431,15 @@ public static class AssemblyQuestLoader }; obj194.Steps = list255; reference189 = obj194; - num++; - ref QuestSequence reference190 = ref span243[num]; + ref QuestSequence reference190 = ref span95[7]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(350) }; @@ -30669,16 +25452,13 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "pot0to"; + CollectionsMarshal.AsSpan(list257)[0] = "pot0to"; questRoot28.Author = list257; - index = 7; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference191 = ref span258[num]; + num = 7; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span99 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference191 = ref span99[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -30686,9 +25466,7 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30706,22 +25484,18 @@ public static class AssemblyQuestLoader }; obj196.Steps = list259; reference191 = obj196; - num++; - ref QuestSequence reference192 = ref span258[num]; + ref QuestSequence reference192 = ref span99[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj197.Steps = list260; reference192 = obj197; - num++; - ref QuestSequence reference193 = ref span258[num]; + ref QuestSequence reference193 = ref span99[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -30729,9 +25503,8 @@ public static class AssemblyQuestLoader num2 = 3; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - ref QuestStep reference194 = ref span261[index2]; + Span span100 = CollectionsMarshal.AsSpan(list261); + ref QuestStep reference194 = ref span100[0]; QuestStep obj199 = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -30746,12 +25519,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list262 = new List(index3); - CollectionsMarshal.SetCount(list262, index3); - Span span262 = CollectionsMarshal.AsSpan(list262); - num3 = 0; - span262[num3] = 141; + num3 = 1; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + CollectionsMarshal.AsSpan(list262)[0] = 141; obj200.InTerritory = list262; obj200.AetheryteUnlocked = EAetheryteLocation.CentralThanalanBlackBrushStation; skipConditions14.AetheryteShortcutIf = obj200; @@ -30761,8 +25532,7 @@ public static class AssemblyQuestLoader }; obj199.SkipConditions = skipConditions14; reference194 = obj199; - index2++; - span261[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) + span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-62.183617f, -3.6582246f, 145.88391f), 141) { SkipConditions = new SkipConditions { @@ -30773,8 +25543,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference195 = ref span261[index2]; + ref QuestStep reference195 = ref span100[2]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(149.07747f, -2f, -225.21188f), 141) { Fly = true, @@ -30784,30 +25553,22 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - Span span263 = CollectionsMarshal.AsSpan(list263); - index3 = 0; - ref ComplexCombatData reference196 = ref span263[index3]; + ref ComplexCombatData reference196 = ref CollectionsMarshal.AsSpan(list263)[0]; ComplexCombatData obj202 = new ComplexCombatData { DataId = 160u, MinimumKillCount = 8u }; - 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; + 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; obj202.CompletionQuestVariablesFlags = list264; reference196 = obj202; obj201.ComplexCombatData = list263; @@ -30821,18 +25582,15 @@ public static class AssemblyQuestLoader reference195 = obj201; obj198.Steps = list261; reference193 = obj198; - num++; - ref QuestSequence reference197 = ref span258[num]; + ref QuestSequence reference197 = ref span99[3]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list265 = new List(index2); - CollectionsMarshal.SetCount(list265, index2); - Span span265 = CollectionsMarshal.AsSpan(list265); - num2 = 0; - ref QuestStep reference198 = ref span265[num2]; + num2 = 1; + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list265)[0]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -30849,12 +25607,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list266 = new List(index3); - CollectionsMarshal.SetCount(list266, index3); - Span span266 = CollectionsMarshal.AsSpan(list266); - num3 = 0; - span266[num3] = new DialogueChoice + num3 = 1; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + CollectionsMarshal.AsSpan(list266)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM101_00349_Q_000_1"), @@ -30864,8 +25620,7 @@ public static class AssemblyQuestLoader reference198 = obj204; obj203.Steps = list265; reference197 = obj203; - num++; - ref QuestSequence reference199 = ref span258[num]; + ref QuestSequence reference199 = ref span99[4]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -30873,9 +25628,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - ref QuestStep reference200 = ref span267[index2]; + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2001512u, new Vector3(-366.29285f, -34.989014f, 293.56824f), 145) { Fly = true, @@ -30885,11 +25638,9 @@ public static class AssemblyQuestLoader num3 = 2; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span268 = CollectionsMarshal.AsSpan(list268); - index3 = 0; - span268[index3] = 166u; - index3++; - span268[index3] = 1238u; + Span span102 = CollectionsMarshal.AsSpan(list268); + span102[0] = 166u; + span102[1] = 1238u; obj206.KillEnemyDataIds = list268; obj206.SkipConditions = new SkipConditions { @@ -30901,22 +25652,18 @@ public static class AssemblyQuestLoader reference200 = obj206; obj205.Steps = list267; reference199 = obj205; - num++; - ref QuestSequence reference201 = ref span258[num]; + ref QuestSequence reference201 = ref span99[5]; QuestSequence obj207 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj207.Steps = list269; reference201 = obj207; - num++; - ref QuestSequence reference202 = ref span258[num]; + ref QuestSequence reference202 = ref span99[6]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -30924,9 +25671,7 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001710u, new Vector3(-240.2533f, 18.8f, 86.900024f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30949,16 +25694,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "pot0to"; + CollectionsMarshal.AsSpan(list)[0] = "pot0to"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -30966,9 +25708,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -30986,22 +25726,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -31009,40 +25745,33 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Emote, 1002301u, new Vector3(-178.2102f, 18f, 61.41748f), 130) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.Emote, 1002301u, new Vector3(-178.2102f, 18f, 61.41748f), 130) { Emote = EEmote.Cry }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Emote, 1002300u, new Vector3(-176.9284f, 18f, 62.363525f), 130) + span2[1] = new QuestStep(EInteractionType.Emote, 1002300u, new Vector3(-176.9284f, 18f, 62.363525f), 130) { Emote = EEmote.Cry }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Emote, 1002302u, new Vector3(-176.71478f, 18f, 64.34729f), 130) + span2[2] = new QuestStep(EInteractionType.Emote, 1002302u, new Vector3(-176.71478f, 18f, 64.34729f), 130) { Emote = EEmote.Cry }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -31050,9 +25779,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - ref QuestStep reference6 = ref span7[index2]; + ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; QuestStep obj6 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001470u, new Vector3(-24.887512f, -25.345276f, 321.94995f), 145) { Fly = true, @@ -31062,11 +25789,9 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - 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"; + Span span3 = CollectionsMarshal.AsSpan(list8); + span3[0] = "vbm doesn't move to the enemies automatically"; + span3[1] = "vbm doesn't interact with the urn"; singlePlayerDutyOptions.Notes = list8; obj6.SinglePlayerDutyOptions = singlePlayerDutyOptions; obj6.SkipConditions = new SkipConditions @@ -31079,18 +25804,15 @@ public static class AssemblyQuestLoader reference6 = obj6; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num2 = 0; - ref QuestStep reference8 = ref span9[num2]; + num2 = 1; + List list9 = new List(num2); + CollectionsMarshal.SetCount(list9, num2); + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list9)[0]; QuestStep obj8 = new QuestStep(EInteractionType.CompleteQuest, 1001711u, new Vector3(-241.62665f, 18.8f, 83.32947f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31100,12 +25822,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num4 = 1; - List list10 = new List(num4); - CollectionsMarshal.SetCount(list10, num4); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - span10[num3] = new DialogueChoice + num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM150_00350_Q1_000_1"), @@ -31123,17 +25843,14 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "pot0to"; + CollectionsMarshal.AsSpan(list11)[0] = "pot0to"; questRoot2.Author = list11; questRoot2.Comment = "TODO Fix pathing if flying is locked"; - index = 10; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 10; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span4 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span4[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -31141,9 +25858,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - ref QuestStep reference10 = ref span13[index2]; + ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; QuestStep obj10 = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31161,31 +25876,25 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span14 = CollectionsMarshal.AsSpan(list14); - num4 = 0; - span14[num4] = 130; + CollectionsMarshal.AsSpan(list14)[0] = 130; obj11.InTerritory = list14; skipConditions.AetheryteShortcutIf = obj11; obj10.SkipConditions = skipConditions; reference10 = obj10; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span4[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj12.Steps = list15; reference11 = obj12; - num++; - ref QuestSequence reference12 = ref span12[num]; + ref QuestSequence reference12 = ref span4[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -31193,9 +25902,7 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - ref QuestStep reference13 = ref span16[index2]; + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true, @@ -31206,41 +25913,34 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list17 = new List(num4); - CollectionsMarshal.SetCount(list17, num4); - Span span17 = CollectionsMarshal.AsSpan(list17); - num3 = 0; - span17[num3] = 140; + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + CollectionsMarshal.AsSpan(list17)[0] = 140; obj15.InTerritory = list17; skipConditions2.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions2; reference13 = obj14; obj13.Steps = list16; reference12 = obj13; - num++; - ref QuestSequence reference14 = ref span12[num]; + ref QuestSequence reference14 = ref span4[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - 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); + 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); obj16.Steps = list18; reference14 = obj16; - num++; - ref QuestSequence reference15 = ref span12[num]; + ref QuestSequence reference15 = ref span4[4]; QuestSequence obj17 = new QuestSequence { Sequence = 4 @@ -31248,26 +25948,21 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true }; obj17.Steps = list19; reference15 = obj17; - num++; - ref QuestSequence reference16 = ref span12[num]; + ref QuestSequence reference16 = ref span4[5]; QuestSequence obj18 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference17 = ref span20[num2]; + num2 = 1; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestStep obj19 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001472u, new Vector3(150.71338f, 18.783813f, -5.7526855f), 140) { Fly = true @@ -31276,16 +25971,13 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - 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"; + CollectionsMarshal.AsSpan(list21)[0] = "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; - num++; - ref QuestSequence reference18 = ref span12[num]; + ref QuestSequence reference18 = ref span4[6]; QuestSequence obj20 = new QuestSequence { Sequence = 6 @@ -31293,33 +25985,27 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1002305u, new Vector3(14.419739f, 22.157166f, 72.3125f), 140) { Fly = true }; obj20.Steps = list22; reference18 = obj20; - num++; - ref QuestSequence reference19 = ref span12[num]; + ref QuestSequence reference19 = ref span4[7]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj21.Steps = list23; reference19 = obj21; - num++; - ref QuestSequence reference20 = ref span12[num]; + ref QuestSequence reference20 = ref span4[8]; QuestSequence obj22 = new QuestSequence { Sequence = 8 @@ -31327,9 +26013,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - ref QuestStep reference21 = ref span24[index2]; + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1001712u, new Vector3(-241.50458f, 19.57727f, 84.64172f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31344,30 +26028,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - span25[num3] = 130; + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = 130; obj24.InTerritory = list25; skipConditions3.AetheryteShortcutIf = obj24; obj23.SkipConditions = skipConditions3; reference21 = obj23; obj22.Steps = list24; reference20 = obj22; - num++; - ref QuestSequence reference22 = ref span12[num]; + ref QuestSequence reference22 = ref span4[9]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(352) }; @@ -31380,16 +26059,13 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "pot0to"; + CollectionsMarshal.AsSpan(list27)[0] = "pot0to"; questRoot3.Author = list27; - index = 7; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference23 = ref span28[num]; + num = 7; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span6 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference23 = ref span6[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -31397,9 +26073,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - ref QuestStep reference24 = ref span29[index2]; + ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list29)[0]; QuestStep obj27 = new QuestStep(EInteractionType.AcceptQuest, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31417,31 +26091,25 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = 130; + CollectionsMarshal.AsSpan(list30)[0] = 130; obj28.InTerritory = list30; skipConditions4.AetheryteShortcutIf = obj28; obj27.SkipConditions = skipConditions4; reference24 = obj27; obj26.Steps = list29; reference23 = obj26; - num++; - ref QuestSequence reference25 = ref span28[num]; + ref QuestSequence reference25 = ref span6[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj29.Steps = list31; reference25 = obj29; - num++; - ref QuestSequence reference26 = ref span28[num]; + ref QuestSequence reference26 = ref span6[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -31449,9 +26117,8 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference27 = ref span32[index2]; + Span span7 = CollectionsMarshal.AsSpan(list32); + ref QuestStep reference27 = ref span7[0]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1002309u, new Vector3(-374.28857f, -57.079987f, 144.12134f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -31461,34 +26128,27 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = 145; + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = 145; obj32.InTerritory = list33; skipConditions5.AetheryteShortcutIf = obj32; obj31.SkipConditions = skipConditions5; reference27 = obj31; - 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); + 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); obj30.Steps = list32; reference26 = obj30; - num++; - ref QuestSequence reference28 = ref span28[num]; + ref QuestSequence reference28 = ref span6[3]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference29 = ref span34[num2]; + num2 = 1; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list34)[0]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31506,17 +26166,14 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span35 = CollectionsMarshal.AsSpan(list35); - num4 = 0; - span35[num4] = 130; + CollectionsMarshal.AsSpan(list35)[0] = 130; obj35.InTerritory = list35; skipConditions6.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions6; reference29 = obj34; obj33.Steps = list34; reference28 = obj33; - num++; - ref QuestSequence reference30 = ref span28[num]; + ref QuestSequence reference30 = ref span6[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -31524,23 +26181,19 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1001709u, new Vector3(-240.4975f, 18.7f, 85.58777f), 130); obj36.Steps = list36; reference30 = obj36; - num++; - ref QuestSequence reference31 = ref span28[num]; + ref QuestSequence reference31 = ref span6[5]; QuestSequence obj37 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num2 = 0; - ref QuestStep reference32 = ref span37[num2]; + num2 = 2; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + Span span8 = CollectionsMarshal.AsSpan(list37); + ref QuestStep reference32 = ref span8[0]; QuestStep obj38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(222.64497f, 5.099169f, -265.77835f), 145) { Fly = true, @@ -31551,22 +26204,18 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list38 = new List(num4); - CollectionsMarshal.SetCount(list38, num4); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = 145; + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = 145; obj39.InTerritory = list38; skipConditions7.AetheryteShortcutIf = obj39; obj38.SkipConditions = skipConditions7; reference32 = obj38; - num2++; - span37[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002310u, new Vector3(184.89343f, 3.1809213f, -338.64355f), 145); + span8[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002310u, new Vector3(184.89343f, 3.1809213f, -338.64355f), 145); obj37.Steps = list37; reference31 = obj37; - num++; - ref QuestSequence reference33 = ref span28[num]; + ref QuestSequence reference33 = ref span6[6]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -31574,9 +26223,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - ref QuestStep reference34 = ref span39[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list39)[0]; QuestStep obj41 = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31594,9 +26241,7 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num4 = 0; - span40[num4] = 130; + CollectionsMarshal.AsSpan(list40)[0] = 130; obj42.InTerritory = list40; skipConditions8.AetheryteShortcutIf = obj42; obj41.SkipConditions = skipConditions8; @@ -31611,26 +26256,21 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "pot0to"; + CollectionsMarshal.AsSpan(list41)[0] = "pot0to"; questRoot4.Author = list41; - index = 7; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference35 = ref span42[num]; + num = 7; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span9 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference35 = ref span9[0]; QuestSequence obj43 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31645,20 +26285,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list44 = new List(num4); - CollectionsMarshal.SetCount(list44, num4); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = 130; + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = 130; obj45.InTerritory = list44; skipConditions9.AetheryteShortcutIf = obj45; obj44.SkipConditions = skipConditions9; reference36 = obj44; obj43.Steps = list43; reference35 = obj43; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span9[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -31666,9 +26303,8 @@ public static class AssemblyQuestLoader num2 = 4; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - ref QuestStep reference38 = ref span45[index2]; + Span span10 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference38 = ref span10[0]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, @@ -31679,37 +26315,28 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num4 = 0; - span46[num4] = 140; + CollectionsMarshal.AsSpan(list46)[0] = 140; skipStepConditions.InTerritory = list46; skipConditions10.StepIf = skipStepConditions; obj47.SkipConditions = skipConditions10; reference38 = obj47; - 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); + 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); obj46.Steps = list45; reference37 = obj46; - num++; - ref QuestSequence reference39 = ref span42[num]; + ref QuestSequence reference39 = ref span9[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj48.Steps = list47; reference39 = obj48; - num++; - ref QuestSequence reference40 = ref span42[num]; + ref QuestSequence reference40 = ref span9[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -31717,40 +26344,32 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - ref QuestStep reference41 = ref span48[index2]; + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, 1002315u, new Vector3(-392.32477f, 23.557693f, -546.9902f), 140) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list49 = new List(num4); - CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = 1239u; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = 1239u; obj50.KillEnemyDataIds = list49; reference41 = obj50; obj49.Steps = list48; reference40 = obj49; - num++; - ref QuestSequence reference42 = ref span42[num]; + ref QuestSequence reference42 = ref span9[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj51.Steps = list50; reference42 = obj51; - num++; - ref QuestSequence reference43 = ref span42[num]; + ref QuestSequence reference43 = ref span9[5]; QuestSequence obj52 = new QuestSequence { Sequence = 5 @@ -31758,9 +26377,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - ref QuestStep reference44 = ref span51[index2]; + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj53 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002317u, new Vector3(-269.85577f, 15.346575f, -718.1354f), 140) { Fly = true @@ -31768,9 +26385,7 @@ public static class AssemblyQuestLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num4 = 0; - span52[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSTHM300_00353_Q_000_1"), @@ -31780,18 +26395,15 @@ public static class AssemblyQuestLoader reference44 = obj53; obj52.Steps = list51; reference43 = obj52; - num++; - ref QuestSequence reference45 = ref span42[num]; + ref QuestSequence reference45 = ref span9[6]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref QuestStep reference46 = ref span53[num2]; + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list53)[0]; QuestStep obj55 = new QuestStep(EInteractionType.CompleteQuest, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -31806,12 +26418,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list54 = new List(num4); - CollectionsMarshal.SetCount(list54, num4); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = 130; + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = 130; obj56.InTerritory = list54; skipConditions11.AetheryteShortcutIf = obj56; obj55.SkipConditions = skipConditions11; @@ -31825,16 +26435,13 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot5.Author = list55; - index = 7; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference47 = ref span56[num]; + num = 7; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span11 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference47 = ref span11[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -31842,23 +26449,18 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156); obj57.Steps = list57; reference47 = obj57; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span11[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -31872,8 +26474,7 @@ public static class AssemblyQuestLoader }; obj58.Steps = list58; reference48 = obj58; - num++; - ref QuestSequence reference49 = ref span56[num]; + ref QuestSequence reference49 = ref span11[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -31881,9 +26482,8 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - ref QuestStep reference50 = ref span59[index2]; + Span span12 = CollectionsMarshal.AsSpan(list59); + ref QuestStep reference50 = ref span12[0]; QuestStep obj60 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -31895,23 +26495,16 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - 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); + 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); obj60.CompletionQuestVariablesFlags = list60; reference50 = obj60; - index2++; - ref QuestStep reference51 = ref span59[index2]; + ref QuestStep reference51 = ref span12[1]; QuestStep obj61 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -31920,38 +26513,29 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 20u } }; - 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); + 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); obj61.CompletionQuestVariablesFlags = list61; reference51 = obj61; obj59.Steps = list59; reference49 = obj59; - num++; - ref QuestSequence reference52 = ref span56[num]; + ref QuestSequence reference52 = ref span11[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -31965,8 +26549,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list62; reference52 = obj62; - num++; - ref QuestSequence reference53 = ref span56[num]; + ref QuestSequence reference53 = ref span11[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -31974,9 +26557,8 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - ref QuestStep reference54 = ref span63[index2]; + Span span15 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference54 = ref span15[0]; QuestStep obj64 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -31988,23 +26570,16 @@ public static class AssemblyQuestLoader num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - 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); + 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); obj64.CompletionQuestVariablesFlags = list64; reference54 = obj64; - index2++; - ref QuestStep reference55 = ref span63[index2]; + ref QuestStep reference55 = ref span15[1]; QuestStep obj65 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32013,38 +26588,29 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 27u } }; - 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); + 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); obj65.CompletionQuestVariablesFlags = list65; reference55 = obj65; obj63.Steps = list63; reference53 = obj63; - num++; - ref QuestSequence reference56 = ref span56[num]; + ref QuestSequence reference56 = ref span11[5]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32058,8 +26624,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list66; reference56 = obj66; - num++; - ref QuestSequence reference57 = ref span56[num]; + ref QuestSequence reference57 = ref span11[6]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -32067,9 +26632,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010809u, new Vector3(73.10596f, 33.06655f, -704.4022f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32090,26 +26653,22 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot6.Author = list68; - index = 8; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference58 = ref span69[num]; + num = 8; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span18 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference58 = ref span18[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32121,15 +26680,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span70[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj68.Steps = list70; reference58 = obj68; - num++; - ref QuestSequence reference59 = ref span69[num]; + ref QuestSequence reference59 = ref span18[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -32137,9 +26694,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(24.830208f, 28.999964f, -730.27045f), 156) + Span span20 = CollectionsMarshal.AsSpan(list71); + span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32151,25 +26707,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span71[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + span20[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj69.Steps = list71; reference59 = obj69; - num++; - ref QuestSequence reference60 = ref span69[num]; + ref QuestSequence reference60 = ref span18[2]; QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num2 = 0; - ref QuestStep reference61 = ref span72[num2]; + num2 = 2; + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + Span span21 = CollectionsMarshal.AsSpan(list72); + ref QuestStep reference61 = ref span21[0]; QuestStep obj71 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32181,23 +26734,16 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - 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); + 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); obj71.CompletionQuestVariablesFlags = list73; reference61 = obj71; - num2++; - ref QuestStep reference62 = ref span72[num2]; + ref QuestStep reference62 = ref span21[1]; QuestStep obj72 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32206,28 +26752,21 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 19u } }; - 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); + 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); obj72.CompletionQuestVariablesFlags = list74; reference62 = obj72; obj70.Steps = list72; reference60 = obj70; - num++; - ref QuestSequence reference63 = ref span69[num]; + ref QuestSequence reference63 = ref span18[3]; QuestSequence obj73 = new QuestSequence { Sequence = 3 @@ -32235,9 +26774,8 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + Span span24 = CollectionsMarshal.AsSpan(list75); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32249,25 +26787,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span75[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + span24[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj73.Steps = list75; reference63 = obj73; - num++; - ref QuestSequence reference64 = ref span69[num]; + ref QuestSequence reference64 = ref span18[4]; QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference65 = ref span76[num2]; + num2 = 2; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span25 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference65 = ref span25[0]; QuestStep obj75 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32279,23 +26814,16 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - 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); + 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); obj75.CompletionQuestVariablesFlags = list77; reference65 = obj75; - num2++; - ref QuestStep reference66 = ref span76[num2]; + ref QuestStep reference66 = ref span25[1]; QuestStep obj76 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32304,28 +26832,21 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 28u } }; - 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); + 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); obj76.CompletionQuestVariablesFlags = list78; reference66 = obj76; obj74.Steps = list76; reference64 = obj74; - num++; - ref QuestSequence reference67 = ref span69[num]; + ref QuestSequence reference67 = ref span18[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -32333,9 +26854,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(24.830208f, 28.999964f, -730.27045f), 156) + Span span28 = CollectionsMarshal.AsSpan(list79); + span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32347,25 +26867,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span79[index2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + span28[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj77.Steps = list79; reference67 = obj77; - num++; - ref QuestSequence reference68 = ref span69[num]; + ref QuestSequence reference68 = ref span18[6]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32377,15 +26894,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + span29[1] = new QuestStep(EInteractionType.Interact, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; obj78.Steps = list80; reference68 = obj78; - num++; - ref QuestSequence reference69 = ref span69[num]; + ref QuestSequence reference69 = ref span18[7]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -32393,9 +26908,8 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) + Span span30 = CollectionsMarshal.AsSpan(list81); + span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.830208f, 28.999964f, -730.27045f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32407,8 +26921,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156) { StopDistance = 5f }; @@ -32421,30 +26934,24 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "liza"; + CollectionsMarshal.AsSpan(list82)[0] = "liza"; questRoot7.Author = list82; - index = 11; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference70 = ref span83[num]; + num = 11; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span31 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference70 = ref span31[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj80.Steps = list84; reference70 = obj80; - num++; - ref QuestSequence reference71 = ref span83[num]; + ref QuestSequence reference71 = ref span31[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -32452,9 +26959,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -32464,18 +26969,15 @@ public static class AssemblyQuestLoader }; obj81.Steps = list85; reference71 = obj81; - num++; - ref QuestSequence reference72 = ref span83[num]; + ref QuestSequence reference72 = ref span31[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -32489,8 +26991,7 @@ public static class AssemblyQuestLoader }; obj82.Steps = list86; reference72 = obj82; - num++; - ref QuestSequence reference73 = ref span83[num]; + ref QuestSequence reference73 = ref span31[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -32498,9 +26999,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -32510,18 +27009,15 @@ public static class AssemblyQuestLoader }; obj83.Steps = list87; reference73 = obj83; - num++; - ref QuestSequence reference74 = ref span83[num]; + ref QuestSequence reference74 = ref span31[4]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -32535,8 +27031,7 @@ public static class AssemblyQuestLoader }; obj84.Steps = list88; reference74 = obj84; - num++; - ref QuestSequence reference75 = ref span83[num]; + ref QuestSequence reference75 = ref span31[5]; QuestSequence obj85 = new QuestSequence { Sequence = 5 @@ -32544,9 +27039,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -32556,18 +27049,15 @@ public static class AssemblyQuestLoader }; obj85.Steps = list89; reference75 = obj85; - num++; - ref QuestSequence reference76 = ref span83[num]; + ref QuestSequence reference76 = ref span31[6]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -32581,8 +27071,7 @@ public static class AssemblyQuestLoader }; obj86.Steps = list90; reference76 = obj86; - num++; - ref QuestSequence reference77 = ref span83[num]; + ref QuestSequence reference77 = ref span31[7]; QuestSequence obj87 = new QuestSequence { Sequence = 7 @@ -32590,9 +27079,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Duty, null, null, 141) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Duty, null, null, 141) { DutyOptions = new DutyOptions { @@ -32602,18 +27089,15 @@ public static class AssemblyQuestLoader }; obj87.Steps = list91; reference77 = obj87; - num++; - ref QuestSequence reference78 = ref span83[num]; + ref QuestSequence reference78 = ref span31[8]; QuestSequence obj88 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -32627,8 +27111,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list92; reference78 = obj88; - num++; - ref QuestSequence reference79 = ref span83[num]; + ref QuestSequence reference79 = ref span31[9]; QuestSequence obj89 = new QuestSequence { Sequence = 9 @@ -32636,9 +27119,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1010810u, new Vector3(109.4834f, 31f, -388.8457f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -32652,18 +27133,15 @@ public static class AssemblyQuestLoader }; obj89.Steps = list93; reference79 = obj89; - num++; - ref QuestSequence reference80 = ref span83[num]; + ref QuestSequence reference80 = ref span31[10]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -32683,16 +27161,13 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "liza"; + CollectionsMarshal.AsSpan(list95)[0] = "liza"; questRoot8.Author = list95; - index = 8; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference81 = ref span96[num]; + num = 8; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span32 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference81 = ref span32[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -32700,23 +27175,18 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156); + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006981u, new Vector3(25.711426f, 28.999966f, -738.21625f), 156); obj91.Steps = list97; reference81 = obj91; - num++; - ref QuestSequence reference82 = ref span96[num]; + ref QuestSequence reference82 = ref span32[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32730,8 +27200,7 @@ public static class AssemblyQuestLoader }; obj92.Steps = list98; reference82 = obj92; - num++; - ref QuestSequence reference83 = ref span96[num]; + ref QuestSequence reference83 = ref span32[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -32739,9 +27208,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -32755,18 +27222,16 @@ public static class AssemblyQuestLoader }; obj93.Steps = list99; reference83 = obj93; - num++; - ref QuestSequence reference84 = ref span96[num]; + ref QuestSequence reference84 = ref span32[3]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference85 = ref span100[num2]; + num2 = 3; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span33 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference85 = ref span33[0]; QuestStep obj95 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32778,23 +27243,16 @@ public static class AssemblyQuestLoader num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - 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); + 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); obj95.CompletionQuestVariablesFlags = list101; reference85 = obj95; - num2++; - ref QuestStep reference86 = ref span100[num2]; + ref QuestStep reference86 = ref span33[1]; QuestStep obj96 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32803,26 +27261,19 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 17u } }; - 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); + 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); obj96.CompletionQuestVariablesFlags = list102; reference86 = obj96; - num2++; - ref QuestStep reference87 = ref span100[num2]; + ref QuestStep reference87 = ref span33[2]; QuestStep obj97 = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions @@ -32834,25 +27285,18 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list103; reference87 = obj97; obj94.Steps = list100; reference84 = obj94; - num++; - ref QuestSequence reference88 = ref span96[num]; + ref QuestSequence reference88 = ref span32[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -32860,9 +27304,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -32876,18 +27318,15 @@ public static class AssemblyQuestLoader }; obj98.Steps = list104; reference88 = obj98; - num++; - ref QuestSequence reference89 = ref span96[num]; + ref QuestSequence reference89 = ref span32[5]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -32897,8 +27336,7 @@ public static class AssemblyQuestLoader }; obj99.Steps = list105; reference89 = obj99; - num++; - ref QuestSequence reference90 = ref span96[num]; + ref QuestSequence reference90 = ref span32[6]; QuestSequence obj100 = new QuestSequence { Sequence = 6 @@ -32906,9 +27344,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1010811u, new Vector3(645.2583f, 5.6312623f, 551.59827f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -32922,18 +27358,15 @@ public static class AssemblyQuestLoader }; obj100.Steps = list106; reference90 = obj100; - num++; - ref QuestSequence reference91 = ref span96[num]; + ref QuestSequence reference91 = ref span32[7]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -32954,16 +27387,13 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot9.Author = list108; - index = 9; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference92 = ref span109[num]; + num = 9; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span37 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference92 = ref span37[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -32971,9 +27401,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -32986,28 +27414,24 @@ public static class AssemblyQuestLoader }; obj102.Steps = list110; reference92 = obj102; - num++; - ref QuestSequence reference93 = ref span109[num]; + ref QuestSequence reference93 = ref span37[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - num2++; - span111[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span38[1] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj103.Steps = list111; reference93 = obj103; - num++; - ref QuestSequence reference94 = ref span109[num]; + ref QuestSequence reference94 = ref span37[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -33015,35 +27439,29 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Emote, 1010813u, new Vector3(218.92114f, 10.293846f, -75.12018f), 153) + CollectionsMarshal.AsSpan(list112)[0] = 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; - num++; - ref QuestSequence reference95 = ref span109[num]; + ref QuestSequence reference95 = ref span37[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Emote = EEmote.Cheer }; obj105.Steps = list113; reference95 = obj105; - num++; - ref QuestSequence reference96 = ref span109[num]; + ref QuestSequence reference96 = ref span37[4]; QuestSequence obj106 = new QuestSequence { Sequence = 4 @@ -33051,21 +27469,17 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + Span span39 = CollectionsMarshal.AsSpan(list114); + span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true }; - index2++; - ref QuestStep reference97 = ref span114[index2]; + ref QuestStep reference97 = ref span39[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1010815u, new Vector3(-168.26129f, 9.869229f, -79.54535f), 153); - num4 = 1; - List list115 = new List(num4); - CollectionsMarshal.SetCount(list115, num4); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - span115[num3] = new DialogueChoice + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST030_00362_Q1_000_000"), @@ -33075,18 +27489,15 @@ public static class AssemblyQuestLoader reference97 = questStep; obj106.Steps = list114; reference96 = obj106; - num++; - ref QuestSequence reference98 = ref span109[num]; + ref QuestSequence reference98 = ref span37[5]; QuestSequence obj107 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -33097,8 +27508,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list116; reference98 = obj107; - num++; - ref QuestSequence reference99 = ref span109[num]; + ref QuestSequence reference99 = ref span37[6]; QuestSequence obj108 = new QuestSequence { Sequence = 6 @@ -33106,41 +27516,34 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) + Span span40 = CollectionsMarshal.AsSpan(list117); + span40[0] = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { TargetTerritoryId = (ushort)128 }; - index2++; - span117[index2] = new QuestStep(EInteractionType.Interact, 1010818u, new Vector3(-13.01593f, 91.5f, -18.234558f), 128); + span40[1] = new QuestStep(EInteractionType.Interact, 1010818u, new Vector3(-13.01593f, 91.5f, -18.234558f), 128); obj108.Steps = list117; reference99 = obj108; - num++; - ref QuestSequence reference100 = ref span109[num]; + ref QuestSequence reference100 = ref span37[7]; QuestSequence obj109 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 7f, TargetTerritoryId = (ushort)128 }; - num2++; - ref QuestStep reference101 = ref span118[num2]; + ref QuestStep reference101 = ref span41[1]; 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); - Span span119 = CollectionsMarshal.AsSpan(list119); - num4 = 0; - span119[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list119)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST030_00362_Q2_000_000"), @@ -33150,8 +27553,7 @@ public static class AssemblyQuestLoader reference101 = questStep2; obj109.Steps = list118; reference100 = obj109; - num++; - ref QuestSequence reference102 = ref span109[num]; + ref QuestSequence reference102 = ref span37[8]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -33159,9 +27561,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010822u, new Vector3(-209.88788f, 54.829185f, -196.03265f), 152) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010822u, new Vector3(-209.88788f, 54.829185f, -196.03265f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -33175,26 +27575,22 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list121)[0] = "JerryWester"; questRoot10.Author = list121; - index = 3; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num = 0; - ref QuestSequence reference103 = ref span122[num]; + num = 3; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + Span span42 = CollectionsMarshal.AsSpan(list122); + ref QuestSequence reference103 = ref span42[0]; QuestSequence obj111 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + Span span43 = CollectionsMarshal.AsSpan(list123); + ref QuestStep reference104 = ref span43[0]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -33202,27 +27598,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num4 = 1; - List list124 = new List(num4); - CollectionsMarshal.SetCount(list124, num4); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - span124[num3] = 351; + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = 351; skipStepConditions2.InTerritory = list124; skipConditions12.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span125 = CollectionsMarshal.AsSpan(list125); - num4 = 0; - span125[num4] = 351; + CollectionsMarshal.AsSpan(list125)[0] = 351; skipAetheryteCondition.InTerritory = list125; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition; obj112.SkipConditions = skipConditions12; reference104 = obj112; - num2++; - span123[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span43[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -33233,12 +27624,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span123[num2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + span43[2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj111.Steps = list123; reference103 = obj111; - num++; - ref QuestSequence reference105 = ref span122[num]; + ref QuestSequence reference105 = ref span42[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -33246,28 +27635,23 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span44 = CollectionsMarshal.AsSpan(list126); + span44[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span126[index2] = new QuestStep(EInteractionType.Interact, 1010844u, new Vector3(3.0670166f, 0.009977885f, -4.287842f), 351); + span44[1] = new QuestStep(EInteractionType.Interact, 1010844u, new Vector3(3.0670166f, 0.009977885f, -4.287842f), 351); obj113.Steps = list126; reference105 = obj113; - num++; - ref QuestSequence reference106 = ref span122[num]; + ref QuestSequence reference106 = ref span42[2]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -33281,16 +27665,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list128)[0] = "JerryWester"; questRoot11.Author = list128; - index = 5; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference107 = ref span129[num]; + num = 5; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span45 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference107 = ref span45[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -33298,9 +27679,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010845u, new Vector3(-17.227417f, -10.015114f, -18.509216f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -33313,25 +27692,21 @@ public static class AssemblyQuestLoader }; obj115.Steps = list130; reference107 = obj115; - num++; - ref QuestSequence reference108 = ref span129[num]; + ref QuestSequence reference108 = ref span45[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj116.Steps = list131; reference108 = obj116; - num++; - ref QuestSequence reference109 = ref span129[num]; + ref QuestSequence reference109 = ref span45[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -33339,49 +27714,39 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - ref QuestStep reference110 = ref span132[index2]; + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list132)[0]; QuestStep obj118 = new QuestStep(EInteractionType.Combat, 1010847u, new Vector3(333.6079f, -11.123097f, 141.55786f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj118.KillEnemyDataIds = list133; reference110 = obj118; obj117.Steps = list132; reference109 = obj117; - num++; - ref QuestSequence reference111 = ref span129[num]; + ref QuestSequence reference111 = ref span45[3]; QuestSequence obj119 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj119.Steps = list134; reference111 = obj119; - num++; - ref QuestSequence reference112 = ref span129[num]; + ref QuestSequence reference112 = ref span45[4]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -33389,9 +27754,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010849u, new Vector3(192.401f, -27.487204f, 199.32861f), 145); obj120.Steps = list135; reference112 = obj120; questRoot11.QuestSequence = list129; @@ -33401,30 +27764,24 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list136)[0] = "JerryWester"; questRoot12.Author = list136; - index = 5; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference113 = ref span137[num]; + num = 5; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span47 = CollectionsMarshal.AsSpan(list137); + ref QuestSequence reference113 = ref span47[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj121.Steps = list138; reference113 = obj121; - num++; - ref QuestSequence reference114 = ref span137[num]; + ref QuestSequence reference114 = ref span47[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -33432,23 +27789,18 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 2005113u, new Vector3(192.88928f, -26.657532f, 203.60107f), 145); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2005113u, new Vector3(192.88928f, -26.657532f, 203.60107f), 145); obj122.Steps = list139; reference114 = obj122; - num++; - ref QuestSequence reference115 = ref span137[num]; + ref QuestSequence reference115 = ref span47[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -33459,8 +27811,7 @@ public static class AssemblyQuestLoader }; obj123.Steps = list140; reference115 = obj123; - num++; - ref QuestSequence reference116 = ref span137[num]; + ref QuestSequence reference116 = ref span47[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -33468,9 +27819,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.Interact, 1010853u, new Vector3(137.25476f, 4f, -20.584473f), 131) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1010853u, new Vector3(137.25476f, 4f, -20.584473f), 131) { AethernetShortcut = new AethernetShortcut { @@ -33480,24 +27829,21 @@ public static class AssemblyQuestLoader }; obj124.Steps = list141; reference116 = obj124; - num++; - ref QuestSequence reference117 = ref span137[num]; + ref QuestSequence reference117 = ref span47[4]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); + span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); obj125.Steps = list142; reference117 = obj125; questRoot12.QuestSequence = list137; @@ -33507,16 +27853,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; questRoot13.Author = list143; - index = 8; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference118 = ref span144[num]; + num = 8; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span49 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference118 = ref span49[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -33524,32 +27867,26 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010891u, new Vector3(-3.6774292f, 0.01804012f, -7.034485f), 351); obj126.Steps = list145; reference118 = obj126; - num++; - ref QuestSequence reference119 = ref span144[num]; + ref QuestSequence reference119 = ref span49[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span146[num2] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + span50[1] = new QuestStep(EInteractionType.Interact, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj127.Steps = list146; reference119 = obj127; - num++; - ref QuestSequence reference120 = ref span144[num]; + ref QuestSequence reference120 = ref span49[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -33557,43 +27894,35 @@ public static class AssemblyQuestLoader num2 = 5; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + Span span51 = CollectionsMarshal.AsSpan(list147); + span51[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span147[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + span51[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - index2++; - span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.01373f, -27.808102f, -369.0958f), 156) + span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(337.01373f, -27.808102f, -369.0958f), 156) { Fly = true }; - index2++; - span147[index2] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156); + span51[4] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156); obj128.Steps = list147; reference120 = obj128; - num++; - ref QuestSequence reference121 = ref span144[num]; + ref QuestSequence reference121 = ref span49[3]; QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -33603,13 +27932,11 @@ public static class AssemblyQuestLoader }; obj129.Steps = list148; reference121 = obj129; - num++; - span144[num] = new QuestSequence + span49[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference122 = ref span144[num]; + ref QuestSequence reference122 = ref span49[5]; QuestSequence obj130 = new QuestSequence { Sequence = 5 @@ -33617,41 +27944,34 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1010881u, new Vector3(336.3545f, -27.808832f, -369.7414f), 156) { StopDistance = 7f }; obj130.Steps = list149; reference122 = obj130; - num++; - ref QuestSequence reference123 = ref span144[num]; + ref QuestSequence reference123 = ref span49[6]; QuestSequence obj131 = new QuestSequence { Sequence = 6 }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span150[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span52[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span150[num2] = new QuestStep(EInteractionType.Interact, 1010857u, new Vector3(2.5481567f, -1.9957249f, -42.008118f), 351); + span52[2] = new QuestStep(EInteractionType.Interact, 1010857u, new Vector3(2.5481567f, -1.9957249f, -42.008118f), 351); obj131.Steps = list150; reference123 = obj131; - num++; - ref QuestSequence reference124 = ref span144[num]; + ref QuestSequence reference124 = ref span49[7]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -33659,9 +27979,7 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351) { StopDistance = 7f }; @@ -33674,33 +27992,27 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list152)[0] = "JerryWester"; questRoot14.Author = list152; - index = 7; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference125 = ref span153[num]; + num = 7; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span53 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference125 = ref span53[0]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj133.Steps = list154; reference125 = obj133; - num++; - ref QuestSequence reference126 = ref span153[num]; + ref QuestSequence reference126 = ref span53[1]; QuestSequence obj134 = new QuestSequence { Sequence = 1 @@ -33708,33 +28020,27 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1010924u, new Vector3(-72.129456f, 47f, -8.86554f), 147) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1010924u, new Vector3(-72.129456f, 47f, -8.86554f), 147) { Fly = true }; obj134.Steps = list155; reference126 = obj134; - num++; - ref QuestSequence reference127 = ref span153[num]; + ref QuestSequence reference127 = ref span53[2]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj135.Steps = list156; reference127 = obj135; - num++; - ref QuestSequence reference128 = ref span153[num]; + ref QuestSequence reference128 = ref span53[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -33742,9 +28048,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - ref QuestStep reference129 = ref span157[index2]; + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, null, new Vector3(-255.52438f, 60.28413f, -65.027f), 147) { StopDistance = 1f, @@ -33754,51 +28058,41 @@ public static class AssemblyQuestLoader num3 = 3; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span158 = CollectionsMarshal.AsSpan(list158); - num4 = 0; - span158[num4] = 55u; - num4++; - span158[num4] = 64u; - num4++; - span158[num4] = 3566u; + Span span54 = CollectionsMarshal.AsSpan(list158); + span54[0] = 55u; + span54[1] = 64u; + span54[2] = 3566u; obj137.KillEnemyDataIds = list158; reference129 = obj137; obj136.Steps = list157; reference128 = obj136; - num++; - ref QuestSequence reference130 = ref span153[num]; + ref QuestSequence reference130 = ref span53[4]; QuestSequence obj138 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list159 = new List(index2); - CollectionsMarshal.SetCount(list159, index2); - Span span159 = CollectionsMarshal.AsSpan(list159); - num2 = 0; - ref QuestStep reference131 = ref span159[num2]; + num2 = 1; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list159)[0]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, null, new Vector3(-264.6515f, 82.28975f, -178.98473f), 147) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj139.KillEnemyDataIds = list160; reference131 = obj139; obj138.Steps = list159; reference130 = obj138; - num++; - ref QuestSequence reference132 = ref span153[num]; + ref QuestSequence reference132 = ref span53[5]; QuestSequence obj140 = new QuestSequence { Sequence = 5 @@ -33806,31 +28100,26 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1010876u, new Vector3(-110.36853f, 64.861916f, -127.27557f), 147) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1010876u, new Vector3(-110.36853f, 64.861916f, -127.27557f), 147) { Fly = true }; obj140.Steps = list161; reference132 = obj140; - num++; - ref QuestSequence reference133 = ref span153[num]; + ref QuestSequence reference133 = ref span53[6]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147); + span56[1] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147); obj141.Steps = list162; reference133 = obj141; questRoot14.QuestSequence = list153; @@ -33840,16 +28129,13 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list163)[0] = "JerryWester"; questRoot15.Author = list163; - index = 6; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference134 = ref span164[num]; + num = 6; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span57 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference134 = ref span57[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -33857,9 +28143,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, SkipConditions = new SkipConditions @@ -33872,27 +28156,23 @@ public static class AssemblyQuestLoader }; obj142.Steps = list165; reference134 = obj142; - num++; - ref QuestSequence reference135 = ref span164[num]; + ref QuestSequence reference135 = ref span57[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.Interact, 1010879u, new Vector3(136.33923f, 31.9962f, 16.098267f), 147); + span58[1] = new QuestStep(EInteractionType.Interact, 1010879u, new Vector3(136.33923f, 31.9962f, 16.098267f), 147); obj143.Steps = list166; reference135 = obj143; - num++; - ref QuestSequence reference136 = ref span164[num]; + ref QuestSequence reference136 = ref span57[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -33900,27 +28180,22 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + CollectionsMarshal.AsSpan(list167)[0] = 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; - num++; - ref QuestSequence reference137 = ref span164[num]; + ref QuestSequence reference137 = ref span57[3]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Duty, null, null, 351) { DutyOptions = new DutyOptions { @@ -33929,13 +28204,11 @@ public static class AssemblyQuestLoader }; obj145.Steps = list168; reference137 = obj145; - num++; - span164[num] = new QuestSequence + span57[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference138 = ref span164[num]; + ref QuestSequence reference138 = ref span57[5]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -33943,9 +28216,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); obj146.Steps = list169; reference138 = obj146; questRoot15.QuestSequence = list164; @@ -33955,30 +28226,24 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list170)[0] = "JerryWester"; questRoot16.Author = list170; - index = 5; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference139 = ref span171[num]; + num = 5; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span59 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference139 = ref span59[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj147.Steps = list172; reference139 = obj147; - num++; - ref QuestSequence reference140 = ref span171[num]; + ref QuestSequence reference140 = ref span59[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -33986,49 +28251,40 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) + Span span60 = CollectionsMarshal.AsSpan(list173); + span60[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(0f, -1f, -29.25f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 1010903u, new Vector3(24.887451f, -1f, -1.0223389f), 351); + span60[1] = new QuestStep(EInteractionType.Interact, 1010903u, new Vector3(24.887451f, -1f, -1.0223389f), 351); obj148.Steps = list173; reference140 = obj148; - num++; - ref QuestSequence reference141 = ref span171[num]; + ref QuestSequence reference141 = ref span59[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)156 }; - num2++; - span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - num2++; - span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + span61[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - 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); + 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); obj149.Steps = list174; reference141 = obj149; - num++; - ref QuestSequence reference142 = ref span171[num]; + ref QuestSequence reference142 = ref span59[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -34036,44 +28292,37 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + Span span62 = CollectionsMarshal.AsSpan(list175); + span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true }; - index2++; - span175[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-145.66704f, 43.906273f, -189.70813f), 156) + span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-145.66704f, 43.906273f, -189.70813f), 156) { Fly = true }; - index2++; - span175[index2] = new QuestStep(EInteractionType.Interact, 1010929u, new Vector3(-146.80713f, 43.495255f, -187.39612f), 156); + span62[2] = new QuestStep(EInteractionType.Interact, 1010929u, new Vector3(-146.80713f, 43.495255f, -187.39612f), 156); obj150.Steps = list175; reference142 = obj150; - num++; - ref QuestSequence reference143 = ref span171[num]; + ref QuestSequence reference143 = ref span59[4]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span176[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span63[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span176[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); + span63[2] = new QuestStep(EInteractionType.CompleteQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); obj151.Steps = list176; reference143 = obj151; questRoot16.QuestSequence = list171; @@ -34083,16 +28332,13 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - Span span177 = CollectionsMarshal.AsSpan(list177); - index = 0; - span177[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list177)[0] = "JerryWester"; questRoot17.Author = list177; - index = 4; - List list178 = new List(index); - CollectionsMarshal.SetCount(list178, index); - Span span178 = CollectionsMarshal.AsSpan(list178); - num = 0; - ref QuestSequence reference144 = ref span178[num]; + num = 4; + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + Span span64 = CollectionsMarshal.AsSpan(list178); + ref QuestSequence reference144 = ref span64[0]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -34100,31 +28346,25 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010930u, new Vector3(-1.2664795f, -1.9957249f, -42.069153f), 351); obj152.Steps = list179; reference144 = obj152; - num++; - ref QuestSequence reference145 = ref span178[num]; + ref QuestSequence reference145 = ref span64[1]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj153.Steps = list180; reference145 = obj153; - num++; - ref QuestSequence reference146 = ref span178[num]; + ref QuestSequence reference146 = ref span64[2]; QuestSequence obj154 = new QuestSequence { Sequence = 2 @@ -34132,91 +28372,65 @@ public static class AssemblyQuestLoader num2 = 5; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) + Span span65 = CollectionsMarshal.AsSpan(list181); + span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) { Fly = true }; - index2++; - ref QuestStep reference147 = ref span181[index2]; + ref QuestStep reference147 = ref span65[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list182; reference147 = questStep3; - index2++; - ref QuestStep reference148 = ref span181[index2]; + ref QuestStep reference148 = ref span65[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1010940u, new Vector3(-143.23651f, 304.15378f, -289.35687f), 155); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list183; reference148 = questStep4; - index2++; - ref QuestStep reference149 = ref span181[index2]; + ref QuestStep reference149 = ref span65[3]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list184; reference149 = questStep5; - index2++; - span181[index2] = new QuestStep(EInteractionType.Interact, 1010939u, new Vector3(-152.69702f, 304.1538f, -321.21765f), 155); + span65[4] = new QuestStep(EInteractionType.Interact, 1010939u, new Vector3(-152.69702f, 304.1538f, -321.21765f), 155); obj154.Steps = list181; reference146 = obj154; - num++; - ref QuestSequence reference150 = ref span178[num]; + ref QuestSequence reference150 = ref span64[3]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj155.Steps = list185; reference150 = obj155; questRoot17.QuestSequence = list178; @@ -34226,16 +28440,13 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; questRoot18.Author = list186; - index = 4; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference151 = ref span187[num]; + num = 4; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span69 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference151 = ref span69[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -34243,33 +28454,27 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010951u, new Vector3(-144.1825f, 304.15393f, -300.7401f), 155); obj156.Steps = list188; reference151 = obj156; - num++; - ref QuestSequence reference152 = ref span187[num]; + ref QuestSequence reference152 = ref span69[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span189[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + span70[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj157.Steps = list189; reference152 = obj157; - num++; - ref QuestSequence reference153 = ref span187[num]; + ref QuestSequence reference153 = ref span69[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -34277,50 +28482,41 @@ public static class AssemblyQuestLoader num2 = 3; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - ref QuestStep reference154 = ref span190[index2]; + Span span71 = CollectionsMarshal.AsSpan(list190); + ref QuestStep reference154 = ref span71[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155); - num4 = 1; - List list191 = new List(num4); - CollectionsMarshal.SetCount(list191, num4); - Span span191 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span191[num3] = new DialogueChoice + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE603_00372_FORTEMPSGUARD00054_Q1_000_1") }; questStep6.DialogueChoices = list191; reference154 = questStep6; - index2++; - span190[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0611796f, 0.0149827f, 4.914047f), 395) + span71[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(4.0611796f, 0.0149827f, 4.914047f), 395) { DisableNavmesh = true }; - index2++; - span190[index2] = new QuestStep(EInteractionType.Interact, 1009974u, new Vector3(3.8604736f, 0.014982708f, -0.015319824f), 395) + span71[2] = new QuestStep(EInteractionType.Interact, 1009974u, new Vector3(3.8604736f, 0.014982708f, -0.015319824f), 395) { DisableNavmesh = true }; obj158.Steps = list190; reference153 = obj158; - num++; - ref QuestSequence reference155 = ref span187[num]; + ref QuestSequence reference155 = ref span69[3]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj159.Steps = list192; reference155 = obj159; questRoot18.QuestSequence = list187; @@ -34330,16 +28526,13 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; questRoot19.Author = list193; - index = 2; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference156 = ref span194[num]; + num = 2; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span73 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference156 = ref span73[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -34347,34 +28540,28 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010953u, new Vector3(-2.7924194f, 0.014982709f, -0.7477417f), 395); obj160.Steps = list195; reference156 = obj160; - num++; - ref QuestSequence reference157 = ref span194[num]; + ref QuestSequence reference157 = ref span73[1]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span196[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span74[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span196[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); + span74[2] = new QuestStep(EInteractionType.CompleteQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); obj161.Steps = list196; reference157 = obj161; questRoot19.QuestSequence = list194; @@ -34384,16 +28571,13 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - Span span197 = CollectionsMarshal.AsSpan(list197); - index = 0; - span197[index] = "liza"; + CollectionsMarshal.AsSpan(list197)[0] = "liza"; questRoot20.Author = list197; - index = 4; - List list198 = new List(index); - CollectionsMarshal.SetCount(list198, index); - Span span198 = CollectionsMarshal.AsSpan(list198); - num = 0; - ref QuestSequence reference158 = ref span198[num]; + num = 4; + List list198 = new List(num); + CollectionsMarshal.SetCount(list198, num); + Span span75 = CollectionsMarshal.AsSpan(list198); + ref QuestSequence reference158 = ref span75[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -34401,23 +28585,19 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000470u, new Vector3(-59.006653f, -0.010835781f, 26.41333f), 148); obj162.Steps = list199; reference158 = obj162; - num++; - ref QuestSequence reference159 = ref span198[num]; + ref QuestSequence reference159 = ref span75[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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) + 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) { JumpDestination = new JumpDestination { @@ -34425,12 +28605,10 @@ public static class AssemblyQuestLoader StopDistance = 3f } }; - num2++; - span200[num2] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + span76[1] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj163.Steps = list200; reference159 = obj163; - num++; - ref QuestSequence reference160 = ref span198[num]; + ref QuestSequence reference160 = ref span75[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -34438,9 +28616,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - ref QuestStep reference161 = ref span201[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list201)[0]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-171.87439f, 1.7183347f, -70.586975f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -34448,47 +28624,36 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - num4 = 0; - ref ComplexCombatData reference162 = ref span202[num4]; + ref ComplexCombatData reference162 = ref CollectionsMarshal.AsSpan(list202)[0]; ComplexCombatData obj166 = new ComplexCombatData { DataId = 771u }; - 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; + 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; obj166.CompletionQuestVariablesFlags = list203; reference162 = obj166; obj165.ComplexCombatData = list202; reference161 = obj165; obj164.Steps = list201; reference160 = obj164; - num++; - ref QuestSequence reference163 = ref span198[num]; + ref QuestSequence reference163 = ref span75[3]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj167.Steps = list204; reference163 = obj167; questRoot20.QuestSequence = list198; @@ -34498,16 +28663,13 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "liza"; + CollectionsMarshal.AsSpan(list205)[0] = "liza"; questRoot21.Author = list205; - index = 3; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference164 = ref span206[num]; + num = 3; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span78 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference164 = ref span78[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -34515,93 +28677,68 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000435u, new Vector3(-127.06189f, 4.1490583f, -44.296997f), 148) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000435u, new Vector3(-127.06189f, 4.1490583f, -44.296997f), 148) { StopDistance = 5f }; obj168.Steps = list207; reference164 = obj168; - num++; - ref QuestSequence reference165 = ref span206[num]; + ref QuestSequence reference165 = ref span78[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - index2 = 8; - List list208 = new List(index2); - CollectionsMarshal.SetCount(list208, index2); - Span span208 = CollectionsMarshal.AsSpan(list208); - num2 = 0; - ref QuestStep reference166 = ref span208[num2]; + num2 = 8; + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + Span span79 = CollectionsMarshal.AsSpan(list208); + ref QuestStep reference166 = ref span79[0]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2000750u, new Vector3(-151.26276f, 14.358704f, -73.014465f), 148); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list209; reference166 = questStep7; - num2++; - ref QuestStep reference167 = ref span208[num2]; + ref QuestStep reference167 = ref span79[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list210; reference167 = questStep8; - num2++; - ref QuestStep reference168 = ref span208[num2]; + ref QuestStep reference168 = ref span79[2]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.18181f, 31.66525f, -91.84381f), 148); SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list211; skipConditions13.StepIf = skipStepConditions3; questStep9.SkipConditions = skipConditions13; reference168 = questStep9; - num2++; - ref QuestStep reference169 = ref span208[num2]; + ref QuestStep reference169 = ref span79[3]; QuestStep obj170 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-184.41872f, 29.940958f, -93.809525f), 148) { DisableNavmesh = true @@ -34611,49 +28748,35 @@ public static class AssemblyQuestLoader num3 = 6; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list212; skipConditions14.StepIf = skipStepConditions4; obj170.SkipConditions = skipConditions14; reference169 = obj170; - num2++; - ref QuestStep reference170 = ref span208[num2]; + ref QuestStep reference170 = ref span79[4]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 2000748u, new Vector3(-189.25769f, 30.44165f, -98.83276f), 148) { DisableNavmesh = true }; - 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); + 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); obj171.CompletionQuestVariablesFlags = list213; reference170 = obj171; - num2++; - ref QuestStep reference171 = ref span208[num2]; + ref QuestStep reference171 = ref span79[5]; QuestStep obj172 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.84062f, 31.476957f, -91.05707f), 148) { DisableNavmesh = true @@ -34663,50 +28786,36 @@ public static class AssemblyQuestLoader num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list214; skipConditions15.StepIf = skipStepConditions5; obj172.SkipConditions = skipConditions15; reference171 = obj172; - num2++; - ref QuestStep reference172 = ref span208[num2]; + ref QuestStep reference172 = ref span79[6]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.76294f, 23.022184f, -76.32822f), 148); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list215; skipConditions16.StepIf = skipStepConditions6; questStep10.SkipConditions = skipConditions16; reference172 = questStep10; - num2++; - ref QuestStep reference173 = ref span208[num2]; + ref QuestStep reference173 = ref span79[7]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 2000751u, new Vector3(-169.3294f, 18.600708f, -72.129456f), 148) { DisableNavmesh = true @@ -34714,25 +28823,18 @@ public static class AssemblyQuestLoader num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - 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); + 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); obj173.CompletionQuestVariablesFlags = list216; reference173 = obj173; obj169.Steps = list208; reference165 = obj169; - num++; - ref QuestSequence reference174 = ref span206[num]; + ref QuestSequence reference174 = ref span78[2]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -34740,15 +28842,13 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.56161f, 0.63666093f, -61.089085f), 148) + Span span88 = CollectionsMarshal.AsSpan(list217); + span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.56161f, 0.63666093f, -61.089085f), 148) { DisableNavmesh = true, Comment = "Jumping back up isn't trivial" }; - index2++; - span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); + span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1000436u, new Vector3(-193.22504f, 56.264572f, -116.47211f), 148); obj174.Steps = list217; reference174 = obj174; questRoot21.QuestSequence = list206; @@ -34758,30 +28858,24 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot22.Author = list218; - index = 4; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference175 = ref span219[num]; + num = 4; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span89 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference175 = ref span89[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj175.Steps = list220; reference175 = obj175; - num++; - ref QuestSequence reference176 = ref span219[num]; + ref QuestSequence reference176 = ref span89[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -34789,27 +28883,21 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj176.Steps = list221; reference176 = obj176; - num++; - ref QuestSequence reference177 = ref span219[num]; + ref QuestSequence reference177 = ref span89[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj177.Steps = list222; reference177 = obj177; - num++; - ref QuestSequence reference178 = ref span219[num]; + ref QuestSequence reference178 = ref span89[3]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -34817,9 +28905,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000748u, new Vector3(-125.230774f, 4.1573725f, -43.595093f), 148); obj178.Steps = list223; reference178 = obj178; questRoot22.QuestSequence = list219; @@ -34829,30 +28915,24 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - Span span224 = CollectionsMarshal.AsSpan(list224); - index = 0; - span224[index] = "liza"; + CollectionsMarshal.AsSpan(list224)[0] = "liza"; questRoot23.Author = list224; - index = 4; - List list225 = new List(index); - CollectionsMarshal.SetCount(list225, index); - Span span225 = CollectionsMarshal.AsSpan(list225); - num = 0; - ref QuestSequence reference179 = ref span225[num]; + num = 4; + List list225 = new List(num); + CollectionsMarshal.SetCount(list225, num); + Span span90 = CollectionsMarshal.AsSpan(list225); + ref QuestSequence reference179 = ref span90[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj179.Steps = list226; reference179 = obj179; - num++; - ref QuestSequence reference180 = ref span225[num]; + ref QuestSequence reference180 = ref span90[1]; QuestSequence obj180 = new QuestSequence { Sequence = 1 @@ -34860,27 +28940,21 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1001280u, new Vector3(89.28052f, -6.351089f, -121.96539f), 148); + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1001280u, new Vector3(89.28052f, -6.351089f, -121.96539f), 148); obj180.Steps = list227; reference180 = obj180; - num++; - ref QuestSequence reference181 = ref span225[num]; + ref QuestSequence reference181 = ref span90[2]; QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj181.Steps = list228; reference181 = obj181; - num++; - ref QuestSequence reference182 = ref span225[num]; + ref QuestSequence reference182 = ref span90[3]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -34888,9 +28962,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000741u, new Vector3(-66.7583f, 0.2f, 11.36792f), 148); obj182.Steps = list229; reference182 = obj182; questRoot23.QuestSequence = list225; @@ -34900,30 +28972,24 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - Span span230 = CollectionsMarshal.AsSpan(list230); - index = 0; - span230[index] = "liza"; + CollectionsMarshal.AsSpan(list230)[0] = "liza"; questRoot24.Author = list230; - index = 3; - List list231 = new List(index); - CollectionsMarshal.SetCount(list231, index); - Span span231 = CollectionsMarshal.AsSpan(list231); - num = 0; - ref QuestSequence reference183 = ref span231[num]; + num = 3; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + Span span91 = CollectionsMarshal.AsSpan(list231); + ref QuestSequence reference183 = ref span91[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj183.Steps = list232; reference183 = obj183; - num++; - ref QuestSequence reference184 = ref span231[num]; + ref QuestSequence reference184 = ref span91[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -34931,35 +28997,28 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference185 = ref span233[index2]; + ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list233)[0]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2001006u, new Vector3(99.65662f, -15.732117f, 193.01135f), 148) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list234 = new List(num4); - CollectionsMarshal.SetCount(list234, num4); - Span span234 = CollectionsMarshal.AsSpan(list234); - num3 = 0; - span234[num3] = 12u; + num3 = 1; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + CollectionsMarshal.AsSpan(list234)[0] = 12u; obj185.KillEnemyDataIds = list234; reference185 = obj185; obj184.Steps = list233; reference184 = obj184; - num++; - ref QuestSequence reference186 = ref span231[num]; + ref QuestSequence reference186 = ref span91[2]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj186.Steps = list235; reference186 = obj186; questRoot24.QuestSequence = list231; @@ -34969,16 +29028,13 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = "liza"; + CollectionsMarshal.AsSpan(list236)[0] = "liza"; questRoot25.Author = list236; - index = 3; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref QuestSequence reference187 = ref span237[num]; + num = 3; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span92 = CollectionsMarshal.AsSpan(list237); + ref QuestSequence reference187 = ref span92[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -34986,27 +29042,21 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000491u, new Vector3(47.958984f, -24f, 228.5343f), 148); obj187.Steps = list238; reference187 = obj187; - num++; - ref QuestSequence reference188 = ref span237[num]; + ref QuestSequence reference188 = ref span92[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj188.Steps = list239; reference188 = obj188; - num++; - ref QuestSequence reference189 = ref span237[num]; + ref QuestSequence reference189 = ref span92[2]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -35014,9 +29064,7 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000503u, new Vector3(178.33215f, -32.015224f, 333.30273f), 148); obj189.Steps = list240; reference189 = obj189; questRoot25.QuestSequence = list237; @@ -35026,30 +29074,24 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "liza"; + CollectionsMarshal.AsSpan(list241)[0] = "liza"; questRoot26.Author = list241; - index = 3; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference190 = ref span242[num]; + num = 3; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span93 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference190 = ref span93[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj190.Steps = list243; reference190 = obj190; - num++; - ref QuestSequence reference191 = ref span242[num]; + ref QuestSequence reference191 = ref span93[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -35057,9 +29099,8 @@ public static class AssemblyQuestLoader num2 = 3; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - ref QuestStep reference192 = ref span244[index2]; + Span span94 = CollectionsMarshal.AsSpan(list244); + ref QuestStep reference192 = ref span94[0]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2001018u, new Vector3(155.47412f, -23.66681f, 490.74524f), 148) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -35067,67 +29108,48 @@ public static class AssemblyQuestLoader num3 = 1; List list245 = new List(num3); CollectionsMarshal.SetCount(list245, num3); - Span span245 = CollectionsMarshal.AsSpan(list245); - num4 = 0; - span245[num4] = 26u; + CollectionsMarshal.AsSpan(list245)[0] = 26u; obj192.KillEnemyDataIds = list245; reference192 = obj192; - index2++; - ref QuestStep reference193 = ref span244[index2]; + ref QuestStep reference193 = ref span94[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001016u, new Vector3(152.60547f, -23.758362f, 494.71265f), 148); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list246; reference193 = questStep11; - index2++; - ref QuestStep reference194 = ref span244[index2]; + ref QuestStep reference194 = ref span94[2]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list247; reference194 = questStep12; obj191.Steps = list244; reference191 = obj191; - num++; - ref QuestSequence reference195 = ref span242[num]; + ref QuestSequence reference195 = ref span93[2]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -35140,16 +29162,13 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span249 = CollectionsMarshal.AsSpan(list249); - index = 0; - span249[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; questRoot27.Author = list249; - index = 6; - List list250 = new List(index); - CollectionsMarshal.SetCount(list250, index); - Span span250 = CollectionsMarshal.AsSpan(list250); - num = 0; - ref QuestSequence reference196 = ref span250[num]; + num = 6; + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + Span span97 = CollectionsMarshal.AsSpan(list250); + ref QuestSequence reference196 = ref span97[0]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -35157,32 +29176,26 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010896u, new Vector3(0.503479f, -1.9957249f, -42.61847f), 351); obj194.Steps = list251; reference196 = obj194; - num++; - ref QuestSequence reference197 = ref span250[num]; + ref QuestSequence reference197 = ref span97[1]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span252[num2] = new QuestStep(EInteractionType.Interact, 1010911u, new Vector3(-3.7385254f, 0.01804012f, -9.353821f), 351); + span98[1] = new QuestStep(EInteractionType.Interact, 1010911u, new Vector3(-3.7385254f, 0.01804012f, -9.353821f), 351); obj195.Steps = list252; reference197 = obj195; - num++; - ref QuestSequence reference198 = ref span250[num]; + ref QuestSequence reference198 = ref span97[2]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -35190,32 +29203,26 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + Span span99 = CollectionsMarshal.AsSpan(list253); + span99[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span253[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + span99[1] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj196.Steps = list253; reference198 = obj196; - num++; - ref QuestSequence reference199 = ref span250[num]; + ref QuestSequence reference199 = ref span97[3]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj197.Steps = list254; reference199 = obj197; - num++; - ref QuestSequence reference200 = ref span250[num]; + ref QuestSequence reference200 = ref span97[4]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -35223,33 +29230,25 @@ public static class AssemblyQuestLoader num2 = 6; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - ref QuestStep reference201 = ref span255[index2]; + Span span100 = CollectionsMarshal.AsSpan(list255); + ref QuestStep reference201 = ref span100[0]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1010958u, new Vector3(47.745483f, 20.665741f, -685.1759f), 156) { Fly = true }; - 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); + 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); obj199.CompletionQuestVariablesFlags = list256; reference201 = obj199; - index2++; - ref QuestStep reference202 = ref span255[index2]; + ref QuestStep reference202 = ref span100[1]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1010955u, new Vector3(103.440796f, 31.606796f, -739.559f), 156) { Fly = true @@ -35257,92 +29256,67 @@ public static class AssemblyQuestLoader num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - 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); + 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); obj200.CompletionQuestVariablesFlags = list257; reference202 = obj200; - index2++; - span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.349144f, 50f, -776.29706f), 156) + span100[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.349144f, 50f, -776.29706f), 156) { Fly = true }; - index2++; - ref QuestStep reference203 = ref span255[index2]; + ref QuestStep reference203 = ref span100[3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1010956u, new Vector3(68.86389f, 50f, -774.3496f), 156); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list258; reference203 = questStep13; - index2++; - span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) + span100[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.19157f, 29.595585f, -768.4571f), 156) { Fly = true }; - index2++; - ref QuestStep reference204 = ref span255[index2]; + ref QuestStep reference204 = ref span100[5]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list259; reference204 = questStep14; obj198.Steps = list255; reference200 = obj198; - num++; - ref QuestSequence reference205 = ref span250[num]; + ref QuestSequence reference205 = ref span97[5]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span260[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) + span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1010961u, new Vector3(33.279907f, 20.495003f, -655.20715f), 156) { Fly = true }; @@ -35355,16 +29329,13 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - Span span261 = CollectionsMarshal.AsSpan(list261); - index = 0; - span261[index] = "liza"; + CollectionsMarshal.AsSpan(list261)[0] = "liza"; questRoot28.Author = list261; - index = 2; - List list262 = new List(index); - CollectionsMarshal.SetCount(list262, index); - Span span262 = CollectionsMarshal.AsSpan(list262); - num = 0; - ref QuestSequence reference206 = ref span262[num]; + num = 2; + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + Span span106 = CollectionsMarshal.AsSpan(list262); + ref QuestSequence reference206 = ref span106[0]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -35372,29 +29343,24 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj202.Steps = list263; reference206 = obj202; - num++; - ref QuestSequence reference207 = ref span262[num]; + ref QuestSequence reference207 = ref span106[1]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, TaxiStandId = (byte)22 }; - num2++; - span264[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); + span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); obj203.Steps = list264; reference207 = obj203; questRoot28.QuestSequence = list262; @@ -35408,16 +29374,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -35425,31 +29388,25 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003239u, new Vector3(-283.68048f, 10.593393f, -249.34778f), 134); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpItemId = 2000342u, Comment = "Technically triggers combat, but can be ignored" }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -35457,26 +29414,21 @@ public static class AssemblyQuestLoader num2 = 5; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-380.10605f, 32.598312f, -608.40186f), 134) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-380.10605f, 32.598312f, -608.40186f), 134) { TargetTerritoryId = (ushort)138 }; - index2++; - span5[index2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002722u, new Vector3(667.68884f, 9.882242f, 487.32727f), 138) + span2[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002722u, new Vector3(667.68884f, 9.882242f, 487.32727f), 138) { TaxiStandId = (byte)23 }; - index2++; - span5[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + span2[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaSwiftperch }; - 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) + 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) { StopDistance = 6f }; @@ -35489,33 +29441,27 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 7; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 7; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span3 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span3[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span3[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -35523,30 +29469,24 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1003246u, new Vector3(443.22876f, 14.645099f, 452.84204f), 138); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span7[num]; + ref QuestSequence reference6 = ref span3[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2000343u }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span7[num]; + ref QuestSequence reference7 = ref span3[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 @@ -35554,9 +29494,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2001261u, new Vector3(602.50244f, 28.976807f, 361.0437f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -35564,29 +29502,23 @@ public static class AssemblyQuestLoader int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - int index3 = 0; - span12[index3] = 17u; + CollectionsMarshal.AsSpan(list12)[0] = 17u; obj8.KillEnemyDataIds = list12; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span7[num]; + ref QuestSequence reference9 = ref span3[4]; QuestSequence obj9 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span7[num]; + ref QuestSequence reference10 = ref span3[5]; QuestSequence obj10 = new QuestSequence { Sequence = 5 @@ -35594,23 +29526,18 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1003245u, new Vector3(655.75635f, 8.316303f, 521.1719f), 138); obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span7[num]; + ref QuestSequence reference11 = ref span3[6]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -35628,16 +29555,13 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 2; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 2; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span4 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span4[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -35645,38 +29569,31 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span4[1]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)135 }; - num2++; - span19[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002720u, new Vector3(49.271362f, 29.315498f, 605.27954f), 135) + span5[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002720u, new Vector3(49.271362f, 29.315498f, 605.27954f), 135) { TaxiStandId = (byte)27 }; - num2++; - span19[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + span5[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num2++; - span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + span5[3] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list17; @@ -35686,16 +29603,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list20)[0] = "CryoTechnic"; questRoot4.Author = list20; - index = 5; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference14 = ref span21[num]; + num = 5; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span6 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference14 = ref span6[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -35703,27 +29617,21 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span21[num]; + ref QuestSequence reference15 = ref span6[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span21[num]; + ref QuestSequence reference16 = ref span6[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -35731,35 +29639,29 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.Emote, 1002450u, new Vector3(42.83203f, 71.30162f, 389.0287f), 135) + Span span7 = CollectionsMarshal.AsSpan(list24); + span7[0] = new QuestStep(EInteractionType.Emote, 1002450u, new Vector3(42.83203f, 71.30162f, 389.0287f), 135) { Emote = EEmote.Soothe }; - index2++; - span24[index2] = new QuestStep(EInteractionType.Emote, 1002449u, new Vector3(41.7334f, 71.30162f, 389.63904f), 135) + span7[1] = new QuestStep(EInteractionType.Emote, 1002449u, new Vector3(41.7334f, 71.30162f, 389.63904f), 135) { Emote = EEmote.Soothe }; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span6[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj17.Steps = list25; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span6[4]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -35767,9 +29669,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002231u, new Vector3(102.25073f, 68.15522f, 328.93872f), 135); obj18.Steps = list26; reference18 = obj18; questRoot4.QuestSequence = list21; @@ -35779,30 +29679,24 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list27)[0] = "CryoTechnic"; questRoot5.Author = list27; - index = 4; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference19 = ref span28[num]; + num = 4; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span8 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference19 = ref span8[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj19.Steps = list29; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span28[num]; + ref QuestSequence reference20 = ref span8[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -35810,19 +29704,15 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref QuestStep reference21 = ref span30[index2]; + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(63.34564f, 57.438232f, 719.98425f), 135) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list31 = new List(index3); - CollectionsMarshal.SetCount(list31, index3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num3 = 0; - span31[num3] = new ComplexCombatData + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = new ComplexCombatData { DataId = 138u, NameId = 399u, @@ -35832,22 +29722,18 @@ public static class AssemblyQuestLoader reference21 = obj21; obj20.Steps = list30; reference20 = obj20; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span8[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj22.Steps = list32; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span8[3]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -35855,9 +29741,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002236u, new Vector3(185.10718f, 14.095934f, 677.33264f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; @@ -35870,30 +29754,24 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot6.Author = list34; - index = 2; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference24 = ref span35[num]; + num = 2; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span9 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference24 = ref span9[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj24.Steps = list36; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span35[num]; + ref QuestSequence reference25 = ref span9[1]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -35901,9 +29779,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135) { Emote = EEmote.Doubt }; @@ -35916,30 +29792,24 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "liza"; + CollectionsMarshal.AsSpan(list38)[0] = "liza"; questRoot7.Author = list38; - index = 5; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference26 = ref span39[num]; + num = 5; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span10 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference26 = ref span10[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj26.Steps = list40; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span39[num]; + ref QuestSequence reference27 = ref span10[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -35947,27 +29817,21 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj27.Steps = list41; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span39[num]; + ref QuestSequence reference28 = ref span10[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj28.Steps = list42; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span39[num]; + ref QuestSequence reference29 = ref span10[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -35975,23 +29839,18 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1002463u, new Vector3(249.89697f, 6.194409f, 773.12866f), 135); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1002463u, new Vector3(249.89697f, 6.194409f, 773.12866f), 135); obj29.Steps = list43; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span39[num]; + ref QuestSequence reference30 = ref span10[4]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj30.Steps = list44; reference30 = obj30; questRoot7.QuestSequence = list39; @@ -36001,16 +29860,13 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot8.Author = list45; - index = 6; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference31 = ref span46[num]; + num = 6; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span11 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference31 = ref span11[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -36018,27 +29874,21 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj31.Steps = list47; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span46[num]; + ref QuestSequence reference32 = ref span11[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj32.Steps = list48; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span46[num]; + ref QuestSequence reference33 = ref span11[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -36046,28 +29896,23 @@ public static class AssemblyQuestLoader num2 = 2; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - 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) + 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) { StopDistance = 5f }; obj33.Steps = list49; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span46[num]; + ref QuestSequence reference34 = ref span11[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref QuestStep reference35 = ref span50[num2]; + num2 = 1; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list50)[0]; QuestStep obj35 = new QuestStep(EInteractionType.SinglePlayerDuty, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -36076,16 +29921,13 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - 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)"; + 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)"; singlePlayerDutyOptions.Notes = list51; obj35.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference35 = obj35; obj34.Steps = list50; reference34 = obj34; - num++; - ref QuestSequence reference36 = ref span46[num]; + ref QuestSequence reference36 = ref span11[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -36093,23 +29935,18 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Interact, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135); obj36.Steps = list52; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span46[num]; + ref QuestSequence reference37 = ref span11[5]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj37.Steps = list53; reference37 = obj37; questRoot8.QuestSequence = list46; @@ -36119,16 +29956,13 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot9.Author = list54; - index = 5; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference38 = ref span55[num]; + num = 5; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span13 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference38 = ref span13[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -36136,27 +29970,21 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135); + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002274u, new Vector3(-34.65332f, 8.921356f, 861.4479f), 135); obj38.Steps = list56; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span55[num]; + ref QuestSequence reference39 = ref span13[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj39.Steps = list57; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span55[num]; + ref QuestSequence reference40 = ref span13[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -36164,91 +29992,66 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - ref QuestStep reference41 = ref span58[index2]; + Span span14 = CollectionsMarshal.AsSpan(list58); + ref QuestStep reference41 = ref span14[0]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2000769u, new Vector3(-145.09808f, 1.0527954f, 709.10205f), 135) { StopDistance = 4f }; - 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); + 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); obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; - index2++; - ref QuestStep reference42 = ref span58[index2]; + ref QuestStep reference42 = ref span14[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list60; reference42 = questStep; - index2++; - ref QuestStep reference43 = ref span58[index2]; + ref QuestStep reference43 = ref span14[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2000771u, new Vector3(-168.84113f, 1.9683228f, 659.327f), 135); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list61; reference43 = questStep2; obj40.Steps = list58; reference40 = obj40; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span13[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj42.Steps = list62; reference44 = obj42; - num++; - ref QuestSequence reference45 = ref span55[num]; + ref QuestSequence reference45 = ref span13[4]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -36256,9 +30059,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002238u, new Vector3(247.36401f, 14.02301f, 611.9325f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; @@ -36271,26 +30072,21 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; questRoot10.Author = list64; - index = 7; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference46 = ref span65[num]; + num = 7; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span18 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference46 = ref span18[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -36303,8 +30099,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list66; reference46 = obj44; - num++; - ref QuestSequence reference47 = ref span65[num]; + ref QuestSequence reference47 = ref span18[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -36312,9 +30107,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -36325,22 +30118,18 @@ public static class AssemblyQuestLoader }; obj45.Steps = list67; reference47 = obj45; - num++; - ref QuestSequence reference48 = ref span65[num]; + ref QuestSequence reference48 = ref span18[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj46.Steps = list68; reference48 = obj46; - num++; - ref QuestSequence reference49 = ref span65[num]; + ref QuestSequence reference49 = ref span18[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -36348,32 +30137,27 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) + Span span19 = CollectionsMarshal.AsSpan(list69); + span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-123.426254f, 301.84348f, -283.14267f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span69[index2] = new QuestStep(EInteractionType.Interact, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) + span19[1] = new QuestStep(EInteractionType.Interact, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) { Fly = true }; obj47.Steps = list69; reference49 = obj47; - num++; - ref QuestSequence reference50 = ref span65[num]; + ref QuestSequence reference50 = ref span18[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref QuestStep reference51 = ref span70[num2]; + num2 = 1; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list70)[0]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-497.33295f, 206.35991f, -363.85968f), 155) { Fly = true, @@ -36382,17 +30166,14 @@ public static class AssemblyQuestLoader num3 = 2; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - index3 = 0; - span71[index3] = 387u; - index3++; - span71[index3] = 3659u; + Span span20 = CollectionsMarshal.AsSpan(list71); + span20[0] = 387u; + span20[1] = 3659u; obj49.KillEnemyDataIds = list71; reference51 = obj49; obj48.Steps = list70; reference50 = obj48; - num++; - ref QuestSequence reference52 = ref span65[num]; + ref QuestSequence reference52 = ref span18[5]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -36400,44 +30181,37 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - ref QuestStep reference53 = ref span72[index2]; + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(127.06116f, 373.5079f, -653.1907f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + Span span21 = CollectionsMarshal.AsSpan(list73); + span21[0] = 398u; + span21[1] = 3658u; obj51.KillEnemyDataIds = list73; reference53 = obj51; obj50.Steps = list72; reference52 = obj50; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span18[6]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span74[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) + span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155) { Fly = true }; @@ -36450,16 +30224,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; questRoot11.Author = list75; - index = 5; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference55 = ref span76[num]; + num = 5; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span23 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference55 = ref span23[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -36467,32 +30238,26 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj53.Steps = list77; reference55 = obj53; - num++; - ref QuestSequence reference56 = ref span76[num]; + ref QuestSequence reference56 = ref span23[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span78[num2] = new QuestStep(EInteractionType.Interact, 2005060u, new Vector3(-4.135254f, 0.015197754f, -9.628479f), 351); + span24[1] = new QuestStep(EInteractionType.Interact, 2005060u, new Vector3(-4.135254f, 0.015197754f, -9.628479f), 351); obj54.Steps = list78; reference56 = obj54; - num++; - ref QuestSequence reference57 = ref span76[num]; + ref QuestSequence reference57 = ref span23[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -36500,41 +30265,34 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1011612u, new Vector3(7.736328f, 0f, -8.438293f), 351); + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1011612u, new Vector3(7.736328f, 0f, -8.438293f), 351); obj55.Steps = list79; reference57 = obj55; - num++; - ref QuestSequence reference58 = ref span76[num]; + ref QuestSequence reference58 = ref span23[3]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)156 }; - num2++; - span80[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) + span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) { Mount = true }; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1010979u, new Vector3(27.023682f, 32.412476f, -697.35254f), 156) + span25[2] = new QuestStep(EInteractionType.Interact, 1010979u, new Vector3(27.023682f, 32.412476f, -697.35254f), 156) { StopDistance = 1f, Fly = true }; obj56.Steps = list80; reference58 = obj56; - num++; - ref QuestSequence reference59 = ref span76[num]; + ref QuestSequence reference59 = ref span23[4]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -36542,24 +30300,20 @@ public static class AssemblyQuestLoader num2 = 4; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) + Span span26 = CollectionsMarshal.AsSpan(list81); + span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.414328f, 21.232033f, -652.65454f), 156) { Fly = true }; - index2++; - span81[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span26[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - index2++; - span81[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span26[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + span26[3] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj57.Steps = list81; reference59 = obj57; questRoot11.QuestSequence = list76; @@ -36569,30 +30323,24 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list82)[0] = "JerryWester"; questRoot12.Author = list82; - index = 6; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference60 = ref span83[num]; + num = 6; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span27 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference60 = ref span27[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj58.Steps = list84; reference60 = obj58; - num++; - ref QuestSequence reference61 = ref span83[num]; + ref QuestSequence reference61 = ref span27[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -36600,9 +30348,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 1010980u, new Vector3(-341.6648f, -2.3744712f, 10.696533f), 129) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1010980u, new Vector3(-341.6648f, -2.3744712f, 10.696533f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -36613,22 +30359,18 @@ public static class AssemblyQuestLoader }; obj59.Steps = list85; reference61 = obj59; - num++; - ref QuestSequence reference62 = ref span83[num]; + ref QuestSequence reference62 = ref span27[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj60.Steps = list86; reference62 = obj60; - num++; - ref QuestSequence reference63 = ref span83[num]; + ref QuestSequence reference63 = ref span27[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -36636,9 +30378,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 2005073u, new Vector3(-1.0223389f, 29.55664f, 172.96094f), 134) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 2005073u, new Vector3(-1.0223389f, 29.55664f, 172.96094f), 134) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -36649,25 +30389,21 @@ public static class AssemblyQuestLoader }; obj61.Steps = list87; reference63 = obj61; - num++; - ref QuestSequence reference64 = ref span83[num]; + ref QuestSequence reference64 = ref span27[4]; QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj62.Steps = list88; reference64 = obj62; - num++; - ref QuestSequence reference65 = ref span83[num]; + ref QuestSequence reference65 = ref span27[5]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -36675,9 +30411,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -36695,30 +30429,24 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list90)[0] = "JerryWester"; questRoot13.Author = list90; - index = 6; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference66 = ref span91[num]; + num = 6; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span28 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference66 = ref span28[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj64.Steps = list92; reference66 = obj64; - num++; - ref QuestSequence reference67 = ref span91[num]; + ref QuestSequence reference67 = ref span28[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -36726,34 +30454,28 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1010982u, new Vector3(570.18384f, 20.637413f, 490.6233f), 137) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1010982u, new Vector3(570.18384f, 20.637413f, 490.6233f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj65.Steps = list93; reference67 = obj65; - num++; - ref QuestSequence reference68 = ref span91[num]; + ref QuestSequence reference68 = ref span28[2]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj66.Steps = list94; reference68 = obj66; - num++; - ref QuestSequence reference69 = ref span91[num]; + ref QuestSequence reference69 = ref span28[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -36761,9 +30483,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - ref QuestStep reference70 = ref span95[index2]; + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2005064u, new Vector3(602.9907f, 8.987488f, 577.66077f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36771,29 +30491,23 @@ public static class AssemblyQuestLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - Span span96 = CollectionsMarshal.AsSpan(list96); - index3 = 0; - span96[index3] = 3660u; + CollectionsMarshal.AsSpan(list96)[0] = 3660u; obj68.KillEnemyDataIds = list96; reference70 = obj68; obj67.Steps = list95; reference69 = obj67; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span28[4]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj69.Steps = list97; reference71 = obj69; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span28[5]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -36801,20 +30515,17 @@ public static class AssemblyQuestLoader num2 = 3; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span29 = CollectionsMarshal.AsSpan(list98); + span29[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span98[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span29[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + span29[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj70.Steps = list98; reference72 = obj70; questRoot13.QuestSequence = list91; @@ -36824,30 +30535,24 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list99)[0] = "JerryWester"; questRoot14.Author = list99; - index = 13; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference73 = ref span100[num]; + num = 13; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span30 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference73 = ref span30[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj71.Steps = list101; reference73 = obj71; - num++; - ref QuestSequence reference74 = ref span100[num]; + ref QuestSequence reference74 = ref span30[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -36855,35 +30560,29 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span31 = CollectionsMarshal.AsSpan(list102); + span31[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span102[index2] = new QuestStep(EInteractionType.Interact, 1011615u, new Vector3(-1.3275757f, 0f, -2.7008667f), 351); + span31[1] = new QuestStep(EInteractionType.Interact, 1011615u, new Vector3(-1.3275757f, 0f, -2.7008667f), 351); obj72.Steps = list102; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span100[num]; + ref QuestSequence reference75 = ref span30[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj73.Steps = list103; reference75 = obj73; - num++; - ref QuestSequence reference76 = ref span100[num]; + ref QuestSequence reference76 = ref span30[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -36891,42 +30590,34 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153) { Fly = true }; obj74.Steps = list104; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span100[num]; + ref QuestSequence reference77 = ref span30[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list105 = new List(index2); - CollectionsMarshal.SetCount(list105, index2); - Span span105 = CollectionsMarshal.AsSpan(list105); - num2 = 0; - ref QuestStep reference78 = ref span105[num2]; + num2 = 1; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list105)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2005065u, new Vector3(-225.26898f, 13.137939f, 56.90088f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list106 = new List(index3); - CollectionsMarshal.SetCount(list106, index3); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - span106[num3] = 23u; + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = 23u; obj76.KillEnemyDataIds = list106; reference78 = obj76; obj75.Steps = list105; reference77 = obj75; - num++; - ref QuestSequence reference79 = ref span100[num]; + ref QuestSequence reference79 = ref span30[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -36934,30 +30625,24 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153); + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1010985u, new Vector3(-223.71259f, 12.277637f, 47.989624f), 153); obj77.Steps = list107; reference79 = obj77; - num++; - ref QuestSequence reference80 = ref span100[num]; + ref QuestSequence reference80 = ref span30[6]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj78.Steps = list108; reference80 = obj78; - num++; - ref QuestSequence reference81 = ref span100[num]; + ref QuestSequence reference81 = ref span30[7]; QuestSequence obj79 = new QuestSequence { Sequence = 7 @@ -36965,9 +30650,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - ref QuestStep reference82 = ref span109[index2]; + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list109)[0]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2005066u, new Vector3(109.666504f, 24.15503f, 174.7616f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -36975,31 +30658,25 @@ public static class AssemblyQuestLoader num3 = 2; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - Span span110 = CollectionsMarshal.AsSpan(list110); - index3 = 0; - span110[index3] = 24u; - index3++; - span110[index3] = 130u; + Span span32 = CollectionsMarshal.AsSpan(list110); + span32[0] = 24u; + span32[1] = 130u; obj80.KillEnemyDataIds = list110; reference82 = obj80; obj79.Steps = list109; reference81 = obj79; - num++; - ref QuestSequence reference83 = ref span100[num]; + ref QuestSequence reference83 = ref span30[8]; QuestSequence obj81 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj81.Steps = list111; reference83 = obj81; - num++; - ref QuestSequence reference84 = ref span100[num]; + ref QuestSequence reference84 = ref span30[9]; QuestSequence obj82 = new QuestSequence { Sequence = 9 @@ -37007,42 +30684,34 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153) { Fly = true }; obj82.Steps = list112; reference84 = obj82; - num++; - ref QuestSequence reference85 = ref span100[num]; + ref QuestSequence reference85 = ref span30[10]; QuestSequence obj83 = new QuestSequence { Sequence = 10 }; - index2 = 1; - List list113 = new List(index2); - CollectionsMarshal.SetCount(list113, index2); - Span span113 = CollectionsMarshal.AsSpan(list113); - num2 = 0; - ref QuestStep reference86 = ref span113[num2]; + num2 = 1; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + ref QuestStep reference86 = ref CollectionsMarshal.AsSpan(list113)[0]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2005067u, new Vector3(-338.42987f, -0.07635498f, 453.4828f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list114 = new List(index3); - CollectionsMarshal.SetCount(list114, index3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = 305u; + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = 305u; obj84.KillEnemyDataIds = list114; reference86 = obj84; obj83.Steps = list113; reference85 = obj83; - num++; - ref QuestSequence reference87 = ref span100[num]; + ref QuestSequence reference87 = ref span30[11]; QuestSequence obj85 = new QuestSequence { Sequence = 11 @@ -37050,23 +30719,18 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1010987u, new Vector3(-355.2453f, 0.6691612f, 459.3728f), 153); obj85.Steps = list115; reference87 = obj85; - num++; - ref QuestSequence reference88 = ref span100[num]; + ref QuestSequence reference88 = ref span30[12]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -37079,16 +30743,13 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list117)[0] = "JerryWester"; questRoot15.Author = list117; - index = 4; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference89 = ref span118[num]; + num = 4; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span33 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference89 = ref span33[0]; QuestSequence obj87 = new QuestSequence { Sequence = 0 @@ -37096,9 +30757,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010984u, new Vector3(-207.44641f, 20.86788f, 360.06702f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -37111,26 +30770,22 @@ public static class AssemblyQuestLoader }; obj87.Steps = list119; reference89 = obj87; - num++; - ref QuestSequence reference90 = ref span118[num]; + ref QuestSequence reference90 = ref span33[1]; QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj88.Steps = list120; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span118[num]; + ref QuestSequence reference91 = ref span33[2]; QuestSequence obj89 = new QuestSequence { Sequence = 2 @@ -37138,34 +30793,28 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 2005068u, new Vector3(604.57764f, 24.032959f, 105.119385f), 153); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2005068u, new Vector3(604.57764f, 24.032959f, 105.119385f), 153); obj89.Steps = list121; reference91 = obj89; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span33[3]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span122[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span34[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span122[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + span34[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj90.Steps = list122; reference92 = obj90; questRoot15.QuestSequence = list118; @@ -37175,16 +30824,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; questRoot16.Author = list123; - index = 2; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference93 = ref span124[num]; + num = 2; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span35 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference93 = ref span35[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -37192,9 +30838,8 @@ public static class AssemblyQuestLoader num2 = 3; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - ref QuestStep reference94 = ref span125[index2]; + Span span36 = CollectionsMarshal.AsSpan(list125); + ref QuestStep reference94 = ref span36[0]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -37205,24 +30850,19 @@ public static class AssemblyQuestLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span126 = CollectionsMarshal.AsSpan(list126); - index3 = 0; - span126[index3] = 351; + CollectionsMarshal.AsSpan(list126)[0] = 351; skipStepConditions.InTerritory = list126; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list127 = new List(index3); - CollectionsMarshal.SetCount(list127, index3); - Span span127 = CollectionsMarshal.AsSpan(list127); - num3 = 0; - span127[num3] = 351; + num3 = 1; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + CollectionsMarshal.AsSpan(list127)[0] = 351; skipAetheryteCondition.InTerritory = list127; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj92.SkipConditions = skipConditions; reference94 = obj92; - index2++; - span125[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span36[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -37233,22 +30873,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj91.Steps = list125; reference93 = obj91; - num++; - ref QuestSequence reference95 = ref span124[num]; + ref QuestSequence reference95 = ref span35[1]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -37266,16 +30902,13 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - Span span129 = CollectionsMarshal.AsSpan(list129); - index = 0; - span129[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list129)[0] = "JerryWester"; questRoot17.Author = list129; - index = 6; - List list130 = new List(index); - CollectionsMarshal.SetCount(list130, index); - Span span130 = CollectionsMarshal.AsSpan(list130); - num = 0; - ref QuestSequence reference96 = ref span130[num]; + num = 6; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + Span span37 = CollectionsMarshal.AsSpan(list130); + ref QuestSequence reference96 = ref span37[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -37283,23 +30916,18 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131); + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010992u, new Vector3(-6.149414f, 29.99998f, 19.150085f), 131); obj94.Steps = list131; reference96 = obj94; - num++; - ref QuestSequence reference97 = ref span130[num]; + ref QuestSequence reference97 = ref span37[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -37309,8 +30937,7 @@ public static class AssemblyQuestLoader }; obj95.Steps = list132; reference97 = obj95; - num++; - ref QuestSequence reference98 = ref span130[num]; + ref QuestSequence reference98 = ref span37[2]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -37318,31 +30945,25 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 2005069u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 2005069u, new Vector3(-289.17377f, 22.812195f, -56.6568f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj96.Steps = list133; reference98 = obj96; - num++; - ref QuestSequence reference99 = ref span130[num]; + ref QuestSequence reference99 = ref span37[3]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj97.Steps = list134; reference99 = obj97; - num++; - ref QuestSequence reference100 = ref span130[num]; + ref QuestSequence reference100 = ref span37[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -37350,23 +30971,18 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 2005072u, new Vector3(-289.72308f, 22.812195f, -56.321106f), 141); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2005072u, new Vector3(-289.72308f, 22.812195f, -56.321106f), 141); obj98.Steps = list135; reference100 = obj98; - num++; - ref QuestSequence reference101 = ref span130[num]; + ref QuestSequence reference101 = ref span37[5]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -37384,16 +31000,13 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; questRoot18.Author = list137; - index = 4; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference102 = ref span138[num]; + num = 4; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span38 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference102 = ref span38[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -37401,23 +31014,18 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj100.Steps = list139; reference102 = obj100; - num++; - ref QuestSequence reference103 = ref span138[num]; + ref QuestSequence reference103 = ref span38[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list140 = new List(index2); - CollectionsMarshal.SetCount(list140, index2); - Span span140 = CollectionsMarshal.AsSpan(list140); - num2 = 0; - ref QuestStep reference104 = ref span140[num2]; + num2 = 1; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list140)[0]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1010997u, new Vector3(-22.354492f, 38.010006f, 83.42102f), 131) { AethernetShortcut = new AethernetShortcut @@ -37429,9 +31037,7 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span141 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span141[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE615_00427_Q1_000_012") @@ -37440,8 +31046,7 @@ public static class AssemblyQuestLoader reference104 = obj102; obj101.Steps = list140; reference103 = obj101; - num++; - ref QuestSequence reference105 = ref span138[num]; + ref QuestSequence reference105 = ref span38[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -37449,32 +31054,27 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.Interact, 1010998u, new Vector3(78.416016f, -0.63573146f, -166.33862f), 141) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1010998u, new Vector3(78.416016f, -0.63573146f, -166.33862f), 141) { StopDistance = 5f }; obj103.Steps = list142; reference105 = obj103; - num++; - ref QuestSequence reference106 = ref span138[num]; + ref QuestSequence reference106 = ref span38[3]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span143[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj104.Steps = list143; reference106 = obj104; questRoot18.QuestSequence = list138; @@ -37484,16 +31084,13 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - span144[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; questRoot19.Author = list144; - index = 2; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - ref QuestSequence reference107 = ref span145[num]; + num = 2; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span40 = CollectionsMarshal.AsSpan(list145); + ref QuestSequence reference107 = ref span40[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -37501,9 +31098,7 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -37516,28 +31111,23 @@ public static class AssemblyQuestLoader }; obj105.Steps = list146; reference107 = obj105; - num++; - ref QuestSequence reference108 = ref span145[num]; + ref QuestSequence reference108 = ref span40[1]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list147 = new List(index2); - CollectionsMarshal.SetCount(list147, index2); - Span span147 = CollectionsMarshal.AsSpan(list147); - num2 = 0; - ref QuestStep reference109 = ref span147[num2]; + num2 = 1; + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list147)[0]; QuestStep obj107 = new QuestStep(EInteractionType.CompleteQuest, 1007603u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { Mount = true }; - index3 = 1; - List list148 = new List(index3); - CollectionsMarshal.SetCount(list148, index3); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - span148[num3] = new DialogueChoice + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + CollectionsMarshal.AsSpan(list148)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE616_00428_FORTEMPSGUARD00428_Q1_000_000") @@ -37553,16 +31143,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; questRoot20.Author = list149; - index = 3; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference110 = ref span150[num]; + num = 3; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span41 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference110 = ref span41[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -37570,45 +31157,37 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011000u, new Vector3(-0.07635498f, -1.9957249f, -42.25226f), 351); obj108.Steps = list151; reference110 = obj108; - num++; - ref QuestSequence reference111 = ref span150[num]; + ref QuestSequence reference111 = ref span41[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span152[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + span42[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - num2++; - span152[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - num2++; - span152[num2] = new QuestStep(EInteractionType.Interact, 2005045u, new Vector3(-146.44086f, 43.656006f, -188.61682f), 156) + span42[3] = new QuestStep(EInteractionType.Interact, 2005045u, new Vector3(-146.44086f, 43.656006f, -188.61682f), 156) { Fly = true }; obj109.Steps = list152; reference111 = obj109; - num++; - ref QuestSequence reference112 = ref span150[num]; + ref QuestSequence reference112 = ref span41[2]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -37616,20 +31195,17 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span43 = CollectionsMarshal.AsSpan(list153); + span43[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span153[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span43[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + span43[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj110.Steps = list153; reference112 = obj110; questRoot20.QuestSequence = list150; @@ -37639,33 +31215,27 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - Span span154 = CollectionsMarshal.AsSpan(list154); - index = 0; - span154[index] = "liza"; + CollectionsMarshal.AsSpan(list154)[0] = "liza"; questRoot21.Author = list154; - index = 4; - List list155 = new List(index); - CollectionsMarshal.SetCount(list155, index); - Span span155 = CollectionsMarshal.AsSpan(list155); - num = 0; - ref QuestSequence reference113 = ref span155[num]; + num = 4; + List list155 = new List(num); + CollectionsMarshal.SetCount(list155, num); + Span span44 = CollectionsMarshal.AsSpan(list155); + ref QuestSequence reference113 = ref span44[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj111.Steps = list156; reference113 = obj111; - num++; - ref QuestSequence reference114 = ref span155[num]; + ref QuestSequence reference114 = ref span44[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -37673,27 +31243,22 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.Interact, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj112.Steps = list157; reference114 = obj112; - num++; - ref QuestSequence reference115 = ref span155[num]; + ref QuestSequence reference115 = ref span44[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -37702,8 +31267,7 @@ public static class AssemblyQuestLoader }; obj113.Steps = list158; reference115 = obj113; - num++; - ref QuestSequence reference116 = ref span155[num]; + ref QuestSequence reference116 = ref span44[3]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -37711,9 +31275,7 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011250u, new Vector3(616.51013f, 22.291952f, 85.22156f), 153); obj114.Steps = list159; reference116 = obj114; questRoot21.QuestSequence = list155; @@ -37723,30 +31285,24 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot22.Author = list160; - index = 2; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference117 = ref span161[num]; + num = 2; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span45 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference117 = ref span45[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj115.Steps = list162; reference117 = obj115; - num++; - ref QuestSequence reference118 = ref span161[num]; + ref QuestSequence reference118 = ref span45[1]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -37754,9 +31310,7 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - ref QuestStep reference119 = ref span163[index2]; + ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep obj117 = new QuestStep(EInteractionType.CompleteQuest, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { AethernetShortcut = new AethernetShortcut @@ -37768,9 +31322,7 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span164 = CollectionsMarshal.AsSpan(list164); - index3 = 0; - span164[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC001_00434_Q1_000_000") @@ -37787,35 +31339,29 @@ public static class AssemblyQuestLoader num = 2; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; - index++; - span165[index] = "JerryWester"; + Span span46 = CollectionsMarshal.AsSpan(list165); + span46[0] = "liza"; + span46[1] = "JerryWester"; questRoot23.Author = list165; - index = 8; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference120 = ref span166[num]; + num = 8; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span47 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference120 = ref span47[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj118.Steps = list167; reference120 = obj118; - num++; - ref QuestSequence reference121 = ref span166[num]; + ref QuestSequence reference121 = ref span47[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -37823,39 +31369,33 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + Span span48 = CollectionsMarshal.AsSpan(list168); + span48[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerEntranceCardSquares }; - index2++; - span168[index2] = new QuestStep(EInteractionType.Interact, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) + span48[1] = new QuestStep(EInteractionType.Interact, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) { StopDistance = 5f }; obj119.Steps = list168; reference121 = obj119; - num++; - ref QuestSequence reference122 = ref span166[num]; + ref QuestSequence reference122 = ref span47[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj120.Steps = list169; reference122 = obj120; - num++; - ref QuestSequence reference123 = ref span166[num]; + ref QuestSequence reference123 = ref span47[3]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -37863,40 +31403,33 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.Interact, 1010478u, new Vector3(-99.19891f, -0.86297023f, 66.11731f), 144); + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1010478u, new Vector3(-99.19891f, -0.86297023f, 66.11731f), 144); obj121.Steps = list170; reference123 = obj121; - num++; - ref QuestSequence reference124 = ref span166[num]; + ref QuestSequence reference124 = ref span47[4]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)388 }; - num2++; - span171[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + span49[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 5f, AethernetShard = EAetheryteLocation.GoldSaucerMinionSquare }; - num2++; - span171[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) + span49[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 388) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerChocoboSquare }; - num2++; - span171[num2] = new QuestStep(EInteractionType.None, null, null, 388) + span49[3] = new QuestStep(EInteractionType.None, null, null, 388) { AethernetShortcut = new AethernetShortcut { @@ -37904,18 +31437,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - num2++; - span171[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) + span49[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 144) { DelaySecondsAtStart = 3f, Aetheryte = EAetheryteLocation.GoldSaucer }; - num2++; - span171[num2] = new QuestStep(EInteractionType.Interact, 1011080u, new Vector3(21.530457f, 3.9997296f, 39.902344f), 144); + span49[5] = new QuestStep(EInteractionType.Interact, 1011080u, new Vector3(21.530457f, 3.9997296f, 39.902344f), 144); obj122.Steps = list171; reference124 = obj122; - num++; - ref QuestSequence reference125 = ref span166[num]; + ref QuestSequence reference125 = ref span47[5]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -37923,24 +31453,20 @@ public static class AssemblyQuestLoader num2 = 9; 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(46.78062f, 11.798187f, 20.328043f), 144); - index2++; - span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + 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) { StopDistance = 7f, DelaySecondsAtStart = 3f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareWest }; - index2++; - span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span50[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerWonderSquareEast }; - index2++; - span172[index2] = new QuestStep(EInteractionType.None, null, null, 144) + span50[3] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -37948,47 +31474,39 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - index2++; - span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span50[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, DelaySecondsAtStart = 3f, AethernetShard = EAetheryteLocation.GoldSaucerEventSquare }; - index2++; - span172[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144) + span50[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(122.973015f, -0.5100681f, -50.024624f), 144) { DelaySecondsAtStart = 3f }; - index2++; - span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + span50[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerCactpotBoard }; - 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) + 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) { StopDistance = 4f }; obj123.Steps = list172; reference125 = obj123; - num++; - ref QuestSequence reference126 = ref span166[num]; + ref QuestSequence reference126 = ref span47[6]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -37996,15 +31514,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucer } }; - num2++; - span173[num2] = new QuestStep(EInteractionType.Interact, 1011084u, new Vector3(-12.527649f, 3.2546434f, -73.16705f), 144) + span51[2] = new QuestStep(EInteractionType.Interact, 1011084u, new Vector3(-12.527649f, 3.2546434f, -73.16705f), 144) { DelaySecondsAtStart = 3f }; obj124.Steps = list173; reference126 = obj124; - num++; - ref QuestSequence reference127 = ref span166[num]; + ref QuestSequence reference127 = ref span47[7]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -38012,15 +31528,13 @@ public static class AssemblyQuestLoader num2 = 3; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) + Span span52 = CollectionsMarshal.AsSpan(list174); + span52[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 144) { StopDistance = 7f, AethernetShard = EAetheryteLocation.GoldSaucerRoundSquare }; - index2++; - span174[index2] = new QuestStep(EInteractionType.None, null, null, 144) + span52[1] = new QuestStep(EInteractionType.None, null, null, 144) { AethernetShortcut = new AethernetShortcut { @@ -38028,8 +31542,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerEntranceCardSquares } }; - index2++; - span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) + span52[2] = new QuestStep(EInteractionType.CompleteQuest, 1010448u, new Vector3(-54.00177f, 1.6000003f, 30.685791f), 144) { StopDistance = 5f, DelaySecondsAtStart = 3f @@ -38043,26 +31556,21 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "Starr"; + CollectionsMarshal.AsSpan(list175)[0] = "Starr"; questRoot24.Author = list175; - index = 2; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference128 = ref span176[num]; + num = 2; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span53 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference128 = ref span53[0]; QuestSequence obj126 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list177)[0]; QuestStep obj127 = new QuestStep(EInteractionType.AcceptQuest, 1010464u, new Vector3(-0.015319824f, -1.8903663E-06f, -65.61273f), 388) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -38077,20 +31585,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list178 = new List(index3); - CollectionsMarshal.SetCount(list178, index3); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - span178[num3] = 144; + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + CollectionsMarshal.AsSpan(list178)[0] = 144; obj128.InTerritory = list178; skipConditions2.AetheryteShortcutIf = obj128; obj127.SkipConditions = skipConditions2; reference129 = obj127; obj126.Steps = list177; reference128 = obj126; - num++; - ref QuestSequence reference130 = ref span176[num]; + ref QuestSequence reference130 = ref span53[1]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -38098,9 +31603,7 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010472u, new Vector3(-53.26935f, 0.3093315f, 69.41321f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -38122,26 +31625,20 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "Starr"; + CollectionsMarshal.AsSpan(list180)[0] = "Starr"; questRoot25.Author = list180; - index = 1; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference131 = ref span181[num]; + num = 1; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + ref QuestSequence reference131 = ref CollectionsMarshal.AsSpan(list181)[0]; QuestSequence obj130 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list182)[0]; QuestStep obj131 = new QuestStep(EInteractionType.AcceptQuest, 1011060u, new Vector3(-96.87958f, -0.86297023f, 67.826294f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -38156,9 +31653,7 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span183 = CollectionsMarshal.AsSpan(list183); - index3 = 0; - span183[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC102_00437_Q1_000_000") @@ -38174,16 +31669,13 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - Span span184 = CollectionsMarshal.AsSpan(list184); - index = 0; - span184[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list184)[0] = "Cacahuetes"; questRoot26.Author = list184; - index = 12; - List list185 = new List(index); - CollectionsMarshal.SetCount(list185, index); - Span span185 = CollectionsMarshal.AsSpan(list185); - num = 0; - ref QuestSequence reference133 = ref span185[num]; + num = 12; + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span54 = CollectionsMarshal.AsSpan(list185); + ref QuestSequence reference133 = ref span54[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -38191,9 +31683,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - ref QuestStep reference134 = ref span186[index2]; + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list186)[0]; QuestStep obj133 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -38208,30 +31698,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list187 = new List(index3); - CollectionsMarshal.SetCount(list187, index3); - Span span187 = CollectionsMarshal.AsSpan(list187); - num3 = 0; - span187[num3] = 133; + num3 = 1; + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + CollectionsMarshal.AsSpan(list187)[0] = 133; obj134.InTerritory = list187; skipConditions3.AetheryteShortcutIf = obj134; obj133.SkipConditions = skipConditions3; reference134 = obj133; obj132.Steps = list186; reference133 = obj132; - num++; - ref QuestSequence reference135 = ref span185[num]; + ref QuestSequence reference135 = ref span54[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 2f, Fly = true, @@ -38239,8 +31724,7 @@ public static class AssemblyQuestLoader }; obj135.Steps = list188; reference135 = obj135; - num++; - ref QuestSequence reference136 = ref span185[num]; + ref QuestSequence reference136 = ref span54[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -38248,9 +31732,8 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.875587f, -1.4320529f, 335.96927f), 152) + Span span55 = CollectionsMarshal.AsSpan(list189); + span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.875587f, -1.4320529f, 335.96927f), 152) { Fly = true, SkipConditions = new SkipConditions @@ -38261,8 +31744,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference137 = ref span189[index2]; + ref QuestStep reference137 = ref span55[1]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 2000963u, new Vector3(39.230957f, -0.5036011f, 337.3922f), 152) { ItemId = 2000243u, @@ -38271,33 +31753,27 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - index3 = 0; - span190[index3] = 38u; + CollectionsMarshal.AsSpan(list190)[0] = 38u; obj137.KillEnemyDataIds = list190; reference137 = obj137; obj136.Steps = list189; reference136 = obj136; - num++; - ref QuestSequence reference138 = ref span185[num]; + ref QuestSequence reference138 = ref span54[3]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 2f, Fly = true }; obj138.Steps = list191; reference138 = obj138; - num++; - ref QuestSequence reference139 = ref span185[num]; + ref QuestSequence reference139 = ref span54[4]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -38305,9 +31781,8 @@ public static class AssemblyQuestLoader num2 = 2; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + Span span56 = CollectionsMarshal.AsSpan(list192); + span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -38318,22 +31793,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span192[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + span56[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj139.Steps = list192; reference139 = obj139; - num++; - ref QuestSequence reference140 = ref span185[num]; + ref QuestSequence reference140 = ref span54[5]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -38343,16 +31815,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span193[num2] = new QuestStep(EInteractionType.UseItem, 2000921u, new Vector3(-103.71564f, 6.42395f, 101.60974f), 153) + span57[1] = new QuestStep(EInteractionType.UseItem, 2000921u, new Vector3(-103.71564f, 6.42395f, 101.60974f), 153) { Fly = true, ItemId = 2000232u }; obj140.Steps = list193; reference140 = obj140; - num++; - ref QuestSequence reference141 = ref span185[num]; + ref QuestSequence reference141 = ref span54[6]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -38360,9 +31830,8 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) + Span span58 = CollectionsMarshal.AsSpan(list194); + span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-166.19086f, 8.399985f, -64.10584f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -38373,30 +31842,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span194[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + span58[1] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj141.Steps = list194; reference141 = obj141; - num++; - ref QuestSequence reference142 = ref span185[num]; + ref QuestSequence reference142 = ref span54[7]; QuestSequence obj142 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj142.Steps = list195; reference142 = obj142; - num++; - ref QuestSequence reference143 = ref span185[num]; + ref QuestSequence reference143 = ref span54[8]; QuestSequence obj143 = new QuestSequence { Sequence = 8 @@ -38404,20 +31868,16 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - ref QuestStep reference144 = ref span196[index2]; + ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list196)[0]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, null, new Vector3(-39.98818f, -46.837822f, 403.3237f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list197 = new List(index3); - CollectionsMarshal.SetCount(list197, index3); - Span span197 = CollectionsMarshal.AsSpan(list197); - num3 = 0; - span197[num3] = new ComplexCombatData + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 6u @@ -38426,18 +31886,15 @@ public static class AssemblyQuestLoader reference144 = obj144; obj143.Steps = list196; reference143 = obj143; - num++; - ref QuestSequence reference145 = ref span185[num]; + ref QuestSequence reference145 = ref span54[9]; QuestSequence obj145 = new QuestSequence { Sequence = 9 }; - index2 = 1; - List list198 = new List(index2); - CollectionsMarshal.SetCount(list198, index2); - Span span198 = CollectionsMarshal.AsSpan(list198); - num2 = 0; - ref QuestStep reference146 = ref span198[num2]; + num2 = 1; + List list198 = new List(num2); + CollectionsMarshal.SetCount(list198, num2); + ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list198)[0]; QuestStep obj146 = new QuestStep(EInteractionType.Combat, 2000922u, new Vector3(28.244385f, -54.337463f, 512.932f), 154) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -38445,16 +31902,13 @@ public static class AssemblyQuestLoader num3 = 1; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - Span span199 = CollectionsMarshal.AsSpan(list199); - index3 = 0; - span199[index3] = 18u; + CollectionsMarshal.AsSpan(list199)[0] = 18u; obj146.KillEnemyDataIds = list199; obj146.CombatDelaySecondsAtStart = 3f; reference146 = obj146; obj145.Steps = list198; reference145 = obj145; - num++; - ref QuestSequence reference147 = ref span185[num]; + ref QuestSequence reference147 = ref span54[10]; QuestSequence obj147 = new QuestSequence { Sequence = 10 @@ -38462,26 +31916,21 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1002815u, new Vector3(-27.328918f, -34.62274f, 173.05249f), 154) { Fly = true }; obj147.Steps = list200; reference147 = obj147; - num++; - ref QuestSequence reference148 = ref span185[num]; + ref QuestSequence reference148 = ref span54[11]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -38500,16 +31949,13 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list202)[0] = "Cacahuetes"; questRoot27.Author = list202; - index = 4; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference149 = ref span203[num]; + num = 4; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span59 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference149 = ref span59[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -38517,9 +31963,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference150 = ref span204[index2]; + ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -38534,30 +31978,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list205 = new List(index3); - CollectionsMarshal.SetCount(list205, index3); - Span span205 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - span205[num3] = 133; + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = 133; obj151.InTerritory = list205; skipConditions4.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions4; reference150 = obj150; obj149.Steps = list204; reference149 = obj149; - num++; - ref QuestSequence reference151 = ref span203[num]; + ref QuestSequence reference151 = ref span59[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -38568,8 +32007,7 @@ public static class AssemblyQuestLoader }; obj152.Steps = list206; reference151 = obj152; - num++; - ref QuestSequence reference152 = ref span203[num]; + ref QuestSequence reference152 = ref span59[2]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -38577,9 +32015,7 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000448u, new Vector3(-287.00696f, -54.431038f, 289.99768f), 154) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1000448u, new Vector3(-287.00696f, -54.431038f, 289.99768f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -38590,18 +32026,15 @@ public static class AssemblyQuestLoader }; obj153.Steps = list207; reference152 = obj153; - num++; - ref QuestSequence reference153 = ref span203[num]; + ref QuestSequence reference153 = ref span59[3]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -38620,16 +32053,13 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - Span span209 = CollectionsMarshal.AsSpan(list209); - index = 0; - span209[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list209)[0] = "Cacahuetes"; questRoot28.Author = list209; - index = 6; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - ref QuestSequence reference154 = ref span210[num]; + num = 6; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span60 = CollectionsMarshal.AsSpan(list210); + ref QuestSequence reference154 = ref span60[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -38637,9 +32067,7 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - ref QuestStep reference155 = ref span211[index2]; + ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list211)[0]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -38657,35 +32085,29 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span212 = CollectionsMarshal.AsSpan(list212); - index3 = 0; - span212[index3] = 133; + CollectionsMarshal.AsSpan(list212)[0] = 133; obj157.InTerritory = list212; skipConditions5.AetheryteShortcutIf = obj157; obj156.SkipConditions = skipConditions5; reference155 = obj156; obj155.Steps = list211; reference154 = obj155; - num++; - ref QuestSequence reference156 = ref span210[num]; + ref QuestSequence reference156 = ref span60[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj158.Steps = list213; reference156 = obj158; - num++; - ref QuestSequence reference157 = ref span210[num]; + ref QuestSequence reference157 = ref span60[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 @@ -38693,30 +32115,24 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1008146u, new Vector3(-183.43082f, 9.869224f, -76.830215f), 153); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1008146u, new Vector3(-183.43082f, 9.869224f, -76.830215f), 153); obj159.Steps = list214; reference157 = obj159; - num++; - ref QuestSequence reference158 = ref span210[num]; + ref QuestSequence reference158 = ref span60[3]; QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj160.Steps = list215; reference158 = obj160; - num++; - ref QuestSequence reference159 = ref span210[num]; + ref QuestSequence reference159 = ref span60[4]; QuestSequence obj161 = new QuestSequence { Sequence = 4 @@ -38724,23 +32140,18 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.Interact, 1008157u, new Vector3(42.404785f, 3.2469568f, 32.88318f), 153); + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1008157u, new Vector3(42.404785f, 3.2469568f, 32.88318f), 153); obj161.Steps = list216; reference159 = obj161; - num++; - ref QuestSequence reference160 = ref span210[num]; + ref QuestSequence reference160 = ref span60[5]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -38759,16 +32170,13 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list218)[0] = "Cacahuetes"; questRoot29.Author = list218; - index = 9; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference161 = ref span219[num]; + num = 9; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span61 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference161 = ref span61[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -38776,9 +32184,7 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - ref QuestStep reference162 = ref span220[index2]; + ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list220)[0]; QuestStep obj164 = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -38793,30 +32199,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list221 = new List(index3); - CollectionsMarshal.SetCount(list221, index3); - Span span221 = CollectionsMarshal.AsSpan(list221); - num3 = 0; - span221[num3] = 133; + num3 = 1; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + CollectionsMarshal.AsSpan(list221)[0] = 133; obj165.InTerritory = list221; skipConditions6.AetheryteShortcutIf = obj165; obj164.SkipConditions = skipConditions6; reference162 = obj164; obj163.Steps = list220; reference161 = obj163; - num++; - ref QuestSequence reference163 = ref span219[num]; + ref QuestSequence reference163 = ref span61[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list222 = new List(index2); - CollectionsMarshal.SetCount(list222, index2); - Span span222 = CollectionsMarshal.AsSpan(list222); - num2 = 0; - ref QuestStep reference164 = ref span222[num2]; + num2 = 1; + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list222)[0]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, 2000899u, new Vector3(43.900146f, 6.5460815f, -1.9379272f), 153) { Fly = true, @@ -38826,15 +32227,12 @@ public static class AssemblyQuestLoader num3 = 1; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span223 = CollectionsMarshal.AsSpan(list223); - index3 = 0; - span223[index3] = 294u; + CollectionsMarshal.AsSpan(list223)[0] = 294u; obj167.KillEnemyDataIds = list223; reference164 = obj167; obj166.Steps = list222; reference163 = obj166; - num++; - ref QuestSequence reference165 = ref span219[num]; + ref QuestSequence reference165 = ref span61[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -38842,43 +32240,35 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1002965u, new Vector3(51.181263f, 6.6893935f, -3.2490644f), 153) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1002965u, new Vector3(51.181263f, 6.6893935f, -3.2490644f), 153) { StopDistance = 7f }; obj168.Steps = list224; reference165 = obj168; - num++; - ref QuestSequence reference166 = ref span219[num]; + ref QuestSequence reference166 = ref span61[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list225 = new List(index2); - CollectionsMarshal.SetCount(list225, index2); - Span span225 = CollectionsMarshal.AsSpan(list225); - num2 = 0; - ref QuestStep reference167 = ref span225[num2]; + num2 = 1; + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list225)[0]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, 2000901u, new Vector3(122.36206f, 17.898804f, -136.85822f), 153) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list226 = new List(index3); - CollectionsMarshal.SetCount(list226, index3); - Span span226 = CollectionsMarshal.AsSpan(list226); - num3 = 0; - span226[num3] = 294u; + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + CollectionsMarshal.AsSpan(list226)[0] = 294u; obj170.KillEnemyDataIds = list226; reference167 = obj170; obj169.Steps = list225; reference166 = obj169; - num++; - ref QuestSequence reference168 = ref span219[num]; + ref QuestSequence reference168 = ref span61[4]; QuestSequence obj171 = new QuestSequence { Sequence = 4 @@ -38886,26 +32276,21 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1002966u, new Vector3(124.193115f, 17.550354f, -129.90009f), 153) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1002966u, new Vector3(124.193115f, 17.550354f, -129.90009f), 153) { StopDistance = 7f }; obj171.Steps = list227; reference168 = obj171; - num++; - ref QuestSequence reference169 = ref span219[num]; + ref QuestSequence reference169 = ref span61[5]; QuestSequence obj172 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref QuestStep reference170 = ref span228[num2]; + num2 = 1; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list228)[0]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, 2000906u, new Vector3(292.04236f, 15.365784f, -107.286194f), 153) { Fly = true, @@ -38914,15 +32299,12 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span229 = CollectionsMarshal.AsSpan(list229); - index3 = 0; - span229[index3] = 294u; + CollectionsMarshal.AsSpan(list229)[0] = 294u; obj173.KillEnemyDataIds = list229; reference170 = obj173; obj172.Steps = list228; reference169 = obj172; - num++; - ref QuestSequence reference171 = ref span219[num]; + ref QuestSequence reference171 = ref span61[6]; QuestSequence obj174 = new QuestSequence { Sequence = 6 @@ -38930,33 +32312,27 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1002967u, new Vector3(293.29358f, 16.181925f, -112.68793f), 153) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1002967u, new Vector3(293.29358f, 16.181925f, -112.68793f), 153) { StopDistance = 7f }; obj174.Steps = list230; reference171 = obj174; - num++; - ref QuestSequence reference172 = ref span219[num]; + ref QuestSequence reference172 = ref span61[7]; QuestSequence obj175 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj175.Steps = list231; reference172 = obj175; - num++; - ref QuestSequence reference173 = ref span219[num]; + ref QuestSequence reference173 = ref span61[8]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -38964,9 +32340,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -38985,30 +32359,24 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "liza"; + CollectionsMarshal.AsSpan(list233)[0] = "liza"; questRoot30.Author = list233; - index = 5; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference174 = ref span234[num]; + num = 5; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span62 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference174 = ref span62[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj177.Steps = list235; reference174 = obj177; - num++; - ref QuestSequence reference175 = ref span234[num]; + ref QuestSequence reference175 = ref span62[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -39016,43 +32384,34 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - ref QuestStep reference176 = ref span236[index2]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep questStep3 = new QuestStep(EInteractionType.SinglePlayerDuty, 2000953u, new Vector3(323.5979f, 0.3508911f, -309.55975f), 148); SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - 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)"; + 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)"; singlePlayerDutyOptions2.Notes = list237; questStep3.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference176 = questStep3; obj178.Steps = list236; reference175 = obj178; - num++; - span234[num] = new QuestSequence + span62[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference177 = ref span234[num]; + ref QuestSequence reference177 = ref span62[3]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj179.Steps = list238; reference177 = obj179; - num++; - ref QuestSequence reference178 = ref span234[num]; + ref QuestSequence reference178 = ref span62[4]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -39060,9 +32419,7 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj180.Steps = list239; reference178 = obj180; questRoot30.QuestSequence = list234; @@ -39072,30 +32429,24 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - Span span240 = CollectionsMarshal.AsSpan(list240); - index = 0; - span240[index] = "liza"; + CollectionsMarshal.AsSpan(list240)[0] = "liza"; questRoot31.Author = list240; - index = 2; - List list241 = new List(index); - CollectionsMarshal.SetCount(list241, index); - Span span241 = CollectionsMarshal.AsSpan(list241); - num = 0; - ref QuestSequence reference179 = ref span241[num]; + num = 2; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + Span span63 = CollectionsMarshal.AsSpan(list241); + ref QuestSequence reference179 = ref span63[0]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj181.Steps = list242; reference179 = obj181; - num++; - ref QuestSequence reference180 = ref span241[num]; + ref QuestSequence reference180 = ref span63[1]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -39103,9 +32454,7 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -39123,30 +32472,24 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "liza"; + CollectionsMarshal.AsSpan(list244)[0] = "liza"; questRoot32.Author = list244; - index = 5; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference181 = ref span245[num]; + num = 5; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span64 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference181 = ref span64[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj183.Steps = list246; reference181 = obj183; - num++; - ref QuestSequence reference182 = ref span245[num]; + ref QuestSequence reference182 = ref span64[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -39154,9 +32497,8 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - ref QuestStep reference183 = ref span247[index2]; + Span span65 = CollectionsMarshal.AsSpan(list247); + ref QuestStep reference183 = ref span65[0]; QuestStep obj185 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { AethernetShortcut = new AethernetShortcut @@ -39168,35 +32510,29 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - Span span248 = CollectionsMarshal.AsSpan(list248); - index3 = 0; - span248[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list248)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST007_00447_Q1_000_1") }; obj185.DialogueChoices = list248; reference183 = obj185; - index2++; - span247[index2] = new QuestStep(EInteractionType.Interact, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + span65[1] = new QuestStep(EInteractionType.Interact, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f, DisableNavmesh = true }; obj184.Steps = list247; reference182 = obj184; - num++; - ref QuestSequence reference184 = ref span245[num]; + ref QuestSequence reference184 = ref span64[2]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list249 = new List(index2); - CollectionsMarshal.SetCount(list249, index2); - Span span249 = CollectionsMarshal.AsSpan(list249); - num2 = 0; - ref QuestStep reference185 = ref span249[num2]; + num2 = 1; + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list249)[0]; QuestStep obj187 = new QuestStep(EInteractionType.SinglePlayerDuty, 1000456u, new Vector3(-303.5172f, 21.902342f, 127.45862f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows @@ -39205,24 +32541,20 @@ public static class AssemblyQuestLoader { Enabled = true }; - 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"; + 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"; obj188.Notes = list250; obj187.SinglePlayerDutyOptions = obj188; reference185 = obj187; obj186.Steps = list249; reference184 = obj186; - num++; - span245[num] = new QuestSequence + span64[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference186 = ref span245[num]; + ref QuestSequence reference186 = ref span64[4]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -39230,9 +32562,8 @@ public static class AssemblyQuestLoader num2 = 2; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - ref QuestStep reference187 = ref span251[index2]; + Span span66 = CollectionsMarshal.AsSpan(list251); + ref QuestStep reference187 = ref span66[0]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -39245,17 +32576,14 @@ public static class AssemblyQuestLoader num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span252 = CollectionsMarshal.AsSpan(list252); - index3 = 0; - span252[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST007_00447_Q1_000_1") }; obj190.DialogueChoices = list252; reference187 = obj190; - index2++; - span251[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { StopDistance = 7f, DisableNavmesh = true @@ -39269,33 +32597,27 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - Span span253 = CollectionsMarshal.AsSpan(list253); - index = 0; - span253[index] = "liza"; + CollectionsMarshal.AsSpan(list253)[0] = "liza"; questRoot33.Author = list253; - index = 4; - List list254 = new List(index); - CollectionsMarshal.SetCount(list254, index); - Span span254 = CollectionsMarshal.AsSpan(list254); - num = 0; - ref QuestSequence reference188 = ref span254[num]; + num = 4; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + Span span67 = CollectionsMarshal.AsSpan(list254); + ref QuestSequence reference188 = ref span67[0]; QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj191.Steps = list255; reference188 = obj191; - num++; - ref QuestSequence reference189 = ref span254[num]; + ref QuestSequence reference189 = ref span67[1]; QuestSequence obj192 = new QuestSequence { Sequence = 1 @@ -39303,14 +32625,12 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) + Span span68 = CollectionsMarshal.AsSpan(list256); + span68[0] = new QuestStep(EInteractionType.Interact, 2001215u, new Vector3(0.002457563f, 1.052062f, 9.820032f), 204) { TargetTerritoryId = (ushort)132 }; - index2++; - span256[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span68[1] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -39320,22 +32640,18 @@ public static class AssemblyQuestLoader }; obj192.Steps = list256; reference189 = obj192; - num++; - ref QuestSequence reference190 = ref span254[num]; + ref QuestSequence reference190 = ref span67[2]; QuestSequence obj193 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj193.Steps = list257; reference190 = obj193; - num++; - ref QuestSequence reference191 = ref span254[num]; + ref QuestSequence reference191 = ref span67[3]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue @@ -39343,9 +32659,7 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj194.Steps = list258; reference191 = obj194; questRoot33.QuestSequence = list254; @@ -39355,30 +32669,24 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - Span span259 = CollectionsMarshal.AsSpan(list259); - index = 0; - span259[index] = "liza"; + CollectionsMarshal.AsSpan(list259)[0] = "liza"; questRoot34.Author = list259; - index = 3; - List list260 = new List(index); - CollectionsMarshal.SetCount(list260, index); - Span span260 = CollectionsMarshal.AsSpan(list260); - num = 0; - ref QuestSequence reference192 = ref span260[num]; + num = 3; + List list260 = new List(num); + CollectionsMarshal.SetCount(list260, num); + Span span69 = CollectionsMarshal.AsSpan(list260); + ref QuestSequence reference192 = ref span69[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj195.Steps = list261; reference192 = obj195; - num++; - ref QuestSequence reference193 = ref span260[num]; + ref QuestSequence reference193 = ref span69[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 @@ -39386,14 +32694,12 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + Span span70 = CollectionsMarshal.AsSpan(list262); + span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 2651u }; - index2++; - span262[index2] = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133) + span70[1] = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133) { AethernetShortcut = new AethernetShortcut { @@ -39403,25 +32709,21 @@ public static class AssemblyQuestLoader }; obj196.Steps = list262; reference193 = obj196; - num++; - ref QuestSequence reference194 = ref span260[num]; + ref QuestSequence reference194 = ref span69[2]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)132 }; - num2++; - span263[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.596844f, -8f, 103.85207f), 132); - num2++; - ref QuestStep reference195 = ref span263[num2]; + span71[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(40.596844f, -8f, 103.85207f), 132); + ref QuestStep reference195 = ref span71[2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AethernetShortcut = new AethernetShortcut @@ -39430,20 +32732,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - index3 = 1; - List list264 = new List(index3); - CollectionsMarshal.SetCount(list264, index3); - Span span264 = CollectionsMarshal.AsSpan(list264); - num3 = 0; - span264[num3] = new DialogueChoice + num3 = 1; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + CollectionsMarshal.AsSpan(list264)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST009_00449_Q2_000_1") }; obj198.DialogueChoices = list264; reference195 = obj198; - num2++; - span263[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span71[3] = new QuestStep(EInteractionType.CompleteQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj197.Steps = list263; reference194 = obj197; questRoot34.QuestSequence = list260; @@ -39457,16 +32756,12 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list)[0] = "Cacahuetes"; questRoot.Author = list; - index = 1; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -39474,9 +32769,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -39496,9 +32789,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN001_00451_Q1_000_000") @@ -39515,26 +32806,22 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - index = 0; - span5[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list5)[0] = "Cacahuetes"; questRoot2.Author = list5; - index = 2; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - ref QuestSequence reference3 = ref span6[num]; + num = 2; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + Span span = CollectionsMarshal.AsSpan(list6); + ref QuestSequence reference3 = ref span[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -39550,12 +32837,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span7[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); obj3.Steps = list7; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span6[num]; + ref QuestSequence reference4 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -39563,16 +32848,12 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref QuestStep reference5 = ref span8[index2]; + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list8)[0]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); - index3 = 1; - List list9 = new List(index3); - CollectionsMarshal.SetCount(list9, index3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - span9[num3] = new DialogueChoice + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN011_00452_Q1_000_000") @@ -39589,26 +32870,22 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "liza"; + CollectionsMarshal.AsSpan(list10)[0] = "liza"; questRoot3.Author = list10; - index = 4; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference6 = ref span11[num]; + num = 4; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span3 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference6 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -39624,12 +32901,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span12[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + span4[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); obj5.Steps = list12; reference6 = obj5; - num++; - ref QuestSequence reference7 = ref span11[num]; + ref QuestSequence reference7 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -39637,16 +32912,12 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - ref QuestStep reference8 = ref span13[index2]; + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list13)[0]; 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); - Span span14 = CollectionsMarshal.AsSpan(list14); - index3 = 0; - span14[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN020_00453_Q1_000_000") @@ -39655,18 +32926,16 @@ public static class AssemblyQuestLoader reference8 = questStep2; obj6.Steps = list13; reference7 = obj6; - num++; - ref QuestSequence reference9 = ref span11[num]; + ref QuestSequence reference9 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference10 = ref span15[num2]; + num2 = 2; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference10 = ref span5[0]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.5568014f, 66.12121f, 102.35001f), 135) { AethernetShortcut = new AethernetShortcut @@ -39676,12 +32945,11 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 2; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - ref ComplexCombatData reference11 = ref span16[num3]; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span6 = CollectionsMarshal.AsSpan(list16); + ref ComplexCombatData reference11 = ref span6[0]; ComplexCombatData obj9 = new ComplexCombatData { DataId = 347u, @@ -39690,78 +32958,56 @@ public static class AssemblyQuestLoader int num4 = 6; List list17 = new List(num4); CollectionsMarshal.SetCount(list17, num4); - 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; + 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; obj9.CompletionQuestVariablesFlags = list17; reference11 = obj9; - num3++; - ref ComplexCombatData reference12 = ref span16[num3]; + ref ComplexCombatData reference12 = ref span6[1]; ComplexCombatData obj10 = new ComplexCombatData { DataId = 49u, MinimumKillCount = 3u }; - 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; + 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; obj10.CompletionQuestVariablesFlags = list18; reference12 = obj10; obj8.ComplexCombatData = list16; num3 = 6; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - 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; + 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; obj8.CompletionQuestVariablesFlags = list19; reference10 = obj8; - num2++; - ref QuestStep reference13 = ref span15[num2]; + ref QuestStep reference13 = ref span5[1]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(157.63565f, 38.01287f, 48.92973f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list20 = new List(index3); - CollectionsMarshal.SetCount(list20, index3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num3 = 0; - ref ComplexCombatData reference14 = ref span20[num3]; + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + ref ComplexCombatData reference14 = ref CollectionsMarshal.AsSpan(list20)[0]; ComplexCombatData obj12 = new ComplexCombatData { DataId = 324u, @@ -39770,44 +33016,31 @@ public static class AssemblyQuestLoader num4 = 6; List list21 = new List(num4); CollectionsMarshal.SetCount(list21, num4); - 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; + 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; obj12.CompletionQuestVariablesFlags = list21; reference14 = obj12; obj11.ComplexCombatData = list20; num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - 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; + 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; obj11.CompletionQuestVariablesFlags = list22; reference13 = obj11; obj7.Steps = list15; reference9 = obj7; - num++; - ref QuestSequence reference15 = ref span11[num]; + ref QuestSequence reference15 = ref span3[3]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -39815,9 +33048,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -39836,26 +33067,21 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot4.Author = list24; - index = 3; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference16 = ref span25[num]; + num = 3; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span12 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference16 = ref span12[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -39873,8 +33099,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list26; reference16 = obj14; - num++; - ref QuestSequence reference17 = ref span25[num]; + ref QuestSequence reference17 = ref span12[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -39882,9 +33107,8 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref QuestStep reference18 = ref span27[index2]; + Span span13 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference18 = ref span13[0]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.5568014f, 66.12121f, 102.35001f), 135) { AethernetShortcut = new AethernetShortcut @@ -39894,37 +33118,29 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 2; - List list28 = new List(index3); - CollectionsMarshal.SetCount(list28, index3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref ComplexCombatData reference19 = ref span28[num3]; + num3 = 2; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + Span span14 = CollectionsMarshal.AsSpan(list28); + ref ComplexCombatData reference19 = ref span14[0]; ComplexCombatData obj17 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 3u }; - 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; + 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; obj17.CompletionQuestVariablesFlags = list29; reference19 = obj17; - num3++; - ref ComplexCombatData reference20 = ref span28[num3]; + ref ComplexCombatData reference20 = ref span14[1]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 49u, @@ -39933,109 +33149,79 @@ public static class AssemblyQuestLoader num4 = 6; List list30 = new List(num4); CollectionsMarshal.SetCount(list30, num4); - 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; + 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; obj18.CompletionQuestVariablesFlags = list30; reference20 = obj18; obj16.ComplexCombatData = list28; num3 = 6; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - 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; + 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; obj16.CompletionQuestVariablesFlags = list31; reference18 = obj16; - index2++; - ref QuestStep reference21 = ref span27[index2]; + ref QuestStep reference21 = ref span13[1]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(157.63565f, 38.01287f, 48.92973f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - ref ComplexCombatData reference22 = ref span32[num3]; + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + ref ComplexCombatData reference22 = ref CollectionsMarshal.AsSpan(list32)[0]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 324u, MinimumKillCount = 3u }; - 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; + 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; obj20.CompletionQuestVariablesFlags = list33; reference22 = obj20; obj19.ComplexCombatData = list32; num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - 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; + 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; obj19.CompletionQuestVariablesFlags = list34; reference21 = obj19; obj15.Steps = list27; reference17 = obj15; - num++; - ref QuestSequence reference23 = ref span25[num]; + ref QuestSequence reference23 = ref span12[2]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40054,16 +33240,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot5.Author = list36; - index = 6; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference24 = ref span37[num]; + num = 6; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span20 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference24 = ref span20[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -40071,9 +33254,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40091,18 +33272,16 @@ public static class AssemblyQuestLoader }; obj22.Steps = list38; reference24 = obj22; - num++; - ref QuestSequence reference25 = ref span37[num]; + ref QuestSequence reference25 = ref span20[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list39 = new List(index2); - CollectionsMarshal.SetCount(list39, index2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref QuestStep reference26 = ref span39[num2]; + num2 = 2; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + Span span21 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference26 = ref span21[0]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(368.87418f, 61.448803f, -69.13581f), 135) { Fly = true, @@ -40113,12 +33292,10 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list40 = new List(index3); - CollectionsMarshal.SetCount(list40, index3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - ref ComplexCombatData reference27 = ref span40[num3]; + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + ref ComplexCombatData reference27 = ref CollectionsMarshal.AsSpan(list40)[0]; ComplexCombatData obj25 = new ComplexCombatData { DataId = 339u, @@ -40127,98 +33304,70 @@ public static class AssemblyQuestLoader num4 = 6; List list41 = new List(num4); CollectionsMarshal.SetCount(list41, num4); - 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; + 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; obj25.CompletionQuestVariablesFlags = list41; reference27 = obj25; obj24.ComplexCombatData = list40; num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - 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; + 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; obj24.CompletionQuestVariablesFlags = list42; reference26 = obj24; - num2++; - ref QuestStep reference28 = ref span39[num2]; + ref QuestStep reference28 = ref span21[1]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(381.1583f, 68.00773f, -114.15414f), 135) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - ref ComplexCombatData reference29 = ref span43[num3]; + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + ref ComplexCombatData reference29 = ref CollectionsMarshal.AsSpan(list43)[0]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 118u, MinimumKillCount = 3u }; - 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; + 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; obj27.CompletionQuestVariablesFlags = list44; reference29 = obj27; obj26.ComplexCombatData = list43; num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - 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; + 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; obj26.CompletionQuestVariablesFlags = list45; reference28 = obj26; obj23.Steps = list39; reference25 = obj23; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span20[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -40226,9 +33375,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40239,18 +33386,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list46; reference30 = obj28; - num++; - ref QuestSequence reference31 = ref span37[num]; + ref QuestSequence reference31 = ref span20[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list47 = new List(index2); - CollectionsMarshal.SetCount(list47, index2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num2 = 0; - ref QuestStep reference32 = ref span47[num2]; + num2 = 1; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list47)[0]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002266u, new Vector3(-0.13739014f, 26.077637f, 196.52087f), 134) { AethernetShortcut = new AethernetShortcut @@ -40260,18 +33404,15 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list48 = new List(index3); - CollectionsMarshal.SetCount(list48, index3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num3 = 0; - span48[num3] = 39u; + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = 39u; obj30.KillEnemyDataIds = list48; reference32 = obj30; obj29.Steps = list47; reference31 = obj29; - num++; - ref QuestSequence reference33 = ref span37[num]; + ref QuestSequence reference33 = ref span20[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -40279,16 +33420,12 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - ref QuestStep reference34 = ref span49[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list49)[0]; 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); - Span span50 = CollectionsMarshal.AsSpan(list50); - index3 = 0; - span50[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN050_00455_Q1_000_000"), @@ -40298,18 +33435,15 @@ public static class AssemblyQuestLoader reference34 = questStep3; obj31.Steps = list49; reference33 = obj31; - num++; - ref QuestSequence reference35 = ref span37[num]; + ref QuestSequence reference35 = ref span20[5]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40328,16 +33462,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot6.Author = list52; - index = 7; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference36 = ref span53[num]; + num = 7; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span26 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference36 = ref span26[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -40345,9 +33476,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40365,83 +33494,63 @@ public static class AssemblyQuestLoader }; obj33.Steps = list54; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span53[num]; + ref QuestSequence reference37 = ref span26[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list55 = new List(index2); - CollectionsMarshal.SetCount(list55, index2); - Span span55 = CollectionsMarshal.AsSpan(list55); - num2 = 0; - ref QuestStep reference38 = ref span55[num2]; + num2 = 2; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + Span span27 = CollectionsMarshal.AsSpan(list55); + ref QuestStep reference38 = ref span27[0]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(667.4784f, 15.36824f, 443.4379f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list56 = new List(index3); - CollectionsMarshal.SetCount(list56, index3); - Span span56 = CollectionsMarshal.AsSpan(list56); - num3 = 0; - span56[num3] = 22u; + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + CollectionsMarshal.AsSpan(list56)[0] = 22u; obj35.KillEnemyDataIds = list56; num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - 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; + 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; obj35.CompletionQuestVariablesFlags = list57; reference38 = obj35; - num2++; - ref QuestStep reference39 = ref span55[num2]; + ref QuestStep reference39 = ref span27[1]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(686.6034f, 23.682272f, 422.78772f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list58 = new List(index3); - CollectionsMarshal.SetCount(list58, index3); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - span58[num3] = 138u; + num3 = 1; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + CollectionsMarshal.AsSpan(list58)[0] = 138u; obj36.KillEnemyDataIds = list58; num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - 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; + 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; obj36.CompletionQuestVariablesFlags = list59; reference39 = obj36; obj34.Steps = list55; reference37 = obj34; - num++; - ref QuestSequence reference40 = ref span53[num]; + ref QuestSequence reference40 = ref span26[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -40449,9 +33558,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40462,22 +33569,18 @@ public static class AssemblyQuestLoader }; obj37.Steps = list60; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span26[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj38.Steps = list61; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span26[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -40485,37 +33588,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1005200u, new Vector3(-106.79791f, 45.688404f, -252.33844f), 134) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj39.Steps = list62; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span26[5]; QuestSequence obj40 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference44 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1005201u, new Vector3(-98.49707f, 47.27536f, -262.31793f), 134) { StopDistance = 5f }; - index3 = 1; - List list64 = new List(index3); - CollectionsMarshal.SetCount(list64, index3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new DialogueChoice + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN100_00456_Q1_000_000"), @@ -40525,8 +33621,7 @@ public static class AssemblyQuestLoader reference44 = obj41; obj40.Steps = list63; reference43 = obj40; - num++; - ref QuestSequence reference45 = ref span53[num]; + ref QuestSequence reference45 = ref span26[6]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -40534,9 +33629,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40555,26 +33648,21 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot7.Author = list66; - index = 7; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference46 = ref span67[num]; + num = 7; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span30 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference46 = ref span30[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40592,8 +33680,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list68; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span67[num]; + ref QuestSequence reference47 = ref span30[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -40601,9 +33688,8 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - ref QuestStep reference48 = ref span69[index2]; + Span span31 = CollectionsMarshal.AsSpan(list69); + ref QuestStep reference48 = ref span31[0]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(667.4784f, 15.36824f, 443.4379f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch, @@ -40612,30 +33698,21 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - index3 = 0; - span70[index3] = 22u; + CollectionsMarshal.AsSpan(list70)[0] = 22u; obj45.KillEnemyDataIds = list70; - 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; + 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; obj45.CompletionQuestVariablesFlags = list71; reference48 = obj45; - index2++; - ref QuestStep reference49 = ref span69[index2]; + ref QuestStep reference49 = ref span31[1]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(686.6034f, 23.682272f, 422.78772f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -40643,42 +33720,31 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span72 = CollectionsMarshal.AsSpan(list72); - index3 = 0; - span72[index3] = 138u; + CollectionsMarshal.AsSpan(list72)[0] = 138u; obj46.KillEnemyDataIds = list72; - 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; + 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; obj46.CompletionQuestVariablesFlags = list73; reference49 = obj46; obj44.Steps = list69; reference47 = obj44; - num++; - ref QuestSequence reference50 = ref span67[num]; + ref QuestSequence reference50 = ref span30[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40689,8 +33755,7 @@ public static class AssemblyQuestLoader }; obj47.Steps = list74; reference50 = obj47; - num++; - ref QuestSequence reference51 = ref span67[num]; + ref QuestSequence reference51 = ref span30[3]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -40698,31 +33763,25 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1005199u, new Vector3(-348.3177f, -2.3744698f, 11.917236f), 129); obj48.Steps = list75; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span30[4]; QuestSequence obj49 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj49.Steps = list76; reference52 = obj49; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span30[5]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -40730,9 +33789,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - ref QuestStep reference54 = ref span77[index2]; + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 1005201u, new Vector3(-98.49707f, 47.27536f, -262.31793f), 134) { StopDistance = 5f @@ -40740,9 +33797,7 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - index3 = 0; - span78[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN101_00457_Q1_000_000"), @@ -40752,18 +33807,15 @@ public static class AssemblyQuestLoader reference54 = obj51; obj50.Steps = list77; reference53 = obj50; - num++; - ref QuestSequence reference55 = ref span67[num]; + ref QuestSequence reference55 = ref span30[6]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40782,16 +33834,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot8.Author = list80; - index = 6; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference56 = ref span81[num]; + num = 6; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span34 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference56 = ref span34[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -40799,9 +33848,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40819,25 +33866,21 @@ public static class AssemblyQuestLoader }; obj53.Steps = list82; reference56 = obj53; - num++; - ref QuestSequence reference57 = ref span81[num]; + ref QuestSequence reference57 = ref span34[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj54.Steps = list83; reference57 = obj54; - num++; - ref QuestSequence reference58 = ref span81[num]; + ref QuestSequence reference58 = ref span34[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -40845,42 +33888,34 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - ref QuestStep reference59 = ref span84[index2]; + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, 1005211u, new Vector3(204.27246f, -36.402367f, 306.17224f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span35 = CollectionsMarshal.AsSpan(list85); + span35[0] = 317u; + span35[1] = 318u; obj56.KillEnemyDataIds = list85; reference59 = obj56; obj55.Steps = list84; reference58 = obj55; - num++; - ref QuestSequence reference60 = ref span81[num]; + ref QuestSequence reference60 = ref span34[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj57.Steps = list86; reference60 = obj57; - num++; - ref QuestSequence reference61 = ref span81[num]; + ref QuestSequence reference61 = ref span34[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -40888,23 +33923,18 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002009u, new Vector3(173.81543f, -41.36731f, 280.7201f), 138); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002009u, new Vector3(173.81543f, -41.36731f, 280.7201f), 138); obj58.Steps = list87; reference61 = obj58; - num++; - ref QuestSequence reference62 = ref span81[num]; + ref QuestSequence reference62 = ref span34[5]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40923,16 +33953,13 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "liza"; + CollectionsMarshal.AsSpan(list89)[0] = "liza"; questRoot9.Author = list89; - index = 8; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference63 = ref span90[num]; + num = 8; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span36 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference63 = ref span36[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -40940,9 +33967,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -40960,18 +33985,15 @@ public static class AssemblyQuestLoader }; obj60.Steps = list91; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span90[num]; + ref QuestSequence reference64 = ref span36[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -40981,8 +34003,7 @@ public static class AssemblyQuestLoader }; obj61.Steps = list92; reference64 = obj61; - num++; - ref QuestSequence reference65 = ref span90[num]; + ref QuestSequence reference65 = ref span36[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -40990,9 +34011,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1000938u, new Vector3(-4.654114f, 44.999847f, -241.84027f), 128) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1000938u, new Vector3(-4.654114f, 44.999847f, -241.84027f), 128) { AethernetShortcut = new AethernetShortcut { @@ -41002,18 +34021,15 @@ public static class AssemblyQuestLoader }; obj62.Steps = list93; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span90[num]; + ref QuestSequence reference66 = ref span36[3]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -41023,8 +34039,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference66 = obj63; - num++; - ref QuestSequence reference67 = ref span90[num]; + ref QuestSequence reference67 = ref span36[4]; QuestSequence obj64 = new QuestSequence { Sequence = 4 @@ -41032,29 +34047,24 @@ public static class AssemblyQuestLoader num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.58797f, -41.12709f, 260.26315f), 138) + Span span37 = CollectionsMarshal.AsSpan(list95); + span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(177.58797f, -41.12709f, 260.26315f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - index2++; - span95[index2] = new QuestStep(EInteractionType.Interact, 1005215u, new Vector3(178.66785f, -41.140213f, 261.61597f), 138); + span37[1] = new QuestStep(EInteractionType.Interact, 1005215u, new Vector3(178.66785f, -41.140213f, 261.61597f), 138); obj64.Steps = list95; reference67 = obj64; - num++; - ref QuestSequence reference68 = ref span90[num]; + ref QuestSequence reference68 = ref span36[5]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -41066,8 +34076,7 @@ public static class AssemblyQuestLoader }; obj65.Steps = list96; reference68 = obj65; - num++; - ref QuestSequence reference69 = ref span90[num]; + ref QuestSequence reference69 = ref span36[6]; QuestSequence obj66 = new QuestSequence { Sequence = 6 @@ -41075,23 +34084,18 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002010u, new Vector3(108.384766f, 68.13147f, 351.61353f), 135); + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002010u, new Vector3(108.384766f, 68.13147f, 351.61353f), 135); obj66.Steps = list97; reference69 = obj66; - num++; - ref QuestSequence reference70 = ref span90[num]; + ref QuestSequence reference70 = ref span36[7]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -41110,16 +34114,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot10.Author = list99; - index = 12; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference71 = ref span100[num]; + num = 12; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span38 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference71 = ref span38[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -41127,9 +34128,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -41147,31 +34146,27 @@ public static class AssemblyQuestLoader }; obj68.Steps = list101; reference71 = obj68; - num++; - ref QuestSequence reference72 = ref span100[num]; + ref QuestSequence reference72 = ref span38[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - num2++; - span102[num2] = new QuestStep(EInteractionType.Interact, 1005227u, new Vector3(-311.32983f, -1.5234554f, 127.336426f), 139) + span39[1] = new QuestStep(EInteractionType.Interact, 1005227u, new Vector3(-311.32983f, -1.5234554f, 127.336426f), 139) { Fly = true }; obj69.Steps = list102; reference72 = obj69; - num++; - ref QuestSequence reference73 = ref span100[num]; + ref QuestSequence reference73 = ref span38[2]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -41179,9 +34174,8 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) + Span span40 = CollectionsMarshal.AsSpan(list103); + span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) { SkipConditions = new SkipConditions { @@ -41191,99 +34185,73 @@ public static class AssemblyQuestLoader } } }; - index2++; - span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) + span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-449.98322f, 3.358525f, 88.437485f), 139) { Fly = true }; - index2++; - span103[index2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); + span40[2] = new QuestStep(EInteractionType.Interact, 1006195u, new Vector3(-453.36084f, 4.574484f, 71.54956f), 139); obj70.Steps = list103; reference73 = obj70; - num++; - ref QuestSequence reference74 = ref span100[num]; + ref QuestSequence reference74 = ref span38[3]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; - num2++; - ref QuestStep reference75 = ref span104[num2]; + ref QuestStep reference75 = ref span41[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list105; reference75 = questStep4; - num2++; - ref QuestStep reference76 = ref span104[num2]; + ref QuestStep reference76 = ref span41[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2001894u, new Vector3(-393.4234f, 42.557373f, -2.975586f), 139); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list106; reference76 = questStep5; - num2++; - ref QuestStep reference77 = ref span104[num2]; + ref QuestStep reference77 = ref span41[3]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list107; skipConditions.StepIf = skipStepConditions; questStep6.SkipConditions = skipConditions; reference77 = questStep6; - num2++; - ref QuestStep reference78 = ref span104[num2]; + ref QuestStep reference78 = ref span41[4]; QuestStep obj72 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-367.3377f, 27.109692f, 40.748257f), 139) { DisableNavmesh = true, @@ -41291,51 +34259,37 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list108; skipConditions2.StepIf = skipStepConditions2; obj72.SkipConditions = skipConditions2; reference78 = obj72; - num2++; - ref QuestStep reference79 = ref span104[num2]; + ref QuestStep reference79 = ref span41[5]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list109; reference79 = questStep7; obj71.Steps = list104; reference74 = obj71; - num++; - ref QuestSequence reference80 = ref span100[num]; + ref QuestSequence reference80 = ref span38[4]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -41343,52 +34297,43 @@ public static class AssemblyQuestLoader num2 = 4; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.99802f, 19.50849f, 60.498474f), 139) + Span span47 = CollectionsMarshal.AsSpan(list110); + span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-419.99802f, 19.50849f, 60.498474f), 139) { Mount = true }; - index2++; - span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.06293f, -1.8700926f, 65.585f), 139) + span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.06293f, -1.8700926f, 65.585f), 139) { DisableNavmesh = true }; - 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); + 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); obj73.Steps = list110; reference80 = obj73; - num++; - ref QuestSequence reference81 = ref span100[num]; + ref QuestSequence reference81 = ref span38[5]; QuestSequence obj74 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Mount = true }; - num2++; - span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-599.5244f, -3.3999999f, -51.651997f), 139) + span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-599.5244f, -3.3999999f, -51.651997f), 139) { Fly = true }; - num2++; - span111[num2] = new QuestStep(EInteractionType.Emote, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) + span48[2] = new QuestStep(EInteractionType.Emote, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139) { Emote = EEmote.Dance }; obj74.Steps = list111; reference81 = obj74; - num++; - ref QuestSequence reference82 = ref span100[num]; + ref QuestSequence reference82 = ref span38[6]; QuestSequence obj75 = new QuestSequence { Sequence = 6 @@ -41396,32 +34341,26 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139); + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 2002478u, new Vector3(-600.61035f, -3.189148f, -53.788086f), 139); obj75.Steps = list112; reference82 = obj75; - num++; - ref QuestSequence reference83 = ref span100[num]; + ref QuestSequence reference83 = ref span38[7]; QuestSequence obj76 = new QuestSequence { Sequence = 7 }; - 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) + 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) { DelaySecondsAtStart = 5f }; obj76.Steps = list113; reference83 = obj76; - num++; - ref QuestSequence reference84 = ref span100[num]; + ref QuestSequence reference84 = ref span38[8]; QuestSequence obj77 = new QuestSequence { Sequence = 8 @@ -41429,9 +34368,8 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) + Span span50 = CollectionsMarshal.AsSpan(list114); + span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-394.91058f, -3.4000032f, 148.78712f), 139) { SkipConditions = new SkipConditions { @@ -41441,26 +34379,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span114[index2] = new QuestStep(EInteractionType.Emote, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139) + span50[1] = new QuestStep(EInteractionType.Emote, 1005249u, new Vector3(-337.30072f, -2.1811728f, 141.31372f), 139) { Fly = true, Emote = EEmote.Dance }; obj77.Steps = list114; reference84 = obj77; - num++; - ref QuestSequence reference85 = ref span100[num]; + ref QuestSequence reference85 = ref span38[9]; QuestSequence obj78 = new QuestSequence { Sequence = 9 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -41469,18 +34404,15 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num2++; - ref QuestStep reference86 = ref span115[num2]; + ref QuestStep reference86 = ref span51[1]; QuestStep obj79 = new QuestStep(EInteractionType.Emote, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128) { Emote = EEmote.Dance }; - index3 = 1; - List list116 = new List(index3); - CollectionsMarshal.SetCount(list116, index3); - Span span116 = CollectionsMarshal.AsSpan(list116); - num3 = 0; - span116[num3] = new DialogueChoice + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN250_00460_Q1_000_000") @@ -41489,8 +34421,7 @@ public static class AssemblyQuestLoader reference86 = obj79; obj78.Steps = list115; reference85 = obj78; - num++; - ref QuestSequence reference87 = ref span100[num]; + ref QuestSequence reference87 = ref span38[10]; QuestSequence obj80 = new QuestSequence { Sequence = 10 @@ -41498,23 +34429,18 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1005228u, new Vector3(-190.3258f, 41.24994f, 176.22644f), 128); obj80.Steps = list117; reference87 = obj80; - num++; - ref QuestSequence reference88 = ref span100[num]; + ref QuestSequence reference88 = ref span38[11]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -41533,16 +34459,13 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "liza"; + CollectionsMarshal.AsSpan(list119)[0] = "liza"; questRoot11.Author = list119; - index = 10; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference89 = ref span120[num]; + num = 10; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span52 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference89 = ref span52[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -41550,9 +34473,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -41570,18 +34491,16 @@ public static class AssemblyQuestLoader }; obj82.Steps = list121; reference89 = obj82; - num++; - ref QuestSequence reference90 = ref span120[num]; + ref QuestSequence reference90 = ref span52[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -41589,31 +34508,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - num2++; - span122[num2] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) + span53[1] = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { StopDistance = 7f, TargetTerritoryId = (ushort)137 }; - num2++; - span122[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + span53[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - num2++; - span122[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.1713f, 9.74752f, 217.08224f), 137) + span53[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.1713f, 9.74752f, 217.08224f), 137) { Fly = true }; - num2++; - span122[num2] = new QuestStep(EInteractionType.Interact, 1005251u, new Vector3(550.46924f, 12.147732f, 220.9353f), 137) + span53[4] = new QuestStep(EInteractionType.Interact, 1005251u, new Vector3(550.46924f, 12.147732f, 220.9353f), 137) { StopDistance = 5f }; obj83.Steps = list122; reference90 = obj83; - num++; - ref QuestSequence reference91 = ref span120[num]; + ref QuestSequence reference91 = ref span52[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -41621,37 +34535,30 @@ public static class AssemblyQuestLoader num2 = 3; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.48083f, 8.70027f, 398.26666f), 137) + Span span54 = CollectionsMarshal.AsSpan(list123); + span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.48083f, 8.70027f, 398.26666f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - 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) + 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) { StopDistance = 5f }; obj84.Steps = list123; reference91 = obj84; - num++; - ref QuestSequence reference92 = ref span120[num]; + ref QuestSequence reference92 = ref span52[3]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj85.Steps = list124; reference92 = obj85; - num++; - ref QuestSequence reference93 = ref span120[num]; + ref QuestSequence reference93 = ref span52[4]; QuestSequence obj86 = new QuestSequence { Sequence = 4 @@ -41659,23 +34566,19 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 1005253u, new Vector3(564.35486f, 20.617891f, 504.32593f), 137); + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1005253u, new Vector3(564.35486f, 20.617891f, 504.32593f), 137); obj86.Steps = list125; reference93 = obj86; - num++; - ref QuestSequence reference94 = ref span120[num]; + ref QuestSequence reference94 = ref span52[5]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -41686,17 +34589,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span126[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.59036f, 15.174555f, 377.2856f), 137) + span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(449.59036f, 15.174555f, 377.2856f), 137) { Fly = true }; - num2++; - span126[num2] = new QuestStep(EInteractionType.Interact, 1005254u, new Vector3(442.00806f, 15.793267f, 370.32104f), 137); + span55[2] = new QuestStep(EInteractionType.Interact, 1005254u, new Vector3(442.00806f, 15.793267f, 370.32104f), 137); obj87.Steps = list126; reference94 = obj87; - num++; - ref QuestSequence reference95 = ref span120[num]; + ref QuestSequence reference95 = ref span52[6]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -41704,9 +34604,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - ref QuestStep reference96 = ref span127[index2]; + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list127)[0]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 1005229u, new Vector3(522.9114f, 17.448051f, 456.35156f), 137) { Fly = true @@ -41714,9 +34612,7 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span128 = CollectionsMarshal.AsSpan(list128); - index3 = 0; - span128[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSACN300_00461_Q1_000_001") @@ -41725,26 +34621,22 @@ public static class AssemblyQuestLoader reference96 = obj89; obj88.Steps = list127; reference95 = obj88; - num++; - ref QuestSequence reference97 = ref span120[num]; + ref QuestSequence reference97 = ref span52[7]; QuestSequence obj90 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj90.Steps = list129; reference97 = obj90; - num++; - ref QuestSequence reference98 = ref span120[num]; + ref QuestSequence reference98 = ref span52[8]; QuestSequence obj91 = new QuestSequence { Sequence = 8 @@ -41752,9 +34644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -41765,18 +34655,15 @@ public static class AssemblyQuestLoader }; obj91.Steps = list130; reference98 = obj91; - num++; - ref QuestSequence reference99 = ref span120[num]; + ref QuestSequence reference99 = ref span52[9]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1091) }; @@ -41789,18 +34676,15 @@ public static class AssemblyQuestLoader num = 2; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; - index++; - span132[index] = "Wigglez"; + Span span56 = CollectionsMarshal.AsSpan(list132); + span56[0] = "liza"; + span56[1] = "Wigglez"; questRoot12.Author = list132; - index = 2; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference100 = ref span133[num]; + num = 2; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span57 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference100 = ref span57[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -41808,9 +34692,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - ref QuestStep reference101 = ref span134[index2]; + ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list134)[0]; QuestStep obj94 = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -41820,35 +34702,30 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list135 = new List(index3); - CollectionsMarshal.SetCount(list135, index3); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = 128; + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + CollectionsMarshal.AsSpan(list135)[0] = 128; obj95.InTerritory = list135; skipConditions3.AetheryteShortcutIf = obj95; obj94.SkipConditions = skipConditions3; reference101 = obj94; obj93.Steps = list134; reference100 = obj93; - num++; - ref QuestSequence reference102 = ref span133[num]; + ref QuestSequence reference102 = ref span57[1]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + span58[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AethernetShortcut = new AethernetShortcut @@ -41857,13 +34734,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaZephyrGate } }; - num2++; - span136[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 134) + span58[2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - num2++; - span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + span58[3] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj96.Steps = list136; reference102 = obj96; questRoot12.QuestSequence = list133; @@ -41873,16 +34748,13 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "liza"; + CollectionsMarshal.AsSpan(list137)[0] = "liza"; questRoot13.Author = list137; - index = 2; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference103 = ref span138[num]; + num = 2; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span59 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference103 = ref span59[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -41890,25 +34762,20 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj97.Steps = list139; reference103 = obj97; - num++; - ref QuestSequence reference104 = ref span138[num]; + ref QuestSequence reference104 = ref span59[1]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; QuestStep obj99 = new QuestStep(EInteractionType.PurchaseItem, 1003257u, new Vector3(201.70898f, 98.422874f, -206.10364f), 134) { ItemId = 2653u, @@ -41924,9 +34791,7 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span141 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span141[index3] = EExtendedClassJob.DoW; + CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.DoW; obj99.RequiredCurrentJob = list141; obj99.PurchaseMenu = new PurchaseMenu { @@ -41934,19 +34799,16 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262292u) }; reference105 = obj99; - num2++; - ref QuestStep reference106 = ref span140[num2]; + ref QuestStep reference106 = ref span60[2]; QuestStep obj100 = new QuestStep(EInteractionType.PurchaseItem, 1003257u, new Vector3(201.70898f, 98.422874f, -206.10364f), 134) { ItemId = 2655u, ItemCount = 1 }; - index3 = 1; - List list142 = new List(index3); - CollectionsMarshal.SetCount(list142, index3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = EExtendedClassJob.DoM; + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = EExtendedClassJob.DoM; obj100.RequiredCurrentJob = list142; obj100.PurchaseMenu = new PurchaseMenu { @@ -41954,8 +34816,7 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262292u) }; reference106 = obj100; - num2++; - span140[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + span60[3] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -41969,8 +34830,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span140[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + span60[4] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -41984,8 +34844,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134) + span60[5] = 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" }; @@ -41998,16 +34857,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot14.Author = list143; - index = 3; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference107 = ref span144[num]; + num = 3; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span61 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference107 = ref span61[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -42015,23 +34871,19 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj101.Steps = list145; reference107 = obj101; - num++; - ref QuestSequence reference108 = ref span144[num]; + ref QuestSequence reference108 = ref span61[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list146 = new List(index2); - CollectionsMarshal.SetCount(list146, index2); - Span span146 = CollectionsMarshal.AsSpan(list146); - num2 = 0; - ref QuestStep reference109 = ref span146[num2]; + num2 = 6; + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + Span span62 = CollectionsMarshal.AsSpan(list146); + ref QuestStep reference109 = ref span62[0]; QuestStep obj103 = new QuestStep(EInteractionType.Jump, null, new Vector3(200.59262f, 109.63514f, -268.2013f), 134) { JumpDestination = new JumpDestination @@ -42045,53 +34897,38 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list147; skipConditions4.StepIf = skipStepConditions3; obj103.SkipConditions = skipConditions4; reference109 = obj103; - num2++; - ref QuestStep reference110 = ref span146[num2]; + ref QuestStep reference110 = ref span62[1]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1002639u, new Vector3(197.16174f, 101.098366f, -273.57898f), 134) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - 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); + 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); obj104.CompletionQuestVariablesFlags = list148; num3 = 1; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span149 = CollectionsMarshal.AsSpan(list149); - index3 = 0; - span149[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q4_000_1"), @@ -42099,32 +34936,23 @@ public static class AssemblyQuestLoader }; obj104.DialogueChoices = list149; reference110 = obj104; - num2++; - ref QuestStep reference111 = ref span146[num2]; + ref QuestStep reference111 = ref span62[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1002638u, new Vector3(169.35986f, 93.96625f, -191.36346f), 134); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list150; num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - index3 = 0; - span151[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q3_000_1"), @@ -42132,32 +34960,23 @@ public static class AssemblyQuestLoader }; questStep8.DialogueChoices = list151; reference111 = questStep8; - num2++; - ref QuestStep reference112 = ref span146[num2]; + ref QuestStep reference112 = ref span62[3]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1002637u, new Vector3(94.46863f, 66.13388f, -257.52655f), 134); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list152; num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - index3 = 0; - span153[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q2_000_1"), @@ -42165,32 +34984,23 @@ public static class AssemblyQuestLoader }; questStep9.DialogueChoices = list153; reference112 = questStep9; - num2++; - ref QuestStep reference113 = ref span146[num2]; + ref QuestStep reference113 = ref span62[4]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1002636u, new Vector3(17.746216f, 60.791252f, -269.91687f), 134); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list154; num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBSEA053_00465_Q1_000_1"), @@ -42198,31 +35008,23 @@ public static class AssemblyQuestLoader }; questStep10.DialogueChoices = list155; reference113 = questStep10; - num2++; - ref QuestStep reference114 = ref span146[num2]; + ref QuestStep reference114 = ref span62[5]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1002635u, new Vector3(33.829224f, 54.646034f, -150.31665f), 134); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list156; reference114 = questStep11; obj102.Steps = list146; reference108 = obj102; - num++; - ref QuestSequence reference115 = ref span144[num]; + ref QuestSequence reference115 = ref span61[2]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -42230,9 +35032,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj105.Steps = list157; reference115 = obj105; questRoot14.QuestSequence = list144; @@ -42242,30 +35042,24 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "liza"; + CollectionsMarshal.AsSpan(list158)[0] = "liza"; questRoot15.Author = list158; - index = 7; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference116 = ref span159[num]; + num = 7; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span69 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference116 = ref span69[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj106.Steps = list160; reference116 = obj106; - num++; - ref QuestSequence reference117 = ref span159[num]; + ref QuestSequence reference117 = ref span69[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -42273,26 +35067,22 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Emote, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Emote, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134) { Emote = EEmote.Doubt }; obj107.Steps = list161; reference117 = obj107; - num++; - ref QuestSequence reference118 = ref span159[num]; + ref QuestSequence reference118 = ref span69[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num2 = 0; - ref QuestStep reference119 = ref span162[num2]; + num2 = 4; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + Span span70 = CollectionsMarshal.AsSpan(list162); + ref QuestStep reference119 = ref span70[0]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, null, new Vector3(189.7694f, 46.25815f, 121.13219f), 134) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -42300,38 +35090,28 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span163 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span163[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list163)[0] = new ComplexCombatData { DataId = 52u, IgnoreQuestMarker = true }; obj109.ComplexCombatData = list163; reference119 = obj109; - num2++; - ref QuestStep reference120 = ref span162[num2]; + ref QuestStep reference120 = ref span70[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1002643u, new Vector3(194.44568f, 46.41682f, 119.21863f), 134); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list164; reference120 = questStep12; - num2++; - ref QuestStep reference121 = ref span162[num2]; + ref QuestStep reference121 = ref span70[2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1002642u, new Vector3(192.52307f, 46.299305f, 122.11792f), 134) { StopDistance = 7f @@ -42339,49 +35119,35 @@ public static class AssemblyQuestLoader num3 = 6; 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)4, 0, EQuestWorkMode.Bitwise); + 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); obj110.CompletionQuestVariablesFlags = list165; reference121 = obj110; - num2++; - ref QuestStep reference122 = ref span162[num2]; + ref QuestStep reference122 = ref span70[3]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1002641u, new Vector3(190.875f, 46.324783f, 118.30322f), 134) { StopDistance = 7f }; - 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); + 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); obj111.CompletionQuestVariablesFlags = list166; reference122 = obj111; obj108.Steps = list162; reference118 = obj108; - num++; - ref QuestSequence reference123 = ref span159[num]; + ref QuestSequence reference123 = ref span69[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -42389,27 +35155,21 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1002640u, new Vector3(131.09021f, 45.70909f, 134.44714f), 134); obj112.Steps = list167; reference123 = obj112; - num++; - ref QuestSequence reference124 = ref span159[num]; + ref QuestSequence reference124 = ref span69[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj113.Steps = list168; reference124 = obj113; - num++; - ref QuestSequence reference125 = ref span159[num]; + ref QuestSequence reference125 = ref span69[5]; QuestSequence obj114 = new QuestSequence { Sequence = 5 @@ -42417,28 +35177,23 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1002630u, new Vector3(179.85803f, 64.61002f, 294.75854f), 134); + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1002630u, new Vector3(179.85803f, 64.61002f, 294.75854f), 134); obj114.Steps = list169; reference125 = obj114; - num++; - ref QuestSequence reference126 = ref span159[num]; + ref QuestSequence reference126 = ref span69[6]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - num2++; - span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj115.Steps = list170; reference126 = obj115; questRoot15.QuestSequence = list159; @@ -42448,16 +35203,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot16.Author = list171; - index = 4; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference127 = ref span172[num]; + num = 4; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span75 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference127 = ref span75[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -42465,23 +35217,19 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002627u, new Vector3(203.32642f, 111.72371f, -213.91626f), 134); + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002627u, new Vector3(203.32642f, 111.72371f, -213.91626f), 134); obj116.Steps = list173; reference127 = obj116; - num++; - ref QuestSequence reference128 = ref span172[num]; + ref QuestSequence reference128 = ref span75[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - 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) + 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) { JumpDestination = new JumpDestination { @@ -42489,12 +35237,10 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - num2++; - span174[num2] = new QuestStep(EInteractionType.Interact, 1002629u, new Vector3(52.750366f, 64.48143f, -185.71759f), 134); + span76[1] = new QuestStep(EInteractionType.Interact, 1002629u, new Vector3(52.750366f, 64.48143f, -185.71759f), 134); obj117.Steps = list174; reference128 = obj117; - num++; - ref QuestSequence reference129 = ref span172[num]; + ref QuestSequence reference129 = ref span75[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -42502,84 +35248,60 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - ref QuestStep reference130 = ref span175[index2]; + Span span77 = CollectionsMarshal.AsSpan(list175); + ref QuestStep reference130 = ref span77[0]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list176; reference130 = questStep13; - index2++; - ref QuestStep reference131 = ref span175[index2]; + ref QuestStep reference131 = ref span77[1]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001238u, new Vector3(-121.78229f, 45.97534f, -210.83392f), 134); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list177; reference131 = questStep14; - index2++; - ref QuestStep reference132 = ref span175[index2]; + ref QuestStep reference132 = ref span77[2]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list178; reference132 = questStep15; obj118.Steps = list175; reference129 = obj118; - num++; - ref QuestSequence reference133 = ref span172[num]; + ref QuestSequence reference133 = ref span75[3]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj119.Steps = list179; reference133 = obj119; questRoot16.QuestSequence = list172; @@ -42589,16 +35311,13 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "liza"; + CollectionsMarshal.AsSpan(list180)[0] = "liza"; questRoot17.Author = list180; - index = 4; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference134 = ref span181[num]; + num = 4; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span81 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference134 = ref span81[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -42606,58 +35325,44 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); obj120.Steps = list182; reference134 = obj120; - num++; - ref QuestSequence reference135 = ref span181[num]; + ref QuestSequence reference135 = ref span81[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list183 = new List(index2); - CollectionsMarshal.SetCount(list183, index2); - Span span183 = CollectionsMarshal.AsSpan(list183); - num2 = 0; - ref QuestStep reference136 = ref span183[num2]; + num2 = 1; + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list183)[0]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, null, new Vector3(-42.099247f, 54.599857f, -262.0961f), 134) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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; + num3 = 2; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + Span span82 = CollectionsMarshal.AsSpan(list184); + span82[0] = 348u; + span82[1] = 349u; obj122.KillEnemyDataIds = list184; num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - 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); + 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); obj122.CompletionQuestVariablesFlags = list185; reference136 = obj122; obj121.Steps = list183; reference135 = obj121; - num++; - ref QuestSequence reference137 = ref span181[num]; + ref QuestSequence reference137 = ref span81[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -42665,28 +35370,23 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1002631u, new Vector3(0.045776367f, 57.85028f, -308.76636f), 134); obj123.Steps = list186; reference137 = obj123; - num++; - ref QuestSequence reference138 = ref span181[num]; + ref QuestSequence reference138 = ref span81[3]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - num2++; - span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj124.Steps = list187; reference138 = obj124; questRoot17.QuestSequence = list181; @@ -42696,16 +35396,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot18.Author = list188; - index = 9; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference139 = ref span189[num]; + num = 9; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span85 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference139 = ref span85[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -42713,27 +35410,21 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj125.Steps = list190; reference139 = obj125; - num++; - ref QuestSequence reference140 = ref span189[num]; + ref QuestSequence reference140 = ref span85[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj126.Steps = list191; reference140 = obj126; - num++; - ref QuestSequence reference141 = ref span189[num]; + ref QuestSequence reference141 = ref span85[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -42741,27 +35432,21 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1002645u, new Vector3(-144.27411f, 20.32f, -336.32416f), 134); + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1002645u, new Vector3(-144.27411f, 20.32f, -336.32416f), 134); obj127.Steps = list192; reference141 = obj127; - num++; - ref QuestSequence reference142 = ref span189[num]; + ref QuestSequence reference142 = ref span85[3]; QuestSequence obj128 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj128.Steps = list193; reference142 = obj128; - num++; - ref QuestSequence reference143 = ref span189[num]; + ref QuestSequence reference143 = ref span85[4]; QuestSequence obj129 = new QuestSequence { Sequence = 4 @@ -42769,9 +35454,7 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002647u, new Vector3(-34.866882f, 10.902258f, -432.15082f), 134) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1002647u, new Vector3(-34.866882f, 10.902258f, -432.15082f), 134) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -42780,32 +35463,27 @@ public static class AssemblyQuestLoader }; obj129.Steps = list194; reference143 = obj129; - num++; - span189[num] = new QuestSequence + span85[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference144 = ref span189[num]; + ref QuestSequence reference144 = ref span85[6]; QuestSequence obj130 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; - num2++; - span195[num2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + span86[1] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj130.Steps = list195; reference144 = obj130; - num++; - ref QuestSequence reference145 = ref span189[num]; + ref QuestSequence reference145 = ref span85[7]; QuestSequence obj131 = new QuestSequence { Sequence = 7 @@ -42813,23 +35491,18 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj131.Steps = list196; reference145 = obj131; - num++; - ref QuestSequence reference146 = ref span189[num]; + ref QuestSequence reference146 = ref span85[8]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -42847,16 +35520,13 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list198)[0] = "FalconTaterz"; questRoot19.Author = list198; - index = 5; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference147 = ref span199[num]; + num = 5; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span87 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference147 = ref span87[0]; QuestSequence obj133 = new QuestSequence { Sequence = 0 @@ -42864,25 +35534,20 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010708u, new Vector3(-70.237305f, 6.9839683f, 1.9073486f), 131); + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010708u, new Vector3(-70.237305f, 6.9839683f, 1.9073486f), 131); obj133.Steps = list200; reference147 = obj133; - num++; - ref QuestSequence reference148 = ref span199[num]; + ref QuestSequence reference148 = ref span87[1]; QuestSequence obj134 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -42892,8 +35557,7 @@ public static class AssemblyQuestLoader }; obj134.Steps = list201; reference148 = obj134; - num++; - ref QuestSequence reference149 = ref span199[num]; + ref QuestSequence reference149 = ref span87[2]; QuestSequence obj135 = new QuestSequence { Sequence = 2 @@ -42901,9 +35565,7 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 1011620u, new Vector3(-118.69995f, 40f, 95.23157f), 131) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1011620u, new Vector3(-118.69995f, 40f, 95.23157f), 131) { AethernetShortcut = new AethernetShortcut { @@ -42913,25 +35575,21 @@ public static class AssemblyQuestLoader }; obj135.Steps = list202; reference149 = obj135; - num++; - ref QuestSequence reference150 = ref span199[num]; + ref QuestSequence reference150 = ref span87[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj136.Steps = list203; reference150 = obj136; - num++; - ref QuestSequence reference151 = ref span199[num]; + ref QuestSequence reference151 = ref span87[4]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -42939,9 +35597,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011677u, new Vector3(363.54602f, 74.743355f, 171.12988f), 140) { AethernetShortcut = new AethernetShortcut { @@ -42959,30 +35615,24 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list205)[0] = "FalconTaterz"; questRoot20.Author = list205; - index = 6; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference152 = ref span206[num]; + num = 6; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span89 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference152 = ref span89[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj138.Steps = list207; reference152 = obj138; - num++; - ref QuestSequence reference153 = ref span206[num]; + ref QuestSequence reference153 = ref span89[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -42990,9 +35640,8 @@ public static class AssemblyQuestLoader num2 = 5; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.53638f, 17.999998f, 66.511505f), 130) + Span span90 = CollectionsMarshal.AsSpan(list208); + span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.53638f, 17.999998f, 66.511505f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -43001,108 +35650,76 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - index2++; - ref QuestStep reference154 = ref span208[index2]; + ref QuestStep reference154 = ref span90[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1011681u, new Vector3(-182.29956f, 18f, 56.90088f), 130); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list209; reference154 = questStep16; - index2++; - ref QuestStep reference155 = ref span208[index2]; + ref QuestStep reference155 = ref span90[2]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list210; reference155 = questStep17; - index2++; - ref QuestStep reference156 = ref span208[index2]; + ref QuestStep reference156 = ref span90[3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1001294u, new Vector3(-214.22144f, 18.5f, 72.129395f), 130); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list211; reference156 = questStep18; - index2++; - ref QuestStep reference157 = ref span208[index2]; + ref QuestStep reference157 = ref span90[4]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list212; reference157 = questStep19; obj139.Steps = list208; reference153 = obj139; - num++; - ref QuestSequence reference158 = ref span206[num]; + ref QuestSequence reference158 = ref span89[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj140.Steps = list213; reference158 = obj140; - num++; - ref QuestSequence reference159 = ref span206[num]; + ref QuestSequence reference159 = ref span89[3]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -43110,33 +35727,27 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1011683u, new Vector3(76.8291f, 45f, -218.28033f), 140) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1011683u, new Vector3(76.8291f, 45f, -218.28033f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj141.Steps = list214; reference159 = obj141; - num++; - ref QuestSequence reference160 = ref span206[num]; + ref QuestSequence reference160 = ref span89[4]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj142.Steps = list215; reference160 = obj142; - num++; - ref QuestSequence reference161 = ref span206[num]; + ref QuestSequence reference161 = ref span89[5]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -43144,9 +35755,7 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011675u, new Vector3(-118.150635f, 40f, 96.29968f), 131) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011675u, new Vector3(-118.150635f, 40f, 96.29968f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -43165,30 +35774,24 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list217)[0] = "FalconTaterz"; questRoot21.Author = list217; - index = 7; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference162 = ref span218[num]; + num = 7; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span95 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference162 = ref span95[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj144.Steps = list219; reference162 = obj144; - num++; - ref QuestSequence reference163 = ref span218[num]; + ref QuestSequence reference163 = ref span95[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -43196,36 +35799,29 @@ public static class AssemblyQuestLoader num2 = 2; 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(44.860275f, 34.02289f, -12.268097f), 131); - index2++; - span220[index2] = new QuestStep(EInteractionType.Interact, 2005164u, new Vector3(43.07617f, 33.98181f, -13.962036f), 131); + 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); obj145.Steps = list220; reference163 = obj145; - num++; - ref QuestSequence reference164 = ref span218[num]; + ref QuestSequence reference164 = ref span95[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span221[num2] = new QuestStep(EInteractionType.Interact, 2005165u, new Vector3(60.16626f, 33.98181f, -21.316895f), 131); + span97[2] = new QuestStep(EInteractionType.Interact, 2005165u, new Vector3(60.16626f, 33.98181f, -21.316895f), 131); obj146.Steps = list221; reference164 = obj146; - num++; - ref QuestSequence reference165 = ref span218[num]; + ref QuestSequence reference165 = ref span95[3]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -43233,41 +35829,33 @@ public static class AssemblyQuestLoader num2 = 3; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span222[index2] = new QuestStep(EInteractionType.Interact, 2005166u, new Vector3(74.96753f, 28.976807f, -29.007446f), 131); + span98[2] = new QuestStep(EInteractionType.Interact, 2005166u, new Vector3(74.96753f, 28.976807f, -29.007446f), 131); obj147.Steps = list222; reference165 = obj147; - num++; - ref QuestSequence reference166 = ref span218[num]; + ref QuestSequence reference166 = ref span95[4]; QuestSequence obj148 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span223[num2] = new QuestStep(EInteractionType.Interact, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131); + span99[2] = new QuestStep(EInteractionType.Interact, 1011697u, new Vector3(39.07837f, 33.999985f, 27.237305f), 131); obj148.Steps = list223; reference166 = obj148; - num++; - ref QuestSequence reference167 = ref span218[num]; + ref QuestSequence reference167 = ref span95[5]; QuestSequence obj149 = new QuestSequence { Sequence = 5 @@ -43275,33 +35863,25 @@ public static class AssemblyQuestLoader num2 = 3; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - ref QuestStep reference168 = ref span224[index2]; + Span span100 = CollectionsMarshal.AsSpan(list224); + ref QuestStep reference168 = ref span100[0]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1011693u, new Vector3(39.444458f, 34f, 29.984009f), 131) { StopDistance = 7f }; - 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); + 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); obj150.CompletionQuestVariablesFlags = list225; reference168 = obj150; - index2++; - ref QuestStep reference169 = ref span224[index2]; + ref QuestStep reference169 = ref span100[1]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1011694u, new Vector3(41.367188f, 33.999992f, 29.43457f), 131) { StopDistance = 7f @@ -43309,59 +35889,43 @@ public static class AssemblyQuestLoader num3 = 6; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - 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); + 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); obj151.CompletionQuestVariablesFlags = list226; reference169 = obj151; - index2++; - ref QuestStep reference170 = ref span224[index2]; + ref QuestStep reference170 = ref span100[2]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1011695u, new Vector3(41.916504f, 33.999992f, 30.044922f), 131) { StopDistance = 7f }; - 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); + 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); obj152.CompletionQuestVariablesFlags = list227; reference170 = obj152; obj149.Steps = list224; reference167 = obj149; - num++; - ref QuestSequence reference171 = ref span218[num]; + ref QuestSequence reference171 = ref span95[6]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(493) }; @@ -43374,16 +35938,13 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list229)[0] = "FalconTaterz"; questRoot22.Author = list229; - index = 5; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference172 = ref span230[num]; + num = 5; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span104 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference172 = ref span104[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -43391,33 +35952,27 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011699u, new Vector3(39.81079f, 34f, 30.22815f), 131) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011699u, new Vector3(39.81079f, 34f, 30.22815f), 131) { StopDistance = 7f }; obj154.Steps = list231; reference172 = obj154; - num++; - ref QuestSequence reference173 = ref span230[num]; + ref QuestSequence reference173 = ref span104[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj155.Steps = list232; reference173 = obj155; - num++; - ref QuestSequence reference174 = ref span230[num]; + ref QuestSequence reference174 = ref span104[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -43425,9 +35980,8 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) + Span span105 = CollectionsMarshal.AsSpan(list233); + span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.68585f, 3.9999998f, -58.555218f), 131) { AethernetShortcut = new AethernetShortcut { @@ -43435,25 +35989,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - index2++; - span233[index2] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) + span105[1] = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { StopDistance = 5f }; obj156.Steps = list233; reference174 = obj156; - num++; - ref QuestSequence reference175 = ref span230[num]; + ref QuestSequence reference175 = ref span104[3]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -43463,8 +36013,7 @@ public static class AssemblyQuestLoader }; obj157.Steps = list234; reference175 = obj157; - num++; - ref QuestSequence reference176 = ref span230[num]; + ref QuestSequence reference176 = ref span104[4]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -43472,13 +36021,10 @@ public static class AssemblyQuestLoader num2 = 3; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - 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) + 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) { NextQuestId = new QuestId(502) }; @@ -43491,28 +36037,23 @@ public static class AssemblyQuestLoader num = 2; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = "JerryWester"; - index++; - span236[index] = "Wigglez"; + Span span107 = CollectionsMarshal.AsSpan(list236); + span107[0] = "JerryWester"; + span107[1] = "Wigglez"; questRoot23.Author = list236; - index = 5; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref QuestSequence reference177 = ref span237[num]; + num = 5; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span108 = CollectionsMarshal.AsSpan(list237); + ref QuestSequence reference177 = ref span108[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -43525,8 +36066,7 @@ public static class AssemblyQuestLoader }; obj159.Steps = list238; reference177 = obj159; - num++; - ref QuestSequence reference178 = ref span237[num]; + ref QuestSequence reference178 = ref span108[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -43534,51 +36074,42 @@ public static class AssemblyQuestLoader num2 = 5; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) + Span span109 = CollectionsMarshal.AsSpan(list239); + span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(579.65247f, 17.487066f, -278.57523f), 156) { Fly = true }; - index2++; - span239[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) + span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - index2++; - span239[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + span109[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { DelaySecondsAtStart = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - span239[index2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + span109[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - index2++; - span239[index2] = new QuestStep(EInteractionType.Interact, 1011638u, new Vector3(664.8203f, -1.1951543f, -106.523315f), 156); + span109[4] = new QuestStep(EInteractionType.Interact, 1011638u, new Vector3(664.8203f, -1.1951543f, -106.523315f), 156); obj160.Steps = list239; reference178 = obj160; - num++; - ref QuestSequence reference179 = ref span237[num]; + ref QuestSequence reference179 = ref span108[2]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj161.Steps = list240; reference179 = obj161; - num++; - ref QuestSequence reference180 = ref span237[num]; + ref QuestSequence reference180 = ref span108[3]; QuestSequence obj162 = new QuestSequence { Sequence = 3 @@ -43586,9 +36117,7 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -43598,24 +36127,21 @@ public static class AssemblyQuestLoader }; obj162.Steps = list241; reference180 = obj162; - num++; - ref QuestSequence reference181 = ref span237[num]; + ref QuestSequence reference181 = ref span108[4]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span110[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(495) }; @@ -43628,18 +36154,15 @@ public static class AssemblyQuestLoader num = 2; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span243 = CollectionsMarshal.AsSpan(list243); - index = 0; - span243[index] = "JerryWester"; - index++; - span243[index] = "Wigglez"; + Span span111 = CollectionsMarshal.AsSpan(list243); + span111[0] = "JerryWester"; + span111[1] = "Wigglez"; questRoot24.Author = list243; - index = 3; - List list244 = new List(index); - CollectionsMarshal.SetCount(list244, index); - Span span244 = CollectionsMarshal.AsSpan(list244); - num = 0; - ref QuestSequence reference182 = ref span244[num]; + num = 3; + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + Span span112 = CollectionsMarshal.AsSpan(list244); + ref QuestSequence reference182 = ref span112[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -43647,9 +36170,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -43662,43 +36183,36 @@ public static class AssemblyQuestLoader }; obj164.Steps = list245; reference182 = obj164; - num++; - ref QuestSequence reference183 = ref span244[num]; + ref QuestSequence reference183 = ref span112[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span246[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) + span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - num2++; - span246[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + span113[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { DelaySecondsAtStart = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num2++; - span246[num2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + span113[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - num2++; - span246[num2] = new QuestStep(EInteractionType.Interact, 1011641u, new Vector3(706.4468f, 15.332714f, -71.27496f), 156); + span113[4] = new QuestStep(EInteractionType.Interact, 1011641u, new Vector3(706.4468f, 15.332714f, -71.27496f), 156); obj165.Steps = list246; reference183 = obj165; - num++; - ref QuestSequence reference184 = ref span244[num]; + ref QuestSequence reference184 = ref span112[2]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -43706,15 +36220,13 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) + Span span114 = CollectionsMarshal.AsSpan(list247); + span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.96164f, -5.3604937f, -466.67636f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span247[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj166.Steps = list247; reference184 = obj166; questRoot24.QuestSequence = list244; @@ -43724,26 +36236,21 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - Span span248 = CollectionsMarshal.AsSpan(list248); - index = 0; - span248[index] = "liza"; + CollectionsMarshal.AsSpan(list248)[0] = "liza"; questRoot25.Author = list248; - index = 6; - List list249 = new List(index); - CollectionsMarshal.SetCount(list249, index); - Span span249 = CollectionsMarshal.AsSpan(list249); - num = 0; - ref QuestSequence reference185 = ref span249[num]; + num = 6; + List list249 = new List(num); + CollectionsMarshal.SetCount(list249, num); + Span span115 = CollectionsMarshal.AsSpan(list249); + ref QuestSequence reference185 = ref span115[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -43756,8 +36263,7 @@ public static class AssemblyQuestLoader }; obj167.Steps = list250; reference185 = obj167; - num++; - ref QuestSequence reference186 = ref span249[num]; + ref QuestSequence reference186 = ref span115[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -43765,33 +36271,27 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj168.Steps = list251; reference186 = obj168; - num++; - ref QuestSequence reference187 = ref span249[num]; + ref QuestSequence reference187 = ref span115[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj169.Steps = list252; reference187 = obj169; - num++; - ref QuestSequence reference188 = ref span249[num]; + ref QuestSequence reference188 = ref span115[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -43799,26 +36299,21 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Emote, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Emote, 1011650u, new Vector3(557.6714f, 20.721313f, 454.24573f), 137) { Emote = EEmote.Soothe }; obj170.Steps = list253; reference188 = obj170; - num++; - ref QuestSequence reference189 = ref span249[num]; + ref QuestSequence reference189 = ref span115[4]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list254 = new List(index2); - CollectionsMarshal.SetCount(list254, index2); - Span span254 = CollectionsMarshal.AsSpan(list254); - num2 = 0; - ref QuestStep reference190 = ref span254[num2]; + num2 = 1; + List list254 = new List(num2); + CollectionsMarshal.SetCount(list254, num2); + ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list254)[0]; QuestStep obj172 = new QuestStep(EInteractionType.Interact, 1011651u, new Vector3(8.804443f, 71.18964f, -15.182739f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport @@ -43826,9 +36321,7 @@ public static class AssemblyQuestLoader num3 = 1; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - Span span255 = CollectionsMarshal.AsSpan(list255); - index3 = 0; - span255[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list255)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST026_00496_Q1_000_000"), @@ -43838,8 +36331,7 @@ public static class AssemblyQuestLoader reference190 = obj172; obj171.Steps = list254; reference189 = obj171; - num++; - ref QuestSequence reference191 = ref span249[num]; + ref QuestSequence reference191 = ref span115[5]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -43847,9 +36339,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011652u, new Vector3(532.9823f, 44.02837f, 540.3982f), 137) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011652u, new Vector3(532.9823f, 44.02837f, 540.3982f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -43868,16 +36358,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list)[0] = "FalconTaterz"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -43885,31 +36372,25 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011707u, new Vector3(42.893066f, 33.99998f, 29.343018f), 131); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -43917,9 +36398,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Say, 2005188u, new Vector3(-314.07648f, -1.083435f, 43.9917f), 141) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Say, 2005188u, new Vector3(-314.07648f, -1.083435f, 43.9917f), 141) { ChatMessage = new ChatMessage { @@ -43928,28 +36407,24 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 1011722u, new Vector3(159.68555f, 37.432796f, 177.69128f), 153); + span2[1] = new QuestStep(EInteractionType.Interact, 1011722u, new Vector3(159.68555f, 37.432796f, 177.69128f), 153); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -43957,9 +36432,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -43968,18 +36441,15 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2226) }; @@ -43992,16 +36462,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; 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]; + num = 3; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -44009,23 +36476,19 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span3[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num2 = 0; - ref QuestStep reference9 = ref span12[num2]; + num2 = 3; + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + Span span4 = CollectionsMarshal.AsSpan(list12); + ref QuestStep reference9 = ref span4[0]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 2001368u, new Vector3(297.56616f, 62.546753f, -194.04901f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -44033,30 +36496,21 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - int index3 = 0; - span13[index3] = 187u; + CollectionsMarshal.AsSpan(list13)[0] = 187u; obj9.KillEnemyDataIds = list13; - 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); + 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); obj9.CompletionQuestVariablesFlags = list14; reference9 = obj9; - num2++; - ref QuestStep reference10 = ref span12[num2]; + ref QuestStep reference10 = ref span4[1]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 2001735u, new Vector3(318.31836f, 63.523315f, -200.9461f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -44064,30 +36518,21 @@ public static class AssemblyQuestLoader num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - Span span15 = CollectionsMarshal.AsSpan(list15); - index3 = 0; - span15[index3] = 187u; + CollectionsMarshal.AsSpan(list15)[0] = 187u; obj10.KillEnemyDataIds = list15; - 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); + 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); obj10.CompletionQuestVariablesFlags = list16; reference10 = obj10; - num2++; - ref QuestStep reference11 = ref span12[num2]; + ref QuestStep reference11 = ref span4[2]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 2001369u, new Vector3(293.01892f, 63.46228f, -236.16394f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -44095,32 +36540,23 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span17 = CollectionsMarshal.AsSpan(list17); - index3 = 0; - span17[index3] = 187u; + CollectionsMarshal.AsSpan(list17)[0] = 187u; obj11.KillEnemyDataIds = list17; - 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); + 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); obj11.CompletionQuestVariablesFlags = list18; reference11 = obj11; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference12 = ref span10[num]; + ref QuestSequence reference12 = ref span3[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -44128,9 +36564,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002061u, new Vector3(240.98572f, 58.357986f, -160.99799f), 140); obj12.Steps = list19; reference12 = obj12; questRoot2.QuestSequence = list10; @@ -44140,28 +36574,22 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; questRoot3.IsSeasonalQuest = true; questRoot3.SeasonalQuestExpiry = new DateTime(2025, 8, 5, 0, 0, 0, DateTimeKind.Utc); - index = 1; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference13 = ref span21[num]; + num = 1; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + ref QuestSequence reference13 = ref CollectionsMarshal.AsSpan(list21)[0]; QuestSequence obj13 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list22)[0]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1052475u, new Vector3(-22.354492f, 10.13581f, -241.41296f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -44179,9 +36607,7 @@ public static class AssemblyQuestLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span23 = CollectionsMarshal.AsSpan(list23); - index3 = 0; - span23[index3] = 133; + CollectionsMarshal.AsSpan(list23)[0] = 133; obj15.InTerritory = list23; skipConditions.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions; @@ -44195,16 +36621,13 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot4.Author = list24; - index = 10; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference15 = ref span25[num]; + num = 10; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span8 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference15 = ref span8[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -44212,28 +36635,23 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj16.Steps = list26; reference15 = obj16; - num++; - ref QuestSequence reference16 = ref span25[num]; + ref QuestSequence reference16 = ref span8[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)133 }; - num2++; - span27[num2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + span9[1] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AethernetShortcut = new AethernetShortcut { @@ -44243,8 +36661,7 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference16 = obj17; - num++; - ref QuestSequence reference17 = ref span25[num]; + ref QuestSequence reference17 = ref span8[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -44252,16 +36669,12 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - ref QuestStep reference18 = ref span28[index2]; + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list28)[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132); - index3 = 1; - List list29 = new List(index3); - CollectionsMarshal.SetCount(list29, index3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = new DialogueChoice + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q1_000_1") @@ -44270,25 +36683,20 @@ public static class AssemblyQuestLoader reference18 = questStep; obj18.Steps = list28; reference17 = obj18; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span8[3]; QuestSequence obj19 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num2 = 0; - ref QuestStep reference20 = ref span30[num2]; + num2 = 1; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list30)[0]; 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); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q2_000_1") @@ -44297,8 +36705,7 @@ public static class AssemblyQuestLoader reference20 = questStep2; obj19.Steps = list30; reference19 = obj19; - num++; - ref QuestSequence reference21 = ref span25[num]; + ref QuestSequence reference21 = ref span8[4]; QuestSequence obj20 = new QuestSequence { Sequence = 4 @@ -44306,41 +36713,35 @@ public static class AssemblyQuestLoader num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference22 = ref span32[index2]; + Span span10 = CollectionsMarshal.AsSpan(list32); + ref QuestStep reference22 = ref span10[0]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1002703u, new Vector3(-12.375122f, 91.499985f, -0.5340576f), 128) { Comment = "Limsa Arrivals Attendant" }; - index3 = 1; - List list33 = new List(index3); - CollectionsMarshal.SetCount(list33, index3); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = new DialogueChoice + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q5_000_1") }; obj21.DialogueChoices = list33; reference22 = obj21; - index2++; - span32[index2] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); + span10[1] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); obj20.Steps = list32; reference21 = obj20; - num++; - ref QuestSequence reference23 = ref span25[num]; + ref QuestSequence reference23 = ref span8[5]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference24 = ref span34[num2]; + num2 = 2; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span11 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference24 = ref span11[0]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { TargetTerritoryId = (ushort)129 @@ -44348,9 +36749,7 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span35 = CollectionsMarshal.AsSpan(list35); - index3 = 0; - span35[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list35)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -44358,12 +36757,10 @@ public static class AssemblyQuestLoader }; obj23.DialogueChoices = list35; reference24 = obj23; - num2++; - span34[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + span11[1] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj22.Steps = list34; reference23 = obj22; - num++; - ref QuestSequence reference25 = ref span25[num]; + ref QuestSequence reference25 = ref span8[6]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -44371,29 +36768,24 @@ public static class AssemblyQuestLoader num2 = 10; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span12 = CollectionsMarshal.AsSpan(list36); + span12[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - index2++; - span36[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + span12[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - index2++; - span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span12[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - index2++; - span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span12[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - index2++; - span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span12[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -44402,8 +36794,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - index2++; - span36[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + span12[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -44413,23 +36804,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - index2++; - span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span12[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - index2++; - span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span12[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - index2++; - span36[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span12[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - index2++; - ref QuestStep reference26 = ref span36[index2]; + ref QuestStep reference26 = ref span12[9]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { AethernetShortcut = new AethernetShortcut @@ -44438,12 +36825,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - index3 = 1; - List list37 = new List(index3); - CollectionsMarshal.SetCount(list37, index3); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = new DialogueChoice + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q6_000_1") @@ -44452,25 +36837,20 @@ public static class AssemblyQuestLoader reference26 = obj25; obj24.Steps = list36; reference25 = obj24; - num++; - ref QuestSequence reference27 = ref span25[num]; + ref QuestSequence reference27 = ref span8[7]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list38 = new List(index2); - CollectionsMarshal.SetCount(list38, index2); - Span span38 = CollectionsMarshal.AsSpan(list38); - num2 = 0; - ref QuestStep reference28 = ref span38[num2]; + num2 = 1; + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list38)[0]; 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); - Span span39 = CollectionsMarshal.AsSpan(list39); - index3 = 0; - span39[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list39)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q4_000_1") @@ -44479,8 +36859,7 @@ public static class AssemblyQuestLoader reference28 = questStep3; obj26.Steps = list38; reference27 = obj26; - num++; - ref QuestSequence reference29 = ref span25[num]; + ref QuestSequence reference29 = ref span8[8]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -44488,41 +36867,35 @@ public static class AssemblyQuestLoader num2 = 2; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref QuestStep reference30 = ref span40[index2]; + Span span13 = CollectionsMarshal.AsSpan(list40); + ref QuestStep reference30 = ref span13[0]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1004434u, new Vector3(-27.17633f, 83.19998f, 2.304016f), 130) { Comment = "Ul'dah Arrivals Attendant" }; - index3 = 1; - List list41 = new List(index3); - CollectionsMarshal.SetCount(list41, index3); - Span span41 = CollectionsMarshal.AsSpan(list41); - num3 = 0; - span41[num3] = new DialogueChoice + num3 = 1; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST200_00507_Q7_000_1") }; obj28.DialogueChoices = list41; reference30 = obj28; - index2++; - span40[index2] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); + span13[1] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); obj27.Steps = list40; reference29 = obj27; - num++; - ref QuestSequence reference31 = ref span25[num]; + ref QuestSequence reference31 = ref span8[9]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num2 = 0; - ref QuestStep reference32 = ref span42[num2]; + num2 = 3; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + Span span14 = CollectionsMarshal.AsSpan(list42); + ref QuestStep reference32 = ref span14[0]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 @@ -44530,9 +36903,7 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span43 = CollectionsMarshal.AsSpan(list43); - index3 = 0; - span43[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -44540,13 +36911,11 @@ public static class AssemblyQuestLoader }; obj30.DialogueChoices = list43; reference32 = obj30; - num2++; - span42[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span14[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - num2++; - span42[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + span14[2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj29.Steps = list42; reference31 = obj29; questRoot4.QuestSequence = list25; @@ -44556,16 +36925,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot5.Author = list44; - index = 3; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference33 = ref span45[num]; + num = 3; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span15 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference33 = ref span15[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -44573,39 +36939,31 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj31.Steps = list46; reference33 = obj31; - num++; - ref QuestSequence reference34 = ref span45[num]; + ref QuestSequence reference34 = ref span15[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span47[num2] = new QuestStep(EInteractionType.Interact, 1004603u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + span16[3] = new QuestStep(EInteractionType.Interact, 1004603u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj32.Steps = list47; reference34 = obj32; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span15[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -44613,16 +36971,13 @@ public static class AssemblyQuestLoader num2 = 3; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - 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) + 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) { TargetTerritoryId = (ushort)212 }; - index2++; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj33.Steps = list48; reference35 = obj33; questRoot5.QuestSequence = list45; @@ -44632,36 +36987,29 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot6.Author = list49; - index = 3; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference36 = ref span50[num]; + num = 3; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span18 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference36 = ref span18[0]; QuestSequence obj34 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1003783u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212) { StopDistance = 5f }; - index3 = 1; - List list52 = new List(index3); - CollectionsMarshal.SetCount(list52, index3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = new DialogueChoice + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST207_00510_Q1_000_1"), @@ -44671,8 +37019,7 @@ public static class AssemblyQuestLoader reference37 = obj35; obj34.Steps = list51; reference36 = obj34; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span18[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -44680,23 +37027,19 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1005119u, new Vector3(33.37146f, 1.1999971f, 6.454529f), 212); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1005119u, new Vector3(33.37146f, 1.1999971f, 6.454529f), 212); obj36.Steps = list53; reference38 = obj36; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span18[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -44705,37 +37048,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - 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) + 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) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num2++; - span54[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1001607u, new Vector3(-2.7314453f, -2.055717f, -158.52606f), 141) + span19[3] = new QuestStep(EInteractionType.UnlockTaxiStand, 1001607u, new Vector3(-2.7314453f, -2.055717f, -158.52606f), 141) { TaxiStandId = (byte)14 }; - num2++; - span54[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.0109f, -17.999832f, -183.1808f), 141) + span19[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.0109f, -17.999832f, -183.1808f), 141) { TargetTerritoryId = (ushort)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) + 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) { TaxiStandId = (byte)15 }; - num2++; - span54[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 145) + span19[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 145) { Aetheryte = EAetheryteLocation.EasternThanalanCampDrybone }; - num2++; - span54[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + span19[8] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj37.Steps = list54; reference39 = obj37; questRoot6.QuestSequence = list50; @@ -44745,16 +37080,13 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot7.Author = list55; - index = 4; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference40 = ref span56[num]; + num = 4; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span20 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference40 = ref span20[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -44762,37 +37094,30 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj38.Steps = list57; reference40 = obj38; - num++; - ref QuestSequence reference41 = ref span56[num]; + ref QuestSequence reference41 = ref span20[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span58[num2] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) + span21[1] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 }; - num2++; - span58[num2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + span21[2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj39.Steps = list58; reference41 = obj39; - num++; - ref QuestSequence reference42 = ref span56[num]; + ref QuestSequence reference42 = ref span20[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -44800,9 +37125,8 @@ public static class AssemblyQuestLoader num2 = 3; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - ref QuestStep reference43 = ref span59[index2]; + Span span22 = CollectionsMarshal.AsSpan(list59); + ref QuestStep reference43 = ref span22[0]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2001691u, new Vector3(-5.294922f, 29.984009f, 20.675903f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -44815,58 +37139,42 @@ public static class AssemblyQuestLoader num3 = 6; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - 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; + 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; obj41.CompletionQuestVariablesFlags = list60; reference43 = obj41; - index2++; - ref QuestStep reference44 = ref span59[index2]; + ref QuestStep reference44 = ref span22[1]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - 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; + 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; obj42.CompletionQuestVariablesFlags = list61; num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span62 = CollectionsMarshal.AsSpan(list62); - index3 = 0; - span62[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST300_00511_Q1_000_1") }; obj42.DialogueChoices = list62; reference44 = obj42; - index2++; - ref QuestStep reference45 = ref span59[index2]; + ref QuestStep reference45 = ref span22[2]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2001690u, new Vector3(-49.759705f, 7.003784f, -114.82416f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -44876,56 +37184,44 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - 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; + 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; obj43.CompletionQuestVariablesFlags = list63; reference45 = obj43; obj40.Steps = list59; reference42 = obj40; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span20[3]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span64[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span26[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005122u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span26[4] = new QuestStep(EInteractionType.CompleteQuest, 1005122u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj44.Steps = list64; reference46 = obj44; questRoot7.QuestSequence = list56; @@ -44935,16 +37231,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot8.Author = list65; - index = 2; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference47 = ref span66[num]; + num = 2; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span27 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference47 = ref span27[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -44952,23 +37245,18 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005128u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005128u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj45.Steps = list67; reference47 = obj45; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span27[1]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -44981,16 +37269,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; questRoot9.Author = list69; - index = 5; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference49 = ref span70[num]; + num = 5; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span28 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference49 = ref span28[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -44998,9 +37283,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -45013,22 +37296,18 @@ public static class AssemblyQuestLoader }; obj47.Steps = list71; reference49 = obj47; - num++; - ref QuestSequence reference50 = ref span70[num]; + ref QuestSequence reference50 = ref span28[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj48.Steps = list72; reference50 = obj48; - num++; - ref QuestSequence reference51 = ref span70[num]; + ref QuestSequence reference51 = ref span28[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -45036,9 +37315,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Duty, null, null, 153) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 153) { DutyOptions = new DutyOptions { @@ -45048,23 +37325,19 @@ public static class AssemblyQuestLoader }; obj49.Steps = list73; reference51 = obj49; - num++; - span70[num] = new QuestSequence + span28[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference52 = ref span70[num]; + ref QuestSequence reference52 = ref span28[4]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj50.Steps = list74; reference52 = obj50; questRoot9.QuestSequence = list70; @@ -45074,16 +37347,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; questRoot10.Author = list75; - index = 3; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference53 = ref span76[num]; + num = 3; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span29 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference53 = ref span29[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -45091,23 +37361,18 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj51.Steps = list77; reference53 = obj51; - num++; - ref QuestSequence reference54 = ref span76[num]; + ref QuestSequence reference54 = ref span29[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -45118,8 +37383,7 @@ public static class AssemblyQuestLoader }; obj52.Steps = list78; reference54 = obj52; - num++; - ref QuestSequence reference55 = ref span76[num]; + ref QuestSequence reference55 = ref span29[2]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -45127,9 +37391,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135) { AethernetShortcut = new AethernetShortcut { @@ -45146,26 +37408,21 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list80)[0] = "JerryWester"; questRoot11.Author = list80; - index = 5; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference56 = ref span81[num]; + num = 5; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span30 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference56 = ref span30[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -45178,8 +37435,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list82; reference56 = obj54; - num++; - ref QuestSequence reference57 = ref span81[num]; + ref QuestSequence reference57 = ref span30[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -45187,9 +37443,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -45200,33 +37454,28 @@ public static class AssemblyQuestLoader }; obj55.Steps = list83; reference57 = obj55; - num++; - ref QuestSequence reference58 = ref span81[num]; + ref QuestSequence reference58 = ref span30[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; obj56.Steps = list84; reference58 = obj56; - num++; - ref QuestSequence reference59 = ref span81[num]; + ref QuestSequence reference59 = ref span30[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -45234,28 +37483,23 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + Span span32 = CollectionsMarshal.AsSpan(list85); + span32[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - index2++; - span85[index2] = new QuestStep(EInteractionType.Interact, 1007467u, new Vector3(36.057007f, 0.32037354f, -1.5411987f), 212); + span32[1] = new QuestStep(EInteractionType.Interact, 1007467u, new Vector3(36.057007f, 0.32037354f, -1.5411987f), 212); obj57.Steps = list85; reference59 = obj57; - num++; - ref QuestSequence reference60 = ref span81[num]; + ref QuestSequence reference60 = ref span30[4]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list86 = new List(index2); - CollectionsMarshal.SetCount(list86, index2); - Span span86 = CollectionsMarshal.AsSpan(list86); - num2 = 0; - ref QuestStep reference61 = ref span86[num2]; + num2 = 1; + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list86)[0]; QuestStep obj59 = new QuestStep(EInteractionType.CompleteQuest, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -45263,9 +37507,7 @@ public static class AssemblyQuestLoader num3 = 1; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span87 = CollectionsMarshal.AsSpan(list87); - index3 = 0; - span87[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST313_00517_Q1_000_050"), @@ -45282,16 +37524,13 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; questRoot12.Author = list88; - index = 4; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference62 = ref span89[num]; + num = 4; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span33 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference62 = ref span33[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -45299,9 +37538,7 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -45314,34 +37551,28 @@ public static class AssemblyQuestLoader }; obj60.Steps = list90; reference62 = obj60; - num++; - ref QuestSequence reference63 = ref span89[num]; + ref QuestSequence reference63 = ref span33[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference64 = ref span91[num2]; + num2 = 1; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list91)[0]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, 2002105u, new Vector3(-444.419f, -27.237366f, 15.945618f), 145) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list92 = new List(index3); - CollectionsMarshal.SetCount(list92, index3); - Span span92 = CollectionsMarshal.AsSpan(list92); - num3 = 0; - span92[num3] = 1902u; + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = 1902u; obj62.KillEnemyDataIds = list92; reference64 = obj62; obj61.Steps = list91; reference63 = obj61; - num++; - ref QuestSequence reference65 = ref span89[num]; + ref QuestSequence reference65 = ref span33[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -45349,23 +37580,18 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1006672u, new Vector3(-509.36142f, -16.42f, -7.522766f), 145); obj63.Steps = list93; reference65 = obj63; - num++; - ref QuestSequence reference66 = ref span89[num]; + ref QuestSequence reference66 = ref span33[3]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj64.Steps = list94; reference66 = obj64; questRoot12.QuestSequence = list89; @@ -45375,18 +37601,15 @@ public static class AssemblyQuestLoader num = 2; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "JerryWester"; - index++; - span95[index] = "Wigglez"; + Span span34 = CollectionsMarshal.AsSpan(list95); + span34[0] = "JerryWester"; + span34[1] = "Wigglez"; questRoot13.Author = list95; - index = 5; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference67 = ref span96[num]; + num = 5; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span35 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference67 = ref span35[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -45394,23 +37617,19 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); obj65.Steps = list97; reference67 = obj65; - num++; - ref QuestSequence reference68 = ref span96[num]; + ref QuestSequence reference68 = ref span35[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list98 = new List(index2); - CollectionsMarshal.SetCount(list98, index2); - Span span98 = CollectionsMarshal.AsSpan(list98); - num2 = 0; - ref QuestStep reference69 = ref span98[num2]; + num2 = 4; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + Span span36 = CollectionsMarshal.AsSpan(list98); + ref QuestStep reference69 = ref span36[0]; QuestStep obj67 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.821457f, -19.000002f, 103.27891f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -45420,80 +37639,64 @@ public static class AssemblyQuestLoader num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span99 = CollectionsMarshal.AsSpan(list99); - index3 = 0; - span99[index3] = 331; + CollectionsMarshal.AsSpan(list99)[0] = 331; skipStepConditions.InTerritory = list99; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list100 = new List(index3); - CollectionsMarshal.SetCount(list100, index3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = 331; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + CollectionsMarshal.AsSpan(list100)[0] = 331; skipAetheryteCondition.InTerritory = list100; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj67.SkipConditions = skipConditions2; reference69 = obj67; - num2++; - ref QuestStep reference70 = ref span98[num2]; + ref QuestStep reference70 = ref span36[1]; 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); - Span span101 = CollectionsMarshal.AsSpan(list101); - index3 = 0; - span101[index3] = 331; + CollectionsMarshal.AsSpan(list101)[0] = 331; skipStepConditions2.InTerritory = list101; skipConditions3.StepIf = skipStepConditions2; questStep4.SkipConditions = skipConditions3; - index3 = 1; - List list102 = new List(index3); - CollectionsMarshal.SetCount(list102, index3); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - span102[num3] = new DialogueChoice + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST404_00519_Q3_000_032") }; questStep4.DialogueChoices = list102; reference70 = questStep4; - num2++; - ref QuestStep reference71 = ref span98[num2]; + ref QuestStep reference71 = ref span36[2]; 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); - Span span103 = CollectionsMarshal.AsSpan(list103); - index3 = 0; - span103[index3] = 331; + CollectionsMarshal.AsSpan(list103)[0] = 331; skipStepConditions3.InTerritory = list103; skipConditions4.StepIf = skipStepConditions3; questStep5.SkipConditions = skipConditions4; - index3 = 1; - List list104 = new List(index3); - CollectionsMarshal.SetCount(list104, index3); - Span span104 = CollectionsMarshal.AsSpan(list104); - num3 = 0; - span104[num3] = new DialogueChoice + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST404_00519_Q2_000_031") }; questStep5.DialogueChoices = list104; reference71 = questStep5; - num2++; - span98[num2] = new QuestStep(EInteractionType.Interact, 1007690u, new Vector3(-84.58081f, -0.6225241f, -35.568848f), 331); + span36[3] = new QuestStep(EInteractionType.Interact, 1007690u, new Vector3(-84.58081f, -0.6225241f, -35.568848f), 331); obj66.Steps = list98; reference68 = obj66; - num++; - ref QuestSequence reference72 = ref span96[num]; + ref QuestSequence reference72 = ref span35[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -45501,9 +37704,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Duty, null, null, 331) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Duty, null, null, 331) { DutyOptions = new DutyOptions { @@ -45513,23 +37714,19 @@ public static class AssemblyQuestLoader }; obj68.Steps = list105; reference72 = obj68; - num++; - span96[num] = new QuestSequence + span35[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference73 = ref span96[num]; + ref QuestSequence reference73 = ref span35[4]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -45542,16 +37739,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; questRoot14.Author = list107; - index = 2; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference74 = ref span108[num]; + num = 2; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span37 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference74 = ref span37[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -45559,39 +37753,32 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006730u, new Vector3(-44.63269f, 84f, -3.768982f), 130) { StopDistance = 7f }; obj70.Steps = list109; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span108[num]; + ref QuestSequence reference75 = ref span37[1]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007630u, new Vector3(22.812195f, 0.9999986f, 2.1820068f), 212); + span38[3] = new QuestStep(EInteractionType.CompleteQuest, 1007630u, new Vector3(22.812195f, 0.9999986f, 2.1820068f), 212); obj71.Steps = list110; reference75 = obj71; questRoot14.QuestSequence = list108; @@ -45601,16 +37788,13 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list111)[0] = "JerryWester"; questRoot15.Author = list111; - index = 8; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference76 = ref span112[num]; + num = 8; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span39 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference76 = ref span39[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -45618,44 +37802,36 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj72.Steps = list113; reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span112[num]; + ref QuestSequence reference77 = ref span39[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Comment = "Can be re-bought from Glaumunt in Mor Dhona", ItemId = 6223u }; - num2++; - span114[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 156) + span40[1] = new QuestStep(EInteractionType.EquipItem, null, null, 156) { Comment = "Can be re-bought from Glaumunt in Mor Dhona", ItemId = 6224u }; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 2002502u, new Vector3(0.7476196f, -156.93909f, 16.281311f), 156) + span40[2] = new QuestStep(EInteractionType.Interact, 2002502u, new Vector3(0.7476196f, -156.93909f, 16.281311f), 156) { TargetTerritoryId = (ushort)156 }; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 1007537u, new Vector3(-358.23608f, -16.248493f, -481.13226f), 156); + span40[3] = new QuestStep(EInteractionType.Interact, 1007537u, new Vector3(-358.23608f, -16.248493f, -481.13226f), 156); obj73.Steps = list114; reference77 = obj73; - num++; - ref QuestSequence reference78 = ref span112[num]; + ref QuestSequence reference78 = ref span39[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -45663,46 +37839,39 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Emote, 1006568u, new Vector3(-559.3805f, -1.9197596f, -318.349f), 335) + Span span41 = CollectionsMarshal.AsSpan(list115); + span41[0] = new QuestStep(EInteractionType.Emote, 1006568u, new Vector3(-559.3805f, -1.9197596f, -318.349f), 335) { Emote = EEmote.ImperialSalute }; - index2++; - span115[index2] = new QuestStep(EInteractionType.Emote, 1006567u, new Vector3(-532.2195f, -1.9197612f, -284.50446f), 335) + span41[1] = new QuestStep(EInteractionType.Emote, 1006567u, new Vector3(-532.2195f, -1.9197612f, -284.50446f), 335) { Emote = EEmote.ImperialSalute }; - index2++; - span115[index2] = new QuestStep(EInteractionType.Emote, 1006569u, new Vector3(-491.44736f, -3.9312067f, -300.8011f), 335) + span41[2] = new QuestStep(EInteractionType.Emote, 1006569u, new Vector3(-491.44736f, -3.9312067f, -300.8011f), 335) { Emote = EEmote.ImperialSalute }; obj74.Steps = list115; reference78 = obj74; - num++; - ref QuestSequence reference79 = ref span112[num]; + ref QuestSequence reference79 = ref span39[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f, Emote = EEmote.ImperialSalute }; obj75.Steps = list116; reference79 = obj75; - num++; - ref QuestSequence reference80 = ref span112[num]; + ref QuestSequence reference80 = ref span39[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -45710,45 +37879,36 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1006562u, new Vector3(-495.964f, -3.7679372f, -288.1667f), 335); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1006562u, new Vector3(-495.964f, -3.7679372f, -288.1667f), 335); obj76.Steps = list117; reference80 = obj76; - num++; - ref QuestSequence reference81 = ref span112[num]; + ref QuestSequence reference81 = ref span39[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - 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]; + 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]; 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); - 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"; + CollectionsMarshal.AsSpan(list119)[0] = "(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; - num++; - span112[num] = new QuestSequence + span39[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference83 = ref span112[num]; + ref QuestSequence reference83 = ref span39[7]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -45756,9 +37916,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006573u, new Vector3(-43.717102f, 84f, 2.1514893f), 130) { StopDistance = 5f }; @@ -45771,33 +37929,27 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list121)[0] = "JerryWester"; questRoot16.Author = list121; - index = 3; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num = 0; - ref QuestSequence reference84 = ref span122[num]; + num = 3; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + Span span44 = CollectionsMarshal.AsSpan(list122); + ref QuestSequence reference84 = ref span44[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj79.Steps = list123; reference84 = obj79; - num++; - ref QuestSequence reference85 = ref span122[num]; + ref QuestSequence reference85 = ref span44[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -45805,9 +37957,7 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -45825,36 +37975,30 @@ public static class AssemblyQuestLoader }; obj80.Steps = list124; reference85 = obj80; - num++; - ref QuestSequence reference86 = ref span122[num]; + ref QuestSequence reference86 = ref span44[2]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span125[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span45[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span125[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + span45[4] = new QuestStep(EInteractionType.CompleteQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj81.Steps = list125; reference86 = obj81; questRoot16.QuestSequence = list122; @@ -45864,16 +38008,13 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "liza"; + CollectionsMarshal.AsSpan(list126)[0] = "liza"; questRoot17.Author = list126; - index = 10; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference87 = ref span127[num]; + num = 10; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span46 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference87 = ref span46[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -45881,27 +38022,21 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); obj82.Steps = list128; reference87 = obj82; - num++; - ref QuestSequence reference88 = ref span127[num]; + ref QuestSequence reference88 = ref span46[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj83.Steps = list129; reference88 = obj83; - num++; - ref QuestSequence reference89 = ref span127[num]; + ref QuestSequence reference89 = ref span46[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -45909,9 +38044,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - ref QuestStep reference90 = ref span130[index2]; + ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list130)[0]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { AethernetShortcut = new AethernetShortcut @@ -45920,12 +38053,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAirship } }; - index3 = 1; - List list131 = new List(index3); - CollectionsMarshal.SetCount(list131, index3); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - span131[num3] = new DialogueChoice + num3 = 1; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q1_000_1") @@ -45934,25 +38065,20 @@ public static class AssemblyQuestLoader reference90 = obj85; obj84.Steps = list130; reference89 = obj84; - num++; - ref QuestSequence reference91 = ref span127[num]; + ref QuestSequence reference91 = ref span46[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num2 = 0; - ref QuestStep reference92 = ref span132[num2]; + num2 = 1; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list132)[0]; 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); - Span span133 = CollectionsMarshal.AsSpan(list133); - index3 = 0; - span133[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q2_000_1") @@ -45961,8 +38087,7 @@ public static class AssemblyQuestLoader reference92 = questStep7; obj86.Steps = list132; reference91 = obj86; - num++; - ref QuestSequence reference93 = ref span127[num]; + ref QuestSequence reference93 = ref span46[4]; QuestSequence obj87 = new QuestSequence { Sequence = 4 @@ -45970,38 +38095,32 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - ref QuestStep reference94 = ref span134[index2]; + Span span47 = CollectionsMarshal.AsSpan(list134); + ref QuestStep reference94 = ref span47[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1002703u, new Vector3(-12.375122f, 91.499985f, -0.5340576f), 128); - index3 = 1; - List list135 = new List(index3); - CollectionsMarshal.SetCount(list135, index3); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = new DialogueChoice + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q7_000_1") }; questStep8.DialogueChoices = list135; reference94 = questStep8; - index2++; - span134[index2] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); + span47[1] = new QuestStep(EInteractionType.Interact, 1002693u, new Vector3(-6.515625f, 91.49996f, -13.656921f), 128); obj87.Steps = list134; reference93 = obj87; - num++; - ref QuestSequence reference95 = ref span127[num]; + ref QuestSequence reference95 = ref span46[5]; QuestSequence obj88 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list136 = new List(index2); - CollectionsMarshal.SetCount(list136, index2); - Span span136 = CollectionsMarshal.AsSpan(list136); - num2 = 0; - ref QuestStep reference96 = ref span136[num2]; + num2 = 2; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + Span span48 = CollectionsMarshal.AsSpan(list136); + ref QuestStep reference96 = ref span48[0]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 1003583u, new Vector3(-7.248047f, 91.49999f, -16.128845f), 128) { TargetTerritoryId = (ushort)129 @@ -46009,9 +38128,7 @@ public static class AssemblyQuestLoader num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span137 = CollectionsMarshal.AsSpan(list137); - index3 = 0; - span137[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list137)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -46019,12 +38136,10 @@ public static class AssemblyQuestLoader }; obj89.DialogueChoices = list137; reference96 = obj89; - num2++; - span136[num2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + span48[1] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj88.Steps = list136; reference95 = obj88; - num++; - ref QuestSequence reference97 = ref span127[num]; + ref QuestSequence reference97 = ref span46[6]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -46032,29 +38147,24 @@ public static class AssemblyQuestLoader num2 = 10; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) + Span span49 = CollectionsMarshal.AsSpan(list138); + span49[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - index2++; - span138[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) + span49[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 129) { Aetheryte = EAetheryteLocation.Limsa }; - index2++; - span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span49[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaHawkersAlley }; - index2++; - span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span49[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaArcanist }; - index2++; - span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) + span49[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 129) { AethernetShard = EAetheryteLocation.LimsaFisher, AethernetShortcut = new AethernetShortcut @@ -46063,8 +38173,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaHawkersAlley } }; - index2++; - span138[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) + span49[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-83.8817f, 18.475962f, -29.903847f), 129) { TargetTerritoryId = (ushort)128, Comment = "Walk to Culinarians' Guild", @@ -46074,23 +38183,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Limsa } }; - index2++; - span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span49[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaCulinarian }; - index2++; - span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span49[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaMarauder }; - index2++; - span138[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) + span49[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 128) { AethernetShard = EAetheryteLocation.LimsaAftcastle }; - index2++; - ref QuestStep reference98 = ref span138[index2]; + ref QuestStep reference98 = ref span49[9]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { AethernetShortcut = new AethernetShortcut @@ -46099,12 +38204,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAirship } }; - index3 = 1; - List list139 = new List(index3); - CollectionsMarshal.SetCount(list139, index3); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new DialogueChoice + num3 = 1; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q3_000_1") @@ -46113,25 +38216,20 @@ public static class AssemblyQuestLoader reference98 = obj91; obj90.Steps = list138; reference97 = obj90; - num++; - ref QuestSequence reference99 = ref span127[num]; + ref QuestSequence reference99 = ref span46[7]; QuestSequence obj92 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list140 = new List(index2); - CollectionsMarshal.SetCount(list140, index2); - Span span140 = CollectionsMarshal.AsSpan(list140); - num2 = 0; - ref QuestStep reference100 = ref span140[num2]; + num2 = 1; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + ref QuestStep reference100 = ref CollectionsMarshal.AsSpan(list140)[0]; 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); - Span span141 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span141[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q4_000_1") @@ -46140,8 +38238,7 @@ public static class AssemblyQuestLoader reference100 = questStep9; obj92.Steps = list140; reference99 = obj92; - num++; - ref QuestSequence reference101 = ref span127[num]; + ref QuestSequence reference101 = ref span46[8]; QuestSequence obj93 = new QuestSequence { Sequence = 8 @@ -46149,56 +38246,47 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - ref QuestStep reference102 = ref span142[index2]; + Span span50 = CollectionsMarshal.AsSpan(list142); + ref QuestStep reference102 = ref span50[0]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1000109u, new Vector3(29.770264f, -19.000002f, 114.12219f), 132) { Comment = "Gridania Arrivals Attendant" }; - index3 = 1; - List list143 = new List(index3); - CollectionsMarshal.SetCount(list143, index3); - Span span143 = CollectionsMarshal.AsSpan(list143); - num3 = 0; - span143[num3] = new DialogueChoice + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL200_00528_Q10_000_1") }; obj94.DialogueChoices = list143; reference102 = obj94; - index2++; - span142[index2] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); + span50[1] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); obj93.Steps = list142; reference101 = obj93; - num++; - ref QuestSequence reference103 = ref span127[num]; + ref QuestSequence reference103 = ref span46[9]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.Gridania }; - num2++; - span144[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + span51[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num2++; - span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + span51[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - num2++; - span144[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) + span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) { TargetTerritoryId = (ushort)133, AethernetShortcut = new AethernetShortcut @@ -46207,20 +38295,16 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - num2++; - span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span51[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - num2++; - span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span51[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -46229,15 +38313,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - num2++; - span144[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span51[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -46246,8 +38327,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num2++; - span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + span51[11] = new QuestStep(EInteractionType.CompleteQuest, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); obj95.Steps = list144; reference103 = obj95; questRoot17.QuestSequence = list127; @@ -46257,16 +38337,13 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list145)[0] = "Cacahuetes"; questRoot18.Author = list145; - index = 2; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference104 = ref span146[num]; + num = 2; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span52 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference104 = ref span52[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -46274,9 +38351,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -46289,25 +38364,20 @@ public static class AssemblyQuestLoader }; obj96.Steps = list147; reference104 = obj96; - num++; - ref QuestSequence reference105 = ref span146[num]; + ref QuestSequence reference105 = ref span52[1]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list148 = new List(index2); - CollectionsMarshal.SetCount(list148, index2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num2 = 0; - ref QuestStep reference106 = ref span148[num2]; + num2 = 1; + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list148)[0]; 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); - Span span149 = CollectionsMarshal.AsSpan(list149); - index3 = 0; - span149[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL011_00532_Q1_000_1") @@ -46324,18 +38394,15 @@ public static class AssemblyQuestLoader num = 2; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; - index++; - span150[index] = "plogon_enjoyer"; + Span span53 = CollectionsMarshal.AsSpan(list150); + span53[0] = "liza"; + span53[1] = "plogon_enjoyer"; questRoot19.Author = list150; - index = 4; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference107 = ref span151[num]; + num = 4; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span54 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference107 = ref span54[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -46343,9 +38410,8 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-86.589775f, 2.099846f, -51.574f), 130) + Span span55 = CollectionsMarshal.AsSpan(list152); + span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-86.589775f, 2.099846f, -51.574f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -46356,29 +38422,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); + span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130); obj98.Steps = list152; reference107 = obj98; - num++; - ref QuestSequence reference108 = ref span151[num]; + ref QuestSequence reference108 = ref span54[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list153 = new List(index2); - CollectionsMarshal.SetCount(list153, index2); - Span span153 = CollectionsMarshal.AsSpan(list153); - num2 = 0; - ref QuestStep reference109 = ref span153[num2]; + num2 = 1; + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list153)[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); - index3 = 1; - List list154 = new List(index3); - CollectionsMarshal.SetCount(list154, index3); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - span154[num3] = new DialogueChoice + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSPGL020_00533_Q1_000_1") @@ -46387,8 +38447,7 @@ public static class AssemblyQuestLoader reference109 = questStep11; obj99.Steps = list153; reference108 = obj99; - num++; - ref QuestSequence reference110 = ref span151[num]; + ref QuestSequence reference110 = ref span54[2]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -46396,9 +38455,8 @@ public static class AssemblyQuestLoader num2 = 3; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - ref QuestStep reference111 = ref span155[index2]; + Span span56 = CollectionsMarshal.AsSpan(list155); + ref QuestStep reference111 = ref span56[0]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { AethernetShortcut = new AethernetShortcut @@ -46411,9 +38469,7 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span156 = CollectionsMarshal.AsSpan(list156); - index3 = 0; - ref ComplexCombatData reference112 = ref span156[index3]; + ref ComplexCombatData reference112 = ref CollectionsMarshal.AsSpan(list156)[0]; ComplexCombatData obj102 = new ComplexCombatData { DataId = 351u, @@ -46422,42 +38478,29 @@ public static class AssemblyQuestLoader int num4 = 6; List list157 = new List(num4); CollectionsMarshal.SetCount(list157, num4); - 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; + 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; obj102.CompletionQuestVariablesFlags = list157; reference112 = obj102; obj101.ComplexCombatData = list156; - 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; + 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; obj101.CompletionQuestVariablesFlags = list158; reference111 = obj101; - index2++; - ref QuestStep reference113 = ref span155[index2]; + ref QuestStep reference113 = ref span56[1]; QuestStep obj103 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -46465,53 +38508,38 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span159 = CollectionsMarshal.AsSpan(list159); - index3 = 0; - ref ComplexCombatData reference114 = ref span159[index3]; + ref ComplexCombatData reference114 = ref CollectionsMarshal.AsSpan(list159)[0]; ComplexCombatData obj104 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - 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; + 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; obj104.CompletionQuestVariablesFlags = list160; reference114 = obj104; obj103.ComplexCombatData = list159; - 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; + 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; obj103.CompletionQuestVariablesFlags = list161; reference113 = obj103; - index2++; - ref QuestStep reference115 = ref span155[index2]; + ref QuestStep reference115 = ref span56[2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -46519,9 +38547,7 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span162 = CollectionsMarshal.AsSpan(list162); - index3 = 0; - ref ComplexCombatData reference116 = ref span162[index3]; + ref ComplexCombatData reference116 = ref CollectionsMarshal.AsSpan(list162)[0]; ComplexCombatData obj106 = new ComplexCombatData { DataId = 205u, @@ -46530,54 +38556,39 @@ public static class AssemblyQuestLoader num4 = 6; List list163 = new List(num4); CollectionsMarshal.SetCount(list163, num4); - 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; + 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; obj106.CompletionQuestVariablesFlags = list163; reference116 = obj106; obj105.ComplexCombatData = list162; - 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; + 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; obj105.CompletionQuestVariablesFlags = list164; reference115 = obj105; obj100.Steps = list155; reference110 = obj100; - num++; - ref QuestSequence reference117 = ref span151[num]; + ref QuestSequence reference117 = ref span54[3]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(554) @@ -46591,16 +38602,13 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list166)[0] = "Cacahuetes"; questRoot20.Author = list166; - index = 2; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference118 = ref span167[num]; + num = 2; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span63 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference118 = ref span63[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -46608,30 +38616,23 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131); + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002283u, new Vector3(134.90503f, 7.5919275f, 98.039185f), 131); obj108.Steps = list168; reference118 = obj108; - num++; - ref QuestSequence reference119 = ref span167[num]; + ref QuestSequence reference119 = ref span63[1]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list169 = new List(index2); - CollectionsMarshal.SetCount(list169, index2); - Span span169 = CollectionsMarshal.AsSpan(list169); - num2 = 0; - ref QuestStep reference120 = ref span169[num2]; + num2 = 1; + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list169)[0]; 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); - Span span170 = CollectionsMarshal.AsSpan(list170); - index3 = 0; - span170[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list170)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSWVR011_00534_SYSTEM_Q0") @@ -46647,16 +38648,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot21.Author = list171; - index = 4; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference121 = ref span172[num]; + num = 4; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span64 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference121 = ref span64[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -46664,25 +38662,20 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj110.Steps = list173; reference121 = obj110; - num++; - ref QuestSequence reference122 = ref span172[num]; + ref QuestSequence reference122 = ref span64[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -46691,13 +38684,11 @@ public static class AssemblyQuestLoader }; obj111.Steps = list174; reference122 = obj111; - num++; - span172[num] = new QuestSequence + span64[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference123 = ref span172[num]; + ref QuestSequence reference123 = ref span64[3]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -46705,9 +38696,7 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002626u, new Vector3(207.2633f, 112.860374f, -222.43079f), 134); obj112.Steps = list175; reference123 = obj112; questRoot21.QuestSequence = list172; @@ -46717,30 +38706,24 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "liza"; + CollectionsMarshal.AsSpan(list176)[0] = "liza"; questRoot22.Author = list176; - index = 5; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference124 = ref span177[num]; + num = 5; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span66 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference124 = ref span66[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj113.Steps = list178; reference124 = obj113; - num++; - ref QuestSequence reference125 = ref span177[num]; + ref QuestSequence reference125 = ref span66[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -46748,9 +38731,8 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) + Span span67 = CollectionsMarshal.AsSpan(list179); + span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) { AethernetShortcut = new AethernetShortcut { @@ -46758,25 +38740,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - index2++; - span179[index2] = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + span67[1] = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; obj114.Steps = list179; reference125 = obj114; - num++; - ref QuestSequence reference126 = ref span177[num]; + ref QuestSequence reference126 = ref span66[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list180 = new List(index2); - CollectionsMarshal.SetCount(list180, index2); - Span span180 = CollectionsMarshal.AsSpan(list180); - num2 = 0; - ref QuestStep reference127 = ref span180[num2]; + num2 = 1; + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; QuestStep obj116 = new QuestStep(EInteractionType.SinglePlayerDuty, 1003283u, new Vector3(668.0552f, 7.297715f, 533.1654f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch @@ -46785,24 +38763,20 @@ public static class AssemblyQuestLoader { Enabled = true }; - 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"; + 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"; obj117.Notes = list181; obj116.SinglePlayerDutyOptions = obj117; reference127 = obj116; obj115.Steps = list180; reference126 = obj115; - num++; - span177[num] = new QuestSequence + span66[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference128 = ref span177[num]; + ref QuestSequence reference128 = ref span66[4]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -46810,9 +38784,8 @@ public static class AssemblyQuestLoader num2 = 2; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) + Span span68 = CollectionsMarshal.AsSpan(list182); + span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.9166679f, 44.999886f, -256.1519f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -46821,8 +38794,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - index2++; - span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; @@ -46835,30 +38807,24 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot23.Author = list183; - index = 3; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference129 = ref span184[num]; + num = 3; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span69 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference129 = ref span69[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj119.Steps = list185; reference129 = obj119; - num++; - ref QuestSequence reference130 = ref span184[num]; + ref QuestSequence reference130 = ref span69[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -46866,14 +38832,12 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + Span span70 = CollectionsMarshal.AsSpan(list186); + span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3760u }; - index2++; - ref QuestStep reference131 = ref span186[index2]; + ref QuestStep reference131 = ref span70[1]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -46881,9 +38845,7 @@ public static class AssemblyQuestLoader num3 = 1; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - Span span187 = CollectionsMarshal.AsSpan(list187); - index3 = 0; - span187[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list187)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -46891,37 +38853,31 @@ public static class AssemblyQuestLoader }; obj121.DialogueChoices = list187; reference131 = obj121; - index2++; - span186[index2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); + span70[2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129); obj120.Steps = list186; reference130 = obj120; - num++; - ref QuestSequence reference132 = ref span184[num]; + ref QuestSequence reference132 = ref span69[2]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)128 }; - num2++; - ref QuestStep reference133 = ref span188[num2]; + ref QuestStep reference133 = ref span71[1]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - index3 = 1; - List list189 = new List(index3); - CollectionsMarshal.SetCount(list189, index3); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - span189[num3] = new DialogueChoice + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -46929,8 +38885,7 @@ public static class AssemblyQuestLoader }; obj123.DialogueChoices = list189; reference133 = obj123; - num2++; - ref QuestStep reference134 = ref span188[num2]; + ref QuestStep reference134 = ref span71[2]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198 @@ -46938,17 +38893,14 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - index3 = 0; - span190[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list190)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA009_00545_Q1_000_1") }; obj124.DialogueChoices = list190; reference134 = obj124; - num2++; - span188[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + span71[3] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj122.Steps = list188; reference132 = obj122; questRoot23.QuestSequence = list184; @@ -46958,16 +38910,13 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "liza"; + CollectionsMarshal.AsSpan(list191)[0] = "liza"; questRoot24.Author = list191; - index = 10; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference135 = ref span192[num]; + num = 10; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span72 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference135 = ref span72[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -46975,38 +38924,31 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj125.Steps = list193; reference135 = obj125; - num++; - ref QuestSequence reference136 = ref span192[num]; + ref QuestSequence reference136 = ref span72[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)129 }; - num2++; - ref QuestStep reference137 = ref span194[num2]; + ref QuestStep reference137 = ref span73[1]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - index3 = 1; - List list195 = new List(index3); - CollectionsMarshal.SetCount(list195, index3); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - span195[num3] = new DialogueChoice + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + CollectionsMarshal.AsSpan(list195)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -47014,12 +38956,10 @@ public static class AssemblyQuestLoader }; obj127.DialogueChoices = list195; reference137 = obj127; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + span73[2] = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj126.Steps = list194; reference136 = obj126; - num++; - ref QuestSequence reference138 = ref span192[num]; + ref QuestSequence reference138 = ref span72[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -47027,9 +38967,8 @@ public static class AssemblyQuestLoader num2 = 2; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - ref QuestStep reference139 = ref span196[index2]; + Span span74 = CollectionsMarshal.AsSpan(list196); + ref QuestStep reference139 = ref span74[0]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)128 @@ -47037,9 +38976,7 @@ public static class AssemblyQuestLoader num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span197 = CollectionsMarshal.AsSpan(list197); - index3 = 0; - span197[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -47047,15 +38984,12 @@ public static class AssemblyQuestLoader }; obj129.DialogueChoices = list197; reference139 = obj129; - index2++; - ref QuestStep reference140 = ref span196[index2]; + ref QuestStep reference140 = ref span74[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128); - index3 = 1; - List list198 = new List(index3); - CollectionsMarshal.SetCount(list198, index3); - Span span198 = CollectionsMarshal.AsSpan(list198); - num3 = 0; - span198[num3] = new DialogueChoice + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q1_000_1") @@ -47064,25 +38998,20 @@ public static class AssemblyQuestLoader reference140 = questStep13; obj128.Steps = list196; reference138 = obj128; - num++; - ref QuestSequence reference141 = ref span192[num]; + ref QuestSequence reference141 = ref span72[3]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list199 = new List(index2); - CollectionsMarshal.SetCount(list199, index2); - Span span199 = CollectionsMarshal.AsSpan(list199); - num2 = 0; - ref QuestStep reference142 = ref span199[num2]; + num2 = 1; + List list199 = new List(num2); + CollectionsMarshal.SetCount(list199, num2); + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list199)[0]; 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); - Span span200 = CollectionsMarshal.AsSpan(list200); - index3 = 0; - span200[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q3_000_1") @@ -47091,8 +39020,7 @@ public static class AssemblyQuestLoader reference142 = questStep14; obj130.Steps = list199; reference141 = obj130; - num++; - ref QuestSequence reference143 = ref span192[num]; + ref QuestSequence reference143 = ref span72[4]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -47100,56 +39028,47 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - ref QuestStep reference144 = ref span201[index2]; + Span span75 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference144 = ref span75[0]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1000109u, new Vector3(29.770264f, -19.000002f, 114.12219f), 132) { Comment = "Gridania Arrivals Attendant" }; - index3 = 1; - List list202 = new List(index3); - CollectionsMarshal.SetCount(list202, index3); - Span span202 = CollectionsMarshal.AsSpan(list202); - num3 = 0; - span202[num3] = new DialogueChoice + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q7_000_1") }; obj132.DialogueChoices = list202; reference144 = obj132; - index2++; - span201[index2] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); + span75[1] = new QuestStep(EInteractionType.Interact, 1002830u, new Vector3(36.63684f, -18.800003f, 89.64673f), 132); obj131.Steps = list201; reference143 = obj131; - num++; - ref QuestSequence reference145 = ref span192[num]; + ref QuestSequence reference145 = ref span72[5]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Gridania }; - num2++; - span203[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) + span76[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 132) { Aetheryte = EAetheryteLocation.Gridania }; - num2++; - span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) + span76[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 132) { AethernetShard = EAetheryteLocation.GridaniaArcher }; - num2++; - span203[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) + span76[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.761639f, 1.2659149f, -18.021421f), 132) { TargetTerritoryId = (ushort)133, AethernetShortcut = new AethernetShortcut @@ -47158,20 +39077,16 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - num2++; - span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span76[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaLeatherworker }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaLancer }; - num2++; - span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span76[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaAmphitheatre, AethernetShortcut = new AethernetShortcut @@ -47180,15 +39095,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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) + 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) { AethernetShard = EAetheryteLocation.GridaniaBotanist }; - num2++; - span203[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) + span76[10] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 133) { AethernetShard = EAetheryteLocation.GridaniaConjurer, AethernetShortcut = new AethernetShortcut @@ -47197,12 +39109,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - num2++; - span203[num2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); + span76[11] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); obj133.Steps = list203; reference145 = obj133; - num++; - ref QuestSequence reference146 = ref span192[num]; + ref QuestSequence reference146 = ref span72[6]; QuestSequence obj134 = new QuestSequence { Sequence = 6 @@ -47210,9 +39120,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference147 = ref span204[index2]; + ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { AethernetShortcut = new AethernetShortcut @@ -47224,9 +39132,7 @@ public static class AssemblyQuestLoader num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span205 = CollectionsMarshal.AsSpan(list205); - index3 = 0; - span205[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q5_000_1") @@ -47235,25 +39141,20 @@ public static class AssemblyQuestLoader reference147 = obj135; obj134.Steps = list204; reference146 = obj134; - num++; - ref QuestSequence reference148 = ref span192[num]; + ref QuestSequence reference148 = ref span72[7]; QuestSequence obj136 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list206 = new List(index2); - CollectionsMarshal.SetCount(list206, index2); - Span span206 = CollectionsMarshal.AsSpan(list206); - num2 = 0; - ref QuestStep reference149 = ref span206[num2]; + num2 = 1; + List list206 = new List(num2); + CollectionsMarshal.SetCount(list206, num2); + ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list206)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2001671u, new Vector3(7.156433f, -21.957764f, 123.73535f), 132); - index3 = 1; - List list207 = new List(index3); - CollectionsMarshal.SetCount(list207, index3); - Span span207 = CollectionsMarshal.AsSpan(list207); - num3 = 0; - span207[num3] = new DialogueChoice + num3 = 1; + List list207 = new List(num3); + CollectionsMarshal.SetCount(list207, num3); + CollectionsMarshal.AsSpan(list207)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q3_000_1") @@ -47262,8 +39163,7 @@ public static class AssemblyQuestLoader reference149 = questStep15; obj136.Steps = list206; reference148 = obj136; - num++; - ref QuestSequence reference150 = ref span192[num]; + ref QuestSequence reference150 = ref span72[8]; QuestSequence obj137 = new QuestSequence { Sequence = 8 @@ -47271,9 +39171,8 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - ref QuestStep reference151 = ref span208[index2]; + Span span77 = CollectionsMarshal.AsSpan(list208); + ref QuestStep reference151 = ref span77[0]; QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1004434u, new Vector3(-27.17633f, 83.19998f, 2.304016f), 130) { Comment = "Ul'dah Arrivals Attendant" @@ -47281,41 +39180,34 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span209 = CollectionsMarshal.AsSpan(list209); - index3 = 0; - span209[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA200_00546_Q7_000_1") }; obj138.DialogueChoices = list209; reference151 = obj138; - index2++; - span208[index2] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); + span77[1] = new QuestStep(EInteractionType.Interact, 1004336u, new Vector3(-12.619263f, 82.99987f, 4.562378f), 130); obj137.Steps = list208; reference150 = obj137; - num++; - ref QuestSequence reference152 = ref span192[num]; + ref QuestSequence reference152 = ref span72[9]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference153 = ref span210[num2]; + num2 = 3; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span78 = CollectionsMarshal.AsSpan(list210); + ref QuestStep reference153 = ref span78[0]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 }; - index3 = 1; - List list211 = new List(index3); - CollectionsMarshal.SetCount(list211, index3); - Span span211 = CollectionsMarshal.AsSpan(list211); - num3 = 0; - span211[num3] = new DialogueChoice + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -47323,13 +39215,11 @@ public static class AssemblyQuestLoader }; obj140.DialogueChoices = list211; reference153 = obj140; - num2++; - span210[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span78[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - num2++; - span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + span78[2] = new QuestStep(EInteractionType.CompleteQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj139.Steps = list210; reference152 = obj139; questRoot24.QuestSequence = list192; @@ -47343,16 +39233,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -47360,23 +39247,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -47385,13 +39267,11 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - span2[num] = new QuestSequence + span[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[3]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -47399,9 +39279,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -47411,30 +39289,24 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 5; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 5; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span2 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span2[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -47442,9 +39314,8 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - ref QuestStep reference6 = ref span9[index2]; + Span span3 = CollectionsMarshal.AsSpan(list9); + ref QuestStep reference6 = ref span3[0]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1004005u, new Vector3(-123.88806f, 40f, 95.384155f), 131) { AethernetShortcut = new AethernetShortcut @@ -47456,31 +39327,25 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span10 = CollectionsMarshal.AsSpan(list10); - int index3 = 0; - span10[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL007_00551_Q1_000_1") }; obj6.DialogueChoices = list10; reference6 = obj6; - index2++; - span9[index2] = new QuestStep(EInteractionType.Interact, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); + span3[1] = new QuestStep(EInteractionType.Interact, 1004002u, new Vector3(1.0527954f, 0.014807776f, -1.6633301f), 210); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference7 = ref span7[num]; + ref QuestSequence reference7 = ref span2[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference8 = ref span11[num2]; + num2 = 1; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.SinglePlayerDuty, 2001427u, new Vector3(246.93665f, -17.105408f, -131.48706f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation @@ -47489,24 +39354,20 @@ public static class AssemblyQuestLoader { Enabled = true }; - 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"; + 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"; obj9.Notes = list12; obj8.SinglePlayerDutyOptions = obj9; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - num++; - span7[num] = new QuestSequence + span2[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference9 = ref span7[num]; + ref QuestSequence reference9 = ref span2[4]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -47514,9 +39375,8 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - ref QuestStep reference10 = ref span13[index2]; + Span span4 = CollectionsMarshal.AsSpan(list13); + ref QuestStep reference10 = ref span4[0]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1004005u, new Vector3(-123.88806f, 40f, 95.384155f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -47529,17 +39389,14 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span14 = CollectionsMarshal.AsSpan(list14); - index3 = 0; - span14[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL007_00551_Q1_000_1") }; obj11.DialogueChoices = list14; reference10 = obj11; - index2++; - span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004003u, new Vector3(0.015197754f, 0.014807776f, -1.6937866f), 210); + span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1004003u, new Vector3(0.015197754f, 0.014807776f, -1.6937866f), 210); obj10.Steps = list13; reference9 = obj10; questRoot2.QuestSequence = list7; @@ -47549,30 +39406,24 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot3.Author = list15; - index = 3; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 3; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span5 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list17; reference11 = obj12; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span5[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -47580,14 +39431,12 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 130) + Span span6 = CollectionsMarshal.AsSpan(list18); + span6[0] = new QuestStep(EInteractionType.EquipItem, null, null, 130) { ItemId = 4196u }; - index2++; - span18[index2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + span6[1] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AethernetShortcut = new AethernetShortcut { @@ -47597,23 +39446,20 @@ public static class AssemblyQuestLoader }; obj13.Steps = list18; reference12 = obj13; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span5[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)130 }; - num2++; - span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); + span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1004004u, new Vector3(-139.29962f, 4.1f, -113.481445f), 130); obj14.Steps = list19; reference13 = obj14; questRoot3.QuestSequence = list16; @@ -47623,16 +39469,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list20)[0] = "plogon_enjoyer"; questRoot4.Author = list20; - index = 3; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference14 = ref span21[num]; + num = 3; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span8 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference14 = ref span8[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -47640,23 +39483,19 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj15.Steps = list22; reference14 = obj15; - num++; - ref QuestSequence reference15 = ref span21[num]; + ref QuestSequence reference15 = ref span8[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list23 = new List(index2); - CollectionsMarshal.SetCount(list23, index2); - Span span23 = CollectionsMarshal.AsSpan(list23); - num2 = 0; - ref QuestStep reference16 = ref span23[num2]; + num2 = 3; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + Span span9 = CollectionsMarshal.AsSpan(list23); + ref QuestStep reference16 = ref span9[0]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { AethernetShortcut = new AethernetShortcut @@ -47666,12 +39505,10 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list24 = new List(index3); - CollectionsMarshal.SetCount(list24, index3); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - ref ComplexCombatData reference17 = ref span24[num3]; + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 351u, @@ -47680,106 +39517,76 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - 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; + 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; obj18.CompletionQuestVariablesFlags = list25; reference17 = obj18; obj17.ComplexCombatData = list24; num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - 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; + 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; obj17.CompletionQuestVariablesFlags = list26; reference16 = obj17; - num2++; - ref QuestStep reference18 = ref span23[num2]; + ref QuestStep reference18 = ref span9[1]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-126.59337f, 11.159969f, 276.25775f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list27 = new List(index3); - CollectionsMarshal.SetCount(list27, index3); - Span span27 = CollectionsMarshal.AsSpan(list27); - num3 = 0; - ref ComplexCombatData reference19 = ref span27[num3]; + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list27)[0]; ComplexCombatData obj20 = new ComplexCombatData { DataId = 385u, MinimumKillCount = 3u }; - 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; + 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; obj20.CompletionQuestVariablesFlags = list28; reference19 = obj20; obj19.ComplexCombatData = list27; num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - 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; + 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; obj19.CompletionQuestVariablesFlags = list29; reference18 = obj19; - num2++; - ref QuestStep reference20 = ref span23[num2]; + ref QuestStep reference20 = ref span9[2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(32.007893f, 5.8527403f, 299.76016f), 141) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list30 = new List(index3); - CollectionsMarshal.SetCount(list30, index3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num3 = 0; - ref ComplexCombatData reference21 = ref span30[num3]; + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + ref ComplexCombatData reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; ComplexCombatData obj22 = new ComplexCombatData { DataId = 205u, @@ -47788,44 +39595,31 @@ public static class AssemblyQuestLoader num4 = 6; List list31 = new List(num4); CollectionsMarshal.SetCount(list31, num4); - 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; + 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; obj22.CompletionQuestVariablesFlags = list31; reference21 = obj22; obj21.ComplexCombatData = list30; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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; + 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; obj21.CompletionQuestVariablesFlags = list32; reference20 = obj21; obj16.Steps = list23; reference15 = obj16; - num++; - ref QuestSequence reference22 = ref span21[num]; + ref QuestSequence reference22 = ref span8[2]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -47833,9 +39627,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(554) @@ -47849,26 +39641,21 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list34)[0] = "plogon_enjoyer"; questRoot5.Author = list34; - index = 5; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference23 = ref span35[num]; + num = 5; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span16 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference23 = ref span16[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -47881,8 +39668,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list36; reference23 = obj24; - num++; - ref QuestSequence reference24 = ref span35[num]; + ref QuestSequence reference24 = ref span16[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -47890,74 +39676,51 @@ public static class AssemblyQuestLoader num2 = 6; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - 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]; + 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]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2001285u, new Vector3(-80.36932f, 0.6866455f, -59.55603f), 130); - 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); + 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); questStep.CompletionQuestVariablesFlags = list38; reference25 = questStep; - index2++; - ref QuestStep reference26 = ref span37[index2]; + ref QuestStep reference26 = ref span17[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list39; reference26 = questStep2; - index2++; - ref QuestStep reference27 = ref span37[index2]; + ref QuestStep reference27 = ref span17[3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001283u, new Vector3(37.03357f, 7.248047f, -98.8938f), 130); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list40; reference27 = questStep3; - index2++; - ref QuestStep reference28 = ref span37[index2]; + ref QuestStep reference28 = ref span17[4]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2001280u, new Vector3(-162.46283f, 17.471558f, 60.196777f), 130) { AethernetShortcut = new AethernetShortcut @@ -47969,56 +39732,40 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - 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); + 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); obj26.CompletionQuestVariablesFlags = list41; reference28 = obj26; - index2++; - ref QuestStep reference29 = ref span37[index2]; + ref QuestStep reference29 = ref span17[5]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2001281u, new Vector3(-254.74939f, 17.990356f, 67.33801f), 130); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list42; reference29 = questStep4; obj25.Steps = list37; reference24 = obj25; - num++; - ref QuestSequence reference30 = ref span35[num]; + ref QuestSequence reference30 = ref span16[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -48028,8 +39775,7 @@ public static class AssemblyQuestLoader }; obj27.Steps = list43; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span35[num]; + ref QuestSequence reference31 = ref span16[3]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -48037,9 +39783,8 @@ public static class AssemblyQuestLoader num2 = 8; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.Action, 2001541u, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) + Span span23 = CollectionsMarshal.AsSpan(list44); + span23[0] = new QuestStep(EInteractionType.Action, 2001541u, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -48049,8 +39794,7 @@ public static class AssemblyQuestLoader }, Action = EAction.Bootshine }; - index2++; - ref QuestStep reference32 = ref span44[index2]; + ref QuestStep reference32 = ref span23[1]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(224.7196f, 52.048462f, 79.45361f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -48058,41 +39802,33 @@ public static class AssemblyQuestLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - index3 = 0; - span45[index3] = 131u; + CollectionsMarshal.AsSpan(list45)[0] = 131u; obj29.KillEnemyDataIds = list45; obj29.CombatDelaySecondsAtStart = 1f; reference32 = obj29; - index2++; - span44[index2] = new QuestStep(EInteractionType.Action, 2001542u, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) + span23[2] = new QuestStep(EInteractionType.Action, 2001542u, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) { Fly = true, Action = EAction.Bootshine }; - index2++; - ref QuestStep reference33 = ref span44[index2]; + ref QuestStep reference33 = ref span23[3]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(245.71594f, 52.475708f, 58.091064f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list46 = new List(index3); - CollectionsMarshal.SetCount(list46, index3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num3 = 0; - span46[num3] = 131u; + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = 131u; obj30.KillEnemyDataIds = list46; obj30.CombatDelaySecondsAtStart = 1f; reference33 = obj30; - index2++; - span44[index2] = new QuestStep(EInteractionType.Action, 2001543u, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) + span23[4] = new QuestStep(EInteractionType.Action, 2001543u, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) { Fly = true, Action = EAction.Bootshine }; - index2++; - ref QuestStep reference34 = ref span44[index2]; + ref QuestStep reference34 = ref span23[5]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(224.01758f, 52.231567f, 41.367188f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -48100,49 +39836,41 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span47 = CollectionsMarshal.AsSpan(list47); - index3 = 0; - span47[index3] = 131u; + CollectionsMarshal.AsSpan(list47)[0] = 131u; obj31.KillEnemyDataIds = list47; obj31.CombatDelaySecondsAtStart = 1f; reference34 = obj31; - index2++; - span44[index2] = new QuestStep(EInteractionType.Action, 2001544u, new Vector3(259.05237f, 53.421753f, 25.40625f), 140) + span23[6] = new QuestStep(EInteractionType.Action, 2001544u, new Vector3(259.05237f, 53.421753f, 25.40625f), 140) { Fly = true, Action = EAction.Bootshine }; - index2++; - ref QuestStep reference35 = ref span44[index2]; + ref QuestStep reference35 = ref span23[7]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.4417f, 52.01455f, 23.240385f), 140) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list48 = new List(index3); - CollectionsMarshal.SetCount(list48, index3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num3 = 0; - span48[num3] = 131u; + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = 131u; obj32.KillEnemyDataIds = list48; obj32.CombatDelaySecondsAtStart = 1f; reference35 = obj32; obj28.Steps = list44; reference31 = obj28; - num++; - ref QuestSequence reference36 = ref span35[num]; + ref QuestSequence reference36 = ref span16[4]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { - AetheryteShortcut = EAetheryteLocation.Uldah + AetheryteShortcut = EAetheryteLocation.Uldah, + NextQuestId = new QuestId(555) }; obj33.Steps = list49; reference36 = obj33; @@ -48153,18 +39881,15 @@ public static class AssemblyQuestLoader num = 2; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = "liza"; - index++; - span50[index] = "plogon_enjoyer"; + Span span24 = CollectionsMarshal.AsSpan(list50); + span24[0] = "liza"; + span24[1] = "plogon_enjoyer"; questRoot6.Author = list50; - index = 5; - List list51 = new List(index); - CollectionsMarshal.SetCount(list51, index); - Span span51 = CollectionsMarshal.AsSpan(list51); - num = 0; - ref QuestSequence reference37 = ref span51[num]; + num = 5; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span25 = CollectionsMarshal.AsSpan(list51); + ref QuestSequence reference37 = ref span25[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -48172,9 +39897,7 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -48187,18 +39910,16 @@ public static class AssemblyQuestLoader }; obj34.Steps = list52; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span51[num]; + ref QuestSequence reference38 = ref span25[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref QuestStep reference39 = ref span53[num2]; + num2 = 5; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + Span span26 = CollectionsMarshal.AsSpan(list53); + ref QuestStep reference39 = ref span26[0]; QuestStep obj36 = new QuestStep(EInteractionType.Action, 2001718u, new Vector3(-108.2017f, 4.989685f, -105.7603f), 130) { Action = EAction.Bootshine @@ -48206,47 +39927,33 @@ public static class AssemblyQuestLoader num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - 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; + 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; obj36.CompletionQuestVariablesFlags = list54; reference39 = obj36; - num2++; - ref QuestStep reference40 = ref span53[num2]; + ref QuestStep reference40 = ref span26[1]; QuestStep obj37 = new QuestStep(EInteractionType.Action, 2001719u, new Vector3(-105.9365f, 4.9655f, -107.8618f), 130) { Action = EAction.Bootshine }; - 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; + 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; obj37.CompletionQuestVariablesFlags = list55; reference40 = obj37; - num2++; - ref QuestStep reference41 = ref span53[num2]; + ref QuestStep reference41 = ref span26[2]; QuestStep obj38 = new QuestStep(EInteractionType.Action, 2001720u, new Vector3(-77.89734f, 5.0201416f, -129.19812f), 130) { Action = EAction.Bootshine @@ -48254,47 +39961,33 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - 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; + 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; obj38.CompletionQuestVariablesFlags = list56; reference41 = obj38; - num2++; - ref QuestStep reference42 = ref span53[num2]; + ref QuestStep reference42 = ref span26[3]; QuestStep obj39 = new QuestStep(EInteractionType.Action, 2001721u, new Vector3(-74.906555f, 4.8981323f, -130.99878f), 130) { Action = EAction.Bootshine }; - 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; + 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; obj39.CompletionQuestVariablesFlags = list57; reference42 = obj39; - num2++; - ref QuestStep reference43 = ref span53[num2]; + ref QuestStep reference43 = ref span26[4]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 2001722u, new Vector3(-71.732666f, 5.0201416f, -132.64673f), 130) { Action = EAction.Bootshine @@ -48302,25 +39995,18 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - 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; + 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; obj40.CompletionQuestVariablesFlags = list58; reference43 = obj40; obj35.Steps = list53; reference38 = obj35; - num++; - ref QuestSequence reference44 = ref span51[num]; + ref QuestSequence reference44 = ref span25[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -48328,42 +40014,34 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj41.Steps = list59; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span51[num]; + ref QuestSequence reference45 = ref span25[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference46 = ref span60[num2]; + num2 = 1; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-210.32118f, 21.582167f, -94.337494f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list61 = new List(index3); - CollectionsMarshal.SetCount(list61, index3); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = 771u; + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = 771u; obj43.KillEnemyDataIds = list61; obj43.CombatDelaySecondsAtStart = 0f; reference46 = obj43; obj42.Steps = list60; reference45 = obj42; - num++; - ref QuestSequence reference47 = ref span51[num]; + ref QuestSequence reference47 = ref span25[4]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -48371,11 +40049,9 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(558) @@ -48389,26 +40065,21 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list63)[0] = "plogon_enjoyer"; questRoot7.Author = list63; - index = 8; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref QuestSequence reference48 = ref span64[num]; + num = 8; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + Span span33 = CollectionsMarshal.AsSpan(list64); + ref QuestSequence reference48 = ref span33[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -48421,8 +40092,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list65; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span64[num]; + ref QuestSequence reference49 = ref span33[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -48430,9 +40100,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - ref QuestStep reference50 = ref span66[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list66)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(265.54178f, -19.718353f, -128.44438f), 141) { Fly = true, @@ -48442,9 +40110,7 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span67 = CollectionsMarshal.AsSpan(list67); - index3 = 0; - span67[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list67)[0] = new ComplexCombatData { DataId = 26u, RewardItemId = 2000408u, @@ -48455,28 +40121,24 @@ public static class AssemblyQuestLoader reference50 = obj47; obj46.Steps = list66; reference49 = obj46; - num++; - ref QuestSequence reference51 = ref span64[num]; + ref QuestSequence reference51 = ref span33[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj48.Steps = list68; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span64[num]; + ref QuestSequence reference52 = ref span33[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -48484,43 +40146,36 @@ public static class AssemblyQuestLoader num2 = 3; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141) + Span span35 = CollectionsMarshal.AsSpan(list69); + span35[0] = new QuestStep(EInteractionType.Interact, 1001578u, new Vector3(-35.446716f, -2.057618f, -154.95538f), 141) { Mount = true }; - index2++; - span69[index2] = new QuestStep(EInteractionType.Interact, 1001445u, new Vector3(-13.046509f, -2.0905762f, -184.40533f), 141) + span35[1] = new QuestStep(EInteractionType.Interact, 1001445u, new Vector3(-13.046509f, -2.0905762f, -184.40533f), 141) { Fly = true }; - index2++; - span69[index2] = new QuestStep(EInteractionType.Interact, 1004148u, new Vector3(5.722107f, -1.985179f, -172.7779f), 141) + span35[2] = new QuestStep(EInteractionType.Interact, 1004148u, new Vector3(5.722107f, -1.985179f, -172.7779f), 141) { Fly = true }; obj49.Steps = list69; reference52 = obj49; - num++; - ref QuestSequence reference53 = ref span64[num]; + ref QuestSequence reference53 = ref span33[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj50.Steps = list70; reference53 = obj50; - num++; - ref QuestSequence reference54 = ref span64[num]; + ref QuestSequence reference54 = ref span33[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -48528,9 +40183,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001349u, new Vector3(-241.41296f, 8.0720215f, -32.24237f), 141) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2001349u, new Vector3(-241.41296f, 8.0720215f, -32.24237f), 141) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -48540,25 +40193,21 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference54 = obj51; - num++; - ref QuestSequence reference55 = ref span64[num]; + ref QuestSequence reference55 = ref span33[6]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 6f }; obj52.Steps = list72; reference55 = obj52; - num++; - ref QuestSequence reference56 = ref span64[num]; + ref QuestSequence reference56 = ref span33[7]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -48566,9 +40215,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(562) @@ -48582,26 +40229,21 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list74)[0] = "plogon_enjoyer"; questRoot8.Author = list74; - index = 6; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference57 = ref span75[num]; + num = 6; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span36 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference57 = ref span36[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -48614,8 +40256,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference57 = obj54; - num++; - ref QuestSequence reference58 = ref span75[num]; + ref QuestSequence reference58 = ref span36[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -48623,46 +40264,39 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); obj55.Steps = list77; reference58 = obj55; - num++; - ref QuestSequence reference59 = ref span75[num]; + ref QuestSequence reference59 = ref span36[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, Action = EAction.Bootshine }; - num2++; - ref QuestStep reference60 = ref span78[num2]; + ref QuestStep reference60 = ref span37[1]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-215.99152f, -29.495728f, 203.78418f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 2; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - span79[num3] = new ComplexCombatData + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span38 = CollectionsMarshal.AsSpan(list79); + span38[0] = new ComplexCombatData { DataId = 139u, MinimumKillCount = 1u }; - num3++; - span79[num3] = new ComplexCombatData + span38[1] = new ComplexCombatData { DataId = 136u, MinimumKillCount = 2u @@ -48670,14 +40304,12 @@ public static class AssemblyQuestLoader obj57.ComplexCombatData = list79; obj57.CombatDelaySecondsAtStart = 1f; reference60 = obj57; - num2++; - span78[num2] = new QuestStep(EInteractionType.Action, 2001389u, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) + span37[2] = new QuestStep(EInteractionType.Action, 2001389u, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) { Mount = true, Action = EAction.Bootshine }; - num2++; - ref QuestStep reference61 = ref span78[num2]; + ref QuestStep reference61 = ref span37[3]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-242.4201f, -26.138794f, 229.17517f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -48685,9 +40317,7 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - index3 = 0; - span80[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list80)[0] = new ComplexCombatData { DataId = 57u, MinimumKillCount = 2u @@ -48695,24 +40325,20 @@ public static class AssemblyQuestLoader obj58.ComplexCombatData = list80; obj58.CombatDelaySecondsAtStart = 1f; reference61 = obj58; - num2++; - span78[num2] = new QuestStep(EInteractionType.Action, 2001390u, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) + span37[4] = new QuestStep(EInteractionType.Action, 2001390u, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) { Mount = true, Action = EAction.Bootshine }; - num2++; - ref QuestStep reference62 = ref span78[num2]; + ref QuestStep reference62 = ref span37[5]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-228.8396f, -27.8172f, 250.14111f), 145) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list81 = new List(index3); - CollectionsMarshal.SetCount(list81, index3); - Span span81 = CollectionsMarshal.AsSpan(list81); - num3 = 0; - span81[num3] = new ComplexCombatData + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = new ComplexCombatData { DataId = 57u, MinimumKillCount = 2u @@ -48722,8 +40348,7 @@ public static class AssemblyQuestLoader reference62 = obj59; obj56.Steps = list78; reference59 = obj56; - num++; - ref QuestSequence reference63 = ref span75[num]; + ref QuestSequence reference63 = ref span36[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -48731,30 +40356,24 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj60.Steps = list82; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span75[num]; + ref QuestSequence reference64 = ref span36[4]; QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj61.Steps = list83; reference64 = obj61; - num++; - ref QuestSequence reference65 = ref span75[num]; + ref QuestSequence reference65 = ref span36[5]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -48762,9 +40381,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { NextQuestId = new QuestId(566) }; @@ -48777,26 +40394,21 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "Starr"; + CollectionsMarshal.AsSpan(list85)[0] = "Starr"; questRoot9.Author = list85; - index = 2; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference66 = ref span86[num]; + num = 2; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span39 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference66 = ref span39[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -48809,8 +40421,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list87; reference66 = obj63; - num++; - ref QuestSequence reference67 = ref span86[num]; + ref QuestSequence reference67 = ref span39[1]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -48818,9 +40429,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - ref QuestStep reference68 = ref span88[index2]; + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list88)[0]; QuestStep obj65 = new QuestStep(EInteractionType.CompleteQuest, 1010464u, new Vector3(-0.015319824f, -1.8903663E-06f, -65.61273f), 388) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -48835,11 +40444,9 @@ public static class AssemblyQuestLoader num3 = 2; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span89 = CollectionsMarshal.AsSpan(list89); - index3 = 0; - span89[index3] = 388; - index3++; - span89[index3] = 144; + Span span40 = CollectionsMarshal.AsSpan(list89); + span40[0] = 388; + span40[1] = 144; skipAetheryteCondition.InTerritory = list89; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj65.SkipConditions = skipConditions; @@ -48853,26 +40460,21 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list90)[0] = "plogon_enjoyer"; questRoot10.Author = list90; - index = 6; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference69 = ref span91[num]; + num = 6; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span41 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference69 = ref span41[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -48885,8 +40487,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference69 = obj66; - num++; - ref QuestSequence reference70 = ref span91[num]; + ref QuestSequence reference70 = ref span41[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -48894,31 +40495,25 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1003827u, new Vector3(-65.65961f, 0.9481947f, -51.98755f), 130); obj67.Steps = list93; reference70 = obj67; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span41[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj68.Steps = list94; reference71 = obj68; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span41[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 @@ -48926,43 +40521,33 @@ public static class AssemblyQuestLoader num2 = 6; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - ref QuestStep reference73 = ref span95[index2]; + Span span42 = CollectionsMarshal.AsSpan(list95); + ref QuestStep reference73 = ref span42[0]; QuestStep obj70 = new QuestStep(EInteractionType.UseItem, 2001525u, new Vector3(-203.81476f, 27.267822f, -351.76624f), 146) { ItemId = 2000409u }; - 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); + 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); obj70.CompletionQuestVariablesFlags = list96; reference73 = obj70; - index2++; - span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.89648f, 26.681297f, -322.03738f), 146) + span42[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-258.89648f, 26.681297f, -322.03738f), 146) { Mount = true }; - index2++; - span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.12759f, 14.866777f, -187.7578f), 146) + span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.12759f, 14.866777f, -187.7578f), 146) { Fly = true }; - index2++; - ref QuestStep reference74 = ref span95[index2]; + ref QuestStep reference74 = ref span42[3]; QuestStep obj71 = new QuestStep(EInteractionType.UseItem, 2001523u, new Vector3(-105.57721f, 14.999573f, -185.32086f), 146) { ItemId = 2000409u @@ -48970,48 +40555,34 @@ public static class AssemblyQuestLoader num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - 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); + 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); obj71.CompletionQuestVariablesFlags = list97; reference74 = obj71; - index2++; - ref QuestStep reference75 = ref span95[index2]; + ref QuestStep reference75 = ref span42[4]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2001524u, new Vector3(197.4364f, 15.548889f, -450.58368f), 146) { Fly = true, ItemId = 2000409u }; - 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); + 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); obj72.CompletionQuestVariablesFlags = list98; reference75 = obj72; - index2++; - ref QuestStep reference76 = ref span95[index2]; + ref QuestStep reference76 = ref span42[5]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2001522u, new Vector3(22.171326f, 17.868286f, -600.24414f), 146) { Fly = true, @@ -49020,43 +40591,33 @@ public static class AssemblyQuestLoader num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - 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); + 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); obj73.CompletionQuestVariablesFlags = list99; reference76 = obj73; obj69.Steps = list95; reference72 = obj69; - num++; - ref QuestSequence reference77 = ref span91[num]; + ref QuestSequence reference77 = ref span41[4]; QuestSequence obj74 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj74.Steps = list100; reference77 = obj74; - num++; - ref QuestSequence reference78 = ref span91[num]; + ref QuestSequence reference78 = ref span41[5]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -49064,9 +40625,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(567) @@ -49080,26 +40639,21 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list102)[0] = "plogon_enjoyer"; questRoot11.Author = list102; - index = 6; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference79 = ref span103[num]; + num = 6; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span47 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference79 = ref span47[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -49112,8 +40666,7 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference79 = obj76; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span47[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -49121,38 +40674,31 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj77.Steps = list105; reference80 = obj77; - num++; - ref QuestSequence reference81 = ref span103[num]; + ref QuestSequence reference81 = ref span47[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list106 = new List(index2); - CollectionsMarshal.SetCount(list106, index2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num2 = 0; - ref QuestStep reference82 = ref span106[num2]; + num2 = 1; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list106)[0]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(-262.6409f, 14.190942f, 594.23486f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list107 = new List(index3); - CollectionsMarshal.SetCount(list107, index3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new ComplexCombatData + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new ComplexCombatData { DataId = 357u, MinimumKillCount = 5u @@ -49162,8 +40708,7 @@ public static class AssemblyQuestLoader reference82 = obj79; obj78.Steps = list106; reference81 = obj78; - num++; - ref QuestSequence reference83 = ref span103[num]; + ref QuestSequence reference83 = ref span47[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -49171,27 +40716,22 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1003830u, new Vector3(-301.5335f, 5.0000005f, 471.3053f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj80.Steps = list108; reference83 = obj80; - num++; - ref QuestSequence reference84 = ref span103[num]; + ref QuestSequence reference84 = ref span47[4]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -49201,8 +40741,7 @@ public static class AssemblyQuestLoader }; obj81.Steps = list109; reference84 = obj81; - num++; - ref QuestSequence reference85 = ref span103[num]; + ref QuestSequence reference85 = ref span47[5]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -49210,9 +40749,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003817u, new Vector3(-74.57086f, 1.9999951f, -42.404846f), 130); obj82.Steps = list110; reference85 = obj82; questRoot11.QuestSequence = list103; @@ -49222,30 +40759,24 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "liza"; + CollectionsMarshal.AsSpan(list111)[0] = "liza"; questRoot12.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference86 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span48 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference86 = ref span48[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj83.Steps = list113; reference86 = obj83; - num++; - ref QuestSequence reference87 = ref span112[num]; + ref QuestSequence reference87 = ref span48[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -49253,97 +40784,72 @@ public static class AssemblyQuestLoader num2 = 17; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + Span span49 = CollectionsMarshal.AsSpan(list114); + span49[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - index2++; - span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - index2++; - ref QuestStep reference88 = ref span114[index2]; + span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + ref QuestStep reference88 = ref span49[2]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list115; reference88 = questStep5; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - index2++; - ref QuestStep reference89 = ref span114[index2]; + ref QuestStep reference89 = ref span49[8]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list116; reference89 = questStep6; - index2++; - span114[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) + span49[9] = 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) }; - 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) + 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) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - index2++; - span114[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + span49[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -49356,8 +40862,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -49365,8 +40870,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span114[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span49[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -49374,8 +40878,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - ref QuestStep reference90 = ref span114[index2]; + ref QuestStep reference90 = ref span49[15]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -49392,9 +40895,7 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span117 = CollectionsMarshal.AsSpan(list117); - index3 = 0; - span117[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -49402,49 +40903,39 @@ public static class AssemblyQuestLoader }; obj85.DialogueChoices = list117; reference90 = obj85; - index2++; - ref QuestStep reference91 = ref span114[index2]; + ref QuestStep reference91 = ref span49[16]; QuestStep obj86 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - 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); + 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); obj86.CompletionQuestVariablesFlags = list118; reference91 = obj86; obj84.Steps = list114; reference87 = obj84; - num++; - ref QuestSequence reference92 = ref span112[num]; + ref QuestSequence reference92 = ref span48[2]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.Uldah }; - num2++; - span119[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + span53[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -49457,8 +40948,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span119[num2] = new QuestStep(EInteractionType.None, null, null, 130) + span53[2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -49466,8 +40956,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span119[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + span53[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -49484,18 +40973,14 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "liza"; + CollectionsMarshal.AsSpan(list120)[0] = "liza"; questRoot13.Author = list120; questRoot13.IsSeasonalQuest = true; questRoot13.SeasonalQuestExpiry = new DateTime(2025, 12, 16, 14, 59, 0, DateTimeKind.Utc); - index = 1; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference93 = ref span121[num]; + num = 1; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + ref QuestSequence reference93 = ref CollectionsMarshal.AsSpan(list121)[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -49503,9 +40988,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - ref QuestStep reference94 = ref span122[index2]; + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep obj89 = new QuestStep(EInteractionType.AcceptQuest, 1052475u, new Vector3(-22.354492f, 10.13581f, -241.41296f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -49523,9 +41006,7 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - index3 = 0; - span123[index3] = 133; + CollectionsMarshal.AsSpan(list123)[0] = 133; obj90.InTerritory = list123; skipConditions2.AetheryteShortcutIf = obj90; obj89.SkipConditions = skipConditions2; @@ -49539,30 +41020,24 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "liza"; + CollectionsMarshal.AsSpan(list124)[0] = "liza"; questRoot14.Author = list124; - index = 3; - List list125 = new List(index); - CollectionsMarshal.SetCount(list125, index); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference95 = ref span125[num]; + num = 3; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + Span span54 = CollectionsMarshal.AsSpan(list125); + ref QuestSequence reference95 = ref span54[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj91.Steps = list126; reference95 = obj91; - num++; - ref QuestSequence reference96 = ref span125[num]; + ref QuestSequence reference96 = ref span54[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -49570,97 +41045,72 @@ public static class AssemblyQuestLoader num2 = 17; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + Span span55 = CollectionsMarshal.AsSpan(list127); + span55[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - index2++; - span127[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - index2++; - ref QuestStep reference97 = ref span127[index2]; + span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + ref QuestStep reference97 = ref span55[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list128; reference97 = questStep7; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - 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) + 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) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - index2++; - ref QuestStep reference98 = ref span127[index2]; + ref QuestStep reference98 = ref span55[10]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list129; reference98 = questStep8; - index2++; - span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001286u, new Vector3(-88.9754f, 2.55f, -51.163513f), 130) + span55[11] = 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) }; - index2++; - span127[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + span55[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -49673,8 +41123,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -49682,8 +41131,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span127[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span55[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -49691,8 +41139,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - ref QuestStep reference99 = ref span127[index2]; + ref QuestStep reference99 = ref span55[15]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -49706,12 +41153,10 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index3 = 1; - List list130 = new List(index3); - CollectionsMarshal.SetCount(list130, index3); - Span span130 = CollectionsMarshal.AsSpan(list130); - num3 = 0; - span130[num3] = new DialogueChoice + num3 = 1; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -49719,8 +41164,7 @@ public static class AssemblyQuestLoader }; obj93.DialogueChoices = list130; reference99 = obj93; - index2++; - ref QuestStep reference100 = ref span127[index2]; + ref QuestStep reference100 = ref span55[16]; QuestStep obj94 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah @@ -49728,40 +41172,31 @@ public static class AssemblyQuestLoader num3 = 6; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - 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); + 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); obj94.CompletionQuestVariablesFlags = list131; reference100 = obj94; obj92.Steps = list127; reference96 = obj92; - num++; - ref QuestSequence reference101 = ref span125[num]; + ref QuestSequence reference101 = ref span54[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.Uldah }; - num2++; - span132[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + span59[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -49774,8 +41209,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span132[num2] = new QuestStep(EInteractionType.None, null, null, 130) + span59[2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -49783,8 +41217,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span132[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -49801,16 +41234,13 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span133 = CollectionsMarshal.AsSpan(list133); - index = 0; - span133[index] = "liza"; + CollectionsMarshal.AsSpan(list133)[0] = "liza"; questRoot15.Author = list133; - index = 3; - List list134 = new List(index); - CollectionsMarshal.SetCount(list134, index); - Span span134 = CollectionsMarshal.AsSpan(list134); - num = 0; - ref QuestSequence reference102 = ref span134[num]; + num = 3; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + Span span60 = CollectionsMarshal.AsSpan(list134); + ref QuestSequence reference102 = ref span60[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -49818,111 +41248,83 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj96.Steps = list135; reference102 = obj96; - num++; - ref QuestSequence reference103 = ref span134[num]; + ref QuestSequence reference103 = ref span60[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - num2++; - span136[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); - num2++; - ref QuestStep reference104 = ref span136[num2]; + span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(95.43315f, 4f, -105.26365f), 130); + ref QuestStep reference104 = ref span61[2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1003908u, new Vector3(137.95679f, 4.041112f, -41.09259f), 131); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list137; reference104 = questStep9; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - 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) + 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) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - num2++; - ref QuestStep reference105 = ref span136[num2]; + ref QuestStep reference105 = ref span61[10]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list138; reference105 = questStep10; - num2++; - span136[num2] = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + span61[11] = 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) }; - num2++; - span136[num2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + span61[12] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131, AethernetShortcut = new AethernetShortcut @@ -49935,8 +41337,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[13] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule, SkipConditions = new SkipConditions @@ -49944,8 +41345,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span61[14] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist, SkipConditions = new SkipConditions @@ -49953,8 +41353,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - num2++; - ref QuestStep reference106 = ref span136[num2]; + ref QuestStep reference106 = ref span61[15]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1001854u, new Vector3(-19.36377f, 34f, -42.588013f), 131) { TargetTerritoryId = (ushort)130, @@ -49968,12 +41367,10 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index3 = 1; - List list139 = new List(index3); - CollectionsMarshal.SetCount(list139, index3); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new DialogueChoice + num3 = 1; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -49981,8 +41378,7 @@ public static class AssemblyQuestLoader }; obj98.DialogueChoices = list139; reference106 = obj98; - num2++; - ref QuestStep reference107 = ref span136[num2]; + ref QuestStep reference107 = ref span61[16]; QuestStep obj99 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah @@ -49990,25 +41386,18 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - 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); + 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); obj99.CompletionQuestVariablesFlags = list140; reference107 = obj99; obj97.Steps = list136; reference103 = obj97; - num++; - ref QuestSequence reference108 = ref span134[num]; + ref QuestSequence reference108 = ref span60[2]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -50016,14 +41405,12 @@ public static class AssemblyQuestLoader num2 = 4; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + Span span65 = CollectionsMarshal.AsSpan(list141); + span65[0] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - index2++; - span141[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) + span65[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation, AethernetShortcut = new AethernetShortcut @@ -50036,8 +41423,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span141[index2] = new QuestStep(EInteractionType.None, null, null, 130) + span65[2] = new QuestStep(EInteractionType.None, null, null, 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -50045,8 +41431,7 @@ public static class AssemblyQuestLoader StepIf = new SkipStepConditions() } }; - index2++; - span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + span65[3] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -50063,30 +41448,24 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "liza"; + CollectionsMarshal.AsSpan(list142)[0] = "liza"; questRoot16.Author = list142; - index = 5; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference109 = ref span143[num]; + num = 5; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span66 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference109 = ref span66[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj101.Steps = list144; reference109 = obj101; - num++; - ref QuestSequence reference110 = ref span143[num]; + ref QuestSequence reference110 = ref span66[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -50094,40 +41473,30 @@ public static class AssemblyQuestLoader num2 = 8; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 145) + Span span67 = CollectionsMarshal.AsSpan(list145); + span67[0] = new QuestStep(EInteractionType.EquipItem, null, null, 145) { ItemId = 2995u }; - index2++; - span145[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 145) + span67[1] = new QuestStep(EInteractionType.EquipItem, null, null, 145) { ItemId = 3306u }; - index2++; - ref QuestStep reference111 = ref span145[index2]; + ref QuestStep reference111 = ref span67[2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1004327u, new Vector3(-412.03937f, -48.15f, 102.61682f), 145); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list146; reference111 = questStep11; - index2++; - ref QuestStep reference112 = ref span145[index2]; + ref QuestStep reference112 = ref span67[3]; QuestStep obj103 = new QuestStep(EInteractionType.Jump, null, new Vector3(-409.44067f, -48.15f, 101.391624f), 145) { JumpDestination = new JumpDestination @@ -50141,169 +41510,131 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list147; skipConditions3.StepIf = skipStepConditions; obj103.SkipConditions = skipConditions3; reference112 = obj103; - index2++; - ref QuestStep reference113 = ref span145[index2]; + ref QuestStep reference113 = ref span67[4]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1004506u, new Vector3(-416.64764f, -54.15f, 96.42175f), 145); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list148; reference113 = questStep12; - index2++; - ref QuestStep reference114 = ref span145[index2]; + ref QuestStep reference114 = ref span67[5]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list149; reference114 = questStep13; - index2++; - ref QuestStep reference115 = ref span145[index2]; + ref QuestStep reference115 = ref span67[6]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1004556u, new Vector3(-394.85773f, -57.30005f, 173.32715f), 145); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list150; reference115 = questStep14; - index2++; - ref QuestStep reference116 = ref span145[index2]; + ref QuestStep reference116 = ref span67[7]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list151; reference116 = questStep15; obj102.Steps = list145; reference110 = obj102; - num++; - ref QuestSequence reference117 = ref span143[num]; + ref QuestSequence reference117 = ref span66[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj104.Steps = list152; reference117 = obj104; - num++; - ref QuestSequence reference118 = ref span143[num]; + ref QuestSequence reference118 = ref span66[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - num2 = 1; + num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1004330u, new Vector3(-221.45422f, -30.074055f, 200.15259f), 145); + 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); obj105.Steps = list153; reference118 = obj105; - num++; - ref QuestSequence reference119 = ref span143[num]; + ref QuestSequence reference119 = ref span66[4]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span154[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span75[4] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span75[5] = new QuestStep(EInteractionType.CompleteQuest, 1005116u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj106.Steps = list154; reference119 = obj106; questRoot16.QuestSequence = list143; @@ -50313,16 +41644,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list155)[0] = "Cacahuetes"; questRoot17.Author = list155; - index = 2; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference120 = ref span156[num]; + num = 2; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span76 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference120 = ref span76[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -50330,30 +41658,23 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002281u, new Vector3(-115.739685f, 41.600117f, 118.88306f), 131); obj107.Steps = list157; reference120 = obj107; - num++; - ref QuestSequence reference121 = ref span156[num]; + ref QuestSequence reference121 = ref span76[1]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list158 = new List(index2); - CollectionsMarshal.SetCount(list158, index2); - Span span158 = CollectionsMarshal.AsSpan(list158); - num2 = 0; - ref QuestStep reference122 = ref span158[num2]; + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131); - index3 = 1; - List list159 = new List(index3); - CollectionsMarshal.SetCount(list159, index3); - Span span159 = CollectionsMarshal.AsSpan(list159); - num3 = 0; - span159[num3] = new DialogueChoice + num3 = 1; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSALC011_00575_Q1_1") @@ -50369,16 +41690,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot18.Author = list160; - index = 2; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference123 = ref span161[num]; + num = 2; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span77 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference123 = ref span77[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -50386,23 +41704,18 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011030u, new Vector3(7.522644f, -1.7667189E-06f, -68.589294f), 388); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011030u, new Vector3(7.522644f, -1.7667189E-06f, -68.589294f), 388); obj109.Steps = list162; reference123 = obj109; - num++; - ref QuestSequence reference124 = ref span161[num]; + ref QuestSequence reference124 = ref span77[1]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -50415,16 +41728,13 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span164 = CollectionsMarshal.AsSpan(list164); - index = 0; - span164[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list164)[0] = "JerryWester"; questRoot19.Author = list164; - index = 5; - List list165 = new List(index); - CollectionsMarshal.SetCount(list165, index); - Span span165 = CollectionsMarshal.AsSpan(list165); - num = 0; - ref QuestSequence reference125 = ref span165[num]; + num = 5; + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + Span span78 = CollectionsMarshal.AsSpan(list165); + ref QuestSequence reference125 = ref span78[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -50432,9 +41742,7 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -50448,28 +41756,24 @@ public static class AssemblyQuestLoader }; obj111.Steps = list166; reference125 = obj111; - num++; - ref QuestSequence reference126 = ref span165[num]; + ref QuestSequence reference126 = ref span78[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span167[num2] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); + span79[1] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); obj112.Steps = list167; reference126 = obj112; - num++; - ref QuestSequence reference127 = ref span165[num]; + ref QuestSequence reference127 = ref span78[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -50477,42 +41781,35 @@ public static class AssemblyQuestLoader num2 = 3; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.Interact, 1004349u, new Vector3(444.99866f, -4.487237f, -453.02515f), 156) + Span span80 = CollectionsMarshal.AsSpan(list168); + span80[0] = new QuestStep(EInteractionType.Interact, 1004349u, new Vector3(444.99866f, -4.487237f, -453.02515f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj113.Steps = list168; reference127 = obj113; - num++; - ref QuestSequence reference128 = ref span165[num]; + ref QuestSequence reference128 = ref span78[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj114.Steps = list169; reference128 = obj114; - num++; - ref QuestSequence reference129 = ref span165[num]; + ref QuestSequence reference129 = ref span78[4]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -50520,15 +41817,13 @@ public static class AssemblyQuestLoader num2 = 2; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span81 = CollectionsMarshal.AsSpan(list170); + span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(586) }; @@ -50541,26 +41836,21 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list171)[0] = "JerryWester"; questRoot20.Author = list171; - index = 3; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference130 = ref span172[num]; + num = 3; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span82 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference130 = ref span82[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -50573,8 +41863,7 @@ public static class AssemblyQuestLoader }; obj116.Steps = list173; reference130 = obj116; - num++; - ref QuestSequence reference131 = ref span172[num]; + ref QuestSequence reference131 = ref span82[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -50582,15 +41871,13 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.77087f, 367.76678f, -658.1668f), 155) + Span span83 = CollectionsMarshal.AsSpan(list174); + span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.77087f, 367.76678f, -658.1668f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span174[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014199u, new Vector3(531.33435f, 348.49677f, -737.4227f), 155) + span83[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014199u, new Vector3(531.33435f, 348.49677f, -737.4227f), 155) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -50600,24 +41887,21 @@ public static class AssemblyQuestLoader }; obj117.Steps = list174; reference131 = obj117; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span82[2]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(588) }; @@ -50630,16 +41914,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; questRoot21.Author = list176; - index = 5; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference133 = ref span177[num]; + num = 5; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span85 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference133 = ref span85[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -50647,9 +41928,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -50662,18 +41941,16 @@ public static class AssemblyQuestLoader }; obj119.Steps = list178; reference133 = obj119; - num++; - ref QuestSequence reference134 = ref span177[num]; + ref QuestSequence reference134 = ref span85[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list179 = new List(index2); - CollectionsMarshal.SetCount(list179, index2); - Span span179 = CollectionsMarshal.AsSpan(list179); - num2 = 0; - ref QuestStep reference135 = ref span179[num2]; + num2 = 4; + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + Span span86 = CollectionsMarshal.AsSpan(list179); + ref QuestStep reference135 = ref span86[0]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1011920u, new Vector3(519.8595f, -51.071976f, 88.24292f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather @@ -50681,69 +41958,47 @@ public static class AssemblyQuestLoader num3 = 6; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - 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); + 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); obj121.CompletionQuestVariablesFlags = list180; reference135 = obj121; - num2++; - span179[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.8876f, -48.989826f, 34.93356f), 398); - num2++; - ref QuestStep reference136 = ref span179[num2]; + span86[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.8876f, -48.989826f, 34.93356f), 398); + ref QuestStep reference136 = ref span86[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1011919u, new Vector3(497.82556f, -49.790283f, 11.825684f), 398); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list181; reference136 = questStep17; - num2++; - ref QuestStep reference137 = ref span179[num2]; + ref QuestStep reference137 = ref span86[3]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list182; reference137 = questStep18; obj120.Steps = list179; reference134 = obj120; - num++; - ref QuestSequence reference138 = ref span177[num]; + ref QuestSequence reference138 = ref span85[2]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -50751,9 +42006,8 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) + Span span90 = CollectionsMarshal.AsSpan(list183); + span90[0] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) { StopDistance = 0.25f, Fly = true, @@ -50765,8 +42019,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span183[index2] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) + span90[1] = new QuestStep(EInteractionType.Interact, 2005574u, new Vector3(447.07397f, -47.715027f, -283.68048f), 398) { Fly = false, SkipConditions = new SkipConditions @@ -50779,29 +42032,17 @@ public static class AssemblyQuestLoader }; obj122.Steps = list183; reference138 = obj122; - num++; - ref QuestSequence reference139 = ref span177[num]; + ref QuestSequence reference139 = ref span85[3]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2005573u, new Vector3(441.94702f, -21.530518f, -545.03705f), 398) { StopDistance = 0.25f, @@ -50809,12 +42050,10 @@ public static class AssemblyQuestLoader ItemId = 2001590u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list185 = new List(index3); - CollectionsMarshal.SetCount(list185, index3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = 4373u; + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = 4373u; obj124.KillEnemyDataIds = list185; obj124.SkipConditions = new SkipConditions { @@ -50824,8 +42063,7 @@ public static class AssemblyQuestLoader } }; reference140 = obj124; - num2++; - ref QuestStep reference141 = ref span184[num2]; + ref QuestStep reference141 = ref span91[2]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 2005573u, new Vector3(441.94702f, -21.530518f, -545.03705f), 398) { StopDistance = 0.25f, @@ -50837,9 +42075,7 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = 4373u; + CollectionsMarshal.AsSpan(list186)[0] = 4373u; obj125.KillEnemyDataIds = list186; obj125.SkipConditions = new SkipConditions { @@ -50851,8 +42087,7 @@ public static class AssemblyQuestLoader reference141 = obj125; obj123.Steps = list184; reference139 = obj123; - num++; - ref QuestSequence reference142 = ref span177[num]; + ref QuestSequence reference142 = ref span85[4]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -50860,15 +42095,13 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span92 = CollectionsMarshal.AsSpan(list187); + span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(596) }; @@ -50881,33 +42114,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot22.Author = list188; - index = 2; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference143 = ref span189[num]; + num = 2; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span93 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference143 = ref span93[0]; QuestSequence obj127 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list190)[0]; QuestStep questStep19 = new QuestStep(EInteractionType.AcceptQuest, 1003987u, new Vector3(33.37146f, 4.0999947f, -151.99518f), 182); - index3 = 1; - List list191 = new List(index3); - CollectionsMarshal.SetCount(list191, index3); - Span span191 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span191[num3] = new DialogueChoice + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "opening/OpeningUldah", @@ -50918,8 +42144,7 @@ public static class AssemblyQuestLoader reference144 = questStep19; obj127.Steps = list190; reference143 = obj127; - num++; - ref QuestSequence reference145 = ref span189[num]; + ref QuestSequence reference145 = ref span93[1]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -50927,9 +42152,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003988u, new Vector3(21.072632f, 7.45f, -78.84338f), 182); obj128.Steps = list192; reference145 = obj128; questRoot22.QuestSequence = list189; @@ -50939,26 +42162,21 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "liza"; + CollectionsMarshal.AsSpan(list193)[0] = "liza"; questRoot23.Author = list193; - index = 2; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference146 = ref span194[num]; + num = 2; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span94 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference146 = ref span94[0]; QuestSequence obj129 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list195 = new List(num2); + CollectionsMarshal.SetCount(list195, num2); + ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list195)[0]; QuestStep obj130 = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -50968,17 +42186,14 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - Span span196 = CollectionsMarshal.AsSpan(list196); - index3 = 0; - span196[index3] = 130; + CollectionsMarshal.AsSpan(list196)[0] = 130; skipStepConditions2.NotInTerritory = list196; skipConditions4.StepIf = skipStepConditions2; obj130.SkipConditions = skipConditions4; reference147 = obj130; obj129.Steps = list195; reference146 = obj129; - num++; - ref QuestSequence reference148 = ref span194[num]; + ref QuestSequence reference148 = ref span94[1]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -50986,24 +42201,20 @@ public static class AssemblyQuestLoader num2 = 4; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) + Span span95 = CollectionsMarshal.AsSpan(list197); + span95[0] = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131 }; - index2++; - span197[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span95[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahChamberOfRule }; - index2++; - span197[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span95[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahAlchemist }; - index2++; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) + span95[3] = new QuestStep(EInteractionType.CompleteQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { AethernetShortcut = new AethernetShortcut { @@ -51020,26 +42231,21 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list198)[0] = "JerryWester"; questRoot24.Author = list198; - index = 10; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference149 = ref span199[num]; + num = 10; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span96 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference149 = ref span96[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -51052,8 +42258,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list200; reference149 = obj132; - num++; - ref QuestSequence reference150 = ref span199[num]; + ref QuestSequence reference150 = ref span96[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -51061,36 +42266,30 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj133.Steps = list201; reference150 = obj133; - num++; - ref QuestSequence reference151 = ref span199[num]; + ref QuestSequence reference151 = ref span96[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)138 }; - num2++; - span202[num2] = new QuestStep(EInteractionType.Interact, 1013287u, new Vector3(-297.6883f, -41.69223f, 408.5603f), 138); + span97[1] = new QuestStep(EInteractionType.Interact, 1013287u, new Vector3(-297.6883f, -41.69223f, 408.5603f), 138); obj134.Steps = list202; reference151 = obj134; - num++; - ref QuestSequence reference152 = ref span199[num]; + ref QuestSequence reference152 = ref span96[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -51098,42 +42297,34 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - ref QuestStep reference153 = ref span203[index2]; + ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list203)[0]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, 1013292u, new Vector3(-229.8772f, -37.628788f, 545.15906f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + Span span98 = CollectionsMarshal.AsSpan(list204); + span98[0] = 4361u; + span98[1] = 4362u; obj136.KillEnemyDataIds = list204; reference153 = obj136; obj135.Steps = list203; reference152 = obj135; - num++; - ref QuestSequence reference154 = ref span199[num]; + ref QuestSequence reference154 = ref span96[4]; QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj137.Steps = list205; reference154 = obj137; - num++; - ref QuestSequence reference155 = ref span199[num]; + ref QuestSequence reference155 = ref span96[5]; QuestSequence obj138 = new QuestSequence { Sequence = 5 @@ -51141,9 +42332,7 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - ref QuestStep reference156 = ref span206[index2]; + ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list206)[0]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, 1013334u, new Vector3(-276.60034f, -37.47169f, 586.96875f), 138) { Fly = true, @@ -51152,31 +42341,25 @@ public static class AssemblyQuestLoader num3 = 2; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span207 = CollectionsMarshal.AsSpan(list207); - index3 = 0; - span207[index3] = 4361u; - index3++; - span207[index3] = 4362u; + Span span99 = CollectionsMarshal.AsSpan(list207); + span99[0] = 4361u; + span99[1] = 4362u; obj139.KillEnemyDataIds = list207; reference156 = obj139; obj138.Steps = list206; reference155 = obj138; - num++; - ref QuestSequence reference157 = ref span199[num]; + ref QuestSequence reference157 = ref span96[6]; QuestSequence obj140 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj140.Steps = list208; reference157 = obj140; - num++; - ref QuestSequence reference158 = ref span199[num]; + ref QuestSequence reference158 = ref span96[7]; QuestSequence obj141 = new QuestSequence { Sequence = 7 @@ -51184,42 +42367,34 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference159 = ref span209[index2]; + ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list209)[0]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 1013338u, new Vector3(-253.25403f, -39.465584f, 661.21924f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + Span span100 = CollectionsMarshal.AsSpan(list210); + span100[0] = 4402u; + span100[1] = 4403u; obj142.KillEnemyDataIds = list210; reference159 = obj142; obj141.Steps = list209; reference158 = obj141; - num++; - ref QuestSequence reference160 = ref span199[num]; + ref QuestSequence reference160 = ref span96[8]; QuestSequence obj143 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj143.Steps = list211; reference160 = obj143; - num++; - ref QuestSequence reference161 = ref span199[num]; + ref QuestSequence reference161 = ref span96[9]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -51227,9 +42402,7 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013282u, new Vector3(304.1886f, -36.405907f, 332.69226f), 138) { NextQuestId = new QuestId(1677) }; @@ -51242,26 +42415,21 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "liza"; + CollectionsMarshal.AsSpan(list213)[0] = "liza"; questRoot25.Author = list213; - index = 2; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference162 = ref span214[num]; + num = 2; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span101 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference162 = ref span101[0]; QuestSequence obj145 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list215)[0]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1002282u, new Vector3(3.5552979f, 7.5999613f, 153.2157f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -51279,17 +42447,14 @@ public static class AssemblyQuestLoader num3 = 1; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span216 = CollectionsMarshal.AsSpan(list216); - index3 = 0; - span216[index3] = 131; + CollectionsMarshal.AsSpan(list216)[0] = 131; obj147.InTerritory = list216; skipConditions5.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions5; reference163 = obj146; obj145.Steps = list215; reference162 = obj145; - num++; - ref QuestSequence reference164 = ref span214[num]; + ref QuestSequence reference164 = ref span101[1]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -51297,16 +42462,12 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - ref QuestStep reference165 = ref span217[index2]; + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list217)[0]; QuestStep questStep20 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131); - index3 = 1; - List list218 = new List(index3); - CollectionsMarshal.SetCount(list218, index3); - Span span218 = CollectionsMarshal.AsSpan(list218); - num3 = 0; - span218[num3] = new DialogueChoice + num3 = 1; + List list218 = new List(num3); + CollectionsMarshal.SetCount(list218, num3); + CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSMIN011_00597_Q1_000_1") @@ -51323,26 +42484,21 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list219)[0] = "JerryWester"; questRoot26.Author = list219; - index = 9; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference166 = ref span220[num]; + num = 9; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span102 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference166 = ref span102[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -51355,8 +42511,7 @@ public static class AssemblyQuestLoader }; obj149.Steps = list221; reference166 = obj149; - num++; - ref QuestSequence reference167 = ref span220[num]; + ref QuestSequence reference167 = ref span102[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -51364,38 +42519,32 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span103 = CollectionsMarshal.AsSpan(list222); + span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Mount = true }; - index2++; - span222[index2] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) + span103[1] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) { Fly = true }; obj150.Steps = list222; reference167 = obj150; - num++; - ref QuestSequence reference168 = ref span220[num]; + ref QuestSequence reference168 = ref span102[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj151.Steps = list223; reference168 = obj151; - num++; - ref QuestSequence reference169 = ref span220[num]; + ref QuestSequence reference169 = ref span102[3]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -51403,33 +42552,27 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Emote, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Emote, 1014284u, new Vector3(384.2068f, -0.39099246f, 65.90369f), 139) { Emote = EEmote.Slap }; obj152.Steps = list224; reference169 = obj152; - num++; - ref QuestSequence reference170 = ref span220[num]; + ref QuestSequence reference170 = ref span102[4]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj153.Steps = list225; reference170 = obj153; - num++; - ref QuestSequence reference171 = ref span220[num]; + ref QuestSequence reference171 = ref span102[5]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -51437,9 +42580,7 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - ref QuestStep reference172 = ref span226[index2]; + ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list226)[0]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 1013310u, new Vector3(354.63477f, 23.944334f, -133.44019f), 139) { Fly = true, @@ -51448,31 +42589,25 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span227 = CollectionsMarshal.AsSpan(list227); - index3 = 0; - span227[index3] = 4404u; - index3++; - span227[index3] = 4405u; + Span span104 = CollectionsMarshal.AsSpan(list227); + span104[0] = 4404u; + span104[1] = 4405u; obj155.KillEnemyDataIds = list227; reference172 = obj155; obj154.Steps = list226; reference171 = obj154; - num++; - ref QuestSequence reference173 = ref span220[num]; + ref QuestSequence reference173 = ref span102[6]; QuestSequence obj156 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj156.Steps = list228; reference173 = obj156; - num++; - ref QuestSequence reference174 = ref span220[num]; + ref QuestSequence reference174 = ref span102[7]; QuestSequence obj157 = new QuestSequence { Sequence = 7 @@ -51480,28 +42615,23 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 1013307u, new Vector3(281.69678f, 38.53493f, -176.74524f), 139); + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1013307u, new Vector3(281.69678f, 38.53493f, -176.74524f), 139); obj157.Steps = list229; reference174 = obj157; - num++; - ref QuestSequence reference175 = ref span220[num]; + ref QuestSequence reference175 = ref span102[8]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span230[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(601) }; @@ -51514,16 +42644,13 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - Span span231 = CollectionsMarshal.AsSpan(list231); - index = 0; - span231[index] = "liza"; + CollectionsMarshal.AsSpan(list231)[0] = "liza"; questRoot27.Author = list231; - index = 2; - List list232 = new List(index); - CollectionsMarshal.SetCount(list232, index); - Span span232 = CollectionsMarshal.AsSpan(list232); - num = 0; - ref QuestSequence reference176 = ref span232[num]; + num = 2; + List list232 = new List(num); + CollectionsMarshal.SetCount(list232, num); + Span span106 = CollectionsMarshal.AsSpan(list232); + ref QuestSequence reference176 = ref span106[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -51531,9 +42658,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference177 = ref span233[index2]; + ref QuestStep reference177 = ref CollectionsMarshal.AsSpan(list233)[0]; QuestStep obj160 = new QuestStep(EInteractionType.AcceptQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -51548,45 +42673,38 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list234 = new List(index3); - CollectionsMarshal.SetCount(list234, index3); - Span span234 = CollectionsMarshal.AsSpan(list234); - num3 = 0; - span234[num3] = 131; + num3 = 1; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + CollectionsMarshal.AsSpan(list234)[0] = 131; obj161.InTerritory = list234; skipConditions6.AetheryteShortcutIf = obj161; obj160.SkipConditions = skipConditions6; reference177 = obj160; obj159.Steps = list233; reference176 = obj159; - num++; - ref QuestSequence reference178 = ref span232[num]; + ref QuestSequence reference178 = ref span106[1]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list235 = new List(index2); - CollectionsMarshal.SetCount(list235, index2); - Span span235 = CollectionsMarshal.AsSpan(list235); - num2 = 0; - ref QuestStep reference179 = ref span235[num2]; + num2 = 2; + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + Span span107 = CollectionsMarshal.AsSpan(list235); + ref QuestStep reference179 = ref span107[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 131); num3 = 1; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - Span span236 = CollectionsMarshal.AsSpan(list236); - index3 = 0; - span236[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list236)[0] = new GatheredItem { ItemId = 5106u, ItemCount = 10 }; questStep21.ItemsToGather = list236; reference179 = questStep21; - num2++; - ref QuestStep reference180 = ref span235[num2]; + ref QuestStep reference180 = ref span107[1]; QuestStep obj163 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -51598,14 +42716,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + Span span108 = CollectionsMarshal.AsSpan(list237); + span108[0] = 130; + span108[1] = 131; skipAetheryteCondition2.InTerritory = list237; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition2; obj163.SkipConditions = skipConditions7; @@ -51623,16 +42739,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -51640,9 +42753,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -51660,42 +42771,35 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = 131; + CollectionsMarshal.AsSpan(list4)[0] = 131; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list5 = new List(index2); - CollectionsMarshal.SetCount(list5, index2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num2 = 0; - ref QuestStep reference4 = ref span5[num2]; + num2 = 2; + List list5 = new List(num2); + CollectionsMarshal.SetCount(list5, num2); + Span span2 = CollectionsMarshal.AsSpan(list5); + ref QuestStep reference4 = ref span2[0]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 131); - index3 = 1; - List list6 = new List(index3); - CollectionsMarshal.SetCount(list6, index3); - Span span6 = CollectionsMarshal.AsSpan(list6); - num3 = 0; - span6[num3] = new GatheredItem + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = new GatheredItem { ItemId = 5432u, ItemCount = 10 }; questStep.ItemsToGather = list6; reference4 = questStep; - num2++; - ref QuestStep reference5 = ref span5[num2]; + ref QuestStep reference5 = ref span2[1]; QuestStep obj5 = new QuestStep(EInteractionType.CompleteQuest, 1002298u, new Vector3(-18.997498f, 6.2f, 157.42725f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -51710,11 +42814,9 @@ public static class AssemblyQuestLoader num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - index3 = 0; - span7[index3] = 130; - index3++; - span7[index3] = 131; + Span span3 = CollectionsMarshal.AsSpan(list7); + span3[0] = 130; + span3[1] = 131; skipAetheryteCondition.InTerritory = list7; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj5.SkipConditions = skipConditions2; @@ -51728,16 +42830,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; questRoot2.Author = list8; - index = 6; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 6; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -51745,9 +42844,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, SkipConditions = new SkipConditions @@ -51760,30 +42857,26 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true }; - num2++; - span11[num2] = new QuestStep(EInteractionType.Interact, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) + span5[1] = new QuestStep(EInteractionType.Interact, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) { Fly = true }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span4[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -51791,26 +42884,21 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Emote, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Emote, 1013316u, new Vector3(398.97766f, 8.611752f, 46.28064f), 139) { Emote = EEmote.Slap }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span9[num]; + ref QuestSequence reference9 = ref span4[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -51818,8 +42906,7 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span4[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -51827,9 +42914,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013312u, new Vector3(-118.88306f, -25.500666f, 42.374268f), 138) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013312u, new Vector3(-118.88306f, -25.500666f, 42.374268f), 138) { Fly = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -51839,18 +42924,15 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span4[5]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2900) }; @@ -51863,16 +42945,13 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list16)[0] = "Cacahuetes"; questRoot3.Author = list16; - index = 2; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 2; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span6 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span6[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -51880,30 +42959,23 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002280u, new Vector3(-35.385742f, 13.599962f, 97.24573f), 131); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span6[1]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list19 = new List(index2); - CollectionsMarshal.SetCount(list19, index2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num2 = 0; - ref QuestStep reference14 = ref span19[num2]; + num2 = 1; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.CompleteQuest, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131); - index3 = 1; - List list20 = new List(index3); - CollectionsMarshal.SetCount(list20, index3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num3 = 0; - span20[num3] = new DialogueChoice + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSGLD011_00608_A1_000_1") @@ -51919,16 +42991,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "liza"; + CollectionsMarshal.AsSpan(list21)[0] = "liza"; questRoot4.Author = list21; - index = 3; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 3; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span7 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span7[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -51936,23 +43005,19 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj14.Steps = list23; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span22[num]; + ref QuestSequence reference16 = ref span7[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference17 = ref span24[num2]; + num2 = 4; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + Span span8 = CollectionsMarshal.AsSpan(list24); + ref QuestStep reference17 = ref span8[0]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-338.71124f, -37.497707f, 243.90338f), 145) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -51960,37 +43025,27 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - index3 = 0; - span25[index3] = 166u; + CollectionsMarshal.AsSpan(list25)[0] = 166u; obj16.KillEnemyDataIds = list25; reference17 = obj16; - num2++; - ref QuestStep reference18 = ref span24[num2]; + ref QuestStep reference18 = ref span8[1]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1003943u, new Vector3(-335.1645f, -37.195824f, 242.20642f), 145) { StopDistance = 7f }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list26; reference18 = obj17; - num2++; - ref QuestStep reference19 = ref span24[num2]; + ref QuestStep reference19 = ref span8[2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1003944u, new Vector3(-335.71375f, -37.370598f, 245.31921f), 145) { StopDistance = 7f @@ -51998,49 +43053,35 @@ public static class AssemblyQuestLoader num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - 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); + 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); obj18.CompletionQuestVariablesFlags = list27; reference19 = obj18; - num2++; - ref QuestStep reference20 = ref span24[num2]; + ref QuestStep reference20 = ref span8[3]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1003942u, new Vector3(-341.81738f, -37.60504f, 243.42712f), 145) { StopDistance = 7f }; - 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); + 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); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; obj15.Steps = list24; reference16 = obj15; - num++; - ref QuestSequence reference21 = ref span22[num]; + ref QuestSequence reference21 = ref span7[2]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -52048,16 +43089,13 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + span12[2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj20.Steps = list29; reference21 = obj20; questRoot4.QuestSequence = list22; @@ -52067,30 +43105,24 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "liza"; + CollectionsMarshal.AsSpan(list30)[0] = "liza"; questRoot5.Author = list30; - index = 5; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference22 = ref span31[num]; + num = 5; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span13 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference22 = ref span13[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj21.Steps = list32; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span31[num]; + ref QuestSequence reference23 = ref span13[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -52098,65 +43130,47 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); obj22.Steps = list33; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span13[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference25 = ref span34[num2]; + num2 = 3; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span14 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference25 = ref span14[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list35; reference25 = questStep3; - num2++; - ref QuestStep reference26 = ref span34[num2]; + ref QuestStep reference26 = ref span14[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003966u, new Vector3(-373.22046f, -56.798405f, 121.99585f), 145); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list36; reference26 = questStep4; - num2++; - ref QuestStep reference27 = ref span34[num2]; + ref QuestStep reference27 = ref span14[2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1003965u, new Vector3(-373.89185f, -55.898407f, 97.795044f), 145) { StopDistance = 7f @@ -52164,25 +43178,18 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - 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); + 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); obj24.CompletionQuestVariablesFlags = list37; reference27 = obj24; obj23.Steps = list34; reference24 = obj23; - num++; - ref QuestSequence reference28 = ref span31[num]; + ref QuestSequence reference28 = ref span13[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -52190,23 +43197,18 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1003964u, new Vector3(-378.53058f, -59.3f, 164.23279f), 145); obj25.Steps = list38; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span31[num]; + ref QuestSequence reference29 = ref span13[4]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj26.Steps = list39; reference29 = obj26; questRoot5.QuestSequence = list31; @@ -52216,16 +43218,13 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot6.Author = list40; - index = 7; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference30 = ref span41[num]; + num = 7; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span18 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference30 = ref span18[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -52233,27 +43232,21 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj27.Steps = list42; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span41[num]; + ref QuestSequence reference31 = ref span18[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj28.Steps = list43; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span41[num]; + ref QuestSequence reference32 = ref span18[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -52261,30 +43254,24 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.UseItem, 2001657u, new Vector3(-541.16125f, -5.2644043f, 46.097534f), 145) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.UseItem, 2001657u, new Vector3(-541.16125f, -5.2644043f, 46.097534f), 145) { ItemId = 2000517u }; obj29.Steps = list44; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span18[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj30.Steps = list45; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span41[num]; + ref QuestSequence reference34 = ref span18[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -52292,27 +43279,21 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1005136u, new Vector3(-522.20953f, -17.077162f, 18.966919f), 145); obj31.Steps = list46; reference34 = obj31; - num++; - ref QuestSequence reference35 = ref span41[num]; + ref QuestSequence reference35 = ref span18[5]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj32.Steps = list47; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span41[num]; + ref QuestSequence reference36 = ref span18[6]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -52320,9 +43301,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145); obj33.Steps = list48; reference36 = obj33; questRoot6.QuestSequence = list41; @@ -52332,30 +43311,24 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot7.Author = list49; - index = 4; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference37 = ref span50[num]; + num = 4; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span19 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference37 = ref span19[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list51; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span19[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -52363,44 +43336,36 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Interact, 1003976u, new Vector3(-549.0349f, 4.824463f, -266.77356f), 145); + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1003976u, new Vector3(-549.0349f, 4.824463f, -266.77356f), 145); obj35.Steps = list52; reference38 = obj35; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span19[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref QuestStep reference40 = ref span53[num2]; + num2 = 2; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + Span span20 = CollectionsMarshal.AsSpan(list53); + ref QuestStep reference40 = ref span20[0]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(-421.59717f, -0.48849356f, -278.41507f), 145) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + Span span21 = CollectionsMarshal.AsSpan(list54); + span21[0] = 18u; + span21[1] = 19u; obj37.KillEnemyDataIds = list54; reference40 = obj37; - num2++; - span53[num2] = new QuestStep(EInteractionType.Interact, 1003975u, new Vector3(-418.57025f, -0.17093202f, -280.38452f), 145); + span20[1] = new QuestStep(EInteractionType.Interact, 1003975u, new Vector3(-418.57025f, -0.17093202f, -280.38452f), 145); obj36.Steps = list53; reference39 = obj36; - num++; - ref QuestSequence reference41 = ref span50[num]; + ref QuestSequence reference41 = ref span19[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -52408,9 +43373,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -52423,30 +43386,24 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot8.Author = list56; - index = 7; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference42 = ref span57[num]; + num = 7; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span22 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference42 = ref span22[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj39.Steps = list58; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span57[num]; + ref QuestSequence reference43 = ref span22[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -52454,27 +43411,21 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); obj40.Steps = list59; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span57[num]; + ref QuestSequence reference44 = ref span22[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj41.Steps = list60; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span57[num]; + ref QuestSequence reference45 = ref span22[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -52482,30 +43433,24 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1003977u, new Vector3(-200.27472f, -28.350327f, 324.75757f), 145); obj42.Steps = list61; reference45 = obj42; - num++; - ref QuestSequence reference46 = ref span57[num]; + ref QuestSequence reference46 = ref span22[4]; QuestSequence obj43 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj43.Steps = list62; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span57[num]; + ref QuestSequence reference47 = ref span22[5]; QuestSequence obj44 = new QuestSequence { Sequence = 5 @@ -52513,23 +43458,18 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1003978u, new Vector3(-442.6795f, -55.694504f, 90.92847f), 145); + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1003978u, new Vector3(-442.6795f, -55.694504f, 90.92847f), 145); obj44.Steps = list63; reference47 = obj44; - num++; - ref QuestSequence reference48 = ref span57[num]; + ref QuestSequence reference48 = ref span22[6]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj45.Steps = list64; reference48 = obj45; questRoot8.QuestSequence = list57; @@ -52539,16 +43479,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot9.Author = list65; - index = 2; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference49 = ref span66[num]; + num = 2; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span23 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference49 = ref span23[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -52556,23 +43493,19 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj46.Steps = list67; reference49 = obj46; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span23[1]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.WesternThanalanHorizon, AethernetShortcut = new AethernetShortcut @@ -52581,8 +43514,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfTheSultana } }; - num2++; - span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); + span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1002065u, new Vector3(60.9292f, 45.14234f, -205.005f), 140); obj47.Steps = list68; reference50 = obj47; questRoot9.QuestSequence = list66; @@ -52592,16 +43524,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot10.Author = list69; - index = 2; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference51 = ref span70[num]; + num = 2; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span25 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference51 = ref span25[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -52609,23 +43538,18 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140); obj48.Steps = list71; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span70[num]; + ref QuestSequence reference52 = ref span25[1]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -52643,16 +43567,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; questRoot11.Author = list73; - index = 2; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference53 = ref span74[num]; + num = 2; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span26 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference53 = ref span26[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -52660,23 +43581,18 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001426u, new Vector3(123.33862f, 30.999996f, -384.9394f), 141); obj50.Steps = list75; reference53 = obj50; - num++; - ref QuestSequence reference54 = ref span74[num]; + ref QuestSequence reference54 = ref span26[1]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj51.Steps = list76; reference54 = obj51; questRoot11.QuestSequence = list74; @@ -52686,16 +43602,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list77)[0] = "WigglyMuffin"; questRoot12.Author = list77; - index = 2; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference55 = ref span78[num]; + num = 2; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span27 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference55 = ref span27[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -52703,9 +43616,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001427u, new Vector3(102.89148f, 30.941309f, -377.95074f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -52718,18 +43629,15 @@ public static class AssemblyQuestLoader }; obj52.Steps = list79; reference55 = obj52; - num++; - ref QuestSequence reference56 = ref span78[num]; + ref QuestSequence reference56 = ref span27[1]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(640) }; @@ -52742,16 +43650,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list81)[0] = "WigglyMuffin"; questRoot13.Author = list81; - index = 3; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference57 = ref span82[num]; + num = 3; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span28 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference57 = ref span28[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -52759,9 +43664,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -52774,25 +43677,21 @@ public static class AssemblyQuestLoader }; obj54.Steps = list83; reference57 = obj54; - num++; - ref QuestSequence reference58 = ref span82[num]; + ref QuestSequence reference58 = ref span28[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, null, 141) { Comment = "Meld materia before Mutamix" }; obj55.Steps = list84; reference58 = obj55; - num++; - ref QuestSequence reference59 = ref span82[num]; + ref QuestSequence reference59 = ref span28[2]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -52800,9 +43699,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001425u, new Vector3(115.12927f, 31.876099f, -392.2027f), 141); obj56.Steps = list85; reference59 = obj56; questRoot13.QuestSequence = list82; @@ -52812,30 +43709,24 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot14.Author = list86; - index = 4; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference60 = ref span87[num]; + num = 4; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span29 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference60 = ref span29[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj57.Steps = list88; reference60 = obj57; - num++; - ref QuestSequence reference61 = ref span87[num]; + ref QuestSequence reference61 = ref span29[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -52843,14 +43734,12 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 2001695u, new Vector3(0.0305846f, 0.92887f, 10.15652f), 210) + Span span30 = CollectionsMarshal.AsSpan(list89); + span30[0] = new QuestStep(EInteractionType.Interact, 2001695u, new Vector3(0.0305846f, 0.92887f, 10.15652f), 210) { TargetTerritoryId = (ushort)131 }; - index2++; - span89[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + span30[1] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -52860,18 +43749,15 @@ public static class AssemblyQuestLoader }; obj58.Steps = list89; reference61 = obj58; - num++; - ref QuestSequence reference62 = ref span87[num]; + ref QuestSequence reference62 = ref span29[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -52881,8 +43767,7 @@ public static class AssemblyQuestLoader }; obj59.Steps = list90; reference62 = obj59; - num++; - ref QuestSequence reference63 = ref span87[num]; + ref QuestSequence reference63 = ref span29[3]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -52890,9 +43775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -52913,16 +43796,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -52930,27 +43810,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -52958,9 +43832,8 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003732u, new Vector3(63.645386f, 45.14341f, -193.59125f), 140) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.UnlockTaxiStand, 1003732u, new Vector3(63.645386f, 45.14341f, -193.59125f), 140) { AethernetShortcut = new AethernetShortcut { @@ -52969,27 +43842,22 @@ public static class AssemblyQuestLoader }, TaxiStandId = (byte)11 }; - index2++; - span5[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) + span2[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 140) { Aetheryte = EAetheryteLocation.WesternThanalanHorizon }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Interact, 1002285u, new Vector3(326.46667f, 63f, -231.64728f), 140); + span2[2] = new QuestStep(EInteractionType.Interact, 1002285u, new Vector3(326.46667f, 63f, -231.64728f), 140); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Duty, null, null, 140) { DutyOptions = new DutyOptions { @@ -52999,8 +43867,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -53008,9 +43875,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004621u, new Vector3(23.11737f, 6.9999914f, -86.533936f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -53025,23 +43890,19 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - num++; - span2[num] = new QuestSequence + span[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[6]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -53051,16 +43912,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list9)[0] = "UcanPatates"; 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]; + num = 3; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -53068,9 +43926,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -53085,29 +43941,25 @@ public static class AssemblyQuestLoader int num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - int num4 = 0; - span12[num4] = 129; - num4++; - span12[num4] = 128; + Span span4 = CollectionsMarshal.AsSpan(list12); + span4[0] = 129; + span4[1] = 128; skipAetheryteCondition.InTerritory = list12; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span3[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list13 = new List(index2); - CollectionsMarshal.SetCount(list13, index2); - Span span13 = CollectionsMarshal.AsSpan(list13); - num2 = 0; - ref QuestStep reference10 = ref span13[num2]; + num2 = 2; + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + Span span5 = CollectionsMarshal.AsSpan(list13); + ref QuestStep reference10 = ref span5[0]; QuestStep obj10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.29642f, 44.499924f, 184.26752f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -53119,29 +43971,24 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num4 = 1; - List list14 = new List(num4); - CollectionsMarshal.SetCount(list14, num4); - Span span14 = CollectionsMarshal.AsSpan(list14); - num3 = 0; - span14[num3] = 135; + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = 135; skipStepConditions.InTerritory = list14; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 2; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - Span span15 = CollectionsMarshal.AsSpan(list15); - num4 = 0; - span15[num4] = 129; - num4++; - span15[num4] = 128; + Span span6 = CollectionsMarshal.AsSpan(list15); + span6[0] = 129; + span6[1] = 128; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj10.SkipConditions = skipConditions2; reference10 = obj10; - num2++; - ref QuestStep reference11 = ref span13[num2]; + ref QuestStep reference11 = ref span5[1]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(21.738638f, 61.836372f, 139.60422f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -53152,33 +43999,25 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - ref ComplexCombatData reference12 = ref span16[num3]; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + ref ComplexCombatData reference12 = ref CollectionsMarshal.AsSpan(list16)[0]; ComplexCombatData obj12 = new ComplexCombatData { DataId = 347u, MinimumKillCount = 5u }; - 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; + 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; obj12.CompletionQuestVariablesFlags = list17; reference12 = obj12; obj11.ComplexCombatData = list16; @@ -53187,34 +44026,25 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = 135; + CollectionsMarshal.AsSpan(list18)[0] = 135; skipAetheryteCondition3.InTerritory = list18; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj11.SkipConditions = skipConditions3; - 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; + 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; obj11.CompletionQuestVariablesFlags = list19; reference11 = obj11; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference13 = ref span10[num]; + ref QuestSequence reference13 = ref span3[2]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -53222,24 +44052,20 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - ref QuestStep reference14 = ref span20[index2]; + Span span9 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference14 = ref span9[0]; 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); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = 135; + CollectionsMarshal.AsSpan(list21)[0] = 135; skipStepConditions2.NotInTerritory = list21; skipConditions4.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions4; reference14 = questStep; - index2++; - ref QuestStep reference15 = ref span20[index2]; + ref QuestStep reference15 = ref span9[1]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -53251,14 +44077,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span10 = CollectionsMarshal.AsSpan(list22); + span10[0] = 129; + span10[1] = 128; skipAetheryteCondition4.InTerritory = list22; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; obj14.SkipConditions = skipConditions5; @@ -53272,30 +44096,24 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "liza"; + CollectionsMarshal.AsSpan(list23)[0] = "liza"; questRoot3.Author = list23; - index = 3; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference16 = ref span24[num]; + num = 3; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span11 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference16 = ref span11[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj15.Steps = list25; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span24[num]; + ref QuestSequence reference17 = ref span11[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -53303,109 +44121,78 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref QuestStep reference18 = ref span26[index2]; + Span span12 = CollectionsMarshal.AsSpan(list26); + ref QuestStep reference18 = ref span12[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list27; reference18 = questStep2; - index2++; - ref QuestStep reference19 = ref span26[index2]; + ref QuestStep reference19 = ref span12[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1004600u, new Vector3(125.993774f, 14.462202f, 278.43127f), 141); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list28; reference19 = questStep3; - index2++; - ref QuestStep reference20 = ref span26[index2]; + ref QuestStep reference20 = ref span12[2]; 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 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list29; skipConditions6.StepIf = skipStepConditions3; questStep4.SkipConditions = skipConditions6; reference20 = questStep4; - index2++; - ref QuestStep reference21 = ref span26[index2]; + ref QuestStep reference21 = ref span12[3]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1004599u, new Vector3(89.86035f, 4.6361504f, 425.40625f), 141); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list30; reference21 = questStep5; obj16.Steps = list26; reference17 = obj16; - num++; - ref QuestSequence reference22 = ref span24[num]; + ref QuestSequence reference22 = ref span11[2]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj17.Steps = list31; reference22 = obj17; questRoot3.QuestSequence = list24; @@ -53415,16 +44202,13 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = "liza"; + CollectionsMarshal.AsSpan(list32)[0] = "liza"; questRoot4.Author = list32; - index = 2; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref QuestSequence reference23 = ref span33[num]; + num = 2; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span17 = CollectionsMarshal.AsSpan(list33); + ref QuestSequence reference23 = ref span17[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -53432,26 +44216,21 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002829u, new Vector3(-157.03064f, 4.0492578f, -2.7314453f), 133) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002829u, new Vector3(-157.03064f, 4.0492578f, -2.7314453f), 133) { StopDistance = 5f }; obj18.Steps = list34; reference23 = obj18; - num++; - ref QuestSequence reference24 = ref span33[num]; + ref QuestSequence reference24 = ref span17[1]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -53469,16 +44248,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot5.Author = list36; - index = 2; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference25 = ref span37[num]; + num = 2; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span18 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference25 = ref span18[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -53486,28 +44262,23 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131); obj20.Steps = list38; reference25 = obj20; - num++; - ref QuestSequence reference26 = ref span37[num]; + ref QuestSequence reference26 = ref span18[1]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShard = EAetheryteLocation.UldahAlchemist }; - num2++; - span39[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(5.7796226f, 30f, -21.571625f), 131) + span19[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(5.7796226f, 30f, -21.571625f), 131) { AethernetShortcut = new AethernetShortcut { @@ -53520,58 +44291,47 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span19[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGladiator }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span19[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahGoldsmith }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span19[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahMiner }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span19[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahWeaver }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) + span19[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 131) { AethernetShard = EAetheryteLocation.UldahSapphireAvenue }; - num2++; - span39[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.335236f, 4f, -110.905876f), 131) + span19[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.335236f, 4f, -110.905876f), 131) { TargetTerritoryId = (ushort)130 }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + span19[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahAdventurers }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) + span19[9] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - num2++; - span39[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) + span19[10] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 130) { Aetheryte = EAetheryteLocation.Uldah }; - num2++; - span39[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) + span19[11] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 130) { AethernetShard = EAetheryteLocation.UldahThaumaturge }; - num2++; - span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) + span19[12] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -53589,16 +44349,13 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot6.Author = list40; - index = 2; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference27 = ref span41[num]; + num = 2; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span20 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference27 = ref span20[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -53606,23 +44363,19 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); obj22.Steps = list42; reference27 = obj22; - num++; - ref QuestSequence reference28 = ref span41[num]; + ref QuestSequence reference28 = ref span20[1]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list43 = new List(index2); - CollectionsMarshal.SetCount(list43, index2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num2 = 0; - ref QuestStep reference29 = ref span43[num2]; + num2 = 3; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span21 = CollectionsMarshal.AsSpan(list43); + ref QuestStep reference29 = ref span21[0]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)128 @@ -53630,9 +44383,7 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span44 = CollectionsMarshal.AsSpan(list44); - num4 = 0; - span44[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list44)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -53640,18 +44391,15 @@ public static class AssemblyQuestLoader }; obj24.DialogueChoices = list44; reference29 = obj24; - num2++; - ref QuestStep reference30 = ref span43[num2]; + ref QuestStep reference30 = ref span21[1]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { TargetTerritoryId = (ushort)132 }; - num4 = 1; - List list45 = new List(num4); - CollectionsMarshal.SetCount(list45, num4); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = new DialogueChoice + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -53659,8 +44407,7 @@ public static class AssemblyQuestLoader }; obj25.DialogueChoices = list45; reference30 = obj25; - num2++; - span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + span21[2] = new QuestStep(EInteractionType.CompleteQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj23.Steps = list43; reference28 = obj23; questRoot6.QuestSequence = list41; @@ -53670,16 +44417,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot7.Author = list46; - index = 4; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference31 = ref span47[num]; + num = 4; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span22 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference31 = ref span22[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -53687,23 +44431,19 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj26.Steps = list48; reference31 = obj26; - num++; - ref QuestSequence reference32 = ref span47[num]; + ref QuestSequence reference32 = ref span22[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AethernetShortcut = new AethernetShortcut @@ -53712,17 +44452,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBlueBadgerGate } }; - num2++; - span49[num2] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) + span23[1] = new QuestStep(EInteractionType.UnlockTaxiStand, 1002980u, new Vector3(22.934265f, -8f, 84.97742f), 148) { TaxiStandId = (byte)9 }; - num2++; - span49[num2] = new QuestStep(EInteractionType.Interact, 1004612u, new Vector3(-114.94629f, -39.702168f, 335.46948f), 148); + span23[2] = new QuestStep(EInteractionType.Interact, 1004612u, new Vector3(-114.94629f, -39.702168f, 335.46948f), 148); obj27.Steps = list49; reference32 = obj27; - num++; - ref QuestSequence reference33 = ref span47[num]; + ref QuestSequence reference33 = ref span22[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -53730,9 +44467,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Duty, null, null, 148) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Duty, null, null, 148) { DutyOptions = new DutyOptions { @@ -53742,18 +44477,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list50; reference33 = obj28; - num++; - ref QuestSequence reference34 = ref span47[num]; + ref QuestSequence reference34 = ref span22[3]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -53766,16 +44498,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot8.Author = list52; - index = 2; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference35 = ref span53[num]; + num = 2; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span24 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference35 = ref span24[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -53783,23 +44512,18 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132); obj30.Steps = list54; reference35 = obj30; - num++; - ref QuestSequence reference36 = ref span53[num]; + ref QuestSequence reference36 = ref span24[1]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -53817,16 +44541,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot9.Author = list56; - index = 4; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference37 = ref span57[num]; + num = 4; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span25 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference37 = ref span25[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -53834,16 +44555,12 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - ref QuestStep reference38 = ref span58[index2]; + ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list58)[0]; 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); - Span span59 = CollectionsMarshal.AsSpan(list59); - num4 = 0; - span59[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANFST302_00680_Q1_000_1") @@ -53852,28 +44569,23 @@ public static class AssemblyQuestLoader reference38 = questStep6; obj32.Steps = list58; reference37 = obj32; - num++; - ref QuestSequence reference39 = ref span57[num]; + ref QuestSequence reference39 = ref span25[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference40 = ref span60[num2]; + num2 = 1; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; - num4 = 1; - List list61 = new List(num4); - CollectionsMarshal.SetCount(list61, num4); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = new DialogueChoice + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANFST302_00680_Q2_000_1"), @@ -53883,8 +44595,7 @@ public static class AssemblyQuestLoader reference40 = obj34; obj33.Steps = list60; reference39 = obj33; - num++; - ref QuestSequence reference41 = ref span57[num]; + ref QuestSequence reference41 = ref span25[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -53892,9 +44603,8 @@ public static class AssemblyQuestLoader num2 = 3; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span26 = CollectionsMarshal.AsSpan(list62); + span26[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -53910,8 +44620,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span62[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + span26[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -53922,8 +44631,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span62[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004886u, new Vector3(30.319702f, 8.422709f, 475.30322f), 152) + span26[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004886u, new Vector3(30.319702f, 8.422709f, 475.30322f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -53940,18 +44648,15 @@ public static class AssemblyQuestLoader }; obj35.Steps = list62; reference41 = obj35; - num++; - ref QuestSequence reference42 = ref span57[num]; + ref QuestSequence reference42 = ref span25[3]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -53964,16 +44669,13 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot10.Author = list64; - index = 4; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference43 = ref span65[num]; + num = 4; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span27 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference43 = ref span27[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -53981,16 +44683,12 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - ref QuestStep reference44 = ref span66[index2]; + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list66)[0]; 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); - Span span67 = CollectionsMarshal.AsSpan(list67); - num4 = 0; - span67[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANSEA302_00681_Q1_000_1") @@ -53999,18 +44697,15 @@ public static class AssemblyQuestLoader reference44 = questStep7; obj37.Steps = list66; reference43 = obj37; - num++; - ref QuestSequence reference45 = ref span65[num]; + ref QuestSequence reference45 = ref span27[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list68 = new List(index2); - CollectionsMarshal.SetCount(list68, index2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref QuestStep reference46 = ref span68[num2]; + num2 = 1; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list68)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f, @@ -54021,12 +44716,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - num4 = 1; - List list69 = new List(num4); - CollectionsMarshal.SetCount(list69, num4); - Span span69 = CollectionsMarshal.AsSpan(list69); - num3 = 0; - span69[num3] = new DialogueChoice + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANSEA302_00681_Q2_000_1"), @@ -54036,8 +44729,7 @@ public static class AssemblyQuestLoader reference46 = obj39; obj38.Steps = list68; reference45 = obj38; - num++; - ref QuestSequence reference47 = ref span65[num]; + ref QuestSequence reference47 = ref span27[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -54045,9 +44737,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004888u, new Vector3(389.2423f, 78.360275f, -349.05017f), 135) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004888u, new Vector3(389.2423f, 78.360275f, -349.05017f), 135) { AethernetShortcut = new AethernetShortcut { @@ -54061,18 +44751,15 @@ public static class AssemblyQuestLoader }; obj40.Steps = list70; reference47 = obj40; - num++; - ref QuestSequence reference48 = ref span65[num]; + ref QuestSequence reference48 = ref span27[3]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -54091,16 +44778,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; questRoot11.Author = list72; - index = 4; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference49 = ref span73[num]; + num = 4; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span28 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference49 = ref span28[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -54108,16 +44792,12 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference50 = ref span74[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list74)[0]; 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); - Span span75 = CollectionsMarshal.AsSpan(list75); - num4 = 0; - span75[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_MANWIL302_00682_Q1_000_1") @@ -54126,28 +44806,23 @@ public static class AssemblyQuestLoader reference50 = questStep8; obj42.Steps = list74; reference49 = obj42; - num++; - ref QuestSequence reference51 = ref span73[num]; + ref QuestSequence reference51 = ref span28[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference52 = ref span76[num2]; + num2 = 1; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list76)[0]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - num4 = 1; - List list77 = new List(num4); - CollectionsMarshal.SetCount(list77, num4); - Span span77 = CollectionsMarshal.AsSpan(list77); - num3 = 0; - span77[num3] = new DialogueChoice + num3 = 1; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_MANWIL302_00682_Q2_000_1"), @@ -54157,8 +44832,7 @@ public static class AssemblyQuestLoader reference52 = obj44; obj43.Steps = list76; reference51 = obj43; - num++; - ref QuestSequence reference53 = ref span73[num]; + ref QuestSequence reference53 = ref span28[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -54166,9 +44840,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004887u, new Vector3(160.7843f, 54.85158f, -45.609253f), 140) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1004887u, new Vector3(160.7843f, 54.85158f, -45.609253f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -54178,18 +44850,15 @@ public static class AssemblyQuestLoader }; obj45.Steps = list78; reference53 = obj45; - num++; - ref QuestSequence reference54 = ref span73[num]; + ref QuestSequence reference54 = ref span28[3]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -54202,16 +44871,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot12.Author = list80; - index = 2; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference55 = ref span81[num]; + num = 2; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span29 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference55 = ref span29[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -54219,36 +44885,29 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132); + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002394u, new Vector3(-69.5354f, -0.50095016f, -9.99469f), 132); obj47.Steps = list82; reference55 = obj47; - num++; - ref QuestSequence reference56 = ref span81[num]; + ref QuestSequence reference56 = ref span29[1]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + span30[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj48.Steps = list83; reference56 = obj48; questRoot12.QuestSequence = list81; @@ -54258,16 +44917,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "liza"; + CollectionsMarshal.AsSpan(list84)[0] = "liza"; questRoot13.Author = list84; - index = 2; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference57 = ref span85[num]; + num = 2; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span31 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference57 = ref span31[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -54275,39 +44931,32 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002388u, new Vector3(95.68933f, 40.250286f, 74.54028f), 128) { StopDistance = 5f }; obj49.Steps = list86; reference57 = obj49; - num++; - ref QuestSequence reference58 = ref span85[num]; + ref QuestSequence reference58 = ref span31[1]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span87[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + span32[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj50.Steps = list87; reference58 = obj50; questRoot13.QuestSequence = list85; @@ -54317,16 +44966,13 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; questRoot14.Author = list88; - index = 2; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference59 = ref span89[num]; + num = 2; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span33 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference59 = ref span33[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -54334,9 +44980,7 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002391u, new Vector3(-144.39618f, 4.1f, -107.22516f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -54349,31 +44993,26 @@ public static class AssemblyQuestLoader }; obj51.Steps = list90; reference59 = obj51; - num++; - ref QuestSequence reference60 = ref span89[num]; + ref QuestSequence reference60 = ref span33[1]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span91[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); + span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1005012u, new Vector3(22.507019f, 0.9999986f, -2.02948f), 212); obj52.Steps = list91; reference60 = obj52; questRoot14.QuestSequence = list89; @@ -54383,16 +45022,13 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "liza"; + CollectionsMarshal.AsSpan(list92)[0] = "liza"; questRoot15.Author = list92; - index = 2; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference61 = ref span93[num]; + num = 2; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span35 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference61 = ref span35[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -54400,23 +45036,18 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002237u, new Vector3(167.55933f, 14.095915f, 683.92444f), 135); obj53.Steps = list94; reference61 = obj53; - num++; - ref QuestSequence reference62 = ref span93[num]; + ref QuestSequence reference62 = ref span35[1]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -54434,16 +45065,13 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot16.Author = list96; - index = 4; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference63 = ref span97[num]; + num = 4; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span36 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference63 = ref span36[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -54451,26 +45079,21 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 7f }; obj55.Steps = list98; reference63 = obj55; - num++; - ref QuestSequence reference64 = ref span97[num]; + ref QuestSequence reference64 = ref span36[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -54480,8 +45103,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list99; reference64 = obj56; - num++; - ref QuestSequence reference65 = ref span97[num]; + ref QuestSequence reference65 = ref span36[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -54489,9 +45111,8 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - ref QuestStep reference66 = ref span100[index2]; + Span span37 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference66 = ref span37[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -54499,9 +45120,7 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - num4 = 0; - span101[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -54509,32 +45128,27 @@ public static class AssemblyQuestLoader }; obj58.DialogueChoices = list101; reference66 = obj58; - index2++; - span100[index2] = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); + span37[1] = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); obj57.Steps = list100; reference65 = obj57; - num++; - ref QuestSequence reference67 = ref span97[num]; + ref QuestSequence reference67 = ref span36[3]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num2 = 0; - ref QuestStep reference68 = ref span102[num2]; + num2 = 2; + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + Span span38 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference68 = ref span38[0]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 }; - num4 = 1; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = new DialogueChoice + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -54542,117 +45156,232 @@ public static class AssemblyQuestLoader }; obj60.DialogueChoices = list103; reference68 = obj60; - num2++; - span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); + span38[1] = 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(697); + QuestId questId17 = new QuestId(693); QuestRoot questRoot17 = new QuestRoot(); num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "JerryWester, Friendly"; + CollectionsMarshal.AsSpan(list104)[0] = "Wigglez"; questRoot17.Author = list104; - index = 3; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference69 = ref span105[num]; + num = 4; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span39 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference69 = ref span39[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - num2 = 2; + num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - ref QuestStep reference70 = ref span106[index2]; - QuestStep obj62 = new QuestStep(EInteractionType.UseItem, null, null, 128) + 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) { ItemId = 30362u }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 1; - List list107 = new List(num3); - CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num4 = 0; - span107[num4] = 140; - skipStepConditions4.InTerritory = list107; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = 140; + skipStepConditions4.InTerritory = list119; skipConditions7.StepIf = skipStepConditions4; - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -54663,135 +45392,113 @@ public static class AssemblyQuestLoader } } }; - obj65.Steps = list112; - reference73 = obj65; - num++; - ref QuestSequence reference74 = ref span111[num]; - QuestSequence obj66 = new QuestSequence + obj73.Steps = list124; + reference81 = obj73; + ref QuestSequence reference82 = ref span45[1]; + QuestSequence obj74 = new QuestSequence { Sequence = 1 }; num2 = 5; - 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) + 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) { Action = EAction.Bootshine }; - index2++; - span113[index2] = new QuestStep(EInteractionType.Action, 2001799u, new Vector3(-105.6365f, 4.9655f, -107.5618f), 130) + span46[1] = new QuestStep(EInteractionType.Action, 2001799u, new Vector3(-105.6365f, 4.9655f, -107.5618f), 130) { Action = EAction.Bootshine }; - index2++; - span113[index2] = new QuestStep(EInteractionType.Action, 2001800u, new Vector3(-77.62268f, 5.0201416f, -128.893f), 130) + span46[2] = new QuestStep(EInteractionType.Action, 2001800u, new Vector3(-77.62268f, 5.0201416f, -128.893f), 130) { Action = EAction.Bootshine }; - index2++; - span113[index2] = new QuestStep(EInteractionType.Action, 2001801u, new Vector3(-74.60144f, 4.8981323f, -130.69354f), 130) + span46[3] = new QuestStep(EInteractionType.Action, 2001801u, new Vector3(-74.60144f, 4.8981323f, -130.69354f), 130) { Action = EAction.Bootshine }; - index2++; - span113[index2] = new QuestStep(EInteractionType.Action, 2001802u, new Vector3(-71.42755f, 5.0201416f, -132.34149f), 130) + span46[4] = new QuestStep(EInteractionType.Action, 2001802u, new Vector3(-71.42755f, 5.0201416f, -132.34149f), 130) { Action = EAction.Bootshine }; - obj66.Steps = list113; - reference74 = obj66; - num++; - ref QuestSequence reference75 = ref span111[num]; - QuestSequence obj67 = new QuestSequence + obj74.Steps = list125; + reference82 = obj74; + ref QuestSequence reference83 = ref span45[2]; + QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(558) }; - obj70.Steps = list117; - reference78 = obj70; - questRoot18.QuestSequence = list111; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(699); - QuestRoot questRoot19 = new QuestRoot(); + obj78.Steps = list129; + reference86 = obj78; + questRoot20.QuestSequence = list123; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(699); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -54802,20 +45509,18 @@ public static class AssemblyQuestLoader } } }; - obj71.Steps = list120; - reference79 = obj71; - num++; - ref QuestSequence reference80 = ref span119[num]; - QuestSequence obj72 = new QuestSequence + obj79.Steps = list132; + reference87 = obj79; + ref QuestSequence reference88 = ref span48[1]; + QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Comment = "Buy Orange Juice", ItemId = 4745u, @@ -54833,12 +45538,11 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262807u) } }; - 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); + 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); } private static void LoadQuests14() @@ -54848,16 +45552,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -54865,23 +45566,19 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Comment = "Buy Serpent Chocobo Issuance", @@ -54898,12 +45595,10 @@ public static class AssemblyQuestLoader CategoryTab = 1 } }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); + span2[1] = new QuestStep(EInteractionType.Interact, 1000136u, new Vector3(32.303345f, -0.050583772f, 70.29822f), 132); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -54911,26 +45606,21 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1006001u, new Vector3(35.38562f, -0.89902794f, 67.551636f), 132) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006001u, new Vector3(35.38562f, -0.89902794f, 67.551636f), 132) { StopDistance = 7f }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -54940,16 +45630,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 4; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 4; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -54957,9 +45644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -54970,20 +45655,17 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Comment = "Buy Storm Chocobo Issuance", @@ -55000,8 +45682,7 @@ public static class AssemblyQuestLoader CategoryTab = 1 } }; - num2++; - ref QuestStep reference7 = ref span10[num2]; + ref QuestStep reference7 = ref span4[2]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 @@ -55009,9 +45690,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span11 = CollectionsMarshal.AsSpan(list11); - int index3 = 0; - span11[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list11)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -55019,12 +45698,10 @@ public static class AssemblyQuestLoader }; obj7.DialogueChoices = list11; reference7 = obj7; - num2++; - span10[num2] = new QuestStep(EInteractionType.Interact, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); + span4[3] = new QuestStep(EInteractionType.Interact, 1001027u, new Vector3(45.792236f, 20f, -8.1026f), 129); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span3[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -55032,26 +45709,21 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1006002u, new Vector3(49.576538f, 20f, -5.722229f), 129) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1006002u, new Vector3(49.576538f, 20f, -5.722229f), 129) { StopDistance = 7f }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span3[3]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list8; @@ -55061,16 +45733,13 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "liza"; + CollectionsMarshal.AsSpan(list14)[0] = "liza"; questRoot3.Author = list14; - index = 4; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference10 = ref span15[num]; + num = 4; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference10 = ref span5[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -55078,28 +45747,24 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + Span span6 = CollectionsMarshal.AsSpan(list16); + span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - index2++; - span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span15[num]; + ref QuestSequence reference11 = ref span5[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Comment = "Buy Flame Chocobo Issuance", @@ -55116,12 +45781,10 @@ public static class AssemblyQuestLoader CategoryTab = 1 } }; - num2++; - span17[num2] = new QuestStep(EInteractionType.Interact, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); + span7[1] = new QuestStep(EInteractionType.Interact, 1001978u, new Vector3(55.344482f, 4.124078f, -143.9079f), 130); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span15[num]; + ref QuestSequence reference12 = ref span5[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -55129,23 +45792,18 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1006003u, new Vector3(51.621216f, 4f, -142.22937f), 130); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1006003u, new Vector3(51.621216f, 4f, -142.22937f), 130); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span5[3]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list15; @@ -55155,16 +45813,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot4.Author = list20; - index = 3; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference14 = ref span21[num]; + num = 3; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span8 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference14 = ref span8[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -55172,34 +45827,27 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span21[num]; + ref QuestSequence reference15 = ref span8[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - 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); + 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); obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span21[num]; + ref QuestSequence reference16 = ref span8[2]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -55207,9 +45855,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -55228,26 +45874,21 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; questRoot5.Author = list25; - index = 3; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference17 = ref span26[num]; + num = 3; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span10 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference17 = ref span10[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -55261,8 +45902,7 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span26[num]; + ref QuestSequence reference18 = ref span10[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -55270,84 +45910,60 @@ public static class AssemblyQuestLoader num2 = 3; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - ref QuestStep reference19 = ref span28[index2]; + Span span11 = CollectionsMarshal.AsSpan(list28); + ref QuestStep reference19 = ref span11[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1000615u, new Vector3(-246.44855f, 3.5452707f, 279.92664f), 152); - 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); + 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); questStep.CompletionQuestVariablesFlags = list29; reference19 = questStep; - index2++; - ref QuestStep reference20 = ref span28[index2]; + ref QuestStep reference20 = ref span11[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list30; reference20 = questStep2; - index2++; - ref QuestStep reference21 = ref span28[index2]; + ref QuestStep reference21 = ref span11[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1000553u, new Vector3(-187.48767f, 4.4436555f, 292.50012f), 152); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list31; reference21 = questStep3; obj18.Steps = list28; reference18 = obj18; - num++; - ref QuestSequence reference22 = ref span26[num]; + ref QuestSequence reference22 = ref span10[2]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj19.Steps = list32; reference22 = obj19; questRoot5.QuestSequence = list26; @@ -55357,16 +45973,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; questRoot6.Author = list33; - index = 4; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference23 = ref span34[num]; + num = 4; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span15 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference23 = ref span15[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -55374,9 +45987,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -55389,22 +46000,18 @@ public static class AssemblyQuestLoader }; obj20.Steps = list35; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span34[num]; + ref QuestSequence reference24 = ref span15[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj21.Steps = list36; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span34[num]; + ref QuestSequence reference25 = ref span15[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -55412,9 +46019,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - ref QuestStep reference26 = ref span37[index2]; + ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list37)[0]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2001902u, new Vector3(-386.6789f, -0.015319824f, 192.46204f), 152) { ItemId = 2000571u, @@ -55423,25 +46028,20 @@ public static class AssemblyQuestLoader num3 = 1; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span38 = CollectionsMarshal.AsSpan(list38); - index3 = 0; - span38[index3] = 33u; + CollectionsMarshal.AsSpan(list38)[0] = 33u; obj23.KillEnemyDataIds = list38; reference26 = obj23; obj22.Steps = list37; reference25 = obj22; - num++; - ref QuestSequence reference27 = ref span34[num]; + ref QuestSequence reference27 = ref span15[3]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; @@ -55454,16 +46054,13 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "croizat"; + CollectionsMarshal.AsSpan(list40)[0] = "croizat"; questRoot7.Author = list40; - index = 5; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference28 = ref span41[num]; + num = 5; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span16 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference28 = ref span16[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -55471,27 +46068,21 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); obj25.Steps = list42; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span41[num]; + ref QuestSequence reference29 = ref span16[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj26.Steps = list43; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span41[num]; + ref QuestSequence reference30 = ref span16[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 @@ -55499,19 +46090,15 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - ref QuestStep reference31 = ref span44[index2]; + ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list44)[0]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-171.7635f, 0.59028566f, 153.80334f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list45 = new List(index3); - CollectionsMarshal.SetCount(list45, index3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = new ComplexCombatData + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new ComplexCombatData { DataId = 38u, MinimumKillCount = 6u @@ -55520,22 +46107,18 @@ public static class AssemblyQuestLoader reference31 = obj28; obj27.Steps = list44; reference30 = obj27; - num++; - ref QuestSequence reference32 = ref span41[num]; + ref QuestSequence reference32 = ref span16[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj29.Steps = list46; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span16[4]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -55543,9 +46126,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000536u, new Vector3(-242.0539f, 3.5598407f, 287.4646f), 152); obj30.Steps = list47; reference33 = obj30; questRoot7.QuestSequence = list41; @@ -55555,30 +46136,24 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "croizat"; + CollectionsMarshal.AsSpan(list48)[0] = "croizat"; questRoot8.Author = list48; - index = 3; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference34 = ref span49[num]; + num = 3; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span17 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference34 = ref span17[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj31.Steps = list50; reference34 = obj31; - num++; - ref QuestSequence reference35 = ref span49[num]; + ref QuestSequence reference35 = ref span17[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -55586,36 +46161,30 @@ public static class AssemblyQuestLoader num2 = 3; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.UseItem, 2000720u, new Vector3(-209.09442f, -4.654114f, 195.78845f), 152) + Span span18 = CollectionsMarshal.AsSpan(list51); + span18[0] = new QuestStep(EInteractionType.UseItem, 2000720u, new Vector3(-209.09442f, -4.654114f, 195.78845f), 152) { ItemId = 2000572u }; - index2++; - span51[index2] = new QuestStep(EInteractionType.UseItem, 2000721u, new Vector3(-146.04419f, -5.2644043f, 199.23706f), 152) + span18[1] = new QuestStep(EInteractionType.UseItem, 2000721u, new Vector3(-146.04419f, -5.2644043f, 199.23706f), 152) { ItemId = 2000572u }; - index2++; - span51[index2] = new QuestStep(EInteractionType.UseItem, 2000722u, new Vector3(-173.32727f, 2.1820068f, 137.68213f), 152) + span18[2] = new QuestStep(EInteractionType.UseItem, 2000722u, new Vector3(-173.32727f, 2.1820068f, 137.68213f), 152) { ItemId = 2000572u }; obj32.Steps = list51; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span49[num]; + ref QuestSequence reference36 = ref span17[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj33.Steps = list52; reference36 = obj33; questRoot8.QuestSequence = list49; @@ -55625,16 +46194,13 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list53)[0] = "JerryWester"; questRoot9.Author = list53; - index = 5; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference37 = ref span54[num]; + num = 5; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span19 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference37 = ref span19[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -55642,9 +46208,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000540u, new Vector3(-238.17816f, 3.543561f, 283.71094f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -55657,22 +46221,18 @@ public static class AssemblyQuestLoader }; obj34.Steps = list55; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span54[num]; + ref QuestSequence reference38 = ref span19[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj35.Steps = list56; reference38 = obj35; - num++; - ref QuestSequence reference39 = ref span54[num]; + ref QuestSequence reference39 = ref span19[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -55680,31 +46240,25 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj36.Steps = list57; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span54[num]; + ref QuestSequence reference40 = ref span19[3]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DelaySecondsAtStart = 1f, Emote = EEmote.Dance }; obj37.Steps = list58; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span54[num]; + ref QuestSequence reference41 = ref span19[4]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -55712,9 +46266,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj38.Steps = list59; reference41 = obj38; questRoot9.QuestSequence = list54; @@ -55724,30 +46276,24 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "croizat"; + CollectionsMarshal.AsSpan(list60)[0] = "croizat"; questRoot10.Author = list60; - index = 4; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference42 = ref span61[num]; + num = 4; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span20 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference42 = ref span20[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj39.Steps = list62; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span61[num]; + ref QuestSequence reference43 = ref span20[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -55755,37 +46301,28 @@ public static class AssemblyQuestLoader num2 = 5; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - 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); + 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); obj40.Steps = list63; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span61[num]; + ref QuestSequence reference44 = ref span20[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj41.Steps = list64; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span61[num]; + ref QuestSequence reference45 = ref span20[3]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -55793,9 +46330,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152); obj42.Steps = list65; reference45 = obj42; questRoot10.QuestSequence = list61; @@ -55805,26 +46340,21 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; questRoot11.Author = list66; - index = 5; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference46 = ref span67[num]; + num = 5; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span23 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference46 = ref span23[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -55837,8 +46367,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list68; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span67[num]; + ref QuestSequence reference47 = ref span23[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -55846,51 +46375,36 @@ public static class AssemblyQuestLoader num2 = 4; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - ref QuestStep reference48 = ref span69[index2]; + Span span24 = CollectionsMarshal.AsSpan(list69); + ref QuestStep reference48 = ref span24[0]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list70; reference48 = questStep4; - index2++; - ref QuestStep reference49 = ref span69[index2]; + ref QuestStep reference49 = ref span24[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1000277u, new Vector3(102.76941f, 8.161999f, 187.94531f), 152); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list71; reference49 = questStep5; - index2++; - ref QuestStep reference50 = ref span69[index2]; + ref QuestStep reference50 = ref span24[2]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1000553u, new Vector3(-187.48767f, 4.4436555f, 292.50012f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -55898,60 +46412,43 @@ public static class AssemblyQuestLoader num3 = 6; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - 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); + 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); obj45.CompletionQuestVariablesFlags = list72; reference50 = obj45; - index2++; - ref QuestStep reference51 = ref span69[index2]; + ref QuestStep reference51 = ref span24[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000545u, new Vector3(-242.72534f, 3.5598407f, 286.9154f), 152); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list73; reference51 = questStep6; obj44.Steps = list69; reference47 = obj44; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span23[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj46.Steps = list74; reference52 = obj46; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span23[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -55959,9 +46456,8 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - ref QuestStep reference54 = ref span75[index2]; + Span span29 = CollectionsMarshal.AsSpan(list75); + ref QuestStep reference54 = ref span29[0]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -55969,50 +46465,36 @@ public static class AssemblyQuestLoader num3 = 4; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span76 = CollectionsMarshal.AsSpan(list76); - index3 = 0; - span76[index3] = 1895u; - index3++; - span76[index3] = 1896u; - index3++; - span76[index3] = 1897u; - index3++; - span76[index3] = 1898u; + Span span30 = CollectionsMarshal.AsSpan(list76); + span30[0] = 1895u; + span30[1] = 1896u; + span30[2] = 1897u; + span30[3] = 1898u; obj48.KillEnemyDataIds = list76; - 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; + 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; obj48.CompletionQuestVariablesFlags = list77; reference54 = obj48; - index2++; - span75[index2] = new QuestStep(EInteractionType.Interact, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152); + span29[1] = new QuestStep(EInteractionType.Interact, 2001918u, new Vector3(-100.93848f, -8.285706f, 261.40222f), 152); obj47.Steps = list75; reference53 = obj47; - num++; - ref QuestSequence reference55 = ref span67[num]; + ref QuestSequence reference55 = ref span23[4]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj49.Steps = list78; reference55 = obj49; questRoot11.QuestSequence = list67; @@ -56022,16 +46504,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "croizat"; + CollectionsMarshal.AsSpan(list79)[0] = "croizat"; questRoot12.Author = list79; - index = 4; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference56 = ref span80[num]; + num = 4; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span32 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference56 = ref span32[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -56039,30 +46518,24 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152); + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152); obj50.Steps = list81; reference56 = obj50; - num++; - ref QuestSequence reference57 = ref span80[num]; + ref QuestSequence reference57 = ref span32[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Emote = EEmote.Poke }; obj51.Steps = list82; reference57 = obj51; - num++; - ref QuestSequence reference58 = ref span80[num]; + ref QuestSequence reference58 = ref span32[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -56070,26 +46543,21 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Emote, 1006190u, new Vector3(26.871094f, -3.6219776f, 209.64368f), 152) { Emote = EEmote.ExamineSelf }; obj52.Steps = list83; reference58 = obj52; - num++; - ref QuestSequence reference59 = ref span80[num]; + ref QuestSequence reference59 = ref span32[3]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Emote = EEmote.Congratulate }; @@ -56102,16 +46570,13 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "croizat"; + CollectionsMarshal.AsSpan(list85)[0] = "croizat"; questRoot13.Author = list85; - index = 3; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference60 = ref span86[num]; + num = 3; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span33 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference60 = ref span33[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -56119,23 +46584,19 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152); obj54.Steps = list87; reference60 = obj54; - num++; - ref QuestSequence reference61 = ref span86[num]; + ref QuestSequence reference61 = ref span33[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list88 = new List(index2); - CollectionsMarshal.SetCount(list88, index2); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref QuestStep reference62 = ref span88[num2]; + num2 = 2; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + Span span34 = CollectionsMarshal.AsSpan(list88); + ref QuestStep reference62 = ref span34[0]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, 2001921u, new Vector3(-76.58508f, -1.6327515f, 191.51587f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -56143,27 +46604,22 @@ public static class AssemblyQuestLoader num3 = 1; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span89 = CollectionsMarshal.AsSpan(list89); - index3 = 0; - span89[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list89)[0] = new ComplexCombatData { DataId = 1886u, MinimumKillCount = 1u }; obj56.ComplexCombatData = list89; reference62 = obj56; - num2++; - ref QuestStep reference63 = ref span88[num2]; + ref QuestStep reference63 = ref span34[1]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 2001920u, new Vector3(-54.673157f, -1.083435f, 328.14514f), 152) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list90 = new List(index3); - CollectionsMarshal.SetCount(list90, index3); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = new ComplexCombatData + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = new ComplexCombatData { DataId = 15u, MinimumKillCount = 2u @@ -56172,8 +46628,7 @@ public static class AssemblyQuestLoader reference63 = obj57; obj55.Steps = list88; reference61 = obj55; - num++; - ref QuestSequence reference64 = ref span86[num]; + ref QuestSequence reference64 = ref span33[2]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -56181,9 +46636,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) { NextQuestId = new QuestId(723) }; @@ -56196,30 +46649,24 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "croizat"; + CollectionsMarshal.AsSpan(list92)[0] = "croizat"; questRoot14.Author = list92; - index = 3; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference65 = ref span93[num]; + num = 3; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span35 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference65 = ref span35[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list94; reference65 = obj59; - num++; - ref QuestSequence reference66 = ref span93[num]; + ref QuestSequence reference66 = ref span35[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -56227,27 +46674,21 @@ public static class AssemblyQuestLoader num2 = 3; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - 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); + 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); obj60.Steps = list95; reference66 = obj60; - num++; - ref QuestSequence reference67 = ref span93[num]; + ref QuestSequence reference67 = ref span35[2]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj61.Steps = list96; reference67 = obj61; questRoot14.QuestSequence = list93; @@ -56257,16 +46698,13 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list97)[0] = "JerryWester"; questRoot15.Author = list97; - index = 5; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference68 = ref span98[num]; + num = 5; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span37 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference68 = ref span37[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -56274,9 +46712,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -56289,22 +46725,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list99; reference68 = obj62; - num++; - ref QuestSequence reference69 = ref span98[num]; + ref QuestSequence reference69 = ref span37[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj63.Steps = list100; reference69 = obj63; - num++; - ref QuestSequence reference70 = ref span98[num]; + ref QuestSequence reference70 = ref span37[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -56312,23 +46744,18 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj64.Steps = list101; reference70 = obj64; - num++; - ref QuestSequence reference71 = ref span98[num]; + ref QuestSequence reference71 = ref span37[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -56337,8 +46764,7 @@ public static class AssemblyQuestLoader }; obj65.Steps = list102; reference71 = obj65; - num++; - ref QuestSequence reference72 = ref span98[num]; + ref QuestSequence reference72 = ref span37[4]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -56346,9 +46772,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj66.Steps = list103; reference72 = obj66; questRoot15.QuestSequence = list98; @@ -56358,26 +46782,21 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list104)[0] = "JerryWester"; questRoot16.Author = list104; - index = 4; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference73 = ref span105[num]; + num = 4; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span38 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference73 = ref span38[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -56390,8 +46809,7 @@ public static class AssemblyQuestLoader }; obj67.Steps = list106; reference73 = obj67; - num++; - ref QuestSequence reference74 = ref span105[num]; + ref QuestSequence reference74 = ref span38[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -56399,33 +46817,27 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj68.Steps = list107; reference74 = obj68; - num++; - ref QuestSequence reference75 = ref span105[num]; + ref QuestSequence reference75 = ref span38[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj69.Steps = list108; reference75 = obj69; - num++; - ref QuestSequence reference76 = ref span105[num]; + ref QuestSequence reference76 = ref span38[3]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -56433,14 +46845,12 @@ public static class AssemblyQuestLoader num2 = 2; 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(164.6276f, -23.814985f, 551.0861f), 148) + Span span39 = CollectionsMarshal.AsSpan(list109); + span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(164.6276f, -23.814985f, 551.0861f), 148) { TargetTerritoryId = (ushort)153 }; - index2++; - span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj70.Steps = list109; reference76 = obj70; questRoot16.QuestSequence = list105; @@ -56450,30 +46860,24 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "croizat"; + CollectionsMarshal.AsSpan(list110)[0] = "croizat"; questRoot17.Author = list110; - index = 3; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference77 = ref span111[num]; + num = 3; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span40 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference77 = ref span40[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj71.Steps = list112; reference77 = obj71; - num++; - ref QuestSequence reference78 = ref span111[num]; + ref QuestSequence reference78 = ref span40[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -56481,9 +46885,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - ref QuestStep reference79 = ref span113[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list113)[0]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2187u, new Vector3(-151.47598f, 3.7521288f, 123.562065f), 153) { ItemId = 2000828u, @@ -56492,9 +46894,7 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span114 = CollectionsMarshal.AsSpan(list114); - index3 = 0; - span114[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list114)[0] = new ComplexCombatData { DataId = 2187u, MinimumKillCount = 1u @@ -56509,18 +46909,15 @@ public static class AssemblyQuestLoader reference79 = obj73; obj72.Steps = list113; reference78 = obj72; - num++; - ref QuestSequence reference80 = ref span111[num]; + ref QuestSequence reference80 = ref span40[2]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(728) }; @@ -56533,16 +46930,13 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "croizat"; + CollectionsMarshal.AsSpan(list116)[0] = "croizat"; questRoot18.Author = list116; - index = 6; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference81 = ref span117[num]; + num = 6; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span41 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference81 = ref span41[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -56550,33 +46944,27 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000594u, new Vector3(-167.92554f, 9.869228f, -76.70715f), 153); obj75.Steps = list118; reference81 = obj75; - num++; - ref QuestSequence reference82 = ref span117[num]; + ref QuestSequence reference82 = ref span41[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list119 = new List(index2); - CollectionsMarshal.SetCount(list119, index2); - Span span119 = CollectionsMarshal.AsSpan(list119); - num2 = 0; - ref QuestStep reference83 = ref span119[num2]; + num2 = 2; + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + Span span42 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference83 = ref span42[0]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-167.31592f, 5.486305f, 15.132226f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list120 = new List(index3); - CollectionsMarshal.SetCount(list120, index3); - Span span120 = CollectionsMarshal.AsSpan(list120); - num3 = 0; - span120[num3] = new ComplexCombatData + num3 = 1; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + CollectionsMarshal.AsSpan(list120)[0] = new ComplexCombatData { DataId = 3u, MinimumKillCount = 4u, @@ -56587,33 +46975,24 @@ public static class AssemblyQuestLoader num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - 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; + 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; obj77.CompletionQuestVariablesFlags = list121; reference83 = obj77; - num2++; - ref QuestStep reference84 = ref span119[num2]; + ref QuestStep reference84 = ref span42[1]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, null, new Vector3(-119.055f, 4.8576365f, -28.191822f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list122 = new List(index3); - CollectionsMarshal.SetCount(list122, index3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - span122[num3] = new ComplexCombatData + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = new ComplexCombatData { DataId = 23u, MinimumKillCount = 2u, @@ -56624,25 +47003,18 @@ public static class AssemblyQuestLoader num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - 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; + 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; obj78.CompletionQuestVariablesFlags = list123; reference84 = obj78; obj76.Steps = list119; reference82 = obj76; - num++; - ref QuestSequence reference85 = ref span117[num]; + ref QuestSequence reference85 = ref span41[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -56650,27 +47022,21 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153); obj79.Steps = list124; reference85 = obj79; - num++; - ref QuestSequence reference86 = ref span117[num]; + ref QuestSequence reference86 = ref span41[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj80.Steps = list125; reference86 = obj80; - num++; - ref QuestSequence reference87 = ref span117[num]; + ref QuestSequence reference87 = ref span41[4]; QuestSequence obj81 = new QuestSequence { Sequence = 4 @@ -56678,26 +47044,21 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Emote, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Emote, 2002258u, new Vector3(42.923584f, 4.2266846f, 48.05066f), 153) { Emote = EEmote.Kneel }; obj81.Steps = list126; reference87 = obj81; - num++; - ref QuestSequence reference88 = ref span117[num]; + ref QuestSequence reference88 = ref span41[5]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj82.Steps = list127; reference88 = obj82; questRoot18.QuestSequence = list117; @@ -56707,16 +47068,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot19.Author = list128; - index = 3; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference89 = ref span129[num]; + num = 3; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span45 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference89 = ref span45[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -56724,39 +47082,31 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj83.Steps = list130; reference89 = obj83; - num++; - ref QuestSequence reference90 = ref span129[num]; + ref QuestSequence reference90 = ref span45[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list131 = new List(index2); - CollectionsMarshal.SetCount(list131, index2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num2 = 0; - ref QuestStep reference91 = ref span131[num2]; + num2 = 1; + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list131)[0]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-108.26998f, 2.4296746f, -35.70589f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list132 = new List(index3); - CollectionsMarshal.SetCount(list132, index3); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - span132[num3] = 302u; + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = 302u; obj85.KillEnemyDataIds = list132; reference91 = obj85; obj84.Steps = list131; reference90 = obj84; - num++; - ref QuestSequence reference92 = ref span129[num]; + ref QuestSequence reference92 = ref span45[2]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -56764,9 +47114,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj86.Steps = list133; reference92 = obj86; questRoot19.QuestSequence = list129; @@ -56776,30 +47124,24 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "croizat"; + CollectionsMarshal.AsSpan(list134)[0] = "croizat"; questRoot20.Author = list134; - index = 3; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference93 = ref span135[num]; + num = 3; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span46 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference93 = ref span46[0]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj87.Steps = list136; reference93 = obj87; - num++; - ref QuestSequence reference94 = ref span135[num]; + ref QuestSequence reference94 = ref span46[1]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -56807,37 +47149,26 @@ public static class AssemblyQuestLoader num2 = 8; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - 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); + 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); obj88.Steps = list137; reference94 = obj88; - num++; - ref QuestSequence reference95 = ref span135[num]; + ref QuestSequence reference95 = ref span46[2]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj89.Steps = list138; reference95 = obj89; questRoot20.QuestSequence = list135; @@ -56847,16 +47178,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "croizat"; + CollectionsMarshal.AsSpan(list139)[0] = "croizat"; questRoot21.Author = list139; - index = 3; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference96 = ref span140[num]; + num = 3; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span48 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference96 = ref span48[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -56864,43 +47192,36 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj90.Steps = list141; reference96 = obj90; - num++; - ref QuestSequence reference97 = ref span140[num]; + ref QuestSequence reference97 = ref span48[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - 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) + 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) { ItemId = 2000586u, GroundTarget = true }; - num2++; - span142[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-287.41803f, 24.902437f, -193.99835f), 153) + span49[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-287.41803f, 24.902437f, -193.99835f), 153) { ItemId = 2000586u, GroundTarget = true }; - num2++; - span142[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.52402f, 24.293709f, -207.5345f), 153) + span49[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-294.52402f, 24.293709f, -207.5345f), 153) { ItemId = 2000586u, GroundTarget = true }; obj91.Steps = list142; reference97 = obj91; - num++; - ref QuestSequence reference98 = ref span140[num]; + ref QuestSequence reference98 = ref span48[2]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -56908,9 +47229,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj92.Steps = list143; reference98 = obj92; questRoot21.QuestSequence = list140; @@ -56920,30 +47239,24 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - span144[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; questRoot22.Author = list144; - index = 2; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - ref QuestSequence reference99 = ref span145[num]; + num = 2; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span50 = CollectionsMarshal.AsSpan(list145); + ref QuestSequence reference99 = ref span50[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj93.Steps = list146; reference99 = obj93; - num++; - ref QuestSequence reference100 = ref span145[num]; + ref QuestSequence reference100 = ref span50[1]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -56951,9 +47264,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -56966,26 +47277,21 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; questRoot23.Author = list148; - index = 3; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference101 = ref span149[num]; + num = 3; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span51 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference101 = ref span51[0]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -56998,8 +47304,7 @@ public static class AssemblyQuestLoader }; obj95.Steps = list150; reference101 = obj95; - num++; - ref QuestSequence reference102 = ref span149[num]; + ref QuestSequence reference102 = ref span51[1]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -57007,9 +47312,8 @@ public static class AssemblyQuestLoader num2 = 10; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - ref QuestStep reference103 = ref span151[index2]; + Span span52 = CollectionsMarshal.AsSpan(list151); + ref QuestStep reference103 = ref span52[0]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 2001949u, new Vector3(-142.77869f, 14.450195f, -130.11371f), 153) { Comment = "Enemy loses aggro by the next waypoint" @@ -57017,23 +47321,16 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list152; reference103 = obj97; - index2++; - ref QuestStep reference104 = ref span151[index2]; + ref QuestStep reference104 = ref span52[1]; QuestStep obj98 = new QuestStep(EInteractionType.Jump, null, new Vector3(-108.2742f, 5.6416674f, -80.21974f), 153) { StopDistance = 0.25f, @@ -57045,28 +47342,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list153; skipConditions.StepIf = skipStepConditions; obj98.SkipConditions = skipConditions; reference104 = obj98; - index2++; - ref QuestStep reference105 = ref span151[index2]; + ref QuestStep reference105 = ref span52[2]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2001953u, new Vector3(-116.41113f, 11.032227f, -84.97754f), 153) { DisableNavmesh = true @@ -57074,48 +47364,34 @@ public static class AssemblyQuestLoader num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - 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); + 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); obj99.CompletionQuestVariablesFlags = list154; reference105 = obj99; - index2++; - ref QuestStep reference106 = ref span151[index2]; + ref QuestStep reference106 = ref span52[3]; QuestStep questStep7 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.87269f, 5.116502f, -73.9041f), 153); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list155; skipConditions2.StepIf = skipStepConditions2; questStep7.SkipConditions = skipConditions2; reference106 = questStep7; - index2++; - ref QuestStep reference107 = ref span151[index2]; + ref QuestStep reference107 = ref span52[4]; QuestStep obj100 = new QuestStep(EInteractionType.Jump, null, new Vector3(-90.467575f, 3.3634722f, -27.515985f), 153) { StopDistance = 0.25f, @@ -57130,46 +47406,32 @@ public static class AssemblyQuestLoader 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, 0, EQuestWorkMode.Bitwise); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list156; skipConditions3.StepIf = skipStepConditions3; obj100.SkipConditions = skipConditions3; reference107 = obj100; - index2++; - ref QuestStep reference108 = ref span151[index2]; + ref QuestStep reference108 = ref span52[5]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2001951u, new Vector3(-83.32953f, 7.1259155f, -21.561035f), 153); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list157; reference108 = questStep8; - index2++; - ref QuestStep reference109 = ref span151[index2]; + ref QuestStep reference109 = ref span52[6]; QuestStep obj101 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-77.875786f, 3.9296143f, -27.107864f), 153) { DisableNavmesh = true @@ -57179,50 +47441,36 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list158; skipConditions4.StepIf = skipStepConditions4; obj101.SkipConditions = skipConditions4; reference109 = obj101; - index2++; - ref QuestStep reference110 = ref span151[index2]; + ref QuestStep reference110 = ref span52[7]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.053005f, 3.8386261f, -40.758984f), 153); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list159; skipConditions5.StepIf = skipStepConditions5; questStep9.SkipConditions = skipConditions5; reference110 = questStep9; - index2++; - ref QuestStep reference111 = ref span151[index2]; + ref QuestStep reference111 = ref span52[8]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2001952u, new Vector3(18.722778f, 7.614197f, -43.137268f), 153) { StopDistance = 6f @@ -57230,62 +47478,46 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - 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); + 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); obj102.CompletionQuestVariablesFlags = list160; reference111 = obj102; - index2++; - ref QuestStep reference112 = ref span151[index2]; + ref QuestStep reference112 = ref span52[9]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2001950u, new Vector3(63.553833f, 13.473633f, -32.333923f), 153); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list161; reference112 = questStep10; obj96.Steps = list151; reference102 = obj96; - num++; - ref QuestSequence reference113 = ref span149[num]; + ref QuestSequence reference113 = ref span51[2]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true, Mount = false }; - num2++; - span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + span63[1] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { Mount = false }; @@ -57298,16 +47530,13 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "croizat"; + CollectionsMarshal.AsSpan(list163)[0] = "croizat"; questRoot24.Author = list163; - index = 3; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference114 = ref span164[num]; + num = 3; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span64 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference114 = ref span64[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -57315,44 +47544,35 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj104.Steps = list165; reference114 = obj104; - num++; - ref QuestSequence reference115 = ref span164[num]; + ref QuestSequence reference115 = ref span64[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.Interact, 1006197u, new Vector3(-151.72046f, 18.631226f, 39.53601f), 153) + span65[2] = new QuestStep(EInteractionType.Interact, 1006197u, new Vector3(-151.72046f, 18.631226f, 39.53601f), 153) { DisableNavmesh = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.91785f, 5.4492426f, 49.70637f), 153) + span65[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.91785f, 5.4492426f, 49.70637f), 153) { DisableNavmesh = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.Interact, 1006198u, new Vector3(-237.17102f, 15.565003f, 104.32593f), 153); + span65[4] = new QuestStep(EInteractionType.Interact, 1006198u, new Vector3(-237.17102f, 15.565003f, 104.32593f), 153); obj105.Steps = list166; reference115 = obj105; - num++; - ref QuestSequence reference116 = ref span164[num]; + ref QuestSequence reference116 = ref span64[2]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -57360,9 +47580,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000598u, new Vector3(-170.82477f, 9.964111f, -84.153564f), 153); obj106.Steps = list167; reference116 = obj106; questRoot24.QuestSequence = list164; @@ -57372,30 +47590,24 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "croizat"; + CollectionsMarshal.AsSpan(list168)[0] = "croizat"; questRoot25.Author = list168; - index = 3; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference117 = ref span169[num]; + num = 3; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span66 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference117 = ref span66[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj107.Steps = list170; reference117 = obj107; - num++; - ref QuestSequence reference118 = ref span169[num]; + ref QuestSequence reference118 = ref span66[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -57403,9 +47615,8 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference119 = ref span171[index2]; + Span span67 = CollectionsMarshal.AsSpan(list171); + ref QuestStep reference119 = ref span67[0]; QuestStep obj109 = new QuestStep(EInteractionType.Combat, 2001955u, new Vector3(-97.70355f, 11.673096f, -84.00098f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -57413,42 +47624,33 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span172 = CollectionsMarshal.AsSpan(list172); - index3 = 0; - span172[index3] = 63u; + CollectionsMarshal.AsSpan(list172)[0] = 63u; obj109.KillEnemyDataIds = list172; reference119 = obj109; - index2++; - span171[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-111.3334f, 1.7872865f, -60.205475f), 153); - index2++; - ref QuestStep reference120 = ref span171[index2]; + span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-111.3334f, 1.7872865f, -60.205475f), 153); + ref QuestStep reference120 = ref span67[2]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2001956u, new Vector3(-110.03284f, 1.9989014f, -57.053528f), 153) { StopDistance = 5f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list173 = new List(index3); - CollectionsMarshal.SetCount(list173, index3); - Span span173 = CollectionsMarshal.AsSpan(list173); - num3 = 0; - span173[num3] = 63u; + num3 = 1; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + CollectionsMarshal.AsSpan(list173)[0] = 63u; obj110.KillEnemyDataIds = list173; reference120 = obj110; obj108.Steps = list171; reference118 = obj108; - num++; - ref QuestSequence reference121 = ref span169[num]; + ref QuestSequence reference121 = ref span66[2]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj111.Steps = list174; reference121 = obj111; questRoot25.QuestSequence = list169; @@ -57458,16 +47660,13 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; questRoot26.Author = list175; - index = 2; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference122 = ref span176[num]; + num = 2; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span68 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference122 = ref span68[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -57475,9 +47674,7 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -57490,23 +47687,20 @@ public static class AssemblyQuestLoader }; obj112.Steps = list177; reference122 = obj112; - num++; - ref QuestSequence reference123 = ref span176[num]; + ref QuestSequence reference123 = ref span68[1]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.SouthShroudCampTranquil }; - num2++; - span178[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) + span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; @@ -57519,16 +47713,13 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; questRoot27.Author = list179; - index = 3; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference124 = ref span180[num]; + num = 3; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span70 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference124 = ref span70[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -57536,9 +47727,7 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -57551,26 +47740,22 @@ public static class AssemblyQuestLoader }; obj114.Steps = list181; reference124 = obj114; - num++; - ref QuestSequence reference125 = ref span180[num]; + ref QuestSequence reference125 = ref span70[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.5f, Emote = EEmote.Lookout }; obj115.Steps = list182; reference125 = obj115; - num++; - ref QuestSequence reference126 = ref span180[num]; + ref QuestSequence reference126 = ref span70[2]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -57578,9 +47763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -57593,33 +47776,27 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - Span span184 = CollectionsMarshal.AsSpan(list184); - index = 0; - span184[index] = "skiaz"; + CollectionsMarshal.AsSpan(list184)[0] = "skiaz"; questRoot28.Author = list184; - index = 3; - List list185 = new List(index); - CollectionsMarshal.SetCount(list185, index); - Span span185 = CollectionsMarshal.AsSpan(list185); - num = 0; - ref QuestSequence reference127 = ref span185[num]; + num = 3; + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span71 = CollectionsMarshal.AsSpan(list185); + ref QuestSequence reference127 = ref span71[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj117.Steps = list186; reference127 = obj117; - num++; - ref QuestSequence reference128 = ref span185[num]; + ref QuestSequence reference128 = ref span71[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -57627,19 +47804,16 @@ public static class AssemblyQuestLoader num2 = 3; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) + Span span72 = CollectionsMarshal.AsSpan(list187); + span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) { Fly = true }; - index2++; - span187[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) + span72[1] = new QuestStep(EInteractionType.None, null, new Vector3(-286.51263f, 12.089579f, -33.4333f), 152) { Land = true }; - index2++; - ref QuestStep reference129 = ref span187[index2]; + ref QuestStep reference129 = ref span72[2]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, 2264u, new Vector3(-303.8529f, 12.348698f, -40.177063f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -57647,9 +47821,7 @@ public static class AssemblyQuestLoader num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span188 = CollectionsMarshal.AsSpan(list188); - index3 = 0; - span188[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list188)[0] = new ComplexCombatData { DataId = 2264u, MinimumKillCount = 3u, @@ -57666,18 +47838,15 @@ public static class AssemblyQuestLoader reference129 = obj119; obj118.Steps = list187; reference128 = obj118; - num++; - ref QuestSequence reference130 = ref span185[num]; + ref QuestSequence reference130 = ref span71[2]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -57690,16 +47859,13 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list190)[0] = "JerryWester"; questRoot29.Author = list190; - index = 4; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference131 = ref span191[num]; + num = 4; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span73 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference131 = ref span73[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -57707,9 +47873,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -57722,28 +47886,24 @@ public static class AssemblyQuestLoader }; obj121.Steps = list192; reference131 = obj121; - num++; - ref QuestSequence reference132 = ref span191[num]; + ref QuestSequence reference132 = ref span73[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - num2++; - span193[num2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + span74[1] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj122.Steps = list193; reference132 = obj122; - num++; - ref QuestSequence reference133 = ref span191[num]; + ref QuestSequence reference133 = ref span73[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -57751,31 +47911,26 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.91858f, 17.990356f, -386.862f), 140) { TargetTerritoryId = (ushort)212 }; obj123.Steps = list194; reference133 = obj123; - num++; - ref QuestSequence reference134 = ref span191[num]; + ref QuestSequence reference134 = ref span73[3]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span195[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj124.Steps = list195; reference134 = obj124; questRoot29.QuestSequence = list191; @@ -57785,16 +47940,13 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list196)[0] = "JerryWester"; questRoot30.Author = list196; - index = 3; - List list197 = new List(index); - CollectionsMarshal.SetCount(list197, index); - Span span197 = CollectionsMarshal.AsSpan(list197); - num = 0; - ref QuestSequence reference135 = ref span197[num]; + num = 3; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span76 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference135 = ref span76[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -57802,32 +47954,26 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj125.Steps = list198; reference135 = obj125; - num++; - ref QuestSequence reference136 = ref span197[num]; + ref QuestSequence reference136 = ref span76[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; - num2++; - span199[num2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + span77[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj126.Steps = list199; reference136 = obj126; - num++; - ref QuestSequence reference137 = ref span197[num]; + ref QuestSequence reference137 = ref span76[2]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -57835,9 +47981,7 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -57850,26 +47994,21 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list201)[0] = "JerryWester"; questRoot31.Author = list201; - index = 3; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference138 = ref span202[num]; + num = 3; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span78 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference138 = ref span78[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -57882,8 +48021,7 @@ public static class AssemblyQuestLoader }; obj128.Steps = list203; reference138 = obj128; - num++; - ref QuestSequence reference139 = ref span202[num]; + ref QuestSequence reference139 = ref span78[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -57891,84 +48029,60 @@ public static class AssemblyQuestLoader num2 = 3; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference140 = ref span204[index2]; + Span span79 = CollectionsMarshal.AsSpan(list204); + ref QuestStep reference140 = ref span79[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006206u, new Vector3(-90.95911f, -29.465149f, -58.854065f), 145); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list205; reference140 = questStep11; - index2++; - ref QuestStep reference141 = ref span204[index2]; + ref QuestStep reference141 = ref span79[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list206; reference141 = questStep12; - index2++; - ref QuestStep reference142 = ref span204[index2]; + ref QuestStep reference142 = ref span79[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006205u, new Vector3(14.480774f, -5.9663696f, 7.4310913f), 145); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list207; reference142 = questStep13; obj129.Steps = list204; reference139 = obj129; - num++; - ref QuestSequence reference143 = ref span202[num]; + ref QuestSequence reference143 = ref span78[2]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj130.Steps = list208; reference143 = obj130; questRoot31.QuestSequence = list202; @@ -57982,16 +48096,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -57999,9 +48110,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -58014,20 +48123,17 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2001965u, new Vector3(313.46606f, 23.178406f, -253.58972f), 145) { DisableNavmesh = true, @@ -58037,15 +48143,12 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 363u; + CollectionsMarshal.AsSpan(list5)[0] = 363u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -58053,9 +48156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -58065,26 +48166,21 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; questRoot2.Author = list7; - index = 3; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 3; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -58097,8 +48193,7 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -58106,36 +48201,29 @@ public static class AssemblyQuestLoader num2 = 4; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) + Span span4 = CollectionsMarshal.AsSpan(list10); + span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.46503f, -46.504063f, 491.88867f), 145) { TargetTerritoryId = (ushort)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) + 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) { StopDistance = 7f, Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - index2++; - span10[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146); + span4[3] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; questRoot2.QuestSequence = list8; @@ -58145,16 +48233,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "skiaz"; + CollectionsMarshal.AsSpan(list12)[0] = "skiaz"; questRoot3.Author = list12; - index = 3; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference8 = ref span13[num]; + num = 3; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span5 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference8 = ref span5[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -58162,45 +48247,38 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146) { Fly = true }; obj8.Steps = list14; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span13[num]; + ref QuestSequence reference9 = ref span5[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference10 = ref span15[num2]; + num2 = 2; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span6 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference10 = ref span6[0]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 2259u, new Vector3(-92.27408f, 14.646322f, -233.21777f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new ComplexCombatData + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new ComplexCombatData { DataId = 2259u, MinimumKillCount = 1u }; obj10.ComplexCombatData = list16; reference10 = obj10; - num2++; - ref QuestStep reference11 = ref span15[num2]; + ref QuestStep reference11 = ref span6[1]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 2260u, new Vector3(-92.27408f, 14.646322f, -233.21777f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -58208,9 +48286,7 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span17 = CollectionsMarshal.AsSpan(list17); - index3 = 0; - span17[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list17)[0] = new ComplexCombatData { DataId = 2260u, MinimumKillCount = 1u @@ -58219,8 +48295,7 @@ public static class AssemblyQuestLoader reference11 = obj11; obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span5[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -58228,9 +48303,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004894u, new Vector3(-138.87238f, 27.266977f, -427.81726f), 146); obj12.Steps = list18; reference12 = obj12; questRoot3.QuestSequence = list13; @@ -58240,26 +48313,21 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; questRoot4.Author = list19; - index = 3; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference13 = ref span20[num]; + num = 3; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span7 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference13 = ref span7[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -58272,8 +48340,7 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span20[num]; + ref QuestSequence reference14 = ref span7[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -58281,34 +48348,26 @@ public static class AssemblyQuestLoader num2 = 5; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference15 = ref span22[index2]; + Span span8 = CollectionsMarshal.AsSpan(list22); + ref QuestStep reference15 = ref span8[0]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-179.69392f, 18.008331f, -279.60886f), 146); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list23; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference15 = questStep; - index2++; - ref QuestStep reference16 = ref span22[index2]; + ref QuestStep reference16 = ref span8[1]; QuestStep obj15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-184.29613f, 3.5985415f, -246.7013f), 146) { DisableNavmesh = true @@ -58318,100 +48377,70 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list24; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference16 = obj15; - index2++; - ref QuestStep reference17 = ref span22[index2]; + ref QuestStep reference17 = ref span8[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1006702u, new Vector3(-186.14484f, 3.6335826f, -247.82184f), 146); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list25; reference17 = questStep2; - index2++; - ref QuestStep reference18 = ref span22[index2]; + ref QuestStep reference18 = ref span8[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list26; reference18 = questStep3; - index2++; - ref QuestStep reference19 = ref span22[index2]; + ref QuestStep reference19 = ref span8[4]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006703u, new Vector3(-187.27399f, 9.149252f, -133.22656f), 146); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list27; reference19 = questStep4; obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference20 = ref span20[num]; + ref QuestSequence reference20 = ref span7[2]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -58424,16 +48453,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot5.Author = list29; - index = 2; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 2; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span14 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span14[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -58441,9 +48467,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006217u, new Vector3(-181.04828f, 28.214073f, -402.02948f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -58456,35 +48480,29 @@ public static class AssemblyQuestLoader }; obj17.Steps = list31; reference21 = obj17; - num++; - ref QuestSequence reference22 = ref span30[num]; + ref QuestSequence reference22 = ref span14[1]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span32[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span15[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span15[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj18.Steps = list32; reference22 = obj18; questRoot5.QuestSequence = list30; @@ -58494,16 +48512,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; questRoot6.Author = list33; - index = 3; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference23 = ref span34[num]; + num = 3; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span16 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference23 = ref span16[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -58511,32 +48526,26 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj19.Steps = list35; reference23 = obj19; - num++; - ref QuestSequence reference24 = ref span34[num]; + ref QuestSequence reference24 = ref span16[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span36[num2] = new QuestStep(EInteractionType.Interact, 1007418u, new Vector3(9.689453f, -3.0000017f, -55.985413f), 212); + span17[1] = new QuestStep(EInteractionType.Interact, 1007418u, new Vector3(9.689453f, -3.0000017f, -55.985413f), 212); obj20.Steps = list36; reference24 = obj20; - num++; - ref QuestSequence reference25 = ref span34[num]; + ref QuestSequence reference25 = ref span16[2]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue @@ -58544,9 +48553,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -58559,28 +48566,24 @@ public static class AssemblyQuestLoader num = 2; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "liza"; - index++; - span38[index] = "Friendly"; + Span span18 = CollectionsMarshal.AsSpan(list38); + span18[0] = "liza"; + span18[1] = "Friendly"; questRoot7.Author = list38; - index = 2; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference26 = ref span39[num]; + num = 2; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span19 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference26 = ref span19[0]; QuestSequence obj22 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span20 = CollectionsMarshal.AsSpan(list40); + ref QuestStep reference27 = ref span20[0]; QuestStep obj23 = new QuestStep(EInteractionType.UseItem, null, null, 128) { ItemId = 30362u @@ -58590,19 +48593,15 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - index3 = 0; - span41[index3] = 140; + CollectionsMarshal.AsSpan(list41)[0] = 140; skipStepConditions3.InTerritory = list41; skipConditions3.StepIf = skipStepConditions3; obj23.SkipConditions = skipConditions3; reference27 = obj23; - num2++; - span40[num2] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); + span20[1] = new QuestStep(EInteractionType.AcceptQuest, 1005021u, new Vector3(-472.49567f, 23.008797f, -355.00116f), 140); obj22.Steps = list40; reference26 = obj22; - num++; - ref QuestSequence reference28 = ref span39[num]; + ref QuestSequence reference28 = ref span19[1]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -58610,15 +48609,13 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) + Span span21 = CollectionsMarshal.AsSpan(list42); + span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - index2++; - span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006220u, new Vector3(185.74805f, 13.721187f, -443.1983f), 146) + span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1006220u, new Vector3(185.74805f, 13.721187f, -443.1983f), 146) { Fly = true }; @@ -58631,26 +48628,21 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; questRoot8.Author = list43; - index = 4; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference29 = ref span44[num]; + num = 4; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span22 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference29 = ref span22[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -58663,8 +48655,7 @@ public static class AssemblyQuestLoader }; obj25.Steps = list45; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span44[num]; + ref QuestSequence reference30 = ref span22[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -58672,27 +48663,21 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1006219u, new Vector3(193.53015f, 7.8551283f, -25.864075f), 153); obj26.Steps = list46; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span44[num]; + ref QuestSequence reference31 = ref span22[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj27.Steps = list47; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span44[num]; + ref QuestSequence reference32 = ref span22[3]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -58700,9 +48685,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj28.Steps = list48; reference32 = obj28; questRoot8.QuestSequence = list44; @@ -58712,32 +48695,26 @@ public static class AssemblyQuestLoader num = 2; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "CryoTechnic"; - index++; - span49[index] = "croizat"; + Span span23 = CollectionsMarshal.AsSpan(list49); + span23[0] = "CryoTechnic"; + span23[1] = "croizat"; questRoot9.Author = list49; - index = 3; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference33 = ref span50[num]; + num = 3; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span24 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference33 = ref span24[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj29.Steps = list51; reference33 = obj29; - num++; - ref QuestSequence reference34 = ref span50[num]; + ref QuestSequence reference34 = ref span24[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -58745,23 +48722,19 @@ public static class AssemblyQuestLoader num2 = 3; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - ref QuestStep reference35 = ref span52[index2]; + Span span25 = CollectionsMarshal.AsSpan(list52); + ref QuestStep reference35 = ref span25[0]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 2001968u, new Vector3(106.370605f, 13.01593f, -9.99469f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list53 = new List(index3); - CollectionsMarshal.SetCount(list53, index3); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - span53[num3] = 79u; + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = 79u; obj31.KillEnemyDataIds = list53; reference35 = obj31; - index2++; - ref QuestStep reference36 = ref span52[index2]; + ref QuestStep reference36 = ref span25[1]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2001966u, new Vector3(115.587036f, 6.9733276f, 29.648315f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -58769,39 +48742,31 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - index3 = 0; - span54[index3] = 81u; + CollectionsMarshal.AsSpan(list54)[0] = 81u; obj32.KillEnemyDataIds = list54; reference36 = obj32; - index2++; - ref QuestStep reference37 = ref span52[index2]; + ref QuestStep reference37 = ref span25[2]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2001967u, new Vector3(63.1875f, 7.583679f, 21.896606f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list55 = new List(index3); - CollectionsMarshal.SetCount(list55, index3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = 311u; + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = 311u; obj33.KillEnemyDataIds = list55; reference37 = obj33; obj30.Steps = list52; reference34 = obj30; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span24[2]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj34.Steps = list56; reference38 = obj34; questRoot9.QuestSequence = list50; @@ -58811,16 +48776,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "croizat"; + CollectionsMarshal.AsSpan(list57)[0] = "croizat"; questRoot10.Author = list57; - index = 3; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference39 = ref span58[num]; + num = 3; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span26 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference39 = ref span26[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -58828,27 +48790,21 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); obj35.Steps = list59; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span58[num]; + ref QuestSequence reference40 = ref span26[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj36.Steps = list60; reference40 = obj36; - num++; - ref QuestSequence reference41 = ref span58[num]; + ref QuestSequence reference41 = ref span26[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -58856,9 +48812,7 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000331u, new Vector3(158.49548f, 18.119999f, -49.393555f), 153); obj37.Steps = list61; reference41 = obj37; questRoot10.QuestSequence = list58; @@ -58868,32 +48822,26 @@ public static class AssemblyQuestLoader num = 2; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "CryoTechnic"; - index++; - span62[index] = "croizat"; + Span span27 = CollectionsMarshal.AsSpan(list62); + span27[0] = "CryoTechnic"; + span27[1] = "croizat"; questRoot11.Author = list62; - index = 4; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference42 = ref span63[num]; + num = 4; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span28 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference42 = ref span28[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list64; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span63[num]; + ref QuestSequence reference43 = ref span28[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -58901,27 +48849,21 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153); obj39.Steps = list65; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span63[num]; + ref QuestSequence reference44 = ref span28[2]; QuestSequence obj40 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 2001970u, new Vector3(198.96228f, 31.998047f, -159.59418f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -58929,29 +48871,22 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span67 = CollectionsMarshal.AsSpan(list67); - index3 = 0; - span67[index3] = 9u; + CollectionsMarshal.AsSpan(list67)[0] = 9u; obj41.KillEnemyDataIds = list67; reference45 = obj41; - num2++; - span66[num2] = new QuestStep(EInteractionType.Interact, 2001971u, new Vector3(199.45056f, 34.531128f, -170.33649f), 153); - num2++; - ref QuestStep reference46 = ref span66[num2]; + span29[3] = new QuestStep(EInteractionType.Interact, 2001971u, new Vector3(199.45056f, 34.531128f, -170.33649f), 153); + ref QuestStep reference46 = ref span29[4]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2001972u, new Vector3(209.70471f, 32.669556f, -171.83191f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list68 = new List(index3); - CollectionsMarshal.SetCount(list68, index3); - Span span68 = CollectionsMarshal.AsSpan(list68); - num3 = 0; - span68[num3] = 9u; + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + CollectionsMarshal.AsSpan(list68)[0] = 9u; obj42.KillEnemyDataIds = list68; reference46 = obj42; - num2++; - ref QuestStep reference47 = ref span66[num2]; + ref QuestStep reference47 = ref span29[5]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2001973u, new Vector3(218.21924f, 28.94629f, -160.63171f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -58959,15 +48894,12 @@ public static class AssemblyQuestLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span69 = CollectionsMarshal.AsSpan(list69); - index3 = 0; - span69[index3] = 9u; + CollectionsMarshal.AsSpan(list69)[0] = 9u; obj43.KillEnemyDataIds = list69; reference47 = obj43; obj40.Steps = list66; reference44 = obj40; - num++; - ref QuestSequence reference48 = ref span63[num]; + ref QuestSequence reference48 = ref span28[3]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -58975,9 +48907,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006237u, new Vector3(213.09216f, 29.495605f, -164.5686f), 153) { NextQuestId = new QuestId(769) }; @@ -58990,30 +48920,24 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "croizat"; + CollectionsMarshal.AsSpan(list71)[0] = "croizat"; questRoot12.Author = list71; - index = 3; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference49 = ref span72[num]; + num = 3; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span30 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference49 = ref span30[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj45.Steps = list73; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span72[num]; + ref QuestSequence reference50 = ref span30[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -59021,26 +48945,21 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.UseItem, 2002278u, new Vector3(42.58789f, 4.196167f, 48.844116f), 153) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.UseItem, 2002278u, new Vector3(42.58789f, 4.196167f, 48.844116f), 153) { ItemId = 2000857u }; obj46.Steps = list74; reference50 = obj46; - num++; - ref QuestSequence reference51 = ref span72[num]; + ref QuestSequence reference51 = ref span30[2]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj47.Steps = list75; reference51 = obj47; questRoot12.QuestSequence = list72; @@ -59050,16 +48969,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "croizat"; + CollectionsMarshal.AsSpan(list76)[0] = "croizat"; questRoot13.Author = list76; - index = 3; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference52 = ref span77[num]; + num = 3; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span31 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference52 = ref span31[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -59067,33 +48983,27 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); obj48.Steps = list78; reference52 = obj48; - num++; - ref QuestSequence reference53 = ref span77[num]; + ref QuestSequence reference53 = ref span31[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list79 = new List(index2); - CollectionsMarshal.SetCount(list79, index2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref QuestStep reference54 = ref span79[num2]; + num2 = 1; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(90.32601f, 14.940415f, -150.38887f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 3; - List list80 = new List(index3); - CollectionsMarshal.SetCount(list80, index3); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - ref ComplexCombatData reference55 = ref span80[num3]; + num3 = 3; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + Span span32 = CollectionsMarshal.AsSpan(list80); + ref ComplexCombatData reference55 = ref span32[0]; ComplexCombatData obj51 = new ComplexCombatData { DataId = 87u, @@ -59102,48 +49012,34 @@ public static class AssemblyQuestLoader int num4 = 6; List list81 = new List(num4); CollectionsMarshal.SetCount(list81, num4); - 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; + 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; obj51.CompletionQuestVariablesFlags = list81; reference55 = obj51; - num3++; - ref ComplexCombatData reference56 = ref span80[num3]; + ref ComplexCombatData reference56 = ref span32[1]; ComplexCombatData obj52 = new ComplexCombatData { DataId = 86u, MinimumKillCount = 1u }; - 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; + 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; obj52.CompletionQuestVariablesFlags = list82; reference56 = obj52; - num3++; - ref ComplexCombatData reference57 = ref span80[num3]; + ref ComplexCombatData reference57 = ref span32[2]; ComplexCombatData obj53 = new ComplexCombatData { DataId = 84u, @@ -59152,27 +49048,20 @@ public static class AssemblyQuestLoader num4 = 6; List list83 = new List(num4); CollectionsMarshal.SetCount(list83, num4); - 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; + 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; obj53.CompletionQuestVariablesFlags = list83; reference57 = obj53; obj50.ComplexCombatData = list80; reference54 = obj50; obj49.Steps = list79; reference53 = obj49; - num++; - ref QuestSequence reference58 = ref span77[num]; + ref QuestSequence reference58 = ref span31[2]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -59180,9 +49069,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000420u, new Vector3(150.28601f, 11.218727f, -72.58722f), 153); obj54.Steps = list84; reference58 = obj54; questRoot13.QuestSequence = list77; @@ -59192,30 +49079,24 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "croizat"; + CollectionsMarshal.AsSpan(list85)[0] = "croizat"; questRoot14.Author = list85; - index = 3; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference59 = ref span86[num]; + num = 3; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span36 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference59 = ref span36[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj55.Steps = list87; reference59 = obj55; - num++; - ref QuestSequence reference60 = ref span86[num]; + ref QuestSequence reference60 = ref span36[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -59223,23 +49104,18 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 2001974u, new Vector3(73.258545f, 7.583679f, -109.819214f), 153); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2001974u, new Vector3(73.258545f, 7.583679f, -109.819214f), 153); obj56.Steps = list88; reference60 = obj56; - num++; - ref QuestSequence reference61 = ref span86[num]; + ref QuestSequence reference61 = ref span36[2]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj57.Steps = list89; reference61 = obj57; questRoot14.QuestSequence = list86; @@ -59249,16 +49125,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "croizat"; + CollectionsMarshal.AsSpan(list90)[0] = "croizat"; questRoot15.Author = list90; - index = 2; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference62 = ref span91[num]; + num = 2; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span37 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference62 = ref span37[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -59266,23 +49139,18 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); obj58.Steps = list92; reference62 = obj58; - num++; - ref QuestSequence reference63 = ref span91[num]; + ref QuestSequence reference63 = ref span37[1]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(773) }; @@ -59295,16 +49163,13 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "croizat"; + CollectionsMarshal.AsSpan(list94)[0] = "croizat"; questRoot16.Author = list94; - index = 5; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference64 = ref span95[num]; + num = 5; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span38 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference64 = ref span38[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -59312,31 +49177,24 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); obj60.Steps = list96; reference64 = obj60; - num++; - ref QuestSequence reference65 = ref span95[num]; + ref QuestSequence reference65 = ref span38[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj61.Steps = list97; reference65 = obj61; - num++; - ref QuestSequence reference66 = ref span95[num]; + ref QuestSequence reference66 = ref span38[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -59344,27 +49202,21 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Interact, 2001976u, new Vector3(299.8855f, 14.175598f, -249.3172f), 153); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2001976u, new Vector3(299.8855f, 14.175598f, -249.3172f), 153); obj62.Steps = list98; reference66 = obj62; - num++; - ref QuestSequence reference67 = ref span95[num]; + ref QuestSequence reference67 = ref span38[3]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj63.Steps = list99; reference67 = obj63; - num++; - ref QuestSequence reference68 = ref span95[num]; + ref QuestSequence reference68 = ref span38[4]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -59372,9 +49224,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153); obj64.Steps = list100; reference68 = obj64; questRoot16.QuestSequence = list95; @@ -59384,26 +49234,21 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list101)[0] = "JerryWester"; questRoot17.Author = list101; - index = 5; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference69 = ref span102[num]; + num = 5; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span40 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference69 = ref span40[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -59416,8 +49261,7 @@ public static class AssemblyQuestLoader }; obj65.Steps = list103; reference69 = obj65; - num++; - ref QuestSequence reference70 = ref span102[num]; + ref QuestSequence reference70 = ref span40[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -59425,9 +49269,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - ref QuestStep reference71 = ref span104[index2]; + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list104)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(262.89966f, 11.363011f, -143.02156f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -59435,52 +49277,40 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - index3 = 0; - ref ComplexCombatData reference72 = ref span105[index3]; + ref ComplexCombatData reference72 = ref CollectionsMarshal.AsSpan(list105)[0]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 4u, MinimumKillCount = 4u }; - 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; + 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; obj68.CompletionQuestVariablesFlags = list106; reference72 = obj68; obj67.ComplexCombatData = list105; reference71 = obj67; obj66.Steps = list104; reference70 = obj66; - num++; - ref QuestSequence reference73 = ref span102[num]; + ref QuestSequence reference73 = ref span40[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj69.Steps = list107; reference73 = obj69; - num++; - ref QuestSequence reference74 = ref span102[num]; + ref QuestSequence reference74 = ref span40[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -59488,23 +49318,18 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj70.Steps = list108; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span102[num]; + ref QuestSequence reference75 = ref span40[4]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; @@ -59517,16 +49342,13 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list110)[0] = "JerryWester"; questRoot18.Author = list110; - index = 6; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference76 = ref span111[num]; + num = 6; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span42 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference76 = ref span42[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -59534,9 +49356,7 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -59549,22 +49369,18 @@ public static class AssemblyQuestLoader }; obj72.Steps = list112; reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span111[num]; + ref QuestSequence reference77 = ref span42[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj73.Steps = list113; reference77 = obj73; - num++; - ref QuestSequence reference78 = ref span111[num]; + ref QuestSequence reference78 = ref span42[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -59572,39 +49388,31 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153); obj74.Steps = list114; reference78 = obj74; - num++; - ref QuestSequence reference79 = ref span111[num]; + ref QuestSequence reference79 = ref span42[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list115 = new List(index2); - CollectionsMarshal.SetCount(list115, index2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num2 = 0; - ref QuestStep reference80 = ref span115[num2]; + num2 = 1; + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + ref QuestStep reference80 = ref CollectionsMarshal.AsSpan(list115)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list116 = new List(index3); - CollectionsMarshal.SetCount(list116, index3); - Span span116 = CollectionsMarshal.AsSpan(list116); - num3 = 0; - span116[num3] = 1909u; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = 1909u; obj76.KillEnemyDataIds = list116; reference80 = obj76; obj75.Steps = list115; reference79 = obj75; - num++; - ref QuestSequence reference81 = ref span111[num]; + ref QuestSequence reference81 = ref span42[4]; QuestSequence obj77 = new QuestSequence { Sequence = 4 @@ -59612,23 +49420,18 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1006679u, new Vector3(352.49854f, -2.3331592f, 51.56018f), 153); obj77.Steps = list117; reference81 = obj77; - num++; - ref QuestSequence reference82 = ref span111[num]; + ref QuestSequence reference82 = ref span42[5]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj78.Steps = list118; reference82 = obj78; questRoot18.QuestSequence = list111; @@ -59638,16 +49441,13 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list119)[0] = "JerryWester"; questRoot19.Author = list119; - index = 2; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference83 = ref span120[num]; + num = 2; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span43 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference83 = ref span43[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -59655,9 +49455,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000332u, new Vector3(207.7821f, 6.103813f, -39.536194f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -59670,18 +49468,15 @@ public static class AssemblyQuestLoader }; obj79.Steps = list121; reference83 = obj79; - num++; - ref QuestSequence reference84 = ref span120[num]; + ref QuestSequence reference84 = ref span43[1]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -59694,16 +49489,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; questRoot20.Author = list123; - index = 3; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference85 = ref span124[num]; + num = 3; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span44 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference85 = ref span44[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -59711,9 +49503,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -59726,107 +49516,77 @@ public static class AssemblyQuestLoader }; obj81.Steps = list125; reference85 = obj81; - num++; - ref QuestSequence reference86 = ref span124[num]; + ref QuestSequence reference86 = ref span44[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list126 = new List(index2); - CollectionsMarshal.SetCount(list126, index2); - Span span126 = CollectionsMarshal.AsSpan(list126); - num2 = 0; - ref QuestStep reference87 = ref span126[num2]; + num2 = 4; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + Span span45 = CollectionsMarshal.AsSpan(list126); + ref QuestStep reference87 = ref span45[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list127; reference87 = questStep5; - num2++; - ref QuestStep reference88 = ref span126[num2]; + ref QuestStep reference88 = ref span45[1]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 1006222u, new Vector3(-207.17181f, 27.31405f, -331.34973f), 146) { DisableNavmesh = true }; - 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); + 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); obj83.CompletionQuestVariablesFlags = list128; reference88 = obj83; - num2++; - ref QuestStep reference89 = ref span126[num2]; + ref QuestStep reference89 = ref span45[2]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list129; reference89 = questStep6; - num2++; - ref QuestStep reference90 = ref span126[num2]; + ref QuestStep reference90 = ref span45[3]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list130; reference90 = questStep7; obj82.Steps = list126; reference86 = obj82; - num++; - ref QuestSequence reference91 = ref span124[num]; + ref QuestSequence reference91 = ref span44[2]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -59834,9 +49594,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj84.Steps = list131; reference91 = obj84; questRoot20.QuestSequence = list124; @@ -59846,26 +49604,21 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; questRoot21.Author = list132; - index = 4; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference92 = ref span133[num]; + num = 4; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span50 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference92 = ref span50[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -59879,8 +49632,7 @@ public static class AssemblyQuestLoader }; obj85.Steps = list134; reference92 = obj85; - num++; - ref QuestSequence reference93 = ref span133[num]; + ref QuestSequence reference93 = ref span50[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -59888,9 +49640,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - ref QuestStep reference94 = ref span135[index2]; + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 1006228u, new Vector3(-194.75098f, 19.02249f, -557.8546f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -59898,34 +49648,28 @@ public static class AssemblyQuestLoader num3 = 2; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span136 = CollectionsMarshal.AsSpan(list136); - index3 = 0; - span136[index3] = 2257u; - index3++; - span136[index3] = 2258u; + Span span51 = CollectionsMarshal.AsSpan(list136); + span51[0] = 2257u; + span51[1] = 2258u; obj87.KillEnemyDataIds = list136; reference94 = obj87; obj86.Steps = list135; reference93 = obj86; - num++; - ref QuestSequence reference95 = ref span133[num]; + ref QuestSequence reference95 = ref span50[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj88.Steps = list137; reference95 = obj88; - num++; - ref QuestSequence reference96 = ref span133[num]; + ref QuestSequence reference96 = ref span50[3]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -59933,9 +49677,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -59948,26 +49690,21 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list139)[0] = "JerryWester"; questRoot22.Author = list139; - index = 5; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference97 = ref span140[num]; + num = 5; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span52 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference97 = ref span52[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -59980,8 +49717,7 @@ public static class AssemblyQuestLoader }; obj90.Steps = list141; reference97 = obj90; - num++; - ref QuestSequence reference98 = ref span140[num]; + ref QuestSequence reference98 = ref span52[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -59989,158 +49725,112 @@ public static class AssemblyQuestLoader num2 = 6; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - ref QuestStep reference99 = ref span142[index2]; + Span span53 = CollectionsMarshal.AsSpan(list142); + ref QuestStep reference99 = ref span53[0]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list143; skipConditions4.StepIf = skipStepConditions4; obj92.SkipConditions = skipConditions4; reference99 = obj92; - index2++; - ref QuestStep reference100 = ref span142[index2]; + ref QuestStep reference100 = ref span53[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list144; reference100 = questStep8; - index2++; - ref QuestStep reference101 = ref span142[index2]; + ref QuestStep reference101 = ref span53[2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006225u, new Vector3(-83.84839f, 39.399178f, -333.69952f), 146); - 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); + 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; reference101 = questStep9; - index2++; - ref QuestStep reference102 = ref span142[index2]; + ref QuestStep reference102 = ref span53[3]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list146; reference102 = questStep10; - index2++; - ref QuestStep reference103 = ref span142[index2]; + ref QuestStep reference103 = ref span53[4]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2001981u, new Vector3(-78.93494f, 26.474365f, -350.08777f), 146); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list147; reference103 = questStep11; - index2++; - ref QuestStep reference104 = ref span142[index2]; + ref QuestStep reference104 = ref span53[5]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list148; reference104 = questStep12; obj91.Steps = list142; reference98 = obj91; - num++; - ref QuestSequence reference105 = ref span140[num]; + ref QuestSequence reference105 = ref span52[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj93.Steps = list149; reference105 = obj93; - num++; - ref QuestSequence reference106 = ref span140[num]; + ref QuestSequence reference106 = ref span52[3]; QuestSequence obj94 = new QuestSequence { Sequence = 3 @@ -60148,9 +49838,7 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006230u, new Vector3(34.89734f, 3.3969688f, -343.70947f), 146) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006230u, new Vector3(34.89734f, 3.3969688f, -343.70947f), 146) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -60159,18 +49847,15 @@ public static class AssemblyQuestLoader }; obj94.Steps = list150; reference106 = obj94; - num++; - ref QuestSequence reference107 = ref span140[num]; + ref QuestSequence reference107 = ref span52[4]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj95.Steps = list151; reference107 = obj95; questRoot22.QuestSequence = list140; @@ -60180,16 +49865,13 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list152)[0] = "JerryWester"; questRoot23.Author = list152; - index = 2; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference108 = ref span153[num]; + num = 2; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span60 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference108 = ref span60[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -60197,9 +49879,7 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -60212,35 +49892,29 @@ public static class AssemblyQuestLoader }; obj96.Steps = list154; reference108 = obj96; - num++; - ref QuestSequence reference109 = ref span153[num]; + ref QuestSequence reference109 = ref span60[1]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span155[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span61[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span155[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span61[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj97.Steps = list155; reference109 = obj97; questRoot23.QuestSequence = list153; @@ -60250,16 +49924,13 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list156)[0] = "JerryWester"; questRoot24.Author = list156; - index = 3; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference110 = ref span157[num]; + num = 3; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span62 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference110 = ref span62[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -60267,9 +49938,7 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -60283,34 +49952,28 @@ public static class AssemblyQuestLoader }; obj98.Steps = list158; reference110 = obj98; - num++; - ref QuestSequence reference111 = ref span157[num]; + ref QuestSequence reference111 = ref span62[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list159 = new List(index2); - CollectionsMarshal.SetCount(list159, index2); - Span span159 = CollectionsMarshal.AsSpan(list159); - num2 = 0; - ref QuestStep reference112 = ref span159[num2]; + num2 = 1; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list159)[0]; QuestStep obj100 = new QuestStep(EInteractionType.Combat, 2001982u, new Vector3(-260.0901f, -56.38214f, 307.60657f), 154) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list160 = new List(index3); - CollectionsMarshal.SetCount(list160, index3); - Span span160 = CollectionsMarshal.AsSpan(list160); - num3 = 0; - span160[num3] = 1899u; + num3 = 1; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + CollectionsMarshal.AsSpan(list160)[0] = 1899u; obj100.KillEnemyDataIds = list160; reference112 = obj100; obj99.Steps = list159; reference111 = obj99; - num++; - ref QuestSequence reference113 = ref span157[num]; + ref QuestSequence reference113 = ref span62[2]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -60318,9 +49981,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006242u, new Vector3(16.403442f, -44.865616f, 264.54565f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -60333,26 +49994,21 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; questRoot25.Author = list162; - index = 4; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference114 = ref span163[num]; + num = 4; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span63 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference114 = ref span63[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -60365,8 +50021,7 @@ public static class AssemblyQuestLoader }; obj102.Steps = list164; reference114 = obj102; - num++; - ref QuestSequence reference115 = ref span163[num]; + ref QuestSequence reference115 = ref span63[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -60374,138 +50029,98 @@ public static class AssemblyQuestLoader num2 = 3; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - 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) + 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) { ItemId = 2000616u, GroundTarget = true }; obj103.Steps = list165; reference115 = obj103; - num++; - ref QuestSequence reference116 = ref span163[num]; + ref QuestSequence reference116 = ref span63[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list166 = new List(index2); - CollectionsMarshal.SetCount(list166, index2); - Span span166 = CollectionsMarshal.AsSpan(list166); - num2 = 0; - ref QuestStep reference117 = ref span166[num2]; + num2 = 5; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + Span span65 = CollectionsMarshal.AsSpan(list166); + ref QuestStep reference117 = ref span65[0]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list167; reference117 = questStep13; - num2++; - ref QuestStep reference118 = ref span166[num2]; + ref QuestStep reference118 = ref span65[1]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2001986u, new Vector3(-219.71472f, -65.90375f, 383.3523f), 154); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list168; reference118 = questStep14; - num2++; - ref QuestStep reference119 = ref span166[num2]; + ref QuestStep reference119 = ref span65[2]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list169; reference119 = questStep15; - num2++; - ref QuestStep reference120 = ref span166[num2]; + ref QuestStep reference120 = ref span65[3]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2001985u, new Vector3(-233.02057f, -66.453064f, 378.95776f), 154); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list170; reference120 = questStep16; - num2++; - ref QuestStep reference121 = ref span166[num2]; + ref QuestStep reference121 = ref span65[4]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list171; reference121 = questStep17; obj104.Steps = list166; reference116 = obj104; - num++; - ref QuestSequence reference122 = ref span163[num]; + ref QuestSequence reference122 = ref span63[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -60513,9 +50128,7 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006241u, new Vector3(17.349426f, -44.86564f, 262.745f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -60528,30 +50141,24 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - Span span173 = CollectionsMarshal.AsSpan(list173); - index = 0; - span173[index] = "croizat"; + CollectionsMarshal.AsSpan(list173)[0] = "croizat"; questRoot26.Author = list173; - index = 3; - List list174 = new List(index); - CollectionsMarshal.SetCount(list174, index); - Span span174 = CollectionsMarshal.AsSpan(list174); - num = 0; - ref QuestSequence reference123 = ref span174[num]; + num = 3; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + Span span71 = CollectionsMarshal.AsSpan(list174); + ref QuestSequence reference123 = ref span71[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj106.Steps = list175; reference123 = obj106; - num++; - ref QuestSequence reference124 = ref span174[num]; + ref QuestSequence reference124 = ref span71[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -60559,28 +50166,23 @@ public static class AssemblyQuestLoader num2 = 2; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - 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) + 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) { DisableNavmesh = true }; obj107.Steps = list176; reference124 = obj107; - num++; - ref QuestSequence reference125 = ref span174[num]; + ref QuestSequence reference125 = ref span71[2]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(792) }; @@ -60593,16 +50195,13 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "croizat"; + CollectionsMarshal.AsSpan(list178)[0] = "croizat"; questRoot27.Author = list178; - index = 2; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference126 = ref span179[num]; + num = 2; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span73 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference126 = ref span73[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -60610,23 +50209,18 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002779u, new Vector3(-34.470154f, -40.466434f, 221.02686f), 154); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002779u, new Vector3(-34.470154f, -40.466434f, 221.02686f), 154); obj109.Steps = list180; reference126 = obj109; - num++; - ref QuestSequence reference127 = ref span179[num]; + ref QuestSequence reference127 = ref span73[1]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj110.Steps = list181; reference127 = obj110; questRoot27.QuestSequence = list179; @@ -60636,16 +50230,13 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = "croizat"; + CollectionsMarshal.AsSpan(list182)[0] = "croizat"; questRoot28.Author = list182; - index = 3; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref QuestSequence reference128 = ref span183[num]; + num = 3; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span74 = CollectionsMarshal.AsSpan(list183); + ref QuestSequence reference128 = ref span74[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -60653,35 +50244,29 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154); obj111.Steps = list184; reference128 = obj111; - num++; - ref QuestSequence reference129 = ref span183[num]; + ref QuestSequence reference129 = ref span74[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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) + 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) { ItemId = 2000623u }; - num2++; - span185[num2] = new QuestStep(EInteractionType.UseItem, 2001994u, new Vector3(-35.690857f, -33.676758f, 167.80347f), 154) + span75[1] = new QuestStep(EInteractionType.UseItem, 2001994u, new Vector3(-35.690857f, -33.676758f, 167.80347f), 154) { ItemId = 2000623u }; obj112.Steps = list185; reference129 = obj112; - num++; - ref QuestSequence reference130 = ref span183[num]; + ref QuestSequence reference130 = ref span74[2]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -60689,9 +50274,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(793) }; @@ -60704,30 +50287,24 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "croizat"; + CollectionsMarshal.AsSpan(list187)[0] = "croizat"; questRoot29.Author = list187; - index = 4; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference131 = ref span188[num]; + num = 4; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span76 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference131 = ref span76[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list189; reference131 = obj114; - num++; - ref QuestSequence reference132 = ref span188[num]; + ref QuestSequence reference132 = ref span76[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -60735,19 +50312,15 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - ref QuestStep reference133 = ref span190[index2]; + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list190)[0]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, null, new Vector3(-106.12237f, -51.697598f, 386.2573f), 154) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list191 = new List(index3); - CollectionsMarshal.SetCount(list191, index3); - Span span191 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span191[num3] = new ComplexCombatData + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 1u @@ -60756,22 +50329,18 @@ public static class AssemblyQuestLoader reference133 = obj116; obj115.Steps = list190; reference132 = obj115; - num++; - ref QuestSequence reference134 = ref span188[num]; + ref QuestSequence reference134 = ref span76[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj117.Steps = list192; reference134 = obj117; - num++; - ref QuestSequence reference135 = ref span188[num]; + ref QuestSequence reference135 = ref span76[3]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -60779,9 +50348,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002804u, new Vector3(-26.260803f, -40.705082f, 172.74731f), 154) { NextQuestId = new QuestId(796) }; @@ -60794,30 +50361,24 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "croizat"; + CollectionsMarshal.AsSpan(list194)[0] = "croizat"; questRoot30.Author = list194; - index = 3; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference136 = ref span195[num]; + num = 3; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span77 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference136 = ref span77[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj119.Steps = list196; reference136 = obj119; - num++; - ref QuestSequence reference137 = ref span195[num]; + ref QuestSequence reference137 = ref span77[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -60825,23 +50386,18 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 1006251u, new Vector3(-56.839844f, -43.544834f, 353.5973f), 154); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1006251u, new Vector3(-56.839844f, -43.544834f, 353.5973f), 154); obj120.Steps = list197; reference137 = obj120; - num++; - ref QuestSequence reference138 = ref span195[num]; + ref QuestSequence reference138 = ref span77[2]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(795) }; @@ -60854,16 +50410,13 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "croizat"; + CollectionsMarshal.AsSpan(list199)[0] = "croizat"; questRoot31.Author = list199; - index = 3; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference139 = ref span200[num]; + num = 3; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span78 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference139 = ref span78[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -60871,27 +50424,21 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj122.Steps = list201; reference139 = obj122; - num++; - ref QuestSequence reference140 = ref span200[num]; + ref QuestSequence reference140 = ref span78[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj123.Steps = list202; reference140 = obj123; - num++; - ref QuestSequence reference141 = ref span200[num]; + ref QuestSequence reference141 = ref span78[2]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -60899,9 +50446,7 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002800u, new Vector3(-23.727844f, -40.250828f, 174.88354f), 154); obj124.Steps = list203; reference141 = obj124; questRoot31.QuestSequence = list200; @@ -60911,30 +50456,24 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - Span span204 = CollectionsMarshal.AsSpan(list204); - index = 0; - span204[index] = "croizat"; + CollectionsMarshal.AsSpan(list204)[0] = "croizat"; questRoot32.Author = list204; - index = 3; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - ref QuestSequence reference142 = ref span205[num]; + num = 3; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + Span span79 = CollectionsMarshal.AsSpan(list205); + ref QuestSequence reference142 = ref span79[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj125.Steps = list206; reference142 = obj125; - num++; - ref QuestSequence reference143 = ref span205[num]; + ref QuestSequence reference143 = ref span79[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -60942,27 +50481,21 @@ public static class AssemblyQuestLoader num2 = 3; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - 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); + 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); obj126.Steps = list207; reference143 = obj126; - num++; - ref QuestSequence reference144 = ref span205[num]; + ref QuestSequence reference144 = ref span79[2]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj127.Steps = list208; reference144 = obj127; questRoot32.QuestSequence = list205; @@ -60972,16 +50505,13 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - Span span209 = CollectionsMarshal.AsSpan(list209); - index = 0; - span209[index] = "croizat"; + CollectionsMarshal.AsSpan(list209)[0] = "croizat"; questRoot33.Author = list209; - index = 3; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - ref QuestSequence reference145 = ref span210[num]; + num = 3; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span81 = CollectionsMarshal.AsSpan(list210); + ref QuestSequence reference145 = ref span81[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -60989,23 +50519,18 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154); obj128.Steps = list211; reference145 = obj128; - num++; - ref QuestSequence reference146 = ref span210[num]; + ref QuestSequence reference146 = ref span81[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list212 = new List(index2); - CollectionsMarshal.SetCount(list212, index2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - ref QuestStep reference147 = ref span212[num2]; + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list212)[0]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(-218.99034f, -30.112806f, 339.3762f), 154) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -61013,9 +50538,7 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span213 = CollectionsMarshal.AsSpan(list213); - index3 = 0; - span213[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list213)[0] = new ComplexCombatData { DataId = 2266u, MinimumKillCount = 2u, @@ -61031,8 +50554,7 @@ public static class AssemblyQuestLoader reference147 = obj130; obj129.Steps = list212; reference146 = obj129; - num++; - ref QuestSequence reference148 = ref span210[num]; + ref QuestSequence reference148 = ref span81[2]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -61040,9 +50562,7 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006258u, new Vector3(-246.479f, -31.537203f, 392.5382f), 154) { NextQuestId = new QuestId(798) }; @@ -61055,30 +50575,24 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - Span span215 = CollectionsMarshal.AsSpan(list215); - index = 0; - span215[index] = "croizat"; + CollectionsMarshal.AsSpan(list215)[0] = "croizat"; questRoot34.Author = list215; - index = 3; - List list216 = new List(index); - CollectionsMarshal.SetCount(list216, index); - Span span216 = CollectionsMarshal.AsSpan(list216); - num = 0; - ref QuestSequence reference149 = ref span216[num]; + num = 3; + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span82 = CollectionsMarshal.AsSpan(list216); + ref QuestSequence reference149 = ref span82[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj132.Steps = list217; reference149 = obj132; - num++; - ref QuestSequence reference150 = ref span216[num]; + ref QuestSequence reference150 = ref span82[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -61086,33 +50600,25 @@ public static class AssemblyQuestLoader num2 = 3; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - ref QuestStep reference151 = ref span218[index2]; + Span span83 = CollectionsMarshal.AsSpan(list218); + ref QuestStep reference151 = ref span83[0]; QuestStep obj134 = new QuestStep(EInteractionType.UseItem, 2001996u, new Vector3(-213.39746f, -37.94922f, 265.4917f), 154) { ItemId = 2000629u }; - 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); + 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); obj134.CompletionQuestVariablesFlags = list219; reference151 = obj134; - index2++; - ref QuestStep reference152 = ref span218[index2]; + ref QuestStep reference152 = ref span83[1]; QuestStep obj135 = new QuestStep(EInteractionType.UseItem, 2001997u, new Vector3(-209.03339f, -42.37433f, 248.67627f), 154) { ItemId = 2000629u @@ -61120,59 +50626,43 @@ public static class AssemblyQuestLoader num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - 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); + 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); obj135.CompletionQuestVariablesFlags = list220; reference152 = obj135; - index2++; - ref QuestStep reference153 = ref span218[index2]; + ref QuestStep reference153 = ref span83[2]; QuestStep obj136 = new QuestStep(EInteractionType.UseItem, 2001998u, new Vector3(-247.66925f, -43.38141f, 268.48242f), 154) { ItemId = 2000629u }; - 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); + 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); obj136.CompletionQuestVariablesFlags = list221; reference153 = obj136; obj133.Steps = list218; reference150 = obj133; - num++; - ref QuestSequence reference154 = ref span216[num]; + ref QuestSequence reference154 = ref span82[2]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj137.Steps = list222; reference154 = obj137; questRoot34.QuestSequence = list216; @@ -61182,16 +50672,13 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - Span span223 = CollectionsMarshal.AsSpan(list223); - index = 0; - span223[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list223)[0] = "JerryWester"; questRoot35.Author = list223; - index = 3; - List list224 = new List(index); - CollectionsMarshal.SetCount(list224, index); - Span span224 = CollectionsMarshal.AsSpan(list224); - num = 0; - ref QuestSequence reference155 = ref span224[num]; + num = 3; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + Span span87 = CollectionsMarshal.AsSpan(list224); + ref QuestSequence reference155 = ref span87[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -61199,9 +50686,7 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -61215,18 +50700,16 @@ public static class AssemblyQuestLoader }; obj138.Steps = list225; reference155 = obj138; - num++; - ref QuestSequence reference156 = ref span224[num]; + ref QuestSequence reference156 = ref span87[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list226 = new List(index2); - CollectionsMarshal.SetCount(list226, index2); - Span span226 = CollectionsMarshal.AsSpan(list226); - num2 = 0; - ref QuestStep reference157 = ref span226[num2]; + num2 = 2; + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + Span span88 = CollectionsMarshal.AsSpan(list226); + ref QuestStep reference157 = ref span88[0]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -61234,17 +50717,13 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span227 = CollectionsMarshal.AsSpan(list227); - index3 = 0; - span227[index3] = 182u; + CollectionsMarshal.AsSpan(list227)[0] = 182u; obj140.KillEnemyDataIds = list227; reference157 = obj140; - num2++; - span226[num2] = new QuestStep(EInteractionType.Interact, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154); + span88[1] = new QuestStep(EInteractionType.Interact, 1007541u, new Vector3(-302.8459f, -51.768955f, 331.19702f), 154); obj139.Steps = list226; reference156 = obj139; - num++; - ref QuestSequence reference158 = ref span224[num]; + ref QuestSequence reference158 = ref span87[2]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -61252,9 +50731,7 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -61271,16 +50748,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -61288,9 +50762,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -61303,25 +50775,21 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -61329,23 +50797,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -61355,8 +50818,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -61364,9 +50826,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -61376,30 +50836,24 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; questRoot2.Author = list8; - index = 6; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 6; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -61407,9 +50861,8 @@ public static class AssemblyQuestLoader num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132) + Span span3 = CollectionsMarshal.AsSpan(list11); + span3[0] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -61421,27 +50874,22 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(802) }; - index2++; - span11[index2] = new QuestStep(EInteractionType.Interact, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132) + span3[1] = new QuestStep(EInteractionType.Interact, 1000171u, new Vector3(-114.366455f, -7.351947f, 94.52954f), 132) { TargetTerritoryId = (ushort)148 }; - index2++; - span11[index2] = new QuestStep(EInteractionType.Interact, 2001999u, new Vector3(-576.1349f, 68.13147f, 69.41321f), 148); + span3[2] = new QuestStep(EInteractionType.Interact, 2001999u, new Vector3(-576.1349f, 68.13147f, 69.41321f), 148); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num2 = 0; - ref QuestStep reference9 = ref span12[num2]; + num2 = 1; + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; QuestStep questStep = new QuestStep(EInteractionType.Duty, null, null, 148); DutyOptions obj9 = new DutyOptions { @@ -61450,21 +50898,17 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - 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"; + 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"; obj9.Notes = list13; questStep.DutyOptions = obj9; reference9 = questStep; obj8.Steps = list12; reference8 = obj8; - num++; - span9[num] = new QuestSequence + span2[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span2[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -61472,9 +50916,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -61485,35 +50927,29 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span2[5]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span15[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span4[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span4[4] = new QuestStep(EInteractionType.CompleteQuest, 1006688u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj11.Steps = list15; reference11 = obj11; questRoot2.QuestSequence = list9; @@ -61523,16 +50959,13 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 2; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 2; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span5 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -61540,23 +50973,18 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006259u, new Vector3(43.808594f, 2.5499606f, 21.683044f), 132); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span5[1]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj13.Steps = list19; reference13 = obj13; questRoot3.QuestSequence = list17; @@ -61566,16 +50994,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot4.Author = list20; - index = 3; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference14 = ref span21[num]; + num = 3; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span6 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference14 = ref span6[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -61583,9 +51008,8 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + Span span7 = CollectionsMarshal.AsSpan(list22); + span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -61597,33 +51021,27 @@ public static class AssemblyQuestLoader } } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + span7[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span21[num]; + ref QuestSequence reference15 = ref span6[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list23 = new List(index2); - CollectionsMarshal.SetCount(list23, index2); - Span span23 = CollectionsMarshal.AsSpan(list23); - num2 = 0; - ref QuestStep reference16 = ref span23[num2]; + num2 = 1; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-294.20667f, 61.58862f, -192.54443f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list24 = new List(index3); - CollectionsMarshal.SetCount(list24, index3); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - ref ComplexCombatData reference17 = ref span24[num3]; + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + ref ComplexCombatData reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; ComplexCombatData obj17 = new ComplexCombatData { DataId = 48u @@ -61631,44 +51049,31 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - 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; + 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; obj17.CompletionQuestVariablesFlags = list25; reference17 = obj17; obj16.ComplexCombatData = list24; num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - 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; + 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; obj16.CompletionQuestVariablesFlags = list26; reference16 = obj16; obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span6[2]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -61676,14 +51081,12 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + Span span10 = CollectionsMarshal.AsSpan(list27); + span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true }; - index2++; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(805) }; @@ -61696,26 +51099,22 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot5.Author = list28; - index = 3; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference19 = ref span29[num]; + num = 3; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span11 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference19 = ref span11[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -61727,12 +51126,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj19.Steps = list30; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span29[num]; + ref QuestSequence reference20 = ref span11[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -61740,19 +51137,15 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - ref QuestStep reference21 = ref span31[index2]; + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list31)[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(-291.6655f, 60.450222f, -163.48296f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new ComplexCombatData + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new ComplexCombatData { DataId = 2267u }; @@ -61766,23 +51159,20 @@ public static class AssemblyQuestLoader reference21 = obj21; obj20.Steps = list31; reference20 = obj20; - num++; - ref QuestSequence reference22 = ref span29[num]; + ref QuestSequence reference22 = ref span11[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(807) }; @@ -61795,16 +51185,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "croizat"; + CollectionsMarshal.AsSpan(list34)[0] = "croizat"; questRoot6.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference23 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span14 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference23 = ref span14[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -61812,31 +51199,24 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); obj23.Steps = list36; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span35[num]; + ref QuestSequence reference24 = ref span14[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj24.Steps = list37; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span35[num]; + ref QuestSequence reference25 = ref span14[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -61844,9 +51224,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006262u, new Vector3(-243.7019f, 58.71083f, -141.49695f), 148); obj25.Steps = list38; reference25 = obj25; questRoot6.QuestSequence = list35; @@ -61856,26 +51234,22 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot7.Author = list39; - index = 3; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference26 = ref span40[num]; + num = 3; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span16 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference26 = ref span16[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -61887,12 +51261,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span41[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + span17[1] = new QuestStep(EInteractionType.AcceptQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj26.Steps = list41; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span40[num]; + ref QuestSequence reference27 = ref span16[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -61900,9 +51272,7 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - ref QuestStep reference28 = ref span42[index2]; + ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list42)[0]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-327.70383f, 57.159073f, -13.640016f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -61910,9 +51280,7 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span43 = CollectionsMarshal.AsSpan(list43); - index3 = 0; - span43[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData { DataId = 2193u, NameId = 2057u @@ -61927,23 +51295,20 @@ public static class AssemblyQuestLoader reference28 = obj28; obj27.Steps = list42; reference27 = obj27; - num++; - ref QuestSequence reference29 = ref span40[num]; + ref QuestSequence reference29 = ref span16[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span44[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(1485) }; @@ -61956,16 +51321,13 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list45)[0] = "JerryWester"; questRoot8.Author = list45; - index = 3; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference30 = ref span46[num]; + num = 3; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span19 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference30 = ref span19[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -61973,42 +51335,34 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj30.Steps = list47; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span46[num]; + ref QuestSequence reference31 = ref span19[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num2 = 0; - ref QuestStep reference32 = ref span48[num2]; + num2 = 1; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2002033u, new Vector3(671.1986f, 64.37781f, -205.24915f), 135) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + Span span20 = CollectionsMarshal.AsSpan(list49); + span20[0] = 2239u; + span20[1] = 2240u; obj32.KillEnemyDataIds = list49; reference32 = obj32; obj31.Steps = list48; reference31 = obj31; - num++; - ref QuestSequence reference33 = ref span46[num]; + ref QuestSequence reference33 = ref span19[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -62016,11 +51370,9 @@ public static class AssemblyQuestLoader num2 = 2; 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(674.84393f, 64.118355f, -203.85042f), 135); - index2++; - span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + 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); obj33.Steps = list50; reference33 = obj33; questRoot8.QuestSequence = list46; @@ -62030,30 +51382,24 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list51)[0] = "JerryWester"; questRoot9.Author = list51; - index = 3; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference34 = ref span52[num]; + num = 3; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span22 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference34 = ref span22[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list53; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span52[num]; + ref QuestSequence reference35 = ref span22[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -62061,9 +51407,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - ref QuestStep reference36 = ref span54[index2]; + ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list54)[0]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, 2002034u, new Vector3(646.1432f, 67.46008f, -263.38605f), 135) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -62071,25 +51415,20 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - index3 = 0; - span55[index3] = 1900u; + CollectionsMarshal.AsSpan(list55)[0] = 1900u; obj36.KillEnemyDataIds = list55; reference36 = obj36; obj35.Steps = list54; reference35 = obj35; - num++; - ref QuestSequence reference37 = ref span52[num]; + ref QuestSequence reference37 = ref span22[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj37.Steps = list56; reference37 = obj37; questRoot9.QuestSequence = list52; @@ -62099,16 +51438,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; questRoot10.Author = list57; - index = 3; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference38 = ref span58[num]; + num = 3; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span23 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference38 = ref span23[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -62116,23 +51452,18 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006264u, new Vector3(710.90247f, 66.027f, -277.66846f), 135); obj38.Steps = list59; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span58[num]; + ref QuestSequence reference39 = ref span23[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -62141,8 +51472,7 @@ public static class AssemblyQuestLoader }; obj39.Steps = list60; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span58[num]; + ref QuestSequence reference40 = ref span23[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -62150,21 +51480,17 @@ public static class AssemblyQuestLoader num2 = 4; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(696.00323f, 80.20443f, -391.9752f), 135) + Span span24 = CollectionsMarshal.AsSpan(list61); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(696.00323f, 80.20443f, -391.9752f), 135) { TargetTerritoryId = (ushort)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) + 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) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - index2++; - span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); + span24[3] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); obj40.Steps = list61; reference40 = obj40; questRoot10.QuestSequence = list58; @@ -62174,26 +51500,21 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; questRoot11.Author = list62; - index = 4; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference41 = ref span63[num]; + num = 4; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span25 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference41 = ref span25[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -62206,8 +51527,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list64; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span63[num]; + ref QuestSequence reference42 = ref span25[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -62215,42 +51535,34 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.UseItem, 2002035u, new Vector3(666.6819f, 9.018005f, 509.6361f), 137) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.UseItem, 2002035u, new Vector3(666.6819f, 9.018005f, 509.6361f), 137) { ItemId = 2000636u }; obj42.Steps = list65; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span63[num]; + ref QuestSequence reference43 = ref span25[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list66 = new List(index2); - CollectionsMarshal.SetCount(list66, index2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num2 = 0; - ref QuestStep reference44 = ref span66[num2]; + num2 = 1; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list66)[0]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2002639u, new Vector3(652.2468f, 12.039368f, 519.8595f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list67 = new List(index3); - CollectionsMarshal.SetCount(list67, index3); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - span67[num3] = 1887u; + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = 1887u; obj44.KillEnemyDataIds = list67; reference44 = obj44; obj43.Steps = list66; reference43 = obj43; - num++; - ref QuestSequence reference45 = ref span63[num]; + ref QuestSequence reference45 = ref span25[3]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -62258,9 +51570,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); obj45.Steps = list68; reference45 = obj45; questRoot11.QuestSequence = list63; @@ -62270,26 +51580,21 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; questRoot12.Author = list69; - index = 2; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference46 = ref span70[num]; + num = 2; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span26 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference46 = ref span26[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -62302,8 +51607,7 @@ public static class AssemblyQuestLoader }; obj46.Steps = list71; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span70[num]; + ref QuestSequence reference47 = ref span26[1]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -62311,9 +51615,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; @@ -62326,30 +51628,24 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "croizat"; + CollectionsMarshal.AsSpan(list73)[0] = "croizat"; questRoot13.Author = list73; - index = 3; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference48 = ref span74[num]; + num = 3; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span27 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference48 = ref span27[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj48.Steps = list75; reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span74[num]; + ref QuestSequence reference49 = ref span27[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -62357,9 +51653,8 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - ref QuestStep reference50 = ref span76[index2]; + Span span28 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference50 = ref span28[0]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.93796f, 8.626011f, 640.6978f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -62367,27 +51662,21 @@ public static class AssemblyQuestLoader num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span77 = CollectionsMarshal.AsSpan(list77); - index3 = 0; - span77[index3] = 13u; + CollectionsMarshal.AsSpan(list77)[0] = 13u; obj50.KillEnemyDataIds = list77; reference50 = obj50; - index2++; - span76[index2] = new QuestStep(EInteractionType.Interact, 1006284u, new Vector3(-228.62598f, 8.514692f, 641.1687f), 153); + span28[1] = new QuestStep(EInteractionType.Interact, 1006284u, new Vector3(-228.62598f, 8.514692f, 641.1687f), 153); obj49.Steps = list76; reference49 = obj49; - num++; - ref QuestSequence reference51 = ref span74[num]; + ref QuestSequence reference51 = ref span27[2]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj51.Steps = list78; reference51 = obj51; questRoot13.QuestSequence = list74; @@ -62397,16 +51686,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "croizat"; + CollectionsMarshal.AsSpan(list79)[0] = "croizat"; questRoot14.Author = list79; - index = 3; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference52 = ref span80[num]; + num = 3; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span29 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference52 = ref span29[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -62414,39 +51700,31 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); obj52.Steps = list81; reference52 = obj52; - num++; - ref QuestSequence reference53 = ref span80[num]; + ref QuestSequence reference53 = ref span29[1]; QuestSequence obj53 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 2002041u, new Vector3(-188.83038f, 1.1443481f, 429.6482f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list83 = new List(index3); - CollectionsMarshal.SetCount(list83, index3); - Span span83 = CollectionsMarshal.AsSpan(list83); - num3 = 0; - span83[num3] = 302u; + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = 302u; obj54.KillEnemyDataIds = list83; reference54 = obj54; - num2++; - ref QuestStep reference55 = ref span82[num2]; + ref QuestStep reference55 = ref span30[2]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, 2002042u, new Vector3(-204.21149f, 0.41192627f, 471.00012f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -62454,15 +51732,12 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span84 = CollectionsMarshal.AsSpan(list84); - index3 = 0; - span84[index3] = 302u; + CollectionsMarshal.AsSpan(list84)[0] = 302u; obj55.KillEnemyDataIds = list84; reference55 = obj55; obj53.Steps = list82; reference53 = obj53; - num++; - ref QuestSequence reference56 = ref span80[num]; + ref QuestSequence reference56 = ref span29[2]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -62470,9 +51745,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002762u, new Vector3(-203.69275f, 20.975048f, 367.33044f), 153); obj56.Steps = list85; reference56 = obj56; questRoot14.QuestSequence = list80; @@ -62482,26 +51755,21 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list86)[0] = "JerryWester"; questRoot15.Author = list86; - index = 4; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference57 = ref span87[num]; + num = 4; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span31 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference57 = ref span31[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -62514,8 +51782,7 @@ public static class AssemblyQuestLoader }; obj57.Steps = list88; reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span87[num]; + ref QuestSequence reference58 = ref span31[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -62523,42 +51790,34 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.UseItem, 2002044u, new Vector3(75.97461f, 2.090454f, 692.9884f), 146) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.UseItem, 2002044u, new Vector3(75.97461f, 2.090454f, 692.9884f), 146) { ItemId = 2000643u }; obj58.Steps = list89; reference58 = obj58; - num++; - ref QuestSequence reference59 = ref span87[num]; + ref QuestSequence reference59 = ref span31[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num2 = 0; - ref QuestStep reference60 = ref span90[num2]; + num2 = 1; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list90)[0]; QuestStep obj60 = new QuestStep(EInteractionType.Combat, 2002045u, new Vector3(89.066895f, 3.189148f, 673.0906f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list91 = new List(index3); - CollectionsMarshal.SetCount(list91, index3); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - span91[num3] = 1889u; + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + CollectionsMarshal.AsSpan(list91)[0] = 1889u; obj60.KillEnemyDataIds = list91; reference60 = obj60; obj59.Steps = list90; reference59 = obj59; - num++; - ref QuestSequence reference61 = ref span87[num]; + ref QuestSequence reference61 = ref span31[3]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -62566,9 +51825,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -62581,26 +51838,21 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; questRoot16.Author = list93; - index = 5; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference62 = ref span94[num]; + num = 5; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span32 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference62 = ref span32[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -62613,8 +51865,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list95; reference62 = obj62; - num++; - ref QuestSequence reference63 = ref span94[num]; + ref QuestSequence reference63 = ref span32[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -62622,9 +51873,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - ref QuestStep reference64 = ref span96[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-44.549854f, 7.3629045f, 405.72034f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -62632,9 +51881,7 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span97 = CollectionsMarshal.AsSpan(list97); - index3 = 0; - span97[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list97)[0] = new ComplexCombatData { DataId = 356u }; @@ -62642,25 +51889,21 @@ public static class AssemblyQuestLoader reference64 = obj64; obj63.Steps = list96; reference63 = obj63; - num++; - ref QuestSequence reference65 = ref span94[num]; + ref QuestSequence reference65 = ref span32[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2000645u }; obj65.Steps = list98; reference65 = obj65; - num++; - ref QuestSequence reference66 = ref span94[num]; + ref QuestSequence reference66 = ref span32[3]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -62668,35 +51911,28 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - ref QuestStep reference67 = ref span99[index2]; + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list99)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2002576u, new Vector3(57.99951f, 21.011597f, 569.69543f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list100 = new List(index3); - CollectionsMarshal.SetCount(list100, index3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = 1890u; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + CollectionsMarshal.AsSpan(list100)[0] = 1890u; obj67.KillEnemyDataIds = list100; reference67 = obj67; obj66.Steps = list99; reference66 = obj66; - num++; - ref QuestSequence reference68 = ref span94[num]; + ref QuestSequence reference68 = ref span32[4]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -62709,16 +51945,13 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot17.Author = list102; - index = 3; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference69 = ref span103[num]; + num = 3; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span33 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference69 = ref span33[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -62726,9 +51959,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -62741,18 +51972,16 @@ public static class AssemblyQuestLoader }; obj69.Steps = list104; reference69 = obj69; - num++; - ref QuestSequence reference70 = ref span103[num]; + ref QuestSequence reference70 = ref span33[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -62762,8 +51991,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference71 = ref span105[num2]; + ref QuestStep reference71 = ref span34[1]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-452.6925f, 7.386449f, 579.44867f), 146) { Fly = true, @@ -62772,34 +52000,24 @@ public static class AssemblyQuestLoader num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span106 = CollectionsMarshal.AsSpan(list106); - index3 = 0; - span106[index3] = 356u; + CollectionsMarshal.AsSpan(list106)[0] = 356u; obj71.KillEnemyDataIds = list106; - 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; + 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; obj71.CompletionQuestVariablesFlags = list107; reference71 = obj71; - num2++; - span105[num2] = new QuestStep(EInteractionType.Interact, 1006289u, new Vector3(-454.36792f, 7.3196526f, 580.3158f), 146); + span34[2] = new QuestStep(EInteractionType.Interact, 1006289u, new Vector3(-454.36792f, 7.3196526f, 580.3158f), 146); obj70.Steps = list105; reference70 = obj70; - num++; - ref QuestSequence reference72 = ref span103[num]; + ref QuestSequence reference72 = ref span33[2]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -62807,9 +52025,8 @@ public static class AssemblyQuestLoader num2 = 2; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + Span span36 = CollectionsMarshal.AsSpan(list108); + span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -62820,8 +52037,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj72.Steps = list108; reference72 = obj72; questRoot17.QuestSequence = list103; @@ -62831,26 +52047,21 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot18.Author = list109; - index = 4; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference73 = ref span110[num]; + num = 4; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span37 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference73 = ref span37[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -62863,8 +52074,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list111; reference73 = obj73; - num++; - ref QuestSequence reference74 = ref span110[num]; + ref QuestSequence reference74 = ref span37[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -62872,9 +52082,8 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) + Span span38 = CollectionsMarshal.AsSpan(list112); + span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.53528f, 8.5170555f, 420.7671f), 146) { SkipConditions = new SkipConditions { @@ -62884,8 +52093,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference75 = ref span112[index2]; + ref QuestStep reference75 = ref span38[1]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(311.96396f, 7.342495f, 653.4828f), 146) { Fly = true, @@ -62894,36 +52102,29 @@ public static class AssemblyQuestLoader num3 = 3; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span113 = CollectionsMarshal.AsSpan(list113); - index3 = 0; - span113[index3] = 166u; - index3++; - span113[index3] = 168u; - index3++; - span113[index3] = 169u; + Span span39 = CollectionsMarshal.AsSpan(list113); + span39[0] = 166u; + span39[1] = 168u; + span39[2] = 169u; obj75.KillEnemyDataIds = list113; reference75 = obj75; obj74.Steps = list112; reference74 = obj74; - num++; - ref QuestSequence reference76 = ref span110[num]; + ref QuestSequence reference76 = ref span37[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Emote = EEmote.Psych }; obj76.Steps = list114; reference76 = obj76; - num++; - ref QuestSequence reference77 = ref span110[num]; + ref QuestSequence reference77 = ref span37[3]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -62931,9 +52132,7 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; @@ -62946,33 +52145,27 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "skiaz"; + CollectionsMarshal.AsSpan(list116)[0] = "skiaz"; questRoot19.Author = list116; - index = 6; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference78 = ref span117[num]; + num = 6; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span40 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference78 = ref span40[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj78.Steps = list118; reference78 = obj78; - num++; - ref QuestSequence reference79 = ref span117[num]; + ref QuestSequence reference79 = ref span40[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -62980,27 +52173,21 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj79.Steps = list119; reference79 = obj79; - num++; - ref QuestSequence reference80 = ref span117[num]; + ref QuestSequence reference80 = ref span40[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj80.Steps = list120; reference80 = obj80; - num++; - ref QuestSequence reference81 = ref span117[num]; + ref QuestSequence reference81 = ref span40[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -63008,20 +52195,16 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - ref QuestStep reference82 = ref span121[index2]; + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list121)[0]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2268u, new Vector3(-192.82831f, 9.630248f, 454.79517f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list122 = new List(index3); - CollectionsMarshal.SetCount(list122, index3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - span122[num3] = new ComplexCombatData + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = new ComplexCombatData { DataId = 2268u, MinimumKillCount = 3u @@ -63036,25 +52219,21 @@ public static class AssemblyQuestLoader reference82 = obj82; obj81.Steps = list121; reference81 = obj81; - num++; - ref QuestSequence reference83 = ref span117[num]; + ref QuestSequence reference83 = ref span40[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj83.Steps = list123; reference83 = obj83; - num++; - ref QuestSequence reference84 = ref span117[num]; + ref QuestSequence reference84 = ref span40[5]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -63062,9 +52241,7 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006287u, new Vector3(-354.66547f, 8.469922f, 416.80017f), 146); obj84.Steps = list124; reference84 = obj84; questRoot19.QuestSequence = list117; @@ -63074,26 +52251,21 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list125)[0] = "JerryWester"; questRoot20.Author = list125; - index = 2; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference85 = ref span126[num]; + num = 2; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span41 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference85 = ref span41[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -63106,8 +52278,7 @@ public static class AssemblyQuestLoader }; obj85.Steps = list127; reference85 = obj85; - num++; - ref QuestSequence reference86 = ref span126[num]; + ref QuestSequence reference86 = ref span41[1]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -63115,9 +52286,7 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -63130,27 +52299,22 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - Span span129 = CollectionsMarshal.AsSpan(list129); - index = 0; - span129[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list129)[0] = "JerryWester"; questRoot21.Author = list129; questRoot21.Interruptible = false; - index = 6; - List list130 = new List(index); - CollectionsMarshal.SetCount(list130, index); - Span span130 = CollectionsMarshal.AsSpan(list130); - num = 0; - ref QuestSequence reference87 = ref span130[num]; + num = 6; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + Span span42 = CollectionsMarshal.AsSpan(list130); + ref QuestSequence reference87 = ref span42[0]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -63163,8 +52327,7 @@ public static class AssemblyQuestLoader }; obj87.Steps = list131; reference87 = obj87; - num++; - ref QuestSequence reference88 = ref span130[num]; + ref QuestSequence reference88 = ref span42[1]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -63172,40 +52335,32 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Interact, 1006267u, new Vector3(340.81018f, 34.269722f, 110.27698f), 137); + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1006267u, new Vector3(340.81018f, 34.269722f, 110.27698f), 137); obj88.Steps = list132; reference88 = obj88; - num++; - ref QuestSequence reference89 = ref span130[num]; + ref QuestSequence reference89 = ref span42[2]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)137 }; - num2++; - span133[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + span43[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { StopDistance = 5f, Aetheryte = EAetheryteLocation.EasternLaNosceaWineport }; - 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); + 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); obj89.Steps = list133; reference89 = obj89; - num++; - ref QuestSequence reference90 = ref span130[num]; + ref QuestSequence reference90 = ref span42[3]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -63213,9 +52368,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - ref QuestStep reference91 = ref span134[index2]; + ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list134)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Duty, null, null, 137); DutyOptions obj91 = new DutyOptions { @@ -63224,26 +52377,21 @@ public static class AssemblyQuestLoader num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - 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"; + 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"; obj91.Notes = list135; questStep2.DutyOptions = obj91; reference91 = questStep2; obj90.Steps = list134; reference90 = obj90; - num++; - ref QuestSequence reference92 = ref span130[num]; + ref QuestSequence reference92 = ref span42[4]; QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63256,8 +52404,7 @@ public static class AssemblyQuestLoader }; obj92.Steps = list136; reference92 = obj92; - num++; - ref QuestSequence reference93 = ref span130[num]; + ref QuestSequence reference93 = ref span42[5]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -63265,9 +52412,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -63280,26 +52425,21 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; questRoot22.Author = list138; - index = 3; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference94 = ref span139[num]; + num = 3; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span44 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference94 = ref span44[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63312,8 +52452,7 @@ public static class AssemblyQuestLoader }; obj94.Steps = list140; reference94 = obj94; - num++; - ref QuestSequence reference95 = ref span139[num]; + ref QuestSequence reference95 = ref span44[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -63321,23 +52460,18 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 1006306u, new Vector3(-25.864075f, 71.787285f, -36.78955f), 137); obj95.Steps = list141; reference95 = obj95; - num++; - ref QuestSequence reference96 = ref span139[num]; + ref QuestSequence reference96 = ref span44[2]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj96.Steps = list142; reference96 = obj96; questRoot22.QuestSequence = list139; @@ -63347,16 +52481,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; questRoot23.Author = list143; - index = 3; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference97 = ref span144[num]; + num = 3; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span45 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference97 = ref span45[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -63364,9 +52495,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63379,24 +52508,20 @@ public static class AssemblyQuestLoader }; obj97.Steps = list145; reference97 = obj97; - num++; - ref QuestSequence reference98 = ref span144[num]; + ref QuestSequence reference98 = ref span45[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj98.Steps = list146; reference98 = obj98; - num++; - ref QuestSequence reference99 = ref span144[num]; + ref QuestSequence reference99 = ref span45[2]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -63404,9 +52529,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj99.Steps = list147; reference99 = obj99; questRoot23.QuestSequence = list144; @@ -63416,26 +52539,21 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; questRoot24.Author = list148; - index = 3; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference100 = ref span149[num]; + num = 3; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span47 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference100 = ref span47[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63448,8 +52566,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list150; reference100 = obj100; - num++; - ref QuestSequence reference101 = ref span149[num]; + ref QuestSequence reference101 = ref span47[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -63457,23 +52574,18 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1006311u, new Vector3(26.504883f, 42.202568f, 251.75854f), 137); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1006311u, new Vector3(26.504883f, 42.202568f, 251.75854f), 137); obj101.Steps = list151; reference101 = obj101; - num++; - ref QuestSequence reference102 = ref span149[num]; + ref QuestSequence reference102 = ref span47[2]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj102.Steps = list152; reference102 = obj102; questRoot24.QuestSequence = list149; @@ -63483,16 +52595,13 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - Span span153 = CollectionsMarshal.AsSpan(list153); - index = 0; - span153[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; questRoot25.Author = list153; - index = 3; - List list154 = new List(index); - CollectionsMarshal.SetCount(list154, index); - Span span154 = CollectionsMarshal.AsSpan(list154); - num = 0; - ref QuestSequence reference103 = ref span154[num]; + num = 3; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span48 = CollectionsMarshal.AsSpan(list154); + ref QuestSequence reference103 = ref span48[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -63500,9 +52609,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63515,34 +52622,28 @@ public static class AssemblyQuestLoader }; obj103.Steps = list155; reference103 = obj103; - num++; - ref QuestSequence reference104 = ref span154[num]; + ref QuestSequence reference104 = ref span48[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list156 = new List(index2); - CollectionsMarshal.SetCount(list156, index2); - Span span156 = CollectionsMarshal.AsSpan(list156); - num2 = 0; - ref QuestStep reference105 = ref span156[num2]; + num2 = 1; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list156)[0]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, null, new Vector3(-309.02634f, 44.280117f, 464.14f), 137) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list157 = new List(index3); - CollectionsMarshal.SetCount(list157, index3); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = 136u; + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = 136u; obj105.KillEnemyDataIds = list157; reference105 = obj105; obj104.Steps = list156; reference104 = obj104; - num++; - ref QuestSequence reference106 = ref span154[num]; + ref QuestSequence reference106 = ref span48[2]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -63550,9 +52651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj106.Steps = list158; reference106 = obj106; questRoot25.QuestSequence = list154; @@ -63562,26 +52661,21 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - Span span159 = CollectionsMarshal.AsSpan(list159); - index = 0; - span159[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list159)[0] = "JerryWester"; questRoot26.Author = list159; - index = 3; - List list160 = new List(index); - CollectionsMarshal.SetCount(list160, index); - Span span160 = CollectionsMarshal.AsSpan(list160); - num = 0; - ref QuestSequence reference107 = ref span160[num]; + num = 3; + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + Span span49 = CollectionsMarshal.AsSpan(list160); + ref QuestSequence reference107 = ref span49[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63594,8 +52688,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list161; reference107 = obj107; - num++; - ref QuestSequence reference108 = ref span160[num]; + ref QuestSequence reference108 = ref span49[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -63603,112 +52696,81 @@ public static class AssemblyQuestLoader num2 = 4; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - ref QuestStep reference109 = ref span162[index2]; + Span span50 = CollectionsMarshal.AsSpan(list162); + ref QuestStep reference109 = ref span50[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list163; reference109 = questStep3; - index2++; - ref QuestStep reference110 = ref span162[index2]; + ref QuestStep reference110 = ref span50[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2002061u, new Vector3(-248.40167f, 33.98181f, 299.39722f), 137); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list164; reference110 = questStep4; - index2++; - ref QuestStep reference111 = ref span162[index2]; + ref QuestStep reference111 = ref span50[2]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list165; skipConditions.StepIf = skipStepConditions; questStep5.SkipConditions = skipConditions; reference111 = questStep5; - index2++; - ref QuestStep reference112 = ref span162[index2]; + ref QuestStep reference112 = ref span50[3]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2002060u, new Vector3(-298.2987f, 33.89026f, 276.53918f), 137) { StopDistance = 4.5f }; - 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); + 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); obj109.CompletionQuestVariablesFlags = list166; reference112 = obj109; obj108.Steps = list162; reference108 = obj108; - num++; - ref QuestSequence reference113 = ref span160[num]; + ref QuestSequence reference113 = ref span49[2]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -63725,16 +52787,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -63742,9 +52801,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -63757,22 +52814,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -63780,9 +52833,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2002062u, new Vector3(-242.63379f, 45.212402f, 495.32312f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -63790,32 +52841,26 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = 1910u; + CollectionsMarshal.AsSpan(list6)[0] = 1910u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -63823,9 +52868,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; @@ -63838,26 +52881,21 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; questRoot2.Author = list9; - index = 5; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 5; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span2 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span2[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -63870,8 +52908,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span2[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -63879,27 +52916,21 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1006314u, new Vector3(534.8439f, 17.448048f, 450.98022f), 137); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1006314u, new Vector3(534.8439f, 17.448048f, 450.98022f), 137); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span2[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -63907,126 +52938,88 @@ public static class AssemblyQuestLoader num2 = 5; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - ref QuestStep reference11 = ref span14[index2]; + Span span3 = CollectionsMarshal.AsSpan(list14); + ref QuestStep reference11 = ref span3[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006319u, new Vector3(523.03345f, 17.44805f, 454.5509f), 137); - 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; + 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; questStep.CompletionQuestVariablesFlags = list15; reference11 = questStep; - index2++; - ref QuestStep reference12 = ref span14[index2]; + ref QuestStep reference12 = ref span3[1]; 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 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; + 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; questStep2.CompletionQuestVariablesFlags = list16; reference12 = questStep2; - index2++; - ref QuestStep reference13 = ref span14[index2]; + ref QuestStep reference13 = ref span3[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006317u, new Vector3(533.77576f, 17.654663f, 450.43103f), 137); - 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; + 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; questStep3.CompletionQuestVariablesFlags = list17; reference13 = questStep3; - index2++; - ref QuestStep reference14 = ref span14[index2]; + ref QuestStep reference14 = ref span3[3]; 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 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; + 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; questStep4.CompletionQuestVariablesFlags = list18; reference14 = questStep4; - index2++; - ref QuestStep reference15 = ref span14[index2]; + ref QuestStep reference15 = ref span3[4]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137); - 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; + 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; questStep5.CompletionQuestVariablesFlags = list19; reference15 = questStep5; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference16 = ref span10[num]; + ref QuestSequence reference16 = ref span2[4]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -64039,16 +53032,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; questRoot3.Author = list21; - index = 3; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference17 = ref span22[num]; + num = 3; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span9 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference17 = ref span9[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -64056,9 +53046,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -64071,95 +53059,70 @@ public static class AssemblyQuestLoader }; obj12.Steps = list23; reference17 = obj12; - num++; - ref QuestSequence reference18 = ref span22[num]; + ref QuestSequence reference18 = ref span9[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)139, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - num2++; - ref QuestStep reference19 = ref span24[num2]; + ref QuestStep reference19 = ref span10[1]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list25; reference19 = questStep6; - num2++; - span24[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 139) + span10[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 139) { StopDistance = 5f, Aetheryte = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - ref QuestStep reference20 = ref span24[num2]; + ref QuestStep reference20 = ref span10[3]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2002084u, new Vector3(437.27783f, 8.194031f, 133.04333f), 139); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list26; reference20 = questStep7; - num2++; - ref QuestStep reference21 = ref span24[num2]; + ref QuestStep reference21 = ref span10[4]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list27; reference21 = questStep8; obj13.Steps = list24; reference18 = obj13; - num++; - ref QuestSequence reference22 = ref span22[num]; + ref QuestSequence reference22 = ref span9[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -64167,9 +53130,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006341u, new Vector3(479.39258f, 16.258692f, 128.37415f), 139) { StopDistance = 7f }; @@ -64182,26 +53143,21 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot4.Author = list29; - index = 4; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference23 = ref span30[num]; + num = 4; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span14 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference23 = ref span14[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -64215,8 +53171,7 @@ public static class AssemblyQuestLoader }; obj15.Steps = list31; reference23 = obj15; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span14[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -64224,23 +53179,18 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 2002086u, new Vector3(382.55884f, 25.253662f, -139.02502f), 139); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 2002086u, new Vector3(382.55884f, 25.253662f, -139.02502f), 139); obj16.Steps = list32; reference24 = obj16; - num++; - ref QuestSequence reference25 = ref span30[num]; + ref QuestSequence reference25 = ref span14[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 139) { DutyOptions = new DutyOptions { @@ -64250,8 +53200,7 @@ public static class AssemblyQuestLoader }; obj17.Steps = list33; reference25 = obj17; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span14[3]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -64259,9 +53208,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139); + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006343u, new Vector3(427.63403f, 4.115109f, 85.92346f), 139); obj18.Steps = list34; reference26 = obj18; questRoot4.QuestSequence = list30; @@ -64271,33 +53218,27 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "skiaz"; + CollectionsMarshal.AsSpan(list35)[0] = "skiaz"; questRoot5.Author = list35; - index = 3; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference27 = ref span36[num]; + num = 3; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span15 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference27 = ref span15[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj19.Steps = list37; reference27 = obj19; - num++; - ref QuestSequence reference28 = ref span36[num]; + ref QuestSequence reference28 = ref span15[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -64305,36 +53246,27 @@ public static class AssemblyQuestLoader num2 = 6; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 2002339u, new Vector3(-134.59985f, 82.81067f, -293.4768f), 180) + Span span16 = CollectionsMarshal.AsSpan(list38); + span16[0] = new QuestStep(EInteractionType.Interact, 2002339u, new Vector3(-134.59985f, 82.81067f, -293.4768f), 180) { Fly = true }; - 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); + 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); obj20.Steps = list38; reference28 = obj20; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span15[2]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(863) @@ -64348,16 +53280,13 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "skiaz"; + CollectionsMarshal.AsSpan(list40)[0] = "skiaz"; questRoot6.Author = list40; - index = 3; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference30 = ref span41[num]; + num = 3; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span17 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference30 = ref span17[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -64365,37 +53294,30 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj22.Steps = list42; reference30 = obj22; - num++; - ref QuestSequence reference31 = ref span41[num]; + ref QuestSequence reference31 = ref span17[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list43 = new List(index2); - CollectionsMarshal.SetCount(list43, index2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num2 = 0; - ref QuestStep reference32 = ref span43[num2]; + num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2269u, new Vector3(-268.5741f, 64.49246f, -322.04163f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list44 = new List(index3); - CollectionsMarshal.SetCount(list44, index3); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = 2269u; + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = 2269u; obj24.KillEnemyDataIds = list44; obj24.CombatItemUse = new CombatItemUse { @@ -64406,8 +53328,7 @@ public static class AssemblyQuestLoader reference32 = obj24; obj23.Steps = list43; reference31 = obj23; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span17[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -64415,9 +53336,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; @@ -64430,26 +53349,21 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; questRoot7.Author = list46; - index = 7; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference34 = ref span47[num]; + num = 7; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span18 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference34 = ref span18[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -64462,8 +53376,7 @@ public static class AssemblyQuestLoader }; obj26.Steps = list48; reference34 = obj26; - num++; - ref QuestSequence reference35 = ref span47[num]; + ref QuestSequence reference35 = ref span18[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -64471,115 +53384,83 @@ public static class AssemblyQuestLoader num2 = 2; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.UseItem, null, null, 128) + Span span19 = CollectionsMarshal.AsSpan(list49); + span19[0] = new QuestStep(EInteractionType.UseItem, null, null, 128) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - index2++; - span49[index2] = new QuestStep(EInteractionType.Interact, 1006361u, new Vector3(-495.964f, 19.009007f, -371.72504f), 140); + span19[1] = new QuestStep(EInteractionType.Interact, 1006361u, new Vector3(-495.964f, 19.009007f, -371.72504f), 140); obj27.Steps = list49; reference35 = obj27; - num++; - ref QuestSequence reference36 = ref span47[num]; + ref QuestSequence reference36 = ref span18[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref QuestStep reference37 = ref span50[num2]; + num2 = 4; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + Span span20 = CollectionsMarshal.AsSpan(list50); + ref QuestStep reference37 = ref span20[0]; 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 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; + 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; questStep9.CompletionQuestVariablesFlags = list51; reference37 = questStep9; - num2++; - ref QuestStep reference38 = ref span50[num2]; + ref QuestStep reference38 = ref span20[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1006347u, new Vector3(-474.6319f, 19.027954f, -371.20624f), 140); - 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; + 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; questStep10.CompletionQuestVariablesFlags = list52; reference38 = questStep10; - num2++; - ref QuestStep reference39 = ref span50[num2]; + ref QuestStep reference39 = ref span20[2]; 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 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; + 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; questStep11.CompletionQuestVariablesFlags = list53; reference39 = questStep11; - num2++; - ref QuestStep reference40 = ref span50[num2]; + ref QuestStep reference40 = ref span20[3]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1006345u, new Vector3(-477.34802f, 19.027954f, -370.35175f), 140); - 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; + 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; questStep12.CompletionQuestVariablesFlags = list54; reference40 = questStep12; obj28.Steps = list50; reference36 = obj28; - num++; - ref QuestSequence reference41 = ref span47[num]; + ref QuestSequence reference41 = ref span18[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -64587,28 +53468,24 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - 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) + 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) { DisableNavmesh = true }; obj29.Steps = list55; reference41 = obj29; - num++; - ref QuestSequence reference42 = ref span47[num]; + ref QuestSequence reference42 = ref span18[4]; QuestSequence obj30 = new QuestSequence { Sequence = 4 }; - index2 = 5; - List list56 = new List(index2); - CollectionsMarshal.SetCount(list56, index2); - Span span56 = CollectionsMarshal.AsSpan(list56); - num2 = 0; - ref QuestStep reference43 = ref span56[num2]; + num2 = 5; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + Span span26 = CollectionsMarshal.AsSpan(list56); + ref QuestStep reference43 = ref span26[0]; QuestStep obj31 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.92343f, 23.167036f, -351.16223f), 140) { DisableNavmesh = true, @@ -64619,111 +53496,76 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - 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; + 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; skipStepConditions.CompletionQuestVariablesFlags = list57; skipConditions.StepIf = skipStepConditions; obj31.SkipConditions = skipConditions; reference43 = obj31; - num2++; - ref QuestStep reference44 = ref span56[num2]; + ref QuestStep reference44 = ref span26[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006344u, new Vector3(-474.57086f, 18.112427f, -372.5796f), 140); - 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; + 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; questStep13.CompletionQuestVariablesFlags = list58; reference44 = questStep13; - num2++; - ref QuestStep reference45 = ref span56[num2]; + ref QuestStep reference45 = ref span26[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list59; reference45 = questStep14; - num2++; - ref QuestStep reference46 = ref span56[num2]; + ref QuestStep reference46 = ref span26[3]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1006350u, new Vector3(-476.55457f, 19.027954f, -372.91522f), 140); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list60; reference46 = questStep15; - num2++; - ref QuestStep reference47 = ref span56[num2]; + ref QuestStep reference47 = ref span26[4]; 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 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; + 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; questStep16.CompletionQuestVariablesFlags = list61; reference47 = questStep16; obj30.Steps = list56; reference42 = obj30; - num++; - ref QuestSequence reference48 = ref span47[num]; + ref QuestSequence reference48 = ref span18[5]; QuestSequence obj32 = new QuestSequence { Sequence = 5 @@ -64731,28 +53573,23 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - 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) + 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) { DisableNavmesh = true }; obj32.Steps = list62; reference48 = obj32; - num++; - ref QuestSequence reference49 = ref span47[num]; + ref QuestSequence reference49 = ref span18[6]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -64765,16 +53602,13 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; questRoot8.Author = list64; - index = 3; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference50 = ref span65[num]; + num = 3; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span33 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference50 = ref span33[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -64782,9 +53616,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -64797,25 +53629,21 @@ public static class AssemblyQuestLoader }; obj34.Steps = list66; reference50 = obj34; - num++; - ref QuestSequence reference51 = ref span65[num]; + ref QuestSequence reference51 = ref span33[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list67; reference51 = obj35; - num++; - ref QuestSequence reference52 = ref span65[num]; + ref QuestSequence reference52 = ref span33[2]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -64823,9 +53651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -64838,26 +53664,21 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list69)[0] = "JerryWester"; questRoot9.Author = list69; - index = 3; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference53 = ref span70[num]; + num = 3; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span34 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference53 = ref span34[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -64870,8 +53691,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list71; reference53 = obj37; - num++; - ref QuestSequence reference54 = ref span70[num]; + ref QuestSequence reference54 = ref span34[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -64879,26 +53699,21 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331406f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj38.Steps = list72; reference54 = obj38; - num++; - ref QuestSequence reference55 = ref span70[num]; + ref QuestSequence reference55 = ref span34[2]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj39.Steps = list73; reference55 = obj39; questRoot9.QuestSequence = list70; @@ -64908,16 +53723,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; questRoot10.Author = list74; - index = 2; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference56 = ref span75[num]; + num = 2; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span35 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference56 = ref span35[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -64925,9 +53737,7 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006371u, new Vector3(-301.04523f, -13.60442f, 198.44348f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -64940,20 +53750,17 @@ public static class AssemblyQuestLoader }; obj40.Steps = list76; reference56 = obj40; - num++; - ref QuestSequence reference57 = ref span75[num]; + ref QuestSequence reference57 = ref span35[1]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj41.Steps = list77; reference57 = obj41; questRoot10.QuestSequence = list75; @@ -64963,16 +53770,13 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "croizat"; + CollectionsMarshal.AsSpan(list78)[0] = "croizat"; questRoot11.Author = list78; - index = 3; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference58 = ref span79[num]; + num = 3; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span37 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference58 = ref span37[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -64980,40 +53784,32 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); obj42.Steps = list80; reference58 = obj42; - num++; - ref QuestSequence reference59 = ref span79[num]; + ref QuestSequence reference59 = ref span37[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list81 = new List(index2); - CollectionsMarshal.SetCount(list81, index2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num2 = 0; - ref QuestStep reference60 = ref span81[num2]; + num2 = 1; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list81)[0]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2002106u, new Vector3(-282.03253f, -54.24591f, 285.99976f), 154) { ItemId = 2000690u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list82 = new List(index3); - CollectionsMarshal.SetCount(list82, index3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = 138u; + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = 138u; obj44.KillEnemyDataIds = list82; reference60 = obj44; obj43.Steps = list81; reference59 = obj43; - num++; - ref QuestSequence reference61 = ref span79[num]; + ref QuestSequence reference61 = ref span37[2]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -65021,9 +53817,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006375u, new Vector3(-296.65063f, -13.630577f, 197.34485f), 154); obj45.Steps = list83; reference61 = obj45; questRoot11.QuestSequence = list79; @@ -65033,30 +53827,24 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; questRoot12.Author = list84; - index = 5; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference62 = ref span85[num]; + num = 5; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span38 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference62 = ref span38[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj46.Steps = list86; reference62 = obj46; - num++; - ref QuestSequence reference63 = ref span85[num]; + ref QuestSequence reference63 = ref span38[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -65064,9 +53852,8 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - ref QuestStep reference64 = ref span87[index2]; + Span span39 = CollectionsMarshal.AsSpan(list87); + ref QuestStep reference64 = ref span39[0]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(48.65701f, 234.78163f, 348.13953f), 155) { StopDistance = 1f, @@ -65075,33 +53862,26 @@ public static class AssemblyQuestLoader num3 = 2; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - index3 = 0; - span88[index3] = 724u; - index3++; - span88[index3] = 725u; + Span span40 = CollectionsMarshal.AsSpan(list88); + span40[0] = 724u; + span40[1] = 725u; obj48.KillEnemyDataIds = list88; reference64 = obj48; - index2++; - span87[index2] = new QuestStep(EInteractionType.Interact, 1006731u, new Vector3(52.231567f, 235.30933f, 347.85986f), 155); + span39[1] = new QuestStep(EInteractionType.Interact, 1006731u, new Vector3(52.231567f, 235.30933f, 347.85986f), 155); obj47.Steps = list87; reference63 = obj47; - num++; - ref QuestSequence reference65 = ref span85[num]; + ref QuestSequence reference65 = ref span38[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj49.Steps = list89; reference65 = obj49; - num++; - ref QuestSequence reference66 = ref span85[num]; + ref QuestSequence reference66 = ref span38[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -65109,23 +53889,18 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155); + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155); obj50.Steps = list90; reference66 = obj50; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span38[4]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj51.Steps = list91; reference67 = obj51; questRoot12.QuestSequence = list85; @@ -65135,16 +53910,13 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list92)[0] = "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]; + num = 4; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span41 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference68 = ref span41[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -65152,30 +53924,24 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155) { StopDistance = 7f }; obj52.Steps = list94; reference68 = obj52; - num++; - ref QuestSequence reference69 = ref span93[num]; + ref QuestSequence reference69 = ref span41[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj53.Steps = list95; reference69 = obj53; - num++; - ref QuestSequence reference70 = ref span93[num]; + ref QuestSequence reference70 = ref span41[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -65183,23 +53949,18 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); obj54.Steps = list96; reference70 = obj54; - num++; - ref QuestSequence reference71 = ref span93[num]; + ref QuestSequence reference71 = ref span41[3]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj55.Steps = list97; reference71 = obj55; questRoot13.QuestSequence = list93; @@ -65209,16 +53970,13 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list98)[0] = "JerryWester"; questRoot14.Author = list98; - index = 3; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference72 = ref span99[num]; + num = 3; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span42 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference72 = ref span42[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -65226,127 +53984,92 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj56.Steps = list100; reference72 = obj56; - num++; - ref QuestSequence reference73 = ref span99[num]; + ref QuestSequence reference73 = ref span42[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list101 = new List(index2); - CollectionsMarshal.SetCount(list101, index2); - Span span101 = CollectionsMarshal.AsSpan(list101); - num2 = 0; - ref QuestStep reference74 = ref span101[num2]; + num2 = 4; + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + Span span43 = CollectionsMarshal.AsSpan(list101); + ref QuestStep reference74 = ref span43[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2002111u, new Vector3(24.12439f, 207.599f, 427.35938f), 155); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list102; reference74 = questStep17; - num2++; - ref QuestStep reference75 = ref span101[num2]; + ref QuestStep reference75 = ref span43[1]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list103; reference75 = questStep18; - num2++; - ref QuestStep reference76 = ref span101[num2]; + ref QuestStep reference76 = ref span43[2]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2002261u, new Vector3(4.196167f, 206.19507f, 465.9646f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj58.KillEnemyDataIds = list104; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list105; skipConditions2.StepIf = skipStepConditions2; obj58.SkipConditions = skipConditions2; reference76 = obj58; - num2++; - ref QuestStep reference77 = ref span101[num2]; + ref QuestStep reference77 = ref span43[3]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2002261u, new Vector3(4.196167f, 206.19507f, 465.9646f), 155); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list106; reference77 = questStep19; obj57.Steps = list101; reference73 = obj57; - num++; - ref QuestSequence reference78 = ref span99[num]; + ref QuestSequence reference78 = ref span42[2]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -65354,9 +54077,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155) { StopDistance = 2f }; @@ -65369,33 +54090,27 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list108)[0] = "JerryWester"; questRoot15.Author = list108; - index = 3; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference79 = ref span109[num]; + num = 3; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span49 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference79 = ref span49[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj60.Steps = list110; reference79 = obj60; - num++; - ref QuestSequence reference80 = ref span109[num]; + ref QuestSequence reference80 = ref span49[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -65403,16 +54118,12 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - ref QuestStep reference81 = ref span111[index2]; + ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list111)[0]; 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); - Span span112 = CollectionsMarshal.AsSpan(list112); - index3 = 0; - span112[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list112)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_GAIUSB608_00890_Q1_000_020"), @@ -65422,24 +54133,21 @@ public static class AssemblyQuestLoader reference81 = questStep20; obj61.Steps = list111; reference80 = obj61; - num++; - ref QuestSequence reference82 = ref span109[num]; + ref QuestSequence reference82 = ref span49[2]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Aetheryte = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span113[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj62.Steps = list113; reference82 = obj62; questRoot15.QuestSequence = list109; @@ -65449,16 +54157,13 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; questRoot16.Author = list114; - index = 3; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference83 = ref span115[num]; + num = 3; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span51 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference83 = ref span51[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -65466,9 +54171,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -65481,41 +54184,31 @@ public static class AssemblyQuestLoader }; obj63.Steps = list116; reference83 = obj63; - num++; - ref QuestSequence reference84 = ref span115[num]; + ref QuestSequence reference84 = ref span51[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - index2 = 7; - List list117 = new List(index2); - CollectionsMarshal.SetCount(list117, index2); - Span span117 = CollectionsMarshal.AsSpan(list117); - num2 = 0; - ref QuestStep reference85 = ref span117[num2]; + num2 = 7; + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + Span span52 = CollectionsMarshal.AsSpan(list117); + ref QuestStep reference85 = ref span52[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1006395u, new Vector3(206.86658f, 303.115f, -296.2539f), 155); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list118; reference85 = questStep21; - num2++; - span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155); - num2++; - ref QuestStep reference86 = ref span117[num2]; + span52[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155); + ref QuestStep reference86 = ref span52[2]; QuestStep obj65 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) { DisableNavmesh = true @@ -65525,79 +54218,56 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list119; skipConditions3.StepIf = skipStepConditions3; obj65.SkipConditions = skipConditions3; reference86 = obj65; - num2++; - ref QuestStep reference87 = ref span117[num2]; + ref QuestStep reference87 = ref span52[3]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1006396u, new Vector3(193.1029f, 257f, 57.87744f), 155); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list120; reference87 = questStep22; - num2++; - span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) + span52[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.30511f, 256.99997f, 76.41981f), 155) { Mount = true }; - num2++; - span117[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155) + span52[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(205.61038f, 256.0028f, 83.6889f), 155) { DisableNavmesh = true }; - num2++; - ref QuestStep reference88 = ref span117[num2]; + ref QuestStep reference88 = ref span52[6]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list121; reference88 = questStep23; obj64.Steps = list117; reference84 = obj64; - num++; - ref QuestSequence reference89 = ref span115[num]; + ref QuestSequence reference89 = ref span51[2]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -65605,9 +54275,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -65624,16 +54292,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -65641,9 +54306,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -65656,18 +54319,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 1006407u, new Vector3(224.01758f, 355.34894f, -554.8334f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -65675,15 +54335,12 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 1904u; + CollectionsMarshal.AsSpan(list5)[0] = 1904u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -65691,88 +54348,63 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - ref QuestStep reference5 = ref span6[index2]; + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestStep reference5 = ref span2[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1006410u, new Vector3(232.8112f, 357.38858f, -567.4722f), 155); - 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); + 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); questStep.CompletionQuestVariablesFlags = list7; reference5 = questStep; - index2++; - ref QuestStep reference6 = ref span6[index2]; + ref QuestStep reference6 = ref span2[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list8; reference6 = questStep2; - index2++; - ref QuestStep reference7 = ref span6[index2]; + ref QuestStep reference7 = ref span2[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006409u, new Vector3(189.50183f, 359.89996f, -590.20374f), 155); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list9; reference7 = questStep3; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj5.Steps = list10; reference8 = obj5; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -65780,9 +54412,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -65795,26 +54425,21 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list12)[0] = "JerryWester"; questRoot2.Author = list12; - index = 6; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference10 = ref span13[num]; + num = 6; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span6 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference10 = ref span6[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -65827,8 +54452,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list14; reference10 = obj7; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span6[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -65836,30 +54460,24 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.Interact, 1006412u, new Vector3(282.30713f, 255.013f, 91.26416f), 155); + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1006412u, new Vector3(282.30713f, 255.013f, 91.26416f), 155); obj8.Steps = list15; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span6[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj9.Steps = list16; reference12 = obj9; - num++; - ref QuestSequence reference13 = ref span13[num]; + ref QuestSequence reference13 = ref span6[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -65867,88 +54485,63 @@ public static class AssemblyQuestLoader num2 = 3; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - ref QuestStep reference14 = ref span17[index2]; + Span span7 = CollectionsMarshal.AsSpan(list17); + ref QuestStep reference14 = ref span7[0]; 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 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; + 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; questStep4.CompletionQuestVariablesFlags = list18; reference14 = questStep4; - index2++; - ref QuestStep reference15 = ref span17[index2]; + ref QuestStep reference15 = ref span7[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2002140u, new Vector3(210.00989f, 301.9912f, -193.22504f), 155); - 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; + 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; questStep5.CompletionQuestVariablesFlags = list19; reference15 = questStep5; - index2++; - ref QuestStep reference16 = ref span17[index2]; + ref QuestStep reference16 = ref span7[2]; 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 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; + 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; questStep6.CompletionQuestVariablesFlags = list20; reference16 = questStep6; obj10.Steps = list17; reference13 = obj10; - num++; - ref QuestSequence reference17 = ref span13[num]; + ref QuestSequence reference17 = ref span6[4]; QuestSequence obj11 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj11.Steps = list21; reference17 = obj11; - num++; - ref QuestSequence reference18 = ref span13[num]; + ref QuestSequence reference18 = ref span6[5]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -65956,9 +54549,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj12.Steps = list22; reference18 = obj12; questRoot2.QuestSequence = list13; @@ -65968,26 +54559,21 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list23)[0] = "JerryWester"; questRoot3.Author = list23; - index = 5; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference19 = ref span24[num]; + num = 5; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span11 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference19 = ref span11[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66000,8 +54586,7 @@ public static class AssemblyQuestLoader }; obj13.Steps = list25; reference19 = obj13; - num++; - ref QuestSequence reference20 = ref span24[num]; + ref QuestSequence reference20 = ref span11[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -66009,27 +54594,21 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1006415u, new Vector3(238.30005f, 312f, -227.00854f), 155); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1006415u, new Vector3(238.30005f, 312f, -227.00854f), 155); obj14.Steps = list26; reference20 = obj14; - num++; - ref QuestSequence reference21 = ref span24[num]; + ref QuestSequence reference21 = ref span11[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj15.Steps = list27; reference21 = obj15; - num++; - ref QuestSequence reference22 = ref span24[num]; + ref QuestSequence reference22 = ref span11[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -66037,9 +54616,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006416u, new Vector3(445.0598f, 304.93317f, -258.56415f), 155) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006416u, new Vector3(445.0598f, 304.93317f, -258.56415f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -66048,18 +54625,15 @@ public static class AssemblyQuestLoader }; obj16.Steps = list28; reference22 = obj16; - num++; - ref QuestSequence reference23 = ref span24[num]; + ref QuestSequence reference23 = ref span11[4]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -66072,16 +54646,13 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "Friendly"; + CollectionsMarshal.AsSpan(list30)[0] = "Friendly"; questRoot4.Author = list30; - index = 3; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference24 = ref span31[num]; + num = 3; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span12 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference24 = ref span12[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -66089,9 +54660,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference25 = ref span32[index2]; + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1006440u, new Vector3(140.3982f, 4f, -54.154297f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -66106,12 +54675,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list33 = new List(index3); - CollectionsMarshal.SetCount(list33, index3); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = 130; + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = 130; obj20.InTerritory = list33; skipConditions.AetheryteShortcutIf = obj20; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -66122,26 +54689,22 @@ public static class AssemblyQuestLoader reference25 = obj19; obj18.Steps = list32; reference24 = obj18; - num++; - ref QuestSequence reference26 = ref span31[num]; + ref QuestSequence reference26 = ref span12[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, ItemId = 2000715u }; obj21.Steps = list34; reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span31[num]; + ref QuestSequence reference27 = ref span12[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -66149,9 +54712,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007818u, new Vector3(-282.88702f, -5.987557f, -372.64062f), 141); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007818u, new Vector3(-282.88702f, -5.987557f, -372.64062f), 141); obj22.Steps = list35; reference27 = obj22; questRoot4.QuestSequence = list31; @@ -66161,26 +54722,21 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; questRoot5.Author = list36; - index = 5; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference28 = ref span37[num]; + num = 5; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span13 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference28 = ref span13[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66193,8 +54749,7 @@ public static class AssemblyQuestLoader }; obj23.Steps = list38; reference28 = obj23; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span13[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -66202,27 +54757,21 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); obj24.Steps = list39; reference29 = obj24; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span13[2]; QuestSequence obj25 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj25.Steps = list40; reference30 = obj25; - num++; - ref QuestSequence reference31 = ref span37[num]; + ref QuestSequence reference31 = ref span13[3]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -66230,23 +54779,18 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1006443u, new Vector3(-434.95844f, 224.39996f, -199.45074f), 155); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1006443u, new Vector3(-434.95844f, 224.39996f, -199.45074f), 155); obj26.Steps = list41; reference31 = obj26; - num++; - ref QuestSequence reference32 = ref span37[num]; + ref QuestSequence reference32 = ref span13[4]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj27.Steps = list42; reference32 = obj27; questRoot5.QuestSequence = list37; @@ -66256,16 +54800,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; questRoot6.Author = list43; - index = 6; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 6; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span14 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span14[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -66273,9 +54814,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -66289,18 +54828,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list45; reference33 = obj28; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span14[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list46 = new List(index2); - CollectionsMarshal.SetCount(list46, index2); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref QuestStep reference35 = ref span46[num2]; + num2 = 1; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 2002158u, new Vector3(-424.24664f, 279.0111f, 89.58569f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -66308,9 +54844,7 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span47 = CollectionsMarshal.AsSpan(list47); - index3 = 0; - span47[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list47)[0] = new ComplexCombatData { DataId = 2196u }; @@ -66324,8 +54858,7 @@ public static class AssemblyQuestLoader reference35 = obj30; obj29.Steps = list46; reference34 = obj29; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span14[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -66333,91 +54866,66 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); obj31.Steps = list48; reference36 = obj31; - num++; - ref QuestSequence reference37 = ref span44[num]; + ref QuestSequence reference37 = ref span14[3]; QuestSequence obj32 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref QuestStep reference38 = ref span49[num2]; + num2 = 3; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + Span span15 = CollectionsMarshal.AsSpan(list49); + ref QuestStep reference38 = ref span15[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1006450u, new Vector3(-429.22107f, 211f, -201.7091f), 155) { StopDistance = 5f }; - 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); + 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); obj33.CompletionQuestVariablesFlags = list50; reference38 = obj33; - num2++; - ref QuestStep reference39 = ref span49[num2]; + ref QuestStep reference39 = ref span15[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list51; reference39 = questStep7; - num2++; - ref QuestStep reference40 = ref span49[num2]; + ref QuestStep reference40 = ref span15[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006451u, new Vector3(-432.2118f, 224.39995f, -197.83319f), 155); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list52; reference40 = questStep8; obj32.Steps = list49; reference37 = obj32; - num++; - ref QuestSequence reference41 = ref span44[num]; + ref QuestSequence reference41 = ref span14[4]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -66425,23 +54933,18 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); obj34.Steps = list53; reference41 = obj34; - num++; - ref QuestSequence reference42 = ref span44[num]; + ref QuestSequence reference42 = ref span14[5]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj35.Steps = list54; reference42 = obj35; questRoot6.QuestSequence = list44; @@ -66451,16 +54954,13 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list55)[0] = "JerryWester"; questRoot7.Author = list55; - index = 3; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference43 = ref span56[num]; + num = 3; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span19 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference43 = ref span19[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -66468,9 +54968,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66483,18 +54981,16 @@ public static class AssemblyQuestLoader }; obj36.Steps = list57; reference43 = obj36; - num++; - ref QuestSequence reference44 = ref span56[num]; + ref QuestSequence reference44 = ref span19[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list58 = new List(index2); - CollectionsMarshal.SetCount(list58, index2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num2 = 0; - ref QuestStep reference45 = ref span58[num2]; + num2 = 4; + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + Span span20 = CollectionsMarshal.AsSpan(list58); + ref QuestStep reference45 = ref span20[0]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155) { Mount = true @@ -66502,88 +54998,60 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - 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); + 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); obj38.CompletionQuestVariablesFlags = list59; reference45 = obj38; - num2++; - ref QuestStep reference46 = ref span58[num2]; + ref QuestStep reference46 = ref span20[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006441u, new Vector3(-414.45032f, 211.45752f, -294.48395f), 155); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list60; reference46 = questStep9; - num2++; - ref QuestStep reference47 = ref span58[num2]; + ref QuestStep reference47 = ref span20[2]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list61; reference47 = questStep10; - num2++; - ref QuestStep reference48 = ref span58[num2]; + ref QuestStep reference48 = ref span20[3]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1006448u, new Vector3(-428.97693f, 211f, -194.23212f), 155); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list62; reference48 = questStep11; obj37.Steps = list58; reference44 = obj37; - num++; - ref QuestSequence reference49 = ref span56[num]; + ref QuestSequence reference49 = ref span19[2]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -66591,9 +55059,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj39.Steps = list63; reference49 = obj39; questRoot7.QuestSequence = list56; @@ -66603,26 +55069,21 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; questRoot8.Author = list64; - index = 4; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference50 = ref span65[num]; + num = 4; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span25 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference50 = ref span25[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66635,8 +55096,7 @@ public static class AssemblyQuestLoader }; obj40.Steps = list66; reference50 = obj40; - num++; - ref QuestSequence reference51 = ref span65[num]; + ref QuestSequence reference51 = ref span25[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -66644,13 +55104,10 @@ public static class AssemblyQuestLoader num2 = 4; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - 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]; + 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]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -66658,31 +55115,24 @@ public static class AssemblyQuestLoader num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span68 = CollectionsMarshal.AsSpan(list68); - index3 = 0; - span68[index3] = 46u; + CollectionsMarshal.AsSpan(list68)[0] = 46u; obj42.KillEnemyDataIds = list68; reference52 = obj42; - index2++; - span67[index2] = new QuestStep(EInteractionType.Interact, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155); + span26[3] = new QuestStep(EInteractionType.Interact, 2002170u, new Vector3(-488.6702f, 150.1029f, -318.71527f), 155); obj41.Steps = list67; reference51 = obj41; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span25[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj43.Steps = list69; reference53 = obj43; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span25[3]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -66690,9 +55140,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj44.Steps = list70; reference54 = obj44; questRoot8.QuestSequence = list65; @@ -66702,26 +55150,21 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; questRoot9.Author = list71; - index = 7; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference55 = ref span72[num]; + num = 7; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span27 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference55 = ref span27[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66734,8 +55177,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference55 = obj45; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span27[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -66743,27 +55185,21 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1006466u, new Vector3(-410.23883f, 218.1f, -296.86432f), 155); obj46.Steps = list74; reference56 = obj46; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span27[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj47.Steps = list75; reference57 = obj47; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span27[3]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -66771,30 +55207,24 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Emote, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Emote, 1006468u, new Vector3(-418.17352f, 210.78818f, -280.0794f), 155) { Emote = EEmote.Doubt }; obj48.Steps = list76; reference58 = obj48; - num++; - ref QuestSequence reference59 = ref span72[num]; + ref QuestSequence reference59 = ref span27[4]; QuestSequence obj49 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj49.Steps = list77; reference59 = obj49; - num++; - ref QuestSequence reference60 = ref span72[num]; + ref QuestSequence reference60 = ref span27[5]; QuestSequence obj50 = new QuestSequence { Sequence = 5 @@ -66802,23 +55232,18 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 2002175u, new Vector3(-391.22614f, 219.28735f, -179.49188f), 155); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 2002175u, new Vector3(-391.22614f, 219.28735f, -179.49188f), 155); obj50.Steps = list78; reference60 = obj50; - num++; - ref QuestSequence reference61 = ref span72[num]; + ref QuestSequence reference61 = ref span27[6]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj51.Steps = list79; reference61 = obj51; questRoot9.QuestSequence = list72; @@ -66828,16 +55253,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list80)[0] = "JerryWester"; questRoot10.Author = list80; - index = 3; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference62 = ref span81[num]; + num = 3; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span28 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference62 = ref span28[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -66845,9 +55267,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66860,18 +55280,15 @@ public static class AssemblyQuestLoader }; obj52.Steps = list82; reference62 = obj52; - num++; - ref QuestSequence reference63 = ref span81[num]; + ref QuestSequence reference63 = ref span28[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -66880,8 +55297,7 @@ public static class AssemblyQuestLoader }; obj53.Steps = list83; reference63 = obj53; - num++; - ref QuestSequence reference64 = ref span81[num]; + ref QuestSequence reference64 = ref span28[2]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -66889,9 +55305,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155); obj54.Steps = list84; reference64 = obj54; questRoot10.QuestSequence = list81; @@ -66905,16 +55319,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -66922,9 +55333,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006467u, new Vector3(-437.94922f, 211.17f, -245.7771f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -66937,22 +55346,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -66960,23 +55365,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1006490u, new Vector3(-673.21277f, 205.95982f, -515.7702f), 155); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1006490u, new Vector3(-673.21277f, 205.95982f, -515.7702f), 155); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref QuestStep reference5 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; QuestStep questStep = new QuestStep(EInteractionType.Duty, null, null, 155); DutyOptions obj5 = new DutyOptions { @@ -66985,23 +55385,19 @@ public static class AssemblyQuestLoader int num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - 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"; + 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"; obj5.Notes = list7; questStep.DutyOptions = obj5; reference5 = questStep; obj4.Steps = list6; reference4 = obj4; - num++; - span2[num] = new QuestSequence + span[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -67009,9 +55405,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006491u, new Vector3(7.248047f, -21.970922f, 119.73743f), 132) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006491u, new Vector3(7.248047f, -21.970922f, 119.73743f), 132) { StopDistance = 5f }; @@ -67024,26 +55418,22 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; questRoot2.Author = list9; - index = 2; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 2; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + Span span4 = CollectionsMarshal.AsSpan(list11); + ref QuestStep reference8 = ref span4[0]; QuestStep obj8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(28.973171f, -19.000002f, 102.00182f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -67055,72 +55445,59 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = 132; + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = 132; skipStepConditions.InTerritory = list12; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num4 = 0; - span13[num4] = 132; + CollectionsMarshal.AsSpan(list13)[0] = 132; skipAetheryteCondition.InTerritory = list13; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; - num2++; - ref QuestStep reference9 = ref span11[num2]; + ref QuestStep reference9 = ref span4[1]; 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(); - num4 = 1; - List list14 = new List(num4); - CollectionsMarshal.SetCount(list14, num4); - Span span14 = CollectionsMarshal.AsSpan(list14); - num3 = 0; - span14[num3] = 132; + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = 132; skipStepConditions2.InTerritory = list14; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - Span span15 = CollectionsMarshal.AsSpan(list15); - num4 = 0; - span15[num4] = 132; + CollectionsMarshal.AsSpan(list15)[0] = 132; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj9.SkipConditions = skipConditions2; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new DialogueChoice + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC102_00953_Q1_000_110") }; obj9.DialogueChoices = list16; reference9 = obj9; - num2++; - span11[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132) + span4[2] = new QuestStep(EInteractionType.AcceptQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132) { StopDistance = 5f }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span3[1]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -67128,9 +55505,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -67143,26 +55518,21 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list18)[0] = "JerryWester"; questRoot3.Author = list18; - index = 2; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference11 = ref span19[num]; + num = 2; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span5 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference11 = ref span5[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -67175,8 +55545,7 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span19[num]; + ref QuestSequence reference12 = ref span5[1]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -67184,9 +55553,7 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145); obj12.Steps = list21; reference12 = obj12; questRoot3.QuestSequence = list19; @@ -67196,26 +55563,21 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; questRoot4.Author = list22; - index = 5; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference13 = ref span23[num]; + num = 5; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span6 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference13 = ref span6[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -67228,8 +55590,7 @@ public static class AssemblyQuestLoader }; obj13.Steps = list24; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span23[num]; + ref QuestSequence reference14 = ref span6[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -67237,40 +55598,34 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.WalkTo, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + Span span7 = CollectionsMarshal.AsSpan(list25); + span7[0] = new QuestStep(EInteractionType.WalkTo, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { StopDistance = 3f }; - index2++; - span25[index2] = new QuestStep(EInteractionType.UseItem, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) + span7[1] = new QuestStep(EInteractionType.UseItem, 2002327u, new Vector3(423.17834f, -62.45526f, 213.39734f), 145) { DelaySecondsAtStart = 2f, ItemId = 2000742u }; obj14.Steps = list25; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span23[num]; + ref QuestSequence reference15 = ref span6[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DelaySecondsAtStart = 3f, ItemId = 2000837u }; obj15.Steps = list26; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span23[num]; + ref QuestSequence reference16 = ref span6[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -67278,26 +55633,21 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1006495u, new Vector3(-2.2736206f, -17.544205f, 24.734863f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj16.Steps = list27; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span6[4]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; @@ -67310,16 +55660,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot5.Author = list29; - index = 2; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference18 = ref span30[num]; + num = 2; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span8 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference18 = ref span8[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -67327,9 +55674,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006493u, new Vector3(-437.67456f, -55.694504f, 100.87732f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, SkipConditions = new SkipConditions @@ -67342,18 +55687,15 @@ public static class AssemblyQuestLoader }; obj18.Steps = list31; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span30[num]; + ref QuestSequence reference19 = ref span8[1]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; @@ -67366,16 +55708,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; questRoot6.Author = list33; - index = 3; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference20 = ref span34[num]; + num = 3; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span9 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference20 = ref span9[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -67383,9 +55722,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -67398,71 +55735,55 @@ public static class AssemblyQuestLoader }; obj20.Steps = list35; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span34[num]; + ref QuestSequence reference21 = ref span9[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - index2 = 9; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference22 = ref span36[num2]; + num2 = 9; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span10 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference22 = ref span10[0]; 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 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list37; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference22 = questStep2; - num2++; - ref QuestStep reference23 = ref span36[num2]; + ref QuestStep reference23 = ref span10[1]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list38; skipConditions4.StepIf = skipStepConditions4; obj22.SkipConditions = skipConditions4; reference23 = obj22; - num2++; - ref QuestStep reference24 = ref span36[num2]; + ref QuestStep reference24 = ref span10[2]; QuestStep obj23 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.68527f, -15.189899f, 241.07025f), 138) { DisableNavmesh = true @@ -67472,49 +55793,35 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list39; skipConditions5.StepIf = skipStepConditions5; obj23.SkipConditions = skipConditions5; reference24 = obj23; - num2++; - ref QuestStep reference25 = ref span36[num2]; + ref QuestStep reference25 = ref span10[3]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1006500u, new Vector3(321.1565f, -15.187395f, 253.52856f), 138) { StopDistance = 5f }; - 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); + 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); obj24.CompletionQuestVariablesFlags = list40; reference25 = obj24; - num2++; - ref QuestStep reference26 = ref span36[num2]; + ref QuestStep reference26 = ref span10[4]; QuestStep obj25 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.6691f, -15.190072f, 236.13472f), 138) { DisableNavmesh = true @@ -67524,25 +55831,18 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list41; skipConditions6.StepIf = skipStepConditions6; obj25.SkipConditions = skipConditions6; reference26 = obj25; - num2++; - ref QuestStep reference27 = ref span36[num2]; + ref QuestStep reference27 = ref span10[5]; QuestStep obj26 = new QuestStep(EInteractionType.Jump, null, new Vector3(317.6691f, -15.190072f, 236.13472f), 138) { StopDistance = 1f, @@ -67553,97 +55853,69 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list42; skipConditions7.StepIf = skipStepConditions7; obj26.SkipConditions = skipConditions7; reference27 = obj26; - num2++; - ref QuestStep reference28 = ref span36[num2]; + ref QuestStep reference28 = ref span10[6]; 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 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list43; skipConditions8.StepIf = skipStepConditions8; questStep3.SkipConditions = skipConditions8; reference28 = questStep3; - num2++; - ref QuestStep reference29 = ref span36[num2]; + ref QuestStep reference29 = ref span10[7]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006499u, new Vector3(260.88342f, -24.975f, 249.04248f), 138); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list44; reference29 = questStep4; - num2++; - ref QuestStep reference30 = ref span36[num2]; + ref QuestStep reference30 = ref span10[8]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list45; reference30 = questStep5; obj21.Steps = list36; reference21 = obj21; - num++; - ref QuestSequence reference31 = ref span34[num]; + ref QuestSequence reference31 = ref span9[2]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -67651,11 +55923,9 @@ public static class AssemblyQuestLoader num2 = 2; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - 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); + 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); obj27.Steps = list46; reference31 = obj27; questRoot6.QuestSequence = list34; @@ -67665,26 +55935,21 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; questRoot7.Author = list47; - index = 5; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference32 = ref span48[num]; + num = 5; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span21 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference32 = ref span21[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -67697,8 +55962,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list49; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span48[num]; + ref QuestSequence reference33 = ref span21[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -67706,31 +55970,25 @@ public static class AssemblyQuestLoader num2 = 2; 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(293.98203f, -24.988865f, 240.63774f), 138); - index2++; - span50[index2] = new QuestStep(EInteractionType.Interact, 1006502u, new Vector3(182.39111f, -41.0828f, 260.151f), 138); + 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); obj29.Steps = list50; reference33 = obj29; - num++; - ref QuestSequence reference34 = ref span48[num]; + ref QuestSequence reference34 = ref span21[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj30.Steps = list51; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span48[num]; + ref QuestSequence reference35 = ref span21[3]; QuestSequence obj31 = new QuestSequence { Sequence = 3 @@ -67738,30 +55996,25 @@ public static class AssemblyQuestLoader num2 = 2; 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(303.96317f, -36.40591f, 316.74185f), 138); - index2++; - span52[index2] = new QuestStep(EInteractionType.Interact, 1006501u, new Vector3(311.4214f, -36.405907f, 333.54688f), 138); + 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); obj31.Steps = list52; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span48[num]; + ref QuestSequence reference36 = ref span21[4]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span53[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); obj32.Steps = list53; reference36 = obj32; questRoot7.QuestSequence = list48; @@ -67771,16 +56024,13 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; questRoot8.Author = list54; - index = 4; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference37 = ref span55[num]; + num = 4; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span26 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference37 = ref span26[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -67788,9 +56038,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -67803,24 +56051,20 @@ public static class AssemblyQuestLoader }; obj33.Steps = list56; reference37 = obj33; - num++; - ref QuestSequence reference38 = ref span55[num]; + ref QuestSequence reference38 = ref span26[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj34.Steps = list57; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span55[num]; + ref QuestSequence reference39 = ref span26[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -67828,26 +56072,21 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1007540u, new Vector3(-285.96942f, -40.868286f, 410.39136f), 138) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1007540u, new Vector3(-285.96942f, -40.868286f, 410.39136f), 138) { StopDistance = 7f }; obj35.Steps = list58; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span55[num]; + ref QuestSequence reference40 = ref span26[3]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj36.Steps = list59; reference40 = obj36; questRoot8.QuestSequence = list55; @@ -67857,16 +56096,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; questRoot9.Author = list60; - index = 3; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference41 = ref span61[num]; + num = 3; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span28 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference41 = ref span28[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -67874,88 +56110,63 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj37.Steps = list62; reference41 = obj37; - num++; - ref QuestSequence reference42 = ref span61[num]; + ref QuestSequence reference42 = ref span28[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference43 = ref span63[num2]; + num2 = 3; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span29 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference43 = ref span29[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007639u, new Vector3(-196.82617f, -40.651188f, 499.9618f), 138); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list64; reference43 = questStep6; - num2++; - ref QuestStep reference44 = ref span63[num2]; + ref QuestStep reference44 = ref span29[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list65; reference44 = questStep7; - num2++; - ref QuestStep reference45 = ref span63[num2]; + ref QuestStep reference45 = ref span29[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1006505u, new Vector3(-200.36627f, -40.340702f, 503.19666f), 138); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list66; reference45 = questStep8; obj38.Steps = list63; reference42 = obj38; - num++; - ref QuestSequence reference46 = ref span61[num]; + ref QuestSequence reference46 = ref span28[2]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -67963,9 +56174,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj39.Steps = list67; reference46 = obj39; questRoot9.QuestSequence = list61; @@ -67975,30 +56184,24 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list68)[0] = "JerryWester"; questRoot10.Author = list68; - index = 7; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference47 = ref span69[num]; + num = 7; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span33 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference47 = ref span33[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj40.Steps = list70; reference47 = obj40; - num++; - ref QuestSequence reference48 = ref span69[num]; + ref QuestSequence reference48 = ref span33[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -68006,27 +56209,21 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Interact, 1006507u, new Vector3(-287.22064f, -40.98314f, 407.64465f), 138); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1006507u, new Vector3(-287.22064f, -40.98314f, 407.64465f), 138); obj41.Steps = list71; reference48 = obj41; - num++; - ref QuestSequence reference49 = ref span69[num]; + ref QuestSequence reference49 = ref span33[2]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj42.Steps = list72; reference49 = obj42; - num++; - ref QuestSequence reference50 = ref span69[num]; + ref QuestSequence reference50 = ref span33[3]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -68034,9 +56231,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002189u, new Vector3(-307.75922f, -41.672424f, 695.3993f), 138) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002189u, new Vector3(-307.75922f, -41.672424f, 695.3993f), 138) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -68045,22 +56240,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list73; reference50 = obj43; - num++; - ref QuestSequence reference51 = ref span69[num]; + ref QuestSequence reference51 = ref span33[4]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj44.Steps = list74; reference51 = obj44; - num++; - ref QuestSequence reference52 = ref span69[num]; + ref QuestSequence reference52 = ref span33[5]; QuestSequence obj45 = new QuestSequence { Sequence = 5 @@ -68068,29 +56259,24 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1006503u, new Vector3(-266.5904f, -40.040386f, 461.72266f), 138); obj45.Steps = list75; reference52 = obj45; - num++; - ref QuestSequence reference53 = ref span69[num]; + ref QuestSequence reference53 = ref span33[6]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)138, Comment = "Ferry Skipper" }; - num2++; - span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); + span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1006497u, new Vector3(321.1565f, -18.197807f, 276.5697f), 138); obj46.Steps = list76; reference53 = obj46; questRoot10.QuestSequence = list69; @@ -68100,16 +56286,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list77)[0] = "UcanPatates"; questRoot11.Author = list77; - index = 2; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference54 = ref span78[num]; + num = 2; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span35 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference54 = ref span35[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -68117,9 +56300,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - ref QuestStep reference55 = ref span79[index2]; + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj48 = new QuestStep(EInteractionType.AcceptQuest, 1006711u, new Vector3(-140.39832f, 7.8986163f, -142.99237f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -68134,11 +56315,9 @@ public static class AssemblyQuestLoader num3 = 2; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - num4 = 0; - span80[num4] = 132; - num4++; - span80[num4] = 133; + Span span36 = CollectionsMarshal.AsSpan(list80); + span36[0] = 132; + span36[1] = 133; skipAetheryteCondition3.InTerritory = list80; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions9.AethernetShortcutIf = new SkipAetheryteCondition @@ -68149,18 +56328,15 @@ public static class AssemblyQuestLoader reference55 = obj48; obj47.Steps = list79; reference54 = obj47; - num++; - ref QuestSequence reference56 = ref span78[num]; + ref QuestSequence reference56 = ref span35[1]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -68182,16 +56358,13 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list82)[0] = "UcanPatates"; questRoot12.Author = list82; - index = 4; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference57 = ref span83[num]; + num = 4; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span37 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference57 = ref span37[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -68199,9 +56372,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000617u, new Vector3(5.722107f, -7.2786255f, 270.95447f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -68215,18 +56386,15 @@ public static class AssemblyQuestLoader }; obj50.Steps = list84; reference57 = obj50; - num++; - ref QuestSequence reference58 = ref span83[num]; + ref QuestSequence reference58 = ref span37[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -68239,8 +56407,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list85; reference58 = obj51; - num++; - ref QuestSequence reference59 = ref span83[num]; + ref QuestSequence reference59 = ref span37[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -68248,9 +56415,8 @@ public static class AssemblyQuestLoader num2 = 3; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - ref QuestStep reference60 = ref span86[index2]; + Span span38 = CollectionsMarshal.AsSpan(list86); + ref QuestStep reference60 = ref span38[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 2002191u, new Vector3(189.6543f, 7.94989f, 133.65369f), 152) { StopDistance = 0.25f, @@ -68264,26 +56430,19 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj53.CompletionQuestVariablesFlags = list87; reference60 = obj53; - index2++; - ref QuestStep reference61 = ref span86[index2]; + ref QuestStep reference61 = ref span38[1]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 2002192u, new Vector3(181.04822f, 0.07623291f, 43.289795f), 152) { StopDistance = 0.25f, @@ -68300,23 +56459,16 @@ public static class AssemblyQuestLoader num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - 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); + 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); obj54.CompletionQuestVariablesFlags = list88; reference61 = obj54; - index2++; - ref QuestStep reference62 = ref span86[index2]; + ref QuestStep reference62 = ref span38[2]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2002190u, new Vector3(233.66138f, 6.42395f, 199.11487f), 152) { StopDistance = 0.25f, @@ -68330,38 +56482,30 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj55.CompletionQuestVariablesFlags = list89; reference62 = obj55; obj52.Steps = list86; reference59 = obj52; - num++; - ref QuestSequence reference63 = ref span83[num]; + ref QuestSequence reference63 = ref span37[3]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -68372,8 +56516,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, NextQuestId = new QuestId(972) @@ -68387,16 +56530,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list91)[0] = "UcanPatates"; questRoot13.Author = list91; - index = 3; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference64 = ref span92[num]; + num = 3; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span43 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference64 = ref span43[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -68404,9 +56544,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -68420,18 +56558,16 @@ public static class AssemblyQuestLoader }; obj57.Steps = list93; reference64 = obj57; - num++; - ref QuestSequence reference65 = ref span92[num]; + ref QuestSequence reference65 = ref span43[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -68442,12 +56578,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span94[num2] = new QuestStep(EInteractionType.Interact, 1007568u, new Vector3(-183.88647f, 57.451885f, -143.93835f), 152); + span44[1] = new QuestStep(EInteractionType.Interact, 1007568u, new Vector3(-183.88647f, 57.451885f, -143.93835f), 152); obj58.Steps = list94; reference65 = obj58; - num++; - ref QuestSequence reference66 = ref span92[num]; + ref QuestSequence reference66 = ref span43[2]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -68455,9 +56589,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006715u, new Vector3(-170.67218f, 56.713512f, -255.9701f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -68478,30 +56610,24 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "croizat"; + CollectionsMarshal.AsSpan(list96)[0] = "croizat"; questRoot14.Author = list96; - index = 3; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference67 = ref span97[num]; + num = 3; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span45 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference67 = ref span45[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj60.Steps = list98; reference67 = obj60; - num++; - ref QuestSequence reference68 = ref span97[num]; + ref QuestSequence reference68 = ref span45[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -68509,9 +56635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - ref QuestStep reference69 = ref span99[index2]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list99)[0]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.741034f, 18.766914f, -0.8730635f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -68519,9 +56643,7 @@ public static class AssemblyQuestLoader num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num4 = 0; - span100[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list100)[0] = new ComplexCombatData { DataId = 133u, MinimumKillCount = 4u, @@ -68532,18 +56654,15 @@ public static class AssemblyQuestLoader reference69 = obj62; obj61.Steps = list99; reference68 = obj61; - num++; - ref QuestSequence reference70 = ref span97[num]; + ref QuestSequence reference70 = ref span45[2]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj63.Steps = list101; reference70 = obj63; questRoot14.QuestSequence = list97; @@ -68553,16 +56672,13 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list102)[0] = "JerryWester"; questRoot15.Author = list102; - index = 2; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference71 = ref span103[num]; + num = 2; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span46 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference71 = ref span46[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -68570,9 +56686,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AethernetShortcut = new AethernetShortcut { @@ -68582,18 +56696,16 @@ public static class AssemblyQuestLoader }; obj64.Steps = list104; reference71 = obj64; - num++; - ref QuestSequence reference72 = ref span103[num]; + ref QuestSequence reference72 = ref span46[1]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list105 = new List(index2); - CollectionsMarshal.SetCount(list105, index2); - Span span105 = CollectionsMarshal.AsSpan(list105); - num2 = 0; - ref QuestStep reference73 = ref span105[num2]; + num2 = 2; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + Span span47 = CollectionsMarshal.AsSpan(list105); + ref QuestStep reference73 = ref span47[0]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1000106u, new Vector3(29.007324f, -19.000002f, 105.485596f), 132) { AethernetShortcut = new AethernetShortcut @@ -68602,20 +56714,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAirship } }; - num4 = 1; - List list106 = new List(num4); - CollectionsMarshal.SetCount(list106, num4); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - span106[num3] = new DialogueChoice + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC308_00975_Q1_000_040") }; obj66.DialogueChoices = list106; reference73 = obj66; - num2++; - span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); + span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1006492u, new Vector3(7.3395386f, -21.970974f, 121.934814f), 132); obj65.Steps = list105; reference72 = obj65; questRoot15.QuestSequence = list103; @@ -68625,16 +56734,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; questRoot16.Author = list107; - index = 2; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference74 = ref span108[num]; + num = 2; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span48 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference74 = ref span48[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -68642,26 +56748,21 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007473u, new Vector3(37.308228f, 1.2000015f, 2.9144287f), 212) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007473u, new Vector3(37.308228f, 1.2000015f, 2.9144287f), 212) { StopDistance = 7f }; obj67.Steps = list109; reference74 = obj67; - num++; - ref QuestSequence reference75 = ref span108[num]; + ref QuestSequence reference75 = ref span48[1]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -68674,16 +56775,13 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "liza"; + CollectionsMarshal.AsSpan(list111)[0] = "liza"; questRoot17.Author = list111; - index = 2; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference76 = ref span112[num]; + num = 2; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span49 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference76 = ref span49[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -68691,23 +56789,18 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006382u, new Vector3(165.20935f, 222.99998f, 367.72717f), 155); obj69.Steps = list113; reference76 = obj69; - num++; - ref QuestSequence reference77 = ref span112[num]; + ref QuestSequence reference77 = ref span49[1]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj70.Steps = list114; reference77 = obj70; questRoot17.QuestSequence = list112; @@ -68717,16 +56810,13 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list115)[0] = "JerryWester"; questRoot18.Author = list115; - index = 3; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference78 = ref span116[num]; + num = 3; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span50 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference78 = ref span50[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -68734,27 +56824,21 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006380u, new Vector3(169.48193f, 223.03537f, 366.26233f), 155); obj71.Steps = list117; reference78 = obj71; - num++; - ref QuestSequence reference79 = ref span116[num]; + ref QuestSequence reference79 = ref span50[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj72.Steps = list118; reference79 = obj72; - num++; - ref QuestSequence reference80 = ref span116[num]; + ref QuestSequence reference80 = ref span50[2]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -68762,9 +56846,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006518u, new Vector3(-354.84857f, 214.79114f, 687.5867f), 155); obj73.Steps = list119; reference80 = obj73; questRoot18.QuestSequence = list116; @@ -68774,30 +56856,24 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list120)[0] = "JerryWester"; questRoot19.Author = list120; - index = 8; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference81 = ref span121[num]; + num = 8; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span51 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference81 = ref span51[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj74.Steps = list122; reference81 = obj74; - num++; - ref QuestSequence reference82 = ref span121[num]; + ref QuestSequence reference82 = ref span51[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -68805,27 +56881,21 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 2002196u, new Vector3(-322.80463f, 216.54077f, 655.8479f), 155); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2002196u, new Vector3(-322.80463f, 216.54077f, 655.8479f), 155); obj75.Steps = list123; reference82 = obj75; - num++; - ref QuestSequence reference83 = ref span121[num]; + ref QuestSequence reference83 = ref span51[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj76.Steps = list124; reference83 = obj76; - num++; - ref QuestSequence reference84 = ref span121[num]; + ref QuestSequence reference84 = ref span51[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -68833,27 +56903,21 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 2002198u, new Vector3(-316.15173f, 228.93103f, 540.917f), 155); + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 2002198u, new Vector3(-316.15173f, 228.93103f, 540.917f), 155); obj77.Steps = list125; reference84 = obj77; - num++; - ref QuestSequence reference85 = ref span121[num]; + ref QuestSequence reference85 = ref span51[4]; QuestSequence obj78 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj78.Steps = list126; reference85 = obj78; - num++; - ref QuestSequence reference86 = ref span121[num]; + ref QuestSequence reference86 = ref span51[5]; QuestSequence obj79 = new QuestSequence { Sequence = 5 @@ -68861,33 +56925,27 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 2002200u, new Vector3(-358.29712f, 236.71313f, 506.27905f), 155); + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 2002200u, new Vector3(-358.29712f, 236.71313f, 506.27905f), 155); obj79.Steps = list127; reference86 = obj79; - num++; - ref QuestSequence reference87 = ref span121[num]; + ref QuestSequence reference87 = ref span51[6]; QuestSequence obj80 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f, DisableNavmesh = true }; obj80.Steps = list128; reference87 = obj80; - num++; - ref QuestSequence reference88 = ref span121[num]; + ref QuestSequence reference88 = ref span51[7]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -68895,16 +56953,13 @@ public static class AssemblyQuestLoader num2 = 3; 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(-688.1699f, 241.99994f, 355.80283f), 155); - index2++; - span129[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + 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) { DisableNavmesh = true }; - index2++; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); + span53[2] = new QuestStep(EInteractionType.CompleteQuest, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); obj81.Steps = list129; reference88 = obj81; questRoot19.QuestSequence = list121; @@ -68914,33 +56969,27 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list130)[0] = "JerryWester"; questRoot20.Author = list130; - index = 4; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference89 = ref span131[num]; + num = 4; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span54 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference89 = ref span54[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj82.Steps = list132; reference89 = obj82; - num++; - ref QuestSequence reference90 = ref span131[num]; + ref QuestSequence reference90 = ref span54[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -68948,34 +56997,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1006521u, new Vector3(-697.04736f, 242.18399f, 380.63623f), 155); obj83.Steps = list133; reference90 = obj83; - num++; - ref QuestSequence reference91 = ref span131[num]; + ref QuestSequence reference91 = ref span54[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span134[num2] = new QuestStep(EInteractionType.Interact, 2002265u, new Vector3(-693.01904f, 253.86426f, 506.98096f), 155); + span55[2] = new QuestStep(EInteractionType.Interact, 2002265u, new Vector3(-693.01904f, 253.86426f, 506.98096f), 155); obj84.Steps = list134; reference91 = obj84; - num++; - ref QuestSequence reference92 = ref span131[num]; + ref QuestSequence reference92 = ref span54[3]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -68983,25 +57025,21 @@ public static class AssemblyQuestLoader num2 = 4; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-690.43774f, 261.3325f, 433.44107f), 155) + Span span56 = CollectionsMarshal.AsSpan(list135); + span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-690.43774f, 261.3325f, 433.44107f), 155) { Mount = false, Comment = "Enemies lose aggro around here" }; - index2++; - span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { Mount = true }; - index2++; - span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - index2++; - span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + span56[3] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); obj85.Steps = list135; reference92 = obj85; questRoot20.QuestSequence = list131; @@ -69011,32 +57049,26 @@ public static class AssemblyQuestLoader num = 2; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "JerryWester"; - index++; - span136[index] = "Wigglez"; + Span span57 = CollectionsMarshal.AsSpan(list136); + span57[0] = "JerryWester"; + span57[1] = "Wigglez"; questRoot21.Author = list136; - index = 4; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference93 = ref span137[num]; + num = 4; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span58 = CollectionsMarshal.AsSpan(list137); + ref QuestSequence reference93 = ref span58[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj86.Steps = list138; reference93 = obj86; - num++; - ref QuestSequence reference94 = ref span137[num]; + ref QuestSequence reference94 = ref span58[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -69044,32 +57076,26 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1006522u, new Vector3(-694.42285f, 300.96927f, 372.1521f), 155); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1006522u, new Vector3(-694.42285f, 300.96927f, 372.1521f), 155); obj87.Steps = list139; reference94 = obj87; - num++; - ref QuestSequence reference95 = ref span137[num]; + ref QuestSequence reference95 = ref span58[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list140 = new List(index2); - CollectionsMarshal.SetCount(list140, index2); - Span span140 = CollectionsMarshal.AsSpan(list140); - num2 = 0; - ref QuestStep reference96 = ref span140[num2]; + num2 = 3; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + Span span59 = CollectionsMarshal.AsSpan(list140); + ref QuestStep reference96 = ref span59[0]; 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); - Span span141 = CollectionsMarshal.AsSpan(list141); - num4 = 0; - span141[num4] = 304; + CollectionsMarshal.AsSpan(list141)[0] = 304; skipStepConditions9.InTerritory = list141; skipStepConditions9.NearPosition = new NearPositionCondition { @@ -69080,20 +57106,17 @@ public static class AssemblyQuestLoader skipConditions10.StepIf = skipStepConditions9; questStep9.SkipConditions = skipConditions10; reference96 = questStep9; - num2++; - ref QuestStep reference97 = ref span140[num2]; + ref QuestStep reference97 = ref span59[1]; 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(); - num4 = 1; - List list142 = new List(num4); - CollectionsMarshal.SetCount(list142, num4); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = 304; + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = 304; skipStepConditions10.InTerritory = list142; skipStepConditions10.NearPosition = new NearPositionCondition { @@ -69104,8 +57127,7 @@ public static class AssemblyQuestLoader skipConditions11.StepIf = skipStepConditions10; obj89.SkipConditions = skipConditions11; reference97 = obj89; - num2++; - span140[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006525u, new Vector3(-478.3551f, 288.4877f, 168.01697f), 155) + span59[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006525u, new Vector3(-478.3551f, 288.4877f, 168.01697f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -69114,8 +57136,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list140; reference95 = obj88; - num++; - ref QuestSequence reference98 = ref span137[num]; + ref QuestSequence reference98 = ref span58[3]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -69123,19 +57144,16 @@ public static class AssemblyQuestLoader num2 = 3; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) + Span span60 = CollectionsMarshal.AsSpan(list143); + span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-688.1699f, 241.99994f, 355.80283f), 155) { Mount = true }; - index2++; - span143[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) + span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-692.2779f, 242.18399f, 366.4715f), 155) { DisableNavmesh = true }; - index2++; - span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); + span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1006520u, new Vector3(-699.51935f, 242.184f, 373.495f), 155); obj90.Steps = list143; reference98 = obj90; questRoot21.QuestSequence = list137; @@ -69145,33 +57163,27 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - span144[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list144)[0] = "JerryWester"; questRoot22.Author = list144; - index = 3; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - ref QuestSequence reference99 = ref span145[num]; + num = 3; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span61 = CollectionsMarshal.AsSpan(list145); + ref QuestSequence reference99 = ref span61[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj91.Steps = list146; reference99 = obj91; - num++; - ref QuestSequence reference100 = ref span145[num]; + ref QuestSequence reference100 = ref span61[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -69179,38 +57191,30 @@ public static class AssemblyQuestLoader num2 = 5; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - 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) + 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) { DisableNavmesh = true }; - 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) + 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) { StopDistance = 5f, Aetheryte = EAetheryteLocation.MorDhona }; - index2++; - span147[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + span62[4] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj92.Steps = list147; reference100 = obj92; - num++; - ref QuestSequence reference101 = ref span145[num]; + ref QuestSequence reference101 = ref span61[2]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj93.Steps = list148; reference101 = obj93; questRoot22.QuestSequence = list145; @@ -69220,16 +57224,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; questRoot23.Author = list149; - index = 5; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference102 = ref span150[num]; + num = 5; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span63 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference102 = ref span63[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -69237,29 +57238,24 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156); obj94.Steps = list151; reference102 = obj94; - num++; - ref QuestSequence reference103 = ref span150[num]; + ref QuestSequence reference103 = ref span63[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny, CombatDelaySecondsAtStart = 2f }; - num2++; - ref QuestStep reference104 = ref span152[num2]; + ref QuestStep reference104 = ref span64[1]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2002201u, new Vector3(-420.5539f, -16.922302f, -325.30713f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -69267,15 +57263,12 @@ public static class AssemblyQuestLoader num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - num4 = 0; - span153[num4] = 43u; + CollectionsMarshal.AsSpan(list153)[0] = 43u; obj96.KillEnemyDataIds = list153; reference104 = obj96; obj95.Steps = list152; reference103 = obj95; - num++; - ref QuestSequence reference105 = ref span150[num]; + ref QuestSequence reference105 = ref span63[2]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -69283,30 +57276,24 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Interact, 2002202u, new Vector3(-420.52344f, -16.922302f, -325.30713f), 156); + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 2002202u, new Vector3(-420.52344f, -16.922302f, -325.30713f), 156); obj97.Steps = list154; reference105 = obj97; - num++; - ref QuestSequence reference106 = ref span150[num]; + ref QuestSequence reference106 = ref span63[3]; QuestSequence obj98 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj98.Steps = list155; reference106 = obj98; - num++; - ref QuestSequence reference107 = ref span150[num]; + ref QuestSequence reference107 = ref span63[4]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -69314,9 +57301,7 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); obj99.Steps = list156; reference107 = obj99; questRoot23.QuestSequence = list150; @@ -69330,16 +57315,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -69347,155 +57329,114 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1, Comment = "'Invalid target' messages can just be bad positioning?" }; - index2 = 12; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 12; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list5; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2002232u, new Vector3(-146.92914f, 0.47296143f, -616.0525f), 156) { DelaySecondsAtStart = 2f, ItemId = 2000766u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list6 = new List(num4); - CollectionsMarshal.SetCount(list6, num4); - Span span6 = CollectionsMarshal.AsSpan(list6); - num3 = 0; - span6[num3] = 46u; + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = 46u; obj3.KillEnemyDataIds = list6; num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - 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); + 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); obj3.CompletionQuestVariablesFlags = list7; reference4 = obj3; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, 2002233u, new Vector3(-202.07526f, 3.8909912f, -625.90985f), 156) { ItemId = 2000766u }; - 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); + 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); obj4.CompletionQuestVariablesFlags = list8; reference5 = obj4; - num2++; - ref QuestStep reference6 = ref span4[num2]; + ref QuestStep reference6 = ref span2[3]; 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 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list9; skipConditions2.StepIf = skipStepConditions2; questStep2.SkipConditions = skipConditions2; reference6 = questStep2; - num2++; - ref QuestStep reference7 = ref span4[num2]; + ref QuestStep reference7 = ref span2[4]; QuestStep obj5 = new QuestStep(EInteractionType.UseItem, 2002234u, new Vector3(-216.81549f, 5.6915283f, -637.4762f), 156) { ItemId = 2000766u }; - 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); + 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); obj5.CompletionQuestVariablesFlags = list10; reference7 = obj5; - num2++; - ref QuestStep reference8 = ref span4[num2]; + ref QuestStep reference8 = ref span2[5]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-196.89899f, 5.426553f, -658.71454f), 156) { Comment = "Avoids pit" @@ -69505,53 +57446,39 @@ public static class AssemblyQuestLoader num3 = 6; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list11; skipConditions3.StepIf = skipStepConditions3; obj6.SkipConditions = skipConditions3; reference8 = obj6; - num2++; - ref QuestStep reference9 = ref span4[num2]; + ref QuestStep reference9 = ref span2[6]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list12; skipConditions4.StepIf = skipStepConditions4; obj7.SkipConditions = skipConditions4; reference9 = obj7; - num2++; - ref QuestStep reference10 = ref span4[num2]; + ref QuestStep reference10 = ref span2[7]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2002230u, new Vector3(-171.52673f, 4.0131226f, -655.787f), 156) { DelaySecondsAtStart = 2f, @@ -69561,52 +57488,39 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num4 = 0; - span13[num4] = 46u; + CollectionsMarshal.AsSpan(list13)[0] = 46u; obj8.KillEnemyDataIds = list13; - 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); + 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); obj8.CompletionQuestVariablesFlags = list14; reference10 = obj8; - 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) + 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) { DisableNavmesh = true, Comment = "TODO Unsure if this can be reached without flying, or needs more nav" }; - num2++; - span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-175.24794f, 10.096513f, -605.4419f), 156) + span2[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-175.24794f, 10.096513f, -605.4419f), 156) { DisableNavmesh = true, Mount = false }; - num2++; - span4[num2] = new QuestStep(EInteractionType.UseItem, 2002231u, new Vector3(-174.91425f, 10.757568f, -603.8148f), 156) + span2[11] = new QuestStep(EInteractionType.UseItem, 2002231u, new Vector3(-174.91425f, 10.757568f, -603.8148f), 156) { DelaySecondsAtStart = 2f, ItemId = 2000766u }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[2]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -69614,9 +57528,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006535u, new Vector3(26.901611f, 20.543928f, -687.4037f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -69629,30 +57541,24 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list16)[0] = "JerryWester"; questRoot2.Author = list16; - index = 3; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 3; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span11 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span11[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj10.Steps = list18; reference12 = obj10; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span11[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -69660,9 +57566,8 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference14 = ref span19[index2]; + Span span12 = CollectionsMarshal.AsSpan(list19); + ref QuestStep reference14 = ref span12[0]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -69670,28 +57575,22 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = 55u; + CollectionsMarshal.AsSpan(list20)[0] = 55u; obj12.KillEnemyDataIds = list20; obj12.CombatDelaySecondsAtStart = 5f; reference14 = obj12; - index2++; - span19[index2] = new QuestStep(EInteractionType.Interact, 2002238u, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156); + span12[1] = new QuestStep(EInteractionType.Interact, 2002238u, new Vector3(-505.211f, -1.9684448f, -467.46014f), 156); obj11.Steps = list19; reference13 = obj11; - num++; - ref QuestSequence reference15 = ref span17[num]; + ref QuestSequence reference15 = ref span11[2]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -69704,16 +57603,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; questRoot3.Author = list22; - index = 4; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 4; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span13 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span13[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -69721,9 +57617,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006531u, new Vector3(53.81848f, 25.009521f, -697.0779f), 156) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -69737,25 +57631,21 @@ public static class AssemblyQuestLoader }; obj14.Steps = list24; reference16 = obj14; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span13[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Emote = EEmote.ImperialSalute }; obj15.Steps = list25; reference17 = obj15; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span13[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -69763,16 +57653,13 @@ public static class AssemblyQuestLoader num2 = 3; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span26[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002329u, new Vector3(-169.8482f, 14.114502f, -609.4606f), 156) + span14[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002329u, new Vector3(-169.8482f, 14.114502f, -609.4606f), 156) { ItemId = 2000771u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -69782,33 +57669,28 @@ public static class AssemblyQuestLoader }; obj16.Steps = list26; reference18 = obj16; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span13[3]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list27 = new List(index2); - CollectionsMarshal.SetCount(list27, index2); - Span span27 = CollectionsMarshal.AsSpan(list27); - num2 = 0; - ref QuestStep reference20 = ref span27[num2]; + num2 = 2; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + Span span15 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference20 = ref span15[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); - num4 = 1; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - span28[num3] = new DialogueChoice + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC604_01004_EVENTAREA_WARP_YESNO_TITLE") }; questStep3.DialogueChoices = list28; reference20 = questStep3; - num2++; - span27[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj17.Steps = list27; reference19 = obj17; questRoot3.QuestSequence = list23; @@ -69818,16 +57700,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot4.Author = list29; - index = 12; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 12; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span16 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span16[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -69835,30 +57714,24 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006555u, new Vector3(-2.7619019f, -158.5813f, -1.6327515f), 156); obj18.Steps = list31; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span30[num]; + ref QuestSequence reference22 = ref span16[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj19.Steps = list32; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span30[num]; + ref QuestSequence reference23 = ref span16[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -69866,9 +57739,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -69879,18 +57750,16 @@ public static class AssemblyQuestLoader }; obj20.Steps = list33; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span16[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference25 = ref span34[num2]; + num2 = 2; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span17 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference25 = ref span17[0]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { TargetTerritoryId = (ushort)156, @@ -69899,21 +57768,17 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span35 = CollectionsMarshal.AsSpan(list35); - num4 = 0; - span35[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list35)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSC605_01005_Q1_000_000") }; obj22.DialogueChoices = list35; reference25 = obj22; - num2++; - span34[num2] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156); + span17[1] = new QuestStep(EInteractionType.Interact, 1006557u, new Vector3(1.4190674f, -158.5813f, 1.3274536f), 156); obj21.Steps = list34; reference24 = obj21; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span16[4]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -69921,37 +57786,30 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156) { StopDistance = 7f }; obj23.Steps = list36; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span30[num]; + ref QuestSequence reference27 = ref span16[5]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span37[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.3748f, 13.709051f, -610.729f), 156); + span18[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-169.3748f, 13.709051f, -610.729f), 156); obj24.Steps = list37; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span30[num]; + ref QuestSequence reference28 = ref span16[6]; QuestSequence obj25 = new QuestSequence { Sequence = 6 @@ -69959,32 +57817,26 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.43071f, -2.638534f, -595.8602f), 156) + Span span19 = CollectionsMarshal.AsSpan(list38); + span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.43071f, -2.638534f, -595.8602f), 156) { DisableNavmesh = true }; - index2++; - span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-227.08566f, 13.4605465f, -670.02313f), 156); + span19[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-227.08566f, 13.4605465f, -670.02313f), 156); obj25.Steps = list38; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span30[num]; + ref QuestSequence reference29 = ref span16[7]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj26.Steps = list39; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span30[num]; + ref QuestSequence reference30 = ref span16[8]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -69992,30 +57844,24 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1006559u, new Vector3(-57.724915f, 3.7940114f, -636.68274f), 156); obj27.Steps = list40; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span30[num]; + ref QuestSequence reference31 = ref span16[9]; QuestSequence obj28 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Emote = EEmote.Welcome }; obj28.Steps = list41; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span30[num]; + ref QuestSequence reference32 = ref span16[10]; QuestSequence obj29 = new QuestSequence { Sequence = 10 @@ -70023,9 +57869,7 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006560u, new Vector3(-60.135864f, 3.1014364f, -641.3519f), 156) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006560u, new Vector3(-60.135864f, 3.1014364f, -641.3519f), 156) { StopDistance = 7f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -70035,18 +57879,15 @@ public static class AssemblyQuestLoader }; obj29.Steps = list42; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span30[num]; + ref QuestSequence reference33 = ref span16[11]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj30.Steps = list43; reference33 = obj30; questRoot4.QuestSequence = list30; @@ -70056,16 +57897,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot5.Author = list44; - index = 2; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference34 = ref span45[num]; + num = 2; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span20 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference34 = ref span20[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -70073,28 +57911,23 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj31.Steps = list46; reference34 = obj31; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span20[1]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)204 }; - num2++; - span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { DisableNavmesh = true, NextQuestId = new QuestId(1008) @@ -70108,16 +57941,13 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot6.Author = list48; - index = 3; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference36 = ref span49[num]; + num = 3; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span22 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference36 = ref span22[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -70125,62 +57955,48 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204); obj33.Steps = list50; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span49[num]; + ref QuestSequence reference37 = ref span22[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list51 = new List(index2); - CollectionsMarshal.SetCount(list51, index2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num2 = 0; - ref QuestStep reference38 = ref span51[num2]; + num2 = 5; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + Span span23 = CollectionsMarshal.AsSpan(list51); + ref QuestStep reference38 = ref span23[0]; 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(); - num4 = 1; - List list52 = new List(num4); - CollectionsMarshal.SetCount(list52, num4); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = 204; + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = 204; skipStepConditions5.NotInTerritory = list52; skipConditions5.StepIf = skipStepConditions5; obj35.SkipConditions = skipConditions5; reference38 = obj35; - num2++; - ref QuestStep reference39 = ref span51[num2]; + ref QuestStep reference39 = ref span23[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list53; reference39 = questStep4; - num2++; - ref QuestStep reference40 = ref span51[num2]; + ref QuestStep reference40 = ref span23[2]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1000156u, new Vector3(6.6376343f, 1.1442462f, -11.795227f), 132) { AethernetShortcut = new AethernetShortcut @@ -70189,70 +58005,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - 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); + 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); obj36.CompletionQuestVariablesFlags = list54; reference40 = obj36; - num2++; - ref QuestStep reference41 = ref span51[num2]; + ref QuestStep reference41 = ref span23[3]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list55; reference41 = questStep5; - num2++; - ref QuestStep reference42 = ref span51[num2]; + ref QuestStep reference42 = ref span23[4]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1000372u, new Vector3(39.53601f, -8.041565f, 112.13855f), 132); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list56; reference42 = questStep6; obj34.Steps = list51; reference37 = obj34; - num++; - ref QuestSequence reference43 = ref span49[num]; + ref QuestSequence reference43 = ref span22[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -70260,9 +58055,8 @@ public static class AssemblyQuestLoader num2 = 2; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) + Span span28 = CollectionsMarshal.AsSpan(list57); + span28[0] = new QuestStep(EInteractionType.Interact, 1000423u, new Vector3(232.04382f, 1.999974f, 45.578613f), 132) { TargetTerritoryId = (ushort)204, AethernetShortcut = new AethernetShortcut @@ -70271,8 +58065,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - index2++; - span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) + span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1003061u, new Vector3(-0.015319824f, 0.500025f, -4.3793945f), 204) { DisableNavmesh = true, NextQuestId = new QuestId(1009) @@ -70286,30 +58079,24 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "liza"; + CollectionsMarshal.AsSpan(list58)[0] = "liza"; questRoot7.Author = list58; - index = 6; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference44 = ref span59[num]; + num = 6; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span29 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference44 = ref span29[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list60; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span59[num]; + ref QuestSequence reference45 = ref span29[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -70317,31 +58104,26 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1006584u, new Vector3(193.83533f, 7.8634253f, -57.724915f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj39.Steps = list61; reference45 = obj39; - num++; - ref QuestSequence reference46 = ref span59[num]; + ref QuestSequence reference46 = ref span29[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference47 = ref span62[num2]; + ref QuestStep reference47 = ref span30[1]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 2002241u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -70349,15 +58131,12 @@ public static class AssemblyQuestLoader num3 = 1; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span63 = CollectionsMarshal.AsSpan(list63); - num4 = 0; - span63[num4] = 2198u; + CollectionsMarshal.AsSpan(list63)[0] = 2198u; obj41.KillEnemyDataIds = list63; reference47 = obj41; obj40.Steps = list62; reference46 = obj40; - num++; - ref QuestSequence reference48 = ref span59[num]; + ref QuestSequence reference48 = ref span29[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -70365,30 +58144,24 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 2002614u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2002614u, new Vector3(617.21216f, 23.605652f, 83.26843f), 153); obj42.Steps = list64; reference48 = obj42; - num++; - ref QuestSequence reference49 = ref span59[num]; + ref QuestSequence reference49 = ref span29[4]; QuestSequence obj43 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj43.Steps = list65; reference49 = obj43; - num++; - ref QuestSequence reference50 = ref span59[num]; + ref QuestSequence reference50 = ref span29[5]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -70396,14 +58169,12 @@ public static class AssemblyQuestLoader num2 = 2; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(210.56421f, 18.119999f, -21.370262f), 153) + Span span31 = CollectionsMarshal.AsSpan(list66); + span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(210.56421f, 18.119999f, -21.370262f), 153) { Fly = true }; - index2++; - span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153) + span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153) { NextQuestId = new QuestId(1012) }; @@ -70416,30 +58187,24 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "croizat"; + CollectionsMarshal.AsSpan(list67)[0] = "croizat"; questRoot8.Author = list67; - index = 3; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference51 = ref span68[num]; + num = 3; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span32 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference51 = ref span32[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj45.Steps = list69; reference51 = obj45; - num++; - ref QuestSequence reference52 = ref span68[num]; + ref QuestSequence reference52 = ref span32[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -70447,19 +58212,15 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - ref QuestStep reference53 = ref span70[index2]; + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list70)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(391.67035f, -0.12984455f, 122.68336f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list71 = new List(num4); - CollectionsMarshal.SetCount(list71, num4); - Span span71 = CollectionsMarshal.AsSpan(list71); - num3 = 0; - span71[num3] = new ComplexCombatData + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new ComplexCombatData { DataId = 16u, MinimumKillCount = 5u, @@ -70470,18 +58231,15 @@ public static class AssemblyQuestLoader reference53 = obj47; obj46.Steps = list70; reference52 = obj46; - num++; - ref QuestSequence reference54 = ref span68[num]; + ref QuestSequence reference54 = ref span32[2]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj48.Steps = list72; reference54 = obj48; questRoot8.QuestSequence = list68; @@ -70491,16 +58249,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "croizat"; + CollectionsMarshal.AsSpan(list73)[0] = "croizat"; questRoot9.Author = list73; - index = 4; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference55 = ref span74[num]; + num = 4; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span33 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference55 = ref span33[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -70508,30 +58263,24 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006587u, new Vector3(180.62097f, 9.909174f, -78.78235f), 153); obj49.Steps = list75; reference55 = obj49; - num++; - ref QuestSequence reference56 = ref span74[num]; + ref QuestSequence reference56 = ref span33[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Emote = EEmote.Kneel }; obj50.Steps = list76; reference56 = obj50; - num++; - ref QuestSequence reference57 = ref span74[num]; + ref QuestSequence reference57 = ref span33[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -70539,9 +58288,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - ref QuestStep reference58 = ref span77[index2]; + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(540.6762f, 13.79814f, 162.87543f), 153) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -70549,9 +58296,7 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list78)[0] = new ComplexCombatData { DataId = 8u, MinimumKillCount = 3u, @@ -70562,18 +58307,15 @@ public static class AssemblyQuestLoader reference58 = obj52; obj51.Steps = list77; reference57 = obj51; - num++; - ref QuestSequence reference59 = ref span74[num]; + ref QuestSequence reference59 = ref span33[3]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj53.Steps = list79; reference59 = obj53; questRoot9.QuestSequence = list74; @@ -70583,16 +58325,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot10.Author = list80; - index = 2; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference60 = ref span81[num]; + num = 2; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span34 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference60 = ref span34[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -70600,36 +58339,29 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153); + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006585u, new Vector3(209.3385f, 18.119999f, -21.957764f), 153); obj54.Steps = list82; reference60 = obj54; - num++; - ref QuestSequence reference61 = ref span81[num]; + ref QuestSequence reference61 = ref span34[1]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span83[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + span35[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(433) }; @@ -70642,16 +58374,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list84)[0] = "Thaksin"; questRoot11.Author = list84; - index = 3; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference62 = ref span85[num]; + num = 3; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span36 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference62 = ref span36[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -70659,109 +58388,77 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj56.Steps = list86; reference62 = obj56; - num++; - ref QuestSequence reference63 = ref span85[num]; + ref QuestSequence reference63 = ref span36[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list87 = new List(index2); - CollectionsMarshal.SetCount(list87, index2); - Span span87 = CollectionsMarshal.AsSpan(list87); - num2 = 0; - ref QuestStep reference64 = ref span87[num2]; + num2 = 4; + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + Span span37 = CollectionsMarshal.AsSpan(list87); + ref QuestStep reference64 = ref span37[0]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1006602u, new Vector3(-321.06506f, 8.830055f, 436.94202f), 146); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list88; reference64 = questStep7; - num2++; - ref QuestStep reference65 = ref span87[num2]; + ref QuestStep reference65 = ref span37[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list89; reference65 = questStep8; - num2++; - ref QuestStep reference66 = ref span87[num2]; + ref QuestStep reference66 = ref span37[2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1006599u, new Vector3(-279.98785f, 15.013981f, 373.37292f), 146); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list90; reference66 = questStep9; - num2++; - ref QuestStep reference67 = ref span87[num2]; + ref QuestStep reference67 = ref span37[3]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list91; reference67 = questStep10; obj57.Steps = list87; reference63 = obj57; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span36[2]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -70769,9 +58466,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj58.Steps = list92; reference68 = obj58; questRoot11.QuestSequence = list85; @@ -70781,33 +58476,27 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list93)[0] = "Thaksin"; questRoot12.Author = list93; - index = 8; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference69 = ref span94[num]; + num = 8; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span42 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference69 = ref span42[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj59.Steps = list95; reference69 = obj59; - num++; - ref QuestSequence reference70 = ref span94[num]; + ref QuestSequence reference70 = ref span42[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -70815,35 +58504,29 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1006603u, new Vector3(-196.79565f, 78.11096f, 49.851196f), 148) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1006603u, new Vector3(-196.79565f, 78.11096f, 49.851196f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj60.Steps = list96; reference70 = obj60; - num++; - ref QuestSequence reference71 = ref span94[num]; + ref QuestSequence reference71 = ref span42[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj61.Steps = list97; reference71 = obj61; - num++; - ref QuestSequence reference72 = ref span94[num]; + ref QuestSequence reference72 = ref span42[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -70851,50 +58534,42 @@ public static class AssemblyQuestLoader num2 = 4; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.9934f, 66.78476f, -258.7822f), 180) + Span span43 = CollectionsMarshal.AsSpan(list98); + span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-207.9934f, 66.78476f, -258.7822f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - index2++; - span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.89017f, 63.51318f, -255.7134f), 180) + span43[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.89017f, 63.51318f, -255.7134f), 180) { Fly = true }; - index2++; - span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.22986f, 57.972702f, -381.27402f), 180) + span43[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-356.22986f, 57.972702f, -381.27402f), 180) { Fly = true }; - index2++; - span98[index2] = new QuestStep(EInteractionType.Interact, 1006604u, new Vector3(-278.73657f, 4.1657104f, -580.04126f), 180) + span43[3] = new QuestStep(EInteractionType.Interact, 1006604u, new Vector3(-278.73657f, 4.1657104f, -580.04126f), 180) { Fly = true }; obj62.Steps = list98; reference72 = obj62; - num++; - ref QuestSequence reference73 = ref span94[num]; + ref QuestSequence reference73 = ref span42[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj63.Steps = list99; reference73 = obj63; - num++; - ref QuestSequence reference74 = ref span94[num]; + ref QuestSequence reference74 = ref span42[5]; QuestSequence obj64 = new QuestSequence { Sequence = 5 @@ -70902,9 +58577,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-192.67111f, 35.175262f, 129.13567f), 146) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-192.67111f, 35.175262f, 129.13567f), 146) { Fly = true, ItemId = 2000779u, @@ -70912,25 +58585,21 @@ public static class AssemblyQuestLoader }; obj64.Steps = list100; reference74 = obj64; - num++; - ref QuestSequence reference75 = ref span94[num]; + ref QuestSequence reference75 = ref span42[6]; QuestSequence obj65 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj65.Steps = list101; reference75 = obj65; - num++; - ref QuestSequence reference76 = ref span94[num]; + ref QuestSequence reference76 = ref span42[7]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -70938,9 +58607,7 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1004914u, new Vector3(167.89502f, 3.1102452f, 972.5642f), 146) { Fly = true }; @@ -70953,33 +58620,27 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "skiaz"; + CollectionsMarshal.AsSpan(list103)[0] = "skiaz"; questRoot13.Author = list103; - index = 4; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference77 = ref span104[num]; + num = 4; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span44 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference77 = ref span44[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj67.Steps = list105; reference77 = obj67; - num++; - ref QuestSequence reference78 = ref span104[num]; + ref QuestSequence reference78 = ref span44[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -70987,57 +58648,47 @@ public static class AssemblyQuestLoader num2 = 11; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + Span span45 = CollectionsMarshal.AsSpan(list106); + span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { Fly = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + span45[1] = new QuestStep(EInteractionType.None, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { Land = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) + span45[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-440.48288f, -40.517853f, -225.25006f), 138) { ItemId = 2000782u, GroundTarget = true }; - index2++; - ref QuestStep reference79 = ref span106[index2]; + ref QuestStep reference79 = ref span45[3]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3941f, -40.517452f, -225.2038f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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; + num3 = 2; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + Span span46 = CollectionsMarshal.AsSpan(list107); + span46[0] = 2101u; + span46[1] = 2098u; obj69.KillEnemyDataIds = list107; reference79 = obj69; - index2++; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + span45[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { Fly = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + span45[5] = new QuestStep(EInteractionType.None, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { Land = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) + span45[6] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { ItemId = 2000782u, GroundTarget = true }; - index2++; - ref QuestStep reference80 = ref span106[index2]; + ref QuestStep reference80 = ref span45[7]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-402.92905f, -38.11386f, -248.8578f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -71045,71 +58696,59 @@ public static class AssemblyQuestLoader num3 = 2; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = 2101u; - num4++; - span108[num4] = 2098u; + Span span47 = CollectionsMarshal.AsSpan(list108); + span47[0] = 2101u; + span47[1] = 2098u; obj70.KillEnemyDataIds = list108; reference80 = obj70; - index2++; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + span45[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { Fly = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + span45[9] = new QuestStep(EInteractionType.None, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { Land = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) + span45[10] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { ItemId = 2000782u, GroundTarget = true }; obj68.Steps = list106; reference78 = obj68; - num++; - ref QuestSequence reference81 = ref span104[num]; + ref QuestSequence reference81 = ref span44[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list109 = new List(index2); - CollectionsMarshal.SetCount(list109, index2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - ref QuestStep reference82 = ref span109[num2]; + num2 = 3; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span48 = CollectionsMarshal.AsSpan(list109); + ref QuestStep reference82 = ref span48[0]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-417.09912f, -28.395859f, -251.60617f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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; + num3 = 2; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + Span span49 = CollectionsMarshal.AsSpan(list110); + span49[0] = 2101u; + span49[1] = 2098u; obj72.KillEnemyDataIds = list110; reference82 = obj72; - num2++; - span109[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.49347f, -32.838806f, -234.15048f), 138) + span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-402.49347f, -32.838806f, -234.15048f), 138) { Fly = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) + span48[2] = new QuestStep(EInteractionType.Interact, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138) { Fly = true }; obj71.Steps = list109; reference81 = obj71; - num++; - ref QuestSequence reference83 = ref span104[num]; + ref QuestSequence reference83 = ref span44[3]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -71117,9 +58756,8 @@ public static class AssemblyQuestLoader num2 = 5; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.34997f, 17.649893f, -256.22174f), 140) + Span span50 = CollectionsMarshal.AsSpan(list111); + span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.34997f, 17.649893f, -256.22174f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -71136,20 +58774,16 @@ public static class AssemblyQuestLoader } } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.869f, 19.009003f, -372.63593f), 140) + span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-491.869f, 19.009003f, -372.63593f), 140) { Fly = true }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - index2++; - span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007488u, new Vector3(-1.2055054f, -2.0000095f, -28.000305f), 212); + span50[4] = new QuestStep(EInteractionType.CompleteQuest, 1007488u, new Vector3(-1.2055054f, -2.0000095f, -28.000305f), 212); obj73.Steps = list111; reference83 = obj73; questRoot13.QuestSequence = list104; @@ -71159,33 +58793,27 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list112)[0] = "JerryWester"; questRoot14.Author = list112; - index = 2; - List list113 = new List(index); - CollectionsMarshal.SetCount(list113, index); - Span span113 = CollectionsMarshal.AsSpan(list113); - num = 0; - ref QuestSequence reference84 = ref span113[num]; + num = 2; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + Span span51 = CollectionsMarshal.AsSpan(list113); + ref QuestSequence reference84 = ref span51[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj74.Steps = list114; reference84 = obj74; - num++; - ref QuestSequence reference85 = ref span113[num]; + ref QuestSequence reference85 = ref span51[1]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -71193,19 +58821,16 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + Span span52 = CollectionsMarshal.AsSpan(list115); + span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - index2++; - span115[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + span52[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - index2++; - span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147); + span52[2] = new QuestStep(EInteractionType.CompleteQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147); obj75.Steps = list115; reference85 = obj75; questRoot14.QuestSequence = list113; @@ -71215,30 +58840,24 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list116)[0] = "JerryWester"; questRoot15.Author = list116; - index = 2; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference86 = ref span117[num]; + num = 2; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span53 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference86 = ref span53[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj76.Steps = list118; reference86 = obj76; - num++; - ref QuestSequence reference87 = ref span117[num]; + ref QuestSequence reference87 = ref span53[1]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -71246,14 +58865,12 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + Span span54 = CollectionsMarshal.AsSpan(list119); + span54[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - index2++; - span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + span54[1] = 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'" }; @@ -71266,30 +58883,24 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list120)[0] = "JerryWester"; questRoot16.Author = list120; - index = 3; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference88 = ref span121[num]; + num = 3; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span55 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference88 = ref span55[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj78.Steps = list122; reference88 = obj78; - num++; - ref QuestSequence reference89 = ref span121[num]; + ref QuestSequence reference89 = ref span55[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -71297,47 +58908,39 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj79.Steps = list123; reference89 = obj79; - num++; - ref QuestSequence reference90 = ref span121[num]; + ref QuestSequence reference90 = ref span55[2]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - num2++; - span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) + span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) { Fly = true }; - num2++; - span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) + span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) { Fly = true }; - num2++; - span124[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) + span56[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) { Fly = true }; - num2++; - span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 2002581u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) + span56[4] = new QuestStep(EInteractionType.CompleteQuest, 2002581u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) { StopDistance = 5f, Mount = false, @@ -71352,16 +58955,13 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot17.Author = list125; - index = 5; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference91 = ref span126[num]; + num = 5; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span57 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference91 = ref span57[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -71369,9 +58969,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - ref QuestStep reference92 = ref span127[index2]; + ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list127)[0]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1000927u, new Vector3(-1.2055054f, 44.999886f, -255.8786f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -71389,9 +58987,7 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = 128; + CollectionsMarshal.AsSpan(list128)[0] = 128; obj83.InTerritory = list128; skipConditions6.AetheryteShortcutIf = obj83; skipConditions6.AethernetShortcutIf = new SkipAetheryteCondition @@ -71402,25 +58998,21 @@ public static class AssemblyQuestLoader reference92 = obj82; obj81.Steps = list127; reference91 = obj81; - num++; - ref QuestSequence reference93 = ref span126[num]; + ref QuestSequence reference93 = ref span57[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj84.Steps = list129; reference93 = obj84; - num++; - ref QuestSequence reference94 = ref span126[num]; + ref QuestSequence reference94 = ref span57[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -71428,9 +59020,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006763u, new Vector3(494.9568f, 11.450662f, 329.76257f), 137) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006763u, new Vector3(494.9568f, 11.450662f, 329.76257f), 137) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -71439,22 +59029,18 @@ public static class AssemblyQuestLoader }; obj85.Steps = list130; reference94 = obj85; - num++; - ref QuestSequence reference95 = ref span126[num]; + ref QuestSequence reference95 = ref span57[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj86.Steps = list131; reference95 = obj86; - num++; - ref QuestSequence reference96 = ref span126[num]; + ref QuestSequence reference96 = ref span57[4]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -71462,9 +59048,7 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { NextQuestId = new QuestId(1050) }; @@ -71482,17 +59066,14 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence questSequence = new QuestSequence { Sequence = 0 @@ -71501,9 +59082,8 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int num3 = 0; - span3[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + Span span2 = CollectionsMarshal.AsSpan(list3); + span2[0] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, ItemId = 4544u, @@ -71515,23 +59095,20 @@ public static class AssemblyQuestLoader } } }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); + span2[1] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); questSequence2.Steps = list3; reference = questSequence; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence3 = questSequence; - num3 = 3; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span4 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span3 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference3 = ref span3[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004962u, new Vector3(-300.1908f, 7.2785034f, 410.94055f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, @@ -71544,72 +59121,51 @@ public static class AssemblyQuestLoader } }; QuestStep questStep2 = questStep; - 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); + 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); questStep2.CompletionQuestVariablesFlags = list4; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span3[1]; questStep = new QuestStep(EInteractionType.Interact, 1006735u, new Vector3(-316.1822f, 8.844355f, 433.82922f), 146); QuestStep questStep3 = questStep; - 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); + 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); questStep3.CompletionQuestVariablesFlags = list4; reference4 = questStep; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span3[2]; questStep = new QuestStep(EInteractionType.Interact, 1006288u, new Vector3(-361.40997f, 8.46532f, 426.13855f), 146); QuestStep questStep4 = questStep; - 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); + 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); questStep4.CompletionQuestVariablesFlags = list4; reference5 = questStep; questSequence3.Steps = list3; reference2 = questSequence; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; questSequence = new QuestSequence { Sequence = 2 @@ -71618,37 +59174,30 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span8 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference7 = ref span8[num3]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(156.89783f, 4.3410587f, 831.42926f), 146) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep5 = questStep; - num5 = 1; - List list5 = new List(num5); - CollectionsMarshal.SetCount(list5, num5); - Span span9 = CollectionsMarshal.AsSpan(list5); - num4 = 0; - span9[num4] = 1917u; + num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = 1917u; questStep5.KillEnemyDataIds = list5; reference7 = questStep; questSequence4.Steps = list3; reference6 = questSequence; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence5 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, NextQuestId = new QuestId(1051) @@ -71663,17 +59212,14 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span11 = CollectionsMarshal.AsSpan(list6); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot4.Author = list6; QuestRoot questRoot5 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span12 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span7 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference9 = ref span7[0]; questSequence = new QuestSequence { Sequence = 0 @@ -71682,9 +59228,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span13 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span13[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -71697,26 +59241,22 @@ public static class AssemblyQuestLoader }; questSequence6.Steps = list3; reference9 = questSequence; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span7[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence7 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; questSequence7.Steps = list3; reference10 = questSequence; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span7[2]; questSequence = new QuestSequence { Sequence = 2 @@ -71725,43 +59265,35 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span15 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference12 = ref span15[num3]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002307u, new Vector3(95.8114f, 74.143555f, -45.731323f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep6 = questStep; - 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; + num3 = 2; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + Span span8 = CollectionsMarshal.AsSpan(list7); + span8[0] = 2u; + span8[1] = 12u; questStep6.KillEnemyDataIds = list7; reference12 = questStep; questSequence8.Steps = list3; reference11 = questSequence; - num++; - ref QuestSequence reference13 = ref span12[num]; + ref QuestSequence reference13 = ref span7[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence9 = questSequence; - 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); + 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); questSequence9.Steps = list8; reference13 = questSequence; - num++; - ref QuestSequence reference14 = ref span12[num]; + ref QuestSequence reference14 = ref span7[4]; questSequence = new QuestSequence { Sequence = 4 @@ -71770,24 +59302,19 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span18 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - span18[num3] = new QuestStep(EInteractionType.Interact, 1006783u, new Vector3(-11.490112f, 69.24614f, 30.289062f), 137); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1006783u, new Vector3(-11.490112f, 69.24614f, 30.289062f), 137); questSequence10.Steps = list9; reference14 = questSequence; - num++; - ref QuestSequence reference15 = ref span12[num]; + ref QuestSequence reference15 = ref span7[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence11 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -71803,17 +59330,14 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span20 = CollectionsMarshal.AsSpan(list10); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list10)[0] = "liza"; questRoot6.Author = list10; QuestRoot questRoot7 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span21 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span9 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference16 = ref span9[0]; questSequence = new QuestSequence { Sequence = 0 @@ -71822,9 +59346,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span22 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span22[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -71837,19 +59359,17 @@ public static class AssemblyQuestLoader }; questSequence12.Steps = list3; reference16 = questSequence; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span9[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence13 = questSequence; - num3 = 8; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span23 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference18 = ref span23[num2]; + num2 = 8; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span10 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference18 = ref span10[0]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-586.4241f, 236.18538f, 411.9264f), 155) { Fly = true, @@ -71860,22 +59380,16 @@ public static class AssemblyQuestLoader SkipConditions skipConditions2 = skipConditions; SkipStepConditions skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions2 = skipStepConditions; - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list4; skipConditions2.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -71884,69 +59398,52 @@ public static class AssemblyQuestLoader }; questStep7.SkipConditions = skipConditions; reference18 = questStep; - num2++; - ref QuestStep reference19 = ref span23[num2]; + ref QuestStep reference19 = ref span10[1]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-608.9161f, 247.47685f, 420.84274f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep8 = questStep; - num4 = 1; - List list11 = new List(num4); - CollectionsMarshal.SetCount(list11, num4); - Span span25 = CollectionsMarshal.AsSpan(list11); - num5 = 0; - span25[num5] = 1918u; + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = 1918u; questStep8.KillEnemyDataIds = list11; QuestStep questStep9 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions3 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions3 = skipStepConditions; - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list4; skipConditions3.StepIf = skipStepConditions; questStep9.SkipConditions = skipConditions; reference19 = questStep; - num2++; - ref QuestStep reference20 = ref span23[num2]; + ref QuestStep reference20 = ref span10[2]; questStep = new QuestStep(EInteractionType.Interact, 2002308u, new Vector3(-583.82544f, 234.97363f, 410.94055f), 155); QuestStep questStep10 = questStep; - 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); + 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); questStep10.CompletionQuestVariablesFlags = list4; reference20 = questStep; - num2++; - ref QuestStep reference21 = ref span23[num2]; + ref QuestStep reference21 = ref span10[3]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-52.048523f, 0.869751f, 359.39575f), 153) { Fly = true, @@ -71954,34 +59451,26 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep11 = questStep; - num5 = 1; - List list12 = new List(num5); - CollectionsMarshal.SetCount(list12, num5); - Span span28 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span28[num4] = 1919u; + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = 1919u; questStep11.KillEnemyDataIds = list12; QuestStep questStep12 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions4 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions4 = skipStepConditions; - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list4; skipConditions4.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -71990,30 +59479,22 @@ public static class AssemblyQuestLoader }; questStep12.SkipConditions = skipConditions; reference21 = questStep; - num2++; - ref QuestStep reference22 = ref span23[num2]; + ref QuestStep reference22 = ref span10[4]; questStep = new QuestStep(EInteractionType.Interact, 2002309u, new Vector3(-52.048523f, 0.869751f, 359.39575f), 153); QuestStep questStep13 = questStep; - 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); + 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); questStep13.CompletionQuestVariablesFlags = list4; reference22 = questStep; - num2++; - ref QuestStep reference23 = ref span23[num2]; + ref QuestStep reference23 = ref span10[5]; questStep = new QuestStep(EInteractionType.UseItem, null, null, 153) { TargetTerritoryId = (ushort)140, @@ -72024,91 +59505,68 @@ public static class AssemblyQuestLoader SkipConditions skipConditions5 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions5 = skipStepConditions; - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list4; skipConditions5.StepIf = skipStepConditions; questStep14.SkipConditions = skipConditions; reference23 = questStep; - num2++; - ref QuestStep reference24 = ref span23[num2]; + ref QuestStep reference24 = ref span10[6]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-283.92462f, 15.060608f, -774.6853f), 140) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep15 = questStep; - num5 = 1; - List list13 = new List(num5); - CollectionsMarshal.SetCount(list13, num5); - Span span32 = CollectionsMarshal.AsSpan(list13); - num4 = 0; - span32[num4] = 1920u; + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = 1920u; questStep15.KillEnemyDataIds = list13; QuestStep questStep16 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions6 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions6 = skipStepConditions; - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list4; skipConditions6.StepIf = skipStepConditions; questStep16.SkipConditions = skipConditions; reference24 = questStep; - num2++; - ref QuestStep reference25 = ref span23[num2]; + ref QuestStep reference25 = ref span10[7]; questStep = new QuestStep(EInteractionType.Interact, 2002310u, new Vector3(-283.92462f, 15.060608f, -774.6853f), 140); QuestStep questStep17 = questStep; - 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); + 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); questStep17.CompletionQuestVariablesFlags = list4; reference25 = questStep; questSequence13.Steps = list3; reference17 = questSequence; - num++; - ref QuestSequence reference26 = ref span21[num]; + ref QuestSequence reference26 = ref span9[2]; questSequence = new QuestSequence { Sequence = 2 @@ -72117,46 +59575,38 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span35 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span35[num3] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; questSequence14.Steps = list3; reference26 = questSequence; - num++; - ref QuestSequence reference27 = ref span21[num]; + ref QuestSequence reference27 = ref span9[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence15 = questSequence; - 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) + num2 = 4; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span19 = CollectionsMarshal.AsSpan(list3); + span19[0] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3684u }; - num2++; - span36[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + span19[1] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3460u }; - num2++; - span36[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) + span19[2] = new QuestStep(EInteractionType.EquipItem, null, null, 137) { ItemId = 3891u }; - num2++; - span36[num2] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); + span19[3] = new QuestStep(EInteractionType.Interact, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137); questSequence15.Steps = list3; reference27 = questSequence; - num++; - ref QuestSequence reference28 = ref span21[num]; + ref QuestSequence reference28 = ref span9[4]; questSequence = new QuestSequence { Sequence = 4 @@ -72165,9 +59615,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span37 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference29 = ref span37[num3]; + Span span20 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference29 = ref span20[0]; questStep = new QuestStep(EInteractionType.Combat, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137) { Fly = true, @@ -72175,54 +59624,42 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep18 = questStep; - num4 = 1; - List list14 = new List(num4); - CollectionsMarshal.SetCount(list14, num4); - Span span38 = CollectionsMarshal.AsSpan(list14); - num5 = 0; - ref ComplexCombatData reference30 = ref span38[num5]; + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + ref ComplexCombatData reference30 = ref CollectionsMarshal.AsSpan(list14)[0]; ComplexCombatData complexCombatData = new ComplexCombatData { DataId = 1921u }; ComplexCombatData complexCombatData2 = complexCombatData; - 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; + 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; complexCombatData2.CompletionQuestVariablesFlags = list4; reference30 = complexCombatData; questStep18.ComplexCombatData = list14; reference29 = questStep; - num3++; - span37[num3] = new QuestStep(EInteractionType.Interact, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137); + span20[1] = new QuestStep(EInteractionType.Interact, 2002311u, new Vector3(-282.7345f, 33.798706f, 300.98413f), 137); questSequence16.Steps = list3; reference28 = questSequence; - num++; - ref QuestSequence reference31 = ref span21[num]; + ref QuestSequence reference31 = ref span9[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence17 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -72238,17 +59675,14 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span41 = CollectionsMarshal.AsSpan(list15); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot8.Author = list15; QuestRoot questRoot9 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span42 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference32 = ref span42[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span22 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference32 = ref span22[0]; questSequence = new QuestSequence { Sequence = 0 @@ -72257,9 +59691,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span43 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span43[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -72272,52 +59704,42 @@ public static class AssemblyQuestLoader }; questSequence18.Steps = list3; reference32 = questSequence; - num++; - ref QuestSequence reference33 = ref span42[num]; + ref QuestSequence reference33 = ref span22[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence19 = questSequence; - num3 = 2; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span44 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference34 = ref span44[num2]; + num2 = 2; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span23 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference34 = ref span23[0]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(573.56177f, 347.98422f, -760.73724f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep19 = questStep; - num5 = 1; - list14 = new List(num5); - CollectionsMarshal.SetCount(list14, num5); - Span span45 = CollectionsMarshal.AsSpan(list14); - num4 = 0; - ref ComplexCombatData reference35 = ref span45[num4]; + num3 = 1; + list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + ref ComplexCombatData reference35 = ref CollectionsMarshal.AsSpan(list14)[0]; complexCombatData = new ComplexCombatData { DataId = 1922u }; ComplexCombatData complexCombatData3 = complexCombatData; - 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; + 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; complexCombatData3.CompletionQuestVariablesFlags = list4; reference35 = complexCombatData; questStep19.ComplexCombatData = list14; @@ -72329,12 +59751,10 @@ public static class AssemblyQuestLoader } }; reference34 = questStep; - num2++; - span44[num2] = new QuestStep(EInteractionType.Interact, 2002312u, new Vector3(579.4918f, 347.79883f, -764.3702f), 155); + span23[1] = new QuestStep(EInteractionType.Interact, 2002312u, new Vector3(579.4918f, 347.79883f, -764.3702f), 155); questSequence19.Steps = list3; reference33 = questSequence; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span22[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -72343,9 +59763,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span47 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span47[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -72361,28 +59779,23 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span48 = CollectionsMarshal.AsSpan(list16); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot10.Author = list16; QuestRoot questRoot11 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span49 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference37 = ref span49[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span25 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference37 = ref span25[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence21 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -72395,8 +59808,7 @@ public static class AssemblyQuestLoader }; questSequence21.Steps = list3; reference37 = questSequence; - num++; - ref QuestSequence reference38 = ref span49[num]; + ref QuestSequence reference38 = ref span25[1]; questSequence = new QuestSequence { Sequence = 1 @@ -72405,9 +59817,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span51 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span51[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006771u, new Vector3(89.829834f, 66.04188f, 18.753235f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006771u, new Vector3(89.829834f, 66.04188f, 18.753235f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -72418,23 +59828,19 @@ public static class AssemblyQuestLoader }; questSequence22.Steps = list3; reference38 = questSequence; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span25[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence23 = questSequence; - 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); + 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); questSequence23.Steps = list17; reference39 = questSequence; - num++; - ref QuestSequence reference40 = ref span49[num]; + ref QuestSequence reference40 = ref span25[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -72443,9 +59849,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span53 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span53[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol @@ -72460,28 +59864,23 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span54 = CollectionsMarshal.AsSpan(list18); - index = 0; - span54[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list18)[0] = "Cacahuetes"; questRoot12.Author = list18; QuestRoot questRoot13 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span55 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference41 = ref span55[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span26 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference41 = ref span26[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence25 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span56 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference42 = ref span56[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1002277u, new Vector3(-97.550964f, 7.05f, 23.605652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72499,20 +59898,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition2 = skipAetheryteCondition; - num4 = 1; - List list19 = new List(num4); - CollectionsMarshal.SetCount(list19, num4); - Span span57 = CollectionsMarshal.AsSpan(list19); - num5 = 0; - span57[num5] = 131; + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + CollectionsMarshal.AsSpan(list19)[0] = 131; skipAetheryteCondition2.InTerritory = list19; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition; questStep20.SkipConditions = skipConditions; reference42 = questStep; questSequence25.Steps = list3; reference41 = questSequence; - num++; - ref QuestSequence reference43 = ref span55[num]; + ref QuestSequence reference43 = ref span26[1]; questSequence = new QuestSequence { Sequence = 1 @@ -72521,9 +59917,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span58 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span58[num3] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AethernetShortcut = new AethernetShortcut { @@ -72533,19 +59927,16 @@ public static class AssemblyQuestLoader }; questSequence26.Steps = list3; reference43 = questSequence; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span26[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence27 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span59 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference45 = ref span59[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002344u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146) { Fly = true, @@ -72553,20 +59944,17 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep21 = questStep; - 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; + num3 = 2; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span27 = CollectionsMarshal.AsSpan(list20); + span27[0] = 18u; + span27[1] = 19u; questStep21.KillEnemyDataIds = list20; reference45 = questStep; questSequence27.Steps = list3; reference44 = questSequence; - num++; - ref QuestSequence reference46 = ref span55[num]; + ref QuestSequence reference46 = ref span26[3]; questSequence = new QuestSequence { Sequence = 3 @@ -72575,27 +59963,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span61 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span61[num3] = new QuestStep(EInteractionType.UseItem, 2002345u, new Vector3(-97.39838f, 16.433899f, -188.2201f), 146) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002345u, new Vector3(-97.39838f, 16.433899f, -188.2201f), 146) { ItemId = 2000821u }; questSequence28.Steps = list3; reference46 = questSequence; - num++; - ref QuestSequence reference47 = ref span55[num]; + ref QuestSequence reference47 = ref span26[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence29 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -72606,8 +59989,7 @@ public static class AssemblyQuestLoader }; questSequence29.Steps = list3; reference47 = questSequence; - num++; - ref QuestSequence reference48 = ref span55[num]; + ref QuestSequence reference48 = ref span26[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -72616,9 +59998,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span63 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span63[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { NextQuestId = new QuestId(1056) }; @@ -72632,28 +60012,24 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span64 = CollectionsMarshal.AsSpan(list21); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list21)[0] = "liza"; questRoot14.Author = list21; QuestRoot questRoot15 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span65 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference49 = ref span65[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span28 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference49 = ref span28[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence31 = questSequence; - num3 = 2; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span66 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference50 = ref span66[num2]; + num2 = 2; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span29 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference50 = ref span29[0]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 137) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72672,22 +60048,18 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition3 = skipAetheryteCondition; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span67 = CollectionsMarshal.AsSpan(list22); - num5 = 0; - span67[num5] = 131; + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = 131; skipAetheryteCondition3.InTerritory = list22; skipConditions8.AetheryteShortcutIf = skipAetheryteCondition; questStep22.SkipConditions = skipConditions; reference50 = questStep; - num2++; - span66[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131); + span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131); questSequence31.Steps = list3; reference49 = questSequence; - num++; - ref QuestSequence reference51 = ref span65[num]; + ref QuestSequence reference51 = ref span28[1]; questSequence = new QuestSequence { Sequence = 1 @@ -72696,9 +60068,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span68 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span68[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.72705f, 67.23717f, -293.5509f), 180) + Span span30 = CollectionsMarshal.AsSpan(list3); + span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.72705f, 67.23717f, -293.5509f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -72710,8 +60081,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span68[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-355.4327f, 63.813503f, -382.56308f), 180) + span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-355.4327f, 63.813503f, -382.56308f), 180) { Fly = true, SkipConditions = new SkipConditions @@ -72722,20 +60092,17 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference52 = ref span68[num3]; + ref QuestStep reference52 = ref span30[2]; questStep = new QuestStep(EInteractionType.Combat, 2002346u, new Vector3(-312.27594f, 32.547485f, -444.9989f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep23 = questStep; - num5 = 1; - List list23 = new List(num5); - CollectionsMarshal.SetCount(list23, num5); - Span span69 = CollectionsMarshal.AsSpan(list23); - num4 = 0; - span69[num4] = new ComplexCombatData + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new ComplexCombatData { DataId = 6u, NameId = 2020u @@ -72744,19 +60111,16 @@ public static class AssemblyQuestLoader reference52 = questStep; questSequence32.Steps = list3; reference51 = questSequence; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span28[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence33 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -72776,17 +60140,14 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span71 = CollectionsMarshal.AsSpan(list24); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot16.Author = list24; QuestRoot questRoot17 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span72 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference54 = ref span72[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span31 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference54 = ref span31[0]; questSequence = new QuestSequence { Sequence = 0 @@ -72795,9 +60156,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span73 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference55 = ref span73[num3]; + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72815,49 +60174,41 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition4 = skipAetheryteCondition; - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - Span span74 = CollectionsMarshal.AsSpan(list25); - num5 = 0; - span74[num5] = 131; + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = 131; skipAetheryteCondition4.InTerritory = list25; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition; questStep24.SkipConditions = skipConditions; reference55 = questStep; questSequence34.Steps = list3; reference54 = questSequence; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span31[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence35 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span75 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference57 = ref span75[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002347u, new Vector3(175.82971f, -10.452454f, 84.91638f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep25 = questStep; - num5 = 1; - List list26 = new List(num5); - CollectionsMarshal.SetCount(list26, num5); - Span span76 = CollectionsMarshal.AsSpan(list26); - num4 = 0; - span76[num4] = 383u; + num3 = 1; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + CollectionsMarshal.AsSpan(list26)[0] = 383u; questStep25.KillEnemyDataIds = list26; reference57 = questStep; questSequence35.Steps = list3; reference56 = questSequence; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span31[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -72866,9 +60217,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span77 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span77[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -72888,28 +60237,23 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span78 = CollectionsMarshal.AsSpan(list27); - index = 0; - span78[index] = "liza, CryoTechnic"; + CollectionsMarshal.AsSpan(list27)[0] = "liza, CryoTechnic"; questRoot18.Author = list27; QuestRoot questRoot19 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span79 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference59 = ref span79[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span32 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference59 = ref span32[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence37 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span80 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference60 = ref span80[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -72927,20 +60271,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition5 = skipAetheryteCondition; - num4 = 1; - List list28 = new List(num4); - CollectionsMarshal.SetCount(list28, num4); - Span span81 = CollectionsMarshal.AsSpan(list28); - num5 = 0; - span81[num5] = 131; + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = 131; skipAetheryteCondition5.InTerritory = list28; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition; questStep26.SkipConditions = skipConditions; reference60 = questStep; questSequence37.Steps = list3; reference59 = questSequence; - num++; - ref QuestSequence reference61 = ref span79[num]; + ref QuestSequence reference61 = ref span32[1]; questSequence = new QuestSequence { Sequence = 1 @@ -72949,9 +60290,8 @@ public static class AssemblyQuestLoader num2 = 16; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span82 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference62 = ref span82[num3]; + Span span33 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference62 = ref span33[0]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-97.65164f, 14.866778f, -189.99821f), 146) { StopDistance = 0.5f, @@ -72960,36 +60300,28 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep27 = questStep; - 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; + num3 = 2; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span34 = CollectionsMarshal.AsSpan(list29); + span34[0] = 1923u; + span34[1] = 1924u; questStep27.KillEnemyDataIds = list29; QuestStep questStep28 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions11 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions7 = skipStepConditions; - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list4; skipConditions11.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -72998,30 +60330,22 @@ public static class AssemblyQuestLoader }; questStep28.SkipConditions = skipConditions; reference62 = questStep; - num3++; - ref QuestStep reference63 = ref span82[num3]; + ref QuestStep reference63 = ref span33[1]; questStep = new QuestStep(EInteractionType.Interact, 2002349u, new Vector3(-97.39838f, 14.846985f, -188.2201f), 146); QuestStep questStep29 = questStep; - 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); + 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); questStep29.CompletionQuestVariablesFlags = list4; reference63 = questStep; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.88503f, 4.1472216f, -216.97708f), 146) + span33[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.88503f, 4.1472216f, -216.97708f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -73032,8 +60356,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-89.94699f, -4.7999415f, -104.621376f), 146) + span33[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-89.94699f, -4.7999415f, -104.621376f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -73044,8 +60367,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) + span33[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -73056,8 +60378,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-80.41123f, -14.578715f, -170.62582f), 146) + span33[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-80.41123f, -14.578715f, -170.62582f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -73068,8 +60389,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference64 = ref span82[num3]; + ref QuestStep reference64 = ref span33[6]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-97.35628f, -14.397484f, -176.70825f), 146) { StopDistance = 0.5f, @@ -73077,64 +60397,48 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep30 = questStep; - 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; + num3 = 2; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + Span span37 = CollectionsMarshal.AsSpan(list30); + span37[0] = 1923u; + span37[1] = 1924u; questStep30.KillEnemyDataIds = list30; QuestStep questStep31 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions12 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions8 = skipStepConditions; - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list4; skipConditions12.StepIf = skipStepConditions; questStep31.SkipConditions = skipConditions; reference64 = questStep; - num3++; - ref QuestStep reference65 = ref span82[num3]; + ref QuestStep reference65 = ref span33[7]; questStep = new QuestStep(EInteractionType.Interact, 2002348u, new Vector3(-99.4126f, -14.4198f, -179.46143f), 146); QuestStep questStep32 = questStep; - 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); + 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); questStep32.CompletionQuestVariablesFlags = list4; reference65 = questStep; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) + span33[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-58.741863f, -16.84673f, -170.08568f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -73145,8 +60449,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-75.59294f, -1.9464281f, -102.63653f), 146) + span33[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-75.59294f, -1.9464281f, -102.63653f), 146) { StopDistance = 0.5f, SkipConditions = new SkipConditions @@ -73157,50 +60460,40 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference66 = ref span82[num3]; + ref QuestStep reference66 = ref span33[10]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(137.78966f, 10.371678f, -427.8172f), 146) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep33 = questStep; - 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; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span40 = CollectionsMarshal.AsSpan(list31); + span40[0] = 1923u; + span40[1] = 1924u; questStep33.KillEnemyDataIds = list31; QuestStep questStep34 = questStep; skipConditions = new SkipConditions(); SkipConditions skipConditions13 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions9 = skipStepConditions; - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list4; skipConditions13.StepIf = skipStepConditions; questStep34.SkipConditions = skipConditions; reference66 = questStep; - num3++; - ref QuestStep reference67 = ref span82[num3]; + ref QuestStep reference67 = ref span33[11]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.78966f, 10.371678f, -427.8172f), 146) { StopDistance = 0.5f @@ -73210,93 +60503,72 @@ public static class AssemblyQuestLoader SkipConditions skipConditions14 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions10 = skipStepConditions; - 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list4; skipConditions14.StepIf = skipStepConditions; questStep35.SkipConditions = skipConditions; reference67 = questStep; - num3++; - ref QuestStep reference68 = ref span82[num3]; + ref QuestStep reference68 = ref span33[12]; questStep = new QuestStep(EInteractionType.Interact, 2002351u, new Vector3(137.74304f, 10.60498f, -420.5539f), 146) { DisableNavmesh = true }; QuestStep questStep36 = questStep; - 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); + 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); questStep36.CompletionQuestVariablesFlags = list4; reference68 = questStep; - num3++; - span82[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.70113f, 10.371678f, -427.45047f), 146) + span33[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(137.70113f, 10.371678f, -427.45047f), 146) { DisableNavmesh = true }; - num3++; - ref QuestStep reference69 = ref span82[num3]; + ref QuestStep reference69 = ref span33[14]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(116.208305f, 11.091853f, -475.35126f), 146) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep37 = questStep; - 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; + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span44 = CollectionsMarshal.AsSpan(list32); + span44[0] = 1923u; + span44[1] = 1924u; questStep37.KillEnemyDataIds = list32; reference69 = questStep; - num3++; - span82[num3] = new QuestStep(EInteractionType.Interact, 2002350u, new Vector3(115.983765f, 11.184814f, -482.7802f), 146); + span33[15] = new QuestStep(EInteractionType.Interact, 2002350u, new Vector3(115.983765f, 11.184814f, -482.7802f), 146); questSequence38.Steps = list3; reference61 = questSequence; - num++; - ref QuestSequence reference70 = ref span79[num]; + ref QuestSequence reference70 = ref span32[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence39 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -73316,17 +60588,14 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span95 = CollectionsMarshal.AsSpan(list33); - index = 0; - span95[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot20.Author = list33; QuestRoot questRoot21 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span96 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference71 = ref span96[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span46 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference71 = ref span46[0]; questSequence = new QuestSequence { Sequence = 0 @@ -73335,9 +60604,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span97 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference72 = ref span97[num3]; + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -73355,39 +60622,33 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition6 = skipAetheryteCondition; - num4 = 1; - List list34 = new List(num4); - CollectionsMarshal.SetCount(list34, num4); - Span span98 = CollectionsMarshal.AsSpan(list34); - num5 = 0; - span98[num5] = 131; + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + CollectionsMarshal.AsSpan(list34)[0] = 131; skipAetheryteCondition6.InTerritory = list34; skipConditions15.AetheryteShortcutIf = skipAetheryteCondition; questStep38.SkipConditions = skipConditions; reference72 = questStep; questSequence40.Steps = list3; reference71 = questSequence; - num++; - ref QuestSequence reference73 = ref span96[num]; + ref QuestSequence reference73 = ref span46[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence41 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; questSequence41.Steps = list3; reference73 = questSequence; - num++; - ref QuestSequence reference74 = ref span96[num]; + ref QuestSequence reference74 = ref span46[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -73396,9 +60657,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span100 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span100[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -73418,28 +60677,23 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span101 = CollectionsMarshal.AsSpan(list35); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list35)[0] = "liza"; questRoot22.Author = list35; QuestRoot questRoot23 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span102 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference75 = ref span102[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span47 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference75 = ref span47[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence43 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span103 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference76 = ref span103[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -73457,20 +60711,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition7 = skipAetheryteCondition; - num5 = 1; - List list36 = new List(num5); - CollectionsMarshal.SetCount(list36, num5); - Span span104 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span104[num4] = 131; + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = 131; skipAetheryteCondition7.InTerritory = list36; skipConditions16.AetheryteShortcutIf = skipAetheryteCondition; questStep39.SkipConditions = skipConditions; reference76 = questStep; questSequence43.Steps = list3; reference75 = questSequence; - num++; - ref QuestSequence reference77 = ref span102[num]; + ref QuestSequence reference77 = ref span47[1]; questSequence = new QuestSequence { Sequence = 1 @@ -73479,43 +60730,37 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span105 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span105[num3] = new QuestStep(EInteractionType.Interact, 1007829u, new Vector3(26.932129f, 13f, 44.418945f), 141) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007829u, new Vector3(26.932129f, 13f, 44.418945f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; questSequence44.Steps = list3; reference77 = questSequence; - num++; - ref QuestSequence reference78 = ref span102[num]; + ref QuestSequence reference78 = ref span47[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence45 = questSequence; - 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) + 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) { StopDistance = 0.5f, Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span106[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) + span48[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-775.4471f, 224.95006f, 29.04266f), 155) { StopDistance = 0.5f, Mount = false }; questSequence45.Steps = list3; reference78 = questSequence; - num++; - ref QuestSequence reference79 = ref span102[num]; + ref QuestSequence reference79 = ref span47[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -73524,9 +60769,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span107 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span107[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -73546,28 +60789,23 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span108 = CollectionsMarshal.AsSpan(list37); - index = 0; - span108[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list37)[0] = "plogon_enjoyer"; questRoot24.Author = list37; QuestRoot questRoot25 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span109 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference80 = ref span109[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span49 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference80 = ref span49[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence47 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -73580,8 +60818,7 @@ public static class AssemblyQuestLoader }; questSequence47.Steps = list3; reference80 = questSequence; - num++; - ref QuestSequence reference81 = ref span109[num]; + ref QuestSequence reference81 = ref span49[1]; questSequence = new QuestSequence { Sequence = 1 @@ -73590,9 +60827,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span111 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span111[num3] = new QuestStep(EInteractionType.Interact, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AethernetShortcut = new AethernetShortcut { @@ -73602,19 +60837,17 @@ public static class AssemblyQuestLoader }; questSequence48.Steps = list3; reference81 = questSequence; - num++; - ref QuestSequence reference82 = ref span109[num]; + ref QuestSequence reference82 = ref span49[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence49 = questSequence; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -73623,15 +60856,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - num2++; - span112[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002439u, new Vector3(-232.80695f, -28.793823f, 125.29175f), 141) + span50[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002439u, new Vector3(-232.80695f, -28.793823f, 125.29175f), 141) { ItemId = 2000951u }; questSequence49.Steps = list3; reference82 = questSequence; - num++; - ref QuestSequence reference83 = ref span109[num]; + ref QuestSequence reference83 = ref span49[3]; questSequence = new QuestSequence { Sequence = 3 @@ -73640,24 +60871,19 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span113 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span113[num3] = new QuestStep(EInteractionType.Interact, 2002440u, new Vector3(-232.80695f, -28.946411f, 125.29175f), 141); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 2002440u, new Vector3(-232.80695f, -28.946411f, 125.29175f), 141); questSequence50.Steps = list38; reference83 = questSequence; - num++; - ref QuestSequence reference84 = ref span109[num]; + ref QuestSequence reference84 = ref span49[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence51 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -73677,17 +60903,14 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span115 = CollectionsMarshal.AsSpan(list39); - index = 0; - span115[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list39)[0] = "plogon_enjoyer"; questRoot26.Author = list39; QuestRoot questRoot27 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span116 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference85 = ref span116[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span51 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference85 = ref span51[0]; questSequence = new QuestSequence { Sequence = 0 @@ -73696,9 +60919,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span117 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference86 = ref span117[num3]; + Span span52 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference86 = ref span52[0]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -73714,14 +60936,12 @@ public static class AssemblyQuestLoader SkipConditions skipConditions17 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition8 = skipAetheryteCondition; - 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; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span53 = CollectionsMarshal.AsSpan(list40); + span53[0] = 130; + span53[1] = 131; skipAetheryteCondition8.InTerritory = list40; skipConditions17.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -73730,23 +60950,19 @@ public static class AssemblyQuestLoader }; questStep40.SkipConditions = skipConditions; reference86 = questStep; - num3++; - span117[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131); + span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131); questSequence52.Steps = list3; reference85 = questSequence; - num++; - ref QuestSequence reference87 = ref span116[num]; + ref QuestSequence reference87 = ref span51[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence53 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span119 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference88 = ref span119[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002441u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137) { Fly = true, @@ -73755,18 +60971,15 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterItemUse }; QuestStep questStep41 = questStep; - num5 = 1; - List list41 = new List(num5); - CollectionsMarshal.SetCount(list41, num5); - Span span120 = CollectionsMarshal.AsSpan(list41); - num4 = 0; - span120[num4] = 1925u; + num3 = 1; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + CollectionsMarshal.AsSpan(list41)[0] = 1925u; questStep41.KillEnemyDataIds = list41; reference88 = questStep; questSequence53.Steps = list3; reference87 = questSequence; - num++; - ref QuestSequence reference89 = ref span116[num]; + ref QuestSequence reference89 = ref span51[2]; questSequence = new QuestSequence { Sequence = 2 @@ -73775,24 +60988,19 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span121 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span121[num3] = new QuestStep(EInteractionType.Interact, 2002442u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 2002442u, new Vector3(689.5093f, 9.750427f, 483.32947f), 137); questSequence54.Steps = list42; reference89 = questSequence; - num++; - ref QuestSequence reference90 = ref span116[num]; + ref QuestSequence reference90 = ref span51[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence55 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -73812,17 +61020,14 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span123 = CollectionsMarshal.AsSpan(list43); - index = 0; - span123[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; questRoot28.Author = list43; QuestRoot questRoot29 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span124 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference91 = ref span124[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span54 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference91 = ref span54[0]; questSequence = new QuestSequence { Sequence = 0 @@ -73831,9 +61036,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span125 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference92 = ref span125[num3]; + ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -73848,14 +61051,12 @@ public static class AssemblyQuestLoader SkipConditions skipConditions18 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition9 = skipAetheryteCondition; - 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; + num3 = 2; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + Span span55 = CollectionsMarshal.AsSpan(list44); + span55[0] = 130; + span55[1] = 131; skipAetheryteCondition9.InTerritory = list44; skipConditions18.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -73866,27 +61067,23 @@ public static class AssemblyQuestLoader reference92 = questStep; questSequence56.Steps = list3; reference91 = questSequence; - num++; - ref QuestSequence reference93 = ref span124[num]; + ref QuestSequence reference93 = ref span54[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence57 = questSequence; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence57.Steps = list3; reference93 = questSequence; - num++; - ref QuestSequence reference94 = ref span124[num]; + ref QuestSequence reference94 = ref span54[2]; questSequence = new QuestSequence { Sequence = 2 @@ -73895,49 +61092,41 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span128 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span128[num3] = new QuestStep(EInteractionType.UseItem, 2002443u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) + Span span56 = CollectionsMarshal.AsSpan(list3); + span56[0] = new QuestStep(EInteractionType.UseItem, 2002443u, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, ItemId = 2000818u }; - num3++; - ref QuestStep reference95 = ref span128[num3]; + ref QuestStep reference95 = ref span56[1]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(24.215942f, 25.65039f, 115.983765f), 153) { DelaySecondsAtStart = 0f, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; QuestStep questStep43 = questStep; - num5 = 1; - List list45 = new List(num5); - CollectionsMarshal.SetCount(list45, num5); - Span span129 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span129[num4] = 1926u; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = 1926u; questStep43.KillEnemyDataIds = list45; reference95 = questStep; questSequence58.Steps = list3; reference94 = questSequence; - num++; - ref QuestSequence reference96 = ref span124[num]; + ref QuestSequence reference96 = ref span54[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence59 = questSequence; - 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); + 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); questSequence59.Steps = list46; reference96 = questSequence; - num++; - ref QuestSequence reference97 = ref span124[num]; + ref QuestSequence reference97 = ref span54[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -73946,9 +61135,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span131 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span131[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -73968,28 +61155,23 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span132 = CollectionsMarshal.AsSpan(list47); - index = 0; - span132[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list47)[0] = "plogon_enjoyer"; questRoot30.Author = list47; QuestRoot questRoot31 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span133 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference98 = ref span133[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span57 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference98 = ref span57[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence61 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span134 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference99 = ref span134[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -74004,14 +61186,12 @@ public static class AssemblyQuestLoader SkipConditions skipConditions19 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition10 = skipAetheryteCondition; - 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; + num3 = 2; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + Span span58 = CollectionsMarshal.AsSpan(list48); + span58[0] = 130; + span58[1] = 131; skipAetheryteCondition10.InTerritory = list48; skipConditions19.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -74022,8 +61202,7 @@ public static class AssemblyQuestLoader reference99 = questStep; questSequence61.Steps = list3; reference98 = questSequence; - num++; - ref QuestSequence reference100 = ref span133[num]; + ref QuestSequence reference100 = ref span57[1]; questSequence = new QuestSequence { Sequence = 1 @@ -74032,49 +61211,41 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span136 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span136[num3] = new QuestStep(EInteractionType.UseItem, 2002445u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) + Span span59 = CollectionsMarshal.AsSpan(list3); + span59[0] = new QuestStep(EInteractionType.UseItem, 2002445u, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, ItemId = 2000820u }; - num3++; - ref QuestStep reference101 = ref span136[num3]; + ref QuestStep reference101 = ref span59[1]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(3.1585693f, 20.58435f, -13.16864f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; QuestStep questStep45 = questStep; - num5 = 1; - List list49 = new List(num5); - CollectionsMarshal.SetCount(list49, num5); - Span span137 = CollectionsMarshal.AsSpan(list49); - num4 = 0; - span137[num4] = 1927u; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = 1927u; questStep45.KillEnemyDataIds = list49; questStep.CombatDelaySecondsAtStart = 0f; reference101 = questStep; questSequence62.Steps = list3; reference100 = questSequence; - num++; - ref QuestSequence reference102 = ref span133[num]; + ref QuestSequence reference102 = ref span57[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence63 = questSequence; - 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; + 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; reference102 = questSequence; - num++; - ref QuestSequence reference103 = ref span133[num]; + ref QuestSequence reference103 = ref span57[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -74083,9 +61254,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span139 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span139[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -74103,30 +61272,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot32 = questRoot; num = 1; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span140 = CollectionsMarshal.AsSpan(list51); - index = 0; - span140[index] = "plogon_enjoyer"; - questRoot32.Author = list51; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + CollectionsMarshal.AsSpan(list50)[0] = "plogon_enjoyer"; + questRoot32.Author = list50; QuestRoot questRoot33 = questRoot; - index = 8; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span141 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference104 = ref span141[num]; + num = 8; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span60 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference104 = ref span60[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence65 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span142 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference105 = ref span142[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -74141,15 +61305,13 @@ public static class AssemblyQuestLoader SkipConditions skipConditions20 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition11 = skipAetheryteCondition; - 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; + 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; skipConditions20.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { @@ -74159,8 +61321,7 @@ public static class AssemblyQuestLoader reference105 = questStep; questSequence65.Steps = list3; reference104 = questSequence; - num++; - ref QuestSequence reference106 = ref span141[num]; + ref QuestSequence reference106 = ref span60[1]; questSequence = new QuestSequence { Sequence = 1 @@ -74169,55 +61330,46 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span144 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference107 = ref span144[num3]; + ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; QuestStep questStep47 = questStep; - num5 = 1; - List list53 = new List(num5); - CollectionsMarshal.SetCount(list53, num5); - Span span145 = CollectionsMarshal.AsSpan(list53); - num4 = 0; - span145[num4] = new DialogueChoice + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBMNK451_01065_Q1_000_000") }; - questStep47.DialogueChoices = list53; + questStep47.DialogueChoices = list52; reference107 = questStep; questSequence66.Steps = list3; reference106 = questSequence; - num++; - ref QuestSequence reference108 = ref span141[num]; + ref QuestSequence reference108 = ref span60[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence67 = questSequence; - 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) + 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) { Mount = true }; - num2++; - span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.911945f, 23.511465f, -142.86761f), 146) + span62[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.911945f, 23.511465f, -142.86761f), 146) { Fly = true, Land = true }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -74228,28 +61380,23 @@ public static class AssemblyQuestLoader } } }; - num2++; - span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.885742f, 17.930914f, -619.7939f), 146) + span62[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.885742f, 17.930914f, -619.7939f), 146) { Fly = true }; - num2++; - span146[num2] = new QuestStep(EInteractionType.Interact, 2002548u, new Vector3(17.837708f, 20.523315f, -629.1448f), 146) + span62[5] = new QuestStep(EInteractionType.Interact, 2002548u, new Vector3(17.837708f, 20.523315f, -629.1448f), 146) { Mount = true }; - num2++; - span146[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(214.89189f, 29.38419f, 59.154907f), 147) + span62[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(214.89189f, 29.38419f, 59.154907f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - num2++; - span146[num2] = new QuestStep(EInteractionType.Interact, 2002448u, new Vector3(213.70251f, 30.19751f, 61.020752f), 147); + span62[7] = new QuestStep(EInteractionType.Interact, 2002448u, new Vector3(213.70251f, 30.19751f, 61.020752f), 147); questSequence67.Steps = list3; reference108 = questSequence; - num++; - ref QuestSequence reference109 = ref span141[num]; + ref QuestSequence reference109 = ref span60[3]; questSequence = new QuestSequence { Sequence = 3 @@ -74258,28 +61405,23 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span147 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span147[num3] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007875u, new Vector3(-221.48468f, 26.16912f, -343.9536f), 146) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence68.Steps = list3; reference109 = questSequence; - num++; - ref QuestSequence reference110 = ref span141[num]; + ref QuestSequence reference110 = ref span60[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence69 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span148 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference111 = ref span148[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 1007877u, new Vector3(-74.08258f, 2.6069984f, 716.39575f), 135) { Fly = true, @@ -74287,57 +61429,47 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep48 = questStep; - 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; + 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; questStep.CombatDelaySecondsAtStart = 0f; reference111 = questStep; questSequence69.Steps = list3; reference110 = questSequence; - num++; - ref QuestSequence reference112 = ref span141[num]; + ref QuestSequence reference112 = ref span60[5]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence70 = questSequence; num2 = 1; - 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; + 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; reference112 = questSequence; - num++; - ref QuestSequence reference113 = ref span141[num]; + ref QuestSequence reference113 = ref span60[6]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence71 = questSequence; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence71.Steps = list3; reference113 = questSequence; - num++; - ref QuestSequence reference114 = ref span141[num]; + ref QuestSequence reference114 = ref span60[7]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -74346,9 +61478,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span152 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span152[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -74366,30 +61496,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot34 = questRoot; num = 1; - List list56 = new List(num); - CollectionsMarshal.SetCount(list56, num); - Span span153 = CollectionsMarshal.AsSpan(list56); - index = 0; - span153[index] = "plogon_enjoyer"; - questRoot34.Author = list56; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + CollectionsMarshal.AsSpan(list54)[0] = "plogon_enjoyer"; + questRoot34.Author = list54; QuestRoot questRoot35 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span154 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference115 = ref span154[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span64 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference115 = ref span64[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence73 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span155 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference116 = ref span155[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -74404,15 +61529,13 @@ public static class AssemblyQuestLoader SkipConditions skipConditions21 = skipConditions; skipAetheryteCondition = new SkipAetheryteCondition(); SkipAetheryteCondition skipAetheryteCondition12 = skipAetheryteCondition; - 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; + 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; skipConditions21.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition { @@ -74422,8 +61545,7 @@ public static class AssemblyQuestLoader reference116 = questStep; questSequence73.Steps = list3; reference115 = questSequence; - num++; - ref QuestSequence reference117 = ref span154[num]; + ref QuestSequence reference117 = ref span64[1]; questSequence = new QuestSequence { Sequence = 1 @@ -74432,34 +61554,29 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span157 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span157[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.50675f, -4.574165f, -543.2282f), 156) + Span span66 = CollectionsMarshal.AsSpan(list3); + span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(107.50675f, -4.574165f, -543.2282f), 156) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num3++; - span157[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(104.612144f, -4.931232f, -533.5191f), 156) + span66[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(104.612144f, -4.931232f, -533.5191f), 156) { Mount = false }; questSequence74.Steps = list3; reference117 = questSequence; - num++; - ref QuestSequence reference118 = ref span154[num]; + ref QuestSequence reference118 = ref span64[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence75 = questSequence; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2026) @@ -74472,19 +61589,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot36 = questRoot; num = 1; - List list58 = new List(num); - CollectionsMarshal.SetCount(list58, num); - Span span159 = CollectionsMarshal.AsSpan(list58); - index = 0; - span159[index] = "Cacahuetes"; - questRoot36.Author = list58; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; + questRoot36.Author = list56; QuestRoot questRoot37 = questRoot; - index = 7; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span160 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference119 = ref span160[num]; + num = 7; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span67 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference119 = ref span67[0]; questSequence = new QuestSequence { Sequence = 0 @@ -74493,9 +61607,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span161 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference120 = ref span161[num3]; + ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -74513,31 +61625,27 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition13 = skipAetheryteCondition; - num4 = 1; - List list59 = new List(num4); - CollectionsMarshal.SetCount(list59, num4); - Span span162 = CollectionsMarshal.AsSpan(list59); - num5 = 0; - span162[num5] = 133; - skipAetheryteCondition13.InTerritory = list59; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = 133; + skipAetheryteCondition13.InTerritory = list57; skipConditions22.AetheryteShortcutIf = skipAetheryteCondition; questStep50.SkipConditions = skipConditions; reference120 = questStep; questSequence76.Steps = list3; reference119 = questSequence; - num++; - ref QuestSequence reference121 = ref span160[num]; + ref QuestSequence reference121 = ref span67[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence77 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -74549,12 +61657,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span163[num2] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span68[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence77.Steps = list3; reference121 = questSequence; - num++; - ref QuestSequence reference122 = ref span160[num]; + ref QuestSequence reference122 = ref span67[2]; questSequence = new QuestSequence { Sequence = 2 @@ -74563,32 +61669,26 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span164 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span164[num3] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155); questSequence78.Steps = list3; reference122 = questSequence; - num++; - ref QuestSequence reference123 = ref span160[num]; + ref QuestSequence reference123 = ref span67[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence79 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; questSequence79.Steps = list3; reference123 = questSequence; - num++; - ref QuestSequence reference124 = ref span160[num]; + ref QuestSequence reference124 = ref span67[4]; questSequence = new QuestSequence { Sequence = 4 @@ -74597,28 +61697,24 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span166 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span166[num3] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007564u, new Vector3(272.23608f, 222.26244f, 339.1317f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; questSequence80.Steps = list3; reference124 = questSequence; - num++; - ref QuestSequence reference125 = ref span160[num]; + ref QuestSequence reference125 = ref span67[5]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence81 = questSequence; - num3 = 2; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span167 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference126 = ref span167[num2]; + num2 = 2; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span69 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference126 = ref span69[0]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(522.39246f, 234.74356f, 322.10266f), 155) { StopDistance = 0.5f, @@ -74626,38 +61722,28 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep51 = questStep; - num5 = 1; - List list60 = new List(num5); - CollectionsMarshal.SetCount(list60, num5); - Span span168 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span168[num4] = 1928u; - questStep51.KillEnemyDataIds = list60; + num3 = 1; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + CollectionsMarshal.AsSpan(list58)[0] = 1928u; + questStep51.KillEnemyDataIds = list58; QuestStep questStep52 = questStep; - 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; + 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; questStep52.CompletionQuestVariablesFlags = list4; reference126 = questStep; - num2++; - span167[num2] = new QuestStep(EInteractionType.Interact, 2002420u, new Vector3(524.6509f, 234.72949f, 324.08643f), 155); + span69[1] = new QuestStep(EInteractionType.Interact, 2002420u, new Vector3(524.6509f, 234.72949f, 324.08643f), 155); questSequence81.Steps = list3; reference125 = questSequence; - num++; - ref QuestSequence reference127 = ref span160[num]; + ref QuestSequence reference127 = ref span67[6]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -74666,9 +61752,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span170 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span170[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span71 = CollectionsMarshal.AsSpan(list3); + span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, SkipConditions = new SkipConditions @@ -74679,8 +61764,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span170[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1068) }; @@ -74692,30 +61776,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot38 = questRoot; num = 1; - List list61 = new List(num); - CollectionsMarshal.SetCount(list61, num); - Span span171 = CollectionsMarshal.AsSpan(list61); - index = 0; - span171[index] = "Cacahuetes"; - questRoot38.Author = list61; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; + questRoot38.Author = list59; QuestRoot questRoot39 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span172 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference128 = ref span172[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span72 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference128 = ref span72[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence83 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -74727,17 +61807,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span173[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 155) + span73[1] = new QuestStep(EInteractionType.EquipItem, null, null, 155) { ItemId = 4545u }; - num2++; - span173[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span73[2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence83.Steps = list3; reference128 = questSequence; - num++; - ref QuestSequence reference129 = ref span172[num]; + ref QuestSequence reference129 = ref span72[1]; questSequence = new QuestSequence { Sequence = 1 @@ -74746,9 +61823,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span174 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span174[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) + Span span74 = CollectionsMarshal.AsSpan(list3); + span74[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(267.5908f, 236.15701f, -328.8527f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, JumpDestination = new JumpDestination @@ -74763,8 +61839,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span174[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) + span74[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) { JumpDestination = new JumpDestination { @@ -74778,57 +61853,49 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference130 = ref span174[num3]; + ref QuestStep reference130 = ref span74[2]; questStep = new QuestStep(EInteractionType.Combat, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep53 = questStep; - num5 = 1; - List list62 = new List(num5); - CollectionsMarshal.SetCount(list62, num5); - Span span175 = CollectionsMarshal.AsSpan(list62); - num4 = 0; - span175[num4] = 58u; - questStep53.KillEnemyDataIds = list62; + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = 58u; + questStep53.KillEnemyDataIds = list60; reference130 = questStep; questSequence84.Steps = list3; reference129 = questSequence; - num++; - ref QuestSequence reference131 = ref span172[num]; + ref QuestSequence reference131 = ref span72[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence85 = questSequence; - 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) + 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) { JumpDestination = new JumpDestination { Position = new Vector3(264.47205f, 237.91518f, -336.72607f) } }; - num2++; - span176[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(266.22034f, 237.89253f, -341.475f), 155) + span75[1] = 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) } }; - num2++; - span176[num2] = new QuestStep(EInteractionType.Interact, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155); + span75[2] = new QuestStep(EInteractionType.Interact, 1007856u, new Vector3(261.76843f, 240.06624f, -346.48663f), 155); questSequence85.Steps = list3; reference131 = questSequence; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span72[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -74837,9 +61904,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span177 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span177[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span76 = CollectionsMarshal.AsSpan(list3); + span76[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -74851,8 +61917,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span177[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span76[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1069) }; @@ -74864,30 +61929,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list63 = new List(num); - CollectionsMarshal.SetCount(list63, num); - Span span178 = CollectionsMarshal.AsSpan(list63); - index = 0; - span178[index] = "Cacahuetes"; - questRoot40.Author = list63; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + CollectionsMarshal.AsSpan(list61)[0] = "Cacahuetes"; + questRoot40.Author = list61; QuestRoot questRoot41 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span179 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference133 = ref span179[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span77 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference133 = ref span77[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence87 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -74899,12 +61960,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span180[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span78[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence87.Steps = list3; reference133 = questSequence; - num++; - ref QuestSequence reference134 = ref span179[num]; + ref QuestSequence reference134 = ref span77[1]; questSequence = new QuestSequence { Sequence = 1 @@ -74913,49 +61972,41 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span181 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span181[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.85364f, 247.89886f, -269.40628f), 155) + Span span79 = CollectionsMarshal.AsSpan(list3); + span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.85364f, 247.89886f, -269.40628f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num3++; - ref QuestStep reference135 = ref span181[num3]; + ref QuestStep reference135 = ref span79[1]; questStep = new QuestStep(EInteractionType.Combat, 1007857u, new Vector3(485.92358f, 248.1806f, -268.66565f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep54 = questStep; - 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; + 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; reference135 = questStep; questSequence88.Steps = list3; reference134 = questSequence; - num++; - ref QuestSequence reference136 = ref span179[num]; + ref QuestSequence reference136 = ref span77[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence89 = questSequence; - 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); + 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); questSequence89.Steps = list3; reference136 = questSequence; - num++; - ref QuestSequence reference137 = ref span179[num]; + ref QuestSequence reference137 = ref span77[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -74964,9 +62015,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span184 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span184[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span81 = CollectionsMarshal.AsSpan(list3); + span81[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -74978,8 +62028,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span184[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1070) }; @@ -74991,30 +62040,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list65 = new List(num); - CollectionsMarshal.SetCount(list65, num); - Span span185 = CollectionsMarshal.AsSpan(list65); - index = 0; - span185[index] = "Cacahuetes"; - questRoot42.Author = list65; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + CollectionsMarshal.AsSpan(list63)[0] = "Cacahuetes"; + questRoot42.Author = list63; QuestRoot questRoot43 = questRoot; - index = 12; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span186 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference138 = ref span186[num]; + num = 12; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span82 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference138 = ref span82[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence91 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -75026,12 +62071,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span187[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span83[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence91.Steps = list3; reference138 = questSequence; - num++; - ref QuestSequence reference139 = ref span186[num]; + ref QuestSequence reference139 = ref span82[1]; questSequence = new QuestSequence { Sequence = 1 @@ -75040,27 +62083,23 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span188 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span188[num3] = new QuestStep(EInteractionType.Interact, 2002423u, new Vector3(-318.80682f, 304.64624f, 243.33557f), 155) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002423u, new Vector3(-318.80682f, 304.64624f, 243.33557f), 155) { Fly = true }; questSequence92.Steps = list3; reference139 = questSequence; - num++; - ref QuestSequence reference140 = ref span186[num]; + ref QuestSequence reference140 = ref span82[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence93 = questSequence; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -75071,12 +62110,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span189[num2] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span84[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence93.Steps = list3; reference140 = questSequence; - num++; - ref QuestSequence reference141 = ref span186[num]; + ref QuestSequence reference141 = ref span82[3]; questSequence = new QuestSequence { Sequence = 3 @@ -75085,9 +62122,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span190 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference142 = ref span190[num3]; + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 1007858u, new Vector3(591.2107f, 331.39114f, -447.776f), 155) { Fly = true, @@ -75095,33 +62130,27 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep55 = questStep; - num5 = 1; - List list66 = new List(num5); - CollectionsMarshal.SetCount(list66, num5); - Span span191 = CollectionsMarshal.AsSpan(list66); - num4 = 0; - span191[num4] = 1932u; - questStep55.KillEnemyDataIds = list66; + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = 1932u; + questStep55.KillEnemyDataIds = list64; reference142 = questStep; questSequence94.Steps = list3; reference141 = questSequence; - num++; - ref QuestSequence reference143 = ref span186[num]; + ref QuestSequence reference143 = ref span82[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence95 = questSequence; - 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); + 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); questSequence95.Steps = list3; reference143 = questSequence; - num++; - ref QuestSequence reference144 = ref span186[num]; + ref QuestSequence reference144 = ref span82[5]; questSequence = new QuestSequence { Sequence = 5 @@ -75130,41 +62159,33 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span193 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference145 = ref span193[num3]; + ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 1007859u, new Vector3(654.53577f, 305.091f, -354.11615f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep56 = questStep; - num4 = 1; - List list67 = new List(num4); - CollectionsMarshal.SetCount(list67, num4); - Span span194 = CollectionsMarshal.AsSpan(list67); - num5 = 0; - span194[num5] = 1933u; - questStep56.KillEnemyDataIds = list67; + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = 1933u; + questStep56.KillEnemyDataIds = list65; reference145 = questStep; questSequence96.Steps = list3; reference144 = questSequence; - num++; - ref QuestSequence reference146 = ref span186[num]; + ref QuestSequence reference146 = ref span82[6]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence97 = questSequence; - 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); + 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); questSequence97.Steps = list3; reference146 = questSequence; - num++; - ref QuestSequence reference147 = ref span186[num]; + ref QuestSequence reference147 = ref span82[7]; questSequence = new QuestSequence { Sequence = 7 @@ -75173,41 +62194,33 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span196 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference148 = ref span196[num3]; + ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 1007860u, new Vector3(622.06445f, 287.86145f, -317.89124f), 155) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep57 = questStep; - num5 = 1; - List list68 = new List(num5); - CollectionsMarshal.SetCount(list68, num5); - Span span197 = CollectionsMarshal.AsSpan(list68); - num4 = 0; - span197[num4] = 1934u; - questStep57.KillEnemyDataIds = list68; + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = 1934u; + questStep57.KillEnemyDataIds = list66; reference148 = questStep; questSequence98.Steps = list3; reference147 = questSequence; - num++; - ref QuestSequence reference149 = ref span186[num]; + ref QuestSequence reference149 = ref span82[8]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence99 = questSequence; - 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); + 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); questSequence99.Steps = list3; reference149 = questSequence; - num++; - ref QuestSequence reference150 = ref span186[num]; + ref QuestSequence reference150 = ref span82[9]; questSequence = new QuestSequence { Sequence = 9 @@ -75216,9 +62229,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span199 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span199[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span85 = CollectionsMarshal.AsSpan(list3); + span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -75230,47 +62242,40 @@ public static class AssemblyQuestLoader } } }; - num3++; - span199[num3] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span85[1] = new QuestStep(EInteractionType.Interact, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence100.Steps = list3; reference150 = questSequence; - num++; - ref QuestSequence reference151 = ref span186[num]; + ref QuestSequence reference151 = ref span82[10]; questSequence = new QuestSequence { Sequence = 10 }; QuestSequence questSequence101 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - ref QuestStep reference152 = ref span200[num2]; + ref QuestStep reference152 = ref span86[1]; questStep = new QuestStep(EInteractionType.Combat, 2002424u, new Vector3(67.91785f, 374.77686f, -672.2057f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep58 = questStep; - num4 = 1; - List list69 = new List(num4); - CollectionsMarshal.SetCount(list69, num4); - Span span201 = CollectionsMarshal.AsSpan(list69); - num5 = 0; - span201[num5] = 1929u; - questStep58.KillEnemyDataIds = list69; + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = 1929u; + questStep58.KillEnemyDataIds = list67; reference152 = questStep; questSequence101.Steps = list3; reference151 = questSequence; - num++; - ref QuestSequence reference153 = ref span186[num]; + ref QuestSequence reference153 = ref span82[11]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -75279,9 +62284,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span202 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span202[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span87 = CollectionsMarshal.AsSpan(list3); + span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -75293,8 +62297,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span202[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1071) }; @@ -75306,30 +62309,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list70 = new List(num); - CollectionsMarshal.SetCount(list70, num); - Span span203 = CollectionsMarshal.AsSpan(list70); - index = 0; - span203[index] = "Cacahuetes"; - questRoot44.Author = list70; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; + questRoot44.Author = list68; QuestRoot questRoot45 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span204 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference154 = ref span204[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span88 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference154 = ref span88[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence103 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -75341,12 +62340,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span205[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span89[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence103.Steps = list3; reference154 = questSequence; - num++; - ref QuestSequence reference155 = ref span204[num]; + ref QuestSequence reference155 = ref span88[1]; questSequence = new QuestSequence { Sequence = 1 @@ -75355,9 +62352,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span206 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference156 = ref span206[num3]; + ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002425u, new Vector3(96.69641f, 356.3744f, -257.2519f), 155) { Fly = true, @@ -75365,29 +62360,25 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep59 = questStep; - num5 = 1; - List list71 = new List(num5); - CollectionsMarshal.SetCount(list71, num5); - Span span207 = CollectionsMarshal.AsSpan(list71); - num4 = 0; - span207[num4] = 1930u; - questStep59.KillEnemyDataIds = list71; + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = 1930u; + questStep59.KillEnemyDataIds = list69; reference156 = questStep; questSequence104.Steps = list3; reference155 = questSequence; - num++; - ref QuestSequence reference157 = ref span204[num]; + ref QuestSequence reference157 = ref span88[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence105 = questSequence; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -75398,8 +62389,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span208[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1072) }; @@ -75411,19 +62401,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list72 = new List(num); - CollectionsMarshal.SetCount(list72, num); - Span span209 = CollectionsMarshal.AsSpan(list72); - index = 0; - span209[index] = "Cacahuetes"; - questRoot46.Author = list72; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + CollectionsMarshal.AsSpan(list70)[0] = "Cacahuetes"; + questRoot46.Author = list70; QuestRoot questRoot47 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span210 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference158 = ref span210[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span91 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference158 = ref span91[0]; questSequence = new QuestSequence { Sequence = 0 @@ -75432,9 +62419,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span211 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span211[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span92 = CollectionsMarshal.AsSpan(list3); + span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -75446,36 +62432,31 @@ public static class AssemblyQuestLoader } } }; - num3++; - span211[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span92[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); questSequence106.Steps = list3; reference158 = questSequence; - num++; - ref QuestSequence reference159 = ref span210[num]; + ref QuestSequence reference159 = ref span91[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence107 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span212[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(266.7326f, 362.4986f, -586.0155f), 155) + span93[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(266.7326f, 362.4986f, -586.0155f), 155) { Mount = false }; questSequence107.Steps = list3; reference159 = questSequence; - num++; - ref QuestSequence reference160 = ref span210[num]; + ref QuestSequence reference160 = ref span91[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -75484,15 +62465,13 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span213 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span213[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span94 = CollectionsMarshal.AsSpan(list3); + span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num3++; - span213[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1689) }; @@ -75504,30 +62483,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list73 = new List(num); - CollectionsMarshal.SetCount(list73, num); - Span span214 = CollectionsMarshal.AsSpan(list73); - index = 0; - span214[index] = "pot0to"; - questRoot48.Author = list73; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + CollectionsMarshal.AsSpan(list71)[0] = "pot0to"; + questRoot48.Author = list71; QuestRoot questRoot49 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span215 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference161 = ref span215[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span95 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference161 = ref span95[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence109 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span216 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference162 = ref span216[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -75545,20 +62519,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition14 = skipAetheryteCondition; - num4 = 1; - List list74 = new List(num4); - CollectionsMarshal.SetCount(list74, num4); - Span span217 = CollectionsMarshal.AsSpan(list74); - num5 = 0; - span217[num5] = 130; - skipAetheryteCondition14.InTerritory = list74; + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = 130; + skipAetheryteCondition14.InTerritory = list72; skipConditions23.AetheryteShortcutIf = skipAetheryteCondition; questStep60.SkipConditions = skipConditions; reference162 = questStep; questSequence109.Steps = list3; reference161 = questSequence; - num++; - ref QuestSequence reference163 = ref span215[num]; + ref QuestSequence reference163 = ref span95[1]; questSequence = new QuestSequence { Sequence = 1 @@ -75567,9 +62538,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span218 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference164 = ref span218[num3]; + ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002533u, new Vector3(-72.67877f, -32.059265f, -46.830017f), 145) { Fly = true, @@ -75577,36 +62546,30 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep61 = questStep; - num5 = 1; - List list75 = new List(num5); - CollectionsMarshal.SetCount(list75, num5); - Span span219 = CollectionsMarshal.AsSpan(list75); - num4 = 0; - span219[num4] = 305u; - questStep61.KillEnemyDataIds = list75; + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = 305u; + questStep61.KillEnemyDataIds = list73; reference164 = questStep; questSequence110.Steps = list3; reference163 = questSequence; - num++; - ref QuestSequence reference165 = ref span215[num]; + ref QuestSequence reference165 = ref span95[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence111 = questSequence; - 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) + 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) { ItemId = 2000954u }; questSequence111.Steps = list3; reference165 = questSequence; - num++; - ref QuestSequence reference166 = ref span215[num]; + ref QuestSequence reference166 = ref span95[3]; questSequence = new QuestSequence { Sequence = 3 @@ -75615,9 +62578,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span221 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span221[num3] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -75628,19 +62589,16 @@ public static class AssemblyQuestLoader }; questSequence112.Steps = list3; reference166 = questSequence; - num++; - ref QuestSequence reference167 = ref span215[num]; + ref QuestSequence reference167 = ref span95[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence113 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span222 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference168 = ref span222[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AethernetShortcut = new AethernetShortcut @@ -75657,13 +62615,11 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition15 = skipAetheryteCondition; - num4 = 1; - List list76 = new List(num4); - CollectionsMarshal.SetCount(list76, num4); - Span span223 = CollectionsMarshal.AsSpan(list76); - num5 = 0; - span223[num5] = 130; - skipAetheryteCondition15.InTerritory = list76; + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + CollectionsMarshal.AsSpan(list74)[0] = 130; + skipAetheryteCondition15.InTerritory = list74; skipConditions24.AetheryteShortcutIf = skipAetheryteCondition; questStep62.SkipConditions = skipConditions; reference168 = questStep; @@ -75675,19 +62631,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot50 = questRoot; num = 1; - List list77 = new List(num); - CollectionsMarshal.SetCount(list77, num); - Span span224 = CollectionsMarshal.AsSpan(list77); - index = 0; - span224[index] = "pot0to"; - questRoot50.Author = list77; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + CollectionsMarshal.AsSpan(list75)[0] = "pot0to"; + questRoot50.Author = list75; QuestRoot questRoot51 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span225 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference169 = ref span225[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span96 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference169 = ref span96[0]; questSequence = new QuestSequence { Sequence = 0 @@ -75696,9 +62649,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span226 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference170 = ref span226[num3]; + Span span97 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference170 = ref span97[0]; questStep = new QuestStep(EInteractionType.EquipItem, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -75717,35 +62669,29 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition16 = skipAetheryteCondition; - 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; + 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; skipConditions25.AetheryteShortcutIf = skipAetheryteCondition; questStep63.SkipConditions = skipConditions; reference170 = questStep; - num3++; - span226[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131); + span97[1] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131); questSequence114.Steps = list3; reference169 = questSequence; - num++; - ref QuestSequence reference171 = ref span225[num]; + ref QuestSequence reference171 = ref span96[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence115 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span228 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference172 = ref span228[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002534u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) { Fly = true, @@ -75753,18 +62699,15 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep64 = questStep; - num4 = 1; - List list79 = new List(num4); - CollectionsMarshal.SetCount(list79, num4); - Span span229 = CollectionsMarshal.AsSpan(list79); - num5 = 0; - span229[num5] = 21u; - questStep64.KillEnemyDataIds = list79; + num3 = 1; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + CollectionsMarshal.AsSpan(list77)[0] = 21u; + questStep64.KillEnemyDataIds = list77; reference172 = questStep; questSequence115.Steps = list3; reference171 = questSequence; - num++; - ref QuestSequence reference173 = ref span225[num]; + ref QuestSequence reference173 = ref span96[2]; questSequence = new QuestSequence { Sequence = 2 @@ -75773,27 +62716,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span230 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span230[num3] = new QuestStep(EInteractionType.UseItem, 2002430u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002430u, new Vector3(-7.9194946f, 13.687317f, 866.54443f), 146) { ItemId = 2000809u }; questSequence116.Steps = list3; reference173 = questSequence; - num++; - ref QuestSequence reference174 = ref span225[num]; + ref QuestSequence reference174 = ref span96[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence117 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -75804,8 +62742,7 @@ public static class AssemblyQuestLoader }; questSequence117.Steps = list3; reference174 = questSequence; - num++; - ref QuestSequence reference175 = ref span225[num]; + ref QuestSequence reference175 = ref span96[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -75814,9 +62751,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span232 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference176 = ref span232[num3]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -75834,13 +62769,11 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition17 = skipAetheryteCondition; - num5 = 1; - List list80 = new List(num5); - CollectionsMarshal.SetCount(list80, num5); - Span span233 = CollectionsMarshal.AsSpan(list80); - num4 = 0; - span233[num4] = 130; - skipAetheryteCondition17.InTerritory = list80; + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = 130; + skipAetheryteCondition17.InTerritory = list78; skipConditions26.AetheryteShortcutIf = skipAetheryteCondition; questStep65.SkipConditions = skipConditions; reference176 = questStep; @@ -75852,30 +62785,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot52 = questRoot; num = 1; - List list81 = new List(num); - CollectionsMarshal.SetCount(list81, num); - Span span234 = CollectionsMarshal.AsSpan(list81); - index = 0; - span234[index] = "pot0to"; - questRoot52.Author = list81; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + CollectionsMarshal.AsSpan(list79)[0] = "pot0to"; + questRoot52.Author = list79; QuestRoot questRoot53 = questRoot; - index = 12; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span235 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference177 = ref span235[num]; + num = 12; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span99 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference177 = ref span99[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence119 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span236 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference178 = ref span236[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -75893,22 +62821,19 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition18 = skipAetheryteCondition; - 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; + 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; skipConditions27.AetheryteShortcutIf = skipAetheryteCondition; questStep66.SkipConditions = skipConditions; reference178 = questStep; questSequence119.Steps = list3; reference177 = questSequence; - num++; - ref QuestSequence reference179 = ref span235[num]; + ref QuestSequence reference179 = ref span99[1]; questSequence = new QuestSequence { Sequence = 1 @@ -75917,36 +62842,30 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span238 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span238[num3] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; questSequence120.Steps = list3; reference179 = questSequence; - num++; - ref QuestSequence reference180 = ref span235[num]; + ref QuestSequence reference180 = ref span99[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence121 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; questSequence121.Steps = list3; reference180 = questSequence; - num++; - ref QuestSequence reference181 = ref span235[num]; + ref QuestSequence reference181 = ref span99[3]; questSequence = new QuestSequence { Sequence = 3 @@ -75955,44 +62874,36 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span240 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference182 = ref span240[num3]; + ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002535u, new Vector3(-178.39331f, 15.42688f, -244.64789f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep67 = questStep; - num5 = 1; - List list83 = new List(num5); - CollectionsMarshal.SetCount(list83, num5); - Span span241 = CollectionsMarshal.AsSpan(list83); - num4 = 0; - span241[num4] = 182u; - questStep67.KillEnemyDataIds = list83; + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = 182u; + questStep67.KillEnemyDataIds = list81; reference182 = questStep; questSequence122.Steps = list3; reference181 = questSequence; - num++; - ref QuestSequence reference183 = ref span235[num]; + ref QuestSequence reference183 = ref span99[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence123 = questSequence; - 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) + 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) { ItemId = 2000810u }; questSequence123.Steps = list3; reference183 = questSequence; - num++; - ref QuestSequence reference184 = ref span235[num]; + ref QuestSequence reference184 = ref span99[5]; questSequence = new QuestSequence { Sequence = 5 @@ -76001,31 +62912,25 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span243 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span243[num3] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007864u, new Vector3(-167.40674f, 14.513778f, -251.3009f), 140); questSequence124.Steps = list3; reference184 = questSequence; - num++; - ref QuestSequence reference185 = ref span235[num]; + ref QuestSequence reference185 = ref span99[6]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence125 = questSequence; - 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) + 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) { Fly = true }; questSequence125.Steps = list3; reference185 = questSequence; - num++; - ref QuestSequence reference186 = ref span235[num]; + ref QuestSequence reference186 = ref span99[7]; questSequence = new QuestSequence { Sequence = 7 @@ -76034,44 +62939,36 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span245 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference187 = ref span245[num3]; + ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002536u, new Vector3(-211.16962f, 15.396301f, -345.41852f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep68 = questStep; - num4 = 1; - List list84 = new List(num4); - CollectionsMarshal.SetCount(list84, num4); - Span span246 = CollectionsMarshal.AsSpan(list84); - num5 = 0; - span246[num5] = 182u; - questStep68.KillEnemyDataIds = list84; + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = 182u; + questStep68.KillEnemyDataIds = list82; reference187 = questStep; questSequence126.Steps = list3; reference186 = questSequence; - num++; - ref QuestSequence reference188 = ref span235[num]; + ref QuestSequence reference188 = ref span99[8]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence127 = questSequence; - 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) + 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) { ItemId = 2000811u }; questSequence127.Steps = list3; reference188 = questSequence; - num++; - ref QuestSequence reference189 = ref span235[num]; + ref QuestSequence reference189 = ref span99[9]; questSequence = new QuestSequence { Sequence = 9 @@ -76080,28 +62977,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span248 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span248[num3] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007865u, new Vector3(-223.10223f, 14.513845f, -365.25525f), 140); questSequence128.Steps = list3; reference189 = questSequence; - num++; - ref QuestSequence reference190 = ref span235[num]; + ref QuestSequence reference190 = ref span99[10]; questSequence = new QuestSequence { Sequence = 10 }; QuestSequence questSequence129 = questSequence; - 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); + 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); questSequence129.Steps = list3; reference190 = questSequence; - num++; - ref QuestSequence reference191 = ref span235[num]; + ref QuestSequence reference191 = ref span99[11]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -76110,9 +63001,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span250 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span250[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone @@ -76125,30 +63014,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot54 = questRoot; num = 1; - List list85 = new List(num); - CollectionsMarshal.SetCount(list85, num); - Span span251 = CollectionsMarshal.AsSpan(list85); - index = 0; - span251[index] = "pot0to"; - questRoot54.Author = list85; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + CollectionsMarshal.AsSpan(list83)[0] = "pot0to"; + questRoot54.Author = list83; QuestRoot questRoot55 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span252 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference192 = ref span252[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span101 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference192 = ref span101[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence131 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span253 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference193 = ref span253[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, @@ -76162,22 +63046,19 @@ public static class AssemblyQuestLoader } }; QuestStep questStep69 = questStep; - num5 = 1; - List list86 = new List(num5); - CollectionsMarshal.SetCount(list86, num5); - Span span254 = CollectionsMarshal.AsSpan(list86); - num4 = 0; - span254[num4] = new DialogueChoice + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBLM450_01076_Q1_000_1") }; - questStep69.DialogueChoices = list86; + questStep69.DialogueChoices = list84; reference193 = questStep; questSequence131.Steps = list3; reference192 = questSequence; - num++; - ref QuestSequence reference194 = ref span252[num]; + ref QuestSequence reference194 = ref span101[1]; questSequence = new QuestSequence { Sequence = 1 @@ -76186,32 +63067,26 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span255 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span255[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002433u, new Vector3(374.28845f, 3.40271f, 161.73035f), 153) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002433u, new Vector3(374.28845f, 3.40271f, 161.73035f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; questSequence132.Steps = list3; reference194 = questSequence; - num++; - ref QuestSequence reference195 = ref span252[num]; + ref QuestSequence reference195 = ref span101[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence133 = questSequence; - 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); + 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); questSequence133.Steps = list3; reference195 = questSequence; - num++; - ref QuestSequence reference196 = ref span252[num]; + ref QuestSequence reference196 = ref span101[3]; questSequence = new QuestSequence { Sequence = 3 @@ -76220,9 +63095,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span257 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span257[num3] = new QuestStep(EInteractionType.Interact, 1007867u, new Vector3(282.39868f, 11.151184f, -6.729248f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007867u, new Vector3(282.39868f, 11.151184f, -6.729248f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76236,19 +63109,16 @@ public static class AssemblyQuestLoader }; questSequence134.Steps = list3; reference196 = questSequence; - num++; - ref QuestSequence reference197 = ref span252[num]; + ref QuestSequence reference197 = ref span101[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence135 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76268,19 +63138,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot56 = questRoot; num = 1; - List list87 = new List(num); - CollectionsMarshal.SetCount(list87, num); - Span span259 = CollectionsMarshal.AsSpan(list87); - index = 0; - span259[index] = "pot0to"; - questRoot56.Author = list87; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + CollectionsMarshal.AsSpan(list85)[0] = "pot0to"; + questRoot56.Author = list85; QuestRoot questRoot57 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span260 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference198 = ref span260[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span102 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference198 = ref span102[0]; questSequence = new QuestSequence { Sequence = 0 @@ -76289,9 +63156,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span261 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span261[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76305,19 +63170,17 @@ public static class AssemblyQuestLoader }; questSequence136.Steps = list3; reference198 = questSequence; - num++; - ref QuestSequence reference199 = ref span260[num]; + ref QuestSequence reference199 = ref span102[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence137 = questSequence; - num3 = 3; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span262 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference200 = ref span262[num2]; + num2 = 3; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span103 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference200 = ref span103[0]; questStep = new QuestStep(EInteractionType.UseItem, 2002434u, new Vector3(-101.27417f, 28.213867f, 117.234985f), 146) { Fly = true, @@ -76325,26 +63188,19 @@ public static class AssemblyQuestLoader ItemId = 2000812u }; QuestStep questStep70 = questStep; - 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); + 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); questStep70.CompletionQuestVariablesFlags = list4; reference200 = questStep; - num2++; - ref QuestStep reference201 = ref span262[num2]; + ref QuestStep reference201 = ref span103[1]; questStep = new QuestStep(EInteractionType.UseItem, 2002435u, new Vector3(-1.8158569f, -11.703674f, -37.79669f), 154) { Fly = true, @@ -76352,26 +63208,19 @@ public static class AssemblyQuestLoader ItemId = 2000955u }; QuestStep questStep71 = questStep; - 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); + 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); questStep71.CompletionQuestVariablesFlags = list4; reference201 = questStep; - num2++; - ref QuestStep reference202 = ref span262[num2]; + ref QuestStep reference202 = ref span103[2]; questStep = new QuestStep(EInteractionType.UseItem, 2002436u, new Vector3(68.680786f, 55.832764f, -503.95975f), 180) { Fly = true, @@ -76379,28 +63228,21 @@ public static class AssemblyQuestLoader ItemId = 2000956u }; QuestStep questStep72 = questStep; - 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); + 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); questStep72.CompletionQuestVariablesFlags = list4; reference202 = questStep; questSequence137.Steps = list3; reference199 = questSequence; - num++; - ref QuestSequence reference203 = ref span260[num]; + ref QuestSequence reference203 = ref span102[2]; questSequence = new QuestSequence { Sequence = 2 @@ -76409,48 +63251,40 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span266 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span266[num3] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; questSequence138.Steps = list3; reference203 = questSequence; - num++; - ref QuestSequence reference204 = ref span260[num]; + ref QuestSequence reference204 = ref span102[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence139 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span267 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference205 = ref span267[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002537u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep73 = questStep; - 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; + 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; reference205 = questStep; questSequence139.Steps = list3; reference204 = questSequence; - num++; - ref QuestSequence reference206 = ref span260[num]; + ref QuestSequence reference206 = ref span102[4]; questSequence = new QuestSequence { Sequence = 4 @@ -76459,27 +63293,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span269 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span269[num3] = new QuestStep(EInteractionType.UseItem, 2002437u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.UseItem, 2002437u, new Vector3(220.87427f, 5.5999756f, -269.9779f), 145) { ItemId = 2000957u }; questSequence140.Steps = list3; reference206 = questSequence; - num++; - ref QuestSequence reference207 = ref span260[num]; + ref QuestSequence reference207 = ref span102[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence141 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76499,19 +63328,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot58 = questRoot; num = 1; - List list89 = new List(num); - CollectionsMarshal.SetCount(list89, num); - Span span271 = CollectionsMarshal.AsSpan(list89); - index = 0; - span271[index] = "pot0to"; - questRoot58.Author = list89; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + CollectionsMarshal.AsSpan(list87)[0] = "pot0to"; + questRoot58.Author = list87; QuestRoot questRoot59 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span272 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference208 = ref span272[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span108 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference208 = ref span108[0]; questSequence = new QuestSequence { Sequence = 0 @@ -76520,9 +63346,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span273 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span273[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76536,19 +63360,16 @@ public static class AssemblyQuestLoader }; questSequence142.Steps = list3; reference208 = questSequence; - num++; - ref QuestSequence reference209 = ref span272[num]; + ref QuestSequence reference209 = ref span108[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence143 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span274 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference210 = ref span274[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Interact, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -76566,22 +63387,19 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition19 = skipAetheryteCondition; - 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; + 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; skipConditions28.AetheryteShortcutIf = skipAetheryteCondition; questStep74.SkipConditions = skipConditions; reference210 = questStep; questSequence143.Steps = list3; reference209 = questSequence; - num++; - ref QuestSequence reference211 = ref span272[num]; + ref QuestSequence reference211 = ref span108[2]; questSequence = new QuestSequence { Sequence = 2 @@ -76590,9 +63408,8 @@ public static class AssemblyQuestLoader num2 = 5; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span276 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-173.17781f, 18.28456f, -280.36884f), 146) + Span span110 = CollectionsMarshal.AsSpan(list3); + span110[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-173.17781f, 18.28456f, -280.36884f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -76603,8 +63420,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.27478f, 3.2999475f, -243.23695f), 146) + span110[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.27478f, 3.2999475f, -243.23695f), 146) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -76615,8 +63431,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.198f, 18.43726f, -104.834755f), 146) + span110[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-261.198f, 18.43726f, -104.834755f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -76627,100 +63442,75 @@ public static class AssemblyQuestLoader } } }; - num3++; - span276[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.2874f, 5.952176f, -21.0684f), 146) + span110[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-428.2874f, 5.952176f, -21.0684f), 146) { Fly = true }; - num3++; - span276[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-431.92166f, 6.5580425f, -17.561014f), 146) + span110[4] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(-431.92166f, 6.5580425f, -17.561014f), 146) { StopDistance = 0.5f, Mount = false }; questSequence144.Steps = list3; reference211 = questSequence; - num++; - ref QuestSequence reference212 = ref span272[num]; + ref QuestSequence reference212 = ref span108[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence145 = questSequence; - num3 = 3; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span277 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference213 = ref span277[num2]; + num2 = 3; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span111 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference213 = ref span111[0]; questStep = new QuestStep(EInteractionType.Interact, 1007872u, new Vector3(-468.925f, -3.1649342f, 59.464355f), 146); QuestStep questStep75 = questStep; - 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); + 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); questStep75.CompletionQuestVariablesFlags = list4; reference213 = questStep; - num2++; - ref QuestStep reference214 = ref span277[num2]; + ref QuestStep reference214 = ref span111[1]; questStep = new QuestStep(EInteractionType.Interact, 1007871u, new Vector3(-464.46936f, -3.1649272f, 65.415405f), 146); QuestStep questStep76 = questStep; - 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); + 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); questStep76.CompletionQuestVariablesFlags = list4; reference214 = questStep; - num2++; - ref QuestStep reference215 = ref span277[num2]; + ref QuestStep reference215 = ref span111[2]; questStep = new QuestStep(EInteractionType.Interact, 1007873u, new Vector3(-458.70148f, -3.164927f, 63.370728f), 146); QuestStep questStep77 = questStep; - 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); + 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); questStep77.CompletionQuestVariablesFlags = list4; reference215 = questStep; questSequence145.Steps = list3; reference212 = questSequence; - num++; - ref QuestSequence reference216 = ref span272[num]; + ref QuestSequence reference216 = ref span108[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -76729,9 +63519,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span281 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span281[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -76752,30 +63540,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot60 = questRoot; num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span282 = CollectionsMarshal.AsSpan(list91); - index = 0; - span282[index] = "Cacahuetes"; - questRoot60.Author = list91; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + CollectionsMarshal.AsSpan(list89)[0] = "Cacahuetes"; + questRoot60.Author = list89; QuestRoot questRoot61 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span283 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference217 = ref span283[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span115 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference217 = ref span115[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence147 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span284 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference218 = ref span284[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -76793,20 +63576,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition20 = skipAetheryteCondition; - num4 = 1; - List list92 = new List(num4); - CollectionsMarshal.SetCount(list92, num4); - Span span285 = CollectionsMarshal.AsSpan(list92); - num5 = 0; - span285[num5] = 133; - skipAetheryteCondition20.InTerritory = list92; + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = 133; + skipAetheryteCondition20.InTerritory = list90; skipConditions29.AetheryteShortcutIf = skipAetheryteCondition; questStep78.SkipConditions = skipConditions; reference218 = questStep; questSequence147.Steps = list3; reference217 = questSequence; - num++; - ref QuestSequence reference219 = ref span283[num]; + ref QuestSequence reference219 = ref span115[1]; questSequence = new QuestSequence { Sequence = 1 @@ -76815,28 +63595,24 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span286 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span286[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007850u, new Vector3(-271.87f, 19.663366f, 97.42883f), 148) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007850u, new Vector3(-271.87f, 19.663366f, 97.42883f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; questSequence148.Steps = list3; reference219 = questSequence; - num++; - ref QuestSequence reference220 = ref span283[num]; + ref QuestSequence reference220 = ref span115[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence149 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -76857,8 +63633,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span287[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -76869,8 +63644,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span287[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span116[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1080) }; @@ -76882,19 +63656,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot62 = questRoot; num = 1; - List list93 = new List(num); - CollectionsMarshal.SetCount(list93, num); - Span span288 = CollectionsMarshal.AsSpan(list93); - index = 0; - span288[index] = "Cacahuetes"; - questRoot62.Author = list93; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + CollectionsMarshal.AsSpan(list91)[0] = "Cacahuetes"; + questRoot62.Author = list91; QuestRoot questRoot63 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span289 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference221 = ref span289[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span117 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference221 = ref span117[0]; questSequence = new QuestSequence { Sequence = 0 @@ -76903,9 +63674,8 @@ public static class AssemblyQuestLoader num2 = 4; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span290 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span290[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span118 = CollectionsMarshal.AsSpan(list3); + span118[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -76932,8 +63702,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span290[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span118[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -76944,28 +63713,24 @@ public static class AssemblyQuestLoader } } }; - num3++; - span290[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 153) + span118[2] = new QuestStep(EInteractionType.EquipItem, null, null, 153) { ItemId = 4547u }; - num3++; - span290[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span118[3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence150.Steps = list3; reference221 = questSequence; - num++; - ref QuestSequence reference222 = ref span289[num]; + ref QuestSequence reference222 = ref span117[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence151 = questSequence; - num3 = 2; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span291 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference223 = ref span291[num2]; + num2 = 2; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span119 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference223 = ref span119[0]; questStep = new QuestStep(EInteractionType.Combat, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148) { Fly = true, @@ -76978,38 +63743,28 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep79 = questStep; - num5 = 1; - List list94 = new List(num5); - CollectionsMarshal.SetCount(list94, num5); - Span span292 = CollectionsMarshal.AsSpan(list94); - num4 = 0; - span292[num4] = 1937u; - questStep79.KillEnemyDataIds = list94; + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = 1937u; + questStep79.KillEnemyDataIds = list92; QuestStep questStep80 = questStep; - 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; + 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; questStep80.CompletionQuestVariablesFlags = list4; reference223 = questStep; - num2++; - span291[num2] = new QuestStep(EInteractionType.Interact, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148); + span119[1] = new QuestStep(EInteractionType.Interact, 2002392u, new Vector3(-416.5561f, 60.990234f, -148.63812f), 148); questSequence151.Steps = list3; reference222 = questSequence; - num++; - ref QuestSequence reference224 = ref span289[num]; + ref QuestSequence reference224 = ref span117[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -77018,9 +63773,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span294 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span294[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span121 = CollectionsMarshal.AsSpan(list3); + span121[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77047,8 +63801,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span294[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77059,8 +63812,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span294[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span121[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1081) }; @@ -77072,30 +63824,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot64 = questRoot; num = 1; - List list95 = new List(num); - CollectionsMarshal.SetCount(list95, num); - Span span295 = CollectionsMarshal.AsSpan(list95); - index = 0; - span295[index] = "Cacahuetes"; - questRoot64.Author = list95; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + CollectionsMarshal.AsSpan(list93)[0] = "Cacahuetes"; + questRoot64.Author = list93; QuestRoot questRoot65 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span296 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference225 = ref span296[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span122 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference225 = ref span122[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence153 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77122,8 +63870,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span297[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span123[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77134,12 +63881,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span297[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span123[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence153.Steps = list3; reference225 = questSequence; - num++; - ref QuestSequence reference226 = ref span296[num]; + ref QuestSequence reference226 = ref span122[1]; questSequence = new QuestSequence { Sequence = 1 @@ -77148,68 +63893,54 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span298 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span298[num3] = new QuestStep(EInteractionType.Interact, 1007852u, new Vector3(-272.38885f, 12.935407f, -46.28064f), 152) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007852u, new Vector3(-272.38885f, 12.935407f, -46.28064f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; questSequence154.Steps = list3; reference226 = questSequence; - num++; - ref QuestSequence reference227 = ref span296[num]; + ref QuestSequence reference227 = ref span122[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence155 = questSequence; - num3 = 2; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span299 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference228 = ref span299[num2]; + num2 = 2; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span124 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference228 = ref span124[0]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152) { StopDistance = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep81 = questStep; - 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; + 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; QuestStep questStep82 = questStep; - 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; + 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; questStep82.CompletionQuestVariablesFlags = list4; reference228 = questStep; - num2++; - span299[num2] = new QuestStep(EInteractionType.Interact, 2002394u, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152); + span124[1] = new QuestStep(EInteractionType.Interact, 2002394u, new Vector3(-271.5343f, 13.748352f, -51.773926f), 152); questSequence155.Steps = list3; reference227 = questSequence; - num++; - ref QuestSequence reference229 = ref span296[num]; + ref QuestSequence reference229 = ref span122[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -77218,9 +63949,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span302 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span302[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span127 = CollectionsMarshal.AsSpan(list3); + span127[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77247,8 +63977,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span302[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77259,8 +63988,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span302[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span127[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1082) }; @@ -77272,30 +64000,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot66 = questRoot; num = 1; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span303 = CollectionsMarshal.AsSpan(list97); - index = 0; - span303[index] = "Cacahuetes"; - questRoot66.Author = list97; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + CollectionsMarshal.AsSpan(list95)[0] = "Cacahuetes"; + questRoot66.Author = list95; QuestRoot questRoot67 = questRoot; - index = 7; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span304 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference230 = ref span304[num]; + num = 7; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span128 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference230 = ref span128[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence157 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77322,8 +64046,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span305[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span129[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77334,12 +64057,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span305[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span129[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence157.Steps = list3; reference230 = questSequence; - num++; - ref QuestSequence reference231 = ref span304[num]; + ref QuestSequence reference231 = ref span128[1]; questSequence = new QuestSequence { Sequence = 1 @@ -77348,9 +64069,8 @@ public static class AssemblyQuestLoader num2 = 7; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span306 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference232 = ref span306[num3]; + Span span130 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference232 = ref span130[0]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.83008f, -37.93451f, -236.64346f), 138) { Fly = true, @@ -77361,54 +64081,40 @@ public static class AssemblyQuestLoader SkipConditions skipConditions30 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions11 = skipStepConditions; - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list4; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions30.StepIf = skipStepConditions; questStep83.SkipConditions = skipConditions; reference232 = questStep; - num3++; - ref QuestStep reference233 = ref span306[num3]; + ref QuestStep reference233 = ref span130[1]; questStep = new QuestStep(EInteractionType.Emote, 2002396u, new Vector3(-347.34113f, -36.240234f, -249.6529f), 138) { Emote = EEmote.Pray }; QuestStep questStep84 = questStep; - 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); + 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); questStep84.CompletionQuestVariablesFlags = list4; reference233 = questStep; - num3++; - ref QuestStep reference234 = ref span306[num3]; + ref QuestStep reference234 = ref span130[2]; questStep = new QuestStep(EInteractionType.Emote, 2002397u, new Vector3(-339.46753f, -15.06073f, -403.21973f), 156) { Fly = true, @@ -77416,76 +64122,58 @@ public static class AssemblyQuestLoader Emote = EEmote.Pray }; QuestStep questStep85 = questStep; - 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); + 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); questStep85.CompletionQuestVariablesFlags = list4; reference234 = questStep; - num3++; - span306[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + span130[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num3++; - span306[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + span130[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - num3++; - span306[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.17686f, 59.31324f, -44.453175f), 147); - num3++; - ref QuestStep reference235 = ref span306[num3]; + span130[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.17686f, 59.31324f, -44.453175f), 147); + ref QuestStep reference235 = ref span130[6]; questStep = new QuestStep(EInteractionType.Emote, 2002398u, new Vector3(-253.46765f, 60.68506f, -43.90027f), 147) { Emote = EEmote.Pray }; QuestStep questStep86 = questStep; - 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); + 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); questStep86.CompletionQuestVariablesFlags = list4; reference235 = questStep; questSequence158.Steps = list3; reference231 = questSequence; - num++; - ref QuestSequence reference236 = ref span304[num]; + ref QuestSequence reference236 = ref span128[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence159 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77512,8 +64200,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span311[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77524,12 +64211,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span311[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span135[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence159.Steps = list3; reference236 = questSequence; - num++; - ref QuestSequence reference237 = ref span304[num]; + ref QuestSequence reference237 = ref span128[3]; questSequence = new QuestSequence { Sequence = 3 @@ -77538,30 +64223,26 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span312 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span312[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(109.89845f, 7.0051613f, -45.239243f), 154) + Span span136 = CollectionsMarshal.AsSpan(list3); + span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(109.89845f, 7.0051613f, -45.239243f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - num3++; - span312[num3] = new QuestStep(EInteractionType.Interact, 2002399u, new Vector3(107.83545f, 7.7057495f, -45.15149f), 154); + span136[1] = new QuestStep(EInteractionType.Interact, 2002399u, new Vector3(107.83545f, 7.7057495f, -45.15149f), 154); questSequence160.Steps = list3; reference237 = questSequence; - num++; - ref QuestSequence reference238 = ref span304[num]; + ref QuestSequence reference238 = ref span128[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence161 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77588,8 +64269,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span313[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span137[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77600,12 +64280,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span313[num2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span137[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence161.Steps = list3; reference238 = questSequence; - num++; - ref QuestSequence reference239 = ref span304[num]; + ref QuestSequence reference239 = ref span128[5]; questSequence = new QuestSequence { Sequence = 5 @@ -77614,9 +64292,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span314 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span314[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.73157f, 42.137627f, -202.96959f), 139) + Span span138 = CollectionsMarshal.AsSpan(list3); + span138[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.73157f, 42.137627f, -202.96959f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -77632,8 +64309,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span314[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.0728f, 74.37976f, -248.26317f), 180) + span138[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(118.0728f, 74.37976f, -248.26317f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -77645,26 +64321,23 @@ public static class AssemblyQuestLoader } } }; - num3++; - span314[num3] = new QuestStep(EInteractionType.Emote, 2002400u, new Vector3(117.32654f, 75.394775f, -246.54004f), 180) + span138[2] = new QuestStep(EInteractionType.Emote, 2002400u, new Vector3(117.32654f, 75.394775f, -246.54004f), 180) { Emote = EEmote.Pray }; questSequence162.Steps = list3; reference239 = questSequence; - num++; - ref QuestSequence reference240 = ref span304[num]; + ref QuestSequence reference240 = ref span128[6]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence163 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77691,8 +64364,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span315[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span139[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77703,8 +64375,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span315[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span139[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1083) }; @@ -77716,19 +64387,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot68 = questRoot; num = 1; - List list98 = new List(num); - CollectionsMarshal.SetCount(list98, num); - Span span316 = CollectionsMarshal.AsSpan(list98); - index = 0; - span316[index] = "Cacahuetes"; - questRoot68.Author = list98; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + CollectionsMarshal.AsSpan(list96)[0] = "Cacahuetes"; + questRoot68.Author = list96; QuestRoot questRoot69 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span317 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference241 = ref span317[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span140 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference241 = ref span140[0]; questSequence = new QuestSequence { Sequence = 0 @@ -77737,9 +64405,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span318 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span318[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span141 = CollectionsMarshal.AsSpan(list3); + span141[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77766,8 +64433,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span318[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span141[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77778,30 +64444,25 @@ public static class AssemblyQuestLoader } } }; - num3++; - span318[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span141[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence164.Steps = list3; reference241 = questSequence; - num++; - ref QuestSequence reference242 = ref span317[num]; + ref QuestSequence reference242 = ref span140[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence165 = questSequence; - 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) + 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) { StopDistance = 5f }; questSequence165.Steps = list3; reference242 = questSequence; - num++; - ref QuestSequence reference243 = ref span317[num]; + ref QuestSequence reference243 = ref span140[2]; questSequence = new QuestSequence { Sequence = 2 @@ -77810,9 +64471,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span320 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span320[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(47.682095f, 9.470074f, -98.02502f), 153) + Span span142 = CollectionsMarshal.AsSpan(list3); + span142[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(47.682095f, 9.470074f, -98.02502f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -77829,71 +64489,55 @@ public static class AssemblyQuestLoader } } }; - num3++; - span320[num3] = new QuestStep(EInteractionType.Interact, 1007853u, new Vector3(53.72693f, 8.86706f, -111.25354f), 153) + span142[1] = new QuestStep(EInteractionType.Interact, 1007853u, new Vector3(53.72693f, 8.86706f, -111.25354f), 153) { Fly = true }; questSequence166.Steps = list3; reference243 = questSequence; - num++; - ref QuestSequence reference244 = ref span317[num]; + ref QuestSequence reference244 = ref span140[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence167 = questSequence; - 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]; + 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]; questStep = new QuestStep(EInteractionType.Combat, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; QuestStep questStep87 = questStep; - 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; + 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; QuestStep questStep88 = questStep; - 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; + 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; questStep88.CompletionQuestVariablesFlags = list4; reference245 = questStep; - num2++; - span321[num2] = new QuestStep(EInteractionType.Interact, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153); + span143[3] = new QuestStep(EInteractionType.Interact, 2002403u, new Vector3(151.53735f, 18.112427f, -127.30603f), 153); questSequence167.Steps = list3; reference244 = questSequence; - num++; - ref QuestSequence reference246 = ref span317[num]; + ref QuestSequence reference246 = ref span140[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -77902,9 +64546,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span324 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span324[num3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span146 = CollectionsMarshal.AsSpan(list3); + span146[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -77927,8 +64570,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span324[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span146[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -77939,8 +64581,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span324[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span146[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1084) }; @@ -77952,30 +64593,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot70 = questRoot; num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span325 = CollectionsMarshal.AsSpan(list99); - index = 0; - span325[index] = "Cacahuetes"; - questRoot70.Author = list99; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + CollectionsMarshal.AsSpan(list98)[0] = "Cacahuetes"; + questRoot70.Author = list98; QuestRoot questRoot71 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span326 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference247 = ref span326[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span147 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference247 = ref span147[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence169 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -78002,8 +64639,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span327[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span148[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -78014,12 +64650,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span327[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span148[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence169.Steps = list3; reference247 = questSequence; - num++; - ref QuestSequence reference248 = ref span326[num]; + ref QuestSequence reference248 = ref span147[1]; questSequence = new QuestSequence { Sequence = 1 @@ -78028,28 +64662,24 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span328 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span328[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002408u, new Vector3(-316.27374f, 21.194763f, 179.70544f), 148) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002408u, new Vector3(-316.27374f, 21.194763f, 179.70544f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; questSequence170.Steps = list3; reference248 = questSequence; - num++; - ref QuestSequence reference249 = ref span326[num]; + ref QuestSequence reference249 = ref span147[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence171 = questSequence; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -78076,8 +64706,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span329[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span149[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -78088,8 +64717,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span329[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span149[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); questSequence171.Steps = list3; reference249 = questSequence; questRoot71.QuestSequence = list2; @@ -78098,19 +64726,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot72 = questRoot; num = 1; - List list100 = new List(num); - CollectionsMarshal.SetCount(list100, num); - Span span330 = CollectionsMarshal.AsSpan(list100); - index = 0; - span330[index] = "pot0to"; - questRoot72.Author = list100; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + CollectionsMarshal.AsSpan(list99)[0] = "pot0to"; + questRoot72.Author = list99; QuestRoot questRoot73 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span331 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference250 = ref span331[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span150 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference250 = ref span150[0]; questSequence = new QuestSequence { Sequence = 0 @@ -78119,9 +64744,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span332 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span332[num3] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -78140,19 +64763,16 @@ public static class AssemblyQuestLoader }; questSequence172.Steps = list3; reference250 = questSequence; - num++; - ref QuestSequence reference251 = ref span331[num]; + ref QuestSequence reference251 = ref span150[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence173 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78166,8 +64786,7 @@ public static class AssemblyQuestLoader }; questSequence173.Steps = list3; reference251 = questSequence; - num++; - ref QuestSequence reference252 = ref span331[num]; + ref QuestSequence reference252 = ref span150[2]; questSequence = new QuestSequence { Sequence = 2 @@ -78176,34 +64795,28 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span334 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span334[num3] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) { Fly = true }; questSequence174.Steps = list3; reference252 = questSequence; - num++; - ref QuestSequence reference253 = ref span331[num]; + ref QuestSequence reference253 = ref span150[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence175 = questSequence; - 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) + 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) { Fly = true }; questSequence175.Steps = list3; reference253 = questSequence; - num++; - ref QuestSequence reference254 = ref span331[num]; + ref QuestSequence reference254 = ref span150[4]; questSequence = new QuestSequence { Sequence = 4 @@ -78212,33 +64825,28 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span336 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span336[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.68686f, 2.7520387f, 24.184406f), 153) + Span span151 = CollectionsMarshal.AsSpan(list3); + span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.68686f, 2.7520387f, 24.184406f), 153) { Fly = true }; - num3++; - span336[num3] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) + span151[1] = new QuestStep(EInteractionType.Interact, 1007834u, new Vector3(447.2876f, 2.147105f, 21.86615f), 153) { StopDistance = 7f, Fly = false }; questSequence176.Steps = list3; reference254 = questSequence; - num++; - ref QuestSequence reference255 = ref span331[num]; + ref QuestSequence reference255 = ref span150[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence177 = questSequence; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1086) @@ -78251,19 +64859,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot74 = questRoot; num = 1; - List list101 = new List(num); - CollectionsMarshal.SetCount(list101, num); - Span span338 = CollectionsMarshal.AsSpan(list101); - index = 0; - span338[index] = "pot0to"; - questRoot74.Author = list101; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + CollectionsMarshal.AsSpan(list100)[0] = "pot0to"; + questRoot74.Author = list100; QuestRoot questRoot75 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span339 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference256 = ref span339[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span152 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference256 = ref span152[0]; questSequence = new QuestSequence { Sequence = 0 @@ -78272,9 +64877,8 @@ public static class AssemblyQuestLoader num2 = 3; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span340 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span340[num3] = new QuestStep(EInteractionType.EquipItem, null, null, 153) + Span span153 = CollectionsMarshal.AsSpan(list3); + span153[0] = new QuestStep(EInteractionType.EquipItem, null, null, 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78287,25 +64891,21 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); questSequence178.Steps = list3; reference256 = questSequence; - num++; - ref QuestSequence reference257 = ref span339[num]; + ref QuestSequence reference257 = ref span152[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence179 = questSequence; - 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) + 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) { TargetTerritoryId = (ushort)137, Fly = true, @@ -78327,8 +64927,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference258 = ref span341[num2]; + ref QuestStep reference258 = ref span154[1]; questStep = new QuestStep(EInteractionType.Combat, 2002366u, new Vector3(-143.0534f, 68.192505f, 586.1448f), 137) { StopDistance = 0.5f, @@ -78337,13 +64936,11 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep89 = questStep; - num5 = 1; - List list102 = new List(num5); - CollectionsMarshal.SetCount(list102, num5); - Span span342 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span342[num4] = 1945u; - questStep89.KillEnemyDataIds = list102; + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + CollectionsMarshal.AsSpan(list101)[0] = 1945u; + questStep89.KillEnemyDataIds = list101; questStep.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -78354,8 +64951,7 @@ public static class AssemblyQuestLoader reference258 = questStep; questSequence179.Steps = list3; reference257 = questSequence; - num++; - ref QuestSequence reference259 = ref span339[num]; + ref QuestSequence reference259 = ref span152[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -78364,9 +64960,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span343 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span343[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78387,30 +64981,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot76 = questRoot; num = 1; - List list103 = new List(num); - CollectionsMarshal.SetCount(list103, num); - Span span344 = CollectionsMarshal.AsSpan(list103); - index = 0; - span344[index] = "pot0to"; - questRoot76.Author = list103; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + CollectionsMarshal.AsSpan(list102)[0] = "pot0to"; + questRoot76.Author = list102; QuestRoot questRoot77 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span345 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference260 = ref span345[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span155 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference260 = ref span155[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence181 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78424,8 +65013,7 @@ public static class AssemblyQuestLoader }; questSequence181.Steps = list3; reference260 = questSequence; - num++; - ref QuestSequence reference261 = ref span345[num]; + ref QuestSequence reference261 = ref span155[1]; questSequence = new QuestSequence { Sequence = 1 @@ -78434,9 +65022,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span347 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference262 = ref span347[num3]; + ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 2002365u, new Vector3(272.05298f, 18.875366f, -164.53809f), 145) { Fly = true, @@ -78444,13 +65030,11 @@ public static class AssemblyQuestLoader EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep90 = questStep; - num4 = 1; - List list104 = new List(num4); - CollectionsMarshal.SetCount(list104, num4); - Span span348 = CollectionsMarshal.AsSpan(list104); - num5 = 0; - span348[num5] = 58u; - questStep90.KillEnemyDataIds = list104; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = 58u; + questStep90.KillEnemyDataIds = list103; questStep.SkipConditions = new SkipConditions { AetheryteShortcutIf = new SkipAetheryteCondition @@ -78461,19 +65045,16 @@ public static class AssemblyQuestLoader reference262 = questStep; questSequence182.Steps = list3; reference261 = questSequence; - num++; - ref QuestSequence reference263 = ref span345[num]; + ref QuestSequence reference263 = ref span155[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence183 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78494,19 +65075,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot78 = questRoot; num = 1; - List list105 = new List(num); - CollectionsMarshal.SetCount(list105, num); - Span span350 = CollectionsMarshal.AsSpan(list105); - index = 0; - span350[index] = "pot0to"; - questRoot78.Author = list105; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + CollectionsMarshal.AsSpan(list104)[0] = "pot0to"; + questRoot78.Author = list104; QuestRoot questRoot79 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span351 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference264 = ref span351[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span156 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference264 = ref span156[0]; questSequence = new QuestSequence { Sequence = 0 @@ -78515,9 +65093,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span352 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span352[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78531,19 +65107,16 @@ public static class AssemblyQuestLoader }; questSequence184.Steps = list3; reference264 = questSequence; - num++; - ref QuestSequence reference265 = ref span351[num]; + ref QuestSequence reference265 = ref span156[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence185 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -78562,8 +65135,7 @@ public static class AssemblyQuestLoader }; questSequence185.Steps = list3; reference265 = questSequence; - num++; - ref QuestSequence reference266 = ref span351[num]; + ref QuestSequence reference266 = ref span156[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -78572,9 +65144,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span354 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span354[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78595,30 +65165,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot80 = questRoot; num = 1; - List list106 = new List(num); - CollectionsMarshal.SetCount(list106, num); - Span span355 = CollectionsMarshal.AsSpan(list106); - index = 0; - span355[index] = "pot0to"; - questRoot80.Author = list106; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + CollectionsMarshal.AsSpan(list105)[0] = "pot0to"; + questRoot80.Author = list105; QuestRoot questRoot81 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span356 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference267 = ref span356[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span157 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference267 = ref span157[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence187 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span357 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference268 = ref span357[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, @@ -78632,22 +65197,19 @@ public static class AssemblyQuestLoader } }; QuestStep questStep91 = questStep; - num5 = 1; - List list107 = new List(num5); - CollectionsMarshal.SetCount(list107, num5); - Span span358 = CollectionsMarshal.AsSpan(list107); - num4 = 0; - span358[num4] = new DialogueChoice + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD451_01089_Q1_000_000") }; - questStep91.DialogueChoices = list107; + questStep91.DialogueChoices = list106; reference268 = questStep; questSequence187.Steps = list3; reference267 = questSequence; - num++; - ref QuestSequence reference269 = ref span356[num]; + ref QuestSequence reference269 = ref span157[1]; questSequence = new QuestSequence { Sequence = 1 @@ -78656,138 +65218,103 @@ public static class AssemblyQuestLoader num2 = 8; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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]; + 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]; questStep = new QuestStep(EInteractionType.Interact, 2002528u, new Vector3(512.291f, 10.482849f, 148.30237f), 153) { Fly = true }; QuestStep questStep92 = questStep; - 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); + 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); questStep92.CompletionQuestVariablesFlags = list4; reference270 = questStep; - num3++; - ref QuestStep reference271 = ref span359[num3]; + ref QuestStep reference271 = ref span158[2]; questStep = new QuestStep(EInteractionType.Interact, 2002530u, new Vector3(576.2263f, -24.002502f, -423.75836f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; QuestStep questStep93 = questStep; - 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); + 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); questStep93.CompletionQuestVariablesFlags = list4; reference271 = questStep; - num3++; - span359[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-143.16391f, -25.75711f, 34.669674f), 138) + span158[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-143.16391f, -25.75711f, 34.669674f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - num3++; - ref QuestStep reference272 = ref span359[num3]; + ref QuestStep reference272 = ref span158[4]; questStep = new QuestStep(EInteractionType.Interact, 2002527u, new Vector3(-168.29181f, -21.5f, 44.144287f), 138) { Fly = false }; QuestStep questStep94 = questStep; - 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); + 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); questStep94.CompletionQuestVariablesFlags = list4; reference272 = questStep; - num3++; - span359[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) + span158[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.738379f, 33f, -495.80618f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num3++; - span359[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) + span158[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 147) { Aetheryte = EAetheryteLocation.NorthernThanalanCampBluefog }; - num3++; - ref QuestStep reference273 = ref span359[num3]; + ref QuestStep reference273 = ref span158[7]; questStep = new QuestStep(EInteractionType.Interact, 2002529u, new Vector3(-324.7273f, 87.96814f, -133.50122f), 147); QuestStep questStep95 = questStep; - 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); + 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); questStep95.CompletionQuestVariablesFlags = list4; reference273 = questStep; questSequence188.Steps = list3; reference269 = questSequence; - num++; - ref QuestSequence reference274 = ref span356[num]; + ref QuestSequence reference274 = ref span157[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence189 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78808,19 +65335,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot82 = questRoot; num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span365 = CollectionsMarshal.AsSpan(list108); - index = 0; - span365[index] = "pot0to"; - questRoot82.Author = list108; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + CollectionsMarshal.AsSpan(list107)[0] = "pot0to"; + questRoot82.Author = list107; QuestRoot questRoot83 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span366 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference275 = ref span366[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span163 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference275 = ref span163[0]; questSequence = new QuestSequence { Sequence = 0 @@ -78829,9 +65353,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span367 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span367[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -78845,25 +65367,22 @@ public static class AssemblyQuestLoader }; questSequence190.Steps = list3; reference275 = questSequence; - num++; - ref QuestSequence reference276 = ref span366[num]; + ref QuestSequence reference276 = ref span163[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence191 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span368[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002373u, new Vector3(72.098755f, 227.19153f, 380.84985f), 155) + span164[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002373u, new Vector3(72.098755f, 227.19153f, 380.84985f), 155) { ItemId = 2000953u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -78873,8 +65392,7 @@ public static class AssemblyQuestLoader }; questSequence191.Steps = list3; reference276 = questSequence; - num++; - ref QuestSequence reference277 = ref span366[num]; + ref QuestSequence reference277 = ref span163[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -78883,9 +65401,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span369 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span369[num3] = new QuestStep(EInteractionType.CompleteQuest, 1007891u, new Vector3(70.17627f, 226.72212f, 381.30762f), 155) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007891u, new Vector3(70.17627f, 226.72212f, 381.30762f), 155) { NextQuestId = new QuestId(1713) }; @@ -78897,30 +65413,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot84 = questRoot; num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span370 = CollectionsMarshal.AsSpan(list109); - index = 0; - span370[index] = "liza"; - questRoot84.Author = list109; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + CollectionsMarshal.AsSpan(list108)[0] = "liza"; + questRoot84.Author = list108; QuestRoot questRoot85 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span371 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference278 = ref span371[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span165 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference278 = ref span165[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence193 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -78938,8 +65449,7 @@ public static class AssemblyQuestLoader }; questSequence193.Steps = list3; reference278 = questSequence; - num++; - ref QuestSequence reference279 = ref span371[num]; + ref QuestSequence reference279 = ref span165[1]; questSequence = new QuestSequence { Sequence = 1 @@ -78948,9 +65458,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span373 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span373[num3] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -78961,19 +65469,17 @@ public static class AssemblyQuestLoader }; questSequence194.Steps = list3; reference279 = questSequence; - num++; - ref QuestSequence reference280 = ref span371[num]; + ref QuestSequence reference280 = ref span165[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence195 = questSequence; - 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) + 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) { TargetTerritoryId = (ushort)146, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -78989,8 +65495,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146) + span166[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.50145f, 16.362688f, -439.62503f), 146) { SkipConditions = new SkipConditions { @@ -79000,8 +65505,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + span166[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { StopDistance = 7f, Aetheryte = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -79013,8 +65517,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) + span166[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, SkipConditions = new SkipConditions @@ -79029,8 +65532,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) + span166[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -79041,8 +65543,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) + span166[5] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) { TargetTerritoryId = (ushort)146, SkipConditions = new SkipConditions @@ -79053,8 +65554,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + span166[6] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanForgottenSprings, SkipConditions = new SkipConditions @@ -79065,16 +65565,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span374[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) + span166[7] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; questSequence195.Steps = list3; reference280 = questSequence; - num++; - ref QuestSequence reference281 = ref span371[num]; + ref QuestSequence reference281 = ref span165[3]; questSequence = new QuestSequence { Sequence = 3 @@ -79083,27 +65581,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span375 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span375[num3] = new QuestStep(EInteractionType.Interact, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006786u, new Vector3(-347.15802f, 0.9522269f, 741.3595f), 146) { StopDistance = 5f }; questSequence196.Steps = list3; reference281 = questSequence; - num++; - ref QuestSequence reference282 = ref span371[num]; + ref QuestSequence reference282 = ref span165[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence197 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -79121,19 +65614,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot86 = questRoot; num = 1; - List list110 = new List(num); - CollectionsMarshal.SetCount(list110, num); - Span span377 = CollectionsMarshal.AsSpan(list110); - index = 0; - span377[index] = "liza"; - questRoot86.Author = list110; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + CollectionsMarshal.AsSpan(list109)[0] = "liza"; + questRoot86.Author = list109; QuestRoot questRoot87 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span378 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference283 = ref span378[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span167 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference283 = ref span167[0]; questSequence = new QuestSequence { Sequence = 0 @@ -79142,9 +65632,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span379 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference284 = ref span379[num3]; + Span span168 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference284 = ref span168[0]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -79163,41 +65652,34 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition21 = skipAetheryteCondition; - num4 = 1; - List list111 = new List(num4); - CollectionsMarshal.SetCount(list111, num4); - Span span380 = CollectionsMarshal.AsSpan(list111); - num5 = 0; - span380[num5] = 133; - skipAetheryteCondition21.InTerritory = list111; + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = 133; + skipAetheryteCondition21.InTerritory = list110; skipConditions31.AetheryteShortcutIf = skipAetheryteCondition; questStep96.SkipConditions = skipConditions; reference284 = questStep; - num3++; - span379[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133); + span168[1] = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133); questSequence198.Steps = list3; reference283 = questSequence; - num++; - ref QuestSequence reference285 = ref span378[num]; + ref QuestSequence reference285 = ref span167[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence199 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; questSequence199.Steps = list3; reference285 = questSequence; - num++; - ref QuestSequence reference286 = ref span378[num]; + ref QuestSequence reference286 = ref span167[2]; questSequence = new QuestSequence { Sequence = 2 @@ -79206,27 +65688,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span382 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span382[num3] = new QuestStep(EInteractionType.Interact, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006787u, new Vector3(-268.78766f, -78.85388f, 444.8767f), 154) { StopDistance = 7f }; questSequence200.Steps = list3; reference286 = questSequence; - num++; - ref QuestSequence reference287 = ref span378[num]; + ref QuestSequence reference287 = ref span167[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence201 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -79244,19 +65721,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot88 = questRoot; num = 1; - List list112 = new List(num); - CollectionsMarshal.SetCount(list112, num); - Span span384 = CollectionsMarshal.AsSpan(list112); - index = 0; - span384[index] = "liza"; - questRoot88.Author = list112; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + CollectionsMarshal.AsSpan(list111)[0] = "liza"; + questRoot88.Author = list111; QuestRoot questRoot89 = questRoot; - index = 3; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span385 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference288 = ref span385[num]; + num = 3; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span169 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference288 = ref span169[0]; questSequence = new QuestSequence { Sequence = 0 @@ -79265,9 +65739,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span386 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference289 = ref span386[num3]; + ref QuestStep reference289 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -79285,38 +65757,32 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition22 = skipAetheryteCondition; - num5 = 1; - List list113 = new List(num5); - CollectionsMarshal.SetCount(list113, num5); - Span span387 = CollectionsMarshal.AsSpan(list113); - num4 = 0; - span387[num4] = 133; - skipAetheryteCondition22.InTerritory = list113; + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + CollectionsMarshal.AsSpan(list112)[0] = 133; + skipAetheryteCondition22.InTerritory = list112; skipConditions32.AetheryteShortcutIf = skipAetheryteCondition; questStep97.SkipConditions = skipConditions; reference289 = questStep; questSequence202.Steps = list3; reference288 = questSequence; - num++; - ref QuestSequence reference290 = ref span385[num]; + ref QuestSequence reference290 = ref span169[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence203 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; questSequence203.Steps = list3; reference290 = questSequence; - num++; - ref QuestSequence reference291 = ref span385[num]; + ref QuestSequence reference291 = ref span169[2]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -79325,11 +65791,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -79347,30 +65811,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot90 = questRoot; num = 1; - List list114 = new List(num); - CollectionsMarshal.SetCount(list114, num); - Span span390 = CollectionsMarshal.AsSpan(list114); - index = 0; - span390[index] = "liza"; - questRoot90.Author = list114; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + CollectionsMarshal.AsSpan(list113)[0] = "liza"; + questRoot90.Author = list113; QuestRoot questRoot91 = questRoot; - index = 10; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span391 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference292 = ref span391[num]; + num = 10; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span171 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference292 = ref span171[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence205 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span392 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference293 = ref span392[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -79388,20 +65847,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition23 = skipAetheryteCondition; - num4 = 1; - List list115 = new List(num4); - CollectionsMarshal.SetCount(list115, num4); - Span span393 = CollectionsMarshal.AsSpan(list115); - num5 = 0; - span393[num5] = 133; - skipAetheryteCondition23.InTerritory = list115; + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = 133; + skipAetheryteCondition23.InTerritory = list114; skipConditions33.AetheryteShortcutIf = skipAetheryteCondition; questStep98.SkipConditions = skipConditions; reference293 = questStep; questSequence205.Steps = list3; reference292 = questSequence; - num++; - ref QuestSequence reference294 = ref span391[num]; + ref QuestSequence reference294 = ref span171[1]; questSequence = new QuestSequence { Sequence = 1 @@ -79410,46 +65866,38 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span394 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span394[num3] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; questSequence206.Steps = list3; reference294 = questSequence; - num++; - ref QuestSequence reference295 = ref span391[num]; + ref QuestSequence reference295 = ref span171[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence207 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span395 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference296 = ref span395[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference296 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep99 = questStep; - num5 = 1; - List list116 = new List(num5); - CollectionsMarshal.SetCount(list116, num5); - Span span396 = CollectionsMarshal.AsSpan(list116); - num4 = 0; - span396[num4] = 1948u; - questStep99.KillEnemyDataIds = list116; + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = 1948u; + questStep99.KillEnemyDataIds = list115; reference296 = questStep; questSequence207.Steps = list3; reference295 = questSequence; - num++; - ref QuestSequence reference297 = ref span391[num]; + ref QuestSequence reference297 = ref span171[3]; questSequence = new QuestSequence { Sequence = 3 @@ -79458,42 +65906,34 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span397 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span397[num3] = new QuestStep(EInteractionType.Interact, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006789u, new Vector3(503.2882f, -12.351167f, -343.19073f), 156); questSequence208.Steps = list3; reference297 = questSequence; - num++; - ref QuestSequence reference298 = ref span391[num]; + ref QuestSequence reference298 = ref span171[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence209 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span398 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference299 = ref span398[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference299 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.Combat, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep100 = questStep; - num4 = 1; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span399 = CollectionsMarshal.AsSpan(list117); - num5 = 0; - span399[num5] = 1948u; - questStep100.KillEnemyDataIds = list117; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = 1948u; + questStep100.KillEnemyDataIds = list116; reference299 = questStep; questSequence209.Steps = list3; reference298 = questSequence; - num++; - ref QuestSequence reference300 = ref span391[num]; + ref QuestSequence reference300 = ref span171[5]; questSequence = new QuestSequence { Sequence = 5 @@ -79502,46 +65942,38 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span400 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span400[num3] = new QuestStep(EInteractionType.Interact, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006790u, new Vector3(496.45215f, -2.546432f, -472.03784f), 156); questSequence210.Steps = list3; reference300 = questSequence; - num++; - ref QuestSequence reference301 = ref span391[num]; + ref QuestSequence reference301 = ref span171[6]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence211 = questSequence; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference302 = ref span401[num2]; + ref QuestStep reference302 = ref span172[1]; questStep = new QuestStep(EInteractionType.Combat, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; QuestStep questStep101 = questStep; - num5 = 1; - List list118 = new List(num5); - CollectionsMarshal.SetCount(list118, num5); - Span span402 = CollectionsMarshal.AsSpan(list118); - num4 = 0; - span402[num4] = 1948u; - questStep101.KillEnemyDataIds = list118; + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = 1948u; + questStep101.KillEnemyDataIds = list117; reference302 = questStep; questSequence211.Steps = list3; reference301 = questSequence; - num++; - ref QuestSequence reference303 = ref span391[num]; + ref QuestSequence reference303 = ref span171[7]; questSequence = new QuestSequence { Sequence = 7 @@ -79550,31 +65982,25 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span403 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span403[num3] = new QuestStep(EInteractionType.Interact, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006791u, new Vector3(373.52563f, -5.242633f, -484.70288f), 156); questSequence212.Steps = list3; reference303 = questSequence; - num++; - ref QuestSequence reference304 = ref span391[num]; + ref QuestSequence reference304 = ref span171[8]; questSequence = new QuestSequence { Sequence = 8 }; QuestSequence questSequence213 = questSequence; - 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) + 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) { Fly = true }; questSequence213.Steps = list3; reference304 = questSequence; - num++; - ref QuestSequence reference305 = ref span391[num]; + ref QuestSequence reference305 = ref span171[9]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -79583,11 +66009,9 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -79605,30 +66029,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot92 = questRoot; num = 1; - List list119 = new List(num); - CollectionsMarshal.SetCount(list119, num); - Span span406 = CollectionsMarshal.AsSpan(list119); - index = 0; - span406[index] = "liza"; - questRoot92.Author = list119; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + CollectionsMarshal.AsSpan(list118)[0] = "liza"; + questRoot92.Author = list118; QuestRoot questRoot93 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span407 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference306 = ref span407[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span174 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference306 = ref span174[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence215 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span408 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference307 = ref span408[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference307 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -79646,20 +66065,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition24 = skipAetheryteCondition; - num4 = 1; - List list120 = new List(num4); - CollectionsMarshal.SetCount(list120, num4); - Span span409 = CollectionsMarshal.AsSpan(list120); - num5 = 0; - span409[num5] = 133; - skipAetheryteCondition24.InTerritory = list120; + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = 133; + skipAetheryteCondition24.InTerritory = list119; skipConditions34.AetheryteShortcutIf = skipAetheryteCondition; questStep102.SkipConditions = skipConditions; reference307 = questStep; questSequence215.Steps = list3; reference306 = questSequence; - num++; - ref QuestSequence reference308 = ref span407[num]; + ref QuestSequence reference308 = ref span174[1]; questSequence = new QuestSequence { Sequence = 1 @@ -79668,9 +66084,8 @@ public static class AssemblyQuestLoader num2 = 6; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span410 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) + Span span175 = CollectionsMarshal.AsSpan(list3); + span175[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -79682,8 +66097,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.4182f, 41.15416f, -193.03651f), 139) + span175[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(291.4182f, 41.15416f, -193.03651f), 139) { SkipConditions = new SkipConditions { @@ -79693,8 +66107,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) + span175[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180, SkipConditions = new SkipConditions @@ -79705,8 +66118,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span410[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) + span175[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true, SkipConditions = new SkipConditions @@ -79717,8 +66129,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span410[num3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) + span175[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -79729,27 +66140,22 @@ public static class AssemblyQuestLoader } } }; - num3++; - span410[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); + span175[5] = new QuestStep(EInteractionType.SinglePlayerDuty, 1006792u, new Vector3(-378.10333f, 51.61585f, -290.11975f), 180); questSequence216.Steps = list3; reference308 = questSequence; - num++; - ref QuestSequence reference309 = ref span407[num]; + ref QuestSequence reference309 = ref span174[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence217 = questSequence; - 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); + 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); questSequence217.Steps = list3; reference309 = questSequence; - num++; - ref QuestSequence reference310 = ref span407[num]; + ref QuestSequence reference310 = ref span174[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -79758,9 +66164,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span412 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span412[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -79778,30 +66182,25 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot94 = questRoot; num = 1; - List list121 = new List(num); - CollectionsMarshal.SetCount(list121, num); - Span span413 = CollectionsMarshal.AsSpan(list121); - index = 0; - span413[index] = "liza"; - questRoot94.Author = list121; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + CollectionsMarshal.AsSpan(list120)[0] = "liza"; + questRoot94.Author = list120; QuestRoot questRoot95 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span414 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference311 = ref span414[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span176 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference311 = ref span176[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence219 = questSequence; - num3 = 1; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span415 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference312 = ref span415[num2]; + num2 = 1; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + ref QuestStep reference312 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -79819,20 +66218,17 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition25 = skipAetheryteCondition; - num5 = 1; - List list122 = new List(num5); - CollectionsMarshal.SetCount(list122, num5); - Span span416 = CollectionsMarshal.AsSpan(list122); - num4 = 0; - span416[num4] = 133; - skipAetheryteCondition25.InTerritory = list122; + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = 133; + skipAetheryteCondition25.InTerritory = list121; skipConditions35.AetheryteShortcutIf = skipAetheryteCondition; questStep103.SkipConditions = skipConditions; reference312 = questStep; questSequence219.Steps = list3; reference311 = questSequence; - num++; - ref QuestSequence reference313 = ref span414[num]; + ref QuestSequence reference313 = ref span176[1]; questSequence = new QuestSequence { Sequence = 1 @@ -79841,34 +66237,28 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span417 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span417[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.60034f, -2.1295002f, -484.951f), 156) + Span span177 = CollectionsMarshal.AsSpan(list3); + span177[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.60034f, -2.1295002f, -484.951f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num3++; - span417[num3] = new QuestStep(EInteractionType.Interact, 1006793u, new Vector3(493.09534f, -2.349111f, -484.61133f), 156); + span177[1] = new QuestStep(EInteractionType.Interact, 1006793u, new Vector3(493.09534f, -2.349111f, -484.61133f), 156); questSequence220.Steps = list3; reference313 = questSequence; - num++; - ref QuestSequence reference314 = ref span414[num]; + ref QuestSequence reference314 = ref span176[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence221 = questSequence; - 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); + 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); questSequence221.Steps = list3; reference314 = questSequence; - num++; - ref QuestSequence reference315 = ref span414[num]; + ref QuestSequence reference315 = ref span176[3]; questSequence = new QuestSequence { Sequence = 3 @@ -79877,36 +66267,30 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span419 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span419[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.36328f, -3.814063f, -770.9911f), 156) + Span span178 = CollectionsMarshal.AsSpan(list3); + span178[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.36328f, -3.814063f, -770.9911f), 156) { Fly = true }; - num3++; - span419[num3] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(504.98605f, -2.5969198f, -780.6112f), 156) + span178[1] = new QuestStep(EInteractionType.SinglePlayerDuty, null, new Vector3(504.98605f, -2.5969198f, -780.6112f), 156) { Mount = false }; questSequence222.Steps = list3; reference315 = questSequence; - num++; - ref QuestSequence reference316 = ref span414[num]; + ref QuestSequence reference316 = ref span176[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence223 = questSequence; - 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); + 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); questSequence223.Steps = list3; reference316 = questSequence; - num++; - ref QuestSequence reference317 = ref span414[num]; + ref QuestSequence reference317 = ref span176[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -79915,9 +66299,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span421 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span421[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -79934,30 +66316,26 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot96 = questRoot; num = 1; - List list123 = new List(num); - CollectionsMarshal.SetCount(list123, num); - Span span422 = CollectionsMarshal.AsSpan(list123); - index = 0; - span422[index] = "liza"; - questRoot96.Author = list123; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + CollectionsMarshal.AsSpan(list122)[0] = "liza"; + questRoot96.Author = list122; QuestRoot questRoot97 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span423 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference318 = ref span423[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span179 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference318 = ref span179[0]; questSequence = new QuestSequence { Sequence = 0 }; QuestSequence questSequence225 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -79968,12 +66346,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span424[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); + span180[1] = new QuestStep(EInteractionType.AcceptQuest, 1000895u, new Vector3(-335.74432f, 12.899764f, 1.3884888f), 129); questSequence225.Steps = list3; reference318 = questSequence; - num++; - ref QuestSequence reference319 = ref span423[num]; + ref QuestSequence reference319 = ref span179[1]; questSequence = new QuestSequence { Sequence = 1 @@ -79982,9 +66358,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span425 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span425[num3] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AethernetShortcut = new AethernetShortcut { @@ -79994,27 +66368,23 @@ public static class AssemblyQuestLoader }; questSequence226.Steps = list3; reference319 = questSequence; - num++; - ref QuestSequence reference320 = ref span423[num]; + ref QuestSequence reference320 = ref span179[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence227 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; questSequence227.Steps = list3; reference320 = questSequence; - num++; - ref QuestSequence reference321 = ref span423[num]; + ref QuestSequence reference321 = ref span179[3]; questSequence = new QuestSequence { Sequence = 3 @@ -80023,27 +66393,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span427 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span427[num3] = new QuestStep(EInteractionType.Interact, 1007836u, new Vector3(31.3573f, 34.078865f, 222.76636f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007836u, new Vector3(31.3573f, 34.078865f, 222.76636f), 137) { StopDistance = 5f }; questSequence228.Steps = list3; reference321 = questSequence; - num++; - ref QuestSequence reference322 = ref span423[num]; + ref QuestSequence reference322 = ref span179[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence229 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -80061,19 +66426,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot98 = questRoot; num = 1; - List list124 = new List(num); - CollectionsMarshal.SetCount(list124, num); - Span span429 = CollectionsMarshal.AsSpan(list124); - index = 0; - span429[index] = "liza"; - questRoot98.Author = list124; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + CollectionsMarshal.AsSpan(list123)[0] = "liza"; + questRoot98.Author = list123; QuestRoot questRoot99 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span430 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference323 = ref span430[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span181 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference323 = ref span181[0]; questSequence = new QuestSequence { Sequence = 0 @@ -80082,9 +66444,8 @@ public static class AssemblyQuestLoader num2 = 2; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span431 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference324 = ref span431[num3]; + Span span182 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference324 = ref span182[0]; questStep = new QuestStep(EInteractionType.EquipItem, null, null, 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -80103,33 +66464,28 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition26 = skipAetheryteCondition; - num4 = 1; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span432 = CollectionsMarshal.AsSpan(list125); - num5 = 0; - span432[num5] = 128; - skipAetheryteCondition26.InTerritory = list125; + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = 128; + skipAetheryteCondition26.InTerritory = list124; skipConditions36.AetheryteShortcutIf = skipAetheryteCondition; questStep104.SkipConditions = skipConditions; reference324 = questStep; - num3++; - span431[num3] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128); + span182[1] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128); questSequence230.Steps = list3; reference323 = questSequence; - num++; - ref QuestSequence reference325 = ref span430[num]; + ref QuestSequence reference325 = ref span181[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence231 = questSequence; - num3 = 8; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); - Span span433 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - ref QuestStep reference326 = ref span433[num2]; + num2 = 8; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span183 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference326 = ref span183[0]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.73785f, 59.519302f, -120.80934f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -80139,22 +66495,16 @@ public static class AssemblyQuestLoader SkipConditions skipConditions37 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions12 = skipStepConditions; - 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); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list4; skipConditions37.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -80163,33 +66513,25 @@ public static class AssemblyQuestLoader }; questStep105.SkipConditions = skipConditions; reference326 = questStep; - num2++; - ref QuestStep reference327 = ref span433[num2]; + ref QuestStep reference327 = ref span183[1]; questStep = new QuestStep(EInteractionType.Interact, 2002380u, new Vector3(-338.8877f, 61.722656f, -120.25641f), 180) { IgnoreDistanceToObject = true }; QuestStep questStep106 = questStep; - 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); + 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); questStep106.CompletionQuestVariablesFlags = list4; reference327 = questStep; - num2++; - ref QuestStep reference328 = ref span433[num2]; + ref QuestStep reference328 = ref span183[2]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-275.93335f, 64.09534f, -197.701f), 180) { Fly = true @@ -80199,50 +66541,36 @@ public static class AssemblyQuestLoader SkipConditions skipConditions38 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions13 = skipStepConditions; - 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); + 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); skipStepConditions13.CompletionQuestVariablesFlags = list4; skipConditions38.StepIf = skipStepConditions; questStep107.SkipConditions = skipConditions; reference328 = questStep; - num2++; - ref QuestStep reference329 = ref span433[num2]; + ref QuestStep reference329 = ref span183[3]; questStep = new QuestStep(EInteractionType.Interact, 2002379u, new Vector3(-274.28094f, 65.81213f, -196.97876f), 180); QuestStep questStep108 = questStep; - 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); + 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); questStep108.CompletionQuestVariablesFlags = list4; reference329 = questStep; - num2++; - ref QuestStep reference330 = ref span433[num2]; + ref QuestStep reference330 = ref span183[4]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-326.9142f, 64.60336f, -267.98495f), 180) { Fly = true @@ -80252,50 +66580,36 @@ public static class AssemblyQuestLoader SkipConditions skipConditions39 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions14 = skipStepConditions; - 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); + 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); skipStepConditions14.CompletionQuestVariablesFlags = list4; skipConditions39.StepIf = skipStepConditions; questStep109.SkipConditions = skipConditions; reference330 = questStep; - num2++; - ref QuestStep reference331 = ref span433[num2]; + ref QuestStep reference331 = ref span183[5]; questStep = new QuestStep(EInteractionType.Interact, 2002382u, new Vector3(-327.87067f, 65.87317f, -267.59753f), 180); QuestStep questStep110 = questStep; - 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); + 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); questStep110.CompletionQuestVariablesFlags = list4; reference331 = questStep; - num2++; - ref QuestStep reference332 = ref span433[num2]; + ref QuestStep reference332 = ref span183[6]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-360.0172f, 65.166664f, -312.24045f), 180) { Fly = true @@ -80305,52 +66619,38 @@ public static class AssemblyQuestLoader SkipConditions skipConditions40 = skipConditions; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions15 = skipStepConditions; - 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); + 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); skipStepConditions15.CompletionQuestVariablesFlags = list4; skipConditions40.StepIf = skipStepConditions; questStep111.SkipConditions = skipConditions; reference332 = questStep; - num2++; - ref QuestStep reference333 = ref span433[num2]; + ref QuestStep reference333 = ref span183[7]; questStep = new QuestStep(EInteractionType.Interact, 2002381u, new Vector3(-360.55542f, 66.33093f, -310.87207f), 180); QuestStep questStep112 = questStep; - 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); + 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); questStep112.CompletionQuestVariablesFlags = list4; reference333 = questStep; questSequence231.Steps = list3; reference325 = questSequence; - num++; - ref QuestSequence reference334 = ref span430[num]; + ref QuestSequence reference334 = ref span181[2]; questSequence = new QuestSequence { Sequence = 2 @@ -80359,27 +66659,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span442 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span442[num3] = new QuestStep(EInteractionType.Interact, 2002383u, new Vector3(-437.94922f, 51.377075f, -321.24823f), 180) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 2002383u, new Vector3(-437.94922f, 51.377075f, -321.24823f), 180) { Fly = true }; questSequence232.Steps = list3; reference334 = questSequence; - num++; - ref QuestSequence reference335 = ref span430[num]; + ref QuestSequence reference335 = ref span181[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence233 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -80397,19 +66692,16 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot100 = questRoot; num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span444 = CollectionsMarshal.AsSpan(list126); - index = 0; - span444[index] = "liza"; - questRoot100.Author = list126; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + CollectionsMarshal.AsSpan(list125)[0] = "liza"; + questRoot100.Author = list125; QuestRoot questRoot101 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span445 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference336 = ref span445[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span192 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference336 = ref span192[0]; questSequence = new QuestSequence { Sequence = 0 @@ -80418,9 +66710,7 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span446 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - ref QuestStep reference337 = ref span446[num3]; + ref QuestStep reference337 = ref CollectionsMarshal.AsSpan(list3)[0]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -80438,39 +66728,33 @@ public static class AssemblyQuestLoader InSameTerritory = true }; SkipAetheryteCondition skipAetheryteCondition27 = skipAetheryteCondition; - num5 = 1; - List list127 = new List(num5); - CollectionsMarshal.SetCount(list127, num5); - Span span447 = CollectionsMarshal.AsSpan(list127); - num4 = 0; - span447[num4] = 128; - skipAetheryteCondition27.InTerritory = list127; + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = 128; + skipAetheryteCondition27.InTerritory = list126; skipConditions41.AetheryteShortcutIf = skipAetheryteCondition; questStep113.SkipConditions = skipConditions; reference337 = questStep; questSequence234.Steps = list3; reference336 = questSequence; - num++; - ref QuestSequence reference338 = ref span445[num]; + ref QuestSequence reference338 = ref span192[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence235 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; questSequence235.Steps = list3; reference338 = questSequence; - num++; - ref QuestSequence reference339 = ref span445[num]; + ref QuestSequence reference339 = ref span192[2]; questSequence = new QuestSequence { Sequence = 2 @@ -80479,27 +66763,22 @@ public static class AssemblyQuestLoader num2 = 1; list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span449 = CollectionsMarshal.AsSpan(list3); - num3 = 0; - span449[num3] = new QuestStep(EInteractionType.Interact, 1007845u, new Vector3(256.33618f, -3.2069032f, 58.091064f), 139) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.Interact, 1007845u, new Vector3(256.33618f, -3.2069032f, 58.091064f), 139) { StopDistance = 5f }; questSequence236.Steps = list3; reference339 = questSequence; - num++; - ref QuestSequence reference340 = ref span445[num]; + ref QuestSequence reference340 = ref span192[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence237 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -80522,16 +66801,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 8; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 8; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -80539,9 +66815,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -80559,52 +66833,44 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = 128; + CollectionsMarshal.AsSpan(list4)[0] = 128; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - ref QuestStep reference4 = ref span5[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, 2002715u, new Vector3(-259.02197f, -15.762573f, -344.71655f), 156) { StopDistance = 4.5f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + Span span3 = CollectionsMarshal.AsSpan(list6); + span3[0] = 1949u; + span3[1] = 2285u; obj5.KillEnemyDataIds = list6; reference4 = obj5; obj4.Steps = list5; reference3 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -80612,26 +66878,21 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 2002716u, new Vector3(-259.02197f, -15.94574f, -344.71655f), 156) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 2002716u, new Vector3(-259.02197f, -15.94574f, -344.71655f), 156) { StopDistance = 4.5f }; obj6.Steps = list7; reference5 = obj6; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -80642,8 +66903,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list8; reference6 = obj7; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[4]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -80651,9 +66911,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1004093u, new Vector3(-25.162231f, 12.200003f, 110.795654f), 131) { AethernetShortcut = new AethernetShortcut { @@ -80663,18 +66921,15 @@ public static class AssemblyQuestLoader }; obj8.Steps = list9; reference7 = obj8; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[5]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -80685,8 +66940,7 @@ public static class AssemblyQuestLoader }; obj9.Steps = list10; reference8 = obj9; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[6]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -80694,23 +66948,19 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 1000357u, new Vector3(68.314575f, 8.199997f, -170.51965f), 133); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1000357u, new Vector3(68.314575f, 8.199997f, -170.51965f), 133); obj10.Steps = list11; reference9 = obj10; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[7]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -80720,23 +66970,19 @@ public static class AssemblyQuestLoader }, ItemId = 2905u }; - num2++; - span12[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + span4[1] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3689u }; - num2++; - span12[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + span4[2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3466u }; - num2++; - span12[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 128) + span4[3] = new QuestStep(EInteractionType.EquipItem, null, null, 128) { ItemId = 3897u }; - num2++; - span12[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + span4[4] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { NextQuestId = new QuestId(1101) }; @@ -80749,16 +66995,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "liza"; + CollectionsMarshal.AsSpan(list13)[0] = "liza"; questRoot2.Author = list13; - index = 5; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference11 = ref span14[num]; + num = 5; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span5 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference11 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -80766,9 +67009,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference12 = ref span15[index2]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep obj13 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -80786,35 +67027,29 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - index3 = 0; - span16[index3] = 128; + CollectionsMarshal.AsSpan(list16)[0] = 128; obj14.InTerritory = list16; skipConditions2.AetheryteShortcutIf = obj14; obj13.SkipConditions = skipConditions2; reference12 = obj13; obj12.Steps = list15; reference11 = obj12; - num++; - ref QuestSequence reference13 = ref span14[num]; + ref QuestSequence reference13 = ref span5[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj15.Steps = list17; reference13 = obj15; - num++; - ref QuestSequence reference14 = ref span14[num]; + ref QuestSequence reference14 = ref span5[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -80822,33 +67057,25 @@ public static class AssemblyQuestLoader num2 = 7; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - ref QuestStep reference15 = ref span18[index2]; + Span span6 = CollectionsMarshal.AsSpan(list18); + ref QuestStep reference15 = ref span6[0]; QuestStep obj17 = new QuestStep(EInteractionType.Action, 1007843u, new Vector3(388.08264f, 7.8583374f, 40.512573f), 139) { Action = EAction.Esuna }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list19; reference15 = obj17; - index2++; - ref QuestStep reference16 = ref span18[index2]; + ref QuestStep reference16 = ref span6[1]; QuestStep obj18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(423.76727f, 4.109605f, 74.008965f), 139) { Mount = true @@ -80858,49 +67085,35 @@ public static class AssemblyQuestLoader num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list20; skipConditions3.StepIf = skipStepConditions; obj18.SkipConditions = skipConditions3; reference16 = obj18; - index2++; - ref QuestStep reference17 = ref span18[index2]; + ref QuestStep reference17 = ref span6[2]; QuestStep obj19 = new QuestStep(EInteractionType.Action, 1007844u, new Vector3(417.16638f, 3.6468506f, 59.64746f), 139) { Action = EAction.Esuna }; - 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); + 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); obj19.CompletionQuestVariablesFlags = list21; reference17 = obj19; - index2++; - ref QuestStep reference18 = ref span18[index2]; + ref QuestStep reference18 = ref span6[3]; QuestStep obj20 = new QuestStep(EInteractionType.Action, 1007840u, new Vector3(427.2068f, 7.6130996f, 141.34424f), 139) { Action = EAction.Esuna @@ -80908,49 +67121,35 @@ public static class AssemblyQuestLoader num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - 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); + 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); obj20.CompletionQuestVariablesFlags = list22; reference18 = obj20; - index2++; - ref QuestStep reference19 = ref span18[index2]; + ref QuestStep reference19 = ref span6[4]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(477.80576f, 10.397504f, 104.84231f), 139); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list23; skipStepConditions2.Flying = ELockedSkipCondition.Unlocked; skipConditions4.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions4; reference19 = questStep; - index2++; - ref QuestStep reference20 = ref span18[index2]; + ref QuestStep reference20 = ref span6[5]; QuestStep obj21 = new QuestStep(EInteractionType.Action, 1007842u, new Vector3(477.25635f, 8.499207f, 108.07959f), 139) { StopDistance = 0.5f, @@ -80960,64 +67159,47 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - 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); + 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); obj21.CompletionQuestVariablesFlags = list24; reference20 = obj21; - index2++; - ref QuestStep reference21 = ref span18[index2]; + ref QuestStep reference21 = ref span6[6]; QuestStep obj22 = new QuestStep(EInteractionType.Action, 1007841u, new Vector3(503.04407f, 16.468494f, 72.46509f), 139) { Fly = true, Action = EAction.Esuna }; - 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); + 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); obj22.CompletionQuestVariablesFlags = list25; reference21 = obj22; obj16.Steps = list18; reference14 = obj16; - num++; - ref QuestSequence reference22 = ref span14[num]; + ref QuestSequence reference22 = ref span5[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj23.Steps = list26; reference22 = obj23; - num++; - ref QuestSequence reference23 = ref span14[num]; + ref QuestSequence reference23 = ref span5[4]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -81025,9 +67207,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -81046,26 +67226,21 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot3.Author = list28; - index = 4; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference24 = ref span29[num]; + num = 4; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span14 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference24 = ref span14[0]; QuestSequence obj25 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -81083,17 +67258,14 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = 128; + CollectionsMarshal.AsSpan(list31)[0] = 128; obj27.InTerritory = list31; skipConditions5.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions5; reference25 = obj26; obj25.Steps = list30; reference24 = obj25; - num++; - ref QuestSequence reference26 = ref span29[num]; + ref QuestSequence reference26 = ref span14[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -81101,51 +67273,40 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj28.Steps = list32; reference26 = obj28; - num++; - ref QuestSequence reference27 = ref span29[num]; + ref QuestSequence reference27 = ref span14[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num2 = 0; - ref QuestStep reference28 = ref span33[num2]; + num2 = 3; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span15 = CollectionsMarshal.AsSpan(list33); + ref QuestStep reference28 = ref span15[0]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1007838u, new Vector3(256.36682f, -3.2069032f, 58.091064f), 139) { StopDistance = 5f }; - 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); + 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); obj30.CompletionQuestVariablesFlags = list34; reference28 = obj30; - num2++; - ref QuestStep reference29 = ref span33[num2]; + ref QuestStep reference29 = ref span15[1]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1007846u, new Vector3(262.80603f, -2.852741f, 63.1875f), 139) { StopDistance = 5f @@ -81153,46 +67314,32 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - 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); + 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); obj31.CompletionQuestVariablesFlags = list35; reference29 = obj31; - num2++; - ref QuestStep reference30 = ref span33[num2]; + ref QuestStep reference30 = ref span15[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1007847u, new Vector3(257.98413f, -3.4f, 49.05774f), 139); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list36; reference30 = questStep2; obj29.Steps = list33; reference27 = obj29; - num++; - ref QuestSequence reference31 = ref span29[num]; + ref QuestSequence reference31 = ref span14[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -81200,9 +67347,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007849u, new Vector3(231.79968f, 5.18473f, 61.142822f), 139) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007849u, new Vector3(231.79968f, 5.18473f, 61.142822f), 139) { NextQuestId = new QuestId(1671) }; @@ -81215,26 +67360,21 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "liza"; + CollectionsMarshal.AsSpan(list38)[0] = "liza"; questRoot4.Author = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference32 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span19 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference32 = ref span19[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -81252,8 +67392,7 @@ public static class AssemblyQuestLoader }; obj33.Steps = list40; reference32 = obj33; - num++; - ref QuestSequence reference33 = ref span39[num]; + ref QuestSequence reference33 = ref span19[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -81261,16 +67400,12 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref QuestStep reference34 = ref span41[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list41)[0]; 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); - Span span42 = CollectionsMarshal.AsSpan(list42); - index3 = 0; - span42[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSACN149_01103_Q1_000_000"), @@ -81280,18 +67415,15 @@ public static class AssemblyQuestLoader reference34 = questStep3; obj34.Steps = list41; reference33 = obj34; - num++; - ref QuestSequence reference35 = ref span39[num]; + ref QuestSequence reference35 = ref span19[2]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(458) }; @@ -81304,16 +67436,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot5.Author = list44; - index = 2; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference36 = ref span45[num]; + num = 2; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span20 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference36 = ref span20[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -81321,23 +67450,19 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128); obj36.Steps = list46; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span45[num]; + ref QuestSequence reference37 = ref span20[1]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -81346,23 +67471,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - num2++; - span47[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + span21[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num2++; - span47[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + span21[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - num2++; - span47[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + span21[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - num2++; - span47[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + span21[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj37.Steps = list47; reference37 = obj37; questRoot5.QuestSequence = list45; @@ -81372,16 +67493,13 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot6.Author = list48; - index = 2; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference38 = ref span49[num]; + num = 2; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span22 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference38 = ref span22[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -81389,23 +67507,19 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj38.Steps = list50; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span22[1]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -81415,23 +67529,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - num2++; - span51[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + span23[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num2++; - span51[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + span23[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - num2++; - span51[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + span23[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - num2++; - span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + span23[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj39.Steps = list51; reference39 = obj39; questRoot6.QuestSequence = list49; @@ -81441,16 +67551,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot7.Author = list52; - index = 2; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference40 = ref span53[num]; + num = 2; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span24 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference40 = ref span24[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -81458,23 +67565,19 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj40.Steps = list54; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span24[1]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -81484,23 +67587,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + span25[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num2++; - span55[num2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) + span25[2] = new QuestStep(EInteractionType.Interact, 1002484u, new Vector3(270.71033f, 4.4031205f, 719.9968f), 135) { TargetTerritoryId = (ushort)250 }; - num2++; - span55[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) + span25[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 250) { Aetheryte = EAetheryteLocation.WolvesDenPier }; - num2++; - span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); + span25[4] = new QuestStep(EInteractionType.CompleteQuest, 1005184u, new Vector3(0.015197754f, 3.5836844f, -30.380737f), 250); obj41.Steps = list55; reference41 = obj41; questRoot7.QuestSequence = list53; @@ -81510,16 +67609,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list56)[0] = "Cacahuetes"; questRoot8.Author = list56; - index = 2; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference42 = ref span57[num]; + num = 2; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span26 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference42 = ref span26[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -81527,9 +67623,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -81547,27 +67641,22 @@ public static class AssemblyQuestLoader }; obj42.Steps = list58; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span57[num]; + ref QuestSequence reference43 = ref span26[1]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129); - index3 = 1; - List list60 = new List(index3); - CollectionsMarshal.SetCount(list60, index3); - Span span60 = CollectionsMarshal.AsSpan(list60); - num3 = 0; - span60[num3] = new DialogueChoice + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSFSH011_01107_Q1_000_001") @@ -81584,18 +67673,15 @@ public static class AssemblyQuestLoader num = 2; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "Cacahuetes"; - index++; - span61[index] = "Friendly"; + Span span28 = CollectionsMarshal.AsSpan(list61); + span28[0] = "Cacahuetes"; + span28[1] = "Friendly"; questRoot9.Author = list61; - index = 2; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference45 = ref span62[num]; + num = 2; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span29 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference45 = ref span29[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -81603,9 +67689,8 @@ public static class AssemblyQuestLoader num2 = 3; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 129) + Span span30 = CollectionsMarshal.AsSpan(list63); + span30[0] = new QuestStep(EInteractionType.EquipItem, null, null, 129) { ItemId = 2571u, SkipConditions = new SkipConditions @@ -81619,24 +67704,20 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj44.Steps = list63; reference45 = obj44; - num++; - ref QuestSequence reference46 = ref span62[num]; + ref QuestSequence reference46 = ref span29[1]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -81658,8 +67739,7 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262186u) } }; - num2++; - span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) + span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1000857u, new Vector3(-165.27051f, 5.2500057f, 164.29382f), 129) { Comment = "Complete quest", AethernetShortcut = new AethernetShortcut @@ -81678,16 +67758,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "pot0to"; + CollectionsMarshal.AsSpan(list65)[0] = "pot0to"; questRoot10.Author = list65; - index = 20; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference47 = ref span66[num]; + num = 20; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span32 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference47 = ref span32[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -81695,9 +67772,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -81711,26 +67786,22 @@ public static class AssemblyQuestLoader }; obj46.Steps = list67; reference47 = obj46; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span32[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj47.Steps = list68; reference48 = obj47; - num++; - ref QuestSequence reference49 = ref span66[num]; + ref QuestSequence reference49 = ref span32[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -81738,33 +67809,28 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj48.Steps = list69; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span32[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Comment = "Craft/purchase off marketboard an erudite's picatrix of healing and meld 2 grade 3 quicktongue materia to it." }; - num2++; - span70[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) + span33[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -81778,8 +67844,7 @@ public static class AssemblyQuestLoader }; obj49.Steps = list70; reference50 = obj49; - num++; - ref QuestSequence reference51 = ref span66[num]; + ref QuestSequence reference51 = ref span32[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -81787,9 +67852,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) { Fly = true, Comment = "Queue for A Relic Reborn: The Chimera", @@ -81800,18 +67863,16 @@ public static class AssemblyQuestLoader }; obj50.Steps = list71; reference51 = obj50; - num++; - ref QuestSequence reference52 = ref span66[num]; + ref QuestSequence reference52 = ref span32[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -81823,12 +67884,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span72[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span34[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj51.Steps = list72; reference52 = obj51; - num++; - ref QuestSequence reference53 = ref span66[num]; + ref QuestSequence reference53 = ref span32[6]; QuestSequence obj52 = new QuestSequence { Sequence = 6 @@ -81836,9 +67895,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -81852,18 +67909,15 @@ public static class AssemblyQuestLoader }; obj52.Steps = list73; reference53 = obj52; - num++; - ref QuestSequence reference54 = ref span66[num]; + ref QuestSequence reference54 = ref span32[7]; QuestSequence obj53 = new QuestSequence { Sequence = 7 }; - 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) + num2 = 1; + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) { Fly = true, Comment = "Queue for Amdapor Keep", @@ -81874,8 +67928,7 @@ public static class AssemblyQuestLoader }; obj53.Steps = list74; reference54 = obj53; - num++; - ref QuestSequence reference55 = ref span66[num]; + ref QuestSequence reference55 = ref span32[8]; QuestSequence obj54 = new QuestSequence { Sequence = 8 @@ -81883,23 +67936,19 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1001304u, new Vector3(25.589355f, 29f, -825.37573f), 156); obj54.Steps = list75; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span66[num]; + ref QuestSequence reference56 = ref span32[9]; QuestSequence obj55 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -81911,12 +67960,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span76[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span35[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj55.Steps = list76; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span66[num]; + ref QuestSequence reference57 = ref span32[10]; QuestSequence obj56 = new QuestSequence { Sequence = 10 @@ -81924,9 +67971,8 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 138) + Span span36 = CollectionsMarshal.AsSpan(list77); + span36[0] = new QuestStep(EInteractionType.EquipItem, null, null, 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, ItemId = 2192u, @@ -81938,8 +67984,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference58 = ref span77[index2]; + ref QuestStep reference58 = ref span36[1]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 768u, new Vector3(-317.9305f, -39.35494f, -298.3956f), 138) { Fly = true, @@ -81948,46 +67993,35 @@ public static class AssemblyQuestLoader num3 = 3; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - index3 = 0; - span78[index3] = 766u; - index3++; - span78[index3] = 767u; - index3++; - span78[index3] = 768u; + Span span37 = CollectionsMarshal.AsSpan(list78); + span37[0] = 766u; + span37[1] = 767u; + span37[2] = 768u; obj57.KillEnemyDataIds = list78; - 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; + 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; obj57.CompletionQuestVariablesFlags = list79; reference58 = obj57; obj56.Steps = list77; reference57 = obj56; - num++; - ref QuestSequence reference59 = ref span66[num]; + ref QuestSequence reference59 = ref span32[11]; QuestSequence obj58 = new QuestSequence { Sequence = 11 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -81999,12 +68033,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span39[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj58.Steps = list80; reference59 = obj58; - num++; - ref QuestSequence reference60 = ref span66[num]; + ref QuestSequence reference60 = ref span32[12]; QuestSequence obj59 = new QuestSequence { Sequence = 12 @@ -82012,9 +68044,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) { Comment = "Queue for A Relic Reborn: The Hydra", DutyOptions = new DutyOptions @@ -82024,18 +68054,16 @@ public static class AssemblyQuestLoader }; obj59.Steps = list81; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span66[num]; + ref QuestSequence reference61 = ref span32[13]; QuestSequence obj60 = new QuestSequence { Sequence = 13 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -82047,12 +68075,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span82[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span40[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj60.Steps = list82; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span66[num]; + ref QuestSequence reference62 = ref span32[14]; QuestSequence obj61 = new QuestSequence { Sequence = 14 @@ -82060,25 +68086,20 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - 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); + 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); obj61.Steps = list83; reference62 = obj61; - num++; - ref QuestSequence reference63 = ref span66[num]; + ref QuestSequence reference63 = ref span32[15]; QuestSequence obj62 = new QuestSequence { Sequence = 15 }; - 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) + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -82087,8 +68108,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list84; reference63 = obj62; - num++; - ref QuestSequence reference64 = ref span66[num]; + ref QuestSequence reference64 = ref span32[16]; QuestSequence obj63 = new QuestSequence { Sequence = 16 @@ -82096,9 +68116,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Duty, null, null, 154) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -82107,18 +68125,15 @@ public static class AssemblyQuestLoader }; obj63.Steps = list85; reference64 = obj63; - num++; - ref QuestSequence reference65 = ref span66[num]; + ref QuestSequence reference65 = ref span32[17]; QuestSequence obj64 = new QuestSequence { Sequence = 17 }; - 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) + num2 = 1; + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Duty, null, null, 154) { DutyOptions = new DutyOptions { @@ -82127,8 +68142,7 @@ public static class AssemblyQuestLoader }; obj64.Steps = list86; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span66[num]; + ref QuestSequence reference66 = ref span32[18]; QuestSequence obj65 = new QuestSequence { Sequence = 18 @@ -82136,23 +68150,19 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj65.Steps = list87; reference66 = obj65; - num++; - ref QuestSequence reference67 = ref span66[num]; + ref QuestSequence reference67 = ref span32[19]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, ItemId = 6267u, @@ -82165,8 +68175,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span88[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) + span42[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(437.6279f, -3.1627378f, -67.35514f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -82178,8 +68187,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span42[2] = new QuestStep(EInteractionType.CompleteQuest, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj66.Steps = list88; reference67 = obj66; questRoot10.QuestSequence = list66; @@ -82189,18 +68197,15 @@ public static class AssemblyQuestLoader num = 2; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "liza"; - index++; - span89[index] = "Friendly"; + Span span43 = CollectionsMarshal.AsSpan(list89); + span43[0] = "liza"; + span43[1] = "Friendly"; questRoot11.Author = list89; - index = 4; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference68 = ref span90[num]; + num = 4; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span44 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference68 = ref span44[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -82208,9 +68213,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - ref QuestStep reference69 = ref span91[index2]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list91)[0]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -82228,9 +68231,7 @@ public static class AssemblyQuestLoader num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span92 = CollectionsMarshal.AsSpan(list92); - index3 = 0; - span92[index3] = 128; + CollectionsMarshal.AsSpan(list92)[0] = 128; obj69.InTerritory = list92; skipConditions6.AetheryteShortcutIf = obj69; skipConditions6.AethernetShortcutIf = new SkipAetheryteCondition @@ -82241,26 +68242,22 @@ public static class AssemblyQuestLoader reference69 = obj68; obj67.Steps = list91; reference68 = obj67; - num++; - ref QuestSequence reference70 = ref span90[num]; + ref QuestSequence reference70 = ref span44[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj70.Steps = list93; reference70 = obj70; - num++; - ref QuestSequence reference71 = ref span90[num]; + ref QuestSequence reference71 = ref span44[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -82268,9 +68265,7 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -82279,18 +68274,15 @@ public static class AssemblyQuestLoader }; obj71.Steps = list94; reference71 = obj71; - num++; - ref QuestSequence reference72 = ref span90[num]; + ref QuestSequence reference72 = ref span44[3]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -82308,18 +68300,15 @@ public static class AssemblyQuestLoader num = 2; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; - index++; - span96[index] = "Friendly"; + Span span45 = CollectionsMarshal.AsSpan(list96); + span45[0] = "liza"; + span45[1] = "Friendly"; questRoot12.Author = list96; - index = 4; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference73 = ref span97[num]; + num = 4; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span46 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference73 = ref span46[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -82327,9 +68316,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -82342,26 +68329,22 @@ public static class AssemblyQuestLoader }; obj73.Steps = list98; reference73 = obj73; - num++; - ref QuestSequence reference74 = ref span97[num]; + ref QuestSequence reference74 = ref span46[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj74.Steps = list99; reference74 = obj74; - num++; - ref QuestSequence reference75 = ref span97[num]; + ref QuestSequence reference75 = ref span46[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -82369,9 +68352,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -82380,18 +68361,15 @@ public static class AssemblyQuestLoader }; obj75.Steps = list100; reference75 = obj75; - num++; - ref QuestSequence reference76 = ref span97[num]; + ref QuestSequence reference76 = ref span46[3]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -82404,18 +68382,15 @@ public static class AssemblyQuestLoader num = 2; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; - index++; - span102[index] = "Friendly"; + Span span47 = CollectionsMarshal.AsSpan(list102); + span47[0] = "liza"; + span47[1] = "Friendly"; questRoot13.Author = list102; - index = 4; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference77 = ref span103[num]; + num = 4; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span48 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference77 = ref span48[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -82423,9 +68398,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -82438,26 +68411,22 @@ public static class AssemblyQuestLoader }; obj77.Steps = list104; reference77 = obj77; - num++; - ref QuestSequence reference78 = ref span103[num]; + ref QuestSequence reference78 = ref span48[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj78.Steps = list105; reference78 = obj78; - num++; - ref QuestSequence reference79 = ref span103[num]; + ref QuestSequence reference79 = ref span48[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -82465,9 +68434,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -82476,18 +68443,15 @@ public static class AssemblyQuestLoader }; obj79.Steps = list106; reference79 = obj79; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span48[3]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -82500,18 +68464,15 @@ public static class AssemblyQuestLoader num = 2; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; - index++; - span108[index] = "Friendly"; + Span span49 = CollectionsMarshal.AsSpan(list108); + span49[0] = "liza"; + span49[1] = "Friendly"; questRoot14.Author = list108; - index = 4; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference81 = ref span109[num]; + num = 4; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span50 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference81 = ref span50[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -82519,9 +68480,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - ref QuestStep reference82 = ref span110[index2]; + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestStep obj82 = new QuestStep(EInteractionType.AcceptQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -82536,12 +68495,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list111 = new List(index3); - CollectionsMarshal.SetCount(list111, index3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num3 = 0; - span111[num3] = 128; + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = 128; obj83.InTerritory = list111; skipConditions7.AetheryteShortcutIf = obj83; skipConditions7.AethernetShortcutIf = new SkipAetheryteCondition @@ -82552,18 +68509,16 @@ public static class AssemblyQuestLoader reference82 = obj82; obj81.Steps = list110; reference81 = obj81; - num++; - ref QuestSequence reference83 = ref span109[num]; + ref QuestSequence reference83 = ref span50[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list112 = new List(index2); - CollectionsMarshal.SetCount(list112, index2); - Span span112 = CollectionsMarshal.AsSpan(list112); - num2 = 0; - ref QuestStep reference84 = ref span112[num2]; + num2 = 3; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span51 = CollectionsMarshal.AsSpan(list112); + ref QuestStep reference84 = ref span51[0]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -82574,9 +68529,7 @@ public static class AssemblyQuestLoader num3 = 1; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span113 = CollectionsMarshal.AsSpan(list113); - index3 = 0; - span113[index3] = 155; + CollectionsMarshal.AsSpan(list113)[0] = 155; skipStepConditions3.InTerritory = list113; skipStepConditions3.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions8.StepIf = skipStepConditions3; @@ -82584,19 +68537,16 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list114 = new List(index3); - CollectionsMarshal.SetCount(list114, index3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = 155; + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = 155; obj86.InTerritory = list114; obj86.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions8.AetheryteShortcutIf = obj86; obj85.SkipConditions = skipConditions8; reference84 = obj85; - num2++; - ref QuestStep reference85 = ref span112[num2]; + ref QuestStep reference85 = ref span51[1]; QuestStep obj87 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 @@ -82606,16 +68556,13 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span115 = CollectionsMarshal.AsSpan(list115); - index3 = 0; - span115[index3] = 155; + CollectionsMarshal.AsSpan(list115)[0] = 155; skipStepConditions4.InTerritory = list115; skipStepConditions4.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions9.StepIf = skipStepConditions4; obj87.SkipConditions = skipConditions9; reference85 = obj87; - num2++; - span112[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + span51[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -82629,8 +68576,7 @@ public static class AssemblyQuestLoader }; obj84.Steps = list112; reference83 = obj84; - num++; - ref QuestSequence reference86 = ref span109[num]; + ref QuestSequence reference86 = ref span50[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -82638,9 +68584,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -82649,18 +68593,15 @@ public static class AssemblyQuestLoader }; obj88.Steps = list116; reference86 = obj88; - num++; - ref QuestSequence reference87 = ref span109[num]; + ref QuestSequence reference87 = ref span50[3]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -82678,18 +68619,15 @@ public static class AssemblyQuestLoader num = 2; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; - index++; - span118[index] = "Friendly"; + Span span52 = CollectionsMarshal.AsSpan(list118); + span52[0] = "liza"; + span52[1] = "Friendly"; questRoot15.Author = list118; - index = 4; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference88 = ref span119[num]; + num = 4; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span53 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference88 = ref span53[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -82697,9 +68635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -82712,18 +68648,16 @@ public static class AssemblyQuestLoader }; obj90.Steps = list120; reference88 = obj90; - num++; - ref QuestSequence reference89 = ref span119[num]; + ref QuestSequence reference89 = ref span53[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list121 = new List(index2); - CollectionsMarshal.SetCount(list121, index2); - Span span121 = CollectionsMarshal.AsSpan(list121); - num2 = 0; - ref QuestStep reference90 = ref span121[num2]; + num2 = 3; + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + Span span54 = CollectionsMarshal.AsSpan(list121); + ref QuestStep reference90 = ref span54[0]; QuestStep obj92 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -82731,12 +68665,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index3 = 1; - List list122 = new List(index3); - CollectionsMarshal.SetCount(list122, index3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - span122[num3] = 155; + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = 155; skipStepConditions5.InTerritory = list122; skipStepConditions5.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions10.StepIf = skipStepConditions5; @@ -82747,35 +68679,29 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - index3 = 0; - span123[index3] = 155; + CollectionsMarshal.AsSpan(list123)[0] = 155; obj93.InTerritory = list123; obj93.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions10.AetheryteShortcutIf = obj93; obj92.SkipConditions = skipConditions10; reference90 = obj92; - num2++; - ref QuestStep reference91 = ref span121[num2]; + ref QuestStep reference91 = ref span54[1]; 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(); - index3 = 1; - List list124 = new List(index3); - CollectionsMarshal.SetCount(list124, index3); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - span124[num3] = 155; + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = 155; skipStepConditions6.InTerritory = list124; skipStepConditions6.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions11.StepIf = skipStepConditions6; obj94.SkipConditions = skipConditions11; reference91 = obj94; - num2++; - span121[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + span54[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -82789,8 +68715,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list121; reference89 = obj91; - num++; - ref QuestSequence reference92 = ref span119[num]; + ref QuestSequence reference92 = ref span53[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -82798,9 +68723,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -82809,18 +68732,15 @@ public static class AssemblyQuestLoader }; obj95.Steps = list125; reference92 = obj95; - num++; - ref QuestSequence reference93 = ref span119[num]; + ref QuestSequence reference93 = ref span53[3]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -82833,18 +68753,15 @@ public static class AssemblyQuestLoader num = 2; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = "liza"; - index++; - span127[index] = "Friendly"; + Span span55 = CollectionsMarshal.AsSpan(list127); + span55[0] = "liza"; + span55[1] = "Friendly"; questRoot16.Author = list127; - index = 4; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref QuestSequence reference94 = ref span128[num]; + num = 4; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + Span span56 = CollectionsMarshal.AsSpan(list128); + ref QuestSequence reference94 = ref span56[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -82852,9 +68769,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -82867,18 +68782,16 @@ public static class AssemblyQuestLoader }; obj97.Steps = list129; reference94 = obj97; - num++; - ref QuestSequence reference95 = ref span128[num]; + ref QuestSequence reference95 = ref span56[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list130 = new List(index2); - CollectionsMarshal.SetCount(list130, index2); - Span span130 = CollectionsMarshal.AsSpan(list130); - num2 = 0; - ref QuestStep reference96 = ref span130[num2]; + num2 = 3; + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + Span span57 = CollectionsMarshal.AsSpan(list130); + ref QuestStep reference96 = ref span57[0]; QuestStep obj99 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(123.6f, 31.6f, -768.8f), 156) { Fly = true, @@ -82889,9 +68802,7 @@ public static class AssemblyQuestLoader num3 = 1; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - Span span131 = CollectionsMarshal.AsSpan(list131); - index3 = 0; - span131[index3] = 155; + CollectionsMarshal.AsSpan(list131)[0] = 155; skipStepConditions7.InTerritory = list131; skipStepConditions7.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions12.StepIf = skipStepConditions7; @@ -82899,19 +68810,16 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list132 = new List(index3); - CollectionsMarshal.SetCount(list132, index3); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - span132[num3] = 155; + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = 155; obj100.InTerritory = list132; obj100.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions12.AetheryteShortcutIf = obj100; obj99.SkipConditions = skipConditions12; reference96 = obj99; - num2++; - ref QuestStep reference97 = ref span130[num2]; + ref QuestStep reference97 = ref span57[1]; QuestStep obj101 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(129.3f, 31.71f, -774.87f), 156) { TargetTerritoryId = (ushort)155 @@ -82921,16 +68829,13 @@ public static class AssemblyQuestLoader num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span133 = CollectionsMarshal.AsSpan(list133); - index3 = 0; - span133[index3] = 155; + CollectionsMarshal.AsSpan(list133)[0] = 155; skipStepConditions8.InTerritory = list133; skipStepConditions8.AetheryteLocked = EAetheryteLocation.MorDhona; skipConditions13.StepIf = skipStepConditions8; obj101.SkipConditions = skipConditions13; reference97 = obj101; - num2++; - span130[num2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) + span57[2] = new QuestStep(EInteractionType.Interact, 1007625u, new Vector3(-354.1772f, 214.60808f, 692.65283f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -82944,8 +68849,7 @@ public static class AssemblyQuestLoader }; obj98.Steps = list130; reference95 = obj98; - num++; - ref QuestSequence reference98 = ref span128[num]; + ref QuestSequence reference98 = ref span56[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -82953,9 +68857,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -82964,18 +68866,15 @@ public static class AssemblyQuestLoader }; obj102.Steps = list134; reference98 = obj102; - num++; - ref QuestSequence reference99 = ref span128[num]; + ref QuestSequence reference99 = ref span56[3]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; @@ -82988,16 +68887,12 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list136)[0] = "Cacahuetes"; questRoot17.Author = list136; - index = 1; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference100 = ref span137[num]; + num = 1; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + ref QuestSequence reference100 = ref CollectionsMarshal.AsSpan(list137)[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -83005,9 +68900,8 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - ref QuestStep reference101 = ref span138[index2]; + Span span58 = CollectionsMarshal.AsSpan(list138); + ref QuestStep reference101 = ref span58[0]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -83017,20 +68911,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - index3 = 1; - List list139 = new List(index3); - CollectionsMarshal.SetCount(list139, index3); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new DialogueChoice + num3 = 1; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CLSFSH001_01134_Q1_000_1") }; obj105.DialogueChoices = list139; reference101 = obj105; - index2++; - span138[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129); + span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1000859u, new Vector3(-166.76587f, 4.5496645f, 150.04187f), 129); obj104.Steps = list138; reference100 = obj104; questRoot17.QuestSequence = list137; @@ -83041,19 +68932,18 @@ public static class AssemblyQuestLoader { QuestId questId = new QuestId(1157); QuestRoot questRoot = new QuestRoot(); - int num = 1; + int num = 2; List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + span[0] = "JerryWester"; + span[1] = "Wigglez"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + ref QuestSequence reference = ref span2[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -83062,8 +68952,7 @@ public static class AssemblyQuestLoader List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); Span span3 = CollectionsMarshal.AsSpan(list3); - int num3 = 0; - ref QuestStep reference2 = ref span3[num3]; + ref QuestStep reference2 = ref span3[0]; QuestStep obj2 = new QuestStep(EInteractionType.UseItem, null, null, 146) { TargetTerritoryId = (ushort)140, @@ -83071,183 +68960,173 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - int num4 = 1; - List list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index2 = 0; - span4[index2] = 212; + int num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + CollectionsMarshal.AsSpan(list4)[0] = 212; skipStepConditions.InTerritory = list4; skipConditions.StepIf = skipStepConditions; obj2.SkipConditions = skipConditions; reference2 = obj2; - num3++; - ref QuestStep reference3 = ref span3[num3]; + ref QuestStep reference3 = ref span3[1]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - index2 = 1; - List list5 = new List(index2); - CollectionsMarshal.SetCount(list5, index2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num4 = 0; - span5[num4] = 212; + num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = 212; skipStepConditions2.InTerritory = list5; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference3 = questStep; - num3++; - ref QuestStep reference4 = ref span3[num3]; + ref QuestStep reference4 = ref span3[2]; 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(); - num4 = 1; - List list6 = new List(num4); - CollectionsMarshal.SetCount(list6, num4); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = 212; + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = 212; skipStepConditions3.InTerritory = list6; skipConditions3.StepIf = skipStepConditions3; obj3.SkipConditions = skipConditions3; reference4 = obj3; - num3++; - span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212); + span3[3] = new QuestStep(EInteractionType.AcceptQuest, 1007531u, new Vector3(0.16778564f, -3.0000012f, -52.71997f), 212); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj4.Steps = list7; reference5 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span2[2]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - num2 = 2; + num2 = 4; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - num3 = 0; - span8[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(649.43243f, 290.48322f, 175.73515f), 155) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num3++; - span8[num3] = new QuestStep(EInteractionType.CompleteQuest, 2002582u, new Vector3(649.7748f, 292.4391f, 175.34143f), 155); + 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); obj5.Steps = list8; reference6 = obj5; questRoot.QuestSequence = list2; AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1158); QuestRoot questRoot2 = new QuestRoot(); - 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 + 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 { Sequence = 0 }; - 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) + 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) { 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(); - num4 = 1; - List list13 = new List(num4); - CollectionsMarshal.SetCount(list13, num4); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = 212; + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = 212; skipStepConditions5.InTerritory = list13; skipConditions5.StepIf = skipStepConditions5; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -83256,352 +69135,307 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj9.Steps = list15; - reference11 = obj9; - num++; - ref QuestSequence reference12 = ref span10[num]; - QuestSequence obj10 = new QuestSequence + obj10.Steps = list16; + reference12 = obj10; + ref QuestSequence reference13 = ref span6[2]; + QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) + span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(285.82883f, 42.26685f, -203.32939f), 139) { TargetTerritoryId = (ushort)180 }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) + span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) + span8[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) + span8[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.55255f, 59.83099f, -516.4647f), 180) { Fly = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) + span8[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + span8[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + span8[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + span8[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + span8[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - 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; + 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; AddQuest(questId2, questRoot2); QuestId questId3 = new QuestId(1159); QuestRoot questRoot3 = new QuestRoot(); num = 1; - List list17 = new List(num); - CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; - questRoot3.Author = list17; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + CollectionsMarshal.AsSpan(list19)[0] = "liza"; + questRoot3.Author = list19; questRoot3.Comment = "Only Turn 5 is required for the next quest to unlock"; - 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 + 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 { Sequence = 0 }; num2 = 4; - 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) + 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) { 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(); - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = 212; - skipStepConditions8.InTerritory = list21; + 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; skipConditions8.StepIf = skipStepConditions8; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - 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 + 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 { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - obj14.Steps = list23; - reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span18[num]; - QuestSequence obj15 = new QuestSequence + obj16.Steps = list25; + reference19 = obj16; + ref QuestSequence reference20 = ref span9[2]; + QuestSequence obj17 = new QuestSequence { Sequence = 2 }; num2 = 2; - 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) + 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) { Fly = true }; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1160) }; - obj16.Steps = list25; - reference19 = obj16; - questRoot3.QuestSequence = list18; + obj18.Steps = list27; + reference21 = obj18; + questRoot3.QuestSequence = list20; AddQuest(questId3, questRoot3); QuestId questId4 = new QuestId(1160); QuestRoot questRoot4 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 4; - 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) + 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) { 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(); - num4 = 1; - List list30 = new List(num4); - CollectionsMarshal.SetCount(list30, num4); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = 212; - skipStepConditions11.InTerritory = list30; + 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; skipConditions11.StepIf = skipStepConditions11; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - 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]; + 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]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new DialogueChoice + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + CollectionsMarshal.AsSpan(list34)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD102_01160_Q1_000_000"), Yes = false }; - questStep5.DialogueChoices = list32; - reference24 = questStep5; - obj17.Steps = list28; - reference20 = obj17; - num++; - ref QuestSequence reference25 = ref span27[num]; - QuestSequence obj20 = new QuestSequence + questStep5.DialogueChoices = list34; + reference26 = questStep5; + obj19.Steps = list30; + reference22 = obj19; + ref QuestSequence reference27 = ref span13[1]; + QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1313) }; - obj20.Steps = list33; - reference25 = obj20; - questRoot4.QuestSequence = list27; + obj22.Steps = list35; + reference27 = obj22; + questRoot4.QuestSequence = list29; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(1162); QuestRoot questRoot5 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -83612,53 +69446,44 @@ public static class AssemblyQuestLoader } } }; - obj21.Steps = list36; - reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span35[num]; - QuestSequence obj22 = new QuestSequence + obj23.Steps = list38; + reference28 = obj23; + ref QuestSequence reference29 = ref span16[1]; + QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - obj22.Steps = list37; - reference27 = obj22; - num++; - ref QuestSequence reference28 = ref span35[num]; - QuestSequence obj23 = new QuestSequence + obj24.Steps = list39; + reference29 = obj24; + ref QuestSequence reference30 = ref span16[2]; + QuestSequence obj25 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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 + 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 { Sequence = 3 }; - 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) + 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) { ItemId = 4868u, ItemCount = 1, @@ -83675,139 +69500,118 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262773u) } }; - obj24.Steps = list39; - reference29 = obj24; - num++; - ref QuestSequence reference30 = ref span35[num]; - QuestSequence obj25 = new QuestSequence + obj26.Steps = list41; + reference31 = obj26; + ref QuestSequence reference32 = ref span16[4]; + QuestSequence obj27 = new QuestSequence { Sequence = 4 }; num2 = 2; - 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) + 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) { Fly = true, ItemId = 4868u }; - num3++; - ref QuestStep reference31 = ref span40[num3]; - QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) + ref QuestStep reference33 = ref span18[1]; + QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.51279f, 57.95885f, -84.411194f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list41 = new List(index2); - CollectionsMarshal.SetCount(list41, index2); - Span span41 = CollectionsMarshal.AsSpan(list41); - num4 = 0; - span41[num4] = new ComplexCombatData + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData { DataId = 178u, MinimumKillCount = 3u }; - obj26.ComplexCombatData = list41; - reference31 = obj26; - obj25.Steps = list40; - reference30 = obj25; - num++; - ref QuestSequence reference32 = ref span35[num]; - QuestSequence obj27 = new QuestSequence + obj28.ComplexCombatData = list43; + reference33 = obj28; + obj27.Steps = list42; + reference32 = obj27; + ref QuestSequence reference34 = ref span16[5]; + QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1175); QuestRoot questRoot6 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 5; - 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) + 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) { 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(); - index2 = 1; - List list47 = new List(index2); - CollectionsMarshal.SetCount(list47, index2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num4 = 0; - span47[num4] = 212; - skipStepConditions14.InTerritory = list47; + 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; skipConditions14.StepIf = skipStepConditions14; - 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) + 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) { TargetTerritoryId = (ushort)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) + 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) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -83818,27 +69622,23 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(1047) }; - num2++; - span49[num2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) + span22[1] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.50043f, 2.099999f, 0f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -83849,160 +69649,117 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference38 = ref span49[num2]; + ref QuestStep reference40 = ref span22[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1007533u, new Vector3(-0.80877686f, -3f, -47.80658f), 212); - 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]; + 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]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 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) + 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) { StopDistance = 7f }; - 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) + 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) { StopDistance = 7f }; - 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]; + 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]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(1189); QuestRoot questRoot7 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -84013,96 +69770,80 @@ public static class AssemblyQuestLoader } } }; - obj35.Steps = list58; - reference44 = obj35; - num++; - ref QuestSequence reference45 = ref span57[num]; - QuestSequence obj36 = new QuestSequence + obj37.Steps = list60; + reference46 = obj37; + ref QuestSequence reference47 = ref span28[1]; + QuestSequence obj38 = new QuestSequence { Sequence = 1 }; num2 = 3; - 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) + 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) { TargetTerritoryId = (ushort)133 }; - num3++; - span59[num3] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + span29[1] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)133 }; - 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; + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133); + obj39.Steps = list62; + reference48 = obj39; + questRoot7.QuestSequence = list59; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(1190); QuestRoot questRoot8 = new QuestRoot(); num = 3; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -84110,345 +69851,292 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - obj39.Steps = list64; - reference48 = obj39; - num++; - ref QuestSequence reference49 = ref span62[num]; - QuestSequence obj40 = new QuestSequence + obj41.Steps = list66; + reference50 = obj41; + ref QuestSequence reference51 = ref span32[2]; + QuestSequence obj42 = new QuestSequence { Sequence = 2 }; num2 = 2; - 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) + 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) { StopDistance = 7f, TargetTerritoryId = (ushort)152 }; - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 19; - 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) + 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) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num3++; - span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) + span35[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) { Mount = false, Sprint = false }; - num3++; - ref QuestStep reference52 = ref span67[num3]; - QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) + ref QuestStep reference54 = ref span35[2]; + QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-481.42728f, 6.422104f, 81.63048f), 152) { DelaySecondsAtStart = 2f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = 47u; obj45.KillEnemyDataIds = list70; reference54 = obj45; - num3++; - span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) + 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) { Mount = false, Sprint = false }; - num3++; - ref QuestStep reference55 = ref span67[num3]; - QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(-313.74997f, 8.092487f, 82.45006f), 152) + ref QuestStep reference55 = ref span35[6]; + QuestStep obj46 = 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 list71 = new List(index2); - CollectionsMarshal.SetCount(list71, index2); - Span span71 = CollectionsMarshal.AsSpan(list71); - num4 = 0; - span71[num4] = 2485u; + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = 2483u; obj46.KillEnemyDataIds = list71; reference55 = obj46; - 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) + span35[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) { Mount = false, Sprint = false }; - num3++; - ref QuestStep reference56 = ref span67[num3]; - QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-254.20119f, 11.42078f, -5.5896573f), 152) + ref QuestStep reference56 = ref span35[8]; + QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-346.51294f, 6.312253f, 62.24674f), 152) { DelaySecondsAtStart = 2f, Mount = false, Sprint = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = 2484u; obj47.KillEnemyDataIds = list72; reference56 = obj47; - num3++; - span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-286.692f, 11.75f, -23.839016f), 152) + 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) { StopDistance = 0.25f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num3++; - span67[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 2482u, new Vector3(-316.77347f, 12.01387f, -34.666443f), 152) + span35[12] = 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.Interact, 2003347u, new Vector3(-318.62366f, 12.25293f, -35.05005f), 152) + 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) { StopDistance = 4f }; - obj42.Steps = list67; - reference51 = obj42; - num++; - ref QuestSequence reference57 = ref span62[num]; - QuestSequence obj48 = new QuestSequence + obj44.Steps = list69; + reference53 = obj44; + ref QuestSequence reference59 = ref span32[5]; + QuestSequence obj50 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 4f, DelaySecondsAtStart = 2f }; - obj48.Steps = list73; - reference57 = obj48; - num++; - ref QuestSequence reference58 = ref span62[num]; - QuestSequence obj49 = new QuestSequence + obj50.Steps = list75; + reference59 = obj50; + ref QuestSequence reference60 = ref span32[6]; + QuestSequence obj51 = new QuestSequence { Sequence = 6 }; num2 = 1; - 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) + 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) { StopDistance = 4f, DelaySecondsAtStart = 3f }; - obj49.Steps = list74; - reference58 = obj49; - num++; - ref QuestSequence reference59 = ref span62[num]; - QuestSequence obj50 = new QuestSequence + obj51.Steps = list76; + reference60 = obj51; + ref QuestSequence reference61 = ref span32[7]; + QuestSequence obj52 = new QuestSequence { Sequence = 7 }; - 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) + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { ContentFinderConditionId = 66u } }; - obj50.Steps = list75; - reference59 = obj50; - num++; - ref QuestSequence reference60 = ref span62[num]; - QuestSequence obj51 = new QuestSequence + obj52.Steps = list77; + reference61 = obj52; + ref QuestSequence reference62 = ref span32[8]; + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - 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; + span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1007862u, new Vector3(-140.03204f, 8.647825f, 280.8728f), 153); + obj53.Steps = list78; + reference62 = obj53; + questRoot8.QuestSequence = list64; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1191); QuestRoot questRoot9 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -84460,20 +70148,18 @@ public static class AssemblyQuestLoader } } }; - obj52.Steps = list79; - reference61 = obj52; - num++; - ref QuestSequence reference62 = ref span78[num]; - QuestSequence obj53 = new QuestSequence + obj54.Steps = list81; + reference63 = obj54; + ref QuestSequence reference64 = ref span38[1]; + QuestSequence obj55 = new QuestSequence { Sequence = 1 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)205, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -84483,483 +70169,399 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - 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 - }; - 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 - }; - 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 - }; - num2++; - span81[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) - { - TargetTerritoryId = (ushort)212 - }; - 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 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 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; + span39[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + obj55.Steps = list82; reference64 = obj55; - num++; - ref QuestSequence reference65 = ref span83[num]; + ref QuestSequence reference65 = ref span38[2]; QuestSequence obj56 = new QuestSequence - { - Sequence = 1 - }; - 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 - }; - 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 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 - }; - num3++; - span86[num3] = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) - { - TargetTerritoryId = (ushort)140 - }; - 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 - }; - 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 - }; - 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 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 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; - num++; - ref QuestSequence reference73 = ref span83[num]; - QuestSequence obj64 = new QuestSequence - { - Sequence = 6 - }; - num2 = 1; - 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 - }; - 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 - }; - 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 list96 = new List(num2); - CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = new QuestStep(EInteractionType.UseItem, null, null, 140) + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + Span span40 = CollectionsMarshal.AsSpan(list83); + span40[0] = new QuestStep(EInteractionType.UseItem, null, null, 205) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num3++; - span96[num3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span40[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - 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(); + span40[4] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + obj56.Steps = list83; + reference65 = obj56; + questRoot9.QuestSequence = list80; + AddQuest(questId9, questRoot9); + QuestId questId10 = new QuestId(1192); + QuestRoot questRoot10 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 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) - }; - obj69.Steps = list100; - reference78 = obj69; - questRoot11.QuestSequence = list98; - AddQuest(questId11, questRoot11); - QuestId questId12 = new QuestId(1195); - QuestRoot questRoot12 = new QuestRoot(); - num = 1; - 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 - }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) + { + 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 + { + 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) + { + TargetTerritoryId = (ushort)212 + }; + span43[1] = 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 + { + 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) + { + 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 + { + 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) + { + StopDistance = 0.25f, + Fly = true, + EnemySpawnType = EEnemySpawnType.AutoOnEnterArea + }; + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = 2478u; + obj63.KillEnemyDataIds = list92; + reference72 = obj63; + obj62.Steps = list91; + reference71 = obj62; + ref QuestSequence reference73 = ref span41[5]; + 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) + { + 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 + { + 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 + { + 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) + { + 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) + { + TargetTerritoryId = (ushort)212 + }; + span45[3] = 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; + 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 + { + 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 + { + 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) + { + AetheryteShortcut = EAetheryteLocation.Gridania, + NextQuestId = new QuestId(1195) + }; + obj71.Steps = list102; + reference80 = obj71; + questRoot11.QuestSequence = list100; + 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 + { + 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 + { + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - 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 + 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 { Sequence = 2 }; - 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) + num2 = 1; + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { ContentFinderConditionId = 65u } }; - obj72.Steps = list105; - reference81 = obj72; - num++; - span102[num] = new QuestSequence + obj74.Steps = list107; + reference83 = obj74; + span47[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference82 = ref span102[num]; - QuestSequence obj73 = new QuestSequence + ref QuestSequence reference84 = ref span47[4]; + QuestSequence obj75 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj73.Steps = list106; - reference82 = obj73; - num++; - ref QuestSequence reference83 = ref span102[num]; - QuestSequence obj74 = new QuestSequence + obj75.Steps = list108; + reference84 = obj75; + ref QuestSequence reference85 = ref span47[5]; + QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + span49[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1196) }; - obj74.Steps = list107; - reference83 = obj74; - questRoot12.QuestSequence = list102; + obj76.Steps = list109; + reference85 = obj76; + questRoot12.QuestSequence = list104; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1196); QuestRoot questRoot13 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -84968,90 +70570,75 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj76.Steps = list111; - reference85 = obj76; - num++; - ref QuestSequence reference86 = ref span109[num]; - QuestSequence obj77 = new QuestSequence + obj78.Steps = list113; + reference87 = obj78; + ref QuestSequence reference88 = ref span50[2]; + QuestSequence obj79 = new QuestSequence { Sequence = 2 }; num2 = 7; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - num3++; - span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) + span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.7023f, 28.568699f, -611.7063f), 180) { Fly = true }; - num3++; - span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) + span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(84.102905f, 28.170393f, -716.35504f), 180) { Fly = true }; - num3++; - span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + span51[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - num3++; - span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + span51[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - num3++; - span112[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + span51[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - 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 + 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 { Sequence = 3 }; - 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) + num2 = 1; + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions { ContentFinderConditionId = 64u } }; - obj78.Steps = list113; - reference87 = obj78; - num++; - span109[num] = new QuestSequence + obj80.Steps = list115; + reference89 = obj80; + span50[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference88 = ref span109[num]; - QuestSequence obj79 = new QuestSequence + ref QuestSequence reference90 = ref span50[5]; + QuestSequence obj81 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -85060,274 +70647,231 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - obj79.Steps = list114; - reference88 = obj79; - num++; - ref QuestSequence reference89 = ref span109[num]; - QuestSequence obj80 = new QuestSequence + obj81.Steps = list116; + reference90 = obj81; + ref QuestSequence reference91 = ref span50[6]; + QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span115[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + span52[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1197) }; - obj80.Steps = list115; - reference89 = obj80; - questRoot13.QuestSequence = list109; + obj82.Steps = list117; + reference91 = obj82; + questRoot13.QuestSequence = list111; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1197); QuestRoot questRoot14 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; - 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 + 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 { Sequence = 2 }; num2 = 5; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - num3++; - span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) + span55[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(373.0123f, 46.21888f, -47.523537f), 146) { Fly = true }; - num3++; - span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) + span55[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(500.2741f, 36.9815f, -153.72185f), 146) { Fly = true }; - num3++; - span120[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) + span55[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(694.0748f, 4.267518f, -84.443855f), 146) { Fly = true }; - num3++; - span120[num3] = new QuestStep(EInteractionType.Interact, 2003458u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) + span55[4] = new QuestStep(EInteractionType.Interact, 2003458u, new Vector3(694.3617f, 7.9193726f, -80.1557f), 146) { StopDistance = 5f, Mount = false, IgnoreDistanceToObject = true }; - obj83.Steps = list120; - reference92 = obj83; - num++; - ref QuestSequence reference93 = ref span117[num]; - QuestSequence obj84 = new QuestSequence + obj85.Steps = list122; + reference94 = obj85; + ref QuestSequence reference95 = ref span53[3]; + QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions { ContentFinderConditionId = 63u } }; - obj84.Steps = list121; - reference93 = obj84; - num++; - span117[num] = new QuestSequence + obj86.Steps = list123; + reference95 = obj86; + span53[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference94 = ref span117[num]; - QuestSequence obj85 = new QuestSequence + ref QuestSequence reference96 = ref span53[5]; + QuestSequence obj87 = new QuestSequence { Sequence = 5 }; num2 = 2; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span123[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) + span57[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212) { NextQuestId = new QuestId(1198) }; - obj86.Steps = list123; - reference95 = obj86; - questRoot14.QuestSequence = list117; + obj88.Steps = list125; + reference97 = obj88; + questRoot14.QuestSequence = list119; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1198); QuestRoot questRoot15 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { Fly = true }; - num3++; - span128[num3] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156) + span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156) { Fly = true }; - obj89.Steps = list128; - reference98 = obj89; - questRoot15.QuestSequence = list125; + obj91.Steps = list130; + reference100 = obj91; + questRoot15.QuestSequence = list127; AddQuest(questId15, questRoot15); } @@ -85338,16 +70882,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 8; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 8; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -85355,9 +70896,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -85370,18 +70909,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -85392,8 +70928,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -85401,30 +70936,24 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1007755u, new Vector3(-34.62274f, 13.599951f, 99.47351f), 131); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1007755u, new Vector3(-34.62274f, 13.599951f, 99.47351f), 131); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -85432,42 +70961,35 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.06186f, 26.915272f, 74.2695f), 147) + Span span2 = CollectionsMarshal.AsSpan(list7); + span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.06186f, 26.915272f, 74.2695f), 147) { Fly = true }; - index2++; - span7[index2] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); + span2[1] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; - num2++; - span8[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.76767f, 25f, 43.66056f), 147) + span3[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(258.76767f, 25f, 43.66056f), 147) { Fly = true }; - num2++; - span8[num2] = new QuestStep(EInteractionType.Interact, 2002892u, new Vector3(259.38806f, 24.979004f, 44.174805f), 147); + span3[2] = new QuestStep(EInteractionType.Interact, 2002892u, new Vector3(259.38806f, 24.979004f, 44.174805f), 147); obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[6]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -85475,34 +70997,29 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) + Span span4 = CollectionsMarshal.AsSpan(list9); + span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.94734f, 27.148706f, 74.460915f), 147) { Fly = true }; - index2++; - span9[index2] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); + span4[1] = new QuestStep(EInteractionType.Interact, 1007759u, new Vector3(246.57043f, 25.742998f, 85.28259f), 147); obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[7]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1201) }; @@ -85515,16 +71032,13 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list11)[0] = "JerryWester"; questRoot2.Author = list11; - index = 6; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 6; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span6 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span6[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -85532,9 +71046,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -85547,18 +71059,15 @@ public static class AssemblyQuestLoader }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span6[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -85569,8 +71078,7 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span6[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -85578,35 +71086,30 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.32037f, 0.38625574f, 155.53741f), 153) + Span span7 = CollectionsMarshal.AsSpan(list15); + span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(467.32037f, 0.38625574f, 155.53741f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - index2++; - span15[index2] = new QuestStep(EInteractionType.Interact, 2002893u, new Vector3(467.39905f, 2.2124634f, 154.0398f), 153); + span7[1] = new QuestStep(EInteractionType.Interact, 2002893u, new Vector3(467.39905f, 2.2124634f, 154.0398f), 153); obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span12[num]; + ref QuestSequence reference12 = ref span6[3]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - num2++; - ref QuestStep reference13 = ref span16[num2]; + ref QuestStep reference13 = ref span8[1]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(-153.8042f, -9.645816f, -74.48335f), 154) { StopDistance = 0.5f, @@ -85615,21 +71118,16 @@ public static class AssemblyQuestLoader int num3 = 3; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span17 = CollectionsMarshal.AsSpan(list17); - int num4 = 0; - span17[num4] = 2448u; - num4++; - span17[num4] = 2449u; - num4++; - span17[num4] = 2450u; + Span span9 = CollectionsMarshal.AsSpan(list17); + span9[0] = 2448u; + span9[1] = 2449u; + span9[2] = 2450u; obj13.KillEnemyDataIds = list17; reference13 = obj13; - num2++; - span16[num2] = new QuestStep(EInteractionType.Interact, 2002894u, new Vector3(-152.84961f, -8.46875f, -78.50769f), 154); + span8[2] = new QuestStep(EInteractionType.Interact, 2002894u, new Vector3(-152.84961f, -8.46875f, -78.50769f), 154); obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference14 = ref span12[num]; + ref QuestSequence reference14 = ref span6[4]; QuestSequence obj14 = new QuestSequence { Sequence = 4 @@ -85637,34 +71135,29 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.507086f, 0.7410059f, -94.81342f), 154) + Span span10 = CollectionsMarshal.AsSpan(list18); + span10[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.507086f, 0.7410059f, -94.81342f), 154) { Fly = true }; - index2++; - span18[index2] = new QuestStep(EInteractionType.Interact, 2002896u, new Vector3(28.824219f, 1.5715942f, -96.787964f), 154); + span10[1] = new QuestStep(EInteractionType.Interact, 2002896u, new Vector3(28.824219f, 1.5715942f, -96.787964f), 154); obj14.Steps = list18; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span12[num]; + ref QuestSequence reference15 = ref span6[5]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1202) }; @@ -85677,16 +71170,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list20)[0] = "JerryWester"; questRoot3.Author = list20; - index = 4; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 4; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span12 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span12[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -85694,9 +71184,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -85709,27 +71197,23 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span12[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span23[num2] = new QuestStep(EInteractionType.Interact, 2002897u, new Vector3(573.17444f, -1.7243042f, -262.77563f), 156); + span13[1] = new QuestStep(EInteractionType.Interact, 2002897u, new Vector3(573.17444f, -1.7243042f, -262.77563f), 156); obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span12[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -85737,9 +71221,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -85749,24 +71231,21 @@ public static class AssemblyQuestLoader }; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span21[num]; + ref QuestSequence reference19 = ref span12[3]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { NextQuestId = new QuestId(1203) }; @@ -85779,16 +71258,13 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list26)[0] = "JerryWester"; 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]; + num = 2; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span15 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span15[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -85796,9 +71272,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007763u, new Vector3(447.4403f, -5.3500423f, -467.7959f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -85811,18 +71285,15 @@ public static class AssemblyQuestLoader }; obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span15[1]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1474) }; @@ -85835,16 +71306,13 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list30)[0] = "FalconTaterz"; questRoot5.Author = list30; - index = 5; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference22 = ref span31[num]; + num = 5; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span16 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference22 = ref span16[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -85852,9 +71320,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference23 = ref span32[index2]; + ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -85866,12 +71332,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = new DialogueChoice + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB101_01204_Q1_000_1") @@ -85880,26 +71344,22 @@ public static class AssemblyQuestLoader reference23 = obj23; obj22.Steps = list32; reference22 = obj22; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span16[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span31[num]; + ref QuestSequence reference25 = ref span16[2]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -85907,9 +71367,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - ref QuestStep reference26 = ref span35[index2]; + ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list35)[0]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-273.9414f, 9.756445f, 222.65837f), 146) { Fly = true, @@ -85919,35 +71377,29 @@ public static class AssemblyQuestLoader num3 = 2; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span36 = CollectionsMarshal.AsSpan(list36); - num4 = 0; - span36[num4] = 2390u; - num4++; - span36[num4] = 2391u; + Span span17 = CollectionsMarshal.AsSpan(list36); + span17[0] = 2390u; + span17[1] = 2391u; obj26.KillEnemyDataIds = list36; reference26 = obj26; obj25.Steps = list35; reference25 = obj25; - num++; - ref QuestSequence reference27 = ref span31[num]; + ref QuestSequence reference27 = ref span16[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj27.Steps = list37; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span31[num]; + ref QuestSequence reference28 = ref span16[4]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -85955,20 +71407,16 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - ref QuestStep reference29 = ref span38[index2]; + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list38)[0]; QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1005710u, new Vector3(4.4403076f, 7.2767544f, 885.55725f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - num4 = 1; - List list39 = new List(num4); - CollectionsMarshal.SetCount(list39, num4); - Span span39 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - span39[num3] = new DialogueChoice + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + CollectionsMarshal.AsSpan(list39)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB101_01204_Q2_000_1"), @@ -85986,30 +71434,24 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list40)[0] = "FalconTaterz"; questRoot6.Author = list40; - index = 3; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference30 = ref span41[num]; + num = 3; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span18 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference30 = ref span18[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj30.Steps = list42; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span41[num]; + ref QuestSequence reference31 = ref span18[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -86017,9 +71459,8 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref QuestStep reference32 = ref span43[index2]; + Span span19 = CollectionsMarshal.AsSpan(list43); + ref QuestStep reference32 = ref span19[0]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1004333u, new Vector3(-101.854004f, 4.0131226f, -98.95477f), 130) { StopDistance = 7f, @@ -86028,77 +71469,54 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - 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); + 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); obj32.CompletionQuestVariablesFlags = list44; reference32 = obj32; - index2++; - ref QuestStep reference33 = ref span43[index2]; + ref QuestStep reference33 = ref span19[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1004331u, new Vector3(-20.096191f, 4.9999676f, -133.22656f), 130); - 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); + 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); questStep.CompletionQuestVariablesFlags = list45; reference33 = questStep; - index2++; - ref QuestStep reference34 = ref span43[index2]; + ref QuestStep reference34 = ref span19[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list46; reference34 = questStep2; obj31.Steps = list43; reference31 = obj31; - num++; - ref QuestSequence reference35 = ref span41[num]; + ref QuestSequence reference35 = ref span18[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1206) }; @@ -86111,16 +71529,13 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list48)[0] = "FalconTaterz"; questRoot7.Author = list48; - index = 7; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference36 = ref span49[num]; + num = 7; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span23 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference36 = ref span23[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -86128,9 +71543,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001285u, new Vector3(-68.77246f, 4.0411124f, -126.51257f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -86143,18 +71556,15 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference36 = obj34; - num++; - ref QuestSequence reference37 = ref span49[num]; + ref QuestSequence reference37 = ref span23[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -86164,8 +71574,7 @@ public static class AssemblyQuestLoader }; obj35.Steps = list51; reference37 = obj35; - num++; - ref QuestSequence reference38 = ref span49[num]; + ref QuestSequence reference38 = ref span23[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -86173,9 +71582,7 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Interact, 1005713u, new Vector3(-72.98395f, 3.9999995f, -113.02362f), 130) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1005713u, new Vector3(-72.98395f, 3.9999995f, -113.02362f), 130) { AethernetShortcut = new AethernetShortcut { @@ -86185,24 +71592,20 @@ public static class AssemblyQuestLoader }; obj36.Steps = list52; reference38 = obj36; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span23[3]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj37.Steps = list53; reference39 = obj37; - num++; - ref QuestSequence reference40 = ref span49[num]; + ref QuestSequence reference40 = ref span23[4]; QuestSequence obj38 = new QuestSequence { Sequence = 4 @@ -86210,30 +71613,24 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1005717u, new Vector3(-147.17328f, 12f, -3.6469727f), 130); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1005717u, new Vector3(-147.17328f, 12f, -3.6469727f), 130); obj38.Steps = list54; reference40 = obj38; - num++; - ref QuestSequence reference41 = ref span49[num]; + ref QuestSequence reference41 = ref span23[5]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 2001126u }; obj39.Steps = list55; reference41 = obj39; - num++; - ref QuestSequence reference42 = ref span49[num]; + ref QuestSequence reference42 = ref span23[6]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -86241,9 +71638,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005716u, new Vector3(-144.76239f, 12f, 0.99176025f), 130) { StopDistance = 7f, NextQuestId = new QuestId(1207) @@ -86257,26 +71652,21 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list57)[0] = "FalconTaterz"; questRoot8.Author = list57; - index = 13; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference43 = ref span58[num]; + num = 13; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span25 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference43 = ref span25[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -86290,8 +71680,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list59; reference43 = obj41; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span25[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -86299,97 +71688,72 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1005722u, new Vector3(-550.4387f, -5.5688405f, -176.71478f), 145) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1005722u, new Vector3(-550.4387f, -5.5688405f, -176.71478f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj42.Steps = list60; reference44 = obj42; - num++; - ref QuestSequence reference45 = ref span58[num]; + ref QuestSequence reference45 = ref span25[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list61 = new List(index2); - CollectionsMarshal.SetCount(list61, index2); - Span span61 = CollectionsMarshal.AsSpan(list61); - num2 = 0; - ref QuestStep reference46 = ref span61[num2]; + num2 = 4; + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + Span span26 = CollectionsMarshal.AsSpan(list61); + ref QuestStep reference46 = ref span26[0]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list62; skipConditions.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions; reference46 = obj44; - num2++; - ref QuestStep reference47 = ref span61[num2]; + ref QuestStep reference47 = ref span26[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list63; reference47 = questStep3; - num2++; - ref QuestStep reference48 = ref span61[num2]; + ref QuestStep reference48 = ref span26[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003940u, new Vector3(-540.94763f, 4.134529f, -241.07733f), 145); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list64; reference48 = questStep4; - num2++; - ref QuestStep reference49 = ref span61[num2]; + ref QuestStep reference49 = ref span26[3]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1003939u, new Vector3(-540.09314f, 4.137387f, -240.98578f), 145) { StopDistance = 4f @@ -86397,25 +71761,18 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - 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); + 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); obj45.CompletionQuestVariablesFlags = list65; reference49 = obj45; obj43.Steps = list61; reference45 = obj43; - num++; - ref QuestSequence reference50 = ref span58[num]; + ref QuestSequence reference50 = ref span25[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -86423,34 +71780,28 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.Interact, 1005724u, new Vector3(-490.44025f, 2.8072534f, -274.34198f), 145) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1005724u, new Vector3(-490.44025f, 2.8072534f, -274.34198f), 145) { Fly = true }; obj46.Steps = list66; reference50 = obj46; - num++; - ref QuestSequence reference51 = ref span58[num]; + ref QuestSequence reference51 = ref span25[4]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj47.Steps = list67; reference51 = obj47; - num++; - ref QuestSequence reference52 = ref span58[num]; + ref QuestSequence reference52 = ref span25[5]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -86458,34 +71809,28 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.UseItem, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.UseItem, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, ItemId = 2001150u }; obj48.Steps = list68; reference52 = obj48; - num++; - ref QuestSequence reference53 = ref span58[num]; + ref QuestSequence reference53 = ref span25[6]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj49.Steps = list69; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span58[num]; + ref QuestSequence reference54 = ref span25[7]; QuestSequence obj50 = new QuestSequence { Sequence = 7 @@ -86493,33 +71838,27 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj50.Steps = list70; reference54 = obj50; - num++; - ref QuestSequence reference55 = ref span58[num]; + ref QuestSequence reference55 = ref span25[8]; QuestSequence obj51 = new QuestSequence { Sequence = 8 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj51.Steps = list71; reference55 = obj51; - num++; - ref QuestSequence reference56 = ref span58[num]; + ref QuestSequence reference56 = ref span25[9]; QuestSequence obj52 = new QuestSequence { Sequence = 9 @@ -86527,91 +71866,66 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1005727u, new Vector3(-221.11853f, -37.79669f, 149.67566f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj52.Steps = list72; reference56 = obj52; - num++; - ref QuestSequence reference57 = ref span58[num]; + ref QuestSequence reference57 = ref span25[10]; QuestSequence obj53 = new QuestSequence { Sequence = 10 }; - index2 = 3; - List list73 = new List(index2); - CollectionsMarshal.SetCount(list73, index2); - Span span73 = CollectionsMarshal.AsSpan(list73); - num2 = 0; - ref QuestStep reference58 = ref span73[num2]; + num2 = 3; + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + Span span31 = CollectionsMarshal.AsSpan(list73); + ref QuestStep reference58 = ref span31[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2003006u, new Vector3(-208.5451f, -37.9187f, 151.87305f), 145); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list74; reference58 = questStep5; - num2++; - ref QuestStep reference59 = ref span73[num2]; + ref QuestStep reference59 = ref span31[1]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list75; reference59 = questStep6; - num2++; - ref QuestStep reference60 = ref span73[num2]; + ref QuestStep reference60 = ref span31[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2003004u, new Vector3(-206.46985f, -37.644104f, 187.36548f), 145); - 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); + 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; reference60 = questStep7; obj53.Steps = list73; reference57 = obj53; - num++; - ref QuestSequence reference61 = ref span58[num]; + ref QuestSequence reference61 = ref span25[11]; QuestSequence obj54 = new QuestSequence { Sequence = 11 @@ -86619,28 +71933,23 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1005730u, new Vector3(-222.49182f, -37.896374f, 159.3805f), 145); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1005730u, new Vector3(-222.49182f, -37.896374f, 159.3805f), 145); obj54.Steps = list77; reference61 = obj54; - num++; - ref QuestSequence reference62 = ref span58[num]; + ref QuestSequence reference62 = ref span25[12]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005731u, new Vector3(-526.8788f, 5.404997f, -246.50952f), 145) + span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1005731u, new Vector3(-526.8788f, 5.404997f, -246.50952f), 145) { NextQuestId = new QuestId(1315) }; @@ -86653,16 +71962,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot9.Author = list79; - index = 5; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference63 = ref span80[num]; + num = 5; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span36 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference63 = ref span36[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -86670,9 +71976,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - ref QuestStep reference64 = ref span81[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list81)[0]; QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -86690,31 +71994,25 @@ public static class AssemblyQuestLoader num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num4 = 0; - span82[num4] = 128; + CollectionsMarshal.AsSpan(list82)[0] = 128; obj58.InTerritory = list82; skipConditions2.AetheryteShortcutIf = obj58; obj57.SkipConditions = skipConditions2; reference64 = obj57; obj56.Steps = list81; reference63 = obj56; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span36[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj59.Steps = list83; reference65 = obj59; - num++; - ref QuestSequence reference66 = ref span80[num]; + ref QuestSequence reference66 = ref span36[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -86722,47 +72020,36 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.Emote, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) { Emote = EEmote.Doubt }; obj60.Steps = list84; reference66 = obj60; - num++; - ref QuestSequence reference67 = ref span80[num]; + ref QuestSequence reference67 = ref span36[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference68 = ref span85[num2]; + num2 = 4; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span37 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference68 = ref span37[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1001000u, new Vector3(-32.028687f, 41.499985f, 208.39233f), 128); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list86; reference68 = questStep8; - num2++; - ref QuestStep reference69 = ref span85[num2]; + ref QuestStep reference69 = ref span37[1]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -86770,23 +72057,16 @@ public static class AssemblyQuestLoader 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((byte)4, 0, EQuestWorkMode.Bitwise); + 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); obj62.CompletionQuestVariablesFlags = list87; reference69 = obj62; - num2++; - ref QuestStep reference70 = ref span85[num2]; + ref QuestStep reference70 = ref span37[2]; QuestStep obj63 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.88594f, 41.50016f, 119.898315f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -86798,28 +72078,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = 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((byte)2, 0, EQuestWorkMode.Bitwise); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list88; skipConditions3.StepIf = skipStepConditions2; obj63.SkipConditions = skipConditions3; reference70 = obj63; - num2++; - ref QuestStep reference71 = ref span85[num2]; + ref QuestStep reference71 = ref span37[3]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) { StopDistance = 7f @@ -86827,25 +72100,18 @@ public static class AssemblyQuestLoader 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((byte)2, 0, EQuestWorkMode.Bitwise); + 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); obj64.CompletionQuestVariablesFlags = list89; reference71 = obj64; obj61.Steps = list85; reference67 = obj61; - num++; - ref QuestSequence reference72 = ref span80[num]; + ref QuestSequence reference72 = ref span36[4]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -86853,9 +72119,7 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005515u, new Vector3(-44.449524f, 39.999996f, 61.81433f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -86873,30 +72137,24 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot10.Author = list91; - index = 6; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference73 = ref span92[num]; + num = 6; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span42 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference73 = ref span42[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj66.Steps = list93; reference73 = obj66; - num++; - ref QuestSequence reference74 = ref span92[num]; + ref QuestSequence reference74 = ref span42[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -86904,45 +72162,39 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.69795f, 46.029457f, 178.39331f), 137) + Span span43 = CollectionsMarshal.AsSpan(list94); + span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-71.69795f, 46.029457f, 178.39331f), 137) { StopDistance = 0.5f, Fly = true }; - index2++; - span94[index2] = new QuestStep(EInteractionType.Interact, 1005527u, new Vector3(-68.2536f, 46.91121f, 178.2406f), 137) + span43[1] = new QuestStep(EInteractionType.Interact, 1005527u, new Vector3(-68.2536f, 46.91121f, 178.2406f), 137) { StopDistance = 5f }; obj67.Steps = list94; reference74 = obj67; - num++; - ref QuestSequence reference75 = ref span92[num]; + ref QuestSequence reference75 = ref span42[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span95[num2] = new QuestStep(EInteractionType.Interact, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139) + span44[1] = new QuestStep(EInteractionType.Interact, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139) { StopDistance = 0.5f, Fly = true }; obj68.Steps = list95; reference75 = obj68; - num++; - ref QuestSequence reference76 = ref span92[num]; + ref QuestSequence reference76 = ref span42[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 @@ -86950,41 +72202,33 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - ref QuestStep reference77 = ref span96[index2]; + ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, 2003139u, new Vector3(600.5187f, -2.5177612f, 173.11353f), 139) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + Span span45 = CollectionsMarshal.AsSpan(list97); + span45[0] = 2437u; + span45[1] = 2438u; obj70.KillEnemyDataIds = list97; reference77 = obj70; obj69.Steps = list96; reference76 = obj69; - num++; - ref QuestSequence reference78 = ref span92[num]; + ref QuestSequence reference78 = ref span42[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj71.Steps = list98; reference78 = obj71; - num++; - ref QuestSequence reference79 = ref span92[num]; + ref QuestSequence reference79 = ref span42[5]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -86992,9 +72236,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005528u, new Vector3(624.2312f, -3.0527444f, 165.27039f), 139); obj72.Steps = list99; reference79 = obj72; questRoot10.QuestSequence = list92; @@ -87004,26 +72246,22 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "liza"; + CollectionsMarshal.AsSpan(list100)[0] = "liza"; questRoot11.Author = list100; - index = 5; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference80 = ref span101[num]; + num = 5; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span46 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference80 = ref span46[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Aetheryte = EAetheryteLocation.CentralShroudBentbranchMeadows, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -87044,8 +72282,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span102[num2] = new QuestStep(EInteractionType.AcceptQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) + span47[1] = new QuestStep(EInteractionType.AcceptQuest, 1000478u, new Vector3(11.642578f, -1.0223389f, 21.072632f), 148) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, SkipConditions = new SkipConditions @@ -87059,8 +72296,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list102; reference80 = obj73; - num++; - ref QuestSequence reference81 = ref span101[num]; + ref QuestSequence reference81 = ref span46[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -87068,26 +72304,21 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 1005530u, new Vector3(186.57202f, -32.23455f, 327.8706f), 148) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1005530u, new Vector3(186.57202f, -32.23455f, 327.8706f), 148) { Fly = true }; obj74.Steps = list103; reference81 = obj74; - num++; - ref QuestSequence reference82 = ref span101[num]; + ref QuestSequence reference82 = ref span46[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list104 = new List(index2); - CollectionsMarshal.SetCount(list104, index2); - Span span104 = CollectionsMarshal.AsSpan(list104); - num2 = 0; - ref QuestStep reference83 = ref span104[num2]; + num2 = 1; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list104)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1005656u, new Vector3(200.3357f, -32.043697f, 323.7506f), 148) { TargetTerritoryId = (ushort)340 @@ -87095,9 +72326,7 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - num4 = 0; - span105[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list105)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -87108,8 +72337,7 @@ public static class AssemblyQuestLoader reference83 = obj76; obj75.Steps = list104; reference82 = obj75; - num++; - ref QuestSequence reference84 = ref span101[num]; + ref QuestSequence reference84 = ref span46[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -87117,23 +72345,18 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 1005879u, new Vector3(0.8086548f, 2.8884888f, 181.99426f), 340); + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1005879u, new Vector3(0.8086548f, 2.8884888f, 181.99426f), 340); obj77.Steps = list106; reference84 = obj77; - num++; - ref QuestSequence reference85 = ref span101[num]; + ref QuestSequence reference85 = ref span46[4]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; @@ -87146,16 +72369,13 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot12.Author = list108; - index = 5; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference86 = ref span109[num]; + num = 5; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span48 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference86 = ref span48[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -87163,9 +72383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - ref QuestStep reference87 = ref span110[index2]; + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestStep obj80 = new QuestStep(EInteractionType.AcceptQuest, 1002001u, new Vector3(228.47327f, 52.038116f, 133.1654f), 140) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -87180,37 +72398,31 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list111 = new List(num4); - CollectionsMarshal.SetCount(list111, num4); - Span span111 = CollectionsMarshal.AsSpan(list111); - num3 = 0; - span111[num3] = 140; + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = 140; obj81.InTerritory = list111; skipConditions4.AetheryteShortcutIf = obj81; obj80.SkipConditions = skipConditions4; reference87 = obj80; obj79.Steps = list110; reference86 = obj79; - num++; - ref QuestSequence reference88 = ref span109[num]; + ref QuestSequence reference88 = ref span48[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj82.Steps = list112; reference88 = obj82; - num++; - ref QuestSequence reference89 = ref span109[num]; + ref QuestSequence reference89 = ref span48[2]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -87218,9 +72430,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - ref QuestStep reference90 = ref span113[index2]; + ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list113)[0]; QuestStep obj84 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(316.94064f, 67.1549f, 237f), 140) { TargetTerritoryId = (ushort)341 @@ -87228,9 +72438,7 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num4 = 0; - span114[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list114)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -87241,22 +72449,18 @@ public static class AssemblyQuestLoader reference90 = obj84; obj83.Steps = list113; reference89 = obj83; - num++; - ref QuestSequence reference91 = ref span109[num]; + ref QuestSequence reference91 = ref span48[3]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj85.Steps = list115; reference91 = obj85; - num++; - ref QuestSequence reference92 = ref span109[num]; + ref QuestSequence reference92 = ref span48[4]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -87264,30 +72468,25 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - ref QuestStep reference93 = ref span116[index2]; + Span span49 = CollectionsMarshal.AsSpan(list116); + ref QuestStep reference93 = ref span49[0]; 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(); - num4 = 1; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span117 = CollectionsMarshal.AsSpan(list117); - num3 = 0; - span117[num3] = 341; + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = 341; skipStepConditions3.NotInTerritory = list117; skipConditions5.StepIf = skipStepConditions3; obj87.SkipConditions = skipConditions5; num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num4 = 0; - span118[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -87296,8 +72495,7 @@ public static class AssemblyQuestLoader }; obj87.DialogueChoices = list118; reference93 = obj87; - index2++; - ref QuestStep reference94 = ref span116[index2]; + ref QuestStep reference94 = ref span49[1]; QuestStep obj88 = new QuestStep(EInteractionType.CompleteQuest, 1002001u, new Vector3(228.47327f, 52.038116f, 133.1654f), 140) { DelaySecondsAtStart = 3f, @@ -87314,12 +72512,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - num3 = 0; - span119[num3] = 140; + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = 140; obj89.InTerritory = list119; skipConditions6.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions6; @@ -87333,26 +72529,21 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "liza"; + CollectionsMarshal.AsSpan(list120)[0] = "liza"; questRoot13.Author = list120; - index = 5; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference95 = ref span121[num]; + num = 5; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span50 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference95 = ref span50[0]; QuestSequence obj90 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep obj91 = new QuestStep(EInteractionType.AcceptQuest, 1002579u, new Vector3(508.01855f, 79.171745f, -61.96692f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -87370,17 +72561,14 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num4 = 0; - span123[num4] = 135; + CollectionsMarshal.AsSpan(list123)[0] = 135; obj92.InTerritory = list123; skipConditions7.AetheryteShortcutIf = obj92; obj91.SkipConditions = skipConditions7; reference96 = obj91; obj90.Steps = list122; reference95 = obj90; - num++; - ref QuestSequence reference97 = ref span121[num]; + ref QuestSequence reference97 = ref span50[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -87388,36 +72576,29 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 1005529u, new Vector3(593.225f, 61.734455f, -113.96973f), 135) + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1005529u, new Vector3(593.225f, 61.734455f, -113.96973f), 135) { Fly = true }; obj93.Steps = list124; reference97 = obj93; - num++; - ref QuestSequence reference98 = ref span121[num]; + ref QuestSequence reference98 = ref span50[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num2 = 0; - ref QuestStep reference99 = ref span125[num2]; + num2 = 1; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list125)[0]; QuestStep obj95 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.26843f, 61.502148f, -105f), 135) { TargetTerritoryId = (ushort)339 }; - num4 = 1; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - Span span126 = CollectionsMarshal.AsSpan(list126); - num3 = 0; - span126[num3] = new DialogueChoice + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -87428,8 +72609,7 @@ public static class AssemblyQuestLoader reference99 = obj95; obj94.Steps = list125; reference98 = obj94; - num++; - ref QuestSequence reference100 = ref span121[num]; + ref QuestSequence reference100 = ref span50[3]; QuestSequence obj96 = new QuestSequence { Sequence = 3 @@ -87437,23 +72617,19 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 1005881u, new Vector3(-18.631348f, 49.025185f, -113.42035f), 339); + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1005881u, new Vector3(-18.631348f, 49.025185f, -113.42035f), 339); obj96.Steps = list127; reference100 = obj96; - num++; - ref QuestSequence reference101 = ref span121[num]; + ref QuestSequence reference101 = ref span50[4]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list128 = new List(index2); - CollectionsMarshal.SetCount(list128, index2); - Span span128 = CollectionsMarshal.AsSpan(list128); - num2 = 0; - ref QuestStep reference102 = ref span128[num2]; + num2 = 3; + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span51 = CollectionsMarshal.AsSpan(list128); + ref QuestStep reference102 = ref span51[0]; QuestStep obj98 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.527806f, 50.23951f, -129.5499f), 339) { DisableNavmesh = true @@ -87463,15 +72639,12 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - num4 = 0; - span129[num4] = 339; + CollectionsMarshal.AsSpan(list129)[0] = 339; skipStepConditions4.NotInTerritory = list129; skipConditions8.StepIf = skipStepConditions4; obj98.SkipConditions = skipConditions8; reference102 = obj98; - num2++; - ref QuestStep reference103 = ref span128[num2]; + ref QuestStep reference103 = ref span51[1]; QuestStep obj99 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.739164f, 48.345356f, -171f), 339) { TargetTerritoryId = (ushort)135, @@ -87479,21 +72652,17 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num4 = 1; - List list130 = new List(num4); - CollectionsMarshal.SetCount(list130, num4); - Span span130 = CollectionsMarshal.AsSpan(list130); - num3 = 0; - span130[num3] = 339; + num3 = 1; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + CollectionsMarshal.AsSpan(list130)[0] = 339; skipStepConditions5.NotInTerritory = list130; skipConditions9.StepIf = skipStepConditions5; obj99.SkipConditions = skipConditions9; num3 = 1; List list131 = new List(num3); CollectionsMarshal.SetCount(list131, num3); - Span span131 = CollectionsMarshal.AsSpan(list131); - num4 = 0; - span131[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list131)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -87502,8 +72671,7 @@ public static class AssemblyQuestLoader }; obj99.DialogueChoices = list131; reference103 = obj99; - num2++; - ref QuestStep reference104 = ref span128[num2]; + ref QuestStep reference104 = ref span51[2]; QuestStep obj100 = new QuestStep(EInteractionType.CompleteQuest, 1002579u, new Vector3(508.01855f, 79.171745f, -61.96692f), 135) { Fly = true, @@ -87519,12 +72687,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list132 = new List(num4); - CollectionsMarshal.SetCount(list132, num4); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - span132[num3] = 135; + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = 135; obj101.InTerritory = list132; skipConditions10.AetheryteShortcutIf = obj101; obj100.SkipConditions = skipConditions10; @@ -87538,16 +72704,13 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span133 = CollectionsMarshal.AsSpan(list133); - index = 0; - span133[index] = "liza"; + CollectionsMarshal.AsSpan(list133)[0] = "liza"; questRoot14.Author = list133; - index = 4; - List list134 = new List(index); - CollectionsMarshal.SetCount(list134, index); - Span span134 = CollectionsMarshal.AsSpan(list134); - num = 0; - ref QuestSequence reference105 = ref span134[num]; + num = 4; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + Span span52 = CollectionsMarshal.AsSpan(list134); + ref QuestSequence reference105 = ref span52[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -87555,30 +72718,24 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj102.Steps = list135; reference105 = obj102; - num++; - ref QuestSequence reference106 = ref span134[num]; + ref QuestSequence reference106 = ref span52[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj103.Steps = list136; reference106 = obj103; - num++; - ref QuestSequence reference107 = ref span134[num]; + ref QuestSequence reference107 = ref span52[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -87586,9 +72743,8 @@ public static class AssemblyQuestLoader num2 = 3; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.9585f, 43.717075f, -345.03116f), 146) + Span span53 = CollectionsMarshal.AsSpan(list137); + span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.9585f, 43.717075f, -345.03116f), 146) { Fly = true, SkipConditions = new SkipConditions @@ -87599,32 +72755,27 @@ public static class AssemblyQuestLoader } } }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.463745f, 10.278164f, -461.99072f), 146) + span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(91.463745f, 10.278164f, -461.99072f), 146) { Fly = true }; - index2++; - span137[index2] = new QuestStep(EInteractionType.Interact, 2002919u, new Vector3(90.958984f, 9.994568f, -460.41046f), 146); + span53[2] = new QuestStep(EInteractionType.Interact, 2002919u, new Vector3(90.958984f, 9.994568f, -460.41046f), 146); obj104.Steps = list137; reference107 = obj104; - num++; - ref QuestSequence reference108 = ref span134[num]; + ref QuestSequence reference108 = ref span52[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) + span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146) { NextQuestId = new QuestId(1218) }; @@ -87637,16 +72788,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot15.Author = list139; - index = 5; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference109 = ref span140[num]; + num = 5; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span55 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference109 = ref span55[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -87654,25 +72802,20 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); obj106.Steps = list141; reference109 = obj106; - num++; - ref QuestSequence reference110 = ref span140[num]; + ref QuestSequence reference110 = ref span55[1]; QuestSequence obj107 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2002931u, new Vector3(-268.54352f, 4.7455444f, -77.16492f), 146) { StopDistance = 0.5f, @@ -87682,17 +72825,14 @@ public static class AssemblyQuestLoader num3 = 2; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span143 = CollectionsMarshal.AsSpan(list143); - num4 = 0; - span143[num4] = 2458u; - num4++; - span143[num4] = 2459u; + Span span57 = CollectionsMarshal.AsSpan(list143); + span57[0] = 2458u; + span57[1] = 2459u; obj108.KillEnemyDataIds = list143; reference111 = obj108; obj107.Steps = list142; reference110 = obj107; - num++; - ref QuestSequence reference112 = ref span140[num]; + ref QuestSequence reference112 = ref span55[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -87700,30 +72840,24 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.Interact, 1005579u, new Vector3(-262.3789f, 4.4491196f, -75.791565f), 146); + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1005579u, new Vector3(-262.3789f, 4.4491196f, -75.791565f), 146); obj109.Steps = list144; reference112 = obj109; - num++; - ref QuestSequence reference113 = ref span140[num]; + ref QuestSequence reference113 = ref span55[3]; QuestSequence obj110 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj110.Steps = list145; reference113 = obj110; - num++; - ref QuestSequence reference114 = ref span140[num]; + ref QuestSequence reference114 = ref span55[4]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -87731,16 +72865,12 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - ref QuestStep reference115 = ref span146[index2]; + ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list146)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1005553u, new Vector3(122.6062f, 16.402647f, -362.11188f), 146); - num4 = 1; - List list147 = new List(num4); - CollectionsMarshal.SetCount(list147, num4); - Span span147 = CollectionsMarshal.AsSpan(list147); - num3 = 0; - span147[num3] = new DialogueChoice + num3 = 1; + List list147 = new List(num3); + CollectionsMarshal.SetCount(list147, num3); + CollectionsMarshal.AsSpan(list147)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANAMA002_01218_SYSYTEM_Q1_000_1"), @@ -87757,30 +72887,24 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list148)[0] = "plogon_enjoyer"; questRoot16.Author = list148; - index = 9; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference116 = ref span149[num]; + num = 9; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span58 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference116 = ref span58[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj112.Steps = list150; reference116 = obj112; - num++; - ref QuestSequence reference117 = ref span149[num]; + ref QuestSequence reference117 = ref span58[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -87788,43 +72912,36 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1005581u, new Vector3(-55.985413f, -1.6554508f, -47.56244f), 146) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1005581u, new Vector3(-55.985413f, -1.6554508f, -47.56244f), 146) { Fly = true }; obj113.Steps = list151; reference117 = obj113; - num++; - ref QuestSequence reference118 = ref span149[num]; + ref QuestSequence reference118 = ref span58[2]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Action = EAction.FieryBreath }; - num2++; - span152[num2] = new QuestStep(EInteractionType.Action, 2002956u, new Vector3(-199.96954f, 5.661072f, 101.823364f), 146) + span59[1] = new QuestStep(EInteractionType.Action, 2002956u, new Vector3(-199.96954f, 5.661072f, 101.823364f), 146) { Action = EAction.FieryBreath }; - num2++; - span152[num2] = new QuestStep(EInteractionType.Action, 2002950u, new Vector3(-118.0896f, 27.695068f, 126.97034f), 146) + span59[2] = new QuestStep(EInteractionType.Action, 2002950u, new Vector3(-118.0896f, 27.695068f, 126.97034f), 146) { Action = EAction.FieryBreath }; obj114.Steps = list152; reference118 = obj114; - num++; - ref QuestSequence reference119 = ref span149[num]; + ref QuestSequence reference119 = ref span58[3]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -87832,27 +72949,21 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1005585u, new Vector3(-114.64105f, 7.539109f, 308.82727f), 146); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1005585u, new Vector3(-114.64105f, 7.539109f, 308.82727f), 146); obj115.Steps = list153; reference119 = obj115; - num++; - ref QuestSequence reference120 = ref span149[num]; + ref QuestSequence reference120 = ref span58[4]; QuestSequence obj116 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj116.Steps = list154; reference120 = obj116; - num++; - ref QuestSequence reference121 = ref span149[num]; + ref QuestSequence reference121 = ref span58[5]; QuestSequence obj117 = new QuestSequence { Sequence = 5 @@ -87860,50 +72971,41 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1005584u, new Vector3(-261.55493f, 7.084492f, 412.28345f), 146) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1005584u, new Vector3(-261.55493f, 7.084492f, 412.28345f), 146) { Fly = true }; obj117.Steps = list155; reference121 = obj117; - num++; - ref QuestSequence reference122 = ref span149[num]; + ref QuestSequence reference122 = ref span58[6]; QuestSequence obj118 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; - num2++; - span156[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-365.44217f, 6.691126f, 395.09555f), 146) + span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-365.44217f, 6.691126f, 395.09555f), 146) { Fly = true }; - 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) + 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) { Fly = true }; - num2++; - span156[num2] = new QuestStep(EInteractionType.Interact, 1008286u, new Vector3(-330.5562f, 8.096848f, 480.0641f), 146) + span60[4] = new QuestStep(EInteractionType.Interact, 1008286u, new Vector3(-330.5562f, 8.096848f, 480.0641f), 146) { Fly = true }; obj118.Steps = list156; reference122 = obj118; - num++; - ref QuestSequence reference123 = ref span149[num]; + ref QuestSequence reference123 = ref span58[7]; QuestSequence obj119 = new QuestSequence { Sequence = 7 @@ -87911,31 +73013,26 @@ public static class AssemblyQuestLoader num2 = 2; 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(-159.56685f, 23.290625f, -334.22568f), 146) + Span span61 = CollectionsMarshal.AsSpan(list157); + span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.56685f, 23.290625f, -334.22568f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - index2++; - span157[index2] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) + span61[1] = new QuestStep(EInteractionType.Interact, 1005578u, new Vector3(89.00586f, 14.439478f, -387.77753f), 146) { Fly = true }; obj119.Steps = list157; reference123 = obj119; - num++; - ref QuestSequence reference124 = ref span149[num]; + ref QuestSequence reference124 = ref span58[8]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -87948,16 +73045,13 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - Span span159 = CollectionsMarshal.AsSpan(list159); - index = 0; - span159[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list159)[0] = "plogon_enjoyer"; questRoot17.Author = list159; - index = 3; - List list160 = new List(index); - CollectionsMarshal.SetCount(list160, index); - Span span160 = CollectionsMarshal.AsSpan(list160); - num = 0; - ref QuestSequence reference125 = ref span160[num]; + num = 3; + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + Span span62 = CollectionsMarshal.AsSpan(list160); + ref QuestSequence reference125 = ref span62[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -87965,23 +73059,19 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj121.Steps = list161; reference125 = obj121; - num++; - ref QuestSequence reference126 = ref span160[num]; + ref QuestSequence reference126 = ref span62[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num2 = 0; - ref QuestStep reference127 = ref span162[num2]; + num2 = 2; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + Span span63 = CollectionsMarshal.AsSpan(list162); + ref QuestStep reference127 = ref span63[0]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(-84.12953f, -14.744684f, -148.0814f), 146) { Fly = true, @@ -87990,28 +73080,23 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span163 = CollectionsMarshal.AsSpan(list163); - num4 = 0; - span163[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list163)[0] = new ComplexCombatData { DataId = 134u, MinimumKillCount = 2u }; obj123.ComplexCombatData = list163; reference127 = obj123; - num2++; - ref QuestStep reference128 = ref span162[num2]; + ref QuestStep reference128 = ref span63[1]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, null, new Vector3(-253.56975f, 6.8785334f, 162.0949f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list164 = new List(num4); - CollectionsMarshal.SetCount(list164, num4); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new ComplexCombatData + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new ComplexCombatData { DataId = 358u, MinimumKillCount = 1u @@ -88020,8 +73105,7 @@ public static class AssemblyQuestLoader reference128 = obj124; obj122.Steps = list162; reference126 = obj122; - num++; - ref QuestSequence reference129 = ref span160[num]; + ref QuestSequence reference129 = ref span62[2]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -88029,9 +73113,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -88044,30 +73126,24 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list166)[0] = "plogon_enjoyer"; questRoot18.Author = list166; - index = 3; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference130 = ref span167[num]; + num = 3; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span64 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference130 = ref span64[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj126.Steps = list168; reference130 = obj126; - num++; - ref QuestSequence reference131 = ref span167[num]; + ref QuestSequence reference131 = ref span64[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -88075,9 +73151,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - ref QuestStep reference132 = ref span169[index2]; + ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list169)[0]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, null, new Vector3(38.26816f, 2.6207216f, -275.37003f), 146) { Fly = true, @@ -88086,15 +73160,13 @@ public static class AssemblyQuestLoader num3 = 2; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span170 = CollectionsMarshal.AsSpan(list170); - num4 = 0; - span170[num4] = new ComplexCombatData + Span span65 = CollectionsMarshal.AsSpan(list170); + span65[0] = new ComplexCombatData { DataId = 742u, MinimumKillCount = 2u }; - num4++; - span170[num4] = new ComplexCombatData + span65[1] = new ComplexCombatData { DataId = 739u, MinimumKillCount = 2u @@ -88103,18 +73175,15 @@ public static class AssemblyQuestLoader reference132 = obj128; obj127.Steps = list169; reference131 = obj127; - num++; - ref QuestSequence reference133 = ref span167[num]; + ref QuestSequence reference133 = ref span64[2]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -88127,16 +73196,13 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list172)[0] = "plogon_enjoyer"; questRoot19.Author = list172; - index = 3; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference134 = ref span173[num]; + num = 3; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span66 = CollectionsMarshal.AsSpan(list173); + ref QuestSequence reference134 = ref span66[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -88144,57 +73210,44 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj130.Steps = list174; reference134 = obj130; - num++; - ref QuestSequence reference135 = ref span173[num]; + ref QuestSequence reference135 = ref span66[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list175 = new List(index2); - CollectionsMarshal.SetCount(list175, index2); - Span span175 = CollectionsMarshal.AsSpan(list175); - num2 = 0; - ref QuestStep reference136 = ref span175[num2]; + num2 = 5; + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + Span span67 = CollectionsMarshal.AsSpan(list175); + ref QuestStep reference136 = ref span67[0]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2002979u, new Vector3(-180.68213f, 6.301941f, -136.21735f), 146) { Fly = true, Land = true }; - 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); + 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); reference137 = list177; - num3++; - span176[num3] = null; - num3++; - span176[num3] = null; - num3++; - span176[num3] = null; - num3++; - span176[num3] = null; + span68[2] = null; + span68[3] = null; + span68[4] = null; + span68[5] = null; obj132.RequiredQuestVariables = list176; reference136 = obj132; - num2++; - ref QuestStep reference138 = ref span175[num2]; + ref QuestStep reference138 = ref span67[1]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2002981u, new Vector3(-30.655396f, 8.651855f, -87.02222f), 146) { Fly = true, @@ -88203,66 +73256,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list178 = new List>(num3); CollectionsMarshal.SetCount(list178, num3); - 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); + 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); reference139 = list179; - num4++; - span178[num4] = null; - num4++; - span178[num4] = null; - num4++; - span178[num4] = null; - num4++; - span178[num4] = null; + span70[2] = null; + span70[3] = null; + span70[4] = null; + span70[5] = null; obj133.RequiredQuestVariables = list178; reference138 = obj133; - num2++; - ref QuestStep reference140 = ref span175[num2]; + ref QuestStep reference140 = ref span67[2]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2002982u, new Vector3(-116.44165f, -0.3204956f, -34.40918f), 146) { Fly = true, Land = true }; - 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); + 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); reference141 = list181; - num3++; - span180[num3] = null; - num3++; - span180[num3] = null; - num3++; - span180[num3] = null; - num3++; - span180[num3] = null; + span72[2] = null; + span72[3] = null; + span72[4] = null; + span72[5] = null; obj134.RequiredQuestVariables = list180; reference140 = obj134; - num2++; - ref QuestStep reference142 = ref span175[num2]; + ref QuestStep reference142 = ref span67[3]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2002985u, new Vector3(-41.031555f, 0.16778564f, 15.915161f), 146) { Fly = true, @@ -88271,72 +73306,52 @@ public static class AssemblyQuestLoader num3 = 6; List> list182 = new List>(num3); CollectionsMarshal.SetCount(list182, num3); - 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); + 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); reference143 = list183; - num4++; - span182[num4] = null; - num4++; - span182[num4] = null; - num4++; - span182[num4] = null; - num4++; - span182[num4] = null; + span74[2] = null; + span74[3] = null; + span74[4] = null; + span74[5] = null; obj135.RequiredQuestVariables = list182; reference142 = obj135; - num2++; - ref QuestStep reference144 = ref span175[num2]; + ref QuestStep reference144 = ref span67[4]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2002986u, new Vector3(-78.81293f, -1.083435f, 44.052734f), 146) { Fly = true, Land = true }; - 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); + 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); reference145 = list185; - num3++; - span184[num3] = null; - num3++; - span184[num3] = null; - num3++; - span184[num3] = null; - num3++; - span184[num3] = null; + span76[2] = null; + span76[3] = null; + span76[4] = null; + span76[5] = null; obj136.RequiredQuestVariables = list184; reference144 = obj136; obj131.Steps = list175; reference135 = obj131; - num++; - ref QuestSequence reference146 = ref span173[num]; + ref QuestSequence reference146 = ref span66[2]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -88344,9 +73359,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -88359,30 +73372,24 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list187)[0] = "plogon_enjoyer"; questRoot20.Author = list187; - index = 3; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference147 = ref span188[num]; + num = 3; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span78 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference147 = ref span78[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj138.Steps = list189; reference147 = obj138; - num++; - ref QuestSequence reference148 = ref span188[num]; + ref QuestSequence reference148 = ref span78[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -88390,9 +73397,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - ref QuestStep reference149 = ref span190[index2]; + ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list190)[0]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(-40.402416f, -1.1266766f, 0.71999836f), 146) { Fly = true, @@ -88401,15 +73406,13 @@ public static class AssemblyQuestLoader num3 = 2; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span191 = CollectionsMarshal.AsSpan(list191); - num4 = 0; - span191[num4] = new ComplexCombatData + Span span79 = CollectionsMarshal.AsSpan(list191); + span79[0] = new ComplexCombatData { DataId = 358u, MinimumKillCount = 3u }; - num4++; - span191[num4] = new ComplexCombatData + span79[1] = new ComplexCombatData { DataId = 2451u, MinimumKillCount = 1u @@ -88418,18 +73421,15 @@ public static class AssemblyQuestLoader reference149 = obj140; obj139.Steps = list190; reference148 = obj139; - num++; - ref QuestSequence reference150 = ref span188[num]; + ref QuestSequence reference150 = ref span78[2]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -88442,16 +73442,13 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list193)[0] = "plogon_enjoyer"; questRoot21.Author = list193; - index = 4; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference151 = ref span194[num]; + num = 4; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span80 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference151 = ref span80[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -88459,35 +73456,28 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj142.Steps = list195; reference151 = obj142; - num++; - ref QuestSequence reference152 = ref span194[num]; + ref QuestSequence reference152 = ref span80[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj143.Steps = list196; reference152 = obj143; - num++; - span194[num] = new QuestSequence + span80[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference153 = ref span194[num]; + ref QuestSequence reference153 = ref span80[3]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -88495,9 +73485,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146) { Fly = true }; @@ -88515,30 +73503,24 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list198)[0] = "plogon_enjoyer"; questRoot22.Author = list198; - index = 3; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference154 = ref span199[num]; + num = 3; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span81 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference154 = ref span81[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj145.Steps = list200; reference154 = obj145; - num++; - ref QuestSequence reference155 = ref span199[num]; + ref QuestSequence reference155 = ref span81[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -88546,29 +73528,24 @@ public static class AssemblyQuestLoader num2 = 6; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - ref QuestStep reference156 = ref span201[index2]; + Span span82 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference156 = ref span82[0]; QuestStep obj147 = new QuestStep(EInteractionType.Combat, 2003169u, new Vector3(-191.18036f, 3.6774292f, -162.00513f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list202 = new List(num4); - CollectionsMarshal.SetCount(list202, num4); - Span span202 = CollectionsMarshal.AsSpan(list202); - num3 = 0; - span202[num3] = 80u; + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = 80u; obj147.KillEnemyDataIds = list202; reference156 = obj147; - index2++; - span201[index2] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-198.6194f, 4.4395595f, -156.7357f), 146) + span82[1] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-198.6194f, 4.4395595f, -156.7357f), 146) { ItemId = 2001191u }; - index2++; - ref QuestStep reference157 = ref span201[index2]; + ref QuestStep reference157 = ref span82[2]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2003168u, new Vector3(-155.44366f, 3.8604736f, -132.21948f), 146) { Fly = true, @@ -88577,50 +73554,40 @@ public static class AssemblyQuestLoader num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span203 = CollectionsMarshal.AsSpan(list203); - num4 = 0; - span203[num4] = 80u; + CollectionsMarshal.AsSpan(list203)[0] = 80u; obj148.KillEnemyDataIds = list203; reference157 = obj148; - index2++; - span201[index2] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-159.83832f, 4.2440715f, -136.43097f), 146) + span82[3] = new QuestStep(EInteractionType.UseItem, 80u, new Vector3(-159.83832f, 4.2440715f, -136.43097f), 146) { ItemId = 2001191u }; - index2++; - ref QuestStep reference158 = ref span201[index2]; + ref QuestStep reference158 = ref span82[4]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2003172u, new Vector3(-19.36377f, 0.47296143f, 15.182739f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list204 = new List(num4); - CollectionsMarshal.SetCount(list204, num4); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - span204[num3] = 80u; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = 80u; obj149.KillEnemyDataIds = list204; reference158 = obj149; - index2++; - span201[index2] = new QuestStep(EInteractionType.UseItem, 81u, new Vector3(-19.760498f, 0.97421986f, 19.790894f), 146) + span82[5] = new QuestStep(EInteractionType.UseItem, 81u, new Vector3(-19.760498f, 0.97421986f, 19.790894f), 146) { ItemId = 2001191u }; obj146.Steps = list201; reference155 = obj146; - num++; - ref QuestSequence reference159 = ref span199[num]; + ref QuestSequence reference159 = ref span81[2]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -88633,16 +73600,13 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list206)[0] = "plogon_enjoyer"; questRoot23.Author = list206; - index = 3; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference160 = ref span207[num]; + num = 3; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span83 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference160 = ref span83[0]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -88650,23 +73614,19 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005550u, new Vector3(105.27197f, 15.359643f, -357.3816f), 146); obj151.Steps = list208; reference160 = obj151; - num++; - ref QuestSequence reference161 = ref span207[num]; + ref QuestSequence reference161 = ref span83[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list209 = new List(index2); - CollectionsMarshal.SetCount(list209, index2); - Span span209 = CollectionsMarshal.AsSpan(list209); - num2 = 0; - ref QuestStep reference162 = ref span209[num2]; + num2 = 6; + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + Span span84 = CollectionsMarshal.AsSpan(list209); + ref QuestStep reference162 = ref span84[0]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 2003141u, new Vector3(-22.537598f, 3.616333f, -44.663208f), 146) { Fly = true @@ -88674,69 +73634,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list210 = new List>(num3); CollectionsMarshal.SetCount(list210, num3); - 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); + 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); reference163 = list211; - num4++; - span210[num4] = null; - num4++; - span210[num4] = null; + span85[4] = null; + span85[5] = null; obj153.RequiredQuestVariables = list210; reference162 = obj153; - num2++; - ref QuestStep reference164 = ref span209[num2]; + ref QuestStep reference164 = ref span84[1]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 2003148u, new Vector3(15.27417f, 2.1820068f, 22.9953f), 146) { Fly = true }; - 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); + 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); reference165 = list213; - num3++; - span212[num3] = null; - num3++; - span212[num3] = null; + span87[4] = null; + span87[5] = null; obj154.RequiredQuestVariables = list212; reference164 = obj154; - num2++; - ref QuestStep reference166 = ref span209[num2]; + ref QuestStep reference166 = ref span84[2]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 2003147u, new Vector3(25.192627f, 2.8533936f, 10.788086f), 146) { Fly = true @@ -88744,67 +73684,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list214 = new List>(num3); CollectionsMarshal.SetCount(list214, num3); - 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); + 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); reference167 = list215; - num4++; - span214[num4] = null; - num4++; - span214[num4] = null; + span89[4] = null; + span89[5] = null; obj155.RequiredQuestVariables = list214; reference166 = obj155; - num2++; - ref QuestStep reference168 = ref span209[num2]; + ref QuestStep reference168 = ref span84[3]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2003140u, new Vector3(-37.094727f, -0.5340576f, 14.90802f), 146) { Fly = true }; - 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); + 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); reference169 = list217; - num3++; - span216[num3] = null; - num3++; - span216[num3] = null; + span91[4] = null; + span91[5] = null; obj156.RequiredQuestVariables = list216; reference168 = obj156; - num2++; - ref QuestStep reference170 = ref span209[num2]; + ref QuestStep reference170 = ref span84[4]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2003136u, new Vector3(-52.99463f, -1.2055054f, 17.532532f), 146) { Fly = true @@ -88812,52 +73733,39 @@ public static class AssemblyQuestLoader num3 = 6; List> list218 = new List>(num3); CollectionsMarshal.SetCount(list218, num3); - 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); + 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); reference171 = list219; - num4++; - span218[num4] = null; - num4++; - span218[num4] = null; + span93[4] = null; + span93[5] = null; obj157.RequiredQuestVariables = list218; reference170 = obj157; - num2++; - ref QuestStep reference172 = ref span209[num2]; + ref QuestStep reference172 = ref span84[5]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, null, new Vector3(-52.99463f, -1.2055054f, 17.532532f), 146) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list220 = new List(num4); - CollectionsMarshal.SetCount(list220, num4); - Span span220 = CollectionsMarshal.AsSpan(list220); - num3 = 0; - span220[num3] = new ComplexCombatData + num3 = 2; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + Span span95 = CollectionsMarshal.AsSpan(list220); + span95[0] = new ComplexCombatData { DataId = 740u, MinimumKillCount = 1u }; - num3++; - span220[num3] = new ComplexCombatData + span95[1] = new ComplexCombatData { DataId = 741u, MinimumKillCount = 1u @@ -88866,8 +73774,7 @@ public static class AssemblyQuestLoader reference172 = obj158; obj152.Steps = list209; reference161 = obj152; - num++; - ref QuestSequence reference173 = ref span207[num]; + ref QuestSequence reference173 = ref span83[2]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -88875,11 +73782,9 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - 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) + 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) { DelaySecondsAtStart = 3f, Fly = true @@ -88893,30 +73798,24 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list222)[0] = "plogon_enjoyer"; questRoot24.Author = list222; - index = 3; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference174 = ref span223[num]; + num = 3; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span97 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference174 = ref span97[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj160.Steps = list224; reference174 = obj160; - num++; - ref QuestSequence reference175 = ref span223[num]; + ref QuestSequence reference175 = ref span97[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -88924,9 +73823,7 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - ref QuestStep reference176 = ref span225[index2]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list225)[0]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, null, new Vector3(-9.631764f, 4.530592f, -52.115612f), 146) { Fly = true, @@ -88935,9 +73832,7 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span226 = CollectionsMarshal.AsSpan(list226); - num4 = 0; - span226[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list226)[0] = new ComplexCombatData { DataId = 2452u, MinimumKillCount = 2u @@ -88946,20 +73841,17 @@ public static class AssemblyQuestLoader reference176 = obj162; obj161.Steps = list225; reference175 = obj161; - num++; - ref QuestSequence reference177 = ref span223[num]; + ref QuestSequence reference177 = ref span97[2]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -88983,16 +73875,13 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list228)[0] = "plogon_enjoyer"; questRoot25.Author = list228; - index = 4; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference178 = ref span229[num]; + num = 4; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span99 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference178 = ref span99[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -89000,31 +73889,25 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj164.Steps = list230; reference178 = obj164; - num++; - ref QuestSequence reference179 = ref span229[num]; + ref QuestSequence reference179 = ref span99[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj165.Steps = list231; reference179 = obj165; - num++; - ref QuestSequence reference180 = ref span229[num]; + ref QuestSequence reference180 = ref span99[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 @@ -89032,40 +73915,30 @@ public static class AssemblyQuestLoader num2 = 4; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - ref QuestStep reference181 = ref span232[index2]; + Span span100 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference181 = ref span100[0]; QuestStep obj167 = new QuestStep(EInteractionType.Action, 2003353u, new Vector3(-248.0965f, 2.8533936f, 675.95935f), 146) { Action = EAction.FieryBreath }; - 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); + 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); reference182 = list234; - num3++; - span233[num3] = null; - num3++; - span233[num3] = null; + span101[4] = null; + span101[5] = null; obj167.RequiredQuestVariables = list233; reference181 = obj167; - index2++; - ref QuestStep reference183 = ref span232[index2]; + ref QuestStep reference183 = ref span100[1]; QuestStep obj168 = new QuestStep(EInteractionType.Action, 2003354u, new Vector3(-132.03638f, -1.449646f, 778.8052f), 146) { Action = EAction.FieryBreath @@ -89073,65 +73946,47 @@ public static class AssemblyQuestLoader num3 = 6; List> list235 = new List>(num3); CollectionsMarshal.SetCount(list235, num3); - 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); + 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); reference184 = list236; - num4++; - span235[num4] = null; - num4++; - span235[num4] = null; + span102[4] = null; + span102[5] = null; obj168.RequiredQuestVariables = list235; reference183 = obj168; - index2++; - ref QuestStep reference185 = ref span232[index2]; + ref QuestStep reference185 = ref span100[2]; QuestStep obj169 = new QuestStep(EInteractionType.Action, 2003356u, new Vector3(78.446655f, 14.328186f, 589.9595f), 146) { Action = EAction.FieryBreath }; - 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); + 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); reference186 = list238; - num3++; - span237[num3] = null; - num3++; - span237[num3] = null; + span104[4] = null; + span104[5] = null; obj169.RequiredQuestVariables = list237; reference185 = obj169; - index2++; - ref QuestStep reference187 = ref span232[index2]; + ref QuestStep reference187 = ref span100[3]; QuestStep obj170 = new QuestStep(EInteractionType.Action, 2003357u, new Vector3(179.9801f, 6.6376343f, 601.15967f), 146) { Action = EAction.FieryBreath @@ -89139,48 +73994,37 @@ public static class AssemblyQuestLoader num3 = 6; List> list239 = new List>(num3); CollectionsMarshal.SetCount(list239, num3); - 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); + 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); reference188 = list240; - num4++; - span239[num4] = null; - num4++; - span239[num4] = null; + span106[4] = null; + span106[5] = null; obj170.RequiredQuestVariables = list239; reference187 = obj170; obj166.Steps = list232; reference180 = obj166; - num++; - ref QuestSequence reference189 = ref span229[num]; + ref QuestSequence reference189 = ref span99[3]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - num2++; - span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -89193,16 +74037,13 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list242)[0] = "plogon_enjoyer"; questRoot26.Author = list242; - index = 5; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference190 = ref span243[num]; + num = 5; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span108 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference190 = ref span108[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -89210,30 +74051,24 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146); obj172.Steps = list244; reference190 = obj172; - num++; - ref QuestSequence reference191 = ref span243[num]; + ref QuestSequence reference191 = ref span108[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj173.Steps = list245; reference191 = obj173; - num++; - ref QuestSequence reference192 = ref span243[num]; + ref QuestSequence reference192 = ref span108[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -89241,47 +74076,36 @@ public static class AssemblyQuestLoader num2 = 11; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-126.48953f, 27.57419f, 138.61473f), 146) + Span span109 = CollectionsMarshal.AsSpan(list246); + span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-126.48953f, 27.57419f, 138.61473f), 146) { Fly = true }; - index2++; - ref QuestStep reference193 = ref span246[index2]; + ref QuestStep reference193 = ref span109[1]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2003048u, new Vector3(-136.85822f, 18.753235f, 116.50256f), 146) { Mount = true }; - 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); + 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); reference194 = list248; - num3++; - span247[num3] = null; - num3++; - span247[num3] = null; - num3++; - span247[num3] = null; + span110[3] = null; + span110[4] = null; + span110[5] = null; obj175.RequiredQuestVariables = list247; reference193 = obj175; - index2++; - ref QuestStep reference195 = ref span246[index2]; + ref QuestStep reference195 = ref span109[2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2003049u, new Vector3(-121.78229f, 28.732666f, 140.33716f), 146) { Mount = true @@ -89289,61 +74113,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list249 = new List>(num3); CollectionsMarshal.SetCount(list249, num3); - 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); + 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); reference196 = list250; - num4++; - span249[num4] = null; - num4++; - span249[num4] = null; - num4++; - span249[num4] = null; + span112[3] = null; + span112[4] = null; + span112[5] = null; obj176.RequiredQuestVariables = list249; reference195 = obj176; - index2++; - ref QuestStep reference197 = ref span246[index2]; + ref QuestStep reference197 = ref span109[3]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2003050u, new Vector3(-91.96619f, 43.07617f, 156.84741f), 146) { Mount = true }; - 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); + 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); reference198 = list252; - num3++; - span251[num3] = null; - num3++; - span251[num3] = null; - num3++; - span251[num3] = null; + span113[3] = null; + span113[4] = null; + span113[5] = null; obj177.RequiredQuestVariables = list251; reference197 = obj177; - index2++; - ref QuestStep reference199 = ref span246[index2]; + ref QuestStep reference199 = ref span109[4]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2003051u, new Vector3(-55.40558f, 42.526855f, 192.18738f), 146) { Mount = true @@ -89351,65 +74157,46 @@ public static class AssemblyQuestLoader num3 = 6; List> list253 = new List>(num3); CollectionsMarshal.SetCount(list253, num3); - 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); + 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); reference200 = list254; - num4++; - span253[num4] = null; - num4++; - span253[num4] = null; - num4++; - span253[num4] = null; + span114[3] = null; + span114[4] = null; + span114[5] = null; obj178.RequiredQuestVariables = list253; reference199 = obj178; - index2++; - ref QuestStep reference201 = ref span246[index2]; + ref QuestStep reference201 = ref span109[5]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 2003052u, new Vector3(6.668152f, 36.9115f, 207.01917f), 146) { Mount = true }; - 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); + 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); reference202 = list256; - num3++; - span255[num3] = null; - num3++; - span255[num3] = null; - num3++; - span255[num3] = null; + span116[3] = null; + span116[4] = null; + span116[5] = null; obj179.RequiredQuestVariables = list255; reference201 = obj179; - index2++; - ref QuestStep reference203 = ref span246[index2]; + ref QuestStep reference203 = ref span109[6]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2003053u, new Vector3(73.31958f, 31.784546f, 153.76514f), 146) { Mount = true @@ -89417,63 +74204,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list257 = new List>(num3); CollectionsMarshal.SetCount(list257, num3); - 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); + 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); reference204 = list258; - num4++; - span257[num4] = null; - num4++; - span257[num4] = null; - num4++; - span257[num4] = null; + span117[3] = null; + span117[4] = null; + span117[5] = null; obj180.RequiredQuestVariables = list257; reference203 = obj180; - index2++; - ref QuestStep reference205 = ref span246[index2]; + ref QuestStep reference205 = ref span109[7]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2003054u, new Vector3(79.42322f, 25.802979f, 208.66711f), 146) { Mount = true }; - 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); + 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); reference206 = list260; - num3++; - span259[num3] = null; - num3++; - span259[num3] = null; - num3++; - span259[num3] = null; + span118[3] = null; + span118[4] = null; + span118[5] = null; obj181.RequiredQuestVariables = list259; reference205 = obj181; - index2++; - ref QuestStep reference207 = ref span246[index2]; + ref QuestStep reference207 = ref span109[8]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 2003055u, new Vector3(106.889404f, 14.602844f, 147.53943f), 146) { Mount = true @@ -89481,72 +74250,56 @@ public static class AssemblyQuestLoader num3 = 6; List> list261 = new List>(num3); CollectionsMarshal.SetCount(list261, num3); - 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); + 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); reference208 = list262; - num4++; - span261[num4] = null; - num4++; - span261[num4] = null; - num4++; - span261[num4] = null; + span120[3] = null; + span120[4] = null; + span120[5] = null; obj182.RequiredQuestVariables = list261; reference207 = obj182; - index2++; - ref QuestStep reference209 = ref span246[index2]; + ref QuestStep reference209 = ref span109[9]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, null, new Vector3(135.42383f, 8.102478f, 178.36267f), 146) { Mount = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list263 = new List(num4); - CollectionsMarshal.SetCount(list263, num4); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = 2456u; + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = 2456u; obj183.KillEnemyDataIds = list263; reference209 = obj183; - index2++; - span246[index2] = new QuestStep(EInteractionType.Interact, 2003056u, new Vector3(135.42383f, 8.102478f, 178.36267f), 146); + span109[10] = new QuestStep(EInteractionType.Interact, 2003056u, new Vector3(135.42383f, 8.102478f, 178.36267f), 146); obj174.Steps = list246; reference192 = obj174; - num++; - ref QuestSequence reference210 = ref span243[num]; + ref QuestSequence reference210 = ref span108[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - num2++; - span264[num2] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) + span121[1] = new QuestStep(EInteractionType.Interact, 1005745u, new Vector3(22.720581f, 4.240738f, -443.07623f), 146) { Fly = true }; obj184.Steps = list264; reference210 = obj184; - num++; - ref QuestSequence reference211 = ref span243[num]; + ref QuestSequence reference211 = ref span108[4]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -89554,9 +74307,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005551u, new Vector3(98.924194f, 15.29447f, -349.4469f), 146) { Fly = true }; @@ -89569,30 +74320,24 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list266)[0] = "plogon_enjoyer"; questRoot27.Author = list266; - index = 3; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference212 = ref span267[num]; + num = 3; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span122 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference212 = ref span122[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj186.Steps = list268; reference212 = obj186; - num++; - ref QuestSequence reference213 = ref span267[num]; + ref QuestSequence reference213 = ref span122[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -89600,9 +74345,7 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - ref QuestStep reference214 = ref span269[index2]; + ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list269)[0]; QuestStep obj188 = new QuestStep(EInteractionType.Combat, null, new Vector3(-38.375584f, 8.492833f, 156.09068f), 146) { Fly = true, @@ -89611,9 +74354,7 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span270 = CollectionsMarshal.AsSpan(list270); - num4 = 0; - span270[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list270)[0] = new ComplexCombatData { DataId = 2452u, MinimumKillCount = 2u @@ -89622,18 +74363,15 @@ public static class AssemblyQuestLoader reference214 = obj188; obj187.Steps = list269; reference213 = obj187; - num++; - ref QuestSequence reference215 = ref span267[num]; + ref QuestSequence reference215 = ref span122[2]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -89646,16 +74384,13 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - Span span272 = CollectionsMarshal.AsSpan(list272); - index = 0; - span272[index] = "skiaz"; + CollectionsMarshal.AsSpan(list272)[0] = "skiaz"; questRoot28.Author = list272; - index = 3; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - ref QuestSequence reference216 = ref span273[num]; + num = 3; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span123 = CollectionsMarshal.AsSpan(list273); + ref QuestSequence reference216 = ref span123[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -89663,38 +74398,32 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj190.Steps = list274; reference216 = obj190; - num++; - ref QuestSequence reference217 = ref span273[num]; + ref QuestSequence reference217 = ref span123[1]; 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" }; - index2 = 2; - List list275 = new List(index2); - CollectionsMarshal.SetCount(list275, index2); - Span span275 = CollectionsMarshal.AsSpan(list275); - num2 = 0; - ref QuestStep reference218 = ref span275[num2]; + num2 = 2; + List list275 = new List(num2); + CollectionsMarshal.SetCount(list275, num2); + Span span124 = CollectionsMarshal.AsSpan(list275); + ref QuestStep reference218 = ref span124[0]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(72.098755f, 12.723299f, 23.544617f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list276 = new List(num4); - CollectionsMarshal.SetCount(list276, num4); - Span span276 = CollectionsMarshal.AsSpan(list276); - num3 = 0; - span276[num3] = new ComplexCombatData + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + CollectionsMarshal.AsSpan(list276)[0] = new ComplexCombatData { DataId = 741u, NameId = 1838u, @@ -89702,8 +74431,7 @@ public static class AssemblyQuestLoader }; obj192.ComplexCombatData = list276; reference218 = obj192; - num2++; - ref QuestStep reference219 = ref span275[num2]; + ref QuestStep reference219 = ref span124[1]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.87158f, 7.586792f, -30.533386f), 146) { Fly = true, @@ -89712,9 +74440,7 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span277 = CollectionsMarshal.AsSpan(list277); - num4 = 0; - span277[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list277)[0] = new ComplexCombatData { DataId = 739u, NameId = 1837u, @@ -89724,8 +74450,7 @@ public static class AssemblyQuestLoader reference219 = obj193; obj191.Steps = list275; reference217 = obj191; - num++; - ref QuestSequence reference220 = ref span273[num]; + ref QuestSequence reference220 = ref span123[2]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue @@ -89733,9 +74458,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -89749,33 +74472,27 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - Span span279 = CollectionsMarshal.AsSpan(list279); - index = 0; - span279[index] = "skiaz"; + CollectionsMarshal.AsSpan(list279)[0] = "skiaz"; questRoot29.Author = list279; - index = 3; - List list280 = new List(index); - CollectionsMarshal.SetCount(list280, index); - Span span280 = CollectionsMarshal.AsSpan(list280); - num = 0; - ref QuestSequence reference221 = ref span280[num]; + num = 3; + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + Span span125 = CollectionsMarshal.AsSpan(list280); + ref QuestSequence reference221 = ref span125[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj195.Steps = list281; reference221 = obj195; - num++; - ref QuestSequence reference222 = ref span280[num]; + ref QuestSequence reference222 = ref span125[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1, @@ -89784,20 +74501,17 @@ public static class AssemblyQuestLoader num2 = 2; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - ref QuestStep reference223 = ref span282[index2]; + Span span126 = CollectionsMarshal.AsSpan(list282); + ref QuestStep reference223 = ref span126[0]; QuestStep obj197 = new QuestStep(EInteractionType.Combat, null, new Vector3(103.1051f, 15.034634f, 20.46234f), 146) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list283 = new List(num4); - CollectionsMarshal.SetCount(list283, num4); - Span span283 = CollectionsMarshal.AsSpan(list283); - num3 = 0; - span283[num3] = new ComplexCombatData + num3 = 1; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + CollectionsMarshal.AsSpan(list283)[0] = new ComplexCombatData { DataId = 742u, NameId = 1840u, @@ -89805,8 +74519,7 @@ public static class AssemblyQuestLoader }; obj197.ComplexCombatData = list283; reference223 = obj197; - index2++; - ref QuestStep reference224 = ref span282[index2]; + ref QuestStep reference224 = ref span126[1]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 740u, new Vector3(103.1051f, 15.034634f, 20.46234f), 146) { Fly = true, @@ -89815,9 +74528,7 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - Span span284 = CollectionsMarshal.AsSpan(list284); - num4 = 0; - span284[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list284)[0] = new ComplexCombatData { DataId = 740u, NameId = 1839u, @@ -89827,18 +74538,15 @@ public static class AssemblyQuestLoader reference224 = obj198; obj196.Steps = list282; reference222 = obj196; - num++; - ref QuestSequence reference225 = ref span280[num]; + ref QuestSequence reference225 = ref span125[2]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -89852,16 +74560,13 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "skiaz"; + CollectionsMarshal.AsSpan(list286)[0] = "skiaz"; questRoot30.Author = list286; - index = 3; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference226 = ref span287[num]; + num = 3; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span127 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference226 = ref span127[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -89869,43 +74574,33 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true }; obj200.Steps = list288; reference226 = obj200; - num++; - ref QuestSequence reference227 = ref span287[num]; + ref QuestSequence reference227 = ref span127[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - 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); + 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); obj201.Steps = list289; reference227 = obj201; - num++; - ref QuestSequence reference228 = ref span287[num]; + ref QuestSequence reference228 = ref span127[2]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -89913,9 +74608,7 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005552u, new Vector3(85.618286f, 15.28719f, -355.70312f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -89929,33 +74622,27 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - Span span291 = CollectionsMarshal.AsSpan(list291); - index = 0; - span291[index] = "skiaz"; + CollectionsMarshal.AsSpan(list291)[0] = "skiaz"; questRoot31.Author = list291; - index = 3; - List list292 = new List(index); - CollectionsMarshal.SetCount(list292, index); - Span span292 = CollectionsMarshal.AsSpan(list292); - num = 0; - ref QuestSequence reference229 = ref span292[num]; + num = 3; + List list292 = new List(num); + CollectionsMarshal.SetCount(list292, num); + Span span129 = CollectionsMarshal.AsSpan(list292); + ref QuestSequence reference229 = ref span129[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj203.Steps = list293; reference229 = obj203; - num++; - ref QuestSequence reference230 = ref span292[num]; + ref QuestSequence reference230 = ref span129[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -89963,28 +74650,24 @@ public static class AssemblyQuestLoader num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - 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]; + 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]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, null, new Vector3(547.38745f, 7.599617f, -36.96097f), 146) { EnemySpawnType = EEnemySpawnType.FateEnemies }; - num4 = 2; - List list295 = new List(num4); - CollectionsMarshal.SetCount(list295, num4); - Span span295 = CollectionsMarshal.AsSpan(list295); - num3 = 0; - span295[num3] = new ComplexCombatData + num3 = 2; + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + Span span131 = CollectionsMarshal.AsSpan(list295); + span131[0] = new ComplexCombatData { DataId = 740u, NameId = 2369u, MinimumKillCount = 3u }; - num3++; - span295[num3] = new ComplexCombatData + span131[1] = new ComplexCombatData { DataId = 2501u, MinimumKillCount = 1u @@ -89993,18 +74676,15 @@ public static class AssemblyQuestLoader reference231 = obj205; obj204.Steps = list294; reference230 = obj204; - num++; - ref QuestSequence reference232 = ref span292[num]; + ref QuestSequence reference232 = ref span129[2]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo @@ -90027,16 +74707,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -90044,33 +74721,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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(45.84424f, 6.073427f, 248.96754f), 152) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); + span2[1] = new QuestStep(EInteractionType.Interact, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -90078,31 +74749,26 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152) + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152) { NextQuestId = new QuestId(1253) }; @@ -90115,16 +74781,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 5; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 5; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span4 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span4[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -90132,30 +74795,24 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005564u, new Vector3(48.203125f, 6.0734696f, 247.79126f), 152); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span4[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span4[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -90163,33 +74820,27 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 1005570u, new Vector3(292.77478f, -0.00153354f, 145.12854f), 152) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1005570u, new Vector3(292.77478f, -0.00153354f, 145.12854f), 152) { StopDistance = 7f }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span4[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span4[4]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -90197,21 +74848,17 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) + Span span5 = CollectionsMarshal.AsSpan(list13); + span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(45.84424f, 6.073427f, 248.96754f), 152) { Fly = true }; - index2++; - ref QuestStep reference10 = ref span13[index2]; + ref QuestStep reference10 = ref span5[1]; 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); - Span span14 = CollectionsMarshal.AsSpan(list14); - int index3 = 0; - span14[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANSYL002_01253_SYSYTEM_Q1_000_1"), @@ -90228,26 +74875,21 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "Censored"; + CollectionsMarshal.AsSpan(list15)[0] = "Censored"; questRoot3.Author = list15; - index = 3; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 3; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span6 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span6[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -90261,8 +74903,7 @@ public static class AssemblyQuestLoader }; obj10.Steps = list17; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span6[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -90270,33 +74911,25 @@ public static class AssemblyQuestLoader num2 = 5; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - ref QuestStep reference13 = ref span18[index2]; + Span span7 = CollectionsMarshal.AsSpan(list18); + ref QuestStep reference13 = ref span7[0]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 2003073u, new Vector3(180.98718f, -0.38153076f, 68.03992f), 152) { Fly = true }; - 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); + 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); obj12.CompletionQuestVariablesFlags = list19; reference13 = obj12; - index2++; - ref QuestStep reference14 = ref span18[index2]; + ref QuestStep reference14 = ref span7[1]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2003069u, new Vector3(327.65686f, -6.088379f, -7.9194946f), 152) { Fly = true @@ -90304,79 +74937,56 @@ public static class AssemblyQuestLoader num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - 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); + 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); obj13.CompletionQuestVariablesFlags = list20; reference14 = obj13; - index2++; - ref QuestStep reference15 = ref span18[index2]; + ref QuestStep reference15 = ref span7[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2003068u, new Vector3(323.81165f, -5.783203f, -17.898865f), 152); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list21; reference15 = questStep2; - index2++; - ref QuestStep reference16 = ref span18[index2]; + ref QuestStep reference16 = ref span7[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; - index2++; - span18[index2] = new QuestStep(EInteractionType.Interact, 2003067u, new Vector3(354.57385f, -4.623535f, -11.39856f), 152); + span7[4] = new QuestStep(EInteractionType.Interact, 2003067u, new Vector3(354.57385f, -4.623535f, -11.39856f), 152); obj11.Steps = list18; reference12 = obj11; - num++; - ref QuestSequence reference17 = ref span16[num]; + ref QuestSequence reference17 = ref span6[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -90393,8 +75003,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span23[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj14.Steps = list23; reference17 = obj14; questRoot3.QuestSequence = list16; @@ -90404,16 +75013,13 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "Censored"; + CollectionsMarshal.AsSpan(list24)[0] = "Censored"; questRoot4.Author = list24; - index = 4; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference18 = ref span25[num]; + num = 4; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span13 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference18 = ref span13[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -90421,9 +75027,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -90437,67 +75041,50 @@ public static class AssemblyQuestLoader }; obj15.Steps = list26; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span13[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list27 = new List(index2); - CollectionsMarshal.SetCount(list27, index2); - Span span27 = CollectionsMarshal.AsSpan(list27); - num2 = 0; - ref QuestStep reference20 = ref span27[num2]; + num2 = 3; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + Span span14 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference20 = ref span14[0]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2003228u, new Vector3(286.2439f, -4.5319824f, 57.114502f), 152) { Fly = true }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list28; reference20 = obj17; - num2++; - ref QuestStep reference21 = ref span27[num2]; + ref QuestStep reference21 = ref span14[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list29; reference21 = questStep4; - num2++; - span27[num2] = new QuestStep(EInteractionType.Interact, 2003222u, new Vector3(253.52856f, -5.5390625f, 22.262878f), 152); + span14[2] = new QuestStep(EInteractionType.Interact, 2003222u, new Vector3(253.52856f, -5.5390625f, 22.262878f), 152); obj16.Steps = list27; reference19 = obj16; - num++; - ref QuestSequence reference22 = ref span25[num]; + ref QuestSequence reference22 = ref span13[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -90505,33 +75092,25 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref QuestStep reference23 = ref span30[index2]; + Span span17 = CollectionsMarshal.AsSpan(list30); + ref QuestStep reference23 = ref span17[0]; QuestStep obj19 = new QuestStep(EInteractionType.UseItem, 2003234u, new Vector3(231.1283f, -3.2197266f, -16.281433f), 152) { ItemId = 2001178u }; - 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); + 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); obj19.CompletionQuestVariablesFlags = list31; reference23 = obj19; - index2++; - ref QuestStep reference24 = ref span30[index2]; + ref QuestStep reference24 = ref span17[1]; QuestStep obj20 = new QuestStep(EInteractionType.UseItem, 2003233u, new Vector3(245.59387f, -5.203369f, -41.672424f), 152) { ItemId = 2001178u @@ -90539,40 +75118,31 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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); + 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); obj20.CompletionQuestVariablesFlags = list32; reference24 = obj20; - index2++; - span30[index2] = new QuestStep(EInteractionType.UseItem, 2003231u, new Vector3(211.56628f, -4.501404f, -51.499268f), 152) + span17[2] = new QuestStep(EInteractionType.UseItem, 2003231u, new Vector3(211.56628f, -4.501404f, -51.499268f), 152) { ItemId = 2001178u }; obj18.Steps = list30; reference22 = obj18; - num++; - ref QuestSequence reference25 = ref span25[num]; + ref QuestSequence reference25 = ref span13[3]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -90589,8 +75159,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj21.Steps = list33; reference25 = obj21; questRoot4.QuestSequence = list25; @@ -90600,16 +75169,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "Censored"; + CollectionsMarshal.AsSpan(list34)[0] = "Censored"; questRoot5.Author = list34; - index = 4; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference26 = ref span35[num]; + num = 4; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span21 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference26 = ref span21[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -90617,9 +75183,7 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -90633,25 +75197,21 @@ public static class AssemblyQuestLoader }; obj22.Steps = list36; reference26 = obj22; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span21[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj23.Steps = list37; reference27 = obj23; - num++; - ref QuestSequence reference28 = ref span35[num]; + ref QuestSequence reference28 = ref span21[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -90659,75 +75219,55 @@ public static class AssemblyQuestLoader num2 = 6; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - ref QuestStep reference29 = ref span38[index2]; + Span span22 = CollectionsMarshal.AsSpan(list38); + ref QuestStep reference29 = ref span22[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2003079u, new Vector3(225.78772f, 5.996765f, 181.78064f), 152); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list39; skipConditions.StepIf = skipStepConditions; questStep5.SkipConditions = skipConditions; reference29 = questStep5; - index2++; - ref QuestStep reference30 = ref span38[index2]; + ref QuestStep reference30 = ref span22[1]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list40; reference30 = questStep6; - 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); + 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); obj24.Steps = list38; reference28 = obj24; - num++; - ref QuestSequence reference31 = ref span35[num]; + ref QuestSequence reference31 = ref span21[3]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -90744,8 +75284,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj25.Steps = list41; reference31 = obj25; questRoot5.QuestSequence = list35; @@ -90761,16 +75300,13 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "Censored"; + CollectionsMarshal.AsSpan(list42)[0] = "Censored"; questRoot6.Author = list42; - index = 3; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference32 = ref span43[num]; + num = 3; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span26 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference32 = ref span26[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -90778,9 +75314,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -90794,29 +75328,24 @@ public static class AssemblyQuestLoader }; obj26.Steps = list44; reference32 = obj26; - num++; - ref QuestSequence reference33 = ref span43[num]; + ref QuestSequence reference33 = ref span26[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref QuestStep reference34 = ref span45[num2]; + num2 = 1; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list45)[0]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(220.62901f, 4.888098f, 163.73048f), 152) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list46 = new List(index3); - CollectionsMarshal.SetCount(list46, index3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num3 = 0; - span46[num3] = new ComplexCombatData + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = new ComplexCombatData { DataId = 2660u, NameId = 2314u, @@ -90826,8 +75355,7 @@ public static class AssemblyQuestLoader reference34 = obj28; obj27.Steps = list45; reference33 = obj27; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span26[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -90835,9 +75363,8 @@ public static class AssemblyQuestLoader num2 = 2; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) + Span span27 = CollectionsMarshal.AsSpan(list47); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.71168f, 4.7303743f, 250.62769f), 152) { Fly = true, Land = true, @@ -90854,8 +75381,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1005561u, new Vector3(47.01306f, 6.0734644f, 254.01685f), 152); obj29.Steps = list47; reference35 = obj29; questRoot6.QuestSequence = list43; @@ -90865,30 +75391,24 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot7.Author = list48; - index = 3; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference36 = ref span49[num]; + num = 3; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span28 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference36 = ref span28[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj30.Steps = list50; reference36 = obj30; - num++; - ref QuestSequence reference37 = ref span49[num]; + ref QuestSequence reference37 = ref span28[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -90896,9 +75416,8 @@ public static class AssemblyQuestLoader num2 = 4; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - ref QuestStep reference38 = ref span51[index2]; + Span span29 = CollectionsMarshal.AsSpan(list51); + ref QuestStep reference38 = ref span29[0]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(321.08926f, -17.347095f, -201.61072f), 152) { Fly = true @@ -90908,25 +75427,18 @@ public static class AssemblyQuestLoader num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list52; skipConditions2.StepIf = skipStepConditions2; obj32.SkipConditions = skipConditions2; reference38 = obj32; - index2++; - ref QuestStep reference39 = ref span51[index2]; + ref QuestStep reference39 = ref span29[1]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2003494u, new Vector3(319.44763f, -17.227417f, -200.88507f), 152) { Fly = true, @@ -90934,33 +75446,24 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list53 = new List(index3); - CollectionsMarshal.SetCount(list53, index3); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - span53[num3] = 764u; + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = 764u; obj33.KillEnemyDataIds = list53; num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - 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); + 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); obj33.CompletionQuestVariablesFlags = list54; reference39 = obj33; - index2++; - ref QuestStep reference40 = ref span51[index2]; + ref QuestStep reference40 = ref span29[2]; QuestStep obj34 = new QuestStep(EInteractionType.Combat, 2003041u, new Vector3(386.099f, -20.187744f, -200.763f), 152) { Fly = true, @@ -90968,33 +75471,24 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list55 = new List(index3); - CollectionsMarshal.SetCount(list55, index3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = 764u; + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = 764u; obj34.KillEnemyDataIds = list55; num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - 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); + 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); obj34.CompletionQuestVariablesFlags = list56; reference40 = obj34; - index2++; - ref QuestStep reference41 = ref span51[index2]; + ref QuestStep reference41 = ref span29[3]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, 2003040u, new Vector3(326.77185f, -18.112549f, -235.95032f), 152) { Fly = true, @@ -91002,28 +75496,23 @@ public static class AssemblyQuestLoader GroundTarget = true, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list57 = new List(index3); - CollectionsMarshal.SetCount(list57, index3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = 764u; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = 764u; obj35.KillEnemyDataIds = list57; reference41 = obj35; obj31.Steps = list51; reference37 = obj31; - num++; - ref QuestSequence reference42 = ref span49[num]; + ref QuestSequence reference42 = ref span28[2]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -91037,16 +75526,13 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "liza"; + CollectionsMarshal.AsSpan(list59)[0] = "liza"; questRoot8.Author = list59; - index = 4; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference43 = ref span60[num]; + num = 4; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span33 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference43 = ref span33[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -91054,30 +75540,24 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj37.Steps = list61; reference43 = obj37; - num++; - ref QuestSequence reference44 = ref span60[num]; + ref QuestSequence reference44 = ref span33[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj38.Steps = list62; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span60[num]; + ref QuestSequence reference45 = ref span33[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -91085,25 +75565,20 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - 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); + 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); obj39.Steps = list63; reference45 = obj39; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span33[3]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -91117,16 +75592,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot9.Author = list65; - index = 3; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference47 = ref span66[num]; + num = 3; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span35 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference47 = ref span35[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -91134,23 +75606,18 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152); obj41.Steps = list67; reference47 = obj41; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span35[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list68 = new List(index2); - CollectionsMarshal.SetCount(list68, index2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref QuestStep reference49 = ref span68[num2]; + num2 = 1; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list68)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(336.78577f, -17.169508f, -252.20335f), 152) { Fly = true, @@ -91159,15 +75626,12 @@ public static class AssemblyQuestLoader num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span69 = CollectionsMarshal.AsSpan(list69); - index3 = 0; - span69[index3] = 2464u; + CollectionsMarshal.AsSpan(list69)[0] = 2464u; obj43.KillEnemyDataIds = list69; reference49 = obj43; obj42.Steps = list68; reference48 = obj42; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span35[2]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -91175,9 +75639,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005562u, new Vector3(36.850464f, -4.8778634f, 249.19507f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -91191,26 +75653,21 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "alydev"; + CollectionsMarshal.AsSpan(list71)[0] = "alydev"; questRoot10.Author = list71; - index = 5; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference51 = ref span72[num]; + num = 5; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span36 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference51 = ref span36[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -91228,8 +75685,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference51 = obj45; - num++; - ref QuestSequence reference52 = ref span72[num]; + ref QuestSequence reference52 = ref span36[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -91237,39 +75693,31 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1005392u, new Vector3(210.25403f, -25.009617f, 223.71252f), 138); obj46.Steps = list74; reference52 = obj46; - num++; - ref QuestSequence reference53 = ref span72[num]; + ref QuestSequence reference53 = ref span36[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list75 = new List(index2); - CollectionsMarshal.SetCount(list75, index2); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref QuestStep reference54 = ref span75[num2]; + num2 = 1; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(219.21672f, -36.40546f, 321.90988f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list76 = new List(index3); - CollectionsMarshal.SetCount(list76, index3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span76[num3] = 1390u; + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = 1390u; obj48.KillEnemyDataIds = list76; reference54 = obj48; obj47.Steps = list75; reference53 = obj47; - num++; - ref QuestSequence reference55 = ref span72[num]; + ref QuestSequence reference55 = ref span36[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -91277,23 +75725,18 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1005393u, new Vector3(221.14893f, -36.405968f, 323.5675f), 138); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1005393u, new Vector3(221.14893f, -36.405968f, 323.5675f), 138); obj49.Steps = list77; reference55 = obj49; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span36[4]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -91318,16 +75761,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "alydev"; + CollectionsMarshal.AsSpan(list79)[0] = "alydev"; questRoot11.Author = list79; - index = 5; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference57 = ref span80[num]; + num = 5; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span37 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference57 = ref span37[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -91335,9 +75775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -91355,22 +75793,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list81; reference57 = obj51; - num++; - ref QuestSequence reference58 = ref span80[num]; + ref QuestSequence reference58 = ref span37[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj52.Steps = list82; reference58 = obj52; - num++; - ref QuestSequence reference59 = ref span80[num]; + ref QuestSequence reference59 = ref span37[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -91378,33 +75812,27 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.UseItem, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.UseItem, 1005395u, new Vector3(523.6437f, 24.754877f, 292.37805f), 138) { ItemId = 2001083u }; obj53.Steps = list83; reference59 = obj53; - num++; - ref QuestSequence reference60 = ref span80[num]; + ref QuestSequence reference60 = ref span37[3]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Soothe }; obj54.Steps = list84; reference60 = obj54; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span37[4]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -91412,9 +75840,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -91439,26 +75865,21 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "alydev"; + CollectionsMarshal.AsSpan(list86)[0] = "alydev"; questRoot12.Author = list86; - index = 4; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference62 = ref span87[num]; + num = 4; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span38 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference62 = ref span38[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -91476,8 +75897,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list88; reference62 = obj56; - num++; - ref QuestSequence reference63 = ref span87[num]; + ref QuestSequence reference63 = ref span38[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -91485,9 +75905,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref QuestStep reference64 = ref span89[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(209.67606f, -16.937475f, 117.99471f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -91495,29 +75913,23 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span90 = CollectionsMarshal.AsSpan(list90); - index3 = 0; - span90[index3] = 2447u; + CollectionsMarshal.AsSpan(list90)[0] = 2447u; obj58.KillEnemyDataIds = list90; reference64 = obj58; obj57.Steps = list89; reference63 = obj57; - num++; - ref QuestSequence reference65 = ref span87[num]; + ref QuestSequence reference65 = ref span38[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj59.Steps = list91; reference65 = obj59; - num++; - ref QuestSequence reference66 = ref span87[num]; + ref QuestSequence reference66 = ref span38[3]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -91525,9 +75937,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005394u, new Vector3(246.87573f, -25.00047f, 246.1737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -91556,16 +75966,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -91573,23 +75980,19 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions @@ -91600,23 +76003,16 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - 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); + 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); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj4 = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions @@ -91624,26 +76020,19 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 64u } }; - 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); + 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); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; QuestStep obj5 = new QuestStep(EInteractionType.Duty, null, null, 146) { DutyOptions = new DutyOptions @@ -91654,25 +76043,18 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - 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); + 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); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -91680,9 +76062,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006951u, new Vector3(73.77734f, 33.066578f, -709.77344f), 156); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -91692,30 +76072,24 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; questRoot2.Author = list9; - index = 2; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 2; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span6 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span6[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span6[1]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -91723,14 +76097,12 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.65878f, 222.21414f, 327.51016f), 155) + Span span7 = CollectionsMarshal.AsSpan(list12); + span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.65878f, 222.21414f, 327.51016f), 155) { Fly = true }; - index2++; - span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006385u, new Vector3(241.50452f, 222.25885f, 325.45972f), 155); + span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1006385u, new Vector3(241.50452f, 222.25885f, 325.45972f), 155); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list10; @@ -91740,27 +76112,23 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "liza"; + CollectionsMarshal.AsSpan(list13)[0] = "liza"; questRoot3.Author = list13; questRoot3.Comment = "Only Turn 9 is required for the next quest to unlock"; - index = 4; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 4; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span8 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span8[0]; QuestSequence obj9 = new QuestSequence { Sequence = 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]; + num2 = 4; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span9 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference10 = ref span9[0]; QuestStep obj10 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -91768,57 +76136,47 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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; + num3 = 2; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + Span span10 = CollectionsMarshal.AsSpan(list16); + span10[0] = 140; + span10[1] = 212; skipStepConditions.InTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - num2++; - ref QuestStep reference11 = ref span15[num2]; + ref QuestStep reference11 = ref span9[1]; 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); - Span span17 = CollectionsMarshal.AsSpan(list17); - num4 = 0; - span17[num4] = 212; + CollectionsMarshal.AsSpan(list17)[0] = 212; skipStepConditions2.InTerritory = list17; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference11 = questStep; - num2++; - ref QuestStep reference12 = ref span15[num2]; + ref QuestStep reference12 = ref span9[2]; 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(); - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = 212; + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = 212; skipStepConditions3.InTerritory = list18; skipConditions3.StepIf = skipStepConditions3; obj11.SkipConditions = skipConditions3; reference12 = obj11; - num2++; - span15[num2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span9[3] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference13 = ref span14[num]; + ref QuestSequence reference13 = ref span8[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -91826,40 +76184,33 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span14[num]; + ref QuestSequence reference14 = ref span8[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span20[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.82307f, -75.39517f, 422.71375f), 154) + span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.82307f, -75.39517f, 422.71375f), 154) { Fly = true }; - num2++; - span20[num2] = new QuestStep(EInteractionType.Interact, 1008539u, new Vector3(-236.74377f, -75.699936f, 423.0868f), 154); + span11[2] = new QuestStep(EInteractionType.Interact, 1008539u, new Vector3(-236.74377f, -75.699936f, 423.0868f), 154); obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span14[num]; + ref QuestSequence reference15 = ref span8[3]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -91867,14 +76218,12 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) + Span span12 = CollectionsMarshal.AsSpan(list21); + span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-43.719337f, -46.570717f, 288.87f), 154) { Fly = true }; - index2++; - span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) + span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1008538u, new Vector3(-35.26361f, -45.545444f, 295.36877f), 154) { NextQuestId = new QuestId(1314) }; @@ -91887,26 +76236,22 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot4.Author = list22; - index = 2; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 2; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span13 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span13[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -91918,15 +76263,12 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference17 = ref span24[num2]; + ref QuestStep reference17 = ref span14[1]; 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); - Span span25 = CollectionsMarshal.AsSpan(list25); - num4 = 0; - span25[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSD302_01314_Q1_000_000"), @@ -91936,8 +76278,7 @@ public static class AssemblyQuestLoader reference17 = questStep2; obj15.Steps = list24; reference16 = obj15; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span13[1]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -91945,22 +76286,18 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.UseItem, null, null, 132) + Span span15 = CollectionsMarshal.AsSpan(list26); + span15[0] = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - index2++; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span15[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj16.Steps = list26; reference18 = obj16; questRoot4.QuestSequence = list23; @@ -91970,26 +76307,21 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list27)[0] = "FalconTaterz"; questRoot5.Author = list27; - index = 7; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference19 = ref span28[num]; + num = 7; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span16 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference19 = ref span16[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -92003,8 +76335,7 @@ public static class AssemblyQuestLoader }; obj17.Steps = list29; reference19 = obj17; - num++; - ref QuestSequence reference20 = ref span28[num]; + ref QuestSequence reference20 = ref span16[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -92012,36 +76343,30 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj18.Steps = list30; reference20 = obj18; - num++; - ref QuestSequence reference21 = ref span28[num]; + ref QuestSequence reference21 = ref span16[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - num2++; - span31[num2] = new QuestStep(EInteractionType.Interact, 1008709u, new Vector3(-431.7846f, 28.038658f, -383.1693f), 140); + span17[1] = new QuestStep(EInteractionType.Interact, 1008709u, new Vector3(-431.7846f, 28.038658f, -383.1693f), 140); obj19.Steps = list31; reference21 = obj19; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span16[3]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -92049,34 +76374,26 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference23 = ref span32[index2]; + Span span18 = CollectionsMarshal.AsSpan(list32); + ref QuestStep reference23 = ref span18[0]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1008713u, new Vector3(108.99512f, 57.816406f, 12.191956f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - 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); + 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); obj21.CompletionQuestVariablesFlags = list33; reference23 = obj21; - index2++; - ref QuestStep reference24 = ref span32[index2]; + ref QuestStep reference24 = ref span18[1]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1002022u, new Vector3(12.039368f, 22.144684f, 65.384766f), 140) { Fly = true @@ -92084,63 +76401,46 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - 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); + 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); obj22.CompletionQuestVariablesFlags = list34; reference24 = obj22; - index2++; - ref QuestStep reference25 = ref span32[index2]; + ref QuestStep reference25 = ref span18[2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1008715u, new Vector3(-69.90167f, 13.38208f, 158.73962f), 140) { Fly = true }; - 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); + 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); obj23.CompletionQuestVariablesFlags = list35; reference25 = obj23; obj20.Steps = list32; reference22 = obj20; - num++; - ref QuestSequence reference26 = ref span28[num]; + ref QuestSequence reference26 = ref span16[4]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj24.Steps = list36; reference26 = obj24; - num++; - ref QuestSequence reference27 = ref span28[num]; + ref QuestSequence reference27 = ref span16[5]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -92148,54 +76448,39 @@ public static class AssemblyQuestLoader num2 = 4; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - ref QuestStep reference28 = ref span37[index2]; + Span span22 = CollectionsMarshal.AsSpan(list37); + ref QuestStep reference28 = ref span22[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list38; reference28 = questStep3; - index2++; - ref QuestStep reference29 = ref span37[index2]; + ref QuestStep reference29 = ref span22[1]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2003656u, new Vector3(-72.95343f, 13.504211f, 159.19727f), 140) { StopDistance = 4.5f }; - 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); + 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); obj26.CompletionQuestVariablesFlags = list39; reference29 = obj26; - index2++; - ref QuestStep reference30 = ref span37[index2]; + ref QuestStep reference30 = ref span22[2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2003657u, new Vector3(-80.18622f, 13.412659f, 158.12915f), 140) { StopDistance = 4.5f @@ -92203,56 +76488,40 @@ public static class AssemblyQuestLoader num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - 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); + 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); obj27.CompletionQuestVariablesFlags = list40; reference30 = obj27; - index2++; - ref QuestStep reference31 = ref span37[index2]; + ref QuestStep reference31 = ref span22[3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003659u, new Vector3(-76.15784f, 13.443176f, 155.90137f), 140); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list41; reference31 = questStep4; obj25.Steps = list37; reference27 = obj25; - num++; - ref QuestSequence reference32 = ref span28[num]; + ref QuestSequence reference32 = ref span16[6]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1316) }; @@ -92265,16 +76534,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list43)[0] = "FalconTaterz"; questRoot6.Author = list43; - index = 4; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 4; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span27 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span27[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -92282,31 +76548,25 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140); + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008716u, new Vector3(-68.00946f, 13.443176f, 157.5188f), 140); obj29.Steps = list45; reference33 = obj29; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span27[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj30.Steps = list46; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span44[num]; + ref QuestSequence reference35 = ref span27[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -92314,31 +76574,26 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 2003665u, new Vector3(34.50061f, 12.191956f, 254.13892f), 147) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 2003665u, new Vector3(34.50061f, 12.191956f, 254.13892f), 147) { Fly = true }; obj31.Steps = list47; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span27[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 2003666u, new Vector3(111.192505f, 19.424683f, 121.20239f), 147) + span28[1] = new QuestStep(EInteractionType.CompleteQuest, 2003666u, new Vector3(111.192505f, 19.424683f, 121.20239f), 147) { NextQuestId = new QuestId(1317) }; @@ -92351,16 +76606,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list49)[0] = "FalconTaterz"; questRoot7.Author = list49; - index = 4; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference37 = ref span50[num]; + num = 4; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span29 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference37 = ref span29[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -92368,27 +76620,21 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008722u, new Vector3(109.7887f, 18.36741f, 121.72119f), 147); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008722u, new Vector3(109.7887f, 18.36741f, 121.72119f), 147); obj33.Steps = list51; reference37 = obj33; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span29[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj34.Steps = list52; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span29[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -92396,29 +76642,24 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) + Span span30 = CollectionsMarshal.AsSpan(list53); + span30[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1008730u, new Vector3(-431.26575f, 28.038658f, -381.4298f), 140); + span30[1] = new QuestStep(EInteractionType.Interact, 1008730u, new Vector3(-431.26575f, 28.038658f, -381.4298f), 140); obj35.Steps = list53; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span50[num]; + ref QuestSequence reference40 = ref span29[3]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1318) }; @@ -92431,16 +76672,13 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list55)[0] = "FalconTaterz"; questRoot8.Author = list55; - index = 9; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference41 = ref span56[num]; + num = 9; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span31 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference41 = ref span31[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -92448,34 +76686,28 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008736u, new Vector3(-418.44818f, 23.113976f, -367.8188f), 140) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008736u, new Vector3(-418.44818f, 23.113976f, -367.8188f), 140) { StopDistance = 5f }; obj37.Steps = list57; reference41 = obj37; - num++; - ref QuestSequence reference42 = ref span56[num]; + ref QuestSequence reference42 = ref span31[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj38.Steps = list58; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span56[num]; + ref QuestSequence reference43 = ref span31[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -92483,27 +76715,21 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1008741u, new Vector3(249.50024f, 222.36392f, 353.6278f), 155); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1008741u, new Vector3(249.50024f, 222.36392f, 353.6278f), 155); obj39.Steps = list59; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span56[num]; + ref QuestSequence reference44 = ref span31[3]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj40.Steps = list60; reference44 = obj40; - num++; - ref QuestSequence reference45 = ref span56[num]; + ref QuestSequence reference45 = ref span31[4]; QuestSequence obj41 = new QuestSequence { Sequence = 4 @@ -92511,33 +76737,27 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.Interact, 2003741u, new Vector3(394.7965f, 225.0553f, 378.80518f), 155) + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2003741u, new Vector3(394.7965f, 225.0553f, 378.80518f), 155) { Fly = true }; obj41.Steps = list61; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span31[5]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj42.Steps = list62; reference46 = obj42; - num++; - ref QuestSequence reference47 = ref span56[num]; + ref QuestSequence reference47 = ref span31[6]; QuestSequence obj43 = new QuestSequence { Sequence = 6 @@ -92545,9 +76765,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Duty, null, null, 155) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Duty, null, null, 155) { DutyOptions = new DutyOptions { @@ -92556,25 +76774,21 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span31[7]; QuestSequence obj44 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 7f }; obj44.Steps = list64; reference48 = obj44; - num++; - ref QuestSequence reference49 = ref span56[num]; + ref QuestSequence reference49 = ref span31[8]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -92582,15 +76796,13 @@ public static class AssemblyQuestLoader num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.UseItem, null, null, 145) + Span span32 = CollectionsMarshal.AsSpan(list65); + span32[0] = new QuestStep(EInteractionType.UseItem, null, null, 145) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - index2++; - span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008788u, new Vector3(-421.46948f, 23.113977f, -367.57465f), 140) + span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1008788u, new Vector3(-421.46948f, 23.113977f, -367.57465f), 140) { Fly = true, NextQuestId = new QuestId(1438) @@ -92604,30 +76816,24 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot9.Author = list66; - index = 8; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference50 = ref span67[num]; + num = 8; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span33 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference50 = ref span33[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj46.Steps = list68; reference50 = obj46; - num++; - ref QuestSequence reference51 = ref span67[num]; + ref QuestSequence reference51 = ref span33[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -92635,30 +76841,24 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1005964u, new Vector3(651.1177f, 9.597839f, 484.73328f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaSwiftperch }; obj47.Steps = list69; reference51 = obj47; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span33[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj48.Steps = list70; reference52 = obj48; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span33[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -92666,16 +76866,12 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - ref QuestStep reference54 = ref span71[index2]; + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list71)[0]; 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); - Span span72 = CollectionsMarshal.AsSpan(list72); - num4 = 0; - span72[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB001_01320_Q1_000_000"), @@ -92685,25 +76881,21 @@ public static class AssemblyQuestLoader reference54 = questStep5; obj49.Steps = list71; reference53 = obj49; - num++; - ref QuestSequence reference55 = ref span67[num]; + ref QuestSequence reference55 = ref span33[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj50.Steps = list73; reference55 = obj50; - num++; - ref QuestSequence reference56 = ref span67[num]; + ref QuestSequence reference56 = ref span33[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -92711,30 +76903,24 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.274828f, 16.260347f, -199.21056f), 180) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.274828f, 16.260347f, -199.21056f), 180) { Fly = true }; obj51.Steps = list74; reference56 = obj51; - num++; - ref QuestSequence reference57 = ref span67[num]; + ref QuestSequence reference57 = ref span33[6]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj52.Steps = list75; reference57 = obj52; - num++; - ref QuestSequence reference58 = ref span67[num]; + ref QuestSequence reference58 = ref span33[7]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -92742,9 +76928,7 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { NextQuestId = new QuestId(1321) }; @@ -92757,30 +76941,24 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot10.Author = list77; - index = 6; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference59 = ref span78[num]; + num = 6; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span34 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference59 = ref span34[0]; QuestSequence obj54 = 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, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180); + 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); obj54.Steps = list79; reference59 = obj54; - num++; - ref QuestSequence reference60 = ref span78[num]; + ref QuestSequence reference60 = ref span34[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -92788,137 +76966,98 @@ public static class AssemblyQuestLoader num2 = 5; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - ref QuestStep reference61 = ref span80[index2]; + Span span35 = CollectionsMarshal.AsSpan(list80); + ref QuestStep reference61 = ref span35[0]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(155.47716f, 68.658165f, -256.36594f), 180); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list81; skipConditions4.StepIf = skipStepConditions4; questStep6.SkipConditions = skipConditions4; reference61 = questStep6; - index2++; - ref QuestStep reference62 = ref span80[index2]; + ref QuestStep reference62 = ref span35[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list82; reference62 = questStep7; - index2++; - ref QuestStep reference63 = ref span80[index2]; + ref QuestStep reference63 = ref span35[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2003713u, new Vector3(181.47546f, 64.59143f, -282.42926f), 180); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list83; reference63 = questStep8; - index2++; - ref QuestStep reference64 = ref span80[index2]; + ref QuestStep reference64 = ref span35[3]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list84; reference64 = questStep9; - index2++; - ref QuestStep reference65 = ref span80[index2]; + ref QuestStep reference65 = ref span35[4]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2003714u, new Vector3(197.00916f, 64.042114f, -225.60468f), 180); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list85; reference65 = questStep10; obj55.Steps = list80; reference60 = obj55; - num++; - ref QuestSequence reference66 = ref span78[num]; + ref QuestSequence reference66 = ref span34[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj56.Steps = list86; reference66 = obj56; - num++; - ref QuestSequence reference67 = ref span78[num]; + ref QuestSequence reference67 = ref span34[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -92926,30 +77065,24 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 2003717u, new Vector3(0.38146973f, 16.433899f, -177.47778f), 180); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 2003717u, new Vector3(0.38146973f, 16.433899f, -177.47778f), 180); obj57.Steps = list87; reference67 = obj57; - num++; - ref QuestSequence reference68 = ref span78[num]; + ref QuestSequence reference68 = ref span34[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj58.Steps = list88; reference68 = obj58; - num++; - ref QuestSequence reference69 = ref span78[num]; + ref QuestSequence reference69 = ref span34[5]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -92957,9 +77090,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref QuestStep reference70 = ref span89[index2]; + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj60 = new QuestStep(EInteractionType.CompleteQuest, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { StopDistance = 5f @@ -92967,9 +77098,7 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span90 = CollectionsMarshal.AsSpan(list90); - num4 = 0; - span90[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB002_01321_Q1_000_000"), @@ -92986,26 +77115,21 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "Censored"; + CollectionsMarshal.AsSpan(list91)[0] = "Censored"; questRoot11.Author = list91; - index = 11; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference71 = ref span92[num]; + num = 11; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span41 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference71 = ref span41[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -93019,8 +77143,7 @@ public static class AssemblyQuestLoader }; obj61.Steps = list93; reference71 = obj61; - num++; - ref QuestSequence reference72 = ref span92[num]; + ref QuestSequence reference72 = ref span41[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -93028,33 +77151,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1007936u, new Vector3(-89.12799f, 64.1947f, -246.84528f), 180) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1007936u, new Vector3(-89.12799f, 64.1947f, -246.84528f), 180) { Fly = true }; obj62.Steps = list94; reference72 = obj62; - num++; - ref QuestSequence reference73 = ref span92[num]; + ref QuestSequence reference73 = ref span41[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj63.Steps = list95; reference73 = obj63; - num++; - ref QuestSequence reference74 = ref span92[num]; + ref QuestSequence reference74 = ref span41[3]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -93062,34 +77179,27 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj64.Steps = list96; reference74 = obj64; - num++; - ref QuestSequence reference75 = ref span92[num]; + ref QuestSequence reference75 = ref span41[4]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num2 = 0; - ref QuestStep reference76 = ref span97[num2]; + num2 = 1; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list97)[0]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; - num4 = 1; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = new DialogueChoice + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB003_01322_Q1_000_000"), @@ -93099,8 +77209,7 @@ public static class AssemblyQuestLoader reference76 = obj66; obj65.Steps = list97; reference75 = obj65; - num++; - ref QuestSequence reference77 = ref span92[num]; + ref QuestSequence reference77 = ref span41[5]; QuestSequence obj67 = new QuestSequence { Sequence = 5 @@ -93108,23 +77217,18 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); obj67.Steps = list99; reference77 = obj67; - num++; - ref QuestSequence reference78 = ref span92[num]; + ref QuestSequence reference78 = ref span41[6]; QuestSequence obj68 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference79 = ref span100[num2]; + num2 = 1; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list100)[0]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2003719u, new Vector3(182.5741f, 24.734863f, -622.33923f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -93132,17 +77236,14 @@ public static class AssemblyQuestLoader num3 = 2; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - num4 = 0; - span101[num4] = 2854u; - num4++; - span101[num4] = 2855u; + Span span42 = CollectionsMarshal.AsSpan(list101); + span42[0] = 2854u; + span42[1] = 2855u; obj69.KillEnemyDataIds = list101; reference79 = obj69; obj68.Steps = list100; reference78 = obj68; - num++; - ref QuestSequence reference80 = ref span92[num]; + ref QuestSequence reference80 = ref span41[7]; QuestSequence obj70 = new QuestSequence { Sequence = 7 @@ -93150,32 +77251,26 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1007937u, new Vector3(221.82031f, 21.484379f, -580.6516f), 180); obj70.Steps = list102; reference80 = obj70; - num++; - ref QuestSequence reference81 = ref span92[num]; + ref QuestSequence reference81 = ref span41[8]; QuestSequence obj71 = new QuestSequence { Sequence = 8 }; - 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) + 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) { ItemId = 2001234u }; obj71.Steps = list103; reference81 = obj71; - num++; - ref QuestSequence reference82 = ref span92[num]; + ref QuestSequence reference82 = ref span41[9]; QuestSequence obj72 = new QuestSequence { Sequence = 9 @@ -93183,23 +77278,18 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Interact, 1008883u, new Vector3(150.19446f, 26.489233f, -555.1385f), 180); + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1008883u, new Vector3(150.19446f, 26.489233f, -555.1385f), 180); obj72.Steps = list104; reference82 = obj72; - num++; - ref QuestSequence reference83 = ref span92[num]; + ref QuestSequence reference83 = ref span41[10]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -93213,16 +77303,13 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "Censored"; + CollectionsMarshal.AsSpan(list106)[0] = "Censored"; questRoot12.Author = list106; - index = 9; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference84 = ref span107[num]; + num = 9; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span44 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference84 = ref span44[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -93230,9 +77317,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -93251,25 +77336,21 @@ public static class AssemblyQuestLoader }; obj74.Steps = list108; reference84 = obj74; - num++; - ref QuestSequence reference85 = ref span107[num]; + ref QuestSequence reference85 = ref span44[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj75.Steps = list109; reference85 = obj75; - num++; - ref QuestSequence reference86 = ref span107[num]; + ref QuestSequence reference86 = ref span44[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -93277,34 +77358,28 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180) { Fly = true }; obj76.Steps = list110; reference86 = obj76; - num++; - ref QuestSequence reference87 = ref span107[num]; + ref QuestSequence reference87 = ref span44[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; obj77.Steps = list111; reference87 = obj77; - num++; - ref QuestSequence reference88 = ref span107[num]; + ref QuestSequence reference88 = ref span44[4]; QuestSequence obj78 = new QuestSequence { Sequence = 4 @@ -93312,45 +77387,36 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - ref QuestStep reference89 = ref span112[index2]; + Span span45 = CollectionsMarshal.AsSpan(list112); + ref QuestStep reference89 = ref span45[0]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(217.99217f, 61.42252f, -233.55513f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj79.KillEnemyDataIds = list113; reference89 = obj79; - index2++; - span112[index2] = new QuestStep(EInteractionType.Interact, 1007941u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); + span45[1] = new QuestStep(EInteractionType.Interact, 1007941u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); obj78.Steps = list112; reference88 = obj78; - num++; - ref QuestSequence reference90 = ref span107[num]; + ref QuestSequence reference90 = ref span44[5]; QuestSequence obj80 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj80.Steps = list114; reference90 = obj80; - num++; - ref QuestSequence reference91 = ref span107[num]; + ref QuestSequence reference91 = ref span44[6]; QuestSequence obj81 = new QuestSequence { Sequence = 6 @@ -93358,30 +77424,24 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1008947u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1008947u, new Vector3(218.98218f, 61.284424f, -233.32574f), 180); obj81.Steps = list115; reference91 = obj81; - num++; - ref QuestSequence reference92 = ref span107[num]; + ref QuestSequence reference92 = ref span44[7]; QuestSequence obj82 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj82.Steps = list116; reference92 = obj82; - num++; - ref QuestSequence reference93 = ref span107[num]; + ref QuestSequence reference93 = ref span44[8]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -93389,9 +77449,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005931u, new Vector3(0.77819824f, 16.159302f, -171.49622f), 180); obj83.Steps = list117; reference93 = obj83; questRoot12.QuestSequence = list107; @@ -93401,26 +77459,21 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "Censored"; + CollectionsMarshal.AsSpan(list118)[0] = "Censored"; questRoot13.Author = list118; - index = 13; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference94 = ref span119[num]; + num = 13; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span47 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference94 = ref span47[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -93439,8 +77492,7 @@ public static class AssemblyQuestLoader }; obj84.Steps = list120; reference94 = obj84; - num++; - ref QuestSequence reference95 = ref span119[num]; + ref QuestSequence reference95 = ref span47[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -93448,27 +77500,21 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1007949u, new Vector3(14.633362f, 16.165525f, -184.31378f), 180); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1007949u, new Vector3(14.633362f, 16.165525f, -184.31378f), 180); obj85.Steps = list121; reference95 = obj85; - num++; - ref QuestSequence reference96 = ref span119[num]; + ref QuestSequence reference96 = ref span47[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj86.Steps = list122; reference96 = obj86; - num++; - ref QuestSequence reference97 = ref span119[num]; + ref QuestSequence reference97 = ref span47[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -93476,26 +77522,22 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj87.Steps = list123; reference97 = obj87; - num++; - ref QuestSequence reference98 = ref span119[num]; + ref QuestSequence reference98 = ref span47[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list124 = new List(index2); - CollectionsMarshal.SetCount(list124, index2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num2 = 0; - ref QuestStep reference99 = ref span124[num2]; + num2 = 3; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + Span span48 = CollectionsMarshal.AsSpan(list124); + ref QuestStep reference99 = ref span48[0]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 2003723u, new Vector3(87.08313f, 22.018738f, -635.5535f), 180) { Fly = true, @@ -93504,54 +77546,39 @@ public static class AssemblyQuestLoader num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - 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); + 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); obj89.CompletionQuestVariablesFlags = list125; reference99 = obj89; - num2++; - ref QuestStep reference100 = ref span124[num2]; + ref QuestStep reference100 = ref span48[1]; QuestStep obj90 = new QuestStep(EInteractionType.UseItem, 2003724u, new Vector3(96.11658f, 21.896606f, -644.9531f), 180) { ItemId = 2001237u }; - 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); + 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); obj90.CompletionQuestVariablesFlags = list126; reference100 = obj90; - num2++; - span124[num2] = new QuestStep(EInteractionType.UseItem, 2003725u, new Vector3(92.94263f, 25.833496f, -655.0851f), 180) + span48[2] = new QuestStep(EInteractionType.UseItem, 2003725u, new Vector3(92.94263f, 25.833496f, -655.0851f), 180) { ItemId = 2001237u }; obj88.Steps = list124; reference98 = obj88; - num++; - ref QuestSequence reference101 = ref span119[num]; + ref QuestSequence reference101 = ref span47[5]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -93559,23 +77586,19 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 1007942u, new Vector3(74.93701f, 24.490723f, -665.5528f), 180); + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1007942u, new Vector3(74.93701f, 24.490723f, -665.5528f), 180); obj91.Steps = list127; reference101 = obj91; - num++; - ref QuestSequence reference102 = ref span119[num]; + ref QuestSequence reference102 = ref span47[6]; QuestSequence obj92 = new QuestSequence { Sequence = 6 }; - index2 = 3; - List list128 = new List(index2); - CollectionsMarshal.SetCount(list128, index2); - Span span128 = CollectionsMarshal.AsSpan(list128); - num2 = 0; - ref QuestStep reference103 = ref span128[num2]; + num2 = 3; + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span51 = CollectionsMarshal.AsSpan(list128); + ref QuestStep reference103 = ref span51[0]; QuestStep obj93 = new QuestStep(EInteractionType.UseItem, 2003727u, new Vector3(157.7019f, 22.11029f, -713.28296f), 180) { ItemId = 2001237u @@ -93583,54 +77606,39 @@ public static class AssemblyQuestLoader num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - 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); + 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); obj93.CompletionQuestVariablesFlags = list129; reference103 = obj93; - num2++; - ref QuestStep reference104 = ref span128[num2]; + ref QuestStep reference104 = ref span51[1]; QuestStep obj94 = new QuestStep(EInteractionType.UseItem, 2003728u, new Vector3(167.65088f, 21.927185f, -707.5151f), 180) { ItemId = 2001237u }; - 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); + 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); obj94.CompletionQuestVariablesFlags = list130; reference104 = obj94; - num2++; - span128[num2] = new QuestStep(EInteractionType.UseItem, 2003726u, new Vector3(163.53088f, 25.925049f, -688.38025f), 180) + span51[2] = new QuestStep(EInteractionType.UseItem, 2003726u, new Vector3(163.53088f, 25.925049f, -688.38025f), 180) { ItemId = 2001237u }; obj92.Steps = list128; reference102 = obj92; - num++; - ref QuestSequence reference105 = ref span119[num]; + ref QuestSequence reference105 = ref span47[7]; QuestSequence obj95 = new QuestSequence { Sequence = 7 @@ -93638,30 +77646,23 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.Interact, 1007943u, new Vector3(176.98938f, 24.795776f, -688.53284f), 180); + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1007943u, new Vector3(176.98938f, 24.795776f, -688.53284f), 180); obj95.Steps = list131; reference105 = obj95; - num++; - ref QuestSequence reference106 = ref span119[num]; + ref QuestSequence reference106 = ref span47[8]; QuestSequence obj96 = new QuestSequence { Sequence = 8 }; - index2 = 1; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num2 = 0; - ref QuestStep reference107 = ref span132[num2]; + num2 = 1; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list132)[0]; 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); - Span span133 = CollectionsMarshal.AsSpan(list133); - num4 = 0; - span133[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB005_01324_Q1_000_000"), @@ -93671,8 +77672,7 @@ public static class AssemblyQuestLoader reference107 = questStep11; obj96.Steps = list132; reference106 = obj96; - num++; - ref QuestSequence reference108 = ref span119[num]; + ref QuestSequence reference108 = ref span47[9]; QuestSequence obj97 = new QuestSequence { Sequence = 9 @@ -93680,27 +77680,21 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 1007946u, new Vector3(220.66064f, 21.481783f, -592.64514f), 180); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1007946u, new Vector3(220.66064f, 21.481783f, -592.64514f), 180); obj97.Steps = list134; reference108 = obj97; - num++; - ref QuestSequence reference109 = ref span119[num]; + ref QuestSequence reference109 = ref span47[10]; QuestSequence obj98 = new QuestSequence { Sequence = 10 }; - 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); + 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); obj98.Steps = list135; reference109 = obj98; - num++; - ref QuestSequence reference110 = ref span119[num]; + ref QuestSequence reference110 = ref span47[11]; QuestSequence obj99 = new QuestSequence { Sequence = 11 @@ -93708,26 +77702,21 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1005927u, new Vector3(-2.8534546f, 16.03717f, -172.5033f), 180) { Fly = true }; obj99.Steps = list136; reference110 = obj99; - num++; - ref QuestSequence reference111 = ref span119[num]; + ref QuestSequence reference111 = ref span47[12]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -93745,16 +77734,13 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "Censored"; + CollectionsMarshal.AsSpan(list138)[0] = "Censored"; questRoot14.Author = list138; - index = 4; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference112 = ref span139[num]; + num = 4; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span54 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference112 = ref span54[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -93762,9 +77748,7 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -93783,70 +77767,53 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference112 = obj101; - num++; - ref QuestSequence reference113 = ref span139[num]; + ref QuestSequence reference113 = ref span54[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num2 = 0; - ref QuestStep reference114 = ref span141[num2]; + num2 = 3; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + Span span55 = CollectionsMarshal.AsSpan(list141); + ref QuestStep reference114 = ref span55[0]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 2003769u, new Vector3(-18.539795f, 48.447266f, -294.2398f), 180) { Fly = true }; - 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); + 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); obj103.CompletionQuestVariablesFlags = list142; reference114 = obj103; - num2++; - ref QuestStep reference115 = ref span141[num2]; + ref QuestStep reference115 = ref span55[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list143; reference115 = questStep12; - num2++; - span141[num2] = new QuestStep(EInteractionType.Interact, 2003773u, new Vector3(79.17908f, 57.51123f, -305.745f), 180) + span55[2] = new QuestStep(EInteractionType.Interact, 2003773u, new Vector3(79.17908f, 57.51123f, -305.745f), 180) { Fly = true }; obj102.Steps = list141; reference113 = obj102; - num++; - ref QuestSequence reference116 = ref span139[num]; + ref QuestSequence reference116 = ref span54[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -93854,26 +77821,21 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.Interact, 1007957u, new Vector3(-101.76245f, 64.49596f, -225.08588f), 180) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1007957u, new Vector3(-101.76245f, 64.49596f, -225.08588f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj104.Steps = list144; reference116 = obj104; - num++; - ref QuestSequence reference117 = ref span139[num]; + ref QuestSequence reference117 = ref span54[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -93886,16 +77848,13 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "liza"; + CollectionsMarshal.AsSpan(list146)[0] = "liza"; questRoot15.Author = list146; - index = 3; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference118 = ref span147[num]; + num = 3; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span58 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference118 = ref span58[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -93903,97 +77862,71 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180); obj106.Steps = list148; reference118 = obj106; - num++; - ref QuestSequence reference119 = ref span147[num]; + ref QuestSequence reference119 = ref span58[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list149 = new List(index2); - CollectionsMarshal.SetCount(list149, index2); - Span span149 = CollectionsMarshal.AsSpan(list149); - num2 = 0; - ref QuestStep reference120 = ref span149[num2]; + num2 = 4; + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + Span span59 = CollectionsMarshal.AsSpan(list149); + ref QuestStep reference120 = ref span59[0]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list150; skipConditions5.StepIf = skipStepConditions5; obj108.SkipConditions = skipConditions5; reference120 = obj108; - num2++; - ref QuestStep reference121 = ref span149[num2]; + ref QuestStep reference121 = ref span59[1]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list151; reference121 = questStep13; - num2++; - ref QuestStep reference122 = ref span149[num2]; + ref QuestStep reference122 = ref span59[2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2004022u, new Vector3(39.139404f, 48.2948f, -342.33618f), 180); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list152; reference122 = questStep14; - num2++; - span149[num2] = new QuestStep(EInteractionType.Interact, 2004020u, new Vector3(51.102417f, 48.2948f, -349.50793f), 180); + span59[3] = new QuestStep(EInteractionType.Interact, 2004020u, new Vector3(51.102417f, 48.2948f, -349.50793f), 180); obj107.Steps = list149; reference119 = obj107; - num++; - ref QuestSequence reference123 = ref span147[num]; + ref QuestSequence reference123 = ref span58[2]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -94001,9 +77934,7 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -94016,26 +77947,21 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - Span span154 = CollectionsMarshal.AsSpan(list154); - index = 0; - span154[index] = "liza"; + CollectionsMarshal.AsSpan(list154)[0] = "liza"; questRoot16.Author = list154; - index = 4; - List list155 = new List(index); - CollectionsMarshal.SetCount(list155, index); - Span span155 = CollectionsMarshal.AsSpan(list155); - num = 0; - ref QuestSequence reference124 = ref span155[num]; + num = 4; + List list155 = new List(num); + CollectionsMarshal.SetCount(list155, num); + Span span63 = CollectionsMarshal.AsSpan(list155); + ref QuestSequence reference124 = ref span63[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -94054,8 +77980,7 @@ public static class AssemblyQuestLoader }; obj110.Steps = list156; reference124 = obj110; - num++; - ref QuestSequence reference125 = ref span155[num]; + ref QuestSequence reference125 = ref span63[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -94063,9 +77988,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - ref QuestStep reference126 = ref span157[index2]; + ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, null, new Vector3(-1.668298f, 48.422268f, -312.28842f), 180) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -94073,9 +77996,7 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span158 = CollectionsMarshal.AsSpan(list158); - num4 = 0; - span158[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list158)[0] = new ComplexCombatData { DataId = 327u, MinimumKillCount = 3u, @@ -94086,25 +78007,21 @@ public static class AssemblyQuestLoader reference126 = obj112; obj111.Steps = list157; reference125 = obj111; - num++; - ref QuestSequence reference127 = ref span155[num]; + ref QuestSequence reference127 = ref span63[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj113.Steps = list159; reference127 = obj113; - num++; - ref QuestSequence reference128 = ref span155[num]; + ref QuestSequence reference128 = ref span63[3]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -94112,9 +78029,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -94127,30 +78042,24 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot17.Author = list161; - index = 3; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference129 = ref span162[num]; + num = 3; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span64 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference129 = ref span64[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj115.Steps = list163; reference129 = obj115; - num++; - ref QuestSequence reference130 = ref span162[num]; + ref QuestSequence reference130 = ref span64[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -94158,38 +78067,31 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - ref QuestStep reference131 = ref span164[index2]; + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list164)[0]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, null, new Vector3(65.98078f, 57.753456f, -310.697f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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; + num3 = 2; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + Span span65 = CollectionsMarshal.AsSpan(list165); + span65[0] = 755u; + span65[1] = 2881u; obj117.KillEnemyDataIds = list165; reference131 = obj117; obj116.Steps = list164; reference130 = obj116; - num++; - ref QuestSequence reference132 = ref span162[num]; + ref QuestSequence reference132 = ref span64[2]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -94207,16 +78109,13 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "Censored"; + CollectionsMarshal.AsSpan(list167)[0] = "Censored"; questRoot18.Author = list167; - index = 7; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference133 = ref span168[num]; + num = 7; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span66 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference133 = ref span66[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -94224,9 +78123,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -94245,22 +78142,18 @@ public static class AssemblyQuestLoader }; obj119.Steps = list169; reference133 = obj119; - num++; - ref QuestSequence reference134 = ref span168[num]; + ref QuestSequence reference134 = ref span66[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj120.Steps = list170; reference134 = obj120; - num++; - ref QuestSequence reference135 = ref span168[num]; + ref QuestSequence reference135 = ref span66[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -94268,9 +78161,8 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference136 = ref span171[index2]; + Span span67 = CollectionsMarshal.AsSpan(list171); + ref QuestStep reference136 = ref span67[0]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2003785u, new Vector3(-53.330322f, 64.46936f, -302.54065f), 180) { Fly = true, @@ -94280,9 +78172,7 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span172 = CollectionsMarshal.AsSpan(list172); - num4 = 0; - span172[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list172)[0] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -94291,28 +78181,21 @@ public static class AssemblyQuestLoader obj122.ComplexCombatData = list172; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list173; skipConditions6.StepIf = skipStepConditions6; obj122.SkipConditions = skipConditions6; reference136 = obj122; - index2++; - ref QuestStep reference137 = ref span171[index2]; + ref QuestStep reference137 = ref span67[1]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, 2003784u, new Vector3(-57.90808f, 64.74402f, -301.68616f), 180) { ItemId = 2001257u, @@ -94321,9 +78204,7 @@ public static class AssemblyQuestLoader num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span174 = CollectionsMarshal.AsSpan(list174); - num4 = 0; - span174[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list174)[0] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -94332,28 +78213,21 @@ public static class AssemblyQuestLoader obj123.ComplexCombatData = list174; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list175; skipConditions7.StepIf = skipStepConditions7; obj123.SkipConditions = skipConditions7; reference137 = obj123; - index2++; - ref QuestStep reference138 = ref span171[index2]; + ref QuestStep reference138 = ref span67[2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2003786u, new Vector3(-63.46228f, 64.83557f, -298.60382f), 180) { ItemId = 2001257u, @@ -94362,9 +78236,7 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span176 = CollectionsMarshal.AsSpan(list176); - num4 = 0; - span176[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list176)[0] = new ComplexCombatData { DataId = 2870u, MinimumKillCount = 1u, @@ -94374,25 +78246,21 @@ public static class AssemblyQuestLoader reference138 = obj124; obj121.Steps = list171; reference135 = obj121; - num++; - ref QuestSequence reference139 = ref span168[num]; + ref QuestSequence reference139 = ref span66[3]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2001258u }; obj125.Steps = list177; reference139 = obj125; - num++; - ref QuestSequence reference140 = ref span168[num]; + ref QuestSequence reference140 = ref span66[4]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -94400,19 +78268,15 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - ref QuestStep reference141 = ref span178[index2]; + ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list178)[0]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2003797u, new Vector3(-49.912292f, 64.46936f, -303.5783f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list179 = new List(num4); - CollectionsMarshal.SetCount(list179, num4); - Span span179 = CollectionsMarshal.AsSpan(list179); - num3 = 0; - span179[num3] = new ComplexCombatData + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = new ComplexCombatData { DataId = 17u, MinimumKillCount = 1u @@ -94421,25 +78285,21 @@ public static class AssemblyQuestLoader reference141 = obj127; obj126.Steps = list178; reference140 = obj126; - num++; - ref QuestSequence reference142 = ref span168[num]; + ref QuestSequence reference142 = ref span66[5]; QuestSequence obj128 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj128.Steps = list180; reference142 = obj128; - num++; - ref QuestSequence reference143 = ref span168[num]; + ref QuestSequence reference143 = ref span66[6]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -94447,9 +78307,7 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -94462,26 +78320,21 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = "Censored"; + CollectionsMarshal.AsSpan(list182)[0] = "Censored"; questRoot19.Author = list182; - index = 5; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref QuestSequence reference144 = ref span183[num]; + num = 5; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span70 = CollectionsMarshal.AsSpan(list183); + ref QuestSequence reference144 = ref span70[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -94500,8 +78353,7 @@ public static class AssemblyQuestLoader }; obj130.Steps = list184; reference144 = obj130; - num++; - ref QuestSequence reference145 = ref span183[num]; + ref QuestSequence reference145 = ref span70[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -94509,23 +78361,19 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj131.Steps = list185; reference145 = obj131; - num++; - ref QuestSequence reference146 = ref span183[num]; + ref QuestSequence reference146 = ref span70[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list186 = new List(index2); - CollectionsMarshal.SetCount(list186, index2); - Span span186 = CollectionsMarshal.AsSpan(list186); - num2 = 0; - ref QuestStep reference147 = ref span186[num2]; + num2 = 3; + List list186 = new List(num2); + CollectionsMarshal.SetCount(list186, num2); + Span span71 = CollectionsMarshal.AsSpan(list186); + ref QuestStep reference147 = ref span71[0]; QuestStep obj133 = new QuestStep(EInteractionType.UseItem, 2003805u, new Vector3(176.10437f, 64.530396f, -273.39594f), 180) { Fly = true, @@ -94534,54 +78382,39 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - 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); + 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); obj133.CompletionQuestVariablesFlags = list187; reference147 = obj133; - num2++; - ref QuestStep reference148 = ref span186[num2]; + ref QuestStep reference148 = ref span71[1]; QuestStep obj134 = new QuestStep(EInteractionType.UseItem, 2003806u, new Vector3(178.45422f, 64.62195f, -271.2292f), 180) { ItemId = 2001260u }; - 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); + 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); obj134.CompletionQuestVariablesFlags = list188; reference148 = obj134; - num2++; - span186[num2] = new QuestStep(EInteractionType.UseItem, 2003807u, new Vector3(180.37683f, 64.43884f, -268.17737f), 180) + span71[2] = new QuestStep(EInteractionType.UseItem, 2003807u, new Vector3(180.37683f, 64.43884f, -268.17737f), 180) { ItemId = 2001260u }; obj132.Steps = list186; reference146 = obj132; - num++; - ref QuestSequence reference149 = ref span183[num]; + ref QuestSequence reference149 = ref span70[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -94589,26 +78422,21 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.UseItem, 2003808u, new Vector3(169.39038f, 65.50696f, -263.72174f), 180) + CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.UseItem, 2003808u, new Vector3(169.39038f, 65.50696f, -263.72174f), 180) { ItemId = 2001261u }; obj135.Steps = list189; reference149 = obj135; - num++; - ref QuestSequence reference150 = ref span183[num]; + ref QuestSequence reference150 = ref span70[4]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -94621,16 +78449,13 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "Censored"; + CollectionsMarshal.AsSpan(list191)[0] = "Censored"; questRoot20.Author = list191; - index = 3; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference151 = ref span192[num]; + num = 3; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span74 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference151 = ref span74[0]; QuestSequence obj137 = new QuestSequence { Sequence = 0 @@ -94638,9 +78463,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -94659,18 +78482,16 @@ public static class AssemblyQuestLoader }; obj137.Steps = list193; reference151 = obj137; - num++; - ref QuestSequence reference152 = ref span192[num]; + ref QuestSequence reference152 = ref span74[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list194 = new List(index2); - CollectionsMarshal.SetCount(list194, index2); - Span span194 = CollectionsMarshal.AsSpan(list194); - num2 = 0; - ref QuestStep reference153 = ref span194[num2]; + num2 = 3; + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + Span span75 = CollectionsMarshal.AsSpan(list194); + ref QuestStep reference153 = ref span75[0]; QuestStep obj139 = new QuestStep(EInteractionType.Interact, 2003553u, new Vector3(181.3534f, 64.7135f, -251.05676f), 180) { Fly = true @@ -94678,48 +78499,33 @@ public static class AssemblyQuestLoader num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - 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); + 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); obj139.CompletionQuestVariablesFlags = list195; reference153 = obj139; - num2++; - ref QuestStep reference154 = ref span194[num2]; + ref QuestStep reference154 = ref span75[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2003557u, new Vector3(194.10999f, 64.80505f, -262.3484f), 180); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list196; reference154 = questStep15; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 2003556u, new Vector3(206.74438f, 64.56079f, -251.78918f), 180); + span75[2] = new QuestStep(EInteractionType.Interact, 2003556u, new Vector3(206.74438f, 64.56079f, -251.78918f), 180); obj138.Steps = list194; reference152 = obj138; - num++; - ref QuestSequence reference155 = ref span192[num]; + ref QuestSequence reference155 = ref span74[2]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -94727,9 +78533,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true }; @@ -94742,26 +78546,21 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "Censored"; + CollectionsMarshal.AsSpan(list198)[0] = "Censored"; questRoot21.Author = list198; - index = 5; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference156 = ref span199[num]; + num = 5; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span78 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference156 = ref span78[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -94780,8 +78579,7 @@ public static class AssemblyQuestLoader }; obj141.Steps = list200; reference156 = obj141; - num++; - ref QuestSequence reference157 = ref span199[num]; + ref QuestSequence reference157 = ref span78[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -94789,23 +78587,19 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180); obj142.Steps = list201; reference157 = obj142; - num++; - ref QuestSequence reference158 = ref span199[num]; + ref QuestSequence reference158 = ref span78[2]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list202 = new List(index2); - CollectionsMarshal.SetCount(list202, index2); - Span span202 = CollectionsMarshal.AsSpan(list202); - num2 = 0; - ref QuestStep reference159 = ref span202[num2]; + num2 = 5; + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + Span span79 = CollectionsMarshal.AsSpan(list202); + ref QuestStep reference159 = ref span79[0]; QuestStep obj144 = new QuestStep(EInteractionType.Emote, 1005950u, new Vector3(-11.7647705f, 49.2008f, -289.2348f), 180) { Fly = true, @@ -94815,47 +78609,33 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - 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); + 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); obj144.CompletionQuestVariablesFlags = list203; reference159 = obj144; - num2++; - ref QuestStep reference160 = ref span202[num2]; + ref QuestStep reference160 = ref span79[1]; QuestStep obj145 = new QuestStep(EInteractionType.Emote, 1005951u, new Vector3(-24.673828f, 49.15637f, -331.50226f), 180) { Emote = EEmote.Soothe }; - 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); + 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); obj145.CompletionQuestVariablesFlags = list204; reference160 = obj145; - num2++; - ref QuestStep reference161 = ref span202[num2]; + ref QuestStep reference161 = ref span79[2]; QuestStep obj146 = new QuestStep(EInteractionType.Emote, 1005947u, new Vector3(-16.159302f, 50.30896f, -351.85785f), 180) { Emote = EEmote.Soothe @@ -94863,54 +78643,39 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - 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); + 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); obj146.CompletionQuestVariablesFlags = list205; reference161 = obj146; - num2++; - ref QuestStep reference162 = ref span202[num2]; + ref QuestStep reference162 = ref span79[3]; QuestStep obj147 = new QuestStep(EInteractionType.Emote, 1005949u, new Vector3(15.42688f, 48.41687f, -324.02533f), 180) { Emote = EEmote.Soothe }; - 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); + 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); obj147.CompletionQuestVariablesFlags = list206; reference162 = obj147; - num2++; - span202[num2] = new QuestStep(EInteractionType.Emote, 1005948u, new Vector3(50.125854f, 48.75892f, -326.55835f), 180) + span79[4] = new QuestStep(EInteractionType.Emote, 1005948u, new Vector3(50.125854f, 48.75892f, -326.55835f), 180) { Emote = EEmote.Soothe }; obj143.Steps = list202; reference158 = obj143; - num++; - ref QuestSequence reference163 = ref span199[num]; + ref QuestSequence reference163 = ref span78[3]; QuestSequence obj148 = new QuestSequence { Sequence = 3 @@ -94918,26 +78683,21 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj148.Steps = list207; reference163 = obj148; - num++; - ref QuestSequence reference164 = ref span199[num]; + ref QuestSequence reference164 = ref span78[4]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -94950,16 +78710,13 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - Span span209 = CollectionsMarshal.AsSpan(list209); - index = 0; - span209[index] = "Censored"; + CollectionsMarshal.AsSpan(list209)[0] = "Censored"; questRoot22.Author = list209; - index = 6; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - ref QuestSequence reference165 = ref span210[num]; + num = 6; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span84 = CollectionsMarshal.AsSpan(list210); + ref QuestSequence reference165 = ref span84[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -94967,9 +78724,7 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005928u, new Vector3(7.095398f, 16.167778f, -188.67786f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -94988,25 +78743,20 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference165 = obj150; - num++; - ref QuestSequence reference166 = ref span210[num]; + ref QuestSequence reference166 = ref span84[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list212 = new List(index2); - CollectionsMarshal.SetCount(list212, index2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - ref QuestStep reference167 = ref span212[num2]; + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list212)[0]; 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); - Span span213 = CollectionsMarshal.AsSpan(list213); - num4 = 0; - span213[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB110_01334_Q1_000_000"), @@ -95016,8 +78766,7 @@ public static class AssemblyQuestLoader reference167 = questStep16; obj151.Steps = list212; reference166 = obj151; - num++; - ref QuestSequence reference168 = ref span210[num]; + ref QuestSequence reference168 = ref span84[2]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -95025,37 +78774,30 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 2003950u, new Vector3(49.973267f, 49.332397f, -342.67188f), 180); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2003950u, new Vector3(49.973267f, 49.332397f, -342.67188f), 180); obj152.Steps = list214; reference168 = obj152; - num++; - ref QuestSequence reference169 = ref span210[num]; + ref QuestSequence reference169 = ref span84[3]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list215 = new List(index2); - CollectionsMarshal.SetCount(list215, index2); - Span span215 = CollectionsMarshal.AsSpan(list215); - num2 = 0; - ref QuestStep reference170 = ref span215[num2]; + num2 = 2; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + Span span85 = CollectionsMarshal.AsSpan(list215); + ref QuestStep reference170 = ref span85[0]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2003954u, new Vector3(48.081177f, 48.599854f, -346.21198f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num4 = 1; - List list216 = new List(num4); - CollectionsMarshal.SetCount(list216, num4); - Span span216 = CollectionsMarshal.AsSpan(list216); - num3 = 0; - span216[num3] = 2871u; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + CollectionsMarshal.AsSpan(list216)[0] = 2871u; obj154.KillEnemyDataIds = list216; reference170 = obj154; - num2++; - ref QuestStep reference171 = ref span215[num2]; + ref QuestStep reference171 = ref span85[1]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 2003954u, new Vector3(48.081177f, 48.599854f, -346.21198f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -95063,15 +78805,12 @@ public static class AssemblyQuestLoader num3 = 1; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span217 = CollectionsMarshal.AsSpan(list217); - num4 = 0; - span217[num4] = 17u; + CollectionsMarshal.AsSpan(list217)[0] = 17u; obj155.KillEnemyDataIds = list217; reference171 = obj155; obj153.Steps = list215; reference169 = obj153; - num++; - ref QuestSequence reference172 = ref span210[num]; + ref QuestSequence reference172 = ref span84[4]; QuestSequence obj156 = new QuestSequence { Sequence = 4 @@ -95079,26 +78818,21 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj156.Steps = list218; reference172 = obj156; - num++; - ref QuestSequence reference173 = ref span210[num]; + ref QuestSequence reference173 = ref span84[5]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -95111,16 +78845,13 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span220 = CollectionsMarshal.AsSpan(list220); - index = 0; - span220[index] = "Censored"; + CollectionsMarshal.AsSpan(list220)[0] = "Censored"; questRoot23.Author = list220; - index = 3; - List list221 = new List(index); - CollectionsMarshal.SetCount(list221, index); - Span span221 = CollectionsMarshal.AsSpan(list221); - num = 0; - ref QuestSequence reference174 = ref span221[num]; + num = 3; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span86 = CollectionsMarshal.AsSpan(list221); + ref QuestSequence reference174 = ref span86[0]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -95128,9 +78859,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -95149,68 +78878,54 @@ public static class AssemblyQuestLoader }; obj158.Steps = list222; reference174 = obj158; - num++; - ref QuestSequence reference175 = ref span221[num]; + ref QuestSequence reference175 = ref span86[1]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list223 = new List(index2); - CollectionsMarshal.SetCount(list223, index2); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref QuestStep reference176 = ref span223[num2]; + num2 = 2; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + Span span87 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference176 = ref span87[0]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, 2003782u, new Vector3(65.35437f, 55.61914f, -450.7973f), 180) { Fly = true, ItemId = 2001256u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list224 = new List(num4); - CollectionsMarshal.SetCount(list224, num4); - Span span224 = CollectionsMarshal.AsSpan(list224); - num3 = 0; - span224[num3] = 756u; + num3 = 1; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + CollectionsMarshal.AsSpan(list224)[0] = 756u; obj160.KillEnemyDataIds = list224; num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - 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; + 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; obj160.CompletionQuestVariablesFlags = list225; reference176 = obj160; - num2++; - ref QuestStep reference177 = ref span223[num2]; + ref QuestStep reference177 = ref span87[1]; QuestStep obj161 = new QuestStep(EInteractionType.Combat, 2003781u, new Vector3(78.446655f, 55.61914f, -470.0542f), 180) { ItemId = 2001256u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list226 = new List(num4); - CollectionsMarshal.SetCount(list226, num4); - Span span226 = CollectionsMarshal.AsSpan(list226); - num3 = 0; - span226[num3] = 756u; + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + CollectionsMarshal.AsSpan(list226)[0] = 756u; obj161.KillEnemyDataIds = list226; reference177 = obj161; obj159.Steps = list223; reference175 = obj159; - num++; - ref QuestSequence reference178 = ref span221[num]; + ref QuestSequence reference178 = ref span86[2]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -95218,9 +78933,7 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -95233,27 +78946,22 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "Censored"; + CollectionsMarshal.AsSpan(list228)[0] = "Censored"; questRoot24.Author = list228; questRoot24.Comment = "FATE"; - index = 2; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference179 = ref span229[num]; + num = 2; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span89 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference179 = ref span89[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -95272,8 +78980,7 @@ public static class AssemblyQuestLoader }; obj163.Steps = list230; reference179 = obj163; - num++; - ref QuestSequence reference180 = ref span229[num]; + ref QuestSequence reference180 = ref span89[1]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -95281,15 +78988,13 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(92.81918f, 55.511665f, -464.93253f), 180) + Span span90 = CollectionsMarshal.AsSpan(list231); + span90[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(92.81918f, 55.511665f, -464.93253f), 180) { Fly = true, Comment = "Do the FATE" }; - index2++; - span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -95302,26 +79007,21 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "liza"; + CollectionsMarshal.AsSpan(list232)[0] = "liza"; questRoot25.Author = list232; - index = 5; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference181 = ref span233[num]; + num = 5; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span91 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference181 = ref span91[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -95340,8 +79040,7 @@ public static class AssemblyQuestLoader }; obj165.Steps = list234; reference181 = obj165; - num++; - ref QuestSequence reference182 = ref span233[num]; + ref QuestSequence reference182 = ref span91[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -95349,26 +79048,21 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj166.Steps = list235; reference182 = obj166; - num++; - ref QuestSequence reference183 = ref span233[num]; + ref QuestSequence reference183 = ref span91[2]; QuestSequence obj167 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list236 = new List(index2); - CollectionsMarshal.SetCount(list236, index2); - Span span236 = CollectionsMarshal.AsSpan(list236); - num2 = 0; - ref QuestStep reference184 = ref span236[num2]; + num2 = 1; + List list236 = new List(num2); + CollectionsMarshal.SetCount(list236, num2); + ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep obj168 = new QuestStep(EInteractionType.Combat, 2003686u, new Vector3(57.602783f, 48.111572f, -388.29633f), 180) { Fly = true, @@ -95378,19 +79072,15 @@ public static class AssemblyQuestLoader num3 = 3; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); - Span span237 = CollectionsMarshal.AsSpan(list237); - num4 = 0; - span237[num4] = 2899u; - num4++; - span237[num4] = 2900u; - num4++; - span237[num4] = 2901u; + Span span92 = CollectionsMarshal.AsSpan(list237); + span92[0] = 2899u; + span92[1] = 2900u; + span92[2] = 2901u; obj168.KillEnemyDataIds = list237; reference184 = obj168; obj167.Steps = list236; reference183 = obj167; - num++; - ref QuestSequence reference185 = ref span233[num]; + ref QuestSequence reference185 = ref span91[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -95398,26 +79088,21 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj169.Steps = list238; reference185 = obj169; - num++; - ref QuestSequence reference186 = ref span233[num]; + ref QuestSequence reference186 = ref span91[4]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -95430,16 +79115,13 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - Span span240 = CollectionsMarshal.AsSpan(list240); - index = 0; - span240[index] = "liza"; + CollectionsMarshal.AsSpan(list240)[0] = "liza"; questRoot26.Author = list240; - index = 3; - List list241 = new List(index); - CollectionsMarshal.SetCount(list241, index); - Span span241 = CollectionsMarshal.AsSpan(list241); - num = 0; - ref QuestSequence reference187 = ref span241[num]; + num = 3; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + Span span93 = CollectionsMarshal.AsSpan(list241); + ref QuestSequence reference187 = ref span93[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -95447,34 +79129,27 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180); obj171.Steps = list242; reference187 = obj171; - num++; - ref QuestSequence reference188 = ref span241[num]; + ref QuestSequence reference188 = ref span93[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list243 = new List(index2); - CollectionsMarshal.SetCount(list243, index2); - Span span243 = CollectionsMarshal.AsSpan(list243); - num2 = 0; - ref QuestStep reference189 = ref span243[num2]; + num2 = 1; + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list243)[0]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, null, new Vector3(51.48164f, 55.599014f, -491.209f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list244 = new List(num4); - CollectionsMarshal.SetCount(list244, num4); - Span span244 = CollectionsMarshal.AsSpan(list244); - num3 = 0; - span244[num3] = new ComplexCombatData + num3 = 1; + List list244 = new List(num3); + CollectionsMarshal.SetCount(list244, num3); + CollectionsMarshal.AsSpan(list244)[0] = new ComplexCombatData { DataId = 2833u, MinimumKillCount = 2u @@ -95483,8 +79158,7 @@ public static class AssemblyQuestLoader reference189 = obj173; obj172.Steps = list243; reference188 = obj172; - num++; - ref QuestSequence reference190 = ref span241[num]; + ref QuestSequence reference190 = ref span93[2]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -95492,9 +79166,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -95507,30 +79179,24 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - Span span246 = CollectionsMarshal.AsSpan(list246); - index = 0; - span246[index] = "liza"; + CollectionsMarshal.AsSpan(list246)[0] = "liza"; questRoot27.Author = list246; - index = 8; - List list247 = new List(index); - CollectionsMarshal.SetCount(list247, index); - Span span247 = CollectionsMarshal.AsSpan(list247); - num = 0; - ref QuestSequence reference191 = ref span247[num]; + num = 8; + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + Span span94 = CollectionsMarshal.AsSpan(list247); + ref QuestSequence reference191 = ref span94[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj175.Steps = list248; reference191 = obj175; - num++; - ref QuestSequence reference192 = ref span247[num]; + ref QuestSequence reference192 = ref span94[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -95538,47 +79204,39 @@ public static class AssemblyQuestLoader num2 = 2; 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(96.21657f, 55.28576f, -500.41245f), 180) + Span span95 = CollectionsMarshal.AsSpan(list249); + span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(96.21657f, 55.28576f, -500.41245f), 180) { Fly = true }; - index2++; - span249[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); + span95[1] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180); obj176.Steps = list249; reference192 = obj176; - num++; - ref QuestSequence reference193 = ref span247[num]; + ref QuestSequence reference193 = ref span94[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list250 = new List(index2); - CollectionsMarshal.SetCount(list250, index2); - Span span250 = CollectionsMarshal.AsSpan(list250); - num2 = 0; - ref QuestStep reference194 = ref span250[num2]; + num2 = 2; + List list250 = new List(num2); + CollectionsMarshal.SetCount(list250, num2); + Span span96 = CollectionsMarshal.AsSpan(list250); + ref QuestStep reference194 = ref span96[0]; 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); - Span span251 = CollectionsMarshal.AsSpan(list251); - num4 = 0; - span251[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list251)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB205_01339_SCENE00008_EVENTAREA_WARP_YESNO_TITLE") }; questStep17.DialogueChoices = list251; reference194 = questStep17; - num2++; - span250[num2] = new QuestStep(EInteractionType.Interact, 2003743u, new Vector3(227.00842f, 22.75116f, -582.81836f), 180); + span96[1] = new QuestStep(EInteractionType.Interact, 2003743u, new Vector3(227.00842f, 22.75116f, -582.81836f), 180); obj177.Steps = list250; reference193 = obj177; - num++; - ref QuestSequence reference195 = ref span247[num]; + ref QuestSequence reference195 = ref span94[3]; QuestSequence obj178 = new QuestSequence { Sequence = 3 @@ -95586,153 +79244,113 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.UseItem, 2003744u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) + CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.UseItem, 2003744u, new Vector3(224.78064f, 23.941406f, -580.9568f), 180) { IgnoreDistanceToObject = true, ItemId = 2001244u }; obj178.Steps = list252; reference195 = obj178; - num++; - ref QuestSequence reference196 = ref span247[num]; + ref QuestSequence reference196 = ref span94[4]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - index2 = 4; - List list253 = new List(index2); - CollectionsMarshal.SetCount(list253, index2); - Span span253 = CollectionsMarshal.AsSpan(list253); - num2 = 0; - ref QuestStep reference197 = ref span253[num2]; + num2 = 4; + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + Span span97 = CollectionsMarshal.AsSpan(list253); + ref QuestStep reference197 = ref span97[0]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span254 = CollectionsMarshal.AsSpan(list254); - num3 = 0; - span254[num3] = 2880u; + num3 = 1; + List list254 = new List(num3); + CollectionsMarshal.SetCount(list254, num3); + CollectionsMarshal.AsSpan(list254)[0] = 2880u; obj180.KillEnemyDataIds = list254; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - 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; + 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; obj180.CompletionQuestVariablesFlags = list255; reference197 = obj180; - num2++; - ref QuestStep reference198 = ref span253[num2]; + ref QuestStep reference198 = ref span97[1]; QuestStep obj181 = new QuestStep(EInteractionType.Combat, 2003745u, new Vector3(242.8778f, 22.507019f, -584.37476f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list256 = new List(num4); - CollectionsMarshal.SetCount(list256, num4); - Span span256 = CollectionsMarshal.AsSpan(list256); - num3 = 0; - span256[num3] = 2880u; + num3 = 1; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + CollectionsMarshal.AsSpan(list256)[0] = 2880u; obj181.KillEnemyDataIds = list256; num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - 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; + 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; obj181.CompletionQuestVariablesFlags = list257; reference198 = obj181; - num2++; - ref QuestStep reference199 = ref span253[num2]; + ref QuestStep reference199 = ref span97[2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list258 = new List(num4); - CollectionsMarshal.SetCount(list258, num4); - Span span258 = CollectionsMarshal.AsSpan(list258); - num3 = 0; - span258[num3] = 2880u; + num3 = 1; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + CollectionsMarshal.AsSpan(list258)[0] = 2880u; obj182.KillEnemyDataIds = list258; num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - 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; + 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; obj182.CompletionQuestVariablesFlags = list259; reference199 = obj182; - num2++; - ref QuestStep reference200 = ref span253[num2]; + ref QuestStep reference200 = ref span97[3]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2003745u, new Vector3(242.8778f, 22.507019f, -584.37476f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list260 = new List(num4); - CollectionsMarshal.SetCount(list260, num4); - Span span260 = CollectionsMarshal.AsSpan(list260); - num3 = 0; - span260[num3] = 2880u; + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + CollectionsMarshal.AsSpan(list260)[0] = 2880u; obj183.KillEnemyDataIds = list260; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - 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; + 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; obj183.CompletionQuestVariablesFlags = list261; reference200 = obj183; obj179.Steps = list253; reference196 = obj179; - num++; - ref QuestSequence reference201 = ref span247[num]; + ref QuestSequence reference201 = ref span94[5]; QuestSequence obj184 = new QuestSequence { Sequence = 5 @@ -95740,43 +79358,35 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - ref QuestStep reference202 = ref span262[index2]; + ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list262)[0]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2003746u, new Vector3(239.30713f, 22.323914f, -577.29456f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list263 = new List(num4); - CollectionsMarshal.SetCount(list263, num4); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = 2883u; + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = 2883u; obj185.KillEnemyDataIds = list263; reference202 = obj185; obj184.Steps = list262; reference201 = obj184; - num++; - ref QuestSequence reference203 = ref span247[num]; + ref QuestSequence reference203 = ref span94[6]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj186.Steps = list264; reference203 = obj186; - num++; - ref QuestSequence reference204 = ref span247[num]; + ref QuestSequence reference204 = ref span94[7]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -95784,9 +79394,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -95799,26 +79407,21 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "Censored"; + CollectionsMarshal.AsSpan(list266)[0] = "Censored"; questRoot28.Author = list266; - index = 5; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference205 = ref span267[num]; + num = 5; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span102 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference205 = ref span102[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -95837,8 +79440,7 @@ public static class AssemblyQuestLoader }; obj188.Steps = list268; reference205 = obj188; - num++; - ref QuestSequence reference206 = ref span267[num]; + ref QuestSequence reference206 = ref span102[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -95846,27 +79448,23 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; obj189.Steps = list269; reference206 = obj189; - num++; - ref QuestSequence reference207 = ref span267[num]; + ref QuestSequence reference207 = ref span102[2]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list270 = new List(index2); - CollectionsMarshal.SetCount(list270, index2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num2 = 0; - ref QuestStep reference208 = ref span270[num2]; + num2 = 5; + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + Span span103 = CollectionsMarshal.AsSpan(list270); + ref QuestStep reference208 = ref span103[0]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -95887,126 +79485,93 @@ public static class AssemblyQuestLoader num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span271 = CollectionsMarshal.AsSpan(list271); - num4 = 0; - span271[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB206_01340_SCENE00023_EVENTAREA_WARP_YESNO_TITLE") }; obj191.DialogueChoices = list271; reference208 = obj191; - num2++; - ref QuestStep reference209 = ref span270[num2]; + ref QuestStep reference209 = ref span103[1]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, null, new Vector3(206.34064f, 26.164192f, -610.01776f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list272 = new List(num4); - CollectionsMarshal.SetCount(list272, num4); - Span span272 = CollectionsMarshal.AsSpan(list272); - num3 = 0; - span272[num3] = 2849u; + num3 = 1; + List list272 = new List(num3); + CollectionsMarshal.SetCount(list272, num3); + CollectionsMarshal.AsSpan(list272)[0] = 2849u; obj192.KillEnemyDataIds = list272; num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - 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); + 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); obj192.CompletionQuestVariablesFlags = list273; reference209 = obj192; - num2++; - ref QuestStep reference210 = ref span270[num2]; + ref QuestStep reference210 = ref span103[2]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(214.34813f, 22.582228f, -620.98737f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list274 = new List(num4); - CollectionsMarshal.SetCount(list274, num4); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - span274[num3] = 2849u; + num3 = 1; + List list274 = new List(num3); + CollectionsMarshal.SetCount(list274, num3); + CollectionsMarshal.AsSpan(list274)[0] = 2849u; obj193.KillEnemyDataIds = list274; num3 = 6; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - 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); + 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); obj193.CompletionQuestVariablesFlags = list275; reference210 = obj193; - num2++; - ref QuestStep reference211 = ref span270[num2]; + ref QuestStep reference211 = ref span103[3]; QuestStep obj194 = new QuestStep(EInteractionType.Combat, null, new Vector3(217.2839f, 21.428452f, -603.1931f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list276 = new List(num4); - CollectionsMarshal.SetCount(list276, num4); - Span span276 = CollectionsMarshal.AsSpan(list276); - num3 = 0; - span276[num3] = 2849u; + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + CollectionsMarshal.AsSpan(list276)[0] = 2849u; obj194.KillEnemyDataIds = list276; num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - 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); + 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); obj194.CompletionQuestVariablesFlags = list277; reference211 = obj194; - num2++; - ref QuestStep reference212 = ref span270[num2]; + ref QuestStep reference212 = ref span103[4]; QuestStep obj195 = new QuestStep(EInteractionType.Combat, null, new Vector3(230.32195f, 21.387749f, -600.7312f), 180) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list278 = new List(num4); - CollectionsMarshal.SetCount(list278, num4); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = 2849u; + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + CollectionsMarshal.AsSpan(list278)[0] = 2849u; obj195.KillEnemyDataIds = list278; reference212 = obj195; obj190.Steps = list270; reference207 = obj190; - num++; - ref QuestSequence reference213 = ref span267[num]; + ref QuestSequence reference213 = ref span102[3]; QuestSequence obj196 = new QuestSequence { Sequence = 3 @@ -96014,26 +79579,21 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.UseItem, 2003647u, new Vector3(223.43774f, 21.469421f, -612.32935f), 180) + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.UseItem, 2003647u, new Vector3(223.43774f, 21.469421f, -612.32935f), 180) { ItemId = 2001222u }; obj196.Steps = list279; reference213 = obj196; - num++; - ref QuestSequence reference214 = ref span267[num]; + ref QuestSequence reference214 = ref span102[4]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -96059,16 +79619,13 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - Span span281 = CollectionsMarshal.AsSpan(list281); - index = 0; - span281[index] = "Censored"; + CollectionsMarshal.AsSpan(list281)[0] = "Censored"; questRoot29.Author = list281; - index = 7; - List list282 = new List(index); - CollectionsMarshal.SetCount(list282, index); - Span span282 = CollectionsMarshal.AsSpan(list282); - num = 0; - ref QuestSequence reference215 = ref span282[num]; + num = 7; + List list282 = new List(num); + CollectionsMarshal.SetCount(list282, num); + Span span107 = CollectionsMarshal.AsSpan(list282); + ref QuestSequence reference215 = ref span107[0]; QuestSequence obj198 = new QuestSequence { Sequence = 0 @@ -96076,9 +79633,7 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -96097,25 +79652,21 @@ public static class AssemblyQuestLoader }; obj198.Steps = list283; reference215 = obj198; - num++; - ref QuestSequence reference216 = ref span282[num]; + ref QuestSequence reference216 = ref span107[1]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj199.Steps = list284; reference216 = obj199; - num++; - ref QuestSequence reference217 = ref span282[num]; + ref QuestSequence reference217 = ref span107[2]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -96123,9 +79674,8 @@ public static class AssemblyQuestLoader num2 = 4; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - ref QuestStep reference218 = ref span285[index2]; + Span span108 = CollectionsMarshal.AsSpan(list285); + ref QuestStep reference218 = ref span108[0]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -96146,123 +79696,96 @@ public static class AssemblyQuestLoader num3 = 1; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - Span span286 = CollectionsMarshal.AsSpan(list286); - num4 = 0; - span286[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list286)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB207_01341_SCENE00018_EVENTAREA_WARP_YESNO_TITLE") }; obj201.DialogueChoices = list286; reference218 = obj201; - index2++; - ref QuestStep reference219 = ref span285[index2]; + ref QuestStep reference219 = ref span108[1]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2003885u, new Vector3(167.68127f, 21.438904f, -564.66016f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list287 = new List(num4); - CollectionsMarshal.SetCount(list287, num4); - Span span287 = CollectionsMarshal.AsSpan(list287); - num3 = 0; - span287[num3] = 755u; + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + CollectionsMarshal.AsSpan(list287)[0] = 755u; obj202.KillEnemyDataIds = list287; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 6; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list288; skipConditions8.StepIf = skipStepConditions8; obj202.SkipConditions = skipConditions8; reference219 = obj202; - index2++; - ref QuestStep reference220 = ref span285[index2]; + ref QuestStep reference220 = ref span108[2]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2003886u, new Vector3(170.8247f, 21.499878f, -565.17896f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list289 = new List(num4); - CollectionsMarshal.SetCount(list289, num4); - Span span289 = CollectionsMarshal.AsSpan(list289); - num3 = 0; - span289[num3] = 755u; + num3 = 1; + List list289 = new List(num3); + CollectionsMarshal.SetCount(list289, num3); + CollectionsMarshal.AsSpan(list289)[0] = 755u; obj203.KillEnemyDataIds = list289; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 6; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list290; skipConditions9.StepIf = skipStepConditions9; obj203.SkipConditions = skipConditions9; reference220 = obj203; - index2++; - ref QuestStep reference221 = ref span285[index2]; + ref QuestStep reference221 = ref span108[3]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, 2003887u, new Vector3(174.05957f, 21.438904f, -565.301f), 180) { ItemId = 2001274u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list291 = new List(num4); - CollectionsMarshal.SetCount(list291, num4); - Span span291 = CollectionsMarshal.AsSpan(list291); - num3 = 0; - span291[num3] = 755u; + num3 = 1; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + CollectionsMarshal.AsSpan(list291)[0] = 755u; obj204.KillEnemyDataIds = list291; reference221 = obj204; obj200.Steps = list285; reference217 = obj200; - num++; - ref QuestSequence reference222 = ref span282[num]; + ref QuestSequence reference222 = ref span107[3]; QuestSequence obj205 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2001275u }; obj205.Steps = list292; reference222 = obj205; - num++; - ref QuestSequence reference223 = ref span282[num]; + ref QuestSequence reference223 = ref span107[4]; QuestSequence obj206 = new QuestSequence { Sequence = 4 @@ -96270,9 +79793,7 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - ref QuestStep reference224 = ref span293[index2]; + ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list293)[0]; QuestStep obj207 = new QuestStep(EInteractionType.Combat, 2003892u, new Vector3(163.07312f, 21.499878f, -571.2215f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96280,25 +79801,20 @@ public static class AssemblyQuestLoader num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span294 = CollectionsMarshal.AsSpan(list294); - num4 = 0; - span294[num4] = 2845u; + CollectionsMarshal.AsSpan(list294)[0] = 2845u; obj207.KillEnemyDataIds = list294; reference224 = obj207; obj206.Steps = list293; reference223 = obj206; - num++; - ref QuestSequence reference225 = ref span282[num]; + ref QuestSequence reference225 = ref span107[5]; QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -96317,8 +79833,7 @@ public static class AssemblyQuestLoader }; obj208.Steps = list295; reference225 = obj208; - num++; - ref QuestSequence reference226 = ref span282[num]; + ref QuestSequence reference226 = ref span107[6]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -96326,9 +79841,7 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span296 = CollectionsMarshal.AsSpan(list296); - index2 = 0; - span296[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true }; @@ -96346,26 +79859,21 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span297 = CollectionsMarshal.AsSpan(list297); - index = 0; - span297[index] = "Censored"; + CollectionsMarshal.AsSpan(list297)[0] = "Censored"; questRoot30.Author = list297; - index = 3; - List list298 = new List(index); - CollectionsMarshal.SetCount(list298, index); - Span span298 = CollectionsMarshal.AsSpan(list298); - num = 0; - ref QuestSequence reference227 = ref span298[num]; + num = 3; + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + Span span111 = CollectionsMarshal.AsSpan(list298); + ref QuestSequence reference227 = ref span111[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -96384,8 +79892,7 @@ public static class AssemblyQuestLoader }; obj210.Steps = list299; reference227 = obj210; - num++; - ref QuestSequence reference228 = ref span298[num]; + ref QuestSequence reference228 = ref span111[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -96393,9 +79900,8 @@ public static class AssemblyQuestLoader num2 = 7; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - ref QuestStep reference229 = ref span300[index2]; + Span span112 = CollectionsMarshal.AsSpan(list300); + ref QuestStep reference229 = ref span112[0]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, @@ -96413,20 +79919,17 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - Span span301 = CollectionsMarshal.AsSpan(list301); - num3 = 0; - span301[num3] = new DialogueChoice + num3 = 1; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANKOB209_01343_SCENE00009_EVENTAREA_WARP_YESNO_TITLE") }; obj212.DialogueChoices = list301; reference229 = obj212; - index2++; - ref QuestStep reference230 = ref span300[index2]; + ref QuestStep reference230 = ref span112[1]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, 1008786u, new Vector3(229.29724f, 21.671387f, -592.4315f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96434,30 +79937,21 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - Span span302 = CollectionsMarshal.AsSpan(list302); - num4 = 0; - span302[num4] = 757u; + CollectionsMarshal.AsSpan(list302)[0] = 757u; obj213.KillEnemyDataIds = list302; - 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); + 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); obj213.CompletionQuestVariablesFlags = list303; reference230 = obj213; - index2++; - ref QuestStep reference231 = ref span300[index2]; + ref QuestStep reference231 = ref span112[2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1008784u, new Vector3(233.875f, 21.66776f, -605.2186f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96465,30 +79959,21 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - Span span304 = CollectionsMarshal.AsSpan(list304); - num4 = 0; - span304[num4] = 757u; + CollectionsMarshal.AsSpan(list304)[0] = 757u; obj214.KillEnemyDataIds = list304; - 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); + 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); obj214.CompletionQuestVariablesFlags = list305; reference231 = obj214; - index2++; - ref QuestStep reference232 = ref span300[index2]; + ref QuestStep reference232 = ref span112[3]; QuestStep obj215 = new QuestStep(EInteractionType.Combat, 1008782u, new Vector3(215.96094f, 21.603994f, -613.3364f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96496,30 +79981,21 @@ public static class AssemblyQuestLoader num3 = 1; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - Span span306 = CollectionsMarshal.AsSpan(list306); - num4 = 0; - span306[num4] = 757u; + CollectionsMarshal.AsSpan(list306)[0] = 757u; obj215.KillEnemyDataIds = list306; - 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); + 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); obj215.CompletionQuestVariablesFlags = list307; reference232 = obj215; - index2++; - ref QuestStep reference233 = ref span300[index2]; + ref QuestStep reference233 = ref span112[4]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, 1008781u, new Vector3(228.29016f, 22.010138f, -616.083f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96527,30 +80003,21 @@ public static class AssemblyQuestLoader num3 = 1; List list308 = new List(num3); CollectionsMarshal.SetCount(list308, num3); - Span span308 = CollectionsMarshal.AsSpan(list308); - num4 = 0; - span308[num4] = 758u; + CollectionsMarshal.AsSpan(list308)[0] = 758u; obj216.KillEnemyDataIds = list308; - 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); + 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); obj216.CompletionQuestVariablesFlags = list309; reference233 = obj216; - index2++; - ref QuestStep reference234 = ref span300[index2]; + ref QuestStep reference234 = ref span112[5]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 1008785u, new Vector3(239.52087f, 25.649525f, -614.2825f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96558,30 +80025,21 @@ public static class AssemblyQuestLoader num3 = 1; List list310 = new List(num3); CollectionsMarshal.SetCount(list310, num3); - Span span310 = CollectionsMarshal.AsSpan(list310); - num4 = 0; - span310[num4] = 758u; + CollectionsMarshal.AsSpan(list310)[0] = 758u; obj217.KillEnemyDataIds = list310; - 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); + 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); obj217.CompletionQuestVariablesFlags = list311; reference234 = obj217; - index2++; - ref QuestStep reference235 = ref span300[index2]; + ref QuestStep reference235 = ref span112[6]; QuestStep obj218 = new QuestStep(EInteractionType.Combat, 1008783u, new Vector3(240.80249f, 26.19751f, -598.50464f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96589,25 +80047,20 @@ public static class AssemblyQuestLoader num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span312 = CollectionsMarshal.AsSpan(list312); - num4 = 0; - span312[num4] = 758u; + CollectionsMarshal.AsSpan(list312)[0] = 758u; obj218.KillEnemyDataIds = list312; reference235 = obj218; obj211.Steps = list300; reference228 = obj211; - num++; - ref QuestSequence reference236 = ref span298[num]; + ref QuestSequence reference236 = ref span111[2]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -96633,16 +80086,13 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - Span span314 = CollectionsMarshal.AsSpan(list314); - index = 0; - span314[index] = "liza"; + CollectionsMarshal.AsSpan(list314)[0] = "liza"; questRoot31.Author = list314; - index = 4; - List list315 = new List(index); - CollectionsMarshal.SetCount(list315, index); - Span span315 = CollectionsMarshal.AsSpan(list315); - num = 0; - ref QuestSequence reference237 = ref span315[num]; + num = 4; + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span118 = CollectionsMarshal.AsSpan(list315); + ref QuestSequence reference237 = ref span118[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -96650,9 +80100,7 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005929u, new Vector3(21.560913f, 16.342407f, -183.76447f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -96671,28 +80119,23 @@ public static class AssemblyQuestLoader }; obj220.Steps = list316; reference237 = obj220; - num++; - ref QuestSequence reference238 = ref span315[num]; + ref QuestSequence reference238 = ref span118[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list317 = new List(index2); - CollectionsMarshal.SetCount(list317, index2); - Span span317 = CollectionsMarshal.AsSpan(list317); - num2 = 0; - ref QuestStep reference239 = ref span317[num2]; + num2 = 1; + List list317 = new List(num2); + CollectionsMarshal.SetCount(list317, num2); + ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list317)[0]; QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; - num4 = 1; - List list318 = new List(num4); - CollectionsMarshal.SetCount(list318, num4); - Span span318 = CollectionsMarshal.AsSpan(list318); - num3 = 0; - span318[num3] = new DialogueChoice + num3 = 1; + List list318 = new List(num3); + CollectionsMarshal.SetCount(list318, num3); + CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB210_01344_Q1_000_000"), @@ -96702,8 +80145,7 @@ public static class AssemblyQuestLoader reference239 = obj222; obj221.Steps = list317; reference238 = obj221; - num++; - ref QuestSequence reference240 = ref span315[num]; + ref QuestSequence reference240 = ref span118[2]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -96711,26 +80153,21 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.Interact, 2003963u, new Vector3(91.203125f, 55.74109f, -483.299f), 180) + CollectionsMarshal.AsSpan(list319)[0] = 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; - num++; - ref QuestSequence reference241 = ref span315[num]; + ref QuestSequence reference241 = ref span118[3]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -96743,16 +80180,13 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span321 = CollectionsMarshal.AsSpan(list321); - index = 0; - span321[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list321)[0] = "JerryWester"; questRoot32.Author = list321; - index = 5; - List list322 = new List(index); - CollectionsMarshal.SetCount(list322, index); - Span span322 = CollectionsMarshal.AsSpan(list322); - num = 0; - ref QuestSequence reference242 = ref span322[num]; + num = 5; + List list322 = new List(num); + CollectionsMarshal.SetCount(list322, num); + Span span119 = CollectionsMarshal.AsSpan(list322); + ref QuestSequence reference242 = ref span119[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -96760,9 +80194,7 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) + CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -96775,25 +80207,21 @@ public static class AssemblyQuestLoader }; obj225.Steps = list323; reference242 = obj225; - num++; - ref QuestSequence reference243 = ref span322[num]; + ref QuestSequence reference243 = ref span119[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj226.Steps = list324; reference243 = obj226; - num++; - ref QuestSequence reference244 = ref span322[num]; + ref QuestSequence reference244 = ref span119[2]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -96801,14 +80229,12 @@ public static class AssemblyQuestLoader num2 = 2; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span325[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.90674f, 52.66078f, -53.850098f), 140) + Span span120 = CollectionsMarshal.AsSpan(list325); + span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.90674f, 52.66078f, -53.850098f), 140) { Fly = true }; - index2++; - ref QuestStep reference245 = ref span325[index2]; + ref QuestStep reference245 = ref span120[1]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2003561u, new Vector3(175.06665f, 52.628296f, -51.651794f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -96816,31 +80242,25 @@ public static class AssemblyQuestLoader num3 = 2; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span326 = CollectionsMarshal.AsSpan(list326); - num4 = 0; - span326[num4] = 2853u; - num4++; - span326[num4] = 2877u; + Span span121 = CollectionsMarshal.AsSpan(list326); + span121[0] = 2853u; + span121[1] = 2877u; obj228.KillEnemyDataIds = list326; reference245 = obj228; obj227.Steps = list325; reference244 = obj227; - num++; - ref QuestSequence reference246 = ref span322[num]; + ref QuestSequence reference246 = ref span119[3]; QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj229.Steps = list327; reference246 = obj229; - num++; - ref QuestSequence reference247 = ref span322[num]; + ref QuestSequence reference247 = ref span119[4]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue @@ -96848,9 +80268,7 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - index2 = 0; - span328[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) + CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1002058u, new Vector3(59.616943f, 45.157562f, -215.89996f), 140) { Fly = true }; @@ -96863,26 +80281,21 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - Span span329 = CollectionsMarshal.AsSpan(list329); - index = 0; - span329[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list329)[0] = "JerryWester"; questRoot33.Author = list329; - index = 10; - List list330 = new List(index); - CollectionsMarshal.SetCount(list330, index); - Span span330 = CollectionsMarshal.AsSpan(list330); - num = 0; - ref QuestSequence reference248 = ref span330[num]; + num = 10; + List list330 = new List(num); + CollectionsMarshal.SetCount(list330, num); + Span span122 = CollectionsMarshal.AsSpan(list330); + ref QuestSequence reference248 = ref span122[0]; QuestSequence obj231 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -96896,8 +80309,7 @@ public static class AssemblyQuestLoader }; obj231.Steps = list331; reference248 = obj231; - num++; - ref QuestSequence reference249 = ref span330[num]; + ref QuestSequence reference249 = ref span122[1]; QuestSequence obj232 = new QuestSequence { Sequence = 1 @@ -96905,29 +80317,24 @@ public static class AssemblyQuestLoader num2 = 2; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span332 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.UseItem, null, null, 140) + Span span123 = CollectionsMarshal.AsSpan(list332); + span123[0] = new QuestStep(EInteractionType.UseItem, null, null, 140) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - index2++; - span332[index2] = new QuestStep(EInteractionType.Interact, 1008600u, new Vector3(-516.35004f, 14.956879f, -370.47382f), 140); + span123[1] = new QuestStep(EInteractionType.Interact, 1008600u, new Vector3(-516.35004f, 14.956879f, -370.47382f), 140); obj232.Steps = list332; reference249 = obj232; - num++; - ref QuestSequence reference250 = ref span330[num]; + ref QuestSequence reference250 = ref span122[2]; QuestSequence obj233 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -96938,8 +80345,7 @@ public static class AssemblyQuestLoader }; obj233.Steps = list333; reference250 = obj233; - num++; - ref QuestSequence reference251 = ref span330[num]; + ref QuestSequence reference251 = ref span122[3]; QuestSequence obj234 = new QuestSequence { Sequence = 3 @@ -96947,9 +80353,7 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.Interact, 1008604u, new Vector3(34.77527f, 7.1999946f, -93.91931f), 130) + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1008604u, new Vector3(34.77527f, 7.1999946f, -93.91931f), 130) { AethernetShortcut = new AethernetShortcut { @@ -96959,22 +80363,18 @@ public static class AssemblyQuestLoader }; obj234.Steps = list334; reference251 = obj234; - num++; - ref QuestSequence reference252 = ref span330[num]; + ref QuestSequence reference252 = ref span122[4]; QuestSequence obj235 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj235.Steps = list335; reference252 = obj235; - num++; - ref QuestSequence reference253 = ref span330[num]; + ref QuestSequence reference253 = ref span122[5]; QuestSequence obj236 = new QuestSequence { Sequence = 5 @@ -96982,23 +80382,19 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span336 = CollectionsMarshal.AsSpan(list336); - index2 = 0; - span336[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); + CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130); obj236.Steps = list336; reference253 = obj236; - num++; - ref QuestSequence reference254 = ref span330[num]; + ref QuestSequence reference254 = ref span122[6]; QuestSequence obj237 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list337 = new List(index2); - CollectionsMarshal.SetCount(list337, index2); - Span span337 = CollectionsMarshal.AsSpan(list337); - num2 = 0; - ref QuestStep reference255 = ref span337[num2]; + num2 = 2; + List list337 = new List(num2); + CollectionsMarshal.SetCount(list337, num2); + Span span124 = CollectionsMarshal.AsSpan(list337); + ref QuestStep reference255 = ref span124[0]; QuestStep obj238 = new QuestStep(EInteractionType.Interact, 1001968u, new Vector3(136.0647f, 4.0099874f, -67.85687f), 131) { AethernetShortcut = new AethernetShortcut @@ -97007,49 +80403,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - 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); + 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); obj238.CompletionQuestVariablesFlags = list338; reference255 = obj238; - num2++; - ref QuestStep reference256 = ref span337[num2]; + ref QuestStep reference256 = ref span124[1]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list339; reference256 = questStep18; obj237.Steps = list337; reference254 = obj237; - num++; - ref QuestSequence reference257 = ref span330[num]; + ref QuestSequence reference257 = ref span122[7]; QuestSequence obj239 = new QuestSequence { Sequence = 7 @@ -97057,9 +80439,7 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AethernetShortcut = new AethernetShortcut { @@ -97069,22 +80449,18 @@ public static class AssemblyQuestLoader }; obj239.Steps = list340; reference257 = obj239; - num++; - ref QuestSequence reference258 = ref span330[num]; + ref QuestSequence reference258 = ref span122[8]; QuestSequence obj240 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj240.Steps = list341; reference258 = obj240; - num++; - ref QuestSequence reference259 = ref span330[num]; + ref QuestSequence reference259 = ref span122[9]; QuestSequence obj241 = new QuestSequence { Sequence = byte.MaxValue @@ -97092,9 +80468,7 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131) + CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008616u, new Vector3(-18.265076f, 36.013893f, 57.938477f), 131) { AethernetShortcut = new AethernetShortcut { @@ -97115,16 +80489,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -97132,9 +80503,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -97147,27 +80516,23 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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(-406.26895f, 23.167036f, -351.92947f), 140) + 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) { Fly = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1008632u, new Vector3(-388.6931f, 23f, -350.94226f), 140); + span2[1] = new QuestStep(EInteractionType.Interact, 1008632u, new Vector3(-388.6931f, 23f, -350.94226f), 140); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -97175,9 +80540,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2003573u, new Vector3(184.64929f, 52.140015f, 29.06836f), 140) { StopDistance = 0.25f, @@ -97188,33 +80551,27 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = 2848u; + CollectionsMarshal.AsSpan(list6)[0] = 2848u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -97222,9 +80579,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -97242,30 +80597,24 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list9)[0] = "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]; + num = 3; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span3[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -97273,53 +80622,45 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - ref QuestStep reference9 = ref span12[index2]; + Span span4 = CollectionsMarshal.AsSpan(list12); + ref QuestStep reference9 = ref span4[0]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { TargetTerritoryId = (ushort)198, AetheryteShortcut = EAetheryteLocation.Limsa }; - index3 = 1; - List list13 = new List(index3); - CollectionsMarshal.SetCount(list13, index3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num3 = 0; - span13[num3] = new DialogueChoice + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE212_01356_Q1_000_1") }; obj9.DialogueChoices = list13; reference9 = obj9; - index2++; - span12[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + span4[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span3[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - num2++; - span14[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.872204f, -3.1182384f, 61.10103f), 138) + span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(62.872204f, -3.1182384f, 61.10103f), 138) { Fly = true }; - num2++; - span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + span5[2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list10; @@ -97329,16 +80670,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list15)[0] = "JerryWester"; questRoot3.Author = list15; - index = 5; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 5; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span6 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span6[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -97346,35 +80684,29 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span6[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span18[num2] = new QuestStep(EInteractionType.UseItem, 1008683u, new Vector3(-208.45355f, -38.993774f, -113.29828f), 138) + span7[1] = new QuestStep(EInteractionType.UseItem, 1008683u, new Vector3(-208.45355f, -38.993774f, -113.29828f), 138) { ItemId = 2001214u }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span6[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -97382,9 +80714,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference14 = ref span19[index2]; + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-450.67154f, -41.88713f, -238.96031f), 138) { Fly = true, @@ -97393,76 +80723,57 @@ public static class AssemblyQuestLoader num3 = 3; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - index3 = 0; - span20[index3] = 2861u; - index3++; - span20[index3] = 2862u; - index3++; - span20[index3] = 2863u; + Span span8 = CollectionsMarshal.AsSpan(list20); + span8[0] = 2861u; + span8[1] = 2862u; + span8[2] = 2863u; obj14.KillEnemyDataIds = list20; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span16[num]; + ref QuestSequence reference15 = ref span6[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref QuestStep reference16 = ref span21[num2]; + num2 = 2; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + Span span9 = CollectionsMarshal.AsSpan(list21); + ref QuestStep reference16 = ref span9[0]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1008684u, new Vector3(-451.77386f, -41.985073f, -237.72034f), 138) { StopDistance = 0.25f }; - 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); + 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); obj16.CompletionQuestVariablesFlags = list22; reference16 = obj16; - num2++; - ref QuestStep reference17 = ref span21[num2]; + ref QuestStep reference17 = ref span9[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list23; reference17 = questStep; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference18 = ref span16[num]; + ref QuestSequence reference18 = ref span6[4]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -97470,14 +80781,12 @@ public static class AssemblyQuestLoader num2 = 2; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.72484f, -3.1182368f, 60.3442f), 138) + Span span12 = CollectionsMarshal.AsSpan(list24); + span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.72484f, -3.1182368f, 60.3442f), 138) { Fly = true }; - index2++; - span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); + span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1006614u, new Vector3(65.87317f, -3.1181886f, 61.41748f), 138); obj17.Steps = list24; reference18 = obj17; questRoot3.QuestSequence = list16; @@ -97487,32 +80796,26 @@ public static class AssemblyQuestLoader num = 2; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "JerryWester"; - index++; - span25[index] = "Wigglez"; + Span span13 = CollectionsMarshal.AsSpan(list25); + span13[0] = "JerryWester"; + span13[1] = "Wigglez"; questRoot4.Author = list25; - index = 6; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference19 = ref span26[num]; + num = 6; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span14 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference19 = ref span14[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj18.Steps = list27; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span26[num]; + ref QuestSequence reference20 = ref span14[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -97520,54 +80823,46 @@ public static class AssemblyQuestLoader num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.9162f, -16.555008f, -246.89261f), 138) + Span span15 = CollectionsMarshal.AsSpan(list28); + span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-191.9162f, -16.555008f, -246.89261f), 138) { Fly = true }; - index2++; - ref QuestStep reference21 = ref span28[index2]; + ref QuestStep reference21 = ref span15[1]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-203.74379f, -42.300938f, -250.68587f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + Span span16 = CollectionsMarshal.AsSpan(list29); + span16[0] = 2890u; + span16[1] = 2891u; obj20.KillEnemyDataIds = list29; reference21 = obj20; obj19.Steps = list28; reference20 = obj19; - num++; - ref QuestSequence reference22 = ref span26[num]; + ref QuestSequence reference22 = ref span14[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span30[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-194.43138f, -30.8899f, -322.80032f), 138) + span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-194.43138f, -30.8899f, -322.80032f), 138) { Fly = true }; - num2++; - ref QuestStep reference23 = ref span30[num2]; + ref QuestStep reference23 = ref span17[2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.43138f, -40.785873f, -322.80032f), 138) { StopDistance = 0.25f, @@ -97577,21 +80872,16 @@ public static class AssemblyQuestLoader num3 = 4; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = 2892u; - index3++; - span31[index3] = 2893u; - index3++; - span31[index3] = 2894u; - index3++; - span31[index3] = 2895u; + Span span18 = CollectionsMarshal.AsSpan(list31); + span18[0] = 2892u; + span18[1] = 2893u; + span18[2] = 2894u; + span18[3] = 2895u; obj22.KillEnemyDataIds = list31; reference23 = obj22; obj21.Steps = list30; reference22 = obj21; - num++; - ref QuestSequence reference24 = ref span26[num]; + ref QuestSequence reference24 = ref span14[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -97599,63 +80889,53 @@ public static class AssemblyQuestLoader num2 = 2; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-310.84634f, -17.898666f, -338.26837f), 138) + Span span19 = CollectionsMarshal.AsSpan(list32); + span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-310.84634f, -17.898666f, -338.26837f), 138) { Fly = true }; - index2++; - ref QuestStep reference25 = ref span32[index2]; + ref QuestStep reference25 = ref span19[1]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-298.15454f, -41.646805f, -328.1372f), 138) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj24.KillEnemyDataIds = list33; reference25 = obj24; obj23.Steps = list32; reference24 = obj23; - num++; - ref QuestSequence reference26 = ref span26[num]; + ref QuestSequence reference26 = ref span14[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span34[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.59018f, -8.778947f, -299.32205f), 138) + span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-408.59018f, -8.778947f, -299.32205f), 138) { Fly = true }; - num2++; - span34[num2] = new QuestStep(EInteractionType.Interact, 1008706u, new Vector3(-404.8371f, -32.810974f, -297.23047f), 138) + span21[2] = new QuestStep(EInteractionType.Interact, 1008706u, new Vector3(-404.8371f, -32.810974f, -297.23047f), 138) { Fly = true }; obj25.Steps = list34; reference26 = obj25; - num++; - ref QuestSequence reference27 = ref span26[num]; + ref QuestSequence reference27 = ref span14[5]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -97663,9 +80943,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008803u, new Vector3(-418.90594f, -35.708496f, -400.50354f), 138) { StopDistance = 5f }; @@ -97678,33 +80956,27 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; questRoot5.Author = list36; - index = 5; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference28 = ref span37[num]; + num = 5; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span22 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference28 = ref span22[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj27.Steps = list38; reference28 = obj27; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span22[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -97712,9 +80984,8 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - ref QuestStep reference30 = ref span39[index2]; + Span span23 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference30 = ref span23[0]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -97722,35 +80993,28 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - index3 = 0; - span40[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list40)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE216_01360_Q1_000_1") }; obj29.DialogueChoices = list40; reference30 = obj29; - index2++; - span39[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + span23[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj28.Steps = list39; reference29 = obj28; - num++; - ref QuestSequence reference31 = ref span37[num]; + ref QuestSequence reference31 = ref span22[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj30.Steps = list41; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span37[num]; + ref QuestSequence reference32 = ref span22[3]; QuestSequence obj31 = new QuestSequence { Sequence = 3 @@ -97758,14 +81022,12 @@ public static class AssemblyQuestLoader num2 = 3; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) + Span span24 = CollectionsMarshal.AsSpan(list42); + span24[0] = new QuestStep(EInteractionType.Interact, 2001835u, new Vector3(0.0235393f, 2.330988f, 9.8216f), 198) { TargetTerritoryId = (ushort)129 }; - index2++; - span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(709.16064f, 66.00693f, -285.91016f), 135) + span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(709.16064f, 66.00693f, -285.91016f), 135) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -97774,22 +81036,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaTempestGate } }; - index2++; - span42[index2] = new QuestStep(EInteractionType.Interact, 1008692u, new Vector3(712.8556f, 66.027f, -279.07227f), 135); + span24[2] = new QuestStep(EInteractionType.Interact, 1008692u, new Vector3(712.8556f, 66.027f, -279.07227f), 135); obj31.Steps = list42; reference32 = obj31; - num++; - ref QuestSequence reference33 = ref span37[num]; + ref QuestSequence reference33 = ref span22[4]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, SkipConditions = new SkipConditions @@ -97800,8 +81059,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) + span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(152.25397f, 14.095841f, 668.4288f), 135) { Fly = true, SkipConditions = new SkipConditions @@ -97812,8 +81070,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span43[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + span25[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SkipConditions = new SkipConditions @@ -97824,8 +81081,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.7082f, 8.973654f, 584.51135f), 135) + span25[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.7082f, 8.973654f, 584.51135f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -97837,8 +81093,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135); + span25[4] = new QuestStep(EInteractionType.CompleteQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135); obj32.Steps = list43; reference33 = obj32; questRoot5.QuestSequence = list37; @@ -97848,16 +81103,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; questRoot6.Author = list44; - index = 3; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference34 = ref span45[num]; + num = 3; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span26 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference34 = ref span26[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -97865,9 +81117,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008693u, new Vector3(155.47412f, 8.973654f, 584.1306f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SkipConditions = new SkipConditions @@ -97880,18 +81130,15 @@ public static class AssemblyQuestLoader }; obj33.Steps = list46; reference34 = obj33; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span26[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Duty, null, null, 135) { DutyOptions = new DutyOptions { @@ -97900,8 +81147,7 @@ public static class AssemblyQuestLoader }; obj34.Steps = list47; reference35 = obj34; - num++; - ref QuestSequence reference36 = ref span45[num]; + ref QuestSequence reference36 = ref span26[2]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -97909,27 +81155,23 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - ref QuestStep reference37 = ref span48[index2]; + Span span27 = CollectionsMarshal.AsSpan(list48); + ref QuestStep reference37 = ref span27[0]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - index3 = 1; - List list49 = new List(index3); - CollectionsMarshal.SetCount(list49, index3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = new DialogueChoice + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_GAIUSE217_01361_Q1_000_1") }; obj36.DialogueChoices = list49; reference37 = obj36; - index2++; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj35.Steps = list48; reference36 = obj35; questRoot6.QuestSequence = list45; @@ -97939,26 +81181,21 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list50)[0] = "JerryWester"; questRoot7.Author = list50; - index = 2; - List list51 = new List(index); - CollectionsMarshal.SetCount(list51, index); - Span span51 = CollectionsMarshal.AsSpan(list51); - num = 0; - ref QuestSequence reference38 = ref span51[num]; + num = 2; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span28 = CollectionsMarshal.AsSpan(list51); + ref QuestSequence reference38 = ref span28[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -97971,8 +81208,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference38 = obj37; - num++; - ref QuestSequence reference39 = ref span51[num]; + ref QuestSequence reference39 = ref span28[1]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -97980,9 +81216,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008694u, new Vector3(-117.265625f, 9.999865f, 154.7417f), 129); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008694u, new Vector3(-117.265625f, 9.999865f, 154.7417f), 129); obj38.Steps = list53; reference39 = obj38; questRoot7.QuestSequence = list51; @@ -97992,26 +81226,21 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list54)[0] = "JerryWester"; questRoot8.Author = list54; - index = 2; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference40 = ref span55[num]; + num = 2; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span29 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference40 = ref span29[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -98025,8 +81254,7 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference40 = obj39; - num++; - ref QuestSequence reference41 = ref span55[num]; + ref QuestSequence reference41 = ref span29[1]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -98034,20 +81262,17 @@ public static class AssemblyQuestLoader num2 = 3; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span30 = CollectionsMarshal.AsSpan(list57); + span30[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span57[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span30[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + span30[2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj40.Steps = list57; reference41 = obj40; questRoot8.QuestSequence = list55; @@ -98057,27 +81282,22 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "Censored"; + CollectionsMarshal.AsSpan(list58)[0] = "Censored"; questRoot9.Author = list58; questRoot9.Comment = "FATE"; - index = 2; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference42 = ref span59[num]; + num = 2; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span31 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference42 = ref span31[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98096,8 +81316,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference42 = obj41; - num++; - ref QuestSequence reference43 = ref span59[num]; + ref QuestSequence reference43 = ref span31[1]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -98105,15 +81324,13 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(147.42166f, 24.300901f, -751.06976f), 180) + Span span32 = CollectionsMarshal.AsSpan(list61); + span32[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(147.42166f, 24.300901f, -751.06976f), 180) { Fly = true, Comment = "Do the FATE" }; - index2++; - span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98139,26 +81356,21 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "Censored"; + CollectionsMarshal.AsSpan(list62)[0] = "Censored"; questRoot10.Author = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference44 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span33 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference44 = ref span33[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98177,8 +81389,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list64; reference44 = obj43; - num++; - ref QuestSequence reference45 = ref span63[num]; + ref QuestSequence reference45 = ref span33[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -98186,9 +81397,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference46 = ref span65[index2]; + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(161.17926f, 21.418877f, -703.57477f), 180) { Fly = true, @@ -98197,29 +81406,23 @@ public static class AssemblyQuestLoader num3 = 3; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - index3 = 0; - span66[index3] = 756u; - index3++; - span66[index3] = 757u; - index3++; - span66[index3] = 758u; + Span span34 = CollectionsMarshal.AsSpan(list66); + span34[0] = 756u; + span34[1] = 757u; + span34[2] = 758u; obj45.KillEnemyDataIds = list66; reference46 = obj45; obj44.Steps = list65; reference45 = obj44; - num++; - ref QuestSequence reference47 = ref span63[num]; + ref QuestSequence reference47 = ref span33[2]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98245,16 +81448,13 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot11.Author = list68; - index = 3; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference48 = ref span69[num]; + num = 3; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span35 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference48 = ref span35[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -98262,114 +81462,87 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); obj47.Steps = list70; reference48 = obj47; - num++; - ref QuestSequence reference49 = ref span69[num]; + ref QuestSequence reference49 = ref span35[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.632976f, 21.54334f, -769.12134f), 180) + span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.632976f, 21.54334f, -769.12134f), 180) { Fly = true }; - num2++; - ref QuestStep reference50 = ref span71[num2]; + ref QuestStep reference50 = ref span36[2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, 2003699u, new Vector3(7.94989f, 21.713562f, -769.06995f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list72 = new List(index3); - CollectionsMarshal.SetCount(list72, index3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = 2841u; + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = 2841u; obj49.KillEnemyDataIds = list72; num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - 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); + 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); obj49.CompletionQuestVariablesFlags = list73; reference50 = obj49; - num2++; - ref QuestStep reference51 = ref span71[num2]; + ref QuestStep reference51 = ref span36[3]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, 2003701u, new Vector3(5.142273f, 23.75824f, -803.9216f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list74 = new List(index3); - CollectionsMarshal.SetCount(list74, index3); - Span span74 = CollectionsMarshal.AsSpan(list74); - num3 = 0; - span74[num3] = 2841u; + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + CollectionsMarshal.AsSpan(list74)[0] = 2841u; obj50.KillEnemyDataIds = list74; num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - 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); + 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); obj50.CompletionQuestVariablesFlags = list75; reference51 = obj50; - num2++; - ref QuestStep reference52 = ref span71[num2]; + ref QuestStep reference52 = ref span36[4]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2003702u, new Vector3(0.47296143f, 24.551636f, -795.74274f), 180) { ItemId = 2001230u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list76 = new List(index3); - CollectionsMarshal.SetCount(list76, index3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span76[num3] = 2841u; + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = 2841u; obj51.KillEnemyDataIds = list76; reference52 = obj51; obj48.Steps = list71; reference49 = obj48; - num++; - ref QuestSequence reference53 = ref span69[num]; + ref QuestSequence reference53 = ref span35[2]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -98377,9 +81550,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -98393,26 +81564,21 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "Censored"; + CollectionsMarshal.AsSpan(list78)[0] = "Censored"; questRoot12.Author = list78; - index = 4; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference54 = ref span79[num]; + num = 4; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span39 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference54 = ref span39[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98431,8 +81597,7 @@ public static class AssemblyQuestLoader }; obj53.Steps = list80; reference54 = obj53; - num++; - ref QuestSequence reference55 = ref span79[num]; + ref QuestSequence reference55 = ref span39[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -98440,9 +81605,8 @@ public static class AssemblyQuestLoader num2 = 5; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - ref QuestStep reference56 = ref span81[index2]; + Span span40 = CollectionsMarshal.AsSpan(list81); + ref QuestStep reference56 = ref span40[0]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2003753u, new Vector3(18.875366f, 25.558838f, -594.11005f), 180) { Fly = true, @@ -98451,108 +81615,76 @@ public static class AssemblyQuestLoader num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - 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); + 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); obj55.CompletionQuestVariablesFlags = list82; reference56 = obj55; - index2++; - ref QuestStep reference57 = ref span81[index2]; + ref QuestStep reference57 = ref span40[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2003755u, new Vector3(15.854065f, 26.810059f, -648.188f), 180); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list83; reference57 = questStep2; - index2++; - ref QuestStep reference58 = ref span81[index2]; + ref QuestStep reference58 = ref span40[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list84; reference58 = questStep3; - index2++; - ref QuestStep reference59 = ref span81[index2]; + ref QuestStep reference59 = ref span40[3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2003754u, new Vector3(86.56433f, 24.215942f, -822.1714f), 180); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list85; reference59 = questStep4; - index2++; - span81[index2] = new QuestStep(EInteractionType.Interact, 2003756u, new Vector3(167.22351f, 24.76538f, -814.48083f), 180); + span40[4] = new QuestStep(EInteractionType.Interact, 2003756u, new Vector3(167.22351f, 24.76538f, -814.48083f), 180); obj54.Steps = list81; reference55 = obj54; - num++; - ref QuestSequence reference60 = ref span79[num]; + ref QuestSequence reference60 = ref span39[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj56.Steps = list86; reference60 = obj56; - num++; - ref QuestSequence reference61 = ref span79[num]; + ref QuestSequence reference61 = ref span39[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -98560,9 +81692,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true }; @@ -98580,26 +81710,21 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "Censored"; + CollectionsMarshal.AsSpan(list88)[0] = "Censored"; questRoot13.Author = list88; - index = 7; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference62 = ref span89[num]; + num = 7; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span45 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference62 = ref span45[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98618,8 +81743,7 @@ public static class AssemblyQuestLoader }; obj58.Steps = list90; reference62 = obj58; - num++; - ref QuestSequence reference63 = ref span89[num]; + ref QuestSequence reference63 = ref span45[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -98627,27 +81751,22 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1005960u, new Vector3(97.3678f, 56.809326f, -502.06763f), 180) { Fly = true, Land = true }; obj59.Steps = list91; reference63 = obj59; - num++; - ref QuestSequence reference64 = ref span89[num]; + ref QuestSequence reference64 = ref span45[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list92 = new List(index2); - CollectionsMarshal.SetCount(list92, index2); - Span span92 = CollectionsMarshal.AsSpan(list92); - num2 = 0; - ref QuestStep reference65 = ref span92[num2]; + num2 = 1; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list92)[0]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, 2003920u, new Vector3(75.24219f, 28.000244f, -753.5668f), 180) { Fly = true, @@ -98657,15 +81776,12 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = 2846u; + CollectionsMarshal.AsSpan(list93)[0] = 2846u; obj61.KillEnemyDataIds = list93; reference65 = obj61; obj60.Steps = list92; reference64 = obj60; - num++; - ref QuestSequence reference66 = ref span89[num]; + ref QuestSequence reference66 = ref span45[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -98673,39 +81789,31 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 2003930u, new Vector3(75.24219f, 27.969727f, -753.5363f), 180); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 2003930u, new Vector3(75.24219f, 27.969727f, -753.5363f), 180); obj62.Steps = list94; reference66 = obj62; - num++; - ref QuestSequence reference67 = ref span89[num]; + ref QuestSequence reference67 = ref span45[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list95 = new List(index2); - CollectionsMarshal.SetCount(list95, index2); - Span span95 = CollectionsMarshal.AsSpan(list95); - num2 = 0; - ref QuestStep reference68 = ref span95[num2]; + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2003937u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list96 = new List(index3); - CollectionsMarshal.SetCount(list96, index3); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = 2846u; + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = 2846u; obj64.KillEnemyDataIds = list96; reference68 = obj64; obj63.Steps = list95; reference67 = obj63; - num++; - ref QuestSequence reference69 = ref span89[num]; + ref QuestSequence reference69 = ref span45[5]; QuestSequence obj65 = new QuestSequence { Sequence = 5 @@ -98713,26 +81821,21 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.UseItem, 2003947u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.UseItem, 2003947u, new Vector3(314.62573f, 22.201843f, -711.9402f), 180) { ItemId = 2001282u }; obj65.Steps = list97; reference69 = obj65; - num++; - ref QuestSequence reference70 = ref span89[num]; + ref QuestSequence reference70 = ref span45[6]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -98758,16 +81861,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot14.Author = list99; - index = 5; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference71 = ref span100[num]; + num = 5; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span46 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference71 = ref span46[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -98775,30 +81875,24 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180); obj67.Steps = list101; reference71 = obj67; - num++; - ref QuestSequence reference72 = ref span100[num]; + ref QuestSequence reference72 = ref span46[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj68.Steps = list102; reference72 = obj68; - num++; - ref QuestSequence reference73 = ref span100[num]; + ref QuestSequence reference73 = ref span46[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -98806,9 +81900,8 @@ public static class AssemblyQuestLoader num2 = 5; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - ref QuestStep reference74 = ref span103[index2]; + Span span47 = CollectionsMarshal.AsSpan(list103); + ref QuestStep reference74 = ref span47[0]; QuestStep obj70 = new QuestStep(EInteractionType.UseItem, 2003911u, new Vector3(296.5896f, 21.499878f, -722.13324f), 180) { Fly = true, @@ -98817,41 +81910,31 @@ public static class AssemblyQuestLoader num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - 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); + 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); obj70.CompletionQuestVariablesFlags = list104; reference74 = obj70; - index2++; - ref QuestStep reference75 = ref span103[index2]; + ref QuestStep reference75 = ref span47[1]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(296.5896f, 21.499878f, -722.13324f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index3 = 1; - List list105 = new List(index3); - CollectionsMarshal.SetCount(list105, index3); - Span span105 = CollectionsMarshal.AsSpan(list105); - num3 = 0; - span105[num3] = new ComplexCombatData + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + CollectionsMarshal.AsSpan(list105)[0] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj71.ComplexCombatData = list105; reference75 = obj71; - index2++; - ref QuestStep reference76 = ref span103[index2]; + ref QuestStep reference76 = ref span47[2]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2003910u, new Vector3(293.41565f, 21.499878f, -721.91956f), 180) { ItemId = 2001278u @@ -98859,41 +81942,31 @@ public static class AssemblyQuestLoader num3 = 6; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - 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); + 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); obj72.CompletionQuestVariablesFlags = list106; reference76 = obj72; - index2++; - ref QuestStep reference77 = ref span103[index2]; + ref QuestStep reference77 = ref span47[3]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, null, new Vector3(293.41565f, 21.499878f, -721.91956f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index3 = 1; - List list107 = new List(index3); - CollectionsMarshal.SetCount(list107, index3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new ComplexCombatData + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj73.ComplexCombatData = list107; reference77 = obj73; - index2++; - ref QuestStep reference78 = ref span103[index2]; + ref QuestStep reference78 = ref span47[4]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2003909u, new Vector3(290.0282f, 21.530457f, -721.3397f), 180) { ItemId = 2001278u @@ -98901,60 +81974,48 @@ public static class AssemblyQuestLoader num3 = 6; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - 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); + 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); obj74.CompletionQuestVariablesFlags = list108; reference78 = obj74; obj69.Steps = list103; reference73 = obj69; - num++; - ref QuestSequence reference79 = ref span100[num]; + ref QuestSequence reference79 = ref span46[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list109 = new List(index2); - CollectionsMarshal.SetCount(list109, index2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - ref QuestStep reference80 = ref span109[num2]; + num2 = 2; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span51 = CollectionsMarshal.AsSpan(list109); + ref QuestStep reference80 = ref span51[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(290.0282f, 21.530457f, -721.3397f), 180) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index3 = 1; - List list110 = new List(index3); - CollectionsMarshal.SetCount(list110, index3); - Span span110 = CollectionsMarshal.AsSpan(list110); - num3 = 0; - span110[num3] = new ComplexCombatData + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = new ComplexCombatData { DataId = 755u, NameId = 2711u }; obj76.ComplexCombatData = list110; reference80 = obj76; - num2++; - span109[num2] = new QuestStep(EInteractionType.UseItem, 2003912u, new Vector3(295.76562f, 21.469421f, -711.9402f), 180) + span51[1] = new QuestStep(EInteractionType.UseItem, 2003912u, new Vector3(295.76562f, 21.469421f, -711.9402f), 180) { ItemId = 2001279u }; obj75.Steps = list109; reference79 = obj75; - num++; - ref QuestSequence reference81 = ref span100[num]; + ref QuestSequence reference81 = ref span46[4]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -98962,9 +82023,7 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { DelaySecondsAtStart = 3f, Fly = true, @@ -98989,26 +82048,21 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "Censored"; + CollectionsMarshal.AsSpan(list112)[0] = "Censored"; questRoot15.Author = list112; - index = 10; - List list113 = new List(index); - CollectionsMarshal.SetCount(list113, index); - Span span113 = CollectionsMarshal.AsSpan(list113); - num = 0; - ref QuestSequence reference82 = ref span113[num]; + num = 10; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + Span span52 = CollectionsMarshal.AsSpan(list113); + ref QuestSequence reference82 = ref span52[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, @@ -99027,8 +82081,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list114; reference82 = obj78; - num++; - ref QuestSequence reference83 = ref span113[num]; + ref QuestSequence reference83 = ref span52[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -99036,26 +82089,21 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1005932u, new Vector3(-1.236023f, 33.38838f, -244.19019f), 180) { Fly = true }; obj79.Steps = list115; reference83 = obj79; - num++; - ref QuestSequence reference84 = ref span113[num]; + ref QuestSequence reference84 = ref span52[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list116 = new List(index2); - CollectionsMarshal.SetCount(list116, index2); - Span span116 = CollectionsMarshal.AsSpan(list116); - num2 = 0; - ref QuestStep reference85 = ref span116[num2]; + num2 = 1; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list116)[0]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1008890u, new Vector3(19.516235f, 24.284801f, -559.7772f), 180) { Fly = true @@ -99063,9 +82111,7 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span117 = CollectionsMarshal.AsSpan(list117); - index3 = 0; - span117[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB310_01373_Q1_000_000"), @@ -99075,8 +82121,7 @@ public static class AssemblyQuestLoader reference85 = obj81; obj80.Steps = list116; reference84 = obj80; - num++; - ref QuestSequence reference86 = ref span113[num]; + ref QuestSequence reference86 = ref span52[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -99084,38 +82129,31 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 2003971u, new Vector3(99.168335f, 21.591492f, -639.7345f), 180); + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 2003971u, new Vector3(99.168335f, 21.591492f, -639.7345f), 180); obj82.Steps = list118; reference86 = obj82; - num++; - ref QuestSequence reference87 = ref span113[num]; + ref QuestSequence reference87 = ref span52[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list119 = new List(index2); - CollectionsMarshal.SetCount(list119, index2); - Span span119 = CollectionsMarshal.AsSpan(list119); - num2 = 0; - ref QuestStep reference88 = ref span119[num2]; + num2 = 2; + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + Span span53 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference88 = ref span53[0]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(97.544685f, 21.545254f, -637.22314f), 180) { DelaySecondsAtStart = 2f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index3 = 1; - List list120 = new List(index3); - CollectionsMarshal.SetCount(list120, index3); - Span span120 = CollectionsMarshal.AsSpan(list120); - num3 = 0; - span120[num3] = 2870u; + num3 = 1; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + CollectionsMarshal.AsSpan(list120)[0] = 2870u; obj84.KillEnemyDataIds = list120; reference88 = obj84; - num2++; - ref QuestStep reference89 = ref span119[num2]; + ref QuestStep reference89 = ref span53[1]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2003974u, new Vector3(97.00159f, 21.591492f, -637.4762f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -99123,15 +82161,12 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span121 = CollectionsMarshal.AsSpan(list121); - index3 = 0; - span121[index3] = 2872u; + CollectionsMarshal.AsSpan(list121)[0] = 2872u; obj85.KillEnemyDataIds = list121; reference89 = obj85; obj83.Steps = list119; reference87 = obj83; - num++; - ref QuestSequence reference90 = ref span113[num]; + ref QuestSequence reference90 = ref span52[5]; QuestSequence obj86 = new QuestSequence { Sequence = 5 @@ -99139,16 +82174,12 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - ref QuestStep reference91 = ref span122[index2]; + ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1008890u, new Vector3(19.516235f, 24.284801f, -559.7772f), 180); - index3 = 1; - List list123 = new List(index3); - CollectionsMarshal.SetCount(list123, index3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = new DialogueChoice + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKOB310_01373_Q1_000_000"), @@ -99158,22 +82189,18 @@ public static class AssemblyQuestLoader reference91 = questStep5; obj86.Steps = list122; reference90 = obj86; - num++; - ref QuestSequence reference92 = ref span113[num]; + ref QuestSequence reference92 = ref span52[6]; QuestSequence obj87 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj87.Steps = list124; reference92 = obj87; - num++; - ref QuestSequence reference93 = ref span113[num]; + ref QuestSequence reference93 = ref span52[7]; QuestSequence obj88 = new QuestSequence { Sequence = 7 @@ -99181,9 +82208,8 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - ref QuestStep reference94 = ref span125[index2]; + Span span54 = CollectionsMarshal.AsSpan(list125); + ref QuestStep reference94 = ref span54[0]; QuestStep obj89 = new QuestStep(EInteractionType.Combat, null, new Vector3(147.60046f, 23.544617f, -705.2567f), 180) { DelaySecondsAtStart = 2f, @@ -99192,47 +82218,38 @@ public static class AssemblyQuestLoader num3 = 1; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span126 = CollectionsMarshal.AsSpan(list126); - index3 = 0; - span126[index3] = 2870u; + CollectionsMarshal.AsSpan(list126)[0] = 2870u; obj89.KillEnemyDataIds = list126; reference94 = obj89; - index2++; - ref QuestStep reference95 = ref span125[index2]; + ref QuestStep reference95 = ref span54[1]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2003983u, new Vector3(147.60046f, 23.544617f, -705.2567f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list127 = new List(index3); - CollectionsMarshal.SetCount(list127, index3); - Span span127 = CollectionsMarshal.AsSpan(list127); - num3 = 0; - span127[num3] = 2872u; + num3 = 1; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + CollectionsMarshal.AsSpan(list127)[0] = 2872u; obj90.KillEnemyDataIds = list127; reference95 = obj90; obj88.Steps = list125; reference93 = obj88; - num++; - ref QuestSequence reference96 = ref span113[num]; + ref QuestSequence reference96 = ref span52[8]; QuestSequence obj91 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj91.Steps = list128; reference96 = obj91; - num++; - ref QuestSequence reference97 = ref span113[num]; + ref QuestSequence reference97 = ref span52[9]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -99240,9 +82257,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005930u, new Vector3(12.558105f, 16.159302f, -176.5622f), 180) { Fly = true }; @@ -99255,30 +82270,24 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot16.Author = list130; - index = 7; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference98 = ref span131[num]; + num = 7; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span55 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference98 = ref span55[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj93.Steps = list132; reference98 = obj93; - num++; - ref QuestSequence reference99 = ref span131[num]; + ref QuestSequence reference99 = ref span55[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -99286,27 +82295,23 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj94.Steps = list133; reference99 = obj94; - num++; - ref QuestSequence reference100 = ref span131[num]; + ref QuestSequence reference100 = ref span55[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list134 = new List(index2); - CollectionsMarshal.SetCount(list134, index2); - Span span134 = CollectionsMarshal.AsSpan(list134); - num2 = 0; - ref QuestStep reference101 = ref span134[num2]; + num2 = 4; + List list134 = new List(num2); + CollectionsMarshal.SetCount(list134, num2); + Span span56 = CollectionsMarshal.AsSpan(list134); + ref QuestStep reference101 = ref span56[0]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1008832u, new Vector3(510.97888f, 8.979649f, 259.38806f), 137) { StopDistance = 7f @@ -99314,47 +82319,33 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - 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); + 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); obj96.CompletionQuestVariablesFlags = list135; reference101 = obj96; - num2++; - ref QuestStep reference102 = ref span134[num2]; + ref QuestStep reference102 = ref span56[1]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1008831u, new Vector3(514.42737f, 8.931801f, 254.32202f), 137) { StopDistance = 7f }; - 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); + 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); obj97.CompletionQuestVariablesFlags = list136; reference102 = obj97; - num2++; - ref QuestStep reference103 = ref span134[num2]; + ref QuestStep reference103 = ref span56[2]; QuestStep obj98 = new QuestStep(EInteractionType.UseItem, 1008830u, new Vector3(519.24915f, 8.867149f, 245.8075f), 137) { ItemId = 2001288u @@ -99362,49 +82353,35 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - 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); + 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); obj98.CompletionQuestVariablesFlags = list137; reference103 = obj98; - num2++; - ref QuestStep reference104 = ref span134[num2]; + ref QuestStep reference104 = ref span56[3]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 1008829u, new Vector3(497.15417f, 12.65078f, 245.07507f), 137) { ItemId = 2001288u }; - 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); + 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); obj99.CompletionQuestVariablesFlags = list138; reference104 = obj99; obj95.Steps = list134; reference100 = obj95; - num++; - ref QuestSequence reference105 = ref span131[num]; + ref QuestSequence reference105 = ref span55[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -99412,27 +82389,21 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1008826u, new Vector3(508.23218f, 9.926135f, 251.45337f), 137); obj100.Steps = list139; reference105 = obj100; - num++; - ref QuestSequence reference106 = ref span131[num]; + ref QuestSequence reference106 = ref span55[4]; QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj101.Steps = list140; reference106 = obj101; - num++; - ref QuestSequence reference107 = ref span131[num]; + ref QuestSequence reference107 = ref span55[5]; QuestSequence obj102 = new QuestSequence { Sequence = 5 @@ -99440,32 +82411,27 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.7492f, -41.732693f, 21.867413f), 138) + Span span61 = CollectionsMarshal.AsSpan(list141); + span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.7492f, -41.732693f, 21.867413f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Interact, 1008916u, new Vector3(-207.44641f, -42.06953f, 22.140747f), 138) + span61[1] = new QuestStep(EInteractionType.Interact, 1008916u, new Vector3(-207.44641f, -42.06953f, 22.140747f), 138) { StopDistance = 5f }; obj102.Steps = list141; reference107 = obj102; - num++; - ref QuestSequence reference108 = ref span131[num]; + ref QuestSequence reference108 = ref span55[6]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1375) @@ -99479,16 +82445,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot17.Author = list143; - index = 5; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference109 = ref span144[num]; + num = 5; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span62 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference109 = ref span62[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -99496,30 +82459,24 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj104.Steps = list145; reference109 = obj104; - num++; - ref QuestSequence reference110 = ref span144[num]; + ref QuestSequence reference110 = ref span62[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj105.Steps = list146; reference110 = obj105; - num++; - ref QuestSequence reference111 = ref span144[num]; + ref QuestSequence reference111 = ref span62[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -99527,33 +82484,29 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) + Span span63 = CollectionsMarshal.AsSpan(list147); + span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { StopDistance = 0.5f, Fly = true }; - index2++; - span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) + span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { StopDistance = 0.5f, Mount = false }; obj106.Steps = list147; reference111 = obj106; - num++; - ref QuestSequence reference112 = ref span144[num]; + ref QuestSequence reference112 = ref span62[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list148 = new List(index2); - CollectionsMarshal.SetCount(list148, index2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num2 = 0; - ref QuestStep reference113 = ref span148[num2]; + num2 = 2; + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + Span span64 = CollectionsMarshal.AsSpan(list148); + ref QuestStep reference113 = ref span64[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-41.15807f, -23.382679f, -89.52834f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -99561,33 +82514,28 @@ public static class AssemblyQuestLoader num3 = 3; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - Span span149 = CollectionsMarshal.AsSpan(list149); - index3 = 0; - span149[index3] = new ComplexCombatData + Span span65 = CollectionsMarshal.AsSpan(list149); + span65[0] = new ComplexCombatData { DataId = 2867u, IgnoreQuestMarker = true }; - index3++; - span149[index3] = new ComplexCombatData + span65[1] = new ComplexCombatData { DataId = 2868u, IgnoreQuestMarker = true }; - index3++; - span149[index3] = new ComplexCombatData + span65[2] = new ComplexCombatData { DataId = 2869u, IgnoreQuestMarker = true }; obj108.ComplexCombatData = list149; reference113 = obj108; - num2++; - span148[num2] = new QuestStep(EInteractionType.Interact, 1008897u, new Vector3(-38.31543f, -23.036211f, -88.85327f), 138); + span64[1] = new QuestStep(EInteractionType.Interact, 1008897u, new Vector3(-38.31543f, -23.036211f, -88.85327f), 138); obj107.Steps = list148; reference112 = obj107; - num++; - ref QuestSequence reference114 = ref span144[num]; + ref QuestSequence reference114 = ref span62[4]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -99595,19 +82543,15 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - ref QuestStep reference115 = ref span150[index2]; + ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list150)[0]; QuestStep obj110 = new QuestStep(EInteractionType.CompleteQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; - index3 = 1; - List list151 = new List(index3); - CollectionsMarshal.SetCount(list151, index3); - Span span151 = CollectionsMarshal.AsSpan(list151); - num3 = 0; - span151[num3] = new DialogueChoice + num3 = 1; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANSAH002_01375_Q1_000_000"), @@ -99624,26 +82568,21 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "Censored"; + CollectionsMarshal.AsSpan(list152)[0] = "Censored"; questRoot18.Author = list152; - index = 7; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference116 = ref span153[num]; + num = 7; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span66 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference116 = ref span66[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -99662,8 +82601,7 @@ public static class AssemblyQuestLoader }; obj111.Steps = list154; reference116 = obj111; - num++; - ref QuestSequence reference117 = ref span153[num]; + ref QuestSequence reference117 = ref span66[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -99671,16 +82609,12 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - ref QuestStep reference118 = ref span155[index2]; + ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list155)[0]; 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); - Span span156 = CollectionsMarshal.AsSpan(list156); - index3 = 0; - span156[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list156)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH003_01376_Q1_000_000") @@ -99689,22 +82623,18 @@ public static class AssemblyQuestLoader reference118 = questStep6; obj112.Steps = list155; reference117 = obj112; - num++; - ref QuestSequence reference119 = ref span153[num]; + ref QuestSequence reference119 = ref span66[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj113.Steps = list157; reference119 = obj113; - num++; - ref QuestSequence reference120 = ref span153[num]; + ref QuestSequence reference120 = ref span66[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -99712,41 +82642,33 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - ref QuestStep reference121 = ref span158[index2]; + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, null, new Vector3(-864.2374f, -25.652748f, 928.6218f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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; + num3 = 2; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + Span span67 = CollectionsMarshal.AsSpan(list159); + span67[0] = 767u; + span67[1] = 2832u; obj115.KillEnemyDataIds = list159; reference121 = obj115; obj114.Steps = list158; reference120 = obj114; - num++; - ref QuestSequence reference122 = ref span153[num]; + ref QuestSequence reference122 = ref span66[4]; QuestSequence obj116 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj116.Steps = list160; reference122 = obj116; - num++; - ref QuestSequence reference123 = ref span153[num]; + ref QuestSequence reference123 = ref span66[5]; QuestSequence obj117 = new QuestSequence { Sequence = 5 @@ -99754,25 +82676,20 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1008918u, new Vector3(317.1892f, -31.89867f, 273.73157f), 138); + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1008918u, new Vector3(317.1892f, -31.89867f, 273.73157f), 138); obj117.Steps = list161; reference123 = obj117; - num++; - ref QuestSequence reference124 = ref span153[num]; + ref QuestSequence reference124 = ref span66[6]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -99785,16 +82702,13 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "Censored"; + CollectionsMarshal.AsSpan(list163)[0] = "Censored"; questRoot19.Author = list163; - index = 6; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference125 = ref span164[num]; + num = 6; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span69 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference125 = ref span69[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -99802,9 +82716,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -99823,22 +82735,18 @@ public static class AssemblyQuestLoader }; obj119.Steps = list165; reference125 = obj119; - num++; - ref QuestSequence reference126 = ref span164[num]; + ref QuestSequence reference126 = ref span69[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj120.Steps = list166; reference126 = obj120; - num++; - ref QuestSequence reference127 = ref span164[num]; + ref QuestSequence reference127 = ref span69[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -99846,28 +82754,21 @@ public static class AssemblyQuestLoader num2 = 5; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - ref QuestStep reference128 = ref span167[index2]; + Span span70 = CollectionsMarshal.AsSpan(list167); + ref QuestStep reference128 = ref span70[0]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list168; skipStepConditions.NearPosition = new NearPositionCondition { @@ -99877,41 +82778,31 @@ public static class AssemblyQuestLoader }; skipConditions.StepIf = skipStepConditions; questStep7.SkipConditions = skipConditions; - index3 = 1; - List list169 = new List(index3); - CollectionsMarshal.SetCount(list169, index3); - Span span169 = CollectionsMarshal.AsSpan(list169); - num3 = 0; - span169[num3] = new DialogueChoice + num3 = 1; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH004_01377_Q1_000_000") }; questStep7.DialogueChoices = list169; reference128 = questStep7; - index2++; - ref QuestStep reference129 = ref span167[index2]; + ref QuestStep reference129 = ref span70[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list170; reference129 = questStep8; - index2++; - span167[index2] = new QuestStep(EInteractionType.Interact, 1008802u, new Vector3(-814.84705f, -42.154568f, 694.3312f), 138) + span70[2] = new QuestStep(EInteractionType.Interact, 1008802u, new Vector3(-814.84705f, -42.154568f, 694.3312f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -99927,32 +82818,24 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference130 = ref span167[index2]; + ref QuestStep reference130 = ref span70[3]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1008902u, new Vector3(-150.2251f, -41.378696f, -295.58252f), 138) { Fly = true }; - 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); + 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); obj122.CompletionQuestVariablesFlags = list171; reference130 = obj122; - index2++; - ref QuestStep reference131 = ref span167[index2]; + ref QuestStep reference131 = ref span70[4]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1008903u, new Vector3(-357.5647f, -35.210495f, -425.2232f), 138) { Fly = true, @@ -99961,42 +82844,32 @@ public static class AssemblyQuestLoader num3 = 6; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - 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); + 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); obj123.CompletionQuestVariablesFlags = list172; reference131 = obj123; obj121.Steps = list167; reference127 = obj121; - num++; - ref QuestSequence reference132 = ref span164[num]; + ref QuestSequence reference132 = ref span69[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj124.Steps = list173; reference132 = obj124; - num++; - ref QuestSequence reference133 = ref span164[num]; + ref QuestSequence reference133 = ref span69[4]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -100004,27 +82877,22 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 2003989u, new Vector3(-364.9806f, -38.254395f, -242.81683f), 138) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2003989u, new Vector3(-364.9806f, -38.254395f, -242.81683f), 138) { Fly = true, Land = true }; obj125.Steps = list174; reference133 = obj125; - num++; - ref QuestSequence reference134 = ref span164[num]; + ref QuestSequence reference134 = ref span69[5]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -100037,16 +82905,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "Censored"; + CollectionsMarshal.AsSpan(list176)[0] = "Censored"; questRoot20.Author = list176; - index = 11; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference135 = ref span177[num]; + num = 11; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span75 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference135 = ref span75[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -100054,9 +82919,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100075,25 +82938,21 @@ public static class AssemblyQuestLoader }; obj127.Steps = list178; reference135 = obj127; - num++; - ref QuestSequence reference136 = ref span177[num]; + ref QuestSequence reference136 = ref span75[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj128.Steps = list179; reference136 = obj128; - num++; - ref QuestSequence reference137 = ref span177[num]; + ref QuestSequence reference137 = ref span75[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -100101,33 +82960,27 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj129.Steps = list180; reference137 = obj129; - num++; - ref QuestSequence reference138 = ref span177[num]; + ref QuestSequence reference138 = ref span75[3]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj130.Steps = list181; reference138 = obj130; - num++; - ref QuestSequence reference139 = ref span177[num]; + ref QuestSequence reference139 = ref span75[4]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -100135,33 +82988,26 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1005937u, new Vector3(-238.02551f, -40.828262f, 68.28406f), 138) { Fly = true }; obj131.Steps = list182; reference139 = obj131; - num++; - ref QuestSequence reference140 = ref span177[num]; + ref QuestSequence reference140 = ref span75[5]; QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list183 = new List(index2); - CollectionsMarshal.SetCount(list183, index2); - Span span183 = CollectionsMarshal.AsSpan(list183); - num2 = 0; - ref QuestStep reference141 = ref span183[num2]; + num2 = 1; + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list183)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138); - index3 = 1; - List list184 = new List(index3); - CollectionsMarshal.SetCount(list184, index3); - Span span184 = CollectionsMarshal.AsSpan(list184); - num3 = 0; - span184[num3] = new DialogueChoice + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH005_01378_Q1_000_000") @@ -100170,8 +83016,7 @@ public static class AssemblyQuestLoader reference141 = questStep9; obj132.Steps = list183; reference140 = obj132; - num++; - ref QuestSequence reference142 = ref span177[num]; + ref QuestSequence reference142 = ref span75[6]; QuestSequence obj133 = new QuestSequence { Sequence = 6 @@ -100179,9 +83024,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - ref QuestStep reference143 = ref span185[index2]; + ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list185)[0]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, null, new Vector3(-919.11914f, -31.760002f, 820.28955f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -100189,34 +83032,28 @@ public static class AssemblyQuestLoader num3 = 2; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = 765u; - index3++; - span186[index3] = 775u; + Span span76 = CollectionsMarshal.AsSpan(list186); + span76[0] = 765u; + span76[1] = 775u; obj134.KillEnemyDataIds = list186; reference143 = obj134; obj133.Steps = list185; reference142 = obj133; - num++; - ref QuestSequence reference144 = ref span177[num]; + ref QuestSequence reference144 = ref span75[7]; QuestSequence obj135 = new QuestSequence { Sequence = 7 }; - 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) + 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) { ItemId = 2001295u }; obj135.Steps = list187; reference144 = obj135; - num++; - ref QuestSequence reference145 = ref span177[num]; + ref QuestSequence reference145 = ref span75[8]; QuestSequence obj136 = new QuestSequence { Sequence = 8 @@ -100224,30 +83061,24 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 1008923u, new Vector3(321.85852f, -36.32501f, 350.1792f), 138); + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1008923u, new Vector3(321.85852f, -36.32501f, 350.1792f), 138); obj136.Steps = list188; reference145 = obj136; - num++; - ref QuestSequence reference146 = ref span177[num]; + ref QuestSequence reference146 = ref span75[9]; QuestSequence obj137 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true }; obj137.Steps = list189; reference146 = obj137; - num++; - ref QuestSequence reference147 = ref span177[num]; + ref QuestSequence reference147 = ref span75[10]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -100255,9 +83086,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -100275,27 +83104,22 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "Censored"; + CollectionsMarshal.AsSpan(list191)[0] = "Censored"; questRoot21.Author = list191; questRoot21.Comment = "FATE"; - index = 2; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference148 = ref span192[num]; + num = 2; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span77 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference148 = ref span77[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100314,8 +83138,7 @@ public static class AssemblyQuestLoader }; obj139.Steps = list193; reference148 = obj139; - num++; - ref QuestSequence reference149 = ref span192[num]; + ref QuestSequence reference149 = ref span77[1]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -100323,15 +83146,13 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-143.67775f, -32.78761f, -122.891304f), 138) + Span span78 = CollectionsMarshal.AsSpan(list194); + span78[0] = new QuestStep(EInteractionType.WaitForManualProgress, null, new Vector3(-143.67775f, -32.78761f, -122.891304f), 138) { Fly = true, Comment = "Do the FATE" }; - index2++; - span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -100344,26 +83165,21 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - span195[index] = "Censored"; + CollectionsMarshal.AsSpan(list195)[0] = "Censored"; questRoot22.Author = list195; - index = 3; - List list196 = new List(index); - CollectionsMarshal.SetCount(list196, index); - Span span196 = CollectionsMarshal.AsSpan(list196); - num = 0; - ref QuestSequence reference150 = ref span196[num]; + num = 3; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span79 = CollectionsMarshal.AsSpan(list196); + ref QuestSequence reference150 = ref span79[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100382,8 +83198,7 @@ public static class AssemblyQuestLoader }; obj141.Steps = list197; reference150 = obj141; - num++; - ref QuestSequence reference151 = ref span196[num]; + ref QuestSequence reference151 = ref span79[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -100391,34 +83206,26 @@ public static class AssemblyQuestLoader num2 = 2; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - ref QuestStep reference152 = ref span198[index2]; + Span span80 = CollectionsMarshal.AsSpan(list198); + ref QuestStep reference152 = ref span80[0]; QuestStep obj143 = new QuestStep(EInteractionType.UseItem, 2003871u, new Vector3(-126.93988f, -27.084778f, 29.800781f), 138) { Fly = true, ItemId = 2001273u }; - 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); + 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); obj143.CompletionQuestVariablesFlags = list199; reference152 = obj143; - index2++; - ref QuestStep reference153 = ref span198[index2]; + ref QuestStep reference153 = ref span80[1]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 2003872u, new Vector3(-22.354492f, -14.999634f, -101.51831f), 138) { Fly = true, @@ -100427,42 +83234,31 @@ public static class AssemblyQuestLoader num3 = 6; List> list200 = new List>(num3); CollectionsMarshal.SetCount(list200, num3); - 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]; + 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]; int num4 = 1; List list201 = new List(num4); CollectionsMarshal.SetCount(list201, num4); - Span span201 = CollectionsMarshal.AsSpan(list201); - int index4 = 0; - span201[index4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list201)[0] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); reference154 = list201; obj144.RequiredQuestVariables = list200; reference153 = obj144; obj142.Steps = list198; reference151 = obj142; - num++; - ref QuestSequence reference155 = ref span196[num]; + ref QuestSequence reference155 = ref span79[2]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -100475,16 +83271,13 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span203 = CollectionsMarshal.AsSpan(list203); - index = 0; - span203[index] = "Censored"; + CollectionsMarshal.AsSpan(list203)[0] = "Censored"; questRoot23.Author = list203; - index = 3; - List list204 = new List(index); - CollectionsMarshal.SetCount(list204, index); - Span span204 = CollectionsMarshal.AsSpan(list204); - num = 0; - ref QuestSequence reference156 = ref span204[num]; + num = 3; + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + Span span83 = CollectionsMarshal.AsSpan(list204); + ref QuestSequence reference156 = ref span83[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -100492,9 +83285,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100513,35 +83304,29 @@ public static class AssemblyQuestLoader }; obj146.Steps = list205; reference156 = obj146; - num++; - ref QuestSequence reference157 = ref span204[num]; + ref QuestSequence reference157 = ref span83[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list206 = new List(index2); - CollectionsMarshal.SetCount(list206, index2); - Span span206 = CollectionsMarshal.AsSpan(list206); - num2 = 0; - ref QuestStep reference158 = ref span206[num2]; + num2 = 1; + List list206 = new List(num2); + CollectionsMarshal.SetCount(list206, num2); + ref QuestStep reference158 = ref CollectionsMarshal.AsSpan(list206)[0]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(-93.46076f, -30.563955f, -116.52818f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list207 = new List(index3); - CollectionsMarshal.SetCount(list207, index3); - Span span207 = CollectionsMarshal.AsSpan(list207); - num3 = 0; - span207[num3] = 2835u; + num3 = 1; + List list207 = new List(num3); + CollectionsMarshal.SetCount(list207, num3); + CollectionsMarshal.AsSpan(list207)[0] = 2835u; obj148.KillEnemyDataIds = list207; reference158 = obj148; obj147.Steps = list206; reference157 = obj147; - num++; - ref QuestSequence reference159 = ref span204[num]; + ref QuestSequence reference159 = ref span83[2]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -100549,9 +83334,7 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -100564,26 +83347,21 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - Span span209 = CollectionsMarshal.AsSpan(list209); - index = 0; - span209[index] = "Censored"; + CollectionsMarshal.AsSpan(list209)[0] = "Censored"; questRoot24.Author = list209; - index = 4; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - ref QuestSequence reference160 = ref span210[num]; + num = 4; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span84 = CollectionsMarshal.AsSpan(list210); + ref QuestSequence reference160 = ref span84[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100602,8 +83380,7 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference160 = obj150; - num++; - ref QuestSequence reference161 = ref span210[num]; + ref QuestSequence reference161 = ref span84[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -100611,9 +83388,8 @@ public static class AssemblyQuestLoader num2 = 3; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - ref QuestStep reference162 = ref span212[index2]; + Span span85 = CollectionsMarshal.AsSpan(list212); + ref QuestStep reference162 = ref span85[0]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 1008818u, new Vector3(-188.89148f, -41.164997f, -42.832153f), 138) { Fly = true, @@ -100623,27 +83399,21 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span213 = CollectionsMarshal.AsSpan(list213); - index3 = 0; - span213[index3] = 767u; + CollectionsMarshal.AsSpan(list213)[0] = 767u; obj152.KillEnemyDataIds = list213; reference162 = obj152; - index2++; - ref QuestStep reference163 = ref span212[index2]; + ref QuestStep reference163 = ref span85[1]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 1008819u, new Vector3(-156.35925f, -38.790955f, -49.302002f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list214 = new List(index3); - CollectionsMarshal.SetCount(list214, index3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num3 = 0; - span214[num3] = 767u; + num3 = 1; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + CollectionsMarshal.AsSpan(list214)[0] = 767u; obj153.KillEnemyDataIds = list214; reference163 = obj153; - index2++; - ref QuestStep reference164 = ref span212[index2]; + ref QuestStep reference164 = ref span85[2]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 1008820u, new Vector3(-153.27692f, -35.290905f, -72.70929f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -100651,42 +83421,35 @@ public static class AssemblyQuestLoader num3 = 1; List list215 = new List(num3); CollectionsMarshal.SetCount(list215, num3); - Span span215 = CollectionsMarshal.AsSpan(list215); - index3 = 0; - span215[index3] = 767u; + CollectionsMarshal.AsSpan(list215)[0] = 767u; obj154.KillEnemyDataIds = list215; reference164 = obj154; obj151.Steps = list212; reference161 = obj151; - num++; - ref QuestSequence reference165 = ref span210[num]; + ref QuestSequence reference165 = ref span84[2]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2001254u }; - num2++; - span216[num2] = new QuestStep(EInteractionType.UseItem, 1008823u, new Vector3(-213.58057f, -40.036037f, -103.593506f), 138) + span86[1] = new QuestStep(EInteractionType.UseItem, 1008823u, new Vector3(-213.58057f, -40.036037f, -103.593506f), 138) { ItemId = 2001254u }; - num2++; - span216[num2] = new QuestStep(EInteractionType.UseItem, 1008824u, new Vector3(-212.75659f, -40.002003f, -104.631165f), 138) + span86[2] = new QuestStep(EInteractionType.UseItem, 1008824u, new Vector3(-212.75659f, -40.002003f, -104.631165f), 138) { ItemId = 2001254u }; obj155.Steps = list216; reference165 = obj155; - num++; - ref QuestSequence reference166 = ref span210[num]; + ref QuestSequence reference166 = ref span84[3]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -100694,9 +83457,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true }; @@ -100709,26 +83470,21 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "Censored"; + CollectionsMarshal.AsSpan(list218)[0] = "Censored"; questRoot25.Author = list218; - index = 3; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference167 = ref span219[num]; + num = 3; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span87 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference167 = ref span87[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100747,8 +83503,7 @@ public static class AssemblyQuestLoader }; obj157.Steps = list220; reference167 = obj157; - num++; - ref QuestSequence reference168 = ref span219[num]; + ref QuestSequence reference168 = ref span87[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -100756,9 +83511,8 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - ref QuestStep reference169 = ref span221[index2]; + Span span88 = CollectionsMarshal.AsSpan(list221); + ref QuestStep reference169 = ref span88[0]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -100774,20 +83528,17 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list222 = new List(index3); - CollectionsMarshal.SetCount(list222, index3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num3 = 0; - span222[num3] = new DialogueChoice + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH108_01386_01376_Q1_000_000") }; obj159.DialogueChoices = list222; reference169 = obj159; - index2++; - ref QuestStep reference170 = ref span221[index2]; + ref QuestStep reference170 = ref span88[1]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(-830.20886f, -25.652752f, 889.1423f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -100795,29 +83546,24 @@ public static class AssemblyQuestLoader num3 = 3; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span223 = CollectionsMarshal.AsSpan(list223); - index3 = 0; - span223[index3] = 765u; - index3++; - span223[index3] = 775u; - index3++; - span223[index3] = 776u; + Span span89 = CollectionsMarshal.AsSpan(list223); + span89[0] = 765u; + span89[1] = 775u; + span89[2] = 776u; obj160.KillEnemyDataIds = list223; reference170 = obj160; obj158.Steps = list221; reference168 = obj158; - num++; - ref QuestSequence reference171 = ref span219[num]; + ref QuestSequence reference171 = ref span87[2]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -100833,8 +83579,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138); + span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138); obj161.Steps = list224; reference171 = obj161; questRoot25.QuestSequence = list219; @@ -100844,16 +83589,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "Censored"; + CollectionsMarshal.AsSpan(list225)[0] = "Censored"; questRoot26.Author = list225; - index = 3; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference172 = ref span226[num]; + num = 3; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span91 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference172 = ref span91[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -100861,9 +83603,7 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -100882,18 +83622,16 @@ public static class AssemblyQuestLoader }; obj162.Steps = list227; reference172 = obj162; - num++; - ref QuestSequence reference173 = ref span226[num]; + ref QuestSequence reference173 = ref span91[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - index2 = 7; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref QuestStep reference174 = ref span228[num2]; + num2 = 7; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span92 = CollectionsMarshal.AsSpan(list228); + ref QuestStep reference174 = ref span92[0]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -100909,20 +83647,17 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list229 = new List(index3); - CollectionsMarshal.SetCount(list229, index3); - Span span229 = CollectionsMarshal.AsSpan(list229); - num3 = 0; - span229[num3] = new DialogueChoice + num3 = 1; + List list229 = new List(num3); + CollectionsMarshal.SetCount(list229, num3); + CollectionsMarshal.AsSpan(list229)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH109_01387_Q1_000_000") }; obj164.DialogueChoices = list229; reference174 = obj164; - num2++; - ref QuestStep reference175 = ref span228[num2]; + ref QuestStep reference175 = ref span92[1]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-847.4226f, -25.652754f, 886.75653f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -100930,31 +83665,23 @@ public static class AssemblyQuestLoader num3 = 1; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span230 = CollectionsMarshal.AsSpan(list230); - index3 = 0; - span230[index3] = 2839u; + CollectionsMarshal.AsSpan(list230)[0] = 2839u; obj165.KillEnemyDataIds = list230; reference175 = obj165; - num2++; - span228[num2] = new QuestStep(EInteractionType.Interact, 2004006u, new Vector3(-845.79236f, -25.650513f, 887.6019f), 138); - num2++; - ref QuestStep reference176 = ref span228[num2]; + span92[2] = new QuestStep(EInteractionType.Interact, 2004006u, new Vector3(-845.79236f, -25.650513f, 887.6019f), 138); + ref QuestStep reference176 = ref span92[3]; QuestStep obj166 = new QuestStep(EInteractionType.Combat, null, new Vector3(-834.959f, -25.652752f, 881.4168f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list231 = new List(index3); - CollectionsMarshal.SetCount(list231, index3); - Span span231 = CollectionsMarshal.AsSpan(list231); - num3 = 0; - span231[num3] = 2839u; + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + CollectionsMarshal.AsSpan(list231)[0] = 2839u; obj166.KillEnemyDataIds = list231; reference176 = obj166; - num2++; - span228[num2] = new QuestStep(EInteractionType.Interact, 2004005u, new Vector3(-833.2799f, -25.68097f, 880.70483f), 138); - num2++; - ref QuestStep reference177 = ref span228[num2]; + span92[4] = new QuestStep(EInteractionType.Interact, 2004005u, new Vector3(-833.2799f, -25.68097f, 880.70483f), 138); + ref QuestStep reference177 = ref span92[5]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-830.6505f, -25.647753f, 896.4246f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -100962,17 +83689,13 @@ public static class AssemblyQuestLoader num3 = 1; List list232 = new List(num3); CollectionsMarshal.SetCount(list232, num3); - Span span232 = CollectionsMarshal.AsSpan(list232); - index3 = 0; - span232[index3] = 2839u; + CollectionsMarshal.AsSpan(list232)[0] = 2839u; obj167.KillEnemyDataIds = list232; reference177 = obj167; - num2++; - span228[num2] = new QuestStep(EInteractionType.Interact, 2004004u, new Vector3(-830.1366f, -25.68097f, 897.48975f), 138); + span92[6] = new QuestStep(EInteractionType.Interact, 2004004u, new Vector3(-830.1366f, -25.68097f, 897.48975f), 138); obj163.Steps = list228; reference173 = obj163; - num++; - ref QuestSequence reference178 = ref span226[num]; + ref QuestSequence reference178 = ref span91[2]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -100980,9 +83703,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005938u, new Vector3(-220.7218f, -40.720844f, 37.247192f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101008,26 +83729,21 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "Censored"; + CollectionsMarshal.AsSpan(list234)[0] = "Censored"; questRoot27.Author = list234; - index = 3; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference179 = ref span235[num]; + num = 3; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span93 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference179 = ref span93[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101046,8 +83762,7 @@ public static class AssemblyQuestLoader }; obj169.Steps = list236; reference179 = obj169; - num++; - ref QuestSequence reference180 = ref span235[num]; + ref QuestSequence reference180 = ref span93[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -101055,24 +83770,20 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - ref QuestStep reference181 = ref span237[index2]; + Span span94 = CollectionsMarshal.AsSpan(list237); + ref QuestStep reference181 = ref span94[0]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, 1008793u, new Vector3(-55.436035f, -24.903355f, 36.75891f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list238 = new List(index3); - CollectionsMarshal.SetCount(list238, index3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num3 = 0; - span238[num3] = 2903u; + num3 = 1; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + CollectionsMarshal.AsSpan(list238)[0] = 2903u; obj171.KillEnemyDataIds = list238; reference181 = obj171; - index2++; - ref QuestStep reference182 = ref span237[index2]; + ref QuestStep reference182 = ref span94[1]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 1008796u, new Vector3(46.066895f, -14.420642f, 55.008667f), 138) { Fly = true, @@ -101081,25 +83792,20 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - index3 = 0; - span239[index3] = 2903u; + CollectionsMarshal.AsSpan(list239)[0] = 2903u; obj172.KillEnemyDataIds = list239; reference182 = obj172; obj170.Steps = list237; reference180 = obj170; - num++; - ref QuestSequence reference183 = ref span235[num]; + ref QuestSequence reference183 = ref span93[2]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -101112,16 +83818,13 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "Censored"; + CollectionsMarshal.AsSpan(list241)[0] = "Censored"; questRoot28.Author = list241; - index = 3; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference184 = ref span242[num]; + num = 3; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span95 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference184 = ref span95[0]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -101129,9 +83832,7 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101150,29 +83851,24 @@ public static class AssemblyQuestLoader }; obj174.Steps = list243; reference184 = obj174; - num++; - ref QuestSequence reference185 = ref span242[num]; + ref QuestSequence reference185 = ref span95[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list244 = new List(index2); - CollectionsMarshal.SetCount(list244, index2); - Span span244 = CollectionsMarshal.AsSpan(list244); - num2 = 0; - ref QuestStep reference186 = ref span244[num2]; + num2 = 1; + List list244 = new List(num2); + CollectionsMarshal.SetCount(list244, num2); + ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list244)[0]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, null, new Vector3(-230.4717f, -42.561234f, -222.34785f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list245 = new List(index3); - CollectionsMarshal.SetCount(list245, index3); - Span span245 = CollectionsMarshal.AsSpan(list245); - num3 = 0; - span245[num3] = new ComplexCombatData + num3 = 1; + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + CollectionsMarshal.AsSpan(list245)[0] = new ComplexCombatData { DataId = 768u, MinimumKillCount = 3u @@ -101181,8 +83877,7 @@ public static class AssemblyQuestLoader reference186 = obj176; obj175.Steps = list244; reference185 = obj175; - num++; - ref QuestSequence reference187 = ref span242[num]; + ref QuestSequence reference187 = ref span95[2]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -101190,9 +83885,8 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + Span span96 = CollectionsMarshal.AsSpan(list246); + span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -101208,8 +83902,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj177.Steps = list246; reference187 = obj177; questRoot28.QuestSequence = list242; @@ -101219,26 +83912,21 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "Censored"; + CollectionsMarshal.AsSpan(list247)[0] = "Censored"; questRoot29.Author = list247; - index = 3; - List list248 = new List(index); - CollectionsMarshal.SetCount(list248, index); - Span span248 = CollectionsMarshal.AsSpan(list248); - num = 0; - ref QuestSequence reference188 = ref span248[num]; + num = 3; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + Span span97 = CollectionsMarshal.AsSpan(list248); + ref QuestSequence reference188 = ref span97[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101257,8 +83945,7 @@ public static class AssemblyQuestLoader }; obj178.Steps = list249; reference188 = obj178; - num++; - ref QuestSequence reference189 = ref span248[num]; + ref QuestSequence reference189 = ref span97[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -101266,9 +83953,7 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - ref QuestStep reference190 = ref span250[index2]; + ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list250)[0]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.0164f, -42.30825f, -278.38858f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -101276,34 +83961,26 @@ public static class AssemblyQuestLoader num3 = 2; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span251 = CollectionsMarshal.AsSpan(list251); - index3 = 0; - ref ComplexCombatData reference191 = ref span251[index3]; + Span span98 = CollectionsMarshal.AsSpan(list251); + ref ComplexCombatData reference191 = ref span98[0]; ComplexCombatData obj181 = new ComplexCombatData { DataId = 2832u, MinimumKillCount = 2u }; - 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; + 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; obj181.CompletionQuestVariablesFlags = list252; reference191 = obj181; - index3++; - span251[index3] = new ComplexCombatData + span98[1] = new ComplexCombatData { DataId = 2889u, MinimumKillCount = 1u @@ -101312,18 +83989,16 @@ public static class AssemblyQuestLoader reference190 = obj180; obj179.Steps = list250; reference189 = obj179; - num++; - ref QuestSequence reference192 = ref span248[num]; + ref QuestSequence reference192 = ref span97[2]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -101339,8 +84014,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span253[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj182.Steps = list253; reference192 = obj182; questRoot29.QuestSequence = list248; @@ -101350,16 +84024,13 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "Censored"; + CollectionsMarshal.AsSpan(list254)[0] = "Censored"; questRoot30.Author = list254; - index = 3; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference193 = ref span255[num]; + num = 3; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span101 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference193 = ref span101[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -101367,9 +84038,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101388,97 +84057,74 @@ public static class AssemblyQuestLoader }; obj183.Steps = list256; reference193 = obj183; - num++; - ref QuestSequence reference194 = ref span255[num]; + ref QuestSequence reference194 = ref span101[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list257 = new List(index2); - CollectionsMarshal.SetCount(list257, index2); - Span span257 = CollectionsMarshal.AsSpan(list257); - num2 = 0; - ref QuestStep reference195 = ref span257[num2]; + num2 = 3; + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + Span span102 = CollectionsMarshal.AsSpan(list257); + ref QuestStep reference195 = ref span102[0]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2003764u, new Vector3(-236.56067f, -41.001038f, -176.0434f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list258 = new List(index3); - CollectionsMarshal.SetCount(list258, index3); - Span span258 = CollectionsMarshal.AsSpan(list258); - num3 = 0; - span258[num3] = 2843u; + num3 = 1; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + CollectionsMarshal.AsSpan(list258)[0] = 2843u; obj185.KillEnemyDataIds = list258; num3 = 6; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - 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); + 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); obj185.CompletionQuestVariablesFlags = list259; reference195 = obj185; - num2++; - ref QuestStep reference196 = ref span257[num2]; + ref QuestStep reference196 = ref span102[1]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2003765u, new Vector3(-223.65149f, -41.36731f, -185.47345f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list260 = new List(index3); - CollectionsMarshal.SetCount(list260, index3); - Span span260 = CollectionsMarshal.AsSpan(list260); - num3 = 0; - span260[num3] = 2843u; + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + CollectionsMarshal.AsSpan(list260)[0] = 2843u; obj186.KillEnemyDataIds = list260; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - 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); + 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); obj186.CompletionQuestVariablesFlags = list261; reference196 = obj186; - num2++; - ref QuestStep reference197 = ref span257[num2]; + ref QuestStep reference197 = ref span102[2]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, 2003767u, new Vector3(-212.75659f, -41.672424f, -198.07745f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list262 = new List(index3); - CollectionsMarshal.SetCount(list262, index3); - Span span262 = CollectionsMarshal.AsSpan(list262); - num3 = 0; - span262[num3] = 2843u; + num3 = 1; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + CollectionsMarshal.AsSpan(list262)[0] = 2843u; obj187.KillEnemyDataIds = list262; reference197 = obj187; obj184.Steps = list257; reference194 = obj184; - num++; - ref QuestSequence reference198 = ref span255[num]; + ref QuestSequence reference198 = ref span101[2]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -101486,9 +84132,8 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + Span span105 = CollectionsMarshal.AsSpan(list263); + span105[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -101504,8 +84149,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span263[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj188.Steps = list263; reference198 = obj188; questRoot30.QuestSequence = list255; @@ -101515,26 +84159,21 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - Span span264 = CollectionsMarshal.AsSpan(list264); - index = 0; - span264[index] = "Censored"; + CollectionsMarshal.AsSpan(list264)[0] = "Censored"; questRoot31.Author = list264; - index = 3; - List list265 = new List(index); - CollectionsMarshal.SetCount(list265, index); - Span span265 = CollectionsMarshal.AsSpan(list265); - num = 0; - ref QuestSequence reference199 = ref span265[num]; + num = 3; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + Span span106 = CollectionsMarshal.AsSpan(list265); + ref QuestSequence reference199 = ref span106[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101553,8 +84192,7 @@ public static class AssemblyQuestLoader }; obj189.Steps = list266; reference199 = obj189; - num++; - ref QuestSequence reference200 = ref span265[num]; + ref QuestSequence reference200 = ref span106[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -101562,9 +84200,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - ref QuestStep reference201 = ref span267[index2]; + ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(-289.73663f, -41.544178f, -358.22406f), 138) { Fly = true, @@ -101573,25 +84209,21 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span268 = CollectionsMarshal.AsSpan(list268); - index3 = 0; - span268[index3] = 2836u; + CollectionsMarshal.AsSpan(list268)[0] = 2836u; obj191.KillEnemyDataIds = list268; reference201 = obj191; obj190.Steps = list267; reference200 = obj190; - num++; - ref QuestSequence reference202 = ref span265[num]; + ref QuestSequence reference202 = ref span106[2]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -101607,8 +84239,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span269[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj192.Steps = list269; reference202 = obj192; questRoot31.QuestSequence = list265; @@ -101618,17 +84249,14 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - Span span270 = CollectionsMarshal.AsSpan(list270); - index = 0; - span270[index] = "Censored"; + CollectionsMarshal.AsSpan(list270)[0] = "Censored"; questRoot32.Author = list270; questRoot32.Comment = "FATE"; - index = 2; - List list271 = new List(index); - CollectionsMarshal.SetCount(list271, index); - Span span271 = CollectionsMarshal.AsSpan(list271); - num = 0; - ref QuestSequence reference203 = ref span271[num]; + num = 2; + List list271 = new List(num); + CollectionsMarshal.SetCount(list271, num); + Span span108 = CollectionsMarshal.AsSpan(list271); + ref QuestSequence reference203 = ref span108[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -101636,9 +84264,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101657,24 +84283,21 @@ public static class AssemblyQuestLoader }; obj193.Steps = list272; reference203 = obj193; - num++; - ref QuestSequence reference204 = ref span271[num]; + ref QuestSequence reference204 = ref span108[1]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Comment = "Do the FATE" }; - num2++; - span273[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -101690,8 +84313,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj194.Steps = list273; reference204 = obj194; questRoot32.QuestSequence = list271; @@ -101701,16 +84323,13 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - Span span274 = CollectionsMarshal.AsSpan(list274); - index = 0; - span274[index] = "Censored"; + CollectionsMarshal.AsSpan(list274)[0] = "Censored"; questRoot33.Author = list274; - index = 3; - List list275 = new List(index); - CollectionsMarshal.SetCount(list275, index); - Span span275 = CollectionsMarshal.AsSpan(list275); - num = 0; - ref QuestSequence reference205 = ref span275[num]; + num = 3; + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + Span span110 = CollectionsMarshal.AsSpan(list275); + ref QuestSequence reference205 = ref span110[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -101718,9 +84337,7 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101739,147 +84356,115 @@ public static class AssemblyQuestLoader }; obj195.Steps = list276; reference205 = obj195; - num++; - ref QuestSequence reference206 = ref span275[num]; + ref QuestSequence reference206 = ref span110[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list277 = new List(index2); - CollectionsMarshal.SetCount(list277, index2); - Span span277 = CollectionsMarshal.AsSpan(list277); - num2 = 0; - ref QuestStep reference207 = ref span277[num2]; + num2 = 4; + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + Span span111 = CollectionsMarshal.AsSpan(list277); + ref QuestStep reference207 = ref span111[0]; QuestStep obj197 = new QuestStep(EInteractionType.Combat, 2003830u, new Vector3(-270.1305f, -43.2594f, -260.3647f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list278 = new List(index3); - CollectionsMarshal.SetCount(list278, index3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = 766u; + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + CollectionsMarshal.AsSpan(list278)[0] = 766u; obj197.KillEnemyDataIds = list278; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list279; skipConditions2.StepIf = skipStepConditions2; obj197.SkipConditions = skipConditions2; reference207 = obj197; - num2++; - ref QuestStep reference208 = ref span277[num2]; + ref QuestStep reference208 = ref span111[1]; QuestStep obj198 = new QuestStep(EInteractionType.Combat, 2003829u, new Vector3(-218.49402f, -39.414062f, -332.29572f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list280 = new List(index3); - CollectionsMarshal.SetCount(list280, index3); - Span span280 = CollectionsMarshal.AsSpan(list280); - num3 = 0; - span280[num3] = 766u; + num3 = 1; + List list280 = new List(num3); + CollectionsMarshal.SetCount(list280, num3); + CollectionsMarshal.AsSpan(list280)[0] = 766u; obj198.KillEnemyDataIds = list280; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list281; skipConditions3.StepIf = skipStepConditions3; obj198.SkipConditions = skipConditions3; reference208 = obj198; - num2++; - ref QuestStep reference209 = ref span277[num2]; + ref QuestStep reference209 = ref span111[2]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 2003828u, new Vector3(-159.53314f, -41.397766f, -269.70325f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list282 = new List(index3); - CollectionsMarshal.SetCount(list282, index3); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - span282[num3] = 766u; + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + CollectionsMarshal.AsSpan(list282)[0] = 766u; obj199.KillEnemyDataIds = list282; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); num3 = 6; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list283; skipConditions4.StepIf = skipStepConditions4; obj199.SkipConditions = skipConditions4; reference209 = obj199; - num2++; - ref QuestStep reference210 = ref span277[num2]; + ref QuestStep reference210 = ref span111[3]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2003831u, new Vector3(-192.82831f, -40.756897f, -211.53589f), 138) { Fly = true, ItemId = 2001265u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list284 = new List(index3); - CollectionsMarshal.SetCount(list284, index3); - Span span284 = CollectionsMarshal.AsSpan(list284); - num3 = 0; - span284[num3] = 766u; + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + CollectionsMarshal.AsSpan(list284)[0] = 766u; obj200.KillEnemyDataIds = list284; reference210 = obj200; obj196.Steps = list277; reference206 = obj196; - num++; - ref QuestSequence reference211 = ref span275[num]; + ref QuestSequence reference211 = ref span110[2]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue @@ -101887,9 +84472,8 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) + Span span115 = CollectionsMarshal.AsSpan(list285); + span115[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.65279f, -41.732937f, 52.040615f), 138) { Fly = true, SkipConditions = new SkipConditions @@ -101905,8 +84489,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj201.Steps = list285; reference211 = obj201; questRoot33.QuestSequence = list275; @@ -101916,26 +84499,21 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "Censored"; + CollectionsMarshal.AsSpan(list286)[0] = "Censored"; questRoot34.Author = list286; - index = 3; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference212 = ref span287[num]; + num = 3; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span116 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference212 = ref span116[0]; QuestSequence obj202 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -101954,8 +84532,7 @@ public static class AssemblyQuestLoader }; obj202.Steps = list288; reference212 = obj202; - num++; - ref QuestSequence reference213 = ref span287[num]; + ref QuestSequence reference213 = ref span116[1]; QuestSequence obj203 = new QuestSequence { Sequence = 1 @@ -101963,9 +84540,8 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - ref QuestStep reference214 = ref span289[index2]; + Span span117 = CollectionsMarshal.AsSpan(list289); + ref QuestStep reference214 = ref span117[0]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -101984,43 +84560,36 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span290 = CollectionsMarshal.AsSpan(list290); - index3 = 0; - span290[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH210_01399_Q1_000_000") }; obj204.DialogueChoices = list290; reference214 = obj204; - index2++; - ref QuestStep reference215 = ref span289[index2]; + ref QuestStep reference215 = ref span117[1]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, null, new Vector3(-864.4419f, -25.652748f, 928.53f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list291 = new List(index3); - CollectionsMarshal.SetCount(list291, index3); - Span span291 = CollectionsMarshal.AsSpan(list291); - num3 = 0; - span291[num3] = 767u; + num3 = 1; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + CollectionsMarshal.AsSpan(list291)[0] = 767u; obj205.KillEnemyDataIds = list291; reference215 = obj205; obj203.Steps = list289; reference213 = obj203; - num++; - ref QuestSequence reference216 = ref span287[num]; + ref QuestSequence reference216 = ref span116[2]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -102036,8 +84605,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span292[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); + span118[1] = new QuestStep(EInteractionType.CompleteQuest, 1005939u, new Vector3(-247.73022f, -42.09973f, 52.017944f), 138); obj206.Steps = list292; reference216 = obj206; questRoot34.QuestSequence = list287; @@ -102051,16 +84619,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -102068,23 +84633,19 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 1f, @@ -102094,40 +84655,31 @@ public static class AssemblyQuestLoader int num3 = 2; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int num4 = 0; - span5[num4] = new ComplexCombatData + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new ComplexCombatData { DataId = 765u, MinimumKillCount = 1u }; - num4++; - span5[num4] = new ComplexCombatData + span3[1] = new ComplexCombatData { DataId = 2887u, MinimumKillCount = 1u }; obj3.ComplexCombatData = list5; - 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); + 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); obj3.CompletionQuestVariablesFlags = list6; reference3 = obj3; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 20f, @@ -102136,40 +84688,31 @@ public static class AssemblyQuestLoader num3 = 2; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num4 = 0; - span7[num4] = new ComplexCombatData + Span span5 = CollectionsMarshal.AsSpan(list7); + span5[0] = new ComplexCombatData { DataId = 766u, MinimumKillCount = 1u }; - num4++; - span7[num4] = new ComplexCombatData + span5[1] = new ComplexCombatData { DataId = 2886u, MinimumKillCount = 1u }; obj4.ComplexCombatData = list7; - 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); + 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); obj4.CompletionQuestVariablesFlags = list8; reference4 = obj4; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(-353.3627f, -39.6834f, -352.8219f), 138) { StopDistance = 20f, @@ -102178,42 +84721,33 @@ public static class AssemblyQuestLoader num3 = 2; List list9 = new List(num3); CollectionsMarshal.SetCount(list9, num3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num4 = 0; - span9[num4] = new ComplexCombatData + Span span7 = CollectionsMarshal.AsSpan(list9); + span7[0] = new ComplexCombatData { DataId = 768u, MinimumKillCount = 1u }; - num4++; - span9[num4] = new ComplexCombatData + span7[1] = new ComplexCombatData { DataId = 2888u, MinimumKillCount = 1u }; obj5.ComplexCombatData = list9; - 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); + 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); obj5.CompletionQuestVariablesFlags = list10; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -102221,9 +84755,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -102236,26 +84768,21 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "Censored"; + CollectionsMarshal.AsSpan(list12)[0] = "Censored"; questRoot2.Author = list12; - index = 3; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference7 = ref span13[num]; + num = 3; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span9 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference7 = ref span9[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -102274,8 +84801,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list14; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span13[num]; + ref QuestSequence reference8 = ref span9[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -102283,9 +84809,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference9 = ref span15[index2]; + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(-385.82654f, -38.97124f, -341.03537f), 138) { Fly = true, @@ -102294,25 +84818,20 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num4 = 0; - span16[num4] = 2837u; + CollectionsMarshal.AsSpan(list16)[0] = 2837u; obj9.KillEnemyDataIds = list16; reference9 = obj9; obj8.Steps = list15; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span13[num]; + ref QuestSequence reference10 = ref span9[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -102331,16 +84850,13 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "Censored"; + CollectionsMarshal.AsSpan(list18)[0] = "Censored"; questRoot3.Author = list18; - index = 3; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference11 = ref span19[num]; + num = 3; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span10 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference11 = ref span10[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -102348,9 +84864,7 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -102369,34 +84883,30 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span19[num]; + ref QuestSequence reference12 = ref span10[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref QuestStep reference13 = ref span21[num2]; + num2 = 3; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + Span span11 = CollectionsMarshal.AsSpan(list21); + ref QuestStep reference13 = ref span11[0]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new ComplexCombatData + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span12 = CollectionsMarshal.AsSpan(list22); + span12[0] = new ComplexCombatData { DataId = 773u, MinimumKillCount = 1u }; - num3++; - span22[num3] = new ComplexCombatData + span12[1] = new ComplexCombatData { DataId = 2878u, MinimumKillCount = 1u @@ -102405,39 +84915,30 @@ public static class AssemblyQuestLoader num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - 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); + 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); obj13.CompletionQuestVariablesFlags = list23; reference13 = obj13; - num2++; - ref QuestStep reference14 = ref span21[num2]; + ref QuestStep reference14 = ref span11[1]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list24 = new List(num4); - CollectionsMarshal.SetCount(list24, num4); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - span24[num3] = new ComplexCombatData + num3 = 2; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + Span span14 = CollectionsMarshal.AsSpan(list24); + span14[0] = new ComplexCombatData { DataId = 776u, MinimumKillCount = 1u }; - num3++; - span24[num3] = new ComplexCombatData + span14[1] = new ComplexCombatData { DataId = 2879u, MinimumKillCount = 1u @@ -102446,39 +84947,30 @@ public static class AssemblyQuestLoader num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - 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); + 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); obj14.CompletionQuestVariablesFlags = list25; reference14 = obj14; - num2++; - ref QuestStep reference15 = ref span21[num2]; + ref QuestStep reference15 = ref span11[2]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(-423.56384f, -40.76118f, -220.52809f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list26 = new List(num4); - CollectionsMarshal.SetCount(list26, num4); - Span span26 = CollectionsMarshal.AsSpan(list26); - num3 = 0; - span26[num3] = new ComplexCombatData + num3 = 2; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + Span span16 = CollectionsMarshal.AsSpan(list26); + span16[0] = new ComplexCombatData { DataId = 774u, MinimumKillCount = 1u }; - num3++; - span26[num3] = new ComplexCombatData + span16[1] = new ComplexCombatData { DataId = 2880u, MinimumKillCount = 1u @@ -102487,8 +84979,7 @@ public static class AssemblyQuestLoader reference15 = obj15; obj12.Steps = list21; reference12 = obj12; - num++; - ref QuestSequence reference16 = ref span19[num]; + ref QuestSequence reference16 = ref span10[2]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -102496,9 +84987,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -102511,26 +85000,21 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "Censored"; + CollectionsMarshal.AsSpan(list28)[0] = "Censored"; questRoot4.Author = list28; - index = 5; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference17 = ref span29[num]; + num = 5; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span17 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference17 = ref span17[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -102549,8 +85033,7 @@ public static class AssemblyQuestLoader }; obj17.Steps = list30; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span29[num]; + ref QuestSequence reference18 = ref span17[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -102558,9 +85041,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - ref QuestStep reference19 = ref span31[index2]; + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list31)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-379.54794f, -36.814743f, -295.2606f), 138) { Fly = true, @@ -102569,46 +85050,37 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num4 = 0; - span32[num4] = 139u; + CollectionsMarshal.AsSpan(list32)[0] = 139u; obj19.KillEnemyDataIds = list32; reference19 = obj19; obj18.Steps = list31; reference18 = obj18; - num++; - ref QuestSequence reference20 = ref span29[num]; + ref QuestSequence reference20 = ref span17[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num2 = 0; - ref QuestStep reference21 = ref span33[num2]; + num2 = 1; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list33)[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2003833u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj21.KillEnemyDataIds = list34; reference21 = obj21; obj20.Steps = list33; reference20 = obj20; - num++; - ref QuestSequence reference22 = ref span29[num]; + ref QuestSequence reference22 = ref span17[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 @@ -102616,26 +85088,21 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.UseItem, 2003864u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.UseItem, 2003864u, new Vector3(-500.23654f, -31.23523f, -351.97992f), 138) { ItemId = 2001272u }; obj22.Steps = list35; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span29[num]; + ref QuestSequence reference23 = ref span17[4]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -102648,16 +85115,13 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "Censored"; + CollectionsMarshal.AsSpan(list37)[0] = "Censored"; questRoot5.Author = list37; - index = 3; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference24 = ref span38[num]; + num = 3; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span19 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference24 = ref span19[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -102665,9 +85129,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -102686,18 +85148,16 @@ public static class AssemblyQuestLoader }; obj24.Steps = list39; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span38[num]; + ref QuestSequence reference25 = ref span19[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list40 = new List(index2); - CollectionsMarshal.SetCount(list40, index2); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref QuestStep reference26 = ref span40[num2]; + num2 = 2; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span20 = CollectionsMarshal.AsSpan(list40); + ref QuestStep reference26 = ref span20[0]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -102716,33 +85176,28 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - num4 = 0; - span41[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH307_01406_Q1_000_000") }; obj26.DialogueChoices = list41; reference26 = obj26; - num2++; - ref QuestStep reference27 = ref span40[num2]; + ref QuestStep reference27 = ref span20[1]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-812.7521f, -25.647753f, 975.4917f), 138) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list42 = new List(num4); - CollectionsMarshal.SetCount(list42, num4); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span42[num3] = new ComplexCombatData + num3 = 2; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + Span span21 = CollectionsMarshal.AsSpan(list42); + span21[0] = new ComplexCombatData { DataId = 773u, MinimumKillCount = 1u }; - num3++; - span42[num3] = new ComplexCombatData + span21[1] = new ComplexCombatData { DataId = 2910u, MinimumKillCount = 1u @@ -102751,8 +85206,7 @@ public static class AssemblyQuestLoader reference27 = obj27; obj25.Steps = list40; reference25 = obj25; - num++; - ref QuestSequence reference28 = ref span38[num]; + ref QuestSequence reference28 = ref span19[2]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -102760,9 +85214,8 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) + Span span22 = CollectionsMarshal.AsSpan(list43); + span22[0] = new QuestStep(EInteractionType.Interact, 2004014u, new Vector3(-826.84064f, -29.34314f, 971.4656f), 138) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -102778,8 +85231,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj28.Steps = list43; reference28 = obj28; questRoot5.QuestSequence = list38; @@ -102789,26 +85241,21 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "Censored"; + CollectionsMarshal.AsSpan(list44)[0] = "Censored"; questRoot6.Author = list44; - index = 3; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference29 = ref span45[num]; + num = 3; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span23 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference29 = ref span23[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -102827,8 +85274,7 @@ public static class AssemblyQuestLoader }; obj29.Steps = list46; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span45[num]; + ref QuestSequence reference30 = ref span23[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -102836,9 +85282,8 @@ public static class AssemblyQuestLoader num2 = 5; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - ref QuestStep reference31 = ref span47[index2]; + Span span24 = CollectionsMarshal.AsSpan(list47); + ref QuestStep reference31 = ref span24[0]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1005946u, new Vector3(-239.27673f, -42.130188f, 15.213196f), 138) { SkipConditions = new SkipConditions @@ -102857,94 +85302,68 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANSAH308_01407_Q1_000_000") }; obj31.DialogueChoices = list48; reference31 = obj31; - index2++; - ref QuestStep reference32 = ref span47[index2]; + ref QuestStep reference32 = ref span24[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1008914u, new Vector3(-846.8605f, -25.652748f, 962.0354f), 138); - 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); + 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); questStep.CompletionQuestVariablesFlags = list49; reference32 = questStep; - index2++; - ref QuestStep reference33 = ref span47[index2]; + ref QuestStep reference33 = ref span24[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list50; reference33 = questStep2; - index2++; - ref QuestStep reference34 = ref span47[index2]; + ref QuestStep reference34 = ref span24[3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1008912u, new Vector3(-821.40845f, -25.647757f, 974.853f), 138); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list51; reference34 = questStep3; - index2++; - span47[index2] = new QuestStep(EInteractionType.Interact, 1008913u, new Vector3(-795.4986f, -23.649637f, 972.3506f), 138); + span24[4] = new QuestStep(EInteractionType.Interact, 1008913u, new Vector3(-795.4986f, -23.649637f, 972.3506f), 138); obj30.Steps = list47; reference30 = obj30; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span23[2]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)138, SkipConditions = new SkipConditions @@ -102960,8 +85379,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); + span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138); obj32.Steps = list52; reference35 = obj32; questRoot6.QuestSequence = list45; @@ -102971,17 +85389,14 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "Censored"; + CollectionsMarshal.AsSpan(list53)[0] = "Censored"; questRoot7.Author = list53; questRoot7.Comment = "FATE"; - index = 2; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference36 = ref span54[num]; + num = 2; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span29 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference36 = ref span29[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -102989,9 +85404,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -103010,24 +85423,21 @@ public static class AssemblyQuestLoader }; obj33.Steps = list55; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span54[num]; + ref QuestSequence reference37 = ref span29[1]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Comment = "Do the FATE" }; - num2++; - span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1005940u, new Vector3(-226.12347f, -40.48583f, 57.083984f), 138) { Fly = true }; @@ -103040,16 +85450,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot8.Author = list57; - index = 3; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference38 = ref span58[num]; + num = 3; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span31 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference38 = ref span31[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -103057,30 +85464,24 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj35.Steps = list59; reference38 = obj35; - num++; - ref QuestSequence reference39 = ref span58[num]; + ref QuestSequence reference39 = ref span31[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj36.Steps = list60; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span58[num]; + ref QuestSequence reference40 = ref span31[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -103088,9 +85489,7 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008544u, new Vector3(-316.42633f, 12.050298f, -35.385742f), 152) + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008544u, new Vector3(-316.42633f, 12.050298f, -35.385742f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -103104,30 +85503,24 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "liza"; + CollectionsMarshal.AsSpan(list62)[0] = "liza"; questRoot9.Author = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference41 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span32 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference41 = ref span32[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list64; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span63[num]; + ref QuestSequence reference42 = ref span32[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -103135,9 +85528,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1003281u, new Vector3(97.520386f, 40.248554f, 81.1322f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -103148,18 +85539,15 @@ public static class AssemblyQuestLoader }; obj39.Steps = list65; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span63[num]; + ref QuestSequence reference43 = ref span32[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -103173,17 +85561,14 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "liza"; + CollectionsMarshal.AsSpan(list67)[0] = "liza"; questRoot10.Author = list67; questRoot10.Comment = "Unlocks Mastercraft I/II books"; - index = 2; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference44 = ref span68[num]; + num = 2; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span33 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference44 = ref span33[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -103191,9 +85576,8 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.076426f, 28.999966f, -729.6976f), 156) + Span span34 = CollectionsMarshal.AsSpan(list69); + span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(24.076426f, 28.999966f, -729.6976f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -103204,22 +85588,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); + span34[1] = new QuestStep(EInteractionType.AcceptQuest, 1006971u, new Vector3(24.307495f, 29.021706f, -726.8635f), 156); obj41.Steps = list69; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span68[num]; + ref QuestSequence reference45 = ref span33[1]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj42.Steps = list70; reference45 = obj42; questRoot10.QuestSequence = list68; @@ -103229,16 +85609,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "kaiser"; + CollectionsMarshal.AsSpan(list71)[0] = "kaiser"; questRoot11.Author = list71; - index = 5; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference46 = ref span72[num]; + num = 5; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span35 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference46 = ref span35[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -103246,9 +85623,8 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(54.415092f, -8.047034f, 104.69259f), 132) + Span span36 = CollectionsMarshal.AsSpan(list73); + span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(54.415092f, -8.047034f, 104.69259f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -103259,8 +85635,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span73[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.72773f, -8f, 104.152405f), 132) + span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.72773f, -8f, 104.152405f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -103271,8 +85646,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000375u, new Vector3(42.313232f, -8f, 96.54382f), 132) + span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1000375u, new Vector3(42.313232f, -8f, 96.54382f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -103286,18 +85660,16 @@ public static class AssemblyQuestLoader }; obj43.Steps = list73; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span72[num]; + ref QuestSequence reference47 = ref span35[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -103317,8 +85689,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span74[num2] = new QuestStep(EInteractionType.Interact, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) + span37[1] = new QuestStep(EInteractionType.Interact, 1007792u, new Vector3(-87.84625f, -3.3081923f, 41.70288f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -103332,8 +85703,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list74; reference47 = obj44; - num++; - ref QuestSequence reference48 = ref span72[num]; + ref QuestSequence reference48 = ref span35[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -103341,9 +85711,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -103357,18 +85725,16 @@ public static class AssemblyQuestLoader }; obj45.Steps = list75; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span72[num]; + ref QuestSequence reference49 = ref span35[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference50 = ref span76[num2]; + num2 = 3; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span38 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference50 = ref span38[0]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1007795u, new Vector3(28.94629f, 8.45142f, -96.421814f), 133) { StopDistance = 5f, @@ -103389,23 +85755,16 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - 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); + 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); obj47.CompletionQuestVariablesFlags = list77; reference50 = obj47; - num2++; - ref QuestStep reference51 = ref span76[num2]; + ref QuestStep reference51 = ref span38[1]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1007794u, new Vector3(-124.864624f, 6.567382f, -120.74469f), 133) { StopDistance = 5f, @@ -103415,26 +85774,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - 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); + 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); obj48.CompletionQuestVariablesFlags = list78; reference51 = obj48; - num2++; - ref QuestStep reference52 = ref span76[num2]; + ref QuestStep reference52 = ref span38[2]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1007793u, new Vector3(-143.3891f, 4.123518f, -29.312622f), 133) { StopDistance = 5f, @@ -103447,25 +85799,18 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - 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); + 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); obj49.CompletionQuestVariablesFlags = list79; reference52 = obj49; obj46.Steps = list76; reference49 = obj46; - num++; - ref QuestSequence reference53 = ref span72[num]; + ref QuestSequence reference53 = ref span35[4]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -103473,11 +85818,9 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -103502,30 +85845,24 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "liza"; + CollectionsMarshal.AsSpan(list81)[0] = "liza"; questRoot12.Author = list81; - index = 4; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference54 = ref span82[num]; + num = 4; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span43 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference54 = ref span43[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj51.Steps = list83; reference54 = obj51; - num++; - ref QuestSequence reference55 = ref span82[num]; + ref QuestSequence reference55 = ref span43[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -103533,9 +85870,8 @@ public static class AssemblyQuestLoader num2 = 3; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - ref QuestStep reference56 = ref span84[index2]; + Span span44 = CollectionsMarshal.AsSpan(list84); + ref QuestStep reference56 = ref span44[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1007961u, new Vector3(-189.83752f, 0.9999907f, 205.61523f), 129) { AethernetShortcut = new AethernetShortcut @@ -103544,91 +85880,66 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - 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); + 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); obj53.CompletionQuestVariablesFlags = list85; reference56 = obj53; - index2++; - ref QuestStep reference57 = ref span84[index2]; + ref QuestStep reference57 = ref span44[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list86; reference57 = questStep4; - index2++; - ref QuestStep reference58 = ref span84[index2]; + ref QuestStep reference58 = ref span44[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1007960u, new Vector3(-154.16199f, 3.9999826f, 186.26685f), 129); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list87; reference58 = questStep5; obj52.Steps = list84; reference55 = obj52; - num++; - ref QuestSequence reference59 = ref span82[num]; + ref QuestSequence reference59 = ref span43[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span88[num2] = new QuestStep(EInteractionType.Interact, 1007797u, new Vector3(-260.73096f, 16.35222f, 194.17102f), 129); + span48[2] = new QuestStep(EInteractionType.Interact, 1007797u, new Vector3(-260.73096f, 16.35222f, 194.17102f), 129); obj54.Steps = list88; reference59 = obj54; - num++; - ref QuestSequence reference60 = ref span82[num]; + ref QuestSequence reference60 = ref span43[3]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -103636,11 +85947,9 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -103657,26 +85966,21 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list90)[0] = "WigglyMuffin"; questRoot13.Author = list90; - index = 4; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference61 = ref span91[num]; + num = 4; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span50 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference61 = ref span50[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -103689,8 +85993,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list92; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span91[num]; + ref QuestSequence reference62 = ref span50[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -103698,9 +86001,8 @@ public static class AssemblyQuestLoader num2 = 4; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - ref QuestStep reference63 = ref span93[index2]; + Span span51 = CollectionsMarshal.AsSpan(list93); + ref QuestStep reference63 = ref span51[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1001834u, new Vector3(-23.331116f, 10f, -43.442444f), 130) { TargetTerritoryId = (ushort)131 @@ -103708,9 +86010,7 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num4 = 0; - span94[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -103718,29 +86018,21 @@ public static class AssemblyQuestLoader }; obj58.DialogueChoices = list94; reference63 = obj58; - index2++; - ref QuestStep reference64 = ref span93[index2]; + ref QuestStep reference64 = ref span51[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1007801u, new Vector3(50.247925f, 34f, -35.568848f), 131); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list95; reference64 = questStep6; - index2++; - ref QuestStep reference65 = ref span93[index2]; + ref QuestStep reference65 = ref span51[2]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1001697u, new Vector3(98.55798f, 12.279275f, 54.795166f), 131) { AethernetShortcut = new AethernetShortcut @@ -103752,23 +86044,16 @@ public static class AssemblyQuestLoader num3 = 6; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - 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); + 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); obj59.CompletionQuestVariablesFlags = list96; reference65 = obj59; - index2++; - span93[index2] = new QuestStep(EInteractionType.Interact, 1007800u, new Vector3(6.5460815f, 15.000006f, -1.3275757f), 131) + span51[3] = new QuestStep(EInteractionType.Interact, 1007800u, new Vector3(6.5460815f, 15.000006f, -1.3275757f), 131) { AethernetShortcut = new AethernetShortcut { @@ -103778,18 +86063,15 @@ public static class AssemblyQuestLoader }; obj57.Steps = list93; reference62 = obj57; - num++; - ref QuestSequence reference66 = ref span91[num]; + ref QuestSequence reference66 = ref span50[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -103799,8 +86081,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list97; reference66 = obj60; - num++; - ref QuestSequence reference67 = ref span91[num]; + ref QuestSequence reference67 = ref span50[3]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -103808,9 +86089,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1007798u, new Vector3(-13.7178955f, 34.022892f, -51.86548f), 131) { Emote = EEmote.Dance }; @@ -103823,32 +86102,26 @@ public static class AssemblyQuestLoader num = 2; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; - index++; - span99[index] = "Wigglez"; + Span span54 = CollectionsMarshal.AsSpan(list99); + span54[0] = "liza"; + span54[1] = "Wigglez"; questRoot14.Author = list99; - index = 3; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference68 = ref span100[num]; + num = 3; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span55 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference68 = ref span55[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj62.Steps = list101; reference68 = obj62; - num++; - ref QuestSequence reference69 = ref span100[num]; + ref QuestSequence reference69 = ref span55[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -103856,9 +86129,8 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - ref QuestStep reference70 = ref span102[index2]; + Span span56 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference70 = ref span56[0]; QuestStep obj64 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.99089f, 40f, 69.91187f), 128) { TargetTerritoryId = (ushort)128, @@ -103870,32 +86142,26 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num4 = 1; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = 128; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = 128; skipStepConditions.InTerritory = list103; skipConditions.StepIf = skipStepConditions; obj64.SkipConditions = skipConditions; reference70 = obj64; - index2++; - span102[index2] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); + span56[1] = new QuestStep(EInteractionType.Interact, 1003598u, new Vector3(-12.069946f, 40.00053f, 11.459534f), 128); obj63.Steps = list102; reference69 = obj63; - num++; - ref QuestSequence reference71 = ref span100[num]; + ref QuestSequence reference71 = ref span55[2]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -103912,16 +86178,13 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "liza"; + CollectionsMarshal.AsSpan(list105)[0] = "liza"; questRoot15.Author = list105; - index = 3; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference72 = ref span106[num]; + num = 3; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span57 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference72 = ref span57[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -103929,9 +86192,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008950u, new Vector3(29.19043f, -1.4123198f, 52.658813f), 132) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008950u, new Vector3(29.19043f, -1.4123198f, 52.658813f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -103944,18 +86205,16 @@ public static class AssemblyQuestLoader }; obj66.Steps = list107; reference72 = obj66; - num++; - ref QuestSequence reference73 = ref span106[num]; + ref QuestSequence reference73 = ref span57[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -103971,8 +86230,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span108[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + span58[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -103983,8 +86241,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference74 = ref span108[num2]; + ref QuestStep reference74 = ref span58[2]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.214554f, -8.980761f, 297.15152f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -103993,9 +86250,7 @@ public static class AssemblyQuestLoader num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span109 = CollectionsMarshal.AsSpan(list109); - num4 = 0; - span109[num4] = 12u; + CollectionsMarshal.AsSpan(list109)[0] = 12u; obj68.KillEnemyDataIds = list109; obj68.SkipConditions = new SkipConditions { @@ -104005,12 +86260,10 @@ public static class AssemblyQuestLoader } }; reference74 = obj68; - num2++; - span108[num2] = new QuestStep(EInteractionType.Interact, 1008951u, new Vector3(-51.651794f, -8.992504f, 296.9253f), 152); + span58[3] = new QuestStep(EInteractionType.Interact, 1008951u, new Vector3(-51.651794f, -8.992504f, 296.9253f), 152); obj67.Steps = list108; reference73 = obj67; - num++; - ref QuestSequence reference75 = ref span106[num]; + ref QuestSequence reference75 = ref span57[2]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -104018,9 +86271,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000233u, new Vector3(168.65796f, 15.5f, -95.99457f), 133) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -104039,26 +86290,21 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list111)[0] = "Cacahuetes"; questRoot16.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference76 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span59 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference76 = ref span59[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -104071,8 +86317,7 @@ public static class AssemblyQuestLoader }; obj70.Steps = list113; reference76 = obj70; - num++; - ref QuestSequence reference77 = ref span112[num]; + ref QuestSequence reference77 = ref span59[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -104080,38 +86325,31 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - ref QuestStep reference78 = ref span114[index2]; + Span span60 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference78 = ref span60[0]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(248.49304f, -11.838913f, 97.45935f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list115 = new List(num4); - CollectionsMarshal.SetCount(list115, num4); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - span115[num3] = 397u; + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = 397u; obj72.KillEnemyDataIds = list115; reference78 = obj72; - index2++; - span114[index2] = new QuestStep(EInteractionType.Interact, 1005413u, new Vector3(248.49304f, -11.838913f, 97.45935f), 138); + span60[1] = new QuestStep(EInteractionType.Interact, 1005413u, new Vector3(248.49304f, -11.838913f, 97.45935f), 138); obj71.Steps = list114; reference77 = obj71; - num++; - ref QuestSequence reference79 = ref span112[num]; + ref QuestSequence reference79 = ref span59[2]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa }; @@ -104124,16 +86362,13 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "liza"; + CollectionsMarshal.AsSpan(list117)[0] = "liza"; questRoot17.Author = list117; - index = 3; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference80 = ref span118[num]; + num = 3; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span61 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference80 = ref span61[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -104141,9 +86376,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008798u, new Vector3(-93.06476f, 4f, -124.712036f), 130) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008798u, new Vector3(-93.06476f, 4f, -124.712036f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -104156,18 +86389,16 @@ public static class AssemblyQuestLoader }; obj74.Steps = list119; reference80 = obj74; - num++; - ref QuestSequence reference81 = ref span118[num]; + ref QuestSequence reference81 = ref span61[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num2 = 0; - ref QuestStep reference82 = ref span120[num2]; + num2 = 2; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span62 = CollectionsMarshal.AsSpan(list120); + ref QuestStep reference82 = ref span62[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-240.09776f, -37.803402f, 105.18645f), 145) { StopDistance = 0.5f, @@ -104177,17 +86408,13 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num4 = 0; - span121[num4] = 138u; + CollectionsMarshal.AsSpan(list121)[0] = 138u; obj76.KillEnemyDataIds = list121; reference82 = obj76; - num2++; - span120[num2] = new QuestStep(EInteractionType.Interact, 1008799u, new Vector3(-237.72034f, -37.77224f, 103.4104f), 145); + span62[1] = new QuestStep(EInteractionType.Interact, 1008799u, new Vector3(-237.72034f, -37.77224f, 103.4104f), 145); obj75.Steps = list120; reference81 = obj75; - num++; - ref QuestSequence reference83 = ref span118[num]; + ref QuestSequence reference83 = ref span61[2]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -104195,9 +86422,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001963u, new Vector3(106.06543f, 4.642026f, -72.007385f), 131) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001963u, new Vector3(106.06543f, 4.642026f, -72.007385f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -104215,26 +86440,21 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list123)[0] = "FalconTaterz"; questRoot18.Author = list123; - index = 8; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference84 = ref span124[num]; + num = 8; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span63 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference84 = ref span63[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -104247,8 +86467,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list125; reference84 = obj78; - num++; - ref QuestSequence reference85 = ref span124[num]; + ref QuestSequence reference85 = ref span63[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -104256,44 +86475,37 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1009305u, new Vector3(562.4321f, 17.654663f, 421.7135f), 137) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1009305u, new Vector3(562.4321f, 17.654663f, 421.7135f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj79.Steps = list126; reference85 = obj79; - num++; - ref QuestSequence reference86 = ref span124[num]; + ref QuestSequence reference86 = ref span63[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list127 = new List(index2); - CollectionsMarshal.SetCount(list127, index2); - Span span127 = CollectionsMarshal.AsSpan(list127); - num2 = 0; - ref QuestStep reference87 = ref span127[num2]; + num2 = 1; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list127)[0]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1009307u, new Vector3(498.89368f, 10.079935f, 418.265f), 137) { Fly = true }; - num4 = 2; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = new DialogueChoice + num3 = 2; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + Span span64 = CollectionsMarshal.AsSpan(list128); + span64[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB301_01438_Q1_000_000"), Answer = new ExcelRef("TEXT_CHRHDB301_01438_A1_000_030") }; - num3++; - span128[num3] = new DialogueChoice + span64[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB301_01438_Q2_000_000"), @@ -104303,8 +86515,7 @@ public static class AssemblyQuestLoader reference87 = obj81; obj80.Steps = list127; reference86 = obj80; - num++; - ref QuestSequence reference88 = ref span124[num]; + ref QuestSequence reference88 = ref span63[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -104312,34 +86523,28 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1009310u, new Vector3(471.18323f, 9.96334f, 794.6135f), 137) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1009310u, new Vector3(471.18323f, 9.96334f, 794.6135f), 137) { Fly = true }; obj82.Steps = list129; reference88 = obj82; - num++; - ref QuestSequence reference89 = ref span124[num]; + ref QuestSequence reference89 = ref span63[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj83.Steps = list130; reference89 = obj83; - num++; - ref QuestSequence reference90 = ref span124[num]; + ref QuestSequence reference90 = ref span63[5]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -104347,32 +86552,26 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.Interact, 1009311u, new Vector3(531.2123f, 17.448051f, 454.1847f), 137); + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1009311u, new Vector3(531.2123f, 17.448051f, 454.1847f), 137); obj84.Steps = list131; reference90 = obj84; - num++; - ref QuestSequence reference91 = ref span124[num]; + ref QuestSequence reference91 = ref span63[6]; QuestSequence obj85 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; - num2++; - span132[num2] = new QuestStep(EInteractionType.Interact, 1009317u, new Vector3(583.88635f, 14.587067f, 394.70508f), 137); + span65[1] = new QuestStep(EInteractionType.Interact, 1009317u, new Vector3(583.88635f, 14.587067f, 394.70508f), 137); obj85.Steps = list132; reference91 = obj85; - num++; - ref QuestSequence reference92 = ref span124[num]; + ref QuestSequence reference92 = ref span63[7]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -104380,9 +86579,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 2004317u, new Vector3(515.98376f, 9.384277f, 525.81055f), 137) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 2004317u, new Vector3(515.98376f, 9.384277f, 525.81055f), 137) { Fly = true, NextQuestId = new QuestId(1439) @@ -104396,30 +86593,24 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list134)[0] = "FalconTaterz"; questRoot19.Author = list134; - index = 5; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference93 = ref span135[num]; + num = 5; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span66 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference93 = ref span66[0]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj87.Steps = list136; reference93 = obj87; - num++; - ref QuestSequence reference94 = ref span135[num]; + ref QuestSequence reference94 = ref span66[1]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -104427,32 +86618,26 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 1009328u, new Vector3(515.0376f, 9.192075f, 524.834f), 137); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1009328u, new Vector3(515.0376f, 9.192075f, 524.834f), 137); obj88.Steps = list137; reference94 = obj88; - num++; - ref QuestSequence reference95 = ref span135[num]; + ref QuestSequence reference95 = ref span66[2]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span138[num2] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); + span67[1] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); obj89.Steps = list138; reference95 = obj89; - num++; - ref QuestSequence reference96 = ref span135[num]; + ref QuestSequence reference96 = ref span66[3]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -104460,26 +86645,21 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj90.Steps = list139; reference96 = obj90; - num++; - ref QuestSequence reference97 = ref span135[num]; + ref QuestSequence reference97 = ref span66[4]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -104494,16 +86674,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list141)[0] = "FalconTaterz"; questRoot20.Author = list141; - index = 6; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference98 = ref span142[num]; + num = 6; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span68 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference98 = ref span68[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -104511,16 +86688,12 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - ref QuestStep reference99 = ref span143[index2]; + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list143)[0]; 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); - Span span144 = CollectionsMarshal.AsSpan(list144); - num4 = 0; - span144[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB303_01440_Q1_000_010") @@ -104529,91 +86702,68 @@ public static class AssemblyQuestLoader reference99 = questStep7; obj92.Steps = list143; reference98 = obj92; - num++; - ref QuestSequence reference100 = ref span142[num]; + ref QuestSequence reference100 = ref span68[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list145 = new List(index2); - CollectionsMarshal.SetCount(list145, index2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num2 = 0; - ref QuestStep reference101 = ref span145[num2]; + num2 = 4; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + Span span69 = CollectionsMarshal.AsSpan(list145); + ref QuestStep reference101 = ref span69[0]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list146; skipConditions2.StepIf = skipStepConditions2; obj94.SkipConditions = skipConditions2; reference101 = obj94; - num2++; - ref QuestStep reference102 = ref span145[num2]; + ref QuestStep reference102 = ref span69[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list147; reference102 = questStep8; - num2++; - ref QuestStep reference103 = ref span145[num2]; + ref QuestStep reference103 = ref span69[2]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2004325u, new Vector3(-242.60321f, -38.68164f, 514.7324f), 138) { Fly = true }; - 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); + 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); obj95.CompletionQuestVariablesFlags = list148; reference103 = obj95; - num2++; - ref QuestStep reference104 = ref span145[num2]; + ref QuestStep reference104 = ref span69[3]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 2004326u, new Vector3(-291.06586f, -38.07129f, 596.765f), 138) { Fly = true @@ -104621,25 +86771,18 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - 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); + 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); obj96.CompletionQuestVariablesFlags = list149; reference104 = obj96; obj93.Steps = list145; reference100 = obj93; - num++; - ref QuestSequence reference105 = ref span142[num]; + ref QuestSequence reference105 = ref span68[2]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -104647,20 +86790,17 @@ public static class AssemblyQuestLoader num2 = 2; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - ref QuestStep reference106 = ref span150[index2]; + Span span74 = CollectionsMarshal.AsSpan(list150); + ref QuestStep reference106 = ref span74[0]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1009335u, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) { Fly = true, Comment = "Commence \"The Mandragoras\"" }; - num4 = 1; - List list151 = new List(num4); - CollectionsMarshal.SetCount(list151, num4); - Span span151 = CollectionsMarshal.AsSpan(list151); - num3 = 0; - span151[num3] = new DialogueChoice + num3 = 1; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "Addon", @@ -104669,8 +86809,7 @@ public static class AssemblyQuestLoader }; obj98.DialogueChoices = list151; reference106 = obj98; - index2++; - ref QuestStep reference107 = ref span150[index2]; + ref QuestStep reference107 = ref span74[1]; QuestStep obj99 = new QuestStep(EInteractionType.Combat, null, new Vector3(-256.70258f, -40.18569f, 684.1992f), 138) { Comment = "Fight some Mandragoras", @@ -104679,43 +86818,34 @@ public static class AssemblyQuestLoader num3 = 5; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - 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; + Span span75 = CollectionsMarshal.AsSpan(list152); + span75[0] = 2950u; + span75[1] = 2951u; + span75[2] = 2952u; + span75[3] = 2953u; + span75[4] = 2954u; obj99.KillEnemyDataIds = list152; reference107 = obj99; obj97.Steps = list150; reference105 = obj97; - num++; - ref QuestSequence reference108 = ref span142[num]; + ref QuestSequence reference108 = ref span68[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - num2++; - span153[num2] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); + span76[1] = new QuestStep(EInteractionType.Interact, 1009319u, new Vector3(581.3534f, 14.587067f, 395.8037f), 137); obj100.Steps = list153; reference108 = obj100; - num++; - ref QuestSequence reference109 = ref span142[num]; + ref QuestSequence reference109 = ref span68[4]; QuestSequence obj101 = new QuestSequence { Sequence = 4 @@ -104723,26 +86853,21 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Interact, 1009336u, new Vector3(494.49902f, 11.323204f, 210.3761f), 137) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1009336u, new Vector3(494.49902f, 11.323204f, 210.3761f), 137) { Fly = true }; obj101.Steps = list154; reference109 = obj101; - num++; - ref QuestSequence reference110 = ref span142[num]; + ref QuestSequence reference110 = ref span68[5]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, NextQuestId = new QuestId(1441) @@ -104756,16 +86881,13 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "FalconTaterz"; + CollectionsMarshal.AsSpan(list156)[0] = "FalconTaterz"; questRoot21.Author = list156; - index = 6; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference111 = ref span157[num]; + num = 6; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span77 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference111 = ref span77[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -104773,30 +86895,24 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009341u, new Vector3(-48.44745f, 75.95115f, 9.079041f), 137); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009341u, new Vector3(-48.44745f, 75.95115f, 9.079041f), 137); obj103.Steps = list158; reference111 = obj103; - num++; - ref QuestSequence reference112 = ref span157[num]; + ref QuestSequence reference112 = ref span77[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj104.Steps = list159; reference112 = obj104; - num++; - ref QuestSequence reference113 = ref span157[num]; + ref QuestSequence reference113 = ref span77[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -104804,33 +86920,27 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 1009347u, new Vector3(442.77087f, 15.823447f, 375.17358f), 137) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1009347u, new Vector3(442.77087f, 15.823447f, 375.17358f), 137) { Fly = true }; obj105.Steps = list160; reference113 = obj105; - num++; - ref QuestSequence reference114 = ref span157[num]; + ref QuestSequence reference114 = ref span77[3]; QuestSequence obj106 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj106.Steps = list161; reference114 = obj106; - num++; - ref QuestSequence reference115 = ref span157[num]; + ref QuestSequence reference115 = ref span77[4]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -104838,26 +86948,21 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.Interact, 1009345u, new Vector3(523.76587f, 17.448044f, 447.13513f), 137) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1009345u, new Vector3(523.76587f, 17.448044f, 447.13513f), 137) { Fly = true }; obj107.Steps = list162; reference115 = obj107; - num++; - ref QuestSequence reference116 = ref span157[num]; + ref QuestSequence reference116 = ref span77[5]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(166) }; @@ -104870,16 +86975,13 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span164 = CollectionsMarshal.AsSpan(list164); - index = 0; - span164[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list164)[0] = "JerryWester"; questRoot22.Author = list164; - index = 3; - List list165 = new List(index); - CollectionsMarshal.SetCount(list165, index); - Span span165 = CollectionsMarshal.AsSpan(list165); - num = 0; - ref QuestSequence reference117 = ref span165[num]; + num = 3; + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + Span span78 = CollectionsMarshal.AsSpan(list165); + ref QuestSequence reference117 = ref span78[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -104887,40 +86989,33 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj109.Steps = list166; reference117 = obj109; - num++; - ref QuestSequence reference118 = ref span165[num]; + ref QuestSequence reference118 = ref span78[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span167[num2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + span79[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - num2++; - span167[num2] = new QuestStep(EInteractionType.Interact, 1009239u, new Vector3(18.32605f, 21.252728f, -639.7345f), 156) + span79[2] = new QuestStep(EInteractionType.Interact, 1009239u, new Vector3(18.32605f, 21.252728f, -639.7345f), 156) { StopDistance = 7f }; obj110.Steps = list167; reference118 = obj110; - num++; - ref QuestSequence reference119 = ref span165[num]; + ref QuestSequence reference119 = ref span78[2]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -104928,9 +87023,7 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -104948,26 +87041,21 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; questRoot23.Author = list169; - index = 7; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference120 = ref span170[num]; + num = 7; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span80 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference120 = ref span80[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -104980,8 +87068,7 @@ public static class AssemblyQuestLoader }; obj112.Steps = list171; reference120 = obj112; - num++; - ref QuestSequence reference121 = ref span170[num]; + ref QuestSequence reference121 = ref span80[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -104989,9 +87076,7 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AethernetShortcut = new AethernetShortcut { @@ -105001,22 +87086,18 @@ public static class AssemblyQuestLoader }; obj113.Steps = list172; reference121 = obj113; - num++; - ref QuestSequence reference122 = ref span170[num]; + ref QuestSequence reference122 = ref span80[2]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj114.Steps = list173; reference122 = obj114; - num++; - ref QuestSequence reference123 = ref span170[num]; + ref QuestSequence reference123 = ref span80[3]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -105024,76 +87105,58 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - ref QuestStep reference124 = ref span174[index2]; + Span span81 = CollectionsMarshal.AsSpan(list174); + ref QuestStep reference124 = ref span81[0]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1001484u, new Vector3(93.247925f, 0.34075317f, -272.60242f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - 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); + 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); obj116.CompletionQuestVariablesFlags = list175; reference124 = obj116; - index2++; - ref QuestStep reference125 = ref span174[index2]; + ref QuestStep reference125 = ref span81[1]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list176; reference125 = questStep9; obj115.Steps = list174; reference123 = obj115; - num++; - ref QuestSequence reference126 = ref span170[num]; + ref QuestSequence reference126 = ref span80[4]; QuestSequence obj117 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span177[num2] = new QuestStep(EInteractionType.Interact, 1006359u, new Vector3(177.203f, -1f, -317.86072f), 141); + span84[1] = new QuestStep(EInteractionType.Interact, 1006359u, new Vector3(177.203f, -1f, -317.86072f), 141); obj117.Steps = list177; reference126 = obj117; - num++; - ref QuestSequence reference127 = ref span170[num]; + ref QuestSequence reference127 = ref span80[5]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -105101,23 +87164,18 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Interact, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); obj118.Steps = list178; reference127 = obj118; - num++; - ref QuestSequence reference128 = ref span170[num]; + ref QuestSequence reference128 = ref span80[6]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Emote = EEmote.Soothe }; @@ -105130,16 +87188,13 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list180)[0] = "JerryWester"; questRoot24.Author = list180; - index = 2; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference129 = ref span181[num]; + num = 2; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span85 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference129 = ref span85[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -105147,9 +87202,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -105162,18 +87215,15 @@ public static class AssemblyQuestLoader }; obj120.Steps = list182; reference129 = obj120; - num++; - ref QuestSequence reference130 = ref span181[num]; + ref QuestSequence reference130 = ref span85[1]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -105191,16 +87241,13 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - Span span184 = CollectionsMarshal.AsSpan(list184); - index = 0; - span184[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list184)[0] = "JerryWester"; questRoot25.Author = list184; - index = 2; - List list185 = new List(index); - CollectionsMarshal.SetCount(list185, index); - Span span185 = CollectionsMarshal.AsSpan(list185); - num = 0; - ref QuestSequence reference131 = ref span185[num]; + num = 2; + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span86 = CollectionsMarshal.AsSpan(list185); + ref QuestSequence reference131 = ref span86[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -105208,23 +87255,19 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009057u, new Vector3(-25.497864f, 38.010006f, 83.359985f), 131); obj122.Steps = list186; reference131 = obj122; - num++; - ref QuestSequence reference132 = ref span185[num]; + ref QuestSequence reference132 = ref span86[1]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -105236,13 +87279,11 @@ public static class AssemblyQuestLoader } } }; - num2++; - span187[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span87[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span187[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + span87[2] = new QuestStep(EInteractionType.CompleteQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj123.Steps = list187; reference132 = obj123; questRoot25.QuestSequence = list185; @@ -105252,16 +87293,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; questRoot26.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]; + num = 4; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span88 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference133 = ref span88[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -105269,30 +87307,24 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008579u, new Vector3(1.0223389f, -1.9957249f, -45.731323f), 351); obj124.Steps = list190; reference133 = obj124; - num++; - ref QuestSequence reference134 = ref span189[num]; + ref QuestSequence reference134 = ref span88[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj125.Steps = list191; reference134 = obj125; - num++; - ref QuestSequence reference135 = ref span189[num]; + ref QuestSequence reference135 = ref span88[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -105300,33 +87332,27 @@ public static class AssemblyQuestLoader num2 = 3; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.118355f, 1.308924f, 8.009593f), 132) + Span span89 = CollectionsMarshal.AsSpan(list192); + span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.118355f, 1.308924f, 8.009593f), 132) { TargetTerritoryId = (ushort)133 }; - index2++; - span192[index2] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) + span89[1] = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - index2++; - span192[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span89[2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj126.Steps = list192; reference135 = obj126; - num++; - ref QuestSequence reference136 = ref span189[num]; + ref QuestSequence reference136 = ref span88[3]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -105344,16 +87370,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -105361,9 +87384,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009097u, new Vector3(22.87323f, -3.7749445f, 211.16956f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -105376,18 +87397,16 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)205, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -105397,12 +87416,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span2[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -105410,23 +87427,19 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1009096u, new Vector3(-158.12933f, 4.1921f, -17.013855f), 133); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1009096u, new Vector3(-158.12933f, 4.1921f, -17.013855f), 133); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -105438,13 +87451,11 @@ public static class AssemblyQuestLoader } } }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span3[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span6[num2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + span3[2] = new QuestStep(EInteractionType.CompleteQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -105454,16 +87465,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; questRoot2.Author = list7; - index = 4; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 4; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span4 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span4[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -105471,32 +87479,26 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008969u, new Vector3(0.99176025f, -1.9957249f, -45.700806f), 351); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span4[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span10[num2] = new QuestStep(EInteractionType.Interact, 1008980u, new Vector3(8.712891f, 0.009977885f, -3.8911133f), 351); + span5[1] = new QuestStep(EInteractionType.Interact, 1008980u, new Vector3(8.712891f, 0.009977885f, -3.8911133f), 351); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span4[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -105504,9 +87506,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.SinglePlayerDuty, 1009282u, new Vector3(132.95178f, -2.2044632f, -556.2372f), 156) { StopDistance = 1f, @@ -105523,42 +87523,35 @@ public static class AssemblyQuestLoader int num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - int index3 = 0; - span12[index3] = 156; + CollectionsMarshal.AsSpan(list12)[0] = 156; skipAetheryteCondition.InTerritory = list12; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj8.SkipConditions = skipConditions; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span4[3]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span13[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span6[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - num2++; - span13[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span6[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span13[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + span6[3] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list8; @@ -105568,16 +87561,13 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; questRoot3.Author = list14; - index = 11; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference10 = ref span15[num]; + num = 11; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span7 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference10 = ref span7[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -105585,30 +87575,24 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span15[num]; + ref QuestSequence reference11 = ref span7[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span15[num]; + ref QuestSequence reference12 = ref span7[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -105616,9 +87600,8 @@ public static class AssemblyQuestLoader num2 = 6; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - ref QuestStep reference13 = ref span18[index2]; + Span span8 = CollectionsMarshal.AsSpan(list18); + ref QuestStep reference13 = ref span8[0]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { AethernetShortcut = new AethernetShortcut @@ -105627,47 +87610,33 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - 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); + 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); obj13.CompletionQuestVariablesFlags = list19; reference13 = obj13; - index2++; - ref QuestStep reference14 = ref span18[index2]; + ref QuestStep reference14 = ref span8[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list20; reference14 = questStep; - index2++; - ref QuestStep reference15 = ref span18[index2]; + ref QuestStep reference15 = ref span8[2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) { AethernetShortcut = new AethernetShortcut @@ -105676,82 +87645,58 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaAftcastle } }; - 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); + 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); obj14.CompletionQuestVariablesFlags = list21; reference15 = obj14; - index2++; - ref QuestStep reference16 = ref span18[index2]; + ref QuestStep reference16 = ref span8[3]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list22; reference16 = questStep2; - index2++; - span18[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.77458f, 39.99999f, 155.4174f), 128); - index2++; - ref QuestStep reference17 = ref span18[index2]; + span8[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.77458f, 39.99999f, 155.4174f), 128); + ref QuestStep reference17 = ref span8[5]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1009133u, new Vector3(-189.13562f, 41.249943f, 179.40027f), 128); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list23; reference17 = questStep3; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference18 = ref span15[num]; + ref QuestSequence reference18 = ref span7[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -105762,8 +87707,7 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span15[num]; + ref QuestSequence reference19 = ref span7[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -105771,14 +87715,12 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) + Span span14 = CollectionsMarshal.AsSpan(list25); + span14[0] = new QuestStep(EInteractionType.Interact, 1002695u, new Vector3(-25.92511f, 91.999954f, -3.6774292f), 128) { TargetTerritoryId = (ushort)132 }; - index2++; - span25[index2] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) + span14[1] = new QuestStep(EInteractionType.Interact, 1009130u, new Vector3(-157.00012f, 4f, -20.187744f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -105789,18 +87731,16 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - num++; - ref QuestSequence reference20 = ref span15[num]; + ref QuestSequence reference20 = ref span7[5]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - index2 = 4; - List list26 = new List(index2); - CollectionsMarshal.SetCount(list26, index2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num2 = 0; - ref QuestStep reference21 = ref span26[num2]; + num2 = 4; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + Span span15 = CollectionsMarshal.AsSpan(list26); + ref QuestStep reference21 = ref span15[0]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1009138u, new Vector3(-35.324707f, 7.117063f, -110.76526f), 133) { AethernetShortcut = new AethernetShortcut @@ -105812,26 +87752,18 @@ public static class AssemblyQuestLoader num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - 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); + 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); obj18.CompletionQuestVariablesFlags = list27; - index3 = 1; - List list28 = new List(index3); - CollectionsMarshal.SetCount(list28, index3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - span28[num3] = new DialogueChoice + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_GAIUSE316_01457_Q1_000_142"), @@ -105839,8 +87771,7 @@ public static class AssemblyQuestLoader }; obj18.DialogueChoices = list28; reference21 = obj18; - num2++; - ref QuestStep reference22 = ref span26[num2]; + ref QuestStep reference22 = ref span15[1]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1000248u, new Vector3(143.05322f, 14.250365f, -250.72101f), 133) { AethernetShortcut = new AethernetShortcut @@ -105852,67 +87783,46 @@ public static class AssemblyQuestLoader num3 = 6; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - 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); + 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); obj19.CompletionQuestVariablesFlags = list29; reference22 = obj19; - num2++; - ref QuestStep reference23 = ref span26[num2]; + ref QuestStep reference23 = ref span15[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1006263u, new Vector3(36.819946f, 16.351469f, -334.5846f), 133); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list30; reference23 = questStep4; - num2++; - ref QuestStep reference24 = ref span26[num2]; + ref QuestStep reference24 = ref span15[3]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list31; reference24 = questStep5; obj17.Steps = list26; reference20 = obj17; - num++; - ref QuestSequence reference25 = ref span15[num]; + ref QuestSequence reference25 = ref span7[6]; QuestSequence obj20 = new QuestSequence { Sequence = 6 @@ -105920,9 +87830,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1009131u, new Vector3(25.864014f, -19.000002f, 98.68005f), 132) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1009131u, new Vector3(25.864014f, -19.000002f, 98.68005f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -105933,32 +87841,27 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference25 = obj20; - num++; - ref QuestSequence reference26 = ref span15[num]; + ref QuestSequence reference26 = ref span7[7]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; - 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) + 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) { TargetTerritoryId = (ushort)130 }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) + span20[1] = new QuestStep(EInteractionType.Interact, 1004339u, new Vector3(-25.986206f, 81.799995f, -31.99823f), 130) { TargetTerritoryId = (ushort)131 }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131); + span20[2] = new QuestStep(EInteractionType.Interact, 1009132u, new Vector3(-5.142395f, 29.999989f, 19.272095f), 131); obj21.Steps = list33; reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span15[num]; + ref QuestSequence reference27 = ref span7[8]; QuestSequence obj22 = new QuestSequence { Sequence = 8 @@ -105966,9 +87869,8 @@ public static class AssemblyQuestLoader num2 = 5; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - ref QuestStep reference28 = ref span34[index2]; + Span span21 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference28 = ref span21[0]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1009135u, new Vector3(-89.3111f, 7.008094f, -10.025269f), 131) { AethernetShortcut = new AethernetShortcut @@ -105977,26 +87879,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - 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); + 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); obj23.CompletionQuestVariablesFlags = list35; reference28 = obj23; - index2++; - ref QuestStep reference29 = ref span34[index2]; + ref QuestStep reference29 = ref span21[1]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1009136u, new Vector3(65.35437f, 14.005002f, 102.46423f), 131) { AethernetShortcut = new AethernetShortcut @@ -106008,44 +87903,30 @@ public static class AssemblyQuestLoader num3 = 6; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - 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); + 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); obj24.CompletionQuestVariablesFlags = list36; reference29 = obj24; - index2++; - ref QuestStep reference30 = ref span34[index2]; + ref QuestStep reference30 = ref span21[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001691u, new Vector3(142.16821f, 7.4920034f, 104.72266f), 131); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list37; reference30 = questStep6; - index2++; - ref QuestStep reference31 = ref span34[index2]; + ref QuestStep reference31 = ref span21[3]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1001679u, new Vector3(140.48975f, 4.0099983f, -59.80017f), 131) { AethernetShortcut = new AethernetShortcut @@ -106057,37 +87938,27 @@ public static class AssemblyQuestLoader num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - 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); + 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); obj25.CompletionQuestVariablesFlags = list38; reference31 = obj25; - index2++; - span34[index2] = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131); + span21[4] = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131); obj22.Steps = list34; reference27 = obj22; - num++; - ref QuestSequence reference32 = ref span15[num]; + ref QuestSequence reference32 = ref span7[9]; QuestSequence obj26 = new QuestSequence { Sequence = 9 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -106097,8 +87968,7 @@ public static class AssemblyQuestLoader }; obj26.Steps = list39; reference32 = obj26; - num++; - ref QuestSequence reference33 = ref span15[num]; + ref QuestSequence reference33 = ref span7[10]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -106106,20 +87976,17 @@ public static class AssemblyQuestLoader num2 = 3; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span26 = CollectionsMarshal.AsSpan(list40); + span26[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span40[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span26[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); + span26[2] = new QuestStep(EInteractionType.CompleteQuest, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351); obj27.Steps = list40; reference33 = obj27; questRoot3.QuestSequence = list15; @@ -106129,33 +87996,27 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list41)[0] = "JerryWester"; questRoot4.Author = list41; - index = 3; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference34 = ref span42[num]; + num = 3; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span27 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference34 = ref span27[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj28.Steps = list43; reference34 = obj28; - num++; - ref QuestSequence reference35 = ref span42[num]; + ref QuestSequence reference35 = ref span27[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -106163,39 +88024,33 @@ public static class AssemblyQuestLoader num2 = 3; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span28 = CollectionsMarshal.AsSpan(list44); + span28[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span44[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + span28[1] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span44[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); + span28[2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156); obj29.Steps = list44; reference35 = obj29; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span27[2]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span45[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj30.Steps = list45; reference36 = obj30; questRoot4.QuestSequence = list42; @@ -106205,16 +88060,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; questRoot5.Author = list46; - index = 9; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference37 = ref span47[num]; + num = 9; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span30 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference37 = ref span30[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -106222,9 +88074,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -106237,32 +88087,27 @@ public static class AssemblyQuestLoader }; obj31.Steps = list48; reference37 = obj31; - num++; - ref QuestSequence reference38 = ref span47[num]; + ref QuestSequence reference38 = ref span30[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span49[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6362f, 266.62988f, -205.92511f), 155) + span31[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6362f, 266.62988f, -205.92511f), 155) { Fly = true }; - num2++; - span49[num2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + span31[2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj32.Steps = list49; reference38 = obj32; - num++; - ref QuestSequence reference39 = ref span47[num]; + ref QuestSequence reference39 = ref span30[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -106270,63 +88115,53 @@ public static class AssemblyQuestLoader num2 = 4; 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(-431.37878f, 259.79306f, -194.97882f), 155) + Span span32 = CollectionsMarshal.AsSpan(list50); + span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.37878f, 259.79306f, -194.97882f), 155) { Fly = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) + span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.87833f, 266.9849f, -205.68484f), 155) { Fly = false }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.45197f, 217.99948f, -296.54102f), 155) + span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-429.45197f, 217.99948f, -296.54102f), 155) { Fly = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.Interact, 1009081u, new Vector3(-413.93152f, 224.99988f, -298.2987f), 155); + span32[3] = new QuestStep(EInteractionType.Interact, 1009081u, new Vector3(-413.93152f, 224.99988f, -298.2987f), 155); obj33.Steps = list50; reference39 = obj33; - num++; - ref QuestSequence reference40 = ref span47[num]; + ref QuestSequence reference40 = ref span30[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; - num2++; - ref QuestStep reference41 = ref span51[num2]; + ref QuestStep reference41 = ref span33[1]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.3538f, 224.22969f, -31.912737f), 155) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + Span span34 = CollectionsMarshal.AsSpan(list52); + span34[0] = 3119u; + span34[1] = 3120u; obj35.KillEnemyDataIds = list52; reference41 = obj35; obj34.Steps = list51; reference40 = obj34; - num++; - ref QuestSequence reference42 = ref span47[num]; + ref QuestSequence reference42 = ref span30[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -106334,30 +88169,24 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1009087u, new Vector3(-868.13153f, 226.16986f, 8.132996f), 155) { Fly = true }; obj36.Steps = list53; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span47[num]; + ref QuestSequence reference43 = ref span30[5]; QuestSequence obj37 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj37.Steps = list54; reference43 = obj37; - num++; - ref QuestSequence reference44 = ref span47[num]; + ref QuestSequence reference44 = ref span30[6]; QuestSequence obj38 = new QuestSequence { Sequence = 6 @@ -106365,38 +88194,32 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.42563f, 265.09998f, -211.80003f), 155) + Span span35 = CollectionsMarshal.AsSpan(list55); + span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.42563f, 265.09998f, -211.80003f), 155) { Fly = true }; - index2++; - span55[index2] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); + span35[1] = new QuestStep(EInteractionType.Interact, 1006444u, new Vector3(-432.9748f, 233.47266f, -199.6643f), 155); obj38.Steps = list55; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span47[num]; + ref QuestSequence reference45 = ref span30[7]; QuestSequence obj39 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span56[num2] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); + span36[1] = new QuestStep(EInteractionType.Interact, 1006384u, new Vector3(263.5996f, 303.1f, -199.96954f), 155); obj39.Steps = list56; reference45 = obj39; - num++; - ref QuestSequence reference46 = ref span47[num]; + ref QuestSequence reference46 = ref span30[8]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -106404,9 +88227,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -106419,26 +88240,21 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; questRoot6.Author = list58; - index = 5; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference47 = ref span59[num]; + num = 5; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span37 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference47 = ref span37[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -106451,8 +88267,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference47 = obj41; - num++; - ref QuestSequence reference48 = ref span59[num]; + ref QuestSequence reference48 = ref span37[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -106460,9 +88275,8 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span38 = CollectionsMarshal.AsSpan(list61); + span38[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -106474,22 +88288,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span61[index2] = new QuestStep(EInteractionType.Interact, 1008997u, new Vector3(-5.8442383f, 0.51025796f, -9.628479f), 351); + span38[1] = new QuestStep(EInteractionType.Interact, 1008997u, new Vector3(-5.8442383f, 0.51025796f, -9.628479f), 351); obj42.Steps = list61; reference48 = obj42; - num++; - ref QuestSequence reference49 = ref span59[num]; + ref QuestSequence reference49 = ref span37[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - index2 = 12; - List list62 = new List(index2); - CollectionsMarshal.SetCount(list62, index2); - Span span62 = CollectionsMarshal.AsSpan(list62); - num2 = 0; - ref QuestStep reference50 = ref span62[num2]; + num2 = 12; + List list62 = new List(num2); + CollectionsMarshal.SetCount(list62, num2); + Span span39 = CollectionsMarshal.AsSpan(list62); + ref QuestStep reference50 = ref span39[0]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 @@ -106499,46 +88310,32 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list63; skipConditions2.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions2; reference50 = obj44; - num2++; - ref QuestStep reference51 = ref span62[num2]; + ref QuestStep reference51 = ref span39[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1009147u, new Vector3(41.153564f, 20.495003f, -650.44635f), 156); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list64; reference51 = questStep7; - num2++; - ref QuestStep reference52 = ref span62[num2]; + ref QuestStep reference52 = ref span39[2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.662384f, 28.34813f, -627.5218f), 156) { Fly = true @@ -106548,46 +88345,32 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions3.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions3; reference52 = obj45; - num2++; - ref QuestStep reference53 = ref span62[num2]; + ref QuestStep reference53 = ref span39[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1009143u, new Vector3(86.778076f, 28.34813f, -625.94037f), 156); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list66; reference53 = questStep8; - num2++; - ref QuestStep reference54 = ref span62[num2]; + ref QuestStep reference54 = ref span39[4]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1009148u, new Vector3(71.091675f, 33.06652f, -698.3597f), 156) { Fly = true @@ -106595,47 +88378,33 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - 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); + 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); obj46.CompletionQuestVariablesFlags = list67; reference54 = obj46; - num2++; - ref QuestStep reference55 = ref span62[num2]; + ref QuestStep reference55 = ref span39[5]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1009145u, new Vector3(55.832764f, 25.5776f, -703.6698f), 156) { Fly = true }; - 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); + 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); obj47.CompletionQuestVariablesFlags = list68; reference55 = obj47; - num2++; - ref QuestStep reference56 = ref span62[num2]; + ref QuestStep reference56 = ref span39[6]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1009146u, new Vector3(47.80652f, 31.164318f, -744.9912f), 156) { StopDistance = 0.5f, @@ -106644,101 +88413,71 @@ public static class AssemblyQuestLoader num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - 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); + 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); obj48.CompletionQuestVariablesFlags = list69; reference56 = obj48; - num2++; - ref QuestStep reference57 = ref span62[num2]; + ref QuestStep reference57 = ref span39[7]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1009142u, new Vector3(22.384888f, 29.024387f, -735.4696f), 156) { Mount = true }; - 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); + 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); obj49.CompletionQuestVariablesFlags = list70; reference57 = obj49; - num2++; - span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(20.33117f, 32.412514f, -710.2311f), 156) + span39[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(20.33117f, 32.412514f, -710.2311f), 156) { Fly = true }; - num2++; - ref QuestStep reference58 = ref span62[num2]; + ref QuestStep reference58 = ref span39[9]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list71; reference58 = questStep9; - num2++; - span62[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.0689f, 28.620823f, -687.8293f), 156) + span39[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(19.0689f, 28.620823f, -687.8293f), 156) { Fly = true }; - num2++; - ref QuestStep reference59 = ref span62[num2]; + ref QuestStep reference59 = ref span39[11]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1009144u, new Vector3(20.61493f, 28.620823f, -688.38025f), 156); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list72; reference59 = questStep10; obj43.Steps = list62; reference49 = obj43; - num++; - ref QuestSequence reference60 = ref span59[num]; + ref QuestSequence reference60 = ref span37[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -106746,41 +88485,34 @@ public static class AssemblyQuestLoader num2 = 4; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + Span span50 = CollectionsMarshal.AsSpan(list73); + span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Fly = true }; - index2++; - span73[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span50[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - index2++; - span73[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span50[2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span73[index2] = new QuestStep(EInteractionType.Interact, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351) + span50[3] = new QuestStep(EInteractionType.Interact, 1009021u, new Vector3(2.9144287f, -1.9957249f, -42.130188f), 351) { StopDistance = 7f }; obj50.Steps = list73; reference60 = obj50; - num++; - ref QuestSequence reference61 = ref span59[num]; + ref QuestSequence reference61 = ref span37[4]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -106793,16 +88525,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list75)[0] = "WigglyMuffin"; questRoot7.Author = list75; - index = 2; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference62 = ref span76[num]; + num = 2; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span51 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference62 = ref span51[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -106810,9 +88539,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -106825,18 +88552,15 @@ public static class AssemblyQuestLoader }; obj52.Steps = list77; reference62 = obj52; - num++; - ref QuestSequence reference63 = ref span76[num]; + ref QuestSequence reference63 = ref span51[1]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj53.Steps = list78; reference63 = obj53; questRoot7.QuestSequence = list76; @@ -106846,18 +88570,15 @@ public static class AssemblyQuestLoader num = 2; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "JerryWester"; - index++; - span79[index] = "Wigglez"; + Span span52 = CollectionsMarshal.AsSpan(list79); + span52[0] = "JerryWester"; + span52[1] = "Wigglez"; questRoot8.Author = list79; - index = 6; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference64 = ref span80[num]; + num = 6; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span53 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference64 = ref span53[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -106865,9 +88586,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -106880,43 +88599,36 @@ public static class AssemblyQuestLoader }; obj54.Steps = list81; reference64 = obj54; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span53[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) + span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.9147f, -1.2399623f, -260.11197f), 156) { Fly = true }; - num2++; - span82[num2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + span54[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { DelaySecondsAtStart = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num2++; - span82[num2] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) + span54[3] = new QuestStep(EInteractionType.Interact, 2002927u, new Vector3(572.3506f, -0.045776367f, -260.51727f), 156) { TargetTerritoryId = (ushort)156 }; - num2++; - span82[num2] = new QuestStep(EInteractionType.Interact, 1009372u, new Vector3(640.1312f, -1.08248f, -137.59064f), 156); + span54[4] = new QuestStep(EInteractionType.Interact, 1009372u, new Vector3(640.1312f, -1.08248f, -137.59064f), 156); obj55.Steps = list82; reference65 = obj55; - num++; - ref QuestSequence reference66 = ref span80[num]; + ref QuestSequence reference66 = ref span53[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -106924,33 +88636,27 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1009374u, new Vector3(734.15735f, 15.330521f, -55.832825f), 156) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1009374u, new Vector3(734.15735f, 15.330521f, -55.832825f), 156) { StopDistance = 7f }; obj56.Steps = list83; reference66 = obj56; - num++; - ref QuestSequence reference67 = ref span80[num]; + ref QuestSequence reference67 = ref span53[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj57.Steps = list84; reference67 = obj57; - num++; - ref QuestSequence reference68 = ref span80[num]; + ref QuestSequence reference68 = ref span53[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -106958,9 +88664,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Duty, null, null, 156) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Duty, null, null, 156) { DutyOptions = new DutyOptions { @@ -106970,24 +88674,21 @@ public static class AssemblyQuestLoader }; obj58.Steps = list85; reference68 = obj58; - num++; - ref QuestSequence reference69 = ref span80[num]; + ref QuestSequence reference69 = ref span53[5]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(494) }; @@ -107000,16 +88701,13 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = "liza"; + CollectionsMarshal.AsSpan(list87)[0] = "liza"; questRoot9.Author = list87; - index = 9; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref QuestSequence reference70 = ref span88[num]; + num = 9; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + Span span56 = CollectionsMarshal.AsSpan(list88); + ref QuestSequence reference70 = ref span56[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -107017,9 +88715,8 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref QuestStep reference71 = ref span89[index2]; + Span span57 = CollectionsMarshal.AsSpan(list89); + ref QuestStep reference71 = ref span57[0]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, @@ -107035,43 +88732,36 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span90 = CollectionsMarshal.AsSpan(list90); - index3 = 0; - span90[index3] = 433; + CollectionsMarshal.AsSpan(list90)[0] = 433; skipStepConditions3.InTerritory = list90; skipConditions4.StepIf = skipStepConditions3; SkipAetheryteCondition obj62 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; + num3 = 2; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + Span span58 = CollectionsMarshal.AsSpan(list91); + span58[0] = 419; + span58[1] = 433; obj62.InTerritory = list91; skipConditions4.AetheryteShortcutIf = obj62; obj61.SkipConditions = skipConditions4; reference71 = obj61; - index2++; - span89[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012337u, new Vector3(-5.874817f, -9.313226E-10f, -5.783203f), 433); + span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1012337u, new Vector3(-5.874817f, -9.313226E-10f, -5.783203f), 433); obj60.Steps = list89; reference70 = obj60; - num++; - ref QuestSequence reference72 = ref span88[num]; + ref QuestSequence reference72 = ref span56[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list92 = new List(index2); - CollectionsMarshal.SetCount(list92, index2); - Span span92 = CollectionsMarshal.AsSpan(list92); - num2 = 0; - ref QuestStep reference73 = ref span92[num2]; + num2 = 2; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + Span span59 = CollectionsMarshal.AsSpan(list92); + ref QuestStep reference73 = ref span59[0]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 @@ -107081,15 +88771,12 @@ public static class AssemblyQuestLoader num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = 419; + CollectionsMarshal.AsSpan(list93)[0] = 419; skipStepConditions4.InTerritory = list93; skipConditions5.StepIf = skipStepConditions4; obj64.SkipConditions = skipConditions5; reference73 = obj64; - num2++; - span92[num2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + span59[1] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -107099,8 +88786,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list92; reference72 = obj63; - num++; - ref QuestSequence reference74 = ref span88[num]; + ref QuestSequence reference74 = ref span56[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -107108,9 +88794,7 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -107120,26 +88804,22 @@ public static class AssemblyQuestLoader }; obj65.Steps = list94; reference74 = obj65; - num++; - ref QuestSequence reference75 = ref span88[num]; + ref QuestSequence reference75 = ref span56[3]; QuestSequence obj66 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj66.Steps = list95; reference75 = obj66; - num++; - ref QuestSequence reference76 = ref span88[num]; + ref QuestSequence reference76 = ref span56[4]; QuestSequence obj67 = new QuestSequence { Sequence = 4 @@ -107147,27 +88827,22 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj67.Steps = list96; reference76 = obj67; - num++; - ref QuestSequence reference77 = ref span88[num]; + ref QuestSequence reference77 = ref span56[5]; QuestSequence obj68 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -107178,8 +88853,7 @@ public static class AssemblyQuestLoader }; obj68.Steps = list97; reference77 = obj68; - num++; - ref QuestSequence reference78 = ref span88[num]; + ref QuestSequence reference78 = ref span56[6]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -107187,31 +88861,25 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Interact, 2007018u, new Vector3(23.025818f, 27.939209f, -145.73895f), 419); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 2007018u, new Vector3(23.025818f, 27.939209f, -145.73895f), 419); obj69.Steps = list98; reference78 = obj69; - num++; - ref QuestSequence reference79 = ref span88[num]; + ref QuestSequence reference79 = ref span56[7]; QuestSequence obj70 = new QuestSequence { Sequence = 7 }; - 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) + 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) { TargetTerritoryId = (ushort)198, AetheryteShortcut = EAetheryteLocation.Limsa }; obj70.Steps = list99; reference79 = obj70; - num++; - ref QuestSequence reference80 = ref span88[num]; + ref QuestSequence reference80 = ref span56[8]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -107219,15 +88887,13 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.714342f, 50.98988f, -779.1884f), 156) + Span span60 = CollectionsMarshal.AsSpan(list100); + span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(25.714342f, 50.98988f, -779.1884f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span100[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) + span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1016809u, new Vector3(29.861816f, 50.99997f, -818.2651f), 156) { NextQuestId = new QuestId(1476) }; @@ -107240,26 +88906,21 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot10.Author = list101; - index = 6; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference81 = ref span102[num]; + num = 6; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span61 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference81 = ref span61[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -107272,8 +88933,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list103; reference81 = obj72; - num++; - ref QuestSequence reference82 = ref span102[num]; + ref QuestSequence reference82 = ref span61[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -107281,36 +88941,30 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + Span span62 = CollectionsMarshal.AsSpan(list104); + span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - index2++; - span104[index2] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + span62[1] = new QuestStep(EInteractionType.Interact, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj73.Steps = list104; reference82 = obj73; - num++; - ref QuestSequence reference83 = ref span102[num]; + ref QuestSequence reference83 = ref span61[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj74.Steps = list105; reference83 = obj74; - num++; - ref QuestSequence reference84 = ref span102[num]; + ref QuestSequence reference84 = ref span61[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -107318,50 +88972,42 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + Span span63 = CollectionsMarshal.AsSpan(list106); + span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { Mount = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.Interact, 1017119u, new Vector3(450.7362f, 157.40831f, -545.0675f), 397); + span63[2] = new QuestStep(EInteractionType.Interact, 1017119u, new Vector3(450.7362f, 157.40831f, -545.0675f), 397); obj75.Steps = list106; reference84 = obj75; - num++; - ref QuestSequence reference85 = ref span102[num]; + ref QuestSequence reference85 = ref span61[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Mount = true }; - num2++; - span107[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + span64[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { DisableNavmesh = true }; - num2++; - span107[num2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + span64[2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true }; obj76.Steps = list107; reference85 = obj76; - num++; - ref QuestSequence reference86 = ref span102[num]; + ref QuestSequence reference86 = ref span61[5]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -107369,9 +89015,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1477) @@ -107385,26 +89029,21 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot11.Author = list109; - index = 7; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference87 = ref span110[num]; + num = 7; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span65 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference87 = ref span65[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -107417,8 +89056,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list111; reference87 = obj78; - num++; - ref QuestSequence reference88 = ref span110[num]; + ref QuestSequence reference88 = ref span65[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -107426,39 +89064,33 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(470.88556f, -51.141403f, 36.143986f), 398) + Span span66 = CollectionsMarshal.AsSpan(list112); + span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(470.88556f, -51.141403f, 36.143986f), 398) { Mount = true }; - index2++; - span112[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + span66[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj79.Steps = list112; reference88 = obj79; - num++; - ref QuestSequence reference89 = ref span110[num]; + ref QuestSequence reference89 = ref span65[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj80.Steps = list113; reference89 = obj80; - num++; - ref QuestSequence reference90 = ref span110[num]; + ref QuestSequence reference90 = ref span65[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -107466,39 +89098,33 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span67 = CollectionsMarshal.AsSpan(list114); + span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true }; - index2++; - span114[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + span67[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, IgnoreDistanceToObject = true }; obj81.Steps = list114; reference90 = obj81; - num++; - ref QuestSequence reference91 = ref span110[num]; + ref QuestSequence reference91 = ref span65[4]; QuestSequence obj82 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj82.Steps = list115; reference91 = obj82; - num++; - ref QuestSequence reference92 = ref span110[num]; + ref QuestSequence reference92 = ref span65[5]; QuestSequence obj83 = new QuestSequence { Sequence = 5 @@ -107506,9 +89132,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.Interact, 2007020u, new Vector3(-6.2714844f, 30.014404f, 23.453125f), 131) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 2007020u, new Vector3(-6.2714844f, 30.014404f, 23.453125f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -107519,18 +89143,15 @@ public static class AssemblyQuestLoader }; obj83.Steps = list116; reference92 = obj83; - num++; - ref QuestSequence reference93 = ref span110[num]; + ref QuestSequence reference93 = ref span65[6]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1478) }; @@ -107543,16 +89164,13 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot12.Author = list118; - index = 8; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference94 = ref span119[num]; + num = 8; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span68 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference94 = ref span68[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -107560,30 +89178,24 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131); + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017123u, new Vector3(12.924377f, 33.999996f, -39.32251f), 131); obj85.Steps = list120; reference94 = obj85; - num++; - ref QuestSequence reference95 = ref span119[num]; + ref QuestSequence reference95 = ref span68[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj86.Steps = list121; reference95 = obj86; - num++; - ref QuestSequence reference96 = ref span119[num]; + ref QuestSequence reference96 = ref span68[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -107591,9 +89203,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 2007061u, new Vector3(-158.22083f, 17.04425f, -55.13086f), 418) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 2007061u, new Vector3(-158.22083f, 17.04425f, -55.13086f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -107604,26 +89214,22 @@ public static class AssemblyQuestLoader }; obj87.Steps = list122; reference96 = obj87; - num++; - ref QuestSequence reference97 = ref span119[num]; + ref QuestSequence reference97 = ref span68[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj88.Steps = list123; reference97 = obj88; - num++; - ref QuestSequence reference98 = ref span119[num]; + ref QuestSequence reference98 = ref span68[4]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -107631,9 +89237,7 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -107644,25 +89248,21 @@ public static class AssemblyQuestLoader }; obj89.Steps = list124; reference98 = obj89; - num++; - ref QuestSequence reference99 = ref span119[num]; + ref QuestSequence reference99 = ref span68[5]; QuestSequence obj90 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj90.Steps = list125; reference99 = obj90; - num++; - ref QuestSequence reference100 = ref span119[num]; + ref QuestSequence reference100 = ref span68[6]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -107670,9 +89270,7 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -107683,18 +89281,15 @@ public static class AssemblyQuestLoader }; obj91.Steps = list126; reference100 = obj91; - num++; - ref QuestSequence reference101 = ref span119[num]; + ref QuestSequence reference101 = ref span68[7]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(1479) @@ -107708,16 +89303,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot13.Author = list128; - index = 7; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference102 = ref span129[num]; + num = 7; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span69 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference102 = ref span69[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -107725,23 +89317,19 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj93.Steps = list130; reference102 = obj93; - num++; - ref QuestSequence reference103 = ref span129[num]; + ref QuestSequence reference103 = ref span69[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)463, Fly = true, @@ -107751,12 +89339,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IdyllshirePrologueGate } }; - num2++; - span131[num2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + span70[1] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj94.Steps = list131; reference103 = obj94; - num++; - ref QuestSequence reference104 = ref span129[num]; + ref QuestSequence reference104 = ref span69[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -107764,31 +89350,25 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Interact, 2007063u, new Vector3(-867.3381f, -184.31378f, -661.0056f), 402) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 2007063u, new Vector3(-867.3381f, -184.31378f, -661.0056f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj95.Steps = list132; reference104 = obj95; - num++; - ref QuestSequence reference105 = ref span129[num]; + ref QuestSequence reference105 = ref span69[3]; QuestSequence obj96 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj96.Steps = list133; reference105 = obj96; - num++; - ref QuestSequence reference106 = ref span129[num]; + ref QuestSequence reference106 = ref span69[4]; QuestSequence obj97 = new QuestSequence { Sequence = 4 @@ -107796,33 +89376,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 2007064u, new Vector3(-696.0708f, -37.094727f, 432.33386f), 402) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2007064u, new Vector3(-696.0708f, -37.094727f, 432.33386f), 402) { Fly = true }; obj97.Steps = list134; reference106 = obj97; - num++; - ref QuestSequence reference107 = ref span129[num]; + ref QuestSequence reference107 = ref span69[5]; QuestSequence obj98 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj98.Steps = list135; reference107 = obj98; - num++; - ref QuestSequence reference108 = ref span129[num]; + ref QuestSequence reference108 = ref span69[6]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -107830,15 +89404,13 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(174.36705f, 393.17496f, -569.3414f), 155) + Span span71 = CollectionsMarshal.AsSpan(list136); + span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(174.36705f, 393.17496f, -569.3414f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span136[index2] = new QuestStep(EInteractionType.CompleteQuest, 2007066u, new Vector3(50.339478f, 374.47156f, -676.5088f), 155) + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 2007066u, new Vector3(50.339478f, 374.47156f, -676.5088f), 155) { Fly = true }; @@ -107851,26 +89423,21 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "liza"; + CollectionsMarshal.AsSpan(list137)[0] = "liza"; questRoot14.Author = list137; - index = 3; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference109 = ref span138[num]; + num = 3; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span72 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference109 = ref span72[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -107883,8 +89450,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list139; reference109 = obj100; - num++; - ref QuestSequence reference110 = ref span138[num]; + ref QuestSequence reference110 = ref span72[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -107892,9 +89458,7 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Duty, null, null, 478) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Duty, null, null, 478) { DutyOptions = new DutyOptions { @@ -107903,18 +89467,15 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference110 = obj101; - num++; - ref QuestSequence reference111 = ref span138[num]; + ref QuestSequence reference111 = ref span72[2]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -107934,16 +89495,13 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "liza"; + CollectionsMarshal.AsSpan(list142)[0] = "liza"; questRoot15.Author = list142; - index = 2; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference112 = ref span143[num]; + num = 2; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span73 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference112 = ref span73[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -107951,9 +89509,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006550u, new Vector3(449.33228f, -12.436822f, -387.5639f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -107967,28 +89523,23 @@ public static class AssemblyQuestLoader }; obj103.Steps = list144; reference112 = obj103; - num++; - ref QuestSequence reference113 = ref span143[num]; + ref QuestSequence reference113 = ref span73[1]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list145 = new List(index2); - CollectionsMarshal.SetCount(list145, index2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num2 = 0; - ref QuestStep reference114 = ref span145[num2]; + num2 = 1; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list145)[0]; QuestStep obj105 = new QuestStep(EInteractionType.CompleteQuest, 1003596u, new Vector3(-41.428284f, 20f, -5.661133f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - index3 = 1; - List list146 = new List(index3); - CollectionsMarshal.SetCount(list146, index3); - Span span146 = CollectionsMarshal.AsSpan(list146); - num3 = 0; - span146[num3] = new DialogueChoice + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBPST000_01481_Q1_000_000"), @@ -108006,16 +89557,13 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span147 = CollectionsMarshal.AsSpan(list147); - index = 0; - span147[index] = "liza"; + CollectionsMarshal.AsSpan(list147)[0] = "liza"; questRoot16.Author = list147; - index = 6; - List list148 = new List(index); - CollectionsMarshal.SetCount(list148, index); - Span span148 = CollectionsMarshal.AsSpan(list148); - num = 0; - ref QuestSequence reference115 = ref span148[num]; + num = 6; + List list148 = new List(num); + CollectionsMarshal.SetCount(list148, num); + Span span74 = CollectionsMarshal.AsSpan(list148); + ref QuestSequence reference115 = ref span74[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -108023,9 +89571,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -108038,18 +89584,15 @@ public static class AssemblyQuestLoader }; obj106.Steps = list149; reference115 = obj106; - num++; - ref QuestSequence reference116 = ref span148[num]; + ref QuestSequence reference116 = ref span74[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -108060,8 +89603,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list150; reference116 = obj107; - num++; - ref QuestSequence reference117 = ref span148[num]; + ref QuestSequence reference117 = ref span74[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -108069,51 +89611,36 @@ public static class AssemblyQuestLoader num2 = 4; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - ref QuestStep reference118 = ref span151[index2]; + Span span75 = CollectionsMarshal.AsSpan(list151); + ref QuestStep reference118 = ref span75[0]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list152; reference118 = questStep11; - index2++; - ref QuestStep reference119 = ref span151[index2]; + ref QuestStep reference119 = ref span75[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2004267u, new Vector3(-67.216064f, -3.4332886f, 35.26355f), 132); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list153; reference119 = questStep12; - index2++; - ref QuestStep reference120 = ref span151[index2]; + ref QuestStep reference120 = ref span75[2]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 2004269u, new Vector3(-141.2528f, 7.827881f, -190.53949f), 133) { AethernetShortcut = new AethernetShortcut @@ -108125,23 +89652,16 @@ public static class AssemblyQuestLoader num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - 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); + 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); obj109.CompletionQuestVariablesFlags = list154; reference120 = obj109; - index2++; - ref QuestStep reference121 = ref span151[index2]; + ref QuestStep reference121 = ref span75[3]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 2004268u, new Vector3(123.91846f, 14.145081f, -275.83734f), 133) { AethernetShortcut = new AethernetShortcut @@ -108150,38 +89670,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - 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); + 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); obj110.CompletionQuestVariablesFlags = list155; reference121 = obj110; obj108.Steps = list151; reference117 = obj108; - num++; - ref QuestSequence reference122 = ref span148[num]; + ref QuestSequence reference122 = ref span74[3]; QuestSequence obj111 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -108191,8 +89702,7 @@ public static class AssemblyQuestLoader }; obj111.Steps = list156; reference122 = obj111; - num++; - ref QuestSequence reference123 = ref span148[num]; + ref QuestSequence reference123 = ref span74[4]; QuestSequence obj112 = new QuestSequence { Sequence = 4 @@ -108200,9 +89710,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.Interact, 2004270u, new Vector3(7.1869507f, 4.7455444f, -262.98932f), 148) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 2004270u, new Vector3(7.1869507f, 4.7455444f, -262.98932f), 148) { StopDistance = 1f, Fly = true, @@ -108214,18 +89722,15 @@ public static class AssemblyQuestLoader }; obj112.Steps = list157; reference123 = obj112; - num++; - ref QuestSequence reference124 = ref span148[num]; + ref QuestSequence reference124 = ref span74[5]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -108244,16 +89749,13 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - Span span159 = CollectionsMarshal.AsSpan(list159); - index = 0; - span159[index] = "liza"; + CollectionsMarshal.AsSpan(list159)[0] = "liza"; questRoot17.Author = list159; - index = 11; - List list160 = new List(index); - CollectionsMarshal.SetCount(list160, index); - Span span160 = CollectionsMarshal.AsSpan(list160); - num = 0; - ref QuestSequence reference125 = ref span160[num]; + num = 11; + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + Span span80 = CollectionsMarshal.AsSpan(list160); + ref QuestSequence reference125 = ref span80[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -108261,9 +89763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -108276,18 +89776,16 @@ public static class AssemblyQuestLoader }; obj114.Steps = list161; reference125 = obj114; - num++; - ref QuestSequence reference126 = ref span160[num]; + ref QuestSequence reference126 = ref span80[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num2 = 0; - ref QuestStep reference127 = ref span162[num2]; + num2 = 2; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + Span span81 = CollectionsMarshal.AsSpan(list162); + ref QuestStep reference127 = ref span81[0]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1003611u, new Vector3(9.781006f, 20.999247f, 15.0911255f), 129) { TargetTerritoryId = (ushort)128 @@ -108295,9 +89793,7 @@ public static class AssemblyQuestLoader num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span163 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span163[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Warp", @@ -108305,15 +89801,12 @@ public static class AssemblyQuestLoader }; obj116.DialogueChoices = list163; reference127 = obj116; - num2++; - ref QuestStep reference128 = ref span162[num2]; + ref QuestStep reference128 = ref span81[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1000972u, new Vector3(20.279175f, 40.19993f, -6.1189575f), 128); - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new DialogueChoice + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBPST002_01483_Q1_000_000") @@ -108322,8 +89815,7 @@ public static class AssemblyQuestLoader reference128 = questStep13; obj115.Steps = list162; reference126 = obj115; - num++; - ref QuestSequence reference129 = ref span160[num]; + ref QuestSequence reference129 = ref span80[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -108331,23 +89823,18 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1003601u, new Vector3(-3.2807007f, 39.51757f, -9.414856f), 128); obj117.Steps = list165; reference129 = obj117; - num++; - ref QuestSequence reference130 = ref span160[num]; + ref QuestSequence reference130 = ref span80[3]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -108358,8 +89845,7 @@ public static class AssemblyQuestLoader }; obj118.Steps = list166; reference130 = obj118; - num++; - ref QuestSequence reference131 = ref span160[num]; + ref QuestSequence reference131 = ref span80[4]; QuestSequence obj119 = new QuestSequence { Sequence = 4 @@ -108367,33 +89853,27 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.UseItem, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.UseItem, 1009183u, new Vector3(-63.21814f, 43.589653f, 48.447266f), 134) { ItemId = 2001324u }; obj119.Steps = list167; reference131 = obj119; - num++; - ref QuestSequence reference132 = ref span160[num]; + ref QuestSequence reference132 = ref span80[5]; QuestSequence obj120 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj120.Steps = list168; reference132 = obj120; - num++; - ref QuestSequence reference133 = ref span160[num]; + ref QuestSequence reference133 = ref span80[6]; QuestSequence obj121 = new QuestSequence { Sequence = 6 @@ -108401,30 +89881,24 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.86037f, -222.43079f), 134) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1002626u, new Vector3(207.2633f, 112.86037f, -222.43079f), 134) { AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj121.Steps = list169; reference133 = obj121; - num++; - ref QuestSequence reference134 = ref span160[num]; + ref QuestSequence reference134 = ref span80[7]; QuestSequence obj122 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj122.Steps = list170; reference134 = obj122; - num++; - ref QuestSequence reference135 = ref span160[num]; + ref QuestSequence reference135 = ref span80[8]; QuestSequence obj123 = new QuestSequence { Sequence = 8 @@ -108432,9 +89906,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.Interact, 1009184u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1009184u, new Vector3(-22.171448f, 42.442753f, 128.67932f), 134) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -108445,18 +89917,15 @@ public static class AssemblyQuestLoader }; obj123.Steps = list171; reference135 = obj123; - num++; - ref QuestSequence reference136 = ref span160[num]; + ref QuestSequence reference136 = ref span80[9]; QuestSequence obj124 = new QuestSequence { Sequence = 9 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -108467,8 +89936,7 @@ public static class AssemblyQuestLoader }; obj124.Steps = list172; reference136 = obj124; - num++; - ref QuestSequence reference137 = ref span160[num]; + ref QuestSequence reference137 = ref span80[10]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -108476,14 +89944,12 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + Span span82 = CollectionsMarshal.AsSpan(list173); + span82[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - index2++; - span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { NextQuestId = new QuestId(1482) }; @@ -108496,26 +89962,21 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - Span span174 = CollectionsMarshal.AsSpan(list174); - index = 0; - span174[index] = "liza"; + CollectionsMarshal.AsSpan(list174)[0] = "liza"; questRoot18.Author = list174; - index = 5; - List list175 = new List(index); - CollectionsMarshal.SetCount(list175, index); - Span span175 = CollectionsMarshal.AsSpan(list175); - num = 0; - ref QuestSequence reference138 = ref span175[num]; + num = 5; + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + Span span83 = CollectionsMarshal.AsSpan(list175); + ref QuestSequence reference138 = ref span83[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -108528,8 +89989,7 @@ public static class AssemblyQuestLoader }; obj126.Steps = list176; reference138 = obj126; - num++; - ref QuestSequence reference139 = ref span175[num]; + ref QuestSequence reference139 = ref span83[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -108537,9 +89997,7 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1001353u, new Vector3(21.072632f, 7.45f, -78.78235f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -108550,18 +90008,15 @@ public static class AssemblyQuestLoader }; obj127.Steps = list177; reference139 = obj127; - num++; - ref QuestSequence reference140 = ref span175[num]; + ref QuestSequence reference140 = ref span83[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -108571,8 +90026,7 @@ public static class AssemblyQuestLoader }; obj128.Steps = list178; reference140 = obj128; - num++; - ref QuestSequence reference141 = ref span175[num]; + ref QuestSequence reference141 = ref span83[3]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -108580,29 +90034,24 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-282.37943f, 13.480675f, -155.46162f), 140) + Span span84 = CollectionsMarshal.AsSpan(list179); + span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-282.37943f, 13.480675f, -155.46162f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; - index2++; - span179[index2] = new QuestStep(EInteractionType.Interact, 1009186u, new Vector3(-281.94098f, 13.480675f, -156.4508f), 140); + span84[1] = new QuestStep(EInteractionType.Interact, 1009186u, new Vector3(-281.94098f, 13.480675f, -156.4508f), 140); obj129.Steps = list179; reference141 = obj129; - num++; - ref QuestSequence reference142 = ref span175[num]; + ref QuestSequence reference142 = ref span83[4]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -108621,16 +90070,13 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - Span span181 = CollectionsMarshal.AsSpan(list181); - index = 0; - span181[index] = "liza"; + CollectionsMarshal.AsSpan(list181)[0] = "liza"; questRoot19.Author = list181; - index = 7; - List list182 = new List(index); - CollectionsMarshal.SetCount(list182, index); - Span span182 = CollectionsMarshal.AsSpan(list182); - num = 0; - ref QuestSequence reference143 = ref span182[num]; + num = 7; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + Span span85 = CollectionsMarshal.AsSpan(list182); + ref QuestSequence reference143 = ref span85[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -108638,9 +90084,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -108653,18 +90097,16 @@ public static class AssemblyQuestLoader }; obj131.Steps = list183; reference143 = obj131; - num++; - ref QuestSequence reference144 = ref span182[num]; + ref QuestSequence reference144 = ref span85[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, @@ -108676,12 +90118,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span184[num2] = new QuestStep(EInteractionType.Interact, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); + span86[1] = new QuestStep(EInteractionType.Interact, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148); obj132.Steps = list184; reference144 = obj132; - num++; - ref QuestSequence reference145 = ref span182[num]; + ref QuestSequence reference145 = ref span85[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -108689,9 +90129,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1001455u, new Vector3(59.952637f, 0.99176025f, 255.8479f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -108703,25 +90141,21 @@ public static class AssemblyQuestLoader }; obj133.Steps = list185; reference145 = obj133; - num++; - ref QuestSequence reference146 = ref span182[num]; + ref QuestSequence reference146 = ref span85[3]; QuestSequence obj134 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2001329u }; obj134.Steps = list186; reference146 = obj134; - num++; - ref QuestSequence reference147 = ref span182[num]; + ref QuestSequence reference147 = ref span85[4]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -108729,36 +90163,30 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.UseItem, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.UseItem, 2004277u, new Vector3(70.2677f, 1.2054443f, 250.53784f), 141) { DelaySecondsAtStart = 3f, ItemId = 2001328u }; obj135.Steps = list187; reference147 = obj135; - num++; - ref QuestSequence reference148 = ref span182[num]; + ref QuestSequence reference148 = ref span85[5]; QuestSequence obj136 = new QuestSequence { Sequence = 5 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num2++; - span188[num2] = new QuestStep(EInteractionType.Interact, 1009187u, new Vector3(70.573f, 1.5015054f, 251.39233f), 141); + span87[1] = new QuestStep(EInteractionType.Interact, 1009187u, new Vector3(70.573f, 1.5015054f, 251.39233f), 141); obj136.Steps = list188; reference148 = obj136; - num++; - ref QuestSequence reference149 = ref span182[num]; + ref QuestSequence reference149 = ref span85[6]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -108766,15 +90194,13 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) + Span span88 = CollectionsMarshal.AsSpan(list189); + span88[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-243.19783f, 58.69102f, -140.41818f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - index2++; - span189[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) + span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1006261u, new Vector3(-244.73944f, 58.69352f, -140.06262f), 148) { NextQuestId = new QuestId(1570) }; @@ -108787,30 +90213,24 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "liza"; + CollectionsMarshal.AsSpan(list190)[0] = "liza"; questRoot20.Author = list190; - index = 6; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference150 = ref span191[num]; + num = 6; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span89 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference150 = ref span89[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj138.Steps = list192; reference150 = obj138; - num++; - ref QuestSequence reference151 = ref span191[num]; + ref QuestSequence reference151 = ref span89[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -108818,9 +90238,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -108831,27 +90249,23 @@ public static class AssemblyQuestLoader }; obj139.Steps = list193; reference151 = obj139; - num++; - ref QuestSequence reference152 = ref span191[num]; + ref QuestSequence reference152 = ref span89[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 2004442u, new Vector3(265.00342f, -13.931519f, 58.457275f), 154); + span90[1] = new QuestStep(EInteractionType.Interact, 2004442u, new Vector3(265.00342f, -13.931519f, 58.457275f), 154); obj140.Steps = list194; reference152 = obj140; - num++; - ref QuestSequence reference153 = ref span191[num]; + ref QuestSequence reference153 = ref span89[3]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -108859,33 +90273,27 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1000612u, new Vector3(357.96143f, 8.934158f, 214.46558f), 154) { Fly = true }; obj141.Steps = list195; reference153 = obj141; - num++; - ref QuestSequence reference154 = ref span191[num]; + ref QuestSequence reference154 = ref span89[4]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj142.Steps = list196; reference154 = obj142; - num++; - ref QuestSequence reference155 = ref span191[num]; + ref QuestSequence reference155 = ref span89[5]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -108893,9 +90301,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, NextQuestId = new QuestId(1487) @@ -108909,33 +90315,26 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "liza"; + CollectionsMarshal.AsSpan(list198)[0] = "liza"; questRoot21.Author = list198; - index = 6; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference156 = ref span199[num]; + num = 6; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span91 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference156 = ref span91[0]; QuestSequence obj144 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list200 = new List(num2); + CollectionsMarshal.SetCount(list200, num2); + ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list200)[0]; 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); - Span span201 = CollectionsMarshal.AsSpan(list201); - index3 = 0; - span201[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q1_000_000"), @@ -108945,8 +90344,7 @@ public static class AssemblyQuestLoader reference157 = questStep14; obj144.Steps = list200; reference156 = obj144; - num++; - ref QuestSequence reference158 = ref span199[num]; + ref QuestSequence reference158 = ref span91[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -108954,35 +90352,29 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 1009594u, new Vector3(-22.568176f, -48.098206f, 289.66187f), 154) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1009594u, new Vector3(-22.568176f, -48.098206f, 289.66187f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj145.Steps = list202; reference158 = obj145; - num++; - ref QuestSequence reference159 = ref span199[num]; + ref QuestSequence reference159 = ref span91[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span203[num2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154); + span92[1] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154); obj146.Steps = list203; reference159 = obj146; - num++; - ref QuestSequence reference160 = ref span199[num]; + ref QuestSequence reference160 = ref span91[3]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -108990,16 +90382,12 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference161 = ref span204[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1009595u, new Vector3(-2.8534546f, -40.94998f, 178.72888f), 154); - index3 = 1; - List list205 = new List(index3); - CollectionsMarshal.SetCount(list205, index3); - Span span205 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - span205[num3] = new DialogueChoice + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q2_000_000"), @@ -109009,25 +90397,21 @@ public static class AssemblyQuestLoader reference161 = questStep15; obj147.Steps = list204; reference160 = obj147; - num++; - ref QuestSequence reference162 = ref span199[num]; + ref QuestSequence reference162 = ref span91[4]; QuestSequence obj148 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj148.Steps = list206; reference162 = obj148; - num++; - ref QuestSequence reference163 = ref span199[num]; + ref QuestSequence reference163 = ref span91[5]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -109035,16 +90419,12 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - ref QuestStep reference164 = ref span207[index2]; + ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list207)[0]; 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); - Span span208 = CollectionsMarshal.AsSpan(list208); - index3 = 0; - span208[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list208)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA002_01487_Q3_000_000"), @@ -109061,26 +90441,21 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - Span span209 = CollectionsMarshal.AsSpan(list209); - index = 0; - span209[index] = "Censored"; + CollectionsMarshal.AsSpan(list209)[0] = "Censored"; questRoot22.Author = list209; - index = 5; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - ref QuestSequence reference165 = ref span210[num]; + num = 5; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span93 = CollectionsMarshal.AsSpan(list210); + ref QuestSequence reference165 = ref span93[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -109099,8 +90474,7 @@ public static class AssemblyQuestLoader }; obj150.Steps = list211; reference165 = obj150; - num++; - ref QuestSequence reference166 = ref span210[num]; + ref QuestSequence reference166 = ref span93[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -109108,30 +90482,24 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154) + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1009600u, new Vector3(121.08032f, -31.678165f, 301.07568f), 154) { Fly = true }; obj151.Steps = list212; reference166 = obj151; - num++; - ref QuestSequence reference167 = ref span210[num]; + ref QuestSequence reference167 = ref span93[2]; QuestSequence obj152 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj152.Steps = list213; reference167 = obj152; - num++; - ref QuestSequence reference168 = ref span210[num]; + ref QuestSequence reference168 = ref span93[3]; QuestSequence obj153 = new QuestSequence { Sequence = 3 @@ -109139,26 +90507,22 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1009217u, new Vector3(363.72925f, -5.616498f, 347.219f), 154) { Fly = true }; obj153.Steps = list214; reference168 = obj153; - num++; - ref QuestSequence reference169 = ref span210[num]; + ref QuestSequence reference169 = ref span93[4]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8130u, ItemCount = 1, @@ -109170,8 +90534,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span215[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; @@ -109184,16 +90547,13 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - Span span216 = CollectionsMarshal.AsSpan(list216); - index = 0; - span216[index] = "Censored"; + CollectionsMarshal.AsSpan(list216)[0] = "Censored"; questRoot23.Author = list216; - index = 6; - List list217 = new List(index); - CollectionsMarshal.SetCount(list217, index); - Span span217 = CollectionsMarshal.AsSpan(list217); - num = 0; - ref QuestSequence reference170 = ref span217[num]; + num = 6; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + Span span95 = CollectionsMarshal.AsSpan(list217); + ref QuestSequence reference170 = ref span95[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -109201,9 +90561,7 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -109222,25 +90580,21 @@ public static class AssemblyQuestLoader }; obj155.Steps = list218; reference170 = obj155; - num++; - ref QuestSequence reference171 = ref span217[num]; + ref QuestSequence reference171 = ref span95[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj156.Steps = list219; reference171 = obj156; - num++; - ref QuestSequence reference172 = ref span217[num]; + ref QuestSequence reference172 = ref span95[2]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -109248,9 +90602,7 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1000195u, new Vector3(197.4364f, 0.0026046988f, 57.114502f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -109261,25 +90613,20 @@ public static class AssemblyQuestLoader }; obj157.Steps = list220; reference172 = obj157; - num++; - ref QuestSequence reference173 = ref span217[num]; + ref QuestSequence reference173 = ref span95[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list221 = new List(index2); - CollectionsMarshal.SetCount(list221, index2); - Span span221 = CollectionsMarshal.AsSpan(list221); - num2 = 0; - ref QuestStep reference174 = ref span221[num2]; + num2 = 1; + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list221)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1009607u, new Vector3(191.05823f, -3.1634123E-15f, 46.341675f), 132); - index3 = 1; - List list222 = new List(index3); - CollectionsMarshal.SetCount(list222, index3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num3 = 0; - span222[num3] = new DialogueChoice + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA004_01489_Q1_000_001"), @@ -109289,8 +90636,7 @@ public static class AssemblyQuestLoader reference174 = questStep17; obj158.Steps = list221; reference173 = obj158; - num++; - ref QuestSequence reference175 = ref span217[num]; + ref QuestSequence reference175 = ref span95[4]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -109298,26 +90644,22 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj159.Steps = list223; reference175 = obj159; - num++; - ref QuestSequence reference176 = ref span217[num]; + ref QuestSequence reference176 = ref span95[5]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list224 = new List(index2); - CollectionsMarshal.SetCount(list224, index2); - Span span224 = CollectionsMarshal.AsSpan(list224); - num2 = 0; - ref QuestStep reference177 = ref span224[num2]; + num2 = 2; + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + Span span96 = CollectionsMarshal.AsSpan(list224); + ref QuestStep reference177 = ref span96[0]; QuestStep obj161 = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8131u, @@ -109333,13 +90675,10 @@ public static class AssemblyQuestLoader num3 = 1; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span225 = CollectionsMarshal.AsSpan(list225); - index3 = 0; - span225[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list225)[0] = EExtendedClassJob.DoH; obj161.RequiredCurrentJob = list225; reference177 = obj161; - num2++; - span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true }; @@ -109352,16 +90691,13 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - Span span226 = CollectionsMarshal.AsSpan(list226); - index = 0; - span226[index] = "Censored"; + CollectionsMarshal.AsSpan(list226)[0] = "Censored"; questRoot24.Author = list226; - index = 6; - List list227 = new List(index); - CollectionsMarshal.SetCount(list227, index); - Span span227 = CollectionsMarshal.AsSpan(list227); - num = 0; - ref QuestSequence reference178 = ref span227[num]; + num = 6; + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span97 = CollectionsMarshal.AsSpan(list227); + ref QuestSequence reference178 = ref span97[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -109369,9 +90705,7 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -109390,22 +90724,18 @@ public static class AssemblyQuestLoader }; obj162.Steps = list228; reference178 = obj162; - num++; - ref QuestSequence reference179 = ref span227[num]; + ref QuestSequence reference179 = ref span97[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj163.Steps = list229; reference179 = obj163; - num++; - ref QuestSequence reference180 = ref span227[num]; + ref QuestSequence reference180 = ref span97[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -109413,33 +90743,27 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1009610u, new Vector3(25.986084f, -8.047037f, 135.42383f), 132) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1009610u, new Vector3(25.986084f, -8.047037f, 135.42383f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj164.Steps = list230; reference180 = obj164; - num++; - ref QuestSequence reference181 = ref span227[num]; + ref QuestSequence reference181 = ref span97[3]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj165.Steps = list231; reference181 = obj165; - num++; - ref QuestSequence reference182 = ref span227[num]; + ref QuestSequence reference182 = ref span97[4]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -109447,25 +90771,20 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 2004543u, new Vector3(-35.996094f, -40.57379f, 160.63171f), 154); + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 2004543u, new Vector3(-35.996094f, -40.57379f, 160.63171f), 154); obj166.Steps = list232; reference182 = obj166; - num++; - ref QuestSequence reference183 = ref span227[num]; + ref QuestSequence reference183 = ref span97[5]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -109478,16 +90797,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "Censored"; + CollectionsMarshal.AsSpan(list234)[0] = "Censored"; questRoot25.Author = list234; - index = 6; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference184 = ref span235[num]; + num = 6; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span99 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference184 = ref span99[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -109495,9 +90811,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -109516,25 +90830,21 @@ public static class AssemblyQuestLoader }; obj168.Steps = list236; reference184 = obj168; - num++; - ref QuestSequence reference185 = ref span235[num]; + ref QuestSequence reference185 = ref span99[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj169.Steps = list237; reference185 = obj169; - num++; - ref QuestSequence reference186 = ref span235[num]; + ref QuestSequence reference186 = ref span99[2]; QuestSequence obj170 = new QuestSequence { Sequence = 2 @@ -109542,23 +90852,19 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154); + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154); obj170.Steps = list238; reference186 = obj170; - num++; - ref QuestSequence reference187 = ref span235[num]; + ref QuestSequence reference187 = ref span99[3]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 8132u, ItemCount = 4, @@ -109570,12 +90876,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span239[num2] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); + span100[1] = new QuestStep(EInteractionType.Interact, 1003075u, new Vector3(440.7262f, -0.9374562f, -62.21112f), 154); obj171.Steps = list239; reference187 = obj171; - num++; - ref QuestSequence reference188 = ref span235[num]; + ref QuestSequence reference188 = ref span99[4]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -109583,26 +90887,21 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1009204u, new Vector3(151.93408f, -18.41936f, 100.72473f), 154) { Fly = true }; obj172.Steps = list240; reference188 = obj172; - num++; - ref QuestSequence reference189 = ref span235[num]; + ref QuestSequence reference189 = ref span99[5]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj173.Steps = list241; reference189 = obj173; questRoot25.QuestSequence = list235; @@ -109612,16 +90911,13 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "Censored"; + CollectionsMarshal.AsSpan(list242)[0] = "Censored"; questRoot26.Author = list242; - index = 9; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference190 = ref span243[num]; + num = 9; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span101 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference190 = ref span101[0]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -109629,9 +90925,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -109650,18 +90944,15 @@ public static class AssemblyQuestLoader }; obj174.Steps = list244; reference190 = obj174; - num++; - ref QuestSequence reference191 = ref span243[num]; + ref QuestSequence reference191 = ref span101[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -109672,8 +90963,7 @@ public static class AssemblyQuestLoader }; obj175.Steps = list245; reference191 = obj175; - num++; - ref QuestSequence reference192 = ref span243[num]; + ref QuestSequence reference192 = ref span101[2]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -109681,34 +90971,28 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.1545f, 222.61827f, 354.20248f), 155) + Span span102 = CollectionsMarshal.AsSpan(list246); + span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.1545f, 222.61827f, 354.20248f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span246[index2] = new QuestStep(EInteractionType.Interact, 1009616u, new Vector3(168.81055f, 223.03535f, 363.08838f), 155); + span102[1] = new QuestStep(EInteractionType.Interact, 1009616u, new Vector3(168.81055f, 223.03535f, 363.08838f), 155); obj176.Steps = list246; reference192 = obj176; - num++; - ref QuestSequence reference193 = ref span243[num]; + ref QuestSequence reference193 = ref span101[3]; QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj177.Steps = list247; reference193 = obj177; - num++; - ref QuestSequence reference194 = ref span243[num]; + ref QuestSequence reference194 = ref span101[4]; QuestSequence obj178 = new QuestSequence { Sequence = 4 @@ -109716,30 +91000,24 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj178.Steps = list248; reference194 = obj178; - num++; - ref QuestSequence reference195 = ref span243[num]; + ref QuestSequence reference195 = ref span101[5]; QuestSequence obj179 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 2001370u }; obj179.Steps = list249; reference195 = obj179; - num++; - ref QuestSequence reference196 = ref span243[num]; + ref QuestSequence reference196 = ref span101[6]; QuestSequence obj180 = new QuestSequence { Sequence = 6 @@ -109747,27 +91025,21 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1009617u, new Vector3(181.41443f, 229.05f, 327.77905f), 155); obj180.Steps = list250; reference196 = obj180; - num++; - ref QuestSequence reference197 = ref span243[num]; + ref QuestSequence reference197 = ref span101[7]; QuestSequence obj181 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj181.Steps = list251; reference197 = obj181; - num++; - ref QuestSequence reference198 = ref span243[num]; + ref QuestSequence reference198 = ref span101[8]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -109775,9 +91047,7 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat @@ -109791,26 +91061,21 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - Span span253 = CollectionsMarshal.AsSpan(list253); - index = 0; - span253[index] = "Censored"; + CollectionsMarshal.AsSpan(list253)[0] = "Censored"; questRoot27.Author = list253; - index = 16; - List list254 = new List(index); - CollectionsMarshal.SetCount(list254, index); - Span span254 = CollectionsMarshal.AsSpan(list254); - num = 0; - ref QuestSequence reference199 = ref span254[num]; + num = 16; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + Span span103 = CollectionsMarshal.AsSpan(list254); + ref QuestSequence reference199 = ref span103[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -109829,8 +91094,7 @@ public static class AssemblyQuestLoader }; obj183.Steps = list255; reference199 = obj183; - num++; - ref QuestSequence reference200 = ref span254[num]; + ref QuestSequence reference200 = ref span103[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -109838,26 +91102,22 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj184.Steps = list256; reference200 = obj184; - num++; - ref QuestSequence reference201 = ref span254[num]; + ref QuestSequence reference201 = ref span103[2]; QuestSequence obj185 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 8133u, ItemCount = 1, @@ -109869,15 +91129,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span257[num2] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) + span104[1] = new QuestStep(EInteractionType.Interact, 1009199u, new Vector3(149.43152f, -18.140299f, 99.22937f), 154) { Fly = true }; obj185.Steps = list257; reference201 = obj185; - num++; - ref QuestSequence reference202 = ref span254[num]; + ref QuestSequence reference202 = ref span103[3]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -109885,34 +91143,28 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj186.Steps = list258; reference202 = obj186; - num++; - ref QuestSequence reference203 = ref span254[num]; + ref QuestSequence reference203 = ref span103[4]; QuestSequence obj187 = new QuestSequence { Sequence = 4 }; - 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) + 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) { ItemId = 2001439u }; obj187.Steps = list259; reference203 = obj187; - num++; - ref QuestSequence reference204 = ref span254[num]; + ref QuestSequence reference204 = ref span103[5]; QuestSequence obj188 = new QuestSequence { Sequence = 5 @@ -109920,56 +91172,44 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155); + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1009629u, new Vector3(586.694f, 302.0293f, -169.45148f), 155); obj188.Steps = list260; reference204 = obj188; - num++; - ref QuestSequence reference205 = ref span254[num]; + ref QuestSequence reference205 = ref span103[6]; QuestSequence obj189 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list261 = new List(index2); - CollectionsMarshal.SetCount(list261, index2); - Span span261 = CollectionsMarshal.AsSpan(list261); - num2 = 0; - ref QuestStep reference206 = ref span261[num2]; + num2 = 2; + List list261 = new List(num2); + CollectionsMarshal.SetCount(list261, num2); + Span span105 = CollectionsMarshal.AsSpan(list261); + ref QuestStep reference206 = ref span105[0]; QuestStep obj190 = new QuestStep(EInteractionType.UseItem, 2004449u, new Vector3(708.7357f, 287.52563f, 109.97168f), 155) { Fly = true, ItemId = 2001439u }; - 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); + 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); obj190.CompletionQuestVariablesFlags = list262; reference206 = obj190; - num2++; - span261[num2] = new QuestStep(EInteractionType.UseItem, 2004450u, new Vector3(589.9595f, 286.51855f, 183.00134f), 155) + span105[1] = new QuestStep(EInteractionType.UseItem, 2004450u, new Vector3(589.9595f, 286.51855f, 183.00134f), 155) { Fly = true, ItemId = 2001439u }; obj189.Steps = list261; reference205 = obj189; - num++; - ref QuestSequence reference207 = ref span254[num]; + ref QuestSequence reference207 = ref span103[7]; QuestSequence obj191 = new QuestSequence { Sequence = 7 @@ -109977,34 +91217,28 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.UseItem, 2004451u, new Vector3(574.15125f, 302.7848f, 33.6156f), 155) + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.UseItem, 2004451u, new Vector3(574.15125f, 302.7848f, 33.6156f), 155) { Fly = true, ItemId = 2001439u }; obj191.Steps = list263; reference207 = obj191; - num++; - ref QuestSequence reference208 = ref span254[num]; + ref QuestSequence reference208 = ref span103[8]; QuestSequence obj192 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true }; obj192.Steps = list264; reference208 = obj192; - num++; - ref QuestSequence reference209 = ref span254[num]; + ref QuestSequence reference209 = ref span103[9]; QuestSequence obj193 = new QuestSequence { Sequence = 9 @@ -110012,37 +91246,31 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.04178f, 307.86307f, 411.6528f), 155) + Span span107 = CollectionsMarshal.AsSpan(list265); + span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(195.04178f, 307.86307f, 411.6528f), 155) { Fly = true, Land = true }; - index2++; - span265[index2] = new QuestStep(EInteractionType.Interact, 1009693u, new Vector3(203.50952f, 297.2045f, 425.37573f), 155); + span107[1] = new QuestStep(EInteractionType.Interact, 1009693u, new Vector3(203.50952f, 297.2045f, 425.37573f), 155); obj193.Steps = list265; reference209 = obj193; - num++; - ref QuestSequence reference210 = ref span254[num]; + ref QuestSequence reference210 = ref span103[10]; QuestSequence obj194 = new QuestSequence { Sequence = 10 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj194.Steps = list266; reference210 = obj194; - num++; - ref QuestSequence reference211 = ref span254[num]; + ref QuestSequence reference211 = ref span103[11]; QuestSequence obj195 = new QuestSequence { Sequence = 11 @@ -110050,27 +91278,21 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); obj195.Steps = list267; reference211 = obj195; - num++; - ref QuestSequence reference212 = ref span254[num]; + ref QuestSequence reference212 = ref span103[12]; QuestSequence obj196 = new QuestSequence { Sequence = 12 }; - 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); + 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); obj196.Steps = list268; reference212 = obj196; - num++; - ref QuestSequence reference213 = ref span254[num]; + ref QuestSequence reference213 = ref span103[13]; QuestSequence obj197 = new QuestSequence { Sequence = 13 @@ -110078,9 +91300,8 @@ public static class AssemblyQuestLoader num2 = 2; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span108 = CollectionsMarshal.AsSpan(list269); + span108[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8134u, ItemCount = 1, @@ -110092,29 +91313,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span269[index2] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); + span108[1] = new QuestStep(EInteractionType.Interact, 1009707u, new Vector3(160.35706f, -22.797548f, 116.44153f), 154); obj197.Steps = list269; reference213 = obj197; - num++; - ref QuestSequence reference214 = ref span254[num]; + ref QuestSequence reference214 = ref span103[14]; QuestSequence obj198 = new QuestSequence { Sequence = 14 }; - index2 = 1; - List list270 = new List(index2); - CollectionsMarshal.SetCount(list270, index2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num2 = 0; - ref QuestStep reference215 = ref span270[num2]; + num2 = 1; + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list270)[0]; 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); - Span span271 = CollectionsMarshal.AsSpan(list271); - index3 = 0; - span271[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANIXA008_01493_Q1_000_000"), @@ -110124,8 +91339,7 @@ public static class AssemblyQuestLoader reference215 = questStep18; obj198.Steps = list270; reference214 = obj198; - num++; - ref QuestSequence reference216 = ref span254[num]; + ref QuestSequence reference216 = ref span103[15]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -110133,9 +91347,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009294u, new Vector3(-63.767517f, -1.7171676f, 11.673096f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -110148,26 +91360,21 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "Censored"; + CollectionsMarshal.AsSpan(list273)[0] = "Censored"; questRoot28.Author = list273; - index = 5; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference217 = ref span274[num]; + num = 5; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span109 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference217 = ref span109[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -110186,8 +91393,7 @@ public static class AssemblyQuestLoader }; obj200.Steps = list275; reference217 = obj200; - num++; - ref QuestSequence reference218 = ref span274[num]; + ref QuestSequence reference218 = ref span109[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -110195,32 +91401,27 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true, Land = true }; obj201.Steps = list276; reference218 = obj201; - num++; - ref QuestSequence reference219 = ref span274[num]; + ref QuestSequence reference219 = ref span109[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference220 = ref span277[num2]; + ref QuestStep reference220 = ref span110[1]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 2004452u, new Vector3(324.6051f, -14.206177f, 181.13977f), 154) { Fly = true, @@ -110228,18 +91429,15 @@ public static class AssemblyQuestLoader ItemId = 2001374u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list278 = new List(index3); - CollectionsMarshal.SetCount(list278, index3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = 3239u; + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + CollectionsMarshal.AsSpan(list278)[0] = 3239u; obj203.KillEnemyDataIds = list278; reference220 = obj203; obj202.Steps = list277; reference219 = obj202; - num++; - ref QuestSequence reference221 = ref span274[num]; + ref QuestSequence reference221 = ref span109[3]; QuestSequence obj204 = new QuestSequence { Sequence = 3 @@ -110247,26 +91445,22 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1000656u, new Vector3(400.656f, -5.884923f, -104.90582f), 154) { Fly = true }; obj204.Steps = list279; reference221 = obj204; - num++; - ref QuestSequence reference222 = ref span274[num]; + ref QuestSequence reference222 = ref span109[4]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8091u, ItemCount = 1, @@ -110278,8 +91472,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -110292,16 +91485,13 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - Span span281 = CollectionsMarshal.AsSpan(list281); - index = 0; - span281[index] = "Censored"; + CollectionsMarshal.AsSpan(list281)[0] = "Censored"; questRoot29.Author = list281; - index = 5; - List list282 = new List(index); - CollectionsMarshal.SetCount(list282, index); - Span span282 = CollectionsMarshal.AsSpan(list282); - num = 0; - ref QuestSequence reference223 = ref span282[num]; + num = 5; + List list282 = new List(num); + CollectionsMarshal.SetCount(list282, num); + Span span112 = CollectionsMarshal.AsSpan(list282); + ref QuestSequence reference223 = ref span112[0]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -110309,9 +91499,7 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -110330,26 +91518,22 @@ public static class AssemblyQuestLoader }; obj206.Steps = list283; reference223 = obj206; - num++; - ref QuestSequence reference224 = ref span282[num]; + ref QuestSequence reference224 = ref span112[1]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true }; obj207.Steps = list284; reference224 = obj207; - num++; - ref QuestSequence reference225 = ref span282[num]; + ref QuestSequence reference225 = ref span112[2]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -110357,33 +91541,27 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.Interact, 1000172u, new Vector3(358.96838f, 8.934157f, 231.25049f), 154) + CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 1000172u, new Vector3(358.96838f, 8.934157f, 231.25049f), 154) { Fly = true }; obj208.Steps = list285; reference225 = obj208; - num++; - ref QuestSequence reference226 = ref span282[num]; + ref QuestSequence reference226 = ref span112[3]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj209.Steps = list286; reference226 = obj209; - num++; - ref QuestSequence reference227 = ref span282[num]; + ref QuestSequence reference227 = ref span112[4]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -110391,9 +91569,8 @@ public static class AssemblyQuestLoader num2 = 2; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - span287[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span113 = CollectionsMarshal.AsSpan(list287); + span113[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8092u, ItemCount = 1, @@ -110405,8 +91582,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span287[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -110419,26 +91595,21 @@ public static class AssemblyQuestLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - Span span288 = CollectionsMarshal.AsSpan(list288); - index = 0; - span288[index] = "Censored"; + CollectionsMarshal.AsSpan(list288)[0] = "Censored"; questRoot30.Author = list288; - index = 4; - List list289 = new List(index); - CollectionsMarshal.SetCount(list289, index); - Span span289 = CollectionsMarshal.AsSpan(list289); - num = 0; - ref QuestSequence reference228 = ref span289[num]; + num = 4; + List list289 = new List(num); + CollectionsMarshal.SetCount(list289, num); + Span span114 = CollectionsMarshal.AsSpan(list289); + ref QuestSequence reference228 = ref span114[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -110457,8 +91628,7 @@ public static class AssemblyQuestLoader }; obj211.Steps = list290; reference228 = obj211; - num++; - ref QuestSequence reference229 = ref span289[num]; + ref QuestSequence reference229 = ref span114[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -110466,14 +91636,12 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span291[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + Span span115 = CollectionsMarshal.AsSpan(list291); + span115[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - index2++; - ref QuestStep reference230 = ref span291[index2]; + ref QuestStep reference230 = ref span115[1]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.67094f, -27.914522f, 211.52048f), 154) { Fly = true, @@ -110482,51 +91650,38 @@ public static class AssemblyQuestLoader num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span292 = CollectionsMarshal.AsSpan(list292); - index3 = 0; - span292[index3] = 749u; + CollectionsMarshal.AsSpan(list292)[0] = 749u; obj213.KillEnemyDataIds = list292; - 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; + 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; obj213.CompletionQuestVariablesFlags = list293; reference230 = obj213; - index2++; - span291[index2] = new QuestStep(EInteractionType.Interact, 2004457u, new Vector3(217.15112f, -27.420471f, 209.88782f), 154); + span115[2] = new QuestStep(EInteractionType.Interact, 2004457u, new Vector3(217.15112f, -27.420471f, 209.88782f), 154); obj212.Steps = list291; reference229 = obj212; - num++; - ref QuestSequence reference231 = ref span289[num]; + ref QuestSequence reference231 = ref span114[2]; QuestSequence obj214 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj214.Steps = list294; reference231 = obj214; - num++; - ref QuestSequence reference232 = ref span289[num]; + ref QuestSequence reference232 = ref span114[3]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -110534,9 +91689,8 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span117 = CollectionsMarshal.AsSpan(list295); + span117[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8093u, ItemCount = 2, @@ -110548,8 +91702,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -110562,26 +91715,21 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "Censored"; + CollectionsMarshal.AsSpan(list296)[0] = "Censored"; questRoot31.Author = list296; - index = 4; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference233 = ref span297[num]; + num = 4; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span118 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference233 = ref span118[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -110600,8 +91748,7 @@ public static class AssemblyQuestLoader }; obj216.Steps = list298; reference233 = obj216; - num++; - ref QuestSequence reference234 = ref span297[num]; + ref QuestSequence reference234 = ref span118[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -110609,9 +91756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Say, 1009633u, new Vector3(254.77979f, -20.989405f, 351.76624f), 154) + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Say, 1009633u, new Vector3(254.77979f, -20.989405f, 351.76624f), 154) { Fly = true, ChatMessage = new ChatMessage @@ -110621,25 +91766,21 @@ public static class AssemblyQuestLoader }; obj217.Steps = list299; reference234 = obj217; - num++; - ref QuestSequence reference235 = ref span297[num]; + ref QuestSequence reference235 = ref span118[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj218.Steps = list300; reference235 = obj218; - num++; - ref QuestSequence reference236 = ref span297[num]; + ref QuestSequence reference236 = ref span118[3]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -110647,9 +91788,8 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span119 = CollectionsMarshal.AsSpan(list301); + span119[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8094u, ItemCount = 3, @@ -110661,8 +91801,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) + span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1009211u, new Vector3(153.8872f, -9.001622f, 77.50049f), 154) { Fly = true }; @@ -110675,26 +91814,21 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "Censored"; + CollectionsMarshal.AsSpan(list302)[0] = "Censored"; questRoot32.Author = list302; - index = 5; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference237 = ref span303[num]; + num = 5; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span120 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference237 = ref span120[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -110712,8 +91846,7 @@ public static class AssemblyQuestLoader }; obj220.Steps = list304; reference237 = obj220; - num++; - ref QuestSequence reference238 = ref span303[num]; + ref QuestSequence reference238 = ref span120[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 @@ -110721,14 +91854,12 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) + Span span121 = CollectionsMarshal.AsSpan(list305); + span121[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 400) { TargetClass = EExtendedClassJob.Botanist }; - index2++; - ref QuestStep reference239 = ref span305[index2]; + ref QuestStep reference239 = ref span121[1]; QuestStep obj222 = new QuestStep(EInteractionType.Gather, null, null, 154) { Fly = true @@ -110736,15 +91867,13 @@ public static class AssemblyQuestLoader num3 = 2; List list306 = new List(num3); CollectionsMarshal.SetCount(list306, num3); - Span span306 = CollectionsMarshal.AsSpan(list306); - index3 = 0; - span306[index3] = new GatheredItem + Span span122 = CollectionsMarshal.AsSpan(list306); + span122[0] = new GatheredItem { ItemId = 2001388u, ItemCount = 15 }; - index3++; - span306[index3] = new GatheredItem + span122[1] = new GatheredItem { ItemId = 2001389u, ItemCount = 5 @@ -110753,25 +91882,21 @@ public static class AssemblyQuestLoader reference239 = obj222; obj221.Steps = list305; reference238 = obj221; - num++; - ref QuestSequence reference240 = ref span303[num]; + ref QuestSequence reference240 = ref span120[2]; QuestSequence obj223 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj223.Steps = list307; reference240 = obj223; - num++; - ref QuestSequence reference241 = ref span303[num]; + ref QuestSequence reference241 = ref span120[3]; QuestSequence obj224 = new QuestSequence { Sequence = 3 @@ -110779,27 +91904,23 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj224.Steps = list308; reference241 = obj224; - num++; - ref QuestSequence reference242 = ref span303[num]; + ref QuestSequence reference242 = ref span120[4]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8105u, ItemCount = 4, @@ -110811,8 +91932,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span309[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -110826,16 +91946,13 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "Censored"; + CollectionsMarshal.AsSpan(list310)[0] = "Censored"; questRoot33.Author = list310; - index = 5; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference243 = ref span311[num]; + num = 5; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span124 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference243 = ref span124[0]; QuestSequence obj226 = new QuestSequence { Sequence = 0 @@ -110843,9 +91960,7 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -110863,39 +91978,34 @@ public static class AssemblyQuestLoader }; obj226.Steps = list312; reference243 = obj226; - num++; - ref QuestSequence reference244 = ref span311[num]; + ref QuestSequence reference244 = ref span124[1]; QuestSequence obj227 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetClass = EExtendedClassJob.Miner }; - num2++; - ref QuestStep reference245 = ref span313[num2]; + ref QuestStep reference245 = ref span125[1]; QuestStep obj228 = new QuestStep(EInteractionType.Gather, null, null, 154) { Fly = true }; - index3 = 2; - List list314 = new List(index3); - CollectionsMarshal.SetCount(list314, index3); - Span span314 = CollectionsMarshal.AsSpan(list314); - num3 = 0; - span314[num3] = new GatheredItem + num3 = 2; + List list314 = new List(num3); + CollectionsMarshal.SetCount(list314, num3); + Span span126 = CollectionsMarshal.AsSpan(list314); + span126[0] = new GatheredItem { ItemId = 2001391u, ItemCount = 15 }; - num3++; - span314[num3] = new GatheredItem + span126[1] = new GatheredItem { ItemId = 2001392u, ItemCount = 5 @@ -110904,8 +92014,7 @@ public static class AssemblyQuestLoader reference245 = obj228; obj227.Steps = list313; reference244 = obj227; - num++; - ref QuestSequence reference246 = ref span311[num]; + ref QuestSequence reference246 = ref span124[2]; QuestSequence obj229 = new QuestSequence { Sequence = 2 @@ -110913,34 +92022,28 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.Interact, 1009636u, new Vector3(0.015197754f, -46.4906f, 246.1737f), 154) + CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1009636u, new Vector3(0.015197754f, -46.4906f, 246.1737f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj229.Steps = list315; reference246 = obj229; - num++; - ref QuestSequence reference247 = ref span311[num]; + ref QuestSequence reference247 = ref span124[3]; QuestSequence obj230 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; obj230.Steps = list316; reference247 = obj230; - num++; - ref QuestSequence reference248 = ref span311[num]; + ref QuestSequence reference248 = ref span124[4]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -110948,9 +92051,8 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span127 = CollectionsMarshal.AsSpan(list317); + span127[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8106u, ItemCount = 4, @@ -110962,8 +92064,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -110981,16 +92082,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Censored"; + CollectionsMarshal.AsSpan(list)[0] = "Censored"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -110998,9 +92096,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111019,18 +92115,16 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2004478u, new Vector3(-108.293274f, -7.2786255f, -51.377197f), 154) { Fly = true, @@ -111039,48 +92133,33 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - 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); + 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); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2004475u, new Vector3(-91.44739f, -5.2644043f, -100.93848f), 154); - 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); + 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); questStep.CompletionQuestVariablesFlags = list6; reference4 = questStep; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 2004476u, new Vector3(-123.91852f, -7.736328f, -118.24219f), 154); + span2[2] = new QuestStep(EInteractionType.Interact, 2004476u, new Vector3(-123.91852f, -7.736328f, -118.24219f), 154); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -111088,26 +92167,22 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj4.Steps = list7; reference5 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8107u, ItemCount = 1, @@ -111119,8 +92194,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span8[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -111134,16 +92208,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "Censored"; + CollectionsMarshal.AsSpan(list9)[0] = "Censored"; questRoot2.Author = list9; - index = 4; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 4; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span6 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span6[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -111151,9 +92222,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111172,18 +92241,15 @@ public static class AssemblyQuestLoader }; obj6.Steps = list11; reference7 = obj6; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span6[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true, @@ -111194,8 +92260,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list12; reference8 = obj7; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span6[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -111203,26 +92268,22 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span6[3]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8108u, ItemCount = 3, @@ -111234,8 +92295,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -111249,16 +92309,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "Censored"; + CollectionsMarshal.AsSpan(list15)[0] = "Censored"; questRoot3.Author = list15; - index = 4; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span8 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span8[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -111266,9 +92323,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111287,23 +92342,20 @@ public static class AssemblyQuestLoader }; obj10.Steps = list17; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span8[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference13 = ref span18[num2]; + ref QuestStep reference13 = ref span9[1]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.630516f, 7.3852587f, -54.13745f), 154) { Fly = true, @@ -111312,15 +92364,12 @@ public static class AssemblyQuestLoader num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span19 = CollectionsMarshal.AsSpan(list19); - num4 = 0; - span19[num4] = 29u; + CollectionsMarshal.AsSpan(list19)[0] = 29u; obj12.KillEnemyDataIds = list19; reference13 = obj12; obj11.Steps = list18; reference12 = obj11; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span8[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -111328,27 +92377,23 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1008945u, new Vector3(445.45654f, -0.9374095f, -67.36859f), 154) { Fly = true, Land = true }; obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span16[num]; + ref QuestSequence reference15 = ref span8[3]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8110u, ItemCount = 4, @@ -111360,8 +92405,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span21[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1009214u, new Vector3(159.3805f, -5.6866503f, 69.29114f), 154) { Fly = true, Land = true @@ -111375,16 +92419,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "Censored"; + CollectionsMarshal.AsSpan(list22)[0] = "Censored"; questRoot4.Author = list22; - index = 4; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 4; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span11 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span11[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -111392,9 +92433,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111413,59 +92452,46 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span11[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference18 = ref span25[num2]; + ref QuestStep reference18 = ref span12[1]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(83.55191f, -42.160282f, 359.22104f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list26 = new List(num4); - CollectionsMarshal.SetCount(list26, num4); - Span span26 = CollectionsMarshal.AsSpan(list26); - num3 = 0; - span26[num3] = 747u; + num3 = 1; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + CollectionsMarshal.AsSpan(list26)[0] = 747u; obj17.KillEnemyDataIds = list26; num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - 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; + 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; obj17.CompletionQuestVariablesFlags = list27; reference18 = obj17; - num2++; - span25[num2] = new QuestStep(EInteractionType.Interact, 2004461u, new Vector3(82.993774f, -41.519836f, 362.2339f), 154); + span12[2] = new QuestStep(EInteractionType.Interact, 2004461u, new Vector3(82.993774f, -41.519836f, 362.2339f), 154); obj16.Steps = list25; reference17 = obj16; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span11[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -111473,27 +92499,23 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj18.Steps = list28; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span23[num]; + ref QuestSequence reference20 = ref span11[3]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8095u, ItemCount = 3, @@ -111505,8 +92527,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span29[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -111519,16 +92540,13 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "Censored"; + CollectionsMarshal.AsSpan(list30)[0] = "Censored"; questRoot5.Author = list30; - index = 4; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference21 = ref span31[num]; + num = 4; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span15 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference21 = ref span15[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -111536,9 +92554,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111557,25 +92573,21 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference21 = obj20; - num++; - ref QuestSequence reference22 = ref span31[num]; + ref QuestSequence reference22 = ref span15[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj21.Steps = list33; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span31[num]; + ref QuestSequence reference23 = ref span15[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -111583,27 +92595,23 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { Fly = true, Land = true }; obj22.Steps = list34; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span15[3]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8096u, ItemCount = 2, @@ -111615,8 +92623,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -111629,16 +92636,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "Censored"; + CollectionsMarshal.AsSpan(list36)[0] = "Censored"; questRoot6.Author = list36; - index = 4; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference25 = ref span37[num]; + num = 4; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span17 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference25 = ref span17[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -111646,9 +92650,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111667,59 +92669,48 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span37[num]; + ref QuestSequence reference26 = ref span17[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference27 = ref span39[num2]; + ref QuestStep reference27 = ref span18[1]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-180.06154f, -60.916454f, 355.63138f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - ref ComplexCombatData reference28 = ref span40[num3]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span19 = CollectionsMarshal.AsSpan(list40); + ref ComplexCombatData reference28 = ref span19[0]; ComplexCombatData obj27 = new ComplexCombatData { DataId = 30u, MinimumKillCount = 1u }; - 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; + 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; obj27.CompletionQuestVariablesFlags = list41; reference28 = obj27; - num3++; - span40[num3] = new ComplexCombatData + span19[1] = new ComplexCombatData { DataId = 3240u, MinimumKillCount = 1u @@ -111728,8 +92719,7 @@ public static class AssemblyQuestLoader reference27 = obj26; obj25.Steps = list39; reference26 = obj25; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span17[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -111737,26 +92727,22 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj28.Steps = list42; reference29 = obj28; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span17[3]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8097u, ItemCount = 1, @@ -111768,8 +92754,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -111782,16 +92767,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "Censored"; + CollectionsMarshal.AsSpan(list44)[0] = "Censored"; questRoot7.Author = list44; - index = 4; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference31 = ref span45[num]; + num = 4; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span22 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference31 = ref span22[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -111799,9 +92781,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111820,18 +92800,16 @@ public static class AssemblyQuestLoader }; obj30.Steps = list46; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span45[num]; + ref QuestSequence reference32 = ref span22[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list47 = new List(index2); - CollectionsMarshal.SetCount(list47, index2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num2 = 0; - ref QuestStep reference33 = ref span47[num2]; + num2 = 2; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + Span span23 = CollectionsMarshal.AsSpan(list47); + ref QuestStep reference33 = ref span23[0]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(18.913702f, -50.22517f, 533.0378f), 154) { TargetTerritoryId = (ushort)148, @@ -111842,15 +92820,12 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = 148; + CollectionsMarshal.AsSpan(list48)[0] = 148; skipStepConditions.InTerritory = list48; skipConditions.StepIf = skipStepConditions; obj32.SkipConditions = skipConditions; reference33 = obj32; - num2++; - span47[num2] = new QuestStep(EInteractionType.Say, 1009634u, new Vector3(-410.1778f, 64.43958f, -244.00702f), 148) + span23[1] = new QuestStep(EInteractionType.Say, 1009634u, new Vector3(-410.1778f, 64.43958f, -244.00702f), 148) { Fly = true, ChatMessage = new ChatMessage @@ -111860,8 +92835,7 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference32 = obj31; - num++; - ref QuestSequence reference34 = ref span45[num]; + ref QuestSequence reference34 = ref span22[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -111869,26 +92843,22 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj33.Steps = list49; reference34 = obj33; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span22[3]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8098u, ItemCount = 1, @@ -111900,8 +92870,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -111914,16 +92883,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "Censored"; + CollectionsMarshal.AsSpan(list51)[0] = "Censored"; questRoot8.Author = list51; - index = 4; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference36 = ref span52[num]; + num = 4; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span25 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference36 = ref span25[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -111931,9 +92897,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, @@ -111952,26 +92916,22 @@ public static class AssemblyQuestLoader }; obj35.Steps = list53; reference36 = obj35; - num++; - ref QuestSequence reference37 = ref span52[num]; + ref QuestSequence reference37 = ref span25[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true }; obj36.Steps = list54; reference37 = obj36; - num++; - ref QuestSequence reference38 = ref span52[num]; + ref QuestSequence reference38 = ref span25[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -111979,26 +92939,22 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1009218u, new Vector3(-4.1047363f, -40.949986f, 176.83679f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj37.Steps = list55; reference38 = obj37; - num++; - ref QuestSequence reference39 = ref span52[num]; + ref QuestSequence reference39 = ref span25[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8099u, ItemCount = 2, @@ -112010,8 +92966,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span56[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) + span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1009212u, new Vector3(151.29321f, -9.752633f, 79.697754f), 154) { Fly = true }; @@ -112024,16 +92979,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "Censored"; + CollectionsMarshal.AsSpan(list57)[0] = "Censored"; questRoot9.Author = list57; - index = 5; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference40 = ref span58[num]; + num = 5; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span27 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference40 = ref span27[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -112041,9 +92993,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -112063,18 +93013,16 @@ public static class AssemblyQuestLoader }; obj39.Steps = list59; reference40 = obj39; - num++; - ref QuestSequence reference41 = ref span58[num]; + ref QuestSequence reference41 = ref span27[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112090,12 +93038,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span60[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span28[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj40.Steps = list60; reference41 = obj40; - num++; - ref QuestSequence reference42 = ref span58[num]; + ref QuestSequence reference42 = ref span27[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -112103,27 +93049,23 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) + Span span29 = CollectionsMarshal.AsSpan(list61); + span29[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 156) { TargetClass = EExtendedClassJob.Botanist }; - index2++; - ref QuestStep reference43 = ref span61[index2]; + ref QuestStep reference43 = ref span29[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 156); - num4 = 2; - List list62 = new List(num4); - CollectionsMarshal.SetCount(list62, num4); - Span span62 = CollectionsMarshal.AsSpan(list62); - num3 = 0; - span62[num3] = new GatheredItem + num3 = 2; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + Span span30 = CollectionsMarshal.AsSpan(list62); + span30[0] = new GatheredItem { ItemId = 2001412u, ItemCount = 15 }; - num3++; - span62[num3] = new GatheredItem + span30[1] = new GatheredItem { ItemId = 2001413u, ItemCount = 5 @@ -112132,18 +93074,16 @@ public static class AssemblyQuestLoader reference43 = questStep2; obj41.Steps = list61; reference42 = obj41; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span27[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112159,12 +93099,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span63[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span31[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj42.Steps = list63; reference44 = obj42; - num++; - ref QuestSequence reference45 = ref span58[num]; + ref QuestSequence reference45 = ref span27[4]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -112172,9 +93110,8 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span32 = CollectionsMarshal.AsSpan(list64); + span32[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8113u, ItemCount = 2, @@ -112186,8 +93123,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -112214,26 +93150,21 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "Censored"; + CollectionsMarshal.AsSpan(list65)[0] = "Censored"; questRoot10.Author = list65; - index = 5; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference46 = ref span66[num]; + num = 5; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span33 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference46 = ref span33[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -112253,8 +93184,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list67; reference46 = obj44; - num++; - ref QuestSequence reference47 = ref span66[num]; + ref QuestSequence reference47 = ref span33[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -112262,9 +93192,8 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span34 = CollectionsMarshal.AsSpan(list68); + span34[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112280,40 +93209,34 @@ public static class AssemblyQuestLoader } } }; - index2++; - span68[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span34[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj45.Steps = list68; reference47 = obj45; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span33[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetClass = EExtendedClassJob.Miner }; - num2++; - ref QuestStep reference49 = ref span69[num2]; + ref QuestStep reference49 = ref span35[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 156); num3 = 2; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num4 = 0; - span70[num4] = new GatheredItem + Span span36 = CollectionsMarshal.AsSpan(list70); + span36[0] = new GatheredItem { ItemId = 2001415u, ItemCount = 15 }; - num4++; - span70[num4] = new GatheredItem + span36[1] = new GatheredItem { ItemId = 2001416u, ItemCount = 5 @@ -112322,8 +93245,7 @@ public static class AssemblyQuestLoader reference49 = questStep3; obj46.Steps = list69; reference48 = obj46; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span33[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -112331,9 +93253,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(37.581226f, 29f, -798.03467f), 156) + Span span37 = CollectionsMarshal.AsSpan(list71); + span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112349,22 +93270,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span71[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span37[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj47.Steps = list71; reference50 = obj47; - num++; - ref QuestSequence reference51 = ref span66[num]; + ref QuestSequence reference51 = ref span33[4]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8114u, ItemCount = 1, @@ -112376,8 +93294,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -112404,16 +93321,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "Censored"; + CollectionsMarshal.AsSpan(list73)[0] = "Censored"; questRoot11.Author = list73; - index = 5; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference52 = ref span74[num]; + num = 5; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span39 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference52 = ref span39[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -112421,9 +93335,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -112443,18 +93355,16 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference52 = obj49; - num++; - ref QuestSequence reference53 = ref span74[num]; + ref QuestSequence reference53 = ref span39[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112470,12 +93380,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span76[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span40[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj50.Steps = list76; reference53 = obj50; - num++; - ref QuestSequence reference54 = ref span74[num]; + ref QuestSequence reference54 = ref span39[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -112483,26 +93391,22 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + Span span41 = CollectionsMarshal.AsSpan(list77); + span41[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - index2++; - ref QuestStep reference55 = ref span77[index2]; + ref QuestStep reference55 = ref span41[1]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(-339.69962f, -17.148405f, -433.59454f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list78 = new List(num4); - CollectionsMarshal.SetCount(list78, num4); - Span span78 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - span78[num3] = 140u; + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = 140u; obj52.KillEnemyDataIds = list78; obj52.SkipConditions = new SkipConditions { @@ -112519,18 +93423,16 @@ public static class AssemblyQuestLoader reference55 = obj52; obj51.Steps = list77; reference54 = obj51; - num++; - ref QuestSequence reference56 = ref span74[num]; + ref QuestSequence reference56 = ref span39[3]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112546,12 +93448,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span79[num2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span42[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj53.Steps = list79; reference56 = obj53; - num++; - ref QuestSequence reference57 = ref span74[num]; + ref QuestSequence reference57 = ref span39[4]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -112559,9 +93459,8 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Craft, null, null, 154) + Span span43 = CollectionsMarshal.AsSpan(list80); + span43[0] = new QuestStep(EInteractionType.Craft, null, null, 154) { ItemId = 8115u, ItemCount = 2, @@ -112573,8 +93472,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -112601,26 +93499,21 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "Censored"; + CollectionsMarshal.AsSpan(list81)[0] = "Censored"; questRoot12.Author = list81; - index = 5; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference58 = ref span82[num]; + num = 5; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span44 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference58 = ref span44[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -112640,8 +93533,7 @@ public static class AssemblyQuestLoader }; obj55.Steps = list83; reference58 = obj55; - num++; - ref QuestSequence reference59 = ref span82[num]; + ref QuestSequence reference59 = ref span44[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -112649,9 +93541,8 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span45 = CollectionsMarshal.AsSpan(list84); + span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112667,27 +93558,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span84[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span45[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj56.Steps = list84; reference59 = obj56; - num++; - ref QuestSequence reference60 = ref span82[num]; + ref QuestSequence reference60 = ref span44[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference61 = ref span85[num2]; + ref QuestStep reference61 = ref span46[1]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-512.7902f, -4.0678735f, -442.46564f), 156) { Fly = true, @@ -112697,30 +93584,22 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - num4 = 0; - ref ComplexCombatData reference62 = ref span86[num4]; + ref ComplexCombatData reference62 = ref CollectionsMarshal.AsSpan(list86)[0]; ComplexCombatData obj59 = new ComplexCombatData { DataId = 2983u, MinimumKillCount = 1u }; - 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; + 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; obj59.CompletionQuestVariablesFlags = list87; reference62 = obj59; obj58.ComplexCombatData = list86; @@ -112736,30 +93615,22 @@ public static class AssemblyQuestLoader } } }; - 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; + 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; obj58.CompletionQuestVariablesFlags = list88; reference61 = obj58; - num2++; - span85[num2] = new QuestStep(EInteractionType.Interact, 2004479u, new Vector3(-513.0541f, -4.043701f, -442.46588f), 156); + span46[2] = new QuestStep(EInteractionType.Interact, 2004479u, new Vector3(-513.0541f, -4.043701f, -442.46588f), 156); obj57.Steps = list85; reference60 = obj57; - num++; - ref QuestSequence reference63 = ref span82[num]; + ref QuestSequence reference63 = ref span44[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -112767,9 +93638,8 @@ public static class AssemblyQuestLoader num2 = 2; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span49 = CollectionsMarshal.AsSpan(list89); + span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -112785,22 +93655,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span89[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span49[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj60.Steps = list89; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span82[num]; + ref QuestSequence reference64 = ref span44[4]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8117u, ItemCount = 1, @@ -112812,8 +93679,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span50[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -112840,16 +93706,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "Censored"; + CollectionsMarshal.AsSpan(list91)[0] = "Censored"; questRoot13.Author = list91; - index = 4; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference65 = ref span92[num]; + num = 4; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span51 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference65 = ref span51[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -112857,9 +93720,8 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + Span span52 = CollectionsMarshal.AsSpan(list93); + span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -112877,22 +93739,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj62.Steps = list93; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span92[num]; + ref QuestSequence reference66 = ref span51[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list94 = new List(index2); - CollectionsMarshal.SetCount(list94, index2); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref QuestStep reference67 = ref span94[num2]; + num2 = 2; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + Span span53 = CollectionsMarshal.AsSpan(list94); + ref QuestStep reference67 = ref span53[0]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1000776u, new Vector3(115.342896f, 287.02945f, 142.1377f), 155) { Fly = true, @@ -112908,23 +93767,16 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - 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); + 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); obj64.CompletionQuestVariablesFlags = list95; reference67 = obj64; - num2++; - span94[num2] = new QuestStep(EInteractionType.Say, 1009639u, new Vector3(59.952637f, 298.56396f, 176.25696f), 155) + span53[1] = new QuestStep(EInteractionType.Say, 1009639u, new Vector3(59.952637f, 298.56396f, 176.25696f), 155) { Fly = true, ChatMessage = new ChatMessage @@ -112934,8 +93786,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference66 = obj63; - num++; - ref QuestSequence reference68 = ref span92[num]; + ref QuestSequence reference68 = ref span51[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -112943,29 +93794,25 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + Span span55 = CollectionsMarshal.AsSpan(list96); + span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - index2++; - span96[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + span55[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj65.Steps = list96; reference68 = obj65; - num++; - ref QuestSequence reference69 = ref span92[num]; + ref QuestSequence reference69 = ref span51[3]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num2 = 0; - ref QuestStep reference70 = ref span97[num2]; + num2 = 3; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span56 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference70 = ref span56[0]; QuestStep obj67 = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8101u, @@ -112978,16 +93825,13 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = EExtendedClassJob.DoH; obj67.RequiredCurrentJob = list98; reference70 = obj67; - num2++; - span97[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -113005,8 +93849,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + span56[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj66.Steps = list97; reference69 = obj66; questRoot13.QuestSequence = list92; @@ -113021,16 +93864,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "Censored"; + CollectionsMarshal.AsSpan(list99)[0] = "Censored"; questRoot14.Author = list99; - index = 4; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference71 = ref span100[num]; + num = 4; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span57 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference71 = ref span57[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -113038,9 +93878,8 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + Span span58 = CollectionsMarshal.AsSpan(list101); + span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -113058,27 +93897,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj68.Steps = list101; reference71 = obj68; - num++; - ref QuestSequence reference72 = ref span100[num]; + ref QuestSequence reference72 = ref span57[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference73 = ref span102[num2]; + ref QuestStep reference73 = ref span59[1]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-238.96973f, 225.51239f, 425.29025f), 155) { Fly = true, @@ -113088,9 +93923,7 @@ public static class AssemblyQuestLoader num3 = 1; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num4 = 0; - span103[num4] = 191u; + CollectionsMarshal.AsSpan(list103)[0] = 191u; obj70.KillEnemyDataIds = list103; obj70.SkipConditions = new SkipConditions { @@ -113102,8 +93935,7 @@ public static class AssemblyQuestLoader reference73 = obj70; obj69.Steps = list102; reference72 = obj69; - num++; - ref QuestSequence reference74 = ref span100[num]; + ref QuestSequence reference74 = ref span57[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -113111,29 +93943,25 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + Span span60 = CollectionsMarshal.AsSpan(list104); + span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - index2++; - span104[index2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + span60[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj71.Steps = list104; reference74 = obj71; - num++; - ref QuestSequence reference75 = ref span100[num]; + ref QuestSequence reference75 = ref span57[3]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8103u, ItemCount = 1, @@ -113145,8 +93973,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span105[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -113164,8 +93991,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span105[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + span61[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj72.Steps = list105; reference75 = obj72; questRoot14.QuestSequence = list100; @@ -113175,16 +94001,13 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "Censored"; + CollectionsMarshal.AsSpan(list106)[0] = "Censored"; questRoot15.Author = list106; - index = 5; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference76 = ref span107[num]; + num = 5; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span62 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference76 = ref span62[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -113192,9 +94015,8 @@ public static class AssemblyQuestLoader num2 = 2; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + Span span63 = CollectionsMarshal.AsSpan(list108); + span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -113212,22 +94034,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj73.Steps = list108; reference76 = obj73; - num++; - ref QuestSequence reference77 = ref span107[num]; + ref QuestSequence reference77 = ref span62[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true, @@ -113240,12 +94059,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span109[num2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + span64[1] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj74.Steps = list109; reference77 = obj74; - num++; - ref QuestSequence reference78 = ref span107[num]; + ref QuestSequence reference78 = ref span62[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -113253,46 +94070,38 @@ public static class AssemblyQuestLoader num2 = 3; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - 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) + 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) { Fly = true, Land = true }; - index2++; - span110[index2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); + span65[2] = new QuestStep(EInteractionType.Interact, 1006378u, new Vector3(204.5166f, 293.32996f, 418.57007f), 155); obj75.Steps = list110; reference78 = obj75; - num++; - ref QuestSequence reference79 = ref span107[num]; + ref QuestSequence reference79 = ref span62[3]; QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; - num2++; - span111[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) + span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.82239f, 222.01717f, 352.99496f), 155) { Fly = true, Land = true }; - num2++; - span111[num2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); + span66[2] = new QuestStep(EInteractionType.Interact, 1009219u, new Vector3(251.11768f, 222f, 366.2317f), 155); obj76.Steps = list111; reference79 = obj76; - num++; - ref QuestSequence reference80 = ref span107[num]; + ref QuestSequence reference80 = ref span62[4]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -113300,9 +94109,8 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span67 = CollectionsMarshal.AsSpan(list112); + span67[0] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8104u, ItemCount = 1, @@ -113314,8 +94122,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) + span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.94475f, -4.690532f, 63.927406f), 154) { Fly = true, Land = true, @@ -113333,8 +94140,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); + span67[2] = new QuestStep(EInteractionType.CompleteQuest, 1009213u, new Vector3(159.28894f, -3.6960998f, 64.286255f), 154); obj77.Steps = list112; reference80 = obj77; questRoot15.QuestSequence = list107; @@ -113344,26 +94150,21 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - Span span113 = CollectionsMarshal.AsSpan(list113); - index = 0; - span113[index] = "Censored"; + CollectionsMarshal.AsSpan(list113)[0] = "Censored"; questRoot16.Author = list113; - index = 5; - List list114 = new List(index); - CollectionsMarshal.SetCount(list114, index); - Span span114 = CollectionsMarshal.AsSpan(list114); - num = 0; - ref QuestSequence reference81 = ref span114[num]; + num = 5; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span68 = CollectionsMarshal.AsSpan(list114); + ref QuestSequence reference81 = ref span68[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -113383,8 +94184,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list115; reference81 = obj78; - num++; - ref QuestSequence reference82 = ref span114[num]; + ref QuestSequence reference82 = ref span68[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -113392,9 +94192,8 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span69 = CollectionsMarshal.AsSpan(list116); + span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -113410,39 +94209,33 @@ public static class AssemblyQuestLoader } } }; - index2++; - span116[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span69[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj79.Steps = list116; reference82 = obj79; - num++; - ref QuestSequence reference83 = ref span114[num]; + ref QuestSequence reference83 = ref span68[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - num2++; - ref QuestStep reference84 = ref span117[num2]; + ref QuestStep reference84 = ref span70[1]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 1009669u, new Vector3(-134.47784f, -1.2726249f, -637.7814f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list118 = new List(num4); - CollectionsMarshal.SetCount(list118, num4); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - span118[num3] = 725u; + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + CollectionsMarshal.AsSpan(list118)[0] = 725u; obj81.KillEnemyDataIds = list118; obj81.SkipConditions = new SkipConditions { @@ -113459,70 +94252,51 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - 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); + 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); obj81.CompletionQuestVariablesFlags = list119; reference84 = obj81; - num2++; - ref QuestStep reference85 = ref span117[num2]; + ref QuestStep reference85 = ref span70[2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 1009640u, new Vector3(-143.45007f, 3.3107295f, -663.99634f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list120 = new List(num4); - CollectionsMarshal.SetCount(list120, num4); - Span span120 = CollectionsMarshal.AsSpan(list120); - num3 = 0; - span120[num3] = 725u; + num3 = 1; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + CollectionsMarshal.AsSpan(list120)[0] = 725u; obj82.KillEnemyDataIds = list120; num3 = 6; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - 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); + 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); obj82.CompletionQuestVariablesFlags = list121; reference85 = obj82; - num2++; - ref QuestStep reference86 = ref span117[num2]; + ref QuestStep reference86 = ref span70[3]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 1009670u, new Vector3(-189.28821f, 4.6535096f, -654.9325f), 156) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list122 = new List(num4); - CollectionsMarshal.SetCount(list122, num4); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - span122[num3] = 725u; + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = 725u; obj83.KillEnemyDataIds = list122; reference86 = obj83; obj80.Steps = list117; reference83 = obj80; - num++; - ref QuestSequence reference87 = ref span114[num]; + ref QuestSequence reference87 = ref span68[3]; QuestSequence obj84 = new QuestSequence { Sequence = 3 @@ -113530,9 +94304,8 @@ public static class AssemblyQuestLoader num2 = 2; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) + Span span73 = CollectionsMarshal.AsSpan(list123); + span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.581226f, 29f, -798.03467f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -113548,22 +94321,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span123[index2] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); + span73[1] = new QuestStep(EInteractionType.Interact, 1009220u, new Vector3(40.93994f, 29f, -798.3673f), 156); obj84.Steps = list123; reference87 = obj84; - num++; - ref QuestSequence reference88 = ref span114[num]; + ref QuestSequence reference88 = ref span68[4]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8118u, ItemCount = 2, @@ -113575,8 +94345,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span124[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) + span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1009215u, new Vector3(167.01001f, -13.604617f, 110.85681f), 154) { Fly = true, Land = true, @@ -113603,16 +94372,13 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "Censored"; + CollectionsMarshal.AsSpan(list125)[0] = "Censored"; questRoot17.Author = list125; - index = 5; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference89 = ref span126[num]; + num = 5; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span75 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference89 = ref span75[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -113620,9 +94386,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -113642,36 +94406,31 @@ public static class AssemblyQuestLoader }; obj86.Steps = list127; reference89 = obj86; - num++; - ref QuestSequence reference90 = ref span126[num]; + ref QuestSequence reference90 = ref span75[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetClass = EExtendedClassJob.Botanist }; - num2++; - ref QuestStep reference91 = ref span128[num2]; + ref QuestStep reference91 = ref span76[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 155); num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - num4 = 0; - span129[num4] = new GatheredItem + Span span77 = CollectionsMarshal.AsSpan(list129); + span77[0] = new GatheredItem { ItemId = 2001424u, ItemCount = 15 }; - num4++; - span129[num4] = new GatheredItem + span77[1] = new GatheredItem { ItemId = 2001425u, ItemCount = 5 @@ -113680,8 +94439,7 @@ public static class AssemblyQuestLoader reference91 = questStep4; obj87.Steps = list128; reference90 = obj87; - num++; - ref QuestSequence reference92 = ref span126[num]; + ref QuestSequence reference92 = ref span75[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -113689,30 +94447,24 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.Interact, 1009646u, new Vector3(246.78406f, 302f, -256.64148f), 155) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1009646u, new Vector3(246.78406f, 302f, -256.64148f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj88.Steps = list130; reference92 = obj88; - num++; - ref QuestSequence reference93 = ref span126[num]; + ref QuestSequence reference93 = ref span75[3]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj89.Steps = list131; reference93 = obj89; - num++; - ref QuestSequence reference94 = ref span126[num]; + ref QuestSequence reference94 = ref span75[4]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -113720,9 +94472,8 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span78 = CollectionsMarshal.AsSpan(list132); + span78[0] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8121u, ItemCount = 2, @@ -113734,8 +94485,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span132[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -113762,26 +94512,21 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span133 = CollectionsMarshal.AsSpan(list133); - index = 0; - span133[index] = "Censored"; + CollectionsMarshal.AsSpan(list133)[0] = "Censored"; questRoot18.Author = list133; - index = 5; - List list134 = new List(index); - CollectionsMarshal.SetCount(list134, index); - Span span134 = CollectionsMarshal.AsSpan(list134); - num = 0; - ref QuestSequence reference95 = ref span134[num]; + num = 5; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + Span span79 = CollectionsMarshal.AsSpan(list134); + ref QuestSequence reference95 = ref span79[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -113801,8 +94546,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list135; reference95 = obj91; - num++; - ref QuestSequence reference96 = ref span134[num]; + ref QuestSequence reference96 = ref span79[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -113810,27 +94554,23 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) + Span span80 = CollectionsMarshal.AsSpan(list136); + span80[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 155) { TargetClass = EExtendedClassJob.Miner }; - index2++; - ref QuestStep reference97 = ref span136[index2]; + ref QuestStep reference97 = ref span80[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 155); - num4 = 2; - List list137 = new List(num4); - CollectionsMarshal.SetCount(list137, num4); - Span span137 = CollectionsMarshal.AsSpan(list137); - num3 = 0; - span137[num3] = new GatheredItem + num3 = 2; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + Span span81 = CollectionsMarshal.AsSpan(list137); + span81[0] = new GatheredItem { ItemId = 2001426u, ItemCount = 15 }; - num3++; - span137[num3] = new GatheredItem + span81[1] = new GatheredItem { ItemId = 2001427u, ItemCount = 5 @@ -113839,25 +94579,21 @@ public static class AssemblyQuestLoader reference97 = questStep5; obj92.Steps = list136; reference96 = obj92; - num++; - ref QuestSequence reference98 = ref span134[num]; + ref QuestSequence reference98 = ref span79[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj93.Steps = list138; reference98 = obj93; - num++; - ref QuestSequence reference99 = ref span134[num]; + ref QuestSequence reference99 = ref span79[3]; QuestSequence obj94 = new QuestSequence { Sequence = 3 @@ -113865,23 +94601,19 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1009221u, new Vector3(202.13623f, 301.99976f, -253.55927f), 155); obj94.Steps = list139; reference99 = obj94; - num++; - ref QuestSequence reference100 = ref span134[num]; + ref QuestSequence reference100 = ref span79[4]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 8122u, ItemCount = 2, @@ -113893,8 +94625,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span140[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -113921,16 +94652,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "Censored"; + CollectionsMarshal.AsSpan(list141)[0] = "Censored"; questRoot19.Author = list141; - index = 5; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference101 = ref span142[num]; + num = 5; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span83 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference101 = ref span83[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -113938,9 +94666,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -113960,22 +94686,18 @@ public static class AssemblyQuestLoader }; obj96.Steps = list143; reference101 = obj96; - num++; - ref QuestSequence reference102 = ref span142[num]; + ref QuestSequence reference102 = ref span83[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj97.Steps = list144; reference102 = obj97; - num++; - ref QuestSequence reference103 = ref span142[num]; + ref QuestSequence reference103 = ref span83[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -113983,9 +94705,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1009648u, new Vector3(-174.60901f, 304.1538f, -322.4079f), 155) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1009648u, new Vector3(-174.60901f, 304.1538f, -322.4079f), 155) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -113996,25 +94716,21 @@ public static class AssemblyQuestLoader }; obj98.Steps = list145; reference103 = obj98; - num++; - ref QuestSequence reference104 = ref span142[num]; + ref QuestSequence reference104 = ref span83[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj99.Steps = list146; reference104 = obj99; - num++; - ref QuestSequence reference105 = ref span142[num]; + ref QuestSequence reference105 = ref span83[4]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -114022,9 +94738,8 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span84 = CollectionsMarshal.AsSpan(list147); + span84[0] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8123u, ItemCount = 3, @@ -114036,8 +94751,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -114064,26 +94778,21 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "liza"; + CollectionsMarshal.AsSpan(list148)[0] = "liza"; questRoot20.Author = list148; - index = 2; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference106 = ref span149[num]; + num = 2; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span85 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference106 = ref span85[0]; QuestSequence obj101 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + ref QuestStep reference107 = ref CollectionsMarshal.AsSpan(list150)[0]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -114101,17 +94810,14 @@ public static class AssemblyQuestLoader num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - num4 = 0; - span151[num4] = 128; + CollectionsMarshal.AsSpan(list151)[0] = 128; obj103.InTerritory = list151; skipConditions2.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions2; reference107 = obj102; obj101.Steps = list150; reference106 = obj101; - num++; - ref QuestSequence reference108 = ref span149[num]; + ref QuestSequence reference108 = ref span85[1]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -114119,9 +94825,7 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009236u, new Vector3(-20.431885f, 91.99992f, -1.3886108f), 128) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009236u, new Vector3(-20.431885f, 91.99992f, -1.3886108f), 128) { AethernetShortcut = new AethernetShortcut { @@ -114138,30 +94842,24 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - Span span153 = CollectionsMarshal.AsSpan(list153); - index = 0; - span153[index] = "liza"; + CollectionsMarshal.AsSpan(list153)[0] = "liza"; questRoot21.Author = list153; - index = 5; - List list154 = new List(index); - CollectionsMarshal.SetCount(list154, index); - Span span154 = CollectionsMarshal.AsSpan(list154); - num = 0; - ref QuestSequence reference109 = ref span154[num]; + num = 5; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span86 = CollectionsMarshal.AsSpan(list154); + ref QuestSequence reference109 = ref span86[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj105.Steps = list155; reference109 = obj105; - num++; - ref QuestSequence reference110 = ref span154[num]; + ref QuestSequence reference110 = ref span86[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -114169,36 +94867,30 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj106.Steps = list156; reference110 = obj106; - num++; - ref QuestSequence reference111 = ref span154[num]; + ref QuestSequence reference111 = ref span86[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span157[num2] = new QuestStep(EInteractionType.Interact, 2004430u, new Vector3(198.2909f, -29.83142f, -220.44714f), 152); + span87[1] = new QuestStep(EInteractionType.Interact, 2004430u, new Vector3(198.2909f, -29.83142f, -220.44714f), 152); obj107.Steps = list157; reference111 = obj107; - num++; - ref QuestSequence reference112 = ref span154[num]; + ref QuestSequence reference112 = ref span86[3]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -114206,9 +94898,7 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -114217,31 +94907,26 @@ public static class AssemblyQuestLoader }; obj108.Steps = list158; reference112 = obj108; - num++; - ref QuestSequence reference113 = ref span154[num]; + ref QuestSequence reference113 = ref span86[4]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span88[3] = new QuestStep(EInteractionType.CompleteQuest, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj109.Steps = list159; reference113 = obj109; questRoot21.QuestSequence = list154; @@ -114251,16 +94936,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot22.Author = list160; - index = 6; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference114 = ref span161[num]; + num = 6; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span89 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference114 = ref span89[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -114268,9 +94950,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -114283,18 +94963,15 @@ public static class AssemblyQuestLoader }; obj110.Steps = list162; reference114 = obj110; - num++; - ref QuestSequence reference115 = ref span161[num]; + ref QuestSequence reference115 = ref span89[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -114305,8 +94982,7 @@ public static class AssemblyQuestLoader }; obj111.Steps = list163; reference115 = obj111; - num++; - ref QuestSequence reference116 = ref span161[num]; + ref QuestSequence reference116 = ref span89[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -114314,95 +94990,70 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.Interact, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1006238u, new Vector3(197.77222f, 7.8551226f, -22.14087f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj112.Steps = list164; reference116 = obj112; - num++; - ref QuestSequence reference117 = ref span161[num]; + ref QuestSequence reference117 = ref span89[3]; QuestSequence obj113 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list165 = new List(index2); - CollectionsMarshal.SetCount(list165, index2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num2 = 0; - ref QuestStep reference118 = ref span165[num2]; + num2 = 3; + List list165 = new List(num2); + CollectionsMarshal.SetCount(list165, num2); + Span span90 = CollectionsMarshal.AsSpan(list165); + ref QuestStep reference118 = ref span90[0]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1000312u, new Vector3(269.6421f, 7.877909f, -206.34778f), 153) { Fly = true }; - 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); + 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); obj114.CompletionQuestVariablesFlags = list166; reference118 = obj114; - num2++; - ref QuestStep reference119 = ref span165[num2]; + ref QuestStep reference119 = ref span90[1]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list167; reference119 = questStep6; - num2++; - ref QuestStep reference120 = ref span165[num2]; + ref QuestStep reference120 = ref span90[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1000340u, new Vector3(277.51575f, 11.186312f, -255.60394f), 153); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list168; reference120 = questStep7; obj113.Steps = list165; reference117 = obj113; - num++; - ref QuestSequence reference121 = ref span161[num]; + ref QuestSequence reference121 = ref span89[4]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -114410,28 +95061,23 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - 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) + 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) { Fly = true }; obj115.Steps = list169; reference121 = obj115; - num++; - ref QuestSequence reference122 = ref span161[num]; + ref QuestSequence reference122 = ref span89[5]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -114450,16 +95096,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot23.Author = list171; - index = 10; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference123 = ref span172[num]; + num = 10; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span95 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference123 = ref span95[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -114467,9 +95110,7 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -114482,26 +95123,22 @@ public static class AssemblyQuestLoader }; obj117.Steps = list173; reference123 = obj117; - num++; - ref QuestSequence reference124 = ref span172[num]; + ref QuestSequence reference124 = ref span95[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj118.Steps = list174; reference124 = obj118; - num++; - ref QuestSequence reference125 = ref span172[num]; + ref QuestSequence reference125 = ref span95[2]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -114509,40 +95146,34 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.Interact, 1009267u, new Vector3(194.20154f, 59.531815f, -144.54877f), 180) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1009267u, new Vector3(194.20154f, 59.531815f, -144.54877f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj119.Steps = list175; reference125 = obj119; - num++; - ref QuestSequence reference126 = ref span172[num]; + ref QuestSequence reference126 = ref span95[3]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - num2++; - span176[num2] = new QuestStep(EInteractionType.Interact, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + span96[1] = new QuestStep(EInteractionType.Interact, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { Fly = true }; obj120.Steps = list176; reference126 = obj120; - num++; - ref QuestSequence reference127 = ref span172[num]; + ref QuestSequence reference127 = ref span95[4]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -114550,33 +95181,27 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj121.Steps = list177; reference127 = obj121; - num++; - ref QuestSequence reference128 = ref span172[num]; + ref QuestSequence reference128 = ref span95[5]; QuestSequence obj122 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 2001334u }; obj122.Steps = list178; reference128 = obj122; - num++; - ref QuestSequence reference129 = ref span172[num]; + ref QuestSequence reference129 = ref span95[6]; QuestSequence obj123 = new QuestSequence { Sequence = 6 @@ -114584,34 +95209,28 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.UseItem, 1009268u, new Vector3(-319.9054f, 4.416262f, -571.40466f), 180) { ItemId = 2001334u }; obj123.Steps = list179; reference129 = obj123; - num++; - ref QuestSequence reference130 = ref span172[num]; + ref QuestSequence reference130 = ref span95[7]; QuestSequence obj124 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj124.Steps = list180; reference130 = obj124; - num++; - ref QuestSequence reference131 = ref span172[num]; + ref QuestSequence reference131 = ref span95[8]; QuestSequence obj125 = new QuestSequence { Sequence = 8 @@ -114619,26 +95238,21 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Interact, 2004284u, new Vector3(517.32654f, 12.558105f, 78.93494f), 137) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 2004284u, new Vector3(517.32654f, 12.558105f, 78.93494f), 137) { Fly = true }; obj125.Steps = list181; reference131 = obj125; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span95[9]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -114653,16 +95267,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot24.Author = list183; - index = 5; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference133 = ref span184[num]; + num = 5; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span97 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference133 = ref span97[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -114670,9 +95281,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -114685,18 +95294,15 @@ public static class AssemblyQuestLoader }; obj127.Steps = list185; reference133 = obj127; - num++; - ref QuestSequence reference134 = ref span184[num]; + ref QuestSequence reference134 = ref span97[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -114707,8 +95313,7 @@ public static class AssemblyQuestLoader }; obj128.Steps = list186; reference134 = obj128; - num++; - ref QuestSequence reference135 = ref span184[num]; + ref QuestSequence reference135 = ref span97[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -114716,9 +95321,8 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - ref QuestStep reference136 = ref span187[index2]; + Span span98 = CollectionsMarshal.AsSpan(list187); + ref QuestStep reference136 = ref span98[0]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1009272u, new Vector3(-39.16992f, 13.499999f, 104.99719f), 131) { AethernetShortcut = new AethernetShortcut @@ -114730,26 +95334,18 @@ public static class AssemblyQuestLoader num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - 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); + 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); obj130.CompletionQuestVariablesFlags = list188; - num4 = 1; - List list189 = new List(num4); - CollectionsMarshal.SetCount(list189, num4); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - span189[num3] = new DialogueChoice + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST007_01533_Q1_000_000"), @@ -114757,8 +95353,7 @@ public static class AssemblyQuestLoader }; obj130.DialogueChoices = list189; reference136 = obj130; - index2++; - ref QuestStep reference137 = ref span187[index2]; + ref QuestStep reference137 = ref span98[1]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1009273u, new Vector3(-120.74469f, 41.50016f, 134.5083f), 131) { AethernetShortcut = new AethernetShortcut @@ -114770,26 +95365,18 @@ public static class AssemblyQuestLoader num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - 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); + 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); obj131.CompletionQuestVariablesFlags = list190; - num4 = 1; - List list191 = new List(num4); - CollectionsMarshal.SetCount(list191, num4); - Span span191 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span191[num3] = new DialogueChoice + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST007_01533_Q2_000_000"), @@ -114799,18 +95386,15 @@ public static class AssemblyQuestLoader reference137 = obj131; obj129.Steps = list187; reference135 = obj129; - num++; - ref QuestSequence reference138 = ref span184[num]; + ref QuestSequence reference138 = ref span97[3]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - 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) + 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) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -114821,8 +95405,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference138 = obj132; - num++; - ref QuestSequence reference139 = ref span184[num]; + ref QuestSequence reference139 = ref span97[4]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -114830,9 +95413,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009369u, new Vector3(151.26257f, 7.492006f, 109.84961f), 131) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009369u, new Vector3(151.26257f, 7.492006f, 109.84961f), 131) { NextQuestId = new QuestId(1571) }; @@ -114849,16 +95430,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -114866,9 +95444,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -114881,18 +95457,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -114905,16 +95478,13 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - index = 0; - span5[index] = "liza"; + CollectionsMarshal.AsSpan(list5)[0] = "liza"; questRoot2.Author = list5; - index = 2; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - ref QuestSequence reference3 = ref span6[num]; + num = 2; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestSequence reference3 = ref span2[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -114922,9 +95492,8 @@ public static class AssemblyQuestLoader num2 = 4; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - ref QuestStep reference4 = ref span7[index2]; + Span span3 = CollectionsMarshal.AsSpan(list7); + ref QuestStep reference4 = ref span3[0]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -114935,32 +95504,26 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span8 = CollectionsMarshal.AsSpan(list8); - int num4 = 0; - span8[num4] = 140; - num4++; - span8[num4] = 212; + Span span4 = CollectionsMarshal.AsSpan(list8); + span4[0] = 140; + span4[1] = 212; skipStepConditions.InTerritory = list8; skipConditions.StepIf = skipStepConditions; obj4.SkipConditions = skipConditions; reference4 = obj4; - index2++; - ref QuestStep reference5 = ref span7[index2]; + ref QuestStep reference5 = ref span3[1]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num4 = 1; - List list9 = new List(num4); - CollectionsMarshal.SetCount(list9, num4); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - span9[num3] = 212; + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = 212; skipStepConditions2.InTerritory = list9; skipConditions2.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions2; reference5 = questStep; - index2++; - ref QuestStep reference6 = ref span7[index2]; + ref QuestStep reference6 = ref span3[2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 @@ -114970,29 +95533,23 @@ public static class AssemblyQuestLoader num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - Span span10 = CollectionsMarshal.AsSpan(list10); - num4 = 0; - span10[num4] = 212; + CollectionsMarshal.AsSpan(list10)[0] = 212; skipStepConditions3.InTerritory = list10; skipConditions3.StepIf = skipStepConditions3; obj5.SkipConditions = skipConditions3; reference6 = obj5; - index2++; - span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011618u, new Vector3(10.330261f, -3.0000017f, -54.8562f), 212); + span3[3] = new QuestStep(EInteractionType.AcceptQuest, 1011618u, new Vector3(10.330261f, -3.0000017f, -54.8562f), 212); obj3.Steps = list7; reference3 = obj3; - num++; - ref QuestSequence reference7 = ref span6[num]; + ref QuestSequence reference7 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings, NextQuestId = new QuestId(1021) @@ -115006,16 +95563,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "Censored"; + CollectionsMarshal.AsSpan(list12)[0] = "Censored"; questRoot3.Author = list12; - index = 2; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference8 = ref span13[num]; + num = 2; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span5 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference8 = ref span5[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -115023,9 +95577,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - ref QuestStep reference9 = ref span14[index2]; + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list14)[0]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1025721u, new Vector3(-75.94415f, 11.800039f, -115.617676f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -115035,12 +95587,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeBokairoInn } }; - num4 = 1; - List list15 = new List(num4); - CollectionsMarshal.SetCount(list15, num4); - Span span15 = CollectionsMarshal.AsSpan(list15); - num3 = 0; - span15[num3] = new DialogueChoice + num3 = 1; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY992_01555_Q1_000_000"), @@ -115050,18 +95600,15 @@ public static class AssemblyQuestLoader reference9 = obj8; obj7.Steps = list14; reference8 = obj7; - num++; - ref QuestSequence reference10 = ref span13[num]; + ref QuestSequence reference10 = ref span5[1]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj9.Steps = list16; reference10 = obj9; questRoot3.QuestSequence = list13; @@ -115071,16 +95618,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot4.Author = list17; - index = 2; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference11 = ref span18[num]; + num = 2; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span6 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference11 = ref span6[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -115088,25 +95632,20 @@ public static class AssemblyQuestLoader num2 = 2; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - 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); + 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); obj10.Steps = list19; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span18[num]; + ref QuestSequence reference12 = ref span6[1]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -115119,16 +95658,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "alydev"; + CollectionsMarshal.AsSpan(list21)[0] = "alydev"; questRoot5.Author = list21; - index = 9; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference13 = ref span22[num]; + num = 9; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span8 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference13 = ref span8[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -115136,130 +95672,91 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj12.Steps = list23; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span22[num]; + ref QuestSequence reference14 = ref span8[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference15 = ref span24[num2]; + num2 = 5; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + Span span9 = CollectionsMarshal.AsSpan(list24); + ref QuestStep reference15 = ref span9[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list25; reference15 = questStep2; - num2++; - ref QuestStep reference16 = ref span24[num2]; + ref QuestStep reference16 = ref span9[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2004432u, new Vector3(-64.62195f, -0.015319824f, -5.2339478f), 148); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list26; reference16 = questStep3; - num2++; - ref QuestStep reference17 = ref span24[num2]; + ref QuestStep reference17 = ref span9[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list27; reference17 = questStep4; - num2++; - ref QuestStep reference18 = ref span24[num2]; + ref QuestStep reference18 = ref span9[3]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2004434u, new Vector3(-51.773926f, 0.19836426f, 16.128723f), 148); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list28; reference18 = questStep5; - num2++; - ref QuestStep reference19 = ref span24[num2]; + ref QuestStep reference19 = ref span9[4]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list29; reference19 = questStep6; obj13.Steps = list24; reference14 = obj13; - num++; - ref QuestSequence reference20 = ref span22[num]; + ref QuestSequence reference20 = ref span8[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -115267,27 +95764,21 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj14.Steps = list30; reference20 = obj14; - num++; - ref QuestSequence reference21 = ref span22[num]; + ref QuestSequence reference21 = ref span8[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj15.Steps = list31; reference21 = obj15; - num++; - ref QuestSequence reference22 = ref span22[num]; + ref QuestSequence reference22 = ref span8[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -115295,27 +95786,21 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj16.Steps = list32; reference22 = obj16; - num++; - ref QuestSequence reference23 = ref span22[num]; + ref QuestSequence reference23 = ref span8[5]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj17.Steps = list33; reference23 = obj17; - num++; - ref QuestSequence reference24 = ref span22[num]; + ref QuestSequence reference24 = ref span8[6]; QuestSequence obj18 = new QuestSequence { Sequence = 6 @@ -115323,30 +95808,24 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1009569u, new Vector3(-56.10742f, -0.020424694f, 28.54956f), 148) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1009569u, new Vector3(-56.10742f, -0.020424694f, 28.54956f), 148) { StopDistance = 7f }; obj18.Steps = list34; reference24 = obj18; - num++; - ref QuestSequence reference25 = ref span22[num]; + ref QuestSequence reference25 = ref span8[7]; QuestSequence obj19 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj19.Steps = list35; reference25 = obj19; - num++; - ref QuestSequence reference26 = ref span22[num]; + ref QuestSequence reference26 = ref span8[8]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -115354,9 +95833,7 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000471u, new Vector3(-60.471558f, 0.19999865f, 6.301941f), 148); obj20.Steps = list36; reference26 = obj20; questRoot5.QuestSequence = list22; @@ -115366,30 +95843,24 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "liza"; + CollectionsMarshal.AsSpan(list37)[0] = "liza"; questRoot6.Author = list37; - index = 2; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference27 = ref span38[num]; + num = 2; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span15 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference27 = ref span15[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj21.Steps = list39; reference27 = obj21; - num++; - ref QuestSequence reference28 = ref span38[num]; + ref QuestSequence reference28 = ref span15[1]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -115397,9 +95868,7 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009152u, new Vector3(-74.47931f, -0.50372624f, 3.250122f), 132) + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009152u, new Vector3(-74.47931f, -0.50372624f, 3.250122f), 132) { NextQuestId = new QuestId(2119) }; @@ -115412,30 +95881,24 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot7.Author = list41; - index = 2; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference29 = ref span42[num]; + num = 2; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span16 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference29 = ref span16[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj23.Steps = list43; reference29 = obj23; - num++; - ref QuestSequence reference30 = ref span42[num]; + ref QuestSequence reference30 = ref span16[1]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -115443,9 +95906,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) { NextQuestId = new QuestId(2119) }; @@ -115458,30 +95919,24 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot8.Author = list45; - index = 2; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference31 = ref span46[num]; + num = 2; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span17 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference31 = ref span17[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj25.Steps = list47; reference31 = obj25; - num++; - ref QuestSequence reference32 = ref span46[num]; + ref QuestSequence reference32 = ref span17[1]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -115489,9 +95944,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001379u, new Vector3(-153.55157f, 4.10972f, -94.04144f), 130) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001379u, new Vector3(-153.55157f, 4.10972f, -94.04144f), 130) { NextQuestId = new QuestId(2119) }; @@ -115504,26 +95957,21 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "Censored"; + CollectionsMarshal.AsSpan(list49)[0] = "Censored"; questRoot9.Author = list49; - index = 4; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference33 = ref span50[num]; + num = 4; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span18 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference33 = ref span18[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -115543,8 +95991,7 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference33 = obj27; - num++; - ref QuestSequence reference34 = ref span50[num]; + ref QuestSequence reference34 = ref span18[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -115552,51 +95999,41 @@ public static class AssemblyQuestLoader num2 = 2; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) + Span span19 = CollectionsMarshal.AsSpan(list52); + span19[0] = new QuestStep(EInteractionType.SwitchClass, null, null, 154) { TargetClass = EExtendedClassJob.ConfiguredCombatJob }; - index2++; - ref QuestStep reference35 = ref span52[index2]; + ref QuestStep reference35 = ref span19[1]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(581.92236f, 282.2539f, -304.58823f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 2; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - ref ComplexCombatData reference36 = ref span53[num3]; + num3 = 2; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + Span span20 = CollectionsMarshal.AsSpan(list53); + ref ComplexCombatData reference36 = ref span20[0]; ComplexCombatData obj30 = new ComplexCombatData { DataId = 45u, MinimumKillCount = 1u }; - 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; + 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; obj30.CompletionQuestVariablesFlags = list54; reference36 = obj30; - num3++; - span53[num3] = new ComplexCombatData + span20[1] = new ComplexCombatData { DataId = 3241u, MinimumKillCount = 1u @@ -115612,25 +96049,21 @@ public static class AssemblyQuestLoader reference35 = obj29; obj28.Steps = list52; reference34 = obj28; - num++; - ref QuestSequence reference37 = ref span50[num]; + ref QuestSequence reference37 = ref span18[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj31.Steps = list55; reference37 = obj31; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span18[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -115638,9 +96071,8 @@ public static class AssemblyQuestLoader num2 = 2; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span22 = CollectionsMarshal.AsSpan(list56); + span22[0] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8125u, ItemCount = 2, @@ -115652,8 +96084,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -115680,26 +96111,21 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "Censored"; + CollectionsMarshal.AsSpan(list57)[0] = "Censored"; questRoot10.Author = list57; - index = 4; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference39 = ref span58[num]; + num = 4; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span23 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference39 = ref span23[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -115719,8 +96145,7 @@ public static class AssemblyQuestLoader }; obj33.Steps = list59; reference39 = obj33; - num++; - ref QuestSequence reference40 = ref span58[num]; + ref QuestSequence reference40 = ref span23[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -115728,9 +96153,8 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - ref QuestStep reference41 = ref span60[index2]; + Span span24 = CollectionsMarshal.AsSpan(list60); + ref QuestStep reference41 = ref span24[0]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2004490u, new Vector3(596.704f, 303.5476f, -89.982544f), 155) { Fly = true, @@ -115747,65 +96171,47 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); obj35.CompletionQuestVariablesFlags = list61; reference41 = obj35; - index2++; - ref QuestStep reference42 = ref span60[index2]; + ref QuestStep reference42 = ref span24[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2004491u, new Vector3(638.239f, 304.7379f, -93.888794f), 155); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list62; reference42 = questStep7; - index2++; - span60[index2] = new QuestStep(EInteractionType.Interact, 2004492u, new Vector3(618.95166f, 301.13672f, -43.47296f), 155); + span24[2] = new QuestStep(EInteractionType.Interact, 2004492u, new Vector3(618.95166f, 301.13672f, -43.47296f), 155); obj34.Steps = list60; reference40 = obj34; - num++; - ref QuestSequence reference43 = ref span58[num]; + ref QuestSequence reference43 = ref span23[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj36.Steps = list63; reference43 = obj36; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span23[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -115813,9 +96219,8 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span27 = CollectionsMarshal.AsSpan(list64); + span27[0] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8126u, ItemCount = 1, @@ -115827,8 +96232,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -115855,26 +96259,21 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "Censored"; + CollectionsMarshal.AsSpan(list65)[0] = "Censored"; questRoot11.Author = list65; - index = 4; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference45 = ref span66[num]; + num = 4; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span28 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference45 = ref span28[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -115894,8 +96293,7 @@ public static class AssemblyQuestLoader }; obj38.Steps = list67; reference45 = obj38; - num++; - ref QuestSequence reference46 = ref span66[num]; + ref QuestSequence reference46 = ref span28[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -115903,9 +96301,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Say, 1009649u, new Vector3(627.8019f, 300.56494f, -16.434021f), 155) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Say, 1009649u, new Vector3(627.8019f, 300.56494f, -16.434021f), 155) { Fly = true, Land = true, @@ -115917,25 +96313,21 @@ public static class AssemblyQuestLoader }; obj39.Steps = list68; reference46 = obj39; - num++; - ref QuestSequence reference47 = ref span66[num]; + ref QuestSequence reference47 = ref span28[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj40.Steps = list69; reference47 = obj40; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span28[3]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -115943,9 +96335,8 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Craft, null, null, 155) + Span span29 = CollectionsMarshal.AsSpan(list70); + span29[0] = new QuestStep(EInteractionType.Craft, null, null, 155) { ItemId = 8127u, ItemCount = 2, @@ -115957,8 +96348,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) + span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1009216u, new Vector3(164.35486f, -22.797548f, 114.64099f), 154) { Fly = true, Land = true, @@ -115985,26 +96375,21 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot12.Author = list71; - index = 6; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference49 = ref span72[num]; + num = 6; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span30 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference49 = ref span30[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -116017,8 +96402,7 @@ public static class AssemblyQuestLoader }; obj42.Steps = list73; reference49 = obj42; - num++; - ref QuestSequence reference50 = ref span72[num]; + ref QuestSequence reference50 = ref span30[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -116026,9 +96410,8 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + Span span31 = CollectionsMarshal.AsSpan(list74); + span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -116040,29 +96423,24 @@ public static class AssemblyQuestLoader } } }; - index2++; - span74[index2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span31[1] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj43.Steps = list74; reference50 = obj43; - num++; - ref QuestSequence reference51 = ref span72[num]; + ref QuestSequence reference51 = ref span30[2]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj44.Steps = list75; reference51 = obj44; - num++; - ref QuestSequence reference52 = ref span72[num]; + ref QuestSequence reference52 = ref span30[3]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -116070,27 +96448,22 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 2004573u, new Vector3(36.545288f, -3.7080078f, 225.7572f), 152) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 2004573u, new Vector3(36.545288f, -3.7080078f, 225.7572f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj45.Steps = list76; reference52 = obj45; - num++; - ref QuestSequence reference53 = ref span72[num]; + ref QuestSequence reference53 = ref span30[4]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list77 = new List(index2); - CollectionsMarshal.SetCount(list77, index2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num2 = 0; - ref QuestStep reference54 = ref span77[num2]; + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-83.15885f, -5.7812023f, 321.49606f), 152) { StopDistance = 0.5f, @@ -116100,17 +96473,14 @@ public static class AssemblyQuestLoader num3 = 2; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = 3552u; - num4++; - span78[num4] = 3553u; + Span span32 = CollectionsMarshal.AsSpan(list78); + span32[0] = 3552u; + span32[1] = 3553u; obj47.KillEnemyDataIds = list78; reference54 = obj47; obj46.Steps = list77; reference53 = obj46; - num++; - ref QuestSequence reference55 = ref span72[num]; + ref QuestSequence reference55 = ref span30[5]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -116118,16 +96488,12 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - ref QuestStep reference56 = ref span79[index2]; + ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1009721u, new Vector3(-83.36011f, -5.6851597f, 322.43823f), 152); - num4 = 1; - List list80 = new List(num4); - CollectionsMarshal.SetCount(list80, num4); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - span80[num3] = new DialogueChoice + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST010_01570_Q1_000_000"), @@ -116145,26 +96511,21 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "liza"; + CollectionsMarshal.AsSpan(list81)[0] = "liza"; questRoot13.Author = list81; - index = 9; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference57 = ref span82[num]; + num = 9; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span33 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference57 = ref span33[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -116177,8 +96538,7 @@ public static class AssemblyQuestLoader }; obj49.Steps = list83; reference57 = obj49; - num++; - ref QuestSequence reference58 = ref span82[num]; + ref QuestSequence reference58 = ref span33[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -116186,26 +96546,22 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj50.Steps = list84; reference58 = obj50; - num++; - ref QuestSequence reference59 = ref span82[num]; + ref QuestSequence reference59 = ref span33[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference60 = ref span85[num2]; + num2 = 2; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span34 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference60 = ref span34[0]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180) { StopDistance = 0.5f, @@ -116215,38 +96571,27 @@ public static class AssemblyQuestLoader num3 = 3; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - num4 = 0; - span86[num4] = 2864u; - num4++; - span86[num4] = 2865u; - num4++; - span86[num4] = 2866u; + Span span35 = CollectionsMarshal.AsSpan(list86); + span35[0] = 2864u; + span35[1] = 2865u; + span35[2] = 2866u; obj52.KillEnemyDataIds = list86; - 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; + 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; obj52.CompletionQuestVariablesFlags = list87; reference60 = obj52; - num2++; - span85[num2] = new QuestStep(EInteractionType.Interact, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180); + span34[1] = new QuestStep(EInteractionType.Interact, 1009726u, new Vector3(-280.8728f, 62.620903f, -201.9837f), 180); obj51.Steps = list85; reference59 = obj51; - num++; - ref QuestSequence reference61 = ref span82[num]; + ref QuestSequence reference61 = ref span33[3]; QuestSequence obj53 = new QuestSequence { Sequence = 3 @@ -116254,30 +96599,24 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1006331u, new Vector3(-144.15204f, 64.989944f, -209.88788f), 180) { Fly = true }; obj53.Steps = list88; reference61 = obj53; - num++; - ref QuestSequence reference62 = ref span82[num]; + ref QuestSequence reference62 = ref span33[4]; QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj54.Steps = list89; reference62 = obj54; - num++; - ref QuestSequence reference63 = ref span82[num]; + ref QuestSequence reference63 = ref span33[5]; QuestSequence obj55 = new QuestSequence { Sequence = 5 @@ -116285,30 +96624,24 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1009730u, new Vector3(-145.8305f, 64.83713f, -209.24695f), 180); + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1009730u, new Vector3(-145.8305f, 64.83713f, -209.24695f), 180); obj55.Steps = list90; reference63 = obj55; - num++; - ref QuestSequence reference64 = ref span82[num]; + ref QuestSequence reference64 = ref span33[6]; QuestSequence obj56 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj56.Steps = list91; reference64 = obj56; - num++; - ref QuestSequence reference65 = ref span82[num]; + ref QuestSequence reference65 = ref span33[7]; QuestSequence obj57 = new QuestSequence { Sequence = 7 @@ -116316,26 +96649,21 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1009753u, new Vector3(-107.408325f, 64.38365f, -223.62103f), 180) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1009753u, new Vector3(-107.408325f, 64.38365f, -223.62103f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj57.Steps = list92; reference65 = obj57; - num++; - ref QuestSequence reference66 = ref span82[num]; + ref QuestSequence reference66 = ref span33[8]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(33) }; @@ -116348,16 +96676,13 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "liza"; + CollectionsMarshal.AsSpan(list94)[0] = "liza"; questRoot14.Author = list94; - index = 6; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference67 = ref span95[num]; + num = 6; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span37 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference67 = ref span37[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -116365,9 +96690,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -116380,18 +96703,15 @@ public static class AssemblyQuestLoader }; obj59.Steps = list96; reference67 = obj59; - num++; - ref QuestSequence reference68 = ref span95[num]; + ref QuestSequence reference68 = ref span37[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -116401,8 +96721,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list97; reference68 = obj60; - num++; - ref QuestSequence reference69 = ref span95[num]; + ref QuestSequence reference69 = ref span37[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -116410,9 +96729,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Interact, 1009733u, new Vector3(-356.31348f, 8.000001f, 49.54602f), 129) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1009733u, new Vector3(-356.31348f, 8.000001f, 49.54602f), 129) { AethernetShortcut = new AethernetShortcut { @@ -116422,22 +96739,18 @@ public static class AssemblyQuestLoader }; obj61.Steps = list98; reference69 = obj61; - num++; - ref QuestSequence reference70 = ref span95[num]; + ref QuestSequence reference70 = ref span37[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj62.Steps = list99; reference70 = obj62; - num++; - ref QuestSequence reference71 = ref span95[num]; + ref QuestSequence reference71 = ref span37[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -116445,9 +96758,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.UseItem, 2004570u, new Vector3(-83.634705f, 1.9378662f, 826.10803f), 135) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.UseItem, 2004570u, new Vector3(-83.634705f, 1.9378662f, 826.10803f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -116455,18 +96766,16 @@ public static class AssemblyQuestLoader }; obj63.Steps = list100; reference71 = obj63; - num++; - ref QuestSequence reference72 = ref span95[num]; + ref QuestSequence reference72 = ref span37[5]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -116482,14 +96791,12 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262186u) } }; - num2++; - span101[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.249344f, 2.1958525f, 826.0164f), 135) + span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.249344f, 2.1958525f, 826.0164f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - num2++; - span101[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009735u, new Vector3(-84.21454f, 1.802455f, 826.5963f), 135) + span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1009735u, new Vector3(-84.21454f, 1.802455f, 826.5963f), 135) { NextQuestId = new QuestId(1575) }; @@ -116502,16 +96809,13 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot15.Author = list102; - index = 5; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference73 = ref span103[num]; + num = 5; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span39 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference73 = ref span39[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -116519,9 +96823,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -116534,18 +96836,15 @@ public static class AssemblyQuestLoader }; obj65.Steps = list104; reference73 = obj65; - num++; - ref QuestSequence reference74 = ref span103[num]; + ref QuestSequence reference74 = ref span39[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -116555,8 +96854,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list105; reference74 = obj66; - num++; - ref QuestSequence reference75 = ref span103[num]; + ref QuestSequence reference75 = ref span39[2]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -116564,26 +96862,22 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj67.Steps = list106; reference75 = obj67; - num++; - ref QuestSequence reference76 = ref span103[num]; + ref QuestSequence reference76 = ref span39[3]; QuestSequence obj68 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -116592,15 +96886,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahAlchemist } }; - num2++; - span107[num2] = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) + span40[1] = new QuestStep(EInteractionType.Interact, 1002299u, new Vector3(-98.8938f, 40.200146f, 120.83618f), 131) { StopDistance = 7f }; obj68.Steps = list107; reference76 = obj68; - num++; - ref QuestSequence reference77 = ref span103[num]; + ref QuestSequence reference77 = ref span39[4]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -116608,9 +96900,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1009744u, new Vector3(-47.470886f, 40f, 60.68506f), 128) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1009744u, new Vector3(-47.470886f, 40f, 60.68506f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -116629,26 +96919,21 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot16.Author = list109; - index = 11; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference78 = ref span110[num]; + num = 11; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span41 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference78 = ref span41[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -116666,8 +96951,7 @@ public static class AssemblyQuestLoader }; obj70.Steps = list111; reference78 = obj70; - num++; - ref QuestSequence reference79 = ref span110[num]; + ref QuestSequence reference79 = ref span41[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -116675,9 +96959,8 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span42 = CollectionsMarshal.AsSpan(list112); + span42[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -116687,22 +96970,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - index2++; - span112[index2] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); + span42[1] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); obj71.Steps = list112; reference79 = obj71; - num++; - ref QuestSequence reference80 = ref span110[num]; + ref QuestSequence reference80 = ref span41[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list113 = new List(index2); - CollectionsMarshal.SetCount(list113, index2); - Span span113 = CollectionsMarshal.AsSpan(list113); - num2 = 0; - ref QuestStep reference81 = ref span113[num2]; + num2 = 2; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + Span span43 = CollectionsMarshal.AsSpan(list113); + ref QuestStep reference81 = ref span43[0]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2004581u, new Vector3(354.72632f, 5.5999756f, -30.167114f), 153) { Fly = true, @@ -116712,30 +96992,21 @@ public static class AssemblyQuestLoader num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num4 = 0; - span114[num4] = 2843u; + CollectionsMarshal.AsSpan(list114)[0] = 2843u; obj73.KillEnemyDataIds = list114; - 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); + 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); obj73.CompletionQuestVariablesFlags = list115; reference81 = obj73; - num2++; - ref QuestStep reference82 = ref span113[num2]; + ref QuestStep reference82 = ref span43[1]; QuestStep obj74 = new QuestStep(EInteractionType.Combat, 2004582u, new Vector3(343.2821f, 2.4261475f, 8.895996f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -116743,32 +97014,23 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span116 = CollectionsMarshal.AsSpan(list116); - num4 = 0; - span116[num4] = 2843u; + CollectionsMarshal.AsSpan(list116)[0] = 2843u; obj74.KillEnemyDataIds = list116; - 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); + 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); obj74.CompletionQuestVariablesFlags = list117; reference82 = obj74; obj72.Steps = list113; reference80 = obj72; - num++; - ref QuestSequence reference83 = ref span110[num]; + ref QuestSequence reference83 = ref span41[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -116776,16 +97038,12 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - ref QuestStep reference84 = ref span118[index2]; + ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list118)[0]; 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); - Span span119 = CollectionsMarshal.AsSpan(list119); - num4 = 0; - span119[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list119)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST014_01574_Q1_000_000"), @@ -116795,22 +97053,18 @@ public static class AssemblyQuestLoader reference84 = questStep9; obj75.Steps = list118; reference83 = obj75; - num++; - ref QuestSequence reference85 = ref span110[num]; + ref QuestSequence reference85 = ref span41[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj76.Steps = list120; reference85 = obj76; - num++; - ref QuestSequence reference86 = ref span110[num]; + ref QuestSequence reference86 = ref span41[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 @@ -116818,26 +97072,22 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1009756u, new Vector3(377.40137f, 0.37321654f, 119.920654f), 153) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1009756u, new Vector3(377.40137f, 0.37321654f, 119.920654f), 153) { Fly = true }; obj77.Steps = list121; reference86 = obj77; - num++; - ref QuestSequence reference87 = ref span110[num]; + ref QuestSequence reference87 = ref span41[6]; QuestSequence obj78 = new QuestSequence { Sequence = 6 }; - 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) + 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) { TargetTerritoryId = (ushort)152, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -116847,12 +97097,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - num2++; - span122[num2] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); + span46[1] = new QuestStep(EInteractionType.Interact, 1009754u, new Vector3(-571.4351f, 10.28263f, 61.020752f), 152); obj78.Steps = list122; reference87 = obj78; - num++; - ref QuestSequence reference88 = ref span110[num]; + ref QuestSequence reference88 = ref span41[7]; QuestSequence obj79 = new QuestSequence { Sequence = 7 @@ -116860,45 +97108,37 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1009758u, new Vector3(-161.24213f, 7.554849f, 107.10303f), 153) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1009758u, new Vector3(-161.24213f, 7.554849f, 107.10303f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj79.Steps = list123; reference88 = obj79; - num++; - ref QuestSequence reference89 = ref span110[num]; + ref QuestSequence reference89 = ref span41[8]; QuestSequence obj80 = new QuestSequence { Sequence = 8 }; - index2 = 1; - List list124 = new List(index2); - CollectionsMarshal.SetCount(list124, index2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num2 = 0; - ref QuestStep reference90 = ref span124[num2]; + num2 = 1; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list124)[0]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2004846u, new Vector3(-181.44507f, 8.0720215f, 101.27405f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span47 = CollectionsMarshal.AsSpan(list125); + span47[0] = 2863u; + span47[1] = 3558u; obj81.KillEnemyDataIds = list125; reference90 = obj81; obj80.Steps = list124; reference89 = obj80; - num++; - ref QuestSequence reference91 = ref span110[num]; + ref QuestSequence reference91 = ref span41[9]; QuestSequence obj82 = new QuestSequence { Sequence = 9 @@ -116906,26 +97146,21 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1009760u, new Vector3(-235.21783f, 6.619436f, 609.39954f), 153) { Fly = true }; obj82.Steps = list126; reference91 = obj82; - num++; - ref QuestSequence reference92 = ref span110[num]; + ref QuestSequence reference92 = ref span41[10]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1572) }; @@ -116938,16 +97173,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot17.Author = list128; - index = 13; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference93 = ref span129[num]; + num = 13; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span48 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference93 = ref span48[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -116955,9 +97187,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -116970,25 +97200,21 @@ public static class AssemblyQuestLoader }; obj84.Steps = list130; reference93 = obj84; - num++; - ref QuestSequence reference94 = ref span129[num]; + ref QuestSequence reference94 = ref span48[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj85.Steps = list131; reference94 = obj85; - num++; - ref QuestSequence reference95 = ref span129[num]; + ref QuestSequence reference95 = ref span48[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -116996,9 +97222,7 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - ref QuestStep reference96 = ref span132[index2]; + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list132)[0]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, null, new Vector3(328.4609f, -5.423937f, 266.34305f), 154) { StopDistance = 0.5f, @@ -117008,34 +97232,27 @@ public static class AssemblyQuestLoader num3 = 2; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span133 = CollectionsMarshal.AsSpan(list133); - num4 = 0; - span133[num4] = 3556u; - num4++; - span133[num4] = 3557u; + Span span49 = CollectionsMarshal.AsSpan(list133); + span49[0] = 3556u; + span49[1] = 3557u; obj87.KillEnemyDataIds = list133; reference96 = obj87; obj86.Steps = list132; reference95 = obj86; - num++; - ref QuestSequence reference97 = ref span129[num]; + ref QuestSequence reference97 = ref span48[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list134 = new List(index2); - CollectionsMarshal.SetCount(list134, index2); - Span span134 = CollectionsMarshal.AsSpan(list134); - num2 = 0; - ref QuestStep reference98 = ref span134[num2]; + num2 = 1; + List list134 = new List(num2); + CollectionsMarshal.SetCount(list134, num2); + ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list134)[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1010405u, new Vector3(334.73718f, -6.0854516f, 270.74072f), 154); - num4 = 1; - List list135 = new List(num4); - CollectionsMarshal.SetCount(list135, num4); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = new DialogueChoice + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBPST015_01575_Q1_000_070"), @@ -117045,8 +97262,7 @@ public static class AssemblyQuestLoader reference98 = questStep10; obj88.Steps = list134; reference97 = obj88; - num++; - ref QuestSequence reference99 = ref span129[num]; + ref QuestSequence reference99 = ref span48[4]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -117054,33 +97270,27 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 1010407u, new Vector3(225.54358f, -25.225279f, 233.56982f), 154) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1010407u, new Vector3(225.54358f, -25.225279f, 233.56982f), 154) { Fly = true }; obj89.Steps = list136; reference99 = obj89; - num++; - ref QuestSequence reference100 = ref span129[num]; + ref QuestSequence reference100 = ref span48[5]; QuestSequence obj90 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj90.Steps = list137; reference100 = obj90; - num++; - ref QuestSequence reference101 = ref span129[num]; + ref QuestSequence reference101 = ref span48[6]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -117088,32 +97298,26 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154); + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154); obj91.Steps = list138; reference101 = obj91; - num++; - ref QuestSequence reference102 = ref span129[num]; + ref QuestSequence reference102 = ref span48[7]; QuestSequence obj92 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span139[num2] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); + span50[1] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); obj92.Steps = list139; reference102 = obj92; - num++; - ref QuestSequence reference103 = ref span129[num]; + ref QuestSequence reference103 = ref span48[8]; QuestSequence obj93 = new QuestSequence { Sequence = 8 @@ -117121,33 +97325,27 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { Fly = true }; obj93.Steps = list140; reference103 = obj93; - num++; - ref QuestSequence reference104 = ref span129[num]; + ref QuestSequence reference104 = ref span48[9]; QuestSequence obj94 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true }; obj94.Steps = list141; reference104 = obj94; - num++; - ref QuestSequence reference105 = ref span129[num]; + ref QuestSequence reference105 = ref span48[10]; QuestSequence obj95 = new QuestSequence { Sequence = 10 @@ -117155,35 +97353,29 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.Interact, 1010509u, new Vector3(63.370728f, -13.485855f, 141.86316f), 154) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 1010509u, new Vector3(63.370728f, -13.485855f, 141.86316f), 154) { Fly = true }; obj95.Steps = list142; reference105 = obj95; - num++; - ref QuestSequence reference106 = ref span129[num]; + ref QuestSequence reference106 = ref span48[11]; QuestSequence obj96 = new QuestSequence { Sequence = 11 }; - 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) + 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) { Fly = true }; - num2++; - span143[num2] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); + span51[1] = new QuestStep(EInteractionType.Interact, 1010409u, new Vector3(-20.279297f, -34.656372f, 172.13696f), 154); obj96.Steps = list143; reference106 = obj96; - num++; - ref QuestSequence reference107 = ref span129[num]; + ref QuestSequence reference107 = ref span48[12]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -117191,9 +97383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006406u, new Vector3(63.156982f, -13.3626f, 140.91699f), 154) { Fly = true, NextQuestId = new QuestId(243) @@ -117207,26 +97397,21 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; questRoot18.Author = list145; - index = 9; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference108 = ref span146[num]; + num = 9; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span52 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference108 = ref span52[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -117239,8 +97424,7 @@ public static class AssemblyQuestLoader }; obj98.Steps = list147; reference108 = obj98; - num++; - ref QuestSequence reference109 = ref span146[num]; + ref QuestSequence reference109 = ref span52[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -117248,31 +97432,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj99.Steps = list148; reference109 = obj99; - num++; - ref QuestSequence reference110 = ref span146[num]; + ref QuestSequence reference110 = ref span52[2]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - ref QuestStep reference111 = ref span149[num2]; + ref QuestStep reference111 = ref span53[1]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 2004884u, new Vector3(-64.86609f, -1.5411987f, -69.50488f), 146) { Fly = true @@ -117280,48 +97459,33 @@ public static class AssemblyQuestLoader num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - 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); + 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); obj101.CompletionQuestVariablesFlags = list150; reference111 = obj101; - num2++; - ref QuestStep reference112 = ref span149[num2]; + ref QuestStep reference112 = ref span53[2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2004883u, new Vector3(-53.635498f, -1.3886108f, -53.391357f), 146); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list151; reference112 = questStep11; - num2++; - span149[num2] = new QuestStep(EInteractionType.Interact, 2004882u, new Vector3(-69.077576f, -2.1820679f, -32.913757f), 146); + span53[3] = new QuestStep(EInteractionType.Interact, 2004882u, new Vector3(-69.077576f, -2.1820679f, -32.913757f), 146); obj100.Steps = list149; reference110 = obj100; - num++; - ref QuestSequence reference113 = ref span146[num]; + ref QuestSequence reference113 = ref span52[3]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -117329,34 +97493,28 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1006211u, new Vector3(-217.48688f, 26.258211f, -361.2574f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj102.Steps = list152; reference113 = obj102; - num++; - ref QuestSequence reference114 = ref span146[num]; + ref QuestSequence reference114 = ref span52[4]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj103.Steps = list153; reference114 = obj103; - num++; - ref QuestSequence reference115 = ref span146[num]; + ref QuestSequence reference115 = ref span52[5]; QuestSequence obj104 = new QuestSequence { Sequence = 5 @@ -117364,26 +97522,22 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) { Fly = true }; obj104.Steps = list154; reference115 = obj104; - num++; - ref QuestSequence reference116 = ref span146[num]; + ref QuestSequence reference116 = ref span52[6]; QuestSequence obj105 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list155 = new List(index2); - CollectionsMarshal.SetCount(list155, index2); - Span span155 = CollectionsMarshal.AsSpan(list155); - num2 = 0; - ref QuestStep reference117 = ref span155[num2]; + num2 = 2; + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + Span span56 = CollectionsMarshal.AsSpan(list155); + ref QuestStep reference117 = ref span56[0]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, null, new Vector3(-155.2711f, -32.952675f, 242.00226f), 145) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -117391,22 +97545,18 @@ public static class AssemblyQuestLoader num3 = 2; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span156 = CollectionsMarshal.AsSpan(list156); - num4 = 0; - span156[num4] = 3554u; - num4++; - span156[num4] = 3555u; + Span span57 = CollectionsMarshal.AsSpan(list156); + span57[0] = 3554u; + span57[1] = 3555u; obj106.KillEnemyDataIds = list156; reference117 = obj106; - num2++; - span155[num2] = new QuestStep(EInteractionType.Interact, 1010417u, new Vector3(-154.37555f, -31.787657f, 244.7699f), 145) + span56[1] = new QuestStep(EInteractionType.Interact, 1010417u, new Vector3(-154.37555f, -31.787657f, 244.7699f), 145) { StopDistance = 5f }; obj105.Steps = list155; reference116 = obj105; - num++; - ref QuestSequence reference118 = ref span146[num]; + ref QuestSequence reference118 = ref span52[7]; QuestSequence obj107 = new QuestSequence { Sequence = 7 @@ -117414,27 +97564,22 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1006196u, new Vector3(-63.98114f, -20.296238f, -5.142395f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj107.Steps = list157; reference118 = obj107; - num++; - ref QuestSequence reference119 = ref span146[num]; + ref QuestSequence reference119 = ref span52[8]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, NextQuestId = new QuestId(1577) @@ -117448,16 +97593,13 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - Span span159 = CollectionsMarshal.AsSpan(list159); - index = 0; - span159[index] = "liza"; + CollectionsMarshal.AsSpan(list159)[0] = "liza"; questRoot19.Author = list159; - index = 10; - List list160 = new List(index); - CollectionsMarshal.SetCount(list160, index); - Span span160 = CollectionsMarshal.AsSpan(list160); - num = 0; - ref QuestSequence reference120 = ref span160[num]; + num = 10; + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + Span span58 = CollectionsMarshal.AsSpan(list160); + ref QuestSequence reference120 = ref span58[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -117465,9 +97607,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009153u, new Vector3(-39.108948f, 20f, 5.416931f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -117480,24 +97620,20 @@ public static class AssemblyQuestLoader }; obj109.Steps = list161; reference120 = obj109; - num++; - ref QuestSequence reference121 = ref span160[num]; + ref QuestSequence reference121 = ref span58[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj110.Steps = list162; reference121 = obj110; - num++; - ref QuestSequence reference122 = ref span160[num]; + ref QuestSequence reference122 = ref span58[2]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -117505,34 +97641,28 @@ public static class AssemblyQuestLoader num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - 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); + 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); obj111.Steps = list163; reference122 = obj111; - num++; - ref QuestSequence reference123 = ref span160[num]; + ref QuestSequence reference123 = ref span58[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)129 }; - num2++; - span164[num2] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); + span61[1] = new QuestStep(EInteractionType.Interact, 1010423u, new Vector3(-20.73706f, 19.999937f, 4.257263f), 129); obj112.Steps = list164; reference123 = obj112; - num++; - ref QuestSequence reference124 = ref span160[num]; + ref QuestSequence reference124 = ref span58[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -117540,27 +97670,21 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1002433u, new Vector3(-6.729248f, 20.333345f, -0.7477417f), 129); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1002433u, new Vector3(-6.729248f, 20.333345f, -0.7477417f), 129); obj113.Steps = list165; reference124 = obj113; - num++; - ref QuestSequence reference125 = ref span160[num]; + ref QuestSequence reference125 = ref span58[5]; QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj114.Steps = list166; reference125 = obj114; - num++; - ref QuestSequence reference126 = ref span160[num]; + ref QuestSequence reference126 = ref span58[6]; QuestSequence obj115 = new QuestSequence { Sequence = 6 @@ -117568,9 +97692,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129) + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129) { AethernetShortcut = new AethernetShortcut { @@ -117580,25 +97702,21 @@ public static class AssemblyQuestLoader }; obj115.Steps = list167; reference126 = obj115; - num++; - ref QuestSequence reference127 = ref span160[num]; + ref QuestSequence reference127 = ref span58[7]; QuestSequence obj116 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 7f }; obj116.Steps = list168; reference127 = obj116; - num++; - ref QuestSequence reference128 = ref span160[num]; + ref QuestSequence reference128 = ref span58[8]; QuestSequence obj117 = new QuestSequence { Sequence = 8 @@ -117606,23 +97724,18 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129); + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1010424u, new Vector3(-172.59485f, 4.284276f, 168.07812f), 129); obj117.Steps = list169; reference128 = obj117; - num++; - ref QuestSequence reference129 = ref span160[num]; + ref QuestSequence reference129 = ref span58[9]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(241) }; @@ -117635,16 +97748,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list171)[0] = "JerryWester"; questRoot20.Author = list171; - index = 6; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference130 = ref span172[num]; + num = 6; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span62 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference130 = ref span62[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -117652,30 +97762,24 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010925u, new Vector3(-1.4191895f, 0.014982708f, -0.07635498f), 395) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010925u, new Vector3(-1.4191895f, 0.014982708f, -0.07635498f), 395) { StopDistance = 7f }; obj119.Steps = list173; reference130 = obj119; - num++; - ref QuestSequence reference131 = ref span172[num]; + ref QuestSequence reference131 = ref span62[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj120.Steps = list174; reference131 = obj120; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span62[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -117683,29 +97787,24 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.Interact, 2004781u, new Vector3(-4f, 1.2f, 11f), 395) + Span span63 = CollectionsMarshal.AsSpan(list175); + span63[0] = new QuestStep(EInteractionType.Interact, 2004781u, new Vector3(-4f, 1.2f, 11f), 395) { TargetTerritoryId = (ushort)155 }; - index2++; - span175[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) + span63[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-133.9223f, 304.15378f, -292.65924f), 155) { Fly = true }; - index2++; - ref QuestStep reference133 = ref span175[index2]; + ref QuestStep reference133 = ref span63[2]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1012309u, new Vector3(-163.89722f, 304.1538f, -333.05872f), 155) { Fly = true }; - num4 = 1; - List list176 = new List(num4); - CollectionsMarshal.SetCount(list176, num4); - Span span176 = CollectionsMarshal.AsSpan(list176); - num3 = 0; - span176[num3] = new DialogueChoice + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA101_01580_SCENE00005_EVENTAREA_WARP_YESNO_TITLE") @@ -117714,27 +97813,22 @@ public static class AssemblyQuestLoader reference133 = obj122; obj121.Steps = list175; reference132 = obj121; - num++; - span172[num] = new QuestSequence + span62[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference134 = ref span172[num]; + ref QuestSequence reference134 = ref span62[4]; QuestSequence obj123 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj123.Steps = list177; reference134 = obj123; - num++; - ref QuestSequence reference135 = ref span172[num]; + ref QuestSequence reference135 = ref span62[5]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -117742,19 +97836,16 @@ public static class AssemblyQuestLoader num2 = 11; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) + Span span64 = CollectionsMarshal.AsSpan(list178); + span64[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 418) { Aetheryte = EAetheryteLocation.Ishgard }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + span64[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardSkysteelManufactory }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + span64[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardBrume, AethernetShortcut = new AethernetShortcut @@ -117763,43 +97854,35 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Ishgard } }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) + span64[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 418) { AethernetShard = EAetheryteLocation.IshgardForgottenKnight }; - index2++; - span178[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) + span64[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(53.15989f, 30.584269f, -82.98525f), 418) { TargetTerritoryId = (ushort)419 }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span64[5] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardAthenaeumAstrologicum }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span64[6] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardTribunal }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span64[7] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardSaintReymanaudsCathedral }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span64[8] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardJeweledCrozier }; - index2++; - span178[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) + span64[9] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 419) { AethernetShard = EAetheryteLocation.IshgardLastVigil }; - index2++; - span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012313u, new Vector3(15.609924f, 16.009666f, -6.515625f), 419); + span64[10] = new QuestStep(EInteractionType.CompleteQuest, 1012313u, new Vector3(15.609924f, 16.009666f, -6.515625f), 419); obj124.Steps = list178; reference135 = obj124; questRoot20.QuestSequence = list172; @@ -117809,30 +97892,24 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; questRoot21.Author = list179; - index = 5; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference136 = ref span180[num]; + num = 5; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span65 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference136 = ref span65[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj125.Steps = list181; reference136 = obj125; - num++; - ref QuestSequence reference137 = ref span180[num]; + ref QuestSequence reference137 = ref span65[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -117840,30 +97917,24 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1012316u, new Vector3(12.130859f, 16.009666f, -7.0039062f), 419) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1012316u, new Vector3(12.130859f, 16.009666f, -7.0039062f), 419) { StopDistance = 5f }; obj126.Steps = list182; reference137 = obj126; - num++; - ref QuestSequence reference138 = ref span180[num]; + ref QuestSequence reference138 = ref span65[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj127.Steps = list183; reference138 = obj127; - num++; - ref QuestSequence reference139 = ref span180[num]; + ref QuestSequence reference139 = ref span65[3]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -117871,9 +97942,7 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut { @@ -117883,18 +97952,15 @@ public static class AssemblyQuestLoader }; obj128.Steps = list184; reference139 = obj128; - num++; - ref QuestSequence reference140 = ref span180[num]; + ref QuestSequence reference140 = ref span65[4]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -117911,16 +97977,13 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; questRoot22.Author = list186; - index = 4; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference141 = ref span187[num]; + num = 4; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span66 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference141 = ref span66[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -117928,9 +97991,7 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012323u, new Vector3(-50.21753f, 8.05915f, 15.457336f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -117943,18 +98004,15 @@ public static class AssemblyQuestLoader }; obj130.Steps = list188; reference141 = obj130; - num++; - ref QuestSequence reference142 = ref span187[num]; + ref QuestSequence reference142 = ref span66[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -117964,8 +98022,7 @@ public static class AssemblyQuestLoader }; obj131.Steps = list189; reference142 = obj131; - num++; - ref QuestSequence reference143 = ref span187[num]; + ref QuestSequence reference143 = ref span66[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -117973,9 +98030,8 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span67 = CollectionsMarshal.AsSpan(list190); + span67[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -117984,22 +98040,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - index2++; - span190[index2] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); + span67[1] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); obj132.Steps = list190; reference143 = obj132; - num++; - ref QuestSequence reference144 = ref span187[num]; + ref QuestSequence reference144 = ref span66[3]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj133.Steps = list191; reference144 = obj133; questRoot22.QuestSequence = list187; @@ -118009,16 +98061,13 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list192)[0] = "JerryWester"; questRoot23.Author = list192; - index = 5; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref QuestSequence reference145 = ref span193[num]; + num = 5; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span68 = CollectionsMarshal.AsSpan(list193); + ref QuestSequence reference145 = ref span68[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -118026,28 +98075,23 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); obj134.Steps = list194; reference145 = obj134; - num++; - ref QuestSequence reference146 = ref span193[num]; + ref QuestSequence reference146 = ref span68[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - ref QuestStep reference147 = ref span195[num2]; + ref QuestStep reference147 = ref span69[1]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1012331u, new Vector3(-163.43939f, 2.1510596f, -5.508545f), 418) { AethernetShortcut = new AethernetShortcut @@ -118059,9 +98103,7 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - Span span196 = CollectionsMarshal.AsSpan(list196); - num4 = 0; - span196[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list196)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA104_01583_SCENE00005_EVENTAREA_WARP_YESNO_TITLE") @@ -118070,13 +98112,11 @@ public static class AssemblyQuestLoader reference147 = obj136; obj135.Steps = list195; reference146 = obj135; - num++; - span193[num] = new QuestSequence + span68[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference148 = ref span193[num]; + ref QuestSequence reference148 = ref span68[3]; QuestSequence obj137 = new QuestSequence { Sequence = 3 @@ -118084,29 +98124,24 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 1012333u, new Vector3(481.40686f, 225.00232f, 793.14856f), 397); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1012333u, new Vector3(481.40686f, 225.00232f, 793.14856f), 397); obj137.Steps = list197; reference148 = obj137; - num++; - ref QuestSequence reference149 = ref span193[num]; + ref QuestSequence reference149 = ref span68[4]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, Aetheryte = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - num2++; - span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397); + span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397); obj138.Steps = list198; reference149 = obj138; questRoot23.QuestSequence = list193; @@ -118116,16 +98151,13 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list199)[0] = "JerryWester"; questRoot24.Author = list199; - index = 4; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference150 = ref span200[num]; + num = 4; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span71 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference150 = ref span71[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -118133,9 +98165,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -118148,22 +98178,18 @@ public static class AssemblyQuestLoader }; obj139.Steps = list201; reference150 = obj139; - num++; - ref QuestSequence reference151 = ref span200[num]; + ref QuestSequence reference151 = ref span71[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj140.Steps = list202; reference151 = obj140; - num++; - ref QuestSequence reference152 = ref span200[num]; + ref QuestSequence reference152 = ref span71[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -118171,114 +98197,84 @@ public static class AssemblyQuestLoader num2 = 3; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - ref QuestStep reference153 = ref span203[index2]; + Span span72 = CollectionsMarshal.AsSpan(list203); + ref QuestStep reference153 = ref span72[0]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2005403u, new Vector3(430.5067f, 225.0027f, 800.9321f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list204 = new List(num4); - CollectionsMarshal.SetCount(list204, num4); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - span204[num3] = 4376u; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = 4376u; obj142.KillEnemyDataIds = list204; num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - 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); + 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); obj142.CompletionQuestVariablesFlags = list205; reference153 = obj142; - index2++; - ref QuestStep reference154 = ref span203[index2]; + ref QuestStep reference154 = ref span72[1]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, 2005404u, new Vector3(552.39185f, 228.3512f, 725.9784f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list206 = new List(num4); - CollectionsMarshal.SetCount(list206, num4); - Span span206 = CollectionsMarshal.AsSpan(list206); - num3 = 0; - span206[num3] = 4376u; + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + CollectionsMarshal.AsSpan(list206)[0] = 4376u; obj143.KillEnemyDataIds = list206; num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - 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); + 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); obj143.CompletionQuestVariablesFlags = list207; reference154 = obj143; - index2++; - ref QuestStep reference155 = ref span203[index2]; + ref QuestStep reference155 = ref span72[2]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, 2005405u, new Vector3(421.59143f, 212.69543f, 708.1559f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list208 = new List(num4); - CollectionsMarshal.SetCount(list208, num4); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = 4376u; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + CollectionsMarshal.AsSpan(list208)[0] = 4376u; obj144.KillEnemyDataIds = list208; num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - 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); + 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); obj144.CompletionQuestVariablesFlags = list209; reference155 = obj144; obj141.Steps = list203; reference152 = obj141; - num++; - ref QuestSequence reference156 = ref span200[num]; + ref QuestSequence reference156 = ref span71[3]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj145.Steps = list210; reference156 = obj145; questRoot24.QuestSequence = list200; @@ -118288,16 +98284,13 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span211 = CollectionsMarshal.AsSpan(list211); - index = 0; - span211[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list211)[0] = "JerryWester"; questRoot25.Author = list211; - index = 4; - List list212 = new List(index); - CollectionsMarshal.SetCount(list212, index); - Span span212 = CollectionsMarshal.AsSpan(list212); - num = 0; - ref QuestSequence reference157 = ref span212[num]; + num = 4; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span76 = CollectionsMarshal.AsSpan(list212); + ref QuestSequence reference157 = ref span76[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -118305,29 +98298,23 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011236u, new Vector3(446.00586f, 217.95142f, 764.06494f), 397); obj146.Steps = list213; reference157 = obj146; - num++; - ref QuestSequence reference158 = ref span212[num]; + ref QuestSequence reference158 = ref span76[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj147.Steps = list214; reference158 = obj147; - num++; - ref QuestSequence reference159 = ref span212[num]; + ref QuestSequence reference159 = ref span76[2]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -118335,19 +98322,15 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - ref QuestStep reference160 = ref span215[index2]; + ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list215)[0]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(462.2118f, 164.57632f, 301.1987f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list216 = new List(num4); - CollectionsMarshal.SetCount(list216, num4); - Span span216 = CollectionsMarshal.AsSpan(list216); - num3 = 0; - span216[num3] = new ComplexCombatData + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + CollectionsMarshal.AsSpan(list216)[0] = new ComplexCombatData { DataId = 4803u, RewardItemId = 2001572u, @@ -118357,18 +98340,15 @@ public static class AssemblyQuestLoader reference160 = obj149; obj148.Steps = list215; reference159 = obj148; - num++; - ref QuestSequence reference161 = ref span212[num]; + ref QuestSequence reference161 = ref span76[3]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj150.Steps = list217; reference161 = obj150; questRoot25.QuestSequence = list212; @@ -118378,16 +98358,13 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list218)[0] = "JerryWester"; questRoot26.Author = list218; - index = 3; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference162 = ref span219[num]; + num = 3; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span78 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference162 = ref span78[0]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -118395,27 +98372,21 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011241u, new Vector3(501.7318f, 164.19402f, 301.13672f), 397); obj151.Steps = list220; reference162 = obj151; - num++; - ref QuestSequence reference163 = ref span219[num]; + ref QuestSequence reference163 = ref span78[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj152.Steps = list221; reference163 = obj152; - num++; - ref QuestSequence reference164 = ref span219[num]; + ref QuestSequence reference164 = ref span78[2]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -118423,9 +98394,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -118438,26 +98407,21 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - Span span223 = CollectionsMarshal.AsSpan(list223); - index = 0; - span223[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list223)[0] = "JerryWester"; questRoot27.Author = list223; - index = 6; - List list224 = new List(index); - CollectionsMarshal.SetCount(list224, index); - Span span224 = CollectionsMarshal.AsSpan(list224); - num = 0; - ref QuestSequence reference165 = ref span224[num]; + num = 6; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + Span span79 = CollectionsMarshal.AsSpan(list224); + ref QuestSequence reference165 = ref span79[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -118470,8 +98434,7 @@ public static class AssemblyQuestLoader }; obj154.Steps = list225; reference165 = obj154; - num++; - ref QuestSequence reference166 = ref span224[num]; + ref QuestSequence reference166 = ref span79[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -118479,27 +98442,21 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 1012334u, new Vector3(510.64307f, 217.95148f, 785.2445f), 397); + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1012334u, new Vector3(510.64307f, 217.95148f, 785.2445f), 397); obj155.Steps = list226; reference166 = obj155; - num++; - ref QuestSequence reference167 = ref span224[num]; + ref QuestSequence reference167 = ref span79[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj156.Steps = list227; reference167 = obj156; - num++; - ref QuestSequence reference168 = ref span224[num]; + ref QuestSequence reference168 = ref span79[3]; QuestSequence obj157 = new QuestSequence { Sequence = 3 @@ -118507,23 +98464,18 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 1012338u, new Vector3(354.6654f, 159.5203f, 140.67285f), 397); + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1012338u, new Vector3(354.6654f, 159.5203f, 140.67285f), 397); obj157.Steps = list228; reference168 = obj157; - num++; - ref QuestSequence reference169 = ref span224[num]; + ref QuestSequence reference169 = ref span79[4]; QuestSequence obj158 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list229 = new List(index2); - CollectionsMarshal.SetCount(list229, index2); - Span span229 = CollectionsMarshal.AsSpan(list229); - num2 = 0; - ref QuestStep reference170 = ref span229[num2]; + num2 = 1; + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list229)[0]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, null, new Vector3(81.99244f, 117.19824f, 152.92575f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -118531,19 +98483,15 @@ public static class AssemblyQuestLoader num3 = 3; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span230 = CollectionsMarshal.AsSpan(list230); - num4 = 0; - span230[num4] = 4377u; - num4++; - span230[num4] = 4378u; - num4++; - span230[num4] = 4379u; + Span span80 = CollectionsMarshal.AsSpan(list230); + span80[0] = 4377u; + span80[1] = 4378u; + span80[2] = 4379u; obj159.KillEnemyDataIds = list230; reference170 = obj159; obj158.Steps = list229; reference169 = obj158; - num++; - ref QuestSequence reference171 = ref span224[num]; + ref QuestSequence reference171 = ref span79[5]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -118551,9 +98499,7 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012340u, new Vector3(81.80359f, 117.19817f, 152.30017f), 397); + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012340u, new Vector3(81.80359f, 117.19817f, 152.30017f), 397); obj160.Steps = list231; reference171 = obj160; questRoot27.QuestSequence = list224; @@ -118563,33 +98509,27 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list232)[0] = "JerryWester"; questRoot28.Author = list232; - index = 3; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference172 = ref span233[num]; + num = 3; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span81 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference172 = ref span81[0]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj161.Steps = list234; reference172 = obj161; - num++; - ref QuestSequence reference173 = ref span233[num]; + ref QuestSequence reference173 = ref span81[1]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -118597,9 +98537,7 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005408u, new Vector3(103.77649f, 102.311646f, -42.404846f), 397) + CollectionsMarshal.AsSpan(list235)[0] = 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 @@ -118609,18 +98547,15 @@ public static class AssemblyQuestLoader }; obj162.Steps = list235; reference173 = obj162; - num++; - ref QuestSequence reference174 = ref span233[num]; + ref QuestSequence reference174 = ref span81[2]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj163.Steps = list236; reference174 = obj163; questRoot28.QuestSequence = list233; @@ -118630,16 +98565,13 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - Span span237 = CollectionsMarshal.AsSpan(list237); - index = 0; - span237[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list237)[0] = "JerryWester"; questRoot29.Author = list237; - index = 3; - List list238 = new List(index); - CollectionsMarshal.SetCount(list238, index); - Span span238 = CollectionsMarshal.AsSpan(list238); - num = 0; - ref QuestSequence reference175 = ref span238[num]; + num = 3; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + Span span82 = CollectionsMarshal.AsSpan(list238); + ref QuestSequence reference175 = ref span82[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -118647,30 +98579,24 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012348u, new Vector3(465.01855f, 162.58325f, -522.9115f), 397); obj164.Steps = list239; reference175 = obj164; - num++; - ref QuestSequence reference176 = ref span238[num]; + ref QuestSequence reference176 = ref span82[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj165.Steps = list240; reference176 = obj165; - num++; - ref QuestSequence reference177 = ref span238[num]; + ref QuestSequence reference177 = ref span82[2]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -118678,9 +98604,8 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span83 = CollectionsMarshal.AsSpan(list241); + span83[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -118690,8 +98615,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - index2++; - span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); + span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1012328u, new Vector3(1.7547607f, 0.0034502316f, -9.750549f), 433); obj166.Steps = list241; reference177 = obj166; questRoot29.QuestSequence = list238; @@ -118701,30 +98625,24 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list242)[0] = "JerryWester"; questRoot30.Author = list242; - index = 5; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference178 = ref span243[num]; + num = 5; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span84 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference178 = ref span84[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj167.Steps = list244; reference178 = obj167; - num++; - ref QuestSequence reference179 = ref span243[num]; + ref QuestSequence reference179 = ref span84[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -118732,28 +98650,25 @@ public static class AssemblyQuestLoader num2 = 2; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) + Span span85 = CollectionsMarshal.AsSpan(list245); + span85[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.001443714f, 1.1515f, 13.2236f), 433) { TargetTerritoryId = (ushort)419 }; - index2++; - ref QuestStep reference180 = ref span245[index2]; + ref QuestStep reference180 = ref span85[1]; 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 } }; - num4 = 1; - List list246 = new List(num4); - CollectionsMarshal.SetCount(list246, num4); - Span span246 = CollectionsMarshal.AsSpan(list246); - num3 = 0; - span246[num3] = new DialogueChoice + num3 = 1; + List list246 = new List(num3); + CollectionsMarshal.SetCount(list246, num3); + CollectionsMarshal.AsSpan(list246)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA111_01590_SCENE00007_EVENTAREA_WARP_YESNO_TITLE") @@ -118762,27 +98677,22 @@ public static class AssemblyQuestLoader reference180 = obj169; obj168.Steps = list245; reference179 = obj168; - num++; - span243[num] = new QuestSequence + span84[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference181 = ref span243[num]; + ref QuestSequence reference181 = ref span84[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj170.Steps = list247; reference181 = obj170; - num++; - ref QuestSequence reference182 = ref span243[num]; + ref QuestSequence reference182 = ref span84[4]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -118790,14 +98700,12 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) + Span span86 = CollectionsMarshal.AsSpan(list248); + span86[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) { Aetheryte = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - index2++; - span248[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj171.Steps = list248; reference182 = obj171; questRoot30.QuestSequence = list243; @@ -118807,26 +98715,21 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span249 = CollectionsMarshal.AsSpan(list249); - index = 0; - span249[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; questRoot31.Author = list249; - index = 4; - List list250 = new List(index); - CollectionsMarshal.SetCount(list250, index); - Span span250 = CollectionsMarshal.AsSpan(list250); - num = 0; - ref QuestSequence reference183 = ref span250[num]; + num = 4; + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + Span span87 = CollectionsMarshal.AsSpan(list250); + ref QuestSequence reference183 = ref span87[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -118839,8 +98742,7 @@ public static class AssemblyQuestLoader }; obj172.Steps = list251; reference183 = obj172; - num++; - ref QuestSequence reference184 = ref span250[num]; + ref QuestSequence reference184 = ref span87[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -118848,16 +98750,12 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - ref QuestStep reference185 = ref span252[index2]; + ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list252)[0]; 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); - Span span253 = CollectionsMarshal.AsSpan(list253); - num4 = 0; - span253[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list253)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA112_01591_Q1_000_000"), @@ -118867,22 +98765,18 @@ public static class AssemblyQuestLoader reference185 = questStep12; obj173.Steps = list252; reference184 = obj173; - num++; - ref QuestSequence reference186 = ref span250[num]; + ref QuestSequence reference186 = ref span87[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj174.Steps = list254; reference186 = obj174; - num++; - ref QuestSequence reference187 = ref span250[num]; + ref QuestSequence reference187 = ref span87[3]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -118890,42 +98784,36 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + CollectionsMarshal.AsSpan(list255)[0] = 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 = 1; + num = 2; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - Span span256 = CollectionsMarshal.AsSpan(list256); - index = 0; - span256[index] = "JerryWester"; + Span span88 = CollectionsMarshal.AsSpan(list256); + span88[0] = "JerryWester"; + span88[1] = "Wigglez"; questRoot32.Author = list256; - index = 4; - List list257 = new List(index); - CollectionsMarshal.SetCount(list257, index); - Span span257 = CollectionsMarshal.AsSpan(list257); - num = 0; - ref QuestSequence reference188 = ref span257[num]; + num = 4; + List list257 = new List(num); + CollectionsMarshal.SetCount(list257, num); + Span span89 = CollectionsMarshal.AsSpan(list257); + ref QuestSequence reference188 = ref span89[0]; QuestSequence obj176 = 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, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + 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); obj176.Steps = list258; reference188 = obj176; - num++; - ref QuestSequence reference189 = ref span257[num]; + ref QuestSequence reference189 = ref span89[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -118933,77 +98821,63 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Interact, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj177.Steps = list259; reference189 = obj177; - num++; - ref QuestSequence reference190 = ref span257[num]; + ref QuestSequence reference190 = ref span89[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list260 = new List(index2); - CollectionsMarshal.SetCount(list260, index2); - Span span260 = CollectionsMarshal.AsSpan(list260); - num2 = 0; - ref QuestStep reference191 = ref span260[num2]; + num2 = 5; + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + Span span90 = CollectionsMarshal.AsSpan(list260); + ref QuestStep reference191 = ref span90[0]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2005409u, new Vector3(-254.65784f, -185.68707f, 662.6841f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + Span span91 = CollectionsMarshal.AsSpan(list261); + span91[0] = 4381u; + span91[1] = 4382u; obj179.KillEnemyDataIds = list261; num3 = 6; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - 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); + 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); obj179.CompletionQuestVariablesFlags = list262; reference191 = obj179; - num2++; - ref QuestStep reference192 = ref span260[num2]; + ref QuestStep reference192 = ref span90[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2005411u, new Vector3(-122.78937f, -166.00293f, 646.5095f), 401); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list263; reference192 = questStep13; - num2++; - ref QuestStep reference193 = ref span260[num2]; + 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]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, 2005410u, new Vector3(-81.16278f, -136.98022f, 468.5282f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -119011,34 +98885,25 @@ public static class AssemblyQuestLoader num3 = 2; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span264 = CollectionsMarshal.AsSpan(list264); - num4 = 0; - span264[num4] = 4380u; - num4++; - span264[num4] = 4382u; + Span span94 = CollectionsMarshal.AsSpan(list264); + span94[0] = 4380u; + span94[1] = 4382u; obj180.KillEnemyDataIds = list264; - 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); + 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); obj180.CompletionQuestVariablesFlags = list265; reference193 = obj180; obj178.Steps = list260; reference190 = obj178; - num++; - ref QuestSequence reference194 = ref span257[num]; + ref QuestSequence reference194 = ref span89[3]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -119046,9 +98911,7 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj181.Steps = list266; reference194 = obj181; questRoot32.QuestSequence = list257; @@ -119058,30 +98921,24 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - Span span267 = CollectionsMarshal.AsSpan(list267); - index = 0; - span267[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list267)[0] = "JerryWester"; questRoot33.Author = list267; - index = 3; - List list268 = new List(index); - CollectionsMarshal.SetCount(list268, index); - Span span268 = CollectionsMarshal.AsSpan(list268); - num = 0; - ref QuestSequence reference195 = ref span268[num]; + num = 3; + List list268 = new List(num); + CollectionsMarshal.SetCount(list268, num); + Span span96 = CollectionsMarshal.AsSpan(list268); + ref QuestSequence reference195 = ref span96[0]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj182.Steps = list269; reference195 = obj182; - num++; - ref QuestSequence reference196 = ref span268[num]; + ref QuestSequence reference196 = ref span96[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -119089,9 +98946,8 @@ public static class AssemblyQuestLoader num2 = 6; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - ref QuestStep reference197 = ref span270[index2]; + Span span97 = CollectionsMarshal.AsSpan(list270); + ref QuestStep reference197 = ref span97[0]; QuestStep obj184 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-343.27975f, -169.12419f, 800.5701f), 401) { Mount = true @@ -119101,53 +98957,39 @@ public static class AssemblyQuestLoader num3 = 6; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list271; skipConditions4.StepIf = skipStepConditions4; obj184.SkipConditions = skipConditions4; reference197 = obj184; - index2++; - ref QuestStep reference198 = ref span270[index2]; + ref QuestStep reference198 = ref span97[1]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list272; skipConditions5.StepIf = skipStepConditions5; obj185.SkipConditions = skipConditions5; reference198 = obj185; - index2++; - ref QuestStep reference199 = ref span270[index2]; + ref QuestStep reference199 = ref span97[2]; QuestStep obj186 = new QuestStep(EInteractionType.Emote, 1013498u, new Vector3(-293.04956f, -183.73486f, 812.6802f), 401) { Emote = EEmote.Psych @@ -119155,49 +98997,34 @@ public static class AssemblyQuestLoader num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - 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); + 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); obj186.CompletionQuestVariablesFlags = list273; reference199 = obj186; - index2++; - span270[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.08698f, -185.05266f, 792.836f), 401); - index2++; - ref QuestStep reference200 = ref span270[index2]; + span97[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.08698f, -185.05266f, 792.836f), 401); + ref QuestStep reference200 = ref span97[4]; QuestStep obj187 = new QuestStep(EInteractionType.Emote, 1012360u, new Vector3(-337.75842f, -186.07346f, 618.55493f), 401) { Emote = EEmote.Psych }; - 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); + 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); obj187.CompletionQuestVariablesFlags = list274; reference200 = obj187; - index2++; - ref QuestStep reference201 = ref span270[index2]; + ref QuestStep reference201 = ref span97[5]; QuestStep obj188 = new QuestStep(EInteractionType.Emote, 1012359u, new Vector3(-260.91406f, -184.91077f, 705.4092f), 401) { Emote = EEmote.Psych @@ -119205,35 +99032,26 @@ public static class AssemblyQuestLoader num3 = 6; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - 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); + 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); obj188.CompletionQuestVariablesFlags = list275; reference201 = obj188; obj183.Steps = list270; reference196 = obj183; - num++; - ref QuestSequence reference202 = ref span268[num]; + ref QuestSequence reference202 = ref span96[2]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj189.Steps = list276; reference202 = obj189; questRoot33.QuestSequence = list268; @@ -119243,16 +99061,13 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - Span span277 = CollectionsMarshal.AsSpan(list277); - index = 0; - span277[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list277)[0] = "JerryWester"; questRoot34.Author = list277; - index = 6; - List list278 = new List(index); - CollectionsMarshal.SetCount(list278, index); - Span span278 = CollectionsMarshal.AsSpan(list278); - num = 0; - ref QuestSequence reference203 = ref span278[num]; + num = 6; + List list278 = new List(num); + CollectionsMarshal.SetCount(list278, num); + Span span103 = CollectionsMarshal.AsSpan(list278); + ref QuestSequence reference203 = ref span103[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -119260,27 +99075,21 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012060u, new Vector3(-358.66333f, -157.99367f, 761.01306f), 401); obj190.Steps = list279; reference203 = obj190; - num++; - ref QuestSequence reference204 = ref span278[num]; + ref QuestSequence reference204 = ref span103[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj191.Steps = list280; reference204 = obj191; - num++; - ref QuestSequence reference205 = ref span278[num]; + ref QuestSequence reference205 = ref span103[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -119288,16 +99097,12 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - ref QuestStep reference206 = ref span281[index2]; + ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list281)[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1012354u, new Vector3(-284.38245f, -185.08519f, 732.2346f), 401); - num4 = 1; - List list282 = new List(num4); - CollectionsMarshal.SetCount(list282, num4); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - span282[num3] = new DialogueChoice + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + CollectionsMarshal.AsSpan(list282)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA115_01594_Q1_000_000"), @@ -119307,22 +99112,18 @@ public static class AssemblyQuestLoader reference206 = questStep14; obj192.Steps = list281; reference205 = obj192; - num++; - ref QuestSequence reference207 = ref span278[num]; + ref QuestSequence reference207 = ref span103[3]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj193.Steps = list283; reference207 = obj193; - num++; - ref QuestSequence reference208 = ref span278[num]; + ref QuestSequence reference208 = ref span103[4]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -119330,25 +99131,20 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.Interact, 2005412u, new Vector3(408.89587f, -124.01007f, 718.5625f), 401); + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 2005412u, new Vector3(408.89587f, -124.01007f, 718.5625f), 401); obj194.Steps = list284; reference208 = obj194; - num++; - ref QuestSequence reference209 = ref span278[num]; + ref QuestSequence reference209 = ref span103[5]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj195.Steps = list285; reference209 = obj195; questRoot34.QuestSequence = list278; @@ -119358,16 +99154,13 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list286)[0] = "JerryWester"; questRoot35.Author = list286; - index = 5; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference210 = ref span287[num]; + num = 5; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span105 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference210 = ref span105[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -119375,27 +99168,21 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012364u, new Vector3(64.10315f, -144.92407f, 527.36694f), 401); obj196.Steps = list288; reference210 = obj196; - num++; - ref QuestSequence reference211 = ref span287[num]; + ref QuestSequence reference211 = ref span105[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj197.Steps = list289; reference211 = obj197; - num++; - ref QuestSequence reference212 = ref span287[num]; + ref QuestSequence reference212 = ref span105[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -119403,23 +99190,18 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.Interact, 2005419u, new Vector3(299.82446f, -115.8313f, 424.73486f), 401); + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 2005419u, new Vector3(299.82446f, -115.8313f, 424.73486f), 401); obj198.Steps = list290; reference212 = obj198; - num++; - ref QuestSequence reference213 = ref span287[num]; + ref QuestSequence reference213 = ref span105[3]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -119428,8 +99210,7 @@ public static class AssemblyQuestLoader }; obj199.Steps = list291; reference213 = obj199; - num++; - ref QuestSequence reference214 = ref span287[num]; + ref QuestSequence reference214 = ref span105[4]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue @@ -119437,9 +99218,7 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012367u, new Vector3(-678.2483f, -110.67414f, 481.77307f), 401) + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012367u, new Vector3(-678.2483f, -110.67414f, 481.77307f), 401) { StopDistance = 7f }; @@ -119452,26 +99231,21 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - Span span293 = CollectionsMarshal.AsSpan(list293); - index = 0; - span293[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list293)[0] = "JerryWester"; questRoot36.Author = list293; - index = 4; - List list294 = new List(index); - CollectionsMarshal.SetCount(list294, index); - Span span294 = CollectionsMarshal.AsSpan(list294); - num = 0; - ref QuestSequence reference215 = ref span294[num]; + num = 4; + List list294 = new List(num); + CollectionsMarshal.SetCount(list294, num); + Span span106 = CollectionsMarshal.AsSpan(list294); + ref QuestSequence reference215 = ref span106[0]; QuestSequence obj201 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -119484,8 +99258,7 @@ public static class AssemblyQuestLoader }; obj201.Steps = list295; reference215 = obj201; - num++; - ref QuestSequence reference216 = ref span294[num]; + ref QuestSequence reference216 = ref span106[1]; QuestSequence obj202 = new QuestSequence { Sequence = 1 @@ -119493,23 +99266,18 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span296 = CollectionsMarshal.AsSpan(list296); - index2 = 0; - span296[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); + CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401); obj202.Steps = list296; reference216 = obj202; - num++; - ref QuestSequence reference217 = ref span294[num]; + ref QuestSequence reference217 = ref span106[2]; QuestSequence obj203 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -119520,8 +99288,7 @@ public static class AssemblyQuestLoader }; obj203.Steps = list297; reference217 = obj203; - num++; - ref QuestSequence reference218 = ref span294[num]; + ref QuestSequence reference218 = ref span106[3]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue @@ -119529,9 +99296,8 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span107 = CollectionsMarshal.AsSpan(list298); + span107[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -119540,8 +99306,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - index2++; - span298[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); + span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1012329u, new Vector3(-7.309082f, 0.0035869647f, -0.5036011f), 433); obj204.Steps = list298; reference218 = obj204; questRoot36.QuestSequence = list294; @@ -119551,30 +99316,24 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - Span span299 = CollectionsMarshal.AsSpan(list299); - index = 0; - span299[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list299)[0] = "JerryWester"; questRoot37.Author = list299; - index = 5; - List list300 = new List(index); - CollectionsMarshal.SetCount(list300, index); - Span span300 = CollectionsMarshal.AsSpan(list300); - num = 0; - ref QuestSequence reference219 = ref span300[num]; + num = 5; + List list300 = new List(num); + CollectionsMarshal.SetCount(list300, num); + Span span108 = CollectionsMarshal.AsSpan(list300); + ref QuestSequence reference219 = ref span108[0]; QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj205.Steps = list301; reference219 = obj205; - num++; - ref QuestSequence reference220 = ref span300[num]; + ref QuestSequence reference220 = ref span108[1]; QuestSequence obj206 = new QuestSequence { Sequence = 1 @@ -119582,31 +99341,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.Interact, 1012378u, new Vector3(3.5248413f, -9.313226E-10f, 9.018005f), 433) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1012378u, new Vector3(3.5248413f, -9.313226E-10f, 9.018005f), 433) { StopDistance = 5f }; obj206.Steps = list302; reference220 = obj206; - num++; - ref QuestSequence reference221 = ref span300[num]; + ref QuestSequence reference221 = ref span108[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span303[num2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + span109[1] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AethernetShortcut = new AethernetShortcut { @@ -119616,8 +99370,7 @@ public static class AssemblyQuestLoader }; obj207.Steps = list303; reference221 = obj207; - num++; - ref QuestSequence reference222 = ref span300[num]; + ref QuestSequence reference222 = ref span108[3]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -119625,9 +99378,7 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419) + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419) { AethernetShortcut = new AethernetShortcut { @@ -119641,18 +99392,15 @@ public static class AssemblyQuestLoader }; obj208.Steps = list304; reference222 = obj208; - num++; - ref QuestSequence reference223 = ref span300[num]; + ref QuestSequence reference223 = ref span108[4]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj209.Steps = list305; reference223 = obj209; questRoot37.QuestSequence = list300; @@ -119662,16 +99410,13 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list306)[0] = "JerryWester"; questRoot38.Author = list306; - index = 4; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference224 = ref span307[num]; + num = 4; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span110 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference224 = ref span110[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -119679,23 +99424,19 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012381u, new Vector3(120.653076f, 14.95313f, -156.63391f), 419); obj210.Steps = list308; reference224 = obj210; - num++; - ref QuestSequence reference225 = ref span307[num]; + ref QuestSequence reference225 = ref span110[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -119704,12 +99445,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - num2++; - span309[num2] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); + span111[1] = new QuestStep(EInteractionType.Interact, 1013033u, new Vector3(-0.015319824f, 0.022254245f, 3.7078857f), 433); obj211.Steps = list309; reference225 = obj211; - num++; - ref QuestSequence reference226 = ref span307[num]; + ref QuestSequence reference226 = ref span110[2]; QuestSequence obj212 = new QuestSequence { Sequence = 2 @@ -119717,33 +99456,28 @@ public static class AssemblyQuestLoader num2 = 2; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + Span span112 = CollectionsMarshal.AsSpan(list310); + span112[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - index2++; - span310[index2] = new QuestStep(EInteractionType.Interact, 1012386u, new Vector3(6.149353f, 42.34489f, -208.39252f), 419); + span112[1] = new QuestStep(EInteractionType.Interact, 1012386u, new Vector3(6.149353f, 42.34489f, -208.39252f), 419); obj212.Steps = list310; reference226 = obj212; - num++; - ref QuestSequence reference227 = ref span307[num]; + ref QuestSequence reference227 = ref span110[3]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)433 }; - num2++; - span311[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); + span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); obj213.Steps = list311; reference227 = obj213; questRoot38.QuestSequence = list307; @@ -119753,16 +99487,13 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - Span span312 = CollectionsMarshal.AsSpan(list312); - index = 0; - span312[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list312)[0] = "JerryWester"; questRoot39.Author = list312; - index = 3; - List list313 = new List(index); - CollectionsMarshal.SetCount(list313, index); - Span span313 = CollectionsMarshal.AsSpan(list313); - num = 0; - ref QuestSequence reference228 = ref span313[num]; + num = 3; + List list313 = new List(num); + CollectionsMarshal.SetCount(list313, num); + Span span114 = CollectionsMarshal.AsSpan(list313); + ref QuestSequence reference228 = ref span114[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -119770,23 +99501,19 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012387u, new Vector3(0.6866455f, 0.022254243f, 4.623413f), 433); obj214.Steps = list314; reference228 = obj214; - num++; - ref QuestSequence reference229 = ref span313[num]; + ref QuestSequence reference229 = ref span114[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, SkipConditions = new SkipConditions @@ -119798,8 +99525,7 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(1748) }; - num2++; - ref QuestStep reference230 = ref span315[num2]; + ref QuestStep reference230 = ref span115[1]; QuestStep obj216 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -119807,9 +99533,7 @@ public static class AssemblyQuestLoader num3 = 1; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - Span span316 = CollectionsMarshal.AsSpan(list316); - num4 = 0; - span316[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list316)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA201_01599_Q1_000_000") @@ -119818,8 +99542,7 @@ public static class AssemblyQuestLoader reference230 = obj216; obj215.Steps = list315; reference229 = obj215; - num++; - ref QuestSequence reference231 = ref span313[num]; + ref QuestSequence reference231 = ref span114[2]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue @@ -119827,15 +99550,13 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.194313f, 50.989883f, -778.7069f), 156) + Span span116 = CollectionsMarshal.AsSpan(list317); + span116[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.194313f, 50.989883f, -778.7069f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); + span116[1] = new QuestStep(EInteractionType.CompleteQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); obj217.Steps = list317; reference231 = obj217; questRoot39.QuestSequence = list313; @@ -119849,16 +99570,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -119866,23 +99584,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013018u, new Vector3(30.07544f, 50.99997f, -819.7299f), 156); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -119890,8 +99603,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -119899,14 +99611,12 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.91202f, -22.538002f, 386.9863f), 145) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-368.91202f, -22.538002f, 386.9863f), 145) { Fly = true }; - index2++; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145) + span2[1] = new QuestStep(EInteractionType.CompleteQuest, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145) { Fly = true }; @@ -119919,30 +99629,24 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list6)[0] = "JerryWester"; questRoot2.Author = list6; - index = 7; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 7; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span3 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span3[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span3[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -119950,9 +99654,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - ref QuestStep reference6 = ref span9[index2]; + ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; QuestStep questStep = new QuestStep(EInteractionType.SinglePlayerDuty, 1013028u, new Vector3(-380.8805f, -23.064514f, 388.63196f), 145); SinglePlayerDutyOptions obj6 = new SinglePlayerDutyOptions { @@ -119961,35 +99663,28 @@ public static class AssemblyQuestLoader int num3 = 1; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - 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"; + CollectionsMarshal.AsSpan(list10)[0] = "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; - num++; - span7[num] = new QuestSequence + span3[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference7 = ref span7[num]; + ref QuestSequence reference7 = ref span3[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span7[num]; + ref QuestSequence reference8 = ref span3[4]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -119997,41 +99692,34 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1013031u, new Vector3(-316.2433f, -24.34079f, 424.30762f), 145) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1013031u, new Vector3(-316.2433f, -24.34079f, 424.30762f), 145) { StopDistance = 5f }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span7[num]; + ref QuestSequence reference9 = ref span3[5]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span7[num]; + ref QuestSequence reference10 = ref span3[6]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -120039,9 +99727,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013038u, new Vector3(1.9989014f, 1.1445954E-06f, -2.5177612f), 212); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list7; @@ -120051,30 +99737,24 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list15)[0] = "JerryWester"; questRoot3.Author = list15; - index = 4; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span5 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span5[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span5[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -120082,9 +99762,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1014644u, new Vector3(15.854065f, 15.96505f, -0.77819824f), 419) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1014644u, new Vector3(15.854065f, 15.96505f, -0.77819824f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -120095,26 +99773,22 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span5[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span5[3]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -120122,19 +99796,15 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - ref QuestStep reference15 = ref span20[index2]; + ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestStep obj15 = new QuestStep(EInteractionType.CompleteQuest, 1012579u, new Vector3(1.1138916f, 0.022254243f, -4.409851f), 433) { StopDistance = 5f }; - index3 = 1; - List list21 = new List(index3); - CollectionsMarshal.SetCount(list21, index3); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - span21[num3] = new DialogueChoice + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA301_01602_Q1_000_000"), @@ -120151,33 +99821,27 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list22)[0] = "JerryWester"; questRoot4.Author = list22; - index = 4; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 4; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span6 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span6[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span6[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -120185,28 +99849,23 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) + Span span7 = CollectionsMarshal.AsSpan(list25); + span7[0] = new QuestStep(EInteractionType.Interact, 2005334u, new Vector3(-0.015319824f, 1.1443481f, 13.199036f), 433) { TargetTerritoryId = (ushort)419 }; - index2++; - span25[index2] = new QuestStep(EInteractionType.Interact, 1012585u, new Vector3(14.755432f, 16.009666f, -4.0742188f), 419); + span7[1] = new QuestStep(EInteractionType.Interact, 1012585u, new Vector3(14.755432f, 16.009666f, -4.0742188f), 419); obj17.Steps = list25; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span6[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list26 = new List(index2); - CollectionsMarshal.SetCount(list26, index2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num2 = 0; - ref QuestStep reference19 = ref span26[num2]; + num2 = 1; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -120218,9 +99877,7 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - span27[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA302_01603_SCENE00020_EVENTAREA_WARP_YESNO_TITLE") @@ -120229,8 +99886,7 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list26; reference18 = obj18; - num++; - ref QuestSequence reference20 = ref span23[num]; + ref QuestSequence reference20 = ref span6[3]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -120238,9 +99894,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012588u, new Vector3(107.68286f, 24.378597f, -6.6987915f), 418) { StopDistance = 7f }; @@ -120253,33 +99907,27 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot5.Author = list29; - index = 7; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 7; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span8 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span8[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj21.Steps = list31; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span30[num]; + ref QuestSequence reference22 = ref span8[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -120287,9 +99935,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -120300,23 +99946,31 @@ public static class AssemblyQuestLoader }; obj22.Steps = list32; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span30[num]; + ref QuestSequence reference23 = ref span8[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Interact, 1013422u, new Vector3(-97.73407f, 15.233179f, -40.787415f), 418) + 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) { AethernetShortcut = new AethernetShortcut { @@ -120326,302 +99980,248 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span30[num]; - QuestSequence obj24 = new QuestSequence + ref QuestSequence reference25 = ref span8[3]; + QuestSequence obj25 = new QuestSequence { Sequence = 3 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - obj24.Steps = list34; - reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span30[num]; - QuestSequence obj25 = new QuestSequence + obj25.Steps = list35; + reference25 = obj25; + ref QuestSequence reference26 = ref span8[4]; + QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - 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) + 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) { PickUpQuestId = new QuestId(1744) }; - num2++; - span35[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2005536u, new Vector3(402.0293f, 191.51587f, 561.4252f), 397) + span10[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2005536u, new Vector3(402.0293f, 191.51587f, 561.4252f), 397) { AetherCurrentId = 2818053u }; - num2++; - span35[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006187u, new Vector3(424.94836f, 164.29382f, -536.9192f), 397) + span10[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006187u, new Vector3(424.94836f, 164.29382f, -536.9192f), 397) { AetherCurrentId = 2818055u }; - 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 + 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 { Sequence = 5 }; num2 = 3; - 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) + 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) { Mount = true }; - index2++; - span36[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) + span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.9128f, 164.30827f, -542.1735f), 397) { DisableNavmesh = true }; - index2++; - ref QuestStep reference27 = ref span36[index2]; - QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.6516f, 157.40831f, -546.16815f), 397) + ref QuestStep reference28 = ref span11[2]; + QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.6516f, 157.40831f, -546.16815f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; reference27 = obj27; - obj26.Steps = list36; - reference26 = obj26; - num++; - ref QuestSequence reference28 = ref span30[num]; - QuestSequence obj28 = new QuestSequence + ref QuestSequence reference29 = ref span8[6]; + QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) + span13[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(454.75964f, 164.27075f, -535.00354f), 397) { DisableNavmesh = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); - obj28.Steps = list38; - reference28 = obj28; + span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1012592u, new Vector3(459.15918f, 162.51204f, -524.651f), 397); + obj29.Steps = list39; + reference29 = obj29; questRoot5.QuestSequence = list30; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(1605); QuestRoot questRoot6 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - ref QuestStep reference31 = ref span42[num2]; + ref QuestStep reference32 = ref span15[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005432u, new Vector3(450.85828f, 164.29382f, -544.79285f), 397); num3 = 6; - 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]; + 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]; 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 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(1606); QuestRoot questRoot7 = new QuestRoot(); - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj32.Steps = list49; - reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span48[num]; - QuestSequence obj33 = new QuestSequence + obj33.Steps = list50; + reference36 = obj33; + ref QuestSequence reference37 = ref span20[1]; + QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - 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) + 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) { DisableNavmesh = true }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1011905u, new Vector3(617.4868f, 78.429f, 217.30359f), 397) + span21[6] = new QuestStep(EInteractionType.SinglePlayerDuty, 1011905u, new Vector3(617.4868f, 78.429f, 217.30359f), 397) { DisableNavmesh = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -120629,1361 +100229,1169 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj33.Steps = list50; - reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span48[num]; - QuestSequence obj34 = new QuestSequence + obj34.Steps = list51; + reference37 = obj34; + ref QuestSequence reference38 = ref span20[2]; + QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; - obj34.Steps = list51; - reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span48[num]; - QuestSequence obj35 = new QuestSequence + obj35.Steps = list52; + reference38 = obj35; + ref QuestSequence reference39 = ref span20[3]; + QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { AetherCurrentId = 2818057u }; - 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; + span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397); + obj36.Steps = list53; + reference39 = obj36; + questRoot7.QuestSequence = list49; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(1607); QuestRoot questRoot8 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 3; - List list56 = new List(num2); - CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref QuestStep reference41 = ref span56[index2]; + List list57 = new List(num2); + CollectionsMarshal.SetCount(list57, num2); + Span span24 = CollectionsMarshal.AsSpan(list57); + ref QuestStep reference42 = ref span24[0]; 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 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]; + 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]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1608); QuestRoot questRoot9 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(1759) }; - num2++; - span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { PickUpQuestId = new QuestId(1760) }; - num2++; - span64[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397) + span29[2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397) { PickUpQuestId = new QuestId(2111) }; - num2++; - ref QuestStep reference47 = ref span64[num2]; - QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-365.48965f, 85.44247f, -360.56012f), 397) + ref QuestStep reference48 = ref span29[3]; + QuestStep obj42 = new QuestStep(EInteractionType.Combat, null, new Vector3(-365.48965f, 85.44247f, -360.56012f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list65 = new List(num3); - CollectionsMarshal.SetCount(list65, num3); - Span span65 = CollectionsMarshal.AsSpan(list65); - index3 = 0; - span65[index3] = new ComplexCombatData + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = new ComplexCombatData { DataId = 3988u, MinimumKillCount = 2u }; - obj41.ComplexCombatData = list65; + obj42.ComplexCombatData = list66; + reference48 = obj42; + obj41.Steps = list65; reference47 = obj41; - obj40.Steps = list64; - reference46 = obj40; - num++; - ref QuestSequence reference48 = ref span62[num]; - QuestSequence obj42 = new QuestSequence + ref QuestSequence reference49 = ref span28[2]; + QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { AetherCurrentId = 2818058u }; - 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; + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1012670u, new Vector3(-631.9219f, 142.1073f, -322.71307f), 397); + obj43.Steps = list67; + reference49 = obj43; + questRoot9.QuestSequence = list63; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(1609); QuestRoot questRoot10 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) { Fly = true }; - index2++; - span70[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.3646f, 117.68303f, -656.6694f), 397) + span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.3646f, 117.68303f, -656.6694f), 397) { TargetTerritoryId = (ushort)398 }; - obj44.Steps = list70; - reference50 = obj44; - num++; - ref QuestSequence reference51 = ref span68[num]; - QuestSequence obj45 = new QuestSequence + obj45.Steps = list71; + reference51 = obj45; + ref QuestSequence reference52 = ref span31[2]; + QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 4; - 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) + 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) { AetherCurrentId = 2818068u }; - index2++; - span72[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(744.5929f, -34.200893f, 272.8362f), 398) + span33[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(744.5929f, -34.200893f, 272.8362f), 398) { DisableNavmesh = true, Mount = true }; - index2++; - span72[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) + span33[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) { Aetheryte = EAetheryteLocation.DravanianForelandsTailfeather }; - 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; + span33[3] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + obj47.Steps = list73; + reference53 = obj47; + questRoot10.QuestSequence = list69; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(1610); QuestRoot questRoot11 = new QuestRoot(); num = 1; - 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 - }; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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); + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj48.Steps = list76; reference54 = obj48; - num++; - ref QuestSequence reference55 = ref span74[num]; + ref QuestSequence reference55 = ref span34[1]; QuestSequence obj49 = 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 { Sequence = 2 }; - 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) + 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) { PickUpQuestId = new QuestId(1771) }; - 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 - }; - 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; - obj49.Steps = list77; - reference55 = obj49; - num++; - ref QuestSequence reference57 = ref span74[num]; - QuestSequence obj51 = new QuestSequence - { - Sequence = 3 - }; - num2 = 2; - 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 - }; - index2++; - ref QuestStep reference58 = ref span79[index2]; - QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.626f, -56.601433f, -258.33804f), 398) + ref QuestStep reference57 = ref span35[1]; + QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(634.0371f, -40.05916f, -296.1493f), 398) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - 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; - obj51.Steps = list79; + 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; - num++; - ref QuestSequence reference59 = ref span74[num]; - QuestSequence obj53 = new QuestSequence + obj50.Steps = list78; + reference56 = obj50; + ref QuestSequence reference58 = ref span34[3]; + QuestSequence obj52 = 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) + { + AetherCurrentId = 2818070u + }; + ref QuestStep reference59 = ref span37[1]; + QuestStep obj53 = 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; + reference58 = obj52; + ref QuestSequence reference60 = ref span34[4]; + QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list81 = new List(index2); - CollectionsMarshal.SetCount(list81, index2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num2 = 0; - ref QuestStep reference60 = ref span81[num2]; + num2 = 1; + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 2005489u, new Vector3(169.604f, -63.24872f, -11.825806f), 398); - index3 = 1; - List list82 = new List(index3); - CollectionsMarshal.SetCount(list82, index3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = new DialogueChoice + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = 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 = list82; - reference60 = questStep8; - obj53.Steps = list81; - reference59 = obj53; - questRoot11.QuestSequence = list74; + questStep8.DialogueChoices = list83; + reference61 = questStep8; + obj54.Steps = list82; + reference60 = obj54; + questRoot11.QuestSequence = list75; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(1611); QuestRoot questRoot12 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - 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]; + ref QuestSequence reference63 = ref span39[1]; QuestSequence obj56 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - 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) + 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) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 3; - 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; + 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; reference64 = obj57; - obj56.Steps = list87; - reference63 = obj56; - num++; - ref QuestSequence reference65 = ref span84[num]; - QuestSequence obj58 = new QuestSequence + ref QuestSequence reference66 = ref span39[3]; + QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; reference66 = obj59; - obj58.Steps = list89; - reference65 = obj58; - num++; - ref QuestSequence reference67 = ref span84[num]; - QuestSequence obj60 = new QuestSequence + ref QuestSequence reference68 = ref span39[4]; + QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(1612); QuestRoot questRoot13 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + Span span43 = CollectionsMarshal.AsSpan(list96); + span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 398) { Aetheryte = EAetheryteLocation.DravanianForelandsAnyxTrine }; - index2++; - span95[index2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + span43[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - obj62.Steps = list95; - reference69 = obj62; - num++; - ref QuestSequence reference70 = ref span93[num]; - QuestSequence obj63 = new QuestSequence + obj63.Steps = list96; + reference70 = obj63; + ref QuestSequence reference71 = ref span42[2]; + QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list97 = new List(num3); - CollectionsMarshal.SetCount(list97, num3); - Span span97 = CollectionsMarshal.AsSpan(list97); - index3 = 0; - span97[index3] = new ComplexCombatData + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = new ComplexCombatData { DataId = 4467u, MinimumKillCount = 3u, RewardItemId = 2001580u, RewardItemCount = 3 }; - obj64.ComplexCombatData = list97; + obj65.ComplexCombatData = list98; + reference72 = obj65; + obj64.Steps = list97; reference71 = obj64; - obj63.Steps = list96; - reference70 = obj63; - num++; - ref QuestSequence reference72 = ref span93[num]; - QuestSequence obj65 = new QuestSequence + ref QuestSequence reference73 = ref span42[3]; + QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(1613); QuestRoot questRoot14 = new QuestRoot(); num = 1; - 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 - }; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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); + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012629u, new Vector3(200f, -55.462486f, -233.44781f), 398); obj67.Steps = list102; reference74 = obj67; - num++; - ref QuestSequence reference75 = ref span100[num]; + ref QuestSequence reference75 = ref span44[1]; QuestSequence obj68 = 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 { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(1614); QuestRoot questRoot15 = new QuestRoot(); - 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 + 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 { Sequence = 0 }; num2 = 1; - List list106 = new List(num2); - CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - ref QuestStep reference77 = ref span106[index2]; + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list107)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1012636u, new Vector3(77.46997f, -49.24018f, -148.97388f), 398); - index3 = 1; - List list107 = new List(index3); - CollectionsMarshal.SetCount(list107, index3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new DialogueChoice + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = 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 = list107; - reference77 = questStep9; - obj69.Steps = list106; - reference76 = obj69; - num++; - ref QuestSequence reference78 = ref span105[num]; - QuestSequence obj70 = new QuestSequence + questStep9.DialogueChoices = list108; + reference78 = questStep9; + obj70.Steps = list107; + reference77 = obj70; + ref QuestSequence reference79 = ref span46[1]; + QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; num3 = 6; - 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]; + 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]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1011929u, new Vector3(70.81714f, -49.2083f, -141.55798f), 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) + 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) { StopDistance = 5f }; num3 = 6; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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 + 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 { Sequence = 3 }; - 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) + 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) { PickUpQuestId = new QuestId(1790) }; - num2++; - span113[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.535545f, -49.45454f, -149.54617f), 398) + span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(320.7925f, -59.45279f, 18.284615f), 398) { - Mount = true + 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 + } + } + } }; - num2++; - ref QuestStep reference84 = ref span113[num2]; - QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(291.1391f, -64.697876f, -5.7822924f), 398) + 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) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list114 = new List(index3); - CollectionsMarshal.SetCount(list114, index3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = new ComplexCombatData + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = new ComplexCombatData { DataId = 4467u, MinimumKillCount = 1u, RewardItemId = 2001579u, RewardItemCount = 1 }; - obj75.ComplexCombatData = list114; + obj76.ComplexCombatData = list115; + reference85 = obj76; + obj75.Steps = list114; reference84 = obj75; - obj74.Steps = list113; - reference83 = obj74; - num++; - ref QuestSequence reference85 = ref span105[num]; - QuestSequence obj76 = new QuestSequence + ref QuestSequence reference86 = ref span46[4]; + QuestSequence obj77 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(1615); QuestRoot questRoot16 = new QuestRoot(); - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 4; - 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; + 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; reference89 = obj80; - obj79.Steps = list120; - reference88 = obj79; - num++; - ref QuestSequence reference90 = ref span118[num]; - QuestSequence obj81 = new QuestSequence + ref QuestSequence reference91 = ref span53[2]; + QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; reference92 = obj83; - obj82.Steps = list123; - reference91 = obj82; - num++; - ref QuestSequence reference93 = ref span118[num]; - QuestSequence obj84 = new QuestSequence + ref QuestSequence reference94 = ref span53[4]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818077u }; - 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; + 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; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(1616); QuestRoot questRoot17 = new QuestRoot(); num = 1; - 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 - }; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012638u, new Vector3(394.94922f, -93.9111f, 727.5348f), 398); obj86.Steps = list129; reference95 = obj86; - num++; - ref QuestSequence reference96 = ref span127[num]; + ref QuestSequence reference96 = ref span58[1]; QuestSequence obj87 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; - 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); + 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; - num++; - ref QuestSequence reference97 = ref span127[num]; + ref QuestSequence reference97 = ref span58[2]; QuestSequence obj88 = new QuestSequence { - Sequence = 3 + Sequence = 2 }; num2 = 1; 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) + 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 + { + Sequence = 3 + }; + num2 = 1; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 462) { DutyOptions = new DutyOptions { ContentFinderConditionId = 86u } }; - obj88.Steps = list131; - reference97 = obj88; - num++; - span127[num] = new QuestSequence + obj89.Steps = list132; + reference98 = obj89; + span58[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference98 = ref span127[num]; - QuestSequence obj89 = new QuestSequence + ref QuestSequence reference99 = ref span58[5]; + QuestSequence obj90 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; - obj89.Steps = list132; - reference98 = obj89; - num++; - ref QuestSequence reference99 = ref span127[num]; - QuestSequence obj90 = new QuestSequence + obj90.Steps = list133; + reference99 = obj90; + ref QuestSequence reference100 = ref span58[6]; + QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 6; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - SkipConditions skipConditions = new SkipConditions(); + SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; - 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; - 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; + 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(1802); + obj92.PickUpQuestId = new QuestId(1797); reference101 = obj92; - index2++; - span133[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-30.522272f, -32.192017f, -84.3334f), 398) + 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 }; - index2++; - span133[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.787895f, -30.428743f, -80.12713f), 398) + 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 }; - 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) + 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 }; - obj90.Steps = list133; - reference99 = obj90; - questRoot17.QuestSequence = list127; + obj91.Steps = list134; + reference100 = obj91; + questRoot17.QuestSequence = list128; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(1617); QuestRoot questRoot18 = new QuestRoot(); num = 1; - 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 - }; - 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 - }; - obj93.Steps = list138; - reference102 = obj93; - num++; - ref QuestSequence reference103 = ref span137[num]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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) + CollectionsMarshal.AsSpan(list139)[0] = 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 + { + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - obj94.Steps = list139; - reference103 = obj94; - num++; - ref QuestSequence reference104 = ref span137[num]; - QuestSequence obj95 = new QuestSequence + obj95.Steps = list140; + reference104 = obj95; + ref QuestSequence reference105 = ref span60[2]; + QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818074u }; - num2++; - span140[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-467.55936f, -11.599176f, -445.6323f), 398) + span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-467.55936f, -11.599176f, -445.6323f), 398) { DisableNavmesh = true, Mount = true }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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) + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Duty, null, null, 398) { DutyOptions = new DutyOptions { @@ -121991,205 +101399,160 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 37u } }; - obj96.Steps = list141; - reference105 = obj96; - num++; - span137[num] = new QuestSequence + obj97.Steps = list142; + reference106 = obj97; + span60[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference106 = ref span137[num]; - QuestSequence obj97 = new QuestSequence + ref QuestSequence reference107 = ref span60[5]; + QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(1618); QuestRoot questRoot19 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.ChurningMistsMoghome }; - 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 + 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 { Sequence = 2 }; num2 = 3; - List list147 = new List(num2); - CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - ref QuestStep reference110 = ref span147[index2]; + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + Span span64 = CollectionsMarshal.AsSpan(list148); + ref QuestStep reference111 = ref span64[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2005451u, new Vector3(379.23242f, -69.44385f, 690.30273f), 400); num3 = 6; - 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]; + 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]; 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 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(1619); QuestRoot questRoot20 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -122198,1238 +101561,982 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj103.Steps = list155; - reference115 = obj103; - num++; - ref QuestSequence reference116 = ref span153[num]; - QuestSequence obj104 = new QuestSequence + obj104.Steps = list156; + reference116 = obj104; + ref QuestSequence reference117 = ref span68[2]; + QuestSequence obj105 = new QuestSequence { Sequence = 2 }; num2 = 1; - List list156 = new List(num2); - CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - ref QuestStep reference117 = ref span156[index2]; + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133); - index3 = 1; - List list157 = new List(index3); - CollectionsMarshal.SetCount(list157, index3); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = new DialogueChoice + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA318_01619_Q1_000_001") }; - questStep14.DialogueChoices = list157; - reference117 = questStep14; - obj104.Steps = list156; - reference116 = obj104; - num++; - ref QuestSequence reference118 = ref span153[num]; - QuestSequence obj105 = new QuestSequence - { - Sequence = 3 - }; - 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]; + questStep14.DialogueChoices = list158; + reference118 = questStep14; + obj105.Steps = list157; + reference117 = obj105; + ref QuestSequence reference119 = ref span68[3]; QuestSequence obj106 = new QuestSequence { - Sequence = 4 + Sequence = 3 }; num2 = 1; 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) + 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 + { + 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) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - obj106.Steps = list159; - reference119 = obj106; - num++; - ref QuestSequence reference120 = ref span153[num]; - QuestSequence obj107 = new QuestSequence - { - Sequence = byte.MaxValue - }; - 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 - }; obj107.Steps = list160; reference120 = obj107; - questRoot20.QuestSequence = list153; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(1620); - QuestRoot questRoot21 = new QuestRoot(); - num = 1; - 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]; + ref QuestSequence reference121 = ref span68[5]; QuestSequence obj108 = new QuestSequence - { - Sequence = 0 - }; - num2 = 1; - 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 - }; - obj108.Steps = list163; - reference121 = obj108; - num++; - ref QuestSequence reference122 = ref span162[num]; - QuestSequence obj109 = new QuestSequence - { - Sequence = 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 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 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 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 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 - }; - 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 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 - }; - index2++; - span172[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) - { - PickUpQuestId = new QuestId(1819) - }; - 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 - }; - 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; - obj112.Steps = list172; - reference128 = obj112; - num++; - ref QuestSequence reference130 = ref span170[num]; - QuestSequence obj114 = new QuestSequence - { - Sequence = byte.MaxValue - }; - 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 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 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 - }; - 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 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 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 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 - }; - 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 - }; - 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 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) + { + StopDistance = 8f, + IgnoreDistanceToObject = true + }; + obj108.Steps = list161; + reference121 = obj108; + questRoot20.QuestSequence = list154; + 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 + { + 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) + { + StopDistance = 6.5f + }; + obj109.Steps = list164; + reference122 = obj109; + ref QuestSequence reference123 = ref span70[1]; + QuestSequence obj110 = 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]; + 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]; + QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2005455u, new Vector3(289.93665f, -37.979797f, 483.5431f), 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 + { + 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; + 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 + { + 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 + { + 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) + { + DisableNavmesh = true, + Mount = true + }; + span76[1] = 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) + { + 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; + reference129 = obj113; + ref QuestSequence reference131 = ref span75[2]; + 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, 1012080u, new Vector3(392.20264f, -72.34356f, 649.56116f), 400); + obj115.Steps = list175; + reference131 = obj115; + questRoot22.QuestSequence = list171; + 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 + { + 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 + { + Sequence = 1 + }; + num2 = 3; + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + Span span79 = CollectionsMarshal.AsSpan(list179); + ref QuestStep reference134 = ref span79[0]; + 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]; + QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1015174u, new Vector3(360.58594f, -72.66654f, 706.2333f), 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 + { + 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 + { + Sequence = 3 + }; + num2 = 3; 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) + Span span83 = CollectionsMarshal.AsSpan(list184); + span83[0] = 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 + { + 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) { JumpDestination = new JumpDestination { Position = new Vector3(367.56647f, -73.91838f, 661.2286f) } }; - index2++; - span184[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400) + span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1012083u, new Vector3(355.8556f, -74.53787f, 639.6123f), 400) { DisableNavmesh = true }; - obj119.Steps = list184; - reference138 = obj119; - questRoot23.QuestSequence = list176; + obj120.Steps = list185; + reference139 = obj120; + questRoot23.QuestSequence = list177; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(1623); QuestRoot questRoot24 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj120.Steps = list187; - reference139 = obj120; - num++; - ref QuestSequence reference140 = ref span186[num]; - QuestSequence obj121 = new QuestSequence + obj121.Steps = list188; + reference140 = obj121; + ref QuestSequence reference141 = ref span85[1]; + QuestSequence obj122 = new QuestSequence { Sequence = 1 }; num2 = 5; - List list188 = new List(num2); - CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - ref QuestStep reference141 = ref span188[index2]; + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + Span span87 = CollectionsMarshal.AsSpan(list189); + ref QuestStep reference142 = ref span87[0]; 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 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]; + 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]; 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 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]; + 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]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1013590u, new Vector3(392.26355f, -72.34358f, 645.1361f), 400); - 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 + 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 { Sequence = 2 }; - 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) + 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) { Mount = true }; - 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) + 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) { StopDistance = 8f, IgnoreDistanceToObject = true }; - obj122.Steps = list194; - reference146 = obj122; - num++; - ref QuestSequence reference147 = ref span186[num]; - QuestSequence obj123 = new QuestSequence + obj123.Steps = list195; + reference147 = obj123; + ref QuestSequence reference148 = ref span85[3]; + QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj123.Steps = list195; - reference147 = obj123; - questRoot24.QuestSequence = list186; + obj124.Steps = list196; + reference148 = obj124; + questRoot24.QuestSequence = list187; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(1624); QuestRoot questRoot25 = new QuestRoot(); num = 1; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.Interact, 1012664u, new Vector3(364.30908f, -74.10719f, 654.322f), 400); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012078u, new Vector3(375.3567f, -69.42934f, 693.5072f), 400) + { + StopDistance = 7f + }; obj125.Steps = list199; reference149 = obj125; - num++; - ref QuestSequence reference150 = ref span197[num]; + ref QuestSequence reference150 = ref span94[1]; QuestSequence obj126 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; - 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); + 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); obj126.Steps = list200; reference150 = obj126; - num++; - ref QuestSequence reference151 = ref span197[num]; + ref QuestSequence reference151 = ref span94[2]; QuestSequence obj127 = new QuestSequence { - Sequence = byte.MaxValue + Sequence = 2 }; num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012682u, new Vector3(241.19922f, -42.249466f, 609.27747f), 400); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1013589u, new Vector3(368.52063f, -74.14886f, 647.9437f), 400); obj127.Steps = list201; reference151 = obj127; - questRoot25.QuestSequence = list197; + 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; AddQuest(questId25, questRoot25); QuestId questId26 = new QuestId(1625); QuestRoot questRoot26 = new QuestRoot(); num = 1; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - 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) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - 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; + 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; reference154 = obj130; - obj129.Steps = list205; - reference153 = obj129; - num++; - ref QuestSequence reference155 = ref span203[num]; - QuestSequence obj131 = new QuestSequence + ref QuestSequence reference156 = ref span95[2]; + QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; reference156 = obj132; - obj131.Steps = list207; - reference155 = obj131; - num++; - ref QuestSequence reference157 = ref span203[num]; - QuestSequence obj133 = new QuestSequence + ref QuestSequence reference158 = ref span95[3]; + QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - SkipConditions skipConditions3 = new SkipConditions(); + SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; - 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); + 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; reference158 = obj134; - 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; + questRoot26.QuestSequence = list204; AddQuest(questId26, questRoot26); QuestId questId27 = new QuestId(1626); QuestRoot questRoot27 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 3; - 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) + 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) { StopDistance = 5f, AetherCurrentId = 2818100u }; - 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 - }; - 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 - }; - 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); - 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 - }; - 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 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; + 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; - num++; - ref QuestSequence reference164 = ref span212[num]; - QuestSequence obj140 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 2; - 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 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 - }; - 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 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 - }; - 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 - }; - 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 - }; - 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 - }; - obj143.Steps = list225; - reference167 = obj143; - questRoot28.QuestSequence = list222; - AddQuest(questId28, questRoot28); - QuestId questId29 = new QuestId(1628); - QuestRoot questRoot29 = new QuestRoot(); - num = 1; - 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 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 - }; - obj144.Steps = list228; - reference168 = obj144; - num++; - ref QuestSequence reference169 = ref span227[num]; - QuestSequence obj145 = new QuestSequence - { - Sequence = 1 - }; - 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 - }; - 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; - obj145.Steps = list229; - reference169 = obj145; - num++; - ref QuestSequence reference171 = ref span227[num]; - QuestSequence obj147 = new QuestSequence + ref QuestSequence reference162 = ref span99[2]; + QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - num2 = 1; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - List list232 = new List(num3); - CollectionsMarshal.SetCount(list232, num3); - Span span232 = CollectionsMarshal.AsSpan(list232); - index3 = 0; - span232[index3] = 4491u; - obj148.KillEnemyDataIds = list232; - reference172 = obj148; - obj147.Steps = list231; - reference171 = obj147; - num++; - ref QuestSequence reference173 = ref span227[num]; - QuestSequence obj149 = new QuestSequence - { - Sequence = 3 - }; - 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 - }; - num2++; - ref QuestStep reference174 = ref span233[num2]; - QuestStep obj150 = new QuestStep(EInteractionType.Combat, null, new Vector3(396.12845f, -29.186422f, -142.568f), 400) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; - obj149.Steps = list233; - reference173 = obj149; - num++; - ref QuestSequence reference175 = ref span227[num]; - QuestSequence obj151 = new QuestSequence + num3 = 1; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + CollectionsMarshal.AsSpan(list219)[0] = 4015u; + obj140.KillEnemyDataIds = list219; + 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 + { + 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; + 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 + { + 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 + { + 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) + { + 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) + { + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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) + { + StopDistance = 7f + }; + obj144.Steps = list226; + reference168 = obj144; + questRoot28.QuestSequence = list223; + 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 + { + 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) + { + StopDistance = 7f + }; + obj145.Steps = list229; + reference169 = obj145; + ref QuestSequence reference170 = ref span107[1]; + QuestSequence obj146 = 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) + { + 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; + reference170 = obj146; + ref QuestSequence reference172 = ref span107[2]; + QuestSequence obj148 = 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) + { + 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; + reference172 = obj148; + ref QuestSequence reference174 = ref span107[3]; + QuestSequence obj150 = 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) + { + AetherCurrentId = 2818107u + }; + ref QuestStep reference175 = ref span109[1]; + QuestStep obj151 = 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; - questRoot29.QuestSequence = list227; + obj150.Steps = list234; + reference174 = obj150; + ref QuestSequence reference176 = ref span107[4]; + QuestSequence obj152 = 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; AddQuest(questId29, questRoot29); QuestId questId30 = new QuestId(1629); QuestRoot questRoot30 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) { PickUpQuestId = new QuestId(1835) }; - index2++; - span239[index2] = new QuestStep(EInteractionType.Interact, 1012720u, new Vector3(-106.9505f, 15.168516f, -40.60431f), 418) + span111[1] = new QuestStep(EInteractionType.Interact, 1012720u, new Vector3(-106.9505f, 15.168516f, -40.60431f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -123438,20 +102545,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj153.Steps = list239; - reference177 = obj153; - num++; - ref QuestSequence reference178 = ref span237[num]; - QuestSequence obj154 = new QuestSequence + obj154.Steps = list240; + reference178 = obj154; + ref QuestSequence reference179 = ref span110[2]; + QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -123460,27 +102565,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - 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 + 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 { Sequence = 3 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 1012709u, new Vector3(151.01843f, -12.634913f, -28.671753f), 419) + span113[1] = new QuestStep(EInteractionType.Interact, 1012709u, new Vector3(151.01843f, -12.634913f, -28.671753f), 419) { AethernetShortcut = new AethernetShortcut { @@ -123488,20 +102589,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - obj155.Steps = list241; - reference179 = obj155; - num++; - ref QuestSequence reference180 = ref span237[num]; - QuestSequence obj156 = new QuestSequence + obj156.Steps = list242; + reference180 = obj156; + ref QuestSequence reference181 = ref span110[4]; + QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -123509,194 +102607,160 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj156.Steps = list242; - reference180 = obj156; - questRoot30.QuestSequence = list237; + obj157.Steps = list243; + reference181 = obj157; + questRoot30.QuestSequence = list238; AddQuest(questId30, questRoot30); QuestId questId31 = new QuestId(1630); QuestRoot questRoot31 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj157.Steps = list245; - reference181 = obj157; - num++; - ref QuestSequence reference182 = ref span244[num]; - QuestSequence obj158 = new QuestSequence + obj158.Steps = list246; + reference182 = obj158; + ref QuestSequence reference183 = ref span114[1]; + QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - obj158.Steps = list246; - reference182 = obj158; - num++; - ref QuestSequence reference183 = ref span244[num]; - QuestSequence obj159 = new QuestSequence + obj159.Steps = list247; + reference183 = obj159; + ref QuestSequence reference184 = ref span114[2]; + QuestSequence obj160 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj159.Steps = list247; - reference183 = obj159; - num++; - ref QuestSequence reference184 = ref span244[num]; - QuestSequence obj160 = new QuestSequence + obj160.Steps = list248; + reference184 = obj160; + ref QuestSequence reference185 = ref span114[3]; + QuestSequence obj161 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)140 }; - num2++; - span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.1446f, 20.88255f, -376.3636f), 140) + span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.1446f, 20.88255f, -376.3636f), 140) { Mount = true }; - num2++; - span248[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.0186f, 13.983504f, -100.87753f), 140) + span116[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.0186f, 13.983504f, -100.87753f), 140) { Fly = true }; - num2++; - span248[num2] = new QuestStep(EInteractionType.Interact, 1004019u, new Vector3(-335.9579f, 13.983504f, -99.65674f), 140) + span116[3] = new QuestStep(EInteractionType.Interact, 1004019u, new Vector3(-335.9579f, 13.983504f, -99.65674f), 140) { TargetTerritoryId = (ushort)140 }; - 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 + 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 { Sequence = 4 }; num2 = 2; - 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) + 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) { Fly = true }; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(1631); QuestRoot questRoot32 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -123705,136 +102769,114 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahChamberOfRule } }; - obj164.Steps = list254; - reference188 = obj164; - num++; - ref QuestSequence reference189 = ref span252[num]; - QuestSequence obj165 = new QuestSequence + obj165.Steps = list255; + reference189 = obj165; + ref QuestSequence reference190 = ref span118[2]; + QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj165.Steps = list255; - reference189 = obj165; - questRoot32.QuestSequence = list252; + obj166.Steps = list256; + reference190 = obj166; + questRoot32.QuestSequence = list253; AddQuest(questId32, questRoot32); QuestId questId33 = new QuestId(1632); QuestRoot questRoot33 = new QuestRoot(); num = 1; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - obj167.Steps = list259; - reference191 = obj167; - num++; - ref QuestSequence reference192 = ref span257[num]; - QuestSequence obj168 = new QuestSequence + obj168.Steps = list260; + reference192 = obj168; + ref QuestSequence reference193 = ref span119[2]; + QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj168.Steps = list260; - reference192 = obj168; - questRoot33.QuestSequence = list257; + obj169.Steps = list261; + reference193 = obj169; + questRoot33.QuestSequence = list258; AddQuest(questId33, questRoot33); QuestId questId34 = new QuestId(1633); QuestRoot questRoot34 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj169.Steps = list263; - reference193 = obj169; - num++; - ref QuestSequence reference194 = ref span262[num]; - QuestSequence obj170 = new QuestSequence + obj170.Steps = list264; + reference194 = obj170; + ref QuestSequence reference195 = ref span120[1]; + QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -123843,20 +102885,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj170.Steps = list264; - reference194 = obj170; - num++; - ref QuestSequence reference195 = ref span262[num]; - QuestSequence obj171 = new QuestSequence + obj171.Steps = list265; + reference195 = obj171; + ref QuestSequence reference196 = ref span120[2]; + QuestSequence obj172 = new QuestSequence { Sequence = 2 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -123865,32 +102905,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - index2++; - span265[index2] = new QuestStep(EInteractionType.Interact, 1012744u, new Vector3(-2.3041382f, -9.313226E-10f, 5.9052124f), 433) + span121[1] = new QuestStep(EInteractionType.Interact, 1012744u, new Vector3(-2.3041382f, -9.313226E-10f, 5.9052124f), 433) { StopDistance = 5f }; - obj171.Steps = list265; - reference195 = obj171; - num++; - ref QuestSequence reference196 = ref span262[num]; - QuestSequence obj172 = new QuestSequence + obj172.Steps = list266; + reference196 = obj172; + ref QuestSequence reference197 = ref span120[3]; + QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f, TargetTerritoryId = (ushort)419 }; - num2++; - ref QuestStep reference197 = ref span266[num2]; - QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) + ref QuestStep reference198 = ref span122[1]; + QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut { @@ -123899,74 +102935,61 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list267 = new List(num3); - CollectionsMarshal.SetCount(list267, num3); - Span span267 = CollectionsMarshal.AsSpan(list267); - index3 = 0; - span267[index3] = new DialogueChoice + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA332_01633_Q1_000_000") }; - obj173.DialogueChoices = list267; + obj174.DialogueChoices = list268; + reference198 = obj174; + obj173.Steps = list267; reference197 = obj173; - obj172.Steps = list266; - reference196 = obj172; - num++; - ref QuestSequence reference198 = ref span262[num]; - QuestSequence obj174 = new QuestSequence + ref QuestSequence reference199 = ref span120[4]; + QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId34, questRoot34); QuestId questId35 = new QuestId(1634); QuestRoot questRoot35 = new QuestRoot(); num = 1; - 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 - }; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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) + 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 + { + 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) { AethernetShortcut = new AethernetShortcut { @@ -123974,20 +102997,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj176.Steps = list272; - reference200 = obj176; - num++; - ref QuestSequence reference201 = ref span270[num]; - QuestSequence obj177 = new QuestSequence + obj177.Steps = list273; + reference201 = obj177; + ref QuestSequence reference202 = ref span123[2]; + QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Duty, null, null, 418) { DutyOptions = new DutyOptions { @@ -123995,188 +103015,158 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 39u } }; - obj177.Steps = list273; - reference201 = obj177; - num++; - span270[num] = new QuestSequence + obj178.Steps = list274; + reference202 = obj178; + span123[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference202 = ref span270[num]; - QuestSequence obj178 = new QuestSequence + ref QuestSequence reference203 = ref span123[4]; + QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj178.Steps = list274; - reference202 = obj178; - questRoot35.QuestSequence = list270; + obj179.Steps = list275; + reference203 = obj179; + questRoot35.QuestSequence = list271; AddQuest(questId35, questRoot35); QuestId questId36 = new QuestId(1635); QuestRoot questRoot36 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj179.Steps = list277; - reference203 = obj179; - num++; - ref QuestSequence reference204 = ref span276[num]; - QuestSequence obj180 = new QuestSequence + obj180.Steps = list278; + reference204 = obj180; + ref QuestSequence reference205 = ref span124[1]; + QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - SkipConditions skipConditions4 = new SkipConditions(); + SkipConditions skipConditions5 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - 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) + 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) { Fly = true }; - obj180.Steps = list278; - reference204 = obj180; - questRoot36.QuestSequence = list276; + obj181.Steps = list279; + reference205 = obj181; + questRoot36.QuestSequence = list277; AddQuest(questId36, questRoot36); QuestId questId37 = new QuestId(1636); QuestRoot questRoot37 = new QuestRoot(); num = 1; - 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 - }; - 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]; + 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 { - Sequence = byte.MaxValue + Sequence = 0 }; num2 = 1; 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) + 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 + { + 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) { StopDistance = 7f }; - obj183.Steps = list283; - reference207 = obj183; - questRoot37.QuestSequence = list281; + obj184.Steps = list284; + reference208 = obj184; + questRoot37.QuestSequence = list282; AddQuest(questId37, questRoot37); QuestId questId38 = new QuestId(1637); QuestRoot questRoot38 = new QuestRoot(); num = 1; - 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 - }; - 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 - }; - obj184.Steps = list286; - reference208 = obj184; - num++; - ref QuestSequence reference209 = ref span285[num]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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) + CollectionsMarshal.AsSpan(list287)[0] = 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 + { + 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) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -124185,69 +103175,58 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - obj185.Steps = list287; - reference209 = obj185; - num++; - ref QuestSequence reference210 = ref span285[num]; - QuestSequence obj186 = new QuestSequence + obj186.Steps = list288; + reference210 = obj186; + ref QuestSequence reference211 = ref span127[2]; + QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj186.Steps = list288; - reference210 = obj186; - questRoot38.QuestSequence = list285; + obj187.Steps = list289; + reference211 = obj187; + questRoot38.QuestSequence = list286; AddQuest(questId38, questRoot38); QuestId questId39 = new QuestId(1638); QuestRoot questRoot39 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj187.Steps = list291; - reference211 = obj187; - num++; - ref QuestSequence reference212 = ref span290[num]; - QuestSequence obj188 = new QuestSequence + obj188.Steps = list292; + reference212 = obj188; + ref QuestSequence reference213 = ref span128[1]; + QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -124255,269 +103234,213 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - obj188.Steps = list292; - reference212 = obj188; - num++; - ref QuestSequence reference213 = ref span290[num]; - QuestSequence obj189 = new QuestSequence + obj189.Steps = list293; + reference213 = obj189; + ref QuestSequence reference214 = ref span128[2]; + QuestSequence obj190 = new QuestSequence { Sequence = 2 }; num2 = 3; - List list293 = new List(num2); - CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - ref QuestStep reference214 = ref span293[index2]; + List list294 = new List(num2); + CollectionsMarshal.SetCount(list294, num2); + Span span129 = CollectionsMarshal.AsSpan(list294); + ref QuestStep reference215 = ref span129[0]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1013342u, new Vector3(36.331665f, -12.020876f, 76.58496f), 418); num3 = 6; - 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]; + 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]; 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 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; AddQuest(questId39, questRoot39); QuestId questId40 = new QuestId(1639); QuestRoot questRoot40 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 - }; - 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); + 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; - num++; - ref QuestSequence reference220 = ref span299[num]; + ref QuestSequence reference220 = ref span133[1]; QuestSequence obj193 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; num2 = 1; 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); + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2005551u, new Vector3(38.254395f, -6.820801f, 76.34082f), 418); obj193.Steps = list302; reference220 = obj193; - num++; - ref QuestSequence reference221 = ref span299[num]; + ref QuestSequence reference221 = ref span133[2]; QuestSequence obj194 = new QuestSequence { - Sequence = 3 - }; - 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 + 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; - num++; - ref QuestSequence reference222 = ref span299[num]; + ref QuestSequence reference222 = ref span133[3]; QuestSequence obj195 = new QuestSequence { - Sequence = 4 + Sequence = 3 }; num2 = 1; 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) + CollectionsMarshal.AsSpan(list304)[0] = 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 + { + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { Enabled = true } }; - obj195.Steps = list304; - reference222 = obj195; - num++; - ref QuestSequence reference223 = ref span299[num]; - QuestSequence obj196 = new QuestSequence + obj196.Steps = list305; + reference223 = obj196; + ref QuestSequence reference224 = ref span133[5]; + QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj196.Steps = list305; - reference223 = obj196; - questRoot40.QuestSequence = list299; + obj197.Steps = list306; + reference224 = obj197; + questRoot40.QuestSequence = list300; AddQuest(questId40, questRoot40); QuestId questId41 = new QuestId(1640); QuestRoot questRoot41 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 5f }; obj198.Steps = list309; reference225 = obj198; - num++; - ref QuestSequence reference226 = ref span307[num]; + ref QuestSequence reference226 = ref span134[1]; QuestSequence obj199 = new QuestSequence { - Sequence = 2 + Sequence = 1 }; num2 = 1; 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -124525,20 +103448,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - obj199.Steps = list310; - reference226 = obj199; - num++; - ref QuestSequence reference227 = ref span307[num]; - QuestSequence obj200 = new QuestSequence + obj200.Steps = list311; + reference227 = obj200; + ref QuestSequence reference228 = ref span134[3]; + QuestSequence obj201 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Duty, null, null, 419) { DutyOptions = new DutyOptions { @@ -124546,115 +103466,97 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 34u } }; - obj200.Steps = list311; - reference227 = obj200; - num++; - span307[num] = new QuestSequence + obj201.Steps = list312; + reference228 = obj201; + span134[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference228 = ref span307[num]; - QuestSequence obj201 = new QuestSequence + ref QuestSequence reference229 = ref span134[5]; + QuestSequence obj202 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - 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]; + ref QuestSequence reference230 = ref span134[6]; QuestSequence obj203 = new QuestSequence { - Sequence = byte.MaxValue + Sequence = 6 }; num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1013101u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { - StopDistance = 5f + TargetTerritoryId = (ushort)433 }; obj203.Steps = list314; reference230 = obj203; - questRoot41.QuestSequence = list307; + 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) + { + StopDistance = 5f + }; + obj204.Steps = list315; + reference231 = obj204; + questRoot41.QuestSequence = list308; AddQuest(questId41, questRoot41); QuestId questId42 = new QuestId(1641); QuestRoot questRoot42 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj204.Steps = list317; - reference231 = obj204; - num++; - ref QuestSequence reference232 = ref span316[num]; - QuestSequence obj205 = new QuestSequence + obj205.Steps = list318; + reference232 = obj205; + ref QuestSequence reference233 = ref span135[1]; + QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 3; - 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) + 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) { StopDistance = 7f, PickUpQuestId = new QuestId(1874) }; - index2++; - ref QuestStep reference233 = ref span318[index2]; - QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) + ref QuestStep reference234 = ref span136[1]; + QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -124663,80 +103565,67 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - index3 = 1; - List list319 = new List(index3); - CollectionsMarshal.SetCount(list319, index3); - Span span319 = CollectionsMarshal.AsSpan(list319); - num3 = 0; - span319[num3] = new DialogueChoice + num3 = 1; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + CollectionsMarshal.AsSpan(list320)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA405_01641_SCENE00020_EVENTAREA_WARP_YESNO_TITLE") }; - obj206.DialogueChoices = list319; - reference233 = obj206; - index2++; - ref QuestStep reference234 = ref span318[index2]; + obj207.DialogueChoices = list320; + reference234 = obj207; + ref QuestStep reference235 = ref span136[2]; QuestStep questStep29 = new QuestStep(EInteractionType.CompleteQuest, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); num3 = 1; - List list320 = new List(num3); - CollectionsMarshal.SetCount(list320, num3); - Span span320 = CollectionsMarshal.AsSpan(list320); - index3 = 0; - span320[index3] = new DialogueChoice + List list321 = new List(num3); + CollectionsMarshal.SetCount(list321, num3); + CollectionsMarshal.AsSpan(list321)[0] = 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 = list320; - reference234 = questStep29; - obj205.Steps = list318; - reference232 = obj205; - questRoot42.QuestSequence = list316; + questStep29.DialogueChoices = list321; + reference235 = questStep29; + obj206.Steps = list319; + reference233 = obj206; + questRoot42.QuestSequence = list317; AddQuest(questId42, questRoot42); QuestId questId43 = new QuestId(1642); QuestRoot questRoot43 = new QuestRoot(); num = 1; - 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 - }; - 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 - }; - obj207.Steps = list323; - reference235 = obj207; - num++; - ref QuestSequence reference236 = ref span322[num]; + 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 { - Sequence = byte.MaxValue + Sequence = 0 }; num2 = 1; 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) + CollectionsMarshal.AsSpan(list324)[0] = 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 + { + 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) { AethernetShortcut = new AethernetShortcut { @@ -124744,49 +103633,41 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - obj208.Steps = list324; - reference236 = obj208; - questRoot43.QuestSequence = list322; + obj209.Steps = list325; + reference237 = obj209; + questRoot43.QuestSequence = list323; AddQuest(questId43, questRoot43); QuestId questId44 = new QuestId(1643); QuestRoot questRoot44 = new QuestRoot(); num = 1; - 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 - }; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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) + 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 + { + 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) { AethernetShortcut = new AethernetShortcut { @@ -124794,118 +103675,98 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardAthenaeumAstrologicum } }; - obj210.Steps = list328; - reference238 = obj210; - num++; - ref QuestSequence reference239 = ref span326[num]; - QuestSequence obj211 = new QuestSequence + obj211.Steps = list329; + reference239 = obj211; + ref QuestSequence reference240 = ref span138[2]; + QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list329 = new List(index2); - CollectionsMarshal.SetCount(list329, index2); - Span span329 = CollectionsMarshal.AsSpan(list329); - num2 = 0; - ref QuestStep reference240 = ref span329[num2]; + num2 = 1; + List list330 = new List(num2); + CollectionsMarshal.SetCount(list330, num2); + ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list330)[0]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1013125u, new Vector3(148.60754f, -12.634913f, -13.443237f), 419); - index3 = 1; - List list330 = new List(index3); - CollectionsMarshal.SetCount(list330, index3); - Span span330 = CollectionsMarshal.AsSpan(list330); - num3 = 0; - span330[num3] = new DialogueChoice + num3 = 1; + List list331 = new List(num3); + CollectionsMarshal.SetCount(list331, num3); + CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA502_01643_Q1_000_000") }; - questStep30.DialogueChoices = list330; - reference240 = questStep30; - obj211.Steps = list329; - reference239 = obj211; - num++; - span326[num] = new QuestSequence + questStep30.DialogueChoices = list331; + reference241 = questStep30; + obj212.Steps = list330; + reference240 = obj212; + span138[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference241 = ref span326[num]; - QuestSequence obj212 = new QuestSequence + ref QuestSequence reference242 = ref span138[4]; + QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId44, questRoot44); QuestId questId45 = new QuestId(1644); QuestRoot questRoot45 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) { AetherCurrentId = 2818116u }; - index2++; - span335[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-703.7623f, -61.975857f, 113.54166f), 401) + span140[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-703.7623f, -61.975857f, 113.54166f), 401) { StopDistance = 0.25f, Emote = EEmote.Lookout }; - obj214.Steps = list335; - reference243 = obj214; - num++; - ref QuestSequence reference244 = ref span333[num]; - QuestSequence obj215 = new QuestSequence + obj215.Steps = list336; + reference244 = obj215; + ref QuestSequence reference245 = ref span139[2]; + QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.25f, Emote = EEmote.Lookout, @@ -124914,451 +103775,376 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj215.Steps = list336; - reference244 = obj215; - num++; - ref QuestSequence reference245 = ref span333[num]; - QuestSequence obj216 = new QuestSequence + obj216.Steps = list337; + reference245 = obj216; + ref QuestSequence reference246 = ref span139[3]; + QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj216.Steps = list337; - reference245 = obj216; - questRoot45.QuestSequence = list333; + obj217.Steps = list338; + reference246 = obj217; + questRoot45.QuestSequence = list334; AddQuest(questId45, questRoot45); QuestId questId46 = new QuestId(1645); QuestRoot questRoot46 = new QuestRoot(); num = 1; - 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 - }; - 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 - }; - obj217.Steps = list340; - reference246 = obj217; - num++; - ref QuestSequence reference247 = ref span339[num]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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); + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013089u, new Vector3(-751.6747f, -35.95642f, 18.722778f), 401) + { + StopDistance = 7f + }; obj218.Steps = list341; reference247 = obj218; - num++; - ref QuestSequence reference248 = ref span339[num]; + ref QuestSequence reference248 = ref span141[1]; QuestSequence obj219 = 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 { Sequence = 2 }; - 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) + 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) { JumpDestination = new JumpDestination { Position = new Vector3(-759.4263f, -9.201294f, -110.85681f) } }; - num2++; - span342[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006229u, new Vector3(-759.4263f, -9.201294f, -110.85681f), 401) + span142[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006229u, new Vector3(-759.4263f, -9.201294f, -110.85681f), 401) { DisableNavmesh = true, AetherCurrentId = 2818117u }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 2; - 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) + List list344 = new List(num2); + CollectionsMarshal.SetCount(list344, num2); + Span span143 = CollectionsMarshal.AsSpan(list344); + span143[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 401) { Aetheryte = EAetheryteLocation.SeaOfCloudsOkZundu }; - 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; + span143[1] = new QuestStep(EInteractionType.CompleteQuest, 1013095u, new Vector3(-560.69275f, -52.30738f, -427.57312f), 401); + obj221.Steps = list344; + reference250 = obj221; + questRoot46.QuestSequence = list340; AddQuest(questId46, questRoot46); QuestId questId47 = new QuestId(1646); QuestRoot questRoot47 = new QuestRoot(); num = 1; - 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]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.Interact, 1013123u, new Vector3(-538.0178f, -37.04666f, -392.0501f), 401); + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013096u, new Vector3(-541.34436f, -37.144257f, -384.48163f), 401); obj222.Steps = list347; reference251 = obj222; - num++; - ref QuestSequence reference252 = ref span345[num]; + ref QuestSequence reference252 = ref span144[1]; 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 }; - 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) + 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) { AetherCurrentId = 2818122u }; - num2++; - span348[num2] = new QuestStep(EInteractionType.Emote, 1012070u, new Vector3(-554.0704f, -57.62821f, -547.4174f), 401) + span145[1] = new QuestStep(EInteractionType.Emote, 1012070u, new Vector3(-554.0704f, -57.62821f, -547.4174f), 401) { Emote = EEmote.Bow }; - obj223.Steps = list348; - reference252 = obj223; - num++; - ref QuestSequence reference253 = ref span345[num]; - QuestSequence obj224 = new QuestSequence + obj224.Steps = list349; + reference253 = obj224; + ref QuestSequence reference254 = ref span144[3]; + QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; AddQuest(questId47, questRoot47); QuestId questId48 = new QuestId(1647); QuestRoot questRoot48 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 2; - 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) + 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) { PickUpQuestId = new QuestId(1909) }; - 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 + 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 { Sequence = 2 }; - 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) + 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) { PickUpQuestId = new QuestId(1910) }; - num2++; - span354[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006231u, new Vector3(-180.34644f, -14.938599f, -543.1144f), 401) + span148[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006231u, new Vector3(-180.34644f, -14.938599f, -543.1144f), 401) { AetherCurrentId = 2818119u }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; num3 = 1; - List list356 = new List(num3); - CollectionsMarshal.SetCount(list356, num3); - Span span356 = CollectionsMarshal.AsSpan(list356); - index3 = 0; - span356[index3] = new DialogueChoice + List list357 = new List(num3); + CollectionsMarshal.SetCount(list357, num3); + CollectionsMarshal.AsSpan(list357)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA506_01647_Q1_000_000") }; - obj229.DialogueChoices = list356; + obj230.DialogueChoices = list357; + reference259 = obj230; + obj229.Steps = list356; reference258 = obj229; - obj228.Steps = list355; - reference257 = obj228; - num++; - ref QuestSequence reference259 = ref span351[num]; - QuestSequence obj230 = new QuestSequence + ref QuestSequence reference260 = ref span146[4]; + QuestSequence obj231 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list358 = new List(num2); + CollectionsMarshal.SetCount(list358, num2); + CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { ContentFinderConditionId = 88u } }; - obj230.Steps = list357; - reference259 = obj230; - num++; - ref QuestSequence reference260 = ref span351[num]; - QuestSequence obj231 = new QuestSequence + obj231.Steps = list358; + reference260 = obj231; + ref QuestSequence reference261 = ref span146[5]; + QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj231.Steps = list358; - reference260 = obj231; - questRoot48.QuestSequence = list351; + obj232.Steps = list359; + reference261 = obj232; + questRoot48.QuestSequence = list352; AddQuest(questId48, questRoot48); QuestId questId49 = new QuestId(1648); QuestRoot questRoot49 = new QuestRoot(); num = 1; - 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 - }; - 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 - }; - obj232.Steps = list361; - reference261 = obj232; - num++; - ref QuestSequence reference262 = ref span360[num]; + 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 { - Sequence = 1 + Sequence = 0 }; num2 = 1; 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); + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014575u, new Vector3(-156.66437f, -14.153766f, -543.0228f), 401) + { + StopDistance = 7f + }; obj233.Steps = list362; reference262 = obj233; - num++; - ref QuestSequence reference263 = ref span360[num]; + ref QuestSequence reference263 = ref span149[1]; QuestSequence obj234 = 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 { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - obj234.Steps = list363; - reference263 = obj234; - questRoot49.QuestSequence = list360; + obj235.Steps = list364; + reference264 = obj235; + questRoot49.QuestSequence = list361; AddQuest(questId49, questRoot49); QuestId questId50 = new QuestId(1649); QuestRoot questRoot50 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj235.Steps = list366; - reference264 = obj235; - num++; - ref QuestSequence reference265 = ref span365[num]; - QuestSequence obj236 = new QuestSequence + obj236.Steps = list367; + reference265 = obj236; + ref QuestSequence reference266 = ref span150[1]; + QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; - obj236.Steps = list367; - reference265 = obj236; - questRoot50.QuestSequence = list365; + obj237.Steps = list368; + reference266 = obj237; + questRoot50.QuestSequence = list366; AddQuest(questId50, questRoot50); } @@ -125369,16 +104155,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -125386,26 +104169,22 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013112u, new Vector3(162.005f, -15.134371f, 38.52893f), 419) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013112u, new Vector3(162.005f, -15.134371f, 38.52893f), 419) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 2; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -125417,21 +104196,17 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA601_01650_SCENE00008_EVENTAREA_WARP_YESNO_TITLE") }; obj3.DialogueChoices = list5; reference3 = obj3; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); + span2[1] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -125439,9 +104214,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013162u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -125451,30 +104224,24 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; questRoot2.Author = list7; - index = 4; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 4; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -125482,34 +104249,28 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 1012389u, new Vector3(-133.31812f, 4.1f, -111.77234f), 130) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1012389u, new Vector3(-133.31812f, 4.1f, -111.77234f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span3[3]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -125517,9 +104278,7 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012394u, new Vector3(-158.1903f, 4f, -21.194885f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -125537,30 +104296,24 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; questRoot3.Author = list13; - index = 5; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 5; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span4 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span4[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span4[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -125568,45 +104321,37 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - ref QuestStep reference11 = ref span16[index2]; + Span span5 = CollectionsMarshal.AsSpan(list16); + ref QuestStep reference11 = ref span5[0]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { TargetTerritoryId = (ushort)205 }; - index3 = 1; - List list17 = new List(index3); - CollectionsMarshal.SetCount(list17, index3); - Span span17 = CollectionsMarshal.AsSpan(list17); - num3 = 0; - span17[num3] = new DialogueChoice + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + CollectionsMarshal.AsSpan(list17)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNA603_01652_SCENE00007_EVENTAREA_WARP_YESNO_TITLE") }; obj11.DialogueChoices = list17; reference11 = obj11; - index2++; - span16[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span5[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference12 = ref span14[num]; + ref QuestSequence reference12 = ref span4[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span14[num]; + ref QuestSequence reference13 = ref span4[3]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -125614,9 +104359,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AethernetShortcut = new AethernetShortcut { @@ -125626,18 +104369,15 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span14[num]; + ref QuestSequence reference14 = ref span4[4]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -125650,16 +104390,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; questRoot4.Author = list21; - index = 3; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 3; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span6 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span6[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -125667,28 +104404,23 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { StopDistance = 5f }; obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span22[num]; + ref QuestSequence reference16 = ref span6[1]; QuestSequence obj16 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1000691u, new Vector3(71.97681f, 8f, -166.52173f), 133) { AethernetShortcut = new AethernetShortcut @@ -125700,23 +104432,16 @@ public static class AssemblyQuestLoader num3 = 6; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - 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); + 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); obj17.CompletionQuestVariablesFlags = list25; reference17 = obj17; - num2++; - ref QuestStep reference18 = ref span24[num2]; + ref QuestStep reference18 = ref span7[2]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1000692u, new Vector3(-258.8083f, -5.7735243f, -27.267883f), 133) { AethernetShortcut = new AethernetShortcut @@ -125725,28 +104450,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - 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); + 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); obj18.CompletionQuestVariablesFlags = list26; reference18 = obj18; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference19 = ref span22[num]; + ref QuestSequence reference19 = ref span6[2]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -125754,9 +104472,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012398u, new Vector3(35.538208f, -8f, 98.13074f), 132) { AethernetShortcut = new AethernetShortcut { @@ -125773,30 +104489,24 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list28)[0] = "JerryWester"; questRoot5.Author = list28; - index = 3; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference20 = ref span29[num]; + num = 3; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span10 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference20 = ref span10[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj20.Steps = list30; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span29[num]; + ref QuestSequence reference21 = ref span10[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -125804,26 +104514,21 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1012401u, new Vector3(-8.560364f, 5.4681287f, 40.6958f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj21.Steps = list31; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span29[num]; + ref QuestSequence reference22 = ref span10[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather @@ -125837,16 +104542,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list33)[0] = "JerryWester"; questRoot6.Author = list33; - index = 4; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference23 = ref span34[num]; + num = 4; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span11 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference23 = ref span11[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -125854,36 +104556,30 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012406u, new Vector3(587.45703f, -50.811344f, 69.16907f), 398); obj23.Steps = list35; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span34[num]; + ref QuestSequence reference24 = ref span11[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - num2++; - span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.08453f, -122.82994f, 577.8909f), 398) + span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.08453f, -122.82994f, 577.8909f), 398) { TargetTerritoryId = (ushort)399 }; obj24.Steps = list36; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span34[num]; + ref QuestSequence reference25 = ref span11[2]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -125891,41 +104587,35 @@ public static class AssemblyQuestLoader num2 = 3; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006205u, new Vector3(729.21326f, 134.93542f, 150.89636f), 399) + Span span13 = CollectionsMarshal.AsSpan(list37); + span13[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006205u, new Vector3(729.21326f, 134.93542f, 150.89636f), 399) { AetherCurrentId = 2818083u }; - index2++; - span37[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006208u, new Vector3(98.89368f, 73.07532f, -174.36487f), 399) + span13[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006208u, new Vector3(98.89368f, 73.07532f, -174.36487f), 399) { AetherCurrentId = 2818086u }; - index2++; - span37[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.85187f, 107.00484f, -632.70197f), 399) + span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.85187f, 107.00484f, -632.70197f), 399) { TargetTerritoryId = (ushort)478 }; obj25.Steps = list37; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span11[3]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.Idyllshire }; - num2++; - span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list34; @@ -125935,16 +104625,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; questRoot7.Author = list39; - index = 4; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference27 = ref span40[num]; + num = 4; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span15 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference27 = ref span15[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -125952,30 +104639,24 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj27.Steps = list41; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span40[num]; + ref QuestSequence reference28 = ref span15[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj28.Steps = list42; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span40[num]; + ref QuestSequence reference29 = ref span15[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -125983,9 +104664,8 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref QuestStep reference30 = ref span43[index2]; + Span span16 = CollectionsMarshal.AsSpan(list43); + ref QuestStep reference30 = ref span16[0]; QuestStep obj30 = new QuestStep(EInteractionType.Say, 1014413u, new Vector3(-42.008118f, 205.79572f, 3.4332886f), 478) { ChatMessage = new ChatMessage @@ -125996,23 +104676,16 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - 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); + 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); obj30.CompletionQuestVariablesFlags = list44; reference30 = obj30; - index2++; - ref QuestStep reference31 = ref span43[index2]; + ref QuestStep reference31 = ref span16[1]; QuestStep obj31 = new QuestStep(EInteractionType.Say, 1012413u, new Vector3(-69.230286f, 205.88773f, -68.61987f), 478) { ChatMessage = new ChatMessage @@ -126020,43 +104693,34 @@ public static class AssemblyQuestLoader Key = "TEXT_HEAVNA607_01656_SAYTODO_000" } }; - 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); + 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); obj31.CompletionQuestVariablesFlags = list45; reference31 = obj31; obj29.Steps = list43; reference29 = obj29; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span15[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShard = EAetheryteLocation.IdyllshireWest }; - num2++; - span46[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AethernetShortcut = new AethernetShortcut { @@ -126073,16 +104737,13 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; questRoot8.Author = list47; - index = 4; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference33 = ref span48[num]; + num = 4; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span20 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference33 = ref span20[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -126090,23 +104751,19 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj33.Steps = list49; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span48[num]; + ref QuestSequence reference34 = ref span20[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -126115,8 +104772,7 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(1936) }; - num2++; - span50[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012416u, new Vector3(365.83496f, 80.11144f, 6.3324585f), 399) + span21[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012416u, new Vector3(365.83496f, 80.11144f, 6.3324585f), 399) { AethernetShortcut = new AethernetShortcut { @@ -126130,8 +104786,7 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span48[num]; + ref QuestSequence reference35 = ref span20[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -126139,26 +104794,21 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1012418u, new Vector3(352.65125f, 77.859474f, -5.9052734f), 399) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1012418u, new Vector3(352.65125f, 77.859474f, -5.9052734f), 399) { StopDistance = 7f }; obj35.Steps = list51; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span48[num]; + ref QuestSequence reference36 = ref span20[3]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; @@ -126171,16 +104821,13 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list53)[0] = "JerryWester"; questRoot9.Author = list53; - index = 3; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference37 = ref span54[num]; + num = 3; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span22 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference37 = ref span22[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -126188,32 +104835,26 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478); obj37.Steps = list55; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span54[num]; + ref QuestSequence reference38 = ref span22[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(1945) }; - num2++; - span56[num2] = new QuestStep(EInteractionType.Interact, 1012419u, new Vector3(78.96533f, 203.98001f, 133.1654f), 478); + span23[1] = new QuestStep(EInteractionType.Interact, 1012419u, new Vector3(78.96533f, 203.98001f, 133.1654f), 478); obj38.Steps = list56; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span54[num]; + ref QuestSequence reference39 = ref span22[2]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -126221,9 +104862,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012421u, new Vector3(77.98877f, 203.98f, 127.91626f), 478) { StopDistance = 5f }; @@ -126236,33 +104875,27 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; questRoot10.Author = list58; - index = 4; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference40 = ref span59[num]; + num = 4; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span24 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference40 = ref span24[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj40.Steps = list60; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span59[num]; + ref QuestSequence reference41 = ref span24[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -126270,14 +104903,12 @@ public static class AssemblyQuestLoader num2 = 4; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + Span span25 = CollectionsMarshal.AsSpan(list61); + span25[0] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { PickUpQuestId = new QuestId(1963) }; - index2++; - ref QuestStep reference42 = ref span61[index2]; + ref QuestStep reference42 = ref span25[1]; QuestStep obj42 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 @@ -126287,50 +104918,40 @@ public static class AssemblyQuestLoader num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span62 = CollectionsMarshal.AsSpan(list62); - index3 = 0; - span62[index3] = 399; + CollectionsMarshal.AsSpan(list62)[0] = 399; skipStepConditions.InTerritory = list62; skipConditions.StepIf = skipStepConditions; obj42.SkipConditions = skipConditions; reference42 = obj42; - index2++; - span61[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006214u, new Vector3(-452.38422f, 138.10938f, 678.18713f), 399) + span25[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006214u, new Vector3(-452.38422f, 138.10938f, 678.18713f), 399) { AetherCurrentId = 2818092u }; - index2++; - span61[index2] = new QuestStep(EInteractionType.Interact, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); + span25[3] = new QuestStep(EInteractionType.Interact, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); obj41.Steps = list61; reference41 = obj41; - num++; - ref QuestSequence reference43 = ref span59[num]; + ref QuestSequence reference43 = ref span24[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference44 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 2005532u, new Vector3(-488.76178f, 138.99438f, 742.12244f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list64 = new List(index3); - CollectionsMarshal.SetCount(list64, index3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = 4375u; + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = 4375u; obj44.KillEnemyDataIds = list64; reference44 = obj44; obj43.Steps = list63; reference43 = obj43; - num++; - ref QuestSequence reference45 = ref span59[num]; + ref QuestSequence reference45 = ref span24[3]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -126338,9 +104959,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012423u, new Vector3(-476.58502f, 137.42972f, 702.6931f), 399); obj45.Steps = list65; reference45 = obj45; questRoot10.QuestSequence = list59; @@ -126350,33 +104969,27 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; questRoot11.Author = list66; - index = 7; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference46 = ref span67[num]; + num = 7; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span26 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference46 = ref span26[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj46.Steps = list68; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span67[num]; + ref QuestSequence reference47 = ref span26[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -126384,33 +104997,27 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463) { StopDistance = 7f }; obj47.Steps = list69; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span67[num]; + ref QuestSequence reference48 = ref span26[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 6f }; obj48.Steps = list70; reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span67[num]; + ref QuestSequence reference49 = ref span26[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -126418,14 +105025,12 @@ public static class AssemblyQuestLoader num2 = 4; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463) + Span span27 = CollectionsMarshal.AsSpan(list71); + span27[0] = new QuestStep(EInteractionType.AcceptQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463) { PickUpQuestId = new QuestId(1966) }; - index2++; - ref QuestStep reference50 = ref span71[index2]; + ref QuestStep reference50 = ref span27[1]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2005337u, new Vector3(7.765594f, 38.9395f, -50.9989f), 463) { TargetTerritoryId = (ushort)399 @@ -126435,34 +105040,27 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span72 = CollectionsMarshal.AsSpan(list72); - index3 = 0; - span72[index3] = 463; + CollectionsMarshal.AsSpan(list72)[0] = 463; skipStepConditions2.NotInTerritory = list72; skipConditions2.StepIf = skipStepConditions2; obj50.SkipConditions = skipConditions2; reference50 = obj50; - 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) + 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) { DisableNavmesh = true }; obj49.Steps = list71; reference49 = obj49; - num++; - ref QuestSequence reference51 = ref span67[num]; + ref QuestSequence reference51 = ref span26[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -126472,13 +105070,11 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference51 = obj51; - num++; - span67[num] = new QuestSequence + span26[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span26[6]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -126486,20 +105082,17 @@ public static class AssemblyQuestLoader num2 = 3; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399) + Span span28 = CollectionsMarshal.AsSpan(list74); + span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(228.06944f, 228.11594f, 767.1184f), 399) { DisableNavmesh = true, Mount = true }; - index2++; - span74[index2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + span28[1] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463 }; - index2++; - span74[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + span28[2] = new QuestStep(EInteractionType.CompleteQuest, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj52.Steps = list74; reference52 = obj52; questRoot11.QuestSequence = list67; @@ -126509,30 +105102,24 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; questRoot12.Author = list75; - index = 4; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference53 = ref span76[num]; + num = 4; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span29 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference53 = ref span29[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj53.Steps = list77; reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span76[num]; + ref QuestSequence reference54 = ref span29[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -126540,26 +105127,21 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1012422u, new Vector3(-475.79156f, 137.42972f, 701.4724f), 399) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1012422u, new Vector3(-475.79156f, 137.42972f, 701.4724f), 399) { StopDistance = 7f }; obj54.Steps = list78; reference54 = obj54; - num++; - ref QuestSequence reference55 = ref span76[num]; + ref QuestSequence reference55 = ref span29[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -126571,8 +105153,7 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference55 = obj55; - num++; - ref QuestSequence reference56 = ref span76[num]; + ref QuestSequence reference56 = ref span29[3]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -126580,9 +105161,7 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013163u, new Vector3(167.0404f, -14.313367f, 51.285522f), 419) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013163u, new Vector3(167.0404f, -14.313367f, 51.285522f), 419) { AethernetShortcut = new AethernetShortcut { @@ -126599,33 +105178,27 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list81)[0] = "JerryWester"; questRoot13.Author = list81; - index = 5; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference57 = ref span82[num]; + num = 5; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span30 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference57 = ref span30[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj57.Steps = list83; reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span82[num]; + ref QuestSequence reference58 = ref span30[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -126633,26 +105206,22 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.Interact, 1013166u, new Vector3(168.29175f, -14.52896f, 41.153564f), 419) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1013166u, new Vector3(168.29175f, -14.52896f, 41.153564f), 419) { StopDistance = 7f }; obj58.Steps = list84; reference58 = obj58; - num++; - ref QuestSequence reference59 = ref span82[num]; + ref QuestSequence reference59 = ref span30[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference60 = ref span85[num2]; + num2 = 5; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span31 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference60 = ref span31[0]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1013167u, new Vector3(125.68848f, 24.458836f, 2.456604f), 418) { AethernetShortcut = new AethernetShortcut @@ -126661,72 +105230,51 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - 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); + 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); obj60.CompletionQuestVariablesFlags = list86; reference60 = obj60; - num2++; - ref QuestStep reference61 = ref span85[num2]; + ref QuestStep reference61 = ref span31[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list87; reference61 = questStep; - num2++; - ref QuestStep reference62 = ref span85[num2]; + ref QuestStep reference62 = ref span31[2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(89.00678f, 1.6069314f, 67.770386f), 418); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list88; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference62 = questStep2; - num2++; - ref QuestStep reference63 = ref span85[num2]; + ref QuestStep reference63 = ref span31[3]; QuestStep obj61 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(74.918564f, -13.879314f, 68.86857f), 418) { DisableNavmesh = true @@ -126736,48 +105284,34 @@ public static class AssemblyQuestLoader num3 = 6; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list89; skipConditions4.StepIf = skipStepConditions4; obj61.SkipConditions = skipConditions4; reference63 = obj61; - num2++; - ref QuestStep reference64 = ref span85[num2]; + ref QuestStep reference64 = ref span31[4]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list90; reference64 = questStep3; obj59.Steps = list85; reference59 = obj59; - num++; - ref QuestSequence reference65 = ref span82[num]; + ref QuestSequence reference65 = ref span30[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -126785,9 +105319,8 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span37 = CollectionsMarshal.AsSpan(list91); + span37[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -126796,30 +105329,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - index2++; - span91[index2] = new QuestStep(EInteractionType.Interact, 1012397u, new Vector3(4.0131226f, -9.313226E-10f, 5.661072f), 433) + span37[1] = new QuestStep(EInteractionType.Interact, 1012397u, new Vector3(4.0131226f, -9.313226E-10f, 5.661072f), 433) { StopDistance = 7f }; obj62.Steps = list91; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span82[num]; + ref QuestSequence reference66 = ref span30[4]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span92[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) + span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419) { AethernetShortcut = new AethernetShortcut { @@ -126836,16 +105365,13 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; questRoot14.Author = list93; - index = 6; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference67 = ref span94[num]; + num = 6; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span39 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference67 = ref span39[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -126853,27 +105379,21 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); obj64.Steps = list95; reference67 = obj64; - num++; - ref QuestSequence reference68 = ref span94[num]; + ref QuestSequence reference68 = ref span39[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj65.Steps = list96; reference68 = obj65; - num++; - ref QuestSequence reference69 = ref span94[num]; + ref QuestSequence reference69 = ref span39[2]; QuestSequence obj66 = new QuestSequence { Sequence = 2 @@ -126881,35 +105401,28 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1012430u, new Vector3(165.94177f, -14.34896f, 51.651733f), 419); obj66.Steps = list97; reference69 = obj66; - num++; - span94[num] = new QuestSequence + span39[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference70 = ref span94[num]; + ref QuestSequence reference70 = ref span39[4]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true }; obj67.Steps = list98; reference70 = obj67; - num++; - ref QuestSequence reference71 = ref span94[num]; + ref QuestSequence reference71 = ref span39[5]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -126917,14 +105430,12 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 402) + Span span40 = CollectionsMarshal.AsSpan(list99); + span40[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 402) { Aetheryte = EAetheryteLocation.AzysLlaHelix }; - index2++; - span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); + span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1012792u, new Vector3(-650.1717f, -176.45021f, -565.14844f), 402); obj68.Steps = list99; reference71 = obj68; questRoot14.QuestSequence = list94; @@ -126934,30 +105445,24 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; questRoot15.Author = list100; - index = 5; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference72 = ref span101[num]; + num = 5; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span41 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference72 = ref span41[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj69.Steps = list102; reference72 = obj69; - num++; - ref QuestSequence reference73 = ref span101[num]; + ref QuestSequence reference73 = ref span41[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -126965,88 +105470,63 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - ref QuestStep reference74 = ref span103[index2]; + Span span42 = CollectionsMarshal.AsSpan(list103); + ref QuestStep reference74 = ref span42[0]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list104; reference74 = questStep4; - index2++; - ref QuestStep reference75 = ref span103[index2]; + ref QuestStep reference75 = ref span42[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006236u, new Vector3(-649.7139f, -176.47064f, -538.6893f), 402); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list105; reference75 = questStep5; - index2++; - ref QuestStep reference76 = ref span103[index2]; + ref QuestStep reference76 = ref span42[2]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list106; reference76 = questStep6; obj70.Steps = list103; reference73 = obj70; - num++; - ref QuestSequence reference77 = ref span101[num]; + ref QuestSequence reference77 = ref span41[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj71.Steps = list107; reference77 = obj71; - num++; - ref QuestSequence reference78 = ref span101[num]; + ref QuestSequence reference78 = ref span41[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -127054,23 +105534,18 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 2005565u, new Vector3(-428.0614f, -166.21655f, -411.88678f), 402); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 2005565u, new Vector3(-428.0614f, -166.21655f, -411.88678f), 402); obj72.Steps = list108; reference78 = obj72; - num++; - ref QuestSequence reference79 = ref span101[num]; + ref QuestSequence reference79 = ref span41[4]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj73.Steps = list109; reference79 = obj73; questRoot15.QuestSequence = list101; @@ -127080,16 +105555,13 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list110)[0] = "JerryWester"; questRoot16.Author = list110; - index = 5; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference80 = ref span111[num]; + num = 5; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span46 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference80 = ref span46[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -127097,19 +105569,15 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - ref QuestStep reference81 = ref span112[index2]; + ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list112)[0]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1012796u, new Vector3(-639.8871f, -176.4502f, -579.3393f), 402) { StopDistance = 7f }; - index3 = 1; - List list113 = new List(index3); - CollectionsMarshal.SetCount(list113, index3); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - span113[num3] = new DialogueChoice + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA703_01665_Q1_000_000"), @@ -127119,25 +105587,21 @@ public static class AssemblyQuestLoader reference81 = obj75; obj74.Steps = list112; reference80 = obj74; - num++; - ref QuestSequence reference82 = ref span111[num]; + ref QuestSequence reference82 = ref span46[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj76.Steps = list114; reference82 = obj76; - num++; - ref QuestSequence reference83 = ref span111[num]; + ref QuestSequence reference83 = ref span46[2]; QuestSequence obj77 = new QuestSequence { Sequence = 2 @@ -127145,35 +105609,27 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - 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); + 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); obj77.Steps = list115; reference83 = obj77; - num++; - ref QuestSequence reference84 = ref span111[num]; + ref QuestSequence reference84 = ref span46[3]; QuestSequence obj78 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj78.Steps = list116; reference84 = obj78; - num++; - ref QuestSequence reference85 = ref span111[num]; + ref QuestSequence reference85 = ref span46[4]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -127181,9 +105637,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012802u, new Vector3(235.98071f, -72.83498f, -619.8978f), 402) { DisableNavmesh = true }; @@ -127196,30 +105650,24 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list118)[0] = "JerryWester"; questRoot17.Author = list118; - index = 5; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference86 = ref span119[num]; + num = 5; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span49 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference86 = ref span49[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj80.Steps = list120; reference86 = obj80; - num++; - ref QuestSequence reference87 = ref span119[num]; + ref QuestSequence reference87 = ref span49[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -127227,25 +105675,20 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); obj81.Steps = list121; reference87 = obj81; - num++; - ref QuestSequence reference88 = ref span119[num]; + ref QuestSequence reference88 = ref span49[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 2005568u, new Vector3(344.13672f, -55.375f, -428.4886f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -127253,30 +105696,21 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - index3 = 0; - span123[index3] = 4942u; + CollectionsMarshal.AsSpan(list123)[0] = 4942u; obj83.KillEnemyDataIds = list123; - 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); + 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); obj83.CompletionQuestVariablesFlags = list124; reference89 = obj83; - num2++; - ref QuestStep reference90 = ref span122[num2]; + ref QuestStep reference90 = ref span50[2]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2005569u, new Vector3(296.71167f, -55.283447f, -459.2508f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -127284,32 +105718,23 @@ public static class AssemblyQuestLoader num3 = 2; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span125 = CollectionsMarshal.AsSpan(list125); - index3 = 0; - span125[index3] = 4943u; - index3++; - span125[index3] = 4623u; + Span span52 = CollectionsMarshal.AsSpan(list125); + span52[0] = 4943u; + span52[1] = 4623u; obj84.KillEnemyDataIds = list125; - 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); + 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); obj84.CompletionQuestVariablesFlags = list126; reference90 = obj84; - num2++; - ref QuestStep reference91 = ref span122[num2]; + ref QuestStep reference91 = ref span50[3]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2005567u, new Vector3(249.2561f, -55.49713f, -406.51562f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -127317,34 +105742,25 @@ public static class AssemblyQuestLoader num3 = 2; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span127 = CollectionsMarshal.AsSpan(list127); - index3 = 0; - span127[index3] = 4614u; - index3++; - span127[index3] = 4942u; + Span span54 = CollectionsMarshal.AsSpan(list127); + span54[0] = 4614u; + span54[1] = 4942u; obj85.KillEnemyDataIds = list127; - 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); + 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); obj85.CompletionQuestVariablesFlags = list128; reference91 = obj85; obj82.Steps = list122; reference88 = obj82; - num++; - ref QuestSequence reference92 = ref span119[num]; + ref QuestSequence reference92 = ref span49[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 @@ -127352,27 +105768,21 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1012807u, new Vector3(780.9414f, -25.905136f, -508.1102f), 402); obj86.Steps = list129; reference92 = obj86; - num++; - ref QuestSequence reference93 = ref span119[num]; + ref QuestSequence reference93 = ref span49[4]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj87.Steps = list130; reference93 = obj87; questRoot17.QuestSequence = list119; @@ -127382,16 +105792,13 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; questRoot18.Author = list131; - index = 5; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference94 = ref span132[num]; + num = 5; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span57 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference94 = ref span57[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -127399,30 +105806,24 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014850u, new Vector3(634.51587f, 10.474376f, 77.50049f), 402) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014850u, new Vector3(634.51587f, 10.474376f, 77.50049f), 402) { StopDistance = 7f }; obj88.Steps = list133; reference94 = obj88; - num++; - ref QuestSequence reference95 = ref span132[num]; + ref QuestSequence reference95 = ref span57[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj89.Steps = list134; reference95 = obj89; - num++; - ref QuestSequence reference96 = ref span132[num]; + ref QuestSequence reference96 = ref span57[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -127430,9 +105831,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - ref QuestStep reference97 = ref span135[index2]; + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 1012827u, new Vector3(228.22913f, 14.933587f, 553.97876f), 402) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -127440,35 +105839,26 @@ public static class AssemblyQuestLoader num3 = 6; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - 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; + Span span58 = CollectionsMarshal.AsSpan(list136); + span58[0] = 4391u; + span58[1] = 4392u; + span58[2] = 4393u; + span58[3] = 4394u; + span58[4] = 4395u; + span58[5] = 4396u; obj91.KillEnemyDataIds = list136; reference97 = obj91; obj90.Steps = list135; reference96 = obj90; - num++; - ref QuestSequence reference98 = ref span132[num]; + ref QuestSequence reference98 = ref span57[3]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -127477,8 +105867,7 @@ public static class AssemblyQuestLoader }; obj92.Steps = list137; reference98 = obj92; - num++; - ref QuestSequence reference99 = ref span132[num]; + ref QuestSequence reference99 = ref span57[4]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -127486,9 +105875,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012834u, new Vector3(-197.86377f, -102.78301f, 456.53467f), 402) { DisableNavmesh = true }; @@ -127501,30 +105888,24 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list139)[0] = "JerryWester"; questRoot19.Author = list139; - index = 2; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference100 = ref span140[num]; + num = 2; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span59 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference100 = ref span59[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj94.Steps = list141; reference100 = obj94; - num++; - ref QuestSequence reference101 = ref span140[num]; + ref QuestSequence reference101 = ref span59[1]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -127532,9 +105913,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 2005465u, new Vector3(-696.13184f, -37.06427f, 432.4253f), 402); + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005465u, new Vector3(-696.13184f, -37.06427f, 432.4253f), 402); obj95.Steps = list142; reference101 = obj95; questRoot19.QuestSequence = list140; @@ -127544,33 +105923,27 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; questRoot20.Author = list143; - index = 7; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference102 = ref span144[num]; + num = 7; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span60 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference102 = ref span60[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj96.Steps = list145; reference102 = obj96; - num++; - ref QuestSequence reference103 = ref span144[num]; + ref QuestSequence reference103 = ref span60[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -127578,46 +105951,36 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - ref QuestStep reference104 = ref span146[index2]; + ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list146)[0]; QuestStep obj98 = new QuestStep(EInteractionType.Combat, 1012850u, new Vector3(-62.882446f, 271.23285f, -5.661133f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj98.KillEnemyDataIds = list147; reference104 = obj98; obj97.Steps = list146; reference103 = obj97; - num++; - ref QuestSequence reference105 = ref span144[num]; + ref QuestSequence reference105 = ref span60[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj99.Steps = list148; reference105 = obj99; - num++; - ref QuestSequence reference106 = ref span144[num]; + ref QuestSequence reference106 = ref span60[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -127625,9 +105988,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.Duty, null, null, 402) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -127637,23 +105998,19 @@ public static class AssemblyQuestLoader }; obj100.Steps = list149; reference106 = obj100; - num++; - span144[num] = new QuestSequence + span60[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference107 = ref span144[num]; + ref QuestSequence reference107 = ref span60[5]; QuestSequence obj101 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -127662,8 +106019,7 @@ public static class AssemblyQuestLoader }; obj101.Steps = list150; reference107 = obj101; - num++; - ref QuestSequence reference108 = ref span144[num]; + ref QuestSequence reference108 = ref span60[6]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -127671,9 +106027,7 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 5f }; @@ -127686,26 +106040,21 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "liza"; + CollectionsMarshal.AsSpan(list152)[0] = "liza"; questRoot21.Author = list152; - index = 5; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference109 = ref span153[num]; + num = 5; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span62 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference109 = ref span62[0]; QuestSequence obj103 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list154)[0]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -127723,17 +106072,14 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = 128; + CollectionsMarshal.AsSpan(list155)[0] = 128; obj105.InTerritory = list155; skipConditions5.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions5; reference110 = obj104; obj103.Steps = list154; reference109 = obj103; - num++; - ref QuestSequence reference111 = ref span153[num]; + ref QuestSequence reference111 = ref span62[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -127741,29 +106087,24 @@ public static class AssemblyQuestLoader num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span63 = CollectionsMarshal.AsSpan(list156); + span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span156[index2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span63[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj106.Steps = list156; reference111 = obj106; - num++; - ref QuestSequence reference112 = ref span153[num]; + ref QuestSequence reference112 = ref span62[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list157 = new List(index2); - CollectionsMarshal.SetCount(list157, index2); - Span span157 = CollectionsMarshal.AsSpan(list157); - num2 = 0; - ref QuestStep reference113 = ref span157[num2]; + num2 = 1; + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2005518u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180) { StopDistance = 0.5f, @@ -127771,18 +106112,15 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list158 = new List(index3); - CollectionsMarshal.SetCount(list158, index3); - Span span158 = CollectionsMarshal.AsSpan(list158); - num3 = 0; - span158[num3] = 4399u; + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + CollectionsMarshal.AsSpan(list158)[0] = 4399u; obj108.KillEnemyDataIds = list158; reference113 = obj108; obj107.Steps = list157; reference112 = obj107; - num++; - ref QuestSequence reference114 = ref span153[num]; + ref QuestSequence reference114 = ref span62[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -127790,29 +106128,24 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 2005519u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 2005519u, new Vector3(-275.16595f, 64.25574f, -197.34491f), 180); obj109.Steps = list159; reference114 = obj109; - num++; - ref QuestSequence reference115 = ref span153[num]; + ref QuestSequence reference115 = ref span62[4]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1672) }; @@ -127825,16 +106158,13 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot22.Author = list161; - index = 4; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference116 = ref span162[num]; + num = 4; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span65 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference116 = ref span65[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -127842,9 +106172,8 @@ public static class AssemblyQuestLoader num2 = 2; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span66 = CollectionsMarshal.AsSpan(list163); + span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -127856,31 +106185,26 @@ public static class AssemblyQuestLoader } } }; - index2++; - span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span66[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj111.Steps = list163; reference116 = obj111; - num++; - ref QuestSequence reference117 = ref span162[num]; + ref QuestSequence reference117 = ref span65[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span164[num2] = new QuestStep(EInteractionType.Interact, 1013137u, new Vector3(620.9657f, -3.002753f, 171.06885f), 139); + span67[1] = new QuestStep(EInteractionType.Interact, 1013137u, new Vector3(620.9657f, -3.002753f, 171.06885f), 139); obj112.Steps = list164; reference117 = obj112; - num++; - ref QuestSequence reference118 = ref span162[num]; + ref QuestSequence reference118 = ref span65[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -127888,31 +106212,26 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005520u, new Vector3(622.91907f, -3.0671387f, 171.6792f), 139) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005520u, new Vector3(622.91907f, -3.0671387f, 171.6792f), 139) { StopDistance = 4.5f }; obj113.Steps = list165; reference118 = obj113; - num++; - ref QuestSequence reference119 = ref span162[num]; + ref QuestSequence reference119 = ref span65[3]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1673) }; @@ -127925,16 +106244,13 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "liza"; + CollectionsMarshal.AsSpan(list167)[0] = "liza"; questRoot23.Author = list167; - index = 7; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference120 = ref span168[num]; + num = 7; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span69 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference120 = ref span69[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -127942,9 +106258,8 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span70 = CollectionsMarshal.AsSpan(list169); + span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -127956,28 +106271,24 @@ public static class AssemblyQuestLoader } } }; - index2++; - span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span70[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj115.Steps = list169; reference120 = obj115; - num++; - ref QuestSequence reference121 = ref span168[num]; + ref QuestSequence reference121 = ref span69[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - num2++; - ref QuestStep reference122 = ref span170[num2]; + ref QuestStep reference122 = ref span71[1]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 2005521u, new Vector3(-292.83594f, 72.15991f, -275.4101f), 180) { StopDistance = 0.5f, @@ -127987,9 +106298,7 @@ public static class AssemblyQuestLoader num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span171 = CollectionsMarshal.AsSpan(list171); - index3 = 0; - span171[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list171)[0] = new ComplexCombatData { DataId = 30u, NameId = 4108u @@ -127998,8 +106307,7 @@ public static class AssemblyQuestLoader reference122 = obj117; obj116.Steps = list170; reference121 = obj116; - num++; - ref QuestSequence reference123 = ref span168[num]; + ref QuestSequence reference123 = ref span69[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -128007,21 +106315,17 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - ref QuestStep reference124 = ref span172[index2]; + ref QuestStep reference124 = ref CollectionsMarshal.AsSpan(list172)[0]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, 2005522u, new Vector3(-302.05237f, 70.81714f, -292.28656f), 180) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list173 = new List(index3); - CollectionsMarshal.SetCount(list173, index3); - Span span173 = CollectionsMarshal.AsSpan(list173); - num3 = 0; - span173[num3] = new ComplexCombatData + num3 = 1; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + CollectionsMarshal.AsSpan(list173)[0] = new ComplexCombatData { DataId = 30u, NameId = 4108u @@ -128030,26 +106334,22 @@ public static class AssemblyQuestLoader reference124 = obj119; obj118.Steps = list172; reference123 = obj118; - num++; - ref QuestSequence reference125 = ref span168[num]; + ref QuestSequence reference125 = ref span69[3]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; obj120.Steps = list174; reference125 = obj120; - num++; - ref QuestSequence reference126 = ref span168[num]; + ref QuestSequence reference126 = ref span69[4]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -128057,9 +106357,7 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - ref QuestStep reference127 = ref span175[index2]; + ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list175)[0]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2005530u, new Vector3(-381.55188f, 52.475708f, -298.93958f), 180) { StopDistance = 2f, @@ -128069,29 +106367,23 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span176 = CollectionsMarshal.AsSpan(list176); - index3 = 0; - span176[index3] = 4371u; + CollectionsMarshal.AsSpan(list176)[0] = 4371u; obj122.KillEnemyDataIds = list176; reference127 = obj122; obj121.Steps = list175; reference126 = obj121; - num++; - ref QuestSequence reference128 = ref span168[num]; + ref QuestSequence reference128 = ref span69[5]; QuestSequence obj123 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj123.Steps = list177; reference128 = obj123; - num++; - ref QuestSequence reference129 = ref span168[num]; + ref QuestSequence reference129 = ref span69[6]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -128099,15 +106391,13 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span72 = CollectionsMarshal.AsSpan(list178); + span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1674) }; @@ -128120,26 +106410,22 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "liza"; + CollectionsMarshal.AsSpan(list179)[0] = "liza"; questRoot24.Author = list179; - index = 6; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference130 = ref span180[num]; + num = 6; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span73 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference130 = ref span73[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -128151,12 +106437,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span181[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span74[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj125.Steps = list181; reference130 = obj125; - num++; - ref QuestSequence reference131 = ref span180[num]; + ref QuestSequence reference131 = ref span73[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -128164,26 +106448,21 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { Fly = true }; obj126.Steps = list182; reference131 = obj126; - num++; - ref QuestSequence reference132 = ref span180[num]; + ref QuestSequence reference132 = ref span73[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -128192,8 +106471,7 @@ public static class AssemblyQuestLoader }; obj127.Steps = list183; reference132 = obj127; - num++; - ref QuestSequence reference133 = ref span180[num]; + ref QuestSequence reference133 = ref span73[3]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -128201,9 +106479,7 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Say, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { ChatMessage = new ChatMessage { @@ -128212,38 +106488,32 @@ public static class AssemblyQuestLoader }; obj128.Steps = list184; reference133 = obj128; - num++; - ref QuestSequence reference134 = ref span180[num]; + ref QuestSequence reference134 = ref span73[4]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list185 = new List(index2); - CollectionsMarshal.SetCount(list185, index2); - Span span185 = CollectionsMarshal.AsSpan(list185); - num2 = 0; - ref QuestStep reference135 = ref span185[num2]; + num2 = 1; + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list185)[0]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, 1013139u, new Vector3(700.9536f, -0.50953937f, 133.28748f), 139) { Fly = true, Emote = EEmote.Laugh, EnemySpawnType = EEnemySpawnType.AfterEmote }; - 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; + num3 = 2; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + Span span75 = CollectionsMarshal.AsSpan(list186); + span75[0] = 4400u; + span75[1] = 4401u; obj130.KillEnemyDataIds = list186; reference135 = obj130; obj129.Steps = list185; reference134 = obj129; - num++; - ref QuestSequence reference136 = ref span180[num]; + ref QuestSequence reference136 = ref span73[5]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -128251,9 +106521,7 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013138u, new Vector3(404.19617f, -2.6082127f, 212.1156f), 139) { Fly = true, NextQuestId = new QuestId(1675) @@ -128267,26 +106535,22 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot25.Author = list188; - index = 6; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference137 = ref span189[num]; + num = 6; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span76 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference137 = ref span76[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -128298,12 +106562,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span190[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj132.Steps = list190; reference137 = obj132; - num++; - ref QuestSequence reference138 = ref span189[num]; + ref QuestSequence reference138 = ref span76[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -128311,9 +106573,7 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -128324,26 +106584,22 @@ public static class AssemblyQuestLoader }; obj133.Steps = list191; reference138 = obj133; - num++; - ref QuestSequence reference139 = ref span189[num]; + ref QuestSequence reference139 = ref span76[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj134.Steps = list192; reference139 = obj134; - num++; - ref QuestSequence reference140 = ref span189[num]; + ref QuestSequence reference140 = ref span76[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -128351,25 +106607,20 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Interact, 1011234u, new Vector3(546.1356f, 217.90826f, 768.06274f), 397); + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1011234u, new Vector3(546.1356f, 217.90826f, 768.06274f), 397); obj135.Steps = list193; reference140 = obj135; - num++; - ref QuestSequence reference141 = ref span189[num]; + ref QuestSequence reference141 = ref span76[4]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - 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]; + 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]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397) { Fly = true, @@ -128378,34 +106629,24 @@ public static class AssemblyQuestLoader num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span195 = CollectionsMarshal.AsSpan(list195); - index3 = 0; - span195[index3] = 4374u; + CollectionsMarshal.AsSpan(list195)[0] = 4374u; obj137.KillEnemyDataIds = list195; - 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; + 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; obj137.CompletionQuestVariablesFlags = list196; reference142 = obj137; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397); + span78[2] = new QuestStep(EInteractionType.Interact, 2005525u, new Vector3(446.00586f, 140.82544f, -749.87415f), 397); obj136.Steps = list194; reference141 = obj136; - num++; - ref QuestSequence reference143 = ref span189[num]; + ref QuestSequence reference143 = ref span76[5]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -128413,15 +106654,13 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span80 = CollectionsMarshal.AsSpan(list197); + span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(1676) }; @@ -128434,26 +106673,22 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "liza"; + CollectionsMarshal.AsSpan(list198)[0] = "liza"; questRoot26.Author = list198; - index = 6; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference144 = ref span199[num]; + num = 6; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span81 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference144 = ref span81[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -128465,12 +106700,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span200[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span82[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj139.Steps = list200; reference144 = obj139; - num++; - ref QuestSequence reference145 = ref span199[num]; + ref QuestSequence reference145 = ref span81[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -128478,35 +106711,29 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 2005528u, new Vector3(-381.5824f, 52.475708f, -298.81744f), 180) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2005528u, new Vector3(-381.5824f, 52.475708f, -298.81744f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj140.Steps = list201; reference145 = obj140; - num++; - ref QuestSequence reference146 = ref span199[num]; + ref QuestSequence reference146 = ref span81[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj141.Steps = list202; reference146 = obj141; - num++; - ref QuestSequence reference147 = ref span199[num]; + ref QuestSequence reference147 = ref span81[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -128514,114 +106741,81 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013143u, new Vector3(405.1117f, 4.109556f, 81.04065f), 139) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013143u, new Vector3(405.1117f, 4.109556f, 81.04065f), 139) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj142.Steps = list203; reference147 = obj142; - num++; - ref QuestSequence reference148 = ref span199[num]; + ref QuestSequence reference148 = ref span81[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - 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]; + 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]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list205; reference149 = questStep7; - num2++; - ref QuestStep reference150 = ref span204[num2]; + ref QuestStep reference150 = ref span83[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1013147u, new Vector3(487.84607f, 16.495436f, 68.0094f), 139); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list206; reference150 = questStep8; - num2++; - ref QuestStep reference151 = ref span204[num2]; + ref QuestStep reference151 = ref span83[3]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list207; reference151 = questStep9; - num2++; - ref QuestStep reference152 = ref span204[num2]; + ref QuestStep reference152 = ref span83[4]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1013198u, new Vector3(487.47998f, 16.495436f, 70.35925f), 139); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list208; reference152 = questStep10; obj143.Steps = list204; reference148 = obj143; - num++; - ref QuestSequence reference153 = ref span199[num]; + ref QuestSequence reference153 = ref span81[5]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -128629,9 +106823,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013199u, new Vector3(491.47778f, 16.495434f, 69.16907f), 139) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013199u, new Vector3(491.47778f, 16.495434f, 69.16907f), 139) { NextQuestId = new QuestId(2923) }; @@ -128644,26 +106836,21 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list210)[0] = "JerryWester"; questRoot27.Author = list210; - index = 4; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference154 = ref span211[num]; + num = 4; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span88 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference154 = ref span88[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -128676,8 +106863,7 @@ public static class AssemblyQuestLoader }; obj145.Steps = list212; reference154 = obj145; - num++; - ref QuestSequence reference155 = ref span211[num]; + ref QuestSequence reference155 = ref span88[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -128685,41 +106871,35 @@ public static class AssemblyQuestLoader num2 = 2; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span89 = CollectionsMarshal.AsSpan(list213); + span89[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span213[index2] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); + span89[1] = new QuestStep(EInteractionType.Interact, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139); obj146.Steps = list213; reference155 = obj146; - num++; - ref QuestSequence reference156 = ref span211[num]; + ref QuestSequence reference156 = ref span88[2]; QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span214[num2] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) + span90[1] = new QuestStep(EInteractionType.Interact, 1013339u, new Vector3(396.16992f, 8.113181f, 48.142212f), 139) { Fly = true }; obj147.Steps = list214; reference156 = obj147; - num++; - ref QuestSequence reference157 = ref span211[num]; + ref QuestSequence reference157 = ref span88[3]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -128727,14 +106907,12 @@ public static class AssemblyQuestLoader num2 = 2; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) + Span span91 = CollectionsMarshal.AsSpan(list215); + span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(427.1206f, 7.9075317f, 24.77774f), 139) { Fly = true }; - index2++; - span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) + span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1013279u, new Vector3(441.70276f, 8.670496f, 18.814331f), 139) { NextQuestId = new QuestId(598) }; @@ -128747,26 +106925,21 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - Span span216 = CollectionsMarshal.AsSpan(list216); - index = 0; - span216[index] = "liza"; + CollectionsMarshal.AsSpan(list216)[0] = "liza"; questRoot28.Author = list216; - index = 4; - List list217 = new List(index); - CollectionsMarshal.SetCount(list217, index); - Span span217 = CollectionsMarshal.AsSpan(list217); - num = 0; - ref QuestSequence reference158 = ref span217[num]; + num = 4; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + Span span92 = CollectionsMarshal.AsSpan(list217); + ref QuestSequence reference158 = ref span92[0]; QuestSequence obj149 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list218 = new List(num2); + CollectionsMarshal.SetCount(list218, num2); + ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list218)[0]; QuestStep obj150 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -128784,17 +106957,14 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span219 = CollectionsMarshal.AsSpan(list219); - index3 = 0; - span219[index3] = 131; + CollectionsMarshal.AsSpan(list219)[0] = 131; obj151.InTerritory = list219; skipConditions6.AetheryteShortcutIf = obj151; obj150.SkipConditions = skipConditions6; reference159 = obj150; obj149.Steps = list218; reference158 = obj149; - num++; - ref QuestSequence reference160 = ref span217[num]; + ref QuestSequence reference160 = ref span92[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 @@ -128802,38 +106972,32 @@ public static class AssemblyQuestLoader num2 = 2; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) + Span span93 = CollectionsMarshal.AsSpan(list220); + span93[0] = new QuestStep(EInteractionType.Interact, 1004597u, new Vector3(-292.10345f, -2.910112f, 245.59387f), 146) { TargetTerritoryId = (ushort)146, Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - index2++; - span220[index2] = new QuestStep(EInteractionType.Interact, 1013042u, new Vector3(-465.93427f, -3.164927f, 66.666626f), 146); + span93[1] = new QuestStep(EInteractionType.Interact, 1013042u, new Vector3(-465.93427f, -3.164927f, 66.666626f), 146); obj152.Steps = list220; reference160 = obj152; - num++; - ref QuestSequence reference161 = ref span217[num]; + ref QuestSequence reference161 = ref span92[2]; QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj153.Steps = list221; reference161 = obj153; - num++; - ref QuestSequence reference162 = ref span217[num]; + ref QuestSequence reference162 = ref span92[3]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -128841,9 +107005,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -128862,26 +107024,21 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - Span span223 = CollectionsMarshal.AsSpan(list223); - index = 0; - span223[index] = "liza"; + CollectionsMarshal.AsSpan(list223)[0] = "liza"; questRoot29.Author = list223; - index = 5; - List list224 = new List(index); - CollectionsMarshal.SetCount(list224, index); - Span span224 = CollectionsMarshal.AsSpan(list224); - num = 0; - ref QuestSequence reference163 = ref span224[num]; + num = 5; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + Span span94 = CollectionsMarshal.AsSpan(list224); + ref QuestSequence reference163 = ref span94[0]; QuestSequence obj155 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list225)[0]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -128896,20 +107053,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list226 = new List(index3); - CollectionsMarshal.SetCount(list226, index3); - Span span226 = CollectionsMarshal.AsSpan(list226); - num3 = 0; - span226[num3] = 131; + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + CollectionsMarshal.AsSpan(list226)[0] = 131; obj157.InTerritory = list226; skipConditions7.AetheryteShortcutIf = obj157; obj156.SkipConditions = skipConditions7; reference164 = obj156; obj155.Steps = list225; reference163 = obj155; - num++; - ref QuestSequence reference165 = ref span224[num]; + ref QuestSequence reference165 = ref span94[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -128917,27 +107071,22 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj158.Steps = list227; reference165 = obj158; - num++; - ref QuestSequence reference166 = ref span224[num]; + ref QuestSequence reference166 = ref span94[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref QuestStep reference167 = ref span228[num2]; + num2 = 1; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list228)[0]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 1013044u, new Vector3(191.72961f, -1.9153122f, 32.944214f), 145) { Fly = true @@ -128945,9 +107094,7 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span229 = CollectionsMarshal.AsSpan(list229); - index3 = 0; - span229[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list229)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM520_01679_Q1_000_000"), @@ -128957,8 +107104,7 @@ public static class AssemblyQuestLoader reference167 = obj160; obj159.Steps = list228; reference166 = obj159; - num++; - ref QuestSequence reference168 = ref span224[num]; + ref QuestSequence reference168 = ref span94[3]; QuestSequence obj161 = new QuestSequence { Sequence = 3 @@ -128966,26 +107112,21 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true }; obj161.Steps = list230; reference168 = obj161; - num++; - ref QuestSequence reference169 = ref span224[num]; + ref QuestSequence reference169 = ref span94[4]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -129004,16 +107145,13 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "liza"; + CollectionsMarshal.AsSpan(list232)[0] = "liza"; questRoot30.Author = list232; - index = 6; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference170 = ref span233[num]; + num = 6; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span95 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference170 = ref span95[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -129021,9 +107159,7 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - ref QuestStep reference171 = ref span234[index2]; + ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list234)[0]; QuestStep obj164 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -129038,38 +107174,32 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list235 = new List(index3); - CollectionsMarshal.SetCount(list235, index3); - Span span235 = CollectionsMarshal.AsSpan(list235); - num3 = 0; - span235[num3] = 131; + num3 = 1; + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + CollectionsMarshal.AsSpan(list235)[0] = 131; obj165.InTerritory = list235; skipConditions8.AetheryteShortcutIf = obj165; obj164.SkipConditions = skipConditions8; reference171 = obj164; obj163.Steps = list234; reference170 = obj163; - num++; - ref QuestSequence reference172 = ref span233[num]; + ref QuestSequence reference172 = ref span95[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj166.Steps = list236; reference172 = obj166; - num++; - ref QuestSequence reference173 = ref span233[num]; + ref QuestSequence reference173 = ref span95[2]; QuestSequence obj167 = new QuestSequence { Sequence = 2 @@ -129077,26 +107207,21 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 2005469u, new Vector3(377.6454f, 0.77819824f, -3.616455f), 139) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2005469u, new Vector3(377.6454f, 0.77819824f, -3.616455f), 139) { Fly = true }; obj167.Steps = list237; reference173 = obj167; - num++; - ref QuestSequence reference174 = ref span233[num]; + ref QuestSequence reference174 = ref span95[3]; QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list238 = new List(index2); - CollectionsMarshal.SetCount(list238, index2); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref QuestStep reference175 = ref span238[num2]; + num2 = 1; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + ref QuestStep reference175 = ref CollectionsMarshal.AsSpan(list238)[0]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(397.41708f, -3.3999999f, 10.57353f), 139) { StopDistance = 0.5f, @@ -129105,15 +107230,12 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - index3 = 0; - span239[index3] = 5049u; + CollectionsMarshal.AsSpan(list239)[0] = 5049u; obj169.KillEnemyDataIds = list239; reference175 = obj169; obj168.Steps = list238; reference174 = obj168; - num++; - ref QuestSequence reference176 = ref span233[num]; + ref QuestSequence reference176 = ref span95[4]; QuestSequence obj170 = new QuestSequence { Sequence = 4 @@ -129121,23 +107243,18 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.Interact, 1013048u, new Vector3(399.0996f, -3.3999999f, 11.215393f), 139); + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1013048u, new Vector3(399.0996f, -3.3999999f, 11.215393f), 139); obj170.Steps = list240; reference176 = obj170; - num++; - ref QuestSequence reference177 = ref span233[num]; + ref QuestSequence reference177 = ref span95[5]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -129156,16 +107273,13 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "liza"; + CollectionsMarshal.AsSpan(list242)[0] = "liza"; questRoot31.Author = list242; - index = 4; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference178 = ref span243[num]; + num = 4; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span96 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference178 = ref span96[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -129173,9 +107287,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - ref QuestStep reference179 = ref span244[index2]; + ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list244)[0]; QuestStep obj173 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -129190,30 +107302,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list245 = new List(index3); - CollectionsMarshal.SetCount(list245, index3); - Span span245 = CollectionsMarshal.AsSpan(list245); - num3 = 0; - span245[num3] = 131; + num3 = 1; + List list245 = new List(num3); + CollectionsMarshal.SetCount(list245, num3); + CollectionsMarshal.AsSpan(list245)[0] = 131; obj174.InTerritory = list245; skipConditions9.AetheryteShortcutIf = obj174; obj173.SkipConditions = skipConditions9; reference179 = obj173; obj172.Steps = list244; reference178 = obj172; - num++; - ref QuestSequence reference180 = ref span243[num]; + ref QuestSequence reference180 = ref span96[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list246 = new List(index2); - CollectionsMarshal.SetCount(list246, index2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num2 = 0; - ref QuestStep reference181 = ref span246[num2]; + num2 = 1; + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + ref QuestStep reference181 = ref CollectionsMarshal.AsSpan(list246)[0]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, null, new Vector3(-173.73607f, -61.73199f, 370.57892f), 154) { StopDistance = 0.5f, @@ -129224,15 +107331,12 @@ public static class AssemblyQuestLoader num3 = 1; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - Span span247 = CollectionsMarshal.AsSpan(list247); - index3 = 0; - span247[index3] = 4360u; + CollectionsMarshal.AsSpan(list247)[0] = 4360u; obj176.KillEnemyDataIds = list247; reference181 = obj176; obj175.Steps = list246; reference180 = obj175; - num++; - ref QuestSequence reference182 = ref span243[num]; + ref QuestSequence reference182 = ref span96[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -129240,23 +107344,18 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.Interact, 1013055u, new Vector3(-175.1278f, -61.86741f, 371.99963f), 154); + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013055u, new Vector3(-175.1278f, -61.86741f, 371.99963f), 154); obj177.Steps = list248; reference182 = obj177; - num++; - ref QuestSequence reference183 = ref span243[num]; + ref QuestSequence reference183 = ref span96[3]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list249 = new List(index2); - CollectionsMarshal.SetCount(list249, index2); - Span span249 = CollectionsMarshal.AsSpan(list249); - num2 = 0; - ref QuestStep reference184 = ref span249[num2]; + num2 = 1; + List list249 = new List(num2); + CollectionsMarshal.SetCount(list249, num2); + ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list249)[0]; QuestStep obj179 = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -129266,12 +107365,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - index3 = 1; - List list250 = new List(index3); - CollectionsMarshal.SetCount(list250, index3); - Span span250 = CollectionsMarshal.AsSpan(list250); - num3 = 0; - span250[num3] = new DialogueChoice + num3 = 1; + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + CollectionsMarshal.AsSpan(list250)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM560_01681_Q1_000_000"), @@ -129289,16 +107386,13 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - Span span251 = CollectionsMarshal.AsSpan(list251); - index = 0; - span251[index] = "liza"; + CollectionsMarshal.AsSpan(list251)[0] = "liza"; questRoot32.Author = list251; - index = 7; - List list252 = new List(index); - CollectionsMarshal.SetCount(list252, index); - Span span252 = CollectionsMarshal.AsSpan(list252); - num = 0; - ref QuestSequence reference185 = ref span252[num]; + num = 7; + List list252 = new List(num); + CollectionsMarshal.SetCount(list252, num); + Span span97 = CollectionsMarshal.AsSpan(list252); + ref QuestSequence reference185 = ref span97[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -129306,9 +107400,7 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - ref QuestStep reference186 = ref span253[index2]; + ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list253)[0]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -129326,27 +107418,22 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - Span span254 = CollectionsMarshal.AsSpan(list254); - index3 = 0; - span254[index3] = 131; + CollectionsMarshal.AsSpan(list254)[0] = 131; obj182.InTerritory = list254; skipConditions10.AetheryteShortcutIf = obj182; obj181.SkipConditions = skipConditions10; reference186 = obj181; obj180.Steps = list253; reference185 = obj180; - num++; - ref QuestSequence reference187 = ref span252[num]; + ref QuestSequence reference187 = ref span97[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -129356,8 +107443,7 @@ public static class AssemblyQuestLoader }; obj183.Steps = list255; reference187 = obj183; - num++; - ref QuestSequence reference188 = ref span252[num]; + ref QuestSequence reference188 = ref span97[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -129365,9 +107451,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 1013060u, new Vector3(26.04712f, 1.2752796f, 92.851074f), 418) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1013060u, new Vector3(26.04712f, 1.2752796f, 92.851074f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -129378,18 +107462,15 @@ public static class AssemblyQuestLoader }; obj184.Steps = list256; reference188 = obj184; - num++; - ref QuestSequence reference189 = ref span252[num]; + ref QuestSequence reference189 = ref span97[3]; QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1.5f, Fly = true, @@ -129397,8 +107478,7 @@ public static class AssemblyQuestLoader }; obj185.Steps = list257; reference189 = obj185; - num++; - ref QuestSequence reference190 = ref span252[num]; + ref QuestSequence reference190 = ref span97[4]; QuestSequence obj186 = new QuestSequence { Sequence = 4 @@ -129406,84 +107486,60 @@ public static class AssemblyQuestLoader num2 = 3; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - ref QuestStep reference191 = ref span258[index2]; + Span span98 = CollectionsMarshal.AsSpan(list258); + ref QuestStep reference191 = ref span98[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1013064u, new Vector3(-308.33905f, 126.09976f, -14.847046f), 397); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list259; reference191 = questStep11; - index2++; - ref QuestStep reference192 = ref span258[index2]; + ref QuestStep reference192 = ref span98[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list260; reference192 = questStep12; - index2++; - ref QuestStep reference193 = ref span258[index2]; + ref QuestStep reference193 = ref span98[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1013063u, new Vector3(-284.44348f, 127.18384f, 11.825684f), 397); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list261; reference193 = questStep13; obj186.Steps = list258; reference190 = obj186; - num++; - ref QuestSequence reference194 = ref span252[num]; + ref QuestSequence reference194 = ref span97[5]; QuestSequence obj187 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list262 = new List(index2); - CollectionsMarshal.SetCount(list262, index2); - Span span262 = CollectionsMarshal.AsSpan(list262); - num2 = 0; - ref QuestStep reference195 = ref span262[num2]; + num2 = 1; + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list262)[0]; QuestStep obj188 = new QuestStep(EInteractionType.SinglePlayerDuty, 1013065u, new Vector3(-67.00244f, 98.04463f, 189.99011f), 397) { Fly = true @@ -129491,9 +107547,7 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - Span span263 = CollectionsMarshal.AsSpan(list263); - index3 = 0; - span263[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM580_01682_Q1_000_000"), @@ -129503,8 +107557,7 @@ public static class AssemblyQuestLoader reference195 = obj188; obj187.Steps = list262; reference194 = obj187; - num++; - ref QuestSequence reference196 = ref span252[num]; + ref QuestSequence reference196 = ref span97[6]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -129512,9 +107565,7 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -129533,26 +107584,21 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - Span span265 = CollectionsMarshal.AsSpan(list265); - index = 0; - span265[index] = "liza"; + CollectionsMarshal.AsSpan(list265)[0] = "liza"; questRoot33.Author = list265; - index = 6; - List list266 = new List(index); - CollectionsMarshal.SetCount(list266, index); - Span span266 = CollectionsMarshal.AsSpan(list266); - num = 0; - ref QuestSequence reference197 = ref span266[num]; + num = 6; + List list266 = new List(num); + CollectionsMarshal.SetCount(list266, num); + Span span102 = CollectionsMarshal.AsSpan(list266); + ref QuestSequence reference197 = ref span102[0]; QuestSequence obj190 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestStep obj191 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -129567,20 +107613,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list268 = new List(index3); - CollectionsMarshal.SetCount(list268, index3); - Span span268 = CollectionsMarshal.AsSpan(list268); - num3 = 0; - span268[num3] = 131; + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + CollectionsMarshal.AsSpan(list268)[0] = 131; obj192.InTerritory = list268; skipConditions11.AetheryteShortcutIf = obj192; obj191.SkipConditions = skipConditions11; reference198 = obj191; obj190.Steps = list267; reference197 = obj190; - num++; - ref QuestSequence reference199 = ref span266[num]; + ref QuestSequence reference199 = ref span102[1]; QuestSequence obj193 = new QuestSequence { Sequence = 1 @@ -129588,39 +107631,32 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013066u, new Vector3(385.27502f, -18.74231f, 273.0907f), 145) + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013066u, new Vector3(385.27502f, -18.74231f, 273.0907f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj193.Steps = list269; reference199 = obj193; - num++; - span266[num] = new QuestSequence + span102[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference200 = ref span266[num]; + ref QuestSequence reference200 = ref span102[3]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj194.Steps = list270; reference200 = obj194; - num++; - ref QuestSequence reference201 = ref span266[num]; + ref QuestSequence reference201 = ref span102[4]; QuestSequence obj195 = new QuestSequence { Sequence = 4 @@ -129628,89 +107664,64 @@ public static class AssemblyQuestLoader num2 = 4; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.93842f, 28.63408f, 66.419495f), 145) + Span span103 = CollectionsMarshal.AsSpan(list271); + span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(341.93842f, 28.63408f, 66.419495f), 145) { Fly = true }; - index2++; - ref QuestStep reference202 = ref span271[index2]; + ref QuestStep reference202 = ref span103[1]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list272; reference202 = questStep14; - index2++; - ref QuestStep reference203 = ref span271[index2]; + ref QuestStep reference203 = ref span103[2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list273; reference203 = questStep15; - index2++; - ref QuestStep reference204 = ref span271[index2]; + ref QuestStep reference204 = ref span103[3]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list274; reference204 = questStep16; obj195.Steps = list271; reference201 = obj195; - num++; - ref QuestSequence reference205 = ref span266[num]; + ref QuestSequence reference205 = ref span102[5]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -129729,16 +107740,13 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "xan"; + CollectionsMarshal.AsSpan(list276)[0] = "xan"; questRoot34.Author = list276; - index = 5; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference206 = ref span277[num]; + num = 5; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span107 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference206 = ref span107[0]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -129746,9 +107754,8 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span108 = CollectionsMarshal.AsSpan(list278); + span108[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -129764,38 +107771,32 @@ public static class AssemblyQuestLoader } } }; - index2++; - span278[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span108[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj197.Steps = list278; reference206 = obj197; - num++; - ref QuestSequence reference207 = ref span277[num]; + ref QuestSequence reference207 = ref span107[1]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span279[num2] = new QuestStep(EInteractionType.Interact, 1003587u, new Vector3(220.90479f, -0.9591979f, 257.4043f), 139) + span109[1] = new QuestStep(EInteractionType.Interact, 1003587u, new Vector3(220.90479f, -0.9591979f, 257.4043f), 139) { TargetTerritoryId = (ushort)139, Mount = false }; - num2++; - span279[num2] = new QuestStep(EInteractionType.Interact, 1013893u, new Vector3(-335.2865f, -2.7013655f, 135.17957f), 139); + span109[2] = new QuestStep(EInteractionType.Interact, 1013893u, new Vector3(-335.2865f, -2.7013655f, 135.17957f), 139); obj198.Steps = list279; reference207 = obj198; - num++; - ref QuestSequence reference208 = ref span277[num]; + ref QuestSequence reference208 = ref span107[2]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -129803,127 +107804,96 @@ public static class AssemblyQuestLoader num2 = 3; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - ref QuestStep reference209 = ref span280[index2]; + Span span110 = CollectionsMarshal.AsSpan(list280); + ref QuestStep reference209 = ref span110[0]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, 2005925u, new Vector3(-449.08832f, -1.2055054f, 116.59412f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - 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; + num3 = 2; + List list281 = new List(num3); + CollectionsMarshal.SetCount(list281, num3); + Span span111 = CollectionsMarshal.AsSpan(list281); + span111[0] = 5048u; + span111[1] = 5046u; obj200.KillEnemyDataIds = list281; num3 = 6; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - 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); + 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); obj200.CompletionQuestVariablesFlags = list282; reference209 = obj200; - index2++; - ref QuestStep reference210 = ref span280[index2]; + ref QuestStep reference210 = ref span110[1]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2005926u, new Vector3(-424.24664f, -5.1728516f, 168.65796f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - 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; + num3 = 2; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + Span span113 = CollectionsMarshal.AsSpan(list283); + span113[0] = 5046u; + span113[1] = 5048u; obj201.KillEnemyDataIds = list283; num3 = 6; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - 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); + 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); obj201.CompletionQuestVariablesFlags = list284; reference210 = obj201; - index2++; - ref QuestStep reference211 = ref span280[index2]; + ref QuestStep reference211 = ref span110[2]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, 2005927u, new Vector3(-457.75543f, -12.64978f, 218.92114f), 139) { ItemId = 2001723u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - 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; + num3 = 2; + List list285 = new List(num3); + CollectionsMarshal.SetCount(list285, num3); + Span span115 = CollectionsMarshal.AsSpan(list285); + span115[0] = 5042u; + span115[1] = 4619u; obj202.KillEnemyDataIds = list285; num3 = 6; List list286 = new List(num3); CollectionsMarshal.SetCount(list286, num3); - 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); + 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); obj202.CompletionQuestVariablesFlags = list286; reference211 = obj202; obj199.Steps = list280; reference208 = obj199; - num++; - ref QuestSequence reference212 = ref span277[num]; + ref QuestSequence reference212 = ref span107[3]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj203.Steps = list287; reference212 = obj203; - num++; - ref QuestSequence reference213 = ref span277[num]; + ref QuestSequence reference213 = ref span107[4]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue @@ -129931,9 +107901,8 @@ public static class AssemblyQuestLoader num2 = 2; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span117 = CollectionsMarshal.AsSpan(list288); + span117[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -129949,8 +107918,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1685) }; @@ -129963,26 +107931,22 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - Span span289 = CollectionsMarshal.AsSpan(list289); - index = 0; - span289[index] = "xan"; + CollectionsMarshal.AsSpan(list289)[0] = "xan"; questRoot35.Author = list289; - index = 9; - List list290 = new List(index); - CollectionsMarshal.SetCount(list290, index); - Span span290 = CollectionsMarshal.AsSpan(list290); - num = 0; - ref QuestSequence reference214 = ref span290[num]; + num = 9; + List list290 = new List(num); + CollectionsMarshal.SetCount(list290, num); + Span span118 = CollectionsMarshal.AsSpan(list290); + ref QuestSequence reference214 = ref span118[0]; QuestSequence obj205 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -129998,12 +107962,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span291[num2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span119[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj205.Steps = list291; reference214 = obj205; - num++; - ref QuestSequence reference215 = ref span290[num]; + ref QuestSequence reference215 = ref span118[1]; QuestSequence obj206 = new QuestSequence { Sequence = 1 @@ -130011,9 +107973,7 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - ref QuestStep reference216 = ref span292[index2]; + ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list292)[0]; QuestStep obj207 = new QuestStep(EInteractionType.Interact, 1013898u, new Vector3(107.71338f, 68.15523f, 332.5094f), 135) { Fly = true, @@ -130026,12 +107986,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list293 = new List(index3); - CollectionsMarshal.SetCount(list293, index3); - Span span293 = CollectionsMarshal.AsSpan(list293); - num3 = 0; - span293[num3] = new DialogueChoice + num3 = 1; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN540_01685_Q1_000_000"), @@ -130041,25 +107999,21 @@ public static class AssemblyQuestLoader reference216 = obj207; obj206.Steps = list292; reference215 = obj206; - num++; - ref QuestSequence reference217 = ref span290[num]; + ref QuestSequence reference217 = ref span118[2]; QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Action = EAction.Raiton }; obj208.Steps = list294; reference217 = obj208; - num++; - ref QuestSequence reference218 = ref span290[num]; + ref QuestSequence reference218 = ref span118[3]; QuestSequence obj209 = new QuestSequence { Sequence = 3 @@ -130067,33 +108021,27 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Action, 2005929u, new Vector3(-46.707886f, 48.41687f, 529.1676f), 135) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Action, 2005929u, new Vector3(-46.707886f, 48.41687f, 529.1676f), 135) { Action = EAction.Raiton }; obj209.Steps = list295; reference218 = obj209; - num++; - ref QuestSequence reference219 = ref span290[num]; + ref QuestSequence reference219 = ref span118[4]; QuestSequence obj210 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Action = EAction.Raiton }; obj210.Steps = list296; reference219 = obj210; - num++; - ref QuestSequence reference220 = ref span290[num]; + ref QuestSequence reference220 = ref span118[5]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -130101,30 +108049,24 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005931u, new Vector3(-185.41241f, 0.015197754f, 678.8281f), 135) + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2005931u, new Vector3(-185.41241f, 0.015197754f, 678.8281f), 135) { Fly = true }; obj211.Steps = list297; reference220 = obj211; - num++; - ref QuestSequence reference221 = ref span290[num]; + ref QuestSequence reference221 = ref span118[6]; QuestSequence obj212 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj212.Steps = list298; reference221 = obj212; - num++; - ref QuestSequence reference222 = ref span290[num]; + ref QuestSequence reference222 = ref span118[7]; QuestSequence obj213 = new QuestSequence { Sequence = 7 @@ -130132,9 +108074,7 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - ref QuestStep reference223 = ref span299[index2]; + ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list299)[0]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1013908u, new Vector3(-38.010254f, 71.439964f, 111.95532f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -130149,27 +108089,23 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - Span span300 = CollectionsMarshal.AsSpan(list300); - index3 = 0; - span300[index3] = 129; + CollectionsMarshal.AsSpan(list300)[0] = 129; skipAetheryteCondition.InTerritory = list300; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition; obj214.SkipConditions = skipConditions12; reference223 = obj214; obj213.Steps = list299; reference222 = obj213; - num++; - ref QuestSequence reference224 = ref span290[num]; + ref QuestSequence reference224 = ref span118[8]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130185,8 +108121,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span301[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1686) }; @@ -130199,16 +108134,13 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "xan"; + CollectionsMarshal.AsSpan(list302)[0] = "xan"; questRoot36.Author = list302; - index = 6; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference225 = ref span303[num]; + num = 6; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span121 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference225 = ref span121[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -130216,9 +108148,8 @@ public static class AssemblyQuestLoader num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span122 = CollectionsMarshal.AsSpan(list304); + span122[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130234,22 +108165,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span304[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj216.Steps = list304; reference225 = obj216; - num++; - ref QuestSequence reference226 = ref span303[num]; + ref QuestSequence reference226 = ref span121[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -130280,12 +108208,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span305[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + span123[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj217.Steps = list305; reference226 = obj217; - num++; - ref QuestSequence reference227 = ref span303[num]; + ref QuestSequence reference227 = ref span121[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -130293,9 +108219,8 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - ref QuestStep reference228 = ref span306[index2]; + Span span124 = CollectionsMarshal.AsSpan(list306); + ref QuestStep reference228 = ref span124[0]; QuestStep obj219 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(246.007f, 56.384f, 839.334f), 137) { TargetTerritoryId = (ushort)135, @@ -130304,12 +108229,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index3 = 1; - List list307 = new List(index3); - CollectionsMarshal.SetCount(list307, index3); - Span span307 = CollectionsMarshal.AsSpan(list307); - num3 = 0; - span307[num3] = 135; + num3 = 1; + List list307 = new List(num3); + CollectionsMarshal.SetCount(list307, num3); + CollectionsMarshal.AsSpan(list307)[0] = 135; skipStepConditions5.InTerritory = list307; skipConditions13.StepIf = skipStepConditions5; SkipAetheryteCondition obj220 = new SkipAetheryteCondition @@ -130319,46 +108242,37 @@ public static class AssemblyQuestLoader num3 = 1; List list308 = new List(num3); CollectionsMarshal.SetCount(list308, num3); - Span span308 = CollectionsMarshal.AsSpan(list308); - index3 = 0; - span308[index3] = 135; + CollectionsMarshal.AsSpan(list308)[0] = 135; obj220.InTerritory = list308; skipConditions13.AetheryteShortcutIf = obj220; obj219.SkipConditions = skipConditions13; reference228 = obj219; - index2++; - ref QuestStep reference229 = ref span306[index2]; + ref QuestStep reference229 = ref span124[1]; QuestStep obj221 = new QuestStep(EInteractionType.Combat, null, new Vector3(508.80716f, 95.940796f, -450.35608f), 135) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list309 = new List(index3); - CollectionsMarshal.SetCount(list309, index3); - Span span309 = CollectionsMarshal.AsSpan(list309); - num3 = 0; - span309[num3] = 4616u; + num3 = 1; + List list309 = new List(num3); + CollectionsMarshal.SetCount(list309, num3); + CollectionsMarshal.AsSpan(list309)[0] = 4616u; obj221.KillEnemyDataIds = list309; reference229 = obj221; obj218.Steps = list306; reference227 = obj218; - num++; - ref QuestSequence reference230 = ref span303[num]; + ref QuestSequence reference230 = ref span121[3]; QuestSequence obj222 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj222.Steps = list310; reference230 = obj222; - num++; - ref QuestSequence reference231 = ref span303[num]; + ref QuestSequence reference231 = ref span121[4]; QuestSequence obj223 = new QuestSequence { Sequence = 4 @@ -130366,9 +108280,7 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span311[index2] = new QuestStep(EInteractionType.Interact, 2005932u, new Vector3(483.36f, 10.879639f, 348.89746f), 137) + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 2005932u, new Vector3(483.36f, 10.879639f, 348.89746f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -130381,18 +108293,16 @@ public static class AssemblyQuestLoader }; obj223.Steps = list311; reference231 = obj223; - num++; - ref QuestSequence reference232 = ref span303[num]; + ref QuestSequence reference232 = ref span121[5]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130404,8 +108314,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span312[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span125[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1687) }; @@ -130418,16 +108327,13 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - Span span313 = CollectionsMarshal.AsSpan(list313); - index = 0; - span313[index] = "xan"; + CollectionsMarshal.AsSpan(list313)[0] = "xan"; questRoot37.Author = list313; - index = 8; - List list314 = new List(index); - CollectionsMarshal.SetCount(list314, index); - Span span314 = CollectionsMarshal.AsSpan(list314); - num = 0; - ref QuestSequence reference233 = ref span314[num]; + num = 8; + List list314 = new List(num); + CollectionsMarshal.SetCount(list314, num); + Span span126 = CollectionsMarshal.AsSpan(list314); + ref QuestSequence reference233 = ref span126[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -130435,9 +108341,8 @@ public static class AssemblyQuestLoader num2 = 2; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span127 = CollectionsMarshal.AsSpan(list315); + span127[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130453,22 +108358,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span315[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span127[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj225.Steps = list315; reference233 = obj225; - num++; - ref QuestSequence reference234 = ref span314[num]; + ref QuestSequence reference234 = ref span126[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -130479,8 +108380,7 @@ public static class AssemblyQuestLoader }; obj226.Steps = list316; reference234 = obj226; - num++; - ref QuestSequence reference235 = ref span314[num]; + ref QuestSequence reference235 = ref span126[2]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -130488,9 +108388,7 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.UseItem, 2005934u, new Vector3(-188.79993f, 1.7241821f, 207.7821f), 129) + CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.UseItem, 2005934u, new Vector3(-188.79993f, 1.7241821f, 207.7821f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -130502,22 +108400,18 @@ public static class AssemblyQuestLoader }; obj227.Steps = list317; reference235 = obj227; - num++; - ref QuestSequence reference236 = ref span314[num]; + ref QuestSequence reference236 = ref span126[3]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj228.Steps = list318; reference236 = obj228; - num++; - ref QuestSequence reference237 = ref span314[num]; + ref QuestSequence reference237 = ref span126[4]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -130525,29 +108419,24 @@ public static class AssemblyQuestLoader num2 = 2; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(234.53989f, -56.43721f, -254.02878f), 398) + Span span128 = CollectionsMarshal.AsSpan(list319); + span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(234.53989f, -56.43721f, -254.02878f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - index2++; - span319[index2] = new QuestStep(EInteractionType.Interact, 1013912u, new Vector3(230.73157f, -56.71082f, -247.21143f), 398); + span128[1] = new QuestStep(EInteractionType.Interact, 1013912u, new Vector3(230.73157f, -56.71082f, -247.21143f), 398); obj229.Steps = list319; reference237 = obj229; - num++; - ref QuestSequence reference238 = ref span314[num]; + ref QuestSequence reference238 = ref span126[5]; QuestSequence obj230 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list320 = new List(index2); - CollectionsMarshal.SetCount(list320, index2); - Span span320 = CollectionsMarshal.AsSpan(list320); - num2 = 0; - ref QuestStep reference239 = ref span320[num2]; + num2 = 1; + List list320 = new List(num2); + CollectionsMarshal.SetCount(list320, num2); + ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list320)[0]; QuestStep obj231 = new QuestStep(EInteractionType.Combat, 2005938u, new Vector3(163.28674f, -64.2558f, -102.89166f), 398) { Fly = true, @@ -130556,17 +108445,14 @@ public static class AssemblyQuestLoader num3 = 2; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span321 = CollectionsMarshal.AsSpan(list321); - index3 = 0; - span321[index3] = 5042u; - index3++; - span321[index3] = 4619u; + Span span129 = CollectionsMarshal.AsSpan(list321); + span129[0] = 5042u; + span129[1] = 4619u; obj231.KillEnemyDataIds = list321; reference239 = obj231; obj230.Steps = list320; reference238 = obj230; - num++; - ref QuestSequence reference240 = ref span314[num]; + ref QuestSequence reference240 = ref span126[6]; QuestSequence obj232 = new QuestSequence { Sequence = 6 @@ -130574,26 +108460,22 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.Interact, 1015302u, new Vector3(237.59814f, -54.04252f, -217.02905f), 398) + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1015302u, new Vector3(237.59814f, -54.04252f, -217.02905f), 398) { Fly = true }; obj232.Steps = list322; reference240 = obj232; - num++; - ref QuestSequence reference241 = ref span314[num]; + ref QuestSequence reference241 = ref span126[7]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130605,8 +108487,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span323[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(1688) }; @@ -130619,16 +108500,13 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - Span span324 = CollectionsMarshal.AsSpan(list324); - index = 0; - span324[index] = "xan"; + CollectionsMarshal.AsSpan(list324)[0] = "xan"; questRoot38.Author = list324; - index = 8; - List list325 = new List(index); - CollectionsMarshal.SetCount(list325, index); - Span span325 = CollectionsMarshal.AsSpan(list325); - num = 0; - ref QuestSequence reference242 = ref span325[num]; + num = 8; + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + Span span131 = CollectionsMarshal.AsSpan(list325); + ref QuestSequence reference242 = ref span131[0]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -130636,9 +108514,8 @@ public static class AssemblyQuestLoader num2 = 2; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span132 = CollectionsMarshal.AsSpan(list326); + span132[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130654,22 +108531,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span132[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj234.Steps = list326; reference242 = obj234; - num++; - ref QuestSequence reference243 = ref span325[num]; + ref QuestSequence reference243 = ref span131[1]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)137, SkipConditions = new SkipConditions @@ -130685,78 +108559,59 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference244 = ref span327[num2]; + ref QuestStep reference244 = ref span133[1]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, 2005940u, new Vector3(-4.867676f, 39.414062f, 263.7826f), 137) { Emote = EEmote.Doze, EnemySpawnType = EEnemySpawnType.AfterEmote }; - 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; + num3 = 2; + List list328 = new List(num3); + CollectionsMarshal.SetCount(list328, num3); + Span span134 = CollectionsMarshal.AsSpan(list328); + span134[0] = 5042u; + span134[1] = 4619u; obj236.KillEnemyDataIds = list328; num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - 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); + 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); obj236.CompletionQuestVariablesFlags = list329; reference244 = obj236; - num2++; - ref QuestStep reference245 = ref span327[num2]; + ref QuestStep reference245 = ref span133[2]; QuestStep obj237 = new QuestStep(EInteractionType.Combat, 2005941u, new Vector3(-47.104614f, 39.749634f, 255.6648f), 137) { Emote = EEmote.Doze, EnemySpawnType = EEnemySpawnType.AfterEmote }; - 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; + num3 = 2; + List list330 = new List(num3); + CollectionsMarshal.SetCount(list330, num3); + Span span136 = CollectionsMarshal.AsSpan(list330); + span136[0] = 5042u; + span136[1] = 4619u; obj237.KillEnemyDataIds = list330; num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - 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); + 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); obj237.CompletionQuestVariablesFlags = list331; reference245 = obj237; obj235.Steps = list327; reference243 = obj235; - num++; - ref QuestSequence reference246 = ref span325[num]; + ref QuestSequence reference246 = ref span131[2]; QuestSequence obj238 = new QuestSequence { Sequence = 2 @@ -130764,9 +108619,8 @@ public static class AssemblyQuestLoader num2 = 2; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span332 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span138 = CollectionsMarshal.AsSpan(list332); + span138[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130782,33 +108636,27 @@ public static class AssemblyQuestLoader } } }; - index2++; - span332[index2] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span138[1] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj238.Steps = list332; reference246 = obj238; - num++; - ref QuestSequence reference247 = ref span325[num]; + ref QuestSequence reference247 = ref span131[3]; QuestSequence obj239 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list333 = new List(index2); - CollectionsMarshal.SetCount(list333, index2); - Span span333 = CollectionsMarshal.AsSpan(list333); - num2 = 0; - ref QuestStep reference248 = ref span333[num2]; + num2 = 1; + List list333 = new List(num2); + CollectionsMarshal.SetCount(list333, num2); + ref QuestStep reference248 = ref CollectionsMarshal.AsSpan(list333)[0]; QuestStep obj240 = new QuestStep(EInteractionType.Interact, 1013916u, new Vector3(103.990234f, 53.596413f, 674.8607f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; - index3 = 1; - List list334 = new List(index3); - CollectionsMarshal.SetCount(list334, index3); - Span span334 = CollectionsMarshal.AsSpan(list334); - num3 = 0; - span334[num3] = new DialogueChoice + num3 = 1; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + CollectionsMarshal.AsSpan(list334)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN600_01688_Q1_000_000"), @@ -130818,8 +108666,7 @@ public static class AssemblyQuestLoader reference248 = obj240; obj239.Steps = list333; reference247 = obj239; - num++; - ref QuestSequence reference249 = ref span325[num]; + ref QuestSequence reference249 = ref span131[4]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -130827,33 +108674,27 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.Interact, 2005942u, new Vector3(122.545166f, 60.65454f, 934.47766f), 135) + CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 2005942u, new Vector3(122.545166f, 60.65454f, 934.47766f), 135) { Fly = true }; obj241.Steps = list335; reference249 = obj241; - num++; - ref QuestSequence reference250 = ref span325[num]; + ref QuestSequence reference250 = ref span131[5]; QuestSequence obj242 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj242.Steps = list336; reference250 = obj242; - num++; - ref QuestSequence reference251 = ref span325[num]; + ref QuestSequence reference251 = ref span131[6]; QuestSequence obj243 = new QuestSequence { Sequence = 6 @@ -130861,23 +108702,19 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135); + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013920u, new Vector3(259.60168f, 4.4031205f, 715.3887f), 135); obj243.Steps = list337; reference251 = obj243; - num++; - ref QuestSequence reference252 = ref span325[num]; + ref QuestSequence reference252 = ref span131[7]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -130889,8 +108726,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span139[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2948) }; @@ -130903,16 +108739,13 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - Span span339 = CollectionsMarshal.AsSpan(list339); - index = 0; - span339[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list339)[0] = "AnimaMachinae"; questRoot39.Author = list339; - index = 3; - List list340 = new List(index); - CollectionsMarshal.SetCount(list340, index); - Span span340 = CollectionsMarshal.AsSpan(list340); - num = 0; - ref QuestSequence reference253 = ref span340[num]; + num = 3; + List list340 = new List(num); + CollectionsMarshal.SetCount(list340, num); + Span span140 = CollectionsMarshal.AsSpan(list340); + ref QuestSequence reference253 = ref span140[0]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -130920,9 +108753,8 @@ public static class AssemblyQuestLoader num2 = 2; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span141 = CollectionsMarshal.AsSpan(list341); + span141[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -130935,22 +108767,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span141[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj245.Steps = list341; reference253 = obj245; - num++; - ref QuestSequence reference254 = ref span340[num]; + ref QuestSequence reference254 = ref span140[1]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list342 = new List(index2); - CollectionsMarshal.SetCount(list342, index2); - Span span342 = CollectionsMarshal.AsSpan(list342); - num2 = 0; - ref QuestStep reference255 = ref span342[num2]; + num2 = 2; + List list342 = new List(num2); + CollectionsMarshal.SetCount(list342, num2); + Span span142 = CollectionsMarshal.AsSpan(list342); + ref QuestStep reference255 = ref span142[0]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155) { Fly = true, @@ -130961,34 +108790,24 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - Span span343 = CollectionsMarshal.AsSpan(list343); - index3 = 0; - span343[index3] = 4478u; + CollectionsMarshal.AsSpan(list343)[0] = 4478u; obj247.KillEnemyDataIds = list343; - 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; + 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; obj247.CompletionQuestVariablesFlags = list344; reference255 = obj247; - num2++; - span342[num2] = new QuestStep(EInteractionType.Interact, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155); + span142[1] = new QuestStep(EInteractionType.Interact, 1013437u, new Vector3(-580.5906f, 206.85785f, -407.64478f), 155); obj246.Steps = list342; reference254 = obj246; - num++; - ref QuestSequence reference256 = ref span340[num]; + ref QuestSequence reference256 = ref span140[2]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -130996,16 +108815,14 @@ public static class AssemblyQuestLoader num2 = 2; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span144 = CollectionsMarshal.AsSpan(list345); + span144[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span345[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span144[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -131018,26 +108835,22 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - Span span346 = CollectionsMarshal.AsSpan(list346); - index = 0; - span346[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list346)[0] = "AnimaMachinae"; questRoot40.Author = list346; - index = 5; - List list347 = new List(index); - CollectionsMarshal.SetCount(list347, index); - Span span347 = CollectionsMarshal.AsSpan(list347); - num = 0; - ref QuestSequence reference257 = ref span347[num]; + num = 5; + List list347 = new List(num); + CollectionsMarshal.SetCount(list347, num); + Span span145 = CollectionsMarshal.AsSpan(list347); + ref QuestSequence reference257 = ref span145[0]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -131050,12 +108863,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span348[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span146[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj249.Steps = list348; reference257 = obj249; - num++; - ref QuestSequence reference258 = ref span347[num]; + ref QuestSequence reference258 = ref span145[1]; QuestSequence obj250 = new QuestSequence { Sequence = 1 @@ -131063,9 +108874,7 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - ref QuestStep reference259 = ref span349[index2]; + ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list349)[0]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 1013441u, new Vector3(468.58923f, 166.28001f, 256.73303f), 397) { Fly = true, @@ -131076,29 +108885,23 @@ public static class AssemblyQuestLoader num3 = 1; List list350 = new List(num3); CollectionsMarshal.SetCount(list350, num3); - Span span350 = CollectionsMarshal.AsSpan(list350); - index3 = 0; - span350[index3] = 4504u; + CollectionsMarshal.AsSpan(list350)[0] = 4504u; obj251.KillEnemyDataIds = list350; reference259 = obj251; obj250.Steps = list349; reference258 = obj250; - num++; - ref QuestSequence reference260 = ref span347[num]; + ref QuestSequence reference260 = ref span145[2]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj252.Steps = list351; reference260 = obj252; - num++; - ref QuestSequence reference261 = ref span347[num]; + ref QuestSequence reference261 = ref span145[3]; QuestSequence obj253 = new QuestSequence { Sequence = 3 @@ -131106,37 +108909,30 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - ref QuestStep reference262 = ref span352[index2]; + ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list352)[0]; QuestStep obj254 = new QuestStep(EInteractionType.Combat, 2006182u, new Vector3(197.40588f, 184.00854f, -102.80011f), 397) { Fly = true, Land = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list353 = new List(index3); - CollectionsMarshal.SetCount(list353, index3); - Span span353 = CollectionsMarshal.AsSpan(list353); - num3 = 0; - span353[num3] = 4486u; + num3 = 1; + List list353 = new List(num3); + CollectionsMarshal.SetCount(list353, num3); + CollectionsMarshal.AsSpan(list353)[0] = 4486u; obj254.KillEnemyDataIds = list353; reference262 = obj254; obj253.Steps = list352; reference261 = obj253; - num++; - ref QuestSequence reference263 = ref span347[num]; + ref QuestSequence reference263 = ref span145[4]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj255.Steps = list354; reference263 = obj255; questRoot40.QuestSequence = list347; @@ -131146,16 +108942,13 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - Span span355 = CollectionsMarshal.AsSpan(list355); - index = 0; - span355[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list355)[0] = "AnimaMachinae"; questRoot41.Author = list355; - index = 3; - List list356 = new List(index); - CollectionsMarshal.SetCount(list356, index); - Span span356 = CollectionsMarshal.AsSpan(list356); - num = 0; - ref QuestSequence reference264 = ref span356[num]; + num = 3; + List list356 = new List(num); + CollectionsMarshal.SetCount(list356, num); + Span span147 = CollectionsMarshal.AsSpan(list356); + ref QuestSequence reference264 = ref span147[0]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -131163,9 +108956,7 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span357[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397) + CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013445u, new Vector3(202.19727f, 183.6595f, -96.11658f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -131178,18 +108969,15 @@ public static class AssemblyQuestLoader }; obj256.Steps = list357; reference264 = obj256; - num++; - ref QuestSequence reference265 = ref span356[num]; + ref QuestSequence reference265 = ref span147[1]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -131207,8 +108995,7 @@ public static class AssemblyQuestLoader }; obj257.Steps = list358; reference265 = obj257; - num++; - ref QuestSequence reference266 = ref span356[num]; + ref QuestSequence reference266 = ref span147[2]; QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue @@ -131216,16 +109003,14 @@ public static class AssemblyQuestLoader num2 = 2; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span148 = CollectionsMarshal.AsSpan(list359); + span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span359[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span148[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -131238,26 +109023,22 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - Span span360 = CollectionsMarshal.AsSpan(list360); - index = 0; - span360[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list360)[0] = "AnimaMachinae"; questRoot42.Author = list360; - index = 6; - List list361 = new List(index); - CollectionsMarshal.SetCount(list361, index); - Span span361 = CollectionsMarshal.AsSpan(list361); - num = 0; - ref QuestSequence reference267 = ref span361[num]; + num = 6; + List list361 = new List(num); + CollectionsMarshal.SetCount(list361, num); + Span span149 = CollectionsMarshal.AsSpan(list361); + ref QuestSequence reference267 = ref span149[0]; QuestSequence obj259 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -131270,12 +109051,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span362[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span150[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj259.Steps = list362; reference267 = obj259; - num++; - ref QuestSequence reference268 = ref span361[num]; + ref QuestSequence reference268 = ref span149[1]; QuestSequence obj260 = new QuestSequence { Sequence = 1 @@ -131283,9 +109062,7 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.Interact, 1013450u, new Vector3(84.30603f, 23.979128f, -12.802368f), 418) + CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1013450u, new Vector3(84.30603f, 23.979128f, -12.802368f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -131303,18 +109080,15 @@ public static class AssemblyQuestLoader }; obj260.Steps = list363; reference268 = obj260; - num++; - ref QuestSequence reference269 = ref span361[num]; + ref QuestSequence reference269 = ref span149[2]; QuestSequence obj261 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Land = true, @@ -131322,8 +109096,7 @@ public static class AssemblyQuestLoader }; obj261.Steps = list364; reference269 = obj261; - num++; - ref QuestSequence reference270 = ref span361[num]; + ref QuestSequence reference270 = ref span149[3]; QuestSequence obj262 = new QuestSequence { Sequence = 3 @@ -131331,23 +109104,18 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span365[index2] = new QuestStep(EInteractionType.Interact, 1013457u, new Vector3(492.88147f, 164.6694f, 265.06445f), 397); + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1013457u, new Vector3(492.88147f, 164.6694f, 265.06445f), 397); obj262.Steps = list365; reference270 = obj262; - num++; - ref QuestSequence reference271 = ref span361[num]; + ref QuestSequence reference271 = ref span149[4]; QuestSequence obj263 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -131358,8 +109126,7 @@ public static class AssemblyQuestLoader }; obj263.Steps = list366; reference271 = obj263; - num++; - ref QuestSequence reference272 = ref span361[num]; + ref QuestSequence reference272 = ref span149[5]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -131367,16 +109134,14 @@ public static class AssemblyQuestLoader num2 = 2; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span151 = CollectionsMarshal.AsSpan(list367); + span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span151[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -131389,26 +109154,22 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - Span span368 = CollectionsMarshal.AsSpan(list368); - index = 0; - span368[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list368)[0] = "AnimaMachinae"; questRoot43.Author = list368; - index = 5; - List list369 = new List(index); - CollectionsMarshal.SetCount(list369, index); - Span span369 = CollectionsMarshal.AsSpan(list369); - num = 0; - ref QuestSequence reference273 = ref span369[num]; + num = 5; + List list369 = new List(num); + CollectionsMarshal.SetCount(list369, num); + Span span152 = CollectionsMarshal.AsSpan(list369); + ref QuestSequence reference273 = ref span152[0]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, Land = true, @@ -131421,12 +109182,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span370[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span153[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj265.Steps = list370; reference273 = obj265; - num++; - ref QuestSequence reference274 = ref span369[num]; + ref QuestSequence reference274 = ref span152[1]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -131434,30 +109193,26 @@ public static class AssemblyQuestLoader num2 = 2; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.009445f, 98.00955f, 106.47891f), 397) + Span span154 = CollectionsMarshal.AsSpan(list371); + span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.009445f, 98.00955f, 106.47891f), 397) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - index2++; - span371[index2] = new QuestStep(EInteractionType.Interact, 1013467u, new Vector3(-51.10254f, 98.63026f, 105.1499f), 397); + span154[1] = new QuestStep(EInteractionType.Interact, 1013467u, new Vector3(-51.10254f, 98.63026f, 105.1499f), 397); obj266.Steps = list371; reference274 = obj266; - num++; - ref QuestSequence reference275 = ref span369[num]; + ref QuestSequence reference275 = ref span152[2]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list372 = new List(index2); - CollectionsMarshal.SetCount(list372, index2); - Span span372 = CollectionsMarshal.AsSpan(list372); - num2 = 0; - ref QuestStep reference276 = ref span372[num2]; + num2 = 2; + List list372 = new List(num2); + CollectionsMarshal.SetCount(list372, num2); + Span span155 = CollectionsMarshal.AsSpan(list372); + ref QuestStep reference276 = ref span155[0]; QuestStep obj268 = new QuestStep(EInteractionType.Combat, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397) { Fly = true, @@ -131467,36 +109222,26 @@ public static class AssemblyQuestLoader num3 = 2; List list373 = new List(num3); CollectionsMarshal.SetCount(list373, num3); - Span span373 = CollectionsMarshal.AsSpan(list373); - index3 = 0; - span373[index3] = 4482u; - index3++; - span373[index3] = 5049u; + Span span156 = CollectionsMarshal.AsSpan(list373); + span156[0] = 4482u; + span156[1] = 5049u; obj268.KillEnemyDataIds = list373; - 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; + 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; obj268.CompletionQuestVariablesFlags = list374; reference276 = obj268; - num2++; - span372[num2] = new QuestStep(EInteractionType.Interact, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397); + span155[1] = new QuestStep(EInteractionType.Interact, 1013466u, new Vector3(-155.5047f, 175.79733f, 693.26306f), 397); obj267.Steps = list372; reference275 = obj267; - num++; - ref QuestSequence reference277 = ref span369[num]; + ref QuestSequence reference277 = ref span152[3]; QuestSequence obj269 = new QuestSequence { Sequence = 3 @@ -131504,9 +109249,7 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - span375[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -131524,32 +109267,27 @@ public static class AssemblyQuestLoader }; obj269.Steps = list375; reference277 = obj269; - num++; - ref QuestSequence reference278 = ref span369[num]; + ref QuestSequence reference278 = ref span152[4]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - ref QuestStep reference279 = ref span376[num2]; + ref QuestStep reference279 = ref span158[1]; 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); - Span span377 = CollectionsMarshal.AsSpan(list377); - index3 = 0; - span377[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list377)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRG560_01693_Q1_000_000"), @@ -131566,16 +109304,13 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - Span span378 = CollectionsMarshal.AsSpan(list378); - index = 0; - span378[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list378)[0] = "AnimaMachinae"; questRoot44.Author = list378; - index = 6; - List list379 = new List(index); - CollectionsMarshal.SetCount(list379, index); - Span span379 = CollectionsMarshal.AsSpan(list379); - num = 0; - ref QuestSequence reference280 = ref span379[num]; + num = 6; + List list379 = new List(num); + CollectionsMarshal.SetCount(list379, num); + Span span159 = CollectionsMarshal.AsSpan(list379); + ref QuestSequence reference280 = ref span159[0]; QuestSequence obj271 = new QuestSequence { Sequence = 0 @@ -131583,9 +109318,8 @@ public static class AssemblyQuestLoader num2 = 2; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span380 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span160 = CollectionsMarshal.AsSpan(list380); + span160[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -131598,22 +109332,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span380[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span160[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj271.Steps = list380; reference280 = obj271; - num++; - ref QuestSequence reference281 = ref span379[num]; + ref QuestSequence reference281 = ref span159[1]; QuestSequence obj272 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true, @@ -131621,8 +109351,7 @@ public static class AssemblyQuestLoader }; obj272.Steps = list381; reference281 = obj272; - num++; - ref QuestSequence reference282 = ref span379[num]; + ref QuestSequence reference282 = ref span159[2]; QuestSequence obj273 = new QuestSequence { Sequence = 2 @@ -131630,45 +109359,37 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - ref QuestStep reference283 = ref span382[index2]; + ref QuestStep reference283 = ref CollectionsMarshal.AsSpan(list382)[0]; QuestStep obj274 = new QuestStep(EInteractionType.Combat, 1013472u, new Vector3(396.35315f, -50.87535f, 73.04492f), 398) { Fly = true, Land = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list383 = new List(index3); - CollectionsMarshal.SetCount(list383, index3); - Span span383 = CollectionsMarshal.AsSpan(list383); - num3 = 0; - span383[num3] = 4497u; + num3 = 1; + List list383 = new List(num3); + CollectionsMarshal.SetCount(list383, num3); + CollectionsMarshal.AsSpan(list383)[0] = 4497u; obj274.KillEnemyDataIds = list383; reference283 = obj274; obj273.Steps = list382; reference282 = obj273; - num++; - ref QuestSequence reference284 = ref span379[num]; + ref QuestSequence reference284 = ref span159[3]; QuestSequence obj275 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; obj275.Steps = list384; reference284 = obj275; - num++; - ref QuestSequence reference285 = ref span379[num]; + ref QuestSequence reference285 = ref span159[4]; QuestSequence obj276 = new QuestSequence { Sequence = 4 @@ -131676,34 +109397,29 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span385 = CollectionsMarshal.AsSpan(list385); - index2 = 0; - span385[index2] = new QuestStep(EInteractionType.Interact, 1013476u, new Vector3(571.5571f, -36.290947f, 359.3651f), 398) + CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.Interact, 1013476u, new Vector3(571.5571f, -36.290947f, 359.3651f), 398) { Fly = true, Land = true }; obj276.Steps = list385; reference285 = obj276; - num++; - ref QuestSequence reference286 = ref span379[num]; + ref QuestSequence reference286 = ref span159[5]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span386[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span161[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(1690) }; @@ -131716,16 +109432,13 @@ public static class AssemblyQuestLoader num = 1; List list387 = new List(num); CollectionsMarshal.SetCount(list387, num); - Span span387 = CollectionsMarshal.AsSpan(list387); - index = 0; - span387[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list387)[0] = "AnimaMachinae"; questRoot45.Author = list387; - index = 6; - List list388 = new List(index); - CollectionsMarshal.SetCount(list388, index); - Span span388 = CollectionsMarshal.AsSpan(list388); - num = 0; - ref QuestSequence reference287 = ref span388[num]; + num = 6; + List list388 = new List(num); + CollectionsMarshal.SetCount(list388, num); + Span span162 = CollectionsMarshal.AsSpan(list388); + ref QuestSequence reference287 = ref span162[0]; QuestSequence obj278 = new QuestSequence { Sequence = 0 @@ -131733,9 +109446,8 @@ public static class AssemblyQuestLoader num2 = 2; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span389 = CollectionsMarshal.AsSpan(list389); - index2 = 0; - span389[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span163 = CollectionsMarshal.AsSpan(list389); + span163[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, Land = true, @@ -131748,22 +109460,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span389[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span163[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj278.Steps = list389; reference287 = obj278; - num++; - ref QuestSequence reference288 = ref span388[num]; + ref QuestSequence reference288 = ref span162[1]; QuestSequence obj279 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true, @@ -131771,8 +109479,7 @@ public static class AssemblyQuestLoader }; obj279.Steps = list390; reference288 = obj279; - num++; - ref QuestSequence reference289 = ref span388[num]; + ref QuestSequence reference289 = ref span162[2]; QuestSequence obj280 = new QuestSequence { Sequence = 2 @@ -131780,35 +109487,29 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - Span span391 = CollectionsMarshal.AsSpan(list391); - index2 = 0; - span391[index2] = new QuestStep(EInteractionType.Interact, 1013485u, new Vector3(-360.1892f, 101.91492f, -178.79004f), 397) + CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1013485u, new Vector3(-360.1892f, 101.91492f, -178.79004f), 397) { Fly = true, Land = true }; obj280.Steps = list391; reference289 = obj280; - num++; - ref QuestSequence reference290 = ref span388[num]; + ref QuestSequence reference290 = ref span162[3]; QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; obj281.Steps = list392; reference290 = obj281; - num++; - ref QuestSequence reference291 = ref span388[num]; + ref QuestSequence reference291 = ref span162[4]; QuestSequence obj282 = new QuestSequence { Sequence = 4 @@ -131816,27 +109517,22 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span393 = CollectionsMarshal.AsSpan(list393); - index2 = 0; - span393[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397) + CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013494u, new Vector3(-505.30255f, 120.61159f, -311.39087f), 397) { Fly = true, Land = true }; obj282.Steps = list393; reference291 = obj282; - num++; - ref QuestSequence reference292 = ref span388[num]; + ref QuestSequence reference292 = ref span162[5]; QuestSequence obj283 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj283.Steps = list394; reference292 = obj283; questRoot45.QuestSequence = list388; @@ -131846,16 +109542,13 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - Span span395 = CollectionsMarshal.AsSpan(list395); - index = 0; - span395[index] = "liza"; + CollectionsMarshal.AsSpan(list395)[0] = "liza"; questRoot46.Author = list395; - index = 6; - List list396 = new List(index); - CollectionsMarshal.SetCount(list396, index); - Span span396 = CollectionsMarshal.AsSpan(list396); - num = 0; - ref QuestSequence reference293 = ref span396[num]; + num = 6; + List list396 = new List(num); + CollectionsMarshal.SetCount(list396, num); + Span span164 = CollectionsMarshal.AsSpan(list396); + ref QuestSequence reference293 = ref span164[0]; QuestSequence obj284 = new QuestSequence { Sequence = 0 @@ -131863,9 +109556,7 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span397 = CollectionsMarshal.AsSpan(list397); - index2 = 0; - span397[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -131883,25 +109574,20 @@ public static class AssemblyQuestLoader }; obj284.Steps = list397; reference293 = obj284; - num++; - ref QuestSequence reference294 = ref span396[num]; + ref QuestSequence reference294 = ref span164[1]; QuestSequence obj285 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list398 = new List(index2); - CollectionsMarshal.SetCount(list398, index2); - Span span398 = CollectionsMarshal.AsSpan(list398); - num2 = 0; - ref QuestStep reference295 = ref span398[num2]; + num2 = 1; + List list398 = new List(num2); + CollectionsMarshal.SetCount(list398, num2); + ref QuestStep reference295 = ref CollectionsMarshal.AsSpan(list398)[0]; 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); - Span span399 = CollectionsMarshal.AsSpan(list399); - index3 = 0; - span399[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH300_01696_Q1_000_000"), @@ -131911,8 +109597,7 @@ public static class AssemblyQuestLoader reference295 = questStep18; obj285.Steps = list398; reference294 = obj285; - num++; - ref QuestSequence reference296 = ref span396[num]; + ref QuestSequence reference296 = ref span164[2]; QuestSequence obj286 = new QuestSequence { Sequence = 2 @@ -131920,91 +109605,66 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180) + CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj286.Steps = list400; reference296 = obj286; - num++; - ref QuestSequence reference297 = ref span396[num]; + ref QuestSequence reference297 = ref span164[3]; QuestSequence obj287 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list401 = new List(index2); - CollectionsMarshal.SetCount(list401, index2); - Span span401 = CollectionsMarshal.AsSpan(list401); - num2 = 0; - ref QuestStep reference298 = ref span401[num2]; + num2 = 3; + List list401 = new List(num2); + CollectionsMarshal.SetCount(list401, num2); + Span span165 = CollectionsMarshal.AsSpan(list401); + ref QuestStep reference298 = ref span165[0]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1014733u, new Vector3(-98.435974f, 64.488625f, -215.56421f), 180); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list402; reference298 = questStep19; - num2++; - ref QuestStep reference299 = ref span401[num2]; + ref QuestStep reference299 = ref span165[1]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list403; reference299 = questStep20; - num2++; - ref QuestStep reference300 = ref span401[num2]; + ref QuestStep reference300 = ref span165[2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1014734u, new Vector3(-147.81415f, 64.37568f, -220.56921f), 180); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list404; reference300 = questStep21; obj287.Steps = list401; reference297 = obj287; - num++; - ref QuestSequence reference301 = ref span396[num]; + ref QuestSequence reference301 = ref span164[4]; QuestSequence obj288 = new QuestSequence { Sequence = 4 @@ -132012,23 +109672,18 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - Span span405 = CollectionsMarshal.AsSpan(list405); - index2 = 0; - span405[index2] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180); + CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1014731u, new Vector3(-73.16705f, 64.608665f, -248.0965f), 180); obj288.Steps = list405; reference301 = obj288; - num++; - ref QuestSequence reference302 = ref span396[num]; + ref QuestSequence reference302 = ref span164[5]; QuestSequence obj289 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1697) }; @@ -132041,16 +109696,13 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - Span span407 = CollectionsMarshal.AsSpan(list407); - index = 0; - span407[index] = "liza"; + CollectionsMarshal.AsSpan(list407)[0] = "liza"; questRoot47.Author = list407; - index = 3; - List list408 = new List(index); - CollectionsMarshal.SetCount(list408, index); - Span span408 = CollectionsMarshal.AsSpan(list408); - num = 0; - ref QuestSequence reference303 = ref span408[num]; + num = 3; + List list408 = new List(num); + CollectionsMarshal.SetCount(list408, num); + Span span169 = CollectionsMarshal.AsSpan(list408); + ref QuestSequence reference303 = ref span169[0]; QuestSequence obj290 = new QuestSequence { Sequence = 0 @@ -132058,9 +109710,8 @@ public static class AssemblyQuestLoader num2 = 3; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span409 = CollectionsMarshal.AsSpan(list409); - index2 = 0; - span409[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 180) + Span span170 = CollectionsMarshal.AsSpan(list409); + span170[0] = new QuestStep(EInteractionType.EquipItem, null, null, 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, ItemId = 10462u, @@ -132079,31 +109730,25 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj290.Steps = list409; reference303 = obj290; - num++; - ref QuestSequence reference304 = ref span408[num]; + ref QuestSequence reference304 = ref span169[1]; QuestSequence obj291 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj291.Steps = list410; reference304 = obj291; - num++; - ref QuestSequence reference305 = ref span408[num]; + ref QuestSequence reference305 = ref span169[2]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue @@ -132111,9 +109756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span411 = CollectionsMarshal.AsSpan(list411); - index2 = 0; - span411[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132132,26 +109775,21 @@ public static class AssemblyQuestLoader num = 1; List list412 = new List(num); CollectionsMarshal.SetCount(list412, num); - Span span412 = CollectionsMarshal.AsSpan(list412); - index = 0; - span412[index] = "liza"; + CollectionsMarshal.AsSpan(list412)[0] = "liza"; questRoot48.Author = list412; - index = 8; - List list413 = new List(index); - CollectionsMarshal.SetCount(list413, index); - Span span413 = CollectionsMarshal.AsSpan(list413); - num = 0; - ref QuestSequence reference306 = ref span413[num]; + num = 8; + List list413 = new List(num); + CollectionsMarshal.SetCount(list413, num); + Span span171 = CollectionsMarshal.AsSpan(list413); + ref QuestSequence reference306 = ref span171[0]; QuestSequence obj293 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132169,8 +109807,7 @@ public static class AssemblyQuestLoader }; obj293.Steps = list414; reference306 = obj293; - num++; - ref QuestSequence reference307 = ref span413[num]; + ref QuestSequence reference307 = ref span171[1]; QuestSequence obj294 = new QuestSequence { Sequence = 1 @@ -132178,27 +109815,22 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - Span span415 = CollectionsMarshal.AsSpan(list415); - index2 = 0; - span415[index2] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) + CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj294.Steps = list415; reference307 = obj294; - num++; - ref QuestSequence reference308 = ref span413[num]; + ref QuestSequence reference308 = ref span171[2]; QuestSequence obj295 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list416 = new List(index2); - CollectionsMarshal.SetCount(list416, index2); - Span span416 = CollectionsMarshal.AsSpan(list416); - num2 = 0; - ref QuestStep reference309 = ref span416[num2]; + num2 = 1; + List list416 = new List(num2); + CollectionsMarshal.SetCount(list416, num2); + ref QuestStep reference309 = ref CollectionsMarshal.AsSpan(list416)[0]; QuestStep obj296 = new QuestStep(EInteractionType.Combat, 1014748u, new Vector3(-233.66144f, 44.330624f, 519.09656f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -132206,15 +109838,12 @@ public static class AssemblyQuestLoader num3 = 1; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - Span span417 = CollectionsMarshal.AsSpan(list417); - index3 = 0; - span417[index3] = 4476u; + CollectionsMarshal.AsSpan(list417)[0] = 4476u; obj296.KillEnemyDataIds = list417; reference309 = obj296; obj295.Steps = list416; reference308 = obj295; - num++; - ref QuestSequence reference310 = ref span413[num]; + ref QuestSequence reference310 = ref span171[3]; QuestSequence obj297 = new QuestSequence { Sequence = 3 @@ -132222,37 +109851,30 @@ public static class AssemblyQuestLoader num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - 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]; + 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]; QuestStep obj298 = new QuestStep(EInteractionType.Combat, 1014749u, new Vector3(-234.02765f, 44.330624f, 539.81836f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list419 = new List(index3); - CollectionsMarshal.SetCount(list419, index3); - Span span419 = CollectionsMarshal.AsSpan(list419); - num3 = 0; - span419[num3] = 4477u; + num3 = 1; + List list419 = new List(num3); + CollectionsMarshal.SetCount(list419, num3); + CollectionsMarshal.AsSpan(list419)[0] = 4477u; obj298.KillEnemyDataIds = list419; reference311 = obj298; obj297.Steps = list418; reference310 = obj297; - num++; - ref QuestSequence reference312 = ref span413[num]; + ref QuestSequence reference312 = ref span171[4]; QuestSequence obj299 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list420 = new List(index2); - CollectionsMarshal.SetCount(list420, index2); - Span span420 = CollectionsMarshal.AsSpan(list420); - num2 = 0; - ref QuestStep reference313 = ref span420[num2]; + num2 = 1; + List list420 = new List(num2); + CollectionsMarshal.SetCount(list420, num2); + ref QuestStep reference313 = ref CollectionsMarshal.AsSpan(list420)[0]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -132260,15 +109882,12 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - Span span421 = CollectionsMarshal.AsSpan(list421); - index3 = 0; - span421[index3] = 321u; + CollectionsMarshal.AsSpan(list421)[0] = 321u; obj300.KillEnemyDataIds = list421; reference313 = obj300; obj299.Steps = list420; reference312 = obj299; - num++; - ref QuestSequence reference314 = ref span413[num]; + ref QuestSequence reference314 = ref span171[5]; QuestSequence obj301 = new QuestSequence { Sequence = 5 @@ -132276,27 +109895,21 @@ public static class AssemblyQuestLoader num2 = 1; List list422 = new List(num2); CollectionsMarshal.SetCount(list422, num2); - Span span422 = CollectionsMarshal.AsSpan(list422); - index2 = 0; - span422[index2] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137); + CollectionsMarshal.AsSpan(list422)[0] = new QuestStep(EInteractionType.Interact, 1014745u, new Vector3(-205.82898f, 45.803963f, 517.20447f), 137); obj301.Steps = list422; reference314 = obj301; - num++; - ref QuestSequence reference315 = ref span413[num]; + ref QuestSequence reference315 = ref span171[6]; QuestSequence obj302 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj302.Steps = list423; reference315 = obj302; - num++; - ref QuestSequence reference316 = ref span413[num]; + ref QuestSequence reference316 = ref span171[7]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue @@ -132304,9 +109917,7 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span424 = CollectionsMarshal.AsSpan(list424); - index2 = 0; - span424[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132325,26 +109936,21 @@ public static class AssemblyQuestLoader num = 1; List list425 = new List(num); CollectionsMarshal.SetCount(list425, num); - Span span425 = CollectionsMarshal.AsSpan(list425); - index = 0; - span425[index] = "liza"; + CollectionsMarshal.AsSpan(list425)[0] = "liza"; questRoot49.Author = list425; - index = 2; - List list426 = new List(index); - CollectionsMarshal.SetCount(list426, index); - Span span426 = CollectionsMarshal.AsSpan(list426); - num = 0; - ref QuestSequence reference317 = ref span426[num]; + num = 2; + List list426 = new List(num); + CollectionsMarshal.SetCount(list426, num); + Span span173 = CollectionsMarshal.AsSpan(list426); + ref QuestSequence reference317 = ref span173[0]; QuestSequence obj304 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132362,8 +109968,7 @@ public static class AssemblyQuestLoader }; obj304.Steps = list427; reference317 = obj304; - num++; - ref QuestSequence reference318 = ref span426[num]; + ref QuestSequence reference318 = ref span173[1]; QuestSequence obj305 = new QuestSequence { Sequence = byte.MaxValue @@ -132371,9 +109976,7 @@ public static class AssemblyQuestLoader num2 = 1; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - Span span428 = CollectionsMarshal.AsSpan(list428); - index2 = 0; - span428[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1700) }; @@ -132390,16 +109993,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 8; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 8; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -132407,9 +110007,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132427,22 +110025,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -132450,9 +110044,8 @@ public static class AssemblyQuestLoader num2 = 3; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + Span span2 = CollectionsMarshal.AsSpan(list5); + ref QuestStep reference4 = ref span2[0]; QuestStep obj4 = new QuestStep(EInteractionType.Action, 1014752u, new Vector3(-155.59625f, 16.979582f, -38.376526f), 418) { StopDistance = 10f, @@ -132461,23 +110054,16 @@ public static class AssemblyQuestLoader int num3 = 6; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - 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); + 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); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - index2++; - ref QuestStep reference5 = ref span5[index2]; + ref QuestStep reference5 = ref span2[1]; QuestStep obj5 = new QuestStep(EInteractionType.Action, 1014753u, new Vector3(52.994507f, 24.071722f, -25.070618f), 418) { StopDistance = 10f, @@ -132488,26 +110074,19 @@ public static class AssemblyQuestLoader }, Action = EAction.SlugShot }; - 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); + 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); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - index2++; - ref QuestStep reference6 = ref span5[index2]; + ref QuestStep reference6 = ref span2[2]; QuestStep obj6 = new QuestStep(EInteractionType.Action, 1014754u, new Vector3(114.18323f, -7.146736f, 83.66516f), 418) { StopDistance = 10f, @@ -132521,35 +110100,26 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - 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); + 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); obj6.CompletionQuestVariablesFlags = list8; reference6 = obj6; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -132559,8 +110129,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[4]; QuestSequence obj8 = new QuestSequence { Sequence = 4 @@ -132568,31 +110137,25 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014760u, new Vector3(232.6543f, 251.81952f, 127.21448f), 155) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014760u, new Vector3(232.6543f, 251.81952f, 127.21448f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj8.Steps = list10; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[5]; QuestSequence obj9 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj9.Steps = list11; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[6]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -132600,23 +110163,18 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1014762u, new Vector3(207.44641f, 255.97514f, 82.26135f), 155); obj10.Steps = list12; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[7]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132635,16 +110193,13 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "liza"; + CollectionsMarshal.AsSpan(list14)[0] = "liza"; questRoot2.Author = list14; - index = 2; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference12 = ref span15[num]; + num = 2; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span6 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference12 = ref span6[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -132652,9 +110207,7 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132672,18 +110225,15 @@ public static class AssemblyQuestLoader }; obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span6[1]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1702) }; @@ -132696,16 +110246,13 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "liza"; + CollectionsMarshal.AsSpan(list18)[0] = "liza"; questRoot3.Author = list18; - index = 6; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference14 = ref span19[num]; + num = 6; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span7 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference14 = ref span7[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -132713,9 +110260,7 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132733,18 +110278,15 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span19[num]; + ref QuestSequence reference15 = ref span7[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref QuestStep reference16 = ref span21[num2]; + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1014769u, new Vector3(-245.4414f, -20.03492f, -63.645386f), 419) { AethernetShortcut = new AethernetShortcut @@ -132753,12 +110295,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - num4 = 1; - List list22 = new List(num4); - CollectionsMarshal.SetCount(list22, num4); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new DialogueChoice + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH451_01702_Q1_000_000"), @@ -132768,8 +110308,7 @@ public static class AssemblyQuestLoader reference16 = obj16; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference17 = ref span19[num]; + ref QuestSequence reference17 = ref span7[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -132777,26 +110316,21 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 2006262u, new Vector3(-246.357f, -20.035156f, -64.683044f), 419) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2006262u, new Vector3(-246.357f, -20.035156f, -64.683044f), 419) { StopDistance = 4.5f }; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span19[num]; + ref QuestSequence reference18 = ref span7[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference19 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1014770u, new Vector3(-16.281433f, 16.009666f, -6.668213f), 419) { AethernetShortcut = new AethernetShortcut @@ -132808,9 +110342,7 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num4 = 0; - span25[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH451_01702_Q2_000_000"), @@ -132820,8 +110352,7 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference20 = ref span19[num]; + ref QuestSequence reference20 = ref span7[4]; QuestSequence obj20 = new QuestSequence { Sequence = 4 @@ -132829,27 +110360,22 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014772u, new Vector3(427.0542f, 15.170297f, 706.72156f), 137) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014772u, new Vector3(427.0542f, 15.170297f, 706.72156f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj20.Steps = list26; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span19[num]; + ref QuestSequence reference21 = ref span7[5]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132868,16 +110394,13 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot4.Author = list28; - index = 7; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference22 = ref span29[num]; + num = 7; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span8 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference22 = ref span8[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -132885,9 +110408,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -132905,22 +110426,18 @@ public static class AssemblyQuestLoader }; obj22.Steps = list30; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span29[num]; + ref QuestSequence reference23 = ref span8[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj23.Steps = list31; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span29[num]; + ref QuestSequence reference24 = ref span8[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -132928,47 +110445,36 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1014776u, new Vector3(-138.7503f, 23.240587f, -83.878845f), 418); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1014776u, new Vector3(-138.7503f, 23.240587f, -83.878845f), 418); obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span29[num]; + ref QuestSequence reference25 = ref span8[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num2 = 0; - ref QuestStep reference26 = ref span33[num2]; + num2 = 3; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span9 = CollectionsMarshal.AsSpan(list33); + ref QuestStep reference26 = ref span9[0]; QuestStep obj26 = new QuestStep(EInteractionType.Action, 1014778u, new Vector3(-160.35712f, 26.378231f, -88.9754f), 418) { Action = EAction.SlugShot }; - 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); + 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); obj26.CompletionQuestVariablesFlags = list34; reference26 = obj26; - num2++; - ref QuestStep reference27 = ref span33[num2]; + ref QuestStep reference27 = ref span9[1]; QuestStep obj27 = new QuestStep(EInteractionType.Action, 1014779u, new Vector3(-94.31604f, 19.008303f, -16.494995f), 418) { Action = EAction.SlugShot @@ -132976,49 +110482,35 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - 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); + 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); obj27.CompletionQuestVariablesFlags = list35; reference27 = obj27; - num2++; - ref QuestStep reference28 = ref span33[num2]; + ref QuestStep reference28 = ref span9[2]; QuestStep obj28 = new QuestStep(EInteractionType.Action, 1014777u, new Vector3(-133.83691f, 18.94346f, -12.100403f), 418) { Action = EAction.SlugShot }; - 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); + 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); obj28.CompletionQuestVariablesFlags = list36; reference28 = obj28; obj25.Steps = list33; reference25 = obj25; - num++; - ref QuestSequence reference29 = ref span29[num]; + ref QuestSequence reference29 = ref span8[4]; QuestSequence obj29 = new QuestSequence { Sequence = 4 @@ -133026,27 +110518,21 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj29.Steps = list37; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span29[num]; + ref QuestSequence reference30 = ref span8[5]; QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj30.Steps = list38; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span29[num]; + ref QuestSequence reference31 = ref span8[6]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -133054,9 +110540,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { NextQuestId = new QuestId(1704) }; @@ -133069,26 +110553,21 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot5.Author = list40; - index = 5; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference32 = ref span41[num]; + num = 5; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span13 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference32 = ref span13[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133106,8 +110585,7 @@ public static class AssemblyQuestLoader }; obj32.Steps = list42; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span13[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -133115,31 +110593,25 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1014784u, new Vector3(224.29236f, 302f, -276.84448f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj33.Steps = list43; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span41[num]; + ref QuestSequence reference34 = ref span13[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj34.Steps = list44; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span41[num]; + ref QuestSequence reference35 = ref span13[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -133147,26 +110619,21 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Interact, 1014788u, new Vector3(222.06445f, 302f, -189.01355f), 155) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1014788u, new Vector3(222.06445f, 302f, -189.01355f), 155) { StopDistance = 5f }; obj35.Steps = list45; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span41[num]; + ref QuestSequence reference36 = ref span13[4]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133185,16 +110652,13 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "liza"; + CollectionsMarshal.AsSpan(list47)[0] = "liza"; questRoot6.Author = list47; - index = 4; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference37 = ref span48[num]; + num = 4; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span14 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference37 = ref span14[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -133202,9 +110666,7 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133222,22 +110684,18 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span48[num]; + ref QuestSequence reference38 = ref span14[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj38.Steps = list50; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span48[num]; + ref QuestSequence reference39 = ref span14[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -133245,9 +110703,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1014795u, new Vector3(-18.265076f, 16.009666f, -7.5532227f), 419) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014795u, new Vector3(-18.265076f, 16.009666f, -7.5532227f), 419) { AethernetShortcut = new AethernetShortcut { @@ -133257,18 +110713,15 @@ public static class AssemblyQuestLoader }; obj39.Steps = list51; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span48[num]; + ref QuestSequence reference40 = ref span14[3]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -133286,16 +110739,13 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "liza"; + CollectionsMarshal.AsSpan(list53)[0] = "liza"; questRoot7.Author = list53; - index = 7; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference41 = ref span54[num]; + num = 7; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span15 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference41 = ref span15[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -133303,9 +110753,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -133324,18 +110772,16 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span54[num]; + ref QuestSequence reference42 = ref span15[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list56 = new List(index2); - CollectionsMarshal.SetCount(list56, index2); - Span span56 = CollectionsMarshal.AsSpan(list56); - num2 = 0; - ref QuestStep reference43 = ref span56[num2]; + num2 = 6; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + Span span16 = CollectionsMarshal.AsSpan(list56); + ref QuestStep reference43 = ref span16[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-461.6901f, -4.0053887f, -292.6277f), 156) { StopDistance = 0.5f, @@ -133346,28 +110792,20 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = 201u; + CollectionsMarshal.AsSpan(list57)[0] = 201u; obj43.KillEnemyDataIds = list57; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list58; skipConditions.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -133376,8 +110814,7 @@ public static class AssemblyQuestLoader }; obj43.SkipConditions = skipConditions; reference43 = obj43; - num2++; - ref QuestStep reference44 = ref span56[num2]; + ref QuestStep reference44 = ref span16[1]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2006271u, new Vector3(-462.7909f, -2.7619019f, -289.4179f), 156) { StopDistance = 4.5f @@ -133385,88 +110822,64 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - 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); + 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); obj44.CompletionQuestVariablesFlags = list59; reference44 = obj44; - num2++; - ref QuestStep reference45 = ref span56[num2]; + ref QuestStep reference45 = ref span16[2]; QuestStep obj45 = new QuestStep(EInteractionType.Combat, null, new Vector3(-567.30835f, -3.9906769f, -334.9877f), 156) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj45.KillEnemyDataIds = list60; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list61; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference45 = obj45; - num2++; - ref QuestStep reference46 = ref span56[num2]; + ref QuestStep reference46 = ref span16[3]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 2006270u, new Vector3(-570.4891f, -2.8840332f, -334.76776f), 156) { StopDistance = 4.5f }; - 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); + 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); obj46.CompletionQuestVariablesFlags = list62; reference46 = obj46; - num2++; - ref QuestStep reference47 = ref span56[num2]; + ref QuestStep reference47 = ref span16[4]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-660.1279f, -2.9330442f, -366.86145f), 156) { Fly = true, @@ -133475,59 +110888,43 @@ public static class AssemblyQuestLoader num3 = 2; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - Span span63 = CollectionsMarshal.AsSpan(list63); - num4 = 0; - span63[num4] = 4472u; - num4++; - span63[num4] = 4473u; + Span span22 = CollectionsMarshal.AsSpan(list63); + span22[0] = 4472u; + span22[1] = 4473u; obj47.KillEnemyDataIds = list63; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list64; skipConditions3.StepIf = skipStepConditions3; obj47.SkipConditions = skipConditions3; reference47 = obj47; - num2++; - ref QuestStep reference48 = ref span56[num2]; + ref QuestStep reference48 = ref span16[5]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list65; reference48 = questStep; obj42.Steps = list56; reference42 = obj42; - num++; - ref QuestSequence reference49 = ref span54[num]; + ref QuestSequence reference49 = ref span15[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -133535,9 +110932,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -133549,18 +110944,16 @@ public static class AssemblyQuestLoader }; obj48.Steps = list66; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span54[num]; + ref QuestSequence reference50 = ref span15[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list67 = new List(index2); - CollectionsMarshal.SetCount(list67, index2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num2 = 0; - ref QuestStep reference51 = ref span67[num2]; + num2 = 3; + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + Span span25 = CollectionsMarshal.AsSpan(list67); + ref QuestStep reference51 = ref span25[0]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1014801u, new Vector3(16.220276f, -12.02089f, 49.454468f), 418) { AethernetShortcut = new AethernetShortcut @@ -133569,70 +110962,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - 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); + 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); obj50.CompletionQuestVariablesFlags = list68; reference51 = obj50; - num2++; - ref QuestStep reference52 = ref span67[num2]; + ref QuestStep reference52 = ref span25[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list69; reference52 = questStep2; - num2++; - ref QuestStep reference53 = ref span67[num2]; + ref QuestStep reference53 = ref span25[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1014799u, new Vector3(114.88513f, -19.787056f, 62.57715f), 418); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list70; reference53 = questStep3; obj49.Steps = list67; reference50 = obj49; - num++; - ref QuestSequence reference54 = ref span54[num]; + ref QuestSequence reference54 = ref span15[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -133640,9 +111012,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -133653,25 +111023,21 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference54 = obj51; - num++; - ref QuestSequence reference55 = ref span54[num]; + ref QuestSequence reference55 = ref span15[5]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj52.Steps = list72; reference55 = obj52; - num++; - ref QuestSequence reference56 = ref span54[num]; + ref QuestSequence reference56 = ref span15[6]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -133679,9 +111045,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - ref QuestStep reference57 = ref span73[index2]; + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list73)[0]; QuestStep obj54 = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -133694,9 +111058,7 @@ public static class AssemblyQuestLoader num3 = 1; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span74 = CollectionsMarshal.AsSpan(list74); - num4 = 0; - span74[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH520_01706_Q1_000_000"), @@ -133714,26 +111076,21 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "liza"; + CollectionsMarshal.AsSpan(list75)[0] = "liza"; questRoot8.Author = list75; - index = 7; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference58 = ref span76[num]; + num = 7; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span29 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference58 = ref span29[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133751,8 +111108,7 @@ public static class AssemblyQuestLoader }; obj55.Steps = list77; reference58 = obj55; - num++; - ref QuestSequence reference59 = ref span76[num]; + ref QuestSequence reference59 = ref span29[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -133760,26 +111116,21 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1014805u, new Vector3(482.96326f, 212.5841f, 724.7882f), 397) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1014805u, new Vector3(482.96326f, 212.5841f, 724.7882f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj56.Steps = list78; reference59 = obj56; - num++; - ref QuestSequence reference60 = ref span76[num]; + ref QuestSequence reference60 = ref span29[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133790,8 +111141,7 @@ public static class AssemblyQuestLoader }; obj57.Steps = list79; reference60 = obj57; - num++; - ref QuestSequence reference61 = ref span76[num]; + ref QuestSequence reference61 = ref span29[3]; QuestSequence obj58 = new QuestSequence { Sequence = 3 @@ -133799,35 +111149,29 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Action, 1014810u, new Vector3(117.17395f, -22.017334f, 32.791626f), 418) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Action, 1014810u, new Vector3(117.17395f, -22.017334f, 32.791626f), 418) { StopDistance = 10f, Action = EAction.SlugShot }; obj58.Steps = list80; reference61 = obj58; - num++; - ref QuestSequence reference62 = ref span76[num]; + ref QuestSequence reference62 = ref span29[4]; QuestSequence obj59 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj59.Steps = list81; reference62 = obj59; - num++; - ref QuestSequence reference63 = ref span76[num]; + ref QuestSequence reference63 = ref span29[5]; QuestSequence obj60 = new QuestSequence { Sequence = 5 @@ -133835,26 +111179,21 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1014816u, new Vector3(397.05493f, 161.18224f, -98.10034f), 397) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1014816u, new Vector3(397.05493f, 161.18224f, -98.10034f), 397) { StopDistance = 5f }; obj60.Steps = list82; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span76[num]; + ref QuestSequence reference64 = ref span29[6]; QuestSequence obj61 = 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, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133873,16 +111212,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "liza"; + CollectionsMarshal.AsSpan(list84)[0] = "liza"; questRoot9.Author = list84; - index = 8; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference65 = ref span85[num]; + num = 8; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span30 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference65 = ref span30[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -133890,9 +111226,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -133910,22 +111244,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list86; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span85[num]; + ref QuestSequence reference66 = ref span30[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj63.Steps = list87; reference66 = obj63; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span30[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -133933,9 +111263,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1014822u, new Vector3(95.20105f, 15.000009f, 25.345215f), 418) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1014822u, new Vector3(95.20105f, 15.000009f, 25.345215f), 418) { AethernetShortcut = new AethernetShortcut { @@ -133945,18 +111273,15 @@ public static class AssemblyQuestLoader }; obj64.Steps = list88; reference67 = obj64; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span30[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -133966,8 +111291,7 @@ public static class AssemblyQuestLoader }; obj65.Steps = list89; reference68 = obj65; - num++; - ref QuestSequence reference69 = ref span85[num]; + ref QuestSequence reference69 = ref span30[4]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -133975,46 +111299,38 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1014823u, new Vector3(490.37915f, -51.13661f, 29.587158f), 398) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1014823u, new Vector3(490.37915f, -51.13661f, 29.587158f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj66.Steps = list90; reference69 = obj66; - num++; - ref QuestSequence reference70 = ref span85[num]; + ref QuestSequence reference70 = ref span30[5]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference71 = ref span91[num2]; + num2 = 1; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list91)[0]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1014825u, new Vector3(576.4706f, -37.673805f, -134.78296f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + Span span31 = CollectionsMarshal.AsSpan(list92); + span31[0] = 5042u; + span31[1] = 5045u; obj68.KillEnemyDataIds = list92; reference71 = obj68; obj67.Steps = list91; reference70 = obj67; - num++; - ref QuestSequence reference72 = ref span85[num]; + ref QuestSequence reference72 = ref span30[6]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -134022,26 +111338,21 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1014829u, new Vector3(578.5762f, -37.88608f, -132.55518f), 398) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1014829u, new Vector3(578.5762f, -37.88608f, -132.55518f), 398) { StopDistance = 7f }; obj69.Steps = list93; reference72 = obj69; - num++; - ref QuestSequence reference73 = ref span85[num]; + ref QuestSequence reference73 = ref span30[7]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -134060,16 +111371,13 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list95)[0] = "JerryWester"; questRoot10.Author = list95; - index = 7; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference74 = ref span96[num]; + num = 7; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span32 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference74 = ref span32[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -134077,9 +111385,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007753u, new Vector3(17.990356f, 20.385572f, -665.79694f), 156) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007753u, new Vector3(17.990356f, 20.385572f, -665.79694f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -134092,27 +111398,23 @@ public static class AssemblyQuestLoader }; obj71.Steps = list97; reference74 = obj71; - num++; - ref QuestSequence reference75 = ref span96[num]; + ref QuestSequence reference75 = ref span32[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span98[num2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + span33[1] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj72.Steps = list98; reference75 = obj72; - num++; - ref QuestSequence reference76 = ref span96[num]; + ref QuestSequence reference76 = ref span32[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -134120,23 +111422,19 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj73.Steps = list99; reference76 = obj73; - num++; - ref QuestSequence reference77 = ref span96[num]; + ref QuestSequence reference77 = ref span32[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - index2 = 10; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference78 = ref span100[num2]; + num2 = 10; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span34 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference78 = ref span34[0]; QuestStep obj75 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(287.2875f, 41.545933f, -200.75758f), 139) { Fly = true, @@ -134147,53 +111445,39 @@ public static class AssemblyQuestLoader num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list101; skipConditions4.StepIf = skipStepConditions4; obj75.SkipConditions = skipConditions4; reference78 = obj75; - num2++; - ref QuestStep reference79 = ref span100[num2]; + ref QuestStep reference79 = ref span34[1]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list102; skipConditions5.StepIf = skipStepConditions5; obj76.SkipConditions = skipConditions5; reference79 = obj76; - num2++; - ref QuestStep reference80 = ref span100[num2]; + ref QuestStep reference80 = ref span34[2]; QuestStep obj77 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.35803f, 64.464615f, -217.34372f), 180) { Fly = true @@ -134203,53 +111487,39 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list103; skipConditions6.StepIf = skipStepConditions6; obj77.SkipConditions = skipConditions6; reference80 = obj77; - num2++; - ref QuestStep reference81 = ref span100[num2]; + ref QuestStep reference81 = ref span34[3]; QuestStep obj78 = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 180) { Aetheryte = EAetheryteLocation.OuterLaNosceaCampOverlook }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list104; skipConditions7.StepIf = skipStepConditions7; obj78.SkipConditions = skipConditions7; reference81 = obj78; - num2++; - ref QuestStep reference82 = ref span100[num2]; + ref QuestStep reference82 = ref span34[4]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.39681f, 58.74831f, -517.9883f), 180) { Fly = true @@ -134259,109 +111529,79 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list105; skipConditions8.StepIf = skipStepConditions8; obj79.SkipConditions = skipConditions8; reference82 = obj79; - num2++; - ref QuestStep reference83 = ref span100[num2]; + ref QuestStep reference83 = ref span34[5]; 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(); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list106; skipConditions9.StepIf = skipStepConditions9; obj80.SkipConditions = skipConditions9; reference83 = obj80; - num2++; - ref QuestStep reference84 = ref span100[num2]; + ref QuestStep reference84 = ref span34[6]; 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 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list107; skipConditions10.StepIf = skipStepConditions10; questStep4.SkipConditions = skipConditions10; reference84 = questStep4; - num2++; - ref QuestStep reference85 = ref span100[num2]; + ref QuestStep reference85 = ref span34[7]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2000075u, new Vector3(102.15906f, 21.560913f, -632.8679f), 180) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list108 = new List(num4); - CollectionsMarshal.SetCount(list108, num4); - Span span108 = CollectionsMarshal.AsSpan(list108); - num3 = 0; - span108[num3] = 9487u; + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = 9487u; obj81.KillEnemyDataIds = list108; num3 = 6; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - 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); + 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); obj81.CompletionQuestVariablesFlags = list109; reference85 = obj81; - num2++; - ref QuestStep reference86 = ref span100[num2]; + ref QuestStep reference86 = ref span34[8]; QuestStep obj82 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-487.1432f, -32.409756f, -369.94928f), 138) { Fly = true, @@ -134369,28 +111609,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list110; skipConditions11.StepIf = skipStepConditions11; obj82.SkipConditions = skipConditions11; reference86 = obj82; - num2++; - ref QuestStep reference87 = ref span100[num2]; + ref QuestStep reference87 = ref span34[9]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, 2000076u, new Vector3(-486.86963f, -32.455933f, -368.8258f), 138) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -134398,32 +111631,23 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num4 = 0; - span111[num4] = 9488u; + CollectionsMarshal.AsSpan(list111)[0] = 9488u; obj83.KillEnemyDataIds = list111; - 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); + 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); obj83.CompletionQuestVariablesFlags = list112; reference87 = obj83; obj74.Steps = list100; reference77 = obj74; - num++; - ref QuestSequence reference88 = ref span96[num]; + ref QuestSequence reference88 = ref span32[4]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -134431,40 +111655,34 @@ public static class AssemblyQuestLoader num2 = 2; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.57513f, -5.352314f, -466.78467f), 156) + Span span45 = CollectionsMarshal.AsSpan(list113); + span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.57513f, -5.352314f, -466.78467f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span113[index2] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); + span45[1] = new QuestStep(EInteractionType.Interact, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156); obj84.Steps = list113; reference88 = obj84; - num++; - ref QuestSequence reference89 = ref span96[num]; + ref QuestSequence reference89 = ref span32[5]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - num2++; - span114[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.8795898f, 38.80212f, 0.40251642f), 146) + span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(3.8795898f, 38.80212f, 0.40251642f), 146) { Fly = true }; - num2++; - ref QuestStep reference90 = ref span114[num2]; + ref QuestStep reference90 = ref span46[2]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, 2000077u, new Vector3(233.3562f, 7.9804688f, -22.720703f), 146) { DisableNavmesh = true, @@ -134474,30 +111692,21 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span115 = CollectionsMarshal.AsSpan(list115); - num4 = 0; - span115[num4] = 9489u; + CollectionsMarshal.AsSpan(list115)[0] = 9489u; obj86.KillEnemyDataIds = list115; - 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); + 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); obj86.CompletionQuestVariablesFlags = list116; reference90 = obj86; - num2++; - ref QuestStep reference91 = ref span114[num2]; + ref QuestStep reference91 = ref span46[3]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2000078u, new Vector3(613.5499f, 301.8081f, -101.42676f), 155) { Fly = true, @@ -134507,32 +111716,23 @@ public static class AssemblyQuestLoader num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span117 = CollectionsMarshal.AsSpan(list117); - num4 = 0; - span117[num4] = 9490u; + CollectionsMarshal.AsSpan(list117)[0] = 9490u; obj87.KillEnemyDataIds = list117; - 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); + 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); obj87.CompletionQuestVariablesFlags = list118; reference91 = obj87; obj85.Steps = list114; reference89 = obj85; - num++; - ref QuestSequence reference92 = ref span96[num]; + ref QuestSequence reference92 = ref span32[6]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue @@ -134540,15 +111740,13 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.49927f, -5.364953f, -467.05328f), 156) + Span span49 = CollectionsMarshal.AsSpan(list119); + span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(446.49927f, -5.364953f, -467.05328f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) + span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1006725u, new Vector3(446.82983f, -5.306207f, -465.72064f), 156) { NextQuestId = new QuestId(1200) }; @@ -134561,26 +111759,21 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "liza"; + CollectionsMarshal.AsSpan(list120)[0] = "liza"; questRoot11.Author = list120; - index = 4; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference93 = ref span121[num]; + num = 4; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span50 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference93 = ref span50[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -134598,8 +111791,7 @@ public static class AssemblyQuestLoader }; obj89.Steps = list122; reference93 = obj89; - num++; - ref QuestSequence reference94 = ref span121[num]; + ref QuestSequence reference94 = ref span50[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -134607,23 +111799,19 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj90.Steps = list123; reference94 = obj90; - num++; - ref QuestSequence reference95 = ref span121[num]; + ref QuestSequence reference95 = ref span50[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list124 = new List(index2); - CollectionsMarshal.SetCount(list124, index2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num2 = 0; - ref QuestStep reference96 = ref span124[num2]; + num2 = 4; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + Span span51 = CollectionsMarshal.AsSpan(list124); + ref QuestStep reference96 = ref span51[0]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(306.3128f, 70.876f, -411.73788f), 401) { Fly = true, @@ -134633,114 +111821,82 @@ public static class AssemblyQuestLoader num3 = 1; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span125 = CollectionsMarshal.AsSpan(list125); - num4 = 0; - span125[num4] = 4484u; + CollectionsMarshal.AsSpan(list125)[0] = 4484u; obj92.KillEnemyDataIds = list125; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - 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); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list126; skipConditions12.StepIf = skipStepConditions12; obj92.SkipConditions = skipConditions12; reference96 = obj92; - num2++; - ref QuestStep reference97 = ref span124[num2]; + ref QuestStep reference97 = ref span51[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list127; reference97 = questStep5; - num2++; - ref QuestStep reference98 = ref span124[num2]; + ref QuestStep reference98 = ref span51[2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.58212f, 71.00385f, -313.4424f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = 4617u; + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = 4617u; obj93.KillEnemyDataIds = list128; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - 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); + 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); skipStepConditions13.CompletionQuestVariablesFlags = list129; skipConditions13.StepIf = skipStepConditions13; obj93.SkipConditions = skipConditions13; reference98 = obj93; - num2++; - ref QuestStep reference99 = ref span124[num2]; + ref QuestStep reference99 = ref span51[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006275u, new Vector3(384.02368f, 71.39697f, -311.90973f), 401); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list130; reference99 = questStep6; obj91.Steps = list124; reference95 = obj91; - num++; - ref QuestSequence reference100 = ref span121[num]; + ref QuestSequence reference100 = ref span50[3]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -134748,9 +111904,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -134769,26 +111923,21 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot12.Author = list132; - index = 4; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference101 = ref span133[num]; + num = 4; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span56 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference101 = ref span56[0]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -134806,8 +111955,7 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference101 = obj95; - num++; - ref QuestSequence reference102 = ref span133[num]; + ref QuestSequence reference102 = ref span56[1]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -134815,9 +111963,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1014830u, new Vector3(74.81494f, 10.089107f, -111.680786f), 419) { AethernetShortcut = new AethernetShortcut { @@ -134827,25 +111973,21 @@ public static class AssemblyQuestLoader }; obj96.Steps = list135; reference102 = obj96; - num++; - ref QuestSequence reference103 = ref span133[num]; + ref QuestSequence reference103 = ref span56[2]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Action = EAction.SlugShot }; obj97.Steps = list136; reference103 = obj97; - num++; - ref QuestSequence reference104 = ref span133[num]; + ref QuestSequence reference104 = ref span56[3]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -134853,9 +111995,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -134873,26 +112013,21 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "liza"; + CollectionsMarshal.AsSpan(list138)[0] = "liza"; questRoot13.Author = list138; - index = 5; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference105 = ref span139[num]; + num = 5; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span57 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference105 = ref span57[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -134910,8 +112045,7 @@ public static class AssemblyQuestLoader }; obj99.Steps = list140; reference105 = obj99; - num++; - ref QuestSequence reference106 = ref span139[num]; + ref QuestSequence reference106 = ref span57[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -134919,51 +112053,36 @@ public static class AssemblyQuestLoader num2 = 4; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - ref QuestStep reference107 = ref span141[index2]; + Span span58 = CollectionsMarshal.AsSpan(list141); + ref QuestStep reference107 = ref span58[0]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list142; reference107 = questStep7; - index2++; - ref QuestStep reference108 = ref span141[index2]; + ref QuestStep reference108 = ref span58[1]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1014837u, new Vector3(-135.51538f, 5.467082f, 39.93274f), 418); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list143; reference108 = questStep8; - index2++; - ref QuestStep reference109 = ref span141[index2]; + ref QuestStep reference109 = ref span58[2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1014836u, new Vector3(-20.004639f, 1.5791271f, 90.37915f), 418) { AethernetShortcut = new AethernetShortcut @@ -134975,23 +112094,16 @@ public static class AssemblyQuestLoader num3 = 6; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - 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); + 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); obj101.CompletionQuestVariablesFlags = list144; reference109 = obj101; - index2++; - ref QuestStep reference110 = ref span141[index2]; + ref QuestStep reference110 = ref span58[3]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1014834u, new Vector3(56.839844f, 24.071722f, -30.075562f), 418) { AethernetShortcut = new AethernetShortcut @@ -135000,38 +112112,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - 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); + 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); obj102.CompletionQuestVariablesFlags = list145; reference110 = obj102; obj100.Steps = list141; reference106 = obj100; - num++; - ref QuestSequence reference111 = ref span139[num]; + ref QuestSequence reference111 = ref span57[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -135042,8 +112145,7 @@ public static class AssemblyQuestLoader }; obj103.Steps = list146; reference111 = obj103; - num++; - ref QuestSequence reference112 = ref span139[num]; + ref QuestSequence reference112 = ref span57[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -135051,32 +112153,27 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(874.0602f, -3.0127013f, 353.70963f), 398) + Span span63 = CollectionsMarshal.AsSpan(list147); + span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(874.0602f, -3.0127013f, 353.70963f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - index2++; - span147[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014841u, new Vector3(-631.281f, 96.94948f, -461.63123f), 397) + span63[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014841u, new Vector3(-631.281f, 96.94948f, -461.63123f), 397) { Fly = true }; obj104.Steps = list147; reference112 = obj104; - num++; - ref QuestSequence reference113 = ref span139[num]; + ref QuestSequence reference113 = ref span57[4]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -135095,16 +112192,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "pot0to"; + CollectionsMarshal.AsSpan(list149)[0] = "pot0to"; questRoot14.Author = list149; - index = 9; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference114 = ref span150[num]; + num = 9; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span64 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference114 = ref span64[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -135112,9 +112206,7 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -135128,18 +112220,15 @@ public static class AssemblyQuestLoader }; obj106.Steps = list151; reference114 = obj106; - num++; - ref QuestSequence reference115 = ref span150[num]; + ref QuestSequence reference115 = ref span64[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -135157,8 +112246,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list152; reference115 = obj107; - num++; - ref QuestSequence reference116 = ref span150[num]; + ref QuestSequence reference116 = ref span64[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -135166,42 +112254,34 @@ public static class AssemblyQuestLoader num2 = 2; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - ref QuestStep reference117 = ref span153[index2]; + Span span65 = CollectionsMarshal.AsSpan(list153); + ref QuestStep reference117 = ref span65[0]; 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); - Span span154 = CollectionsMarshal.AsSpan(list154); - num4 = 0; - span154[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD501_01713_Q1_000_000") }; questStep9.DialogueChoices = list154; reference117 = questStep9; - index2++; - span153[index2] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); + span65[1] = new QuestStep(EInteractionType.Interact, 1014203u, new Vector3(1.2359009f, 0.5000253f, -1.083435f), 204); obj108.Steps = list153; reference116 = obj108; - num++; - ref QuestSequence reference118 = ref span150[num]; + ref QuestSequence reference118 = ref span64[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj109.Steps = list155; reference118 = obj109; - num++; - ref QuestSequence reference119 = ref span150[num]; + ref QuestSequence reference119 = ref span64[4]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -135209,41 +112289,33 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - ref QuestStep reference120 = ref span156[index2]; + ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list156)[0]; QuestStep obj111 = new QuestStep(EInteractionType.Combat, 1014207u, new Vector3(28.854736f, 6.655561f, 421.46936f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list157 = new List(num4); - CollectionsMarshal.SetCount(list157, num4); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = 4684u; + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = 4684u; obj111.KillEnemyDataIds = list157; reference120 = obj111; obj110.Steps = list156; reference119 = obj110; - num++; - ref QuestSequence reference121 = ref span150[num]; + ref QuestSequence reference121 = ref span64[5]; QuestSequence obj112 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj112.Steps = list158; reference121 = obj112; - num++; - ref QuestSequence reference122 = ref span150[num]; + ref QuestSequence reference122 = ref span64[6]; QuestSequence obj113 = new QuestSequence { Sequence = 6 @@ -135251,26 +112323,21 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 1014204u, new Vector3(24.673828f, 6.386869f, 414.9386f), 152) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1014204u, new Vector3(24.673828f, 6.386869f, 414.9386f), 152) { StopDistance = 7f }; obj113.Steps = list159; reference122 = obj113; - num++; - ref QuestSequence reference123 = ref span150[num]; + ref QuestSequence reference123 = ref span64[7]; QuestSequence obj114 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -135288,8 +112355,7 @@ public static class AssemblyQuestLoader }; obj114.Steps = list160; reference123 = obj114; - num++; - ref QuestSequence reference124 = ref span150[num]; + ref QuestSequence reference124 = ref span64[8]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -135297,9 +112363,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014208u, new Vector3(-52.536804f, 8.059147f, 31.72351f), 418) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -135321,26 +112385,21 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "liza"; + CollectionsMarshal.AsSpan(list162)[0] = "liza"; questRoot15.Author = list162; - index = 6; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference125 = ref span163[num]; + num = 6; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span66 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference125 = ref span66[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -135354,8 +112413,7 @@ public static class AssemblyQuestLoader }; obj116.Steps = list164; reference125 = obj116; - num++; - ref QuestSequence reference126 = ref span163[num]; + ref QuestSequence reference126 = ref span66[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -135363,33 +112421,27 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1014215u, new Vector3(446.4026f, 212.53983f, 697.444f), 397) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1014215u, new Vector3(446.4026f, 212.53983f, 697.444f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj117.Steps = list165; reference126 = obj117; - num++; - ref QuestSequence reference127 = ref span163[num]; + ref QuestSequence reference127 = ref span66[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj118.Steps = list166; reference127 = obj118; - num++; - ref QuestSequence reference128 = ref span163[num]; + ref QuestSequence reference128 = ref span66[3]; QuestSequence obj119 = new QuestSequence { Sequence = 3 @@ -135397,9 +112449,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - ref QuestStep reference129 = ref span167[index2]; + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list167)[0]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, 2006300u, new Vector3(66.11731f, 103.86804f, -127.03143f), 397) { Fly = true, @@ -135408,32 +112458,26 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - num4 = 0; - span168[num4] = 4680u; + CollectionsMarshal.AsSpan(list168)[0] = 4680u; obj120.KillEnemyDataIds = list168; reference129 = obj120; obj119.Steps = list167; reference128 = obj119; - num++; - ref QuestSequence reference130 = ref span163[num]; + ref QuestSequence reference130 = ref span66[4]; QuestSequence obj121 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj121.Steps = list169; reference130 = obj121; - num++; - ref QuestSequence reference131 = ref span163[num]; + ref QuestSequence reference131 = ref span66[5]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -135441,9 +112485,7 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014216u, new Vector3(445.365f, 212.53983f, 699.7938f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(1715) @@ -135457,26 +112499,21 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot16.Author = list171; - index = 9; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference132 = ref span172[num]; + num = 9; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span67 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference132 = ref span67[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -135489,8 +112526,7 @@ public static class AssemblyQuestLoader }; obj123.Steps = list173; reference132 = obj123; - num++; - ref QuestSequence reference133 = ref span172[num]; + ref QuestSequence reference133 = ref span67[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -135498,33 +112534,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1014227u, new Vector3(-294.27026f, 125.76025f, -15.152283f), 397) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1014227u, new Vector3(-294.27026f, 125.76025f, -15.152283f), 397) { Fly = true }; obj124.Steps = list174; reference133 = obj124; - num++; - ref QuestSequence reference134 = ref span172[num]; + ref QuestSequence reference134 = ref span67[2]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj125.Steps = list175; reference134 = obj125; - num++; - ref QuestSequence reference135 = ref span172[num]; + ref QuestSequence reference135 = ref span67[3]; QuestSequence obj126 = new QuestSequence { Sequence = 3 @@ -135532,43 +112562,35 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1014246u, new Vector3(-429.8009f, 92.59371f, -509.4225f), 397) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1014246u, new Vector3(-429.8009f, 92.59371f, -509.4225f), 397) { Fly = true }; obj126.Steps = list176; reference135 = obj126; - num++; - ref QuestSequence reference136 = ref span172[num]; + ref QuestSequence reference136 = ref span67[4]; QuestSequence obj127 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list177 = new List(index2); - CollectionsMarshal.SetCount(list177, index2); - Span span177 = CollectionsMarshal.AsSpan(list177); - num2 = 0; - ref QuestStep reference137 = ref span177[num2]; + num2 = 1; + List list177 = new List(num2); + CollectionsMarshal.SetCount(list177, num2); + ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list177)[0]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2006301u, new Vector3(-778.0118f, 112.01648f, -580.52954f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list178 = new List(num4); - CollectionsMarshal.SetCount(list178, num4); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - span178[num3] = 4487u; + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + CollectionsMarshal.AsSpan(list178)[0] = 4487u; obj128.KillEnemyDataIds = list178; reference137 = obj128; obj127.Steps = list177; reference136 = obj127; - num++; - ref QuestSequence reference138 = ref span172[num]; + ref QuestSequence reference138 = ref span67[5]; QuestSequence obj129 = new QuestSequence { Sequence = 5 @@ -135576,34 +112598,28 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397) { Fly = true }; obj129.Steps = list179; reference138 = obj129; - num++; - ref QuestSequence reference139 = ref span172[num]; + ref QuestSequence reference139 = ref span67[6]; QuestSequence obj130 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 4.5f, Emote = EEmote.Salute }; obj130.Steps = list180; reference139 = obj130; - num++; - ref QuestSequence reference140 = ref span172[num]; + ref QuestSequence reference140 = ref span67[7]; QuestSequence obj131 = new QuestSequence { Sequence = 7 @@ -135611,23 +112627,18 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397); + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1014230u, new Vector3(-753.93304f, 103.917046f, -467.1855f), 397); obj131.Steps = list181; reference140 = obj131; - num++; - ref QuestSequence reference141 = ref span172[num]; + ref QuestSequence reference141 = ref span67[8]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1716) @@ -135641,16 +112652,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot17.Author = list183; - index = 4; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference142 = ref span184[num]; + num = 4; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span68 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference142 = ref span68[0]; QuestSequence obj133 = new QuestSequence { Sequence = 0 @@ -135658,9 +112666,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - ref QuestStep reference143 = ref span185[index2]; + ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list185)[0]; QuestStep obj134 = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { StopDistance = 7f, @@ -135677,9 +112683,7 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - num4 = 0; - span186[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD560_01716_Q1_000_000"), @@ -135689,25 +112693,21 @@ public static class AssemblyQuestLoader reference143 = obj134; obj133.Steps = list185; reference142 = obj133; - num++; - ref QuestSequence reference144 = ref span184[num]; + ref QuestSequence reference144 = ref span68[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj135.Steps = list187; reference144 = obj135; - num++; - ref QuestSequence reference145 = ref span184[num]; + ref QuestSequence reference145 = ref span68[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -135715,26 +112715,21 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 1014249u, new Vector3(186.08374f, -119.0711f, 480.4912f), 398) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1014249u, new Vector3(186.08374f, -119.0711f, 480.4912f), 398) { StopDistance = 5f }; obj136.Steps = list188; reference145 = obj136; - num++; - ref QuestSequence reference146 = ref span184[num]; + ref QuestSequence reference146 = ref span68[3]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -135747,16 +112742,13 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "liza"; + CollectionsMarshal.AsSpan(list190)[0] = "liza"; questRoot18.Author = list190; - index = 11; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference147 = ref span191[num]; + num = 11; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span69 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference147 = ref span69[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -135764,9 +112756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014232u, new Vector3(544.97595f, -51.27571f, 65.384766f), 398) { StopDistance = 7f, Fly = true, @@ -135781,28 +112771,23 @@ public static class AssemblyQuestLoader }; obj138.Steps = list192; reference147 = obj138; - num++; - ref QuestSequence reference148 = ref span191[num]; + ref QuestSequence reference148 = ref span69[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list193 = new List(index2); - CollectionsMarshal.SetCount(list193, index2); - Span span193 = CollectionsMarshal.AsSpan(list193); - num2 = 0; - ref QuestStep reference149 = ref span193[num2]; + num2 = 1; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list193)[0]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1014270u, new Vector3(457.1145f, -51.15781f, 101.48767f), 398) { Fly = true }; - num4 = 1; - List list194 = new List(num4); - CollectionsMarshal.SetCount(list194, num4); - Span span194 = CollectionsMarshal.AsSpan(list194); - num3 = 0; - span194[num3] = new DialogueChoice + num3 = 1; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + CollectionsMarshal.AsSpan(list194)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD580_01717_Q1_000_000"), @@ -135812,8 +112797,7 @@ public static class AssemblyQuestLoader reference149 = obj140; obj139.Steps = list193; reference148 = obj139; - num++; - ref QuestSequence reference150 = ref span191[num]; + ref QuestSequence reference150 = ref span69[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -135821,35 +112805,29 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1014262u, new Vector3(-223.65149f, -30.093239f, 78.72119f), 398) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1014262u, new Vector3(-223.65149f, -30.093239f, 78.72119f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj141.Steps = list195; reference150 = obj141; - num++; - ref QuestSequence reference151 = ref span191[num]; + ref QuestSequence reference151 = ref span69[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj142.Steps = list196; reference151 = obj142; - num++; - ref QuestSequence reference152 = ref span191[num]; + ref QuestSequence reference152 = ref span69[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 @@ -135857,38 +112835,32 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span70 = CollectionsMarshal.AsSpan(list197); + span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + span70[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f }; obj143.Steps = list197; reference152 = obj143; - num++; - ref QuestSequence reference153 = ref span191[num]; + ref QuestSequence reference153 = ref span69[5]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj144.Steps = list198; reference153 = obj144; - num++; - ref QuestSequence reference154 = ref span191[num]; + ref QuestSequence reference154 = ref span69[6]; QuestSequence obj145 = new QuestSequence { Sequence = 6 @@ -135896,9 +112868,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - ref QuestStep reference155 = ref span199[index2]; + ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list199)[0]; QuestStep obj146 = new QuestStep(EInteractionType.Combat, 2006302u, new Vector3(269.94727f, -40.299072f, 398.61133f), 400) { Fly = true, @@ -135907,42 +112877,34 @@ public static class AssemblyQuestLoader num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span200 = CollectionsMarshal.AsSpan(list200); - num4 = 0; - span200[num4] = 4681u; + CollectionsMarshal.AsSpan(list200)[0] = 4681u; obj146.KillEnemyDataIds = list200; reference155 = obj146; obj145.Steps = list199; reference154 = obj145; - num++; - ref QuestSequence reference156 = ref span191[num]; + ref QuestSequence reference156 = ref span69[7]; QuestSequence obj147 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list201 = new List(index2); - CollectionsMarshal.SetCount(list201, index2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num2 = 0; - ref QuestStep reference157 = ref span201[num2]; + num2 = 1; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list201)[0]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2006303u, new Vector3(342.15295f, -40.024475f, 288.56335f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list202 = new List(num4); - CollectionsMarshal.SetCount(list202, num4); - Span span202 = CollectionsMarshal.AsSpan(list202); - num3 = 0; - span202[num3] = 4682u; + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = 4682u; obj148.KillEnemyDataIds = list202; reference157 = obj148; obj147.Steps = list201; reference156 = obj147; - num++; - ref QuestSequence reference158 = ref span191[num]; + ref QuestSequence reference158 = ref span69[8]; QuestSequence obj149 = new QuestSequence { Sequence = 8 @@ -135950,9 +112912,7 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - ref QuestStep reference159 = ref span203[index2]; + ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list203)[0]; QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2006304u, new Vector3(417.07483f, -34.561768f, 222.9801f), 400) { Fly = true, @@ -135961,32 +112921,26 @@ public static class AssemblyQuestLoader num3 = 1; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - Span span204 = CollectionsMarshal.AsSpan(list204); - num4 = 0; - span204[num4] = 4483u; + CollectionsMarshal.AsSpan(list204)[0] = 4483u; obj150.KillEnemyDataIds = list204; reference159 = obj150; obj149.Steps = list203; reference158 = obj149; - num++; - ref QuestSequence reference160 = ref span191[num]; + ref QuestSequence reference160 = ref span69[9]; QuestSequence obj151 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true }; obj151.Steps = list205; reference160 = obj151; - num++; - ref QuestSequence reference161 = ref span191[num]; + ref QuestSequence reference161 = ref span69[10]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -135994,15 +112948,13 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span71 = CollectionsMarshal.AsSpan(list206); + span71[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - index2++; - span206[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f, NextQuestId = new QuestId(1718) @@ -136016,26 +112968,21 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot19.Author = list207; - index = 7; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference162 = ref span208[num]; + num = 7; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span72 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference162 = ref span72[0]; QuestSequence obj153 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list209)[0]; QuestStep obj154 = new QuestStep(EInteractionType.AcceptQuest, 1014265u, new Vector3(377.37073f, -69.42938f, 695.6129f), 400) { StopDistance = 7f, @@ -136049,12 +112996,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list210 = new List(num4); - CollectionsMarshal.SetCount(list210, num4); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = new DialogueChoice + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q1_000_000"), @@ -136064,8 +113009,7 @@ public static class AssemblyQuestLoader reference163 = obj154; obj153.Steps = list209; reference162 = obj153; - num++; - ref QuestSequence reference164 = ref span208[num]; + ref QuestSequence reference164 = ref span72[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -136073,26 +113017,21 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1014277u, new Vector3(485.00793f, -9.204832f, 742.6719f), 400) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1014277u, new Vector3(485.00793f, -9.204832f, 742.6719f), 400) { Fly = true }; obj155.Steps = list211; reference164 = obj155; - num++; - ref QuestSequence reference165 = ref span208[num]; + ref QuestSequence reference165 = ref span72[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list212 = new List(index2); - CollectionsMarshal.SetCount(list212, index2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - ref QuestStep reference166 = ref span212[num2]; + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list212)[0]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1014273u, new Vector3(28.976807f, -18.800003f, 96.69641f), 132) { StopDistance = 5f, @@ -136106,9 +113045,7 @@ public static class AssemblyQuestLoader num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span213 = CollectionsMarshal.AsSpan(list213); - num4 = 0; - span213[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q2_000_000") @@ -136117,8 +113054,7 @@ public static class AssemblyQuestLoader reference166 = obj157; obj156.Steps = list212; reference165 = obj156; - num++; - ref QuestSequence reference167 = ref span208[num]; + ref QuestSequence reference167 = ref span72[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -136126,33 +113062,27 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1014274u, new Vector3(-449.9428f, -4.031367f, -716.4264f), 401) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1014274u, new Vector3(-449.9428f, -4.031367f, -716.4264f), 401) { StopDistance = 5f }; obj158.Steps = list214; reference167 = obj158; - num++; - ref QuestSequence reference168 = ref span208[num]; + ref QuestSequence reference168 = ref span72[4]; QuestSequence obj159 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj159.Steps = list215; reference168 = obj159; - num++; - ref QuestSequence reference169 = ref span208[num]; + ref QuestSequence reference169 = ref span72[5]; QuestSequence obj160 = new QuestSequence { Sequence = 5 @@ -136160,19 +113090,15 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference170 = ref span216[index2]; + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list216)[0]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1014276u, new Vector3(-451.89594f, -4.8975077f, -713.80176f), 401) { Fly = true }; - num4 = 1; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span217 = CollectionsMarshal.AsSpan(list217); - num3 = 0; - span217[num3] = new DialogueChoice + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBBRD600_01718_Q3_000_000") @@ -136181,18 +113107,15 @@ public static class AssemblyQuestLoader reference170 = obj161; obj160.Steps = list216; reference169 = obj160; - num++; - ref QuestSequence reference171 = ref span208[num]; + ref QuestSequence reference171 = ref span72[6]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -136207,16 +113130,13 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list219)[0] = "Cacahuetes"; questRoot20.Author = list219; - index = 8; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference172 = ref span220[num]; + num = 8; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span73 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference172 = ref span73[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -136224,9 +113144,8 @@ public static class AssemblyQuestLoader num2 = 3; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span74 = CollectionsMarshal.AsSpan(list221); + span74[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -136253,8 +113172,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span221[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span74[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -136265,30 +113183,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span74[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj163.Steps = list221; reference172 = obj163; - num++; - ref QuestSequence reference173 = ref span220[num]; + ref QuestSequence reference173 = ref span73[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj164.Steps = list222; reference173 = obj164; - num++; - ref QuestSequence reference174 = ref span220[num]; + ref QuestSequence reference174 = ref span73[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -136296,9 +113209,8 @@ public static class AssemblyQuestLoader num2 = 3; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - ref QuestStep reference175 = ref span223[index2]; + Span span75 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference175 = ref span75[0]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1006245u, new Vector3(4.9591064f, -46.518013f, 248.49304f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat @@ -136306,113 +113218,81 @@ public static class AssemblyQuestLoader num3 = 6; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - 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); + 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); obj166.CompletionQuestVariablesFlags = list224; reference175 = obj166; - index2++; - ref QuestStep reference176 = ref span223[index2]; + ref QuestStep reference176 = ref span75[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1007092u, new Vector3(-59.31189f, -40.90982f, 232.62378f), 154); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list225; reference176 = questStep10; - index2++; - ref QuestStep reference177 = ref span223[index2]; + ref QuestStep reference177 = ref span75[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list226; reference177 = questStep11; obj165.Steps = list223; reference174 = obj165; - num++; - ref QuestSequence reference178 = ref span220[num]; + ref QuestSequence reference178 = ref span73[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list227 = new List(index2); - CollectionsMarshal.SetCount(list227, index2); - Span span227 = CollectionsMarshal.AsSpan(list227); - num2 = 0; - ref QuestStep reference179 = ref span227[num2]; + num2 = 2; + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + Span span79 = CollectionsMarshal.AsSpan(list227); + ref QuestStep reference179 = ref span79[0]; QuestStep obj168 = new QuestStep(EInteractionType.Combat, null, new Vector3(108.506836f, 7.167203f, -47.01306f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list228 = new List(num4); - CollectionsMarshal.SetCount(list228, num4); - Span span228 = CollectionsMarshal.AsSpan(list228); - num3 = 0; - span228[num3] = 4683u; + num3 = 1; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = 4683u; obj168.KillEnemyDataIds = list228; num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - 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; + 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; obj168.CompletionQuestVariablesFlags = list229; reference179 = obj168; - num2++; - span227[num2] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); + span79[1] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); obj167.Steps = list227; reference178 = obj167; - num++; - ref QuestSequence reference180 = ref span220[num]; + ref QuestSequence reference180 = ref span73[4]; QuestSequence obj169 = new QuestSequence { Sequence = 4 @@ -136420,31 +113300,25 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1013605u, new Vector3(108.506836f, 7.167203f, -47.01306f), 154); obj169.Steps = list230; reference180 = obj169; - num++; - ref QuestSequence reference181 = ref span220[num]; + ref QuestSequence reference181 = ref span73[5]; QuestSequence obj170 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj170.Steps = list231; reference181 = obj170; - num++; - ref QuestSequence reference182 = ref span220[num]; + ref QuestSequence reference182 = ref span73[6]; QuestSequence obj171 = new QuestSequence { Sequence = 6 @@ -136452,23 +113326,18 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1013608u, new Vector3(-314.9615f, 21.609262f, 182.8794f), 148); + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1013608u, new Vector3(-314.9615f, 21.609262f, 182.8794f), 148); obj171.Steps = list232; reference182 = obj171; - num++; - ref QuestSequence reference183 = ref span220[num]; + ref QuestSequence reference183 = ref span73[7]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, NextQuestId = new QuestId(1720) @@ -136482,16 +113351,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list234)[0] = "Cacahuetes"; questRoot21.Author = list234; - index = 5; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference184 = ref span235[num]; + num = 5; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span81 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference184 = ref span81[0]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -136499,9 +113365,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013609u, new Vector3(-44.480103f, -40.949986f, 187.7622f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -136514,26 +113378,22 @@ public static class AssemblyQuestLoader }; obj173.Steps = list236; reference184 = obj173; - num++; - ref QuestSequence reference185 = ref span235[num]; + ref QuestSequence reference185 = ref span81[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj174.Steps = list237; reference185 = obj174; - num++; - ref QuestSequence reference186 = ref span235[num]; + ref QuestSequence reference186 = ref span81[2]; QuestSequence obj175 = new QuestSequence { Sequence = 2 @@ -136541,30 +113401,24 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013663u, new Vector3(161.91345f, 275.37952f, 16.403442f), 155) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013663u, new Vector3(161.91345f, 275.37952f, 16.403442f), 155) { Fly = true }; obj175.Steps = list238; reference186 = obj175; - num++; - ref QuestSequence reference187 = ref span235[num]; + ref QuestSequence reference187 = ref span81[3]; QuestSequence obj176 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj176.Steps = list239; reference187 = obj176; - num++; - ref QuestSequence reference188 = ref span235[num]; + ref QuestSequence reference188 = ref span81[4]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -136572,9 +113426,7 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013610u, new Vector3(209.21643f, 302f, -204.85242f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, NextQuestId = new QuestId(1721) @@ -136588,26 +113440,21 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list241)[0] = "Cacahuetes"; questRoot22.Author = list241; - index = 8; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference189 = ref span242[num]; + num = 8; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span82 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference189 = ref span82[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -136620,8 +113467,7 @@ public static class AssemblyQuestLoader }; obj178.Steps = list243; reference189 = obj178; - num++; - ref QuestSequence reference190 = ref span242[num]; + ref QuestSequence reference190 = ref span82[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -136629,70 +113475,52 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1013613u, new Vector3(479.91138f, 226.62401f, 817.0442f), 397) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1013613u, new Vector3(479.91138f, 226.62401f, 817.0442f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj179.Steps = list244; reference190 = obj179; - num++; - ref QuestSequence reference191 = ref span242[num]; + ref QuestSequence reference191 = ref span82[2]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list245 = new List(index2); - CollectionsMarshal.SetCount(list245, index2); - Span span245 = CollectionsMarshal.AsSpan(list245); - num2 = 0; - ref QuestStep reference192 = ref span245[num2]; + num2 = 2; + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + Span span83 = CollectionsMarshal.AsSpan(list245); + ref QuestStep reference192 = ref span83[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1011232u, new Vector3(506.8589f, 217.95148f, 792.4772f), 397); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list246; reference192 = questStep12; - num2++; - ref QuestStep reference193 = ref span245[num2]; + ref QuestStep reference193 = ref span83[1]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list247; reference193 = questStep13; obj180.Steps = list245; reference191 = obj180; - num++; - ref QuestSequence reference194 = ref span242[num]; + ref QuestSequence reference194 = ref span82[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -136700,30 +113528,24 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.Interact, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397); + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397); obj181.Steps = list248; reference194 = obj181; - num++; - ref QuestSequence reference195 = ref span242[num]; + ref QuestSequence reference195 = ref span82[4]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj182.Steps = list249; reference195 = obj182; - num++; - ref QuestSequence reference196 = ref span242[num]; + ref QuestSequence reference196 = ref span82[5]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -136731,62 +113553,48 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - ref QuestStep reference197 = ref span250[index2]; + Span span86 = CollectionsMarshal.AsSpan(list250); + ref QuestStep reference197 = ref span86[0]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list251 = new List(num4); - CollectionsMarshal.SetCount(list251, num4); - Span span251 = CollectionsMarshal.AsSpan(list251); - num3 = 0; - span251[num3] = 4677u; + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + CollectionsMarshal.AsSpan(list251)[0] = 4677u; obj184.KillEnemyDataIds = list251; num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - 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; + 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; obj184.CompletionQuestVariablesFlags = list252; reference197 = obj184; - index2++; - span250[index2] = new QuestStep(EInteractionType.Interact, 2005855u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); + span86[1] = new QuestStep(EInteractionType.Interact, 2005855u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); obj183.Steps = list250; reference196 = obj183; - num++; - ref QuestSequence reference198 = ref span242[num]; + ref QuestSequence reference198 = ref span82[6]; QuestSequence obj185 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj185.Steps = list253; reference198 = obj185; - num++; - ref QuestSequence reference199 = ref span242[num]; + ref QuestSequence reference199 = ref span82[7]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -136794,9 +113602,7 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013614u, new Vector3(463.5232f, 200.23772f, 651.911f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(1722) @@ -136810,26 +113616,21 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - Span span255 = CollectionsMarshal.AsSpan(list255); - index = 0; - span255[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list255)[0] = "Cacahuetes"; questRoot23.Author = list255; - index = 5; - List list256 = new List(index); - CollectionsMarshal.SetCount(list256, index); - Span span256 = CollectionsMarshal.AsSpan(list256); - num = 0; - ref QuestSequence reference200 = ref span256[num]; + num = 5; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span88 = CollectionsMarshal.AsSpan(list256); + ref QuestSequence reference200 = ref span88[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -136842,8 +113643,7 @@ public static class AssemblyQuestLoader }; obj187.Steps = list257; reference200 = obj187; - num++; - ref QuestSequence reference201 = ref span256[num]; + ref QuestSequence reference201 = ref span88[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -136851,34 +113651,28 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.Interact, 1013619u, new Vector3(-274.49457f, 125.33218f, -13.870483f), 397) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1013619u, new Vector3(-274.49457f, 125.33218f, -13.870483f), 397) { Fly = true }; obj188.Steps = list258; reference201 = obj188; - num++; - ref QuestSequence reference202 = ref span256[num]; + ref QuestSequence reference202 = ref span88[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, Action = EAction.Cure2 }; obj189.Steps = list259; reference202 = obj189; - num++; - ref QuestSequence reference203 = ref span256[num]; + ref QuestSequence reference203 = ref span88[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -136886,55 +113680,42 @@ public static class AssemblyQuestLoader num2 = 2; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - ref QuestStep reference204 = ref span260[index2]; + Span span89 = CollectionsMarshal.AsSpan(list260); + ref QuestStep reference204 = ref span89[0]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list261 = new List(num4); - CollectionsMarshal.SetCount(list261, num4); - Span span261 = CollectionsMarshal.AsSpan(list261); - num3 = 0; - span261[num3] = 4690u; + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + CollectionsMarshal.AsSpan(list261)[0] = 4690u; obj191.KillEnemyDataIds = list261; num3 = 6; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - 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; + 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; obj191.CompletionQuestVariablesFlags = list262; reference204 = obj191; - index2++; - span260[index2] = new QuestStep(EInteractionType.Interact, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); + span89[1] = new QuestStep(EInteractionType.Interact, 2005857u, new Vector3(-336.4157f, 89.00586f, -586.5721f), 397); obj190.Steps = list260; reference203 = obj190; - num++; - ref QuestSequence reference205 = ref span256[num]; + ref QuestSequence reference205 = ref span88[4]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, NextQuestId = new QuestId(1723) @@ -136948,16 +113729,13 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - Span span264 = CollectionsMarshal.AsSpan(list264); - index = 0; - span264[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list264)[0] = "Cacahuetes"; questRoot24.Author = list264; - index = 6; - List list265 = new List(index); - CollectionsMarshal.SetCount(list265, index); - Span span265 = CollectionsMarshal.AsSpan(list265); - num = 0; - ref QuestSequence reference206 = ref span265[num]; + num = 6; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + Span span91 = CollectionsMarshal.AsSpan(list265); + ref QuestSequence reference206 = ref span91[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -136965,9 +113743,7 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013623u, new Vector3(486.93054f, -51.1414f, 25.986084f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -136980,25 +113756,21 @@ public static class AssemblyQuestLoader }; obj193.Steps = list266; reference206 = obj193; - num++; - ref QuestSequence reference207 = ref span265[num]; + ref QuestSequence reference207 = ref span91[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj194.Steps = list267; reference207 = obj194; - num++; - ref QuestSequence reference208 = ref span265[num]; + ref QuestSequence reference208 = ref span91[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -137006,64 +113778,50 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - ref QuestStep reference209 = ref span268[index2]; + Span span92 = CollectionsMarshal.AsSpan(list268); + ref QuestStep reference209 = ref span92[0]; QuestStep obj196 = new QuestStep(EInteractionType.Combat, null, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list269 = new List(num3); + CollectionsMarshal.SetCount(list269, num3); + Span span93 = CollectionsMarshal.AsSpan(list269); + span93[0] = 4691u; + span93[1] = 4692u; obj196.KillEnemyDataIds = list269; num3 = 6; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - 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; + 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; obj196.CompletionQuestVariablesFlags = list270; reference209 = obj196; - index2++; - span268[index2] = new QuestStep(EInteractionType.Interact, 2005859u, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398); + span92[1] = new QuestStep(EInteractionType.Interact, 2005859u, new Vector3(-561.82196f, -46.707886f, 300.46533f), 398); obj195.Steps = list268; reference208 = obj195; - num++; - ref QuestSequence reference210 = ref span265[num]; + ref QuestSequence reference210 = ref span91[3]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj197.Steps = list271; reference210 = obj197; - num++; - ref QuestSequence reference211 = ref span265[num]; + ref QuestSequence reference211 = ref span91[4]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -137071,46 +113829,37 @@ public static class AssemblyQuestLoader num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - ref QuestStep reference212 = ref span272[index2]; + Span span95 = CollectionsMarshal.AsSpan(list272); + ref QuestStep reference212 = ref span95[0]; QuestStep obj199 = new QuestStep(EInteractionType.Combat, 1013625u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + Span span96 = CollectionsMarshal.AsSpan(list273); + span96[0] = 4690u; + span96[1] = 4691u; obj199.KillEnemyDataIds = list273; reference212 = obj199; - index2++; - span272[index2] = new QuestStep(EInteractionType.Interact, 2005861u, new Vector3(-678.4009f, -100.60278f, 778.13367f), 398); + span95[1] = new QuestStep(EInteractionType.Interact, 2005861u, new Vector3(-678.4009f, -100.60278f, 778.13367f), 398); obj198.Steps = list272; reference211 = obj198; - num++; - ref QuestSequence reference213 = ref span265[num]; + ref QuestSequence reference213 = ref span91[5]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list274 = new List(index2); - CollectionsMarshal.SetCount(list274, index2); - Span span274 = CollectionsMarshal.AsSpan(list274); - num2 = 0; - ref QuestStep reference214 = ref span274[num2]; + num2 = 1; + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list274)[0]; 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); - Span span275 = CollectionsMarshal.AsSpan(list275); - num4 = 0; - span275[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list275)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM580_01723_Q1_000_000"), @@ -137128,16 +113877,13 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list276)[0] = "Cacahuetes"; questRoot25.Author = list276; - index = 2; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference215 = ref span277[num]; + num = 2; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span97 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference215 = ref span97[0]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -137145,9 +113891,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013627u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013627u, new Vector3(-679.9573f, -100.52397f, 775.1736f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -137160,18 +113904,16 @@ public static class AssemblyQuestLoader }; obj201.Steps = list278; reference215 = obj201; - num++; - ref QuestSequence reference216 = ref span277[num]; + ref QuestSequence reference216 = ref span97[1]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -137198,8 +113940,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span279[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -137210,8 +113951,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span98[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(1725) }; @@ -137224,16 +113964,13 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - Span span280 = CollectionsMarshal.AsSpan(list280); - index = 0; - span280[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list280)[0] = "Cacahuetes"; questRoot26.Author = list280; - index = 8; - List list281 = new List(index); - CollectionsMarshal.SetCount(list281, index); - Span span281 = CollectionsMarshal.AsSpan(list281); - num = 0; - ref QuestSequence reference217 = ref span281[num]; + num = 8; + List list281 = new List(num); + CollectionsMarshal.SetCount(list281, num); + Span span99 = CollectionsMarshal.AsSpan(list281); + ref QuestSequence reference217 = ref span99[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -137241,9 +113978,8 @@ public static class AssemblyQuestLoader num2 = 3; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span100 = CollectionsMarshal.AsSpan(list282); + span100[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -137270,8 +114006,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span282[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -137282,29 +114017,24 @@ public static class AssemblyQuestLoader } } }; - index2++; - span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span100[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj203.Steps = list282; reference217 = obj203; - num++; - ref QuestSequence reference218 = ref span281[num]; + ref QuestSequence reference218 = ref span99[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj204.Steps = list283; reference218 = obj204; - num++; - ref QuestSequence reference219 = ref span281[num]; + ref QuestSequence reference219 = ref span99[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -137312,9 +114042,8 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span101 = CollectionsMarshal.AsSpan(list284); + span101[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -137341,8 +114070,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span284[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span101[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -137353,29 +114081,24 @@ public static class AssemblyQuestLoader } } }; - index2++; - span284[index2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span101[2] = new QuestStep(EInteractionType.Interact, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj205.Steps = list284; reference219 = obj205; - num++; - ref QuestSequence reference220 = ref span281[num]; + ref QuestSequence reference220 = ref span99[3]; QuestSequence obj206 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj206.Steps = list285; reference220 = obj206; - num++; - ref QuestSequence reference221 = ref span281[num]; + ref QuestSequence reference221 = ref span99[4]; QuestSequence obj207 = new QuestSequence { Sequence = 4 @@ -137383,31 +114106,25 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013635u, new Vector3(-122.453674f, 0.72138774f, -615.80835f), 398) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013635u, new Vector3(-122.453674f, 0.72138774f, -615.80835f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj207.Steps = list286; reference221 = obj207; - num++; - ref QuestSequence reference222 = ref span281[num]; + ref QuestSequence reference222 = ref span99[5]; QuestSequence obj208 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj208.Steps = list287; reference222 = obj208; - num++; - ref QuestSequence reference223 = ref span281[num]; + ref QuestSequence reference223 = ref span99[6]; QuestSequence obj209 = new QuestSequence { Sequence = 6 @@ -137415,23 +114132,19 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1013639u, new Vector3(-120.74469f, 0.555462f, -616.6323f), 398); obj209.Steps = list288; reference223 = obj209; - num++; - ref QuestSequence reference224 = ref span281[num]; + ref QuestSequence reference224 = ref span99[7]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -137458,8 +114171,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span289[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -137470,8 +114182,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span289[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span102[2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { NextQuestId = new QuestId(2414) }; @@ -137484,16 +114195,13 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - span290[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list290)[0] = "Thaksin"; questRoot27.Author = list290; - index = 6; - List list291 = new List(index); - CollectionsMarshal.SetCount(list291, index); - Span span291 = CollectionsMarshal.AsSpan(list291); - num = 0; - ref QuestSequence reference225 = ref span291[num]; + num = 6; + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + Span span103 = CollectionsMarshal.AsSpan(list291); + ref QuestSequence reference225 = ref span103[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -137501,27 +114209,21 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); obj211.Steps = list292; reference225 = obj211; - num++; - ref QuestSequence reference226 = ref span291[num]; + ref QuestSequence reference226 = ref span103[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj212.Steps = list293; reference226 = obj212; - num++; - ref QuestSequence reference227 = ref span291[num]; + ref QuestSequence reference227 = ref span103[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -137529,88 +114231,63 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.Interact, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1012170u, new Vector3(102.92212f, 3.6299734f, 65.56799f), 418); obj213.Steps = list294; reference227 = obj213; - num++; - ref QuestSequence reference228 = ref span291[num]; + ref QuestSequence reference228 = ref span103[3]; QuestSequence obj214 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list295 = new List(index2); - CollectionsMarshal.SetCount(list295, index2); - Span span295 = CollectionsMarshal.AsSpan(list295); - num2 = 0; - ref QuestStep reference229 = ref span295[num2]; + num2 = 3; + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + Span span104 = CollectionsMarshal.AsSpan(list295); + ref QuestStep reference229 = ref span104[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1014711u, new Vector3(58.03003f, -7.146736f, 82.41394f), 418); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list296; reference229 = questStep15; - num2++; - ref QuestStep reference230 = ref span295[num2]; + ref QuestStep reference230 = ref span104[1]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list297; reference230 = questStep16; - num2++; - ref QuestStep reference231 = ref span295[num2]; + ref QuestStep reference231 = ref span104[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1014713u, new Vector3(131.9447f, -20.000105f, 62.027832f), 418); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list298; reference231 = questStep17; obj214.Steps = list295; reference228 = obj214; - num++; - ref QuestSequence reference232 = ref span291[num]; + ref QuestSequence reference232 = ref span103[4]; QuestSequence obj215 = new QuestSequence { Sequence = 4 @@ -137618,23 +114295,18 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1014714u, new Vector3(23.178406f, -12.020877f, 35.294067f), 418); + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1014714u, new Vector3(23.178406f, -12.020877f, 35.294067f), 418); obj215.Steps = list299; reference232 = obj215; - num++; - ref QuestSequence reference233 = ref span291[num]; + ref QuestSequence reference233 = ref span103[5]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj216.Steps = list300; reference233 = obj216; questRoot27.QuestSequence = list291; @@ -137644,16 +114316,13 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - Span span301 = CollectionsMarshal.AsSpan(list301); - index = 0; - span301[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list301)[0] = "JerryWester"; questRoot28.Author = list301; - index = 3; - List list302 = new List(index); - CollectionsMarshal.SetCount(list302, index); - Span span302 = CollectionsMarshal.AsSpan(list302); - num = 0; - ref QuestSequence reference234 = ref span302[num]; + num = 3; + List list302 = new List(num); + CollectionsMarshal.SetCount(list302, num); + Span span108 = CollectionsMarshal.AsSpan(list302); + ref QuestSequence reference234 = ref span108[0]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -137661,23 +114330,18 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); obj217.Steps = list303; reference234 = obj217; - num++; - ref QuestSequence reference235 = ref span302[num]; + ref QuestSequence reference235 = ref span108[1]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list304 = new List(index2); - CollectionsMarshal.SetCount(list304, index2); - Span span304 = CollectionsMarshal.AsSpan(list304); - num2 = 0; - ref QuestStep reference236 = ref span304[num2]; + num2 = 1; + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list304)[0]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, null, new Vector3(419.65634f, 162.0455f, -176.55469f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -137685,9 +114349,7 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - Span span305 = CollectionsMarshal.AsSpan(list305); - num4 = 0; - span305[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list305)[0] = new ComplexCombatData { DataId = 4802u, MinimumKillCount = 3u @@ -137696,8 +114358,7 @@ public static class AssemblyQuestLoader reference236 = obj219; obj218.Steps = list304; reference235 = obj218; - num++; - ref QuestSequence reference237 = ref span302[num]; + ref QuestSequence reference237 = ref span108[2]; QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue @@ -137705,14 +114366,12 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.6143f, 212.77472f, 703.436f), 397) + Span span109 = CollectionsMarshal.AsSpan(list306); + span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(524.6143f, 212.77472f, 703.436f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; - index2++; - span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); + span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1011240u, new Vector3(493.15625f, 200.2377f, 663.01965f), 397); obj220.Steps = list306; reference237 = obj220; questRoot28.QuestSequence = list302; @@ -137722,106 +114381,112 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - Span span307 = CollectionsMarshal.AsSpan(list307); - index = 0; - span307[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; questRoot29.Author = list307; - index = 4; - List list308 = new List(index); - CollectionsMarshal.SetCount(list308, index); - Span span308 = CollectionsMarshal.AsSpan(list308); - num = 0; - ref QuestSequence reference238 = ref span308[num]; + num = 4; + List list308 = new List(num); + CollectionsMarshal.SetCount(list308, num); + Span span110 = CollectionsMarshal.AsSpan(list308); + ref QuestSequence reference238 = ref span110[0]; QuestSequence obj221 = new QuestSequence { Sequence = 0 }; - 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); + 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; obj221.Steps = list309; reference238 = obj221; - num++; - ref QuestSequence reference239 = ref span308[num]; - QuestSequence obj222 = new QuestSequence + ref QuestSequence reference240 = ref span110[1]; + QuestSequence obj223 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) - { - EnemySpawnType = EEnemySpawnType.OverworldEnemies - }; - 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 - }; - obj223.ComplexCombatData = list311; - reference240 = obj223; - obj222.Steps = list310; - reference239 = obj222; - num++; - ref QuestSequence reference241 = ref span308[num]; - QuestSequence obj224 = new QuestSequence - { - Sequence = 2 - }; - 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) + 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) { + AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; - List list313 = new List(num3); - CollectionsMarshal.SetCount(list313, num3); - Span span313 = CollectionsMarshal.AsSpan(list313); - num4 = 0; - span313[num4] = new ComplexCombatData + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + CollectionsMarshal.AsSpan(list312)[0] = new ComplexCombatData { DataId = 4813u, MinimumKillCount = 1u, RewardItemId = 2001599u, RewardItemCount = 1 }; - obj225.ComplexCombatData = list313; - reference242 = obj225; - obj224.Steps = list312; + 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; - num++; - ref QuestSequence reference243 = ref span308[num]; - QuestSequence obj226 = new QuestSequence + obj223.Steps = list311; + reference240 = obj223; + ref QuestSequence reference242 = ref span110[2]; + QuestSequence obj225 = new QuestSequence { - Sequence = byte.MaxValue + Sequence = 2 }; num2 = 1; 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; + ref QuestStep reference243 = ref CollectionsMarshal.AsSpan(list314)[0]; + QuestStep obj226 = 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 + { + DataId = 4813u, + MinimumKillCount = 1u, + RewardItemId = 2001599u, + RewardItemCount = 1 + }; + obj226.ComplexCombatData = list315; reference243 = obj226; + obj225.Steps = list314; + reference242 = obj225; + ref QuestSequence reference244 = ref span110[3]; + QuestSequence obj227 = 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; questRoot29.QuestSequence = list308; AddQuest(questId29, questRoot29); } @@ -137833,16 +114498,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -137850,23 +114512,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-245.22125f, 122.768654f, -59.46304f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -137874,9 +114531,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list5)[0] = new ComplexCombatData { DataId = 3993u, MinimumKillCount = 4u @@ -137885,8 +114540,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -137894,9 +114548,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); obj4.Steps = list6; reference4 = obj4; questRoot.QuestSequence = list2; @@ -137906,30 +114558,24 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list7)[0] = "JerryWester"; questRoot2.Author = list7; - index = 3; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 3; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -137937,19 +114583,15 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - ref QuestStep reference7 = ref span10[index2]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-334.73944f, 115.3904f, -107.88696f), 397) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list11 = new List(index3); - CollectionsMarshal.SetCount(list11, index3); - Span span11 = CollectionsMarshal.AsSpan(list11); - num3 = 0; - span11[num3] = new ComplexCombatData + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = new ComplexCombatData { DataId = 4464u, MinimumKillCount = 3u @@ -137958,18 +114600,15 @@ public static class AssemblyQuestLoader reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list8; @@ -137979,16 +114618,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list13)[0] = "Thaksin"; questRoot3.Author = list13; - index = 5; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 5; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span3 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span3[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -137996,27 +114632,21 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span3[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span14[num]; + ref QuestSequence reference11 = ref span3[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -138024,88 +114654,63 @@ public static class AssemblyQuestLoader num2 = 3; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - ref QuestStep reference12 = ref span17[index2]; + Span span4 = CollectionsMarshal.AsSpan(list17); + ref QuestStep reference12 = ref span4[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list18; reference12 = questStep; - index2++; - ref QuestStep reference13 = ref span17[index2]; + ref QuestStep reference13 = ref span4[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2006006u, new Vector3(-228.25977f, 112.47424f, -127.55017f), 397); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list19; reference13 = questStep2; - index2++; - ref QuestStep reference14 = ref span17[index2]; + ref QuestStep reference14 = ref span4[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list20; reference14 = questStep3; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference15 = ref span14[num]; + ref QuestSequence reference15 = ref span3[3]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj12.Steps = list21; reference15 = obj12; - num++; - ref QuestSequence reference16 = ref span14[num]; + ref QuestSequence reference16 = ref span3[4]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -138113,9 +114718,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { NextQuestId = new QuestId(1764) }; @@ -138128,30 +114731,24 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list23)[0] = "Thaksin"; questRoot4.Author = list23; - index = 5; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference17 = ref span24[num]; + num = 5; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span8 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference17 = ref span8[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj14.Steps = list25; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span24[num]; + ref QuestSequence reference18 = ref span8[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -138159,44 +114756,36 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1014134u, new Vector3(-293.23267f, 126.85495f, 5.2643433f), 397); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1014134u, new Vector3(-293.23267f, 126.85495f, 5.2643433f), 397); obj15.Steps = list26; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span24[num]; + ref QuestSequence reference19 = ref span8[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference20 = ref span27[num2]; + ref QuestStep reference20 = ref span9[1]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 4041u, new Vector3(289.0053f, 132.30807f, -233.57523f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list28 = new List(index3); - CollectionsMarshal.SetCount(list28, index3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - span28[num3] = 4041u; + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = 4041u; obj17.KillEnemyDataIds = list28; reference20 = obj17; obj16.Steps = list27; reference19 = obj16; - num++; - ref QuestSequence reference21 = ref span24[num]; + ref QuestSequence reference21 = ref span8[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -138204,23 +114793,18 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397); + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1014136u, new Vector3(292.74426f, 132.44626f, -244.73944f), 397); obj18.Steps = list29; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span24[num]; + ref QuestSequence reference22 = ref span8[4]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1765) @@ -138234,16 +114818,13 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list31)[0] = "Thaksin"; questRoot5.Author = list31; - index = 5; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference23 = ref span32[num]; + num = 5; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span10 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference23 = ref span10[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -138251,30 +114832,24 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); obj20.Steps = list33; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span32[num]; + ref QuestSequence reference24 = ref span10[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj21.Steps = list34; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span32[num]; + ref QuestSequence reference25 = ref span10[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -138282,9 +114857,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - ref QuestStep reference26 = ref span35[index2]; + ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list35)[0]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 4470u, new Vector3(-468.44992f, 93.85853f, -506.40417f), 397) { Fly = true, @@ -138293,34 +114866,28 @@ public static class AssemblyQuestLoader num3 = 1; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - Span span36 = CollectionsMarshal.AsSpan(list36); - index3 = 0; - span36[index3] = 4470u; + CollectionsMarshal.AsSpan(list36)[0] = 4470u; obj23.KillEnemyDataIds = list36; reference26 = obj23; obj22.Steps = list35; reference25 = obj22; - num++; - ref QuestSequence reference27 = ref span32[num]; + ref QuestSequence reference27 = ref span10[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span37[num2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397); + span11[1] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397); obj24.Steps = list37; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span32[num]; + ref QuestSequence reference28 = ref span10[4]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -138328,9 +114895,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1766) @@ -138344,30 +114909,24 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list39)[0] = "Thaksin"; questRoot6.Author = list39; - index = 6; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference29 = ref span40[num]; + num = 6; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span12 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference29 = ref span12[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj26.Steps = list41; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span40[num]; + ref QuestSequence reference30 = ref span12[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -138375,33 +114934,27 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014138u, new Vector3(-219.19586f, 112.21238f, -244.1596f), 397) { Fly = true }; obj27.Steps = list42; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span40[num]; + ref QuestSequence reference31 = ref span12[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj28.Steps = list43; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span12[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -138409,44 +114962,36 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - ref QuestStep reference33 = ref span44[index2]; + ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list44)[0]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 4468u, new Vector3(-696.8278f, 100.08534f, -603.926f), 397) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list45 = new List(index3); - CollectionsMarshal.SetCount(list45, index3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = 4468u; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = 4468u; obj30.KillEnemyDataIds = list45; reference33 = obj30; obj29.Steps = list44; reference32 = obj29; - num++; - ref QuestSequence reference34 = ref span40[num]; + ref QuestSequence reference34 = ref span12[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj31.Steps = list46; reference34 = obj31; - num++; - ref QuestSequence reference35 = ref span40[num]; + ref QuestSequence reference35 = ref span12[5]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -138454,9 +114999,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397) { Fly = true, NextQuestId = new QuestId(1769) @@ -138470,30 +115013,24 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list48)[0] = "Thaksin"; questRoot7.Author = list48; - index = 11; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference36 = ref span49[num]; + num = 11; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span13 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference36 = ref span13[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj33.Steps = list50; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span49[num]; + ref QuestSequence reference37 = ref span13[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -138501,30 +115038,24 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397) { Fly = true }; obj34.Steps = list51; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span49[num]; + ref QuestSequence reference38 = ref span13[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj35.Steps = list52; reference38 = obj35; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span13[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -138532,25 +115063,20 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); obj36.Steps = list53; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span49[num]; + ref QuestSequence reference40 = ref span13[4]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - 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]; + 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]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, 4037u, new Vector3(-285.1214f, 76.98337f, -275.5287f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -138558,15 +115084,12 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - index3 = 0; - span55[index3] = 4037u; + CollectionsMarshal.AsSpan(list55)[0] = 4037u; obj38.KillEnemyDataIds = list55; reference41 = obj38; obj37.Steps = list54; reference40 = obj37; - num++; - ref QuestSequence reference42 = ref span49[num]; + ref QuestSequence reference42 = ref span13[5]; QuestSequence obj39 = new QuestSequence { Sequence = 5 @@ -138574,30 +115097,24 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1014142u, new Vector3(-290.33344f, 76.98337f, -259.93744f), 397); obj39.Steps = list56; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span49[num]; + ref QuestSequence reference43 = ref span13[6]; QuestSequence obj40 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj40.Steps = list57; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span49[num]; + ref QuestSequence reference44 = ref span13[7]; QuestSequence obj41 = new QuestSequence { Sequence = 7 @@ -138605,27 +115122,21 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); obj41.Steps = list58; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span49[num]; + ref QuestSequence reference45 = ref span13[8]; QuestSequence obj42 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj42.Steps = list59; reference45 = obj42; - num++; - ref QuestSequence reference46 = ref span49[num]; + ref QuestSequence reference46 = ref span13[9]; QuestSequence obj43 = new QuestSequence { Sequence = 9 @@ -138633,23 +115144,18 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1014144u, new Vector3(-258.16742f, 126.98671f, 12.77179f), 397); obj43.Steps = list60; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span49[num]; + ref QuestSequence reference47 = ref span13[10]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj44.Steps = list61; reference47 = obj44; questRoot7.QuestSequence = list49; @@ -138659,16 +115165,13 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; questRoot8.Author = list62; - index = 3; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference48 = ref span63[num]; + num = 3; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span15 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference48 = ref span15[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -138676,48 +115179,37 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj45.Steps = list64; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span63[num]; + ref QuestSequence reference49 = ref span15[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - index2 = 8; - List list65 = new List(index2); - CollectionsMarshal.SetCount(list65, index2); - Span span65 = CollectionsMarshal.AsSpan(list65); - num2 = 0; - ref QuestStep reference50 = ref span65[num2]; + num2 = 8; + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + Span span16 = CollectionsMarshal.AsSpan(list65); + ref QuestStep reference50 = ref span16[0]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(627.76666f, -26.098835f, -408.3923f), 398); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list66; skipConditions.StepIf = skipStepConditions; questStep4.SkipConditions = skipConditions; reference50 = questStep4; - num2++; - ref QuestStep reference51 = ref span65[num2]; + ref QuestStep reference51 = ref span16[1]; QuestStep obj47 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(643.6058f, -17.959486f, -409.5136f), 398) { DisableNavmesh = true @@ -138727,102 +115219,74 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list67; skipConditions2.StepIf = skipStepConditions2; obj47.SkipConditions = skipConditions2; reference51 = obj47; - num2++; - ref QuestStep reference52 = ref span65[num2]; + ref QuestStep reference52 = ref span16[2]; 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(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list68; skipConditions3.StepIf = skipStepConditions3; obj48.SkipConditions = skipConditions3; reference52 = obj48; - num2++; - ref QuestStep reference53 = ref span65[num2]; + ref QuestStep reference53 = ref span16[3]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list69; reference53 = questStep5; - num2++; - ref QuestStep reference54 = ref span65[num2]; + ref QuestStep reference54 = ref span16[4]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list70; skipConditions4.StepIf = skipStepConditions4; obj49.SkipConditions = skipConditions4; reference54 = obj49; - num2++; - ref QuestStep reference55 = ref span65[num2]; + ref QuestStep reference55 = ref span16[5]; QuestStep obj50 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(725.30743f, -43.07919f, -208.64124f), 398) { DisableNavmesh = true @@ -138832,69 +115296,48 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list71; skipConditions5.StepIf = skipStepConditions5; obj50.SkipConditions = skipConditions5; reference55 = obj50; - num2++; - ref QuestStep reference56 = ref span65[num2]; + ref QuestStep reference56 = ref span16[6]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011924u, new Vector3(849.0576f, -37.669926f, -39.56665f), 398); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list72; reference56 = questStep6; - num2++; - ref QuestStep reference57 = ref span65[num2]; + ref QuestStep reference57 = ref span16[7]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list73; reference57 = questStep7; obj46.Steps = list65; reference49 = obj46; - num++; - ref QuestSequence reference58 = ref span63[num]; + ref QuestSequence reference58 = ref span15[2]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -138902,9 +115345,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -138917,52 +115358,40 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list75)[0] = "JerryWester"; questRoot9.Author = list75; - index = 3; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference59 = ref span76[num]; + num = 3; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span25 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference59 = ref span25[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj52.Steps = list77; reference59 = obj52; - num++; - ref QuestSequence reference60 = ref span76[num]; + ref QuestSequence reference60 = ref span25[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - num2 = 2; + num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - 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]; + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 4001u, new Vector3(179.33923f, -108.80406f, 597.07007f), 398) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - span79[num3] = new ComplexCombatData + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new ComplexCombatData { DataId = 4001u, MinimumKillCount = 2u, @@ -138973,20 +115402,17 @@ public static class AssemblyQuestLoader reference61 = obj54; obj53.Steps = list78; reference60 = obj53; - num++; - ref QuestSequence reference62 = ref span76[num]; + ref QuestSequence reference62 = ref span25[2]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj55.Steps = list80; reference62 = obj55; questRoot9.QuestSequence = list76; @@ -138996,16 +115422,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list81)[0] = "Thaksin"; questRoot10.Author = list81; - index = 3; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference63 = ref span82[num]; + num = 3; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span27 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference63 = ref span27[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -139013,26 +115436,22 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true }; obj56.Steps = list83; reference63 = obj56; - num++; - ref QuestSequence reference64 = ref span82[num]; + ref QuestSequence reference64 = ref span27[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num2 = 0; - ref QuestStep reference65 = ref span84[num2]; + num2 = 2; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + Span span28 = CollectionsMarshal.AsSpan(list84); + ref QuestStep reference65 = ref span28[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 2005617u, new Vector3(197.22278f, -99.931335f, 644.4646f), 398) { StopDistance = 0.5f, @@ -139041,50 +115460,36 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - 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); + 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); obj58.CompletionQuestVariablesFlags = list85; reference65 = obj58; - num2++; - ref QuestStep reference66 = ref span84[num2]; + ref QuestStep reference66 = ref span28[1]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 2005618u, new Vector3(287.64783f, -94.10242f, 597.9553f), 398) { StopDistance = 0.5f, Fly = true }; - 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); + 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); obj59.CompletionQuestVariablesFlags = list86; reference66 = obj59; obj57.Steps = list84; reference64 = obj57; - num++; - ref QuestSequence reference67 = ref span82[num]; + ref QuestSequence reference67 = ref span27[2]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -139092,9 +115497,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011931u, new Vector3(56.839844f, -49.92323f, -135.91211f), 398) { Fly = true, NextQuestId = new QuestId(1793) @@ -139108,33 +115511,27 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list88)[0] = "Thaksin"; questRoot11.Author = list88; - index = 3; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference68 = ref span89[num]; + num = 3; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span31 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference68 = ref span31[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj61.Steps = list90; reference68 = obj61; - num++; - ref QuestSequence reference69 = ref span89[num]; + ref QuestSequence reference69 = ref span31[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -139142,9 +115539,8 @@ public static class AssemblyQuestLoader num2 = 4; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - ref QuestStep reference70 = ref span91[index2]; + Span span32 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference70 = ref span32[0]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 2005636u, new Vector3(-247.21143f, -77.62268f, 819.4857f), 398) { Fly = true @@ -139152,47 +115548,33 @@ public static class AssemblyQuestLoader num3 = 6; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - 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); + 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); obj63.CompletionQuestVariablesFlags = list92; reference70 = obj63; - index2++; - ref QuestStep reference71 = ref span91[index2]; + ref QuestStep reference71 = ref span32[1]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2005635u, new Vector3(-187.24353f, -84.85547f, 733.51636f), 398) { Fly = true }; - 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); + 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); obj64.CompletionQuestVariablesFlags = list93; reference71 = obj64; - index2++; - ref QuestStep reference72 = ref span91[index2]; + ref QuestStep reference72 = ref span32[2]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 2005633u, new Vector3(-273.518f, -82.47504f, 644.6478f), 398) { Fly = true @@ -139200,59 +115582,43 @@ public static class AssemblyQuestLoader num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - 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); + 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); obj65.CompletionQuestVariablesFlags = list94; reference72 = obj65; - index2++; - ref QuestStep reference73 = ref span91[index2]; + ref QuestStep reference73 = ref span32[3]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 2005634u, new Vector3(-307.3015f, -80.1557f, 665.6748f), 398) { Fly = true }; - 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); + 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); obj66.CompletionQuestVariablesFlags = list95; reference73 = obj66; obj62.Steps = list91; reference69 = obj62; - num++; - ref QuestSequence reference74 = ref span89[num]; + ref QuestSequence reference74 = ref span31[2]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -139265,16 +115631,13 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list97)[0] = "JerryWester"; questRoot12.Author = list97; - index = 3; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference75 = ref span98[num]; + num = 3; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span37 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference75 = ref span37[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -139282,9 +115645,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -139297,71 +115658,55 @@ public static class AssemblyQuestLoader }; obj68.Steps = list99; reference75 = obj68; - num++; - ref QuestSequence reference76 = ref span98[num]; + ref QuestSequence reference76 = ref span37[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - index2 = 8; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference77 = ref span100[num2]; + num2 = 8; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span38 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference77 = ref span38[0]; 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 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list101; skipConditions6.StepIf = skipStepConditions6; questStep8.SkipConditions = skipConditions6; reference77 = questStep8; - num2++; - ref QuestStep reference78 = ref span100[num2]; + ref QuestStep reference78 = ref span38[1]; 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(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list102; skipConditions7.StepIf = skipStepConditions7; obj70.SkipConditions = skipConditions7; reference78 = obj70; - num2++; - ref QuestStep reference79 = ref span100[num2]; + ref QuestStep reference79 = ref span38[2]; QuestStep obj71 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.08307f, -23.861216f, -313.61807f), 398) { DisableNavmesh = true @@ -139371,46 +115716,32 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list103; skipConditions8.StepIf = skipStepConditions8; obj71.SkipConditions = skipConditions8; reference79 = obj71; - num2++; - ref QuestStep reference80 = ref span100[num2]; + ref QuestStep reference80 = ref span38[3]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1011932u, new Vector3(685.96924f, -24.382862f, -269.06238f), 398); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list104; reference80 = questStep9; - num2++; - ref QuestStep reference81 = ref span100[num2]; + ref QuestStep reference81 = ref span38[4]; QuestStep obj72 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(698.47815f, -24.308271f, -262.69476f), 398) { Mount = true @@ -139420,97 +115751,69 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list105; skipConditions9.StepIf = skipStepConditions9; obj72.SkipConditions = skipConditions9; reference81 = obj72; - num2++; - ref QuestStep reference82 = ref span100[num2]; + ref QuestStep reference82 = ref span38[5]; 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(); - 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list106; skipConditions10.StepIf = skipStepConditions10; obj73.SkipConditions = skipConditions10; reference82 = obj73; - num2++; - ref QuestStep reference83 = ref span100[num2]; + ref QuestStep reference83 = ref span38[6]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list107; reference83 = questStep10; - num2++; - ref QuestStep reference84 = ref span100[num2]; + ref QuestStep reference84 = ref span38[7]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1011923u, new Vector3(711.1161f, -36.390835f, 198.10791f), 398); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list108; reference84 = questStep11; obj69.Steps = list100; reference76 = obj69; - num++; - ref QuestSequence reference85 = ref span98[num]; + ref QuestSequence reference85 = ref span37[2]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -139518,9 +115821,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; @@ -139537,16 +115838,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 8; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 8; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -139554,9 +115852,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011937u, new Vector3(-305.56195f, 39.04307f, 22.9953f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, SkipConditions = new SkipConditions @@ -139569,29 +115865,24 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1013406u, new Vector3(-411.52057f, -35.095f, 231.46399f), 398); + span2[2] = new QuestStep(EInteractionType.Interact, 1013406u, new Vector3(-411.52057f, -35.095f, 231.46399f), 398); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -139599,9 +115890,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -139609,29 +115898,23 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = 4494u; + CollectionsMarshal.AsSpan(list6)[0] = 4494u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -139639,39 +115922,31 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref QuestStep reference7 = ref span8[index2]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list9 = new List(index3); - CollectionsMarshal.SetCount(list9, index3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - span9[num3] = 4495u; + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = 4495u; obj7.KillEnemyDataIds = list9; reference7 = obj7; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[5]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj8.Steps = list10; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[6]; QuestSequence obj9 = new QuestSequence { Sequence = 6 @@ -139679,9 +115954,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference10 = ref span11[index2]; + ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, null, new Vector3(-431.6009f, -34.79498f, 250.46066f), 398) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -139689,25 +115962,20 @@ public static class AssemblyQuestLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - index3 = 0; - span12[index3] = 4496u; + CollectionsMarshal.AsSpan(list12)[0] = 4496u; obj10.KillEnemyDataIds = list12; reference10 = obj10; obj9.Steps = list11; reference9 = obj9; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[7]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; @@ -139717,19 +115985,18 @@ public static class AssemblyQuestLoader AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1819); QuestRoot questRoot2 = new QuestRoot(); - num = 1; + num = 2; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "JerryWester"; + Span span3 = CollectionsMarshal.AsSpan(list14); + span3[0] = "JerryWester"; + span3[1] = "Wigglez"; questRoot2.Author = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference12 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span4 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference12 = ref span4[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -139737,33 +116004,32 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400); + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400); obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span4[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list18 = new List(index3); - CollectionsMarshal.SetCount(list18, index3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new ComplexCombatData + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new ComplexCombatData { DataId = 4039u, MinimumKillCount = 3u @@ -139772,8 +116038,7 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list17; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span15[num]; + ref QuestSequence reference15 = ref span4[2]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -139781,9 +116046,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012284u, new Vector3(363.24097f, -73.25598f, 678.4314f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -139796,26 +116059,21 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; - index = 6; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 6; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span6 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span6[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -139829,8 +116087,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span6[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -139838,30 +116095,24 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1014425u, new Vector3(475.7915f, -4.4960318f, 722.13306f), 400) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1014425u, new Vector3(475.7915f, -4.4960318f, 722.13306f), 400) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span6[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span21[num]; + ref QuestSequence reference19 = ref span6[3]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -139869,26 +116120,22 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) { Fly = true }; obj19.Steps = list25; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span21[num]; + ref QuestSequence reference20 = ref span6[4]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list26 = new List(index2); - CollectionsMarshal.SetCount(list26, index2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num2 = 0; - ref QuestStep reference21 = ref span26[num2]; + num2 = 2; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + Span span7 = CollectionsMarshal.AsSpan(list26); + ref QuestStep reference21 = ref span7[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, null, new Vector3(769.16034f, -9.491294f, 286.96594f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -139896,20 +116143,16 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - span27[index3] = 4039u; + CollectionsMarshal.AsSpan(list27)[0] = 4039u; obj21.KillEnemyDataIds = list27; reference21 = obj21; - num2++; - span26[num2] = new QuestStep(EInteractionType.Interact, 1014426u, new Vector3(770.2295f, -9.491293f, 287.95288f), 400) + span7[1] = new QuestStep(EInteractionType.Interact, 1014426u, new Vector3(770.2295f, -9.491293f, 287.95288f), 400) { StopDistance = 7f }; obj20.Steps = list26; reference20 = obj20; - num++; - ref QuestSequence reference22 = ref span21[num]; + ref QuestSequence reference22 = ref span6[5]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -139917,9 +116160,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014427u, new Vector3(474.6012f, -4.4750566f, 721.5532f), 400) { Fly = true, NextQuestId = new QuestId(1824) @@ -139933,30 +116174,24 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot4.Author = list29; - index = 3; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference23 = ref span30[num]; + num = 3; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span8 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference23 = ref span8[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj23.Steps = list31; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span8[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -139964,19 +116199,15 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference25 = ref span32[index2]; + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(456.25598f, -27.669996f, 157.59406f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list33 = new List(index3); - CollectionsMarshal.SetCount(list33, index3); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = new ComplexCombatData + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new ComplexCombatData { DataId = 3999u, MinimumKillCount = 3u @@ -139985,20 +116216,17 @@ public static class AssemblyQuestLoader reference25 = obj25; obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span8[2]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj26.Steps = list34; reference26 = obj26; questRoot4.QuestSequence = list30; @@ -140008,16 +116236,13 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "liza"; + CollectionsMarshal.AsSpan(list35)[0] = "liza"; questRoot5.Author = list35; - index = 10; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference27 = ref span36[num]; + num = 10; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span10 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference27 = ref span10[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -140025,9 +116250,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014429u, new Vector3(-77.34796f, -8.655561f, 165.23987f), 400) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014429u, new Vector3(-77.34796f, -8.655561f, 165.23987f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -140041,22 +116264,18 @@ public static class AssemblyQuestLoader }; obj27.Steps = list37; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span36[num]; + ref QuestSequence reference28 = ref span10[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj28.Steps = list38; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span10[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -140064,26 +116283,21 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj29.Steps = list39; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span36[num]; + ref QuestSequence reference30 = ref span10[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list40 = new List(index2); - CollectionsMarshal.SetCount(list40, index2); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref QuestStep reference31 = ref span40[num2]; + num2 = 1; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list40)[0]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(318.27338f, -29.677633f, -148.89816f), 400) { Fly = true, @@ -140092,9 +116306,7 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - index3 = 0; - span41[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list41)[0] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -140103,8 +116315,7 @@ public static class AssemblyQuestLoader reference31 = obj31; obj30.Steps = list40; reference30 = obj30; - num++; - ref QuestSequence reference32 = ref span36[num]; + ref QuestSequence reference32 = ref span10[4]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -140112,37 +116323,30 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj32.Steps = list42; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span36[num]; + ref QuestSequence reference33 = ref span10[5]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list43 = new List(index2); - CollectionsMarshal.SetCount(list43, index2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num2 = 0; - ref QuestStep reference34 = ref span43[num2]; + num2 = 1; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep obj34 = new QuestStep(EInteractionType.Combat, null, new Vector3(293.52023f, -30.697027f, -167.88272f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list44 = new List(index3); - CollectionsMarshal.SetCount(list44, index3); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = new ComplexCombatData + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -140151,8 +116355,7 @@ public static class AssemblyQuestLoader reference34 = obj34; obj33.Steps = list43; reference33 = obj33; - num++; - ref QuestSequence reference35 = ref span36[num]; + ref QuestSequence reference35 = ref span10[6]; QuestSequence obj35 = new QuestSequence { Sequence = 6 @@ -140160,26 +116363,21 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj35.Steps = list45; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span36[num]; + ref QuestSequence reference36 = ref span10[7]; QuestSequence obj36 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list46 = new List(index2); - CollectionsMarshal.SetCount(list46, index2); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref QuestStep reference37 = ref span46[num2]; + num2 = 1; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list46)[0]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(226.58783f, -36.917496f, -100.45467f), 400) { Fly = true, @@ -140188,9 +116386,7 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span47 = CollectionsMarshal.AsSpan(list47); - index3 = 0; - span47[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list47)[0] = new ComplexCombatData { DataId = 4470u, MinimumKillCount = 1u @@ -140199,8 +116395,7 @@ public static class AssemblyQuestLoader reference37 = obj37; obj36.Steps = list46; reference36 = obj36; - num++; - ref QuestSequence reference38 = ref span36[num]; + ref QuestSequence reference38 = ref span10[8]; QuestSequence obj38 = new QuestSequence { Sequence = 8 @@ -140208,26 +116403,21 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1014430u, new Vector3(357.90027f, -29.897694f, -105.21106f), 400) { Fly = true }; obj38.Steps = list48; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span36[num]; + ref QuestSequence reference39 = ref span10[9]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1831) @@ -140241,16 +116431,13 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list50)[0] = "JerryWester"; questRoot6.Author = list50; - index = 3; - List list51 = new List(index); - CollectionsMarshal.SetCount(list51, index); - Span span51 = CollectionsMarshal.AsSpan(list51); - num = 0; - ref QuestSequence reference40 = ref span51[num]; + num = 3; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span11 = CollectionsMarshal.AsSpan(list51); + ref QuestSequence reference40 = ref span11[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -140258,48 +116445,37 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); obj40.Steps = list52; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span51[num]; + ref QuestSequence reference41 = ref span11[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - index2 = 9; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref QuestStep reference42 = ref span53[num2]; + num2 = 9; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + Span span12 = CollectionsMarshal.AsSpan(list53); + ref QuestStep reference42 = ref span12[0]; QuestStep questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-526.363f, 50.165375f, 407.25165f), 400); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list54; skipConditions.StepIf = skipStepConditions; questStep.SkipConditions = skipConditions; reference42 = questStep; - num2++; - ref QuestStep reference43 = ref span53[num2]; + ref QuestStep reference43 = ref span12[1]; QuestStep obj42 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-533.25507f, 53.07081f, 414.5445f), 400) { DisableNavmesh = true @@ -140309,117 +116485,82 @@ public static class AssemblyQuestLoader num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list55; skipConditions2.StepIf = skipStepConditions2; obj42.SkipConditions = skipConditions2; reference43 = obj42; - num2++; - ref QuestStep reference44 = ref span53[num2]; + ref QuestStep reference44 = ref span12[2]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-515.5652f, 57.261906f, 444.5247f), 400); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list56; skipConditions3.StepIf = skipStepConditions3; questStep2.SkipConditions = skipConditions3; reference44 = questStep2; - num2++; - ref QuestStep reference45 = ref span53[num2]; + ref QuestStep reference45 = ref span12[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list57; reference45 = questStep3; - num2++; - ref QuestStep reference46 = ref span53[num2]; + ref QuestStep reference46 = ref span12[4]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1013425u, new Vector3(-451.80438f, 44.72754f, 416.89172f), 400); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list58; reference46 = questStep4; - num2++; - ref QuestStep reference47 = ref span53[num2]; + ref QuestStep reference47 = ref span12[5]; 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 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list59; skipConditions4.StepIf = skipStepConditions4; questStep5.SkipConditions = skipConditions4; reference47 = questStep5; - num2++; - ref QuestStep reference48 = ref span53[num2]; + ref QuestStep reference48 = ref span12[6]; QuestStep obj43 = new QuestStep(EInteractionType.Jump, null, new Vector3(-443.18756f, 51.336708f, 390.36755f), 400) { StopDistance = 0.25f, @@ -140432,28 +116573,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list60; skipConditions5.StepIf = skipStepConditions5; obj43.SkipConditions = skipConditions5; reference48 = obj43; - num2++; - ref QuestStep reference49 = ref span53[num2]; + ref QuestStep reference49 = ref span12[7]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.36014f, 53.653843f, 380.91522f), 400) { StopDistance = 0.5f, @@ -140464,51 +116598,37 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list61; skipConditions6.StepIf = skipStepConditions6; obj44.SkipConditions = skipConditions6; reference49 = obj44; - num2++; - ref QuestStep reference50 = ref span53[num2]; + ref QuestStep reference50 = ref span12[8]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1013421u, new Vector3(-455.16138f, 53.48893f, 379.3545f), 400) { DisableNavmesh = true }; - 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); + 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); obj45.CompletionQuestVariablesFlags = list62; reference50 = obj45; obj41.Steps = list53; reference41 = obj41; - num++; - ref QuestSequence reference51 = ref span51[num]; + ref QuestSequence reference51 = ref span11[2]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -140516,15 +116636,13 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-465.66104f, 43.041187f, 380.90747f), 400) + Span span22 = CollectionsMarshal.AsSpan(list63); + span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-465.66104f, 43.041187f, 380.90747f), 400) { DisableNavmesh = true, Mount = true }; - index2++; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); + span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1013420u, new Vector3(-511.46716f, 50f, 347.0968f), 400); obj46.Steps = list63; reference51 = obj46; questRoot6.QuestSequence = list51; @@ -140534,33 +116652,27 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot7.Author = list64; - index = 8; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference52 = ref span65[num]; + num = 8; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span23 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference52 = ref span23[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj47.Steps = list66; reference52 = obj47; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span23[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -140568,30 +116680,24 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1014436u, new Vector3(-626.42865f, 49.999996f, 334.0658f), 400) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1014436u, new Vector3(-626.42865f, 49.999996f, 334.0658f), 400) { StopDistance = 7f }; obj48.Steps = list67; reference53 = obj48; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span23[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj49.Steps = list68; reference54 = obj49; - num++; - ref QuestSequence reference55 = ref span65[num]; + ref QuestSequence reference55 = ref span23[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -140599,23 +116705,19 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400); obj50.Steps = list69; reference55 = obj50; - num++; - ref QuestSequence reference56 = ref span65[num]; + ref QuestSequence reference56 = ref span23[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref QuestStep reference57 = ref span70[num2]; + num2 = 2; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span24 = CollectionsMarshal.AsSpan(list70); + ref QuestStep reference57 = ref span24[0]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(-473.00934f, 42.910698f, 361.0051f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -140623,17 +116725,13 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - index3 = 0; - span71[index3] = 4076u; + CollectionsMarshal.AsSpan(list71)[0] = 4076u; obj52.KillEnemyDataIds = list71; reference57 = obj52; - num2++; - span70[num2] = new QuestStep(EInteractionType.Interact, 1014433u, new Vector3(-473.4112f, 42.91877f, 360.0061f), 400); + span24[1] = new QuestStep(EInteractionType.Interact, 1014433u, new Vector3(-473.4112f, 42.91877f, 360.0061f), 400); obj51.Steps = list70; reference56 = obj51; - num++; - ref QuestSequence reference58 = ref span65[num]; + ref QuestSequence reference58 = ref span23[5]; QuestSequence obj53 = new QuestSequence { Sequence = 5 @@ -140641,44 +116739,36 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) { Fly = true }; obj53.Steps = list72; reference58 = obj53; - num++; - ref QuestSequence reference59 = ref span65[num]; + ref QuestSequence reference59 = ref span23[6]; QuestSequence obj54 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list73 = new List(index2); - CollectionsMarshal.SetCount(list73, index2); - Span span73 = CollectionsMarshal.AsSpan(list73); - num2 = 0; - ref QuestStep reference60 = ref span73[num2]; + num2 = 2; + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + Span span25 = CollectionsMarshal.AsSpan(list73); + ref QuestStep reference60 = ref span25[0]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, null, new Vector3(-177.2358f, -20.962738f, 266.31805f), 400) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list74 = new List(index3); - CollectionsMarshal.SetCount(list74, index3); - Span span74 = CollectionsMarshal.AsSpan(list74); - num3 = 0; - span74[num3] = 4076u; + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + CollectionsMarshal.AsSpan(list74)[0] = 4076u; obj55.KillEnemyDataIds = list74; reference60 = obj55; - num2++; - span73[num2] = new QuestStep(EInteractionType.Interact, 1014434u, new Vector3(-177.11151f, -20.990452f, 266.5293f), 400); + span25[1] = new QuestStep(EInteractionType.Interact, 1014434u, new Vector3(-177.11151f, -20.990452f, 266.5293f), 400); obj54.Steps = list73; reference59 = obj54; - num++; - ref QuestSequence reference61 = ref span65[num]; + ref QuestSequence reference61 = ref span23[7]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -140686,9 +116776,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014435u, new Vector3(-109.056274f, -8.844471f, 209.3385f), 400) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014435u, new Vector3(-109.056274f, -8.844471f, 209.3385f), 400) { Fly = true, NextQuestId = new QuestId(1832) @@ -140702,26 +116790,21 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot8.Author = list76; - index = 6; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference62 = ref span77[num]; + num = 6; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span26 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference62 = ref span26[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -140735,8 +116818,7 @@ public static class AssemblyQuestLoader }; obj57.Steps = list78; reference62 = obj57; - num++; - ref QuestSequence reference63 = ref span77[num]; + ref QuestSequence reference63 = ref span26[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -140744,27 +116826,21 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1014445u, new Vector3(455.2528f, -24.093994f, 109.88013f), 400); + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1014445u, new Vector3(455.2528f, -24.093994f, 109.88013f), 400); obj58.Steps = list79; reference63 = obj58; - num++; - ref QuestSequence reference64 = ref span77[num]; + ref QuestSequence reference64 = ref span26[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj59.Steps = list80; reference64 = obj59; - num++; - ref QuestSequence reference65 = ref span77[num]; + ref QuestSequence reference65 = ref span26[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -140772,36 +116848,30 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 1012084u, new Vector3(225.54358f, 6.9602013f, 709.34607f), 400) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1012084u, new Vector3(225.54358f, 6.9602013f, 709.34607f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj60.Steps = list81; reference65 = obj60; - num++; - ref QuestSequence reference66 = ref span77[num]; + ref QuestSequence reference66 = ref span26[4]; QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span82[num2] = new QuestStep(EInteractionType.Interact, 1014446u, new Vector3(389.7306f, -27.420471f, 114.06116f), 400); + span27[1] = new QuestStep(EInteractionType.Interact, 1014446u, new Vector3(389.7306f, -27.420471f, 114.06116f), 400); obj61.Steps = list82; reference66 = obj61; - num++; - ref QuestSequence reference67 = ref span77[num]; + ref QuestSequence reference67 = ref span26[5]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -140809,9 +116879,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -140823,33 +116891,29 @@ public static class AssemblyQuestLoader AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(1835); QuestRoot questRoot9 = new QuestRoot(); - num = 1; + num = 2; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "JerryWester"; + Span span28 = CollectionsMarshal.AsSpan(list84); + span28[0] = "JerryWester"; + span28[1] = "Wigglez"; questRoot9.Author = list84; - index = 3; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference68 = ref span85[num]; + num = 3; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span29 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference68 = ref span29[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj63.Steps = list86; reference68 = obj63; - num++; - ref QuestSequence reference69 = ref span85[num]; + ref QuestSequence reference69 = ref span29[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -140857,19 +116921,15 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - 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) + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list87)[0]; + QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(438.3409f, -19.777754f, -282.78647f), 400) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; num3 = 1; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - index3 = 0; - span88[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list88)[0] = new ComplexCombatData { DataId = 4041u, MinimumKillCount = 4u @@ -140878,18 +116938,21 @@ public static class AssemblyQuestLoader reference70 = obj65; obj64.Steps = list87; reference69 = obj64; - num++; - ref QuestSequence reference71 = ref span85[num]; + ref QuestSequence reference71 = ref span29[2]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj66.Steps = list89; reference71 = obj66; questRoot9.QuestSequence = list85; @@ -140899,16 +116962,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list90)[0] = "Thaksin"; questRoot10.Author = list90; - index = 3; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference72 = ref span91[num]; + num = 3; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span31 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference72 = ref span31[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -140916,47 +116976,36 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400); obj67.Steps = list92; reference72 = obj67; - num++; - ref QuestSequence reference73 = ref span91[num]; + ref QuestSequence reference73 = ref span31[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list93 = new List(index2); - CollectionsMarshal.SetCount(list93, index2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num2 = 0; - ref QuestStep reference74 = ref span93[num2]; + num2 = 5; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span32 = CollectionsMarshal.AsSpan(list93); + ref QuestStep reference74 = ref span32[0]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 2005720u, new Vector3(565.9419f, -9.445435f, -14.328308f), 400) { Fly = true }; - 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); + 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); obj69.CompletionQuestVariablesFlags = list94; reference74 = obj69; - num2++; - ref QuestStep reference75 = ref span93[num2]; + ref QuestStep reference75 = ref span32[1]; QuestStep obj70 = new QuestStep(EInteractionType.Interact, 2005718u, new Vector3(664.39294f, -0.4730835f, -3.2807007f), 400) { Fly = true @@ -140964,94 +117013,66 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - 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); + 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); obj70.CompletionQuestVariablesFlags = list95; reference75 = obj70; - num2++; - ref QuestStep reference76 = ref span93[num2]; + ref QuestStep reference76 = ref span32[2]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 2005721u, new Vector3(653.83374f, -0.7172241f, -70.02368f), 400) { Fly = true }; - 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); + 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); obj71.CompletionQuestVariablesFlags = list96; reference76 = obj71; - num2++; - ref QuestStep reference77 = ref span93[num2]; + ref QuestStep reference77 = ref span32[3]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list97; reference77 = questStep6; - num2++; - ref QuestStep reference78 = ref span93[num2]; + ref QuestStep reference78 = ref span32[4]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2005719u, new Vector3(527.0923f, -4.287842f, -84.916504f), 400) { Fly = true }; - 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); + 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); obj72.CompletionQuestVariablesFlags = list98; reference78 = obj72; obj68.Steps = list93; reference73 = obj68; - num++; - ref QuestSequence reference79 = ref span91[num]; + ref QuestSequence reference79 = ref span31[2]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -141059,9 +117080,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012085u, new Vector3(286.88477f, 14.36517f, 645.1666f), 400) { Fly = true }; @@ -141078,16 +117097,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -141095,23 +117111,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-6.1052914f, -20.632738f, 181.941f), 400) { StopDistance = 0.25f, @@ -141121,15 +117132,12 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 3999u; + CollectionsMarshal.AsSpan(list5)[0] = 3999u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -141137,23 +117145,18 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1014290u, new Vector3(-6.302063f, -20.660929f, 181.75012f), 400); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1014290u, new Vector3(-6.302063f, -20.660929f, 181.75012f), 400); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1864) @@ -141167,16 +117170,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 6; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 6; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -141184,33 +117184,27 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014293u, new Vector3(-106.889465f, 36.394444f, 186.1753f), 400) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -141218,41 +117212,33 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - ref QuestStep reference9 = ref span12[index2]; + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(-271.42133f, 41.099045f, 241.92078f), 400) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list13 = new List(index3); - CollectionsMarshal.SetCount(list13, index3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num3 = 0; - span13[num3] = 4076u; + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = 4076u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span2[4]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -141260,26 +117246,21 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1014294u, new Vector3(-369.64984f, 30.292116f, 423.0868f), 400) { Fly = true }; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span9[num]; + ref QuestSequence reference12 = ref span2[5]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -141294,16 +117275,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 3; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 3; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span3 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span3[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -141311,33 +117289,27 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014300u, new Vector3(-696.34546f, 79f, 269.00122f), 400) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span3[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span3[2]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -141345,9 +117317,7 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014304u, new Vector3(-471.7937f, 39.90609f, 156.2981f), 400) + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014304u, new Vector3(-471.7937f, 39.90609f, 156.2981f), 400) { Fly = true, NextQuestId = new QuestId(1866) @@ -141361,35 +117331,29 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot4.Author = list22; - index = 3; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 3; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span4 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span4[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; - num2++; - span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400); + span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400); obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span4[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -141397,9 +117361,8 @@ public static class AssemblyQuestLoader num2 = 3; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - ref QuestStep reference18 = ref span25[index2]; + Span span6 = CollectionsMarshal.AsSpan(list25); + ref QuestStep reference18 = ref span6[0]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(-611.016f, 81f, 142.83911f), 400) { Fly = true, @@ -141408,30 +117371,21 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span26 = CollectionsMarshal.AsSpan(list26); - index3 = 0; - span26[index3] = 4045u; + CollectionsMarshal.AsSpan(list26)[0] = 4045u; obj18.KillEnemyDataIds = list26; - 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); + 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); obj18.CompletionQuestVariablesFlags = list27; reference18 = obj18; - index2++; - ref QuestStep reference19 = ref span25[index2]; + ref QuestStep reference19 = ref span6[1]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-627.9241f, 81f, 98.83264f), 400) { Fly = true, @@ -141440,30 +117394,21 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span28 = CollectionsMarshal.AsSpan(list28); - index3 = 0; - span28[index3] = 4045u; + CollectionsMarshal.AsSpan(list28)[0] = 4045u; obj19.KillEnemyDataIds = list28; - 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); + 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); obj19.CompletionQuestVariablesFlags = list29; reference19 = obj19; - index2++; - ref QuestStep reference20 = ref span25[index2]; + ref QuestStep reference20 = ref span6[2]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-579.05023f, 80.999985f, 101.69408f), 400) { Fly = true, @@ -141472,47 +117417,36 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - span30[index3] = 4045u; + CollectionsMarshal.AsSpan(list30)[0] = 4045u; obj20.KillEnemyDataIds = list30; - 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); + 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); obj20.CompletionQuestVariablesFlags = list31; reference20 = obj20; obj17.Steps = list25; reference17 = obj17; - num++; - ref QuestSequence reference21 = ref span23[num]; + ref QuestSequence reference21 = ref span4[2]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1014307u, new Vector3(-661.40234f, 73f, 171.03833f), 400) { NextQuestId = new QuestId(1867) }; @@ -141525,16 +117459,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot5.Author = list33; - index = 3; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference22 = ref span34[num]; + num = 3; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span11 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference22 = ref span11[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -141542,28 +117473,24 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) + Span span12 = CollectionsMarshal.AsSpan(list35); + span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) { Fly = true }; - index2++; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400); + span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400); obj22.Steps = list35; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span34[num]; + ref QuestSequence reference23 = ref span11[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference24 = ref span36[num2]; + num2 = 3; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span13 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference24 = ref span13[0]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-723.45496f, 81f, 378.70322f), 400) { Fly = true, @@ -141572,30 +117499,21 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span37 = CollectionsMarshal.AsSpan(list37); - index3 = 0; - span37[index3] = 4045u; + CollectionsMarshal.AsSpan(list37)[0] = 4045u; obj24.KillEnemyDataIds = list37; - 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); + 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); obj24.CompletionQuestVariablesFlags = list38; reference24 = obj24; - num2++; - ref QuestStep reference25 = ref span36[num2]; + ref QuestStep reference25 = ref span13[1]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-722.5188f, 80.999985f, 427.1239f), 400) { Fly = true, @@ -141604,30 +117522,21 @@ public static class AssemblyQuestLoader num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span39 = CollectionsMarshal.AsSpan(list39); - index3 = 0; - span39[index3] = 4045u; + CollectionsMarshal.AsSpan(list39)[0] = 4045u; obj25.KillEnemyDataIds = list39; - 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); + 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); obj25.CompletionQuestVariablesFlags = list40; reference25 = obj25; - num2++; - ref QuestStep reference26 = ref span36[num2]; + ref QuestStep reference26 = ref span13[2]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-765.2328f, 81f, 406.13608f), 400) { Fly = true, @@ -141636,32 +117545,23 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - index3 = 0; - span41[index3] = 4045u; + CollectionsMarshal.AsSpan(list41)[0] = 4045u; obj26.KillEnemyDataIds = list41; - 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); + 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); obj26.CompletionQuestVariablesFlags = list42; reference26 = obj26; obj23.Steps = list36; reference23 = obj23; - num++; - ref QuestSequence reference27 = ref span34[num]; + ref QuestSequence reference27 = ref span11[2]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -141669,14 +117569,12 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) + Span span17 = CollectionsMarshal.AsSpan(list43); + span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-745.7825f, 73f, 317.39563f), 400) { Fly = true }; - index2++; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400) + span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1014308u, new Vector3(-746.12036f, 73f, 318.7456f), 400) { NextQuestId = new QuestId(1868) }; @@ -141689,33 +117587,27 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot6.Author = list44; - index = 4; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference28 = ref span45[num]; + num = 4; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span18 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference28 = ref span18[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj28.Steps = list46; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span45[num]; + ref QuestSequence reference29 = ref span18[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -141723,9 +117615,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - ref QuestStep reference30 = ref span47[index2]; + ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list47)[0]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, 1014310u, new Vector3(-713.80176f, 343f, 238.94104f), 400) { Fly = true, @@ -141734,32 +117624,26 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - index3 = 0; - span48[index3] = 4493u; + CollectionsMarshal.AsSpan(list48)[0] = 4493u; obj30.KillEnemyDataIds = list48; reference30 = obj30; obj29.Steps = list47; reference29 = obj29; - num++; - ref QuestSequence reference31 = ref span45[num]; + ref QuestSequence reference31 = ref span18[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj31.Steps = list49; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span45[num]; + ref QuestSequence reference32 = ref span18[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -141767,9 +117651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012082u, new Vector3(381.70435f, -69.41491f, 691.5541f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -141784,26 +117666,21 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "pot0to"; + CollectionsMarshal.AsSpan(list51)[0] = "pot0to"; questRoot7.Author = list51; - index = 3; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference33 = ref span52[num]; + num = 3; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span19 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference33 = ref span19[0]; QuestSequence obj33 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list53)[0]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -141815,20 +117692,17 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = 419; + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = 419; skipAetheryteCondition.InTerritory = list54; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj34.SkipConditions = skipConditions; reference34 = obj34; obj33.Steps = list53; reference33 = obj33; - num++; - ref QuestSequence reference35 = ref span52[num]; + ref QuestSequence reference35 = ref span19[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -141836,9 +117710,8 @@ public static class AssemblyQuestLoader num2 = 8; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1012263u, new Vector3(-129.4118f, 14.803129f, -127.91644f), 419) + Span span20 = CollectionsMarshal.AsSpan(list55); + span20[0] = new QuestStep(EInteractionType.Interact, 1012263u, new Vector3(-129.4118f, 14.803129f, -127.91644f), 419) { AethernetShortcut = new AethernetShortcut { @@ -141846,42 +117719,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - index2++; - span55[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + span20[1] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)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); + 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); obj35.Steps = list55; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span52[num]; + ref QuestSequence reference36 = ref span19[2]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - ref QuestStep reference37 = ref span56[num2]; + ref QuestStep reference37 = ref span21[1]; QuestStep obj37 = new QuestStep(EInteractionType.CompleteQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AethernetShortcut = new AethernetShortcut @@ -141893,9 +117756,7 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span57 = CollectionsMarshal.AsSpan(list57); - index3 = 0; - span57[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list57)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNZ601_01869_Q1_000_000"), @@ -141913,16 +117774,13 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list58)[0] = "Thaksin"; questRoot8.Author = list58; - index = 6; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference38 = ref span59[num]; + num = 6; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span22 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference38 = ref span22[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -141930,88 +117788,63 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj38.Steps = list60; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span59[num]; + ref QuestSequence reference39 = ref span22[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list61 = new List(index2); - CollectionsMarshal.SetCount(list61, index2); - Span span61 = CollectionsMarshal.AsSpan(list61); - num2 = 0; - ref QuestStep reference40 = ref span61[num2]; + num2 = 3; + List list61 = new List(num2); + CollectionsMarshal.SetCount(list61, num2); + Span span23 = CollectionsMarshal.AsSpan(list61); + ref QuestStep reference40 = ref span23[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2006246u, new Vector3(-218.40247f, -16.037292f, -34.683777f), 419); - 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); + 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); questStep.CompletionQuestVariablesFlags = list62; reference40 = questStep; - num2++; - ref QuestStep reference41 = ref span61[num2]; + ref QuestStep reference41 = ref span23[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list63; reference41 = questStep2; - num2++; - ref QuestStep reference42 = ref span61[num2]; + ref QuestStep reference42 = ref span23[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2006248u, new Vector3(-252.1554f, -20.035156f, -57.66388f), 419); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list64; reference42 = questStep3; obj39.Steps = list61; reference39 = obj39; - num++; - ref QuestSequence reference43 = ref span59[num]; + ref QuestSequence reference43 = ref span22[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -142019,23 +117852,18 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419); obj40.Steps = list65; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span59[num]; + ref QuestSequence reference44 = ref span22[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -142045,8 +117873,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list66; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span59[num]; + ref QuestSequence reference45 = ref span22[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -142054,23 +117881,18 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 2006330u, new Vector3(118.791504f, -11.6427f, -13.351685f), 419); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 2006330u, new Vector3(118.791504f, -11.6427f, -13.351685f), 419); obj42.Steps = list67; reference45 = obj42; - num++; - ref QuestSequence reference46 = ref span59[num]; + ref QuestSequence reference46 = ref span22[5]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -142087,16 +117909,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot9.Author = list69; - index = 6; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference47 = ref span70[num]; + num = 6; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span27 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference47 = ref span27[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -142104,30 +117923,24 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj44.Steps = list71; reference47 = obj44; - num++; - ref QuestSequence reference48 = ref span70[num]; + ref QuestSequence reference48 = ref span27[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4f }; obj45.Steps = list72; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span70[num]; + ref QuestSequence reference49 = ref span27[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -142135,27 +117948,22 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj46.Steps = list73; reference49 = obj46; - num++; - ref QuestSequence reference50 = ref span70[num]; + ref QuestSequence reference50 = ref span27[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -142166,8 +117974,7 @@ public static class AssemblyQuestLoader }; obj47.Steps = list74; reference50 = obj47; - num++; - ref QuestSequence reference51 = ref span70[num]; + ref QuestSequence reference51 = ref span27[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -142175,31 +117982,26 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) + Span span28 = CollectionsMarshal.AsSpan(list75); + span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.64865f, -69.42944f, 695.1956f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; - index2++; - span75[index2] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) + span28[1] = new QuestStep(EInteractionType.Interact, 1012077u, new Vector3(381.70435f, -66.84979f, 700.86194f), 400) { StopDistance = 8f }; obj48.Steps = list75; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span70[num]; + ref QuestSequence reference52 = ref span27[5]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -142212,16 +118014,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot10.Author = list77; - index = 4; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference53 = ref span78[num]; + num = 4; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span29 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference53 = ref span29[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -142229,9 +118028,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - ref QuestStep reference54 = ref span79[index2]; + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj51 = new QuestStep(EInteractionType.AcceptQuest, 1013557u, new Vector3(9.6588745f, 15.96505f, -7.4921875f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -142249,27 +118046,22 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - index3 = 0; - span80[index3] = 419; + CollectionsMarshal.AsSpan(list80)[0] = 419; obj52.InTerritory = list80; skipConditions2.AetheryteShortcutIf = obj52; obj51.SkipConditions = skipConditions2; reference54 = obj51; obj50.Steps = list79; reference53 = obj50; - num++; - ref QuestSequence reference55 = ref span78[num]; + ref QuestSequence reference55 = ref span29[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -142279,8 +118071,7 @@ public static class AssemblyQuestLoader }; obj53.Steps = list81; reference55 = obj53; - num++; - ref QuestSequence reference56 = ref span78[num]; + ref QuestSequence reference56 = ref span29[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -142288,26 +118079,21 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1013559u, new Vector3(129.22852f, 24.397108f, -1.9379272f), 418) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1013559u, new Vector3(129.22852f, 24.397108f, -1.9379272f), 418) { StopDistance = 5f }; obj54.Steps = list82; reference56 = obj54; - num++; - ref QuestSequence reference57 = ref span78[num]; + ref QuestSequence reference57 = ref span29[3]; QuestSequence obj55 = 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, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -142322,16 +118108,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list84)[0] = "Thaksin"; questRoot11.Author = list84; - index = 3; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference58 = ref span85[num]; + num = 3; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span30 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference58 = ref span30[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -142339,30 +118122,24 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014718u, new Vector3(-29.526245f, 11.965078f, 48.355713f), 419); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014718u, new Vector3(-29.526245f, 11.965078f, 48.355713f), 419); obj56.Steps = list86; reference58 = obj56; - num++; - ref QuestSequence reference59 = ref span85[num]; + ref QuestSequence reference59 = ref span30[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj57.Steps = list87; reference59 = obj57; - num++; - ref QuestSequence reference60 = ref span85[num]; + ref QuestSequence reference60 = ref span30[2]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -142370,9 +118147,8 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) + Span span31 = CollectionsMarshal.AsSpan(list88); + span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-110.26132f, 153.61101f, 10.394781f), 397) { Fly = true, SkipConditions = new SkipConditions @@ -142383,8 +118159,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014719u, new Vector3(-293.6294f, 125.4389f, -19.058533f), 397) + span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1014719u, new Vector3(-293.6294f, 125.4389f, -19.058533f), 397) { Fly = true }; @@ -142397,30 +118172,24 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list89)[0] = "JerryWester"; questRoot12.Author = list89; - index = 3; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference61 = ref span90[num]; + num = 3; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span32 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference61 = ref span32[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list91; reference61 = obj59; - num++; - ref QuestSequence reference62 = ref span90[num]; + ref QuestSequence reference62 = ref span32[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -142428,26 +118197,21 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj60.Steps = list92; reference62 = obj60; - num++; - ref QuestSequence reference63 = ref span90[num]; + ref QuestSequence reference63 = ref span32[2]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj61.Steps = list93; reference63 = obj61; questRoot12.QuestSequence = list90; @@ -142457,16 +118221,13 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "liza"; + CollectionsMarshal.AsSpan(list94)[0] = "liza"; questRoot13.Author = list94; - index = 3; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference64 = ref span95[num]; + num = 3; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span33 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference64 = ref span33[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -142474,124 +118235,93 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj62.Steps = list96; reference64 = obj62; - num++; - ref QuestSequence reference65 = ref span95[num]; + ref QuestSequence reference65 = ref span33[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num2 = 0; - ref QuestStep reference66 = ref span97[num2]; + num2 = 3; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span34 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference66 = ref span34[0]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(-40.84487f, 62.87995f, -293.59937f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list98 = new List(index3); - CollectionsMarshal.SetCount(list98, index3); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = 4044u; + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = 4044u; obj64.KillEnemyDataIds = list98; num3 = 6; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - 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); + 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); obj64.CompletionQuestVariablesFlags = list99; reference66 = obj64; - num2++; - ref QuestStep reference67 = ref span97[num2]; + ref QuestStep reference67 = ref span34[1]; QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-49.8887f, 76.75615f, -348.67075f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list100 = new List(index3); - CollectionsMarshal.SetCount(list100, index3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = 4044u; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + CollectionsMarshal.AsSpan(list100)[0] = 4044u; obj65.KillEnemyDataIds = list100; num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - 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); + 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); obj65.CompletionQuestVariablesFlags = list101; reference67 = obj65; - num2++; - ref QuestStep reference68 = ref span97[num2]; + ref QuestStep reference68 = ref span34[2]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-10.931383f, 76.75615f, -249.3747f), 400) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list102 = new List(index3); - CollectionsMarshal.SetCount(list102, index3); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - span102[num3] = 4044u; + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = 4044u; obj66.KillEnemyDataIds = list102; num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - 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); + 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); obj66.CompletionQuestVariablesFlags = list103; reference68 = obj66; obj63.Steps = list97; reference65 = obj63; - num++; - ref QuestSequence reference69 = ref span95[num]; + ref QuestSequence reference69 = ref span33[2]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -142599,9 +118329,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400) { Fly = true, NextQuestId = new QuestId(1881) @@ -142615,30 +118343,24 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "liza"; + CollectionsMarshal.AsSpan(list105)[0] = "liza"; questRoot14.Author = list105; - index = 4; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference70 = ref span106[num]; + num = 4; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span38 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference70 = ref span38[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj68.Steps = list107; reference70 = obj68; - num++; - ref QuestSequence reference71 = ref span106[num]; + ref QuestSequence reference71 = ref span38[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -142646,9 +118368,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true, @@ -142656,35 +118376,29 @@ public static class AssemblyQuestLoader }; obj69.Steps = list108; reference71 = obj69; - num++; - ref QuestSequence reference72 = ref span106[num]; + ref QuestSequence reference72 = ref span38[2]; QuestSequence obj70 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list109 = new List(index2); - CollectionsMarshal.SetCount(list109, index2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - ref QuestStep reference73 = ref span109[num2]; + num2 = 1; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list109)[0]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-734.0618f, 258.66254f, -178.1613f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list110 = new List(index3); - CollectionsMarshal.SetCount(list110, index3); - Span span110 = CollectionsMarshal.AsSpan(list110); - num3 = 0; - span110[num3] = 4044u; + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = 4044u; obj71.KillEnemyDataIds = list110; reference73 = obj71; obj70.Steps = list109; reference72 = obj70; - num++; - ref QuestSequence reference74 = ref span106[num]; + ref QuestSequence reference74 = ref span38[3]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -142692,9 +118406,7 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true, @@ -142709,30 +118421,24 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "liza"; + CollectionsMarshal.AsSpan(list112)[0] = "liza"; questRoot15.Author = list112; - index = 3; - List list113 = new List(index); - CollectionsMarshal.SetCount(list113, index); - Span span113 = CollectionsMarshal.AsSpan(list113); - num = 0; - ref QuestSequence reference75 = ref span113[num]; + num = 3; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + Span span39 = CollectionsMarshal.AsSpan(list113); + ref QuestSequence reference75 = ref span39[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj73.Steps = list114; reference75 = obj73; - num++; - ref QuestSequence reference76 = ref span113[num]; + ref QuestSequence reference76 = ref span39[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -142740,9 +118446,7 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - ref QuestStep reference77 = ref span115[index2]; + ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list115)[0]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(-131.11111f, -64.89958f, -321.4496f), 400) { StopDistance = 0.5f, @@ -142751,25 +118455,20 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span116 = CollectionsMarshal.AsSpan(list116); - index3 = 0; - span116[index3] = 4505u; + CollectionsMarshal.AsSpan(list116)[0] = 4505u; obj75.KillEnemyDataIds = list116; reference77 = obj75; obj74.Steps = list115; reference76 = obj74; - num++; - ref QuestSequence reference78 = ref span113[num]; + ref QuestSequence reference78 = ref span39[2]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1871) @@ -142783,16 +118482,13 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot16.Author = list118; - index = 4; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference79 = ref span119[num]; + num = 4; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span40 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference79 = ref span40[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -142800,31 +118496,25 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013560u, new Vector3(15.609924f, 81.84059f, -317.37244f), 400); obj77.Steps = list120; reference79 = obj77; - num++; - ref QuestSequence reference80 = ref span119[num]; + ref QuestSequence reference80 = ref span40[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj78.Steps = list121; reference80 = obj78; - num++; - ref QuestSequence reference81 = ref span119[num]; + ref QuestSequence reference81 = ref span40[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -142832,20 +118522,16 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - ref QuestStep reference82 = ref span122[index2]; + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, null, new Vector3(315.91586f, 234.0008f, -617.9445f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list123 = new List(index3); - CollectionsMarshal.SetCount(list123, index3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - ref ComplexCombatData reference83 = ref span123[num3]; + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + ref ComplexCombatData reference83 = ref CollectionsMarshal.AsSpan(list123)[0]; ComplexCombatData obj81 = new ComplexCombatData { DataId = 4469u, @@ -142854,37 +118540,28 @@ public static class AssemblyQuestLoader int num4 = 6; List list124 = new List(num4); CollectionsMarshal.SetCount(list124, num4); - 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; + 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; obj81.CompletionQuestVariablesFlags = list124; reference83 = obj81; obj80.ComplexCombatData = list123; reference82 = obj80; obj79.Steps = list122; reference81 = obj79; - num++; - ref QuestSequence reference84 = ref span119[num]; + ref QuestSequence reference84 = ref span40[3]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -142899,16 +118576,13 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "liza"; + CollectionsMarshal.AsSpan(list126)[0] = "liza"; questRoot17.Author = list126; - index = 4; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference85 = ref span127[num]; + num = 4; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span42 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference85 = ref span42[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -142916,23 +118590,19 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400); obj83.Steps = list128; reference85 = obj83; - num++; - ref QuestSequence reference86 = ref span127[num]; + ref QuestSequence reference86 = ref span42[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list129 = new List(index2); - CollectionsMarshal.SetCount(list129, index2); - Span span129 = CollectionsMarshal.AsSpan(list129); - num2 = 0; - ref QuestStep reference87 = ref span129[num2]; + num2 = 3; + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + Span span43 = CollectionsMarshal.AsSpan(list129); + ref QuestStep reference87 = ref span43[0]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.85898f, 212.64731f, -734.95905f), 400) { Fly = true @@ -142942,46 +118612,32 @@ public static class AssemblyQuestLoader num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list130; skipConditions3.StepIf = skipStepConditions; obj85.SkipConditions = skipConditions3; reference87 = obj85; - num2++; - ref QuestStep reference88 = ref span129[num2]; + ref QuestStep reference88 = ref span43[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2005805u, new Vector3(161.39453f, 212.6344f, -733.7301f), 400); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list131; reference88 = questStep4; - num2++; - ref QuestStep reference89 = ref span129[num2]; + ref QuestStep reference89 = ref span43[2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2005806u, new Vector3(110.52112f, 212.6344f, -785.15295f), 400) { Fly = true @@ -142989,25 +118645,18 @@ public static class AssemblyQuestLoader num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - 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); + 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); obj86.CompletionQuestVariablesFlags = list132; reference89 = obj86; obj84.Steps = list129; reference86 = obj84; - num++; - ref QuestSequence reference90 = ref span127[num]; + ref QuestSequence reference90 = ref span42[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -143015,27 +118664,22 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1013569u, new Vector3(330.73914f, 223.01535f, -480.36932f), 400) { StopDistance = 1f, Fly = true }; obj87.Steps = list133; reference90 = obj87; - num++; - ref QuestSequence reference91 = ref span127[num]; + ref QuestSequence reference91 = ref span42[3]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1879) @@ -143049,16 +118693,13 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "liza"; + CollectionsMarshal.AsSpan(list135)[0] = "liza"; questRoot18.Author = list135; - index = 5; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference92 = ref span136[num]; + num = 5; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span47 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference92 = ref span47[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -143066,31 +118707,25 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400); obj89.Steps = list137; reference92 = obj89; - num++; - ref QuestSequence reference93 = ref span136[num]; + ref QuestSequence reference93 = ref span47[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.25f, Fly = true }; obj90.Steps = list138; reference93 = obj90; - num++; - ref QuestSequence reference94 = ref span136[num]; + ref QuestSequence reference94 = ref span47[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -143098,20 +118733,16 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - ref QuestStep reference95 = ref span139[index2]; + ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list139)[0]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1701f, 258.0283f, -651.9808f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list140 = new List(index3); - CollectionsMarshal.SetCount(list140, index3); - Span span140 = CollectionsMarshal.AsSpan(list140); - num3 = 0; - span140[num3] = new ComplexCombatData + num3 = 1; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + CollectionsMarshal.AsSpan(list140)[0] = new ComplexCombatData { DataId = 4044u, MinimumKillCount = 3u @@ -143120,46 +118751,35 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - 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; + 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; obj92.CompletionQuestVariablesFlags = list141; reference95 = obj92; obj91.Steps = list139; reference94 = obj91; - num++; - ref QuestSequence reference96 = ref span136[num]; + ref QuestSequence reference96 = ref span47[3]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list142 = new List(index2); - CollectionsMarshal.SetCount(list142, index2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num2 = 0; - ref QuestStep reference97 = ref span142[num2]; + num2 = 1; + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list142)[0]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1701f, 258.0283f, -651.9808f), 400) { StopDistance = 100f, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list143 = new List(index3); - CollectionsMarshal.SetCount(list143, index3); - Span span143 = CollectionsMarshal.AsSpan(list143); - num3 = 0; - span143[num3] = new ComplexCombatData + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + CollectionsMarshal.AsSpan(list143)[0] = new ComplexCombatData { DataId = 4044u, MinimumKillCount = 1u @@ -143168,8 +118788,7 @@ public static class AssemblyQuestLoader reference97 = obj94; obj93.Steps = list142; reference96 = obj93; - num++; - ref QuestSequence reference98 = ref span136[num]; + ref QuestSequence reference98 = ref span47[4]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -143177,9 +118796,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013570u, new Vector3(-556.4203f, 266.003f, -673.7926f), 400) { StopDistance = 0.25f, Fly = true, @@ -143194,30 +118811,24 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; questRoot19.Author = list145; - index = 9; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference99 = ref span146[num]; + num = 9; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span49 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference99 = ref span49[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj96.Steps = list147; reference99 = obj96; - num++; - ref QuestSequence reference100 = ref span146[num]; + ref QuestSequence reference100 = ref span49[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -143225,9 +118836,8 @@ public static class AssemblyQuestLoader num2 = 3; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - ref QuestStep reference101 = ref span148[index2]; + Span span50 = CollectionsMarshal.AsSpan(list148); + ref QuestStep reference101 = ref span50[0]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 2005812u, new Vector3(-757.4121f, 257.49585f, -702.57117f), 400) { Fly = true @@ -143235,47 +118845,33 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - 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); + 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); obj98.CompletionQuestVariablesFlags = list149; reference101 = obj98; - index2++; - ref QuestStep reference102 = ref span148[index2]; + ref QuestStep reference102 = ref span50[1]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2005811u, new Vector3(-815.4879f, 258.0758f, -674.9218f), 400) { Fly = true }; - 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); + 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); obj99.CompletionQuestVariablesFlags = list150; reference102 = obj99; - index2++; - ref QuestStep reference103 = ref span148[index2]; + ref QuestStep reference103 = ref span50[2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 2005813u, new Vector3(-788.0522f, 257.67908f, -644.1901f), 400) { Fly = true @@ -143283,43 +118879,33 @@ public static class AssemblyQuestLoader num3 = 6; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - 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); + 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); obj100.CompletionQuestVariablesFlags = list151; reference103 = obj100; obj97.Steps = list148; reference100 = obj97; - num++; - ref QuestSequence reference104 = ref span146[num]; + ref QuestSequence reference104 = ref span49[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.25f, Fly = true }; obj101.Steps = list152; reference104 = obj101; - num++; - ref QuestSequence reference105 = ref span146[num]; + ref QuestSequence reference105 = ref span49[3]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -143327,51 +118913,40 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true }; obj102.Steps = list153; reference105 = obj102; - num++; - ref QuestSequence reference106 = ref span146[num]; + ref QuestSequence reference106 = ref span49[4]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference107 = ref span154[num2]; + num2 = 3; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + Span span54 = CollectionsMarshal.AsSpan(list154); + ref QuestStep reference107 = ref span54[0]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 2005814u, new Vector3(-755.9472f, 258.80823f, -207.72113f), 400) { Fly = true }; - 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); + 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); obj104.CompletionQuestVariablesFlags = list155; reference107 = obj104; - num2++; - ref QuestStep reference108 = ref span154[num2]; + ref QuestStep reference108 = ref span54[1]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 2005816u, new Vector3(-698.024f, 258.28943f, -221.66785f), 400) { Fly = true @@ -143379,49 +118954,35 @@ public static class AssemblyQuestLoader 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, 0, EQuestWorkMode.Bitwise); + 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); obj105.CompletionQuestVariablesFlags = list156; reference108 = obj105; - num2++; - ref QuestStep reference109 = ref span154[num2]; + ref QuestStep reference109 = ref span54[2]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2005815u, new Vector3(-701.83875f, 258.53357f, -165.23999f), 400) { Fly = 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)4, 0, EQuestWorkMode.Bitwise); + 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); obj106.CompletionQuestVariablesFlags = list157; reference109 = obj106; obj103.Steps = list154; reference106 = obj103; - num++; - ref QuestSequence reference110 = ref span146[num]; + ref QuestSequence reference110 = ref span49[5]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -143429,34 +118990,28 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1013566u, new Vector3(-753.59735f, 285.65656f, -168.65796f), 400) { StopDistance = 0.25f, Fly = true }; obj107.Steps = list158; reference110 = obj107; - num++; - ref QuestSequence reference111 = ref span146[num]; + ref QuestSequence reference111 = ref span49[6]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj108.Steps = list159; reference111 = obj108; - num++; - ref QuestSequence reference112 = ref span146[num]; + ref QuestSequence reference112 = ref span49[7]; QuestSequence obj109 = new QuestSequence { Sequence = 7 @@ -143464,23 +119019,18 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 2005817u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400); + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 2005817u, new Vector3(16.159302f, 82.1698f, -322.89618f), 400); obj109.Steps = list160; reference112 = obj109; - num++; - ref QuestSequence reference113 = ref span146[num]; + ref QuestSequence reference113 = ref span49[8]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(1880) }; @@ -143493,16 +119043,13 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list162)[0] = "Thaksin"; questRoot20.Author = list162; - index = 6; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference114 = ref span163[num]; + num = 6; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span58 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference114 = ref span58[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -143510,27 +119057,21 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj111.Steps = list164; reference114 = obj111; - num++; - ref QuestSequence reference115 = ref span163[num]; + ref QuestSequence reference115 = ref span58[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj112.Steps = list165; reference115 = obj112; - num++; - ref QuestSequence reference116 = ref span163[num]; + ref QuestSequence reference116 = ref span58[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -143538,33 +119079,28 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.8484f, 221.68138f, 548.0529f), 397) + Span span59 = CollectionsMarshal.AsSpan(list166); + span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.8484f, 221.68138f, 548.0529f), 397) { Fly = true }; - index2++; - span166[index2] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397) + span59[1] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397) { Land = true }; obj113.Steps = list166; reference116 = obj113; - num++; - ref QuestSequence reference117 = ref span163[num]; + ref QuestSequence reference117 = ref span58[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; QuestStep obj115 = new QuestStep(EInteractionType.Combat, 4076u, new Vector3(-257.5558f, 221.35532f, 520.9053f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -143572,15 +119108,12 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - index3 = 0; - span168[index3] = 4076u; + CollectionsMarshal.AsSpan(list168)[0] = 4076u; obj115.KillEnemyDataIds = list168; reference118 = obj115; obj114.Steps = list167; reference117 = obj114; - num++; - ref QuestSequence reference119 = ref span163[num]; + ref QuestSequence reference119 = ref span58[4]; QuestSequence obj116 = new QuestSequence { Sequence = 4 @@ -143588,23 +119121,18 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397); + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1014149u, new Vector3(-294.5144f, 221.58685f, 545.922f), 397); obj116.Steps = list169; reference119 = obj116; - num++; - ref QuestSequence reference120 = ref span163[num]; + ref QuestSequence reference120 = ref span58[5]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(1890) @@ -143618,16 +119146,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list171)[0] = "Thaksin"; questRoot21.Author = list171; - index = 4; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference121 = ref span172[num]; + num = 4; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span61 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference121 = ref span61[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -143635,34 +119160,27 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj118.Steps = list173; reference121 = obj118; - num++; - ref QuestSequence reference122 = ref span172[num]; + ref QuestSequence reference122 = ref span61[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list174 = new List(index2); - CollectionsMarshal.SetCount(list174, index2); - Span span174 = CollectionsMarshal.AsSpan(list174); - num2 = 0; - ref QuestStep reference123 = ref span174[num2]; + num2 = 1; + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list174)[0]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, null, new Vector3(-297.49585f, 219.87524f, 281.65045f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list175 = new List(index3); - CollectionsMarshal.SetCount(list175, index3); - Span span175 = CollectionsMarshal.AsSpan(list175); - num3 = 0; - span175[num3] = new ComplexCombatData + num3 = 1; + List list175 = new List(num3); + CollectionsMarshal.SetCount(list175, num3); + CollectionsMarshal.AsSpan(list175)[0] = new ComplexCombatData { DataId = 3992u, MinimumKillCount = 5u @@ -143671,8 +119189,7 @@ public static class AssemblyQuestLoader reference123 = obj120; obj119.Steps = list174; reference122 = obj119; - num++; - ref QuestSequence reference124 = ref span172[num]; + ref QuestSequence reference124 = ref span61[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -143680,27 +119197,23 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1014150u, new Vector3(507.13354f, 217.95148f, 791.37854f), 397) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1014150u, new Vector3(507.13354f, 217.95148f, 791.37854f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj121.Steps = list176; reference124 = obj121; - num++; - ref QuestSequence reference125 = ref span172[num]; + ref QuestSequence reference125 = ref span61[3]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -143711,8 +119224,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1891) @@ -143726,16 +119238,13 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list178)[0] = "Thaksin"; questRoot22.Author = list178; - index = 5; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference126 = ref span179[num]; + num = 5; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span63 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference126 = ref span63[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -143743,28 +119252,23 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397); obj123.Steps = list180; reference126 = obj123; - num++; - ref QuestSequence reference127 = ref span179[num]; + ref QuestSequence reference127 = ref span63[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference128 = ref span181[num2]; + ref QuestStep reference128 = ref span64[1]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 732u, new Vector3(-151.29321f, 218.95082f, 669.4895f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -143772,15 +119276,12 @@ public static class AssemblyQuestLoader num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span182 = CollectionsMarshal.AsSpan(list182); - index3 = 0; - span182[index3] = 732u; + CollectionsMarshal.AsSpan(list182)[0] = 732u; obj125.KillEnemyDataIds = list182; reference128 = obj125; obj124.Steps = list181; reference127 = obj124; - num++; - ref QuestSequence reference129 = ref span179[num]; + ref QuestSequence reference129 = ref span63[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -143788,27 +119289,21 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1014151u, new Vector3(-156.08453f, 219.14235f, 669.7031f), 397); obj126.Steps = list183; reference129 = obj126; - num++; - ref QuestSequence reference130 = ref span179[num]; + ref QuestSequence reference130 = ref span63[3]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj127.Steps = list184; reference130 = obj127; - num++; - ref QuestSequence reference131 = ref span179[num]; + ref QuestSequence reference131 = ref span63[4]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -143816,9 +119311,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1892) @@ -143832,30 +119325,24 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list186)[0] = "Thaksin"; questRoot23.Author = list186; - index = 4; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference132 = ref span187[num]; + num = 4; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span65 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference132 = ref span65[0]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj129.Steps = list188; reference132 = obj129; - num++; - ref QuestSequence reference133 = ref span187[num]; + ref QuestSequence reference133 = ref span65[1]; QuestSequence obj130 = new QuestSequence { Sequence = 1 @@ -143863,44 +119350,36 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.Interact, 2006019u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397) + Span span66 = CollectionsMarshal.AsSpan(list189); + span66[0] = new QuestStep(EInteractionType.Interact, 2006019u, new Vector3(-152.42242f, 219.62305f, 669.94727f), 397) { Fly = true }; - index2++; - ref QuestStep reference134 = ref span189[index2]; + ref QuestStep reference134 = ref span66[1]; QuestStep obj131 = new QuestStep(EInteractionType.Combat, 4782u, new Vector3(-158.97404f, 219.45131f, 672.79553f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list190 = new List(index3); - CollectionsMarshal.SetCount(list190, index3); - Span span190 = CollectionsMarshal.AsSpan(list190); - num3 = 0; - span190[num3] = 4782u; + num3 = 1; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + CollectionsMarshal.AsSpan(list190)[0] = 4782u; obj131.KillEnemyDataIds = list190; reference134 = obj131; obj130.Steps = list189; reference133 = obj130; - num++; - ref QuestSequence reference135 = ref span187[num]; + ref QuestSequence reference135 = ref span65[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj132.Steps = list191; reference135 = obj132; - num++; - ref QuestSequence reference136 = ref span187[num]; + ref QuestSequence reference136 = ref span65[3]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -143908,9 +119387,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014146u, new Vector3(-258.74725f, 126.98546f, 12.649658f), 397) { Fly = true, NextQuestId = new QuestId(1893) @@ -143924,30 +119401,24 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list193)[0] = "Thaksin"; questRoot24.Author = list193; - index = 4; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference137 = ref span194[num]; + num = 4; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span67 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference137 = ref span67[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj134.Steps = list195; reference137 = obj134; - num++; - ref QuestSequence reference138 = ref span194[num]; + ref QuestSequence reference138 = ref span67[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 @@ -143955,91 +119426,66 @@ public static class AssemblyQuestLoader num2 = 3; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - ref QuestStep reference139 = ref span196[index2]; + Span span68 = CollectionsMarshal.AsSpan(list196); + ref QuestStep reference139 = ref span68[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list197; reference139 = questStep5; - index2++; - ref QuestStep reference140 = ref span196[index2]; + ref QuestStep reference140 = ref span68[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011910u, new Vector3(-298.26813f, 126.67049f, -1.4191895f), 397); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list198; reference140 = questStep6; - index2++; - ref QuestStep reference141 = ref span196[index2]; + ref QuestStep reference141 = ref span68[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list199; reference141 = questStep7; obj135.Steps = list196; reference138 = obj135; - num++; - ref QuestSequence reference142 = ref span194[num]; + ref QuestSequence reference142 = ref span67[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj136.Steps = list200; reference142 = obj136; - num++; - ref QuestSequence reference143 = ref span194[num]; + ref QuestSequence reference143 = ref span67[3]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -144047,9 +119493,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397) { Fly = true, NextQuestId = new QuestId(1898) @@ -144063,30 +119507,24 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list202)[0] = "Thaksin"; questRoot25.Author = list202; - index = 13; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference144 = ref span203[num]; + num = 13; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span72 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference144 = ref span72[0]; QuestSequence obj138 = 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, 1013710u, new Vector3(-294.6975f, 126.84874f, 4.5318604f), 397); + 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); obj138.Steps = list204; reference144 = obj138; - num++; - ref QuestSequence reference145 = ref span203[num]; + ref QuestSequence reference145 = ref span72[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -144094,27 +119532,21 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397); + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1014153u, new Vector3(-295.82666f, 126.83744f, 3.829956f), 397); obj139.Steps = list205; reference145 = obj139; - num++; - ref QuestSequence reference146 = ref span203[num]; + ref QuestSequence reference146 = ref span72[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj140.Steps = list206; reference146 = obj140; - num++; - ref QuestSequence reference147 = ref span203[num]; + ref QuestSequence reference147 = ref span72[3]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -144122,30 +119554,24 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 1014154u, new Vector3(-519.1577f, 119.39417f, -161.24213f), 397) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1014154u, new Vector3(-519.1577f, 119.39417f, -161.24213f), 397) { Fly = true }; obj141.Steps = list207; reference147 = obj141; - num++; - ref QuestSequence reference148 = ref span203[num]; + ref QuestSequence reference148 = ref span72[4]; QuestSequence obj142 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj142.Steps = list208; reference148 = obj142; - num++; - ref QuestSequence reference149 = ref span203[num]; + ref QuestSequence reference149 = ref span72[5]; QuestSequence obj143 = new QuestSequence { Sequence = 5 @@ -144153,30 +119579,24 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.Interact, 2006026u, new Vector3(-525.7191f, 119.06604f, -165.72827f), 397); + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 2006026u, new Vector3(-525.7191f, 119.06604f, -165.72827f), 397); obj143.Steps = list209; reference149 = obj143; - num++; - ref QuestSequence reference150 = ref span203[num]; + ref QuestSequence reference150 = ref span72[6]; QuestSequence obj144 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj144.Steps = list210; reference150 = obj144; - num++; - ref QuestSequence reference151 = ref span203[num]; + ref QuestSequence reference151 = ref span72[7]; QuestSequence obj145 = new QuestSequence { Sequence = 7 @@ -144184,49 +119604,41 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) + Span span73 = CollectionsMarshal.AsSpan(list211); + span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) { Fly = true }; - index2++; - span211[index2] = new QuestStep(EInteractionType.UseItem, 2006027u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) + span73[1] = new QuestStep(EInteractionType.UseItem, 2006027u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397) { ItemId = 2001751u }; obj145.Steps = list211; reference151 = obj145; - num++; - ref QuestSequence reference152 = ref span203[num]; + ref QuestSequence reference152 = ref span72[8]; QuestSequence obj146 = new QuestSequence { Sequence = 8 }; - 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]; + 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]; QuestStep obj147 = new QuestStep(EInteractionType.Combat, 4621u, new Vector3(-92.37683f, 95.76039f, -640.7043f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list213 = new List(index3); - CollectionsMarshal.SetCount(list213, index3); - Span span213 = CollectionsMarshal.AsSpan(list213); - num3 = 0; - span213[num3] = 4621u; + num3 = 1; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + CollectionsMarshal.AsSpan(list213)[0] = 4621u; obj147.KillEnemyDataIds = list213; reference153 = obj147; obj146.Steps = list212; reference152 = obj146; - num++; - ref QuestSequence reference154 = ref span203[num]; + ref QuestSequence reference154 = ref span72[9]; QuestSequence obj148 = new QuestSequence { Sequence = 9 @@ -144234,30 +119646,24 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 2006460u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2006460u, new Vector3(-92.57648f, 96.33008f, -645.1057f), 397); obj148.Steps = list214; reference154 = obj148; - num++; - ref QuestSequence reference155 = ref span203[num]; + ref QuestSequence reference155 = ref span72[10]; QuestSequence obj149 = new QuestSequence { Sequence = 10 }; - 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) + 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) { Fly = true }; obj149.Steps = list215; reference155 = obj149; - num++; - ref QuestSequence reference156 = ref span203[num]; + ref QuestSequence reference156 = ref span72[11]; QuestSequence obj150 = new QuestSequence { Sequence = 11 @@ -144265,23 +119671,18 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1014147u, new Vector3(-256.97723f, 126.99508f, 13.168518f), 397); obj150.Steps = list216; reference156 = obj150; - num++; - ref QuestSequence reference157 = ref span203[num]; + ref QuestSequence reference157 = ref span72[12]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj151.Steps = list217; reference157 = obj151; questRoot25.QuestSequence = list203; @@ -144295,16 +119696,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -144312,90 +119710,64 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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]; + 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]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2005826u, new Vector3(224.93323f, 12.863342f, -653.3456f), 401); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -144403,9 +119775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -144415,118 +119785,106 @@ public static class AssemblyQuestLoader AddQuest(questId, questRoot); QuestId questId2 = new QuestId(1910); QuestRoot questRoot2 = new QuestRoot(); - num = 1; + num = 2; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "JerryWester"; + Span span6 = CollectionsMarshal.AsSpan(list9); + span6[0] = "JerryWester"; + span6[1] = "Wigglez"; 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]; + num = 3; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span7 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span7[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list11; reference7 = obj4; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span7[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 }; - num2 = 3; + num2 = 4; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - ref QuestStep reference9 = ref span12[index2]; + 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]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1012072u, new Vector3(-568.5969f, -50.649483f, -452.10956f), 401); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list13; reference9 = questStep4; - index2++; - ref QuestStep reference10 = ref span12[index2]; + ref QuestStep reference10 = ref span8[2]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list14; reference10 = questStep5; - index2++; - ref QuestStep reference11 = ref span12[index2]; + ref QuestStep reference11 = ref span8[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1012069u, new Vector3(-647.0283f, -51.05719f, -417.74628f), 401); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list15; reference11 = questStep6; obj5.Steps = list12; reference8 = obj5; - num++; - ref QuestSequence reference12 = ref span10[num]; + ref QuestSequence reference12 = ref span7[2]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -144542,16 +119900,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list17)[0] = "JerryWester"; questRoot3.Author = list17; - index = 4; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 4; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span12 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span12[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -144559,23 +119914,18 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012287u, new Vector3(-28.397034f, 100.969696f, -186.4195f), 399); obj7.Steps = list19; reference13 = obj7; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span12[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 1; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(56.196793f, 83.32266f, -218.24187f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -144583,17 +119933,14 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = 4506u; - num4++; - span21[num4] = 4507u; + Span span13 = CollectionsMarshal.AsSpan(list21); + span13[0] = 4506u; + span13[1] = 4507u; obj9.KillEnemyDataIds = list21; reference15 = obj9; obj8.Steps = list20; reference14 = obj8; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span12[2]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -144601,37 +119948,30 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference17 = ref span22[index2]; + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(104.56799f, 63.322918f, -218.18315f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span14 = CollectionsMarshal.AsSpan(list23); + span14[0] = 4506u; + span14[1] = 4507u; obj11.KillEnemyDataIds = list23; reference17 = obj11; obj10.Steps = list22; reference16 = obj10; - num++; - ref QuestSequence reference18 = ref span18[num]; + ref QuestSequence reference18 = ref span12[3]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj12.Steps = list24; reference18 = obj12; questRoot3.QuestSequence = list18; @@ -144641,16 +119981,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; questRoot4.Author = list25; - index = 3; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference19 = ref span26[num]; + num = 3; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span15 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference19 = ref span15[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -144658,97 +119995,68 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478); obj13.Steps = list27; reference19 = obj13; - num++; - ref QuestSequence reference20 = ref span26[num]; + ref QuestSequence reference20 = ref span15[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)399 }; - num2++; - span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.97165f, 100.7737f, -302.41528f), 399); - num2++; - ref QuestStep reference21 = ref span28[num2]; + span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-104.97165f, 100.7737f, -302.41528f), 399); + ref QuestStep reference21 = ref span16[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list29; reference21 = questStep7; - num2++; - ref QuestStep reference22 = ref span28[num2]; + ref QuestStep reference22 = ref span16[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2005879u, new Vector3(496.42163f, 83.7262f, 18.631226f), 399); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list30; reference22 = questStep8; - num2++; - ref QuestStep reference23 = ref span28[num2]; + ref QuestStep reference23 = ref span16[4]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list31; reference23 = questStep9; obj14.Steps = list28; reference20 = obj14; - num++; - ref QuestSequence reference24 = ref span26[num]; + ref QuestSequence reference24 = ref span15[2]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -144756,9 +120064,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012102u, new Vector3(72.40405f, 205.6815f, 31.631958f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -144772,33 +120078,27 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list33)[0] = "Thaksin"; questRoot5.Author = list33; - index = 3; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference25 = ref span34[num]; + num = 3; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span20 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference25 = ref span20[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj16.Steps = list35; reference25 = obj16; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span20[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -144806,20 +120106,16 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference27 = ref span36[index2]; + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(301.43185f, 76.142914f, 171.03389f), 399) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = new ComplexCombatData + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = new ComplexCombatData { DataId = 4020u, MinimumKillCount = 3u @@ -144828,18 +120124,15 @@ public static class AssemblyQuestLoader reference27 = obj18; obj17.Steps = list36; reference26 = obj17; - num++; - ref QuestSequence reference28 = ref span34[num]; + ref QuestSequence reference28 = ref span20[2]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -144856,16 +120149,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -144873,37 +120163,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)399 }; - num2++; - span4[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006210u, new Vector3(-487.48004f, 144.64026f, -285.359f), 399) + span2[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2006210u, new Vector3(-487.48004f, 144.64026f, -285.359f), 399) { AetherCurrentId = 2818088u }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + span2[2] = new QuestStep(EInteractionType.Interact, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -144911,35 +120194,29 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-403.42465f, 154.8542f, 82.59637f), 399); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 2005885u, new Vector3(-403.2807f, 155.35205f, 82.84119f), 399) + span3[1] = new QuestStep(EInteractionType.Interact, 2005885u, new Vector3(-403.2807f, 155.35205f, 82.84119f), 399) { DelaySecondsAtStart = 2f }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -144947,9 +120224,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013651u, new Vector3(-475.76105f, 155.8605f, -209.76581f), 399); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -144959,30 +120234,24 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list8)[0] = "Thaksin"; questRoot2.Author = list8; - index = 4; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 4; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -144990,36 +120259,31 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) + Span span5 = CollectionsMarshal.AsSpan(list11); + span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) { Fly = true }; - index2++; - span11[index2] = new QuestStep(EInteractionType.Interact, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) + span5[1] = new QuestStep(EInteractionType.Interact, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) { Land = true }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span4[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference9 = ref span12[num2]; + ref QuestStep reference9 = ref span6[1]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 5047u, new Vector3(-894.9264f, 215.16266f, 155.29102f), 399) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -145027,17 +120291,14 @@ public static class AssemblyQuestLoader int num3 = 2; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - int num4 = 0; - span13[num4] = 5047u; - num4++; - span13[num4] = 5048u; + Span span7 = CollectionsMarshal.AsSpan(list13); + span7[0] = 5047u; + span7[1] = 5048u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span4[3]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -145045,14 +120306,12 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) + Span span8 = CollectionsMarshal.AsSpan(list14); + span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.5463f, 148.56897f, 187.12466f), 399) { Fly = true }; - index2++; - span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) + span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1013655u, new Vector3(-669.9169f, 154.30952f, 191.08862f), 399) { Land = true }; @@ -145065,30 +120324,24 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list15)[0] = "Thaksin"; questRoot3.Author = list15; - index = 6; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 6; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span9 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span9[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span9[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -145096,43 +120349,35 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1013656u, new Vector3(-617.8836f, 150.38008f, 327.19922f), 399); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span9[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, 5049u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span11 = CollectionsMarshal.AsSpan(list20); + span11[0] = 5046u; + span11[1] = 5049u; obj14.KillEnemyDataIds = list20; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span16[num]; + ref QuestSequence reference15 = ref span9[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -145140,27 +120385,21 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1013659u, new Vector3(-617.76154f, 153.8528f, 349.35522f), 399); obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span16[num]; + ref QuestSequence reference16 = ref span9[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span16[num]; + ref QuestSequence reference17 = ref span9[5]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -145168,9 +120407,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; @@ -145183,30 +120420,24 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list24)[0] = "JerryWester"; questRoot4.Author = list24; - index = 3; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference18 = ref span25[num]; + num = 3; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span12 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference18 = ref span12[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj18.Steps = list26; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span12[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -145214,9 +120445,8 @@ public static class AssemblyQuestLoader num2 = 4; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref QuestStep reference20 = ref span27[index2]; + Span span13 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference20 = ref span13[0]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 2005337u, new Vector3(7.765594f, 38.9395f, -50.9989f), 463) { TargetTerritoryId = (ushort)399 @@ -145226,125 +120456,93 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num4 = 0; - span28[num4] = 463; + CollectionsMarshal.AsSpan(list28)[0] = 463; skipStepConditions.NotInTerritory = list28; skipConditions.StepIf = skipStepConditions; obj20.SkipConditions = skipConditions; reference20 = obj20; - index2++; - ref QuestStep reference21 = ref span27[index2]; + ref QuestStep reference21 = ref span13[1]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2006061u, new Vector3(-486.93066f, 137.40747f, 701.3198f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list29 = new List(num4); - CollectionsMarshal.SetCount(list29, num4); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = 44u; + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = 44u; obj21.KillEnemyDataIds = list29; num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - 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); + 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); obj21.CompletionQuestVariablesFlags = list30; reference21 = obj21; - index2++; - ref QuestStep reference22 = ref span27[index2]; + ref QuestStep reference22 = ref span13[2]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2006062u, new Vector3(-471.8548f, 137.40747f, 705.5619f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list31 = new List(num4); - CollectionsMarshal.SetCount(list31, num4); - Span span31 = CollectionsMarshal.AsSpan(list31); - num3 = 0; - span31[num3] = 44u; + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = 44u; obj22.KillEnemyDataIds = list31; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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); + 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); obj22.CompletionQuestVariablesFlags = list32; reference22 = obj22; - index2++; - ref QuestStep reference23 = ref span27[index2]; + ref QuestStep reference23 = ref span13[3]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2006063u, new Vector3(-473.50275f, 137.40747f, 685.3893f), 399) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = 44u; + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = 44u; obj23.KillEnemyDataIds = list33; num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - 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); + 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); obj23.CompletionQuestVariablesFlags = list34; reference23 = obj23; obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference24 = ref span25[num]; + ref QuestSequence reference24 = ref span12[2]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)463 }; - num2++; - span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); + span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1012141u, new Vector3(35.690796f, 38.43f, 12.985352f), 463); obj24.Steps = list35; reference24 = obj24; questRoot4.QuestSequence = list25; @@ -145354,16 +120552,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "goatzone"; + CollectionsMarshal.AsSpan(list36)[0] = "goatzone"; questRoot5.Author = list36; - index = 3; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference25 = ref span37[num]; + num = 3; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span18 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference25 = ref span18[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -145371,34 +120566,27 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402); obj25.Steps = list38; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span37[num]; + ref QuestSequence reference26 = ref span18[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list39 = new List(index2); - CollectionsMarshal.SetCount(list39, index2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref QuestStep reference27 = ref span39[num2]; + num2 = 1; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list39)[0]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-441.42657f, -167.25401f, -432.4462f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - span40[num3] = new ComplexCombatData + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + CollectionsMarshal.AsSpan(list40)[0] = new ComplexCombatData { DataId = 4093u, MinimumKillCount = 5u @@ -145407,8 +120595,7 @@ public static class AssemblyQuestLoader reference27 = obj27; obj26.Steps = list39; reference26 = obj26; - num++; - ref QuestSequence reference28 = ref span37[num]; + ref QuestSequence reference28 = ref span18[2]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -145416,9 +120603,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012145u, new Vector3(-607.7516f, -176.4502f, -527.5502f), 402) { Fly = true }; @@ -145431,30 +120616,24 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "goatzone"; + CollectionsMarshal.AsSpan(list42)[0] = "goatzone"; questRoot6.Author = list42; - index = 3; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference29 = ref span43[num]; + num = 3; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span19 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference29 = ref span19[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj29.Steps = list44; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span43[num]; + ref QuestSequence reference30 = ref span19[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -145462,9 +120641,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - ref QuestStep reference31 = ref span45[index2]; + ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list45)[0]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, null, new Vector3(-439.6144f, -186.3405f, -617.2911f), 402) { Fly = true, @@ -145473,9 +120650,7 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num4 = 0; - span46[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list46)[0] = new ComplexCombatData { DataId = 4092u, MinimumKillCount = 5u @@ -145484,18 +120659,15 @@ public static class AssemblyQuestLoader reference31 = obj31; obj30.Steps = list45; reference30 = obj30; - num++; - ref QuestSequence reference32 = ref span43[num]; + ref QuestSequence reference32 = ref span19[2]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; @@ -145508,16 +120680,13 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "goatzone"; + CollectionsMarshal.AsSpan(list48)[0] = "goatzone"; questRoot7.Author = list48; - index = 3; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference33 = ref span49[num]; + num = 3; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span20 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference33 = ref span20[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -145525,43 +120694,35 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) { Fly = true }; obj33.Steps = list50; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span49[num]; + ref QuestSequence reference34 = ref span20[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list51 = new List(index2); - CollectionsMarshal.SetCount(list51, index2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num2 = 0; - ref QuestStep reference35 = ref span51[num2]; + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-528.74396f, -143.65883f, -580.686f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list52 = new List(num4); - CollectionsMarshal.SetCount(list52, num4); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = 4503u; + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = 4503u; obj35.KillEnemyDataIds = list52; reference35 = obj35; obj34.Steps = list51; reference34 = obj34; - num++; - ref QuestSequence reference36 = ref span49[num]; + ref QuestSequence reference36 = ref span20[2]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -145569,9 +120730,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012147u, new Vector3(-426.627f, -162.1281f, -328.6031f), 402) { Fly = true }; @@ -145584,33 +120743,27 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "goatzone"; + CollectionsMarshal.AsSpan(list54)[0] = "goatzone"; questRoot8.Author = list54; - index = 3; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference37 = ref span55[num]; + num = 3; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span21 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference37 = ref span21[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj37.Steps = list56; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span55[num]; + ref QuestSequence reference38 = ref span21[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -145618,9 +120771,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - ref QuestStep reference39 = ref span57[index2]; + ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list57)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(-189.43037f, -160.1837f, -499.3027f), 402) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -145628,15 +120779,13 @@ public static class AssemblyQuestLoader num3 = 2; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span58 = CollectionsMarshal.AsSpan(list58); - num4 = 0; - span58[num4] = new ComplexCombatData + Span span22 = CollectionsMarshal.AsSpan(list58); + span22[0] = new ComplexCombatData { DataId = 4091u, MinimumKillCount = 3u }; - num4++; - span58[num4] = new ComplexCombatData + span22[1] = new ComplexCombatData { DataId = 4090u, MinimumKillCount = 3u @@ -145645,18 +120794,15 @@ public static class AssemblyQuestLoader reference39 = obj39; obj38.Steps = list57; reference38 = obj38; - num++; - ref QuestSequence reference40 = ref span55[num]; + ref QuestSequence reference40 = ref span21[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj40.Steps = list59; reference40 = obj40; questRoot8.QuestSequence = list55; @@ -145666,16 +120812,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "goatzone"; + CollectionsMarshal.AsSpan(list60)[0] = "goatzone"; questRoot9.Author = list60; - index = 3; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference41 = ref span61[num]; + num = 3; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span23 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference41 = ref span23[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -145683,37 +120826,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) { Fly = true }; obj41.Steps = list62; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span61[num]; + ref QuestSequence reference42 = ref span23[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference43 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(517.51276f, -40.378292f, -785.99677f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new ComplexCombatData + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new ComplexCombatData { DataId = 4141u, MinimumKillCount = 2u @@ -145722,8 +120858,7 @@ public static class AssemblyQuestLoader reference43 = obj43; obj42.Steps = list63; reference42 = obj42; - num++; - ref QuestSequence reference44 = ref span61[num]; + ref QuestSequence reference44 = ref span23[2]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -145731,9 +120866,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012289u, new Vector3(231.18933f, -72.92926f, -603.1434f), 402) { Fly = true }; @@ -145746,33 +120879,27 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "goatzone"; + CollectionsMarshal.AsSpan(list66)[0] = "goatzone"; questRoot10.Author = list66; - index = 3; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference45 = ref span67[num]; + num = 3; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span24 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference45 = ref span24[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj45.Steps = list68; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span67[num]; + ref QuestSequence reference46 = ref span24[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -145780,9 +120907,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - ref QuestStep reference47 = ref span69[index2]; + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list69)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(668.9029f, -86.006f, -775.5664f), 402) { Fly = true, @@ -145791,9 +120916,7 @@ public static class AssemblyQuestLoader num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num4 = 0; - span70[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list70)[0] = new ComplexCombatData { DataId = 4046u, MinimumKillCount = 4u @@ -145802,18 +120925,15 @@ public static class AssemblyQuestLoader reference47 = obj47; obj46.Steps = list69; reference46 = obj46; - num++; - ref QuestSequence reference48 = ref span67[num]; + ref QuestSequence reference48 = ref span24[2]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -145826,16 +120946,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "goatzone"; + CollectionsMarshal.AsSpan(list72)[0] = "goatzone"; questRoot11.Author = list72; - index = 3; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference49 = ref span73[num]; + num = 3; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span25 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference49 = ref span25[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -145843,34 +120960,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402); obj49.Steps = list74; reference49 = obj49; - num++; - ref QuestSequence reference50 = ref span73[num]; + ref QuestSequence reference50 = ref span25[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list75 = new List(index2); - CollectionsMarshal.SetCount(list75, index2); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref QuestStep reference51 = ref span75[num2]; + num2 = 1; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, null, new Vector3(355.31863f, -46.22946f, -507.70428f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list76 = new List(num4); - CollectionsMarshal.SetCount(list76, num4); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span76[num3] = new ComplexCombatData + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData { DataId = 4072u, MinimumKillCount = 4u @@ -145879,8 +120989,7 @@ public static class AssemblyQuestLoader reference51 = obj51; obj50.Steps = list75; reference50 = obj50; - num++; - ref QuestSequence reference52 = ref span73[num]; + ref QuestSequence reference52 = ref span25[2]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -145888,9 +120997,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012291u, new Vector3(804.074f, -26.326342f, -527.48914f), 402) { Fly = true }; @@ -145903,33 +121010,27 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "goatzone"; + CollectionsMarshal.AsSpan(list78)[0] = "goatzone"; questRoot12.Author = list78; - index = 3; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference53 = ref span79[num]; + num = 3; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span26 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference53 = ref span26[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj53.Steps = list80; reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span79[num]; + ref QuestSequence reference54 = ref span26[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -145937,9 +121038,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - ref QuestStep reference55 = ref span81[index2]; + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list81)[0]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, null, new Vector3(773.4017f, -0.06258035f, 147.04689f), 402) { Fly = true, @@ -145948,33 +121047,25 @@ public static class AssemblyQuestLoader num3 = 5; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - 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; + Span span27 = CollectionsMarshal.AsSpan(list82); + span27[0] = 4669u; + span27[1] = 4970u; + span27[2] = 4671u; + span27[3] = 4672u; + span27[4] = 4673u; obj55.KillEnemyDataIds = list82; reference55 = obj55; obj54.Steps = list81; reference54 = obj54; - num++; - ref QuestSequence reference56 = ref span79[num]; + ref QuestSequence reference56 = ref span26[2]; QuestSequence obj56 = 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, 1012292u, new Vector3(583.9779f, 10.93506f, 100.02283f), 402) + 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) { Fly = true }; @@ -145987,16 +121078,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "goatzone"; + CollectionsMarshal.AsSpan(list84)[0] = "goatzone"; questRoot13.Author = list84; - index = 3; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference57 = ref span85[num]; + num = 3; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span28 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference57 = ref span28[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -146004,37 +121092,30 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) { Fly = true }; obj57.Steps = list86; reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span85[num]; + ref QuestSequence reference58 = ref span28[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list87 = new List(index2); - CollectionsMarshal.SetCount(list87, index2); - Span span87 = CollectionsMarshal.AsSpan(list87); - num2 = 0; - ref QuestStep reference59 = ref span87[num2]; + num2 = 1; + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list87)[0]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(495.16974f, 31.67624f, 517.37463f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list88 = new List(num4); - CollectionsMarshal.SetCount(list88, num4); - Span span88 = CollectionsMarshal.AsSpan(list88); - num3 = 0; - span88[num3] = new ComplexCombatData + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + CollectionsMarshal.AsSpan(list88)[0] = new ComplexCombatData { DataId = 4083u, MinimumKillCount = 4u @@ -146043,8 +121124,7 @@ public static class AssemblyQuestLoader reference59 = obj59; obj58.Steps = list87; reference58 = obj58; - num++; - ref QuestSequence reference60 = ref span85[num]; + ref QuestSequence reference60 = ref span28[2]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -146052,9 +121132,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012293u, new Vector3(573.4187f, 13.072888f, 329.2439f), 402) { Fly = true }; @@ -146067,33 +121145,27 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "goatzone"; + CollectionsMarshal.AsSpan(list90)[0] = "goatzone"; questRoot14.Author = list90; - index = 3; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference61 = ref span91[num]; + num = 3; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span29 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference61 = ref span29[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj61.Steps = list92; reference61 = obj61; - num++; - ref QuestSequence reference62 = ref span91[num]; + ref QuestSequence reference62 = ref span29[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -146101,9 +121173,8 @@ public static class AssemblyQuestLoader num2 = 6; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - ref QuestStep reference63 = ref span93[index2]; + Span span30 = CollectionsMarshal.AsSpan(list93); + ref QuestStep reference63 = ref span30[0]; QuestStep obj63 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(505.4667f, 16.87959f, 751.14856f), 402) { Fly = true @@ -146113,142 +121184,98 @@ public static class AssemblyQuestLoader num3 = 6; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list94; skipConditions2.StepIf = skipStepConditions2; obj63.SkipConditions = skipConditions2; reference63 = obj63; - index2++; - ref QuestStep reference64 = ref span93[index2]; + ref QuestStep reference64 = ref span30[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2005900u, new Vector3(506.76733f, 16.861145f, 750.24023f), 402); - 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); + 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); questStep.CompletionQuestVariablesFlags = list95; reference64 = questStep; - index2++; - ref QuestStep reference65 = ref span93[index2]; + ref QuestStep reference65 = ref span30[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list96; reference65 = questStep2; - index2++; - ref QuestStep reference66 = ref span93[index2]; + ref QuestStep reference66 = ref span30[3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2005899u, new Vector3(545.4031f, 20.2182f, 802.8534f), 402); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list97; reference66 = questStep3; - index2++; - ref QuestStep reference67 = ref span93[index2]; + ref QuestStep reference67 = ref span30[4]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list98; reference67 = questStep4; - index2++; - ref QuestStep reference68 = ref span93[index2]; + ref QuestStep reference68 = ref span30[5]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2005901u, new Vector3(605.3406f, 15.945618f, 708.06433f), 402); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list99; reference68 = questStep5; obj62.Steps = list93; reference62 = obj62; - num++; - ref QuestSequence reference69 = ref span91[num]; + ref QuestSequence reference69 = ref span29[2]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -146261,16 +121288,13 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "goatzone"; + CollectionsMarshal.AsSpan(list101)[0] = "goatzone"; questRoot15.Author = list101; - index = 3; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference70 = ref span102[num]; + num = 3; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span37 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference70 = ref span37[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -146278,26 +121302,21 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) { Fly = true }; obj65.Steps = list103; reference70 = obj65; - num++; - ref QuestSequence reference71 = ref span102[num]; + ref QuestSequence reference71 = ref span37[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list104 = new List(index2); - CollectionsMarshal.SetCount(list104, index2); - Span span104 = CollectionsMarshal.AsSpan(list104); - num2 = 0; - ref QuestStep reference72 = ref span104[num2]; + num2 = 1; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list104)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(144.31177f, 5.9740877f, 387.8086f), 402) { Fly = true, @@ -146306,9 +121325,7 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - num4 = 0; - span105[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list105)[0] = new ComplexCombatData { DataId = 4630u, MinimumKillCount = 3u @@ -146317,8 +121334,7 @@ public static class AssemblyQuestLoader reference72 = obj67; obj66.Steps = list104; reference71 = obj66; - num++; - ref QuestSequence reference73 = ref span102[num]; + ref QuestSequence reference73 = ref span37[2]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -146326,9 +121342,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012295u, new Vector3(214.64856f, 13.75853f, 536.9801f), 402) { Fly = true }; @@ -146341,33 +121355,27 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "goatzone"; + CollectionsMarshal.AsSpan(list107)[0] = "goatzone"; questRoot16.Author = list107; - index = 3; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference74 = ref span108[num]; + num = 3; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span38 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference74 = ref span38[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj69.Steps = list109; reference74 = obj69; - num++; - ref QuestSequence reference75 = ref span108[num]; + ref QuestSequence reference75 = ref span38[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -146375,20 +121383,17 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - ref QuestStep reference76 = ref span110[index2]; + Span span39 = CollectionsMarshal.AsSpan(list110); + ref QuestStep reference76 = ref span39[0]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, null, new Vector3(-345.30673f, -89.61499f, 353.53f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list111 = new List(num4); - CollectionsMarshal.SetCount(list111, num4); - Span span111 = CollectionsMarshal.AsSpan(list111); - num3 = 0; - span111[num3] = new ComplexCombatData + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = new ComplexCombatData { DataId = 4075u, MinimumKillCount = 3u @@ -146397,34 +121402,25 @@ public static class AssemblyQuestLoader num3 = 6; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - 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; + 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; obj71.CompletionQuestVariablesFlags = list112; reference76 = obj71; - index2++; - ref QuestStep reference77 = ref span110[index2]; + ref QuestStep reference77 = ref span39[1]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, null, new Vector3(-553.4664f, -104.895905f, 175.68343f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list113 = new List(num4); - CollectionsMarshal.SetCount(list113, num4); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - span113[num3] = new ComplexCombatData + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = new ComplexCombatData { DataId = 4668u, MinimumKillCount = 3u @@ -146433,18 +121429,15 @@ public static class AssemblyQuestLoader reference77 = obj72; obj70.Steps = list110; reference75 = obj70; - num++; - ref QuestSequence reference78 = ref span108[num]; + ref QuestSequence reference78 = ref span38[2]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -146457,16 +121450,13 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "goatzone"; + CollectionsMarshal.AsSpan(list115)[0] = "goatzone"; questRoot17.Author = list115; - index = 3; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference79 = ref span116[num]; + num = 3; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span41 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference79 = ref span41[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -146474,26 +121464,21 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) { Fly = true }; obj74.Steps = list117; reference79 = obj74; - num++; - ref QuestSequence reference80 = ref span116[num]; + ref QuestSequence reference80 = ref span41[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list118 = new List(index2); - CollectionsMarshal.SetCount(list118, index2); - Span span118 = CollectionsMarshal.AsSpan(list118); - num2 = 0; - ref QuestStep reference81 = ref span118[num2]; + num2 = 1; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list118)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-679.16223f, -48.151093f, 542.7097f), 402) { Fly = true, @@ -146502,9 +121487,7 @@ public static class AssemblyQuestLoader num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span119 = CollectionsMarshal.AsSpan(list119); - num4 = 0; - span119[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list119)[0] = new ComplexCombatData { DataId = 4095u, MinimumKillCount = 4u @@ -146513,8 +121496,7 @@ public static class AssemblyQuestLoader reference81 = obj76; obj75.Steps = list118; reference80 = obj75; - num++; - ref QuestSequence reference82 = ref span116[num]; + ref QuestSequence reference82 = ref span41[2]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -146522,9 +121504,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012297u, new Vector3(-554.95544f, -89.69182f, 771.87756f), 402) { Fly = true }; @@ -146537,33 +121517,27 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "goatzone"; + CollectionsMarshal.AsSpan(list121)[0] = "goatzone"; questRoot18.Author = list121; - index = 3; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num = 0; - ref QuestSequence reference83 = ref span122[num]; + num = 3; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + Span span42 = CollectionsMarshal.AsSpan(list122); + ref QuestSequence reference83 = ref span42[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj78.Steps = list123; reference83 = obj78; - num++; - ref QuestSequence reference84 = ref span122[num]; + ref QuestSequence reference84 = ref span42[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -146571,20 +121545,17 @@ public static class AssemblyQuestLoader num2 = 3; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - ref QuestStep reference85 = ref span124[index2]; + Span span43 = CollectionsMarshal.AsSpan(list124); + ref QuestStep reference85 = ref span43[0]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, null, new Vector3(-375.98807f, -106.10026f, 710.48956f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list125 = new List(num4); - CollectionsMarshal.SetCount(list125, num4); - Span span125 = CollectionsMarshal.AsSpan(list125); - num3 = 0; - span125[num3] = new ComplexCombatData + num3 = 1; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + CollectionsMarshal.AsSpan(list125)[0] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -146593,33 +121564,24 @@ public static class AssemblyQuestLoader num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - 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); + 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); obj80.CompletionQuestVariablesFlags = list126; reference85 = obj80; - index2++; - ref QuestStep reference86 = ref span124[index2]; + ref QuestStep reference86 = ref span43[1]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, null, new Vector3(-372.88766f, -105.78837f, 746.95245f), 402) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list127 = new List(num4); - CollectionsMarshal.SetCount(list127, num4); - Span span127 = CollectionsMarshal.AsSpan(list127); - num3 = 0; - span127[num3] = new ComplexCombatData + num3 = 1; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + CollectionsMarshal.AsSpan(list127)[0] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -146628,33 +121590,24 @@ public static class AssemblyQuestLoader num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - 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); + 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); obj81.CompletionQuestVariablesFlags = list128; reference86 = obj81; - index2++; - ref QuestStep reference87 = ref span124[index2]; + ref QuestStep reference87 = ref span43[2]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.94852f, -106.57244f, 716.5662f), 402) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list129 = new List(num4); - CollectionsMarshal.SetCount(list129, num4); - Span span129 = CollectionsMarshal.AsSpan(list129); - num3 = 0; - span129[num3] = new ComplexCombatData + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + CollectionsMarshal.AsSpan(list129)[0] = new ComplexCombatData { DataId = 4493u, MinimumKillCount = 1u @@ -146663,35 +121616,26 @@ public static class AssemblyQuestLoader num3 = 6; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - 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); + 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); obj82.CompletionQuestVariablesFlags = list130; reference87 = obj82; obj79.Steps = list124; reference84 = obj79; - num++; - ref QuestSequence reference88 = ref span122[num]; + ref QuestSequence reference88 = ref span42[2]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -146704,16 +121648,13 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; questRoot19.Author = list132; - index = 4; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference89 = ref span133[num]; + num = 4; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span47 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference89 = ref span47[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -146721,27 +121662,21 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013332u, new Vector3(94.95691f, -22.000006f, 50.94983f), 418); obj84.Steps = list134; reference89 = obj84; - num++; - ref QuestSequence reference90 = ref span133[num]; + ref QuestSequence reference90 = ref span47[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj85.Steps = list135; reference90 = obj85; - num++; - ref QuestSequence reference91 = ref span133[num]; + ref QuestSequence reference91 = ref span47[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -146749,9 +121684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 1013196u, new Vector3(-249.43921f, -20.03492f, -65.0188f), 419) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1013196u, new Vector3(-249.43921f, -20.03492f, -65.0188f), 419) { AethernetShortcut = new AethernetShortcut { @@ -146761,18 +121694,15 @@ public static class AssemblyQuestLoader }; obj86.Steps = list136; reference91 = obj86; - num++; - ref QuestSequence reference92 = ref span133[num]; + ref QuestSequence reference92 = ref span47[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -146789,16 +121719,13 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; questRoot20.Author = list138; - index = 3; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference93 = ref span139[num]; + num = 3; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span48 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference93 = ref span48[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -146806,23 +121733,18 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj88.Steps = list140; reference93 = obj88; - num++; - ref QuestSequence reference94 = ref span139[num]; + ref QuestSequence reference94 = ref span48[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -146832,8 +121754,7 @@ public static class AssemblyQuestLoader }; obj89.Steps = list141; reference94 = obj89; - num++; - ref QuestSequence reference95 = ref span139[num]; + ref QuestSequence reference95 = ref span48[2]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -146841,9 +121762,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418) { AethernetShortcut = new AethernetShortcut { @@ -146860,30 +121779,24 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; questRoot21.Author = list143; - index = 3; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference96 = ref span144[num]; + num = 3; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span49 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference96 = ref span49[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj91.Steps = list145; reference96 = obj91; - num++; - ref QuestSequence reference97 = ref span144[num]; + ref QuestSequence reference97 = ref span49[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -146891,30 +121804,24 @@ public static class AssemblyQuestLoader num2 = 3; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span146[index2] = new QuestStep(EInteractionType.Interact, 1012169u, new Vector3(109.391846f, -22.012903f, 29.95337f), 418); + span50[2] = new QuestStep(EInteractionType.Interact, 1012169u, new Vector3(109.391846f, -22.012903f, 29.95337f), 418); obj92.Steps = list146; reference97 = obj92; - num++; - ref QuestSequence reference98 = ref span144[num]; + ref QuestSequence reference98 = ref span49[2]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj93.Steps = list147; reference98 = obj93; questRoot21.QuestSequence = list144; @@ -146924,16 +121831,13 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; questRoot22.Author = list148; - index = 3; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference99 = ref span149[num]; + num = 3; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span51 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference99 = ref span51[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -146941,37 +121845,29 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj94.Steps = list150; reference99 = obj94; - num++; - ref QuestSequence reference100 = ref span149[num]; + ref QuestSequence reference100 = ref span51[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - ref QuestStep reference101 = ref span151[num2]; + ref QuestStep reference101 = ref span52[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1013340u, new Vector3(144.57922f, -20.020874f, 54.276245f), 418); - num4 = 1; - List list152 = new List(num4); - CollectionsMarshal.SetCount(list152, num4); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = new DialogueChoice + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNA409_01996_Q1_000_000"), @@ -146981,8 +121877,7 @@ public static class AssemblyQuestLoader reference101 = questStep6; obj95.Steps = list151; reference100 = obj95; - num++; - ref QuestSequence reference102 = ref span149[num]; + ref QuestSequence reference102 = ref span51[2]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -146990,9 +121885,7 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013260u, new Vector3(104.38696f, 15.000005f, 25.558838f), 418); obj96.Steps = list153; reference102 = obj96; questRoot22.QuestSequence = list149; @@ -147006,16 +121899,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "kaiser"; + CollectionsMarshal.AsSpan(list)[0] = "kaiser"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -147023,9 +121913,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -147044,34 +121932,28 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = 419; + CollectionsMarshal.AsSpan(list4)[0] = 419; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj4.Steps = list5; reference3 = obj4; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -147079,37 +121961,29 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - ref QuestStep reference5 = ref span6[index2]; + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestStep reference5 = ref span2[0]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list7; skipConditions2.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions2; reference5 = obj6; - index2++; - ref QuestStep reference6 = ref span6[index2]; + ref QuestStep reference6 = ref span2[1]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1012223u, new Vector3(188.70825f, -5.3999662f, -68.833435f), 419) { StopDistance = 4f @@ -147119,68 +121993,51 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list8; skipConditions3.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions3; reference6 = obj7; - index2++; - ref QuestStep reference7 = ref span6[index2]; + ref QuestStep reference7 = ref span2[2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1012224u, new Vector3(175.12769f, -5.4349146f, -57.938538f), 419) { StopDistance = 4f }; - 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); + 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); obj8.CompletionQuestVariablesFlags = list9; reference7 = obj8; obj5.Steps = list6; reference4 = obj5; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f }; obj9.Steps = list10; reference8 = obj9; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -147188,9 +122045,8 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.57971f, 307.86523f, 409.82266f), 155) + Span span6 = CollectionsMarshal.AsSpan(list11); + span6[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(197.57971f, 307.86523f, 409.82266f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -147202,8 +122058,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span11[index2] = new QuestStep(EInteractionType.Interact, 1014980u, new Vector3(198.6571f, 293.33f, 418.57007f), 155) + span6[1] = new QuestStep(EInteractionType.Interact, 1014980u, new Vector3(198.6571f, 293.33f, 418.57007f), 155) { StopDistance = 4f, Fly = false, @@ -147218,18 +122073,15 @@ public static class AssemblyQuestLoader }; obj10.Steps = list11; reference9 = obj10; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[5]; QuestSequence obj11 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -147243,8 +122095,7 @@ public static class AssemblyQuestLoader }; obj11.Steps = list12; reference10 = obj11; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[6]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -147252,9 +122103,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014925u, new Vector3(184.49683f, 14.1174555f, 51.92639f), 153) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014925u, new Vector3(184.49683f, 14.1174555f, 51.92639f), 153) { StopDistance = 5f, Fly = true, @@ -147277,26 +122126,21 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "kaiser"; + CollectionsMarshal.AsSpan(list14)[0] = "kaiser"; questRoot2.Author = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference12 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span7 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference12 = ref span7[0]; QuestSequence obj13 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list16 = new List(num2); + CollectionsMarshal.SetCount(list16, num2); + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) { StopDistance = 5f, @@ -147311,17 +122155,14 @@ public static class AssemblyQuestLoader num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span17 = CollectionsMarshal.AsSpan(list17); - index3 = 0; - span17[index3] = 419; + CollectionsMarshal.AsSpan(list17)[0] = 419; obj15.InTerritory = list17; skipConditions4.AetheryteShortcutIf = obj15; obj14.SkipConditions = skipConditions4; reference13 = obj14; obj13.Steps = list16; reference12 = obj13; - num++; - ref QuestSequence reference14 = ref span15[num]; + ref QuestSequence reference14 = ref span7[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -147329,9 +122170,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014981u, new Vector3(185.62585f, 14.044273f, 50.492065f), 153) { StopDistance = 5f, Fly = true, @@ -147346,18 +122185,15 @@ public static class AssemblyQuestLoader }; obj16.Steps = list18; reference14 = obj16; - num++; - ref QuestSequence reference15 = ref span15[num]; + ref QuestSequence reference15 = ref span7[2]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -147377,16 +122213,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "kaiser"; + CollectionsMarshal.AsSpan(list20)[0] = "kaiser"; questRoot3.Author = list20; - index = 7; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 7; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span8 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span8[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -147394,9 +122227,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference17 = ref span22[index2]; + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -147412,30 +122243,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list23 = new List(index3); - CollectionsMarshal.SetCount(list23, index3); - Span span23 = CollectionsMarshal.AsSpan(list23); - num3 = 0; - span23[num3] = 419; + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = 419; obj20.InTerritory = list23; skipConditions5.AetheryteShortcutIf = obj20; obj19.SkipConditions = skipConditions5; reference17 = obj19; obj18.Steps = list22; reference16 = obj18; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span8[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -147450,8 +122276,7 @@ public static class AssemblyQuestLoader }; obj21.Steps = list24; reference18 = obj21; - num++; - ref QuestSequence reference19 = ref span21[num]; + ref QuestSequence reference19 = ref span8[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -147459,9 +122284,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.Interact, 2006314u, new Vector3(143.05322f, -6.149414f, 412.10034f), 145) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 2006314u, new Vector3(143.05322f, -6.149414f, 412.10034f), 145) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -147475,18 +122298,15 @@ public static class AssemblyQuestLoader }; obj22.Steps = list25; reference19 = obj22; - num++; - ref QuestSequence reference20 = ref span21[num]; + ref QuestSequence reference20 = ref span8[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f, Fly = false, @@ -147501,8 +122321,7 @@ public static class AssemblyQuestLoader }; obj23.Steps = list26; reference20 = obj23; - num++; - ref QuestSequence reference21 = ref span21[num]; + ref QuestSequence reference21 = ref span8[4]; QuestSequence obj24 = new QuestSequence { Sequence = 4 @@ -147510,9 +122329,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 2006315u, new Vector3(-60.16632f, 23.147888f, -406.79028f), 146) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 2006315u, new Vector3(-60.16632f, 23.147888f, -406.79028f), 146) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -147526,18 +122343,15 @@ public static class AssemblyQuestLoader }; obj24.Steps = list27; reference21 = obj24; - num++; - ref QuestSequence reference22 = ref span21[num]; + ref QuestSequence reference22 = ref span8[5]; QuestSequence obj25 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 3f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -147551,8 +122365,7 @@ public static class AssemblyQuestLoader }; obj25.Steps = list28; reference22 = obj25; - num++; - ref QuestSequence reference23 = ref span21[num]; + ref QuestSequence reference23 = ref span8[6]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -147560,9 +122373,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -147582,26 +122393,21 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "kaiser"; + CollectionsMarshal.AsSpan(list30)[0] = "kaiser"; questRoot4.Author = list30; - index = 2; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference24 = ref span31[num]; + num = 2; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span9 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference24 = ref span9[0]; QuestSequence obj27 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj28 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -147620,17 +122426,14 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span33 = CollectionsMarshal.AsSpan(list33); - index3 = 0; - span33[index3] = 419; + CollectionsMarshal.AsSpan(list33)[0] = 419; obj29.InTerritory = list33; skipConditions6.AetheryteShortcutIf = obj29; obj28.SkipConditions = skipConditions6; reference25 = obj28; obj27.Steps = list32; reference24 = obj27; - num++; - ref QuestSequence reference26 = ref span31[num]; + ref QuestSequence reference26 = ref span9[1]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -147638,9 +122441,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -147672,26 +122473,21 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "kaiser"; + CollectionsMarshal.AsSpan(list35)[0] = "kaiser"; questRoot5.Author = list35; - index = 7; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference27 = ref span36[num]; + num = 7; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span10 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference27 = ref span10[0]; QuestSequence obj31 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; QuestStep obj32 = new QuestStep(EInteractionType.AcceptQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, @@ -147707,20 +122503,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = 419; + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = 419; obj33.InTerritory = list38; skipConditions7.AetheryteShortcutIf = obj33; obj32.SkipConditions = skipConditions7; reference28 = obj32; obj31.Steps = list37; reference27 = obj31; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span10[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -147728,9 +122521,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -147754,18 +122545,15 @@ public static class AssemblyQuestLoader }; obj34.Steps = list39; reference29 = obj34; - num++; - ref QuestSequence reference30 = ref span36[num]; + ref QuestSequence reference30 = ref span10[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -147784,8 +122572,7 @@ public static class AssemblyQuestLoader }; obj35.Steps = list40; reference30 = obj35; - num++; - ref QuestSequence reference31 = ref span36[num]; + ref QuestSequence reference31 = ref span10[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -147793,9 +122580,8 @@ public static class AssemblyQuestLoader num2 = 4; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref QuestStep reference32 = ref span41[index2]; + Span span11 = CollectionsMarshal.AsSpan(list41); + ref QuestStep reference32 = ref span11[0]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1014947u, new Vector3(-187.85382f, 3.9999306f, 170.1228f), 129) { StopDistance = 5f, @@ -147811,19 +122597,13 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list42; skipConditions8.StepIf = skipStepConditions3; skipConditions8.AetheryteShortcutIf = new SkipAetheryteCondition @@ -147832,8 +122612,7 @@ public static class AssemblyQuestLoader }; obj37.SkipConditions = skipConditions8; reference32 = obj37; - index2++; - ref QuestStep reference33 = ref span41[index2]; + ref QuestStep reference33 = ref span11[1]; QuestStep obj38 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.1358607f, 45.631218f, -258.50027f), 128) { AethernetShortcut = new AethernetShortcut @@ -147844,18 +122623,15 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span43[num3] = 128; + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = 128; skipStepConditions4.InTerritory = list43; skipConditions9.StepIf = skipStepConditions4; obj38.SkipConditions = skipConditions9; reference33 = obj38; - index2++; - ref QuestStep reference34 = ref span41[index2]; + ref QuestStep reference34 = ref span11[2]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1003282u, new Vector3(-3.03656f, 48.168007f, -261.70752f), 128) { StopDistance = 5f @@ -147863,59 +122639,43 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - 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); + 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); obj39.CompletionQuestVariablesFlags = list44; reference34 = obj39; - index2++; - ref QuestStep reference35 = ref span41[index2]; + ref QuestStep reference35 = ref span11[3]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1002680u, new Vector3(1.4800415f, 30.47563f, -242.20648f), 128) { StopDistance = 5f }; - 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); + 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); obj40.CompletionQuestVariablesFlags = list45; reference35 = obj40; obj36.Steps = list41; reference31 = obj36; - num++; - ref QuestSequence reference36 = ref span36[num]; + ref QuestSequence reference36 = ref span10[4]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -147927,8 +122687,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list46; reference36 = obj41; - num++; - ref QuestSequence reference37 = ref span36[num]; + ref QuestSequence reference37 = ref span10[5]; QuestSequence obj42 = new QuestSequence { Sequence = 5 @@ -147936,23 +122695,18 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2006316u, new Vector3(17.715698f, 47.592896f, -160.47919f), 128); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2006316u, new Vector3(17.715698f, 47.592896f, -160.47919f), 128); obj42.Steps = list47; reference37 = obj42; - num++; - ref QuestSequence reference38 = ref span36[num]; + ref QuestSequence reference38 = ref span10[6]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -147984,16 +122738,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "kaiser"; + CollectionsMarshal.AsSpan(list49)[0] = "kaiser"; questRoot6.Author = list49; - index = 6; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference39 = ref span50[num]; + num = 6; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span15 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference39 = ref span15[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -148001,9 +122752,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - ref QuestStep reference40 = ref span51[index2]; + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -148022,27 +122771,23 @@ public static class AssemblyQuestLoader num3 = 1; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - Span span52 = CollectionsMarshal.AsSpan(list52); - index3 = 0; - span52[index3] = 419; + CollectionsMarshal.AsSpan(list52)[0] = 419; obj46.InTerritory = list52; skipConditions10.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions10; reference40 = obj45; obj44.Steps = list51; reference39 = obj44; - num++; - ref QuestSequence reference41 = ref span50[num]; + ref QuestSequence reference41 = ref span15[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -148054,8 +122799,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span53[num2] = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) + span16[1] = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) { StopDistance = 4f, Fly = false, @@ -148070,8 +122814,7 @@ public static class AssemblyQuestLoader }; obj47.Steps = list53; reference41 = obj47; - num++; - ref QuestSequence reference42 = ref span50[num]; + ref QuestSequence reference42 = ref span15[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -148079,9 +122822,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148105,18 +122846,15 @@ public static class AssemblyQuestLoader }; obj48.Steps = list54; reference42 = obj48; - num++; - ref QuestSequence reference43 = ref span50[num]; + ref QuestSequence reference43 = ref span15[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -148125,8 +122863,7 @@ public static class AssemblyQuestLoader }; obj49.Steps = list55; reference43 = obj49; - num++; - ref QuestSequence reference44 = ref span50[num]; + ref QuestSequence reference44 = ref span15[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -148134,26 +122871,21 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Interact, 2006318u, new Vector3(-147.2649f, 43.320312f, -186.63312f), 156) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 2006318u, new Vector3(-147.2649f, 43.320312f, -186.63312f), 156) { StopDistance = 3f }; obj50.Steps = list56; reference44 = obj50; - num++; - ref QuestSequence reference45 = ref span50[num]; + ref QuestSequence reference45 = ref span15[5]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148185,16 +122917,13 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "kaiser"; + CollectionsMarshal.AsSpan(list58)[0] = "kaiser"; questRoot7.Author = list58; - index = 2; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference46 = ref span59[num]; + num = 2; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span17 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference46 = ref span17[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -148202,9 +122931,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - ref QuestStep reference47 = ref span60[index2]; + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestStep obj53 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -148220,30 +122947,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list61 = new List(index3); - CollectionsMarshal.SetCount(list61, index3); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = 419; + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = 419; obj54.InTerritory = list61; skipConditions11.AetheryteShortcutIf = obj54; obj53.SkipConditions = skipConditions11; reference47 = obj53; obj52.Steps = list60; reference46 = obj52; - num++; - ref QuestSequence reference48 = ref span59[num]; + ref QuestSequence reference48 = ref span17[1]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148275,16 +122997,13 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "kaiser"; + CollectionsMarshal.AsSpan(list63)[0] = "kaiser"; questRoot8.Author = list63; - index = 6; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref QuestSequence reference49 = ref span64[num]; + num = 6; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + Span span18 = CollectionsMarshal.AsSpan(list64); + ref QuestSequence reference49 = ref span18[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -148292,9 +123011,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference50 = ref span65[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep obj57 = new QuestStep(EInteractionType.AcceptQuest, 1014944u, new Vector3(199.93884f, -0.899981f, -48.722107f), 419) { StopDistance = 5f, @@ -148313,27 +123030,22 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - index3 = 0; - span66[index3] = 419; + CollectionsMarshal.AsSpan(list66)[0] = 419; obj58.InTerritory = list66; skipConditions12.AetheryteShortcutIf = obj58; obj57.SkipConditions = skipConditions12; reference50 = obj57; obj56.Steps = list65; reference49 = obj56; - num++; - ref QuestSequence reference51 = ref span64[num]; + ref QuestSequence reference51 = ref span18[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148357,8 +123069,7 @@ public static class AssemblyQuestLoader }; obj59.Steps = list67; reference51 = obj59; - num++; - ref QuestSequence reference52 = ref span64[num]; + ref QuestSequence reference52 = ref span18[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -148366,27 +123077,22 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014957u, new Vector3(238.78845f, 302f, -277.97363f), 155) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014957u, new Vector3(238.78845f, 302f, -277.97363f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj60.Steps = list68; reference52 = obj60; - num++; - ref QuestSequence reference53 = ref span64[num]; + ref QuestSequence reference53 = ref span18[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -148400,8 +123106,7 @@ public static class AssemblyQuestLoader }; obj61.Steps = list69; reference53 = obj61; - num++; - ref QuestSequence reference54 = ref span64[num]; + ref QuestSequence reference54 = ref span18[4]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -148409,9 +123114,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 1014961u, new Vector3(259.72375f, 359.09564f, -689.93665f), 155) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1014961u, new Vector3(259.72375f, 359.09564f, -689.93665f), 155) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -148425,18 +123128,15 @@ public static class AssemblyQuestLoader }; obj62.Steps = list70; reference54 = obj62; - num++; - ref QuestSequence reference55 = ref span64[num]; + ref QuestSequence reference55 = ref span18[5]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 2f, Fly = true, @@ -148452,16 +123152,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "kaiser"; + CollectionsMarshal.AsSpan(list72)[0] = "kaiser"; questRoot9.Author = list72; - index = 7; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference56 = ref span73[num]; + num = 7; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span19 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference56 = ref span19[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -148469,9 +123166,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference57 = ref span74[index2]; + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list74)[0]; QuestStep obj65 = new QuestStep(EInteractionType.AcceptQuest, 1015127u, new Vector3(204.60815f, 307.87106f, 414.63342f), 155) { StopDistance = 3f, @@ -148483,30 +123178,26 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list75 = new List(index3); - CollectionsMarshal.SetCount(list75, index3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - span75[num3] = 419; + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = 419; obj66.InTerritory = list75; skipConditions13.AetheryteShortcutIf = obj66; obj65.SkipConditions = skipConditions13; reference57 = obj65; obj64.Steps = list74; reference56 = obj64; - num++; - ref QuestSequence reference58 = ref span73[num]; + ref QuestSequence reference58 = ref span19[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference59 = ref span76[num2]; + num2 = 3; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span20 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference59 = ref span20[0]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1006377u, new Vector3(200.97656f, 293.33f, 420.37073f), 155) { StopDistance = 4f @@ -148516,40 +123207,31 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list77; skipConditions14.StepIf = skipStepConditions5; obj68.SkipConditions = skipConditions14; reference59 = obj68; - num2++; - span76[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(205.51671f, 285.27087f, 413.4063f), 155) + span20[1] = 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) } }; - num2++; - span76[num2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155) + span20[2] = new QuestStep(EInteractionType.Interact, 1006376u, new Vector3(195.3612f, 234.79839f, 419.3026f), 155) { StopDistance = 3f }; obj67.Steps = list76; reference58 = obj67; - num++; - ref QuestSequence reference60 = ref span73[num]; + ref QuestSequence reference60 = ref span19[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -148557,9 +123239,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148583,25 +123263,21 @@ public static class AssemblyQuestLoader }; obj69.Steps = list78; reference60 = obj69; - num++; - ref QuestSequence reference61 = ref span73[num]; + ref QuestSequence reference61 = ref span19[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj70.Steps = list79; reference61 = obj70; - num++; - ref QuestSequence reference62 = ref span73[num]; + ref QuestSequence reference62 = ref span19[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -148609,33 +123285,27 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Interact, 1015130u, new Vector3(51.743286f, 11.741424f, 27.115234f), 419) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1015130u, new Vector3(51.743286f, 11.741424f, 27.115234f), 419) { StopDistance = 5f }; obj71.Steps = list80; reference62 = obj71; - num++; - ref QuestSequence reference63 = ref span73[num]; + ref QuestSequence reference63 = ref span19[5]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj72.Steps = list81; reference63 = obj72; - num++; - ref QuestSequence reference64 = ref span73[num]; + ref QuestSequence reference64 = ref span19[6]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -148643,9 +123313,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148677,26 +123345,21 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "kaiser"; + CollectionsMarshal.AsSpan(list83)[0] = "kaiser"; questRoot10.Author = list83; - index = 10; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference65 = ref span84[num]; + num = 10; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span22 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference65 = ref span22[0]; QuestSequence obj74 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep obj75 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -148712,20 +123375,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list86 = new List(index3); - CollectionsMarshal.SetCount(list86, index3); - Span span86 = CollectionsMarshal.AsSpan(list86); - num3 = 0; - span86[num3] = 419; + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + CollectionsMarshal.AsSpan(list86)[0] = 419; obj76.InTerritory = list86; skipConditions15.AetheryteShortcutIf = obj76; obj75.SkipConditions = skipConditions15; reference66 = obj75; obj74.Steps = list85; reference65 = obj74; - num++; - ref QuestSequence reference67 = ref span84[num]; + ref QuestSequence reference67 = ref span22[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -148733,9 +123393,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1015142u, new Vector3(446.98242f, 217.95142f, 753.994f), 397) { StopDistance = 5f, Fly = true, @@ -148750,18 +123408,15 @@ public static class AssemblyQuestLoader }; obj77.Steps = list87; reference67 = obj77; - num++; - ref QuestSequence reference68 = ref span84[num]; + ref QuestSequence reference68 = ref span22[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -148776,8 +123431,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list88; reference68 = obj78; - num++; - ref QuestSequence reference69 = ref span84[num]; + ref QuestSequence reference69 = ref span22[3]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -148785,27 +123439,22 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Action, 1015146u, new Vector3(485.0995f, 200.2377f, 654.68823f), 397) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Action, 1015146u, new Vector3(485.0995f, 200.2377f, 654.68823f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj79.Steps = list89; reference69 = obj79; - num++; - ref QuestSequence reference70 = ref span84[num]; + ref QuestSequence reference70 = ref span22[4]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num2 = 0; - ref QuestStep reference71 = ref span90[num2]; + num2 = 1; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list90)[0]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, null, new Vector3(501.1413f, 161.74702f, -318.04788f), 397) { StopDistance = 3f, @@ -148816,15 +123465,13 @@ public static class AssemblyQuestLoader num3 = 2; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span91 = CollectionsMarshal.AsSpan(list91); - index3 = 0; - span91[index3] = new ComplexCombatData + Span span23 = CollectionsMarshal.AsSpan(list91); + span23[0] = new ComplexCombatData { DataId = 4619u, MinimumKillCount = 1u }; - index3++; - span91[index3] = new ComplexCombatData + span23[1] = new ComplexCombatData { DataId = 4360u, MinimumKillCount = 2u @@ -148840,8 +123487,7 @@ public static class AssemblyQuestLoader reference71 = obj81; obj80.Steps = list90; reference70 = obj80; - num++; - ref QuestSequence reference72 = ref span84[num]; + ref QuestSequence reference72 = ref span22[5]; QuestSequence obj82 = new QuestSequence { Sequence = 5 @@ -148849,27 +123495,22 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Action, 1015147u, new Vector3(500.11438f, 161.61157f, -320.02753f), 397) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Action, 1015147u, new Vector3(500.11438f, 161.61157f, -320.02753f), 397) { StopDistance = 3f, Action = EAction.AspectedBenefic }; obj82.Steps = list92; reference72 = obj82; - num++; - ref QuestSequence reference73 = ref span84[num]; + ref QuestSequence reference73 = ref span22[6]; QuestSequence obj83 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 4f, Fly = true, @@ -148877,8 +123518,7 @@ public static class AssemblyQuestLoader }; obj83.Steps = list93; reference73 = obj83; - num++; - ref QuestSequence reference74 = ref span84[num]; + ref QuestSequence reference74 = ref span22[7]; QuestSequence obj84 = new QuestSequence { Sequence = 7 @@ -148886,44 +123526,37 @@ public static class AssemblyQuestLoader num2 = 3; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.5874f, 227.05162f, 717.32074f), 397) + Span span24 = CollectionsMarshal.AsSpan(list94); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(529.5874f, 227.05162f, 717.32074f), 397) { Fly = true }; - index2++; - span94[index2] = new QuestStep(EInteractionType.None, null, null, 397) + span24[1] = new QuestStep(EInteractionType.None, null, null, 397) { Mount = false }; - index2++; - span94[index2] = new QuestStep(EInteractionType.Interact, 1015149u, new Vector3(533.59265f, 228.33778f, 720.2715f), 397) + span24[2] = new QuestStep(EInteractionType.Interact, 1015149u, new Vector3(533.59265f, 228.33778f, 720.2715f), 397) { StopDistance = 4f }; obj84.Steps = list94; reference74 = obj84; - num++; - ref QuestSequence reference75 = ref span84[num]; + ref QuestSequence reference75 = ref span22[8]; QuestSequence obj85 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 4f, Fly = false }; obj85.Steps = list95; reference75 = obj85; - num++; - ref QuestSequence reference76 = ref span84[num]; + ref QuestSequence reference76 = ref span22[9]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -148931,9 +123564,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -148965,26 +123596,21 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "kaiser"; + CollectionsMarshal.AsSpan(list97)[0] = "kaiser"; questRoot11.Author = list97; - index = 6; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference77 = ref span98[num]; + num = 6; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span25 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference77 = ref span25[0]; QuestSequence obj87 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list99)[0]; QuestStep obj88 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -149000,20 +123626,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list100 = new List(index3); - CollectionsMarshal.SetCount(list100, index3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = 419; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + CollectionsMarshal.AsSpan(list100)[0] = 419; obj89.InTerritory = list100; skipConditions16.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions16; reference78 = obj88; obj87.Steps = list99; reference77 = obj87; - num++; - ref QuestSequence reference79 = ref span98[num]; + ref QuestSequence reference79 = ref span25[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -149021,9 +123644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1015168u, new Vector3(-266.01056f, 126.407364f, -0.045776367f), 397) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1015168u, new Vector3(-266.01056f, 126.407364f, -0.045776367f), 397) { StopDistance = 5f, Fly = true, @@ -149038,18 +123659,16 @@ public static class AssemblyQuestLoader }; obj90.Steps = list101; reference79 = obj90; - num++; - ref QuestSequence reference80 = ref span98[num]; + ref QuestSequence reference80 = ref span25[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num2 = 0; - ref QuestStep reference81 = ref span102[num2]; + num2 = 3; + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + Span span26 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference81 = ref span26[0]; QuestStep obj92 = new QuestStep(EInteractionType.Action, 1015169u, new Vector3(-311.42145f, 126.83597f, 3.4942627f), 397) { StopDistance = 4f, @@ -149058,48 +123677,34 @@ public static class AssemblyQuestLoader num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - 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); + 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); obj92.CompletionQuestVariablesFlags = list103; reference81 = obj92; - num2++; - ref QuestStep reference82 = ref span102[num2]; + ref QuestStep reference82 = ref span26[1]; QuestStep obj93 = new QuestStep(EInteractionType.Action, 1015171u, new Vector3(-320.02753f, 126.52038f, -14.023071f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; - 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); + 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); obj93.CompletionQuestVariablesFlags = list104; reference82 = obj93; - num2++; - ref QuestStep reference83 = ref span102[num2]; + ref QuestStep reference83 = ref span26[2]; QuestStep obj94 = new QuestStep(EInteractionType.Action, 1015170u, new Vector3(-296.86432f, 125.87531f, -14.389343f), 397) { StopDistance = 4f, @@ -149108,25 +123713,18 @@ public static class AssemblyQuestLoader num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - 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); + 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); obj94.CompletionQuestVariablesFlags = list105; reference83 = obj94; obj91.Steps = list102; reference80 = obj91; - num++; - ref QuestSequence reference84 = ref span98[num]; + ref QuestSequence reference84 = ref span25[3]; QuestSequence obj95 = new QuestSequence { Sequence = 3 @@ -149134,34 +123732,28 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 1015163u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1015163u, new Vector3(-310.0786f, 125.02021f, -25.192688f), 397) { StopDistance = 4f }; obj95.Steps = list106; reference84 = obj95; - num++; - ref QuestSequence reference85 = ref span98[num]; + ref QuestSequence reference85 = ref span25[4]; QuestSequence obj96 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj96.Steps = list107; reference85 = obj96; - num++; - ref QuestSequence reference86 = ref span98[num]; + ref QuestSequence reference86 = ref span25[5]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -149169,9 +123761,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -149203,26 +123793,21 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "kaiser"; + CollectionsMarshal.AsSpan(list109)[0] = "kaiser"; questRoot12.Author = list109; - index = 6; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference87 = ref span110[num]; + num = 6; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span30 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference87 = ref span30[0]; QuestSequence obj98 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list111)[0]; QuestStep obj99 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -149238,20 +123823,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list112 = new List(index3); - CollectionsMarshal.SetCount(list112, index3); - Span span112 = CollectionsMarshal.AsSpan(list112); - num3 = 0; - span112[num3] = 419; + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + CollectionsMarshal.AsSpan(list112)[0] = 419; obj100.InTerritory = list112; skipConditions17.AetheryteShortcutIf = obj100; obj99.SkipConditions = skipConditions17; reference88 = obj99; obj98.Steps = list111; reference87 = obj98; - num++; - ref QuestSequence reference89 = ref span110[num]; + ref QuestSequence reference89 = ref span30[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -149259,9 +123841,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1015084u, new Vector3(487.08313f, -51.1414f, 33.340942f), 398) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1015084u, new Vector3(487.08313f, -51.1414f, 33.340942f), 398) { StopDistance = 5f, Fly = false, @@ -149276,18 +123856,16 @@ public static class AssemblyQuestLoader }; obj101.Steps = list113; reference89 = obj101; - num++; - ref QuestSequence reference90 = ref span110[num]; + ref QuestSequence reference90 = ref span30[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list114 = new List(index2); - CollectionsMarshal.SetCount(list114, index2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num2 = 0; - ref QuestStep reference91 = ref span114[num2]; + num2 = 3; + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + Span span31 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference91 = ref span31[0]; QuestStep obj103 = new QuestStep(EInteractionType.Action, 1015094u, new Vector3(472.03772f, -51.14139f, 8.590759f), 398) { StopDistance = 4f, @@ -149296,48 +123874,34 @@ public static class AssemblyQuestLoader num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - 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); + 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); obj103.CompletionQuestVariablesFlags = list115; reference91 = obj103; - num2++; - ref QuestStep reference92 = ref span114[num2]; + ref QuestStep reference92 = ref span31[1]; QuestStep obj104 = new QuestStep(EInteractionType.Action, 1015092u, new Vector3(560.9979f, -51.27571f, 62.974f), 398) { StopDistance = 4f, Action = EAction.AspectedBenefic }; - 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); + 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); obj104.CompletionQuestVariablesFlags = list116; reference92 = obj104; - num2++; - ref QuestStep reference93 = ref span114[num2]; + ref QuestStep reference93 = ref span31[2]; QuestStep obj105 = new QuestStep(EInteractionType.Action, 1015093u, new Vector3(465.568f, -51.19559f, 98.10022f), 398) { StopDistance = 4f, @@ -149346,25 +123910,18 @@ public static class AssemblyQuestLoader num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - 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); + 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); obj105.CompletionQuestVariablesFlags = list117; reference93 = obj105; obj102.Steps = list114; reference90 = obj102; - num++; - ref QuestSequence reference94 = ref span110[num]; + ref QuestSequence reference94 = ref span30[3]; QuestSequence obj106 = new QuestSequence { Sequence = 3 @@ -149372,9 +123929,7 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1015087u, new Vector3(509.75806f, -51.32657f, 75.913574f), 398) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1015087u, new Vector3(509.75806f, -51.32657f, 75.913574f), 398) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -149388,18 +123943,15 @@ public static class AssemblyQuestLoader }; obj106.Steps = list118; reference94 = obj106; - num++; - ref QuestSequence reference95 = ref span110[num]; + ref QuestSequence reference95 = ref span30[4]; QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f, Fly = true, @@ -149414,8 +123966,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list119; reference95 = obj107; - num++; - ref QuestSequence reference96 = ref span110[num]; + ref QuestSequence reference96 = ref span30[5]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -149423,9 +123974,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -149457,26 +124006,21 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "kaiser"; + CollectionsMarshal.AsSpan(list121)[0] = "kaiser"; questRoot13.Author = list121; - index = 9; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num = 0; - ref QuestSequence reference97 = ref span122[num]; + num = 9; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + Span span35 = CollectionsMarshal.AsSpan(list122); + ref QuestSequence reference97 = ref span35[0]; QuestSequence obj109 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list123)[0]; QuestStep obj110 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -149492,20 +124036,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list124 = new List(index3); - CollectionsMarshal.SetCount(list124, index3); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - span124[num3] = 419; + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = 419; obj111.InTerritory = list124; skipConditions18.AetheryteShortcutIf = obj111; obj110.SkipConditions = skipConditions18; reference98 = obj110; obj109.Steps = list123; reference97 = obj109; - num++; - ref QuestSequence reference99 = ref span122[num]; + ref QuestSequence reference99 = ref span35[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -149513,9 +124054,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) { StopDistance = 5f, Fly = true, @@ -149530,26 +124069,22 @@ public static class AssemblyQuestLoader }; obj112.Steps = list125; reference99 = obj112; - num++; - ref QuestSequence reference100 = ref span122[num]; + ref QuestSequence reference100 = ref span35[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj113.Steps = list126; reference100 = obj113; - num++; - ref QuestSequence reference101 = ref span122[num]; + ref QuestSequence reference101 = ref span35[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -149557,35 +124092,29 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Action, 1015191u, new Vector3(651.78906f, 207.92256f, -268.29938f), 397) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Action, 1015191u, new Vector3(651.78906f, 207.92256f, -268.29938f), 397) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj114.Steps = list127; reference101 = obj114; - num++; - ref QuestSequence reference102 = ref span122[num]; + ref QuestSequence reference102 = ref span35[4]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f, Action = EAction.AspectedBenefic }; obj115.Steps = list128; reference102 = obj115; - num++; - ref QuestSequence reference103 = ref span122[num]; + ref QuestSequence reference103 = ref span35[5]; QuestSequence obj116 = new QuestSequence { Sequence = 5 @@ -149593,9 +124122,8 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref QuestStep reference104 = ref span129[index2]; + Span span36 = CollectionsMarshal.AsSpan(list129); + ref QuestStep reference104 = ref span36[0]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, null, new Vector3(614.313f, 210.86438f, -301.28937f), 397) { StopDistance = 3f, @@ -149604,38 +124132,31 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list130)[0] = new ComplexCombatData { DataId = 4676u, MinimumKillCount = 3u }; obj117.ComplexCombatData = list130; reference104 = obj117; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006415u, new Vector3(614.313f, 210.86438f, -301.28937f), 397); + span36[1] = new QuestStep(EInteractionType.Interact, 2006415u, new Vector3(614.313f, 210.86438f, -301.28937f), 397); obj116.Steps = list129; reference103 = obj116; - num++; - ref QuestSequence reference105 = ref span122[num]; + ref QuestSequence reference105 = ref span35[6]; QuestSequence obj118 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 3f }; obj118.Steps = list131; reference105 = obj118; - num++; - ref QuestSequence reference106 = ref span122[num]; + ref QuestSequence reference106 = ref span35[7]; QuestSequence obj119 = new QuestSequence { Sequence = 7 @@ -149643,27 +124164,22 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1015181u, new Vector3(707.94226f, 204.32489f, -252.49103f), 397) { StopDistance = 5f, Fly = true }; obj119.Steps = list132; reference106 = obj119; - num++; - ref QuestSequence reference107 = ref span122[num]; + ref QuestSequence reference107 = ref span35[8]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -149695,16 +124211,13 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "kaiser"; + CollectionsMarshal.AsSpan(list134)[0] = "kaiser"; questRoot14.Author = list134; - index = 6; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference108 = ref span135[num]; + num = 6; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span37 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference108 = ref span37[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -149712,9 +124225,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - ref QuestStep reference109 = ref span136[index2]; + ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list136)[0]; QuestStep obj122 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -149730,30 +124241,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list137 = new List(index3); - CollectionsMarshal.SetCount(list137, index3); - Span span137 = CollectionsMarshal.AsSpan(list137); - num3 = 0; - span137[num3] = 419; + num3 = 1; + List list137 = new List(num3); + CollectionsMarshal.SetCount(list137, num3); + CollectionsMarshal.AsSpan(list137)[0] = 419; obj123.InTerritory = list137; skipConditions19.AetheryteShortcutIf = obj123; obj122.SkipConditions = skipConditions19; reference109 = obj122; obj121.Steps = list136; reference108 = obj121; - num++; - ref QuestSequence reference110 = ref span135[num]; + ref QuestSequence reference110 = ref span37[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -149773,8 +124279,7 @@ public static class AssemblyQuestLoader }; obj124.Steps = list138; reference110 = obj124; - num++; - ref QuestSequence reference111 = ref span135[num]; + ref QuestSequence reference111 = ref span37[2]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -149782,9 +124287,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - ref QuestStep reference112 = ref span139[index2]; + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list139)[0]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1015111u, new Vector3(-447.65393f, 159.354f, 147.63098f), 399) { StopDistance = 5f, @@ -149801,9 +124304,7 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span140 = CollectionsMarshal.AsSpan(list140); - index3 = 0; - span140[index3] = 399; + CollectionsMarshal.AsSpan(list140)[0] = 399; skipAetheryteCondition.InTerritory = list140; skipConditions20.AetheryteShortcutIf = skipAetheryteCondition; skipConditions20.AethernetShortcutIf = new SkipAetheryteCondition @@ -149814,18 +124315,15 @@ public static class AssemblyQuestLoader reference112 = obj126; obj125.Steps = list139; reference111 = obj125; - num++; - ref QuestSequence reference113 = ref span135[num]; + ref QuestSequence reference113 = ref span37[3]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num2 = 0; - ref QuestStep reference114 = ref span141[num2]; + num2 = 1; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list141)[0]; QuestStep obj128 = new QuestStep(EInteractionType.SinglePlayerDuty, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) { StopDistance = 4f, @@ -149842,12 +124340,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list142 = new List(index3); - CollectionsMarshal.SetCount(list142, index3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = 399; + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = 399; obj129.InTerritory = list142; skipConditions21.AetheryteShortcutIf = obj129; skipConditions21.AethernetShortcutIf = new SkipAetheryteCondition @@ -149858,8 +124354,7 @@ public static class AssemblyQuestLoader reference114 = obj128; obj127.Steps = list141; reference113 = obj127; - num++; - ref QuestSequence reference115 = ref span135[num]; + ref QuestSequence reference115 = ref span37[4]; QuestSequence obj130 = new QuestSequence { Sequence = 4 @@ -149867,26 +124362,21 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1015114u, new Vector3(-370.47382f, 147.34354f, 59.128662f), 399) { StopDistance = 4f }; obj130.Steps = list143; reference115 = obj130; - num++; - ref QuestSequence reference116 = ref span135[num]; + ref QuestSequence reference116 = ref span37[5]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -149918,16 +124408,13 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list145)[0] = "plogon_enjoyer"; questRoot15.Author = list145; - index = 9; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference117 = ref span146[num]; + num = 9; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span38 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference117 = ref span38[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -149935,9 +124422,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - ref QuestStep reference118 = ref span147[index2]; + ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list147)[0]; QuestStep obj133 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -149952,11 +124437,9 @@ public static class AssemblyQuestLoader num3 = 2; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span148 = CollectionsMarshal.AsSpan(list148); - index3 = 0; - span148[index3] = 130; - index3++; - span148[index3] = 131; + Span span39 = CollectionsMarshal.AsSpan(list148); + span39[0] = 130; + span39[1] = 131; skipAetheryteCondition2.InTerritory = list148; skipConditions22.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions22.AethernetShortcutIf = new SkipAetheryteCondition @@ -149967,26 +124450,22 @@ public static class AssemblyQuestLoader reference118 = obj133; obj132.Steps = list147; reference117 = obj132; - num++; - ref QuestSequence reference119 = ref span146[num]; + ref QuestSequence reference119 = ref span38[1]; QuestSequence obj134 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj134.Steps = list149; reference119 = obj134; - num++; - ref QuestSequence reference120 = ref span146[num]; + ref QuestSequence reference120 = ref span38[2]; QuestSequence obj135 = new QuestSequence { Sequence = 2 @@ -149994,43 +124473,35 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 1013976u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1013976u, new Vector3(95.87244f, -4.4635005f, -533.56226f), 156) { Fly = true }; obj135.Steps = list150; reference120 = obj135; - num++; - ref QuestSequence reference121 = ref span146[num]; + ref QuestSequence reference121 = ref span38[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list151 = new List(index2); - CollectionsMarshal.SetCount(list151, index2); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref QuestStep reference122 = ref span151[num2]; + num2 = 1; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list151)[0]; QuestStep obj137 = new QuestStep(EInteractionType.Combat, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = 777u; + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = 777u; obj137.KillEnemyDataIds = list152; reference122 = obj137; obj136.Steps = list151; reference121 = obj136; - num++; - ref QuestSequence reference123 = ref span146[num]; + ref QuestSequence reference123 = ref span38[4]; QuestSequence obj138 = new QuestSequence { Sequence = 4 @@ -150038,23 +124509,18 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1013977u, new Vector3(207.53784f, 18.12324f, -608.75867f), 156); obj138.Steps = list153; reference123 = obj138; - num++; - ref QuestSequence reference124 = ref span146[num]; + ref QuestSequence reference124 = ref span38[5]; QuestSequence obj139 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference125 = ref span154[num2]; + num2 = 1; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list154)[0]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156) { Fly = true, @@ -150063,15 +124529,12 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = 4615u; + CollectionsMarshal.AsSpan(list155)[0] = 4615u; obj140.KillEnemyDataIds = list155; reference125 = obj140; obj139.Steps = list154; reference124 = obj139; - num++; - ref QuestSequence reference126 = ref span146[num]; + ref QuestSequence reference126 = ref span38[6]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -150079,30 +124542,24 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156); + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1013978u, new Vector3(205.95093f, -22.991264f, -449.24084f), 156); obj141.Steps = list156; reference126 = obj141; - num++; - ref QuestSequence reference127 = ref span146[num]; + ref QuestSequence reference127 = ref span38[7]; QuestSequence obj142 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj142.Steps = list157; reference127 = obj142; - num++; - ref QuestSequence reference128 = ref span146[num]; + ref QuestSequence reference128 = ref span38[8]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -150110,9 +124567,7 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -150127,26 +124582,21 @@ public static class AssemblyQuestLoader num = 1; List list159 = new List(num); CollectionsMarshal.SetCount(list159, num); - Span span159 = CollectionsMarshal.AsSpan(list159); - index = 0; - span159[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list159)[0] = "plogon_enjoyer"; questRoot16.Author = list159; - index = 10; - List list160 = new List(index); - CollectionsMarshal.SetCount(list160, index); - Span span160 = CollectionsMarshal.AsSpan(list160); - num = 0; - ref QuestSequence reference129 = ref span160[num]; + num = 10; + List list160 = new List(num); + CollectionsMarshal.SetCount(list160, num); + Span span40 = CollectionsMarshal.AsSpan(list160); + ref QuestSequence reference129 = ref span40[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -150159,8 +124609,7 @@ public static class AssemblyQuestLoader }; obj144.Steps = list161; reference129 = obj144; - num++; - ref QuestSequence reference130 = ref span160[num]; + ref QuestSequence reference130 = ref span40[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -150168,35 +124617,29 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.Interact, 1013982u, new Vector3(-73.0755f, 2.668869f, -622.52234f), 156) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1013982u, new Vector3(-73.0755f, 2.668869f, -622.52234f), 156) { Fly = true }; obj145.Steps = list162; reference130 = obj145; - num++; - ref QuestSequence reference131 = ref span160[num]; + ref QuestSequence reference131 = ref span40[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span163[num2] = new QuestStep(EInteractionType.Interact, 1013984u, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156); + span41[1] = new QuestStep(EInteractionType.Interact, 1013984u, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156); obj146.Steps = list163; reference131 = obj146; - num++; - ref QuestSequence reference132 = ref span160[num]; + ref QuestSequence reference132 = ref span40[3]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -150204,44 +124647,36 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - ref QuestStep reference133 = ref span164[index2]; + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list164)[0]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, null, new Vector3(-142.22937f, 1.3916924f, -654.13904f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list165 = new List(index3); - CollectionsMarshal.SetCount(list165, index3); - Span span165 = CollectionsMarshal.AsSpan(list165); - num3 = 0; - span165[num3] = 5047u; + num3 = 1; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + CollectionsMarshal.AsSpan(list165)[0] = 5047u; obj148.KillEnemyDataIds = list165; reference133 = obj148; obj147.Steps = list164; reference132 = obj147; - num++; - ref QuestSequence reference134 = ref span160[num]; + ref QuestSequence reference134 = ref span40[4]; QuestSequence obj149 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.Interact, 1013987u, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156); + span42[1] = new QuestStep(EInteractionType.Interact, 1013987u, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156); obj149.Steps = list166; reference134 = obj149; - num++; - ref QuestSequence reference135 = ref span160[num]; + ref QuestSequence reference135 = ref span40[5]; QuestSequence obj150 = new QuestSequence { Sequence = 5 @@ -150249,9 +124684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - ref QuestStep reference136 = ref span167[index2]; + ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list167)[0]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(-223.40735f, 4.1458693f, -628.32074f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -150259,34 +124692,28 @@ public static class AssemblyQuestLoader num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - index3 = 0; - span168[index3] = 5047u; + CollectionsMarshal.AsSpan(list168)[0] = 5047u; obj151.KillEnemyDataIds = list168; reference136 = obj151; obj150.Steps = list167; reference135 = obj150; - num++; - ref QuestSequence reference137 = ref span160[num]; + ref QuestSequence reference137 = ref span40[6]; QuestSequence obj152 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; - num2++; - span169[num2] = new QuestStep(EInteractionType.Interact, 1013990u, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156); + span43[1] = new QuestStep(EInteractionType.Interact, 1013990u, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156); obj152.Steps = list169; reference137 = obj152; - num++; - ref QuestSequence reference138 = ref span160[num]; + ref QuestSequence reference138 = ref span40[7]; QuestSequence obj153 = new QuestSequence { Sequence = 7 @@ -150294,42 +124721,34 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - ref QuestStep reference139 = ref span170[index2]; + ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list170)[0]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, null, new Vector3(-253.83386f, -5.455734f, -542.87024f), 156) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list171 = new List(index3); - CollectionsMarshal.SetCount(list171, index3); - Span span171 = CollectionsMarshal.AsSpan(list171); - num3 = 0; - span171[num3] = 5043u; + num3 = 1; + List list171 = new List(num3); + CollectionsMarshal.SetCount(list171, num3); + CollectionsMarshal.AsSpan(list171)[0] = 5043u; obj154.KillEnemyDataIds = list171; reference139 = obj154; obj153.Steps = list170; reference138 = obj153; - num++; - ref QuestSequence reference140 = ref span160[num]; + ref QuestSequence reference140 = ref span40[8]; QuestSequence obj155 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true }; obj155.Steps = list172; reference140 = obj155; - num++; - ref QuestSequence reference141 = ref span160[num]; + ref QuestSequence reference141 = ref span40[9]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -150337,9 +124756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -150354,26 +124771,21 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - Span span174 = CollectionsMarshal.AsSpan(list174); - index = 0; - span174[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list174)[0] = "plogon_enjoyer"; questRoot17.Author = list174; - index = 4; - List list175 = new List(index); - CollectionsMarshal.SetCount(list175, index); - Span span175 = CollectionsMarshal.AsSpan(list175); - num = 0; - ref QuestSequence reference142 = ref span175[num]; + num = 4; + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + Span span44 = CollectionsMarshal.AsSpan(list175); + ref QuestSequence reference142 = ref span44[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -150386,8 +124798,7 @@ public static class AssemblyQuestLoader }; obj157.Steps = list176; reference142 = obj157; - num++; - ref QuestSequence reference143 = ref span175[num]; + ref QuestSequence reference143 = ref span44[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -150395,34 +124806,28 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1013997u, new Vector3(-78.29407f, 68.34659f, -157.33582f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj158.Steps = list177; reference143 = obj158; - num++; - ref QuestSequence reference144 = ref span175[num]; + ref QuestSequence reference144 = ref span44[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 4f }; obj159.Steps = list178; reference144 = obj159; - num++; - ref QuestSequence reference145 = ref span175[num]; + ref QuestSequence reference145 = ref span44[3]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -150430,9 +124835,7 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -150447,26 +124850,21 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; questRoot18.Author = list180; - index = 5; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference146 = ref span181[num]; + num = 5; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span45 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference146 = ref span45[0]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -150479,8 +124877,7 @@ public static class AssemblyQuestLoader }; obj161.Steps = list182; reference146 = obj161; - num++; - ref QuestSequence reference147 = ref span181[num]; + ref QuestSequence reference147 = ref span45[1]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -150488,27 +124885,22 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 1013999u, new Vector3(33.89026f, -8.812927f, 126.17676f), 154) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1013999u, new Vector3(33.89026f, -8.812927f, 126.17676f), 154) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj162.Steps = list183; reference147 = obj162; - num++; - ref QuestSequence reference148 = ref span181[num]; + ref QuestSequence reference148 = ref span45[2]; QuestSequence obj163 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list184 = new List(index2); - CollectionsMarshal.SetCount(list184, index2); - Span span184 = CollectionsMarshal.AsSpan(list184); - num2 = 0; - ref QuestStep reference149 = ref span184[num2]; + num2 = 1; + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list184)[0]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2005966u, new Vector3(163.53088f, -27.328918f, 207.84314f), 154) { Fly = true, @@ -150517,15 +124909,12 @@ public static class AssemblyQuestLoader num3 = 1; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span185 = CollectionsMarshal.AsSpan(list185); - index3 = 0; - span185[index3] = 5043u; + CollectionsMarshal.AsSpan(list185)[0] = 5043u; obj164.KillEnemyDataIds = list185; reference149 = obj164; obj163.Steps = list184; reference148 = obj163; - num++; - ref QuestSequence reference150 = ref span181[num]; + ref QuestSequence reference150 = ref span45[3]; QuestSequence obj165 = new QuestSequence { Sequence = 3 @@ -150533,26 +124922,21 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1014001u, new Vector3(404.89807f, -5.4588227f, 72.342896f), 154) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1014001u, new Vector3(404.89807f, -5.4588227f, 72.342896f), 154) { Fly = true }; obj165.Steps = list186; reference150 = obj165; - num++; - ref QuestSequence reference151 = ref span181[num]; + ref QuestSequence reference151 = ref span45[4]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -150567,16 +124951,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; questRoot19.Author = list188; - index = 7; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference152 = ref span189[num]; + num = 7; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span46 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference152 = ref span46[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -150584,9 +124965,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -150599,31 +124978,27 @@ public static class AssemblyQuestLoader }; obj167.Steps = list190; reference152 = obj167; - num++; - ref QuestSequence reference153 = ref span189[num]; + ref QuestSequence reference153 = ref span46[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - num2++; - span191[num2] = new QuestStep(EInteractionType.Interact, 1014005u, new Vector3(-631.22f, 121.245285f, -652.39954f), 397) + span47[1] = new QuestStep(EInteractionType.Interact, 1014005u, new Vector3(-631.22f, 121.245285f, -652.39954f), 397) { Fly = true }; obj168.Steps = list191; reference153 = obj168; - num++; - ref QuestSequence reference154 = ref span189[num]; + ref QuestSequence reference154 = ref span46[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -150631,43 +125006,35 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - ref QuestStep reference155 = ref span192[index2]; + ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list192)[0]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, 2005967u, new Vector3(-556.9696f, 116.68567f, -794.0032f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list193 = new List(index3); - CollectionsMarshal.SetCount(list193, index3); - Span span193 = CollectionsMarshal.AsSpan(list193); - num3 = 0; - span193[num3] = 4627u; + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + CollectionsMarshal.AsSpan(list193)[0] = 4627u; obj170.KillEnemyDataIds = list193; reference155 = obj170; obj169.Steps = list192; reference154 = obj169; - num++; - ref QuestSequence reference156 = ref span189[num]; + ref QuestSequence reference156 = ref span46[3]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj171.Steps = list194; reference156 = obj171; - num++; - ref QuestSequence reference157 = ref span189[num]; + ref QuestSequence reference157 = ref span46[4]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -150675,31 +125042,25 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1014007u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1014007u, new Vector3(-621.51526f, 121.248f, -649.13403f), 397); obj172.Steps = list195; reference157 = obj172; - num++; - ref QuestSequence reference158 = ref span189[num]; + ref QuestSequence reference158 = ref span46[5]; QuestSequence obj173 = new QuestSequence { Sequence = 5 }; - 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) + 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) { DelaySecondsAtStart = 1f, Emote = EEmote.Rally }; obj173.Steps = list196; reference158 = obj173; - num++; - ref QuestSequence reference159 = ref span189[num]; + ref QuestSequence reference159 = ref span46[6]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -150707,9 +125068,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -150724,26 +125083,21 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list198)[0] = "plogon_enjoyer"; questRoot20.Author = list198; - index = 4; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference160 = ref span199[num]; + num = 4; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span48 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference160 = ref span48[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -150756,8 +125110,7 @@ public static class AssemblyQuestLoader }; obj175.Steps = list200; reference160 = obj175; - num++; - ref QuestSequence reference161 = ref span199[num]; + ref QuestSequence reference161 = ref span48[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -150765,9 +125118,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - ref QuestStep reference162 = ref span201[index2]; + ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list201)[0]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 1014012u, new Vector3(-142.1684f, 26.764246f, -357.50366f), 146) { Fly = true, @@ -150776,9 +125127,7 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - index3 = 0; - span202[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK600_02031_Q1_000_000"), @@ -150788,22 +125137,18 @@ public static class AssemblyQuestLoader reference162 = obj177; obj176.Steps = list201; reference161 = obj176; - num++; - ref QuestSequence reference163 = ref span199[num]; + ref QuestSequence reference163 = ref span48[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj178.Steps = list203; reference163 = obj178; - num++; - ref QuestSequence reference164 = ref span199[num]; + ref QuestSequence reference164 = ref span48[3]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -150811,9 +125156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014112u, new Vector3(-149.34009f, 12.685881f, -260.91406f), 146) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014112u, new Vector3(-149.34009f, 12.685881f, -260.91406f), 146) { StopDistance = 4f, NextQuestId = new QuestId(2426) @@ -150827,26 +125170,21 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "goatzone"; + CollectionsMarshal.AsSpan(list205)[0] = "goatzone"; questRoot21.Author = list205; - index = 7; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference165 = ref span206[num]; + num = 7; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span49 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference165 = ref span49[0]; QuestSequence obj180 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list207)[0]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -150861,12 +125199,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list208 = new List(index3); - CollectionsMarshal.SetCount(list208, index3); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = 131; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + CollectionsMarshal.AsSpan(list208)[0] = 131; obj182.InTerritory = list208; skipConditions23.AetheryteShortcutIf = obj182; skipConditions23.AethernetShortcutIf = new SkipAetheryteCondition @@ -150877,8 +125213,7 @@ public static class AssemblyQuestLoader reference166 = obj181; obj180.Steps = list207; reference165 = obj180; - num++; - ref QuestSequence reference167 = ref span206[num]; + ref QuestSequence reference167 = ref span49[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -150886,9 +125221,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.Interact, 1014046u, new Vector3(38.223755f, 5.000002f, 404.28784f), 147) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1014046u, new Vector3(38.223755f, 5.000002f, 404.28784f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog, SkipConditions = new SkipConditions @@ -150901,25 +125234,21 @@ public static class AssemblyQuestLoader }; obj183.Steps = list209; reference167 = obj183; - num++; - ref QuestSequence reference168 = ref span206[num]; + ref QuestSequence reference168 = ref span49[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj184.Steps = list210; reference168 = obj184; - num++; - ref QuestSequence reference169 = ref span206[num]; + ref QuestSequence reference169 = ref span49[3]; QuestSequence obj185 = new QuestSequence { Sequence = 3 @@ -150927,9 +125256,7 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - ref QuestStep reference170 = ref span211[index2]; + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list211)[0]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2005978u, new Vector3(1.5715942f, 21.316772f, 181.8722f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -150937,29 +125264,23 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span212 = CollectionsMarshal.AsSpan(list212); - index3 = 0; - span212[index3] = 4686u; + CollectionsMarshal.AsSpan(list212)[0] = 4686u; obj186.KillEnemyDataIds = list212; reference170 = obj186; obj185.Steps = list211; reference169 = obj185; - num++; - ref QuestSequence reference171 = ref span206[num]; + ref QuestSequence reference171 = ref span49[4]; QuestSequence obj187 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj187.Steps = list213; reference171 = obj187; - num++; - ref QuestSequence reference172 = ref span206[num]; + ref QuestSequence reference172 = ref span49[5]; QuestSequence obj188 = new QuestSequence { Sequence = 5 @@ -150967,9 +125288,7 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - ref QuestStep reference173 = ref span214[index2]; + ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list214)[0]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -150984,12 +125303,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list215 = new List(index3); - CollectionsMarshal.SetCount(list215, index3); - Span span215 = CollectionsMarshal.AsSpan(list215); - num3 = 0; - span215[num3] = 131; + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + CollectionsMarshal.AsSpan(list215)[0] = 131; obj190.InTerritory = list215; skipConditions24.AetheryteShortcutIf = obj190; skipConditions24.AethernetShortcutIf = new SkipAetheryteCondition @@ -151000,18 +125317,15 @@ public static class AssemblyQuestLoader reference173 = obj189; obj188.Steps = list214; reference172 = obj188; - num++; - ref QuestSequence reference174 = ref span206[num]; + ref QuestSequence reference174 = ref span49[6]; QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -151030,16 +125344,13 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "goatzone"; + CollectionsMarshal.AsSpan(list217)[0] = "goatzone"; questRoot22.Author = list217; - index = 5; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference175 = ref span218[num]; + num = 5; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span50 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference175 = ref span50[0]; QuestSequence obj192 = new QuestSequence { Sequence = 0 @@ -151047,9 +125358,7 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - ref QuestStep reference176 = ref span219[index2]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list219)[0]; QuestStep obj193 = new QuestStep(EInteractionType.AcceptQuest, 1003995u, new Vector3(75.33374f, 2.135708f, 316.33472f), 141) { Fly = true, @@ -151068,9 +125377,7 @@ public static class AssemblyQuestLoader num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span220 = CollectionsMarshal.AsSpan(list220); - index3 = 0; - span220[index3] = 141; + CollectionsMarshal.AsSpan(list220)[0] = 141; obj194.InTerritory = list220; skipConditions25.AetheryteShortcutIf = obj194; skipConditions25.AethernetShortcutIf = new SkipAetheryteCondition @@ -151081,18 +125388,16 @@ public static class AssemblyQuestLoader reference176 = obj193; obj192.Steps = list219; reference175 = obj192; - num++; - ref QuestSequence reference177 = ref span218[num]; + ref QuestSequence reference177 = ref span50[1]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list221 = new List(index2); - CollectionsMarshal.SetCount(list221, index2); - Span span221 = CollectionsMarshal.AsSpan(list221); - num2 = 0; - ref QuestStep reference178 = ref span221[num2]; + num2 = 3; + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + Span span51 = CollectionsMarshal.AsSpan(list221); + ref QuestStep reference178 = ref span51[0]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1011237u, new Vector3(447.3181f, 212.53984f, 725.00183f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -151104,26 +125409,19 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj196.CompletionQuestVariablesFlags = list222; reference178 = obj196; - num2++; - ref QuestStep reference179 = ref span221[num2]; + ref QuestStep reference179 = ref span51[1]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) { Fly = true @@ -151131,49 +125429,35 @@ public static class AssemblyQuestLoader num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - 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); + 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); obj197.CompletionQuestVariablesFlags = list223; reference179 = obj197; - num2++; - ref QuestStep reference180 = ref span221[num2]; + ref QuestStep reference180 = ref span51[2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1011235u, new Vector3(522.54517f, 228.3512f, 723.5675f), 397) { Fly = true }; - 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); + 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); obj198.CompletionQuestVariablesFlags = list224; reference180 = obj198; obj195.Steps = list221; reference177 = obj195; - num++; - ref QuestSequence reference181 = ref span218[num]; + ref QuestSequence reference181 = ref span50[2]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -151181,26 +125465,22 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Interact, 1014052u, new Vector3(458.12158f, 200.23763f, 658.0757f), 397) + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1014052u, new Vector3(458.12158f, 200.23763f, 658.0757f), 397) { Fly = true }; obj199.Steps = list225; reference181 = obj199; - num++; - ref QuestSequence reference182 = ref span218[num]; + ref QuestSequence reference182 = ref span50[3]; QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list226 = new List(index2); - CollectionsMarshal.SetCount(list226, index2); - Span span226 = CollectionsMarshal.AsSpan(list226); - num2 = 0; - ref QuestStep reference183 = ref span226[num2]; + num2 = 2; + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + Span span55 = CollectionsMarshal.AsSpan(list226); + ref QuestStep reference183 = ref span55[0]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(50.883884f, 124.41451f, 174.64914f), 397) { Fly = true, @@ -151209,36 +125489,26 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span227 = CollectionsMarshal.AsSpan(list227); - index3 = 0; - span227[index3] = 5043u; - index3++; - span227[index3] = 4619u; + Span span56 = CollectionsMarshal.AsSpan(list227); + span56[0] = 5043u; + span56[1] = 4619u; obj201.KillEnemyDataIds = list227; - 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; + 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; obj201.CompletionQuestVariablesFlags = list228; reference183 = obj201; - num2++; - span226[num2] = new QuestStep(EInteractionType.Interact, 1014053u, new Vector3(48.966187f, 124.34676f, 175.73816f), 397); + span55[1] = new QuestStep(EInteractionType.Interact, 1014053u, new Vector3(48.966187f, 124.34676f, 175.73816f), 397); obj200.Steps = list226; reference182 = obj200; - num++; - ref QuestSequence reference184 = ref span218[num]; + ref QuestSequence reference184 = ref span50[4]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -151246,9 +125516,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014054u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2034) @@ -151262,33 +125530,27 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - Span span230 = CollectionsMarshal.AsSpan(list230); - index = 0; - span230[index] = "goatzone"; + CollectionsMarshal.AsSpan(list230)[0] = "goatzone"; questRoot23.Author = list230; - index = 10; - List list231 = new List(index); - CollectionsMarshal.SetCount(list231, index); - Span span231 = CollectionsMarshal.AsSpan(list231); - num = 0; - ref QuestSequence reference185 = ref span231[num]; + num = 10; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + Span span58 = CollectionsMarshal.AsSpan(list231); + ref QuestSequence reference185 = ref span58[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj203.Steps = list232; reference185 = obj203; - num++; - ref QuestSequence reference186 = ref span231[num]; + ref QuestSequence reference186 = ref span58[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -151296,32 +125558,26 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) { Fly = true }; obj204.Steps = list233; reference186 = obj204; - num++; - ref QuestSequence reference187 = ref span231[num]; + ref QuestSequence reference187 = ref span58[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj205.Steps = list234; reference187 = obj205; - num++; - ref QuestSequence reference188 = ref span231[num]; + ref QuestSequence reference188 = ref span58[3]; QuestSequence obj206 = new QuestSequence { Sequence = 3 @@ -151329,33 +125585,27 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1014055u, new Vector3(173.69336f, 133.38922f, -413.47375f), 397) { Fly = true }; obj206.Steps = list235; reference188 = obj206; - num++; - ref QuestSequence reference189 = ref span231[num]; + ref QuestSequence reference189 = ref span58[4]; QuestSequence obj207 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj207.Steps = list236; reference189 = obj207; - num++; - ref QuestSequence reference190 = ref span231[num]; + ref QuestSequence reference190 = ref span58[5]; QuestSequence obj208 = new QuestSequence { Sequence = 5 @@ -151363,26 +125613,22 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 2005982u, new Vector3(-4.6845703f, 94.13281f, -506.15704f), 397) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2005982u, new Vector3(-4.6845703f, 94.13281f, -506.15704f), 397) { Fly = true }; obj208.Steps = list237; reference190 = obj208; - num++; - ref QuestSequence reference191 = ref span231[num]; + ref QuestSequence reference191 = ref span58[6]; QuestSequence obj209 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list238 = new List(index2); - CollectionsMarshal.SetCount(list238, index2); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref QuestStep reference192 = ref span238[num2]; + num2 = 2; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + Span span60 = CollectionsMarshal.AsSpan(list238); + ref QuestStep reference192 = ref span60[0]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(-134.89986f, 88.67885f, -576.3159f), 397) { Fly = true, @@ -151391,36 +125637,26 @@ public static class AssemblyQuestLoader num3 = 2; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - index3 = 0; - span239[index3] = 4360u; - index3++; - span239[index3] = 4619u; + Span span61 = CollectionsMarshal.AsSpan(list239); + span61[0] = 4360u; + span61[1] = 4619u; obj210.KillEnemyDataIds = list239; - 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; + 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; obj210.CompletionQuestVariablesFlags = list240; reference192 = obj210; - num2++; - span238[num2] = new QuestStep(EInteractionType.Interact, 1014058u, new Vector3(-138.35364f, 88.59643f, -577.0504f), 397); + span60[1] = new QuestStep(EInteractionType.Interact, 1014058u, new Vector3(-138.35364f, 88.59643f, -577.0504f), 397); obj209.Steps = list238; reference191 = obj209; - num++; - ref QuestSequence reference193 = ref span231[num]; + ref QuestSequence reference193 = ref span58[7]; QuestSequence obj211 = new QuestSequence { Sequence = 7 @@ -151428,30 +125664,24 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014059u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014059u, new Vector3(-788.02167f, 113.151276f, -589.807f), 397) { Fly = true }; obj211.Steps = list241; reference193 = obj211; - num++; - ref QuestSequence reference194 = ref span231[num]; + ref QuestSequence reference194 = ref span58[8]; QuestSequence obj212 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj212.Steps = list242; reference194 = obj212; - num++; - ref QuestSequence reference195 = ref span231[num]; + ref QuestSequence reference195 = ref span58[9]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -151459,9 +125689,7 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014065u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2035) @@ -151475,33 +125703,27 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "goatzone"; + CollectionsMarshal.AsSpan(list244)[0] = "goatzone"; questRoot24.Author = list244; - index = 5; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference196 = ref span245[num]; + num = 5; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span63 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference196 = ref span63[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj214.Steps = list246; reference196 = obj214; - num++; - ref QuestSequence reference197 = ref span245[num]; + ref QuestSequence reference197 = ref span63[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -151509,34 +125731,28 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj215.Steps = list247; reference197 = obj215; - num++; - ref QuestSequence reference198 = ref span245[num]; + ref QuestSequence reference198 = ref span63[2]; QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj216.Steps = list248; reference198 = obj216; - num++; - ref QuestSequence reference199 = ref span245[num]; + ref QuestSequence reference199 = ref span63[3]; QuestSequence obj217 = new QuestSequence { Sequence = 3 @@ -151544,23 +125760,18 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 2005986u, new Vector3(507.86584f, -21.927307f, -524.4374f), 398); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 2005986u, new Vector3(507.86584f, -21.927307f, -524.4374f), 398); obj217.Steps = list249; reference199 = obj217; - num++; - ref QuestSequence reference200 = ref span245[num]; + ref QuestSequence reference200 = ref span63[4]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -151582,16 +125793,13 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - Span span251 = CollectionsMarshal.AsSpan(list251); - index = 0; - span251[index] = "goatzone"; + CollectionsMarshal.AsSpan(list251)[0] = "goatzone"; questRoot25.Author = list251; - index = 10; - List list252 = new List(index); - CollectionsMarshal.SetCount(list252, index); - Span span252 = CollectionsMarshal.AsSpan(list252); - num = 0; - ref QuestSequence reference201 = ref span252[num]; + num = 10; + List list252 = new List(num); + CollectionsMarshal.SetCount(list252, num); + Span span64 = CollectionsMarshal.AsSpan(list252); + ref QuestSequence reference201 = ref span64[0]; QuestSequence obj219 = new QuestSequence { Sequence = 0 @@ -151599,35 +125807,29 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014068u, new Vector3(51.132935f, 124.95631f, 178.69836f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj219.Steps = list253; reference201 = obj219; - num++; - ref QuestSequence reference202 = ref span252[num]; + ref QuestSequence reference202 = ref span64[1]; QuestSequence obj220 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj220.Steps = list254; reference202 = obj220; - num++; - ref QuestSequence reference203 = ref span252[num]; + ref QuestSequence reference203 = ref span64[2]; QuestSequence obj221 = new QuestSequence { Sequence = 2 @@ -151635,34 +125837,28 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1011233u, new Vector3(518.9136f, 217.95152f, 769.9243f), 397) { Fly = true }; obj221.Steps = list255; reference203 = obj221; - num++; - ref QuestSequence reference204 = ref span252[num]; + ref QuestSequence reference204 = ref span64[3]; QuestSequence obj222 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj222.Steps = list256; reference204 = obj222; - num++; - ref QuestSequence reference205 = ref span252[num]; + ref QuestSequence reference205 = ref span64[4]; QuestSequence obj223 = new QuestSequence { Sequence = 4 @@ -151670,26 +125866,21 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1014075u, new Vector3(-272.17517f, -184.2003f, 736.0493f), 401) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1014075u, new Vector3(-272.17517f, -184.2003f, 736.0493f), 401) { Fly = true }; obj223.Steps = list257; reference205 = obj223; - num++; - ref QuestSequence reference206 = ref span252[num]; + ref QuestSequence reference206 = ref span64[5]; QuestSequence obj224 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list258 = new List(index2); - CollectionsMarshal.SetCount(list258, index2); - Span span258 = CollectionsMarshal.AsSpan(list258); - num2 = 0; - ref QuestStep reference207 = ref span258[num2]; + num2 = 1; + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list258)[0]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(-43.012157f, -176.80112f, 753.7885f), 401) { Fly = true, @@ -151698,17 +125889,14 @@ public static class AssemblyQuestLoader num3 = 2; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span259 = CollectionsMarshal.AsSpan(list259); - index3 = 0; - span259[index3] = 5048u; - index3++; - span259[index3] = 5049u; + Span span65 = CollectionsMarshal.AsSpan(list259); + span65[0] = 5048u; + span65[1] = 5049u; obj225.KillEnemyDataIds = list259; reference207 = obj225; obj224.Steps = list258; reference206 = obj224; - num++; - ref QuestSequence reference208 = ref span252[num]; + ref QuestSequence reference208 = ref span64[6]; QuestSequence obj226 = new QuestSequence { Sequence = 6 @@ -151716,42 +125904,34 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - ref QuestStep reference209 = ref span260[index2]; + ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list260)[0]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(207.48586f, -176.39336f, 721.5167f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + Span span66 = CollectionsMarshal.AsSpan(list261); + span66[0] = 4687u; + span66[1] = 4688u; obj227.KillEnemyDataIds = list261; reference209 = obj227; obj226.Steps = list260; reference208 = obj226; - num++; - ref QuestSequence reference210 = ref span252[num]; + ref QuestSequence reference210 = ref span64[7]; QuestSequence obj228 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj228.Steps = list262; reference210 = obj228; - num++; - ref QuestSequence reference211 = ref span252[num]; + ref QuestSequence reference211 = ref span64[8]; QuestSequence obj229 = new QuestSequence { Sequence = 8 @@ -151759,23 +125939,18 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 1014089u, new Vector3(205.98145f, -176.69763f, 739.52844f), 401); + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1014089u, new Vector3(205.98145f, -176.69763f, 739.52844f), 401); obj229.Steps = list263; reference211 = obj229; - num++; - ref QuestSequence reference212 = ref span252[num]; + ref QuestSequence reference212 = ref span64[9]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, NextQuestId = new QuestId(2037) @@ -151789,16 +125964,13 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - Span span265 = CollectionsMarshal.AsSpan(list265); - index = 0; - span265[index] = "goatzone"; + CollectionsMarshal.AsSpan(list265)[0] = "goatzone"; questRoot26.Author = list265; - index = 8; - List list266 = new List(index); - CollectionsMarshal.SetCount(list266, index); - Span span266 = CollectionsMarshal.AsSpan(list266); - num = 0; - ref QuestSequence reference213 = ref span266[num]; + num = 8; + List list266 = new List(num); + CollectionsMarshal.SetCount(list266, num); + Span span67 = CollectionsMarshal.AsSpan(list266); + ref QuestSequence reference213 = ref span67[0]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -151806,33 +125978,27 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014092u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014092u, new Vector3(509.17822f, 212.5399f, 695.796f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj231.Steps = list267; reference213 = obj231; - num++; - ref QuestSequence reference214 = ref span266[num]; + ref QuestSequence reference214 = ref span67[1]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj232.Steps = list268; reference214 = obj232; - num++; - ref QuestSequence reference215 = ref span266[num]; + ref QuestSequence reference215 = ref span67[2]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -151840,34 +126006,28 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Interact, 2005990u, new Vector3(51.865356f, 125.26123f, 179.85803f), 397) + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 2005990u, new Vector3(51.865356f, 125.26123f, 179.85803f), 397) { Fly = true }; obj233.Steps = list269; reference215 = obj233; - num++; - ref QuestSequence reference216 = ref span266[num]; + ref QuestSequence reference216 = ref span67[3]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj234.Steps = list270; reference216 = obj234; - num++; - ref QuestSequence reference217 = ref span266[num]; + ref QuestSequence reference217 = ref span67[4]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -151875,30 +126035,24 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.Interact, 1014097u, new Vector3(452.90295f, 130.79962f, -850.1869f), 397) + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1014097u, new Vector3(452.90295f, 130.79962f, -850.1869f), 397) { Fly = true }; obj235.Steps = list271; reference217 = obj235; - num++; - ref QuestSequence reference218 = ref span266[num]; + ref QuestSequence reference218 = ref span67[5]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj236.Steps = list272; reference218 = obj236; - num++; - ref QuestSequence reference219 = ref span266[num]; + ref QuestSequence reference219 = ref span67[6]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -151906,26 +126060,21 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - Span span273 = CollectionsMarshal.AsSpan(list273); - index2 = 0; - span273[index2] = new QuestStep(EInteractionType.Interact, 1014102u, new Vector3(454.5204f, 130.79962f, -850.2479f), 397) + CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Interact, 1014102u, new Vector3(454.5204f, 130.79962f, -850.2479f), 397) { StopDistance = 5f }; obj237.Steps = list273; reference219 = obj237; - num++; - ref QuestSequence reference220 = ref span266[num]; + ref QuestSequence reference220 = ref span67[7]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; @@ -151942,16 +126091,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -151959,9 +126105,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1014873u, new Vector3(101.57922f, 12.418198f, -117.60132f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -151979,27 +126123,22 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = 419; + CollectionsMarshal.AsSpan(list4)[0] = 419; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -152009,8 +126148,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list5; reference3 = obj4; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -152018,9 +126156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014875u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { NextQuestId = new QuestId(2054) }; @@ -152033,26 +126169,22 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 7; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 7; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -152076,14 +126208,11 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj6.Steps = list9; reference5 = obj6; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -152091,30 +126220,24 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 1014879u, new Vector3(134.05042f, -20.020874f, 73.746826f), 418); + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1014879u, new Vector3(134.05042f, -20.020874f, 73.746826f), 418); obj7.Steps = list10; reference6 = obj7; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj8.Steps = list11; reference7 = obj8; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span2[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -152122,32 +126245,26 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.94511f, -19.477406f, 53.021667f), 418) + Span span4 = CollectionsMarshal.AsSpan(list12); + span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.94511f, -19.477406f, 53.021667f), 418) { TargetTerritoryId = (ushort)419 }; - index2++; - span12[index2] = new QuestStep(EInteractionType.Interact, 1014882u, new Vector3(244.09851f, -13.7349415f, -95.50629f), 419); + span4[1] = new QuestStep(EInteractionType.Interact, 1014882u, new Vector3(244.09851f, -13.7349415f, -95.50629f), 419); obj9.Steps = list12; reference8 = obj9; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span2[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj10.Steps = list13; reference9 = obj10; - num++; - ref QuestSequence reference10 = ref span8[num]; + ref QuestSequence reference10 = ref span2[5]; QuestSequence obj11 = new QuestSequence { Sequence = 5 @@ -152155,30 +126272,23 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1014888u, new Vector3(40.390625f, 16.080097f, -85.9541f), 419); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1014888u, new Vector3(40.390625f, 16.080097f, -85.9541f), 419); obj11.Steps = list14; reference10 = obj11; - num++; - ref QuestSequence reference11 = ref span8[num]; + ref QuestSequence reference11 = ref span2[6]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference12 = ref span15[num2]; + num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1014889u, new Vector3(43.381348f, 16.080097f, -86.045654f), 419); - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new DialogueChoice + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK301_02054_Q1_000_115"), @@ -152196,16 +126306,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 9; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 9; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span5 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span5[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -152213,9 +126320,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference14 = ref span19[index2]; + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj14 = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -152235,9 +126340,7 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - index3 = 0; - span20[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK350_02055_Q1_000_002"), @@ -152247,25 +126350,21 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span5[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span5[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -152273,40 +126372,33 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1006215u, new Vector3(-227.34424f, 26.16842f, -352.98694f), 146); obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span18[num]; + ref QuestSequence reference17 = ref span5[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; - num2++; - span23[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) + span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-257.8064f, 14.002786f, -105.36169f), 146) { Fly = true }; - num2++; - span23[num2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146) + span6[2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span18[num]; + ref QuestSequence reference18 = ref span5[4]; QuestSequence obj18 = new QuestSequence { Sequence = 4 @@ -152314,42 +126406,34 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.UseItem, 2006291u, new Vector3(-389.12036f, 3.4332886f, -57.572388f), 146) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.UseItem, 2006291u, new Vector3(-389.12036f, 3.4332886f, -57.572388f), 146) { ItemId = 2001812u }; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span18[num]; + ref QuestSequence reference19 = ref span5[5]; QuestSequence obj19 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list25 = new List(index2); - CollectionsMarshal.SetCount(list25, index2); - Span span25 = CollectionsMarshal.AsSpan(list25); - num2 = 0; - ref QuestStep reference20 = ref span25[num2]; + num2 = 1; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list25)[0]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, 2006293u, new Vector3(-384.9088f, 6.088318f, -45.212524f), 146) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list26 = new List(index3); - CollectionsMarshal.SetCount(list26, index3); - Span span26 = CollectionsMarshal.AsSpan(list26); - num3 = 0; - span26[num3] = 4693u; + num3 = 1; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + CollectionsMarshal.AsSpan(list26)[0] = 4693u; obj20.KillEnemyDataIds = list26; reference20 = obj20; obj19.Steps = list25; reference19 = obj19; - num++; - ref QuestSequence reference21 = ref span18[num]; + ref QuestSequence reference21 = ref span5[6]; QuestSequence obj21 = new QuestSequence { Sequence = 6 @@ -152357,36 +126441,30 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1014892u, new Vector3(-415.03015f, 3.695741f, -42.343872f), 146); obj21.Steps = list27; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span18[num]; + ref QuestSequence reference22 = ref span5[7]; QuestSequence obj22 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span28[num2] = new QuestStep(EInteractionType.Interact, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) + span7[1] = new QuestStep(EInteractionType.Interact, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) { StopDistance = 1f, Fly = true }; obj22.Steps = list28; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span18[num]; + ref QuestSequence reference23 = ref span5[8]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -152394,9 +126472,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014893u, new Vector3(-215.7168f, 16.844267f, -270.6493f), 146) { NextQuestId = new QuestId(2056) }; @@ -152409,26 +126485,21 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "liza"; + CollectionsMarshal.AsSpan(list30)[0] = "liza"; questRoot4.Author = list30; - index = 10; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference24 = ref span31[num]; + num = 10; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span8 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference24 = ref span8[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -152446,8 +126517,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span31[num]; + ref QuestSequence reference25 = ref span8[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -152455,27 +126525,22 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj25.Steps = list33; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span31[num]; + ref QuestSequence reference26 = ref span8[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference27 = ref span34[num2]; + num2 = 1; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list34)[0]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, 2006295u, new Vector3(298.6648f, -11.7647705f, 159.96033f), 145) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -152483,17 +126548,14 @@ public static class AssemblyQuestLoader num3 = 2; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span35 = CollectionsMarshal.AsSpan(list35); - index3 = 0; - span35[index3] = 4694u; - index3++; - span35[index3] = 4695u; + Span span9 = CollectionsMarshal.AsSpan(list35); + span9[0] = 4694u; + span9[1] = 4695u; obj27.KillEnemyDataIds = list35; reference27 = obj27; obj26.Steps = list34; reference26 = obj26; - num++; - ref QuestSequence reference28 = ref span31[num]; + ref QuestSequence reference28 = ref span8[3]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -152501,33 +126563,26 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1014894u, new Vector3(329.57947f, -11.1054125f, 157.64087f), 145); obj28.Steps = list36; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span31[num]; + ref QuestSequence reference29 = ref span8[4]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num2 = 0; - ref QuestStep reference30 = ref span37[num2]; + num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list37)[0]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK400_02056_Q1_000_056"), @@ -152537,8 +126592,7 @@ public static class AssemblyQuestLoader reference30 = obj30; obj29.Steps = list37; reference29 = obj29; - num++; - ref QuestSequence reference31 = ref span31[num]; + ref QuestSequence reference31 = ref span8[5]; QuestSequence obj31 = new QuestSequence { Sequence = 5 @@ -152546,34 +126600,28 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014896u, new Vector3(-200.30524f, -28.35069f, 324.75757f), 145) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014896u, new Vector3(-200.30524f, -28.35069f, 324.75757f), 145) { StopDistance = 2f, Fly = true }; obj31.Steps = list39; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span31[num]; + ref QuestSequence reference32 = ref span8[6]; QuestSequence obj32 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj32.Steps = list40; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span31[num]; + ref QuestSequence reference33 = ref span8[7]; QuestSequence obj33 = new QuestSequence { Sequence = 7 @@ -152581,30 +126629,24 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1003929u, new Vector3(-378.65265f, -55.75492f, 106.79785f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj33.Steps = list41; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span31[num]; + ref QuestSequence reference34 = ref span8[8]; QuestSequence obj34 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj34.Steps = list42; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span31[num]; + ref QuestSequence reference35 = ref span8[9]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -152612,9 +126654,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014895u, new Vector3(-367.14734f, -55.99894f, 107.10303f), 145) { NextQuestId = new QuestId(2057) }; @@ -152627,26 +126667,21 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot5.Author = list44; - index = 7; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference36 = ref span45[num]; + num = 7; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span10 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference36 = ref span10[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -152664,8 +126699,7 @@ public static class AssemblyQuestLoader }; obj36.Steps = list46; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span45[num]; + ref QuestSequence reference37 = ref span10[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -152673,9 +126707,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - ref QuestStep reference38 = ref span47[index2]; + ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list47)[0]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1014897u, new Vector3(168.74951f, 8.973653f, 583.85596f), 135) { Fly = true, @@ -152684,9 +126716,7 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - index3 = 0; - span48[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK450_02057_Q1_000_025"), @@ -152696,25 +126726,21 @@ public static class AssemblyQuestLoader reference38 = obj38; obj37.Steps = list47; reference37 = obj37; - num++; - ref QuestSequence reference39 = ref span45[num]; + ref QuestSequence reference39 = ref span10[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj39.Steps = list49; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span45[num]; + ref QuestSequence reference40 = ref span10[3]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -152722,34 +126748,28 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1014900u, new Vector3(-110.88739f, 9.73618f, 672.7245f), 135) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1014900u, new Vector3(-110.88739f, 9.73618f, 672.7245f), 135) { StopDistance = 5f }; obj40.Steps = list50; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span45[num]; + ref QuestSequence reference41 = ref span10[4]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj41.Steps = list51; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span45[num]; + ref QuestSequence reference42 = ref span10[5]; QuestSequence obj42 = new QuestSequence { Sequence = 5 @@ -152757,19 +126777,15 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - ref QuestStep reference43 = ref span52[index2]; + ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 1014901u, new Vector3(235.67554f, 8f, 698.20703f), 135) { Fly = true }; - index3 = 1; - List list53 = new List(index3); - CollectionsMarshal.SetCount(list53, index3); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - span53[num3] = new DialogueChoice + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK450_02057_Q2_000_111"), @@ -152779,18 +126795,15 @@ public static class AssemblyQuestLoader reference43 = obj43; obj42.Steps = list52; reference42 = obj42; - num++; - ref QuestSequence reference44 = ref span45[num]; + ref QuestSequence reference44 = ref span10[6]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2058) }; @@ -152803,16 +126816,13 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot6.Author = list55; - index = 7; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference45 = ref span56[num]; + num = 7; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span11 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference45 = ref span11[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -152820,9 +126830,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014890u, new Vector3(6.9122925f, -1.9210143f, 47.287598f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -152840,18 +126848,15 @@ public static class AssemblyQuestLoader }; obj45.Steps = list57; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span11[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -152866,8 +126871,7 @@ public static class AssemblyQuestLoader }; obj46.Steps = list58; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span56[num]; + ref QuestSequence reference47 = ref span11[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -152875,26 +126879,21 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1015328u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1015328u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) { Fly = true }; obj47.Steps = list59; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span11[3]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference49 = ref span60[num2]; + num2 = 1; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, 2006306u, new Vector3(-405.53906f, 274.70813f, 79.087524f), 155) { Fly = true, @@ -152903,19 +126902,15 @@ public static class AssemblyQuestLoader num3 = 3; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - Span span61 = CollectionsMarshal.AsSpan(list61); - index3 = 0; - span61[index3] = 4678u; - index3++; - span61[index3] = 4679u; - index3++; - span61[index3] = 4696u; + Span span12 = CollectionsMarshal.AsSpan(list61); + span12[0] = 4678u; + span12[1] = 4679u; + span12[2] = 4696u; obj49.KillEnemyDataIds = list61; reference49 = obj49; obj48.Steps = list60; reference48 = obj48; - num++; - ref QuestSequence reference50 = ref span56[num]; + ref QuestSequence reference50 = ref span11[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -152923,30 +126918,24 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1014906u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1014906u, new Vector3(-313.5271f, 244.50482f, 33.310425f), 155) { Fly = true }; obj50.Steps = list62; reference50 = obj50; - num++; - ref QuestSequence reference51 = ref span56[num]; + ref QuestSequence reference51 = ref span11[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj51.Steps = list63; reference51 = obj51; - num++; - ref QuestSequence reference52 = ref span56[num]; + ref QuestSequence reference52 = ref span11[6]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -152954,9 +126943,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014908u, new Vector3(-431.26575f, 210.99998f, -251.20929f), 155); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014908u, new Vector3(-431.26575f, 210.99998f, -251.20929f), 155); obj52.Steps = list64; reference52 = obj52; questRoot6.QuestSequence = list56; @@ -152966,26 +126953,21 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot7.Author = list65; - index = 4; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference53 = ref span66[num]; + num = 4; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span13 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference53 = ref span13[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -152999,8 +126981,7 @@ public static class AssemblyQuestLoader }; obj53.Steps = list67; reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span66[num]; + ref QuestSequence reference54 = ref span13[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -153008,42 +126989,34 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - ref QuestStep reference55 = ref span68[index2]; + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list68)[0]; QuestStep obj55 = new QuestStep(EInteractionType.Combat, 1015030u, new Vector3(-824.979f, 243.96797f, -215.86938f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + Span span14 = CollectionsMarshal.AsSpan(list69); + span14[0] = 4377u; + span14[1] = 4378u; obj55.KillEnemyDataIds = list69; reference55 = obj55; obj54.Steps = list68; reference54 = obj54; - num++; - ref QuestSequence reference56 = ref span66[num]; + ref QuestSequence reference56 = ref span13[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj56.Steps = list70; reference56 = obj56; - num++; - ref QuestSequence reference57 = ref span66[num]; + ref QuestSequence reference57 = ref span13[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -153051,9 +127024,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153072,26 +127043,21 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "liza"; + CollectionsMarshal.AsSpan(list72)[0] = "liza"; questRoot8.Author = list72; - index = 8; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference58 = ref span73[num]; + num = 8; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span15 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference58 = ref span15[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153109,8 +127075,7 @@ public static class AssemblyQuestLoader }; obj58.Steps = list74; reference58 = obj58; - num++; - ref QuestSequence reference59 = ref span73[num]; + ref QuestSequence reference59 = ref span15[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -153118,16 +127083,12 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - ref QuestStep reference60 = ref span75[index2]; + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list75)[0]; 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); - Span span76 = CollectionsMarshal.AsSpan(list76); - index3 = 0; - span76[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list76)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK520_02060_Q1_000_041"), @@ -153137,26 +127098,22 @@ public static class AssemblyQuestLoader reference60 = questStep2; obj59.Steps = list75; reference59 = obj59; - num++; - ref QuestSequence reference61 = ref span73[num]; + ref QuestSequence reference61 = ref span15[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj60.Steps = list77; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span73[num]; + ref QuestSequence reference62 = ref span15[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -153164,20 +127121,16 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - ref QuestStep reference63 = ref span78[index2]; + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(-528.29944f, -165.42699f, 578.5855f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - ref ComplexCombatData reference64 = ref span79[num3]; + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + ref ComplexCombatData reference64 = ref CollectionsMarshal.AsSpan(list79)[0]; ComplexCombatData obj63 = new ComplexCombatData { DataId = 4812u, @@ -153186,44 +127139,34 @@ public static class AssemblyQuestLoader int num4 = 6; List list80 = new List(num4); CollectionsMarshal.SetCount(list80, num4); - 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; + 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; obj63.CompletionQuestVariablesFlags = list80; reference64 = obj63; obj62.ComplexCombatData = list79; reference63 = obj62; obj61.Steps = list78; reference62 = obj61; - num++; - ref QuestSequence reference65 = ref span73[num]; + ref QuestSequence reference65 = ref span15[4]; QuestSequence obj64 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj64.Steps = list81; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span73[num]; + ref QuestSequence reference66 = ref span15[5]; QuestSequence obj65 = new QuestSequence { Sequence = 5 @@ -153231,9 +127174,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - ref QuestStep reference67 = ref span82[index2]; + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2006342u, new Vector3(533.53174f, -100.14502f, 367.54407f), 401) { Fly = true, @@ -153242,36 +127183,29 @@ public static class AssemblyQuestLoader num3 = 3; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span83 = CollectionsMarshal.AsSpan(list83); - index3 = 0; - span83[index3] = 4619u; - index3++; - span83[index3] = 5044u; - index3++; - span83[index3] = 5045u; + Span span17 = CollectionsMarshal.AsSpan(list83); + span17[0] = 4619u; + span17[1] = 5044u; + span17[2] = 5045u; obj66.KillEnemyDataIds = list83; reference67 = obj66; obj65.Steps = list82; reference66 = obj65; - num++; - ref QuestSequence reference68 = ref span73[num]; + ref QuestSequence reference68 = ref span15[6]; QuestSequence obj67 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj67.Steps = list84; reference68 = obj67; - num++; - ref QuestSequence reference69 = ref span73[num]; + ref QuestSequence reference69 = ref span15[7]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -153279,9 +127213,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153300,26 +127232,21 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot9.Author = list86; - index = 9; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference70 = ref span87[num]; + num = 9; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span18 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference70 = ref span18[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153337,8 +127264,7 @@ public static class AssemblyQuestLoader }; obj69.Steps = list88; reference70 = obj69; - num++; - ref QuestSequence reference71 = ref span87[num]; + ref QuestSequence reference71 = ref span18[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -153346,31 +127272,25 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1015038u, new Vector3(210.49817f, 302.2458f, -166.888f), 155) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1015038u, new Vector3(210.49817f, 302.2458f, -166.888f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj70.Steps = list89; reference71 = obj70; - num++; - ref QuestSequence reference72 = ref span87[num]; + ref QuestSequence reference72 = ref span18[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj71.Steps = list90; reference72 = obj71; - num++; - ref QuestSequence reference73 = ref span87[num]; + ref QuestSequence reference73 = ref span18[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -153378,23 +127298,18 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1015040u, new Vector3(221.94238f, 222.00142f, 320.9734f), 155); + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1015040u, new Vector3(221.94238f, 222.00142f, 320.9734f), 155); obj72.Steps = list91; reference73 = obj72; - num++; - ref QuestSequence reference74 = ref span87[num]; + ref QuestSequence reference74 = ref span18[4]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -153405,8 +127320,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list92; reference74 = obj73; - num++; - ref QuestSequence reference75 = ref span87[num]; + ref QuestSequence reference75 = ref span18[5]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -153414,30 +127328,24 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1015043u, new Vector3(29.67871f, -7.8f, 89.61609f), 132) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1015043u, new Vector3(29.67871f, -7.8f, 89.61609f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj74.Steps = list93; reference75 = obj74; - num++; - ref QuestSequence reference76 = ref span87[num]; + ref QuestSequence reference76 = ref span18[6]; QuestSequence obj75 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj75.Steps = list94; reference76 = obj75; - num++; - ref QuestSequence reference77 = ref span87[num]; + ref QuestSequence reference77 = ref span18[7]; QuestSequence obj76 = new QuestSequence { Sequence = 7 @@ -153445,26 +127353,21 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.Interact, 1015066u, new Vector3(47.440186f, -8.046949f, 110.73462f), 132) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1015066u, new Vector3(47.440186f, -8.046949f, 110.73462f), 132) { StopDistance = 6f }; obj76.Steps = list95; reference77 = obj76; - num++; - ref QuestSequence reference78 = ref span87[num]; + ref QuestSequence reference78 = ref span18[8]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153483,16 +127386,13 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot10.Author = list97; - index = 7; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference79 = ref span98[num]; + num = 7; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span19 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference79 = ref span19[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -153500,9 +127400,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153520,26 +127418,22 @@ public static class AssemblyQuestLoader }; obj78.Steps = list99; reference79 = obj78; - num++; - ref QuestSequence reference80 = ref span98[num]; + ref QuestSequence reference80 = ref span19[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj79.Steps = list100; reference80 = obj79; - num++; - ref QuestSequence reference81 = ref span98[num]; + ref QuestSequence reference81 = ref span19[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -153547,60 +127441,46 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1015044u, new Vector3(-282.1546f, 39.043068f, 46.036377f), 398); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1015044u, new Vector3(-282.1546f, 39.043068f, 46.036377f), 398); obj80.Steps = list101; reference81 = obj80; - num++; - ref QuestSequence reference82 = ref span98[num]; + ref QuestSequence reference82 = ref span19[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num2 = 0; - ref QuestStep reference83 = ref span102[num2]; + num2 = 2; + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + Span span20 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference83 = ref span20[0]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list103 = new List(index3); - CollectionsMarshal.SetCount(list103, index3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = 4685u; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = 4685u; obj82.KillEnemyDataIds = list103; num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - 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; + 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; obj82.CompletionQuestVariablesFlags = list104; reference83 = obj82; - num2++; - span102[num2] = new QuestStep(EInteractionType.Interact, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398); + span20[1] = new QuestStep(EInteractionType.Interact, 2006344u, new Vector3(-557.8241f, -92.24078f, 595.1781f), 398); obj81.Steps = list102; reference82 = obj81; - num++; - ref QuestSequence reference84 = ref span98[num]; + ref QuestSequence reference84 = ref span19[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 @@ -153608,9 +127488,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 7f, Fly = true, @@ -153618,26 +127496,22 @@ public static class AssemblyQuestLoader }; obj83.Steps = list105; reference84 = obj83; - num++; - ref QuestSequence reference85 = ref span98[num]; + ref QuestSequence reference85 = ref span19[5]; QuestSequence obj84 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj84.Steps = list106; reference85 = obj84; - num++; - ref QuestSequence reference86 = ref span98[num]; + ref QuestSequence reference86 = ref span19[6]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -153645,9 +127519,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153666,26 +127538,21 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot11.Author = list108; - index = 8; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference87 = ref span109[num]; + num = 8; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span22 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference87 = ref span22[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153703,8 +127570,7 @@ public static class AssemblyQuestLoader }; obj86.Steps = list110; reference87 = obj86; - num++; - ref QuestSequence reference88 = ref span109[num]; + ref QuestSequence reference88 = ref span22[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -153712,50 +127578,39 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj87.Steps = list111; reference88 = obj87; - num++; - ref QuestSequence reference89 = ref span109[num]; + ref QuestSequence reference89 = ref span22[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list112 = new List(index2); - CollectionsMarshal.SetCount(list112, index2); - Span span112 = CollectionsMarshal.AsSpan(list112); - num2 = 0; - ref QuestStep reference90 = ref span112[num2]; + num2 = 4; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span23 = CollectionsMarshal.AsSpan(list112); + ref QuestStep reference90 = ref span23[0]; QuestStep obj89 = new QuestStep(EInteractionType.Interact, 2006346u, new Vector3(429.9839f, -10.11676f, 708.1864f), 400) { Fly = true }; - 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); + 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); obj89.CompletionQuestVariablesFlags = list113; reference90 = obj89; - num2++; - ref QuestStep reference91 = ref span112[num2]; + ref QuestStep reference91 = ref span23[1]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 2006347u, new Vector3(346.48657f, 0.25933838f, 565.6061f), 400) { Fly = true @@ -153763,47 +127618,33 @@ public static class AssemblyQuestLoader num3 = 6; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - 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); + 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); obj90.CompletionQuestVariablesFlags = list114; reference91 = obj90; - num2++; - ref QuestStep reference92 = ref span112[num2]; + ref QuestStep reference92 = ref span23[2]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 2006348u, new Vector3(312.1842f, 17.868286f, 718.8982f), 400) { Fly = true }; - 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); + 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); obj91.CompletionQuestVariablesFlags = list115; reference92 = obj91; - num2++; - ref QuestStep reference93 = ref span112[num2]; + ref QuestStep reference93 = ref span23[3]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 2006349u, new Vector3(204.76074f, 4.7455444f, 736.3545f), 400) { Fly = true @@ -153811,25 +127652,18 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - 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); + 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); obj92.CompletionQuestVariablesFlags = list116; reference93 = obj92; obj88.Steps = list112; reference89 = obj88; - num++; - ref QuestSequence reference94 = ref span109[num]; + ref QuestSequence reference94 = ref span22[3]; QuestSequence obj93 = new QuestSequence { Sequence = 3 @@ -153837,43 +127671,35 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1012076u, new Vector3(254.13892f, -43.160442f, 626.3981f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj93.Steps = list117; reference94 = obj93; - num++; - ref QuestSequence reference95 = ref span109[num]; + ref QuestSequence reference95 = ref span22[4]; QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list118 = new List(index2); - CollectionsMarshal.SetCount(list118, index2); - Span span118 = CollectionsMarshal.AsSpan(list118); - num2 = 0; - ref QuestStep reference96 = ref span118[num2]; + num2 = 1; + List list118 = new List(num2); + CollectionsMarshal.SetCount(list118, num2); + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list118)[0]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2006350u, new Vector3(173.84595f, -22.14087f, 160.7843f), 400) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list119 = new List(index3); - CollectionsMarshal.SetCount(list119, index3); - Span span119 = CollectionsMarshal.AsSpan(list119); - num3 = 0; - span119[num3] = 4675u; + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = 4675u; obj95.KillEnemyDataIds = list119; reference96 = obj95; obj94.Steps = list118; reference95 = obj94; - num++; - ref QuestSequence reference97 = ref span109[num]; + ref QuestSequence reference97 = ref span22[5]; QuestSequence obj96 = new QuestSequence { Sequence = 5 @@ -153881,30 +127707,24 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015049u, new Vector3(-158.80066f, -23.017008f, 282.12402f), 400) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1015049u, new Vector3(-158.80066f, -23.017008f, 282.12402f), 400) { Fly = true }; obj96.Steps = list120; reference97 = obj96; - num++; - ref QuestSequence reference98 = ref span109[num]; + ref QuestSequence reference98 = ref span22[6]; QuestSequence obj97 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj97.Steps = list121; reference98 = obj97; - num++; - ref QuestSequence reference99 = ref span109[num]; + ref QuestSequence reference99 = ref span22[7]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -153912,9 +127732,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153933,26 +127751,21 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot12.Author = list123; - index = 4; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference100 = ref span124[num]; + num = 4; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span28 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference100 = ref span28[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -153970,8 +127783,7 @@ public static class AssemblyQuestLoader }; obj99.Steps = list125; reference100 = obj99; - num++; - ref QuestSequence reference101 = ref span124[num]; + ref QuestSequence reference101 = ref span28[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -153979,31 +127791,25 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1013970u, new Vector3(103.4104f, 15.00001f, 41.306152f), 418); obj100.Steps = list126; reference101 = obj100; - num++; - ref QuestSequence reference102 = ref span124[num]; + ref QuestSequence reference102 = ref span28[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj101.Steps = list127; reference102 = obj101; - num++; - ref QuestSequence reference103 = ref span124[num]; + ref QuestSequence reference103 = ref span28[3]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -154011,9 +127817,7 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - ref QuestStep reference104 = ref span128[index2]; + ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list128)[0]; QuestStep obj103 = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -154026,9 +127830,7 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - index3 = 0; - span129[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list129)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK600_02064_Q1_000_153"), @@ -154046,26 +127848,21 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot13.Author = list130; - index = 8; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference105 = ref span131[num]; + num = 8; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span29 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference105 = ref span29[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -154078,8 +127875,7 @@ public static class AssemblyQuestLoader }; obj104.Steps = list132; reference105 = obj104; - num++; - ref QuestSequence reference106 = ref span131[num]; + ref QuestSequence reference106 = ref span29[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -154087,9 +127883,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -154100,25 +127894,21 @@ public static class AssemblyQuestLoader }; obj105.Steps = list133; reference106 = obj105; - num++; - ref QuestSequence reference107 = ref span131[num]; + ref QuestSequence reference107 = ref span29[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj106.Steps = list134; reference107 = obj106; - num++; - ref QuestSequence reference108 = ref span131[num]; + ref QuestSequence reference108 = ref span29[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 @@ -154126,31 +127916,25 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.UseItem, 2006124u, new Vector3(-43.198303f, 100.8468f, -181.81128f), 399) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.UseItem, 2006124u, new Vector3(-43.198303f, 100.8468f, -181.81128f), 399) { Fly = true, ItemId = 2001792u }; obj107.Steps = list135; reference108 = obj107; - num++; - ref QuestSequence reference109 = ref span131[num]; + ref QuestSequence reference109 = ref span29[4]; QuestSequence obj108 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj108.Steps = list136; reference109 = obj108; - num++; - ref QuestSequence reference110 = ref span131[num]; + ref QuestSequence reference110 = ref span29[5]; QuestSequence obj109 = new QuestSequence { Sequence = 5 @@ -154158,26 +127942,21 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 1014404u, new Vector3(67.97888f, 53.343666f, 199.02332f), 399) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1014404u, new Vector3(67.97888f, 53.343666f, 199.02332f), 399) { Fly = true }; obj109.Steps = list137; reference110 = obj109; - num++; - ref QuestSequence reference111 = ref span131[num]; + ref QuestSequence reference111 = ref span29[6]; QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - 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) + num2 = 1; + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -154186,8 +127965,7 @@ public static class AssemblyQuestLoader }; obj110.Steps = list138; reference111 = obj110; - num++; - ref QuestSequence reference112 = ref span131[num]; + ref QuestSequence reference112 = ref span29[7]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -154195,9 +127973,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2091) @@ -154211,33 +127987,27 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - span140[index] = "liza"; + CollectionsMarshal.AsSpan(list140)[0] = "liza"; questRoot14.Author = list140; - index = 3; - List list141 = new List(index); - CollectionsMarshal.SetCount(list141, index); - Span span141 = CollectionsMarshal.AsSpan(list141); - num = 0; - ref QuestSequence reference113 = ref span141[num]; + num = 3; + List list141 = new List(num); + CollectionsMarshal.SetCount(list141, num); + Span span30 = CollectionsMarshal.AsSpan(list141); + ref QuestSequence reference113 = ref span30[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj112.Steps = list142; reference113 = obj112; - num++; - ref QuestSequence reference114 = ref span141[num]; + ref QuestSequence reference114 = ref span30[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -154245,9 +128015,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -154256,18 +128024,15 @@ public static class AssemblyQuestLoader }; obj113.Steps = list143; reference114 = obj113; - num++; - ref QuestSequence reference115 = ref span141[num]; + ref QuestSequence reference115 = ref span30[2]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(2092) @@ -154281,16 +128046,13 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; questRoot15.Author = list145; - index = 3; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference116 = ref span146[num]; + num = 3; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span31 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference116 = ref span31[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -154298,26 +128060,21 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj115.Steps = list147; reference116 = obj115; - num++; - ref QuestSequence reference117 = ref span146[num]; + ref QuestSequence reference117 = ref span31[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list148 = new List(num2); + CollectionsMarshal.SetCount(list148, num2); + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -154326,8 +128083,7 @@ public static class AssemblyQuestLoader }; obj116.Steps = list148; reference117 = obj116; - num++; - ref QuestSequence reference118 = ref span146[num]; + ref QuestSequence reference118 = ref span31[2]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -154335,9 +128091,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2093) @@ -154351,33 +128105,27 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot16.Author = list150; - index = 3; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference119 = ref span151[num]; + num = 3; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span32 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference119 = ref span32[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj118.Steps = list152; reference119 = obj118; - num++; - ref QuestSequence reference120 = ref span151[num]; + ref QuestSequence reference120 = ref span32[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -154385,9 +128133,7 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -154396,36 +128142,31 @@ public static class AssemblyQuestLoader }; obj119.Steps = list153; reference120 = obj119; - num++; - ref QuestSequence reference121 = ref span151[num]; + ref QuestSequence reference121 = ref span32[2]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference122 = ref span154[num2]; + num2 = 2; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + Span span33 = CollectionsMarshal.AsSpan(list154); + ref QuestStep reference122 = ref span33[0]; 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(); - index3 = 1; - List list155 = new List(index3); - CollectionsMarshal.SetCount(list155, index3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num3 = 0; - span155[num3] = 505; + num3 = 1; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + CollectionsMarshal.AsSpan(list155)[0] = 505; skipStepConditions.NotInTerritory = list155; skipConditions2.StepIf = skipStepConditions; obj121.SkipConditions = skipConditions2; reference122 = obj121; - num2++; - span154[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399) + span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399) { NextQuestId = new QuestId(2094) }; @@ -154438,16 +128179,13 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "liza"; + CollectionsMarshal.AsSpan(list156)[0] = "liza"; questRoot17.Author = list156; - index = 3; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference123 = ref span157[num]; + num = 3; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span34 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference123 = ref span34[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -154455,30 +128193,24 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014405u, new Vector3(69.62683f, 53.404236f, 201.5564f), 399); obj122.Steps = list158; reference123 = obj122; - num++; - ref QuestSequence reference124 = ref span157[num]; + ref QuestSequence reference124 = ref span34[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj123.Steps = list159; reference124 = obj123; - num++; - ref QuestSequence reference125 = ref span157[num]; + ref QuestSequence reference125 = ref span34[2]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -154486,9 +128218,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399) { NextQuestId = new QuestId(2249) }; @@ -154501,30 +128231,24 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot18.Author = list161; - index = 2; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference126 = ref span162[num]; + num = 2; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span35 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference126 = ref span35[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj125.Steps = list163; reference126 = obj125; - num++; - ref QuestSequence reference127 = ref span162[num]; + ref QuestSequence reference127 = ref span35[1]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -154532,9 +128256,7 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013395u, new Vector3(45.609253f, 31.195326f, -732.9061f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -154549,30 +128271,24 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot19.Author = list165; - index = 2; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference128 = ref span166[num]; + num = 2; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span36 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference128 = ref span36[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj127.Steps = list167; reference128 = obj127; - num++; - ref QuestSequence reference129 = ref span166[num]; + ref QuestSequence reference129 = ref span36[1]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -154580,9 +128296,7 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001428u, new Vector3(116.80774f, 30.907087f, -359.63995f), 141) { StopDistance = 1f, Fly = true, @@ -154598,26 +128312,21 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; questRoot20.Author = list169; - index = 2; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference130 = ref span170[num]; + num = 2; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span37 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference130 = ref span37[0]; QuestSequence obj129 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -154630,8 +128339,7 @@ public static class AssemblyQuestLoader }; obj129.Steps = list171; reference130 = obj129; - num++; - ref QuestSequence reference131 = ref span170[num]; + ref QuestSequence reference131 = ref span37[1]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -154639,9 +128347,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(-14.635355f, 206.49942f, 44.826305f), 478) + Span span38 = CollectionsMarshal.AsSpan(list172); + span38[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-14.635355f, 206.49942f, 44.826305f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -154652,8 +128359,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span172[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478); + span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478); obj130.Steps = list172; reference131 = obj130; questRoot20.QuestSequence = list170; @@ -154667,16 +128373,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -154684,9 +128387,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -154704,35 +128405,29 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = 133; + CollectionsMarshal.AsSpan(list4)[0] = 133; obj3.InTerritory = list4; skipConditions.AetheryteShortcutIf = obj3; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj4.Steps = list5; reference3 = obj4; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -154740,26 +128435,21 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1014018u, new Vector3(481.9867f, 5.4917006f, -838.52905f), 156) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1014018u, new Vector3(481.9867f, 5.4917006f, -838.52905f), 156) { Fly = true }; obj5.Steps = list6; reference4 = obj5; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -154778,16 +128468,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 6; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 6; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -154795,9 +128482,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - ref QuestStep reference7 = ref span10[index2]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; QuestStep obj8 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -154812,37 +128497,31 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list11 = new List(index3); - CollectionsMarshal.SetCount(list11, index3); - Span span11 = CollectionsMarshal.AsSpan(list11); - num3 = 0; - span11[num3] = 133; + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = 133; obj9.InTerritory = list11; skipConditions2.AetheryteShortcutIf = obj9; obj8.SkipConditions = skipConditions2; reference7 = obj8; obj7.Steps = list10; reference6 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj10.Steps = list12; reference8 = obj10; - num++; - ref QuestSequence reference9 = ref span9[num]; + ref QuestSequence reference9 = ref span2[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -154850,88 +128529,63 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - ref QuestStep reference10 = ref span13[index2]; + Span span3 = CollectionsMarshal.AsSpan(list13); + ref QuestStep reference10 = ref span3[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list14; reference10 = questStep; - index2++; - ref QuestStep reference11 = ref span13[index2]; + ref QuestStep reference11 = ref span3[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1003931u, new Vector3(-379.6292f, -55.85506f, 95.04846f), 145); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list15; reference11 = questStep2; - index2++; - ref QuestStep reference12 = ref span13[index2]; + ref QuestStep reference12 = ref span3[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list16; reference12 = questStep3; obj11.Steps = list13; reference9 = obj11; - num++; - ref QuestSequence reference13 = ref span9[num]; + ref QuestSequence reference13 = ref span2[3]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj12.Steps = list17; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span9[num]; + ref QuestSequence reference14 = ref span2[4]; QuestSequence obj13 = new QuestSequence { Sequence = 4 @@ -154939,58 +128593,45 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - ref QuestStep reference15 = ref span18[index2]; + Span span7 = CollectionsMarshal.AsSpan(list18); + ref QuestStep reference15 = ref span7[0]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-194.28932f, -36.84067f, 26.942286f), 145) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + Span span8 = CollectionsMarshal.AsSpan(list19); + span8[0] = 4777u; + span8[1] = 4778u; obj14.KillEnemyDataIds = list19; num3 = 6; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - 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; + 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; obj14.CompletionQuestVariablesFlags = list20; reference15 = obj14; - index2++; - span18[index2] = new QuestStep(EInteractionType.Interact, 1014025u, new Vector3(-193.59125f, -36.83681f, 25.894531f), 145); + span7[1] = new QuestStep(EInteractionType.Interact, 1014025u, new Vector3(-193.59125f, -36.83681f, 25.894531f), 145); obj13.Steps = list18; reference14 = obj13; - num++; - ref QuestSequence reference16 = ref span9[num]; + ref QuestSequence reference16 = ref span2[5]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2102) @@ -155004,16 +128645,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot3.Author = list22; - index = 5; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference17 = ref span23[num]; + num = 5; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span10 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference17 = ref span10[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -155021,9 +128659,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -155036,26 +128672,22 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span10[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj17.Steps = list25; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span10[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -155063,125 +128695,94 @@ public static class AssemblyQuestLoader num2 = 3; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref QuestStep reference20 = ref span26[index2]; + Span span11 = CollectionsMarshal.AsSpan(list26); + ref QuestStep reference20 = ref span11[0]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2005969u, new Vector3(-4.5319824f, 27.695068f, -422.2019f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list27 = new List(index3); - CollectionsMarshal.SetCount(list27, index3); - Span span27 = CollectionsMarshal.AsSpan(list27); - num3 = 0; - span27[num3] = 4781u; + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + CollectionsMarshal.AsSpan(list27)[0] = 4781u; obj19.KillEnemyDataIds = list27; num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - 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); + 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); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; - index2++; - ref QuestStep reference21 = ref span26[index2]; + ref QuestStep reference21 = ref span11[1]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, 2005970u, new Vector3(-29.160034f, 27.42041f, -417.99042f), 141) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list29 = new List(index3); - CollectionsMarshal.SetCount(list29, index3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = 4781u; + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = 4781u; obj20.KillEnemyDataIds = list29; num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - 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); + 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); obj20.CompletionQuestVariablesFlags = list30; reference21 = obj20; - index2++; - ref QuestStep reference22 = ref span26[index2]; + ref QuestStep reference22 = ref span11[2]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2005971u, new Vector3(-11.6427f, 34.01233f, -458.60992f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + Span span14 = CollectionsMarshal.AsSpan(list31); + span14[0] = 4781u; + span14[1] = 4786u; obj21.KillEnemyDataIds = list31; num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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); + 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); obj21.CompletionQuestVariablesFlags = list32; reference22 = obj21; obj18.Steps = list26; reference19 = obj18; - num++; - ref QuestSequence reference23 = ref span23[num]; + ref QuestSequence reference23 = ref span10[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj22.Steps = list33; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span23[num]; + ref QuestSequence reference24 = ref span10[4]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -155189,9 +128790,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2103) @@ -155205,26 +128804,21 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "liza"; + CollectionsMarshal.AsSpan(list35)[0] = "liza"; questRoot4.Author = list35; - index = 6; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference25 = ref span36[num]; + num = 6; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span16 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference25 = ref span16[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -155237,8 +128831,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list37; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span36[num]; + ref QuestSequence reference26 = ref span16[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -155246,34 +128839,28 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1014033u, new Vector3(47.16565f, 4f, 466.14783f), 147) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1014033u, new Vector3(47.16565f, 4f, 466.14783f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj25.Steps = list38; reference26 = obj25; - num++; - ref QuestSequence reference27 = ref span36[num]; + ref QuestSequence reference27 = ref span16[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj26.Steps = list39; reference27 = obj26; - num++; - ref QuestSequence reference28 = ref span36[num]; + ref QuestSequence reference28 = ref span16[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -155281,45 +128868,37 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref QuestStep reference29 = ref span40[index2]; + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list40)[0]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(13.795937f, 5.0408907f, 280.2135f), 147) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + Span span17 = CollectionsMarshal.AsSpan(list41); + span17[0] = 4787u; + span17[1] = 4788u; obj28.KillEnemyDataIds = list41; reference29 = obj28; obj27.Steps = list40; reference28 = obj27; - num++; - ref QuestSequence reference30 = ref span36[num]; + ref QuestSequence reference30 = ref span16[4]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj29.Steps = list42; reference30 = obj29; - num++; - ref QuestSequence reference31 = ref span36[num]; + ref QuestSequence reference31 = ref span16[5]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -155327,9 +128906,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2104) @@ -155343,26 +128920,21 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot5.Author = list44; - index = 5; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference32 = ref span45[num]; + num = 5; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span18 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference32 = ref span18[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -155375,8 +128947,7 @@ public static class AssemblyQuestLoader }; obj31.Steps = list46; reference32 = obj31; - num++; - ref QuestSequence reference33 = ref span45[num]; + ref QuestSequence reference33 = ref span18[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -155384,9 +128955,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -155397,25 +128966,21 @@ public static class AssemblyQuestLoader }; obj32.Steps = list47; reference33 = obj32; - num++; - ref QuestSequence reference34 = ref span45[num]; + ref QuestSequence reference34 = ref span18[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj33.Steps = list48; reference34 = obj33; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span18[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -155423,9 +128988,7 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1014038u, new Vector3(-20.24878f, 83.19998f, -1.4801636f), 130) { AethernetShortcut = new AethernetShortcut { @@ -155435,18 +128998,15 @@ public static class AssemblyQuestLoader }; obj34.Steps = list49; reference35 = obj34; - num++; - ref QuestSequence reference36 = ref span45[num]; + ref QuestSequence reference36 = ref span18[4]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, NextQuestId = new QuestId(2105) @@ -155460,16 +129020,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "liza"; + CollectionsMarshal.AsSpan(list51)[0] = "liza"; questRoot6.Author = list51; - index = 4; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference37 = ref span52[num]; + num = 4; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span19 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference37 = ref span19[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -155477,9 +129034,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014028u, new Vector3(-126.57361f, 4.0999947f, -96.23871f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -155492,18 +129047,15 @@ public static class AssemblyQuestLoader }; obj36.Steps = list53; reference37 = obj36; - num++; - ref QuestSequence reference38 = ref span52[num]; + ref QuestSequence reference38 = ref span19[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -155514,8 +129066,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference38 = obj37; - num++; - ref QuestSequence reference39 = ref span52[num]; + ref QuestSequence reference39 = ref span19[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -155523,23 +129074,18 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1014045u, new Vector3(260.5172f, 232.54103f, 728.9081f), 399); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1014045u, new Vector3(260.5172f, 232.54103f, 728.9081f), 399); obj38.Steps = list55; reference39 = obj38; - num++; - ref QuestSequence reference40 = ref span52[num]; + ref QuestSequence reference40 = ref span19[3]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -155552,16 +129098,12 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot7.Author = list57; - index = 1; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference41 = ref span58[num]; + num = 1; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + ref QuestSequence reference41 = ref CollectionsMarshal.AsSpan(list58)[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -155569,11 +129111,9 @@ public static class AssemblyQuestLoader num2 = 2; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - 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) + 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) { StopDistance = 7f }; @@ -155586,26 +129126,20 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; questRoot8.Author = list60; - index = 1; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference42 = ref span61[num]; + num = 1; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + ref QuestSequence reference42 = ref CollectionsMarshal.AsSpan(list61)[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, SkipConditions = new SkipConditions @@ -155625,16 +129159,12 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "liza"; + CollectionsMarshal.AsSpan(list63)[0] = "liza"; questRoot9.Author = list63; - index = 1; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref QuestSequence reference43 = ref span64[num]; + num = 1; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + ref QuestSequence reference43 = ref CollectionsMarshal.AsSpan(list64)[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -155642,9 +129172,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference44 = ref span65[index2]; + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep obj43 = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -155664,9 +129192,7 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - index3 = 0; - span66[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBMCH299_02109_Q1_000_000") @@ -155682,26 +129208,20 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "liza"; + CollectionsMarshal.AsSpan(list67)[0] = "liza"; questRoot10.Author = list67; - index = 1; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference45 = ref span68[num]; + num = 1; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + ref QuestSequence reference45 = ref CollectionsMarshal.AsSpan(list68)[0]; QuestSequence obj44 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list69)[0]; QuestStep obj45 = new QuestStep(EInteractionType.AcceptQuest, 1014873u, new Vector3(101.57922f, 12.418198f, -117.60132f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -155716,21 +129236,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list70 = new List(index3); - CollectionsMarshal.SetCount(list70, index3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num3 = 0; - span70[num3] = 419; + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = 419; obj46.InTerritory = list70; skipConditions3.AetheryteShortcutIf = obj46; obj45.SkipConditions = skipConditions3; num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - index3 = 0; - span71[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBDRK299_02110_Q1_000_005") @@ -155746,16 +129262,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; questRoot11.Author = list72; - index = 4; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference47 = ref span73[num]; + num = 4; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span21 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference47 = ref span21[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -155763,27 +129276,21 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011911u, new Vector3(-279.56055f, 127.08131f, 13.595764f), 397); obj47.Steps = list74; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span73[num]; + ref QuestSequence reference48 = ref span21[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj48.Steps = list75; reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span73[num]; + ref QuestSequence reference49 = ref span21[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -155791,9 +129298,7 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Duty, null, null, 397) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Duty, null, null, 397) { DutyOptions = new DutyOptions { @@ -155803,18 +129308,15 @@ public static class AssemblyQuestLoader }; obj49.Steps = list76; reference49 = obj49; - num++; - ref QuestSequence reference50 = ref span73[num]; + ref QuestSequence reference50 = ref span21[3]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj50.Steps = list77; reference50 = obj50; questRoot11.QuestSequence = list73; @@ -155824,16 +129326,13 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "liza"; + CollectionsMarshal.AsSpan(list78)[0] = "liza"; questRoot12.Author = list78; - index = 2; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference51 = ref span79[num]; + num = 2; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span22 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference51 = ref span22[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -155841,9 +129340,7 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - ref QuestStep reference52 = ref span80[index2]; + ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list80)[0]; QuestStep obj52 = new QuestStep(EInteractionType.AcceptQuest, 1012217u, new Vector3(25.925049f, 15.8650675f, 19.394226f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -155858,41 +129355,35 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list81 = new List(index3); - CollectionsMarshal.SetCount(list81, index3); - Span span81 = CollectionsMarshal.AsSpan(list81); - num3 = 0; - span81[num3] = 419; + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = 419; obj53.InTerritory = list81; skipConditions4.AetheryteShortcutIf = obj53; obj52.SkipConditions = skipConditions4; reference52 = obj52; obj51.Steps = list80; reference51 = obj51; - num++; - ref QuestSequence reference53 = ref span79[num]; + ref QuestSequence reference53 = ref span22[1]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span82[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span23[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span82[num2] = new QuestStep(EInteractionType.CompleteQuest, 2006287u, new Vector3(0.015197754f, -1.9990234f, -40.909485f), 351) + span23[2] = new QuestStep(EInteractionType.CompleteQuest, 2006287u, new Vector3(0.015197754f, -1.9990234f, -40.909485f), 351) { NextQuestId = new QuestId(2230) }; @@ -155905,16 +129396,13 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "liza"; + CollectionsMarshal.AsSpan(list83)[0] = "liza"; questRoot13.Author = list83; - index = 7; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference54 = ref span84[num]; + num = 7; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span24 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference54 = ref span24[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -155922,9 +129410,8 @@ public static class AssemblyQuestLoader num2 = 3; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - ref QuestStep reference55 = ref span85[index2]; + Span span25 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference55 = ref span25[0]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -155935,24 +129422,19 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - index3 = 0; - span86[index3] = 351; + CollectionsMarshal.AsSpan(list86)[0] = 351; skipStepConditions.InTerritory = list86; skipConditions5.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list87 = new List(index3); - CollectionsMarshal.SetCount(list87, index3); - Span span87 = CollectionsMarshal.AsSpan(list87); - num3 = 0; - span87[num3] = 351; + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = 351; skipAetheryteCondition.InTerritory = list87; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; obj56.SkipConditions = skipConditions5; reference55 = obj56; - index2++; - span85[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span25[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -155963,33 +129445,28 @@ public static class AssemblyQuestLoader } } }; - index2++; - span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span25[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj55.Steps = list85; reference54 = obj55; - num++; - ref QuestSequence reference56 = ref span84[num]; + ref QuestSequence reference56 = ref span24[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj57.Steps = list88; reference56 = obj57; - num++; - ref QuestSequence reference57 = ref span84[num]; + ref QuestSequence reference57 = ref span24[2]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -155997,38 +129474,32 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1014623u, new Vector3(-808.8655f, -57.761612f, 159.5636f), 401) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1014623u, new Vector3(-808.8655f, -57.761612f, 159.5636f), 401) { Fly = true }; obj58.Steps = list89; reference57 = obj58; - num++; - ref QuestSequence reference58 = ref span84[num]; + ref QuestSequence reference58 = ref span24[3]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span90[num2] = new QuestStep(EInteractionType.Interact, 2006288u, new Vector3(369.55823f, 143.17542f, 260.70032f), 401) + span26[1] = new QuestStep(EInteractionType.Interact, 2006288u, new Vector3(369.55823f, 143.17542f, 260.70032f), 401) { StopDistance = 4f }; obj59.Steps = list90; reference58 = obj59; - num++; - ref QuestSequence reference59 = ref span84[num]; + ref QuestSequence reference59 = ref span24[4]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -156036,9 +129507,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Duty, null, null, 401) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -156047,26 +129516,22 @@ public static class AssemblyQuestLoader }; obj60.Steps = list91; reference59 = obj60; - num++; - ref QuestSequence reference60 = ref span84[num]; + ref QuestSequence reference60 = ref span24[5]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj61.Steps = list92; reference60 = obj61; - num++; - ref QuestSequence reference61 = ref span84[num]; + ref QuestSequence reference61 = ref span24[6]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -156074,20 +129539,17 @@ public static class AssemblyQuestLoader num2 = 3; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span27 = CollectionsMarshal.AsSpan(list93); + span27[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span93[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span27[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span93[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -156100,26 +129562,22 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "liza"; + CollectionsMarshal.AsSpan(list94)[0] = "liza"; questRoot14.Author = list94; - index = 6; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference62 = ref span95[num]; + num = 6; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span28 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference62 = ref span28[0]; QuestSequence obj63 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + Span span29 = CollectionsMarshal.AsSpan(list96); + ref QuestStep reference63 = ref span29[0]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -156130,24 +129588,19 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span97 = CollectionsMarshal.AsSpan(list97); - index3 = 0; - span97[index3] = 351; + CollectionsMarshal.AsSpan(list97)[0] = 351; skipStepConditions2.InTerritory = list97; skipConditions6.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index3 = 1; - List list98 = new List(index3); - CollectionsMarshal.SetCount(list98, index3); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = 351; + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = 351; skipAetheryteCondition2.InTerritory = list98; skipConditions6.AetheryteShortcutIf = skipAetheryteCondition2; obj64.SkipConditions = skipConditions6; reference63 = obj64; - num2++; - span96[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span29[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -156158,15 +129611,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span96[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span29[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj63.Steps = list96; reference62 = obj63; - num++; - ref QuestSequence reference64 = ref span95[num]; + ref QuestSequence reference64 = ref span28[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -156174,41 +129625,35 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) + Span span30 = CollectionsMarshal.AsSpan(list99); + span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.307335f, -49.128403f, -142.59073f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - index2++; - span99[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + span30[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 4f }; obj65.Steps = list99; reference64 = obj65; - num++; - ref QuestSequence reference65 = ref span95[num]; + ref QuestSequence reference65 = ref span28[2]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span100[num2] = new QuestStep(EInteractionType.Interact, 2006289u, new Vector3(257.77063f, -111.92493f, 925.3832f), 398); + span31[1] = new QuestStep(EInteractionType.Interact, 2006289u, new Vector3(257.77063f, -111.92493f, 925.3832f), 398); obj66.Steps = list100; reference65 = obj66; - num++; - ref QuestSequence reference66 = ref span95[num]; + ref QuestSequence reference66 = ref span28[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -156216,9 +129661,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Duty, null, null, 401) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -156227,31 +129670,27 @@ public static class AssemblyQuestLoader }; obj67.Steps = list101; reference66 = obj67; - num++; - ref QuestSequence reference67 = ref span95[num]; + ref QuestSequence reference67 = ref span28[4]; QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - num2++; - span102[num2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + span32[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { StopDistance = 4f }; obj68.Steps = list102; reference67 = obj68; - num++; - ref QuestSequence reference68 = ref span95[num]; + ref QuestSequence reference68 = ref span28[5]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -156259,20 +129698,17 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span33 = CollectionsMarshal.AsSpan(list103); + span33[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span103[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span33[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span33[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -156285,26 +129721,21 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "liza"; + CollectionsMarshal.AsSpan(list104)[0] = "liza"; questRoot15.Author = list104; - index = 2; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference69 = ref span105[num]; + num = 2; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span34 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference69 = ref span34[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -156317,8 +129748,7 @@ public static class AssemblyQuestLoader }; obj70.Steps = list106; reference69 = obj70; - num++; - ref QuestSequence reference70 = ref span105[num]; + ref QuestSequence reference70 = ref span34[1]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -156326,9 +129756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015599u, new Vector3(-205.79846f, 102.81167f, -580.0717f), 399) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015599u, new Vector3(-205.79846f, 102.81167f, -580.0717f), 399) { AethernetShortcut = new AethernetShortcut { @@ -156346,26 +129774,21 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot16.Author = list108; - index = 3; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference71 = ref span109[num]; + num = 3; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span35 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference71 = ref span35[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -156383,8 +129806,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list110; reference71 = obj72; - num++; - ref QuestSequence reference72 = ref span109[num]; + ref QuestSequence reference72 = ref span35[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -156392,26 +129814,21 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f }; obj73.Steps = list111; reference72 = obj73; - num++; - ref QuestSequence reference73 = ref span109[num]; + ref QuestSequence reference73 = ref span35[2]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2120) }; @@ -156424,16 +129841,13 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - Span span113 = CollectionsMarshal.AsSpan(list113); - index = 0; - span113[index] = "liza"; + CollectionsMarshal.AsSpan(list113)[0] = "liza"; questRoot17.Author = list113; - index = 3; - List list114 = new List(index); - CollectionsMarshal.SetCount(list114, index); - Span span114 = CollectionsMarshal.AsSpan(list114); - num = 0; - ref QuestSequence reference74 = ref span114[num]; + num = 3; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span36 = CollectionsMarshal.AsSpan(list114); + ref QuestSequence reference74 = ref span36[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -156441,33 +129855,27 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012226u, new Vector3(71.732666f, 23.979126f, 20.85907f), 418) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012226u, new Vector3(71.732666f, 23.979126f, 20.85907f), 418) { StopDistance = 7f }; obj75.Steps = list115; reference74 = obj75; - num++; - ref QuestSequence reference75 = ref span114[num]; + ref QuestSequence reference75 = ref span36[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj76.Steps = list116; reference75 = obj76; - num++; - ref QuestSequence reference76 = ref span114[num]; + ref QuestSequence reference76 = ref span36[2]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -156475,9 +129883,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 2005909u, new Vector3(73.899414f, 24.307495f, 22.049255f), 418) { NextQuestId = new QuestId(2121) }; @@ -156490,26 +129896,21 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot18.Author = list118; - index = 3; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference77 = ref span119[num]; + num = 3; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span37 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference77 = ref span37[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -156522,8 +129923,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list120; reference77 = obj78; - num++; - ref QuestSequence reference78 = ref span119[num]; + ref QuestSequence reference78 = ref span37[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -156531,9 +129931,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -156545,18 +129943,15 @@ public static class AssemblyQuestLoader }; obj79.Steps = list121; reference78 = obj79; - num++; - ref QuestSequence reference79 = ref span119[num]; + ref QuestSequence reference79 = ref span37[2]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2122) }; @@ -156569,16 +129964,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot19.Author = list123; - index = 2; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference80 = ref span124[num]; + num = 2; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span38 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference80 = ref span38[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -156586,9 +129978,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012225u, new Vector3(90.10449f, 15.094684f, 30.044922f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -156602,18 +129992,15 @@ public static class AssemblyQuestLoader }; obj81.Steps = list125; reference80 = obj81; - num++; - ref QuestSequence reference81 = ref span124[num]; + ref QuestSequence reference81 = ref span38[1]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2936) }; @@ -156626,16 +130013,12 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = "liza"; + CollectionsMarshal.AsSpan(list127)[0] = "liza"; questRoot20.Author = list127; - index = 1; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref QuestSequence reference82 = ref span128[num]; + num = 1; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + ref QuestSequence reference82 = ref CollectionsMarshal.AsSpan(list128)[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -156643,9 +130026,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref QuestStep reference83 = ref span129[index2]; + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list129)[0]; QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, @@ -156664,24 +130045,20 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = 419; + CollectionsMarshal.AsSpan(list130)[0] = 419; obj85.InTerritory = list130; skipConditions7.AetheryteShortcutIf = obj85; obj84.SkipConditions = skipConditions7; - index3 = 2; - List list131 = new List(index3); - CollectionsMarshal.SetCount(list131, index3); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - span131[num3] = new DialogueChoice + num3 = 2; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + Span span39 = CollectionsMarshal.AsSpan(list131); + span39[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST299_02123_Q1_000_000") }; - num3++; - span131[num3] = new DialogueChoice + span39[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST299_02123_Q2_000_000") @@ -156701,16 +130078,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "pot0to"; + CollectionsMarshal.AsSpan(list)[0] = "pot0to"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -156718,9 +130092,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1012181u, new Vector3(-248.55426f, -20.034918f, -90.98956f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -156735,31 +130107,25 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = 419; + CollectionsMarshal.AsSpan(list4)[0] = 419; skipAetheryteCondition.InTerritory = list4; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj2.SkipConditions = skipConditions; reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -156767,9 +130133,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1015931u, new Vector3(97.032104f, -22.000004f, 52.414673f), 418) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1015931u, new Vector3(97.032104f, -22.000004f, 52.414673f), 418) { AethernetShortcut = new AethernetShortcut { @@ -156779,18 +130143,15 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -156808,16 +130169,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "pot0to"; + CollectionsMarshal.AsSpan(list8)[0] = "pot0to"; questRoot2.Author = list8; - index = 7; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 7; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -156825,9 +130183,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - ref QuestStep reference7 = ref span10[index2]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; QuestStep obj7 = new QuestStep(EInteractionType.AcceptQuest, 1015932u, new Vector3(-250.81262f, -20.03492f, -89.982544f), 419) { StopDistance = 5f, @@ -156840,30 +130196,25 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index3 = 1; - List list11 = new List(index3); - CollectionsMarshal.SetCount(list11, index3); - Span span11 = CollectionsMarshal.AsSpan(list11); - num3 = 0; - span11[num3] = 419; + num3 = 1; + List list11 = new List(num3); + CollectionsMarshal.SetCount(list11, num3); + CollectionsMarshal.AsSpan(list11)[0] = 419; skipAetheryteCondition2.InTerritory = list11; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj7.SkipConditions = skipConditions2; reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -156874,8 +130225,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span9[num]; + ref QuestSequence reference9 = ref span2[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -156883,27 +130233,21 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1015933u, new Vector3(-7.950012f, 0.024999563f, -8.224609f), 427); + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1015933u, new Vector3(-7.950012f, 0.024999563f, -8.224609f), 427); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span2[4]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -156911,9 +130255,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.Interact, 1015936u, new Vector3(69.90149f, 23.979128f, -48.722107f), 418) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1015936u, new Vector3(69.90149f, 23.979128f, -48.722107f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -156924,18 +130266,16 @@ public static class AssemblyQuestLoader }; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span9[num]; + ref QuestSequence reference12 = ref span2[5]; QuestSequence obj12 = new QuestSequence { Sequence = 5 }; - 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) + 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) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -156944,12 +130284,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - num2++; - span16[num2] = new QuestStep(EInteractionType.Interact, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); + span3[1] = new QuestStep(EInteractionType.Interact, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span9[num]; + ref QuestSequence reference13 = ref span2[6]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -156957,9 +130295,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427) { NextQuestId = new QuestId(2154) }; @@ -156972,26 +130308,22 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "pot0to"; + CollectionsMarshal.AsSpan(list18)[0] = "pot0to"; questRoot3.Author = list18; - index = 6; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference14 = ref span19[num]; + num = 6; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span4 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference14 = ref span4[0]; QuestSequence obj14 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span5 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span5[0]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -157007,30 +130339,24 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - index3 = 0; - span21[index3] = 427; + CollectionsMarshal.AsSpan(list21)[0] = 427; skipStepConditions.InTerritory = list21; skipConditions3.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + Span span6 = CollectionsMarshal.AsSpan(list22); + span6[0] = 419; + span6[1] = 427; skipAetheryteCondition3.InTerritory = list22; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj15.SkipConditions = skipConditions3; reference15 = obj15; - num2++; - span20[num2] = new QuestStep(EInteractionType.AcceptQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); + span5[1] = new QuestStep(EInteractionType.AcceptQuest, 1012266u, new Vector3(-7.950012f, 0.20000005f, -10.51355f), 427); obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference16 = ref span19[num]; + ref QuestSequence reference16 = ref span4[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -157038,32 +130364,26 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) + Span span7 = CollectionsMarshal.AsSpan(list23); + span7[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) { TargetTerritoryId = (ushort)419 }; - index2++; - span23[index2] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419); + span7[1] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419); obj16.Steps = list23; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span19[num]; + ref QuestSequence reference17 = ref span4[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj17.Steps = list24; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span19[num]; + ref QuestSequence reference18 = ref span4[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -157071,39 +130391,32 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span8 = CollectionsMarshal.AsSpan(list25); + span8[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; - index2++; - span25[index2] = new QuestStep(EInteractionType.Interact, 1015944u, new Vector3(6.94281f, 0.22499956f, 7.4310913f), 427); + span8[1] = new QuestStep(EInteractionType.Interact, 1015944u, new Vector3(6.94281f, 0.22499956f, 7.4310913f), 427); obj18.Steps = list25; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span19[num]; + ref QuestSequence reference19 = ref span4[4]; QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)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); + 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); obj19.Steps = list26; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span19[num]; + ref QuestSequence reference20 = ref span4[5]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -157111,9 +130424,8 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span10 = CollectionsMarshal.AsSpan(list27); + span10[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, AethernetShortcut = new AethernetShortcut @@ -157122,8 +130434,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - index2++; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427) { NextQuestId = new QuestId(2155) }; @@ -157136,26 +130447,22 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "pot0to"; + CollectionsMarshal.AsSpan(list28)[0] = "pot0to"; questRoot4.Author = list28; - index = 10; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference21 = ref span29[num]; + num = 10; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span11 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference21 = ref span11[0]; QuestSequence obj21 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + Span span12 = CollectionsMarshal.AsSpan(list30); + ref QuestStep reference22 = ref span12[0]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -157171,30 +130478,24 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = 427; + CollectionsMarshal.AsSpan(list31)[0] = 427; skipStepConditions2.InTerritory = list31; skipConditions4.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span13 = CollectionsMarshal.AsSpan(list32); + span13[0] = 419; + span13[1] = 427; skipAetheryteCondition4.InTerritory = list32; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj22.SkipConditions = skipConditions4; reference22 = obj22; - num2++; - span30[num2] = new QuestStep(EInteractionType.AcceptQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427); + span12[1] = new QuestStep(EInteractionType.AcceptQuest, 1015952u, new Vector3(-1.3886108f, 0.20000005f, -9.903137f), 427); obj21.Steps = list30; reference21 = obj21; - num++; - ref QuestSequence reference23 = ref span29[num]; + ref QuestSequence reference23 = ref span11[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 @@ -157202,32 +130503,26 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) + Span span14 = CollectionsMarshal.AsSpan(list33); + span14[0] = new QuestStep(EInteractionType.Interact, 2005332u, new Vector3(-5.012468f, 1.1515f, 11.86189f), 427) { TargetTerritoryId = (ushort)419 }; - index2++; - span33[index2] = new QuestStep(EInteractionType.Interact, 1015965u, new Vector3(-31.631958f, 15.965061f, -66.941345f), 419); + span14[1] = new QuestStep(EInteractionType.Interact, 1015965u, new Vector3(-31.631958f, 15.965061f, -66.941345f), 419); obj23.Steps = list33; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span29[num]; + ref QuestSequence reference24 = ref span11[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span29[num]; + ref QuestSequence reference25 = ref span11[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -157235,29 +130530,23 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - 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); + 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); obj25.Steps = list35; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span29[num]; + ref QuestSequence reference26 = ref span11[4]; QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj26.Steps = list36; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span29[num]; + ref QuestSequence reference27 = ref span11[5]; QuestSequence obj27 = new QuestSequence { Sequence = 5 @@ -157265,27 +130554,22 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1015973u, new Vector3(782.62f, 216.88771f, 222.9801f), 397) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1015973u, new Vector3(782.62f, 216.88771f, 222.9801f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj27.Steps = list37; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span29[num]; + ref QuestSequence reference28 = ref span11[6]; QuestSequence obj28 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list38 = new List(index2); - CollectionsMarshal.SetCount(list38, index2); - Span span38 = CollectionsMarshal.AsSpan(list38); - num2 = 0; - ref QuestStep reference29 = ref span38[num2]; + num2 = 1; + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list38)[0]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 2006603u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -157293,15 +130577,12 @@ public static class AssemblyQuestLoader num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span39 = CollectionsMarshal.AsSpan(list39); - index3 = 0; - span39[index3] = 4676u; + CollectionsMarshal.AsSpan(list39)[0] = 4676u; obj29.KillEnemyDataIds = list39; reference29 = obj29; obj28.Steps = list38; reference28 = obj28; - num++; - ref QuestSequence reference30 = ref span29[num]; + ref QuestSequence reference30 = ref span11[7]; QuestSequence obj30 = new QuestSequence { Sequence = 7 @@ -157309,30 +130590,24 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 2006617u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2006617u, new Vector3(782.1926f, 216.6322f, 219.74512f), 397); obj30.Steps = list40; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span29[num]; + ref QuestSequence reference31 = ref span11[8]; QuestSequence obj31 = new QuestSequence { Sequence = 8 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj31.Steps = list41; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span29[num]; + ref QuestSequence reference32 = ref span11[9]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -157340,9 +130615,7 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -157360,33 +130633,27 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; questRoot5.Author = list43; - index = 5; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 5; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span16 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span16[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj33.Steps = list45; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span16[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -157394,9 +130661,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - ref QuestStep reference35 = ref span46[index2]; + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -157405,12 +130670,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - index3 = 1; - List list47 = new List(index3); - CollectionsMarshal.SetCount(list47, index3); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - span47[num3] = new DialogueChoice + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNB101_02156_SCENE00010_EVENTAREA_WARP_YESNO_TITLE") @@ -157419,25 +130682,21 @@ public static class AssemblyQuestLoader reference35 = obj35; obj34.Steps = list46; reference34 = obj34; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span16[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj36.Steps = list48; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span44[num]; + ref QuestSequence reference37 = ref span16[3]; QuestSequence obj37 = new QuestSequence { Sequence = 3 @@ -157445,23 +130704,18 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 1012326u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1012326u, new Vector3(92.36279f, 15.094684f, 33.188354f), 418); obj37.Steps = list49; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span44[num]; + ref QuestSequence reference38 = ref span16[4]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj38.Steps = list50; reference38 = obj38; questRoot5.QuestSequence = list44; @@ -157471,16 +130725,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list51)[0] = "JerryWester"; questRoot6.Author = list51; - index = 4; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference39 = ref span52[num]; + num = 4; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span17 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference39 = ref span17[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -157488,9 +130739,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015979u, new Vector3(112.53516f, 24.391697f, -2.8840332f), 418) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015979u, new Vector3(112.53516f, 24.391697f, -2.8840332f), 418) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -157504,26 +130753,22 @@ public static class AssemblyQuestLoader }; obj39.Steps = list53; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span52[num]; + ref QuestSequence reference40 = ref span17[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj40.Steps = list54; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span52[num]; + ref QuestSequence reference41 = ref span17[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -157531,9 +130776,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -157541,18 +130784,15 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span52[num]; + ref QuestSequence reference42 = ref span17[3]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj42.Steps = list56; reference42 = obj42; questRoot6.QuestSequence = list52; @@ -157562,16 +130802,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; questRoot7.Author = list57; - index = 4; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference43 = ref span58[num]; + num = 4; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span18 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference43 = ref span18[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -157579,9 +130816,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015983u, new Vector3(-297.74933f, 39.04307f, 37.064087f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, SkipConditions = new SkipConditions @@ -157594,25 +130829,21 @@ public static class AssemblyQuestLoader }; obj43.Steps = list59; reference43 = obj43; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span18[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj44.Steps = list60; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span58[num]; + ref QuestSequence reference45 = ref span18[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -157620,23 +130851,18 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.Interact, 2006605u, new Vector3(101.182495f, 206.71387f, 111.34509f), 478); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2006605u, new Vector3(101.182495f, 206.71387f, 111.34509f), 478); obj45.Steps = list61; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span58[num]; + ref QuestSequence reference46 = ref span18[3]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -157649,16 +130875,13 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list63)[0] = "JerryWester"; questRoot8.Author = list63; - index = 6; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref QuestSequence reference47 = ref span64[num]; + num = 6; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + Span span19 = CollectionsMarshal.AsSpan(list64); + ref QuestSequence reference47 = ref span19[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -157666,30 +130889,24 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015992u, new Vector3(-478.14148f, 137.42972f, 700.8926f), 399); obj47.Steps = list65; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span64[num]; + ref QuestSequence reference48 = ref span19[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)463 }; obj48.Steps = list66; reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span64[num]; + ref QuestSequence reference49 = ref span19[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -157697,34 +130914,27 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1012405u, new Vector3(587.7927f, -50.623985f, 70.725464f), 398) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1012405u, new Vector3(587.7927f, -50.623985f, 70.725464f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj49.Steps = list67; reference49 = obj49; - num++; - ref QuestSequence reference50 = ref span64[num]; + ref QuestSequence reference50 = ref span19[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj50.Steps = list68; reference50 = obj50; - num++; - ref QuestSequence reference51 = ref span64[num]; + ref QuestSequence reference51 = ref span19[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -157732,23 +130942,18 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1015994u, new Vector3(470.38977f, -51.141403f, 38.651123f), 398); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1015994u, new Vector3(470.38977f, -51.141403f, 38.651123f), 398); obj51.Steps = list69; reference51 = obj51; - num++; - ref QuestSequence reference52 = ref span64[num]; + ref QuestSequence reference52 = ref span19[5]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -157761,16 +130966,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; questRoot9.Author = list71; - index = 5; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference53 = ref span72[num]; + num = 5; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span21 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference53 = ref span21[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -157778,30 +130980,24 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015998u, new Vector3(192.43152f, -54.189243f, -234.3634f), 398); + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015998u, new Vector3(192.43152f, -54.189243f, -234.3634f), 398); obj53.Steps = list73; reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span72[num]; + ref QuestSequence reference54 = ref span21[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj54.Steps = list74; reference54 = obj54; - num++; - ref QuestSequence reference55 = ref span72[num]; + ref QuestSequence reference55 = ref span21[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -157809,9 +131005,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - ref QuestStep reference56 = ref span75[index2]; + ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, null, new Vector3(173.8547f, -108.97817f, 600.48395f), 398) { Fly = true, @@ -157820,34 +131014,28 @@ public static class AssemblyQuestLoader num3 = 2; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span76 = CollectionsMarshal.AsSpan(list76); - index3 = 0; - span76[index3] = 4365u; - index3++; - span76[index3] = 4364u; + Span span22 = CollectionsMarshal.AsSpan(list76); + span22[0] = 4365u; + span22[1] = 4364u; obj56.KillEnemyDataIds = list76; reference56 = obj56; obj55.Steps = list75; reference55 = obj55; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span21[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj57.Steps = list77; reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span21[4]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -157855,9 +131043,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016002u, new Vector3(225.11633f, -116.6398f, 504.72266f), 398); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016002u, new Vector3(225.11633f, -116.6398f, 504.72266f), 398); obj58.Steps = list78; reference58 = obj58; questRoot9.QuestSequence = list72; @@ -157867,30 +131053,24 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list79)[0] = "JerryWester"; questRoot10.Author = list79; - index = 4; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference59 = ref span80[num]; + num = 4; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span23 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference59 = ref span23[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list81; reference59 = obj59; - num++; - ref QuestSequence reference60 = ref span80[num]; + ref QuestSequence reference60 = ref span23[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -157898,9 +131078,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { StopDistance = 9f, Fly = true, @@ -157908,25 +131086,21 @@ public static class AssemblyQuestLoader }; obj60.Steps = list82; reference60 = obj60; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span23[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj61.Steps = list83; reference61 = obj61; - num++; - ref QuestSequence reference62 = ref span80[num]; + ref QuestSequence reference62 = ref span23[3]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -157934,9 +131108,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418); obj62.Steps = list84; reference62 = obj62; questRoot10.QuestSequence = list80; @@ -157946,26 +131118,21 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list85)[0] = "JerryWester"; questRoot11.Author = list85; - index = 6; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference63 = ref span86[num]; + num = 6; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span24 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference63 = ref span24[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -157978,8 +131145,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list87; reference63 = obj63; - num++; - ref QuestSequence reference64 = ref span86[num]; + ref QuestSequence reference64 = ref span24[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -157987,9 +131153,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1012384u, new Vector3(-182.66577f, -12.534915f, -39.871887f), 419) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1012384u, new Vector3(-182.66577f, -12.534915f, -39.871887f), 419) { AethernetShortcut = new AethernetShortcut { @@ -157999,18 +131163,16 @@ public static class AssemblyQuestLoader }; obj64.Steps = list88; reference64 = obj64; - num++; - ref QuestSequence reference65 = ref span86[num]; + ref QuestSequence reference65 = ref span24[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list89 = new List(index2); - CollectionsMarshal.SetCount(list89, index2); - Span span89 = CollectionsMarshal.AsSpan(list89); - num2 = 0; - ref QuestStep reference66 = ref span89[num2]; + num2 = 3; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + Span span25 = CollectionsMarshal.AsSpan(list89); + ref QuestStep reference66 = ref span25[0]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1016018u, new Vector3(26.16919f, 27.964573f, -146.71558f), 419) { AethernetShortcut = new AethernetShortcut @@ -158019,70 +131181,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardTribunal } }; - 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); + 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); obj66.CompletionQuestVariablesFlags = list90; reference66 = obj66; - num2++; - ref QuestStep reference67 = ref span89[num2]; + ref QuestStep reference67 = ref span25[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list91; reference67 = questStep; - num2++; - ref QuestStep reference68 = ref span89[num2]; + ref QuestStep reference68 = ref span25[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1016015u, new Vector3(-7.827942f, 26.965073f, -106.6759f), 419); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list92; reference68 = questStep2; obj65.Steps = list89; reference65 = obj65; - num++; - ref QuestSequence reference69 = ref span86[num]; + ref QuestSequence reference69 = ref span24[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -158090,23 +131231,18 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1016028u, new Vector3(59.861084f, -4.734944f, -41.61145f), 419); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1016028u, new Vector3(59.861084f, -4.734944f, -41.61145f), 419); obj67.Steps = list93; reference69 = obj67; - num++; - ref QuestSequence reference70 = ref span86[num]; + ref QuestSequence reference70 = ref span24[4]; QuestSequence obj68 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -158117,8 +131253,7 @@ public static class AssemblyQuestLoader }; obj68.Steps = list94; reference70 = obj68; - num++; - ref QuestSequence reference71 = ref span86[num]; + ref QuestSequence reference71 = ref span24[5]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -158126,9 +131261,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { AethernetShortcut = new AethernetShortcut { @@ -158145,26 +131278,21 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list96)[0] = "JerryWester"; questRoot12.Author = list96; - index = 5; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference72 = ref span97[num]; + num = 5; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span29 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference72 = ref span29[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -158177,8 +131305,7 @@ public static class AssemblyQuestLoader }; obj70.Steps = list98; reference72 = obj70; - num++; - ref QuestSequence reference73 = ref span97[num]; + ref QuestSequence reference73 = ref span29[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -158186,9 +131313,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016034u, new Vector3(-182.39111f, -0.23098835f, -70.72565f), 419) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016034u, new Vector3(-182.39111f, -0.23098835f, -70.72565f), 419) { AethernetShortcut = new AethernetShortcut { @@ -158202,30 +131327,25 @@ public static class AssemblyQuestLoader }; obj71.Steps = list99; reference73 = obj71; - num++; - span97[num] = new QuestSequence + span29[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference74 = ref span97[num]; + ref QuestSequence reference74 = ref span29[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj72.Steps = list100; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span97[num]; + ref QuestSequence reference75 = ref span29[4]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -158233,14 +131353,12 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span30 = CollectionsMarshal.AsSpan(list101); + span30[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433 }; - index2++; - span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016050u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1016050u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; @@ -158253,30 +131371,24 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot13.Author = list102; - index = 8; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference76 = ref span103[num]; + num = 8; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span31 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference76 = ref span31[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj74.Steps = list104; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span103[num]; + ref QuestSequence reference77 = ref span31[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -158284,27 +131396,22 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 2006621u, new Vector3(-428.27502f, 201.34265f, -229.05322f), 401) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2006621u, new Vector3(-428.27502f, 201.34265f, -229.05322f), 401) { StopDistance = 0.5f, Fly = true }; obj75.Steps = list105; reference77 = obj75; - num++; - ref QuestSequence reference78 = ref span103[num]; + ref QuestSequence reference78 = ref span31[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list106 = new List(index2); - CollectionsMarshal.SetCount(list106, index2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num2 = 0; - ref QuestStep reference79 = ref span106[num2]; + num2 = 1; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.762f, 168.23676f, -215.835f), 401) { StopDistance = 5f, @@ -158313,17 +131420,14 @@ public static class AssemblyQuestLoader num3 = 2; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - index3 = 0; - span107[index3] = 5232u; - index3++; - span107[index3] = 5233u; + Span span32 = CollectionsMarshal.AsSpan(list107); + span32[0] = 5232u; + span32[1] = 5233u; obj77.KillEnemyDataIds = list107; reference79 = obj77; obj76.Steps = list106; reference78 = obj76; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span31[3]; QuestSequence obj78 = new QuestSequence { Sequence = 3 @@ -158331,31 +131435,25 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1016150u, new Vector3(-429.52625f, 167.9683f, -224.445f), 401); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1016150u, new Vector3(-429.52625f, 167.9683f, -224.445f), 401); obj78.Steps = list108; reference80 = obj78; - num++; - ref QuestSequence reference81 = ref span103[num]; + ref QuestSequence reference81 = ref span31[4]; QuestSequence obj79 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj79.Steps = list109; reference81 = obj79; - num++; - ref QuestSequence reference82 = ref span103[num]; + ref QuestSequence reference82 = ref span31[5]; QuestSequence obj80 = new QuestSequence { Sequence = 5 @@ -158363,51 +131461,40 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; obj80.Steps = list110; reference82 = obj80; - num++; - ref QuestSequence reference83 = ref span103[num]; + ref QuestSequence reference83 = ref span31[6]; QuestSequence obj81 = new QuestSequence { Sequence = 6 }; - index2 = 3; - List list111 = new List(index2); - CollectionsMarshal.SetCount(list111, index2); - Span span111 = CollectionsMarshal.AsSpan(list111); - num2 = 0; - ref QuestStep reference84 = ref span111[num2]; + num2 = 3; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + Span span33 = CollectionsMarshal.AsSpan(list111); + ref QuestStep reference84 = ref span33[0]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 1016158u, new Vector3(-779.263f, -117.906494f, -393.54547f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - 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); + 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); obj82.CompletionQuestVariablesFlags = list112; reference84 = obj82; - num2++; - ref QuestStep reference85 = ref span111[num2]; + ref QuestStep reference85 = ref span33[1]; QuestStep obj83 = new QuestStep(EInteractionType.Action, 1016157u, new Vector3(-813.2906f, -110.49066f, -434.1955f), 401) { Fly = true, @@ -158416,50 +131503,36 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - 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); + 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); obj83.CompletionQuestVariablesFlags = list113; reference85 = obj83; - num2++; - ref QuestStep reference86 = ref span111[num2]; + ref QuestStep reference86 = ref span33[2]; QuestStep obj84 = new QuestStep(EInteractionType.Action, 1016156u, new Vector3(-860.59357f, -122.91144f, -378.34747f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - 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); + 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); obj84.CompletionQuestVariablesFlags = list114; reference86 = obj84; obj81.Steps = list111; reference83 = obj81; - num++; - ref QuestSequence reference87 = ref span103[num]; + ref QuestSequence reference87 = ref span31[7]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -158467,15 +131540,13 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + Span span37 = CollectionsMarshal.AsSpan(list115); + span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { StopDistance = 2f, Fly = true }; - index2++; - ref QuestStep reference88 = ref span115[index2]; + ref QuestStep reference88 = ref span37[1]; QuestStep obj86 = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Mount = false @@ -158483,9 +131554,7 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span116 = CollectionsMarshal.AsSpan(list116); - index3 = 0; - span116[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANVAN001_02164_SYSYTEM_Q1_000_110"), @@ -158502,26 +131571,21 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "Censored"; + CollectionsMarshal.AsSpan(list117)[0] = "Censored"; questRoot14.Author = list117; - index = 8; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference89 = ref span118[num]; + num = 8; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span38 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference89 = ref span38[0]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -158540,8 +131604,7 @@ public static class AssemblyQuestLoader }; obj87.Steps = list119; reference89 = obj87; - num++; - ref QuestSequence reference90 = ref span118[num]; + ref QuestSequence reference90 = ref span38[1]; QuestSequence obj88 = new QuestSequence { Sequence = 1 @@ -158549,34 +131612,28 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj88.Steps = list120; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span118[num]; + ref QuestSequence reference91 = ref span38[2]; QuestSequence obj89 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj89.Steps = list121; reference91 = obj89; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span38[3]; QuestSequence obj90 = new QuestSequence { Sequence = 3 @@ -158584,44 +131641,36 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1016159u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401) { Fly = true }; obj90.Steps = list122; reference92 = obj90; - num++; - ref QuestSequence reference93 = ref span118[num]; + ref QuestSequence reference93 = ref span38[4]; QuestSequence obj91 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list123 = new List(index2); - CollectionsMarshal.SetCount(list123, index2); - Span span123 = CollectionsMarshal.AsSpan(list123); - num2 = 0; - ref QuestStep reference94 = ref span123[num2]; + num2 = 1; + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list123)[0]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(120.88076f, -93.90284f, 481.25824f), 401) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + Span span39 = CollectionsMarshal.AsSpan(list124); + span39[0] = 5232u; + span39[1] = 5233u; obj92.KillEnemyDataIds = list124; reference94 = obj92; obj91.Steps = list123; reference93 = obj91; - num++; - ref QuestSequence reference95 = ref span118[num]; + ref QuestSequence reference95 = ref span38[5]; QuestSequence obj93 = new QuestSequence { Sequence = 5 @@ -158629,31 +131678,25 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 1016463u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401); + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1016463u, new Vector3(115.983765f, -93.22756f, 477.8667f), 401); obj93.Steps = list125; reference95 = obj93; - num++; - ref QuestSequence reference96 = ref span118[num]; + ref QuestSequence reference96 = ref span38[6]; QuestSequence obj94 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj94.Steps = list126; reference96 = obj94; - num++; - ref QuestSequence reference97 = ref span118[num]; + ref QuestSequence reference97 = ref span38[7]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -158661,9 +131704,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true }; @@ -158676,30 +131717,24 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list128)[0] = "AnimaMachinae"; questRoot15.Author = list128; - index = 7; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference98 = ref span129[num]; + num = 7; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span40 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference98 = ref span40[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj96.Steps = list130; reference98 = obj96; - num++; - ref QuestSequence reference99 = ref span129[num]; + ref QuestSequence reference99 = ref span40[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -158707,31 +131742,27 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.3409f, -129.17549f, -409.1912f), 401) + Span span41 = CollectionsMarshal.AsSpan(list131); + span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-790.3409f, -129.17549f, -409.1912f), 401) { Fly = true }; - index2++; - span131[index2] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + span41[1] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Fly = true }; obj97.Steps = list131; reference99 = obj97; - num++; - ref QuestSequence reference100 = ref span129[num]; + ref QuestSequence reference100 = ref span40[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num2 = 0; - ref QuestStep reference101 = ref span132[num2]; + num2 = 5; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + Span span42 = CollectionsMarshal.AsSpan(list132); + ref QuestStep reference101 = ref span42[0]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 2006627u, new Vector3(583.52014f, -126.81775f, 268.0857f), 401) { ItemId = 2001901u @@ -158739,48 +131770,34 @@ public static class AssemblyQuestLoader num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - 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); + 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); obj99.CompletionQuestVariablesFlags = list133; reference101 = obj99; - num2++; - ref QuestStep reference102 = ref span132[num2]; + ref QuestStep reference102 = ref span42[1]; QuestStep obj100 = new QuestStep(EInteractionType.UseItem, 2006628u, new Vector3(632.95935f, -111.680786f, 157.85449f), 401) { Fly = true, ItemId = 2001901u }; - 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); + 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); obj100.CompletionQuestVariablesFlags = list134; reference102 = obj100; - num2++; - ref QuestStep reference103 = ref span132[num2]; + ref QuestStep reference103 = ref span42[2]; QuestStep obj101 = new QuestStep(EInteractionType.UseItem, 2006629u, new Vector3(688.5939f, -95.99457f, 101.27405f), 401) { Fly = true, @@ -158789,48 +131806,34 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - 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); + 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); obj101.CompletionQuestVariablesFlags = list135; reference103 = obj101; - num2++; - ref QuestStep reference104 = ref span132[num2]; + ref QuestStep reference104 = ref span42[3]; QuestStep obj102 = new QuestStep(EInteractionType.UseItem, 2006630u, new Vector3(709.86475f, -85.19116f, 29.892456f), 401) { Fly = true, ItemId = 2001901u }; - 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); + 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); obj102.CompletionQuestVariablesFlags = list136; reference104 = obj102; - num2++; - ref QuestStep reference105 = ref span132[num2]; + ref QuestStep reference105 = ref span42[4]; QuestStep obj103 = new QuestStep(EInteractionType.UseItem, 2006631u, new Vector3(722.8656f, -65.84277f, -57.938538f), 401) { Fly = true, @@ -158839,25 +131842,18 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - 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); + 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); obj103.CompletionQuestVariablesFlags = list137; reference105 = obj103; obj98.Steps = list132; reference100 = obj98; - num++; - ref QuestSequence reference106 = ref span129[num]; + ref QuestSequence reference106 = ref span40[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -158865,33 +131861,27 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1016166u, new Vector3(557.885f, -126.23241f, 283.07007f), 401) { Fly = true }; obj104.Steps = list138; reference106 = obj104; - num++; - ref QuestSequence reference107 = ref span129[num]; + ref QuestSequence reference107 = ref span40[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Emote = EEmote.Dance }; obj105.Steps = list139; reference107 = obj105; - num++; - ref QuestSequence reference108 = ref span129[num]; + ref QuestSequence reference108 = ref span40[5]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -158899,27 +131889,22 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj106.Steps = list140; reference108 = obj106; - num++; - ref QuestSequence reference109 = ref span129[num]; + ref QuestSequence reference109 = ref span40[6]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -158932,16 +131917,13 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "Censored"; + CollectionsMarshal.AsSpan(list142)[0] = "Censored"; questRoot16.Author = list142; - index = 6; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference110 = ref span143[num]; + num = 6; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span48 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference110 = ref span48[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -158949,9 +131931,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -158970,37 +131950,31 @@ public static class AssemblyQuestLoader }; obj108.Steps = list144; reference110 = obj108; - num++; - ref QuestSequence reference111 = ref span143[num]; + ref QuestSequence reference111 = ref span48[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list145 = new List(index2); - CollectionsMarshal.SetCount(list145, index2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num2 = 0; - ref QuestStep reference112 = ref span145[num2]; + num2 = 1; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, null, new Vector3(-298.6771f, 93.99152f, -222.3565f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + Span span49 = CollectionsMarshal.AsSpan(list146); + span49[0] = 5232u; + span49[1] = 5233u; obj110.KillEnemyDataIds = list146; reference112 = obj110; obj109.Steps = list145; reference111 = obj109; - num++; - ref QuestSequence reference113 = ref span143[num]; + ref QuestSequence reference113 = ref span48[2]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -159008,30 +131982,24 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Interact, 1016168u, new Vector3(-306.1723f, 93.99152f, -226.42871f), 401); + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1016168u, new Vector3(-306.1723f, 93.99152f, -226.42871f), 401); obj111.Steps = list147; reference113 = obj111; - num++; - ref QuestSequence reference114 = ref span143[num]; + ref QuestSequence reference114 = ref span48[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj112.Steps = list148; reference114 = obj112; - num++; - ref QuestSequence reference115 = ref span143[num]; + ref QuestSequence reference115 = ref span48[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -159039,27 +132007,22 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj113.Steps = list149; reference115 = obj113; - num++; - ref QuestSequence reference116 = ref span143[num]; + ref QuestSequence reference116 = ref span48[5]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -159072,16 +132035,13 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "Censored"; + CollectionsMarshal.AsSpan(list151)[0] = "Censored"; questRoot17.Author = list151; - index = 6; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference117 = ref span152[num]; + num = 6; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span50 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference117 = ref span50[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -159089,9 +132049,7 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -159110,18 +132068,15 @@ public static class AssemblyQuestLoader }; obj115.Steps = list153; reference117 = obj115; - num++; - ref QuestSequence reference118 = ref span152[num]; + ref QuestSequence reference118 = ref span50[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -159129,8 +132084,7 @@ public static class AssemblyQuestLoader }; obj116.Steps = list154; reference118 = obj116; - num++; - ref QuestSequence reference119 = ref span152[num]; + ref QuestSequence reference119 = ref span50[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -159138,27 +132092,22 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj117.Steps = list155; reference119 = obj117; - num++; - ref QuestSequence reference120 = ref span152[num]; + ref QuestSequence reference120 = ref span50[3]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list156 = new List(index2); - CollectionsMarshal.SetCount(list156, index2); - Span span156 = CollectionsMarshal.AsSpan(list156); - num2 = 0; - ref QuestStep reference121 = ref span156[num2]; + num2 = 1; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list156)[0]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, null, new Vector3(207.00311f, -118.345215f, 420.25885f), 401) { Fly = true, @@ -159168,15 +132117,12 @@ public static class AssemblyQuestLoader num3 = 1; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - Span span157 = CollectionsMarshal.AsSpan(list157); - index3 = 0; - span157[index3] = 5234u; + CollectionsMarshal.AsSpan(list157)[0] = 5234u; obj119.KillEnemyDataIds = list157; reference121 = obj119; obj118.Steps = list156; reference120 = obj118; - num++; - ref QuestSequence reference122 = ref span152[num]; + ref QuestSequence reference122 = ref span50[4]; QuestSequence obj120 = new QuestSequence { Sequence = 4 @@ -159184,23 +132130,18 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 1016173u, new Vector3(205.31006f, -118.345215f, 422.20178f), 401); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1016173u, new Vector3(205.31006f, -118.345215f, 422.20178f), 401); obj120.Steps = list158; reference122 = obj120; - num++; - ref QuestSequence reference123 = ref span152[num]; + ref QuestSequence reference123 = ref span50[5]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -159214,16 +132155,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list160)[0] = "plogon_enjoyer"; questRoot18.Author = list160; - index = 9; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference124 = ref span161[num]; + num = 9; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span51 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference124 = ref span51[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -159231,31 +132169,25 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401); obj122.Steps = list162; reference124 = obj122; - num++; - ref QuestSequence reference125 = ref span161[num]; + ref QuestSequence reference125 = ref span51[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj123.Steps = list163; reference125 = obj123; - num++; - ref QuestSequence reference126 = ref span161[num]; + ref QuestSequence reference126 = ref span51[2]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -159263,40 +132195,34 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true }; obj124.Steps = list164; reference126 = obj124; - num++; - ref QuestSequence reference127 = ref span161[num]; + ref QuestSequence reference127 = ref span51[3]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; - num2++; - span165[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) + span52[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-589.2831f, -1.0348412f, -340.14413f), 401) { Mount = false, Emote = EEmote.Dance }; obj125.Steps = list165; reference127 = obj125; - num++; - ref QuestSequence reference128 = ref span161[num]; + ref QuestSequence reference128 = ref span51[4]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -159304,33 +132230,27 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true }; obj126.Steps = list166; reference128 = obj126; - num++; - ref QuestSequence reference129 = ref span161[num]; + ref QuestSequence reference129 = ref span51[5]; QuestSequence obj127 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj127.Steps = list167; reference129 = obj127; - num++; - ref QuestSequence reference130 = ref span161[num]; + ref QuestSequence reference130 = ref span51[6]; QuestSequence obj128 = new QuestSequence { Sequence = 6 @@ -159338,40 +132258,34 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) + Span span53 = CollectionsMarshal.AsSpan(list168); + span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) { Fly = true, Land = true }; - index2++; - span168[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) + span53[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(702.4233f, -60.78939f, 145.91805f), 401) { Mount = false, Emote = EEmote.Dance }; obj128.Steps = list168; reference130 = obj128; - num++; - ref QuestSequence reference131 = ref span161[num]; + ref QuestSequence reference131 = ref span51[7]; QuestSequence obj129 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj129.Steps = list169; reference131 = obj129; - num++; - ref QuestSequence reference132 = ref span161[num]; + ref QuestSequence reference132 = ref span51[8]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -159379,9 +132293,7 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016174u, new Vector3(-606.4088f, -51.071037f, -370.87054f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -159395,30 +132307,24 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; questRoot19.Author = list171; - index = 5; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference133 = ref span172[num]; + num = 5; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span54 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference133 = ref span54[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj131.Steps = list173; reference133 = obj131; - num++; - ref QuestSequence reference134 = ref span172[num]; + ref QuestSequence reference134 = ref span54[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -159426,34 +132332,28 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Emote, 2006623u, new Vector3(-761.74567f, -132.61621f, -422.1714f), 401) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Emote, 2006623u, new Vector3(-761.74567f, -132.61621f, -422.1714f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj132.Steps = list174; reference134 = obj132; - num++; - ref QuestSequence reference135 = ref span172[num]; + ref QuestSequence reference135 = ref span54[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj133.Steps = list175; reference135 = obj133; - num++; - ref QuestSequence reference136 = ref span172[num]; + ref QuestSequence reference136 = ref span54[3]; QuestSequence obj134 = new QuestSequence { Sequence = 3 @@ -159461,27 +132361,22 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1012064u, new Vector3(-542.7787f, -37.11544f, -386.7094f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj134.Steps = list176; reference136 = obj134; - num++; - ref QuestSequence reference137 = ref span172[num]; + ref QuestSequence reference137 = ref span54[4]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -159494,16 +132389,13 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; questRoot20.Author = list178; - index = 3; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference138 = ref span179[num]; + num = 3; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span55 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference138 = ref span55[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -159511,48 +132403,39 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj136.Steps = list180; reference138 = obj136; - num++; - ref QuestSequence reference139 = ref span179[num]; + ref QuestSequence reference139 = ref span55[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference140 = ref span181[num2]; + ref QuestStep reference140 = ref span56[1]; QuestStep obj138 = new QuestStep(EInteractionType.Combat, 2006642u, new Vector3(-245.41089f, -13.229614f, -608.2704f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list182 = new List(index3); - CollectionsMarshal.SetCount(list182, index3); - Span span182 = CollectionsMarshal.AsSpan(list182); - num3 = 0; - span182[num3] = 5236u; + num3 = 1; + List list182 = new List(num3); + CollectionsMarshal.SetCount(list182, num3); + CollectionsMarshal.AsSpan(list182)[0] = 5236u; obj138.KillEnemyDataIds = list182; reference140 = obj138; - num2++; - span181[num2] = new QuestStep(EInteractionType.Interact, 2006640u, new Vector3(-82.230896f, -10.727112f, -637.90344f), 401) + span56[2] = new QuestStep(EInteractionType.Interact, 2006640u, new Vector3(-82.230896f, -10.727112f, -637.90344f), 401) { Fly = true }; - num2++; - ref QuestStep reference141 = ref span181[num2]; + ref QuestStep reference141 = ref span56[3]; QuestStep obj139 = new QuestStep(EInteractionType.Combat, 2006641u, new Vector3(-24.765442f, 5.3253784f, -657.70966f), 401) { Fly = true, @@ -159561,15 +132444,12 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span183 = CollectionsMarshal.AsSpan(list183); - index3 = 0; - span183[index3] = 5236u; + CollectionsMarshal.AsSpan(list183)[0] = 5236u; obj139.KillEnemyDataIds = list183; reference141 = obj139; obj137.Steps = list181; reference139 = obj137; - num++; - ref QuestSequence reference142 = ref span179[num]; + ref QuestSequence reference142 = ref span55[2]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -159577,9 +132457,7 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -159605,30 +132483,24 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - Span span185 = CollectionsMarshal.AsSpan(list185); - index = 0; - span185[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list185)[0] = "plogon_enjoyer"; questRoot21.Author = list185; - index = 5; - List list186 = new List(index); - CollectionsMarshal.SetCount(list186, index); - Span span186 = CollectionsMarshal.AsSpan(list186); - num = 0; - ref QuestSequence reference143 = ref span186[num]; + num = 5; + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + Span span57 = CollectionsMarshal.AsSpan(list186); + ref QuestSequence reference143 = ref span57[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj141.Steps = list187; reference143 = obj141; - num++; - ref QuestSequence reference144 = ref span186[num]; + ref QuestSequence reference144 = ref span57[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -159636,49 +132508,42 @@ public static class AssemblyQuestLoader num2 = 3; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 2006645u, new Vector3(-473.10602f, -56.01587f, -624.1398f), 401) + Span span58 = CollectionsMarshal.AsSpan(list188); + span58[0] = new QuestStep(EInteractionType.Interact, 2006645u, new Vector3(-473.10602f, -56.01587f, -624.1398f), 401) { Fly = true }; - index2++; - span188[index2] = new QuestStep(EInteractionType.Interact, 2006644u, new Vector3(-365.92664f, -57.053528f, -579.553f), 401) + span58[1] = new QuestStep(EInteractionType.Interact, 2006644u, new Vector3(-365.92664f, -57.053528f, -579.553f), 401) { Fly = true }; - index2++; - span188[index2] = new QuestStep(EInteractionType.Interact, 2006643u, new Vector3(-381.9486f, -56.50421f, -521.8433f), 401) + span58[2] = new QuestStep(EInteractionType.Interact, 2006643u, new Vector3(-381.9486f, -56.50421f, -521.8433f), 401) { Fly = true }; obj142.Steps = list188; reference144 = obj142; - num++; - ref QuestSequence reference145 = ref span186[num]; + ref QuestSequence reference145 = ref span57[2]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - num2++; - span189[num2] = new QuestStep(EInteractionType.Interact, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + span59[1] = new QuestStep(EInteractionType.Interact, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Mount = false }; obj143.Steps = list189; reference145 = obj143; - num++; - ref QuestSequence reference146 = ref span186[num]; + ref QuestSequence reference146 = ref span57[3]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -159686,27 +132551,22 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 1012056u, new Vector3(-658.89984f, -127.78361f, 622.98f), 401) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1012056u, new Vector3(-658.89984f, -127.78361f, 622.98f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj144.Steps = list190; reference146 = obj144; - num++; - ref QuestSequence reference147 = ref span186[num]; + ref QuestSequence reference147 = ref span57[4]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -159732,16 +132592,13 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list192)[0] = "AnimaMachinae"; questRoot22.Author = list192; - index = 4; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref QuestSequence reference148 = ref span193[num]; + num = 4; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span60 = CollectionsMarshal.AsSpan(list193); + ref QuestSequence reference148 = ref span60[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -159749,23 +132606,19 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj146.Steps = list194; reference148 = obj146; - num++; - ref QuestSequence reference149 = ref span193[num]; + ref QuestSequence reference149 = ref span60[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -159782,12 +132635,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span195[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + span61[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj147.Steps = list195; reference149 = obj147; - num++; - ref QuestSequence reference150 = ref span193[num]; + ref QuestSequence reference150 = ref span60[2]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -159795,44 +132646,34 @@ public static class AssemblyQuestLoader num2 = 8; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.89056f, 61.602722f, -373.9669f), 401) + Span span62 = CollectionsMarshal.AsSpan(list196); + span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.89056f, 61.602722f, -373.9669f), 401) { Fly = true }; - index2++; - ref QuestStep reference151 = ref span196[index2]; + ref QuestStep reference151 = ref span62[1]; QuestStep obj149 = new QuestStep(EInteractionType.Action, 2006649u, new Vector3(-539.0555f, 64.22522f, -377.0047f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; - 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); + 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); obj149.CompletionQuestVariablesFlags = list197; reference151 = obj149; - index2++; - span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-505.35422f, -28.166508f, -528.1072f), 401) + span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-505.35422f, -28.166508f, -528.1072f), 401) { Fly = true }; - index2++; - ref QuestStep reference152 = ref span196[index2]; + ref QuestStep reference152 = ref span62[3]; QuestStep obj150 = new QuestStep(EInteractionType.Action, 2006647u, new Vector3(-504.78372f, -26.68805f, -530.93774f), 401) { StopDistance = 3f, @@ -159841,76 +132682,57 @@ public static class AssemblyQuestLoader num3 = 6; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - 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); + 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); obj150.CompletionQuestVariablesFlags = list198; reference152 = obj150; - index2++; - span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-478.25208f, -31.101946f, -663.0455f), 401) + span62[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-478.25208f, -31.101946f, -663.0455f), 401) { Fly = true }; - index2++; - ref QuestStep reference153 = ref span196[index2]; + ref QuestStep reference153 = ref span62[5]; QuestStep obj151 = new QuestStep(EInteractionType.Action, 2006648u, new Vector3(-477.40906f, -28.885437f, -668.32996f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; - 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); + 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); obj151.CompletionQuestVariablesFlags = list199; reference153 = obj151; - index2++; - span196[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.45963f, -1.2632592f, -619.294f), 401) + span62[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.45963f, -1.2632592f, -619.294f), 401) { Fly = true }; - index2++; - span196[index2] = new QuestStep(EInteractionType.Action, 2006646u, new Vector3(-96.20813f, 0.32037354f, -620.26404f), 401) + span62[7] = new QuestStep(EInteractionType.Action, 2006646u, new Vector3(-96.20813f, 0.32037354f, -620.26404f), 401) { StopDistance = 3f, Action = EAction.BuffetSanuwa }; obj148.Steps = list196; reference150 = obj148; - num++; - ref QuestSequence reference154 = ref span193[num]; + ref QuestSequence reference154 = ref span60[3]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -159924,16 +132746,13 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list201)[0] = "AnimaMachinae"; questRoot23.Author = list201; - index = 3; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference155 = ref span202[num]; + num = 3; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span66 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference155 = ref span66[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -159941,23 +132760,19 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj153.Steps = list203; reference155 = obj153; - num++; - ref QuestSequence reference156 = ref span202[num]; + ref QuestSequence reference156 = ref span66[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num2 = 0; - ref QuestStep reference157 = ref span204[num2]; + num2 = 4; + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + Span span67 = CollectionsMarshal.AsSpan(list204); + ref QuestStep reference157 = ref span67[0]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 2006651u, new Vector3(664.3624f, -30.86908f, -137.0108f), 401) { Fly = true @@ -159965,47 +132780,33 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - 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); + 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); obj155.CompletionQuestVariablesFlags = list205; reference157 = obj155; - num2++; - ref QuestStep reference158 = ref span204[num2]; + ref QuestStep reference158 = ref span67[1]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2006652u, new Vector3(847.2876f, -50.58368f, 7.2174683f), 401) { Fly = true }; - 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); + 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); obj156.CompletionQuestVariablesFlags = list206; reference158 = obj156; - num2++; - ref QuestStep reference159 = ref span204[num2]; + ref QuestStep reference159 = ref span67[2]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, 2006653u, new Vector3(860.2273f, -84.45868f, 19.272095f), 401) { Fly = true, @@ -160014,30 +132815,21 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span207 = CollectionsMarshal.AsSpan(list207); - index3 = 0; - span207[index3] = 5235u; + CollectionsMarshal.AsSpan(list207)[0] = 5235u; obj157.KillEnemyDataIds = list207; - 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); + 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); obj157.CompletionQuestVariablesFlags = list208; reference159 = obj157; - num2++; - ref QuestStep reference160 = ref span204[num2]; + ref QuestStep reference160 = ref span67[3]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, 2006654u, new Vector3(642.63354f, -92.57648f, 63.035034f), 401) { Fly = true, @@ -160046,15 +132838,12 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span209 = CollectionsMarshal.AsSpan(list209); - index3 = 0; - span209[index3] = 5235u; + CollectionsMarshal.AsSpan(list209)[0] = 5235u; obj158.KillEnemyDataIds = list209; reference160 = obj158; obj154.Steps = list204; reference156 = obj154; - num++; - ref QuestSequence reference161 = ref span202[num]; + ref QuestSequence reference161 = ref span66[2]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -160062,9 +132851,7 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - span210[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -160090,30 +132877,24 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span211 = CollectionsMarshal.AsSpan(list211); - index = 0; - span211[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list211)[0] = "AnimaMachinae"; questRoot24.Author = list211; - index = 6; - List list212 = new List(index); - CollectionsMarshal.SetCount(list212, index); - Span span212 = CollectionsMarshal.AsSpan(list212); - num = 0; - ref QuestSequence reference162 = ref span212[num]; + num = 6; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span71 = CollectionsMarshal.AsSpan(list212); + ref QuestSequence reference162 = ref span71[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj160.Steps = list213; reference162 = obj160; - num++; - ref QuestSequence reference163 = ref span212[num]; + ref QuestSequence reference163 = ref span71[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -160121,9 +132902,8 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + Span span72 = CollectionsMarshal.AsSpan(list214); + span72[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -160140,30 +132920,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span214[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + span72[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj161.Steps = list214; reference163 = obj161; - num++; - ref QuestSequence reference164 = ref span212[num]; + ref QuestSequence reference164 = ref span71[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Action = EAction.BuffetSanuwa }; obj162.Steps = list215; reference164 = obj162; - num++; - ref QuestSequence reference165 = ref span212[num]; + ref QuestSequence reference165 = ref span71[3]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -160171,35 +132946,29 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.Action, 2006656u, new Vector3(95.23157f, -11.886841f, -817.6242f), 401) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Action, 2006656u, new Vector3(95.23157f, -11.886841f, -817.6242f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj163.Steps = list216; reference165 = obj163; - num++; - ref QuestSequence reference166 = ref span212[num]; + ref QuestSequence reference166 = ref span71[4]; QuestSequence obj164 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, Action = EAction.BuffetSanuwa }; obj164.Steps = list217; reference166 = obj164; - num++; - ref QuestSequence reference167 = ref span212[num]; + ref QuestSequence reference167 = ref span71[5]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -160207,9 +132976,7 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -160223,30 +132990,24 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list219)[0] = "AnimaMachinae"; questRoot25.Author = list219; - index = 4; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference168 = ref span220[num]; + num = 4; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span73 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference168 = ref span73[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj166.Steps = list221; reference168 = obj166; - num++; - ref QuestSequence reference169 = ref span220[num]; + ref QuestSequence reference169 = ref span73[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -160254,137 +133015,103 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj167.Steps = list222; reference169 = obj167; - num++; - ref QuestSequence reference170 = ref span220[num]; + ref QuestSequence reference170 = ref span73[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - index2 = 6; - List list223 = new List(index2); - CollectionsMarshal.SetCount(list223, index2); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref QuestStep reference171 = ref span223[num2]; + num2 = 6; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + Span span74 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference171 = ref span74[0]; 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(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list224; skipConditions5.StepIf = skipStepConditions3; obj169.SkipConditions = skipConditions5; reference171 = obj169; - num2++; - ref QuestStep reference172 = ref span223[num2]; + ref QuestStep reference172 = ref span74[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list225; reference172 = questStep3; - num2++; - ref QuestStep reference173 = ref span223[num2]; + ref QuestStep reference173 = ref span74[2]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list226; skipConditions6.StepIf = skipStepConditions4; obj170.SkipConditions = skipConditions6; reference173 = obj170; - num2++; - ref QuestStep reference174 = ref span223[num2]; + ref QuestStep reference174 = ref span74[3]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list227; reference174 = questStep4; - num2++; - span223[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(402.99722f, -125.28946f, 724.59906f), 401) + span74[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(402.99722f, -125.28946f, 724.59906f), 401) { Fly = true }; - num2++; - span223[num2] = new QuestStep(EInteractionType.Interact, 2006658u, new Vector3(407.187f, -122.51471f, 724.0558f), 401) + span74[5] = new QuestStep(EInteractionType.Interact, 2006658u, new Vector3(407.187f, -122.51471f, 724.0558f), 401) { Mount = false }; obj168.Steps = list223; reference170 = obj168; - num++; - ref QuestSequence reference175 = ref span220[num]; + ref QuestSequence reference175 = ref span73[3]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -160392,9 +133119,7 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -160420,30 +133145,24 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "liza"; + CollectionsMarshal.AsSpan(list229)[0] = "liza"; questRoot26.Author = list229; - index = 3; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference176 = ref span230[num]; + num = 3; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span79 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference176 = ref span79[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj172.Steps = list231; reference176 = obj172; - num++; - ref QuestSequence reference177 = ref span230[num]; + ref QuestSequence reference177 = ref span79[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -160451,33 +133170,25 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - ref QuestStep reference178 = ref span232[index2]; + Span span80 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference178 = ref span80[0]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2006663u, new Vector3(665.0034f, -158.7702f, 662.2567f), 401) { Fly = true }; - 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); + 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); obj174.CompletionQuestVariablesFlags = list233; reference178 = obj174; - index2++; - ref QuestStep reference179 = ref span232[index2]; + ref QuestStep reference179 = ref span80[1]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2006665u, new Vector3(728.1146f, -157.45789f, 815.5488f), 401) { Fly = true, @@ -160486,56 +133197,40 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - 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); + 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); obj175.CompletionQuestVariablesFlags = list234; reference179 = obj175; - index2++; - ref QuestStep reference180 = ref span232[index2]; + ref QuestStep reference180 = ref span80[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2006664u, new Vector3(625.3605f, -160.29602f, 835.62976f), 401); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list235; reference180 = questStep5; obj173.Steps = list232; reference177 = obj173; - num++; - ref QuestSequence reference181 = ref span230[num]; + ref QuestSequence reference181 = ref span79[2]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -160561,16 +133256,13 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - Span span237 = CollectionsMarshal.AsSpan(list237); - index = 0; - span237[index] = "liza"; + CollectionsMarshal.AsSpan(list237)[0] = "liza"; questRoot27.Author = list237; - index = 4; - List list238 = new List(index); - CollectionsMarshal.SetCount(list238, index); - Span span238 = CollectionsMarshal.AsSpan(list238); - num = 0; - ref QuestSequence reference182 = ref span238[num]; + num = 4; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + Span span84 = CollectionsMarshal.AsSpan(list238); + ref QuestSequence reference182 = ref span84[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -160578,23 +133270,19 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj177.Steps = list239; reference182 = obj177; - num++; - ref QuestSequence reference183 = ref span238[num]; + ref QuestSequence reference183 = ref span84[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -160611,12 +133299,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span240[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); + span85[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401); obj178.Steps = list240; reference183 = obj178; - num++; - ref QuestSequence reference184 = ref span238[num]; + ref QuestSequence reference184 = ref span84[2]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -160624,9 +133310,8 @@ public static class AssemblyQuestLoader num2 = 3; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - ref QuestStep reference185 = ref span241[index2]; + Span span86 = CollectionsMarshal.AsSpan(list241); + ref QuestStep reference185 = ref span86[0]; QuestStep obj180 = new QuestStep(EInteractionType.Action, 1016219u, new Vector3(14.389221f, -111.05486f, 413.71777f), 401) { Fly = true, @@ -160635,48 +133320,34 @@ public static class AssemblyQuestLoader num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - 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); + 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); obj180.CompletionQuestVariablesFlags = list242; reference185 = obj180; - index2++; - ref QuestStep reference186 = ref span241[index2]; + ref QuestStep reference186 = ref span86[1]; QuestStep obj181 = new QuestStep(EInteractionType.Action, 1016217u, new Vector3(97.48987f, -86.45681f, 466.57495f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - 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); + 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); obj181.CompletionQuestVariablesFlags = list243; reference186 = obj181; - index2++; - ref QuestStep reference187 = ref span241[index2]; + ref QuestStep reference187 = ref span86[2]; QuestStep obj182 = new QuestStep(EInteractionType.Action, 1016218u, new Vector3(137.95679f, -87.380325f, 434.62268f), 401) { Fly = true, @@ -160685,35 +133356,26 @@ public static class AssemblyQuestLoader num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - 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); + 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); obj182.CompletionQuestVariablesFlags = list244; reference187 = obj182; obj179.Steps = list241; reference184 = obj179; - num++; - ref QuestSequence reference188 = ref span238[num]; + ref QuestSequence reference188 = ref span84[3]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -160727,16 +133389,13 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - Span span246 = CollectionsMarshal.AsSpan(list246); - index = 0; - span246[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list246)[0] = "plogon_enjoyer"; questRoot28.Author = list246; - index = 4; - List list247 = new List(index); - CollectionsMarshal.SetCount(list247, index); - Span span247 = CollectionsMarshal.AsSpan(list247); - num = 0; - ref QuestSequence reference189 = ref span247[num]; + num = 4; + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + Span span90 = CollectionsMarshal.AsSpan(list247); + ref QuestSequence reference189 = ref span90[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -160744,41 +133403,34 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj184.Steps = list248; reference189 = obj184; - num++; - ref QuestSequence reference190 = ref span247[num]; + ref QuestSequence reference190 = ref span90[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - num2++; - span249[num2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + span91[1] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { Fly = true }; - num2++; - span249[num2] = new QuestStep(EInteractionType.Interact, 1016215u, new Vector3(-279.71313f, -156.87129f, 766.9946f), 401) + span91[2] = new QuestStep(EInteractionType.Interact, 1016215u, new Vector3(-279.71313f, -156.87129f, 766.9946f), 401) { Fly = true }; obj185.Steps = list249; reference190 = obj185; - num++; - ref QuestSequence reference191 = ref span247[num]; + ref QuestSequence reference191 = ref span90[2]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -160786,31 +133438,26 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 2006702u, new Vector3(270.8933f, -114.21387f, 395.2544f), 401) + Span span92 = CollectionsMarshal.AsSpan(list250); + span92[0] = new QuestStep(EInteractionType.Interact, 2006702u, new Vector3(270.8933f, -114.21387f, 395.2544f), 401) { Fly = true }; - index2++; - span250[index2] = new QuestStep(EInteractionType.Interact, 2006703u, new Vector3(504.1123f, -101.335205f, 360.58594f), 401) + span92[1] = new QuestStep(EInteractionType.Interact, 2006703u, new Vector3(504.1123f, -101.335205f, 360.58594f), 401) { Fly = true }; obj186.Steps = list250; reference191 = obj186; - num++; - ref QuestSequence reference192 = ref span247[num]; + ref QuestSequence reference192 = ref span90[3]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -160836,16 +133483,13 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - Span span252 = CollectionsMarshal.AsSpan(list252); - index = 0; - span252[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list252)[0] = "plogon_enjoyer"; questRoot29.Author = list252; - index = 5; - List list253 = new List(index); - CollectionsMarshal.SetCount(list253, index); - Span span253 = CollectionsMarshal.AsSpan(list253); - num = 0; - ref QuestSequence reference193 = ref span253[num]; + num = 5; + List list253 = new List(num); + CollectionsMarshal.SetCount(list253, num); + Span span93 = CollectionsMarshal.AsSpan(list253); + ref QuestSequence reference193 = ref span93[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -160853,54 +133497,41 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj188.Steps = list254; reference193 = obj188; - num++; - ref QuestSequence reference194 = ref span253[num]; + ref QuestSequence reference194 = ref span93[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list255 = new List(index2); - CollectionsMarshal.SetCount(list255, index2); - Span span255 = CollectionsMarshal.AsSpan(list255); - num2 = 0; - ref QuestStep reference195 = ref span255[num2]; + num2 = 2; + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + Span span94 = CollectionsMarshal.AsSpan(list255); + ref QuestStep reference195 = ref span94[0]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 2006667u, new Vector3(-792.59937f, -58.365784f, 188.06738f), 401) { Fly = true }; - 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]; + 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]; int num4 = 1; List list257 = new List(num4); CollectionsMarshal.SetCount(list257, num4); - Span span257 = CollectionsMarshal.AsSpan(list257); - int index4 = 0; - span257[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list257)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference196 = list257; - num3++; - span256[num3] = null; - num3++; - span256[num3] = null; - num3++; - span256[num3] = null; + span95[3] = null; + span95[4] = null; + span95[5] = null; obj190.RequiredQuestVariables = list256; reference195 = obj190; - num2++; - ref QuestStep reference197 = ref span255[num2]; + ref QuestStep reference197 = ref span94[1]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 2006761u, new Vector3(-759.4568f, -61.905884f, 140.21509f), 401) { Fly = true @@ -160908,32 +133539,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list258 = new List>(num3); CollectionsMarshal.SetCount(list258, num3); - 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); + 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); reference198 = list259; - index3++; - span258[index3] = null; - index3++; - span258[index3] = null; - index3++; - span258[index3] = null; + span96[3] = null; + span96[4] = null; + span96[5] = null; obj191.RequiredQuestVariables = list258; reference197 = obj191; obj189.Steps = list255; reference194 = obj189; - num++; - ref QuestSequence reference199 = ref span253[num]; + ref QuestSequence reference199 = ref span93[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -160941,68 +133563,52 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - ref QuestStep reference200 = ref span260[index2]; + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list260)[0]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2006666u, new Vector3(-627.863f, -59.372925f, -162.12714f), 401) { Fly = true, ItemId = 2001941u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list261 = new List(index3); - CollectionsMarshal.SetCount(list261, index3); - Span span261 = CollectionsMarshal.AsSpan(list261); - num3 = 0; - span261[num3] = 5238u; + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + CollectionsMarshal.AsSpan(list261)[0] = 5238u; obj193.KillEnemyDataIds = list261; num3 = 6; List> list262 = new List>(num3); CollectionsMarshal.SetCount(list262, num3); - Span> span262 = CollectionsMarshal.AsSpan(list262); - index3 = 0; - span262[index3] = null; - index3++; - ref List reference201 = ref span262[index3]; + Span> span97 = CollectionsMarshal.AsSpan(list262); + span97[0] = null; + ref List reference201 = ref span97[1]; num4 = 1; List list263 = new List(num4); CollectionsMarshal.SetCount(list263, num4); - Span span263 = CollectionsMarshal.AsSpan(list263); - index4 = 0; - span263[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list263)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference201 = list263; - index3++; - span262[index3] = null; - index3++; - span262[index3] = null; - index3++; - span262[index3] = null; - index3++; - span262[index3] = null; + span97[2] = null; + span97[3] = null; + span97[4] = null; + span97[5] = null; obj193.RequiredQuestVariables = list262; reference200 = obj193; obj192.Steps = list260; reference199 = obj192; - num++; - ref QuestSequence reference202 = ref span253[num]; + ref QuestSequence reference202 = ref span93[3]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj194.Steps = list264; reference202 = obj194; - num++; - ref QuestSequence reference203 = ref span253[num]; + ref QuestSequence reference203 = ref span93[4]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -161010,9 +133616,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true }; @@ -161025,30 +133629,24 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list266)[0] = "AnimaMachinae"; questRoot30.Author = list266; - index = 4; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference204 = ref span267[num]; + num = 4; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span98 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference204 = ref span98[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj196.Steps = list268; reference204 = obj196; - num++; - ref QuestSequence reference205 = ref span267[num]; + ref QuestSequence reference205 = ref span98[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -161056,48 +133654,37 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); obj197.Steps = list269; reference205 = obj197; - num++; - ref QuestSequence reference206 = ref span267[num]; + ref QuestSequence reference206 = ref span98[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - index2 = 6; - List list270 = new List(index2); - CollectionsMarshal.SetCount(list270, index2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num2 = 0; - ref QuestStep reference207 = ref span270[num2]; + num2 = 6; + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + Span span99 = CollectionsMarshal.AsSpan(list270); + ref QuestStep reference207 = ref span99[0]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 2006705u, new Vector3(-356.1914f, -153.21588f, 246.23486f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - 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); + 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); obj199.CompletionQuestVariablesFlags = list271; reference207 = obj199; - num2++; - ref QuestStep reference208 = ref span270[num2]; + ref QuestStep reference208 = ref span99[1]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 2006706u, new Vector3(-292.34766f, -142.2904f, 325.91736f), 401) { Fly = true @@ -161105,44 +133692,30 @@ public static class AssemblyQuestLoader num3 = 6; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - 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); + 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); obj200.CompletionQuestVariablesFlags = list272; reference208 = obj200; - num2++; - ref QuestStep reference209 = ref span270[num2]; + ref QuestStep reference209 = ref span99[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2006704u, new Vector3(-281.11694f, -133.13501f, 345.2964f), 401); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list273; reference209 = questStep6; - num2++; - ref QuestStep reference210 = ref span270[num2]; + ref QuestStep reference210 = ref span99[3]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2006670u, new Vector3(165.85034f, -86.13721f, 415.94556f), 401) { Fly = true @@ -161150,54 +133723,39 @@ public static class AssemblyQuestLoader num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - 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); + 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); obj201.CompletionQuestVariablesFlags = list274; reference210 = obj201; - num2++; - ref QuestStep reference211 = ref span270[num2]; + ref QuestStep reference211 = ref span99[4]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2006669u, new Vector3(282.88696f, -82.26141f, 366.07922f), 401) { Fly = true }; - 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); + 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); obj202.CompletionQuestVariablesFlags = list275; reference211 = obj202; - num2++; - span270[num2] = new QuestStep(EInteractionType.Interact, 2006671u, new Vector3(129.8695f, -92.17981f, 293.11047f), 401) + span99[5] = new QuestStep(EInteractionType.Interact, 2006671u, new Vector3(129.8695f, -92.17981f, 293.11047f), 401) { Fly = true }; obj198.Steps = list270; reference206 = obj198; - num++; - ref QuestSequence reference212 = ref span267[num]; + ref QuestSequence reference212 = ref span98[3]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -161205,9 +133763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -161233,30 +133789,24 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - Span span277 = CollectionsMarshal.AsSpan(list277); - index = 0; - span277[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list277)[0] = "plogon_enjoyer"; questRoot31.Author = list277; - index = 5; - List list278 = new List(index); - CollectionsMarshal.SetCount(list278, index); - Span span278 = CollectionsMarshal.AsSpan(list278); - num = 0; - ref QuestSequence reference213 = ref span278[num]; + num = 5; + List list278 = new List(num); + CollectionsMarshal.SetCount(list278, num); + Span span105 = CollectionsMarshal.AsSpan(list278); + ref QuestSequence reference213 = ref span105[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj204.Steps = list279; reference213 = obj204; - num++; - ref QuestSequence reference214 = ref span278[num]; + ref QuestSequence reference214 = ref span105[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -161264,23 +133814,19 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401); obj205.Steps = list280; reference214 = obj205; - num++; - ref QuestSequence reference215 = ref span278[num]; + ref QuestSequence reference215 = ref span105[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -161297,15 +133843,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span281[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span106[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj206.Steps = list281; reference215 = obj206; - num++; - ref QuestSequence reference216 = ref span278[num]; + ref QuestSequence reference216 = ref span105[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -161313,14 +133857,12 @@ public static class AssemblyQuestLoader num2 = 4; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.9607f, 2.3374987f, -234.1339f), 401) + Span span107 = CollectionsMarshal.AsSpan(list282); + span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-850.9607f, 2.3374987f, -234.1339f), 401) { Fly = true }; - index2++; - ref QuestStep reference217 = ref span282[index2]; + ref QuestStep reference217 = ref span107[1]; QuestStep obj208 = new QuestStep(EInteractionType.Action, 1016222u, new Vector3(-853.8186f, 7.7667847f, -223.92621f), 401) { Fly = true, @@ -161329,66 +133871,49 @@ public static class AssemblyQuestLoader num3 = 6; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - 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); + 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); obj208.CompletionQuestVariablesFlags = list283; reference217 = obj208; - index2++; - ref QuestStep reference218 = ref span282[index2]; + ref QuestStep reference218 = ref span107[2]; QuestStep obj209 = new QuestStep(EInteractionType.Action, 1016221u, new Vector3(-576.40955f, -51.59082f, -543.8773f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - 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); + 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); obj209.CompletionQuestVariablesFlags = list284; reference218 = obj209; - index2++; - span282[index2] = new QuestStep(EInteractionType.Action, 1016220u, new Vector3(-455.7718f, -20.828613f, -610.8644f), 401) + span107[3] = new QuestStep(EInteractionType.Action, 1016220u, new Vector3(-455.7718f, -20.828613f, -610.8644f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj207.Steps = list282; reference216 = obj207; - num++; - ref QuestSequence reference219 = ref span278[num]; + ref QuestSequence reference219 = ref span105[4]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -161401,16 +133926,13 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list286)[0] = "plogon_enjoyer"; questRoot32.Author = list286; - index = 5; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference220 = ref span287[num]; + num = 5; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span110 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference220 = ref span110[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -161418,30 +133940,24 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj211.Steps = list288; reference220 = obj211; - num++; - ref QuestSequence reference221 = ref span287[num]; + ref QuestSequence reference221 = ref span110[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj212.Steps = list289; reference221 = obj212; - num++; - ref QuestSequence reference222 = ref span287[num]; + ref QuestSequence reference222 = ref span110[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -161449,19 +133965,16 @@ public static class AssemblyQuestLoader num2 = 3; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-834.9571f, -130.33038f, -386.03116f), 401) + Span span111 = CollectionsMarshal.AsSpan(list290); + span111[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-834.9571f, -130.33038f, -386.03116f), 401) { Fly = true }; - index2++; - span290[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(833.7674f, -97.81962f, -735.3544f), 401) + span111[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(833.7674f, -97.81962f, -735.3544f), 401) { Fly = true }; - index2++; - ref QuestStep reference223 = ref span290[index2]; + ref QuestStep reference223 = ref span111[2]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1016223u, new Vector3(834.37854f, -97.83405f, -738.18567f), 401) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -161469,29 +133982,23 @@ public static class AssemblyQuestLoader num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - Span span291 = CollectionsMarshal.AsSpan(list291); - index3 = 0; - span291[index3] = 5239u; + CollectionsMarshal.AsSpan(list291)[0] = 5239u; obj214.KillEnemyDataIds = list291; reference223 = obj214; obj213.Steps = list290; reference222 = obj213; - num++; - ref QuestSequence reference224 = ref span287[num]; + ref QuestSequence reference224 = ref span110[3]; QuestSequence obj215 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj215.Steps = list292; reference224 = obj215; - num++; - ref QuestSequence reference225 = ref span287[num]; + ref QuestSequence reference225 = ref span110[4]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -161499,9 +134006,7 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -161527,30 +134032,24 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - Span span294 = CollectionsMarshal.AsSpan(list294); - index = 0; - span294[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list294)[0] = "plogon_enjoyer"; questRoot33.Author = list294; - index = 5; - List list295 = new List(index); - CollectionsMarshal.SetCount(list295, index); - Span span295 = CollectionsMarshal.AsSpan(list295); - num = 0; - ref QuestSequence reference226 = ref span295[num]; + num = 5; + List list295 = new List(num); + CollectionsMarshal.SetCount(list295, num); + Span span112 = CollectionsMarshal.AsSpan(list295); + ref QuestSequence reference226 = ref span112[0]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj217.Steps = list296; reference226 = obj217; - num++; - ref QuestSequence reference227 = ref span295[num]; + ref QuestSequence reference227 = ref span112[1]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -161558,26 +134057,22 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1016090u, new Vector3(-836.51483f, -133.26949f, -386.61786f), 401) { Fly = true }; obj218.Steps = list297; reference227 = obj218; - num++; - ref QuestSequence reference228 = ref span295[num]; + ref QuestSequence reference228 = ref span112[2]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -161594,15 +134089,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span298[num2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span113[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj219.Steps = list298; reference228 = obj219; - num++; - ref QuestSequence reference229 = ref span295[num]; + ref QuestSequence reference229 = ref span112[3]; QuestSequence obj220 = new QuestSequence { Sequence = 3 @@ -161610,33 +134103,28 @@ public static class AssemblyQuestLoader num2 = 2; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Action, 1016227u, new Vector3(473.1975f, -98.03464f, -527.7333f), 401) + Span span114 = CollectionsMarshal.AsSpan(list299); + span114[0] = new QuestStep(EInteractionType.Action, 1016227u, new Vector3(473.1975f, -98.03464f, -527.7333f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; - index2++; - span299[index2] = new QuestStep(EInteractionType.Action, 1016226u, new Vector3(710.9331f, -98.032555f, -741.0239f), 401) + span114[1] = new QuestStep(EInteractionType.Action, 1016226u, new Vector3(710.9331f, -98.032555f, -741.0239f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj220.Steps = list299; reference229 = obj220; - num++; - ref QuestSequence reference230 = ref span295[num]; + ref QuestSequence reference230 = ref span112[4]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; @@ -161649,16 +134137,13 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - Span span301 = CollectionsMarshal.AsSpan(list301); - index = 0; - span301[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list301)[0] = "plogon_enjoyer"; questRoot34.Author = list301; - index = 6; - List list302 = new List(index); - CollectionsMarshal.SetCount(list302, index); - Span span302 = CollectionsMarshal.AsSpan(list302); - num = 0; - ref QuestSequence reference231 = ref span302[num]; + num = 6; + List list302 = new List(num); + CollectionsMarshal.SetCount(list302, num); + Span span115 = CollectionsMarshal.AsSpan(list302); + ref QuestSequence reference231 = ref span115[0]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -161666,30 +134151,24 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj222.Steps = list303; reference231 = obj222; - num++; - ref QuestSequence reference232 = ref span302[num]; + ref QuestSequence reference232 = ref span115[1]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj223.Steps = list304; reference232 = obj223; - num++; - ref QuestSequence reference233 = ref span302[num]; + ref QuestSequence reference233 = ref span115[2]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -161697,40 +134176,30 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - ref QuestStep reference234 = ref span305[index2]; + Span span116 = CollectionsMarshal.AsSpan(list305); + ref QuestStep reference234 = ref span116[0]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 2006676u, new Vector3(-717.0062f, -13.901062f, -101.487854f), 401) { Fly = true }; - 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); + 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); reference235 = list307; - num3++; - span306[num3] = null; - num3++; - span306[num3] = null; - num3++; - span306[num3] = null; + span117[3] = null; + span117[4] = null; + span117[5] = null; obj225.RequiredQuestVariables = list306; reference234 = obj225; - index2++; - ref QuestStep reference236 = ref span305[index2]; + ref QuestStep reference236 = ref span116[1]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 2006762u, new Vector3(-781.52136f, -13.931519f, -114.30542f), 401) { Fly = true @@ -161738,60 +134207,46 @@ public static class AssemblyQuestLoader num3 = 6; List> list308 = new List>(num3); CollectionsMarshal.SetCount(list308, num3); - Span> span308 = CollectionsMarshal.AsSpan(list308); - index3 = 0; - span308[index3] = null; - index3++; - span308[index3] = null; - index3++; - ref List reference237 = ref span308[index3]; + Span> span118 = CollectionsMarshal.AsSpan(list308); + span118[0] = null; + span118[1] = null; + ref List reference237 = ref span118[2]; num4 = 1; List list309 = new List(num4); CollectionsMarshal.SetCount(list309, num4); - Span span309 = CollectionsMarshal.AsSpan(list309); - index4 = 0; - span309[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list309)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference237 = list309; - index3++; - span308[index3] = null; - index3++; - span308[index3] = null; - index3++; - span308[index3] = null; + span118[3] = null; + span118[4] = null; + span118[5] = null; obj226.RequiredQuestVariables = list308; reference236 = obj226; obj224.Steps = list305; reference233 = obj224; - num++; - ref QuestSequence reference238 = ref span302[num]; + ref QuestSequence reference238 = ref span115[3]; QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list310 = new List(index2); - CollectionsMarshal.SetCount(list310, index2); - Span span310 = CollectionsMarshal.AsSpan(list310); - num2 = 0; - ref QuestStep reference239 = ref span310[num2]; + num2 = 1; + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list310)[0]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2006675u, new Vector3(-642.298f, -207.29382f, 211.10852f), 401) { Fly = true, ItemId = 2001912u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list311 = new List(index3); - CollectionsMarshal.SetCount(list311, index3); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = 5240u; + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = 5240u; obj228.KillEnemyDataIds = list311; reference239 = obj228; obj227.Steps = list310; reference238 = obj227; - num++; - ref QuestSequence reference240 = ref span302[num]; + ref QuestSequence reference240 = ref span115[4]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -161799,27 +134254,22 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.Interact, 1012054u, new Vector3(-640.1007f, -119.56208f, 469.5963f), 401) + CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1012054u, new Vector3(-640.1007f, -119.56208f, 469.5963f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj229.Steps = list312; reference240 = obj229; - num++; - ref QuestSequence reference241 = ref span302[num]; + ref QuestSequence reference241 = ref span115[5]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -161845,16 +134295,13 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - Span span314 = CollectionsMarshal.AsSpan(list314); - index = 0; - span314[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list314)[0] = "plogon_enjoyer"; questRoot35.Author = list314; - index = 4; - List list315 = new List(index); - CollectionsMarshal.SetCount(list315, index); - Span span315 = CollectionsMarshal.AsSpan(list315); - num = 0; - ref QuestSequence reference242 = ref span315[num]; + num = 4; + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span119 = CollectionsMarshal.AsSpan(list315); + ref QuestSequence reference242 = ref span119[0]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -161862,30 +134309,24 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj231.Steps = list316; reference242 = obj231; - num++; - ref QuestSequence reference243 = ref span315[num]; + ref QuestSequence reference243 = ref span119[1]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj232.Steps = list317; reference243 = obj232; - num++; - ref QuestSequence reference244 = ref span315[num]; + ref QuestSequence reference244 = ref span119[2]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -161893,9 +134334,8 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - ref QuestStep reference245 = ref span318[index2]; + Span span120 = CollectionsMarshal.AsSpan(list318); + ref QuestStep reference245 = ref span120[0]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, 2006677u, new Vector3(117.96753f, 12.25293f, -412.92444f), 401) { Fly = true, @@ -161904,40 +134344,32 @@ public static class AssemblyQuestLoader num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span319 = CollectionsMarshal.AsSpan(list319); - index3 = 0; - span319[index3] = 5241u; + CollectionsMarshal.AsSpan(list319)[0] = 5241u; obj234.KillEnemyDataIds = list319; reference245 = obj234; - index2++; - ref QuestStep reference246 = ref span318[index2]; + ref QuestStep reference246 = ref span120[1]; QuestStep obj235 = new QuestStep(EInteractionType.Combat, 2006678u, new Vector3(160.54016f, 11.856201f, -507.65244f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list320 = new List(index3); - CollectionsMarshal.SetCount(list320, index3); - Span span320 = CollectionsMarshal.AsSpan(list320); - num3 = 0; - span320[num3] = 5241u; + num3 = 1; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + CollectionsMarshal.AsSpan(list320)[0] = 5241u; obj235.KillEnemyDataIds = list320; reference246 = obj235; obj233.Steps = list318; reference244 = obj233; - num++; - ref QuestSequence reference247 = ref span315[num]; + ref QuestSequence reference247 = ref span119[3]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -161963,16 +134395,13 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - Span span322 = CollectionsMarshal.AsSpan(list322); - index = 0; - span322[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list322)[0] = "plogon_enjoyer"; questRoot36.Author = list322; - index = 5; - List list323 = new List(index); - CollectionsMarshal.SetCount(list323, index); - Span span323 = CollectionsMarshal.AsSpan(list323); - num = 0; - ref QuestSequence reference248 = ref span323[num]; + num = 5; + List list323 = new List(num); + CollectionsMarshal.SetCount(list323, num); + Span span121 = CollectionsMarshal.AsSpan(list323); + ref QuestSequence reference248 = ref span121[0]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -161980,30 +134409,24 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj237.Steps = list324; reference248 = obj237; - num++; - ref QuestSequence reference249 = ref span323[num]; + ref QuestSequence reference249 = ref span121[1]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj238.Steps = list325; reference249 = obj238; - num++; - ref QuestSequence reference250 = ref span323[num]; + ref QuestSequence reference250 = ref span121[2]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -162011,9 +134434,7 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - ref QuestStep reference251 = ref span326[index2]; + ref QuestStep reference251 = ref CollectionsMarshal.AsSpan(list326)[0]; QuestStep obj240 = new QuestStep(EInteractionType.Combat, 2006679u, new Vector3(-401.175f, -202.65509f, 432.39478f), 401) { Fly = true, @@ -162023,42 +134444,34 @@ public static class AssemblyQuestLoader num3 = 1; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - Span span327 = CollectionsMarshal.AsSpan(list327); - index3 = 0; - span327[index3] = 5242u; + CollectionsMarshal.AsSpan(list327)[0] = 5242u; obj240.KillEnemyDataIds = list327; reference251 = obj240; obj239.Steps = list326; reference250 = obj239; - num++; - ref QuestSequence reference252 = ref span323[num]; + ref QuestSequence reference252 = ref span121[3]; QuestSequence obj241 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list328 = new List(index2); - CollectionsMarshal.SetCount(list328, index2); - Span span328 = CollectionsMarshal.AsSpan(list328); - num2 = 0; - ref QuestStep reference253 = ref span328[num2]; + num2 = 1; + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list328)[0]; QuestStep obj242 = new QuestStep(EInteractionType.Combat, 2006680u, new Vector3(-280.8728f, -202.01422f, 390.7987f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list329 = new List(index3); - CollectionsMarshal.SetCount(list329, index3); - Span span329 = CollectionsMarshal.AsSpan(list329); - num3 = 0; - span329[num3] = 5242u; + num3 = 1; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + CollectionsMarshal.AsSpan(list329)[0] = 5242u; obj242.KillEnemyDataIds = list329; reference253 = obj242; obj241.Steps = list328; reference252 = obj241; - num++; - ref QuestSequence reference254 = ref span323[num]; + ref QuestSequence reference254 = ref span121[4]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue @@ -162066,9 +134479,7 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -162094,30 +134505,24 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list331)[0] = "plogon_enjoyer"; questRoot37.Author = list331; - index = 4; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference255 = ref span332[num]; + num = 4; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span122 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference255 = ref span122[0]; QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj244.Steps = list333; reference255 = obj244; - num++; - ref QuestSequence reference256 = ref span332[num]; + ref QuestSequence reference256 = ref span122[1]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -162125,48 +134530,40 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj245.Steps = list334; reference256 = obj245; - num++; - ref QuestSequence reference257 = ref span332[num]; + ref QuestSequence reference257 = ref span122[2]; QuestSequence obj246 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span335[num2] = new QuestStep(EInteractionType.Interact, 2006681u, new Vector3(237.07935f, 163.95813f, -46.433228f), 401) + span123[1] = new QuestStep(EInteractionType.Interact, 2006681u, new Vector3(237.07935f, 163.95813f, -46.433228f), 401) { Fly = true }; - num2++; - span335[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.02913f, 169.13622f, -44.168194f), 401) + span123[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(237.02913f, 169.13622f, -44.168194f), 401) { Fly = true }; - num2++; - span335[num2] = new QuestStep(EInteractionType.Interact, 2006683u, new Vector3(332.5094f, 106.79785f, -68.2536f), 401) + span123[3] = new QuestStep(EInteractionType.Interact, 2006683u, new Vector3(332.5094f, 106.79785f, -68.2536f), 401) { Fly = true }; obj246.Steps = list335; reference257 = obj246; - num++; - ref QuestSequence reference258 = ref span332[num]; + ref QuestSequence reference258 = ref span122[3]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue @@ -162174,9 +134571,8 @@ public static class AssemblyQuestLoader num2 = 2; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span336 = CollectionsMarshal.AsSpan(list336); - index2 = 0; - span336[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.41415f, 110.85538f, -34.527588f), 401) + Span span124 = CollectionsMarshal.AsSpan(list336); + span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(317.41415f, 110.85538f, -34.527588f), 401) { SkipConditions = new SkipConditions { @@ -162191,8 +134587,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span336[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -162218,30 +134613,24 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - Span span337 = CollectionsMarshal.AsSpan(list337); - index = 0; - span337[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list337)[0] = "plogon_enjoyer"; questRoot38.Author = list337; - index = 8; - List list338 = new List(index); - CollectionsMarshal.SetCount(list338, index); - Span span338 = CollectionsMarshal.AsSpan(list338); - num = 0; - ref QuestSequence reference259 = ref span338[num]; + num = 8; + List list338 = new List(num); + CollectionsMarshal.SetCount(list338, num); + Span span125 = CollectionsMarshal.AsSpan(list338); + ref QuestSequence reference259 = ref span125[0]; QuestSequence obj248 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj248.Steps = list339; reference259 = obj248; - num++; - ref QuestSequence reference260 = ref span338[num]; + ref QuestSequence reference260 = ref span125[1]; QuestSequence obj249 = new QuestSequence { Sequence = 1 @@ -162249,33 +134638,27 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj249.Steps = list340; reference260 = obj249; - num++; - ref QuestSequence reference261 = ref span338[num]; + ref QuestSequence reference261 = ref span125[2]; QuestSequence obj250 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj250.Steps = list341; reference261 = obj250; - num++; - ref QuestSequence reference262 = ref span338[num]; + ref QuestSequence reference262 = ref span125[3]; QuestSequence obj251 = new QuestSequence { Sequence = 3 @@ -162283,9 +134666,7 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - ref QuestStep reference263 = ref span342[index2]; + ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list342)[0]; QuestStep obj252 = new QuestStep(EInteractionType.Combat, 2006684u, new Vector3(-357.29004f, -56.565247f, -598.9929f), 401) { Fly = true, @@ -162294,32 +134675,26 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - Span span343 = CollectionsMarshal.AsSpan(list343); - index3 = 0; - span343[index3] = 5243u; + CollectionsMarshal.AsSpan(list343)[0] = 5243u; obj252.KillEnemyDataIds = list343; reference263 = obj252; obj251.Steps = list342; reference262 = obj251; - num++; - ref QuestSequence reference264 = ref span338[num]; + ref QuestSequence reference264 = ref span125[4]; QuestSequence obj253 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj253.Steps = list344; reference264 = obj253; - num++; - ref QuestSequence reference265 = ref span338[num]; + ref QuestSequence reference265 = ref span125[5]; QuestSequence obj254 = new QuestSequence { Sequence = 5 @@ -162327,43 +134702,35 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - ref QuestStep reference266 = ref span345[index2]; + ref QuestStep reference266 = ref CollectionsMarshal.AsSpan(list345)[0]; QuestStep obj255 = new QuestStep(EInteractionType.Combat, 2006685u, new Vector3(-107.07257f, -13.5043335f, -655.6039f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list346 = new List(index3); - CollectionsMarshal.SetCount(list346, index3); - Span span346 = CollectionsMarshal.AsSpan(list346); - num3 = 0; - span346[num3] = 5243u; + num3 = 1; + List list346 = new List(num3); + CollectionsMarshal.SetCount(list346, num3); + CollectionsMarshal.AsSpan(list346)[0] = 5243u; obj255.KillEnemyDataIds = list346; reference266 = obj255; obj254.Steps = list345; reference265 = obj254; - num++; - ref QuestSequence reference267 = ref span338[num]; + ref QuestSequence reference267 = ref span125[6]; QuestSequence obj256 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj256.Steps = list347; reference267 = obj256; - num++; - ref QuestSequence reference268 = ref span338[num]; + ref QuestSequence reference268 = ref span125[7]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue @@ -162371,9 +134738,7 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - span348[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -162399,30 +134764,24 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - Span span349 = CollectionsMarshal.AsSpan(list349); - index = 0; - span349[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list349)[0] = "plogon_enjoyer"; questRoot39.Author = list349; - index = 4; - List list350 = new List(index); - CollectionsMarshal.SetCount(list350, index); - Span span350 = CollectionsMarshal.AsSpan(list350); - num = 0; - ref QuestSequence reference269 = ref span350[num]; + num = 4; + List list350 = new List(num); + CollectionsMarshal.SetCount(list350, num); + Span span126 = CollectionsMarshal.AsSpan(list350); + ref QuestSequence reference269 = ref span126[0]; QuestSequence obj258 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj258.Steps = list351; reference269 = obj258; - num++; - ref QuestSequence reference270 = ref span350[num]; + ref QuestSequence reference270 = ref span126[1]; QuestSequence obj259 = new QuestSequence { Sequence = 1 @@ -162430,26 +134789,22 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - span352[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj259.Steps = list352; reference270 = obj259; - num++; - ref QuestSequence reference271 = ref span350[num]; + ref QuestSequence reference271 = ref span126[2]; QuestSequence obj260 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list353 = new List(index2); - CollectionsMarshal.SetCount(list353, index2); - Span span353 = CollectionsMarshal.AsSpan(list353); - num2 = 0; - ref QuestStep reference272 = ref span353[num2]; + num2 = 2; + List list353 = new List(num2); + CollectionsMarshal.SetCount(list353, num2); + Span span127 = CollectionsMarshal.AsSpan(list353); + ref QuestStep reference272 = ref span127[0]; QuestStep obj261 = new QuestStep(EInteractionType.Combat, 2006707u, new Vector3(72.92273f, -88.39557f, 428.82422f), 401) { Fly = true, @@ -162459,30 +134814,24 @@ public static class AssemblyQuestLoader num3 = 1; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span354 = CollectionsMarshal.AsSpan(list354); - index3 = 0; - span354[index3] = 5244u; + CollectionsMarshal.AsSpan(list354)[0] = 5244u; obj261.KillEnemyDataIds = list354; reference272 = obj261; - num2++; - ref QuestStep reference273 = ref span353[num2]; + ref QuestStep reference273 = ref span127[1]; QuestStep obj262 = new QuestStep(EInteractionType.Combat, 2006686u, new Vector3(167.58984f, -97.428955f, 455.71057f), 401) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list355 = new List(index3); - CollectionsMarshal.SetCount(list355, index3); - Span span355 = CollectionsMarshal.AsSpan(list355); - num3 = 0; - span355[num3] = 5244u; + num3 = 1; + List list355 = new List(num3); + CollectionsMarshal.SetCount(list355, num3); + CollectionsMarshal.AsSpan(list355)[0] = 5244u; obj262.KillEnemyDataIds = list355; reference273 = obj262; obj260.Steps = list353; reference271 = obj260; - num++; - ref QuestSequence reference274 = ref span350[num]; + ref QuestSequence reference274 = ref span126[3]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -162490,9 +134839,7 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span356 = CollectionsMarshal.AsSpan(list356); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -162518,30 +134865,24 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - Span span357 = CollectionsMarshal.AsSpan(list357); - index = 0; - span357[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list357)[0] = "plogon_enjoyer"; questRoot40.Author = list357; - index = 4; - List list358 = new List(index); - CollectionsMarshal.SetCount(list358, index); - Span span358 = CollectionsMarshal.AsSpan(list358); - num = 0; - ref QuestSequence reference275 = ref span358[num]; + num = 4; + List list358 = new List(num); + CollectionsMarshal.SetCount(list358, num); + Span span128 = CollectionsMarshal.AsSpan(list358); + ref QuestSequence reference275 = ref span128[0]; QuestSequence obj264 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj264.Steps = list359; reference275 = obj264; - num++; - ref QuestSequence reference276 = ref span358[num]; + ref QuestSequence reference276 = ref span128[1]; QuestSequence obj265 = new QuestSequence { Sequence = 1 @@ -162549,26 +134890,22 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - Span span360 = CollectionsMarshal.AsSpan(list360); - index2 = 0; - span360[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj265.Steps = list360; reference276 = obj265; - num++; - ref QuestSequence reference277 = ref span358[num]; + ref QuestSequence reference277 = ref span128[2]; QuestSequence obj266 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list361 = new List(index2); - CollectionsMarshal.SetCount(list361, index2); - Span span361 = CollectionsMarshal.AsSpan(list361); - num2 = 0; - ref QuestStep reference278 = ref span361[num2]; + num2 = 4; + List list361 = new List(num2); + CollectionsMarshal.SetCount(list361, num2); + Span span129 = CollectionsMarshal.AsSpan(list361); + ref QuestStep reference278 = ref span129[0]; QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2006690u, new Vector3(-857.6333f, 4.6539917f, -218.67706f), 401) { Fly = true, @@ -162577,30 +134914,21 @@ public static class AssemblyQuestLoader num3 = 1; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - Span span362 = CollectionsMarshal.AsSpan(list362); - index3 = 0; - span362[index3] = 5246u; + CollectionsMarshal.AsSpan(list362)[0] = 5246u; obj267.KillEnemyDataIds = list362; - 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); + 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); obj267.CompletionQuestVariablesFlags = list363; reference278 = obj267; - num2++; - ref QuestStep reference279 = ref span361[num2]; + ref QuestStep reference279 = ref span129[1]; QuestStep obj268 = new QuestStep(EInteractionType.Interact, 2006689u, new Vector3(-830.3197f, -14.358765f, -131.82275f), 401) { Fly = true @@ -162608,47 +134936,33 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - 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); + 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); obj268.CompletionQuestVariablesFlags = list364; reference279 = obj268; - num2++; - ref QuestStep reference280 = ref span361[num2]; + ref QuestStep reference280 = ref span129[2]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 2006687u, new Vector3(-553.97876f, -58.42682f, -271.10706f), 401) { Fly = true }; - 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); + 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); obj269.CompletionQuestVariablesFlags = list365; reference280 = obj269; - num2++; - ref QuestStep reference281 = ref span361[num2]; + ref QuestStep reference281 = ref span129[3]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 2006688u, new Vector3(-715.1446f, -58.640503f, -342.30566f), 401) { Fly = true @@ -162656,25 +134970,18 @@ public static class AssemblyQuestLoader num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - 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); + 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); obj270.CompletionQuestVariablesFlags = list366; reference281 = obj270; obj266.Steps = list361; reference277 = obj266; - num++; - ref QuestSequence reference282 = ref span358[num]; + ref QuestSequence reference282 = ref span128[3]; QuestSequence obj271 = new QuestSequence { Sequence = byte.MaxValue @@ -162682,9 +134989,7 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; @@ -162697,30 +135002,24 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - Span span368 = CollectionsMarshal.AsSpan(list368); - index = 0; - span368[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list368)[0] = "plogon_enjoyer"; questRoot41.Author = list368; - index = 4; - List list369 = new List(index); - CollectionsMarshal.SetCount(list369, index); - Span span369 = CollectionsMarshal.AsSpan(list369); - num = 0; - ref QuestSequence reference283 = ref span369[num]; + num = 4; + List list369 = new List(num); + CollectionsMarshal.SetCount(list369, num); + Span span134 = CollectionsMarshal.AsSpan(list369); + ref QuestSequence reference283 = ref span134[0]; QuestSequence obj272 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj272.Steps = list370; reference283 = obj272; - num++; - ref QuestSequence reference284 = ref span369[num]; + ref QuestSequence reference284 = ref span134[1]; QuestSequence obj273 = new QuestSequence { Sequence = 1 @@ -162728,52 +135027,41 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true }; obj273.Steps = list371; reference284 = obj273; - num++; - ref QuestSequence reference285 = ref span369[num]; + ref QuestSequence reference285 = ref span134[2]; QuestSequence obj274 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list372 = new List(index2); - CollectionsMarshal.SetCount(list372, index2); - Span span372 = CollectionsMarshal.AsSpan(list372); - num2 = 0; - ref QuestStep reference286 = ref span372[num2]; + num2 = 5; + List list372 = new List(num2); + CollectionsMarshal.SetCount(list372, num2); + Span span135 = CollectionsMarshal.AsSpan(list372); + ref QuestStep reference286 = ref span135[0]; QuestStep obj275 = new QuestStep(EInteractionType.UseItem, 1016375u, new Vector3(-627.89355f, -149.95285f, 480.15564f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop, ItemId = 2001934u }; - 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); + 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); obj275.CompletionQuestVariablesFlags = list373; reference286 = obj275; - num2++; - ref QuestStep reference287 = ref span372[num2]; + ref QuestStep reference287 = ref span135[1]; QuestStep obj276 = new QuestStep(EInteractionType.UseItem, 1016232u, new Vector3(-452.10956f, -187.396f, 734.18774f), 401) { Fly = true, @@ -162782,48 +135070,34 @@ public static class AssemblyQuestLoader num3 = 6; List list374 = new List(num3); CollectionsMarshal.SetCount(list374, num3); - 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); + 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); obj276.CompletionQuestVariablesFlags = list374; reference287 = obj276; - num2++; - ref QuestStep reference288 = ref span372[num2]; + ref QuestStep reference288 = ref span135[2]; QuestStep obj277 = new QuestStep(EInteractionType.UseItem, 1016233u, new Vector3(-359.823f, -184.95448f, 796.71924f), 401) { Fly = true, ItemId = 2001934u }; - 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); + 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); obj277.CompletionQuestVariablesFlags = list375; reference288 = obj277; - num2++; - ref QuestStep reference289 = ref span372[num2]; + ref QuestStep reference289 = ref span135[3]; QuestStep obj278 = new QuestStep(EInteractionType.UseItem, 1016374u, new Vector3(-343.00757f, -161.8661f, 770.01587f), 401) { Fly = true, @@ -162832,50 +135106,36 @@ public static class AssemblyQuestLoader num3 = 6; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - 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); + 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); obj278.CompletionQuestVariablesFlags = list376; reference289 = obj278; - num2++; - ref QuestStep reference290 = ref span372[num2]; + ref QuestStep reference290 = ref span135[4]; QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 1016231u, new Vector3(-333.79114f, -184.97446f, 625.1162f), 401) { Fly = true, ItemId = 2001934u }; - 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); + 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); obj279.CompletionQuestVariablesFlags = list377; reference290 = obj279; obj274.Steps = list372; reference285 = obj274; - num++; - ref QuestSequence reference291 = ref span369[num]; + ref QuestSequence reference291 = ref span134[3]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue @@ -162883,9 +135143,7 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016092u, new Vector3(-792.6299f, -133.32184f, -425.5589f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -162911,30 +135169,24 @@ public static class AssemblyQuestLoader num = 1; List list379 = new List(num); CollectionsMarshal.SetCount(list379, num); - Span span379 = CollectionsMarshal.AsSpan(list379); - index = 0; - span379[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list379)[0] = "plogon_enjoyer"; questRoot42.Author = list379; - index = 4; - List list380 = new List(index); - CollectionsMarshal.SetCount(list380, index); - Span span380 = CollectionsMarshal.AsSpan(list380); - num = 0; - ref QuestSequence reference292 = ref span380[num]; + num = 4; + List list380 = new List(num); + CollectionsMarshal.SetCount(list380, num); + Span span141 = CollectionsMarshal.AsSpan(list380); + ref QuestSequence reference292 = ref span141[0]; QuestSequence obj281 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj281.Steps = list381; reference292 = obj281; - num++; - ref QuestSequence reference293 = ref span380[num]; + ref QuestSequence reference293 = ref span141[1]; QuestSequence obj282 = new QuestSequence { Sequence = 1 @@ -162942,26 +135194,22 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span382[index2] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.Interact, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true }; obj282.Steps = list382; reference293 = obj282; - num++; - ref QuestSequence reference294 = ref span380[num]; + ref QuestSequence reference294 = ref span141[2]; QuestSequence obj283 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list383 = new List(index2); - CollectionsMarshal.SetCount(list383, index2); - Span span383 = CollectionsMarshal.AsSpan(list383); - num2 = 0; - ref QuestStep reference295 = ref span383[num2]; + num2 = 4; + List list383 = new List(num2); + CollectionsMarshal.SetCount(list383, num2); + Span span142 = CollectionsMarshal.AsSpan(list383); + ref QuestStep reference295 = ref span142[0]; QuestStep obj284 = new QuestStep(EInteractionType.Interact, 1016508u, new Vector3(-261.8601f, -132.0669f, 388.66248f), 401) { Fly = true, @@ -162970,47 +135218,33 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - 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); + 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); obj284.CompletionQuestVariablesFlags = list384; reference295 = obj284; - num2++; - ref QuestStep reference296 = ref span383[num2]; + ref QuestStep reference296 = ref span142[1]; QuestStep obj285 = new QuestStep(EInteractionType.Interact, 1016235u, new Vector3(-229.48047f, -129.59497f, 418.44812f), 401) { Fly = true }; - 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); + 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); obj285.CompletionQuestVariablesFlags = list385; reference296 = obj285; - num2++; - ref QuestStep reference297 = ref span383[num2]; + ref QuestStep reference297 = ref span142[2]; QuestStep obj286 = new QuestStep(EInteractionType.Interact, 1016236u, new Vector3(-196.2768f, -131.82275f, 333.9436f), 401) { Fly = true @@ -163018,49 +135252,35 @@ public static class AssemblyQuestLoader num3 = 6; List list386 = new List(num3); CollectionsMarshal.SetCount(list386, num3); - 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); + 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); obj286.CompletionQuestVariablesFlags = list386; reference297 = obj286; - num2++; - ref QuestStep reference298 = ref span383[num2]; + ref QuestStep reference298 = ref span142[3]; QuestStep obj287 = new QuestStep(EInteractionType.Interact, 1016216u, new Vector3(-253.62024f, -130.38837f, 340.3219f), 401) { Fly = true }; - 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); + 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); obj287.CompletionQuestVariablesFlags = list387; reference298 = obj287; obj283.Steps = list383; reference294 = obj283; - num++; - ref QuestSequence reference299 = ref span380[num]; + ref QuestSequence reference299 = ref span141[3]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue @@ -163068,9 +135288,7 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span388 = CollectionsMarshal.AsSpan(list388); - index2 = 0; - span388[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) + CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016091u, new Vector3(-804.25726f, -133.2695f, -390.89038f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163096,30 +135314,24 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - Span span389 = CollectionsMarshal.AsSpan(list389); - index = 0; - span389[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list389)[0] = "plogon_enjoyer"; questRoot43.Author = list389; - index = 4; - List list390 = new List(index); - CollectionsMarshal.SetCount(list390, index); - Span span390 = CollectionsMarshal.AsSpan(list390); - num = 0; - ref QuestSequence reference300 = ref span390[num]; + num = 4; + List list390 = new List(num); + CollectionsMarshal.SetCount(list390, num); + Span span147 = CollectionsMarshal.AsSpan(list390); + ref QuestSequence reference300 = ref span147[0]; QuestSequence obj289 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj289.Steps = list391; reference300 = obj289; - num++; - ref QuestSequence reference301 = ref span390[num]; + ref QuestSequence reference301 = ref span147[1]; QuestSequence obj290 = new QuestSequence { Sequence = 1 @@ -163127,44 +135339,37 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - Span span392 = CollectionsMarshal.AsSpan(list392); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj290.Steps = list392; reference301 = obj290; - num++; - ref QuestSequence reference302 = ref span390[num]; + ref QuestSequence reference302 = ref span147[2]; QuestSequence obj291 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; - num2++; - span393[num2] = new QuestStep(EInteractionType.Interact, 2006692u, new Vector3(-300.49597f, -192.37054f, 638.5442f), 401) + span148[1] = new QuestStep(EInteractionType.Interact, 2006692u, new Vector3(-300.49597f, -192.37054f, 638.5442f), 401) { Fly = true }; - num2++; - span393[num2] = new QuestStep(EInteractionType.Interact, 2006691u, new Vector3(-244.73944f, -184.92413f, 687.4342f), 401) + span148[2] = new QuestStep(EInteractionType.Interact, 2006691u, new Vector3(-244.73944f, -184.92413f, 687.4342f), 401) { Fly = true }; obj291.Steps = list393; reference302 = obj291; - num++; - ref QuestSequence reference303 = ref span390[num]; + ref QuestSequence reference303 = ref span147[3]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue @@ -163172,9 +135377,7 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span394 = CollectionsMarshal.AsSpan(list394); - index2 = 0; - span394[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163200,30 +135403,24 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - Span span395 = CollectionsMarshal.AsSpan(list395); - index = 0; - span395[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list395)[0] = "plogon_enjoyer"; questRoot44.Author = list395; - index = 5; - List list396 = new List(index); - CollectionsMarshal.SetCount(list396, index); - Span span396 = CollectionsMarshal.AsSpan(list396); - num = 0; - ref QuestSequence reference304 = ref span396[num]; + num = 5; + List list396 = new List(num); + CollectionsMarshal.SetCount(list396, num); + Span span149 = CollectionsMarshal.AsSpan(list396); + ref QuestSequence reference304 = ref span149[0]; QuestSequence obj293 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj293.Steps = list397; reference304 = obj293; - num++; - ref QuestSequence reference305 = ref span396[num]; + ref QuestSequence reference305 = ref span149[1]; QuestSequence obj294 = new QuestSequence { Sequence = 1 @@ -163231,34 +135428,28 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - span398[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj294.Steps = list398; reference305 = obj294; - num++; - ref QuestSequence reference306 = ref span396[num]; + ref QuestSequence reference306 = ref span149[2]; QuestSequence obj295 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj295.Steps = list399; reference306 = obj295; - num++; - ref QuestSequence reference307 = ref span396[num]; + ref QuestSequence reference307 = ref span149[3]; QuestSequence obj296 = new QuestSequence { Sequence = 3 @@ -163266,36 +135457,30 @@ public static class AssemblyQuestLoader num2 = 3; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.Interact, 1016385u, new Vector3(-519.646f, -152.47815f, 280.38452f), 401) + Span span150 = CollectionsMarshal.AsSpan(list400); + span150[0] = new QuestStep(EInteractionType.Interact, 1016385u, new Vector3(-519.646f, -152.47815f, 280.38452f), 401) { Fly = true }; - index2++; - span400[index2] = new QuestStep(EInteractionType.Interact, 1016377u, new Vector3(272.7854f, -114.24131f, 387.6859f), 401) + span150[1] = new QuestStep(EInteractionType.Interact, 1016377u, new Vector3(272.7854f, -114.24131f, 387.6859f), 401) { Fly = true }; - index2++; - span400[index2] = new QuestStep(EInteractionType.Interact, 1016376u, new Vector3(702.90686f, -126.03205f, 392.04993f), 401) + span150[2] = new QuestStep(EInteractionType.Interact, 1016376u, new Vector3(702.90686f, -126.03205f, 392.04993f), 401) { Fly = true }; obj296.Steps = list400; reference307 = obj296; - num++; - ref QuestSequence reference308 = ref span396[num]; + ref QuestSequence reference308 = ref span149[4]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163321,16 +135506,13 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - Span span402 = CollectionsMarshal.AsSpan(list402); - index = 0; - span402[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list402)[0] = "plogon_enjoyer"; questRoot45.Author = list402; - index = 5; - List list403 = new List(index); - CollectionsMarshal.SetCount(list403, index); - Span span403 = CollectionsMarshal.AsSpan(list403); - num = 0; - ref QuestSequence reference309 = ref span403[num]; + num = 5; + List list403 = new List(num); + CollectionsMarshal.SetCount(list403, num); + Span span151 = CollectionsMarshal.AsSpan(list403); + ref QuestSequence reference309 = ref span151[0]; QuestSequence obj298 = new QuestSequence { Sequence = 0 @@ -163338,31 +135520,25 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span404 = CollectionsMarshal.AsSpan(list404); - index2 = 0; - span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj298.Steps = list404; reference309 = obj298; - num++; - ref QuestSequence reference310 = ref span403[num]; + ref QuestSequence reference310 = ref span151[1]; QuestSequence obj299 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj299.Steps = list405; reference310 = obj299; - num++; - ref QuestSequence reference311 = ref span403[num]; + ref QuestSequence reference311 = ref span151[2]; QuestSequence obj300 = new QuestSequence { Sequence = 2 @@ -163370,30 +135546,24 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.Interact, 2006699u, new Vector3(-15.182739f, -136.98022f, 458.33508f), 401); + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 2006699u, new Vector3(-15.182739f, -136.98022f, 458.33508f), 401); obj300.Steps = list406; reference311 = obj300; - num++; - ref QuestSequence reference312 = ref span403[num]; + ref QuestSequence reference312 = ref span151[3]; QuestSequence obj301 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2001935u }; obj301.Steps = list407; reference312 = obj301; - num++; - ref QuestSequence reference313 = ref span403[num]; + ref QuestSequence reference313 = ref span151[4]; QuestSequence obj302 = new QuestSequence { Sequence = byte.MaxValue @@ -163401,9 +135571,7 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - span408[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) + CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163429,30 +135597,24 @@ public static class AssemblyQuestLoader num = 1; List list409 = new List(num); CollectionsMarshal.SetCount(list409, num); - Span span409 = CollectionsMarshal.AsSpan(list409); - index = 0; - span409[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list409)[0] = "plogon_enjoyer"; questRoot46.Author = list409; - index = 4; - List list410 = new List(index); - CollectionsMarshal.SetCount(list410, index); - Span span410 = CollectionsMarshal.AsSpan(list410); - num = 0; - ref QuestSequence reference314 = ref span410[num]; + num = 4; + List list410 = new List(num); + CollectionsMarshal.SetCount(list410, num); + Span span152 = CollectionsMarshal.AsSpan(list410); + ref QuestSequence reference314 = ref span152[0]; QuestSequence obj303 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj303.Steps = list411; reference314 = obj303; - num++; - ref QuestSequence reference315 = ref span410[num]; + ref QuestSequence reference315 = ref span152[1]; QuestSequence obj304 = new QuestSequence { Sequence = 1 @@ -163460,56 +135622,47 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span412[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj304.Steps = list412; reference315 = obj304; - num++; - ref QuestSequence reference316 = ref span410[num]; + ref QuestSequence reference316 = ref span152[2]; QuestSequence obj305 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span413[num2] = new QuestStep(EInteractionType.Emote, 1016362u, new Vector3(647.57764f, -41.156067f, -301.47253f), 401) + span153[1] = new QuestStep(EInteractionType.Emote, 1016362u, new Vector3(647.57764f, -41.156067f, -301.47253f), 401) { Emote = EEmote.SundropDance }; - num2++; - span413[num2] = new QuestStep(EInteractionType.Emote, 1016365u, new Vector3(682.36804f, -11.396843f, -400.6256f), 401) + span153[2] = new QuestStep(EInteractionType.Emote, 1016365u, new Vector3(682.36804f, -11.396843f, -400.6256f), 401) { Fly = true, Emote = EEmote.SundropDance }; - num2++; - span413[num2] = new QuestStep(EInteractionType.Emote, 1016364u, new Vector3(799.9846f, -11.396843f, -416.98334f), 401) + span153[3] = new QuestStep(EInteractionType.Emote, 1016364u, new Vector3(799.9846f, -11.396843f, -416.98334f), 401) { Fly = true, Emote = EEmote.SundropDance }; - num2++; - span413[num2] = new QuestStep(EInteractionType.Emote, 1016363u, new Vector3(776.9131f, -39.97968f, -540.24567f), 401) + span153[4] = new QuestStep(EInteractionType.Emote, 1016363u, new Vector3(776.9131f, -39.97968f, -540.24567f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj305.Steps = list413; reference316 = obj305; - num++; - ref QuestSequence reference317 = ref span410[num]; + ref QuestSequence reference317 = ref span152[3]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -163517,9 +135670,7 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - Span span414 = CollectionsMarshal.AsSpan(list414); - index2 = 0; - span414[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163545,30 +135696,24 @@ public static class AssemblyQuestLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - Span span415 = CollectionsMarshal.AsSpan(list415); - index = 0; - span415[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list415)[0] = "plogon_enjoyer"; questRoot47.Author = list415; - index = 4; - List list416 = new List(index); - CollectionsMarshal.SetCount(list416, index); - Span span416 = CollectionsMarshal.AsSpan(list416); - num = 0; - ref QuestSequence reference318 = ref span416[num]; + num = 4; + List list416 = new List(num); + CollectionsMarshal.SetCount(list416, num); + Span span154 = CollectionsMarshal.AsSpan(list416); + ref QuestSequence reference318 = ref span154[0]; QuestSequence obj307 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj307.Steps = list417; reference318 = obj307; - num++; - ref QuestSequence reference319 = ref span416[num]; + ref QuestSequence reference319 = ref span154[1]; QuestSequence obj308 = new QuestSequence { Sequence = 1 @@ -163576,32 +135721,27 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span418 = CollectionsMarshal.AsSpan(list418); - index2 = 0; - span418[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj308.Steps = list418; reference319 = obj308; - num++; - ref QuestSequence reference320 = ref span416[num]; + ref QuestSequence reference320 = ref span154[2]; QuestSequence obj309 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Emote = EEmote.SundropDance }; - num2++; - ref QuestStep reference321 = ref span419[num2]; + ref QuestStep reference321 = ref span155[1]; QuestStep obj310 = new QuestStep(EInteractionType.Combat, null, new Vector3(-182.94049f, 213.612f, 204.57764f), 401) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -163609,28 +135749,23 @@ public static class AssemblyQuestLoader num3 = 1; List list420 = new List(num3); CollectionsMarshal.SetCount(list420, num3); - Span span420 = CollectionsMarshal.AsSpan(list420); - index3 = 0; - span420[index3] = 5235u; + CollectionsMarshal.AsSpan(list420)[0] = 5235u; obj310.KillEnemyDataIds = list420; obj310.CombatDelaySecondsAtStart = 0f; reference321 = obj310; - num2++; - span419[num2] = new QuestStep(EInteractionType.Emote, 1016239u, new Vector3(-64.683044f, 212.9267f, 101.33508f), 401) + span155[2] = new QuestStep(EInteractionType.Emote, 1016239u, new Vector3(-64.683044f, 212.9267f, 101.33508f), 401) { Fly = true, Emote = EEmote.SundropDance }; - num2++; - span419[num2] = new QuestStep(EInteractionType.Emote, 1016240u, new Vector3(233.23413f, 240.42369f, 118.30322f), 401) + span155[3] = new QuestStep(EInteractionType.Emote, 1016240u, new Vector3(233.23413f, 240.42369f, 118.30322f), 401) { Fly = true, Emote = EEmote.SundropDance }; obj309.Steps = list419; reference320 = obj309; - num++; - ref QuestSequence reference322 = ref span416[num]; + ref QuestSequence reference322 = ref span154[3]; QuestSequence obj311 = new QuestSequence { Sequence = byte.MaxValue @@ -163638,9 +135773,7 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - Span span421 = CollectionsMarshal.AsSpan(list421); - index2 = 0; - span421[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163666,30 +135799,24 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - Span span422 = CollectionsMarshal.AsSpan(list422); - index = 0; - span422[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list422)[0] = "plogon_enjoyer"; questRoot48.Author = list422; - index = 6; - List list423 = new List(index); - CollectionsMarshal.SetCount(list423, index); - Span span423 = CollectionsMarshal.AsSpan(list423); - num = 0; - ref QuestSequence reference323 = ref span423[num]; + num = 6; + List list423 = new List(num); + CollectionsMarshal.SetCount(list423, num); + Span span156 = CollectionsMarshal.AsSpan(list423); + ref QuestSequence reference323 = ref span156[0]; QuestSequence obj312 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj312.Steps = list424; reference323 = obj312; - num++; - ref QuestSequence reference324 = ref span423[num]; + ref QuestSequence reference324 = ref span156[1]; QuestSequence obj313 = new QuestSequence { Sequence = 1 @@ -163697,33 +135824,27 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - Span span425 = CollectionsMarshal.AsSpan(list425); - index2 = 0; - span425[index2] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.Interact, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true }; obj313.Steps = list425; reference324 = obj313; - num++; - ref QuestSequence reference325 = ref span423[num]; + ref QuestSequence reference325 = ref span156[2]; QuestSequence obj314 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj314.Steps = list426; reference325 = obj314; - num++; - ref QuestSequence reference326 = ref span423[num]; + ref QuestSequence reference326 = ref span156[3]; QuestSequence obj315 = new QuestSequence { Sequence = 3 @@ -163731,34 +135852,28 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span427 = CollectionsMarshal.AsSpan(list427); - index2 = 0; - span427[index2] = new QuestStep(EInteractionType.UseItem, 2006695u, new Vector3(111.46704f, -84.55023f, 429.83142f), 401) + CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.UseItem, 2006695u, new Vector3(111.46704f, -84.55023f, 429.83142f), 401) { Fly = true, ItemId = 2001927u }; obj315.Steps = list427; reference326 = obj315; - num++; - ref QuestSequence reference327 = ref span423[num]; + ref QuestSequence reference327 = ref span156[4]; QuestSequence obj316 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Emote = EEmote.SundropDance }; obj316.Steps = list428; reference327 = obj316; - num++; - ref QuestSequence reference328 = ref span423[num]; + ref QuestSequence reference328 = ref span156[5]; QuestSequence obj317 = new QuestSequence { Sequence = byte.MaxValue @@ -163766,9 +135881,7 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - Span span429 = CollectionsMarshal.AsSpan(list429); - index2 = 0; - span429[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -163798,16 +135911,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -163815,30 +135925,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016089u, new Vector3(-799.46594f, -133.2695f, -404.1352f), 401); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -163846,9 +135950,8 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { StopDistance = 3f, Fly = true, @@ -163865,33 +135968,28 @@ public static class AssemblyQuestLoader } } }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) + span2[1] = new QuestStep(EInteractionType.Interact, 1016093u, new Vector3(-776.0281f, -133.35559f, -414.32825f), 401) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Action = EAction.BuffetSanuwa }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -163899,35 +135997,29 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Action, 1016378u, new Vector3(338.4298f, 31.483738f, -562.1882f), 401) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Action, 1016378u, new Vector3(338.4298f, 31.483738f, -562.1882f), 401) { Fly = true, Action = EAction.BuffetSanuwa }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, Action = EAction.BuffetSanuwa }; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[6]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -163935,9 +136027,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -163951,30 +136041,24 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "liza"; + CollectionsMarshal.AsSpan(list10)[0] = "liza"; questRoot2.Author = list10; - index = 5; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference8 = ref span11[num]; + num = 5; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span3 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference8 = ref span3[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span11[num]; + ref QuestSequence reference9 = ref span3[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -163982,39 +136066,33 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1012055u, new Vector3(-656.76355f, -117.32357f, 492.78992f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span11[num]; + ref QuestSequence reference10 = ref span3[2]; QuestSequence obj10 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span14[num2] = new QuestStep(EInteractionType.Interact, 1016124u, new Vector3(-887.9072f, -36.68469f, 11.428955f), 401) + span4[1] = new QuestStep(EInteractionType.Interact, 1016124u, new Vector3(-887.9072f, -36.68469f, 11.428955f), 401) { StopDistance = 5f }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span11[num]; + ref QuestSequence reference11 = ref span3[3]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -164022,9 +136100,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference12 = ref span15[index2]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401) { Fly = true @@ -164032,9 +136108,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - int index3 = 0; - span16[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNM101_02204_Q1_000_000"), @@ -164044,18 +136118,15 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference13 = ref span11[num]; + ref QuestSequence reference13 = ref span3[4]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(2205) @@ -164069,16 +136140,13 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "liza"; + CollectionsMarshal.AsSpan(list18)[0] = "liza"; questRoot3.Author = list18; - index = 4; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference14 = ref span19[num]; + num = 4; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span5 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference14 = ref span5[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -164086,26 +136154,21 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016119u, new Vector3(147.11218f, -14.525106f, -864.4083f), 401) { StopDistance = 7f }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span19[num]; + ref QuestSequence reference15 = ref span5[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -164114,13 +136177,11 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - num++; - span19[num] = new QuestSequence + span5[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference16 = ref span19[num]; + ref QuestSequence reference16 = ref span5[3]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -164128,9 +136189,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016137u, new Vector3(145.61682f, -13.626623f, -868.2536f), 401) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016137u, new Vector3(145.61682f, -13.626623f, -868.2536f), 401) { StopDistance = 7f, NextQuestId = new QuestId(2285) @@ -164144,26 +136203,21 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "pot0to"; + CollectionsMarshal.AsSpan(list23)[0] = "pot0to"; questRoot4.Author = list23; - index = 5; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference17 = ref span24[num]; + num = 5; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span6 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference17 = ref span6[0]; QuestSequence obj17 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list25)[0]; QuestStep obj18 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -164175,22 +136229,19 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + Span span7 = CollectionsMarshal.AsSpan(list26); + span7[0] = 418; + span7[1] = 419; skipAetheryteCondition.InTerritory = list26; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj18.SkipConditions = skipConditions; reference18 = obj18; obj17.Steps = list25; reference17 = obj17; - num++; - ref QuestSequence reference19 = ref span24[num]; + ref QuestSequence reference19 = ref span6[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -164198,40 +136249,30 @@ public static class AssemblyQuestLoader num2 = 6; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span8 = CollectionsMarshal.AsSpan(list27); + span8[0] = new QuestStep(EInteractionType.Interact, 1016234u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)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); + 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); obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span24[num]; + ref QuestSequence reference20 = ref span6[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span24[num]; + ref QuestSequence reference21 = ref span6[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -164239,27 +136280,23 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1017878u, new Vector3(547.8751f, 174.05713f, -537.0108f), 397) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1017878u, new Vector3(547.8751f, 174.05713f, -537.0108f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span24[num]; + ref QuestSequence reference22 = ref span6[4]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)427, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -164269,8 +136306,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSaintReymanaudsCathedral } }; - num2++; - span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427) + span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427) { NextQuestId = new QuestId(2208) }; @@ -164283,16 +136319,13 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "pot0to"; + CollectionsMarshal.AsSpan(list31)[0] = "pot0to"; questRoot5.Author = list31; - index = 5; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference23 = ref span32[num]; + num = 5; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span10 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference23 = ref span10[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -164300,9 +136333,8 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - ref QuestStep reference24 = ref span33[index2]; + Span span11 = CollectionsMarshal.AsSpan(list33); + ref QuestStep reference24 = ref span11[0]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -164318,45 +136350,37 @@ public static class AssemblyQuestLoader num3 = 1; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - Span span34 = CollectionsMarshal.AsSpan(list34); - index3 = 0; - span34[index3] = 427; + CollectionsMarshal.AsSpan(list34)[0] = 427; skipStepConditions.InTerritory = list34; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + Span span12 = CollectionsMarshal.AsSpan(list35); + span12[0] = 419; + span12[1] = 427; skipAetheryteCondition2.InTerritory = list35; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj24.SkipConditions = skipConditions2; reference24 = obj24; - index2++; - span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); + span11[1] = new QuestStep(EInteractionType.AcceptQuest, 1017874u, new Vector3(6.42395f, 0.22499956f, -6.149414f), 427); obj23.Steps = list33; reference23 = obj23; - num++; - ref QuestSequence reference25 = ref span32[num]; + ref QuestSequence reference25 = ref span10[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span36[num2] = new QuestStep(EInteractionType.Interact, 1017879u, new Vector3(56.10742f, 11.965071f, 38.92566f), 419) + span13[1] = new QuestStep(EInteractionType.Interact, 1017879u, new Vector3(56.10742f, 11.965071f, 38.92566f), 419) { AethernetShortcut = new AethernetShortcut { @@ -164366,8 +136390,7 @@ public static class AssemblyQuestLoader }; obj25.Steps = list36; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span32[num]; + ref QuestSequence reference26 = ref span10[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -164375,9 +136398,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -164387,18 +136408,16 @@ public static class AssemblyQuestLoader }; obj26.Steps = list37; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span32[num]; + ref QuestSequence reference27 = ref span10[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -164406,14 +136425,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - 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); + 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); obj27.Steps = list38; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span32[num]; + ref QuestSequence reference28 = ref span10[4]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -164421,9 +136437,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -164441,26 +136455,21 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "pot0to"; + CollectionsMarshal.AsSpan(list40)[0] = "pot0to"; questRoot6.Author = list40; - index = 4; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference29 = ref span41[num]; + num = 4; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span15 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference29 = ref span15[0]; QuestSequence obj29 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list42)[0]; QuestStep obj30 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -164475,19 +136484,16 @@ public static class AssemblyQuestLoader num3 = 2; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span43 = CollectionsMarshal.AsSpan(list43); - index3 = 0; - span43[index3] = 418; - index3++; - span43[index3] = 419; + Span span16 = CollectionsMarshal.AsSpan(list43); + span16[0] = 418; + span16[1] = 419; skipAetheryteCondition3.InTerritory = list43; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj30.SkipConditions = skipConditions3; reference30 = obj30; obj29.Steps = list42; reference29 = obj29; - num++; - ref QuestSequence reference31 = ref span41[num]; + ref QuestSequence reference31 = ref span15[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -164495,41 +136501,32 @@ public static class AssemblyQuestLoader num2 = 6; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + Span span17 = CollectionsMarshal.AsSpan(list44); + span17[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)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); + 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); obj31.Steps = list44; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span41[num]; + ref QuestSequence reference32 = ref span15[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span45[num2] = new QuestStep(EInteractionType.Interact, 1017883u, new Vector3(94.77368f, -4.73493f, -37.979797f), 419) + span18[1] = new QuestStep(EInteractionType.Interact, 1017883u, new Vector3(94.77368f, -4.73493f, -37.979797f), 419) { AethernetShortcut = new AethernetShortcut { @@ -164539,8 +136536,7 @@ public static class AssemblyQuestLoader }; obj32.Steps = list45; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span15[3]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -164548,9 +136544,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AethernetShortcut = new AethernetShortcut { @@ -164568,26 +136562,21 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "pot0to"; + CollectionsMarshal.AsSpan(list47)[0] = "pot0to"; questRoot7.Author = list47; - index = 8; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference34 = ref span48[num]; + num = 8; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span19 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference34 = ref span19[0]; QuestSequence obj34 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -164599,22 +136588,19 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + Span span20 = CollectionsMarshal.AsSpan(list50); + span20[0] = 418; + span20[1] = 419; skipAetheryteCondition4.InTerritory = list50; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj35.SkipConditions = skipConditions4; reference35 = obj35; obj34.Steps = list49; reference34 = obj34; - num++; - ref QuestSequence reference36 = ref span48[num]; + ref QuestSequence reference36 = ref span19[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -164622,9 +136608,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 2007422u, new Vector3(-225.84882f, -20.035156f, -81.22388f), 419) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2007422u, new Vector3(-225.84882f, -20.035156f, -81.22388f), 419) { AethernetShortcut = new AethernetShortcut { @@ -164634,18 +136618,15 @@ public static class AssemblyQuestLoader }; obj36.Steps = list51; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span48[num]; + ref QuestSequence reference37 = ref span19[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -164655,8 +136636,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span48[num]; + ref QuestSequence reference38 = ref span19[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -164664,9 +136644,8 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1011224u, new Vector3(4.5929565f, -2.52555f, 149.49255f), 418) + Span span21 = CollectionsMarshal.AsSpan(list53); + span21[0] = new QuestStep(EInteractionType.Interact, 1011224u, new Vector3(4.5929565f, -2.52555f, 149.49255f), 418) { TargetTerritoryId = (ushort)155, SkipConditions = new SkipConditions @@ -164677,25 +136656,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1017887u, new Vector3(-147.87524f, 290.3255f, -155.99298f), 155) + span21[1] = new QuestStep(EInteractionType.Interact, 1017887u, new Vector3(-147.87524f, 290.3255f, -155.99298f), 155) { Fly = true }; obj38.Steps = list53; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span48[num]; + ref QuestSequence reference39 = ref span19[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -164704,8 +136679,7 @@ public static class AssemblyQuestLoader }; obj39.Steps = list54; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span48[num]; + ref QuestSequence reference40 = ref span19[5]; QuestSequence obj40 = new QuestSequence { Sequence = 5 @@ -164713,9 +136687,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference41 = ref span55[index2]; + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list55)[0]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-191.21088f, 285.17578f, -154.22296f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -164723,31 +136695,25 @@ public static class AssemblyQuestLoader num3 = 2; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span56 = CollectionsMarshal.AsSpan(list56); - index3 = 0; - span56[index3] = 724u; - index3++; - span56[index3] = 725u; + Span span22 = CollectionsMarshal.AsSpan(list56); + span22[0] = 724u; + span22[1] = 725u; obj41.KillEnemyDataIds = list56; reference41 = obj41; obj40.Steps = list55; reference40 = obj40; - num++; - ref QuestSequence reference42 = ref span48[num]; + ref QuestSequence reference42 = ref span19[6]; QuestSequence obj42 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj42.Steps = list57; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span48[num]; + ref QuestSequence reference43 = ref span19[7]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -164755,9 +136721,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -164776,30 +136740,24 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list59)[0] = "plogon_enjoyer"; questRoot8.Author = list59; - index = 2; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference44 = ref span60[num]; + num = 2; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span23 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference44 = ref span23[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj44.Steps = list61; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span60[num]; + ref QuestSequence reference45 = ref span23[1]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -164807,9 +136765,7 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401); + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016088u, new Vector3(-818.143f, -129.93259f, -414.02307f), 401); obj45.Steps = list62; reference45 = obj45; questRoot8.QuestSequence = list60; @@ -164819,26 +136775,21 @@ public static class AssemblyQuestLoader num = 1; List list63 = new List(num); CollectionsMarshal.SetCount(list63, num); - Span span63 = CollectionsMarshal.AsSpan(list63); - index = 0; - span63[index] = "liza"; + CollectionsMarshal.AsSpan(list63)[0] = "liza"; questRoot9.Author = list63; - index = 7; - List list64 = new List(index); - CollectionsMarshal.SetCount(list64, index); - Span span64 = CollectionsMarshal.AsSpan(list64); - num = 0; - ref QuestSequence reference46 = ref span64[num]; + num = 7; + List list64 = new List(num); + CollectionsMarshal.SetCount(list64, num); + Span span24 = CollectionsMarshal.AsSpan(list64); + ref QuestSequence reference46 = ref span24[0]; QuestSequence obj46 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1016597u, new Vector3(-266.71252f, -20.034918f, -66.42261f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -164853,20 +136804,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list66 = new List(index3); - CollectionsMarshal.SetCount(list66, index3); - Span span66 = CollectionsMarshal.AsSpan(list66); - num3 = 0; - span66[num3] = 419; + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = 419; obj48.InTerritory = list66; skipConditions5.AetheryteShortcutIf = obj48; obj47.SkipConditions = skipConditions5; reference47 = obj47; obj46.Steps = list65; reference46 = obj46; - num++; - ref QuestSequence reference48 = ref span64[num]; + ref QuestSequence reference48 = ref span24[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -164874,163 +136822,117 @@ public static class AssemblyQuestLoader num2 = 6; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - ref QuestStep reference49 = ref span67[index2]; + Span span25 = CollectionsMarshal.AsSpan(list67); + ref QuestStep reference49 = ref span25[0]; 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 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list68; skipConditions6.StepIf = skipStepConditions2; questStep.SkipConditions = skipConditions6; reference49 = questStep; - index2++; - ref QuestStep reference50 = ref span67[index2]; + ref QuestStep reference50 = ref span25[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1011207u, new Vector3(-258.8083f, -20.03509f, -63.553833f), 419); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list69; reference50 = questStep2; - index2++; - ref QuestStep reference51 = ref span67[index2]; + ref QuestStep reference51 = ref span25[2]; 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 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list70; skipConditions7.StepIf = skipStepConditions3; questStep3.SkipConditions = skipConditions7; reference51 = questStep3; - index2++; - ref QuestStep reference52 = ref span67[index2]; + ref QuestStep reference52 = ref span25[3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1011202u, new Vector3(-228.10712f, -16.034918f, -49.912292f), 419); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list71; reference52 = questStep4; - index2++; - ref QuestStep reference53 = ref span67[index2]; + ref QuestStep reference53 = ref span25[4]; 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 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list72; skipConditions8.StepIf = skipStepConditions4; questStep5.SkipConditions = skipConditions8; reference53 = questStep5; - index2++; - ref QuestStep reference54 = ref span67[index2]; + ref QuestStep reference54 = ref span25[5]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1011204u, new Vector3(-203.6012f, -16.034918f, -53.23877f), 419); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list73; reference54 = questStep6; obj49.Steps = list67; reference48 = obj49; - num++; - ref QuestSequence reference55 = ref span64[num]; + ref QuestSequence reference55 = ref span24[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj50.Steps = list74; reference55 = obj50; - num++; - ref QuestSequence reference56 = ref span64[num]; + ref QuestSequence reference56 = ref span24[3]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -165038,9 +136940,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { AethernetShortcut = new AethernetShortcut { @@ -165050,22 +136950,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list75; reference56 = obj51; - num++; - ref QuestSequence reference57 = ref span64[num]; + ref QuestSequence reference57 = ref span24[4]; QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj52.Steps = list76; reference57 = obj52; - num++; - ref QuestSequence reference58 = ref span64[num]; + ref QuestSequence reference58 = ref span24[5]; QuestSequence obj53 = new QuestSequence { Sequence = 5 @@ -165073,26 +136969,21 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj53.Steps = list77; reference58 = obj53; - num++; - ref QuestSequence reference59 = ref span64[num]; + ref QuestSequence reference59 = ref span24[6]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2227) @@ -165106,16 +136997,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot10.Author = list79; - index = 7; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference60 = ref span80[num]; + num = 7; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span32 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference60 = ref span32[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -165123,33 +137011,27 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016604u, new Vector3(-222.24768f, 88.525505f, -582.8794f), 397) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016604u, new Vector3(-222.24768f, 88.525505f, -582.8794f), 397) { StopDistance = 7f }; obj55.Steps = list81; reference60 = obj55; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span32[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj56.Steps = list82; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span80[num]; + ref QuestSequence reference62 = ref span32[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -165157,26 +137039,21 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1016612u, new Vector3(757.83923f, 186.03809f, -538.26196f), 397) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1016612u, new Vector3(757.83923f, 186.03809f, -538.26196f), 397) { Fly = true }; obj57.Steps = list83; reference62 = obj57; - num++; - ref QuestSequence reference63 = ref span80[num]; + ref QuestSequence reference63 = ref span32[3]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num2 = 0; - ref QuestStep reference64 = ref span84[num2]; + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(789.0687f, 186.03352f, -529.4571f), 397) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -165184,15 +137061,12 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span85 = CollectionsMarshal.AsSpan(list85); - index3 = 0; - span85[index3] = 5536u; + CollectionsMarshal.AsSpan(list85)[0] = 5536u; obj59.KillEnemyDataIds = list85; reference64 = obj59; obj58.Steps = list84; reference63 = obj58; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span32[4]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -165200,27 +137074,21 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 2006763u, new Vector3(789.2728f, 186.44995f, -529.3507f), 397); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 2006763u, new Vector3(789.2728f, 186.44995f, -529.3507f), 397); obj60.Steps = list86; reference65 = obj60; - num++; - ref QuestSequence reference66 = ref span80[num]; + ref QuestSequence reference66 = ref span32[5]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj61.Steps = list87; reference66 = obj61; - num++; - ref QuestSequence reference67 = ref span80[num]; + ref QuestSequence reference67 = ref span32[6]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -165228,9 +137096,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2228) @@ -165244,30 +137110,24 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "liza"; + CollectionsMarshal.AsSpan(list89)[0] = "liza"; questRoot11.Author = list89; - index = 6; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference68 = ref span90[num]; + num = 6; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span33 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference68 = ref span33[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj63.Steps = list91; reference68 = obj63; - num++; - ref QuestSequence reference69 = ref span90[num]; + ref QuestSequence reference69 = ref span33[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -165275,9 +137135,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1016600u, new Vector3(46.097534f, 15.8650675f, -27.298462f), 419) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1016600u, new Vector3(46.097534f, 15.8650675f, -27.298462f), 419) { AethernetShortcut = new AethernetShortcut { @@ -165287,18 +137145,15 @@ public static class AssemblyQuestLoader }; obj64.Steps = list92; reference69 = obj64; - num++; - ref QuestSequence reference70 = ref span90[num]; + ref QuestSequence reference70 = ref span33[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -165308,8 +137163,7 @@ public static class AssemblyQuestLoader }; obj65.Steps = list93; reference70 = obj65; - num++; - ref QuestSequence reference71 = ref span90[num]; + ref QuestSequence reference71 = ref span33[3]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -165317,9 +137171,7 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1017278u, new Vector3(-158.31238f, 2.0333426f, -10.635559f), 418) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1017278u, new Vector3(-158.31238f, 2.0333426f, -10.635559f), 418) { AethernetShortcut = new AethernetShortcut { @@ -165329,18 +137181,15 @@ public static class AssemblyQuestLoader }; obj66.Steps = list94; reference71 = obj66; - num++; - ref QuestSequence reference72 = ref span90[num]; + ref QuestSequence reference72 = ref span33[4]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -165350,8 +137199,7 @@ public static class AssemblyQuestLoader }; obj67.Steps = list95; reference72 = obj67; - num++; - ref QuestSequence reference73 = ref span90[num]; + ref QuestSequence reference73 = ref span33[5]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -165359,9 +137207,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016608u, new Vector3(-261.0971f, -20.03499f, -66.11737f), 419) { StopDistance = 5f, NextQuestId = new QuestId(2229) @@ -165375,33 +137221,27 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot12.Author = list97; - index = 8; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference74 = ref span98[num]; + num = 8; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span34 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference74 = ref span34[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj69.Steps = list99; reference74 = obj69; - num++; - ref QuestSequence reference75 = ref span98[num]; + ref QuestSequence reference75 = ref span34[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -165409,9 +137249,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 1011225u, new Vector3(-170.6112f, 16.979578f, -37.125244f), 418) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1011225u, new Vector3(-170.6112f, 16.979578f, -37.125244f), 418) { AethernetShortcut = new AethernetShortcut { @@ -165421,26 +137259,22 @@ public static class AssemblyQuestLoader }; obj70.Steps = list100; reference75 = obj70; - num++; - ref QuestSequence reference76 = ref span98[num]; + ref QuestSequence reference76 = ref span34[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj71.Steps = list101; reference76 = obj71; - num++; - ref QuestSequence reference77 = ref span98[num]; + ref QuestSequence reference77 = ref span34[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -165448,33 +137282,27 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Interact, 2007180u, new Vector3(262.10425f, 163.31726f, 295.67407f), 397) + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 2007180u, new Vector3(262.10425f, 163.31726f, 295.67407f), 397) { Fly = true }; obj72.Steps = list102; reference77 = obj72; - num++; - ref QuestSequence reference78 = ref span98[num]; + ref QuestSequence reference78 = ref span34[4]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj73.Steps = list103; reference78 = obj73; - num++; - ref QuestSequence reference79 = ref span98[num]; + ref QuestSequence reference79 = ref span34[5]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -165482,30 +137310,24 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397); + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1017274u, new Vector3(164.53796f, 166.2741f, 181.32288f), 397); obj74.Steps = list104; reference79 = obj74; - num++; - ref QuestSequence reference80 = ref span98[num]; + ref QuestSequence reference80 = ref span34[6]; QuestSequence obj75 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj75.Steps = list105; reference80 = obj75; - num++; - ref QuestSequence reference81 = ref span98[num]; + ref QuestSequence reference81 = ref span34[7]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -165513,9 +137335,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2369) @@ -165529,26 +137349,22 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot13.Author = list107; - index = 4; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference82 = ref span108[num]; + num = 4; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span35 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference82 = ref span35[0]; QuestSequence obj77 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span36 = CollectionsMarshal.AsSpan(list109); + ref QuestStep reference83 = ref span36[0]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -165556,27 +137372,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index3 = 1; - List list110 = new List(index3); - CollectionsMarshal.SetCount(list110, index3); - Span span110 = CollectionsMarshal.AsSpan(list110); - num3 = 0; - span110[num3] = 351; + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = 351; skipStepConditions5.InTerritory = list110; skipConditions9.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - index3 = 0; - span111[index3] = 351; + CollectionsMarshal.AsSpan(list111)[0] = 351; skipAetheryteCondition5.InTerritory = list111; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition5; obj78.SkipConditions = skipConditions9; reference83 = obj78; - num2++; - span109[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span36[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -165587,15 +137398,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span109[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span36[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj77.Steps = list109; reference82 = obj77; - num++; - ref QuestSequence reference84 = ref span108[num]; + ref QuestSequence reference84 = ref span35[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -165603,27 +137412,22 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1016631u, new Vector3(209.12476f, 256.37268f, -4.3793945f), 402) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1016631u, new Vector3(209.12476f, 256.37268f, -4.3793945f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj79.Steps = list112; reference84 = obj79; - num++; - ref QuestSequence reference85 = ref span108[num]; + ref QuestSequence reference85 = ref span35[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Duty, null, null, 401) { DutyOptions = new DutyOptions { @@ -165632,8 +137436,7 @@ public static class AssemblyQuestLoader }; obj80.Steps = list113; reference85 = obj80; - num++; - ref QuestSequence reference86 = ref span108[num]; + ref QuestSequence reference86 = ref span35[3]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -165641,20 +137444,17 @@ public static class AssemblyQuestLoader num2 = 3; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span37 = CollectionsMarshal.AsSpan(list114); + span37[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span114[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span37[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2288) @@ -165668,33 +137468,27 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list115)[0] = "JerryWester"; questRoot14.Author = list115; - index = 5; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference87 = ref span116[num]; + num = 5; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span38 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference87 = ref span38[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj82.Steps = list117; reference87 = obj82; - num++; - ref QuestSequence reference88 = ref span116[num]; + ref QuestSequence reference88 = ref span38[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -165702,9 +137496,7 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1016531u, new Vector3(-323.99487f, 11.999983f, 44.96826f), 129) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1016531u, new Vector3(-323.99487f, 11.999983f, 44.96826f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -165715,25 +137507,21 @@ public static class AssemblyQuestLoader }; obj83.Steps = list118; reference88 = obj83; - num++; - ref QuestSequence reference89 = ref span116[num]; + ref QuestSequence reference89 = ref span38[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj84.Steps = list119; reference89 = obj84; - num++; - ref QuestSequence reference90 = ref span116[num]; + ref QuestSequence reference90 = ref span38[3]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -165741,134 +137529,95 @@ public static class AssemblyQuestLoader num2 = 6; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span39 = CollectionsMarshal.AsSpan(list120); + span39[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - index2++; - ref QuestStep reference91 = ref span120[index2]; + ref QuestStep reference91 = ref span39[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1016541u, new Vector3(2.1514893f, 0f, -7.4921875f), 351); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list121; reference91 = questStep7; - index2++; - ref QuestStep reference92 = ref span120[index2]; + ref QuestStep reference92 = ref span39[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list122; reference92 = questStep8; - index2++; - ref QuestStep reference93 = ref span120[index2]; + ref QuestStep reference93 = ref span39[3]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1016540u, new Vector3(31.967651f, -1f, -4.196289f), 351); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list123; reference93 = questStep9; - index2++; - ref QuestStep reference94 = ref span120[index2]; + ref QuestStep reference94 = ref span39[4]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list124; reference94 = questStep10; - index2++; - ref QuestStep reference95 = ref span120[index2]; + ref QuestStep reference95 = ref span39[5]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1016542u, new Vector3(36.27063f, -0.25946045f, 2.4871826f), 351) { StopDistance = 5f }; - 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); + 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); obj86.CompletionQuestVariablesFlags = list125; reference95 = obj86; obj85.Steps = list120; reference90 = obj85; - num++; - ref QuestSequence reference96 = ref span116[num]; + ref QuestSequence reference96 = ref span38[4]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj87.Steps = list126; reference96 = obj87; questRoot14.QuestSequence = list116; @@ -165878,16 +137627,13 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; questRoot15.Author = list127; - index = 6; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref QuestSequence reference97 = ref span128[num]; + num = 6; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + Span span45 = CollectionsMarshal.AsSpan(list128); + ref QuestSequence reference97 = ref span45[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -165895,30 +137641,24 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016534u, new Vector3(-1.7243042f, 0f, -3.6469727f), 351); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016534u, new Vector3(-1.7243042f, 0f, -3.6469727f), 351); obj88.Steps = list129; reference97 = obj88; - num++; - ref QuestSequence reference98 = ref span128[num]; + ref QuestSequence reference98 = ref span45[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj89.Steps = list130; reference98 = obj89; - num++; - ref QuestSequence reference99 = ref span128[num]; + ref QuestSequence reference99 = ref span45[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -165926,35 +137666,29 @@ public static class AssemblyQuestLoader num2 = 3; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) + Span span46 = CollectionsMarshal.AsSpan(list131); + span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.86769f, 204.99998f, 145.98666f), 478) { TargetTerritoryId = (ushort)399 }; - index2++; - span131[index2] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) + span46[1] = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { StopDistance = 0.25f, TargetTerritoryId = (ushort)463, Fly = true }; - index2++; - span131[index2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); + span46[2] = new QuestStep(EInteractionType.Interact, 1012138u, new Vector3(19.272095f, 38.43f, 15.854065f), 463); obj90.Steps = list131; reference99 = obj90; - num++; - ref QuestSequence reference100 = ref span128[num]; + ref QuestSequence reference100 = ref span45[3]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 463) { DutyOptions = new DutyOptions { @@ -165964,13 +137698,11 @@ public static class AssemblyQuestLoader }; obj91.Steps = list132; reference100 = obj91; - num++; - span128[num] = new QuestSequence + span45[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference101 = ref span128[num]; + ref QuestSequence reference101 = ref span45[5]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -165978,9 +137710,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - ref QuestStep reference102 = ref span133[index2]; + ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list133)[0]; QuestStep obj93 = new QuestStep(EInteractionType.CompleteQuest, 1016560u, new Vector3(21.133728f, 38.4364f, 8.041443f), 463) { StopDistance = 7f @@ -165988,9 +137718,7 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span134 = CollectionsMarshal.AsSpan(list134); - index3 = 0; - span134[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC102_02232_Q1_000_121"), @@ -166007,33 +137735,27 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list135)[0] = "JerryWester"; questRoot16.Author = list135; - index = 3; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference103 = ref span136[num]; + num = 3; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span47 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference103 = ref span47[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj94.Steps = list137; reference103 = obj94; - num++; - ref QuestSequence reference104 = ref span136[num]; + ref QuestSequence reference104 = ref span47[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -166041,9 +137763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - ref QuestStep reference105 = ref span138[index2]; + ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list138)[0]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -166053,12 +137773,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - index3 = 1; - List list139 = new List(index3); - CollectionsMarshal.SetCount(list139, index3); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new DialogueChoice + num3 = 1; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC103_02233_Q1_000_021") @@ -166067,18 +137785,15 @@ public static class AssemblyQuestLoader reference105 = obj96; obj95.Steps = list138; reference104 = obj95; - num++; - ref QuestSequence reference106 = ref span136[num]; + ref QuestSequence reference106 = ref span47[2]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest @@ -166092,16 +137807,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list141)[0] = "JerryWester"; questRoot17.Author = list141; - index = 3; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference107 = ref span142[num]; + num = 3; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span48 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference107 = ref span48[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -166109,9 +137821,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016564u, new Vector3(481.40686f, 225.00232f, 793.08765f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166124,18 +137834,16 @@ public static class AssemblyQuestLoader }; obj98.Steps = list143; reference107 = obj98; - num++; - ref QuestSequence reference108 = ref span142[num]; + ref QuestSequence reference108 = ref span48[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list144 = new List(index2); - CollectionsMarshal.SetCount(list144, index2); - Span span144 = CollectionsMarshal.AsSpan(list144); - num2 = 0; - ref QuestStep reference109 = ref span144[num2]; + num2 = 3; + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + Span span49 = CollectionsMarshal.AsSpan(list144); + ref QuestStep reference109 = ref span49[0]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1011231u, new Vector3(503.1051f, 217.95148f, 790.2189f), 397) { Fly = true @@ -166143,70 +137851,49 @@ public static class AssemblyQuestLoader num3 = 6; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - 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); + 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); obj100.CompletionQuestVariablesFlags = list145; reference109 = obj100; - num2++; - ref QuestStep reference110 = ref span144[num2]; + ref QuestStep reference110 = ref span49[1]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1016568u, new Vector3(465.5984f, 217.95128f, 752.7428f), 397) { Fly = true }; - 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); + 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); obj101.CompletionQuestVariablesFlags = list146; reference110 = obj101; - num2++; - ref QuestStep reference111 = ref span144[num2]; + ref QuestStep reference111 = ref span49[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list147; reference111 = questStep11; obj99.Steps = list144; reference108 = obj99; - num++; - ref QuestSequence reference112 = ref span142[num]; + ref QuestSequence reference112 = ref span48[2]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -166214,9 +137901,7 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016565u, new Vector3(503.34937f, 217.95154f, 760.46387f), 397) { Fly = true }; @@ -166229,26 +137914,21 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list149)[0] = "JerryWester"; questRoot18.Author = list149; - index = 5; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference113 = ref span150[num]; + num = 5; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span53 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference113 = ref span53[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166261,8 +137941,7 @@ public static class AssemblyQuestLoader }; obj103.Steps = list151; reference113 = obj103; - num++; - ref QuestSequence reference114 = ref span150[num]; + ref QuestSequence reference114 = ref span53[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -166270,95 +137949,73 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - ref QuestStep reference115 = ref span152[index2]; + Span span54 = CollectionsMarshal.AsSpan(list152); + ref QuestStep reference115 = ref span54[0]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 2006869u, new Vector3(334.7981f, 186.11426f, 442.22168f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + Span span55 = CollectionsMarshal.AsSpan(list153); + span55[0] = 5537u; + span55[1] = 5538u; obj105.KillEnemyDataIds = list153; num3 = 6; List list154 = new List(num3); CollectionsMarshal.SetCount(list154, num3); - 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); + 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); obj105.CompletionQuestVariablesFlags = list154; reference115 = obj105; - index2++; - ref QuestStep reference116 = ref span152[index2]; + ref QuestStep reference116 = ref span54[1]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2006870u, new Vector3(439.9939f, 165.45349f, 344.74695f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list155 = new List(index3); - CollectionsMarshal.SetCount(list155, index3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num3 = 0; - span155[num3] = 5539u; + num3 = 1; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + CollectionsMarshal.AsSpan(list155)[0] = 5539u; obj106.KillEnemyDataIds = list155; 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)4, 0, EQuestWorkMode.Bitwise); + 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); obj106.CompletionQuestVariablesFlags = list156; reference116 = obj106; obj104.Steps = list152; reference114 = obj104; - num++; - ref QuestSequence reference117 = ref span150[num]; + ref QuestSequence reference117 = ref span53[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj107.Steps = list157; reference117 = obj107; - num++; - ref QuestSequence reference118 = ref span150[num]; + ref QuestSequence reference118 = ref span53[3]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -166366,27 +138023,22 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 1016573u, new Vector3(79.02649f, 117.196884f, 157.57996f), 397) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1016573u, new Vector3(79.02649f, 117.196884f, 157.57996f), 397) { StopDistance = 1f, Fly = true }; obj108.Steps = list158; reference118 = obj108; - num++; - ref QuestSequence reference119 = ref span150[num]; + ref QuestSequence reference119 = ref span53[4]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest @@ -166400,16 +138052,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; questRoot19.Author = list160; - index = 4; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference120 = ref span161[num]; + num = 4; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span58 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference120 = ref span58[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -166417,9 +138066,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016566u, new Vector3(515.5565f, 217.95154f, 763.7291f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166432,22 +138079,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list162; reference120 = obj110; - num++; - ref QuestSequence reference121 = ref span161[num]; + ref QuestSequence reference121 = ref span58[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj111.Steps = list163; reference121 = obj111; - num++; - ref QuestSequence reference122 = ref span161[num]; + ref QuestSequence reference122 = ref span58[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -166455,92 +138098,67 @@ public static class AssemblyQuestLoader num2 = 4; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - ref QuestStep reference123 = ref span164[index2]; + Span span59 = CollectionsMarshal.AsSpan(list164); + ref QuestStep reference123 = ref span59[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1016569u, new Vector3(495.32312f, 217.95135f, 742.6107f), 397); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list165; reference123 = questStep12; - index2++; - span164[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.6554f, 228.37697f, 752.68335f), 397) + span59[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.6554f, 228.37697f, 752.68335f), 397) { Fly = true }; - index2++; - ref QuestStep reference124 = ref span164[index2]; + ref QuestStep reference124 = ref span59[2]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list166; reference124 = questStep13; - index2++; - ref QuestStep reference125 = ref span164[index2]; + ref QuestStep reference125 = ref span59[3]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1011235u, new Vector3(522.54517f, 228.3512f, 723.5675f), 397) { Fly = true }; - 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); + 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); obj113.CompletionQuestVariablesFlags = list167; reference125 = obj113; obj112.Steps = list164; reference122 = obj112; - num++; - ref QuestSequence reference126 = ref span161[num]; + ref QuestSequence reference126 = ref span58[3]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -166553,16 +138171,13 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; questRoot20.Author = list169; - index = 4; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference127 = ref span170[num]; + num = 4; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span63 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference127 = ref span63[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -166570,9 +138185,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016580u, new Vector3(416.5254f, 217.95142f, 754.20764f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166585,27 +138198,23 @@ public static class AssemblyQuestLoader }; obj115.Steps = list171; reference127 = obj115; - num++; - ref QuestSequence reference128 = ref span170[num]; + ref QuestSequence reference128 = ref span63[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span172[num2] = new QuestStep(EInteractionType.Interact, 1016069u, new Vector3(540.3677f, 217.90826f, 769.0393f), 397); + span64[1] = new QuestStep(EInteractionType.Interact, 1016069u, new Vector3(540.3677f, 217.90826f, 769.0393f), 397); obj116.Steps = list172; reference128 = obj116; - num++; - ref QuestSequence reference129 = ref span170[num]; + ref QuestSequence reference129 = ref span63[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -166613,31 +138222,26 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) + Span span65 = CollectionsMarshal.AsSpan(list173); + span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.9199f, 217.95137f, 773.3327f), 397) { Mount = true }; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 1016581u, new Vector3(477.37842f, 223.92603f, 872.6787f), 397) + span65[1] = new QuestStep(EInteractionType.Interact, 1016581u, new Vector3(477.37842f, 223.92603f, 872.6787f), 397) { Fly = true }; obj117.Steps = list173; reference129 = obj117; - num++; - ref QuestSequence reference130 = ref span170[num]; + ref QuestSequence reference130 = ref span63[3]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -166650,16 +138254,13 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; questRoot21.Author = list175; - index = 8; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference131 = ref span176[num]; + num = 8; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span66 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference131 = ref span66[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -166667,9 +138268,7 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016579u, new Vector3(507.16406f, 217.95152f, 769.9243f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -166682,18 +138281,16 @@ public static class AssemblyQuestLoader }; obj119.Steps = list177; reference131 = obj119; - num++; - ref QuestSequence reference132 = ref span176[num]; + ref QuestSequence reference132 = ref span66[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list178 = new List(index2); - CollectionsMarshal.SetCount(list178, index2); - Span span178 = CollectionsMarshal.AsSpan(list178); - num2 = 0; - ref QuestStep reference133 = ref span178[num2]; + num2 = 2; + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + Span span67 = CollectionsMarshal.AsSpan(list178); + ref QuestStep reference133 = ref span67[0]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -166706,21 +138303,17 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - Span span179 = CollectionsMarshal.AsSpan(list179); - index3 = 0; - span179[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q1_000_031") }; obj121.DialogueChoices = list179; reference133 = obj121; - num2++; - span178[num2] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); + span67[1] = new QuestStep(EInteractionType.Interact, 1013183u, new Vector3(-0.015319824f, 0.019999694f, -6.302063f), 428); obj120.Steps = list178; reference132 = obj120; - num++; - ref QuestSequence reference134 = ref span176[num]; + ref QuestSequence reference134 = ref span66[2]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -166728,19 +138321,15 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - ref QuestStep reference135 = ref span180[index2]; + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list180)[0]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1016583u, new Vector3(112.53516f, 24.391685f, -2.9145508f), 418) { StopDistance = 7f }; - index3 = 1; - List list181 = new List(index3); - CollectionsMarshal.SetCount(list181, index3); - Span span181 = CollectionsMarshal.AsSpan(list181); - num3 = 0; - span181[num3] = new DialogueChoice + num3 = 1; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q2_000_093"), @@ -166750,22 +138339,18 @@ public static class AssemblyQuestLoader reference135 = obj123; obj122.Steps = list180; reference134 = obj122; - num++; - ref QuestSequence reference136 = ref span176[num]; + ref QuestSequence reference136 = ref span66[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj124.Steps = list182; reference136 = obj124; - num++; - ref QuestSequence reference137 = ref span176[num]; + ref QuestSequence reference137 = ref span66[4]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -166773,9 +138358,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AethernetShortcut = new AethernetShortcut { @@ -166785,18 +138368,15 @@ public static class AssemblyQuestLoader }; obj125.Steps = list183; reference137 = obj125; - num++; - ref QuestSequence reference138 = ref span176[num]; + ref QuestSequence reference138 = ref span66[5]; QuestSequence obj126 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -166806,8 +138386,7 @@ public static class AssemblyQuestLoader }; obj126.Steps = list184; reference138 = obj126; - num++; - ref QuestSequence reference139 = ref span176[num]; + ref QuestSequence reference139 = ref span66[6]; QuestSequence obj127 = new QuestSequence { Sequence = 6 @@ -166815,9 +138394,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - ref QuestStep reference140 = ref span185[index2]; + ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list185)[0]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -166829,9 +138406,7 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNC108_02238_Q3_000_223") @@ -166840,18 +138415,15 @@ public static class AssemblyQuestLoader reference140 = obj128; obj127.Steps = list185; reference139 = obj127; - num++; - ref QuestSequence reference141 = ref span176[num]; + ref QuestSequence reference141 = ref span66[7]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -166864,16 +138436,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; questRoot22.Author = list188; - index = 6; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference142 = ref span189[num]; + num = 6; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span68 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference142 = ref span68[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -166881,36 +138450,30 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015978u, new Vector3(111.283936f, 24.388157f, -4.3793945f), 418) { StopDistance = 7f }; obj130.Steps = list190; reference142 = obj130; - num++; - ref QuestSequence reference143 = ref span189[num]; + ref QuestSequence reference143 = ref span68[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span191[num2] = new QuestStep(EInteractionType.Interact, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155); + span69[1] = new QuestStep(EInteractionType.Interact, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155); obj131.Steps = list191; reference143 = obj131; - num++; - ref QuestSequence reference144 = ref span189[num]; + ref QuestSequence reference144 = ref span68[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -166918,9 +138481,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1016587u, new Vector3(-133.92847f, 304.15384f, -300.83167f), 155) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -166929,27 +138490,22 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference144 = obj132; - num++; - span189[num] = new QuestSequence + span68[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference145 = ref span189[num]; + ref QuestSequence reference145 = ref span68[4]; QuestSequence obj133 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj133.Steps = list193; reference145 = obj133; - num++; - ref QuestSequence reference146 = ref span189[num]; + ref QuestSequence reference146 = ref span68[5]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -166957,14 +138513,12 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) + Span span70 = CollectionsMarshal.AsSpan(list194); + span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-132.00812f, 304.1538f, -292.25592f), 155) { Fly = true }; - index2++; - span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016588u, new Vector3(-136.64453f, 304.15384f, -308.36963f), 155); + span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1016588u, new Vector3(-136.64453f, 304.15384f, -308.36963f), 155); obj134.Steps = list194; reference146 = obj134; questRoot22.QuestSequence = list189; @@ -166974,33 +138528,27 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - span195[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list195)[0] = "JerryWester"; questRoot23.Author = list195; - index = 4; - List list196 = new List(index); - CollectionsMarshal.SetCount(list196, index); - Span span196 = CollectionsMarshal.AsSpan(list196); - num = 0; - ref QuestSequence reference147 = ref span196[num]; + num = 4; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span71 = CollectionsMarshal.AsSpan(list196); + ref QuestSequence reference147 = ref span71[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj135.Steps = list197; reference147 = obj135; - num++; - ref QuestSequence reference148 = ref span196[num]; + ref QuestSequence reference148 = ref span71[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -167008,34 +138556,28 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) { StopDistance = 5f }; obj136.Steps = list198; reference148 = obj136; - num++; - ref QuestSequence reference149 = ref span196[num]; + ref QuestSequence reference149 = ref span71[2]; QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj137.Steps = list199; reference149 = obj137; - num++; - ref QuestSequence reference150 = ref span196[num]; + ref QuestSequence reference150 = ref span71[3]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -167043,19 +138585,15 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - ref QuestStep reference151 = ref span200[index2]; + ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list200)[0]; QuestStep obj139 = new QuestStep(EInteractionType.CompleteQuest, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) { StopDistance = 7f }; - index3 = 1; - List list201 = new List(index3); - CollectionsMarshal.SetCount(list201, index3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = new DialogueChoice + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_HEAVNC110_02240_Q1_000_071"), @@ -167072,26 +138610,21 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list202)[0] = "JerryWester"; questRoot24.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]; + num = 4; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span72 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference152 = ref span72[0]; QuestSequence obj140 = 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, 1016590u, new Vector3(501.97595f, 217.95152f, 762.72217f), 397) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -167105,8 +138638,7 @@ public static class AssemblyQuestLoader }; obj140.Steps = list204; reference152 = obj140; - num++; - ref QuestSequence reference153 = ref span203[num]; + ref QuestSequence reference153 = ref span72[1]; QuestSequence obj141 = new QuestSequence { Sequence = 1 @@ -167114,33 +138646,27 @@ public static class AssemblyQuestLoader num2 = 2; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1009973u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) + Span span73 = CollectionsMarshal.AsSpan(list205); + span73[0] = new QuestStep(EInteractionType.Interact, 1009973u, new Vector3(264.91187f, 302.26236f, -223.71259f), 155) { TargetTerritoryId = (ushort)395, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span205[index2] = new QuestStep(EInteractionType.Interact, 2006864u, new Vector3(-2.7924194f, -0.015319824f, 0.10675049f), 395); + span73[1] = new QuestStep(EInteractionType.Interact, 2006864u, new Vector3(-2.7924194f, -0.015319824f, 0.10675049f), 395); obj141.Steps = list205; reference153 = obj141; - num++; - ref QuestSequence reference154 = ref span203[num]; + ref QuestSequence reference154 = ref span72[2]; QuestSequence obj142 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj142.Steps = list206; reference154 = obj142; - num++; - ref QuestSequence reference155 = ref span203[num]; + ref QuestSequence reference155 = ref span72[3]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -167148,9 +138674,7 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.CompleteQuest, 1013227u, new Vector3(14.877502f, 16.009666f, -4.196289f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -167168,33 +138692,27 @@ public static class AssemblyQuestLoader num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - Span span208 = CollectionsMarshal.AsSpan(list208); - index = 0; - span208[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; questRoot25.Author = list208; - index = 4; - List list209 = new List(index); - CollectionsMarshal.SetCount(list209, index); - Span span209 = CollectionsMarshal.AsSpan(list209); - num = 0; - ref QuestSequence reference156 = ref span209[num]; + num = 4; + List list209 = new List(num); + CollectionsMarshal.SetCount(list209, num); + Span span74 = CollectionsMarshal.AsSpan(list209); + ref QuestSequence reference156 = ref span74[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj144.Steps = list210; reference156 = obj144; - num++; - ref QuestSequence reference157 = ref span209[num]; + ref QuestSequence reference157 = ref span74[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -167202,32 +138720,27 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + Span span75 = CollectionsMarshal.AsSpan(list211); + span75[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; - index2++; - span211[index2] = new QuestStep(EInteractionType.Interact, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + span75[1] = new QuestStep(EInteractionType.Interact, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; obj145.Steps = list211; reference157 = obj145; - num++; - ref QuestSequence reference158 = ref span209[num]; + ref QuestSequence reference158 = ref span74[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -167237,8 +138750,7 @@ public static class AssemblyQuestLoader }; obj146.Steps = list212; reference158 = obj146; - num++; - ref QuestSequence reference159 = ref span209[num]; + ref QuestSequence reference159 = ref span74[3]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -167246,9 +138758,7 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016818u, new Vector3(109.72754f, 24.384384f, -4.715088f), 418); obj147.Steps = list213; reference159 = obj147; questRoot25.QuestSequence = list209; @@ -167258,30 +138768,24 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - Span span214 = CollectionsMarshal.AsSpan(list214); - index = 0; - span214[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list214)[0] = "JerryWester"; questRoot26.Author = list214; - index = 3; - List list215 = new List(index); - CollectionsMarshal.SetCount(list215, index); - Span span215 = CollectionsMarshal.AsSpan(list215); - num = 0; - ref QuestSequence reference160 = ref span215[num]; + num = 3; + List list215 = new List(num); + CollectionsMarshal.SetCount(list215, num); + Span span76 = CollectionsMarshal.AsSpan(list215); + ref QuestSequence reference160 = ref span76[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj148.Steps = list216; reference160 = obj148; - num++; - ref QuestSequence reference161 = ref span215[num]; + ref QuestSequence reference161 = ref span76[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -167289,26 +138793,21 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.Interact, 1016881u, new Vector3(110.30737f, 24.386719f, -2.3347168f), 418) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1016881u, new Vector3(110.30737f, 24.386719f, -2.3347168f), 418) { StopDistance = 7f }; obj149.Steps = list217; reference161 = obj149; - num++; - ref QuestSequence reference162 = ref span215[num]; + ref QuestSequence reference162 = ref span76[2]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 9f, Fly = true, @@ -167323,16 +138822,13 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list219)[0] = "JerryWester"; questRoot27.Author = list219; - index = 8; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference163 = ref span220[num]; + num = 8; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span77 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference163 = ref span77[0]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -167340,9 +138836,7 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016819u, new Vector3(-291.43213f, 39.04307f, 33.6156f), 398) + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016819u, new Vector3(-291.43213f, 39.04307f, 33.6156f), 398) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -167356,26 +138850,22 @@ public static class AssemblyQuestLoader }; obj151.Steps = list221; reference163 = obj151; - num++; - ref QuestSequence reference164 = ref span220[num]; + ref QuestSequence reference164 = ref span77[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj152.Steps = list222; reference164 = obj152; - num++; - ref QuestSequence reference165 = ref span220[num]; + ref QuestSequence reference165 = ref span77[2]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -167383,9 +138873,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 2006956u, new Vector3(-758.35815f, 123.704834f, 214.52649f), 400) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2006956u, new Vector3(-758.35815f, 123.704834f, 214.52649f), 400) { StopDistance = 1f, Fly = true, @@ -167393,25 +138881,21 @@ public static class AssemblyQuestLoader }; obj153.Steps = list223; reference165 = obj153; - num++; - ref QuestSequence reference166 = ref span220[num]; + ref QuestSequence reference166 = ref span77[3]; QuestSequence obj154 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj154.Steps = list224; reference166 = obj154; - num++; - ref QuestSequence reference167 = ref span220[num]; + ref QuestSequence reference167 = ref span77[4]; QuestSequence obj155 = new QuestSequence { Sequence = 4 @@ -167419,26 +138903,21 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Interact, 1016812u, new Vector3(-743.31274f, 83.799995f, 267.68896f), 400) + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1016812u, new Vector3(-743.31274f, 83.799995f, 267.68896f), 400) { Fly = true }; obj155.Steps = list225; reference167 = obj155; - num++; - ref QuestSequence reference168 = ref span220[num]; + ref QuestSequence reference168 = ref span77[5]; QuestSequence obj156 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list226 = new List(index2); - CollectionsMarshal.SetCount(list226, index2); - Span span226 = CollectionsMarshal.AsSpan(list226); - num2 = 0; - ref QuestStep reference169 = ref span226[num2]; + num2 = 1; + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list226)[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Duty, null, null, 400); DutyOptions obj157 = new DutyOptions { @@ -167447,23 +138926,19 @@ public static class AssemblyQuestLoader num3 = 2; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - 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"; + 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"; obj157.Notes = list227; questStep14.DutyOptions = obj157; reference169 = questStep14; obj156.Steps = list226; reference168 = obj156; - num++; - span220[num] = new QuestSequence + span77[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference170 = ref span220[num]; + ref QuestSequence reference170 = ref span77[7]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -167471,9 +138946,7 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017011u, new Vector3(-758.3887f, 123.72872f, 210.77283f), 400) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017011u, new Vector3(-758.3887f, 123.72872f, 210.77283f), 400) { StopDistance = 7f }; @@ -167486,26 +138959,21 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list229)[0] = "JerryWester"; questRoot28.Author = list229; - index = 5; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference171 = ref span230[num]; + num = 5; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span79 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference171 = ref span79[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -167519,13 +138987,11 @@ public static class AssemblyQuestLoader }; obj159.Steps = list231; reference171 = obj159; - num++; - span230[num] = new QuestSequence + span79[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference172 = ref span230[num]; + ref QuestSequence reference172 = ref span79[2]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -167533,9 +138999,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Duty, null, null, 569) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 569) { DutyOptions = new DutyOptions { @@ -167544,23 +139008,19 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference172 = obj160; - num++; - span230[num] = new QuestSequence + span79[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference173 = ref span230[num]; + ref QuestSequence reference173 = ref span79[4]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj161.Steps = list233; reference173 = obj161; questRoot28.QuestSequence = list230; @@ -167570,16 +139030,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; questRoot29.Author = list234; - index = 4; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference174 = ref span235[num]; + num = 4; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span80 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference174 = ref span80[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -167587,9 +139044,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016589u, new Vector3(7.4005737f, 1.2791227f, 104.35632f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -167602,22 +139057,18 @@ public static class AssemblyQuestLoader }; obj162.Steps = list236; reference174 = obj162; - num++; - ref QuestSequence reference175 = ref span235[num]; + ref QuestSequence reference175 = ref span80[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj163.Steps = list237; reference175 = obj163; - num++; - ref QuestSequence reference176 = ref span235[num]; + ref QuestSequence reference176 = ref span80[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -167625,9 +139076,7 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -167638,23 +139087,20 @@ public static class AssemblyQuestLoader }; obj164.Steps = list238; reference176 = obj164; - num++; - ref QuestSequence reference177 = ref span235[num]; + ref QuestSequence reference177 = ref span80[3]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span239[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AethernetShortcut = new AethernetShortcut { @@ -167671,16 +139117,13 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - Span span240 = CollectionsMarshal.AsSpan(list240); - index = 0; - span240[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list240)[0] = "JerryWester"; questRoot30.Author = list240; - index = 4; - List list241 = new List(index); - CollectionsMarshal.SetCount(list241, index); - Span span241 = CollectionsMarshal.AsSpan(list241); - num = 0; - ref QuestSequence reference178 = ref span241[num]; + num = 4; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + Span span82 = CollectionsMarshal.AsSpan(list241); + ref QuestSequence reference178 = ref span82[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -167688,33 +139131,26 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418); obj166.Steps = list242; reference178 = obj166; - num++; - ref QuestSequence reference179 = ref span241[num]; + ref QuestSequence reference179 = ref span82[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list243 = new List(index2); - CollectionsMarshal.SetCount(list243, index2); - Span span243 = CollectionsMarshal.AsSpan(list243); - num2 = 0; - ref QuestStep reference180 = ref span243[num2]; + num2 = 1; + List list243 = new List(num2); + CollectionsMarshal.SetCount(list243, num2); + ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list243)[0]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1016823u, new Vector3(124.833984f, 24.458836f, 0.62561035f), 418) { StopDistance = 4f }; - index3 = 1; - List list244 = new List(index3); - CollectionsMarshal.SetCount(list244, index3); - Span span244 = CollectionsMarshal.AsSpan(list244); - num3 = 0; - span244[num3] = new DialogueChoice + num3 = 1; + List list244 = new List(num3); + CollectionsMarshal.SetCount(list244, num3); + CollectionsMarshal.AsSpan(list244)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVND106_02247_Q1_000_000") @@ -167723,8 +139159,7 @@ public static class AssemblyQuestLoader reference180 = obj168; obj167.Steps = list243; reference179 = obj167; - num++; - ref QuestSequence reference181 = ref span241[num]; + ref QuestSequence reference181 = ref span82[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -167732,23 +139167,19 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1016828u, new Vector3(169.26831f, -14.528959f, 36.697876f), 419); + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1016828u, new Vector3(169.26831f, -14.528959f, 36.697876f), 419); obj169.Steps = list245; reference181 = obj169; - num++; - ref QuestSequence reference182 = ref span241[num]; + ref QuestSequence reference182 = ref span82[3]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)433, AethernetShortcut = new AethernetShortcut @@ -167757,8 +139188,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - num2++; - span246[num2] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) + span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1012857u, new Vector3(0.7476196f, 0.022254243f, 4.623413f), 433) { StopDistance = 7f }; @@ -167771,16 +139201,13 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "liza"; + CollectionsMarshal.AsSpan(list247)[0] = "liza"; questRoot31.Author = list247; - index = 7; - List list248 = new List(index); - CollectionsMarshal.SetCount(list248, index); - Span span248 = CollectionsMarshal.AsSpan(list248); - num = 0; - ref QuestSequence reference183 = ref span248[num]; + num = 7; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + Span span84 = CollectionsMarshal.AsSpan(list248); + ref QuestSequence reference183 = ref span84[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -167788,30 +139215,24 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014402u, new Vector3(-42.37433f, 100.87579f, -183.21509f), 399); obj171.Steps = list249; reference183 = obj171; - num++; - ref QuestSequence reference184 = ref span248[num]; + ref QuestSequence reference184 = ref span84[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj172.Steps = list250; reference184 = obj172; - num++; - ref QuestSequence reference185 = ref span248[num]; + ref QuestSequence reference185 = ref span84[2]; QuestSequence obj173 = new QuestSequence { Sequence = 2 @@ -167819,33 +139240,27 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.Interact, 1014408u, new Vector3(-36.30127f, 100.96971f, -182.90991f), 399) + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1014408u, new Vector3(-36.30127f, 100.96971f, -182.90991f), 399) { Fly = true }; obj173.Steps = list251; reference185 = obj173; - num++; - ref QuestSequence reference186 = ref span248[num]; + ref QuestSequence reference186 = ref span84[3]; QuestSequence obj174 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj174.Steps = list252; reference186 = obj174; - num++; - ref QuestSequence reference187 = ref span248[num]; + ref QuestSequence reference187 = ref span84[4]; QuestSequence obj175 = new QuestSequence { Sequence = 4 @@ -167853,26 +139268,21 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1016642u, new Vector3(-94.98743f, 53.987366f, 180.46838f), 399) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1016642u, new Vector3(-94.98743f, 53.987366f, 180.46838f), 399) { Fly = true }; obj175.Steps = list253; reference187 = obj175; - num++; - ref QuestSequence reference188 = ref span248[num]; + ref QuestSequence reference188 = ref span84[5]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list254 = new List(num2); + CollectionsMarshal.SetCount(list254, num2); + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -167881,8 +139291,7 @@ public static class AssemblyQuestLoader }; obj176.Steps = list254; reference188 = obj176; - num++; - ref QuestSequence reference189 = ref span248[num]; + ref QuestSequence reference189 = ref span84[6]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -167890,9 +139299,7 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014407u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2250) @@ -167910,16 +139317,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -167927,26 +139331,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016637u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016637u, new Vector3(-38.16284f, 100.95273f, -184.06964f), 399) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -167955,8 +139354,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -167964,9 +139362,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1014409u, new Vector3(-41.519836f, 100.89075f, -181.99438f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2251) @@ -167980,33 +139376,27 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 3; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 3; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span2 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span2[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -168014,9 +139404,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -168025,18 +139413,15 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span7[num]; + ref QuestSequence reference6 = ref span2[2]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(2252) @@ -168050,16 +139435,13 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list11)[0] = "liza"; questRoot3.Author = list11; - index = 3; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference7 = ref span12[num]; + num = 3; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span3 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -168067,26 +139449,21 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f }; obj7.Steps = list13; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span12[num]; + ref QuestSequence reference8 = ref span3[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list14 = new List(num2); + CollectionsMarshal.SetCount(list14, num2); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -168095,8 +139472,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span12[num]; + ref QuestSequence reference9 = ref span3[2]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -168104,9 +139480,8 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference10 = ref span15[index2]; + Span span4 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference10 = ref span4[0]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2007003u, new Vector3(0f, -67f, 15.5f), 553) { TargetTerritoryId = (ushort)399 @@ -168116,15 +139491,12 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - int index3 = 0; - span16[index3] = 553; + CollectionsMarshal.AsSpan(list16)[0] = 553; skipStepConditions.NotInTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - index2++; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) + span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1013714u, new Vector3(-33.76825f, 100.96971f, -182.48267f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2253) @@ -168138,33 +139510,27 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot4.Author = list17; - index = 5; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference11 = ref span18[num]; + num = 5; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span5 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference11 = ref span5[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj11.Steps = list19; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span18[num]; + ref QuestSequence reference12 = ref span5[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -168172,30 +139538,24 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1017001u, new Vector3(-38.651123f, 100.943344f, -182.17749f), 399) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1017001u, new Vector3(-38.651123f, 100.943344f, -182.17749f), 399) { StopDistance = 5f }; obj12.Steps = list20; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span18[num]; + ref QuestSequence reference13 = ref span5[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span5[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -168203,23 +139563,18 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Interact, 1016641u, new Vector3(-49.94281f, 100.66968f, -148.45508f), 399); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1016641u, new Vector3(-49.94281f, 100.66968f, -148.45508f), 399); obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span5[4]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2335) @@ -168233,16 +139588,13 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot5.Author = list24; - index = 10; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference16 = ref span25[num]; + num = 10; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span6 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference16 = ref span6[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -168250,34 +139602,28 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj16.Steps = list26; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span25[num]; + ref QuestSequence reference17 = ref span6[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj17.Steps = list27; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span25[num]; + ref QuestSequence reference18 = ref span6[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -168285,19 +139631,15 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - ref QuestStep reference19 = ref span28[index2]; + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list28)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) { Fly = true }; - index3 = 1; - List list29 = new List(index3); - CollectionsMarshal.SetCount(list29, index3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = new DialogueChoice + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA001_02255_Q1_000_031"), @@ -168307,18 +139649,15 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list28; reference18 = obj18; - num++; - ref QuestSequence reference20 = ref span25[num]; + ref QuestSequence reference20 = ref span6[3]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num2 = 0; - ref QuestStep reference21 = ref span30[num2]; + num2 = 1; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2006874u, new Vector3(222.156f, -74.93713f, 122.51465f), 398) { Fly = true, @@ -168327,15 +139666,12 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = 5540u; + CollectionsMarshal.AsSpan(list31)[0] = 5540u; obj21.KillEnemyDataIds = list31; reference21 = obj21; obj20.Steps = list30; reference20 = obj20; - num++; - ref QuestSequence reference22 = ref span25[num]; + ref QuestSequence reference22 = ref span6[4]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -168343,36 +139679,30 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1016836u, new Vector3(212.42078f, -58.007248f, -228.07666f), 398) { Fly = true }; obj22.Steps = list32; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span25[num]; + ref QuestSequence reference23 = ref span6[5]; QuestSequence obj23 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + span7[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj23.Steps = list33; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span25[num]; + ref QuestSequence reference24 = ref span6[6]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -168380,35 +139710,29 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) + Span span8 = CollectionsMarshal.AsSpan(list34); + span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(471.25446f, -51.141403f, 35.94126f), 398) { Mount = true }; - index2++; - span34[index2] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + span8[1] = new QuestStep(EInteractionType.Interact, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) { Fly = true }; obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span25[num]; + ref QuestSequence reference25 = ref span6[7]; QuestSequence obj25 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj25.Steps = list35; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span25[num]; + ref QuestSequence reference26 = ref span6[8]; QuestSequence obj26 = new QuestSequence { Sequence = 8 @@ -168416,43 +139740,36 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(215.13696f, -87.32745f, 217.94458f), 398) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(215.13696f, -87.32745f, 217.94458f), 398) { Fly = true, Action = EAction.Fumigate }; obj26.Steps = list36; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span25[num]; + ref QuestSequence reference27 = ref span6[9]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 2f, Fly = true }; - num2++; - ref QuestStep reference28 = ref span37[num2]; + ref QuestStep reference28 = ref span9[1]; QuestStep obj28 = new QuestStep(EInteractionType.CompleteQuest, 1016837u, new Vector3(58.88452f, -48.000004f, -171.06891f), 398) { Mount = false }; - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA001_02255_Q1_000_105"), @@ -168469,16 +139786,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list39)[0] = "AnimaMachinae"; questRoot6.Author = list39; - index = 10; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference29 = ref span40[num]; + num = 10; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span10 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference29 = ref span10[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -168486,9 +139800,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, Land = true, @@ -168503,18 +139815,15 @@ public static class AssemblyQuestLoader }; obj29.Steps = list41; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span40[num]; + ref QuestSequence reference30 = ref span10[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num2 = 0; - ref QuestStep reference31 = ref span42[num2]; + num2 = 1; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + ref QuestStep reference31 = ref CollectionsMarshal.AsSpan(list42)[0]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398) { Fly = true, @@ -168525,15 +139834,12 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span43 = CollectionsMarshal.AsSpan(list43); - index3 = 0; - span43[index3] = 5541u; + CollectionsMarshal.AsSpan(list43)[0] = 5541u; obj31.KillEnemyDataIds = list43; reference31 = obj31; obj30.Steps = list42; reference30 = obj30; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span10[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -168541,37 +139847,31 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.Interact, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398); + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1016841u, new Vector3(842.9846f, -8.926968f, 338.2467f), 398); obj32.Steps = list44; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span40[num]; + ref QuestSequence reference33 = ref span10[3]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; - num2++; - span45[num2] = new QuestStep(EInteractionType.Interact, 1016842u, new Vector3(-791.9585f, 113.93191f, -624.59753f), 397) + span11[1] = new QuestStep(EInteractionType.Interact, 1016842u, new Vector3(-791.9585f, 113.93191f, -624.59753f), 397) { Fly = true, Land = true }; obj33.Steps = list45; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span40[num]; + ref QuestSequence reference34 = ref span10[4]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -168579,34 +139879,28 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true, Land = true }; obj34.Steps = list46; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span40[num]; + ref QuestSequence reference35 = ref span10[5]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 2001950u }; obj35.Steps = list47; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span40[num]; + ref QuestSequence reference36 = ref span10[6]; QuestSequence obj36 = new QuestSequence { Sequence = 6 @@ -168614,23 +139908,18 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1016890u, new Vector3(-273.91473f, 122.361694f, -43.320435f), 397); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1016890u, new Vector3(-273.91473f, 122.361694f, -43.320435f), 397); obj36.Steps = list48; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span40[num]; + ref QuestSequence reference37 = ref span10[7]; QuestSequence obj37 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, Land = true, @@ -168638,8 +139927,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span40[num]; + ref QuestSequence reference38 = ref span10[8]; QuestSequence obj38 = new QuestSequence { Sequence = 8 @@ -168647,27 +139935,22 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1016843u, new Vector3(103.16626f, -50.70595f, -184.31378f), 398) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1016843u, new Vector3(103.16626f, -50.70595f, -184.31378f), 398) { Fly = true, Land = true }; obj38.Steps = list50; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span40[num]; + ref QuestSequence reference39 = ref span10[9]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true @@ -168681,16 +139964,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "Theo"; + CollectionsMarshal.AsSpan(list52)[0] = "Theo"; questRoot7.Author = list52; - index = 11; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference40 = ref span53[num]; + num = 11; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span12 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference40 = ref span12[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -168698,9 +139978,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -168714,40 +139992,34 @@ public static class AssemblyQuestLoader }; obj40.Steps = list54; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span12[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference42 = ref span55[num2]; + ref QuestStep reference42 = ref span13[1]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 5542u, new Vector3(-731.547f, -116.99814f, 577.7823f), 398) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list56 = new List(index3); - CollectionsMarshal.SetCount(list56, index3); - Span span56 = CollectionsMarshal.AsSpan(list56); - num3 = 0; - span56[num3] = 5542u; + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + CollectionsMarshal.AsSpan(list56)[0] = 5542u; obj42.KillEnemyDataIds = list56; obj42.CombatDelaySecondsAtStart = 3f; reference42 = obj42; obj41.Steps = list55; reference41 = obj41; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span12[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -168755,23 +140027,19 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1016844u, new Vector3(-743.0991f, -117.75057f, 574.85315f), 398); obj43.Steps = list57; reference43 = obj43; - num++; - ref QuestSequence reference44 = ref span53[num]; + ref QuestSequence reference44 = ref span12[3]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list58 = new List(index2); - CollectionsMarshal.SetCount(list58, index2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num2 = 0; - ref QuestStep reference45 = ref span58[num2]; + num2 = 2; + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + Span span14 = CollectionsMarshal.AsSpan(list58); + ref QuestStep reference45 = ref span14[0]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-802.4346f, -122.50925f, 578.51434f), 398) { Fly = true @@ -168781,22 +140049,18 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span59 = CollectionsMarshal.AsSpan(list59); - index3 = 0; - span59[index3] = 399; + CollectionsMarshal.AsSpan(list59)[0] = 399; skipStepConditions2.InTerritory = list59; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference45 = obj45; - num2++; - span58[num2] = new QuestStep(EInteractionType.Interact, 1016845u, new Vector3(508.72046f, 77.65831f, 119.21863f), 399) + span14[1] = new QuestStep(EInteractionType.Interact, 1016845u, new Vector3(508.72046f, 77.65831f, 119.21863f), 399) { Fly = true }; obj44.Steps = list58; reference44 = obj44; - num++; - ref QuestSequence reference46 = ref span53[num]; + ref QuestSequence reference46 = ref span12[4]; QuestSequence obj46 = new QuestSequence { Sequence = 4 @@ -168804,9 +140068,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1012097u, new Vector3(73.3501f, 205.88956f, 23.483582f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -168819,22 +140081,18 @@ public static class AssemblyQuestLoader }; obj46.Steps = list60; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span53[num]; + ref QuestSequence reference47 = ref span12[5]; QuestSequence obj47 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj47.Steps = list61; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span53[num]; + ref QuestSequence reference48 = ref span12[6]; QuestSequence obj48 = new QuestSequence { Sequence = 6 @@ -168842,44 +140100,37 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - ref QuestStep reference49 = ref span62[index2]; + Span span15 = CollectionsMarshal.AsSpan(list62); + ref QuestStep reference49 = ref span15[0]; 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(); - index3 = 1; - List list63 = new List(index3); - CollectionsMarshal.SetCount(list63, index3); - Span span63 = CollectionsMarshal.AsSpan(list63); - num3 = 0; - span63[num3] = 399; + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + CollectionsMarshal.AsSpan(list63)[0] = 399; skipStepConditions3.InTerritory = list63; skipConditions3.StepIf = skipStepConditions3; obj49.SkipConditions = skipConditions3; reference49 = obj49; - index2++; - span62[index2] = new QuestStep(EInteractionType.Interact, 1016996u, new Vector3(-85.80151f, 100.87653f, -325.185f), 399) + span15[1] = new QuestStep(EInteractionType.Interact, 1016996u, new Vector3(-85.80151f, 100.87653f, -325.185f), 399) { Fly = true }; obj48.Steps = list62; reference48 = obj48; - num++; - ref QuestSequence reference50 = ref span53[num]; + ref QuestSequence reference50 = ref span12[7]; QuestSequence obj50 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -168893,8 +140144,7 @@ public static class AssemblyQuestLoader }; obj50.Steps = list64; reference50 = obj50; - num++; - ref QuestSequence reference51 = ref span53[num]; + ref QuestSequence reference51 = ref span12[8]; QuestSequence obj51 = new QuestSequence { Sequence = 8 @@ -168902,26 +140152,21 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1016848u, new Vector3(286.7627f, -112.2676f, 424.55164f), 398) { Fly = true }; obj51.Steps = list65; reference51 = obj51; - num++; - ref QuestSequence reference52 = ref span53[num]; + ref QuestSequence reference52 = ref span12[9]; QuestSequence obj52 = new QuestSequence { Sequence = 9 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -168930,8 +140175,7 @@ public static class AssemblyQuestLoader }; obj52.Steps = list66; reference52 = obj52; - num++; - ref QuestSequence reference53 = ref span53[num]; + ref QuestSequence reference53 = ref span12[10]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -168939,9 +140183,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true }; @@ -168954,26 +140196,21 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "Theo"; + CollectionsMarshal.AsSpan(list68)[0] = "Theo"; questRoot8.Author = list68; - index = 9; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference54 = ref span69[num]; + num = 9; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span16 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference54 = ref span16[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -168987,8 +140224,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list70; reference54 = obj54; - num++; - ref QuestSequence reference55 = ref span69[num]; + ref QuestSequence reference55 = ref span16[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -168996,9 +140232,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Interact, 1016849u, new Vector3(-209.46063f, -46.08357f, 222.52222f), 398) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1016849u, new Vector3(-209.46063f, -46.08357f, 222.52222f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -169012,25 +140246,21 @@ public static class AssemblyQuestLoader }; obj55.Steps = list71; reference55 = obj55; - num++; - ref QuestSequence reference56 = ref span69[num]; + ref QuestSequence reference56 = ref span16[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj56.Steps = list72; reference56 = obj56; - num++; - ref QuestSequence reference57 = ref span69[num]; + ref QuestSequence reference57 = ref span16[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -169038,9 +140268,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - ref QuestStep reference58 = ref span73[index2]; + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list73)[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) { Fly = true @@ -169048,9 +140276,7 @@ public static class AssemblyQuestLoader num3 = 1; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - Span span74 = CollectionsMarshal.AsSpan(list74); - index3 = 0; - span74[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANGNA004_02258_Q1_000_051"), @@ -169060,84 +140286,64 @@ public static class AssemblyQuestLoader reference58 = obj58; obj57.Steps = list73; reference57 = obj57; - num++; - ref QuestSequence reference59 = ref span69[num]; + ref QuestSequence reference59 = ref span16[4]; QuestSequence obj59 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list75 = new List(index2); - CollectionsMarshal.SetCount(list75, index2); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref QuestStep reference60 = ref span75[num2]; + num2 = 2; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + Span span17 = CollectionsMarshal.AsSpan(list75); + ref QuestStep reference60 = ref span17[0]; QuestStep obj60 = new QuestStep(EInteractionType.Combat, null, new Vector3(-68.02277f, -33.766434f, -164.5872f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list76 = new List(index3); - CollectionsMarshal.SetCount(list76, index3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span76[num3] = 5543u; + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = 5543u; obj60.KillEnemyDataIds = list76; num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - 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); + 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); obj60.CompletionQuestVariablesFlags = list77; reference60 = obj60; - num2++; - ref QuestStep reference61 = ref span75[num2]; + ref QuestStep reference61 = ref span17[1]; QuestStep obj61 = new QuestStep(EInteractionType.Combat, null, new Vector3(-67.26527f, -34.505165f, 89.80089f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list78 = new List(index3); - CollectionsMarshal.SetCount(list78, index3); - Span span78 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - span78[num3] = 5543u; + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = 5543u; obj61.KillEnemyDataIds = list78; num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - 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); + 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); obj61.CompletionQuestVariablesFlags = list79; reference61 = obj61; obj59.Steps = list75; reference59 = obj59; - num++; - ref QuestSequence reference62 = ref span69[num]; + ref QuestSequence reference62 = ref span16[5]; QuestSequence obj62 = new QuestSequence { Sequence = 5 @@ -169145,30 +140351,24 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1016850u, new Vector3(-187.36554f, -34.771328f, -70.42041f), 398) { Fly = true }; obj62.Steps = list80; reference62 = obj62; - num++; - ref QuestSequence reference63 = ref span69[num]; + ref QuestSequence reference63 = ref span16[6]; QuestSequence obj63 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj63.Steps = list81; reference63 = obj63; - num++; - ref QuestSequence reference64 = ref span69[num]; + ref QuestSequence reference64 = ref span16[7]; QuestSequence obj64 = new QuestSequence { Sequence = 7 @@ -169176,26 +140376,21 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj64.Steps = list82; reference64 = obj64; - num++; - ref QuestSequence reference65 = ref span69[num]; + ref QuestSequence reference65 = ref span16[8]; QuestSequence obj65 = 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, 1011928u, new Vector3(73.19751f, -49.19563f, -139.05548f), 398) + 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) { Fly = true }; @@ -169208,16 +140403,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "Censored"; + CollectionsMarshal.AsSpan(list84)[0] = "Censored"; questRoot9.Author = list84; - index = 6; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference66 = ref span85[num]; + num = 6; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span20 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference66 = ref span20[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -169225,9 +140417,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -169246,25 +140436,21 @@ public static class AssemblyQuestLoader }; obj66.Steps = list86; reference66 = obj66; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span20[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj67.Steps = list87; reference67 = obj67; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span20[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -169272,42 +140458,34 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - ref QuestStep reference69 = ref span88[index2]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list88)[0]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(230.88948f, -103.47084f, 588.0345f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + Span span21 = CollectionsMarshal.AsSpan(list89); + span21[0] = 5544u; + span21[1] = 5545u; obj69.KillEnemyDataIds = list89; reference69 = obj69; obj68.Steps = list88; reference68 = obj68; - num++; - ref QuestSequence reference70 = ref span85[num]; + ref QuestSequence reference70 = ref span20[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj70.Steps = list90; reference70 = obj70; - num++; - ref QuestSequence reference71 = ref span85[num]; + ref QuestSequence reference71 = ref span20[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -169315,26 +140493,21 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1016891u, new Vector3(297.2915f, -119.91257f, 681.1168f), 398) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1016891u, new Vector3(297.2915f, -119.91257f, 681.1168f), 398) { Fly = true }; obj71.Steps = list91; reference71 = obj71; - num++; - ref QuestSequence reference72 = ref span85[num]; + ref QuestSequence reference72 = ref span20[5]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine @@ -169348,16 +140521,13 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list93)[0] = "plogon_enjoyer"; questRoot10.Author = list93; - index = 2; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference73 = ref span94[num]; + num = 2; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span22 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference73 = ref span22[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -169365,23 +140535,18 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398); obj73.Steps = list95; reference73 = obj73; - num++; - ref QuestSequence reference74 = ref span94[num]; + ref QuestSequence reference74 = ref span22[1]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -169394,16 +140559,13 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list97)[0] = "plogon_enjoyer"; questRoot11.Author = list97; - index = 3; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference75 = ref span98[num]; + num = 3; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span23 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference75 = ref span23[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -169411,23 +140573,19 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj75.Steps = list99; reference75 = obj75; - num++; - ref QuestSequence reference76 = ref span98[num]; + ref QuestSequence reference76 = ref span23[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference77 = ref span100[num2]; + num2 = 3; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span24 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference77 = ref span24[0]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2006883u, new Vector3(31.418213f, -65.32391f, 111.74182f), 398) { Fly = true, @@ -169436,35 +140594,28 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - index3 = 0; - span101[index3] = 5550u; + CollectionsMarshal.AsSpan(list101)[0] = 5550u; obj77.KillEnemyDataIds = list101; reference77 = obj77; - num2++; - ref QuestStep reference78 = ref span100[num2]; + ref QuestStep reference78 = ref span24[1]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2006882u, new Vector3(307.05725f, -66.54462f, 163.43933f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list102 = new List(index3); - CollectionsMarshal.SetCount(list102, index3); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - span102[num3] = 5550u; + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = 5550u; obj78.KillEnemyDataIds = list102; reference78 = obj78; - num2++; - span100[num2] = new QuestStep(EInteractionType.Interact, 2006881u, new Vector3(352.25452f, -51.07196f, -46.982605f), 398) + span24[2] = new QuestStep(EInteractionType.Interact, 2006881u, new Vector3(352.25452f, -51.07196f, -46.982605f), 398) { Fly = true }; obj76.Steps = list100; reference76 = obj76; - num++; - ref QuestSequence reference79 = ref span98[num]; + ref QuestSequence reference79 = ref span23[2]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -169472,14 +140623,12 @@ public static class AssemblyQuestLoader num2 = 2; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span25 = CollectionsMarshal.AsSpan(list103); + span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - index2++; - span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj79.Steps = list103; reference79 = obj79; questRoot11.QuestSequence = list98; @@ -169489,30 +140638,24 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list104)[0] = "plogon_enjoyer"; questRoot12.Author = list104; - index = 5; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference80 = ref span105[num]; + num = 5; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span26 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference80 = ref span26[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj80.Steps = list106; reference80 = obj80; - num++; - ref QuestSequence reference81 = ref span105[num]; + ref QuestSequence reference81 = ref span26[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -169520,45 +140663,38 @@ public static class AssemblyQuestLoader num2 = 3; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 2006886u, new Vector3(237.65918f, -71.45807f, 99.01575f), 398) + Span span27 = CollectionsMarshal.AsSpan(list107); + span27[0] = new QuestStep(EInteractionType.Interact, 2006886u, new Vector3(237.65918f, -71.45807f, 99.01575f), 398) { Fly = true }; - index2++; - span107[index2] = new QuestStep(EInteractionType.Interact, 2006885u, new Vector3(284.5349f, -67.61273f, 83.878784f), 398) + span27[1] = new QuestStep(EInteractionType.Interact, 2006885u, new Vector3(284.5349f, -67.61273f, 83.878784f), 398) { Fly = true }; - index2++; - span107[index2] = new QuestStep(EInteractionType.Interact, 2006884u, new Vector3(294.94165f, -68.92505f, 129.19812f), 398) + span27[2] = new QuestStep(EInteractionType.Interact, 2006884u, new Vector3(294.94165f, -68.92505f, 129.19812f), 398) { Fly = true }; obj81.Steps = list107; reference81 = obj81; - num++; - ref QuestSequence reference82 = ref span105[num]; + ref QuestSequence reference82 = ref span26[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span108[num2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span28[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj82.Steps = list108; reference82 = obj82; - num++; - ref QuestSequence reference83 = ref span105[num]; + ref QuestSequence reference83 = ref span26[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -169566,37 +140702,32 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398) + Span span29 = CollectionsMarshal.AsSpan(list109); + span29[0] = new QuestStep(EInteractionType.Interact, 1011917u, new Vector3(535.30164f, -51.340645f, 65.293335f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - index2++; - span109[index2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) + span29[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398) { Fly = true }; obj83.Steps = list109; reference83 = obj83; - num++; - ref QuestSequence reference84 = ref span105[num]; + ref QuestSequence reference84 = ref span26[4]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj84.Steps = list110; reference84 = obj84; questRoot12.QuestSequence = list105; @@ -169606,16 +140737,13 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; questRoot13.Author = list111; - index = 6; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference85 = ref span112[num]; + num = 6; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span31 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference85 = ref span31[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -169623,23 +140751,19 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj85.Steps = list113; reference85 = obj85; - num++; - ref QuestSequence reference86 = ref span112[num]; + ref QuestSequence reference86 = ref span31[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 2.5f, Fly = true, @@ -169656,12 +140780,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + span32[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj86.Steps = list114; reference86 = obj86; - num++; - ref QuestSequence reference87 = ref span112[num]; + ref QuestSequence reference87 = ref span31[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -169669,35 +140791,29 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Action, 2006887u, new Vector3(523.4302f, -50.370117f, 90.86743f), 398) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Action, 2006887u, new Vector3(523.4302f, -50.370117f, 90.86743f), 398) { Fly = true, Action = EAction.Fumigate }; obj87.Steps = list115; reference87 = obj87; - num++; - ref QuestSequence reference88 = ref span112[num]; + ref QuestSequence reference88 = ref span31[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Action = EAction.Fumigate }; obj88.Steps = list116; reference88 = obj88; - num++; - ref QuestSequence reference89 = ref span112[num]; + ref QuestSequence reference89 = ref span31[4]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -169705,39 +140821,34 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Action, 2006889u, new Vector3(689.7229f, -52.262207f, 62.088867f), 398) + Span span33 = CollectionsMarshal.AsSpan(list117); + span33[0] = new QuestStep(EInteractionType.Action, 2006889u, new Vector3(689.7229f, -52.262207f, 62.088867f), 398) { Fly = true, Action = EAction.Fumigate }; - index2++; - span117[index2] = new QuestStep(EInteractionType.Action, 2006888u, new Vector3(586.1753f, -37.979797f, 257.3739f), 398) + span33[1] = new QuestStep(EInteractionType.Action, 2006888u, new Vector3(586.1753f, -37.979797f, 257.3739f), 398) { Fly = true, Action = EAction.Fumigate }; obj89.Steps = list117; reference89 = obj89; - num++; - ref QuestSequence reference90 = ref span112[num]; + ref QuestSequence reference90 = ref span31[5]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - num2++; - span118[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj90.Steps = list118; reference90 = obj90; questRoot13.QuestSequence = list112; @@ -169747,16 +140858,13 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list119)[0] = "plogon_enjoyer"; questRoot14.Author = list119; - index = 3; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference91 = ref span120[num]; + num = 3; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span35 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference91 = ref span35[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -169764,23 +140872,19 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj91.Steps = list121; reference91 = obj91; - num++; - ref QuestSequence reference92 = ref span120[num]; + ref QuestSequence reference92 = ref span35[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list122 = new List(index2); - CollectionsMarshal.SetCount(list122, index2); - Span span122 = CollectionsMarshal.AsSpan(list122); - num2 = 0; - ref QuestStep reference93 = ref span122[num2]; + num2 = 3; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + Span span36 = CollectionsMarshal.AsSpan(list122); + ref QuestStep reference93 = ref span36[0]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, 2006872u, new Vector3(333.82153f, -47.53192f, -331.53284f), 398) { Fly = true, @@ -169789,35 +140893,28 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - index3 = 0; - span123[index3] = 5546u; + CollectionsMarshal.AsSpan(list123)[0] = 5546u; obj93.KillEnemyDataIds = list123; reference93 = obj93; - num2++; - span122[num2] = new QuestStep(EInteractionType.Interact, 2006871u, new Vector3(559.71606f, -41.24518f, -333.1808f), 398) + span36[1] = new QuestStep(EInteractionType.Interact, 2006871u, new Vector3(559.71606f, -41.24518f, -333.1808f), 398) { Fly = true }; - num2++; - ref QuestStep reference94 = ref span122[num2]; + ref QuestStep reference94 = ref span36[2]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, 2006873u, new Vector3(707.7285f, -50.095398f, -151.47632f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list124 = new List(index3); - CollectionsMarshal.SetCount(list124, index3); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - span124[num3] = 5546u; + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = 5546u; obj94.KillEnemyDataIds = list124; reference94 = obj94; obj92.Steps = list122; reference92 = obj92; - num++; - ref QuestSequence reference95 = ref span120[num]; + ref QuestSequence reference95 = ref span35[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -169825,9 +140922,8 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span37 = CollectionsMarshal.AsSpan(list125); + span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -169844,8 +140940,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj95.Steps = list125; reference95 = obj95; questRoot14.QuestSequence = list120; @@ -169855,30 +140950,24 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list126)[0] = "plogon_enjoyer"; questRoot15.Author = list126; - index = 3; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference96 = ref span127[num]; + num = 3; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span38 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference96 = ref span38[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj96.Steps = list128; reference96 = obj96; - num++; - ref QuestSequence reference97 = ref span127[num]; + ref QuestSequence reference97 = ref span38[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -169886,51 +140975,43 @@ public static class AssemblyQuestLoader num2 = 6; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006897u, new Vector3(88.48706f, -123.43024f, 561.7914f), 398) + Span span39 = CollectionsMarshal.AsSpan(list129); + span39[0] = new QuestStep(EInteractionType.Interact, 2006897u, new Vector3(88.48706f, -123.43024f, 561.7914f), 398) { Fly = true }; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006899u, new Vector3(137.1023f, -120.01227f, 586.08374f), 398) + span39[1] = new QuestStep(EInteractionType.Interact, 2006899u, new Vector3(137.1023f, -120.01227f, 586.08374f), 398) { Fly = true }; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006898u, new Vector3(111.86377f, -119.035645f, 617.4868f), 398) + span39[2] = new QuestStep(EInteractionType.Interact, 2006898u, new Vector3(111.86377f, -119.035645f, 617.4868f), 398) { Fly = true }; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006894u, new Vector3(223.22424f, -123.6134f, 697.6272f), 398) + span39[3] = new QuestStep(EInteractionType.Interact, 2006894u, new Vector3(223.22424f, -123.6134f, 697.6272f), 398) { Fly = true }; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006892u, new Vector3(209.1554f, -123.12512f, 767.91016f), 398) + span39[4] = new QuestStep(EInteractionType.Interact, 2006892u, new Vector3(209.1554f, -123.12512f, 767.91016f), 398) { Fly = true }; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 2006893u, new Vector3(291.03528f, -119.40192f, 664.6676f), 398) + span39[5] = new QuestStep(EInteractionType.Interact, 2006893u, new Vector3(291.03528f, -119.40192f, 664.6676f), 398) { Fly = true }; obj97.Steps = list129; reference97 = obj97; - num++; - ref QuestSequence reference98 = ref span127[num]; + ref QuestSequence reference98 = ref span38[2]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -169947,8 +141028,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj98.Steps = list130; reference98 = obj98; questRoot15.QuestSequence = list127; @@ -169958,16 +141038,13 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list131)[0] = "plogon_enjoyer"; questRoot16.Author = list131; - index = 3; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference99 = ref span132[num]; + num = 3; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span41 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference99 = ref span41[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -169975,55 +141052,45 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj99.Steps = list133; reference99 = obj99; - num++; - ref QuestSequence reference100 = ref span132[num]; + ref QuestSequence reference100 = ref span41[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span134[num2] = new QuestStep(EInteractionType.Interact, 2006904u, new Vector3(52.68933f, -100.572266f, 317.1283f), 398) + span42[1] = new QuestStep(EInteractionType.Interact, 2006904u, new Vector3(52.68933f, -100.572266f, 317.1283f), 398) { Mount = true }; - num2++; - span134[num2] = new QuestStep(EInteractionType.Interact, 2006905u, new Vector3(6.301941f, -100.206055f, 351.43042f), 398) + span42[2] = new QuestStep(EInteractionType.Interact, 2006905u, new Vector3(6.301941f, -100.206055f, 351.43042f), 398) { Mount = true }; - num2++; - span134[num2] = new QuestStep(EInteractionType.Interact, 2006902u, new Vector3(-317.49445f, -80.55243f, 632.59326f), 398) + span42[3] = new QuestStep(EInteractionType.Interact, 2006902u, new Vector3(-317.49445f, -80.55243f, 632.59326f), 398) { Fly = true }; - num2++; - span134[num2] = new QuestStep(EInteractionType.Interact, 2006901u, new Vector3(-336.96503f, -80.55243f, 655.08496f), 398) + span42[4] = new QuestStep(EInteractionType.Interact, 2006901u, new Vector3(-336.96503f, -80.55243f, 655.08496f), 398) { Mount = true }; - num2++; - span134[num2] = new QuestStep(EInteractionType.Interact, 2006900u, new Vector3(-379.75128f, -75.21173f, 669.2759f), 398) + span42[5] = new QuestStep(EInteractionType.Interact, 2006900u, new Vector3(-379.75128f, -75.21173f, 669.2759f), 398) { Fly = true }; obj100.Steps = list134; reference100 = obj100; - num++; - ref QuestSequence reference101 = ref span132[num]; + ref QuestSequence reference101 = ref span41[2]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -170031,9 +141098,8 @@ public static class AssemblyQuestLoader num2 = 2; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span43 = CollectionsMarshal.AsSpan(list135); + span43[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -170050,8 +141116,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj101.Steps = list135; reference101 = obj101; questRoot16.QuestSequence = list132; @@ -170061,30 +141126,24 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list136)[0] = "plogon_enjoyer"; questRoot17.Author = list136; - index = 3; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference102 = ref span137[num]; + num = 3; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span44 = CollectionsMarshal.AsSpan(list137); + ref QuestSequence reference102 = ref span44[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj102.Steps = list138; reference102 = obj102; - num++; - ref QuestSequence reference103 = ref span137[num]; + ref QuestSequence reference103 = ref span44[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -170092,9 +141151,8 @@ public static class AssemblyQuestLoader num2 = 4; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - ref QuestStep reference104 = ref span139[index2]; + Span span45 = CollectionsMarshal.AsSpan(list139); + ref QuestStep reference104 = ref span45[0]; QuestStep obj104 = new QuestStep(EInteractionType.Combat, 2006909u, new Vector3(-124.37634f, -86.07617f, 763.6987f), 398) { Fly = true, @@ -170103,50 +141161,41 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span140 = CollectionsMarshal.AsSpan(list140); - index3 = 0; - span140[index3] = 5548u; + CollectionsMarshal.AsSpan(list140)[0] = 5548u; obj104.KillEnemyDataIds = list140; reference104 = obj104; - index2++; - span139[index2] = new QuestStep(EInteractionType.Interact, 2006906u, new Vector3(-178.51532f, -86.167725f, 775.845f), 398) + span45[1] = new QuestStep(EInteractionType.Interact, 2006906u, new Vector3(-178.51532f, -86.167725f, 775.845f), 398) { Fly = true }; - index2++; - ref QuestStep reference105 = ref span139[index2]; + ref QuestStep reference105 = ref span45[2]; QuestStep obj105 = new QuestStep(EInteractionType.Combat, 2006908u, new Vector3(-305.745f, -68.13159f, 812.7717f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list141 = new List(index3); - CollectionsMarshal.SetCount(list141, index3); - Span span141 = CollectionsMarshal.AsSpan(list141); - num3 = 0; - span141[num3] = 5548u; + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + CollectionsMarshal.AsSpan(list141)[0] = 5548u; obj105.KillEnemyDataIds = list141; reference105 = obj105; - index2++; - span139[index2] = new QuestStep(EInteractionType.Interact, 2006907u, new Vector3(-303.36462f, -80.52191f, 734.15735f), 398) + span45[3] = new QuestStep(EInteractionType.Interact, 2006907u, new Vector3(-303.36462f, -80.52191f, 734.15735f), 398) { Fly = true }; obj103.Steps = list139; reference103 = obj103; - num++; - ref QuestSequence reference106 = ref span137[num]; + ref QuestSequence reference106 = ref span44[2]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -170163,8 +141212,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj106.Steps = list142; reference106 = obj106; questRoot17.QuestSequence = list137; @@ -170174,16 +141222,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list143)[0] = "plogon_enjoyer"; questRoot18.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]; + num = 4; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span47 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference107 = ref span47[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -170191,40 +141236,33 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj107.Steps = list145; reference107 = obj107; - num++; - ref QuestSequence reference108 = ref span144[num]; + ref QuestSequence reference108 = ref span47[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span146[num2] = new QuestStep(EInteractionType.Interact, 2006914u, new Vector3(595.3917f, -20.187744f, -547.4785f), 398) + span48[1] = new QuestStep(EInteractionType.Interact, 2006914u, new Vector3(595.3917f, -20.187744f, -547.4785f), 398) { Fly = true }; - num2++; - span146[num2] = new QuestStep(EInteractionType.Interact, 2006912u, new Vector3(639.8259f, -19.60791f, -588.098f), 398) + span48[2] = new QuestStep(EInteractionType.Interact, 2006912u, new Vector3(639.8259f, -19.60791f, -588.098f), 398) { Fly = true }; obj108.Steps = list146; reference108 = obj108; - num++; - ref QuestSequence reference109 = ref span144[num]; + ref QuestSequence reference109 = ref span47[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -170232,29 +141270,24 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span49 = CollectionsMarshal.AsSpan(list147); + span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - index2++; - span147[index2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span49[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj109.Steps = list147; reference109 = obj109; - num++; - ref QuestSequence reference110 = ref span144[num]; + ref QuestSequence reference110 = ref span47[3]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj110.Steps = list148; reference110 = obj110; questRoot18.QuestSequence = list144; @@ -170264,16 +141297,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list149)[0] = "AnimaMachinae"; questRoot19.Author = list149; - index = 6; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference111 = ref span150[num]; + num = 6; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span50 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference111 = ref span50[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -170281,23 +141311,19 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj111.Steps = list151; reference111 = obj111; - num++; - ref QuestSequence reference112 = ref span150[num]; + ref QuestSequence reference112 = ref span50[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -170314,12 +141340,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span152[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + span51[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj112.Steps = list152; reference112 = obj112; - num++; - ref QuestSequence reference113 = ref span150[num]; + ref QuestSequence reference113 = ref span50[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -170327,35 +141351,29 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Action, 2006915u, new Vector3(96.45227f, -66.2395f, 616.6017f), 398) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Action, 2006915u, new Vector3(96.45227f, -66.2395f, 616.6017f), 398) { Fly = true, Action = EAction.Fumigate }; obj113.Steps = list153; reference113 = obj113; - num++; - ref QuestSequence reference114 = ref span150[num]; + ref QuestSequence reference114 = ref span50[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Action = EAction.Fumigate }; obj114.Steps = list154; reference114 = obj114; - num++; - ref QuestSequence reference115 = ref span150[num]; + ref QuestSequence reference115 = ref span50[4]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -170363,33 +141381,28 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Action, 2006917u, new Vector3(-625.0859f, -49.94281f, 491.02002f), 398) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Action, 2006917u, new Vector3(-625.0859f, -49.94281f, 491.02002f), 398) { Fly = true, Action = EAction.Fumigate }; obj115.Steps = list155; reference115 = obj115; - num++; - ref QuestSequence reference116 = ref span150[num]; + ref QuestSequence reference116 = ref span50[5]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - num2++; - span156[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span52[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj116.Steps = list156; reference116 = obj116; questRoot19.QuestSequence = list150; @@ -170399,16 +141412,13 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list157)[0] = "AnimaMachinae"; questRoot20.Author = list157; - index = 5; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference117 = ref span158[num]; + num = 5; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span53 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference117 = ref span53[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -170416,34 +141426,28 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj117.Steps = list159; reference117 = obj117; - num++; - ref QuestSequence reference118 = ref span158[num]; + ref QuestSequence reference118 = ref span53[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - num2++; - span160[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + span54[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj118.Steps = list160; reference118 = obj118; - num++; - ref QuestSequence reference119 = ref span158[num]; + ref QuestSequence reference119 = ref span53[2]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -170451,9 +141455,8 @@ public static class AssemblyQuestLoader num2 = 3; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - ref QuestStep reference120 = ref span161[index2]; + Span span55 = CollectionsMarshal.AsSpan(list161); + ref QuestStep reference120 = ref span55[0]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, 2006918u, new Vector3(475.69995f, -44.174927f, -231.46417f), 398) { Fly = true, @@ -170464,30 +141467,21 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span162 = CollectionsMarshal.AsSpan(list162); - index3 = 0; - span162[index3] = 71224u; + CollectionsMarshal.AsSpan(list162)[0] = 71224u; obj120.KillEnemyDataIds = list162; - 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); + 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); obj120.CompletionQuestVariablesFlags = list163; reference120 = obj120; - index2++; - ref QuestStep reference121 = ref span161[index2]; + ref QuestStep reference121 = ref span55[1]; QuestStep obj121 = new QuestStep(EInteractionType.Combat, 2006920u, new Vector3(329.4879f, -45.487183f, -262.13477f), 398) { Fly = true, @@ -170498,30 +141492,21 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span164 = CollectionsMarshal.AsSpan(list164); - index3 = 0; - span164[index3] = 5548u; + CollectionsMarshal.AsSpan(list164)[0] = 5548u; obj121.KillEnemyDataIds = list164; - 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); + 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); obj121.CompletionQuestVariablesFlags = list165; reference121 = obj121; - index2++; - ref QuestStep reference122 = ref span161[index2]; + ref QuestStep reference122 = ref span55[2]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2006919u, new Vector3(535.45435f, -32.39496f, -410.60504f), 398) { Fly = true, @@ -170532,36 +141517,30 @@ public static class AssemblyQuestLoader num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - Span span166 = CollectionsMarshal.AsSpan(list166); - index3 = 0; - span166[index3] = 71224u; + CollectionsMarshal.AsSpan(list166)[0] = 71224u; obj122.KillEnemyDataIds = list166; reference122 = obj122; obj119.Steps = list161; reference119 = obj119; - num++; - ref QuestSequence reference123 = ref span158[num]; + ref QuestSequence reference123 = ref span53[3]; QuestSequence obj123 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - num2++; - span167[num2] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); + span58[1] = new QuestStep(EInteractionType.Interact, 1011922u, new Vector3(448.56934f, -51.141407f, 108.93408f), 398); obj123.Steps = list167; reference123 = obj123; - num++; - ref QuestSequence reference124 = ref span158[num]; + ref QuestSequence reference124 = ref span53[4]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -170569,9 +141548,8 @@ public static class AssemblyQuestLoader num2 = 2; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span59 = CollectionsMarshal.AsSpan(list168); + span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -170588,8 +141566,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span59[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj124.Steps = list168; reference124 = obj124; questRoot20.QuestSequence = list158; @@ -170599,30 +141576,24 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list169)[0] = "AnimaMachinae"; questRoot21.Author = list169; - index = 7; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference125 = ref span170[num]; + num = 7; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span60 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference125 = ref span60[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj125.Steps = list171; reference125 = obj125; - num++; - ref QuestSequence reference126 = ref span170[num]; + ref QuestSequence reference126 = ref span60[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -170630,31 +141601,25 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj126.Steps = list172; reference126 = obj126; - num++; - ref QuestSequence reference127 = ref span170[num]; + ref QuestSequence reference127 = ref span60[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj127.Steps = list173; reference127 = obj127; - num++; - ref QuestSequence reference128 = ref span170[num]; + ref QuestSequence reference128 = ref span60[3]; QuestSequence obj128 = new QuestSequence { Sequence = 3 @@ -170662,27 +141627,21 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); obj128.Steps = list174; reference128 = obj128; - num++; - ref QuestSequence reference129 = ref span170[num]; + ref QuestSequence reference129 = ref span60[4]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj129.Steps = list175; reference129 = obj129; - num++; - ref QuestSequence reference130 = ref span170[num]; + ref QuestSequence reference130 = ref span60[5]; QuestSequence obj130 = new QuestSequence { Sequence = 5 @@ -170690,23 +141649,19 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1016859u, new Vector3(-566.6743f, -97.34781f, 481.01013f), 398); obj130.Steps = list176; reference130 = obj130; - num++; - ref QuestSequence reference131 = ref span170[num]; + ref QuestSequence reference131 = ref span60[6]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -170723,8 +141678,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span177[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj131.Steps = list177; reference131 = obj131; questRoot21.QuestSequence = list170; @@ -170734,16 +141688,13 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; questRoot22.Author = list178; - index = 5; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference132 = ref span179[num]; + num = 5; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span62 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference132 = ref span62[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -170751,23 +141702,19 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj132.Steps = list180; reference132 = obj132; - num++; - ref QuestSequence reference133 = ref span179[num]; + ref QuestSequence reference133 = ref span62[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -170784,12 +141731,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span181[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + span63[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj133.Steps = list181; reference133 = obj133; - num++; - ref QuestSequence reference134 = ref span179[num]; + ref QuestSequence reference134 = ref span62[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -170797,52 +141742,41 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-190.26477f, -104.73892f, 512.932f), 398) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-190.26477f, -104.73892f, 512.932f), 398) { Fly = true, Action = EAction.Fumigate }; obj134.Steps = list182; reference134 = obj134; - num++; - ref QuestSequence reference135 = ref span179[num]; + ref QuestSequence reference135 = ref span62[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list183 = new List(index2); - CollectionsMarshal.SetCount(list183, index2); - Span span183 = CollectionsMarshal.AsSpan(list183); - num2 = 0; - ref QuestStep reference136 = ref span183[num2]; + num2 = 2; + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + Span span64 = CollectionsMarshal.AsSpan(list183); + ref QuestStep reference136 = ref span64[0]; QuestStep obj136 = new QuestStep(EInteractionType.Action, null, new Vector3(-13.443237f, -129.2623f, 712.21484f), 398) { Fly = true, Action = EAction.Fumigate }; - 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); + 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); obj136.CompletionQuestVariablesFlags = list184; reference136 = obj136; - num2++; - ref QuestStep reference137 = ref span183[num2]; + ref QuestStep reference137 = ref span64[1]; QuestStep obj137 = new QuestStep(EInteractionType.Action, null, new Vector3(45.151367f, -132.12938f, 685.7556f), 398) { Fly = true, @@ -170851,25 +141785,18 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - 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); + 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); obj137.CompletionQuestVariablesFlags = list185; reference137 = obj137; obj135.Steps = list183; reference135 = obj135; - num++; - ref QuestSequence reference138 = ref span179[num]; + ref QuestSequence reference138 = ref span62[4]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -170877,15 +141804,13 @@ public static class AssemblyQuestLoader num2 = 2; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span67 = CollectionsMarshal.AsSpan(list186); + span67[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - index2++; - span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj138.Steps = list186; reference138 = obj138; questRoot22.QuestSequence = list179; @@ -170895,30 +141820,24 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list187)[0] = "plogon_enjoyer"; questRoot23.Author = list187; - index = 4; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference139 = ref span188[num]; + num = 4; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span68 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference139 = ref span68[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj139.Steps = list189; reference139 = obj139; - num++; - ref QuestSequence reference140 = ref span188[num]; + ref QuestSequence reference140 = ref span68[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -170926,44 +141845,36 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 2006930u, new Vector3(510.3684f, -26.077698f, -592.3705f), 398) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 2006930u, new Vector3(510.3684f, -26.077698f, -592.3705f), 398) { Fly = true }; obj140.Steps = list190; reference140 = obj140; - num++; - ref QuestSequence reference141 = ref span188[num]; + ref QuestSequence reference141 = ref span68[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list191 = new List(index2); - CollectionsMarshal.SetCount(list191, index2); - Span span191 = CollectionsMarshal.AsSpan(list191); - num2 = 0; - ref QuestStep reference142 = ref span191[num2]; + num2 = 1; + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list191)[0]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2006931u, new Vector3(358.81592f, -51.98755f, -137.89581f), 398) { Fly = true, ItemId = 2001963u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list192 = new List(index3); - CollectionsMarshal.SetCount(list192, index3); - Span span192 = CollectionsMarshal.AsSpan(list192); - num3 = 0; - span192[num3] = 5552u; + num3 = 1; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + CollectionsMarshal.AsSpan(list192)[0] = 5552u; obj142.KillEnemyDataIds = list192; reference142 = obj142; obj141.Steps = list191; reference141 = obj141; - num++; - ref QuestSequence reference143 = ref span188[num]; + ref QuestSequence reference143 = ref span68[3]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -170971,14 +141882,12 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span69 = CollectionsMarshal.AsSpan(list193); + span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - index2++; - span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj143.Steps = list193; reference143 = obj143; questRoot23.QuestSequence = list188; @@ -170988,30 +141897,24 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list194)[0] = "plogon_enjoyer"; questRoot24.Author = list194; - index = 4; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference144 = ref span195[num]; + num = 4; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span70 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference144 = ref span70[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj144.Steps = list196; reference144 = obj144; - num++; - ref QuestSequence reference145 = ref span195[num]; + ref QuestSequence reference145 = ref span70[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -171019,51 +141922,43 @@ public static class AssemblyQuestLoader num2 = 6; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 2006937u, new Vector3(-42.282776f, -32.73065f, 183.30652f), 398) + Span span71 = CollectionsMarshal.AsSpan(list197); + span71[0] = new QuestStep(EInteractionType.Interact, 2006937u, new Vector3(-42.282776f, -32.73065f, 183.30652f), 398) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 2006935u, new Vector3(-46.189087f, -47.257202f, 241.93176f), 398) + span71[1] = new QuestStep(EInteractionType.Interact, 2006935u, new Vector3(-46.189087f, -47.257202f, 241.93176f), 398) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 2006936u, new Vector3(-83.57367f, -48.17273f, 231.89136f), 398) + span71[2] = new QuestStep(EInteractionType.Interact, 2006936u, new Vector3(-83.57367f, -48.17273f, 231.89136f), 398) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 2006934u, new Vector3(-105.02789f, -69.68799f, 350.63696f), 398) + span71[3] = new QuestStep(EInteractionType.Interact, 2006934u, new Vector3(-105.02789f, -69.68799f, 350.63696f), 398) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 2006933u, new Vector3(-80.03363f, -71.67163f, 412.46655f), 398) + span71[4] = new QuestStep(EInteractionType.Interact, 2006933u, new Vector3(-80.03363f, -71.67163f, 412.46655f), 398) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 2006932u, new Vector3(-155.41315f, -71.122375f, 387.28918f), 398) + span71[5] = new QuestStep(EInteractionType.Interact, 2006932u, new Vector3(-155.41315f, -71.122375f, 387.28918f), 398) { Fly = true }; obj145.Steps = list197; reference145 = obj145; - num++; - ref QuestSequence reference146 = ref span195[num]; + ref QuestSequence reference146 = ref span70[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -171080,12 +141975,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span198[num2] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span72[1] = new QuestStep(EInteractionType.Interact, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj146.Steps = list198; reference146 = obj146; - num++; - ref QuestSequence reference147 = ref span195[num]; + ref QuestSequence reference147 = ref span70[3]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -171093,9 +141986,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016863u, new Vector3(67.948364f, -48.43746f, -168.23071f), 398) + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016863u, new Vector3(67.948364f, -48.43746f, -168.23071f), 398) { Fly = true }; @@ -171108,30 +141999,24 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; questRoot25.Author = list200; - index = 5; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestSequence reference148 = ref span201[num]; + num = 5; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span73 = CollectionsMarshal.AsSpan(list201); + ref QuestSequence reference148 = ref span73[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj148.Steps = list202; reference148 = obj148; - num++; - ref QuestSequence reference149 = ref span201[num]; + ref QuestSequence reference149 = ref span73[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -171139,9 +142024,8 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - ref QuestStep reference150 = ref span203[index2]; + Span span74 = CollectionsMarshal.AsSpan(list203); + ref QuestStep reference150 = ref span74[0]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1016865u, new Vector3(-272.23627f, -35.408485f, 219.07373f), 398) { Fly = true, @@ -171150,59 +142034,43 @@ public static class AssemblyQuestLoader num3 = 6; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - 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); + 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); obj150.CompletionQuestVariablesFlags = list204; reference150 = obj150; - index2++; - ref QuestStep reference151 = ref span203[index2]; + ref QuestStep reference151 = ref span74[1]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1016864u, new Vector3(-452.32324f, -35.352047f, 174.30371f), 398) { Fly = true }; - 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); + 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); obj151.CompletionQuestVariablesFlags = list205; reference151 = obj151; obj149.Steps = list203; reference149 = obj149; - num++; - ref QuestSequence reference152 = ref span201[num]; + ref QuestSequence reference152 = ref span73[2]; QuestSequence obj152 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list206 = new List(index2); - CollectionsMarshal.SetCount(list206, index2); - Span span206 = CollectionsMarshal.AsSpan(list206); - num2 = 0; - ref QuestStep reference153 = ref span206[num2]; + num2 = 1; + List list206 = new List(num2); + CollectionsMarshal.SetCount(list206, num2); + ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list206)[0]; QuestStep obj153 = new QuestStep(EInteractionType.Combat, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398) { Fly = true, @@ -171211,15 +142079,12 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span207 = CollectionsMarshal.AsSpan(list207); - index3 = 0; - span207[index3] = 5551u; + CollectionsMarshal.AsSpan(list207)[0] = 5551u; obj153.KillEnemyDataIds = list207; reference153 = obj153; obj152.Steps = list206; reference152 = obj152; - num++; - ref QuestSequence reference154 = ref span201[num]; + ref QuestSequence reference154 = ref span73[3]; QuestSequence obj154 = new QuestSequence { Sequence = 3 @@ -171227,28 +142092,23 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.Interact, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398); + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1016866u, new Vector3(-397.05505f, -34.192406f, 243.12195f), 398); obj154.Steps = list208; reference154 = obj154; - num++; - ref QuestSequence reference155 = ref span201[num]; + ref QuestSequence reference155 = ref span73[4]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj155.Steps = list209; reference155 = obj155; questRoot25.QuestSequence = list201; @@ -171258,16 +142118,13 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list210)[0] = "plogon_enjoyer"; questRoot26.Author = list210; - index = 4; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference156 = ref span211[num]; + num = 4; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span78 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference156 = ref span78[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -171275,23 +142132,19 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj156.Steps = list212; reference156 = obj156; - num++; - ref QuestSequence reference157 = ref span211[num]; + ref QuestSequence reference157 = ref span78[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 3f, Fly = true, @@ -171308,12 +142161,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span213[num2] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); + span79[1] = new QuestStep(EInteractionType.Interact, 1017031u, new Vector3(74.20459f, -48.533592f, -171.12994f), 398); obj157.Steps = list213; reference157 = obj157; - num++; - ref QuestSequence reference158 = ref span211[num]; + ref QuestSequence reference158 = ref span78[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -171321,34 +142172,26 @@ public static class AssemblyQuestLoader num2 = 3; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - ref QuestStep reference159 = ref span214[index2]; + Span span80 = CollectionsMarshal.AsSpan(list214); + ref QuestStep reference159 = ref span80[0]; QuestStep obj159 = new QuestStep(EInteractionType.Action, 2006938u, new Vector3(-178.88159f, 179.88855f, 4.257263f), 398) { Fly = true, Action = EAction.Fumigate }; - 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); + 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); obj159.CompletionQuestVariablesFlags = list215; reference159 = obj159; - index2++; - ref QuestStep reference160 = ref span214[index2]; + ref QuestStep reference160 = ref span80[1]; QuestStep obj160 = new QuestStep(EInteractionType.Action, 2006940u, new Vector3(-311.8181f, -29.495728f, 143.63306f), 398) { Fly = true, @@ -171357,66 +142200,50 @@ public static class AssemblyQuestLoader num3 = 6; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - 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); + 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); obj160.CompletionQuestVariablesFlags = list216; reference160 = obj160; - index2++; - ref QuestStep reference161 = ref span214[index2]; + ref QuestStep reference161 = ref span80[2]; QuestStep obj161 = new QuestStep(EInteractionType.Action, 2006939u, new Vector3(-313.80182f, -29.495728f, 102.098145f), 398) { Fly = true, Action = EAction.Fumigate }; - 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); + 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); obj161.CompletionQuestVariablesFlags = list217; reference161 = obj161; obj158.Steps = list214; reference158 = obj158; - num++; - ref QuestSequence reference162 = ref span211[num]; + ref QuestSequence reference162 = ref span78[3]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; - num2++; - span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj162.Steps = list218; reference162 = obj162; questRoot26.QuestSequence = list211; @@ -171426,16 +142253,13 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list219)[0] = "plogon_enjoyer"; questRoot27.Author = list219; - index = 5; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference163 = ref span220[num]; + num = 5; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span85 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference163 = ref span85[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -171443,23 +142267,19 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj163.Steps = list221; reference163 = obj163; - num++; - ref QuestSequence reference164 = ref span220[num]; + ref QuestSequence reference164 = ref span85[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, ChatMessage = new ChatMessage @@ -171467,8 +142287,7 @@ public static class AssemblyQuestLoader Key = "TEXT_BANGNA602_02277_SYSTEM_000_012" } }; - num2++; - span222[num2] = new QuestStep(EInteractionType.Say, 1016871u, new Vector3(-113.38989f, -34.45324f, -206.65302f), 398) + span86[1] = new QuestStep(EInteractionType.Say, 1016871u, new Vector3(-113.38989f, -34.45324f, -206.65302f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -171476,8 +142295,7 @@ public static class AssemblyQuestLoader Key = "TEXT_BANGNA602_02277_SYSTEM_000_012" } }; - num2++; - span222[num2] = new QuestStep(EInteractionType.Say, 1016873u, new Vector3(-178.17963f, -35.40849f, -80.094604f), 398) + span86[2] = new QuestStep(EInteractionType.Say, 1016873u, new Vector3(-178.17963f, -35.40849f, -80.094604f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -171487,8 +142305,7 @@ public static class AssemblyQuestLoader }; obj164.Steps = list222; reference164 = obj164; - num++; - ref QuestSequence reference165 = ref span220[num]; + ref QuestSequence reference165 = ref span85[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -171496,9 +142313,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Say, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Say, 1016874u, new Vector3(-399.25232f, 96.070595f, -43.01526f), 398) { Fly = true, ChatMessage = new ChatMessage @@ -171508,22 +142323,18 @@ public static class AssemblyQuestLoader }; obj165.Steps = list223; reference165 = obj165; - num++; - ref QuestSequence reference166 = ref span220[num]; + ref QuestSequence reference166 = ref span85[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj166.Steps = list224; reference166 = obj166; - num++; - ref QuestSequence reference167 = ref span220[num]; + ref QuestSequence reference167 = ref span85[4]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -171531,14 +142342,12 @@ public static class AssemblyQuestLoader num2 = 2; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span87 = CollectionsMarshal.AsSpan(list225); + span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true }; - index2++; - span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj167.Steps = list225; reference167 = obj167; questRoot27.QuestSequence = list220; @@ -171548,30 +142357,24 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - Span span226 = CollectionsMarshal.AsSpan(list226); - index = 0; - span226[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list226)[0] = "plogon_enjoyer"; questRoot28.Author = list226; - index = 7; - List list227 = new List(index); - CollectionsMarshal.SetCount(list227, index); - Span span227 = CollectionsMarshal.AsSpan(list227); - num = 0; - ref QuestSequence reference168 = ref span227[num]; + num = 7; + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span88 = CollectionsMarshal.AsSpan(list227); + ref QuestSequence reference168 = ref span88[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj168.Steps = list228; reference168 = obj168; - num++; - ref QuestSequence reference169 = ref span227[num]; + ref QuestSequence reference169 = ref span88[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 @@ -171579,33 +142382,27 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj169.Steps = list229; reference169 = obj169; - num++; - ref QuestSequence reference170 = ref span227[num]; + ref QuestSequence reference170 = ref span88[2]; QuestSequence obj170 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj170.Steps = list230; reference170 = obj170; - num++; - ref QuestSequence reference171 = ref span227[num]; + ref QuestSequence reference171 = ref span88[3]; QuestSequence obj171 = new QuestSequence { Sequence = 3 @@ -171613,33 +142410,27 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Interact, 1016877u, new Vector3(212.23767f, 52.205494f, -777.676f), 398) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1016877u, new Vector3(212.23767f, 52.205494f, -777.676f), 398) { Fly = true }; obj171.Steps = list231; reference171 = obj171; - num++; - ref QuestSequence reference172 = ref span227[num]; + ref QuestSequence reference172 = ref span88[4]; QuestSequence obj172 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj172.Steps = list232; reference172 = obj172; - num++; - ref QuestSequence reference173 = ref span227[num]; + ref QuestSequence reference173 = ref span88[5]; QuestSequence obj173 = new QuestSequence { Sequence = 5 @@ -171647,31 +142438,26 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1016875u, new Vector3(-274.09784f, -22.971008f, 22.812195f), 398) { AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj173.Steps = list233; reference173 = obj173; - num++; - ref QuestSequence reference174 = ref span227[num]; + ref QuestSequence reference174 = ref span88[6]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span89[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj174.Steps = list234; reference174 = obj174; questRoot28.QuestSequence = list227; @@ -171681,16 +142467,13 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - Span span235 = CollectionsMarshal.AsSpan(list235); - index = 0; - span235[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list235)[0] = "plogon_enjoyer"; questRoot29.Author = list235; - index = 3; - List list236 = new List(index); - CollectionsMarshal.SetCount(list236, index); - Span span236 = CollectionsMarshal.AsSpan(list236); - num = 0; - ref QuestSequence reference175 = ref span236[num]; + num = 3; + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + Span span90 = CollectionsMarshal.AsSpan(list236); + ref QuestSequence reference175 = ref span90[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -171698,28 +142481,23 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj175.Steps = list237; reference175 = obj175; - num++; - ref QuestSequence reference176 = ref span236[num]; + ref QuestSequence reference176 = ref span90[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference177 = ref span238[num2]; + ref QuestStep reference177 = ref span91[1]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 2006947u, new Vector3(205.98145f, -109.544556f, 389.7306f), 398) { Fly = true, @@ -171728,35 +142506,28 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - index3 = 0; - span239[index3] = 5549u; + CollectionsMarshal.AsSpan(list239)[0] = 5549u; obj177.KillEnemyDataIds = list239; reference177 = obj177; - num2++; - ref QuestStep reference178 = ref span238[num2]; + ref QuestStep reference178 = ref span91[2]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, 2006948u, new Vector3(154.43652f, -112.50476f, 445.15137f), 398) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list240 = new List(index3); - CollectionsMarshal.SetCount(list240, index3); - Span span240 = CollectionsMarshal.AsSpan(list240); - num3 = 0; - span240[num3] = 5549u; + num3 = 1; + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + CollectionsMarshal.AsSpan(list240)[0] = 5549u; obj178.KillEnemyDataIds = list240; reference178 = obj178; - num2++; - span238[num2] = new QuestStep(EInteractionType.Interact, 2006946u, new Vector3(153.0022f, -86.289795f, 418.44812f), 398) + span91[3] = new QuestStep(EInteractionType.Interact, 2006946u, new Vector3(153.0022f, -86.289795f, 418.44812f), 398) { Fly = true }; obj176.Steps = list238; reference176 = obj176; - num++; - ref QuestSequence reference179 = ref span236[num]; + ref QuestSequence reference179 = ref span90[2]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -171764,9 +142535,8 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) + Span span92 = CollectionsMarshal.AsSpan(list241); + span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.39701f, -48.000008f, -172.36507f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine, @@ -171783,8 +142553,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj179.Steps = list241; reference179 = obj179; questRoot29.QuestSequence = list236; @@ -171794,30 +142563,24 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list242)[0] = "plogon_enjoyer"; questRoot30.Author = list242; - index = 7; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference180 = ref span243[num]; + num = 7; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span93 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference180 = ref span93[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj180.Steps = list244; reference180 = obj180; - num++; - ref QuestSequence reference181 = ref span243[num]; + ref QuestSequence reference181 = ref span93[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -171825,35 +142588,29 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj181.Steps = list245; reference181 = obj181; - num++; - ref QuestSequence reference182 = ref span243[num]; + ref QuestSequence reference182 = ref span93[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Land = true }; obj182.Steps = list246; reference182 = obj182; - num++; - ref QuestSequence reference183 = ref span243[num]; + ref QuestSequence reference183 = ref span93[3]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -171861,31 +142618,25 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); obj183.Steps = list247; reference183 = obj183; - num++; - ref QuestSequence reference184 = ref span243[num]; + ref QuestSequence reference184 = ref span93[4]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, Land = true }; obj184.Steps = list248; reference184 = obj184; - num++; - ref QuestSequence reference185 = ref span243[num]; + ref QuestSequence reference185 = ref span93[5]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -171893,28 +142644,23 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1016879u, new Vector3(-412.16144f, 2.644555f, -145.1286f), 398); obj185.Steps = list249; reference185 = obj185; - num++; - ref QuestSequence reference186 = ref span243[num]; + ref QuestSequence reference186 = ref span93[6]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); + span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1016803u, new Vector3(57.297607f, -47.842846f, -174.63953f), 398); obj186.Steps = list250; reference186 = obj186; questRoot30.QuestSequence = list243; @@ -171924,16 +142670,13 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - Span span251 = CollectionsMarshal.AsSpan(list251); - index = 0; - span251[index] = "liza"; + CollectionsMarshal.AsSpan(list251)[0] = "liza"; questRoot31.Author = list251; - index = 2; - List list252 = new List(index); - CollectionsMarshal.SetCount(list252, index); - Span span252 = CollectionsMarshal.AsSpan(list252); - num = 0; - ref QuestSequence reference187 = ref span252[num]; + num = 2; + List list252 = new List(num); + CollectionsMarshal.SetCount(list252, num); + Span span95 = CollectionsMarshal.AsSpan(list252); + ref QuestSequence reference187 = ref span95[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -171941,9 +142684,8 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - ref QuestStep reference188 = ref span253[index2]; + Span span96 = CollectionsMarshal.AsSpan(list253); + ref QuestStep reference188 = ref span96[0]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -171954,24 +142696,19 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - Span span254 = CollectionsMarshal.AsSpan(list254); - index3 = 0; - span254[index3] = 351; + CollectionsMarshal.AsSpan(list254)[0] = 351; skipStepConditions4.InTerritory = list254; skipConditions4.StepIf = skipStepConditions4; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list255 = new List(index3); - CollectionsMarshal.SetCount(list255, index3); - Span span255 = CollectionsMarshal.AsSpan(list255); - num3 = 0; - span255[num3] = 351; + num3 = 1; + List list255 = new List(num3); + CollectionsMarshal.SetCount(list255, num3); + CollectionsMarshal.AsSpan(list255)[0] = 351; skipAetheryteCondition.InTerritory = list255; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition; obj188.SkipConditions = skipConditions4; reference188 = obj188; - index2++; - span253[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span96[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -171982,25 +142719,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span96[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj187.Steps = list253; reference187 = obj187; - num++; - ref QuestSequence reference189 = ref span252[num]; + ref QuestSequence reference189 = ref span95[1]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -172021,8 +142755,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span256[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + span97[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -172035,16 +142768,13 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "liza"; + CollectionsMarshal.AsSpan(list257)[0] = "liza"; questRoot32.Author = list257; - index = 9; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference190 = ref span258[num]; + num = 9; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span98 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference190 = ref span98[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -172052,38 +142782,31 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401); + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016130u, new Vector3(-815.7931f, -88.52015f, -835.2941f), 401); obj190.Steps = list259; reference190 = obj190; - num++; - ref QuestSequence reference191 = ref span258[num]; + ref QuestSequence reference191 = ref span98[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4f, TargetTerritoryId = (ushort)567 }; - num2++; - span260[num2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + span99[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - num2++; - span260[num2] = new QuestStep(EInteractionType.Interact, 1017141u, new Vector3(23.208984f, 2.5864775f, -15.854187f), 567); + span99[2] = new QuestStep(EInteractionType.Interact, 1017141u, new Vector3(23.208984f, 2.5864775f, -15.854187f), 567); obj191.Steps = list260; reference191 = obj191; - num++; - ref QuestSequence reference192 = ref span258[num]; + ref QuestSequence reference192 = ref span98[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 @@ -172091,36 +142814,30 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + Span span100 = CollectionsMarshal.AsSpan(list261); + span100[0] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - index2++; - span261[index2] = new QuestStep(EInteractionType.Interact, 1017142u, new Vector3(1.5715942f, -9.5926225E-08f, -2.243164f), 568); + span100[1] = new QuestStep(EInteractionType.Interact, 1017142u, new Vector3(1.5715942f, -9.5926225E-08f, -2.243164f), 568); obj192.Steps = list261; reference192 = obj192; - num++; - ref QuestSequence reference193 = ref span258[num]; + ref QuestSequence reference193 = ref span98[3]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj193.Steps = list262; reference193 = obj193; - num++; - ref QuestSequence reference194 = ref span258[num]; + ref QuestSequence reference194 = ref span98[4]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -172128,37 +142845,30 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 1017149u, new Vector3(35.599243f, -15.420995f, 25.833496f), 567); + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1017149u, new Vector3(35.599243f, -15.420995f, 25.833496f), 567); obj194.Steps = list263; reference194 = obj194; - num++; - ref QuestSequence reference195 = ref span258[num]; + ref QuestSequence reference195 = ref span98[5]; QuestSequence obj195 = new QuestSequence { Sequence = 5 }; - 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) + 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) { TargetTerritoryId = (ushort)567 }; - num2++; - span264[num2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + span101[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - num2++; - span264[num2] = new QuestStep(EInteractionType.Interact, 1017155u, new Vector3(0.10675049f, 0.022368316f, 0.56451416f), 568); + span101[2] = new QuestStep(EInteractionType.Interact, 1017155u, new Vector3(0.10675049f, 0.022368316f, 0.56451416f), 568); obj195.Steps = list264; reference195 = obj195; - num++; - ref QuestSequence reference196 = ref span258[num]; + ref QuestSequence reference196 = ref span98[6]; QuestSequence obj196 = new QuestSequence { Sequence = 6 @@ -172166,26 +142876,21 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.Interact, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) { StopDistance = 7f }; obj196.Steps = list265; reference196 = obj196; - num++; - ref QuestSequence reference197 = ref span258[num]; + ref QuestSequence reference197 = ref span98[7]; QuestSequence obj197 = new QuestSequence { Sequence = 7 }; - 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) + num2 = 1; + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Duty, null, null, 567) { DutyOptions = new DutyOptions { @@ -172194,8 +142899,7 @@ public static class AssemblyQuestLoader }; obj197.Steps = list266; reference197 = obj197; - num++; - ref QuestSequence reference198 = ref span258[num]; + ref QuestSequence reference198 = ref span98[8]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -172203,9 +142907,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017158u, new Vector3(46.73828f, -15.36437f, 43.198242f), 567) { StopDistance = 5f, NextQuestId = new QuestId(2286) @@ -172219,30 +142921,24 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - Span span268 = CollectionsMarshal.AsSpan(list268); - index = 0; - span268[index] = "liza"; + CollectionsMarshal.AsSpan(list268)[0] = "liza"; questRoot33.Author = list268; - index = 2; - List list269 = new List(index); - CollectionsMarshal.SetCount(list269, index); - Span span269 = CollectionsMarshal.AsSpan(list269); - num = 0; - ref QuestSequence reference199 = ref span269[num]; + num = 2; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span102 = CollectionsMarshal.AsSpan(list269); + ref QuestSequence reference199 = ref span102[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj199.Steps = list270; reference199 = obj199; - num++; - ref QuestSequence reference200 = ref span269[num]; + ref QuestSequence reference200 = ref span102[1]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue @@ -172250,19 +142946,16 @@ public static class AssemblyQuestLoader num2 = 3; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) + Span span103 = CollectionsMarshal.AsSpan(list271); + span103[0] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.19791f, -14.73229f, 26.85483f), 567) { TargetTerritoryId = (ushort)567 }; - index2++; - span271[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) + span103[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) { TargetTerritoryId = (ushort)568 }; - index2++; - span271[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017200u, new Vector3(-3.2807007f, 1.937151E-07f, 2.1209717f), 568) + span103[2] = new QuestStep(EInteractionType.CompleteQuest, 1017200u, new Vector3(-3.2807007f, 1.937151E-07f, 2.1209717f), 568) { StopDistance = 7f, NextQuestId = new QuestId(2373) @@ -172276,26 +142969,22 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - Span span272 = CollectionsMarshal.AsSpan(list272); - index = 0; - span272[index] = "liza"; + CollectionsMarshal.AsSpan(list272)[0] = "liza"; questRoot34.Author = list272; - index = 6; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - ref QuestSequence reference201 = ref span273[num]; + num = 6; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span104 = CollectionsMarshal.AsSpan(list273); + ref QuestSequence reference201 = ref span104[0]; QuestSequence obj201 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + Span span105 = CollectionsMarshal.AsSpan(list274); + ref QuestStep reference202 = ref span105[0]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -172306,24 +142995,19 @@ public static class AssemblyQuestLoader num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - Span span275 = CollectionsMarshal.AsSpan(list275); - index3 = 0; - span275[index3] = 351; + CollectionsMarshal.AsSpan(list275)[0] = 351; skipStepConditions5.InTerritory = list275; skipConditions5.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index3 = 1; - List list276 = new List(index3); - CollectionsMarshal.SetCount(list276, index3); - Span span276 = CollectionsMarshal.AsSpan(list276); - num3 = 0; - span276[num3] = 351; + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + CollectionsMarshal.AsSpan(list276)[0] = 351; skipAetheryteCondition2.InTerritory = list276; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition2; obj202.SkipConditions = skipConditions5; reference202 = obj202; - num2++; - span274[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span105[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -172334,15 +143018,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span274[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span105[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj201.Steps = list274; reference201 = obj201; - num++; - ref QuestSequence reference203 = ref span273[num]; + ref QuestSequence reference203 = ref span104[1]; QuestSequence obj203 = new QuestSequence { Sequence = 1 @@ -172350,36 +143032,29 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.Interact, 1017115u, new Vector3(-59.67804f, 271.23285f, 4.0131226f), 402) + CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1017115u, new Vector3(-59.67804f, 271.23285f, 4.0131226f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj203.Steps = list277; reference203 = obj203; - num++; - ref QuestSequence reference204 = ref span273[num]; + ref QuestSequence reference204 = ref span104[2]; QuestSequence obj204 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj204.Steps = list278; reference204 = obj204; - num++; - span273[num] = new QuestSequence + span104[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference205 = ref span273[num]; + ref QuestSequence reference205 = ref span104[4]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -172387,34 +143062,28 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.Interact, 1017167u, new Vector3(-66.91089f, 271.23285f, 4.0131226f), 402); + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1017167u, new Vector3(-66.91089f, 271.23285f, 4.0131226f), 402); obj205.Steps = list279; reference205 = obj205; - num++; - ref QuestSequence reference206 = ref span273[num]; + ref QuestSequence reference206 = ref span104[5]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span280[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span106[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span106[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2332) @@ -172428,16 +143097,13 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - Span span281 = CollectionsMarshal.AsSpan(list281); - index = 0; - span281[index] = "liza"; + CollectionsMarshal.AsSpan(list281)[0] = "liza"; questRoot35.Author = list281; - index = 5; - List list282 = new List(index); - CollectionsMarshal.SetCount(list282, index); - Span span282 = CollectionsMarshal.AsSpan(list282); - num = 0; - ref QuestSequence reference207 = ref span282[num]; + num = 5; + List list282 = new List(num); + CollectionsMarshal.SetCount(list282, num); + Span span107 = CollectionsMarshal.AsSpan(list282); + ref QuestSequence reference207 = ref span107[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -172445,30 +143111,24 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj207.Steps = list283; reference207 = obj207; - num++; - ref QuestSequence reference208 = ref span282[num]; + ref QuestSequence reference208 = ref span107[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj208.Steps = list284; reference208 = obj208; - num++; - ref QuestSequence reference209 = ref span282[num]; + ref QuestSequence reference209 = ref span107[2]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -172476,125 +143136,93 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span108 = CollectionsMarshal.AsSpan(list285); + span108[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15725u, ItemCount = 3 }; - index2++; - span285[index2] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400); + span108[1] = new QuestStep(EInteractionType.Interact, 1017352u, new Vector3(-56.809387f, -8.866012f, 161.8219f), 400); obj209.Steps = list285; reference209 = obj209; - num++; - ref QuestSequence reference210 = ref span282[num]; + ref QuestSequence reference210 = ref span107[3]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list286 = new List(index2); - CollectionsMarshal.SetCount(list286, index2); - Span span286 = CollectionsMarshal.AsSpan(list286); - num2 = 0; - ref QuestStep reference211 = ref span286[num2]; + num2 = 4; + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + Span span109 = CollectionsMarshal.AsSpan(list286); + ref QuestStep reference211 = ref span109[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list287; reference211 = questStep; - num2++; - ref QuestStep reference212 = ref span286[num2]; + ref QuestStep reference212 = ref span109[1]; 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(); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list288; skipConditions6.StepIf = skipStepConditions6; obj211.SkipConditions = skipConditions6; reference212 = obj211; - num2++; - ref QuestStep reference213 = ref span286[num2]; + ref QuestStep reference213 = ref span109[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list289; reference213 = questStep2; - num2++; - ref QuestStep reference214 = ref span286[num2]; + ref QuestStep reference214 = ref span109[3]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1017355u, new Vector3(-110.97894f, -8.866015f, 247.94385f), 400) { Fly = true }; - 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); + 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); obj212.CompletionQuestVariablesFlags = list290; reference214 = obj212; obj210.Steps = list286; reference210 = obj210; - num++; - ref QuestSequence reference215 = ref span282[num]; + ref QuestSequence reference215 = ref span107[4]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -172602,9 +143230,7 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span291[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true }; @@ -172617,26 +143243,21 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - Span span292 = CollectionsMarshal.AsSpan(list292); - index = 0; - span292[index] = "Censored"; + CollectionsMarshal.AsSpan(list292)[0] = "Censored"; questRoot36.Author = list292; - index = 3; - List list293 = new List(index); - CollectionsMarshal.SetCount(list293, index); - Span span293 = CollectionsMarshal.AsSpan(list293); - num = 0; - ref QuestSequence reference216 = ref span293[num]; + num = 3; + List list293 = new List(num); + CollectionsMarshal.SetCount(list293, num); + Span span114 = CollectionsMarshal.AsSpan(list293); + ref QuestSequence reference216 = ref span114[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -172655,8 +143276,7 @@ public static class AssemblyQuestLoader }; obj214.Steps = list294; reference216 = obj214; - num++; - ref QuestSequence reference217 = ref span293[num]; + ref QuestSequence reference217 = ref span114[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -172664,26 +143284,22 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Interact, 1017356u, new Vector3(676.14246f, -0.4951099f, 11.550964f), 400) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1017356u, new Vector3(676.14246f, -0.4951099f, 11.550964f), 400) { Fly = true }; obj215.Steps = list295; reference217 = obj215; - num++; - ref QuestSequence reference218 = ref span293[num]; + ref QuestSequence reference218 = ref span114[2]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 15726u, ItemCount = 3, @@ -172695,8 +143311,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -172722,16 +143337,13 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span297 = CollectionsMarshal.AsSpan(list297); - index = 0; - span297[index] = "Censored"; + CollectionsMarshal.AsSpan(list297)[0] = "Censored"; questRoot37.Author = list297; - index = 4; - List list298 = new List(index); - CollectionsMarshal.SetCount(list298, index); - Span span298 = CollectionsMarshal.AsSpan(list298); - num = 0; - ref QuestSequence reference219 = ref span298[num]; + num = 4; + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + Span span116 = CollectionsMarshal.AsSpan(list298); + ref QuestSequence reference219 = ref span116[0]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -172739,9 +143351,7 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -172760,18 +143370,16 @@ public static class AssemblyQuestLoader }; obj217.Steps = list299; reference219 = obj217; - num++; - ref QuestSequence reference220 = ref span298[num]; + ref QuestSequence reference220 = ref span116[1]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list300 = new List(index2); - CollectionsMarshal.SetCount(list300, index2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num2 = 0; - ref QuestStep reference221 = ref span300[num2]; + num2 = 2; + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + Span span117 = CollectionsMarshal.AsSpan(list300); + ref QuestStep reference221 = ref span117[0]; QuestStep obj219 = new QuestStep(EInteractionType.Interact, 1017357u, new Vector3(312.3673f, -35.70687f, 89.25f), 400) { Fly = true @@ -172779,30 +143387,22 @@ public static class AssemblyQuestLoader num3 = 6; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - 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); + 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); obj219.CompletionQuestVariablesFlags = list301; reference221 = obj219; - num2++; - span300[num2] = new QuestStep(EInteractionType.Interact, 1017358u, new Vector3(837.9186f, -3.0115817f, 211.56628f), 400) + span117[1] = new QuestStep(EInteractionType.Interact, 1017358u, new Vector3(837.9186f, -3.0115817f, 211.56628f), 400) { Fly = true }; obj218.Steps = list300; reference220 = obj218; - num++; - ref QuestSequence reference222 = ref span298[num]; + ref QuestSequence reference222 = ref span116[2]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -172810,27 +143410,23 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1017471u, new Vector3(-391.0735f, 59.9946f, 303.1814f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj220.Steps = list302; reference222 = obj220; - num++; - ref QuestSequence reference223 = ref span298[num]; + ref QuestSequence reference223 = ref span116[3]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 15727u, ItemCount = 2, @@ -172842,8 +143438,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span303[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -172869,16 +143464,13 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span304 = CollectionsMarshal.AsSpan(list304); - index = 0; - span304[index] = "Censored"; + CollectionsMarshal.AsSpan(list304)[0] = "Censored"; questRoot38.Author = list304; - index = 6; - List list305 = new List(index); - CollectionsMarshal.SetCount(list305, index); - Span span305 = CollectionsMarshal.AsSpan(list305); - num = 0; - ref QuestSequence reference224 = ref span305[num]; + num = 6; + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + Span span120 = CollectionsMarshal.AsSpan(list305); + ref QuestSequence reference224 = ref span120[0]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -172886,9 +143478,7 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -172907,18 +143497,15 @@ public static class AssemblyQuestLoader }; obj222.Steps = list306; reference224 = obj222; - num++; - ref QuestSequence reference225 = ref span305[num]; + ref QuestSequence reference225 = ref span120[1]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -172937,8 +143524,7 @@ public static class AssemblyQuestLoader }; obj223.Steps = list307; reference225 = obj223; - num++; - ref QuestSequence reference226 = ref span305[num]; + ref QuestSequence reference226 = ref span120[2]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -172946,43 +143532,36 @@ public static class AssemblyQuestLoader num2 = 3; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1017362u, new Vector3(279.3468f, -37.982975f, 487.6936f), 400) + Span span121 = CollectionsMarshal.AsSpan(list308); + span121[0] = new QuestStep(EInteractionType.Interact, 1017362u, new Vector3(279.3468f, -37.982975f, 487.6936f), 400) { Fly = true }; - index2++; - span308[index2] = new QuestStep(EInteractionType.Interact, 1017363u, new Vector3(320.88184f, -13.416825f, 439.07825f), 400) + span121[1] = new QuestStep(EInteractionType.Interact, 1017363u, new Vector3(320.88184f, -13.416825f, 439.07825f), 400) { Fly = true }; - index2++; - span308[index2] = new QuestStep(EInteractionType.Interact, 1017361u, new Vector3(177.7218f, -33.74496f, 486.8695f), 400) + span121[2] = new QuestStep(EInteractionType.Interact, 1017361u, new Vector3(177.7218f, -33.74496f, 486.8695f), 400) { Fly = true }; obj224.Steps = list308; reference226 = obj224; - num++; - ref QuestSequence reference227 = ref span305[num]; + ref QuestSequence reference227 = ref span120[3]; QuestSequence obj225 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj225.Steps = list309; reference227 = obj225; - num++; - ref QuestSequence reference228 = ref span305[num]; + ref QuestSequence reference228 = ref span120[4]; QuestSequence obj226 = new QuestSequence { Sequence = 4 @@ -172990,9 +143569,8 @@ public static class AssemblyQuestLoader num2 = 2; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span122 = CollectionsMarshal.AsSpan(list310); + span122[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15728u, ItemCount = 3, @@ -173004,22 +143582,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span310[index2] = new QuestStep(EInteractionType.Interact, 1017360u, new Vector3(395.98682f, -5.798145f, 587.3655f), 400); + span122[1] = new QuestStep(EInteractionType.Interact, 1017360u, new Vector3(395.98682f, -5.798145f, 587.3655f), 400); obj226.Steps = list310; reference228 = obj226; - num++; - ref QuestSequence reference229 = ref span305[num]; + ref QuestSequence reference229 = ref span120[5]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173045,16 +143619,13 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - Span span312 = CollectionsMarshal.AsSpan(list312); - index = 0; - span312[index] = "Censored"; + CollectionsMarshal.AsSpan(list312)[0] = "Censored"; questRoot39.Author = list312; - index = 5; - List list313 = new List(index); - CollectionsMarshal.SetCount(list313, index); - Span span313 = CollectionsMarshal.AsSpan(list313); - num = 0; - ref QuestSequence reference230 = ref span313[num]; + num = 5; + List list313 = new List(num); + CollectionsMarshal.SetCount(list313, num); + Span span123 = CollectionsMarshal.AsSpan(list313); + ref QuestSequence reference230 = ref span123[0]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -173062,9 +143633,7 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173083,18 +143652,15 @@ public static class AssemblyQuestLoader }; obj228.Steps = list314; reference230 = obj228; - num++; - ref QuestSequence reference231 = ref span313[num]; + ref QuestSequence reference231 = ref span123[1]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -173113,8 +143679,7 @@ public static class AssemblyQuestLoader }; obj229.Steps = list315; reference231 = obj229; - num++; - ref QuestSequence reference232 = ref span313[num]; + ref QuestSequence reference232 = ref span123[2]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -173122,33 +143687,25 @@ public static class AssemblyQuestLoader num2 = 3; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - ref QuestStep reference233 = ref span316[index2]; + Span span124 = CollectionsMarshal.AsSpan(list316); + ref QuestStep reference233 = ref span124[0]; QuestStep obj231 = new QuestStep(EInteractionType.Interact, 2007227u, new Vector3(439.9939f, -31.601501f, 204.88281f), 400) { Fly = true }; - 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); + 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); obj231.CompletionQuestVariablesFlags = list317; reference233 = obj231; - index2++; - ref QuestStep reference234 = ref span316[index2]; + ref QuestStep reference234 = ref span124[1]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 2007226u, new Vector3(430.80798f, -27.878296f, 141.92407f), 400) { Fly = true @@ -173156,47 +143713,36 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - 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); + 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); obj232.CompletionQuestVariablesFlags = list318; reference234 = obj232; - index2++; - span316[index2] = new QuestStep(EInteractionType.Interact, 2007225u, new Vector3(413.68726f, -22.354492f, 16.525452f), 400) + span124[2] = new QuestStep(EInteractionType.Interact, 2007225u, new Vector3(413.68726f, -22.354492f, 16.525452f), 400) { Fly = true }; obj230.Steps = list316; reference232 = obj230; - num++; - ref QuestSequence reference235 = ref span313[num]; + ref QuestSequence reference235 = ref span123[3]; QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj233.Steps = list319; reference235 = obj233; - num++; - ref QuestSequence reference236 = ref span313[num]; + ref QuestSequence reference236 = ref span123[4]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue @@ -173204,9 +143750,8 @@ public static class AssemblyQuestLoader num2 = 2; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span320 = CollectionsMarshal.AsSpan(list320); - index2 = 0; - span320[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span127 = CollectionsMarshal.AsSpan(list320); + span127[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15729u, ItemCount = 3, @@ -173218,8 +143763,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span320[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173245,26 +143789,21 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span321 = CollectionsMarshal.AsSpan(list321); - index = 0; - span321[index] = "Censored"; + CollectionsMarshal.AsSpan(list321)[0] = "Censored"; questRoot40.Author = list321; - index = 3; - List list322 = new List(index); - CollectionsMarshal.SetCount(list322, index); - Span span322 = CollectionsMarshal.AsSpan(list322); - num = 0; - ref QuestSequence reference237 = ref span322[num]; + num = 3; + List list322 = new List(num); + CollectionsMarshal.SetCount(list322, num); + Span span128 = CollectionsMarshal.AsSpan(list322); + ref QuestSequence reference237 = ref span128[0]; QuestSequence obj235 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173283,8 +143822,7 @@ public static class AssemblyQuestLoader }; obj235.Steps = list323; reference237 = obj235; - num++; - ref QuestSequence reference238 = ref span322[num]; + ref QuestSequence reference238 = ref span128[1]; QuestSequence obj236 = new QuestSequence { Sequence = 1 @@ -173292,9 +143830,8 @@ public static class AssemblyQuestLoader num2 = 4; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - ref QuestStep reference239 = ref span324[index2]; + Span span129 = CollectionsMarshal.AsSpan(list324); + ref QuestStep reference239 = ref span129[0]; QuestStep obj237 = new QuestStep(EInteractionType.Say, 1017365u, new Vector3(255.75635f, -43.649445f, 637.2014f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -173315,26 +143852,19 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj237.CompletionQuestVariablesFlags = list325; reference239 = obj237; - index2++; - ref QuestStep reference240 = ref span324[index2]; + ref QuestStep reference240 = ref span129[1]; QuestStep obj238 = new QuestStep(EInteractionType.Say, 1017366u, new Vector3(296.37585f, -47.154934f, 673.9756f), 400) { ChatMessage = new ChatMessage @@ -173345,23 +143875,16 @@ public static class AssemblyQuestLoader num3 = 6; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - 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); + 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); obj238.CompletionQuestVariablesFlags = list326; reference240 = obj238; - index2++; - ref QuestStep reference241 = ref span324[index2]; + ref QuestStep reference241 = ref span129[2]; QuestStep obj239 = new QuestStep(EInteractionType.Say, 1017368u, new Vector3(451.7433f, -5.8336167f, 649.7444f), 400) { Fly = true, @@ -173370,26 +143893,19 @@ public static class AssemblyQuestLoader Key = "TEXT_BANMOG202_02295_SYSTEM_000_019" } }; - 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); + 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); obj239.CompletionQuestVariablesFlags = list327; reference241 = obj239; - index2++; - span324[index2] = new QuestStep(EInteractionType.Say, 1017367u, new Vector3(484.45862f, -7.7667823f, 716.9756f), 400) + span129[3] = new QuestStep(EInteractionType.Say, 1017367u, new Vector3(484.45862f, -7.7667823f, 716.9756f), 400) { Fly = true, ChatMessage = new ChatMessage @@ -173399,18 +143915,15 @@ public static class AssemblyQuestLoader }; obj236.Steps = list324; reference238 = obj236; - num++; - ref QuestSequence reference242 = ref span322[num]; + ref QuestSequence reference242 = ref span128[2]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173436,16 +143949,13 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - Span span329 = CollectionsMarshal.AsSpan(list329); - index = 0; - span329[index] = "Censored"; + CollectionsMarshal.AsSpan(list329)[0] = "Censored"; questRoot41.Author = list329; - index = 4; - List list330 = new List(index); - CollectionsMarshal.SetCount(list330, index); - Span span330 = CollectionsMarshal.AsSpan(list330); - num = 0; - ref QuestSequence reference243 = ref span330[num]; + num = 4; + List list330 = new List(num); + CollectionsMarshal.SetCount(list330, num); + Span span133 = CollectionsMarshal.AsSpan(list330); + ref QuestSequence reference243 = ref span133[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -173453,9 +143963,7 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span331[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173474,18 +143982,15 @@ public static class AssemblyQuestLoader }; obj241.Steps = list331; reference243 = obj241; - num++; - ref QuestSequence reference244 = ref span330[num]; + ref QuestSequence reference244 = ref span133[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -173504,8 +144009,7 @@ public static class AssemblyQuestLoader }; obj242.Steps = list332; reference244 = obj242; - num++; - ref QuestSequence reference245 = ref span330[num]; + ref QuestSequence reference245 = ref span133[2]; QuestSequence obj243 = new QuestSequence { Sequence = 2 @@ -173513,9 +144017,8 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span134 = CollectionsMarshal.AsSpan(list333); + span134[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15730u, ItemCount = 3, @@ -173527,22 +144030,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span333[index2] = new QuestStep(EInteractionType.Interact, 1017370u, new Vector3(456.07678f, -5.5784807f, 676.84436f), 400); + span134[1] = new QuestStep(EInteractionType.Interact, 1017370u, new Vector3(456.07678f, -5.5784807f, 676.84436f), 400); obj243.Steps = list333; reference245 = obj243; - num++; - ref QuestSequence reference246 = ref span330[num]; + ref QuestSequence reference246 = ref span133[3]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173568,16 +144067,13 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - Span span335 = CollectionsMarshal.AsSpan(list335); - index = 0; - span335[index] = "pot0to"; + CollectionsMarshal.AsSpan(list335)[0] = "pot0to"; questRoot42.Author = list335; - index = 5; - List list336 = new List(index); - CollectionsMarshal.SetCount(list336, index); - Span span336 = CollectionsMarshal.AsSpan(list336); - num = 0; - ref QuestSequence reference247 = ref span336[num]; + num = 5; + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + Span span135 = CollectionsMarshal.AsSpan(list336); + ref QuestSequence reference247 = ref span135[0]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -173585,31 +144081,25 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj245.Steps = list337; reference247 = obj245; - num++; - ref QuestSequence reference248 = ref span336[num]; + ref QuestSequence reference248 = ref span135[1]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj246.Steps = list338; reference248 = obj246; - num++; - ref QuestSequence reference249 = ref span336[num]; + ref QuestSequence reference249 = ref span135[2]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -173617,35 +144107,29 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-740.9363f, 81f, 427.06656f), 400) + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Action, null, new Vector3(-740.9363f, 81f, 427.06656f), 400) { Fly = true, Action = EAction.Seed }; obj247.Steps = list339; reference249 = obj247; - num++; - ref QuestSequence reference250 = ref span336[num]; + ref QuestSequence reference250 = ref span135[3]; QuestSequence obj248 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Action = EAction.Seed }; obj248.Steps = list340; reference250 = obj248; - num++; - ref QuestSequence reference251 = ref span336[num]; + ref QuestSequence reference251 = ref span135[4]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue @@ -173653,9 +144137,7 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173681,26 +144163,21 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - Span span342 = CollectionsMarshal.AsSpan(list342); - index = 0; - span342[index] = "Censored"; + CollectionsMarshal.AsSpan(list342)[0] = "Censored"; questRoot43.Author = list342; - index = 4; - List list343 = new List(index); - CollectionsMarshal.SetCount(list343, index); - Span span343 = CollectionsMarshal.AsSpan(list343); - num = 0; - ref QuestSequence reference252 = ref span343[num]; + num = 4; + List list343 = new List(num); + CollectionsMarshal.SetCount(list343, num); + Span span136 = CollectionsMarshal.AsSpan(list343); + ref QuestSequence reference252 = ref span136[0]; QuestSequence obj250 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173719,8 +144196,7 @@ public static class AssemblyQuestLoader }; obj250.Steps = list344; reference252 = obj250; - num++; - ref QuestSequence reference253 = ref span343[num]; + ref QuestSequence reference253 = ref span136[1]; QuestSequence obj251 = new QuestSequence { Sequence = 1 @@ -173728,27 +144204,23 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.Interact, 1017377u, new Vector3(559.9907f, -1.071418f, -372.42694f), 400) + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1017377u, new Vector3(559.9907f, -1.071418f, -372.42694f), 400) { Fly = true, Land = true }; obj251.Steps = list345; reference253 = obj251; - num++; - ref QuestSequence reference254 = ref span343[num]; + ref QuestSequence reference254 = ref span136[2]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 15731u, ItemCount = 1, @@ -173760,12 +144232,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span346[num2] = new QuestStep(EInteractionType.Interact, 1017378u, new Vector3(555.84033f, -1.1545231f, -386.28217f), 400); + span137[1] = new QuestStep(EInteractionType.Interact, 1017378u, new Vector3(555.84033f, -1.1545231f, -386.28217f), 400); obj252.Steps = list346; reference254 = obj252; - num++; - ref QuestSequence reference255 = ref span343[num]; + ref QuestSequence reference255 = ref span136[3]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue @@ -173773,9 +144243,7 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173801,26 +144269,21 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - Span span348 = CollectionsMarshal.AsSpan(list348); - index = 0; - span348[index] = "Censored"; + CollectionsMarshal.AsSpan(list348)[0] = "Censored"; questRoot44.Author = list348; - index = 4; - List list349 = new List(index); - CollectionsMarshal.SetCount(list349, index); - Span span349 = CollectionsMarshal.AsSpan(list349); - num = 0; - ref QuestSequence reference256 = ref span349[num]; + num = 4; + List list349 = new List(num); + CollectionsMarshal.SetCount(list349, num); + Span span138 = CollectionsMarshal.AsSpan(list349); + ref QuestSequence reference256 = ref span138[0]; QuestSequence obj254 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173839,8 +144302,7 @@ public static class AssemblyQuestLoader }; obj254.Steps = list350; reference256 = obj254; - num++; - ref QuestSequence reference257 = ref span349[num]; + ref QuestSequence reference257 = ref span138[1]; QuestSequence obj255 = new QuestSequence { Sequence = 1 @@ -173848,26 +144310,22 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span351 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - span351[index2] = new QuestStep(EInteractionType.Interact, 1017379u, new Vector3(-183.0625f, 182.06508f, -759.21265f), 400) + CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1017379u, new Vector3(-183.0625f, 182.06508f, -759.21265f), 400) { Fly = true }; obj255.Steps = list351; reference257 = obj255; - num++; - ref QuestSequence reference258 = ref span349[num]; + ref QuestSequence reference258 = ref span138[2]; QuestSequence obj256 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 15732u, ItemCount = 2, @@ -173879,12 +144337,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span352[num2] = new QuestStep(EInteractionType.Interact, 1017380u, new Vector3(-171.74036f, 178.63443f, -772.9458f), 400); + span139[1] = new QuestStep(EInteractionType.Interact, 1017380u, new Vector3(-171.74036f, 178.63443f, -772.9458f), 400); obj256.Steps = list352; reference258 = obj256; - num++; - ref QuestSequence reference259 = ref span349[num]; + ref QuestSequence reference259 = ref span138[3]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue @@ -173892,9 +144348,7 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -173924,16 +144378,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -173941,31 +144392,25 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -173973,22 +144418,18 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15733u, ItemCount = 1 }; - index2++; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref span2[1]; 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); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG303_02300_Q1_000_000"), @@ -173998,25 +144439,21 @@ public static class AssemblyQuestLoader reference4 = questStep; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj4.Steps = list7; reference5 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -174024,9 +144461,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174052,30 +144487,24 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list9)[0] = "plogon_enjoyer"; questRoot2.Author = list9; - index = 6; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 6; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list11; reference7 = obj6; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span3[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -174083,39 +144512,33 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true }; obj7.Steps = list12; reference8 = obj7; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span3[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 15734u, ItemCount = 1 }; - num2++; - span13[num2] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) + span4[1] = new QuestStep(EInteractionType.Interact, 1017392u, new Vector3(112.687744f, -24.088774f, 167.74243f), 400) { Fly = true }; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span3[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -174123,33 +144546,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 2007234u, new Vector3(111.86377f, -21.988281f, 192.43152f), 400) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2007234u, new Vector3(111.86377f, -21.988281f, 192.43152f), 400) { Fly = true }; obj9.Steps = list14; reference10 = obj9; - num++; - ref QuestSequence reference11 = ref span10[num]; + ref QuestSequence reference11 = ref span3[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj10.Steps = list15; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span10[num]; + ref QuestSequence reference12 = ref span3[5]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -174157,9 +144574,7 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174185,30 +144600,24 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list17)[0] = "plogon_enjoyer"; questRoot3.Author = list17; - index = 6; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 6; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span5 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span5[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -174216,34 +144625,28 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true }; obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span5[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj14.Steps = list21; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span5[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -174251,35 +144654,29 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Action, 2007273u, new Vector3(431.99805f, -28.152893f, 112.321655f), 400) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Action, 2007273u, new Vector3(431.99805f, -28.152893f, 112.321655f), 400) { Fly = true, Action = EAction.Roar }; obj15.Steps = list22; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span18[num]; + ref QuestSequence reference17 = ref span5[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj16.Steps = list23; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span18[num]; + ref QuestSequence reference18 = ref span5[5]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -174287,9 +144684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174315,26 +144710,21 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "Censored"; + CollectionsMarshal.AsSpan(list25)[0] = "Censored"; questRoot4.Author = list25; - index = 4; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference19 = ref span26[num]; + num = 4; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span6 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference19 = ref span6[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174353,8 +144743,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list27; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span26[num]; + ref QuestSequence reference20 = ref span6[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -174362,26 +144751,22 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.Interact, 1017403u, new Vector3(-686.12195f, 335f, 165.75867f), 400) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1017403u, new Vector3(-686.12195f, 335f, 165.75867f), 400) { Fly = true }; obj19.Steps = list28; reference20 = obj19; - num++; - ref QuestSequence reference21 = ref span26[num]; + ref QuestSequence reference21 = ref span6[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 15735u, ItemCount = 2, @@ -174393,12 +144778,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span29[num2] = new QuestStep(EInteractionType.Interact, 1017534u, new Vector3(-661.1582f, 335f, 158.49548f), 400); + span7[1] = new QuestStep(EInteractionType.Interact, 1017534u, new Vector3(-661.1582f, 335f, 158.49548f), 400); obj20.Steps = list29; reference21 = obj20; - num++; - ref QuestSequence reference22 = ref span26[num]; + ref QuestSequence reference22 = ref span6[3]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue @@ -174406,9 +144789,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true }; @@ -174421,30 +144802,24 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "liza"; + CollectionsMarshal.AsSpan(list31)[0] = "liza"; questRoot5.Author = list31; - index = 5; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference23 = ref span32[num]; + num = 5; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span8 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference23 = ref span8[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj22.Steps = list33; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span32[num]; + ref QuestSequence reference24 = ref span8[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 @@ -174452,33 +144827,27 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1017406u, new Vector3(-95.04846f, 79.8345f, -301.80823f), 400) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1017406u, new Vector3(-95.04846f, 79.8345f, -301.80823f), 400) { Fly = true }; obj23.Steps = list34; reference24 = obj23; - num++; - ref QuestSequence reference25 = ref span32[num]; + ref QuestSequence reference25 = ref span8[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj24.Steps = list35; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span32[num]; + ref QuestSequence reference26 = ref span8[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -174486,29 +144855,24 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span9 = CollectionsMarshal.AsSpan(list36); + span9[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15736u, ItemCount = 3 }; - index2++; - span36[index2] = new QuestStep(EInteractionType.Interact, 1017408u, new Vector3(-108.59851f, 122.442116f, -318.31848f), 400); + span9[1] = new QuestStep(EInteractionType.Interact, 1017408u, new Vector3(-108.59851f, 122.442116f, -318.31848f), 400); obj25.Steps = list36; reference26 = obj25; - num++; - ref QuestSequence reference27 = ref span32[num]; + ref QuestSequence reference27 = ref span8[4]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174534,16 +144898,13 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "liza"; + CollectionsMarshal.AsSpan(list38)[0] = "liza"; questRoot6.Author = list38; - index = 7; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference28 = ref span39[num]; + num = 7; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span10 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference28 = ref span10[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -174551,27 +144912,21 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj27.Steps = list40; reference28 = obj27; - num++; - ref QuestSequence reference29 = ref span39[num]; + ref QuestSequence reference29 = ref span10[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj28.Steps = list41; reference29 = obj28; - num++; - ref QuestSequence reference30 = ref span39[num]; + ref QuestSequence reference30 = ref span10[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -174579,53 +144934,42 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) + Span span11 = CollectionsMarshal.AsSpan(list42); + span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) { Fly = true }; - index2++; - span42[index2] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); + span11[1] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); obj29.Steps = list42; reference30 = obj29; - num++; - ref QuestSequence reference31 = ref span39[num]; + ref QuestSequence reference31 = ref span10[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list43 = new List(index2); - CollectionsMarshal.SetCount(list43, index2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num2 = 0; - ref QuestStep reference32 = ref span43[num2]; + num2 = 4; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span12 = CollectionsMarshal.AsSpan(list43); + ref QuestStep reference32 = ref span12[0]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2007244u, new Vector3(-658.9609f, 94.25488f, -417.07483f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - 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); + 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); obj31.CompletionQuestVariablesFlags = list44; reference32 = obj31; - num2++; - ref QuestStep reference33 = ref span43[num2]; + ref QuestStep reference33 = ref span12[1]; QuestStep obj32 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-673.58887f, 93.64293f, -506.5746f), 400) { Fly = true @@ -174635,46 +144979,32 @@ public static class AssemblyQuestLoader num3 = 6; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list45; skipConditions.StepIf = skipStepConditions; obj32.SkipConditions = skipConditions; reference33 = obj32; - num2++; - ref QuestStep reference34 = ref span43[num2]; + ref QuestStep reference34 = ref span12[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2007245u, new Vector3(-671.1376f, 93.91919f, -507.49982f), 400); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list46; reference34 = questStep2; - num2++; - ref QuestStep reference35 = ref span43[num2]; + ref QuestStep reference35 = ref span12[3]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2007246u, new Vector3(-813.1685f, 94.865234f, -457.3282f), 400) { Fly = true @@ -174682,25 +145012,18 @@ public static class AssemblyQuestLoader num3 = 6; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - 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); + 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); obj33.CompletionQuestVariablesFlags = list47; reference35 = obj33; obj30.Steps = list43; reference31 = obj30; - num++; - ref QuestSequence reference36 = ref span39[num]; + ref QuestSequence reference36 = ref span10[4]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -174708,39 +145031,33 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) + Span span17 = CollectionsMarshal.AsSpan(list48); + span17[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-255.2606f, -24.29513f, 737.67456f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - index2++; - span48[index2] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); + span17[1] = new QuestStep(EInteractionType.Interact, 1017409u, new Vector3(-254.71893f, -24.295156f, 738.5519f), 400); obj34.Steps = list48; reference36 = obj34; - num++; - ref QuestSequence reference37 = ref span39[num]; + ref QuestSequence reference37 = ref span10[5]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 15737u, ItemCount = 1 }; - num2++; - span49[num2] = new QuestStep(EInteractionType.Interact, 1017410u, new Vector3(-246.2044f, -24.295149f, 760.7384f), 400); + span18[1] = new QuestStep(EInteractionType.Interact, 1017410u, new Vector3(-246.2044f, -24.295149f, 760.7384f), 400); obj35.Steps = list49; reference37 = obj35; - num++; - ref QuestSequence reference38 = ref span39[num]; + ref QuestSequence reference38 = ref span10[6]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -174748,9 +145065,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174776,30 +145091,24 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "liza"; + CollectionsMarshal.AsSpan(list51)[0] = "liza"; questRoot7.Author = list51; - index = 6; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference39 = ref span52[num]; + num = 6; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span19 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference39 = ref span19[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj37.Steps = list53; reference39 = obj37; - num++; - ref QuestSequence reference40 = ref span52[num]; + ref QuestSequence reference40 = ref span19[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -174807,31 +145116,25 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); obj38.Steps = list54; reference40 = obj38; - num++; - ref QuestSequence reference41 = ref span52[num]; + ref QuestSequence reference41 = ref span19[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj39.Steps = list55; reference41 = obj39; - num++; - ref QuestSequence reference42 = ref span52[num]; + ref QuestSequence reference42 = ref span19[3]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -174839,35 +145142,29 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Action, 2007265u, new Vector3(613.39734f, -11.917358f, -335.6222f), 400) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Action, 2007265u, new Vector3(613.39734f, -11.917358f, -335.6222f), 400) { Fly = true, Action = EAction.Roar }; obj40.Steps = list56; reference42 = obj40; - num++; - ref QuestSequence reference43 = ref span52[num]; + ref QuestSequence reference43 = ref span19[4]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj41.Steps = list57; reference43 = obj41; - num++; - ref QuestSequence reference44 = ref span52[num]; + ref QuestSequence reference44 = ref span19[5]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -174875,9 +145172,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174903,26 +145198,21 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "Censored"; + CollectionsMarshal.AsSpan(list59)[0] = "Censored"; questRoot8.Author = list59; - index = 5; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference45 = ref span60[num]; + num = 5; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span20 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference45 = ref span20[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -174941,8 +145231,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list61; reference45 = obj43; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span20[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -174950,27 +145239,23 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1017412u, new Vector3(402.45667f, -74.34704f, 636.6826f), 400) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1017412u, new Vector3(402.45667f, -74.34704f, 636.6826f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj44.Steps = list62; reference46 = obj44; - num++; - ref QuestSequence reference47 = ref span60[num]; + ref QuestSequence reference47 = ref span20[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 15738u, ItemCount = 3, @@ -174982,12 +145267,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span63[num2] = new QuestStep(EInteractionType.Interact, 1017413u, new Vector3(397.97046f, -72.344055f, 653.0403f), 400); + span21[1] = new QuestStep(EInteractionType.Interact, 1017413u, new Vector3(397.97046f, -72.344055f, 653.0403f), 400); obj45.Steps = list63; reference47 = obj45; - num++; - ref QuestSequence reference48 = ref span60[num]; + ref QuestSequence reference48 = ref span20[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -174995,27 +145278,22 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj46.Steps = list64; reference48 = obj46; - num++; - ref QuestSequence reference49 = ref span60[num]; + ref QuestSequence reference49 = ref span20[4]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175041,16 +145319,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "skiaz"; + CollectionsMarshal.AsSpan(list66)[0] = "skiaz"; questRoot9.Author = list66; - index = 5; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference50 = ref span67[num]; + num = 5; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span22 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference50 = ref span22[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -175058,23 +145333,18 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj48.Steps = list68; reference50 = obj48; - num++; - ref QuestSequence reference51 = ref span67[num]; + ref QuestSequence reference51 = ref span22[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -175093,8 +145363,7 @@ public static class AssemblyQuestLoader }; obj49.Steps = list69; reference51 = obj49; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span22[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -175102,26 +145371,21 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 2007249u, new Vector3(73.77734f, -32.73065f, -183.0625f), 400) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2007249u, new Vector3(73.77734f, -32.73065f, -183.0625f), 400) { Fly = true }; obj50.Steps = list70; reference52 = obj50; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span22[3]; QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, @@ -175140,8 +145404,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list71; reference53 = obj51; - num++; - ref QuestSequence reference54 = ref span67[num]; + ref QuestSequence reference54 = ref span22[4]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -175149,9 +145412,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175177,30 +145438,24 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "skiaz"; + CollectionsMarshal.AsSpan(list73)[0] = "skiaz"; questRoot10.Author = list73; - index = 7; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference55 = ref span74[num]; + num = 7; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span23 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference55 = ref span23[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj53.Steps = list75; reference55 = obj53; - num++; - ref QuestSequence reference56 = ref span74[num]; + ref QuestSequence reference56 = ref span23[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -175208,34 +145463,28 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400) { Fly = true }; obj54.Steps = list76; reference56 = obj54; - num++; - ref QuestSequence reference57 = ref span74[num]; + ref QuestSequence reference57 = ref span23[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj55.Steps = list77; reference57 = obj55; - num++; - ref QuestSequence reference58 = ref span74[num]; + ref QuestSequence reference58 = ref span23[3]; QuestSequence obj56 = new QuestSequence { Sequence = 3 @@ -175243,35 +145492,29 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Action, 2007276u, new Vector3(-190.2038f, 77.653076f, -304.49384f), 400) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Action, 2007276u, new Vector3(-190.2038f, 77.653076f, -304.49384f), 400) { Fly = true, Action = EAction.Roar }; obj56.Steps = list78; reference58 = obj56; - num++; - ref QuestSequence reference59 = ref span74[num]; + ref QuestSequence reference59 = ref span23[4]; QuestSequence obj57 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj57.Steps = list79; reference59 = obj57; - num++; - ref QuestSequence reference60 = ref span74[num]; + ref QuestSequence reference60 = ref span23[5]; QuestSequence obj58 = new QuestSequence { Sequence = 5 @@ -175279,27 +145522,22 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Action, 2007278u, new Vector3(-32.852783f, 77.62268f, -233.87512f), 400) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Action, 2007278u, new Vector3(-32.852783f, 77.62268f, -233.87512f), 400) { Fly = true, Action = EAction.Roar }; obj58.Steps = list80; reference60 = obj58; - num++; - ref QuestSequence reference61 = ref span74[num]; + ref QuestSequence reference61 = ref span23[6]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175325,16 +145563,13 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "Censored"; + CollectionsMarshal.AsSpan(list82)[0] = "Censored"; questRoot11.Author = list82; - index = 5; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference62 = ref span83[num]; + num = 5; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span24 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference62 = ref span24[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -175342,9 +145577,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175363,25 +145596,21 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference62 = obj60; - num++; - ref QuestSequence reference63 = ref span83[num]; + ref QuestSequence reference63 = ref span24[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj61.Steps = list85; reference63 = obj61; - num++; - ref QuestSequence reference64 = ref span83[num]; + ref QuestSequence reference64 = ref span24[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -175389,27 +145618,23 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1017421u, new Vector3(217.51733f, 6.1228147f, 721.94995f), 400) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1017421u, new Vector3(217.51733f, 6.1228147f, 721.94995f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj62.Steps = list86; reference64 = obj62; - num++; - ref QuestSequence reference65 = ref span83[num]; + ref QuestSequence reference65 = ref span24[3]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 15739u, ItemCount = 1, @@ -175421,16 +145646,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) + span25[1] = new QuestStep(EInteractionType.Interact, 1017416u, new Vector3(-696.9253f, 180.23418f, 709.8954f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj63.Steps = list87; reference65 = obj63; - num++; - ref QuestSequence reference66 = ref span83[num]; + ref QuestSequence reference66 = ref span24[4]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -175438,9 +145661,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175466,30 +145687,24 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "liza"; + CollectionsMarshal.AsSpan(list89)[0] = "liza"; questRoot12.Author = list89; - index = 7; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference67 = ref span90[num]; + num = 7; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span26 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference67 = ref span26[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj65.Steps = list91; reference67 = obj65; - num++; - ref QuestSequence reference68 = ref span90[num]; + ref QuestSequence reference68 = ref span26[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -175497,30 +145712,24 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400) { Fly = true }; obj66.Steps = list92; reference68 = obj66; - num++; - ref QuestSequence reference69 = ref span90[num]; + ref QuestSequence reference69 = ref span26[2]; QuestSequence obj67 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj67.Steps = list93; reference69 = obj67; - num++; - ref QuestSequence reference70 = ref span90[num]; + ref QuestSequence reference70 = ref span26[3]; QuestSequence obj68 = new QuestSequence { Sequence = 3 @@ -175528,33 +145737,27 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); obj68.Steps = list94; reference70 = obj68; - num++; - ref QuestSequence reference71 = ref span90[num]; + ref QuestSequence reference71 = ref span26[4]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - 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) + 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) { ItemId = 15740u, ItemCount = 3 }; - num2++; - span95[num2] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); + span27[1] = new QuestStep(EInteractionType.Interact, 1017424u, new Vector3(7.4310913f, 81.84059f, -321.1872f), 400); obj69.Steps = list95; reference71 = obj69; - num++; - ref QuestSequence reference72 = ref span90[num]; + ref QuestSequence reference72 = ref span26[5]; QuestSequence obj70 = new QuestSequence { Sequence = 5 @@ -175562,23 +145765,18 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1017422u, new Vector3(-8.804504f, 81.8406f, -312.00128f), 400); obj70.Steps = list96; reference72 = obj70; - num++; - ref QuestSequence reference73 = ref span90[num]; + ref QuestSequence reference73 = ref span26[6]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175604,16 +145802,13 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "liza"; + CollectionsMarshal.AsSpan(list98)[0] = "liza"; questRoot13.Author = list98; - index = 6; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference74 = ref span99[num]; + num = 6; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span28 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference74 = ref span28[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -175621,27 +145816,21 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj72.Steps = list100; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span99[num]; + ref QuestSequence reference75 = ref span28[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj73.Steps = list101; reference75 = obj73; - num++; - ref QuestSequence reference76 = ref span99[num]; + ref QuestSequence reference76 = ref span28[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -175649,35 +145838,29 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Action, 2007279u, new Vector3(-491.63043f, 37.369263f, 158.95312f), 400) + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Action, 2007279u, new Vector3(-491.63043f, 37.369263f, 158.95312f), 400) { Fly = true, Action = EAction.Seed }; obj74.Steps = list102; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span99[num]; + ref QuestSequence reference77 = ref span28[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Action = EAction.Seed }; obj75.Steps = list103; reference77 = obj75; - num++; - ref QuestSequence reference78 = ref span99[num]; + ref QuestSequence reference78 = ref span28[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -175685,27 +145868,22 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Action, 2007281u, new Vector3(-52.323242f, 81.80359f, -116.258545f), 400) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Action, 2007281u, new Vector3(-52.323242f, 81.80359f, -116.258545f), 400) { Fly = true, Action = EAction.Seed }; obj76.Steps = list104; reference78 = obj76; - num++; - ref QuestSequence reference79 = ref span99[num]; + ref QuestSequence reference79 = ref span28[5]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith @@ -175719,16 +145897,13 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "liza"; + CollectionsMarshal.AsSpan(list106)[0] = "liza"; questRoot14.Author = list106; - index = 6; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference80 = ref span107[num]; + num = 6; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span29 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference80 = ref span29[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -175736,32 +145911,26 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj78.Steps = list108; reference80 = obj78; - num++; - ref QuestSequence reference81 = ref span107[num]; + ref QuestSequence reference81 = ref span29[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span109[num2] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); + span30[1] = new QuestStep(EInteractionType.Interact, 1017453u, new Vector3(-840.8484f, 32.5f, 481.43726f), 400); obj79.Steps = list109; reference81 = obj79; - num++; - ref QuestSequence reference82 = ref span107[num]; + ref QuestSequence reference82 = ref span29[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -175769,27 +145938,21 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 2007256u, new Vector3(-846.79944f, 34.01233f, 476.92053f), 400); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2007256u, new Vector3(-846.79944f, 34.01233f, 476.92053f), 400); obj80.Steps = list110; reference82 = obj80; - num++; - ref QuestSequence reference83 = ref span107[num]; + ref QuestSequence reference83 = ref span29[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj81.Steps = list111; reference83 = obj81; - num++; - ref QuestSequence reference84 = ref span107[num]; + ref QuestSequence reference84 = ref span29[4]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -175797,29 +145960,24 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span31 = CollectionsMarshal.AsSpan(list112); + span31[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15741u, ItemCount = 3 }; - index2++; - span112[index2] = new QuestStep(EInteractionType.Interact, 1017549u, new Vector3(-836.9116f, 35.219498f, 457.6637f), 400); + span31[1] = new QuestStep(EInteractionType.Interact, 1017549u, new Vector3(-836.9116f, 35.219498f, 457.6637f), 400); obj82.Steps = list112; reference84 = obj82; - num++; - ref QuestSequence reference85 = ref span107[num]; + ref QuestSequence reference85 = ref span29[5]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -175845,16 +146003,13 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot15.Author = list114; - index = 7; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference86 = ref span115[num]; + num = 7; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span32 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference86 = ref span32[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -175862,32 +146017,26 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj84.Steps = list116; reference86 = obj84; - num++; - ref QuestSequence reference87 = ref span115[num]; + ref QuestSequence reference87 = ref span32[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span117[num2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); + span33[1] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); obj85.Steps = list117; reference87 = obj85; - num++; - ref QuestSequence reference88 = ref span115[num]; + ref QuestSequence reference88 = ref span32[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -175895,41 +146044,34 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj86.Steps = list118; reference88 = obj86; - num++; - ref QuestSequence reference89 = ref span115[num]; + ref QuestSequence reference89 = ref span32[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 15742u, ItemCount = 1 }; - num2++; - span119[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) + span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.5671045f, -23.618042f, 144.09882f), 400) { Fly = true }; - num2++; - span119[num2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); + span34[2] = new QuestStep(EInteractionType.Interact, 1017455u, new Vector3(-1.7548828f, -23.618038f, 144.64026f), 400); obj87.Steps = list119; reference89 = obj87; - num++; - ref QuestSequence reference90 = ref span115[num]; + ref QuestSequence reference90 = ref span32[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -175937,34 +146079,28 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 1017456u, new Vector3(-152.02563f, 160.94061f, -770.50433f), 400) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1017456u, new Vector3(-152.02563f, 160.94061f, -770.50433f), 400) { Fly = true }; obj88.Steps = list120; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span115[num]; + ref QuestSequence reference91 = ref span32[5]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj89.Steps = list121; reference91 = obj89; - num++; - ref QuestSequence reference92 = ref span115[num]; + ref QuestSequence reference92 = ref span32[6]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -175972,9 +146108,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400); obj90.Steps = list122; reference92 = obj90; questRoot15.QuestSequence = list115; @@ -175984,26 +146118,21 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "Censored"; + CollectionsMarshal.AsSpan(list123)[0] = "Censored"; questRoot16.Author = list123; - index = 6; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference93 = ref span124[num]; + num = 6; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span35 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference93 = ref span35[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176022,8 +146151,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list125; reference93 = obj91; - num++; - ref QuestSequence reference94 = ref span124[num]; + ref QuestSequence reference94 = ref span35[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -176031,76 +146159,57 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - ref QuestStep reference95 = ref span126[index2]; + Span span36 = CollectionsMarshal.AsSpan(list126); + ref QuestStep reference95 = ref span36[0]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1017459u, new Vector3(-611.41376f, 70f, 209.30798f), 400) { Fly = true }; - 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); + 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); obj93.CompletionQuestVariablesFlags = list127; reference95 = obj93; - index2++; - ref QuestStep reference96 = ref span126[index2]; + ref QuestStep reference96 = ref span36[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list128; reference96 = questStep3; - index2++; - span126[index2] = new QuestStep(EInteractionType.Interact, 1017457u, new Vector3(-619.74524f, 70f, 214.52649f), 400); + span36[2] = new QuestStep(EInteractionType.Interact, 1017457u, new Vector3(-619.74524f, 70f, 214.52649f), 400); obj92.Steps = list126; reference94 = obj92; - num++; - ref QuestSequence reference97 = ref span124[num]; + ref QuestSequence reference97 = ref span35[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Land = true }; obj94.Steps = list129; reference97 = obj94; - num++; - ref QuestSequence reference98 = ref span124[num]; + ref QuestSequence reference98 = ref span35[3]; QuestSequence obj95 = new QuestSequence { Sequence = 3 @@ -176108,33 +146217,25 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - ref QuestStep reference99 = ref span130[index2]; + Span span39 = CollectionsMarshal.AsSpan(list130); + ref QuestStep reference99 = ref span39[0]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1017461u, new Vector3(79.9115f, -22.838034f, -123.67438f), 400) { Fly = true }; - 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); + 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); obj96.CompletionQuestVariablesFlags = list131; reference99 = obj96; - index2++; - ref QuestStep reference100 = ref span130[index2]; + ref QuestStep reference100 = ref span39[1]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1017462u, new Vector3(-479.08752f, 106.92683f, -112.077515f), 400) { Fly = true @@ -176142,48 +146243,37 @@ public static class AssemblyQuestLoader num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list132; reference100 = obj97; - index2++; - span130[index2] = new QuestStep(EInteractionType.Interact, 1017460u, new Vector3(-689.05164f, 78.99983f, 266.0105f), 400) + span39[2] = new QuestStep(EInteractionType.Interact, 1017460u, new Vector3(-689.05164f, 78.99983f, 266.0105f), 400) { Fly = true }; obj95.Steps = list130; reference98 = obj95; - num++; - ref QuestSequence reference101 = ref span124[num]; + ref QuestSequence reference101 = ref span35[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, Land = true }; obj98.Steps = list133; reference101 = obj98; - num++; - ref QuestSequence reference102 = ref span124[num]; + ref QuestSequence reference102 = ref span35[5]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -176191,9 +146281,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176219,26 +146307,21 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "Censored"; + CollectionsMarshal.AsSpan(list135)[0] = "Censored"; questRoot17.Author = list135; - index = 6; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference103 = ref span136[num]; + num = 6; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span42 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference103 = ref span42[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176257,8 +146340,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list137; reference103 = obj100; - num++; - ref QuestSequence reference104 = ref span136[num]; + ref QuestSequence reference104 = ref span42[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -176266,30 +146348,24 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400); + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400); obj101.Steps = list138; reference104 = obj101; - num++; - ref QuestSequence reference105 = ref span136[num]; + ref QuestSequence reference105 = ref span42[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj102.Steps = list139; reference105 = obj102; - num++; - ref QuestSequence reference106 = ref span136[num]; + ref QuestSequence reference106 = ref span42[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -176297,9 +146373,8 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span43 = CollectionsMarshal.AsSpan(list140); + span43[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15743u, ItemCount = 3, @@ -176311,46 +146386,36 @@ public static class AssemblyQuestLoader } } }; - index2++; - span140[index2] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) + span43[1] = new QuestStep(EInteractionType.Interact, 1017321u, new Vector3(-376.4859f, 60.89619f, 319.7832f), 400) { Fly = true }; obj103.Steps = list140; reference106 = obj103; - num++; - ref QuestSequence reference107 = ref span136[num]; + ref QuestSequence reference107 = ref span42[4]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num2 = 0; - ref QuestStep reference108 = ref span141[num2]; + num2 = 3; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + Span span44 = CollectionsMarshal.AsSpan(list141); + ref QuestStep reference108 = ref span44[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1017463u, new Vector3(-380.23956f, 59.994583f, 281.84937f), 400); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list142; reference108 = questStep4; - num2++; - ref QuestStep reference109 = ref span141[num2]; + ref QuestStep reference109 = ref span44[1]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1017464u, new Vector3(-118.48633f, 36.39444f, 163.22571f), 400) { Fly = true @@ -176358,30 +146423,22 @@ public static class AssemblyQuestLoader num3 = 6; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - 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); + 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); obj105.CompletionQuestVariablesFlags = list143; reference109 = obj105; - num2++; - span141[num2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + span44[2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj104.Steps = list141; reference107 = obj104; - num++; - ref QuestSequence reference110 = ref span136[num]; + ref QuestSequence reference110 = ref span42[5]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -176389,9 +146446,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176417,30 +146472,24 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; questRoot18.Author = list145; - index = 4; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference111 = ref span146[num]; + num = 4; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span47 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference111 = ref span47[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj107.Steps = list147; reference111 = obj107; - num++; - ref QuestSequence reference112 = ref span146[num]; + ref QuestSequence reference112 = ref span47[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -176448,36 +146497,30 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1017465u, new Vector3(202.28882f, 42.309406f, -577.3861f), 400) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1017465u, new Vector3(202.28882f, 42.309406f, -577.3861f), 400) { Fly = true }; obj108.Steps = list148; reference112 = obj108; - num++; - ref QuestSequence reference113 = ref span146[num]; + ref QuestSequence reference113 = ref span47[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 15744u, ItemCount = 2 }; - num2++; - span149[num2] = new QuestStep(EInteractionType.Interact, 1017466u, new Vector3(176.71472f, 42.308628f, -571.37415f), 400); + span48[1] = new QuestStep(EInteractionType.Interact, 1017466u, new Vector3(176.71472f, 42.308628f, -571.37415f), 400); obj109.Steps = list149; reference113 = obj109; - num++; - ref QuestSequence reference114 = ref span146[num]; + ref QuestSequence reference114 = ref span47[3]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -176485,9 +146528,7 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176513,30 +146554,24 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "liza"; + CollectionsMarshal.AsSpan(list151)[0] = "liza"; questRoot19.Author = list151; - index = 8; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference115 = ref span152[num]; + num = 8; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span49 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference115 = ref span49[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj111.Steps = list153; reference115 = obj111; - num++; - ref QuestSequence reference116 = ref span152[num]; + ref QuestSequence reference116 = ref span49[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -176544,34 +146579,28 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj112.Steps = list154; reference116 = obj112; - num++; - ref QuestSequence reference117 = ref span152[num]; + ref QuestSequence reference117 = ref span49[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; obj113.Steps = list155; reference117 = obj113; - num++; - ref QuestSequence reference118 = ref span152[num]; + ref QuestSequence reference118 = ref span49[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 @@ -176579,27 +146608,22 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Emote, 1017624u, new Vector3(-76.0968f, -8.655561f, 216.17456f), 400) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Emote, 1017624u, new Vector3(-76.0968f, -8.655561f, 216.17456f), 400) { Fly = true, Emote = EEmote.Psych }; obj114.Steps = list156; reference118 = obj114; - num++; - ref QuestSequence reference119 = ref span152[num]; + ref QuestSequence reference119 = ref span49[4]; QuestSequence obj115 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.5f, Fly = true, @@ -176607,8 +146631,7 @@ public static class AssemblyQuestLoader }; obj115.Steps = list157; reference119 = obj115; - num++; - ref QuestSequence reference120 = ref span152[num]; + ref QuestSequence reference120 = ref span49[5]; QuestSequence obj116 = new QuestSequence { Sequence = 5 @@ -176616,40 +146639,34 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1017351u, new Vector3(-74.87604f, -8.172172f, 158.70898f), 400) { Fly = true }; obj116.Steps = list158; reference120 = obj116; - num++; - ref QuestSequence reference121 = ref span152[num]; + ref QuestSequence reference121 = ref span49[6]; QuestSequence obj117 = new QuestSequence { Sequence = 6 }; - 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) + 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) { ItemId = 15745u, ItemCount = 1 }; - num2++; - span159[num2] = new QuestStep(EInteractionType.Interact, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) + span50[1] = new QuestStep(EInteractionType.Interact, 1017625u, new Vector3(-46.76892f, 10.765197f, 243.12195f), 400) { StopDistance = 0.5f, Fly = true }; obj117.Steps = list159; reference121 = obj117; - num++; - ref QuestSequence reference122 = ref span152[num]; + ref QuestSequence reference122 = ref span49[7]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -176657,9 +146674,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017171u, new Vector3(-335.56116f, 59.003433f, 313.98486f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176685,26 +146700,21 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza, Redacted"; + CollectionsMarshal.AsSpan(list161)[0] = "liza, Redacted"; questRoot20.Author = list161; - index = 5; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference123 = ref span162[num]; + num = 5; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span51 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference123 = ref span51[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176723,8 +146733,7 @@ public static class AssemblyQuestLoader }; obj119.Steps = list163; reference123 = obj119; - num++; - ref QuestSequence reference124 = ref span162[num]; + ref QuestSequence reference124 = ref span51[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -176732,9 +146741,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(-354.06366f, 61.351093f, 305.64108f), 400) + Span span52 = CollectionsMarshal.AsSpan(list164); + span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.06366f, 61.351093f, 305.64108f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176751,30 +146759,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span164[index2] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); + span52[1] = new QuestStep(EInteractionType.Interact, 1017470u, new Vector3(-353.53632f, 60.896175f, 299.61084f), 400); obj120.Steps = list164; reference124 = obj120; - num++; - ref QuestSequence reference125 = ref span162[num]; + ref QuestSequence reference125 = ref span51[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Action = EAction.Roar }; obj121.Steps = list165; reference125 = obj121; - num++; - ref QuestSequence reference126 = ref span162[num]; + ref QuestSequence reference126 = ref span51[3]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -176782,27 +146785,22 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.Action, 2007284u, new Vector3(-320.60736f, 220.38599f, -708.00336f), 400) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Action, 2007284u, new Vector3(-320.60736f, 220.38599f, -708.00336f), 400) { Fly = true, Action = EAction.Roar }; obj122.Steps = list166; reference126 = obj122; - num++; - ref QuestSequence reference127 = ref span162[num]; + ref QuestSequence reference127 = ref span51[4]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -176828,16 +146826,13 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "Censored"; + CollectionsMarshal.AsSpan(list168)[0] = "Censored"; questRoot21.Author = list168; - index = 9; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference128 = ref span169[num]; + num = 9; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span53 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference128 = ref span53[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -176845,9 +146840,7 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017328u, new Vector3(234.33276f, -42.20274f, 601.00696f), 400) + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017328u, new Vector3(234.33276f, -42.20274f, 601.00696f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, SkipConditions = new SkipConditions @@ -176865,25 +146858,21 @@ public static class AssemblyQuestLoader }; obj124.Steps = list170; reference128 = obj124; - num++; - ref QuestSequence reference129 = ref span169[num]; + ref QuestSequence reference129 = ref span53[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj125.Steps = list171; reference129 = obj125; - num++; - ref QuestSequence reference130 = ref span169[num]; + ref QuestSequence reference130 = ref span53[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -176891,9 +146880,7 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -176904,18 +146891,15 @@ public static class AssemblyQuestLoader }; obj126.Steps = list172; reference130 = obj126; - num++; - ref QuestSequence reference131 = ref span169[num]; + ref QuestSequence reference131 = ref span53[3]; QuestSequence obj127 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -176925,8 +146909,7 @@ public static class AssemblyQuestLoader }; obj127.Steps = list173; reference131 = obj127; - num++; - ref QuestSequence reference132 = ref span169[num]; + ref QuestSequence reference132 = ref span53[4]; QuestSequence obj128 = new QuestSequence { Sequence = 4 @@ -176934,37 +146917,31 @@ public static class AssemblyQuestLoader num2 = 2; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Craft, null, null, 419) + Span span54 = CollectionsMarshal.AsSpan(list174); + span54[0] = new QuestStep(EInteractionType.Craft, null, null, 419) { ItemId = 15720u, ItemCount = 1 }; - index2++; - span174[index2] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419); + span54[1] = new QuestStep(EInteractionType.Interact, 1017330u, new Vector3(-246.72314f, -20.034918f, -90.10455f), 419); obj128.Steps = list174; reference132 = obj128; - num++; - ref QuestSequence reference133 = ref span169[num]; + ref QuestSequence reference133 = ref span53[5]; QuestSequence obj129 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj129.Steps = list175; reference133 = obj129; - num++; - ref QuestSequence reference134 = ref span169[num]; + ref QuestSequence reference134 = ref span53[6]; QuestSequence obj130 = new QuestSequence { Sequence = 6 @@ -176972,33 +146949,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1017334u, new Vector3(-614.374f, 48f, 326.28357f), 400) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1017334u, new Vector3(-614.374f, 48f, 326.28357f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj130.Steps = list176; reference134 = obj130; - num++; - ref QuestSequence reference135 = ref span169[num]; + ref QuestSequence reference135 = ref span53[7]; QuestSequence obj131 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj131.Steps = list177; reference135 = obj131; - num++; - ref QuestSequence reference136 = ref span169[num]; + ref QuestSequence reference136 = ref span53[8]; QuestSequence obj132 = new QuestSequence { Sequence = byte.MaxValue @@ -177006,16 +146977,12 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - ref QuestStep reference137 = ref span178[index2]; + ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list178)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1017335u, new Vector3(-370.9926f, 60.86112f, 309.8954f), 400); - index3 = 1; - List list179 = new List(index3); - CollectionsMarshal.SetCount(list179, index3); - Span span179 = CollectionsMarshal.AsSpan(list179); - num3 = 0; - span179[num3] = new DialogueChoice + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG001_02320_Q1_000_000"), @@ -177032,26 +146999,21 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "Censored"; + CollectionsMarshal.AsSpan(list180)[0] = "Censored"; questRoot22.Author = list180; - index = 11; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference138 = ref span181[num]; + num = 11; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span55 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference138 = ref span55[0]; QuestSequence obj133 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -177070,8 +147032,7 @@ public static class AssemblyQuestLoader }; obj133.Steps = list182; reference138 = obj133; - num++; - ref QuestSequence reference139 = ref span181[num]; + ref QuestSequence reference139 = ref span55[1]; QuestSequence obj134 = new QuestSequence { Sequence = 1 @@ -177079,30 +147040,24 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj134.Steps = list183; reference139 = obj134; - num++; - ref QuestSequence reference140 = ref span181[num]; + ref QuestSequence reference140 = ref span55[2]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj135.Steps = list184; reference140 = obj135; - num++; - ref QuestSequence reference141 = ref span181[num]; + ref QuestSequence reference141 = ref span55[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -177110,9 +147065,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - ref QuestStep reference142 = ref span185[index2]; + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list185)[0]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1017341u, new Vector3(-90.92853f, -8.655593f, 173.84595f), 400) { Fly = true @@ -177120,9 +147073,7 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG002_02321_Q1_000_000"), @@ -177132,26 +147083,22 @@ public static class AssemblyQuestLoader reference142 = obj137; obj136.Steps = list185; reference141 = obj136; - num++; - ref QuestSequence reference143 = ref span181[num]; + ref QuestSequence reference143 = ref span55[4]; QuestSequence obj138 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj138.Steps = list187; reference143 = obj138; - num++; - ref QuestSequence reference144 = ref span181[num]; + ref QuestSequence reference144 = ref span55[5]; QuestSequence obj139 = new QuestSequence { Sequence = 5 @@ -177159,34 +147106,28 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1017339u, new Vector3(-104.875305f, 36.394436f, 170.48901f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj139.Steps = list188; reference144 = obj139; - num++; - ref QuestSequence reference145 = ref span181[num]; + ref QuestSequence reference145 = ref span55[6]; QuestSequence obj140 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj140.Steps = list189; reference145 = obj140; - num++; - ref QuestSequence reference146 = ref span181[num]; + ref QuestSequence reference146 = ref span55[7]; QuestSequence obj141 = new QuestSequence { Sequence = 7 @@ -177194,34 +147135,28 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 1017343u, new Vector3(-375.47876f, 60.106445f, 307.27087f), 400) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1017343u, new Vector3(-375.47876f, 60.106445f, 307.27087f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj141.Steps = list190; reference146 = obj141; - num++; - ref QuestSequence reference147 = ref span181[num]; + ref QuestSequence reference147 = ref span55[8]; QuestSequence obj142 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true }; obj142.Steps = list191; reference147 = obj142; - num++; - ref QuestSequence reference148 = ref span181[num]; + ref QuestSequence reference148 = ref span55[9]; QuestSequence obj143 = new QuestSequence { Sequence = 9 @@ -177229,27 +147164,22 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Action, 2007197u, new Vector3(-376.8521f, 60.135742f, 302.6931f), 400) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Action, 2007197u, new Vector3(-376.8521f, 60.135742f, 302.6931f), 400) { Fly = true, Action = EAction.Seed }; obj143.Steps = list192; reference148 = obj143; - num++; - ref QuestSequence reference149 = ref span181[num]; + ref QuestSequence reference149 = ref span55[10]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -177262,16 +147192,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "liza"; + CollectionsMarshal.AsSpan(list194)[0] = "liza"; questRoot23.Author = list194; - index = 9; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference150 = ref span195[num]; + num = 9; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span56 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference150 = ref span56[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -177279,30 +147206,24 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj145.Steps = list196; reference150 = obj145; - num++; - ref QuestSequence reference151 = ref span195[num]; + ref QuestSequence reference151 = ref span56[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj146.Steps = list197; reference151 = obj146; - num++; - ref QuestSequence reference152 = ref span195[num]; + ref QuestSequence reference152 = ref span56[2]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -177310,33 +147231,27 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 2007198u, new Vector3(-339.65057f, 58.976074f, 319.50854f), 400) + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 2007198u, new Vector3(-339.65057f, 58.976074f, 319.50854f), 400) { StopDistance = 4.5f }; obj147.Steps = list198; reference152 = obj147; - num++; - ref QuestSequence reference153 = ref span195[num]; + ref QuestSequence reference153 = ref span56[3]; QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj148.Steps = list199; reference153 = obj148; - num++; - ref QuestSequence reference154 = ref span195[num]; + ref QuestSequence reference154 = ref span56[4]; QuestSequence obj149 = new QuestSequence { Sequence = 4 @@ -177344,19 +147259,15 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - ref QuestStep reference155 = ref span200[index2]; + ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list200)[0]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; - index3 = 1; - List list201 = new List(index3); - CollectionsMarshal.SetCount(list201, index3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = new DialogueChoice + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG003_02322_Q1_000_000"), @@ -177366,22 +147277,18 @@ public static class AssemblyQuestLoader reference155 = obj150; obj149.Steps = list200; reference154 = obj149; - num++; - ref QuestSequence reference156 = ref span195[num]; + ref QuestSequence reference156 = ref span56[5]; QuestSequence obj151 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj151.Steps = list202; reference156 = obj151; - num++; - ref QuestSequence reference157 = ref span195[num]; + ref QuestSequence reference157 = ref span56[6]; QuestSequence obj152 = new QuestSequence { Sequence = 6 @@ -177389,36 +147296,30 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span57 = CollectionsMarshal.AsSpan(list203); + span57[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15721u, ItemCount = 1 }; - index2++; - span203[index2] = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + span57[1] = new QuestStep(EInteractionType.Interact, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj152.Steps = list203; reference157 = obj152; - num++; - ref QuestSequence reference158 = ref span195[num]; + ref QuestSequence reference158 = ref span56[7]; QuestSequence obj153 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj153.Steps = list204; reference158 = obj153; - num++; - ref QuestSequence reference159 = ref span195[num]; + ref QuestSequence reference159 = ref span56[8]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -177426,9 +147327,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; @@ -177441,26 +147340,21 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "Censored"; + CollectionsMarshal.AsSpan(list206)[0] = "Censored"; questRoot24.Author = list206; - index = 10; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference160 = ref span207[num]; + num = 10; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span58 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference160 = ref span58[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -177479,8 +147373,7 @@ public static class AssemblyQuestLoader }; obj155.Steps = list208; reference160 = obj155; - num++; - ref QuestSequence reference161 = ref span207[num]; + ref QuestSequence reference161 = ref span58[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -177488,30 +147381,24 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj156.Steps = list209; reference161 = obj156; - num++; - ref QuestSequence reference162 = ref span207[num]; + ref QuestSequence reference162 = ref span58[2]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj157.Steps = list210; reference162 = obj157; - num++; - ref QuestSequence reference163 = ref span207[num]; + ref QuestSequence reference163 = ref span58[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -177519,9 +147406,7 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - ref QuestStep reference164 = ref span211[index2]; + ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list211)[0]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true @@ -177529,9 +147414,7 @@ public static class AssemblyQuestLoader num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span212 = CollectionsMarshal.AsSpan(list212); - index3 = 0; - span212[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list212)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMOG004_02323_Q1_000_000"), @@ -177541,25 +147424,21 @@ public static class AssemblyQuestLoader reference164 = obj159; obj158.Steps = list211; reference163 = obj158; - num++; - ref QuestSequence reference165 = ref span207[num]; + ref QuestSequence reference165 = ref span58[4]; QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj160.Steps = list213; reference165 = obj160; - num++; - ref QuestSequence reference166 = ref span207[num]; + ref QuestSequence reference166 = ref span58[5]; QuestSequence obj161 = new QuestSequence { Sequence = 5 @@ -177567,31 +147446,25 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1017442u, new Vector3(-652.8268f, 248.69513f, -767.87976f), 400); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1017442u, new Vector3(-652.8268f, 248.69513f, -767.87976f), 400); obj161.Steps = list214; reference166 = obj161; - num++; - ref QuestSequence reference167 = ref span207[num]; + ref QuestSequence reference167 = ref span58[6]; QuestSequence obj162 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj162.Steps = list215; reference167 = obj162; - num++; - ref QuestSequence reference168 = ref span207[num]; + ref QuestSequence reference168 = ref span58[7]; QuestSequence obj163 = new QuestSequence { Sequence = 7 @@ -177599,35 +147472,29 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.Action, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Action, 2007199u, new Vector3(-651.11774f, 249.04248f, -770.6264f), 400) { Fly = true, Action = EAction.Roar }; obj163.Steps = list216; reference168 = obj163; - num++; - ref QuestSequence reference169 = ref span207[num]; + ref QuestSequence reference169 = ref span58[8]; QuestSequence obj164 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj164.Steps = list217; reference169 = obj164; - num++; - ref QuestSequence reference170 = ref span207[num]; + ref QuestSequence reference170 = ref span58[9]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -177635,9 +147502,7 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017169u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true }; @@ -177650,26 +147515,21 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "Censored"; + CollectionsMarshal.AsSpan(list219)[0] = "Censored"; questRoot25.Author = list219; - index = 6; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference171 = ref span220[num]; + num = 6; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span59 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference171 = ref span59[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -177688,8 +147548,7 @@ public static class AssemblyQuestLoader }; obj166.Steps = list221; reference171 = obj166; - num++; - ref QuestSequence reference172 = ref span220[num]; + ref QuestSequence reference172 = ref span59[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -177697,30 +147556,24 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj167.Steps = list222; reference172 = obj167; - num++; - ref QuestSequence reference173 = ref span220[num]; + ref QuestSequence reference173 = ref span59[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj168.Steps = list223; reference173 = obj168; - num++; - ref QuestSequence reference174 = ref span220[num]; + ref QuestSequence reference174 = ref span59[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -177728,30 +147581,24 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; obj169.Steps = list224; reference174 = obj169; - num++; - ref QuestSequence reference175 = ref span220[num]; + ref QuestSequence reference175 = ref span59[4]; QuestSequence obj170 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj170.Steps = list225; reference175 = obj170; - num++; - ref QuestSequence reference176 = ref span220[num]; + ref QuestSequence reference176 = ref span59[5]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -177759,9 +147606,8 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span60 = CollectionsMarshal.AsSpan(list226); + span60[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15722u, ItemCount = 1, @@ -177773,8 +147619,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj171.Steps = list226; reference176 = obj171; questRoot25.QuestSequence = list220; @@ -177784,26 +147629,21 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "Censored"; + CollectionsMarshal.AsSpan(list227)[0] = "Censored"; questRoot26.Author = list227; - index = 7; - List list228 = new List(index); - CollectionsMarshal.SetCount(list228, index); - Span span228 = CollectionsMarshal.AsSpan(list228); - num = 0; - ref QuestSequence reference177 = ref span228[num]; + num = 7; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span61 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference177 = ref span61[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -177822,8 +147662,7 @@ public static class AssemblyQuestLoader }; obj172.Steps = list229; reference177 = obj172; - num++; - ref QuestSequence reference178 = ref span228[num]; + ref QuestSequence reference178 = ref span61[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -177831,23 +147670,18 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj173.Steps = list230; reference178 = obj173; - num++; - ref QuestSequence reference179 = ref span228[num]; + ref QuestSequence reference179 = ref span61[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -177858,8 +147692,7 @@ public static class AssemblyQuestLoader }; obj174.Steps = list231; reference179 = obj174; - num++; - ref QuestSequence reference180 = ref span228[num]; + ref QuestSequence reference180 = ref span61[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 @@ -177867,31 +147700,25 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1012162u, new Vector3(135.97314f, 24.376427f, 12.619202f), 418); obj175.Steps = list232; reference180 = obj175; - num++; - ref QuestSequence reference181 = ref span228[num]; + ref QuestSequence reference181 = ref span61[4]; QuestSequence obj176 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj176.Steps = list233; reference181 = obj176; - num++; - ref QuestSequence reference182 = ref span228[num]; + ref QuestSequence reference182 = ref span61[5]; QuestSequence obj177 = new QuestSequence { Sequence = 5 @@ -177899,23 +147726,19 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); + CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1017172u, new Vector3(-329.3355f, 59.056396f, 298.23755f), 400); obj177.Steps = list234; reference182 = obj177; - num++; - ref QuestSequence reference183 = ref span228[num]; + ref QuestSequence reference183 = ref span61[6]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 15723u, ItemCount = 1, @@ -177927,8 +147750,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span235[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); + span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400); obj178.Steps = list235; reference183 = obj178; questRoot26.QuestSequence = list228; @@ -177938,16 +147760,13 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = "Censored"; + CollectionsMarshal.AsSpan(list236)[0] = "Censored"; questRoot27.Author = list236; - index = 9; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref QuestSequence reference184 = ref span237[num]; + num = 9; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span63 = CollectionsMarshal.AsSpan(list237); + ref QuestSequence reference184 = ref span63[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -177955,9 +147774,7 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -177976,22 +147793,18 @@ public static class AssemblyQuestLoader }; obj179.Steps = list238; reference184 = obj179; - num++; - ref QuestSequence reference185 = ref span237[num]; + ref QuestSequence reference185 = ref span63[1]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj180.Steps = list239; reference185 = obj180; - num++; - ref QuestSequence reference186 = ref span237[num]; + ref QuestSequence reference186 = ref span63[2]; QuestSequence obj181 = new QuestSequence { Sequence = 2 @@ -177999,35 +147812,29 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj181.Steps = list240; reference186 = obj181; - num++; - ref QuestSequence reference187 = ref span237[num]; + ref QuestSequence reference187 = ref span63[3]; QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj182.Steps = list241; reference187 = obj182; - num++; - ref QuestSequence reference188 = ref span237[num]; + ref QuestSequence reference188 = ref span63[4]; QuestSequence obj183 = new QuestSequence { Sequence = 4 @@ -178035,69 +147842,50 @@ public static class AssemblyQuestLoader num2 = 3; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - ref QuestStep reference189 = ref span242[index2]; + Span span64 = CollectionsMarshal.AsSpan(list242); + ref QuestStep reference189 = ref span64[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2007202u, new Vector3(-372.15234f, 60.318848f, 335.89685f), 400); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list243; reference189 = questStep6; - index2++; - ref QuestStep reference190 = ref span242[index2]; + ref QuestStep reference190 = ref span64[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list244; reference190 = questStep7; - index2++; - span242[index2] = new QuestStep(EInteractionType.Interact, 2007221u, new Vector3(-364.9806f, 60.471436f, 331.74634f), 400); + span64[2] = new QuestStep(EInteractionType.Interact, 2007221u, new Vector3(-364.9806f, 60.471436f, 331.74634f), 400); obj183.Steps = list242; reference188 = obj183; - num++; - ref QuestSequence reference191 = ref span237[num]; + ref QuestSequence reference191 = ref span63[5]; QuestSequence obj184 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj184.Steps = list245; reference191 = obj184; - num++; - ref QuestSequence reference192 = ref span237[num]; + ref QuestSequence reference192 = ref span63[6]; QuestSequence obj185 = new QuestSequence { Sequence = 6 @@ -178105,27 +147893,21 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.Interact, 1017448u, new Vector3(-383.35242f, 59.9946f, 297.74927f), 400); + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1017448u, new Vector3(-383.35242f, 59.9946f, 297.74927f), 400); obj185.Steps = list246; reference192 = obj185; - num++; - ref QuestSequence reference193 = ref span237[num]; + ref QuestSequence reference193 = ref span63[7]; QuestSequence obj186 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj186.Steps = list247; reference193 = obj186; - num++; - ref QuestSequence reference194 = ref span237[num]; + ref QuestSequence reference194 = ref span63[8]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -178133,9 +147915,8 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.Craft, null, null, 400) + Span span67 = CollectionsMarshal.AsSpan(list248); + span67[0] = new QuestStep(EInteractionType.Craft, null, null, 400) { ItemId = 15724u, ItemCount = 1, @@ -178147,8 +147928,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span248[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400); obj187.Steps = list248; reference194 = obj187; questRoot27.QuestSequence = list237; @@ -178158,26 +147938,21 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span249 = CollectionsMarshal.AsSpan(list249); - index = 0; - span249[index] = "Skiaz"; + CollectionsMarshal.AsSpan(list249)[0] = "Skiaz"; questRoot28.Author = list249; - index = 3; - List list250 = new List(index); - CollectionsMarshal.SetCount(list250, index); - Span span250 = CollectionsMarshal.AsSpan(list250); - num = 0; - ref QuestSequence reference195 = ref span250[num]; + num = 3; + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + Span span68 = CollectionsMarshal.AsSpan(list250); + ref QuestSequence reference195 = ref span68[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -178196,8 +147971,7 @@ public static class AssemblyQuestLoader }; obj188.Steps = list251; reference195 = obj188; - num++; - ref QuestSequence reference196 = ref span250[num]; + ref QuestSequence reference196 = ref span68[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -178205,31 +147979,26 @@ public static class AssemblyQuestLoader num2 = 2; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + Span span69 = CollectionsMarshal.AsSpan(list252); + span69[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; - index2++; - span252[index2] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + span69[1] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Fly = true }; obj189.Steps = list252; reference196 = obj189; - num++; - ref QuestSequence reference197 = ref span250[num]; + ref QuestSequence reference197 = ref span68[2]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -178255,16 +148024,13 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "liza"; + CollectionsMarshal.AsSpan(list254)[0] = "liza"; questRoot29.Author = list254; - index = 4; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference198 = ref span255[num]; + num = 4; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span70 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference198 = ref span70[0]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -178272,9 +148038,8 @@ public static class AssemblyQuestLoader num2 = 3; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - ref QuestStep reference199 = ref span256[index2]; + Span span71 = CollectionsMarshal.AsSpan(list256); + ref QuestStep reference199 = ref span71[0]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -178282,27 +148047,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - index3 = 1; - List list257 = new List(index3); - CollectionsMarshal.SetCount(list257, index3); - Span span257 = CollectionsMarshal.AsSpan(list257); - num3 = 0; - span257[num3] = 351; + num3 = 1; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + CollectionsMarshal.AsSpan(list257)[0] = 351; skipStepConditions2.InTerritory = list257; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - Span span258 = CollectionsMarshal.AsSpan(list258); - index3 = 0; - span258[index3] = 351; + CollectionsMarshal.AsSpan(list258)[0] = 351; skipAetheryteCondition.InTerritory = list258; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj192.SkipConditions = skipConditions2; reference199 = obj192; - index2++; - span256[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span71[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -178313,33 +148073,28 @@ public static class AssemblyQuestLoader } } }; - index2++; - span256[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span71[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj191.Steps = list256; reference198 = obj191; - num++; - ref QuestSequence reference200 = ref span255[num]; + ref QuestSequence reference200 = ref span70[1]; QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj193.Steps = list259; reference200 = obj193; - num++; - ref QuestSequence reference201 = ref span255[num]; + ref QuestSequence reference201 = ref span70[2]; QuestSequence obj194 = new QuestSequence { Sequence = 2 @@ -178347,9 +148102,7 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.Duty, null, null, 402) + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Duty, null, null, 402) { DutyOptions = new DutyOptions { @@ -178358,29 +148111,25 @@ public static class AssemblyQuestLoader }; obj194.Steps = list260; reference201 = obj194; - num++; - ref QuestSequence reference202 = ref span255[num]; + ref QuestSequence reference202 = ref span70[3]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span261[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span72[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span261[num2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span72[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f, NextQuestId = new QuestId(2394) @@ -178394,16 +148143,13 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - Span span262 = CollectionsMarshal.AsSpan(list262); - index = 0; - span262[index] = "liza"; + CollectionsMarshal.AsSpan(list262)[0] = "liza"; questRoot30.Author = list262; - index = 2; - List list263 = new List(index); - CollectionsMarshal.SetCount(list263, index); - Span span263 = CollectionsMarshal.AsSpan(list263); - num = 0; - ref QuestSequence reference203 = ref span263[num]; + num = 2; + List list263 = new List(num); + CollectionsMarshal.SetCount(list263, num); + Span span73 = CollectionsMarshal.AsSpan(list263); + ref QuestSequence reference203 = ref span73[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -178411,9 +148157,8 @@ public static class AssemblyQuestLoader num2 = 3; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - ref QuestStep reference204 = ref span264[index2]; + Span span74 = CollectionsMarshal.AsSpan(list264); + ref QuestStep reference204 = ref span74[0]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -178421,27 +148166,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - index3 = 1; - List list265 = new List(index3); - CollectionsMarshal.SetCount(list265, index3); - Span span265 = CollectionsMarshal.AsSpan(list265); - num3 = 0; - span265[num3] = 351; + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + CollectionsMarshal.AsSpan(list265)[0] = 351; skipStepConditions3.InTerritory = list265; skipConditions3.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); num3 = 1; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span266 = CollectionsMarshal.AsSpan(list266); - index3 = 0; - span266[index3] = 351; + CollectionsMarshal.AsSpan(list266)[0] = 351; skipAetheryteCondition2.InTerritory = list266; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj197.SkipConditions = skipConditions3; reference204 = obj197; - index2++; - span264[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span74[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -178452,25 +148192,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span264[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span74[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj196.Steps = list264; reference203 = obj196; - num++; - ref QuestSequence reference205 = ref span263[num]; + ref QuestSequence reference205 = ref span73[1]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -178491,8 +148228,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span267[num2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -178505,16 +148241,13 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - Span span268 = CollectionsMarshal.AsSpan(list268); - index = 0; - span268[index] = "liza"; + CollectionsMarshal.AsSpan(list268)[0] = "liza"; questRoot31.Author = list268; - index = 5; - List list269 = new List(index); - CollectionsMarshal.SetCount(list269, index); - Span span269 = CollectionsMarshal.AsSpan(list269); - num = 0; - ref QuestSequence reference206 = ref span269[num]; + num = 5; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span76 = CollectionsMarshal.AsSpan(list269); + ref QuestSequence reference206 = ref span76[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -178522,30 +148255,24 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399); + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016638u, new Vector3(-42.4964f, 100.873566f, -183.12354f), 399); obj199.Steps = list270; reference206 = obj199; - num++; - ref QuestSequence reference207 = ref span269[num]; + ref QuestSequence reference207 = ref span76[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj200.Steps = list271; reference207 = obj200; - num++; - ref QuestSequence reference208 = ref span269[num]; + ref QuestSequence reference208 = ref span76[2]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -178553,26 +148280,21 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.Interact, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { Fly = true }; obj201.Steps = list272; reference208 = obj201; - num++; - ref QuestSequence reference209 = ref span269[num]; + ref QuestSequence reference209 = ref span76[3]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list273 = new List(num2); + CollectionsMarshal.SetCount(list273, num2); + CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -178581,8 +148303,7 @@ public static class AssemblyQuestLoader }; obj202.Steps = list273; reference209 = obj202; - num++; - ref QuestSequence reference210 = ref span269[num]; + ref QuestSequence reference210 = ref span76[4]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -178590,9 +148311,7 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017932u, new Vector3(47.745483f, 71.508316f, 68.16199f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2336) @@ -178606,33 +148325,27 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - Span span275 = CollectionsMarshal.AsSpan(list275); - index = 0; - span275[index] = "liza"; + CollectionsMarshal.AsSpan(list275)[0] = "liza"; questRoot32.Author = list275; - index = 3; - List list276 = new List(index); - CollectionsMarshal.SetCount(list276, index); - Span span276 = CollectionsMarshal.AsSpan(list276); - num = 0; - ref QuestSequence reference211 = ref span276[num]; + num = 3; + List list276 = new List(num); + CollectionsMarshal.SetCount(list276, num); + Span span77 = CollectionsMarshal.AsSpan(list276); + ref QuestSequence reference211 = ref span77[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj204.Steps = list277; reference211 = obj204; - num++; - ref QuestSequence reference212 = ref span276[num]; + ref QuestSequence reference212 = ref span77[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -178640,9 +148353,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -178651,18 +148362,15 @@ public static class AssemblyQuestLoader }; obj205.Steps = list278; reference212 = obj205; - num++; - ref QuestSequence reference213 = ref span276[num]; + ref QuestSequence reference213 = ref span77[2]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2337) }; @@ -178675,16 +148383,13 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - Span span280 = CollectionsMarshal.AsSpan(list280); - index = 0; - span280[index] = "liza"; + CollectionsMarshal.AsSpan(list280)[0] = "liza"; questRoot33.Author = list280; - index = 3; - List list281 = new List(index); - CollectionsMarshal.SetCount(list281, index); - Span span281 = CollectionsMarshal.AsSpan(list281); - num = 0; - ref QuestSequence reference214 = ref span281[num]; + num = 3; + List list281 = new List(num); + CollectionsMarshal.SetCount(list281, num); + Span span78 = CollectionsMarshal.AsSpan(list281); + ref QuestSequence reference214 = ref span78[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -178692,26 +148397,21 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016640u, new Vector3(-48.508484f, 100.66968f, -148.33301f), 399) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016640u, new Vector3(-48.508484f, 100.66968f, -148.33301f), 399) { StopDistance = 7f }; obj207.Steps = list282; reference214 = obj207; - num++; - ref QuestSequence reference215 = ref span281[num]; + ref QuestSequence reference215 = ref span78[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -178720,8 +148420,7 @@ public static class AssemblyQuestLoader }; obj208.Steps = list283; reference215 = obj208; - num++; - ref QuestSequence reference216 = ref span281[num]; + ref QuestSequence reference216 = ref span78[2]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -178729,9 +148428,7 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017942u, new Vector3(-42.130188f, 100.88026f, -183.27612f), 399) { StopDistance = 5f, NextQuestId = new QuestId(2338) @@ -178745,38 +148442,31 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - Span span285 = CollectionsMarshal.AsSpan(list285); - index = 0; - span285[index] = "liza"; + CollectionsMarshal.AsSpan(list285)[0] = "liza"; questRoot34.Author = list285; - index = 6; - List list286 = new List(index); - CollectionsMarshal.SetCount(list286, index); - Span span286 = CollectionsMarshal.AsSpan(list286); - num = 0; - ref QuestSequence reference217 = ref span286[num]; + num = 6; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + Span span79 = CollectionsMarshal.AsSpan(list286); + ref QuestSequence reference217 = ref span79[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj210.Steps = list287; reference217 = obj210; - num++; - span286[num] = new QuestSequence + span79[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference218 = ref span286[num]; + ref QuestSequence reference218 = ref span79[2]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -178784,9 +148474,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -178795,30 +148483,25 @@ public static class AssemblyQuestLoader }; obj211.Steps = list288; reference218 = obj211; - num++; - span286[num] = new QuestSequence + span79[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference219 = ref span286[num]; + ref QuestSequence reference219 = ref span79[4]; QuestSequence obj212 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)399 }; obj212.Steps = list289; reference219 = obj212; - num++; - ref QuestSequence reference220 = ref span286[num]; + ref QuestSequence reference220 = ref span79[5]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -178826,9 +148509,7 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017944u, new Vector3(-233.90558f, 148.49608f, -7.8584595f), 399) { StopDistance = 7f, NextQuestId = new QuestId(2339) @@ -178842,33 +148523,27 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - Span span291 = CollectionsMarshal.AsSpan(list291); - index = 0; - span291[index] = "liza"; + CollectionsMarshal.AsSpan(list291)[0] = "liza"; questRoot35.Author = list291; - index = 3; - List list292 = new List(index); - CollectionsMarshal.SetCount(list292, index); - Span span292 = CollectionsMarshal.AsSpan(list292); - num = 0; - ref QuestSequence reference221 = ref span292[num]; + num = 3; + List list292 = new List(num); + CollectionsMarshal.SetCount(list292, num); + Span span80 = CollectionsMarshal.AsSpan(list292); + ref QuestSequence reference221 = ref span80[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj214.Steps = list293; reference221 = obj214; - num++; - ref QuestSequence reference222 = ref span292[num]; + ref QuestSequence reference222 = ref span80[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -178876,26 +148551,21 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.Interact, 1018346u, new Vector3(-237.17102f, 123.32269f, -209.82684f), 399) + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1018346u, new Vector3(-237.17102f, 123.32269f, -209.82684f), 399) { Fly = true }; obj215.Steps = list294; reference222 = obj215; - num++; - ref QuestSequence reference223 = ref span292[num]; + ref QuestSequence reference223 = ref span80[2]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -178908,16 +148578,13 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list296)[0] = "JerryWester"; questRoot36.Author = list296; - index = 4; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference224 = ref span297[num]; + num = 4; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span81 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference224 = ref span81[0]; QuestSequence obj217 = new QuestSequence { Sequence = 0 @@ -178925,26 +148592,21 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) + CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1015596u, new Vector3(15.915161f, 15.96505f, -0.22894287f), 419) { StopDistance = 7f }; obj217.Steps = list298; reference224 = obj217; - num++; - ref QuestSequence reference225 = ref span297[num]; + ref QuestSequence reference225 = ref span81[1]; QuestSequence obj218 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -178954,8 +148616,7 @@ public static class AssemblyQuestLoader }; obj218.Steps = list299; reference225 = obj218; - num++; - ref QuestSequence reference226 = ref span297[num]; + ref QuestSequence reference226 = ref span81[2]; QuestSequence obj219 = new QuestSequence { Sequence = 2 @@ -178963,27 +148624,22 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1011217u, new Vector3(17.990356f, 16.009666f, -9.567444f), 419) { StopDistance = 7f, TargetTerritoryId = (ushort)433 }; obj219.Steps = list300; reference226 = obj219; - num++; - ref QuestSequence reference227 = ref span297[num]; + ref QuestSequence reference227 = ref span81[3]; QuestSequence obj220 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -178996,16 +148652,13 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list302)[0] = "JerryWester"; questRoot37.Author = list302; - index = 5; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference228 = ref span303[num]; + num = 5; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span82 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference228 = ref span82[0]; QuestSequence obj221 = new QuestSequence { Sequence = 0 @@ -179013,34 +148666,28 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017721u, new Vector3(2.0598755f, 0.022254245f, -1.3275757f), 433) { StopDistance = 5f }; obj221.Steps = list304; reference228 = obj221; - num++; - ref QuestSequence reference229 = ref span303[num]; + ref QuestSequence reference229 = ref span82[1]; QuestSequence obj222 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj222.Steps = list305; reference229 = obj222; - num++; - ref QuestSequence reference230 = ref span303[num]; + ref QuestSequence reference230 = ref span82[2]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -179048,46 +148695,38 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.Interact, 1017725u, new Vector3(603.6315f, 331.42905f, -306.508f), 155) + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1017725u, new Vector3(603.6315f, 331.42905f, -306.508f), 155) { Fly = true }; obj223.Steps = list306; reference230 = obj223; - num++; - ref QuestSequence reference231 = ref span303[num]; + ref QuestSequence reference231 = ref span82[3]; QuestSequence obj224 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list307 = new List(index2); - CollectionsMarshal.SetCount(list307, index2); - Span span307 = CollectionsMarshal.AsSpan(list307); - num2 = 0; - ref QuestStep reference232 = ref span307[num2]; + num2 = 1; + List list307 = new List(num2); + CollectionsMarshal.SetCount(list307, num2); + ref QuestStep reference232 = ref CollectionsMarshal.AsSpan(list307)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Duty, null, null, 155); DutyOptions obj225 = new DutyOptions { ContentFinderConditionId = 182u }; - 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"; + 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"; obj225.Notes = list308; questStep8.DutyOptions = obj225; reference232 = questStep8; obj224.Steps = list307; reference231 = obj224; - num++; - ref QuestSequence reference233 = ref span303[num]; + ref QuestSequence reference233 = ref span82[4]; QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue @@ -179095,9 +148734,7 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017724u, new Vector3(601.9531f, 331.81714f, -308.8579f), 155) { StopDistance = 7f }; @@ -179110,33 +148747,27 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list310)[0] = "JerryWester"; questRoot38.Author = list310; - index = 5; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference234 = ref span311[num]; + num = 5; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span84 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference234 = ref span84[0]; QuestSequence obj227 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj227.Steps = list312; reference234 = obj227; - num++; - ref QuestSequence reference235 = ref span311[num]; + ref QuestSequence reference235 = ref span84[1]; QuestSequence obj228 = new QuestSequence { Sequence = 1 @@ -179144,9 +148775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) + CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1012380u, new Vector3(124.46777f, 24.458836f, 0.47296143f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -179157,25 +148786,21 @@ public static class AssemblyQuestLoader }; obj228.Steps = list313; reference235 = obj228; - num++; - ref QuestSequence reference236 = ref span311[num]; + ref QuestSequence reference236 = ref span84[2]; QuestSequence obj229 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj229.Steps = list314; reference236 = obj229; - num++; - ref QuestSequence reference237 = ref span311[num]; + ref QuestSequence reference237 = ref span84[3]; QuestSequence obj230 = new QuestSequence { Sequence = 3 @@ -179183,34 +148808,28 @@ public static class AssemblyQuestLoader num2 = 3; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.UseItem, null, null, 418) + Span span85 = CollectionsMarshal.AsSpan(list315); + span85[0] = new QuestStep(EInteractionType.UseItem, null, null, 418) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; obj230.Steps = list315; reference237 = obj230; - num++; - ref QuestSequence reference238 = ref span311[num]; + ref QuestSequence reference238 = ref span84[4]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -179224,16 +148843,13 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - Span span317 = CollectionsMarshal.AsSpan(list317); - index = 0; - span317[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list317)[0] = "JerryWester"; questRoot39.Author = list317; - index = 7; - List list318 = new List(index); - CollectionsMarshal.SetCount(list318, index); - Span span318 = CollectionsMarshal.AsSpan(list318); - num = 0; - ref QuestSequence reference239 = ref span318[num]; + num = 7; + List list318 = new List(num); + CollectionsMarshal.SetCount(list318, num); + Span span86 = CollectionsMarshal.AsSpan(list318); + ref QuestSequence reference239 = ref span86[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -179241,9 +148857,7 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -179256,22 +148870,18 @@ public static class AssemblyQuestLoader }; obj232.Steps = list319; reference239 = obj232; - num++; - ref QuestSequence reference240 = ref span318[num]; + ref QuestSequence reference240 = ref span86[1]; QuestSequence obj233 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj233.Steps = list320; reference240 = obj233; - num++; - ref QuestSequence reference241 = ref span318[num]; + ref QuestSequence reference241 = ref span86[2]; QuestSequence obj234 = new QuestSequence { Sequence = 2 @@ -179279,34 +148889,28 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.Interact, 1017732u, new Vector3(-74.99817f, 64.60398f, -289.53992f), 180) + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1017732u, new Vector3(-74.99817f, 64.60398f, -289.53992f), 180) { Fly = true }; obj234.Steps = list321; reference241 = obj234; - num++; - ref QuestSequence reference242 = ref span318[num]; + ref QuestSequence reference242 = ref span86[3]; QuestSequence obj235 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj235.Steps = list322; reference242 = obj235; - num++; - ref QuestSequence reference243 = ref span318[num]; + ref QuestSequence reference243 = ref span86[4]; QuestSequence obj236 = new QuestSequence { Sequence = 4 @@ -179314,14 +148918,12 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.94925f, 74.435455f, -281.74304f), 180) + Span span87 = CollectionsMarshal.AsSpan(list323); + span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.94925f, 74.435455f, -281.74304f), 180) { Fly = true }; - index2++; - span323[index2] = new QuestStep(EInteractionType.Interact, 1017734u, new Vector3(-105.4552f, 67.90736f, -277.7295f), 180) + span87[1] = new QuestStep(EInteractionType.Interact, 1017734u, new Vector3(-105.4552f, 67.90736f, -277.7295f), 180) { DelaySecondsAtStart = 1f, DisableNavmesh = true, @@ -179329,25 +148931,21 @@ public static class AssemblyQuestLoader }; obj236.Steps = list323; reference243 = obj236; - num++; - ref QuestSequence reference244 = ref span318[num]; + ref QuestSequence reference244 = ref span86[5]; QuestSequence obj237 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj237.Steps = list324; reference244 = obj237; - num++; - ref QuestSequence reference245 = ref span318[num]; + ref QuestSequence reference245 = ref span86[6]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -179355,9 +148953,7 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span325[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017736u, new Vector3(-42.008118f, 64.500336f, -228.47339f), 180); + CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017736u, new Vector3(-42.008118f, 64.500336f, -228.47339f), 180); obj238.Steps = list325; reference245 = obj238; questRoot39.QuestSequence = list318; @@ -179367,26 +148963,21 @@ public static class AssemblyQuestLoader num = 1; List list326 = new List(num); CollectionsMarshal.SetCount(list326, num); - Span span326 = CollectionsMarshal.AsSpan(list326); - index = 0; - span326[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list326)[0] = "JerryWester"; questRoot40.Author = list326; - index = 10; - List list327 = new List(index); - CollectionsMarshal.SetCount(list327, index); - Span span327 = CollectionsMarshal.AsSpan(list327); - num = 0; - ref QuestSequence reference246 = ref span327[num]; + num = 10; + List list327 = new List(num); + CollectionsMarshal.SetCount(list327, num); + Span span88 = CollectionsMarshal.AsSpan(list327); + ref QuestSequence reference246 = ref span88[0]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -179399,8 +148990,7 @@ public static class AssemblyQuestLoader }; obj239.Steps = list328; reference246 = obj239; - num++; - ref QuestSequence reference247 = ref span327[num]; + ref QuestSequence reference247 = ref span88[1]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -179408,30 +148998,24 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.Interact, 1017865u, new Vector3(74.906494f, 66.5736f, -242.35907f), 180) + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1017865u, new Vector3(74.906494f, 66.5736f, -242.35907f), 180) { Fly = true }; obj240.Steps = list329; reference247 = obj240; - num++; - ref QuestSequence reference248 = ref span327[num]; + ref QuestSequence reference248 = ref span88[2]; QuestSequence obj241 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj241.Steps = list330; reference248 = obj241; - num++; - ref QuestSequence reference249 = ref span327[num]; + ref QuestSequence reference249 = ref span88[3]; QuestSequence obj242 = new QuestSequence { Sequence = 3 @@ -179439,33 +149023,27 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span331[index2] = new QuestStep(EInteractionType.Interact, 2007416u, new Vector3(88.76172f, 48.599854f, -399.5575f), 180) + CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.Interact, 2007416u, new Vector3(88.76172f, 48.599854f, -399.5575f), 180) { Fly = true }; obj242.Steps = list331; reference249 = obj242; - num++; - ref QuestSequence reference250 = ref span327[num]; + ref QuestSequence reference250 = ref span88[4]; QuestSequence obj243 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj243.Steps = list332; reference250 = obj243; - num++; - ref QuestSequence reference251 = ref span327[num]; + ref QuestSequence reference251 = ref span88[5]; QuestSequence obj244 = new QuestSequence { Sequence = 5 @@ -179473,54 +149051,43 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.Interact, 1018112u, new Vector3(87.96814f, 55.499306f, -454.5205f), 180); + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1018112u, new Vector3(87.96814f, 55.499306f, -454.5205f), 180); obj244.Steps = list333; reference251 = obj244; - num++; - ref QuestSequence reference252 = ref span327[num]; + ref QuestSequence reference252 = ref span88[6]; QuestSequence obj245 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; - 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) + 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) { Fly = true }; - num2++; - span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) + span89[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.06644f, 26.61216f, -712.6371f), 180) { Fly = true }; - num2++; - span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) + span89[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(176.3917f, 29.076319f, -652.8805f), 180) { Fly = true }; - num2++; - span334[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) + span89[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.06934f, 23.642702f, -656.43506f), 180) { Fly = true }; - num2++; - span334[num2] = new QuestStep(EInteractionType.Interact, 1017739u, new Vector3(146.34924f, 24.163107f, -635.40094f), 180); + span89[6] = new QuestStep(EInteractionType.Interact, 1017739u, new Vector3(146.34924f, 24.163107f, -635.40094f), 180); obj245.Steps = list334; reference252 = obj245; - num++; - ref QuestSequence reference253 = ref span327[num]; + ref QuestSequence reference253 = ref span88[7]; QuestSequence obj246 = new QuestSequence { Sequence = 7 @@ -179528,26 +149095,21 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.Interact, 1017741u, new Vector3(146.68494f, 24.240011f, -632.4712f), 180) + CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1017741u, new Vector3(146.68494f, 24.240011f, -632.4712f), 180) { StopDistance = 7f }; obj246.Steps = list335; reference253 = obj246; - num++; - ref QuestSequence reference254 = ref span327[num]; + ref QuestSequence reference254 = ref span88[8]; QuestSequence obj247 = new QuestSequence { Sequence = 8 }; - 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) + num2 = 1; + List list336 = new List(num2); + CollectionsMarshal.SetCount(list336, num2); + CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Duty, null, null, 180) { DutyOptions = new DutyOptions { @@ -179556,8 +149118,7 @@ public static class AssemblyQuestLoader }; obj247.Steps = list336; reference254 = obj247; - num++; - ref QuestSequence reference255 = ref span327[num]; + ref QuestSequence reference255 = ref span88[9]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -179565,9 +149126,7 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017744u, new Vector3(-48.29486f, 64.43991f, -235.5841f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook @@ -179581,26 +149140,21 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - Span span338 = CollectionsMarshal.AsSpan(list338); - index = 0; - span338[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list338)[0] = "JerryWester"; questRoot41.Author = list338; - index = 7; - List list339 = new List(index); - CollectionsMarshal.SetCount(list339, index); - Span span339 = CollectionsMarshal.AsSpan(list339); - num = 0; - ref QuestSequence reference256 = ref span339[num]; + num = 7; + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + Span span90 = CollectionsMarshal.AsSpan(list339); + ref QuestSequence reference256 = ref span90[0]; QuestSequence obj249 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook, SkipConditions = new SkipConditions @@ -179613,8 +149167,7 @@ public static class AssemblyQuestLoader }; obj249.Steps = list340; reference256 = obj249; - num++; - ref QuestSequence reference257 = ref span339[num]; + ref QuestSequence reference257 = ref span90[1]; QuestSequence obj250 = new QuestSequence { Sequence = 1 @@ -179622,30 +149175,24 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1006325u, new Vector3(-141.55798f, 64.59769f, -212.26831f), 180) { Fly = true }; obj250.Steps = list341; reference257 = obj250; - num++; - ref QuestSequence reference258 = ref span339[num]; + ref QuestSequence reference258 = ref span90[2]; QuestSequence obj251 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj251.Steps = list342; reference258 = obj251; - num++; - ref QuestSequence reference259 = ref span339[num]; + ref QuestSequence reference259 = ref span90[3]; QuestSequence obj252 = new QuestSequence { Sequence = 3 @@ -179653,41 +149200,34 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.Interact, 1017747u, new Vector3(-96.910095f, 62.55459f, -160.05188f), 180) + CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Interact, 1017747u, new Vector3(-96.910095f, 62.55459f, -160.05188f), 180) { Fly = true }; obj252.Steps = list343; reference259 = obj252; - num++; - ref QuestSequence reference260 = ref span339[num]; + ref QuestSequence reference260 = ref span90[4]; QuestSequence obj253 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; obj253.Steps = list344; reference260 = obj253; - num++; - ref QuestSequence reference261 = ref span339[num]; + ref QuestSequence reference261 = ref span90[5]; QuestSequence obj254 = new QuestSequence { Sequence = 5 @@ -179695,26 +149235,21 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.Interact, 1018368u, new Vector3(-8.46875f, 0f, -3.2502441f), 212) + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Interact, 1018368u, new Vector3(-8.46875f, 0f, -3.2502441f), 212) { StopDistance = 5f }; obj254.Steps = list345; reference261 = obj254; - num++; - ref QuestSequence reference262 = ref span339[num]; + ref QuestSequence reference262 = ref span90[6]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; @@ -179727,16 +149262,13 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - Span span347 = CollectionsMarshal.AsSpan(list347); - index = 0; - span347[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list347)[0] = "JerryWester"; questRoot42.Author = list347; - index = 6; - List list348 = new List(index); - CollectionsMarshal.SetCount(list348, index); - Span span348 = CollectionsMarshal.AsSpan(list348); - num = 0; - ref QuestSequence reference263 = ref span348[num]; + num = 6; + List list348 = new List(num); + CollectionsMarshal.SetCount(list348, num); + Span span92 = CollectionsMarshal.AsSpan(list348); + ref QuestSequence reference263 = ref span92[0]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -179744,9 +149276,7 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146) + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo, @@ -179760,63 +149290,47 @@ public static class AssemblyQuestLoader }; obj256.Steps = list349; reference263 = obj256; - num++; - ref QuestSequence reference264 = ref span348[num]; + ref QuestSequence reference264 = ref span92[1]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list350 = new List(index2); - CollectionsMarshal.SetCount(list350, index2); - Span span350 = CollectionsMarshal.AsSpan(list350); - num2 = 0; - ref QuestStep reference265 = ref span350[num2]; + num2 = 3; + List list350 = new List(num2); + CollectionsMarshal.SetCount(list350, num2); + Span span93 = CollectionsMarshal.AsSpan(list350); + ref QuestStep reference265 = ref span93[0]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list351; reference265 = questStep9; - num2++; - ref QuestStep reference266 = ref span350[num2]; + ref QuestStep reference266 = ref span93[1]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1006224u, new Vector3(-77.74481f, 27.626602f, -325.42914f), 146) { Mount = true }; - 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); + 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); obj258.CompletionQuestVariablesFlags = list352; reference266 = obj258; - num2++; - ref QuestStep reference267 = ref span350[num2]; + ref QuestStep reference267 = ref span93[2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1006213u, new Vector3(-102.49487f, 37.8654f, -355.97772f), 146) { Fly = true @@ -179824,25 +149338,18 @@ public static class AssemblyQuestLoader num3 = 6; List list353 = new List(num3); CollectionsMarshal.SetCount(list353, num3); - 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); + 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); obj259.CompletionQuestVariablesFlags = list353; reference267 = obj259; obj257.Steps = list350; reference264 = obj257; - num++; - ref QuestSequence reference268 = ref span348[num]; + ref QuestSequence reference268 = ref span92[2]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -179850,27 +149357,21 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - Span span354 = CollectionsMarshal.AsSpan(list354); - index2 = 0; - span354[index2] = new QuestStep(EInteractionType.Interact, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146); + CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1017750u, new Vector3(-170.58063f, 27.660244f, -397.72644f), 146); obj260.Steps = list354; reference268 = obj260; - num++; - ref QuestSequence reference269 = ref span348[num]; + ref QuestSequence reference269 = ref span92[3]; QuestSequence obj261 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj261.Steps = list355; reference269 = obj261; - num++; - ref QuestSequence reference270 = ref span348[num]; + ref QuestSequence reference270 = ref span92[4]; QuestSequence obj262 = new QuestSequence { Sequence = 4 @@ -179878,28 +149379,23 @@ public static class AssemblyQuestLoader num2 = 2; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - 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) + 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) { Fly = true }; obj262.Steps = list356; reference270 = obj262; - num++; - ref QuestSequence reference271 = ref span348[num]; + ref QuestSequence reference271 = ref span92[5]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj263.Steps = list357; reference271 = obj263; questRoot42.QuestSequence = list348; @@ -179909,16 +149405,13 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - Span span358 = CollectionsMarshal.AsSpan(list358); - index = 0; - span358[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list358)[0] = "JerryWester"; questRoot43.Author = list358; - index = 5; - List list359 = new List(index); - CollectionsMarshal.SetCount(list359, index); - Span span359 = CollectionsMarshal.AsSpan(list359); - num = 0; - ref QuestSequence reference272 = ref span359[num]; + num = 5; + List list359 = new List(num); + CollectionsMarshal.SetCount(list359, num); + Span span98 = CollectionsMarshal.AsSpan(list359); + ref QuestSequence reference272 = ref span98[0]; QuestSequence obj264 = new QuestSequence { Sequence = 0 @@ -179926,30 +149419,24 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - Span span360 = CollectionsMarshal.AsSpan(list360); - index2 = 0; - span360[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017759u, new Vector3(179.61389f, 13.09844f, -441.48932f), 146) + CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017759u, new Vector3(179.61389f, 13.09844f, -441.48932f), 146) { StopDistance = 5f }; obj264.Steps = list360; reference272 = obj264; - num++; - ref QuestSequence reference273 = ref span359[num]; + ref QuestSequence reference273 = ref span98[1]; QuestSequence obj265 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj265.Steps = list361; reference273 = obj265; - num++; - ref QuestSequence reference274 = ref span359[num]; + ref QuestSequence reference274 = ref span98[2]; QuestSequence obj266 = new QuestSequence { Sequence = 2 @@ -179957,40 +149444,33 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.Interact, 1017760u, new Vector3(-79.57587f, 27.602297f, -326.19214f), 146); + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1017760u, new Vector3(-79.57587f, 27.602297f, -326.19214f), 146); obj266.Steps = list362; reference274 = obj266; - num++; - ref QuestSequence reference275 = ref span359[num]; + ref QuestSequence reference275 = ref span98[3]; QuestSequence obj267 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2995u }; - num2++; - span363[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 146) + span99[1] = new QuestStep(EInteractionType.EquipItem, null, null, 146) { ItemId = 3306u }; - num2++; - span363[num2] = new QuestStep(EInteractionType.Interact, 1017761u, new Vector3(-106.9505f, 21.884232f, -478.90442f), 146) + span99[2] = new QuestStep(EInteractionType.Interact, 1017761u, new Vector3(-106.9505f, 21.884232f, -478.90442f), 146) { Fly = true }; obj267.Steps = list363; reference275 = obj267; - num++; - ref QuestSequence reference276 = ref span359[num]; + ref QuestSequence reference276 = ref span98[4]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue @@ -179998,11 +149478,9 @@ public static class AssemblyQuestLoader num2 = 2; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - 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); + 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); obj268.Steps = list364; reference276 = obj268; questRoot43.QuestSequence = list359; @@ -180012,30 +149490,24 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - Span span365 = CollectionsMarshal.AsSpan(list365); - index = 0; - span365[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list365)[0] = "JerryWester"; questRoot44.Author = list365; - index = 4; - List list366 = new List(index); - CollectionsMarshal.SetCount(list366, index); - Span span366 = CollectionsMarshal.AsSpan(list366); - num = 0; - ref QuestSequence reference277 = ref span366[num]; + num = 4; + List list366 = new List(num); + CollectionsMarshal.SetCount(list366, num); + Span span101 = CollectionsMarshal.AsSpan(list366); + ref QuestSequence reference277 = ref span101[0]; QuestSequence obj269 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj269.Steps = list367; reference277 = obj269; - num++; - ref QuestSequence reference278 = ref span366[num]; + ref QuestSequence reference278 = ref span101[1]; QuestSequence obj270 = new QuestSequence { Sequence = 1 @@ -180043,26 +149515,21 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - span368[index2] = new QuestStep(EInteractionType.Interact, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) + CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 1017751u, new Vector3(-169.35992f, 27.48653f, -397.1161f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj270.Steps = list368; reference278 = obj270; - num++; - ref QuestSequence reference279 = ref span366[num]; + ref QuestSequence reference279 = ref span101[2]; QuestSequence obj271 = new QuestSequence { Sequence = 2 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -180071,8 +149538,7 @@ public static class AssemblyQuestLoader }; obj271.Steps = list369; reference279 = obj271; - num++; - ref QuestSequence reference280 = ref span366[num]; + ref QuestSequence reference280 = ref span101[3]; QuestSequence obj272 = new QuestSequence { Sequence = byte.MaxValue @@ -180080,9 +149546,7 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - span370[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) + CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) { StopDistance = 5f }; @@ -180099,16 +149563,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -180116,30 +149577,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017767u, new Vector3(1.3274536f, 0.90783566f, -3.4638672f), 146) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -180147,36 +149602,30 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1017771u, new Vector3(-68.95557f, 26.907436f, -393.66754f), 146) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1017771u, new Vector3(-68.95557f, 26.907436f, -393.66754f), 146) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 1017775u, new Vector3(-2.3651733f, -2.0000217f, -24.887512f), 351); + span2[1] = new QuestStep(EInteractionType.Interact, 1017775u, new Vector3(-2.3651733f, -2.0000217f, -24.887512f), 351); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -180184,9 +149633,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017776u, new Vector3(-3.5858765f, 0.018040119f, -6.9123535f), 351); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017776u, new Vector3(-3.5858765f, 0.018040119f, -6.9123535f), 351); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -180196,30 +149643,24 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; questRoot2.Author = list8; - index = 3; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 3; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span3 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span3[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span3[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -180227,38 +149668,31 @@ public static class AssemblyQuestLoader num2 = 4; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + Span span4 = CollectionsMarshal.AsSpan(list11); + span4[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) + span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.352629f, 21.285944f, -652.1081f), 156) { Mount = true }; - index2++; - span11[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.110107f, 29.57478f, -770.24866f), 156) + span4[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.110107f, 29.57478f, -770.24866f), 156) { Fly = true }; - index2++; - span11[index2] = new QuestStep(EInteractionType.Interact, 2007563u, new Vector3(35.38562f, 28.976807f, -791.56177f), 156); + span4[3] = new QuestStep(EInteractionType.Interact, 2007563u, new Vector3(35.38562f, 28.976807f, -791.56177f), 156); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span3[2]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -180276,16 +149710,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; questRoot3.Author = list13; - index = 4; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 4; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span5 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span5[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -180293,36 +149724,30 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016008u, new Vector3(125.93262f, 24.458836f, -5.5390625f), 418) { StopDistance = 5f }; obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span5[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - num2++; - span16[num2] = new QuestStep(EInteractionType.Interact, 2007472u, new Vector3(-140.97815f, 304.09705f, -311.14673f), 155); + span6[1] = new QuestStep(EInteractionType.Interact, 2007472u, new Vector3(-140.97815f, 304.09705f, -311.14673f), 155); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span14[num]; + ref QuestSequence reference11 = ref span5[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -180330,27 +149755,22 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1018013u, new Vector3(233.84448f, 302f, -188.95251f), 155) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1018013u, new Vector3(233.84448f, 302f, -188.95251f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span14[num]; + ref QuestSequence reference12 = ref span5[3]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -180363,16 +149783,13 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; questRoot4.Author = list19; - index = 4; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference13 = ref span20[num]; + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span7 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference13 = ref span7[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -180380,9 +149797,7 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018015u, new Vector3(8.407715f, -1.5097584f, 13.9314575f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -180395,18 +149810,15 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span20[num]; + ref QuestSequence reference14 = ref span7[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -180416,8 +149828,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span20[num]; + ref QuestSequence reference15 = ref span7[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -180425,23 +149836,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span7[3]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -180454,16 +149860,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list25)[0] = "JerryWester"; questRoot5.Author = list25; - index = 9; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference17 = ref span26[num]; + num = 9; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span8 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference17 = ref span8[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -180471,9 +149874,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018020u, new Vector3(34.1344f, 20.495003f, -655.57336f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -180486,25 +149887,21 @@ public static class AssemblyQuestLoader }; obj17.Steps = list27; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span26[num]; + ref QuestSequence reference18 = ref span8[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; obj18.Steps = list28; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span26[num]; + ref QuestSequence reference19 = ref span8[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 @@ -180512,33 +149909,27 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1018022u, new Vector3(-1.3580933f, 0f, -4.501404f), 351) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1018022u, new Vector3(-1.3580933f, 0f, -4.501404f), 351) { StopDistance = 7f }; obj19.Steps = list29; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span26[num]; + ref QuestSequence reference20 = ref span8[3]; QuestSequence obj20 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj20.Steps = list30; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span26[num]; + ref QuestSequence reference21 = ref span8[4]; QuestSequence obj21 = new QuestSequence { Sequence = 4 @@ -180546,33 +149937,27 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.Interact, 1018024u, new Vector3(19.08899f, 6.192316f, 397.93994f), 152) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1018024u, new Vector3(19.08899f, 6.192316f, 397.93994f), 152) { Fly = true }; obj21.Steps = list31; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span26[num]; + ref QuestSequence reference22 = ref span8[5]; QuestSequence obj22 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj22.Steps = list32; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span26[num]; + ref QuestSequence reference23 = ref span8[6]; QuestSequence obj23 = new QuestSequence { Sequence = 6 @@ -180580,9 +149965,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -180592,23 +149975,19 @@ public static class AssemblyQuestLoader }; obj23.Steps = list33; reference23 = obj23; - num++; - span26[num] = new QuestSequence + span8[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference24 = ref span26[num]; + ref QuestSequence reference24 = ref span8[8]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj24.Steps = list34; reference24 = obj24; questRoot5.QuestSequence = list26; @@ -180618,16 +149997,13 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list35)[0] = "JerryWester"; questRoot6.Author = list35; - index = 2; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference25 = ref span36[num]; + num = 2; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span9 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference25 = ref span9[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -180635,32 +150011,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018029u, new Vector3(36.057007f, 7.1708746f, 485.43518f), 152) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018029u, new Vector3(36.057007f, 7.1708746f, 485.43518f), 152) { StopDistance = 5f }; obj25.Steps = list37; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span36[num]; + ref QuestSequence reference26 = ref span9[1]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018033u, new Vector3(-3.7080078f, 0.01804012f, -6.881897f), 351); + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1018033u, new Vector3(-3.7080078f, 0.01804012f, -6.881897f), 351); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list36; @@ -180670,16 +150041,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; questRoot7.Author = list39; - index = 3; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference27 = ref span40[num]; + num = 3; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span11 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference27 = ref span11[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -180687,26 +150055,21 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017749u, new Vector3(-3.7995605f, 0.01804012f, -7.7669067f), 351) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017749u, new Vector3(-3.7995605f, 0.01804012f, -7.7669067f), 351) { StopDistance = 5f }; obj27.Steps = list41; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span40[num]; + ref QuestSequence reference28 = ref span11[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -180717,8 +150080,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span40[num]; + ref QuestSequence reference29 = ref span11[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -180726,9 +150088,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012395u, new Vector3(-154.10089f, 4f, -15.4574585f), 133); obj29.Steps = list43; reference29 = obj29; questRoot7.QuestSequence = list40; @@ -180738,30 +150098,24 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; questRoot8.Author = list44; - index = 5; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference30 = ref span45[num]; + num = 5; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span12 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference30 = ref span12[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj30.Steps = list46; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span45[num]; + ref QuestSequence reference31 = ref span12[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -180769,9 +150123,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1018046u, new Vector3(40.604248f, -19.000013f, 92.36279f), 132) { AethernetShortcut = new AethernetShortcut { @@ -180781,18 +150133,15 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span45[num]; + ref QuestSequence reference32 = ref span12[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num2 = 0; - ref QuestStep reference33 = ref span48[num2]; + num2 = 1; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1000107u, new Vector3(27.145752f, -19.000002f, 106.67578f), 132) { StopDistance = 7f @@ -180800,9 +150149,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span49 = CollectionsMarshal.AsSpan(list49); - int index3 = 0; - span49[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNG102_02357_Q1_100_035") @@ -180811,8 +150158,7 @@ public static class AssemblyQuestLoader reference33 = obj33; obj32.Steps = list48; reference32 = obj32; - num++; - ref QuestSequence reference34 = ref span45[num]; + ref QuestSequence reference34 = ref span12[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -180820,36 +150166,30 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1013180u, new Vector3(125.90222f, -15.185763f, -431.7846f), 156) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1013180u, new Vector3(125.90222f, -15.185763f, -431.7846f), 156) { StopDistance = 7f }; obj34.Steps = list50; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span12[4]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span51[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span13[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - num2++; - span51[num2] = new QuestStep(EInteractionType.CompleteQuest, 1018041u, new Vector3(13.199036f, 0f, -8.590881f), 351); + span13[2] = new QuestStep(EInteractionType.CompleteQuest, 1018041u, new Vector3(13.199036f, 0f, -8.590881f), 351); obj35.Steps = list51; reference35 = obj35; questRoot8.QuestSequence = list45; @@ -180859,16 +150199,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list52)[0] = "JerryWester"; questRoot9.Author = list52; - index = 5; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference36 = ref span53[num]; + num = 5; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span14 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference36 = ref span14[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -180876,54 +150213,45 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018043u, new Vector3(-1.1444702f, 0f, -3.2807007f), 351) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018043u, new Vector3(-1.1444702f, 0f, -3.2807007f), 351) { StopDistance = 5f }; obj36.Steps = list54; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span53[num]; + ref QuestSequence reference37 = ref span14[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true }; - num2++; - ref QuestStep reference38 = ref span55[num2]; + ref QuestStep reference38 = ref span15[1]; QuestStep obj38 = new QuestStep(EInteractionType.SinglePlayerDuty, 1018044u, new Vector3(127.73328f, -15.353702f, -421.1338f), 156) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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)"; + 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)"; singlePlayerDutyOptions.Notes = list56; obj38.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference38 = obj38; obj37.Steps = list55; reference37 = obj37; - num++; - span53[num] = new QuestSequence + span14[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference39 = ref span53[num]; + ref QuestSequence reference39 = ref span14[3]; QuestSequence obj39 = new QuestSequence { Sequence = 3 @@ -180931,16 +150259,12 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - ref QuestStep reference40 = ref span57[index2]; + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list57)[0]; 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); - Span span58 = CollectionsMarshal.AsSpan(list58); - index3 = 0; - span58[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_HEAVNG103_02358_Q2_000_000") @@ -180949,18 +150273,15 @@ public static class AssemblyQuestLoader reference40 = questStep; obj39.Steps = list57; reference39 = obj39; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span14[4]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj40.Steps = list59; reference41 = obj40; questRoot9.QuestSequence = list53; @@ -180970,16 +150291,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list60)[0] = "JerryWester"; questRoot10.Author = list60; - index = 5; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference42 = ref span61[num]; + num = 5; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span16 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference42 = ref span16[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -180987,26 +150305,22 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018048u, new Vector3(41.82495f, -19.000027f, 93.30884f), 132) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018048u, new Vector3(41.82495f, -19.000027f, 93.30884f), 132) { StopDistance = 5f }; obj41.Steps = list62; reference42 = obj41; - num++; - ref QuestSequence reference43 = ref span61[num]; + ref QuestSequence reference43 = ref span16[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)205, AethernetShortcut = new AethernetShortcut @@ -181015,12 +150329,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - num2++; - span63[num2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + span17[1] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj42.Steps = list63; reference43 = obj42; - num++; - ref QuestSequence reference44 = ref span61[num]; + ref QuestSequence reference44 = ref span16[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -181028,34 +150340,28 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1018430u, new Vector3(2.8533936f, -1.9294398f, 4.6845093f), 205) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1018430u, new Vector3(2.8533936f, -1.9294398f, 4.6845093f), 205) { StopDistance = 5f }; obj43.Steps = list64; reference44 = obj43; - num++; - ref QuestSequence reference45 = ref span61[num]; + ref QuestSequence reference45 = ref span16[3]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj44.Steps = list65; reference45 = obj44; - num++; - ref QuestSequence reference46 = ref span61[num]; + ref QuestSequence reference46 = ref span16[4]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -181063,9 +150369,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018331u, new Vector3(-2.6398926f, 0f, -7.400635f), 351); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018331u, new Vector3(-2.6398926f, 0f, -7.400635f), 351); obj45.Steps = list66; reference46 = obj45; questRoot10.QuestSequence = list61; @@ -181075,26 +150379,21 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "pot0to"; + CollectionsMarshal.AsSpan(list67)[0] = "pot0to"; questRoot11.Author = list67; - index = 5; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference47 = ref span68[num]; + num = 5; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span18 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference47 = ref span18[0]; QuestSequence obj46 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list69)[0]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1015976u, new Vector3(-122.51471f, 14.553129f, -166.97955f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -181106,22 +150405,19 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + Span span19 = CollectionsMarshal.AsSpan(list70); + span19[0] = 418; + span19[1] = 419; skipAetheryteCondition.InTerritory = list70; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj47.SkipConditions = skipConditions; reference48 = obj47; obj46.Steps = list69; reference47 = obj46; - num++; - ref QuestSequence reference49 = ref span68[num]; + ref QuestSequence reference49 = ref span18[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -181129,33 +150425,27 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427 }; obj48.Steps = list71; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span68[num]; + ref QuestSequence reference50 = ref span18[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Emote = EEmote.Soothe }; obj49.Steps = list72; reference50 = obj49; - num++; - ref QuestSequence reference51 = ref span68[num]; + ref QuestSequence reference51 = ref span18[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 @@ -181163,26 +150453,21 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Emote, 1017904u, new Vector3(-6.4240723f, 0.024999565f, -5.56958f), 427) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Emote, 1017904u, new Vector3(-6.4240723f, 0.024999565f, -5.56958f), 427) { Emote = EEmote.Rally }; obj50.Steps = list73; reference51 = obj50; - num++; - ref QuestSequence reference52 = ref span68[num]; + ref QuestSequence reference52 = ref span18[4]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2362) }; @@ -181195,16 +150480,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "pot0to"; + CollectionsMarshal.AsSpan(list75)[0] = "pot0to"; questRoot12.Author = list75; - index = 4; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference53 = ref span76[num]; + num = 4; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span20 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference53 = ref span20[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -181212,9 +150494,8 @@ public static class AssemblyQuestLoader num2 = 2; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - ref QuestStep reference54 = ref span77[index2]; + Span span21 = CollectionsMarshal.AsSpan(list77); + ref QuestStep reference54 = ref span21[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1011215u, new Vector3(-145.37274f, 14.80313f, -129.25922f), 419) { TargetTerritoryId = (ushort)427, @@ -181230,49 +150511,40 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - index3 = 0; - span78[index3] = 427; + CollectionsMarshal.AsSpan(list78)[0] = 427; skipStepConditions.InTerritory = list78; skipConditions2.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span22 = CollectionsMarshal.AsSpan(list79); + span22[0] = 419; + span22[1] = 427; skipAetheryteCondition2.InTerritory = list79; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; obj53.SkipConditions = skipConditions2; reference54 = obj53; - index2++; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427); + span21[1] = new QuestStep(EInteractionType.AcceptQuest, 1017897u, new Vector3(-5.0202637f, 0.07901219f, -8.6519165f), 427); obj52.Steps = list77; reference53 = obj52; - num++; - ref QuestSequence reference55 = ref span76[num]; + ref QuestSequence reference55 = ref span20[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1017909u, new Vector3(-120.22589f, 14.55313f, -162.61542f), 419); + span23[1] = new QuestStep(EInteractionType.Interact, 1017909u, new Vector3(-120.22589f, 14.55313f, -162.61542f), 419); obj54.Steps = list80; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span76[num]; + ref QuestSequence reference56 = ref span20[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -181280,23 +150552,18 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419); + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1017912u, new Vector3(-35.690857f, 15.965062f, -68.2536f), 419); obj55.Steps = list81; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span76[num]; + ref QuestSequence reference57 = ref span20[3]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Emote = EEmote.Soothe, NextQuestId = new QuestId(2363) @@ -181310,16 +150577,13 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "pot0to"; + CollectionsMarshal.AsSpan(list83)[0] = "pot0to"; questRoot13.Author = list83; - index = 4; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference58 = ref span84[num]; + num = 4; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span24 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference58 = ref span24[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -181327,9 +150591,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - ref QuestStep reference59 = ref span85[index2]; + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep obj58 = new QuestStep(EInteractionType.AcceptQuest, 1017914u, new Vector3(-38.529114f, 15.965062f, -70.45099f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -181344,18 +150606,14 @@ public static class AssemblyQuestLoader num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - index3 = 0; - span86[index3] = 419; + CollectionsMarshal.AsSpan(list86)[0] = 419; skipAetheryteCondition3.InTerritory = list86; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; obj58.SkipConditions = skipConditions3; - index3 = 1; - List list87 = new List(index3); - CollectionsMarshal.SetCount(list87, index3); - Span span87 = CollectionsMarshal.AsSpan(list87); - num3 = 0; - span87[num3] = new DialogueChoice + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND303_02363_Q1_000_000"), @@ -181365,35 +150623,27 @@ public static class AssemblyQuestLoader reference59 = obj58; obj57.Steps = list85; reference58 = obj57; - num++; - ref QuestSequence reference60 = ref span84[num]; + ref QuestSequence reference60 = ref span24[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)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); + 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); obj59.Steps = list88; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span84[num]; + ref QuestSequence reference61 = ref span24[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -181401,28 +150651,23 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1017916u, new Vector3(-2.609314f, 0.024999565f, 6.1798096f), 427); + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1017916u, new Vector3(-2.609314f, 0.024999565f, 6.1798096f), 427); obj60.Steps = list89; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span84[num]; + ref QuestSequence reference62 = ref span24[3]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)419 }; - num2++; - span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1017923u, new Vector3(-45.090515f, 15.8744135f, -91.32526f), 419) + span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1017923u, new Vector3(-45.090515f, 15.8744135f, -91.32526f), 419) { NextQuestId = new QuestId(2364) }; @@ -181435,16 +150680,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "pot0to"; + CollectionsMarshal.AsSpan(list91)[0] = "pot0to"; questRoot14.Author = list91; - index = 4; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference63 = ref span92[num]; + num = 4; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span27 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference63 = ref span27[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -181452,9 +150694,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - ref QuestStep reference64 = ref span93[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list93)[0]; QuestStep obj63 = new QuestStep(EInteractionType.AcceptQuest, 1017926u, new Vector3(-33.157898f, 15.965062f, -67.826416f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -181469,25 +150709,21 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - index3 = 0; - span94[index3] = 419; + CollectionsMarshal.AsSpan(list94)[0] = 419; skipAetheryteCondition4.InTerritory = list94; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition4; obj63.SkipConditions = skipConditions4; - index3 = 2; - List list95 = new List(index3); - CollectionsMarshal.SetCount(list95, index3); - Span span95 = CollectionsMarshal.AsSpan(list95); - num3 = 0; - span95[num3] = new DialogueChoice + num3 = 2; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + Span span28 = CollectionsMarshal.AsSpan(list95); + span28[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND304_02364_Q1_100_000"), Answer = new ExcelRef("TEXT_CHREND304_02364_A1_100_001") }; - num3++; - span95[num3] = new DialogueChoice + span28[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHREND304_02364_Q1_000_000"), @@ -181497,18 +150733,15 @@ public static class AssemblyQuestLoader reference64 = obj63; obj62.Steps = list93; reference63 = obj62; - num++; - ref QuestSequence reference65 = ref span92[num]; + ref QuestSequence reference65 = ref span27[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -181518,8 +150751,7 @@ public static class AssemblyQuestLoader }; obj64.Steps = list96; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span92[num]; + ref QuestSequence reference66 = ref span27[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -181527,9 +150759,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1015977u, new Vector3(-177.35565f, 15.06314f, -174.36487f), 419) { AethernetShortcut = new AethernetShortcut { @@ -181539,18 +150769,15 @@ public static class AssemblyQuestLoader }; obj65.Steps = list97; reference66 = obj65; - num++; - ref QuestSequence reference67 = ref span92[num]; + ref QuestSequence reference67 = ref span27[3]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj66.Steps = list98; reference67 = obj66; questRoot14.QuestSequence = list92; @@ -181560,16 +150787,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot15.Author = list99; - index = 7; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference68 = ref span100[num]; + num = 7; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span29 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference68 = ref span29[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -181577,23 +150801,18 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj67.Steps = list101; reference68 = obj67; - num++; - ref QuestSequence reference69 = ref span100[num]; + ref QuestSequence reference69 = ref span29[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -181603,8 +150822,7 @@ public static class AssemblyQuestLoader }; obj68.Steps = list102; reference69 = obj68; - num++; - ref QuestSequence reference70 = ref span100[num]; + ref QuestSequence reference70 = ref span29[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -181612,88 +150830,63 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - ref QuestStep reference71 = ref span103[index2]; + Span span30 = CollectionsMarshal.AsSpan(list103); + ref QuestStep reference71 = ref span30[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list104; reference71 = questStep2; - index2++; - ref QuestStep reference72 = ref span103[index2]; + ref QuestStep reference72 = ref span30[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1017963u, new Vector3(21.683044f, 11.965154f, 47.68445f), 419); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list105; reference72 = questStep3; - index2++; - ref QuestStep reference73 = ref span103[index2]; + ref QuestStep reference73 = ref span30[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list106; reference73 = questStep4; obj69.Steps = list103; reference70 = obj69; - num++; - ref QuestSequence reference74 = ref span100[num]; + ref QuestSequence reference74 = ref span29[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj70.Steps = list107; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span100[num]; + ref QuestSequence reference75 = ref span29[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -181701,47 +150894,36 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1017970u, new Vector3(132.43298f, 205.99544f, 80.9491f), 478) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1017970u, new Vector3(132.43298f, 205.99544f, 80.9491f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj71.Steps = list108; reference75 = obj71; - num++; - ref QuestSequence reference76 = ref span100[num]; + ref QuestSequence reference76 = ref span29[5]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - index2 = 4; - List list109 = new List(index2); - CollectionsMarshal.SetCount(list109, index2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - ref QuestStep reference77 = ref span109[num2]; + num2 = 4; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span34 = CollectionsMarshal.AsSpan(list109); + ref QuestStep reference77 = ref span34[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1012099u, new Vector3(50.278442f, 206.04715f, 57.75537f), 478); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list110; reference77 = questStep5; - num2++; - ref QuestStep reference78 = ref span109[num2]; + ref QuestStep reference78 = ref span34[1]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 1012299u, new Vector3(-16.586609f, 206.49942f, 42.98462f), 478) { StopDistance = 5f @@ -181749,48 +150931,34 @@ public static class AssemblyQuestLoader num3 = 6; 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); + 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); obj73.CompletionQuestVariablesFlags = list111; reference78 = obj73; - num2++; - ref QuestStep reference79 = ref span109[num2]; + ref QuestStep reference79 = ref span34[2]; QuestStep questStep6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.76668f, 205.81511f, 24.614613f), 478); SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list112; skipConditions5.StepIf = skipStepConditions2; questStep6.SkipConditions = skipConditions5; reference79 = questStep6; - num2++; - ref QuestStep reference80 = ref span109[num2]; + ref QuestStep reference80 = ref span34[3]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1017977u, new Vector3(-0.7172241f, 206.49947f, 20.09607f), 478) { StopDistance = 7f @@ -181798,25 +150966,18 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - 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); + 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); obj74.CompletionQuestVariablesFlags = list113; reference80 = obj74; obj72.Steps = list109; reference76 = obj72; - num++; - ref QuestSequence reference81 = ref span100[num]; + ref QuestSequence reference81 = ref span29[6]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -181824,9 +150985,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017981u, new Vector3(10.208252f, 206.77286f, 62.394165f), 478) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017981u, new Vector3(10.208252f, 206.77286f, 62.394165f), 478) { NextQuestId = new QuestId(2370) }; @@ -181839,33 +150998,27 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; questRoot16.Author = list115; - index = 13; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference82 = ref span116[num]; + num = 13; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span39 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference82 = ref span39[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj76.Steps = list117; reference82 = obj76; - num++; - ref QuestSequence reference83 = ref span116[num]; + ref QuestSequence reference83 = ref span39[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -181873,9 +151026,7 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1017988u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1017988u, new Vector3(-544.1825f, 144.84157f, -346.7918f), 399) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -181886,22 +151037,18 @@ public static class AssemblyQuestLoader }; obj77.Steps = list118; reference83 = obj77; - num++; - ref QuestSequence reference84 = ref span116[num]; + ref QuestSequence reference84 = ref span39[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj78.Steps = list119; reference84 = obj78; - num++; - ref QuestSequence reference85 = ref span116[num]; + ref QuestSequence reference85 = ref span39[3]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -181909,33 +151056,27 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1017997u, new Vector3(-595.48334f, 147.9601f, -37.43042f), 399) { Fly = true }; obj79.Steps = list120; reference85 = obj79; - num++; - ref QuestSequence reference86 = ref span116[num]; + ref QuestSequence reference86 = ref span39[4]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj80.Steps = list121; reference86 = obj80; - num++; - ref QuestSequence reference87 = ref span116[num]; + ref QuestSequence reference87 = ref span39[5]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -181943,27 +151084,21 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399); + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1018005u, new Vector3(-761.31836f, 149.64381f, 16.739136f), 399); obj81.Steps = list122; reference87 = obj81; - num++; - ref QuestSequence reference88 = ref span116[num]; + ref QuestSequence reference88 = ref span39[6]; QuestSequence obj82 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj82.Steps = list123; reference88 = obj82; - num++; - ref QuestSequence reference89 = ref span116[num]; + ref QuestSequence reference89 = ref span39[7]; QuestSequence obj83 = new QuestSequence { Sequence = 7 @@ -181971,27 +151106,21 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj83.Steps = list124; reference89 = obj83; - num++; - ref QuestSequence reference90 = ref span116[num]; + ref QuestSequence reference90 = ref span39[8]; QuestSequence obj84 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj84.Steps = list125; reference90 = obj84; - num++; - ref QuestSequence reference91 = ref span116[num]; + ref QuestSequence reference91 = ref span39[9]; QuestSequence obj85 = new QuestSequence { Sequence = 9 @@ -181999,30 +151128,24 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1018122u, new Vector3(-761.2573f, 149.64243f, 16.80011f), 399); obj85.Steps = list126; reference91 = obj85; - num++; - ref QuestSequence reference92 = ref span116[num]; + ref QuestSequence reference92 = ref span39[10]; QuestSequence obj86 = new QuestSequence { Sequence = 10 }; - 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) + 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) { Fly = true }; obj86.Steps = list127; reference92 = obj86; - num++; - ref QuestSequence reference93 = ref span116[num]; + ref QuestSequence reference93 = ref span39[11]; QuestSequence obj87 = new QuestSequence { Sequence = 11 @@ -182030,26 +151153,21 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.Interact, 1018007u, new Vector3(-602.5941f, 147.58852f, -39.230957f), 399) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1018007u, new Vector3(-602.5941f, 147.58852f, -39.230957f), 399) { StopDistance = 7f }; obj87.Steps = list128; reference93 = obj87; - num++; - ref QuestSequence reference94 = ref span116[num]; + ref QuestSequence reference94 = ref span39[12]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, NextQuestId = new QuestId(2371) @@ -182063,16 +151181,13 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot17.Author = list130; - index = 7; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference95 = ref span131[num]; + num = 7; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span40 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference95 = ref span40[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -182080,30 +151195,24 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1016619u, new Vector3(-66.84979f, 8.05915f, 9.506287f), 418); obj89.Steps = list132; reference95 = obj89; - num++; - ref QuestSequence reference96 = ref span131[num]; + ref QuestSequence reference96 = ref span40[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj90.Steps = list133; reference96 = obj90; - num++; - ref QuestSequence reference97 = ref span131[num]; + ref QuestSequence reference97 = ref span40[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -182111,51 +151220,40 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 1018451u, new Vector3(606.775f, -49.501324f, 40.482178f), 398) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1018451u, new Vector3(606.775f, -49.501324f, 40.482178f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj91.Steps = list134; reference97 = obj91; - num++; - ref QuestSequence reference98 = ref span131[num]; + ref QuestSequence reference98 = ref span40[3]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref QuestStep reference99 = ref span135[num2]; + num2 = 4; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span41 = CollectionsMarshal.AsSpan(list135); + ref QuestStep reference99 = ref span41[0]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1011920u, new Vector3(519.8595f, -51.071976f, 88.24292f), 398) { Fly = true }; - 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); + 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); obj93.CompletionQuestVariablesFlags = list136; reference99 = obj93; - num2++; - ref QuestStep reference100 = ref span135[num2]; + ref QuestStep reference100 = ref span41[1]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1011921u, new Vector3(453.36072f, -51.141403f, 58.579346f), 398) { Fly = true @@ -182163,51 +151261,37 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - 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); + 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); obj94.CompletionQuestVariablesFlags = list137; reference100 = obj94; - num2++; - ref QuestStep reference101 = ref span135[num2]; + ref QuestStep reference101 = ref span41[2]; 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(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list138; skipConditions6.StepIf = skipStepConditions3; obj95.SkipConditions = skipConditions6; reference101 = obj95; - num2++; - ref QuestStep reference102 = ref span135[num2]; + ref QuestStep reference102 = ref span41[3]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1011919u, new Vector3(497.82556f, -49.790283f, 11.825684f), 398) { StopDistance = 7f @@ -182215,25 +151299,18 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - 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); + 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); obj96.CompletionQuestVariablesFlags = list139; reference102 = obj96; obj92.Steps = list135; reference98 = obj92; - num++; - ref QuestSequence reference103 = ref span131[num]; + ref QuestSequence reference103 = ref span40[4]; QuestSequence obj97 = new QuestSequence { Sequence = 4 @@ -182241,34 +151318,28 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 1018454u, new Vector3(549.18726f, -51.275715f, 6.1798096f), 398) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1018454u, new Vector3(549.18726f, -51.275715f, 6.1798096f), 398) { Fly = true }; obj97.Steps = list140; reference103 = obj97; - num++; - ref QuestSequence reference104 = ref span131[num]; + ref QuestSequence reference104 = ref span40[5]; QuestSequence obj98 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj98.Steps = list141; reference104 = obj98; - num++; - ref QuestSequence reference105 = ref span131[num]; + ref QuestSequence reference105 = ref span40[6]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -182276,9 +151347,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018460u, new Vector3(-108.659546f, -35.633152f, -19.485779f), 398) { NextQuestId = new QuestId(2372) }; @@ -182291,30 +151360,24 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot18.Author = list143; - index = 10; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference106 = ref span144[num]; + num = 10; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span46 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference106 = ref span46[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj100.Steps = list145; reference106 = obj100; - num++; - ref QuestSequence reference107 = ref span144[num]; + ref QuestSequence reference107 = ref span46[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -182322,33 +151385,27 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj101.Steps = list146; reference107 = obj101; - num++; - ref QuestSequence reference108 = ref span144[num]; + ref QuestSequence reference108 = ref span46[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2002034u }; obj102.Steps = list147; reference108 = obj102; - num++; - ref QuestSequence reference109 = ref span144[num]; + ref QuestSequence reference109 = ref span46[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -182356,30 +151413,24 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj103.Steps = list148; reference109 = obj103; - num++; - ref QuestSequence reference110 = ref span144[num]; + ref QuestSequence reference110 = ref span46[4]; QuestSequence obj104 = new QuestSequence { Sequence = 4 }; - 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) + 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) { ItemId = 2002047u }; obj104.Steps = list149; reference110 = obj104; - num++; - ref QuestSequence reference111 = ref span144[num]; + ref QuestSequence reference111 = ref span46[5]; QuestSequence obj105 = new QuestSequence { Sequence = 5 @@ -182387,27 +151438,21 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj105.Steps = list150; reference111 = obj105; - num++; - ref QuestSequence reference112 = ref span144[num]; + ref QuestSequence reference112 = ref span46[6]; QuestSequence obj106 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj106.Steps = list151; reference112 = obj106; - num++; - ref QuestSequence reference113 = ref span144[num]; + ref QuestSequence reference113 = ref span46[7]; QuestSequence obj107 = new QuestSequence { Sequence = 7 @@ -182415,30 +151460,24 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1018468u, new Vector3(-559.7162f, 48f, 304.5243f), 400); obj107.Steps = list152; reference113 = obj107; - num++; - ref QuestSequence reference114 = ref span144[num]; + ref QuestSequence reference114 = ref span46[8]; QuestSequence obj108 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 5f }; obj108.Steps = list153; reference114 = obj108; - num++; - ref QuestSequence reference115 = ref span144[num]; + ref QuestSequence reference115 = ref span46[9]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -182446,9 +151485,7 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018456u, new Vector3(13.595764f, 206.59943f, 77.28699f), 478) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018456u, new Vector3(13.595764f, 206.59943f, 77.28699f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(3008) @@ -182462,33 +151499,27 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot19.Author = list155; - index = 5; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference116 = ref span156[num]; + num = 5; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span47 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference116 = ref span47[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj110.Steps = list157; reference116 = obj110; - num++; - ref QuestSequence reference117 = ref span156[num]; + ref QuestSequence reference117 = ref span47[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -182496,45 +151527,37 @@ public static class AssemblyQuestLoader num2 = 4; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + Span span48 = CollectionsMarshal.AsSpan(list158); + span48[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567 }; - index2++; - span158[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + span48[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)567 }; - index2++; - span158[index2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) + span48[2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.323914f, 3.5552979f, -18.814392f), 567) { TargetTerritoryId = (ushort)568 }; - index2++; - span158[index2] = new QuestStep(EInteractionType.Interact, 1018062u, new Vector3(0.015197754f, 0.8518491f, 3.9215698f), 568) + span48[3] = new QuestStep(EInteractionType.Interact, 1018062u, new Vector3(0.015197754f, 0.8518491f, 3.9215698f), 568) { StopDistance = 5f }; obj111.Steps = list158; reference117 = obj111; - num++; - ref QuestSequence reference118 = ref span156[num]; + ref QuestSequence reference118 = ref span47[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj112.Steps = list159; reference118 = obj112; - num++; - ref QuestSequence reference119 = ref span156[num]; + ref QuestSequence reference119 = ref span47[3]; QuestSequence obj113 = new QuestSequence { Sequence = 3 @@ -182542,9 +151565,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Duty, null, null, 567) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Duty, null, null, 567) { DutyOptions = new DutyOptions { @@ -182553,18 +151574,15 @@ public static class AssemblyQuestLoader }; obj113.Steps = list160; reference119 = obj113; - num++; - ref QuestSequence reference120 = ref span156[num]; + ref QuestSequence reference120 = ref span47[4]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(2374) @@ -182578,16 +151596,13 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "liza"; + CollectionsMarshal.AsSpan(list162)[0] = "liza"; questRoot20.Author = list162; - index = 3; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference121 = ref span163[num]; + num = 3; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span49 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference121 = ref span49[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -182595,40 +151610,33 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018079u, new Vector3(47.40979f, -15.364383f, 41.885986f), 567) { StopDistance = 7f }; obj115.Steps = list164; reference121 = obj115; - num++; - ref QuestSequence reference122 = ref span163[num]; + ref QuestSequence reference122 = ref span49[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)567 }; - num2++; - span165[num2] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) + span50[1] = new QuestStep(EInteractionType.Interact, 2007075u, new Vector3(22.34343f, 3.560182f, -18.78459f), 567) { TargetTerritoryId = (ushort)568 }; - num2++; - span165[num2] = new QuestStep(EInteractionType.Interact, 1018072u, new Vector3(-1.2664795f, 7.357448E-08f, -1.9684448f), 568); + span50[2] = new QuestStep(EInteractionType.Interact, 1018072u, new Vector3(-1.2664795f, 7.357448E-08f, -1.9684448f), 568); obj116.Steps = list165; reference122 = obj116; - num++; - ref QuestSequence reference123 = ref span163[num]; + ref QuestSequence reference123 = ref span49[2]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -182636,9 +151644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018083u, new Vector3(45.212402f, -15.420993f, 25.77246f), 567) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018083u, new Vector3(45.212402f, -15.420993f, 25.77246f), 567) { StopDistance = 5f }; @@ -182651,26 +151657,21 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list167)[0] = "plogon_enjoyer"; questRoot21.Author = list167; - index = 11; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference124 = ref span168[num]; + num = 11; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span51 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference124 = ref span51[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -182683,8 +151684,7 @@ public static class AssemblyQuestLoader }; obj118.Steps = list169; reference124 = obj118; - num++; - ref QuestSequence reference125 = ref span168[num]; + ref QuestSequence reference125 = ref span51[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -182692,35 +151692,29 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.Interact, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1016802u, new Vector3(53.360718f, -48.000004f, -169.97028f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj119.Steps = list170; reference125 = obj119; - num++; - ref QuestSequence reference126 = ref span168[num]; + ref QuestSequence reference126 = ref span51[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj120.Steps = list171; reference126 = obj120; - num++; - ref QuestSequence reference127 = ref span168[num]; + ref QuestSequence reference127 = ref span51[3]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -182728,31 +151722,25 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj121.Steps = list172; reference127 = obj121; - num++; - ref QuestSequence reference128 = ref span168[num]; + ref QuestSequence reference128 = ref span51[4]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj122.Steps = list173; reference128 = obj122; - num++; - ref QuestSequence reference129 = ref span168[num]; + ref QuestSequence reference129 = ref span51[5]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -182760,33 +151748,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1017173u, new Vector3(-363.82086f, 60.896187f, 306.38586f), 400) { Fly = true }; obj123.Steps = list174; reference129 = obj123; - num++; - ref QuestSequence reference130 = ref span168[num]; + ref QuestSequence reference130 = ref span51[6]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Emote = EEmote.Rally }; obj124.Steps = list175; reference130 = obj124; - num++; - ref QuestSequence reference131 = ref span168[num]; + ref QuestSequence reference131 = ref span51[7]; QuestSequence obj125 = new QuestSequence { Sequence = 7 @@ -182794,33 +151776,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1017170u, new Vector3(-344.22827f, 59.038006f, 317.1587f), 400) { Fly = true }; obj125.Steps = list176; reference131 = obj125; - num++; - ref QuestSequence reference132 = ref span168[num]; + ref QuestSequence reference132 = ref span51[8]; QuestSequence obj126 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true }; obj126.Steps = list177; reference132 = obj126; - num++; - ref QuestSequence reference133 = ref span168[num]; + ref QuestSequence reference133 = ref span51[9]; QuestSequence obj127 = new QuestSequence { Sequence = 9 @@ -182828,26 +151804,21 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Interact, 1018234u, new Vector3(-635.85876f, 82.249985f, 142.96167f), 400) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1018234u, new Vector3(-635.85876f, 82.249985f, 142.96167f), 400) { Fly = true }; obj127.Steps = list178; reference133 = obj127; - num++; - ref QuestSequence reference134 = ref span168[num]; + ref QuestSequence reference134 = ref span51[10]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2383) @@ -182861,16 +151832,13 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; questRoot22.Author = list180; - index = 7; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference135 = ref span181[num]; + num = 7; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span52 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference135 = ref span52[0]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -182878,9 +151846,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1017320u, new Vector3(-342.15308f, 59.03801f, 315.14453f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith, @@ -182894,30 +151860,26 @@ public static class AssemblyQuestLoader }; obj129.Steps = list182; reference135 = obj129; - num++; - ref QuestSequence reference136 = ref span181[num]; + ref QuestSequence reference136 = ref span52[1]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span183[num2] = new QuestStep(EInteractionType.Interact, 1018241u, new Vector3(-421.40845f, 60.89619f, 272.755f), 400) + span53[1] = new QuestStep(EInteractionType.Interact, 1018241u, new Vector3(-421.40845f, 60.89619f, 272.755f), 400) { Fly = true }; obj130.Steps = list183; reference136 = obj130; - num++; - ref QuestSequence reference137 = ref span181[num]; + ref QuestSequence reference137 = ref span52[2]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -182925,34 +151887,28 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.Interact, 1018239u, new Vector3(-339.25385f, 59.038f, 317.03674f), 400) + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1018239u, new Vector3(-339.25385f, 59.038f, 317.03674f), 400) { Fly = true }; obj131.Steps = list184; reference137 = obj131; - num++; - ref QuestSequence reference138 = ref span181[num]; + ref QuestSequence reference138 = ref span52[3]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj132.Steps = list185; reference138 = obj132; - num++; - ref QuestSequence reference139 = ref span181[num]; + ref QuestSequence reference139 = ref span52[4]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -182960,37 +151916,31 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1018243u, new Vector3(35.99597f, -130.7033f, 543.3279f), 398) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1018243u, new Vector3(35.99597f, -130.7033f, 543.3279f), 398) { Fly = true }; obj133.Steps = list186; reference139 = obj133; - num++; - ref QuestSequence reference140 = ref span181[num]; + ref QuestSequence reference140 = ref span52[5]; QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, Land = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; - num2++; - span187[num2] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); + span54[1] = new QuestStep(EInteractionType.Interact, 1011916u, new Vector3(470.02356f, -49.89133f, 20.370789f), 398); obj134.Steps = list187; reference140 = obj134; - num++; - ref QuestSequence reference141 = ref span181[num]; + ref QuestSequence reference141 = ref span52[6]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -182998,9 +151948,7 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1011907u, new Vector3(-288.8686f, 127.06639f, 13.199036f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -183015,26 +151963,21 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - Span span189 = CollectionsMarshal.AsSpan(list189); - index = 0; - span189[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list189)[0] = "plogon_enjoyer"; questRoot23.Author = list189; - index = 6; - List list190 = new List(index); - CollectionsMarshal.SetCount(list190, index); - Span span190 = CollectionsMarshal.AsSpan(list190); - num = 0; - ref QuestSequence reference142 = ref span190[num]; + num = 6; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + Span span55 = CollectionsMarshal.AsSpan(list190); + ref QuestSequence reference142 = ref span55[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -183048,8 +151991,7 @@ public static class AssemblyQuestLoader }; obj136.Steps = list191; reference142 = obj136; - num++; - ref QuestSequence reference143 = ref span190[num]; + ref QuestSequence reference143 = ref span55[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -183057,35 +151999,29 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1018249u, new Vector3(-814.9691f, -130.31683f, -415.85413f), 401) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1018249u, new Vector3(-814.9691f, -130.31683f, -415.85413f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj137.Steps = list192; reference143 = obj137; - num++; - ref QuestSequence reference144 = ref span190[num]; + ref QuestSequence reference144 = ref span55[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj138.Steps = list193; reference144 = obj138; - num++; - ref QuestSequence reference145 = ref span190[num]; + ref QuestSequence reference145 = ref span55[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -183093,30 +152029,24 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.Emote, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Emote, 1018251u, new Vector3(285.7556f, -112.76572f, 562.1881f), 401) { Emote = EEmote.MogDance }; obj139.Steps = list194; reference145 = obj139; - num++; - ref QuestSequence reference146 = ref span190[num]; + ref QuestSequence reference146 = ref span55[4]; QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj140.Steps = list195; reference146 = obj140; - num++; - ref QuestSequence reference147 = ref span190[num]; + ref QuestSequence reference147 = ref span55[5]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -183124,9 +152054,7 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018255u, new Vector3(-793.7896f, -133.26949f, -412.6803f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -183141,26 +152069,21 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - Span span197 = CollectionsMarshal.AsSpan(list197); - index = 0; - span197[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list197)[0] = "plogon_enjoyer"; questRoot24.Author = list197; - index = 6; - List list198 = new List(index); - CollectionsMarshal.SetCount(list198, index); - Span span198 = CollectionsMarshal.AsSpan(list198); - num = 0; - ref QuestSequence reference148 = ref span198[num]; + num = 6; + List list198 = new List(num); + CollectionsMarshal.SetCount(list198, num); + Span span56 = CollectionsMarshal.AsSpan(list198); + ref QuestSequence reference148 = ref span56[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu, @@ -183174,8 +152097,7 @@ public static class AssemblyQuestLoader }; obj142.Steps = list199; reference148 = obj142; - num++; - ref QuestSequence reference149 = ref span198[num]; + ref QuestSequence reference149 = ref span56[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -183183,34 +152105,28 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.Interact, 1018257u, new Vector3(-664.36255f, -176.4502f, -570.3975f), 402) + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1018257u, new Vector3(-664.36255f, -176.4502f, -570.3975f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj143.Steps = list200; reference149 = obj143; - num++; - ref QuestSequence reference150 = ref span198[num]; + ref QuestSequence reference150 = ref span56[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj144.Steps = list201; reference150 = obj144; - num++; - ref QuestSequence reference151 = ref span198[num]; + ref QuestSequence reference151 = ref span56[3]; QuestSequence obj145 = new QuestSequence { Sequence = 3 @@ -183218,33 +152134,27 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 2007518u, new Vector3(-697.01685f, -37.82715f, 431.2047f), 402) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 2007518u, new Vector3(-697.01685f, -37.82715f, 431.2047f), 402) { Fly = true }; obj145.Steps = list202; reference151 = obj145; - num++; - ref QuestSequence reference152 = ref span198[num]; + ref QuestSequence reference152 = ref span56[4]; QuestSequence obj146 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj146.Steps = list203; reference152 = obj146; - num++; - ref QuestSequence reference153 = ref span198[num]; + ref QuestSequence reference153 = ref span56[5]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -183252,9 +152162,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1016087u, new Vector3(-796.7498f, -133.2695f, -410.6966f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu @@ -183268,26 +152176,21 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list205)[0] = "UcanPatates"; questRoot25.Author = list205; - index = 4; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference154 = ref span206[num]; + num = 4; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span57 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference154 = ref span57[0]; QuestSequence obj148 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list207)[0]; QuestStep obj149 = new QuestStep(EInteractionType.AcceptQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -183297,20 +152200,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list208 = new List(index3); - CollectionsMarshal.SetCount(list208, index3); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = 478; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + CollectionsMarshal.AsSpan(list208)[0] = 478; obj150.InTerritory = list208; skipConditions7.AetheryteShortcutIf = obj150; obj149.SkipConditions = skipConditions7; reference155 = obj149; obj148.Steps = list207; reference154 = obj148; - num++; - ref QuestSequence reference156 = ref span206[num]; + ref QuestSequence reference156 = ref span57[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -183318,9 +152218,8 @@ public static class AssemblyQuestLoader num2 = 2; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference157 = ref span209[index2]; + Span span58 = CollectionsMarshal.AsSpan(list209); + ref QuestStep reference157 = ref span58[0]; QuestStep obj152 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(148.23425f, 207f, 119.497574f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire @@ -183330,44 +152229,36 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span210 = CollectionsMarshal.AsSpan(list210); - index3 = 0; - span210[index3] = 399; + CollectionsMarshal.AsSpan(list210)[0] = 399; skipStepConditions4.InTerritory = list210; skipConditions8.StepIf = skipStepConditions4; SkipAetheryteCondition obj153 = new SkipAetheryteCondition { InSameTerritory = true }; - index3 = 1; - List list211 = new List(index3); - CollectionsMarshal.SetCount(list211, index3); - Span span211 = CollectionsMarshal.AsSpan(list211); - num3 = 0; - span211[num3] = 399; + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + CollectionsMarshal.AsSpan(list211)[0] = 399; obj153.InTerritory = list211; skipConditions8.AetheryteShortcutIf = obj153; obj152.SkipConditions = skipConditions8; reference157 = obj152; - index2++; - span209[index2] = new QuestStep(EInteractionType.Interact, 1018367u, new Vector3(302.11328f, 232.54102f, 767.14734f), 399) + span58[1] = new QuestStep(EInteractionType.Interact, 1018367u, new Vector3(302.11328f, 232.54102f, 767.14734f), 399) { Fly = true }; obj151.Steps = list209; reference156 = obj151; - num++; - ref QuestSequence reference158 = ref span206[num]; + ref QuestSequence reference158 = ref span57[2]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -183376,8 +152267,7 @@ public static class AssemblyQuestLoader }; obj154.Steps = list212; reference158 = obj154; - num++; - ref QuestSequence reference159 = ref span206[num]; + ref QuestSequence reference159 = ref span57[3]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -183385,9 +152275,7 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -183407,30 +152295,24 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - Span span214 = CollectionsMarshal.AsSpan(list214); - index = 0; - span214[index] = "liza"; + CollectionsMarshal.AsSpan(list214)[0] = "liza"; questRoot26.Author = list214; - index = 2; - List list215 = new List(index); - CollectionsMarshal.SetCount(list215, index); - Span span215 = CollectionsMarshal.AsSpan(list215); - num = 0; - ref QuestSequence reference160 = ref span215[num]; + num = 2; + List list215 = new List(num); + CollectionsMarshal.SetCount(list215, num); + Span span59 = CollectionsMarshal.AsSpan(list215); + ref QuestSequence reference160 = ref span59[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj156.Steps = list216; reference160 = obj156; - num++; - ref QuestSequence reference161 = ref span215[num]; + ref QuestSequence reference161 = ref span59[1]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue @@ -183438,9 +152320,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1017653u, new Vector3(-17.990417f, 211.4722f, -1.4801636f), 478); + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1017653u, new Vector3(-17.990417f, 211.4722f, -1.4801636f), 478); obj157.Steps = list217; reference161 = obj157; questRoot26.QuestSequence = list215; @@ -183450,26 +152330,22 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot27.Author = list218; - index = 7; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference162 = ref span219[num]; + num = 7; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span60 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference162 = ref span60[0]; QuestSequence obj158 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + Span span61 = CollectionsMarshal.AsSpan(list220); + ref QuestStep reference163 = ref span61[0]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -183480,24 +152356,19 @@ public static class AssemblyQuestLoader num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span221 = CollectionsMarshal.AsSpan(list221); - index3 = 0; - span221[index3] = 351; + CollectionsMarshal.AsSpan(list221)[0] = 351; skipStepConditions5.InTerritory = list221; skipConditions9.StepIf = skipStepConditions5; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - index3 = 1; - List list222 = new List(index3); - CollectionsMarshal.SetCount(list222, index3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num3 = 0; - span222[num3] = 351; + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = 351; skipAetheryteCondition5.InTerritory = list222; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition5; obj159.SkipConditions = skipConditions9; reference163 = obj159; - num2++; - span220[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span61[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -183508,15 +152379,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span220[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span61[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj158.Steps = list220; reference162 = obj158; - num++; - ref QuestSequence reference164 = ref span219[num]; + ref QuestSequence reference164 = ref span60[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -183524,36 +152393,29 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 2007560u, new Vector3(216.11353f, 256.36682f, 10.757568f), 402) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2007560u, new Vector3(216.11353f, 256.36682f, 10.757568f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj160.Steps = list223; reference164 = obj160; - num++; - ref QuestSequence reference165 = ref span219[num]; + ref QuestSequence reference165 = ref span60[2]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj161.Steps = list224; reference165 = obj161; - num++; - span219[num] = new QuestSequence + span60[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference166 = ref span219[num]; + ref QuestSequence reference166 = ref span60[4]; QuestSequence obj162 = new QuestSequence { Sequence = 4 @@ -183561,23 +152423,18 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Interact, 1018511u, new Vector3(-1.449646f, 3.144145E-06f, 5.2643433f), 507); + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1018511u, new Vector3(-1.449646f, 3.144145E-06f, 5.2643433f), 507); obj162.Steps = list225; reference166 = obj162; - num++; - ref QuestSequence reference167 = ref span219[num]; + ref QuestSequence reference167 = ref span60[5]; QuestSequence obj163 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Duty, null, null, 507) { DutyOptions = new DutyOptions { @@ -183586,8 +152443,7 @@ public static class AssemblyQuestLoader }; obj163.Steps = list226; reference167 = obj163; - num++; - ref QuestSequence reference168 = ref span219[num]; + ref QuestSequence reference168 = ref span60[6]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -183595,20 +152451,17 @@ public static class AssemblyQuestLoader num2 = 3; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span62 = CollectionsMarshal.AsSpan(list227); + span62[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span227[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span62[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span227[index2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span62[2] = new QuestStep(EInteractionType.CompleteQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; @@ -183621,26 +152474,22 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "liza"; + CollectionsMarshal.AsSpan(list228)[0] = "liza"; questRoot28.Author = list228; - index = 2; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference169 = ref span229[num]; + num = 2; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span63 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference169 = ref span63[0]; QuestSequence obj165 = new QuestSequence { Sequence = 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]; + num2 = 3; + List list230 = new List(num2); + CollectionsMarshal.SetCount(list230, num2); + Span span64 = CollectionsMarshal.AsSpan(list230); + ref QuestStep reference170 = ref span64[0]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -183651,24 +152500,19 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span231 = CollectionsMarshal.AsSpan(list231); - index3 = 0; - span231[index3] = 351; + CollectionsMarshal.AsSpan(list231)[0] = 351; skipStepConditions6.InTerritory = list231; skipConditions10.StepIf = skipStepConditions6; SkipAetheryteCondition skipAetheryteCondition6 = new SkipAetheryteCondition(); - index3 = 1; - List list232 = new List(index3); - CollectionsMarshal.SetCount(list232, index3); - Span span232 = CollectionsMarshal.AsSpan(list232); - num3 = 0; - span232[num3] = 351; + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + CollectionsMarshal.AsSpan(list232)[0] = 351; skipAetheryteCondition6.InTerritory = list232; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition6; obj166.SkipConditions = skipConditions10; reference170 = obj166; - num2++; - span230[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span64[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351, SkipConditions = new SkipConditions @@ -183679,15 +152523,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span230[num2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) + span64[2] = new QuestStep(EInteractionType.AcceptQuest, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351) { StopDistance = 7f }; obj165.Steps = list230; reference169 = obj165; - num++; - ref QuestSequence reference171 = ref span229[num]; + ref QuestSequence reference171 = ref span63[1]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -183695,9 +152537,8 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) + Span span65 = CollectionsMarshal.AsSpan(list233); + span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(212.05304f, 256.37265f, 0.08028713f), 402) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix, @@ -183718,8 +152559,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) + span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1016633u, new Vector3(152.26978f, 245.1f, -6.2714844f), 402) { Fly = true }; @@ -183736,16 +152576,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "kaiser"; + CollectionsMarshal.AsSpan(list)[0] = "kaiser"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -183753,9 +152590,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -183779,18 +152614,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -183805,8 +152637,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -183814,9 +152645,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1021187u, new Vector3(-1.9990234f, 0.74534994f, 360.25012f), 153) { StopDistance = 5f, @@ -183833,9 +152662,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAST601_02409_Q1_000_000"), @@ -183845,18 +152672,15 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -183888,16 +152712,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "kaiser"; + CollectionsMarshal.AsSpan(list8)[0] = "kaiser"; questRoot2.Author = list8; - index = 5; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 5; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -183905,9 +152726,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021191u, new Vector3(195.1781f, -5.3999624f, -67.06348f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -183931,25 +152750,21 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -183957,9 +152772,8 @@ public static class AssemblyQuestLoader num2 = 2; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - ref QuestStep reference9 = ref span12[index2]; + Span span3 = CollectionsMarshal.AsSpan(list12); + ref QuestStep reference9 = ref span3[0]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(244.403f, 361.78677f, -616.2311f), 155) { StopDistance = 5f, @@ -183967,12 +152781,10 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list13 = new List(index3); - CollectionsMarshal.SetCount(list13, index3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num3 = 0; - span13[num3] = new ComplexCombatData + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = new ComplexCombatData { DataId = 7235u, MinimumKillCount = 2u @@ -183986,22 +152798,18 @@ public static class AssemblyQuestLoader } }; reference9 = obj9; - index2++; - span12[index2] = new QuestStep(EInteractionType.Interact, 1021222u, new Vector3(240.68054f, 362.1392f, -614.74023f), 155); + span3[1] = new QuestStep(EInteractionType.Interact, 1021222u, new Vector3(240.68054f, 362.1392f, -614.74023f), 155); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -184025,8 +152833,7 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span2[4]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -184034,9 +152841,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012222u, new Vector3(202.38037f, -5.3999662f, -58.9151f), 419) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -184068,26 +152873,21 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "kaiser"; + CollectionsMarshal.AsSpan(list16)[0] = "kaiser"; questRoot3.Author = list16; - index = 6; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 6; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span4 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span4[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -184111,8 +152911,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span4[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -184120,9 +152919,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -184133,18 +152930,16 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span4[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 3; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span5 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span5[0]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1021259u, new Vector3(-16.250854f, 0.09999631f, -31.784546f), 628) { StopDistance = 4f, @@ -184155,19 +152950,13 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list21; skipConditions.StepIf = skipStepConditions; skipConditions.AetheryteShortcutIf = new SkipAetheryteCondition @@ -184176,8 +152965,7 @@ public static class AssemblyQuestLoader }; obj15.SkipConditions = skipConditions; reference15 = obj15; - num2++; - ref QuestStep reference16 = ref span20[num2]; + ref QuestStep reference16 = ref span5[1]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1021256u, new Vector3(28.610596f, 4f, 53.57434f), 628) { StopDistance = 4f, @@ -184185,22 +152973,16 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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; + 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; skipStepConditions2.CompletionQuestVariablesFlags = list22; skipConditions2.StepIf = skipStepConditions2; skipConditions2.AetheryteShortcutIf = new SkipAetheryteCondition @@ -184209,8 +152991,7 @@ public static class AssemblyQuestLoader }; obj16.SkipConditions = skipConditions2; reference16 = obj16; - num2++; - span20[num2] = new QuestStep(EInteractionType.Interact, 1021260u, new Vector3(-12.069946f, -4.9889293f, 15.579407f), 628) + span5[2] = new QuestStep(EInteractionType.Interact, 1021260u, new Vector3(-12.069946f, -4.9889293f, 15.579407f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184224,8 +153005,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference17 = ref span17[num]; + ref QuestSequence reference17 = ref span4[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -184233,9 +153013,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 2007937u, new Vector3(-51.621338f, 16.891724f, 0.045776367f), 628) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2007937u, new Vector3(-51.621338f, 16.891724f, 0.045776367f), 628) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184249,18 +153027,16 @@ public static class AssemblyQuestLoader }; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span17[num]; + ref QuestSequence reference18 = ref span4[4]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - 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) + 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) { JumpDestination = new JumpDestination { @@ -184269,8 +153045,7 @@ public static class AssemblyQuestLoader Type = EJumpType.RepeatedJumps } }; - num2++; - span24[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021261u, new Vector3(-57.846985f, -3f, 25.16211f), 628) + span8[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021261u, new Vector3(-57.846985f, -3f, 25.16211f), 628) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184284,8 +153059,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span17[num]; + ref QuestSequence reference19 = ref span4[5]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -184293,9 +153067,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184327,26 +153099,21 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "kaiser"; + CollectionsMarshal.AsSpan(list26)[0] = "kaiser"; questRoot4.Author = list26; - index = 6; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 6; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span9 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span9[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184370,8 +153137,7 @@ public static class AssemblyQuestLoader }; obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span9[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -184379,27 +153145,22 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1021273u, new Vector3(469.84045f, 69.6416f, -68.37573f), 614) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1021273u, new Vector3(469.84045f, 69.6416f, -68.37573f), 614) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span9[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num2 = 0; - ref QuestStep reference23 = ref span30[num2]; + num2 = 1; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) { StopDistance = 4f, @@ -184410,9 +153171,7 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = 7236u; + CollectionsMarshal.AsSpan(list31)[0] = 7236u; obj23.KillEnemyDataIds = list31; obj23.SkipConditions = new SkipConditions { @@ -184421,12 +153180,10 @@ public static class AssemblyQuestLoader InSameTerritory = true } }; - index3 = 1; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new DialogueChoice + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAST680_02412_Q1_000_024") @@ -184435,8 +153192,7 @@ public static class AssemblyQuestLoader reference23 = obj23; obj22.Steps = list30; reference22 = obj22; - num++; - ref QuestSequence reference24 = ref span27[num]; + ref QuestSequence reference24 = ref span9[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 @@ -184444,27 +153200,22 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1021274u, new Vector3(-413.77893f, 55.093624f, 305.83655f), 614) { StopDistance = 4f, Fly = false }; obj24.Steps = list33; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span27[num]; + ref QuestSequence reference25 = ref span9[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184478,8 +153229,7 @@ public static class AssemblyQuestLoader }; obj25.Steps = list34; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span27[num]; + ref QuestSequence reference26 = ref span9[5]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -184487,9 +153237,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021262u, new Vector3(98.10022f, 4.0000014f, 87.44946f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184521,26 +153269,21 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "kaiser"; + CollectionsMarshal.AsSpan(list36)[0] = "kaiser"; questRoot5.Author = list36; - index = 5; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference27 = ref span37[num]; + num = 5; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span10 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference27 = ref span10[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184564,8 +153307,7 @@ public static class AssemblyQuestLoader }; obj27.Steps = list38; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span37[num]; + ref QuestSequence reference28 = ref span10[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -184573,9 +153315,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 2008103u, new Vector3(44.84619f, 8.255066f, 178.11853f), 628) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2008103u, new Vector3(44.84619f, 8.255066f, 178.11853f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -184588,18 +153328,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list39; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span10[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184618,8 +153355,7 @@ public static class AssemblyQuestLoader }; obj29.Steps = list40; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span10[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -184627,9 +153363,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008104u, new Vector3(128.13f, 24.979004f, -0.22894287f), 628) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008104u, new Vector3(128.13f, 24.979004f, -0.22894287f), 628) { StopDistance = 3f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184648,18 +153382,15 @@ public static class AssemblyQuestLoader }; obj30.Steps = list41; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span37[num]; + ref QuestSequence reference31 = ref span10[4]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -184686,16 +153417,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list43)[0] = "Cacahuetes"; questRoot6.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]; + num = 6; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span11 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference32 = ref span11[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -184703,9 +153431,8 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) + Span span12 = CollectionsMarshal.AsSpan(list45); + span12[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-146.86935f, 8.006159f, 268.78055f), 153) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -184732,8 +153459,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span45[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) + span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-139.04318f, 8.522301f, 280.0128f), 153) { Fly = true, SkipConditions = new SkipConditions @@ -184744,22 +153470,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); + span12[2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153); obj32.Steps = list45; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span44[num]; + ref QuestSequence reference33 = ref span11[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -184770,8 +153492,7 @@ public static class AssemblyQuestLoader }; obj33.Steps = list46; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span11[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -184779,34 +153500,28 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1018744u, new Vector3(87.96814f, 5.9457893f, 490.56213f), 152) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1018744u, new Vector3(87.96814f, 5.9457893f, 490.56213f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj34.Steps = list47; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span44[num]; + ref QuestSequence reference35 = ref span11[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj35.Steps = list48; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span11[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -184814,26 +153529,21 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 2007687u, new Vector3(-640.8331f, 120.3479f, -291.52362f), 612) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2007687u, new Vector3(-640.8331f, 120.3479f, -291.52362f), 612) { Fly = true }; obj36.Steps = list49; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span44[num]; + ref QuestSequence reference37 = ref span11[5]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2415) @@ -184847,16 +153557,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list51)[0] = "Cacahuetes"; questRoot7.Author = list51; - index = 5; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference38 = ref span52[num]; + num = 5; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span13 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference38 = ref span13[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -184864,9 +153571,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -184879,25 +153584,21 @@ public static class AssemblyQuestLoader }; obj38.Steps = list53; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span52[num]; + ref QuestSequence reference39 = ref span13[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj39.Steps = list54; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span52[num]; + ref QuestSequence reference40 = ref span13[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -184905,9 +153606,8 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference41 = ref span55[index2]; + Span span14 = CollectionsMarshal.AsSpan(list55); + ref QuestStep reference41 = ref span14[0]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612) { StopDistance = 0.5f, @@ -184917,27 +153617,21 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span56 = CollectionsMarshal.AsSpan(list56); - index3 = 0; - span56[index3] = 7214u; + CollectionsMarshal.AsSpan(list56)[0] = 7214u; obj41.KillEnemyDataIds = list56; reference41 = obj41; - index2++; - span55[index2] = new QuestStep(EInteractionType.Interact, 1018758u, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612); + span14[1] = new QuestStep(EInteractionType.Interact, 1018758u, new Vector3(-586.0533f, 54.95936f, 204.82178f), 612); obj40.Steps = list55; reference40 = obj40; - num++; - ref QuestSequence reference42 = ref span52[num]; + ref QuestSequence reference42 = ref span13[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -184948,8 +153642,7 @@ public static class AssemblyQuestLoader }; obj42.Steps = list57; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span52[num]; + ref QuestSequence reference43 = ref span13[4]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -184957,9 +153650,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2416) @@ -184973,26 +153664,21 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list59)[0] = "Cacahuetes"; questRoot8.Author = list59; - index = 6; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference44 = ref span60[num]; + num = 6; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span15 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference44 = ref span15[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -185005,8 +153691,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list61; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span60[num]; + ref QuestSequence reference45 = ref span15[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -185014,33 +153699,27 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 2007711u, new Vector3(-488.0293f, 50.94983f, 86.96118f), 612) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 2007711u, new Vector3(-488.0293f, 50.94983f, 86.96118f), 612) { Fly = true }; obj45.Steps = list62; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span15[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj46.Steps = list63; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span60[num]; + ref QuestSequence reference47 = ref span15[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 @@ -185048,33 +153727,27 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 2007713u, new Vector3(-529.9306f, 36.88098f, 451.16345f), 612) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 2007713u, new Vector3(-529.9306f, 36.88098f, 451.16345f), 612) { Fly = true }; obj47.Steps = list64; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span60[num]; + ref QuestSequence reference48 = ref span15[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj48.Steps = list65; reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span60[num]; + ref QuestSequence reference49 = ref span15[5]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -185082,19 +153755,15 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - ref QuestStep reference50 = ref span66[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list66)[0]; QuestStep obj50 = new QuestStep(EInteractionType.CompleteQuest, 1018753u, new Vector3(-623.621f, 130.24214f, -474.72345f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - index3 = 1; - List list67 = new List(index3); - CollectionsMarshal.SetCount(list67, index3); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - span67[num3] = new DialogueChoice + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM650_02416_Q1_000_000"), @@ -185112,26 +153781,21 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list68)[0] = "Cacahuetes"; questRoot9.Author = list68; - index = 5; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference51 = ref span69[num]; + num = 5; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span16 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference51 = ref span16[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -185144,8 +153808,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list70; reference51 = obj51; - num++; - ref QuestSequence reference52 = ref span69[num]; + ref QuestSequence reference52 = ref span16[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -185153,26 +153816,22 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.Interact, 1019125u, new Vector3(-651.81964f, 40.067055f, 370.80945f), 612) + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Interact, 1019125u, new Vector3(-651.81964f, 40.067055f, 370.80945f), 612) { Fly = true }; obj52.Steps = list71; reference52 = obj52; - num++; - ref QuestSequence reference53 = ref span69[num]; + ref QuestSequence reference53 = ref span16[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num2 = 0; - ref QuestStep reference54 = ref span72[num2]; + num2 = 2; + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + Span span17 = CollectionsMarshal.AsSpan(list72); + ref QuestStep reference54 = ref span17[0]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612) { Fly = true, @@ -185182,17 +153841,13 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span73 = CollectionsMarshal.AsSpan(list73); - index3 = 0; - span73[index3] = 7215u; + CollectionsMarshal.AsSpan(list73)[0] = 7215u; obj54.KillEnemyDataIds = list73; reference54 = obj54; - num2++; - span72[num2] = new QuestStep(EInteractionType.Interact, 1019128u, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612); + span17[1] = new QuestStep(EInteractionType.Interact, 1019128u, new Vector3(-175.06683f, 59.779804f, -558.8312f), 612); obj53.Steps = list72; reference53 = obj53; - num++; - ref QuestSequence reference55 = ref span69[num]; + ref QuestSequence reference55 = ref span16[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -185200,28 +153855,23 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) + Span span18 = CollectionsMarshal.AsSpan(list74); + span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) { Fly = true }; - index2++; - span74[index2] = new QuestStep(EInteractionType.Interact, 1019131u, new Vector3(-663.7522f, 43.594555f, 363.75977f), 612); + span18[1] = new QuestStep(EInteractionType.Interact, 1019131u, new Vector3(-663.7522f, 43.594555f, 363.75977f), 612); obj55.Steps = list74; reference55 = obj55; - num++; - ref QuestSequence reference56 = ref span69[num]; + ref QuestSequence reference56 = ref span16[4]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2418) }; @@ -185234,16 +153884,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list76)[0] = "Cacahuetes"; questRoot10.Author = list76; - index = 7; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference57 = ref span77[num]; + num = 7; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span19 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference57 = ref span19[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -185251,9 +153898,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019132u, new Vector3(-655.02405f, 40.43195f, 375.96704f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -185266,25 +153911,21 @@ public static class AssemblyQuestLoader }; obj57.Steps = list78; reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span77[num]; + ref QuestSequence reference58 = ref span19[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj58.Steps = list79; reference58 = obj58; - num++; - ref QuestSequence reference59 = ref span77[num]; + ref QuestSequence reference59 = ref span19[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -185292,38 +153933,31 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) + Span span20 = CollectionsMarshal.AsSpan(list80); + span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-650.58673f, 39.856243f, 371.54846f), 612) { Fly = true }; - index2++; - span80[index2] = new QuestStep(EInteractionType.Interact, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612); + span20[1] = new QuestStep(EInteractionType.Interact, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612); obj59.Steps = list80; reference59 = obj59; - num++; - ref QuestSequence reference60 = ref span77[num]; + ref QuestSequence reference60 = ref span19[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list81 = new List(index2); - CollectionsMarshal.SetCount(list81, index2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num2 = 0; - ref QuestStep reference61 = ref span81[num2]; + num2 = 1; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list81)[0]; QuestStep obj61 = new QuestStep(EInteractionType.Emote, 1019130u, new Vector3(-665.3696f, 43.594574f, 364.40063f), 612) { Emote = EEmote.Soothe }; - index3 = 1; - List list82 = new List(index3); - CollectionsMarshal.SetCount(list82, index3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = new DialogueChoice + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWHM700_02418_Q1_000_000"), @@ -185333,8 +153967,7 @@ public static class AssemblyQuestLoader reference61 = obj61; obj60.Steps = list81; reference60 = obj60; - num++; - ref QuestSequence reference62 = ref span77[num]; + ref QuestSequence reference62 = ref span19[4]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -185342,9 +153975,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference63 = ref span83[index2]; + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list83)[0]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-381.88757f, 40.283813f, 484.82483f), 612) { Fly = true, @@ -185353,32 +153984,26 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span84 = CollectionsMarshal.AsSpan(list84); - index3 = 0; - span84[index3] = 7216u; + CollectionsMarshal.AsSpan(list84)[0] = 7216u; obj63.KillEnemyDataIds = list84; reference63 = obj63; obj62.Steps = list83; reference62 = obj62; - num++; - ref QuestSequence reference64 = ref span77[num]; + ref QuestSequence reference64 = ref span19[5]; QuestSequence obj64 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 2002053u }; obj64.Steps = list85; reference64 = obj64; - num++; - ref QuestSequence reference65 = ref span77[num]; + ref QuestSequence reference65 = ref span19[6]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -185386,9 +154011,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019588u, new Vector3(-382.71155f, 40.275818f, 484.36694f), 612); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019588u, new Vector3(-382.71155f, 40.275818f, 484.36694f), 612); obj65.Steps = list86; reference65 = obj65; questRoot10.QuestSequence = list77; @@ -185398,26 +154021,21 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list87)[0] = "plogon_enjoyer"; questRoot11.Author = list87; - index = 5; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref QuestSequence reference66 = ref span88[num]; + num = 5; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + Span span21 = CollectionsMarshal.AsSpan(list88); + ref QuestSequence reference66 = ref span21[0]; QuestSequence obj66 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -185429,14 +154047,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + Span span22 = CollectionsMarshal.AsSpan(list90); + span22[0] = 130; + span22[1] = 131; skipAetheryteCondition.InTerritory = list90; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -185447,8 +154063,7 @@ public static class AssemblyQuestLoader reference67 = obj67; obj66.Steps = list89; reference66 = obj66; - num++; - ref QuestSequence reference68 = ref span88[num]; + ref QuestSequence reference68 = ref span21[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -185456,35 +154071,29 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj68.Steps = list91; reference68 = obj68; - num++; - ref QuestSequence reference69 = ref span88[num]; + ref QuestSequence reference69 = ref span21[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj69.Steps = list92; reference69 = obj69; - num++; - ref QuestSequence reference70 = ref span88[num]; + ref QuestSequence reference70 = ref span21[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -185492,26 +154101,21 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1022373u, new Vector3(-81.22388f, 39.42472f, -336.96503f), 146) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1022373u, new Vector3(-81.22388f, 39.42472f, -336.96503f), 146) { Mount = true }; obj70.Steps = list93; reference70 = obj70; - num++; - ref QuestSequence reference71 = ref span88[num]; + ref QuestSequence reference71 = ref span21[4]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list94 = new List(index2); - CollectionsMarshal.SetCount(list94, index2); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref QuestStep reference72 = ref span94[num2]; + num2 = 1; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list94)[0]; QuestStep obj72 = new QuestStep(EInteractionType.CompleteQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { Fly = true, @@ -185520,9 +154124,7 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span95 = CollectionsMarshal.AsSpan(list95); - index3 = 0; - span95[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK601_02426_Q2_000_000"), @@ -185539,16 +154141,13 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list96)[0] = "plogon_enjoyer"; questRoot12.Author = list96; - index = 8; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference73 = ref span97[num]; + num = 8; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span23 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference73 = ref span23[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -185556,9 +154155,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013971u, new Vector3(15.854065f, 28.620823f, -682.76495f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -185571,18 +154168,15 @@ public static class AssemblyQuestLoader }; obj73.Steps = list98; reference73 = obj73; - num++; - ref QuestSequence reference74 = ref span97[num]; + ref QuestSequence reference74 = ref span23[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -185594,8 +154188,7 @@ public static class AssemblyQuestLoader }; obj74.Steps = list99; reference74 = obj74; - num++; - ref QuestSequence reference75 = ref span97[num]; + ref QuestSequence reference75 = ref span23[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -185603,34 +154196,28 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 1022387u, new Vector3(49.94275f, 118.155785f, -746.0899f), 620) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1022387u, new Vector3(49.94275f, 118.155785f, -746.0899f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj75.Steps = list100; reference75 = obj75; - num++; - ref QuestSequence reference76 = ref span97[num]; + ref QuestSequence reference76 = ref span23[3]; QuestSequence obj76 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj76.Steps = list101; reference76 = obj76; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span23[4]; QuestSequence obj77 = new QuestSequence { Sequence = 4 @@ -185638,38 +154225,32 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + Span span24 = CollectionsMarshal.AsSpan(list102); + span24[0] = new QuestStep(EInteractionType.Action, null, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.FormShift }; - index2++; - span102[index2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + span24[1] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.TwinSnakes }; obj77.Steps = list102; reference77 = obj77; - num++; - ref QuestSequence reference78 = ref span97[num]; + ref QuestSequence reference78 = ref span23[5]; QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Action = EAction.DragonKick }; obj78.Steps = list103; reference78 = obj78; - num++; - ref QuestSequence reference79 = ref span97[num]; + ref QuestSequence reference79 = ref span23[6]; QuestSequence obj79 = new QuestSequence { Sequence = 6 @@ -185677,26 +154258,21 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Action, 2008451u, new Vector3(46.555176f, 117.997925f, -784.2374f), 620) { Action = EAction.Demolish }; obj79.Steps = list104; reference79 = obj79; - num++; - ref QuestSequence reference80 = ref span97[num]; + ref QuestSequence reference80 = ref span23[7]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(2428) @@ -185710,16 +154286,13 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list106)[0] = "plogon_enjoyer"; questRoot13.Author = list106; - index = 8; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference81 = ref span107[num]; + num = 8; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span25 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference81 = ref span25[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -185727,9 +154300,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -185743,25 +154314,21 @@ public static class AssemblyQuestLoader }; obj81.Steps = list108; reference81 = obj81; - num++; - ref QuestSequence reference82 = ref span107[num]; + ref QuestSequence reference82 = ref span25[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj82.Steps = list109; reference82 = obj82; - num++; - ref QuestSequence reference83 = ref span107[num]; + ref QuestSequence reference83 = ref span25[2]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -185769,27 +154336,22 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj83.Steps = list110; reference83 = obj83; - num++; - ref QuestSequence reference84 = ref span107[num]; + ref QuestSequence reference84 = ref span25[3]; QuestSequence obj84 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -185801,8 +154363,7 @@ public static class AssemblyQuestLoader }; obj84.Steps = list111; reference84 = obj84; - num++; - ref QuestSequence reference85 = ref span107[num]; + ref QuestSequence reference85 = ref span25[4]; QuestSequence obj85 = new QuestSequence { Sequence = 4 @@ -185810,48 +154371,39 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.72436f, 60.086643f, -602.3445f), 612) + Span span26 = CollectionsMarshal.AsSpan(list112); + span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.72436f, 60.086643f, -602.3445f), 612) { Fly = true }; - index2++; - ref QuestStep reference86 = ref span112[index2]; + ref QuestStep reference86 = ref span26[1]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-109.40343f, 60.039776f, -612.03217f), 612) { Mount = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list113 = new List(index3); - CollectionsMarshal.SetCount(list113, index3); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - span113[num3] = 7217u; + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = 7217u; obj86.KillEnemyDataIds = list113; obj86.CombatDelaySecondsAtStart = 0f; reference86 = obj86; - index2++; - span112[index2] = new QuestStep(EInteractionType.Interact, 1022405u, new Vector3(-106.82843f, 60.07189f, -609.49115f), 612); + span26[2] = new QuestStep(EInteractionType.Interact, 1022405u, new Vector3(-106.82843f, 60.07189f, -609.49115f), 612); obj85.Steps = list112; reference85 = obj85; - num++; - ref QuestSequence reference87 = ref span107[num]; + ref QuestSequence reference87 = ref span25[5]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj87.Steps = list114; reference87 = obj87; - num++; - ref QuestSequence reference88 = ref span107[num]; + ref QuestSequence reference88 = ref span25[6]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -185859,27 +154411,22 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1022412u, new Vector3(103.77649f, 118.18349f, -707.393f), 620) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1022412u, new Vector3(103.77649f, 118.18349f, -707.393f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj88.Steps = list115; reference88 = obj88; - num++; - ref QuestSequence reference89 = ref span107[num]; + ref QuestSequence reference89 = ref span25[7]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2429) @@ -185893,16 +154440,13 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list117)[0] = "plogon_enjoyer"; questRoot14.Author = list117; - index = 9; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference90 = ref span118[num]; + num = 9; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span27 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference90 = ref span27[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -185910,9 +154454,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023728u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -185925,25 +154467,21 @@ public static class AssemblyQuestLoader }; obj90.Steps = list119; reference90 = obj90; - num++; - ref QuestSequence reference91 = ref span118[num]; + ref QuestSequence reference91 = ref span27[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj91.Steps = list120; reference91 = obj91; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span27[2]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -185951,9 +154489,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1022438u, new Vector3(-61.112427f, -0.002525447f, -67.67377f), 635) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1022438u, new Vector3(-61.112427f, -0.002525447f, -67.67377f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -185965,26 +154501,22 @@ public static class AssemblyQuestLoader }; obj92.Steps = list121; reference92 = obj92; - num++; - ref QuestSequence reference93 = ref span118[num]; + ref QuestSequence reference93 = ref span27[3]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj93.Steps = list122; reference93 = obj93; - num++; - ref QuestSequence reference94 = ref span118[num]; + ref QuestSequence reference94 = ref span27[4]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -185992,9 +154524,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1022439u, new Vector3(162.40173f, 49.7417f, -251.9112f), 612) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1022439u, new Vector3(162.40173f, 49.7417f, -251.9112f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -186006,31 +154536,26 @@ public static class AssemblyQuestLoader }; obj94.Steps = list123; reference94 = obj94; - num++; - ref QuestSequence reference95 = ref span118[num]; + ref QuestSequence reference95 = ref span27[5]; QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj95.Steps = list124; reference95 = obj95; - num++; - span118[num] = new QuestSequence + span27[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference96 = ref span118[num]; + ref QuestSequence reference96 = ref span27[7]; QuestSequence obj96 = new QuestSequence { Sequence = 7 @@ -186038,26 +154563,21 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 1022446u, new Vector3(-586.2974f, 113.00655f, -312.7337f), 612) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1022446u, new Vector3(-586.2974f, 113.00655f, -312.7337f), 612) { StopDistance = 4f }; obj96.Steps = list125; reference96 = obj96; - num++; - ref QuestSequence reference97 = ref span118[num]; + ref QuestSequence reference97 = ref span27[8]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -186072,16 +154592,13 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list127)[0] = "plogon_enjoyer"; questRoot15.Author = list127; - index = 6; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref QuestSequence reference98 = ref span128[num]; + num = 6; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + Span span28 = CollectionsMarshal.AsSpan(list128); + ref QuestSequence reference98 = ref span28[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -186089,9 +154606,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref QuestStep reference99 = ref span129[index2]; + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list129)[0]; QuestStep obj99 = new QuestStep(EInteractionType.AcceptQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -186106,9 +154621,7 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMNK700_02430_Q1_000_000"), @@ -186118,25 +154631,21 @@ public static class AssemblyQuestLoader reference99 = obj99; obj98.Steps = list129; reference98 = obj98; - num++; - ref QuestSequence reference100 = ref span128[num]; + ref QuestSequence reference100 = ref span28[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj100.Steps = list131; reference100 = obj100; - num++; - ref QuestSequence reference101 = ref span128[num]; + ref QuestSequence reference101 = ref span28[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -186144,9 +154653,7 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022548u, new Vector3(75.638916f, 62.111427f, -665.3696f), 612) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022548u, new Vector3(75.638916f, 62.111427f, -665.3696f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -186158,47 +154665,37 @@ public static class AssemblyQuestLoader }; obj101.Steps = list132; reference101 = obj101; - num++; - span128[num] = new QuestSequence + span28[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference102 = ref span128[num]; + ref QuestSequence reference102 = ref span28[4]; QuestSequence obj102 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list133 = new List(index2); - CollectionsMarshal.SetCount(list133, index2); - Span span133 = CollectionsMarshal.AsSpan(list133); - num2 = 0; - ref QuestStep reference103 = ref span133[num2]; + num2 = 3; + List list133 = new List(num2); + CollectionsMarshal.SetCount(list133, num2); + Span span29 = CollectionsMarshal.AsSpan(list133); + ref QuestStep reference103 = ref span29[0]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1022539u, new Vector3(54.36792f, 118.22339f, -785.12244f), 620) { StopDistance = 7f }; - 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); + 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); obj103.CompletionQuestVariablesFlags = list134; reference103 = obj103; - num2++; - ref QuestStep reference104 = ref span133[num2]; + ref QuestStep reference104 = ref span29[1]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1022538u, new Vector3(51.31604f, 118.32745f, -786.9841f), 620) { StopDistance = 7f @@ -186206,49 +154703,35 @@ public static class AssemblyQuestLoader num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - 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); + 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); obj104.CompletionQuestVariablesFlags = list135; reference104 = obj104; - num2++; - ref QuestStep reference105 = ref span133[num2]; + ref QuestStep reference105 = ref span29[2]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1022392u, new Vector3(53.147095f, 118.4737f, -788.4489f), 620) { StopDistance = 7f }; - 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); + 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); obj105.CompletionQuestVariablesFlags = list136; reference105 = obj105; obj102.Steps = list133; reference102 = obj102; - num++; - ref QuestSequence reference106 = ref span128[num]; + ref QuestSequence reference106 = ref span28[5]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -186256,9 +154739,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022390u, new Vector3(51.132935f, 118.44431f, -789.27295f), 620) { StopDistance = 7f, NextQuestId = new QuestId(3211) @@ -186272,26 +154753,22 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; questRoot16.Author = list138; - index = 5; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference107 = ref span139[num]; + num = 5; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span33 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference107 = ref span33[0]; QuestSequence obj107 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + Span span34 = CollectionsMarshal.AsSpan(list140); + ref QuestStep reference108 = ref span34[0]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -186302,28 +154779,22 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span141 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span141[index3] = 351; + CollectionsMarshal.AsSpan(list141)[0] = 351; skipStepConditions3.InTerritory = list141; skipConditions4.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index3 = 1; - List list142 = new List(index3); - CollectionsMarshal.SetCount(list142, index3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = 351; + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = 351; skipAetheryteCondition2.InTerritory = list142; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; obj108.SkipConditions = skipConditions4; reference108 = obj108; - num2++; - span140[num2] = new QuestStep(EInteractionType.AcceptQuest, 1018330u, new Vector3(-4.196289f, 0.018040119f, -6.6377563f), 351); + span34[1] = new QuestStep(EInteractionType.AcceptQuest, 1018330u, new Vector3(-4.196289f, 0.018040119f, -6.6377563f), 351); obj107.Steps = list140; reference107 = obj107; - num++; - ref QuestSequence reference109 = ref span139[num]; + ref QuestSequence reference109 = ref span33[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -186331,31 +154802,25 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1020284u, new Vector3(-3.3112793f, 0.018040119f, -6.881897f), 351); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1020284u, new Vector3(-3.3112793f, 0.018040119f, -6.881897f), 351); obj109.Steps = list143; reference109 = obj109; - num++; - ref QuestSequence reference110 = ref span139[num]; + ref QuestSequence reference110 = ref span33[2]; QuestSequence obj110 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj110.Steps = list144; reference110 = obj110; - num++; - ref QuestSequence reference111 = ref span139[num]; + ref QuestSequence reference111 = ref span33[3]; QuestSequence obj111 = new QuestSequence { Sequence = 3 @@ -186363,9 +154828,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - ref QuestStep reference112 = ref span145[index2]; + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1020303u, new Vector3(26.962646f, 6.1844764f, 400.99182f), 152) { StopDistance = 7f @@ -186373,9 +154836,7 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span146 = CollectionsMarshal.AsSpan(list146); - index3 = 0; - span146[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA101_02446_WARP_YESNO_TITLE_001") @@ -186384,25 +154845,21 @@ public static class AssemblyQuestLoader reference112 = obj112; obj111.Steps = list145; reference111 = obj111; - num++; - ref QuestSequence reference113 = ref span139[num]; + ref QuestSequence reference113 = ref span33[4]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.FringesCastrumOriens }; - 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) + 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) { StopDistance = 7f }; @@ -186415,16 +154872,13 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; questRoot17.Author = list148; - index = 6; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference114 = ref span149[num]; + num = 6; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span36 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference114 = ref span36[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -186432,9 +154886,7 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020527u, new Vector3(-612.0852f, 130f, -504.02078f), 612) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020527u, new Vector3(-612.0852f, 130f, -504.02078f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -186448,22 +154900,18 @@ public static class AssemblyQuestLoader }; obj114.Steps = list150; reference114 = obj114; - num++; - ref QuestSequence reference115 = ref span149[num]; + ref QuestSequence reference115 = ref span36[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj115.Steps = list151; reference115 = obj115; - num++; - ref QuestSequence reference116 = ref span149[num]; + ref QuestSequence reference116 = ref span36[2]; QuestSequence obj116 = new QuestSequence { Sequence = 2 @@ -186471,42 +154919,35 @@ public static class AssemblyQuestLoader num2 = 2; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007965u, new Vector3(-487.26636f, 76.70703f, -249.56134f), 612) + Span span37 = CollectionsMarshal.AsSpan(list152); + span37[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007965u, new Vector3(-487.26636f, 76.70703f, -249.56134f), 612) { AetherCurrentId = 2818133u }; - index2++; - span152[index2] = new QuestStep(EInteractionType.Interact, 1020316u, new Vector3(-213.51953f, 59.159065f, -531.426f), 612) + span37[1] = new QuestStep(EInteractionType.Interact, 1020316u, new Vector3(-213.51953f, 59.159065f, -531.426f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj116.Steps = list152; reference116 = obj116; - num++; - ref QuestSequence reference117 = ref span149[num]; + ref QuestSequence reference117 = ref span36[3]; QuestSequence obj117 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818135u }; - num2++; - span153[num2] = new QuestStep(EInteractionType.Interact, 1020321u, new Vector3(447.77588f, 61.497482f, -543.72473f), 612); + span38[2] = new QuestStep(EInteractionType.Interact, 1020321u, new Vector3(447.77588f, 61.497482f, -543.72473f), 612); obj117.Steps = list153; reference117 = obj117; - num++; - ref QuestSequence reference118 = ref span149[num]; + ref QuestSequence reference118 = ref span36[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 @@ -186514,26 +154955,21 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.6969f, 61.72069f, -558.6724f), 612) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(484.6969f, 61.72069f, -558.6724f), 612) { TargetTerritoryId = (ushort)635 }; obj118.Steps = list154; reference118 = obj118; - num++; - ref QuestSequence reference119 = ref span149[num]; + ref QuestSequence reference119 = ref span36[5]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj119.Steps = list155; reference119 = obj119; questRoot17.QuestSequence = list149; @@ -186543,16 +154979,13 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list156)[0] = "JerryWester"; questRoot18.Author = list156; - index = 2; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference120 = ref span157[num]; + num = 2; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span39 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference120 = ref span39[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -186560,38 +154993,31 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020329u, new Vector3(-32.974792f, 18.045086f, 129.41174f), 635); obj120.Steps = list158; reference120 = obj120; - num++; - ref QuestSequence reference121 = ref span157[num]; + ref QuestSequence reference121 = ref span39[1]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShard = EAetheryteLocation.RhalgrsReachWest }; - num2++; - span159[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) + span40[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 635) { Aetheryte = EAetheryteLocation.RhalgrsReach }; - num2++; - span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) + span40[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 635) { AethernetShard = EAetheryteLocation.RhalgrsReachNorthEast }; - num2++; - span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); + span40[3] = new QuestStep(EInteractionType.CompleteQuest, 1019466u, new Vector3(170.91626f, 13.02367f, -91.38635f), 635); obj121.Steps = list159; reference121 = obj121; questRoot18.QuestSequence = list157; @@ -186601,16 +155027,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; questRoot19.Author = list160; - index = 6; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference122 = ref span161[num]; + num = 6; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span41 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference122 = ref span41[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -186618,9 +155041,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020332u, new Vector3(164.90417f, 13.023668f, -91.50836f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -186634,22 +155055,18 @@ public static class AssemblyQuestLoader }; obj122.Steps = list162; reference122 = obj122; - num++; - ref QuestSequence reference123 = ref span161[num]; + ref QuestSequence reference123 = ref span41[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj123.Steps = list163; reference123 = obj123; - num++; - ref QuestSequence reference124 = ref span161[num]; + ref QuestSequence reference124 = ref span41[2]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -186657,27 +155074,21 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.Interact, 1020345u, new Vector3(-1.8463745f, 2.6970465f, -68.833435f), 635); + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1020345u, new Vector3(-1.8463745f, 2.6970465f, -68.833435f), 635); obj124.Steps = list164; reference124 = obj124; - num++; - ref QuestSequence reference125 = ref span161[num]; + ref QuestSequence reference125 = ref span41[3]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj125.Steps = list165; reference125 = obj125; - num++; - ref QuestSequence reference126 = ref span161[num]; + ref QuestSequence reference126 = ref span41[4]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -186685,9 +155096,7 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.Interact, 1020344u, new Vector3(86.65588f, 0f, 88.70068f), 635) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1020344u, new Vector3(86.65588f, 0f, 88.70068f), 635) { AethernetShortcut = new AethernetShortcut { @@ -186697,18 +155106,15 @@ public static class AssemblyQuestLoader }; obj126.Steps = list166; reference126 = obj126; - num++; - ref QuestSequence reference127 = ref span161[num]; + ref QuestSequence reference127 = ref span41[5]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj127.Steps = list167; reference127 = obj127; questRoot19.QuestSequence = list161; @@ -186722,16 +155128,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -186739,9 +155142,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020341u, new Vector3(61.17334f, -9.369123E-13f, -4.6845703f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -186755,22 +155156,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -186778,9 +155175,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020333u, new Vector3(164.14124f, 13.023669f, -92.30188f), 635); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020333u, new Vector3(164.14124f, 13.023669f, -92.30188f), 635); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -186790,26 +155185,21 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list6)[0] = "JerryWester"; questRoot2.Author = list6; - index = 5; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 5; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span2 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span2[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -186823,8 +155213,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -186832,32 +155221,26 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1020395u, new Vector3(-37.67456f, 18.448887f, 133.28748f), 635); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1020395u, new Vector3(-37.67456f, 18.448887f, 133.28748f), 635); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span7[num]; + ref QuestSequence reference6 = ref span2[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)612 }; - num2++; - span10[num2] = new QuestStep(EInteractionType.Interact, 1020498u, new Vector3(158.12915f, 49.714592f, -475.27277f), 612); + span3[1] = new QuestStep(EInteractionType.Interact, 1020498u, new Vector3(158.12915f, 49.714592f, -475.27277f), 612); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span7[num]; + ref QuestSequence reference7 = ref span2[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 @@ -186865,9 +155248,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2008157u, new Vector3(58.426758f, 51.895874f, -482.32245f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -186875,27 +155256,22 @@ public static class AssemblyQuestLoader int num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - int num4 = 0; - span12[num4] = 7553u; - num4++; - span12[num4] = 7554u; + Span span4 = CollectionsMarshal.AsSpan(list12); + span4[0] = 7553u; + span4[1] = 7554u; obj8.KillEnemyDataIds = list12; reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span7[num]; + ref QuestSequence reference9 = ref span2[4]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; questRoot2.QuestSequence = list7; @@ -186905,16 +155281,13 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list14)[0] = "JerryWester"; questRoot3.Author = list14; - index = 3; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference10 = ref span15[num]; + num = 3; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference10 = ref span5[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -186922,27 +155295,21 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020351u, new Vector3(-95.84198f, 59.801033f, -551.9341f), 612); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span15[num]; + ref QuestSequence reference11 = ref span5[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span15[num]; + ref QuestSequence reference12 = ref span5[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -186950,9 +155317,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -186965,26 +155330,21 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; questRoot4.Author = list19; - index = 4; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference13 = ref span20[num]; + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span6 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference13 = ref span6[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -186997,8 +155357,7 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span20[num]; + ref QuestSequence reference14 = ref span6[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -187006,42 +155365,35 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + Span span7 = CollectionsMarshal.AsSpan(list22); + span7[0] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { PickUpQuestId = new QuestId(2639) }; - index2++; - ref QuestStep reference15 = ref span22[index2]; + ref QuestStep reference15 = ref span7[1]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, 2007955u, new Vector3(-228.22925f, 59.861084f, -409.5064f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span8 = CollectionsMarshal.AsSpan(list23); + span8[0] = 8048u; + span8[1] = 8049u; obj15.KillEnemyDataIds = list23; reference15 = obj15; obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span6[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -187051,8 +155403,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span6[3]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -187060,9 +155411,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020361u, new Vector3(-507.4388f, 86.34846f, -289.84515f), 612) { StopDistance = 5f }; @@ -187075,26 +155424,21 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list26)[0] = "JerryWester"; questRoot5.Author = list26; - index = 2; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference18 = ref span27[num]; + num = 2; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span9 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference18 = ref span9[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -187108,8 +155452,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span27[num]; + ref QuestSequence reference19 = ref span9[1]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -187117,9 +155460,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020337u, new Vector3(171.31299f, 13.02367f, -89.951965f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -187144,26 +155485,21 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list30)[0] = "JerryWester"; questRoot6.Author = list30; - index = 6; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference20 = ref span31[num]; + num = 6; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span10 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference20 = ref span10[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -187177,8 +155513,7 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span31[num]; + ref QuestSequence reference21 = ref span10[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -187186,30 +155521,24 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1020366u, new Vector3(114.18323f, 0.6520416f, -11.673218f), 635); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1020366u, new Vector3(114.18323f, 0.6520416f, -11.673218f), 635); obj21.Steps = list33; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span31[num]; + ref QuestSequence reference22 = ref span10[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)620 }; obj22.Steps = list34; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span31[num]; + ref QuestSequence reference23 = ref span10[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -187217,30 +155546,24 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 1020368u, new Vector3(-641.2604f, 50.867527f, -784.1764f), 620) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1020368u, new Vector3(-641.2604f, 50.867527f, -784.1764f), 620) { StopDistance = 7f }; obj23.Steps = list35; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span10[4]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj24.Steps = list36; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span31[num]; + ref QuestSequence reference25 = ref span10[5]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -187248,9 +155571,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020372u, new Vector3(36.423218f, 117.95596f, -742.2446f), 620); obj25.Steps = list37; reference25 = obj25; questRoot6.QuestSequence = list31; @@ -187260,30 +155581,24 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; questRoot7.Author = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference26 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span11 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference26 = ref span11[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj26.Steps = list40; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span39[num]; + ref QuestSequence reference27 = ref span11[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -187291,36 +155606,30 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) + Span span12 = CollectionsMarshal.AsSpan(list41); + span12[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 620) { Aetheryte = EAetheryteLocation.PeaksAlaGannha }; - index2++; - span41[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007976u, new Vector3(202.86865f, 133.89783f, -753.1395f), 620) + span12[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007976u, new Vector3(202.86865f, 133.89783f, -753.1395f), 620) { AetherCurrentId = 2818149u }; - index2++; - span41[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + span12[2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj27.Steps = list41; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span39[num]; + ref QuestSequence reference28 = ref span11[2]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj28.Steps = list42; reference28 = obj28; questRoot7.QuestSequence = list39; @@ -187330,16 +155639,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; questRoot8.Author = list43; - index = 4; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference29 = ref span44[num]; + num = 4; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span13 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference29 = ref span13[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -187347,9 +155653,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020376u, new Vector3(95.44519f, 118.15579f, -758.053f), 620) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020376u, new Vector3(95.44519f, 118.15579f, -758.053f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -187362,22 +155666,18 @@ public static class AssemblyQuestLoader }; obj29.Steps = list45; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span44[num]; + ref QuestSequence reference30 = ref span13[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj30.Steps = list46; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span44[num]; + ref QuestSequence reference31 = ref span13[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -187385,23 +155685,18 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1020374u, new Vector3(89.21948f, 119.4052f, -684.7792f), 620); obj31.Steps = list47; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span44[num]; + ref QuestSequence reference32 = ref span13[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -187414,16 +155709,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list49)[0] = "JerryWester"; questRoot9.Author = list49; - index = 6; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference33 = ref span50[num]; + num = 6; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span14 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference33 = ref span14[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -187431,9 +155723,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020379u, new Vector3(85.40466f, 118.15579f, -719.96643f), 620) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, @@ -187447,24 +155737,20 @@ public static class AssemblyQuestLoader }; obj33.Steps = list51; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span50[num]; + ref QuestSequence reference34 = ref span14[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj34.Steps = list52; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span50[num]; + ref QuestSequence reference35 = ref span14[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -187472,9 +155758,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - ref QuestStep reference36 = ref span53[index2]; + ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list53)[0]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(-281.2972f, 104.584076f, -359.10394f), 620) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -187482,56 +155766,46 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = 7514u; + CollectionsMarshal.AsSpan(list54)[0] = 7514u; obj36.KillEnemyDataIds = list54; reference36 = obj36; obj35.Steps = list53; reference35 = obj35; - num++; - ref QuestSequence reference37 = ref span50[num]; + ref QuestSequence reference37 = ref span14[3]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818151u }; - 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) + 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) { DisableNavmesh = true }; - num2++; - ref QuestStep reference38 = ref span55[num2]; + ref QuestStep reference38 = ref span16[3]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, null, new Vector3(-281.3983f, 200.71988f, -294.9439f), 620) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + Span span17 = CollectionsMarshal.AsSpan(list56); + span17[0] = 7555u; + span17[1] = 8047u; obj38.KillEnemyDataIds = list56; reference38 = obj38; obj37.Steps = list55; reference37 = obj37; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span14[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -187539,23 +155813,18 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1020380u, new Vector3(-281.5138f, 200.71988f, -294.0871f), 620); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1020380u, new Vector3(-281.5138f, 200.71988f, -294.0871f), 620); obj39.Steps = list57; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span50[num]; + ref QuestSequence reference40 = ref span14[5]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj40.Steps = list58; reference40 = obj40; questRoot9.QuestSequence = list50; @@ -187565,16 +155834,13 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list59)[0] = "JerryWester"; questRoot10.Author = list59; - index = 4; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference41 = ref span60[num]; + num = 4; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span18 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference41 = ref span18[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -187582,35 +155848,29 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020382u, new Vector3(-284.596f, 200.71988f, -287.2511f), 620); obj41.Steps = list61; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span60[num]; + ref QuestSequence reference42 = ref span18[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - 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) + 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) { JumpDestination = new JumpDestination { Position = new Vector3(-281.22574f, 192.18245f, -239.78777f) } }; - num2++; - span62[num2] = new QuestStep(EInteractionType.Interact, 2008684u, new Vector3(-200.4273f, 95.26196f, -448.23383f), 620); + span19[1] = new QuestStep(EInteractionType.Interact, 2008684u, new Vector3(-200.4273f, 95.26196f, -448.23383f), 620); obj42.Steps = list62; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span60[num]; + ref QuestSequence reference43 = ref span18[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -187618,23 +155878,18 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1020385u, new Vector3(-111.711365f, 105.71431f, -364.065f), 620); + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1020385u, new Vector3(-111.711365f, 105.71431f, -364.065f), 620); obj43.Steps = list63; reference43 = obj43; - num++; - ref QuestSequence reference44 = ref span60[num]; + ref QuestSequence reference44 = ref span18[3]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj44.Steps = list64; reference44 = obj44; questRoot10.QuestSequence = list60; @@ -187644,16 +155899,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list65)[0] = "JerryWester"; questRoot11.Author = list65; - index = 5; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference45 = ref span66[num]; + num = 5; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span20 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference45 = ref span20[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -187661,30 +155913,24 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020387u, new Vector3(-140.94757f, 104.16588f, -401.81586f), 620); obj45.Steps = list67; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span66[num]; + ref QuestSequence reference46 = ref span20[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj46.Steps = list68; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span66[num]; + ref QuestSequence reference47 = ref span20[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -187692,30 +155938,24 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1020511u, new Vector3(143.81628f, 118.1921f, -732.93665f), 620) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1020511u, new Vector3(143.81628f, 118.1921f, -732.93665f), 620) { StopDistance = 5f }; obj47.Steps = list69; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span20[3]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj48.Steps = list70; reference48 = obj48; - num++; - ref QuestSequence reference49 = ref span66[num]; + ref QuestSequence reference49 = ref span20[4]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -187723,9 +155963,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(165.07161f, 13.02367f, -91.94302f), 635) + Span span21 = CollectionsMarshal.AsSpan(list71); + span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.07161f, 13.02367f, -91.94302f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -187741,8 +155980,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) + span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1020338u, new Vector3(170.30591f, 13.02367f, -93.06476f), 635) { StopDistance = 7f }; @@ -187755,26 +155993,21 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; questRoot12.Author = list72; - index = 2; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference50 = ref span73[num]; + num = 2; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span22 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference50 = ref span22[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -187788,8 +156021,7 @@ public static class AssemblyQuestLoader }; obj50.Steps = list74; reference50 = obj50; - num++; - ref QuestSequence reference51 = ref span73[num]; + ref QuestSequence reference51 = ref span22[1]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -187797,9 +156029,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020390u, new Vector3(164.2633f, 13.02367f, -88.91437f), 635) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020390u, new Vector3(164.2633f, 13.02367f, -88.91437f), 635) { StopDistance = 5f }; @@ -187812,26 +156042,21 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list76)[0] = "JerryWester"; questRoot13.Author = list76; - index = 5; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference52 = ref span77[num]; + num = 5; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span23 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference52 = ref span23[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -187844,8 +156069,7 @@ public static class AssemblyQuestLoader }; obj52.Steps = list78; reference52 = obj52; - num++; - ref QuestSequence reference53 = ref span77[num]; + ref QuestSequence reference53 = ref span23[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -187853,9 +156077,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1020342u, new Vector3(-137.86536f, 0.59805053f, -80.27777f), 635) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1020342u, new Vector3(-137.86536f, 0.59805053f, -80.27777f), 635) { AethernetShortcut = new AethernetShortcut { @@ -187865,22 +156087,18 @@ public static class AssemblyQuestLoader }; obj53.Steps = list79; reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span77[num]; + ref QuestSequence reference54 = ref span23[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj54.Steps = list80; reference54 = obj54; - num++; - ref QuestSequence reference55 = ref span77[num]; + ref QuestSequence reference55 = ref span23[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -187888,31 +156106,26 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.21484f, 130f, -503.3509f), 612) + Span span24 = CollectionsMarshal.AsSpan(list81); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-611.21484f, 130f, -503.3509f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - index2++; - span81[index2] = new QuestStep(EInteractionType.Interact, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + span24[1] = new QuestStep(EInteractionType.Interact, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 7f }; obj55.Steps = list81; reference55 = obj55; - num++; - ref QuestSequence reference56 = ref span77[num]; + ref QuestSequence reference56 = ref span23[4]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -187925,16 +156138,13 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list83)[0] = "JerryWester"; questRoot14.Author = list83; - index = 3; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference57 = ref span84[num]; + num = 3; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span25 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference57 = ref span25[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -187942,9 +156152,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020354u, new Vector3(-605.2186f, 130f, -506.2486f), 612) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -187958,18 +156166,15 @@ public static class AssemblyQuestLoader }; obj57.Steps = list85; reference57 = obj57; - num++; - ref QuestSequence reference58 = ref span84[num]; + ref QuestSequence reference58 = ref span25[1]; QuestSequence obj58 = 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.SinglePlayerDuty, 1020399u, new Vector3(-115.80072f, 40.833466f, -37.766113f), 612) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -187978,8 +156183,7 @@ public static class AssemblyQuestLoader }; obj58.Steps = list86; reference58 = obj58; - num++; - ref QuestSequence reference59 = ref span84[num]; + ref QuestSequence reference59 = ref span25[2]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -187987,9 +156191,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020400u, new Vector3(71.30542f, 0.024691548f, -75.76111f), 635) { StopDistance = 5f }; @@ -188002,26 +156204,21 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; questRoot15.Author = list88; - index = 3; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference60 = ref span89[num]; + num = 3; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span26 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference60 = ref span26[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -188035,8 +156232,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list90; reference60 = obj60; - num++; - ref QuestSequence reference61 = ref span89[num]; + ref QuestSequence reference61 = ref span26[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -188044,30 +156240,24 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1020411u, new Vector3(50.644653f, 0f, 3.0975342f), 635); + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1020411u, new Vector3(50.644653f, 0f, 3.0975342f), 635); obj61.Steps = list91; reference61 = obj61; - num++; - ref QuestSequence reference62 = ref span89[num]; + ref QuestSequence reference62 = ref span26[2]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - 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); + 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); obj62.Steps = list92; reference62 = obj62; questRoot15.QuestSequence = list89; @@ -188077,16 +156267,13 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; questRoot16.Author = list93; - index = 4; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference63 = ref span94[num]; + num = 4; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span28 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference63 = ref span28[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -188094,9 +156281,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020420u, new Vector3(-139.63531f, 0.598051f, -81.498474f), 635) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020420u, new Vector3(-139.63531f, 0.598051f, -81.498474f), 635) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -188110,22 +156295,18 @@ public static class AssemblyQuestLoader }; obj63.Steps = list95; reference63 = obj63; - num++; - ref QuestSequence reference64 = ref span94[num]; + ref QuestSequence reference64 = ref span28[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj64.Steps = list96; reference64 = obj64; - num++; - ref QuestSequence reference65 = ref span94[num]; + ref QuestSequence reference65 = ref span28[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -188133,89 +156314,64 @@ public static class AssemblyQuestLoader num2 = 4; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - ref QuestStep reference66 = ref span97[index2]; + Span span29 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference66 = ref span29[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list98; reference66 = questStep; - index2++; - ref QuestStep reference67 = ref span97[index2]; + ref QuestStep reference67 = ref span29[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008160u, new Vector3(-133.25708f, 1.8463135f, -56.595703f), 635); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list99; reference67 = questStep2; - index2++; - span97[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.45901f, 0.59804773f, -52.17099f), 635) + span29[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-128.45901f, 0.59804773f, -52.17099f), 635) { DisableNavmesh = true }; - index2++; - ref QuestStep reference68 = ref span97[index2]; + ref QuestStep reference68 = ref span29[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list100; reference68 = questStep3; obj65.Steps = list97; reference65 = obj65; - num++; - ref QuestSequence reference69 = ref span94[num]; + ref QuestSequence reference69 = ref span28[3]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj66.Steps = list101; reference69 = obj66; questRoot16.QuestSequence = list94; @@ -188225,16 +156381,13 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list102)[0] = "JerryWester"; questRoot17.Author = list102; - index = 4; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference70 = ref span103[num]; + num = 4; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span33 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference70 = ref span33[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -188242,9 +156395,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020431u, new Vector3(-91.233765f, -3.968323E-12f, -19.821533f), 635) + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020431u, new Vector3(-91.233765f, -3.968323E-12f, -19.821533f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -188258,18 +156409,15 @@ public static class AssemblyQuestLoader }; obj67.Steps = list104; reference70 = obj67; - num++; - ref QuestSequence reference71 = ref span103[num]; + ref QuestSequence reference71 = ref span33[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -188279,8 +156427,7 @@ public static class AssemblyQuestLoader }; obj68.Steps = list105; reference71 = obj68; - num++; - ref QuestSequence reference72 = ref span103[num]; + ref QuestSequence reference72 = ref span33[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -188288,45 +156435,38 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - ref QuestStep reference73 = ref span106[index2]; + Span span34 = CollectionsMarshal.AsSpan(list106); + ref QuestStep reference73 = ref span34[0]; 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(); - num4 = 1; - List list107 = new List(num4); - CollectionsMarshal.SetCount(list107, num4); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new QuestId(2655); + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new QuestId(2655); skipAetheryteCondition.QuestsCompleted = list107; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj70.SkipConditions = skipConditions; obj70.PickUpQuestId = new QuestId(2655); reference73 = obj70; - index2++; - span106[index2] = new QuestStep(EInteractionType.Interact, 1020432u, new Vector3(-612.3904f, 130.1009f, -481.68158f), 612) + span34[1] = new QuestStep(EInteractionType.Interact, 1020432u, new Vector3(-612.3904f, 130.1009f, -481.68158f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj69.Steps = list106; reference72 = obj69; - num++; - ref QuestSequence reference74 = ref span103[num]; + ref QuestSequence reference74 = ref span33[3]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj71.Steps = list108; reference74 = obj71; questRoot17.QuestSequence = list103; @@ -188336,16 +156476,13 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list109)[0] = "JerryWester"; questRoot18.Author = list109; - index = 3; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference75 = ref span110[num]; + num = 3; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span35 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference75 = ref span35[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -188353,9 +156490,7 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020526u, new Vector3(-609.6132f, 130f, -501.12158f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -188368,23 +156503,20 @@ public static class AssemblyQuestLoader }; obj72.Steps = list111; reference75 = obj72; - num++; - ref QuestSequence reference76 = ref span110[num]; + ref QuestSequence reference76 = ref span35[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2661) }; - num2++; - span112[num2] = new QuestStep(EInteractionType.Interact, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128) + span36[1] = new QuestStep(EInteractionType.Interact, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -188395,8 +156527,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list112; reference76 = obj73; - num++; - ref QuestSequence reference77 = ref span110[num]; + ref QuestSequence reference77 = ref span35[2]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -188404,9 +156535,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020434u, new Vector3(13.534729f, 43.999996f, -36.850586f), 128); obj74.Steps = list113; reference77 = obj74; questRoot18.QuestSequence = list110; @@ -188416,30 +156545,24 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; questRoot19.Author = list114; - index = 4; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference78 = ref span115[num]; + num = 4; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span37 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference78 = ref span37[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj75.Steps = list116; reference78 = obj75; - num++; - ref QuestSequence reference79 = ref span115[num]; + ref QuestSequence reference79 = ref span37[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -188447,96 +156570,70 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj76.Steps = list117; reference79 = obj76; - num++; - ref QuestSequence reference80 = ref span115[num]; + ref QuestSequence reference80 = ref span37[2]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - ref QuestStep reference81 = ref span118[num2]; + ref QuestStep reference81 = ref span38[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list119; reference81 = questStep4; - num2++; - ref QuestStep reference82 = ref span118[num2]; + ref QuestStep reference82 = ref span38[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1020529u, new Vector3(6.6071167f, 0f, -8.46875f), 351); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list120; reference82 = questStep5; - num2++; - ref QuestStep reference83 = ref span118[num2]; + ref QuestStep reference83 = ref span38[3]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list121; reference83 = questStep6; obj77.Steps = list118; reference80 = obj77; - num++; - ref QuestSequence reference84 = ref span115[num]; + ref QuestSequence reference84 = ref span37[3]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -188544,14 +156641,12 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) + Span span42 = CollectionsMarshal.AsSpan(list122); + span42[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(-0.015319824f, 2.9754639f, 27.481445f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156); + span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1020436u, new Vector3(40.57373f, 20.495369f, -648.73737f), 156); obj78.Steps = list122; reference84 = obj78; questRoot19.QuestSequence = list115; @@ -188561,26 +156656,21 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list123)[0] = "JerryWester"; questRoot20.Author = list123; - index = 7; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference85 = ref span124[num]; + num = 7; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span43 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference85 = ref span43[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -188593,8 +156683,7 @@ public static class AssemblyQuestLoader }; obj79.Steps = list125; reference85 = obj79; - num++; - ref QuestSequence reference86 = ref span124[num]; + ref QuestSequence reference86 = ref span43[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -188602,9 +156691,7 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -188615,28 +156702,23 @@ public static class AssemblyQuestLoader }; obj80.Steps = list126; reference86 = obj80; - num++; - ref QuestSequence reference87 = ref span124[num]; + ref QuestSequence reference87 = ref span43[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list127 = new List(index2); - CollectionsMarshal.SetCount(list127, index2); - Span span127 = CollectionsMarshal.AsSpan(list127); - num2 = 0; - ref QuestStep reference88 = ref span127[num2]; + num2 = 1; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list127)[0]; QuestStep obj82 = new QuestStep(EInteractionType.Interact, 1020442u, new Vector3(-357.65625f, 8.000015f, 45.822754f), 129) { StopDistance = 7f }; - num4 = 1; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = new DialogueChoice + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA139_02469_EVENTAREA_WARP_YESNO_TITLE") @@ -188645,8 +156727,7 @@ public static class AssemblyQuestLoader reference88 = obj82; obj81.Steps = list127; reference87 = obj81; - num++; - ref QuestSequence reference89 = ref span124[num]; + ref QuestSequence reference89 = ref span43[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -188654,23 +156735,18 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1020447u, new Vector3(5.0201416f, 21.347214f, -39.07837f), 680); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1020447u, new Vector3(5.0201416f, 21.347214f, -39.07837f), 680); obj83.Steps = list129; reference89 = obj83; - num++; - ref QuestSequence reference90 = ref span124[num]; + ref QuestSequence reference90 = ref span43[4]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Duty, null, null, 680) { DutyOptions = new DutyOptions { @@ -188680,13 +156756,11 @@ public static class AssemblyQuestLoader }; obj84.Steps = list130; reference90 = obj84; - num++; - span124[num] = new QuestSequence + span43[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference91 = ref span124[num]; + ref QuestSequence reference91 = ref span43[6]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -188694,9 +156768,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020454u, new Vector3(-123.09454f, -6.9999976f, -58.884644f), 628) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020454u, new Vector3(-123.09454f, -6.9999976f, -58.884644f), 628) { StopDistance = 6f }; @@ -188709,33 +156781,27 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list132)[0] = "JerryWester"; questRoot21.Author = list132; - index = 3; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference92 = ref span133[num]; + num = 3; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span44 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference92 = ref span44[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 6f }; obj86.Steps = list134; reference92 = obj86; - num++; - ref QuestSequence reference93 = ref span133[num]; + ref QuestSequence reference93 = ref span44[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -188743,36 +156809,30 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 1020455u, new Vector3(-63.34027f, -2.711526f, -58.396362f), 628) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1020455u, new Vector3(-63.34027f, -2.711526f, -58.396362f), 628) { StopDistance = 5f }; obj87.Steps = list135; reference93 = obj87; - num++; - ref QuestSequence reference94 = ref span133[num]; + ref QuestSequence reference94 = ref span44[2]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShard = EAetheryteLocation.KuganeShiokazeHostelry }; - num2++; - span136[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) + span45[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 628) { Aetheryte = EAetheryteLocation.Kugane }; - num2++; - span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628); + span45[2] = new QuestStep(EInteractionType.CompleteQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628); obj88.Steps = list136; reference94 = obj88; questRoot21.QuestSequence = list133; @@ -188782,16 +156842,13 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; questRoot22.Author = list137; - index = 4; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference95 = ref span138[num]; + num = 4; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span46 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference95 = ref span46[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -188799,9 +156856,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020460u, new Vector3(17.92926f, -1.5668043E-05f, -41.21466f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -188814,22 +156869,18 @@ public static class AssemblyQuestLoader }; obj89.Steps = list139; reference95 = obj89; - num++; - ref QuestSequence reference96 = ref span138[num]; + ref QuestSequence reference96 = ref span46[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj90.Steps = list140; reference96 = obj90; - num++; - ref QuestSequence reference97 = ref span138[num]; + ref QuestSequence reference97 = ref span46[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -188837,28 +156888,23 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + Span span47 = CollectionsMarshal.AsSpan(list141); + span47[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeMarkets }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Interact, 1022359u, new Vector3(88.12085f, 4f, 69.7489f), 628); + span47[1] = new QuestStep(EInteractionType.Interact, 1022359u, new Vector3(88.12085f, 4f, 69.7489f), 628); obj91.Steps = list141; reference97 = obj91; - num++; - ref QuestSequence reference98 = ref span138[num]; + ref QuestSequence reference98 = ref span46[3]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj92.Steps = list142; reference98 = obj92; questRoot22.QuestSequence = list138; @@ -188868,16 +156914,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list143)[0] = "JerryWester"; questRoot23.Author = list143; - index = 3; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference99 = ref span144[num]; + num = 3; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span48 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference99 = ref span48[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -188885,9 +156928,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020462u, new Vector3(95.140015f, 8.02f, 151.9646f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -188900,27 +156941,23 @@ public static class AssemblyQuestLoader }; obj93.Steps = list145; reference99 = obj93; - num++; - ref QuestSequence reference100 = ref span144[num]; + ref QuestSequence reference100 = ref span48[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShard = EAetheryteLocation.KuganeRubyBazaar }; - num2++; - span146[num2] = new QuestStep(EInteractionType.Interact, 1020480u, new Vector3(150.80493f, 14.7757225f, 92.454346f), 628); + span49[1] = new QuestStep(EInteractionType.Interact, 1020480u, new Vector3(150.80493f, 14.7757225f, 92.454346f), 628); obj94.Steps = list146; reference100 = obj94; - num++; - ref QuestSequence reference101 = ref span144[num]; + ref QuestSequence reference101 = ref span48[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -188928,9 +156965,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639) { StopDistance = 7f }; @@ -188943,33 +156978,27 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; questRoot24.Author = list148; - index = 7; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference102 = ref span149[num]; + num = 7; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span50 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference102 = ref span50[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj96.Steps = list150; reference102 = obj96; - num++; - ref QuestSequence reference103 = ref span149[num]; + ref QuestSequence reference103 = ref span50[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -188977,30 +157006,24 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1022086u, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1022086u, new Vector3(142.47339f, 14.7757225f, 90.4707f), 628); obj97.Steps = list151; reference103 = obj97; - num++; - ref QuestSequence reference104 = ref span149[num]; + ref QuestSequence reference104 = ref span50[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2002099u }; obj98.Steps = list152; reference104 = obj98; - num++; - ref QuestSequence reference105 = ref span149[num]; + ref QuestSequence reference105 = ref span50[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -189008,9 +157031,8 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + Span span51 = CollectionsMarshal.AsSpan(list153); + span51[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeRakuzaDistrict, AethernetShortcut = new AethernetShortcut @@ -189019,27 +157041,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - index2++; - span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span51[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeBokairoInn }; - index2++; - span153[index2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628); + span51[2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628); obj99.Steps = list153; reference105 = obj99; - num++; - ref QuestSequence reference106 = ref span149[num]; + ref QuestSequence reference106 = ref span50[4]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -189049,8 +157066,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list154; reference106 = obj100; - num++; - ref QuestSequence reference107 = ref span149[num]; + ref QuestSequence reference107 = ref span50[5]; QuestSequence obj101 = new QuestSequence { Sequence = 5 @@ -189058,9 +157074,8 @@ public static class AssemblyQuestLoader num2 = 3; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - ref QuestStep reference108 = ref span155[index2]; + Span span52 = CollectionsMarshal.AsSpan(list155); + ref QuestStep reference108 = ref span52[0]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1020471u, new Vector3(-81.83417f, -3f, 34.50061f), 628) { AethernetShortcut = new AethernetShortcut @@ -189072,77 +157087,55 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - 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); + 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); obj102.CompletionQuestVariablesFlags = list156; reference108 = obj102; - index2++; - ref QuestStep reference109 = ref span155[index2]; + ref QuestStep reference109 = ref span52[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1020469u, new Vector3(-108.50696f, -5.999997f, 72.098755f), 628); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list157; reference109 = questStep7; - index2++; - ref QuestStep reference110 = ref span155[index2]; + ref QuestStep reference110 = ref span52[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list158; reference110 = questStep8; obj101.Steps = list155; reference107 = obj101; - num++; - ref QuestSequence reference111 = ref span149[num]; + ref QuestSequence reference111 = ref span50[6]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -189151,29 +157144,24 @@ public static class AssemblyQuestLoader StopDistance = 0.5f } }; - num2++; - span159[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) + span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-125.70999f, 8.414458f, 123.2643f), 628) { DisableNavmesh = true }; - num2++; - span159[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) + span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-124.25544f, -4.999999f, 145.54941f), 628) { DisableNavmesh = true }; - num2++; - span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span56[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { DisableNavmesh = true, AethernetShard = EAetheryteLocation.KuganePier1 }; - num2++; - span159[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span56[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeThavnairianConsulate }; - num2++; - span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) + span56[5] = new QuestStep(EInteractionType.CompleteQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) { AethernetShortcut = new AethernetShortcut { @@ -189190,16 +157178,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; questRoot25.Author = list160; - index = 7; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference112 = ref span161[num]; + num = 7; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span57 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference112 = ref span57[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -189207,9 +157192,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020472u, new Vector3(-32.39496f, 0.029811792f, -68.3147f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -189222,22 +157205,18 @@ public static class AssemblyQuestLoader }; obj104.Steps = list162; reference112 = obj104; - num++; - ref QuestSequence reference113 = ref span161[num]; + ref QuestSequence reference113 = ref span57[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj105.Steps = list163; reference113 = obj105; - num++; - ref QuestSequence reference114 = ref span161[num]; + ref QuestSequence reference114 = ref span57[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -189245,9 +157224,8 @@ public static class AssemblyQuestLoader num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + Span span58 = CollectionsMarshal.AsSpan(list164); + span58[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -189256,26 +157234,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - index2++; - span164[index2] = new QuestStep(EInteractionType.Interact, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639); + span58[1] = new QuestStep(EInteractionType.Interact, 1020465u, new Vector3(1.5411377f, 0f, -0.96136475f), 639); obj106.Steps = list164; reference114 = obj106; - num++; - ref QuestSequence reference115 = ref span161[num]; + ref QuestSequence reference115 = ref span57[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj107.Steps = list165; reference115 = obj107; - num++; - ref QuestSequence reference116 = ref span161[num]; + ref QuestSequence reference116 = ref span57[4]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -189283,14 +157256,12 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + Span span59 = CollectionsMarshal.AsSpan(list166); + span59[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - index2++; - span166[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020475u, new Vector3(-52.140076f, 16.75975f, -6.729248f), 628) + span59[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020475u, new Vector3(-52.140076f, 16.75975f, -6.729248f), 628) { AethernetShortcut = new AethernetShortcut { @@ -189304,23 +157275,19 @@ public static class AssemblyQuestLoader }; obj108.Steps = list166; reference116 = obj108; - num++; - span161[num] = new QuestSequence + span57[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference117 = ref span161[num]; + ref QuestSequence reference117 = ref span57[6]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj109.Steps = list167; reference117 = obj109; questRoot25.QuestSequence = list161; @@ -189330,16 +157297,13 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list168)[0] = "JerryWester"; questRoot26.Author = list168; - index = 7; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference118 = ref span169[num]; + num = 7; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span60 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference118 = ref span60[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -189347,35 +157311,28 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020476u, new Vector3(147.75305f, 14.775722f, 91.721924f), 628); obj110.Steps = list170; reference118 = obj110; - num++; - span169[num] = new QuestSequence + span60[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference119 = ref span169[num]; + ref QuestSequence reference119 = ref span60[2]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj111.Steps = list171; reference119 = obj111; - num++; - ref QuestSequence reference120 = ref span169[num]; + ref QuestSequence reference120 = ref span60[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -189383,14 +157340,12 @@ public static class AssemblyQuestLoader num2 = 3; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + Span span61 = CollectionsMarshal.AsSpan(list172); + span61[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - index2++; - span172[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) + span61[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 628) { AethernetShard = EAetheryteLocation.KuganeSekiseigumiBarracks, AethernetShortcut = new AethernetShortcut @@ -189399,26 +157354,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Kugane } }; - index2++; - span172[index2] = new QuestStep(EInteractionType.Interact, 1020481u, new Vector3(125.596924f, 14.804411f, -102.861084f), 628); + span61[2] = new QuestStep(EInteractionType.Interact, 1020481u, new Vector3(125.596924f, 14.804411f, -102.861084f), 628); obj112.Steps = list172; reference120 = obj112; - num++; - ref QuestSequence reference121 = ref span169[num]; + ref QuestSequence reference121 = ref span60[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj113.Steps = list173; reference121 = obj113; - num++; - ref QuestSequence reference122 = ref span169[num]; + ref QuestSequence reference122 = ref span60[5]; QuestSequence obj114 = new QuestSequence { Sequence = 5 @@ -189426,23 +157376,18 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 2008333u, new Vector3(125.41394f, 14.358704f, -100.51117f), 628); + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 2008333u, new Vector3(125.41394f, 14.358704f, -100.51117f), 628); obj114.Steps = list174; reference122 = obj114; - num++; - ref QuestSequence reference123 = ref span169[num]; + ref QuestSequence reference123 = ref span60[6]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -189455,16 +157400,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; questRoot27.Author = list176; - index = 4; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference124 = ref span177[num]; + num = 4; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span62 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference124 = ref span62[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -189472,9 +157414,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020484u, new Vector3(126.57361f, 14.054269f, -99.47363f), 628) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020484u, new Vector3(126.57361f, 14.054269f, -99.47363f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -189488,18 +157428,15 @@ public static class AssemblyQuestLoader }; obj116.Steps = list178; reference124 = obj116; - num++; - ref QuestSequence reference125 = ref span177[num]; + ref QuestSequence reference125 = ref span62[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -189510,8 +157447,7 @@ public static class AssemblyQuestLoader }; obj117.Steps = list179; reference125 = obj117; - num++; - ref QuestSequence reference126 = ref span177[num]; + ref QuestSequence reference126 = ref span62[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -189519,9 +157455,7 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - ref QuestStep reference127 = ref span180[index2]; + ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list180)[0]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1020485u, new Vector3(-124.1322f, -6.999998f, -58.51837f), 628) { AethernetShortcut = new AethernetShortcut @@ -189530,12 +157464,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - num4 = 1; - List list181 = new List(num4); - CollectionsMarshal.SetCount(list181, num4); - Span span181 = CollectionsMarshal.AsSpan(list181); - num3 = 0; - span181[num3] = new DialogueChoice + num3 = 1; + List list181 = new List(num3); + CollectionsMarshal.SetCount(list181, num3); + CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA207_02476_Q1_000_000"), @@ -189545,18 +157477,15 @@ public static class AssemblyQuestLoader reference127 = obj119; obj118.Steps = list180; reference126 = obj118; - num++; - ref QuestSequence reference128 = ref span177[num]; + ref QuestSequence reference128 = ref span62[3]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -189569,16 +157498,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list183)[0] = "JerryWester"; questRoot28.Author = list183; - index = 4; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference129 = ref span184[num]; + num = 4; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span63 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference129 = ref span63[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -189586,30 +157512,24 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019891u, new Vector3(852.4147f, 5.923008f, 847.7759f), 613) { StopDistance = 7f }; obj121.Steps = list185; reference129 = obj121; - num++; - ref QuestSequence reference130 = ref span184[num]; + ref QuestSequence reference130 = ref span63[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj122.Steps = list186; reference130 = obj122; - num++; - ref QuestSequence reference131 = ref span184[num]; + ref QuestSequence reference131 = ref span63[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -189617,25 +157537,20 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - 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); + 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); obj123.Steps = list187; reference131 = obj123; - num++; - ref QuestSequence reference132 = ref span184[num]; + ref QuestSequence reference132 = ref span63[3]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj124.Steps = list188; reference132 = obj124; questRoot28.QuestSequence = list184; @@ -189645,16 +157560,13 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - Span span189 = CollectionsMarshal.AsSpan(list189); - index = 0; - span189[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list189)[0] = "JerryWester"; questRoot29.Author = list189; - index = 4; - List list190 = new List(index); - CollectionsMarshal.SetCount(list190, index); - Span span190 = CollectionsMarshal.AsSpan(list190); - num = 0; - ref QuestSequence reference133 = ref span190[num]; + num = 4; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + Span span65 = CollectionsMarshal.AsSpan(list190); + ref QuestSequence reference133 = ref span65[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -189662,38 +157574,31 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019898u, new Vector3(464.5609f, 30.21226f, 791.53125f), 613); obj125.Steps = list191; reference133 = obj125; - num++; - ref QuestSequence reference134 = ref span190[num]; + ref QuestSequence reference134 = ref span65[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818178u }; - num2++; - span192[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(375.51163f, 9.2976055f, 788.4051f), 613) + span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(375.51163f, 9.2976055f, 788.4051f), 613) { DisableNavmesh = true, Mount = true }; - num2++; - span192[num2] = new QuestStep(EInteractionType.Interact, 2007848u, new Vector3(150.46924f, 1.2054443f, 551.9645f), 613); + span66[2] = new QuestStep(EInteractionType.Interact, 2007848u, new Vector3(150.46924f, 1.2054443f, 551.9645f), 613); obj126.Steps = list192; reference134 = obj126; - num++; - ref QuestSequence reference135 = ref span190[num]; + ref QuestSequence reference135 = ref span65[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -189701,26 +157606,22 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Interact, 1019912u, new Vector3(116.105835f, -0.5f, 499.32092f), 613) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1019912u, new Vector3(116.105835f, -0.5f, 499.32092f), 613) { StopDistance = 7f }; obj127.Steps = list193; reference135 = obj127; - num++; - ref QuestSequence reference136 = ref span190[num]; + ref QuestSequence reference136 = ref span65[3]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -189728,8 +157629,7 @@ public static class AssemblyQuestLoader Position = new Vector3(384.9748f, 14.661837f, 793.96063f) } }; - num2++; - span194[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); obj128.Steps = list194; reference136 = obj128; questRoot29.QuestSequence = list190; @@ -189739,16 +157639,13 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - span195[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list195)[0] = "JerryWester"; questRoot30.Author = list195; - index = 9; - List list196 = new List(index); - CollectionsMarshal.SetCount(list196, index); - Span span196 = CollectionsMarshal.AsSpan(list196); - num = 0; - ref QuestSequence reference137 = ref span196[num]; + num = 9; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span68 = CollectionsMarshal.AsSpan(list196); + ref QuestSequence reference137 = ref span68[0]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -189756,27 +157653,21 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023650u, new Vector3(404.53186f, 19.5081f, 755.6113f), 613); obj129.Steps = list197; reference137 = obj129; - num++; - ref QuestSequence reference138 = ref span196[num]; + ref QuestSequence reference138 = ref span68[1]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj130.Steps = list198; reference138 = obj130; - num++; - ref QuestSequence reference139 = ref span196[num]; + ref QuestSequence reference139 = ref span68[2]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -189784,23 +157675,18 @@ public static class AssemblyQuestLoader num2 = 3; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613) + Span span69 = CollectionsMarshal.AsSpan(list199); + span69[0] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613) { PickUpQuestId = new QuestId(2673) }; - index2++; - span199[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.3004f, 0.94003797f, 833.7598f), 613); - index2++; - ref QuestStep reference140 = ref span199[index2]; + span69[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.3004f, 0.94003797f, 833.7598f), 613); + ref QuestStep reference140 = ref span69[2]; 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); - Span span200 = CollectionsMarshal.AsSpan(list200); - num4 = 0; - span200[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA303_02479_Q1_000_021"), @@ -189810,25 +157696,21 @@ public static class AssemblyQuestLoader reference140 = questStep9; obj131.Steps = list199; reference139 = obj131; - num++; - ref QuestSequence reference141 = ref span196[num]; + ref QuestSequence reference141 = ref span68[3]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj132.Steps = list201; reference141 = obj132; - num++; - ref QuestSequence reference142 = ref span196[num]; + ref QuestSequence reference142 = ref span68[4]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -189836,32 +157718,26 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 1019923u, new Vector3(-742.79395f, 2.129947f, -312.3064f), 613) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1019923u, new Vector3(-742.79395f, 2.129947f, -312.3064f), 613) { StopDistance = 5f }; obj133.Steps = list202; reference142 = obj133; - num++; - ref QuestSequence reference143 = ref span196[num]; + ref QuestSequence reference143 = ref span68[5]; QuestSequence obj134 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj134.Steps = list203; reference143 = obj134; - num++; - ref QuestSequence reference144 = ref span196[num]; + ref QuestSequence reference144 = ref span68[6]; QuestSequence obj135 = new QuestSequence { Sequence = 6 @@ -189869,39 +157745,31 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference145 = ref span204[index2]; + ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, null, new Vector3(-436.89062f, 1.4498298f, -547.5498f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list205 = new List(num4); - CollectionsMarshal.SetCount(list205, num4); - Span span205 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - span205[num3] = 8029u; + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = 8029u; obj136.KillEnemyDataIds = list205; reference145 = obj136; obj135.Steps = list204; reference144 = obj135; - num++; - ref QuestSequence reference146 = ref span196[num]; + ref QuestSequence reference146 = ref span68[7]; QuestSequence obj137 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj137.Steps = list206; reference146 = obj137; - num++; - ref QuestSequence reference147 = ref span196[num]; + ref QuestSequence reference147 = ref span68[8]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -189909,9 +157777,7 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019930u, new Vector3(-58.335266f, 1.9963632f, -597.0703f), 613); + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019930u, new Vector3(-58.335266f, 1.9963632f, -597.0703f), 613); obj138.Steps = list207; reference147 = obj138; questRoot30.QuestSequence = list196; @@ -189921,33 +157787,27 @@ public static class AssemblyQuestLoader num = 1; List list208 = new List(num); CollectionsMarshal.SetCount(list208, num); - Span span208 = CollectionsMarshal.AsSpan(list208); - index = 0; - span208[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list208)[0] = "JerryWester"; questRoot31.Author = list208; - index = 6; - List list209 = new List(index); - CollectionsMarshal.SetCount(list209, index); - Span span209 = CollectionsMarshal.AsSpan(list209); - num = 0; - ref QuestSequence reference148 = ref span209[num]; + num = 6; + List list209 = new List(num); + CollectionsMarshal.SetCount(list209, num); + Span span71 = CollectionsMarshal.AsSpan(list209); + ref QuestSequence reference148 = ref span71[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj139.Steps = list210; reference148 = obj139; - num++; - ref QuestSequence reference149 = ref span209[num]; + ref QuestSequence reference149 = ref span71[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -189955,28 +157815,23 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1019931u, new Vector3(54.703613f, 2.4445753f, -595.4528f), 613); + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1019931u, new Vector3(54.703613f, 2.4445753f, -595.4528f), 613); obj140.Steps = list211; reference149 = obj140; - num++; - ref QuestSequence reference150 = ref span209[num]; + ref QuestSequence reference150 = ref span71[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Aetheryte = EAetheryteLocation.RubySeaOnokoro }; - num2++; - span212[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.867485f, 25.111027f, -634.323f), 613) + span72[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.867485f, 25.111027f, -634.323f), 613) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -189984,13 +157839,11 @@ public static class AssemblyQuestLoader Position = new Vector3(20.556915f, 26.25455f, -633.04f) } }; - num2++; - span212[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007999u, new Vector3(21.286316f, 24.002441f, -623.621f), 613) + span72[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007999u, new Vector3(21.286316f, 24.002441f, -623.621f), 613) { AetherCurrentId = 2818182u }; - num2++; - span212[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.3128f, 26.236794f, -629.7924f), 613) + span72[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(20.3128f, 26.236794f, -629.7924f), 613) { StopDistance = 0.25f, Mount = true, @@ -189999,12 +157852,10 @@ public static class AssemblyQuestLoader Position = new Vector3(20.867485f, 25.111027f, -634.323f) } }; - num2++; - span212[num2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); + span72[4] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613); obj141.Steps = list212; reference150 = obj141; - num++; - ref QuestSequence reference151 = ref span209[num]; + ref QuestSequence reference151 = ref span71[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -190012,116 +157863,84 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 1019938u, new Vector3(68.46716f, 25.007832f, -643.8239f), 613) + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1019938u, new Vector3(68.46716f, 25.007832f, -643.8239f), 613) { Mount = true }; obj142.Steps = list213; reference151 = obj142; - num++; - ref QuestSequence reference152 = ref span209[num]; + ref QuestSequence reference152 = ref span71[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - index2 = 4; - List list214 = new List(index2); - CollectionsMarshal.SetCount(list214, index2); - Span span214 = CollectionsMarshal.AsSpan(list214); - num2 = 0; - ref QuestStep reference153 = ref span214[num2]; + num2 = 4; + List list214 = new List(num2); + CollectionsMarshal.SetCount(list214, num2); + Span span73 = CollectionsMarshal.AsSpan(list214); + ref QuestStep reference153 = ref span73[0]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list215; reference153 = questStep10; - num2++; - ref QuestStep reference154 = ref span214[num2]; + ref QuestStep reference154 = ref span73[1]; QuestStep questStep11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(28.796398f, 1.1177638f, -561.9825f), 613); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list216; skipConditions2.StepIf = skipStepConditions; questStep11.SkipConditions = skipConditions2; reference154 = questStep11; - num2++; - ref QuestStep reference155 = ref span214[num2]; + ref QuestStep reference155 = ref span73[2]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list217; reference155 = questStep12; - num2++; - ref QuestStep reference156 = ref span214[num2]; + ref QuestStep reference156 = ref span73[3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2007854u, new Vector3(-107.74402f, 2.1209717f, -521.32446f), 613); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list218; reference156 = questStep13; obj143.Steps = list214; reference152 = obj143; - num++; - ref QuestSequence reference157 = ref span209[num]; + ref QuestSequence reference157 = ref span71[5]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -190129,18 +157948,14 @@ public static class AssemblyQuestLoader num2 = 4; 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(-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) + 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) { DisableNavmesh = true }; - index2++; - span219[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613); + span78[3] = new QuestStep(EInteractionType.CompleteQuest, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613); obj144.Steps = list219; reference157 = obj144; questRoot31.QuestSequence = list209; @@ -190150,26 +157965,21 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span220 = CollectionsMarshal.AsSpan(list220); - index = 0; - span220[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list220)[0] = "JerryWester"; questRoot32.Author = list220; - index = 7; - List list221 = new List(index); - CollectionsMarshal.SetCount(list221, index); - Span span221 = CollectionsMarshal.AsSpan(list221); - num = 0; - ref QuestSequence reference158 = ref span221[num]; + num = 7; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span79 = CollectionsMarshal.AsSpan(list221); + ref QuestSequence reference158 = ref span79[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -190182,8 +157992,7 @@ public static class AssemblyQuestLoader }; obj145.Steps = list222; reference158 = obj145; - num++; - ref QuestSequence reference159 = ref span221[num]; + ref QuestSequence reference159 = ref span79[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -190191,26 +158000,22 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 2007911u, new Vector3(33.98181f, 4.1046753f, -603.87585f), 613) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2007911u, new Vector3(33.98181f, 4.1046753f, -603.87585f), 613) { StopDistance = 4f }; obj146.Steps = list223; reference159 = obj146; - num++; - ref QuestSequence reference160 = ref span221[num]; + ref QuestSequence reference160 = ref span79[2]; QuestSequence obj147 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list224 = new List(index2); - CollectionsMarshal.SetCount(list224, index2); - Span span224 = CollectionsMarshal.AsSpan(list224); - num2 = 0; - ref QuestStep reference161 = ref span224[num2]; + num2 = 2; + List list224 = new List(num2); + CollectionsMarshal.SetCount(list224, num2); + Span span80 = CollectionsMarshal.AsSpan(list224); + ref QuestStep reference161 = ref span80[0]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2007912u, new Vector3(138.10938f, 0.9613037f, -688.1666f), 613) { ItemId = 2002093u, @@ -190219,30 +158024,21 @@ public static class AssemblyQuestLoader num3 = 1; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - Span span225 = CollectionsMarshal.AsSpan(list225); - num4 = 0; - span225[num4] = 6676u; + CollectionsMarshal.AsSpan(list225)[0] = 6676u; obj148.KillEnemyDataIds = list225; - 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); + 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); obj148.CompletionQuestVariablesFlags = list226; reference161 = obj148; - num2++; - ref QuestStep reference162 = ref span224[num2]; + ref QuestStep reference162 = ref span80[1]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, 2007913u, new Vector3(256.21423f, -0.015319824f, -673.4874f), 613) { ItemId = 2002093u, @@ -190251,32 +158047,23 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num4 = 0; - span227[num4] = 6676u; + CollectionsMarshal.AsSpan(list227)[0] = 6676u; obj149.KillEnemyDataIds = list227; - 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); + 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); obj149.CompletionQuestVariablesFlags = list228; reference162 = obj149; obj147.Steps = list224; reference160 = obj147; - num++; - ref QuestSequence reference163 = ref span221[num]; + ref QuestSequence reference163 = ref span79[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -190284,9 +158071,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - ref QuestStep reference164 = ref span229[index2]; + ref QuestStep reference164 = ref CollectionsMarshal.AsSpan(list229)[0]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, null, new Vector3(446.98648f, 9.27001f, -657.7555f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -190294,32 +158079,26 @@ public static class AssemblyQuestLoader num3 = 1; List list230 = new List(num3); CollectionsMarshal.SetCount(list230, num3); - Span span230 = CollectionsMarshal.AsSpan(list230); - num4 = 0; - span230[num4] = 6618u; + CollectionsMarshal.AsSpan(list230)[0] = 6618u; obj151.KillEnemyDataIds = list230; reference164 = obj151; obj150.Steps = list229; reference163 = obj150; - num++; - ref QuestSequence reference165 = ref span221[num]; + ref QuestSequence reference165 = ref span79[4]; QuestSequence obj152 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj152.Steps = list231; reference165 = obj152; - num++; - ref QuestSequence reference166 = ref span221[num]; + ref QuestSequence reference166 = ref span79[5]; QuestSequence obj153 = new QuestSequence { Sequence = 5 @@ -190327,26 +158106,21 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1019939u, new Vector3(69.53528f, 25.007832f, -643.6713f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj153.Steps = list232; reference166 = obj153; - num++; - ref QuestSequence reference167 = ref span221[num]; + ref QuestSequence reference167 = ref span79[6]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj154.Steps = list233; reference167 = obj154; questRoot32.QuestSequence = list221; @@ -190356,16 +158130,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; questRoot33.Author = list234; - index = 5; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference168 = ref span235[num]; + num = 5; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span83 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference168 = ref span83[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -190373,9 +158144,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -190388,27 +158157,23 @@ public static class AssemblyQuestLoader }; obj155.Steps = list236; reference168 = obj155; - num++; - ref QuestSequence reference169 = ref span235[num]; + ref QuestSequence reference169 = ref span83[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2687) }; - num2++; - span237[num2] = new QuestStep(EInteractionType.Interact, 1019951u, new Vector3(152.6665f, 1.1855946f, -500.3586f), 613); + span84[1] = new QuestStep(EInteractionType.Interact, 1019951u, new Vector3(152.6665f, 1.1855946f, -500.3586f), 613); obj156.Steps = list237; reference169 = obj156; - num++; - ref QuestSequence reference170 = ref span235[num]; + ref QuestSequence reference170 = ref span83[2]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -190416,41 +158181,33 @@ public static class AssemblyQuestLoader num2 = 3; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.34975f, -0.60327315f, -494.75882f), 613) + Span span85 = CollectionsMarshal.AsSpan(list238); + span85[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(159.34975f, -0.60327315f, -494.75882f), 613) { DisableNavmesh = true }; - 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); + 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); obj157.Steps = list238; reference170 = obj157; - num++; - ref QuestSequence reference171 = ref span235[num]; + ref QuestSequence reference171 = ref span83[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818185u }; - 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); + 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); obj158.Steps = list239; reference171 = obj158; - num++; - ref QuestSequence reference172 = ref span235[num]; + ref QuestSequence reference172 = ref span83[4]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -190458,9 +158215,7 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019956u, new Vector3(422.11023f, -98.96018f, -223.10223f), 613) + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019956u, new Vector3(422.11023f, -98.96018f, -223.10223f), 613) { StopDistance = 5f }; @@ -190473,33 +158228,27 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list241)[0] = "JerryWester"; questRoot34.Author = list241; - index = 5; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference173 = ref span242[num]; + num = 5; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span87 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference173 = ref span87[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj160.Steps = list243; reference173 = obj160; - num++; - ref QuestSequence reference174 = ref span242[num]; + ref QuestSequence reference174 = ref span87[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -190507,27 +158256,21 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj161.Steps = list244; reference174 = obj161; - num++; - ref QuestSequence reference175 = ref span242[num]; + ref QuestSequence reference175 = ref span87[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj162.Steps = list245; reference175 = obj162; - num++; - ref QuestSequence reference176 = ref span242[num]; + ref QuestSequence reference176 = ref span87[3]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -190535,28 +158278,22 @@ public static class AssemblyQuestLoader num2 = 4; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) + Span span88 = CollectionsMarshal.AsSpan(list246); + span88[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 613) { Aetheryte = EAetheryteLocation.RubySeaTamamizu }; - 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]; + 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]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, null, new Vector3(664.2144f, 1.8086157f, -5.028036f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list247 = new List(num4); - CollectionsMarshal.SetCount(list247, num4); - Span span247 = CollectionsMarshal.AsSpan(list247); - num3 = 0; - span247[num3] = new ComplexCombatData + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + CollectionsMarshal.AsSpan(list247)[0] = new ComplexCombatData { DataId = 6638u, MinimumKillCount = 1u, @@ -190567,18 +158304,15 @@ public static class AssemblyQuestLoader reference177 = obj164; obj163.Steps = list246; reference176 = obj163; - num++; - ref QuestSequence reference178 = ref span242[num]; + ref QuestSequence reference178 = ref span87[4]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -190591,16 +158325,13 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span249 = CollectionsMarshal.AsSpan(list249); - index = 0; - span249[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list249)[0] = "JerryWester"; questRoot35.Author = list249; - index = 3; - List list250 = new List(index); - CollectionsMarshal.SetCount(list250, index); - Span span250 = CollectionsMarshal.AsSpan(list250); - num = 0; - ref QuestSequence reference179 = ref span250[num]; + num = 3; + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + Span span89 = CollectionsMarshal.AsSpan(list250); + ref QuestSequence reference179 = ref span89[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -190608,9 +158339,7 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019958u, new Vector3(420.34033f, -99.19678f, -221.36267f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, SkipConditions = new SkipConditions @@ -190623,30 +158352,26 @@ public static class AssemblyQuestLoader }; obj166.Steps = list251; reference179 = obj166; - num++; - ref QuestSequence reference180 = ref span250[num]; + ref QuestSequence reference180 = ref span89[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2693) }; - num2++; - span252[num2] = new QuestStep(EInteractionType.Interact, 1019969u, new Vector3(322.56042f, -120.39043f, -300.5265f), 613) + span90[1] = new QuestStep(EInteractionType.Interact, 1019969u, new Vector3(322.56042f, -120.39043f, -300.5265f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj167.Steps = list252; reference180 = obj167; - num++; - ref QuestSequence reference181 = ref span250[num]; + ref QuestSequence reference181 = ref span89[2]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -190654,14 +158379,12 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + Span span91 = CollectionsMarshal.AsSpan(list253); + span91[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - index2++; - span253[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613) + span91[1] = new QuestStep(EInteractionType.CompleteQuest, 1019970u, new Vector3(19.424683f, -197.53093f, -143.93835f), 613) { Mount = false }; @@ -190674,30 +158397,24 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list254)[0] = "JerryWester"; questRoot36.Author = list254; - index = 3; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference182 = ref span255[num]; + num = 3; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span92 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference182 = ref span92[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj169.Steps = list256; reference182 = obj169; - num++; - ref QuestSequence reference183 = ref span255[num]; + ref QuestSequence reference183 = ref span92[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -190705,23 +158422,18 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); obj170.Steps = list257; reference183 = obj170; - num++; - ref QuestSequence reference184 = ref span255[num]; + ref QuestSequence reference184 = ref span92[2]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; @@ -190734,16 +158446,13 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - Span span259 = CollectionsMarshal.AsSpan(list259); - index = 0; - span259[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list259)[0] = "JerryWester"; questRoot37.Author = list259; - index = 5; - List list260 = new List(index); - CollectionsMarshal.SetCount(list260, index); - Span span260 = CollectionsMarshal.AsSpan(list260); - num = 0; - ref QuestSequence reference185 = ref span260[num]; + num = 5; + List list260 = new List(num); + CollectionsMarshal.SetCount(list260, num); + Span span93 = CollectionsMarshal.AsSpan(list260); + ref QuestSequence reference185 = ref span93[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -190751,30 +158460,24 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613); + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019971u, new Vector3(20.248657f, -197.56319f, -145.4032f), 613); obj172.Steps = list261; reference185 = obj172; - num++; - ref QuestSequence reference186 = ref span260[num]; + ref QuestSequence reference186 = ref span93[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list262 = new List(index2); - CollectionsMarshal.SetCount(list262, index2); - Span span262 = CollectionsMarshal.AsSpan(list262); - num2 = 0; - ref QuestStep reference187 = ref span262[num2]; + num2 = 3; + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + Span span94 = CollectionsMarshal.AsSpan(list262); + ref QuestStep reference187 = ref span94[0]; 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); - Span span263 = CollectionsMarshal.AsSpan(list263); - num4 = 0; - span263[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/026/StmBdy001_02632", @@ -190784,20 +158487,17 @@ public static class AssemblyQuestLoader questStep14.DialogueChoices = list263; questStep14.PickUpQuestId = new QuestId(2632); reference187 = questStep14; - num2++; - span262[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) + span94[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(21.067955f, -197.78902f, -155.23956f), 613) { RestartNavigationIfCancelled = false }; - num2++; - span262[num2] = new QuestStep(EInteractionType.Interact, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + span94[2] = new QuestStep(EInteractionType.Interact, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Fly = true }; obj173.Steps = list262; reference186 = obj173; - num++; - ref QuestSequence reference188 = ref span260[num]; + ref QuestSequence reference188 = ref span93[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -190805,9 +158505,7 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-220.46619f, -193.02971f, 222.901f), 613) + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-220.46619f, -193.02971f, 222.901f), 613) { StopDistance = 1f, Fly = true, @@ -190815,25 +158513,21 @@ public static class AssemblyQuestLoader }; obj174.Steps = list264; reference188 = obj174; - num++; - ref QuestSequence reference189 = ref span260[num]; + ref QuestSequence reference189 = ref span93[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = false }; obj175.Steps = list265; reference189 = obj175; - num++; - ref QuestSequence reference190 = ref span260[num]; + ref QuestSequence reference190 = ref span93[4]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -190841,9 +158535,7 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019978u, new Vector3(-227.86298f, -178.2102f, 185.74805f), 613) { Fly = true }; @@ -190856,33 +158548,27 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - Span span267 = CollectionsMarshal.AsSpan(list267); - index = 0; - span267[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list267)[0] = "JerryWester"; questRoot38.Author = list267; - index = 3; - List list268 = new List(index); - CollectionsMarshal.SetCount(list268, index); - Span span268 = CollectionsMarshal.AsSpan(list268); - num = 0; - ref QuestSequence reference191 = ref span268[num]; + num = 3; + List list268 = new List(num); + CollectionsMarshal.SetCount(list268, num); + Span span95 = CollectionsMarshal.AsSpan(list268); + ref QuestSequence reference191 = ref span95[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = false }; obj177.Steps = list269; reference191 = obj177; - num++; - ref QuestSequence reference192 = ref span268[num]; + ref QuestSequence reference192 = ref span95[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -190890,26 +158576,21 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj178.Steps = list270; reference192 = obj178; - num++; - ref QuestSequence reference193 = ref span268[num]; + ref QuestSequence reference193 = ref span95[2]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj179.Steps = list271; reference193 = obj179; questRoot38.QuestSequence = list268; @@ -190919,16 +158600,13 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - Span span272 = CollectionsMarshal.AsSpan(list272); - index = 0; - span272[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list272)[0] = "JerryWester"; questRoot39.Author = list272; - index = 7; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - ref QuestSequence reference194 = ref span273[num]; + num = 7; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span96 = CollectionsMarshal.AsSpan(list273); + ref QuestSequence reference194 = ref span96[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -190936,9 +158614,7 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - ref QuestStep reference195 = ref span274[index2]; + ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list274)[0]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1019961u, new Vector3(323.0487f, -120.03495f, -249.01202f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -190950,12 +158626,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list275 = new List(num4); - CollectionsMarshal.SetCount(list275, num4); - Span span275 = CollectionsMarshal.AsSpan(list275); - num3 = 0; - span275[num3] = new DialogueChoice + num3 = 1; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + CollectionsMarshal.AsSpan(list275)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA312_02488_Q1_000_013"), @@ -190965,30 +158639,26 @@ public static class AssemblyQuestLoader reference195 = obj181; obj180.Steps = list274; reference194 = obj180; - num++; - ref QuestSequence reference196 = ref span273[num]; + ref QuestSequence reference196 = ref span96[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - 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) + 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) { RestartNavigationIfCancelled = false }; - num2++; - span276[num2] = new QuestStep(EInteractionType.Interact, 1019981u, new Vector3(-470.81714f, -94.80432f, 191.85156f), 613) + span97[1] = new QuestStep(EInteractionType.Interact, 1019981u, new Vector3(-470.81714f, -94.80432f, 191.85156f), 613) { Fly = true }; obj182.Steps = list276; reference196 = obj182; - num++; - ref QuestSequence reference197 = ref span273[num]; + ref QuestSequence reference197 = ref span96[2]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -190996,26 +158666,21 @@ public static class AssemblyQuestLoader num2 = 5; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-583.7968f, -58.207996f, 244.92668f), 613) + Span span98 = CollectionsMarshal.AsSpan(list277); + span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-583.7968f, -58.207996f, 244.92668f), 613) { Mount = true, Fly = true }; - index2++; - span277[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.3086f, 0f, 270.4341f), 613) + span98[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-655.3086f, 0f, 270.4341f), 613) { DisableNavmesh = true, Fly = true, RestartNavigationIfCancelled = false }; - 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]; + 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]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-739.8565f, 4.6514797f, 233.82903f), 613) { StopDistance = 0.5f, @@ -191024,48 +158689,39 @@ public static class AssemblyQuestLoader num3 = 2; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num4 = 0; - span278[num4] = 7557u; - num4++; - span278[num4] = 7558u; + Span span99 = CollectionsMarshal.AsSpan(list278); + span99[0] = 7557u; + span99[1] = 7558u; obj184.KillEnemyDataIds = list278; reference198 = obj184; obj183.Steps = list277; reference197 = obj183; - num++; - ref QuestSequence reference199 = ref span273[num]; + ref QuestSequence reference199 = ref span96[3]; QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list279 = new List(index2); - CollectionsMarshal.SetCount(list279, index2); - Span span279 = CollectionsMarshal.AsSpan(list279); - num2 = 0; - ref QuestStep reference200 = ref span279[num2]; + num2 = 1; + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list279)[0]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, null, new Vector3(-701.18787f, 6.9741554f, 19.126472f), 613) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj186.KillEnemyDataIds = list280; reference200 = obj186; obj185.Steps = list279; reference199 = obj185; - num++; - ref QuestSequence reference201 = ref span273[num]; + ref QuestSequence reference201 = ref span96[4]; QuestSequence obj187 = new QuestSequence { Sequence = 4 @@ -191073,32 +158729,26 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.Interact, 1020624u, new Vector3(-740.2304f, 8.312634f, 118.18103f), 613); + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1020624u, new Vector3(-740.2304f, 8.312634f, 118.18103f), 613); obj187.Steps = list281; reference201 = obj187; - num++; - ref QuestSequence reference202 = ref span273[num]; + ref QuestSequence reference202 = ref span96[5]; QuestSequence obj188 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetherCurrentId = 2818187u }; - num2++; - span282[num2] = new QuestStep(EInteractionType.Interact, 1019983u, new Vector3(-835.7214f, 51.33433f, 38.986816f), 613); + span101[1] = new QuestStep(EInteractionType.Interact, 1019983u, new Vector3(-835.7214f, 51.33433f, 38.986816f), 613); obj188.Steps = list282; reference202 = obj188; - num++; - ref QuestSequence reference203 = ref span273[num]; + ref QuestSequence reference203 = ref span96[6]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue @@ -191106,9 +158756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019985u, new Vector3(-797.3602f, 48.41823f, 149.64526f), 613); obj189.Steps = list283; reference203 = obj189; questRoot39.QuestSequence = list273; @@ -191118,30 +158766,24 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list284)[0] = "JerryWester"; questRoot40.Author = list284; - index = 6; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref QuestSequence reference204 = ref span285[num]; + num = 6; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span102 = CollectionsMarshal.AsSpan(list285); + ref QuestSequence reference204 = ref span102[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj190.Steps = list286; reference204 = obj190; - num++; - ref QuestSequence reference205 = ref span285[num]; + ref QuestSequence reference205 = ref span102[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -191149,23 +158791,18 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - span287[index2] = new QuestStep(EInteractionType.Interact, 2007853u, new Vector3(-838.9868f, 52.017944f, 38.010254f), 613); + CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 2007853u, new Vector3(-838.9868f, 52.017944f, 38.010254f), 613); obj191.Steps = list287; reference205 = obj191; - num++; - ref QuestSequence reference206 = ref span285[num]; + ref QuestSequence reference206 = ref span102[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list288 = new List(num2); + CollectionsMarshal.SetCount(list288, num2); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -191174,13 +158811,11 @@ public static class AssemblyQuestLoader }; obj192.Steps = list288; reference206 = obj192; - num++; - span285[num] = new QuestSequence + span102[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference207 = ref span285[num]; + ref QuestSequence reference207 = ref span102[4]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -191188,31 +158823,25 @@ public static class AssemblyQuestLoader num2 = 3; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - 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) + 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) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - index2++; - span289[index2] = new QuestStep(EInteractionType.Interact, 1019987u, new Vector3(-727.657f, 0.3198316f, -316.88416f), 613); + span103[2] = new QuestStep(EInteractionType.Interact, 1019987u, new Vector3(-727.657f, 0.3198316f, -316.88416f), 613); obj193.Steps = list289; reference207 = obj193; - num++; - ref QuestSequence reference208 = ref span285[num]; + ref QuestSequence reference208 = ref span102[5]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj194.Steps = list290; reference208 = obj194; questRoot40.QuestSequence = list285; @@ -191222,16 +158851,13 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - Span span291 = CollectionsMarshal.AsSpan(list291); - index = 0; - span291[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list291)[0] = "JerryWester"; questRoot41.Author = list291; - index = 3; - List list292 = new List(index); - CollectionsMarshal.SetCount(list292, index); - Span span292 = CollectionsMarshal.AsSpan(list292); - num = 0; - ref QuestSequence reference209 = ref span292[num]; + num = 3; + List list292 = new List(num); + CollectionsMarshal.SetCount(list292, num); + Span span104 = CollectionsMarshal.AsSpan(list292); + ref QuestSequence reference209 = ref span104[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -191239,69 +158865,51 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019988u, new Vector3(-761.83716f, 4.763445f, -455.2224f), 613); obj195.Steps = list293; reference209 = obj195; - num++; - ref QuestSequence reference210 = ref span292[num]; + ref QuestSequence reference210 = ref span104[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list294 = new List(index2); - CollectionsMarshal.SetCount(list294, index2); - Span span294 = CollectionsMarshal.AsSpan(list294); - num2 = 0; - ref QuestStep reference211 = ref span294[num2]; + num2 = 5; + List list294 = new List(num2); + CollectionsMarshal.SetCount(list294, num2); + Span span105 = CollectionsMarshal.AsSpan(list294); + ref QuestStep reference211 = ref span105[0]; 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 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list295; skipConditions3.StepIf = skipStepConditions2; questStep15.SkipConditions = skipConditions3; reference211 = questStep15; - num2++; - ref QuestStep reference212 = ref span294[num2]; + ref QuestStep reference212 = ref span105[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1019991u, new Vector3(-807.3701f, 8.49827f, -418.87543f), 613); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list296; reference212 = questStep16; - num2++; - ref QuestStep reference213 = ref span294[num2]; + ref QuestStep reference213 = ref span105[2]; QuestStep obj197 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-796.8525f, 8.05057f, -418.3381f), 613) { Mount = true @@ -191311,72 +158919,51 @@ public static class AssemblyQuestLoader num3 = 6; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list297; skipConditions4.StepIf = skipStepConditions3; obj197.SkipConditions = skipConditions4; reference213 = obj197; - num2++; - ref QuestStep reference214 = ref span294[num2]; + ref QuestStep reference214 = ref span105[3]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1019990u, new Vector3(-794.6136f, 4.993313f, -372.67108f), 613) { DisableNavmesh = true }; - 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); + 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); obj198.CompletionQuestVariablesFlags = list298; reference214 = obj198; - num2++; - ref QuestStep reference215 = ref span294[num2]; + ref QuestStep reference215 = ref span105[4]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list299; reference215 = questStep17; obj196.Steps = list294; reference210 = obj196; - num++; - ref QuestSequence reference216 = ref span292[num]; + ref QuestSequence reference216 = ref span104[2]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -191384,9 +158971,7 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019989u, new Vector3(-761.83716f, 4.763445f, -453.4829f), 613); + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019989u, new Vector3(-761.83716f, 4.763445f, -453.4829f), 613); obj199.Steps = list300; reference216 = obj199; questRoot41.QuestSequence = list292; @@ -191396,33 +158981,27 @@ public static class AssemblyQuestLoader num = 1; List list301 = new List(num); CollectionsMarshal.SetCount(list301, num); - Span span301 = CollectionsMarshal.AsSpan(list301); - index = 0; - span301[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list301)[0] = "JerryWester"; questRoot42.Author = list301; - index = 4; - List list302 = new List(index); - CollectionsMarshal.SetCount(list302, index); - Span span302 = CollectionsMarshal.AsSpan(list302); - num = 0; - ref QuestSequence reference217 = ref span302[num]; + num = 4; + List list302 = new List(num); + CollectionsMarshal.SetCount(list302, num); + Span span111 = CollectionsMarshal.AsSpan(list302); + ref QuestSequence reference217 = ref span111[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj200.Steps = list303; reference217 = obj200; - num++; - ref QuestSequence reference218 = ref span302[num]; + ref QuestSequence reference218 = ref span111[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -191430,31 +159009,25 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-831.06116f, 20.168653f, -266.25217f), 613) { TargetTerritoryId = (ushort)614, Fly = true }; obj201.Steps = list304; reference218 = obj201; - num++; - ref QuestSequence reference219 = ref span302[num]; + ref QuestSequence reference219 = ref span111[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj202.Steps = list305; reference219 = obj202; - num++; - ref QuestSequence reference220 = ref span302[num]; + ref QuestSequence reference220 = ref span111[3]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -191462,9 +159035,7 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019997u, new Vector3(527.9164f, 43.697002f, -156.05408f), 614); obj203.Steps = list306; reference220 = obj203; questRoot42.QuestSequence = list302; @@ -191474,30 +159045,24 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - Span span307 = CollectionsMarshal.AsSpan(list307); - index = 0; - span307[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; questRoot43.Author = list307; - index = 5; - List list308 = new List(index); - CollectionsMarshal.SetCount(list308, index); - Span span308 = CollectionsMarshal.AsSpan(list308); - num = 0; - ref QuestSequence reference221 = ref span308[num]; + num = 5; + List list308 = new List(num); + CollectionsMarshal.SetCount(list308, num); + Span span112 = CollectionsMarshal.AsSpan(list308); + ref QuestSequence reference221 = ref span112[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj204.Steps = list309; reference221 = obj204; - num++; - ref QuestSequence reference222 = ref span308[num]; + ref QuestSequence reference222 = ref span112[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -191505,27 +159070,21 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.Interact, 2007834u, new Vector3(487.0526f, 50.461548f, -115.03784f), 614); + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 2007834u, new Vector3(487.0526f, 50.461548f, -115.03784f), 614); obj205.Steps = list310; reference222 = obj205; - num++; - ref QuestSequence reference223 = ref span308[num]; + ref QuestSequence reference223 = ref span112[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj206.Steps = list311; reference223 = obj206; - num++; - ref QuestSequence reference224 = ref span308[num]; + ref QuestSequence reference224 = ref span112[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -191533,45 +159092,38 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) + Span span113 = CollectionsMarshal.AsSpan(list312); + span113[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) { Aetheryte = EAetheryteLocation.YanxiaNamai }; - index2++; - span312[index2] = new QuestStep(EInteractionType.Interact, 1020016u, new Vector3(414.51123f, -0.30000687f, -276.56976f), 614); + span113[1] = new QuestStep(EInteractionType.Interact, 1020016u, new Vector3(414.51123f, -0.30000687f, -276.56976f), 614); obj207.Steps = list312; reference224 = obj207; - num++; - ref QuestSequence reference225 = ref span308[num]; + ref QuestSequence reference225 = ref span112[4]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.25f }; - num2++; - span313[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) + span114[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) { Fly = true }; - num2++; - span313[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) + span114[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) { StopDistance = 0.25f, Fly = true, RestartNavigationIfCancelled = false }; - num2++; - span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020007u, new Vector3(277.9735f, 3.2627518f, -378.95782f), 614); + span114[3] = new QuestStep(EInteractionType.CompleteQuest, 1020007u, new Vector3(277.9735f, 3.2627518f, -378.95782f), 614); obj208.Steps = list313; reference225 = obj208; questRoot43.QuestSequence = list308; @@ -191581,16 +159133,13 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - Span span314 = CollectionsMarshal.AsSpan(list314); - index = 0; - span314[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list314)[0] = "JerryWester"; questRoot44.Author = list314; - index = 4; - List list315 = new List(index); - CollectionsMarshal.SetCount(list315, index); - Span span315 = CollectionsMarshal.AsSpan(list315); - num = 0; - ref QuestSequence reference226 = ref span315[num]; + num = 4; + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span115 = CollectionsMarshal.AsSpan(list315); + ref QuestSequence reference226 = ref span115[0]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -191598,30 +159147,24 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020011u, new Vector3(-49.881836f, -0.26051223f, -12.893921f), 681); obj209.Steps = list316; reference226 = obj209; - num++; - ref QuestSequence reference227 = ref span315[num]; + ref QuestSequence reference227 = ref span115[1]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj210.Steps = list317; reference227 = obj210; - num++; - ref QuestSequence reference228 = ref span315[num]; + ref QuestSequence reference228 = ref span115[2]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -191629,54 +159172,38 @@ public static class AssemblyQuestLoader num2 = 4; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - ref QuestStep reference229 = ref span318[index2]; + Span span116 = CollectionsMarshal.AsSpan(list318); + ref QuestStep reference229 = ref span116[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list319; reference229 = questStep18; - index2++; - ref QuestStep reference230 = ref span318[index2]; + ref QuestStep reference230 = ref span116[1]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list320; - num4 = 1; - List list321 = new List(num4); - CollectionsMarshal.SetCount(list321, num4); - Span span321 = CollectionsMarshal.AsSpan(list321); - num3 = 0; - span321[num3] = new DialogueChoice + num3 = 1; + List list321 = new List(num3); + CollectionsMarshal.SetCount(list321, num3); + CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA317_02493_Q1_100_040"), @@ -191684,65 +159211,48 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list321; reference230 = questStep19; - index2++; - ref QuestStep reference231 = ref span318[index2]; + ref QuestStep reference231 = ref span116[2]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list322; reference231 = questStep20; - index2++; - ref QuestStep reference232 = ref span318[index2]; + ref QuestStep reference232 = ref span116[3]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1020015u, new Vector3(389.2423f, 72.07916f, -68.467285f), 614) { Mount = true }; - 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); + 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); obj212.CompletionQuestVariablesFlags = list323; reference232 = obj212; obj211.Steps = list318; reference228 = obj211; - num++; - ref QuestSequence reference233 = ref span315[num]; + ref QuestSequence reference233 = ref span115[3]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj213.Steps = list324; reference233 = obj213; questRoot44.QuestSequence = list315; @@ -191752,16 +159262,13 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - Span span325 = CollectionsMarshal.AsSpan(list325); - index = 0; - span325[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list325)[0] = "JerryWester"; questRoot45.Author = list325; - index = 7; - List list326 = new List(index); - CollectionsMarshal.SetCount(list326, index); - Span span326 = CollectionsMarshal.AsSpan(list326); - num = 0; - ref QuestSequence reference234 = ref span326[num]; + num = 7; + List list326 = new List(num); + CollectionsMarshal.SetCount(list326, num); + Span span121 = CollectionsMarshal.AsSpan(list326); + ref QuestSequence reference234 = ref span121[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -191769,9 +159276,7 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020012u, new Vector3(486.9917f, 50.48013f, -115.40399f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -191784,28 +159289,24 @@ public static class AssemblyQuestLoader }; obj214.Steps = list327; reference234 = obj214; - num++; - ref QuestSequence reference235 = ref span326[num]; + ref QuestSequence reference235 = ref span121[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2724) }; - num2++; - span328[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) + span122[1] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) { PickUpQuestId = new QuestId(2728) }; - num2++; - ref QuestStep reference236 = ref span328[num2]; + ref QuestStep reference236 = ref span122[2]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(508.4545f, 83.838875f, 98.54378f), 614) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -191813,15 +159314,12 @@ public static class AssemblyQuestLoader num3 = 1; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - Span span329 = CollectionsMarshal.AsSpan(list329); - num4 = 0; - span329[num4] = 7560u; + CollectionsMarshal.AsSpan(list329)[0] = 7560u; obj216.KillEnemyDataIds = list329; reference236 = obj216; obj215.Steps = list328; reference235 = obj215; - num++; - ref QuestSequence reference237 = ref span326[num]; + ref QuestSequence reference237 = ref span121[2]; QuestSequence obj217 = new QuestSequence { Sequence = 2 @@ -191829,42 +159327,34 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614) { StopDistance = 7f }; obj217.Steps = list330; reference237 = obj217; - num++; - ref QuestSequence reference238 = ref span326[num]; + ref QuestSequence reference238 = ref span121[3]; QuestSequence obj218 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list331 = new List(index2); - CollectionsMarshal.SetCount(list331, index2); - Span span331 = CollectionsMarshal.AsSpan(list331); - num2 = 0; - ref QuestStep reference239 = ref span331[num2]; + num2 = 1; + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list331)[0]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, 2007836u, new Vector3(370.01587f, 85.52673f, 32.48633f), 614) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list332 = new List(num4); - CollectionsMarshal.SetCount(list332, num4); - Span span332 = CollectionsMarshal.AsSpan(list332); - num3 = 0; - span332[num3] = 6685u; + num3 = 1; + List list332 = new List(num3); + CollectionsMarshal.SetCount(list332, num3); + CollectionsMarshal.AsSpan(list332)[0] = 6685u; obj219.KillEnemyDataIds = list332; reference239 = obj219; obj218.Steps = list331; reference238 = obj218; - num++; - ref QuestSequence reference240 = ref span326[num]; + ref QuestSequence reference240 = ref span121[4]; QuestSequence obj220 = new QuestSequence { Sequence = 4 @@ -191872,27 +159362,21 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614); + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.Interact, 1020018u, new Vector3(507.86584f, 83.5696f, 94.92627f), 614); obj220.Steps = list333; reference240 = obj220; - num++; - ref QuestSequence reference241 = ref span326[num]; + ref QuestSequence reference241 = ref span121[5]; QuestSequence obj221 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj221.Steps = list334; reference241 = obj221; - num++; - ref QuestSequence reference242 = ref span326[num]; + ref QuestSequence reference242 = ref span121[6]; QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue @@ -191900,14 +159384,12 @@ public static class AssemblyQuestLoader num2 = 2; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008008u, new Vector3(163.5614f, 144.60962f, -11.917358f), 614) + Span span123 = CollectionsMarshal.AsSpan(list335); + span123[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008008u, new Vector3(163.5614f, 144.60962f, -11.917358f), 614) { AetherCurrentId = 2818196u }; - index2++; - span335[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) + span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1020020u, new Vector3(397.75684f, 72.835175f, -97.06268f), 614) { Mount = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai @@ -191921,26 +159403,21 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - Span span336 = CollectionsMarshal.AsSpan(list336); - index = 0; - span336[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list336)[0] = "JerryWester"; questRoot46.Author = list336; - index = 10; - List list337 = new List(index); - CollectionsMarshal.SetCount(list337, index); - Span span337 = CollectionsMarshal.AsSpan(list337); - num = 0; - ref QuestSequence reference243 = ref span337[num]; + num = 10; + List list337 = new List(num); + CollectionsMarshal.SetCount(list337, num); + Span span124 = CollectionsMarshal.AsSpan(list337); + ref QuestSequence reference243 = ref span124[0]; QuestSequence obj223 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -191953,8 +159430,7 @@ public static class AssemblyQuestLoader }; obj223.Steps = list338; reference243 = obj223; - num++; - ref QuestSequence reference244 = ref span337[num]; + ref QuestSequence reference244 = ref span124[1]; QuestSequence obj224 = new QuestSequence { Sequence = 1 @@ -191962,32 +159438,26 @@ public static class AssemblyQuestLoader num2 = 2; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.0395f, 68.028534f, -109.489944f), 614) + Span span125 = CollectionsMarshal.AsSpan(list339); + span125[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(417.0395f, 68.028534f, -109.489944f), 614) { Mount = true }; - index2++; - span339[index2] = new QuestStep(EInteractionType.Interact, 2007838u, new Vector3(418.4176f, 68.0094f, -135.4544f), 614); + span125[1] = new QuestStep(EInteractionType.Interact, 2007838u, new Vector3(418.4176f, 68.0094f, -135.4544f), 614); obj224.Steps = list339; reference244 = obj224; - num++; - ref QuestSequence reference245 = ref span337[num]; + ref QuestSequence reference245 = ref span124[2]; QuestSequence obj225 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj225.Steps = list340; reference245 = obj225; - num++; - ref QuestSequence reference246 = ref span337[num]; + ref QuestSequence reference246 = ref span124[3]; QuestSequence obj226 = new QuestSequence { Sequence = 3 @@ -191995,40 +159465,33 @@ public static class AssemblyQuestLoader num2 = 3; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + Span span126 = CollectionsMarshal.AsSpan(list341); + span126[0] = new QuestStep(EInteractionType.AcceptQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { PickUpQuestId = new QuestId(2733) }; - index2++; - span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) + span126[1] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) { PickUpQuestId = new QuestId(2730) }; - index2++; - span341[index2] = new QuestStep(EInteractionType.Interact, 1020024u, new Vector3(534.2335f, 84.80294f, 111.13135f), 614); + span126[2] = new QuestStep(EInteractionType.Interact, 1020024u, new Vector3(534.2335f, 84.80294f, 111.13135f), 614); obj226.Steps = list341; reference246 = obj226; - num++; - ref QuestSequence reference247 = ref span337[num]; + ref QuestSequence reference247 = ref span124[4]; QuestSequence obj227 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Comment = "Snipe soldiers" }; obj227.Steps = list342; reference247 = obj227; - num++; - ref QuestSequence reference248 = ref span337[num]; + ref QuestSequence reference248 = ref span124[5]; QuestSequence obj228 = new QuestSequence { Sequence = 5 @@ -192036,30 +159499,24 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.Snipe, 2007835u, new Vector3(535.2406f, 54.48987f, 237.04883f), 614) + CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.Snipe, 2007835u, new Vector3(535.2406f, 54.48987f, 237.04883f), 614) { Comment = "Snipe soldiers" }; obj228.Steps = list343; reference248 = obj228; - num++; - ref QuestSequence reference249 = ref span337[num]; + ref QuestSequence reference249 = ref span124[6]; QuestSequence obj229 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj229.Steps = list344; reference249 = obj229; - num++; - ref QuestSequence reference250 = ref span337[num]; + ref QuestSequence reference250 = ref span124[7]; QuestSequence obj230 = new QuestSequence { Sequence = 7 @@ -192067,30 +159524,24 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.Snipe, 2007915u, new Vector3(329.67102f, 32.97461f, 603.2959f), 614) + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.Snipe, 2007915u, new Vector3(329.67102f, 32.97461f, 603.2959f), 614) { Comment = "Snipe soldiers" }; obj230.Steps = list345; reference250 = obj230; - num++; - ref QuestSequence reference251 = ref span337[num]; + ref QuestSequence reference251 = ref span124[8]; QuestSequence obj231 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj231.Steps = list346; reference251 = obj231; - num++; - ref QuestSequence reference252 = ref span337[num]; + ref QuestSequence reference252 = ref span124[9]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -192098,9 +159549,7 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020283u, new Vector3(406.27136f, 14.6418705f, 626.1234f), 614); + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020283u, new Vector3(406.27136f, 14.6418705f, 626.1234f), 614); obj232.Steps = list347; reference252 = obj232; questRoot46.QuestSequence = list337; @@ -192110,30 +159559,24 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - Span span348 = CollectionsMarshal.AsSpan(list348); - index = 0; - span348[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list348)[0] = "JerryWester"; questRoot47.Author = list348; - index = 8; - List list349 = new List(index); - CollectionsMarshal.SetCount(list349, index); - Span span349 = CollectionsMarshal.AsSpan(list349); - num = 0; - ref QuestSequence reference253 = ref span349[num]; + num = 8; + List list349 = new List(num); + CollectionsMarshal.SetCount(list349, num); + Span span127 = CollectionsMarshal.AsSpan(list349); + ref QuestSequence reference253 = ref span127[0]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj233.Steps = list350; reference253 = obj233; - num++; - ref QuestSequence reference254 = ref span349[num]; + ref QuestSequence reference254 = ref span127[1]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -192141,27 +159584,21 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span351 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - span351[index2] = new QuestStep(EInteractionType.Interact, 2007839u, new Vector3(358.69373f, 22.659607f, 573.69336f), 614); + CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2007839u, new Vector3(358.69373f, 22.659607f, 573.69336f), 614); obj234.Steps = list351; reference254 = obj234; - num++; - ref QuestSequence reference255 = ref span349[num]; + ref QuestSequence reference255 = ref span127[2]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj235.Steps = list352; reference255 = obj235; - num++; - ref QuestSequence reference256 = ref span349[num]; + ref QuestSequence reference256 = ref span127[3]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -192169,37 +159606,30 @@ public static class AssemblyQuestLoader num2 = 3; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - 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) + 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) { StopDistance = 4f }; obj236.Steps = list353; reference256 = obj236; - num++; - ref QuestSequence reference257 = ref span349[num]; + ref QuestSequence reference257 = ref span127[4]; QuestSequence obj237 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f }; obj237.Steps = list354; reference257 = obj237; - num++; - ref QuestSequence reference258 = ref span349[num]; + ref QuestSequence reference258 = ref span127[5]; QuestSequence obj238 = new QuestSequence { Sequence = 5 @@ -192207,34 +159637,28 @@ public static class AssemblyQuestLoader num2 = 7; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + Span span129 = CollectionsMarshal.AsSpan(list355); + span129[0] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20596u }; - index2++; - span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + span129[1] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20597u }; - index2++; - span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + span129[2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20598u }; - index2++; - span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + span129[3] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20599u }; - index2++; - span355[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 614) + span129[4] = new QuestStep(EInteractionType.EquipItem, null, null, 614) { ItemId = 20600u }; - index2++; - ref QuestStep reference259 = ref span355[index2]; + ref QuestStep reference259 = ref span129[5]; QuestStep obj239 = new QuestStep(EInteractionType.Emote, 1020041u, new Vector3(446.73828f, 14.626371f, 705.0431f), 614) { Emote = EEmote.ImperialSalute @@ -192242,65 +159666,48 @@ public static class AssemblyQuestLoader num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - 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); + 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); obj239.CompletionQuestVariablesFlags = list356; reference259 = obj239; - index2++; - ref QuestStep reference260 = ref span355[index2]; + ref QuestStep reference260 = ref span129[6]; QuestStep obj240 = new QuestStep(EInteractionType.Emote, 1020040u, new Vector3(436.14856f, 14.6418705f, 706.1721f), 614) { Emote = EEmote.ImperialSalute }; - 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); + 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); obj240.CompletionQuestVariablesFlags = list357; reference260 = obj240; obj238.Steps = list355; reference258 = obj238; - num++; - ref QuestSequence reference261 = ref span349[num]; + ref QuestSequence reference261 = ref span127[6]; QuestSequence obj241 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj241.Steps = list358; reference261 = obj241; - num++; - ref QuestSequence reference262 = ref span349[num]; + ref QuestSequence reference262 = ref span127[7]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -192308,9 +159715,7 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020029u, new Vector3(457.69434f, 30.001902f, 764.187f), 614); + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020029u, new Vector3(457.69434f, 30.001902f, 764.187f), 614); obj242.Steps = list359; reference262 = obj242; questRoot47.QuestSequence = list349; @@ -192320,30 +159725,24 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - Span span360 = CollectionsMarshal.AsSpan(list360); - index = 0; - span360[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list360)[0] = "JerryWester"; questRoot48.Author = list360; - index = 9; - List list361 = new List(index); - CollectionsMarshal.SetCount(list361, index); - Span span361 = CollectionsMarshal.AsSpan(list361); - num = 0; - ref QuestSequence reference263 = ref span361[num]; + num = 9; + List list361 = new List(num); + CollectionsMarshal.SetCount(list361, num); + Span span133 = CollectionsMarshal.AsSpan(list361); + ref QuestSequence reference263 = ref span133[0]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj243.Steps = list362; reference263 = obj243; - num++; - ref QuestSequence reference264 = ref span361[num]; + ref QuestSequence reference264 = ref span133[1]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -192351,34 +159750,27 @@ public static class AssemblyQuestLoader num2 = 3; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008011u, new Vector3(457.51123f, 32.36438f, 822.4154f), 614) + Span span134 = CollectionsMarshal.AsSpan(list363); + span134[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008011u, new Vector3(457.51123f, 32.36438f, 822.4154f), 614) { AetherCurrentId = 2818199u }; - 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); + 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); obj244.Steps = list363; reference264 = obj244; - num++; - ref QuestSequence reference265 = ref span361[num]; + ref QuestSequence reference265 = ref span133[2]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj245.Steps = list364; reference265 = obj245; - num++; - ref QuestSequence reference266 = ref span361[num]; + ref QuestSequence reference266 = ref span133[3]; QuestSequence obj246 = new QuestSequence { Sequence = 3 @@ -192386,30 +159778,24 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span365[index2] = new QuestStep(EInteractionType.UseItem, 1020049u, new Vector3(390.5547f, 14.64187f, 685.9387f), 614) + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.UseItem, 1020049u, new Vector3(390.5547f, 14.64187f, 685.9387f), 614) { ItemId = 2002070u }; obj246.Steps = list365; reference266 = obj246; - num++; - ref QuestSequence reference267 = ref span361[num]; + ref QuestSequence reference267 = ref span133[4]; QuestSequence obj247 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj247.Steps = list366; reference267 = obj247; - num++; - ref QuestSequence reference268 = ref span361[num]; + ref QuestSequence reference268 = ref span133[5]; QuestSequence obj248 = new QuestSequence { Sequence = 5 @@ -192417,30 +159803,24 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.Interact, 2007841u, new Vector3(485.37415f, 14.633362f, 742.97705f), 614); + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Interact, 2007841u, new Vector3(485.37415f, 14.633362f, 742.97705f), 614); obj248.Steps = list367; reference268 = obj248; - num++; - ref QuestSequence reference269 = ref span361[num]; + ref QuestSequence reference269 = ref span133[6]; QuestSequence obj249 = new QuestSequence { Sequence = 6 }; - 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) + 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) { ItemId = 2002070u }; obj249.Steps = list368; reference269 = obj249; - num++; - ref QuestSequence reference270 = ref span361[num]; + ref QuestSequence reference270 = ref span133[7]; QuestSequence obj250 = new QuestSequence { Sequence = 7 @@ -192448,41 +159828,34 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span369 = CollectionsMarshal.AsSpan(list369); - index2 = 0; - span369[index2] = new QuestStep(EInteractionType.Interact, 1020051u, new Vector3(232.56274f, 1.4025975f, 756.0996f), 614); + CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1020051u, new Vector3(232.56274f, 1.4025975f, 756.0996f), 614); obj250.Steps = list369; reference270 = obj250; - num++; - ref QuestSequence reference271 = ref span361[num]; + ref QuestSequence reference271 = ref span133[8]; QuestSequence obj251 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - num2++; - span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) + span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(365.84177f, -50.164906f, -309.3022f), 614) { Fly = true }; - num2++; - span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) + span135[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(301.059f, -21.410976f, -358.57938f), 614) { StopDistance = 0.25f, Fly = true, RestartNavigationIfCancelled = false }; - num2++; - span370[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023787u, new Vector3(278.30933f, 2.9544957f, -378.43903f), 614); + span135[3] = new QuestStep(EInteractionType.CompleteQuest, 1023787u, new Vector3(278.30933f, 2.9544957f, -378.43903f), 614); obj251.Steps = list370; reference271 = obj251; questRoot48.QuestSequence = list361; @@ -192492,16 +159865,13 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - Span span371 = CollectionsMarshal.AsSpan(list371); - index = 0; - span371[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list371)[0] = "JerryWester"; questRoot49.Author = list371; - index = 5; - List list372 = new List(index); - CollectionsMarshal.SetCount(list372, index); - Span span372 = CollectionsMarshal.AsSpan(list372); - num = 0; - ref QuestSequence reference272 = ref span372[num]; + num = 5; + List list372 = new List(num); + CollectionsMarshal.SetCount(list372, num); + Span span136 = CollectionsMarshal.AsSpan(list372); + ref QuestSequence reference272 = ref span136[0]; QuestSequence obj252 = new QuestSequence { Sequence = 0 @@ -192509,27 +159879,21 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - Span span373 = CollectionsMarshal.AsSpan(list373); - index2 = 0; - span373[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); + CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); obj252.Steps = list373; reference272 = obj252; - num++; - ref QuestSequence reference273 = ref span372[num]; + ref QuestSequence reference273 = ref span136[1]; QuestSequence obj253 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj253.Steps = list374; reference273 = obj253; - num++; - ref QuestSequence reference274 = ref span372[num]; + ref QuestSequence reference274 = ref span136[2]; QuestSequence obj254 = new QuestSequence { Sequence = 2 @@ -192537,9 +159901,7 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - span375[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020056u, new Vector3(-247.91339f, 16.932724f, 577.4165f), 614) + CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020056u, new Vector3(-247.91339f, 16.932724f, 577.4165f), 614) { StopDistance = 7f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -192549,23 +159911,19 @@ public static class AssemblyQuestLoader }; obj254.Steps = list375; reference274 = obj254; - num++; - span372[num] = new QuestSequence + span136[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference275 = ref span372[num]; + ref QuestSequence reference275 = ref span136[4]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj255.Steps = list376; reference275 = obj255; questRoot49.QuestSequence = list372; @@ -192575,16 +159933,13 @@ public static class AssemblyQuestLoader num = 1; List list377 = new List(num); CollectionsMarshal.SetCount(list377, num); - Span span377 = CollectionsMarshal.AsSpan(list377); - index = 0; - span377[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list377)[0] = "JerryWester"; questRoot50.Author = list377; - index = 4; - List list378 = new List(index); - CollectionsMarshal.SetCount(list378, index); - Span span378 = CollectionsMarshal.AsSpan(list378); - num = 0; - ref QuestSequence reference276 = ref span378[num]; + num = 4; + List list378 = new List(num); + CollectionsMarshal.SetCount(list378, num); + Span span137 = CollectionsMarshal.AsSpan(list378); + ref QuestSequence reference276 = ref span137[0]; QuestSequence obj256 = new QuestSequence { Sequence = 0 @@ -192592,33 +159947,27 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - Span span379 = CollectionsMarshal.AsSpan(list379); - index2 = 0; - span379[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020059u, new Vector3(490.19604f, 8.442365f, 373.22034f), 614) + CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020059u, new Vector3(490.19604f, 8.442365f, 373.22034f), 614) { StopDistance = 7f }; obj256.Steps = list379; reference276 = obj256; - num++; - ref QuestSequence reference277 = ref span378[num]; + ref QuestSequence reference277 = ref span137[1]; QuestSequence obj257 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj257.Steps = list380; reference277 = obj257; - num++; - ref QuestSequence reference278 = ref span378[num]; + ref QuestSequence reference278 = ref span137[2]; QuestSequence obj258 = new QuestSequence { Sequence = 2 @@ -192626,51 +159975,36 @@ public static class AssemblyQuestLoader num2 = 4; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span381 = CollectionsMarshal.AsSpan(list381); - index2 = 0; - ref QuestStep reference279 = ref span381[index2]; + Span span138 = CollectionsMarshal.AsSpan(list381); + ref QuestStep reference279 = ref span138[0]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list382; reference279 = questStep21; - index2++; - ref QuestStep reference280 = ref span381[index2]; + ref QuestStep reference280 = ref span138[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1020063u, new Vector3(442.83203f, 58.859047f, -171.06891f), 614); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list383; reference280 = questStep22; - index2++; - ref QuestStep reference281 = ref span381[index2]; + ref QuestStep reference281 = ref span138[2]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1020065u, new Vector3(459.25073f, 58.79123f, -187.42657f), 614) { Mount = true @@ -192678,56 +160012,40 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - 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); + 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); obj259.CompletionQuestVariablesFlags = list384; reference281 = obj259; - index2++; - ref QuestStep reference282 = ref span381[index2]; + ref QuestStep reference282 = ref span138[3]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1020066u, new Vector3(445.5481f, 68.028534f, -73.56378f), 614); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list385; reference282 = questStep23; obj258.Steps = list381; reference278 = obj258; - num++; - ref QuestSequence reference283 = ref span378[num]; + ref QuestSequence reference283 = ref span137[3]; QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj260.Steps = list386; reference283 = obj260; questRoot50.QuestSequence = list378; @@ -192741,16 +160059,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -192758,119 +160073,87 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 4; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) { StopDistance = 7f }; - 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); + 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); obj3.CompletionQuestVariablesFlags = list6; reference4 = obj3; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list7; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference5 = questStep2; - num2++; - ref QuestStep reference6 = ref span4[num2]; + ref QuestStep reference6 = ref span2[3]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1019349u, new Vector3(543.93823f, -19.505642f, 354.08557f), 622) { StopDistance = 7f }; - 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); + 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); obj4.CompletionQuestVariablesFlags = list8; reference6 = obj4; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[2]; QuestSequence obj5 = new QuestSequence { Sequence = 2 @@ -192878,28 +160161,23 @@ public static class AssemblyQuestLoader num2 = 2; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) + Span span7 = CollectionsMarshal.AsSpan(list9); + span7[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) { Aetheryte = EAetheryteLocation.AzimSteppeReunion }; - index2++; - span9[index2] = new QuestStep(EInteractionType.Interact, 1020275u, new Vector3(540.917f, -19.504309f, 278.0652f), 622); + span7[1] = new QuestStep(EInteractionType.Interact, 1020275u, new Vector3(540.917f, -19.504309f, 278.0652f), 622); obj5.Steps = list9; reference7 = obj5; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[3]; QuestSequence obj6 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -192908,8 +160186,7 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference8 = obj6; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[4]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -192917,9 +160194,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622); obj7.Steps = list11; reference9 = obj7; questRoot.QuestSequence = list2; @@ -192929,26 +160204,21 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list12)[0] = "JerryWester"; questRoot2.Author = list12; - index = 3; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference10 = ref span13[num]; + num = 3; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span8 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference10 = ref span8[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -192961,8 +160231,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference10 = obj8; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span8[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -192970,14 +160239,12 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.1567f, -19.505648f, 306.37933f), 622) + Span span9 = CollectionsMarshal.AsSpan(list15); + span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(553.1567f, -19.505648f, 306.37933f), 622) { Mount = true }; - index2++; - ref QuestStep reference12 = ref span15[index2]; + ref QuestStep reference12 = ref span9[1]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, null, new Vector3(395.68478f, -8.147073f, 299.55774f), 622) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -192985,9 +160252,7 @@ public static class AssemblyQuestLoader num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num4 = 0; - ref ComplexCombatData reference13 = ref span16[num4]; + ref ComplexCombatData reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; ComplexCombatData obj11 = new ComplexCombatData { DataId = 6626u, @@ -192995,40 +160260,31 @@ public static class AssemblyQuestLoader RewardItemId = 2002204u, RewardItemCount = 2 }; - 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; + 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; obj11.CompletionQuestVariablesFlags = list17; reference13 = obj11; obj10.ComplexCombatData = list16; reference12 = obj10; obj9.Steps = list15; reference11 = obj9; - num++; - ref QuestSequence reference14 = ref span13[num]; + ref QuestSequence reference14 = ref span8[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -193041,16 +160297,13 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list19)[0] = "JerryWester"; questRoot3.Author = list19; - index = 3; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference15 = ref span20[num]; + num = 3; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span11 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference15 = ref span11[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -193058,9 +160311,7 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020281u, new Vector3(571.58765f, -19.505655f, 313.71008f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -193073,27 +160324,23 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference15 = obj13; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span11[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2760) }; - num2++; - span22[num2] = new QuestStep(EInteractionType.Interact, 1020279u, new Vector3(592.9198f, 24.918879f, 380.27002f), 622); + span12[1] = new QuestStep(EInteractionType.Interact, 1020279u, new Vector3(592.9198f, 24.918879f, 380.27002f), 622); obj14.Steps = list22; reference16 = obj14; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span11[2]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -193101,9 +160348,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020543u, new Vector3(592.9198f, 24.943647f, 380.0564f), 622); obj15.Steps = list23; reference17 = obj15; questRoot3.QuestSequence = list20; @@ -193113,26 +160358,21 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list24)[0] = "JerryWester"; questRoot4.Author = list24; - index = 4; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference18 = ref span25[num]; + num = 4; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span13 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference18 = ref span13[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -193145,8 +160385,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list26; reference18 = obj16; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span13[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -193154,27 +160393,21 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1020531u, new Vector3(491.29468f, 8.481642f, -234.48541f), 622); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1020531u, new Vector3(491.29468f, 8.481642f, -234.48541f), 622); obj17.Steps = list27; reference19 = obj17; - num++; - ref QuestSequence reference20 = ref span25[num]; + ref QuestSequence reference20 = ref span13[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj18.Steps = list28; reference20 = obj18; - num++; - ref QuestSequence reference21 = ref span25[num]; + ref QuestSequence reference21 = ref span13[3]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -193182,9 +160415,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj19.Steps = list29; reference21 = obj19; questRoot4.QuestSequence = list25; @@ -193194,30 +160425,24 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list30)[0] = "JerryWester"; questRoot5.Author = list30; - index = 5; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference22 = ref span31[num]; + num = 5; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span14 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference22 = ref span14[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj20.Steps = list32; reference22 = obj20; - num++; - ref QuestSequence reference23 = ref span31[num]; + ref QuestSequence reference23 = ref span14[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -193225,123 +160450,92 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1020548u, new Vector3(416.495f, 42.579082f, -450.12592f), 622); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1020548u, new Vector3(416.495f, 42.579082f, -450.12592f), 622); obj21.Steps = list33; reference23 = obj21; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span14[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference25 = ref span34[num2]; + num2 = 3; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span15 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference25 = ref span15[0]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2008457u, new Vector3(313.52698f, 50.766724f, -456.77887f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list35 = new List(num4); - CollectionsMarshal.SetCount(list35, num4); - Span span35 = CollectionsMarshal.AsSpan(list35); - num3 = 0; - span35[num3] = 7546u; + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = 7546u; obj23.KillEnemyDataIds = list35; num3 = 6; List list36 = new List(num3); CollectionsMarshal.SetCount(list36, num3); - 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); + 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); obj23.CompletionQuestVariablesFlags = list36; reference25 = obj23; - num2++; - ref QuestStep reference26 = ref span34[num2]; + ref QuestStep reference26 = ref span15[1]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, 2008456u, new Vector3(224.47546f, 101.27405f, -542.4735f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - 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; + num3 = 2; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + Span span17 = CollectionsMarshal.AsSpan(list37); + span17[0] = 7546u; + span17[1] = 7562u; obj24.KillEnemyDataIds = list37; num3 = 6; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - 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); + 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); obj24.CompletionQuestVariablesFlags = list38; reference26 = obj24; - num2++; - ref QuestStep reference27 = ref span34[num2]; + ref QuestStep reference27 = ref span15[2]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2008131u, new Vector3(100.694214f, 116.472046f, -597.7417f), 622) { ItemId = 2002199u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list39 = new List(num4); - CollectionsMarshal.SetCount(list39, num4); - Span span39 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - span39[num3] = 7562u; + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + CollectionsMarshal.AsSpan(list39)[0] = 7562u; obj25.KillEnemyDataIds = list39; num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - 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); + 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); obj25.CompletionQuestVariablesFlags = list40; reference27 = obj25; obj22.Steps = list34; reference24 = obj22; - num++; - ref QuestSequence reference28 = ref span31[num]; + ref QuestSequence reference28 = ref span14[3]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -193349,34 +160543,28 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008017u, new Vector3(231.98291f, 93.36987f, -515.8008f), 622) + Span span20 = CollectionsMarshal.AsSpan(list41); + span20[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008017u, new Vector3(231.98291f, 93.36987f, -515.8008f), 622) { AetherCurrentId = 2818210u }; - index2++; - span41[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.19914f, 62.795677f, -495.62f), 622) + span20[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.19914f, 62.795677f, -495.62f), 622) { DisableNavmesh = true, Mount = true }; - index2++; - span41[index2] = new QuestStep(EInteractionType.Interact, 1020547u, new Vector3(418.265f, 42.699287f, -448.53894f), 622); + span20[2] = new QuestStep(EInteractionType.Interact, 1020547u, new Vector3(418.265f, 42.699287f, -448.53894f), 622); obj26.Steps = list41; reference28 = obj26; - num++; - ref QuestSequence reference29 = ref span31[num]; + ref QuestSequence reference29 = ref span14[4]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj27.Steps = list42; reference29 = obj27; questRoot5.QuestSequence = list31; @@ -193386,16 +160574,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; questRoot6.Author = list43; - index = 7; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference30 = ref span44[num]; + num = 7; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span21 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference30 = ref span21[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -193403,27 +160588,21 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020501u, new Vector3(484.48914f, 40.21725f, -469.5354f), 622); obj28.Steps = list45; reference30 = obj28; - num++; - ref QuestSequence reference31 = ref span44[num]; + ref QuestSequence reference31 = ref span21[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj29.Steps = list46; reference31 = obj29; - num++; - ref QuestSequence reference32 = ref span44[num]; + ref QuestSequence reference32 = ref span21[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -193431,109 +160610,77 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); obj30.Steps = list47; reference32 = obj30; - num++; - ref QuestSequence reference33 = ref span44[num]; + ref QuestSequence reference33 = ref span21[3]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num2 = 0; - ref QuestStep reference34 = ref span48[num2]; + num2 = 4; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + Span span22 = CollectionsMarshal.AsSpan(list48); + ref QuestStep reference34 = ref span22[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008245u, new Vector3(562.0354f, 9.750427f, -297.8103f), 622); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list49; reference34 = questStep3; - num2++; - ref QuestStep reference35 = ref span48[num2]; + ref QuestStep reference35 = ref span22[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list50; reference35 = questStep4; - num2++; - ref QuestStep reference36 = ref span48[num2]; + ref QuestStep reference36 = ref span22[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2008248u, new Vector3(729.3048f, 6.301941f, -355.18427f), 622); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list51; reference36 = questStep5; - num2++; - ref QuestStep reference37 = ref span48[num2]; + ref QuestStep reference37 = ref span22[3]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list52; reference37 = questStep6; obj31.Steps = list48; reference33 = obj31; - num++; - ref QuestSequence reference38 = ref span44[num]; + ref QuestSequence reference38 = ref span21[4]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -193541,27 +160688,21 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1020549u, new Vector3(555.9625f, 10.160159f, -266.46832f), 622); obj32.Steps = list53; reference38 = obj32; - num++; - ref QuestSequence reference39 = ref span44[num]; + ref QuestSequence reference39 = ref span21[5]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj33.Steps = list54; reference39 = obj33; - num++; - ref QuestSequence reference40 = ref span44[num]; + ref QuestSequence reference40 = ref span21[6]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -193569,9 +160710,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020544u, new Vector3(485.2522f, 40.32777f, -472.19043f), 622); obj34.Steps = list55; reference40 = obj34; questRoot6.QuestSequence = list44; @@ -193581,30 +160720,24 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list56)[0] = "JerryWester"; questRoot7.Author = list56; - index = 7; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference41 = ref span57[num]; + num = 7; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span27 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference41 = ref span27[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj35.Steps = list58; reference41 = obj35; - num++; - ref QuestSequence reference42 = ref span57[num]; + ref QuestSequence reference42 = ref span27[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -193612,32 +160745,26 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1020670u, new Vector3(420.4928f, 42.47494f, -439.01733f), 622); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1020670u, new Vector3(420.4928f, 42.47494f, -439.01733f), 622); obj36.Steps = list59; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span57[num]; + ref QuestSequence reference43 = ref span27[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { PickUpQuestId = new QuestId(2771) }; - num2++; - span60[num2] = new QuestStep(EInteractionType.Interact, 1020671u, new Vector3(291.27942f, 46.15984f, -417.99042f), 622); + span28[1] = new QuestStep(EInteractionType.Interact, 1020671u, new Vector3(291.27942f, 46.15984f, -417.99042f), 622); obj37.Steps = list60; reference43 = obj37; - num++; - ref QuestSequence reference44 = ref span57[num]; + ref QuestSequence reference44 = ref span27[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -193645,43 +160772,34 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - ref QuestStep reference45 = ref span61[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list61)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 2008929u, new Vector3(223.22424f, 49.66809f, -426.13873f), 622) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj39.KillEnemyDataIds = list62; reference45 = obj39; obj38.Steps = list61; reference44 = obj38; - num++; - ref QuestSequence reference46 = ref span57[num]; + ref QuestSequence reference46 = ref span27[4]; QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj40.Steps = list63; reference46 = obj40; - num++; - ref QuestSequence reference47 = ref span57[num]; + ref QuestSequence reference47 = ref span27[5]; QuestSequence obj41 = new QuestSequence { Sequence = 5 @@ -193689,9 +160807,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - ref QuestStep reference48 = ref span64[index2]; + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list64)[0]; QuestStep obj42 = new QuestStep(EInteractionType.Combat, 2008930u, new Vector3(-250.59894f, 76.1272f, -486.71704f), 622) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -193699,27 +160815,22 @@ public static class AssemblyQuestLoader num3 = 2; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span65 = CollectionsMarshal.AsSpan(list65); - num4 = 0; - span65[num4] = 7547u; - num4++; - span65[num4] = 7567u; + Span span30 = CollectionsMarshal.AsSpan(list65); + span30[0] = 7547u; + span30[1] = 7567u; obj42.KillEnemyDataIds = list65; reference48 = obj42; obj41.Steps = list64; reference47 = obj41; - num++; - ref QuestSequence reference49 = ref span57[num]; + ref QuestSequence reference49 = ref span27[6]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj43.Steps = list66; reference49 = obj43; questRoot7.QuestSequence = list57; @@ -193729,16 +160840,13 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list67)[0] = "JerryWester"; questRoot8.Author = list67; - index = 3; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference50 = ref span68[num]; + num = 3; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span31 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference50 = ref span31[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -193746,23 +160854,18 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020679u, new Vector3(-507.80502f, 71.23162f, -512.0775f), 622); obj44.Steps = list69; reference50 = obj44; - num++; - ref QuestSequence reference51 = ref span68[num]; + ref QuestSequence reference51 = ref span31[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Duty, null, null, 622) { DutyOptions = new DutyOptions { @@ -193771,8 +160874,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list70; reference51 = obj45; - num++; - ref QuestSequence reference52 = ref span68[num]; + ref QuestSequence reference52 = ref span31[2]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -193780,9 +160882,7 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020682u, new Vector3(-507.49982f, 70.84219f, -501.45728f), 622); obj46.Steps = list71; reference52 = obj46; questRoot8.QuestSequence = list68; @@ -193792,30 +160892,24 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; questRoot9.Author = list72; - index = 2; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference53 = ref span73[num]; + num = 2; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span32 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference53 = ref span32[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj47.Steps = list74; reference53 = obj47; - num++; - ref QuestSequence reference54 = ref span73[num]; + ref QuestSequence reference54 = ref span32[1]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -193823,9 +160917,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj48.Steps = list75; reference54 = obj48; questRoot9.QuestSequence = list73; @@ -193835,30 +160927,24 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list76)[0] = "JerryWester"; questRoot10.Author = list76; - index = 6; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference55 = ref span77[num]; + num = 6; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span33 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference55 = ref span33[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj49.Steps = list78; reference55 = obj49; - num++; - ref QuestSequence reference56 = ref span77[num]; + ref QuestSequence reference56 = ref span33[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -193866,40 +160952,33 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) + Span span34 = CollectionsMarshal.AsSpan(list79); + span34[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 622) { Aetheryte = EAetheryteLocation.AzimSteppeDawnThrone }; - index2++; - span79[index2] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622); + span34[1] = new QuestStep(EInteractionType.Interact, 1020687u, new Vector3(102.92212f, 114.904976f, 70.66455f), 622); obj50.Steps = list79; reference56 = obj50; - num++; - ref QuestSequence reference57 = ref span77[num]; + ref QuestSequence reference57 = ref span33[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818212u }; - num2++; - ref QuestStep reference58 = ref span80[num2]; + ref QuestStep reference58 = ref span35[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1023089u, new Vector3(66.178345f, 114.904976f, -8.0720825f), 622); - num4 = 1; - List list81 = new List(num4); - CollectionsMarshal.SetCount(list81, num4); - Span span81 = CollectionsMarshal.AsSpan(list81); - num3 = 0; - span81[num3] = new DialogueChoice + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA410_02509_SYSTEM_000_051") @@ -193908,8 +160987,7 @@ public static class AssemblyQuestLoader reference58 = questStep7; obj51.Steps = list80; reference57 = obj51; - num++; - ref QuestSequence reference59 = ref span77[num]; + ref QuestSequence reference59 = ref span33[3]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -193917,19 +160995,16 @@ public static class AssemblyQuestLoader num2 = 10; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) + Span span36 = CollectionsMarshal.AsSpan(list82); + span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) { DisableNavmesh = true }; - index2++; - span82[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) + span36[1] = new QuestStep(EInteractionType.Dive, null, new Vector3(65.04901f, 1.9869974f, 23.111439f), 622) { DelaySecondsAtStart = 2f }; - index2++; - ref QuestStep reference60 = ref span82[index2]; + ref QuestStep reference60 = ref span36[2]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 2008252u, new Vector3(61.020752f, -72.09894f, 11.123779f), 622) { DisableNavmesh = true @@ -193937,189 +161012,130 @@ public static class AssemblyQuestLoader num3 = 6; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - 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); + 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); obj53.CompletionQuestVariablesFlags = list83; reference60 = obj53; - index2++; - ref QuestStep reference61 = ref span82[index2]; + ref QuestStep reference61 = ref span36[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2008250u, new Vector3(109.54443f, -51.285645f, -40.878906f), 622); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list84; reference61 = questStep8; - index2++; - ref QuestStep reference62 = ref span82[index2]; + ref QuestStep reference62 = ref span36[4]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list85; reference62 = questStep9; - index2++; - ref QuestStep reference63 = ref span82[index2]; + ref QuestStep reference63 = ref span36[5]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2008253u, new Vector3(166.55212f, -62.912964f, 27.481445f), 622); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list86; reference63 = questStep10; - index2++; - ref QuestStep reference64 = ref span82[index2]; + ref QuestStep reference64 = ref span36[6]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list87; reference64 = questStep11; - index2++; - ref QuestStep reference65 = ref span82[index2]; + ref QuestStep reference65 = ref span36[7]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2008256u, new Vector3(-126.26843f, -54.64258f, 93.43091f), 622); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list88; reference65 = questStep12; - index2++; - ref QuestStep reference66 = ref span82[index2]; + ref QuestStep reference66 = ref span36[8]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list89; reference66 = questStep13; - index2++; - ref QuestStep reference67 = ref span82[index2]; + ref QuestStep reference67 = ref span36[9]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2008254u, new Vector3(-78.202515f, -60.105347f, 6.5460815f), 622); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list90; reference67 = questStep14; obj52.Steps = list82; reference59 = obj52; - num++; - ref QuestSequence reference68 = ref span77[num]; + ref QuestSequence reference68 = ref span33[4]; QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj54.Steps = list91; reference68 = obj54; - num++; - ref QuestSequence reference69 = ref span77[num]; + ref QuestSequence reference69 = ref span33[5]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -194127,9 +161143,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj55.Steps = list92; reference69 = obj55; questRoot10.QuestSequence = list77; @@ -194139,26 +161153,21 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list93)[0] = "JerryWester"; questRoot11.Author = list93; - index = 6; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference70 = ref span94[num]; + num = 6; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span45 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference70 = ref span45[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -194172,8 +161181,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list95; reference70 = obj56; - num++; - ref QuestSequence reference71 = ref span94[num]; + ref QuestSequence reference71 = ref span45[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -194181,109 +161189,77 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); obj57.Steps = list96; reference71 = obj57; - num++; - ref QuestSequence reference72 = ref span94[num]; + ref QuestSequence reference72 = ref span45[2]; QuestSequence obj58 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num2 = 0; - ref QuestStep reference73 = ref span97[num2]; + num2 = 4; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span46 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference73 = ref span46[0]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list98; reference73 = questStep15; - num2++; - ref QuestStep reference74 = ref span97[num2]; + ref QuestStep reference74 = ref span46[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021602u, new Vector3(-8.1026f, 114.90496f, 133.1654f), 622); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list99; reference74 = questStep16; - num2++; - ref QuestStep reference75 = ref span97[num2]; + ref QuestStep reference75 = ref span46[2]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list100; reference75 = questStep17; - num2++; - ref QuestStep reference76 = ref span97[num2]; + ref QuestStep reference76 = ref span46[3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1021600u, new Vector3(-44.327515f, 121f, 36.697876f), 622); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list101; reference76 = questStep18; obj58.Steps = list97; reference72 = obj58; - num++; - ref QuestSequence reference77 = ref span94[num]; + ref QuestSequence reference77 = ref span45[3]; QuestSequence obj59 = new QuestSequence { Sequence = 3 @@ -194291,33 +161267,27 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.269917f, 114.904976f, 30.628508f), 622) + Span span51 = CollectionsMarshal.AsSpan(list102); + span51[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.269917f, 114.904976f, 30.628508f), 622) { DisableNavmesh = true, Mount = true }; - index2++; - span102[index2] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); + span51[1] = new QuestStep(EInteractionType.Interact, 1019426u, new Vector3(-31.47937f, 114.90497f, -37.857666f), 622); obj59.Steps = list102; reference77 = obj59; - num++; - ref QuestSequence reference78 = ref span94[num]; + ref QuestSequence reference78 = ref span45[4]; QuestSequence obj60 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj60.Steps = list103; reference78 = obj60; - num++; - ref QuestSequence reference79 = ref span94[num]; + ref QuestSequence reference79 = ref span45[5]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -194325,9 +161295,7 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622); obj61.Steps = list104; reference79 = obj61; questRoot11.QuestSequence = list94; @@ -194337,26 +161305,21 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list105)[0] = "JerryWester"; questRoot12.Author = list105; - index = 5; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference80 = ref span106[num]; + num = 5; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span52 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference80 = ref span52[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -194369,8 +161332,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list107; reference80 = obj62; - num++; - ref QuestSequence reference81 = ref span106[num]; + ref QuestSequence reference81 = ref span52[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -194378,28 +161340,23 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1021605u, new Vector3(63.70642f, 114.90497f, 72.55664f), 622); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1021605u, new Vector3(63.70642f, 114.90497f, 72.55664f), 622); obj63.Steps = list108; reference81 = obj63; - num++; - ref QuestSequence reference82 = ref span106[num]; + ref QuestSequence reference82 = ref span52[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - 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) + 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) { PickUpQuestId = new QuestId(2782) }; - num2++; - span109[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-136.6883f, 15.660965f, 579.51746f), 622) + span53[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-136.6883f, 15.660965f, 579.51746f), 622) { StopDistance = 0.25f, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -194407,8 +161364,7 @@ public static class AssemblyQuestLoader }; obj64.Steps = list109; reference82 = obj64; - num++; - ref QuestSequence reference83 = ref span106[num]; + ref QuestSequence reference83 = ref span52[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -194416,9 +161372,8 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - ref QuestStep reference84 = ref span110[index2]; + Span span54 = CollectionsMarshal.AsSpan(list110); + ref QuestStep reference84 = ref span54[0]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -194426,44 +161381,32 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num4 = 0; - span111[num4] = 7563u; + CollectionsMarshal.AsSpan(list111)[0] = 7563u; obj66.KillEnemyDataIds = list111; - 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; + 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; obj66.CompletionQuestVariablesFlags = list112; reference84 = obj66; - index2++; - span110[index2] = new QuestStep(EInteractionType.Interact, 1021608u, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622); + span54[1] = new QuestStep(EInteractionType.Interact, 1021608u, new Vector3(-291.58472f, 10.658516f, 602.01416f), 622); obj65.Steps = list110; reference83 = obj65; - num++; - ref QuestSequence reference85 = ref span106[num]; + ref QuestSequence reference85 = ref span52[4]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -194476,16 +161419,13 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; questRoot13.Author = list114; - index = 5; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference86 = ref span115[num]; + num = 5; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span56 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference86 = ref span56[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 @@ -194493,30 +161433,24 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021625u, new Vector3(-290.33344f, 10.389871f, 598.9928f), 622) { StopDistance = 7f }; obj68.Steps = list116; reference86 = obj68; - num++; - ref QuestSequence reference87 = ref span115[num]; + ref QuestSequence reference87 = ref span56[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj69.Steps = list117; reference87 = obj69; - num++; - ref QuestSequence reference88 = ref span115[num]; + ref QuestSequence reference88 = ref span56[2]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -194524,88 +161458,63 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1021613u, new Vector3(-450.6142f, 3.3978803f, 540.7339f), 622); + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1021613u, new Vector3(-450.6142f, 3.3978803f, 540.7339f), 622); obj70.Steps = list118; reference88 = obj70; - num++; - ref QuestSequence reference89 = ref span115[num]; + ref QuestSequence reference89 = ref span56[3]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list119 = new List(index2); - CollectionsMarshal.SetCount(list119, index2); - Span span119 = CollectionsMarshal.AsSpan(list119); - num2 = 0; - ref QuestStep reference90 = ref span119[num2]; + num2 = 3; + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + Span span57 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference90 = ref span57[0]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list120; reference90 = questStep19; - num2++; - ref QuestStep reference91 = ref span119[num2]; + ref QuestStep reference91 = ref span57[1]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019322u, new Vector3(-411.64264f, 2.2485201f, 617.1815f), 622); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list121; reference91 = questStep20; - num2++; - ref QuestStep reference92 = ref span119[num2]; + ref QuestStep reference92 = ref span57[2]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list122; reference92 = questStep21; obj71.Steps = list119; reference89 = obj71; - num++; - ref QuestSequence reference93 = ref span115[num]; + ref QuestSequence reference93 = ref span56[4]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -194613,9 +161522,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021615u, new Vector3(-399.0387f, 2.257562f, 599.26746f), 622); obj72.Steps = list123; reference93 = obj72; questRoot13.QuestSequence = list115; @@ -194625,30 +161532,24 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list124)[0] = "JerryWester"; questRoot14.Author = list124; - index = 4; - List list125 = new List(index); - CollectionsMarshal.SetCount(list125, index); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference94 = ref span125[num]; + num = 4; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + Span span61 = CollectionsMarshal.AsSpan(list125); + ref QuestSequence reference94 = ref span61[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj73.Steps = list126; reference94 = obj73; - num++; - ref QuestSequence reference95 = ref span125[num]; + ref QuestSequence reference95 = ref span61[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -194656,46 +161557,38 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622) + Span span62 = CollectionsMarshal.AsSpan(list127); + span62[0] = new QuestStep(EInteractionType.AcceptQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622) { PickUpQuestId = new QuestId(2791) }; - index2++; - span127[index2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622); + span62[1] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622); obj74.Steps = list127; reference95 = obj74; - num++; - ref QuestSequence reference96 = ref span125[num]; + ref QuestSequence reference96 = ref span61[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list128 = new List(index2); - CollectionsMarshal.SetCount(list128, index2); - Span span128 = CollectionsMarshal.AsSpan(list128); - num2 = 0; - ref QuestStep reference97 = ref span128[num2]; + num2 = 2; + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span63 = CollectionsMarshal.AsSpan(list128); + ref QuestStep reference97 = ref span63[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list129 = new List(num4); - CollectionsMarshal.SetCount(list129, num4); - Span span129 = CollectionsMarshal.AsSpan(list129); - num3 = 0; - span129[num3] = 7529u; + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + CollectionsMarshal.AsSpan(list129)[0] = 7529u; obj76.KillEnemyDataIds = list129; reference97 = obj76; - num2++; - span128[num2] = new QuestStep(EInteractionType.Interact, 2008484u, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622); + span63[1] = new QuestStep(EInteractionType.Interact, 2008484u, new Vector3(-704.3717f, 6.362976f, 615.0759f), 622); obj75.Steps = list128; reference96 = obj75; - num++; - ref QuestSequence reference98 = ref span125[num]; + ref QuestSequence reference98 = ref span61[3]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -194703,9 +161596,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021628u, new Vector3(-705.50085f, 6.554513f, 613.1837f), 622); obj77.Steps = list130; reference98 = obj77; questRoot14.QuestSequence = list125; @@ -194715,30 +161606,24 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; questRoot15.Author = list131; - index = 4; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference99 = ref span132[num]; + num = 4; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span64 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference99 = ref span64[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj78.Steps = list133; reference99 = obj78; - num++; - ref QuestSequence reference100 = ref span132[num]; + ref QuestSequence reference100 = ref span64[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -194746,35 +161631,29 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008022u, new Vector3(-693.8301f, 7.263198f, 658.8989f), 622) + Span span65 = CollectionsMarshal.AsSpan(list134); + span65[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2008022u, new Vector3(-693.8301f, 7.263198f, 658.8989f), 622) { AetherCurrentId = 2818215u }; - index2++; - span134[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + span65[1] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj79.Steps = list134; reference100 = obj79; - num++; - ref QuestSequence reference101 = ref span132[num]; + ref QuestSequence reference101 = ref span64[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj80.Steps = list135; reference101 = obj80; - num++; - ref QuestSequence reference102 = ref span132[num]; + ref QuestSequence reference102 = ref span64[3]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -194782,16 +161661,13 @@ public static class AssemblyQuestLoader num2 = 3; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) + Span span66 = CollectionsMarshal.AsSpan(list136); + span66[0] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) { TargetTerritoryId = (ushort)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); + 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); obj81.Steps = list136; reference102 = obj81; questRoot15.QuestSequence = list132; @@ -194801,30 +161677,24 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list137)[0] = "JerryWester"; questRoot16.Author = list137; - index = 6; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference103 = ref span138[num]; + num = 6; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span67 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference103 = ref span67[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj82.Steps = list139; reference103 = obj82; - num++; - ref QuestSequence reference104 = ref span138[num]; + ref QuestSequence reference104 = ref span67[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -194832,9 +161702,8 @@ public static class AssemblyQuestLoader num2 = 4; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - ref QuestStep reference105 = ref span140[index2]; + Span span68 = CollectionsMarshal.AsSpan(list140); + ref QuestStep reference105 = ref span68[0]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 1019386u, new Vector3(501.21313f, 40.836082f, -505.9129f), 622) { StopDistance = 7f @@ -194842,47 +161711,32 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - 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); + 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); obj84.CompletionQuestVariablesFlags = list141; reference105 = obj84; - index2++; - ref QuestStep reference106 = ref span140[index2]; + ref QuestStep reference106 = ref span68[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1019388u, new Vector3(508.04907f, 40.4257f, -482.7802f), 622); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list142; num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span143 = CollectionsMarshal.AsSpan(list143); - num4 = 0; - span143[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA416_02515_Q1_000_102"), @@ -194890,32 +161744,23 @@ public static class AssemblyQuestLoader }; questStep22.DialogueChoices = list143; reference106 = questStep22; - index2++; - ref QuestStep reference107 = ref span140[index2]; + ref QuestStep reference107 = ref span68[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list144; num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span145 = CollectionsMarshal.AsSpan(list145); - num4 = 0; - span145[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA416_02515_Q1_100_070"), @@ -194923,45 +161768,34 @@ public static class AssemblyQuestLoader }; questStep23.DialogueChoices = list145; reference107 = questStep23; - index2++; - ref QuestStep reference108 = ref span140[index2]; + ref QuestStep reference108 = ref span68[3]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1019396u, new Vector3(542.1378f, 40.425697f, -500.54172f), 622); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list146; reference108 = questStep24; obj83.Steps = list140; reference104 = obj83; - num++; - ref QuestSequence reference109 = ref span138[num]; + ref QuestSequence reference109 = ref span67[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj85.Steps = list147; reference109 = obj85; - num++; - ref QuestSequence reference110 = ref span138[num]; + ref QuestSequence reference110 = ref span67[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 @@ -194969,9 +161803,7 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -194980,23 +161812,19 @@ public static class AssemblyQuestLoader }; obj86.Steps = list148; reference110 = obj86; - num++; - span138[num] = new QuestSequence + span67[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference111 = ref span138[num]; + ref QuestSequence reference111 = ref span67[5]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj87.Steps = list149; reference111 = obj87; questRoot16.QuestSequence = list138; @@ -195006,16 +161834,13 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list150)[0] = "JerryWester"; questRoot17.Author = list150; - index = 5; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference112 = ref span151[num]; + num = 5; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span73 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference112 = ref span73[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -195023,27 +161848,21 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020540u, new Vector3(486.6864f, 40.08099f, -465.72064f), 622); obj88.Steps = list152; reference112 = obj88; - num++; - ref QuestSequence reference113 = ref span151[num]; + ref QuestSequence reference113 = ref span73[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj89.Steps = list153; reference113 = obj89; - num++; - ref QuestSequence reference114 = ref span151[num]; + ref QuestSequence reference114 = ref span73[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -195051,31 +161870,25 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1021634u, new Vector3(547.0206f, 38.87306f, -484.2146f), 622); obj90.Steps = list154; reference114 = obj90; - num++; - ref QuestSequence reference115 = ref span151[num]; + ref QuestSequence reference115 = ref span73[3]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f, Emote = EEmote.VictoryPose }; obj91.Steps = list155; reference115 = obj91; - num++; - ref QuestSequence reference116 = ref span151[num]; + ref QuestSequence reference116 = ref span73[4]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -195083,9 +161896,7 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj92.Steps = list156; reference116 = obj92; questRoot17.QuestSequence = list151; @@ -195095,33 +161906,27 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list157)[0] = "JerryWester"; questRoot18.Author = list157; - index = 4; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference117 = ref span158[num]; + num = 4; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span74 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference117 = ref span74[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj93.Steps = list159; reference117 = obj93; - num++; - ref QuestSequence reference118 = ref span158[num]; + ref QuestSequence reference118 = ref span74[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -195129,33 +161934,28 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj94.Steps = list160; reference118 = obj94; - num++; - ref QuestSequence reference119 = ref span158[num]; + ref QuestSequence reference119 = ref span74[2]; QuestSequence obj95 = new QuestSequence { Sequence = 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(12.142036f, 121f, 63.4195f), 622) + 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) { Mount = true, Fly = true }; - num2++; - span161[num2] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) + span75[1] = new QuestStep(EInteractionType.Interact, 1019424u, new Vector3(66.056274f, 114.904976f, -8.377258f), 622) { TargetTerritoryId = (ushort)622, SkipConditions = new SkipConditions @@ -195166,15 +161966,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span161[num2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + span75[2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj95.Steps = list161; reference119 = obj95; - num++; - ref QuestSequence reference120 = ref span158[num]; + ref QuestSequence reference120 = ref span74[3]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -195182,9 +161980,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021646u, new Vector3(-167.89502f, 0.88495153f, 816.8002f), 622) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021646u, new Vector3(-167.89502f, 0.88495153f, 816.8002f), 622) { Fly = true }; @@ -195197,30 +161993,24 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list163)[0] = "JerryWester"; questRoot19.Author = list163; - index = 4; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference121 = ref span164[num]; + num = 4; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span76 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference121 = ref span76[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj97.Steps = list165; reference121 = obj97; - num++; - ref QuestSequence reference122 = ref span164[num]; + ref QuestSequence reference122 = ref span76[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -195228,36 +162018,30 @@ public static class AssemblyQuestLoader num2 = 2; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-161.8687f, 0.59802794f, 855.427f), 622) + Span span77 = CollectionsMarshal.AsSpan(list166); + span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-161.8687f, 0.59802794f, 855.427f), 622) { TargetTerritoryId = (ushort)614, Mount = true }; - index2++; - span166[index2] = new QuestStep(EInteractionType.Interact, 1021652u, new Vector3(508.32373f, 14.072665f, -856.199f), 614); + span77[1] = new QuestStep(EInteractionType.Interact, 1021652u, new Vector3(508.32373f, 14.072665f, -856.199f), 614); obj98.Steps = list166; reference122 = obj98; - num++; - ref QuestSequence reference123 = ref span164[num]; + ref QuestSequence reference123 = ref span76[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj99.Steps = list167; reference123 = obj99; - num++; - ref QuestSequence reference124 = ref span164[num]; + ref QuestSequence reference124 = ref span76[3]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -195265,9 +162049,7 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614); obj100.Steps = list168; reference124 = obj100; questRoot19.QuestSequence = list164; @@ -195277,30 +162059,24 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list169)[0] = "JerryWester"; questRoot20.Author = list169; - index = 4; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference125 = ref span170[num]; + num = 4; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span78 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference125 = ref span78[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj101.Steps = list171; reference125 = obj101; - num++; - ref QuestSequence reference126 = ref span170[num]; + ref QuestSequence reference126 = ref span78[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -195308,27 +162084,21 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614); + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614); obj102.Steps = list172; reference126 = obj102; - num++; - ref QuestSequence reference127 = ref span170[num]; + ref QuestSequence reference127 = ref span78[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj103.Steps = list173; reference127 = obj103; - num++; - ref QuestSequence reference128 = ref span170[num]; + ref QuestSequence reference128 = ref span78[3]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -195336,14 +162106,12 @@ public static class AssemblyQuestLoader num2 = 3; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) + Span span79 = CollectionsMarshal.AsSpan(list174); + span79[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 614) { Aetheryte = EAetheryteLocation.YanxiaHouseOfTheFierce }; - index2++; - span174[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + span79[1] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -195353,8 +162121,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - index2++; - span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + span79[2] = new QuestStep(EInteractionType.CompleteQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj104.Steps = list174; reference128 = obj104; questRoot20.QuestSequence = list170; @@ -195364,26 +162131,21 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; questRoot21.Author = list175; - index = 9; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference129 = ref span176[num]; + num = 9; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span80 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference129 = ref span80[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -195396,8 +162158,7 @@ public static class AssemblyQuestLoader }; obj105.Steps = list177; reference129 = obj105; - num++; - ref QuestSequence reference130 = ref span176[num]; + ref QuestSequence reference130 = ref span80[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -195405,26 +162166,22 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Interact, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { Fly = true }; obj106.Steps = list178; reference130 = obj106; - num++; - ref QuestSequence reference131 = ref span176[num]; + ref QuestSequence reference131 = ref span80[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -195434,15 +162191,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span179[num2] = new QuestStep(EInteractionType.Interact, 2007923u, new Vector3(280.96436f, 16.006714f, -641.413f), 614) + span81[1] = new QuestStep(EInteractionType.Interact, 2007923u, new Vector3(280.96436f, 16.006714f, -641.413f), 614) { Fly = true }; obj107.Steps = list179; reference131 = obj107; - num++; - ref QuestSequence reference132 = ref span176[num]; + ref QuestSequence reference132 = ref span80[3]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -195450,26 +162205,21 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.Interact, 2007924u, new Vector3(284.13818f, 6.729187f, -792.6604f), 614) + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2007924u, new Vector3(284.13818f, 6.729187f, -792.6604f), 614) { Fly = true }; obj108.Steps = list180; reference132 = obj108; - num++; - ref QuestSequence reference133 = ref span176[num]; + ref QuestSequence reference133 = ref span80[4]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list181 = new List(index2); - CollectionsMarshal.SetCount(list181, index2); - Span span181 = CollectionsMarshal.AsSpan(list181); - num2 = 0; - ref QuestStep reference134 = ref span181[num2]; + num2 = 1; + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list181)[0]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1020228u, new Vector3(462.6687f, -3.4607835f, -799.31335f), 614) { Fly = true @@ -195477,9 +162227,7 @@ public static class AssemblyQuestLoader num3 = 1; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - Span span182 = CollectionsMarshal.AsSpan(list182); - num4 = 0; - span182[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list182)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA502_02520_Q1_000_081"), @@ -195489,8 +162237,7 @@ public static class AssemblyQuestLoader reference134 = obj110; obj109.Steps = list181; reference133 = obj109; - num++; - ref QuestSequence reference135 = ref span176[num]; + ref QuestSequence reference135 = ref span80[5]; QuestSequence obj111 = new QuestSequence { Sequence = 5 @@ -195498,9 +162245,8 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.4046f, 22.617083f, -726.5077f), 614) + Span span82 = CollectionsMarshal.AsSpan(list183); + span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.4046f, 22.617083f, -726.5077f), 614) { SkipConditions = new SkipConditions { @@ -195510,41 +162256,34 @@ public static class AssemblyQuestLoader } } }; - index2++; - span183[index2] = new QuestStep(EInteractionType.Interact, 1020230u, new Vector3(552.1476f, 23.140884f, -690.486f), 614) + span82[1] = new QuestStep(EInteractionType.Interact, 1020230u, new Vector3(552.1476f, 23.140884f, -690.486f), 614) { Fly = true }; obj111.Steps = list183; reference135 = obj111; - num++; - ref QuestSequence reference136 = ref span176[num]; + ref QuestSequence reference136 = ref span80[6]; QuestSequence obj112 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list184 = new List(index2); - CollectionsMarshal.SetCount(list184, index2); - Span span184 = CollectionsMarshal.AsSpan(list184); - num2 = 0; - ref QuestStep reference137 = ref span184[num2]; + num2 = 1; + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + ref QuestStep reference137 = ref CollectionsMarshal.AsSpan(list184)[0]; QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(551.98566f, 23.177525f, -691.4329f), 614) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = 7561u; + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = 7561u; obj113.KillEnemyDataIds = list185; reference137 = obj113; obj112.Steps = list184; reference136 = obj112; - num++; - ref QuestSequence reference138 = ref span176[num]; + ref QuestSequence reference138 = ref span80[7]; QuestSequence obj114 = new QuestSequence { Sequence = 7 @@ -195552,26 +162291,21 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1020273u, new Vector3(498.83264f, 11.856819f, -838.34595f), 614) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1020273u, new Vector3(498.83264f, 11.856819f, -838.34595f), 614) { Fly = true }; obj114.Steps = list186; reference138 = obj114; - num++; - ref QuestSequence reference139 = ref span176[num]; + ref QuestSequence reference139 = ref span80[8]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; @@ -195584,16 +162318,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list188)[0] = "JerryWester"; questRoot22.Author = list188; - index = 4; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference140 = ref span189[num]; + num = 4; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span83 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference140 = ref span83[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -195601,9 +162332,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020520u, new Vector3(235.85864f, 4.456162f, -382.8031f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -195616,25 +162345,21 @@ public static class AssemblyQuestLoader }; obj116.Steps = list190; reference140 = obj116; - num++; - ref QuestSequence reference141 = ref span189[num]; + ref QuestSequence reference141 = ref span83[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj117.Steps = list191; reference141 = obj117; - num++; - ref QuestSequence reference142 = ref span189[num]; + ref QuestSequence reference142 = ref span83[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -195642,27 +162367,22 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1023092u, new Vector3(442.64893f, 58.867764f, -171.31305f), 614) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1023092u, new Vector3(442.64893f, 58.867764f, -171.31305f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj118.Steps = list192; reference142 = obj118; - num++; - ref QuestSequence reference143 = ref span189[num]; + ref QuestSequence reference143 = ref span83[3]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -195675,16 +162395,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list194)[0] = "JerryWester"; questRoot23.Author = list194; - index = 7; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference144 = ref span195[num]; + num = 7; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span84 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference144 = ref span84[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -195692,23 +162409,19 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020234u, new Vector3(336.93433f, 31.12357f, 203.479f), 614); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020234u, new Vector3(336.93433f, 31.12357f, 203.479f), 614); obj120.Steps = list196; reference144 = obj120; - num++; - ref QuestSequence reference145 = ref span195[num]; + ref QuestSequence reference145 = ref span84[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list197 = new List(index2); - CollectionsMarshal.SetCount(list197, index2); - Span span197 = CollectionsMarshal.AsSpan(list197); - num2 = 0; - ref QuestStep reference146 = ref span197[num2]; + num2 = 3; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + Span span85 = CollectionsMarshal.AsSpan(list197); + ref QuestStep reference146 = ref span85[0]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -195716,67 +162429,46 @@ public static class AssemblyQuestLoader num3 = 6; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - 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); + 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); obj122.CompletionQuestVariablesFlags = list198; reference146 = obj122; - num2++; - ref QuestStep reference147 = ref span197[num2]; + ref QuestStep reference147 = ref span85[1]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1019287u, new Vector3(196.55139f, 5.1694055f, -410.66608f), 614); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list199; reference147 = questStep25; - num2++; - ref QuestStep reference148 = ref span197[num2]; + ref QuestStep reference148 = ref span85[2]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list200; reference148 = questStep26; obj121.Steps = list197; reference145 = obj121; - num++; - ref QuestSequence reference149 = ref span195[num]; + ref QuestSequence reference149 = ref span84[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -195784,23 +162476,19 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1023083u, new Vector3(174.73096f, 5.196835f, -432.578f), 614); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1023083u, new Vector3(174.73096f, 5.196835f, -432.578f), 614); obj123.Steps = list201; reference149 = obj123; - num++; - ref QuestSequence reference150 = ref span195[num]; + ref QuestSequence reference150 = ref span84[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -195810,15 +162498,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span202[num2] = new QuestStep(EInteractionType.Interact, 1020237u, new Vector3(-74.784485f, 53.217514f, -522.301f), 614) + span89[1] = new QuestStep(EInteractionType.Interact, 1020237u, new Vector3(-74.784485f, 53.217514f, -522.301f), 614) { Fly = true }; obj124.Steps = list202; reference150 = obj124; - num++; - ref QuestSequence reference151 = ref span195[num]; + ref QuestSequence reference151 = ref span84[4]; QuestSequence obj125 = new QuestSequence { Sequence = 4 @@ -195826,33 +162512,27 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1020238u, new Vector3(-156.23712f, 53.217514f, -621.912f), 614) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1020238u, new Vector3(-156.23712f, 53.217514f, -621.912f), 614) { Fly = true }; obj125.Steps = list203; reference151 = obj125; - num++; - ref QuestSequence reference152 = ref span195[num]; + ref QuestSequence reference152 = ref span84[5]; QuestSequence obj126 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj126.Steps = list204; reference152 = obj126; - num++; - ref QuestSequence reference153 = ref span195[num]; + ref QuestSequence reference153 = ref span84[6]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -195860,9 +162540,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020239u, new Vector3(-291.43213f, 53.21751f, -614.313f), 614) { Fly = true }; @@ -195875,30 +162553,24 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list206)[0] = "JerryWester"; questRoot24.Author = list206; - index = 4; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference154 = ref span207[num]; + num = 4; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span90 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference154 = ref span90[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj128.Steps = list208; reference154 = obj128; - num++; - ref QuestSequence reference155 = ref span207[num]; + ref QuestSequence reference155 = ref span90[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -195906,91 +162578,66 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1020519u, new Vector3(173.78503f, 5.16971f, -417.41058f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj129.Steps = list209; reference155 = obj129; - num++; - ref QuestSequence reference156 = ref span207[num]; + ref QuestSequence reference156 = ref span90[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference157 = ref span210[num2]; + num2 = 3; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span91 = CollectionsMarshal.AsSpan(list210); + ref QuestStep reference157 = ref span91[0]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1020523u, new Vector3(177.203f, 5.169708f, -416.15936f), 614); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list211; reference157 = questStep27; - num2++; - ref QuestStep reference158 = ref span210[num2]; + ref QuestStep reference158 = ref span91[1]; 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 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); + 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); questStep28.CompletionQuestVariablesFlags = list212; reference158 = questStep28; - num2++; - ref QuestStep reference159 = ref span210[num2]; + ref QuestStep reference159 = ref span91[2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1020240u, new Vector3(234.11914f, 5.6966333f, -427.1153f), 614); - 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); + 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); questStep29.CompletionQuestVariablesFlags = list213; reference159 = questStep29; obj130.Steps = list210; reference156 = obj130; - num++; - ref QuestSequence reference160 = ref span207[num]; + ref QuestSequence reference160 = ref span90[3]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -195998,21 +162645,17 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.34885f, 5.16971f, -419.04416f), 614) + Span span95 = CollectionsMarshal.AsSpan(list214); + span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(175.34885f, 5.16971f, -419.04416f), 614) { Fly = true }; - index2++; - ref QuestStep reference161 = ref span214[index2]; + ref QuestStep reference161 = ref span95[1]; 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); - Span span215 = CollectionsMarshal.AsSpan(list215); - num4 = 0; - span215[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA505_02523_Q1_000_122"), @@ -196029,26 +162672,21 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - Span span216 = CollectionsMarshal.AsSpan(list216); - index = 0; - span216[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list216)[0] = "JerryWester"; questRoot25.Author = list216; - index = 7; - List list217 = new List(index); - CollectionsMarshal.SetCount(list217, index); - Span span217 = CollectionsMarshal.AsSpan(list217); - num = 0; - ref QuestSequence reference162 = ref span217[num]; + num = 7; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + Span span96 = CollectionsMarshal.AsSpan(list217); + ref QuestSequence reference162 = ref span96[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -196061,8 +162699,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list218; reference162 = obj132; - num++; - ref QuestSequence reference163 = ref span217[num]; + ref QuestSequence reference163 = ref span96[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -196070,9 +162707,8 @@ public static class AssemblyQuestLoader num2 = 3; 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(318.10266f, 24.931192f, -494.28577f), 614) + Span span97 = CollectionsMarshal.AsSpan(list219); + span97[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.10266f, 24.931192f, -494.28577f), 614) { SkipConditions = new SkipConditions { @@ -196082,8 +162718,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span219[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(77.23522f, 32.751614f, -517.566f), 614) + span97[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(77.23522f, 32.751614f, -517.566f), 614) { SkipConditions = new SkipConditions { @@ -196093,32 +162728,27 @@ public static class AssemblyQuestLoader } } }; - index2++; - span219[index2] = new QuestStep(EInteractionType.Interact, 2007932u, new Vector3(-162.70697f, 53.20813f, -558.80066f), 614) + span97[2] = new QuestStep(EInteractionType.Interact, 2007932u, new Vector3(-162.70697f, 53.20813f, -558.80066f), 614) { Fly = true }; obj133.Steps = list219; reference163 = obj133; - num++; - ref QuestSequence reference164 = ref span217[num]; + ref QuestSequence reference164 = ref span96[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj134.Steps = list220; reference164 = obj134; - num++; - ref QuestSequence reference165 = ref span217[num]; + ref QuestSequence reference165 = ref span96[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -196126,28 +162756,23 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.42896f, 1.2300289f, -363.52563f), 614) + Span span98 = CollectionsMarshal.AsSpan(list221); + span98[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-364.42896f, 1.2300289f, -363.52563f), 614) { Fly = true }; - index2++; - span221[index2] = new QuestStep(EInteractionType.Interact, 1020247u, new Vector3(-366.3844f, 1.2300524f, -362.5086f), 614); + span98[1] = new QuestStep(EInteractionType.Interact, 1020247u, new Vector3(-366.3844f, 1.2300524f, -362.5086f), 614); obj135.Steps = list221; reference165 = obj135; - num++; - ref QuestSequence reference166 = ref span217[num]; + ref QuestSequence reference166 = ref span96[4]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -196157,13 +162782,11 @@ public static class AssemblyQuestLoader }; obj136.Steps = list222; reference166 = obj136; - num++; - span217[num] = new QuestSequence + span96[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference167 = ref span217[num]; + ref QuestSequence reference167 = ref span96[6]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -196171,9 +162794,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020248u, new Vector3(-390.28003f, 30.646172f, -455.86328f), 614) { StopDistance = 7f }; @@ -196186,33 +162807,27 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - Span span224 = CollectionsMarshal.AsSpan(list224); - index = 0; - span224[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list224)[0] = "JerryWester"; questRoot26.Author = list224; - index = 6; - List list225 = new List(index); - CollectionsMarshal.SetCount(list225, index); - Span span225 = CollectionsMarshal.AsSpan(list225); - num = 0; - ref QuestSequence reference168 = ref span225[num]; + num = 6; + List list225 = new List(num); + CollectionsMarshal.SetCount(list225, num); + Span span99 = CollectionsMarshal.AsSpan(list225); + ref QuestSequence reference168 = ref span99[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj138.Steps = list226; reference168 = obj138; - num++; - ref QuestSequence reference169 = ref span225[num]; + ref QuestSequence reference169 = ref span99[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -196220,19 +162835,15 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - ref QuestStep reference170 = ref span227[index2]; + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list227)[0]; QuestStep obj140 = new QuestStep(EInteractionType.Interact, 1020255u, new Vector3(-349.05017f, 1.2300365f, -343.86212f), 614) { Fly = true }; - num4 = 1; - List list228 = new List(num4); - CollectionsMarshal.SetCount(list228, num4); - Span span228 = CollectionsMarshal.AsSpan(list228); - num3 = 0; - span228[num3] = new DialogueChoice + num3 = 1; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA507_02525_Q1_000_092"), @@ -196242,32 +162853,27 @@ public static class AssemblyQuestLoader reference170 = obj140; obj139.Steps = list227; reference169 = obj139; - num++; - span225[num] = new QuestSequence + span99[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference171 = ref span225[num]; + ref QuestSequence reference171 = ref span99[3]; QuestSequence obj141 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)614 }; - num2++; - span229[num2] = new QuestStep(EInteractionType.Interact, 1020258u, new Vector3(-462.39417f, 1.2300053f, 546.1356f), 614); + span100[1] = new QuestStep(EInteractionType.Interact, 1020258u, new Vector3(-462.39417f, 1.2300053f, 546.1356f), 614); obj141.Steps = list229; reference171 = obj141; - num++; - ref QuestSequence reference172 = ref span225[num]; + ref QuestSequence reference172 = ref span99[4]; QuestSequence obj142 = new QuestSequence { Sequence = 4 @@ -196275,9 +162881,7 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - ref QuestStep reference173 = ref span230[index2]; + ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list230)[0]; QuestStep obj143 = new QuestStep(EInteractionType.Interact, 1020263u, new Vector3(-472.12946f, 1.2306242f, 557.09155f), 614) { TargetTerritoryId = (ushort)628 @@ -196285,9 +162889,7 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span231 = CollectionsMarshal.AsSpan(list231); - num4 = 0; - span231[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA507_02525_Q2_000_191"), @@ -196297,18 +162899,15 @@ public static class AssemblyQuestLoader reference173 = obj143; obj142.Steps = list230; reference172 = obj142; - num++; - ref QuestSequence reference174 = ref span225[num]; + ref QuestSequence reference174 = ref span99[5]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 4f }; @@ -196321,16 +162920,13 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list233)[0] = "JerryWester"; questRoot27.Author = list233; - index = 4; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference175 = ref span234[num]; + num = 4; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span101 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference175 = ref span101[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -196338,26 +162934,21 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020267u, new Vector3(-171.55719f, -7.000024f, 55.527588f), 628) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020267u, new Vector3(-171.55719f, -7.000024f, 55.527588f), 628) { StopDistance = 7f }; obj145.Steps = list235; reference175 = obj145; - num++; - ref QuestSequence reference176 = ref span234[num]; + ref QuestSequence reference176 = ref span101[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -196369,8 +162960,7 @@ public static class AssemblyQuestLoader }; obj146.Steps = list236; reference176 = obj146; - num++; - ref QuestSequence reference177 = ref span234[num]; + ref QuestSequence reference177 = ref span101[2]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -196378,14 +162968,12 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) + Span span102 = CollectionsMarshal.AsSpan(list237); + span102[0] = new QuestStep(EInteractionType.Interact, 2008134u, new Vector3(-0.015319824f, 1.1443481f, 13.504211f), 639) { TargetTerritoryId = (ushort)628 }; - index2++; - span237[index2] = new QuestStep(EInteractionType.Interact, 1020270u, new Vector3(-88.91437f, -6.999999f, -56.26001f), 628) + span102[1] = new QuestStep(EInteractionType.Interact, 1020270u, new Vector3(-88.91437f, -6.999999f, -56.26001f), 628) { TargetTerritoryId = (ushort)129, AethernetShortcut = new AethernetShortcut @@ -196396,18 +162984,15 @@ public static class AssemblyQuestLoader }; obj147.Steps = list237; reference177 = obj147; - num++; - ref QuestSequence reference178 = ref span234[num]; + ref QuestSequence reference178 = ref span101[3]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj148.Steps = list238; reference178 = obj148; questRoot27.QuestSequence = list234; @@ -196417,16 +163002,13 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list239)[0] = "JerryWester"; questRoot28.Author = list239; - index = 4; - List list240 = new List(index); - CollectionsMarshal.SetCount(list240, index); - Span span240 = CollectionsMarshal.AsSpan(list240); - num = 0; - ref QuestSequence reference179 = ref span240[num]; + num = 4; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span103 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference179 = ref span103[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -196434,33 +163016,27 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020439u, new Vector3(-355.55048f, 7.9999094f, 38.712036f), 129) { StopDistance = 6f }; obj149.Steps = list241; reference179 = obj149; - num++; - ref QuestSequence reference180 = ref span240[num]; + ref QuestSequence reference180 = ref span103[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj150.Steps = list242; reference180 = obj150; - num++; - ref QuestSequence reference181 = ref span240[num]; + ref QuestSequence reference181 = ref span103[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -196468,23 +163044,18 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.Interact, 1020401u, new Vector3(-473.16705f, 98.582886f, -349.05017f), 612); + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1020401u, new Vector3(-473.16705f, 98.582886f, -349.05017f), 612); obj151.Steps = list243; reference181 = obj151; - num++; - ref QuestSequence reference182 = ref span240[num]; + ref QuestSequence reference182 = ref span103[3]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj152.Steps = list244; reference182 = obj152; questRoot28.QuestSequence = list240; @@ -196494,16 +163065,13 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list245)[0] = "JerryWester"; questRoot29.Author = list245; - index = 6; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference183 = ref span246[num]; + num = 6; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span104 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference183 = ref span104[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -196511,9 +163079,7 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020304u, new Vector3(-606.7445f, 130f, -506.95053f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -196527,18 +163093,15 @@ public static class AssemblyQuestLoader }; obj153.Steps = list247; reference183 = obj153; - num++; - ref QuestSequence reference184 = ref span246[num]; + ref QuestSequence reference184 = ref span104[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -196548,8 +163111,7 @@ public static class AssemblyQuestLoader }; obj154.Steps = list248; reference184 = obj154; - num++; - ref QuestSequence reference185 = ref span246[num]; + ref QuestSequence reference185 = ref span104[2]; QuestSequence obj155 = new QuestSequence { Sequence = 2 @@ -196557,84 +163119,60 @@ public static class AssemblyQuestLoader num2 = 3; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - ref QuestStep reference186 = ref span249[index2]; + Span span105 = CollectionsMarshal.AsSpan(list249); + ref QuestStep reference186 = ref span105[0]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1023762u, new Vector3(133.86731f, 0.65204144f, 8.926453f), 635); - 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); + 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); questStep31.CompletionQuestVariablesFlags = list250; reference186 = questStep31; - index2++; - ref QuestStep reference187 = ref span249[index2]; + ref QuestStep reference187 = ref span105[1]; 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 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); + 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); questStep32.CompletionQuestVariablesFlags = list251; reference187 = questStep32; - index2++; - ref QuestStep reference188 = ref span249[index2]; + ref QuestStep reference188 = ref span105[2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1023763u, new Vector3(13.504211f, -0.45803526f, 121.87378f), 635); - 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); + 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); questStep33.CompletionQuestVariablesFlags = list252; reference188 = questStep33; obj155.Steps = list249; reference185 = obj155; - num++; - ref QuestSequence reference189 = ref span246[num]; + ref QuestSequence reference189 = ref span104[3]; QuestSequence obj156 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -196644,8 +163182,7 @@ public static class AssemblyQuestLoader }; obj156.Steps = list253; reference189 = obj156; - num++; - ref QuestSequence reference190 = ref span246[num]; + ref QuestSequence reference190 = ref span104[4]; QuestSequence obj157 = new QuestSequence { Sequence = 4 @@ -196653,9 +163190,7 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020559u, new Vector3(-188.86096f, 43.219845f, -149.58423f), 612) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020559u, new Vector3(-188.86096f, 43.219845f, -149.58423f), 612) { AethernetShortcut = new AethernetShortcut { @@ -196669,18 +163204,15 @@ public static class AssemblyQuestLoader }; obj157.Steps = list254; reference190 = obj157; - num++; - ref QuestSequence reference191 = ref span246[num]; + ref QuestSequence reference191 = ref span104[5]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj158.Steps = list255; reference191 = obj158; questRoot29.QuestSequence = list246; @@ -196690,16 +163222,13 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - Span span256 = CollectionsMarshal.AsSpan(list256); - index = 0; - span256[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list256)[0] = "JerryWester"; questRoot30.Author = list256; - index = 4; - List list257 = new List(index); - CollectionsMarshal.SetCount(list257, index); - Span span257 = CollectionsMarshal.AsSpan(list257); - num = 0; - ref QuestSequence reference192 = ref span257[num]; + num = 4; + List list257 = new List(num); + CollectionsMarshal.SetCount(list257, num); + Span span109 = CollectionsMarshal.AsSpan(list257); + ref QuestSequence reference192 = ref span109[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -196707,26 +163236,22 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612) { StopDistance = 7f }; obj159.Steps = list258; reference192 = obj159; - num++; - ref QuestSequence reference193 = ref span257[num]; + ref QuestSequence reference193 = ref span109[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list259 = new List(index2); - CollectionsMarshal.SetCount(list259, index2); - Span span259 = CollectionsMarshal.AsSpan(list259); - num2 = 0; - ref QuestStep reference194 = ref span259[num2]; + num2 = 2; + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + Span span110 = CollectionsMarshal.AsSpan(list259); + ref QuestStep reference194 = ref span110[0]; QuestStep obj161 = new QuestStep(EInteractionType.Combat, null, new Vector3(-244.85674f, 52.147297f, 25.87217f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -196734,30 +163259,21 @@ public static class AssemblyQuestLoader num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span260 = CollectionsMarshal.AsSpan(list260); - num4 = 0; - span260[num4] = 8036u; + CollectionsMarshal.AsSpan(list260)[0] = 8036u; obj161.KillEnemyDataIds = list260; - 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); + 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); obj161.CompletionQuestVariablesFlags = list261; reference194 = obj161; - num2++; - ref QuestStep reference195 = ref span259[num2]; + ref QuestStep reference195 = ref span110[1]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, null, new Vector3(-506.97742f, 56.85329f, 174.75038f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -196765,34 +163281,25 @@ public static class AssemblyQuestLoader num3 = 2; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span262 = CollectionsMarshal.AsSpan(list262); - num4 = 0; - span262[num4] = 8044u; - num4++; - span262[num4] = 8050u; + Span span112 = CollectionsMarshal.AsSpan(list262); + span112[0] = 8044u; + span112[1] = 8050u; obj162.KillEnemyDataIds = list262; - 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); + 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); obj162.CompletionQuestVariablesFlags = list263; reference195 = obj162; obj160.Steps = list259; reference193 = obj160; - num++; - ref QuestSequence reference196 = ref span257[num]; + ref QuestSequence reference196 = ref span109[2]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -196800,23 +163307,18 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.Interact, 1020574u, new Vector3(-386.28217f, 54.221977f, -27.17633f), 612); + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1020574u, new Vector3(-386.28217f, 54.221977f, -27.17633f), 612); obj163.Steps = list264; reference196 = obj163; - num++; - ref QuestSequence reference197 = ref span257[num]; + ref QuestSequence reference197 = ref span109[3]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj164.Steps = list265; reference197 = obj164; questRoot30.QuestSequence = list257; @@ -196826,16 +163328,13 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list266)[0] = "JerryWester"; questRoot31.Author = list266; - index = 4; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference198 = ref span267[num]; + num = 4; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span114 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference198 = ref span114[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -196843,23 +163342,18 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); + CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020568u, new Vector3(-92.42395f, 50.004436f, 185.6565f), 612); obj165.Steps = list268; reference198 = obj165; - num++; - ref QuestSequence reference199 = ref span267[num]; + ref QuestSequence reference199 = ref span114[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list269 = new List(index2); - CollectionsMarshal.SetCount(list269, index2); - Span span269 = CollectionsMarshal.AsSpan(list269); - num2 = 0; - ref QuestStep reference200 = ref span269[num2]; + num2 = 1; + List list269 = new List(num2); + CollectionsMarshal.SetCount(list269, num2); + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list269)[0]; QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1020573u, new Vector3(-90.68439f, 50.00444f, 210.46765f), 612) { StopDistance = 7f, @@ -196868,9 +163362,7 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span270 = CollectionsMarshal.AsSpan(list270); - num4 = 0; - span270[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list270)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA604_02530_WARP_YESNO_TITLE") @@ -196879,8 +163371,7 @@ public static class AssemblyQuestLoader reference200 = obj167; obj166.Steps = list269; reference199 = obj166; - num++; - ref QuestSequence reference201 = ref span267[num]; + ref QuestSequence reference201 = ref span114[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -196888,28 +163379,23 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.Interact, 1022327u, new Vector3(374.89893f, 44.793087f, 273.7621f), 612); + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1022327u, new Vector3(374.89893f, 44.793087f, 273.7621f), 612); obj168.Steps = list271; reference201 = obj168; - num++; - ref QuestSequence reference202 = ref span267[num]; + ref QuestSequence reference202 = ref span114[3]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.FringesPeeringStones }; - num2++; - span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); + span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); obj169.Steps = list272; reference202 = obj169; questRoot31.QuestSequence = list267; @@ -196919,16 +163405,13 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list273)[0] = "JerryWester"; questRoot32.Author = list273; - index = 3; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference203 = ref span274[num]; + num = 3; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span116 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference203 = ref span116[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -196936,43 +163419,35 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020580u, new Vector3(451.52966f, 114.37317f, 236.40796f), 612); + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020580u, new Vector3(451.52966f, 114.37317f, 236.40796f), 612); obj170.Steps = list275; reference203 = obj170; - num++; - ref QuestSequence reference204 = ref span274[num]; + ref QuestSequence reference204 = ref span116[1]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2821) }; - num2++; - span276[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007971u, new Vector3(322.59094f, 88.97534f, 10.513428f), 612) + span117[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007971u, new Vector3(322.59094f, 88.97534f, 10.513428f), 612) { AetherCurrentId = 2818139u }; - num2++; - span276[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(328.29312f, 79.1903f, 2.052349f), 612) + span117[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(328.29312f, 79.1903f, 2.052349f), 612) { DisableNavmesh = true, Mount = true }; - num2++; - span276[num2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); + span117[3] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); obj171.Steps = list276; reference204 = obj171; - num++; - ref QuestSequence reference205 = ref span274[num]; + ref QuestSequence reference205 = ref span116[2]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -196980,9 +163455,7 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) + CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020827u, new Vector3(334.1267f, 82.94969f, -101.27417f), 612) { StopDistance = 7f }; @@ -196995,33 +163468,27 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - Span span278 = CollectionsMarshal.AsSpan(list278); - index = 0; - span278[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list278)[0] = "JerryWester"; questRoot33.Author = list278; - index = 8; - List list279 = new List(index); - CollectionsMarshal.SetCount(list279, index); - Span span279 = CollectionsMarshal.AsSpan(list279); - num = 0; - ref QuestSequence reference206 = ref span279[num]; + num = 8; + List list279 = new List(num); + CollectionsMarshal.SetCount(list279, num); + Span span118 = CollectionsMarshal.AsSpan(list279); + ref QuestSequence reference206 = ref span118[0]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj173.Steps = list280; reference206 = obj173; - num++; - ref QuestSequence reference207 = ref span279[num]; + ref QuestSequence reference207 = ref span118[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -197029,42 +163496,35 @@ public static class AssemblyQuestLoader num2 = 2; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612) + Span span119 = CollectionsMarshal.AsSpan(list281); + span119[0] = new QuestStep(EInteractionType.AcceptQuest, 1020821u, new Vector3(276.7223f, 76.853935f, -23.51416f), 612) { PickUpQuestId = new QuestId(2816) }; - index2++; - span281[index2] = new QuestStep(EInteractionType.Interact, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612); + span119[1] = new QuestStep(EInteractionType.Interact, 1020589u, new Vector3(510.79578f, 122.30697f, -239.643f), 612); obj174.Steps = list281; reference207 = obj174; - num++; - ref QuestSequence reference208 = ref span279[num]; + ref QuestSequence reference208 = ref span118[2]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818140u }; - num2++; - span282[num2] = new QuestStep(EInteractionType.Interact, 2008200u, new Vector3(804.5929f, 179.70544f, -304.70746f), 612); + span120[1] = new QuestStep(EInteractionType.Interact, 2008200u, new Vector3(804.5929f, 179.70544f, -304.70746f), 612); obj175.Steps = list282; reference208 = obj175; - num++; - span279[num] = new QuestSequence + span118[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference209 = ref span279[num]; + ref QuestSequence reference209 = ref span118[4]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -197072,16 +163532,12 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - ref QuestStep reference210 = ref span283[index2]; + ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list283)[0]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1020593u, new Vector3(2.3651123f, -5.169945f, -13.260071f), 683); - num4 = 1; - List list284 = new List(num4); - CollectionsMarshal.SetCount(list284, num4); - Span span284 = CollectionsMarshal.AsSpan(list284); - num3 = 0; - span284[num3] = new DialogueChoice + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA606_02532_Q1_000_150"), @@ -197091,18 +163547,15 @@ public static class AssemblyQuestLoader reference210 = questStep34; obj176.Steps = list283; reference209 = obj176; - num++; - ref QuestSequence reference211 = ref span279[num]; + ref QuestSequence reference211 = ref span118[5]; QuestSequence obj177 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Duty, null, null, 683) { DutyOptions = new DutyOptions { @@ -197111,13 +163564,11 @@ public static class AssemblyQuestLoader }; obj177.Steps = list285; reference211 = obj177; - num++; - span279[num] = new QuestSequence + span118[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference212 = ref span279[num]; + ref QuestSequence reference212 = ref span118[7]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -197125,9 +163576,7 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020592u, new Vector3(509.39185f, 122.137985f, -242.14551f), 612) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020592u, new Vector3(509.39185f, 122.137985f, -242.14551f), 612) { StopDistance = 5f }; @@ -197140,33 +163589,27 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - Span span287 = CollectionsMarshal.AsSpan(list287); - index = 0; - span287[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list287)[0] = "JerryWester"; questRoot34.Author = list287; - index = 5; - List list288 = new List(index); - CollectionsMarshal.SetCount(list288, index); - Span span288 = CollectionsMarshal.AsSpan(list288); - num = 0; - ref QuestSequence reference213 = ref span288[num]; + num = 5; + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + Span span121 = CollectionsMarshal.AsSpan(list288); + ref QuestSequence reference213 = ref span121[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj179.Steps = list289; reference213 = obj179; - num++; - ref QuestSequence reference214 = ref span288[num]; + ref QuestSequence reference214 = ref span121[1]; QuestSequence obj180 = new QuestSequence { Sequence = 1 @@ -197174,30 +163617,24 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612); obj180.Steps = list290; reference214 = obj180; - num++; - ref QuestSequence reference215 = ref span288[num]; + ref QuestSequence reference215 = ref span121[2]; QuestSequence obj181 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj181.Steps = list291; reference215 = obj181; - num++; - ref QuestSequence reference216 = ref span288[num]; + ref QuestSequence reference216 = ref span121[3]; QuestSequence obj182 = new QuestSequence { Sequence = 3 @@ -197205,23 +163642,18 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1020578u, new Vector3(426.56592f, 114.54993f, 221.7898f), 612); obj182.Steps = list292; reference216 = obj182; - num++; - ref QuestSequence reference217 = ref span288[num]; + ref QuestSequence reference217 = ref span121[4]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj183.Steps = list293; reference217 = obj183; questRoot34.QuestSequence = list288; @@ -197231,16 +163663,13 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - Span span294 = CollectionsMarshal.AsSpan(list294); - index = 0; - span294[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list294)[0] = "JerryWester"; questRoot35.Author = list294; - index = 5; - List list295 = new List(index); - CollectionsMarshal.SetCount(list295, index); - Span span295 = CollectionsMarshal.AsSpan(list295); - num = 0; - ref QuestSequence reference218 = ref span295[num]; + num = 5; + List list295 = new List(num); + CollectionsMarshal.SetCount(list295, num); + Span span122 = CollectionsMarshal.AsSpan(list295); + ref QuestSequence reference218 = ref span122[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -197248,9 +163677,7 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span296 = CollectionsMarshal.AsSpan(list296); - index2 = 0; - span296[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612) + CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020596u, new Vector3(424.73486f, 114.60925f, 222.18652f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -197263,18 +163690,16 @@ public static class AssemblyQuestLoader }; obj184.Steps = list296; reference218 = obj184; - num++; - ref QuestSequence reference219 = ref span295[num]; + ref QuestSequence reference219 = ref span122[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -197284,20 +163709,17 @@ public static class AssemblyQuestLoader } } }; - num2++; - span297[num2] = new QuestStep(EInteractionType.Interact, 1022334u, new Vector3(845.8839f, 86.0183f, 361.9287f), 612) + span123[1] = new QuestStep(EInteractionType.Interact, 1022334u, new Vector3(845.8839f, 86.0183f, 361.9287f), 612) { Fly = true }; obj185.Steps = list297; reference219 = obj185; - num++; - span295[num] = new QuestSequence + span122[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference220 = ref span295[num]; + ref QuestSequence reference220 = ref span122[3]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -197305,23 +163727,18 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.Interact, 1020599u, new Vector3(-601.4649f, 323.9936f, 179.70544f), 620); + CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.Interact, 1020599u, new Vector3(-601.4649f, 323.9936f, 179.70544f), 620); obj186.Steps = list298; reference220 = obj186; - num++; - ref QuestSequence reference221 = ref span295[num]; + ref QuestSequence reference221 = ref span122[4]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj187.Steps = list299; reference221 = obj187; questRoot35.QuestSequence = list295; @@ -197331,16 +163748,13 @@ public static class AssemblyQuestLoader num = 1; List list300 = new List(num); CollectionsMarshal.SetCount(list300, num); - Span span300 = CollectionsMarshal.AsSpan(list300); - index = 0; - span300[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list300)[0] = "JerryWester"; questRoot36.Author = list300; - index = 3; - List list301 = new List(index); - CollectionsMarshal.SetCount(list301, index); - Span span301 = CollectionsMarshal.AsSpan(list301); - num = 0; - ref QuestSequence reference222 = ref span301[num]; + num = 3; + List list301 = new List(num); + CollectionsMarshal.SetCount(list301, num); + Span span124 = CollectionsMarshal.AsSpan(list301); + ref QuestSequence reference222 = ref span124[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -197348,32 +163762,26 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020600u, new Vector3(-286.7323f, 256.99963f, 696.22327f), 620); obj188.Steps = list302; reference222 = obj188; - num++; - ref QuestSequence reference223 = ref span301[num]; + ref QuestSequence reference223 = ref span124[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.PeaksAlaGhiri }; - num2++; - span303[num2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); + span125[1] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); obj189.Steps = list303; reference223 = obj189; - num++; - ref QuestSequence reference224 = ref span301[num]; + ref QuestSequence reference224 = ref span124[2]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue @@ -197381,9 +163789,7 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020630u, new Vector3(-297.47473f, 257.52652f, 765.31616f), 620) { StopDistance = 6f }; @@ -197396,28 +163802,23 @@ public static class AssemblyQuestLoader num = 2; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - Span span305 = CollectionsMarshal.AsSpan(list305); - index = 0; - span305[index] = "JerryWester"; - index++; - span305[index] = "ewlame"; + Span span126 = CollectionsMarshal.AsSpan(list305); + span126[0] = "JerryWester"; + span126[1] = "ewlame"; questRoot37.Author = list305; - index = 3; - List list306 = new List(index); - CollectionsMarshal.SetCount(list306, index); - Span span306 = CollectionsMarshal.AsSpan(list306); - num = 0; - ref QuestSequence reference225 = ref span306[num]; + num = 3; + List list306 = new List(num); + CollectionsMarshal.SetCount(list306, num); + Span span127 = CollectionsMarshal.AsSpan(list306); + ref QuestSequence reference225 = ref span127[0]; QuestSequence obj191 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -197431,8 +163832,7 @@ public static class AssemblyQuestLoader }; obj191.Steps = list307; reference225 = obj191; - num++; - ref QuestSequence reference226 = ref span306[num]; + ref QuestSequence reference226 = ref span127[1]; QuestSequence obj192 = new QuestSequence { Sequence = 1 @@ -197440,9 +163840,8 @@ public static class AssemblyQuestLoader num2 = 2; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - ref QuestStep reference227 = ref span308[index2]; + Span span128 = CollectionsMarshal.AsSpan(list308); + ref QuestStep reference227 = ref span128[0]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2008202u, new Vector3(-549.7368f, 257.3739f, 557.6714f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -197450,32 +163849,23 @@ public static class AssemblyQuestLoader num3 = 2; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - Span span309 = CollectionsMarshal.AsSpan(list309); - num4 = 0; - span309[num4] = 8033u; - num4++; - span309[num4] = 8045u; + Span span129 = CollectionsMarshal.AsSpan(list309); + span129[0] = 8033u; + span129[1] = 8045u; obj193.KillEnemyDataIds = list309; - 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); + 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); obj193.CompletionQuestVariablesFlags = list310; reference227 = obj193; - index2++; - ref QuestStep reference228 = ref span308[index2]; + ref QuestStep reference228 = ref span128[1]; QuestStep obj194 = new QuestStep(EInteractionType.Combat, 2008203u, new Vector3(-460.92932f, 295.58252f, 256.0005f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -197483,49 +163873,38 @@ public static class AssemblyQuestLoader num3 = 2; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span311 = CollectionsMarshal.AsSpan(list311); - num4 = 0; - span311[num4] = 8031u; - num4++; - span311[num4] = 8032u; + Span span131 = CollectionsMarshal.AsSpan(list311); + span131[0] = 8031u; + span131[1] = 8032u; obj194.KillEnemyDataIds = list311; - 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); + 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); obj194.CompletionQuestVariablesFlags = list312; reference228 = obj194; obj192.Steps = list308; reference226 = obj192; - num++; - ref QuestSequence reference229 = ref span306[num]; + ref QuestSequence reference229 = ref span127[2]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818154u }; - num2++; - span313[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); + span133[1] = new QuestStep(EInteractionType.CompleteQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); obj195.Steps = list313; reference229 = obj195; questRoot37.QuestSequence = list306; @@ -197535,16 +163914,13 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - Span span314 = CollectionsMarshal.AsSpan(list314); - index = 0; - span314[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list314)[0] = "JerryWester"; questRoot38.Author = list314; - index = 7; - List list315 = new List(index); - CollectionsMarshal.SetCount(list315, index); - Span span315 = CollectionsMarshal.AsSpan(list315); - num = 0; - ref QuestSequence reference230 = ref span315[num]; + num = 7; + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span134 = CollectionsMarshal.AsSpan(list315); + ref QuestSequence reference230 = ref span134[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -197552,27 +163928,21 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020608u, new Vector3(-346.15094f, 305.93304f, 149.03479f), 620); obj196.Steps = list316; reference230 = obj196; - num++; - ref QuestSequence reference231 = ref span315[num]; + ref QuestSequence reference231 = ref span134[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj197.Steps = list317; reference231 = obj197; - num++; - ref QuestSequence reference232 = ref span315[num]; + ref QuestSequence reference232 = ref span134[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -197580,103 +163950,76 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - ref QuestStep reference233 = ref span318[index2]; + Span span135 = CollectionsMarshal.AsSpan(list318); + ref QuestStep reference233 = ref span135[0]; 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); - Span span319 = CollectionsMarshal.AsSpan(list319); - num4 = 0; - span319[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list319)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDA611_02537_AREA_WARP_YESNO_TITLE") }; questStep35.DialogueChoices = list319; reference233 = questStep35; - index2++; - span318[index2] = new QuestStep(EInteractionType.Interact, 1020610u, new Vector3(-77.25653f, 305.92664f, 154.00928f), 620); + span135[1] = new QuestStep(EInteractionType.Interact, 1020610u, new Vector3(-77.25653f, 305.92664f, 154.00928f), 620); obj198.Steps = list318; reference232 = obj198; - num++; - ref QuestSequence reference234 = ref span315[num]; + ref QuestSequence reference234 = ref span134[3]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list320 = new List(index2); - CollectionsMarshal.SetCount(list320, index2); - Span span320 = CollectionsMarshal.AsSpan(list320); - num2 = 0; - ref QuestStep reference235 = ref span320[num2]; + num2 = 3; + List list320 = new List(num2); + CollectionsMarshal.SetCount(list320, num2); + Span span136 = CollectionsMarshal.AsSpan(list320); + ref QuestStep reference235 = ref span136[0]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1020617u, new Vector3(-15.274292f, 317.61813f, 134.93542f), 620); - 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); + 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); questStep36.CompletionQuestVariablesFlags = list321; reference235 = questStep36; - num2++; - ref QuestStep reference236 = ref span320[num2]; + ref QuestStep reference236 = ref span136[1]; 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 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); + 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); questStep37.CompletionQuestVariablesFlags = list322; reference236 = questStep37; - num2++; - ref QuestStep reference237 = ref span320[num2]; + ref QuestStep reference237 = ref span136[2]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1020619u, new Vector3(0.289917f, 317.56836f, 105.57703f), 620); - 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); + 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); questStep38.CompletionQuestVariablesFlags = list323; reference237 = questStep38; obj199.Steps = list320; reference234 = obj199; - num++; - ref QuestSequence reference238 = ref span315[num]; + ref QuestSequence reference238 = ref span134[4]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -197684,27 +164027,21 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.Interact, 1022335u, new Vector3(-30.289246f, 317.56836f, 123.85742f), 620); + CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1022335u, new Vector3(-30.289246f, 317.56836f, 123.85742f), 620); obj200.Steps = list324; reference238 = obj200; - num++; - ref QuestSequence reference239 = ref span315[num]; + ref QuestSequence reference239 = ref span134[5]; QuestSequence obj201 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj201.Steps = list325; reference239 = obj201; - num++; - ref QuestSequence reference240 = ref span315[num]; + ref QuestSequence reference240 = ref span134[6]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -197712,9 +164049,7 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020611u, new Vector3(7.827881f, 317.5509f, 112.41321f), 620); obj202.Steps = list326; reference240 = obj202; questRoot38.QuestSequence = list315; @@ -197724,30 +164059,24 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - Span span327 = CollectionsMarshal.AsSpan(list327); - index = 0; - span327[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list327)[0] = "JerryWester"; questRoot39.Author = list327; - index = 4; - List list328 = new List(index); - CollectionsMarshal.SetCount(list328, index); - Span span328 = CollectionsMarshal.AsSpan(list328); - num = 0; - ref QuestSequence reference241 = ref span328[num]; + num = 4; + List list328 = new List(num); + CollectionsMarshal.SetCount(list328, num); + Span span140 = CollectionsMarshal.AsSpan(list328); + ref QuestSequence reference241 = ref span140[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj203.Steps = list329; reference241 = obj203; - num++; - ref QuestSequence reference242 = ref span328[num]; + ref QuestSequence reference242 = ref span140[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -197755,93 +164084,67 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.Interact, 1019945u, new Vector3(7.9804688f, 306.56976f, 73.68579f), 620); + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1019945u, new Vector3(7.9804688f, 306.56976f, 73.68579f), 620); obj204.Steps = list330; reference242 = obj204; - num++; - ref QuestSequence reference243 = ref span328[num]; + ref QuestSequence reference243 = ref span140[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list331 = new List(index2); - CollectionsMarshal.SetCount(list331, index2); - Span span331 = CollectionsMarshal.AsSpan(list331); - num2 = 0; - ref QuestStep reference244 = ref span331[num2]; + num2 = 4; + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + Span span141 = CollectionsMarshal.AsSpan(list331); + ref QuestStep reference244 = ref span141[0]; 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 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); + 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); questStep39.CompletionQuestVariablesFlags = list332; reference244 = questStep39; - num2++; - span331[num2] = new QuestStep(EInteractionType.Interact, 2008450u, new Vector3(-126.54315f, 306.50793f, 186.26685f), 620) + span141[1] = new QuestStep(EInteractionType.Interact, 2008450u, new Vector3(-126.54315f, 306.50793f, 186.26685f), 620) { TargetTerritoryId = (ushort)620 }; - num2++; - ref QuestStep reference245 = ref span331[num2]; + ref QuestStep reference245 = ref span141[2]; QuestStep questStep40 = new QuestStep(EInteractionType.Interact, 1023834u, new Vector3(-148.4856f, 300.39352f, 265.73584f), 620); - 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); + 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); questStep40.CompletionQuestVariablesFlags = list333; reference245 = questStep40; - num2++; - ref QuestStep reference246 = ref span331[num2]; + ref QuestStep reference246 = ref span141[3]; 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 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); + 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); questStep41.CompletionQuestVariablesFlags = list334; reference246 = questStep41; obj205.Steps = list331; reference243 = obj205; - num++; - ref QuestSequence reference247 = ref span328[num]; + ref QuestSequence reference247 = ref span140[3]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -197849,9 +164152,7 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) + CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020601u, new Vector3(-286.54926f, 256.8515f, 693.1411f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; @@ -197864,26 +164165,21 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - Span span336 = CollectionsMarshal.AsSpan(list336); - index = 0; - span336[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list336)[0] = "JerryWester"; questRoot40.Author = list336; - index = 3; - List list337 = new List(index); - CollectionsMarshal.SetCount(list337, index); - Span span337 = CollectionsMarshal.AsSpan(list337); - num = 0; - ref QuestSequence reference248 = ref span337[num]; + num = 3; + List list337 = new List(num); + CollectionsMarshal.SetCount(list337, num); + Span span145 = CollectionsMarshal.AsSpan(list337); + ref QuestSequence reference248 = ref span145[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -197896,8 +164192,7 @@ public static class AssemblyQuestLoader }; obj207.Steps = list338; reference248 = obj207; - num++; - ref QuestSequence reference249 = ref span337[num]; + ref QuestSequence reference249 = ref span145[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -197905,23 +164200,18 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1020604u, new Vector3(-299.39728f, 257.52652f, 770.7484f), 620); obj208.Steps = list339; reference249 = obj208; - num++; - ref QuestSequence reference250 = ref span337[num]; + ref QuestSequence reference250 = ref span145[2]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -197934,16 +164224,13 @@ public static class AssemblyQuestLoader num = 1; List list341 = new List(num); CollectionsMarshal.SetCount(list341, num); - Span span341 = CollectionsMarshal.AsSpan(list341); - index = 0; - span341[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list341)[0] = "JerryWester"; questRoot41.Author = list341; - index = 4; - List list342 = new List(index); - CollectionsMarshal.SetCount(list342, index); - Span span342 = CollectionsMarshal.AsSpan(list342); - num = 0; - ref QuestSequence reference251 = ref span342[num]; + num = 4; + List list342 = new List(num); + CollectionsMarshal.SetCount(list342, num); + Span span146 = CollectionsMarshal.AsSpan(list342); + ref QuestSequence reference251 = ref span146[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -197951,9 +164238,7 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) + CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020631u, new Vector3(-300.49597f, 257.5265f, 765.0415f), 620) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -197967,34 +164252,28 @@ public static class AssemblyQuestLoader }; obj210.Steps = list343; reference251 = obj210; - num++; - ref QuestSequence reference252 = ref span342[num]; + ref QuestSequence reference252 = ref span146[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list344 = new List(index2); - CollectionsMarshal.SetCount(list344, index2); - Span span344 = CollectionsMarshal.AsSpan(list344); - num2 = 0; - ref QuestStep reference253 = ref span344[num2]; + num2 = 1; + List list344 = new List(num2); + CollectionsMarshal.SetCount(list344, num2); + ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list344)[0]; QuestStep obj212 = new QuestStep(EInteractionType.Combat, 2009007u, new Vector3(-75.24231f, 262.4093f, 661.86f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list345 = new List(num4); - CollectionsMarshal.SetCount(list345, num4); - Span span345 = CollectionsMarshal.AsSpan(list345); - num3 = 0; - span345[num3] = 7534u; + num3 = 1; + List list345 = new List(num3); + CollectionsMarshal.SetCount(list345, num3); + CollectionsMarshal.AsSpan(list345)[0] = 7534u; obj212.KillEnemyDataIds = list345; reference253 = obj212; obj211.Steps = list344; reference252 = obj211; - num++; - ref QuestSequence reference254 = ref span342[num]; + ref QuestSequence reference254 = ref span146[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -198002,26 +164281,21 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - span346[index2] = new QuestStep(EInteractionType.Interact, 2008211u, new Vector3(-75.48645f, 262.4093f, 661.86f), 620) + CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 2008211u, new Vector3(-75.48645f, 262.4093f, 661.86f), 620) { StopDistance = 4.25f }; obj213.Steps = list346; reference254 = obj213; - num++; - ref QuestSequence reference255 = ref span342[num]; + ref QuestSequence reference255 = ref span146[3]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -198034,16 +164308,13 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - Span span348 = CollectionsMarshal.AsSpan(list348); - index = 0; - span348[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list348)[0] = "JerryWester"; questRoot42.Author = list348; - index = 3; - List list349 = new List(index); - CollectionsMarshal.SetCount(list349, index); - Span span349 = CollectionsMarshal.AsSpan(list349); - num = 0; - ref QuestSequence reference256 = ref span349[num]; + num = 3; + List list349 = new List(num); + CollectionsMarshal.SetCount(list349, num); + Span span147 = CollectionsMarshal.AsSpan(list349); + ref QuestSequence reference256 = ref span147[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -198051,33 +164322,27 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020633u, new Vector3(-113.42035f, 263.73114f, 655.75635f), 620) { StopDistance = 7f }; obj215.Steps = list350; reference256 = obj215; - num++; - ref QuestSequence reference257 = ref span349[num]; + ref QuestSequence reference257 = ref span147[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj216.Steps = list351; reference257 = obj216; - num++; - ref QuestSequence reference258 = ref span349[num]; + ref QuestSequence reference258 = ref span147[2]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue @@ -198085,9 +164350,7 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - span352[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) + CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020629u, new Vector3(-298.51227f, 257.52652f, 764.98047f), 620) { StopDistance = 7f }; @@ -198100,26 +164363,21 @@ public static class AssemblyQuestLoader num = 1; List list353 = new List(num); CollectionsMarshal.SetCount(list353, num); - Span span353 = CollectionsMarshal.AsSpan(list353); - index = 0; - span353[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list353)[0] = "JerryWester"; questRoot43.Author = list353; - index = 6; - List list354 = new List(index); - CollectionsMarshal.SetCount(list354, index); - Span span354 = CollectionsMarshal.AsSpan(list354); - num = 0; - ref QuestSequence reference259 = ref span354[num]; + num = 6; + List list354 = new List(num); + CollectionsMarshal.SetCount(list354, num); + Span span148 = CollectionsMarshal.AsSpan(list354); + ref QuestSequence reference259 = ref span148[0]; QuestSequence obj218 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, @@ -198133,8 +164391,7 @@ public static class AssemblyQuestLoader }; obj218.Steps = list355; reference259 = obj218; - num++; - ref QuestSequence reference260 = ref span354[num]; + ref QuestSequence reference260 = ref span148[1]; QuestSequence obj219 = new QuestSequence { Sequence = 1 @@ -198142,33 +164399,28 @@ public static class AssemblyQuestLoader num2 = 2; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span356 = CollectionsMarshal.AsSpan(list356); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) + Span span149 = CollectionsMarshal.AsSpan(list356); + span149[0] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) { PickUpQuestId = new QuestId(2842) }; - index2++; - span356[index2] = new QuestStep(EInteractionType.Interact, 2009008u, new Vector3(-171.2215f, 294.5144f, 302.44897f), 620); + span149[1] = new QuestStep(EInteractionType.Interact, 2009008u, new Vector3(-171.2215f, 294.5144f, 302.44897f), 620); obj219.Steps = list356; reference260 = obj219; - num++; - ref QuestSequence reference261 = ref span354[num]; + ref QuestSequence reference261 = ref span148[2]; QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)620 }; - num2++; - ref QuestStep reference262 = ref span357[num2]; + ref QuestStep reference262 = ref span150[1]; QuestStep obj221 = new QuestStep(EInteractionType.Combat, 2009009u, new Vector3(-115.40399f, 305.47034f, 161.3031f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -198176,17 +164428,14 @@ public static class AssemblyQuestLoader num3 = 2; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - Span span358 = CollectionsMarshal.AsSpan(list358); - num4 = 0; - span358[num4] = 8032u; - num4++; - span358[num4] = 8045u; + Span span151 = CollectionsMarshal.AsSpan(list358); + span151[0] = 8032u; + span151[1] = 8045u; obj221.KillEnemyDataIds = list358; reference262 = obj221; obj220.Steps = list357; reference261 = obj220; - num++; - ref QuestSequence reference263 = ref span354[num]; + ref QuestSequence reference263 = ref span148[3]; QuestSequence obj222 = new QuestSequence { Sequence = 3 @@ -198194,39 +164443,31 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new QuestStep(EInteractionType.Interact, 1021616u, new Vector3(64.31665f, 305.92664f, 152.6665f), 620); + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1021616u, new Vector3(64.31665f, 305.92664f, 152.6665f), 620); obj222.Steps = list359; reference263 = obj222; - num++; - ref QuestSequence reference264 = ref span354[num]; + ref QuestSequence reference264 = ref span148[4]; QuestSequence obj223 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list360 = new List(index2); - CollectionsMarshal.SetCount(list360, index2); - Span span360 = CollectionsMarshal.AsSpan(list360); - num2 = 0; - ref QuestStep reference265 = ref span360[num2]; + num2 = 1; + List list360 = new List(num2); + CollectionsMarshal.SetCount(list360, num2); + ref QuestStep reference265 = ref CollectionsMarshal.AsSpan(list360)[0]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, 2009010u, new Vector3(148.82117f, 308.73572f, 166.58276f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list361 = new List(num4); - CollectionsMarshal.SetCount(list361, num4); - Span span361 = CollectionsMarshal.AsSpan(list361); - num3 = 0; - span361[num3] = 7569u; + num3 = 1; + List list361 = new List(num3); + CollectionsMarshal.SetCount(list361, num3); + CollectionsMarshal.AsSpan(list361)[0] = 7569u; obj224.KillEnemyDataIds = list361; reference265 = obj224; obj223.Steps = list360; reference264 = obj223; - num++; - ref QuestSequence reference266 = ref span354[num]; + ref QuestSequence reference266 = ref span148[5]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -198234,9 +164475,7 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022344u, new Vector3(353.78027f, 323.77386f, 273.30432f), 620); obj225.Steps = list362; reference266 = obj225; questRoot43.QuestSequence = list354; @@ -198246,30 +164485,24 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - Span span363 = CollectionsMarshal.AsSpan(list363); - index = 0; - span363[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list363)[0] = "JerryWester"; questRoot44.Author = list363; - index = 3; - List list364 = new List(index); - CollectionsMarshal.SetCount(list364, index); - Span span364 = CollectionsMarshal.AsSpan(list364); - num = 0; - ref QuestSequence reference267 = ref span364[num]; + num = 3; + List list364 = new List(num); + CollectionsMarshal.SetCount(list364, num); + Span span152 = CollectionsMarshal.AsSpan(list364); + ref QuestSequence reference267 = ref span152[0]; QuestSequence obj226 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj226.Steps = list365; reference267 = obj226; - num++; - ref QuestSequence reference268 = ref span364[num]; + ref QuestSequence reference268 = ref span152[1]; QuestSequence obj227 = new QuestSequence { Sequence = 1 @@ -198277,16 +164510,12 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span366 = CollectionsMarshal.AsSpan(list366); - index2 = 0; - ref QuestStep reference269 = ref span366[index2]; + ref QuestStep reference269 = ref CollectionsMarshal.AsSpan(list366)[0]; 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); - Span span367 = CollectionsMarshal.AsSpan(list367); - num4 = 0; - span367[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list367)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA617_02543_Q1_000_000"), @@ -198296,18 +164525,15 @@ public static class AssemblyQuestLoader reference269 = questStep42; obj227.Steps = list366; reference268 = obj227; - num++; - ref QuestSequence reference270 = ref span364[num]; + ref QuestSequence reference270 = ref span152[2]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj228.Steps = list368; reference270 = obj228; questRoot44.QuestSequence = list364; @@ -198317,16 +164543,13 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - Span span369 = CollectionsMarshal.AsSpan(list369); - index = 0; - span369[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list369)[0] = "JerryWester"; questRoot45.Author = list369; - index = 9; - List list370 = new List(index); - CollectionsMarshal.SetCount(list370, index); - Span span370 = CollectionsMarshal.AsSpan(list370); - num = 0; - ref QuestSequence reference271 = ref span370[num]; + num = 9; + List list370 = new List(num); + CollectionsMarshal.SetCount(list370, num); + Span span153 = CollectionsMarshal.AsSpan(list370); + ref QuestSequence reference271 = ref span153[0]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -198334,44 +164557,36 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023606u, new Vector3(257.1908f, 314.22742f, 418.2954f), 620) + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023606u, new Vector3(257.1908f, 314.22742f, 418.2954f), 620) { StopDistance = 7f }; obj229.Steps = list371; reference271 = obj229; - num++; - ref QuestSequence reference272 = ref span370[num]; + ref QuestSequence reference272 = ref span153[1]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list372 = new List(index2); - CollectionsMarshal.SetCount(list372, index2); - Span span372 = CollectionsMarshal.AsSpan(list372); - num2 = 0; - ref QuestStep reference273 = ref span372[num2]; + num2 = 1; + List list372 = new List(num2); + CollectionsMarshal.SetCount(list372, num2); + ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list372)[0]; QuestStep obj231 = new QuestStep(EInteractionType.Combat, 2009011u, new Vector3(306.38586f, 318.5625f, 432.45593f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list373 = new List(num3); + CollectionsMarshal.SetCount(list373, num3); + Span span154 = CollectionsMarshal.AsSpan(list373); + span154[0] = 7553u; + span154[1] = 7554u; obj231.KillEnemyDataIds = list373; reference273 = obj231; obj230.Steps = list372; reference272 = obj230; - num++; - ref QuestSequence reference274 = ref span370[num]; + ref QuestSequence reference274 = ref span153[2]; QuestSequence obj232 = new QuestSequence { Sequence = 2 @@ -198379,9 +164594,7 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span374 = CollectionsMarshal.AsSpan(list374); - index2 = 0; - ref QuestStep reference275 = ref span374[index2]; + ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list374)[0]; QuestStep obj233 = new QuestStep(EInteractionType.Combat, 2009012u, new Vector3(333.36377f, 322.0111f, 439.3529f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -198389,31 +164602,25 @@ public static class AssemblyQuestLoader num3 = 2; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - Span span375 = CollectionsMarshal.AsSpan(list375); - num4 = 0; - span375[num4] = 8033u; - num4++; - span375[num4] = 8045u; + Span span155 = CollectionsMarshal.AsSpan(list375); + span155[0] = 8033u; + span155[1] = 8045u; obj233.KillEnemyDataIds = list375; reference275 = obj233; obj232.Steps = list374; reference274 = obj232; - num++; - ref QuestSequence reference276 = ref span370[num]; + ref QuestSequence reference276 = ref span153[3]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj234.Steps = list376; reference276 = obj234; - num++; - ref QuestSequence reference277 = ref span370[num]; + ref QuestSequence reference277 = ref span153[4]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -198421,41 +164628,33 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - Span span377 = CollectionsMarshal.AsSpan(list377); - index2 = 0; - ref QuestStep reference278 = ref span377[index2]; + ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list377)[0]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, 2009013u, new Vector3(422.2323f, 335.46948f, 481.74243f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list378 = new List(num3); + CollectionsMarshal.SetCount(list378, num3); + Span span156 = CollectionsMarshal.AsSpan(list378); + span156[0] = 7568u; + span156[1] = 8040u; obj236.KillEnemyDataIds = list378; reference278 = obj236; obj235.Steps = list377; reference277 = obj235; - num++; - ref QuestSequence reference279 = ref span370[num]; + ref QuestSequence reference279 = ref span153[5]; QuestSequence obj237 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj237.Steps = list379; reference279 = obj237; - num++; - ref QuestSequence reference280 = ref span370[num]; + ref QuestSequence reference280 = ref span153[6]; QuestSequence obj238 = new QuestSequence { Sequence = 6 @@ -198463,9 +164662,7 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span380 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - ref QuestStep reference281 = ref span380[index2]; + ref QuestStep reference281 = ref CollectionsMarshal.AsSpan(list380)[0]; QuestStep questStep43 = new QuestStep(EInteractionType.Duty, null, null, 620); DutyOptions obj239 = new DutyOptions { @@ -198475,33 +164672,27 @@ public static class AssemblyQuestLoader num3 = 2; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - 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"; + 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"; obj239.Notes = list381; questStep43.DutyOptions = obj239; reference281 = questStep43; obj238.Steps = list380; reference280 = obj238; - num++; - span370[num] = new QuestSequence + span153[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference282 = ref span370[num]; + ref QuestSequence reference282 = ref span153[8]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -198514,16 +164705,13 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - Span span383 = CollectionsMarshal.AsSpan(list383); - index = 0; - span383[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list383)[0] = "JerryWester"; questRoot46.Author = list383; - index = 2; - List list384 = new List(index); - CollectionsMarshal.SetCount(list384, index); - Span span384 = CollectionsMarshal.AsSpan(list384); - num = 0; - ref QuestSequence reference283 = ref span384[num]; + num = 2; + List list384 = new List(num); + CollectionsMarshal.SetCount(list384, num); + Span span158 = CollectionsMarshal.AsSpan(list384); + ref QuestSequence reference283 = ref span158[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -198531,23 +164719,18 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span385 = CollectionsMarshal.AsSpan(list385); - index2 = 0; - span385[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020648u, new Vector3(568.1697f, 344.1177f, 435.29407f), 620); + CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020648u, new Vector3(568.1697f, 344.1177f, 435.29407f), 620); obj241.Steps = list385; reference283 = obj241; - num++; - ref QuestSequence reference284 = ref span384[num]; + ref QuestSequence reference284 = ref span158[1]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj242.Steps = list386; reference284 = obj242; questRoot46.QuestSequence = list384; @@ -198557,16 +164740,13 @@ public static class AssemblyQuestLoader num = 1; List list387 = new List(num); CollectionsMarshal.SetCount(list387, num); - Span span387 = CollectionsMarshal.AsSpan(list387); - index = 0; - span387[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list387)[0] = "JerryWester"; questRoot47.Author = list387; - index = 7; - List list388 = new List(index); - CollectionsMarshal.SetCount(list388, index); - Span span388 = CollectionsMarshal.AsSpan(list388); - num = 0; - ref QuestSequence reference285 = ref span388[num]; + num = 7; + List list388 = new List(num); + CollectionsMarshal.SetCount(list388, num); + Span span159 = CollectionsMarshal.AsSpan(list388); + ref QuestSequence reference285 = ref span159[0]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -198574,30 +164754,24 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span389 = CollectionsMarshal.AsSpan(list389); - index2 = 0; - span389[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); + CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020656u, new Vector3(260.39514f, 322.83618f, 742.0309f), 620); obj243.Steps = list389; reference285 = obj243; - num++; - ref QuestSequence reference286 = ref span388[num]; + ref QuestSequence reference286 = ref span159[1]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj244.Steps = list390; reference286 = obj244; - num++; - ref QuestSequence reference287 = ref span388[num]; + ref QuestSequence reference287 = ref span159[2]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -198605,30 +164779,24 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - Span span391 = CollectionsMarshal.AsSpan(list391); - index2 = 0; - span391[index2] = new QuestStep(EInteractionType.Interact, 1022371u, new Vector3(259.84583f, 322.83618f, 740.6881f), 620) + CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1022371u, new Vector3(259.84583f, 322.83618f, 740.6881f), 620) { StopDistance = 7f }; obj245.Steps = list391; reference287 = obj245; - num++; - ref QuestSequence reference288 = ref span388[num]; + ref QuestSequence reference288 = ref span159[3]; QuestSequence obj246 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj246.Steps = list392; reference288 = obj246; - num++; - ref QuestSequence reference289 = ref span388[num]; + ref QuestSequence reference289 = ref span159[4]; QuestSequence obj247 = new QuestSequence { Sequence = 4 @@ -198636,48 +164804,39 @@ public static class AssemblyQuestLoader num2 = 2; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span393 = CollectionsMarshal.AsSpan(list393); - index2 = 0; - span393[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007984u, new Vector3(146.6239f, 303.7307f, 460.80713f), 620) + Span span160 = CollectionsMarshal.AsSpan(list393); + span160[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007984u, new Vector3(146.6239f, 303.7307f, 460.80713f), 620) { AetherCurrentId = 2818157u }; - index2++; - ref QuestStep reference290 = ref span393[index2]; + ref QuestStep reference290 = ref span160[1]; QuestStep obj248 = new QuestStep(EInteractionType.Combat, 1020657u, new Vector3(143.6637f, 298.43732f, 399.95422f), 620) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj248.KillEnemyDataIds = list394; reference290 = obj248; obj247.Steps = list393; reference289 = obj247; - num++; - ref QuestSequence reference291 = ref span388[num]; + ref QuestSequence reference291 = ref span159[5]; QuestSequence obj249 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj249.Steps = list395; reference291 = obj249; - num++; - ref QuestSequence reference292 = ref span388[num]; + ref QuestSequence reference292 = ref span159[6]; QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue @@ -198685,9 +164844,7 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - Span span396 = CollectionsMarshal.AsSpan(list396); - index2 = 0; - span396[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020660u, new Vector3(318.16577f, 324.3033f, 376.88245f), 620); + CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020660u, new Vector3(318.16577f, 324.3033f, 376.88245f), 620); obj250.Steps = list396; reference292 = obj250; questRoot47.QuestSequence = list388; @@ -198697,30 +164854,24 @@ public static class AssemblyQuestLoader num = 1; List list397 = new List(num); CollectionsMarshal.SetCount(list397, num); - Span span397 = CollectionsMarshal.AsSpan(list397); - index = 0; - span397[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list397)[0] = "JerryWester"; questRoot48.Author = list397; - index = 4; - List list398 = new List(index); - CollectionsMarshal.SetCount(list398, index); - Span span398 = CollectionsMarshal.AsSpan(list398); - num = 0; - ref QuestSequence reference293 = ref span398[num]; + num = 4; + List list398 = new List(num); + CollectionsMarshal.SetCount(list398, num); + Span span162 = CollectionsMarshal.AsSpan(list398); + ref QuestSequence reference293 = ref span162[0]; QuestSequence obj251 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj251.Steps = list399; reference293 = obj251; - num++; - ref QuestSequence reference294 = ref span398[num]; + ref QuestSequence reference294 = ref span162[1]; QuestSequence obj252 = new QuestSequence { Sequence = 1 @@ -198728,9 +164879,7 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -198741,22 +164890,18 @@ public static class AssemblyQuestLoader }; obj252.Steps = list400; reference294 = obj252; - num++; - ref QuestSequence reference295 = ref span398[num]; + ref QuestSequence reference295 = ref span162[2]; QuestSequence obj253 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj253.Steps = list401; reference295 = obj253; - num++; - ref QuestSequence reference296 = ref span398[num]; + ref QuestSequence reference296 = ref span162[3]; QuestSequence obj254 = new QuestSequence { Sequence = byte.MaxValue @@ -198764,9 +164909,7 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span402 = CollectionsMarshal.AsSpan(list402); - index2 = 0; - span402[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) + CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020665u, new Vector3(-53.421875f, -0.11677644f, -28.610718f), 635) { StopDistance = 5f }; @@ -198779,26 +164922,21 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - Span span403 = CollectionsMarshal.AsSpan(list403); - index = 0; - span403[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list403)[0] = "JerryWester"; questRoot49.Author = list403; - index = 5; - List list404 = new List(index); - CollectionsMarshal.SetCount(list404, index); - Span span404 = CollectionsMarshal.AsSpan(list404); - num = 0; - ref QuestSequence reference297 = ref span404[num]; + num = 5; + List list404 = new List(num); + CollectionsMarshal.SetCount(list404, num); + Span span163 = CollectionsMarshal.AsSpan(list404); + ref QuestSequence reference297 = ref span163[0]; QuestSequence obj255 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -198812,8 +164950,7 @@ public static class AssemblyQuestLoader }; obj255.Steps = list405; reference297 = obj255; - num++; - ref QuestSequence reference298 = ref span404[num]; + ref QuestSequence reference298 = ref span163[1]; QuestSequence obj256 = new QuestSequence { Sequence = 1 @@ -198821,29 +164958,24 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.Interact, 1020412u, new Vector3(-137.74323f, 0.5980506f, -81.498474f), 635); + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1020412u, new Vector3(-137.74323f, 0.5980506f, -81.498474f), 635); obj256.Steps = list406; reference298 = obj256; - num++; - ref QuestSequence reference299 = ref span404[num]; + ref QuestSequence reference299 = ref span163[2]; QuestSequence obj257 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - num2++; - span407[num2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + span164[1] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -198854,8 +164986,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span407[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + span164[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -198865,15 +164996,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span407[num2] = new QuestStep(EInteractionType.Interact, 1020649u, new Vector3(570.94666f, 344.1177f, 422.17126f), 620) + span164[3] = new QuestStep(EInteractionType.Interact, 1020649u, new Vector3(570.94666f, 344.1177f, 422.17126f), 620) { Fly = true }; obj257.Steps = list407; reference299 = obj257; - num++; - ref QuestSequence reference300 = ref span404[num]; + ref QuestSequence reference300 = ref span163[3]; QuestSequence obj258 = new QuestSequence { Sequence = 3 @@ -198881,28 +165010,23 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - span408[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(590.9373f, 344.0868f, 421.07693f), 620); + CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(590.9373f, 344.0868f, 421.07693f), 620); obj258.Steps = list408; reference300 = obj258; - num++; - ref QuestSequence reference301 = ref span404[num]; + ref QuestSequence reference301 = ref span163[4]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.LochsPortaPraetoria }; - num2++; - span409[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621); + span165[1] = new QuestStep(EInteractionType.CompleteQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621); obj259.Steps = list409; reference301 = obj259; questRoot49.QuestSequence = list404; @@ -198912,16 +165036,13 @@ public static class AssemblyQuestLoader num = 1; List list410 = new List(num); CollectionsMarshal.SetCount(list410, num); - Span span410 = CollectionsMarshal.AsSpan(list410); - index = 0; - span410[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list410)[0] = "JerryWester"; questRoot50.Author = list410; - index = 3; - List list411 = new List(index); - CollectionsMarshal.SetCount(list411, index); - Span span411 = CollectionsMarshal.AsSpan(list411); - num = 0; - ref QuestSequence reference302 = ref span411[num]; + num = 3; + List list411 = new List(num); + CollectionsMarshal.SetCount(list411, num); + Span span166 = CollectionsMarshal.AsSpan(list411); + ref QuestSequence reference302 = ref span166[0]; QuestSequence obj260 = new QuestSequence { Sequence = 0 @@ -198929,9 +165050,7 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span412[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) + CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -198944,18 +165063,16 @@ public static class AssemblyQuestLoader }; obj260.Steps = list412; reference302 = obj260; - num++; - ref QuestSequence reference303 = ref span411[num]; + ref QuestSequence reference303 = ref span166[1]; QuestSequence obj261 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list413 = new List(index2); - CollectionsMarshal.SetCount(list413, index2); - Span span413 = CollectionsMarshal.AsSpan(list413); - num2 = 0; - ref QuestStep reference304 = ref span413[num2]; + num2 = 4; + List list413 = new List(num2); + CollectionsMarshal.SetCount(list413, num2); + Span span167 = CollectionsMarshal.AsSpan(list413); + ref QuestStep reference304 = ref span167[0]; QuestStep obj262 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { TargetTerritoryId = (ushort)620 @@ -198965,32 +165082,25 @@ public static class AssemblyQuestLoader num3 = 1; List list414 = new List(num3); CollectionsMarshal.SetCount(list414, num3); - Span span414 = CollectionsMarshal.AsSpan(list414); - num4 = 0; - span414[num4] = 620; + CollectionsMarshal.AsSpan(list414)[0] = 620; skipStepConditions2.InTerritory = list414; - num4 = 1; - List list415 = new List(num4); - CollectionsMarshal.SetCount(list415, num4); - Span span415 = CollectionsMarshal.AsSpan(list415); - num3 = 0; - span415[num3] = new QuestId(2860); + num3 = 1; + List list415 = new List(num3); + CollectionsMarshal.SetCount(list415, num3); + CollectionsMarshal.AsSpan(list415)[0] = new QuestId(2860); skipStepConditions2.QuestsCompleted = list415; skipConditions2.StepIf = skipStepConditions2; obj262.SkipConditions = skipConditions2; reference304 = obj262; - num2++; - span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620) + span167[1] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620) { PickUpQuestId = new QuestId(2851) }; - num2++; - span413[num2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620) + span167[2] = new QuestStep(EInteractionType.AcceptQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620) { PickUpQuestId = new QuestId(2860) }; - num2++; - ref QuestStep reference305 = ref span413[num2]; + ref QuestStep reference305 = ref span167[3]; QuestStep obj263 = new QuestStep(EInteractionType.SinglePlayerDuty, 1021705u, new Vector3(-649.897f, 50.00002f, -1.9990234f), 621) { StopDistance = 7f, @@ -199000,16 +165110,13 @@ public static class AssemblyQuestLoader num3 = 1; List list416 = new List(num3); CollectionsMarshal.SetCount(list416, num3); - Span span416 = CollectionsMarshal.AsSpan(list416); - num4 = 0; - span416[num4] = "Navigation gets stuck in various places"; + CollectionsMarshal.AsSpan(list416)[0] = "Navigation gets stuck in various places"; singlePlayerDutyOptions.Notes = list416; obj263.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference305 = obj263; obj261.Steps = list413; reference303 = obj261; - num++; - ref QuestSequence reference306 = ref span411[num]; + ref QuestSequence reference306 = ref span166[2]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -199017,9 +165124,7 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - Span span417 = CollectionsMarshal.AsSpan(list417); - index2 = 0; - span417[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) + CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) { StopDistance = 5f }; @@ -199036,16 +165141,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -199053,45 +165155,37 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021710u, new Vector3(66.544556f, 45.410225f, 766.47595f), 621) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818170u }; - num2++; - span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.08614f, 42.177456f, 772.668f), 621) + span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(93.08614f, 42.177456f, 772.668f), 621) { Mount = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.00177f, 45.410225f, 755.10895f), 621) + span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(75.00177f, 45.410225f, 755.10895f), 621) { DisableNavmesh = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1021712u, new Vector3(210.98645f, -0.3f, 340.3219f), 621); + span2[3] = new QuestStep(EInteractionType.Interact, 1021712u, new Vector3(210.98645f, -0.3f, 340.3219f), 621); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -199099,44 +165193,37 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(195.84085f, -0.6f, 315.3333f), 621) + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(195.84085f, -0.6f, 315.3333f), 621) { StopDistance = 0.25f }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Interact, 1021714u, new Vector3(317.03674f, -94.16345f, 350.91174f), 621); + span3[1] = new QuestStep(EInteractionType.Interact, 1021714u, new Vector3(317.03674f, -94.16345f, 350.91174f), 621); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f, RestartNavigationIfCancelled = false }; - num2++; - span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.8843f, 0f, 468.1183f), 621) + span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(515.8843f, 0f, 468.1183f), 621) { StopDistance = 0.25f, DisableNavmesh = true }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); + span4[2] = new QuestStep(EInteractionType.Interact, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -199144,9 +165231,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - ref QuestStep reference6 = ref span7[index2]; + ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; QuestStep questStep = new QuestStep(EInteractionType.SinglePlayerDuty, 1021716u, new Vector3(675.95935f, 60f, 460.34937f), 621); SinglePlayerDutyOptions obj6 = new SinglePlayerDutyOptions { @@ -199155,31 +165240,25 @@ public static class AssemblyQuestLoader int num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span8 = CollectionsMarshal.AsSpan(list8); - int index3 = 0; - span8[index3] = "(Fordola) Gets hit by AOEs due to moving into them before the mechanic resolves"; + CollectionsMarshal.AsSpan(list8)[0] = "(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; - num++; - span2[num] = new QuestSequence + span[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[6]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj7.Steps = list9; reference7 = obj7; questRoot.QuestSequence = list2; @@ -199189,16 +165268,13 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list10)[0] = "JerryWester"; questRoot2.Author = list10; - index = 6; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference8 = ref span11[num]; + num = 6; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span5 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference8 = ref span5[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -199206,37 +165282,30 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021717u, new Vector3(756.9542f, 70f, 445.45654f), 621); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span11[num]; + ref QuestSequence reference9 = ref span5[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818172u }; - num2++; - span13[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) + span6[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 621) { Aetheryte = EAetheryteLocation.LochsAlaMhiganQuarter }; - num2++; - span13[num2] = new QuestStep(EInteractionType.Interact, 1022733u, new Vector3(643.67126f, 80f, 654.16943f), 621); + span6[2] = new QuestStep(EInteractionType.Interact, 1022733u, new Vector3(643.67126f, 80f, 654.16943f), 621); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span11[num]; + ref QuestSequence reference10 = ref span5[2]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -199244,35 +165313,29 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-672.0402f, 49.99975f, 15.600315f), 621) + Span span7 = CollectionsMarshal.AsSpan(list14); + span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-672.0402f, 49.99975f, 15.600315f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - index2++; - span14[index2] = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); + span7[1] = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621); obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span11[num]; + ref QuestSequence reference11 = ref span5[3]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span11[num]; + ref QuestSequence reference12 = ref span5[4]; QuestSequence obj12 = new QuestSequence { Sequence = 4 @@ -199280,84 +165343,60 @@ public static class AssemblyQuestLoader num2 = 3; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - ref QuestStep reference13 = ref span16[index2]; + Span span8 = CollectionsMarshal.AsSpan(list16); + ref QuestStep reference13 = ref span8[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1021703u, new Vector3(-631.4946f, 53.75f, 13.717773f), 621); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list17; reference13 = questStep2; - index2++; - ref QuestStep reference14 = ref span16[index2]; + ref QuestStep reference14 = ref span8[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list18; reference14 = questStep3; - index2++; - ref QuestStep reference15 = ref span16[index2]; + ref QuestStep reference15 = ref span8[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1021702u, new Vector3(-589.9901f, 33.999954f, -4.043701f), 621); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list19; reference15 = questStep4; obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference16 = ref span11[num]; + ref QuestSequence reference16 = ref span5[5]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj13.Steps = list20; reference16 = obj13; questRoot2.QuestSequence = list11; @@ -199367,16 +165406,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; questRoot3.Author = list21; - index = 5; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference17 = ref span22[num]; + num = 5; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span12 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference17 = ref span12[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -199384,9 +165420,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -199399,47 +165433,39 @@ public static class AssemblyQuestLoader }; obj14.Steps = list23; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span22[num]; + ref QuestSequence reference18 = ref span12[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(2881) }; - num2++; - span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) + span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1022992u, new Vector3(-506.6148f, 8.7f, -40.299072f), 621) { PickUpQuestId = new QuestId(2877) }; - num2++; - span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + span13[2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { PickUpQuestId = new QuestId(2880) }; - num2++; - span24[num2] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + span13[3] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { PickUpQuestId = new QuestId(2883) }; - num2++; - span24[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007993u, new Vector3(261.5243f, 78.3855f, 69.93213f), 621) + span13[4] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2007993u, new Vector3(261.5243f, 78.3855f, 69.93213f), 621) { AetherCurrentId = 2818171u }; - num2++; - span24[num2] = new QuestStep(EInteractionType.Interact, 1021722u, new Vector3(336.04932f, 78.00011f, 44.022217f), 621); + span13[5] = new QuestStep(EInteractionType.Interact, 1021722u, new Vector3(336.04932f, 78.00011f, 44.022217f), 621); obj15.Steps = list24; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span22[num]; + ref QuestSequence reference19 = ref span12[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -199447,9 +165473,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022738u, new Vector3(509.60547f, 111.16203f, -107.133606f), 621) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022738u, new Vector3(509.60547f, 111.16203f, -107.133606f), 621) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -199458,25 +165482,20 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - num++; - ref QuestSequence reference20 = ref span22[num]; + ref QuestSequence reference20 = ref span12[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list26 = new List(index2); - CollectionsMarshal.SetCount(list26, index2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num2 = 0; - ref QuestStep reference21 = ref span26[num2]; + num2 = 1; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list26)[0]; 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); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - span27[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA705_02552_Q1_000_075"), @@ -199486,8 +165505,7 @@ public static class AssemblyQuestLoader reference21 = questStep5; obj17.Steps = list26; reference20 = obj17; - num++; - ref QuestSequence reference22 = ref span22[num]; + ref QuestSequence reference22 = ref span12[4]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -199495,9 +165513,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021724u, new Vector3(560.0519f, 162f, 72.28198f), 621); obj18.Steps = list28; reference22 = obj18; questRoot3.QuestSequence = list22; @@ -199507,30 +165523,24 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot4.Author = list29; - index = 9; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference23 = ref span30[num]; + num = 9; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span14 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference23 = ref span14[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj19.Steps = list31; reference23 = obj19; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span14[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -199538,9 +165548,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Duty, null, null, 621) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -199549,23 +165557,19 @@ public static class AssemblyQuestLoader }; obj20.Steps = list32; reference24 = obj20; - num++; - span30[num] = new QuestSequence + span14[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference25 = ref span30[num]; + ref QuestSequence reference25 = ref span14[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -199574,13 +165578,11 @@ public static class AssemblyQuestLoader }; obj21.Steps = list33; reference25 = obj21; - num++; - span30[num] = new QuestSequence + span14[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span14[5]; QuestSequence obj22 = new QuestSequence { Sequence = 5 @@ -199588,47 +165590,36 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621) { StopDistance = 7f }; obj22.Steps = list34; reference26 = obj22; - num++; - ref QuestSequence reference27 = ref span30[num]; + ref QuestSequence reference27 = ref span14[6]; QuestSequence obj23 = new QuestSequence { Sequence = 6 }; - index2 = 5; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref QuestStep reference28 = ref span35[num2]; + num2 = 5; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span15 = CollectionsMarshal.AsSpan(list35); + ref QuestStep reference28 = ref span15[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1021726u, new Vector3(-615.198f, 34.00002f, -7.1870728f), 621); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list36; reference28 = questStep6; - num2++; - ref QuestStep reference29 = ref span35[num2]; + ref QuestStep reference29 = ref span15[1]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1021704u, new Vector3(-651.51447f, 50.000015f, -3.1281738f), 621) { StopDistance = 1f @@ -199636,49 +165627,34 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - 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); + 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); obj24.CompletionQuestVariablesFlags = list37; reference29 = obj24; - num2++; - ref QuestStep reference30 = ref span35[num2]; + ref QuestStep reference30 = ref span15[2]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1022724u, new Vector3(-650.3243f, 50.00002f, 0.869751f), 621) { StopDistance = 7f }; - 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); + 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); obj25.CompletionQuestVariablesFlags = list38; reference30 = obj25; - num2++; - span35[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-668.1697f, 49.99959f, 10.722498f), 621); - num2++; - ref QuestStep reference31 = ref span35[num2]; + span15[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-668.1697f, 49.99959f, 10.722498f), 621); + ref QuestStep reference31 = ref span15[4]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1021698u, new Vector3(-672.694f, 49.999725f, 14.999573f), 621) { StopDistance = 7f @@ -199686,25 +165662,18 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - 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); + 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); obj26.CompletionQuestVariablesFlags = list39; reference31 = obj26; obj23.Steps = list35; reference27 = obj23; - num++; - ref QuestSequence reference32 = ref span30[num]; + ref QuestSequence reference32 = ref span14[7]; QuestSequence obj27 = new QuestSequence { Sequence = 7 @@ -199712,23 +165681,18 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1020356u, new Vector3(-584.4968f, 21.62428f, -11.947815f), 621); obj27.Steps = list40; reference32 = obj27; - num++; - ref QuestSequence reference33 = ref span30[num]; + ref QuestSequence reference33 = ref span14[8]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj28.Steps = list41; reference33 = obj28; questRoot4.QuestSequence = list30; @@ -199738,16 +165702,13 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot5.Author = list42; - index = 3; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference34 = ref span43[num]; + num = 3; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span20 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference34 = ref span20[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -199755,9 +165716,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021829u, new Vector3(-98.435974f, 4f, -104.997375f), 130) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021829u, new Vector3(-98.435974f, 4f, -104.997375f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -199770,18 +165729,15 @@ public static class AssemblyQuestLoader }; obj29.Steps = list44; reference34 = obj29; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span20[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -199791,8 +165747,7 @@ public static class AssemblyQuestLoader }; obj30.Steps = list45; reference35 = obj30; - num++; - ref QuestSequence reference36 = ref span43[num]; + ref QuestSequence reference36 = ref span20[2]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -199800,9 +165755,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021834u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021834u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { NextQuestId = new QuestId(2560) }; @@ -199815,26 +165768,22 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "liza"; + CollectionsMarshal.AsSpan(list47)[0] = "liza"; questRoot6.Author = list47; - index = 4; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference37 = ref span48[num]; + num = 4; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span21 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference37 = ref span21[0]; QuestSequence obj32 = new QuestSequence { Sequence = 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]; + num2 = 4; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + Span span22 = CollectionsMarshal.AsSpan(list49); + ref QuestStep reference38 = ref span22[0]; QuestStep obj33 = new QuestStep(EInteractionType.EquipItem, null, null, 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -199859,18 +165808,15 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list50 = new List(index3); - CollectionsMarshal.SetCount(list50, index3); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = 131; + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = 131; obj35.InTerritory = list50; obj34.AetheryteShortcutIf = obj35; obj33.SkipConditions = obj34; reference38 = obj33; - num2++; - span49[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) + span22[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { ItemId = 20620u, SkipConditions = new SkipConditions @@ -199884,14 +165830,11 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj32.Steps = list49; reference37 = obj32; - num++; - ref QuestSequence reference39 = ref span48[num]; + ref QuestSequence reference39 = ref span21[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -199899,23 +165842,18 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131); obj36.Steps = list51; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span48[num]; + ref QuestSequence reference40 = ref span21[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference41 = ref span52[num2]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1023637u, new Vector3(-89.28058f, 2.150006f, 59.739014f), 131) { StopDistance = 5f @@ -199923,9 +165861,7 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM501_02560_Q1_000_035") @@ -199934,8 +165870,7 @@ public static class AssemblyQuestLoader reference41 = obj38; obj37.Steps = list52; reference40 = obj37; - num++; - ref QuestSequence reference42 = ref span48[num]; + ref QuestSequence reference42 = ref span21[3]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -199943,9 +165878,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021835u, new Vector3(35.66028f, 6.9999986f, -82.993835f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -199964,26 +165897,21 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot7.Author = list55; - index = 8; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference43 = ref span56[num]; + num = 8; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span23 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference43 = ref span23[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -200001,8 +165929,7 @@ public static class AssemblyQuestLoader }; obj40.Steps = list57; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span56[num]; + ref QuestSequence reference44 = ref span23[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 @@ -200010,9 +165937,8 @@ public static class AssemblyQuestLoader num2 = 4; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.90921f, 4.650242f, 238.56398f), 141) + Span span24 = CollectionsMarshal.AsSpan(list58); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.90921f, 4.650242f, 238.56398f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -200021,87 +165947,62 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - index2++; - ref QuestStep reference45 = ref span58[index2]; + ref QuestStep reference45 = ref span24[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1021843u, new Vector3(-164.3855f, 4.2354193f, 234.36328f), 141); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list59; reference45 = questStep7; - index2++; - ref QuestStep reference46 = ref span58[index2]; + ref QuestStep reference46 = ref span24[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list60; reference46 = questStep8; - index2++; - ref QuestStep reference47 = ref span58[index2]; + ref QuestStep reference47 = ref span24[3]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1021845u, new Vector3(-138.59778f, 4.211028f, 223.95667f), 141); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list61; reference47 = questStep9; obj41.Steps = list58; reference44 = obj41; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span23[2]; QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj42.Steps = list62; reference48 = obj42; - num++; - ref QuestSequence reference49 = ref span56[num]; + ref QuestSequence reference49 = ref span23[3]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -200109,30 +166010,24 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1022092u, new Vector3(-132.31104f, 3.9113228f, 221.20996f), 141); + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1022092u, new Vector3(-132.31104f, 3.9113228f, 221.20996f), 141); obj43.Steps = list63; reference49 = obj43; - num++; - ref QuestSequence reference50 = ref span56[num]; + ref QuestSequence reference50 = ref span23[4]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj44.Steps = list64; reference50 = obj44; - num++; - ref QuestSequence reference51 = ref span56[num]; + ref QuestSequence reference51 = ref span23[5]; QuestSequence obj45 = new QuestSequence { Sequence = 5 @@ -200140,9 +166035,7 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference52 = ref span65[index2]; + ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, null, new Vector3(101.36345f, 1.4716027f, 356.92258f), 141) { StopDistance = 0.5f, @@ -200151,32 +166044,26 @@ public static class AssemblyQuestLoader num3 = 1; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - Span span66 = CollectionsMarshal.AsSpan(list66); - index3 = 0; - span66[index3] = 7237u; + CollectionsMarshal.AsSpan(list66)[0] = 7237u; obj46.KillEnemyDataIds = list66; reference52 = obj46; obj45.Steps = list65; reference51 = obj45; - num++; - ref QuestSequence reference53 = ref span56[num]; + ref QuestSequence reference53 = ref span23[6]; QuestSequence obj47 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj47.Steps = list67; reference53 = obj47; - num++; - ref QuestSequence reference54 = ref span56[num]; + ref QuestSequence reference54 = ref span23[7]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -200184,9 +166071,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -200205,26 +166090,21 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot8.Author = list69; - index = 7; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference55 = ref span70[num]; + num = 7; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span28 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference55 = ref span28[0]; QuestSequence obj49 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list71 = new List(num2); + CollectionsMarshal.SetCount(list71, num2); + ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list71)[0]; QuestStep obj50 = new QuestStep(EInteractionType.AcceptQuest, 1021858u, new Vector3(9.536865f, 40.00023f, -15.213318f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -200239,20 +166119,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list72 = new List(index3); - CollectionsMarshal.SetCount(list72, index3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = 128; + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = 128; obj51.InTerritory = list72; skipConditions.AetheryteShortcutIf = obj51; obj50.SkipConditions = skipConditions; reference56 = obj50; obj49.Steps = list71; reference55 = obj49; - num++; - ref QuestSequence reference57 = ref span70[num]; + ref QuestSequence reference57 = ref span28[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -200260,9 +166137,8 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - ref QuestStep reference58 = ref span73[index2]; + Span span29 = CollectionsMarshal.AsSpan(list73); + ref QuestStep reference58 = ref span29[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129) { AethernetShortcut = new AethernetShortcut @@ -200274,81 +166150,57 @@ public static class AssemblyQuestLoader num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - 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); + 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); obj53.CompletionQuestVariablesFlags = list74; reference58 = obj53; - index2++; - ref QuestStep reference59 = ref span73[index2]; + ref QuestStep reference59 = ref span29[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list75; reference59 = questStep10; - index2++; - ref QuestStep reference60 = ref span73[index2]; + ref QuestStep reference60 = ref span29[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list76; reference60 = questStep11; obj52.Steps = list73; reference57 = obj52; - num++; - ref QuestSequence reference61 = ref span70[num]; + ref QuestSequence reference61 = ref span28[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj54.Steps = list77; reference61 = obj54; - num++; - ref QuestSequence reference62 = ref span70[num]; + ref QuestSequence reference62 = ref span28[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -200356,9 +166208,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1021862u, new Vector3(-176.62323f, 4f, 181.65857f), 129) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1021862u, new Vector3(-176.62323f, 4f, 181.65857f), 129) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -200369,26 +166219,22 @@ public static class AssemblyQuestLoader }; obj55.Steps = list78; reference62 = obj55; - num++; - ref QuestSequence reference63 = ref span70[num]; + ref QuestSequence reference63 = ref span28[4]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj56.Steps = list79; reference63 = obj56; - num++; - ref QuestSequence reference64 = ref span70[num]; + ref QuestSequence reference64 = ref span28[5]; QuestSequence obj57 = new QuestSequence { Sequence = 5 @@ -200396,26 +166242,21 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021866u, new Vector3(673.54834f, 11.594437f, 390.7378f), 137) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021866u, new Vector3(673.54834f, 11.594437f, 390.7378f), 137) { Fly = true }; obj57.Steps = list80; reference64 = obj57; - num++; - ref QuestSequence reference65 = ref span70[num]; + ref QuestSequence reference65 = ref span28[6]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 1.5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -200430,16 +166271,13 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "liza"; + CollectionsMarshal.AsSpan(list82)[0] = "liza"; questRoot9.Author = list82; - index = 9; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference66 = ref span83[num]; + num = 9; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span33 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference66 = ref span33[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -200447,9 +166285,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021869u, new Vector3(43.259277f, -8f, 99.19885f), 132) { StopDistance = 1.5f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -200463,83 +166299,60 @@ public static class AssemblyQuestLoader }; obj59.Steps = list84; reference66 = obj59; - num++; - ref QuestSequence reference67 = ref span83[num]; + ref QuestSequence reference67 = ref span33[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference68 = ref span85[num2]; + num2 = 3; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + Span span34 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference68 = ref span34[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1000146u, new Vector3(49.79016f, -1.4669685f, 51.743286f), 132); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list86; reference68 = questStep12; - num2++; - ref QuestStep reference69 = ref span85[num2]; + ref QuestStep reference69 = ref span34[1]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list87; reference69 = questStep13; - num2++; - ref QuestStep reference70 = ref span85[num2]; + ref QuestStep reference70 = ref span34[2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1001276u, new Vector3(13.961914f, 0.1373291f, 2.090454f), 132); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list88; reference70 = questStep14; obj60.Steps = list85; reference67 = obj60; - num++; - ref QuestSequence reference71 = ref span83[num]; + ref QuestSequence reference71 = ref span33[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -200547,27 +166360,21 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1021871u, new Vector3(-17.929382f, -3.5175722f, 8.895996f), 132); + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1021871u, new Vector3(-17.929382f, -3.5175722f, 8.895996f), 132); obj61.Steps = list89; reference71 = obj61; - num++; - ref QuestSequence reference72 = ref span83[num]; + ref QuestSequence reference72 = ref span33[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj62.Steps = list90; reference72 = obj62; - num++; - ref QuestSequence reference73 = ref span83[num]; + ref QuestSequence reference73 = ref span33[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -200575,9 +166382,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - ref QuestStep reference74 = ref span91[index2]; + ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list91)[0]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(16.415976f, -13.3742895f, 13.173157f), 154) { StopDistance = 0.5f, @@ -200588,31 +166393,25 @@ public static class AssemblyQuestLoader num3 = 2; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span92 = CollectionsMarshal.AsSpan(list92); - index3 = 0; - span92[index3] = 7492u; - index3++; - span92[index3] = 7493u; + Span span38 = CollectionsMarshal.AsSpan(list92); + span38[0] = 7492u; + span38[1] = 7493u; obj64.KillEnemyDataIds = list92; reference74 = obj64; obj63.Steps = list91; reference73 = obj63; - num++; - ref QuestSequence reference75 = ref span83[num]; + ref QuestSequence reference75 = ref span33[5]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj65.Steps = list93; reference75 = obj65; - num++; - ref QuestSequence reference76 = ref span83[num]; + ref QuestSequence reference76 = ref span33[6]; QuestSequence obj66 = new QuestSequence { Sequence = 6 @@ -200620,27 +166419,21 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1021877u, new Vector3(72.03784f, -13.573448f, -6.790344f), 154); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1021877u, new Vector3(72.03784f, -13.573448f, -6.790344f), 154); obj66.Steps = list94; reference76 = obj66; - num++; - ref QuestSequence reference77 = ref span83[num]; + ref QuestSequence reference77 = ref span33[7]; QuestSequence obj67 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj67.Steps = list95; reference77 = obj67; - num++; - ref QuestSequence reference78 = ref span83[num]; + ref QuestSequence reference78 = ref span33[8]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -200648,9 +166441,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021878u, new Vector3(112.41321f, 3.6299734f, 62.302612f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -200669,26 +166460,21 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot10.Author = list97; - index = 8; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference79 = ref span98[num]; + num = 8; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span39 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference79 = ref span39[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -200706,8 +166492,7 @@ public static class AssemblyQuestLoader }; obj69.Steps = list99; reference79 = obj69; - num++; - ref QuestSequence reference80 = ref span98[num]; + ref QuestSequence reference80 = ref span39[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -200715,97 +166500,70 @@ public static class AssemblyQuestLoader num2 = 5; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - ref QuestStep reference81 = ref span100[index2]; + ref QuestStep reference81 = ref span40[2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1021882u, new Vector3(104.29541f, -20.020874f, 60.624023f), 418); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list101; reference81 = questStep15; - index2++; - ref QuestStep reference82 = ref span100[index2]; + ref QuestStep reference82 = ref span40[3]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list102; reference82 = questStep16; - index2++; - ref QuestStep reference83 = ref span100[index2]; + ref QuestStep reference83 = ref span40[4]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1021884u, new Vector3(20.645447f, -12.020878f, 37.79651f), 418); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list103; reference83 = questStep17; obj70.Steps = list100; reference80 = obj70; - num++; - ref QuestSequence reference84 = ref span98[num]; + ref QuestSequence reference84 = ref span39[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj71.Steps = list104; reference84 = obj71; - num++; - ref QuestSequence reference85 = ref span98[num]; + ref QuestSequence reference85 = ref span39[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -200813,23 +166571,18 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1022094u, new Vector3(110.27698f, -20.000004f, 69.93213f), 418); + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1022094u, new Vector3(110.27698f, -20.000004f, 69.93213f), 418); obj72.Steps = list105; reference85 = obj72; - num++; - ref QuestSequence reference86 = ref span98[num]; + ref QuestSequence reference86 = ref span39[4]; QuestSequence obj73 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -200840,8 +166593,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list106; reference86 = obj73; - num++; - ref QuestSequence reference87 = ref span98[num]; + ref QuestSequence reference87 = ref span39[5]; QuestSequence obj74 = new QuestSequence { Sequence = 5 @@ -200849,9 +166601,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - ref QuestStep reference88 = ref span107[index2]; + ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list107)[0]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, null, new Vector3(360.62927f, 161.10802f, 27.17857f), 397) { StopDistance = 0.5f, @@ -200862,31 +166612,25 @@ public static class AssemblyQuestLoader num3 = 2; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - index3 = 0; - span108[index3] = 7237u; - index3++; - span108[index3] = 7494u; + Span span45 = CollectionsMarshal.AsSpan(list108); + span45[0] = 7237u; + span45[1] = 7494u; obj75.KillEnemyDataIds = list108; reference88 = obj75; obj74.Steps = list107; reference87 = obj74; - num++; - ref QuestSequence reference89 = ref span98[num]; + ref QuestSequence reference89 = ref span39[6]; QuestSequence obj76 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj76.Steps = list109; reference89 = obj76; - num++; - ref QuestSequence reference90 = ref span98[num]; + ref QuestSequence reference90 = ref span39[7]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -200894,9 +166638,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021879u, new Vector3(112.50476f, 3.6299736f, 60.837646f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -200915,26 +166657,21 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "liza"; + CollectionsMarshal.AsSpan(list111)[0] = "liza"; questRoot11.Author = list111; - index = 6; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference91 = ref span112[num]; + num = 6; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span46 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference91 = ref span46[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -200952,8 +166689,7 @@ public static class AssemblyQuestLoader }; obj78.Steps = list113; reference91 = obj78; - num++; - ref QuestSequence reference92 = ref span112[num]; + ref QuestSequence reference92 = ref span46[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -200961,27 +166697,21 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 2008327u, new Vector3(59.40332f, 23.971863f, -5.6000977f), 418); + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 2008327u, new Vector3(59.40332f, 23.971863f, -5.6000977f), 418); obj79.Steps = list114; reference92 = obj79; - num++; - ref QuestSequence reference93 = ref span112[num]; + ref QuestSequence reference93 = ref span46[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj80.Steps = list115; reference93 = obj80; - num++; - ref QuestSequence reference94 = ref span112[num]; + ref QuestSequence reference94 = ref span46[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -200989,9 +166719,8 @@ public static class AssemblyQuestLoader num2 = 2; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.55804f, 203.43318f, 680.2831f), 397) + Span span47 = CollectionsMarshal.AsSpan(list116); + span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(465.55804f, 203.43318f, 680.2831f), 397) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, SkipConditions = new SkipConditions @@ -201002,30 +166731,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span116[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021894u, new Vector3(-217.82257f, 112.33306f, -243.94604f), 397) + span47[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021894u, new Vector3(-217.82257f, 112.33306f, -243.94604f), 397) { Fly = true }; obj81.Steps = list116; reference94 = obj81; - num++; - span112[num] = new QuestSequence + span46[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference95 = ref span112[num]; + ref QuestSequence reference95 = ref span46[5]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2566) }; @@ -201038,16 +166762,13 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot12.Author = list118; - index = 6; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference96 = ref span119[num]; + num = 6; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span48 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference96 = ref span48[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -201055,9 +166776,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -201075,22 +166794,18 @@ public static class AssemblyQuestLoader }; obj83.Steps = list120; reference96 = obj83; - num++; - ref QuestSequence reference97 = ref span119[num]; + ref QuestSequence reference97 = ref span48[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj84.Steps = list121; reference97 = obj84; - num++; - ref QuestSequence reference98 = ref span119[num]; + ref QuestSequence reference98 = ref span48[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -201098,9 +166813,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - ref QuestStep reference99 = ref span122[index2]; + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-99.923485f, 49.52189f, 322.85992f), 140) { StopDistance = 0.5f, @@ -201112,35 +166825,29 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list123 = new List(index3); - CollectionsMarshal.SetCount(list123, index3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = 7495u; + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = 7495u; obj86.KillEnemyDataIds = list123; reference99 = obj86; obj85.Steps = list122; reference98 = obj85; - num++; - ref QuestSequence reference100 = ref span119[num]; + ref QuestSequence reference100 = ref span48[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj87.Steps = list124; reference100 = obj87; - num++; - ref QuestSequence reference101 = ref span119[num]; + ref QuestSequence reference101 = ref span48[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -201148,26 +166855,21 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) { Fly = true }; obj88.Steps = list125; reference101 = obj88; - num++; - ref QuestSequence reference102 = ref span119[num]; + ref QuestSequence reference102 = ref span48[5]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -201186,16 +166888,13 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = "liza"; + CollectionsMarshal.AsSpan(list127)[0] = "liza"; questRoot13.Author = list127; - index = 5; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref QuestSequence reference103 = ref span128[num]; + num = 5; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + Span span49 = CollectionsMarshal.AsSpan(list128); + ref QuestSequence reference103 = ref span49[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -201203,9 +166902,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021836u, new Vector3(36.850464f, 6.999999f, -83.78735f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -201223,18 +166920,15 @@ public static class AssemblyQuestLoader }; obj90.Steps = list129; reference103 = obj90; - num++; - ref QuestSequence reference104 = ref span128[num]; + ref QuestSequence reference104 = ref span49[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -201245,8 +166939,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list130; reference104 = obj91; - num++; - ref QuestSequence reference105 = ref span128[num]; + ref QuestSequence reference105 = ref span49[2]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -201254,16 +166947,14 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) + Span span50 = CollectionsMarshal.AsSpan(list131); + span50[0] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) { TargetTerritoryId = (ushort)613, Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - index2++; - ref QuestStep reference106 = ref span131[index2]; + ref QuestStep reference106 = ref span50[1]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(568.7077f, 0.73303545f, 754.9407f), 613) { StopDistance = 0.5f, @@ -201273,29 +166964,23 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span132 = CollectionsMarshal.AsSpan(list132); - index3 = 0; - span132[index3] = 7496u; + CollectionsMarshal.AsSpan(list132)[0] = 7496u; obj93.KillEnemyDataIds = list132; reference106 = obj93; obj92.Steps = list131; reference105 = obj92; - num++; - ref QuestSequence reference107 = ref span128[num]; + ref QuestSequence reference107 = ref span49[3]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj94.Steps = list133; reference107 = obj94; - num++; - ref QuestSequence reference108 = ref span128[num]; + ref QuestSequence reference108 = ref span49[4]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -201303,9 +166988,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - ref QuestStep reference109 = ref span134[index2]; + ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list134)[0]; QuestStep obj96 = new QuestStep(EInteractionType.CompleteQuest, 1022190u, new Vector3(128.61829f, 15f, -158.03778f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -201315,12 +166998,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeSekiseigumiBarracks } }; - index3 = 1; - List list135 = new List(index3); - CollectionsMarshal.SetCount(list135, index3); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = new DialogueChoice + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM630_02567_Q1_000_054") @@ -201337,26 +167018,21 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "liza"; + CollectionsMarshal.AsSpan(list136)[0] = "liza"; questRoot14.Author = list136; - index = 8; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference110 = ref span137[num]; + num = 8; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span51 = CollectionsMarshal.AsSpan(list137); + ref QuestSequence reference110 = ref span51[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -201374,8 +167050,7 @@ public static class AssemblyQuestLoader }; obj97.Steps = list138; reference110 = obj97; - num++; - ref QuestSequence reference111 = ref span137[num]; + ref QuestSequence reference111 = ref span51[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -201383,9 +167058,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 2008439u, new Vector3(-100.87744f, -6.0273438f, 67.03284f), 628) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 2008439u, new Vector3(-100.87744f, -6.0273438f, 67.03284f), 628) { AethernetShortcut = new AethernetShortcut { @@ -201395,22 +167068,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list139; reference111 = obj98; - num++; - ref QuestSequence reference112 = ref span137[num]; + ref QuestSequence reference112 = ref span51[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj99.Steps = list140; reference112 = obj99; - num++; - ref QuestSequence reference113 = ref span137[num]; + ref QuestSequence reference113 = ref span51[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -201418,27 +167087,21 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.Interact, 2008441u, new Vector3(-140.33728f, -7.0039062f, 72.739746f), 628); + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Interact, 2008441u, new Vector3(-140.33728f, -7.0039062f, 72.739746f), 628); obj100.Steps = list141; reference113 = obj100; - num++; - ref QuestSequence reference114 = ref span137[num]; + ref QuestSequence reference114 = ref span51[4]; QuestSequence obj101 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj101.Steps = list142; reference114 = obj101; - num++; - ref QuestSequence reference115 = ref span137[num]; + ref QuestSequence reference115 = ref span51[5]; QuestSequence obj102 = new QuestSequence { Sequence = 5 @@ -201446,9 +167109,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1022197u, new Vector3(46.219482f, 8.02f, 144.79285f), 628) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1022197u, new Vector3(46.219482f, 8.02f, 144.79285f), 628) { AethernetShortcut = new AethernetShortcut { @@ -201458,18 +167119,15 @@ public static class AssemblyQuestLoader }; obj102.Steps = list143; reference115 = obj102; - num++; - ref QuestSequence reference116 = ref span137[num]; + ref QuestSequence reference116 = ref span51[6]; QuestSequence obj103 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -201479,8 +167137,7 @@ public static class AssemblyQuestLoader }; obj103.Steps = list144; reference116 = obj103; - num++; - ref QuestSequence reference117 = ref span137[num]; + ref QuestSequence reference117 = ref span51[7]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -201488,9 +167145,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022203u, new Vector3(128.55725f, 15f, -158.09875f), 628) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022203u, new Vector3(128.55725f, 15f, -158.09875f), 628) { NextQuestId = new QuestId(2569) }; @@ -201503,26 +167158,21 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "liza"; + CollectionsMarshal.AsSpan(list146)[0] = "liza"; questRoot15.Author = list146; - index = 8; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference118 = ref span147[num]; + num = 8; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span52 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference118 = ref span52[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -201541,8 +167191,7 @@ public static class AssemblyQuestLoader }; obj105.Steps = list148; reference118 = obj105; - num++; - ref QuestSequence reference119 = ref span147[num]; + ref QuestSequence reference119 = ref span52[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -201550,27 +167199,22 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.Interact, 1022204u, new Vector3(537.01074f, 70.39123f, 25.375732f), 614) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1022204u, new Vector3(537.01074f, 70.39123f, 25.375732f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj106.Steps = list149; reference119 = obj106; - num++; - ref QuestSequence reference120 = ref span147[num]; + ref QuestSequence reference120 = ref span52[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list150 = new List(index2); - CollectionsMarshal.SetCount(list150, index2); - Span span150 = CollectionsMarshal.AsSpan(list150); - num2 = 0; - ref QuestStep reference121 = ref span150[num2]; + num2 = 1; + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list150)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2008443u, new Vector3(255.02393f, 7.7667847f, 458.5182f), 614) { Fly = true, @@ -201579,15 +167223,12 @@ public static class AssemblyQuestLoader num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - index3 = 0; - span151[index3] = 7497u; + CollectionsMarshal.AsSpan(list151)[0] = 7497u; obj108.KillEnemyDataIds = list151; reference121 = obj108; obj107.Steps = list150; reference120 = obj107; - num++; - ref QuestSequence reference122 = ref span147[num]; + ref QuestSequence reference122 = ref span52[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -201595,36 +167236,29 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - ref QuestStep reference123 = ref span152[index2]; + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list152)[0]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2008444u, new Vector3(152.57495f, 13.626221f, 425.55872f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list153 = new List(index3); - CollectionsMarshal.SetCount(list153, index3); - Span span153 = CollectionsMarshal.AsSpan(list153); - num3 = 0; - span153[num3] = 7498u; + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + CollectionsMarshal.AsSpan(list153)[0] = 7498u; obj110.KillEnemyDataIds = list153; reference123 = obj110; obj109.Steps = list152; reference122 = obj109; - num++; - ref QuestSequence reference124 = ref span147[num]; + ref QuestSequence reference124 = ref span52[4]; QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference125 = ref span154[num2]; + num2 = 1; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list154)[0]; QuestStep obj112 = new QuestStep(EInteractionType.Combat, 2008445u, new Vector3(64.43884f, 10.788086f, 444.23596f), 614) { Fly = true, @@ -201633,15 +167267,12 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = 7496u; + CollectionsMarshal.AsSpan(list155)[0] = 7496u; obj112.KillEnemyDataIds = list155; reference125 = obj112; obj111.Steps = list154; reference124 = obj111; - num++; - ref QuestSequence reference126 = ref span147[num]; + ref QuestSequence reference126 = ref span52[5]; QuestSequence obj113 = new QuestSequence { Sequence = 5 @@ -201649,33 +167280,26 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614) { Fly = true }; obj113.Steps = list156; reference126 = obj113; - num++; - ref QuestSequence reference127 = ref span147[num]; + ref QuestSequence reference127 = ref span52[6]; QuestSequence obj114 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list157 = new List(index2); - CollectionsMarshal.SetCount(list157, index2); - Span span157 = CollectionsMarshal.AsSpan(list157); - num2 = 0; - ref QuestStep reference128 = ref span157[num2]; + num2 = 1; + List list157 = new List(num2); + CollectionsMarshal.SetCount(list157, num2); + ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1022205u, new Vector3(175.2804f, 5.1901503f, 522.33154f), 614); - index3 = 1; - List list158 = new List(index3); - CollectionsMarshal.SetCount(list158, index3); - Span span158 = CollectionsMarshal.AsSpan(list158); - num3 = 0; - span158[num3] = new DialogueChoice + num3 = 1; + List list158 = new List(num3); + CollectionsMarshal.SetCount(list158, num3); + CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBSAM680_02569_Q1_000_041") @@ -201684,8 +167308,7 @@ public static class AssemblyQuestLoader reference128 = questStep18; obj114.Steps = list157; reference127 = obj114; - num++; - ref QuestSequence reference129 = ref span147[num]; + ref QuestSequence reference129 = ref span52[7]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -201693,9 +167316,7 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022184u, new Vector3(129.71692f, 15f, -157.61047f), 628) { NextQuestId = new QuestId(2570) }; @@ -201708,26 +167329,21 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot16.Author = list160; - index = 5; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference130 = ref span161[num]; + num = 5; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span53 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference130 = ref span53[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -201745,8 +167361,7 @@ public static class AssemblyQuestLoader }; obj116.Steps = list162; reference130 = obj116; - num++; - ref QuestSequence reference131 = ref span161[num]; + ref QuestSequence reference131 = ref span53[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -201754,9 +167369,8 @@ public static class AssemblyQuestLoader num2 = 3; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - ref QuestStep reference132 = ref span163[index2]; + Span span54 = CollectionsMarshal.AsSpan(list163); + ref QuestStep reference132 = ref span54[0]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1022208u, new Vector3(14.755432f, -6.558981E-11f, -66.88031f), 628) { AethernetShortcut = new AethernetShortcut @@ -201768,44 +167382,30 @@ public static class AssemblyQuestLoader num3 = 6; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - 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); + 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); obj118.CompletionQuestVariablesFlags = list164; reference132 = obj118; - index2++; - ref QuestStep reference133 = ref span163[index2]; + ref QuestStep reference133 = ref span54[1]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1022207u, new Vector3(-59.861206f, -2.9000297f, -64.805115f), 628); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list165; reference133 = questStep19; - index2++; - ref QuestStep reference134 = ref span163[index2]; + ref QuestStep reference134 = ref span54[2]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1022209u, new Vector3(42.648926f, 4.0000005f, 54.97815f), 628) { AethernetShortcut = new AethernetShortcut @@ -201817,35 +167417,26 @@ public static class AssemblyQuestLoader num3 = 6; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - 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); + 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); obj119.CompletionQuestVariablesFlags = list166; reference134 = obj119; obj117.Steps = list163; reference131 = obj117; - num++; - ref QuestSequence reference135 = ref span161[num]; + ref QuestSequence reference135 = ref span53[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -201855,8 +167446,7 @@ public static class AssemblyQuestLoader }; obj120.Steps = list167; reference135 = obj120; - num++; - ref QuestSequence reference136 = ref span161[num]; + ref QuestSequence reference136 = ref span53[3]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -201864,9 +167454,8 @@ public static class AssemblyQuestLoader num2 = 3; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.33655f, -61.59003f, -166.09608f), 613) + Span span58 = CollectionsMarshal.AsSpan(list168); + span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(541.33655f, -61.59003f, -166.09608f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, SkipConditions = new SkipConditions @@ -201877,8 +167466,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span168[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.0479f, -61.943626f, -147.57167f), 613) + span58[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(545.0479f, -61.943626f, -147.57167f), 613) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -201889,25 +167477,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span168[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022215u, new Vector3(787.19763f, 1.5872339f, 80.03345f), 613) + span58[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022215u, new Vector3(787.19763f, 1.5872339f, 80.03345f), 613) { Fly = true }; obj121.Steps = list168; reference136 = obj121; - num++; - ref QuestSequence reference137 = ref span161[num]; + ref QuestSequence reference137 = ref span53[4]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -201925,16 +167509,13 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "liza"; + CollectionsMarshal.AsSpan(list170)[0] = "liza"; questRoot17.Author = list170; - index = 4; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference138 = ref span171[num]; + num = 4; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span59 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference138 = ref span59[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -201942,9 +167523,7 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - ref QuestStep reference139 = ref span172[index2]; + ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list172)[0]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -201959,21 +167538,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list173 = new List(index3); - CollectionsMarshal.SetCount(list173, index3); - Span span173 = CollectionsMarshal.AsSpan(list173); - num3 = 0; - span173[num3] = 131; + num3 = 1; + List list173 = new List(num3); + CollectionsMarshal.SetCount(list173, num3); + CollectionsMarshal.AsSpan(list173)[0] = 131; obj125.InTerritory = list173; skipConditions2.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions2; num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span174 = CollectionsMarshal.AsSpan(list174); - index3 = 0; - span174[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBPLD601_02571_Q1_000_000"), @@ -201983,22 +167558,18 @@ public static class AssemblyQuestLoader reference139 = obj124; obj123.Steps = list172; reference138 = obj123; - num++; - ref QuestSequence reference140 = ref span171[num]; + ref QuestSequence reference140 = ref span59[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj126.Steps = list175; reference140 = obj126; - num++; - ref QuestSequence reference141 = ref span171[num]; + ref QuestSequence reference141 = ref span59[2]; QuestSequence obj127 = new QuestSequence { Sequence = 2 @@ -202006,9 +167577,8 @@ public static class AssemblyQuestLoader num2 = 5; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - ref QuestStep reference142 = ref span176[index2]; + Span span60 = CollectionsMarshal.AsSpan(list176); + ref QuestStep reference142 = ref span60[0]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1021343u, new Vector3(-75.60846f, 6.9845715f, 6.210388f), 131) { AethernetShortcut = new AethernetShortcut @@ -202017,122 +167587,85 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - 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); + 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); obj128.CompletionQuestVariablesFlags = list177; reference142 = obj128; - index2++; - ref QuestStep reference143 = ref span176[index2]; + ref QuestStep reference143 = ref span60[1]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list178; reference143 = questStep20; - index2++; - ref QuestStep reference144 = ref span176[index2]; + ref QuestStep reference144 = ref span60[2]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1021346u, new Vector3(-96.69641f, 6.9845695f, -9.506409f), 131); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list179; reference144 = questStep21; - index2++; - ref QuestStep reference145 = ref span176[index2]; + ref QuestStep reference145 = ref span60[3]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list180; reference145 = questStep22; - index2++; - ref QuestStep reference146 = ref span176[index2]; + ref QuestStep reference146 = ref span60[4]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1021344u, new Vector3(-96.910095f, 6.984566f, 15.0911255f), 131); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list181; reference146 = questStep23; obj127.Steps = list176; reference141 = obj127; - num++; - ref QuestSequence reference147 = ref span171[num]; + ref QuestSequence reference147 = ref span59[3]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2572) }; @@ -202145,16 +167678,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot18.Author = list183; - index = 6; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference148 = ref span184[num]; + num = 6; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span66 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference148 = ref span66[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -202162,9 +167692,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - ref QuestStep reference149 = ref span185[index2]; + ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list185)[0]; QuestStep obj131 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -202182,31 +167710,25 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = 131; + CollectionsMarshal.AsSpan(list186)[0] = 131; obj132.InTerritory = list186; skipConditions3.AetheryteShortcutIf = obj132; obj131.SkipConditions = skipConditions3; reference149 = obj131; obj130.Steps = list185; reference148 = obj130; - num++; - ref QuestSequence reference150 = ref span184[num]; + ref QuestSequence reference150 = ref span66[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj133.Steps = list187; reference150 = obj133; - num++; - ref QuestSequence reference151 = ref span184[num]; + ref QuestSequence reference151 = ref span66[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -202214,35 +167736,28 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021271u, new Vector3(-87.174866f, 1.9499679f, 57.358643f), 131); obj134.Steps = list188; reference151 = obj134; - num++; - span184[num] = new QuestSequence + span66[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference152 = ref span184[num]; + ref QuestSequence reference152 = ref span66[4]; QuestSequence obj135 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj135.Steps = list189; reference152 = obj135; - num++; - ref QuestSequence reference153 = ref span184[num]; + ref QuestSequence reference153 = ref span66[5]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -202250,9 +167765,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { NextQuestId = new QuestId(2573) }; @@ -202265,26 +167778,21 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "liza"; + CollectionsMarshal.AsSpan(list191)[0] = "liza"; questRoot19.Author = list191; - index = 6; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference154 = ref span192[num]; + num = 6; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span67 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference154 = ref span67[0]; QuestSequence obj137 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + ref QuestStep reference155 = ref CollectionsMarshal.AsSpan(list193)[0]; QuestStep obj138 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -202299,20 +167807,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list194 = new List(index3); - CollectionsMarshal.SetCount(list194, index3); - Span span194 = CollectionsMarshal.AsSpan(list194); - num3 = 0; - span194[num3] = 131; + num3 = 1; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + CollectionsMarshal.AsSpan(list194)[0] = 131; obj139.InTerritory = list194; skipConditions4.AetheryteShortcutIf = obj139; obj138.SkipConditions = skipConditions4; reference155 = obj138; obj137.Steps = list193; reference154 = obj137; - num++; - ref QuestSequence reference156 = ref span192[num]; + ref QuestSequence reference156 = ref span67[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -202320,16 +167825,12 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - ref QuestStep reference157 = ref span195[index2]; + ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list195)[0]; 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); - Span span196 = CollectionsMarshal.AsSpan(list196); - index3 = 0; - span196[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list196)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBPLD650_02573_Q1_000_011") @@ -202338,62 +167839,46 @@ public static class AssemblyQuestLoader reference157 = questStep24; obj140.Steps = list195; reference156 = obj140; - num++; - ref QuestSequence reference158 = ref span192[num]; + ref QuestSequence reference158 = ref span67[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list197 = new List(index2); - CollectionsMarshal.SetCount(list197, index2); - Span span197 = CollectionsMarshal.AsSpan(list197); - num2 = 0; - ref QuestStep reference159 = ref span197[num2]; + num2 = 2; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + Span span68 = CollectionsMarshal.AsSpan(list197); + ref QuestStep reference159 = ref span68[0]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1021365u, new Vector3(-94.010864f, 6.9845667f, 15.548889f), 131); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list198; reference159 = questStep25; - num2++; - ref QuestStep reference160 = ref span197[num2]; + ref QuestStep reference160 = ref span68[1]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list199; reference160 = questStep26; obj141.Steps = list197; reference158 = obj141; - num++; - ref QuestSequence reference161 = ref span192[num]; + ref QuestSequence reference161 = ref span67[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -202401,23 +167886,18 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj142.Steps = list200; reference161 = obj142; - num++; - ref QuestSequence reference162 = ref span192[num]; + ref QuestSequence reference162 = ref span67[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -202427,8 +167907,7 @@ public static class AssemblyQuestLoader }; obj143.Steps = list201; reference162 = obj143; - num++; - ref QuestSequence reference163 = ref span192[num]; + ref QuestSequence reference163 = ref span67[5]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -202436,9 +167915,7 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.CompleteQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AethernetShortcut = new AethernetShortcut { @@ -202456,26 +167933,21 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span203 = CollectionsMarshal.AsSpan(list203); - index = 0; - span203[index] = "liza"; + CollectionsMarshal.AsSpan(list203)[0] = "liza"; questRoot20.Author = list203; - index = 9; - List list204 = new List(index); - CollectionsMarshal.SetCount(list204, index); - Span span204 = CollectionsMarshal.AsSpan(list204); - num = 0; - ref QuestSequence reference164 = ref span204[num]; + num = 9; + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + Span span71 = CollectionsMarshal.AsSpan(list204); + ref QuestSequence reference164 = ref span71[0]; QuestSequence obj145 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list205 = new List(num2); + CollectionsMarshal.SetCount(list205, num2); + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list205)[0]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -202490,20 +167962,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list206 = new List(index3); - CollectionsMarshal.SetCount(list206, index3); - Span span206 = CollectionsMarshal.AsSpan(list206); - num3 = 0; - span206[num3] = 131; + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + CollectionsMarshal.AsSpan(list206)[0] = 131; obj147.InTerritory = list206; skipConditions5.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions5; reference165 = obj146; obj145.Steps = list205; reference164 = obj145; - num++; - ref QuestSequence reference166 = ref span204[num]; + ref QuestSequence reference166 = ref span71[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -202511,27 +167980,21 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131); obj148.Steps = list207; reference166 = obj148; - num++; - ref QuestSequence reference167 = ref span204[num]; + ref QuestSequence reference167 = ref span71[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj149.Steps = list208; reference167 = obj149; - num++; - ref QuestSequence reference168 = ref span204[num]; + ref QuestSequence reference168 = ref span71[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -202539,9 +168002,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.84746f, 7.9209166f, -37.27604f), 131) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.84746f, 7.9209166f, -37.27604f), 131) { RestartNavigationIfCancelled = false, AethernetShortcut = new AethernetShortcut @@ -202552,83 +168013,60 @@ public static class AssemblyQuestLoader }; obj150.Steps = list209; reference168 = obj150; - num++; - ref QuestSequence reference169 = ref span204[num]; + ref QuestSequence reference169 = ref span71[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference170 = ref span210[num2]; + num2 = 3; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span72 = CollectionsMarshal.AsSpan(list210); + ref QuestStep reference170 = ref span72[0]; 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 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); + 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); questStep27.CompletionQuestVariablesFlags = list211; reference170 = questStep27; - num2++; - ref QuestStep reference171 = ref span210[num2]; + ref QuestStep reference171 = ref span72[1]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1021378u, new Vector3(97.45935f, 7.9999995f, -11.947815f), 131); - 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); + 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); questStep28.CompletionQuestVariablesFlags = list212; reference171 = questStep28; - num2++; - ref QuestStep reference172 = ref span210[num2]; + ref QuestStep reference172 = ref span72[2]; 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 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); + 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); questStep29.CompletionQuestVariablesFlags = list213; reference172 = questStep29; obj151.Steps = list210; reference169 = obj151; - num++; - ref QuestSequence reference173 = ref span204[num]; + ref QuestSequence reference173 = ref span71[5]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -202636,9 +168074,7 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Say, 1021381u, new Vector3(138.53662f, 4f, 51.377075f), 131) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Say, 1021381u, new Vector3(138.53662f, 4f, 51.377075f), 131) { ChatMessage = new ChatMessage { @@ -202647,33 +168083,28 @@ public static class AssemblyQuestLoader }; obj152.Steps = list214; reference173 = obj152; - num++; - ref QuestSequence reference174 = ref span204[num]; + ref QuestSequence reference174 = ref span71[6]; QuestSequence obj153 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list215 = new List(index2); - CollectionsMarshal.SetCount(list215, index2); - Span span215 = CollectionsMarshal.AsSpan(list215); - num2 = 0; - ref QuestStep reference175 = ref span215[num2]; + num2 = 2; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + Span span76 = CollectionsMarshal.AsSpan(list215); + ref QuestStep reference175 = ref span76[0]; QuestStep questStep30 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(165.3437f, 4.014847f, 46.210514f), 131); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - index3 = 1; - List list216 = new List(index3); - CollectionsMarshal.SetCount(list216, index3); - Span span216 = CollectionsMarshal.AsSpan(list216); - num3 = 0; - span216[num3] = 141; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + CollectionsMarshal.AsSpan(list216)[0] = 141; skipStepConditions.InTerritory = list216; skipConditions6.StepIf = skipStepConditions; questStep30.SkipConditions = skipConditions6; reference175 = questStep30; - num2++; - ref QuestStep reference176 = ref span215[num2]; + ref QuestStep reference176 = ref span76[1]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 1021382u, new Vector3(282.39868f, 15.414177f, 513.1456f), 141) { Fly = true, @@ -202682,18 +168113,14 @@ public static class AssemblyQuestLoader num3 = 2; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - Span span217 = CollectionsMarshal.AsSpan(list217); - index3 = 0; - span217[index3] = 7237u; - index3++; - span217[index3] = 7238u; + Span span77 = CollectionsMarshal.AsSpan(list217); + span77[0] = 7237u; + span77[1] = 7238u; obj154.KillEnemyDataIds = list217; - index3 = 1; - List list218 = new List(index3); - CollectionsMarshal.SetCount(list218, index3); - Span span218 = CollectionsMarshal.AsSpan(list218); - num3 = 0; - span218[num3] = new DialogueChoice + num3 = 1; + List list218 = new List(num3); + CollectionsMarshal.SetCount(list218, num3); + CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBPLD680_02574_Q1_000_000"), @@ -202703,8 +168130,7 @@ public static class AssemblyQuestLoader reference176 = obj154; obj153.Steps = list215; reference174 = obj153; - num++; - ref QuestSequence reference177 = ref span204[num]; + ref QuestSequence reference177 = ref span71[7]; QuestSequence obj155 = new QuestSequence { Sequence = 7 @@ -202712,26 +168138,21 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.Interact, 1021383u, new Vector3(284.71802f, 15.770843f, 512.5658f), 141) + CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1021383u, new Vector3(284.71802f, 15.770843f, 512.5658f), 141) { StopDistance = 7f }; obj155.Steps = list219; reference177 = obj155; - num++; - ref QuestSequence reference178 = ref span204[num]; + ref QuestSequence reference178 = ref span71[8]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -202750,16 +168171,13 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - Span span221 = CollectionsMarshal.AsSpan(list221); - index = 0; - span221[index] = "liza"; + CollectionsMarshal.AsSpan(list221)[0] = "liza"; questRoot21.Author = list221; - index = 4; - List list222 = new List(index); - CollectionsMarshal.SetCount(list222, index); - Span span222 = CollectionsMarshal.AsSpan(list222); - num = 0; - ref QuestSequence reference179 = ref span222[num]; + num = 4; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + Span span78 = CollectionsMarshal.AsSpan(list222); + ref QuestSequence reference179 = ref span78[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -202767,9 +168185,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - ref QuestStep reference180 = ref span223[index2]; + ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list223)[0]; QuestStep obj158 = new QuestStep(EInteractionType.AcceptQuest, 1001739u, new Vector3(-94.529724f, 6.5000024f, 39.81079f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -202787,36 +168203,29 @@ public static class AssemblyQuestLoader num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span224 = CollectionsMarshal.AsSpan(list224); - index3 = 0; - span224[index3] = 131; + CollectionsMarshal.AsSpan(list224)[0] = 131; obj159.InTerritory = list224; skipConditions7.AetheryteShortcutIf = obj159; obj158.SkipConditions = skipConditions7; reference180 = obj158; obj157.Steps = list223; reference179 = obj157; - num++; - ref QuestSequence reference181 = ref span222[num]; + ref QuestSequence reference181 = ref span78[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj160.Steps = list225; reference181 = obj160; - num++; - span222[num] = new QuestSequence + span78[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference182 = ref span222[num]; + ref QuestSequence reference182 = ref span78[3]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -202824,11 +168233,9 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - 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); + 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); obj161.Steps = list226; reference182 = obj161; questRoot21.QuestSequence = list222; @@ -202838,26 +168245,21 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "liza"; + CollectionsMarshal.AsSpan(list227)[0] = "liza"; questRoot22.Author = list227; - index = 6; - List list228 = new List(index); - CollectionsMarshal.SetCount(list228, index); - Span span228 = CollectionsMarshal.AsSpan(list228); - num = 0; - ref QuestSequence reference183 = ref span228[num]; + num = 6; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span80 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference183 = ref span80[0]; QuestSequence obj162 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list229)[0]; QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1021425u, new Vector3(146.1051f, 4f, 25.223145f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -202872,21 +168274,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list230 = new List(index3); - CollectionsMarshal.SetCount(list230, index3); - Span span230 = CollectionsMarshal.AsSpan(list230); - num3 = 0; - span230[num3] = 131; + num3 = 1; + List list230 = new List(num3); + CollectionsMarshal.SetCount(list230, num3); + CollectionsMarshal.AsSpan(list230)[0] = 131; obj164.InTerritory = list230; skipConditions8.AetheryteShortcutIf = obj164; obj163.SkipConditions = skipConditions8; num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span231 = CollectionsMarshal.AsSpan(list231); - index3 = 0; - span231[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM500_02576_Q1_000_010"), @@ -202896,8 +168294,7 @@ public static class AssemblyQuestLoader reference184 = obj163; obj162.Steps = list229; reference183 = obj162; - num++; - ref QuestSequence reference185 = ref span228[num]; + ref QuestSequence reference185 = ref span80[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -202905,35 +168302,29 @@ public static class AssemblyQuestLoader num2 = 2; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - 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) + 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) { Fly = true }; obj165.Steps = list232; reference185 = obj165; - num++; - ref QuestSequence reference186 = ref span228[num]; + ref QuestSequence reference186 = ref span80[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj166.Steps = list233; reference186 = obj166; - num++; - ref QuestSequence reference187 = ref span228[num]; + ref QuestSequence reference187 = ref span80[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -202941,38 +168332,32 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(8.849496f, 18.34012f, 562.2148f), 141) + Span span82 = CollectionsMarshal.AsSpan(list234); + span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(8.849496f, 18.34012f, 562.2148f), 141) { Fly = true }; - index2++; - span234[index2] = new QuestStep(EInteractionType.Interact, 1021435u, new Vector3(145.73889f, 4f, 25.223145f), 131); + span82[1] = new QuestStep(EInteractionType.Interact, 1021435u, new Vector3(145.73889f, 4f, 25.223145f), 131); obj167.Steps = list234; reference187 = obj167; - num++; - ref QuestSequence reference188 = ref span228[num]; + ref QuestSequence reference188 = ref span80[4]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num2++; - span235[num2] = new QuestStep(EInteractionType.Interact, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); + span83[1] = new QuestStep(EInteractionType.Interact, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); obj168.Steps = list235; reference188 = obj168; - num++; - ref QuestSequence reference189 = ref span228[num]; + ref QuestSequence reference189 = ref span80[5]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue @@ -202980,16 +168365,12 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - ref QuestStep reference190 = ref span236[index2]; + ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep questStep31 = new QuestStep(EInteractionType.CompleteQuest, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141); - index3 = 1; - List list237 = new List(index3); - CollectionsMarshal.SetCount(list237, index3); - Span span237 = CollectionsMarshal.AsSpan(list237); - num3 = 0; - span237[num3] = new DialogueChoice + num3 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBRDM500_02576_Q1_000_310") @@ -203006,26 +168387,22 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - Span span238 = CollectionsMarshal.AsSpan(list238); - index = 0; - span238[index] = "liza"; + CollectionsMarshal.AsSpan(list238)[0] = "liza"; questRoot23.Author = list238; - index = 5; - List list239 = new List(index); - CollectionsMarshal.SetCount(list239, index); - Span span239 = CollectionsMarshal.AsSpan(list239); - num = 0; - ref QuestSequence reference191 = ref span239[num]; + num = 5; + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + Span span84 = CollectionsMarshal.AsSpan(list239); + ref QuestSequence reference191 = ref span84[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, ItemId = 20389u, @@ -203044,8 +168421,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span240[num2] = new QuestStep(EInteractionType.UseItem, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141) + span85[1] = new QuestStep(EInteractionType.UseItem, 1021438u, new Vector3(-96.84906f, -11.350002f, -47.3183f), 141) { ItemId = 20621u, SkipConditions = new SkipConditions @@ -203059,14 +168435,11 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj170.Steps = list240; reference191 = obj170; - num++; - ref QuestSequence reference192 = ref span239[num]; + ref QuestSequence reference192 = ref span84[1]; QuestSequence obj171 = new QuestSequence { Sequence = 1 @@ -203074,33 +168447,27 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-508.00916f, -17.453016f, 16.0174f), 145) + Span span86 = CollectionsMarshal.AsSpan(list241); + span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-508.00916f, -17.453016f, 16.0174f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 1021439u, new Vector3(-513.7255f, -16.420002f, -6.668213f), 145); + span86[1] = new QuestStep(EInteractionType.Interact, 1021439u, new Vector3(-513.7255f, -16.420002f, -6.668213f), 145); obj171.Steps = list241; reference192 = obj171; - num++; - ref QuestSequence reference193 = ref span239[num]; + ref QuestSequence reference193 = ref span84[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj172.Steps = list242; reference193 = obj172; - num++; - ref QuestSequence reference194 = ref span239[num]; + ref QuestSequence reference194 = ref span84[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 @@ -203108,26 +168475,21 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.Interact, 1021441u, new Vector3(-428.58014f, -29.27635f, 24.826416f), 145) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1021441u, new Vector3(-428.58014f, -29.27635f, 24.826416f), 145) { StopDistance = 5f }; obj173.Steps = list243; reference194 = obj173; - num++; - ref QuestSequence reference195 = ref span239[num]; + ref QuestSequence reference195 = ref span84[4]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -203142,16 +168504,13 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "liza"; + CollectionsMarshal.AsSpan(list245)[0] = "liza"; questRoot24.Author = list245; - index = 10; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference196 = ref span246[num]; + num = 10; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span87 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference196 = ref span87[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -203159,9 +168518,7 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021447u, new Vector3(-496.75748f, -17.41137f, 28.091797f), 145) { StopDistance = 1f, Fly = true, @@ -203176,22 +168533,18 @@ public static class AssemblyQuestLoader }; obj175.Steps = list247; reference196 = obj175; - num++; - ref QuestSequence reference197 = ref span246[num]; + ref QuestSequence reference197 = ref span87[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj176.Steps = list248; reference197 = obj176; - num++; - ref QuestSequence reference198 = ref span246[num]; + ref QuestSequence reference198 = ref span87[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -203199,9 +168552,7 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1021448u, new Vector3(-56.717834f, -1.8104911E-06f, 102.708374f), 144) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1021448u, new Vector3(-56.717834f, -1.8104911E-06f, 102.708374f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -203212,18 +168563,15 @@ public static class AssemblyQuestLoader }; obj177.Steps = list249; reference198 = obj177; - num++; - ref QuestSequence reference199 = ref span246[num]; + ref QuestSequence reference199 = ref span87[3]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -203233,8 +168581,7 @@ public static class AssemblyQuestLoader }; obj178.Steps = list250; reference199 = obj178; - num++; - ref QuestSequence reference200 = ref span246[num]; + ref QuestSequence reference200 = ref span87[4]; QuestSequence obj179 = new QuestSequence { Sequence = 4 @@ -203242,33 +168589,27 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.Interact, 1021450u, new Vector3(-8.621399f, 20.99973f, 43.381348f), 144); + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.Interact, 1021450u, new Vector3(-8.621399f, 20.99973f, 43.381348f), 144); obj179.Steps = list251; reference200 = obj179; - num++; - ref QuestSequence reference201 = ref span246[num]; + ref QuestSequence reference201 = ref span87[5]; QuestSequence obj180 = new QuestSequence { Sequence = 5 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - num2++; - span252[num2] = new QuestStep(EInteractionType.Interact, 1021451u, new Vector3(-429.64832f, 23.743237f, -351.06433f), 140); + span88[1] = new QuestStep(EInteractionType.Interact, 1021451u, new Vector3(-429.64832f, 23.743237f, -351.06433f), 140); obj180.Steps = list252; reference201 = obj180; - num++; - ref QuestSequence reference202 = ref span246[num]; + ref QuestSequence reference202 = ref span87[6]; QuestSequence obj181 = new QuestSequence { Sequence = 6 @@ -203276,16 +168617,13 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - ref QuestStep reference203 = ref span253[index2]; + ref QuestStep reference203 = ref span89[2]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, 2008219u, new Vector3(-326.1311f, 22.9953f, -348.19562f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -203293,36 +168631,29 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - Span span254 = CollectionsMarshal.AsSpan(list254); - index3 = 0; - span254[index3] = 7218u; + CollectionsMarshal.AsSpan(list254)[0] = 7218u; obj182.KillEnemyDataIds = list254; reference203 = obj182; obj181.Steps = list253; reference202 = obj181; - num++; - ref QuestSequence reference204 = ref span246[num]; + ref QuestSequence reference204 = ref span87[7]; QuestSequence obj183 = new QuestSequence { Sequence = 7 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span255[num2] = new QuestStep(EInteractionType.Interact, 1021453u, new Vector3(-407.98047f, 23.008799f, -320.36322f), 140); + span90[2] = new QuestStep(EInteractionType.Interact, 1021453u, new Vector3(-407.98047f, 23.008799f, -320.36322f), 140); obj183.Steps = list255; reference204 = obj183; - num++; - ref QuestSequence reference205 = ref span246[num]; + ref QuestSequence reference205 = ref span87[8]; QuestSequence obj184 = new QuestSequence { Sequence = 8 @@ -203330,28 +168661,23 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - 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) + 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) { StopDistance = 7f }; obj184.Steps = list256; reference205 = obj184; - num++; - ref QuestSequence reference206 = ref span246[num]; + ref QuestSequence reference206 = ref span87[9]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2579) @@ -203365,16 +168691,13 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "liza"; + CollectionsMarshal.AsSpan(list258)[0] = "liza"; questRoot25.Author = list258; - index = 9; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference207 = ref span259[num]; + num = 9; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span92 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference207 = ref span92[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 @@ -203382,9 +168705,7 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021457u, new Vector3(-476.40198f, 23.228897f, -430.71643f), 140) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, @@ -203398,25 +168719,21 @@ public static class AssemblyQuestLoader }; obj186.Steps = list260; reference207 = obj186; - num++; - ref QuestSequence reference208 = ref span259[num]; + ref QuestSequence reference208 = ref span92[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj187.Steps = list261; reference208 = obj187; - num++; - ref QuestSequence reference209 = ref span259[num]; + ref QuestSequence reference209 = ref span92[2]; QuestSequence obj188 = new QuestSequence { Sequence = 2 @@ -203424,92 +168741,67 @@ public static class AssemblyQuestLoader num2 = 3; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - ref QuestStep reference210 = ref span262[index2]; + Span span93 = CollectionsMarshal.AsSpan(list262); + ref QuestStep reference210 = ref span93[0]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1021464u, new Vector3(327.77905f, -31.89878f, 275.59314f), 138); - 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); + 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); questStep32.CompletionQuestVariablesFlags = list263; reference210 = questStep32; - index2++; - ref QuestStep reference211 = ref span262[index2]; + ref QuestStep reference211 = ref span93[1]; 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 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); + 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); questStep33.CompletionQuestVariablesFlags = list264; reference211 = questStep33; - index2++; - ref QuestStep reference212 = ref span262[index2]; + ref QuestStep reference212 = ref span93[2]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1021465u, new Vector3(319.2339f, -40.425003f, 382.37573f), 138); - 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); + 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); questStep34.CompletionQuestVariablesFlags = list265; reference212 = questStep34; obj188.Steps = list262; reference209 = obj188; - num++; - ref QuestSequence reference213 = ref span259[num]; + ref QuestSequence reference213 = ref span92[3]; QuestSequence obj189 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj189.Steps = list266; reference213 = obj189; - num++; - ref QuestSequence reference214 = ref span259[num]; + ref QuestSequence reference214 = ref span92[4]; QuestSequence obj190 = new QuestSequence { Sequence = 4 @@ -203517,9 +168809,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - ref QuestStep reference215 = ref span267[index2]; + ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2008221u, new Vector3(200.09155f, -36.728516f, 276.17297f), 138) { Fly = true, @@ -203528,32 +168818,26 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span268 = CollectionsMarshal.AsSpan(list268); - index3 = 0; - span268[index3] = 7219u; + CollectionsMarshal.AsSpan(list268)[0] = 7219u; obj191.KillEnemyDataIds = list268; reference215 = obj191; obj190.Steps = list267; reference214 = obj190; - num++; - ref QuestSequence reference216 = ref span259[num]; + ref QuestSequence reference216 = ref span92[5]; QuestSequence obj192 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj192.Steps = list269; reference216 = obj192; - num++; - ref QuestSequence reference217 = ref span259[num]; + ref QuestSequence reference217 = ref span92[6]; QuestSequence obj193 = new QuestSequence { Sequence = 6 @@ -203561,35 +168845,29 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.UseItem, 2008924u, new Vector3(206.073f, -35.568848f, 329.21338f), 138) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.UseItem, 2008924u, new Vector3(206.073f, -35.568848f, 329.21338f), 138) { ItemId = 2002182u }; obj193.Steps = list270; reference217 = obj193; - num++; - ref QuestSequence reference218 = ref span259[num]; + ref QuestSequence reference218 = ref span92[7]; QuestSequence obj194 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span271[num2] = new QuestStep(EInteractionType.Interact, 1021460u, new Vector3(319.44763f, -35.9496f, 305.6228f), 138); + span97[1] = new QuestStep(EInteractionType.Interact, 1021460u, new Vector3(319.44763f, -35.9496f, 305.6228f), 138); obj194.Steps = list271; reference218 = obj194; - num++; - ref QuestSequence reference219 = ref span259[num]; + ref QuestSequence reference219 = ref span92[8]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -203597,9 +168875,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021462u, new Vector3(307.36243f, -36.402996f, 309.98706f), 138) { NextQuestId = new QuestId(2580) }; @@ -203612,26 +168888,21 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot26.Author = list273; - index = 8; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference220 = ref span274[num]; + num = 8; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span98 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference220 = ref span98[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -203644,8 +168915,7 @@ public static class AssemblyQuestLoader }; obj196.Steps = list275; reference220 = obj196; - num++; - ref QuestSequence reference221 = ref span274[num]; + ref QuestSequence reference221 = ref span98[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -203653,47 +168923,39 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.Interact, 1021466u, new Vector3(320.54626f, -35.949726f, 306.11108f), 138); + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1021466u, new Vector3(320.54626f, -35.949726f, 306.11108f), 138); obj197.Steps = list276; reference221 = obj197; - num++; - ref QuestSequence reference222 = ref span274[num]; + ref QuestSequence reference222 = ref span98[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.09558f, -17.541195f, 268.45526f), 138) + span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(192.09558f, -17.541195f, 268.45526f), 138) { Fly = true }; - num2++; - ref QuestStep reference223 = ref span277[num2]; + ref QuestStep reference223 = ref span99[2]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1021467u, new Vector3(190.96667f, -17.339743f, 269.27588f), 138); - index3 = 2; - List list278 = new List(index3); - CollectionsMarshal.SetCount(list278, index3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = new DialogueChoice + num3 = 2; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + Span span100 = CollectionsMarshal.AsSpan(list278); + span100[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM560_02580_Q1_000_100"), Answer = new ExcelRef("TEXT_JOBRDM560_02580_A1_000_101") }; - num3++; - span278[num3] = new DialogueChoice + span100[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM560_02580_Q2_000_131"), @@ -203703,8 +168965,7 @@ public static class AssemblyQuestLoader reference223 = questStep35; obj198.Steps = list277; reference222 = obj198; - num++; - ref QuestSequence reference224 = ref span274[num]; + ref QuestSequence reference224 = ref span98[3]; QuestSequence obj199 = new QuestSequence { Sequence = 3 @@ -203712,40 +168973,34 @@ public static class AssemblyQuestLoader num2 = 2; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) + Span span101 = CollectionsMarshal.AsSpan(list279); + span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(303.05298f, -36.405563f, 307.39264f), 138) { Fly = true }; - index2++; - span279[index2] = new QuestStep(EInteractionType.Interact, 1021468u, new Vector3(319.44763f, -35.949703f, 306.90466f), 138); + span101[1] = new QuestStep(EInteractionType.Interact, 1021468u, new Vector3(319.44763f, -35.949703f, 306.90466f), 138); obj199.Steps = list279; reference224 = obj199; - num++; - ref QuestSequence reference225 = ref span274[num]; + ref QuestSequence reference225 = ref span98[4]; QuestSequence obj200 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)138 }; - num2++; - span280[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021469u, new Vector3(-289.14325f, -40.63008f, 420.46228f), 138) + span102[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021469u, new Vector3(-289.14325f, -40.63008f, 420.46228f), 138) { StopDistance = 7f }; obj200.Steps = list280; reference225 = obj200; - num++; - ref QuestSequence reference226 = ref span274[num]; + ref QuestSequence reference226 = ref span98[5]; QuestSequence obj201 = new QuestSequence { Sequence = 5 @@ -203753,27 +169008,21 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.Interact, 1021442u, new Vector3(-304.89056f, -40.172314f, 660.1815f), 138); + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1021442u, new Vector3(-304.89056f, -40.172314f, 660.1815f), 138); obj201.Steps = list281; reference226 = obj201; - num++; - ref QuestSequence reference227 = ref span274[num]; + ref QuestSequence reference227 = ref span98[6]; QuestSequence obj202 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj202.Steps = list282; reference227 = obj202; - num++; - ref QuestSequence reference228 = ref span274[num]; + ref QuestSequence reference228 = ref span98[7]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -203781,9 +169030,7 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021473u, new Vector3(311.39075f, -25.002254f, 230.82312f), 138) { Fly = true, NextQuestId = new QuestId(2581) @@ -203797,26 +169044,21 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = "liza"; + CollectionsMarshal.AsSpan(list284)[0] = "liza"; questRoot27.Author = list284; - index = 7; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref QuestSequence reference229 = ref span285[num]; + num = 7; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span103 = CollectionsMarshal.AsSpan(list285); + ref QuestSequence reference229 = ref span103[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -203829,8 +169071,7 @@ public static class AssemblyQuestLoader }; obj204.Steps = list286; reference229 = obj204; - num++; - ref QuestSequence reference230 = ref span285[num]; + ref QuestSequence reference230 = ref span103[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -203838,9 +169079,7 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - ref QuestStep reference231 = ref span287[index2]; + ref QuestStep reference231 = ref CollectionsMarshal.AsSpan(list287)[0]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1021475u, new Vector3(-196.94824f, 15.542886f, 37.582886f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -203853,9 +169092,7 @@ public static class AssemblyQuestLoader num3 = 1; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - Span span288 = CollectionsMarshal.AsSpan(list288); - index3 = 0; - span288[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list288)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM580_02581_Q1_000_100"), @@ -203865,18 +169102,15 @@ public static class AssemblyQuestLoader reference231 = obj206; obj205.Steps = list287; reference230 = obj205; - num++; - ref QuestSequence reference232 = ref span285[num]; + ref QuestSequence reference232 = ref span103[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -203886,8 +169120,7 @@ public static class AssemblyQuestLoader }; obj207.Steps = list289; reference232 = obj207; - num++; - ref QuestSequence reference233 = ref span285[num]; + ref QuestSequence reference233 = ref span103[3]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -203895,46 +169128,38 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj208.Steps = list290; reference233 = obj208; - num++; - ref QuestSequence reference234 = ref span285[num]; + ref QuestSequence reference234 = ref span103[4]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list291 = new List(index2); - CollectionsMarshal.SetCount(list291, index2); - Span span291 = CollectionsMarshal.AsSpan(list291); - num2 = 0; - ref QuestStep reference235 = ref span291[num2]; + num2 = 1; + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list291)[0]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, 2008233u, new Vector3(-292.6833f, 84.4281f, -359.39575f), 147) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + Span span104 = CollectionsMarshal.AsSpan(list292); + span104[0] = 7221u; + span104[1] = 7222u; obj210.KillEnemyDataIds = list292; reference235 = obj210; obj209.Steps = list291; reference234 = obj209; - num++; - ref QuestSequence reference236 = ref span285[num]; + ref QuestSequence reference236 = ref span103[5]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -203942,26 +169167,21 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1021480u, new Vector3(-304.28015f, 78.854965f, -140.82556f), 147) { Fly = true }; obj211.Steps = list293; reference236 = obj211; - num++; - ref QuestSequence reference237 = ref span285[num]; + ref QuestSequence reference237 = ref span103[6]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -203976,16 +169196,13 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; questRoot28.Author = list295; - index = 8; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference238 = ref span296[num]; + num = 8; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span105 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference238 = ref span105[0]; QuestSequence obj213 = new QuestSequence { Sequence = 0 @@ -203993,9 +169210,7 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021482u, new Vector3(-94.92645f, 48.01958f, -31.570984f), 147) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -204009,26 +169224,22 @@ public static class AssemblyQuestLoader }; obj213.Steps = list297; reference238 = obj213; - num++; - ref QuestSequence reference239 = ref span296[num]; + ref QuestSequence reference239 = ref span105[1]; QuestSequence obj214 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj214.Steps = list298; reference239 = obj214; - num++; - ref QuestSequence reference240 = ref span296[num]; + ref QuestSequence reference240 = ref span105[2]; QuestSequence obj215 = new QuestSequence { Sequence = 2 @@ -204036,33 +169247,27 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1021486u, new Vector3(54.642456f, 20.4949f, -671.3207f), 156) + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1021486u, new Vector3(54.642456f, 20.4949f, -671.3207f), 156) { Fly = true }; obj215.Steps = list299; reference240 = obj215; - num++; - ref QuestSequence reference241 = ref span296[num]; + ref QuestSequence reference241 = ref span105[3]; QuestSequence obj216 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj216.Steps = list300; reference241 = obj216; - num++; - ref QuestSequence reference242 = ref span296[num]; + ref QuestSequence reference242 = ref span105[4]; QuestSequence obj217 = new QuestSequence { Sequence = 4 @@ -204070,9 +169275,8 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - ref QuestStep reference243 = ref span301[index2]; + Span span106 = CollectionsMarshal.AsSpan(list301); + ref QuestStep reference243 = ref span106[0]; QuestStep obj218 = new QuestStep(EInteractionType.Combat, null, new Vector3(175.10304f, 10.336163f, -584.578f), 156) { StopDistance = 0.5f, @@ -204082,44 +169286,33 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - Span span302 = CollectionsMarshal.AsSpan(list302); - index3 = 0; - span302[index3] = 7223u; + CollectionsMarshal.AsSpan(list302)[0] = 7223u; obj218.KillEnemyDataIds = list302; - 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; + 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; obj218.CompletionQuestVariablesFlags = list303; reference243 = obj218; - index2++; - span301[index2] = new QuestStep(EInteractionType.Interact, 1021489u, new Vector3(176.3789f, 9.963035f, -583.64233f), 156); + span106[1] = new QuestStep(EInteractionType.Interact, 1021489u, new Vector3(176.3789f, 9.963035f, -583.64233f), 156); obj217.Steps = list301; reference242 = obj217; - num++; - ref QuestSequence reference244 = ref span296[num]; + ref QuestSequence reference244 = ref span105[5]; QuestSequence obj219 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list304 = new List(index2); - CollectionsMarshal.SetCount(list304, index2); - Span span304 = CollectionsMarshal.AsSpan(list304); - num2 = 0; - ref QuestStep reference245 = ref span304[num2]; + num2 = 2; + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + Span span108 = CollectionsMarshal.AsSpan(list304); + ref QuestStep reference245 = ref span108[0]; QuestStep obj220 = new QuestStep(EInteractionType.Combat, null, new Vector3(210.32977f, -17.479898f, -470.8124f), 156) { StopDistance = 0.5f, @@ -204129,34 +169322,24 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - Span span305 = CollectionsMarshal.AsSpan(list305); - index3 = 0; - span305[index3] = 7224u; + CollectionsMarshal.AsSpan(list305)[0] = 7224u; obj220.KillEnemyDataIds = list305; - 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; + 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; obj220.CompletionQuestVariablesFlags = list306; reference245 = obj220; - num2++; - span304[num2] = new QuestStep(EInteractionType.Interact, 1021490u, new Vector3(211.56628f, -17.612108f, -469.50488f), 156); + span108[1] = new QuestStep(EInteractionType.Interact, 1021490u, new Vector3(211.56628f, -17.612108f, -469.50488f), 156); obj219.Steps = list304; reference244 = obj219; - num++; - ref QuestSequence reference246 = ref span296[num]; + ref QuestSequence reference246 = ref span105[6]; QuestSequence obj221 = new QuestSequence { Sequence = 6 @@ -204164,26 +169347,21 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span307[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008526u, new Vector3(376.82153f, -17.563171f, -343.67902f), 156) + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 2008526u, new Vector3(376.82153f, -17.563171f, -343.67902f), 156) { Fly = true }; obj221.Steps = list307; reference246 = obj221; - num++; - ref QuestSequence reference247 = ref span296[num]; + ref QuestSequence reference247 = ref span105[7]; QuestSequence obj222 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, NextQuestId = new QuestId(2583) @@ -204197,16 +169375,13 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - Span span309 = CollectionsMarshal.AsSpan(list309); - index = 0; - span309[index] = "liza"; + CollectionsMarshal.AsSpan(list309)[0] = "liza"; questRoot29.Author = list309; - index = 7; - List list310 = new List(index); - CollectionsMarshal.SetCount(list310, index); - Span span310 = CollectionsMarshal.AsSpan(list310); - num = 0; - ref QuestSequence reference248 = ref span310[num]; + num = 7; + List list310 = new List(num); + CollectionsMarshal.SetCount(list310, num); + Span span110 = CollectionsMarshal.AsSpan(list310); + ref QuestSequence reference248 = ref span110[0]; QuestSequence obj223 = new QuestSequence { Sequence = 0 @@ -204214,9 +169389,7 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span311[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021493u, new Vector3(55.557983f, 20.485168f, -672.5719f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -204229,25 +169402,21 @@ public static class AssemblyQuestLoader }; obj223.Steps = list311; reference248 = obj223; - num++; - ref QuestSequence reference249 = ref span310[num]; + ref QuestSequence reference249 = ref span110[1]; QuestSequence obj224 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj224.Steps = list312; reference249 = obj224; - num++; - ref QuestSequence reference250 = ref span310[num]; + ref QuestSequence reference250 = ref span110[2]; QuestSequence obj225 = new QuestSequence { Sequence = 2 @@ -204255,9 +169424,7 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - ref QuestStep reference251 = ref span313[index2]; + ref QuestStep reference251 = ref CollectionsMarshal.AsSpan(list313)[0]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, 2008220u, new Vector3(385.9464f, 78.446655f, -114.488464f), 399) { Fly = true, @@ -204271,34 +169438,28 @@ public static class AssemblyQuestLoader num3 = 2; List list314 = new List(num3); CollectionsMarshal.SetCount(list314, num3); - Span span314 = CollectionsMarshal.AsSpan(list314); - index3 = 0; - span314[index3] = 7225u; - index3++; - span314[index3] = 8039u; + Span span111 = CollectionsMarshal.AsSpan(list314); + span111[0] = 7225u; + span111[1] = 8039u; obj226.KillEnemyDataIds = list314; reference251 = obj226; obj225.Steps = list313; reference250 = obj225; - num++; - ref QuestSequence reference252 = ref span310[num]; + ref QuestSequence reference252 = ref span110[3]; QuestSequence obj227 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj227.Steps = list315; reference252 = obj227; - num++; - ref QuestSequence reference253 = ref span310[num]; + ref QuestSequence reference253 = ref span110[4]; QuestSequence obj228 = new QuestSequence { Sequence = 4 @@ -204306,33 +169467,27 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.Interact, 1021775u, new Vector3(266.98706f, 78.3604f, -10.788147f), 399) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1021775u, new Vector3(266.98706f, 78.3604f, -10.788147f), 399) { Fly = true }; obj228.Steps = list316; reference253 = obj228; - num++; - ref QuestSequence reference254 = ref span310[num]; + ref QuestSequence reference254 = ref span110[5]; QuestSequence obj229 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj229.Steps = list317; reference254 = obj229; - num++; - ref QuestSequence reference255 = ref span310[num]; + ref QuestSequence reference255 = ref span110[6]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue @@ -204340,9 +169495,7 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { NextQuestId = new QuestId(2584) }; @@ -204355,26 +169508,21 @@ public static class AssemblyQuestLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - Span span319 = CollectionsMarshal.AsSpan(list319); - index = 0; - span319[index] = "liza"; + CollectionsMarshal.AsSpan(list319)[0] = "liza"; questRoot30.Author = list319; - index = 7; - List list320 = new List(index); - CollectionsMarshal.SetCount(list320, index); - Span span320 = CollectionsMarshal.AsSpan(list320); - num = 0; - ref QuestSequence reference256 = ref span320[num]; + num = 7; + List list320 = new List(num); + CollectionsMarshal.SetCount(list320, num); + Span span112 = CollectionsMarshal.AsSpan(list320); + ref QuestSequence reference256 = ref span112[0]; QuestSequence obj231 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list321 = new List(num2); + CollectionsMarshal.SetCount(list321, num2); + ref QuestStep reference257 = ref CollectionsMarshal.AsSpan(list321)[0]; QuestStep obj232 = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -204386,12 +169534,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list322 = new List(index3); - CollectionsMarshal.SetCount(list322, index3); - Span span322 = CollectionsMarshal.AsSpan(list322); - num3 = 0; - span322[num3] = new DialogueChoice + num3 = 1; + List list322 = new List(num3); + CollectionsMarshal.SetCount(list322, num3); + CollectionsMarshal.AsSpan(list322)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBRDM630_02584_Q1_000_050"), @@ -204401,8 +169547,7 @@ public static class AssemblyQuestLoader reference257 = obj232; obj231.Steps = list321; reference256 = obj231; - num++; - ref QuestSequence reference258 = ref span320[num]; + ref QuestSequence reference258 = ref span112[1]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -204410,29 +169555,25 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.33426f, 94.733665f, -414.5643f), 620) + Span span113 = CollectionsMarshal.AsSpan(list323); + span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.33426f, 94.733665f, -414.5643f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - index2++; - span323[index2] = new QuestStep(EInteractionType.Interact, 1021780u, new Vector3(-339.04022f, 94.94087f, -414.17566f), 620); + span113[1] = new QuestStep(EInteractionType.Interact, 1021780u, new Vector3(-339.04022f, 94.94087f, -414.17566f), 620); obj233.Steps = list323; reference258 = obj233; - num++; - ref QuestSequence reference259 = ref span320[num]; + ref QuestSequence reference259 = ref span112[2]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - index2 = 8; - List list324 = new List(index2); - CollectionsMarshal.SetCount(list324, index2); - Span span324 = CollectionsMarshal.AsSpan(list324); - num2 = 0; - ref QuestStep reference260 = ref span324[num2]; + num2 = 8; + List list324 = new List(num2); + CollectionsMarshal.SetCount(list324, num2); + Span span114 = CollectionsMarshal.AsSpan(list324); + ref QuestStep reference260 = ref span114[0]; QuestStep obj235 = new QuestStep(EInteractionType.Interact, 2008291u, new Vector3(-299.48883f, 200.7019f, -240.55853f), 620) { Fly = true @@ -204440,23 +169581,16 @@ public static class AssemblyQuestLoader num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - 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); + 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); obj235.CompletionQuestVariablesFlags = list325; reference260 = obj235; - num2++; - ref QuestStep reference261 = ref span324[num2]; + ref QuestStep reference261 = ref span114[1]; QuestStep obj236 = new QuestStep(EInteractionType.Jump, null, new Vector3(-299.41455f, 200.71986f, -238.0671f), 620) { StopDistance = 0.5f, @@ -204467,29 +169601,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list326; skipStepConditions2.Flying = ELockedSkipCondition.Unlocked; skipConditions9.StepIf = skipStepConditions2; obj236.SkipConditions = skipConditions9; reference261 = obj236; - num2++; - ref QuestStep reference262 = ref span324[num2]; + ref QuestStep reference262 = ref span114[2]; QuestStep obj237 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-292.9197f, 203.25142f, -222.20459f), 620) { DisableNavmesh = true @@ -204499,26 +169626,19 @@ public static class AssemblyQuestLoader num3 = 6; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list327; skipStepConditions3.Flying = ELockedSkipCondition.Unlocked; skipConditions10.StepIf = skipStepConditions3; obj237.SkipConditions = skipConditions10; reference262 = obj237; - num2++; - ref QuestStep reference263 = ref span324[num2]; + ref QuestStep reference263 = ref span114[3]; QuestStep obj238 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-262.3789f, 106.614746f, -206.86658f), 620) { DisableNavmesh = true, @@ -204526,29 +169646,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list328; skipStepConditions4.Flying = ELockedSkipCondition.Unlocked; skipConditions11.StepIf = skipStepConditions4; obj238.SkipConditions = skipConditions11; reference263 = obj238; - num2++; - ref QuestStep reference264 = ref span324[num2]; + ref QuestStep reference264 = ref span114[4]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2008292u, new Vector3(-262.3789f, 106.614746f, -206.86658f), 620) { Fly = true @@ -204556,52 +169669,38 @@ public static class AssemblyQuestLoader num3 = 6; List list329 = new List(num3); CollectionsMarshal.SetCount(list329, num3); - 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); + 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); obj239.CompletionQuestVariablesFlags = list329; reference264 = obj239; - num2++; - ref QuestStep reference265 = ref span324[num2]; + ref QuestStep reference265 = ref span114[5]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list330; skipStepConditions5.Flying = ELockedSkipCondition.Unlocked; skipConditions12.StepIf = skipStepConditions5; obj240.SkipConditions = skipConditions12; reference265 = obj240; - num2++; - ref QuestStep reference266 = ref span324[num2]; + ref QuestStep reference266 = ref span114[6]; QuestStep obj241 = new QuestStep(EInteractionType.Jump, null, new Vector3(-207.53746f, 108.3858f, -304.68738f), 620) { StopDistance = 0.5f, @@ -204618,53 +169717,39 @@ public static class AssemblyQuestLoader num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list331; skipStepConditions6.Flying = ELockedSkipCondition.Unlocked; skipConditions13.StepIf = skipStepConditions6; obj241.SkipConditions = skipConditions13; reference266 = obj241; - num2++; - ref QuestStep reference267 = ref span324[num2]; + ref QuestStep reference267 = ref span114[7]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 2008293u, new Vector3(-210.40668f, 109.666504f, -299.794f), 620) { StopDistance = 1f, Fly = true }; - 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); + 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); obj242.CompletionQuestVariablesFlags = list332; reference267 = obj242; obj234.Steps = list324; reference259 = obj234; - num++; - ref QuestSequence reference268 = ref span320[num]; + ref QuestSequence reference268 = ref span112[3]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -204672,9 +169757,8 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-213.96315f, 107.1167f, -305.87753f), 620) + Span span123 = CollectionsMarshal.AsSpan(list333); + span123[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-213.96315f, 107.1167f, -305.87753f), 620) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -204685,25 +169769,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span333[index2] = new QuestStep(EInteractionType.Interact, 1021781u, new Vector3(-308.43066f, 102.62436f, -372.2744f), 620) + span123[1] = new QuestStep(EInteractionType.Interact, 1021781u, new Vector3(-308.43066f, 102.62436f, -372.2744f), 620) { Fly = true }; obj243.Steps = list333; reference268 = obj243; - num++; - ref QuestSequence reference269 = ref span320[num]; + ref QuestSequence reference269 = ref span112[4]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list334 = new List(index2); - CollectionsMarshal.SetCount(list334, index2); - Span span334 = CollectionsMarshal.AsSpan(list334); - num2 = 0; - ref QuestStep reference270 = ref span334[num2]; + num2 = 1; + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + ref QuestStep reference270 = ref CollectionsMarshal.AsSpan(list334)[0]; QuestStep obj245 = new QuestStep(EInteractionType.Combat, 2008294u, new Vector3(782.6809f, 256.91602f, -388.29633f), 620) { Fly = true, @@ -204712,15 +169792,12 @@ public static class AssemblyQuestLoader num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - Span span335 = CollectionsMarshal.AsSpan(list335); - index3 = 0; - span335[index3] = 7822u; + CollectionsMarshal.AsSpan(list335)[0] = 7822u; obj245.KillEnemyDataIds = list335; reference270 = obj245; obj244.Steps = list334; reference269 = obj244; - num++; - ref QuestSequence reference271 = ref span320[num]; + ref QuestSequence reference271 = ref span112[5]; QuestSequence obj246 = new QuestSequence { Sequence = 5 @@ -204728,26 +169805,21 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span336 = CollectionsMarshal.AsSpan(list336); - index2 = 0; - span336[index2] = new QuestStep(EInteractionType.Interact, 1021782u, new Vector3(120.74463f, 118.383255f, -732.57043f), 620) + CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1021782u, new Vector3(120.74463f, 118.383255f, -732.57043f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj246.Steps = list336; reference271 = obj246; - num++; - ref QuestSequence reference272 = ref span320[num]; + ref QuestSequence reference272 = ref span112[6]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(2585) @@ -204761,16 +169833,13 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - Span span338 = CollectionsMarshal.AsSpan(list338); - index = 0; - span338[index] = "liza"; + CollectionsMarshal.AsSpan(list338)[0] = "liza"; questRoot31.Author = list338; - index = 6; - List list339 = new List(index); - CollectionsMarshal.SetCount(list339, index); - Span span339 = CollectionsMarshal.AsSpan(list339); - num = 0; - ref QuestSequence reference273 = ref span339[num]; + num = 6; + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + Span span124 = CollectionsMarshal.AsSpan(list339); + ref QuestSequence reference273 = ref span124[0]; QuestSequence obj248 = new QuestSequence { Sequence = 0 @@ -204778,9 +169847,7 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -204794,32 +169861,27 @@ public static class AssemblyQuestLoader }; obj248.Steps = list340; reference273 = obj248; - num++; - ref QuestSequence reference274 = ref span339[num]; + ref QuestSequence reference274 = ref span124[1]; QuestSequence obj249 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true }; - num2++; - span341[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.601719f, 205.82156f, 23.937931f), 478) + span125[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.601719f, 205.82156f, 23.937931f), 478) { DisableNavmesh = true }; - num2++; - span341[num2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); + span125[2] = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); obj249.Steps = list341; reference274 = obj249; - num++; - ref QuestSequence reference275 = ref span339[num]; + ref QuestSequence reference275 = ref span124[2]; QuestSequence obj250 = new QuestSequence { Sequence = 2 @@ -204827,23 +169889,18 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.Interact, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478); + CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478); obj250.Steps = list342; reference275 = obj250; - num++; - ref QuestSequence reference276 = ref span339[num]; + ref QuestSequence reference276 = ref span124[3]; QuestSequence obj251 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Comment = "TODO Navigation doesn't work if flying is locked", @@ -204855,8 +169912,7 @@ public static class AssemblyQuestLoader }; obj251.Steps = list343; reference276 = obj251; - num++; - ref QuestSequence reference277 = ref span339[num]; + ref QuestSequence reference277 = ref span124[4]; QuestSequence obj252 = new QuestSequence { Sequence = 4 @@ -204864,26 +169920,21 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.Interact, 1021783u, new Vector3(277.11902f, 232.54102f, 785.5801f), 399) + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1021783u, new Vector3(277.11902f, 232.54102f, 785.5801f), 399) { StopDistance = 7f }; obj252.Steps = list344; reference277 = obj252; - num++; - ref QuestSequence reference278 = ref span339[num]; + ref QuestSequence reference278 = ref span124[5]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, NextQuestId = new QuestId(2586) @@ -204897,16 +169948,13 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - Span span346 = CollectionsMarshal.AsSpan(list346); - index = 0; - span346[index] = "liza"; + CollectionsMarshal.AsSpan(list346)[0] = "liza"; questRoot32.Author = list346; - index = 9; - List list347 = new List(index); - CollectionsMarshal.SetCount(list347, index); - Span span347 = CollectionsMarshal.AsSpan(list347); - num = 0; - ref QuestSequence reference279 = ref span347[num]; + num = 9; + List list347 = new List(num); + CollectionsMarshal.SetCount(list347, num); + Span span126 = CollectionsMarshal.AsSpan(list347); + ref QuestSequence reference279 = ref span126[0]; QuestSequence obj254 = new QuestSequence { Sequence = 0 @@ -204914,9 +169962,7 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - span348[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021779u, new Vector3(-5.44751f, 210.99998f, -39.658203f), 478) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -204930,18 +169976,15 @@ public static class AssemblyQuestLoader }; obj254.Steps = list348; reference279 = obj254; - num++; - ref QuestSequence reference280 = ref span347[num]; + ref QuestSequence reference280 = ref span126[1]; QuestSequence obj255 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -204952,8 +169995,7 @@ public static class AssemblyQuestLoader }; obj255.Steps = list349; reference280 = obj255; - num++; - ref QuestSequence reference281 = ref span347[num]; + ref QuestSequence reference281 = ref span126[2]; QuestSequence obj256 = new QuestSequence { Sequence = 2 @@ -204961,9 +170003,7 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.Interact, 1021788u, new Vector3(34.042847f, 11.965077f, 48.355713f), 419) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1021788u, new Vector3(34.042847f, 11.965077f, 48.355713f), 419) { AethernetShortcut = new AethernetShortcut { @@ -204973,26 +170013,22 @@ public static class AssemblyQuestLoader }; obj256.Steps = list350; reference281 = obj256; - num++; - ref QuestSequence reference282 = ref span347[num]; + ref QuestSequence reference282 = ref span126[3]; QuestSequence obj257 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj257.Steps = list351; reference282 = obj257; - num++; - ref QuestSequence reference283 = ref span347[num]; + ref QuestSequence reference283 = ref span126[4]; QuestSequence obj258 = new QuestSequence { Sequence = 4 @@ -205000,43 +170036,35 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - ref QuestStep reference284 = ref span352[index2]; + ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list352)[0]; QuestStep obj259 = new QuestStep(EInteractionType.Combat, 2008997u, new Vector3(299.2141f, 239.12415f, -312.76422f), 155) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list353 = new List(index3); - CollectionsMarshal.SetCount(list353, index3); - Span span353 = CollectionsMarshal.AsSpan(list353); - num3 = 0; - span353[num3] = 7226u; + num3 = 1; + List list353 = new List(num3); + CollectionsMarshal.SetCount(list353, num3); + CollectionsMarshal.AsSpan(list353)[0] = 7226u; obj259.KillEnemyDataIds = list353; reference284 = obj259; obj258.Steps = list352; reference283 = obj258; - num++; - ref QuestSequence reference285 = ref span347[num]; + ref QuestSequence reference285 = ref span126[5]; QuestSequence obj260 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj260.Steps = list354; reference285 = obj260; - num++; - ref QuestSequence reference286 = ref span347[num]; + ref QuestSequence reference286 = ref span126[6]; QuestSequence obj261 = new QuestSequence { Sequence = 6 @@ -205044,30 +170072,24 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - span355[index2] = new QuestStep(EInteractionType.Interact, 1021794u, new Vector3(295.9486f, 238.09589f, -317.34192f), 155) + CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1021794u, new Vector3(295.9486f, 238.09589f, -317.34192f), 155) { Fly = true }; obj261.Steps = list355; reference286 = obj261; - num++; - ref QuestSequence reference287 = ref span347[num]; + ref QuestSequence reference287 = ref span126[7]; QuestSequence obj262 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj262.Steps = list356; reference287 = obj262; - num++; - ref QuestSequence reference288 = ref span347[num]; + ref QuestSequence reference288 = ref span126[8]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -205075,9 +170097,7 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span357[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) + CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -205096,26 +170116,21 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - Span span358 = CollectionsMarshal.AsSpan(list358); - index = 0; - span358[index] = "liza"; + CollectionsMarshal.AsSpan(list358)[0] = "liza"; questRoot33.Author = list358; - index = 8; - List list359 = new List(index); - CollectionsMarshal.SetCount(list359, index); - Span span359 = CollectionsMarshal.AsSpan(list359); - num = 0; - ref QuestSequence reference289 = ref span359[num]; + num = 8; + List list359 = new List(num); + CollectionsMarshal.SetCount(list359, num); + Span span127 = CollectionsMarshal.AsSpan(list359); + ref QuestSequence reference289 = ref span127[0]; QuestSequence obj264 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list360 = new List(num2); + CollectionsMarshal.SetCount(list360, num2); + ref QuestStep reference290 = ref CollectionsMarshal.AsSpan(list360)[0]; QuestStep obj265 = new QuestStep(EInteractionType.AcceptQuest, 1021795u, new Vector3(-19.638367f, 15.965051f, -37.247314f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -205133,17 +170148,14 @@ public static class AssemblyQuestLoader num3 = 1; List list361 = new List(num3); CollectionsMarshal.SetCount(list361, num3); - Span span361 = CollectionsMarshal.AsSpan(list361); - index3 = 0; - span361[index3] = 419; + CollectionsMarshal.AsSpan(list361)[0] = 419; obj266.InTerritory = list361; skipConditions14.AetheryteShortcutIf = obj266; obj265.SkipConditions = skipConditions14; reference290 = obj265; obj264.Steps = list360; reference289 = obj264; - num++; - ref QuestSequence reference291 = ref span359[num]; + ref QuestSequence reference291 = ref span127[1]; QuestSequence obj267 = new QuestSequence { Sequence = 1 @@ -205151,9 +170163,7 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.Interact, 1021796u, new Vector3(-198.71832f, 18f, 61.08191f), 130) + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1021796u, new Vector3(-198.71832f, 18f, 61.08191f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -205164,22 +170174,18 @@ public static class AssemblyQuestLoader }; obj267.Steps = list362; reference291 = obj267; - num++; - ref QuestSequence reference292 = ref span359[num]; + ref QuestSequence reference292 = ref span127[2]; QuestSequence obj268 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj268.Steps = list363; reference292 = obj268; - num++; - ref QuestSequence reference293 = ref span359[num]; + ref QuestSequence reference293 = ref span127[3]; QuestSequence obj269 = new QuestSequence { Sequence = 3 @@ -205187,38 +170193,31 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span364 = CollectionsMarshal.AsSpan(list364); - index2 = 0; - span364[index2] = new QuestStep(EInteractionType.Interact, 1021799u, new Vector3(54.520386f, 20.411621f, -676.6614f), 156) + CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1021799u, new Vector3(54.520386f, 20.411621f, -676.6614f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj269.Steps = list364; reference293 = obj269; - num++; - ref QuestSequence reference294 = ref span359[num]; + ref QuestSequence reference294 = ref span127[4]; QuestSequence obj270 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj270.Steps = list365; reference294 = obj270; - num++; - span359[num] = new QuestSequence + span127[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference295 = ref span359[num]; + ref QuestSequence reference295 = ref span127[6]; QuestSequence obj271 = new QuestSequence { Sequence = 6 @@ -205226,26 +170225,21 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span366 = CollectionsMarshal.AsSpan(list366); - index2 = 0; - span366[index2] = new QuestStep(EInteractionType.Interact, 1021804u, new Vector3(368.1543f, -16.339586f, -331.44128f), 156) + CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1021804u, new Vector3(368.1543f, -16.339586f, -331.44128f), 156) { StopDistance = 5f }; obj271.Steps = list366; reference295 = obj271; - num++; - ref QuestSequence reference296 = ref span359[num]; + ref QuestSequence reference296 = ref span127[7]; QuestSequence obj272 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -205258,16 +170252,13 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - Span span368 = CollectionsMarshal.AsSpan(list368); - index = 0; - span368[index] = "liza"; + CollectionsMarshal.AsSpan(list368)[0] = "liza"; questRoot34.Author = list368; - index = 3; - List list369 = new List(index); - CollectionsMarshal.SetCount(list369, index); - Span span369 = CollectionsMarshal.AsSpan(list369); - num = 0; - ref QuestSequence reference297 = ref span369[num]; + num = 3; + List list369 = new List(num); + CollectionsMarshal.SetCount(list369, num); + Span span128 = CollectionsMarshal.AsSpan(list369); + ref QuestSequence reference297 = ref span128[0]; QuestSequence obj273 = new QuestSequence { Sequence = 0 @@ -205275,9 +170266,7 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - ref QuestStep reference298 = ref span370[index2]; + ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list370)[0]; QuestStep obj274 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -205292,41 +170281,35 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list371 = new List(index3); - CollectionsMarshal.SetCount(list371, index3); - Span span371 = CollectionsMarshal.AsSpan(list371); - num3 = 0; - span371[num3] = 131; + num3 = 1; + List list371 = new List(num3); + CollectionsMarshal.SetCount(list371, num3); + CollectionsMarshal.AsSpan(list371)[0] = 131; obj275.InTerritory = list371; skipConditions15.AetheryteShortcutIf = obj275; obj274.SkipConditions = skipConditions15; reference298 = obj274; obj273.Steps = list370; reference297 = obj273; - num++; - ref QuestSequence reference299 = ref span369[num]; + ref QuestSequence reference299 = ref span128[1]; QuestSequence obj276 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)146, Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - num2++; - span372[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020959u, new Vector3(-463.1571f, -3.164927f, 61.264893f), 146); + span129[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1020959u, new Vector3(-463.1571f, -3.164927f, 61.264893f), 146); obj276.Steps = list372; reference299 = obj276; - num++; - ref QuestSequence reference300 = ref span369[num]; + ref QuestSequence reference300 = ref span128[2]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue @@ -205334,9 +170317,7 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - Span span373 = CollectionsMarshal.AsSpan(list373); - index2 = 0; - span373[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -205355,26 +170336,21 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - Span span374 = CollectionsMarshal.AsSpan(list374); - index = 0; - span374[index] = "liza"; + CollectionsMarshal.AsSpan(list374)[0] = "liza"; questRoot35.Author = list374; - index = 5; - List list375 = new List(index); - CollectionsMarshal.SetCount(list375, index); - Span span375 = CollectionsMarshal.AsSpan(list375); - num = 0; - ref QuestSequence reference301 = ref span375[num]; + num = 5; + List list375 = new List(num); + CollectionsMarshal.SetCount(list375, num); + Span span130 = CollectionsMarshal.AsSpan(list375); + ref QuestSequence reference301 = ref span130[0]; QuestSequence obj278 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list376 = new List(num2); + CollectionsMarshal.SetCount(list376, num2); + ref QuestStep reference302 = ref CollectionsMarshal.AsSpan(list376)[0]; QuestStep obj279 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -205392,17 +170368,14 @@ public static class AssemblyQuestLoader num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - Span span377 = CollectionsMarshal.AsSpan(list377); - index3 = 0; - span377[index3] = 131; + CollectionsMarshal.AsSpan(list377)[0] = 131; obj280.InTerritory = list377; skipConditions16.AetheryteShortcutIf = obj280; obj279.SkipConditions = skipConditions16; reference302 = obj279; obj278.Steps = list376; reference301 = obj278; - num++; - ref QuestSequence reference303 = ref span375[num]; + ref QuestSequence reference303 = ref span130[1]; QuestSequence obj281 = new QuestSequence { Sequence = 1 @@ -205410,126 +170383,95 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.Interact, 1008543u, new Vector3(-360.00616f, 1.2644191f, 459.83057f), 153) + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1008543u, new Vector3(-360.00616f, 1.2644191f, 459.83057f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj281.Steps = list378; reference303 = obj281; - num++; - ref QuestSequence reference304 = ref span375[num]; + ref QuestSequence reference304 = ref span130[2]; QuestSequence obj282 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list379 = new List(index2); - CollectionsMarshal.SetCount(list379, index2); - Span span379 = CollectionsMarshal.AsSpan(list379); - num2 = 0; - ref QuestStep reference305 = ref span379[num2]; + num2 = 3; + List list379 = new List(num2); + CollectionsMarshal.SetCount(list379, num2); + Span span131 = CollectionsMarshal.AsSpan(list379); + ref QuestStep reference305 = ref span131[0]; QuestStep obj283 = new QuestStep(EInteractionType.Combat, 2007872u, new Vector3(-275.62378f, 4.8675537f, 523.76587f), 153) { Fly = true, Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - index3 = 1; - List list380 = new List(index3); - CollectionsMarshal.SetCount(list380, index3); - Span span380 = CollectionsMarshal.AsSpan(list380); - num3 = 0; - span380[num3] = 7232u; + num3 = 1; + List list380 = new List(num3); + CollectionsMarshal.SetCount(list380, num3); + CollectionsMarshal.AsSpan(list380)[0] = 7232u; obj283.KillEnemyDataIds = list380; num3 = 6; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - 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); + 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); obj283.CompletionQuestVariablesFlags = list381; reference305 = obj283; - num2++; - ref QuestStep reference306 = ref span379[num2]; + ref QuestStep reference306 = ref span131[1]; QuestStep obj284 = new QuestStep(EInteractionType.Combat, 2007873u, new Vector3(-298.909f, 11.825684f, 567.46765f), 153) { Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - index3 = 1; - List list382 = new List(index3); - CollectionsMarshal.SetCount(list382, index3); - Span span382 = CollectionsMarshal.AsSpan(list382); - num3 = 0; - span382[num3] = 7232u; + num3 = 1; + List list382 = new List(num3); + CollectionsMarshal.SetCount(list382, num3); + CollectionsMarshal.AsSpan(list382)[0] = 7232u; obj284.KillEnemyDataIds = list382; num3 = 6; List list383 = new List(num3); CollectionsMarshal.SetCount(list383, num3); - 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); + 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); obj284.CompletionQuestVariablesFlags = list383; reference306 = obj284; - num2++; - ref QuestStep reference307 = ref span379[num2]; + ref QuestStep reference307 = ref span131[2]; QuestStep obj285 = new QuestStep(EInteractionType.Combat, 2007874u, new Vector3(-310.5974f, 12.344482f, 645.777f), 153) { Action = EAction.Fire3, EnemySpawnType = EEnemySpawnType.AfterAction }; - index3 = 1; - List list384 = new List(index3); - CollectionsMarshal.SetCount(list384, index3); - Span span384 = CollectionsMarshal.AsSpan(list384); - num3 = 0; - span384[num3] = 7232u; + num3 = 1; + List list384 = new List(num3); + CollectionsMarshal.SetCount(list384, num3); + CollectionsMarshal.AsSpan(list384)[0] = 7232u; obj285.KillEnemyDataIds = list384; num3 = 6; List list385 = new List(num3); CollectionsMarshal.SetCount(list385, num3); - 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); + 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); obj285.CompletionQuestVariablesFlags = list385; reference307 = obj285; obj282.Steps = list379; reference304 = obj282; - num++; - ref QuestSequence reference308 = ref span375[num]; + ref QuestSequence reference308 = ref span130[3]; QuestSequence obj286 = new QuestSequence { Sequence = 3 @@ -205537,26 +170479,21 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - span386[index2] = new QuestStep(EInteractionType.Interact, 1020964u, new Vector3(-348.50085f, 0.22347936f, 454.45935f), 153) + CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.Interact, 1020964u, new Vector3(-348.50085f, 0.22347936f, 454.45935f), 153) { Fly = true }; obj286.Steps = list386; reference308 = obj286; - num++; - ref QuestSequence reference309 = ref span375[num]; + ref QuestSequence reference309 = ref span130[4]; QuestSequence obj287 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -205575,16 +170512,13 @@ public static class AssemblyQuestLoader num = 1; List list388 = new List(num); CollectionsMarshal.SetCount(list388, num); - Span span388 = CollectionsMarshal.AsSpan(list388); - index = 0; - span388[index] = "liza"; + CollectionsMarshal.AsSpan(list388)[0] = "liza"; questRoot36.Author = list388; - index = 7; - List list389 = new List(index); - CollectionsMarshal.SetCount(list389, index); - Span span389 = CollectionsMarshal.AsSpan(list389); - num = 0; - ref QuestSequence reference310 = ref span389[num]; + num = 7; + List list389 = new List(num); + CollectionsMarshal.SetCount(list389, num); + Span span135 = CollectionsMarshal.AsSpan(list389); + ref QuestSequence reference310 = ref span135[0]; QuestSequence obj288 = new QuestSequence { Sequence = 0 @@ -205592,9 +170526,7 @@ public static class AssemblyQuestLoader num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - Span span390 = CollectionsMarshal.AsSpan(list390); - index2 = 0; - ref QuestStep reference311 = ref span390[index2]; + ref QuestStep reference311 = ref CollectionsMarshal.AsSpan(list390)[0]; QuestStep obj289 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -205609,37 +170541,31 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list391 = new List(index3); - CollectionsMarshal.SetCount(list391, index3); - Span span391 = CollectionsMarshal.AsSpan(list391); - num3 = 0; - span391[num3] = 131; + num3 = 1; + List list391 = new List(num3); + CollectionsMarshal.SetCount(list391, num3); + CollectionsMarshal.AsSpan(list391)[0] = 131; obj290.InTerritory = list391; skipConditions17.AetheryteShortcutIf = obj290; obj289.SkipConditions = skipConditions17; reference311 = obj289; obj288.Steps = list390; reference310 = obj288; - num++; - ref QuestSequence reference312 = ref span389[num]; + ref QuestSequence reference312 = ref span135[1]; QuestSequence obj291 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj291.Steps = list392; reference312 = obj291; - num++; - ref QuestSequence reference313 = ref span389[num]; + ref QuestSequence reference313 = ref span135[2]; QuestSequence obj292 = new QuestSequence { Sequence = 2 @@ -205647,35 +170573,29 @@ public static class AssemblyQuestLoader num2 = 2; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span393 = CollectionsMarshal.AsSpan(list393); - index2 = 0; - span393[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.20407f, -15.94506f, -491.67297f), 156) + Span span136 = CollectionsMarshal.AsSpan(list393); + span136[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-335.20407f, -15.94506f, -491.67297f), 156) { Fly = true }; - index2++; - span393[index2] = new QuestStep(EInteractionType.Interact, 1021052u, new Vector3(-334.00476f, -16.18119f, -490.1961f), 156); + span136[1] = new QuestStep(EInteractionType.Interact, 1021052u, new Vector3(-334.00476f, -16.18119f, -490.1961f), 156); obj292.Steps = list393; reference313 = obj292; - num++; - ref QuestSequence reference314 = ref span389[num]; + ref QuestSequence reference314 = ref span135[3]; QuestSequence obj293 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj293.Steps = list394; reference314 = obj293; - num++; - ref QuestSequence reference315 = ref span389[num]; + ref QuestSequence reference315 = ref span135[4]; QuestSequence obj294 = new QuestSequence { Sequence = 4 @@ -205683,9 +170603,7 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - Span span395 = CollectionsMarshal.AsSpan(list395); - index2 = 0; - ref QuestStep reference316 = ref span395[index2]; + ref QuestStep reference316 = ref CollectionsMarshal.AsSpan(list395)[0]; QuestStep obj295 = new QuestStep(EInteractionType.Combat, null, new Vector3(-412.69736f, -17.148405f, -361.9313f), 156) { StopDistance = 0.5f, @@ -205695,29 +170613,23 @@ public static class AssemblyQuestLoader num3 = 1; List list396 = new List(num3); CollectionsMarshal.SetCount(list396, num3); - Span span396 = CollectionsMarshal.AsSpan(list396); - index3 = 0; - span396[index3] = 7233u; + CollectionsMarshal.AsSpan(list396)[0] = 7233u; obj295.KillEnemyDataIds = list396; reference316 = obj295; obj294.Steps = list395; reference315 = obj294; - num++; - ref QuestSequence reference317 = ref span389[num]; + ref QuestSequence reference317 = ref span135[5]; QuestSequence obj296 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj296.Steps = list397; reference317 = obj296; - num++; - ref QuestSequence reference318 = ref span389[num]; + ref QuestSequence reference318 = ref span135[6]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue @@ -205725,9 +170637,7 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - ref QuestStep reference319 = ref span398[index2]; + ref QuestStep reference319 = ref CollectionsMarshal.AsSpan(list398)[0]; QuestStep obj298 = new QuestStep(EInteractionType.CompleteQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -205737,12 +170647,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - index3 = 1; - List list399 = new List(index3); - CollectionsMarshal.SetCount(list399, index3); - Span span399 = CollectionsMarshal.AsSpan(list399); - num3 = 0; - span399[num3] = new DialogueChoice + num3 = 1; + List list399 = new List(num3); + CollectionsMarshal.SetCount(list399, num3); + CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBLM650_02590_Q2_000_000"), @@ -205760,26 +170668,21 @@ public static class AssemblyQuestLoader num = 1; List list400 = new List(num); CollectionsMarshal.SetCount(list400, num); - Span span400 = CollectionsMarshal.AsSpan(list400); - index = 0; - span400[index] = "liza"; + CollectionsMarshal.AsSpan(list400)[0] = "liza"; questRoot37.Author = list400; - index = 7; - List list401 = new List(index); - CollectionsMarshal.SetCount(list401, index); - Span span401 = CollectionsMarshal.AsSpan(list401); - num = 0; - ref QuestSequence reference320 = ref span401[num]; + num = 7; + List list401 = new List(num); + CollectionsMarshal.SetCount(list401, num); + Span span137 = CollectionsMarshal.AsSpan(list401); + ref QuestSequence reference320 = ref span137[0]; QuestSequence obj299 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list402 = new List(num2); + CollectionsMarshal.SetCount(list402, num2); + ref QuestStep reference321 = ref CollectionsMarshal.AsSpan(list402)[0]; QuestStep obj300 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -205797,17 +170700,14 @@ public static class AssemblyQuestLoader num3 = 1; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - Span span403 = CollectionsMarshal.AsSpan(list403); - index3 = 0; - span403[index3] = 131; + CollectionsMarshal.AsSpan(list403)[0] = 131; obj301.InTerritory = list403; skipConditions18.AetheryteShortcutIf = obj301; obj300.SkipConditions = skipConditions18; reference321 = obj300; obj299.Steps = list402; reference320 = obj299; - num++; - ref QuestSequence reference322 = ref span401[num]; + ref QuestSequence reference322 = ref span137[1]; QuestSequence obj302 = new QuestSequence { Sequence = 1 @@ -205815,27 +170715,22 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span404 = CollectionsMarshal.AsSpan(list404); - index2 = 0; - span404[index2] = new QuestStep(EInteractionType.Interact, 1021086u, new Vector3(326.10046f, 11.181234f, -8.743469f), 145) + CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.Interact, 1021086u, new Vector3(326.10046f, 11.181234f, -8.743469f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj302.Steps = list404; reference322 = obj302; - num++; - ref QuestSequence reference323 = ref span401[num]; + ref QuestSequence reference323 = ref span137[2]; QuestSequence obj303 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, Fly = true, @@ -205843,8 +170738,7 @@ public static class AssemblyQuestLoader }; obj303.Steps = list405; reference323 = obj303; - num++; - ref QuestSequence reference324 = ref span401[num]; + ref QuestSequence reference324 = ref span137[3]; QuestSequence obj304 = new QuestSequence { Sequence = 3 @@ -205852,43 +170746,35 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - ref QuestStep reference325 = ref span406[index2]; + ref QuestStep reference325 = ref CollectionsMarshal.AsSpan(list406)[0]; QuestStep obj305 = new QuestStep(EInteractionType.Combat, 2007936u, new Vector3(-284.93176f, 66.20886f, -679.07227f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list407 = new List(index3); - CollectionsMarshal.SetCount(list407, index3); - Span span407 = CollectionsMarshal.AsSpan(list407); - num3 = 0; - span407[num3] = 7234u; + num3 = 1; + List list407 = new List(num3); + CollectionsMarshal.SetCount(list407, num3); + CollectionsMarshal.AsSpan(list407)[0] = 7234u; obj305.KillEnemyDataIds = list407; reference325 = obj305; obj304.Steps = list406; reference324 = obj304; - num++; - ref QuestSequence reference326 = ref span401[num]; + ref QuestSequence reference326 = ref span137[4]; QuestSequence obj306 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj306.Steps = list408; reference326 = obj306; - num++; - ref QuestSequence reference327 = ref span401[num]; + ref QuestSequence reference327 = ref span137[5]; QuestSequence obj307 = new QuestSequence { Sequence = 5 @@ -205896,27 +170782,22 @@ public static class AssemblyQuestLoader num2 = 1; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span409 = CollectionsMarshal.AsSpan(list409); - index2 = 0; - span409[index2] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) + CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1006753u, new Vector3(325.063f, 11.236564f, -6.2105103f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj307.Steps = list409; reference327 = obj307; - num++; - ref QuestSequence reference328 = ref span401[num]; + ref QuestSequence reference328 = ref span137[6]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -205935,16 +170816,13 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - Span span411 = CollectionsMarshal.AsSpan(list411); - index = 0; - span411[index] = "liza"; + CollectionsMarshal.AsSpan(list411)[0] = "liza"; questRoot38.Author = list411; - index = 7; - List list412 = new List(index); - CollectionsMarshal.SetCount(list412, index); - Span span412 = CollectionsMarshal.AsSpan(list412); - num = 0; - ref QuestSequence reference329 = ref span412[num]; + num = 7; + List list412 = new List(num); + CollectionsMarshal.SetCount(list412, num); + Span span138 = CollectionsMarshal.AsSpan(list412); + ref QuestSequence reference329 = ref span138[0]; QuestSequence obj309 = new QuestSequence { Sequence = 0 @@ -205952,9 +170830,7 @@ public static class AssemblyQuestLoader num2 = 1; List list413 = new List(num2); CollectionsMarshal.SetCount(list413, num2); - Span span413 = CollectionsMarshal.AsSpan(list413); - index2 = 0; - ref QuestStep reference330 = ref span413[index2]; + ref QuestStep reference330 = ref CollectionsMarshal.AsSpan(list413)[0]; QuestStep obj310 = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -205972,35 +170848,29 @@ public static class AssemblyQuestLoader num3 = 1; List list414 = new List(num3); CollectionsMarshal.SetCount(list414, num3); - Span span414 = CollectionsMarshal.AsSpan(list414); - index3 = 0; - span414[index3] = 131; + CollectionsMarshal.AsSpan(list414)[0] = 131; obj311.InTerritory = list414; skipConditions19.AetheryteShortcutIf = obj311; obj310.SkipConditions = skipConditions19; reference330 = obj310; obj309.Steps = list413; reference329 = obj309; - num++; - ref QuestSequence reference331 = ref span412[num]; + ref QuestSequence reference331 = ref span138[1]; QuestSequence obj312 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj312.Steps = list415; reference331 = obj312; - num++; - ref QuestSequence reference332 = ref span412[num]; + ref QuestSequence reference332 = ref span138[2]; QuestSequence obj313 = new QuestSequence { Sequence = 2 @@ -206008,35 +170878,28 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span416 = CollectionsMarshal.AsSpan(list416); - index2 = 0; - span416[index2] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) + CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.Interact, 1011935u, new Vector3(-285.63367f, 39.04305f, 53.72693f), 398) { Fly = true }; obj313.Steps = list416; reference332 = obj313; - num++; - ref QuestSequence reference333 = ref span412[num]; + ref QuestSequence reference333 = ref span138[3]; QuestSequence obj314 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj314.Steps = list417; reference333 = obj314; - num++; - span412[num] = new QuestSequence + span138[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference334 = ref span412[num]; + ref QuestSequence reference334 = ref span138[5]; QuestSequence obj315 = new QuestSequence { Sequence = 5 @@ -206044,26 +170907,21 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span418 = CollectionsMarshal.AsSpan(list418); - index2 = 0; - span418[index2] = new QuestStep(EInteractionType.Interact, 1021104u, new Vector3(-267.17023f, -30.09441f, 117.54016f), 398) + CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1021104u, new Vector3(-267.17023f, -30.09441f, 117.54016f), 398) { Fly = true }; obj315.Steps = list418; reference334 = obj315; - num++; - ref QuestSequence reference335 = ref span412[num]; + ref QuestSequence reference335 = ref span138[6]; QuestSequence obj316 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -206085,16 +170943,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -206102,9 +170957,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -206122,18 +170975,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -206144,8 +170994,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -206153,9 +171002,8 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + Span span2 = CollectionsMarshal.AsSpan(list5); + ref QuestStep reference4 = ref span2[0]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1002659u, new Vector3(532.8297f, 88.99998f, -72.09894f), 135) { Fly = true, @@ -206171,72 +171019,53 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = 135; + CollectionsMarshal.AsSpan(list6)[0] = 135; skipAetheryteCondition.InTerritory = list6; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj4.SkipConditions = skipConditions; - 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); + 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); obj4.CompletionQuestVariablesFlags = list7; reference4 = obj4; - index2++; - ref QuestStep reference5 = ref span5[index2]; + ref QuestStep reference5 = ref span2[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list8; reference5 = questStep; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj5.Steps = list9; reference6 = obj5; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -206244,9 +171073,8 @@ public static class AssemblyQuestLoader num2 = 2; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - ref QuestStep reference8 = ref span10[index2]; + Span span5 = CollectionsMarshal.AsSpan(list10); + ref QuestStep reference8 = ref span5[0]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1019064u, new Vector3(59.220215f, 4f, 67.70422f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -206263,67 +171091,50 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj7.CompletionQuestVariablesFlags = list11; reference8 = obj7; - index2++; - ref QuestStep reference9 = ref span10[index2]; + ref QuestStep reference9 = ref span5[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list12; reference9 = questStep2; obj6.Steps = list10; reference7 = obj6; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[5]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj8.Steps = list13; reference10 = obj8; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[6]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -206331,24 +171142,20 @@ public static class AssemblyQuestLoader num2 = 2; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - ref QuestStep reference12 = ref span14[index2]; + Span span8 = CollectionsMarshal.AsSpan(list14); + ref QuestStep reference12 = ref span8[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 478); - index3 = 1; - List list15 = new List(index3); - CollectionsMarshal.SetCount(list15, index3); - Span span15 = CollectionsMarshal.AsSpan(list15); - num3 = 0; - span15[num3] = new GatheredItem + num3 = 1; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + CollectionsMarshal.AsSpan(list15)[0] = new GatheredItem { ItemId = 17946u, ItemCount = 20 }; questStep3.ItemsToGather = list15; reference12 = questStep3; - index2++; - span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -206367,26 +171174,21 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot2.Author = list16; - index = 8; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference13 = ref span17[num]; + num = 8; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span9 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference13 = ref span9[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -206404,8 +171206,7 @@ public static class AssemblyQuestLoader }; obj10.Steps = list18; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span9[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -206413,9 +171214,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -206426,18 +171225,15 @@ public static class AssemblyQuestLoader }; obj11.Steps = list19; reference14 = obj11; - num++; - ref QuestSequence reference15 = ref span17[num]; + ref QuestSequence reference15 = ref span9[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -206448,8 +171244,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list20; reference15 = obj12; - num++; - ref QuestSequence reference16 = ref span17[num]; + ref QuestSequence reference16 = ref span9[3]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -206457,30 +171252,23 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2008181u, new Vector3(-46.31122f, 209.49109f, -86.35089f), 478); obj13.Steps = list21; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span17[num]; + ref QuestSequence reference17 = ref span9[4]; QuestSequence obj14 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list22 = new List(index2); - CollectionsMarshal.SetCount(list22, index2); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref QuestStep reference18 = ref span22[num2]; + num2 = 1; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list22)[0]; 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); - Span span23 = CollectionsMarshal.AsSpan(list23); - index3 = 0; - span23[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CLSHRV680_02623_Q1_000_000"), @@ -206490,8 +171278,7 @@ public static class AssemblyQuestLoader reference18 = questStep4; obj14.Steps = list22; reference17 = obj14; - num++; - ref QuestSequence reference19 = ref span17[num]; + ref QuestSequence reference19 = ref span9[5]; QuestSequence obj15 = new QuestSequence { Sequence = 5 @@ -206499,45 +171286,37 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478); obj15.Steps = list24; reference19 = obj15; - num++; - ref QuestSequence reference20 = ref span17[num]; + ref QuestSequence reference20 = ref span9[6]; QuestSequence obj16 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list25 = new List(index2); - CollectionsMarshal.SetCount(list25, index2); - Span span25 = CollectionsMarshal.AsSpan(list25); - num2 = 0; - ref QuestStep reference21 = ref span25[num2]; + num2 = 2; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + Span span10 = CollectionsMarshal.AsSpan(list25); + ref QuestStep reference21 = ref span10[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 478); - index3 = 1; - List list26 = new List(index3); - CollectionsMarshal.SetCount(list26, index3); - Span span26 = CollectionsMarshal.AsSpan(list26); - num3 = 0; - span26[num3] = new GatheredItem + num3 = 1; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + CollectionsMarshal.AsSpan(list26)[0] = new GatheredItem { ItemId = 17947u, ItemCount = 20 }; questStep5.ItemsToGather = list26; reference21 = questStep5; - num2++; - span25[num2] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478) + span10[1] = new QuestStep(EInteractionType.Interact, 1017106u, new Vector3(73.99097f, 214.12f, -92.57648f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj16.Steps = list25; reference20 = obj16; - num++; - ref QuestSequence reference22 = ref span17[num]; + ref QuestSequence reference22 = ref span9[7]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -206545,9 +171324,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478); obj17.Steps = list27; reference22 = obj17; questRoot2.QuestSequence = list17; @@ -206557,26 +171334,21 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot3.Author = list28; - index = 7; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference23 = ref span29[num]; + num = 7; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span11 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference23 = ref span11[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -206594,8 +171366,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list30; reference23 = obj18; - num++; - ref QuestSequence reference24 = ref span29[num]; + ref QuestSequence reference24 = ref span11[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -206603,9 +171374,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1000815u, new Vector3(-233.9361f, 6.668152f, -171.03839f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -206616,25 +171385,21 @@ public static class AssemblyQuestLoader }; obj19.Steps = list31; reference24 = obj19; - num++; - ref QuestSequence reference25 = ref span29[num]; + ref QuestSequence reference25 = ref span11[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj20.Steps = list32; reference25 = obj20; - num++; - ref QuestSequence reference26 = ref span29[num]; + ref QuestSequence reference26 = ref span11[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -206642,91 +171407,66 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1021359u, new Vector3(-262.25684f, 256.97177f, 695.52136f), 620) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1021359u, new Vector3(-262.25684f, 256.97177f, 695.52136f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj21.Steps = list33; reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span29[num]; + ref QuestSequence reference27 = ref span11[4]; QuestSequence obj22 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference28 = ref span34[num2]; + num2 = 3; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + Span span12 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference28 = ref span12[0]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list35; reference28 = questStep6; - num2++; - ref QuestStep reference29 = ref span34[num2]; + ref QuestStep reference29 = ref span12[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1021595u, new Vector3(-232.50171f, 258.90652f, 783.505f), 620); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list36; reference29 = questStep7; - num2++; - ref QuestStep reference30 = ref span34[num2]; + ref QuestStep reference30 = ref span12[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list37; reference30 = questStep8; obj22.Steps = list34; reference27 = obj22; - num++; - ref QuestSequence reference31 = ref span29[num]; + ref QuestSequence reference31 = ref span11[5]; QuestSequence obj23 = new QuestSequence { Sequence = 5 @@ -206734,38 +171474,31 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1022381u, new Vector3(-243.12207f, 257.52652f, 744.0145f), 620); + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1022381u, new Vector3(-243.12207f, 257.52652f, 744.0145f), 620); obj23.Steps = list38; reference31 = obj23; - num++; - ref QuestSequence reference32 = ref span29[num]; + ref QuestSequence reference32 = ref span11[6]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list39 = new List(index2); - CollectionsMarshal.SetCount(list39, index2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref QuestStep reference33 = ref span39[num2]; + num2 = 2; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + Span span16 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference33 = ref span16[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 478); - index3 = 1; - List list40 = new List(index3); - CollectionsMarshal.SetCount(list40, index3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - span40[num3] = new GatheredItem + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem { ItemId = 17948u, ItemCount = 5 }; questStep9.ItemsToGather = list40; reference33 = questStep9; - num2++; - span39[num2] = new QuestStep(EInteractionType.CompleteQuest, 1021349u, new Vector3(-43.930786f, 209.23637f, -90.77594f), 478) + span16[1] = 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, @@ -206784,16 +171517,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot4.Author = list41; - index = 6; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference34 = ref span42[num]; + num = 6; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span17 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference34 = ref span17[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -206801,9 +171531,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref QuestStep reference35 = ref span43[index2]; + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep obj26 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -206821,35 +171549,29 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span44 = CollectionsMarshal.AsSpan(list44); - index3 = 0; - span44[index3] = 133; + CollectionsMarshal.AsSpan(list44)[0] = 133; obj27.InTerritory = list44; skipConditions2.AetheryteShortcutIf = obj27; obj26.SkipConditions = skipConditions2; reference35 = obj26; obj25.Steps = list43; reference34 = obj25; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span17[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj28.Steps = list45; reference36 = obj28; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span17[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -206857,43 +171579,35 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1022761u, new Vector3(5.996765f, 20.712559f, -659.26605f), 156) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1022761u, new Vector3(5.996765f, 20.712559f, -659.26605f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj29.Steps = list46; reference37 = obj29; - num++; - ref QuestSequence reference38 = ref span42[num]; + ref QuestSequence reference38 = ref span17[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list47 = new List(index2); - CollectionsMarshal.SetCount(list47, index2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num2 = 0; - ref QuestStep reference39 = ref span47[num2]; + num2 = 1; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list47)[0]; QuestStep obj31 = new QuestStep(EInteractionType.Combat, 1022762u, new Vector3(385.39697f, 23.711746f, -712.7031f), 156) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list48 = new List(index3); - CollectionsMarshal.SetCount(list48, index3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num3 = 0; - span48[num3] = 7227u; + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = 7227u; obj31.KillEnemyDataIds = list48; reference39 = obj31; obj30.Steps = list47; reference38 = obj30; - num++; - ref QuestSequence reference40 = ref span42[num]; + ref QuestSequence reference40 = ref span17[4]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -206901,23 +171615,18 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 1022763u, new Vector3(384.0542f, 23.602556f, -711.20776f), 156); + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1022763u, new Vector3(384.0542f, 23.602556f, -711.20776f), 156); obj32.Steps = list49; reference40 = obj32; - num++; - ref QuestSequence reference41 = ref span42[num]; + ref QuestSequence reference41 = ref span17[5]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -206936,16 +171645,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "liza"; + CollectionsMarshal.AsSpan(list51)[0] = "liza"; questRoot5.Author = list51; - index = 7; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference42 = ref span52[num]; + num = 7; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span18 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference42 = ref span18[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -206953,9 +171659,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - ref QuestStep reference43 = ref span53[index2]; + ref QuestStep reference43 = ref CollectionsMarshal.AsSpan(list53)[0]; QuestStep obj35 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -206973,34 +171677,28 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - index3 = 0; - span54[index3] = 133; + CollectionsMarshal.AsSpan(list54)[0] = 133; obj36.InTerritory = list54; skipConditions3.AetheryteShortcutIf = obj36; obj35.SkipConditions = skipConditions3; reference43 = obj35; obj34.Steps = list53; reference42 = obj34; - num++; - ref QuestSequence reference44 = ref span52[num]; + ref QuestSequence reference44 = ref span18[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog }; obj37.Steps = list55; reference44 = obj37; - num++; - ref QuestSequence reference45 = ref span52[num]; + ref QuestSequence reference45 = ref span18[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -207008,36 +171706,29 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref QuestStep reference46 = ref span56[index2]; + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 1022770u, new Vector3(82.38342f, 14.362329f, 221.20996f), 147) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list57 = new List(index3); - CollectionsMarshal.SetCount(list57, index3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = 7228u; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = 7228u; obj39.KillEnemyDataIds = list57; reference46 = obj39; obj38.Steps = list56; reference45 = obj38; - num++; - ref QuestSequence reference47 = ref span52[num]; + ref QuestSequence reference47 = ref span18[3]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list58 = new List(index2); - CollectionsMarshal.SetCount(list58, index2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num2 = 0; - ref QuestStep reference48 = ref span58[num2]; + num2 = 1; + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list58)[0]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, 1022772u, new Vector3(87.907104f, 14.713098f, 222.03394f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -207045,15 +171736,12 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span59 = CollectionsMarshal.AsSpan(list59); - index3 = 0; - span59[index3] = 7229u; + CollectionsMarshal.AsSpan(list59)[0] = 7229u; obj41.KillEnemyDataIds = list59; reference48 = obj41; obj40.Steps = list58; reference47 = obj40; - num++; - ref QuestSequence reference49 = ref span52[num]; + ref QuestSequence reference49 = ref span18[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -207061,39 +171749,31 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - ref QuestStep reference50 = ref span60[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 1022772u, new Vector3(87.907104f, 14.713098f, 222.03394f), 147) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list61 = new List(index3); - CollectionsMarshal.SetCount(list61, index3); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = 7230u; + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = 7230u; obj43.KillEnemyDataIds = list61; reference50 = obj43; obj42.Steps = list60; reference49 = obj42; - num++; - ref QuestSequence reference51 = ref span52[num]; + ref QuestSequence reference51 = ref span18[5]; QuestSequence obj44 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj44.Steps = list62; reference51 = obj44; - num++; - ref QuestSequence reference52 = ref span52[num]; + ref QuestSequence reference52 = ref span18[6]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -207101,9 +171781,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -207122,26 +171800,21 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot6.Author = list64; - index = 6; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference53 = ref span65[num]; + num = 6; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span19 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference53 = ref span19[0]; QuestSequence obj46 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list66)[0]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -207159,17 +171832,14 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span67 = CollectionsMarshal.AsSpan(list67); - index3 = 0; - span67[index3] = 133; + CollectionsMarshal.AsSpan(list67)[0] = 133; obj48.InTerritory = list67; skipConditions4.AetheryteShortcutIf = obj48; obj47.SkipConditions = skipConditions4; reference54 = obj47; obj46.Steps = list66; reference53 = obj46; - num++; - ref QuestSequence reference55 = ref span65[num]; + ref QuestSequence reference55 = ref span19[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -207177,9 +171847,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Interact, 1014039u, new Vector3(-17.990417f, 83.19999f, 0.6560669f), 130) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1014039u, new Vector3(-17.990417f, 83.19999f, 0.6560669f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -207190,30 +171858,25 @@ public static class AssemblyQuestLoader }; obj49.Steps = list68; reference55 = obj49; - num++; - ref QuestSequence reference56 = ref span65[num]; + ref QuestSequence reference56 = ref span19[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj50.Steps = list69; reference56 = obj50; - num++; - span65[num] = new QuestSequence + span19[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference57 = ref span65[num]; + ref QuestSequence reference57 = ref span19[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -207221,26 +171884,21 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 1014040u, new Vector3(-19.028076f, 83.19999f, 0.10675049f), 130) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1014040u, new Vector3(-19.028076f, 83.19999f, 0.10675049f), 130) { StopDistance = 7f }; obj51.Steps = list70; reference57 = obj51; - num++; - ref QuestSequence reference58 = ref span65[num]; + ref QuestSequence reference58 = ref span19[5]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -207259,16 +171917,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "liza"; + CollectionsMarshal.AsSpan(list72)[0] = "liza"; questRoot7.Author = list72; - index = 6; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference59 = ref span73[num]; + num = 6; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span20 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference59 = ref span20[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -207276,9 +171931,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference60 = ref span74[index2]; + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list74)[0]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -207293,38 +171946,32 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list75 = new List(index3); - CollectionsMarshal.SetCount(list75, index3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - span75[num3] = 133; + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = 133; obj55.InTerritory = list75; skipConditions5.AetheryteShortcutIf = obj55; obj54.SkipConditions = skipConditions5; reference60 = obj54; obj53.Steps = list74; reference59 = obj53; - num++; - ref QuestSequence reference61 = ref span73[num]; + ref QuestSequence reference61 = ref span20[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj56.Steps = list76; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span73[num]; + ref QuestSequence reference62 = ref span20[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -207332,40 +171979,33 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) + Span span21 = CollectionsMarshal.AsSpan(list77); + span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.405773f, 29.49983f, -767.3998f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - 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); + 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); obj57.Steps = list77; reference62 = obj57; - num++; - ref QuestSequence reference63 = ref span73[num]; + ref QuestSequence reference63 = ref span20[3]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj58.Steps = list78; reference63 = obj58; - num++; - ref QuestSequence reference64 = ref span73[num]; + ref QuestSequence reference64 = ref span20[4]; QuestSequence obj59 = new QuestSequence { Sequence = 4 @@ -207373,26 +172013,21 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1022780u, new Vector3(412.5581f, -5.7435417f, -436.39276f), 156) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1022780u, new Vector3(412.5581f, -5.7435417f, -436.39276f), 156) { Fly = true }; obj59.Steps = list79; reference64 = obj59; - num++; - ref QuestSequence reference65 = ref span73[num]; + ref QuestSequence reference65 = ref span20[5]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -207411,16 +172046,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "liza"; + CollectionsMarshal.AsSpan(list81)[0] = "liza"; questRoot8.Author = list81; - index = 7; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference66 = ref span82[num]; + num = 7; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span23 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference66 = ref span23[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -207428,9 +172060,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference67 = ref span83[index2]; + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list83)[0]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -207448,35 +172078,29 @@ public static class AssemblyQuestLoader num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span84 = CollectionsMarshal.AsSpan(list84); - index3 = 0; - span84[index3] = 133; + CollectionsMarshal.AsSpan(list84)[0] = 133; obj63.InTerritory = list84; skipConditions6.AetheryteShortcutIf = obj63; obj62.SkipConditions = skipConditions6; reference67 = obj62; obj61.Steps = list83; reference66 = obj61; - num++; - ref QuestSequence reference68 = ref span82[num]; + ref QuestSequence reference68 = ref span23[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzysLlaHelix }; obj64.Steps = list85; reference68 = obj64; - num++; - ref QuestSequence reference69 = ref span82[num]; + ref QuestSequence reference69 = ref span23[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -207484,41 +172108,33 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - ref QuestStep reference70 = ref span86[index2]; + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list86)[0]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(20.176798f, 293.97687f, -0.15623161f), 402) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list87 = new List(index3); - CollectionsMarshal.SetCount(list87, index3); - Span span87 = CollectionsMarshal.AsSpan(list87); - num3 = 0; - span87[num3] = 7231u; + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = 7231u; obj66.KillEnemyDataIds = list87; reference70 = obj66; obj65.Steps = list86; reference69 = obj65; - num++; - ref QuestSequence reference71 = ref span82[num]; + ref QuestSequence reference71 = ref span23[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj67.Steps = list88; reference71 = obj67; - num++; - ref QuestSequence reference72 = ref span82[num]; + ref QuestSequence reference72 = ref span23[4]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -207526,30 +172142,24 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023595u, new Vector3(21.98816f, 293.97577f, 0.41192627f), 402); + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1023595u, new Vector3(21.98816f, 293.97577f, 0.41192627f), 402); obj68.Steps = list89; reference72 = obj68; - num++; - ref QuestSequence reference73 = ref span82[num]; + ref QuestSequence reference73 = ref span23[5]; QuestSequence obj69 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj69.Steps = list90; reference73 = obj69; - num++; - ref QuestSequence reference74 = ref span82[num]; + ref QuestSequence reference74 = ref span23[6]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -207557,9 +172167,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -207577,26 +172185,21 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list92)[0] = "JerryWester"; questRoot9.Author = list92; - index = 5; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference75 = ref span93[num]; + num = 5; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span24 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference75 = ref span24[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -207609,8 +172212,7 @@ public static class AssemblyQuestLoader }; obj71.Steps = list94; reference75 = obj71; - num++; - ref QuestSequence reference76 = ref span93[num]; + ref QuestSequence reference76 = ref span24[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -207618,42 +172220,36 @@ public static class AssemblyQuestLoader num2 = 2; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(839.0091f, 99.60754f, -427.17267f), 614) + Span span25 = CollectionsMarshal.AsSpan(list95); + span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(839.0091f, 99.60754f, -427.17267f), 614) { StopDistance = 0.25f, TargetTerritoryId = (ushort)613, Fly = true }; - index2++; - span95[index2] = new QuestStep(EInteractionType.Interact, 1020073u, new Vector3(-762.1119f, 4.763445f, -453.4829f), 613) + span25[1] = new QuestStep(EInteractionType.Interact, 1020073u, new Vector3(-762.1119f, 4.763445f, -453.4829f), 613) { StopDistance = 0.25f, Fly = true }; obj72.Steps = list95; reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span93[num]; + ref QuestSequence reference77 = ref span24[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)622, Fly = true }; obj73.Steps = list96; reference77 = obj73; - num++; - ref QuestSequence reference78 = ref span93[num]; + ref QuestSequence reference78 = ref span24[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -207661,28 +172257,23 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 1020076u, new Vector3(540.3677f, -19.793196f, 636.6216f), 622); + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1020076u, new Vector3(540.3677f, -19.793196f, 636.6216f), 622); obj74.Steps = list97; reference78 = obj74; - num++; - ref QuestSequence reference79 = ref span93[num]; + ref QuestSequence reference79 = ref span24[4]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818208u }; - num2++; - span98[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); + span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1020079u, new Vector3(560.235f, -19.505638f, 408.68237f), 622); obj75.Steps = list98; reference79 = obj75; questRoot9.QuestSequence = list93; @@ -207692,16 +172283,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot10.Author = list99; - index = 5; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference80 = ref span100[num]; + num = 5; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span27 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference80 = ref span27[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -207709,9 +172297,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -207724,18 +172310,15 @@ public static class AssemblyQuestLoader }; obj76.Steps = list101; reference80 = obj76; - num++; - ref QuestSequence reference81 = ref span100[num]; + ref QuestSequence reference81 = ref span27[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -207745,8 +172328,7 @@ public static class AssemblyQuestLoader }; obj77.Steps = list102; reference81 = obj77; - num++; - ref QuestSequence reference82 = ref span100[num]; + ref QuestSequence reference82 = ref span27[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 @@ -207754,9 +172336,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - ref QuestStep reference83 = ref span103[index2]; + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list103)[0]; QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1019006u, new Vector3(-116.80786f, -7.0101376f, -39.108948f), 628) { StopDistance = 7f, @@ -207765,9 +172345,7 @@ public static class AssemblyQuestLoader num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span104 = CollectionsMarshal.AsSpan(list104); - index3 = 0; - span104[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "Addon", @@ -207778,22 +172356,18 @@ public static class AssemblyQuestLoader reference83 = obj79; obj78.Steps = list103; reference82 = obj78; - num++; - ref QuestSequence reference84 = ref span100[num]; + ref QuestSequence reference84 = ref span27[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj80.Steps = list105; reference84 = obj80; - num++; - ref QuestSequence reference85 = ref span100[num]; + ref QuestSequence reference85 = ref span27[4]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -207801,9 +172375,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022628u, new Vector3(38.651123f, 2.99999f, -66.7583f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; @@ -207816,33 +172388,26 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; questRoot11.Author = list107; - index = 6; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference86 = ref span108[num]; + num = 6; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span28 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference86 = ref span28[0]; QuestSequence obj82 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list109)[0]; QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); - index3 = 1; - List list110 = new List(index3); - CollectionsMarshal.SetCount(list110, index3); - Span span110 = CollectionsMarshal.AsSpan(list110); - num3 = 0; - span110[num3] = new DialogueChoice + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY001_02632_Q1_000_050"), @@ -207852,8 +172417,7 @@ public static class AssemblyQuestLoader reference87 = questStep10; obj82.Steps = list109; reference86 = obj82; - num++; - ref QuestSequence reference88 = ref span108[num]; + ref QuestSequence reference88 = ref span28[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -207861,37 +172425,30 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1019197u, new Vector3(-8.926575f, -187.08374f, -95.018005f), 613); obj83.Steps = list111; reference88 = obj83; - num++; - ref QuestSequence reference89 = ref span108[num]; + ref QuestSequence reference89 = ref span28[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - 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) + 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) { RestartNavigationIfCancelled = false }; - 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) + 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) { Fly = true }; obj84.Steps = list112; reference89 = obj84; - num++; - ref QuestSequence reference90 = ref span108[num]; + ref QuestSequence reference90 = ref span28[3]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -207899,9 +172456,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Duty, null, null, 613) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -207911,25 +172466,21 @@ public static class AssemblyQuestLoader }; obj85.Steps = list113; reference90 = obj85; - num++; - ref QuestSequence reference91 = ref span108[num]; + ref QuestSequence reference91 = ref span28[4]; QuestSequence obj86 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 8f }; obj86.Steps = list114; reference91 = obj86; - num++; - ref QuestSequence reference92 = ref span108[num]; + ref QuestSequence reference92 = ref span28[5]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -207937,20 +172488,17 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span30 = CollectionsMarshal.AsSpan(list115); + span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - index2++; - span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + span30[2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj87.Steps = list115; reference92 = obj87; questRoot11.QuestSequence = list108; @@ -207960,26 +172508,21 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list116)[0] = "JerryWester"; questRoot12.Author = list116; - index = 3; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference93 = ref span117[num]; + num = 3; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span31 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference93 = ref span31[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -207992,8 +172535,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list118; reference93 = obj88; - num++; - ref QuestSequence reference94 = ref span117[num]; + ref QuestSequence reference94 = ref span31[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -208001,163 +172543,118 @@ public static class AssemblyQuestLoader num2 = 6; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - ref QuestStep reference95 = ref span119[index2]; + Span span32 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference95 = ref span32[0]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list120; reference95 = questStep11; - index2++; - ref QuestStep reference96 = ref span119[index2]; + ref QuestStep reference96 = ref span32[1]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - 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); + 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); obj90.CompletionQuestVariablesFlags = list121; reference96 = obj90; - index2++; - ref QuestStep reference97 = ref span119[index2]; + ref QuestStep reference97 = ref span32[2]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list122; skipConditions7.StepIf = skipStepConditions; questStep12.SkipConditions = skipConditions7; reference97 = questStep12; - index2++; - ref QuestStep reference98 = ref span119[index2]; + ref QuestStep reference98 = ref span32[3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list123; reference98 = questStep13; - index2++; - ref QuestStep reference99 = ref span119[index2]; + ref QuestStep reference99 = ref span32[4]; 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 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list124; skipConditions8.StepIf = skipStepConditions2; questStep14.SkipConditions = skipConditions8; reference99 = questStep14; - index2++; - ref QuestStep reference100 = ref span119[index2]; + ref QuestStep reference100 = ref span32[5]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019490u, new Vector3(-6.240967f, -0.036807638f, -119.18823f), 635); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list125; reference100 = questStep15; obj89.Steps = list119; reference94 = obj89; - num++; - ref QuestSequence reference101 = ref span117[num]; + ref QuestSequence reference101 = ref span31[2]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = false }; - num2++; - span126[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635); + span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1019470u, new Vector3(152.11719f, 13.1533165f, -118.48633f), 635); obj91.Steps = list126; reference101 = obj91; questRoot12.QuestSequence = list117; @@ -208167,16 +172664,13 @@ public static class AssemblyQuestLoader num = 1; List list127 = new List(num); CollectionsMarshal.SetCount(list127, num); - Span span127 = CollectionsMarshal.AsSpan(list127); - index = 0; - span127[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list127)[0] = "JerryWester"; questRoot13.Author = list127; - index = 4; - List list128 = new List(index); - CollectionsMarshal.SetCount(list128, index); - Span span128 = CollectionsMarshal.AsSpan(list128); - num = 0; - ref QuestSequence reference102 = ref span128[num]; + num = 4; + List list128 = new List(num); + CollectionsMarshal.SetCount(list128, num); + Span span40 = CollectionsMarshal.AsSpan(list128); + ref QuestSequence reference102 = ref span40[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -208184,9 +172678,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -208199,22 +172691,18 @@ public static class AssemblyQuestLoader }; obj92.Steps = list129; reference102 = obj92; - num++; - ref QuestSequence reference103 = ref span128[num]; + ref QuestSequence reference103 = ref span40[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj93.Steps = list130; reference103 = obj93; - num++; - ref QuestSequence reference104 = ref span128[num]; + ref QuestSequence reference104 = ref span40[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -208222,138 +172710,100 @@ public static class AssemblyQuestLoader num2 = 5; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - ref QuestStep reference105 = ref span131[index2]; + Span span41 = CollectionsMarshal.AsSpan(list131); + ref QuestStep reference105 = ref span41[0]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list132; reference105 = questStep16; - index2++; - ref QuestStep reference106 = ref span131[index2]; + ref QuestStep reference106 = ref span41[1]; QuestStep questStep17 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.282135f, -2.2715392f, -115.13004f), 635); SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list133; skipConditions9.StepIf = skipStepConditions3; questStep17.SkipConditions = skipConditions9; reference106 = questStep17; - index2++; - ref QuestStep reference107 = ref span131[index2]; + ref QuestStep reference107 = ref span41[2]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list134; reference107 = questStep18; - index2++; - ref QuestStep reference108 = ref span131[index2]; + ref QuestStep reference108 = ref span41[3]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 2007953u, new Vector3(-35.568848f, 9.262146f, 100.20593f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - 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); + 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); obj95.CompletionQuestVariablesFlags = list135; reference108 = obj95; - index2++; - ref QuestStep reference109 = ref span131[index2]; + ref QuestStep reference109 = ref span41[4]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list136; reference109 = questStep19; obj94.Steps = list131; reference104 = obj94; - num++; - ref QuestSequence reference110 = ref span128[num]; + ref QuestSequence reference110 = ref span40[3]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span137[num2] = new QuestStep(EInteractionType.CompleteQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635); + span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1019476u, new Vector3(77.25635f, 0f, -14.175659f), 635); obj96.Steps = list137; reference110 = obj96; questRoot13.QuestSequence = list128; @@ -208363,16 +172813,13 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; questRoot14.Author = list138; - index = 3; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference111 = ref span139[num]; + num = 3; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span48 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference111 = ref span48[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -208380,14 +172827,12 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) + Span span49 = CollectionsMarshal.AsSpan(list140); + span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(0.3266226f, -2.281856f, -3.879818f), 635) { Mount = true }; - index2++; - span140[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) + span49[1] = new QuestStep(EInteractionType.AcceptQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -208400,125 +172845,88 @@ public static class AssemblyQuestLoader }; obj97.Steps = list140; reference111 = obj97; - num++; - ref QuestSequence reference112 = ref span139[num]; + ref QuestSequence reference112 = ref span48[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num2 = 0; - ref QuestStep reference113 = ref span141[num2]; + num2 = 5; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + Span span50 = CollectionsMarshal.AsSpan(list141); + ref QuestStep reference113 = ref span50[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1021168u, new Vector3(-160.38757f, -4.5343585f, -149.95044f), 635); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list142; reference113 = questStep20; - num2++; - ref QuestStep reference114 = ref span141[num2]; + ref QuestStep reference114 = ref span50[1]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list143; reference114 = questStep21; - num2++; - ref QuestStep reference115 = ref span141[num2]; + ref QuestStep reference115 = ref span50[2]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1021171u, new Vector3(79.78931f, -0.19127949f, 56.809326f), 635); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list144; reference115 = questStep22; - num2++; - ref QuestStep reference116 = ref span141[num2]; + ref QuestStep reference116 = ref span50[3]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list145; reference116 = questStep23; - num2++; - ref QuestStep reference117 = ref span141[num2]; + ref QuestStep reference117 = ref span50[4]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1021172u, new Vector3(179.85803f, 13.567484f, -144.15204f), 635); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list146; reference117 = questStep24; obj98.Steps = list141; reference112 = obj98; - num++; - ref QuestSequence reference118 = ref span139[num]; + ref QuestSequence reference118 = ref span48[2]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -208526,9 +172934,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021167u, new Vector3(-43.961243f, 0f, -15.030151f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -208546,26 +172952,21 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list148)[0] = "JerryWester"; questRoot15.Author = list148; - index = 3; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference119 = ref span149[num]; + num = 3; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span56 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference119 = ref span56[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -208578,8 +172979,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list150; reference119 = obj100; - num++; - ref QuestSequence reference120 = ref span149[num]; + ref QuestSequence reference120 = ref span56[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -208587,9 +172987,7 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 2008813u, new Vector3(143.5415f, 14.206055f, -164.72119f), 635) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 2008813u, new Vector3(143.5415f, 14.206055f, -164.72119f), 635) { AethernetShortcut = new AethernetShortcut { @@ -208599,18 +172997,15 @@ public static class AssemblyQuestLoader }; obj101.Steps = list151; reference120 = obj101; - num++; - ref QuestSequence reference121 = ref span149[num]; + ref QuestSequence reference121 = ref span56[2]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj102.Steps = list152; reference121 = obj102; questRoot15.QuestSequence = list149; @@ -208620,16 +173015,13 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - Span span153 = CollectionsMarshal.AsSpan(list153); - index = 0; - span153[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list153)[0] = "JerryWester"; questRoot16.Author = list153; - index = 5; - List list154 = new List(index); - CollectionsMarshal.SetCount(list154, index); - Span span154 = CollectionsMarshal.AsSpan(list154); - num = 0; - ref QuestSequence reference122 = ref span154[num]; + num = 5; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span57 = CollectionsMarshal.AsSpan(list154); + ref QuestSequence reference122 = ref span57[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -208637,9 +173029,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019517u, new Vector3(-653.0099f, 129.91537f, -510.67374f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -208652,22 +173042,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list155; reference122 = obj103; - num++; - ref QuestSequence reference123 = ref span154[num]; + ref QuestSequence reference123 = ref span57[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj104.Steps = list156; reference123 = obj104; - num++; - ref QuestSequence reference124 = ref span154[num]; + ref QuestSequence reference124 = ref span57[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -208675,9 +173061,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - ref QuestStep reference125 = ref span157[index2]; + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, null, new Vector3(-449.52835f, 105.07213f, -401.3476f), 612) { StopDistance = 0.5f, @@ -208686,42 +173070,34 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span158 = CollectionsMarshal.AsSpan(list158); - index3 = 0; - span158[index3] = 7504u; + CollectionsMarshal.AsSpan(list158)[0] = 7504u; obj106.KillEnemyDataIds = list158; reference125 = obj106; obj105.Steps = list157; reference124 = obj105; - num++; - ref QuestSequence reference126 = ref span154[num]; + ref QuestSequence reference126 = ref span57[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list159 = new List(index2); - CollectionsMarshal.SetCount(list159, index2); - Span span159 = CollectionsMarshal.AsSpan(list159); - num2 = 0; - ref QuestStep reference127 = ref span159[num2]; + num2 = 1; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list159)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-232.26196f, 64.93323f, -676.26465f), 612) { StopDistance = 2f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list160 = new List(index3); - CollectionsMarshal.SetCount(list160, index3); - Span span160 = CollectionsMarshal.AsSpan(list160); - num3 = 0; - span160[num3] = 7505u; + num3 = 1; + List list160 = new List(num3); + CollectionsMarshal.SetCount(list160, num3); + CollectionsMarshal.AsSpan(list160)[0] = 7505u; obj108.KillEnemyDataIds = list160; reference127 = obj108; obj107.Steps = list159; reference126 = obj107; - num++; - ref QuestSequence reference128 = ref span154[num]; + ref QuestSequence reference128 = ref span57[4]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -208729,11 +173105,9 @@ public static class AssemblyQuestLoader num2 = 2; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - 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) + 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) { Mount = false, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens @@ -208751,16 +173125,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -208768,9 +173139,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -208783,22 +173152,18 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -208806,23 +173171,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref QuestStep reference5 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; QuestStep obj5 = new QuestStep(EInteractionType.Combat, null, new Vector3(656.90076f, 231.05865f, -611.2172f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -208830,9 +173190,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - int index3 = 0; - span7[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list7)[0] = new ComplexCombatData { DataId = 6609u, MinimumKillCount = 2u, @@ -208843,8 +173201,7 @@ public static class AssemblyQuestLoader reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -208852,9 +173209,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021752u, new Vector3(14.724915f, 118.08588f, -776.82153f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -208867,26 +173222,21 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list9)[0] = "JerryWester"; questRoot2.Author = list9; - index = 6; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 6; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span2 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span2[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, SkipConditions = new SkipConditions @@ -208899,8 +173249,7 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span2[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -208908,27 +173257,21 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span2[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -208936,44 +173279,36 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - ref QuestStep reference11 = ref span14[index2]; + ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + Span span3 = CollectionsMarshal.AsSpan(list15); + span3[0] = 7217u; + span3[1] = 7553u; obj11.KillEnemyDataIds = list15; reference11 = obj11; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference12 = ref span10[num]; + ref QuestSequence reference12 = ref span2[4]; QuestSequence obj12 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span10[num]; + ref QuestSequence reference13 = ref span2[5]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -208981,9 +173316,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023147u, new Vector3(-429.4652f, 75.3867f, -124.712036f), 612) { StopDistance = 7f }; @@ -208996,26 +173329,21 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "liza"; + CollectionsMarshal.AsSpan(list18)[0] = "liza"; questRoot3.Author = list18; - index = 4; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference14 = ref span19[num]; + num = 4; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span4 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference14 = ref span4[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -209029,8 +173357,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span19[num]; + ref QuestSequence reference15 = ref span4[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -209038,91 +173365,66 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - ref QuestStep reference16 = ref span21[index2]; + Span span5 = CollectionsMarshal.AsSpan(list21); + ref QuestStep reference16 = ref span5[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list22; reference16 = questStep; - index2++; - ref QuestStep reference17 = ref span21[index2]; + ref QuestStep reference17 = ref span5[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008758u, new Vector3(-411.88678f, 71.82422f, -85.46582f), 612); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list23; reference17 = questStep2; - index2++; - ref QuestStep reference18 = ref span21[index2]; + ref QuestStep reference18 = ref span5[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list24; reference18 = questStep3; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference19 = ref span19[num]; + ref QuestSequence reference19 = ref span4[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj16.Steps = list25; reference19 = obj16; - num++; - ref QuestSequence reference20 = ref span19[num]; + ref QuestSequence reference20 = ref span4[3]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -209130,9 +173432,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2663) @@ -209146,30 +173446,24 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "liza"; + CollectionsMarshal.AsSpan(list27)[0] = "liza"; questRoot4.Author = list27; - index = 6; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference21 = ref span28[num]; + num = 6; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span9 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference21 = ref span9[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj18.Steps = list29; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span9[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -209177,30 +173471,24 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1023142u, new Vector3(-642.9083f, 130.25946f, -538.29254f), 612) { StopDistance = 1f }; obj19.Steps = list30; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span9[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj20.Steps = list31; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span28[num]; + ref QuestSequence reference24 = ref span9[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -209208,33 +173496,27 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1023153u, new Vector3(-680.10986f, 120.11875f, -241.13837f), 612) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1023153u, new Vector3(-680.10986f, 120.11875f, -241.13837f), 612) { Fly = true }; obj21.Steps = list32; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span28[num]; + ref QuestSequence reference25 = ref span9[4]; QuestSequence obj22 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj22.Steps = list33; reference25 = obj22; - num++; - ref QuestSequence reference26 = ref span28[num]; + ref QuestSequence reference26 = ref span9[5]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -209242,9 +173524,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -209259,30 +173539,24 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "liza"; + CollectionsMarshal.AsSpan(list35)[0] = "liza"; questRoot5.Author = list35; - index = 8; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference27 = ref span36[num]; + num = 8; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span10 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference27 = ref span10[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj24.Steps = list37; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span36[num]; + ref QuestSequence reference28 = ref span10[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -209290,30 +173564,24 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612) { Fly = true }; obj25.Steps = list38; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span10[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj26.Steps = list39; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span36[num]; + ref QuestSequence reference30 = ref span10[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -209321,30 +173589,24 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1023144u, new Vector3(-631.7998f, 130.39117f, -467.67383f), 612); obj27.Steps = list40; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span36[num]; + ref QuestSequence reference31 = ref span10[4]; QuestSequence obj28 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj28.Steps = list41; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span36[num]; + ref QuestSequence reference32 = ref span10[5]; QuestSequence obj29 = new QuestSequence { Sequence = 5 @@ -209352,42 +173614,35 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.5847f, 73.92399f, -104.41468f), 612) + Span span11 = CollectionsMarshal.AsSpan(list42); + span11[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-397.5847f, 73.92399f, -104.41468f), 612) { Fly = true }; - index2++; - span42[index2] = new QuestStep(EInteractionType.Interact, 2008761u, new Vector3(-398.30627f, 74.23511f, -106.70636f), 612); + span11[1] = new QuestStep(EInteractionType.Interact, 2008761u, new Vector3(-398.30627f, 74.23511f, -106.70636f), 612); obj29.Steps = list42; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span36[num]; + ref QuestSequence reference33 = ref span10[6]; QuestSequence obj30 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Mount = true }; - num2++; - span43[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.38403f, 62.880836f, -28.616083f), 612) + span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-424.38403f, 62.880836f, -28.616083f), 612) { Fly = true }; - num2++; - span43[num2] = new QuestStep(EInteractionType.Interact, 1023158u, new Vector3(-426.71857f, 63.23476f, -28.82434f), 612); + span12[2] = new QuestStep(EInteractionType.Interact, 1023158u, new Vector3(-426.71857f, 63.23476f, -28.82434f), 612); obj30.Steps = list43; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span36[num]; + ref QuestSequence reference34 = ref span10[7]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -209395,9 +173650,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019519u, new Vector3(-613.1228f, 130f, -529.839f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -209412,30 +173665,24 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot6.Author = list45; - index = 3; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference35 = ref span46[num]; + num = 3; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span13 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference35 = ref span13[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj32.Steps = list47; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span46[num]; + ref QuestSequence reference36 = ref span13[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -209443,9 +173690,8 @@ public static class AssemblyQuestLoader num2 = 6; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - ref QuestStep reference37 = ref span48[index2]; + Span span14 = CollectionsMarshal.AsSpan(list48); + ref QuestStep reference37 = ref span14[0]; QuestStep obj34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-59.62348f, 7.999999f, -59.427254f), 628) { RestartNavigationIfCancelled = false, @@ -209455,26 +173701,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - 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); + 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); obj34.CompletionQuestVariablesFlags = list49; reference37 = obj34; - index2++; - span48[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-74.28216f, 18f, -164.39622f), 628) + span14[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-74.28216f, 18f, -164.39622f), 628) { AethernetShortcut = new AethernetShortcut { @@ -209488,10 +173727,8 @@ public static class AssemblyQuestLoader Type = EJumpType.RepeatedJumps } }; - 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) + 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) { StopDistance = 1f, JumpDestination = new JumpDestination @@ -209499,8 +173736,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-31.778416f, 23.141376f, -159.92921f) } }; - index2++; - span48[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-32.529102f, 23.164635f, -159.86409f), 628) + span14[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-32.529102f, 23.164635f, -159.86409f), 628) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -209508,8 +173744,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-28.255697f, 24.146992f, -159.81477f) } }; - index2++; - ref QuestStep reference38 = ref span48[index2]; + ref QuestStep reference38 = ref span14[5]; QuestStep obj35 = new QuestStep(EInteractionType.Jump, null, new Vector3(-28.255697f, 24.146992f, -159.81477f), 628) { StopDistance = 0.5f, @@ -209523,35 +173758,26 @@ public static class AssemblyQuestLoader num3 = 6; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - 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); + 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); obj35.CompletionQuestVariablesFlags = list50; reference38 = obj35; obj33.Steps = list48; reference36 = obj33; - num++; - ref QuestSequence reference39 = ref span46[num]; + ref QuestSequence reference39 = ref span13[2]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -209569,16 +173795,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot7.Author = list52; - index = 4; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference40 = ref span53[num]; + num = 4; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span17 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference40 = ref span17[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -209586,27 +173809,21 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023304u, new Vector3(2.7008667f, 2.0507723E-06f, -52.84204f), 628); obj37.Steps = list54; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span17[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj38.Steps = list55; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span17[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 @@ -209614,26 +173831,21 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.UseItem, 1023305u, new Vector3(4.409851f, 2.100081E-06f, -52.903076f), 628) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.UseItem, 1023305u, new Vector3(4.409851f, 2.100081E-06f, -52.903076f), 628) { ItemId = 2002339u }; obj39.Steps = list56; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span17[3]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj40.Steps = list57; reference43 = obj40; questRoot7.QuestSequence = list53; @@ -209643,16 +173855,13 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list58)[0] = "JerryWester"; questRoot8.Author = list58; - index = 4; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference44 = ref span59[num]; + num = 4; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span18 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference44 = ref span18[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -209660,23 +173869,18 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019168u, new Vector3(501.33508f, 34.0062f, 781.70435f), 613); obj41.Steps = list60; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span59[num]; + ref QuestSequence reference45 = ref span18[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -209687,8 +173891,7 @@ public static class AssemblyQuestLoader }; obj42.Steps = list61; reference45 = obj42; - num++; - ref QuestSequence reference46 = ref span59[num]; + ref QuestSequence reference46 = ref span18[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -209696,39 +173899,31 @@ public static class AssemblyQuestLoader num2 = 3; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - 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]; + 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]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 1022745u, new Vector3(288.6853f, -0.5f, 393.78955f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list63 = new List(index3); - CollectionsMarshal.SetCount(list63, index3); - Span span63 = CollectionsMarshal.AsSpan(list63); - num3 = 0; - span63[num3] = 7497u; + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + CollectionsMarshal.AsSpan(list63)[0] = 7497u; obj44.KillEnemyDataIds = list63; reference47 = obj44; obj43.Steps = list62; reference46 = obj43; - num++; - ref QuestSequence reference48 = ref span59[num]; + ref QuestSequence reference48 = ref span18[3]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -209746,16 +173941,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list65)[0] = "JerryWester"; questRoot9.Author = list65; - index = 4; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference49 = ref span66[num]; + num = 4; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span20 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference49 = ref span20[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -209763,9 +173955,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021509u, new Vector3(107.80493f, 0.80715245f, -574.548f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -209778,22 +173968,18 @@ public static class AssemblyQuestLoader }; obj46.Steps = list67; reference49 = obj46; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span20[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj47.Steps = list68; reference50 = obj47; - num++; - ref QuestSequence reference51 = ref span66[num]; + ref QuestSequence reference51 = ref span20[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -209801,23 +173987,18 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1022401u, new Vector3(-158.89221f, -0.5f, -898.0087f), 613); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1022401u, new Vector3(-158.89221f, -0.5f, -898.0087f), 613); obj48.Steps = list69; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span66[num]; + ref QuestSequence reference52 = ref span20[3]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -209830,16 +174011,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list71)[0] = "JerryWester"; questRoot10.Author = list71; - index = 4; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference53 = ref span72[num]; + num = 4; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span21 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference53 = ref span21[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -209847,9 +174025,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021517u, new Vector3(85.09949f, 41.112656f, -717.89124f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -209862,22 +174038,18 @@ public static class AssemblyQuestLoader }; obj50.Steps = list73; reference53 = obj50; - num++; - ref QuestSequence reference54 = ref span72[num]; + ref QuestSequence reference54 = ref span21[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj51.Steps = list74; reference54 = obj51; - num++; - ref QuestSequence reference55 = ref span72[num]; + ref QuestSequence reference55 = ref span21[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -209885,25 +174057,20 @@ public static class AssemblyQuestLoader num2 = 2; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - 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); + 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); obj52.Steps = list75; reference55 = obj52; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span21[3]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -209916,16 +174083,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list77)[0] = "JerryWester"; questRoot11.Author = list77; - index = 5; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference57 = ref span78[num]; + num = 5; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span23 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference57 = ref span23[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -209933,9 +174097,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022102u, new Vector3(97.8866f, 2.096308f, -617.79205f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -209948,22 +174110,18 @@ public static class AssemblyQuestLoader }; obj54.Steps = list79; reference57 = obj54; - num++; - ref QuestSequence reference58 = ref span78[num]; + ref QuestSequence reference58 = ref span23[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj55.Steps = list80; reference58 = obj55; - num++; - ref QuestSequence reference59 = ref span78[num]; + ref QuestSequence reference59 = ref span23[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -209971,9 +174129,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 1022122u, new Vector3(134.66089f, 12.000001f, 69.047f), 628) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1022122u, new Vector3(134.66089f, 12.000001f, 69.047f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -209984,18 +174140,15 @@ public static class AssemblyQuestLoader }; obj56.Steps = list81; reference59 = obj56; - num++; - ref QuestSequence reference60 = ref span78[num]; + ref QuestSequence reference60 = ref span23[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -210005,8 +174158,7 @@ public static class AssemblyQuestLoader }; obj57.Steps = list82; reference60 = obj57; - num++; - ref QuestSequence reference61 = ref span78[num]; + ref QuestSequence reference61 = ref span23[4]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -210014,9 +174166,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022117u, new Vector3(-49.515564f, 2.6587384f, -636.56067f), 613) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022117u, new Vector3(-49.515564f, 2.6587384f, -636.56067f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -210029,30 +174179,24 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list84)[0] = "JerryWester"; questRoot12.Author = list84; - index = 5; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference62 = ref span85[num]; + num = 5; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span24 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference62 = ref span24[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list86; reference62 = obj59; - num++; - ref QuestSequence reference63 = ref span85[num]; + ref QuestSequence reference63 = ref span24[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -210060,23 +174204,19 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); obj60.Steps = list87; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span85[num]; + ref QuestSequence reference64 = ref span24[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.25f, Mount = false, @@ -210085,8 +174225,7 @@ public static class AssemblyQuestLoader Position = new Vector3(617.04565f, -17.818226f, -108.994415f) } }; - num2++; - span88[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.01825f, -18.570948f, -114.45003f), 613) + span25[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.01825f, -18.570948f, -114.45003f), 613) { StopDistance = 0.25f, Mount = false, @@ -210097,8 +174236,7 @@ public static class AssemblyQuestLoader }; obj61.Steps = list88; reference64 = obj61; - num++; - ref QuestSequence reference65 = ref span85[num]; + ref QuestSequence reference65 = ref span24[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -210106,9 +174244,8 @@ public static class AssemblyQuestLoader num2 = 3; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.17053f, -29.302427f, -130.22484f), 613) + Span span26 = CollectionsMarshal.AsSpan(list89); + span26[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(617.17053f, -29.302427f, -130.22484f), 613) { StopDistance = 0.25f, Mount = false, @@ -210117,8 +174254,7 @@ public static class AssemblyQuestLoader Position = new Vector3(604.2836f, -34.756268f, -136.64783f) } }; - index2++; - span89[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(601.5953f, -36.643044f, -144.1365f), 613) + span26[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(601.5953f, -36.643044f, -144.1365f), 613) { StopDistance = 0.25f, Mount = false, @@ -210127,27 +174263,23 @@ public static class AssemblyQuestLoader Position = new Vector3(598.6192f, -43.845043f, -154.23668f) } }; - index2++; - span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.64703f, -43.869747f, -156.01822f), 613); + span26[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(594.64703f, -43.869747f, -156.01822f), 613); obj62.Steps = list89; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span85[num]; + ref QuestSequence reference66 = ref span24[4]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1023358u, new Vector3(608.5145f, -3.4784377f, -92.82062f), 613); obj63.Steps = list90; reference66 = obj63; questRoot12.QuestSequence = list85; @@ -210161,16 +174293,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -210178,44 +174307,37 @@ public static class AssemblyQuestLoader int num2 = 3; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int num3 = 0; - span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span2 = CollectionsMarshal.AsSpan(list3); + span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3++; - span3[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - num3++; - span3[num3] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + span2[2] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -210223,9 +174345,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num3 = 0; - span5[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true, NextQuestId = new QuestId(2705) @@ -210239,30 +174359,24 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 4; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 4; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span3 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span3[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span3[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -210270,20 +174384,16 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - ref QuestStep reference6 = ref span9[num3]; + ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list9)[0]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1023282u, new Vector3(-32.791687f, 0.5718597f, -554.7723f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - int num4 = 1; - List list10 = new List(num4); - CollectionsMarshal.SetCount(list10, num4); - Span span10 = CollectionsMarshal.AsSpan(list10); - int index2 = 0; - span10[index2] = new DialogueChoice + int num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ309_02705_Q1_100_091"), @@ -210293,28 +174403,23 @@ public static class AssemblyQuestLoader reference6 = obj6; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference7 = ref span7[num]; + ref QuestSequence reference7 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - num3 = 1; - List list11 = new List(num3); - CollectionsMarshal.SetCount(list11, num3); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference8 = ref span11[num2]; + num2 = 1; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1023285u, new Vector3(119.493286f, 5.006782f, -862.6078f), 613) { Fly = true }; - index2 = 1; - List list12 = new List(index2); - CollectionsMarshal.SetCount(list12, index2); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new DialogueChoice + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ309_02705_Q2_100_151"), @@ -210324,8 +174429,7 @@ public static class AssemblyQuestLoader reference8 = obj8; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span7[num]; + ref QuestSequence reference9 = ref span3[3]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -210333,20 +174437,17 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - num3 = 0; - span13[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span4 = CollectionsMarshal.AsSpan(list13); + span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { RestartNavigationIfCancelled = false, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num3++; - span13[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + span4[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - num3++; - span13[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + span4[2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { Fly = true, NextQuestId = new QuestId(2706) @@ -210360,30 +174461,24 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "liza"; + CollectionsMarshal.AsSpan(list14)[0] = "liza"; questRoot3.Author = list14; - index = 7; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference10 = ref span15[num]; + num = 7; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference10 = ref span5[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span15[num]; + ref QuestSequence reference11 = ref span5[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -210391,20 +174486,16 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num3 = 0; - ref QuestStep reference12 = ref span17[num3]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1023287u, new Vector3(422.11023f, -98.96063f, -223.22424f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new DialogueChoice + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q1_000_100"), @@ -210414,35 +174505,30 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span5[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - num3 = 1; - List list19 = new List(num3); - CollectionsMarshal.SetCount(list19, num3); - Span span19 = CollectionsMarshal.AsSpan(list19); - num2 = 0; - ref QuestStep reference14 = ref span19[num2]; + num2 = 1; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1023288u, new Vector3(350.515f, -120.581055f, -316.76202f), 613) { Fly = true }; - index2 = 2; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = new DialogueChoice + num3 = 2; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + Span span6 = CollectionsMarshal.AsSpan(list20); + span6[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q2_000_160"), Answer = new ExcelRef("TEXT_STMBDZ310_02706_A2_000_161") }; - num4++; - span20[num4] = new DialogueChoice + span6[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ310_02706_Q3_000_200"), @@ -210452,8 +174538,7 @@ public static class AssemblyQuestLoader reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span15[num]; + ref QuestSequence reference15 = ref span5[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -210461,53 +174546,44 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) + Span span7 = CollectionsMarshal.AsSpan(list21); + span7[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(322.1539f, -121.22571f, -314.2446f), 613) { Mount = true, RestartNavigationIfCancelled = false }; - num3++; - span21[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.4342f, -162.28119f, 115.91883f), 613) + span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(198.4342f, -162.28119f, 115.91883f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - num3++; - span21[num3] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613); + span7[2] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613); obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span15[num]; + ref QuestSequence reference16 = ref span5[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - num3 = 1; - List list22 = new List(num3); - CollectionsMarshal.SetCount(list22, num3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref QuestStep reference17 = ref span22[num2]; + num2 = 1; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 2008809u, new Vector3(163.43933f, -172.01501f, 262.0736f), 613) { Fly = true, ItemId = 2002332u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = 7824u; + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = 7824u; obj17.KillEnemyDataIds = list23; reference17 = obj17; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference18 = ref span15[num]; + ref QuestSequence reference18 = ref span5[5]; QuestSequence obj18 = new QuestSequence { Sequence = 5 @@ -210515,44 +174591,37 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - span24[num3] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1023290u, new Vector3(222.33911f, -165.19557f, 137.89575f), 613) { Fly = true }; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span15[num]; + ref QuestSequence reference19 = ref span5[6]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, RestartNavigationIfCancelled = false }; - num2++; - span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.43794f, -133.31677f, 79.0077f), 613) + span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(163.43794f, -133.31677f, 79.0077f), 613) { DelaySecondsAtStart = 2f, DisableNavmesh = true }; - num2++; - span25[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.41638f, -199.01863f, -68.85027f), 613) + span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-96.41638f, -199.01863f, -68.85027f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - span25[num2] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) + span8[3] = new QuestStep(EInteractionType.CompleteQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613) { NextQuestId = new QuestId(2707) }; @@ -210565,16 +174634,13 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; questRoot4.Author = list26; - index = 3; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 3; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span9 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span9[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -210582,30 +174648,24 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - span28[num3] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023280u, new Vector3(-62.790894f, -198.96509f, -64.34735f), 613); obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span9[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span9[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -210613,19 +174673,15 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num3 = 0; - ref QuestStep reference23 = ref span30[num3]; + ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1023291u, new Vector3(8.46875f, -198.34206f, -157.15265f), 613) { Fly = true }; - index2 = 1; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num4 = 0; - span31[num4] = new DialogueChoice + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ311_02707_Q1_000_160"), @@ -210643,26 +174699,21 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list32)[0] = "JerryWester"; questRoot5.Author = list32; - index = 3; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref QuestSequence reference24 = ref span33[num]; + num = 3; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span10 = CollectionsMarshal.AsSpan(list33); + ref QuestSequence reference24 = ref span10[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -210675,8 +174726,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span33[num]; + ref QuestSequence reference25 = ref span10[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -210684,171 +174734,125 @@ public static class AssemblyQuestLoader num2 = 7; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num3 = 0; - ref QuestStep reference26 = ref span35[num3]; + Span span11 = CollectionsMarshal.AsSpan(list35); + ref QuestStep reference26 = ref span11[0]; QuestStep obj26 = new QuestStep(EInteractionType.UseItem, 2008461u, new Vector3(474.2351f, 28.824219f, -212.23773f), 614) { ItemId = 2002241u }; - 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); + 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); obj26.CompletionQuestVariablesFlags = list36; reference26 = obj26; - num3++; - ref QuestStep reference27 = ref span35[num3]; + ref QuestStep reference27 = ref span11[1]; QuestStep obj27 = new QuestStep(EInteractionType.UseItem, 2008462u, new Vector3(569.6649f, 43.930664f, -145.22015f), 614) { ItemId = 2002241u }; - 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); + 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); obj27.CompletionQuestVariablesFlags = list37; reference27 = obj27; - num3++; - ref QuestStep reference28 = ref span35[num3]; + ref QuestStep reference28 = ref span11[2]; QuestStep obj28 = new QuestStep(EInteractionType.UseItem, 2008463u, new Vector3(531.18164f, 85.40466f, -303.33417f), 614) { ItemId = 2002241u }; - 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); + 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); obj28.CompletionQuestVariablesFlags = list38; reference28 = obj28; - num3++; - ref QuestStep reference29 = ref span35[num3]; + ref QuestStep reference29 = ref span11[3]; QuestStep obj29 = new QuestStep(EInteractionType.UseItem, 2008464u, new Vector3(537.8042f, 61.57019f, -10.269409f), 614) { ItemId = 2002241u }; - 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); + 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); obj29.CompletionQuestVariablesFlags = list39; reference29 = obj29; - num3++; - ref QuestStep reference30 = ref span35[num3]; + ref QuestStep reference30 = ref span11[4]; QuestStep obj30 = new QuestStep(EInteractionType.UseItem, 2008466u, new Vector3(487.0221f, 65.537476f, -23.361572f), 614) { ItemId = 2002241u }; - 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); + 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); obj30.CompletionQuestVariablesFlags = list40; reference30 = obj30; - num3++; - span35[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.11514f, 40.55606f, -51.57855f), 614) + span11[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(445.11514f, 40.55606f, -51.57855f), 614) { DisableNavmesh = true, Mount = true }; - num3++; - ref QuestStep reference31 = ref span35[num3]; + ref QuestStep reference31 = ref span11[6]; QuestStep obj31 = new QuestStep(EInteractionType.UseItem, 2008465u, new Vector3(380.84985f, 41.031494f, -29.892456f), 614) { ItemId = 2002241u }; - 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); + 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); obj31.CompletionQuestVariablesFlags = list41; reference31 = obj31; obj25.Steps = list35; reference25 = obj25; - num++; - ref QuestSequence reference32 = ref span33[num]; + ref QuestSequence reference32 = ref span10[2]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj32.Steps = list42; reference32 = obj32; questRoot5.QuestSequence = list33; @@ -210858,16 +174862,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list43)[0] = "JerryWester"; questRoot6.Author = list43; - index = 8; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 8; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span18 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span18[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -210875,9 +174876,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019263u, new Vector3(451.56018f, 58.77665f, -188.3421f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -210890,22 +174889,18 @@ public static class AssemblyQuestLoader }; obj33.Steps = list45; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span18[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj34.Steps = list46; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span44[num]; + ref QuestSequence reference35 = ref span18[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -210913,91 +174908,66 @@ public static class AssemblyQuestLoader num2 = 3; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - ref QuestStep reference36 = ref span47[num3]; + Span span19 = CollectionsMarshal.AsSpan(list47); + ref QuestStep reference36 = ref span19[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008352u, new Vector3(379.23242f, 90.684326f, -134.72198f), 614); - 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); + 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); questStep.CompletionQuestVariablesFlags = list48; reference36 = questStep; - num3++; - ref QuestStep reference37 = ref span47[num3]; + ref QuestStep reference37 = ref span19[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2008354u, new Vector3(369.5276f, 97.61194f, -102.92212f), 614); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list49; reference37 = questStep2; - num3++; - ref QuestStep reference38 = ref span47[num3]; + ref QuestStep reference38 = ref span19[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2008353u, new Vector3(352.34607f, 97.61194f, -134.99658f), 614); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list50; reference38 = questStep3; obj35.Steps = list47; reference35 = obj35; - num++; - ref QuestSequence reference39 = ref span44[num]; + ref QuestSequence reference39 = ref span18[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; obj36.Steps = list51; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span44[num]; + ref QuestSequence reference40 = ref span18[4]; QuestSequence obj37 = new QuestSequence { Sequence = 4 @@ -211005,33 +174975,27 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = new QuestStep(EInteractionType.UseItem, 2008355u, new Vector3(332.96704f, 100.87732f, -109.14783f), 614) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.UseItem, 2008355u, new Vector3(332.96704f, 100.87732f, -109.14783f), 614) { ItemId = 2002213u }; obj37.Steps = list52; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span44[num]; + ref QuestSequence reference41 = ref span18[5]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Emote = EEmote.Clap }; obj38.Steps = list53; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span44[num]; + ref QuestSequence reference42 = ref span18[6]; QuestSequence obj39 = new QuestSequence { Sequence = 6 @@ -211039,23 +175003,18 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1019264u, new Vector3(362.35596f, 90.70435f, -164.72119f), 614); obj39.Steps = list54; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span44[num]; + ref QuestSequence reference43 = ref span18[7]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj40.Steps = list55; reference43 = obj40; questRoot6.QuestSequence = list44; @@ -211065,16 +175024,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list56)[0] = "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]; + num = 3; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span23 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference44 = ref span23[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -211082,9 +175038,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num3 = 0; - span58[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019313u, new Vector3(465.26282f, 58.52148f, -171.09949f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -211097,28 +175051,23 @@ public static class AssemblyQuestLoader }; obj41.Steps = list58; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span57[num]; + ref QuestSequence reference45 = ref span23[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list59 = new List(num3); - CollectionsMarshal.SetCount(list59, num3); - Span span59 = CollectionsMarshal.AsSpan(list59); - num2 = 0; - ref QuestStep reference46 = ref span59[num2]; + num2 = 1; + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + ref QuestStep reference46 = ref CollectionsMarshal.AsSpan(list59)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(151.29321f, -0.2997286f, 229.44983f), 614) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index2 = 1; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = new ComplexCombatData + num3 = 1; + List list60 = new List(num3); + CollectionsMarshal.SetCount(list60, num3); + CollectionsMarshal.AsSpan(list60)[0] = new ComplexCombatData { DataId = 6682u, MinimumKillCount = 3u, @@ -211129,8 +175078,7 @@ public static class AssemblyQuestLoader reference46 = obj43; obj42.Steps = list59; reference45 = obj42; - num++; - ref QuestSequence reference47 = ref span57[num]; + ref QuestSequence reference47 = ref span23[2]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -211138,9 +175086,7 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019295u, new Vector3(756.3439f, 98.04659f, -229.93823f), 614) + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019295u, new Vector3(756.3439f, 98.04659f, -229.93823f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -211153,26 +175099,21 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; questRoot8.Author = list62; - index = 8; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference48 = ref span63[num]; + num = 8; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span24 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference48 = ref span24[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -211185,8 +175126,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span63[num]; + ref QuestSequence reference49 = ref span24[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -211194,52 +175134,43 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - num3 = 0; - span65[num3] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj46.Steps = list65; reference49 = obj46; - num++; - ref QuestSequence reference50 = ref span63[num]; + ref QuestSequence reference50 = ref span24[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818195u }; - num2++; - span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614) + span25[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(439.41403f, -0.3f, 464.3263f), 614) { DisableNavmesh = true, Mount = true }; - num2++; - ref QuestStep reference51 = ref span66[num2]; + ref QuestStep reference51 = ref span25[2]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, 1022458u, new Vector3(210.95593f, 7.398857f, 500.26697f), 614) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + Span span26 = CollectionsMarshal.AsSpan(list67); + span26[0] = 7524u; + span26[1] = 7525u; obj48.KillEnemyDataIds = list67; reference51 = obj48; obj47.Steps = list66; reference50 = obj47; - num++; - ref QuestSequence reference52 = ref span63[num]; + ref QuestSequence reference52 = ref span24[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 @@ -211247,29 +175178,23 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num3 = 0; - span68[num3] = new QuestStep(EInteractionType.Interact, 2008518u, new Vector3(211.4137f, 8.255066f, 501.97595f), 614); + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2008518u, new Vector3(211.4137f, 8.255066f, 501.97595f), 614); obj49.Steps = list68; reference52 = obj49; - num++; - ref QuestSequence reference53 = ref span63[num]; + ref QuestSequence reference53 = ref span24[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj50.Steps = list69; reference53 = obj50; - num++; - ref QuestSequence reference54 = ref span63[num]; + ref QuestSequence reference54 = ref span24[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 @@ -211277,48 +175202,41 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num3 = 0; - span70[num3] = new QuestStep(EInteractionType.Dive, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) + Span span28 = CollectionsMarshal.AsSpan(list70); + span28[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(605.15845f, -0.5999999f, 499.43237f), 614) { StopDistance = 0.25f }; - num3++; - span70[num3] = new QuestStep(EInteractionType.Interact, 2008519u, new Vector3(619.8672f, -48.66101f, 559.83826f), 614) + span28[1] = new QuestStep(EInteractionType.Interact, 2008519u, new Vector3(619.8672f, -48.66101f, 559.83826f), 614) { DisableNavmesh = true, Mount = true }; obj51.Steps = list70; reference54 = obj51; - num++; - ref QuestSequence reference55 = ref span63[num]; + ref QuestSequence reference55 = ref span24[6]; QuestSequence obj52 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 0.25f, DisableNavmesh = true, Mount = true }; - num2++; - span71[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(617.7405f, -0.3f, 493.613f), 614) + span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(617.7405f, -0.3f, 493.613f), 614) { StopDistance = 0.25f }; - num2++; - span71[num2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); + span29[2] = new QuestStep(EInteractionType.Interact, 1022457u, new Vector3(529.56433f, 19.872318f, 350.24023f), 614); obj52.Steps = list71; reference55 = obj52; - num++; - ref QuestSequence reference56 = ref span63[num]; + ref QuestSequence reference56 = ref span24[7]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -211326,9 +175244,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019316u, new Vector3(434.89734f, 68.02076f, -125.01721f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; @@ -211341,26 +175257,21 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "Theo"; + CollectionsMarshal.AsSpan(list73)[0] = "Theo"; questRoot9.Author = list73; - index = 3; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference57 = ref span74[num]; + num = 3; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span30 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference57 = ref span30[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -211379,8 +175290,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list75; reference57 = obj54; - num++; - ref QuestSequence reference58 = ref span74[num]; + ref QuestSequence reference58 = ref span30[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -211388,66 +175298,49 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - ref QuestStep reference59 = ref span76[num3]; + Span span31 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference59 = ref span31[0]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2008520u, new Vector3(476.85962f, 58.304688f, -178.08807f), 614) { Mount = true }; - 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); + 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); obj56.CompletionQuestVariablesFlags = list77; reference59 = obj56; - num3++; - ref QuestStep reference60 = ref span76[num3]; + ref QuestStep reference60 = ref span31[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2008521u, new Vector3(477.8667f, 59.098145f, -177.66083f), 614); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list78; reference60 = questStep4; obj55.Steps = list76; reference58 = obj55; - num++; - ref QuestSequence reference61 = ref span74[num]; + ref QuestSequence reference61 = ref span30[2]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2748) @@ -211461,16 +175354,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "Theo"; + CollectionsMarshal.AsSpan(list80)[0] = "Theo"; questRoot10.Author = list80; - index = 6; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference62 = ref span81[num]; + num = 6; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span34 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference62 = ref span34[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -211478,9 +175368,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -211499,25 +175387,21 @@ public static class AssemblyQuestLoader }; obj58.Steps = list82; reference62 = obj58; - num++; - ref QuestSequence reference63 = ref span81[num]; + ref QuestSequence reference63 = ref span34[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj59.Steps = list83; reference63 = obj59; - num++; - ref QuestSequence reference64 = ref span81[num]; + ref QuestSequence reference64 = ref span34[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -211525,43 +175409,35 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = new QuestStep(EInteractionType.Emote, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Emote, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614) { Emote = EEmote.Rally }; obj60.Steps = list84; reference64 = obj60; - num++; - ref QuestSequence reference65 = ref span81[num]; + ref QuestSequence reference65 = ref span34[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - num3 = 1; - List list85 = new List(num3); - CollectionsMarshal.SetCount(list85, num3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference66 = ref span85[num2]; + num2 = 1; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, null, new Vector3(497.38757f, 55.17306f, 191.36812f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index2 = 1; - List list86 = new List(index2); - CollectionsMarshal.SetCount(list86, index2); - Span span86 = CollectionsMarshal.AsSpan(list86); - num4 = 0; - span86[num4] = 7539u; + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + CollectionsMarshal.AsSpan(list86)[0] = 7539u; obj62.KillEnemyDataIds = list86; reference66 = obj62; obj61.Steps = list85; reference65 = obj61; - num++; - ref QuestSequence reference67 = ref span81[num]; + ref QuestSequence reference67 = ref span34[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -211569,23 +175445,18 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - num3 = 0; - span87[num3] = new QuestStep(EInteractionType.Interact, 1022400u, new Vector3(499.9618f, 55.28981f, 191.18018f), 614); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1022400u, new Vector3(499.9618f, 55.28981f, 191.18018f), 614); obj63.Steps = list87; reference67 = obj63; - num++; - ref QuestSequence reference68 = ref span81[num]; + ref QuestSequence reference68 = ref span34[5]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - num3 = 1; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref QuestStep reference69 = ref span88[num2]; + num2 = 1; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list88)[0]; QuestStep obj65 = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, @@ -211603,12 +175474,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list89 = new List(num4); - CollectionsMarshal.SetCount(list89, num4); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new DialogueChoice + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ413_02736_Q1_000_000"), @@ -211626,16 +175495,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "Theo"; + CollectionsMarshal.AsSpan(list90)[0] = "Theo"; questRoot11.Author = list90; - index = 6; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference70 = ref span91[num]; + num = 6; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span35 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference70 = ref span35[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -211643,9 +175509,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - num3 = 0; - span92[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -211664,25 +175528,21 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference70 = obj66; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span35[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj67.Steps = list93; reference71 = obj67; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span35[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -211690,34 +175550,28 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = new QuestStep(EInteractionType.Interact, 1022421u, new Vector3(634.5464f, 86.07644f, -146.74603f), 614) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1022421u, new Vector3(634.5464f, 86.07644f, -146.74603f), 614) { Fly = true }; obj68.Steps = list94; reference72 = obj68; - num++; - ref QuestSequence reference73 = ref span91[num]; + ref QuestSequence reference73 = ref span35[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Emote = EEmote.Psych }; obj69.Steps = list95; reference73 = obj69; - num++; - ref QuestSequence reference74 = ref span91[num]; + ref QuestSequence reference74 = ref span35[4]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -211725,26 +175579,21 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = new QuestStep(EInteractionType.Interact, 1022424u, new Vector3(475.51685f, 68.02852f, -106.30963f), 614) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1022424u, new Vector3(475.51685f, 68.02852f, -106.30963f), 614) { Fly = true }; obj70.Steps = list96; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span91[num]; + ref QuestSequence reference75 = ref span35[5]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -211771,16 +175620,13 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "Theo"; + CollectionsMarshal.AsSpan(list98)[0] = "Theo"; questRoot12.Author = list98; - index = 5; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference76 = ref span99[num]; + num = 5; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span36 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference76 = ref span36[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -211788,9 +175634,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -211809,28 +175653,23 @@ public static class AssemblyQuestLoader }; obj72.Steps = list100; reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span99[num]; + ref QuestSequence reference77 = ref span36[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list101 = new List(num3); - CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - num2 = 0; - ref QuestStep reference78 = ref span101[num2]; + num2 = 1; + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list101)[0]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1022414u, new Vector3(605.249f, 67.79578f, -137.49908f), 614) { Fly = true }; - index2 = 1; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num4 = 0; - span102[num4] = new DialogueChoice + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ415_02738_Q1_000_000"), @@ -211840,8 +175679,7 @@ public static class AssemblyQuestLoader reference78 = obj74; obj73.Steps = list101; reference77 = obj73; - num++; - ref QuestSequence reference79 = ref span99[num]; + ref QuestSequence reference79 = ref span36[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 @@ -211849,100 +175687,75 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - ref QuestStep reference80 = ref span103[num3]; + Span span37 = CollectionsMarshal.AsSpan(list103); + ref QuestStep reference80 = ref span37[0]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 2008490u, new Vector3(627.8019f, 84.97742f, -98.49707f), 614) { Fly = true }; - 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); + 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); obj76.CompletionQuestVariablesFlags = list104; reference80 = obj76; - num3++; - ref QuestStep reference81 = ref span103[num3]; + ref QuestStep reference81 = ref span37[1]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 2008491u, new Vector3(664.8203f, 92.088135f, -107.774536f), 614) { Mount = true }; - 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); + 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); obj77.CompletionQuestVariablesFlags = list105; reference81 = obj77; - num3++; - ref QuestStep reference82 = ref span103[num3]; + ref QuestStep reference82 = ref span37[2]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 2008492u, new Vector3(657.98413f, 85.22156f, -150.56079f), 614) { Mount = true }; - 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); + 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); obj78.CompletionQuestVariablesFlags = list106; reference82 = obj78; obj75.Steps = list103; reference79 = obj75; - num++; - ref QuestSequence reference83 = ref span99[num]; + ref QuestSequence reference83 = ref span36[3]; QuestSequence obj79 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj79.Steps = list107; reference83 = obj79; - num++; - ref QuestSequence reference84 = ref span99[num]; + ref QuestSequence reference84 = ref span36[4]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -211950,9 +175763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - num3 = 0; - span108[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019312u, new Vector3(473.80774f, 58.448307f, -182.78784f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -211979,26 +175790,21 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "Theo"; + CollectionsMarshal.AsSpan(list109)[0] = "Theo"; questRoot13.Author = list109; - index = 7; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference85 = ref span110[num]; + num = 7; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span41 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference85 = ref span41[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -212017,8 +175823,7 @@ public static class AssemblyQuestLoader }; obj81.Steps = list111; reference85 = obj81; - num++; - ref QuestSequence reference86 = ref span110[num]; + ref QuestSequence reference86 = ref span41[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 @@ -212026,34 +175831,28 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - num3 = 0; - span112[num3] = new QuestStep(EInteractionType.Interact, 1022417u, new Vector3(365.6825f, 100.83898f, -93.91931f), 614) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1022417u, new Vector3(365.6825f, 100.83898f, -93.91931f), 614) { StopDistance = 0.5f, Fly = true }; obj82.Steps = list112; reference86 = obj82; - num++; - ref QuestSequence reference87 = ref span110[num]; + ref QuestSequence reference87 = ref span41[2]; QuestSequence obj83 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj83.Steps = list113; reference87 = obj83; - num++; - ref QuestSequence reference88 = ref span110[num]; + ref QuestSequence reference88 = ref span41[3]; QuestSequence obj84 = new QuestSequence { Sequence = 3 @@ -212061,43 +175860,35 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) { Fly = true }; obj84.Steps = list114; reference88 = obj84; - num++; - ref QuestSequence reference89 = ref span110[num]; + ref QuestSequence reference89 = ref span41[4]; QuestSequence obj85 = new QuestSequence { Sequence = 4 }; - num3 = 1; - List list115 = new List(num3); - CollectionsMarshal.SetCount(list115, num3); - Span span115 = CollectionsMarshal.AsSpan(list115); - num2 = 0; - ref QuestStep reference90 = ref span115[num2]; + num2 = 1; + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list115)[0]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(720.75977f, 116.93192f, -60.349487f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index2 = 1; - List list116 = new List(index2); - CollectionsMarshal.SetCount(list116, index2); - Span span116 = CollectionsMarshal.AsSpan(list116); - num4 = 0; - span116[num4] = 7540u; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = 7540u; obj86.KillEnemyDataIds = list116; reference90 = obj86; obj85.Steps = list115; reference89 = obj85; - num++; - ref QuestSequence reference91 = ref span110[num]; + ref QuestSequence reference91 = ref span41[5]; QuestSequence obj87 = new QuestSequence { Sequence = 5 @@ -212105,26 +175896,21 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - num3 = 0; - span117[num3] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1022418u, new Vector3(734.5845f, 119.698425f, -35.05005f), 614) { Fly = true }; obj87.Steps = list117; reference91 = obj87; - num++; - ref QuestSequence reference92 = ref span110[num]; + ref QuestSequence reference92 = ref span41[6]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -212151,16 +175937,13 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "Theo"; + CollectionsMarshal.AsSpan(list119)[0] = "Theo"; questRoot14.Author = list119; - index = 5; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference93 = ref span120[num]; + num = 5; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span42 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference93 = ref span42[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -212168,30 +175951,24 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = new QuestStep(EInteractionType.AcceptQuest, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022399u, new Vector3(392.69092f, 80.90235f, -194.9035f), 614); obj89.Steps = list121; reference93 = obj89; - num++; - ref QuestSequence reference94 = ref span120[num]; + ref QuestSequence reference94 = ref span42[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj90.Steps = list122; reference94 = obj90; - num++; - ref QuestSequence reference95 = ref span120[num]; + ref QuestSequence reference95 = ref span42[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -212199,31 +175976,25 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj91.Steps = list123; reference95 = obj91; - num++; - ref QuestSequence reference96 = ref span120[num]; + ref QuestSequence reference96 = ref span42[3]; QuestSequence obj92 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj92.Steps = list124; reference96 = obj92; - num++; - ref QuestSequence reference97 = ref span120[num]; + ref QuestSequence reference97 = ref span42[4]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue @@ -212231,9 +176002,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num3 = 0; - span125[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023465u, new Vector3(462.76025f, 68.01855f, -106.55377f), 614) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023465u, new Vector3(462.76025f, 68.01855f, -106.55377f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -212259,38 +176028,32 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "Theo"; + CollectionsMarshal.AsSpan(list126)[0] = "Theo"; questRoot15.Author = list126; - index = 4; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference98 = ref span127[num]; + num = 4; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span43 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference98 = ref span43[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; - num2++; - span128[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) + span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) { StopDistance = 0.25f }; obj94.Steps = list128; reference98 = obj94; - num++; - ref QuestSequence reference99 = ref span127[num]; + ref QuestSequence reference99 = ref span43[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -212298,39 +176061,33 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - num3 = 0; - span129[num3] = new QuestStep(EInteractionType.Interact, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj95.Steps = list129; reference99 = obj95; - num++; - ref QuestSequence reference100 = ref span127[num]; + ref QuestSequence reference100 = ref span43[2]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span130[num2] = new QuestStep(EInteractionType.Interact, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) + span45[1] = new QuestStep(EInteractionType.Interact, 1019298u, new Vector3(-318.87692f, 17.974895f, 508.29004f), 614) { StopDistance = 0.25f }; obj96.Steps = list130; reference100 = obj96; - num++; - ref QuestSequence reference101 = ref span127[num]; + ref QuestSequence reference101 = ref span43[3]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -212338,9 +176095,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - span131[num3] = new QuestStep(EInteractionType.CompleteQuest, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019261u, new Vector3(403.00586f, 76.169815f, -148.8518f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -212355,33 +176110,27 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot16.Author = list132; - index = 6; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference102 = ref span133[num]; + num = 6; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span46 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference102 = ref span46[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj98.Steps = list134; reference102 = obj98; - num++; - ref QuestSequence reference103 = ref span133[num]; + ref QuestSequence reference103 = ref span46[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -212389,35 +176138,29 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj99.Steps = list135; reference103 = obj99; - num++; - ref QuestSequence reference104 = ref span133[num]; + ref QuestSequence reference104 = ref span46[2]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span136[num2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); + span47[1] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); obj100.Steps = list136; reference104 = obj100; - num++; - ref QuestSequence reference105 = ref span133[num]; + ref QuestSequence reference105 = ref span46[3]; QuestSequence obj101 = new QuestSequence { Sequence = 3 @@ -212425,47 +176168,40 @@ public static class AssemblyQuestLoader num2 = 2; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - num3 = 0; - span137[num3] = new QuestStep(EInteractionType.Dive, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) + Span span48 = CollectionsMarshal.AsSpan(list137); + span48[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(-487.5986f, -0.5999999f, 578.5466f), 614) { DisableNavmesh = true }; - num3++; - span137[num3] = new QuestStep(EInteractionType.Interact, 2008799u, new Vector3(-549.7063f, -109.51398f, 569.32935f), 614) + span48[1] = new QuestStep(EInteractionType.Interact, 2008799u, new Vector3(-549.7063f, -109.51398f, 569.32935f), 614) { Mount = true, Fly = true }; obj101.Steps = list137; reference105 = obj101; - num++; - ref QuestSequence reference106 = ref span133[num]; + ref QuestSequence reference106 = ref span46[4]; QuestSequence obj102 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - num2++; - span138[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) + span49[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-463.34363f, 1.3011811f, 578.3476f), 614) { Fly = true }; - num2++; - span138[num2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); + span49[2] = new QuestStep(EInteractionType.Interact, 1023238u, new Vector3(-464.49988f, 1.3011812f, 577.32495f), 614); obj102.Steps = list138; reference106 = obj102; - num++; - ref QuestSequence reference107 = ref span133[num]; + ref QuestSequence reference107 = ref span46[5]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -212473,9 +176209,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true, NextQuestId = new QuestId(2749) @@ -212489,30 +176223,24 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - span140[index] = "Theo"; + CollectionsMarshal.AsSpan(list140)[0] = "Theo"; questRoot17.Author = list140; - index = 7; - List list141 = new List(index); - CollectionsMarshal.SetCount(list141, index); - Span span141 = CollectionsMarshal.AsSpan(list141); - num = 0; - ref QuestSequence reference108 = ref span141[num]; + num = 7; + List list141 = new List(num); + CollectionsMarshal.SetCount(list141, num); + Span span50 = CollectionsMarshal.AsSpan(list141); + ref QuestSequence reference108 = ref span50[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj104.Steps = list142; reference108 = obj104; - num++; - ref QuestSequence reference109 = ref span141[num]; + ref QuestSequence reference109 = ref span50[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -212520,27 +176248,23 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - num3 = 0; - span143[num3] = new QuestStep(EInteractionType.Interact, 1023239u, new Vector3(-392.72144f, 46.670254f, 452.93335f), 614) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1023239u, new Vector3(-392.72144f, 46.670254f, 452.93335f), 614) { StopDistance = 0.5f, Fly = true }; obj105.Steps = list143; reference109 = obj105; - num++; - ref QuestSequence reference110 = ref span141[num]; + ref QuestSequence reference110 = ref span50[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -212551,15 +176275,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span144[num2] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) + span51[1] = new QuestStep(EInteractionType.Interact, 1023240u, new Vector3(-258.6557f, 38.181896f, 217.9751f), 614) { Fly = true }; obj106.Steps = list144; reference110 = obj106; - num++; - ref QuestSequence reference111 = ref span141[num]; + ref QuestSequence reference111 = ref span50[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 @@ -212567,44 +176289,36 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num3 = 0; - ref QuestStep reference112 = ref span145[num3]; + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list145)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(-287.37323f, 39.150906f, 206.95801f), 614) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list146 = new List(num4); - CollectionsMarshal.SetCount(list146, num4); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = 7541u; + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = 7541u; obj108.KillEnemyDataIds = list146; reference112 = obj108; obj107.Steps = list145; reference111 = obj107; - num++; - ref QuestSequence reference113 = ref span141[num]; + ref QuestSequence reference113 = ref span50[4]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj109.Steps = list147; reference113 = obj109; - num++; - ref QuestSequence reference114 = ref span141[num]; + ref QuestSequence reference114 = ref span50[5]; QuestSequence obj110 = new QuestSequence { Sequence = 5 @@ -212612,26 +176326,21 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - span148[num3] = new QuestStep(EInteractionType.Interact, 2008801u, new Vector3(-234.24127f, 17.593567f, 486.9917f), 614) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 2008801u, new Vector3(-234.24127f, 17.593567f, 486.9917f), 614) { Fly = true }; obj110.Steps = list148; reference114 = obj110; - num++; - ref QuestSequence reference115 = ref span141[num]; + ref QuestSequence reference115 = ref span50[6]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2750) @@ -212649,16 +176358,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Theo"; + CollectionsMarshal.AsSpan(list)[0] = "Theo"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -212666,23 +176372,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(151.29321f, -0.2997286f, 229.44983f), 614) { Fly = true, @@ -212691,9 +176392,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list5)[0] = new ComplexCombatData { DataId = 6682u, MinimumKillCount = 3u @@ -212702,8 +176401,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -212711,30 +176409,24 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -212742,26 +176434,21 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1023243u, new Vector3(-88.85327f, -0.35101318f, 654.4442f), 614) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1023243u, new Vector3(-88.85327f, -0.35101318f, 654.4442f), 614) { Fly = true }; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2751) @@ -212775,16 +176462,13 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "Theo"; + CollectionsMarshal.AsSpan(list10)[0] = "Theo"; questRoot2.Author = list10; - index = 7; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference8 = ref span11[num]; + num = 7; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span2 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference8 = ref span2[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -212792,30 +176476,24 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023237u, new Vector3(-233.72241f, 17.628202f, 485.3131f), 614); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span11[num]; + ref QuestSequence reference9 = ref span2[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span11[num]; + ref QuestSequence reference10 = ref span2[2]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -212823,33 +176501,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1023245u, new Vector3(133.1654f, 13.172864f, 483.7871f), 614) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1023245u, new Vector3(133.1654f, 13.172864f, 483.7871f), 614) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span11[num]; + ref QuestSequence reference11 = ref span2[3]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span11[num]; + ref QuestSequence reference12 = ref span2[4]; QuestSequence obj12 = new QuestSequence { Sequence = 4 @@ -212857,43 +176529,35 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - ref QuestStep reference13 = ref span16[index2]; + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(447.20697f, 14.621715f, 673.4272f), 614) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list17 = new List(index3); - CollectionsMarshal.SetCount(list17, index3); - Span span17 = CollectionsMarshal.AsSpan(list17); - num3 = 0; - span17[num3] = 7525u; + num3 = 1; + List list17 = new List(num3); + CollectionsMarshal.SetCount(list17, num3); + CollectionsMarshal.AsSpan(list17)[0] = 7525u; obj13.KillEnemyDataIds = list17; reference13 = obj13; obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference14 = ref span11[num]; + ref QuestSequence reference14 = ref span2[5]; QuestSequence obj14 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj14.Steps = list18; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span11[num]; + ref QuestSequence reference15 = ref span2[6]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -212901,9 +176565,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023244u, new Vector3(-290.15033f, 17.31996f, 490.86743f), 614) { Fly = true, NextQuestId = new QuestId(2747) @@ -212917,26 +176579,21 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; - index = 3; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 3; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span3 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span3[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -212949,8 +176606,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span3[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -212958,9 +176614,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref QuestStep reference18 = ref span23[index2]; + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(659.4403f, -0.7996712f, -28.710917f), 622) { Fly = true, @@ -212969,9 +176623,7 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span24 = CollectionsMarshal.AsSpan(list24); - index3 = 0; - ref ComplexCombatData reference19 = ref span24[index3]; + ref ComplexCombatData reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; ComplexCombatData obj19 = new ComplexCombatData { DataId = 6692u, @@ -212980,37 +176632,28 @@ public static class AssemblyQuestLoader int num4 = 6; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); - 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; + 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; obj19.CompletionQuestVariablesFlags = list25; reference19 = obj19; obj18.ComplexCombatData = list24; reference18 = obj18; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference20 = ref span21[num]; + ref QuestSequence reference20 = ref span3[2]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; @@ -213023,16 +176666,13 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list27)[0] = "JerryWester"; questRoot4.Author = list27; - index = 3; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference21 = ref span28[num]; + num = 3; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span5 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference21 = ref span5[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -213040,9 +176680,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -213055,22 +176693,18 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span5[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj22.Steps = list30; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span5[2]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -213078,9 +176712,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022128u, new Vector3(588.00635f, -19.505651f, 316.57886f), 622); + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022128u, new Vector3(588.00635f, -19.505651f, 316.57886f), 622); obj23.Steps = list31; reference23 = obj23; questRoot4.QuestSequence = list28; @@ -213090,30 +176722,24 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list32)[0] = "JerryWester"; questRoot5.Author = list32; - index = 4; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref QuestSequence reference24 = ref span33[num]; + num = 4; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span6 = CollectionsMarshal.AsSpan(list33); + ref QuestSequence reference24 = ref span6[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span33[num]; + ref QuestSequence reference25 = ref span6[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -213121,30 +176747,24 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Snipe, 2008318u, new Vector3(-83.48212f, 33.21875f, -210.22363f), 622) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Snipe, 2008318u, new Vector3(-83.48212f, 33.21875f, -210.22363f), 622) { Comment = "Snipe sheep" }; obj25.Steps = list35; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span33[num]; + ref QuestSequence reference26 = ref span6[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj26.Steps = list36; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span33[num]; + ref QuestSequence reference27 = ref span6[3]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -213152,9 +176772,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019405u, new Vector3(343.58728f, 26.261887f, -326.55835f), 622); obj27.Steps = list37; reference27 = obj27; questRoot5.QuestSequence = list33; @@ -213164,26 +176782,21 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list38)[0] = "JerryWester"; questRoot6.Author = list38; - index = 4; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference28 = ref span39[num]; + num = 4; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span7 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference28 = ref span7[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -213201,8 +176814,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list40; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span39[num]; + ref QuestSequence reference29 = ref span7[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -213210,91 +176822,66 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1019430u, new Vector3(33.98181f, 114.90497f, -40.69586f), 622); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1019430u, new Vector3(33.98181f, 114.90497f, -40.69586f), 622); obj29.Steps = list41; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span39[num]; + ref QuestSequence reference30 = ref span7[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num2 = 0; - ref QuestStep reference31 = ref span42[num2]; + num2 = 3; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + Span span8 = CollectionsMarshal.AsSpan(list42); + ref QuestStep reference31 = ref span8[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2008925u, new Vector3(26.962646f, 115.464966f, -44.419067f), 622); - 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); + 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); questStep.CompletionQuestVariablesFlags = list43; reference31 = questStep; - num2++; - ref QuestStep reference32 = ref span42[num2]; + ref QuestStep reference32 = ref span8[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list44; reference32 = questStep2; - num2++; - ref QuestStep reference33 = ref span42[num2]; + ref QuestStep reference33 = ref span8[2]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2008926u, new Vector3(27.634033f, 115.464966f, -48.05072f), 622) { StopDistance = 4f }; - 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); + 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); obj31.CompletionQuestVariablesFlags = list45; reference33 = obj31; obj30.Steps = list42; reference30 = obj30; - num++; - ref QuestSequence reference34 = ref span39[num]; + ref QuestSequence reference34 = ref span7[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -213302,9 +176889,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023348u, new Vector3(79.24011f, 114.90497f, 95.994385f), 622); obj32.Steps = list46; reference34 = obj32; questRoot6.QuestSequence = list39; @@ -213314,30 +176899,24 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list47)[0] = "JerryWester"; questRoot7.Author = list47; - index = 3; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference35 = ref span48[num]; + num = 3; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span12 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference35 = ref span12[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj33.Steps = list49; reference35 = obj33; - num++; - ref QuestSequence reference36 = ref span48[num]; + ref QuestSequence reference36 = ref span12[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -213345,91 +176924,65 @@ public static class AssemblyQuestLoader num2 = 3; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - ref QuestStep reference37 = ref span50[index2]; + Span span13 = CollectionsMarshal.AsSpan(list50); + ref QuestStep reference37 = ref span13[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list51; reference37 = questStep3; - index2++; - ref QuestStep reference38 = ref span50[index2]; + ref QuestStep reference38 = ref span13[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022222u, new Vector3(-485.22168f, 2.6499166f, 609.94885f), 622); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list52; reference38 = questStep4; - index2++; - ref QuestStep reference39 = ref span50[index2]; + ref QuestStep reference39 = ref span13[2]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list53; reference39 = questStep5; obj34.Steps = list50; reference36 = obj34; - num++; - ref QuestSequence reference40 = ref span48[num]; + ref QuestSequence reference40 = ref span12[2]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num2 = 0; - ref QuestStep reference41 = ref span54[num2]; + num2 = 1; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list54)[0]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1023193u, new Vector3(-434.0429f, 2.5501096f, 650.01904f), 622); - index3 = 1; - List list55 = new List(index3); - CollectionsMarshal.SetCount(list55, index3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = new DialogueChoice + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ613_02791_Q1_000_000"), @@ -213450,16 +177003,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -213467,44 +177017,33 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 6; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1023131u, new Vector3(-88.304016f, -6.9999995f, -63.09613f), 628) { AethernetShortcut = new AethernetShortcut @@ -213513,26 +177052,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - 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); + 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); obj3.CompletionQuestVariablesFlags = list6; reference4 = obj3; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1023126u, new Vector3(32.60852f, 2.9999993f, -49.881836f), 628) { AethernetShortcut = new AethernetShortcut @@ -213544,23 +177076,16 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - 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); + 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); obj4.CompletionQuestVariablesFlags = list7; reference5 = obj4; - num2++; - ref QuestStep reference6 = ref span4[num2]; + ref QuestStep reference6 = ref span2[3]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1023130u, new Vector3(80.460815f, 4.000001f, 71.488525f), 628) { AethernetShortcut = new AethernetShortcut @@ -213569,47 +177094,33 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - 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); + 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); obj5.CompletionQuestVariablesFlags = list8; reference6 = obj5; - num2++; - ref QuestStep reference7 = ref span4[num2]; + ref QuestStep reference7 = ref span2[4]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list9; reference7 = questStep2; - num2++; - ref QuestStep reference8 = ref span4[num2]; + ref QuestStep reference8 = ref span2[5]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1023129u, new Vector3(17.593567f, 11.44387f, 174.45642f), 628) { AethernetShortcut = new AethernetShortcut @@ -213618,28 +177129,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeThavnairianConsulate } }; - 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); + 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); obj6.CompletionQuestVariablesFlags = list10; reference8 = obj6; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[2]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -213647,9 +177151,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference10 = ref span11[index2]; + ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj8 = new QuestStep(EInteractionType.CompleteQuest, 1022620u, new Vector3(-4.7455444f, 0.022830343f, -113.96973f), 628) { AethernetShortcut = new AethernetShortcut @@ -213661,9 +177163,7 @@ public static class AssemblyQuestLoader num3 = 1; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - num4 = 0; - span12[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDZ710_02813_Q1_000_031"), @@ -213680,30 +177180,24 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list13)[0] = "JerryWester"; questRoot2.Author = list13; - index = 5; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference11 = ref span14[num]; + num = 5; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span9 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference11 = ref span9[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj9.Steps = list15; reference11 = obj9; - num++; - ref QuestSequence reference12 = ref span14[num]; + ref QuestSequence reference12 = ref span9[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -213711,43 +177205,34 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - ref QuestStep reference13 = ref span16[index2]; + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list16)[0]; QuestStep obj11 = new QuestStep(EInteractionType.Combat, null, new Vector3(566.8916f, 72.80687f, 138.84087f), 612) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj11.KillEnemyDataIds = list17; reference13 = obj11; obj10.Steps = list16; reference12 = obj10; - num++; - ref QuestSequence reference14 = ref span14[num]; + ref QuestSequence reference14 = ref span9[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj12.Steps = list18; reference14 = obj12; - num++; - ref QuestSequence reference15 = ref span14[num]; + ref QuestSequence reference15 = ref span9[3]; QuestSequence obj13 = new QuestSequence { Sequence = 3 @@ -213755,23 +177240,18 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1021948u, new Vector3(608.97217f, 49.31076f, 327.10767f), 612); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1021948u, new Vector3(608.97217f, 49.31076f, 327.10767f), 612); obj13.Steps = list19; reference15 = obj13; - num++; - ref QuestSequence reference16 = ref span14[num]; + ref QuestSequence reference16 = ref span9[4]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj14.Steps = list20; reference16 = obj14; questRoot2.QuestSequence = list14; @@ -213781,16 +177261,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list21)[0] = "JerryWester"; questRoot3.Author = list21; - index = 3; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference17 = ref span22[num]; + num = 3; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span11 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference17 = ref span11[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -213798,9 +177275,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -213813,18 +177288,15 @@ public static class AssemblyQuestLoader }; obj15.Steps = list23; reference17 = obj15; - num++; - ref QuestSequence reference18 = ref span22[num]; + ref QuestSequence reference18 = ref span11[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference19 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(385.1642f, 74.01643f, 135.44316f), 612) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -213832,9 +177304,7 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num4 = 0; - span25[num4] = 6655u; + CollectionsMarshal.AsSpan(list25)[0] = 6655u; obj17.KillEnemyDataIds = list25; obj17.CombatItemUse = new CombatItemUse { @@ -213845,8 +177315,7 @@ public static class AssemblyQuestLoader reference19 = obj17; obj16.Steps = list24; reference18 = obj16; - num++; - ref QuestSequence reference20 = ref span22[num]; + ref QuestSequence reference20 = ref span11[2]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -213854,9 +177323,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020807u, new Vector3(433.9818f, 114.48304f, 233.29517f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -213869,33 +177336,27 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "liza"; + CollectionsMarshal.AsSpan(list27)[0] = "liza"; questRoot4.Author = list27; - index = 4; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference21 = ref span28[num]; + num = 4; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span12 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference21 = ref span12[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj19.Steps = list29; reference21 = obj19; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span12[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -213903,42 +177364,34 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1023160u, new Vector3(303.12048f, 46.087757f, 493.0647f), 612) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1023160u, new Vector3(303.12048f, 46.087757f, 493.0647f), 612) { Fly = true }; obj20.Steps = list30; reference22 = obj20; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span12[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref QuestStep reference24 = ref span31[num2]; + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2008763u, new Vector3(465.7511f, 77.56152f, 118.08948f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = 7545u; + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = 7545u; obj22.KillEnemyDataIds = list32; reference24 = obj22; obj21.Steps = list31; reference23 = obj21; - num++; - ref QuestSequence reference25 = ref span28[num]; + ref QuestSequence reference25 = ref span12[3]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -213946,9 +177399,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023161u, new Vector3(465.62903f, 77.67306f, 114.854614f), 612) { StopDistance = 7f, NextQuestId = new QuestId(2825) @@ -213962,33 +177413,27 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot5.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference26 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span13 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference26 = ref span13[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj24.Steps = list36; reference26 = obj24; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span13[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -213996,26 +177441,21 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1023162u, new Vector3(403.8911f, 114.18445f, 212.32922f), 612) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1023162u, new Vector3(403.8911f, 114.18445f, 212.32922f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj25.Steps = list37; reference27 = obj25; - num++; - ref QuestSequence reference28 = ref span35[num]; + ref QuestSequence reference28 = ref span13[2]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2826) @@ -214029,16 +177469,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot6.Author = list39; - index = 6; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference29 = ref span40[num]; + num = 6; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span14 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference29 = ref span14[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -214046,23 +177483,19 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023163u, new Vector3(305.16516f, 45.654415f, 491.59985f), 612); obj27.Steps = list41; reference29 = obj27; - num++; - ref QuestSequence reference30 = ref span40[num]; + ref QuestSequence reference30 = ref span14[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)612, SkipConditions = new SkipConditions @@ -214073,15 +177506,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span42[num2] = new QuestStep(EInteractionType.Interact, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + span15[1] = new QuestStep(EInteractionType.Interact, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { Fly = true }; obj28.Steps = list42; reference30 = obj28; - num++; - ref QuestSequence reference31 = ref span40[num]; + ref QuestSequence reference31 = ref span14[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -214089,35 +177520,29 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj29.Steps = list43; reference31 = obj29; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span14[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2002274u, GroundTarget = true }; obj30.Steps = list44; reference32 = obj30; - num++; - ref QuestSequence reference33 = ref span40[num]; + ref QuestSequence reference33 = ref span14[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -214125,27 +177550,22 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.UseItem, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002274u, GroundTarget = true }; obj31.Steps = list45; reference33 = obj31; - num++; - ref QuestSequence reference34 = ref span40[num]; + ref QuestSequence reference34 = ref span14[5]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2827) }; @@ -214158,16 +177578,13 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "liza"; + CollectionsMarshal.AsSpan(list47)[0] = "liza"; questRoot7.Author = list47; - index = 5; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference35 = ref span48[num]; + num = 5; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span16 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference35 = ref span16[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -214175,30 +177592,24 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612); + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023164u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612); obj33.Steps = list49; reference35 = obj33; - num++; - ref QuestSequence reference36 = ref span48[num]; + ref QuestSequence reference36 = ref span16[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj34.Steps = list50; reference36 = obj34; - num++; - ref QuestSequence reference37 = ref span48[num]; + ref QuestSequence reference37 = ref span16[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -214206,33 +177617,27 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 2008764u, new Vector3(608.1482f, 48.02002f, 362.6306f), 612) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2008764u, new Vector3(608.1482f, 48.02002f, 362.6306f), 612) { Fly = true }; obj35.Steps = list51; reference37 = obj35; - num++; - ref QuestSequence reference38 = ref span48[num]; + ref QuestSequence reference38 = ref span16[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj36.Steps = list52; reference38 = obj36; - num++; - ref QuestSequence reference39 = ref span48[num]; + ref QuestSequence reference39 = ref span16[4]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -214240,9 +177645,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, NextQuestId = new QuestId(2828) @@ -214256,30 +177659,24 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot8.Author = list54; - index = 5; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference40 = ref span55[num]; + num = 5; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span17 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference40 = ref span17[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list56; reference40 = obj38; - num++; - ref QuestSequence reference41 = ref span55[num]; + ref QuestSequence reference41 = ref span17[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -214287,9 +177684,8 @@ public static class AssemblyQuestLoader num2 = 2; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) + Span span18 = CollectionsMarshal.AsSpan(list57); + span18[0] = new QuestStep(EInteractionType.Interact, 1019531u, new Vector3(-70.2984f, 56.0216f, 210.22351f), 612) { TargetTerritoryId = (ushort)612, SkipConditions = new SkipConditions @@ -214300,8 +177696,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference42 = ref span57[index2]; + ref QuestStep reference42 = ref span18[1]; QuestStep obj40 = new QuestStep(EInteractionType.Combat, null, new Vector3(-641.61725f, 78.03014f, 118.72834f), 612) { StopDistance = 0.5f, @@ -214310,33 +177705,26 @@ public static class AssemblyQuestLoader num3 = 3; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span58 = CollectionsMarshal.AsSpan(list58); - num4 = 0; - span58[num4] = 7825u; - num4++; - span58[num4] = 7826u; - num4++; - span58[num4] = 7827u; + Span span19 = CollectionsMarshal.AsSpan(list58); + span19[0] = 7825u; + span19[1] = 7826u; + span19[2] = 7827u; obj40.KillEnemyDataIds = list58; reference42 = obj40; obj39.Steps = list57; reference41 = obj39; - num++; - ref QuestSequence reference43 = ref span55[num]; + ref QuestSequence reference43 = ref span17[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj41.Steps = list59; reference43 = obj41; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span17[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -214344,26 +177732,21 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 2008893u, new Vector3(-648.49316f, 48.41687f, 245.89917f), 612) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 2008893u, new Vector3(-648.49316f, 48.41687f, 245.89917f), 612) { Fly = true }; obj42.Steps = list60; reference44 = obj42; - num++; - ref QuestSequence reference45 = ref span55[num]; + ref QuestSequence reference45 = ref span17[4]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; @@ -214376,16 +177759,13 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list62)[0] = "JerryWester"; questRoot9.Author = list62; - index = 4; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference46 = ref span63[num]; + num = 4; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span20 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference46 = ref span20[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -214393,9 +177773,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020873u, new Vector3(-327.96222f, 258.90652f, 757.3815f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -214408,22 +177786,18 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference46 = obj44; - num++; - ref QuestSequence reference47 = ref span63[num]; + ref QuestSequence reference47 = ref span20[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj45.Steps = list65; reference47 = obj45; - num++; - ref QuestSequence reference48 = ref span63[num]; + ref QuestSequence reference48 = ref span20[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -214431,89 +177805,64 @@ public static class AssemblyQuestLoader num2 = 4; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.80753f, 258.90652f, 786.1918f), 620) + Span span21 = CollectionsMarshal.AsSpan(list66); + span21[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.80753f, 258.90652f, 786.1918f), 620) { Mount = true }; - index2++; - ref QuestStep reference49 = ref span66[index2]; + ref QuestStep reference49 = ref span21[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1023259u, new Vector3(-293.41577f, 258.9065f, 788.63196f), 620); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list67; reference49 = questStep3; - index2++; - ref QuestStep reference50 = ref span66[index2]; + ref QuestStep reference50 = ref span21[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list68; reference50 = questStep4; - index2++; - ref QuestStep reference51 = ref span66[index2]; + ref QuestStep reference51 = ref span21[3]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1020870u, new Vector3(-218.61603f, 257.52652f, 737.1786f), 620); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list69; reference51 = questStep5; obj46.Steps = list66; reference48 = obj46; - num++; - ref QuestSequence reference52 = ref span63[num]; + ref QuestSequence reference52 = ref span20[3]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj47.Steps = list70; reference52 = obj47; questRoot9.QuestSequence = list63; @@ -214527,16 +177876,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list)[0] = "JerryWester"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -214544,27 +177890,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023167u, new Vector3(313.28296f, 324.51355f, 362.4475f), 620); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -214572,26 +177912,22 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1023169u, new Vector3(-199.35913f, 258.90652f, 780.9109f), 620) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1023169u, new Vector3(-199.35913f, 258.90652f, 780.9109f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -214602,8 +177938,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + span2[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -214613,8 +177948,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span6[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) + span2[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -214629,12 +177963,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); + span2[3] = new QuestStep(EInteractionType.Interact, 1023168u, new Vector3(357.07642f, 325.1959f, 333.5775f), 620); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -214642,11 +177974,9 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - 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); + 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); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -214656,30 +177986,24 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list8)[0] = "JerryWester"; questRoot2.Author = list8; - index = 4; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 4; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -214687,91 +178011,66 @@ public static class AssemblyQuestLoader num2 = 3; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + Span span5 = CollectionsMarshal.AsSpan(list11); + ref QuestStep reference8 = ref span5[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list12; reference8 = questStep; - index2++; - ref QuestStep reference9 = ref span11[index2]; + ref QuestStep reference9 = ref span5[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1020886u, new Vector3(342.70227f, 325.54596f, 359.54822f), 620); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list13; reference9 = questStep2; - index2++; - ref QuestStep reference10 = ref span11[index2]; + ref QuestStep reference10 = ref span5[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list14; reference10 = questStep3; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span4[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj8.Steps = list15; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span9[num]; + ref QuestSequence reference12 = ref span4[3]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -214779,9 +178078,8 @@ public static class AssemblyQuestLoader num2 = 4; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) + Span span9 = CollectionsMarshal.AsSpan(list16); + span9[0] = new QuestStep(EInteractionType.Interact, 1021557u, new Vector3(-130.02216f, 305.38147f, 189.71533f), 620) { TargetTerritoryId = (ushort)620, SkipConditions = new SkipConditions @@ -214792,8 +178090,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) + span9[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.7183262f, 317.60666f, 141.11252f), 620) { SkipConditions = new SkipConditions { @@ -214803,8 +178100,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span16[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) + span9[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-791.2012f, 46.3994f, -15.904689f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -214819,8 +178115,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); + span9[3] = new QuestStep(EInteractionType.CompleteQuest, 1020893u, new Vector3(283.77197f, 322.87146f, 752.34607f), 620); obj9.Steps = list16; reference12 = obj9; questRoot2.QuestSequence = list9; @@ -214830,26 +178125,21 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list17)[0] = "JerryWester"; questRoot3.Author = list17; - index = 3; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 3; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span10 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span10[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -214862,8 +178152,7 @@ public static class AssemblyQuestLoader }; obj10.Steps = list19; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span10[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -214871,35 +178160,28 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - ref QuestStep reference15 = ref span20[index2]; + ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-257.40616f, 98.88382f, -488.98062f), 621) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list21 = new List(num4); - CollectionsMarshal.SetCount(list21, num4); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - span21[num3] = 7849u; + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = 7849u; obj12.KillEnemyDataIds = list21; reference15 = obj12; obj11.Steps = list20; reference14 = obj11; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span10[2]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -214912,16 +178194,13 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list23)[0] = "JerryWester"; questRoot4.Author = list23; - index = 3; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference17 = ref span24[num]; + num = 3; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span11 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference17 = ref span11[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -214929,9 +178208,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -214944,22 +178221,18 @@ public static class AssemblyQuestLoader }; obj14.Steps = list25; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span24[num]; + ref QuestSequence reference18 = ref span11[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-89.3111f, 42.999996f, -677.6074f), 621) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -214967,9 +178240,7 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - num4 = 0; - span27[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list27)[0] = new ComplexCombatData { DataId = 6651u, MinimumKillCount = 4u @@ -214978,8 +178249,7 @@ public static class AssemblyQuestLoader reference19 = obj16; obj15.Steps = list26; reference18 = obj15; - num++; - ref QuestSequence reference20 = ref span24[num]; + ref QuestSequence reference20 = ref span11[2]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -214987,9 +178257,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022990u, new Vector3(-524.58997f, 8.688546f, -19.424805f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -215002,26 +178270,21 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list29)[0] = "JerryWester"; questRoot5.Author = list29; - index = 5; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 5; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span13 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span13[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -215034,8 +178297,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list31; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span30[num]; + ref QuestSequence reference22 = ref span13[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -215043,32 +178305,26 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); obj19.Steps = list32; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span30[num]; + ref QuestSequence reference23 = ref span13[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Interact, 2008779u, new Vector3(-56.229553f, -339.04022f, -103.89868f), 621); + span14[1] = new QuestStep(EInteractionType.Interact, 2008779u, new Vector3(-56.229553f, -339.04022f, -103.89868f), 621); obj20.Steps = list33; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span13[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -215076,31 +178332,26 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) + Span span15 = CollectionsMarshal.AsSpan(list34); + span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-90.963715f, -0.6f, -263.12756f), 621) { StopDistance = 0.5f, DisableNavmesh = true, Mount = true, RestartNavigationIfCancelled = false }; - index2++; - span34[index2] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); + span15[1] = new QuestStep(EInteractionType.Interact, 1023174u, new Vector3(-82.29199f, 1.134715f, -297.56616f), 621); obj21.Steps = list34; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span30[num]; + ref QuestSequence reference25 = ref span13[4]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -215113,16 +178364,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; questRoot6.Author = list36; - index = 3; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference26 = ref span37[num]; + num = 3; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span16 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference26 = ref span16[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -215130,9 +178378,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -215145,33 +178391,28 @@ public static class AssemblyQuestLoader }; obj23.Steps = list38; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span37[num]; + ref QuestSequence reference27 = ref span16[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818165u }; - num2++; - ref QuestStep reference28 = ref span39[num2]; + ref QuestStep reference28 = ref span17[1]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-197.38828f, 3.820687f, 288.09766f), 621) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list40 = new List(num4); - CollectionsMarshal.SetCount(list40, num4); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - span40[num3] = 6599u; + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + CollectionsMarshal.AsSpan(list40)[0] = 6599u; obj25.KillEnemyDataIds = list40; obj25.CombatItemUse = new CombatItemUse { @@ -215182,8 +178423,7 @@ public static class AssemblyQuestLoader reference28 = obj25; obj24.Steps = list39; reference27 = obj24; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span16[2]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -215191,9 +178431,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022991u, new Vector3(-539.6353f, 7.6119823f, 52.140015f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; @@ -215206,26 +178444,21 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot7.Author = list42; - index = 5; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference30 = ref span43[num]; + num = 5; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span18 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference30 = ref span18[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -215239,8 +178472,7 @@ public static class AssemblyQuestLoader }; obj27.Steps = list44; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span43[num]; + ref QuestSequence reference31 = ref span18[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -215248,9 +178480,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Interact, 1022505u, new Vector3(192.46204f, -2.5453281f, 73.746826f), 132) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1022505u, new Vector3(192.46204f, -2.5453281f, 73.746826f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -215261,18 +178491,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list45; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span43[num]; + ref QuestSequence reference32 = ref span18[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -215282,8 +178509,7 @@ public static class AssemblyQuestLoader }; obj29.Steps = list46; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span43[num]; + ref QuestSequence reference33 = ref span18[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -215291,27 +178517,22 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1022508u, new Vector3(-71.33594f, -7.877128f, 240.34485f), 152) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1022508u, new Vector3(-71.33594f, -7.877128f, 240.34485f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj30.Steps = list47; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span43[num]; + ref QuestSequence reference34 = ref span18[4]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2891) @@ -215325,16 +178546,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot8.Author = list49; - index = 5; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference35 = ref span50[num]; + num = 5; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span19 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference35 = ref span19[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -215342,9 +178560,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022512u, new Vector3(-653.04034f, 130f, -522.1485f), 612) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -215358,25 +178574,21 @@ public static class AssemblyQuestLoader }; obj32.Steps = list51; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span50[num]; + ref QuestSequence reference36 = ref span19[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj33.Steps = list52; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span50[num]; + ref QuestSequence reference37 = ref span19[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -215384,9 +178596,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - ref QuestStep reference38 = ref span53[index2]; + ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list53)[0]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(-247.82184f, 61.395123f, -484.64178f), 612) { Fly = true, @@ -215395,34 +178605,28 @@ public static class AssemblyQuestLoader num3 = 2; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = 7494u; - num4++; - span54[num4] = 7499u; + Span span20 = CollectionsMarshal.AsSpan(list54); + span20[0] = 7494u; + span20[1] = 7499u; obj35.KillEnemyDataIds = list54; reference38 = obj35; obj34.Steps = list53; reference37 = obj34; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span19[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj36.Steps = list55; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span50[num]; + ref QuestSequence reference40 = ref span19[4]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -215430,9 +178634,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022513u, new Vector3(-650.9041f, 130f, -520.8667f), 612) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022513u, new Vector3(-650.9041f, 130f, -520.8667f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, NextQuestId = new QuestId(2892) @@ -215446,26 +178648,21 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot9.Author = list57; - index = 5; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference41 = ref span58[num]; + num = 5; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span21 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference41 = ref span21[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, @@ -215479,8 +178676,7 @@ public static class AssemblyQuestLoader }; obj38.Steps = list59; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span58[num]; + ref QuestSequence reference42 = ref span21[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -215488,33 +178684,27 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1022519u, new Vector3(-616.8155f, 130.14346f, -469.41333f), 612) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1022519u, new Vector3(-616.8155f, 130.14346f, -469.41333f), 612) { Fly = true }; obj39.Steps = list60; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span58[num]; + ref QuestSequence reference43 = ref span21[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj40.Steps = list61; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span21[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -215522,28 +178712,23 @@ public static class AssemblyQuestLoader num2 = 2; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.37027f, 45.90861f, -362.9656f), 612) + Span span22 = CollectionsMarshal.AsSpan(list62); + span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.37027f, 45.90861f, -362.9656f), 612) { Fly = true }; - index2++; - span62[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022522u, new Vector3(214.86218f, 45.93671f, -360.61652f), 612); + span22[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022522u, new Vector3(214.86218f, 45.93671f, -360.61652f), 612); obj41.Steps = list62; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span58[num]; + ref QuestSequence reference45 = ref span21[4]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(2893) @@ -215557,16 +178742,13 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot10.Author = list64; - index = 6; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference46 = ref span65[num]; + num = 6; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span23 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference46 = ref span23[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -215574,9 +178756,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - ref QuestStep reference47 = ref span66[index2]; + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list66)[0]; QuestStep obj44 = new QuestStep(EInteractionType.AcceptQuest, 1022523u, new Vector3(-653.04034f, 130f, -522.17896f), 612) { StopDistance = 5f, @@ -215589,12 +178769,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list67 = new List(num4); - CollectionsMarshal.SetCount(list67, num4); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - span67[num3] = new DialogueChoice + num3 = 1; + List list67 = new List(num3); + CollectionsMarshal.SetCount(list67, num3); + CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD680_02893_Q1_000_000"), @@ -215604,25 +178782,21 @@ public static class AssemblyQuestLoader reference47 = obj44; obj43.Steps = list66; reference46 = obj43; - num++; - ref QuestSequence reference48 = ref span65[num]; + ref QuestSequence reference48 = ref span23[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj45.Steps = list68; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span65[num]; + ref QuestSequence reference49 = ref span23[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -215630,9 +178804,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - ref QuestStep reference50 = ref span69[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list69)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2008682u, new Vector3(-610.2846f, 42.801514f, 290.79114f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -215640,35 +178812,29 @@ public static class AssemblyQuestLoader num3 = 2; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num4 = 0; - span70[num4] = 7494u; - num4++; - span70[num4] = 7499u; + Span span24 = CollectionsMarshal.AsSpan(list70); + span24[0] = 7494u; + span24[1] = 7499u; obj47.KillEnemyDataIds = list70; reference50 = obj47; obj46.Steps = list69; reference49 = obj46; - num++; - ref QuestSequence reference51 = ref span65[num]; + ref QuestSequence reference51 = ref span23[3]; QuestSequence obj48 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj48.Steps = list71; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span65[num]; + ref QuestSequence reference52 = ref span23[4]; QuestSequence obj49 = new QuestSequence { Sequence = 4 @@ -215676,16 +178842,12 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - ref QuestStep reference53 = ref span72[index2]; + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list72)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022527u, new Vector3(-555.871f, 91.035034f, -185.8396f), 612); - num4 = 1; - List list73 = new List(num4); - CollectionsMarshal.SetCount(list73, num4); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = new DialogueChoice + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBBRD680_02893_Q2_000_000"), @@ -215695,18 +178857,15 @@ public static class AssemblyQuestLoader reference53 = questStep4; obj49.Steps = list72; reference52 = obj49; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span23[5]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(2894) @@ -215720,16 +178879,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "liza"; + CollectionsMarshal.AsSpan(list75)[0] = "liza"; questRoot11.Author = list75; - index = 8; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference55 = ref span76[num]; + num = 8; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span25 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference55 = ref span25[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -215737,9 +178893,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022528u, new Vector3(-52.35376f, -3.326972f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -215752,18 +178906,16 @@ public static class AssemblyQuestLoader }; obj51.Steps = list77; reference55 = obj51; - num++; - ref QuestSequence reference56 = ref span76[num]; + ref QuestSequence reference56 = ref span25[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list78 = new List(index2); - CollectionsMarshal.SetCount(list78, index2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num2 = 0; - ref QuestStep reference57 = ref span78[num2]; + num2 = 2; + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + Span span26 = CollectionsMarshal.AsSpan(list78); + ref QuestStep reference57 = ref span26[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1000254u, new Vector3(157.7019f, 15.900381f, -270.34418f), 133) { AethernetShortcut = new AethernetShortcut @@ -215775,23 +178927,16 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - 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); + 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); obj53.CompletionQuestVariablesFlags = list79; reference57 = obj53; - num2++; - ref QuestStep reference58 = ref span78[num2]; + ref QuestStep reference58 = ref span26[1]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1000200u, new Vector3(209.55212f, 0.9999819f, 35.01941f), 132) { StopDistance = 5f, @@ -215801,28 +178946,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaArcher } }; - 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); + 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); obj54.CompletionQuestVariablesFlags = list80; reference58 = obj54; obj52.Steps = list78; reference56 = obj52; - num++; - ref QuestSequence reference59 = ref span76[num]; + ref QuestSequence reference59 = ref span25[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -215830,9 +178968,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AethernetShortcut = new AethernetShortcut { @@ -215842,38 +178978,32 @@ public static class AssemblyQuestLoader }; obj55.Steps = list81; reference59 = obj55; - num++; - ref QuestSequence reference60 = ref span76[num]; + ref QuestSequence reference60 = ref span25[3]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; - num2++; - span82[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-248.3785f, -74.95606f, 424.39832f), 154) + span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-248.3785f, -74.95606f, 424.39832f), 154) { Fly = true }; - num2++; - span82[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022529u, new Vector3(-248.52368f, -75.63651f, 426.9015f), 154); + span29[2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022529u, new Vector3(-248.52368f, -75.63651f, 426.9015f), 154); obj56.Steps = list82; reference60 = obj56; - num++; - span76[num] = new QuestSequence + span25[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference61 = ref span76[num]; + ref QuestSequence reference61 = ref span25[5]; QuestSequence obj57 = new QuestSequence { Sequence = 5 @@ -215881,33 +179011,27 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1022530u, new Vector3(-246.93683f, -75.542496f, 426.5354f), 154) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1022530u, new Vector3(-246.93683f, -75.542496f, 426.5354f), 154) { StopDistance = 5f }; obj57.Steps = list83; reference61 = obj57; - num++; - ref QuestSequence reference62 = ref span76[num]; + ref QuestSequence reference62 = ref span25[6]; QuestSequence obj58 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj58.Steps = list84; reference62 = obj58; - num++; - ref QuestSequence reference63 = ref span76[num]; + ref QuestSequence reference63 = ref span25[7]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -215915,9 +179039,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006750u, new Vector3(16.464417f, 6.750492f, -7.3396606f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill @@ -215935,16 +179057,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -215952,9 +179071,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -215968,18 +179085,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -215989,13 +179103,11 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - span2[num] = new QuestSequence + span[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[3]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -216003,9 +179115,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, NextQuestId = new QuestId(2901) @@ -216019,26 +179129,21 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 6; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 6; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span2 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span2[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -216052,8 +179157,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -216061,27 +179165,22 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1022806u, new Vector3(-164.5686f, 81.072655f, -294.33136f), 180) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1022806u, new Vector3(-164.5686f, 81.072655f, -294.33136f), 180) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span7[num]; + ref QuestSequence reference6 = ref span2[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list10 = new List(index2); - CollectionsMarshal.SetCount(list10, index2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num2 = 0; - ref QuestStep reference7 = ref span10[num2]; + num2 = 1; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list10)[0]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2008649u, new Vector3(-295.85718f, 53.20813f, -283.98572f), 180) { Fly = true, @@ -216090,17 +179189,14 @@ public static class AssemblyQuestLoader int num3 = 2; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span11 = CollectionsMarshal.AsSpan(list11); - int num4 = 0; - span11[num4] = 7500u; - num4++; - span11[num4] = 7501u; + Span span3 = CollectionsMarshal.AsSpan(list11); + span3[0] = 7500u; + span3[1] = 7501u; obj7.KillEnemyDataIds = list11; reference7 = obj7; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span7[num]; + ref QuestSequence reference8 = ref span2[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -216108,45 +179204,37 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - ref QuestStep reference9 = ref span12[index2]; + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 2008650u, new Vector3(-408.9876f, 46.860474f, -305.43988f), 180) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + Span span4 = CollectionsMarshal.AsSpan(list13); + span4[0] = 7500u; + span4[1] = 7501u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span7[num]; + ref QuestSequence reference10 = ref span2[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span7[num]; + ref QuestSequence reference11 = ref span2[5]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -216154,9 +179242,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -216171,26 +179257,21 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 8; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 8; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span5 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -216204,8 +179285,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span5[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -216213,27 +179293,22 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1022816u, new Vector3(-4.3183594f, 39.78392f, 197.52808f), 137) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1022816u, new Vector3(-4.3183594f, 39.78392f, 197.52808f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span5[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 1; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, 2008651u, new Vector3(-4.8066406f, 39.475098f, 348.2871f), 137) { Fly = true, @@ -216242,17 +179317,14 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - num4 = 0; - span21[num4] = 7500u; - num4++; - span21[num4] = 7501u; + Span span6 = CollectionsMarshal.AsSpan(list21); + span6[0] = 7500u; + span6[1] = 7501u; obj15.KillEnemyDataIds = list21; reference15 = obj15; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference16 = ref span17[num]; + ref QuestSequence reference16 = ref span5[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -216260,38 +179332,31 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference17 = ref span22[index2]; + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list22)[0]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 2008652u, new Vector3(-82.59711f, 38.437378f, 501.42664f), 137) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + Span span7 = CollectionsMarshal.AsSpan(list23); + span7[0] = 7502u; + span7[1] = 7503u; obj17.KillEnemyDataIds = list23; reference17 = obj17; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference18 = ref span17[num]; + ref QuestSequence reference18 = ref span5[4]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference19 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2008653u, new Vector3(-115.70923f, 49.66809f, 603.02124f), 137) { Fly = true, @@ -216300,17 +179365,14 @@ public static class AssemblyQuestLoader num3 = 2; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - num4 = 0; - span25[num4] = 7502u; - num4++; - span25[num4] = 7503u; + Span span8 = CollectionsMarshal.AsSpan(list25); + span8[0] = 7502u; + span8[1] = 7503u; obj19.KillEnemyDataIds = list25; reference19 = obj19; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference20 = ref span17[num]; + ref QuestSequence reference20 = ref span5[5]; QuestSequence obj20 = new QuestSequence { Sequence = 5 @@ -216318,33 +179380,27 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1022821u, new Vector3(-149.85895f, 55.805172f, 642.7251f), 137) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1022821u, new Vector3(-149.85895f, 55.805172f, 642.7251f), 137) { Fly = true }; obj20.Steps = list26; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span17[num]; + ref QuestSequence reference21 = ref span5[6]; QuestSequence obj21 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj21.Steps = list27; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span17[num]; + ref QuestSequence reference22 = ref span5[7]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -216352,9 +179408,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -216369,26 +179423,21 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "liza"; + CollectionsMarshal.AsSpan(list29)[0] = "liza"; questRoot4.Author = list29; - index = 6; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference23 = ref span30[num]; + num = 6; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span9 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference23 = ref span9[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, @@ -216402,8 +179451,7 @@ public static class AssemblyQuestLoader }; obj23.Steps = list31; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span9[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -216411,34 +179459,26 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference25 = ref span32[index2]; + Span span10 = CollectionsMarshal.AsSpan(list32); + ref QuestStep reference25 = ref span10[0]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1019355u, new Vector3(556.8779f, -19.505642f, 397.14648f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; - 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); + 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); obj25.CompletionQuestVariablesFlags = list33; reference25 = obj25; - index2++; - ref QuestStep reference26 = ref span32[index2]; + ref QuestStep reference26 = ref span10[1]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1019347u, new Vector3(575.2803f, -19.505632f, 343.74f), 622) { Fly = true @@ -216446,59 +179486,43 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - 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); + 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); obj26.CompletionQuestVariablesFlags = list34; reference26 = obj26; - index2++; - ref QuestStep reference27 = ref span32[index2]; + ref QuestStep reference27 = ref span10[2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1019354u, new Vector3(573.6323f, -19.505655f, 311.6654f), 622) { Fly = true }; - 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); + 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); obj27.CompletionQuestVariablesFlags = list35; reference27 = obj27; obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference28 = ref span30[num]; + ref QuestSequence reference28 = ref span9[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference29 = ref span36[num2]; + num2 = 1; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list36)[0]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(-186.52919f, 2.935472f, 369.28806f), 622) { StopDistance = 0.5f, @@ -216508,15 +179532,12 @@ public static class AssemblyQuestLoader num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span37 = CollectionsMarshal.AsSpan(list37); - num4 = 0; - span37[num4] = 6641u; + CollectionsMarshal.AsSpan(list37)[0] = 6641u; obj29.KillEnemyDataIds = list37; reference29 = obj29; obj28.Steps = list36; reference28 = obj28; - num++; - ref QuestSequence reference30 = ref span30[num]; + ref QuestSequence reference30 = ref span9[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -216524,33 +179545,27 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1022832u, new Vector3(-183.76447f, 2.8128173f, 370.3822f), 622) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1022832u, new Vector3(-183.76447f, 2.8128173f, 370.3822f), 622) { StopDistance = 5f }; obj30.Steps = list38; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span30[num]; + ref QuestSequence reference31 = ref span9[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj31.Steps = list39; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span30[num]; + ref QuestSequence reference32 = ref span9[5]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -216558,20 +179573,16 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref QuestStep reference33 = ref span40[index2]; + ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list40)[0]; QuestStep obj33 = new QuestStep(EInteractionType.CompleteQuest, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; - num4 = 1; - List list41 = new List(num4); - CollectionsMarshal.SetCount(list41, num4); - Span span41 = CollectionsMarshal.AsSpan(list41); - num3 = 0; - span41[num3] = new DialogueChoice + num3 = 1; + List list41 = new List(num3); + CollectionsMarshal.SetCount(list41, num3); + CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBWAR680_02903_Q1_000_075"), @@ -216589,26 +179600,21 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot5.Author = list42; - index = 10; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference34 = ref span43[num]; + num = 10; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span14 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference34 = ref span14[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -216626,8 +179632,7 @@ public static class AssemblyQuestLoader }; obj34.Steps = list44; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span14[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -216635,30 +179640,24 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Interact, 1022837u, new Vector3(548.97375f, -19.503174f, 277.57678f), 622) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1022837u, new Vector3(548.97375f, -19.503174f, 277.57678f), 622) { Fly = true }; obj35.Steps = list45; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span43[num]; + ref QuestSequence reference36 = ref span14[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj36.Steps = list46; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span43[num]; + ref QuestSequence reference37 = ref span14[3]; QuestSequence obj37 = new QuestSequence { Sequence = 3 @@ -216666,34 +179665,28 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1022839u, new Vector3(467.46008f, 39.964607f, -440.8484f), 622) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1022839u, new Vector3(467.46008f, 39.964607f, -440.8484f), 622) { Fly = true }; obj37.Steps = list47; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span43[num]; + ref QuestSequence reference38 = ref span14[4]; QuestSequence obj38 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj38.Steps = list48; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span43[num]; + ref QuestSequence reference39 = ref span14[5]; QuestSequence obj39 = new QuestSequence { Sequence = 5 @@ -216701,26 +179694,21 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Emote, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Emote, 1022836u, new Vector3(525.10876f, -19.50681f, 403.3722f), 622) { Emote = EEmote.Slap }; obj39.Steps = list49; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span43[num]; + ref QuestSequence reference40 = ref span14[6]; QuestSequence obj40 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref QuestStep reference41 = ref span50[num2]; + num2 = 1; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list50)[0]; QuestStep obj41 = new QuestStep(EInteractionType.SinglePlayerDuty, 1022840u, new Vector3(233.38672f, 23.094816f, -234.57697f), 622) { Fly = true @@ -216729,21 +179717,17 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num4 = 0; - span51[num4] = "Keeps attacking the invulnerable boss instead of the mammoths, thus letting your allied NPC die"; + CollectionsMarshal.AsSpan(list51)[0] = "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; - num++; - span43[num] = new QuestSequence + span14[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference42 = ref span43[num]; + ref QuestSequence reference42 = ref span14[8]; QuestSequence obj42 = new QuestSequence { Sequence = 8 @@ -216751,23 +179735,18 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Interact, 1022841u, new Vector3(233.17297f, 23.085413f, -234.42438f), 622); + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1022841u, new Vector3(233.17297f, 23.085413f, -234.42438f), 622); obj42.Steps = list52; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span43[num]; + ref QuestSequence reference43 = ref span14[9]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks @@ -216781,16 +179760,13 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot6.Author = list54; - index = 5; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference44 = ref span55[num]; + num = 5; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span15 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference44 = ref span15[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -216798,9 +179774,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -216818,25 +179792,21 @@ public static class AssemblyQuestLoader }; obj44.Steps = list56; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span55[num]; + ref QuestSequence reference45 = ref span15[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire }; obj45.Steps = list57; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span55[num]; + ref QuestSequence reference46 = ref span15[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -216844,88 +179814,63 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - ref QuestStep reference47 = ref span58[index2]; + Span span16 = CollectionsMarshal.AsSpan(list58); + ref QuestStep reference47 = ref span16[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1017656u, new Vector3(70.7561f, 207.28993f, 0.59503174f), 478); - 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); + 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); questStep.CompletionQuestVariablesFlags = list59; reference47 = questStep; - index2++; - ref QuestStep reference48 = ref span58[index2]; + ref QuestStep reference48 = ref span16[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list60; reference48 = questStep2; - index2++; - ref QuestStep reference49 = ref span58[index2]; + ref QuestStep reference49 = ref span16[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1012133u, new Vector3(-26.840637f, 206.49944f, 28.67163f), 478); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list61; reference49 = questStep3; obj46.Steps = list58; reference46 = obj46; - num++; - ref QuestSequence reference50 = ref span55[num]; + ref QuestSequence reference50 = ref span15[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj47.Steps = list62; reference50 = obj47; - num++; - ref QuestSequence reference51 = ref span55[num]; + ref QuestSequence reference51 = ref span15[4]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -216933,9 +179878,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -216953,26 +179896,21 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot7.Author = list64; - index = 7; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference52 = ref span65[num]; + num = 7; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span20 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference52 = ref span20[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -216990,8 +179928,7 @@ public static class AssemblyQuestLoader }; obj49.Steps = list66; reference52 = obj49; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span20[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -216999,9 +179936,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) { AethernetShortcut = new AethernetShortcut { @@ -217011,18 +179946,15 @@ public static class AssemblyQuestLoader }; obj50.Steps = list67; reference53 = obj50; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span20[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -217032,8 +179964,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list68; reference54 = obj51; - num++; - ref QuestSequence reference55 = ref span65[num]; + ref QuestSequence reference55 = ref span20[3]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -217041,9 +179972,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AethernetShortcut = new AethernetShortcut { @@ -217053,18 +179982,15 @@ public static class AssemblyQuestLoader }; obj52.Steps = list69; reference55 = obj52; - num++; - ref QuestSequence reference56 = ref span65[num]; + ref QuestSequence reference56 = ref span20[4]; QuestSequence obj53 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref QuestStep reference57 = ref span70[num2]; + num2 = 1; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list70)[0]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, null, new Vector3(660.36426f, 202.54167f, -180.60214f), 397) { StopDistance = 1f, @@ -217075,15 +180001,12 @@ public static class AssemblyQuestLoader num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - num4 = 0; - span71[num4] = 7486u; + CollectionsMarshal.AsSpan(list71)[0] = 7486u; obj54.KillEnemyDataIds = list71; reference57 = obj54; obj53.Steps = list70; reference56 = obj53; - num++; - ref QuestSequence reference58 = ref span65[num]; + ref QuestSequence reference58 = ref span20[5]; QuestSequence obj55 = new QuestSequence { Sequence = 5 @@ -217091,26 +180014,21 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Interact, 1022153u, new Vector3(662.95874f, 202.59106f, -177.14203f), 397) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1022153u, new Vector3(662.95874f, 202.59106f, -177.14203f), 397) { StopDistance = 7f }; obj55.Steps = list72; reference58 = obj55; - num++; - ref QuestSequence reference59 = ref span65[num]; + ref QuestSequence reference59 = ref span20[6]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217128,16 +180046,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list74)[0] = "UcanPatates"; questRoot8.Author = list74; - index = 6; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference60 = ref span75[num]; + num = 6; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span21 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference60 = ref span21[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -217145,9 +180060,7 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217165,18 +180078,15 @@ public static class AssemblyQuestLoader }; obj57.Steps = list76; reference60 = obj57; - num++; - ref QuestSequence reference61 = ref span75[num]; + ref QuestSequence reference61 = ref span21[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -217190,8 +180100,7 @@ public static class AssemblyQuestLoader }; obj58.Steps = list77; reference61 = obj58; - num++; - ref QuestSequence reference62 = ref span75[num]; + ref QuestSequence reference62 = ref span21[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -217199,9 +180108,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022163u, new Vector3(-395.95636f, 240.14958f, 340.59656f), 155) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022163u, new Vector3(-395.95636f, 240.14958f, 340.59656f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -217215,23 +180122,19 @@ public static class AssemblyQuestLoader }; obj59.Steps = list78; reference62 = obj59; - num++; - span75[num] = new QuestSequence + span21[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference63 = ref span75[num]; + ref QuestSequence reference63 = ref span21[4]; QuestSequence obj60 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -217245,8 +180148,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list79; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span75[num]; + ref QuestSequence reference64 = ref span21[5]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -217254,9 +180156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.CompleteQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217281,26 +180181,21 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list81)[0] = "UcanPatates"; questRoot9.Author = list81; - index = 7; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference65 = ref span82[num]; + num = 7; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span22 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference65 = ref span22[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217318,8 +180213,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list83; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span82[num]; + ref QuestSequence reference66 = ref span22[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -217327,9 +180221,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.Interact, 1022169u, new Vector3(-58.854065f, 20.000334f, 42.83203f), 129) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1022169u, new Vector3(-58.854065f, 20.000334f, 42.83203f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -217342,18 +180234,15 @@ public static class AssemblyQuestLoader }; obj63.Steps = list84; reference66 = obj63; - num++; - ref QuestSequence reference67 = ref span82[num]; + ref QuestSequence reference67 = ref span22[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference68 = ref span85[num2]; + num2 = 1; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 1022170u, new Vector3(-172.6253f, 41.10136f, 175.89062f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -217368,12 +180257,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list86 = new List(num4); - CollectionsMarshal.SetCount(list86, num4); - Span span86 = CollectionsMarshal.AsSpan(list86); - num3 = 0; - span86[num3] = 128; + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + CollectionsMarshal.AsSpan(list86)[0] = 128; obj66.InTerritory = list86; skipConditions.AetheryteShortcutIf = obj66; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -217384,9 +180271,7 @@ public static class AssemblyQuestLoader num3 = 1; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span87 = CollectionsMarshal.AsSpan(list87); - num4 = 0; - span87[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBMCH680_02908_Q1_000_000"), @@ -217396,8 +180281,7 @@ public static class AssemblyQuestLoader reference68 = obj65; obj64.Steps = list85; reference67 = obj64; - num++; - ref QuestSequence reference69 = ref span82[num]; + ref QuestSequence reference69 = ref span22[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -217405,21 +180289,17 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - ref QuestStep reference70 = ref span88[index2]; + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list88)[0]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 1022173u, new Vector3(356.5575f, 351.0862f, -545.2201f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list89 = new List(num4); - CollectionsMarshal.SetCount(list89, num4); - Span span89 = CollectionsMarshal.AsSpan(list89); - num3 = 0; - span89[num3] = new ComplexCombatData + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + CollectionsMarshal.AsSpan(list89)[0] = new ComplexCombatData { DataId = 7487u, MinimumKillCount = 2u @@ -217435,22 +180315,18 @@ public static class AssemblyQuestLoader reference70 = obj68; obj67.Steps = list88; reference69 = obj67; - num++; - ref QuestSequence reference71 = ref span82[num]; + ref QuestSequence reference71 = ref span22[4]; QuestSequence obj69 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj69.Steps = list90; reference71 = obj69; - num++; - ref QuestSequence reference72 = ref span82[num]; + ref QuestSequence reference72 = ref span22[5]; QuestSequence obj70 = new QuestSequence { Sequence = 5 @@ -217458,9 +180334,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1022151u, new Vector3(115.098755f, 24.398598f, 2.822876f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217478,18 +180352,15 @@ public static class AssemblyQuestLoader }; obj70.Steps = list91; reference72 = obj70; - num++; - ref QuestSequence reference73 = ref span82[num]; + ref QuestSequence reference73 = ref span22[6]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217514,16 +180385,13 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "UcanPatates"; + CollectionsMarshal.AsSpan(list93)[0] = "UcanPatates"; questRoot10.Author = list93; - index = 4; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference74 = ref span94[num]; + num = 4; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span23 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference74 = ref span23[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -217531,9 +180399,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217551,18 +180417,15 @@ public static class AssemblyQuestLoader }; obj72.Steps = list95; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span94[num]; + ref QuestSequence reference75 = ref span23[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217580,8 +180443,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list96; reference75 = obj73; - num++; - ref QuestSequence reference76 = ref span94[num]; + ref QuestSequence reference76 = ref span23[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -217589,9 +180451,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1012251u, new Vector3(12.313965f, -12.020877f, 40.268433f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -217609,18 +180469,15 @@ public static class AssemblyQuestLoader }; obj74.Steps = list97; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span94[num]; + ref QuestSequence reference77 = ref span23[3]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -217640,16 +180497,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot11.Author = list99; - index = 3; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference78 = ref span100[num]; + num = 3; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span24 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference78 = ref span24[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -217657,9 +180511,8 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span25 = CollectionsMarshal.AsSpan(list101); + span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -217671,30 +180524,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span25[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj76.Steps = list101; reference78 = obj76; - num++; - ref QuestSequence reference79 = ref span100[num]; + ref QuestSequence reference79 = ref span24[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj77.Steps = list102; reference79 = obj77; - num++; - ref QuestSequence reference80 = ref span100[num]; + ref QuestSequence reference80 = ref span24[2]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -217702,15 +180550,13 @@ public static class AssemblyQuestLoader num2 = 2; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span26 = CollectionsMarshal.AsSpan(list103); + span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(2911) }; @@ -217723,26 +180569,22 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "liza"; + CollectionsMarshal.AsSpan(list104)[0] = "liza"; questRoot12.Author = list104; - index = 6; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference81 = ref span105[num]; + num = 6; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span27 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference81 = ref span27[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -217754,12 +180596,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span106[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span28[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj79.Steps = list106; reference81 = obj79; - num++; - ref QuestSequence reference82 = ref span105[num]; + ref QuestSequence reference82 = ref span27[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -217767,27 +180607,22 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1022543u, new Vector3(46.951904f, -37.000004f, -298.48175f), 398) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1022543u, new Vector3(46.951904f, -37.000004f, -298.48175f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj80.Steps = list107; reference82 = obj80; - num++; - ref QuestSequence reference83 = ref span105[num]; + ref QuestSequence reference83 = ref span27[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -217799,8 +180634,7 @@ public static class AssemblyQuestLoader }; obj81.Steps = list108; reference83 = obj81; - num++; - ref QuestSequence reference84 = ref span105[num]; + ref QuestSequence reference84 = ref span27[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -217808,9 +180642,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - ref QuestStep reference85 = ref span109[index2]; + ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list109)[0]; QuestStep obj83 = new QuestStep(EInteractionType.Combat, null, new Vector3(91.50208f, 68.1708f, -722.4152f), 612) { StopDistance = 0.5f, @@ -217819,29 +180651,23 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - Span span110 = CollectionsMarshal.AsSpan(list110); - num4 = 0; - span110[num4] = 8046u; + CollectionsMarshal.AsSpan(list110)[0] = 8046u; obj83.KillEnemyDataIds = list110; reference85 = obj83; obj82.Steps = list109; reference84 = obj82; - num++; - ref QuestSequence reference86 = ref span105[num]; + ref QuestSequence reference86 = ref span27[4]; QuestSequence obj84 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj84.Steps = list111; reference86 = obj84; - num++; - ref QuestSequence reference87 = ref span105[num]; + ref QuestSequence reference87 = ref span27[5]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue @@ -217849,15 +180675,13 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) + Span span29 = CollectionsMarshal.AsSpan(list112); + span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(215.65454f, 222.1f, 345.1806f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) + span29[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155) { NextQuestId = new QuestId(2912) }; @@ -217870,26 +180694,22 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - Span span113 = CollectionsMarshal.AsSpan(list113); - index = 0; - span113[index] = "liza"; + CollectionsMarshal.AsSpan(list113)[0] = "liza"; questRoot13.Author = list113; - index = 8; - List list114 = new List(index); - CollectionsMarshal.SetCount(list114, index); - Span span114 = CollectionsMarshal.AsSpan(list114); - num = 0; - ref QuestSequence reference88 = ref span114[num]; + num = 8; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span30 = CollectionsMarshal.AsSpan(list114); + ref QuestSequence reference88 = ref span30[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -217901,12 +180721,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span115[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span31[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj86.Steps = list115; reference88 = obj86; - num++; - ref QuestSequence reference89 = ref span114[num]; + ref QuestSequence reference89 = ref span30[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 @@ -217914,9 +180732,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1018982u, new Vector3(-83.08539f, 18.05f, -191.14978f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -217927,26 +180743,22 @@ public static class AssemblyQuestLoader }; obj87.Steps = list116; reference89 = obj87; - num++; - ref QuestSequence reference90 = ref span114[num]; + ref QuestSequence reference90 = ref span30[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj88.Steps = list117; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span114[num]; + ref QuestSequence reference91 = ref span30[3]; QuestSequence obj89 = new QuestSequence { Sequence = 3 @@ -217954,33 +180766,27 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1022551u, new Vector3(-772.549f, 4.7634416f, -504.29544f), 613) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1022551u, new Vector3(-772.549f, 4.7634416f, -504.29544f), 613) { Fly = true }; obj89.Steps = list118; reference91 = obj89; - num++; - ref QuestSequence reference92 = ref span114[num]; + ref QuestSequence reference92 = ref span30[4]; QuestSequence obj90 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj90.Steps = list119; reference92 = obj90; - num++; - ref QuestSequence reference93 = ref span114[num]; + ref QuestSequence reference93 = ref span30[5]; QuestSequence obj91 = new QuestSequence { Sequence = 5 @@ -217988,45 +180794,37 @@ public static class AssemblyQuestLoader num2 = 2; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(657.20935f, 1.1933115f, -799.82635f), 613) + Span span32 = CollectionsMarshal.AsSpan(list120); + span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(657.20935f, 1.1933115f, -799.82635f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - index2++; - ref QuestStep reference94 = ref span120[index2]; + ref QuestStep reference94 = ref span32[1]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, 1022552u, new Vector3(657.7401f, 1.0385457f, -797.8485f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list121 = new List(num4); - CollectionsMarshal.SetCount(list121, num4); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = 7488u; + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = 7488u; obj92.KillEnemyDataIds = list121; reference94 = obj92; obj91.Steps = list120; reference93 = obj91; - num++; - ref QuestSequence reference95 = ref span114[num]; + ref QuestSequence reference95 = ref span30[6]; QuestSequence obj93 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj93.Steps = list122; reference95 = obj93; - num++; - ref QuestSequence reference96 = ref span114[num]; + ref QuestSequence reference96 = ref span30[7]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -218034,9 +180832,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - ref QuestStep reference97 = ref span123[index2]; + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list123)[0]; QuestStep obj95 = new QuestStep(EInteractionType.CompleteQuest, 1022553u, new Vector3(-92.607056f, 18.9999f, -194.41522f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -218049,9 +180845,7 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span124 = CollectionsMarshal.AsSpan(list124); - num4 = 0; - span124[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRG650_02912_Q1_000_000"), @@ -218069,26 +180863,21 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot14.Author = list125; - index = 9; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference98 = ref span126[num]; + num = 9; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span33 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference98 = ref span33[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -218106,8 +180895,7 @@ public static class AssemblyQuestLoader }; obj96.Steps = list127; reference98 = obj96; - num++; - ref QuestSequence reference99 = ref span126[num]; + ref QuestSequence reference99 = ref span33[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -218115,9 +180903,7 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.Interact, 1022748u, new Vector3(13.046387f, -7.961876f, -99.77875f), 628) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1022748u, new Vector3(13.046387f, -7.961876f, -99.77875f), 628) { AethernetShortcut = new AethernetShortcut { @@ -218127,26 +180913,22 @@ public static class AssemblyQuestLoader }; obj97.Steps = list128; reference99 = obj97; - num++; - ref QuestSequence reference100 = ref span126[num]; + ref QuestSequence reference100 = ref span33[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj98.Steps = list129; reference100 = obj98; - num++; - ref QuestSequence reference101 = ref span126[num]; + ref QuestSequence reference101 = ref span33[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -218154,88 +180936,63 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - ref QuestStep reference102 = ref span130[index2]; + Span span34 = CollectionsMarshal.AsSpan(list130); + ref QuestStep reference102 = ref span34[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1022554u, new Vector3(554.9553f, -19.411264f, 274.92175f), 622); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list131; reference102 = questStep4; - index2++; - ref QuestStep reference103 = ref span130[index2]; + ref QuestStep reference103 = ref span34[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list132; reference103 = questStep5; - index2++; - ref QuestStep reference104 = ref span130[index2]; + ref QuestStep reference104 = ref span34[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1022556u, new Vector3(570.3364f, -19.50564f, 319.11182f), 622); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list133; reference104 = questStep6; obj99.Steps = list130; reference101 = obj99; - num++; - ref QuestSequence reference105 = ref span126[num]; + ref QuestSequence reference105 = ref span33[4]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj100.Steps = list134; reference105 = obj100; - num++; - ref QuestSequence reference106 = ref span126[num]; + ref QuestSequence reference106 = ref span33[5]; QuestSequence obj101 = new QuestSequence { Sequence = 5 @@ -218243,35 +181000,28 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022561u, new Vector3(-288.4718f, 60.053967f, -328.1148f), 622) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022561u, new Vector3(-288.4718f, 60.053967f, -328.1148f), 622) { Fly = true }; obj101.Steps = list135; reference106 = obj101; - num++; - span126[num] = new QuestSequence + span33[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference107 = ref span126[num]; + ref QuestSequence reference107 = ref span33[7]; QuestSequence obj102 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj102.Steps = list136; reference107 = obj102; - num++; - ref QuestSequence reference108 = ref span126[num]; + ref QuestSequence reference108 = ref span33[8]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -218279,9 +181029,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022560u, new Vector3(528.4656f, -19.450546f, 273.33484f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -218296,26 +181044,21 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "liza"; + CollectionsMarshal.AsSpan(list138)[0] = "liza"; questRoot15.Author = list138; - index = 3; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference109 = ref span139[num]; + num = 3; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span38 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference109 = ref span38[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -218328,8 +181071,7 @@ public static class AssemblyQuestLoader }; obj104.Steps = list140; reference109 = obj104; - num++; - ref QuestSequence reference110 = ref span139[num]; + ref QuestSequence reference110 = ref span38[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 @@ -218337,26 +181079,21 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1022562u, new Vector3(-494.3466f, 71.278076f, -509.51404f), 622) { Fly = true }; obj105.Steps = list141; reference110 = obj105; - num++; - ref QuestSequence reference111 = ref span139[num]; + ref QuestSequence reference111 = ref span38[2]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -218369,16 +181106,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot16.Author = list143; - index = 10; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference112 = ref span144[num]; + num = 10; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span39 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference112 = ref span39[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -218386,9 +181120,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - ref QuestStep reference113 = ref span145[index2]; + ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list145)[0]; QuestStep obj108 = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -218408,9 +181140,7 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span146 = CollectionsMarshal.AsSpan(list146); - num4 = 0; - span146[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK601_02915_Q0_000_004"), @@ -218420,18 +181150,15 @@ public static class AssemblyQuestLoader reference113 = obj108; obj107.Steps = list145; reference112 = obj107; - num++; - ref QuestSequence reference114 = ref span144[num]; + ref QuestSequence reference114 = ref span39[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -218441,8 +181168,7 @@ public static class AssemblyQuestLoader }; obj109.Steps = list147; reference114 = obj109; - num++; - ref QuestSequence reference115 = ref span144[num]; + ref QuestSequence reference115 = ref span39[2]; QuestSequence obj110 = new QuestSequence { Sequence = 2 @@ -218450,9 +181176,7 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418) { AethernetShortcut = new AethernetShortcut { @@ -218462,22 +181186,18 @@ public static class AssemblyQuestLoader }; obj110.Steps = list148; reference115 = obj110; - num++; - ref QuestSequence reference116 = ref span144[num]; + ref QuestSequence reference116 = ref span39[3]; QuestSequence obj111 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj111.Steps = list149; reference116 = obj111; - num++; - ref QuestSequence reference117 = ref span144[num]; + ref QuestSequence reference117 = ref span39[4]; QuestSequence obj112 = new QuestSequence { Sequence = 4 @@ -218485,23 +181205,18 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1022855u, new Vector3(75.394775f, 24.071722f, -13.595825f), 418); obj112.Steps = list150; reference117 = obj112; - num++; - ref QuestSequence reference118 = ref span144[num]; + ref QuestSequence reference118 = ref span39[5]; QuestSequence obj113 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -218511,8 +181226,7 @@ public static class AssemblyQuestLoader }; obj113.Steps = list151; reference118 = obj113; - num++; - ref QuestSequence reference119 = ref span144[num]; + ref QuestSequence reference119 = ref span39[6]; QuestSequence obj114 = new QuestSequence { Sequence = 6 @@ -218520,34 +181234,28 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.Interact, 1022862u, new Vector3(482.29187f, 203.4332f, 683.25305f), 397) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1022862u, new Vector3(482.29187f, 203.4332f, 683.25305f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj114.Steps = list152; reference119 = obj114; - num++; - ref QuestSequence reference120 = ref span144[num]; + ref QuestSequence reference120 = ref span39[7]; QuestSequence obj115 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj115.Steps = list153; reference120 = obj115; - num++; - ref QuestSequence reference121 = ref span144[num]; + ref QuestSequence reference121 = ref span39[8]; QuestSequence obj116 = new QuestSequence { Sequence = 8 @@ -218555,26 +181263,21 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Action, 2008661u, new Vector3(380.02588f, 169.78711f, 416.5559f), 397) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Action, 2008661u, new Vector3(380.02588f, 169.78711f, 416.5559f), 397) { Action = EAction.Souleater }; obj116.Steps = list154; reference121 = obj116; - num++; - ref QuestSequence reference122 = ref span144[num]; + ref QuestSequence reference122 = ref span39[9]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -218589,16 +181292,13 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "liza"; + CollectionsMarshal.AsSpan(list156)[0] = "liza"; questRoot17.Author = list156; - index = 8; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference123 = ref span157[num]; + num = 8; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span40 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference123 = ref span40[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -218606,35 +181306,29 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022866u, new Vector3(482.07825f, 203.4332f, 680.7506f), 397) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj118.Steps = list158; reference123 = obj118; - num++; - ref QuestSequence reference124 = ref span157[num]; + ref QuestSequence reference124 = ref span40[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather }; obj119.Steps = list159; reference124 = obj119; - num++; - ref QuestSequence reference125 = ref span157[num]; + ref QuestSequence reference125 = ref span40[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 @@ -218642,47 +181336,39 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 2008662u, new Vector3(436.94202f, -51.163513f, 98.68005f), 398) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 2008662u, new Vector3(436.94202f, -51.163513f, 98.68005f), 398) { StopDistance = 1f, Fly = true }; obj120.Steps = list160; reference125 = obj120; - num++; - ref QuestSequence reference126 = ref span157[num]; + ref QuestSequence reference126 = ref span40[3]; QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list161 = new List(index2); - CollectionsMarshal.SetCount(list161, index2); - Span span161 = CollectionsMarshal.AsSpan(list161); - num2 = 0; - ref QuestStep reference127 = ref span161[num2]; + num2 = 1; + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list161)[0]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 1022879u, new Vector3(503.4713f, -45.078712f, -116.92993f), 398) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + Span span41 = CollectionsMarshal.AsSpan(list162); + span41[0] = 7489u; + span41[1] = 7490u; obj122.KillEnemyDataIds = list162; reference127 = obj122; obj121.Steps = list161; reference126 = obj121; - num++; - ref QuestSequence reference128 = ref span157[num]; + ref QuestSequence reference128 = ref span40[4]; QuestSequence obj123 = new QuestSequence { Sequence = 4 @@ -218690,33 +181376,27 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.Interact, 1022880u, new Vector3(612.8175f, -26.250998f, -436.45386f), 398) + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1022880u, new Vector3(612.8175f, -26.250998f, -436.45386f), 398) { Fly = true }; obj123.Steps = list163; reference128 = obj123; - num++; - ref QuestSequence reference129 = ref span157[num]; + ref QuestSequence reference129 = ref span40[5]; QuestSequence obj124 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Action = EAction.Souleater }; obj124.Steps = list164; reference129 = obj124; - num++; - ref QuestSequence reference130 = ref span157[num]; + ref QuestSequence reference130 = ref span40[6]; QuestSequence obj125 = new QuestSequence { Sequence = 6 @@ -218724,23 +181404,18 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1023414u, new Vector3(617.8529f, -25.577927f, -446.61633f), 398); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1023414u, new Vector3(617.8529f, -25.577927f, -446.61633f), 398); obj125.Steps = list165; reference130 = obj125; - num++; - ref QuestSequence reference131 = ref span157[num]; + ref QuestSequence reference131 = ref span40[7]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -218755,16 +181430,13 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "liza"; + CollectionsMarshal.AsSpan(list167)[0] = "liza"; questRoot18.Author = list167; - index = 10; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference132 = ref span168[num]; + num = 10; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span42 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference132 = ref span42[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -218772,9 +181444,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1022885u, new Vector3(461.41748f, -51.141403f, 43.4729f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -218788,25 +181458,21 @@ public static class AssemblyQuestLoader }; obj127.Steps = list169; reference132 = obj127; - num++; - ref QuestSequence reference133 = ref span168[num]; + ref QuestSequence reference133 = ref span42[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; obj128.Steps = list170; reference133 = obj128; - num++; - ref QuestSequence reference134 = ref span168[num]; + ref QuestSequence reference134 = ref span42[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -218814,9 +181480,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference135 = ref span171[index2]; + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list171)[0]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1022891u, new Vector3(154.25342f, -64.449585f, 678.06506f), 400) { Fly = true @@ -218824,9 +181488,7 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span172 = CollectionsMarshal.AsSpan(list172); - num4 = 0; - span172[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBDRK650_02917_Q1_000_052"), @@ -218836,25 +181498,21 @@ public static class AssemblyQuestLoader reference135 = obj130; obj129.Steps = list171; reference134 = obj129; - num++; - ref QuestSequence reference136 = ref span168[num]; + ref QuestSequence reference136 = ref span42[3]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj131.Steps = list173; reference136 = obj131; - num++; - ref QuestSequence reference137 = ref span168[num]; + ref QuestSequence reference137 = ref span42[4]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -218862,38 +181520,31 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1022893u, new Vector3(418.53967f, -28.947046f, 89.25f), 400) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1022893u, new Vector3(418.53967f, -28.947046f, 89.25f), 400) { Fly = true }; obj132.Steps = list174; reference137 = obj132; - num++; - ref QuestSequence reference138 = ref span168[num]; + ref QuestSequence reference138 = ref span42[5]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj133.Steps = list175; reference138 = obj133; - num++; - span168[num] = new QuestSequence + span42[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference139 = ref span168[num]; + ref QuestSequence reference139 = ref span42[7]; QuestSequence obj134 = new QuestSequence { Sequence = 7 @@ -218901,33 +181552,27 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Action, 2008665u, new Vector3(-160.02142f, -22.995422f, 283.6194f), 400) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Action, 2008665u, new Vector3(-160.02142f, -22.995422f, 283.6194f), 400) { Action = EAction.Souleater }; obj134.Steps = list176; reference139 = obj134; - num++; - ref QuestSequence reference140 = ref span168[num]; + ref QuestSequence reference140 = ref span42[8]; QuestSequence obj135 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 5f }; obj135.Steps = list177; reference140 = obj135; - num++; - ref QuestSequence reference141 = ref span168[num]; + ref QuestSequence reference141 = ref span42[9]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -218935,9 +181580,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1022953u, new Vector3(253.0708f, -43.136364f, 626.88635f), 400) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1022953u, new Vector3(253.0708f, -43.136364f, 626.88635f), 400) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome }; @@ -218950,26 +181593,21 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "liza"; + CollectionsMarshal.AsSpan(list179)[0] = "liza"; questRoot19.Author = list179; - index = 11; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference142 = ref span180[num]; + num = 11; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span43 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference142 = ref span43[0]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ChurningMistsMoghome, SkipConditions = new SkipConditions @@ -218982,8 +181620,7 @@ public static class AssemblyQuestLoader }; obj137.Steps = list181; reference142 = obj137; - num++; - ref QuestSequence reference143 = ref span180[num]; + ref QuestSequence reference143 = ref span43[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -218991,35 +181628,29 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1022890u, new Vector3(-620.5692f, 130f, -527.5807f), 612) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1022890u, new Vector3(-620.5692f, 130f, -527.5807f), 612) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj138.Steps = list182; reference143 = obj138; - num++; - ref QuestSequence reference144 = ref span180[num]; + ref QuestSequence reference144 = ref span43[2]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span183[num2] = new QuestStep(EInteractionType.Interact, 1022902u, new Vector3(-359.51782f, 63.3675f, -727.93164f), 612); + span44[1] = new QuestStep(EInteractionType.Interact, 1022902u, new Vector3(-359.51782f, 63.3675f, -727.93164f), 612); obj139.Steps = list183; reference144 = obj139; - num++; - ref QuestSequence reference145 = ref span180[num]; + ref QuestSequence reference145 = ref span43[3]; QuestSequence obj140 = new QuestSequence { Sequence = 3 @@ -219027,60 +181658,46 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.Interact, 1022904u, new Vector3(-276.75293f, 74.50722f, -695.8572f), 612); + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1022904u, new Vector3(-276.75293f, 74.50722f, -695.8572f), 612); obj140.Steps = list184; reference145 = obj140; - num++; - ref QuestSequence reference146 = ref span180[num]; + ref QuestSequence reference146 = ref span43[4]; QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list185 = new List(index2); - CollectionsMarshal.SetCount(list185, index2); - Span span185 = CollectionsMarshal.AsSpan(list185); - num2 = 0; - ref QuestStep reference147 = ref span185[num2]; + num2 = 2; + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + Span span45 = CollectionsMarshal.AsSpan(list185); + ref QuestStep reference147 = ref span45[0]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(25.767f, 54.715424f, -532.3533f), 612) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list186 = new List(num4); - CollectionsMarshal.SetCount(list186, num4); - Span span186 = CollectionsMarshal.AsSpan(list186); - num3 = 0; - span186[num3] = 7491u; + num3 = 1; + List list186 = new List(num3); + CollectionsMarshal.SetCount(list186, num3); + CollectionsMarshal.AsSpan(list186)[0] = 7491u; obj142.KillEnemyDataIds = list186; num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - 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; + 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; obj142.CompletionQuestVariablesFlags = list187; reference147 = obj142; - num2++; - span185[num2] = new QuestStep(EInteractionType.Interact, 1022905u, new Vector3(25.101074f, 54.83547f, -533.04346f), 612); + span45[1] = new QuestStep(EInteractionType.Interact, 1022905u, new Vector3(25.101074f, 54.83547f, -533.04346f), 612); obj141.Steps = list185; reference146 = obj141; - num++; - ref QuestSequence reference148 = ref span180[num]; + ref QuestSequence reference148 = ref span43[5]; QuestSequence obj143 = new QuestSequence { Sequence = 5 @@ -219088,33 +181705,27 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 1022908u, new Vector3(182.8794f, 54.52025f, -491.56943f), 612) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1022908u, new Vector3(182.8794f, 54.52025f, -491.56943f), 612) { Fly = true }; obj143.Steps = list188; reference148 = obj143; - num++; - ref QuestSequence reference149 = ref span180[num]; + ref QuestSequence reference149 = ref span43[6]; QuestSequence obj144 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj144.Steps = list189; reference149 = obj144; - num++; - ref QuestSequence reference150 = ref span180[num]; + ref QuestSequence reference150 = ref span43[7]; QuestSequence obj145 = new QuestSequence { Sequence = 7 @@ -219122,33 +181733,27 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 1022911u, new Vector3(383.65747f, 65.514336f, -539.4217f), 612) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1022911u, new Vector3(383.65747f, 65.514336f, -539.4217f), 612) { Fly = true }; obj145.Steps = list190; reference150 = obj145; - num++; - ref QuestSequence reference151 = ref span180[num]; + ref QuestSequence reference151 = ref span43[8]; QuestSequence obj146 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Action = EAction.Souleater }; obj146.Steps = list191; reference151 = obj146; - num++; - ref QuestSequence reference152 = ref span180[num]; + ref QuestSequence reference152 = ref span43[9]; QuestSequence obj147 = new QuestSequence { Sequence = 9 @@ -219156,27 +181761,22 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Emote, 2008668u, new Vector3(-0.045776367f, 5.3864136f, -77.592224f), 635) + CollectionsMarshal.AsSpan(list192)[0] = 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; - num++; - ref QuestSequence reference153 = ref span180[num]; + ref QuestSequence reference153 = ref span43[10]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -219195,16 +181795,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "liza"; + CollectionsMarshal.AsSpan(list194)[0] = "liza"; questRoot20.Author = list194; - index = 9; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference154 = ref span195[num]; + num = 9; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span47 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference154 = ref span47[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -219212,9 +181809,7 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -219232,18 +181827,16 @@ public static class AssemblyQuestLoader }; obj149.Steps = list196; reference154 = obj149; - num++; - ref QuestSequence reference155 = ref span195[num]; + ref QuestSequence reference155 = ref span47[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list197 = new List(index2); - CollectionsMarshal.SetCount(list197, index2); - Span span197 = CollectionsMarshal.AsSpan(list197); - num2 = 0; - ref QuestStep reference156 = ref span197[num2]; + num2 = 3; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + Span span48 = CollectionsMarshal.AsSpan(list197); + ref QuestStep reference156 = ref span48[0]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1022916u, new Vector3(-57.724915f, -0.071196444f, -40.146484f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -219253,70 +181846,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachWest } }; - 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); + 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); obj151.CompletionQuestVariablesFlags = list198; reference156 = obj151; - num2++; - ref QuestStep reference157 = ref span197[num2]; + ref QuestStep reference157 = ref span48[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list199; reference157 = questStep7; - num2++; - ref QuestStep reference158 = ref span197[num2]; + ref QuestStep reference158 = ref span48[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1022915u, new Vector3(-38.773254f, 18.82157f, 146.807f), 635); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list200; reference158 = questStep8; obj150.Steps = list197; reference155 = obj150; - num++; - ref QuestSequence reference159 = ref span195[num]; + ref QuestSequence reference159 = ref span47[2]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -219324,35 +181896,29 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1022914u, new Vector3(112.7489f, 0.6520417f, -9.414856f), 635); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1022914u, new Vector3(112.7489f, 0.6520417f, -9.414856f), 635); obj152.Steps = list201; reference159 = obj152; - num++; - ref QuestSequence reference160 = ref span195[num]; + ref QuestSequence reference160 = ref span47[3]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)620 }; - num2++; - span202[num2] = new QuestStep(EInteractionType.Interact, 1022922u, new Vector3(-553.70416f, 46.755432f, -669.9474f), 620) + span52[1] = new QuestStep(EInteractionType.Interact, 1022922u, new Vector3(-553.70416f, 46.755432f, -669.9474f), 620) { Fly = true }; obj153.Steps = list202; reference160 = obj153; - num++; - ref QuestSequence reference161 = ref span195[num]; + ref QuestSequence reference161 = ref span47[4]; QuestSequence obj154 = new QuestSequence { Sequence = 4 @@ -219360,35 +181926,28 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 2008669u, new Vector3(-387.9607f, 51.93484f, -626.3676f), 620) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 2008669u, new Vector3(-387.9607f, 51.93484f, -626.3676f), 620) { Fly = true }; obj154.Steps = list203; reference161 = obj154; - num++; - ref QuestSequence reference162 = ref span195[num]; + ref QuestSequence reference162 = ref span47[5]; QuestSequence obj155 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj155.Steps = list204; reference162 = obj155; - num++; - span195[num] = new QuestSequence + span47[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference163 = ref span195[num]; + ref QuestSequence reference163 = ref span47[7]; QuestSequence obj156 = new QuestSequence { Sequence = 7 @@ -219396,9 +181955,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -219409,18 +181966,15 @@ public static class AssemblyQuestLoader }; obj156.Steps = list205; reference163 = obj156; - num++; - ref QuestSequence reference164 = ref span195[num]; + ref QuestSequence reference164 = ref span47[8]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -219437,16 +181991,12 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list207)[0] = "JerryWester"; questRoot21.Author = list207; - index = 1; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference165 = ref span208[num]; + num = 1; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + ref QuestSequence reference165 = ref CollectionsMarshal.AsSpan(list208)[0]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -219454,9 +182004,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019464u, new Vector3(-33.096924f, 7.9693108f, 95.109375f), 635) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019464u, new Vector3(-33.096924f, 7.9693108f, 95.109375f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -219476,26 +182024,20 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "liza"; + CollectionsMarshal.AsSpan(list210)[0] = "liza"; questRoot22.Author = list210; - index = 1; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference166 = ref span211[num]; + num = 1; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + ref QuestSequence reference166 = ref CollectionsMarshal.AsSpan(list211)[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; @@ -219508,16 +182050,13 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "liza"; + CollectionsMarshal.AsSpan(list213)[0] = "liza"; questRoot23.Author = list213; - index = 5; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference167 = ref span214[num]; + num = 5; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span53 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference167 = ref span53[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -219525,9 +182064,7 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - ref QuestStep reference168 = ref span215[index2]; + ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list215)[0]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -219545,37 +182082,31 @@ public static class AssemblyQuestLoader num3 = 1; List list216 = new List(num3); CollectionsMarshal.SetCount(list216, num3); - Span span216 = CollectionsMarshal.AsSpan(list216); - num4 = 0; - span216[num4] = 128; + CollectionsMarshal.AsSpan(list216)[0] = 128; obj162.InTerritory = list216; skipConditions2.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions2; reference168 = obj161; obj160.Steps = list215; reference167 = obj160; - num++; - ref QuestSequence reference169 = ref span214[num]; + ref QuestSequence reference169 = ref span53[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span217[num2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span54[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj163.Steps = list217; reference169 = obj163; - num++; - ref QuestSequence reference170 = ref span214[num]; + ref QuestSequence reference170 = ref span53[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -219583,9 +182114,7 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.Interact, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1009552u, new Vector3(96.025024f, 40.247147f, 60.68506f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -219596,28 +182125,24 @@ public static class AssemblyQuestLoader }; obj164.Steps = list218; reference170 = obj164; - num++; - ref QuestSequence reference171 = ref span214[num]; + ref QuestSequence reference171 = ref span53[3]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - num2++; - span219[num2] = new QuestStep(EInteractionType.Interact, 1021904u, new Vector3(-480.5829f, 23.11398f, -315.81604f), 140); + span55[1] = new QuestStep(EInteractionType.Interact, 1021904u, new Vector3(-480.5829f, 23.11398f, -315.81604f), 140); obj165.Steps = list219; reference171 = obj165; - num++; - ref QuestSequence reference172 = ref span214[num]; + ref QuestSequence reference172 = ref span53[4]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue @@ -219625,15 +182150,13 @@ public static class AssemblyQuestLoader num2 = 2; 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(207.68561f, -3.1246834f, 42.986313f), 139) + Span span56 = CollectionsMarshal.AsSpan(list220); + span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) + span56[1] = new QuestStep(EInteractionType.CompleteQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139) { NextQuestId = new QuestId(2924) }; @@ -219646,26 +182169,22 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - Span span221 = CollectionsMarshal.AsSpan(list221); - index = 0; - span221[index] = "liza"; + CollectionsMarshal.AsSpan(list221)[0] = "liza"; questRoot24.Author = list221; - index = 9; - List list222 = new List(index); - CollectionsMarshal.SetCount(list222, index); - Span span222 = CollectionsMarshal.AsSpan(list222); - num = 0; - ref QuestSequence reference173 = ref span222[num]; + num = 9; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + Span span57 = CollectionsMarshal.AsSpan(list222); + ref QuestSequence reference173 = ref span57[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake, @@ -219677,12 +182196,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span223[num2] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span58[1] = new QuestStep(EInteractionType.AcceptQuest, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj167.Steps = list223; reference173 = obj167; - num++; - ref QuestSequence reference174 = ref span222[num]; + ref QuestSequence reference174 = ref span57[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -219690,9 +182207,7 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -219703,25 +182218,21 @@ public static class AssemblyQuestLoader }; obj168.Steps = list224; reference174 = obj168; - num++; - ref QuestSequence reference175 = ref span222[num]; + ref QuestSequence reference175 = ref span57[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj169.Steps = list225; reference175 = obj169; - num++; - ref QuestSequence reference176 = ref span222[num]; + ref QuestSequence reference176 = ref span57[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -219729,33 +182240,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 2008554u, new Vector3(-230.18237f, 1.3274536f, 406.3629f), 153) + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2008554u, new Vector3(-230.18237f, 1.3274536f, 406.3629f), 153) { Fly = true }; obj170.Steps = list226; reference176 = obj170; - num++; - ref QuestSequence reference177 = ref span222[num]; + ref QuestSequence reference177 = ref span57[4]; QuestSequence obj171 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj171.Steps = list227; reference177 = obj171; - num++; - ref QuestSequence reference178 = ref span222[num]; + ref QuestSequence reference178 = ref span57[5]; QuestSequence obj172 = new QuestSequence { Sequence = 5 @@ -219763,46 +182268,37 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 2008556u, new Vector3(-81.71216f, 1.2054443f, 395.71216f), 153) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2008556u, new Vector3(-81.71216f, 1.2054443f, 395.71216f), 153) { Fly = true }; obj172.Steps = list228; reference178 = obj172; - num++; - ref QuestSequence reference179 = ref span222[num]; + ref QuestSequence reference179 = ref span57[6]; QuestSequence obj173 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list229 = new List(index2); - CollectionsMarshal.SetCount(list229, index2); - Span span229 = CollectionsMarshal.AsSpan(list229); - num2 = 0; - ref QuestStep reference180 = ref span229[num2]; + num2 = 1; + List list229 = new List(num2); + CollectionsMarshal.SetCount(list229, num2); + ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list229)[0]; QuestStep obj174 = new QuestStep(EInteractionType.Combat, null, new Vector3(-69.98173f, 0.9259782f, 361.20602f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; obj174.KillEnemyDataIds = list230; reference180 = obj174; obj173.Steps = list229; reference179 = obj173; - num++; - ref QuestSequence reference181 = ref span222[num]; + ref QuestSequence reference181 = ref span57[7]; QuestSequence obj175 = new QuestSequence { Sequence = 7 @@ -219810,26 +182306,21 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Action, 1021910u, new Vector3(-70.115234f, 0.94099265f, 360.3723f), 153) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Action, 1021910u, new Vector3(-70.115234f, 0.94099265f, 360.3723f), 153) { Action = EAction.Adloquium }; obj175.Steps = list231; reference181 = obj175; - num++; - ref QuestSequence reference182 = ref span222[num]; + ref QuestSequence reference182 = ref span57[8]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(2925) @@ -219843,16 +182334,13 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "liza"; + CollectionsMarshal.AsSpan(list233)[0] = "liza"; questRoot25.Author = list233; - index = 3; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference183 = ref span234[num]; + num = 3; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span60 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference183 = ref span60[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -219860,9 +182348,7 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -219875,25 +182361,21 @@ public static class AssemblyQuestLoader }; obj177.Steps = list235; reference183 = obj177; - num++; - ref QuestSequence reference184 = ref span234[num]; + ref QuestSequence reference184 = ref span60[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj178.Steps = list236; reference184 = obj178; - num++; - ref QuestSequence reference185 = ref span234[num]; + ref QuestSequence reference185 = ref span60[2]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -219901,9 +182383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { StopDistance = 5f, NextQuestId = new QuestId(2926) @@ -219917,26 +182397,21 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - Span span238 = CollectionsMarshal.AsSpan(list238); - index = 0; - span238[index] = "liza"; + CollectionsMarshal.AsSpan(list238)[0] = "liza"; questRoot26.Author = list238; - index = 7; - List list239 = new List(index); - CollectionsMarshal.SetCount(list239, index); - Span span239 = CollectionsMarshal.AsSpan(list239); - num = 0; - ref QuestSequence reference186 = ref span239[num]; + num = 7; + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + Span span61 = CollectionsMarshal.AsSpan(list239); + ref QuestSequence reference186 = ref span61[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, @@ -219950,8 +182425,7 @@ public static class AssemblyQuestLoader }; obj180.Steps = list240; reference186 = obj180; - num++; - ref QuestSequence reference187 = ref span239[num]; + ref QuestSequence reference187 = ref span61[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -219959,36 +182433,30 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) + Span span62 = CollectionsMarshal.AsSpan(list241); + span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.68561f, -3.1246834f, 42.986313f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span62[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj181.Steps = list241; reference187 = obj181; - num++; - ref QuestSequence reference188 = ref span239[num]; + ref QuestSequence reference188 = ref span61[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj182.Steps = list242; reference188 = obj182; - num++; - ref QuestSequence reference189 = ref span239[num]; + ref QuestSequence reference189 = ref span61[3]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -219996,33 +182464,27 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.Interact, 2008557u, new Vector3(-160.08246f, 1.9683228f, 175.52454f), 153) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 2008557u, new Vector3(-160.08246f, 1.9683228f, 175.52454f), 153) { Fly = true }; obj183.Steps = list243; reference189 = obj183; - num++; - ref QuestSequence reference190 = ref span239[num]; + ref QuestSequence reference190 = ref span61[4]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj184.Steps = list244; reference190 = obj184; - num++; - ref QuestSequence reference191 = ref span239[num]; + ref QuestSequence reference191 = ref span61[5]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -220030,9 +182492,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - ref QuestStep reference192 = ref span245[index2]; + ref QuestStep reference192 = ref CollectionsMarshal.AsSpan(list245)[0]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2008559u, new Vector3(-250.5379f, 16.830688f, 19.21106f), 153) { Fly = true, @@ -220041,25 +182501,20 @@ public static class AssemblyQuestLoader num3 = 1; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - Span span246 = CollectionsMarshal.AsSpan(list246); - num4 = 0; - span246[num4] = 6621u; + CollectionsMarshal.AsSpan(list246)[0] = 6621u; obj186.KillEnemyDataIds = list246; reference192 = obj186; obj185.Steps = list245; reference191 = obj185; - num++; - ref QuestSequence reference193 = ref span239[num]; + ref QuestSequence reference193 = ref span61[6]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, NextQuestId = new QuestId(2927) @@ -220073,16 +182528,13 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - Span span248 = CollectionsMarshal.AsSpan(list248); - index = 0; - span248[index] = "liza"; + CollectionsMarshal.AsSpan(list248)[0] = "liza"; questRoot27.Author = list248; - index = 7; - List list249 = new List(index); - CollectionsMarshal.SetCount(list249, index); - Span span249 = CollectionsMarshal.AsSpan(list249); - num = 0; - ref QuestSequence reference194 = ref span249[num]; + num = 7; + List list249 = new List(num); + CollectionsMarshal.SetCount(list249, num); + Span span63 = CollectionsMarshal.AsSpan(list249); + ref QuestSequence reference194 = ref span63[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -220090,9 +182542,7 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -220105,30 +182555,25 @@ public static class AssemblyQuestLoader }; obj188.Steps = list250; reference194 = obj188; - num++; - ref QuestSequence reference195 = ref span249[num]; + ref QuestSequence reference195 = ref span63[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj189.Steps = list251; reference195 = obj189; - num++; - span249[num] = new QuestSequence + span63[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference196 = ref span249[num]; + ref QuestSequence reference196 = ref span63[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -220136,33 +182581,27 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153); + CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.Interact, 1021911u, new Vector3(-220.84387f, 21.261763f, 363.39355f), 153); obj190.Steps = list252; reference196 = obj190; - num++; - ref QuestSequence reference197 = ref span249[num]; + ref QuestSequence reference197 = ref span63[4]; QuestSequence obj191 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span253[num2] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span64[1] = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj191.Steps = list253; reference197 = obj191; - num++; - ref QuestSequence reference198 = ref span249[num]; + ref QuestSequence reference198 = ref span63[5]; QuestSequence obj192 = new QuestSequence { Sequence = 5 @@ -220170,63 +182609,46 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - ref QuestStep reference199 = ref span254[index2]; + Span span65 = CollectionsMarshal.AsSpan(list254); + ref QuestStep reference199 = ref span65[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1013135u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list255; reference199 = questStep9; - index2++; - ref QuestStep reference200 = ref span254[index2]; + ref QuestStep reference200 = ref span65[1]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list256; reference200 = questStep10; obj192.Steps = list254; reference198 = obj192; - num++; - ref QuestSequence reference201 = ref span249[num]; + ref QuestSequence reference201 = ref span63[6]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj193.Steps = list257; reference201 = obj193; questRoot27.QuestSequence = list249; @@ -220236,16 +182658,13 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "liza"; + CollectionsMarshal.AsSpan(list258)[0] = "liza"; questRoot28.Author = list258; - index = 6; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference202 = ref span259[num]; + num = 6; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span68 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference202 = ref span68[0]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -220253,9 +182672,7 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021926u, new Vector3(71.06128f, -0.10695544f, 59.372803f), 635) + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021926u, new Vector3(71.06128f, -0.10695544f, 59.372803f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -220268,22 +182685,18 @@ public static class AssemblyQuestLoader }; obj194.Steps = list260; reference202 = obj194; - num++; - ref QuestSequence reference203 = ref span259[num]; + ref QuestSequence reference203 = ref span68[1]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj195.Steps = list261; reference203 = obj195; - num++; - ref QuestSequence reference204 = ref span259[num]; + ref QuestSequence reference204 = ref span68[2]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -220291,31 +182704,25 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.Interact, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj196.Steps = list262; reference204 = obj196; - num++; - ref QuestSequence reference205 = ref span259[num]; + ref QuestSequence reference205 = ref span68[3]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj197.Steps = list263; reference205 = obj197; - num++; - ref QuestSequence reference206 = ref span259[num]; + ref QuestSequence reference206 = ref span68[4]; QuestSequence obj198 = new QuestSequence { Sequence = 4 @@ -220323,26 +182730,21 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { StopDistance = 7f }; obj198.Steps = list264; reference206 = obj198; - num++; - ref QuestSequence reference207 = ref span259[num]; + ref QuestSequence reference207 = ref span68[5]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2929) }; @@ -220355,16 +182757,13 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "liza"; + CollectionsMarshal.AsSpan(list266)[0] = "liza"; questRoot29.Author = list266; - index = 4; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference208 = ref span267[num]; + num = 4; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span69 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference208 = ref span69[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -220372,30 +182771,24 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); + CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); obj200.Steps = list268; reference208 = obj200; - num++; - ref QuestSequence reference209 = ref span267[num]; + ref QuestSequence reference209 = ref span69[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj201.Steps = list269; reference209 = obj201; - num++; - ref QuestSequence reference210 = ref span267[num]; + ref QuestSequence reference210 = ref span69[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -220403,9 +182796,7 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -220414,18 +182805,15 @@ public static class AssemblyQuestLoader }; obj202.Steps = list270; reference210 = obj202; - num++; - ref QuestSequence reference211 = ref span267[num]; + ref QuestSequence reference211 = ref span69[3]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2930) }; @@ -220438,16 +182826,13 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - Span span272 = CollectionsMarshal.AsSpan(list272); - index = 0; - span272[index] = "liza"; + CollectionsMarshal.AsSpan(list272)[0] = "liza"; questRoot30.Author = list272; - index = 4; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - ref QuestSequence reference212 = ref span273[num]; + num = 4; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span70 = CollectionsMarshal.AsSpan(list273); + ref QuestSequence reference212 = ref span70[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 @@ -220455,30 +182840,24 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724); obj204.Steps = list274; reference212 = obj204; - num++; - ref QuestSequence reference213 = ref span273[num]; + ref QuestSequence reference213 = ref span70[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj205.Steps = list275; reference213 = obj205; - num++; - ref QuestSequence reference214 = ref span273[num]; + ref QuestSequence reference214 = ref span70[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 @@ -220486,9 +182865,7 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -220497,18 +182874,15 @@ public static class AssemblyQuestLoader }; obj206.Steps = list276; reference214 = obj206; - num++; - ref QuestSequence reference215 = ref span273[num]; + ref QuestSequence reference215 = ref span70[3]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(2931) @@ -220522,16 +182896,13 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - Span span278 = CollectionsMarshal.AsSpan(list278); - index = 0; - span278[index] = "liza"; + CollectionsMarshal.AsSpan(list278)[0] = "liza"; questRoot31.Author = list278; - index = 4; - List list279 = new List(index); - CollectionsMarshal.SetCount(list279, index); - Span span279 = CollectionsMarshal.AsSpan(list279); - num = 0; - ref QuestSequence reference216 = ref span279[num]; + num = 4; + List list279 = new List(num); + CollectionsMarshal.SetCount(list279, num); + Span span71 = CollectionsMarshal.AsSpan(list279); + ref QuestSequence reference216 = ref span71[0]; QuestSequence obj208 = new QuestSequence { Sequence = 0 @@ -220539,33 +182910,27 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 7f }; obj208.Steps = list280; reference216 = obj208; - num++; - ref QuestSequence reference217 = ref span279[num]; + ref QuestSequence reference217 = ref span71[1]; QuestSequence obj209 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj209.Steps = list281; reference217 = obj209; - num++; - ref QuestSequence reference218 = ref span279[num]; + ref QuestSequence reference218 = ref span71[2]; QuestSequence obj210 = new QuestSequence { Sequence = 2 @@ -220573,9 +182938,7 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -220584,18 +182947,15 @@ public static class AssemblyQuestLoader }; obj210.Steps = list282; reference218 = obj210; - num++; - ref QuestSequence reference219 = ref span279[num]; + ref QuestSequence reference219 = ref span71[3]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f, NextQuestId = new QuestId(2932) @@ -220609,16 +182969,13 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = "liza"; + CollectionsMarshal.AsSpan(list284)[0] = "liza"; questRoot32.Author = list284; - index = 4; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref QuestSequence reference220 = ref span285[num]; + num = 4; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span72 = CollectionsMarshal.AsSpan(list285); + ref QuestSequence reference220 = ref span72[0]; QuestSequence obj212 = new QuestSequence { Sequence = 0 @@ -220626,33 +182983,27 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021942u, new Vector3(-208.57562f, -223.5f, -124.16266f), 724) { StopDistance = 7f }; obj212.Steps = list286; reference220 = obj212; - num++; - ref QuestSequence reference221 = ref span285[num]; + ref QuestSequence reference221 = ref span72[1]; QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj213.Steps = list287; reference221 = obj213; - num++; - ref QuestSequence reference222 = ref span285[num]; + ref QuestSequence reference222 = ref span72[2]; QuestSequence obj214 = new QuestSequence { Sequence = 2 @@ -220660,9 +183011,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.Duty, null, null, 724) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Duty, null, null, 724) { DutyOptions = new DutyOptions { @@ -220671,18 +183020,15 @@ public static class AssemblyQuestLoader }; obj214.Steps = list288; reference222 = obj214; - num++; - ref QuestSequence reference223 = ref span285[num]; + ref QuestSequence reference223 = ref span72[3]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(2933) @@ -220696,16 +183042,13 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - span290[index] = "liza"; + CollectionsMarshal.AsSpan(list290)[0] = "liza"; questRoot33.Author = list290; - index = 6; - List list291 = new List(index); - CollectionsMarshal.SetCount(list291, index); - Span span291 = CollectionsMarshal.AsSpan(list291); - num = 0; - ref QuestSequence reference224 = ref span291[num]; + num = 6; + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + Span span73 = CollectionsMarshal.AsSpan(list291); + ref QuestSequence reference224 = ref span73[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -220713,33 +183056,27 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021949u, new Vector3(462.6687f, 69.02547f, 515.06824f), 612) { StopDistance = 5f }; obj216.Steps = list292; reference224 = obj216; - num++; - ref QuestSequence reference225 = ref span291[num]; + ref QuestSequence reference225 = ref span73[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj217.Steps = list293; reference225 = obj217; - num++; - ref QuestSequence reference226 = ref span291[num]; + ref QuestSequence reference226 = ref span73[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -220747,9 +183084,7 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.Interact, 1021952u, new Vector3(40.146484f, -19.000002f, 94.92627f), 132) + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1021952u, new Vector3(40.146484f, -19.000002f, 94.92627f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -220760,22 +183095,18 @@ public static class AssemblyQuestLoader }; obj218.Steps = list294; reference226 = obj218; - num++; - ref QuestSequence reference227 = ref span291[num]; + ref QuestSequence reference227 = ref span73[3]; QuestSequence obj219 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj219.Steps = list295; reference227 = obj219; - num++; - ref QuestSequence reference228 = ref span291[num]; + ref QuestSequence reference228 = ref span73[4]; QuestSequence obj220 = new QuestSequence { Sequence = 4 @@ -220783,23 +183114,18 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span296 = CollectionsMarshal.AsSpan(list296); - index2 = 0; - span296[index2] = new QuestStep(EInteractionType.Interact, 1021953u, new Vector3(41.550293f, -19.000004f, 95.26196f), 132); + CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.Interact, 1021953u, new Vector3(41.550293f, -19.000004f, 95.26196f), 132); obj220.Steps = list296; reference228 = obj220; - num++; - ref QuestSequence reference229 = ref span291[num]; + ref QuestSequence reference229 = ref span73[5]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(3031) @@ -220813,16 +183139,13 @@ public static class AssemblyQuestLoader num = 1; List list298 = new List(num); CollectionsMarshal.SetCount(list298, num); - Span span298 = CollectionsMarshal.AsSpan(list298); - index = 0; - span298[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list298)[0] = "JerryWester"; questRoot34.Author = list298; - index = 4; - List list299 = new List(index); - CollectionsMarshal.SetCount(list299, index); - Span span299 = CollectionsMarshal.AsSpan(list299); - num = 0; - ref QuestSequence reference230 = ref span299[num]; + num = 4; + List list299 = new List(num); + CollectionsMarshal.SetCount(list299, num); + Span span74 = CollectionsMarshal.AsSpan(list299); + ref QuestSequence reference230 = ref span74[0]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -220830,96 +183153,70 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020004u, new Vector3(276.35608f, 3.6584158f, -377.5235f), 614) + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020004u, new Vector3(276.35608f, 3.6584158f, -377.5235f), 614) { StopDistance = 5f }; obj222.Steps = list300; reference230 = obj222; - num++; - span299[num] = new QuestSequence + span74[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference231 = ref span299[num]; + ref QuestSequence reference231 = ref span74[2]; QuestSequence obj223 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list301 = new List(index2); - CollectionsMarshal.SetCount(list301, index2); - Span span301 = CollectionsMarshal.AsSpan(list301); - num2 = 0; - ref QuestStep reference232 = ref span301[num2]; + num2 = 3; + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + Span span75 = CollectionsMarshal.AsSpan(list301); + ref QuestStep reference232 = ref span75[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1020008u, new Vector3(5.996765f, -0.5066767f, 2.5177002f), 681); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list302; reference232 = questStep11; - num2++; - ref QuestStep reference233 = ref span301[num2]; + ref QuestStep reference233 = ref span75[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list303; reference233 = questStep12; - num2++; - ref QuestStep reference234 = ref span301[num2]; + ref QuestStep reference234 = ref span75[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1020009u, new Vector3(-45.243042f, -0.2509899f, -31.845642f), 681); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list304; reference234 = questStep13; obj223.Steps = list301; reference231 = obj223; - num++; - ref QuestSequence reference235 = ref span299[num]; + ref QuestSequence reference235 = ref span74[3]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue @@ -220927,16 +183224,12 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - ref QuestStep reference236 = ref span305[index2]; + ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list305)[0]; 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); - Span span306 = CollectionsMarshal.AsSpan(list306); - num4 = 0; - span306[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list306)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDA325_02934_Q1_000_064"), @@ -220953,33 +183246,27 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - Span span307 = CollectionsMarshal.AsSpan(list307); - index = 0; - span307[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list307)[0] = "JerryWester"; questRoot35.Author = list307; - index = 3; - List list308 = new List(index); - CollectionsMarshal.SetCount(list308, index); - Span span308 = CollectionsMarshal.AsSpan(list308); - num = 0; - ref QuestSequence reference237 = ref span308[num]; + num = 3; + List list308 = new List(num); + CollectionsMarshal.SetCount(list308, num); + Span span79 = CollectionsMarshal.AsSpan(list308); + ref QuestSequence reference237 = ref span79[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj225.Steps = list309; reference237 = obj225; - num++; - ref QuestSequence reference238 = ref span308[num]; + ref QuestSequence reference238 = ref span79[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 @@ -220987,33 +183274,27 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.Interact, 1020053u, new Vector3(456.01575f, 41.2719f, -43.320435f), 614) + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1020053u, new Vector3(456.01575f, 41.2719f, -43.320435f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj226.Steps = list310; reference238 = obj226; - num++; - ref QuestSequence reference239 = ref span308[num]; + ref QuestSequence reference239 = ref span79[2]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818201u }; - num2++; - span311[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); + span80[2] = new QuestStep(EInteractionType.CompleteQuest, 1020055u, new Vector3(-463.21814f, 1.2300053f, 535.6068f), 614); obj227.Steps = list311; reference239 = obj227; questRoot35.QuestSequence = list308; @@ -221023,16 +183304,13 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - Span span312 = CollectionsMarshal.AsSpan(list312); - index = 0; - span312[index] = "liza"; + CollectionsMarshal.AsSpan(list312)[0] = "liza"; questRoot36.Author = list312; - index = 2; - List list313 = new List(index); - CollectionsMarshal.SetCount(list313, index); - Span span313 = CollectionsMarshal.AsSpan(list313); - num = 0; - ref QuestSequence reference240 = ref span313[num]; + num = 2; + List list313 = new List(num); + CollectionsMarshal.SetCount(list313, num); + Span span81 = CollectionsMarshal.AsSpan(list313); + ref QuestSequence reference240 = ref span81[0]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -221040,9 +183318,7 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -221056,18 +183332,15 @@ public static class AssemblyQuestLoader }; obj228.Steps = list314; reference240 = obj228; - num++; - ref QuestSequence reference241 = ref span313[num]; + ref QuestSequence reference241 = ref span81[1]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2937) }; @@ -221080,16 +183353,13 @@ public static class AssemblyQuestLoader num = 1; List list316 = new List(num); CollectionsMarshal.SetCount(list316, num); - Span span316 = CollectionsMarshal.AsSpan(list316); - index = 0; - span316[index] = "liza"; + CollectionsMarshal.AsSpan(list316)[0] = "liza"; questRoot37.Author = list316; - index = 2; - List list317 = new List(index); - CollectionsMarshal.SetCount(list317, index); - Span span317 = CollectionsMarshal.AsSpan(list317); - num = 0; - ref QuestSequence reference242 = ref span317[num]; + num = 2; + List list317 = new List(num); + CollectionsMarshal.SetCount(list317, num); + Span span82 = CollectionsMarshal.AsSpan(list317); + ref QuestSequence reference242 = ref span82[0]; QuestSequence obj230 = new QuestSequence { Sequence = 0 @@ -221097,9 +183367,7 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -221113,18 +183381,15 @@ public static class AssemblyQuestLoader }; obj230.Steps = list318; reference242 = obj230; - num++; - ref QuestSequence reference243 = ref span317[num]; + ref QuestSequence reference243 = ref span82[1]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2938) }; @@ -221137,16 +183402,13 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - Span span320 = CollectionsMarshal.AsSpan(list320); - index = 0; - span320[index] = "liza"; + CollectionsMarshal.AsSpan(list320)[0] = "liza"; questRoot38.Author = list320; - index = 2; - List list321 = new List(index); - CollectionsMarshal.SetCount(list321, index); - Span span321 = CollectionsMarshal.AsSpan(list321); - num = 0; - ref QuestSequence reference244 = ref span321[num]; + num = 2; + List list321 = new List(num); + CollectionsMarshal.SetCount(list321, num); + Span span83 = CollectionsMarshal.AsSpan(list321); + ref QuestSequence reference244 = ref span83[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -221154,9 +183416,7 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -221170,18 +183430,15 @@ public static class AssemblyQuestLoader }; obj232.Steps = list322; reference244 = obj232; - num++; - ref QuestSequence reference245 = ref span321[num]; + ref QuestSequence reference245 = ref span83[1]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2939) }; @@ -221194,16 +183451,13 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - Span span324 = CollectionsMarshal.AsSpan(list324); - index = 0; - span324[index] = "liza"; + CollectionsMarshal.AsSpan(list324)[0] = "liza"; questRoot39.Author = list324; - index = 2; - List list325 = new List(index); - CollectionsMarshal.SetCount(list325, index); - Span span325 = CollectionsMarshal.AsSpan(list325); - num = 0; - ref QuestSequence reference246 = ref span325[num]; + num = 2; + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + Span span84 = CollectionsMarshal.AsSpan(list325); + ref QuestSequence reference246 = ref span84[0]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -221211,9 +183465,7 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019007u, new Vector3(-42.526978f, -2.9f, -47.959167f), 628) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -221227,18 +183479,15 @@ public static class AssemblyQuestLoader }; obj234.Steps = list326; reference246 = obj234; - num++; - ref QuestSequence reference247 = ref span325[num]; + ref QuestSequence reference247 = ref span84[1]; QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3597) }; @@ -221251,16 +183500,13 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - Span span328 = CollectionsMarshal.AsSpan(list328); - index = 0; - span328[index] = "liza"; + CollectionsMarshal.AsSpan(list328)[0] = "liza"; questRoot40.Author = list328; - index = 2; - List list329 = new List(index); - CollectionsMarshal.SetCount(list329, index); - Span span329 = CollectionsMarshal.AsSpan(list329); - num = 0; - ref QuestSequence reference248 = ref span329[num]; + num = 2; + List list329 = new List(num); + CollectionsMarshal.SetCount(list329, num); + Span span85 = CollectionsMarshal.AsSpan(list329); + ref QuestSequence reference248 = ref span85[0]; QuestSequence obj236 = new QuestSequence { Sequence = 0 @@ -221268,9 +183514,7 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023642u, new Vector3(53.787964f, 0f, 93.0647f), 635) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023642u, new Vector3(53.787964f, 0f, 93.0647f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -221283,18 +183527,15 @@ public static class AssemblyQuestLoader }; obj236.Steps = list330; reference248 = obj236; - num++; - ref QuestSequence reference249 = ref span329[num]; + ref QuestSequence reference249 = ref span85[1]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -221312,16 +183553,12 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = "liza"; + CollectionsMarshal.AsSpan(list332)[0] = "liza"; questRoot41.Author = list332; - index = 1; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref QuestSequence reference250 = ref span333[num]; + num = 1; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + ref QuestSequence reference250 = ref CollectionsMarshal.AsSpan(list333)[0]; QuestSequence obj238 = new QuestSequence { Sequence = 0 @@ -221329,9 +183566,8 @@ public static class AssemblyQuestLoader num2 = 2; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) + Span span86 = CollectionsMarshal.AsSpan(list334); + span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -221342,8 +183578,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + span86[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj238.Steps = list334; reference250 = obj238; questRoot41.QuestSequence = list333; @@ -221353,26 +183588,20 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - Span span335 = CollectionsMarshal.AsSpan(list335); - index = 0; - span335[index] = "liza"; + CollectionsMarshal.AsSpan(list335)[0] = "liza"; questRoot42.Author = list335; - index = 1; - List list336 = new List(index); - CollectionsMarshal.SetCount(list336, index); - Span span336 = CollectionsMarshal.AsSpan(list336); - num = 0; - ref QuestSequence reference251 = ref span336[num]; + num = 1; + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + ref QuestSequence reference251 = ref CollectionsMarshal.AsSpan(list336)[0]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj239.Steps = list337; reference251 = obj239; questRoot42.QuestSequence = list336; @@ -221382,16 +183611,13 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - Span span338 = CollectionsMarshal.AsSpan(list338); - index = 0; - span338[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list338)[0] = "JerryWester"; questRoot43.Author = list338; - index = 4; - List list339 = new List(index); - CollectionsMarshal.SetCount(list339, index); - Span span339 = CollectionsMarshal.AsSpan(list339); - num = 0; - ref QuestSequence reference252 = ref span339[num]; + num = 4; + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + Span span87 = CollectionsMarshal.AsSpan(list339); + ref QuestSequence reference252 = ref span87[0]; QuestSequence obj240 = new QuestSequence { Sequence = 0 @@ -221399,28 +183625,23 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj240.Steps = list340; reference252 = obj240; - num++; - ref QuestSequence reference253 = ref span339[num]; + ref QuestSequence reference253 = ref span87[1]; QuestSequence obj241 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)628 }; - num2++; - span341[num2] = new QuestStep(EInteractionType.Interact, 1020222u, new Vector3(-9.781128f, 5.982579f, -172.53375f), 628) + span88[1] = new QuestStep(EInteractionType.Interact, 1020222u, new Vector3(-9.781128f, 5.982579f, -172.53375f), 628) { AethernetShortcut = new AethernetShortcut { @@ -221430,8 +183651,7 @@ public static class AssemblyQuestLoader }; obj241.Steps = list341; reference253 = obj241; - num++; - ref QuestSequence reference254 = ref span339[num]; + ref QuestSequence reference254 = ref span87[2]; QuestSequence obj242 = new QuestSequence { Sequence = 2 @@ -221439,9 +183659,8 @@ public static class AssemblyQuestLoader num2 = 2; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + Span span89 = CollectionsMarshal.AsSpan(list342); + span89[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -221450,22 +183669,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - index2++; - span342[index2] = new QuestStep(EInteractionType.Interact, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); + span89[1] = new QuestStep(EInteractionType.Interact, 1023084u, new Vector3(-1.5717163f, 0f, -1.449646f), 639); obj242.Steps = list342; reference254 = obj242; - num++; - ref QuestSequence reference255 = ref span339[num]; + ref QuestSequence reference255 = ref span87[3]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -221479,16 +183694,13 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - Span span344 = CollectionsMarshal.AsSpan(list344); - index = 0; - span344[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list344)[0] = "JerryWester"; questRoot44.Author = list344; - index = 6; - List list345 = new List(index); - CollectionsMarshal.SetCount(list345, index); - Span span345 = CollectionsMarshal.AsSpan(list345); - num = 0; - ref QuestSequence reference256 = ref span345[num]; + num = 6; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + Span span90 = CollectionsMarshal.AsSpan(list345); + ref QuestSequence reference256 = ref span90[0]; QuestSequence obj244 = new QuestSequence { Sequence = 0 @@ -221496,23 +183708,19 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - span346[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614); + CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614); obj244.Steps = list346; reference256 = obj244; - num++; - ref QuestSequence reference257 = ref span345[num]; + ref QuestSequence reference257 = ref span90[1]; QuestSequence obj245 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -221522,8 +183730,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span347[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.4086f, -0.3000002f, 271.62607f), 614) + span91[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.4086f, -0.3000002f, 271.62607f), 614) { SkipConditions = new SkipConditions { @@ -221533,8 +183740,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span347[num2] = new QuestStep(EInteractionType.UseItem, 2007926u, new Vector3(164.99573f, 6.2713623f, 357.80872f), 614) + span91[2] = new QuestStep(EInteractionType.UseItem, 2007926u, new Vector3(164.99573f, 6.2713623f, 357.80872f), 614) { Fly = true, ItemId = 2002176u, @@ -221542,8 +183748,7 @@ public static class AssemblyQuestLoader }; obj245.Steps = list347; reference257 = obj245; - num++; - ref QuestSequence reference258 = ref span345[num]; + ref QuestSequence reference258 = ref span90[2]; QuestSequence obj246 = new QuestSequence { Sequence = 2 @@ -221551,84 +183756,60 @@ public static class AssemblyQuestLoader num2 = 3; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - ref QuestStep reference259 = ref span348[index2]; + Span span92 = CollectionsMarshal.AsSpan(list348); + ref QuestStep reference259 = ref span92[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2007928u, new Vector3(170.55005f, 6.6376343f, 360.12805f), 614); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list349; reference259 = questStep15; - index2++; - ref QuestStep reference260 = ref span348[index2]; + ref QuestStep reference260 = ref span92[1]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list350; reference260 = questStep16; - index2++; - ref QuestStep reference261 = ref span348[index2]; + ref QuestStep reference261 = ref span92[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2007929u, new Vector3(157.61035f, 6.6376343f, 357.01526f), 614); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list351; reference261 = questStep17; obj246.Steps = list348; reference258 = obj246; - num++; - ref QuestSequence reference262 = ref span345[num]; + ref QuestSequence reference262 = ref span90[3]; QuestSequence obj247 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, ItemId = 2002176u, @@ -221636,8 +183817,7 @@ public static class AssemblyQuestLoader }; obj247.Steps = list352; reference262 = obj247; - num++; - ref QuestSequence reference263 = ref span345[num]; + ref QuestSequence reference263 = ref span90[4]; QuestSequence obj248 = new QuestSequence { Sequence = 4 @@ -221645,147 +183825,103 @@ public static class AssemblyQuestLoader num2 = 6; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - ref QuestStep reference264 = ref span353[index2]; + Span span96 = CollectionsMarshal.AsSpan(list353); + ref QuestStep reference264 = ref span96[0]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list354; reference264 = questStep18; - index2++; - ref QuestStep reference265 = ref span353[index2]; + ref QuestStep reference265 = ref span96[1]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2008193u, new Vector3(44.87671f, 5.3864136f, 293.59875f), 614); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list355; reference265 = questStep19; - index2++; - ref QuestStep reference266 = ref span353[index2]; + ref QuestStep reference266 = ref span96[2]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list356; reference266 = questStep20; - index2++; - ref QuestStep reference267 = ref span353[index2]; + ref QuestStep reference267 = ref span96[3]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2008188u, new Vector3(49.759644f, 5.9662476f, 301.07568f), 614); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list357; reference267 = questStep21; - index2++; - ref QuestStep reference268 = ref span353[index2]; + ref QuestStep reference268 = ref span96[4]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list358; reference268 = questStep22; - index2++; - ref QuestStep reference269 = ref span353[index2]; + ref QuestStep reference269 = ref span96[5]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2008190u, new Vector3(33.829224f, 4.8065186f, 308.5221f), 614); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list359; reference269 = questStep23; obj248.Steps = list353; reference263 = obj248; - num++; - ref QuestSequence reference270 = ref span345[num]; + ref QuestSequence reference270 = ref span90[5]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -221795,8 +183931,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span360[num2] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) + span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1020232u, new Vector3(337.27014f, 31.034986f, 206.43921f), 614) { Fly = true }; @@ -221809,16 +183944,13 @@ public static class AssemblyQuestLoader num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - Span span361 = CollectionsMarshal.AsSpan(list361); - index = 0; - span361[index] = "xan"; + CollectionsMarshal.AsSpan(list361)[0] = "xan"; questRoot45.Author = list361; - index = 8; - List list362 = new List(index); - CollectionsMarshal.SetCount(list362, index); - Span span362 = CollectionsMarshal.AsSpan(list362); - num = 0; - ref QuestSequence reference271 = ref span362[num]; + num = 8; + List list362 = new List(num); + CollectionsMarshal.SetCount(list362, num); + Span span104 = CollectionsMarshal.AsSpan(list362); + ref QuestSequence reference271 = ref span104[0]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -221826,9 +183958,8 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span105 = CollectionsMarshal.AsSpan(list363); + span105[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -221844,22 +183975,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span363[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span105[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj250.Steps = list363; reference271 = obj250; - num++; - ref QuestSequence reference272 = ref span362[num]; + ref QuestSequence reference272 = ref span104[1]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)129, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -221890,12 +184018,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span364[num2] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); + span106[1] = new QuestStep(EInteractionType.Interact, 1009943u, new Vector3(-153.36847f, -129.4397f, 265.88843f), 129); obj251.Steps = list364; reference272 = obj251; - num++; - ref QuestSequence reference273 = ref span362[num]; + ref QuestSequence reference273 = ref span104[2]; QuestSequence obj252 = new QuestSequence { Sequence = 2 @@ -221903,9 +184029,7 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - ref QuestStep reference274 = ref span365[index2]; + ref QuestStep reference274 = ref CollectionsMarshal.AsSpan(list365)[0]; QuestStep obj253 = new QuestStep(EInteractionType.Interact, 1005411u, new Vector3(13.412659f, 40.2f, -13.260071f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -221918,9 +184042,7 @@ public static class AssemblyQuestLoader num3 = 1; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span366 = CollectionsMarshal.AsSpan(list366); - num4 = 0; - span366[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list366)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN601_02948_Q1_000_031"), @@ -221930,40 +184052,34 @@ public static class AssemblyQuestLoader reference274 = obj253; obj252.Steps = list365; reference273 = obj252; - num++; - ref QuestSequence reference275 = ref span362[num]; + ref QuestSequence reference275 = ref span104[3]; QuestSequence obj254 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list367 = new List(index2); - CollectionsMarshal.SetCount(list367, index2); - Span span367 = CollectionsMarshal.AsSpan(list367); - num2 = 0; - ref QuestStep reference276 = ref span367[num2]; + num2 = 2; + List list367 = new List(num2); + CollectionsMarshal.SetCount(list367, num2); + Span span107 = CollectionsMarshal.AsSpan(list367); + ref QuestStep reference276 = ref span107[0]; 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(); - num4 = 1; - List list368 = new List(num4); - CollectionsMarshal.SetCount(list368, num4); - Span span368 = CollectionsMarshal.AsSpan(list368); - num3 = 0; - span368[num3] = 129; + num3 = 1; + List list368 = new List(num3); + CollectionsMarshal.SetCount(list368, num3); + CollectionsMarshal.AsSpan(list368)[0] = 129; skipStepConditions.InTerritory = list368; skipConditions3.StepIf = skipStepConditions; obj255.SkipConditions = skipConditions3; reference276 = obj255; - num2++; - span367[num2] = new QuestStep(EInteractionType.Interact, 1023751u, new Vector3(0.62561035f, 20.333344f, 5.935669f), 129); + span107[1] = new QuestStep(EInteractionType.Interact, 1023751u, new Vector3(0.62561035f, 20.333344f, 5.935669f), 129); obj254.Steps = list367; reference275 = obj254; - num++; - ref QuestSequence reference277 = ref span362[num]; + ref QuestSequence reference277 = ref span104[4]; QuestSequence obj256 = new QuestSequence { Sequence = 4 @@ -221971,26 +184087,21 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span369 = CollectionsMarshal.AsSpan(list369); - index2 = 0; - span369[index2] = new QuestStep(EInteractionType.Interact, 1023545u, new Vector3(-3.8911133f, 66.760155f, 45.303955f), 137) + CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1023545u, new Vector3(-3.8911133f, 66.760155f, 45.303955f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj256.Steps = list369; reference277 = obj256; - num++; - ref QuestSequence reference278 = ref span362[num]; + ref QuestSequence reference278 = ref span104[5]; QuestSequence obj257 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list370 = new List(index2); - CollectionsMarshal.SetCount(list370, index2); - Span span370 = CollectionsMarshal.AsSpan(list370); - num2 = 0; - ref QuestStep reference279 = ref span370[num2]; + num2 = 1; + List list370 = new List(num2); + CollectionsMarshal.SetCount(list370, num2); + ref QuestStep reference279 = ref CollectionsMarshal.AsSpan(list370)[0]; QuestStep obj258 = new QuestStep(EInteractionType.Combat, 1023547u, new Vector3(468.80298f, 10.538202f, 774.13586f), 137) { Fly = true, @@ -222000,15 +184111,12 @@ public static class AssemblyQuestLoader num3 = 1; List list371 = new List(num3); CollectionsMarshal.SetCount(list371, num3); - Span span371 = CollectionsMarshal.AsSpan(list371); - num4 = 0; - span371[num4] = 7496u; + CollectionsMarshal.AsSpan(list371)[0] = 7496u; obj258.KillEnemyDataIds = list371; reference279 = obj258; obj257.Steps = list370; reference278 = obj257; - num++; - ref QuestSequence reference280 = ref span362[num]; + ref QuestSequence reference280 = ref span104[6]; QuestSequence obj259 = new QuestSequence { Sequence = 6 @@ -222016,26 +184124,22 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - span372[index2] = new QuestStep(EInteractionType.Interact, 1023550u, new Vector3(477.10376f, 11.543927f, 232.28796f), 137) + CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1023550u, new Vector3(477.10376f, 11.543927f, 232.28796f), 137) { Fly = true }; obj259.Steps = list372; reference280 = obj259; - num++; - ref QuestSequence reference281 = ref span362[num]; + ref QuestSequence reference281 = ref span104[7]; QuestSequence obj260 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -222047,8 +184151,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span373[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2949) }; @@ -222061,16 +184164,13 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - Span span374 = CollectionsMarshal.AsSpan(list374); - index = 0; - span374[index] = "xan"; + CollectionsMarshal.AsSpan(list374)[0] = "xan"; questRoot46.Author = list374; - index = 9; - List list375 = new List(index); - CollectionsMarshal.SetCount(list375, index); - Span span375 = CollectionsMarshal.AsSpan(list375); - num = 0; - ref QuestSequence reference282 = ref span375[num]; + num = 9; + List list375 = new List(num); + CollectionsMarshal.SetCount(list375, num); + Span span109 = CollectionsMarshal.AsSpan(list375); + ref QuestSequence reference282 = ref span109[0]; QuestSequence obj261 = new QuestSequence { Sequence = 0 @@ -222078,9 +184178,8 @@ public static class AssemblyQuestLoader num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - span376[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span110 = CollectionsMarshal.AsSpan(list376); + span110[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -222096,22 +184195,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span376[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010778u, new Vector3(-28.854858f, -24.773243f, 265.3086f), 137); + span110[1] = new QuestStep(EInteractionType.AcceptQuest, 1010778u, new Vector3(-28.854858f, -24.773243f, 265.3086f), 137); obj261.Steps = list376; reference282 = obj261; - num++; - ref QuestSequence reference283 = ref span375[num]; + ref QuestSequence reference283 = ref span109[1]; QuestSequence obj262 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -222122,8 +184217,7 @@ public static class AssemblyQuestLoader }; obj262.Steps = list377; reference283 = obj262; - num++; - ref QuestSequence reference284 = ref span375[num]; + ref QuestSequence reference284 = ref span109[2]; QuestSequence obj263 = new QuestSequence { Sequence = 2 @@ -222131,9 +184225,8 @@ public static class AssemblyQuestLoader num2 = 5; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - ref QuestStep reference285 = ref span378[index2]; + Span span111 = CollectionsMarshal.AsSpan(list378); + ref QuestStep reference285 = ref span111[0]; QuestStep obj264 = new QuestStep(EInteractionType.Action, null, new Vector3(-22.793612f, 2.2649765E-06f, -60.22008f), 628) { AethernetShortcut = new AethernetShortcut @@ -222145,78 +184238,59 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list379; skipConditions4.StepIf = skipStepConditions2; obj264.SkipConditions = skipConditions4; reference285 = obj264; - index2++; - ref QuestStep reference286 = ref span378[index2]; + ref QuestStep reference286 = ref span111[1]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list380; reference286 = questStep24; - index2++; - span378[index2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) + span111[2] = new QuestStep(EInteractionType.StatusOff, null, null, 628) { Status = EStatus.Hidden }; - index2++; - span378[index2] = new QuestStep(EInteractionType.Action, null, new Vector3(-53.864307f, -2.1307263f, -106.929726f), 628) + span111[3] = new QuestStep(EInteractionType.Action, null, new Vector3(-53.864307f, -2.1307263f, -106.929726f), 628) { Action = EAction.Hide }; - index2++; - span378[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.41595f, -7.300003f, -111.459076f), 628); + span111[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.41595f, -7.300003f, -111.459076f), 628); obj263.Steps = list378; reference284 = obj263; - num++; - ref QuestSequence reference287 = ref span375[num]; + ref QuestSequence reference287 = ref span109[3]; QuestSequence obj265 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Status = EStatus.Hidden }; - num2++; - span381[num2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + span114[1] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AethernetShortcut = new AethernetShortcut { @@ -222226,8 +184300,7 @@ public static class AssemblyQuestLoader }; obj265.Steps = list381; reference287 = obj265; - num++; - ref QuestSequence reference288 = ref span375[num]; + ref QuestSequence reference288 = ref span109[4]; QuestSequence obj266 = new QuestSequence { Sequence = 4 @@ -222235,9 +184308,8 @@ public static class AssemblyQuestLoader num2 = 5; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span382[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-75.76606f, 18f, -164.78288f), 628) + Span span115 = CollectionsMarshal.AsSpan(list382); + span115[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-75.76606f, 18f, -164.78288f), 628) { AethernetShortcut = new AethernetShortcut { @@ -222249,55 +184321,47 @@ public static class AssemblyQuestLoader Position = new Vector3(-70.46664f, 19.583387f, -163.98515f) } }; - index2++; - span382[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-70.54904f, 19.550425f, -163.96664f), 628) + span115[1] = 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) } }; - index2++; - span382[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-68.15528f, 20.696194f, -163.4804f), 628) + span115[2] = 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) } }; - index2++; - span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-39.38211f, 20.545578f, -156.03827f), 628) + span115[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-39.38211f, 20.545578f, -156.03827f), 628) { DisableNavmesh = true }; - index2++; - span382[index2] = new QuestStep(EInteractionType.Interact, 2008933u, new Vector3(-40.05493f, 18.783813f, -143.3891f), 628) + span115[4] = new QuestStep(EInteractionType.Interact, 2008933u, new Vector3(-40.05493f, 18.783813f, -143.3891f), 628) { DisableNavmesh = true }; obj266.Steps = list382; reference288 = obj266; - num++; - ref QuestSequence reference289 = ref span375[num]; + ref QuestSequence reference289 = ref span109[5]; QuestSequence obj267 = new QuestSequence { Sequence = 5 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span383[num2] = new QuestStep(EInteractionType.Interact, 2008934u, new Vector3(-117.5708f, 13.412659f, -134.35571f), 628); + span116[1] = new QuestStep(EInteractionType.Interact, 2008934u, new Vector3(-117.5708f, 13.412659f, -134.35571f), 628); obj267.Steps = list383; reference289 = obj267; - num++; - ref QuestSequence reference290 = ref span375[num]; + ref QuestSequence reference290 = ref span109[6]; QuestSequence obj268 = new QuestSequence { Sequence = 6 @@ -222305,27 +184369,21 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - Span span384 = CollectionsMarshal.AsSpan(list384); - index2 = 0; - span384[index2] = new QuestStep(EInteractionType.Interact, 2008935u, new Vector3(-118.18121f, 13.199036f, -143.14496f), 628); + CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 2008935u, new Vector3(-118.18121f, 13.199036f, -143.14496f), 628); obj268.Steps = list384; reference290 = obj268; - num++; - ref QuestSequence reference291 = ref span375[num]; + ref QuestSequence reference291 = ref span109[7]; QuestSequence obj269 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj269.Steps = list385; reference291 = obj269; - num++; - ref QuestSequence reference292 = ref span375[num]; + ref QuestSequence reference292 = ref span109[8]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -222333,9 +184391,7 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - span386[index2] = new QuestStep(EInteractionType.CompleteQuest, 2008937u, new Vector3(116.80774f, 11.9782715f, -38.345947f), 628) + CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.CompleteQuest, 2008937u, new Vector3(116.80774f, 11.9782715f, -38.345947f), 628) { AethernetShortcut = new AethernetShortcut { @@ -222357,16 +184413,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "xan"; + CollectionsMarshal.AsSpan(list)[0] = "xan"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -222374,9 +184427,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -222389,18 +184440,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -222410,8 +184458,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -222419,27 +184466,21 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1023566u, new Vector3(8.682312f, 4f, 49.881714f), 628); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1023566u, new Vector3(8.682312f, 4f, 49.881714f), 628); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -222447,9 +184488,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1023555u, new Vector3(116.349976f, 11.993538f, -40.45172f), 628) { AethernetShortcut = new AethernetShortcut { @@ -222459,18 +184498,15 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -222489,8 +184525,7 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[6]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -222498,9 +184533,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -222521,26 +184554,21 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "xan"; + CollectionsMarshal.AsSpan(list10)[0] = "xan"; questRoot2.Author = list10; - index = 9; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference8 = ref span11[num]; + num = 9; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span2 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference8 = ref span2[0]; QuestSequence obj8 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list12)[0]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1023571u, new Vector3(413.0769f, 68.02851f, -99.321045f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -222555,9 +184583,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - int index3 = 0; - span13[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list13)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_Q1_000_003"), @@ -222567,8 +184593,7 @@ public static class AssemblyQuestLoader reference9 = obj9; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span11[num]; + ref QuestSequence reference10 = ref span2[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -222576,33 +184601,26 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1023573u, new Vector3(703.24243f, 107.83904f, -341.45117f), 614) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1023573u, new Vector3(703.24243f, 107.83904f, -341.45117f), 614) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span11[num]; + ref QuestSequence reference11 = ref span2[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference12 = ref span15[num2]; + num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614); - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new DialogueChoice + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_SYSTEM_100_049") @@ -222611,8 +184629,7 @@ public static class AssemblyQuestLoader reference12 = questStep; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference13 = ref span11[num]; + ref QuestSequence reference13 = ref span2[3]; QuestSequence obj12 = new QuestSequence { Sequence = 3 @@ -222620,27 +184637,21 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); obj12.Steps = list17; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span11[num]; + ref QuestSequence reference14 = ref span2[4]; QuestSequence obj13 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj13.Steps = list18; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span11[num]; + ref QuestSequence reference15 = ref span2[5]; QuestSequence obj14 = new QuestSequence { Sequence = 5 @@ -222648,9 +184659,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference16 = ref span19[index2]; + ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(555.4114f, 16.160986f, 390.68732f), 614) { StopDistance = 1f, @@ -222660,35 +184669,28 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - index3 = 0; - span20[index3] = 6641u; + CollectionsMarshal.AsSpan(list20)[0] = 6641u; obj15.KillEnemyDataIds = list20; reference16 = obj15; obj14.Steps = list19; reference15 = obj14; - num++; - ref QuestSequence reference17 = ref span11[num]; + ref QuestSequence reference17 = ref span2[6]; QuestSequence obj16 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref QuestStep reference18 = ref span21[num2]; + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list21)[0]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1023570u, new Vector3(412.16138f, 68.02851f, -96.75751f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - index3 = 1; - List list22 = new List(index3); - CollectionsMarshal.SetCount(list22, index3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = new DialogueChoice + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBNIN680_02951_SYSTEM_100_049") @@ -222697,8 +184699,7 @@ public static class AssemblyQuestLoader reference18 = obj17; obj16.Steps = list21; reference17 = obj16; - num++; - ref QuestSequence reference19 = ref span11[num]; + ref QuestSequence reference19 = ref span2[7]; QuestSequence obj18 = new QuestSequence { Sequence = 7 @@ -222706,23 +184707,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1023577u, new Vector3(693.2936f, 171.37398f, 84.82483f), 614); obj18.Steps = list23; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span11[num]; + ref QuestSequence reference20 = ref span2[8]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(2952) }; @@ -222735,16 +184731,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "xan"; + CollectionsMarshal.AsSpan(list25)[0] = "xan"; questRoot3.Author = list25; - index = 3; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference21 = ref span26[num]; + num = 3; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span3 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference21 = ref span3[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -222752,9 +184745,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref QuestStep reference22 = ref span27[index2]; + ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list27)[0]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1023570u, new Vector3(413.0769f, 68.02851f, -99.321045f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -222769,9 +184760,7 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span28 = CollectionsMarshal.AsSpan(list28); - index3 = 0; - span28[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list28)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBNIN700_02952_Q1_100_004"), @@ -222781,18 +184770,15 @@ public static class AssemblyQuestLoader reference22 = obj21; obj20.Steps = list27; reference21 = obj20; - num++; - ref QuestSequence reference23 = ref span26[num]; + ref QuestSequence reference23 = ref span3[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -222811,8 +184797,7 @@ public static class AssemblyQuestLoader }; obj22.Steps = list29; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span26[num]; + ref QuestSequence reference24 = ref span3[2]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -222820,9 +184805,8 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span4 = CollectionsMarshal.AsSpan(list30); + span4[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, @@ -222834,8 +184818,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) + span4[1] = new QuestStep(EInteractionType.CompleteQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137) { NextQuestId = new QuestId(2949) }; @@ -222848,26 +184831,22 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list31)[0] = "JerryWester"; questRoot4.Author = list31; - index = 5; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference25 = ref span32[num]; + num = 5; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span5 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference25 = ref span5[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, SkipConditions = new SkipConditions @@ -222878,15 +184857,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.AcceptQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) + span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1021507u, new Vector3(57.236572f, 1.575162f, -578.24066f), 613) { DisableNavmesh = true }; obj24.Steps = list33; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span32[num]; + ref QuestSequence reference26 = ref span5[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -222894,42 +184871,34 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - ref QuestStep reference27 = ref span34[index2]; + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list34)[0]; QuestStep obj26 = new QuestStep(EInteractionType.Combat, null, new Vector3(-371.42313f, 3.2183487f, -537.3274f), 613) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list35 = new List(index3); - CollectionsMarshal.SetCount(list35, index3); - Span span35 = CollectionsMarshal.AsSpan(list35); - num3 = 0; - span35[num3] = 8029u; + num3 = 1; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + CollectionsMarshal.AsSpan(list35)[0] = 8029u; obj26.KillEnemyDataIds = list35; reference27 = obj26; obj25.Steps = list34; reference26 = obj25; - num++; - ref QuestSequence reference28 = ref span32[num]; + ref QuestSequence reference28 = ref span5[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj27.Steps = list36; reference28 = obj27; - num++; - ref QuestSequence reference29 = ref span32[num]; + ref QuestSequence reference29 = ref span5[3]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -222937,26 +184906,21 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1023682u, new Vector3(-367.9713f, 3.3707767f, -534.4778f), 613) { StopDistance = 7f }; obj28.Steps = list37; reference29 = obj28; - num++; - ref QuestSequence reference30 = ref span32[num]; + ref QuestSequence reference30 = ref span5[4]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; @@ -222969,16 +184933,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list39)[0] = "JerryWester"; questRoot5.Author = list39; - index = 3; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference31 = ref span40[num]; + num = 3; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span7 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference31 = ref span7[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -222986,9 +184947,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -223001,18 +184960,16 @@ public static class AssemblyQuestLoader }; obj30.Steps = list41; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span7[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list42 = new List(index2); - CollectionsMarshal.SetCount(list42, index2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num2 = 0; - ref QuestStep reference33 = ref span42[num2]; + num2 = 2; + List list42 = new List(num2); + CollectionsMarshal.SetCount(list42, num2); + Span span8 = CollectionsMarshal.AsSpan(list42); + ref QuestStep reference33 = ref span8[0]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(-53.208252f, 104.518814f, -739.1928f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -223020,9 +184977,7 @@ public static class AssemblyQuestLoader num3 = 1; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - Span span43 = CollectionsMarshal.AsSpan(list43); - index3 = 0; - span43[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list43)[0] = new ComplexCombatData { DataId = 7447u, MinimumKillCount = 1u, @@ -223031,18 +184986,15 @@ public static class AssemblyQuestLoader }; obj32.ComplexCombatData = list43; reference33 = obj32; - num2++; - ref QuestStep reference34 = ref span42[num2]; + ref QuestStep reference34 = ref span8[1]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(-476.92078f, 48.885674f, -732.2957f), 620) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list44 = new List(index3); - CollectionsMarshal.SetCount(list44, index3); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = new ComplexCombatData + num3 = 1; + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData { DataId = 7450u, MinimumKillCount = 1u, @@ -223053,8 +185005,7 @@ public static class AssemblyQuestLoader reference34 = obj33; obj31.Steps = list42; reference32 = obj31; - num++; - ref QuestSequence reference35 = ref span40[num]; + ref QuestSequence reference35 = ref span7[2]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -223062,9 +185013,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020842u, new Vector3(81.55945f, 118.15579f, -717.89124f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -223077,26 +185026,21 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list46)[0] = "JerryWester"; questRoot6.Author = list46; - index = 4; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference36 = ref span47[num]; + num = 4; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span9 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference36 = ref span9[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha, SkipConditions = new SkipConditions @@ -223109,8 +185053,7 @@ public static class AssemblyQuestLoader }; obj35.Steps = list48; reference36 = obj35; - num++; - ref QuestSequence reference37 = ref span47[num]; + ref QuestSequence reference37 = ref span9[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -223118,9 +185061,7 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 1020857u, new Vector3(-768.91736f, 81.467896f, -300.8011f), 620) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1020857u, new Vector3(-768.91736f, 81.467896f, -300.8011f), 620) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -223131,22 +185072,18 @@ public static class AssemblyQuestLoader }; obj36.Steps = list49; reference37 = obj36; - num++; - ref QuestSequence reference38 = ref span47[num]; + ref QuestSequence reference38 = ref span9[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj37.Steps = list50; reference38 = obj37; - num++; - ref QuestSequence reference39 = ref span47[num]; + ref QuestSequence reference39 = ref span9[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -223154,9 +185091,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020848u, new Vector3(113.725464f, 118.15579f, -715.6634f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; @@ -223169,26 +185104,21 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list52)[0] = "JerryWester"; questRoot7.Author = list52; - index = 3; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference40 = ref span53[num]; + num = 3; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span10 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference40 = ref span10[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -223201,8 +185131,7 @@ public static class AssemblyQuestLoader }; obj39.Steps = list54; reference40 = obj39; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span10[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -223210,25 +185139,20 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1024136u, new Vector3(-29.34314f, -0.1424195f, -124.52893f), 635); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1024136u, new Vector3(-29.34314f, -0.1424195f, -124.52893f), 635); obj40.Steps = list55; reference41 = obj40; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span10[2]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -223245,16 +185169,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list57)[0] = "JerryWester"; questRoot8.Author = list57; - index = 4; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference43 = ref span58[num]; + num = 4; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span12 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference43 = ref span12[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -223262,9 +185183,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024137u, new Vector3(47.77588f, 0f, 58.64038f), 635) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024137u, new Vector3(47.77588f, 0f, 58.64038f), 635) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -223278,18 +185197,16 @@ public static class AssemblyQuestLoader }; obj42.Steps = list59; reference43 = obj42; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span12[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference45 = ref span60[num2]; + num2 = 4; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + Span span13 = CollectionsMarshal.AsSpan(list60); + ref QuestStep reference45 = ref span13[0]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1024130u, new Vector3(614.61804f, 80.000015f, 624.567f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -223297,75 +185214,53 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); obj44.CompletionQuestVariablesFlags = list61; reference45 = obj44; - num2++; - ref QuestStep reference46 = ref span60[num2]; + ref QuestStep reference46 = ref span13[1]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1024131u, new Vector3(585.3512f, 70f, 564.0801f), 621) { Fly = true }; - 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); + 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); obj45.CompletionQuestVariablesFlags = list62; reference46 = obj45; - num2++; - span60[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(682.593f, 69.99999f, 538.1847f), 621) + span13[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(682.593f, 69.99999f, 538.1847f), 621) { Fly = true }; - num2++; - ref QuestStep reference47 = ref span60[num2]; + ref QuestStep reference47 = ref span13[3]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list63; reference47 = questStep2; obj43.Steps = list60; reference44 = obj43; - num++; - ref QuestSequence reference48 = ref span58[num]; + ref QuestSequence reference48 = ref span12[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -223373,23 +185268,18 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1024133u, new Vector3(745.20483f, 69.99999f, 489.76868f), 621); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1024133u, new Vector3(745.20483f, 69.99999f, 489.76868f), 621); obj46.Steps = list64; reference48 = obj46; - num++; - ref QuestSequence reference49 = ref span58[num]; + ref QuestSequence reference49 = ref span12[3]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -223403,16 +185293,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list66)[0] = "JerryWester"; questRoot9.Author = list66; - index = 7; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference50 = ref span67[num]; + num = 7; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span17 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference50 = ref span17[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -223420,9 +185307,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024104u, new Vector3(530.81555f, 70f, 576.0128f), 621) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -223436,31 +185321,27 @@ public static class AssemblyQuestLoader }; obj48.Steps = list68; reference50 = obj48; - num++; - ref QuestSequence reference51 = ref span67[num]; + ref QuestSequence reference51 = ref span17[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)621, Fly = true }; - num2++; - span69[num2] = new QuestStep(EInteractionType.Interact, 1024134u, new Vector3(207.84314f, -0.3f, 338.55188f), 621) + span18[1] = new QuestStep(EInteractionType.Interact, 1024134u, new Vector3(207.84314f, -0.3f, 338.55188f), 621) { Fly = true }; obj49.Steps = list69; reference51 = obj49; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span17[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -223468,32 +185349,26 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(196.67705f, -0.6f, 318.12054f), 621) + Span span19 = CollectionsMarshal.AsSpan(list70); + span19[0] = new QuestStep(EInteractionType.Dive, null, new Vector3(196.67705f, -0.6f, 318.12054f), 621) { StopDistance = 0.25f }; - index2++; - span70[index2] = new QuestStep(EInteractionType.Interact, 2009052u, new Vector3(144.97595f, -270.98505f, -12.283508f), 621); + span19[1] = new QuestStep(EInteractionType.Interact, 2009052u, new Vector3(144.97595f, -270.98505f, -12.283508f), 621); obj50.Steps = list70; reference52 = obj50; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span17[3]; QuestSequence obj51 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj51.Steps = list71; reference53 = obj51; - num++; - ref QuestSequence reference54 = ref span67[num]; + ref QuestSequence reference54 = ref span17[4]; QuestSequence obj52 = new QuestSequence { Sequence = 4 @@ -223501,9 +185376,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Duty, null, null, 621) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Duty, null, null, 621) { DutyOptions = new DutyOptions { @@ -223513,23 +185386,19 @@ public static class AssemblyQuestLoader }; obj52.Steps = list72; reference54 = obj52; - num++; - span67[num] = new QuestSequence + span17[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference55 = ref span67[num]; + ref QuestSequence reference55 = ref span17[6]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f }; @@ -223542,16 +185411,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list74)[0] = "JerryWester"; questRoot10.Author = list74; - index = 4; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference56 = ref span75[num]; + num = 4; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span20 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference56 = ref span20[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -223559,9 +185425,7 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024103u, new Vector3(532.494f, 70f, 576.1653f), 621) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -223575,25 +185439,21 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference56 = obj54; - num++; - ref QuestSequence reference57 = ref span75[num]; + ref QuestSequence reference57 = ref span20[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj55.Steps = list77; reference57 = obj55; - num++; - ref QuestSequence reference58 = ref span75[num]; + ref QuestSequence reference58 = ref span20[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -223601,36 +185461,29 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1024107u, new Vector3(788.3878f, 69.999916f, 637.3845f), 621) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1024107u, new Vector3(788.3878f, 69.999916f, 637.3845f), 621) { StopDistance = 5f }; obj56.Steps = list78; reference58 = obj56; - num++; - ref QuestSequence reference59 = ref span75[num]; + ref QuestSequence reference59 = ref span20[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list79 = new List(index2); - CollectionsMarshal.SetCount(list79, index2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref QuestStep reference60 = ref span79[num2]; + num2 = 1; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621) { StopDistance = 7f }; - index3 = 1; - List list80 = new List(index3); - CollectionsMarshal.SetCount(list80, index3); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - span80[num3] = new DialogueChoice + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB104_02965_Q1_000_000") @@ -223646,16 +185499,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list81)[0] = "JerryWester"; questRoot11.Author = list81; - index = 6; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference61 = ref span82[num]; + num = 6; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span21 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference61 = ref span21[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -223663,9 +185513,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024125u, new Vector3(775.6007f, 69.99993f, 639.4292f), 621) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024125u, new Vector3(775.6007f, 69.99993f, 639.4292f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -223678,18 +185526,15 @@ public static class AssemblyQuestLoader }; obj59.Steps = list83; reference61 = obj59; - num++; - ref QuestSequence reference62 = ref span82[num]; + ref QuestSequence reference62 = ref span21[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num2 = 0; - ref QuestStep reference63 = ref span84[num2]; + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1024113u, new Vector3(754.26855f, 70f, 424.70435f), 621) { Fly = true @@ -223697,9 +185542,7 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span85 = CollectionsMarshal.AsSpan(list85); - index3 = 0; - span85[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB105_02966_Q1_000_000") @@ -223708,8 +185551,7 @@ public static class AssemblyQuestLoader reference63 = obj61; obj60.Steps = list84; reference62 = obj60; - num++; - ref QuestSequence reference64 = ref span82[num]; + ref QuestSequence reference64 = ref span21[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -223717,23 +185559,19 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); obj62.Steps = list86; reference64 = obj62; - num++; - ref QuestSequence reference65 = ref span82[num]; + ref QuestSequence reference65 = ref span21[3]; QuestSequence obj63 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -223742,8 +185580,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9769177f, -1.3092512f, -36.29651f), 738) + span22[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-2.9769177f, -1.3092512f, -36.29651f), 738) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -223752,23 +185589,19 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Interact, 2009058u, new Vector3(-2.8188858f, 0.16235979f, -38.626305f), 738) + span22[2] = new QuestStep(EInteractionType.Interact, 2009058u, new Vector3(-2.8188858f, 0.16235979f, -38.626305f), 738) { StopDistance = 4f, DelaySecondsAtStart = 3f }; - num2++; - span87[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.01923807f, -2.0000002f, -35.31207f), 738) + span22[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.01923807f, -2.0000002f, -35.31207f), 738) { DisableNavmesh = true }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Interact, 1024118u, new Vector3(24.612793f, -0.3670061f, 5.0201416f), 738); + span22[4] = new QuestStep(EInteractionType.Interact, 1024118u, new Vector3(24.612793f, -0.3670061f, 5.0201416f), 738); obj63.Steps = list87; reference65 = obj63; - num++; - ref QuestSequence reference66 = ref span82[num]; + ref QuestSequence reference66 = ref span21[4]; QuestSequence obj64 = new QuestSequence { Sequence = 4 @@ -223776,23 +185609,18 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1024114u, new Vector3(5.2338257f, 0.054396715f, -3.3417358f), 738); obj64.Steps = list88; reference66 = obj64; - num++; - ref QuestSequence reference67 = ref span82[num]; + ref QuestSequence reference67 = ref span21[5]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj65.Steps = list89; reference67 = obj65; questRoot11.QuestSequence = list82; @@ -223802,16 +185630,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list90)[0] = "JerryWester"; questRoot12.Author = list90; - index = 7; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference68 = ref span91[num]; + num = 7; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span23 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference68 = ref span23[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -223819,9 +185644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024120u, new Vector3(757.68665f, 70f, 444.3275f), 621) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024120u, new Vector3(757.68665f, 70f, 444.3275f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -223834,28 +185657,24 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference68 = obj66; - num++; - ref QuestSequence reference69 = ref span91[num]; + ref QuestSequence reference69 = ref span23[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; - num2++; - span93[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) + span24[1] = new QuestStep(EInteractionType.AcceptQuest, 1011565u, new Vector3(-78.8739f, 4f, -110.429565f), 130) { PickUpQuestId = new QuestId(434) }; - num2++; - span93[num2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) + span24[2] = new QuestStep(EInteractionType.Interact, 1001821u, new Vector3(-24.124573f, 38.000004f, 85.31323f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -223873,8 +185692,7 @@ public static class AssemblyQuestLoader }; obj67.Steps = list93; reference69 = obj67; - num++; - ref QuestSequence reference70 = ref span91[num]; + ref QuestSequence reference70 = ref span23[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -223882,9 +185700,7 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1024122u, new Vector3(57.968994f, 4f, -121.53815f), 130) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1024122u, new Vector3(57.968994f, 4f, -121.53815f), 130) { AethernetShortcut = new AethernetShortcut { @@ -223894,18 +185710,15 @@ public static class AssemblyQuestLoader }; obj68.Steps = list94; reference70 = obj68; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span23[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list95 = new List(index2); - CollectionsMarshal.SetCount(list95, index2); - Span span95 = CollectionsMarshal.AsSpan(list95); - num2 = 0; - ref QuestStep reference72 = ref span95[num2]; + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestStep obj70 = new QuestStep(EInteractionType.Interact, 1024123u, new Vector3(-132.9519f, 4.590753f, 238.7273f), 141) { Fly = true, @@ -223915,12 +185728,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGateOfNald } }; - index3 = 1; - List list96 = new List(index3); - CollectionsMarshal.SetCount(list96, index3); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = new DialogueChoice + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDB106_02967_Q1_000_000"), @@ -223930,8 +185741,7 @@ public static class AssemblyQuestLoader reference72 = obj70; obj69.Steps = list95; reference71 = obj69; - num++; - ref QuestSequence reference73 = ref span91[num]; + ref QuestSequence reference73 = ref span23[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -223939,27 +185749,22 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 1024124u, new Vector3(254.35254f, -6.26633f, -152.36133f), 141) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1024124u, new Vector3(254.35254f, -6.26633f, -152.36133f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj71.Steps = list97; reference73 = obj71; - num++; - ref QuestSequence reference74 = ref span91[num]; + ref QuestSequence reference74 = ref span23[5]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -223970,8 +185775,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span91[num]; + ref QuestSequence reference75 = ref span23[6]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -223979,9 +185783,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024102u, new Vector3(-105.7298f, 6.9839897f, -4.135254f), 131); obj73.Steps = list99; reference75 = obj73; questRoot12.QuestSequence = list91; @@ -223991,30 +185793,24 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; questRoot13.Author = list100; - index = 5; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference76 = ref span101[num]; + num = 5; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span25 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference76 = ref span25[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj74.Steps = list102; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span101[num]; + ref QuestSequence reference77 = ref span25[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -224022,9 +185818,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 1024040u, new Vector3(-201.06812f, 18f, 78.62964f), 130) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1024040u, new Vector3(-201.06812f, 18f, 78.62964f), 130) { AethernetShortcut = new AethernetShortcut { @@ -224034,18 +185828,15 @@ public static class AssemblyQuestLoader }; obj75.Steps = list103; reference77 = obj75; - num++; - ref QuestSequence reference78 = ref span101[num]; + ref QuestSequence reference78 = ref span25[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -224055,8 +185846,7 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference78 = obj76; - num++; - ref QuestSequence reference79 = ref span101[num]; + ref QuestSequence reference79 = ref span25[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -224064,28 +185854,24 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) + Span span26 = CollectionsMarshal.AsSpan(list105); + span26[0] = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { TargetTerritoryId = (ushort)144 }; - index2++; - span105[index2] = new QuestStep(EInteractionType.Interact, 1024042u, new Vector3(-51.682373f, 0.04428002f, 53.94055f), 144); + span26[1] = new QuestStep(EInteractionType.Interact, 1024042u, new Vector3(-51.682373f, 0.04428002f, 53.94055f), 144); obj77.Steps = list105; reference79 = obj77; - num++; - ref QuestSequence reference80 = ref span101[num]; + ref QuestSequence reference80 = ref span25[4]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -224093,8 +185879,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerWonderSquareWest } }; - num2++; - span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144); + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144); obj78.Steps = list106; reference80 = obj78; questRoot13.QuestSequence = list101; @@ -224104,16 +185889,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list107)[0] = "JerryWester"; questRoot14.Author = list107; - index = 5; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference81 = ref span108[num]; + num = 5; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span28 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference81 = ref span28[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -224121,9 +185903,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024043u, new Vector3(-12.77179f, 20.999727f, 47.837036f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -224136,18 +185916,16 @@ public static class AssemblyQuestLoader }; obj79.Steps = list109; reference81 = obj79; - num++; - ref QuestSequence reference82 = ref span108[num]; + ref QuestSequence reference82 = ref span28[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -224157,12 +185935,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - num2++; - span110[num2] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + span29[1] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj80.Steps = list110; reference82 = obj80; - num++; - ref QuestSequence reference83 = ref span108[num]; + ref QuestSequence reference83 = ref span28[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -224170,33 +185946,27 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.Interact, 1024044u, new Vector3(-110.36853f, 4f, -114.00018f), 130) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1024044u, new Vector3(-110.36853f, 4f, -114.00018f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj81.Steps = list111; reference83 = obj81; - num++; - ref QuestSequence reference84 = ref span108[num]; + ref QuestSequence reference84 = ref span28[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj82.Steps = list112; reference84 = obj82; - num++; - ref QuestSequence reference85 = ref span108[num]; + ref QuestSequence reference85 = ref span28[4]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -224204,9 +185974,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024045u, new Vector3(-2.822998f, -2.0000012f, -17.166443f), 212) { StopDistance = 5f }; @@ -224219,33 +185987,27 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list114)[0] = "JerryWester"; questRoot15.Author = list114; - index = 8; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference86 = ref span115[num]; + num = 8; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span30 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference86 = ref span30[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj84.Steps = list116; reference86 = obj84; - num++; - ref QuestSequence reference87 = ref span115[num]; + ref QuestSequence reference87 = ref span30[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -224253,34 +186015,28 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1024046u, new Vector3(592.70605f, 80.00001f, 618.6465f), 621) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1024046u, new Vector3(592.70605f, 80.00001f, 618.6465f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj85.Steps = list117; reference87 = obj85; - num++; - ref QuestSequence reference88 = ref span115[num]; + ref QuestSequence reference88 = ref span30[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj86.Steps = list118; reference88 = obj86; - num++; - ref QuestSequence reference89 = ref span115[num]; + ref QuestSequence reference89 = ref span30[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -224288,34 +186044,28 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Snipe, 1024052u, new Vector3(-238.54431f, 0.9244179f, 196.55139f), 621) + CollectionsMarshal.AsSpan(list119)[0] = 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; - num++; - ref QuestSequence reference90 = ref span115[num]; + ref QuestSequence reference90 = ref span30[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj88.Steps = list120; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span115[num]; + ref QuestSequence reference91 = ref span30[5]; QuestSequence obj89 = new QuestSequence { Sequence = 5 @@ -224323,34 +186073,28 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Snipe, 1024053u, new Vector3(8.590759f, 5.3881354f, 282.7954f), 621) + CollectionsMarshal.AsSpan(list121)[0] = 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; - num++; - ref QuestSequence reference92 = ref span115[num]; + ref QuestSequence reference92 = ref span30[6]; QuestSequence obj90 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 6f }; obj90.Steps = list122; reference92 = obj90; - num++; - ref QuestSequence reference93 = ref span115[num]; + ref QuestSequence reference93 = ref span30[7]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -224358,9 +186102,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023036u, new Vector3(-285.23688f, 11.183244f, 188.83032f), 621) { Fly = true }; @@ -224373,33 +186115,27 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list124)[0] = "JerryWester"; questRoot16.Author = list124; - index = 4; - List list125 = new List(index); - CollectionsMarshal.SetCount(list125, index); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference94 = ref span125[num]; + num = 4; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + Span span31 = CollectionsMarshal.AsSpan(list125); + ref QuestSequence reference94 = ref span31[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj92.Steps = list126; reference94 = obj92; - num++; - ref QuestSequence reference95 = ref span125[num]; + ref QuestSequence reference95 = ref span31[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -224407,39 +186143,33 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.8298f, 70f, 580.3701f), 621) + Span span32 = CollectionsMarshal.AsSpan(list127); + span32[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(528.8298f, 70f, 580.3701f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - index2++; - span127[index2] = new QuestStep(EInteractionType.Interact, 2009047u, new Vector3(526.8176f, 69.962524f, 577.3861f), 621) + span32[1] = new QuestStep(EInteractionType.Interact, 2009047u, new Vector3(526.8176f, 69.962524f, 577.3861f), 621) { StopDistance = 4f }; obj93.Steps = list127; reference95 = obj93; - num++; - ref QuestSequence reference96 = ref span125[num]; + ref QuestSequence reference96 = ref span31[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj94.Steps = list128; reference96 = obj94; - num++; - ref QuestSequence reference97 = ref span125[num]; + ref QuestSequence reference97 = ref span31[3]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -224447,9 +186177,8 @@ public static class AssemblyQuestLoader num2 = 2; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) + Span span33 = CollectionsMarshal.AsSpan(list129); + span33[0] = new QuestStep(EInteractionType.Interact, 1023048u, new Vector3(497.76453f, 69.99941f, 583.7339f), 621) { TargetTerritoryId = (ushort)621, SkipConditions = new SkipConditions @@ -224460,8 +186189,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024057u, new Vector3(340.23022f, 74.00002f, 70.66455f), 621) + span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1024057u, new Vector3(340.23022f, 74.00002f, 70.66455f), 621) { Fly = true }; @@ -224474,26 +186202,21 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list130)[0] = "JerryWester"; questRoot17.Author = list130; - index = 9; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference98 = ref span131[num]; + num = 9; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span34 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference98 = ref span34[0]; QuestSequence obj96 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list132)[0]; QuestStep obj97 = new QuestStep(EInteractionType.AcceptQuest, 1024063u, new Vector3(339.62f, 74.00002f, 75.48633f), 621) { StopDistance = 5f @@ -224501,9 +186224,7 @@ public static class AssemblyQuestLoader num3 = 1; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - Span span133 = CollectionsMarshal.AsSpan(list133); - index3 = 0; - span133[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list133)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDB111_02972_Q1_000_000"), @@ -224513,8 +186234,7 @@ public static class AssemblyQuestLoader reference99 = obj97; obj96.Steps = list132; reference98 = obj96; - num++; - ref QuestSequence reference100 = ref span131[num]; + ref QuestSequence reference100 = ref span34[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -224522,36 +186242,29 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 2009048u, new Vector3(593.56055f, 79.972534f, 621.9425f), 621) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2009048u, new Vector3(593.56055f, 79.972534f, 621.9425f), 621) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj98.Steps = list134; reference100 = obj98; - num++; - ref QuestSequence reference101 = ref span131[num]; + ref QuestSequence reference101 = ref span34[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref QuestStep reference102 = ref span135[num2]; + num2 = 1; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true }; - index3 = 1; - List list136 = new List(index3); - CollectionsMarshal.SetCount(list136, index3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num3 = 0; - span136[num3] = new DialogueChoice + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDB111_02972_Q2_000_000") @@ -224560,8 +186273,7 @@ public static class AssemblyQuestLoader reference102 = obj100; obj99.Steps = list135; reference101 = obj99; - num++; - ref QuestSequence reference103 = ref span131[num]; + ref QuestSequence reference103 = ref span34[3]; QuestSequence obj101 = new QuestSequence { Sequence = 3 @@ -224569,9 +186281,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024066u, new Vector3(245.07507f, 122f, -349.0807f), 737) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024066u, new Vector3(245.07507f, 122f, -349.0807f), 737) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -224581,27 +186291,22 @@ public static class AssemblyQuestLoader }; obj101.Steps = list137; reference103 = obj101; - num++; - span131[num] = new QuestSequence + span34[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference104 = ref span131[num]; + ref QuestSequence reference104 = ref span34[5]; QuestSequence obj102 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj102.Steps = list138; reference104 = obj102; - num++; - ref QuestSequence reference105 = ref span131[num]; + ref QuestSequence reference105 = ref span34[6]; QuestSequence obj103 = new QuestSequence { Sequence = 6 @@ -224609,33 +186314,27 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1024068u, new Vector3(741.1764f, 70f, 525.5055f), 621) { StopDistance = 6f }; obj103.Steps = list139; reference105 = obj103; - num++; - ref QuestSequence reference106 = ref span131[num]; + ref QuestSequence reference106 = ref span34[7]; QuestSequence obj104 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 6f }; obj104.Steps = list140; reference106 = obj104; - num++; - ref QuestSequence reference107 = ref span131[num]; + ref QuestSequence reference107 = ref span34[8]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -224643,9 +186342,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -224663,30 +186360,24 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list142)[0] = "plogon_enjoyer"; questRoot18.Author = list142; - index = 7; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference108 = ref span143[num]; + num = 7; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span35 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference108 = ref span35[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj106.Steps = list144; reference108 = obj106; - num++; - ref QuestSequence reference109 = ref span143[num]; + ref QuestSequence reference109 = ref span35[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -224694,9 +186385,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - ref QuestStep reference110 = ref span145[index2]; + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list145)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1024231u, new Vector3(463.40125f, 56.86197f, -157.94617f), 614) { Fly = true, @@ -224705,9 +186394,7 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span146 = CollectionsMarshal.AsSpan(list146); - index3 = 0; - span146[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list146)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN002_02974_Q1_000_000"), @@ -224717,26 +186404,22 @@ public static class AssemblyQuestLoader reference110 = obj108; obj107.Steps = list145; reference109 = obj107; - num++; - ref QuestSequence reference111 = ref span143[num]; + ref QuestSequence reference111 = ref span35[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Comment = "Snipe Namazu" }; obj109.Steps = list147; reference111 = obj109; - num++; - ref QuestSequence reference112 = ref span143[num]; + ref QuestSequence reference112 = ref span35[3]; QuestSequence obj110 = new QuestSequence { Sequence = 3 @@ -224744,34 +186427,28 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Snipe, 2009170u, new Vector3(205.31006f, 14.297607f, 712.76404f), 614) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Snipe, 2009170u, new Vector3(205.31006f, 14.297607f, 712.76404f), 614) { Fly = true, Comment = "Snipe Namazu" }; obj110.Steps = list148; reference112 = obj110; - num++; - ref QuestSequence reference113 = ref span143[num]; + ref QuestSequence reference113 = ref span35[4]; QuestSequence obj111 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj111.Steps = list149; reference113 = obj111; - num++; - ref QuestSequence reference114 = ref span143[num]; + ref QuestSequence reference114 = ref span35[5]; QuestSequence obj112 = new QuestSequence { Sequence = 5 @@ -224779,37 +186456,30 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 1024244u, new Vector3(181.10925f, 6.1105657f, 553.2462f), 614) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1024244u, new Vector3(181.10925f, 6.1105657f, 553.2462f), 614) { Fly = true }; obj112.Steps = list150; reference114 = obj112; - num++; - ref QuestSequence reference115 = ref span143[num]; + ref QuestSequence reference115 = ref span35[6]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list151 = new List(index2); - CollectionsMarshal.SetCount(list151, index2); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref QuestStep reference116 = ref span151[num2]; + num2 = 1; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list151)[0]; QuestStep obj114 = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = new DialogueChoice + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN002_02974_Q3_000_000"), @@ -224826,16 +186496,13 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - Span span153 = CollectionsMarshal.AsSpan(list153); - index = 0; - span153[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list153)[0] = "plogon_enjoyer"; questRoot19.Author = list153; - index = 8; - List list154 = new List(index); - CollectionsMarshal.SetCount(list154, index); - Span span154 = CollectionsMarshal.AsSpan(list154); - num = 0; - ref QuestSequence reference117 = ref span154[num]; + num = 8; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span36 = CollectionsMarshal.AsSpan(list154); + ref QuestSequence reference117 = ref span36[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -224843,31 +186510,25 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj115.Steps = list155; reference117 = obj115; - num++; - ref QuestSequence reference118 = ref span154[num]; + ref QuestSequence reference118 = ref span36[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj116.Steps = list156; reference118 = obj116; - num++; - ref QuestSequence reference119 = ref span154[num]; + ref QuestSequence reference119 = ref span36[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 @@ -224875,36 +186536,30 @@ public static class AssemblyQuestLoader num2 = 3; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.Interact, 1024250u, new Vector3(561.21155f, -19.505632f, 365.28564f), 622) + Span span37 = CollectionsMarshal.AsSpan(list157); + span37[0] = new QuestStep(EInteractionType.Interact, 1024250u, new Vector3(561.21155f, -19.505632f, 365.28564f), 622) { Fly = true }; - index2++; - span157[index2] = new QuestStep(EInteractionType.Interact, 1024251u, new Vector3(553.6124f, -19.505638f, 314.7478f), 622) + span37[1] = new QuestStep(EInteractionType.Interact, 1024251u, new Vector3(553.6124f, -19.505638f, 314.7478f), 622) { Fly = true }; - index2++; - span157[index2] = new QuestStep(EInteractionType.Interact, 1024252u, new Vector3(571.2213f, -19.505638f, 296.46753f), 622) + span37[2] = new QuestStep(EInteractionType.Interact, 1024252u, new Vector3(571.2213f, -19.505638f, 296.46753f), 622) { Fly = true }; obj117.Steps = list157; reference119 = obj117; - num++; - ref QuestSequence reference120 = ref span154[num]; + ref QuestSequence reference120 = ref span36[3]; QuestSequence obj118 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list158 = new List(index2); - CollectionsMarshal.SetCount(list158, index2); - Span span158 = CollectionsMarshal.AsSpan(list158); - num2 = 0; - ref QuestStep reference121 = ref span158[num2]; + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep obj119 = new QuestStep(EInteractionType.Interact, 1024248u, new Vector3(539.48267f, -19.505934f, 416.09827f), 622) { Fly = true @@ -224912,9 +186567,7 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span159 = CollectionsMarshal.AsSpan(list159); - index3 = 0; - span159[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q1_000_000"), @@ -224924,8 +186577,7 @@ public static class AssemblyQuestLoader reference121 = obj119; obj118.Steps = list158; reference120 = obj118; - num++; - ref QuestSequence reference122 = ref span154[num]; + ref QuestSequence reference122 = ref span36[4]; QuestSequence obj120 = new QuestSequence { Sequence = 4 @@ -224933,19 +186585,15 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - ref QuestStep reference123 = ref span160[index2]; + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list160)[0]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1024253u, new Vector3(355.30627f, -13.019889f, 471.1222f), 622) { Fly = true }; - index3 = 1; - List list161 = new List(index3); - CollectionsMarshal.SetCount(list161, index3); - Span span161 = CollectionsMarshal.AsSpan(list161); - num3 = 0; - span161[num3] = new DialogueChoice + num3 = 1; + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + CollectionsMarshal.AsSpan(list161)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q2_000_000"), @@ -224955,18 +186603,15 @@ public static class AssemblyQuestLoader reference123 = obj121; obj120.Steps = list160; reference122 = obj120; - num++; - ref QuestSequence reference124 = ref span154[num]; + ref QuestSequence reference124 = ref span36[5]; QuestSequence obj122 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num2 = 0; - ref QuestStep reference125 = ref span162[num2]; + num2 = 1; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list162)[0]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, null, new Vector3(474.09186f, -25.232485f, 550.5908f), 622) { Fly = true, @@ -224975,19 +186620,15 @@ public static class AssemblyQuestLoader num3 = 3; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span163 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span163[index3] = 8251u; - index3++; - span163[index3] = 8252u; - index3++; - span163[index3] = 8253u; + Span span38 = CollectionsMarshal.AsSpan(list163); + span38[0] = 8251u; + span38[1] = 8252u; + span38[2] = 8253u; obj123.KillEnemyDataIds = list163; reference125 = obj123; obj122.Steps = list162; reference124 = obj122; - num++; - ref QuestSequence reference126 = ref span154[num]; + ref QuestSequence reference126 = ref span36[6]; QuestSequence obj124 = new QuestSequence { Sequence = 6 @@ -224995,37 +186636,30 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.Interact, 1024256u, new Vector3(355.79456f, -12.957703f, 470.29822f), 622) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1024256u, new Vector3(355.79456f, -12.957703f, 470.29822f), 622) { Fly = true }; obj124.Steps = list164; reference126 = obj124; - num++; - ref QuestSequence reference127 = ref span154[num]; + ref QuestSequence reference127 = ref span36[7]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list165 = new List(index2); - CollectionsMarshal.SetCount(list165, index2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num2 = 0; - ref QuestStep reference128 = ref span165[num2]; + num2 = 1; + List list165 = new List(num2); + CollectionsMarshal.SetCount(list165, num2); + ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list165)[0]; QuestStep obj126 = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index3 = 1; - List list166 = new List(index3); - CollectionsMarshal.SetCount(list166, index3); - Span span166 = CollectionsMarshal.AsSpan(list166); - num3 = 0; - span166[num3] = new DialogueChoice + num3 = 1; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN003_02975_Q3_000_000"), @@ -225042,16 +186676,13 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list167)[0] = "plogon_enjoyer"; questRoot20.Author = list167; - index = 6; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference129 = ref span168[num]; + num = 6; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span39 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference129 = ref span39[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -225059,23 +186690,18 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj127.Steps = list169; reference129 = obj127; - num++; - ref QuestSequence reference130 = ref span168[num]; + ref QuestSequence reference130 = ref span39[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -225086,8 +186712,7 @@ public static class AssemblyQuestLoader }; obj128.Steps = list170; reference130 = obj128; - num++; - ref QuestSequence reference131 = ref span168[num]; + ref QuestSequence reference131 = ref span39[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -225095,9 +186720,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference132 = ref span171[index2]; + ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list171)[0]; QuestStep obj130 = new QuestStep(EInteractionType.Combat, null, new Vector3(246.58658f, 6.193447f, 651.3461f), 613) { Fly = true, @@ -225111,31 +186734,25 @@ public static class AssemblyQuestLoader num3 = 2; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span172 = CollectionsMarshal.AsSpan(list172); - index3 = 0; - span172[index3] = 8244u; - index3++; - span172[index3] = 8246u; + Span span40 = CollectionsMarshal.AsSpan(list172); + span40[0] = 8244u; + span40[1] = 8246u; obj130.KillEnemyDataIds = list172; reference132 = obj130; obj129.Steps = list171; reference131 = obj129; - num++; - ref QuestSequence reference133 = ref span168[num]; + ref QuestSequence reference133 = ref span39[3]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj131.Steps = list173; reference133 = obj131; - num++; - ref QuestSequence reference134 = ref span168[num]; + ref QuestSequence reference134 = ref span39[4]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -225143,9 +186760,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1024267u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1024267u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -225156,18 +186771,15 @@ public static class AssemblyQuestLoader }; obj132.Steps = list174; reference134 = obj132; - num++; - ref QuestSequence reference135 = ref span168[num]; + ref QuestSequence reference135 = ref span39[5]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu @@ -225181,16 +186793,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "Theo"; + CollectionsMarshal.AsSpan(list176)[0] = "Theo"; questRoot21.Author = list176; - index = 5; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference136 = ref span177[num]; + num = 5; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span41 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference136 = ref span41[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -225198,27 +186807,21 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj134.Steps = list178; reference136 = obj134; - num++; - ref QuestSequence reference137 = ref span177[num]; + ref QuestSequence reference137 = ref span41[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj135.Steps = list179; reference137 = obj135; - num++; - ref QuestSequence reference138 = ref span177[num]; + ref QuestSequence reference138 = ref span41[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -225226,23 +186829,19 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.Interact, 2009174u, new Vector3(321.9806f, -120.042725f, -250.4159f), 613); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 2009174u, new Vector3(321.9806f, -120.042725f, -250.4159f), 613); obj136.Steps = list180; reference138 = obj136; - num++; - ref QuestSequence reference139 = ref span177[num]; + ref QuestSequence reference139 = ref span41[3]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false, @@ -225254,15 +186853,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span181[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024270u, new Vector3(-666.89557f, -33.707214f, 268.17725f), 613) + span42[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024270u, new Vector3(-666.89557f, -33.707214f, 268.17725f), 613) { Fly = true }; obj137.Steps = list181; reference139 = obj137; - num++; - ref QuestSequence reference140 = ref span177[num]; + ref QuestSequence reference140 = ref span41[4]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -225270,9 +186867,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024215u, new Vector3(400.07617f, -119.589325f, -247.54712f), 613); obj138.Steps = list182; reference140 = obj138; questRoot21.QuestSequence = list177; @@ -225282,30 +186877,24 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "Theo"; + CollectionsMarshal.AsSpan(list183)[0] = "Theo"; questRoot22.Author = list183; - index = 5; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference141 = ref span184[num]; + num = 5; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span43 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference141 = ref span43[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj139.Steps = list185; reference141 = obj139; - num++; - ref QuestSequence reference142 = ref span184[num]; + ref QuestSequence reference142 = ref span43[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -225313,9 +186902,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - ref QuestStep reference143 = ref span186[index2]; + ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list186)[0]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1024423u, new Vector3(-272.57196f, 17.31996f, 490.01294f), 614) { Fly = true, @@ -225328,12 +186915,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list187 = new List(index3); - CollectionsMarshal.SetCount(list187, index3); - Span span187 = CollectionsMarshal.AsSpan(list187); - num3 = 0; - span187[num3] = new DialogueChoice + num3 = 1; + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + CollectionsMarshal.AsSpan(list187)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANKJN006_02978_Q1_000_000"), @@ -225343,18 +186928,15 @@ public static class AssemblyQuestLoader reference143 = obj141; obj140.Steps = list186; reference142 = obj140; - num++; - ref QuestSequence reference144 = ref span184[num]; + ref QuestSequence reference144 = ref span43[2]; QuestSequence obj142 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, SkipConditions = new SkipConditions @@ -225367,8 +186949,7 @@ public static class AssemblyQuestLoader }; obj142.Steps = list188; reference144 = obj142; - num++; - ref QuestSequence reference145 = ref span184[num]; + ref QuestSequence reference145 = ref span43[3]; QuestSequence obj143 = new QuestSequence { Sequence = 3 @@ -225376,9 +186957,7 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.Interact, 1024428u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) + CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1024428u, new Vector3(-130.57153f, -4.999999f, 183.36768f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -225396,18 +186975,15 @@ public static class AssemblyQuestLoader }; obj143.Steps = list189; reference145 = obj143; - num++; - ref QuestSequence reference146 = ref span184[num]; + ref QuestSequence reference146 = ref span43[4]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -225420,16 +186996,13 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list191)[0] = "plogon_enjoyer"; questRoot23.Author = list191; - index = 4; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference147 = ref span192[num]; + num = 4; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span44 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference147 = ref span44[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -225437,30 +187010,24 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj145.Steps = list193; reference147 = obj145; - num++; - ref QuestSequence reference148 = ref span192[num]; + ref QuestSequence reference148 = ref span44[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj146.Steps = list194; reference148 = obj146; - num++; - ref QuestSequence reference149 = ref span192[num]; + ref QuestSequence reference149 = ref span44[2]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -225468,9 +187035,8 @@ public static class AssemblyQuestLoader num2 = 6; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - ref QuestStep reference150 = ref span195[index2]; + Span span45 = CollectionsMarshal.AsSpan(list195); + ref QuestStep reference150 = ref span45[0]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2009241u, new Vector3(532.6465f, 0.99176025f, -201.2818f), 613) { Fly = true, @@ -225479,39 +187045,28 @@ public static class AssemblyQuestLoader num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - Span span196 = CollectionsMarshal.AsSpan(list196); - index3 = 0; - span196[index3] = 8234u; + CollectionsMarshal.AsSpan(list196)[0] = 8234u; obj148.KillEnemyDataIds = list196; - 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]; + 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]; int num4 = 2; List list198 = new List(num4); CollectionsMarshal.SetCount(list198, num4); - 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); + 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); reference151 = list198; - num3++; - span197[num3] = null; - num3++; - span197[num3] = null; - num3++; - span197[num3] = null; + span46[3] = null; + span46[4] = null; + span46[5] = null; obj148.RequiredQuestVariables = list197; reference150 = obj148; - index2++; - ref QuestStep reference152 = ref span195[index2]; + ref QuestStep reference152 = ref span45[1]; QuestStep obj149 = new QuestStep(EInteractionType.UseItem, 8234u, new Vector3(534.78296f, 1f, -193.164f), 613) { ItemId = 2002398u @@ -225519,106 +187074,77 @@ public static class AssemblyQuestLoader num3 = 6; List> list199 = new List>(num3); CollectionsMarshal.SetCount(list199, num3); - 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); + 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); reference153 = list200; - index3++; - span199[index3] = null; - index3++; - span199[index3] = null; - index3++; - span199[index3] = null; + span48[3] = null; + span48[4] = null; + span48[5] = null; obj149.RequiredQuestVariables = list199; reference152 = obj149; - index2++; - ref QuestStep reference154 = ref span195[index2]; + ref QuestStep reference154 = ref span45[2]; QuestStep obj150 = new QuestStep(EInteractionType.Combat, 2009240u, new Vector3(620.2334f, 0.10675049f, -315.9076f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list201 = new List(index3); - CollectionsMarshal.SetCount(list201, index3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = 8233u; + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + CollectionsMarshal.AsSpan(list201)[0] = 8233u; obj150.KillEnemyDataIds = list201; num3 = 6; List> list202 = new List>(num3); CollectionsMarshal.SetCount(list202, num3); - Span> span202 = CollectionsMarshal.AsSpan(list202); - index3 = 0; - span202[index3] = null; - index3++; - span202[index3] = null; - index3++; - ref List reference155 = ref span202[index3]; + Span> span50 = CollectionsMarshal.AsSpan(list202); + span50[0] = null; + span50[1] = null; + ref List reference155 = ref span50[2]; num4 = 2; List list203 = new List(num4); CollectionsMarshal.SetCount(list203, num4); - 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); + 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); reference155 = list203; - index3++; - span202[index3] = null; - index3++; - span202[index3] = null; - index3++; - span202[index3] = null; + span50[3] = null; + span50[4] = null; + span50[5] = null; obj150.RequiredQuestVariables = list202; reference154 = obj150; - index2++; - ref QuestStep reference156 = ref span195[index2]; + ref QuestStep reference156 = ref span45[3]; QuestStep obj151 = new QuestStep(EInteractionType.UseItem, 8233u, new Vector3(616.9984f, 0.04129504f, -318.1964f), 613) { ItemId = 2002398u }; - 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); + 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); reference157 = list205; - num3++; - span204[num3] = null; - num3++; - span204[num3] = null; - num3++; - span204[num3] = null; + span52[3] = null; + span52[4] = null; + span52[5] = null; obj151.RequiredQuestVariables = list204; reference156 = obj151; - index2++; - ref QuestStep reference158 = ref span195[index2]; + ref QuestStep reference158 = ref span45[4]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 2009239u, new Vector3(762.9358f, 0.44250488f, -286.7323f), 613) { Fly = true, @@ -225627,39 +187153,28 @@ public static class AssemblyQuestLoader num3 = 1; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - Span span206 = CollectionsMarshal.AsSpan(list206); - index3 = 0; - span206[index3] = 8232u; + CollectionsMarshal.AsSpan(list206)[0] = 8232u; obj152.KillEnemyDataIds = list206; - 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]; + 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]; num4 = 2; List list208 = new List(num4); CollectionsMarshal.SetCount(list208, num4); - 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); + 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); reference159 = list208; - num3++; - span207[num3] = null; - num3++; - span207[num3] = null; - num3++; - span207[num3] = null; + span54[3] = null; + span54[4] = null; + span54[5] = null; obj152.RequiredQuestVariables = list207; reference158 = obj152; - index2++; - ref QuestStep reference160 = ref span195[index2]; + ref QuestStep reference160 = ref span45[5]; QuestStep obj153 = new QuestStep(EInteractionType.UseItem, 8232u, new Vector3(760.98267f, 0.36481446f, -290.0893f), 613) { ItemId = 2002398u @@ -225667,50 +187182,39 @@ public static class AssemblyQuestLoader num3 = 6; List> list209 = new List>(num3); CollectionsMarshal.SetCount(list209, num3); - 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); + 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); reference161 = list210; - index3++; - span209[index3] = null; - index3++; - span209[index3] = null; - index3++; - span209[index3] = null; + span56[3] = null; + span56[4] = null; + span56[5] = null; obj153.RequiredQuestVariables = list209; reference160 = obj153; obj147.Steps = list195; reference149 = obj147; - num++; - ref QuestSequence reference162 = ref span192[num]; + ref QuestSequence reference162 = ref span44[3]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj154.Steps = list211; reference162 = obj154; questRoot23.QuestSequence = list192; @@ -225720,16 +187224,13 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - Span span212 = CollectionsMarshal.AsSpan(list212); - index = 0; - span212[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list212)[0] = "plogon_enjoyer"; questRoot24.Author = list212; - index = 4; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref QuestSequence reference163 = ref span213[num]; + num = 4; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span59 = CollectionsMarshal.AsSpan(list213); + ref QuestSequence reference163 = ref span59[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -225737,70 +187238,52 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj155.Steps = list214; reference163 = obj155; - num++; - ref QuestSequence reference164 = ref span213[num]; + ref QuestSequence reference164 = ref span59[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - ref QuestStep reference165 = ref span215[num2]; + ref QuestStep reference165 = ref span60[1]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2009094u, new Vector3(211.078f, -135.14917f, 56.168457f), 613) { Fly = true }; - 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]; + 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]; num4 = 6; List list217 = new List(num4); CollectionsMarshal.SetCount(list217, num4); - 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); + 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); reference166 = list217; - num3++; - span216[num3] = null; - num3++; - span216[num3] = null; - num3++; - span216[num3] = null; - num3++; - span216[num3] = null; + span61[2] = null; + span61[3] = null; + span61[4] = null; + span61[5] = null; obj157.RequiredQuestVariables = list216; reference165 = obj157; - num2++; - ref QuestStep reference167 = ref span215[num2]; + ref QuestStep reference167 = ref span60[2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2009095u, new Vector3(163.0426f, -148.05829f, 72.28198f), 613) { Fly = true @@ -225808,67 +187291,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list218 = new List>(num3); CollectionsMarshal.SetCount(list218, num3); - 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); + 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); reference168 = list219; - index3++; - span218[index3] = null; - index3++; - span218[index3] = null; - index3++; - span218[index3] = null; - index3++; - span218[index3] = null; + span63[2] = null; + span63[3] = null; + span63[4] = null; + span63[5] = null; obj158.RequiredQuestVariables = list218; reference167 = obj158; - num2++; - ref QuestStep reference169 = ref span215[num2]; + ref QuestStep reference169 = ref span60[3]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 2009096u, new Vector3(134.23352f, -161.21161f, 70.450806f), 613) { Fly = true }; - 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]; + 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]; num4 = 2; List list221 = new List(num4); CollectionsMarshal.SetCount(list221, num4); - 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); + 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); reference170 = list221; - num3++; - span220[num3] = null; - num3++; - span220[num3] = null; - num3++; - span220[num3] = null; - num3++; - span220[num3] = null; + span65[2] = null; + span65[3] = null; + span65[4] = null; + span65[5] = null; obj159.RequiredQuestVariables = list220; reference169 = obj159; - num2++; - ref QuestStep reference171 = ref span215[num2]; + ref QuestStep reference171 = ref span60[4]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2009080u, new Vector3(196.27673f, -146.685f, 40.45166f), 613) { Fly = true @@ -225876,67 +187340,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list222 = new List>(num3); CollectionsMarshal.SetCount(list222, num3); - 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); + 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); reference172 = list223; - index3++; - span222[index3] = null; - index3++; - span222[index3] = null; - index3++; - span222[index3] = null; - index3++; - span222[index3] = null; + span67[2] = null; + span67[3] = null; + span67[4] = null; + span67[5] = null; obj160.RequiredQuestVariables = list222; reference171 = obj160; - num2++; - ref QuestStep reference173 = ref span215[num2]; + ref QuestStep reference173 = ref span60[5]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 2009081u, new Vector3(151.56775f, -168.1087f, 49.454468f), 613) { Fly = true }; - 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]; + 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]; num4 = 3; List list225 = new List(num4); CollectionsMarshal.SetCount(list225, num4); - 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); + 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); reference174 = list225; - num3++; - span224[num3] = null; - num3++; - span224[num3] = null; - num3++; - span224[num3] = null; - num3++; - span224[num3] = null; + span69[2] = null; + span69[3] = null; + span69[4] = null; + span69[5] = null; obj161.RequiredQuestVariables = list224; reference173 = obj161; - num2++; - ref QuestStep reference175 = ref span215[num2]; + ref QuestStep reference175 = ref span60[6]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 2009082u, new Vector3(141.86316f, -170.30597f, 96.75745f), 613) { Fly = true @@ -225944,75 +187389,52 @@ public static class AssemblyQuestLoader num3 = 6; List> list226 = new List>(num3); CollectionsMarshal.SetCount(list226, num3); - 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); + 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); reference176 = list227; - index3++; - span226[index3] = null; - index3++; - span226[index3] = null; - index3++; - span226[index3] = null; - index3++; - span226[index3] = null; + span71[2] = null; + span71[3] = null; + span71[4] = null; + span71[5] = null; obj162.RequiredQuestVariables = list226; reference175 = obj162; - num2++; - ref QuestStep reference177 = ref span215[num2]; + ref QuestStep reference177 = ref span60[7]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 2009083u, new Vector3(165.08728f, -143.54169f, 116.227905f), 613) { Fly = true }; - 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]; + 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]; num4 = 4; List list229 = new List(num4); CollectionsMarshal.SetCount(list229, num4); - 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); + 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); reference178 = list229; - num3++; - span228[num3] = null; - num3++; - span228[num3] = null; - num3++; - span228[num3] = null; - num3++; - span228[num3] = null; + span73[2] = null; + span73[3] = null; + span73[4] = null; + span73[5] = null; obj163.RequiredQuestVariables = list228; reference177 = obj163; - num2++; - ref QuestStep reference179 = ref span215[num2]; + ref QuestStep reference179 = ref span60[8]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 2009084u, new Vector3(173.81543f, -167.3457f, 114.61047f), 613) { Fly = true @@ -226020,34 +187442,25 @@ public static class AssemblyQuestLoader num3 = 6; List> list230 = new List>(num3); CollectionsMarshal.SetCount(list230, num3); - 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); + 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); reference180 = list231; - index3++; - span230[index3] = null; - index3++; - span230[index3] = null; - index3++; - span230[index3] = null; - index3++; - span230[index3] = null; + span75[2] = null; + span75[3] = null; + span75[4] = null; + span75[5] = null; obj164.RequiredQuestVariables = list230; reference179 = obj164; obj156.Steps = list215; reference164 = obj156; - num++; - ref QuestSequence reference181 = ref span213[num]; + ref QuestSequence reference181 = ref span59[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -226055,9 +187468,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1024460u, new Vector3(873.9298f, 1.1792068f, 851.9568f), 613) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1024460u, new Vector3(873.9298f, 1.1792068f, 851.9568f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -226069,24 +187480,21 @@ public static class AssemblyQuestLoader }; obj165.Steps = list232; reference181 = obj165; - num++; - ref QuestSequence reference182 = ref span213[num]; + ref QuestSequence reference182 = ref span59[3]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj166.Steps = list233; reference182 = obj166; questRoot24.QuestSequence = list213; @@ -226096,16 +187504,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list234)[0] = "plogon_enjoyer"; questRoot25.Author = list234; - index = 5; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference183 = ref span235[num]; + num = 5; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span78 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference183 = ref span78[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -226113,42 +187518,35 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj167.Steps = list236; reference183 = obj167; - num++; - ref QuestSequence reference184 = ref span235[num]; + ref QuestSequence reference184 = ref span78[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - span237[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-3.8817294f, -146.96666f, -155.70833f), 613) + span79[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-3.8817294f, -146.96666f, -155.70833f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - span237[num2] = new QuestStep(EInteractionType.Interact, 1024294u, new Vector3(-24.765442f, -190.38937f, -137.10236f), 613) + span79[2] = new QuestStep(EInteractionType.Interact, 1024294u, new Vector3(-24.765442f, -190.38937f, -137.10236f), 613) { Fly = true }; obj168.Steps = list237; reference184 = obj168; - num++; - ref QuestSequence reference185 = ref span235[num]; + ref QuestSequence reference185 = ref span78[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -226156,9 +187554,7 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(367.17773f, -119.94679f, -292.3781f), 613) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(367.17773f, -119.94679f, -292.3781f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, @@ -226166,25 +187562,21 @@ public static class AssemblyQuestLoader }; obj169.Steps = list238; reference185 = obj169; - num++; - ref QuestSequence reference186 = ref span235[num]; + ref QuestSequence reference186 = ref span78[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Pray }; obj170.Steps = list239; reference186 = obj170; - num++; - ref QuestSequence reference187 = ref span235[num]; + ref QuestSequence reference187 = ref span78[4]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -226192,14 +187584,12 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span80 = CollectionsMarshal.AsSpan(list240); + span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true }; - index2++; - span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj171.Steps = list240; reference187 = obj171; questRoot25.QuestSequence = list235; @@ -226209,30 +187599,24 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list241)[0] = "plogon_enjoyer"; questRoot26.Author = list241; - index = 4; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference188 = ref span242[num]; + num = 4; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span81 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference188 = ref span81[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj172.Steps = list243; reference188 = obj172; - num++; - ref QuestSequence reference189 = ref span242[num]; + ref QuestSequence reference189 = ref span81[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -226240,67 +187624,52 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true }; obj173.Steps = list244; reference189 = obj173; - num++; - ref QuestSequence reference190 = ref span242[num]; + ref QuestSequence reference190 = ref span81[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - ref QuestStep reference191 = ref span245[num2]; + ref QuestStep reference191 = ref span82[1]; QuestStep obj175 = new QuestStep(EInteractionType.Action, 2009233u, new Vector3(81.19324f, -197.77222f, -266.8651f), 613) { Action = EAction.Inhale }; - 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]; + 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]; num4 = 3; List list247 = new List(num4); CollectionsMarshal.SetCount(list247, num4); - 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); + 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); reference192 = list247; - num3++; - span246[num3] = null; - num3++; - span246[num3] = null; + span83[4] = null; + span83[5] = null; obj175.RequiredQuestVariables = list246; reference191 = obj175; - num2++; - ref QuestStep reference193 = ref span245[num2]; + ref QuestStep reference193 = ref span82[2]; QuestStep obj176 = new QuestStep(EInteractionType.Action, 2009234u, new Vector3(195.05603f, -183.30664f, -346.6087f), 613) { Action = EAction.Inhale @@ -226308,71 +187677,50 @@ public static class AssemblyQuestLoader num3 = 6; List> list248 = new List>(num3); CollectionsMarshal.SetCount(list248, num3); - 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); + 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); reference194 = list249; - index3++; - span248[index3] = null; - index3++; - span248[index3] = null; + span85[4] = null; + span85[5] = null; obj176.RequiredQuestVariables = list248; reference193 = obj176; - num2++; - ref QuestStep reference195 = ref span245[num2]; + ref QuestStep reference195 = ref span82[3]; QuestStep obj177 = new QuestStep(EInteractionType.Action, 2009235u, new Vector3(50.980347f, -139.42175f, -280.96442f), 613) { Action = EAction.Inhale }; - 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]; + 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]; num4 = 3; List list251 = new List(num4); CollectionsMarshal.SetCount(list251, num4); - 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); + 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); reference196 = list251; - num3++; - span250[num3] = null; - num3++; - span250[num3] = null; + span87[4] = null; + span87[5] = null; obj177.RequiredQuestVariables = list250; reference195 = obj177; - num2++; - ref QuestStep reference197 = ref span245[num2]; + ref QuestStep reference197 = ref span82[4]; QuestStep obj178 = new QuestStep(EInteractionType.Action, 2009236u, new Vector3(192.0653f, -172.80847f, -247.63867f), 613) { Action = EAction.Inhale @@ -226380,75 +187728,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list252 = new List>(num3); CollectionsMarshal.SetCount(list252, num3); - 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); + 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); reference198 = list253; - index3++; - span252[index3] = null; - index3++; - span252[index3] = null; + span89[4] = null; + span89[5] = null; obj178.RequiredQuestVariables = list252; reference197 = obj178; - num2++; - ref QuestStep reference199 = ref span245[num2]; + ref QuestStep reference199 = ref span82[5]; QuestStep obj179 = new QuestStep(EInteractionType.Action, 2009237u, new Vector3(173.99854f, -161.85254f, -190.29535f), 613) { Action = EAction.Inhale }; - 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]; + 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]; num4 = 4; List list255 = new List(num4); CollectionsMarshal.SetCount(list255, num4); - 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); + 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); reference200 = list255; - num3++; - span254[num3] = null; - num3++; - span254[num3] = null; + span91[4] = null; + span91[5] = null; obj179.RequiredQuestVariables = list254; reference199 = obj179; obj174.Steps = list245; reference190 = obj174; - num++; - ref QuestSequence reference201 = ref span242[num]; + ref QuestSequence reference201 = ref span81[3]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -226456,15 +187782,13 @@ public static class AssemblyQuestLoader num2 = 2; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span93 = CollectionsMarshal.AsSpan(list256); + span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj180.Steps = list256; reference201 = obj180; questRoot26.QuestSequence = list242; @@ -226474,30 +187798,24 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list257)[0] = "plogon_enjoyer"; questRoot27.Author = list257; - index = 3; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference202 = ref span258[num]; + num = 3; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span94 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference202 = ref span94[0]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj181.Steps = list259; reference202 = obj181; - num++; - ref QuestSequence reference203 = ref span258[num]; + ref QuestSequence reference203 = ref span94[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -226505,9 +187823,8 @@ public static class AssemblyQuestLoader num2 = 4; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(840.90247f, 5.923009f, 842.75916f), 613) + Span span95 = CollectionsMarshal.AsSpan(list260); + span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(840.90247f, 5.923009f, 842.75916f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -226517,8 +187834,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - index2++; - ref QuestStep reference204 = ref span260[index2]; + ref QuestStep reference204 = ref span95[1]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2009092u, new Vector3(38.864624f, 18.20398f, 712.7947f), 613) { Fly = true, @@ -226528,39 +187844,28 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span261 = CollectionsMarshal.AsSpan(list261); - index3 = 0; - span261[index3] = 8236u; + CollectionsMarshal.AsSpan(list261)[0] = 8236u; obj183.KillEnemyDataIds = list261; - 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); + 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); reference205 = list263; - num3++; - span262[num3] = null; - num3++; - span262[num3] = null; + span96[4] = null; + span96[5] = null; obj183.RequiredQuestVariables = list262; reference204 = obj183; - index2++; - ref QuestStep reference206 = ref span260[index2]; + ref QuestStep reference206 = ref span95[2]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2009091u, new Vector3(-72.58722f, 10.513428f, 632.41016f), 613) { Fly = true, @@ -226570,37 +187875,26 @@ public static class AssemblyQuestLoader num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span264 = CollectionsMarshal.AsSpan(list264); - index3 = 0; - span264[index3] = 8236u; + CollectionsMarshal.AsSpan(list264)[0] = 8236u; obj184.KillEnemyDataIds = list264; - 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]; + 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]; num4 = 1; List list266 = new List(num4); CollectionsMarshal.SetCount(list266, num4); - Span span266 = CollectionsMarshal.AsSpan(list266); - num5 = 0; - span266[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list266)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference207 = list266; - num3++; - span265[num3] = null; - num3++; - span265[num3] = null; + span98[4] = null; + span98[5] = null; obj184.RequiredQuestVariables = list265; reference206 = obj184; - index2++; - ref QuestStep reference208 = ref span260[index2]; + ref QuestStep reference208 = ref span95[3]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, 2009093u, new Vector3(29.495605f, 3.0059814f, 527.7637f), 613) { Fly = true, @@ -226610,55 +187904,42 @@ public static class AssemblyQuestLoader num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span267 = CollectionsMarshal.AsSpan(list267); - index3 = 0; - span267[index3] = 8236u; + CollectionsMarshal.AsSpan(list267)[0] = 8236u; obj185.KillEnemyDataIds = list267; - 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); + 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); reference209 = list269; - num3++; - span268[num3] = null; - num3++; - span268[num3] = null; + span99[4] = null; + span99[5] = null; obj185.RequiredQuestVariables = list268; reference208 = obj185; obj182.Steps = list260; reference203 = obj182; - num++; - ref QuestSequence reference210 = ref span258[num]; + ref QuestSequence reference210 = ref span94[2]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span270[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj186.Steps = list270; reference210 = obj186; questRoot27.QuestSequence = list258; @@ -226668,16 +187949,13 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list271)[0] = "plogon_enjoyer"; questRoot28.Author = list271; - index = 3; - List list272 = new List(index); - CollectionsMarshal.SetCount(list272, index); - Span span272 = CollectionsMarshal.AsSpan(list272); - num = 0; - ref QuestSequence reference211 = ref span272[num]; + num = 3; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span101 = CollectionsMarshal.AsSpan(list272); + ref QuestSequence reference211 = ref span101[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -226685,23 +187963,19 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - Span span273 = CollectionsMarshal.AsSpan(list273); - index2 = 0; - span273[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj187.Steps = list273; reference211 = obj187; - num++; - ref QuestSequence reference212 = ref span272[num]; + ref QuestSequence reference212 = ref span101[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list274 = new List(index2); - CollectionsMarshal.SetCount(list274, index2); - Span span274 = CollectionsMarshal.AsSpan(list274); - num2 = 0; - ref QuestStep reference213 = ref span274[num2]; + num2 = 3; + List list274 = new List(num2); + CollectionsMarshal.SetCount(list274, num2); + Span span102 = CollectionsMarshal.AsSpan(list274); + ref QuestStep reference213 = ref span102[0]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1019249u, new Vector3(537.1328f, 33.655228f, -811.1849f), 613) { Fly = true, @@ -226710,63 +187984,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list275 = new List>(num3); CollectionsMarshal.SetCount(list275, num3); - Span> span275 = CollectionsMarshal.AsSpan(list275); - index3 = 0; - span275[index3] = null; - index3++; - span275[index3] = null; - index3++; - ref List reference214 = ref span275[index3]; + Span> span103 = CollectionsMarshal.AsSpan(list275); + span103[0] = null; + span103[1] = null; + ref List reference214 = ref span103[2]; num4 = 2; List list276 = new List(num4); CollectionsMarshal.SetCount(list276, num4); - 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); + Span span104 = CollectionsMarshal.AsSpan(list276); + span104[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span104[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference214 = list276; - index3++; - span275[index3] = null; - index3++; - span275[index3] = null; - index3++; - span275[index3] = null; + span103[3] = null; + span103[4] = null; + span103[5] = null; obj189.RequiredQuestVariables = list275; reference213 = obj189; - num2++; - ref QuestStep reference215 = ref span274[num2]; + ref QuestStep reference215 = ref span102[1]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1024348u, new Vector3(724.8187f, 1.3691645f, -814.4198f), 613) { Fly = true }; - 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); + 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); reference216 = list278; - num3++; - span277[num3] = null; - num3++; - span277[num3] = null; - num3++; - span277[num3] = null; + span105[3] = null; + span105[4] = null; + span105[5] = null; obj190.RequiredQuestVariables = list277; reference215 = obj190; - num2++; - ref QuestStep reference217 = ref span274[num2]; + ref QuestStep reference217 = ref span102[2]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1024420u, new Vector3(577.3556f, 9.866471f, -733.79114f), 613) { Fly = true @@ -226774,32 +188030,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list279 = new List>(num3); CollectionsMarshal.SetCount(list279, num3); - Span> span279 = CollectionsMarshal.AsSpan(list279); - index3 = 0; - span279[index3] = null; - index3++; - span279[index3] = null; - index3++; - ref List reference218 = ref span279[index3]; + Span> span106 = CollectionsMarshal.AsSpan(list279); + span106[0] = null; + span106[1] = null; + ref List reference218 = ref span106[2]; num4 = 1; List list280 = new List(num4); CollectionsMarshal.SetCount(list280, num4); - Span span280 = CollectionsMarshal.AsSpan(list280); - num5 = 0; - span280[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list280)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference218 = list280; - index3++; - span279[index3] = null; - index3++; - span279[index3] = null; - index3++; - span279[index3] = null; + span106[3] = null; + span106[4] = null; + span106[5] = null; obj191.RequiredQuestVariables = list279; reference217 = obj191; obj188.Steps = list274; reference212 = obj188; - num++; - ref QuestSequence reference219 = ref span272[num]; + ref QuestSequence reference219 = ref span101[2]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue @@ -226807,15 +188054,13 @@ public static class AssemblyQuestLoader num2 = 2; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span107 = CollectionsMarshal.AsSpan(list281); + span107[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span281[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj192.Steps = list281; reference219 = obj192; questRoot28.QuestSequence = list272; @@ -226825,30 +188070,24 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - Span span282 = CollectionsMarshal.AsSpan(list282); - index = 0; - span282[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list282)[0] = "plogon_enjoyer"; questRoot29.Author = list282; - index = 4; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - ref QuestSequence reference220 = ref span283[num]; + num = 4; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span108 = CollectionsMarshal.AsSpan(list283); + ref QuestSequence reference220 = ref span108[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj193.Steps = list284; reference220 = obj193; - num++; - ref QuestSequence reference221 = ref span283[num]; + ref QuestSequence reference221 = ref span108[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 @@ -226856,15 +188095,13 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.734f, -118.16611f, -310.65613f), 613) + Span span109 = CollectionsMarshal.AsSpan(list285); + span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.734f, -118.16611f, -310.65613f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - index2++; - span285[index2] = new QuestStep(EInteractionType.Say, 2009099u, new Vector3(829.0073f, -122.179016f, -768.91736f), 613) + span109[1] = new QuestStep(EInteractionType.Say, 2009099u, new Vector3(829.0073f, -122.179016f, -768.91736f), 613) { Fly = true, ChatMessage = new ChatMessage @@ -226874,49 +188111,38 @@ public static class AssemblyQuestLoader }; obj194.Steps = list285; reference221 = obj194; - num++; - ref QuestSequence reference222 = ref span283[num]; + ref QuestSequence reference222 = ref span108[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list286 = new List(index2); - CollectionsMarshal.SetCount(list286, index2); - Span span286 = CollectionsMarshal.AsSpan(list286); - num2 = 0; - ref QuestStep reference223 = ref span286[num2]; + num2 = 3; + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + Span span110 = CollectionsMarshal.AsSpan(list286); + ref QuestStep reference223 = ref span110[0]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1024295u, new Vector3(861.6616f, -108.659546f, -546.4103f), 613) { Fly = true }; - 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); + 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); reference224 = list288; - num3++; - span287[num3] = null; - num3++; - span287[num3] = null; - num3++; - span287[num3] = null; - num3++; - span287[num3] = null; + span111[2] = null; + span111[3] = null; + span111[4] = null; + span111[5] = null; obj196.RequiredQuestVariables = list287; reference223 = obj196; - num2++; - ref QuestStep reference225 = ref span286[num2]; + ref QuestStep reference225 = ref span110[1]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1024345u, new Vector3(891.78296f, -140.61188f, -794.36945f), 613) { Fly = true @@ -226924,63 +188150,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list289 = new List>(num3); CollectionsMarshal.SetCount(list289, num3); - Span> span289 = CollectionsMarshal.AsSpan(list289); - index3 = 0; - span289[index3] = null; - index3++; - ref List reference226 = ref span289[index3]; + Span> span112 = CollectionsMarshal.AsSpan(list289); + span112[0] = null; + ref List reference226 = ref span112[1]; num4 = 1; List list290 = new List(num4); CollectionsMarshal.SetCount(list290, num4); - Span span290 = CollectionsMarshal.AsSpan(list290); - num5 = 0; - span290[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list290)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference226 = list290; - index3++; - span289[index3] = null; - index3++; - span289[index3] = null; - index3++; - span289[index3] = null; - index3++; - span289[index3] = null; + span112[2] = null; + span112[3] = null; + span112[4] = null; + span112[5] = null; obj197.RequiredQuestVariables = list289; reference225 = obj197; - num2++; - ref QuestStep reference227 = ref span286[num2]; + ref QuestStep reference227 = ref span110[2]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1024344u, new Vector3(836.14856f, -127.85541f, -910.7042f), 613) { Fly = true }; - 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); + 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); reference228 = list292; - num3++; - span291[num3] = null; - num3++; - span291[num3] = null; - num3++; - span291[num3] = null; - num3++; - span291[num3] = null; + span113[2] = null; + span113[3] = null; + span113[4] = null; + span113[5] = null; obj198.RequiredQuestVariables = list291; reference227 = obj198; obj195.Steps = list286; reference222 = obj195; - num++; - ref QuestSequence reference229 = ref span283[num]; + ref QuestSequence reference229 = ref span108[3]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -226988,15 +188196,13 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span114 = CollectionsMarshal.AsSpan(list293); + span114[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span293[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj199.Steps = list293; reference229 = obj199; questRoot29.QuestSequence = list283; @@ -227006,30 +188212,24 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - Span span294 = CollectionsMarshal.AsSpan(list294); - index = 0; - span294[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list294)[0] = "plogon_enjoyer"; questRoot30.Author = list294; - index = 3; - List list295 = new List(index); - CollectionsMarshal.SetCount(list295, index); - Span span295 = CollectionsMarshal.AsSpan(list295); - num = 0; - ref QuestSequence reference230 = ref span295[num]; + num = 3; + List list295 = new List(num); + CollectionsMarshal.SetCount(list295, num); + Span span115 = CollectionsMarshal.AsSpan(list295); + ref QuestSequence reference230 = ref span115[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj200.Steps = list296; reference230 = obj200; - num++; - ref QuestSequence reference231 = ref span295[num]; + ref QuestSequence reference231 = ref span115[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -227037,9 +188237,8 @@ public static class AssemblyQuestLoader num2 = 3; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - ref QuestStep reference232 = ref span297[index2]; + Span span116 = CollectionsMarshal.AsSpan(list297); + ref QuestStep reference232 = ref span116[0]; QuestStep obj202 = new QuestStep(EInteractionType.Combat, null, new Vector3(-305.79498f, -0.5f, -517.7326f), 613) { Fly = true, @@ -227050,37 +188249,26 @@ public static class AssemblyQuestLoader num3 = 1; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - Span span298 = CollectionsMarshal.AsSpan(list298); - index3 = 0; - span298[index3] = 8237u; + CollectionsMarshal.AsSpan(list298)[0] = 8237u; obj202.KillEnemyDataIds = list298; - 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]; + 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]; num4 = 1; List list300 = new List(num4); CollectionsMarshal.SetCount(list300, num4); - Span span300 = CollectionsMarshal.AsSpan(list300); - num5 = 0; - span300[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list300)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference233 = list300; - num3++; - span299[num3] = null; - num3++; - span299[num3] = null; - num3++; - span299[num3] = null; + span117[3] = null; + span117[4] = null; + span117[5] = null; obj202.RequiredQuestVariables = list299; reference232 = obj202; - index2++; - ref QuestStep reference234 = ref span297[index2]; + ref QuestStep reference234 = ref span116[1]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, null, new Vector3(166.64561f, -0.4983238f, -751.1739f), 613) { Fly = true, @@ -227091,37 +188279,26 @@ public static class AssemblyQuestLoader num3 = 1; List list301 = new List(num3); CollectionsMarshal.SetCount(list301, num3); - Span span301 = CollectionsMarshal.AsSpan(list301); - index3 = 0; - span301[index3] = 8237u; + CollectionsMarshal.AsSpan(list301)[0] = 8237u; obj203.KillEnemyDataIds = list301; - 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); + 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); reference235 = list303; - num3++; - span302[num3] = null; - num3++; - span302[num3] = null; - num3++; - span302[num3] = null; + span118[3] = null; + span118[4] = null; + span118[5] = null; obj203.RequiredQuestVariables = list302; reference234 = obj203; - index2++; - ref QuestStep reference236 = ref span297[index2]; + ref QuestStep reference236 = ref span116[2]; QuestStep obj204 = new QuestStep(EInteractionType.Combat, null, new Vector3(-135.29268f, -0.06343824f, -805.9451f), 613) { Fly = true, @@ -227132,55 +188309,42 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - Span span304 = CollectionsMarshal.AsSpan(list304); - index3 = 0; - span304[index3] = 8237u; + CollectionsMarshal.AsSpan(list304)[0] = 8237u; obj204.KillEnemyDataIds = list304; - 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]; + 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]; num4 = 1; List list306 = new List(num4); CollectionsMarshal.SetCount(list306, num4); - Span span306 = CollectionsMarshal.AsSpan(list306); - num5 = 0; - span306[num5] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list306)[0] = new QuestWorkValue(0, (byte)3, EQuestWorkMode.Bitwise); reference237 = list306; - num3++; - span305[num3] = null; - num3++; - span305[num3] = null; - num3++; - span305[num3] = null; + span119[3] = null; + span119[4] = null; + span119[5] = null; obj204.RequiredQuestVariables = list305; reference236 = obj204; obj201.Steps = list297; reference231 = obj201; - num++; - ref QuestSequence reference238 = ref span295[num]; + ref QuestSequence reference238 = ref span115[2]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span307[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj205.Steps = list307; reference238 = obj205; questRoot30.QuestSequence = list295; @@ -227190,16 +188354,13 @@ public static class AssemblyQuestLoader num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - Span span308 = CollectionsMarshal.AsSpan(list308); - index = 0; - span308[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list308)[0] = "plogon_enjoyer"; questRoot31.Author = list308; - index = 4; - List list309 = new List(index); - CollectionsMarshal.SetCount(list309, index); - Span span309 = CollectionsMarshal.AsSpan(list309); - num = 0; - ref QuestSequence reference239 = ref span309[num]; + num = 4; + List list309 = new List(num); + CollectionsMarshal.SetCount(list309, num); + Span span121 = CollectionsMarshal.AsSpan(list309); + ref QuestSequence reference239 = ref span121[0]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -227207,31 +188368,25 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj206.Steps = list310; reference239 = obj206; - num++; - ref QuestSequence reference240 = ref span309[num]; + ref QuestSequence reference240 = ref span121[1]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj207.Steps = list311; reference240 = obj207; - num++; - ref QuestSequence reference241 = ref span309[num]; + ref QuestSequence reference241 = ref span121[2]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -227239,9 +188394,8 @@ public static class AssemblyQuestLoader num2 = 3; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - ref QuestStep reference242 = ref span312[index2]; + Span span122 = CollectionsMarshal.AsSpan(list312); + ref QuestStep reference242 = ref span122[0]; QuestStep obj209 = new QuestStep(EInteractionType.Interact, 1024305u, new Vector3(30.71643f, 1.1855971f, -529.778f), 613) { Fly = true @@ -227249,65 +188403,47 @@ public static class AssemblyQuestLoader num3 = 6; List> list313 = new List>(num3); CollectionsMarshal.SetCount(list313, num3); - 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); + 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); reference243 = list314; - index3++; - span313[index3] = null; - index3++; - span313[index3] = null; - index3++; - span313[index3] = null; + span123[3] = null; + span123[4] = null; + span123[5] = null; obj209.RequiredQuestVariables = list313; reference242 = obj209; - index2++; - ref QuestStep reference244 = ref span312[index2]; + ref QuestStep reference244 = ref span122[1]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 1024303u, new Vector3(43.503418f, 3.6636734f, -619.379f), 613) { Fly = true }; - 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]; + 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]; num4 = 2; List list316 = new List(num4); CollectionsMarshal.SetCount(list316, num4); - 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); + 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); reference245 = list316; - num3++; - span315[num3] = null; - num3++; - span315[num3] = null; - num3++; - span315[num3] = null; + span125[3] = null; + span125[4] = null; + span125[5] = null; obj210.RequiredQuestVariables = list315; reference244 = obj210; - index2++; - ref QuestStep reference246 = ref span312[index2]; + ref QuestStep reference246 = ref span122[2]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1024301u, new Vector3(-11.886841f, 3.194641f, -622.88855f), 613) { Fly = true @@ -227315,50 +188451,39 @@ public static class AssemblyQuestLoader num3 = 6; List> list317 = new List>(num3); CollectionsMarshal.SetCount(list317, num3); - 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); + 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); reference247 = list318; - index3++; - span317[index3] = null; - index3++; - span317[index3] = null; - index3++; - span317[index3] = null; + span127[3] = null; + span127[4] = null; + span127[5] = null; obj211.RequiredQuestVariables = list317; reference246 = obj211; obj208.Steps = list312; reference241 = obj208; - num++; - ref QuestSequence reference248 = ref span309[num]; + ref QuestSequence reference248 = ref span121[3]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span319[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj212.Steps = list319; reference248 = obj212; questRoot31.QuestSequence = list309; @@ -227368,16 +188493,13 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - Span span320 = CollectionsMarshal.AsSpan(list320); - index = 0; - span320[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list320)[0] = "plogon_enjoyer"; questRoot32.Author = list320; - index = 4; - List list321 = new List(index); - CollectionsMarshal.SetCount(list321, index); - Span span321 = CollectionsMarshal.AsSpan(list321); - num = 0; - ref QuestSequence reference249 = ref span321[num]; + num = 4; + List list321 = new List(num); + CollectionsMarshal.SetCount(list321, num); + Span span130 = CollectionsMarshal.AsSpan(list321); + ref QuestSequence reference249 = ref span130[0]; QuestSequence obj213 = new QuestSequence { Sequence = 0 @@ -227385,60 +188507,46 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj213.Steps = list322; reference249 = obj213; - num++; - ref QuestSequence reference250 = ref span321[num]; + ref QuestSequence reference250 = ref span130[1]; QuestSequence obj214 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - num2++; - ref QuestStep reference251 = ref span323[num2]; + ref QuestStep reference251 = ref span131[1]; QuestStep obj215 = new QuestStep(EInteractionType.UseItem, 2009104u, new Vector3(399.89307f, -0.10687256f, -347.21906f), 613) { Fly = true, ItemId = 2002405u }; - 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]; + 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]; num4 = 1; List list325 = new List(num4); CollectionsMarshal.SetCount(list325, num4); - Span span325 = CollectionsMarshal.AsSpan(list325); - num5 = 0; - span325[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list325)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference252 = list325; - num3++; - span324[num3] = null; - num3++; - span324[num3] = null; - num3++; - span324[num3] = null; + span132[3] = null; + span132[4] = null; + span132[5] = null; obj215.RequiredQuestVariables = list324; reference251 = obj215; - num2++; - ref QuestStep reference253 = ref span323[num2]; + ref QuestStep reference253 = ref span131[2]; QuestStep obj216 = new QuestStep(EInteractionType.UseItem, 2009103u, new Vector3(187.24341f, -0.10687256f, -477.71423f), 613) { Fly = true, @@ -227447,64 +188555,46 @@ public static class AssemblyQuestLoader num3 = 6; List> list326 = new List>(num3); CollectionsMarshal.SetCount(list326, num3); - 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); + 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); reference254 = list327; - index3++; - span326[index3] = null; - index3++; - span326[index3] = null; - index3++; - span326[index3] = null; + span133[3] = null; + span133[4] = null; + span133[5] = null; obj216.RequiredQuestVariables = list326; reference253 = obj216; - num2++; - ref QuestStep reference255 = ref span323[num2]; + ref QuestStep reference255 = ref span131[3]; QuestStep obj217 = new QuestStep(EInteractionType.UseItem, 2009102u, new Vector3(379.07983f, -0.07635498f, -494.31604f), 613) { Fly = true, ItemId = 2002405u }; - 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]; + 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]; num4 = 1; List list329 = new List(num4); CollectionsMarshal.SetCount(list329, num4); - Span span329 = CollectionsMarshal.AsSpan(list329); - num5 = 0; - span329[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list329)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference256 = list329; - num3++; - span328[num3] = null; - num3++; - span328[num3] = null; - num3++; - span328[num3] = null; + span134[3] = null; + span134[4] = null; + span134[5] = null; obj217.RequiredQuestVariables = list328; reference255 = obj217; obj214.Steps = list323; reference250 = obj214; - num++; - ref QuestSequence reference257 = ref span321[num]; + ref QuestSequence reference257 = ref span130[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -227512,32 +188602,27 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj218.Steps = list330; reference257 = obj218; - num++; - ref QuestSequence reference258 = ref span321[num]; + ref QuestSequence reference258 = ref span130[3]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span331[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span135[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj219.Steps = list331; reference258 = obj219; questRoot32.QuestSequence = list321; @@ -227547,16 +188632,13 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list332)[0] = "plogon_enjoyer"; questRoot33.Author = list332; - index = 3; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref QuestSequence reference259 = ref span333[num]; + num = 3; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + Span span136 = CollectionsMarshal.AsSpan(list333); + ref QuestSequence reference259 = ref span136[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -227564,23 +188646,19 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj220.Steps = list334; reference259 = obj220; - num++; - ref QuestSequence reference260 = ref span333[num]; + ref QuestSequence reference260 = ref span136[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -227589,8 +188667,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num2++; - ref QuestStep reference261 = ref span335[num2]; + ref QuestStep reference261 = ref span137[1]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, 2009161u, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { Fly = true, @@ -227599,37 +188676,26 @@ public static class AssemblyQuestLoader num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - Span span336 = CollectionsMarshal.AsSpan(list336); - index3 = 0; - span336[index3] = 8238u; + CollectionsMarshal.AsSpan(list336)[0] = 8238u; obj222.KillEnemyDataIds = list336; - 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); + 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); reference262 = list338; - num3++; - span337[num3] = null; - num3++; - span337[num3] = null; - num3++; - span337[num3] = null; + span138[3] = null; + span138[4] = null; + span138[5] = null; obj222.RequiredQuestVariables = list337; reference261 = obj222; - num2++; - ref QuestStep reference263 = ref span335[num2]; + ref QuestStep reference263 = ref span137[2]; QuestStep obj223 = new QuestStep(EInteractionType.Combat, null, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -227637,37 +188703,26 @@ public static class AssemblyQuestLoader num3 = 1; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - Span span339 = CollectionsMarshal.AsSpan(list339); - index3 = 0; - span339[index3] = 8239u; + CollectionsMarshal.AsSpan(list339)[0] = 8239u; obj223.KillEnemyDataIds = list339; - 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]; + 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]; num4 = 1; List list341 = new List(num4); CollectionsMarshal.SetCount(list341, num4); - Span span341 = CollectionsMarshal.AsSpan(list341); - num5 = 0; - span341[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list341)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference264 = list341; - num3++; - span340[num3] = null; - num3++; - span340[num3] = null; - num3++; - span340[num3] = null; + span139[3] = null; + span139[4] = null; + span139[5] = null; obj223.RequiredQuestVariables = list340; reference263 = obj223; - num2++; - ref QuestStep reference265 = ref span335[num2]; + ref QuestStep reference265 = ref span137[3]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(52.262085f, 18.844849f, 576.43994f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -227675,37 +188730,26 @@ public static class AssemblyQuestLoader num3 = 1; List list342 = new List(num3); CollectionsMarshal.SetCount(list342, num3); - Span span342 = CollectionsMarshal.AsSpan(list342); - index3 = 0; - span342[index3] = 8240u; + CollectionsMarshal.AsSpan(list342)[0] = 8240u; obj224.KillEnemyDataIds = list342; - 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); + 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); reference266 = list344; - num3++; - span343[num3] = null; - num3++; - span343[num3] = null; - num3++; - span343[num3] = null; + span140[3] = null; + span140[4] = null; + span140[5] = null; obj224.RequiredQuestVariables = list343; reference265 = obj224; - num2++; - ref QuestStep reference267 = ref span335[num2]; + ref QuestStep reference267 = ref span137[4]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, 2009162u, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { Fly = true, @@ -227714,37 +188758,26 @@ public static class AssemblyQuestLoader num3 = 1; List list345 = new List(num3); CollectionsMarshal.SetCount(list345, num3); - Span span345 = CollectionsMarshal.AsSpan(list345); - index3 = 0; - span345[index3] = 8238u; + CollectionsMarshal.AsSpan(list345)[0] = 8238u; obj225.KillEnemyDataIds = list345; - 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]; + 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]; num4 = 1; List list347 = new List(num4); CollectionsMarshal.SetCount(list347, num4); - Span span347 = CollectionsMarshal.AsSpan(list347); - num5 = 0; - span347[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list347)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference268 = list347; - num3++; - span346[num3] = null; - num3++; - span346[num3] = null; - num3++; - span346[num3] = null; + span141[3] = null; + span141[4] = null; + span141[5] = null; obj225.RequiredQuestVariables = list346; reference267 = obj225; - num2++; - ref QuestStep reference269 = ref span335[num2]; + ref QuestStep reference269 = ref span137[5]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, null, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -227752,37 +188785,26 @@ public static class AssemblyQuestLoader num3 = 1; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - Span span348 = CollectionsMarshal.AsSpan(list348); - index3 = 0; - span348[index3] = 8239u; + CollectionsMarshal.AsSpan(list348)[0] = 8239u; obj226.KillEnemyDataIds = list348; - 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); + 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); reference270 = list350; - num3++; - span349[num3] = null; - num3++; - span349[num3] = null; - num3++; - span349[num3] = null; + span142[3] = null; + span142[4] = null; + span142[5] = null; obj226.RequiredQuestVariables = list349; reference269 = obj226; - num2++; - ref QuestStep reference271 = ref span335[num2]; + ref QuestStep reference271 = ref span137[6]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, null, new Vector3(29.587158f, 51.407593f, 771.35876f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -227790,37 +188812,26 @@ public static class AssemblyQuestLoader num3 = 1; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - Span span351 = CollectionsMarshal.AsSpan(list351); - index3 = 0; - span351[index3] = 8240u; + CollectionsMarshal.AsSpan(list351)[0] = 8240u; obj227.KillEnemyDataIds = list351; - 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]; + 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]; num4 = 1; List list353 = new List(num4); CollectionsMarshal.SetCount(list353, num4); - Span span353 = CollectionsMarshal.AsSpan(list353); - num5 = 0; - span353[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list353)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference272 = list353; - num3++; - span352[num3] = null; - num3++; - span352[num3] = null; - num3++; - span352[num3] = null; + span143[3] = null; + span143[4] = null; + span143[5] = null; obj227.RequiredQuestVariables = list352; reference271 = obj227; - num2++; - ref QuestStep reference273 = ref span335[num2]; + ref QuestStep reference273 = ref span137[7]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2009163u, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { Fly = true, @@ -227829,37 +188840,26 @@ public static class AssemblyQuestLoader num3 = 1; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - Span span354 = CollectionsMarshal.AsSpan(list354); - index3 = 0; - span354[index3] = 8238u; + CollectionsMarshal.AsSpan(list354)[0] = 8238u; obj228.KillEnemyDataIds = list354; - 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); + 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); reference274 = list356; - num3++; - span355[num3] = null; - num3++; - span355[num3] = null; - num3++; - span355[num3] = null; + span144[3] = null; + span144[4] = null; + span144[5] = null; obj228.RequiredQuestVariables = list355; reference273 = obj228; - num2++; - ref QuestStep reference275 = ref span335[num2]; + ref QuestStep reference275 = ref span137[8]; QuestStep obj229 = new QuestStep(EInteractionType.Combat, null, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -227867,37 +188867,26 @@ public static class AssemblyQuestLoader num3 = 1; List list357 = new List(num3); CollectionsMarshal.SetCount(list357, num3); - Span span357 = CollectionsMarshal.AsSpan(list357); - index3 = 0; - span357[index3] = 8239u; + CollectionsMarshal.AsSpan(list357)[0] = 8239u; obj229.KillEnemyDataIds = list357; - 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]; + 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]; num4 = 1; List list359 = new List(num4); CollectionsMarshal.SetCount(list359, num4); - Span span359 = CollectionsMarshal.AsSpan(list359); - num5 = 0; - span359[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list359)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference276 = list359; - num3++; - span358[num3] = null; - num3++; - span358[num3] = null; - num3++; - span358[num3] = null; + span145[3] = null; + span145[4] = null; + span145[5] = null; obj229.RequiredQuestVariables = list358; reference275 = obj229; - num2++; - ref QuestStep reference277 = ref span335[num2]; + ref QuestStep reference277 = ref span137[9]; QuestStep obj230 = new QuestStep(EInteractionType.Combat, null, new Vector3(337.84998f, 5.8136597f, 685.26733f), 613) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -227905,39 +188894,28 @@ public static class AssemblyQuestLoader num3 = 1; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - Span span360 = CollectionsMarshal.AsSpan(list360); - index3 = 0; - span360[index3] = 8240u; + CollectionsMarshal.AsSpan(list360)[0] = 8240u; obj230.KillEnemyDataIds = list360; - 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); + 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); reference278 = list362; - num3++; - span361[num3] = null; - num3++; - span361[num3] = null; - num3++; - span361[num3] = null; + span146[3] = null; + span146[4] = null; + span146[5] = null; obj230.RequiredQuestVariables = list361; reference277 = obj230; obj221.Steps = list335; reference260 = obj221; - num++; - ref QuestSequence reference279 = ref span333[num]; + ref QuestSequence reference279 = ref span136[2]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -227945,15 +188923,13 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span147 = CollectionsMarshal.AsSpan(list363); + span147[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span363[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span147[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj231.Steps = list363; reference279 = obj231; questRoot33.QuestSequence = list333; @@ -227963,30 +188939,24 @@ public static class AssemblyQuestLoader num = 1; List list364 = new List(num); CollectionsMarshal.SetCount(list364, num); - Span span364 = CollectionsMarshal.AsSpan(list364); - index = 0; - span364[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list364)[0] = "plogon_enjoyer"; questRoot34.Author = list364; - index = 4; - List list365 = new List(index); - CollectionsMarshal.SetCount(list365, index); - Span span365 = CollectionsMarshal.AsSpan(list365); - num = 0; - ref QuestSequence reference280 = ref span365[num]; + num = 4; + List list365 = new List(num); + CollectionsMarshal.SetCount(list365, num); + Span span148 = CollectionsMarshal.AsSpan(list365); + ref QuestSequence reference280 = ref span148[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj232.Steps = list366; reference280 = obj232; - num++; - ref QuestSequence reference281 = ref span365[num]; + ref QuestSequence reference281 = ref span148[1]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -227994,32 +188964,27 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Interact, 1024218u, new Vector3(387.56384f, -119.795334f, -257.64862f), 613) { Fly = true }; obj233.Steps = list367; reference281 = obj233; - num++; - ref QuestSequence reference282 = ref span365[num]; + ref QuestSequence reference282 = ref span148[2]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - ref QuestStep reference283 = ref span368[num2]; + ref QuestStep reference283 = ref span149[1]; QuestStep obj235 = new QuestStep(EInteractionType.Action, 2009109u, new Vector3(239.18518f, -74.99817f, -464.95764f), 613) { Fly = true, @@ -228028,74 +188993,52 @@ public static class AssemblyQuestLoader num3 = 6; List> list369 = new List>(num3); CollectionsMarshal.SetCount(list369, num3); - 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]; + Span> span150 = CollectionsMarshal.AsSpan(list369); + span150[0] = null; + span150[1] = null; + span150[2] = null; + ref List reference284 = ref span150[3]; num4 = 4; List list370 = new List(num4); CollectionsMarshal.SetCount(list370, num4); - 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); + 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); reference284 = list370; - index3++; - span369[index3] = null; - index3++; - span369[index3] = null; + span150[4] = null; + span150[5] = null; obj235.RequiredQuestVariables = list369; reference283 = obj235; - num2++; - ref QuestStep reference285 = ref span368[num2]; + ref QuestStep reference285 = ref span149[2]; QuestStep obj236 = new QuestStep(EInteractionType.Action, 2009108u, new Vector3(286.33557f, -74.60144f, -499.01584f), 613) { Fly = true, Action = EAction.Inhale }; - 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); + 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); reference286 = list372; - num3++; - span371[num3] = null; - num3++; - span371[num3] = null; + span152[4] = null; + span152[5] = null; obj236.RequiredQuestVariables = list371; reference285 = obj236; - num2++; - ref QuestStep reference287 = ref span368[num2]; + ref QuestStep reference287 = ref span149[3]; QuestStep obj237 = new QuestStep(EInteractionType.Action, 2009106u, new Vector3(539.2385f, -56.26001f, -364.88904f), 613) { Fly = true, @@ -228104,72 +189047,51 @@ public static class AssemblyQuestLoader num3 = 6; List> list373 = new List>(num3); CollectionsMarshal.SetCount(list373, num3); - 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]; + Span> span154 = CollectionsMarshal.AsSpan(list373); + span154[0] = null; + span154[1] = null; + span154[2] = null; + ref List reference288 = ref span154[3]; num4 = 3; List list374 = new List(num4); CollectionsMarshal.SetCount(list374, num4); - 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); + 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); reference288 = list374; - index3++; - span373[index3] = null; - index3++; - span373[index3] = null; + span154[4] = null; + span154[5] = null; obj237.RequiredQuestVariables = list373; reference287 = obj237; - num2++; - ref QuestStep reference289 = ref span368[num2]; + ref QuestStep reference289 = ref span149[4]; QuestStep obj238 = new QuestStep(EInteractionType.Action, 2009107u, new Vector3(560.14343f, -75.547424f, -410.81866f), 613) { Fly = true, Action = EAction.Inhale }; - 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); + 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); reference290 = list376; - num3++; - span375[num3] = null; - num3++; - span375[num3] = null; + span156[4] = null; + span156[5] = null; obj238.RequiredQuestVariables = list375; reference289 = obj238; - num2++; - ref QuestStep reference291 = ref span368[num2]; + ref QuestStep reference291 = ref span149[5]; QuestStep obj239 = new QuestStep(EInteractionType.Action, 2009105u, new Vector3(613.94666f, -74.57086f, -400.04578f), 613) { Fly = true, @@ -228178,36 +189100,26 @@ public static class AssemblyQuestLoader num3 = 6; List> list377 = new List>(num3); CollectionsMarshal.SetCount(list377, num3); - 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]; + Span> span158 = CollectionsMarshal.AsSpan(list377); + span158[0] = null; + span158[1] = null; + span158[2] = null; + ref List reference292 = ref span158[3]; num4 = 3; List list378 = new List(num4); CollectionsMarshal.SetCount(list378, num4); - 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); + 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); reference292 = list378; - index3++; - span377[index3] = null; - index3++; - span377[index3] = null; + span158[4] = null; + span158[5] = null; obj239.RequiredQuestVariables = list377; reference291 = obj239; obj234.Steps = list368; reference282 = obj234; - num++; - ref QuestSequence reference293 = ref span365[num]; + ref QuestSequence reference293 = ref span148[3]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -228215,15 +189127,13 @@ public static class AssemblyQuestLoader num2 = 2; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - Span span379 = CollectionsMarshal.AsSpan(list379); - index2 = 0; - span379[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span160 = CollectionsMarshal.AsSpan(list379); + span160[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span379[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span160[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj240.Steps = list379; reference293 = obj240; questRoot34.QuestSequence = list365; @@ -228233,30 +189143,24 @@ public static class AssemblyQuestLoader num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - Span span380 = CollectionsMarshal.AsSpan(list380); - index = 0; - span380[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list380)[0] = "plogon_enjoyer"; questRoot35.Author = list380; - index = 3; - List list381 = new List(index); - CollectionsMarshal.SetCount(list381, index); - Span span381 = CollectionsMarshal.AsSpan(list381); - num = 0; - ref QuestSequence reference294 = ref span381[num]; + num = 3; + List list381 = new List(num); + CollectionsMarshal.SetCount(list381, num); + Span span161 = CollectionsMarshal.AsSpan(list381); + ref QuestSequence reference294 = ref span161[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj241.Steps = list382; reference294 = obj241; - num++; - ref QuestSequence reference295 = ref span381[num]; + ref QuestSequence reference295 = ref span161[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -228264,38 +189168,33 @@ public static class AssemblyQuestLoader num2 = 2; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span383 = CollectionsMarshal.AsSpan(list383); - index2 = 0; - span383[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.92435f, -78.61959f, -226.5322f), 613) + Span span162 = CollectionsMarshal.AsSpan(list383); + span162[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(314.92435f, -78.61959f, -226.5322f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - index2++; - span383[index2] = new QuestStep(EInteractionType.Interact, 1024307u, new Vector3(29.617676f, -86.167725f, -26.962769f), 613) + span162[1] = new QuestStep(EInteractionType.Interact, 1024307u, new Vector3(29.617676f, -86.167725f, -26.962769f), 613) { Fly = true }; obj242.Steps = list383; reference295 = obj242; - num++; - ref QuestSequence reference296 = ref span381[num]; + ref QuestSequence reference296 = ref span161[2]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span384[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span163[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj243.Steps = list384; reference296 = obj243; questRoot35.QuestSequence = list381; @@ -228305,16 +189204,13 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - Span span385 = CollectionsMarshal.AsSpan(list385); - index = 0; - span385[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list385)[0] = "plogon_enjoyer"; questRoot36.Author = list385; - index = 3; - List list386 = new List(index); - CollectionsMarshal.SetCount(list386, index); - Span span386 = CollectionsMarshal.AsSpan(list386); - num = 0; - ref QuestSequence reference297 = ref span386[num]; + num = 3; + List list386 = new List(num); + CollectionsMarshal.SetCount(list386, num); + Span span164 = CollectionsMarshal.AsSpan(list386); + ref QuestSequence reference297 = ref span164[0]; QuestSequence obj244 = new QuestSequence { Sequence = 0 @@ -228322,61 +189218,47 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - Span span387 = CollectionsMarshal.AsSpan(list387); - index2 = 0; - span387[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj244.Steps = list387; reference297 = obj244; - num++; - ref QuestSequence reference298 = ref span386[num]; + ref QuestSequence reference298 = ref span164[1]; QuestSequence obj245 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - num2++; - ref QuestStep reference299 = ref span388[num2]; + ref QuestStep reference299 = ref span165[1]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 2009114u, new Vector3(558.5259f, -0.015319824f, -516.92993f), 613) { Fly = true }; - 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); + 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); reference300 = list390; - num3++; - span389[num3] = null; + span166[5] = null; obj246.RequiredQuestVariables = list389; reference299 = obj246; - num2++; - ref QuestStep reference301 = ref span388[num2]; + ref QuestStep reference301 = ref span165[2]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 2009116u, new Vector3(558.5259f, -0.015319824f, -516.92993f), 613) { Fly = true, @@ -228385,41 +189267,29 @@ public static class AssemblyQuestLoader num3 = 1; List list391 = new List(num3); CollectionsMarshal.SetCount(list391, num3); - Span span391 = CollectionsMarshal.AsSpan(list391); - index3 = 0; - span391[index3] = 8241u; + CollectionsMarshal.AsSpan(list391)[0] = 8241u; obj247.KillEnemyDataIds = list391; - 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]; + 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]; num4 = 3; List list393 = new List(num4); CollectionsMarshal.SetCount(list393, num4); - 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); + 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); reference302 = list393; - num3++; - span392[num3] = null; + span168[5] = null; obj247.RequiredQuestVariables = list392; reference301 = obj247; - num2++; - ref QuestStep reference303 = ref span388[num2]; + ref QuestStep reference303 = ref span165[3]; QuestStep obj248 = new QuestStep(EInteractionType.Interact, 2009113u, new Vector3(633.1731f, -0.015319824f, -497.79507f), 613) { Fly = true @@ -228427,110 +189297,79 @@ public static class AssemblyQuestLoader num3 = 6; List> list394 = new List>(num3); CollectionsMarshal.SetCount(list394, num3); - 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); + 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); reference304 = list395; - index3++; - span394[index3] = null; + span170[5] = null; obj248.RequiredQuestVariables = list394; reference303 = obj248; - num2++; - ref QuestStep reference305 = ref span388[num2]; + ref QuestStep reference305 = ref span165[4]; QuestStep obj249 = new QuestStep(EInteractionType.Combat, 2009111u, new Vector3(633.1731f, -0.015319824f, -497.79507f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list396 = new List(index3); - CollectionsMarshal.SetCount(list396, index3); - Span span396 = CollectionsMarshal.AsSpan(list396); - num3 = 0; - span396[num3] = 8241u; + num3 = 1; + List list396 = new List(num3); + CollectionsMarshal.SetCount(list396, num3); + CollectionsMarshal.AsSpan(list396)[0] = 8241u; obj249.KillEnemyDataIds = list396; num3 = 6; List> list397 = new List>(num3); CollectionsMarshal.SetCount(list397, num3); - 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]; + Span> span172 = CollectionsMarshal.AsSpan(list397); + span172[0] = null; + span172[1] = null; + span172[2] = null; + span172[3] = null; + ref List reference306 = ref span172[4]; num4 = 3; List list398 = new List(num4); CollectionsMarshal.SetCount(list398, num4); - 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); + 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); reference306 = list398; - index3++; - span397[index3] = null; + span172[5] = null; obj249.RequiredQuestVariables = list397; reference305 = obj249; - num2++; - ref QuestStep reference307 = ref span388[num2]; + ref QuestStep reference307 = ref span165[5]; QuestStep obj250 = new QuestStep(EInteractionType.Interact, 2009110u, new Vector3(694.08704f, -0.015319824f, -611.017f), 613) { Fly = true }; - 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); + 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); reference308 = list400; - num3++; - span399[num3] = null; + span174[5] = null; obj250.RequiredQuestVariables = list399; reference307 = obj250; - num2++; - ref QuestStep reference309 = ref span388[num2]; + ref QuestStep reference309 = ref span165[6]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 2009117u, new Vector3(694.08704f, -0.015319824f, -611.017f), 613) { Fly = true, @@ -228539,41 +189378,30 @@ public static class AssemblyQuestLoader num3 = 1; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - Span span401 = CollectionsMarshal.AsSpan(list401); - index3 = 0; - span401[index3] = 8241u; + CollectionsMarshal.AsSpan(list401)[0] = 8241u; obj251.KillEnemyDataIds = list401; - 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]; + 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]; num4 = 2; List list403 = new List(num4); CollectionsMarshal.SetCount(list403, num4); - 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); + 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); reference310 = list403; - num3++; - span402[num3] = null; + span176[5] = null; obj251.RequiredQuestVariables = list402; reference309 = obj251; obj245.Steps = list388; reference298 = obj245; - num++; - ref QuestSequence reference311 = ref span386[num]; + ref QuestSequence reference311 = ref span164[2]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue @@ -228581,15 +189409,13 @@ public static class AssemblyQuestLoader num2 = 2; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span404 = CollectionsMarshal.AsSpan(list404); - index2 = 0; - span404[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) + Span span178 = CollectionsMarshal.AsSpan(list404); + span178[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.59683f, -119.589325f, -234.30063f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span404[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span178[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj252.Steps = list404; reference311 = obj252; questRoot36.QuestSequence = list386; @@ -228599,30 +189425,24 @@ public static class AssemblyQuestLoader num = 1; List list405 = new List(num); CollectionsMarshal.SetCount(list405, num); - Span span405 = CollectionsMarshal.AsSpan(list405); - index = 0; - span405[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list405)[0] = "plogon_enjoyer"; questRoot37.Author = list405; - index = 3; - List list406 = new List(index); - CollectionsMarshal.SetCount(list406, index); - Span span406 = CollectionsMarshal.AsSpan(list406); - num = 0; - ref QuestSequence reference312 = ref span406[num]; + num = 3; + List list406 = new List(num); + CollectionsMarshal.SetCount(list406, num); + Span span179 = CollectionsMarshal.AsSpan(list406); + ref QuestSequence reference312 = ref span179[0]; QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj253.Steps = list407; reference312 = obj253; - num++; - ref QuestSequence reference313 = ref span406[num]; + ref QuestSequence reference313 = ref span179[1]; QuestSequence obj254 = new QuestSequence { Sequence = 1 @@ -228630,14 +189450,12 @@ public static class AssemblyQuestLoader num2 = 7; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - span408[index2] = new QuestStep(EInteractionType.None, null, null, 613) + Span span180 = CollectionsMarshal.AsSpan(list408); + span180[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - index2++; - ref QuestStep reference314 = ref span408[index2]; + ref QuestStep reference314 = ref span180[1]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1024310u, new Vector3(-795.0103f, 21.373795f, -466.20892f), 613) { Fly = true @@ -228645,65 +189463,46 @@ public static class AssemblyQuestLoader num3 = 6; List> list409 = new List>(num3); CollectionsMarshal.SetCount(list409, num3); - 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); + 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); reference315 = list410; - index3++; - span409[index3] = null; + span181[5] = null; obj255.RequiredQuestVariables = list409; reference314 = obj255; - index2++; - ref QuestStep reference316 = ref span408[index2]; + ref QuestStep reference316 = ref span180[2]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1024311u, new Vector3(-750.39294f, 1.6679686f, -479.33167f), 613) { Fly = true }; - 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]; + 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]; num4 = 3; List list412 = new List(num4); CollectionsMarshal.SetCount(list412, num4); - 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); + 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); reference317 = list412; - num3++; - span411[num3] = null; + span182[5] = null; obj256.RequiredQuestVariables = list411; reference316 = obj256; - index2++; - ref QuestStep reference318 = ref span408[index2]; + ref QuestStep reference318 = ref span180[3]; QuestStep obj257 = new QuestStep(EInteractionType.Interact, 1024312u, new Vector3(-792.08057f, 8.039127f, -444.419f), 613) { Fly = true @@ -228711,65 +189510,47 @@ public static class AssemblyQuestLoader num3 = 6; List> list413 = new List>(num3); CollectionsMarshal.SetCount(list413, num3); - 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); + 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); reference319 = list414; - index3++; - span413[index3] = null; + span184[5] = null; obj257.RequiredQuestVariables = list413; reference318 = obj257; - index2++; - ref QuestStep reference320 = ref span408[index2]; + ref QuestStep reference320 = ref span180[4]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1024313u, new Vector3(-764.12604f, 4.763445f, -441.51984f), 613) { Fly = true }; - 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]; + 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]; num4 = 2; List list416 = new List(num4); CollectionsMarshal.SetCount(list416, num4); - 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); + 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); reference321 = list416; - num3++; - span415[num3] = null; + span186[5] = null; obj258.RequiredQuestVariables = list415; reference320 = obj258; - index2++; - ref QuestStep reference322 = ref span408[index2]; + ref QuestStep reference322 = ref span180[5]; QuestStep obj259 = new QuestStep(EInteractionType.Interact, 1024314u, new Vector3(-784.48157f, 7.7091823f, -456.9925f), 613) { Fly = true @@ -228777,83 +189558,63 @@ public static class AssemblyQuestLoader num3 = 6; List> list417 = new List>(num3); CollectionsMarshal.SetCount(list417, num3); - 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); + 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); reference323 = list418; - index3++; - span417[index3] = null; + span188[5] = null; obj259.RequiredQuestVariables = list417; reference322 = obj259; - index2++; - ref QuestStep reference324 = ref span408[index2]; + ref QuestStep reference324 = ref span180[6]; QuestStep obj260 = new QuestStep(EInteractionType.Interact, 1024315u, new Vector3(-797.4823f, 8.045045f, -417.56317f), 613) { Fly = true }; - 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]; + 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]; num4 = 2; List list420 = new List(num4); CollectionsMarshal.SetCount(list420, num4); - 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); + 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); reference325 = list420; - num3++; - span419[num3] = null; + span190[5] = null; obj260.RequiredQuestVariables = list419; reference324 = obj260; obj254.Steps = list408; reference313 = obj254; - num++; - ref QuestSequence reference326 = ref span406[num]; + ref QuestSequence reference326 = ref span179[2]; QuestSequence obj261 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span421[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span192[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj261.Steps = list421; reference326 = obj261; questRoot37.QuestSequence = list406; @@ -228863,16 +189624,13 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - Span span422 = CollectionsMarshal.AsSpan(list422); - index = 0; - span422[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list422)[0] = "plogon_enjoyer"; questRoot38.Author = list422; - index = 3; - List list423 = new List(index); - CollectionsMarshal.SetCount(list423, index); - Span span423 = CollectionsMarshal.AsSpan(list423); - num = 0; - ref QuestSequence reference327 = ref span423[num]; + num = 3; + List list423 = new List(num); + CollectionsMarshal.SetCount(list423, num); + Span span193 = CollectionsMarshal.AsSpan(list423); + ref QuestSequence reference327 = ref span193[0]; QuestSequence obj262 = new QuestSequence { Sequence = 0 @@ -228880,29 +189638,24 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span424 = CollectionsMarshal.AsSpan(list424); - index2 = 0; - span424[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj262.Steps = list424; reference327 = obj262; - num++; - ref QuestSequence reference328 = ref span423[num]; + ref QuestSequence reference328 = ref span193[1]; QuestSequence obj263 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - ref QuestStep reference329 = ref span425[num2]; + ref QuestStep reference329 = ref span194[1]; QuestStep obj264 = new QuestStep(EInteractionType.Interact, 2009119u, new Vector3(-229.26678f, -308.73578f, 449.485f), 613) { Fly = true @@ -228910,61 +189663,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list426 = new List>(num3); CollectionsMarshal.SetCount(list426, num3); - 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); + 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); reference330 = list427; - index3++; - span426[index3] = null; - index3++; - span426[index3] = null; - index3++; - span426[index3] = null; - index3++; - span426[index3] = null; + span195[2] = null; + span195[3] = null; + span195[4] = null; + span195[5] = null; obj264.RequiredQuestVariables = list426; reference329 = obj264; - num2++; - ref QuestStep reference331 = ref span425[num2]; + ref QuestStep reference331 = ref span194[2]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 2009120u, new Vector3(-233.9361f, -411.3985f, 372.8236f), 613) { Fly = true }; - 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]; + 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]; num4 = 1; List list429 = new List(num4); CollectionsMarshal.SetCount(list429, num4); - Span span429 = CollectionsMarshal.AsSpan(list429); - num5 = 0; - span429[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list429)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference332 = list429; - num3++; - span428[num3] = null; - num3++; - span428[num3] = null; - num3++; - span428[num3] = null; - num3++; - span428[num3] = null; + span196[2] = null; + span196[3] = null; + span196[4] = null; + span196[5] = null; obj265.RequiredQuestVariables = list428; reference331 = obj265; - num2++; - ref QuestStep reference333 = ref span425[num2]; + ref QuestStep reference333 = ref span194[3]; QuestStep obj266 = new QuestStep(EInteractionType.Interact, 2009121u, new Vector3(-279.62158f, -366.81165f, 408.68237f), 613) { Fly = true @@ -228972,63 +189707,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list430 = new List>(num3); CollectionsMarshal.SetCount(list430, num3); - 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); + 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); reference334 = list431; - index3++; - span430[index3] = null; - index3++; - span430[index3] = null; - index3++; - span430[index3] = null; - index3++; - span430[index3] = null; + span197[2] = null; + span197[3] = null; + span197[4] = null; + span197[5] = null; obj266.RequiredQuestVariables = list430; reference333 = obj266; - num2++; - ref QuestStep reference335 = ref span425[num2]; + ref QuestStep reference335 = ref span194[4]; QuestStep obj267 = new QuestStep(EInteractionType.Interact, 2009122u, new Vector3(-286.09143f, -367.422f, 390.2494f), 613) { Fly = true }; - 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]; + 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]; num4 = 1; List list433 = new List(num4); CollectionsMarshal.SetCount(list433, num4); - Span span433 = CollectionsMarshal.AsSpan(list433); - num5 = 0; - span433[num5] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list433)[0] = new QuestWorkValue((byte)2, (byte)2, EQuestWorkMode.Bitwise); reference336 = list433; - num3++; - span432[num3] = null; - num3++; - span432[num3] = null; - num3++; - span432[num3] = null; - num3++; - span432[num3] = null; + span199[2] = null; + span199[3] = null; + span199[4] = null; + span199[5] = null; obj267.RequiredQuestVariables = list432; reference335 = obj267; - num2++; - ref QuestStep reference337 = ref span425[num2]; + ref QuestStep reference337 = ref span194[5]; QuestStep obj268 = new QuestStep(EInteractionType.Interact, 2009123u, new Vector3(-249.59192f, -325.948f, 472.70923f), 613) { Fly = true @@ -229036,32 +189753,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list434 = new List>(num3); CollectionsMarshal.SetCount(list434, num3); - 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); + 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); reference338 = list435; - index3++; - span434[index3] = null; - index3++; - span434[index3] = null; - index3++; - span434[index3] = null; - index3++; - span434[index3] = null; + span200[2] = null; + span200[3] = null; + span200[4] = null; + span200[5] = null; obj268.RequiredQuestVariables = list434; reference337 = obj268; obj263.Steps = list425; reference328 = obj263; - num++; - ref QuestSequence reference339 = ref span423[num]; + ref QuestSequence reference339 = ref span193[2]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue @@ -229069,15 +189777,13 @@ public static class AssemblyQuestLoader num2 = 2; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - Span span436 = CollectionsMarshal.AsSpan(list436); - index2 = 0; - span436[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + Span span201 = CollectionsMarshal.AsSpan(list436); + span201[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span436[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span201[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj269.Steps = list436; reference339 = obj269; questRoot38.QuestSequence = list423; @@ -229087,30 +189793,24 @@ public static class AssemblyQuestLoader num = 1; List list437 = new List(num); CollectionsMarshal.SetCount(list437, num); - Span span437 = CollectionsMarshal.AsSpan(list437); - index = 0; - span437[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list437)[0] = "plogon_enjoyer"; questRoot39.Author = list437; - index = 5; - List list438 = new List(index); - CollectionsMarshal.SetCount(list438, index); - Span span438 = CollectionsMarshal.AsSpan(list438); - num = 0; - ref QuestSequence reference340 = ref span438[num]; + num = 5; + List list438 = new List(num); + CollectionsMarshal.SetCount(list438, num); + Span span202 = CollectionsMarshal.AsSpan(list438); + ref QuestSequence reference340 = ref span202[0]; QuestSequence obj270 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj270.Steps = list439; reference340 = obj270; - num++; - ref QuestSequence reference341 = ref span438[num]; + ref QuestSequence reference341 = ref span202[1]; QuestSequence obj271 = new QuestSequence { Sequence = 1 @@ -229118,62 +189818,48 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - Span span440 = CollectionsMarshal.AsSpan(list440); - index2 = 0; - span440[index2] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) + CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) { Fly = true }; obj271.Steps = list440; reference341 = obj271; - num++; - ref QuestSequence reference342 = ref span438[num]; + ref QuestSequence reference342 = ref span202[2]; QuestSequence obj272 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list441 = new List(index2); - CollectionsMarshal.SetCount(list441, index2); - Span span441 = CollectionsMarshal.AsSpan(list441); - num2 = 0; - ref QuestStep reference343 = ref span441[num2]; + num2 = 5; + List list441 = new List(num2); + CollectionsMarshal.SetCount(list441, num2); + Span span203 = CollectionsMarshal.AsSpan(list441); + ref QuestStep reference343 = ref span203[0]; QuestStep obj273 = new QuestStep(EInteractionType.UseItem, 2009124u, new Vector3(753.56665f, 0.41192627f, 121.72119f), 613) { Fly = true, ItemId = 2002414u }; - 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]; + 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]; num4 = 3; List list443 = new List(num4); CollectionsMarshal.SetCount(list443, num4); - 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); + 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); reference344 = list443; - num3++; - span442[num3] = null; - num3++; - span442[num3] = null; + span204[4] = null; + span204[5] = null; obj273.RequiredQuestVariables = list442; reference343 = obj273; - num2++; - ref QuestStep reference345 = ref span441[num2]; + ref QuestStep reference345 = ref span203[1]; QuestStep obj274 = new QuestStep(EInteractionType.UseItem, 2009126u, new Vector3(745.41846f, 0.16778564f, 95.750244f), 613) { Fly = true, @@ -229182,64 +189868,46 @@ public static class AssemblyQuestLoader num3 = 6; List> list444 = new List>(num3); CollectionsMarshal.SetCount(list444, num3); - 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); + 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); reference346 = list445; - index3++; - span444[index3] = null; - index3++; - span444[index3] = null; + span206[4] = null; + span206[5] = null; obj274.RequiredQuestVariables = list444; reference345 = obj274; - num2++; - ref QuestStep reference347 = ref span441[num2]; + ref QuestStep reference347 = ref span203[2]; QuestStep obj275 = new QuestStep(EInteractionType.UseItem, 2009127u, new Vector3(745.44885f, 0.16778564f, 95.78088f), 613) { Fly = true, ItemId = 2002414u }; - 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]; + 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]; num4 = 2; List list447 = new List(num4); CollectionsMarshal.SetCount(list447, num4); - 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); + 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); reference348 = list447; - num3++; - span446[num3] = null; - num3++; - span446[num3] = null; + span207[4] = null; + span207[5] = null; obj275.RequiredQuestVariables = list446; reference347 = obj275; - num2++; - ref QuestStep reference349 = ref span441[num2]; + ref QuestStep reference349 = ref span203[3]; QuestStep obj276 = new QuestStep(EInteractionType.UseItem, 2009128u, new Vector3(777.1571f, 1.2054443f, 110.36853f), 613) { Fly = true, @@ -229248,66 +189916,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list448 = new List>(num3); CollectionsMarshal.SetCount(list448, num3); - 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); + 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); reference350 = list449; - index3++; - span448[index3] = null; - index3++; - span448[index3] = null; + span209[4] = null; + span209[5] = null; obj276.RequiredQuestVariables = list448; reference349 = obj276; - num2++; - ref QuestStep reference351 = ref span441[num2]; + ref QuestStep reference351 = ref span203[4]; QuestStep obj277 = new QuestStep(EInteractionType.UseItem, 2009227u, new Vector3(777.1876f, 1.2359009f, 110.36853f), 613) { Fly = true, ItemId = 2002414u }; - 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]; + 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]; num4 = 1; List list451 = new List(num4); CollectionsMarshal.SetCount(list451, num4); - Span span451 = CollectionsMarshal.AsSpan(list451); - num5 = 0; - span451[num5] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list451)[0] = new QuestWorkValue((byte)1, (byte)4, EQuestWorkMode.Bitwise); reference352 = list451; - num3++; - span450[num3] = null; - num3++; - span450[num3] = null; + span211[4] = null; + span211[5] = null; obj277.RequiredQuestVariables = list450; reference351 = obj277; obj272.Steps = list441; reference342 = obj272; - num++; - ref QuestSequence reference353 = ref span438[num]; + ref QuestSequence reference353 = ref span202[3]; QuestSequence obj278 = new QuestSequence { Sequence = 3 @@ -229315,31 +189965,26 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - Span span452 = CollectionsMarshal.AsSpan(list452); - index2 = 0; - span452[index2] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) + CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.Interact, 1024316u, new Vector3(714.9614f, -0.3f, 140.3982f), 613) { Fly = true }; obj278.Steps = list452; reference353 = obj278; - num++; - ref QuestSequence reference354 = ref span438[num]; + ref QuestSequence reference354 = ref span202[4]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span453[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span212[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj279.Steps = list453; reference354 = obj279; questRoot39.QuestSequence = list438; @@ -229349,16 +189994,13 @@ public static class AssemblyQuestLoader num = 1; List list454 = new List(num); CollectionsMarshal.SetCount(list454, num); - Span span454 = CollectionsMarshal.AsSpan(list454); - index = 0; - span454[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list454)[0] = "plogon_enjoyer"; questRoot40.Author = list454; - index = 3; - List list455 = new List(index); - CollectionsMarshal.SetCount(list455, index); - Span span455 = CollectionsMarshal.AsSpan(list455); - num = 0; - ref QuestSequence reference355 = ref span455[num]; + num = 3; + List list455 = new List(num); + CollectionsMarshal.SetCount(list455, num); + Span span213 = CollectionsMarshal.AsSpan(list455); + ref QuestSequence reference355 = ref span213[0]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -229366,87 +190008,64 @@ public static class AssemblyQuestLoader num2 = 1; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span456 = CollectionsMarshal.AsSpan(list456); - index2 = 0; - span456[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj280.Steps = list456; reference355 = obj280; - num++; - ref QuestSequence reference356 = ref span455[num]; + ref QuestSequence reference356 = ref span213[1]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list457 = new List(index2); - CollectionsMarshal.SetCount(list457, index2); - Span span457 = CollectionsMarshal.AsSpan(list457); - num2 = 0; - ref QuestStep reference357 = ref span457[num2]; + num2 = 6; + List list457 = new List(num2); + CollectionsMarshal.SetCount(list457, num2); + Span span214 = CollectionsMarshal.AsSpan(list457); + ref QuestStep reference357 = ref span214[0]; 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> 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); + 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); reference358 = list459; - index3++; - span458[index3] = null; - index3++; - span458[index3] = null; - index3++; - span458[index3] = null; - index3++; - span458[index3] = null; + span215[2] = null; + span215[3] = null; + span215[4] = null; + span215[5] = null; questStep3.RequiredQuestVariables = list458; reference357 = questStep3; - num2++; - ref QuestStep reference359 = ref span457[num2]; + ref QuestStep reference359 = ref span214[1]; QuestStep obj282 = new QuestStep(EInteractionType.Interact, 2009130u, new Vector3(14.572327f, -0.07635498f, -352.86487f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - 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]; + 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]; num4 = 3; List list461 = new List(num4); CollectionsMarshal.SetCount(list461, num4); - 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); + 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); reference360 = list461; - num3++; - span460[num3] = null; - num3++; - span460[num3] = null; - num3++; - span460[num3] = null; - num3++; - span460[num3] = null; + span216[2] = null; + span216[3] = null; + span216[4] = null; + span216[5] = null; obj282.RequiredQuestVariables = list460; reference359 = obj282; - num2++; - ref QuestStep reference361 = ref span457[num2]; + ref QuestStep reference361 = ref span214[2]; QuestStep obj283 = new QuestStep(EInteractionType.Interact, 2009131u, new Vector3(90.13501f, -0.045776367f, 177.50818f), 613) { Fly = true @@ -229454,65 +190073,47 @@ public static class AssemblyQuestLoader num3 = 6; List> list462 = new List>(num3); CollectionsMarshal.SetCount(list462, num3); - 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); + 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); reference362 = list463; - index3++; - span462[index3] = null; - index3++; - span462[index3] = null; - index3++; - span462[index3] = null; - index3++; - span462[index3] = null; + span218[2] = null; + span218[3] = null; + span218[4] = null; + span218[5] = null; obj283.RequiredQuestVariables = list462; reference361 = obj283; - num2++; - ref QuestStep reference363 = ref span457[num2]; + ref QuestStep reference363 = ref span214[3]; QuestStep obj284 = new QuestStep(EInteractionType.Interact, 2009132u, new Vector3(-48.69159f, -0.045776367f, -312.1844f), 613) { Fly = true }; - 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]; + 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]; num4 = 2; List list465 = new List(num4); CollectionsMarshal.SetCount(list465, num4); - 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); + 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); reference364 = list465; - num3++; - span464[num3] = null; - num3++; - span464[num3] = null; - num3++; - span464[num3] = null; - num3++; - span464[num3] = null; + span220[2] = null; + span220[3] = null; + span220[4] = null; + span220[5] = null; obj284.RequiredQuestVariables = list464; reference363 = obj284; - num2++; - ref QuestStep reference365 = ref span457[num2]; + ref QuestStep reference365 = ref span214[4]; QuestStep obj285 = new QuestStep(EInteractionType.Interact, 2009133u, new Vector3(23.941406f, -0.19836426f, 192.70618f), 613) { Fly = true @@ -229520,67 +190121,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list466 = new List>(num3); CollectionsMarshal.SetCount(list466, num3); - 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); + 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); reference366 = list467; - index3++; - span466[index3] = null; - index3++; - span466[index3] = null; - index3++; - span466[index3] = null; - index3++; - span466[index3] = null; + span222[2] = null; + span222[3] = null; + span222[4] = null; + span222[5] = null; obj285.RequiredQuestVariables = list466; reference365 = obj285; - num2++; - ref QuestStep reference367 = ref span457[num2]; + ref QuestStep reference367 = ref span214[5]; QuestStep obj286 = new QuestStep(EInteractionType.Interact, 2009134u, new Vector3(284.99268f, -0.19836426f, -28.000305f), 613) { Fly = true }; - 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]; + 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]; num4 = 3; List list469 = new List(num4); CollectionsMarshal.SetCount(list469, num4); - 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); + 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); reference368 = list469; - num3++; - span468[num3] = null; - num3++; - span468[num3] = null; - num3++; - span468[num3] = null; - num3++; - span468[num3] = null; + span223[2] = null; + span223[3] = null; + span223[4] = null; + span223[5] = null; obj286.RequiredQuestVariables = list468; reference367 = obj286; obj281.Steps = list457; reference356 = obj281; - num++; - ref QuestSequence reference369 = ref span455[num]; + ref QuestSequence reference369 = ref span213[2]; QuestSequence obj287 = new QuestSequence { Sequence = byte.MaxValue @@ -229588,15 +190170,13 @@ public static class AssemblyQuestLoader num2 = 2; List list470 = new List(num2); CollectionsMarshal.SetCount(list470, num2); - Span span470 = CollectionsMarshal.AsSpan(list470); - index2 = 0; - span470[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + Span span225 = CollectionsMarshal.AsSpan(list470); + span225[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span470[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span225[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj287.Steps = list470; reference369 = obj287; questRoot40.QuestSequence = list455; @@ -229606,30 +190186,24 @@ public static class AssemblyQuestLoader num = 1; List list471 = new List(num); CollectionsMarshal.SetCount(list471, num); - Span span471 = CollectionsMarshal.AsSpan(list471); - index = 0; - span471[index] = "Theo"; + CollectionsMarshal.AsSpan(list471)[0] = "Theo"; questRoot41.Author = list471; - index = 3; - List list472 = new List(index); - CollectionsMarshal.SetCount(list472, index); - Span span472 = CollectionsMarshal.AsSpan(list472); - num = 0; - ref QuestSequence reference370 = ref span472[num]; + num = 3; + List list472 = new List(num); + CollectionsMarshal.SetCount(list472, num); + Span span226 = CollectionsMarshal.AsSpan(list472); + ref QuestSequence reference370 = ref span226[0]; QuestSequence obj288 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj288.Steps = list473; reference370 = obj288; - num++; - ref QuestSequence reference371 = ref span472[num]; + ref QuestSequence reference371 = ref span226[1]; QuestSequence obj289 = new QuestSequence { Sequence = 1 @@ -229637,15 +190211,13 @@ public static class AssemblyQuestLoader num2 = 5; List list474 = new List(num2); CollectionsMarshal.SetCount(list474, num2); - Span span474 = CollectionsMarshal.AsSpan(list474); - index2 = 0; - span474[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) + Span span227 = CollectionsMarshal.AsSpan(list474); + span227[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(318.06195f, -83.027016f, -226.5931f), 613) { Fly = true, RestartNavigationIfCancelled = false }; - index2++; - ref QuestStep reference372 = ref span474[index2]; + ref QuestStep reference372 = ref span227[1]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 2009135u, new Vector3(-77.74481f, -180.6211f, 33.157837f), 613) { Fly = true @@ -229653,61 +190225,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list475 = new List>(num3); CollectionsMarshal.SetCount(list475, num3); - 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); + 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); reference373 = list476; - index3++; - span475[index3] = null; - index3++; - span475[index3] = null; + span228[4] = null; + span228[5] = null; obj290.RequiredQuestVariables = list475; reference372 = obj290; - index2++; - ref QuestStep reference374 = ref span474[index2]; + ref QuestStep reference374 = ref span227[2]; QuestStep obj291 = new QuestStep(EInteractionType.Interact, 2009136u, new Vector3(-150.10309f, -167.01001f, 87.60205f), 613) { Fly = true }; - 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]; + 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]; num4 = 1; List list478 = new List(num4); CollectionsMarshal.SetCount(list478, num4); - Span span478 = CollectionsMarshal.AsSpan(list478); - num5 = 0; - span478[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list478)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference375 = list478; - num3++; - span477[num3] = null; - num3++; - span477[num3] = null; + span229[4] = null; + span229[5] = null; obj291.RequiredQuestVariables = list477; reference374 = obj291; - index2++; - ref QuestStep reference376 = ref span474[index2]; + ref QuestStep reference376 = ref span227[3]; QuestStep obj292 = new QuestStep(EInteractionType.Interact, 2009137u, new Vector3(-141.68011f, -149.34009f, -214.64868f), 613) { Fly = true @@ -229715,79 +190269,59 @@ public static class AssemblyQuestLoader num3 = 6; List> list479 = new List>(num3); CollectionsMarshal.SetCount(list479, num3); - 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); + 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); reference377 = list480; - index3++; - span479[index3] = null; - index3++; - span479[index3] = null; + span230[4] = null; + span230[5] = null; obj292.RequiredQuestVariables = list479; reference376 = obj292; - index2++; - ref QuestStep reference378 = ref span474[index2]; + ref QuestStep reference378 = ref span227[4]; QuestStep obj293 = new QuestStep(EInteractionType.Interact, 2009139u, new Vector3(-131.7312f, -191.97375f, -6.1189575f), 613) { Fly = true }; - 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]; + 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]; num4 = 1; List list482 = new List(num4); CollectionsMarshal.SetCount(list482, num4); - Span span482 = CollectionsMarshal.AsSpan(list482); - num5 = 0; - span482[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list482)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference379 = list482; - num3++; - span481[num3] = null; - num3++; - span481[num3] = null; + span231[4] = null; + span231[5] = null; obj293.RequiredQuestVariables = list481; reference378 = obj293; obj289.Steps = list474; reference371 = obj289; - num++; - ref QuestSequence reference380 = ref span472[num]; + ref QuestSequence reference380 = ref span226[2]; QuestSequence obj294 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span483[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span232[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj294.Steps = list483; reference380 = obj294; questRoot41.QuestSequence = list472; @@ -229797,16 +190331,13 @@ public static class AssemblyQuestLoader num = 1; List list484 = new List(num); CollectionsMarshal.SetCount(list484, num); - Span span484 = CollectionsMarshal.AsSpan(list484); - index = 0; - span484[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list484)[0] = "plogon_enjoyer"; questRoot42.Author = list484; - index = 4; - List list485 = new List(index); - CollectionsMarshal.SetCount(list485, index); - Span span485 = CollectionsMarshal.AsSpan(list485); - num = 0; - ref QuestSequence reference381 = ref span485[num]; + num = 4; + List list485 = new List(num); + CollectionsMarshal.SetCount(list485, num); + Span span233 = CollectionsMarshal.AsSpan(list485); + ref QuestSequence reference381 = ref span233[0]; QuestSequence obj295 = new QuestSequence { Sequence = 0 @@ -229814,23 +190345,19 @@ public static class AssemblyQuestLoader num2 = 1; List list486 = new List(num2); CollectionsMarshal.SetCount(list486, num2); - Span span486 = CollectionsMarshal.AsSpan(list486); - index2 = 0; - span486[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list486)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj295.Steps = list486; reference381 = obj295; - num++; - ref QuestSequence reference382 = ref span485[num]; + ref QuestSequence reference382 = ref span233[1]; QuestSequence obj296 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -229839,8 +190366,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num2++; - ref QuestStep reference383 = ref span487[num2]; + ref QuestStep reference383 = ref span234[1]; QuestStep obj297 = new QuestStep(EInteractionType.Combat, 2009100u, new Vector3(394.7661f, 16.983276f, 845.9448f), 613) { Fly = true, @@ -229850,43 +190376,30 @@ public static class AssemblyQuestLoader num3 = 1; List list488 = new List(num3); CollectionsMarshal.SetCount(list488, num3); - Span span488 = CollectionsMarshal.AsSpan(list488); - index3 = 0; - span488[index3] = 8242u; + CollectionsMarshal.AsSpan(list488)[0] = 8242u; obj297.KillEnemyDataIds = list488; - 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); + 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); reference384 = list490; - num3++; - span489[num3] = null; + span235[5] = null; obj297.RequiredQuestVariables = list489; reference383 = obj297; - num2++; - ref QuestStep reference385 = ref span487[num2]; + ref QuestStep reference385 = ref span234[2]; QuestStep obj298 = new QuestStep(EInteractionType.Combat, 2009101u, new Vector3(460.99023f, 0.56451416f, 889.494f), 613) { Fly = true, @@ -229896,41 +190409,29 @@ public static class AssemblyQuestLoader num3 = 1; List list491 = new List(num3); CollectionsMarshal.SetCount(list491, num3); - Span span491 = CollectionsMarshal.AsSpan(list491); - index3 = 0; - span491[index3] = 8242u; + CollectionsMarshal.AsSpan(list491)[0] = 8242u; obj298.KillEnemyDataIds = list491; - 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]; + 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]; num4 = 3; List list493 = new List(num4); CollectionsMarshal.SetCount(list493, num4); - 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); + 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); reference386 = list493; - num3++; - span492[num3] = null; + span237[5] = null; obj298.RequiredQuestVariables = list492; reference385 = obj298; - num2++; - ref QuestStep reference387 = ref span487[num2]; + ref QuestStep reference387 = ref span234[3]; QuestStep obj299 = new QuestStep(EInteractionType.Combat, 2009142u, new Vector3(480.4607f, 3.829956f, 841.3672f), 613) { Fly = true, @@ -229940,43 +190441,30 @@ public static class AssemblyQuestLoader num3 = 1; List list494 = new List(num3); CollectionsMarshal.SetCount(list494, num3); - Span span494 = CollectionsMarshal.AsSpan(list494); - index3 = 0; - span494[index3] = 8242u; + CollectionsMarshal.AsSpan(list494)[0] = 8242u; obj299.KillEnemyDataIds = list494; - 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); + 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); reference388 = list496; - num3++; - span495[num3] = null; + span239[5] = null; obj299.RequiredQuestVariables = list495; reference387 = obj299; - num2++; - ref QuestStep reference389 = ref span487[num2]; + ref QuestStep reference389 = ref span234[4]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 2009140u, new Vector3(543.1753f, -0.015319824f, 685.7251f), 613) { Fly = true, @@ -229986,41 +190474,30 @@ public static class AssemblyQuestLoader num3 = 2; List list497 = new List(num3); CollectionsMarshal.SetCount(list497, num3); - Span span497 = CollectionsMarshal.AsSpan(list497); - index3 = 0; - span497[index3] = 8243u; - index3++; - span497[index3] = 8243u; + Span span241 = CollectionsMarshal.AsSpan(list497); + span241[0] = 8243u; + span241[1] = 8243u; obj300.KillEnemyDataIds = list497; - 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]; + 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]; num4 = 2; List list499 = new List(num4); CollectionsMarshal.SetCount(list499, num4); - 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); + Span span243 = CollectionsMarshal.AsSpan(list499); + span243[0] = new QuestWorkValue((byte)6, 0, EQuestWorkMode.Bitwise); + span243[1] = new QuestWorkValue((byte)7, 0, EQuestWorkMode.Bitwise); reference390 = list499; - num3++; - span498[num3] = null; + span242[5] = null; obj300.RequiredQuestVariables = list498; reference389 = obj300; - num2++; - ref QuestStep reference391 = ref span487[num2]; + ref QuestStep reference391 = ref span234[5]; QuestStep obj301 = new QuestStep(EInteractionType.Combat, 2009141u, new Vector3(352.1018f, -0.015319824f, 860.31885f), 613) { Fly = true, @@ -230030,45 +190507,33 @@ public static class AssemblyQuestLoader num3 = 2; List list500 = new List(num3); CollectionsMarshal.SetCount(list500, num3); - Span span500 = CollectionsMarshal.AsSpan(list500); - index3 = 0; - span500[index3] = 8243u; - index3++; - span500[index3] = 8243u; + Span span244 = CollectionsMarshal.AsSpan(list500); + span244[0] = 8243u; + span244[1] = 8243u; obj301.KillEnemyDataIds = list500; - 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); + 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); reference392 = list502; - num3++; - span501[num3] = null; + span245[5] = null; obj301.RequiredQuestVariables = list501; reference391 = obj301; obj296.Steps = list487; reference382 = obj296; - num++; - ref QuestSequence reference393 = ref span485[num]; + ref QuestSequence reference393 = ref span233[2]; QuestSequence obj302 = new QuestSequence { Sequence = 2 @@ -230076,32 +190541,27 @@ public static class AssemblyQuestLoader num2 = 1; List list503 = new List(num2); CollectionsMarshal.SetCount(list503, num2); - Span span503 = CollectionsMarshal.AsSpan(list503); - index2 = 0; - span503[index2] = new QuestStep(EInteractionType.Interact, 1024317u, new Vector3(823.3004f, 5.9230013f, 866.6361f), 613) + CollectionsMarshal.AsSpan(list503)[0] = new QuestStep(EInteractionType.Interact, 1024317u, new Vector3(823.3004f, 5.9230013f, 866.6361f), 613) { Fly = true }; obj302.Steps = list503; reference393 = obj302; - num++; - ref QuestSequence reference394 = ref span485[num]; + ref QuestSequence reference394 = ref span233[3]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span504[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span247[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj303.Steps = list504; reference394 = obj303; questRoot42.QuestSequence = list485; @@ -230111,16 +190571,13 @@ public static class AssemblyQuestLoader num = 1; List list505 = new List(num); CollectionsMarshal.SetCount(list505, num); - Span span505 = CollectionsMarshal.AsSpan(list505); - index = 0; - span505[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list505)[0] = "plogon_enjoyer"; questRoot43.Author = list505; - index = 3; - List list506 = new List(index); - CollectionsMarshal.SetCount(list506, index); - Span span506 = CollectionsMarshal.AsSpan(list506); - num = 0; - ref QuestSequence reference395 = ref span506[num]; + num = 3; + List list506 = new List(num); + CollectionsMarshal.SetCount(list506, num); + Span span248 = CollectionsMarshal.AsSpan(list506); + ref QuestSequence reference395 = ref span248[0]; QuestSequence obj304 = new QuestSequence { Sequence = 0 @@ -230128,42 +190585,35 @@ public static class AssemblyQuestLoader num2 = 1; List list507 = new List(num2); CollectionsMarshal.SetCount(list507, num2); - Span span507 = CollectionsMarshal.AsSpan(list507); - index2 = 0; - span507[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list507)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj304.Steps = list507; reference395 = obj304; - num++; - ref QuestSequence reference396 = ref span506[num]; + ref QuestSequence reference396 = ref span248[1]; QuestSequence obj305 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - num2++; - span508[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-848.8846f, 36.0507f, 300.73306f), 613) + span249[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-848.8846f, 36.0507f, 300.73306f), 613) { Fly = true, ItemId = 2002422u, GroundTarget = true }; - num2++; - span508[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-842.2923f, 36.053864f, 319.94763f), 613) + span249[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-842.2923f, 36.053864f, 319.94763f), 613) { Fly = true, ItemId = 2002422u, GroundTarget = true }; - num2++; - span508[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-873.57074f, 36.01944f, 318.8049f), 613) + span249[3] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-873.57074f, 36.01944f, 318.8049f), 613) { Fly = true, ItemId = 2002422u, @@ -230171,8 +190621,7 @@ public static class AssemblyQuestLoader }; obj305.Steps = list508; reference396 = obj305; - num++; - ref QuestSequence reference397 = ref span506[num]; + ref QuestSequence reference397 = ref span248[2]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -230180,15 +190629,13 @@ public static class AssemblyQuestLoader num2 = 2; List list509 = new List(num2); CollectionsMarshal.SetCount(list509, num2); - Span span509 = CollectionsMarshal.AsSpan(list509); - index2 = 0; - span509[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) + Span span250 = CollectionsMarshal.AsSpan(list509); + span250[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(391.50903f, -119.58932f, -236.18898f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span509[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span250[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj306.Steps = list509; reference397 = obj306; questRoot43.QuestSequence = list506; @@ -230202,16 +190649,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -230219,29 +190663,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, RestartNavigationIfCancelled = false }; - num2++; - ref QuestStep reference3 = ref span4[num2]; + ref QuestStep reference3 = ref span2[1]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2009216u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true @@ -230249,61 +190688,43 @@ public static class AssemblyQuestLoader int num3 = 6; List> list5 = new List>(num3); CollectionsMarshal.SetCount(list5, num3); - 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); + 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); reference4 = list6; - num4++; - span5[num4] = null; - num4++; - span5[num4] = null; - num4++; - span5[num4] = null; + span3[3] = null; + span3[4] = null; + span3[5] = null; obj3.RequiredQuestVariables = list5; reference3 = obj3; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2009217u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true }; - 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); + 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); reference6 = list8; - num3++; - span7[num3] = null; - num3++; - span7[num3] = null; - num3++; - span7[num3] = null; + span4[3] = null; + span4[4] = null; + span4[5] = null; obj4.RequiredQuestVariables = list7; reference5 = obj4; - num2++; - ref QuestStep reference7 = ref span4[num2]; + ref QuestStep reference7 = ref span2[3]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2009218u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true @@ -230311,61 +190732,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list9 = new List>(num3); CollectionsMarshal.SetCount(list9, num3); - 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); + 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); reference8 = list10; - num4++; - span9[num4] = null; - num4++; - span9[num4] = null; - num4++; - span9[num4] = null; + span5[3] = null; + span5[4] = null; + span5[5] = null; obj5.RequiredQuestVariables = list9; reference7 = obj5; - num2++; - ref QuestStep reference9 = ref span4[num2]; + ref QuestStep reference9 = ref span2[4]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 2009146u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true }; - 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); + 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); reference10 = list12; - num3++; - span11[num3] = null; - num3++; - span11[num3] = null; - num3++; - span11[num3] = null; + span6[3] = null; + span6[4] = null; + span6[5] = null; obj6.RequiredQuestVariables = list11; reference9 = obj6; - num2++; - ref QuestStep reference11 = ref span4[num2]; + ref QuestStep reference11 = ref span2[5]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 2009147u, new Vector3(-154.40613f, -179.3393f, 187.97583f), 613) { Fly = true @@ -230373,61 +190776,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list13 = new List>(num3); CollectionsMarshal.SetCount(list13, num3); - 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); + 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); reference12 = list14; - num4++; - span13[num4] = null; - num4++; - span13[num4] = null; - num4++; - span13[num4] = null; + span7[3] = null; + span7[4] = null; + span7[5] = null; obj7.RequiredQuestVariables = list13; reference11 = obj7; - num2++; - ref QuestStep reference13 = ref span4[num2]; + ref QuestStep reference13 = ref span2[6]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2009148u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true }; - 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); + 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); reference14 = list16; - num3++; - span15[num3] = null; - num3++; - span15[num3] = null; - num3++; - span15[num3] = null; + span8[3] = null; + span8[4] = null; + span8[5] = null; obj8.RequiredQuestVariables = list15; reference13 = obj8; - num2++; - ref QuestStep reference15 = ref span4[num2]; + ref QuestStep reference15 = ref span2[7]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2009149u, new Vector3(-245.80762f, -194.50684f, 219.98926f), 613) { Fly = true @@ -230435,61 +190820,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list17 = new List>(num3); CollectionsMarshal.SetCount(list17, num3); - 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); + 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); reference16 = list18; - num4++; - span17[num4] = null; - num4++; - span17[num4] = null; - num4++; - span17[num4] = null; + span9[3] = null; + span9[4] = null; + span9[5] = null; obj9.RequiredQuestVariables = list17; reference15 = obj9; - num2++; - ref QuestStep reference17 = ref span4[num2]; + ref QuestStep reference17 = ref span2[8]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2009150u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true }; - 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); + 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); reference18 = list20; - num3++; - span19[num3] = null; - num3++; - span19[num3] = null; - num3++; - span19[num3] = null; + span10[3] = null; + span10[4] = null; + span10[5] = null; obj10.RequiredQuestVariables = list19; reference17 = obj10; - num2++; - ref QuestStep reference19 = ref span4[num2]; + ref QuestStep reference19 = ref span2[9]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 2009151u, new Vector3(-162.8291f, -192.52313f, 255.6344f), 613) { Fly = true @@ -230497,32 +190864,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list21 = new List>(num3); CollectionsMarshal.SetCount(list21, num3); - 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); + 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); reference20 = list22; - num4++; - span21[num4] = null; - num4++; - span21[num4] = null; - num4++; - span21[num4] = null; + span11[3] = null; + span11[4] = null; + span11[5] = null; obj11.RequiredQuestVariables = list21; reference19 = obj11; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference21 = ref span2[num]; + ref QuestSequence reference21 = ref span[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -230530,15 +190888,13 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + Span span12 = CollectionsMarshal.AsSpan(list23); + span12[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj12.Steps = list23; reference21 = obj12; questRoot.QuestSequence = list2; @@ -230548,30 +190904,24 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list24)[0] = "plogon_enjoyer"; questRoot2.Author = list24; - index = 3; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference22 = ref span25[num]; + num = 3; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span13 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference22 = ref span13[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj13.Steps = list26; reference22 = obj13; - num++; - ref QuestSequence reference23 = ref span25[num]; + ref QuestSequence reference23 = ref span13[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -230579,83 +190929,61 @@ public static class AssemblyQuestLoader num2 = 7; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.None, null, null, 613) + Span span14 = CollectionsMarshal.AsSpan(list27); + span14[0] = new QuestStep(EInteractionType.None, null, null, 613) { AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - index2++; - ref QuestStep reference24 = ref span27[index2]; + ref QuestStep reference24 = ref span14[1]; QuestStep obj15 = new QuestStep(EInteractionType.Combat, null, new Vector3(-727.74854f, 4.2885633f, 188.58618f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + Span span15 = CollectionsMarshal.AsSpan(list28); + span15[0] = 8245u; + span15[1] = 8246u; obj15.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++; - 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); + 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); reference25 = list30; - num4++; - span29[num4] = null; - num4++; - span29[num4] = null; - num4++; - span29[num4] = null; + span16[3] = null; + span16[4] = null; + span16[5] = null; obj15.RequiredQuestVariables = list29; reference24 = obj15; - index2++; - ref QuestStep reference26 = ref span27[index2]; + ref QuestStep reference26 = ref span14[2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1024320u, new Vector3(-727.74854f, 4.2885633f, 188.58618f), 613); - 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); + 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); reference27 = list32; - num3++; - span31[num3] = null; - num3++; - span31[num3] = null; - num3++; - span31[num3] = null; + span17[3] = null; + span17[4] = null; + span17[5] = null; questStep.RequiredQuestVariables = list31; reference26 = questStep; - index2++; - ref QuestStep reference28 = ref span27[index2]; + ref QuestStep reference28 = ref span14[3]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, null, new Vector3(-869.9321f, 36.052956f, 280.29297f), 613) { Fly = true, @@ -230664,156 +190992,113 @@ public static class AssemblyQuestLoader num3 = 3; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span33 = CollectionsMarshal.AsSpan(list33); - num4 = 0; - span33[num4] = 8247u; - num4++; - span33[num4] = 8248u; - num4++; - span33[num4] = 8249u; + Span span18 = CollectionsMarshal.AsSpan(list33); + span18[0] = 8247u; + span18[1] = 8248u; + span18[2] = 8249u; obj16.KillEnemyDataIds = list33; - 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); + 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); reference29 = list35; - num3++; - span34[num3] = null; - num3++; - span34[num3] = null; - num3++; - span34[num3] = null; + span19[3] = null; + span19[4] = null; + span19[5] = null; obj16.RequiredQuestVariables = list34; reference28 = obj16; - index2++; - ref QuestStep reference30 = ref span27[index2]; + ref QuestStep reference30 = ref span14[4]; 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> 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); + 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); reference31 = list37; - num4++; - span36[num4] = null; - num4++; - span36[num4] = null; - num4++; - span36[num4] = null; + span20[3] = null; + span20[4] = null; + span20[5] = null; questStep2.RequiredQuestVariables = list36; reference30 = questStep2; - index2++; - ref QuestStep reference32 = ref span27[index2]; + ref QuestStep reference32 = ref span14[5]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(-607.43207f, 7.033699f, 184.71848f), 613) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + Span span21 = CollectionsMarshal.AsSpan(list38); + span21[0] = 8244u; + span21[1] = 8246u; obj17.KillEnemyDataIds = list38; num3 = 6; List> list39 = new List>(num3); CollectionsMarshal.SetCount(list39, num3); - 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); + 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); reference33 = list40; - num4++; - span39[num4] = null; - num4++; - span39[num4] = null; - num4++; - span39[num4] = null; + span22[3] = null; + span22[4] = null; + span22[5] = null; obj17.RequiredQuestVariables = list39; reference32 = obj17; - index2++; - ref QuestStep reference34 = ref span27[index2]; + ref QuestStep reference34 = ref span14[6]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1024318u, new Vector3(-607.7821f, 7.029549f, 184.83252f), 613); - 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); + 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); reference35 = list42; - num3++; - span41[num3] = null; - num3++; - span41[num3] = null; - num3++; - span41[num3] = null; + span23[3] = null; + span23[4] = null; + span23[5] = null; questStep3.RequiredQuestVariables = list41; reference34 = questStep3; obj14.Steps = list27; reference23 = obj14; - num++; - ref QuestSequence reference36 = ref span25[num]; + ref QuestSequence reference36 = ref span13[2]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - num2++; - span43[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj18.Steps = list43; reference36 = obj18; questRoot2.QuestSequence = list25; @@ -230823,16 +191108,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "pot0to"; + CollectionsMarshal.AsSpan(list44)[0] = "pot0to"; questRoot3.Author = list44; - index = 3; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference37 = ref span45[num]; + num = 3; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span25 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference37 = ref span25[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -230840,23 +191122,19 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj19.Steps = list46; reference37 = obj19; - num++; - ref QuestSequence reference38 = ref span45[num]; + ref QuestSequence reference38 = ref span25[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list47 = new List(index2); - CollectionsMarshal.SetCount(list47, index2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num2 = 0; - ref QuestStep reference39 = ref span47[num2]; + num2 = 5; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + Span span26 = CollectionsMarshal.AsSpan(list47); + ref QuestStep reference39 = ref span26[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(429.41656f, -0.5f, 506.90598f), 613) { Fly = true, @@ -230865,76 +191143,49 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num4 = 0; - span48[num4] = 8250u; + CollectionsMarshal.AsSpan(list48)[0] = 8250u; obj21.KillEnemyDataIds = list48; obj21.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - 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); + 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); reference40 = list50; - num3++; - span49[num3] = null; - num3++; - span49[num3] = null; + span27[4] = null; + span27[5] = null; obj21.RequiredQuestVariables = list49; reference39 = obj21; - num2++; - ref QuestStep reference41 = ref span47[num2]; + ref QuestStep reference41 = ref span26[1]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(253.2539f, -0.5f, 479.6062f), 613) { Fly = true, @@ -230943,76 +191194,49 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num4 = 0; - span51[num4] = 8250u; + CollectionsMarshal.AsSpan(list51)[0] = 8250u; obj22.KillEnemyDataIds = list51; obj22.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - 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); + 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); reference42 = list53; - num3++; - span52[num3] = null; - num3++; - span52[num3] = null; + span29[4] = null; + span29[5] = null; obj22.RequiredQuestVariables = list52; reference41 = obj22; - num2++; - ref QuestStep reference43 = ref span47[num2]; + ref QuestStep reference43 = ref span26[2]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 8250u, new Vector3(94.01074f, -0.5f, 491.844f), 613) { Fly = true, @@ -231021,76 +191245,49 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = 8250u; + CollectionsMarshal.AsSpan(list54)[0] = 8250u; obj23.KillEnemyDataIds = list54; obj23.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - 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); + 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); reference44 = list56; - num3++; - span55[num3] = null; - num3++; - span55[num3] = null; + span31[4] = null; + span31[5] = null; obj23.RequiredQuestVariables = list55; reference43 = obj23; - num2++; - ref QuestStep reference45 = ref span47[num2]; + ref QuestStep reference45 = ref span26[3]; QuestStep obj24 = new QuestStep(EInteractionType.Combat, null, new Vector3(-192.0653f, -0.5f, 628.25964f), 613) { Fly = true, @@ -231099,76 +191296,49 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = 8250u; + CollectionsMarshal.AsSpan(list57)[0] = 8250u; obj24.KillEnemyDataIds = list57; obj24.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - 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); + 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); reference46 = list59; - num3++; - span58[num3] = null; - num3++; - span58[num3] = null; + span33[4] = null; + span33[5] = null; obj24.RequiredQuestVariables = list58; reference45 = obj24; - num2++; - ref QuestStep reference47 = ref span47[num2]; + ref QuestStep reference47 = ref span26[4]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, null, new Vector3(-370.41278f, -0.5f, 863.64526f), 613) { Fly = true, @@ -231177,78 +191347,51 @@ public static class AssemblyQuestLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span60 = CollectionsMarshal.AsSpan(list60); - num4 = 0; - span60[num4] = 8250u; + CollectionsMarshal.AsSpan(list60)[0] = 8250u; obj25.KillEnemyDataIds = list60; obj25.CombatItemUse = new CombatItemUse { ItemId = 2002424u, Condition = ECombatItemUseCondition.Incapacitated }; - 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); + 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); reference48 = list62; - num3++; - span61[num3] = null; - num3++; - span61[num3] = null; + span35[4] = null; + span35[5] = null; obj25.RequiredQuestVariables = list61; reference47 = obj25; obj20.Steps = list47; reference38 = obj20; - num++; - ref QuestSequence reference49 = ref span45[num]; + ref QuestSequence reference49 = ref span25[2]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -231256,15 +191399,13 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) + Span span37 = CollectionsMarshal.AsSpan(list63); + span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.55026f, -119.58932f, -234.19606f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; - index2++; - span63[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); + span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1024217u, new Vector3(394.39978f, -119.58932f, -232.28815f), 613); obj26.Steps = list63; reference49 = obj26; questRoot3.QuestSequence = list45; @@ -231274,26 +191415,21 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot4.Author = list64; - index = 5; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference50 = ref span65[num]; + num = 5; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span38 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference50 = ref span38[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -231311,8 +191447,7 @@ public static class AssemblyQuestLoader }; obj27.Steps = list66; reference50 = obj27; - num++; - ref QuestSequence reference51 = ref span65[num]; + ref QuestSequence reference51 = ref span38[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -231320,27 +191455,21 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1024140u, new Vector3(-40.665344f, 15.000004f, 42.22168f), 628); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1024140u, new Vector3(-40.665344f, 15.000004f, 42.22168f), 628); obj28.Steps = list67; reference51 = obj28; - num++; - ref QuestSequence reference52 = ref span65[num]; + ref QuestSequence reference52 = ref span38[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj29.Steps = list68; reference52 = obj29; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span38[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -231348,23 +191477,18 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1024160u, new Vector3(-11.581665f, 0.04687078f, -3.7385254f), 735); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1024160u, new Vector3(-11.581665f, 0.04687078f, -3.7385254f), 735); obj30.Steps = list69; reference53 = obj30; - num++; - ref QuestSequence reference54 = ref span65[num]; + ref QuestSequence reference54 = ref span38[4]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3004) }; @@ -231377,16 +191501,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot5.Author = list71; - index = 6; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference55 = ref span72[num]; + num = 6; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span39 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference55 = ref span39[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -231394,28 +191515,22 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736); + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024142u, new Vector3(-15.365906f, -1.1998292f, -4.837158f), 736); obj32.Steps = list73; reference55 = obj32; - num++; - span72[num] = new QuestSequence + span39[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span39[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Duty, null, null, 736) { DutyOptions = new DutyOptions { @@ -231424,13 +191539,11 @@ public static class AssemblyQuestLoader }; obj33.Steps = list74; reference56 = obj33; - num++; - span72[num] = new QuestSequence + span39[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span39[4]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -231438,23 +191551,18 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1024146u, new Vector3(-11.001831f, -3.094841E-06f, -6.8513794f), 735); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1024146u, new Vector3(-11.001831f, -3.094841E-06f, -6.8513794f), 735); obj34.Steps = list75; reference57 = obj34; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span39[5]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3089) @@ -231468,16 +191576,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot6.Author = list77; - index = 2; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference59 = ref span78[num]; + num = 2; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span40 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference59 = ref span40[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -231485,9 +191590,8 @@ public static class AssemblyQuestLoader num2 = 2; 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(-69.61145f, 0.00999999f, 62.405437f), 635) + Span span41 = CollectionsMarshal.AsSpan(list79); + span41[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-69.61145f, 0.00999999f, 62.405437f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -231498,22 +191602,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + span41[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj36.Steps = list79; reference59 = obj36; - num++; - ref QuestSequence reference60 = ref span78[num]; + ref QuestSequence reference60 = ref span40[1]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -231530,16 +191630,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "liza"; + CollectionsMarshal.AsSpan(list81)[0] = "liza"; questRoot7.Author = list81; - index = 7; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference61 = ref span82[num]; + num = 7; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span42 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference61 = ref span42[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -231547,9 +191644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024349u, new Vector3(-27.054321f, -1.3048761E-05f, -69.596436f), 628) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024349u, new Vector3(-27.054321f, -1.3048761E-05f, -69.596436f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -231562,22 +191657,18 @@ public static class AssemblyQuestLoader }; obj38.Steps = list83; reference61 = obj38; - num++; - ref QuestSequence reference62 = ref span82[num]; + ref QuestSequence reference62 = ref span42[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj39.Steps = list84; reference62 = obj39; - num++; - ref QuestSequence reference63 = ref span82[num]; + ref QuestSequence reference63 = ref span42[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -231585,16 +191676,12 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - ref QuestStep reference64 = ref span85[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list85)[0]; 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); - Span span86 = CollectionsMarshal.AsSpan(list86); - num4 = 0; - span86[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list86)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB711_03008_Q1_000_000"), @@ -231604,108 +191691,78 @@ public static class AssemblyQuestLoader reference64 = questStep4; obj40.Steps = list85; reference63 = obj40; - num++; - ref QuestSequence reference65 = ref span82[num]; + ref QuestSequence reference65 = ref span42[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list87 = new List(index2); - CollectionsMarshal.SetCount(list87, index2); - Span span87 = CollectionsMarshal.AsSpan(list87); - num2 = 0; - ref QuestStep reference66 = ref span87[num2]; + num2 = 4; + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + Span span43 = CollectionsMarshal.AsSpan(list87); + ref QuestStep reference66 = ref span43[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1019000u, new Vector3(39.414062f, 4.49998f, -43.47296f), 628); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list88; reference66 = questStep5; - num2++; - ref QuestStep reference67 = ref span87[num2]; + ref QuestStep reference67 = ref span43[1]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list89; skipConditions.StepIf = skipStepConditions; questStep6.SkipConditions = skipConditions; reference67 = questStep6; - num2++; - ref QuestStep reference68 = ref span87[num2]; + ref QuestStep reference68 = ref span43[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1019034u, new Vector3(-95.84198f, 11.8f, -147.29541f), 628); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list90; reference68 = questStep7; - num2++; - ref QuestStep reference69 = ref span87[num2]; + ref QuestStep reference69 = ref span43[3]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list91; reference69 = questStep8; obj41.Steps = list87; reference65 = obj41; - num++; - ref QuestSequence reference70 = ref span82[num]; + ref QuestSequence reference70 = ref span42[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -231713,16 +191770,12 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - ref QuestStep reference71 = ref span92[index2]; + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list92)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628); - num4 = 1; - List list93 = new List(num4); - CollectionsMarshal.SetCount(list93, num4); - Span span93 = CollectionsMarshal.AsSpan(list93); - num3 = 0; - span93[num3] = new DialogueChoice + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB711_03008_Q2_000_000"), @@ -231732,22 +191785,18 @@ public static class AssemblyQuestLoader reference71 = questStep9; obj42.Steps = list92; reference70 = obj42; - num++; - ref QuestSequence reference72 = ref span82[num]; + ref QuestSequence reference72 = ref span42[5]; QuestSequence obj43 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj43.Steps = list94; reference72 = obj43; - num++; - ref QuestSequence reference73 = ref span82[num]; + ref QuestSequence reference73 = ref span42[6]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -231755,9 +191804,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) { NextQuestId = new QuestId(3020) }; @@ -231770,34 +191817,28 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot8.Author = list96; - index = 13; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference74 = ref span97[num]; + num = 13; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span48 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference74 = ref span48[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj45.Steps = list98; reference74 = obj45; - num++; - ref QuestSequence reference75 = ref span97[num]; + ref QuestSequence reference75 = ref span48[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -231805,33 +191846,28 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) + Span span49 = CollectionsMarshal.AsSpan(list99); + span49[0] = new QuestStep(EInteractionType.Interact, 1024622u, new Vector3(102.433716f, 0.2814351f, -550.9575f), 613) { TargetTerritoryId = (ushort)613, Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; - index2++; - span99[index2] = new QuestStep(EInteractionType.Interact, 2009398u, new Vector3(279.4994f, 16.55597f, 844.541f), 613) + span49[1] = new QuestStep(EInteractionType.Interact, 2009398u, new Vector3(279.4994f, 16.55597f, 844.541f), 613) { Fly = true }; obj46.Steps = list99; reference75 = obj46; - num++; - ref QuestSequence reference76 = ref span97[num]; + ref QuestSequence reference76 = ref span48[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -231840,13 +191876,11 @@ public static class AssemblyQuestLoader }; obj47.Steps = list100; reference76 = obj47; - num++; - span97[num] = new QuestSequence + span48[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span48[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -231854,88 +191888,63 @@ public static class AssemblyQuestLoader num2 = 3; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - ref QuestStep reference78 = ref span101[index2]; + Span span50 = CollectionsMarshal.AsSpan(list101); + ref QuestStep reference78 = ref span50[0]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list102; reference78 = questStep10; - index2++; - ref QuestStep reference79 = ref span101[index2]; + ref QuestStep reference79 = ref span50[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1025141u, new Vector3(55.161255f, -89.90002f, -459.0982f), 764); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list103; reference79 = questStep11; - index2++; - ref QuestStep reference80 = ref span101[index2]; + ref QuestStep reference80 = ref span50[2]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list104; reference80 = questStep12; obj48.Steps = list101; reference77 = obj48; - num++; - ref QuestSequence reference81 = ref span97[num]; + ref QuestSequence reference81 = ref span48[5]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj49.Steps = list105; reference81 = obj49; - num++; - ref QuestSequence reference82 = ref span97[num]; + ref QuestSequence reference82 = ref span48[6]; QuestSequence obj50 = new QuestSequence { Sequence = 6 @@ -231943,31 +191952,25 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 1025144u, new Vector3(8.804443f, -90f, -470.63403f), 764); + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1025144u, new Vector3(8.804443f, -90f, -470.63403f), 764); obj50.Steps = list106; reference82 = obj50; - num++; - ref QuestSequence reference83 = ref span97[num]; + ref QuestSequence reference83 = ref span48[7]; QuestSequence obj51 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj51.Steps = list107; reference83 = obj51; - num++; - ref QuestSequence reference84 = ref span97[num]; + ref QuestSequence reference84 = ref span48[8]; QuestSequence obj52 = new QuestSequence { Sequence = 8 @@ -231975,9 +191978,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Duty, null, null, 614) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -231986,22 +191987,18 @@ public static class AssemblyQuestLoader }; obj52.Steps = list108; reference84 = obj52; - num++; - ref QuestSequence reference85 = ref span97[num]; + ref QuestSequence reference85 = ref span48[9]; QuestSequence obj53 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj53.Steps = list109; reference85 = obj53; - num++; - ref QuestSequence reference86 = ref span97[num]; + ref QuestSequence reference86 = ref span48[10]; QuestSequence obj54 = new QuestSequence { Sequence = 10 @@ -232009,9 +192006,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - ref QuestStep reference87 = ref span110[index2]; + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { Fly = true, @@ -232022,12 +192017,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num4 = 1; - List list111 = new List(num4); - CollectionsMarshal.SetCount(list111, num4); - Span span111 = CollectionsMarshal.AsSpan(list111); - num3 = 0; - span111[num3] = new DialogueChoice + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDY301_03015_Q7_000_000") @@ -232036,22 +192029,18 @@ public static class AssemblyQuestLoader reference87 = obj55; obj54.Steps = list110; reference86 = obj54; - num++; - ref QuestSequence reference88 = ref span97[num]; + ref QuestSequence reference88 = ref span48[11]; QuestSequence obj56 = new QuestSequence { Sequence = 11 }; - 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); + 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); obj56.Steps = list112; reference88 = obj56; - num++; - ref QuestSequence reference89 = ref span97[num]; + ref QuestSequence reference89 = ref span48[12]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -232059,9 +192048,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3016) @@ -232075,30 +192062,24 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot9.Author = list114; - index = 9; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference90 = ref span115[num]; + num = 9; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span54 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference90 = ref span54[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj58.Steps = list116; reference90 = obj58; - num++; - ref QuestSequence reference91 = ref span115[num]; + ref QuestSequence reference91 = ref span54[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -232106,9 +192087,8 @@ public static class AssemblyQuestLoader num2 = 2; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + Span span55 = CollectionsMarshal.AsSpan(list117); + span55[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -232119,22 +192099,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - index2++; - span117[index2] = new QuestStep(EInteractionType.Interact, 1025559u, new Vector3(61.753174f, -90.00002f, -478.11096f), 764); + span55[1] = new QuestStep(EInteractionType.Interact, 1025559u, new Vector3(61.753174f, -90.00002f, -478.11096f), 764); obj59.Steps = list117; reference91 = obj59; - num++; - ref QuestSequence reference92 = ref span115[num]; + ref QuestSequence reference92 = ref span54[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -232146,8 +192122,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list118; reference92 = obj60; - num++; - ref QuestSequence reference93 = ref span115[num]; + ref QuestSequence reference93 = ref span54[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 @@ -232155,9 +192130,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Duty, null, null, 614) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -232166,18 +192139,16 @@ public static class AssemblyQuestLoader }; obj61.Steps = list119; reference93 = obj61; - num++; - ref QuestSequence reference94 = ref span115[num]; + ref QuestSequence reference94 = ref span54[4]; QuestSequence obj62 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)764, Fly = true, @@ -232188,12 +192159,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num2++; - span120[num2] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span56[1] = new QuestStep(EInteractionType.Interact, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj62.Steps = list120; reference94 = obj62; - num++; - ref QuestSequence reference95 = ref span115[num]; + ref QuestSequence reference95 = ref span54[5]; QuestSequence obj63 = new QuestSequence { Sequence = 5 @@ -232201,32 +192170,25 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1025138u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj63.Steps = list121; reference95 = obj63; - num++; - span115[num] = new QuestSequence + span54[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference96 = ref span115[num]; + ref QuestSequence reference96 = ref span54[7]; QuestSequence obj64 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj64.Steps = list122; reference96 = obj64; - num++; - ref QuestSequence reference97 = ref span115[num]; + ref QuestSequence reference97 = ref span54[8]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -232234,9 +192196,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.CompleteQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3152) @@ -232250,26 +192210,21 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list124)[0] = "WigglyMuffin"; questRoot10.Author = list124; - index = 3; - List list125 = new List(index); - CollectionsMarshal.SetCount(list125, index); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference98 = ref span125[num]; + num = 3; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + Span span57 = CollectionsMarshal.AsSpan(list125); + ref QuestSequence reference98 = ref span57[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -232282,8 +192237,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list126; reference98 = obj66; - num++; - ref QuestSequence reference99 = ref span125[num]; + ref QuestSequence reference99 = ref span57[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -232291,23 +192245,18 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1004096u, new Vector3(-444.75476f, 25f, -324.26947f), 140); obj67.Steps = list127; reference99 = obj67; - num++; - ref QuestSequence reference100 = ref span125[num]; + ref QuestSequence reference100 = ref span57[2]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3018) }; @@ -232320,16 +192269,13 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - Span span129 = CollectionsMarshal.AsSpan(list129); - index = 0; - span129[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list129)[0] = "WigglyMuffin"; questRoot11.Author = list129; - index = 4; - List list130 = new List(index); - CollectionsMarshal.SetCount(list130, index); - Span span130 = CollectionsMarshal.AsSpan(list130); - num = 0; - ref QuestSequence reference101 = ref span130[num]; + num = 4; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + Span span58 = CollectionsMarshal.AsSpan(list130); + ref QuestSequence reference101 = ref span58[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -232337,9 +192283,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon, SkipConditions = new SkipConditions @@ -232352,22 +192296,18 @@ public static class AssemblyQuestLoader }; obj69.Steps = list131; reference101 = obj69; - num++; - ref QuestSequence reference102 = ref span130[num]; + ref QuestSequence reference102 = ref span58[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj70.Steps = list132; reference102 = obj70; - num++; - ref QuestSequence reference103 = ref span130[num]; + ref QuestSequence reference103 = ref span58[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -232375,23 +192315,18 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1004990u, new Vector3(-441.6419f, 23.669865f, -358.9685f), 140); obj71.Steps = list133; reference103 = obj71; - num++; - ref QuestSequence reference104 = ref span130[num]; + ref QuestSequence reference104 = ref span58[3]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj72.Steps = list134; reference104 = obj72; questRoot11.QuestSequence = list130; @@ -232401,16 +192336,13 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "liza"; + CollectionsMarshal.AsSpan(list135)[0] = "liza"; questRoot12.Author = list135; - index = 6; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference105 = ref span136[num]; + num = 6; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span59 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference105 = ref span59[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 @@ -232418,9 +192350,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - ref QuestStep reference106 = ref span137[index2]; + ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list137)[0]; QuestStep obj74 = new QuestStep(EInteractionType.AcceptQuest, 1024355u, new Vector3(25.375732f, 6.0313134f, -119.432434f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -232435,9 +192365,7 @@ public static class AssemblyQuestLoader num3 = 1; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - Span span138 = CollectionsMarshal.AsSpan(list138); - num4 = 0; - span138[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB721_03020_Q1_000_004"), @@ -232447,18 +192375,16 @@ public static class AssemblyQuestLoader reference106 = obj74; obj73.Steps = list137; reference105 = obj73; - num++; - ref QuestSequence reference107 = ref span136[num]; + ref QuestSequence reference107 = ref span59[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list139 = new List(index2); - CollectionsMarshal.SetCount(list139, index2); - Span span139 = CollectionsMarshal.AsSpan(list139); - num2 = 0; - ref QuestStep reference108 = ref span139[num2]; + num2 = 3; + List list139 = new List(num2); + CollectionsMarshal.SetCount(list139, num2); + Span span60 = CollectionsMarshal.AsSpan(list139); + ref QuestStep reference108 = ref span60[0]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1024711u, new Vector3(136.21729f, 12.000006f, -69.87109f), 628) { AethernetShortcut = new AethernetShortcut @@ -232467,26 +192393,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeSekiseigumiBarracks } }; - 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); + 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); obj76.CompletionQuestVariablesFlags = list140; reference108 = obj76; - num2++; - ref QuestStep reference109 = ref span139[num2]; + ref QuestStep reference109 = ref span60[1]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628) { AethernetShortcut = new AethernetShortcut @@ -232498,46 +192417,32 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - 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); + 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); obj77.CompletionQuestVariablesFlags = list141; reference109 = obj77; - num2++; - ref QuestStep reference110 = ref span139[num2]; + ref QuestStep reference110 = ref span60[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1019039u, new Vector3(-35.111023f, 13.999897f, -64.042114f), 628); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list142; reference110 = questStep13; obj75.Steps = list139; reference107 = obj75; - num++; - ref QuestSequence reference111 = ref span136[num]; + ref QuestSequence reference111 = ref span59[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 @@ -232545,27 +192450,21 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1024705u, new Vector3(8.590759f, 4f, 35.171997f), 628); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1024705u, new Vector3(8.590759f, 4f, 35.171997f), 628); obj78.Steps = list143; reference111 = obj78; - num++; - ref QuestSequence reference112 = ref span136[num]; + ref QuestSequence reference112 = ref span59[3]; QuestSequence obj79 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj79.Steps = list144; reference112 = obj79; - num++; - ref QuestSequence reference113 = ref span136[num]; + ref QuestSequence reference113 = ref span59[4]; QuestSequence obj80 = new QuestSequence { Sequence = 4 @@ -232573,23 +192472,18 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1024709u, new Vector3(-108.01868f, -5.999997f, 70.23718f), 628); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1024709u, new Vector3(-108.01868f, -5.999997f, 70.23718f), 628); obj80.Steps = list145; reference113 = obj80; - num++; - ref QuestSequence reference114 = ref span136[num]; + ref QuestSequence reference114 = ref span59[5]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -232608,16 +192502,13 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span147 = CollectionsMarshal.AsSpan(list147); - index = 0; - span147[index] = "liza"; + CollectionsMarshal.AsSpan(list147)[0] = "liza"; questRoot13.Author = list147; - index = 8; - List list148 = new List(index); - CollectionsMarshal.SetCount(list148, index); - Span span148 = CollectionsMarshal.AsSpan(list148); - num = 0; - ref QuestSequence reference115 = ref span148[num]; + num = 8; + List list148 = new List(num); + CollectionsMarshal.SetCount(list148, num); + Span span64 = CollectionsMarshal.AsSpan(list148); + ref QuestSequence reference115 = ref span64[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -232625,30 +192516,24 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613); + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024710u, new Vector3(835.5382f, 5.9230075f, 834.6837f), 613); obj82.Steps = list149; reference115 = obj82; - num++; - ref QuestSequence reference116 = ref span148[num]; + ref QuestSequence reference116 = ref span64[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj83.Steps = list150; reference116 = obj83; - num++; - ref QuestSequence reference117 = ref span148[num]; + ref QuestSequence reference117 = ref span64[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -232656,30 +192541,24 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1024717u, new Vector3(503.44092f, 28.738373f, 737.4226f), 613); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1024717u, new Vector3(503.44092f, 28.738373f, 737.4226f), 613); obj84.Steps = list151; reference117 = obj84; - num++; - ref QuestSequence reference118 = ref span148[num]; + ref QuestSequence reference118 = ref span64[3]; QuestSequence obj85 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj85.Steps = list152; reference118 = obj85; - num++; - ref QuestSequence reference119 = ref span148[num]; + ref QuestSequence reference119 = ref span64[4]; QuestSequence obj86 = new QuestSequence { Sequence = 4 @@ -232687,33 +192566,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1024722u, new Vector3(615.4115f, 69.10424f, -79.88104f), 613) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1024722u, new Vector3(615.4115f, 69.10424f, -79.88104f), 613) { Fly = true }; obj86.Steps = list153; reference119 = obj86; - num++; - ref QuestSequence reference120 = ref span148[num]; + ref QuestSequence reference120 = ref span64[5]; QuestSequence obj87 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj87.Steps = list154; reference120 = obj87; - num++; - ref QuestSequence reference121 = ref span148[num]; + ref QuestSequence reference121 = ref span64[6]; QuestSequence obj88 = new QuestSequence { Sequence = 6 @@ -232721,9 +192594,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1024725u, new Vector3(100.02283f, 4.0000014f, 99.25989f), 628) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1024725u, new Vector3(100.02283f, 4.0000014f, 99.25989f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -232734,18 +192605,15 @@ public static class AssemblyQuestLoader }; obj88.Steps = list155; reference121 = obj88; - num++; - ref QuestSequence reference122 = ref span148[num]; + ref QuestSequence reference122 = ref span64[7]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3094) }; @@ -232758,16 +192626,13 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list157)[0] = "JerryWester"; questRoot14.Author = list157; - index = 3; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference123 = ref span158[num]; + num = 3; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span65 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference123 = ref span65[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -232775,9 +192640,7 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019468u, new Vector3(170.58057f, 13.02367f, -91.96619f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -232790,18 +192653,15 @@ public static class AssemblyQuestLoader }; obj90.Steps = list159; reference123 = obj90; - num++; - ref QuestSequence reference124 = ref span158[num]; + ref QuestSequence reference124 = ref span65[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -232813,8 +192673,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list160; reference124 = obj91; - num++; - ref QuestSequence reference125 = ref span158[num]; + ref QuestSequence reference125 = ref span65[2]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -232822,9 +192681,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024726u, new Vector3(-11.367981f, 10.503965f, -212.75659f), 628) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024726u, new Vector3(-11.367981f, 10.503965f, -212.75659f), 628) { AethernetShortcut = new AethernetShortcut { @@ -232841,26 +192698,21 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list162)[0] = "JerryWester"; questRoot15.Author = list162; - index = 3; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference126 = ref span163[num]; + num = 3; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span66 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference126 = ref span66[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -232874,8 +192726,7 @@ public static class AssemblyQuestLoader }; obj93.Steps = list164; reference126 = obj93; - num++; - ref QuestSequence reference127 = ref span163[num]; + ref QuestSequence reference127 = ref span66[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -232883,9 +192734,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1024731u, new Vector3(89.92139f, 3.9999497f, 52.262085f), 628) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1024731u, new Vector3(89.92139f, 3.9999497f, 52.262085f), 628) { AethernetShortcut = new AethernetShortcut { @@ -232895,18 +192744,15 @@ public static class AssemblyQuestLoader }; obj94.Steps = list165; reference127 = obj94; - num++; - ref QuestSequence reference128 = ref span163[num]; + ref QuestSequence reference128 = ref span66[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -232923,16 +192769,13 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list167)[0] = "JerryWester"; questRoot16.Author = list167; - index = 7; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference129 = ref span168[num]; + num = 7; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span67 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference129 = ref span67[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -232940,9 +192783,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024738u, new Vector3(1.3884888f, -7.717861E-11f, -78.14148f), 628) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024738u, new Vector3(1.3884888f, -7.717861E-11f, -78.14148f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -232955,22 +192796,18 @@ public static class AssemblyQuestLoader }; obj96.Steps = list169; reference129 = obj96; - num++; - ref QuestSequence reference130 = ref span168[num]; + ref QuestSequence reference130 = ref span67[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj97.Steps = list170; reference130 = obj97; - num++; - ref QuestSequence reference131 = ref span168[num]; + ref QuestSequence reference131 = ref span67[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -232978,9 +192815,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024822u, new Vector3(885.0995f, 1.1792068f, 861.38696f), 613) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024822u, new Vector3(885.0995f, 1.1792068f, 861.38696f), 613) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -232989,27 +192824,22 @@ public static class AssemblyQuestLoader }; obj98.Steps = list171; reference131 = obj98; - num++; - span168[num] = new QuestSequence + span67[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference132 = ref span168[num]; + ref QuestSequence reference132 = ref span67[4]; QuestSequence obj99 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj99.Steps = list172; reference132 = obj99; - num++; - ref QuestSequence reference133 = ref span168[num]; + ref QuestSequence reference133 = ref span67[5]; QuestSequence obj100 = new QuestSequence { Sequence = 5 @@ -233017,26 +192847,21 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 1024830u, new Vector3(577.26404f, 0.93538165f, 852.7809f), 613) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1024830u, new Vector3(577.26404f, 0.93538165f, 852.7809f), 613) { Fly = true }; obj100.Steps = list173; reference133 = obj100; - num++; - ref QuestSequence reference134 = ref span168[num]; + ref QuestSequence reference134 = ref span67[6]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -233049,16 +192874,13 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list175)[0] = "JerryWester"; questRoot17.Author = list175; - index = 7; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference135 = ref span176[num]; + num = 7; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span68 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference135 = ref span68[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -233066,39 +192888,33 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024837u, new Vector3(-791.04297f, 12.349811f, -283.8026f), 613) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024837u, new Vector3(-791.04297f, 12.349811f, -283.8026f), 613) { StopDistance = 7f }; obj102.Steps = list177; reference135 = obj102; - num++; - ref QuestSequence reference136 = ref span176[num]; + ref QuestSequence reference136 = ref span68[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)614, Mount = true }; - num2++; - span178[num2] = new QuestStep(EInteractionType.Interact, 1024842u, new Vector3(789.6085f, 99.21144f, -288.5329f), 614) + span69[1] = new QuestStep(EInteractionType.Interact, 1024842u, new Vector3(789.6085f, 99.21144f, -288.5329f), 614) { Fly = true }; obj103.Steps = list178; reference136 = obj103; - num++; - ref QuestSequence reference137 = ref span176[num]; + ref QuestSequence reference137 = ref span68[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -233106,67 +192922,49 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - ref QuestStep reference138 = ref span179[index2]; + Span span70 = CollectionsMarshal.AsSpan(list179); + ref QuestStep reference138 = ref span70[0]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list180; reference138 = questStep14; - index2++; - ref QuestStep reference139 = ref span179[index2]; + ref QuestStep reference139 = ref span70[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019286u, new Vector3(233.60034f, 5.2518563f, -425.3758f), 614); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list181; reference139 = questStep15; obj104.Steps = list179; reference137 = obj104; - num++; - ref QuestSequence reference140 = ref span176[num]; + ref QuestSequence reference140 = ref span68[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj105.Steps = list182; reference140 = obj105; - num++; - ref QuestSequence reference141 = ref span176[num]; + ref QuestSequence reference141 = ref span68[4]; QuestSequence obj106 = new QuestSequence { Sequence = 4 @@ -233174,33 +192972,27 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 1024847u, new Vector3(59.067627f, 37.21815f, -529.1676f), 614) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1024847u, new Vector3(59.067627f, 37.21815f, -529.1676f), 614) { Fly = true }; obj106.Steps = list183; reference141 = obj106; - num++; - ref QuestSequence reference142 = ref span176[num]; + ref QuestSequence reference142 = ref span68[5]; QuestSequence obj107 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 4f }; obj107.Steps = list184; reference142 = obj107; - num++; - ref QuestSequence reference143 = ref span176[num]; + ref QuestSequence reference143 = ref span68[6]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -233208,9 +193000,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1020524u, new Vector3(173.20508f, 5.1910434f, -433.24945f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce @@ -233224,26 +193014,21 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list186)[0] = "JerryWester"; questRoot18.Author = list186; - index = 9; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference144 = ref span187[num]; + num = 9; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span73 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference144 = ref span73[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, SkipConditions = new SkipConditions @@ -233256,8 +193041,7 @@ public static class AssemblyQuestLoader }; obj109.Steps = list188; reference144 = obj109; - num++; - ref QuestSequence reference145 = ref span187[num]; + ref QuestSequence reference145 = ref span73[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -233265,34 +193049,28 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.Interact, 1024955u, new Vector3(350.14868f, 26.448109f, 609.1859f), 614) + CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1024955u, new Vector3(350.14868f, 26.448109f, 609.1859f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj110.Steps = list189; reference145 = obj110; - num++; - ref QuestSequence reference146 = ref span187[num]; + ref QuestSequence reference146 = ref span73[2]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj111.Steps = list190; reference146 = obj111; - num++; - ref QuestSequence reference147 = ref span187[num]; + ref QuestSequence reference147 = ref span73[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -233300,51 +193078,42 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1024966u, new Vector3(-472.3125f, 1.2300053f, 537.77356f), 614) + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1024966u, new Vector3(-472.3125f, 1.2300053f, 537.77356f), 614) { Fly = true }; obj112.Steps = list191; reference147 = obj112; - num++; - ref QuestSequence reference148 = ref span187[num]; + ref QuestSequence reference148 = ref span73[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)759 }; - num2++; - span192[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + span74[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveDocks }; - num2++; - span192[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + span74[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveSouthern }; - num2++; - span192[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) + span74[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 759) { Aetheryte = EAetheryteLocation.DomanEnclave }; - num2++; - span192[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) + span74[4] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 759) { AethernetShard = EAetheryteLocation.DomanEnclaveNorthern }; - num2++; - ref QuestStep reference149 = ref span192[num2]; + ref QuestStep reference149 = ref span74[5]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1024970u, new Vector3(40.238037f, 0f, 5.874695f), 759) { AethernetShortcut = new AethernetShortcut @@ -233356,9 +193125,7 @@ public static class AssemblyQuestLoader num3 = 1; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - Span span193 = CollectionsMarshal.AsSpan(list193); - num4 = 0; - span193[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDC105_03026_Q1_000_000"), @@ -233368,8 +193135,7 @@ public static class AssemblyQuestLoader reference149 = obj114; obj113.Steps = list192; reference148 = obj113; - num++; - ref QuestSequence reference150 = ref span187[num]; + ref QuestSequence reference150 = ref span73[5]; QuestSequence obj115 = new QuestSequence { Sequence = 5 @@ -233377,19 +193143,15 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - ref QuestStep reference151 = ref span194[index2]; + ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list194)[0]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 }; - num4 = 1; - List list195 = new List(num4); - CollectionsMarshal.SetCount(list195, num4); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - span195[num3] = new DialogueChoice + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + CollectionsMarshal.AsSpan(list195)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDC105_03026_EVENTAREA_WARP_000_000") @@ -233398,30 +193160,25 @@ public static class AssemblyQuestLoader reference151 = obj116; obj115.Steps = list194; reference150 = obj115; - num++; - span187[num] = new QuestSequence + span73[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference152 = ref span187[num]; + ref QuestSequence reference152 = ref span73[7]; QuestSequence obj117 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 7f }; obj117.Steps = list196; reference152 = obj117; - num++; - ref QuestSequence reference153 = ref span187[num]; + ref QuestSequence reference153 = ref span73[8]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -233429,14 +193186,12 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span75 = CollectionsMarshal.AsSpan(list197); + span75[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - index2++; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759); + span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1024971u, new Vector3(6.0272217f, 0f, 18.631226f), 759); obj118.Steps = list197; reference153 = obj118; questRoot18.QuestSequence = list187; @@ -233446,26 +193201,21 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list198)[0] = "JerryWester"; questRoot19.Author = list198; - index = 5; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference154 = ref span199[num]; + num = 5; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span76 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference154 = ref span76[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -233478,8 +193228,7 @@ public static class AssemblyQuestLoader }; obj119.Steps = list200; reference154 = obj119; - num++; - ref QuestSequence reference155 = ref span199[num]; + ref QuestSequence reference155 = ref span76[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -233487,34 +193236,28 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1024980u, new Vector3(-276.26465f, 53.240116f, -368.8869f), 614) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1024980u, new Vector3(-276.26465f, 53.240116f, -368.8869f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj120.Steps = list201; reference155 = obj120; - num++; - ref QuestSequence reference156 = ref span199[num]; + ref QuestSequence reference156 = ref span76[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj121.Steps = list202; reference156 = obj121; - num++; - ref QuestSequence reference157 = ref span199[num]; + ref QuestSequence reference157 = ref span76[3]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -233522,14 +193265,12 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.07507f, 1.2300062f, -345.90344f), 614) + Span span77 = CollectionsMarshal.AsSpan(list203); + span77[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-347.07507f, 1.2300062f, -345.90344f), 614) { Fly = true }; - index2++; - span203[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024986u, new Vector3(-348.9281f, 1.230035f, -344.13672f), 614) + span77[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024986u, new Vector3(-348.9281f, 1.230035f, -344.13672f), 614) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -233538,18 +193279,15 @@ public static class AssemblyQuestLoader }; obj122.Steps = list203; reference157 = obj122; - num++; - ref QuestSequence reference158 = ref span199[num]; + ref QuestSequence reference158 = ref span76[4]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -233562,16 +193300,13 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list205)[0] = "JerryWester"; questRoot20.Author = list205; - index = 3; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference159 = ref span206[num]; + num = 3; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span78 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference159 = ref span78[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -233579,33 +193314,27 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024989u, new Vector3(464.10315f, 17.720512f, 301.59448f), 614) { StopDistance = 5f }; obj124.Steps = list207; reference159 = obj124; - num++; - ref QuestSequence reference160 = ref span206[num]; + ref QuestSequence reference160 = ref span78[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj125.Steps = list208; reference160 = obj125; - num++; - ref QuestSequence reference161 = ref span206[num]; + ref QuestSequence reference161 = ref span78[2]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -233613,9 +193342,8 @@ public static class AssemblyQuestLoader num2 = 2; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference162 = ref span209[index2]; + Span span79 = CollectionsMarshal.AsSpan(list209); + ref QuestStep reference162 = ref span79[0]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 @@ -233623,17 +193351,14 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num4 = 0; - span210[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDC107_03028_EVENTAREA_WARP_000_056") }; obj127.DialogueChoices = list210; reference162 = obj127; - index2++; - span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj126.Steps = list209; reference161 = obj126; questRoot20.QuestSequence = list206; @@ -233643,34 +193368,28 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span211 = CollectionsMarshal.AsSpan(list211); - index = 0; - span211[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list211)[0] = "JerryWester"; questRoot21.Author = list211; - index = 5; - List list212 = new List(index); - CollectionsMarshal.SetCount(list212, index); - Span span212 = CollectionsMarshal.AsSpan(list212); - num = 0; - ref QuestSequence reference163 = ref span212[num]; + num = 5; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span80 = CollectionsMarshal.AsSpan(list212); + ref QuestSequence reference163 = ref span80[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 1f, DelaySecondsAtStart = 3f }; obj128.Steps = list213; reference163 = obj128; - num++; - ref QuestSequence reference164 = ref span212[num]; + ref QuestSequence reference164 = ref span80[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -233678,40 +193397,33 @@ public static class AssemblyQuestLoader num2 = 2; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span81 = CollectionsMarshal.AsSpan(list214); + span81[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - index2++; - span214[index2] = new QuestStep(EInteractionType.Interact, 1025012u, new Vector3(1.5715942f, 0f, 18.631226f), 759); + span81[1] = new QuestStep(EInteractionType.Interact, 1025012u, new Vector3(1.5715942f, 0f, 18.631226f), 759); obj129.Steps = list214; reference164 = obj129; - num++; - span212[num] = new QuestSequence + span80[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference165 = ref span212[num]; + ref QuestSequence reference165 = ref span80[3]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj130.Steps = list215; reference165 = obj130; - num++; - ref QuestSequence reference166 = ref span212[num]; + ref QuestSequence reference166 = ref span80[4]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -233719,9 +193431,8 @@ public static class AssemblyQuestLoader num2 = 2; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) + Span span82 = CollectionsMarshal.AsSpan(list216); + span82[0] = new QuestStep(EInteractionType.Interact, 1019070u, new Vector3(151.20166f, 14.7757225f, 95.78088f), 628) { TargetTerritoryId = (ushort)639, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -233731,8 +193442,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - index2++; - span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj131.Steps = list216; reference166 = obj131; questRoot21.QuestSequence = list212; @@ -233742,30 +193452,24 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "liza"; + CollectionsMarshal.AsSpan(list217)[0] = "liza"; questRoot22.Author = list217; - index = 3; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference167 = ref span218[num]; + num = 3; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span83 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference167 = ref span83[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj132.Steps = list219; reference167 = obj132; - num++; - ref QuestSequence reference168 = ref span218[num]; + ref QuestSequence reference168 = ref span83[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -233773,27 +193477,22 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1021933u, new Vector3(466.20886f, 69.27097f, 525.7495f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj133.Steps = list220; reference168 = obj133; - num++; - ref QuestSequence reference169 = ref span218[num]; + ref QuestSequence reference169 = ref span83[2]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3032) @@ -233807,16 +193506,13 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot23.Author = list222; - index = 4; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference170 = ref span223[num]; + num = 4; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span84 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference170 = ref span84[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -233824,33 +193520,27 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f }; obj135.Steps = list224; reference170 = obj135; - num++; - ref QuestSequence reference171 = ref span223[num]; + ref QuestSequence reference171 = ref span84[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj136.Steps = list225; reference171 = obj136; - num++; - ref QuestSequence reference172 = ref span223[num]; + ref QuestSequence reference172 = ref span84[2]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -233858,9 +193548,7 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -233869,18 +193557,15 @@ public static class AssemblyQuestLoader }; obj137.Steps = list226; reference172 = obj137; - num++; - ref QuestSequence reference173 = ref span223[num]; + ref QuestSequence reference173 = ref span84[3]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3033) @@ -233894,16 +193579,13 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "liza"; + CollectionsMarshal.AsSpan(list228)[0] = "liza"; questRoot24.Author = list228; - index = 5; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference174 = ref span229[num]; + num = 5; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span85 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference174 = ref span85[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -233911,33 +193593,27 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024788u, new Vector3(-86.07617f, -72.25f, 181.47546f), 756) { StopDistance = 7f }; obj139.Steps = list230; reference174 = obj139; - num++; - ref QuestSequence reference175 = ref span229[num]; + ref QuestSequence reference175 = ref span85[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj140.Steps = list231; reference175 = obj140; - num++; - ref QuestSequence reference176 = ref span229[num]; + ref QuestSequence reference176 = ref span85[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -233945,9 +193621,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -233956,25 +193630,21 @@ public static class AssemblyQuestLoader }; obj141.Steps = list232; reference176 = obj141; - num++; - ref QuestSequence reference177 = ref span229[num]; + ref QuestSequence reference177 = ref span85[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj142.Steps = list233; reference177 = obj142; - num++; - ref QuestSequence reference178 = ref span229[num]; + ref QuestSequence reference178 = ref span85[4]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -233982,9 +193652,7 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024749u, new Vector3(463.79797f, 69.36809f, 520.31726f), 612) + CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024749u, new Vector3(463.79797f, 69.36809f, 520.31726f), 612) { NextQuestId = new QuestId(3034) }; @@ -233997,33 +193665,27 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - Span span235 = CollectionsMarshal.AsSpan(list235); - index = 0; - span235[index] = "liza"; + CollectionsMarshal.AsSpan(list235)[0] = "liza"; questRoot25.Author = list235; - index = 5; - List list236 = new List(index); - CollectionsMarshal.SetCount(list236, index); - Span span236 = CollectionsMarshal.AsSpan(list236); - num = 0; - ref QuestSequence reference179 = ref span236[num]; + num = 5; + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + Span span86 = CollectionsMarshal.AsSpan(list236); + ref QuestSequence reference179 = ref span86[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj144.Steps = list237; reference179 = obj144; - num++; - ref QuestSequence reference180 = ref span236[num]; + ref QuestSequence reference180 = ref span86[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -234031,48 +193693,40 @@ public static class AssemblyQuestLoader num2 = 2; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - ref QuestStep reference181 = ref span238[index2]; + Span span87 = CollectionsMarshal.AsSpan(list238); + ref QuestStep reference181 = ref span87[0]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612); - num4 = 1; - List list239 = new List(num4); - CollectionsMarshal.SetCount(list239, num4); - Span span239 = CollectionsMarshal.AsSpan(list239); - num3 = 0; - span239[num3] = new DialogueChoice + num3 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + CollectionsMarshal.AsSpan(list239)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR204_03034_SYSTEM_000_026") }; questStep16.DialogueChoices = list239; reference181 = questStep16; - index2++; - span238[index2] = new QuestStep(EInteractionType.Interact, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) + span87[1] = new QuestStep(EInteractionType.Interact, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) { StopDistance = 7f }; obj145.Steps = list238; reference180 = obj145; - num++; - ref QuestSequence reference182 = ref span236[num]; + ref QuestSequence reference182 = ref span86[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj146.Steps = list240; reference182 = obj146; - num++; - ref QuestSequence reference183 = ref span236[num]; + ref QuestSequence reference183 = ref span86[3]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -234080,9 +193734,7 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -234091,18 +193743,15 @@ public static class AssemblyQuestLoader }; obj147.Steps = list241; reference183 = obj147; - num++; - ref QuestSequence reference184 = ref span236[num]; + ref QuestSequence reference184 = ref span86[4]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3035) @@ -234116,16 +193765,13 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span243 = CollectionsMarshal.AsSpan(list243); - index = 0; - span243[index] = "liza"; + CollectionsMarshal.AsSpan(list243)[0] = "liza"; questRoot26.Author = list243; - index = 6; - List list244 = new List(index); - CollectionsMarshal.SetCount(list244, index); - Span span244 = CollectionsMarshal.AsSpan(list244); - num = 0; - ref QuestSequence reference185 = ref span244[num]; + num = 6; + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + Span span88 = CollectionsMarshal.AsSpan(list244); + ref QuestSequence reference185 = ref span88[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -234133,33 +193779,27 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024853u, new Vector3(-86.71704f, -72.25f, 179.58337f), 756) { StopDistance = 7f }; obj149.Steps = list245; reference185 = obj149; - num++; - ref QuestSequence reference186 = ref span244[num]; + ref QuestSequence reference186 = ref span88[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj150.Steps = list246; reference186 = obj150; - num++; - ref QuestSequence reference187 = ref span244[num]; + ref QuestSequence reference187 = ref span88[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -234167,9 +193807,7 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Duty, null, null, 756) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Duty, null, null, 756) { DutyOptions = new DutyOptions { @@ -234178,27 +193816,22 @@ public static class AssemblyQuestLoader }; obj151.Steps = list247; reference187 = obj151; - num++; - span244[num] = new QuestSequence + span88[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference188 = ref span244[num]; + ref QuestSequence reference188 = ref span88[4]; QuestSequence obj152 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj152.Steps = list248; reference188 = obj152; - num++; - ref QuestSequence reference189 = ref span244[num]; + ref QuestSequence reference189 = ref span88[5]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -234206,9 +193839,7 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(3154) @@ -234222,26 +193853,21 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "liza"; + CollectionsMarshal.AsSpan(list250)[0] = "liza"; questRoot27.Author = list250; - index = 4; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference190 = ref span251[num]; + num = 4; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span89 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference190 = ref span89[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, SkipConditions = new SkipConditions @@ -234254,8 +193880,7 @@ public static class AssemblyQuestLoader }; obj154.Steps = list252; reference190 = obj154; - num++; - ref QuestSequence reference191 = ref span251[num]; + ref QuestSequence reference191 = ref span89[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -234263,33 +193888,27 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) { Fly = true }; obj155.Steps = list253; reference191 = obj155; - num++; - ref QuestSequence reference192 = ref span251[num]; + ref QuestSequence reference192 = ref span89[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj156.Steps = list254; reference192 = obj156; - num++; - ref QuestSequence reference193 = ref span251[num]; + ref QuestSequence reference193 = ref span89[3]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue @@ -234297,9 +193916,7 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - ref QuestStep reference194 = ref span255[index2]; + ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list255)[0]; QuestStep obj158 = new QuestStep(EInteractionType.CompleteQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, @@ -234308,16 +193925,14 @@ public static class AssemblyQuestLoader num3 = 2; List list256 = new List(num3); CollectionsMarshal.SetCount(list256, num3); - Span span256 = CollectionsMarshal.AsSpan(list256); - num4 = 0; - span256[num4] = new DialogueChoice + Span span90 = CollectionsMarshal.AsSpan(list256); + span90[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA001_03036_Q2_000_000"), Answer = new ExcelRef("TEXT_BANANA001_03036_A2_000_001") }; - num4++; - span256[num4] = new DialogueChoice + span90[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA001_03036_Q3_000_000"), @@ -234334,30 +193949,24 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list257)[0] = "plogon_enjoyer"; questRoot28.Author = list257; - index = 9; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference195 = ref span258[num]; + num = 9; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span91 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference195 = ref span91[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj159.Steps = list259; reference195 = obj159; - num++; - ref QuestSequence reference196 = ref span258[num]; + ref QuestSequence reference196 = ref span91[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -234365,27 +193974,22 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.Interact, 1024896u, new Vector3(-630.2129f, 130.26343f, -452.20117f), 612) + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1024896u, new Vector3(-630.2129f, 130.26343f, -452.20117f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; obj160.Steps = list260; reference196 = obj160; - num++; - ref QuestSequence reference197 = ref span258[num]; + ref QuestSequence reference197 = ref span91[2]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -234397,8 +194001,7 @@ public static class AssemblyQuestLoader }; obj161.Steps = list261; reference197 = obj161; - num++; - ref QuestSequence reference198 = ref span258[num]; + ref QuestSequence reference198 = ref span91[3]; QuestSequence obj162 = new QuestSequence { Sequence = 3 @@ -234406,34 +194009,28 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj162.Steps = list262; reference198 = obj162; - num++; - ref QuestSequence reference199 = ref span258[num]; + ref QuestSequence reference199 = ref span91[4]; QuestSequence obj163 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj163.Steps = list263; reference199 = obj163; - num++; - ref QuestSequence reference200 = ref span258[num]; + ref QuestSequence reference200 = ref span91[5]; QuestSequence obj164 = new QuestSequence { Sequence = 5 @@ -234441,35 +194038,29 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) { Fly = true, Action = EAction.BuffetGriffin }; obj164.Steps = list264; reference200 = obj164; - num++; - ref QuestSequence reference201 = ref span258[num]; + ref QuestSequence reference201 = ref span91[6]; QuestSequence obj165 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, Action = EAction.BuffetGriffin }; obj165.Steps = list265; reference201 = obj165; - num++; - ref QuestSequence reference202 = ref span258[num]; + ref QuestSequence reference202 = ref span91[7]; QuestSequence obj166 = new QuestSequence { Sequence = 7 @@ -234477,27 +194068,22 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Action, 1024901u, new Vector3(-80.52191f, 56.021286f, 231.40308f), 612) { Fly = true, Action = EAction.BuffetGriffin }; obj166.Steps = list266; reference202 = obj166; - num++; - ref QuestSequence reference203 = ref span258[num]; + ref QuestSequence reference203 = ref span91[8]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = false }; @@ -234510,16 +194096,13 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - Span span268 = CollectionsMarshal.AsSpan(list268); - index = 0; - span268[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list268)[0] = "plogon_enjoyer"; questRoot29.Author = list268; - index = 9; - List list269 = new List(index); - CollectionsMarshal.SetCount(list269, index); - Span span269 = CollectionsMarshal.AsSpan(list269); - num = 0; - ref QuestSequence reference204 = ref span269[num]; + num = 9; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span92 = CollectionsMarshal.AsSpan(list269); + ref QuestSequence reference204 = ref span92[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -234527,30 +194110,24 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); obj168.Steps = list270; reference204 = obj168; - num++; - ref QuestSequence reference205 = ref span269[num]; + ref QuestSequence reference205 = ref span92[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj169.Steps = list271; reference205 = obj169; - num++; - ref QuestSequence reference206 = ref span269[num]; + ref QuestSequence reference206 = ref span92[2]; QuestSequence obj170 = new QuestSequence { Sequence = 2 @@ -234558,44 +194135,37 @@ public static class AssemblyQuestLoader num2 = 3; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620) + Span span93 = CollectionsMarshal.AsSpan(list272); + span93[0] = new QuestStep(EInteractionType.Interact, 1021591u, new Vector3(-277.82104f, 258.90652f, 782.77246f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; - index2++; - span272[index2] = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620) + span93[1] = new QuestStep(EInteractionType.Interact, 1020871u, new Vector3(-237.90344f, 257.71973f, 741.5731f), 620) { Fly = true }; - index2++; - span272[index2] = new QuestStep(EInteractionType.Interact, 1021587u, new Vector3(-210.68134f, 257.8064f, 767.4829f), 620) + span93[2] = new QuestStep(EInteractionType.Interact, 1021587u, new Vector3(-210.68134f, 257.8064f, 767.4829f), 620) { Fly = true }; obj170.Steps = list272; reference206 = obj170; - num++; - ref QuestSequence reference207 = ref span269[num]; + ref QuestSequence reference207 = ref span92[3]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj171.Steps = list273; reference207 = obj171; - num++; - ref QuestSequence reference208 = ref span269[num]; + ref QuestSequence reference208 = ref span92[4]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -234603,34 +194173,28 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.Interact, 1024908u, new Vector3(-238.91058f, 266.39832f, 508.14062f), 620) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1024908u, new Vector3(-238.91058f, 266.39832f, 508.14062f), 620) { Fly = true }; obj172.Steps = list274; reference208 = obj172; - num++; - ref QuestSequence reference209 = ref span269[num]; + ref QuestSequence reference209 = ref span92[5]; QuestSequence obj173 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj173.Steps = list275; reference209 = obj173; - num++; - ref QuestSequence reference210 = ref span269[num]; + ref QuestSequence reference210 = ref span92[6]; QuestSequence obj174 = new QuestSequence { Sequence = 6 @@ -234638,39 +194202,33 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.Interact, 1024912u, new Vector3(-92.27136f, 50.00444f, 186.29736f), 612) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1024912u, new Vector3(-92.27136f, 50.00444f, 186.29736f), 612) { Fly = true }; obj174.Steps = list276; reference210 = obj174; - num++; - ref QuestSequence reference211 = ref span269[num]; + ref QuestSequence reference211 = ref span92[7]; QuestSequence obj175 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span277[num2] = new QuestStep(EInteractionType.Action, 2009281u, new Vector3(-209.79633f, 42.70996f, -153.85675f), 612) + span94[1] = new QuestStep(EInteractionType.Action, 2009281u, new Vector3(-209.79633f, 42.70996f, -153.85675f), 612) { Land = true, Action = EAction.Trample }; obj175.Steps = list277; reference211 = obj175; - num++; - ref QuestSequence reference212 = ref span269[num]; + ref QuestSequence reference212 = ref span92[8]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -234678,14 +194236,12 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.853586f, 55.943962f, 237.26181f), 612) + Span span95 = CollectionsMarshal.AsSpan(list278); + span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.853586f, 55.943962f, 237.26181f), 612) { Fly = true }; - index2++; - span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) + span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1024911u, new Vector3(10.971252f, 55.943913f, 239.88696f), 612) { Mount = false }; @@ -234698,30 +194254,24 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - Span span279 = CollectionsMarshal.AsSpan(list279); - index = 0; - span279[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list279)[0] = "plogon_enjoyer"; questRoot30.Author = list279; - index = 9; - List list280 = new List(index); - CollectionsMarshal.SetCount(list280, index); - Span span280 = CollectionsMarshal.AsSpan(list280); - num = 0; - ref QuestSequence reference213 = ref span280[num]; + num = 9; + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + Span span96 = CollectionsMarshal.AsSpan(list280); + ref QuestSequence reference213 = ref span96[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj177.Steps = list281; reference213 = obj177; - num++; - ref QuestSequence reference214 = ref span280[num]; + ref QuestSequence reference214 = ref span96[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -234729,34 +194279,28 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Interact, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { Fly = true }; obj178.Steps = list282; reference214 = obj178; - num++; - ref QuestSequence reference215 = ref span280[num]; + ref QuestSequence reference215 = ref span96[2]; QuestSequence obj179 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2002429u, GroundTarget = true }; obj179.Steps = list283; reference215 = obj179; - num++; - ref QuestSequence reference216 = ref span280[num]; + ref QuestSequence reference216 = ref span96[3]; QuestSequence obj180 = new QuestSequence { Sequence = 3 @@ -234764,35 +194308,29 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.UseItem, 1024915u, new Vector3(-127.45862f, 41.197662f, 7.248047f), 612) { ItemId = 2002429u, GroundTarget = true }; obj180.Steps = list284; reference216 = obj180; - num++; - ref QuestSequence reference217 = ref span280[num]; + ref QuestSequence reference217 = ref span96[4]; QuestSequence obj181 = new QuestSequence { Sequence = 4 }; - 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) + 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) { ItemId = 2002429u, GroundTarget = true }; obj181.Steps = list285; reference217 = obj181; - num++; - ref QuestSequence reference218 = ref span280[num]; + ref QuestSequence reference218 = ref span96[5]; QuestSequence obj182 = new QuestSequence { Sequence = 5 @@ -234800,9 +194338,7 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { Mount = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -234814,18 +194350,15 @@ public static class AssemblyQuestLoader }; obj182.Steps = list286; reference218 = obj182; - num++; - ref QuestSequence reference219 = ref span280[num]; + ref QuestSequence reference219 = ref span96[6]; QuestSequence obj183 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list287 = new List(index2); - CollectionsMarshal.SetCount(list287, index2); - Span span287 = CollectionsMarshal.AsSpan(list287); - num2 = 0; - ref QuestStep reference220 = ref span287[num2]; + num2 = 1; + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list287)[0]; QuestStep obj184 = new QuestStep(EInteractionType.Combat, null, new Vector3(-496.6736f, 118.65279f, -424.7939f), 612) { Fly = true, @@ -234833,18 +194366,15 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list288 = new List(num4); - CollectionsMarshal.SetCount(list288, num4); - Span span288 = CollectionsMarshal.AsSpan(list288); - num3 = 0; - span288[num3] = 8577u; + num3 = 1; + List list288 = new List(num3); + CollectionsMarshal.SetCount(list288, num3); + CollectionsMarshal.AsSpan(list288)[0] = 8577u; obj184.KillEnemyDataIds = list288; reference220 = obj184; obj183.Steps = list287; reference219 = obj183; - num++; - ref QuestSequence reference221 = ref span280[num]; + ref QuestSequence reference221 = ref span96[7]; QuestSequence obj185 = new QuestSequence { Sequence = 7 @@ -234852,23 +194382,18 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.Interact, 1024920u, new Vector3(-495.01794f, 118.79865f, -427.1153f), 612); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1024920u, new Vector3(-495.01794f, 118.79865f, -427.1153f), 612); obj185.Steps = list289; reference221 = obj185; - num++; - ref QuestSequence reference222 = ref span280[num]; + ref QuestSequence reference222 = ref span96[8]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones @@ -234882,16 +194407,13 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - Span span291 = CollectionsMarshal.AsSpan(list291); - index = 0; - span291[index] = "skiaz"; + CollectionsMarshal.AsSpan(list291)[0] = "skiaz"; questRoot31.Author = list291; - index = 6; - List list292 = new List(index); - CollectionsMarshal.SetCount(list292, index); - Span span292 = CollectionsMarshal.AsSpan(list292); - num = 0; - ref QuestSequence reference223 = ref span292[num]; + num = 6; + List list292 = new List(num); + CollectionsMarshal.SetCount(list292, num); + Span span97 = CollectionsMarshal.AsSpan(list292); + ref QuestSequence reference223 = ref span97[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -234899,33 +194421,27 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; obj187.Steps = list293; reference223 = obj187; - num++; - ref QuestSequence reference224 = ref span292[num]; + ref QuestSequence reference224 = ref span97[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj188.Steps = list294; reference224 = obj188; - num++; - ref QuestSequence reference225 = ref span292[num]; + ref QuestSequence reference225 = ref span97[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -234933,33 +194449,27 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Interact, 1024929u, new Vector3(120.46985f, 48.569233f, 596.15466f), 612) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1024929u, new Vector3(120.46985f, 48.569233f, 596.15466f), 612) { Fly = true }; obj189.Steps = list295; reference225 = obj189; - num++; - ref QuestSequence reference226 = ref span292[num]; + ref QuestSequence reference226 = ref span97[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj190.Steps = list296; reference226 = obj190; - num++; - ref QuestSequence reference227 = ref span292[num]; + ref QuestSequence reference227 = ref span97[4]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -234967,32 +194477,27 @@ public static class AssemblyQuestLoader num2 = 2; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + Span span98 = CollectionsMarshal.AsSpan(list297); + span98[0] = new QuestStep(EInteractionType.Interact, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) { Fly = true }; - index2++; - span297[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1024934u, new Vector3(274.95227f, 38.278767f, 343.00745f), 612) + span98[1] = 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; - num++; - ref QuestSequence reference228 = ref span292[num]; + ref QuestSequence reference228 = ref span97[5]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -235005,16 +194510,13 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - Span span299 = CollectionsMarshal.AsSpan(list299); - index = 0; - span299[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list299)[0] = "plogon_enjoyer"; questRoot32.Author = list299; - index = 5; - List list300 = new List(index); - CollectionsMarshal.SetCount(list300, index); - Span span300 = CollectionsMarshal.AsSpan(list300); - num = 0; - ref QuestSequence reference229 = ref span300[num]; + num = 5; + List list300 = new List(num); + CollectionsMarshal.SetCount(list300, num); + Span span99 = CollectionsMarshal.AsSpan(list300); + ref QuestSequence reference229 = ref span99[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -235022,37 +194524,31 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024771u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612); obj193.Steps = list301; reference229 = obj193; - num++; - ref QuestSequence reference230 = ref span300[num]; + ref QuestSequence reference230 = ref span99[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; - num2++; - span302[num2] = new QuestStep(EInteractionType.Interact, 1024937u, new Vector3(450.88867f, 114.36421f, 235.91968f), 612) + span100[1] = new QuestStep(EInteractionType.Interact, 1024937u, new Vector3(450.88867f, 114.36421f, 235.91968f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj194.Steps = list302; reference230 = obj194; - num++; - ref QuestSequence reference231 = ref span300[num]; + ref QuestSequence reference231 = ref span99[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -235060,33 +194556,27 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; obj195.Steps = list303; reference231 = obj195; - num++; - ref QuestSequence reference232 = ref span300[num]; + ref QuestSequence reference232 = ref span99[3]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj196.Steps = list304; reference232 = obj196; - num++; - ref QuestSequence reference233 = ref span300[num]; + ref QuestSequence reference233 = ref span99[4]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue @@ -235094,9 +194584,7 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024952u, new Vector3(12.008789f, 55.97821f, 237.96448f), 612) { Fly = true }; @@ -235109,33 +194597,27 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "liza"; + CollectionsMarshal.AsSpan(list306)[0] = "liza"; questRoot33.Author = list306; - index = 4; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference234 = ref span307[num]; + num = 4; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span101 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference234 = ref span101[0]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj198.Steps = list308; reference234 = obj198; - num++; - ref QuestSequence reference235 = ref span307[num]; + ref QuestSequence reference235 = ref span101[1]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -235143,9 +194625,8 @@ public static class AssemblyQuestLoader num2 = 5; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - ref QuestStep reference236 = ref span309[index2]; + Span span102 = CollectionsMarshal.AsSpan(list309); + ref QuestStep reference236 = ref span102[0]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 2009315u, new Vector3(-213.15332f, 40.390625f, 228.38171f), 612) { StopDistance = 0.5f, @@ -235154,82 +194635,56 @@ public static class AssemblyQuestLoader num3 = 6; List> list310 = new List>(num3); CollectionsMarshal.SetCount(list310, num3); - 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); + 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); reference237 = list311; - num4++; - span310[num4] = null; - num4++; - span310[num4] = null; - num4++; - span310[num4] = null; - num4++; - span310[num4] = null; + span103[2] = null; + span103[3] = null; + span103[4] = null; + span103[5] = null; obj200.RequiredQuestVariables = list310; reference236 = obj200; - index2++; - ref QuestStep reference238 = ref span309[index2]; + ref QuestStep reference238 = ref span102[1]; 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> 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); + 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); reference239 = list313; - num3++; - span312[num3] = null; - num3++; - span312[num3] = null; - num3++; - span312[num3] = null; - num3++; - span312[num3] = null; + span105[2] = null; + span105[3] = null; + span105[4] = null; + span105[5] = null; obj201.RequiredQuestVariables = list312; reference238 = obj201; - index2++; - ref QuestStep reference240 = ref span309[index2]; + ref QuestStep reference240 = ref span102[2]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009317u, new Vector3(-347.34113f, 46.066895f, 216.99854f), 612) { StopDistance = 0.5f, @@ -235238,82 +194693,56 @@ public static class AssemblyQuestLoader num3 = 6; List> list314 = new List>(num3); CollectionsMarshal.SetCount(list314, num3); - 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); + 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); reference241 = list315; - num4++; - span314[num4] = null; - num4++; - span314[num4] = null; - num4++; - span314[num4] = null; - num4++; - span314[num4] = null; + span107[2] = null; + span107[3] = null; + span107[4] = null; + span107[5] = null; obj202.RequiredQuestVariables = list314; reference240 = obj202; - index2++; - ref QuestStep reference242 = ref span309[index2]; + ref QuestStep reference242 = ref span102[3]; 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> 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); + 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); reference243 = list317; - num3++; - span316[num3] = null; - num3++; - span316[num3] = null; - num3++; - span316[num3] = null; - num3++; - span316[num3] = null; + span109[2] = null; + span109[3] = null; + span109[4] = null; + span109[5] = null; obj203.RequiredQuestVariables = list316; reference242 = obj203; - index2++; - ref QuestStep reference244 = ref span309[index2]; + ref QuestStep reference244 = ref span102[4]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2009314u, new Vector3(-253.10144f, 60.715576f, 363.08838f), 612) { StopDistance = 0.5f, @@ -235322,59 +194751,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list318 = new List>(num3); CollectionsMarshal.SetCount(list318, num3); - 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); + 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); reference245 = list319; - num4++; - span318[num4] = null; - num4++; - span318[num4] = null; - num4++; - span318[num4] = null; - num4++; - span318[num4] = null; + span111[2] = null; + span111[3] = null; + span111[4] = null; + span111[5] = null; obj204.RequiredQuestVariables = list318; reference244 = obj204; obj199.Steps = list309; reference235 = obj199; - num++; - ref QuestSequence reference246 = ref span307[num]; + ref QuestSequence reference246 = ref span101[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj205.Steps = list320; reference246 = obj205; - num++; - ref QuestSequence reference247 = ref span307[num]; + ref QuestSequence reference247 = ref span101[3]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -235382,14 +194795,12 @@ public static class AssemblyQuestLoader num2 = 2; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span113 = CollectionsMarshal.AsSpan(list321); + span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span321[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -235403,33 +194814,27 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - Span span322 = CollectionsMarshal.AsSpan(list322); - index = 0; - span322[index] = "liza"; + CollectionsMarshal.AsSpan(list322)[0] = "liza"; questRoot34.Author = list322; - index = 3; - List list323 = new List(index); - CollectionsMarshal.SetCount(list323, index); - Span span323 = CollectionsMarshal.AsSpan(list323); - num = 0; - ref QuestSequence reference248 = ref span323[num]; + num = 3; + List list323 = new List(num); + CollectionsMarshal.SetCount(list323, num); + Span span114 = CollectionsMarshal.AsSpan(list323); + ref QuestSequence reference248 = ref span114[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj207.Steps = list324; reference248 = obj207; - num++; - ref QuestSequence reference249 = ref span323[num]; + ref QuestSequence reference249 = ref span114[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -235437,50 +194842,36 @@ public static class AssemblyQuestLoader num2 = 5; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - ref QuestStep reference250 = ref span325[index2]; + Span span115 = CollectionsMarshal.AsSpan(list325); + ref QuestStep reference250 = ref span115[0]; 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> 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); + 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); reference251 = list327; - num3++; - span326[num3] = null; - num3++; - span326[num3] = null; - num3++; - span326[num3] = null; - num3++; - span326[num3] = null; + span116[2] = null; + span116[3] = null; + span116[4] = null; + span116[5] = null; obj209.RequiredQuestVariables = list326; reference250 = obj209; - index2++; - ref QuestStep reference252 = ref span325[index2]; + ref QuestStep reference252 = ref span115[1]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 2009319u, new Vector3(-287.5868f, 40.360107f, 173.72388f), 612) { Fly = true @@ -235488,81 +194879,55 @@ public static class AssemblyQuestLoader num3 = 6; List> list328 = new List>(num3); CollectionsMarshal.SetCount(list328, num3); - 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); + 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); reference253 = list329; - num4++; - span328[num4] = null; - num4++; - span328[num4] = null; - num4++; - span328[num4] = null; - num4++; - span328[num4] = null; + span118[2] = null; + span118[3] = null; + span118[4] = null; + span118[5] = null; obj210.RequiredQuestVariables = list328; reference252 = obj210; - index2++; - ref QuestStep reference254 = ref span325[index2]; + ref QuestStep reference254 = ref span115[2]; 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> 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); + 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); reference255 = list331; - num3++; - span330[num3] = null; - num3++; - span330[num3] = null; - num3++; - span330[num3] = null; - num3++; - span330[num3] = null; + span120[2] = null; + span120[3] = null; + span120[4] = null; + span120[5] = null; obj211.RequiredQuestVariables = list330; reference254 = obj211; - index2++; - ref QuestStep reference256 = ref span325[index2]; + ref QuestStep reference256 = ref span115[3]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 2009322u, new Vector3(-169.78723f, 42.160645f, -101.1521f), 612) { Fly = true @@ -235570,98 +194935,70 @@ public static class AssemblyQuestLoader num3 = 6; List> list332 = new List>(num3); CollectionsMarshal.SetCount(list332, num3); - 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); + 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); reference257 = list333; - num4++; - span332[num4] = null; - num4++; - span332[num4] = null; - num4++; - span332[num4] = null; - num4++; - span332[num4] = null; + span122[2] = null; + span122[3] = null; + span122[4] = null; + span122[5] = null; obj212.RequiredQuestVariables = list332; reference256 = obj212; - index2++; - ref QuestStep reference258 = ref span325[index2]; + ref QuestStep reference258 = ref span115[4]; 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> 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); + 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); reference259 = list335; - num3++; - span334[num3] = null; - num3++; - span334[num3] = null; - num3++; - span334[num3] = null; - num3++; - span334[num3] = null; + span124[2] = null; + span124[3] = null; + span124[4] = null; + span124[5] = null; obj213.RequiredQuestVariables = list334; reference258 = obj213; obj208.Steps = list325; reference249 = obj208; - num++; - ref QuestSequence reference260 = ref span323[num]; + ref QuestSequence reference260 = ref span114[2]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span336[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -235675,16 +195012,13 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - Span span337 = CollectionsMarshal.AsSpan(list337); - index = 0; - span337[index] = "liza"; + CollectionsMarshal.AsSpan(list337)[0] = "liza"; questRoot35.Author = list337; - index = 3; - List list338 = new List(index); - CollectionsMarshal.SetCount(list338, index); - Span span338 = CollectionsMarshal.AsSpan(list338); - num = 0; - ref QuestSequence reference261 = ref span338[num]; + num = 3; + List list338 = new List(num); + CollectionsMarshal.SetCount(list338, num); + Span span127 = CollectionsMarshal.AsSpan(list338); + ref QuestSequence reference261 = ref span127[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -235692,26 +195026,21 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj215.Steps = list339; reference261 = obj215; - num++; - ref QuestSequence reference262 = ref span338[num]; + ref QuestSequence reference262 = ref span127[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list340 = new List(index2); - CollectionsMarshal.SetCount(list340, index2); - Span span340 = CollectionsMarshal.AsSpan(list340); - num2 = 0; - ref QuestStep reference263 = ref span340[num2]; + num2 = 1; + List list340 = new List(num2); + CollectionsMarshal.SetCount(list340, num2); + ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list340)[0]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 2009323u, new Vector3(-498.92426f, 39.352905f, 492.57642f), 612) { Fly = true, @@ -235720,19 +195049,15 @@ public static class AssemblyQuestLoader num3 = 3; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span341 = CollectionsMarshal.AsSpan(list341); - num4 = 0; - span341[num4] = 8578u; - num4++; - span341[num4] = 8579u; - num4++; - span341[num4] = 8580u; + Span span128 = CollectionsMarshal.AsSpan(list341); + span128[0] = 8578u; + span128[1] = 8579u; + span128[2] = 8580u; obj217.KillEnemyDataIds = list341; reference263 = obj217; obj216.Steps = list340; reference262 = obj216; - num++; - ref QuestSequence reference264 = ref span338[num]; + ref QuestSequence reference264 = ref span127[2]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -235740,14 +195065,12 @@ public static class AssemblyQuestLoader num2 = 2; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span129 = CollectionsMarshal.AsSpan(list342); + span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span342[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -235761,33 +195084,27 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - Span span343 = CollectionsMarshal.AsSpan(list343); - index = 0; - span343[index] = "liza"; + CollectionsMarshal.AsSpan(list343)[0] = "liza"; questRoot36.Author = list343; - index = 3; - List list344 = new List(index); - CollectionsMarshal.SetCount(list344, index); - Span span344 = CollectionsMarshal.AsSpan(list344); - num = 0; - ref QuestSequence reference265 = ref span344[num]; + num = 3; + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + Span span130 = CollectionsMarshal.AsSpan(list344); + ref QuestSequence reference265 = ref span130[0]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj219.Steps = list345; reference265 = obj219; - num++; - ref QuestSequence reference266 = ref span344[num]; + ref QuestSequence reference266 = ref span130[1]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -235795,179 +195112,131 @@ public static class AssemblyQuestLoader num2 = 3; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - ref QuestStep reference267 = ref span346[index2]; + Span span131 = CollectionsMarshal.AsSpan(list346); + ref QuestStep reference267 = ref span131[0]; QuestStep obj221 = new QuestStep(EInteractionType.UseItem, 2009325u, new Vector3(-606.1647f, 53.238647f, 233.26453f), 612) { Fly = true, ItemId = 2002433u }; - 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); + 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); reference268 = list348; - num3++; - span347[num3] = null; - num3++; - span347[num3] = null; - num3++; - span347[num3] = null; - num3++; - span347[num3] = null; + span132[2] = null; + span132[3] = null; + span132[4] = null; + span132[5] = null; obj221.RequiredQuestVariables = list347; num3 = 6; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - 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); + 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); obj221.CompletionQuestVariablesFlags = list349; reference267 = obj221; - index2++; - ref QuestStep reference269 = ref span346[index2]; + ref QuestStep reference269 = ref span131[1]; QuestStep obj222 = new QuestStep(EInteractionType.UseItem, 2009326u, new Vector3(-619.31793f, 45.181885f, 267.81104f), 612) { Fly = true, ItemId = 2002433u }; - 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); + 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); reference270 = list351; - num3++; - span350[num3] = null; - num3++; - span350[num3] = null; - num3++; - span350[num3] = null; - num3++; - span350[num3] = null; + span135[2] = null; + span135[3] = null; + span135[4] = null; + span135[5] = null; obj222.RequiredQuestVariables = list350; num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - 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); + 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); obj222.CompletionQuestVariablesFlags = list352; reference269 = obj222; - index2++; - ref QuestStep reference271 = ref span346[index2]; + ref QuestStep reference271 = ref span131[2]; QuestStep obj223 = new QuestStep(EInteractionType.UseItem, 2009324u, new Vector3(-631.70825f, 44.785156f, 306.14172f), 612) { Fly = true, ItemId = 2002433u }; - 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); + 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); reference272 = list354; - num3++; - span353[num3] = null; - num3++; - span353[num3] = null; - num3++; - span353[num3] = null; - num3++; - span353[num3] = null; + span138[2] = null; + span138[3] = null; + span138[4] = null; + span138[5] = null; obj223.RequiredQuestVariables = list353; num3 = 6; List list355 = new List(num3); CollectionsMarshal.SetCount(list355, num3); - 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); + 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); obj223.CompletionQuestVariablesFlags = list355; reference271 = obj223; obj220.Steps = list346; reference266 = obj220; - num++; - ref QuestSequence reference273 = ref span344[num]; + ref QuestSequence reference273 = ref span130[2]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span356[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span141[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -235981,16 +195250,13 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - Span span357 = CollectionsMarshal.AsSpan(list357); - index = 0; - span357[index] = "liza"; + CollectionsMarshal.AsSpan(list357)[0] = "liza"; questRoot37.Author = list357; - index = 3; - List list358 = new List(index); - CollectionsMarshal.SetCount(list358, index); - Span span358 = CollectionsMarshal.AsSpan(list358); - num = 0; - ref QuestSequence reference274 = ref span358[num]; + num = 3; + List list358 = new List(num); + CollectionsMarshal.SetCount(list358, num); + Span span142 = CollectionsMarshal.AsSpan(list358); + ref QuestSequence reference274 = ref span142[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -235998,141 +195264,106 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj225.Steps = list359; reference274 = obj225; - num++; - ref QuestSequence reference275 = ref span358[num]; + ref QuestSequence reference275 = ref span142[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list360 = new List(index2); - CollectionsMarshal.SetCount(list360, index2); - Span span360 = CollectionsMarshal.AsSpan(list360); - num2 = 0; - ref QuestStep reference276 = ref span360[num2]; + num2 = 4; + List list360 = new List(num2); + CollectionsMarshal.SetCount(list360, num2); + Span span143 = CollectionsMarshal.AsSpan(list360); + ref QuestStep reference276 = ref span143[0]; QuestStep obj227 = new QuestStep(EInteractionType.Combat, 2009327u, new Vector3(-542.2294f, 44.052734f, 202.99072f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list361 = new List(num4); - CollectionsMarshal.SetCount(list361, num4); - Span span361 = CollectionsMarshal.AsSpan(list361); - num3 = 0; - span361[num3] = 8581u; + num3 = 1; + List list361 = new List(num3); + CollectionsMarshal.SetCount(list361, num3); + CollectionsMarshal.AsSpan(list361)[0] = 8581u; obj227.KillEnemyDataIds = list361; num3 = 6; List> list362 = new List>(num3); CollectionsMarshal.SetCount(list362, num3); - 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); + 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); reference277 = list363; - num4++; - span362[num4] = null; - num4++; - span362[num4] = null; - num4++; - span362[num4] = null; + span144[3] = null; + span144[4] = null; + span144[5] = null; obj227.RequiredQuestVariables = list362; reference276 = obj227; - num2++; - ref QuestStep reference278 = ref span360[num2]; + ref QuestStep reference278 = ref span143[1]; QuestStep obj228 = new QuestStep(EInteractionType.Combat, 2009328u, new Vector3(-491.72202f, 55.252808f, -17.746277f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list364 = new List(num4); - CollectionsMarshal.SetCount(list364, num4); - Span span364 = CollectionsMarshal.AsSpan(list364); - num3 = 0; - span364[num3] = 8581u; + num3 = 1; + List list364 = new List(num3); + CollectionsMarshal.SetCount(list364, num3); + CollectionsMarshal.AsSpan(list364)[0] = 8581u; obj228.KillEnemyDataIds = list364; num3 = 6; List> list365 = new List>(num3); CollectionsMarshal.SetCount(list365, num3); - 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); + 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); reference279 = list366; - num4++; - span365[num4] = null; - num4++; - span365[num4] = null; - num4++; - span365[num4] = null; + span146[3] = null; + span146[4] = null; + span146[5] = null; obj228.RequiredQuestVariables = list365; reference278 = obj228; - num2++; - ref QuestStep reference280 = ref span360[num2]; + ref QuestStep reference280 = ref span143[2]; QuestStep obj229 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-502.02115f, 71.42156f, -162.12122f), 612) { Fly = true }; - 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); + 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); reference281 = list368; - num3++; - span367[num3] = null; - num3++; - span367[num3] = null; - num3++; - span367[num3] = null; + span148[3] = null; + span148[4] = null; + span148[5] = null; obj229.RequiredQuestVariables = list367; reference280 = obj229; - num2++; - ref QuestStep reference282 = ref span360[num2]; + ref QuestStep reference282 = ref span143[3]; QuestStep obj230 = new QuestStep(EInteractionType.Combat, 2009329u, new Vector3(-500.05344f, 72.129395f, -162.43237f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -236140,41 +195371,30 @@ public static class AssemblyQuestLoader num3 = 1; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - Span span369 = CollectionsMarshal.AsSpan(list369); - num4 = 0; - span369[num4] = 8581u; + CollectionsMarshal.AsSpan(list369)[0] = 8581u; obj230.KillEnemyDataIds = list369; - 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); + 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); reference283 = list371; - num3++; - span370[num3] = null; - num3++; - span370[num3] = null; - num3++; - span370[num3] = null; + span150[3] = null; + span150[4] = null; + span150[5] = null; obj230.RequiredQuestVariables = list370; reference282 = obj230; obj226.Steps = list360; reference275 = obj226; - num++; - ref QuestSequence reference284 = ref span358[num]; + ref QuestSequence reference284 = ref span142[2]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -236182,14 +195402,12 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - span372[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span152 = CollectionsMarshal.AsSpan(list372); + span152[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span372[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -236203,33 +195421,27 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - Span span373 = CollectionsMarshal.AsSpan(list373); - index = 0; - span373[index] = "liza"; + CollectionsMarshal.AsSpan(list373)[0] = "liza"; questRoot38.Author = list373; - index = 3; - List list374 = new List(index); - CollectionsMarshal.SetCount(list374, index); - Span span374 = CollectionsMarshal.AsSpan(list374); - num = 0; - ref QuestSequence reference285 = ref span374[num]; + num = 3; + List list374 = new List(num); + CollectionsMarshal.SetCount(list374, num); + Span span153 = CollectionsMarshal.AsSpan(list374); + ref QuestSequence reference285 = ref span153[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj232.Steps = list375; reference285 = obj232; - num++; - ref QuestSequence reference286 = ref span374[num]; + ref QuestSequence reference286 = ref span153[1]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -236237,9 +195449,8 @@ public static class AssemblyQuestLoader num2 = 6; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - ref QuestStep reference287 = ref span376[index2]; + Span span154 = CollectionsMarshal.AsSpan(list376); + ref QuestStep reference287 = ref span154[0]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, null, new Vector3(-269.18445f, 63.10759f, -378.01178f), 612) { StopDistance = 1f, @@ -236250,87 +195461,61 @@ public static class AssemblyQuestLoader num3 = 1; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - Span span377 = CollectionsMarshal.AsSpan(list377); - num4 = 0; - ref ComplexCombatData reference288 = ref span377[num4]; + ref ComplexCombatData reference288 = ref CollectionsMarshal.AsSpan(list377)[0]; ComplexCombatData obj235 = new ComplexCombatData { DataId = 8582u }; - 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; + 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; obj235.CompletionQuestVariablesFlags = list378; reference288 = obj235; obj234.ComplexCombatData = list377; - 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); + 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); reference289 = list380; - num3++; - span379[num3] = null; - num3++; - span379[num3] = null; - num3++; - span379[num3] = null; + span156[3] = null; + span156[4] = null; + span156[5] = null; obj234.RequiredQuestVariables = list379; reference287 = obj234; - index2++; - ref QuestStep reference290 = ref span376[index2]; + ref QuestStep reference290 = ref span154[1]; 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> 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); + 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); reference291 = list382; - num4++; - span381[num4] = null; - num4++; - span381[num4] = null; - num4++; - span381[num4] = null; + span157[3] = null; + span157[4] = null; + span157[5] = null; questStep17.RequiredQuestVariables = list381; reference290 = questStep17; - index2++; - ref QuestStep reference292 = ref span376[index2]; + ref QuestStep reference292 = ref span154[2]; QuestStep obj236 = new QuestStep(EInteractionType.Combat, null, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612) { StopDistance = 1f, @@ -236338,90 +195523,64 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list383 = new List(num4); - CollectionsMarshal.SetCount(list383, num4); - Span span383 = CollectionsMarshal.AsSpan(list383); - num3 = 0; - ref ComplexCombatData reference293 = ref span383[num3]; + num3 = 1; + List list383 = new List(num3); + CollectionsMarshal.SetCount(list383, num3); + ref ComplexCombatData reference293 = ref CollectionsMarshal.AsSpan(list383)[0]; ComplexCombatData obj237 = new ComplexCombatData { DataId = 8582u }; - 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; + 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; obj237.CompletionQuestVariablesFlags = list384; reference293 = obj237; obj236.ComplexCombatData = list383; num3 = 6; List> list385 = new List>(num3); CollectionsMarshal.SetCount(list385, num3); - 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); + 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); reference294 = list386; - num4++; - span385[num4] = null; - num4++; - span385[num4] = null; - num4++; - span385[num4] = null; + span159[3] = null; + span159[4] = null; + span159[5] = null; obj236.RequiredQuestVariables = list385; reference292 = obj236; - index2++; - ref QuestStep reference295 = ref span376[index2]; + ref QuestStep reference295 = ref span154[3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1025053u, new Vector3(-489.06693f, 94.91285f, -332.41785f), 612); - 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); + 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); reference296 = list388; - num3++; - span387[num3] = null; - num3++; - span387[num3] = null; - num3++; - span387[num3] = null; + span160[3] = null; + span160[4] = null; + span160[5] = null; questStep18.RequiredQuestVariables = list387; reference295 = questStep18; - index2++; - ref QuestStep reference297 = ref span376[index2]; + ref QuestStep reference297 = ref span154[4]; QuestStep obj238 = new QuestStep(EInteractionType.Combat, null, new Vector3(-440.3601f, 50.476315f, 144.06042f), 612) { Fly = true, @@ -236430,104 +195589,76 @@ public static class AssemblyQuestLoader num3 = 1; List list389 = new List(num3); CollectionsMarshal.SetCount(list389, num3); - Span span389 = CollectionsMarshal.AsSpan(list389); - num4 = 0; - ref ComplexCombatData reference298 = ref span389[num4]; + ref ComplexCombatData reference298 = ref CollectionsMarshal.AsSpan(list389)[0]; ComplexCombatData obj239 = new ComplexCombatData { DataId = 8583u }; - 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; + 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; obj239.CompletionQuestVariablesFlags = list390; reference298 = obj239; obj238.ComplexCombatData = list389; - 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); + 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); reference299 = list392; - num3++; - span391[num3] = null; - num3++; - span391[num3] = null; - num3++; - span391[num3] = null; + span162[3] = null; + span162[4] = null; + span162[5] = null; obj238.RequiredQuestVariables = list391; reference297 = obj238; - index2++; - ref QuestStep reference300 = ref span376[index2]; + ref QuestStep reference300 = ref span154[5]; 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> 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); + 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); reference301 = list394; - num4++; - span393[num4] = null; - num4++; - span393[num4] = null; - num4++; - span393[num4] = null; + span163[3] = null; + span163[4] = null; + span163[5] = null; questStep19.RequiredQuestVariables = list393; reference300 = questStep19; obj233.Steps = list376; reference286 = obj233; - num++; - ref QuestSequence reference302 = ref span374[num]; + ref QuestSequence reference302 = ref span153[2]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span395[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span164[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -236541,16 +195672,13 @@ public static class AssemblyQuestLoader num = 1; List list396 = new List(num); CollectionsMarshal.SetCount(list396, num); - Span span396 = CollectionsMarshal.AsSpan(list396); - index = 0; - span396[index] = "liza"; + CollectionsMarshal.AsSpan(list396)[0] = "liza"; questRoot39.Author = list396; - index = 4; - List list397 = new List(index); - CollectionsMarshal.SetCount(list397, index); - Span span397 = CollectionsMarshal.AsSpan(list397); - num = 0; - ref QuestSequence reference303 = ref span397[num]; + num = 4; + List list397 = new List(num); + CollectionsMarshal.SetCount(list397, num); + Span span165 = CollectionsMarshal.AsSpan(list397); + ref QuestSequence reference303 = ref span165[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -236558,166 +195686,120 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - span398[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj241.Steps = list398; reference303 = obj241; - num++; - ref QuestSequence reference304 = ref span397[num]; + ref QuestSequence reference304 = ref span165[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list399 = new List(index2); - CollectionsMarshal.SetCount(list399, index2); - Span span399 = CollectionsMarshal.AsSpan(list399); - num2 = 0; - ref QuestStep reference305 = ref span399[num2]; + num2 = 5; + List list399 = new List(num2); + CollectionsMarshal.SetCount(list399, num2); + Span span166 = CollectionsMarshal.AsSpan(list399); + ref QuestStep reference305 = ref span166[0]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list400; skipConditions2.StepIf = skipStepConditions2; obj243.SkipConditions = skipConditions2; num3 = 6; List> list401 = new List>(num3); CollectionsMarshal.SetCount(list401, num3); - 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); + 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); reference306 = list402; - num4++; - span401[num4] = null; - num4++; - span401[num4] = null; - num4++; - span401[num4] = null; - num4++; - span401[num4] = null; + span168[2] = null; + span168[3] = null; + span168[4] = null; + span168[5] = null; obj243.RequiredQuestVariables = list401; reference305 = obj243; - num2++; - ref QuestStep reference307 = ref span399[num2]; + ref QuestStep reference307 = ref span166[1]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2009333u, new Vector3(180.4989f, 45.609253f, 452.78088f), 612); - 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); + 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); reference308 = list404; - num3++; - span403[num3] = null; - num3++; - span403[num3] = null; - num3++; - span403[num3] = null; - num3++; - span403[num3] = null; + span170[2] = null; + span170[3] = null; + span170[4] = null; + span170[5] = null; questStep20.RequiredQuestVariables = list403; num3 = 6; List list405 = new List(num3); CollectionsMarshal.SetCount(list405, num3); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list405; reference307 = questStep20; - num2++; - ref QuestStep reference309 = ref span399[num2]; + ref QuestStep reference309 = ref span166[2]; QuestStep obj244 = new QuestStep(EInteractionType.Interact, 2009334u, new Vector3(261.21912f, 46.036377f, 369.98547f), 612) { Fly = true }; - 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); + 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); reference310 = list407; - num3++; - span406[num3] = null; - num3++; - span406[num3] = null; - num3++; - span406[num3] = null; - num3++; - span406[num3] = null; + span173[2] = null; + span173[3] = null; + span173[4] = null; + span173[5] = null; obj244.RequiredQuestVariables = list406; reference309 = obj244; - num2++; - ref QuestStep reference311 = ref span399[num2]; + ref QuestStep reference311 = ref span166[3]; QuestStep obj245 = new QuestStep(EInteractionType.Interact, 2009335u, new Vector3(239.45972f, 41.275635f, 293.6903f), 612) { Fly = true @@ -236725,71 +195807,51 @@ public static class AssemblyQuestLoader num3 = 6; List> list408 = new List>(num3); CollectionsMarshal.SetCount(list408, num3); - 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); + 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); reference312 = list409; - num4++; - span408[num4] = null; - num4++; - span408[num4] = null; - num4++; - span408[num4] = null; - num4++; - span408[num4] = null; + span175[2] = null; + span175[3] = null; + span175[4] = null; + span175[5] = null; obj245.RequiredQuestVariables = list408; reference311 = obj245; - num2++; - ref QuestStep reference313 = ref span399[num2]; + ref QuestStep reference313 = ref span166[4]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 2009336u, new Vector3(331.6853f, 73.3501f, 142.96167f), 612) { Fly = true }; - 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); + 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); reference314 = list411; - num3++; - span410[num3] = null; - num3++; - span410[num3] = null; - num3++; - span410[num3] = null; - num3++; - span410[num3] = null; + span177[2] = null; + span177[3] = null; + span177[4] = null; + span177[5] = null; obj246.RequiredQuestVariables = list410; reference313 = obj246; obj242.Steps = list399; reference304 = obj242; - num++; - ref QuestSequence reference315 = ref span397[num]; + ref QuestSequence reference315 = ref span165[2]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -236797,31 +195859,26 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span412[index2] = new QuestStep(EInteractionType.Interact, 1025058u, new Vector3(12.344482f, 56.02146f, 260.76135f), 612) + CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1025058u, new Vector3(12.344482f, 56.02146f, 260.76135f), 612) { Fly = true }; obj247.Steps = list412; reference315 = obj247; - num++; - ref QuestSequence reference316 = ref span397[num]; + ref QuestSequence reference316 = ref span165[3]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span413[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span179[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -236835,16 +195892,13 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - Span span414 = CollectionsMarshal.AsSpan(list414); - index = 0; - span414[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list414)[0] = "plogon_enjoyer"; questRoot40.Author = list414; - index = 3; - List list415 = new List(index); - CollectionsMarshal.SetCount(list415, index); - Span span415 = CollectionsMarshal.AsSpan(list415); - num = 0; - ref QuestSequence reference317 = ref span415[num]; + num = 3; + List list415 = new List(num); + CollectionsMarshal.SetCount(list415, num); + Span span180 = CollectionsMarshal.AsSpan(list415); + ref QuestSequence reference317 = ref span180[0]; QuestSequence obj249 = new QuestSequence { Sequence = 0 @@ -236852,26 +195906,22 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span416 = CollectionsMarshal.AsSpan(list416); - index2 = 0; - span416[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj249.Steps = list416; reference317 = obj249; - num++; - ref QuestSequence reference318 = ref span415[num]; + ref QuestSequence reference318 = ref span180[1]; QuestSequence obj250 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list417 = new List(index2); - CollectionsMarshal.SetCount(list417, index2); - Span span417 = CollectionsMarshal.AsSpan(list417); - num2 = 0; - ref QuestStep reference319 = ref span417[num2]; + num2 = 3; + List list417 = new List(num2); + CollectionsMarshal.SetCount(list417, num2); + Span span181 = CollectionsMarshal.AsSpan(list417); + ref QuestStep reference319 = ref span181[0]; QuestStep obj251 = new QuestStep(EInteractionType.Combat, 2009337u, new Vector3(94.95691f, 49.05774f, 575.2803f), 612) { Fly = true, @@ -236880,39 +195930,28 @@ public static class AssemblyQuestLoader num3 = 1; List list418 = new List(num3); CollectionsMarshal.SetCount(list418, num3); - Span span418 = CollectionsMarshal.AsSpan(list418); - num4 = 0; - span418[num4] = 8584u; + CollectionsMarshal.AsSpan(list418)[0] = 8584u; obj251.KillEnemyDataIds = list418; - 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); + 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); reference320 = list420; - num3++; - span419[num3] = null; - num3++; - span419[num3] = null; - num3++; - span419[num3] = null; + span182[3] = null; + span182[4] = null; + span182[5] = null; obj251.RequiredQuestVariables = list419; reference319 = obj251; - num2++; - ref QuestStep reference321 = ref span417[num2]; + ref QuestStep reference321 = ref span181[1]; QuestStep obj252 = new QuestStep(EInteractionType.Combat, 2009338u, new Vector3(180.07166f, 47.470703f, 546.1051f), 612) { Fly = true, @@ -236921,39 +195960,28 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - Span span421 = CollectionsMarshal.AsSpan(list421); - num4 = 0; - span421[num4] = 8584u; + CollectionsMarshal.AsSpan(list421)[0] = 8584u; obj252.KillEnemyDataIds = list421; - 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); + 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); reference322 = list423; - num3++; - span422[num3] = null; - num3++; - span422[num3] = null; - num3++; - span422[num3] = null; + span184[3] = null; + span184[4] = null; + span184[5] = null; obj252.RequiredQuestVariables = list422; reference321 = obj252; - num2++; - ref QuestStep reference323 = ref span417[num2]; + ref QuestStep reference323 = ref span181[2]; QuestStep obj253 = new QuestStep(EInteractionType.Combat, 2009339u, new Vector3(291.21838f, 47.501343f, 496.75732f), 612) { Fly = true, @@ -236962,41 +195990,30 @@ public static class AssemblyQuestLoader num3 = 1; List list424 = new List(num3); CollectionsMarshal.SetCount(list424, num3); - Span span424 = CollectionsMarshal.AsSpan(list424); - num4 = 0; - span424[num4] = 8584u; + CollectionsMarshal.AsSpan(list424)[0] = 8584u; obj253.KillEnemyDataIds = list424; - 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); + 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); reference324 = list426; - num3++; - span425[num3] = null; - num3++; - span425[num3] = null; - num3++; - span425[num3] = null; + span186[3] = null; + span186[4] = null; + span186[5] = null; obj253.RequiredQuestVariables = list425; reference323 = obj253; obj250.Steps = list417; reference318 = obj250; - num++; - ref QuestSequence reference325 = ref span415[num]; + ref QuestSequence reference325 = ref span180[2]; QuestSequence obj254 = new QuestSequence { Sequence = byte.MaxValue @@ -237004,14 +196021,12 @@ public static class AssemblyQuestLoader num2 = 2; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span427 = CollectionsMarshal.AsSpan(list427); - index2 = 0; - span427[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span188 = CollectionsMarshal.AsSpan(list427); + span188[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span427[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span188[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -237029,16 +196044,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -237046,26 +196058,22 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -237076,16 +196084,14 @@ public static class AssemblyQuestLoader }, ItemId = 2002437u }; - num2++; - span4[num2] = new QuestStep(EInteractionType.UseItem, 2009340u, new Vector3(90.01294f, 74.44873f, -566.03345f), 612) + span2[1] = new QuestStep(EInteractionType.UseItem, 2009340u, new Vector3(90.01294f, 74.44873f, -566.03345f), 612) { Fly = true, ItemId = 2002437u }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -237093,15 +196099,13 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - index2++; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -237115,26 +196119,21 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list6)[0] = "plogon_enjoyer"; questRoot2.Author = list6; - index = 3; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 3; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span4[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones, @@ -237148,8 +196147,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span4[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -237157,9 +196155,8 @@ public static class AssemblyQuestLoader num2 = 6; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - ref QuestStep reference6 = ref span9[index2]; + Span span5 = CollectionsMarshal.AsSpan(list9); + ref QuestStep reference6 = ref span5[0]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1025120u, new Vector3(-333.66907f, 43.042835f, -22.201904f), 612) { Fly = true @@ -237167,35 +196164,25 @@ public static class AssemblyQuestLoader int num3 = 6; List> list10 = new List>(num3); CollectionsMarshal.SetCount(list10, num3); - 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); + 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); reference7 = list11; - num4++; - span10[num4] = null; - num4++; - span10[num4] = null; + span6[4] = null; + span6[5] = null; obj6.RequiredQuestVariables = list10; - num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = new DialogueChoice + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -237203,8 +196190,7 @@ public static class AssemblyQuestLoader }; obj6.DialogueChoices = list12; reference6 = obj6; - index2++; - ref QuestStep reference8 = ref span9[index2]; + ref QuestStep reference8 = ref span5[1]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 1025062u, new Vector3(-345.7237f, 43.09622f, 177.84387f), 612) { Fly = true, @@ -237213,44 +196199,31 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num4 = 0; - span13[num4] = 8587u; + CollectionsMarshal.AsSpan(list13)[0] = 8587u; obj7.KillEnemyDataIds = list13; - 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); + 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); reference9 = list15; - num3++; - span14[num3] = null; - num3++; - span14[num3] = null; + span8[4] = null; + span8[5] = null; obj7.RequiredQuestVariables = list14; num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num4 = 0; - span16[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -237258,46 +196231,34 @@ public static class AssemblyQuestLoader }; obj7.DialogueChoices = list16; reference8 = obj7; - index2++; - ref QuestStep reference10 = ref span9[index2]; + ref QuestStep reference10 = ref span5[2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1025119u, new Vector3(-488.18192f, 81.128265f, -191.33289f), 612) { Fly = true }; - 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); + 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); reference11 = list18; - num3++; - span17[num3] = null; - num3++; - span17[num3] = null; + span10[4] = null; + span10[5] = null; obj8.RequiredQuestVariables = list17; num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span19 = CollectionsMarshal.AsSpan(list19); - num4 = 0; - span19[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list19)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -237305,52 +196266,39 @@ public static class AssemblyQuestLoader }; obj8.DialogueChoices = list19; reference10 = obj8; - index2++; - ref QuestStep reference12 = ref span9[index2]; + ref QuestStep reference12 = ref span5[3]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, 1025061u, new Vector3(-488.18192f, 81.128265f, -191.33289f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list20 = new List(num4); - CollectionsMarshal.SetCount(list20, num4); - Span span20 = CollectionsMarshal.AsSpan(list20); - num3 = 0; - span20[num3] = 8586u; + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = 8586u; obj9.KillEnemyDataIds = list20; num3 = 6; List> list21 = new List>(num3); CollectionsMarshal.SetCount(list21, num3); - 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); + 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); reference13 = list22; - num4++; - span21[num4] = null; - num4++; - span21[num4] = null; + span12[4] = null; + span12[5] = null; obj9.RequiredQuestVariables = list21; - num4 = 1; - List list23 = new List(num4); - CollectionsMarshal.SetCount(list23, num4); - Span span23 = CollectionsMarshal.AsSpan(list23); - num3 = 0; - span23[num3] = new DialogueChoice + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -237358,8 +196306,7 @@ public static class AssemblyQuestLoader }; obj9.DialogueChoices = list23; reference12 = obj9; - index2++; - ref QuestStep reference14 = ref span9[index2]; + ref QuestStep reference14 = ref span5[4]; QuestStep obj10 = new QuestStep(EInteractionType.Combat, 1025060u, new Vector3(-572.9916f, 112.44218f, -229.32788f), 612) { Fly = true, @@ -237368,42 +196315,30 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = 8585u; + CollectionsMarshal.AsSpan(list24)[0] = 8585u; obj10.KillEnemyDataIds = list24; - 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); + 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); reference15 = list26; - num3++; - span25[num3] = null; - num3++; - span25[num3] = null; + span14[4] = null; + span14[5] = null; obj10.RequiredQuestVariables = list25; num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - num4 = 0; - span27[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -237411,46 +196346,34 @@ public static class AssemblyQuestLoader }; obj10.DialogueChoices = list27; reference14 = obj10; - index2++; - ref QuestStep reference16 = ref span9[index2]; + ref QuestStep reference16 = ref span5[5]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1025118u, new Vector3(-572.96106f, 112.436066f, -229.29736f), 612) { Fly = true }; - 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); + 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); reference17 = list29; - num3++; - span28[num3] = null; - num3++; - span28[num3] = null; + span16[4] = null; + span16[5] = null; obj11.RequiredQuestVariables = list28; num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num4 = 0; - span30[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANANA402_03051_Q1_000_000"), @@ -237460,24 +196383,21 @@ public static class AssemblyQuestLoader reference16 = obj11; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference18 = ref span7[num]; + ref QuestSequence reference18 = ref span4[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - num2++; - span31[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -237491,16 +196411,13 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list32)[0] = "plogon_enjoyer"; questRoot3.Author = list32; - index = 3; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref QuestSequence reference19 = ref span33[num]; + num = 3; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span19 = CollectionsMarshal.AsSpan(list33); + ref QuestSequence reference19 = ref span19[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -237508,58 +196425,45 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj13.Steps = list34; reference19 = obj13; - num++; - ref QuestSequence reference20 = ref span33[num]; + ref QuestSequence reference20 = ref span19[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref QuestStep reference21 = ref span35[num2]; + num2 = 4; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span20 = CollectionsMarshal.AsSpan(list35); + ref QuestStep reference21 = ref span20[0]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1025066u, new Vector3(-155.90149f, 66.2623f, -366.93372f), 612) { Fly = true, Emote = EEmote.Rally }; - 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); + 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); reference22 = list37; - num3++; - span36[num3] = null; - num3++; - span36[num3] = null; - num3++; - span36[num3] = null; + span21[3] = null; + span21[4] = null; + span21[5] = null; obj15.RequiredQuestVariables = list36; reference21 = obj15; - num2++; - ref QuestStep reference23 = ref span35[num2]; + ref QuestStep reference23 = ref span20[1]; QuestStep obj16 = new QuestStep(EInteractionType.Emote, 1025064u, new Vector3(185.62585f, 68.93902f, -372.15234f), 612) { Fly = true, @@ -237568,62 +196472,44 @@ public static class AssemblyQuestLoader num3 = 6; List> list38 = new List>(num3); CollectionsMarshal.SetCount(list38, num3); - 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); + 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); reference24 = list39; - num4++; - span38[num4] = null; - num4++; - span38[num4] = null; - num4++; - span38[num4] = null; - num4++; - span38[num4] = null; + span22[2] = null; + span22[3] = null; + span22[4] = null; + span22[5] = null; obj16.RequiredQuestVariables = list38; reference23 = obj16; - num2++; - ref QuestStep reference25 = ref span35[num2]; + ref QuestStep reference25 = ref span20[2]; QuestStep obj17 = new QuestStep(EInteractionType.Emote, 1025063u, new Vector3(291.73718f, 73.622604f, -496.87955f), 612) { Fly = true, Emote = EEmote.Soothe }; - 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); + 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); reference26 = list41; - num3++; - span40[num3] = null; - num3++; - span40[num3] = null; - num3++; - span40[num3] = null; - num3++; - span40[num3] = null; + span23[2] = null; + span23[3] = null; + span23[4] = null; + span23[5] = null; obj17.RequiredQuestVariables = list40; reference25 = obj17; - num2++; - ref QuestStep reference27 = ref span35[num2]; + ref QuestStep reference27 = ref span20[3]; QuestStep obj18 = new QuestStep(EInteractionType.Emote, 1025065u, new Vector3(-73.04492f, 62.044453f, -878.78235f), 612) { Fly = true, @@ -237632,32 +196518,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list42 = new List>(num3); CollectionsMarshal.SetCount(list42, num3); - 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); + 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); reference28 = list43; - num4++; - span42[num4] = null; - num4++; - span42[num4] = null; - num4++; - span42[num4] = null; + span24[3] = null; + span24[4] = null; + span24[5] = null; obj18.RequiredQuestVariables = list42; reference27 = obj18; obj14.Steps = list35; reference20 = obj14; - num++; - ref QuestSequence reference29 = ref span33[num]; + ref QuestSequence reference29 = ref span19[2]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -237665,15 +196542,13 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span25 = CollectionsMarshal.AsSpan(list44); + span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - index2++; - span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -237687,33 +196562,27 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list45)[0] = "plogon_enjoyer"; questRoot4.Author = list45; - index = 4; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference30 = ref span46[num]; + num = 4; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span26 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference30 = ref span26[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj20.Steps = list47; reference30 = obj20; - num++; - ref QuestSequence reference31 = ref span46[num]; + ref QuestSequence reference31 = ref span26[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -237721,40 +196590,32 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - ref QuestStep reference32 = ref span48[index2]; + ref QuestStep reference32 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 1025067u, new Vector3(39.04773f, 43.373318f, -221.9425f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list49 = new List(num4); - CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = 8588u; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = 8588u; obj22.KillEnemyDataIds = list49; reference32 = obj22; obj21.Steps = list48; reference31 = obj21; - num++; - ref QuestSequence reference33 = ref span46[num]; + ref QuestSequence reference33 = ref span26[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj23.Steps = list50; reference33 = obj23; - num++; - ref QuestSequence reference34 = ref span46[num]; + ref QuestSequence reference34 = ref span26[3]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -237762,14 +196623,12 @@ public static class AssemblyQuestLoader num2 = 2; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span27 = CollectionsMarshal.AsSpan(list51); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -237783,33 +196642,27 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list52)[0] = "plogon_enjoyer"; questRoot5.Author = list52; - index = 3; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference35 = ref span53[num]; + num = 3; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span28 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference35 = ref span28[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj25.Steps = list54; reference35 = obj25; - num++; - ref QuestSequence reference36 = ref span53[num]; + ref QuestSequence reference36 = ref span28[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -237817,9 +196670,8 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference37 = ref span55[index2]; + Span span29 = CollectionsMarshal.AsSpan(list55); + ref QuestStep reference37 = ref span29[0]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(-169.52124f, 41.96321f, -23.855082f), 612) { Fly = true, @@ -237829,38 +196681,27 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span56 = CollectionsMarshal.AsSpan(list56); - num4 = 0; - span56[num4] = 8589u; + CollectionsMarshal.AsSpan(list56)[0] = 8589u; obj27.KillEnemyDataIds = list56; obj27.CombatDelaySecondsAtStart = 1f; - 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); + 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); reference38 = list58; - num3++; - span57[num3] = null; - num3++; - span57[num3] = null; - num3++; - span57[num3] = null; + span30[3] = null; + span30[4] = null; + span30[5] = null; obj27.RequiredQuestVariables = list57; reference37 = obj27; - index2++; - ref QuestStep reference39 = ref span55[index2]; + ref QuestStep reference39 = ref span29[1]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, null, new Vector3(-259.28268f, 49.18244f, 33.798065f), 612) { Fly = true, @@ -237870,38 +196711,27 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span59 = CollectionsMarshal.AsSpan(list59); - num4 = 0; - span59[num4] = 8589u; + CollectionsMarshal.AsSpan(list59)[0] = 8589u; obj28.KillEnemyDataIds = list59; obj28.CombatDelaySecondsAtStart = 1f; - 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); + 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); reference40 = list61; - num3++; - span60[num3] = null; - num3++; - span60[num3] = null; - num3++; - span60[num3] = null; + span31[3] = null; + span31[4] = null; + span31[5] = null; obj28.RequiredQuestVariables = list60; reference39 = obj28; - index2++; - ref QuestStep reference41 = ref span55[index2]; + ref QuestStep reference41 = ref span29[2]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, null, new Vector3(-219.26901f, 43.36f, 90.7601f), 612) { Fly = true, @@ -237911,55 +196741,42 @@ public static class AssemblyQuestLoader num3 = 1; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span62 = CollectionsMarshal.AsSpan(list62); - num4 = 0; - span62[num4] = 8589u; + CollectionsMarshal.AsSpan(list62)[0] = 8589u; obj29.KillEnemyDataIds = list62; obj29.CombatDelaySecondsAtStart = 1f; - 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); + 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); reference42 = list64; - num3++; - span63[num3] = null; - num3++; - span63[num3] = null; - num3++; - span63[num3] = null; + span32[3] = null; + span32[4] = null; + span32[5] = null; obj29.RequiredQuestVariables = list63; reference41 = obj29; obj26.Steps = list55; reference36 = obj26; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span28[2]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -237973,16 +196790,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot6.Author = list66; - index = 4; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference44 = ref span67[num]; + num = 4; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span34 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference44 = ref span34[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -237990,30 +196804,24 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj31.Steps = list68; reference44 = obj31; - num++; - ref QuestSequence reference45 = ref span67[num]; + ref QuestSequence reference45 = ref span34[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj32.Steps = list69; reference45 = obj32; - num++; - ref QuestSequence reference46 = ref span67[num]; + ref QuestSequence reference46 = ref span34[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -238021,9 +196829,8 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - ref QuestStep reference47 = ref span70[index2]; + Span span35 = CollectionsMarshal.AsSpan(list70); + ref QuestStep reference47 = ref span35[0]; QuestStep obj34 = new QuestStep(EInteractionType.Action, 1025170u, new Vector3(253.10132f, 45.434376f, 416.98328f), 612) { Fly = true, @@ -238032,65 +196839,49 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - 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); + 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); obj34.CompletionQuestVariablesFlags = list71; reference47 = obj34; - index2++; - ref QuestStep reference48 = ref span70[index2]; + ref QuestStep reference48 = ref span35[1]; QuestStep obj35 = new QuestStep(EInteractionType.Action, 1025171u, new Vector3(349.8435f, 51.839485f, 229.66345f), 612) { Fly = true, Action = EAction.BuffetGriffin }; - 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); + 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); obj35.CompletionQuestVariablesFlags = list72; reference48 = obj35; obj33.Steps = list70; reference46 = obj33; - num++; - ref QuestSequence reference49 = ref span67[num]; + ref QuestSequence reference49 = ref span34[3]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span73[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Mount = false @@ -238104,16 +196895,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "liza"; + CollectionsMarshal.AsSpan(list74)[0] = "liza"; questRoot7.Author = list74; - index = 3; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference50 = ref span75[num]; + num = 3; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span39 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference50 = ref span39[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -238121,26 +196909,21 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj37.Steps = list76; reference50 = obj37; - num++; - ref QuestSequence reference51 = ref span75[num]; + ref QuestSequence reference51 = ref span39[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list77 = new List(index2); - CollectionsMarshal.SetCount(list77, index2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num2 = 0; - ref QuestStep reference52 = ref span77[num2]; + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 8590u, new Vector3(-50.436653f, 41.158955f, -264.4358f), 612) { Fly = true, @@ -238151,9 +196934,7 @@ public static class AssemblyQuestLoader num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list78)[0] = new ComplexCombatData { DataId = 7030u }; @@ -238167,8 +196948,7 @@ public static class AssemblyQuestLoader reference52 = obj39; obj38.Steps = list77; reference51 = obj38; - num++; - ref QuestSequence reference53 = ref span75[num]; + ref QuestSequence reference53 = ref span39[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -238176,14 +196956,12 @@ public static class AssemblyQuestLoader num2 = 2; 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(-25.868523f, 56.02146f, 231.54045f), 612) + Span span40 = CollectionsMarshal.AsSpan(list79); + span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -238197,33 +196975,27 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot8.Author = list80; - index = 3; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference54 = ref span81[num]; + num = 3; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span41 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference54 = ref span41[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj41.Steps = list82; reference54 = obj41; - num++; - ref QuestSequence reference55 = ref span81[num]; + ref QuestSequence reference55 = ref span41[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -238231,302 +197003,221 @@ public static class AssemblyQuestLoader num2 = 6; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference56 = ref span83[index2]; + Span span42 = CollectionsMarshal.AsSpan(list83); + ref QuestStep reference56 = ref span42[0]; 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 }; - num4 = 1; - List list84 = new List(num4); - CollectionsMarshal.SetCount(list84, num4); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = 8591u; + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = 8591u; obj43.KillEnemyDataIds = list84; 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++; - 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); + 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); reference57 = list86; - num4++; - span85[num4] = null; - num4++; - span85[num4] = null; - num4++; - span85[num4] = null; + span43[3] = null; + span43[4] = null; + span43[5] = null; obj43.RequiredQuestVariables = list85; reference56 = obj43; - index2++; - ref QuestStep reference58 = ref span83[index2]; + ref QuestStep reference58 = ref span42[1]; QuestStep obj44 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(101.304565f, 41.031494f, -180.89569f), 612) { ItemId = 2002439u }; - 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); + 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); reference59 = list88; - num3++; - span87[num3] = null; - num3++; - span87[num3] = null; - num3++; - span87[num3] = null; + span45[3] = null; + span45[4] = null; + span45[5] = null; obj44.RequiredQuestVariables = list87; 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((byte)8, 0, EQuestWorkMode.Bitwise); + 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); obj44.CompletionQuestVariablesFlags = list89; reference58 = obj44; - index2++; - ref QuestStep reference60 = ref span83[index2]; + ref QuestStep reference60 = ref span42[2]; 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 }; - num4 = 1; - List list90 = new List(num4); - CollectionsMarshal.SetCount(list90, num4); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = 8591u; + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = 8591u; obj45.KillEnemyDataIds = list90; num3 = 6; List> list91 = new List>(num3); CollectionsMarshal.SetCount(list91, num3); - 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); + 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); reference61 = list92; - num4++; - span91[num4] = null; - num4++; - span91[num4] = null; - num4++; - span91[num4] = null; + span48[3] = null; + span48[4] = null; + span48[5] = null; obj45.RequiredQuestVariables = list91; reference60 = obj45; - index2++; - ref QuestStep reference62 = ref span83[index2]; + ref QuestStep reference62 = ref span42[3]; QuestStep obj46 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(136.40039f, 50.369995f, -397.69592f), 612) { ItemId = 2002439u }; - 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); + 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); reference63 = list94; - num3++; - span93[num3] = null; - num3++; - span93[num3] = null; - num3++; - span93[num3] = null; + span50[3] = null; + span50[4] = null; + span50[5] = null; obj46.RequiredQuestVariables = list93; num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - 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); + 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); obj46.CompletionQuestVariablesFlags = list95; reference62 = obj46; - index2++; - ref QuestStep reference64 = ref span83[index2]; + ref QuestStep reference64 = ref span42[4]; 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 }; - num4 = 1; - List list96 = new List(num4); - CollectionsMarshal.SetCount(list96, num4); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = 8591u; + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = 8591u; obj47.KillEnemyDataIds = list96; num3 = 6; List> list97 = new List>(num3); CollectionsMarshal.SetCount(list97, num3); - 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); + 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); reference65 = list98; - num4++; - span97[num4] = null; - num4++; - span97[num4] = null; - num4++; - span97[num4] = null; + span53[3] = null; + span53[4] = null; + span53[5] = null; obj47.RequiredQuestVariables = list97; reference64 = obj47; - index2++; - ref QuestStep reference66 = ref span83[index2]; + ref QuestStep reference66 = ref span42[5]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 8591u, new Vector3(12.588623f, 41.672363f, -294.02612f), 612) { ItemId = 2002439u }; - 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); + 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); reference67 = list100; - num3++; - span99[num3] = null; - num3++; - span99[num3] = null; - num3++; - span99[num3] = null; + span55[3] = null; + span55[4] = null; + span55[5] = null; obj48.RequiredQuestVariables = list99; num3 = 6; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - 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); + 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); obj48.CompletionQuestVariablesFlags = list101; reference66 = obj48; obj42.Steps = list83; reference55 = obj42; - num++; - ref QuestSequence reference68 = ref span81[num]; + ref QuestSequence reference68 = ref span41[2]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span102[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -238540,16 +197231,13 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list103)[0] = "plogon_enjoyer"; questRoot9.Author = list103; - index = 6; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference69 = ref span104[num]; + num = 6; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span59 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference69 = ref span59[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -238557,33 +197245,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj50.Steps = list105; reference69 = obj50; - num++; - ref QuestSequence reference70 = ref span104[num]; + ref QuestSequence reference70 = ref span59[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj51.Steps = list106; reference70 = obj51; - num++; - ref QuestSequence reference71 = ref span104[num]; + ref QuestSequence reference71 = ref span59[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -238591,33 +197273,27 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) { Fly = true }; obj52.Steps = list107; reference71 = obj52; - num++; - ref QuestSequence reference72 = ref span104[num]; + ref QuestSequence reference72 = ref span59[3]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj53.Steps = list108; reference72 = obj53; - num++; - ref QuestSequence reference73 = ref span104[num]; + ref QuestSequence reference73 = ref span59[4]; QuestSequence obj54 = new QuestSequence { Sequence = 4 @@ -238625,31 +197301,26 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1025072u, new Vector3(94.04126f, 41.171764f, 376.57727f), 612) { Fly = true }; obj54.Steps = list109; reference73 = obj54; - num++; - ref QuestSequence reference74 = ref span104[num]; + ref QuestSequence reference74 = ref span59[5]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -238663,16 +197334,13 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; questRoot10.Author = list111; - index = 4; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference75 = ref span112[num]; + num = 4; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span61 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference75 = ref span61[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -238680,34 +197348,28 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj56.Steps = list113; reference75 = obj56; - num++; - ref QuestSequence reference76 = ref span112[num]; + ref QuestSequence reference76 = ref span61[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, ItemId = 2002441u }; obj57.Steps = list114; reference76 = obj57; - num++; - ref QuestSequence reference77 = ref span112[num]; + ref QuestSequence reference77 = ref span61[2]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -238715,40 +197377,33 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - ref QuestStep reference78 = ref span115[index2]; + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list115)[0]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, 2009349u, new Vector3(798.2451f, 78.93494f, 345.26575f), 612) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list116 = new List(num4); - CollectionsMarshal.SetCount(list116, num4); - Span span116 = CollectionsMarshal.AsSpan(list116); - num3 = 0; - span116[num3] = 8592u; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = 8592u; obj59.KillEnemyDataIds = list116; reference78 = obj59; obj58.Steps = list115; reference77 = obj58; - num++; - ref QuestSequence reference79 = ref span112[num]; + ref QuestSequence reference79 = ref span61[3]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span117[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span62[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -238762,16 +197417,13 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; questRoot11.Author = list118; - index = 5; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference80 = ref span119[num]; + num = 5; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span63 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference80 = ref span63[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -238779,33 +197431,27 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj61.Steps = list120; reference80 = obj61; - num++; - ref QuestSequence reference81 = ref span119[num]; + ref QuestSequence reference81 = ref span63[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj62.Steps = list121; reference81 = obj62; - num++; - ref QuestSequence reference82 = ref span119[num]; + ref QuestSequence reference82 = ref span63[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -238813,34 +197459,28 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Snipe, 2009350u, new Vector3(620.29456f, 48.599854f, 349.87402f), 612) + CollectionsMarshal.AsSpan(list122)[0] = 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; - num++; - ref QuestSequence reference83 = ref span119[num]; + ref QuestSequence reference83 = ref span63[3]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj64.Steps = list123; reference83 = obj64; - num++; - ref QuestSequence reference84 = ref span119[num]; + ref QuestSequence reference84 = ref span63[4]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -238848,14 +197488,12 @@ public static class AssemblyQuestLoader num2 = 2; 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(-25.868523f, 56.02146f, 231.54045f), 612) + Span span64 = CollectionsMarshal.AsSpan(list124); + span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -238869,33 +197507,27 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot12.Author = list125; - index = 4; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference85 = ref span126[num]; + num = 4; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span65 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference85 = ref span65[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj66.Steps = list127; reference85 = obj66; - num++; - ref QuestSequence reference86 = ref span126[num]; + ref QuestSequence reference86 = ref span65[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -238903,23 +197535,18 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.Interact, 1024777u, new Vector3(-41.641907f, 55.97816f, 211.38318f), 612); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1024777u, new Vector3(-41.641907f, 55.97816f, 211.38318f), 612); obj67.Steps = list128; reference86 = obj67; - num++; - ref QuestSequence reference87 = ref span126[num]; + ref QuestSequence reference87 = ref span65[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list129 = new List(index2); - CollectionsMarshal.SetCount(list129, index2); - Span span129 = CollectionsMarshal.AsSpan(list129); - num2 = 0; - ref QuestStep reference88 = ref span129[num2]; + num2 = 1; + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + ref QuestStep reference88 = ref CollectionsMarshal.AsSpan(list129)[0]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, null, new Vector3(482.93036f, 42.43753f, 350.85095f), 612) { StopDistance = 0.5f, @@ -238930,15 +197557,12 @@ public static class AssemblyQuestLoader num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - num4 = 0; - span130[num4] = 8593u; + CollectionsMarshal.AsSpan(list130)[0] = 8593u; obj69.KillEnemyDataIds = list130; reference88 = obj69; obj68.Steps = list129; reference87 = obj68; - num++; - ref QuestSequence reference89 = ref span126[num]; + ref QuestSequence reference89 = ref span65[3]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -238946,14 +197570,12 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span66 = CollectionsMarshal.AsSpan(list131); + span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -238967,33 +197589,27 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot13.Author = list132; - index = 5; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference90 = ref span133[num]; + num = 5; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span67 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference90 = ref span67[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj71.Steps = list134; reference90 = obj71; - num++; - ref QuestSequence reference91 = ref span133[num]; + ref QuestSequence reference91 = ref span67[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -239001,30 +197617,24 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612) { Fly = true }; obj72.Steps = list135; reference91 = obj72; - num++; - ref QuestSequence reference92 = ref span133[num]; + ref QuestSequence reference92 = ref span67[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj73.Steps = list136; reference92 = obj73; - num++; - ref QuestSequence reference93 = ref span133[num]; + ref QuestSequence reference93 = ref span67[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -239032,28 +197642,23 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2009353u, new Vector3(269.1233f, 39.78015f, -202.01422f), 612); obj74.Steps = list137; reference93 = obj74; - num++; - ref QuestSequence reference94 = ref span133[num]; + ref QuestSequence reference94 = ref span67[4]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -239067,16 +197672,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot14.Author = list139; - index = 3; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference95 = ref span140[num]; + num = 3; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span69 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference95 = ref span69[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 @@ -239084,87 +197686,65 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj76.Steps = list141; reference95 = obj76; - num++; - ref QuestSequence reference96 = ref span140[num]; + ref QuestSequence reference96 = ref span69[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list142 = new List(index2); - CollectionsMarshal.SetCount(list142, index2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num2 = 0; - ref QuestStep reference97 = ref span142[num2]; + num2 = 4; + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + Span span70 = CollectionsMarshal.AsSpan(list142); + ref QuestStep reference97 = ref span70[0]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2009357u, new Vector3(-173.3883f, 58.1521f, -449.48505f), 612) { Fly = true, ItemId = 2002446u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list143 = new List(num4); - CollectionsMarshal.SetCount(list143, num4); - Span span143 = CollectionsMarshal.AsSpan(list143); - num3 = 0; - span143[num3] = 8594u; + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + CollectionsMarshal.AsSpan(list143)[0] = 8594u; obj78.KillEnemyDataIds = list143; num3 = 6; List> list144 = new List>(num3); CollectionsMarshal.SetCount(list144, num3); - 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); + 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); reference98 = list145; - num4++; - span144[num4] = null; - num4++; - span144[num4] = null; + span71[4] = null; + span71[5] = null; obj78.RequiredQuestVariables = list144; - 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); + 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); obj78.CompletionQuestVariablesFlags = list146; reference97 = obj78; - num2++; - ref QuestStep reference99 = ref span142[num2]; + ref QuestStep reference99 = ref span70[1]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, 2009356u, new Vector3(-210.2846f, 59.250732f, -512.0775f), 612) { Fly = true, @@ -239174,119 +197754,83 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span147 = CollectionsMarshal.AsSpan(list147); - num4 = 0; - span147[num4] = 8594u; + CollectionsMarshal.AsSpan(list147)[0] = 8594u; obj79.KillEnemyDataIds = list147; - 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); + 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); reference100 = list149; - num3++; - span148[num3] = null; - num3++; - span148[num3] = null; + span74[4] = null; + span74[5] = null; obj79.RequiredQuestVariables = list148; num3 = 6; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - 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); + 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); obj79.CompletionQuestVariablesFlags = list150; reference99 = obj79; - num2++; - ref QuestStep reference101 = ref span142[num2]; + ref QuestStep reference101 = ref span70[2]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2009355u, new Vector3(-210.98651f, 59.28125f, -668.6351f), 612) { Fly = true, ItemId = 2002446u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list151 = new List(num4); - CollectionsMarshal.SetCount(list151, num4); - Span span151 = CollectionsMarshal.AsSpan(list151); - num3 = 0; - span151[num3] = 8594u; + num3 = 1; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + CollectionsMarshal.AsSpan(list151)[0] = 8594u; obj80.KillEnemyDataIds = list151; num3 = 6; List> list152 = new List>(num3); CollectionsMarshal.SetCount(list152, num3); - 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); + 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); reference102 = list153; - num4++; - span152[num4] = null; - num4++; - span152[num4] = null; + span77[4] = null; + span77[5] = null; obj80.RequiredQuestVariables = list152; - 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); + 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); obj80.CompletionQuestVariablesFlags = list154; reference101 = obj80; - num2++; - ref QuestStep reference103 = ref span142[num2]; + ref QuestStep reference103 = ref span70[3]; QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2009358u, new Vector3(-171.03839f, 59.098145f, -750.3014f), 612) { Fly = true, @@ -239296,60 +197840,42 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num4 = 0; - span155[num4] = 8594u; + CollectionsMarshal.AsSpan(list155)[0] = 8594u; obj81.KillEnemyDataIds = list155; - 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); + 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); reference104 = list157; - num3++; - span156[num3] = null; - num3++; - span156[num3] = null; + span80[4] = null; + span80[5] = null; obj81.RequiredQuestVariables = list156; num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - 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); + 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); obj81.CompletionQuestVariablesFlags = list158; reference103 = obj81; obj77.Steps = list142; reference96 = obj77; - num++; - ref QuestSequence reference105 = ref span140[num]; + ref QuestSequence reference105 = ref span69[2]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -239357,14 +197883,12 @@ public static class AssemblyQuestLoader num2 = 2; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span83 = CollectionsMarshal.AsSpan(list159); + span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span83[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -239378,33 +197902,27 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot15.Author = list160; - index = 4; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference106 = ref span161[num]; + num = 4; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span84 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference106 = ref span84[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj83.Steps = list162; reference106 = obj83; - num++; - ref QuestSequence reference107 = ref span161[num]; + ref QuestSequence reference107 = ref span84[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -239412,9 +197930,8 @@ public static class AssemblyQuestLoader num2 = 12; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - ref QuestStep reference108 = ref span163[index2]; + Span span85 = CollectionsMarshal.AsSpan(list163); + ref QuestStep reference108 = ref span85[0]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-524.1742f, 122.74836f, -452.27313f), 612) { Fly = true, @@ -239422,738 +197939,499 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list164; skipConditions.StepIf = skipStepConditions; obj85.SkipConditions = skipConditions; num3 = 6; List> list165 = new List>(num3); CollectionsMarshal.SetCount(list165, num3); - 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); + 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); reference109 = list166; - num4++; - span165[num4] = null; - num4++; - span165[num4] = null; - num4++; - span165[num4] = null; - num4++; - span165[num4] = null; + span87[2] = null; + span87[3] = null; + span87[4] = null; + span87[5] = null; obj85.RequiredQuestVariables = list165; reference108 = obj85; - index2++; - ref QuestStep reference110 = ref span163[index2]; + ref QuestStep reference110 = ref span85[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2009361u, new Vector3(-522.6368f, 122.72827f, -452.14008f), 612); - 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); + 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); reference111 = list168; - num3++; - span167[num3] = null; - num3++; - span167[num3] = null; - num3++; - span167[num3] = null; - num3++; - span167[num3] = null; + span89[2] = null; + span89[3] = null; + span89[4] = null; + span89[5] = null; questStep.RequiredQuestVariables = list167; num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - 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); + 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); questStep.CompletionQuestVariablesFlags = list169; reference110 = questStep; - index2++; - ref QuestStep reference112 = ref span163[index2]; + ref QuestStep reference112 = ref span85[2]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list170; skipConditions2.StepIf = skipStepConditions2; obj86.SkipConditions = skipConditions2; num3 = 6; List> list171 = new List>(num3); CollectionsMarshal.SetCount(list171, num3); - 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); + 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); reference113 = list172; - num4++; - span171[num4] = null; - num4++; - span171[num4] = null; - num4++; - span171[num4] = null; - num4++; - span171[num4] = null; + span93[2] = null; + span93[3] = null; + span93[4] = null; + span93[5] = null; obj86.RequiredQuestVariables = list171; reference112 = obj86; - index2++; - ref QuestStep reference114 = ref span163[index2]; + ref QuestStep reference114 = ref span85[3]; 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> 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); + 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); reference115 = list174; - num3++; - span173[num3] = null; - num3++; - span173[num3] = null; - num3++; - span173[num3] = null; - num3++; - span173[num3] = null; + span95[2] = null; + span95[3] = null; + span95[4] = null; + span95[5] = null; questStep2.RequiredQuestVariables = list173; num3 = 6; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list175; reference114 = questStep2; - index2++; - ref QuestStep reference116 = ref span163[index2]; + ref QuestStep reference116 = ref span85[4]; 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(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list176; skipConditions3.StepIf = skipStepConditions3; obj87.SkipConditions = skipConditions3; num3 = 6; List> list177 = new List>(num3); CollectionsMarshal.SetCount(list177, num3); - 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); + 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); reference117 = list178; - num4++; - span177[num4] = null; - num4++; - span177[num4] = null; - num4++; - span177[num4] = null; - num4++; - span177[num4] = null; + span99[2] = null; + span99[3] = null; + span99[4] = null; + span99[5] = null; obj87.RequiredQuestVariables = list177; reference116 = obj87; - index2++; - ref QuestStep reference118 = ref span163[index2]; + ref QuestStep reference118 = ref span85[5]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2009359u, new Vector3(-395.62067f, 128.83191f, -509.72766f), 612); - 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); + 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); reference119 = list180; - num3++; - span179[num3] = null; - num3++; - span179[num3] = null; - num3++; - span179[num3] = null; - num3++; - span179[num3] = null; + span101[2] = null; + span101[3] = null; + span101[4] = null; + span101[5] = null; questStep3.RequiredQuestVariables = list179; num3 = 6; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list181; reference118 = questStep3; - index2++; - ref QuestStep reference120 = ref span163[index2]; + ref QuestStep reference120 = ref span85[6]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list182; skipConditions4.StepIf = skipStepConditions4; obj88.SkipConditions = skipConditions4; num3 = 6; List> list183 = new List>(num3); CollectionsMarshal.SetCount(list183, num3); - 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); + 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); reference121 = list184; - num4++; - span183[num4] = null; - num4++; - span183[num4] = null; - num4++; - span183[num4] = null; - num4++; - span183[num4] = null; + span105[2] = null; + span105[3] = null; + span105[4] = null; + span105[5] = null; obj88.RequiredQuestVariables = list183; reference120 = obj88; - index2++; - ref QuestStep reference122 = ref span163[index2]; + ref QuestStep reference122 = ref span85[7]; 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> 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); + 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); reference123 = list186; - num3++; - span185[num3] = null; - num3++; - span185[num3] = null; - num3++; - span185[num3] = null; - num3++; - span185[num3] = null; + span107[2] = null; + span107[3] = null; + span107[4] = null; + span107[5] = null; questStep4.RequiredQuestVariables = list185; num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list187; reference122 = questStep4; - index2++; - ref QuestStep reference124 = ref span163[index2]; + ref QuestStep reference124 = ref span85[8]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list188; skipConditions5.StepIf = skipStepConditions5; obj89.SkipConditions = skipConditions5; num3 = 6; List> list189 = new List>(num3); CollectionsMarshal.SetCount(list189, num3); - 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); + 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); reference125 = list190; - num4++; - span189[num4] = null; - num4++; - span189[num4] = null; - num4++; - span189[num4] = null; - num4++; - span189[num4] = null; + span111[2] = null; + span111[3] = null; + span111[4] = null; + span111[5] = null; obj89.RequiredQuestVariables = list189; reference124 = obj89; - index2++; - ref QuestStep reference126 = ref span163[index2]; + ref QuestStep reference126 = ref span85[9]; 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> 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); + 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); reference127 = list192; - num3++; - span191[num3] = null; - num3++; - span191[num3] = null; - num3++; - span191[num3] = null; - num3++; - span191[num3] = null; + span113[2] = null; + span113[3] = null; + span113[4] = null; + span113[5] = null; questStep5.RequiredQuestVariables = list191; num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list193; reference126 = questStep5; - index2++; - ref QuestStep reference128 = ref span163[index2]; + ref QuestStep reference128 = ref span85[10]; 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(); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list194; skipConditions6.StepIf = skipStepConditions6; obj90.SkipConditions = skipConditions6; num3 = 6; List> list195 = new List>(num3); CollectionsMarshal.SetCount(list195, num3); - 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); + 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); reference129 = list196; - num4++; - span195[num4] = null; - num4++; - span195[num4] = null; - num4++; - span195[num4] = null; - num4++; - span195[num4] = null; + span117[2] = null; + span117[3] = null; + span117[4] = null; + span117[5] = null; obj90.RequiredQuestVariables = list195; reference128 = obj90; - index2++; - ref QuestStep reference130 = ref span163[index2]; + ref QuestStep reference130 = ref span85[11]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2009362u, new Vector3(-554.00934f, 103.471436f, -310.10913f), 612); - 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); + 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); reference131 = list198; - num3++; - span197[num3] = null; - num3++; - span197[num3] = null; - num3++; - span197[num3] = null; - num3++; - span197[num3] = null; + span119[2] = null; + span119[3] = null; + span119[4] = null; + span119[5] = null; questStep6.RequiredQuestVariables = list197; num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list199; reference130 = questStep6; obj84.Steps = list163; reference107 = obj84; - num++; - ref QuestSequence reference132 = ref span161[num]; + ref QuestSequence reference132 = ref span84[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj91.Steps = list200; reference132 = obj91; - num++; - ref QuestSequence reference133 = ref span161[num]; + ref QuestSequence reference133 = ref span84[3]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -240161,11 +198439,9 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - 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) + 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) { StopDistance = 7f, Fly = true @@ -240179,33 +198455,27 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "liza"; + CollectionsMarshal.AsSpan(list202)[0] = "liza"; questRoot16.Author = list202; - index = 3; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference134 = ref span203[num]; + num = 3; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span123 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference134 = ref span123[0]; QuestSequence obj93 = 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, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + 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) { StopDistance = 7f }; obj93.Steps = list204; reference134 = obj93; - num++; - ref QuestSequence reference135 = ref span203[num]; + ref QuestSequence reference135 = ref span123[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -240213,291 +198483,208 @@ public static class AssemblyQuestLoader num2 = 5; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - ref QuestStep reference136 = ref span205[index2]; + Span span124 = CollectionsMarshal.AsSpan(list205); + ref QuestStep reference136 = ref span124[0]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 2009369u, new Vector3(186.38892f, 103.25781f, 15.854065f), 612) { Fly = true, ItemId = 2002450u }; - 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); + 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); reference137 = list207; - num3++; - span206[num3] = null; - num3++; - span206[num3] = null; - num3++; - span206[num3] = null; + span125[3] = null; + span125[4] = null; + span125[5] = null; obj95.RequiredQuestVariables = list206; num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - 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); + 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); obj95.CompletionQuestVariablesFlags = list208; reference136 = obj95; - index2++; - ref QuestStep reference138 = ref span205[index2]; + ref QuestStep reference138 = ref span124[1]; QuestStep obj96 = new QuestStep(EInteractionType.UseItem, 2009368u, new Vector3(170.06177f, 103.53235f, 17.776672f), 612) { Fly = true, ItemId = 2002450u }; - 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); + 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); reference139 = list210; - num3++; - span209[num3] = null; - num3++; - span209[num3] = null; - num3++; - span209[num3] = null; + span128[3] = null; + span128[4] = null; + span128[5] = null; obj96.RequiredQuestVariables = list209; num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - 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); + 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); obj96.CompletionQuestVariablesFlags = list211; reference138 = obj96; - index2++; - ref QuestStep reference140 = ref span205[index2]; + ref QuestStep reference140 = ref span124[2]; QuestStep obj97 = new QuestStep(EInteractionType.UseItem, 2009367u, new Vector3(171.61816f, 113.725464f, -0.13739014f), 612) { Fly = true, ItemId = 2002450u }; - 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); + 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); reference141 = list213; - num3++; - span212[num3] = null; - num3++; - span212[num3] = null; - num3++; - span212[num3] = null; + span131[3] = null; + span131[4] = null; + span131[5] = null; obj97.RequiredQuestVariables = list212; num3 = 6; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list214; reference140 = obj97; - index2++; - ref QuestStep reference142 = ref span205[index2]; + ref QuestStep reference142 = ref span124[3]; QuestStep obj98 = new QuestStep(EInteractionType.UseItem, 2009366u, new Vector3(170.27539f, 111.46704f, -31.693054f), 612) { Fly = true, ItemId = 2002450u }; - 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); + 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); reference143 = list216; - num3++; - span215[num3] = null; - num3++; - span215[num3] = null; - num3++; - span215[num3] = null; + span134[3] = null; + span134[4] = null; + span134[5] = null; obj98.RequiredQuestVariables = list215; num3 = 6; List list217 = new List(num3); CollectionsMarshal.SetCount(list217, num3); - 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); + 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); obj98.CompletionQuestVariablesFlags = list217; reference142 = obj98; - index2++; - ref QuestStep reference144 = ref span205[index2]; + ref QuestStep reference144 = ref span124[4]; QuestStep obj99 = new QuestStep(EInteractionType.UseItem, 2009365u, new Vector3(150.2251f, 108.140625f, -42.191284f), 612) { Fly = true, ItemId = 2002450u }; - 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); + 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); reference145 = list219; - num3++; - span218[num3] = null; - num3++; - span218[num3] = null; - num3++; - span218[num3] = null; + span137[3] = null; + span137[4] = null; + span137[5] = null; obj99.RequiredQuestVariables = list218; num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - 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); + 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); obj99.CompletionQuestVariablesFlags = list220; reference144 = obj99; obj94.Steps = list205; reference135 = obj94; - num++; - ref QuestSequence reference146 = ref span203[num]; + ref QuestSequence reference146 = ref span123[2]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span221[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span140[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -240511,16 +198698,13 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot17.Author = list222; - index = 5; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference147 = ref span223[num]; + num = 5; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span141 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference147 = ref span141[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -240528,33 +198712,27 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj101.Steps = list224; reference147 = obj101; - num++; - ref QuestSequence reference148 = ref span223[num]; + ref QuestSequence reference148 = ref span141[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj102.Steps = list225; reference148 = obj102; - num++; - ref QuestSequence reference149 = ref span223[num]; + ref QuestSequence reference149 = ref span141[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -240562,27 +198740,21 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 2008303u, new Vector3(135.69836f, 40.512573f, 300.7705f), 612); + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2008303u, new Vector3(135.69836f, 40.512573f, 300.7705f), 612); obj103.Steps = list226; reference149 = obj103; - num++; - ref QuestSequence reference150 = ref span223[num]; + ref QuestSequence reference150 = ref span141[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj104.Steps = list227; reference150 = obj104; - num++; - ref QuestSequence reference151 = ref span223[num]; + ref QuestSequence reference151 = ref span141[4]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -240590,14 +198762,12 @@ public static class AssemblyQuestLoader num2 = 2; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span142 = CollectionsMarshal.AsSpan(list228); + span142[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span142[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -240611,33 +198781,27 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "liza"; + CollectionsMarshal.AsSpan(list229)[0] = "liza"; questRoot18.Author = list229; - index = 3; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference152 = ref span230[num]; + num = 3; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span143 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference152 = ref span143[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj106.Steps = list231; reference152 = obj106; - num++; - ref QuestSequence reference153 = ref span230[num]; + ref QuestSequence reference153 = ref span143[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -240645,179 +198809,131 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - ref QuestStep reference154 = ref span232[index2]; + Span span144 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference154 = ref span144[0]; QuestStep obj108 = new QuestStep(EInteractionType.UseItem, 1025077u, new Vector3(274.8302f, 76.49585f, 96.849f), 612) { Fly = true, ItemId = 2002453u }; - 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); + 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); reference155 = list234; - num3++; - span233[num3] = null; - num3++; - span233[num3] = null; - num3++; - span233[num3] = null; - num3++; - span233[num3] = null; + span145[2] = null; + span145[3] = null; + span145[4] = null; + span145[5] = null; obj108.RequiredQuestVariables = list233; num3 = 6; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - 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); + 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); obj108.CompletionQuestVariablesFlags = list235; reference154 = obj108; - index2++; - ref QuestStep reference156 = ref span232[index2]; + ref QuestStep reference156 = ref span144[1]; QuestStep obj109 = new QuestStep(EInteractionType.UseItem, 1025076u, new Vector3(364.3396f, 91.624985f, 75.150635f), 612) { Fly = true, ItemId = 2002453u }; - 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); + 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); reference157 = list237; - num3++; - span236[num3] = null; - num3++; - span236[num3] = null; - num3++; - span236[num3] = null; - num3++; - span236[num3] = null; + span148[2] = null; + span148[3] = null; + span148[4] = null; + span148[5] = null; obj109.RequiredQuestVariables = list236; num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - 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); + 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); obj109.CompletionQuestVariablesFlags = list238; reference156 = obj109; - index2++; - ref QuestStep reference158 = ref span232[index2]; + ref QuestStep reference158 = ref span144[2]; QuestStep obj110 = new QuestStep(EInteractionType.UseItem, 1025075u, new Vector3(553.6736f, 73.847404f, 10.635498f), 612) { Fly = true, ItemId = 2002453u }; - 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); + 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); reference159 = list240; - num3++; - span239[num3] = null; - num3++; - span239[num3] = null; - num3++; - span239[num3] = null; - num3++; - span239[num3] = null; + span151[2] = null; + span151[3] = null; + span151[4] = null; + span151[5] = null; obj110.RequiredQuestVariables = list239; num3 = 6; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - 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); + 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); obj110.CompletionQuestVariablesFlags = list241; reference158 = obj110; obj107.Steps = list232; reference153 = obj107; - num++; - ref QuestSequence reference160 = ref span230[num]; + ref QuestSequence reference160 = ref span143[2]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span242[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span154[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -240831,16 +198947,13 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span243 = CollectionsMarshal.AsSpan(list243); - index = 0; - span243[index] = "liza"; + CollectionsMarshal.AsSpan(list243)[0] = "liza"; questRoot19.Author = list243; - index = 3; - List list244 = new List(index); - CollectionsMarshal.SetCount(list244, index); - Span span244 = CollectionsMarshal.AsSpan(list244); - num = 0; - ref QuestSequence reference161 = ref span244[num]; + num = 3; + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + Span span155 = CollectionsMarshal.AsSpan(list244); + ref QuestSequence reference161 = ref span155[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -240848,26 +198961,22 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f }; obj112.Steps = list245; reference161 = obj112; - num++; - ref QuestSequence reference162 = ref span244[num]; + ref QuestSequence reference162 = ref span155[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - index2 = 5; - List list246 = new List(index2); - CollectionsMarshal.SetCount(list246, index2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num2 = 0; - ref QuestStep reference163 = ref span246[num2]; + num2 = 5; + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + Span span156 = CollectionsMarshal.AsSpan(list246); + ref QuestStep reference163 = ref span156[0]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 2009370u, new Vector3(424.30762f, 59.952637f, -472.3736f), 612) { Fly = true, @@ -240878,264 +198987,184 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachFringesGate } }; - 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); + 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); reference164 = list248; - num3++; - span247[num3] = null; - num3++; - span247[num3] = null; - num3++; - span247[num3] = null; - num3++; - span247[num3] = null; + span157[2] = null; + span157[3] = null; + span157[4] = null; + span157[5] = null; obj114.RequiredQuestVariables = list247; num3 = 6; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - 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); + 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); obj114.CompletionQuestVariablesFlags = list249; reference163 = obj114; - num2++; - ref QuestStep reference165 = ref span246[num2]; + ref QuestStep reference165 = ref span156[1]; QuestStep obj115 = new QuestStep(EInteractionType.Interact, 2009371u, new Vector3(364.73633f, 50.858276f, -356.00824f), 612) { Fly = true }; - 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); + 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); reference166 = list251; - num3++; - span250[num3] = null; - num3++; - span250[num3] = null; - num3++; - span250[num3] = null; - num3++; - span250[num3] = null; + span160[2] = null; + span160[3] = null; + span160[4] = null; + span160[5] = null; obj115.RequiredQuestVariables = list250; num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - 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); + 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); obj115.CompletionQuestVariablesFlags = list252; reference165 = obj115; - num2++; - ref QuestStep reference167 = ref span246[num2]; + ref QuestStep reference167 = ref span156[2]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 2009372u, new Vector3(345.6931f, 42.83203f, -306.20282f), 612) { Fly = true }; - 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); + 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); reference168 = list254; - num3++; - span253[num3] = null; - num3++; - span253[num3] = null; - num3++; - span253[num3] = null; - num3++; - span253[num3] = null; + span163[2] = null; + span163[3] = null; + span163[4] = null; + span163[5] = null; obj116.RequiredQuestVariables = list253; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - 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); + 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); obj116.CompletionQuestVariablesFlags = list255; reference167 = obj116; - num2++; - ref QuestStep reference169 = ref span246[num2]; + ref QuestStep reference169 = ref span156[3]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 2009373u, new Vector3(169.90918f, 39.53601f, -133.10449f), 612) { Fly = true }; - 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); + 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); reference170 = list257; - num3++; - span256[num3] = null; - num3++; - span256[num3] = null; - num3++; - span256[num3] = null; - num3++; - span256[num3] = null; + span166[2] = null; + span166[3] = null; + span166[4] = null; + span166[5] = null; obj117.RequiredQuestVariables = list256; num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - 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); + 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); obj117.CompletionQuestVariablesFlags = list258; reference169 = obj117; - num2++; - ref QuestStep reference171 = ref span246[num2]; + ref QuestStep reference171 = ref span156[4]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 2009374u, new Vector3(130.23572f, 39.444458f, -131.88379f), 612) { Fly = true }; - 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); + 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); reference172 = list260; - num3++; - span259[num3] = null; - num3++; - span259[num3] = null; - num3++; - span259[num3] = null; - num3++; - span259[num3] = null; + span169[2] = null; + span169[3] = null; + span169[4] = null; + span169[5] = null; obj118.RequiredQuestVariables = list259; num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - 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); + 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); obj118.CompletionQuestVariablesFlags = list261; reference171 = obj118; obj113.Steps = list246; reference162 = obj113; - num++; - ref QuestSequence reference173 = ref span244[num]; + ref QuestSequence reference173 = ref span155[2]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -241143,14 +199172,12 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) + Span span172 = CollectionsMarshal.AsSpan(list262); + span172[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.868523f, 56.02146f, 231.54045f), 612) { Fly = true }; - index2++; - span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span172[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -241164,33 +199191,27 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot20.Author = list263; - index = 3; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference174 = ref span264[num]; + num = 3; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span173 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference174 = ref span173[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj120.Steps = list265; reference174 = obj120; - num++; - ref QuestSequence reference175 = ref span264[num]; + ref QuestSequence reference175 = ref span173[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -241198,20 +199219,17 @@ public static class AssemblyQuestLoader num2 = 3; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - ref QuestStep reference176 = ref span266[index2]; + Span span174 = CollectionsMarshal.AsSpan(list266); + ref QuestStep reference176 = ref span174[0]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2009375u, new Vector3(153.85669f, 61.020752f, -631.22f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list267 = new List(num4); - CollectionsMarshal.SetCount(list267, num4); - Span span267 = CollectionsMarshal.AsSpan(list267); - num3 = 0; - span267[num3] = new ComplexCombatData + num3 = 1; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + CollectionsMarshal.AsSpan(list267)[0] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u @@ -241220,49 +199238,34 @@ public static class AssemblyQuestLoader num3 = 6; List> list268 = new List>(num3); CollectionsMarshal.SetCount(list268, num3); - 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); + 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); reference177 = list269; - num4++; - span268[num4] = null; - num4++; - span268[num4] = null; - num4++; - span268[num4] = null; + span175[3] = null; + span175[4] = null; + span175[5] = null; obj122.RequiredQuestVariables = list268; - 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); + 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); obj122.CompletionQuestVariablesFlags = list270; reference176 = obj122; - index2++; - ref QuestStep reference178 = ref span266[index2]; + ref QuestStep reference178 = ref span174[1]; QuestStep obj123 = new QuestStep(EInteractionType.Combat, 2009377u, new Vector3(-41.09259f, 69.38269f, -650.35474f), 612) { Fly = true, @@ -241271,71 +199274,52 @@ public static class AssemblyQuestLoader num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span271 = CollectionsMarshal.AsSpan(list271); - num4 = 0; - span271[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list271)[0] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u }; obj123.ComplexCombatData = list271; - 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); + 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); reference179 = list273; - num3++; - span272[num3] = null; - num3++; - span272[num3] = null; - num3++; - span272[num3] = null; + span178[3] = null; + span178[4] = null; + span178[5] = null; obj123.RequiredQuestVariables = list272; num3 = 6; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - 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); + 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); obj123.CompletionQuestVariablesFlags = list274; reference178 = obj123; - index2++; - ref QuestStep reference180 = ref span266[index2]; + ref QuestStep reference180 = ref span174[2]; QuestStep obj124 = new QuestStep(EInteractionType.Combat, 2009376u, new Vector3(74.41821f, 53.391357f, -484.42816f), 612) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list275 = new List(num4); - CollectionsMarshal.SetCount(list275, num4); - Span span275 = CollectionsMarshal.AsSpan(list275); - num3 = 0; - span275[num3] = new ComplexCombatData + num3 = 1; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + CollectionsMarshal.AsSpan(list275)[0] = new ComplexCombatData { DataId = 8595u, MinimumKillCount = 1u @@ -241344,66 +199328,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list276 = new List>(num3); CollectionsMarshal.SetCount(list276, num3); - 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); + 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); reference181 = list277; - num4++; - span276[num4] = null; - num4++; - span276[num4] = null; - num4++; - span276[num4] = null; + span181[3] = null; + span181[4] = null; + span181[5] = null; obj124.RequiredQuestVariables = list276; - 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); + 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); obj124.CompletionQuestVariablesFlags = list278; reference180 = obj124; obj121.Steps = list266; reference175 = obj121; - num++; - ref QuestSequence reference182 = ref span264[num]; + ref QuestSequence reference182 = ref span173[2]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) + span184[1] = new QuestStep(EInteractionType.CompleteQuest, 1024773u, new Vector3(-28.33606f, 56.113926f, 236.25537f), 612) { StopDistance = 7f, Fly = true @@ -241417,16 +199384,13 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - Span span280 = CollectionsMarshal.AsSpan(list280); - index = 0; - span280[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list280)[0] = "JerryWester"; questRoot21.Author = list280; - index = 3; - List list281 = new List(index); - CollectionsMarshal.SetCount(list281, index); - Span span281 = CollectionsMarshal.AsSpan(list281); - num = 0; - ref QuestSequence reference183 = ref span281[num]; + num = 3; + List list281 = new List(num); + CollectionsMarshal.SetCount(list281, num); + Span span185 = CollectionsMarshal.AsSpan(list281); + ref QuestSequence reference183 = ref span185[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -241434,23 +199398,19 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025023u, new Vector3(-1.7853394f, 0.024148807f, -0.015319824f), 639); + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025023u, new Vector3(-1.7853394f, 0.024148807f, -0.015319824f), 639); obj126.Steps = list282; reference183 = obj126; - num++; - ref QuestSequence reference184 = ref span281[num]; + ref QuestSequence reference184 = ref span185[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list283 = new List(index2); - CollectionsMarshal.SetCount(list283, index2); - Span span283 = CollectionsMarshal.AsSpan(list283); - num2 = 0; - ref QuestStep reference185 = ref span283[num2]; + num2 = 2; + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + Span span186 = CollectionsMarshal.AsSpan(list283); + ref QuestStep reference185 = ref span186[0]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -241459,21 +199419,17 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - Span span284 = CollectionsMarshal.AsSpan(list284); - num4 = 0; - span284[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD101_03070_EVENTAREA_WARP_100_027") }; obj128.DialogueChoices = list284; reference185 = obj128; - num2++; - span283[num2] = new QuestStep(EInteractionType.Interact, 1025552u, new Vector3(0.045776367f, 0.021091362f, -2.9145508f), 744); + span186[1] = new QuestStep(EInteractionType.Interact, 1025552u, new Vector3(0.045776367f, 0.021091362f, -2.9145508f), 744); obj127.Steps = list283; reference184 = obj127; - num++; - ref QuestSequence reference186 = ref span281[num]; + ref QuestSequence reference186 = ref span185[2]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -241481,14 +199437,12 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span187 = CollectionsMarshal.AsSpan(list285); + span187[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - index2++; - span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025555u, new Vector3(148.05823f, -4.178815f, 60.135742f), 759) + span187[1] = new QuestStep(EInteractionType.CompleteQuest, 1025555u, new Vector3(148.05823f, -4.178815f, 60.135742f), 759) { AethernetShortcut = new AethernetShortcut { @@ -241505,26 +199459,21 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list286)[0] = "JerryWester"; questRoot22.Author = list286; - index = 6; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference187 = ref span287[num]; + num = 6; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span188 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference187 = ref span188[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -241537,8 +199486,7 @@ public static class AssemblyQuestLoader }; obj130.Steps = list288; reference187 = obj130; - num++; - ref QuestSequence reference188 = ref span287[num]; + ref QuestSequence reference188 = ref span188[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -241546,73 +199494,55 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - ref QuestStep reference189 = ref span289[index2]; + Span span189 = CollectionsMarshal.AsSpan(list289); + ref QuestStep reference189 = ref span189[0]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1019297u, new Vector3(-275.9289f, 17.31996f, 512.9625f), 614) { Fly = true }; - 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); + 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); obj132.CompletionQuestVariablesFlags = list290; reference189 = obj132; - index2++; - ref QuestStep reference190 = ref span289[index2]; + ref QuestStep reference190 = ref span189[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list291; reference190 = questStep7; obj131.Steps = list289; reference188 = obj131; - num++; - ref QuestSequence reference191 = ref span287[num]; + ref QuestSequence reference191 = ref span188[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj133.Steps = list292; reference191 = obj133; - num++; - ref QuestSequence reference192 = ref span287[num]; + ref QuestSequence reference192 = ref span188[3]; QuestSequence obj134 = new QuestSequence { Sequence = 3 @@ -241620,33 +199550,27 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.Interact, 2009527u, new Vector3(457.26697f, 31.265625f, 234.79053f), 614) + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 2009527u, new Vector3(457.26697f, 31.265625f, 234.79053f), 614) { Fly = true }; obj134.Steps = list293; reference192 = obj134; - num++; - ref QuestSequence reference193 = ref span287[num]; + ref QuestSequence reference193 = ref span188[4]; QuestSequence obj135 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj135.Steps = list294; reference193 = obj135; - num++; - ref QuestSequence reference194 = ref span287[num]; + ref QuestSequence reference194 = ref span188[5]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -241654,9 +199578,7 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 2009475u, new Vector3(546.9595f, 72.129395f, 39.78015f), 614) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 2009475u, new Vector3(546.9595f, 72.129395f, 39.78015f), 614) { Fly = true }; @@ -241669,26 +199591,21 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list296)[0] = "JerryWester"; questRoot23.Author = list296; - index = 4; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference195 = ref span297[num]; + num = 4; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span192 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference195 = ref span192[0]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -241701,8 +199618,7 @@ public static class AssemblyQuestLoader }; obj137.Steps = list298; reference195 = obj137; - num++; - ref QuestSequence reference196 = ref span297[num]; + ref QuestSequence reference196 = ref span192[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -241710,30 +199626,24 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1025104u, new Vector3(408.71277f, 14.6418705f, 622.8275f), 614) + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1025104u, new Vector3(408.71277f, 14.6418705f, 622.8275f), 614) { Fly = true }; obj138.Steps = list299; reference196 = obj138; - num++; - ref QuestSequence reference197 = ref span297[num]; + ref QuestSequence reference197 = ref span192[2]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj139.Steps = list300; reference197 = obj139; - num++; - ref QuestSequence reference198 = ref span297[num]; + ref QuestSequence reference198 = ref span192[3]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -241741,9 +199651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj140.Steps = list301; reference198 = obj140; questRoot23.QuestSequence = list297; @@ -241753,30 +199661,24 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list302)[0] = "JerryWester"; questRoot24.Author = list302; - index = 5; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference199 = ref span303[num]; + num = 5; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span193 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference199 = ref span193[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj141.Steps = list304; reference199 = obj141; - num++; - ref QuestSequence reference200 = ref span303[num]; + ref QuestSequence reference200 = ref span193[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -241784,50 +199686,42 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj142.Steps = list305; reference200 = obj142; - num++; - ref QuestSequence reference201 = ref span303[num]; + ref QuestSequence reference201 = ref span193[2]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span306[num2] = new QuestStep(EInteractionType.Interact, 2009420u, new Vector3(106.30957f, 0.47296143f, -874.38776f), 613) + span194[1] = new QuestStep(EInteractionType.Interact, 2009420u, new Vector3(106.30957f, 0.47296143f, -874.38776f), 613) { DisableNavmesh = true, Fly = true }; - num2++; - span306[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.579952f, -1.1090306f, -869.52625f), 613) + span194[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(63.579952f, -1.1090306f, -869.52625f), 613) { Fly = true }; - num2++; - span306[num2] = new QuestStep(EInteractionType.Interact, 2009469u, new Vector3(78.20239f, 0.47296143f, -870.66455f), 613) + span194[3] = new QuestStep(EInteractionType.Interact, 2009469u, new Vector3(78.20239f, 0.47296143f, -870.66455f), 613) { Mount = true }; obj143.Steps = list306; reference201 = obj143; - num++; - ref QuestSequence reference202 = ref span303[num]; + ref QuestSequence reference202 = ref span193[3]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -241835,45 +199729,38 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span307[index2] = new QuestStep(EInteractionType.Interact, 1025106u, new Vector3(97.00159f, 5.1987257f, -877.0428f), 613) + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1025106u, new Vector3(97.00159f, 5.1987257f, -877.0428f), 613) { Fly = true }; obj144.Steps = list307; reference202 = obj144; - num++; - ref QuestSequence reference203 = ref span303[num]; + ref QuestSequence reference203 = ref span193[4]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list308 = new List(index2); - CollectionsMarshal.SetCount(list308, index2); - Span span308 = CollectionsMarshal.AsSpan(list308); - num2 = 0; - ref QuestStep reference204 = ref span308[num2]; + num2 = 2; + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + Span span195 = CollectionsMarshal.AsSpan(list308); + ref QuestStep reference204 = ref span195[0]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, AetheryteShortcut = EAetheryteLocation.DomanEnclave }; - num4 = 1; - List list309 = new List(num4); - CollectionsMarshal.SetCount(list309, num4); - Span span309 = CollectionsMarshal.AsSpan(list309); - num3 = 0; - span309[num3] = new DialogueChoice + num3 = 1; + List list309 = new List(num3); + CollectionsMarshal.SetCount(list309, num3); + CollectionsMarshal.AsSpan(list309)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD104_03073_EVENTAREA_WARP_100_004") }; obj146.DialogueChoices = list309; reference204 = obj146; - num2++; - span308[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + span195[1] = new QuestStep(EInteractionType.CompleteQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj145.Steps = list308; reference203 = obj145; questRoot24.QuestSequence = list303; @@ -241883,16 +199770,13 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list310)[0] = "JerryWester"; questRoot25.Author = list310; - index = 9; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference205 = ref span311[num]; + num = 9; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span196 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference205 = ref span196[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -241900,36 +199784,29 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); + CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024999u, new Vector3(0.19836426f, 0.021091364f, -3.0975952f), 744); obj147.Steps = list312; reference205 = obj147; - num++; - ref QuestSequence reference206 = ref span311[num]; + ref QuestSequence reference206 = ref span196[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj148.Steps = list313; reference206 = obj148; - num++; - span311[num] = new QuestSequence + span196[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference207 = ref span311[num]; + ref QuestSequence reference207 = ref span196[3]; QuestSequence obj149 = new QuestSequence { Sequence = 3 @@ -241937,9 +199814,7 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.Duty, null, null, 786) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Duty, null, null, 786) { DutyOptions = new DutyOptions { @@ -241948,35 +199823,29 @@ public static class AssemblyQuestLoader }; obj149.Steps = list314; reference207 = obj149; - num++; - span311[num] = new QuestSequence + span196[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference208 = ref span311[num]; + ref QuestSequence reference208 = ref span196[5]; QuestSequence obj150 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj150.Steps = list315; reference208 = obj150; - num++; - span311[num] = new QuestSequence + span196[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference209 = ref span311[num]; + ref QuestSequence reference209 = ref span196[7]; QuestSequence obj151 = new QuestSequence { Sequence = 7 @@ -241984,23 +199853,19 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.Interact, 1025538u, new Vector3(4.7455444f, 0f, 16.067688f), 759); + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1025538u, new Vector3(4.7455444f, 0f, 16.067688f), 759); obj151.Steps = list316; reference209 = obj151; - num++; - ref QuestSequence reference210 = ref span311[num]; + ref QuestSequence reference210 = ref span196[8]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list317 = new List(index2); - CollectionsMarshal.SetCount(list317, index2); - Span span317 = CollectionsMarshal.AsSpan(list317); - num2 = 0; - ref QuestStep reference211 = ref span317[num2]; + num2 = 2; + List list317 = new List(num2); + CollectionsMarshal.SetCount(list317, num2); + Span span197 = CollectionsMarshal.AsSpan(list317); + ref QuestStep reference211 = ref span197[0]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 @@ -242008,17 +199873,14 @@ public static class AssemblyQuestLoader num3 = 1; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - Span span318 = CollectionsMarshal.AsSpan(list318); - num4 = 0; - span318[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD105_03074_EVENTAREA_WARP_100_004") }; obj153.DialogueChoices = list318; reference211 = obj153; - num2++; - span317[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + span197[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj152.Steps = list317; reference210 = obj152; questRoot25.QuestSequence = list311; @@ -242028,16 +199890,13 @@ public static class AssemblyQuestLoader num = 1; List list319 = new List(num); CollectionsMarshal.SetCount(list319, num); - Span span319 = CollectionsMarshal.AsSpan(list319); - index = 0; - span319[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list319)[0] = "JerryWester"; questRoot26.Author = list319; - index = 4; - List list320 = new List(index); - CollectionsMarshal.SetCount(list320, index); - Span span320 = CollectionsMarshal.AsSpan(list320); - num = 0; - ref QuestSequence reference212 = ref span320[num]; + num = 4; + List list320 = new List(num); + CollectionsMarshal.SetCount(list320, num); + Span span198 = CollectionsMarshal.AsSpan(list320); + ref QuestSequence reference212 = ref span198[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -242045,23 +199904,18 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025009u, new Vector3(1.3274536f, 0.021091362f, 0.59503174f), 744); + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025009u, new Vector3(1.3274536f, 0.021091362f, 0.59503174f), 744); obj154.Steps = list321; reference212 = obj154; - num++; - ref QuestSequence reference213 = ref span320[num]; + ref QuestSequence reference213 = ref span198[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -242072,8 +199926,7 @@ public static class AssemblyQuestLoader }; obj155.Steps = list322; reference213 = obj155; - num++; - ref QuestSequence reference214 = ref span320[num]; + ref QuestSequence reference214 = ref span198[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -242081,29 +199934,24 @@ public static class AssemblyQuestLoader num2 = 2; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.965355f, 26.085297f, -607.26685f), 621) + Span span199 = CollectionsMarshal.AsSpan(list323); + span199[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.965355f, 26.085297f, -607.26685f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - index2++; - span323[index2] = new QuestStep(EInteractionType.Interact, 1025546u, new Vector3(70.87805f, 26.199663f, -609.43005f), 621); + span199[1] = new QuestStep(EInteractionType.Interact, 1025546u, new Vector3(70.87805f, 26.199663f, -609.43005f), 621); obj156.Steps = list323; reference214 = obj156; - num++; - ref QuestSequence reference215 = ref span320[num]; + ref QuestSequence reference215 = ref span198[3]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj157.Steps = list324; reference215 = obj157; questRoot26.QuestSequence = list320; @@ -242113,16 +199961,13 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - Span span325 = CollectionsMarshal.AsSpan(list325); - index = 0; - span325[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list325)[0] = "JerryWester"; questRoot27.Author = list325; - index = 4; - List list326 = new List(index); - CollectionsMarshal.SetCount(list326, index); - Span span326 = CollectionsMarshal.AsSpan(list326); - num = 0; - ref QuestSequence reference216 = ref span326[num]; + num = 4; + List list326 = new List(num); + CollectionsMarshal.SetCount(list326, num); + Span span200 = CollectionsMarshal.AsSpan(list326); + ref QuestSequence reference216 = ref span200[0]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -242130,23 +199975,18 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj158.Steps = list327; reference216 = obj158; - num++; - ref QuestSequence reference217 = ref span326[num]; + ref QuestSequence reference217 = ref span200[1]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list328 = new List(index2); - CollectionsMarshal.SetCount(list328, index2); - Span span328 = CollectionsMarshal.AsSpan(list328); - num2 = 0; - ref QuestStep reference218 = ref span328[num2]; + num2 = 1; + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list328)[0]; QuestStep obj160 = new QuestStep(EInteractionType.SinglePlayerDuty, 2009467u, new Vector3(-5.189492f, 0.4746897f, 0.3689831f), 351) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -242154,12 +199994,10 @@ public static class AssemblyQuestLoader Enabled = true } }; - num4 = 1; - List list329 = new List(num4); - CollectionsMarshal.SetCount(list329, num4); - Span span329 = CollectionsMarshal.AsSpan(list329); - num3 = 0; - span329[num3] = new DialogueChoice + num3 = 1; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + CollectionsMarshal.AsSpan(list329)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDD107_03076_Q1_100_012") @@ -242168,13 +200006,11 @@ public static class AssemblyQuestLoader reference218 = obj160; obj159.Steps = list328; reference217 = obj159; - num++; - span326[num] = new QuestSequence + span200[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference219 = ref span326[num]; + ref QuestSequence reference219 = ref span200[3]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -242182,9 +200018,7 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) { StopDistance = 5f }; @@ -242197,26 +200031,22 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "liza"; + CollectionsMarshal.AsSpan(list331)[0] = "liza"; questRoot28.Author = list331; - index = 3; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference220 = ref span332[num]; + num = 3; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span201 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference220 = ref span201[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -242227,12 +200057,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span333[num2] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); + span202[1] = new QuestStep(EInteractionType.AcceptQuest, 1019459u, new Vector3(-70.54254f, 0.4599931f, 64.37781f), 635); obj162.Steps = list333; reference220 = obj162; - num++; - ref QuestSequence reference221 = ref span332[num]; + ref QuestSequence reference221 = ref span201[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -242240,26 +200068,21 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1019002u, new Vector3(-48.05072f, -2.9f, -50.247986f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; obj163.Steps = list334; reference221 = obj163; - num++; - ref QuestSequence reference222 = ref span332[num]; + ref QuestSequence reference222 = ref span201[2]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -242276,16 +200099,13 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - Span span336 = CollectionsMarshal.AsSpan(list336); - index = 0; - span336[index] = "Starr"; + CollectionsMarshal.AsSpan(list336)[0] = "Starr"; questRoot29.Author = list336; - index = 2; - List list337 = new List(index); - CollectionsMarshal.SetCount(list337, index); - Span span337 = CollectionsMarshal.AsSpan(list337); - num = 0; - ref QuestSequence reference223 = ref span337[num]; + num = 2; + List list337 = new List(num); + CollectionsMarshal.SetCount(list337, num); + Span span203 = CollectionsMarshal.AsSpan(list337); + ref QuestSequence reference223 = ref span203[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -242293,9 +200113,7 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span338 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span338[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -242308,18 +200126,15 @@ public static class AssemblyQuestLoader }; obj165.Steps = list338; reference223 = obj165; - num++; - ref QuestSequence reference224 = ref span337[num]; + ref QuestSequence reference224 = ref span203[1]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj166.Steps = list339; reference224 = obj166; questRoot29.QuestSequence = list337; @@ -242329,16 +200144,13 @@ public static class AssemblyQuestLoader num = 1; List list340 = new List(num); CollectionsMarshal.SetCount(list340, num); - Span span340 = CollectionsMarshal.AsSpan(list340); - index = 0; - span340[index] = "liza"; + CollectionsMarshal.AsSpan(list340)[0] = "liza"; questRoot30.Author = list340; - index = 4; - List list341 = new List(index); - CollectionsMarshal.SetCount(list341, index); - Span span341 = CollectionsMarshal.AsSpan(list341); - num = 0; - ref QuestSequence reference225 = ref span341[num]; + num = 4; + List list341 = new List(num); + CollectionsMarshal.SetCount(list341, num); + Span span204 = CollectionsMarshal.AsSpan(list341); + ref QuestSequence reference225 = ref span204[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -242346,9 +200158,7 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -242361,25 +200171,21 @@ public static class AssemblyQuestLoader }; obj167.Steps = list342; reference225 = obj167; - num++; - ref QuestSequence reference226 = ref span341[num]; + ref QuestSequence reference226 = ref span204[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj168.Steps = list343; reference226 = obj168; - num++; - ref QuestSequence reference227 = ref span341[num]; + ref QuestSequence reference227 = ref span204[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -242387,26 +200193,21 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) { Fly = true }; obj169.Steps = list344; reference227 = obj169; - num++; - ref QuestSequence reference228 = ref span341[num]; + ref QuestSequence reference228 = ref span204[3]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list345 = new List(index2); - CollectionsMarshal.SetCount(list345, index2); - Span span345 = CollectionsMarshal.AsSpan(list345); - num2 = 0; - ref QuestStep reference229 = ref span345[num2]; + num2 = 1; + List list345 = new List(num2); + CollectionsMarshal.SetCount(list345, num2); + ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list345)[0]; QuestStep obj171 = new QuestStep(EInteractionType.CompleteQuest, 2009436u, new Vector3(70.05408f, 30.746826f, -722.86566f), 156) { Fly = true @@ -242414,36 +200215,31 @@ public static class AssemblyQuestLoader num3 = 5; List list346 = new List(num3); CollectionsMarshal.SetCount(list346, num3); - Span span346 = CollectionsMarshal.AsSpan(list346); - num4 = 0; - span346[num4] = new DialogueChoice + Span span205 = CollectionsMarshal.AsSpan(list346); + span205[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q1_000_091") }; - num4++; - span346[num4] = new DialogueChoice + span205[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q2_000_097"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A2_000_100") }; - num4++; - span346[num4] = new DialogueChoice + span205[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q3_000_118"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A3_000_119") }; - num4++; - span346[num4] = new DialogueChoice + span205[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q4_000_134"), Answer = new ExcelRef("TEXT_STMBDY501_03086_A4_000_136") }; - num4++; - span346[num4] = new DialogueChoice + span205[4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY501_03086_Q5_000_156"), @@ -242461,16 +200257,13 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - Span span347 = CollectionsMarshal.AsSpan(list347); - index = 0; - span347[index] = "liza"; + CollectionsMarshal.AsSpan(list347)[0] = "liza"; questRoot31.Author = list347; - index = 6; - List list348 = new List(index); - CollectionsMarshal.SetCount(list348, index); - Span span348 = CollectionsMarshal.AsSpan(list348); - num = 0; - ref QuestSequence reference230 = ref span348[num]; + num = 6; + List list348 = new List(num); + CollectionsMarshal.SetCount(list348, num); + Span span206 = CollectionsMarshal.AsSpan(list348); + ref QuestSequence reference230 = ref span206[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -242478,9 +200271,7 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025330u, new Vector3(64.83557f, 30.6188f, -722.3774f), 156) + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025330u, new Vector3(64.83557f, 30.6188f, -722.3774f), 156) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -242494,25 +200285,21 @@ public static class AssemblyQuestLoader }; obj172.Steps = list349; reference230 = obj172; - num++; - ref QuestSequence reference231 = ref span348[num]; + ref QuestSequence reference231 = ref span206[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj173.Steps = list350; reference231 = obj173; - num++; - ref QuestSequence reference232 = ref span348[num]; + ref QuestSequence reference232 = ref span206[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -242520,35 +200307,29 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span351 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - span351[index2] = new QuestStep(EInteractionType.Interact, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) + CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 1009813u, new Vector3(55.436035f, 31.187548f, -763.42413f), 156) { Fly = true }; obj174.Steps = list351; reference232 = obj174; - num++; - ref QuestSequence reference233 = ref span348[num]; + ref QuestSequence reference233 = ref span206[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span352[num2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156); + span207[1] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156); obj175.Steps = list352; reference233 = obj175; - num++; - ref QuestSequence reference234 = ref span348[num]; + ref QuestSequence reference234 = ref span206[4]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -242556,26 +200337,21 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1025287u, new Vector3(64.34729f, 31.199963f, -754.0246f), 156) { Fly = true }; obj176.Steps = list353; reference234 = obj176; - num++; - ref QuestSequence reference235 = ref span348[num]; + ref QuestSequence reference235 = ref span206[5]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(3141) @@ -242589,16 +200365,13 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - Span span355 = CollectionsMarshal.AsSpan(list355); - index = 0; - span355[index] = "liza"; + CollectionsMarshal.AsSpan(list355)[0] = "liza"; questRoot32.Author = list355; - index = 10; - List list356 = new List(index); - CollectionsMarshal.SetCount(list356, index); - Span span356 = CollectionsMarshal.AsSpan(list356); - num = 0; - ref QuestSequence reference236 = ref span356[num]; + num = 10; + List list356 = new List(num); + CollectionsMarshal.SetCount(list356, num); + Span span208 = CollectionsMarshal.AsSpan(list356); + ref QuestSequence reference236 = ref span208[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 @@ -242606,9 +200379,7 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span357[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -242627,34 +200398,29 @@ public static class AssemblyQuestLoader }; obj178.Steps = list357; reference236 = obj178; - num++; - ref QuestSequence reference237 = ref span356[num]; + ref QuestSequence reference237 = ref span208[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)628 }; - num2++; - ref QuestStep reference238 = ref span358[num2]; + ref QuestStep reference238 = ref span209[1]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 1024157u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735 }; - num4 = 1; - List list359 = new List(num4); - CollectionsMarshal.SetCount(list359, num4); - Span span359 = CollectionsMarshal.AsSpan(list359); - num3 = 0; - span359[num3] = new DialogueChoice + num3 = 1; + List list359 = new List(num3); + CollectionsMarshal.SetCount(list359, num3); + CollectionsMarshal.AsSpan(list359)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI201_03089_Q1_000_000") @@ -242663,13 +200429,11 @@ public static class AssemblyQuestLoader reference238 = obj180; obj179.Steps = list358; reference237 = obj179; - num++; - span356[num] = new QuestSequence + span208[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference239 = ref span356[num]; + ref QuestSequence reference239 = ref span208[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -242677,33 +200441,27 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - Span span360 = CollectionsMarshal.AsSpan(list360); - index2 = 0; - span360[index2] = new QuestStep(EInteractionType.Interact, 1025590u, new Vector3(-8.98761f, 0.05124536f, -3.768982f), 735) + CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1025590u, new Vector3(-8.98761f, 0.05124536f, -3.768982f), 735) { StopDistance = 7f }; obj181.Steps = list360; reference239 = obj181; - num++; - ref QuestSequence reference240 = ref span356[num]; + ref QuestSequence reference240 = ref span208[4]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj182.Steps = list361; reference240 = obj182; - num++; - ref QuestSequence reference241 = ref span356[num]; + ref QuestSequence reference241 = ref span208[5]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -242711,9 +200469,7 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.Interact, 1025499u, new Vector3(-117.17407f, -7.000125f, -67.826416f), 628) + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1025499u, new Vector3(-117.17407f, -7.000125f, -67.826416f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -242724,18 +200480,15 @@ public static class AssemblyQuestLoader }; obj183.Steps = list362; reference241 = obj183; - num++; - ref QuestSequence reference242 = ref span356[num]; + ref QuestSequence reference242 = ref span208[6]; QuestSequence obj184 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list363 = new List(index2); - CollectionsMarshal.SetCount(list363, index2); - Span span363 = CollectionsMarshal.AsSpan(list363); - num2 = 0; - ref QuestStep reference243 = ref span363[num2]; + num2 = 1; + List list363 = new List(num2); + CollectionsMarshal.SetCount(list363, num2); + ref QuestStep reference243 = ref CollectionsMarshal.AsSpan(list363)[0]; QuestStep obj185 = new QuestStep(EInteractionType.Combat, null, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614) { StopDistance = 0.5f, @@ -242746,15 +200499,12 @@ public static class AssemblyQuestLoader num3 = 1; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span364 = CollectionsMarshal.AsSpan(list364); - num4 = 0; - span364[num4] = 8801u; + CollectionsMarshal.AsSpan(list364)[0] = 8801u; obj185.KillEnemyDataIds = list364; reference243 = obj185; obj184.Steps = list363; reference242 = obj184; - num++; - ref QuestSequence reference244 = ref span356[num]; + ref QuestSequence reference244 = ref span208[7]; QuestSequence obj186 = new QuestSequence { Sequence = 7 @@ -242762,23 +200512,18 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span365[index2] = new QuestStep(EInteractionType.Interact, 1025587u, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614); + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Interact, 1025587u, new Vector3(-399.64905f, 9.982385f, 551.7814f), 614); obj186.Steps = list365; reference244 = obj186; - num++; - ref QuestSequence reference245 = ref span356[num]; + ref QuestSequence reference245 = ref span208[8]; QuestSequence obj187 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -242791,8 +200536,7 @@ public static class AssemblyQuestLoader }; obj187.Steps = list366; reference245 = obj187; - num++; - ref QuestSequence reference246 = ref span356[num]; + ref QuestSequence reference246 = ref span208[9]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -242800,9 +200544,7 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735) + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735) { NextQuestId = new QuestId(3091) }; @@ -242815,30 +200557,24 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - Span span368 = CollectionsMarshal.AsSpan(list368); - index = 0; - span368[index] = "liza"; + CollectionsMarshal.AsSpan(list368)[0] = "liza"; questRoot33.Author = list368; - index = 13; - List list369 = new List(index); - CollectionsMarshal.SetCount(list369, index); - Span span369 = CollectionsMarshal.AsSpan(list369); - num = 0; - ref QuestSequence reference247 = ref span369[num]; + num = 13; + List list369 = new List(num); + CollectionsMarshal.SetCount(list369, num); + Span span210 = CollectionsMarshal.AsSpan(list369); + ref QuestSequence reference247 = ref span210[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj189.Steps = list370; reference247 = obj189; - num++; - ref QuestSequence reference248 = ref span369[num]; + ref QuestSequence reference248 = ref span210[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -242846,30 +200582,24 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj190.Steps = list371; reference248 = obj190; - num++; - ref QuestSequence reference249 = ref span369[num]; + ref QuestSequence reference249 = ref span210[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj191.Steps = list372; reference249 = obj191; - num++; - ref QuestSequence reference250 = ref span369[num]; + ref QuestSequence reference250 = ref span210[3]; QuestSequence obj192 = new QuestSequence { Sequence = 3 @@ -242877,34 +200607,28 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - Span span373 = CollectionsMarshal.AsSpan(list373); - index2 = 0; - span373[index2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) + CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj192.Steps = list373; reference250 = obj192; - num++; - ref QuestSequence reference251 = ref span369[num]; + ref QuestSequence reference251 = ref span210[4]; QuestSequence obj193 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj193.Steps = list374; reference251 = obj193; - num++; - ref QuestSequence reference252 = ref span369[num]; + ref QuestSequence reference252 = ref span210[5]; QuestSequence obj194 = new QuestSequence { Sequence = 5 @@ -242912,35 +200636,29 @@ public static class AssemblyQuestLoader num2 = 2; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - span375[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span211 = CollectionsMarshal.AsSpan(list375); + span211[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - index2++; - span375[index2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + span211[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj194.Steps = list375; reference252 = obj194; - num++; - ref QuestSequence reference253 = ref span369[num]; + ref QuestSequence reference253 = ref span210[6]; QuestSequence obj195 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Emote = EEmote.Soothe }; obj195.Steps = list376; reference253 = obj195; - num++; - ref QuestSequence reference254 = ref span369[num]; + ref QuestSequence reference254 = ref span210[7]; QuestSequence obj196 = new QuestSequence { Sequence = 7 @@ -242948,33 +200666,27 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - Span span377 = CollectionsMarshal.AsSpan(list377); - index2 = 0; - span377[index2] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) + CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Emote, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137) { Emote = EEmote.Comfort }; obj196.Steps = list377; reference254 = obj196; - num++; - ref QuestSequence reference255 = ref span369[num]; + ref QuestSequence reference255 = ref span210[8]; QuestSequence obj197 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Mount = true }; obj197.Steps = list378; reference255 = obj197; - num++; - ref QuestSequence reference256 = ref span369[num]; + ref QuestSequence reference256 = ref span210[9]; QuestSequence obj198 = new QuestSequence { Sequence = 9 @@ -242982,34 +200694,28 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - Span span379 = CollectionsMarshal.AsSpan(list379); - index2 = 0; - span379[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj198.Steps = list379; reference256 = obj198; - num++; - ref QuestSequence reference257 = ref span369[num]; + ref QuestSequence reference257 = ref span210[10]; QuestSequence obj199 = new QuestSequence { Sequence = 10 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj199.Steps = list380; reference257 = obj199; - num++; - ref QuestSequence reference258 = ref span369[num]; + ref QuestSequence reference258 = ref span210[11]; QuestSequence obj200 = new QuestSequence { Sequence = 11 @@ -243017,9 +200723,8 @@ public static class AssemblyQuestLoader num2 = 2; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span381 = CollectionsMarshal.AsSpan(list381); - index2 = 0; - span381[index2] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) + Span span212 = CollectionsMarshal.AsSpan(list381); + span212[0] = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -243030,22 +200735,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeAirship } }; - index2++; - span381[index2] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + span212[1] = new QuestStep(EInteractionType.Interact, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj200.Steps = list381; reference258 = obj200; - num++; - ref QuestSequence reference259 = ref span369[num]; + ref QuestSequence reference259 = ref span210[12]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3190) }; @@ -243058,16 +200759,13 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - Span span383 = CollectionsMarshal.AsSpan(list383); - index = 0; - span383[index] = "liza"; + CollectionsMarshal.AsSpan(list383)[0] = "liza"; questRoot34.Author = list383; - index = 5; - List list384 = new List(index); - CollectionsMarshal.SetCount(list384, index); - Span span384 = CollectionsMarshal.AsSpan(list384); - num = 0; - ref QuestSequence reference260 = ref span384[num]; + num = 5; + List list384 = new List(num); + CollectionsMarshal.SetCount(list384, num); + Span span213 = CollectionsMarshal.AsSpan(list384); + ref QuestSequence reference260 = ref span213[0]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -243075,33 +200773,26 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span385 = CollectionsMarshal.AsSpan(list385); - index2 = 0; - span385[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735); + CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025729u, new Vector3(-12.222534f, 0.046870727f, -3.2197266f), 735); obj202.Steps = list385; reference260 = obj202; - num++; - ref QuestSequence reference261 = ref span384[num]; + ref QuestSequence reference261 = ref span213[1]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list386 = new List(index2); - CollectionsMarshal.SetCount(list386, index2); - Span span386 = CollectionsMarshal.AsSpan(list386); - num2 = 0; - ref QuestStep reference262 = ref span386[num2]; + num2 = 1; + List list386 = new List(num2); + CollectionsMarshal.SetCount(list386, num2); + ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list386)[0]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1025652u, new Vector3(-10.8797f, 0.046870843f, -4.3793945f), 735) { StopDistance = 7f }; - num4 = 1; - List list387 = new List(num4); - CollectionsMarshal.SetCount(list387, num4); - Span span387 = CollectionsMarshal.AsSpan(list387); - num3 = 0; - span387[num3] = new DialogueChoice + num3 = 1; + List list387 = new List(num3); + CollectionsMarshal.SetCount(list387, num3); + CollectionsMarshal.AsSpan(list387)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDI203_03091_Q1_000_000"), @@ -243111,13 +200802,11 @@ public static class AssemblyQuestLoader reference262 = obj204; obj203.Steps = list386; reference261 = obj203; - num++; - span384[num] = new QuestSequence + span213[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference263 = ref span384[num]; + ref QuestSequence reference263 = ref span213[3]; QuestSequence obj205 = new QuestSequence { Sequence = 3 @@ -243125,26 +200814,21 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span388 = CollectionsMarshal.AsSpan(list388); - index2 = 0; - span388[index2] = new QuestStep(EInteractionType.Snipe, 2009477u, new Vector3(-198.6877f, 17.56311f, 208.484f), 787) + CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Snipe, 2009477u, new Vector3(-198.6877f, 17.56311f, 208.484f), 787) { Comment = "Far on the left" }; obj205.Steps = list388; reference263 = obj205; - num++; - ref QuestSequence reference264 = ref span384[num]; + ref QuestSequence reference264 = ref span213[4]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(3092) @@ -243158,16 +200842,13 @@ public static class AssemblyQuestLoader num = 1; List list390 = new List(num); CollectionsMarshal.SetCount(list390, num); - Span span390 = CollectionsMarshal.AsSpan(list390); - index = 0; - span390[index] = "liza"; + CollectionsMarshal.AsSpan(list390)[0] = "liza"; questRoot35.Author = list390; - index = 4; - List list391 = new List(index); - CollectionsMarshal.SetCount(list391, index); - Span span391 = CollectionsMarshal.AsSpan(list391); - num = 0; - ref QuestSequence reference265 = ref span391[num]; + num = 4; + List list391 = new List(num); + CollectionsMarshal.SetCount(list391, num); + Span span214 = CollectionsMarshal.AsSpan(list391); + ref QuestSequence reference265 = ref span214[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -243175,26 +200856,21 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - Span span392 = CollectionsMarshal.AsSpan(list392); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025741u, new Vector3(1.449585f, -2.256812E-06f, -9.658997f), 736) { StopDistance = 5f }; obj207.Steps = list392; reference265 = obj207; - num++; - ref QuestSequence reference266 = ref span391[num]; + ref QuestSequence reference266 = ref span214[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list393 = new List(num2); + CollectionsMarshal.SetCount(list393, num2); + CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Duty, null, null, 736) { DutyOptions = new DutyOptions { @@ -243203,13 +200879,11 @@ public static class AssemblyQuestLoader }; obj208.Steps = list393; reference266 = obj208; - num++; - span391[num] = new QuestSequence + span214[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference267 = ref span391[num]; + ref QuestSequence reference267 = ref span214[3]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -243217,9 +200891,7 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span394 = CollectionsMarshal.AsSpan(list394); - index2 = 0; - span394[index2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, NextQuestId = new QuestId(3187) @@ -243233,30 +200905,24 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - Span span395 = CollectionsMarshal.AsSpan(list395); - index = 0; - span395[index] = "liza"; + CollectionsMarshal.AsSpan(list395)[0] = "liza"; questRoot36.Author = list395; - index = 6; - List list396 = new List(index); - CollectionsMarshal.SetCount(list396, index); - Span span396 = CollectionsMarshal.AsSpan(list396); - num = 0; - ref QuestSequence reference268 = ref span396[num]; + num = 6; + List list396 = new List(num); + CollectionsMarshal.SetCount(list396, num); + Span span215 = CollectionsMarshal.AsSpan(list396); + ref QuestSequence reference268 = ref span215[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj210.Steps = list397; reference268 = obj210; - num++; - ref QuestSequence reference269 = ref span396[num]; + ref QuestSequence reference269 = ref span215[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -243264,9 +200930,7 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - span398[index2] = new QuestStep(EInteractionType.Interact, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.Interact, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { AethernetShortcut = new AethernetShortcut { @@ -243276,22 +200940,18 @@ public static class AssemblyQuestLoader }; obj211.Steps = list398; reference269 = obj211; - num++; - ref QuestSequence reference270 = ref span396[num]; + ref QuestSequence reference270 = ref span215[2]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj212.Steps = list399; reference270 = obj212; - num++; - ref QuestSequence reference271 = ref span396[num]; + ref QuestSequence reference271 = ref span215[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -243299,27 +200959,21 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.Interact, 1025891u, new Vector3(-45.059937f, 10.503964f, -191.79071f), 628); + CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1025891u, new Vector3(-45.059937f, 10.503964f, -191.79071f), 628); obj213.Steps = list400; reference271 = obj213; - num++; - ref QuestSequence reference272 = ref span396[num]; + ref QuestSequence reference272 = ref span215[4]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj214.Steps = list401; reference272 = obj214; - num++; - ref QuestSequence reference273 = ref span396[num]; + ref QuestSequence reference273 = ref span215[5]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -243327,9 +200981,7 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span402 = CollectionsMarshal.AsSpan(list402); - index2 = 0; - span402[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628) + CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025893u, new Vector3(-60.41046f, 6.0110765f, -168.41382f), 628) { NextQuestId = new QuestId(3095) }; @@ -243342,30 +200994,24 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - Span span403 = CollectionsMarshal.AsSpan(list403); - index = 0; - span403[index] = "liza"; + CollectionsMarshal.AsSpan(list403)[0] = "liza"; questRoot37.Author = list403; - index = 9; - List list404 = new List(index); - CollectionsMarshal.SetCount(list404, index); - Span span404 = CollectionsMarshal.AsSpan(list404); - num = 0; - ref QuestSequence reference274 = ref span404[num]; + num = 9; + List list404 = new List(num); + CollectionsMarshal.SetCount(list404, num); + Span span216 = CollectionsMarshal.AsSpan(list404); + ref QuestSequence reference274 = ref span216[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj216.Steps = list405; reference274 = obj216; - num++; - ref QuestSequence reference275 = ref span404[num]; + ref QuestSequence reference275 = ref span216[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -243373,34 +201019,28 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.Interact, 1025896u, new Vector3(248.09644f, 17.471375f, -664.9729f), 614) + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1025896u, new Vector3(248.09644f, 17.471375f, -664.9729f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj217.Steps = list406; reference275 = obj217; - num++; - ref QuestSequence reference276 = ref span404[num]; + ref QuestSequence reference276 = ref span216[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj218.Steps = list407; reference276 = obj218; - num++; - ref QuestSequence reference277 = ref span404[num]; + ref QuestSequence reference277 = ref span216[3]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -243408,33 +201048,27 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - span408[index2] = new QuestStep(EInteractionType.Interact, 1025906u, new Vector3(-208.8808f, 53.217514f, -581.3535f), 614) + CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1025906u, new Vector3(-208.8808f, 53.217514f, -581.3535f), 614) { Fly = true }; obj219.Steps = list408; reference277 = obj219; - num++; - ref QuestSequence reference278 = ref span404[num]; + ref QuestSequence reference278 = ref span216[4]; QuestSequence obj220 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj220.Steps = list409; reference278 = obj220; - num++; - ref QuestSequence reference279 = ref span404[num]; + ref QuestSequence reference279 = ref span216[5]; QuestSequence obj221 = new QuestSequence { Sequence = 5 @@ -243442,33 +201076,27 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - Span span410 = CollectionsMarshal.AsSpan(list410); - index2 = 0; - span410[index2] = new QuestStep(EInteractionType.Interact, 1025910u, new Vector3(-125.41394f, 53.217514f, -648.4321f), 614) + CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.Interact, 1025910u, new Vector3(-125.41394f, 53.217514f, -648.4321f), 614) { Fly = true }; obj221.Steps = list410; reference279 = obj221; - num++; - ref QuestSequence reference280 = ref span404[num]; + ref QuestSequence reference280 = ref span216[6]; QuestSequence obj222 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj222.Steps = list411; reference280 = obj222; - num++; - ref QuestSequence reference281 = ref span404[num]; + ref QuestSequence reference281 = ref span216[7]; QuestSequence obj223 = new QuestSequence { Sequence = 7 @@ -243476,26 +201104,21 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span412[index2] = new QuestStep(EInteractionType.Interact, 1019030u, new Vector3(65.72058f, 10.503965f, -167.1626f), 628) + CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1019030u, new Vector3(65.72058f, 10.503965f, -167.1626f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane }; obj223.Steps = list412; reference281 = obj223; - num++; - ref QuestSequence reference282 = ref span404[num]; + ref QuestSequence reference282 = ref span216[8]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(3150) @@ -243509,16 +201132,13 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - Span span414 = CollectionsMarshal.AsSpan(list414); - index = 0; - span414[index] = "Censored"; + CollectionsMarshal.AsSpan(list414)[0] = "Censored"; questRoot38.Author = list414; - index = 6; - List list415 = new List(index); - CollectionsMarshal.SetCount(list415, index); - Span span415 = CollectionsMarshal.AsSpan(list415); - num = 0; - ref QuestSequence reference283 = ref span415[num]; + num = 6; + List list415 = new List(num); + CollectionsMarshal.SetCount(list415, num); + Span span217 = CollectionsMarshal.AsSpan(list415); + ref QuestSequence reference283 = ref span217[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -243526,9 +201146,7 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span416 = CollectionsMarshal.AsSpan(list416); - index2 = 0; - span416[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025693u, new Vector3(-200.18317f, 1.7223222f, 801.75464f), 622) + CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025693u, new Vector3(-200.18317f, 1.7223222f, 801.75464f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -243542,18 +201160,15 @@ public static class AssemblyQuestLoader }; obj225.Steps = list416; reference283 = obj225; - num++; - ref QuestSequence reference284 = ref span415[num]; + ref QuestSequence reference284 = ref span217[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -243567,8 +201182,7 @@ public static class AssemblyQuestLoader }; obj226.Steps = list417; reference284 = obj226; - num++; - ref QuestSequence reference285 = ref span415[num]; + ref QuestSequence reference285 = ref span217[2]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -243576,23 +201190,19 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span418 = CollectionsMarshal.AsSpan(list418); - index2 = 0; - span418[index2] = new QuestStep(EInteractionType.Interact, 1025695u, new Vector3(-284.16876f, 17.31996f, 513.6643f), 614); + CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 1025695u, new Vector3(-284.16876f, 17.31996f, 513.6643f), 614); obj227.Steps = list418; reference285 = obj227; - num++; - ref QuestSequence reference286 = ref span415[num]; + ref QuestSequence reference286 = ref span217[3]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -243604,12 +201214,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span419[num2] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); + span218[1] = new QuestStep(EInteractionType.Interact, 1019382u, new Vector3(496.5437f, 40.859642f, -510.58215f), 622); obj228.Steps = list419; reference286 = obj228; - num++; - ref QuestSequence reference287 = ref span415[num]; + ref QuestSequence reference287 = ref span217[4]; QuestSequence obj229 = new QuestSequence { Sequence = 4 @@ -243617,9 +201225,7 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - Span span420 = CollectionsMarshal.AsSpan(list420); - index2 = 0; - ref QuestStep reference288 = ref span420[index2]; + ref QuestStep reference288 = ref CollectionsMarshal.AsSpan(list420)[0]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1025697u, new Vector3(-627.83246f, 40.01948f, 100.20593f), 622) { Fly = true, @@ -243640,9 +201246,7 @@ public static class AssemblyQuestLoader num3 = 1; List list421 = new List(num3); CollectionsMarshal.SetCount(list421, num3); - Span span421 = CollectionsMarshal.AsSpan(list421); - num4 = 0; - span421[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list421)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANNAM000_03096_Q4_000_000") @@ -243651,18 +201255,15 @@ public static class AssemblyQuestLoader reference288 = obj230; obj229.Steps = list420; reference287 = obj229; - num++; - ref QuestSequence reference289 = ref span415[num]; + ref QuestSequence reference289 = ref span217[5]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -243688,16 +201289,13 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - Span span423 = CollectionsMarshal.AsSpan(list423); - index = 0; - span423[index] = "Censored"; + CollectionsMarshal.AsSpan(list423)[0] = "Censored"; questRoot39.Author = list423; - index = 2; - List list424 = new List(index); - CollectionsMarshal.SetCount(list424, index); - Span span424 = CollectionsMarshal.AsSpan(list424); - num = 0; - ref QuestSequence reference290 = ref span424[num]; + num = 2; + List list424 = new List(num); + CollectionsMarshal.SetCount(list424, num); + Span span219 = CollectionsMarshal.AsSpan(list424); + ref QuestSequence reference290 = ref span219[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -243705,9 +201303,7 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - Span span425 = CollectionsMarshal.AsSpan(list425); - index2 = 0; - span425[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025700u, new Vector3(-767.2999f, 127.43303f, 92.48486f), 622) + CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025700u, new Vector3(-767.2999f, 127.43303f, 92.48486f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -243721,29 +201317,24 @@ public static class AssemblyQuestLoader }; obj232.Steps = list425; reference290 = obj232; - num++; - ref QuestSequence reference291 = ref span424[num]; + ref QuestSequence reference291 = ref span219[1]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 6; - List list426 = new List(index2); - CollectionsMarshal.SetCount(list426, index2); - Span span426 = CollectionsMarshal.AsSpan(list426); - num2 = 0; - ref QuestStep reference292 = ref span426[num2]; + num2 = 6; + List list426 = new List(num2); + CollectionsMarshal.SetCount(list426, num2); + Span span220 = CollectionsMarshal.AsSpan(list426); + ref QuestStep reference292 = ref span220[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1025609u, new Vector3(-770.4738f, 127.42798f, 85.28259f), 622); - num4 = 1; - List list427 = new List(num4); - CollectionsMarshal.SetCount(list427, num4); - Span span427 = CollectionsMarshal.AsSpan(list427); - num3 = 0; - span427[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list427 = new List(num3); + CollectionsMarshal.SetCount(list427, num3); + CollectionsMarshal.AsSpan(list427)[0] = EExtendedClassJob.DoH; questStep8.RequiredQuestAcceptedJob = list427; reference292 = questStep8; - num2++; - ref QuestStep reference293 = ref span426[num2]; + ref QuestStep reference293 = ref span220[1]; QuestStep obj234 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22720u, @@ -243752,79 +201343,61 @@ public static class AssemblyQuestLoader num3 = 1; List list428 = new List(num3); CollectionsMarshal.SetCount(list428, num3); - Span span428 = CollectionsMarshal.AsSpan(list428); - num4 = 0; - span428[num4] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list428)[0] = EExtendedClassJob.DoH; obj234.RequiredQuestAcceptedJob = list428; reference293 = obj234; - num2++; - ref QuestStep reference294 = ref span426[num2]; + ref QuestStep reference294 = ref span220[2]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 622); - num4 = 1; - List list429 = new List(num4); - CollectionsMarshal.SetCount(list429, num4); - Span span429 = CollectionsMarshal.AsSpan(list429); - num3 = 0; - span429[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list429 = new List(num3); + CollectionsMarshal.SetCount(list429, num3); + CollectionsMarshal.AsSpan(list429)[0] = EExtendedClassJob.Miner; questStep9.RequiredQuestAcceptedJob = list429; num3 = 1; List list430 = new List(num3); CollectionsMarshal.SetCount(list430, num3); - Span span430 = CollectionsMarshal.AsSpan(list430); - num4 = 0; - span430[num4] = new GatheredItem + CollectionsMarshal.AsSpan(list430)[0] = new GatheredItem { ItemId = 22616u, ItemCount = 3 }; questStep9.ItemsToGather = list430; reference294 = questStep9; - num2++; - ref QuestStep reference295 = ref span426[num2]; + ref QuestStep reference295 = ref span220[3]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 622); - num4 = 1; - List list431 = new List(num4); - CollectionsMarshal.SetCount(list431, num4); - Span span431 = CollectionsMarshal.AsSpan(list431); - num3 = 0; - span431[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list431 = new List(num3); + CollectionsMarshal.SetCount(list431, num3); + CollectionsMarshal.AsSpan(list431)[0] = EExtendedClassJob.Botanist; questStep10.RequiredQuestAcceptedJob = list431; num3 = 1; List list432 = new List(num3); CollectionsMarshal.SetCount(list432, num3); - Span span432 = CollectionsMarshal.AsSpan(list432); - num4 = 0; - span432[num4] = new GatheredItem + CollectionsMarshal.AsSpan(list432)[0] = new GatheredItem { ItemId = 22642u, ItemCount = 3 }; questStep10.ItemsToGather = list432; reference295 = questStep10; - num2++; - ref QuestStep reference296 = ref span426[num2]; + ref QuestStep reference296 = ref span220[4]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 622); - num4 = 1; - List list433 = new List(num4); - CollectionsMarshal.SetCount(list433, num4); - Span span433 = CollectionsMarshal.AsSpan(list433); - num3 = 0; - span433[num3] = EExtendedClassJob.Fisher; + num3 = 1; + List list433 = new List(num3); + CollectionsMarshal.SetCount(list433, num3); + CollectionsMarshal.AsSpan(list433)[0] = EExtendedClassJob.Fisher; questStep11.RequiredQuestAcceptedJob = list433; num3 = 1; List list434 = new List(num3); CollectionsMarshal.SetCount(list434, num3); - Span span434 = CollectionsMarshal.AsSpan(list434); - num4 = 0; - span434[num4] = new GatheredItem + CollectionsMarshal.AsSpan(list434)[0] = new GatheredItem { ItemId = 22668u, ItemCount = 1 }; questStep11.ItemsToGather = list434; reference296 = questStep11; - num2++; - span426[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025699u, new Vector3(-765.3163f, 127.441086f, 90.92847f), 622); + span220[5] = new QuestStep(EInteractionType.CompleteQuest, 1025699u, new Vector3(-765.3163f, 127.441086f, 90.92847f), 622); obj233.Steps = list426; reference291 = obj233; questRoot39.QuestSequence = list424; @@ -243834,16 +201407,13 @@ public static class AssemblyQuestLoader num = 1; List list435 = new List(num); CollectionsMarshal.SetCount(list435, num); - Span span435 = CollectionsMarshal.AsSpan(list435); - index = 0; - span435[index] = "Theo"; + CollectionsMarshal.AsSpan(list435)[0] = "Theo"; questRoot40.Author = list435; - index = 5; - List list436 = new List(index); - CollectionsMarshal.SetCount(list436, index); - Span span436 = CollectionsMarshal.AsSpan(list436); - num = 0; - ref QuestSequence reference297 = ref span436[num]; + num = 5; + List list436 = new List(num); + CollectionsMarshal.SetCount(list436, num); + Span span221 = CollectionsMarshal.AsSpan(list436); + ref QuestSequence reference297 = ref span221[0]; QuestSequence obj235 = new QuestSequence { Sequence = 0 @@ -243851,9 +201421,8 @@ public static class AssemblyQuestLoader num2 = 2; List list437 = new List(num2); CollectionsMarshal.SetCount(list437, num2); - Span span437 = CollectionsMarshal.AsSpan(list437); - index2 = 0; - span437[index2] = new QuestStep(EInteractionType.WalkTo, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + Span span222 = CollectionsMarshal.AsSpan(list437); + span222[0] = new QuestStep(EInteractionType.WalkTo, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -243870,93 +201439,68 @@ public static class AssemblyQuestLoader } } }; - index2++; - span437[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622); + span222[1] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622); obj235.Steps = list437; reference297 = obj235; - num++; - ref QuestSequence reference298 = ref span436[num]; + ref QuestSequence reference298 = ref span221[1]; QuestSequence obj236 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; - num2++; - ref QuestStep reference299 = ref span438[num2]; + ref QuestStep reference299 = ref span223[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1025702u, new Vector3(-279.25543f, 17.31996f, 489.2804f), 614); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list439; reference299 = questStep12; - num2++; - ref QuestStep reference300 = ref span438[num2]; + ref QuestStep reference300 = ref span223[2]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list440; reference300 = questStep13; - num2++; - ref QuestStep reference301 = ref span438[num2]; + ref QuestStep reference301 = ref span223[3]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1025701u, new Vector3(-280.81183f, 17.31996f, 524.52893f), 614); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list441; reference301 = questStep14; obj236.Steps = list438; reference298 = obj236; - num++; - ref QuestSequence reference302 = ref span436[num]; + ref QuestSequence reference302 = ref span221[2]; QuestSequence obj237 = new QuestSequence { Sequence = 2 @@ -243964,30 +201508,24 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - Span span442 = CollectionsMarshal.AsSpan(list442); - index2 = 0; - span442[index2] = new QuestStep(EInteractionType.Interact, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1025605u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; obj237.Steps = list442; reference302 = obj237; - num++; - ref QuestSequence reference303 = ref span436[num]; + ref QuestSequence reference303 = ref span221[3]; QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj238.Steps = list443; reference303 = obj238; - num++; - ref QuestSequence reference304 = ref span436[num]; + ref QuestSequence reference304 = ref span221[4]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -243995,79 +201533,62 @@ public static class AssemblyQuestLoader num2 = 5; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span444 = CollectionsMarshal.AsSpan(list444); - index2 = 0; - ref QuestStep reference305 = ref span444[index2]; + Span span227 = CollectionsMarshal.AsSpan(list444); + ref QuestStep reference305 = ref span227[0]; 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); - Span span445 = CollectionsMarshal.AsSpan(list445); - num4 = 0; - span445[num4] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list445)[0] = EExtendedClassJob.DoH; questStep15.RequiredQuestAcceptedJob = list445; reference305 = questStep15; - index2++; - ref QuestStep reference306 = ref span444[index2]; + ref QuestStep reference306 = ref span227[1]; QuestStep obj240 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22721u, ItemCount = 2 }; - num4 = 1; - List list446 = new List(num4); - CollectionsMarshal.SetCount(list446, num4); - Span span446 = CollectionsMarshal.AsSpan(list446); - num3 = 0; - span446[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list446 = new List(num3); + CollectionsMarshal.SetCount(list446, num3); + CollectionsMarshal.AsSpan(list446)[0] = EExtendedClassJob.DoH; obj240.RequiredQuestAcceptedJob = list446; reference306 = obj240; - index2++; - ref QuestStep reference307 = ref span444[index2]; + ref QuestStep reference307 = ref span227[2]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list447 = new List(num3); CollectionsMarshal.SetCount(list447, num3); - Span span447 = CollectionsMarshal.AsSpan(list447); - num4 = 0; - span447[num4] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list447)[0] = EExtendedClassJob.Miner; questStep16.RequiredQuestAcceptedJob = list447; - num4 = 1; - List list448 = new List(num4); - CollectionsMarshal.SetCount(list448, num4); - Span span448 = CollectionsMarshal.AsSpan(list448); - num3 = 0; - span448[num3] = new GatheredItem + num3 = 1; + List list448 = new List(num3); + CollectionsMarshal.SetCount(list448, num3); + CollectionsMarshal.AsSpan(list448)[0] = new GatheredItem { ItemId = 22617u, ItemCount = 3 }; questStep16.ItemsToGather = list448; reference307 = questStep16; - index2++; - ref QuestStep reference308 = ref span444[index2]; + ref QuestStep reference308 = ref span227[3]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list449 = new List(num3); CollectionsMarshal.SetCount(list449, num3); - Span span449 = CollectionsMarshal.AsSpan(list449); - num4 = 0; - span449[num4] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list449)[0] = EExtendedClassJob.Botanist; questStep17.RequiredQuestAcceptedJob = list449; - num4 = 1; - List list450 = new List(num4); - CollectionsMarshal.SetCount(list450, num4); - Span span450 = CollectionsMarshal.AsSpan(list450); - num3 = 0; - span450[num3] = new GatheredItem + num3 = 1; + List list450 = new List(num3); + CollectionsMarshal.SetCount(list450, num3); + CollectionsMarshal.AsSpan(list450)[0] = new GatheredItem { ItemId = 22643u, ItemCount = 3 }; questStep17.ItemsToGather = list450; reference308 = questStep17; - index2++; - span444[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025704u, new Vector3(-734.8898f, 127.42169f, 99.99231f), 622) + span227[4] = new QuestStep(EInteractionType.CompleteQuest, 1025704u, new Vector3(-734.8898f, 127.42169f, 99.99231f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244093,26 +201614,21 @@ public static class AssemblyQuestLoader num = 1; List list451 = new List(num); CollectionsMarshal.SetCount(list451, num); - Span span451 = CollectionsMarshal.AsSpan(list451); - index = 0; - span451[index] = "Theo"; + CollectionsMarshal.AsSpan(list451)[0] = "Theo"; questRoot41.Author = list451; - index = 8; - List list452 = new List(index); - CollectionsMarshal.SetCount(list452, index); - Span span452 = CollectionsMarshal.AsSpan(list452); - num = 0; - ref QuestSequence reference309 = ref span452[num]; + num = 8; + List list452 = new List(num); + CollectionsMarshal.SetCount(list452, num); + Span span228 = CollectionsMarshal.AsSpan(list452); + ref QuestSequence reference309 = ref span228[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244131,8 +201647,7 @@ public static class AssemblyQuestLoader }; obj241.Steps = list453; reference309 = obj241; - num++; - ref QuestSequence reference310 = ref span452[num]; + ref QuestSequence reference310 = ref span228[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -244140,9 +201655,7 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - Span span454 = CollectionsMarshal.AsSpan(list454); - index2 = 0; - span454[index2] = new QuestStep(EInteractionType.UseItem, 2009487u, new Vector3(9.048584f, 10.788086f, -0.015319824f), 628) + CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.UseItem, 2009487u, new Vector3(9.048584f, 10.788086f, -0.015319824f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, ItemId = 2002473u, @@ -244161,22 +201674,18 @@ public static class AssemblyQuestLoader }; obj242.Steps = list454; reference310 = obj242; - num++; - ref QuestSequence reference311 = ref span452[num]; + ref QuestSequence reference311 = ref span228[2]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj243.Steps = list455; reference311 = obj243; - num++; - ref QuestSequence reference312 = ref span452[num]; + ref QuestSequence reference312 = ref span228[3]; QuestSequence obj244 = new QuestSequence { Sequence = 3 @@ -244184,9 +201693,7 @@ public static class AssemblyQuestLoader num2 = 1; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span456 = CollectionsMarshal.AsSpan(list456); - index2 = 0; - span456[index2] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) + CollectionsMarshal.AsSpan(list456)[0] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -244204,44 +201711,36 @@ public static class AssemblyQuestLoader }; obj244.Steps = list456; reference312 = obj244; - num++; - ref QuestSequence reference313 = ref span452[num]; + ref QuestSequence reference313 = ref span228[4]; QuestSequence obj245 = new QuestSequence { Sequence = 4 }; - index2 = 5; - List list457 = new List(index2); - CollectionsMarshal.SetCount(list457, index2); - Span span457 = CollectionsMarshal.AsSpan(list457); - num2 = 0; - ref QuestStep reference314 = ref span457[num2]; + num2 = 5; + List list457 = new List(num2); + CollectionsMarshal.SetCount(list457, num2); + Span span229 = CollectionsMarshal.AsSpan(list457); + ref QuestStep reference314 = ref span229[0]; 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); - Span span458 = CollectionsMarshal.AsSpan(list458); - num4 = 0; - span458[num4] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list458)[0] = EExtendedClassJob.DoH; questStep18.RequiredQuestAcceptedJob = list458; reference314 = questStep18; - num2++; - ref QuestStep reference315 = ref span457[num2]; + ref QuestStep reference315 = ref span229[1]; QuestStep obj246 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22722u, ItemCount = 2 }; - num4 = 1; - List list459 = new List(num4); - CollectionsMarshal.SetCount(list459, num4); - Span span459 = CollectionsMarshal.AsSpan(list459); - num3 = 0; - span459[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list459 = new List(num3); + CollectionsMarshal.SetCount(list459, num3); + CollectionsMarshal.AsSpan(list459)[0] = EExtendedClassJob.DoH; obj246.RequiredQuestAcceptedJob = list459; reference315 = obj246; - num2++; - ref QuestStep reference316 = ref span457[num2]; + ref QuestStep reference316 = ref span229[2]; QuestStep obj247 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -244261,24 +201760,19 @@ public static class AssemblyQuestLoader num3 = 1; List list460 = new List(num3); CollectionsMarshal.SetCount(list460, num3); - Span span460 = CollectionsMarshal.AsSpan(list460); - num4 = 0; - span460[num4] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list460)[0] = EExtendedClassJob.Miner; obj247.RequiredQuestAcceptedJob = list460; - num4 = 1; - List list461 = new List(num4); - CollectionsMarshal.SetCount(list461, num4); - Span span461 = CollectionsMarshal.AsSpan(list461); - num3 = 0; - span461[num3] = new GatheredItem + num3 = 1; + List list461 = new List(num3); + CollectionsMarshal.SetCount(list461, num3); + CollectionsMarshal.AsSpan(list461)[0] = new GatheredItem { ItemId = 22618u, ItemCount = 2 }; obj247.ItemsToGather = list461; reference316 = obj247; - num2++; - ref QuestStep reference317 = ref span457[num2]; + ref QuestStep reference317 = ref span229[3]; QuestStep obj248 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -244298,24 +201792,19 @@ public static class AssemblyQuestLoader num3 = 1; List list462 = new List(num3); CollectionsMarshal.SetCount(list462, num3); - Span span462 = CollectionsMarshal.AsSpan(list462); - num4 = 0; - span462[num4] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list462)[0] = EExtendedClassJob.Botanist; obj248.RequiredQuestAcceptedJob = list462; - num4 = 1; - List list463 = new List(num4); - CollectionsMarshal.SetCount(list463, num4); - Span span463 = CollectionsMarshal.AsSpan(list463); - num3 = 0; - span463[num3] = new GatheredItem + num3 = 1; + List list463 = new List(num3); + CollectionsMarshal.SetCount(list463, num3); + CollectionsMarshal.AsSpan(list463)[0] = new GatheredItem { ItemId = 22644u, ItemCount = 2 }; obj248.ItemsToGather = list463; reference317 = obj248; - num2++; - span457[num2] = new QuestStep(EInteractionType.Interact, 1025708u, new Vector3(-746.6392f, 127.458954f, 91.63037f), 622) + span229[4] = new QuestStep(EInteractionType.Interact, 1025708u, new Vector3(-746.6392f, 127.458954f, 91.63037f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -244333,8 +201822,7 @@ public static class AssemblyQuestLoader }; obj245.Steps = list457; reference313 = obj245; - num++; - ref QuestSequence reference318 = ref span452[num]; + ref QuestSequence reference318 = ref span228[5]; QuestSequence obj249 = new QuestSequence { Sequence = 5 @@ -244342,23 +201830,19 @@ public static class AssemblyQuestLoader num2 = 1; List list464 = new List(num2); CollectionsMarshal.SetCount(list464, num2); - Span span464 = CollectionsMarshal.AsSpan(list464); - index2 = 0; - span464[index2] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622); + CollectionsMarshal.AsSpan(list464)[0] = new QuestStep(EInteractionType.Interact, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622); obj249.Steps = list464; reference318 = obj249; - num++; - ref QuestSequence reference319 = ref span452[num]; + ref QuestSequence reference319 = ref span228[6]; QuestSequence obj250 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list465 = new List(index2); - CollectionsMarshal.SetCount(list465, index2); - Span span465 = CollectionsMarshal.AsSpan(list465); - num2 = 0; - ref QuestStep reference320 = ref span465[num2]; + num2 = 2; + List list465 = new List(num2); + CollectionsMarshal.SetCount(list465, num2); + Span span230 = CollectionsMarshal.AsSpan(list465); + ref QuestStep reference320 = ref span230[0]; QuestStep obj251 = new QuestStep(EInteractionType.Action, 1026018u, new Vector3(-728.2368f, 127.378174f, 110.7041f), 622) { Action = EAction.Wasshoi @@ -244366,49 +201850,35 @@ public static class AssemblyQuestLoader num3 = 6; List list466 = new List(num3); CollectionsMarshal.SetCount(list466, num3); - 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); + 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); obj251.CompletionQuestVariablesFlags = list466; reference320 = obj251; - num2++; - ref QuestStep reference321 = ref span465[num2]; + ref QuestStep reference321 = ref span230[1]; QuestStep obj252 = new QuestStep(EInteractionType.Action, 1025709u, new Vector3(-761.86774f, 127.25556f, 137.52954f), 622) { Action = EAction.Wasshoi }; - 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); + 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); obj252.CompletionQuestVariablesFlags = list467; reference321 = obj252; obj250.Steps = list465; reference319 = obj250; - num++; - ref QuestSequence reference322 = ref span452[num]; + ref QuestSequence reference322 = ref span228[7]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue @@ -244416,9 +201886,7 @@ public static class AssemblyQuestLoader num2 = 1; List list468 = new List(num2); CollectionsMarshal.SetCount(list468, num2); - Span span468 = CollectionsMarshal.AsSpan(list468); - index2 = 0; - span468[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) + CollectionsMarshal.AsSpan(list468)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025707u, new Vector3(-747.8599f, 127.457695f, 91.203125f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244448,16 +201916,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Theo"; + CollectionsMarshal.AsSpan(list)[0] = "Theo"; questRoot.Author = list; - index = 8; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 8; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -244465,9 +201930,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244486,30 +201949,26 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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(493.82428f, 40.425697f, -479.13782f), 622) + 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) { Fly = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + span2[1] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = false }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -244517,9 +201976,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1019417u, new Vector3(-39.414062f, 122.1f, 63.61487f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -244538,25 +201995,21 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -244564,9 +202017,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1025843u, new Vector3(-743.9536f, 127.27266f, 138.23145f), 622) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1025843u, new Vector3(-743.9536f, 127.27266f, 138.23145f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244585,44 +202036,36 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - index2 = 5; - List list8 = new List(index2); - CollectionsMarshal.SetCount(list8, index2); - Span span8 = CollectionsMarshal.AsSpan(list8); - num2 = 0; - ref QuestStep reference7 = ref span8[num2]; + num2 = 5; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestStep reference7 = ref span3[0]; 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); - Span span9 = CollectionsMarshal.AsSpan(list9); - int index3 = 0; - span9[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list9)[0] = EExtendedClassJob.DoH; questStep.RequiredCurrentJob = list9; reference7 = questStep; - num2++; - ref QuestStep reference8 = ref span8[num2]; + ref QuestStep reference8 = ref span3[1]; QuestStep obj7 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22723u, ItemCount = 1 }; - index3 = 1; - List list10 = new List(index3); - CollectionsMarshal.SetCount(list10, index3); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - span10[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = EExtendedClassJob.DoH; obj7.RequiredCurrentJob = list10; reference8 = obj7; - num2++; - ref QuestStep reference9 = ref span8[num2]; + ref QuestStep reference9 = ref span3[2]; QuestStep obj8 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -244642,24 +202085,19 @@ public static class AssemblyQuestLoader num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span11 = CollectionsMarshal.AsSpan(list11); - index3 = 0; - span11[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list11)[0] = EExtendedClassJob.Miner; obj8.RequiredQuestAcceptedJob = list11; - index3 = 1; - List list12 = new List(index3); - CollectionsMarshal.SetCount(list12, index3); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = new GatheredItem + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new GatheredItem { ItemId = 22619u, ItemCount = 1 }; obj8.ItemsToGather = list12; reference9 = obj8; - num2++; - ref QuestStep reference10 = ref span8[num2]; + ref QuestStep reference10 = ref span3[3]; QuestStep obj9 = new QuestStep(EInteractionType.Gather, null, null, 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -244679,24 +202117,19 @@ public static class AssemblyQuestLoader num3 = 1; List list13 = new List(num3); CollectionsMarshal.SetCount(list13, num3); - Span span13 = CollectionsMarshal.AsSpan(list13); - index3 = 0; - span13[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list13)[0] = EExtendedClassJob.Botanist; obj9.RequiredQuestAcceptedJob = list13; - index3 = 1; - List list14 = new List(index3); - CollectionsMarshal.SetCount(list14, index3); - Span span14 = CollectionsMarshal.AsSpan(list14); - num3 = 0; - span14[num3] = new GatheredItem + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = new GatheredItem { ItemId = 22645u, ItemCount = 1 }; obj9.ItemsToGather = list14; reference10 = obj9; - num2++; - span8[num2] = new QuestStep(EInteractionType.Interact, 1025842u, new Vector3(-742.855f, 127.275314f, 137.59058f), 622) + span3[4] = new QuestStep(EInteractionType.Interact, 1025842u, new Vector3(-742.855f, 127.275314f, 137.59058f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244715,8 +202148,7 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[6]; QuestSequence obj10 = new QuestSequence { Sequence = 6 @@ -244724,26 +202156,21 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.Interact, 1025715u, new Vector3(-799.13025f, 127.50203f, 57.236572f), 622) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1025715u, new Vector3(-799.13025f, 127.50203f, 57.236572f), 622) { Fly = true }; obj10.Steps = list15; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span2[num]; + ref QuestSequence reference12 = ref span[7]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj11.Steps = list16; reference12 = obj11; questRoot.QuestSequence = list2; @@ -244753,16 +202180,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "Theo"; + CollectionsMarshal.AsSpan(list17)[0] = "Theo"; questRoot2.Author = list17; - index = 5; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 5; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span4 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span4[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -244770,9 +202194,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025601u, new Vector3(-766.7506f, 127.43907f, 91.11157f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -244791,18 +202213,16 @@ public static class AssemblyQuestLoader }; obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span4[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 4; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span5 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span5[0]; QuestStep obj14 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(73.05273f, 205f, 143.30833f), 478) { Mount = true, @@ -244813,30 +202233,24 @@ public static class AssemblyQuestLoader num3 = 2; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - index3 = 0; - span21[index3] = 399; - index3++; - span21[index3] = 463; + Span span6 = CollectionsMarshal.AsSpan(list21); + span6[0] = 399; + span6[1] = 463; skipStepConditions.InTerritory = list21; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; + 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; skipAetheryteCondition.InTerritory = list22; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj14.SkipConditions = skipConditions; reference15 = obj14; - num2++; - ref QuestStep reference16 = ref span20[num2]; + ref QuestStep reference16 = ref span5[1]; QuestStep obj15 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-488.692f, 139.95807f, 734.253f), 399) { Fly = true @@ -244846,15 +202260,12 @@ public static class AssemblyQuestLoader num3 = 1; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - Span span23 = CollectionsMarshal.AsSpan(list23); - index3 = 0; - span23[index3] = 463; + CollectionsMarshal.AsSpan(list23)[0] = 463; skipStepConditions2.InTerritory = list23; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference16 = obj15; - num2++; - ref QuestStep reference17 = ref span20[num2]; + ref QuestStep reference17 = ref span5[2]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 2005336u, new Vector3(-488.79227f, 138.93335f, 741.0543f), 399) { TargetTerritoryId = (ushort)463, @@ -244862,25 +202273,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - index3 = 1; - List list24 = new List(index3); - CollectionsMarshal.SetCount(list24, index3); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - span24[num3] = 463; + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + CollectionsMarshal.AsSpan(list24)[0] = 463; skipStepConditions3.InTerritory = list24; skipConditions3.StepIf = skipStepConditions3; obj16.SkipConditions = skipConditions3; reference17 = obj16; - num2++; - span20[num2] = new QuestStep(EInteractionType.UseItem, 2009488u, new Vector3(17.837708f, 38.406982f, 15.030029f), 463) + span5[3] = new QuestStep(EInteractionType.UseItem, 2009488u, new Vector3(17.837708f, 38.406982f, 15.030029f), 463) { ItemId = 2002474u }; obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference18 = ref span18[num]; + ref QuestSequence reference18 = ref span4[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -244888,34 +202295,28 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.UseItem, 2009510u, new Vector3(-736.5072f, 127.39758f, 101.548706f), 622) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.UseItem, 2009510u, new Vector3(-736.5072f, 127.39758f, 101.548706f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, ItemId = 2002474u }; obj17.Steps = list25; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span18[num]; + ref QuestSequence reference19 = ref span4[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; obj18.Steps = list26; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span18[num]; + ref QuestSequence reference20 = ref span4[4]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -244923,79 +202324,62 @@ public static class AssemblyQuestLoader num2 = 5; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref QuestStep reference21 = ref span27[index2]; + Span span8 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference21 = ref span8[0]; 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); - Span span28 = CollectionsMarshal.AsSpan(list28); - index3 = 0; - span28[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list28)[0] = EExtendedClassJob.DoH; questStep2.RequiredQuestAcceptedJob = list28; reference21 = questStep2; - index2++; - ref QuestStep reference22 = ref span27[index2]; + ref QuestStep reference22 = ref span8[1]; QuestStep obj20 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22724u, ItemCount = 1 }; - index3 = 1; - List list29 = new List(index3); - CollectionsMarshal.SetCount(list29, index3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = EExtendedClassJob.DoH; obj20.RequiredQuestAcceptedJob = list29; reference22 = obj20; - index2++; - ref QuestStep reference23 = ref span27[index2]; + ref QuestStep reference23 = ref span8[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - span30[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list30)[0] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list30; - index3 = 1; - List list31 = new List(index3); - CollectionsMarshal.SetCount(list31, index3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num3 = 0; - span31[num3] = new GatheredItem + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = new GatheredItem { ItemId = 22620u, ItemCount = 1 }; questStep3.ItemsToGather = list31; reference23 = questStep3; - index2++; - ref QuestStep reference24 = ref span27[index2]; + ref QuestStep reference24 = ref span8[3]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span32 = CollectionsMarshal.AsSpan(list32); - index3 = 0; - span32[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list32)[0] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list32; - index3 = 1; - List list33 = new List(index3); - CollectionsMarshal.SetCount(list33, index3); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = new GatheredItem + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new GatheredItem { ItemId = 22646u, ItemCount = 1 }; questStep4.ItemsToGather = list33; reference24 = questStep4; - index2++; - span27[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025845u, new Vector3(-790.98193f, 127.28478f, 122.697754f), 622) + span8[4] = new QuestStep(EInteractionType.CompleteQuest, 1025845u, new Vector3(-790.98193f, 127.28478f, 122.697754f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -245020,26 +202404,21 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "Censored"; + CollectionsMarshal.AsSpan(list34)[0] = "Censored"; questRoot3.Author = list34; - index = 5; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference25 = ref span35[num]; + num = 5; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span9 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference25 = ref span9[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -245057,8 +202436,7 @@ public static class AssemblyQuestLoader }; obj21.Steps = list36; reference25 = obj21; - num++; - ref QuestSequence reference26 = ref span35[num]; + ref QuestSequence reference26 = ref span9[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -245066,33 +202444,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1020280u, new Vector3(-448.1422f, 2.2771428f, 632.1354f), 622) { Fly = true }; obj22.Steps = list37; reference26 = obj22; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span9[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj23.Steps = list38; reference27 = obj23; - num++; - ref QuestSequence reference28 = ref span35[num]; + ref QuestSequence reference28 = ref span9[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 @@ -245100,26 +202472,21 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622) { Fly = true }; obj24.Steps = list39; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span35[num]; + ref QuestSequence reference29 = ref span9[4]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; @@ -245132,16 +202499,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "Theo"; + CollectionsMarshal.AsSpan(list41)[0] = "Theo"; questRoot4.Author = list41; - index = 4; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference30 = ref span42[num]; + num = 4; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span10 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference30 = ref span10[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -245149,33 +202513,27 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - 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); + 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); obj26.Steps = list43; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span42[num]; + ref QuestSequence reference31 = ref span10[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj27.Steps = list44; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span10[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -245183,96 +202541,76 @@ public static class AssemblyQuestLoader num2 = 5; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - ref QuestStep reference33 = ref span45[index2]; + Span span12 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference33 = ref span12[0]; 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); - Span span46 = CollectionsMarshal.AsSpan(list46); - index3 = 0; - span46[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list46)[0] = EExtendedClassJob.DoH; questStep5.RequiredQuestAcceptedJob = list46; reference33 = questStep5; - index2++; - ref QuestStep reference34 = ref span45[index2]; + ref QuestStep reference34 = ref span12[1]; QuestStep obj29 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22725u, ItemCount = 2 }; - index3 = 1; - List list47 = new List(index3); - CollectionsMarshal.SetCount(list47, index3); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - span47[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = EExtendedClassJob.DoH; obj29.RequiredQuestAcceptedJob = list47; reference34 = obj29; - index2++; - ref QuestStep reference35 = ref span45[index2]; + ref QuestStep reference35 = ref span12[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - index3 = 0; - span48[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list48)[0] = EExtendedClassJob.Miner; questStep6.RequiredQuestAcceptedJob = list48; - index3 = 1; - List list49 = new List(index3); - CollectionsMarshal.SetCount(list49, index3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = new GatheredItem + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = new GatheredItem { ItemId = 22621u, ItemCount = 3 }; questStep6.ItemsToGather = list49; reference35 = questStep6; - index2++; - ref QuestStep reference36 = ref span45[index2]; + ref QuestStep reference36 = ref span12[3]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span50 = CollectionsMarshal.AsSpan(list50); - index3 = 0; - span50[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list50)[0] = EExtendedClassJob.Botanist; questStep7.RequiredQuestAcceptedJob = list50; - index3 = 1; - List list51 = new List(index3); - CollectionsMarshal.SetCount(list51, index3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - span51[num3] = new GatheredItem + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + CollectionsMarshal.AsSpan(list51)[0] = new GatheredItem { ItemId = 22647u, ItemCount = 3 }; questStep7.ItemsToGather = list51; reference36 = questStep7; - index2++; - span45[index2] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) + span12[4] = new QuestStep(EInteractionType.Interact, 1025769u, new Vector3(511.43652f, 29.907833f, -404.9287f), 622) { Fly = true }; obj28.Steps = list45; reference32 = obj28; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span10[3]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -245298,16 +202636,13 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "Theo"; + CollectionsMarshal.AsSpan(list53)[0] = "Theo"; questRoot5.Author = list53; - index = 3; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference38 = ref span54[num]; + num = 3; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span13 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference38 = ref span13[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -245315,25 +202650,21 @@ public static class AssemblyQuestLoader num2 = 2; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - 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); + 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); obj31.Steps = list55; reference38 = obj31; - num++; - ref QuestSequence reference39 = ref span54[num]; + ref QuestSequence reference39 = ref span13[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list56 = new List(index2); - CollectionsMarshal.SetCount(list56, index2); - Span span56 = CollectionsMarshal.AsSpan(list56); - num2 = 0; - ref QuestStep reference40 = ref span56[num2]; + num2 = 2; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + Span span15 = CollectionsMarshal.AsSpan(list56); + ref QuestStep reference40 = ref span15[0]; QuestStep obj33 = new QuestStep(EInteractionType.Say, 2009491u, new Vector3(-70.81714f, 66.9718f, -421.89673f), 622) { Fly = true, @@ -245345,23 +202676,16 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - 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); + 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); obj33.CompletionQuestVariablesFlags = list57; reference40 = obj33; - num2++; - ref QuestStep reference41 = ref span56[num2]; + ref QuestStep reference41 = ref span15[1]; QuestStep obj34 = new QuestStep(EInteractionType.Say, 2009492u, new Vector3(725.307f, -1.5717163f, -423.81934f), 622) { Fly = true, @@ -245370,28 +202694,21 @@ public static class AssemblyQuestLoader Key = "TEXT_BANNAM302_03104_SAYTODO_000_050" } }; - 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); + 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); obj34.CompletionQuestVariablesFlags = list58; reference41 = obj34; obj32.Steps = list56; reference39 = obj32; - num++; - ref QuestSequence reference42 = ref span54[num]; + ref QuestSequence reference42 = ref span13[2]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -245399,9 +202716,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -245427,32 +202742,26 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "Theo"; + CollectionsMarshal.AsSpan(list60)[0] = "Theo"; questRoot6.Author = list60; - index = 3; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference43 = ref span61[num]; + num = 3; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span18 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference43 = ref span18[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj36.Steps = list62; reference43 = obj36; - num++; - ref QuestSequence reference44 = ref span61[num]; + ref QuestSequence reference44 = ref span18[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -245460,53 +202769,43 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1025641u, new Vector3(-54.398438f, 76.83682f, -560.8148f), 622) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1025641u, new Vector3(-54.398438f, 76.83682f, -560.8148f), 622) { StopDistance = 5f, Fly = true }; obj37.Steps = list63; reference44 = obj37; - num++; - ref QuestSequence reference45 = ref span61[num]; + ref QuestSequence reference45 = ref span18[2]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list64 = new List(index2); - CollectionsMarshal.SetCount(list64, index2); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref QuestStep reference46 = ref span64[num2]; + num2 = 3; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + Span span20 = CollectionsMarshal.AsSpan(list64); + ref QuestStep reference46 = ref span20[0]; 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); - Span span65 = CollectionsMarshal.AsSpan(list65); - index3 = 0; - span65[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list65)[0] = EExtendedClassJob.DoH; questStep8.RequiredQuestAcceptedJob = list65; reference46 = questStep8; - num2++; - ref QuestStep reference47 = ref span64[num2]; + ref QuestStep reference47 = ref span20[1]; QuestStep obj39 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22726u, ItemCount = 1 }; - index3 = 1; - List list66 = new List(index3); - CollectionsMarshal.SetCount(list66, index3); - Span span66 = CollectionsMarshal.AsSpan(list66); - num3 = 0; - span66[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = EExtendedClassJob.DoH; obj39.RequiredQuestAcceptedJob = list66; reference47 = obj39; - num2++; - span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span20[2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -245532,16 +202831,13 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "Theo"; + CollectionsMarshal.AsSpan(list67)[0] = "Theo"; questRoot7.Author = list67; - index = 3; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference48 = ref span68[num]; + num = 3; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span21 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference48 = ref span21[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -245549,33 +202845,27 @@ public static class AssemblyQuestLoader num2 = 2; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - 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); + 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); obj40.Steps = list69; reference48 = obj40; - num++; - ref QuestSequence reference49 = ref span68[num]; + ref QuestSequence reference49 = ref span21[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj41.Steps = list70; reference49 = obj41; - num++; - ref QuestSequence reference50 = ref span68[num]; + ref QuestSequence reference50 = ref span21[2]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -245583,35 +202873,28 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - ref QuestStep reference51 = ref span71[index2]; + Span span23 = CollectionsMarshal.AsSpan(list71); + ref QuestStep reference51 = ref span23[0]; 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); - Span span72 = CollectionsMarshal.AsSpan(list72); - index3 = 0; - span72[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list72)[0] = EExtendedClassJob.DoH; questStep9.RequiredQuestAcceptedJob = list72; reference51 = questStep9; - index2++; - ref QuestStep reference52 = ref span71[index2]; + ref QuestStep reference52 = ref span23[1]; QuestStep obj43 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22727u, ItemCount = 2 }; - index3 = 1; - List list73 = new List(index3); - CollectionsMarshal.SetCount(list73, index3); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = EExtendedClassJob.DoH; obj43.RequiredQuestAcceptedJob = list73; reference52 = obj43; - index2++; - span71[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span23[2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -245637,32 +202920,26 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "Theo"; + CollectionsMarshal.AsSpan(list74)[0] = "Theo"; questRoot8.Author = list74; - index = 4; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference53 = ref span75[num]; + num = 4; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span24 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference53 = ref span24[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj44.Steps = list76; reference53 = obj44; - num++; - ref QuestSequence reference54 = ref span75[num]; + ref QuestSequence reference54 = ref span24[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -245670,102 +202947,81 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1025775u, new Vector3(-145.4032f, 27.922167f, -36.05713f), 622) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1025775u, new Vector3(-145.4032f, 27.922167f, -36.05713f), 622) { StopDistance = 5f, Fly = true }; obj45.Steps = list77; reference54 = obj45; - num++; - span75[num] = new QuestSequence + span24[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference55 = ref span75[num]; + ref QuestSequence reference55 = ref span24[3]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 5; - List list78 = new List(index2); - CollectionsMarshal.SetCount(list78, index2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num2 = 0; - ref QuestStep reference56 = ref span78[num2]; + num2 = 5; + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + Span span26 = CollectionsMarshal.AsSpan(list78); + ref QuestStep reference56 = ref span26[0]; 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); - Span span79 = CollectionsMarshal.AsSpan(list79); - index3 = 0; - span79[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list79)[0] = EExtendedClassJob.DoH; questStep10.RequiredQuestAcceptedJob = list79; reference56 = questStep10; - num2++; - ref QuestStep reference57 = ref span78[num2]; + ref QuestStep reference57 = ref span26[1]; QuestStep obj47 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22728u, ItemCount = 3 }; - index3 = 1; - List list80 = new List(index3); - CollectionsMarshal.SetCount(list80, index3); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - span80[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = EExtendedClassJob.DoH; obj47.RequiredQuestAcceptedJob = list80; reference57 = obj47; - num2++; - ref QuestStep reference58 = ref span78[num2]; + ref QuestStep reference58 = ref span26[2]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - Span span81 = CollectionsMarshal.AsSpan(list81); - index3 = 0; - span81[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list81)[0] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list81; - index3 = 1; - List list82 = new List(index3); - CollectionsMarshal.SetCount(list82, index3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = new GatheredItem + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = new GatheredItem { ItemId = 22624u, ItemCount = 3 }; questStep11.ItemsToGather = list82; reference58 = questStep11; - num2++; - ref QuestStep reference59 = ref span78[num2]; + ref QuestStep reference59 = ref span26[3]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span83 = CollectionsMarshal.AsSpan(list83); - index3 = 0; - span83[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list83)[0] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list83; - index3 = 1; - List list84 = new List(index3); - CollectionsMarshal.SetCount(list84, index3); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = new GatheredItem + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = new GatheredItem { ItemId = 22650u, ItemCount = 3 }; questStep12.ItemsToGather = list84; reference59 = questStep12; - num2++; - span78[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span26[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -245791,16 +203047,13 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "Theo"; + CollectionsMarshal.AsSpan(list85)[0] = "Theo"; questRoot9.Author = list85; - index = 5; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference60 = ref span86[num]; + num = 5; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span27 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference60 = ref span27[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -245808,33 +203061,27 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - 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); + 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); obj48.Steps = list87; reference60 = obj48; - num++; - ref QuestSequence reference61 = ref span86[num]; + ref QuestSequence reference61 = ref span27[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj49.Steps = list88; reference61 = obj49; - num++; - ref QuestSequence reference62 = ref span86[num]; + ref QuestSequence reference62 = ref span27[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -245842,109 +203089,88 @@ public static class AssemblyQuestLoader num2 = 5; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref QuestStep reference63 = ref span89[index2]; + Span span29 = CollectionsMarshal.AsSpan(list89); + ref QuestStep reference63 = ref span29[0]; 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); - Span span90 = CollectionsMarshal.AsSpan(list90); - index3 = 0; - span90[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list90)[0] = EExtendedClassJob.DoH; questStep13.RequiredQuestAcceptedJob = list90; reference63 = questStep13; - index2++; - ref QuestStep reference64 = ref span89[index2]; + ref QuestStep reference64 = ref span29[1]; QuestStep obj51 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22729u, ItemCount = 1 }; - index3 = 1; - List list91 = new List(index3); - CollectionsMarshal.SetCount(list91, index3); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - span91[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + CollectionsMarshal.AsSpan(list91)[0] = EExtendedClassJob.DoH; obj51.RequiredQuestAcceptedJob = list91; reference64 = obj51; - index2++; - ref QuestStep reference65 = ref span89[index2]; + ref QuestStep reference65 = ref span29[2]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span92 = CollectionsMarshal.AsSpan(list92); - index3 = 0; - span92[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list92)[0] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list92; - index3 = 1; - List list93 = new List(index3); - CollectionsMarshal.SetCount(list93, index3); - Span span93 = CollectionsMarshal.AsSpan(list93); - num3 = 0; - span93[num3] = new GatheredItem + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new GatheredItem { ItemId = 22625u, ItemCount = 3 }; questStep14.ItemsToGather = list93; reference65 = questStep14; - index2++; - ref QuestStep reference66 = ref span89[index2]; + ref QuestStep reference66 = ref span29[3]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - index3 = 0; - span94[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list94)[0] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list94; - index3 = 1; - List list95 = new List(index3); - CollectionsMarshal.SetCount(list95, index3); - Span span95 = CollectionsMarshal.AsSpan(list95); - num3 = 0; - span95[num3] = new GatheredItem + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = new GatheredItem { ItemId = 22651u, ItemCount = 3 }; questStep15.ItemsToGather = list95; reference66 = questStep15; - index2++; - span89[index2] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) + span29[4] = new QuestStep(EInteractionType.Interact, 1025777u, new Vector3(-596.9177f, 64.000984f, -285.0843f), 622) { Fly = true }; obj50.Steps = list89; reference62 = obj50; - num++; - ref QuestSequence reference67 = ref span86[num]; + ref QuestSequence reference67 = ref span27[3]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span96[num2] = new QuestStep(EInteractionType.Interact, 1019330u, new Vector3(-746.7918f, 7.8459983f, 398.27563f), 622) + span30[1] = new QuestStep(EInteractionType.Interact, 1019330u, new Vector3(-746.7918f, 7.8459983f, 398.27563f), 622) { StopDistance = 5f, Fly = true }; obj52.Steps = list96; reference67 = obj52; - num++; - ref QuestSequence reference68 = ref span86[num]; + ref QuestSequence reference68 = ref span27[4]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -245952,9 +203178,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -245980,32 +203204,26 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "Theo"; + CollectionsMarshal.AsSpan(list98)[0] = "Theo"; questRoot10.Author = list98; - index = 4; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference69 = ref span99[num]; + num = 4; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span31 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference69 = ref span31[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj54.Steps = list100; reference69 = obj54; - num++; - ref QuestSequence reference70 = ref span99[num]; + ref QuestSequence reference70 = ref span31[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -246013,9 +203231,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(194.04845f, 13.27476f, 121.84426f), 622) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(194.04845f, 13.27476f, 121.84426f), 622) { StopDistance = 0.5f, Fly = true, @@ -246023,95 +203239,76 @@ public static class AssemblyQuestLoader }; obj55.Steps = list101; reference70 = obj55; - num++; - ref QuestSequence reference71 = ref span99[num]; + ref QuestSequence reference71 = ref span31[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list102 = new List(index2); - CollectionsMarshal.SetCount(list102, index2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num2 = 0; - ref QuestStep reference72 = ref span102[num2]; + num2 = 5; + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + Span span33 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference72 = ref span33[0]; 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); - Span span103 = CollectionsMarshal.AsSpan(list103); - index3 = 0; - span103[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list103)[0] = EExtendedClassJob.DoH; questStep16.RequiredQuestAcceptedJob = list103; reference72 = questStep16; - num2++; - ref QuestStep reference73 = ref span102[num2]; + ref QuestStep reference73 = ref span33[1]; QuestStep obj57 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22730u, ItemCount = 2 }; - index3 = 1; - List list104 = new List(index3); - CollectionsMarshal.SetCount(list104, index3); - Span span104 = CollectionsMarshal.AsSpan(list104); - num3 = 0; - span104[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = EExtendedClassJob.DoH; obj57.RequiredQuestAcceptedJob = list104; reference73 = obj57; - num2++; - ref QuestStep reference74 = ref span102[num2]; + ref QuestStep reference74 = ref span33[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - index3 = 0; - span105[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list105)[0] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list105; - index3 = 1; - List list106 = new List(index3); - CollectionsMarshal.SetCount(list106, index3); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - span106[num3] = new GatheredItem + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = new GatheredItem { ItemId = 22626u, ItemCount = 3 }; questStep17.ItemsToGather = list106; reference74 = questStep17; - num2++; - ref QuestStep reference75 = ref span102[num2]; + ref QuestStep reference75 = ref span33[3]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - index3 = 0; - span107[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list107)[0] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list107; - index3 = 1; - List list108 = new List(index3); - CollectionsMarshal.SetCount(list108, index3); - Span span108 = CollectionsMarshal.AsSpan(list108); - num3 = 0; - span108[num3] = new GatheredItem + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = new GatheredItem { ItemId = 22652u, ItemCount = 3 }; questStep18.ItemsToGather = list108; reference75 = questStep18; - num2++; - span102[num2] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(193.04187f, 13.040566f, 120.19531f), 622) + span33[4] = new QuestStep(EInteractionType.Interact, 1025779u, new Vector3(193.04187f, 13.040566f, 120.19531f), 622) { Fly = true }; obj56.Steps = list102; reference71 = obj56; - num++; - ref QuestSequence reference76 = ref span99[num]; + ref QuestSequence reference76 = ref span31[3]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -246119,9 +203316,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -246147,26 +203342,21 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "Theo"; + CollectionsMarshal.AsSpan(list110)[0] = "Theo"; questRoot11.Author = list110; - index = 5; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference77 = ref span111[num]; + num = 5; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span34 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference77 = ref span34[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -246184,8 +203374,7 @@ public static class AssemblyQuestLoader }; obj59.Steps = list112; reference77 = obj59; - num++; - ref QuestSequence reference78 = ref span111[num]; + ref QuestSequence reference78 = ref span34[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -246193,103 +203382,82 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj60.Steps = list113; reference78 = obj60; - num++; - ref QuestSequence reference79 = ref span111[num]; + ref QuestSequence reference79 = ref span34[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list114 = new List(index2); - CollectionsMarshal.SetCount(list114, index2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num2 = 0; - ref QuestStep reference80 = ref span114[num2]; + num2 = 5; + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + Span span35 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference80 = ref span35[0]; 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); - Span span115 = CollectionsMarshal.AsSpan(list115); - index3 = 0; - span115[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list115)[0] = EExtendedClassJob.DoH; questStep19.RequiredQuestAcceptedJob = list115; reference80 = questStep19; - num2++; - ref QuestStep reference81 = ref span114[num2]; + ref QuestStep reference81 = ref span35[1]; QuestStep obj62 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22731u, ItemCount = 1 }; - index3 = 1; - List list116 = new List(index3); - CollectionsMarshal.SetCount(list116, index3); - Span span116 = CollectionsMarshal.AsSpan(list116); - num3 = 0; - span116[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = EExtendedClassJob.DoH; obj62.RequiredQuestAcceptedJob = list116; reference81 = obj62; - num2++; - ref QuestStep reference82 = ref span114[num2]; + ref QuestStep reference82 = ref span35[2]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - Span span117 = CollectionsMarshal.AsSpan(list117); - index3 = 0; - span117[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list117)[0] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list117; - index3 = 1; - List list118 = new List(index3); - CollectionsMarshal.SetCount(list118, index3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - span118[num3] = new GatheredItem + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + CollectionsMarshal.AsSpan(list118)[0] = new GatheredItem { ItemId = 22627u, ItemCount = 3 }; questStep20.ItemsToGather = list118; reference82 = questStep20; - num2++; - ref QuestStep reference83 = ref span114[num2]; + ref QuestStep reference83 = ref span35[3]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - Span span119 = CollectionsMarshal.AsSpan(list119); - index3 = 0; - span119[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list119)[0] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list119; - index3 = 1; - List list120 = new List(index3); - CollectionsMarshal.SetCount(list120, index3); - Span span120 = CollectionsMarshal.AsSpan(list120); - num3 = 0; - span120[num3] = new GatheredItem + num3 = 1; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + CollectionsMarshal.AsSpan(list120)[0] = new GatheredItem { ItemId = 22653u, ItemCount = 3 }; questStep21.ItemsToGather = list120; reference83 = questStep21; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) + span35[4] = new QuestStep(EInteractionType.Interact, 1025781u, new Vector3(573.96814f, -19.505817f, 427.66455f), 622) { Fly = true }; obj61.Steps = list114; reference79 = obj61; - num++; - ref QuestSequence reference84 = ref span111[num]; + ref QuestSequence reference84 = ref span34[3]; QuestSequence obj63 = new QuestSequence { Sequence = 3 @@ -246297,23 +203465,18 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 2009494u, new Vector3(575.09717f, -19.272217f, 424.97888f), 622); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2009494u, new Vector3(575.09717f, -19.272217f, 424.97888f), 622); obj63.Steps = list121; reference84 = obj63; - num++; - ref QuestSequence reference85 = ref span111[num]; + ref QuestSequence reference85 = ref span34[4]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -246339,16 +203502,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "Theo"; + CollectionsMarshal.AsSpan(list123)[0] = "Theo"; questRoot12.Author = list123; - index = 3; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference86 = ref span124[num]; + num = 3; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span36 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference86 = ref span36[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -246356,9 +203516,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -246376,18 +203534,15 @@ public static class AssemblyQuestLoader }; obj65.Steps = list125; reference86 = obj65; - num++; - ref QuestSequence reference87 = ref span124[num]; + ref QuestSequence reference87 = ref span36[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -246406,8 +203561,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list126; reference87 = obj66; - num++; - ref QuestSequence reference88 = ref span124[num]; + ref QuestSequence reference88 = ref span36[2]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -246415,79 +203569,62 @@ public static class AssemblyQuestLoader num2 = 5; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - ref QuestStep reference89 = ref span127[index2]; + Span span37 = CollectionsMarshal.AsSpan(list127); + ref QuestStep reference89 = ref span37[0]; 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); - Span span128 = CollectionsMarshal.AsSpan(list128); - index3 = 0; - span128[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list128)[0] = EExtendedClassJob.DoH; questStep22.RequiredQuestAcceptedJob = list128; reference89 = questStep22; - index2++; - ref QuestStep reference90 = ref span127[index2]; + ref QuestStep reference90 = ref span37[1]; QuestStep obj68 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22732u, ItemCount = 2 }; - index3 = 1; - List list129 = new List(index3); - CollectionsMarshal.SetCount(list129, index3); - Span span129 = CollectionsMarshal.AsSpan(list129); - num3 = 0; - span129[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + CollectionsMarshal.AsSpan(list129)[0] = EExtendedClassJob.DoH; obj68.RequiredQuestAcceptedJob = list129; reference90 = obj68; - index2++; - ref QuestStep reference91 = ref span127[index2]; + ref QuestStep reference91 = ref span37[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list130)[0] = EExtendedClassJob.Miner; questStep23.RequiredQuestAcceptedJob = list130; - index3 = 1; - List list131 = new List(index3); - CollectionsMarshal.SetCount(list131, index3); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - span131[num3] = new GatheredItem + num3 = 1; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + CollectionsMarshal.AsSpan(list131)[0] = new GatheredItem { ItemId = 22628u, ItemCount = 3 }; questStep23.ItemsToGather = list131; reference91 = questStep23; - index2++; - ref QuestStep reference92 = ref span127[index2]; + ref QuestStep reference92 = ref span37[3]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span132 = CollectionsMarshal.AsSpan(list132); - index3 = 0; - span132[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list132)[0] = EExtendedClassJob.Botanist; questStep24.RequiredQuestAcceptedJob = list132; - index3 = 1; - List list133 = new List(index3); - CollectionsMarshal.SetCount(list133, index3); - Span span133 = CollectionsMarshal.AsSpan(list133); - num3 = 0; - span133[num3] = new GatheredItem + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + CollectionsMarshal.AsSpan(list133)[0] = new GatheredItem { ItemId = 22654u, ItemCount = 3 }; questStep24.ItemsToGather = list133; reference92 = questStep24; - index2++; - span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span37[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -246513,26 +203650,21 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "Theo"; + CollectionsMarshal.AsSpan(list134)[0] = "Theo"; questRoot13.Author = list134; - index = 4; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference93 = ref span135[num]; + num = 4; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span38 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference93 = ref span38[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -246551,8 +203683,7 @@ public static class AssemblyQuestLoader }; obj69.Steps = list136; reference93 = obj69; - num++; - ref QuestSequence reference94 = ref span135[num]; + ref QuestSequence reference94 = ref span38[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -246560,104 +203691,83 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj70.Steps = list137; reference94 = obj70; - num++; - ref QuestSequence reference95 = ref span135[num]; + ref QuestSequence reference95 = ref span38[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list138 = new List(index2); - CollectionsMarshal.SetCount(list138, index2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num2 = 0; - ref QuestStep reference96 = ref span138[num2]; + num2 = 5; + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + Span span39 = CollectionsMarshal.AsSpan(list138); + ref QuestStep reference96 = ref span39[0]; 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); - Span span139 = CollectionsMarshal.AsSpan(list139); - index3 = 0; - span139[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list139)[0] = EExtendedClassJob.DoH; questStep25.RequiredQuestAcceptedJob = list139; reference96 = questStep25; - num2++; - ref QuestStep reference97 = ref span138[num2]; + ref QuestStep reference97 = ref span39[1]; QuestStep obj72 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22733u, ItemCount = 1 }; - index3 = 1; - List list140 = new List(index3); - CollectionsMarshal.SetCount(list140, index3); - Span span140 = CollectionsMarshal.AsSpan(list140); - num3 = 0; - span140[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list140 = new List(num3); + CollectionsMarshal.SetCount(list140, num3); + CollectionsMarshal.AsSpan(list140)[0] = EExtendedClassJob.DoH; obj72.RequiredQuestAcceptedJob = list140; reference97 = obj72; - num2++; - ref QuestStep reference98 = ref span138[num2]; + ref QuestStep reference98 = ref span39[2]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span141 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span141[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list141; - index3 = 1; - List list142 = new List(index3); - CollectionsMarshal.SetCount(list142, index3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = new GatheredItem + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = new GatheredItem { ItemId = 22629u, ItemCount = 3 }; questStep26.ItemsToGather = list142; reference98 = questStep26; - num2++; - ref QuestStep reference99 = ref span138[num2]; + ref QuestStep reference99 = ref span39[3]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span143 = CollectionsMarshal.AsSpan(list143); - index3 = 0; - span143[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list143; - index3 = 1; - List list144 = new List(index3); - CollectionsMarshal.SetCount(list144, index3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - span144[num3] = new GatheredItem + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem { ItemId = 22655u, ItemCount = 3 }; questStep27.ItemsToGather = list144; reference99 = questStep27; - num2++; - span138[num2] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) + span39[4] = new QuestStep(EInteractionType.Interact, 1025785u, new Vector3(76.58496f, 114.904976f, -6.363098f), 622) { Fly = true }; obj71.Steps = list138; reference95 = obj71; - num++; - ref QuestSequence reference100 = ref span135[num]; + ref QuestSequence reference100 = ref span38[3]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -246665,9 +203775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -246693,32 +203801,26 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "Theo"; + CollectionsMarshal.AsSpan(list146)[0] = "Theo"; questRoot14.Author = list146; - index = 4; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference101 = ref span147[num]; + num = 4; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span40 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference101 = ref span40[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj74.Steps = list148; reference101 = obj74; - num++; - ref QuestSequence reference102 = ref span147[num]; + ref QuestSequence reference102 = ref span40[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -246726,104 +203828,83 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj75.Steps = list149; reference102 = obj75; - num++; - ref QuestSequence reference103 = ref span147[num]; + ref QuestSequence reference103 = ref span40[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list150 = new List(index2); - CollectionsMarshal.SetCount(list150, index2); - Span span150 = CollectionsMarshal.AsSpan(list150); - num2 = 0; - ref QuestStep reference104 = ref span150[num2]; + num2 = 5; + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + Span span42 = CollectionsMarshal.AsSpan(list150); + ref QuestStep reference104 = ref span42[0]; 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); - Span span151 = CollectionsMarshal.AsSpan(list151); - index3 = 0; - span151[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list151)[0] = EExtendedClassJob.DoH; questStep28.RequiredQuestAcceptedJob = list151; reference104 = questStep28; - num2++; - ref QuestStep reference105 = ref span150[num2]; + ref QuestStep reference105 = ref span42[1]; QuestStep obj77 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22734u, ItemCount = 2 }; - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = EExtendedClassJob.DoH; obj77.RequiredQuestAcceptedJob = list152; reference105 = obj77; - num2++; - ref QuestStep reference106 = ref span150[num2]; + ref QuestStep reference106 = ref span42[2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - index3 = 0; - span153[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list153)[0] = EExtendedClassJob.Miner; questStep29.RequiredQuestAcceptedJob = list153; - index3 = 1; - List list154 = new List(index3); - CollectionsMarshal.SetCount(list154, index3); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - span154[num3] = new GatheredItem + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new GatheredItem { ItemId = 22630u, ItemCount = 3 }; questStep29.ItemsToGather = list154; reference106 = questStep29; - num2++; - ref QuestStep reference107 = ref span150[num2]; + ref QuestStep reference107 = ref span42[3]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list155)[0] = EExtendedClassJob.Botanist; questStep30.RequiredQuestAcceptedJob = list155; - index3 = 1; - List list156 = new List(index3); - CollectionsMarshal.SetCount(list156, index3); - Span span156 = CollectionsMarshal.AsSpan(list156); - num3 = 0; - span156[num3] = new GatheredItem + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = new GatheredItem { ItemId = 22656u, ItemCount = 3 }; questStep30.ItemsToGather = list156; reference107 = questStep30; - num2++; - span150[num2] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) + span42[4] = new QuestStep(EInteractionType.Interact, 1025787u, new Vector3(389.70007f, -8.514979f, 487.93762f), 622) { Fly = true }; obj76.Steps = list150; reference103 = obj76; - num++; - ref QuestSequence reference108 = ref span147[num]; + ref QuestSequence reference108 = ref span40[3]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -246831,9 +203912,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -246859,32 +203938,26 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "Theo"; + CollectionsMarshal.AsSpan(list158)[0] = "Theo"; questRoot15.Author = list158; - index = 4; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference109 = ref span159[num]; + num = 4; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span43 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference109 = ref span43[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj79.Steps = list160; reference109 = obj79; - num++; - ref QuestSequence reference110 = ref span159[num]; + ref QuestSequence reference110 = ref span43[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -246892,104 +203965,83 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj80.Steps = list161; reference110 = obj80; - num++; - ref QuestSequence reference111 = ref span159[num]; + ref QuestSequence reference111 = ref span43[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num2 = 0; - ref QuestStep reference112 = ref span162[num2]; + num2 = 5; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + Span span45 = CollectionsMarshal.AsSpan(list162); + ref QuestStep reference112 = ref span45[0]; 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); - Span span163 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span163[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list163)[0] = EExtendedClassJob.DoH; questStep31.RequiredQuestAcceptedJob = list163; reference112 = questStep31; - num2++; - ref QuestStep reference113 = ref span162[num2]; + ref QuestStep reference113 = ref span45[1]; QuestStep obj82 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22735u, ItemCount = 3 }; - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = EExtendedClassJob.DoH; obj82.RequiredQuestAcceptedJob = list164; reference113 = obj82; - num2++; - ref QuestStep reference114 = ref span162[num2]; + ref QuestStep reference114 = ref span45[2]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span165 = CollectionsMarshal.AsSpan(list165); - index3 = 0; - span165[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list165)[0] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list165; - index3 = 1; - List list166 = new List(index3); - CollectionsMarshal.SetCount(list166, index3); - Span span166 = CollectionsMarshal.AsSpan(list166); - num3 = 0; - span166[num3] = new GatheredItem + num3 = 1; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + CollectionsMarshal.AsSpan(list166)[0] = new GatheredItem { ItemId = 22631u, ItemCount = 3 }; questStep32.ItemsToGather = list166; reference114 = questStep32; - num2++; - ref QuestStep reference115 = ref span162[num2]; + ref QuestStep reference115 = ref span45[3]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span167 = CollectionsMarshal.AsSpan(list167); - index3 = 0; - span167[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list167; - index3 = 1; - List list168 = new List(index3); - CollectionsMarshal.SetCount(list168, index3); - Span span168 = CollectionsMarshal.AsSpan(list168); - num3 = 0; - span168[num3] = new GatheredItem + num3 = 1; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem { ItemId = 22657u, ItemCount = 3 }; questStep33.ItemsToGather = list168; reference115 = questStep33; - num2++; - span162[num2] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) + span45[4] = new QuestStep(EInteractionType.Interact, 1025789u, new Vector3(594.93384f, 23.164816f, -421.80518f), 622) { Fly = true }; obj81.Steps = list162; reference111 = obj81; - num++; - ref QuestSequence reference116 = ref span159[num]; + ref QuestSequence reference116 = ref span43[3]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -246997,9 +204049,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247025,26 +204075,21 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "Theo"; + CollectionsMarshal.AsSpan(list170)[0] = "Theo"; questRoot16.Author = list170; - index = 5; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference117 = ref span171[num]; + num = 5; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span46 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference117 = ref span46[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247063,8 +204108,7 @@ public static class AssemblyQuestLoader }; obj84.Steps = list172; reference117 = obj84; - num++; - ref QuestSequence reference118 = ref span171[num]; + ref QuestSequence reference118 = ref span46[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -247072,26 +204116,21 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622) { Mount = true }; obj85.Steps = list173; reference118 = obj85; - num++; - ref QuestSequence reference119 = ref span171[num]; + ref QuestSequence reference119 = ref span46[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Land = true, @@ -247099,8 +204138,7 @@ public static class AssemblyQuestLoader }; obj86.Steps = list174; reference119 = obj86; - num++; - ref QuestSequence reference120 = ref span171[num]; + ref QuestSequence reference120 = ref span46[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 @@ -247108,9 +204146,7 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.Action, 2009499u, new Vector3(176.34851f, 4.135132f, 20.645447f), 622) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Action, 2009499u, new Vector3(176.34851f, 4.135132f, 20.645447f), 622) { Fly = true, Land = true, @@ -247118,18 +204154,15 @@ public static class AssemblyQuestLoader }; obj87.Steps = list175; reference120 = obj87; - num++; - ref QuestSequence reference121 = ref span171[num]; + ref QuestSequence reference121 = ref span46[4]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = false, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247155,16 +204188,13 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - Span span177 = CollectionsMarshal.AsSpan(list177); - index = 0; - span177[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list177)[0] = "plogon_enjoyer"; questRoot17.Author = list177; - index = 3; - List list178 = new List(index); - CollectionsMarshal.SetCount(list178, index); - Span span178 = CollectionsMarshal.AsSpan(list178); - num = 0; - ref QuestSequence reference122 = ref span178[num]; + num = 3; + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + Span span47 = CollectionsMarshal.AsSpan(list178); + ref QuestSequence reference122 = ref span47[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -247172,9 +204202,7 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247193,18 +204221,16 @@ public static class AssemblyQuestLoader }; obj89.Steps = list179; reference122 = obj89; - num++; - ref QuestSequence reference123 = ref span178[num]; + ref QuestSequence reference123 = ref span47[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)622, Mount = true, @@ -247216,8 +204242,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span180[num2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) + span48[1] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) { Mount = true, SkipConditions = new SkipConditions @@ -247228,8 +204253,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span180[num2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) + span48[2] = new QuestStep(EInteractionType.Interact, 1025797u, new Vector3(-364.7975f, 76.98169f, -579.2172f), 622) { Fly = true, SkipConditions = new SkipConditions @@ -247242,8 +204266,7 @@ public static class AssemblyQuestLoader }; obj90.Steps = list180; reference123 = obj90; - num++; - ref QuestSequence reference124 = ref span178[num]; + ref QuestSequence reference124 = ref span47[2]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -247251,79 +204274,62 @@ public static class AssemblyQuestLoader num2 = 5; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - ref QuestStep reference125 = ref span181[index2]; + Span span49 = CollectionsMarshal.AsSpan(list181); + ref QuestStep reference125 = ref span49[0]; 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); - Span span182 = CollectionsMarshal.AsSpan(list182); - index3 = 0; - span182[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list182)[0] = EExtendedClassJob.DoH; questStep34.RequiredQuestAcceptedJob = list182; reference125 = questStep34; - index2++; - ref QuestStep reference126 = ref span181[index2]; + ref QuestStep reference126 = ref span49[1]; QuestStep obj92 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22736u, ItemCount = 2 }; - index3 = 1; - List list183 = new List(index3); - CollectionsMarshal.SetCount(list183, index3); - Span span183 = CollectionsMarshal.AsSpan(list183); - num3 = 0; - span183[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + CollectionsMarshal.AsSpan(list183)[0] = EExtendedClassJob.DoH; obj92.RequiredQuestAcceptedJob = list183; reference126 = obj92; - index2++; - ref QuestStep reference127 = ref span181[index2]; + ref QuestStep reference127 = ref span49[2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span184 = CollectionsMarshal.AsSpan(list184); - index3 = 0; - span184[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list184)[0] = EExtendedClassJob.Miner; questStep35.RequiredQuestAcceptedJob = list184; - index3 = 1; - List list185 = new List(index3); - CollectionsMarshal.SetCount(list185, index3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = new GatheredItem + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new GatheredItem { ItemId = 22632u, ItemCount = 1 }; questStep35.ItemsToGather = list185; reference127 = questStep35; - index2++; - ref QuestStep reference128 = ref span181[index2]; + ref QuestStep reference128 = ref span49[3]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list186)[0] = EExtendedClassJob.Botanist; questStep36.RequiredQuestAcceptedJob = list186; - index3 = 1; - List list187 = new List(index3); - CollectionsMarshal.SetCount(list187, index3); - Span span187 = CollectionsMarshal.AsSpan(list187); - num3 = 0; - span187[num3] = new GatheredItem + num3 = 1; + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + CollectionsMarshal.AsSpan(list187)[0] = new GatheredItem { ItemId = 22658u, ItemCount = 1 }; questStep36.ItemsToGather = list187; reference128 = questStep36; - index2++; - span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span49[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247349,26 +204355,21 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; questRoot18.Author = list188; - index = 3; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference129 = ref span189[num]; + num = 3; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span50 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference129 = ref span50[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247387,8 +204388,7 @@ public static class AssemblyQuestLoader }; obj93.Steps = list190; reference129 = obj93; - num++; - ref QuestSequence reference130 = ref span189[num]; + ref QuestSequence reference130 = ref span50[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -247396,9 +204396,8 @@ public static class AssemblyQuestLoader num2 = 3; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) + Span span51 = CollectionsMarshal.AsSpan(list191); + span51[0] = new QuestStep(EInteractionType.Interact, 1025925u, new Vector3(-702.17444f, 127.5686f, 112.291016f), 622) { TargetTerritoryId = (ushort)622, Mount = true, @@ -247410,8 +204409,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span191[index2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) + span51[1] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) { Mount = true, SkipConditions = new SkipConditions @@ -247422,8 +204420,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span191[index2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) + span51[2] = new QuestStep(EInteractionType.Interact, 1025799u, new Vector3(-175.03625f, 66.81902f, -437.43042f), 622) { Fly = true, SkipConditions = new SkipConditions @@ -247436,88 +204433,70 @@ public static class AssemblyQuestLoader }; obj94.Steps = list191; reference130 = obj94; - num++; - ref QuestSequence reference131 = ref span189[num]; + ref QuestSequence reference131 = ref span50[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 5; - List list192 = new List(index2); - CollectionsMarshal.SetCount(list192, index2); - Span span192 = CollectionsMarshal.AsSpan(list192); - num2 = 0; - ref QuestStep reference132 = ref span192[num2]; + num2 = 5; + List list192 = new List(num2); + CollectionsMarshal.SetCount(list192, num2); + Span span52 = CollectionsMarshal.AsSpan(list192); + ref QuestStep reference132 = ref span52[0]; 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); - Span span193 = CollectionsMarshal.AsSpan(list193); - index3 = 0; - span193[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list193)[0] = EExtendedClassJob.DoH; questStep37.RequiredCurrentJob = list193; reference132 = questStep37; - num2++; - ref QuestStep reference133 = ref span192[num2]; + ref QuestStep reference133 = ref span52[1]; QuestStep obj96 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22737u, ItemCount = 1 }; - index3 = 1; - List list194 = new List(index3); - CollectionsMarshal.SetCount(list194, index3); - Span span194 = CollectionsMarshal.AsSpan(list194); - num3 = 0; - span194[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + CollectionsMarshal.AsSpan(list194)[0] = EExtendedClassJob.DoH; obj96.RequiredCurrentJob = list194; reference133 = obj96; - num2++; - ref QuestStep reference134 = ref span192[num2]; + ref QuestStep reference134 = ref span52[2]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span195 = CollectionsMarshal.AsSpan(list195); - index3 = 0; - span195[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list195)[0] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list195; - index3 = 1; - List list196 = new List(index3); - CollectionsMarshal.SetCount(list196, index3); - Span span196 = CollectionsMarshal.AsSpan(list196); - num3 = 0; - span196[num3] = new GatheredItem + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + CollectionsMarshal.AsSpan(list196)[0] = new GatheredItem { ItemId = 22633u, ItemCount = 2 }; questStep38.ItemsToGather = list196; reference134 = questStep38; - num2++; - ref QuestStep reference135 = ref span192[num2]; + ref QuestStep reference135 = ref span52[3]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span197 = CollectionsMarshal.AsSpan(list197); - index3 = 0; - span197[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list197)[0] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list197; - index3 = 1; - List list198 = new List(index3); - CollectionsMarshal.SetCount(list198, index3); - Span span198 = CollectionsMarshal.AsSpan(list198); - num3 = 0; - span198[num3] = new GatheredItem + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + CollectionsMarshal.AsSpan(list198)[0] = new GatheredItem { ItemId = 22659u, ItemCount = 2 }; questStep39.ItemsToGather = list198; reference135 = questStep39; - num2++; - span192[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span52[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247543,16 +204522,13 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list199)[0] = "plogon_enjoyer"; questRoot19.Author = list199; - index = 4; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference136 = ref span200[num]; + num = 4; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span53 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference136 = ref span53[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -247560,9 +204536,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247581,31 +204555,27 @@ public static class AssemblyQuestLoader }; obj97.Steps = list201; reference136 = obj97; - num++; - ref QuestSequence reference137 = ref span200[num]; + ref QuestSequence reference137 = ref span53[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)622, Mount = true }; - num2++; - span202[num2] = new QuestStep(EInteractionType.Interact, 1025801u, new Vector3(-609.49115f, 41.834953f, 139.75732f), 622) + span54[1] = new QuestStep(EInteractionType.Interact, 1025801u, new Vector3(-609.49115f, 41.834953f, 139.75732f), 622) { Mount = true }; obj98.Steps = list202; reference137 = obj98; - num++; - ref QuestSequence reference138 = ref span200[num]; + ref QuestSequence reference138 = ref span53[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -247613,23 +204583,18 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1025802u, new Vector3(-232.89844f, 55.466682f, -329.15234f), 622); + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1025802u, new Vector3(-232.89844f, 55.466682f, -329.15234f), 622); obj99.Steps = list203; reference138 = obj99; - num++; - ref QuestSequence reference139 = ref span200[num]; + ref QuestSequence reference139 = ref span53[3]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247655,16 +204620,13 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "Theo"; + CollectionsMarshal.AsSpan(list205)[0] = "Theo"; questRoot20.Author = list205; - index = 4; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference140 = ref span206[num]; + num = 4; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span55 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference140 = ref span55[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -247672,9 +204634,7 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247693,18 +204653,15 @@ public static class AssemblyQuestLoader }; obj101.Steps = list207; reference140 = obj101; - num++; - ref QuestSequence reference141 = ref span206[num]; + ref QuestSequence reference141 = ref span55[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -247723,8 +204680,7 @@ public static class AssemblyQuestLoader }; obj102.Steps = list208; reference141 = obj102; - num++; - ref QuestSequence reference142 = ref span206[num]; + ref QuestSequence reference142 = ref span55[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -247732,96 +204688,76 @@ public static class AssemblyQuestLoader num2 = 5; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference143 = ref span209[index2]; + Span span56 = CollectionsMarshal.AsSpan(list209); + ref QuestStep reference143 = ref span56[0]; 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); - Span span210 = CollectionsMarshal.AsSpan(list210); - index3 = 0; - span210[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.DoH; questStep40.RequiredQuestAcceptedJob = list210; reference143 = questStep40; - index2++; - ref QuestStep reference144 = ref span209[index2]; + ref QuestStep reference144 = ref span56[1]; QuestStep obj104 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22738u, ItemCount = 3 }; - index3 = 1; - List list211 = new List(index3); - CollectionsMarshal.SetCount(list211, index3); - Span span211 = CollectionsMarshal.AsSpan(list211); - num3 = 0; - span211[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + CollectionsMarshal.AsSpan(list211)[0] = EExtendedClassJob.DoH; obj104.RequiredQuestAcceptedJob = list211; reference144 = obj104; - index2++; - ref QuestStep reference145 = ref span209[index2]; + ref QuestStep reference145 = ref span56[2]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list212 = new List(num3); CollectionsMarshal.SetCount(list212, num3); - Span span212 = CollectionsMarshal.AsSpan(list212); - index3 = 0; - span212[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list212)[0] = EExtendedClassJob.Miner; questStep41.RequiredQuestAcceptedJob = list212; - index3 = 1; - List list213 = new List(index3); - CollectionsMarshal.SetCount(list213, index3); - Span span213 = CollectionsMarshal.AsSpan(list213); - num3 = 0; - span213[num3] = new GatheredItem + num3 = 1; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + CollectionsMarshal.AsSpan(list213)[0] = new GatheredItem { ItemId = 22634u, ItemCount = 2 }; questStep41.ItemsToGather = list213; reference145 = questStep41; - index2++; - ref QuestStep reference146 = ref span209[index2]; + ref QuestStep reference146 = ref span56[3]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span214 = CollectionsMarshal.AsSpan(list214); - index3 = 0; - span214[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list214)[0] = EExtendedClassJob.Botanist; questStep42.RequiredQuestAcceptedJob = list214; - index3 = 1; - List list215 = new List(index3); - CollectionsMarshal.SetCount(list215, index3); - Span span215 = CollectionsMarshal.AsSpan(list215); - num3 = 0; - span215[num3] = new GatheredItem + num3 = 1; + List list215 = new List(num3); + CollectionsMarshal.SetCount(list215, num3); + CollectionsMarshal.AsSpan(list215)[0] = new GatheredItem { ItemId = 22660u, ItemCount = 2 }; questStep42.ItemsToGather = list215; reference146 = questStep42; - index2++; - span209[index2] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) + span56[4] = new QuestStep(EInteractionType.Interact, 1025803u, new Vector3(275.59314f, 2.410636f, 279.31628f), 622) { Fly = true }; obj103.Steps = list209; reference142 = obj103; - num++; - ref QuestSequence reference147 = ref span206[num]; + ref QuestSequence reference147 = ref span55[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247847,16 +204783,13 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "Theo"; + CollectionsMarshal.AsSpan(list217)[0] = "Theo"; questRoot21.Author = list217; - index = 3; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference148 = ref span218[num]; + num = 3; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span57 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference148 = ref span57[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -247864,33 +204797,27 @@ public static class AssemblyQuestLoader num2 = 2; 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(-780.148f, 128.25195f, 97.154175f), 622); - index2++; - span219[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622); + 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); obj106.Steps = list219; reference148 = obj106; - num++; - ref QuestSequence reference149 = ref span218[num]; + ref QuestSequence reference149 = ref span57[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj107.Steps = list220; reference149 = obj107; - num++; - ref QuestSequence reference150 = ref span218[num]; + ref QuestSequence reference150 = ref span57[2]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -247898,79 +204825,62 @@ public static class AssemblyQuestLoader num2 = 5; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - ref QuestStep reference151 = ref span221[index2]; + Span span59 = CollectionsMarshal.AsSpan(list221); + ref QuestStep reference151 = ref span59[0]; 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); - Span span222 = CollectionsMarshal.AsSpan(list222); - index3 = 0; - span222[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list222)[0] = EExtendedClassJob.DoH; questStep43.RequiredQuestAcceptedJob = list222; reference151 = questStep43; - index2++; - ref QuestStep reference152 = ref span221[index2]; + ref QuestStep reference152 = ref span59[1]; QuestStep obj109 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22739u, ItemCount = 1 }; - index3 = 1; - List list223 = new List(index3); - CollectionsMarshal.SetCount(list223, index3); - Span span223 = CollectionsMarshal.AsSpan(list223); - num3 = 0; - span223[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + CollectionsMarshal.AsSpan(list223)[0] = EExtendedClassJob.DoH; obj109.RequiredQuestAcceptedJob = list223; reference152 = obj109; - index2++; - ref QuestStep reference153 = ref span221[index2]; + ref QuestStep reference153 = ref span59[2]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span224 = CollectionsMarshal.AsSpan(list224); - index3 = 0; - span224[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list224)[0] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list224; - index3 = 1; - List list225 = new List(index3); - CollectionsMarshal.SetCount(list225, index3); - Span span225 = CollectionsMarshal.AsSpan(list225); - num3 = 0; - span225[num3] = new GatheredItem + num3 = 1; + List list225 = new List(num3); + CollectionsMarshal.SetCount(list225, num3); + CollectionsMarshal.AsSpan(list225)[0] = new GatheredItem { ItemId = 22635u, ItemCount = 3 }; questStep44.ItemsToGather = list225; reference153 = questStep44; - index2++; - ref QuestStep reference154 = ref span221[index2]; + ref QuestStep reference154 = ref span59[3]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span226 = CollectionsMarshal.AsSpan(list226); - index3 = 0; - span226[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list226)[0] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list226; - index3 = 1; - List list227 = new List(index3); - CollectionsMarshal.SetCount(list227, index3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = new GatheredItem + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem { ItemId = 22661u, ItemCount = 3 }; questStep45.ItemsToGather = list227; reference154 = questStep45; - index2++; - span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span59[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -247996,28 +204906,23 @@ public static class AssemblyQuestLoader num = 2; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "Theo"; - index++; - span228[index] = "pot0to"; + Span span60 = CollectionsMarshal.AsSpan(list228); + span60[0] = "Theo"; + span60[1] = "pot0to"; questRoot22.Author = list228; - index = 4; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference155 = ref span229[num]; + num = 4; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span61 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference155 = ref span61[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248036,8 +204941,7 @@ public static class AssemblyQuestLoader }; obj110.Steps = list230; reference155 = obj110; - num++; - ref QuestSequence reference156 = ref span229[num]; + ref QuestSequence reference156 = ref span61[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -248045,23 +204949,19 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622); + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1025610u, new Vector3(-739.43695f, 127.45824f, 90.62329f), 622); obj111.Steps = list231; reference156 = obj111; - num++; - ref QuestSequence reference157 = ref span229[num]; + ref QuestSequence reference157 = ref span61[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list232 = new List(index2); - CollectionsMarshal.SetCount(list232, index2); - Span span232 = CollectionsMarshal.AsSpan(list232); - num2 = 0; - ref QuestStep reference158 = ref span232[num2]; + num2 = 4; + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + Span span62 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference158 = ref span62[0]; QuestStep obj113 = new QuestStep(EInteractionType.Action, 2009501u, new Vector3(-73.80792f, -3.7385254f, 345.3269f), 622) { Fly = true, @@ -248071,71 +204971,51 @@ public static class AssemblyQuestLoader num3 = 6; List> list233 = new List>(num3); CollectionsMarshal.SetCount(list233, num3); - Span> span233 = CollectionsMarshal.AsSpan(list233); - index3 = 0; - span233[index3] = null; - index3++; - span233[index3] = null; - index3++; - ref List reference159 = ref span233[index3]; + Span> span63 = CollectionsMarshal.AsSpan(list233); + span63[0] = null; + span63[1] = null; + ref List reference159 = ref span63[2]; int num4 = 3; List list234 = new List(num4); CollectionsMarshal.SetCount(list234, num4); - 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); + 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); reference159 = list234; - index3++; - span233[index3] = null; - index3++; - span233[index3] = null; - index3++; - span233[index3] = null; + span63[3] = null; + span63[4] = null; + span63[5] = null; obj113.RequiredQuestVariables = list233; reference158 = obj113; - num2++; - ref QuestStep reference160 = ref span232[num2]; + ref QuestStep reference160 = ref span62[1]; QuestStep obj114 = new QuestStep(EInteractionType.Action, 2009542u, new Vector3(20.736938f, -0.015319824f, 559.9298f), 622) { Fly = true, Land = true, Action = EAction.Wasshoi }; - 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); + 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); reference161 = list236; - num3++; - span235[num3] = null; - num3++; - span235[num3] = null; - num3++; - span235[num3] = null; + span65[3] = null; + span65[4] = null; + span65[5] = null; obj114.RequiredQuestVariables = list235; reference160 = obj114; - num2++; - ref QuestStep reference162 = ref span232[num2]; + ref QuestStep reference162 = ref span62[2]; QuestStep obj115 = new QuestStep(EInteractionType.Action, 2009502u, new Vector3(95.47571f, -12.619263f, 699.1836f), 622) { Fly = true, @@ -248145,73 +205025,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list237 = new List>(num3); CollectionsMarshal.SetCount(list237, num3); - Span> span237 = CollectionsMarshal.AsSpan(list237); - index3 = 0; - span237[index3] = null; - index3++; - span237[index3] = null; - index3++; - ref List reference163 = ref span237[index3]; + Span> span67 = CollectionsMarshal.AsSpan(list237); + span67[0] = null; + span67[1] = null; + ref List reference163 = ref span67[2]; num4 = 3; List list238 = new List(num4); CollectionsMarshal.SetCount(list238, num4); - 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); + 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); reference163 = list238; - index3++; - span237[index3] = null; - index3++; - span237[index3] = null; - index3++; - span237[index3] = null; + span67[3] = null; + span67[4] = null; + span67[5] = null; obj115.RequiredQuestVariables = list237; reference162 = obj115; - num2++; - ref QuestStep reference164 = ref span232[num2]; + ref QuestStep reference164 = ref span62[3]; QuestStep obj116 = new QuestStep(EInteractionType.Action, 2009500u, new Vector3(-701.2894f, 6.9122925f, 569.9701f), 622) { Fly = true, Land = true, Action = EAction.Wasshoi }; - 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); + 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); reference165 = list240; - num3++; - span239[num3] = null; - num3++; - span239[num3] = null; - num3++; - span239[num3] = null; + span69[3] = null; + span69[4] = null; + span69[5] = null; obj116.RequiredQuestVariables = list239; reference164 = obj116; obj112.Steps = list232; reference157 = obj112; - num++; - ref QuestSequence reference166 = ref span229[num]; + ref QuestSequence reference166 = ref span61[3]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -248219,14 +205079,12 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.None, null, null, 622) + Span span71 = CollectionsMarshal.AsSpan(list241); + span71[0] = new QuestStep(EInteractionType.None, null, null, 622) { Mount = false }; - index2++; - span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248252,26 +205110,21 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "Theo"; + CollectionsMarshal.AsSpan(list242)[0] = "Theo"; questRoot23.Author = list242; - index = 5; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference167 = ref span243[num]; + num = 5; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span72 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference167 = ref span72[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248290,8 +205143,7 @@ public static class AssemblyQuestLoader }; obj118.Steps = list244; reference167 = obj118; - num++; - ref QuestSequence reference168 = ref span243[num]; + ref QuestSequence reference168 = ref span72[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -248299,9 +205151,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -248320,95 +205170,76 @@ public static class AssemblyQuestLoader }; obj119.Steps = list245; reference168 = obj119; - num++; - ref QuestSequence reference169 = ref span243[num]; + ref QuestSequence reference169 = ref span72[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list246 = new List(index2); - CollectionsMarshal.SetCount(list246, index2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num2 = 0; - ref QuestStep reference170 = ref span246[num2]; + num2 = 5; + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + Span span73 = CollectionsMarshal.AsSpan(list246); + ref QuestStep reference170 = ref span73[0]; 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); - Span span247 = CollectionsMarshal.AsSpan(list247); - index3 = 0; - span247[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list247)[0] = EExtendedClassJob.DoH; questStep46.RequiredQuestAcceptedJob = list247; reference170 = questStep46; - num2++; - ref QuestStep reference171 = ref span246[num2]; + ref QuestStep reference171 = ref span73[1]; QuestStep obj121 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22740u, ItemCount = 2 }; - index3 = 1; - List list248 = new List(index3); - CollectionsMarshal.SetCount(list248, index3); - Span span248 = CollectionsMarshal.AsSpan(list248); - num3 = 0; - span248[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list248 = new List(num3); + CollectionsMarshal.SetCount(list248, num3); + CollectionsMarshal.AsSpan(list248)[0] = EExtendedClassJob.DoH; obj121.RequiredQuestAcceptedJob = list248; reference171 = obj121; - num2++; - ref QuestStep reference172 = ref span246[num2]; + ref QuestStep reference172 = ref span73[2]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - Span span249 = CollectionsMarshal.AsSpan(list249); - index3 = 0; - span249[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list249)[0] = EExtendedClassJob.Miner; questStep47.RequiredQuestAcceptedJob = list249; - index3 = 1; - List list250 = new List(index3); - CollectionsMarshal.SetCount(list250, index3); - Span span250 = CollectionsMarshal.AsSpan(list250); - num3 = 0; - span250[num3] = new GatheredItem + num3 = 1; + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + CollectionsMarshal.AsSpan(list250)[0] = new GatheredItem { ItemId = 22636u, ItemCount = 2 }; questStep47.ItemsToGather = list250; reference172 = questStep47; - num2++; - ref QuestStep reference173 = ref span246[num2]; + ref QuestStep reference173 = ref span73[3]; QuestStep questStep48 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - Span span251 = CollectionsMarshal.AsSpan(list251); - index3 = 0; - span251[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list251)[0] = EExtendedClassJob.Botanist; questStep48.RequiredQuestAcceptedJob = list251; - index3 = 1; - List list252 = new List(index3); - CollectionsMarshal.SetCount(list252, index3); - Span span252 = CollectionsMarshal.AsSpan(list252); - num3 = 0; - span252[num3] = new GatheredItem + num3 = 1; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + CollectionsMarshal.AsSpan(list252)[0] = new GatheredItem { ItemId = 22662u, ItemCount = 2 }; questStep48.ItemsToGather = list252; reference173 = questStep48; - num2++; - span246[num2] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) + span73[4] = new QuestStep(EInteractionType.Interact, 1025814u, new Vector3(584.4967f, -12.093235f, 225.57397f), 622) { Fly = true }; obj120.Steps = list246; reference169 = obj120; - num++; - ref QuestSequence reference174 = ref span243[num]; + ref QuestSequence reference174 = ref span72[3]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -248416,26 +205247,21 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1019353u, new Vector3(544.0298f, -19.505642f, 391.68372f), 622) { Fly = true }; obj122.Steps = list253; reference174 = obj122; - num++; - ref QuestSequence reference175 = ref span243[num]; + ref QuestSequence reference175 = ref span72[4]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248461,16 +205287,13 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - Span span255 = CollectionsMarshal.AsSpan(list255); - index = 0; - span255[index] = "Theo"; + CollectionsMarshal.AsSpan(list255)[0] = "Theo"; questRoot24.Author = list255; - index = 3; - List list256 = new List(index); - CollectionsMarshal.SetCount(list256, index); - Span span256 = CollectionsMarshal.AsSpan(list256); - num = 0; - ref QuestSequence reference176 = ref span256[num]; + num = 3; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span74 = CollectionsMarshal.AsSpan(list256); + ref QuestSequence reference176 = ref span74[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -248478,9 +205301,7 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248499,18 +205320,15 @@ public static class AssemblyQuestLoader }; obj124.Steps = list257; reference176 = obj124; - num++; - ref QuestSequence reference177 = ref span256[num]; + ref QuestSequence reference177 = ref span74[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -248529,8 +205347,7 @@ public static class AssemblyQuestLoader }; obj125.Steps = list258; reference177 = obj125; - num++; - ref QuestSequence reference178 = ref span256[num]; + ref QuestSequence reference178 = ref span74[2]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -248538,79 +205355,62 @@ public static class AssemblyQuestLoader num2 = 5; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - ref QuestStep reference179 = ref span259[index2]; + Span span75 = CollectionsMarshal.AsSpan(list259); + ref QuestStep reference179 = ref span75[0]; 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); - Span span260 = CollectionsMarshal.AsSpan(list260); - index3 = 0; - span260[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list260)[0] = EExtendedClassJob.DoH; questStep49.RequiredQuestAcceptedJob = list260; reference179 = questStep49; - index2++; - ref QuestStep reference180 = ref span259[index2]; + ref QuestStep reference180 = ref span75[1]; QuestStep obj127 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22741u, ItemCount = 1 }; - index3 = 1; - List list261 = new List(index3); - CollectionsMarshal.SetCount(list261, index3); - Span span261 = CollectionsMarshal.AsSpan(list261); - num3 = 0; - span261[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + CollectionsMarshal.AsSpan(list261)[0] = EExtendedClassJob.DoH; obj127.RequiredQuestAcceptedJob = list261; reference180 = obj127; - index2++; - ref QuestStep reference181 = ref span259[index2]; + ref QuestStep reference181 = ref span75[2]; QuestStep questStep50 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list262 = new List(num3); CollectionsMarshal.SetCount(list262, num3); - Span span262 = CollectionsMarshal.AsSpan(list262); - index3 = 0; - span262[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list262)[0] = EExtendedClassJob.Miner; questStep50.RequiredQuestAcceptedJob = list262; - index3 = 1; - List list263 = new List(index3); - CollectionsMarshal.SetCount(list263, index3); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = new GatheredItem + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = new GatheredItem { ItemId = 22637u, ItemCount = 1 }; questStep50.ItemsToGather = list263; reference181 = questStep50; - index2++; - ref QuestStep reference182 = ref span259[index2]; + ref QuestStep reference182 = ref span75[3]; QuestStep questStep51 = new QuestStep(EInteractionType.Gather, null, null, 622); num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span264 = CollectionsMarshal.AsSpan(list264); - index3 = 0; - span264[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list264)[0] = EExtendedClassJob.Botanist; questStep51.RequiredQuestAcceptedJob = list264; - index3 = 1; - List list265 = new List(index3); - CollectionsMarshal.SetCount(list265, index3); - Span span265 = CollectionsMarshal.AsSpan(list265); - num3 = 0; - span265[num3] = new GatheredItem + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem { ItemId = 22663u, ItemCount = 1 }; questStep51.ItemsToGather = list265; reference182 = questStep51; - index2++; - span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + span75[4] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248636,26 +205436,21 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "Theo"; + CollectionsMarshal.AsSpan(list266)[0] = "Theo"; questRoot25.Author = list266; - index = 4; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference183 = ref span267[num]; + num = 4; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span76 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference183 = ref span76[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248674,8 +205469,7 @@ public static class AssemblyQuestLoader }; obj128.Steps = list268; reference183 = obj128; - num++; - ref QuestSequence reference184 = ref span267[num]; + ref QuestSequence reference184 = ref span76[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -248683,30 +205477,23 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1025819u, new Vector3(-815.4269f, 127.910385f, 55.77173f), 622); obj129.Steps = list269; reference184 = obj129; - num++; - ref QuestSequence reference185 = ref span267[num]; + ref QuestSequence reference185 = ref span76[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list270 = new List(index2); - CollectionsMarshal.SetCount(list270, index2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num2 = 0; - ref QuestStep reference186 = ref span270[num2]; + num2 = 1; + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list270)[0]; 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); - Span span271 = CollectionsMarshal.AsSpan(list271); - index3 = 0; - span271[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list271)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANNAM602_03124_Q1_000_000"), @@ -248716,8 +205503,7 @@ public static class AssemblyQuestLoader reference186 = questStep52; obj130.Steps = list270; reference185 = obj130; - num++; - ref QuestSequence reference187 = ref span267[num]; + ref QuestSequence reference187 = ref span76[3]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -248725,9 +205511,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248753,26 +205537,21 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "Theo"; + CollectionsMarshal.AsSpan(list273)[0] = "Theo"; questRoot26.Author = list273; - index = 5; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference188 = ref span274[num]; + num = 5; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span77 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference188 = ref span77[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -248791,8 +205570,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list275; reference188 = obj132; - num++; - ref QuestSequence reference189 = ref span274[num]; + ref QuestSequence reference189 = ref span77[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -248800,9 +205578,7 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -248821,29 +205597,24 @@ public static class AssemblyQuestLoader }; obj133.Steps = list276; reference189 = obj133; - num++; - ref QuestSequence reference190 = ref span274[num]; + ref QuestSequence reference190 = ref span77[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list277 = new List(index2); - CollectionsMarshal.SetCount(list277, index2); - Span span277 = CollectionsMarshal.AsSpan(list277); - num2 = 0; - ref QuestStep reference191 = ref span277[num2]; + num2 = 5; + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + Span span78 = CollectionsMarshal.AsSpan(list277); + ref QuestStep reference191 = ref span78[0]; QuestStep questStep53 = new QuestStep(EInteractionType.Interact, 1025821u, new Vector3(95.26196f, 116.01428f, 141.74097f), 622); - index3 = 1; - List list278 = new List(index3); - CollectionsMarshal.SetCount(list278, index3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + CollectionsMarshal.AsSpan(list278)[0] = EExtendedClassJob.DoH; questStep53.RequiredQuestAcceptedJob = list278; reference191 = questStep53; - num2++; - ref QuestStep reference192 = ref span277[num2]; + ref QuestStep reference192 = ref span78[1]; QuestStep obj135 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22742u, @@ -248852,64 +205623,50 @@ public static class AssemblyQuestLoader num3 = 1; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - Span span279 = CollectionsMarshal.AsSpan(list279); - index3 = 0; - span279[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list279)[0] = EExtendedClassJob.DoH; obj135.RequiredQuestAcceptedJob = list279; reference192 = obj135; - num2++; - ref QuestStep reference193 = ref span277[num2]; + ref QuestStep reference193 = ref span78[2]; QuestStep questStep54 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list280 = new List(index3); - CollectionsMarshal.SetCount(list280, index3); - Span span280 = CollectionsMarshal.AsSpan(list280); - num3 = 0; - span280[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list280 = new List(num3); + CollectionsMarshal.SetCount(list280, num3); + CollectionsMarshal.AsSpan(list280)[0] = EExtendedClassJob.Miner; questStep54.RequiredQuestAcceptedJob = list280; num3 = 1; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span281 = CollectionsMarshal.AsSpan(list281); - index3 = 0; - span281[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list281)[0] = new GatheredItem { ItemId = 22638u, ItemCount = 1 }; questStep54.ItemsToGather = list281; reference193 = questStep54; - num2++; - ref QuestStep reference194 = ref span277[num2]; + ref QuestStep reference194 = ref span78[3]; QuestStep questStep55 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list282 = new List(index3); - CollectionsMarshal.SetCount(list282, index3); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - span282[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Botanist; questStep55.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span283 = CollectionsMarshal.AsSpan(list283); - index3 = 0; - span283[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem { ItemId = 22664u, ItemCount = 1 }; questStep55.ItemsToGather = list283; reference194 = questStep55; - num2++; - span277[num2] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) + span78[4] = new QuestStep(EInteractionType.Interact, 1025820u, new Vector3(94.2854f, 116.043f, 143.48047f), 622) { Fly = true }; obj134.Steps = list277; reference190 = obj134; - num++; - ref QuestSequence reference195 = ref span274[num]; + ref QuestSequence reference195 = ref span77[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -248917,40 +205674,30 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - ref QuestStep reference196 = ref span284[index2]; + Span span79 = CollectionsMarshal.AsSpan(list284); + ref QuestStep reference196 = ref span79[0]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1025823u, new Vector3(-0.19836426f, 2.1311574f, 224.07861f), 622) { Fly = true }; - 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]; + 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]; num4 = 1; List list286 = new List(num4); CollectionsMarshal.SetCount(list286, num4); - Span span286 = CollectionsMarshal.AsSpan(list286); - num5 = 0; - span286[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list286)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference197 = list286; - num3++; - span285[num3] = null; - num3++; - span285[num3] = null; - num3++; - span285[num3] = null; + span80[3] = null; + span80[4] = null; + span80[5] = null; obj137.RequiredQuestVariables = list285; reference196 = obj137; - index2++; - ref QuestStep reference198 = ref span284[index2]; + ref QuestStep reference198 = ref span79[1]; QuestStep obj138 = new QuestStep(EInteractionType.Interact, 1021491u, new Vector3(199.38953f, 1.9158756f, 41.153564f), 622) { Fly = true @@ -248958,73 +205705,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list287 = new List>(num3); CollectionsMarshal.SetCount(list287, num3); - 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); + 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); reference199 = list288; - index3++; - span287[index3] = null; - index3++; - span287[index3] = null; - index3++; - span287[index3] = null; + span81[3] = null; + span81[4] = null; + span81[5] = null; obj138.RequiredQuestVariables = list287; reference198 = obj138; - index2++; - ref QuestStep reference200 = ref span284[index2]; + ref QuestStep reference200 = ref span79[2]; QuestStep obj139 = new QuestStep(EInteractionType.Interact, 1025835u, new Vector3(-145.92206f, 1.8999462f, 239.73438f), 622) { Fly = true }; - 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]; + 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]; num4 = 1; List list290 = new List(num4); CollectionsMarshal.SetCount(list290, num4); - Span span290 = CollectionsMarshal.AsSpan(list290); - num5 = 0; - span290[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list290)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference201 = list290; - num3++; - span289[num3] = null; - num3++; - span289[num3] = null; - num3++; - span289[num3] = null; + span82[3] = null; + span82[4] = null; + span82[5] = null; obj139.RequiredQuestVariables = list289; reference200 = obj139; obj136.Steps = list284; reference195 = obj136; - num++; - ref QuestSequence reference202 = ref span274[num]; + ref QuestSequence reference202 = ref span77[4]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249050,16 +205777,13 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - Span span292 = CollectionsMarshal.AsSpan(list292); - index = 0; - span292[index] = "Censored"; + CollectionsMarshal.AsSpan(list292)[0] = "Censored"; questRoot27.Author = list292; - index = 3; - List list293 = new List(index); - CollectionsMarshal.SetCount(list293, index); - Span span293 = CollectionsMarshal.AsSpan(list293); - num = 0; - ref QuestSequence reference203 = ref span293[num]; + num = 3; + List list293 = new List(num); + CollectionsMarshal.SetCount(list293, num); + Span span83 = CollectionsMarshal.AsSpan(list293); + ref QuestSequence reference203 = ref span83[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 @@ -249067,9 +205791,7 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -249087,18 +205809,16 @@ public static class AssemblyQuestLoader }; obj141.Steps = list294; reference203 = obj141; - num++; - ref QuestSequence reference204 = ref span293[num]; + ref QuestSequence reference204 = ref span83[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list295 = new List(index2); - CollectionsMarshal.SetCount(list295, index2); - Span span295 = CollectionsMarshal.AsSpan(list295); - num2 = 0; - ref QuestStep reference205 = ref span295[num2]; + num2 = 3; + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + Span span84 = CollectionsMarshal.AsSpan(list295); + ref QuestStep reference205 = ref span84[0]; QuestStep obj143 = new QuestStep(EInteractionType.UseItem, 1025827u, new Vector3(435.32446f, 5.107297f, 18.234497f), 622) { Fly = true, @@ -249120,62 +205840,44 @@ public static class AssemblyQuestLoader num3 = 6; List> list296 = new List>(num3); CollectionsMarshal.SetCount(list296, num3); - 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); + 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); reference206 = list297; - index3++; - span296[index3] = null; - index3++; - span296[index3] = null; - index3++; - span296[index3] = null; - index3++; - span296[index3] = null; + span85[2] = null; + span85[3] = null; + span85[4] = null; + span85[5] = null; obj143.RequiredQuestVariables = list296; reference205 = obj143; - num2++; - ref QuestStep reference207 = ref span295[num2]; + ref QuestStep reference207 = ref span84[1]; QuestStep obj144 = new QuestStep(EInteractionType.UseItem, 1025825u, new Vector3(432.02856f, 20.099669f, -22.38501f), 622) { Fly = true, ItemId = 2002479u }; - 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]; + 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]; num4 = 1; List list299 = new List(num4); CollectionsMarshal.SetCount(list299, num4); - Span span299 = CollectionsMarshal.AsSpan(list299); - num5 = 0; - span299[num5] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list299)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference208 = list299; - num3++; - span298[num3] = null; - num3++; - span298[num3] = null; - num3++; - span298[num3] = null; - num3++; - span298[num3] = null; + span86[2] = null; + span86[3] = null; + span86[4] = null; + span86[5] = null; obj144.RequiredQuestVariables = list298; reference207 = obj144; - num2++; - ref QuestStep reference209 = ref span295[num2]; + ref QuestStep reference209 = ref span84[2]; QuestStep obj145 = new QuestStep(EInteractionType.UseItem, 1025826u, new Vector3(411.58154f, 2.814907f, -44.327515f), 622) { Fly = true, @@ -249184,32 +205886,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list300 = new List>(num3); CollectionsMarshal.SetCount(list300, num3); - 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); + 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); reference210 = list301; - index3++; - span300[index3] = null; - index3++; - span300[index3] = null; - index3++; - span300[index3] = null; - index3++; - span300[index3] = null; + span87[2] = null; + span87[3] = null; + span87[4] = null; + span87[5] = null; obj145.RequiredQuestVariables = list300; reference209 = obj145; obj142.Steps = list295; reference204 = obj142; - num++; - ref QuestSequence reference211 = ref span293[num]; + ref QuestSequence reference211 = ref span83[2]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -249217,9 +205910,7 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249245,26 +205936,21 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - Span span303 = CollectionsMarshal.AsSpan(list303); - index = 0; - span303[index] = "Theo"; + CollectionsMarshal.AsSpan(list303)[0] = "Theo"; questRoot28.Author = list303; - index = 4; - List list304 = new List(index); - CollectionsMarshal.SetCount(list304, index); - Span span304 = CollectionsMarshal.AsSpan(list304); - num = 0; - ref QuestSequence reference212 = ref span304[num]; + num = 4; + List list304 = new List(num); + CollectionsMarshal.SetCount(list304, num); + Span span88 = CollectionsMarshal.AsSpan(list304); + ref QuestSequence reference212 = ref span88[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249283,8 +205969,7 @@ public static class AssemblyQuestLoader }; obj147.Steps = list305; reference212 = obj147; - num++; - ref QuestSequence reference213 = ref span304[num]; + ref QuestSequence reference213 = ref span88[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -249292,9 +205977,7 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.Interact, 1025828u, new Vector3(-55.985413f, 114.904976f, -19.089111f), 622) + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1025828u, new Vector3(-55.985413f, 114.904976f, -19.089111f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -249313,29 +205996,24 @@ public static class AssemblyQuestLoader }; obj148.Steps = list306; reference213 = obj148; - num++; - ref QuestSequence reference214 = ref span304[num]; + ref QuestSequence reference214 = ref span88[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list307 = new List(index2); - CollectionsMarshal.SetCount(list307, index2); - Span span307 = CollectionsMarshal.AsSpan(list307); - num2 = 0; - ref QuestStep reference215 = ref span307[num2]; + num2 = 5; + List list307 = new List(num2); + CollectionsMarshal.SetCount(list307, num2); + Span span89 = CollectionsMarshal.AsSpan(list307); + ref QuestStep reference215 = ref span89[0]; QuestStep questStep56 = new QuestStep(EInteractionType.Interact, 1025832u, new Vector3(-57.1756f, 114.88513f, -16.464539f), 622); - index3 = 1; - List list308 = new List(index3); - CollectionsMarshal.SetCount(list308, index3); - Span span308 = CollectionsMarshal.AsSpan(list308); - num3 = 0; - span308[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + CollectionsMarshal.AsSpan(list308)[0] = EExtendedClassJob.DoH; questStep56.RequiredQuestAcceptedJob = list308; reference215 = questStep56; - num2++; - ref QuestStep reference216 = ref span307[num2]; + ref QuestStep reference216 = ref span89[1]; QuestStep obj150 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22744u, @@ -249344,64 +206022,50 @@ public static class AssemblyQuestLoader num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - Span span309 = CollectionsMarshal.AsSpan(list309); - index3 = 0; - span309[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list309)[0] = EExtendedClassJob.DoH; obj150.RequiredQuestAcceptedJob = list309; reference216 = obj150; - num2++; - ref QuestStep reference217 = ref span307[num2]; + ref QuestStep reference217 = ref span89[2]; QuestStep questStep57 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list310 = new List(index3); - CollectionsMarshal.SetCount(list310, index3); - Span span310 = CollectionsMarshal.AsSpan(list310); - num3 = 0; - span310[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + CollectionsMarshal.AsSpan(list310)[0] = EExtendedClassJob.Miner; questStep57.RequiredQuestAcceptedJob = list310; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span311 = CollectionsMarshal.AsSpan(list311); - index3 = 0; - span311[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list311)[0] = new GatheredItem { ItemId = 22640u, ItemCount = 1 }; questStep57.ItemsToGather = list311; reference217 = questStep57; - num2++; - ref QuestStep reference218 = ref span307[num2]; + ref QuestStep reference218 = ref span89[3]; QuestStep questStep58 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list312 = new List(index3); - CollectionsMarshal.SetCount(list312, index3); - Span span312 = CollectionsMarshal.AsSpan(list312); - num3 = 0; - span312[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list312 = new List(num3); + CollectionsMarshal.SetCount(list312, num3); + CollectionsMarshal.AsSpan(list312)[0] = EExtendedClassJob.Botanist; questStep58.RequiredQuestAcceptedJob = list312; num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - Span span313 = CollectionsMarshal.AsSpan(list313); - index3 = 0; - span313[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list313)[0] = new GatheredItem { ItemId = 22666u, ItemCount = 1 }; questStep58.ItemsToGather = list313; reference218 = questStep58; - num2++; - span307[num2] = new QuestStep(EInteractionType.Interact, 1025831u, new Vector3(-50.980408f, 114.90497f, -23.178528f), 622) + span89[4] = new QuestStep(EInteractionType.Interact, 1025831u, new Vector3(-50.980408f, 114.90497f, -23.178528f), 622) { Fly = true }; obj149.Steps = list307; reference214 = obj149; - num++; - ref QuestSequence reference219 = ref span304[num]; + ref QuestSequence reference219 = ref span88[3]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue @@ -249409,9 +206073,7 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249437,26 +206099,21 @@ public static class AssemblyQuestLoader num = 1; List list315 = new List(num); CollectionsMarshal.SetCount(list315, num); - Span span315 = CollectionsMarshal.AsSpan(list315); - index = 0; - span315[index] = "Theo"; + CollectionsMarshal.AsSpan(list315)[0] = "Theo"; questRoot29.Author = list315; - index = 4; - List list316 = new List(index); - CollectionsMarshal.SetCount(list316, index); - Span span316 = CollectionsMarshal.AsSpan(list316); - num = 0; - ref QuestSequence reference220 = ref span316[num]; + num = 4; + List list316 = new List(num); + CollectionsMarshal.SetCount(list316, num); + Span span90 = CollectionsMarshal.AsSpan(list316); + ref QuestSequence reference220 = ref span90[0]; QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249475,8 +206132,7 @@ public static class AssemblyQuestLoader }; obj152.Steps = list317; reference220 = obj152; - num++; - ref QuestSequence reference221 = ref span316[num]; + ref QuestSequence reference221 = ref span90[1]; QuestSequence obj153 = new QuestSequence { Sequence = 1 @@ -249484,37 +206140,30 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.Interact, 1025858u, new Vector3(-534.7219f, 66.33932f, -409.75055f), 622) + CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1025858u, new Vector3(-534.7219f, 66.33932f, -409.75055f), 622) { Fly = true }; obj153.Steps = list318; reference221 = obj153; - num++; - ref QuestSequence reference222 = ref span316[num]; + ref QuestSequence reference222 = ref span90[2]; QuestSequence obj154 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list319 = new List(index2); - CollectionsMarshal.SetCount(list319, index2); - Span span319 = CollectionsMarshal.AsSpan(list319); - num2 = 0; - ref QuestStep reference223 = ref span319[num2]; + num2 = 5; + List list319 = new List(num2); + CollectionsMarshal.SetCount(list319, num2); + Span span91 = CollectionsMarshal.AsSpan(list319); + ref QuestStep reference223 = ref span91[0]; QuestStep questStep59 = new QuestStep(EInteractionType.Interact, 1025816u, new Vector3(-535.3323f, 66.453f, -412.71082f), 622); - index3 = 1; - List list320 = new List(index3); - CollectionsMarshal.SetCount(list320, index3); - Span span320 = CollectionsMarshal.AsSpan(list320); - num3 = 0; - span320[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + CollectionsMarshal.AsSpan(list320)[0] = EExtendedClassJob.DoH; questStep59.RequiredQuestAcceptedJob = list320; reference223 = questStep59; - num2++; - ref QuestStep reference224 = ref span319[num2]; + ref QuestStep reference224 = ref span91[1]; QuestStep obj155 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 22745u, @@ -249523,57 +206172,44 @@ public static class AssemblyQuestLoader num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span321 = CollectionsMarshal.AsSpan(list321); - index3 = 0; - span321[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list321)[0] = EExtendedClassJob.DoH; obj155.RequiredQuestAcceptedJob = list321; reference224 = obj155; - num2++; - ref QuestStep reference225 = ref span319[num2]; + ref QuestStep reference225 = ref span91[2]; QuestStep questStep60 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list322 = new List(index3); - CollectionsMarshal.SetCount(list322, index3); - Span span322 = CollectionsMarshal.AsSpan(list322); - num3 = 0; - span322[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list322 = new List(num3); + CollectionsMarshal.SetCount(list322, num3); + CollectionsMarshal.AsSpan(list322)[0] = EExtendedClassJob.Miner; questStep60.RequiredQuestAcceptedJob = list322; num3 = 1; List list323 = new List(num3); CollectionsMarshal.SetCount(list323, num3); - Span span323 = CollectionsMarshal.AsSpan(list323); - index3 = 0; - span323[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list323)[0] = new GatheredItem { ItemId = 22641u, ItemCount = 1 }; questStep60.ItemsToGather = list323; reference225 = questStep60; - num2++; - ref QuestStep reference226 = ref span319[num2]; + ref QuestStep reference226 = ref span91[3]; QuestStep questStep61 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list324 = new List(index3); - CollectionsMarshal.SetCount(list324, index3); - Span span324 = CollectionsMarshal.AsSpan(list324); - num3 = 0; - span324[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list324 = new List(num3); + CollectionsMarshal.SetCount(list324, num3); + CollectionsMarshal.AsSpan(list324)[0] = EExtendedClassJob.Botanist; questStep61.RequiredQuestAcceptedJob = list324; num3 = 1; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span325 = CollectionsMarshal.AsSpan(list325); - index3 = 0; - span325[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list325)[0] = new GatheredItem { ItemId = 22667u, ItemCount = 1 }; questStep61.ItemsToGather = list325; reference226 = questStep61; - num2++; - span319[num2] = new QuestStep(EInteractionType.Interact, 1021784u, new Vector3(-750.05725f, 127.240875f, 143.72461f), 622) + span91[4] = new QuestStep(EInteractionType.Interact, 1021784u, new Vector3(-750.05725f, 127.240875f, 143.72461f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249592,8 +206228,7 @@ public static class AssemblyQuestLoader }; obj154.Steps = list319; reference222 = obj154; - num++; - ref QuestSequence reference227 = ref span316[num]; + ref QuestSequence reference227 = ref span90[3]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -249601,9 +206236,7 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025602u, new Vector3(-780.148f, 128.25195f, 97.154175f), 622) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249629,26 +206262,21 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - Span span327 = CollectionsMarshal.AsSpan(list327); - index = 0; - span327[index] = "Theo"; + CollectionsMarshal.AsSpan(list327)[0] = "Theo"; questRoot30.Author = list327; - index = 5; - List list328 = new List(index); - CollectionsMarshal.SetCount(list328, index); - Span span328 = CollectionsMarshal.AsSpan(list328); - num = 0; - ref QuestSequence reference228 = ref span328[num]; + num = 5; + List list328 = new List(num); + CollectionsMarshal.SetCount(list328, num); + Span span92 = CollectionsMarshal.AsSpan(list328); + ref QuestSequence reference228 = ref span92[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249667,8 +206295,7 @@ public static class AssemblyQuestLoader }; obj157.Steps = list329; reference228 = obj157; - num++; - ref QuestSequence reference229 = ref span328[num]; + ref QuestSequence reference229 = ref span92[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -249676,9 +206303,7 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, @@ -249697,29 +206322,24 @@ public static class AssemblyQuestLoader }; obj158.Steps = list330; reference229 = obj158; - num++; - ref QuestSequence reference230 = ref span328[num]; + ref QuestSequence reference230 = ref span92[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list331 = new List(index2); - CollectionsMarshal.SetCount(list331, index2); - Span span331 = CollectionsMarshal.AsSpan(list331); - num2 = 0; - ref QuestStep reference231 = ref span331[num2]; + num2 = 5; + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + Span span93 = CollectionsMarshal.AsSpan(list331); + ref QuestStep reference231 = ref span93[0]; QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 1025841u, new Vector3(241.77905f, 2.4261475f, 14.419739f), 622); - index3 = 1; - List list332 = new List(index3); - CollectionsMarshal.SetCount(list332, index3); - Span span332 = CollectionsMarshal.AsSpan(list332); - num3 = 0; - span332[num3] = EExtendedClassJob.DoH; + num3 = 1; + List list332 = new List(num3); + CollectionsMarshal.SetCount(list332, num3); + CollectionsMarshal.AsSpan(list332)[0] = EExtendedClassJob.DoH; questStep62.RequiredQuestAcceptedJob = list332; reference231 = questStep62; - num2++; - ref QuestStep reference232 = ref span331[num2]; + ref QuestStep reference232 = ref span93[1]; QuestStep obj160 = new QuestStep(EInteractionType.Craft, null, null, 622) { ItemId = 23173u, @@ -249728,64 +206348,50 @@ public static class AssemblyQuestLoader num3 = 1; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - Span span333 = CollectionsMarshal.AsSpan(list333); - index3 = 0; - span333[index3] = EExtendedClassJob.DoH; + CollectionsMarshal.AsSpan(list333)[0] = EExtendedClassJob.DoH; obj160.RequiredQuestAcceptedJob = list333; reference232 = obj160; - num2++; - ref QuestStep reference233 = ref span331[num2]; + ref QuestStep reference233 = ref span93[2]; QuestStep questStep63 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list334 = new List(index3); - CollectionsMarshal.SetCount(list334, index3); - Span span334 = CollectionsMarshal.AsSpan(list334); - num3 = 0; - span334[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + CollectionsMarshal.AsSpan(list334)[0] = EExtendedClassJob.Miner; questStep63.RequiredQuestAcceptedJob = list334; num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - Span span335 = CollectionsMarshal.AsSpan(list335); - index3 = 0; - span335[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list335)[0] = new GatheredItem { ItemId = 23169u, ItemCount = 1 }; questStep63.ItemsToGather = list335; reference233 = questStep63; - num2++; - ref QuestStep reference234 = ref span331[num2]; + ref QuestStep reference234 = ref span93[3]; QuestStep questStep64 = new QuestStep(EInteractionType.Gather, null, null, 622); - index3 = 1; - List list336 = new List(index3); - CollectionsMarshal.SetCount(list336, index3); - Span span336 = CollectionsMarshal.AsSpan(list336); - num3 = 0; - span336[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + CollectionsMarshal.AsSpan(list336)[0] = EExtendedClassJob.Botanist; questStep64.RequiredQuestAcceptedJob = list336; num3 = 1; List list337 = new List(num3); CollectionsMarshal.SetCount(list337, num3); - Span span337 = CollectionsMarshal.AsSpan(list337); - index3 = 0; - span337[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list337)[0] = new GatheredItem { ItemId = 23170u, ItemCount = 1 }; questStep64.ItemsToGather = list337; reference234 = questStep64; - num2++; - span331[num2] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) + span93[4] = new QuestStep(EInteractionType.Interact, 1025837u, new Vector3(239.2461f, 1.2024078f, 12.466553f), 622) { Fly = true }; obj159.Steps = list331; reference230 = obj159; - num++; - ref QuestSequence reference235 = ref span328[num]; + ref QuestSequence reference235 = ref span92[3]; QuestSequence obj161 = new QuestSequence { Sequence = 3 @@ -249793,9 +206399,8 @@ public static class AssemblyQuestLoader num2 = 4; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span338 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span338[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.48796f, 114.90777f, 9.264265f), 622) + Span span94 = CollectionsMarshal.AsSpan(list338); + span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(50.48796f, 114.90777f, 9.264265f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone, SkipConditions = new SkipConditions @@ -249806,86 +206411,62 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference236 = ref span338[index2]; + ref QuestStep reference236 = ref span94[1]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1025836u, new Vector3(46.158447f, 114.904976f, 10.849121f), 622) { Fly = true }; - 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); + 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); obj162.CompletionQuestVariablesFlags = list339; reference236 = obj162; - index2++; - ref QuestStep reference237 = ref span338[index2]; + ref QuestStep reference237 = ref span94[2]; 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 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); + 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); questStep65.CompletionQuestVariablesFlags = list340; reference237 = questStep65; - index2++; - ref QuestStep reference238 = ref span338[index2]; + ref QuestStep reference238 = ref span94[3]; QuestStep questStep66 = new QuestStep(EInteractionType.Interact, 1025840u, new Vector3(43.289795f, 114.90497f, 7.9193726f), 622); - 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); + 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); questStep66.CompletionQuestVariablesFlags = list341; reference238 = questStep66; obj161.Steps = list338; reference235 = obj161; - num++; - ref QuestSequence reference239 = ref span328[num]; + ref QuestSequence reference239 = ref span92[4]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -249911,16 +206492,13 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - Span span343 = CollectionsMarshal.AsSpan(list343); - index = 0; - span343[index] = "liza"; + CollectionsMarshal.AsSpan(list343)[0] = "liza"; questRoot31.Author = list343; - index = 2; - List list344 = new List(index); - CollectionsMarshal.SetCount(list344, index); - Span span344 = CollectionsMarshal.AsSpan(list344); - num = 0; - ref QuestSequence reference240 = ref span344[num]; + num = 2; + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + Span span98 = CollectionsMarshal.AsSpan(list344); + ref QuestSequence reference240 = ref span98[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 @@ -249928,9 +206506,7 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025965u, new Vector3(-52.0791f, -2.9f, -64.4389f), 628) + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025965u, new Vector3(-52.0791f, -2.9f, -64.4389f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -249941,18 +206517,15 @@ public static class AssemblyQuestLoader }; obj164.Steps = list345; reference240 = obj164; - num++; - ref QuestSequence reference241 = ref span344[num]; + ref QuestSequence reference241 = ref span98[1]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -249965,16 +206538,13 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - Span span347 = CollectionsMarshal.AsSpan(list347); - index = 0; - span347[index] = "liza"; + CollectionsMarshal.AsSpan(list347)[0] = "liza"; questRoot32.Author = list347; - index = 5; - List list348 = new List(index); - CollectionsMarshal.SetCount(list348, index); - Span span348 = CollectionsMarshal.AsSpan(list348); - num = 0; - ref QuestSequence reference242 = ref span348[num]; + num = 5; + List list348 = new List(num); + CollectionsMarshal.SetCount(list348, num); + Span span99 = CollectionsMarshal.AsSpan(list348); + ref QuestSequence reference242 = ref span99[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -249982,41 +206552,34 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613); + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613); obj166.Steps = list349; reference242 = obj166; - num++; - ref QuestSequence reference243 = ref span348[num]; + ref QuestSequence reference243 = ref span99[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true, RestartNavigationIfCancelled = false }; - num2++; - span350[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) + span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(22.288645f, -196.2301f, -155.5739f), 613) { RestartNavigationIfCancelled = false }; - num2++; - span350[num2] = new QuestStep(EInteractionType.Interact, 1025966u, new Vector3(-10.51355f, -187.08374f, -95.07898f), 613) + span100[2] = new QuestStep(EInteractionType.Interact, 1025966u, new Vector3(-10.51355f, -187.08374f, -95.07898f), 613) { Fly = true }; obj167.Steps = list350; reference243 = obj167; - num++; - ref QuestSequence reference244 = ref span348[num]; + ref QuestSequence reference244 = ref span99[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -250024,9 +206587,7 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span351 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - span351[index2] = new QuestStep(EInteractionType.Interact, 2009560u, new Vector3(855.1002f, 1.1749268f, 876.0051f), 613) + CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Interact, 2009560u, new Vector3(855.1002f, 1.1749268f, 876.0051f), 613) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -250037,18 +206598,15 @@ public static class AssemblyQuestLoader }; obj168.Steps = list351; reference244 = obj168; - num++; - ref QuestSequence reference245 = ref span348[num]; + ref QuestSequence reference245 = ref span99[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -250059,8 +206617,7 @@ public static class AssemblyQuestLoader }; obj169.Steps = list352; reference245 = obj169; - num++; - ref QuestSequence reference246 = ref span348[num]; + ref QuestSequence reference246 = ref span99[4]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -250068,9 +206625,7 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.CompleteQuest, 1025878u, new Vector3(343.984f, -120.32947f, -306.0197f), 613) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; @@ -250083,26 +206638,21 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - Span span354 = CollectionsMarshal.AsSpan(list354); - index = 0; - span354[index] = "liza"; + CollectionsMarshal.AsSpan(list354)[0] = "liza"; questRoot33.Author = list354; - index = 3; - List list355 = new List(index); - CollectionsMarshal.SetCount(list355, index); - Span span355 = CollectionsMarshal.AsSpan(list355); - num = 0; - ref QuestSequence reference247 = ref span355[num]; + num = 3; + List list355 = new List(num); + CollectionsMarshal.SetCount(list355, num); + Span span101 = CollectionsMarshal.AsSpan(list355); + ref QuestSequence reference247 = ref span101[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -250115,8 +206665,7 @@ public static class AssemblyQuestLoader }; obj171.Steps = list356; reference247 = obj171; - num++; - ref QuestSequence reference248 = ref span355[num]; + ref QuestSequence reference248 = ref span101[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -250124,23 +206673,18 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span357[index2] = new QuestStep(EInteractionType.Interact, 1024793u, new Vector3(66.666626f, -7.579447E-09f, -59.67804f), 759); + CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1024793u, new Vector3(66.666626f, -7.579447E-09f, -59.67804f), 759); obj172.Steps = list357; reference248 = obj172; - num++; - ref QuestSequence reference249 = ref span355[num]; + ref QuestSequence reference249 = ref span101[2]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj173.Steps = list358; reference249 = obj173; questRoot33.QuestSequence = list355; @@ -250150,16 +206694,13 @@ public static class AssemblyQuestLoader num = 1; List list359 = new List(num); CollectionsMarshal.SetCount(list359, num); - Span span359 = CollectionsMarshal.AsSpan(list359); - index = 0; - span359[index] = "Thaksin"; + CollectionsMarshal.AsSpan(list359)[0] = "Thaksin"; questRoot34.Author = list359; - index = 4; - List list360 = new List(index); - CollectionsMarshal.SetCount(list360, index); - Span span360 = CollectionsMarshal.AsSpan(list360); - num = 0; - ref QuestSequence reference250 = ref span360[num]; + num = 4; + List list360 = new List(num); + CollectionsMarshal.SetCount(list360, num); + Span span102 = CollectionsMarshal.AsSpan(list360); + ref QuestSequence reference250 = ref span102[0]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -250167,23 +206708,19 @@ public static class AssemblyQuestLoader num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span361 = CollectionsMarshal.AsSpan(list361); - index2 = 0; - span361[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026200u, new Vector3(26.901611f, 0f, 36.362183f), 635); + CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026200u, new Vector3(26.901611f, 0f, 36.362183f), 635); obj174.Steps = list361; reference250 = obj174; - num++; - ref QuestSequence reference251 = ref span360[num]; + ref QuestSequence reference251 = ref span102[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list362 = new List(index2); - CollectionsMarshal.SetCount(list362, index2); - Span span362 = CollectionsMarshal.AsSpan(list362); - num2 = 0; - ref QuestStep reference252 = ref span362[num2]; + num2 = 2; + List list362 = new List(num2); + CollectionsMarshal.SetCount(list362, num2); + Span span103 = CollectionsMarshal.AsSpan(list362); + ref QuestStep reference252 = ref span103[0]; QuestStep obj176 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-516.5388f, 146.04834f, -357.0811f), 399) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -250198,22 +206735,18 @@ public static class AssemblyQuestLoader num3 = 1; List list363 = new List(num3); CollectionsMarshal.SetCount(list363, num3); - Span span363 = CollectionsMarshal.AsSpan(list363); - index3 = 0; - span363[index3] = 399; + CollectionsMarshal.AsSpan(list363)[0] = 399; skipAetheryteCondition2.InTerritory = list363; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition2; obj176.SkipConditions = skipConditions4; reference252 = obj176; - num2++; - span362[num2] = new QuestStep(EInteractionType.Interact, 1026201u, new Vector3(-617.2427f, 146.86842f, 62.150024f), 399) + span103[1] = new QuestStep(EInteractionType.Interact, 1026201u, new Vector3(-617.2427f, 146.86842f, 62.150024f), 399) { Fly = true }; obj175.Steps = list362; reference251 = obj175; - num++; - ref QuestSequence reference253 = ref span360[num]; + ref QuestSequence reference253 = ref span102[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -250221,9 +206754,7 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span364 = CollectionsMarshal.AsSpan(list364); - index2 = 0; - span364[index2] = new QuestStep(EInteractionType.Duty, null, null, 399) + CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -250232,18 +206763,15 @@ public static class AssemblyQuestLoader }; obj177.Steps = list364; reference253 = obj177; - num++; - ref QuestSequence reference254 = ref span360[num]; + ref QuestSequence reference254 = ref span102[3]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj178.Steps = list365; reference254 = obj178; questRoot34.QuestSequence = list360; @@ -250253,16 +206781,13 @@ public static class AssemblyQuestLoader num = 1; List list366 = new List(num); CollectionsMarshal.SetCount(list366, num); - Span span366 = CollectionsMarshal.AsSpan(list366); - index = 0; - span366[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list366)[0] = "JerryWester"; questRoot35.Author = list366; - index = 5; - List list367 = new List(index); - CollectionsMarshal.SetCount(list367, index); - Span span367 = CollectionsMarshal.AsSpan(list367); - num = 0; - ref QuestSequence reference255 = ref span367[num]; + num = 5; + List list367 = new List(num); + CollectionsMarshal.SetCount(list367, num); + Span span104 = CollectionsMarshal.AsSpan(list367); + ref QuestSequence reference255 = ref span104[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -250270,34 +206795,28 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - span368[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) + CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351) { StopDistance = 5f }; obj179.Steps = list368; reference255 = obj179; - num++; - ref QuestSequence reference256 = ref span367[num]; + ref QuestSequence reference256 = ref span104[1]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj180.Steps = list369; reference256 = obj180; - num++; - ref QuestSequence reference257 = ref span367[num]; + ref QuestSequence reference257 = ref span104[2]; QuestSequence obj181 = new QuestSequence { Sequence = 2 @@ -250305,30 +206824,24 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - span370[index2] = new QuestStep(EInteractionType.Interact, 1026256u, new Vector3(648.1575f, 70f, 548.24133f), 621); + CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1026256u, new Vector3(648.1575f, 70f, 548.24133f), 621); obj181.Steps = list370; reference257 = obj181; - num++; - ref QuestSequence reference258 = ref span367[num]; + ref QuestSequence reference258 = ref span104[3]; QuestSequence obj182 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj182.Steps = list371; reference258 = obj182; - num++; - ref QuestSequence reference259 = ref span367[num]; + ref QuestSequence reference259 = ref span104[4]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -250336,27 +206849,23 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - ref QuestStep reference260 = ref span372[index2]; + Span span105 = CollectionsMarshal.AsSpan(list372); + ref QuestStep reference260 = ref span105[0]; QuestStep obj184 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744 }; - index3 = 1; - List list373 = new List(index3); - CollectionsMarshal.SetCount(list373, index3); - Span span373 = CollectionsMarshal.AsSpan(list373); - num3 = 0; - span373[num3] = new DialogueChoice + num3 = 1; + List list373 = new List(num3); + CollectionsMarshal.SetCount(list373, num3); + CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE101_03143_EVENTAREA_WARP_100_004") }; obj184.DialogueChoices = list373; reference260 = obj184; - index2++; - span372[index2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj183.Steps = list372; reference259 = obj183; questRoot35.QuestSequence = list367; @@ -250366,30 +206875,24 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - Span span374 = CollectionsMarshal.AsSpan(list374); - index = 0; - span374[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list374)[0] = "JerryWester"; questRoot36.Author = list374; - index = 5; - List list375 = new List(index); - CollectionsMarshal.SetCount(list375, index); - Span span375 = CollectionsMarshal.AsSpan(list375); - num = 0; - ref QuestSequence reference261 = ref span375[num]; + num = 5; + List list375 = new List(num); + CollectionsMarshal.SetCount(list375, num); + Span span106 = CollectionsMarshal.AsSpan(list375); + ref QuestSequence reference261 = ref span106[0]; QuestSequence obj185 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj185.Steps = list376; reference261 = obj185; - num++; - ref QuestSequence reference262 = ref span375[num]; + ref QuestSequence reference262 = ref span106[1]; QuestSequence obj186 = new QuestSequence { Sequence = 1 @@ -250397,27 +206900,22 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - Span span377 = CollectionsMarshal.AsSpan(list377); - index2 = 0; - span377[index2] = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) + CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj186.Steps = list377; reference262 = obj186; - num++; - ref QuestSequence reference263 = ref span375[num]; + ref QuestSequence reference263 = ref span106[2]; QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list378 = new List(num2); + CollectionsMarshal.SetCount(list378, num2); + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Duty, null, null, 614) { DutyOptions = new DutyOptions { @@ -250427,13 +206925,11 @@ public static class AssemblyQuestLoader }; obj187.Steps = list378; reference263 = obj187; - num++; - span375[num] = new QuestSequence + span106[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference264 = ref span375[num]; + ref QuestSequence reference264 = ref span106[4]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -250441,9 +206937,7 @@ public static class AssemblyQuestLoader num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - Span span379 = CollectionsMarshal.AsSpan(list379); - index2 = 0; - span379[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) + CollectionsMarshal.AsSpan(list379)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026268u, new Vector3(117.7843f, -4.178714f, 87.296875f), 759) { StopDistance = 7f }; @@ -250456,26 +206950,21 @@ public static class AssemblyQuestLoader num = 1; List list380 = new List(num); CollectionsMarshal.SetCount(list380, num); - Span span380 = CollectionsMarshal.AsSpan(list380); - index = 0; - span380[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list380)[0] = "JerryWester"; questRoot37.Author = list380; - index = 5; - List list381 = new List(index); - CollectionsMarshal.SetCount(list381, index); - Span span381 = CollectionsMarshal.AsSpan(list381); - num = 0; - ref QuestSequence reference265 = ref span381[num]; + num = 5; + List list381 = new List(num); + CollectionsMarshal.SetCount(list381, num); + Span span107 = CollectionsMarshal.AsSpan(list381); + ref QuestSequence reference265 = ref span107[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -250489,8 +206978,7 @@ public static class AssemblyQuestLoader }; obj189.Steps = list382; reference265 = obj189; - num++; - ref QuestSequence reference266 = ref span381[num]; + ref QuestSequence reference266 = ref span107[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -250498,9 +206986,7 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span383 = CollectionsMarshal.AsSpan(list383); - index2 = 0; - ref QuestStep reference267 = ref span383[index2]; + ref QuestStep reference267 = ref CollectionsMarshal.AsSpan(list383)[0]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -250513,9 +206999,7 @@ public static class AssemblyQuestLoader num3 = 1; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - Span span384 = CollectionsMarshal.AsSpan(list384); - index3 = 0; - span384[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list384)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE103_03145_EVENTAREA_WARP_100_004") @@ -250524,25 +207008,21 @@ public static class AssemblyQuestLoader reference267 = obj191; obj190.Steps = list383; reference266 = obj190; - num++; - ref QuestSequence reference268 = ref span381[num]; + ref QuestSequence reference268 = ref span107[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj192.Steps = list385; reference268 = obj192; - num++; - ref QuestSequence reference269 = ref span381[num]; + ref QuestSequence reference269 = ref span107[3]; QuestSequence obj193 = new QuestSequence { Sequence = 3 @@ -250550,14 +207030,12 @@ public static class AssemblyQuestLoader num2 = 2; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - span386[index2] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) + Span span108 = CollectionsMarshal.AsSpan(list386); + span108[0] = new QuestStep(EInteractionType.Interact, 2009289u, new Vector3(0.02468622f, 0.9079783f, 18.30971f), 744) { TargetTerritoryId = (ushort)759 }; - index2++; - span386[index2] = new QuestStep(EInteractionType.Interact, 1026276u, new Vector3(119.035645f, -4.1787133f, 65.384766f), 759) + span108[1] = new QuestStep(EInteractionType.Interact, 1026276u, new Vector3(119.035645f, -4.1787133f, 65.384766f), 759) { AethernetShortcut = new AethernetShortcut { @@ -250567,18 +207045,16 @@ public static class AssemblyQuestLoader }; obj193.Steps = list386; reference269 = obj193; - num++; - ref QuestSequence reference270 = ref span381[num]; + ref QuestSequence reference270 = ref span107[4]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list387 = new List(index2); - CollectionsMarshal.SetCount(list387, index2); - Span span387 = CollectionsMarshal.AsSpan(list387); - num2 = 0; - ref QuestStep reference271 = ref span387[num2]; + num2 = 2; + List list387 = new List(num2); + CollectionsMarshal.SetCount(list387, num2); + Span span109 = CollectionsMarshal.AsSpan(list387); + ref QuestStep reference271 = ref span109[0]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -250588,20 +207064,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.DomanEnclave } }; - index3 = 1; - List list388 = new List(index3); - CollectionsMarshal.SetCount(list388, index3); - Span span388 = CollectionsMarshal.AsSpan(list388); - num3 = 0; - span388[num3] = new DialogueChoice + num3 = 1; + List list388 = new List(num3); + CollectionsMarshal.SetCount(list388, num3); + CollectionsMarshal.AsSpan(list388)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE103_03145_EVENTAREA_WARP_100_004") }; obj195.DialogueChoices = list388; reference271 = obj195; - num2++; - span387[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj194.Steps = list387; reference270 = obj194; questRoot37.QuestSequence = list381; @@ -250611,16 +207084,13 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - Span span389 = CollectionsMarshal.AsSpan(list389); - index = 0; - span389[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list389)[0] = "JerryWester"; questRoot38.Author = list389; - index = 4; - List list390 = new List(index); - CollectionsMarshal.SetCount(list390, index); - Span span390 = CollectionsMarshal.AsSpan(list390); - num = 0; - ref QuestSequence reference272 = ref span390[num]; + num = 4; + List list390 = new List(num); + CollectionsMarshal.SetCount(list390, num); + Span span110 = CollectionsMarshal.AsSpan(list390); + ref QuestSequence reference272 = ref span110[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -250628,16 +207098,12 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - Span span391 = CollectionsMarshal.AsSpan(list391); - index2 = 0; - ref QuestStep reference273 = ref span391[index2]; + ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list391)[0]; 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); - Span span392 = CollectionsMarshal.AsSpan(list392); - index3 = 0; - span392[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list392)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDE104_03146_Q1_000_000"), @@ -250647,26 +207113,22 @@ public static class AssemblyQuestLoader reference273 = questStep67; obj196.Steps = list391; reference272 = obj196; - num++; - ref QuestSequence reference274 = ref span390[num]; + ref QuestSequence reference274 = ref span110[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion }; obj197.Steps = list393; reference274 = obj197; - num++; - ref QuestSequence reference275 = ref span390[num]; + ref QuestSequence reference275 = ref span110[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -250674,26 +207136,21 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span394 = CollectionsMarshal.AsSpan(list394); - index2 = 0; - span394[index2] = new QuestStep(EInteractionType.Interact, 1026281u, new Vector3(561.7302f, -19.30375f, 271.99194f), 622) + CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 1026281u, new Vector3(561.7302f, -19.30375f, 271.99194f), 622) { StopDistance = 6f }; obj198.Steps = list394; reference275 = obj198; - num++; - ref QuestSequence reference276 = ref span390[num]; + ref QuestSequence reference276 = ref span110[3]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -250706,16 +207163,13 @@ public static class AssemblyQuestLoader num = 1; List list396 = new List(num); CollectionsMarshal.SetCount(list396, num); - Span span396 = CollectionsMarshal.AsSpan(list396); - index = 0; - span396[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list396)[0] = "JerryWester"; questRoot39.Author = list396; - index = 7; - List list397 = new List(index); - CollectionsMarshal.SetCount(list397, index); - Span span397 = CollectionsMarshal.AsSpan(list397); - num = 0; - ref QuestSequence reference277 = ref span397[num]; + num = 7; + List list397 = new List(num); + CollectionsMarshal.SetCount(list397, num); + Span span111 = CollectionsMarshal.AsSpan(list397); + ref QuestSequence reference277 = ref span111[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -250723,33 +207177,27 @@ public static class AssemblyQuestLoader num2 = 1; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - span398[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622) + CollectionsMarshal.AsSpan(list398)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622) { StopDistance = 5f }; obj200.Steps = list398; reference277 = obj200; - num++; - ref QuestSequence reference278 = ref span397[num]; + ref QuestSequence reference278 = ref span111[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj201.Steps = list399; reference278 = obj201; - num++; - ref QuestSequence reference279 = ref span397[num]; + ref QuestSequence reference279 = ref span111[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -250757,36 +207205,30 @@ public static class AssemblyQuestLoader num2 = 2; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.77588f, 40.425697f, -475.4643f), 622) + Span span112 = CollectionsMarshal.AsSpan(list400); + span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(493.77588f, 40.425697f, -475.4643f), 622) { Fly = true }; - index2++; - span400[index2] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); + span112[1] = new QuestStep(EInteractionType.Interact, 1020539u, new Vector3(498.2832f, 40.836098f, -508.20172f), 622); obj202.Steps = list400; reference279 = obj202; - num++; - ref QuestSequence reference280 = ref span397[num]; + ref QuestSequence reference280 = ref span111[3]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj203.Steps = list401; reference280 = obj203; - num++; - ref QuestSequence reference281 = ref span397[num]; + ref QuestSequence reference281 = ref span111[4]; QuestSequence obj204 = new QuestSequence { Sequence = 4 @@ -250794,42 +207236,34 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span402 = CollectionsMarshal.AsSpan(list402); - index2 = 0; - ref QuestStep reference282 = ref span402[index2]; + ref QuestStep reference282 = ref CollectionsMarshal.AsSpan(list402)[0]; QuestStep obj205 = new QuestStep(EInteractionType.SinglePlayerDuty, 2009591u, new Vector3(-210.34564f, 2.6397705f, 519.27966f), 622) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list403; obj205.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference282 = obj205; obj204.Steps = list402; reference281 = obj204; - num++; - span397[num] = new QuestSequence + span111[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference283 = ref span397[num]; + ref QuestSequence reference283 = ref span111[6]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -250842,16 +207276,13 @@ public static class AssemblyQuestLoader num = 1; List list405 = new List(num); CollectionsMarshal.SetCount(list405, num); - Span span405 = CollectionsMarshal.AsSpan(list405); - index = 0; - span405[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list405)[0] = "JerryWester"; questRoot40.Author = list405; - index = 7; - List list406 = new List(index); - CollectionsMarshal.SetCount(list406, index); - Span span406 = CollectionsMarshal.AsSpan(list406); - num = 0; - ref QuestSequence reference284 = ref span406[num]; + num = 7; + List list406 = new List(num); + CollectionsMarshal.SetCount(list406, num); + Span span113 = CollectionsMarshal.AsSpan(list406); + ref QuestSequence reference284 = ref span113[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -250859,30 +207290,24 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span407 = CollectionsMarshal.AsSpan(list407); - index2 = 0; - span407[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622); + CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026284u, new Vector3(498.2832f, 40.86853f, -503.37988f), 622); obj207.Steps = list407; reference284 = obj207; - num++; - ref QuestSequence reference285 = ref span406[num]; + ref QuestSequence reference285 = ref span113[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj208.Steps = list408; reference285 = obj208; - num++; - ref QuestSequence reference286 = ref span406[num]; + ref QuestSequence reference286 = ref span113[2]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -250890,23 +207315,19 @@ public static class AssemblyQuestLoader num2 = 1; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span409 = CollectionsMarshal.AsSpan(list409); - index2 = 0; - span409[index2] = new QuestStep(EInteractionType.Interact, 1026239u, new Vector3(348.53125f, 118.662384f, -691.92035f), 622); + CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Interact, 1026239u, new Vector3(348.53125f, 118.662384f, -691.92035f), 622); obj209.Steps = list409; reference286 = obj209; - num++; - ref QuestSequence reference287 = ref span406[num]; + ref QuestSequence reference287 = ref span113[3]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list410 = new List(index2); - CollectionsMarshal.SetCount(list410, index2); - Span span410 = CollectionsMarshal.AsSpan(list410); - num2 = 0; - ref QuestStep reference288 = ref span410[num2]; + num2 = 2; + List list410 = new List(num2); + CollectionsMarshal.SetCount(list410, num2); + Span span114 = CollectionsMarshal.AsSpan(list410); + ref QuestStep reference288 = ref span114[0]; QuestStep obj211 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -250915,21 +207336,17 @@ public static class AssemblyQuestLoader num3 = 1; List list411 = new List(num3); CollectionsMarshal.SetCount(list411, num3); - Span span411 = CollectionsMarshal.AsSpan(list411); - index3 = 0; - span411[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list411)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE106_03148_EVENTAREA_WARP_100_004") }; obj211.DialogueChoices = list411; reference288 = obj211; - num2++; - span410[num2] = new QuestStep(EInteractionType.Interact, 1026469u, new Vector3(-1.8463745f, 0.02109136f, -1.4191895f), 744); + span114[1] = new QuestStep(EInteractionType.Interact, 1026469u, new Vector3(-1.8463745f, 0.02109136f, -1.4191895f), 744); obj210.Steps = list410; reference287 = obj210; - num++; - ref QuestSequence reference289 = ref span406[num]; + ref QuestSequence reference289 = ref span113[4]; QuestSequence obj212 = new QuestSequence { Sequence = 4 @@ -250937,34 +207354,27 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span412[index2] = new QuestStep(EInteractionType.Interact, 1026241u, new Vector3(747.00525f, 69.99995f, 526.36f), 621) + CollectionsMarshal.AsSpan(list412)[0] = new QuestStep(EInteractionType.Interact, 1026241u, new Vector3(747.00525f, 69.99995f, 526.36f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj212.Steps = list412; reference289 = obj212; - num++; - ref QuestSequence reference290 = ref span406[num]; + ref QuestSequence reference290 = ref span113[5]; QuestSequence obj213 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list413 = new List(index2); - CollectionsMarshal.SetCount(list413, index2); - Span span413 = CollectionsMarshal.AsSpan(list413); - num2 = 0; - ref QuestStep reference291 = ref span413[num2]; + num2 = 1; + List list413 = new List(num2); + CollectionsMarshal.SetCount(list413, num2); + ref QuestStep reference291 = ref CollectionsMarshal.AsSpan(list413)[0]; QuestStep questStep68 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621); - index3 = 1; - List list414 = new List(index3); - CollectionsMarshal.SetCount(list414, index3); - Span span414 = CollectionsMarshal.AsSpan(list414); - num3 = 0; - span414[num3] = new DialogueChoice + num3 = 1; + List list414 = new List(num3); + CollectionsMarshal.SetCount(list414, num3); + CollectionsMarshal.AsSpan(list414)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDE106_03148_Q1_000_000") @@ -250973,8 +207383,7 @@ public static class AssemblyQuestLoader reference291 = questStep68; obj213.Steps = list413; reference290 = obj213; - num++; - ref QuestSequence reference292 = ref span406[num]; + ref QuestSequence reference292 = ref span113[6]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -250982,9 +207391,7 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - Span span415 = CollectionsMarshal.AsSpan(list415); - index2 = 0; - span415[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) + CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026242u, new Vector3(773.3424f, 80f, 437.70496f), 621) { StopDistance = 5f }; @@ -250997,26 +207404,21 @@ public static class AssemblyQuestLoader num = 1; List list416 = new List(num); CollectionsMarshal.SetCount(list416, num); - Span span416 = CollectionsMarshal.AsSpan(list416); - index = 0; - span416[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list416)[0] = "JerryWester"; questRoot41.Author = list416; - index = 5; - List list417 = new List(index); - CollectionsMarshal.SetCount(list417, index); - Span span417 = CollectionsMarshal.AsSpan(list417); - num = 0; - ref QuestSequence reference293 = ref span417[num]; + num = 5; + List list417 = new List(num); + CollectionsMarshal.SetCount(list417, num); + Span span115 = CollectionsMarshal.AsSpan(list417); + ref QuestSequence reference293 = ref span115[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -251030,8 +207432,7 @@ public static class AssemblyQuestLoader }; obj215.Steps = list418; reference293 = obj215; - num++; - ref QuestSequence reference294 = ref span417[num]; + ref QuestSequence reference294 = ref span115[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -251039,23 +207440,18 @@ public static class AssemblyQuestLoader num2 = 1; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span419 = CollectionsMarshal.AsSpan(list419); - index2 = 0; - span419[index2] = new QuestStep(EInteractionType.Interact, 1026247u, new Vector3(-9.201294f, 0f, -5.44751f), 351); + CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.Interact, 1026247u, new Vector3(-9.201294f, 0f, -5.44751f), 351); obj216.Steps = list419; reference294 = obj216; - num++; - ref QuestSequence reference295 = ref span417[num]; + ref QuestSequence reference295 = ref span115[2]; QuestSequence obj217 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -251066,8 +207462,7 @@ public static class AssemblyQuestLoader }; obj217.Steps = list420; reference295 = obj217; - num++; - ref QuestSequence reference296 = ref span417[num]; + ref QuestSequence reference296 = ref span115[3]; QuestSequence obj218 = new QuestSequence { Sequence = 3 @@ -251075,29 +207470,24 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - Span span421 = CollectionsMarshal.AsSpan(list421); - index2 = 0; - span421[index2] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128); + CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.Interact, 1026249u, new Vector3(66.20886f, 40f, 69.93213f), 128); obj218.Steps = list421; reference296 = obj218; - num++; - ref QuestSequence reference297 = ref span417[num]; + ref QuestSequence reference297 = ref span115[4]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span422[num2] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + span116[1] = new QuestStep(EInteractionType.CompleteQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj219.Steps = list422; reference297 = obj219; questRoot41.QuestSequence = list417; @@ -251111,16 +207501,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -251128,91 +207515,66 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -251220,30 +207582,24 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628); + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1025912u, new Vector3(66.57507f, 10.503965f, -155.59625f), 628); obj3.Steps = list8; reference6 = obj3; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj4.Steps = list9; reference7 = obj4; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -251251,30 +207607,24 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span10[index2] = new QuestStep(EInteractionType.Interact, 1026457u, new Vector3(62.271973f, -8.0999975f, -225.2995f), 628); + span6[2] = new QuestStep(EInteractionType.Interact, 1026457u, new Vector3(62.271973f, -8.0999975f, -225.2995f), 628); obj5.Steps = list10; reference8 = obj5; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3151) }; @@ -251287,16 +207637,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "liza"; + CollectionsMarshal.AsSpan(list12)[0] = "liza"; questRoot2.Author = list12; - index = 6; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference10 = ref span13[num]; + num = 6; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span7 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference10 = ref span7[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -251304,26 +207651,21 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026351u, new Vector3(45.090332f, -7.469796f, -262.7146f), 628) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026351u, new Vector3(45.090332f, -7.469796f, -262.7146f), 628) { StopDistance = 5f }; obj7.Steps = list14; reference10 = obj7; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span7[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -251335,8 +207677,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list15; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span7[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -251344,33 +207685,27 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1019166u, new Vector3(495.6587f, 29.394592f, 722.0111f), 613) { Fly = true }; obj9.Steps = list16; reference12 = obj9; - num++; - ref QuestSequence reference13 = ref span13[num]; + ref QuestSequence reference13 = ref span7[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj10.Steps = list17; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span13[num]; + ref QuestSequence reference14 = ref span7[4]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -251378,23 +207713,18 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1026367u, new Vector3(297.32202f, 0.35283074f, 470.51184f), 613); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1026367u, new Vector3(297.32202f, 0.35283074f, 470.51184f), 613); obj11.Steps = list18; reference14 = obj11; - num++; - ref QuestSequence reference15 = ref span13[num]; + ref QuestSequence reference15 = ref span7[5]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -251413,16 +207743,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; - index = 7; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 7; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span8 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span8[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -251430,23 +207757,19 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1019178u, new Vector3(319.69165f, -120.03494f, -250.90417f), 613); obj13.Steps = list22; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span8[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)764, Fly = true, @@ -251457,12 +207780,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num2++; - span23[num2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span9[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj14.Steps = list23; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span8[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -251470,23 +207791,18 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.Interact, 1026204u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 1026204u, new Vector3(74.23511f, -90.00003f, -457.3587f), 764); obj15.Steps = list24; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span21[num]; + ref QuestSequence reference19 = ref span8[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Duty, null, null, 764) { DutyOptions = new DutyOptions { @@ -251495,13 +207811,11 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - num++; - span21[num] = new QuestSequence + span8[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference20 = ref span21[num]; + ref QuestSequence reference20 = ref span8[5]; QuestSequence obj17 = new QuestSequence { Sequence = 5 @@ -251509,23 +207823,18 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj17.Steps = list26; reference20 = obj17; - num++; - ref QuestSequence reference21 = ref span21[num]; + ref QuestSequence reference21 = ref span8[6]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3165) @@ -251539,16 +207848,13 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list28)[0] = "CryoTechnic"; questRoot4.Author = list28; - index = 4; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference22 = ref span29[num]; + num = 4; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span10 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference22 = ref span10[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -251556,9 +207862,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024791u, new Vector3(31.60144f, 0.26575702f, 28.915894f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -251571,20 +207875,17 @@ public static class AssemblyQuestLoader }; obj19.Steps = list30; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span29[num]; + ref QuestSequence reference23 = ref span10[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -251595,8 +207896,7 @@ public static class AssemblyQuestLoader }; obj20.Steps = list31; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span29[num]; + ref QuestSequence reference24 = ref span10[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -251604,9 +207904,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1025755u, new Vector3(16.850666f, -5.9723854E-05f, -84.3385f), 759) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1025755u, new Vector3(16.850666f, -5.9723854E-05f, -84.3385f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -251617,18 +207915,15 @@ public static class AssemblyQuestLoader }; obj21.Steps = list32; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span29[num]; + ref QuestSequence reference25 = ref span10[3]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -251646,16 +207941,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "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]; + num = 6; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span12 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference26 = ref span12[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -251663,34 +207955,27 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635); obj23.Steps = list36; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span12[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num2 = 0; - ref QuestStep reference28 = ref span37[num2]; + num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1021937u, new Vector3(465.5984f, 69.25287f, 518.88293f), 612) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; - num4 = 1; - List list38 = new List(num4); - CollectionsMarshal.SetCount(list38, num4); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR301_03154_Q2_000_051"), @@ -251700,13 +207985,11 @@ public static class AssemblyQuestLoader reference28 = obj25; obj24.Steps = list37; reference27 = obj24; - num++; - span35[num] = new QuestSequence + span12[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference29 = ref span35[num]; + ref QuestSequence reference29 = ref span12[3]; QuestSequence obj26 = new QuestSequence { Sequence = 3 @@ -251714,23 +207997,18 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807); + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807); obj26.Steps = list39; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span35[num]; + ref QuestSequence reference30 = ref span12[4]; QuestSequence obj27 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Duty, null, null, 807) { DutyOptions = new DutyOptions { @@ -251739,8 +208017,7 @@ public static class AssemblyQuestLoader }; obj27.Steps = list40; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span35[num]; + ref QuestSequence reference31 = ref span12[5]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue @@ -251748,9 +208025,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026453u, new Vector3(-34.836426f, -16.15f, 153.8872f), 807) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026453u, new Vector3(-34.836426f, -16.15f, 153.8872f), 807) { StopDistance = 5f, NextQuestId = new QuestId(3155) @@ -251764,33 +208039,27 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot6.Author = list42; - index = 3; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference32 = ref span43[num]; + num = 3; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span13 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference32 = ref span13[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj29.Steps = list44; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span43[num]; + ref QuestSequence reference33 = ref span13[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -251798,9 +208067,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Duty, null, null, 807) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Duty, null, null, 807) { DutyOptions = new DutyOptions { @@ -251809,18 +208076,15 @@ public static class AssemblyQuestLoader }; obj30.Steps = list45; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span43[num]; + ref QuestSequence reference34 = ref span13[2]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3156) @@ -251834,16 +208098,13 @@ public static class AssemblyQuestLoader num = 1; List list47 = new List(num); CollectionsMarshal.SetCount(list47, num); - Span span47 = CollectionsMarshal.AsSpan(list47); - index = 0; - span47[index] = "liza"; + CollectionsMarshal.AsSpan(list47)[0] = "liza"; questRoot7.Author = list47; - index = 9; - List list48 = new List(index); - CollectionsMarshal.SetCount(list48, index); - Span span48 = CollectionsMarshal.AsSpan(list48); - num = 0; - ref QuestSequence reference35 = ref span48[num]; + num = 9; + List list48 = new List(num); + CollectionsMarshal.SetCount(list48, num); + Span span14 = CollectionsMarshal.AsSpan(list48); + ref QuestSequence reference35 = ref span14[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -251851,33 +208112,27 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026450u, new Vector3(-35.01947f, -16.150002f, 156.20654f), 807) { StopDistance = 7f }; obj32.Steps = list49; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span48[num]; + ref QuestSequence reference36 = ref span14[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj33.Steps = list50; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span48[num]; + ref QuestSequence reference37 = ref span14[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -251885,30 +208140,24 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 2009608u, new Vector3(103.07471f, 0.62561035f, 41.794434f), 635) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 2009608u, new Vector3(103.07471f, 0.62561035f, 41.794434f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj34.Steps = list51; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span48[num]; + ref QuestSequence reference38 = ref span14[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj35.Steps = list52; reference38 = obj35; - num++; - ref QuestSequence reference39 = ref span48[num]; + ref QuestSequence reference39 = ref span14[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -251916,9 +208165,8 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - ref QuestStep reference40 = ref span53[index2]; + Span span15 = CollectionsMarshal.AsSpan(list53); + ref QuestStep reference40 = ref span15[0]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1021947u, new Vector3(476.73767f, 69.83099f, 526.604f), 612) { Fly = true, @@ -251927,31 +208175,25 @@ public static class AssemblyQuestLoader num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR303_03156_SYSTEM_000_006") }; obj37.DialogueChoices = list54; reference40 = obj37; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1026456u, new Vector3(-19.638367f, -16.65f, 144.06042f), 812); + span15[1] = new QuestStep(EInteractionType.Interact, 1026456u, new Vector3(-19.638367f, -16.65f, 144.06042f), 812); obj36.Steps = list53; reference39 = obj36; - num++; - ref QuestSequence reference41 = ref span48[num]; + ref QuestSequence reference41 = ref span14[5]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list55 = new List(num2); + CollectionsMarshal.SetCount(list55, num2); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Duty, null, null, 812) { DutyOptions = new DutyOptions { @@ -251960,13 +208202,11 @@ public static class AssemblyQuestLoader }; obj38.Steps = list55; reference41 = obj38; - num++; - span48[num] = new QuestSequence + span14[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference42 = ref span48[num]; + ref QuestSequence reference42 = ref span14[7]; QuestSequence obj39 = new QuestSequence { Sequence = 7 @@ -251974,9 +208214,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Duty, null, null, 812) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Duty, null, null, 812) { DutyOptions = new DutyOptions { @@ -251985,18 +208223,15 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span48[num]; + ref QuestSequence reference43 = ref span14[8]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3157) @@ -252010,16 +208245,13 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "liza"; + CollectionsMarshal.AsSpan(list58)[0] = "liza"; questRoot8.Author = list58; - index = 10; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference44 = ref span59[num]; + num = 10; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span16 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference44 = ref span16[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -252027,33 +208259,27 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1021939u, new Vector3(464.98804f, 69.34f, 522.4231f), 612) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1021939u, new Vector3(464.98804f, 69.34f, 522.4231f), 612) { StopDistance = 5f }; obj41.Steps = list60; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span59[num]; + ref QuestSequence reference45 = ref span16[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj42.Steps = list61; reference45 = obj42; - num++; - ref QuestSequence reference46 = ref span59[num]; + ref QuestSequence reference46 = ref span16[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -252061,33 +208287,26 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1023687u, new Vector3(112.7489f, 0.65204155f, 60.227295f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj43.Steps = list62; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span59[num]; + ref QuestSequence reference47 = ref span16[3]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference48 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1026712u, new Vector3(113.23718f, 0.6520417f, 56.839844f), 635); - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new DialogueChoice + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR304_03157_Q1_000_102"), @@ -252097,8 +208316,7 @@ public static class AssemblyQuestLoader reference48 = questStep4; obj44.Steps = list63; reference47 = obj44; - num++; - ref QuestSequence reference49 = ref span59[num]; + ref QuestSequence reference49 = ref span16[4]; QuestSequence obj45 = new QuestSequence { Sequence = 4 @@ -252106,27 +208324,21 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1026465u, new Vector3(-38.92578f, -0.0364509f, -3.7385254f), 635); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1026465u, new Vector3(-38.92578f, -0.0364509f, -3.7385254f), 635); obj45.Steps = list65; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span59[num]; + ref QuestSequence reference50 = ref span16[5]; QuestSequence obj46 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj46.Steps = list66; reference50 = obj46; - num++; - ref QuestSequence reference51 = ref span59[num]; + ref QuestSequence reference51 = ref span16[6]; QuestSequence obj47 = new QuestSequence { Sequence = 6 @@ -252134,30 +208346,24 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1026467u, new Vector3(-150.4082f, -2.7350852f, -139.20807f), 635); obj47.Steps = list67; reference51 = obj47; - num++; - ref QuestSequence reference52 = ref span59[num]; + ref QuestSequence reference52 = ref span16[7]; QuestSequence obj48 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Emote = EEmote.Pet }; obj48.Steps = list68; reference52 = obj48; - num++; - ref QuestSequence reference53 = ref span59[num]; + ref QuestSequence reference53 = ref span16[8]; QuestSequence obj49 = new QuestSequence { Sequence = 8 @@ -252165,23 +208371,18 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1026468u, new Vector3(-13.778931f, 0.98160696f, 70.54236f), 635); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1026468u, new Vector3(-13.778931f, 0.98160696f, 70.54236f), 635); obj49.Steps = list69; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span59[num]; + ref QuestSequence reference54 = ref span16[9]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj50.Steps = list70; reference54 = obj50; questRoot8.QuestSequence = list59; @@ -252191,16 +208392,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list71)[0] = "plogon_enjoyer"; questRoot9.Author = list71; - index = 10; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference55 = ref span72[num]; + num = 10; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span17 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference55 = ref span17[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -252208,9 +208406,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026380u, new Vector3(94.22449f, 12.000005f, -72.55664f), 628) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026380u, new Vector3(94.22449f, 12.000005f, -72.55664f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -252223,18 +208419,15 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference55 = obj51; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span17[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -252244,8 +208437,7 @@ public static class AssemblyQuestLoader }; obj52.Steps = list74; reference56 = obj52; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span17[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -252253,23 +208445,18 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1026381u, new Vector3(139.33008f, 25f, -7.0039062f), 628); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1026381u, new Vector3(139.33008f, 25f, -7.0039062f), 628); obj53.Steps = list75; reference57 = obj53; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span17[3]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -252279,8 +208466,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list76; reference58 = obj54; - num++; - ref QuestSequence reference59 = ref span72[num]; + ref QuestSequence reference59 = ref span17[4]; QuestSequence obj55 = new QuestSequence { Sequence = 4 @@ -252288,16 +208474,12 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - ref QuestStep reference60 = ref span77[index2]; + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list77)[0]; 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); - Span span78 = CollectionsMarshal.AsSpan(list78); - num4 = 0; - span78[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL210_03161_Q3_000_000") @@ -252306,22 +208488,18 @@ public static class AssemblyQuestLoader reference60 = questStep5; obj55.Steps = list77; reference59 = obj55; - num++; - ref QuestSequence reference61 = ref span72[num]; + ref QuestSequence reference61 = ref span17[5]; QuestSequence obj56 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj56.Steps = list79; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span72[num]; + ref QuestSequence reference62 = ref span17[6]; QuestSequence obj57 = new QuestSequence { Sequence = 6 @@ -252329,9 +208507,7 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Interact, 1026386u, new Vector3(-4.989685f, 0.25f, -103.50195f), 628) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1026386u, new Vector3(-4.989685f, 0.25f, -103.50195f), 628) { AethernetShortcut = new AethernetShortcut { @@ -252341,18 +208517,15 @@ public static class AssemblyQuestLoader }; obj57.Steps = list80; reference62 = obj57; - num++; - ref QuestSequence reference63 = ref span72[num]; + ref QuestSequence reference63 = ref span17[7]; QuestSequence obj58 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -252362,8 +208535,7 @@ public static class AssemblyQuestLoader }; obj58.Steps = list81; reference63 = obj58; - num++; - ref QuestSequence reference64 = ref span72[num]; + ref QuestSequence reference64 = ref span17[8]; QuestSequence obj59 = new QuestSequence { Sequence = 8 @@ -252371,23 +208543,18 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628); + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628); obj59.Steps = list82; reference64 = obj59; - num++; - ref QuestSequence reference65 = ref span72[num]; + ref QuestSequence reference65 = ref span17[9]; QuestSequence obj60 = 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, 1026389u, new Vector3(-84.763916f, -2.9999986f, 62.91284f), 628) + 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) { ItemId = 2002488u, GroundTarget = true, @@ -252402,16 +208569,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list84)[0] = "plogon_enjoyer"; questRoot10.Author = list84; - index = 7; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference66 = ref span85[num]; + num = 7; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span18 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference66 = ref span18[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -252419,9 +208583,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026388u, new Vector3(-82.414f, -2.9999976f, 62.42456f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -252443,18 +208605,15 @@ public static class AssemblyQuestLoader }; obj61.Steps = list86; reference66 = obj61; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span18[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -252465,8 +208624,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list87; reference67 = obj62; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span18[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -252474,38 +208632,32 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1026398u, new Vector3(840.3906f, 6.9450293f, 819.6688f), 613) + Span span19 = CollectionsMarshal.AsSpan(list88); + span19[0] = new QuestStep(EInteractionType.Interact, 1026398u, new Vector3(840.3906f, 6.9450293f, 819.6688f), 613) { Fly = true }; - index2++; - span88[index2] = new QuestStep(EInteractionType.Interact, 1026397u, new Vector3(848.6304f, 1.1792068f, 863.8589f), 613) + span19[1] = new QuestStep(EInteractionType.Interact, 1026397u, new Vector3(848.6304f, 1.1792068f, 863.8589f), 613) { Fly = true }; obj63.Steps = list88; reference68 = obj63; - num++; - ref QuestSequence reference69 = ref span85[num]; + ref QuestSequence reference69 = ref span18[3]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj64.Steps = list89; reference69 = obj64; - num++; - ref QuestSequence reference70 = ref span85[num]; + ref QuestSequence reference70 = ref span18[4]; QuestSequence obj65 = new QuestSequence { Sequence = 4 @@ -252513,44 +208665,37 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro }; obj65.Steps = list90; reference70 = obj65; - num++; - ref QuestSequence reference71 = ref span85[num]; + ref QuestSequence reference71 = ref span18[5]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; - num2++; - span91[num2] = new QuestStep(EInteractionType.Interact, 1026404u, new Vector3(-716.09064f, 1.2506801f, -593.62177f), 613) + span20[1] = new QuestStep(EInteractionType.Interact, 1026404u, new Vector3(-716.09064f, 1.2506801f, -593.62177f), 613) { Fly = true }; - num2++; - span91[num2] = new QuestStep(EInteractionType.Interact, 1026405u, new Vector3(-739.98627f, 1.960285f, -611.2917f), 613) + span20[2] = new QuestStep(EInteractionType.Interact, 1026405u, new Vector3(-739.98627f, 1.960285f, -611.2917f), 613) { Fly = true }; obj66.Steps = list91; reference71 = obj66; - num++; - ref QuestSequence reference72 = ref span85[num]; + ref QuestSequence reference72 = ref span18[6]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -252558,9 +208703,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, NextQuestId = new QuestId(3163) @@ -252574,26 +208717,21 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list93)[0] = "plogon_enjoyer"; questRoot11.Author = list93; - index = 5; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference73 = ref span94[num]; + num = 5; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span21 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference73 = ref span21[0]; QuestSequence obj68 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestStep obj69 = new QuestStep(EInteractionType.AcceptQuest, 1026401u, new Vector3(-773.1289f, 2.941284f, -360.9217f), 613) { Fly = true, @@ -252606,12 +208744,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list96 = new List(num4); - CollectionsMarshal.SetCount(list96, num4); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = new DialogueChoice + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL230_03163_Q1_000_000"), @@ -252621,8 +208757,7 @@ public static class AssemblyQuestLoader reference74 = obj69; obj68.Steps = list95; reference73 = obj68; - num++; - ref QuestSequence reference75 = ref span94[num]; + ref QuestSequence reference75 = ref span21[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -252630,34 +208765,28 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 1026414u, new Vector3(-778.28644f, 127.27075f, 129.74744f), 622) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1026414u, new Vector3(-778.28644f, 127.27075f, 129.74744f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh }; obj70.Steps = list97; reference75 = obj70; - num++; - ref QuestSequence reference76 = ref span94[num]; + ref QuestSequence reference76 = ref span21[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDawnThrone }; obj71.Steps = list98; reference76 = obj71; - num++; - ref QuestSequence reference77 = ref span94[num]; + ref QuestSequence reference77 = ref span21[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -252665,23 +208794,18 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1026420u, new Vector3(-102.73901f, 116.043f, -48.142273f), 622); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1026420u, new Vector3(-102.73901f, 116.043f, -48.142273f), 622); obj72.Steps = list99; reference77 = obj72; - num++; - ref QuestSequence reference78 = ref span94[num]; + ref QuestSequence reference78 = ref span21[4]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, @@ -252696,16 +208820,13 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list101)[0] = "plogon_enjoyer"; questRoot12.Author = list101; - index = 5; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference79 = ref span102[num]; + num = 5; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span22 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference79 = ref span22[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -252713,9 +208834,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026421u, new Vector3(-779.7818f, 127.269035f, 129.74744f), 622) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026421u, new Vector3(-779.7818f, 127.269035f, 129.74744f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeDhoroIloh, SkipConditions = new SkipConditions @@ -252733,18 +208852,15 @@ public static class AssemblyQuestLoader }; obj74.Steps = list103; reference79 = obj74; - num++; - ref QuestSequence reference80 = ref span102[num]; + ref QuestSequence reference80 = ref span22[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -252755,8 +208871,7 @@ public static class AssemblyQuestLoader }; obj75.Steps = list104; reference80 = obj75; - num++; - ref QuestSequence reference81 = ref span102[num]; + ref QuestSequence reference81 = ref span22[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -252764,9 +208879,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1026425u, new Vector3(-72.129456f, 15.000005f, 70.450806f), 628) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1026425u, new Vector3(-72.129456f, 15.000005f, 70.450806f), 628) { AethernetShortcut = new AethernetShortcut { @@ -252776,22 +208889,18 @@ public static class AssemblyQuestLoader }; obj76.Steps = list105; reference81 = obj76; - num++; - ref QuestSequence reference82 = ref span102[num]; + ref QuestSequence reference82 = ref span22[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj77.Steps = list106; reference82 = obj77; - num++; - ref QuestSequence reference83 = ref span102[num]; + ref QuestSequence reference83 = ref span22[4]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -252799,9 +208908,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - ref QuestStep reference84 = ref span107[index2]; + ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list107)[0]; QuestStep obj79 = new QuestStep(EInteractionType.CompleteQuest, 1026426u, new Vector3(-81.498474f, 11.82907f, -155.53528f), 628) { AethernetShortcut = new AethernetShortcut @@ -252813,9 +208920,7 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL240_03164_Q1_000_000") @@ -252831,30 +208936,24 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot13.Author = list109; - index = 5; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference85 = ref span110[num]; + num = 5; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span23 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference85 = ref span23[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj80.Steps = list111; reference85 = obj80; - num++; - ref QuestSequence reference86 = ref span110[num]; + ref QuestSequence reference86 = ref span23[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -252862,9 +208961,8 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) + Span span24 = CollectionsMarshal.AsSpan(list112); + span24[0] = new QuestStep(EInteractionType.Interact, 1025137u, new Vector3(281.66626f, 16.350018f, 846.89087f), 613) { TargetTerritoryId = (ushort)764, Fly = true, @@ -252875,30 +208973,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - index2++; - span112[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span24[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj81.Steps = list112; reference86 = obj81; - num++; - ref QuestSequence reference87 = ref span110[num]; + ref QuestSequence reference87 = ref span23[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj82.Steps = list113; reference87 = obj82; - num++; - ref QuestSequence reference88 = ref span110[num]; + ref QuestSequence reference88 = ref span23[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -252906,9 +208999,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Duty, null, null, 613) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Duty, null, null, 613) { DutyOptions = new DutyOptions { @@ -252917,18 +209008,15 @@ public static class AssemblyQuestLoader }; obj83.Steps = list114; reference88 = obj83; - num++; - ref QuestSequence reference89 = ref span110[num]; + ref QuestSequence reference89 = ref span23[4]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f, NextQuestId = new QuestId(3166) @@ -252942,16 +209030,13 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "liza"; + CollectionsMarshal.AsSpan(list116)[0] = "liza"; questRoot14.Author = list116; - index = 6; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference90 = ref span117[num]; + num = 6; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span25 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference90 = ref span25[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -252959,26 +209044,22 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026581u, new Vector3(798.4894f, -0.079232015f, -300.67908f), 613) { StopDistance = 6f }; obj85.Steps = list118; reference90 = obj85; - num++; - ref QuestSequence reference91 = ref span117[num]; + ref QuestSequence reference91 = ref span25[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)764, Fly = true, @@ -252989,12 +209070,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyPrice } }; - num2++; - span119[num2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + span26[1] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj86.Steps = list119; reference91 = obj86; - num++; - ref QuestSequence reference92 = ref span117[num]; + ref QuestSequence reference92 = ref span25[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -253002,68 +209081,49 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1026480u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj87.Steps = list120; reference92 = obj87; - num++; - ref QuestSequence reference93 = ref span117[num]; + ref QuestSequence reference93 = ref span25[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list121 = new List(index2); - CollectionsMarshal.SetCount(list121, index2); - Span span121 = CollectionsMarshal.AsSpan(list121); - num2 = 0; - ref QuestStep reference94 = ref span121[num2]; + num2 = 3; + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + Span span27 = CollectionsMarshal.AsSpan(list121); + ref QuestStep reference94 = ref span27[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1028803u, new Vector3(8.804443f, -90f, -470.63403f), 764); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list122; reference94 = questStep6; - num2++; - ref QuestStep reference95 = ref span121[num2]; + ref QuestStep reference95 = ref span27[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list123; - num4 = 1; - List list124 = new List(num4); - CollectionsMarshal.SetCount(list124, num4); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - span124[num3] = new DialogueChoice + num3 = 1; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDY332_03166_Q2_000_000"), @@ -253071,31 +209131,23 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list124; reference95 = questStep7; - num2++; - ref QuestStep reference96 = ref span121[num2]; + ref QuestStep reference96 = ref span27[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list125; reference96 = questStep8; obj88.Steps = list121; reference93 = obj88; - num++; - ref QuestSequence reference97 = ref span117[num]; + ref QuestSequence reference97 = ref span25[4]; QuestSequence obj89 = new QuestSequence { Sequence = 4 @@ -253103,23 +209155,18 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1028806u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1028806u, new Vector3(61.997314f, -90.00002f, -478.14148f), 764); obj89.Steps = list126; reference97 = obj89; - num++; - ref QuestSequence reference98 = ref span117[num]; + ref QuestSequence reference98 = ref span25[5]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu, NextQuestId = new QuestId(3165) @@ -253133,16 +209180,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot15.Author = list128; - index = 8; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference99 = ref span129[num]; + num = 8; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span31 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference99 = ref span31[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -253150,26 +209194,21 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) { StopDistance = 5f }; obj91.Steps = list130; reference99 = obj91; - num++; - ref QuestSequence reference100 = ref span129[num]; + ref QuestSequence reference100 = ref span31[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -253179,8 +209218,7 @@ public static class AssemblyQuestLoader }; obj92.Steps = list131; reference100 = obj92; - num++; - ref QuestSequence reference101 = ref span129[num]; + ref QuestSequence reference101 = ref span31[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -253188,9 +209226,7 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Duty, null, null, 628) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Duty, null, null, 628) { DutyOptions = new DutyOptions { @@ -253199,18 +209235,15 @@ public static class AssemblyQuestLoader }; obj93.Steps = list132; reference101 = obj93; - num++; - ref QuestSequence reference102 = ref span129[num]; + ref QuestSequence reference102 = ref span31[3]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -253223,8 +209256,7 @@ public static class AssemblyQuestLoader }; obj94.Steps = list133; reference102 = obj94; - num++; - ref QuestSequence reference103 = ref span129[num]; + ref QuestSequence reference103 = ref span31[4]; QuestSequence obj95 = new QuestSequence { Sequence = 4 @@ -253232,9 +209264,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1024351u, new Vector3(-36.270752f, 5.9819617f, -152.36133f), 628) { AethernetShortcut = new AethernetShortcut { @@ -253244,39 +209274,30 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference103 = obj95; - num++; - ref QuestSequence reference104 = ref span129[num]; + ref QuestSequence reference104 = ref span31[5]; QuestSequence obj96 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref QuestStep reference105 = ref span135[num2]; + num2 = 2; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span32 = CollectionsMarshal.AsSpan(list135); + ref QuestStep reference105 = ref span32[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1019063u, new Vector3(3.3416748f, -6.6541724E-11f, -67.73486f), 628); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list136; reference105 = questStep9; - num2++; - ref QuestStep reference106 = ref span135[num2]; + ref QuestStep reference106 = ref span32[1]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AethernetShortcut = new AethernetShortcut @@ -253288,25 +209309,18 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list137; reference106 = obj97; obj96.Steps = list135; reference104 = obj96; - num++; - ref QuestSequence reference107 = ref span129[num]; + ref QuestSequence reference107 = ref span31[6]; QuestSequence obj98 = new QuestSequence { Sequence = 6 @@ -253314,9 +209328,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - ref QuestStep reference108 = ref span138[index2]; + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list138)[0]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1026369u, new Vector3(-35.080566f, 5.983372f, -152.23932f), 628) { AethernetShortcut = new AethernetShortcut @@ -253325,12 +209337,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRakuzaDistrict } }; - num4 = 1; - List list139 = new List(num4); - CollectionsMarshal.SetCount(list139, num4); - Span span139 = CollectionsMarshal.AsSpan(list139); - num3 = 0; - span139[num3] = new DialogueChoice + num3 = 1; + List list139 = new List(num3); + CollectionsMarshal.SetCount(list139, num3); + CollectionsMarshal.AsSpan(list139)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB751_03167_Q1_000_000"), @@ -253340,18 +209350,15 @@ public static class AssemblyQuestLoader reference108 = obj99; obj98.Steps = list138; reference107 = obj98; - num++; - ref QuestSequence reference109 = ref span129[num]; + ref QuestSequence reference109 = ref span31[7]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(3168) @@ -253365,16 +209372,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot16.Author = list141; - index = 7; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference110 = ref span142[num]; + num = 7; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span35 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference110 = ref span35[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -253382,40 +209386,32 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025885u, new Vector3(26.443848f, 6.024561f, -118.57788f), 628) { StopDistance = 5f }; obj101.Steps = list143; reference110 = obj101; - num++; - ref QuestSequence reference111 = ref span142[num]; + ref QuestSequence reference111 = ref span35[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - ref QuestStep reference112 = ref span144[num2]; + ref QuestStep reference112 = ref span36[2]; 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); - Span span145 = CollectionsMarshal.AsSpan(list145); - num4 = 0; - span145[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB752_03168_Q1_000_000"), @@ -253425,8 +209421,7 @@ public static class AssemblyQuestLoader reference112 = questStep10; obj102.Steps = list144; reference111 = obj102; - num++; - ref QuestSequence reference113 = ref span142[num]; + ref QuestSequence reference113 = ref span35[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -253434,9 +209429,7 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.Interact, 1019033u, new Vector3(52.048462f, 8.02f, 140.55078f), 628) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1019033u, new Vector3(52.048462f, 8.02f, 140.55078f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -253447,20 +209440,17 @@ public static class AssemblyQuestLoader }; obj103.Steps = list146; reference113 = obj103; - num++; - ref QuestSequence reference114 = ref span142[num]; + ref QuestSequence reference114 = ref span35[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -253470,8 +209460,7 @@ public static class AssemblyQuestLoader }; obj104.Steps = list147; reference114 = obj104; - num++; - ref QuestSequence reference115 = ref span142[num]; + ref QuestSequence reference115 = ref span35[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -253479,9 +209468,7 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1026350u, new Vector3(512.90137f, 0.8484344f, 148.91272f), 613) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1026350u, new Vector3(512.90137f, 0.8484344f, 148.91272f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -253492,25 +209479,21 @@ public static class AssemblyQuestLoader }; obj105.Steps = list148; reference115 = obj105; - num++; - ref QuestSequence reference116 = ref span142[num]; + ref QuestSequence reference116 = ref span35[5]; QuestSequence obj106 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj106.Steps = list149; reference116 = obj106; - num++; - ref QuestSequence reference117 = ref span142[num]; + ref QuestSequence reference117 = ref span35[6]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -253518,9 +209501,7 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026766u, new Vector3(52.384155f, 10.503965f, -154.03986f), 628) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026766u, new Vector3(52.384155f, 10.503965f, -154.03986f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, NextQuestId = new QuestId(4542) @@ -253534,26 +209515,21 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "liza"; + CollectionsMarshal.AsSpan(list151)[0] = "liza"; questRoot17.Author = list151; - index = 2; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference118 = ref span152[num]; + num = 2; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span38 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference118 = ref span38[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -253566,8 +209542,7 @@ public static class AssemblyQuestLoader }; obj108.Steps = list153; reference118 = obj108; - num++; - ref QuestSequence reference119 = ref span152[num]; + ref QuestSequence reference119 = ref span38[1]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -253575,9 +209550,7 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.CompleteQuest, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478); + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.CompleteQuest, 1018393u, new Vector3(-60.380005f, 206.50021f, 26.16919f), 478); obj109.Steps = list154; reference119 = obj109; questRoot17.QuestSequence = list152; @@ -253587,30 +209560,24 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot18.Author = list155; - index = 3; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference120 = ref span156[num]; + num = 3; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span39 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference120 = ref span39[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj110.Steps = list157; reference120 = obj110; - num++; - ref QuestSequence reference121 = ref span156[num]; + ref QuestSequence reference121 = ref span39[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -253618,23 +209585,18 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 1026747u, new Vector3(63.126587f, 205.63266f, 22.049255f), 478); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1026747u, new Vector3(63.126587f, 205.63266f, 22.049255f), 478); obj111.Steps = list158; reference121 = obj111; - num++; - ref QuestSequence reference122 = ref span156[num]; + ref QuestSequence reference122 = ref span39[2]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj112.Steps = list159; reference122 = obj112; questRoot18.QuestSequence = list156; @@ -253644,16 +209606,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list160)[0] = "JerryWester"; questRoot19.Author = list160; - index = 3; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference123 = ref span161[num]; + num = 3; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span40 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference123 = ref span40[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -253661,23 +209620,18 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025549u, new Vector3(1.4800415f, -1.1041565E-05f, -11.734253f), 351); obj113.Steps = list162; reference123 = obj113; - num++; - ref QuestSequence reference124 = ref span161[num]; + ref QuestSequence reference124 = ref span40[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -253689,8 +209643,7 @@ public static class AssemblyQuestLoader }; obj114.Steps = list163; reference124 = obj114; - num++; - ref QuestSequence reference125 = ref span161[num]; + ref QuestSequence reference125 = ref span40[2]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -253698,9 +209651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026781u, new Vector3(-478.41614f, 137.42972f, 696.9557f), 399); obj115.Steps = list164; reference125 = obj115; questRoot19.QuestSequence = list161; @@ -253710,30 +209661,24 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list165)[0] = "JerryWester"; questRoot20.Author = list165; - index = 4; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference126 = ref span166[num]; + num = 4; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span41 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference126 = ref span41[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj116.Steps = list167; reference126 = obj116; - num++; - ref QuestSequence reference127 = ref span166[num]; + ref QuestSequence reference127 = ref span41[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -253741,20 +209686,16 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - ref QuestStep reference128 = ref span168[index2]; + ref QuestStep reference128 = ref CollectionsMarshal.AsSpan(list168)[0]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; - num4 = 1; - List list169 = new List(num4); - CollectionsMarshal.SetCount(list169, num4); - Span span169 = CollectionsMarshal.AsSpan(list169); - num3 = 0; - span169[num3] = new DialogueChoice + num3 = 1; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF102_03180_Q1_000_021") @@ -253763,25 +209704,21 @@ public static class AssemblyQuestLoader reference128 = obj118; obj117.Steps = list168; reference127 = obj117; - num++; - ref QuestSequence reference129 = ref span166[num]; + ref QuestSequence reference129 = ref span41[2]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj119.Steps = list170; reference129 = obj119; - num++; - ref QuestSequence reference130 = ref span166[num]; + ref QuestSequence reference130 = ref span41[3]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -253789,9 +209726,8 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference131 = ref span171[index2]; + Span span42 = CollectionsMarshal.AsSpan(list171); + ref QuestStep reference131 = ref span42[0]; QuestStep obj121 = new QuestStep(EInteractionType.Interact, 1024974u, new Vector3(-10.330383f, 0.19997318f, 12.893799f), 759) { TargetTerritoryId = (ushort)744, @@ -253800,17 +209736,14 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span172 = CollectionsMarshal.AsSpan(list172); - num4 = 0; - span172[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF102_03180_EVENTAREA_WARP_000_043") }; obj121.DialogueChoices = list172; reference131 = obj121; - index2++; - span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); + span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1026784u, new Vector3(-0.015319824f, 0.021091362f, -3.0060425f), 744); obj120.Steps = list171; reference130 = obj120; questRoot20.QuestSequence = list166; @@ -253820,30 +209753,24 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - Span span173 = CollectionsMarshal.AsSpan(list173); - index = 0; - span173[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list173)[0] = "JerryWester"; questRoot21.Author = list173; - index = 3; - List list174 = new List(index); - CollectionsMarshal.SetCount(list174, index); - Span span174 = CollectionsMarshal.AsSpan(list174); - num = 0; - ref QuestSequence reference132 = ref span174[num]; + num = 3; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + Span span43 = CollectionsMarshal.AsSpan(list174); + ref QuestSequence reference132 = ref span43[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj122.Steps = list175; reference132 = obj122; - num++; - ref QuestSequence reference133 = ref span174[num]; + ref QuestSequence reference133 = ref span43[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -253851,20 +209778,16 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - ref QuestStep reference134 = ref span176[index2]; + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list176)[0]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1026261u, new Vector3(337.78882f, 54.860683f, -531.2734f), 614) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; - num4 = 1; - List list177 = new List(num4); - CollectionsMarshal.SetCount(list177, num4); - Span span177 = CollectionsMarshal.AsSpan(list177); - num3 = 0; - span177[num3] = new DialogueChoice + num3 = 1; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + CollectionsMarshal.AsSpan(list177)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF103_03181_Q1_000_031") @@ -253873,18 +209796,15 @@ public static class AssemblyQuestLoader reference134 = obj124; obj123.Steps = list176; reference133 = obj123; - num++; - ref QuestSequence reference135 = ref span174[num]; + ref QuestSequence reference135 = ref span43[2]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj125.Steps = list178; reference135 = obj125; questRoot21.QuestSequence = list174; @@ -253894,16 +209814,13 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list179)[0] = "JerryWester"; questRoot22.Author = list179; - index = 8; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference136 = ref span180[num]; + num = 8; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span44 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference136 = ref span44[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 @@ -253911,23 +209828,18 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1025597u, new Vector3(0.19836426f, 0.021091362f, -3.0060425f), 744); obj126.Steps = list181; reference136 = obj126; - num++; - ref QuestSequence reference137 = ref span180[num]; + ref QuestSequence reference137 = ref span44[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list182 = new List(index2); - CollectionsMarshal.SetCount(list182, index2); - Span span182 = CollectionsMarshal.AsSpan(list182); - num2 = 0; - ref QuestStep reference138 = ref span182[num2]; + num2 = 1; + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list182)[0]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true, @@ -253936,9 +209848,7 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span183 = CollectionsMarshal.AsSpan(list183); - num4 = 0; - span183[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_021") @@ -253947,13 +209857,11 @@ public static class AssemblyQuestLoader reference138 = obj128; obj127.Steps = list182; reference137 = obj127; - num++; - span180[num] = new QuestSequence + span44[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference139 = ref span180[num]; + ref QuestSequence reference139 = ref span44[3]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -253961,19 +209869,15 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - ref QuestStep reference140 = ref span184[index2]; + ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list184)[0]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1026805u, new Vector3(-477.77527f, 107.62999f, 102.433716f), 829) { StopDistance = 7f }; - num4 = 1; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = new DialogueChoice + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_031") @@ -253982,22 +209886,18 @@ public static class AssemblyQuestLoader reference140 = obj130; obj129.Steps = list184; reference139 = obj129; - num++; - ref QuestSequence reference141 = ref span180[num]; + ref QuestSequence reference141 = ref span44[4]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj131.Steps = list186; reference141 = obj131; - num++; - ref QuestSequence reference142 = ref span180[num]; + ref QuestSequence reference142 = ref span44[5]; QuestSequence obj132 = new QuestSequence { Sequence = 5 @@ -254005,9 +209905,8 @@ public static class AssemblyQuestLoader num2 = 3; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - ref QuestStep reference143 = ref span187[index2]; + Span span45 = CollectionsMarshal.AsSpan(list187); + ref QuestStep reference143 = ref span45[0]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 1026821u, new Vector3(4.2266846f, -3.7252903E-09f, 5.1116943f), 829) { StopDistance = 4f @@ -254015,26 +209914,18 @@ public static class AssemblyQuestLoader num3 = 6; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - 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); + 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); obj133.CompletionQuestVariablesFlags = list188; - num4 = 1; - List list189 = new List(num4); - CollectionsMarshal.SetCount(list189, num4); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - span189[num3] = new DialogueChoice + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q3_000_000"), @@ -254042,8 +209933,7 @@ public static class AssemblyQuestLoader }; obj133.DialogueChoices = list189; reference143 = obj133; - index2++; - ref QuestStep reference144 = ref span187[index2]; + ref QuestStep reference144 = ref span45[1]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1026817u, new Vector3(-3.7080078f, -1.1059713E-09f, 5.2643433f), 829) { StopDistance = 5f @@ -254051,26 +209941,18 @@ public static class AssemblyQuestLoader num3 = 6; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - 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); + 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); obj134.CompletionQuestVariablesFlags = list190; - num4 = 1; - List list191 = new List(num4); - CollectionsMarshal.SetCount(list191, num4); - Span span191 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span191[num3] = new DialogueChoice + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q2_000_000"), @@ -254078,32 +209960,23 @@ public static class AssemblyQuestLoader }; obj134.DialogueChoices = list191; reference144 = obj134; - index2++; - ref QuestStep reference145 = ref span187[index2]; + ref QuestStep reference145 = ref span45[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list192; - num4 = 1; - List list193 = new List(num4); - CollectionsMarshal.SetCount(list193, num4); - Span span193 = CollectionsMarshal.AsSpan(list193); - num3 = 0; - span193[num3] = new DialogueChoice + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + CollectionsMarshal.AsSpan(list193)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDF104_03182_Q1_000_000"), @@ -254113,25 +209986,21 @@ public static class AssemblyQuestLoader reference145 = questStep11; obj132.Steps = list187; reference142 = obj132; - num++; - ref QuestSequence reference146 = ref span180[num]; + ref QuestSequence reference146 = ref span44[6]; QuestSequence obj135 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj135.Steps = list194; reference146 = obj135; - num++; - ref QuestSequence reference147 = ref span180[num]; + ref QuestSequence reference147 = ref span44[7]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -254139,9 +210008,7 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) { StopDistance = 6f }; @@ -254154,35 +210021,29 @@ public static class AssemblyQuestLoader num = 2; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "liza"; - index++; - span196[index] = "JerryWester"; + Span span49 = CollectionsMarshal.AsSpan(list196); + span49[0] = "liza"; + span49[1] = "JerryWester"; questRoot23.Author = list196; - index = 5; - List list197 = new List(index); - CollectionsMarshal.SetCount(list197, index); - Span span197 = CollectionsMarshal.AsSpan(list197); - num = 0; - ref QuestSequence reference148 = ref span197[num]; + num = 5; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span50 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference148 = ref span50[0]; QuestSequence obj137 = 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, 1026823u, new Vector3(-468.925f, 107.62999f, 130.9071f), 829) + 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) { StopDistance = 6f }; obj137.Steps = list198; reference148 = obj137; - num++; - ref QuestSequence reference149 = ref span197[num]; + ref QuestSequence reference149 = ref span50[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -254190,9 +210051,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.Duty, null, null, 829) + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Duty, null, null, 829) { DutyOptions = new DutyOptions { @@ -254202,30 +210061,25 @@ public static class AssemblyQuestLoader }; obj138.Steps = list199; reference149 = obj138; - num++; - span197[num] = new QuestSequence + span50[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference150 = ref span197[num]; + ref QuestSequence reference150 = ref span50[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj139.Steps = list200; reference150 = obj139; - num++; - ref QuestSequence reference151 = ref span197[num]; + ref QuestSequence reference151 = ref span50[4]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue @@ -254233,15 +210087,13 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span51 = CollectionsMarshal.AsSpan(list201); + span51[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); + span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); obj140.Steps = list201; reference151 = obj140; questRoot23.QuestSequence = list197; @@ -254251,30 +210103,24 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "liza"; + CollectionsMarshal.AsSpan(list202)[0] = "liza"; questRoot24.Author = list202; - index = 3; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference152 = ref span203[num]; + num = 3; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span52 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference152 = ref span52[0]; QuestSequence obj141 = 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, 1026846u, new Vector3(-1.6022339f, 0f, -9.658997f), 351); + 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); obj141.Steps = list204; reference152 = obj141; - num++; - ref QuestSequence reference153 = ref span203[num]; + ref QuestSequence reference153 = ref span52[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -254282,36 +210128,30 @@ public static class AssemblyQuestLoader num2 = 3; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + Span span53 = CollectionsMarshal.AsSpan(list205); + span53[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span205[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span53[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - index2++; - span205[index2] = new QuestStep(EInteractionType.Interact, 1026794u, new Vector3(124.193115f, -15.239566f, -424.30762f), 156) + span53[2] = new QuestStep(EInteractionType.Interact, 1026794u, new Vector3(124.193115f, -15.239566f, -424.30762f), 156) { Fly = true }; obj142.Steps = list205; reference153 = obj142; - num++; - ref QuestSequence reference154 = ref span203[num]; + ref QuestSequence reference154 = ref span52[2]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj143.Steps = list206; reference154 = obj143; questRoot24.QuestSequence = list203; @@ -254321,16 +210161,13 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot25.Author = list207; - index = 5; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference155 = ref span208[num]; + num = 5; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span54 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference155 = ref span54[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 @@ -254338,26 +210175,22 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { StopDistance = 7f }; obj144.Steps = list209; reference155 = obj144; - num++; - ref QuestSequence reference156 = ref span208[num]; + ref QuestSequence reference156 = ref span54[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference157 = ref span210[num2]; + num2 = 2; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span55 = CollectionsMarshal.AsSpan(list210); + ref QuestStep reference157 = ref span55[0]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { StopDistance = 7f, @@ -254366,43 +210199,34 @@ public static class AssemblyQuestLoader num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span211 = CollectionsMarshal.AsSpan(list211); - num4 = 0; - span211[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDG102_03185_Q1_000_002") }; obj146.DialogueChoices = list211; reference157 = obj146; - num2++; - ref QuestStep reference158 = ref span210[num2]; + ref QuestStep reference158 = ref span55[1]; QuestStep questStep12 = new QuestStep(EInteractionType.SinglePlayerDuty, 1026845u, new Vector3(-476.67664f, 107.63f, 103.74609f), 829); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list212; questStep12.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference158 = questStep12; obj145.Steps = list210; reference156 = obj145; - num++; - span208[num] = new QuestSequence + span54[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference159 = ref span208[num]; + ref QuestSequence reference159 = ref span54[3]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -254410,27 +210234,22 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + CollectionsMarshal.AsSpan(list213)[0] = 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; - num++; - ref QuestSequence reference160 = ref span208[num]; + ref QuestSequence reference160 = ref span54[4]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -254443,16 +210262,13 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - Span span215 = CollectionsMarshal.AsSpan(list215); - index = 0; - span215[index] = "liza"; + CollectionsMarshal.AsSpan(list215)[0] = "liza"; questRoot26.Author = list215; - index = 7; - List list216 = new List(index); - CollectionsMarshal.SetCount(list216, index); - Span span216 = CollectionsMarshal.AsSpan(list216); - num = 0; - ref QuestSequence reference161 = ref span216[num]; + num = 7; + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span57 = CollectionsMarshal.AsSpan(list216); + ref QuestSequence reference161 = ref span57[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -254460,9 +210276,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Kugane, @@ -254476,23 +210290,20 @@ public static class AssemblyQuestLoader }; obj149.Steps = list217; reference161 = obj149; - num++; - ref QuestSequence reference162 = ref span216[num]; + ref QuestSequence reference162 = ref span57[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)628 }; - num2++; - ref QuestStep reference163 = ref span218[num2]; + ref QuestStep reference163 = ref span58[1]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1024157u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f @@ -254500,9 +210311,7 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span219 = CollectionsMarshal.AsSpan(list219); - num4 = 0; - span219[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list219)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI301_03187_Q1_000_000") @@ -254511,13 +210320,11 @@ public static class AssemblyQuestLoader reference163 = obj151; obj150.Steps = list218; reference162 = obj150; - num++; - span216[num] = new QuestSequence + span57[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference164 = ref span216[num]; + ref QuestSequence reference164 = ref span57[3]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -254525,38 +210332,32 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1026968u, new Vector3(-10.635559f, 0.026214104f, 12.924377f), 735) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1026968u, new Vector3(-10.635559f, 0.026214104f, 12.924377f), 735) { StopDistance = 7f }; obj152.Steps = list220; reference164 = obj152; - num++; - ref QuestSequence reference165 = ref span216[num]; + ref QuestSequence reference165 = ref span57[4]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)628 }; - num2++; - span221[num2] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) + span59[1] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; obj153.Steps = list221; reference165 = obj153; - num++; - ref QuestSequence reference166 = ref span216[num]; + ref QuestSequence reference166 = ref span57[5]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -254564,19 +210365,15 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - ref QuestStep reference167 = ref span222[index2]; + ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list222)[0]; QuestStep obj155 = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; - num4 = 1; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span223 = CollectionsMarshal.AsSpan(list223); - num3 = 0; - span223[num3] = new DialogueChoice + num3 = 1; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + CollectionsMarshal.AsSpan(list223)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI301_03187_Q5_000_000") @@ -254585,18 +210382,15 @@ public static class AssemblyQuestLoader reference167 = obj155; obj154.Steps = list222; reference166 = obj154; - num++; - ref QuestSequence reference168 = ref span216[num]; + ref QuestSequence reference168 = ref span57[6]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3188) @@ -254610,16 +210404,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "liza"; + CollectionsMarshal.AsSpan(list225)[0] = "liza"; questRoot27.Author = list225; - index = 8; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference169 = ref span226[num]; + num = 8; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span60 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference169 = ref span60[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -254627,26 +210418,22 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026970u, new Vector3(-58.457336f, 79.05602f, 43.686523f), 628) { StopDistance = 7f }; obj157.Steps = list227; reference169 = obj157; - num++; - ref QuestSequence reference170 = ref span226[num]; + ref QuestSequence reference170 = ref span60[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref QuestStep reference171 = ref span228[num2]; + num2 = 2; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span61 = CollectionsMarshal.AsSpan(list228); + ref QuestStep reference171 = ref span61[0]; QuestStep obj159 = new QuestStep(EInteractionType.Interact, 1024156u, new Vector3(-59.098206f, 79.05602f, 45.303955f), 628) { StopDistance = 7f, @@ -254657,19 +210444,15 @@ public static class AssemblyQuestLoader num3 = 1; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span229 = CollectionsMarshal.AsSpan(list229); - num4 = 0; - span229[num4] = 735; + CollectionsMarshal.AsSpan(list229)[0] = 735; skipStepConditions.InTerritory = list229; skipConditions.StepIf = skipStepConditions; obj159.SkipConditions = skipConditions; reference171 = obj159; - num2++; - span228[num2] = new QuestStep(EInteractionType.Interact, 1026973u, new Vector3(-10.025269f, 0.046870913f, -2.5482788f), 735); + span61[1] = new QuestStep(EInteractionType.Interact, 1026973u, new Vector3(-10.025269f, 0.046870913f, -2.5482788f), 735); obj158.Steps = list228; reference170 = obj158; - num++; - ref QuestSequence reference172 = ref span226[num]; + ref QuestSequence reference172 = ref span60[2]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -254677,51 +210460,43 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1026974u, new Vector3(-10.788147f, 0.04687085f, -4.4404297f), 735) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1026974u, new Vector3(-10.788147f, 0.04687085f, -4.4404297f), 735) { StopDistance = 5f }; obj160.Steps = list230; reference172 = obj160; - num++; - ref QuestSequence reference173 = ref span226[num]; + ref QuestSequence reference173 = ref span60[3]; QuestSequence obj161 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list231 = new List(index2); - CollectionsMarshal.SetCount(list231, index2); - Span span231 = CollectionsMarshal.AsSpan(list231); - num2 = 0; - ref QuestStep reference174 = ref span231[num2]; + num2 = 2; + List list231 = new List(num2); + CollectionsMarshal.SetCount(list231, num2); + Span span62 = CollectionsMarshal.AsSpan(list231); + ref QuestStep reference174 = ref span62[0]; 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(); - num4 = 1; - List list232 = new List(num4); - CollectionsMarshal.SetCount(list232, num4); - Span span232 = CollectionsMarshal.AsSpan(list232); - num3 = 0; - span232[num3] = 628; + num3 = 1; + List list232 = new List(num3); + CollectionsMarshal.SetCount(list232, num3); + CollectionsMarshal.AsSpan(list232)[0] = 628; skipStepConditions2.InTerritory = list232; skipConditions2.StepIf = skipStepConditions2; obj162.SkipConditions = skipConditions2; reference174 = obj162; - num2++; - span231[num2] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) + span62[1] = new QuestStep(EInteractionType.Interact, 1026969u, new Vector3(-55.985413f, 79.05602f, 43.656006f), 628) { StopDistance = 7f }; obj161.Steps = list231; reference173 = obj161; - num++; - ref QuestSequence reference175 = ref span226[num]; + ref QuestSequence reference175 = ref span60[4]; QuestSequence obj163 = new QuestSequence { Sequence = 4 @@ -254729,9 +210504,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference176 = ref span233[index2]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list233)[0]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1026976u, new Vector3(115.12927f, 12.000001f, 71.000244f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -254744,9 +210517,7 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span234 = CollectionsMarshal.AsSpan(list234); - num4 = 0; - span234[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list234)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDI302_03188_Q3_000_000") @@ -254755,18 +210526,15 @@ public static class AssemblyQuestLoader reference176 = obj164; obj163.Steps = list233; reference175 = obj163; - num++; - ref QuestSequence reference177 = ref span226[num]; + ref QuestSequence reference177 = ref span60[5]; QuestSequence obj165 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f, TargetTerritoryId = (ushort)735, @@ -254778,8 +210546,7 @@ public static class AssemblyQuestLoader }; obj165.Steps = list235; reference177 = obj165; - num++; - ref QuestSequence reference178 = ref span226[num]; + ref QuestSequence reference178 = ref span60[6]; QuestSequence obj166 = new QuestSequence { Sequence = 6 @@ -254787,16 +210554,12 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - ref QuestStep reference179 = ref span236[index2]; + ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1026977u, new Vector3(-4.3793945f, -2.5159047E-06f, -6.3325195f), 735); - num4 = 1; - List list237 = new List(num4); - CollectionsMarshal.SetCount(list237, num4); - Span span237 = CollectionsMarshal.AsSpan(list237); - num3 = 0; - span237[num3] = new DialogueChoice + num3 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDI302_03188_Q1_000_000"), @@ -254806,18 +210569,15 @@ public static class AssemblyQuestLoader reference179 = questStep13; obj166.Steps = list236; reference178 = obj166; - num++; - ref QuestSequence reference180 = ref span226[num]; + ref QuestSequence reference180 = ref span60[7]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3189) }; @@ -254830,16 +210590,13 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "liza"; + CollectionsMarshal.AsSpan(list239)[0] = "liza"; questRoot28.Author = list239; - index = 5; - List list240 = new List(index); - CollectionsMarshal.SetCount(list240, index); - Span span240 = CollectionsMarshal.AsSpan(list240); - num = 0; - ref QuestSequence reference181 = ref span240[num]; + num = 5; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span63 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference181 = ref span63[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -254847,23 +210604,18 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735); + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026978u, new Vector3(-9.10968f, -2.9294104E-06f, -7.309082f), 735); obj168.Steps = list241; reference181 = obj168; - num++; - ref QuestSequence reference182 = ref span240[num]; + ref QuestSequence reference182 = ref span63[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list242 = new List(num2); + CollectionsMarshal.SetCount(list242, num2); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Duty, null, null, 735) { DutyOptions = new DutyOptions { @@ -254872,13 +210624,11 @@ public static class AssemblyQuestLoader }; obj169.Steps = list242; reference182 = obj169; - num++; - span240[num] = new QuestSequence + span63[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference183 = ref span240[num]; + ref QuestSequence reference183 = ref span63[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 @@ -254886,37 +210636,31 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.Interact, 1026979u, new Vector3(-12.008911f, 0.046870746f, -1.1750488f), 735) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1026979u, new Vector3(-12.008911f, 0.046870746f, -1.1750488f), 735) { StopDistance = 5f }; obj170.Steps = list243; reference183 = obj170; - num++; - ref QuestSequence reference184 = ref span240[num]; + ref QuestSequence reference184 = ref span63[4]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)628 }; - num2++; - span244[num2] = new QuestStep(EInteractionType.Interact, 1019044u, new Vector3(-51.71283f, 79.05602f, 45.48706f), 628) + span64[1] = new QuestStep(EInteractionType.Interact, 1019044u, new Vector3(-51.71283f, 79.05602f, 45.48706f), 628) { StopDistance = 7f, TargetTerritoryId = (ushort)628 }; - num2++; - span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) + span64[2] = new QuestStep(EInteractionType.CompleteQuest, 1024149u, new Vector3(-42.25226f, 15.000004f, 42.557373f), 628) { StopDistance = 7f }; @@ -254929,16 +210673,13 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "liza"; + CollectionsMarshal.AsSpan(list245)[0] = "liza"; questRoot29.Author = list245; - index = 7; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference185 = ref span246[num]; + num = 7; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span65 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference185 = ref span65[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -254946,32 +210687,25 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj172.Steps = list247; reference185 = obj172; - num++; - span246[num] = new QuestSequence + span65[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference186 = ref span246[num]; + ref QuestSequence reference186 = ref span65[2]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj173.Steps = list248; reference186 = obj173; - num++; - ref QuestSequence reference187 = ref span246[num]; + ref QuestSequence reference187 = ref span65[3]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -254979,30 +210713,24 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj174.Steps = list249; reference187 = obj174; - num++; - ref QuestSequence reference188 = ref span246[num]; + ref QuestSequence reference188 = ref span65[4]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj175.Steps = list250; reference188 = obj175; - num++; - ref QuestSequence reference189 = ref span246[num]; + ref QuestSequence reference189 = ref span65[5]; QuestSequence obj176 = new QuestSequence { Sequence = 5 @@ -255010,28 +210738,24 @@ public static class AssemblyQuestLoader num2 = 2; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) + Span span66 = CollectionsMarshal.AsSpan(list251); + span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-371.6037f, 54.310753f, 428.55798f), 137) { Fly = true }; - index2++; - span251[index2] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); + span66[1] = new QuestStep(EInteractionType.Interact, 1006312u, new Vector3(-369.0395f, 54.28071f, 441.24512f), 137); obj176.Steps = list251; reference189 = obj176; - num++; - ref QuestSequence reference190 = ref span246[num]; + ref QuestSequence reference190 = ref span65[6]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, TargetTerritoryId = (ushort)735, @@ -255042,8 +210766,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeAirship } }; - num2++; - span252[num2] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1026029u, new Vector3(1.3274536f, 0.05124623f, 1.9683228f), 735); obj177.Steps = list252; reference190 = obj177; questRoot29.QuestSequence = list246; @@ -255053,16 +210776,13 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - Span span253 = CollectionsMarshal.AsSpan(list253); - index = 0; - span253[index] = "liza"; + CollectionsMarshal.AsSpan(list253)[0] = "liza"; questRoot30.Author = list253; - index = 6; - List list254 = new List(index); - CollectionsMarshal.SetCount(list254, index); - Span span254 = CollectionsMarshal.AsSpan(list254); - num = 0; - ref QuestSequence reference191 = ref span254[num]; + num = 6; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + Span span68 = CollectionsMarshal.AsSpan(list254); + ref QuestSequence reference191 = ref span68[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 @@ -255070,9 +210790,7 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026928u, new Vector3(-64.34735f, 18.000334f, -11.032288f), 129) + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026928u, new Vector3(-64.34735f, 18.000334f, -11.032288f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -255085,18 +210803,15 @@ public static class AssemblyQuestLoader }; obj178.Steps = list255; reference191 = obj178; - num++; - ref QuestSequence reference192 = ref span254[num]; + ref QuestSequence reference192 = ref span68[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -255107,8 +210822,7 @@ public static class AssemblyQuestLoader }; obj179.Steps = list256; reference192 = obj179; - num++; - ref QuestSequence reference193 = ref span254[num]; + ref QuestSequence reference193 = ref span68[2]; QuestSequence obj180 = new QuestSequence { Sequence = 2 @@ -255116,30 +210830,24 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1026936u, new Vector3(170.85522f, 62.765503f, 275.25745f), 134); + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1026936u, new Vector3(170.85522f, 62.765503f, 275.25745f), 134); obj180.Steps = list257; reference193 = obj180; - num++; - ref QuestSequence reference194 = ref span254[num]; + ref QuestSequence reference194 = ref span68[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj181.Steps = list258; reference194 = obj181; - num++; - ref QuestSequence reference195 = ref span254[num]; + ref QuestSequence reference195 = ref span68[4]; QuestSequence obj182 = new QuestSequence { Sequence = 4 @@ -255147,26 +210855,21 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Interact, 1026930u, new Vector3(-85.404785f, 2.5427969f, 728.542f), 135) + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1026930u, new Vector3(-85.404785f, 2.5427969f, 728.542f), 135) { Fly = true }; obj182.Steps = list259; reference195 = obj182; - num++; - ref QuestSequence reference196 = ref span254[num]; + ref QuestSequence reference196 = ref span68[5]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3193) @@ -255180,16 +210883,13 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - Span span261 = CollectionsMarshal.AsSpan(list261); - index = 0; - span261[index] = "liza"; + CollectionsMarshal.AsSpan(list261)[0] = "liza"; questRoot31.Author = list261; - index = 3; - List list262 = new List(index); - CollectionsMarshal.SetCount(list262, index); - Span span262 = CollectionsMarshal.AsSpan(list262); - num = 0; - ref QuestSequence reference197 = ref span262[num]; + num = 3; + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + Span span69 = CollectionsMarshal.AsSpan(list262); + ref QuestSequence reference197 = ref span69[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -255197,9 +210897,8 @@ public static class AssemblyQuestLoader num2 = 4; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 135) + Span span70 = CollectionsMarshal.AsSpan(list263); + span70[0] = new QuestStep(EInteractionType.EquipItem, null, null, 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, ItemId = 22746u, @@ -255218,8 +210917,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span263[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 135) + span70[1] = new QuestStep(EInteractionType.EquipItem, null, null, 135) { ItemId = 24587u, SkipConditions = new SkipConditions @@ -255233,35 +210931,29 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { StopDistance = 7f, Fly = true }; obj184.Steps = list263; reference197 = obj184; - num++; - ref QuestSequence reference198 = ref span262[num]; + ref QuestSequence reference198 = ref span69[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Action = EAction.WaterCannon }; obj185.Steps = list264; reference198 = obj185; - num++; - ref QuestSequence reference199 = ref span262[num]; + ref QuestSequence reference199 = ref span69[2]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -255269,9 +210961,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - ref QuestStep reference200 = ref span265[index2]; + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list265)[0]; QuestStep obj187 = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -255284,9 +210974,7 @@ public static class AssemblyQuestLoader num3 = 1; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - Span span266 = CollectionsMarshal.AsSpan(list266); - num4 = 0; - span266[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list266)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAOZ010_03193_Q1_100_002") @@ -255303,26 +210991,21 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - Span span267 = CollectionsMarshal.AsSpan(list267); - index = 0; - span267[index] = "liza"; + CollectionsMarshal.AsSpan(list267)[0] = "liza"; questRoot32.Author = list267; - index = 5; - List list268 = new List(index); - CollectionsMarshal.SetCount(list268, index); - Span span268 = CollectionsMarshal.AsSpan(list268); - num = 0; - ref QuestSequence reference201 = ref span268[num]; + num = 5; + List list268 = new List(num); + CollectionsMarshal.SetCount(list268, num); + Span span71 = CollectionsMarshal.AsSpan(list268); + ref QuestSequence reference201 = ref span71[0]; QuestSequence obj188 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list269 = new List(num2); + CollectionsMarshal.SetCount(list269, num2); + ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list269)[0]; QuestStep obj189 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -255338,20 +211021,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list270 = new List(num4); - CollectionsMarshal.SetCount(list270, num4); - Span span270 = CollectionsMarshal.AsSpan(list270); - num3 = 0; - span270[num3] = 131; + num3 = 1; + List list270 = new List(num3); + CollectionsMarshal.SetCount(list270, num3); + CollectionsMarshal.AsSpan(list270)[0] = 131; obj190.InTerritory = list270; skipConditions3.AetheryteShortcutIf = obj190; obj189.SkipConditions = skipConditions3; reference202 = obj189; obj188.Steps = list269; reference201 = obj188; - num++; - ref QuestSequence reference203 = ref span268[num]; + ref QuestSequence reference203 = ref span71[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 @@ -255359,9 +211039,7 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -255372,18 +211050,15 @@ public static class AssemblyQuestLoader }; obj191.Steps = list271; reference203 = obj191; - num++; - ref QuestSequence reference204 = ref span268[num]; + ref QuestSequence reference204 = ref span71[2]; QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list272 = new List(index2); - CollectionsMarshal.SetCount(list272, index2); - Span span272 = CollectionsMarshal.AsSpan(list272); - num2 = 0; - ref QuestStep reference205 = ref span272[num2]; + num2 = 1; + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list272)[0]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2009670u, new Vector3(163.59192f, 3.7078857f, 657.0991f), 141) { StopDistance = 0.5f, @@ -255393,15 +211068,12 @@ public static class AssemblyQuestLoader num3 = 1; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span273 = CollectionsMarshal.AsSpan(list273); - num4 = 0; - span273[num4] = 9836u; + CollectionsMarshal.AsSpan(list273)[0] = 9836u; obj193.KillEnemyDataIds = list273; reference205 = obj193; obj192.Steps = list272; reference204 = obj192; - num++; - ref QuestSequence reference206 = ref span268[num]; + ref QuestSequence reference206 = ref span71[3]; QuestSequence obj194 = new QuestSequence { Sequence = 3 @@ -255409,26 +211081,21 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1026938u, new Vector3(101.27405f, 7.3536396f, 600.2135f), 141) { Fly = true }; obj194.Steps = list274; reference206 = obj194; - num++; - ref QuestSequence reference207 = ref span268[num]; + ref QuestSequence reference207 = ref span71[4]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -255447,16 +211114,13 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "liza"; + CollectionsMarshal.AsSpan(list276)[0] = "liza"; questRoot33.Author = list276; - index = 5; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference208 = ref span277[num]; + num = 5; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span72 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference208 = ref span72[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -255464,9 +211128,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - ref QuestStep reference209 = ref span278[index2]; + ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list278)[0]; QuestStep obj197 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -255481,30 +211143,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list279 = new List(num4); - CollectionsMarshal.SetCount(list279, num4); - Span span279 = CollectionsMarshal.AsSpan(list279); - num3 = 0; - span279[num3] = 131; + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = 131; obj198.InTerritory = list279; skipConditions4.AetheryteShortcutIf = obj198; obj197.SkipConditions = skipConditions4; reference209 = obj197; obj196.Steps = list278; reference208 = obj196; - num++; - ref QuestSequence reference210 = ref span277[num]; + ref QuestSequence reference210 = ref span72[1]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -255515,8 +211172,7 @@ public static class AssemblyQuestLoader }; obj199.Steps = list280; reference210 = obj199; - num++; - ref QuestSequence reference211 = ref span277[num]; + ref QuestSequence reference211 = ref span72[2]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -255524,9 +211180,7 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - ref QuestStep reference212 = ref span281[index2]; + ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list281)[0]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, 2009671u, new Vector3(145.52527f, 9.567322f, 391.10388f), 141) { Fly = true, @@ -255535,29 +211189,23 @@ public static class AssemblyQuestLoader num3 = 1; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - Span span282 = CollectionsMarshal.AsSpan(list282); - num4 = 0; - span282[num4] = 9837u; + CollectionsMarshal.AsSpan(list282)[0] = 9837u; obj201.KillEnemyDataIds = list282; reference212 = obj201; obj200.Steps = list281; reference211 = obj200; - num++; - ref QuestSequence reference213 = ref span277[num]; + ref QuestSequence reference213 = ref span72[3]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj202.Steps = list283; reference213 = obj202; - num++; - ref QuestSequence reference214 = ref span277[num]; + ref QuestSequence reference214 = ref span72[4]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -255565,9 +211213,7 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -255586,26 +211232,21 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - Span span285 = CollectionsMarshal.AsSpan(list285); - index = 0; - span285[index] = "liza"; + CollectionsMarshal.AsSpan(list285)[0] = "liza"; questRoot34.Author = list285; - index = 6; - List list286 = new List(index); - CollectionsMarshal.SetCount(list286, index); - Span span286 = CollectionsMarshal.AsSpan(list286); - num = 0; - ref QuestSequence reference215 = ref span286[num]; + num = 6; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + Span span73 = CollectionsMarshal.AsSpan(list286); + ref QuestSequence reference215 = ref span73[0]; QuestSequence obj204 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list287)[0]; QuestStep obj205 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -255620,20 +211261,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list288 = new List(num4); - CollectionsMarshal.SetCount(list288, num4); - Span span288 = CollectionsMarshal.AsSpan(list288); - num3 = 0; - span288[num3] = 131; + num3 = 1; + List list288 = new List(num3); + CollectionsMarshal.SetCount(list288, num3); + CollectionsMarshal.AsSpan(list288)[0] = 131; obj206.InTerritory = list288; skipConditions5.AetheryteShortcutIf = obj206; obj205.SkipConditions = skipConditions5; reference216 = obj205; obj204.Steps = list287; reference215 = obj204; - num++; - ref QuestSequence reference217 = ref span286[num]; + ref QuestSequence reference217 = ref span73[1]; QuestSequence obj207 = new QuestSequence { Sequence = 1 @@ -255641,9 +211279,7 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.Interact, 1026945u, new Vector3(-108.415405f, 41f, 76.06616f), 131) + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1026945u, new Vector3(-108.415405f, 41f, 76.06616f), 131) { AethernetShortcut = new AethernetShortcut { @@ -255653,18 +211289,15 @@ public static class AssemblyQuestLoader }; obj207.Steps = list289; reference217 = obj207; - num++; - ref QuestSequence reference218 = ref span286[num]; + ref QuestSequence reference218 = ref span73[2]; QuestSequence obj208 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -255675,8 +211308,7 @@ public static class AssemblyQuestLoader }; obj208.Steps = list290; reference218 = obj208; - num++; - ref QuestSequence reference219 = ref span286[num]; + ref QuestSequence reference219 = ref span73[3]; QuestSequence obj209 = new QuestSequence { Sequence = 3 @@ -255684,9 +211316,7 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - ref QuestStep reference220 = ref span291[index2]; + ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list291)[0]; QuestStep obj210 = new QuestStep(EInteractionType.Combat, null, new Vector3(363.6008f, 83.40785f, 92.904495f), 140) { StopDistance = 0.5f, @@ -255695,34 +211325,28 @@ public static class AssemblyQuestLoader num3 = 2; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span292 = CollectionsMarshal.AsSpan(list292); - num4 = 0; - span292[num4] = 9838u; - num4++; - span292[num4] = 9839u; + Span span74 = CollectionsMarshal.AsSpan(list292); + span74[0] = 9838u; + span74[1] = 9839u; obj210.KillEnemyDataIds = list292; reference220 = obj210; obj209.Steps = list291; reference219 = obj209; - num++; - ref QuestSequence reference221 = ref span286[num]; + ref QuestSequence reference221 = ref span73[4]; QuestSequence obj211 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj211.Steps = list293; reference221 = obj211; - num++; - ref QuestSequence reference222 = ref span286[num]; + ref QuestSequence reference222 = ref span73[5]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue @@ -255730,9 +211354,7 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -255751,26 +211373,21 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; questRoot35.Author = list295; - index = 4; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference223 = ref span296[num]; + num = 4; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span75 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference223 = ref span75[0]; QuestSequence obj213 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list297)[0]; QuestStep obj214 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -255785,20 +211402,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list298 = new List(num4); - CollectionsMarshal.SetCount(list298, num4); - Span span298 = CollectionsMarshal.AsSpan(list298); - num3 = 0; - span298[num3] = 131; + num3 = 1; + List list298 = new List(num3); + CollectionsMarshal.SetCount(list298, num3); + CollectionsMarshal.AsSpan(list298)[0] = 131; obj215.InTerritory = list298; skipConditions6.AetheryteShortcutIf = obj215; obj214.SkipConditions = skipConditions6; reference224 = obj214; obj213.Steps = list297; reference223 = obj213; - num++; - ref QuestSequence reference225 = ref span296[num]; + ref QuestSequence reference225 = ref span75[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -255806,9 +211420,7 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - ref QuestStep reference226 = ref span299[index2]; + ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list299)[0]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, 1026951u, new Vector3(196.67346f, 52.774567f, -38.895264f), 140) { Fly = true, @@ -255818,16 +211430,12 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - Span span300 = CollectionsMarshal.AsSpan(list300); - num4 = 0; - span300[num4] = 9840u; + CollectionsMarshal.AsSpan(list300)[0] = 9840u; obj217.KillEnemyDataIds = list300; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - Span span301 = CollectionsMarshal.AsSpan(list301); - num3 = 0; - span301[num3] = new DialogueChoice + num3 = 1; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_JOBAOZ400_03197_Q1_000_013") @@ -255836,22 +211444,18 @@ public static class AssemblyQuestLoader reference226 = obj217; obj216.Steps = list299; reference225 = obj216; - num++; - ref QuestSequence reference227 = ref span296[num]; + ref QuestSequence reference227 = ref span75[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj218.Steps = list302; reference227 = obj218; - num++; - ref QuestSequence reference228 = ref span296[num]; + ref QuestSequence reference228 = ref span75[3]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -255859,9 +211463,7 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026953u, new Vector3(65.59851f, 14.005001f, 91.75244f), 131) + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026953u, new Vector3(65.59851f, 14.005001f, 91.75244f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -255880,26 +211482,21 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span304 = CollectionsMarshal.AsSpan(list304); - index = 0; - span304[index] = "liza"; + CollectionsMarshal.AsSpan(list304)[0] = "liza"; questRoot36.Author = list304; - index = 4; - List list305 = new List(index); - CollectionsMarshal.SetCount(list305, index); - Span span305 = CollectionsMarshal.AsSpan(list305); - num = 0; - ref QuestSequence reference229 = ref span305[num]; + num = 4; + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + Span span76 = CollectionsMarshal.AsSpan(list305); + ref QuestSequence reference229 = ref span76[0]; QuestSequence obj220 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + ref QuestStep reference230 = ref CollectionsMarshal.AsSpan(list306)[0]; QuestStep obj221 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { StopDistance = 5f, @@ -255918,17 +211515,14 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - Span span307 = CollectionsMarshal.AsSpan(list307); - num4 = 0; - span307[num4] = 131; + CollectionsMarshal.AsSpan(list307)[0] = 131; obj222.InTerritory = list307; skipConditions7.AetheryteShortcutIf = obj222; obj221.SkipConditions = skipConditions7; reference230 = obj221; obj220.Steps = list306; reference229 = obj220; - num++; - ref QuestSequence reference231 = ref span305[num]; + ref QuestSequence reference231 = ref span76[1]; QuestSequence obj223 = new QuestSequence { Sequence = 1 @@ -255936,26 +211530,21 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1026955u, new Vector3(-10.055725f, 47f, -29.800903f), 147) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1026955u, new Vector3(-10.055725f, 47f, -29.800903f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj223.Steps = list308; reference231 = obj223; - num++; - ref QuestSequence reference232 = ref span305[num]; + ref QuestSequence reference232 = ref span76[2]; QuestSequence obj224 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -255966,8 +211555,7 @@ public static class AssemblyQuestLoader }; obj224.Steps = list309; reference232 = obj224; - num++; - ref QuestSequence reference233 = ref span305[num]; + ref QuestSequence reference233 = ref span76[3]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -255975,9 +211563,7 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { NextQuestId = new QuestId(3199) }; @@ -255990,26 +211576,21 @@ public static class AssemblyQuestLoader num = 1; List list311 = new List(num); CollectionsMarshal.SetCount(list311, num); - Span span311 = CollectionsMarshal.AsSpan(list311); - index = 0; - span311[index] = "liza"; + CollectionsMarshal.AsSpan(list311)[0] = "liza"; questRoot37.Author = list311; - index = 2; - List list312 = new List(index); - CollectionsMarshal.SetCount(list312, index); - Span span312 = CollectionsMarshal.AsSpan(list312); - num = 0; - ref QuestSequence reference234 = ref span312[num]; + num = 2; + List list312 = new List(num); + CollectionsMarshal.SetCount(list312, num); + Span span77 = CollectionsMarshal.AsSpan(list312); + ref QuestSequence reference234 = ref span77[0]; QuestSequence obj226 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list313 = new List(num2); + CollectionsMarshal.SetCount(list313, num2); + ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list313)[0]; QuestStep obj227 = new QuestStep(EInteractionType.AcceptQuest, 1026924u, new Vector3(64.46936f, 14.005002f, 88.70068f), 131) { StopDistance = 5f, @@ -256025,20 +211606,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list314 = new List(num4); - CollectionsMarshal.SetCount(list314, num4); - Span span314 = CollectionsMarshal.AsSpan(list314); - num3 = 0; - span314[num3] = 131; + num3 = 1; + List list314 = new List(num3); + CollectionsMarshal.SetCount(list314, num3); + CollectionsMarshal.AsSpan(list314)[0] = 131; obj228.InTerritory = list314; skipConditions8.AetheryteShortcutIf = obj228; obj227.SkipConditions = skipConditions8; reference235 = obj227; obj226.Steps = list313; reference234 = obj226; - num++; - ref QuestSequence reference236 = ref span312[num]; + ref QuestSequence reference236 = ref span77[1]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue @@ -256046,9 +211624,7 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(3732) @@ -256066,16 +211642,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Starr"; + CollectionsMarshal.AsSpan(list)[0] = "Starr"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -256083,9 +211656,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -256098,18 +211669,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -256126,16 +211694,13 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - index = 0; - span5[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list5)[0] = "plogon_enjoyer"; questRoot2.Author = list5; - index = 4; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - ref QuestSequence reference3 = ref span6[num]; + num = 4; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestSequence reference3 = ref span2[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -256143,9 +211708,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - ref QuestStep reference4 = ref span7[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list7)[0]; QuestStep obj4 = new QuestStep(EInteractionType.AcceptQuest, 1006747u, new Vector3(-20.828613f, 29.999964f, -2.4262085f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -256160,11 +211723,9 @@ public static class AssemblyQuestLoader int num3 = 2; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span8 = CollectionsMarshal.AsSpan(list8); - int num4 = 0; - span8[num4] = 130; - num4++; - span8[num4] = 131; + Span span3 = CollectionsMarshal.AsSpan(list8); + span3[0] = 130; + span3[1] = 131; skipAetheryteCondition.InTerritory = list8; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; skipConditions.AethernetShortcutIf = new SkipAetheryteCondition @@ -256175,18 +211736,15 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list7; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span6[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -256196,8 +211754,7 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span6[num]; + ref QuestSequence reference6 = ref span2[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 @@ -256205,9 +211762,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 1028092u, new Vector3(213.58044f, 54.47546f, 228.19861f), 140) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1028092u, new Vector3(213.58044f, 54.47546f, 228.19861f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -256218,18 +211773,15 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span6[num]; + ref QuestSequence reference7 = ref span2[3]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -256247,16 +211799,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list12)[0] = "plogon_enjoyer"; questRoot3.Author = list12; - index = 5; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference8 = ref span13[num]; + num = 5; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span4 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference8 = ref span4[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -256264,9 +211813,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - ref QuestStep reference9 = ref span14[index2]; + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list14)[0]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -256278,14 +211825,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + Span span5 = CollectionsMarshal.AsSpan(list15); + span5[0] = 130; + span5[1] = 131; skipAetheryteCondition2.InTerritory = list15; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions2.AethernetShortcutIf = new SkipAetheryteCondition @@ -256296,36 +211841,31 @@ public static class AssemblyQuestLoader reference9 = obj9; obj8.Steps = list14; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span13[num]; + ref QuestSequence reference10 = ref span4[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; - num2++; - span16[num2] = new QuestStep(EInteractionType.Interact, 1028410u, new Vector3(38.010254f, 118.13663f, -750.57605f), 620) + span6[1] = new QuestStep(EInteractionType.Interact, 1028410u, new Vector3(38.010254f, 118.13663f, -750.57605f), 620) { Mount = true }; - num2++; - span16[num2] = new QuestStep(EInteractionType.Interact, 1028408u, new Vector3(55.649536f, 118.16888f, -784.2069f), 620) + span6[2] = new QuestStep(EInteractionType.Interact, 1028408u, new Vector3(55.649536f, 118.16888f, -784.2069f), 620) { Fly = true }; obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span4[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -256333,27 +211873,22 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1028411u, new Vector3(-140.67297f, 27.29529f, -408.16364f), 146) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1028411u, new Vector3(-140.67297f, 27.29529f, -408.16364f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span4[3]; QuestSequence obj12 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -256364,8 +211899,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span13[num]; + ref QuestSequence reference13 = ref span4[4]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -256373,9 +211907,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference14 = ref span19[index2]; + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj14 = new QuestStep(EInteractionType.CompleteQuest, 1006749u, new Vector3(-30.47229f, 13.599918f, 95.26196f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -256390,11 +211922,9 @@ public static class AssemblyQuestLoader num3 = 2; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num4 = 0; - span20[num4] = 130; - num4++; - span20[num4] = 131; + Span span7 = CollectionsMarshal.AsSpan(list20); + span7[0] = 130; + span7[1] = 131; skipAetheryteCondition3.InTerritory = list20; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -256412,26 +211942,21 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list21)[0] = "plogon_enjoyer"; questRoot4.Author = list21; - index = 8; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 8; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span8 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span8[0]; QuestSequence obj15 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; QuestStep obj16 = new QuestStep(EInteractionType.AcceptQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, @@ -256444,12 +211969,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list24 = new List(num4); - CollectionsMarshal.SetCount(list24, num4); - Span span24 = CollectionsMarshal.AsSpan(list24); - num3 = 0; - span24[num3] = new DialogueChoice + num3 = 1; + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC003_03212_Q1_000_000"), @@ -256459,8 +211982,7 @@ public static class AssemblyQuestLoader reference16 = obj16; obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference17 = ref span22[num]; + ref QuestSequence reference17 = ref span8[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -256468,38 +211990,32 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.Interact, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.Interact, 1023885u, new Vector3(217.30359f, 7.999984f, 686.427f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj17.Steps = list25; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span22[num]; + ref QuestSequence reference18 = ref span8[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span26[num2] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) + span9[1] = new QuestStep(EInteractionType.Interact, 1030042u, new Vector3(425.10107f, 61.22168f, -42.404846f), 135) { Fly = true }; obj18.Steps = list26; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span22[num]; + ref QuestSequence reference19 = ref span8[3]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -256507,9 +212023,8 @@ public static class AssemblyQuestLoader num2 = 3; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref QuestStep reference20 = ref span27[index2]; + Span span10 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference20 = ref span10[0]; QuestStep obj20 = new QuestStep(EInteractionType.Action, 2010149u, new Vector3(345.3573f, 58.457275f, -63.523376f), 135) { Fly = true, @@ -256518,48 +212033,34 @@ public static class AssemblyQuestLoader num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - 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); + 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); obj20.CompletionQuestVariablesFlags = list28; reference20 = obj20; - index2++; - ref QuestStep reference21 = ref span27[index2]; + ref QuestStep reference21 = ref span10[1]; QuestStep obj21 = new QuestStep(EInteractionType.Action, 2010150u, new Vector3(369.43604f, 64.59143f, -88.85327f), 135) { Fly = true, Action = EAction.HeavySwing }; - 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); + 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); obj21.CompletionQuestVariablesFlags = list29; reference21 = obj21; - index2++; - ref QuestStep reference22 = ref span27[index2]; + ref QuestStep reference22 = ref span10[2]; QuestStep obj22 = new QuestStep(EInteractionType.Action, 2010151u, new Vector3(360.95215f, 69.90149f, -119.06616f), 135) { Fly = true, @@ -256568,42 +212069,32 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - 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); + 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); obj22.CompletionQuestVariablesFlags = list30; reference22 = obj22; obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference23 = ref span22[num]; + ref QuestSequence reference23 = ref span8[4]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj23.Steps = list31; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span22[num]; + ref QuestSequence reference24 = ref span8[5]; QuestSequence obj24 = new QuestSequence { Sequence = 5 @@ -256611,34 +212102,28 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1030044u, new Vector3(435.8739f, 66.317635f, -276.56976f), 135) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1030044u, new Vector3(435.8739f, 66.317635f, -276.56976f), 135) { Fly = true }; obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span22[num]; + ref QuestSequence reference25 = ref span8[6]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - 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) + 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) { DelaySecondsAtStart = 2f, Action = EAction.HeavySwing }; obj25.Steps = list33; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span22[num]; + ref QuestSequence reference26 = ref span8[7]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -256646,9 +212131,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006746u, new Vector3(460.65454f, 8.309061f, 74.47925f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol @@ -256662,26 +212145,22 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list35)[0] = "plogon_enjoyer"; questRoot5.Author = list35; - index = 6; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference27 = ref span36[num]; + num = 6; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span14 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference27 = ref span14[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -256693,12 +212172,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span37[num2] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span15[1] = new QuestStep(EInteractionType.AcceptQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj27.Steps = list37; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span36[num]; + ref QuestSequence reference28 = ref span14[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -256706,35 +212183,29 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1029861u, new Vector3(-753.78046f, 123.728714f, 206.43921f), 400) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1029861u, new Vector3(-753.78046f, 123.728714f, 206.43921f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj28.Steps = list38; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span14[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Land = true }; obj29.Steps = list39; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span36[num]; + ref QuestSequence reference30 = ref span14[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -256742,34 +212213,28 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 1029862u, new Vector3(-93.27844f, 137.46214f, -534.44727f), 400) + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 1029862u, new Vector3(-93.27844f, 137.46214f, -534.44727f), 400) { Fly = true }; obj30.Steps = list40; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span36[num]; + ref QuestSequence reference31 = ref span14[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj31.Steps = list41; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span36[num]; + ref QuestSequence reference32 = ref span14[5]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -256777,15 +212242,13 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.22748f, 222.08781f, 342.82468f), 155) + Span span16 = CollectionsMarshal.AsSpan(list42); + span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.22748f, 222.08781f, 342.82468f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); + span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1006748u, new Vector3(217.88354f, 222f, 345.3269f), 155); obj32.Steps = list42; reference32 = obj32; questRoot5.QuestSequence = list36; @@ -256795,26 +212258,21 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; questRoot6.Author = list43; - index = 7; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 7; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span17 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span17[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -256828,8 +212286,7 @@ public static class AssemblyQuestLoader }; obj33.Steps = list45; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span17[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -256837,9 +212294,7 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1030074u, new Vector3(192.58398f, -2.539064f, 73.59424f), 132) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1030074u, new Vector3(192.58398f, -2.539064f, 73.59424f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -256850,26 +212305,22 @@ public static class AssemblyQuestLoader }; obj34.Steps = list46; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span44[num]; + ref QuestSequence reference35 = ref span17[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list47; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span17[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -256877,9 +212328,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Say, 2010182u, new Vector3(-85.160645f, 6.0578003f, 398.64185f), 152) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Say, 2010182u, new Vector3(-85.160645f, 6.0578003f, 398.64185f), 152) { Fly = true, ChatMessage = new ChatMessage @@ -256889,18 +212338,15 @@ public static class AssemblyQuestLoader }; obj36.Steps = list48; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span44[num]; + ref QuestSequence reference37 = ref span17[4]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, ChatMessage = new ChatMessage @@ -256910,8 +212356,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list49; reference37 = obj37; - num++; - ref QuestSequence reference38 = ref span44[num]; + ref QuestSequence reference38 = ref span17[5]; QuestSequence obj38 = new QuestSequence { Sequence = 5 @@ -256919,9 +212364,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1030081u, new Vector3(29.648315f, -18.800003f, 95.26196f), 132) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Gridania, @@ -256933,18 +212376,15 @@ public static class AssemblyQuestLoader }; obj38.Steps = list50; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span44[num]; + ref QuestSequence reference39 = ref span17[6]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -256957,16 +212397,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list52)[0] = "plogon_enjoyer"; questRoot7.Author = list52; - index = 6; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference40 = ref span53[num]; + num = 6; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span18 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference40 = ref span18[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -256974,32 +212411,27 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) + Span span19 = CollectionsMarshal.AsSpan(list54); + span19[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-137.7745f, 10.010047f, 278.79453f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - index2++; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span19[1] = new QuestStep(EInteractionType.AcceptQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { StopDistance = 4f }; obj40.Steps = list54; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span18[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -257010,8 +212442,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference41 = obj41; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span18[2]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -257019,34 +212450,28 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Interact, 1028419u, new Vector3(-19.058533f, -32.58833f, 307.1488f), 148) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1028419u, new Vector3(-19.058533f, -32.58833f, 307.1488f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj42.Steps = list56; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span18[3]; QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj43.Steps = list57; reference43 = obj43; - num++; - ref QuestSequence reference44 = ref span53[num]; + ref QuestSequence reference44 = ref span18[4]; QuestSequence obj44 = new QuestSequence { Sequence = 4 @@ -257054,32 +212479,27 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1028424u, new Vector3(-19.85205f, -34.365856f, 416.76965f), 148) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1028424u, new Vector3(-19.85205f, -34.365856f, 416.76965f), 148) { StopDistance = 7f }; obj44.Steps = list58; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span53[num]; + ref QuestSequence reference45 = ref span18[5]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; - num2++; - span59[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) + span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1006751u, new Vector3(-139.45221f, 8.712891f, 281.69678f), 153) { StopDistance = 4f }; @@ -257092,16 +212512,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list60)[0] = "plogon_enjoyer"; questRoot8.Author = list60; - index = 8; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference46 = ref span61[num]; + num = 8; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span21 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference46 = ref span21[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -257109,9 +212526,7 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006752u, new Vector3(87.5105f, 18f, 113.725464f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -257122,18 +212537,15 @@ public static class AssemblyQuestLoader }; obj46.Steps = list62; reference46 = obj46; - num++; - ref QuestSequence reference47 = ref span61[num]; + ref QuestSequence reference47 = ref span21[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference48 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 1002279u, new Vector3(-196.8872f, 18.459997f, 59.952637f), 130) { AethernetShortcut = new AethernetShortcut @@ -257142,19 +212554,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - num4 = 2; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new DialogueChoice + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span22 = CollectionsMarshal.AsSpan(list64); + span22[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC007_03216_Q1_000_300"), Answer = new ExcelRef("TEXT_LUCKBC007_03216_A1_000_301") }; - num3++; - span64[num3] = new DialogueChoice + span22[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC007_03216_Q1_000_100"), @@ -257164,8 +212574,7 @@ public static class AssemblyQuestLoader reference48 = obj48; obj47.Steps = list63; reference47 = obj47; - num++; - ref QuestSequence reference49 = ref span61[num]; + ref QuestSequence reference49 = ref span21[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -257173,27 +212582,21 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj49.Steps = list65; reference49 = obj49; - num++; - ref QuestSequence reference50 = ref span61[num]; + ref QuestSequence reference50 = ref span21[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj50.Steps = list66; reference50 = obj50; - num++; - ref QuestSequence reference51 = ref span61[num]; + ref QuestSequence reference51 = ref span21[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -257201,26 +212604,21 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1029868u, new Vector3(-89.21954f, 39.99999f, 106.98096f), 131) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1029868u, new Vector3(-89.21954f, 39.99999f, 106.98096f), 131) { StopDistance = 4f }; obj51.Steps = list67; reference51 = obj51; - num++; - ref QuestSequence reference52 = ref span61[num]; + ref QuestSequence reference52 = ref span21[5]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -257230,8 +212628,7 @@ public static class AssemblyQuestLoader }; obj52.Steps = list68; reference52 = obj52; - num++; - ref QuestSequence reference53 = ref span61[num]; + ref QuestSequence reference53 = ref span21[6]; QuestSequence obj53 = new QuestSequence { Sequence = 6 @@ -257239,23 +212636,18 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1001708u, new Vector3(-250.3548f, 18f, 80.88806f), 130); obj53.Steps = list69; reference53 = obj53; - num++; - ref QuestSequence reference54 = ref span61[num]; + ref QuestSequence reference54 = ref span21[7]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -257272,16 +212664,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list71)[0] = "plogon_enjoyer"; questRoot9.Author = list71; - index = 10; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference55 = ref span72[num]; + num = 10; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span23 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference55 = ref span23[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -257289,9 +212678,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006757u, new Vector3(-4.4709473f, 44.999886f, -250.56848f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -257302,28 +212689,24 @@ public static class AssemblyQuestLoader }; obj55.Steps = list73; reference55 = obj55; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span23[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span74[num2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span24[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj56.Steps = list74; reference56 = obj56; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span23[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -257331,9 +212714,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - ref QuestStep reference58 = ref span75[index2]; + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2009742u, new Vector3(69.565796f, 17.807251f, 234.88208f), 153) { Fly = true, @@ -257343,35 +212724,29 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num4 = 0; - span76[num4] = 10832u; + CollectionsMarshal.AsSpan(list76)[0] = 10832u; obj58.KillEnemyDataIds = list76; reference58 = obj58; obj57.Steps = list75; reference57 = obj57; - num++; - ref QuestSequence reference59 = ref span72[num]; + ref QuestSequence reference59 = ref span23[3]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - num2++; - span77[num2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span25[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj59.Steps = list77; reference59 = obj59; - num++; - ref QuestSequence reference60 = ref span72[num]; + ref QuestSequence reference60 = ref span23[4]; QuestSequence obj60 = new QuestSequence { Sequence = 4 @@ -257379,33 +212754,27 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.Interact, 1031208u, new Vector3(206.80542f, -3.065022f, 43.83911f), 139); obj60.Steps = list78; reference60 = obj60; - num++; - ref QuestSequence reference61 = ref span72[num]; + ref QuestSequence reference61 = ref span23[5]; QuestSequence obj61 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; - num2++; - span79[num2] = new QuestStep(EInteractionType.Interact, 1028097u, new Vector3(-276.56976f, 64.43479f, -161.18109f), 180); + span26[1] = new QuestStep(EInteractionType.Interact, 1028097u, new Vector3(-276.56976f, 64.43479f, -161.18109f), 180); obj61.Steps = list79; reference61 = obj61; - num++; - ref QuestSequence reference62 = ref span72[num]; + ref QuestSequence reference62 = ref span23[6]; QuestSequence obj62 = new QuestSequence { Sequence = 6 @@ -257413,33 +212782,27 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) + Span span27 = CollectionsMarshal.AsSpan(list80); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(207.67957f, -3.224134f, 42.683086f), 139) { Fly = true, AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; - index2++; - span80[index2] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + span27[1] = new QuestStep(EInteractionType.Interact, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); obj62.Steps = list80; reference62 = obj62; - num++; - ref QuestSequence reference63 = ref span72[num]; + ref QuestSequence reference63 = ref span23[7]; QuestSequence obj63 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj63.Steps = list81; reference63 = obj63; - num++; - ref QuestSequence reference64 = ref span72[num]; + ref QuestSequence reference64 = ref span23[8]; QuestSequence obj64 = new QuestSequence { Sequence = 8 @@ -257447,23 +212810,18 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1028373u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1028373u, new Vector3(207.53784f, -3.049824f, 43.22876f), 139); obj64.Steps = list82; reference64 = obj64; - num++; - ref QuestSequence reference65 = ref span72[num]; + ref QuestSequence reference65 = ref span23[9]; QuestSequence obj65 = 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, 1043098u, new Vector3(206.0426f, -3.111818f, 41.94702f), 139); + 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); obj65.Steps = list83; reference65 = obj65; questRoot9.QuestSequence = list72; @@ -257473,16 +212831,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list84)[0] = "plogon_enjoyer"; questRoot10.Author = list84; - index = 8; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference66 = ref span85[num]; + num = 8; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span28 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference66 = ref span28[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -257490,37 +212845,31 @@ public static class AssemblyQuestLoader num2 = 2; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) + Span span29 = CollectionsMarshal.AsSpan(list86); + span29[0] = new QuestStep(EInteractionType.Interact, 1010601u, new Vector3(-14.755493f, 41.39178f, 258.13684f), 137) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - index2++; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span29[1] = new QuestStep(EInteractionType.AcceptQuest, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj66.Steps = list86; reference66 = obj66; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span28[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj67.Steps = list87; reference67 = obj67; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span28[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -257528,40 +212877,33 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 2010173u, new Vector3(-310.0786f, 5.5999756f, -564.0803f), 180) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 2010173u, new Vector3(-310.0786f, 5.5999756f, -564.0803f), 180) { Fly = true }; obj68.Steps = list88; reference68 = obj68; - num++; - ref QuestSequence reference69 = ref span85[num]; + ref QuestSequence reference69 = ref span28[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; - 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) + 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) { Fly = true }; obj69.Steps = list89; reference69 = obj69; - num++; - ref QuestSequence reference70 = ref span85[num]; + ref QuestSequence reference70 = ref span28[4]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -257569,40 +212911,33 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - 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) + 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) { Fly = true }; obj70.Steps = list90; reference70 = obj70; - num++; - ref QuestSequence reference71 = ref span85[num]; + ref QuestSequence reference71 = ref span28[5]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - 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) + 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) { TargetTerritoryId = (ushort)137, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - num2++; - span91[num2] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); + span32[1] = new QuestStep(EInteractionType.Interact, 1010139u, new Vector3(-33.218933f, -24.674446f, 257.98413f), 137); obj71.Steps = list91; reference71 = obj71; - num++; - ref QuestSequence reference72 = ref span85[num]; + ref QuestSequence reference72 = ref span28[6]; QuestSequence obj72 = new QuestSequence { Sequence = 6 @@ -257610,9 +212945,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 2010181u, new Vector3(-77.28699f, 40.97046f, -138.78088f), 128) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 2010181u, new Vector3(-77.28699f, 40.97046f, -138.78088f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -257623,18 +212956,15 @@ public static class AssemblyQuestLoader }; obj72.Steps = list92; reference72 = obj72; - num++; - ref QuestSequence reference73 = ref span85[num]; + ref QuestSequence reference73 = ref span28[7]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj73.Steps = list93; reference73 = obj73; questRoot10.QuestSequence = list85; @@ -257644,16 +212974,13 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list94)[0] = "plogon_enjoyer"; questRoot11.Author = list94; - index = 8; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference74 = ref span95[num]; + num = 8; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span33 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference74 = ref span33[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -257661,9 +212988,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.AcceptQuest, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -257681,22 +213006,18 @@ public static class AssemblyQuestLoader }; obj74.Steps = list96; reference74 = obj74; - num++; - ref QuestSequence reference75 = ref span95[num]; + ref QuestSequence reference75 = ref span33[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj75.Steps = list97; reference75 = obj75; - num++; - ref QuestSequence reference76 = ref span95[num]; + ref QuestSequence reference76 = ref span33[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -257704,30 +213025,24 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1014577u, new Vector3(-154.31458f, 16.999992f, -53.3609f), 418); obj76.Steps = list98; reference76 = obj76; - num++; - ref QuestSequence reference77 = ref span95[num]; + ref QuestSequence reference77 = ref span33[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj77.Steps = list99; reference77 = obj77; - num++; - ref QuestSequence reference78 = ref span95[num]; + ref QuestSequence reference78 = ref span33[4]; QuestSequence obj78 = new QuestSequence { Sequence = 4 @@ -257735,43 +213050,35 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 2009740u, new Vector3(348.01245f, 158.34277f, 153.03271f), 397) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 2009740u, new Vector3(348.01245f, 158.34277f, 153.03271f), 397) { Fly = true }; obj78.Steps = list100; reference78 = obj78; - num++; - ref QuestSequence reference79 = ref span95[num]; + ref QuestSequence reference79 = ref span33[5]; QuestSequence obj79 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list101 = new List(index2); - CollectionsMarshal.SetCount(list101, index2); - Span span101 = CollectionsMarshal.AsSpan(list101); - num2 = 0; - ref QuestStep reference80 = ref span101[num2]; + num2 = 1; + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + ref QuestStep reference80 = ref CollectionsMarshal.AsSpan(list101)[0]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2009741u, new Vector3(504.72266f, 121.62964f, 162.005f), 397) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list102 = new List(num4); - CollectionsMarshal.SetCount(list102, num4); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - span102[num3] = 10833u; + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = 10833u; obj80.KillEnemyDataIds = list102; reference80 = obj80; obj79.Steps = list101; reference79 = obj79; - num++; - ref QuestSequence reference81 = ref span95[num]; + ref QuestSequence reference81 = ref span33[6]; QuestSequence obj81 = new QuestSequence { Sequence = 6 @@ -257779,26 +213086,21 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 1028096u, new Vector3(343.00745f, 158.52606f, 152.75806f), 397) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1028096u, new Vector3(343.00745f, 158.52606f, 152.75806f), 397) { Fly = true }; obj81.Steps = list103; reference81 = obj81; - num++; - ref QuestSequence reference82 = ref span95[num]; + ref QuestSequence reference82 = ref span33[7]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -257816,16 +213118,13 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list105)[0] = "plogon_enjoyer"; questRoot12.Author = list105; - index = 9; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference83 = ref span106[num]; + num = 9; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span34 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference83 = ref span34[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -257833,9 +213132,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - ref QuestStep reference84 = ref span107[index2]; + ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list107)[0]; QuestStep obj84 = new QuestStep(EInteractionType.AcceptQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -257855,9 +213152,7 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - num4 = 0; - span108[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC012_03221_Q1_000_002"), @@ -257867,22 +213162,18 @@ public static class AssemblyQuestLoader reference84 = obj84; obj83.Steps = list107; reference83 = obj83; - num++; - ref QuestSequence reference85 = ref span106[num]; + ref QuestSequence reference85 = ref span34[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj85.Steps = list109; reference85 = obj85; - num++; - ref QuestSequence reference86 = ref span106[num]; + ref QuestSequence reference86 = ref span34[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -257890,9 +213181,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1030087u, new Vector3(-182.51324f, 2.0332975f, -5.56958f), 418) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1030087u, new Vector3(-182.51324f, 2.0332975f, -5.56958f), 418) { AethernetShortcut = new AethernetShortcut { @@ -257902,18 +213191,15 @@ public static class AssemblyQuestLoader }; obj86.Steps = list110; reference86 = obj86; - num++; - ref QuestSequence reference87 = ref span106[num]; + ref QuestSequence reference87 = ref span34[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -257923,8 +213209,7 @@ public static class AssemblyQuestLoader }; obj87.Steps = list111; reference87 = obj87; - num++; - ref QuestSequence reference88 = ref span106[num]; + ref QuestSequence reference88 = ref span34[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -257932,9 +213217,7 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1019486u, new Vector3(-116.746826f, 0.6342248f, -55.832825f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, AethernetShortcut = new AethernetShortcut @@ -257945,25 +213228,21 @@ public static class AssemblyQuestLoader }; obj88.Steps = list112; reference88 = obj88; - num++; - ref QuestSequence reference89 = ref span106[num]; + ref QuestSequence reference89 = ref span34[5]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; obj89.Steps = list113; reference89 = obj89; - num++; - ref QuestSequence reference90 = ref span106[num]; + ref QuestSequence reference90 = ref span34[6]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -257971,9 +213250,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 1030089u, new Vector3(433.31042f, 68.09681f, -184.2832f), 135) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1030089u, new Vector3(433.31042f, 68.09681f, -184.2832f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -257985,18 +213262,15 @@ public static class AssemblyQuestLoader }; obj90.Steps = list114; reference90 = obj90; - num++; - ref QuestSequence reference91 = ref span106[num]; + ref QuestSequence reference91 = ref span34[7]; QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -258012,8 +213286,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list115; reference91 = obj91; - num++; - ref QuestSequence reference92 = ref span106[num]; + ref QuestSequence reference92 = ref span34[8]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -258021,9 +213294,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - ref QuestStep reference93 = ref span116[index2]; + ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list116)[0]; QuestStep obj93 = new QuestStep(EInteractionType.CompleteQuest, 1013969u, new Vector3(104.234375f, 14.999986f, 40.787354f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -258033,12 +213304,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num4 = 1; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span117 = CollectionsMarshal.AsSpan(list117); - num3 = 0; - span117[num3] = new DialogueChoice + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC012_03221_Q3_000_192"), @@ -258055,26 +213324,21 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; questRoot13.Author = list118; - index = 8; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference94 = ref span119[num]; + num = 8; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span35 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference94 = ref span35[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -258085,8 +213349,7 @@ public static class AssemblyQuestLoader }; obj94.Steps = list120; reference94 = obj94; - num++; - ref QuestSequence reference95 = ref span119[num]; + ref QuestSequence reference95 = ref span35[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 @@ -258094,9 +213357,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1021255u, new Vector3(-0.35101318f, 11.965101f, 45.029297f), 419) { AethernetShortcut = new AethernetShortcut { @@ -258106,18 +213367,15 @@ public static class AssemblyQuestLoader }; obj95.Steps = list121; reference95 = obj95; - num++; - ref QuestSequence reference96 = ref span119[num]; + ref QuestSequence reference96 = ref span35[2]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -258127,8 +213385,7 @@ public static class AssemblyQuestLoader }; obj96.Steps = list122; reference96 = obj96; - num++; - ref QuestSequence reference97 = ref span119[num]; + ref QuestSequence reference97 = ref span35[3]; QuestSequence obj97 = new QuestSequence { Sequence = 3 @@ -258136,9 +213393,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1028386u, new Vector3(199.17603f, -5.3999653f, -57.38922f), 419) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1028386u, new Vector3(199.17603f, -5.3999653f, -57.38922f), 419) { AethernetShortcut = new AethernetShortcut { @@ -258148,18 +213403,15 @@ public static class AssemblyQuestLoader }; obj97.Steps = list123; reference97 = obj97; - num++; - ref QuestSequence reference98 = ref span119[num]; + ref QuestSequence reference98 = ref span35[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -258169,8 +213421,7 @@ public static class AssemblyQuestLoader }; obj98.Steps = list124; reference98 = obj98; - num++; - ref QuestSequence reference99 = ref span119[num]; + ref QuestSequence reference99 = ref span35[5]; QuestSequence obj99 = new QuestSequence { Sequence = 5 @@ -258178,37 +213429,31 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.48306f, 324.1f, -301.10074f), 155) + Span span36 = CollectionsMarshal.AsSpan(list125); + span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(243.48306f, 324.1f, -301.10074f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span125[index2] = new QuestStep(EInteractionType.Interact, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155); + span36[1] = new QuestStep(EInteractionType.Interact, 1028390u, new Vector3(244.64783f, 323.99997f, -303.3036f), 155); obj99.Steps = list125; reference99 = obj99; - num++; - ref QuestSequence reference100 = ref span119[num]; + ref QuestSequence reference100 = ref span35[6]; QuestSequence obj100 = new QuestSequence { Sequence = 6 }; - 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) + 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) { DelaySecondsAtStart = 2f, Action = EAction.AspectedBenefic }; obj100.Steps = list126; reference100 = obj100; - num++; - ref QuestSequence reference101 = ref span119[num]; + ref QuestSequence reference101 = ref span35[7]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -258216,9 +213461,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028391u, new Vector3(199.4812f, -5.3999653f, -60.44104f), 419) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028391u, new Vector3(199.4812f, -5.3999653f, -60.44104f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -258236,26 +213479,21 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list128)[0] = "plogon_enjoyer"; questRoot14.Author = list128; - index = 6; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference102 = ref span129[num]; + num = 6; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span37 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference102 = ref span37[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -258266,8 +213504,7 @@ public static class AssemblyQuestLoader }; obj102.Steps = list130; reference102 = obj102; - num++; - ref QuestSequence reference103 = ref span129[num]; + ref QuestSequence reference103 = ref span37[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -258275,9 +213512,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.Interact, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Interact, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -258288,18 +213523,15 @@ public static class AssemblyQuestLoader }; obj103.Steps = list131; reference103 = obj103; - num++; - ref QuestSequence reference104 = ref span129[num]; + ref QuestSequence reference104 = ref span37[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -258310,8 +213542,7 @@ public static class AssemblyQuestLoader }; obj104.Steps = list132; reference104 = obj104; - num++; - ref QuestSequence reference105 = ref span129[num]; + ref QuestSequence reference105 = ref span37[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -258319,33 +213550,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1022189u, new Vector3(-312.67267f, 33.089348f, 446.5553f), 140) { Fly = true }; obj105.Steps = list133; reference105 = obj105; - num++; - ref QuestSequence reference106 = ref span129[num]; + ref QuestSequence reference106 = ref span37[4]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj106.Steps = list134; reference106 = obj106; - num++; - ref QuestSequence reference107 = ref span129[num]; + ref QuestSequence reference107 = ref span37[5]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue @@ -258353,9 +213578,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030622u, new Vector3(39.04773f, 8f, -119.76807f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -258373,33 +213596,27 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list136)[0] = "plogon_enjoyer"; questRoot15.Author = list136; - index = 10; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference108 = ref span137[num]; + num = 10; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span38 = CollectionsMarshal.AsSpan(list137); + ref QuestSequence reference108 = ref span38[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj108.Steps = list138; reference108 = obj108; - num++; - ref QuestSequence reference109 = ref span137[num]; + ref QuestSequence reference109 = ref span38[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 @@ -258407,34 +213624,28 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1028372u, new Vector3(599.23694f, 80.00001f, 623.07153f), 621) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1028372u, new Vector3(599.23694f, 80.00001f, 623.07153f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj109.Steps = list139; reference109 = obj109; - num++; - ref QuestSequence reference110 = ref span137[num]; + ref QuestSequence reference110 = ref span38[2]; QuestSequence obj110 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj110.Steps = list140; reference110 = obj110; - num++; - ref QuestSequence reference111 = ref span137[num]; + ref QuestSequence reference111 = ref span38[3]; QuestSequence obj111 = new QuestSequence { Sequence = 3 @@ -258442,9 +213653,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - ref QuestStep reference112 = ref span141[index2]; + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list141)[0]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1028379u, new Vector3(81.49841f, 10f, -574.2123f), 621) { Fly = true @@ -258452,9 +213661,7 @@ public static class AssemblyQuestLoader num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num4 = 0; - span142[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list142)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC015_03224_Q1_000_100"), @@ -258464,37 +213671,31 @@ public static class AssemblyQuestLoader reference112 = obj112; obj111.Steps = list141; reference111 = obj111; - num++; - ref QuestSequence reference113 = ref span137[num]; + ref QuestSequence reference113 = ref span38[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list143 = new List(index2); - CollectionsMarshal.SetCount(list143, index2); - Span span143 = CollectionsMarshal.AsSpan(list143); - num2 = 0; - ref QuestStep reference114 = ref span143[num2]; + num2 = 1; + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list143)[0]; QuestStep obj114 = new QuestStep(EInteractionType.Combat, 1030849u, new Vector3(124.40674f, 10f, -515.58716f), 621) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + Span span39 = CollectionsMarshal.AsSpan(list144); + span39[0] = 10834u; + span39[1] = 10835u; obj114.KillEnemyDataIds = list144; reference114 = obj114; obj113.Steps = list143; reference113 = obj113; - num++; - ref QuestSequence reference115 = ref span137[num]; + ref QuestSequence reference115 = ref span38[5]; QuestSequence obj115 = new QuestSequence { Sequence = 5 @@ -258502,34 +213703,28 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1028374u, new Vector3(274.76917f, 10.572342f, -543.05334f), 621) { Fly = true }; obj115.Steps = list145; reference115 = obj115; - num++; - ref QuestSequence reference116 = ref span137[num]; + ref QuestSequence reference116 = ref span38[6]; QuestSequence obj116 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj116.Steps = list146; reference116 = obj116; - num++; - ref QuestSequence reference117 = ref span137[num]; + ref QuestSequence reference117 = ref span38[7]; QuestSequence obj117 = new QuestSequence { Sequence = 7 @@ -258537,30 +213732,24 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1028377u, new Vector3(51.346558f, 24.662476f, -787.9301f), 621) { Fly = true }; obj117.Steps = list147; reference117 = obj117; - num++; - ref QuestSequence reference118 = ref span137[num]; + ref QuestSequence reference118 = ref span38[8]; QuestSequence obj118 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj118.Steps = list148; reference118 = obj118; - num++; - ref QuestSequence reference119 = ref span137[num]; + ref QuestSequence reference119 = ref span38[9]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -258568,9 +213757,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030677u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030677u, new Vector3(55.313843f, 20.397943f, -676.3562f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -258583,26 +213770,21 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot16.Author = list150; - index = 7; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference120 = ref span151[num]; + num = 7; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span40 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference120 = ref span40[0]; QuestSequence obj120 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list152)[0]; QuestStep obj121 = new QuestStep(EInteractionType.AcceptQuest, 1029122u, new Vector3(17.746216f, 20.687263f, -660.12054f), 156) { StopDistance = 5f, @@ -258618,9 +213800,7 @@ public static class AssemblyQuestLoader num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - num4 = 0; - span153[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC016_03225_Q1_000_000"), @@ -258630,8 +213810,7 @@ public static class AssemblyQuestLoader reference121 = obj121; obj120.Steps = list152; reference120 = obj120; - num++; - ref QuestSequence reference122 = ref span151[num]; + ref QuestSequence reference122 = ref span40[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -258639,9 +213818,7 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -258652,18 +213829,15 @@ public static class AssemblyQuestLoader }; obj122.Steps = list154; reference122 = obj122; - num++; - ref QuestSequence reference123 = ref span151[num]; + ref QuestSequence reference123 = ref span40[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -258674,8 +213848,7 @@ public static class AssemblyQuestLoader }; obj123.Steps = list155; reference123 = obj123; - num++; - ref QuestSequence reference124 = ref span151[num]; + ref QuestSequence reference124 = ref span40[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 @@ -258683,26 +213856,21 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj124.Steps = list156; reference124 = obj124; - num++; - ref QuestSequence reference125 = ref span151[num]; + ref QuestSequence reference125 = ref span40[4]; QuestSequence obj125 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -258713,8 +213881,7 @@ public static class AssemblyQuestLoader }; obj125.Steps = list157; reference125 = obj125; - num++; - ref QuestSequence reference126 = ref span151[num]; + ref QuestSequence reference126 = ref span40[5]; QuestSequence obj126 = new QuestSequence { Sequence = 5 @@ -258722,27 +213889,22 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Interact, 1029128u, new Vector3(134.844f, 350.86508f, -386.1906f), 155) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Interact, 1029128u, new Vector3(134.844f, 350.86508f, -386.1906f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj126.Steps = list158; reference126 = obj126; - num++; - ref QuestSequence reference127 = ref span151[num]; + ref QuestSequence reference127 = ref span40[6]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -258755,16 +213917,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot17.Author = list160; - index = 6; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference128 = ref span161[num]; + num = 6; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span41 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference128 = ref span41[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -258772,9 +213931,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - ref QuestStep reference129 = ref span162[index2]; + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list162)[0]; QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1028738u, new Vector3(-104.32593f, 5.999999f, 195.97156f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -258786,12 +213943,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list163 = new List(num4); - CollectionsMarshal.SetCount(list163, num4); - Span span163 = CollectionsMarshal.AsSpan(list163); - num3 = 0; - span163[num3] = new DialogueChoice + num3 = 1; + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_500"), @@ -258801,26 +213956,22 @@ public static class AssemblyQuestLoader reference129 = obj129; obj128.Steps = list162; reference128 = obj128; - num++; - ref QuestSequence reference130 = ref span161[num]; + ref QuestSequence reference130 = ref span41[1]; QuestSequence obj130 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MiddleLaNosceaSummerfordFarms }; obj130.Steps = list164; reference130 = obj130; - num++; - ref QuestSequence reference131 = ref span161[num]; + ref QuestSequence reference131 = ref span41[2]; QuestSequence obj131 = new QuestSequence { Sequence = 2 @@ -258828,30 +213979,23 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1028797u, new Vector3(-187.73181f, 46.394768f, -75.39484f), 134); obj131.Steps = list165; reference131 = obj131; - num++; - ref QuestSequence reference132 = ref span161[num]; + ref QuestSequence reference132 = ref span41[3]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list166 = new List(index2); - CollectionsMarshal.SetCount(list166, index2); - Span span166 = CollectionsMarshal.AsSpan(list166); - num2 = 0; - ref QuestStep reference133 = ref span166[num2]; + num2 = 1; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list166)[0]; 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); - Span span167 = CollectionsMarshal.AsSpan(list167); - num4 = 0; - span167[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_100"), @@ -258861,8 +214005,7 @@ public static class AssemblyQuestLoader reference133 = questStep; obj132.Steps = list166; reference132 = obj132; - num++; - ref QuestSequence reference134 = ref span161[num]; + ref QuestSequence reference134 = ref span41[4]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -258870,19 +214013,15 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - ref QuestStep reference135 = ref span168[index2]; + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list168)[0]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1028798u, new Vector3(-70.38995f, 20.000332f, 45.334473f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - num4 = 1; - List list169 = new List(num4); - CollectionsMarshal.SetCount(list169, num4); - Span span169 = CollectionsMarshal.AsSpan(list169); - num3 = 0; - span169[num3] = new DialogueChoice + num3 = 1; + List list169 = new List(num3); + CollectionsMarshal.SetCount(list169, num3); + CollectionsMarshal.AsSpan(list169)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBC017_03226_Q1_000_200"), @@ -258892,18 +214031,15 @@ public static class AssemblyQuestLoader reference135 = obj134; obj133.Steps = list168; reference134 = obj133; - num++; - ref QuestSequence reference136 = ref span161[num]; + ref QuestSequence reference136 = ref span41[5]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj135.Steps = list170; reference136 = obj135; questRoot17.QuestSequence = list161; @@ -258913,16 +214049,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; questRoot18.Author = list171; - index = 6; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference137 = ref span172[num]; + num = 6; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span42 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference137 = ref span42[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -258930,9 +214063,7 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - ref QuestStep reference138 = ref span173[index2]; + ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list173)[0]; QuestStep obj137 = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -258956,16 +214087,14 @@ public static class AssemblyQuestLoader num3 = 2; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span174 = CollectionsMarshal.AsSpan(list174); - num4 = 0; - span174[num4] = new DialogueChoice + Span span43 = CollectionsMarshal.AsSpan(list174); + span43[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA102_03228_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKLA102_03228_A1_000_001") }; - num4++; - span174[num4] = new DialogueChoice + span43[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA102_03228_Q2_000_000"), @@ -258975,26 +214104,22 @@ public static class AssemblyQuestLoader reference138 = obj137; obj136.Steps = list173; reference137 = obj136; - num++; - ref QuestSequence reference139 = ref span172[num]; + ref QuestSequence reference139 = ref span42[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj138.Steps = list175; reference139 = obj138; - num++; - ref QuestSequence reference140 = ref span172[num]; + ref QuestSequence reference140 = ref span42[2]; QuestSequence obj139 = new QuestSequence { Sequence = 2 @@ -259002,34 +214127,28 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1028451u, new Vector3(-138.96393f, 58.34806f, -670.6798f), 816) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1028451u, new Vector3(-138.96393f, 58.34806f, -670.6798f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj139.Steps = list176; reference140 = obj139; - num++; - ref QuestSequence reference141 = ref span172[num]; + ref QuestSequence reference141 = ref span42[3]; QuestSequence obj140 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj140.Steps = list177; reference141 = obj140; - num++; - ref QuestSequence reference142 = ref span172[num]; + ref QuestSequence reference142 = ref span42[4]; QuestSequence obj141 = new QuestSequence { Sequence = 4 @@ -259037,9 +214156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Interact, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -259050,24 +214167,21 @@ public static class AssemblyQuestLoader }; obj141.Steps = list178; reference142 = obj141; - num++; - ref QuestSequence reference143 = ref span172[num]; + ref QuestSequence reference143 = ref span42[5]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 27237u, ItemCount = 1 }; - num2++; - span179[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819); + span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819); obj142.Steps = list179; reference143 = obj142; questRoot18.QuestSequence = list172; @@ -259077,16 +214191,13 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list180)[0] = "plogon_enjoyer"; questRoot19.Author = list180; - index = 6; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference144 = ref span181[num]; + num = 6; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span45 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference144 = ref span45[0]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -259094,9 +214205,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027233u, new Vector3(9.292725f, 20.186f, -124.55945f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -259118,18 +214227,15 @@ public static class AssemblyQuestLoader }; obj143.Steps = list182; reference144 = obj143; - num++; - ref QuestSequence reference145 = ref span181[num]; + ref QuestSequence reference145 = ref span45[1]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -259139,8 +214245,7 @@ public static class AssemblyQuestLoader }; obj144.Steps = list183; reference145 = obj144; - num++; - ref QuestSequence reference146 = ref span181[num]; + ref QuestSequence reference146 = ref span45[2]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -259148,33 +214253,27 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.Craft, null, null, 819) + Span span46 = CollectionsMarshal.AsSpan(list184); + span46[0] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27239u, ItemCount = 1 }; - index2++; - span184[index2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); + span46[1] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); obj145.Steps = list184; reference146 = obj145; - num++; - ref QuestSequence reference147 = ref span181[num]; + ref QuestSequence reference147 = ref span45[3]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj146.Steps = list185; reference147 = obj146; - num++; - ref QuestSequence reference148 = ref span181[num]; + ref QuestSequence reference148 = ref span45[4]; QuestSequence obj147 = new QuestSequence { Sequence = 4 @@ -259182,23 +214281,18 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1028454u, new Vector3(-17.441101f, 3.9998174f, 191.94324f), 819); obj147.Steps = list186; reference148 = obj147; - num++; - ref QuestSequence reference149 = ref span181[num]; + ref QuestSequence reference149 = ref span45[5]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -259215,16 +214309,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list188)[0] = "plogon_enjoyer"; questRoot20.Author = list188; - index = 6; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference150 = ref span189[num]; + num = 6; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span47 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference150 = ref span47[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -259232,30 +214323,23 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); obj149.Steps = list190; reference150 = obj149; - num++; - ref QuestSequence reference151 = ref span189[num]; + ref QuestSequence reference151 = ref span47[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list191 = new List(index2); - CollectionsMarshal.SetCount(list191, index2); - Span span191 = CollectionsMarshal.AsSpan(list191); - num2 = 0; - ref QuestStep reference152 = ref span191[num2]; + num2 = 1; + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list191)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1028326u, new Vector3(10.940674f, 20.186f, -142.53455f), 819); - num4 = 1; - List list192 = new List(num4); - CollectionsMarshal.SetCount(list192, num4); - Span span192 = CollectionsMarshal.AsSpan(list192); - num3 = 0; - span192[num3] = new DialogueChoice + num3 = 1; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + CollectionsMarshal.AsSpan(list192)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKLA203_03232_Q1_000_000"), @@ -259265,8 +214349,7 @@ public static class AssemblyQuestLoader reference152 = questStep2; obj150.Steps = list191; reference151 = obj150; - num++; - ref QuestSequence reference153 = ref span189[num]; + ref QuestSequence reference153 = ref span47[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -259274,29 +214357,24 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Craft, null, null, 819) + Span span48 = CollectionsMarshal.AsSpan(list193); + span48[0] = new QuestStep(EInteractionType.Craft, null, null, 819) { ItemId = 27247u, ItemCount = 1 }; - index2++; - span193[index2] = new QuestStep(EInteractionType.Interact, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); + span48[1] = new QuestStep(EInteractionType.Interact, 1027234u, new Vector3(10.2387085f, 20.185999f, -138.2315f), 819); obj151.Steps = list193; reference153 = obj151; - num++; - ref QuestSequence reference154 = ref span189[num]; + ref QuestSequence reference154 = ref span47[3]; QuestSequence obj152 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -259306,8 +214384,7 @@ public static class AssemblyQuestLoader }; obj152.Steps = list194; reference154 = obj152; - num++; - ref QuestSequence reference155 = ref span189[num]; + ref QuestSequence reference155 = ref span47[4]; QuestSequence obj153 = new QuestSequence { Sequence = 4 @@ -259315,23 +214392,18 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1028438u, new Vector3(-55.832825f, 3.9998174f, 198.6571f), 819); obj153.Steps = list195; reference155 = obj153; - num++; - ref QuestSequence reference156 = ref span189[num]; + ref QuestSequence reference156 = ref span47[5]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -259348,16 +214420,13 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - Span span197 = CollectionsMarshal.AsSpan(list197); - index = 0; - span197[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list197)[0] = "plogon_enjoyer"; questRoot21.Author = list197; - index = 7; - List list198 = new List(index); - CollectionsMarshal.SetCount(list198, index); - Span span198 = CollectionsMarshal.AsSpan(list198); - num = 0; - ref QuestSequence reference157 = ref span198[num]; + num = 7; + List list198 = new List(num); + CollectionsMarshal.SetCount(list198, num); + Span span49 = CollectionsMarshal.AsSpan(list198); + ref QuestSequence reference157 = ref span49[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -259365,23 +214434,18 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819); obj155.Steps = list199; reference157 = obj155; - num++; - ref QuestSequence reference158 = ref span198[num]; + ref QuestSequence reference158 = ref span49[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -259391,8 +214455,7 @@ public static class AssemblyQuestLoader }; obj156.Steps = list200; reference158 = obj156; - num++; - ref QuestSequence reference159 = ref span198[num]; + ref QuestSequence reference159 = ref span49[2]; QuestSequence obj157 = new QuestSequence { Sequence = 2 @@ -259400,9 +214463,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Say, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Say, 1028484u, new Vector3(-129.35083f, 0f, -62.912964f), 819) { ChatMessage = new ChatMessage { @@ -259411,28 +214472,24 @@ public static class AssemblyQuestLoader }; obj157.Steps = list201; reference159 = obj157; - num++; - ref QuestSequence reference160 = ref span198[num]; + ref QuestSequence reference160 = ref span49[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 27253u, ItemCount = 1 }; - num2++; - span202[num2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); + span50[1] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); obj158.Steps = list202; reference160 = obj158; - num++; - ref QuestSequence reference161 = ref span198[num]; + ref QuestSequence reference161 = ref span49[4]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -259440,35 +214497,29 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1028485u, new Vector3(-492.3934f, 69.70277f, 570.18384f), 816) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1028485u, new Vector3(-492.3934f, 69.70277f, 570.18384f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj159.Steps = list203; reference161 = obj159; - num++; - ref QuestSequence reference162 = ref span198[num]; + ref QuestSequence reference162 = ref span49[5]; QuestSequence obj160 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj160.Steps = list204; reference162 = obj160; - num++; - ref QuestSequence reference163 = ref span198[num]; + ref QuestSequence reference163 = ref span49[6]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -259476,9 +214527,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027235u, new Vector3(-19.516357f, 20.186f, -130.1748f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -259496,30 +214545,24 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list206)[0] = "plogon_enjoyer"; questRoot22.Author = list206; - index = 7; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference164 = ref span207[num]; + num = 7; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span51 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference164 = ref span51[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj162.Steps = list208; reference164 = obj162; - num++; - ref QuestSequence reference165 = ref span207[num]; + ref QuestSequence reference165 = ref span51[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -259527,9 +214570,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) { AethernetShortcut = new AethernetShortcut { @@ -259539,28 +214580,24 @@ public static class AssemblyQuestLoader }; obj163.Steps = list209; reference165 = obj163; - num++; - ref QuestSequence reference166 = ref span207[num]; + ref QuestSequence reference166 = ref span51[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 27255u, ItemCount = 1 }; - num2++; - span210[num2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); + span52[1] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819); obj164.Steps = list210; reference166 = obj164; - num++; - ref QuestSequence reference167 = ref span207[num]; + ref QuestSequence reference167 = ref span51[3]; QuestSequence obj165 = new QuestSequence { Sequence = 3 @@ -259568,31 +214605,25 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1028489u, new Vector3(355.42847f, 3.8289368f, 224.17017f), 813) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1028489u, new Vector3(355.42847f, 3.8289368f, 224.17017f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj165.Steps = list211; reference167 = obj165; - num++; - ref QuestSequence reference168 = ref span207[num]; + ref QuestSequence reference168 = ref span51[4]; QuestSequence obj166 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj166.Steps = list212; reference168 = obj166; - num++; - ref QuestSequence reference169 = ref span207[num]; + ref QuestSequence reference169 = ref span51[5]; QuestSequence obj167 = new QuestSequence { Sequence = 5 @@ -259600,9 +214631,7 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1030659u, new Vector3(-131.15137f, 0f, -65.53754f), 819) { AethernetShortcut = new AethernetShortcut { @@ -259612,18 +214641,15 @@ public static class AssemblyQuestLoader }; obj167.Steps = list213; reference169 = obj167; - num++; - ref QuestSequence reference170 = ref span207[num]; + ref QuestSequence reference170 = ref span51[6]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -259640,16 +214666,13 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - Span span215 = CollectionsMarshal.AsSpan(list215); - index = 0; - span215[index] = "liza"; + CollectionsMarshal.AsSpan(list215)[0] = "liza"; questRoot23.Author = list215; - index = 7; - List list216 = new List(index); - CollectionsMarshal.SetCount(list216, index); - Span span216 = CollectionsMarshal.AsSpan(list216); - num = 0; - ref QuestSequence reference171 = ref span216[num]; + num = 7; + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span53 = CollectionsMarshal.AsSpan(list216); + ref QuestSequence reference171 = ref span53[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -259657,9 +214680,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029900u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029900u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -259677,18 +214698,15 @@ public static class AssemblyQuestLoader }; obj169.Steps = list217; reference171 = obj169; - num++; - ref QuestSequence reference172 = ref span216[num]; + ref QuestSequence reference172 = ref span53[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -259699,8 +214717,7 @@ public static class AssemblyQuestLoader }; obj170.Steps = list218; reference172 = obj170; - num++; - ref QuestSequence reference173 = ref span216[num]; + ref QuestSequence reference173 = ref span53[2]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -259708,9 +214725,8 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(447.0961f, 13.008003f, 210.91484f), 813) + Span span54 = CollectionsMarshal.AsSpan(list219); + span54[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(447.0961f, 13.008003f, 210.91484f), 813) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -259725,8 +214741,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference174 = ref span219[index2]; + ref QuestStep reference174 = ref span54[1]; QuestStep obj172 = new QuestStep(EInteractionType.Combat, 2009942u, new Vector3(453.4828f, 13.626221f, 189.44067f), 813) { Fly = true, @@ -259735,29 +214750,23 @@ public static class AssemblyQuestLoader num3 = 1; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span220 = CollectionsMarshal.AsSpan(list220); - num4 = 0; - span220[num4] = 10853u; + CollectionsMarshal.AsSpan(list220)[0] = 10853u; obj172.KillEnemyDataIds = list220; reference174 = obj172; obj171.Steps = list219; reference173 = obj171; - num++; - ref QuestSequence reference175 = ref span216[num]; + ref QuestSequence reference175 = ref span53[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj173.Steps = list221; reference175 = obj173; - num++; - ref QuestSequence reference176 = ref span216[num]; + ref QuestSequence reference176 = ref span53[4]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -259765,9 +214774,8 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(412.249f, 7.472949f, 187.34154f), 813) + Span span55 = CollectionsMarshal.AsSpan(list222); + span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(412.249f, 7.472949f, 187.34154f), 813) { DisableNavmesh = true, Mount = true, @@ -259779,39 +214787,32 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference177 = ref span222[index2]; + ref QuestStep reference177 = ref span55[1]; QuestStep obj175 = new QuestStep(EInteractionType.Combat, 2009943u, new Vector3(633.6614f, 21.377869f, -267.93323f), 813) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list223 = new List(num4); - CollectionsMarshal.SetCount(list223, num4); - Span span223 = CollectionsMarshal.AsSpan(list223); - num3 = 0; - span223[num3] = 10854u; + num3 = 1; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + CollectionsMarshal.AsSpan(list223)[0] = 10854u; obj175.KillEnemyDataIds = list223; reference177 = obj175; obj174.Steps = list222; reference176 = obj174; - num++; - ref QuestSequence reference178 = ref span216[num]; + ref QuestSequence reference178 = ref span53[5]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj176.Steps = list224; reference178 = obj176; - num++; - ref QuestSequence reference179 = ref span216[num]; + ref QuestSequence reference179 = ref span53[6]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -259819,9 +214820,7 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -259840,26 +214839,21 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - Span span226 = CollectionsMarshal.AsSpan(list226); - index = 0; - span226[index] = "liza"; + CollectionsMarshal.AsSpan(list226)[0] = "liza"; questRoot24.Author = list226; - index = 4; - List list227 = new List(index); - CollectionsMarshal.SetCount(list227, index); - Span span227 = CollectionsMarshal.AsSpan(list227); - num = 0; - ref QuestSequence reference180 = ref span227[num]; + num = 4; + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span56 = CollectionsMarshal.AsSpan(list227); + ref QuestSequence reference180 = ref span56[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -259877,8 +214871,7 @@ public static class AssemblyQuestLoader }; obj178.Steps = list228; reference180 = obj178; - num++; - ref QuestSequence reference181 = ref span227[num]; + ref QuestSequence reference181 = ref span56[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -259886,26 +214879,22 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj179.Steps = list229; reference181 = obj179; - num++; - ref QuestSequence reference182 = ref span227[num]; + ref QuestSequence reference182 = ref span56[2]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list230 = new List(index2); - CollectionsMarshal.SetCount(list230, index2); - Span span230 = CollectionsMarshal.AsSpan(list230); - num2 = 0; - ref QuestStep reference183 = ref span230[num2]; + num2 = 2; + List list230 = new List(num2); + CollectionsMarshal.SetCount(list230, num2); + Span span57 = CollectionsMarshal.AsSpan(list230); + ref QuestStep reference183 = ref span57[0]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 1029895u, new Vector3(-317.43347f, 19.407524f, 404.3794f), 814) { Fly = true @@ -259913,50 +214902,36 @@ public static class AssemblyQuestLoader num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - 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); + 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); obj181.CompletionQuestVariablesFlags = list231; reference183 = obj181; - num2++; - ref QuestStep reference184 = ref span230[num2]; + ref QuestStep reference184 = ref span57[1]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1029896u, new Vector3(-311.57397f, 17.772081f, 443.8086f), 814) { Mount = true, Fly = true }; - 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); + 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); obj182.CompletionQuestVariablesFlags = list232; reference184 = obj182; obj180.Steps = list230; reference182 = obj180; - num++; - ref QuestSequence reference185 = ref span227[num]; + ref QuestSequence reference185 = ref span56[3]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -259964,9 +214939,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029893u, new Vector3(-248.34064f, 21.086334f, 346.0287f), 814) { Fly = true, NextQuestId = new QuestId(3245) @@ -259980,26 +214953,21 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "liza"; + CollectionsMarshal.AsSpan(list234)[0] = "liza"; questRoot25.Author = list234; - index = 10; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference186 = ref span235[num]; + num = 10; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span60 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference186 = ref span60[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -260017,8 +214985,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list236; reference186 = obj184; - num++; - ref QuestSequence reference187 = ref span235[num]; + ref QuestSequence reference187 = ref span60[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -260026,9 +214993,8 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - ref QuestStep reference188 = ref span237[index2]; + Span span61 = CollectionsMarshal.AsSpan(list237); + ref QuestStep reference188 = ref span61[0]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(173.40976f, 58.977684f, 883.3417f), 814) { Fly = true @@ -260038,16 +215004,13 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num4 = 0; - span238[num4] = 820; + CollectionsMarshal.AsSpan(list238)[0] = 820; skipStepConditions.InTerritory = list238; skipStepConditions.AetheryteUnlocked = EAetheryteLocation.Eulmore; skipConditions4.StepIf = skipStepConditions; obj186.SkipConditions = skipConditions4; reference188 = obj186; - index2++; - span237[index2] = new QuestStep(EInteractionType.Interact, 1029899u, new Vector3(34.561646f, 83.001076f, -67.00244f), 820) + span61[1] = new QuestStep(EInteractionType.Interact, 1029899u, new Vector3(34.561646f, 83.001076f, -67.00244f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, SkipConditions = new SkipConditions @@ -260060,25 +215023,21 @@ public static class AssemblyQuestLoader }; obj185.Steps = list237; reference187 = obj185; - num++; - ref QuestSequence reference189 = ref span235[num]; + ref QuestSequence reference189 = ref span60[2]; QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj187.Steps = list239; reference189 = obj187; - num++; - ref QuestSequence reference190 = ref span235[num]; + ref QuestSequence reference190 = ref span60[3]; QuestSequence obj188 = new QuestSequence { Sequence = 3 @@ -260086,72 +215045,54 @@ public static class AssemblyQuestLoader num2 = 2; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(271.6878f, 7.1558237f, -197.58272f), 815) + Span span62 = CollectionsMarshal.AsSpan(list240); + span62[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(271.6878f, 7.1558237f, -197.58272f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - index2++; - span240[index2] = new QuestStep(EInteractionType.Interact, 1029898u, new Vector3(270.37463f, 7.1558247f, -196.30737f), 815); + span62[1] = new QuestStep(EInteractionType.Interact, 1029898u, new Vector3(270.37463f, 7.1558247f, -196.30737f), 815); obj188.Steps = list240; reference190 = obj188; - num++; - ref QuestSequence reference191 = ref span235[num]; + ref QuestSequence reference191 = ref span60[4]; QuestSequence obj189 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list241 = new List(index2); - CollectionsMarshal.SetCount(list241, index2); - Span span241 = CollectionsMarshal.AsSpan(list241); - num2 = 0; - ref QuestStep reference192 = ref span241[num2]; + num2 = 2; + List list241 = new List(num2); + CollectionsMarshal.SetCount(list241, num2); + Span span63 = CollectionsMarshal.AsSpan(list241); + ref QuestStep reference192 = ref span63[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1027876u, new Vector3(314.16797f, 1.4912677f, -255.60394f), 815); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list242; reference192 = questStep3; - num2++; - ref QuestStep reference193 = ref span241[num2]; + ref QuestStep reference193 = ref span63[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list243; reference193 = questStep4; obj189.Steps = list241; reference191 = obj189; - num++; - ref QuestSequence reference194 = ref span235[num]; + ref QuestSequence reference194 = ref span60[5]; QuestSequence obj190 = new QuestSequence { Sequence = 5 @@ -260159,31 +215100,25 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1029953u, new Vector3(241.19922f, 4.0297f, -289.601f), 815); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1029953u, new Vector3(241.19922f, 4.0297f, -289.601f), 815); obj190.Steps = list244; reference194 = obj190; - num++; - ref QuestSequence reference195 = ref span235[num]; + ref QuestSequence reference195 = ref span60[6]; QuestSequence obj191 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj191.Steps = list245; reference195 = obj191; - num++; - ref QuestSequence reference196 = ref span235[num]; + ref QuestSequence reference196 = ref span60[7]; QuestSequence obj192 = new QuestSequence { Sequence = 7 @@ -260191,43 +215126,35 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - ref QuestStep reference197 = ref span246[index2]; + ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list246)[0]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, null, new Vector3(555.85315f, -50.899147f, 322.2599f), 815) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list247 = new List(num4); - CollectionsMarshal.SetCount(list247, num4); - Span span247 = CollectionsMarshal.AsSpan(list247); - num3 = 0; - span247[num3] = 10855u; + num3 = 1; + List list247 = new List(num3); + CollectionsMarshal.SetCount(list247, num3); + CollectionsMarshal.AsSpan(list247)[0] = 10855u; obj193.KillEnemyDataIds = list247; reference197 = obj193; obj192.Steps = list246; reference196 = obj192; - num++; - ref QuestSequence reference198 = ref span235[num]; + ref QuestSequence reference198 = ref span60[8]; QuestSequence obj194 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true }; obj194.Steps = list248; reference198 = obj194; - num++; - ref QuestSequence reference199 = ref span235[num]; + ref QuestSequence reference199 = ref span60[9]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue @@ -260235,15 +215162,13 @@ public static class AssemblyQuestLoader num2 = 2; 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(296.43002f, 1.4685829f, -289.11447f), 815) + Span span66 = CollectionsMarshal.AsSpan(list249); + span66[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(296.43002f, 1.4685829f, -289.11447f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - index2++; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815) + span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815) { NextQuestId = new QuestId(3246) }; @@ -260256,26 +215181,22 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "liza"; + CollectionsMarshal.AsSpan(list250)[0] = "liza"; questRoot26.Author = list250; - index = 7; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference200 = ref span251[num]; + num = 7; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span67 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference200 = ref span67[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -260292,12 +215213,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span252[num2] = new QuestStep(EInteractionType.AcceptQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815); + span68[1] = new QuestStep(EInteractionType.AcceptQuest, 1029959u, new Vector3(295.27722f, 1.4685827f, -290.18085f), 815); obj196.Steps = list252; reference200 = obj196; - num++; - ref QuestSequence reference201 = ref span251[num]; + ref QuestSequence reference201 = ref span67[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 @@ -260305,9 +215224,7 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - ref QuestStep reference202 = ref span253[index2]; + ref QuestStep reference202 = ref CollectionsMarshal.AsSpan(list253)[0]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1029960u, new Vector3(-393.66754f, 52.333755f, 497.15417f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -260315,9 +215232,7 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - Span span254 = CollectionsMarshal.AsSpan(list254); - num4 = 0; - span254[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list254)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA131_03246_Q2_000_000"), @@ -260327,43 +215242,34 @@ public static class AssemblyQuestLoader reference202 = obj198; obj197.Steps = list253; reference201 = obj197; - num++; - ref QuestSequence reference203 = ref span251[num]; + ref QuestSequence reference203 = ref span67[2]; QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list255 = new List(index2); - CollectionsMarshal.SetCount(list255, index2); - Span span255 = CollectionsMarshal.AsSpan(list255); - num2 = 0; - ref QuestStep reference204 = ref span255[num2]; + num2 = 2; + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + Span span69 = CollectionsMarshal.AsSpan(list255); + ref QuestStep reference204 = ref span69[0]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1027671u, new Vector3(-33.12738f, 105.68533f, -879.9115f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - 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); + 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); obj200.CompletionQuestVariablesFlags = list256; reference204 = obj200; - num2++; - ref QuestStep reference205 = ref span255[num2]; + ref QuestStep reference205 = ref span69[1]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1027670u, new Vector3(32.028687f, 101.900696f, -857.87744f), 816) { Fly = true @@ -260371,25 +215277,18 @@ public static class AssemblyQuestLoader num3 = 6; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - 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); + 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); obj201.CompletionQuestVariablesFlags = list257; reference205 = obj201; obj199.Steps = list255; reference203 = obj199; - num++; - ref QuestSequence reference206 = ref span251[num]; + ref QuestSequence reference206 = ref span67[3]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -260397,33 +215296,27 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.Interact, 1029961u, new Vector3(-93.736206f, 101.44155f, -834.9279f), 816) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1029961u, new Vector3(-93.736206f, 101.44155f, -834.9279f), 816) { Fly = true }; obj202.Steps = list258; reference206 = obj202; - num++; - ref QuestSequence reference207 = ref span251[num]; + ref QuestSequence reference207 = ref span67[4]; QuestSequence obj203 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj203.Steps = list259; reference207 = obj203; - num++; - ref QuestSequence reference208 = ref span251[num]; + ref QuestSequence reference208 = ref span67[5]; QuestSequence obj204 = new QuestSequence { Sequence = 5 @@ -260431,37 +215324,30 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - ref QuestStep reference209 = ref span260[index2]; + ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list260)[0]; QuestStep obj205 = new QuestStep(EInteractionType.Combat, 2009946u, new Vector3(395.16284f, 62.05847f, -516.22797f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list261 = new List(num4); - CollectionsMarshal.SetCount(list261, num4); - Span span261 = CollectionsMarshal.AsSpan(list261); - num3 = 0; - span261[num3] = 10856u; + num3 = 1; + List list261 = new List(num3); + CollectionsMarshal.SetCount(list261, num3); + CollectionsMarshal.AsSpan(list261)[0] = 10856u; obj205.KillEnemyDataIds = list261; reference209 = obj205; obj204.Steps = list260; reference208 = obj204; - num++; - ref QuestSequence reference210 = ref span251[num]; + ref QuestSequence reference210 = ref span67[6]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -260476,16 +215362,13 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot27.Author = list263; - index = 3; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference211 = ref span264[num]; + num = 3; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span72 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference211 = ref span72[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -260493,9 +215376,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -260514,18 +215395,15 @@ public static class AssemblyQuestLoader }; obj207.Steps = list265; reference211 = obj207; - num++; - ref QuestSequence reference212 = ref span264[num]; + ref QuestSequence reference212 = ref span72[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list266 = new List(index2); - CollectionsMarshal.SetCount(list266, index2); - Span span266 = CollectionsMarshal.AsSpan(list266); - num2 = 0; - ref QuestStep reference213 = ref span266[num2]; + num2 = 1; + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list266)[0]; QuestStep obj209 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029967u, new Vector3(-68.40625f, 105.29414f, -251.88074f), 816) { Fly = true @@ -260534,16 +215412,13 @@ public static class AssemblyQuestLoader num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span267 = CollectionsMarshal.AsSpan(list267); - num4 = 0; - span267[num4] = "AI doesn't pull enemies when spawning into the instance"; + CollectionsMarshal.AsSpan(list267)[0] = "AI doesn't pull enemies when spawning into the instance"; singlePlayerDutyOptions.Notes = list267; obj209.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference213 = obj209; obj208.Steps = list266; reference212 = obj208; - num++; - ref QuestSequence reference214 = ref span264[num]; + ref QuestSequence reference214 = ref span72[2]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -260551,9 +215426,7 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) + CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029963u, new Vector3(61.020752f, 100.95007f, -872.4651f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni @@ -260567,26 +215440,21 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - Span span269 = CollectionsMarshal.AsSpan(list269); - index = 0; - span269[index] = "liza"; + CollectionsMarshal.AsSpan(list269)[0] = "liza"; questRoot28.Author = list269; - index = 5; - List list270 = new List(index); - CollectionsMarshal.SetCount(list270, index); - Span span270 = CollectionsMarshal.AsSpan(list270); - num = 0; - ref QuestSequence reference215 = ref span270[num]; + num = 5; + List list270 = new List(num); + CollectionsMarshal.SetCount(list270, num); + Span span73 = CollectionsMarshal.AsSpan(list270); + ref QuestSequence reference215 = ref span73[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, @@ -260605,8 +215473,7 @@ public static class AssemblyQuestLoader }; obj211.Steps = list271; reference215 = obj211; - num++; - ref QuestSequence reference216 = ref span270[num]; + ref QuestSequence reference216 = ref span73[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -260614,14 +215481,12 @@ public static class AssemblyQuestLoader num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-823.0134f, 22.900805f, -55.223766f), 816) + Span span74 = CollectionsMarshal.AsSpan(list272); + span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-823.0134f, 22.900805f, -55.223766f), 816) { Fly = true }; - index2++; - span272[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2009948u, new Vector3(-824.88745f, 23.11737f, -56.443176f), 816) + span74[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 2009948u, new Vector3(-824.88745f, 23.11737f, -56.443176f), 816) { ItemId = 2002569u, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -260631,31 +215496,26 @@ public static class AssemblyQuestLoader }; obj212.Steps = list272; reference216 = obj212; - num++; - span270[num] = new QuestSequence + span73[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference217 = ref span270[num]; + ref QuestSequence reference217 = ref span73[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj213.Steps = list273; reference217 = obj213; - num++; - ref QuestSequence reference218 = ref span270[num]; + ref QuestSequence reference218 = ref span73[4]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -260663,9 +215523,7 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029889u, new Vector3(-35.385742f, 3.9998174f, 251.75854f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -260683,26 +215541,21 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - Span span275 = CollectionsMarshal.AsSpan(list275); - index = 0; - span275[index] = "Fifi"; + CollectionsMarshal.AsSpan(list275)[0] = "Fifi"; questRoot29.Author = list275; - index = 4; - List list276 = new List(index); - CollectionsMarshal.SetCount(list276, index); - Span span276 = CollectionsMarshal.AsSpan(list276); - num = 0; - ref QuestSequence reference219 = ref span276[num]; + num = 4; + List list276 = new List(num); + CollectionsMarshal.SetCount(list276, num); + Span span75 = CollectionsMarshal.AsSpan(list276); + ref QuestSequence reference219 = ref span75[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -260715,8 +215568,7 @@ public static class AssemblyQuestLoader }; obj215.Steps = list277; reference219 = obj215; - num++; - ref QuestSequence reference220 = ref span276[num]; + ref QuestSequence reference220 = ref span75[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -260724,27 +215576,21 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.Interact, 1028723u, new Vector3(-112.13861f, 5.9999995f, 189.68481f), 129); + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1028723u, new Vector3(-112.13861f, 5.9999995f, 189.68481f), 129); obj216.Steps = list278; reference220 = obj216; - num++; - ref QuestSequence reference221 = ref span276[num]; + ref QuestSequence reference221 = ref span75[2]; QuestSequence obj217 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj217.Steps = list279; reference221 = obj217; - num++; - ref QuestSequence reference222 = ref span276[num]; + ref QuestSequence reference222 = ref span75[3]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -260752,16 +215598,12 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - ref QuestStep reference223 = ref span280[index2]; + ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list280)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129); - num4 = 1; - List list281 = new List(num4); - CollectionsMarshal.SetCount(list281, num4); - Span span281 = CollectionsMarshal.AsSpan(list281); - num3 = 0; - span281[num3] = new DialogueChoice + num3 = 1; + List list281 = new List(num3); + CollectionsMarshal.SetCount(list281, num3); + CollectionsMarshal.AsSpan(list281)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKBB201_03249_Q1_000_000") @@ -260782,16 +215624,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Fifi"; + CollectionsMarshal.AsSpan(list)[0] = "Fifi"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -260799,9 +215638,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028724u, new Vector3(-104.32593f, 5.999999f, 195.94104f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -260814,26 +215651,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -260841,23 +215674,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028736u, new Vector3(481.65088f, 16.414907f, 447.95898f), 137); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028736u, new Vector3(481.65088f, 16.414907f, 447.95898f), 137); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3251) }; @@ -260871,17 +215699,14 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "Fifi"; + CollectionsMarshal.AsSpan(list7)[0] = "Fifi"; questRoot3.Author = list7; QuestRoot questRoot4 = questRoot2; - index = 9; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 9; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -260889,9 +215714,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028735u, new Vector3(480.18604f, 16.432398f, 447.8064f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -260904,25 +215727,21 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span2[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 @@ -260930,9 +215749,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -260943,18 +215760,15 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span2[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -260964,8 +215778,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span2[4]; QuestSequence obj9 = new QuestSequence { Sequence = 4 @@ -260973,38 +215786,32 @@ public static class AssemblyQuestLoader num2 = 2; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1028747u, new Vector3(-73.47223f, 15.825686f, 323.35388f), 141) + Span span3 = CollectionsMarshal.AsSpan(list13); + span3[0] = new QuestStep(EInteractionType.Interact, 1028747u, new Vector3(-73.47223f, 15.825686f, 323.35388f), 141) { Fly = true }; - index2++; - span13[index2] = new QuestStep(EInteractionType.Interact, 1028748u, new Vector3(-52.414795f, 15.300566f, 332.96704f), 141) + span3[1] = new QuestStep(EInteractionType.Interact, 1028748u, new Vector3(-52.414795f, 15.300566f, 332.96704f), 141) { Fly = true }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span8[num]; + ref QuestSequence reference10 = ref span2[5]; QuestSequence obj10 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span8[num]; + ref QuestSequence reference11 = ref span2[6]; QuestSequence obj11 = new QuestSequence { Sequence = 6 @@ -261012,9 +215819,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference12 = ref span15[index2]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(-73.36467f, -1.5503908f, 105.86304f), 141) { StopDistance = 0.5f, @@ -261024,29 +215829,23 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - int index3 = 0; - span16[index3] = 10849u; + CollectionsMarshal.AsSpan(list16)[0] = 10849u; obj12.KillEnemyDataIds = list16; reference12 = obj12; obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference13 = ref span8[num]; + ref QuestSequence reference13 = ref span2[7]; QuestSequence obj13 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj13.Steps = list17; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span8[num]; + ref QuestSequence reference14 = ref span2[8]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -261054,9 +215853,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028741u, new Vector3(47.62329f, 8f, -118.669495f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -261075,26 +215872,21 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "Fifi"; + CollectionsMarshal.AsSpan(list19)[0] = "Fifi"; questRoot5.Author = list19; - index = 7; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference15 = ref span20[num]; + num = 7; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span4 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference15 = ref span4[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -261112,8 +215904,7 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span4[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -261121,34 +215912,28 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Interact, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span4[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span20[num]; + ref QuestSequence reference18 = ref span4[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -261156,42 +215941,34 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.Interact, 2009767u, new Vector3(-128.80145f, 9.964111f, -114.30542f), 153) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.Interact, 2009767u, new Vector3(-128.80145f, 9.964111f, -114.30542f), 153) { Fly = true }; obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span20[num]; + ref QuestSequence reference19 = ref span4[4]; QuestSequence obj19 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list25 = new List(index2); - CollectionsMarshal.SetCount(list25, index2); - Span span25 = CollectionsMarshal.AsSpan(list25); - num2 = 0; - ref QuestStep reference20 = ref span25[num2]; + num2 = 1; + List list25 = new List(num2); + CollectionsMarshal.SetCount(list25, num2); + ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list25)[0]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(-90.14485f, 1.276046f, -112.51637f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list26 = new List(index3); - CollectionsMarshal.SetCount(list26, index3); - Span span26 = CollectionsMarshal.AsSpan(list26); - num3 = 0; - span26[num3] = 10851u; + num3 = 1; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + CollectionsMarshal.AsSpan(list26)[0] = 10851u; obj20.KillEnemyDataIds = list26; reference20 = obj20; obj19.Steps = list25; reference19 = obj19; - num++; - ref QuestSequence reference21 = ref span20[num]; + ref QuestSequence reference21 = ref span4[5]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -261199,26 +215976,21 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1028769u, new Vector3(-91.17267f, 0.92901844f, -121.38556f), 153) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1028769u, new Vector3(-91.17267f, 0.92901844f, -121.38556f), 153) { StopDistance = 7f }; obj21.Steps = list27; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span20[num]; + ref QuestSequence reference22 = ref span4[6]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(3253) @@ -261232,16 +216004,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "Fifi"; + CollectionsMarshal.AsSpan(list29)[0] = "Fifi"; questRoot6.Author = list29; - index = 7; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference23 = ref span30[num]; + num = 7; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span5 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference23 = ref span5[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -261249,9 +216018,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028756u, new Vector3(-57.358704f, -2.8249152f, 28.42749f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -261264,18 +216031,15 @@ public static class AssemblyQuestLoader }; obj23.Steps = list31; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span5[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list32 = new List(index2); - CollectionsMarshal.SetCount(list32, index2); - Span span32 = CollectionsMarshal.AsSpan(list32); - num2 = 0; - ref QuestStep reference25 = ref span32[num2]; + num2 = 1; + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1028773u, new Vector3(-6.7597656f, 5.4756656f, 47.53174f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard @@ -261283,9 +216047,7 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span33 = CollectionsMarshal.AsSpan(list33); - index3 = 0; - span33[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBB231_03253_Q1_000_000"), @@ -261295,8 +216057,7 @@ public static class AssemblyQuestLoader reference25 = obj25; obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span5[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -261304,31 +216065,25 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418); + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418); obj26.Steps = list34; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span30[num]; + ref QuestSequence reference27 = ref span5[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj27.Steps = list35; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span30[num]; + ref QuestSequence reference28 = ref span5[4]; QuestSequence obj28 = new QuestSequence { Sequence = 4 @@ -261336,42 +216091,34 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference29 = ref span36[index2]; + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list36)[0]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 10852u, new Vector3(-48.600037f, 298.9f, -235.24835f), 155) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list37 = new List(index3); - CollectionsMarshal.SetCount(list37, index3); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = 10852u; + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = 10852u; obj29.KillEnemyDataIds = list37; reference29 = obj29; obj28.Steps = list36; reference28 = obj28; - num++; - ref QuestSequence reference30 = ref span30[num]; + ref QuestSequence reference30 = ref span5[5]; QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 7f }; obj30.Steps = list38; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span30[num]; + ref QuestSequence reference31 = ref span5[6]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -261379,9 +216126,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028757u, new Vector3(-58.213196f, -2.8447464f, 28.915894f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(3254) @@ -261395,26 +216140,21 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "Fifi"; + CollectionsMarshal.AsSpan(list40)[0] = "Fifi"; questRoot7.Author = list40; - index = 6; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference32 = ref span41[num]; + num = 6; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span6 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference32 = ref span6[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -261427,8 +216167,7 @@ public static class AssemblyQuestLoader }; obj32.Steps = list42; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span6[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -261436,30 +216175,24 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1028782u, new Vector3(50.492065f, 118.30926f, -760.1587f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj33.Steps = list43; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span41[num]; + ref QuestSequence reference34 = ref span6[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj34.Steps = list44; reference34 = obj34; - num++; - ref QuestSequence reference35 = ref span41[num]; + ref QuestSequence reference35 = ref span6[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -261467,27 +216200,21 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1028787u, new Vector3(91.081055f, 118.15579f, -739.92523f), 620); obj35.Steps = list45; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span41[num]; + ref QuestSequence reference36 = ref span6[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj36.Steps = list46; reference36 = obj36; - num++; - ref QuestSequence reference37 = ref span41[num]; + ref QuestSequence reference37 = ref span6[5]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -261495,9 +216222,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028792u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028792u, new Vector3(-104.631165f, 5.999999f, 197.4364f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -261518,30 +216243,24 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot8.Author = list48; - index = 4; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference38 = ref span49[num]; + num = 4; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span7 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference38 = ref span7[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list50; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span7[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -261549,34 +216268,27 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj39.Steps = list51; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span49[num]; + ref QuestSequence reference40 = ref span7[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference41 = ref span52[num2]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; 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); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKRA101_03255_YESNO_001") @@ -261585,8 +216297,7 @@ public static class AssemblyQuestLoader reference41 = questStep; obj40.Steps = list52; reference40 = obj40; - num++; - ref QuestSequence reference42 = ref span49[num]; + ref QuestSequence reference42 = ref span7[3]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -261594,9 +216305,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030095u, new Vector3(-0.56463623f, -2.028786f, -17.807312f), 878) { NextQuestId = new QuestId(3256) }; @@ -261609,30 +216318,24 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot9.Author = list55; - index = 4; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference43 = ref span56[num]; + num = 4; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span8 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference43 = ref span8[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj42.Steps = list57; reference43 = obj42; - num++; - ref QuestSequence reference44 = ref span56[num]; + ref QuestSequence reference44 = ref span8[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -261640,9 +216343,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Duty, null, null, 878) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -261651,22 +216352,18 @@ public static class AssemblyQuestLoader }; obj43.Steps = list58; reference44 = obj43; - num++; - ref QuestSequence reference45 = ref span56[num]; + ref QuestSequence reference45 = ref span8[2]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj44.Steps = list59; reference45 = obj44; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span8[3]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -261674,14 +216371,12 @@ public static class AssemblyQuestLoader num2 = 2; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 2009981u, new Vector3(-14.66394f, -2.609314f, 23.819275f), 878) + Span span9 = CollectionsMarshal.AsSpan(list60); + span9[0] = new QuestStep(EInteractionType.Interact, 2009981u, new Vector3(-14.66394f, -2.609314f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - index2++; - span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030104u, new Vector3(101.57922f, -2.8675152E-14f, 94.346436f), 857) + span9[1] = new QuestStep(EInteractionType.CompleteQuest, 1030104u, new Vector3(101.57922f, -2.8675152E-14f, 94.346436f), 857) { NextQuestId = new QuestId(3257) }; @@ -261694,33 +216389,27 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot10.Author = list61; - index = 3; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference47 = ref span62[num]; + num = 3; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span10 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference47 = ref span10[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 6f }; obj46.Steps = list63; reference47 = obj46; - num++; - ref QuestSequence reference48 = ref span62[num]; + ref QuestSequence reference48 = ref span10[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -261728,9 +216417,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Duty, null, null, 878) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -261739,18 +216426,15 @@ public static class AssemblyQuestLoader }; obj47.Steps = list64; reference48 = obj47; - num++; - ref QuestSequence reference49 = ref span62[num]; + ref QuestSequence reference49 = ref span10[2]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f, NextQuestId = new QuestId(3258) @@ -261764,16 +216448,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot11.Author = list66; - index = 5; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference50 = ref span67[num]; + num = 5; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span11 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference50 = ref span11[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -261781,30 +216462,24 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; obj49.Steps = list68; reference50 = obj49; - num++; - ref QuestSequence reference51 = ref span67[num]; + ref QuestSequence reference51 = ref span11[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj50.Steps = list69; reference51 = obj50; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span11[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -261812,28 +216487,23 @@ public static class AssemblyQuestLoader num2 = 2; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span12 = CollectionsMarshal.AsSpan(list70); + span12[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - index2++; - span70[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + span12[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj51.Steps = list70; reference52 = obj51; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span11[3]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list71 = new List(num2); + CollectionsMarshal.SetCount(list71, num2); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -261842,8 +216512,7 @@ public static class AssemblyQuestLoader }; obj52.Steps = list71; reference53 = obj52; - num++; - ref QuestSequence reference54 = ref span67[num]; + ref QuestSequence reference54 = ref span11[4]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -261851,9 +216520,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3259) @@ -261867,33 +216534,27 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; questRoot12.Author = list73; - index = 4; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference55 = ref span74[num]; + num = 4; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span13 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference55 = ref span13[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj54.Steps = list75; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span74[num]; + ref QuestSequence reference56 = ref span13[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -261901,28 +216562,23 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span14 = CollectionsMarshal.AsSpan(list76); + span14[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - index2++; - span76[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + span14[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj55.Steps = list76; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span74[num]; + ref QuestSequence reference57 = ref span13[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 878) { DutyOptions = new DutyOptions { @@ -261931,8 +216587,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list77; reference57 = obj56; - num++; - ref QuestSequence reference58 = ref span74[num]; + ref QuestSequence reference58 = ref span13[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -261940,19 +216595,15 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - ref QuestStep reference59 = ref span78[index2]; + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f }; - index3 = 1; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - span79[num3] = new DialogueChoice + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKRA105_03259_Q2_000_000"), @@ -261970,33 +216621,27 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot13.Author = list80; - index = 4; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference60 = ref span81[num]; + num = 4; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span15 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference60 = ref span15[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj59.Steps = list82; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span81[num]; + ref QuestSequence reference61 = ref span15[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -262004,27 +216649,21 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1030387u, new Vector3(31.967651f, 4.929005f, -9.10968f), 878); + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1030387u, new Vector3(31.967651f, 4.929005f, -9.10968f), 878); obj60.Steps = list83; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span81[num]; + ref QuestSequence reference62 = ref span15[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj61.Steps = list84; reference62 = obj61; - num++; - ref QuestSequence reference63 = ref span81[num]; + ref QuestSequence reference63 = ref span15[3]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -262032,14 +216671,12 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(270.40494f, 7.1558266f, -234.46175f), 815) + Span span16 = CollectionsMarshal.AsSpan(list85); + span16[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(270.40494f, 7.1558266f, -234.46175f), 815) { Fly = true }; - index2++; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030121u, new Vector3(268.8181f, 7.1558256f, -233.66144f), 815) + span16[1] = new QuestStep(EInteractionType.CompleteQuest, 1030121u, new Vector3(268.8181f, 7.1558256f, -233.66144f), 815) { NextQuestId = new QuestId(3787) }; @@ -262052,26 +216689,21 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot14.Author = list86; - index = 5; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference64 = ref span87[num]; + num = 5; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span17 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference64 = ref span17[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -262084,8 +216716,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list88; reference64 = obj63; - num++; - ref QuestSequence reference65 = ref span87[num]; + ref QuestSequence reference65 = ref span17[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -262093,27 +216724,22 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 2010237u, new Vector3(-244.1596f, 5.935669f, 80.03345f), 152) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 2010237u, new Vector3(-244.1596f, 5.935669f, 80.03345f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj64.Steps = list89; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span87[num]; + ref QuestSequence reference66 = ref span17[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num2 = 0; - ref QuestStep reference67 = ref span90[num2]; + num2 = 1; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(-218.21523f, 11.806735f, 18.429258f), 152) { StopDistance = 0.5f, @@ -262122,15 +216748,12 @@ public static class AssemblyQuestLoader num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span91 = CollectionsMarshal.AsSpan(list91); - index3 = 0; - span91[index3] = 11125u; + CollectionsMarshal.AsSpan(list91)[0] = 11125u; obj66.KillEnemyDataIds = list91; reference67 = obj66; obj65.Steps = list90; reference66 = obj65; - num++; - ref QuestSequence reference68 = ref span87[num]; + ref QuestSequence reference68 = ref span17[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -262138,36 +216761,29 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1029029u, new Vector3(-214.64868f, 11.980015f, 25.40625f), 152) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1029029u, new Vector3(-214.64868f, 11.980015f, 25.40625f), 152) { StopDistance = 7f }; obj67.Steps = list92; reference68 = obj67; - num++; - ref QuestSequence reference69 = ref span87[num]; + ref QuestSequence reference69 = ref span17[4]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list93 = new List(index2); - CollectionsMarshal.SetCount(list93, index2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num2 = 0; - ref QuestStep reference70 = ref span93[num2]; + num2 = 1; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list93)[0]; QuestStep obj69 = new QuestStep(EInteractionType.CompleteQuest, 1029033u, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f }; - index3 = 1; - List list94 = new List(index3); - CollectionsMarshal.SetCount(list94, index3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = new DialogueChoice + num3 = 1; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKBB101_03261_Q1_000_081") @@ -262185,17 +216801,14 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "liza"; + CollectionsMarshal.AsSpan(list95)[0] = "liza"; questRoot15.Author = list95; QuestRoot questRoot16 = questRoot2; - index = 9; - list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span96 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference71 = ref span96[num]; + num = 9; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span18 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference71 = ref span18[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -262203,9 +216816,8 @@ public static class AssemblyQuestLoader num2 = 4; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span97 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 152) + Span span19 = CollectionsMarshal.AsSpan(list96); + span19[0] = new QuestStep(EInteractionType.EquipItem, null, null, 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, ItemId = 27357u, @@ -262224,8 +216836,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span97[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) + span19[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-214.67926f, 11.971041f, 25.192627f), 152) { StopDistance = 7f, Fly = true, @@ -262241,34 +216852,28 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { StopDistance = 7f }; obj70.Steps = list96; reference71 = obj70; - num++; - ref QuestSequence reference72 = ref span96[num]; + ref QuestSequence reference72 = ref span18[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj71.Steps = list97; reference72 = obj71; - num++; - ref QuestSequence reference73 = ref span96[num]; + ref QuestSequence reference73 = ref span18[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -262276,9 +216881,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span99 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1029037u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Interact, 1029037u, new Vector3(73.65515f, 13.994091f, -270.83246f), 133) { AethernetShortcut = new AethernetShortcut { @@ -262288,18 +216891,16 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference73 = obj72; - num++; - ref QuestSequence reference74 = ref span96[num]; + ref QuestSequence reference74 = ref span18[3]; QuestSequence obj73 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list99 = new List(index2); - CollectionsMarshal.SetCount(list99, index2); - Span span100 = CollectionsMarshal.AsSpan(list99); - num2 = 0; - ref QuestStep reference75 = ref span100[num2]; + num2 = 3; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + Span span20 = CollectionsMarshal.AsSpan(list99); + ref QuestStep reference75 = ref span20[0]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1000288u, new Vector3(-62.028015f, 7.175424f, -117.60132f), 133) { AethernetShortcut = new AethernetShortcut @@ -262311,67 +216912,46 @@ public static class AssemblyQuestLoader num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - 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); + 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); obj74.CompletionQuestVariablesFlags = list100; reference75 = obj74; - num2++; - ref QuestStep reference76 = ref span100[num2]; + ref QuestStep reference76 = ref span20[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1000286u, new Vector3(-53.574463f, 7.2025366f, -118.36426f), 133); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list101; reference76 = questStep2; - num2++; - ref QuestStep reference77 = ref span100[num2]; + ref QuestStep reference77 = ref span20[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list102; reference77 = questStep3; obj73.Steps = list99; reference74 = obj73; - num++; - ref QuestSequence reference78 = ref span96[num]; + ref QuestSequence reference78 = ref span18[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 @@ -262379,23 +216959,18 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span104 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Interact, 1029041u, new Vector3(-93.98035f, 7.1111856f, -131.33447f), 133); + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1029041u, new Vector3(-93.98035f, 7.1111856f, -131.33447f), 133); obj75.Steps = list103; reference78 = obj75; - num++; - ref QuestSequence reference79 = ref span96[num]; + ref QuestSequence reference79 = ref span18[5]; QuestSequence obj76 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -262405,13 +216980,11 @@ public static class AssemblyQuestLoader }; obj76.Steps = list104; reference79 = obj76; - num++; - span96[num] = new QuestSequence + span18[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference80 = ref span96[num]; + ref QuestSequence reference80 = ref span18[7]; QuestSequence obj77 = new QuestSequence { Sequence = 7 @@ -262419,9 +216992,8 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span106 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-232.38095f, 2.3337264f, -205.92738f), 133) + Span span24 = CollectionsMarshal.AsSpan(list105); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-232.38095f, 2.3337264f, -205.92738f), 133) { AethernetShortcut = new AethernetShortcut { @@ -262429,25 +217001,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaBotanist } }; - index2++; - span106[index2] = new QuestStep(EInteractionType.Interact, 1029043u, new Vector3(-232.25757f, 2.4186904f, -210.98651f), 133) + span24[1] = new QuestStep(EInteractionType.Interact, 1029043u, new Vector3(-232.25757f, 2.4186904f, -210.98651f), 133) { StopDistance = 7f }; obj77.Steps = list105; reference80 = obj77; - num++; - ref QuestSequence reference81 = ref span96[num]; + ref QuestSequence reference81 = ref span18[8]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -262467,17 +217035,14 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span108 = CollectionsMarshal.AsSpan(list107); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot17.Author = list107; QuestRoot questRoot18 = questRoot2; - index = 7; - list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span109 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference82 = ref span109[num]; + num = 7; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span25 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference82 = ref span25[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -262485,9 +217050,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span110 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029044u, new Vector3(18.44812f, 7.9999833f, -115.31244f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -262505,18 +217068,15 @@ public static class AssemblyQuestLoader }; obj79.Steps = list108; reference82 = obj79; - num++; - ref QuestSequence reference83 = ref span109[num]; + ref QuestSequence reference83 = ref span25[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -262527,8 +217087,7 @@ public static class AssemblyQuestLoader }; obj80.Steps = list109; reference83 = obj80; - num++; - ref QuestSequence reference84 = ref span109[num]; + ref QuestSequence reference84 = ref span25[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -262536,38 +217095,32 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - 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) + 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) { Fly = true }; obj81.Steps = list110; reference84 = obj81; - num++; - ref QuestSequence reference85 = ref span109[num]; + ref QuestSequence reference85 = ref span25[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - num2++; - span113[num2] = new QuestStep(EInteractionType.Interact, 1029062u, new Vector3(-306.11127f, -31.525063f, 171.6792f), 145); + span27[1] = new QuestStep(EInteractionType.Interact, 1029062u, new Vector3(-306.11127f, -31.525063f, 171.6792f), 145); obj82.Steps = list111; reference85 = obj82; - num++; - ref QuestSequence reference86 = ref span109[num]; + ref QuestSequence reference86 = ref span25[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 @@ -262575,42 +217128,34 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span114 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - ref QuestStep reference87 = ref span114[index2]; + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list112)[0]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, null, new Vector3(-292.66827f, -32.554207f, 158.0957f), 145) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + Span span28 = CollectionsMarshal.AsSpan(list113); + span28[0] = 11126u; + span28[1] = 11127u; obj84.KillEnemyDataIds = list113; reference87 = obj84; obj83.Steps = list112; reference86 = obj83; - num++; - ref QuestSequence reference88 = ref span109[num]; + ref QuestSequence reference88 = ref span25[5]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj85.Steps = list114; reference88 = obj85; - num++; - ref QuestSequence reference89 = ref span109[num]; + ref QuestSequence reference89 = ref span25[6]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -262618,9 +217163,7 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span117 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -262640,27 +217183,22 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span118 = CollectionsMarshal.AsSpan(list116); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list116)[0] = "liza"; questRoot19.Author = list116; QuestRoot questRoot20 = questRoot2; - index = 10; - list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span119 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference90 = ref span119[num]; + num = 10; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span29 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference90 = ref span29[0]; QuestSequence obj87 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list117)[0]; QuestStep obj88 = new QuestStep(EInteractionType.AcceptQuest, 1029073u, new Vector3(-17.380127f, 40.000565f, -0.3204956f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -262678,17 +217216,14 @@ public static class AssemblyQuestLoader num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span121 = CollectionsMarshal.AsSpan(list118); - index3 = 0; - span121[index3] = 128; + CollectionsMarshal.AsSpan(list118)[0] = 128; obj89.InTerritory = list118; skipConditions.AetheryteShortcutIf = obj89; obj88.SkipConditions = skipConditions; reference91 = obj88; obj87.Steps = list117; reference90 = obj87; - num++; - ref QuestSequence reference92 = ref span119[num]; + ref QuestSequence reference92 = ref span29[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -262696,93 +217231,68 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span122 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) + Span span30 = CollectionsMarshal.AsSpan(list119); + span30[0] = new QuestStep(EInteractionType.Interact, 1003597u, new Vector3(8.194031f, 39.999973f, 17.746216f), 128) { TargetTerritoryId = (ushort)129 }; - index2++; - span122[index2] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129); + span30[1] = new QuestStep(EInteractionType.Interact, 1029078u, new Vector3(-0.07635498f, 20.333344f, -6.3935547f), 129); obj90.Steps = list119; reference92 = obj90; - num++; - ref QuestSequence reference93 = ref span119[num]; + ref QuestSequence reference93 = ref span29[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span123 = CollectionsMarshal.AsSpan(list120); - num2 = 0; - ref QuestStep reference94 = ref span123[num2]; + num2 = 3; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span31 = CollectionsMarshal.AsSpan(list120); + ref QuestStep reference94 = ref span31[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1003355u, new Vector3(-60.868286f, 18.000334f, 7.4921875f), 129); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list121; reference94 = questStep4; - num2++; - ref QuestStep reference95 = ref span123[num2]; + ref QuestStep reference95 = ref span31[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list122; reference95 = questStep5; - num2++; - ref QuestStep reference96 = ref span123[num2]; + ref QuestStep reference96 = ref span31[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1001023u, new Vector3(-78.62976f, 18.000334f, -22.62915f), 129); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list123; reference96 = questStep6; obj91.Steps = list120; reference93 = obj91; - num++; - ref QuestSequence reference97 = ref span119[num]; + ref QuestSequence reference97 = ref span29[3]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -262790,31 +217300,25 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span127 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 1029081u, new Vector3(-153.8263f, 18.2f, 22.842712f), 129); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1029081u, new Vector3(-153.8263f, 18.2f, 22.842712f), 129); obj92.Steps = list124; reference97 = obj92; - num++; - ref QuestSequence reference98 = ref span119[num]; + ref QuestSequence reference98 = ref span29[4]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj93.Steps = list125; reference98 = obj93; - num++; - ref QuestSequence reference99 = ref span119[num]; + ref QuestSequence reference99 = ref span29[5]; QuestSequence obj94 = new QuestSequence { Sequence = 5 @@ -262822,9 +217326,8 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span129 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - ref QuestStep reference100 = ref span129[index2]; + Span span35 = CollectionsMarshal.AsSpan(list126); + ref QuestStep reference100 = ref span35[0]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2010241u, new Vector3(-34.53119f, 46.92151f, 541.22217f), 135) { StopDistance = 0.5f, @@ -262834,30 +217337,21 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span130 = CollectionsMarshal.AsSpan(list127); - index3 = 0; - span130[index3] = 11128u; + CollectionsMarshal.AsSpan(list127)[0] = 11128u; obj95.KillEnemyDataIds = list127; - 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); + 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); obj95.CompletionQuestVariablesFlags = list128; reference100 = obj95; - index2++; - ref QuestStep reference101 = ref span129[index2]; + ref QuestStep reference101 = ref span35[1]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2010242u, new Vector3(-59.006653f, 57.297607f, 492.14917f), 135) { Fly = true, @@ -262866,51 +217360,39 @@ public static class AssemblyQuestLoader num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span132 = CollectionsMarshal.AsSpan(list129); - index3 = 0; - span132[index3] = 11129u; - index3++; - span132[index3] = 11130u; + Span span37 = CollectionsMarshal.AsSpan(list129); + span37[0] = 11129u; + span37[1] = 11130u; obj96.KillEnemyDataIds = list129; - 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); + 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); obj96.CompletionQuestVariablesFlags = list130; reference101 = obj96; obj94.Steps = list126; reference99 = obj94; - num++; - ref QuestSequence reference102 = ref span119[num]; + ref QuestSequence reference102 = ref span29[6]; QuestSequence obj97 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj97.Steps = list131; reference102 = obj97; - num++; - ref QuestSequence reference103 = ref span119[num]; + ref QuestSequence reference103 = ref span29[7]; QuestSequence obj98 = new QuestSequence { Sequence = 7 @@ -262918,30 +217400,24 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span135 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 1029092u, new Vector3(322.37732f, 75.949196f, -322.43848f), 135) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1029092u, new Vector3(322.37732f, 75.949196f, -322.43848f), 135) { Fly = true }; obj98.Steps = list132; reference103 = obj98; - num++; - ref QuestSequence reference104 = ref span119[num]; + ref QuestSequence reference104 = ref span29[8]; QuestSequence obj99 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj99.Steps = list133; reference104 = obj99; - num++; - ref QuestSequence reference105 = ref span119[num]; + ref QuestSequence reference105 = ref span29[9]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -262949,9 +217425,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span137 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029098u, new Vector3(53.97119f, 23.979126f, 8.102478f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -262971,27 +217445,22 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span138 = CollectionsMarshal.AsSpan(list135); - index = 0; - span138[index] = "liza"; + CollectionsMarshal.AsSpan(list135)[0] = "liza"; questRoot21.Author = list135; QuestRoot questRoot22 = questRoot2; - index = 8; - list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span139 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference106 = ref span139[num]; + num = 8; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span39 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference106 = ref span39[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -263009,8 +217478,7 @@ public static class AssemblyQuestLoader }; obj101.Steps = list136; reference106 = obj101; - num++; - ref QuestSequence reference107 = ref span139[num]; + ref QuestSequence reference107 = ref span39[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -263018,9 +217486,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span141 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1029103u, new Vector3(-151.59845f, 23.14059f, -75.60846f), 418) { AethernetShortcut = new AethernetShortcut { @@ -263030,26 +217496,22 @@ public static class AssemblyQuestLoader }; obj102.Steps = list137; reference107 = obj102; - num++; - ref QuestSequence reference108 = ref span139[num]; + ref QuestSequence reference108 = ref span39[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj103.Steps = list138; reference108 = obj103; - num++; - ref QuestSequence reference109 = ref span139[num]; + ref QuestSequence reference109 = ref span39[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -263057,26 +217519,22 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span143 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1029109u, new Vector3(213.09216f, 222.50911f, 291.73718f), 155) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1029109u, new Vector3(213.09216f, 222.50911f, 291.73718f), 155) { Fly = true }; obj104.Steps = list139; reference109 = obj104; - num++; - ref QuestSequence reference110 = ref span139[num]; + ref QuestSequence reference110 = ref span39[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list140 = new List(index2); - CollectionsMarshal.SetCount(list140, index2); - Span span144 = CollectionsMarshal.AsSpan(list140); - num2 = 0; - ref QuestStep reference111 = ref span144[num2]; + num2 = 3; + List list140 = new List(num2); + CollectionsMarshal.SetCount(list140, num2); + Span span40 = CollectionsMarshal.AsSpan(list140); + ref QuestStep reference111 = ref span40[0]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2010298u, new Vector3(252.64355f, 246.96729f, 189.53223f), 155) { Fly = true, @@ -263085,30 +217543,21 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span145 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span145[index3] = 11131u; + CollectionsMarshal.AsSpan(list141)[0] = 11131u; obj106.KillEnemyDataIds = list141; - 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); + 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); obj106.CompletionQuestVariablesFlags = list142; reference111 = obj106; - num2++; - ref QuestStep reference112 = ref span144[num2]; + ref QuestStep reference112 = ref span40[1]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2010299u, new Vector3(163.25623f, 274.3114f, 5.2643433f), 155) { Fly = true, @@ -263117,32 +217566,23 @@ public static class AssemblyQuestLoader num3 = 2; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span147 = CollectionsMarshal.AsSpan(list143); - index3 = 0; - span147[index3] = 11132u; - index3++; - span147[index3] = 11133u; + Span span42 = CollectionsMarshal.AsSpan(list143); + span42[0] = 11132u; + span42[1] = 11133u; obj107.KillEnemyDataIds = list143; - 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); + 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); obj107.CompletionQuestVariablesFlags = list144; reference112 = obj107; - num2++; - ref QuestStep reference113 = ref span144[num2]; + ref QuestStep reference113 = ref span40[2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2010300u, new Vector3(285.3894f, 299.97705f, -78.66034f), 155) { Fly = true, @@ -263151,36 +217591,26 @@ public static class AssemblyQuestLoader num3 = 3; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span149 = CollectionsMarshal.AsSpan(list145); - index3 = 0; - span149[index3] = 11134u; - index3++; - span149[index3] = 11135u; - index3++; - span149[index3] = 11136u; + Span span44 = CollectionsMarshal.AsSpan(list145); + span44[0] = 11134u; + span44[1] = 11135u; + span44[2] = 11136u; obj108.KillEnemyDataIds = list145; - 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); + 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); obj108.CompletionQuestVariablesFlags = list146; reference113 = obj108; obj105.Steps = list140; reference110 = obj105; - num++; - ref QuestSequence reference114 = ref span139[num]; + ref QuestSequence reference114 = ref span39[5]; QuestSequence obj109 = new QuestSequence { Sequence = 5 @@ -263188,33 +217618,27 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span151 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 2010301u, new Vector3(240.28369f, 302.02173f, -174.88367f), 155) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 2010301u, new Vector3(240.28369f, 302.02173f, -174.88367f), 155) { Fly = true }; obj109.Steps = list147; reference114 = obj109; - num++; - ref QuestSequence reference115 = ref span139[num]; + ref QuestSequence reference115 = ref span39[6]; QuestSequence obj110 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj110.Steps = list148; reference115 = obj110; - num++; - ref QuestSequence reference116 = ref span139[num]; + ref QuestSequence reference116 = ref span39[7]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -263222,9 +217646,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span153 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029099u, new Vector3(54.917114f, 23.979126f, 8.926453f), 418) { NextQuestId = new QuestId(3266) }; @@ -263237,26 +217659,21 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span154 = CollectionsMarshal.AsSpan(list150); - index = 0; - span154[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot23.Author = list150; - index = 6; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span155 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference117 = ref span155[num]; + num = 6; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span46 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference117 = ref span46[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -263274,8 +217691,7 @@ public static class AssemblyQuestLoader }; obj112.Steps = list152; reference117 = obj112; - num++; - ref QuestSequence reference118 = ref span155[num]; + ref QuestSequence reference118 = ref span46[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -263283,9 +217699,7 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span157 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.Interact, 1029120u, new Vector3(-56.01587f, 15.140585f, -35.324707f), 418) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1029120u, new Vector3(-56.01587f, 15.140585f, -35.324707f), 418) { AethernetShortcut = new AethernetShortcut { @@ -263295,31 +217709,26 @@ public static class AssemblyQuestLoader }; obj113.Steps = list153; reference118 = obj113; - num++; - ref QuestSequence reference119 = ref span155[num]; + ref QuestSequence reference119 = ref span46[2]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj114.Steps = list154; reference119 = obj114; - num++; - span155[num] = new QuestSequence + span46[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference120 = ref span155[num]; + ref QuestSequence reference120 = ref span46[4]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -263327,9 +217736,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span159 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 1029113u, new Vector3(55.649536f, 23.979126f, 9.689453f), 418) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1029113u, new Vector3(55.649536f, 23.979126f, 9.689453f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -263340,18 +217747,15 @@ public static class AssemblyQuestLoader }; obj115.Steps = list155; reference120 = obj115; - num++; - ref QuestSequence reference121 = ref span155[num]; + ref QuestSequence reference121 = ref span46[5]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -263364,16 +217768,13 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span161 = CollectionsMarshal.AsSpan(list157); - index = 0; - span161[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list157)[0] = "Cacahuetes"; questRoot24.Author = list157; - index = 5; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span162 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference122 = ref span162[num]; + num = 5; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span47 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference122 = ref span47[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -263381,9 +217782,7 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span163 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029998u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029998u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263401,26 +217800,22 @@ public static class AssemblyQuestLoader }; obj117.Steps = list159; reference122 = obj117; - num++; - ref QuestSequence reference123 = ref span162[num]; + ref QuestSequence reference123 = ref span47[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj118.Steps = list160; reference123 = obj118; - num++; - ref QuestSequence reference124 = ref span162[num]; + ref QuestSequence reference124 = ref span47[2]; QuestSequence obj119 = new QuestSequence { Sequence = 2 @@ -263428,9 +217823,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span165 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - ref QuestStep reference125 = ref span165[index2]; + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list161)[0]; QuestStep obj120 = new QuestStep(EInteractionType.Combat, null, new Vector3(340.6667f, 3.0521033f, 208.3552f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -263438,29 +217831,23 @@ public static class AssemblyQuestLoader num3 = 1; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - Span span166 = CollectionsMarshal.AsSpan(list162); - index3 = 0; - span166[index3] = 10865u; + CollectionsMarshal.AsSpan(list162)[0] = 10865u; obj120.KillEnemyDataIds = list162; reference125 = obj120; obj119.Steps = list161; reference124 = obj119; - num++; - ref QuestSequence reference126 = ref span162[num]; + ref QuestSequence reference126 = ref span47[3]; QuestSequence obj121 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj121.Steps = list163; reference126 = obj121; - num++; - ref QuestSequence reference127 = ref span162[num]; + ref QuestSequence reference127 = ref span47[4]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -263468,9 +217855,7 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span168 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263496,26 +217881,21 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span169 = CollectionsMarshal.AsSpan(list165); - index = 0; - span169[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list165)[0] = "Cacahuetes"; questRoot25.Author = list165; - index = 6; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span170 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference128 = ref span170[num]; + num = 6; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span48 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference128 = ref span48[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263533,8 +217913,7 @@ public static class AssemblyQuestLoader }; obj123.Steps = list167; reference128 = obj123; - num++; - ref QuestSequence reference129 = ref span170[num]; + ref QuestSequence reference129 = ref span48[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -263542,43 +217921,35 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span172 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1030004u, new Vector3(689.1127f, 30.11682f, 278.85852f), 814) + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1030004u, new Vector3(689.1127f, 30.11682f, 278.85852f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj124.Steps = list168; reference129 = obj124; - num++; - ref QuestSequence reference130 = ref span170[num]; + ref QuestSequence reference130 = ref span48[2]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list169 = new List(index2); - CollectionsMarshal.SetCount(list169, index2); - Span span173 = CollectionsMarshal.AsSpan(list169); - num2 = 0; - ref QuestStep reference131 = ref span173[num2]; + num2 = 1; + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list169)[0]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2009999u, new Vector3(529.3812f, 11.9782715f, 370.83997f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list170 = new List(index3); - CollectionsMarshal.SetCount(list170, index3); - Span span174 = CollectionsMarshal.AsSpan(list170); - num3 = 0; - span174[num3] = 10866u; + num3 = 1; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + CollectionsMarshal.AsSpan(list170)[0] = 10866u; obj126.KillEnemyDataIds = list170; reference131 = obj126; obj125.Steps = list169; reference130 = obj125; - num++; - ref QuestSequence reference132 = ref span170[num]; + ref QuestSequence reference132 = ref span48[3]; QuestSequence obj127 = new QuestSequence { Sequence = 3 @@ -263586,9 +217957,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span175 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference133 = ref span175[index2]; + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list171)[0]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2010000u, new Vector3(342.48877f, 16.55597f, 454.24573f), 814) { Fly = true, @@ -263597,32 +217966,26 @@ public static class AssemblyQuestLoader num3 = 1; List list172 = new List(num3); CollectionsMarshal.SetCount(list172, num3); - Span span176 = CollectionsMarshal.AsSpan(list172); - index3 = 0; - span176[index3] = 10867u; + CollectionsMarshal.AsSpan(list172)[0] = 10867u; obj128.KillEnemyDataIds = list172; reference133 = obj128; obj127.Steps = list171; reference132 = obj127; - num++; - ref QuestSequence reference134 = ref span170[num]; + ref QuestSequence reference134 = ref span48[4]; QuestSequence obj129 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj129.Steps = list173; reference134 = obj129; - num++; - ref QuestSequence reference135 = ref span170[num]; + ref QuestSequence reference135 = ref span48[5]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -263630,9 +217993,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span178 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263658,26 +218019,21 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span179 = CollectionsMarshal.AsSpan(list175); - index = 0; - span179[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list175)[0] = "Cacahuetes"; questRoot26.Author = list175; - index = 6; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span180 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference136 = ref span180[num]; + num = 6; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span49 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference136 = ref span49[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263695,8 +218051,7 @@ public static class AssemblyQuestLoader }; obj131.Steps = list177; reference136 = obj131; - num++; - ref QuestSequence reference137 = ref span180[num]; + ref QuestSequence reference137 = ref span49[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -263704,36 +218059,29 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span182 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1030012u, new Vector3(279.469f, 1.4685827f, -281.94098f), 815) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1030012u, new Vector3(279.469f, 1.4685827f, -281.94098f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj132.Steps = list178; reference137 = obj132; - num++; - ref QuestSequence reference138 = ref span180[num]; + ref QuestSequence reference138 = ref span49[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list179 = new List(index2); - CollectionsMarshal.SetCount(list179, index2); - Span span183 = CollectionsMarshal.AsSpan(list179); - num2 = 0; - ref QuestStep reference139 = ref span183[num2]; + num2 = 1; + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list179)[0]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2010002u, new Vector3(279.65198f, 1.4800415f, -282.7345f), 815) { StopDistance = 4f }; - index3 = 1; - List list180 = new List(index3); - CollectionsMarshal.SetCount(list180, index3); - Span span184 = CollectionsMarshal.AsSpan(list180); - num3 = 0; - span184[num3] = new DialogueChoice + num3 = 1; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA221_03269_Q1_000_000"), @@ -263743,8 +218091,7 @@ public static class AssemblyQuestLoader reference139 = obj134; obj133.Steps = list179; reference138 = obj133; - num++; - ref QuestSequence reference140 = ref span180[num]; + ref QuestSequence reference140 = ref span49[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -263752,33 +218099,27 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span185 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1030013u, new Vector3(612.3292f, -25.655535f, -36.66742f), 815) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1030013u, new Vector3(612.3292f, -25.655535f, -36.66742f), 815) { Fly = true }; obj135.Steps = list181; reference140 = obj135; - num++; - ref QuestSequence reference141 = ref span180[num]; + ref QuestSequence reference141 = ref span49[4]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f }; obj136.Steps = list182; reference141 = obj136; - num++; - ref QuestSequence reference142 = ref span180[num]; + ref QuestSequence reference142 = ref span49[5]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -263786,9 +218127,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span187 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263814,26 +218153,21 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - Span span188 = CollectionsMarshal.AsSpan(list184); - index = 0; - span188[index] = "AUTHOR"; + CollectionsMarshal.AsSpan(list184)[0] = "AUTHOR"; questRoot27.Author = list184; - index = 7; - List list185 = new List(index); - CollectionsMarshal.SetCount(list185, index); - Span span189 = CollectionsMarshal.AsSpan(list185); - num = 0; - ref QuestSequence reference143 = ref span189[num]; + num = 7; + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span50 = CollectionsMarshal.AsSpan(list185); + ref QuestSequence reference143 = ref span50[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263851,8 +218185,7 @@ public static class AssemblyQuestLoader }; obj138.Steps = list186; reference143 = obj138; - num++; - ref QuestSequence reference144 = ref span189[num]; + ref QuestSequence reference144 = ref span50[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -263860,26 +218193,21 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span191 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1030015u, new Vector3(-83.05487f, -19.061518f, 309.83435f), 817) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1030015u, new Vector3(-83.05487f, -19.061518f, 309.83435f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj139.Steps = list187; reference144 = obj139; - num++; - ref QuestSequence reference145 = ref span189[num]; + ref QuestSequence reference145 = ref span50[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list188 = new List(index2); - CollectionsMarshal.SetCount(list188, index2); - Span span192 = CollectionsMarshal.AsSpan(list188); - num2 = 0; - ref QuestStep reference146 = ref span192[num2]; + num2 = 1; + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list188)[0]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, 2010003u, new Vector3(263.9048f, 12.436096f, 103.990234f), 817) { Fly = true, @@ -263888,15 +218216,12 @@ public static class AssemblyQuestLoader num3 = 1; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span193 = CollectionsMarshal.AsSpan(list189); - index3 = 0; - span193[index3] = 10950u; + CollectionsMarshal.AsSpan(list189)[0] = 10950u; obj141.KillEnemyDataIds = list189; reference146 = obj141; obj140.Steps = list188; reference145 = obj140; - num++; - ref QuestSequence reference147 = ref span189[num]; + ref QuestSequence reference147 = ref span50[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -263904,48 +218229,39 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span194 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - ref QuestStep reference148 = ref span194[index2]; + ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list190)[0]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, 2010004u, new Vector3(446.0669f, 8.041443f, 123.03345f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list191 = new List(index3); - CollectionsMarshal.SetCount(list191, index3); - Span span195 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span195[num3] = 10869u; + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = 10869u; obj143.KillEnemyDataIds = list191; reference148 = obj143; obj142.Steps = list190; reference147 = obj142; - num++; - ref QuestSequence reference149 = ref span189[num]; + ref QuestSequence reference149 = ref span50[4]; QuestSequence obj144 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj144.Steps = list192; reference149 = obj144; - num++; - span189[num] = new QuestSequence + span50[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference150 = ref span189[num]; + ref QuestSequence reference150 = ref span50[6]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -263953,9 +218269,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span197 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031158u, new Vector3(-26.657532f, 3.999815f, 209.88782f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -263981,26 +218295,21 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span198 = CollectionsMarshal.AsSpan(list194); - index = 0; - span198[index] = "AUTHOR"; + CollectionsMarshal.AsSpan(list194)[0] = "AUTHOR"; questRoot28.Author = list194; - index = 4; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span199 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference151 = ref span199[num]; + num = 4; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span51 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference151 = ref span51[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264018,8 +218327,7 @@ public static class AssemblyQuestLoader }; obj146.Steps = list196; reference151 = obj146; - num++; - ref QuestSequence reference152 = ref span199[num]; + ref QuestSequence reference152 = ref span51[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 @@ -264027,33 +218335,27 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span201 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj147.Steps = list197; reference152 = obj147; - num++; - ref QuestSequence reference153 = ref span199[num]; + ref QuestSequence reference153 = ref span51[2]; QuestSequence obj148 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj148.Steps = list198; reference153 = obj148; - num++; - ref QuestSequence reference154 = ref span199[num]; + ref QuestSequence reference154 = ref span51[3]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -264061,9 +218363,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span203 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030021u, new Vector3(-456.6568f, 417.12558f, -597.1008f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, NextQuestId = new QuestId(3272) @@ -264078,27 +218378,22 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span204 = CollectionsMarshal.AsSpan(list200); - index = 0; - span204[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list200)[0] = "Cacahuetes"; questRoot29.Author = list200; QuestRoot questRoot30 = questRoot2; - index = 7; - list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span205 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference155 = ref span205[num]; + num = 7; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span52 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference155 = ref span52[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -264111,8 +218406,7 @@ public static class AssemblyQuestLoader }; obj150.Steps = list201; reference155 = obj150; - num++; - ref QuestSequence reference156 = ref span205[num]; + ref QuestSequence reference156 = ref span52[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -264120,9 +218414,7 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span207 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - ref QuestStep reference157 = ref span207[index2]; + ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list202)[0]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 2010006u, new Vector3(-115.31244f, 428.18335f, -621.4542f), 814) { Fly = true, @@ -264131,42 +218423,34 @@ public static class AssemblyQuestLoader num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span208 = CollectionsMarshal.AsSpan(list203); - index3 = 0; - span208[index3] = 10870u; + CollectionsMarshal.AsSpan(list203)[0] = 10870u; obj152.KillEnemyDataIds = list203; reference157 = obj152; obj151.Steps = list202; reference156 = obj151; - num++; - ref QuestSequence reference158 = ref span205[num]; + ref QuestSequence reference158 = ref span52[2]; QuestSequence obj153 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span209 = CollectionsMarshal.AsSpan(list204); - num2 = 0; - ref QuestStep reference159 = ref span209[num2]; + num2 = 1; + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep obj154 = new QuestStep(EInteractionType.Combat, 2010007u, new Vector3(21.194763f, 348.89746f, -251.88074f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list205 = new List(index3); - CollectionsMarshal.SetCount(list205, index3); - Span span210 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - span210[num3] = 10871u; + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = 10871u; obj154.KillEnemyDataIds = list205; reference159 = obj154; obj153.Steps = list204; reference158 = obj153; - num++; - ref QuestSequence reference160 = ref span205[num]; + ref QuestSequence reference160 = ref span52[3]; QuestSequence obj155 = new QuestSequence { Sequence = 3 @@ -264174,9 +218458,7 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span211 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - ref QuestStep reference161 = ref span211[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list206)[0]; QuestStep obj156 = new QuestStep(EInteractionType.SinglePlayerDuty, 1030035u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814) { Fly = true @@ -264185,30 +218467,24 @@ public static class AssemblyQuestLoader num3 = 1; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - Span span212 = CollectionsMarshal.AsSpan(list207); - index3 = 0; - span212[index3] = "Currently it won't work, because the logic is missing NPC healing."; + CollectionsMarshal.AsSpan(list207)[0] = "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; - num++; - ref QuestSequence reference162 = ref span205[num]; + ref QuestSequence reference162 = ref span52[4]; QuestSequence obj157 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj157.Steps = list208; reference162 = obj157; - num++; - ref QuestSequence reference163 = ref span205[num]; + ref QuestSequence reference163 = ref span52[5]; QuestSequence obj158 = new QuestSequence { Sequence = 5 @@ -264216,23 +218492,18 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span214 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1030038u, new Vector3(-650.35474f, 352.45102f, -129.01508f), 814); obj158.Steps = list209; reference163 = obj158; - num++; - ref QuestSequence reference164 = ref span205[num]; + ref QuestSequence reference164 = ref span52[6]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264257,16 +218528,13 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span216 = CollectionsMarshal.AsSpan(list211); - index = 0; - span216[index] = "Fifi"; + CollectionsMarshal.AsSpan(list211)[0] = "Fifi"; questRoot31.Author = list211; - index = 6; - List list212 = new List(index); - CollectionsMarshal.SetCount(list212, index); - Span span217 = CollectionsMarshal.AsSpan(list212); - num = 0; - ref QuestSequence reference165 = ref span217[num]; + num = 6; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span53 = CollectionsMarshal.AsSpan(list212); + ref QuestSequence reference165 = ref span53[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -264274,9 +218542,7 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span218 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030126u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030126u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264294,18 +218560,15 @@ public static class AssemblyQuestLoader }; obj160.Steps = list213; reference165 = obj160; - num++; - ref QuestSequence reference166 = ref span217[num]; + ref QuestSequence reference166 = ref span53[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -264316,8 +218579,7 @@ public static class AssemblyQuestLoader }; obj161.Steps = list214; reference166 = obj161; - num++; - ref QuestSequence reference167 = ref span217[num]; + ref QuestSequence reference167 = ref span53[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 @@ -264325,42 +218587,34 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span220 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.UseItem, 2010396u, new Vector3(195.48328f, -0.7477417f, 370.93152f), 813) + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.UseItem, 2010396u, new Vector3(195.48328f, -0.7477417f, 370.93152f), 813) { ItemId = 2002718u }; obj162.Steps = list215; reference167 = obj162; - num++; - ref QuestSequence reference168 = ref span217[num]; + ref QuestSequence reference168 = ref span53[3]; QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list216 = new List(index2); - CollectionsMarshal.SetCount(list216, index2); - Span span221 = CollectionsMarshal.AsSpan(list216); - num2 = 0; - ref QuestStep reference169 = ref span221[num2]; + num2 = 1; + List list216 = new List(num2); + CollectionsMarshal.SetCount(list216, num2); + ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list216)[0]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2010397u, new Vector3(203.90625f, -0.5340576f, 389.82214f), 813) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list217 = new List(index3); - CollectionsMarshal.SetCount(list217, index3); - Span span222 = CollectionsMarshal.AsSpan(list217); - num3 = 0; - span222[num3] = 10872u; + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + CollectionsMarshal.AsSpan(list217)[0] = 10872u; obj164.KillEnemyDataIds = list217; reference169 = obj164; obj163.Steps = list216; reference168 = obj163; - num++; - ref QuestSequence reference170 = ref span217[num]; + ref QuestSequence reference170 = ref span53[4]; QuestSequence obj165 = new QuestSequence { Sequence = 4 @@ -264368,26 +218622,21 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span223 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 1031013u, new Vector3(200.09155f, -0.39049676f, 389.4254f), 813) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1031013u, new Vector3(200.09155f, -0.39049676f, 389.4254f), 813) { StopDistance = 5f }; obj165.Steps = list218; reference170 = obj165; - num++; - ref QuestSequence reference171 = ref span217[num]; + ref QuestSequence reference171 = ref span53[5]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264406,16 +218655,13 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span225 = CollectionsMarshal.AsSpan(list220); - index = 0; - span225[index] = "Fifi"; + CollectionsMarshal.AsSpan(list220)[0] = "Fifi"; questRoot32.Author = list220; - index = 6; - List list221 = new List(index); - CollectionsMarshal.SetCount(list221, index); - Span span226 = CollectionsMarshal.AsSpan(list221); - num = 0; - ref QuestSequence reference172 = ref span226[num]; + num = 6; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span54 = CollectionsMarshal.AsSpan(list221); + ref QuestSequence reference172 = ref span54[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -264423,9 +218669,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span227 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264443,26 +218687,22 @@ public static class AssemblyQuestLoader }; obj167.Steps = list222; reference172 = obj167; - num++; - ref QuestSequence reference173 = ref span226[num]; + ref QuestSequence reference173 = ref span54[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj168.Steps = list223; reference173 = obj168; - num++; - ref QuestSequence reference174 = ref span226[num]; + ref QuestSequence reference174 = ref span54[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -264470,26 +218710,21 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span229 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 2010399u, new Vector3(613.39734f, -33.585205f, -180.95679f), 815) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 2010399u, new Vector3(613.39734f, -33.585205f, -180.95679f), 815) { Fly = true }; obj169.Steps = list224; reference174 = obj169; - num++; - ref QuestSequence reference175 = ref span226[num]; + ref QuestSequence reference175 = ref span54[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list225 = new List(index2); - CollectionsMarshal.SetCount(list225, index2); - Span span230 = CollectionsMarshal.AsSpan(list225); - num2 = 0; - ref QuestStep reference176 = ref span230[num2]; + num2 = 1; + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list225)[0]; QuestStep obj171 = new QuestStep(EInteractionType.Combat, 2010400u, new Vector3(536.9192f, -33.737732f, 38.83423f), 815) { Fly = true, @@ -264498,15 +218733,12 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span231 = CollectionsMarshal.AsSpan(list226); - index3 = 0; - span231[index3] = 10873u; + CollectionsMarshal.AsSpan(list226)[0] = 10873u; obj171.KillEnemyDataIds = list226; reference176 = obj171; obj170.Steps = list225; reference175 = obj170; - num++; - ref QuestSequence reference177 = ref span226[num]; + ref QuestSequence reference177 = ref span54[4]; QuestSequence obj172 = new QuestSequence { Sequence = 4 @@ -264514,26 +218746,21 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span232 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 2010401u, new Vector3(469.0775f, -32.791687f, -288.44135f), 815) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 2010401u, new Vector3(469.0775f, -32.791687f, -288.44135f), 815) { Fly = true }; obj172.Steps = list227; reference177 = obj172; - num++; - ref QuestSequence reference178 = ref span226[num]; + ref QuestSequence reference178 = ref span54[5]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264548,20 +218775,19 @@ public static class AssemblyQuestLoader questRoot32.QuestSequence = list221; AddQuest(questId25, questRoot32); QuestId questId26 = new QuestId(3275); - QuestRoot questRoot33 = new QuestRoot(); + questRoot2 = new QuestRoot(); + QuestRoot questRoot33 = questRoot2; num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span234 = CollectionsMarshal.AsSpan(list229); - index = 0; - span234[index] = "Fifi"; + CollectionsMarshal.AsSpan(list229)[0] = "Fifi"; questRoot33.Author = list229; - index = 7; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span235 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference179 = ref span235[num]; + 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]; QuestSequence obj174 = new QuestSequence { Sequence = 0 @@ -264569,9 +218795,7 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span236 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264589,26 +218813,22 @@ public static class AssemblyQuestLoader }; obj174.Steps = list231; reference179 = obj174; - num++; - ref QuestSequence reference180 = ref span235[num]; + ref QuestSequence reference180 = ref span55[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj175.Steps = list232; reference180 = obj175; - num++; - ref QuestSequence reference181 = ref span235[num]; + ref QuestSequence reference181 = ref span55[2]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -264616,33 +218836,27 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span238 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 2010402u, new Vector3(-550.7744f, 29.160034f, 363.4851f), 814) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 2010402u, new Vector3(-550.7744f, 29.160034f, 363.4851f), 814) { Fly = true }; obj176.Steps = list233; reference181 = obj176; - num++; - ref QuestSequence reference182 = ref span235[num]; + ref QuestSequence reference182 = ref span55[3]; QuestSequence obj177 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj177.Steps = list234; reference182 = obj177; - num++; - ref QuestSequence reference183 = ref span235[num]; + ref QuestSequence reference183 = ref span55[4]; QuestSequence obj178 = new QuestSequence { Sequence = 4 @@ -264650,33 +218864,27 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span240 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.Interact, 1030136u, new Vector3(-192.58417f, 26.771265f, 248.46265f), 814) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1030136u, new Vector3(-192.58417f, 26.771265f, 248.46265f), 814) { Fly = true }; obj178.Steps = list235; reference183 = obj178; - num++; - ref QuestSequence reference184 = ref span235[num]; + ref QuestSequence reference184 = ref span55[5]; QuestSequence obj179 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj179.Steps = list236; reference184 = obj179; - num++; - ref QuestSequence reference185 = ref span235[num]; + ref QuestSequence reference185 = ref span55[6]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -264684,9 +218892,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span242 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - ref QuestStep reference186 = ref span242[index2]; + ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list237)[0]; QuestStep obj181 = new QuestStep(EInteractionType.CompleteQuest, 1030964u, new Vector3(-18.143005f, 3.9998174f, 235.40088f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -264696,12 +218902,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - index3 = 1; - List list238 = new List(index3); - CollectionsMarshal.SetCount(list238, index3); - Span span243 = CollectionsMarshal.AsSpan(list238); - num3 = 0; - span243[num3] = new DialogueChoice + num3 = 1; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA321_03275_Q1_000_000"), @@ -264712,33 +218916,28 @@ public static class AssemblyQuestLoader reference186 = obj181; obj180.Steps = list237; reference185 = obj180; - questRoot33.QuestSequence = list230; - AddQuest(questId26, questRoot33); + questRoot34.QuestSequence = list230; + AddQuest(questId26, questRoot2); QuestId questId27 = new QuestId(3276); - QuestRoot questRoot34 = new QuestRoot(); + QuestRoot questRoot35 = new QuestRoot(); num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - 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]; + 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]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264756,8 +218955,7 @@ public static class AssemblyQuestLoader }; obj182.Steps = list241; reference187 = obj182; - num++; - ref QuestSequence reference188 = ref span245[num]; + ref QuestSequence reference188 = ref span56[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -264765,40 +218963,33 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span247 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj183.Steps = list242; reference188 = obj183; - num++; - ref QuestSequence reference189 = ref span245[num]; + ref QuestSequence reference189 = ref span56[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj184.Steps = list243; reference189 = obj184; - num++; - span245[num] = new QuestSequence + span56[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference190 = ref span245[num]; + ref QuestSequence reference190 = ref span56[4]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -264806,9 +218997,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span249 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -264816,33 +219005,28 @@ public static class AssemblyQuestLoader }; obj185.Steps = list244; reference190 = obj185; - questRoot34.QuestSequence = list240; - AddQuest(questId27, questRoot34); + questRoot35.QuestSequence = list240; + AddQuest(questId27, questRoot35); QuestId questId28 = new QuestId(3277); - QuestRoot questRoot35 = new QuestRoot(); + QuestRoot questRoot36 = new QuestRoot(); num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - 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]; + 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]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -264856,8 +219040,7 @@ public static class AssemblyQuestLoader }; obj186.Steps = list247; reference191 = obj186; - num++; - ref QuestSequence reference192 = ref span251[num]; + ref QuestSequence reference192 = ref span57[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -264865,9 +219048,7 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span253 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 2010405u, new Vector3(-33.707214f, 3.982544f, 205.70679f), 819) + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 2010405u, new Vector3(-33.707214f, 3.982544f, 205.70679f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264878,26 +219059,21 @@ public static class AssemblyQuestLoader }; obj187.Steps = list248; reference192 = obj187; - num++; - ref QuestSequence reference193 = ref span251[num]; + ref QuestSequence reference193 = ref span57[2]; QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj188.Steps = list249; reference193 = obj188; - num++; - ref QuestSequence reference194 = ref span251[num]; + ref QuestSequence reference194 = ref span57[3]; QuestSequence obj189 = new QuestSequence { Sequence = 3 @@ -264905,27 +219081,22 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span255 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.Interact, 1030148u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1030148u, new Vector3(-246.57056f, 10.152376f, 678.21765f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj189.Steps = list250; reference194 = obj189; - num++; - ref QuestSequence reference195 = ref span251[num]; + ref QuestSequence reference195 = ref span57[4]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -264934,23 +219105,20 @@ public static class AssemblyQuestLoader }; obj190.Steps = list251; reference195 = obj190; - questRoot35.QuestSequence = list246; - AddQuest(questId28, questRoot35); + questRoot36.QuestSequence = list246; + AddQuest(questId28, questRoot36); QuestId questId29 = new QuestId(3278); - QuestRoot questRoot36 = new QuestRoot(); + QuestRoot questRoot37 = new QuestRoot(); num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - 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]; + 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]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -264958,9 +219126,7 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span259 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030144u, new Vector3(94.68213f, 37.377014f, 611.1085f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -264974,18 +219140,15 @@ public static class AssemblyQuestLoader }; obj191.Steps = list254; reference196 = obj191; - num++; - ref QuestSequence reference197 = ref span258[num]; + ref QuestSequence reference197 = ref span59[1]; QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -264996,8 +219159,7 @@ public static class AssemblyQuestLoader }; obj192.Steps = list255; reference197 = obj192; - num++; - ref QuestSequence reference198 = ref span258[num]; + ref QuestSequence reference198 = ref span59[2]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -265005,9 +219167,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span261 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 2010406u, new Vector3(-17.013855f, 4.470825f, 234.97363f), 819) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 2010406u, new Vector3(-17.013855f, 4.470825f, 234.97363f), 819) { AethernetShortcut = new AethernetShortcut { @@ -265017,31 +219177,26 @@ public static class AssemblyQuestLoader }; obj193.Steps = list256; reference198 = obj193; - num++; - ref QuestSequence reference199 = ref span258[num]; + ref QuestSequence reference199 = ref span59[3]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj194.Steps = list257; reference199 = obj194; - num++; - span258[num] = new QuestSequence + span59[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference200 = ref span258[num]; + ref QuestSequence reference200 = ref span59[5]; QuestSequence obj195 = new QuestSequence { Sequence = 5 @@ -265049,27 +219204,22 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span263 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.Interact, 1030145u, new Vector3(93.461426f, 37.43559f, 611.50525f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj195.Steps = list258; reference200 = obj195; - num++; - ref QuestSequence reference201 = ref span258[num]; + ref QuestSequence reference201 = ref span59[6]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -265080,23 +219230,20 @@ public static class AssemblyQuestLoader }; obj196.Steps = list259; reference201 = obj196; - questRoot36.QuestSequence = list253; - AddQuest(questId29, questRoot36); + questRoot37.QuestSequence = list253; + AddQuest(questId29, questRoot37); QuestId questId30 = new QuestId(3279); - QuestRoot questRoot37 = new QuestRoot(); + QuestRoot questRoot38 = new QuestRoot(); num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - 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]; + 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]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -265104,36 +219251,30 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span267 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.AcceptQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1026990u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 7f }; obj197.Steps = list262; reference202 = obj197; - num++; - ref QuestSequence reference203 = ref span266[num]; + ref QuestSequence reference203 = ref span60[1]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)156 }; - num2++; - span268[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - num2++; - ref QuestStep reference204 = ref span268[num2]; + ref QuestStep reference204 = ref span61[2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1029791u, new Vector3(351.49158f, -26.424099f, -370.8095f), 156) { Fly = true @@ -265141,9 +219282,7 @@ public static class AssemblyQuestLoader num3 = 1; List list264 = new List(num3); CollectionsMarshal.SetCount(list264, num3); - Span span269 = CollectionsMarshal.AsSpan(list264); - index3 = 0; - span269[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list264)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA101_03279_Q2_000_021") @@ -265152,8 +219291,7 @@ public static class AssemblyQuestLoader reference204 = obj199; obj198.Steps = list263; reference203 = obj198; - num++; - ref QuestSequence reference205 = ref span266[num]; + ref QuestSequence reference205 = ref span60[2]; QuestSequence obj200 = new QuestSequence { Sequence = 2 @@ -265161,35 +219299,28 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span270 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.Interact, 1029792u, new Vector3(-47.074158f, 1.7201422f, 45.97534f), 842); + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1029792u, new Vector3(-47.074158f, 1.7201422f, 45.97534f), 842); obj200.Steps = list265; reference205 = obj200; - num++; - span266[num] = new QuestSequence + span60[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference206 = ref span266[num]; + ref QuestSequence reference206 = ref span60[4]; QuestSequence obj201 = new QuestSequence { Sequence = 4 }; - 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) + 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) { RestartNavigationIfCancelled = false }; obj201.Steps = list266; reference206 = obj201; - num++; - ref QuestSequence reference207 = ref span266[num]; + ref QuestSequence reference207 = ref span60[5]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -265197,49 +219328,41 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span272 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028924u, new Vector3(-176.5622f, 0f, 1.6326294f), 819) { StopDistance = 5f, DisableNavmesh = true }; obj202.Steps = list267; reference207 = obj202; - questRoot37.QuestSequence = list261; - AddQuest(questId30, questRoot37); + questRoot38.QuestSequence = list261; + AddQuest(questId30, questRoot38); QuestId questId31 = new QuestId(3280); - QuestRoot questRoot38 = new QuestRoot(); + QuestRoot questRoot39 = new QuestRoot(); num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - 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]; + 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]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj203.Steps = list270; reference208 = obj203; - num++; - ref QuestSequence reference209 = ref span274[num]; + ref QuestSequence reference209 = ref span62[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -265247,9 +219370,7 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span276 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 819) { Aetheryte = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -265262,49 +219383,38 @@ public static class AssemblyQuestLoader }; obj204.Steps = list271; reference209 = obj204; - num++; - ref QuestSequence reference210 = ref span274[num]; + ref QuestSequence reference210 = ref span62[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShard = EAetheryteLocation.CrystariumCrystallineMean }; - num2++; - ref QuestStep reference211 = ref span277[num2]; + ref QuestStep reference211 = ref span63[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list273; reference211 = questStep7; - num2++; - span277[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span63[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumAmaroLaunch }; - num2++; - span277[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span63[3] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumCabinetOfCuriosity, AethernetShortcut = new AethernetShortcut @@ -265313,10 +219423,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -265326,8 +219434,7 @@ public static class AssemblyQuestLoader }; obj205.Steps = list272; reference210 = obj205; - num++; - ref QuestSequence reference212 = ref span274[num]; + ref QuestSequence reference212 = ref span62[3]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue @@ -265335,14 +219442,12 @@ public static class AssemblyQuestLoader num2 = 3; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span279 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + Span span65 = CollectionsMarshal.AsSpan(list274); + span65[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumMarkets }; - index2++; - span279[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) + span65[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 819) { AethernetShard = EAetheryteLocation.CrystariumDossalGate, AethernetShortcut = new AethernetShortcut @@ -265351,46 +219456,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Crystarium } }; - index2++; - span279[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); + span65[2] = new QuestStep(EInteractionType.CompleteQuest, 1028925u, new Vector3(60.105225f, -3.047831E-07f, 1.6021729f), 819); obj206.Steps = list274; reference212 = obj206; - questRoot38.QuestSequence = list269; - AddQuest(questId31, questRoot38); + questRoot39.QuestSequence = list269; + AddQuest(questId31, questRoot39); QuestId questId32 = new QuestId(3281); questRoot2 = new QuestRoot(); - QuestRoot questRoot39 = questRoot2; + QuestRoot questRoot40 = questRoot2; num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - 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]; + 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]; QuestSequence obj207 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list276)[0]; 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); - Span span283 = CollectionsMarshal.AsSpan(list277); - index3 = 0; - span283[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list277)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q1_000_002"), @@ -265400,8 +219497,7 @@ public static class AssemblyQuestLoader reference214 = questStep8; obj207.Steps = list276; reference213 = obj207; - num++; - ref QuestSequence reference215 = ref span281[num]; + ref QuestSequence reference215 = ref span66[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 @@ -265409,16 +219505,12 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span284 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - ref QuestStep reference216 = ref span284[index2]; + ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list278)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819); - index3 = 1; - List list279 = new List(index3); - CollectionsMarshal.SetCount(list279, index3); - Span span285 = CollectionsMarshal.AsSpan(list279); - num3 = 0; - span285[num3] = new DialogueChoice + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q2_000_011") @@ -265427,22 +219519,18 @@ public static class AssemblyQuestLoader reference216 = questStep9; obj208.Steps = list278; reference215 = obj208; - num++; - ref QuestSequence reference217 = ref span281[num]; + ref QuestSequence reference217 = ref span66[2]; QuestSequence obj209 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj209.Steps = list280; reference217 = obj209; - num++; - ref QuestSequence reference218 = ref span281[num]; + ref QuestSequence reference218 = ref span66[3]; QuestSequence obj210 = new QuestSequence { Sequence = 3 @@ -265450,9 +219538,7 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span287 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span287[index2] = new QuestStep(EInteractionType.Interact, 1028926u, new Vector3(-4.1047363f, -7.700001f, 138.47559f), 819) + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1028926u, new Vector3(-4.1047363f, -7.700001f, 138.47559f), 819) { AethernetShortcut = new AethernetShortcut { @@ -265462,29 +219548,24 @@ public static class AssemblyQuestLoader }; obj210.Steps = list281; reference218 = obj210; - num++; - ref QuestSequence reference219 = ref span281[num]; + ref QuestSequence reference219 = ref span66[4]; QuestSequence obj211 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShard = EAetheryteLocation.CrystariumPendants }; - num2++; - span288[num2] = new QuestStep(EInteractionType.Interact, 1028927u, new Vector3(62.546753f, 1.716012f, 249.13391f), 819); + span67[2] = new QuestStep(EInteractionType.Interact, 1028927u, new Vector3(62.546753f, 1.716012f, 249.13391f), 819); obj211.Steps = list282; reference219 = obj211; - num++; - ref QuestSequence reference220 = ref span281[num]; + ref QuestSequence reference220 = ref span66[5]; QuestSequence obj212 = new QuestSequence { Sequence = 5 @@ -265492,9 +219573,7 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span289 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - ref QuestStep reference221 = ref span289[index2]; + ref QuestStep reference221 = ref CollectionsMarshal.AsSpan(list283)[0]; QuestStep obj213 = new QuestStep(EInteractionType.Interact, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f @@ -265502,9 +219581,7 @@ public static class AssemblyQuestLoader num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - Span span290 = CollectionsMarshal.AsSpan(list284); - index3 = 0; - span290[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q3_000_062") @@ -265513,18 +219590,16 @@ public static class AssemblyQuestLoader reference221 = obj213; obj212.Steps = list283; reference220 = obj212; - num++; - ref QuestSequence reference222 = ref span281[num]; + ref QuestSequence reference222 = ref span66[6]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list285 = new List(index2); - CollectionsMarshal.SetCount(list285, index2); - Span span291 = CollectionsMarshal.AsSpan(list285); - num2 = 0; - ref QuestStep reference223 = ref span291[num2]; + num2 = 2; + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + Span span68 = CollectionsMarshal.AsSpan(list285); + ref QuestStep reference223 = ref span68[0]; QuestStep obj215 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AethernetShortcut = new AethernetShortcut @@ -265533,39 +219608,33 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index3 = 1; - List list286 = new List(index3); - CollectionsMarshal.SetCount(list286, index3); - Span span292 = CollectionsMarshal.AsSpan(list286); - num3 = 0; - span292[num3] = new DialogueChoice + num3 = 1; + List list286 = new List(num3); + CollectionsMarshal.SetCount(list286, num3); + CollectionsMarshal.AsSpan(list286)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA103_03281_Q4_000_071") }; obj215.DialogueChoices = list286; reference223 = obj215; - num2++; - span291[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); obj214.Steps = list285; reference222 = obj214; - questRoot40.QuestSequence = list8; + questRoot41.QuestSequence = list8; AddQuest(questId32, questRoot2); QuestId questId33 = new QuestId(3282); - QuestRoot questRoot41 = new QuestRoot(); + QuestRoot questRoot42 = new QuestRoot(); num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - 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]; + 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]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -265573,36 +219642,29 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span295 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); obj216.Steps = list289; reference224 = obj216; - num++; - ref QuestSequence reference225 = ref span294[num]; + ref QuestSequence reference225 = ref span69[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShard = EAetheryteLocation.CrystariumTemenosRookery, AetheryteShortcut = EAetheryteLocation.Crystarium }; - num2++; - ref QuestStep reference226 = ref span296[num2]; + ref QuestStep reference226 = ref span70[1]; 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); - Span span297 = CollectionsMarshal.AsSpan(list291); - index3 = 0; - span297[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list291)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA201_03282_Q1_000_013"), @@ -265612,8 +219674,7 @@ public static class AssemblyQuestLoader reference226 = questStep10; obj217.Steps = list290; reference225 = obj217; - num++; - ref QuestSequence reference227 = ref span294[num]; + ref QuestSequence reference227 = ref span69[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -265621,9 +219682,7 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span298 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.Interact, 1029806u, new Vector3(62.394165f, 36.247692f, -169.39038f), 819) + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1029806u, new Vector3(62.394165f, 36.247692f, -169.39038f), 819) { AethernetShortcut = new AethernetShortcut { @@ -265633,42 +219692,36 @@ public static class AssemblyQuestLoader }; obj218.Steps = list292; reference227 = obj218; - num++; - ref QuestSequence reference228 = ref span294[num]; + ref QuestSequence reference228 = ref span69[3]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true }; obj219.Steps = list293; reference228 = obj219; - questRoot41.QuestSequence = list288; - AddQuest(questId33, questRoot41); + questRoot42.QuestSequence = list288; + AddQuest(questId33, questRoot42); QuestId questId34 = new QuestId(3283); questRoot2 = new QuestRoot(); - QuestRoot questRoot42 = questRoot2; + QuestRoot questRoot43 = questRoot2; num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - 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]; + 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]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -265676,37 +219729,30 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span302 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029807u, new Vector3(802.2124f, 1.2725923f, 253.00977f), 814) { DisableNavmesh = true }; obj220.Steps = list295; reference229 = obj220; - num++; - ref QuestSequence reference230 = ref span301[num]; + ref QuestSequence reference230 = ref span71[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818238u }; - num2++; - span303[num2] = new QuestStep(EInteractionType.Interact, 1027286u, new Vector3(626.1234f, 3.237296f, 471.97668f), 814); + span72[2] = new QuestStep(EInteractionType.Interact, 1027286u, new Vector3(626.1234f, 3.237296f, 471.97668f), 814); obj221.Steps = list296; reference230 = obj221; - num++; - ref QuestSequence reference231 = ref span301[num]; + ref QuestSequence reference231 = ref span71[2]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -265714,23 +219760,18 @@ public static class AssemblyQuestLoader num2 = 3; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span304 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + Span span73 = CollectionsMarshal.AsSpan(list297); + span73[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaStilltide }; - index2++; - span304[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(683.3415f, 30.116053f, 276.70578f), 814); - index2++; - ref QuestStep reference232 = ref span304[index2]; + span73[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(683.3415f, 30.116053f, 276.70578f), 814); + ref QuestStep reference232 = ref span73[2]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2009956u, new Vector3(687.9225f, 30.07544f, 279.40784f), 814); - index3 = 1; - List list298 = new List(index3); - CollectionsMarshal.SetCount(list298, index3); - Span span305 = CollectionsMarshal.AsSpan(list298); - num3 = 0; - span305[num3] = new DialogueChoice + num3 = 1; + List list298 = new List(num3); + CollectionsMarshal.SetCount(list298, num3); + CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA202_03283_Q1_000_031"), @@ -265740,18 +219781,16 @@ public static class AssemblyQuestLoader reference232 = questStep11; obj222.Steps = list297; reference231 = obj222; - num++; - ref QuestSequence reference233 = ref span301[num]; + ref QuestSequence reference233 = ref span71[3]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list299 = new List(index2); - CollectionsMarshal.SetCount(list299, index2); - Span span306 = CollectionsMarshal.AsSpan(list299); - num2 = 0; - ref QuestStep reference234 = ref span306[num2]; + num2 = 2; + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + Span span74 = CollectionsMarshal.AsSpan(list299); + ref QuestStep reference234 = ref span74[0]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, 2009957u, new Vector3(663.17236f, 53.635498f, 60.28833f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -265759,30 +219798,21 @@ public static class AssemblyQuestLoader num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - Span span307 = CollectionsMarshal.AsSpan(list300); - index3 = 0; - span307[index3] = 10857u; + CollectionsMarshal.AsSpan(list300)[0] = 10857u; obj224.KillEnemyDataIds = list300; - 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); + 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); obj224.CompletionQuestVariablesFlags = list301; reference234 = obj224; - num2++; - ref QuestStep reference235 = ref span306[num2]; + ref QuestStep reference235 = ref span74[1]; QuestStep obj225 = new QuestStep(EInteractionType.Combat, 2009958u, new Vector3(694.026f, 53.757446f, 12.924377f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -265790,32 +219820,23 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - Span span309 = CollectionsMarshal.AsSpan(list302); - index3 = 0; - span309[index3] = 10858u; + CollectionsMarshal.AsSpan(list302)[0] = 10858u; obj225.KillEnemyDataIds = list302; - 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); + 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); obj225.CompletionQuestVariablesFlags = list303; reference235 = obj225; obj223.Steps = list299; reference233 = obj223; - num++; - ref QuestSequence reference236 = ref span301[num]; + ref QuestSequence reference236 = ref span71[4]; QuestSequence obj226 = new QuestSequence { Sequence = 4 @@ -265823,27 +219844,21 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span311 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span311[index2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); obj226.Steps = list304; reference236 = obj226; - num++; - ref QuestSequence reference237 = ref span301[num]; + ref QuestSequence reference237 = ref span71[5]; QuestSequence obj227 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj227.Steps = list305; reference237 = obj227; - num++; - ref QuestSequence reference238 = ref span301[num]; + ref QuestSequence reference238 = ref span71[6]; QuestSequence obj228 = new QuestSequence { Sequence = 6 @@ -265851,44 +219866,36 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span313 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 2009959u, new Vector3(703.5171f, 53.757446f, 52.140015f), 814); obj228.Steps = list306; reference238 = obj228; - num++; - ref QuestSequence reference239 = ref span301[num]; + ref QuestSequence reference239 = ref span71[7]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj229.Steps = list307; reference239 = obj229; - questRoot43.QuestSequence = list8; + questRoot44.QuestSequence = list8; AddQuest(questId34, questRoot2); QuestId questId35 = new QuestId(3284); questRoot2 = new QuestRoot(); - QuestRoot questRoot44 = questRoot2; + QuestRoot questRoot45 = questRoot2; num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - 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]; + 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]; QuestSequence obj230 = new QuestSequence { Sequence = 0 @@ -265896,30 +219903,24 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span317 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029809u, new Vector3(687.1289f, 30.118057f, 282.73438f), 814) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029809u, new Vector3(687.1289f, 30.118057f, 282.73438f), 814) { StopDistance = 7f }; obj230.Steps = list309; reference240 = obj230; - num++; - ref QuestSequence reference241 = ref span316[num]; + ref QuestSequence reference241 = ref span77[1]; QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj231.Steps = list310; reference241 = obj231; - num++; - ref QuestSequence reference242 = ref span316[num]; + ref QuestSequence reference242 = ref span77[2]; QuestSequence obj232 = new QuestSequence { Sequence = 2 @@ -265927,26 +219928,21 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span319 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) { StopDistance = 1f }; obj232.Steps = list311; reference242 = obj232; - num++; - ref QuestSequence reference243 = ref span316[num]; + ref QuestSequence reference243 = ref span77[3]; QuestSequence obj233 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list312 = new List(index2); - CollectionsMarshal.SetCount(list312, index2); - Span span320 = CollectionsMarshal.AsSpan(list312); - num2 = 0; - ref QuestStep reference244 = ref span320[num2]; + num2 = 1; + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + ref QuestStep reference244 = ref CollectionsMarshal.AsSpan(list312)[0]; QuestStep obj234 = new QuestStep(EInteractionType.Combat, null, new Vector3(338.49463f, 31.93622f, 203.53125f), 814) { StopDistance = 1f, @@ -265955,15 +219951,12 @@ public static class AssemblyQuestLoader num3 = 1; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - Span span321 = CollectionsMarshal.AsSpan(list313); - index3 = 0; - span321[index3] = 10859u; + CollectionsMarshal.AsSpan(list313)[0] = 10859u; obj234.KillEnemyDataIds = list313; reference244 = obj234; obj233.Steps = list312; reference243 = obj233; - num++; - ref QuestSequence reference245 = ref span316[num]; + ref QuestSequence reference245 = ref span77[4]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -265971,30 +219964,24 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span322 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.Interact, 1029811u, new Vector3(341.75623f, 31.93621f, 202.01416f), 814) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.Interact, 1029811u, new Vector3(341.75623f, 31.93621f, 202.01416f), 814) { StopDistance = 7f }; obj235.Steps = list314; reference245 = obj235; - num++; - ref QuestSequence reference246 = ref span316[num]; + ref QuestSequence reference246 = ref span77[5]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj236.Steps = list315; reference246 = obj236; - num++; - ref QuestSequence reference247 = ref span316[num]; + ref QuestSequence reference247 = ref span77[6]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -266002,91 +219989,66 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span324 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.Interact, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814) { StopDistance = 7f }; obj237.Steps = list316; reference247 = obj237; - num++; - ref QuestSequence reference248 = ref span316[num]; + ref QuestSequence reference248 = ref span77[7]; QuestSequence obj238 = new QuestSequence { Sequence = 7 }; - index2 = 3; - List list317 = new List(index2); - CollectionsMarshal.SetCount(list317, index2); - Span span325 = CollectionsMarshal.AsSpan(list317); - num2 = 0; - ref QuestStep reference249 = ref span325[num2]; + num2 = 3; + List list317 = new List(num2); + CollectionsMarshal.SetCount(list317, num2); + Span span78 = CollectionsMarshal.AsSpan(list317); + ref QuestStep reference249 = ref span78[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2009962u, new Vector3(175.73816f, 50.003784f, 771.4807f), 814); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list318; reference249 = questStep12; - num2++; - ref QuestStep reference250 = ref span325[num2]; + ref QuestStep reference250 = ref span78[1]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list319; reference250 = questStep13; - num2++; - ref QuestStep reference251 = ref span325[num2]; + ref QuestStep reference251 = ref span78[2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1029815u, new Vector3(184.40515f, 40.039566f, 592.0653f), 814); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list320; reference251 = questStep14; obj238.Steps = list317; reference248 = obj238; - num++; - ref QuestSequence reference252 = ref span316[num]; + ref QuestSequence reference252 = ref span77[8]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -266094,42 +220056,34 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span329 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029814u, new Vector3(165.78918f, 41.141296f, 676.9663f), 814); obj239.Steps = list321; reference252 = obj239; - questRoot45.QuestSequence = list8; + questRoot46.QuestSequence = list8; AddQuest(questId35, questRoot2); QuestId questId36 = new QuestId(3285); - QuestRoot questRoot46 = new QuestRoot(); + QuestRoot questRoot47 = new QuestRoot(); num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - 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]; + 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]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj240.Steps = list324; reference253 = obj240; - num++; - ref QuestSequence reference254 = ref span331[num]; + ref QuestSequence reference254 = ref span82[1]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -266137,35 +220091,29 @@ public static class AssemblyQuestLoader num2 = 2; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span333 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + Span span83 = CollectionsMarshal.AsSpan(list325); + span83[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaWright }; - index2++; - span333[index2] = new QuestStep(EInteractionType.Interact, 1027516u, new Vector3(-266.0716f, 21.746891f, 376.7909f), 814); + span83[1] = new QuestStep(EInteractionType.Interact, 1027516u, new Vector3(-266.0716f, 21.746891f, 376.7909f), 814); obj241.Steps = list325; reference254 = obj241; - num++; - ref QuestSequence reference255 = ref span331[num]; + ref QuestSequence reference255 = ref span82[2]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Comment = "Click the guy in front of (or near) the light house stairs" }; obj242.Steps = list326; reference255 = obj242; - num++; - ref QuestSequence reference256 = ref span331[num]; + ref QuestSequence reference256 = ref span82[3]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -266173,32 +220121,26 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span335 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.Interact, 1029818u, new Vector3(-322.46893f, 21.33508f, 777.4623f), 814); + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1029818u, new Vector3(-322.46893f, 21.33508f, 777.4623f), 814); obj243.Steps = list327; reference256 = obj243; - num++; - ref QuestSequence reference257 = ref span331[num]; + ref QuestSequence reference257 = ref span82[4]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true }; obj244.Steps = list328; reference257 = obj244; - num++; - ref QuestSequence reference258 = ref span331[num]; + ref QuestSequence reference258 = ref span82[5]; QuestSequence obj245 = new QuestSequence { Sequence = 5 @@ -266206,55 +220148,47 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span337 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.Interact, 1029844u, new Vector3(-638.11707f, 0.2956289f, 571.5265f), 814) + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1029844u, new Vector3(-638.11707f, 0.2956289f, 571.5265f), 814) { StopDistance = 7f }; obj245.Steps = list329; reference258 = obj245; - num++; - ref QuestSequence reference259 = ref span331[num]; + ref QuestSequence reference259 = ref span82[6]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818242u }; - num2++; - span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029823u, new Vector3(-330.40363f, 19.081778f, 389.27283f), 814) + span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1029823u, new Vector3(-330.40363f, 19.081778f, 389.27283f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj246.Steps = list330; reference259 = obj246; - questRoot46.QuestSequence = list323; - AddQuest(questId36, questRoot46); + questRoot47.QuestSequence = list323; + AddQuest(questId36, questRoot47); QuestId questId37 = new QuestId(3286); questRoot2 = new QuestRoot(); - QuestRoot questRoot47 = questRoot2; + QuestRoot questRoot48 = questRoot2; num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - 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]; + 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]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -266262,42 +220196,34 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span341 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029822u, new Vector3(-328.6031f, 19.317894f, 390.00525f), 814); + CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029822u, new Vector3(-328.6031f, 19.317894f, 390.00525f), 814); obj247.Steps = list332; reference260 = obj247; - num++; - ref QuestSequence reference261 = ref span340[num]; + ref QuestSequence reference261 = ref span86[1]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3360) }; - num2++; - span342[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814) + span87[1] = new QuestStep(EInteractionType.AcceptQuest, 1030763u, new Vector3(-306.2334f, 20.956566f, 358.41907f), 814) { PickUpQuestId = new QuestId(3371) }; - num2++; - span342[num2] = new QuestStep(EInteractionType.Interact, 2009964u, new Vector3(168.96313f, 41.000854f, 677.3021f), 814); + span87[2] = new QuestStep(EInteractionType.Interact, 2009964u, new Vector3(168.96313f, 41.000854f, 677.3021f), 814); obj248.Steps = list333; reference261 = obj248; - num++; - span340[num] = new QuestSequence + span86[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference262 = ref span340[num]; + ref QuestSequence reference262 = ref span86[3]; QuestSequence obj249 = new QuestSequence { Sequence = 3 @@ -266305,32 +220231,26 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span343 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.Interact, 1029824u, new Vector3(0.6866455f, -5.0951424f, -104.112366f), 820); + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1029824u, new Vector3(0.6866455f, -5.0951424f, -104.112366f), 820); obj249.Steps = list334; reference262 = obj249; - num++; - ref QuestSequence reference263 = ref span340[num]; + ref QuestSequence reference263 = ref span86[4]; QuestSequence obj250 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShard = EAetheryteLocation.EulmoreGloryGate }; - num2++; - span344[num2] = new QuestStep(EInteractionType.Interact, 1027524u, new Vector3(17.410522f, 6f, -0.16790771f), 820); + span88[1] = new QuestStep(EInteractionType.Interact, 1027524u, new Vector3(17.410522f, 6f, -0.16790771f), 820); obj250.Steps = list335; reference263 = obj250; - num++; - ref QuestSequence reference264 = ref span340[num]; + ref QuestSequence reference264 = ref span86[5]; QuestSequence obj251 = new QuestSequence { Sequence = 5 @@ -266338,34 +220258,27 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span345 = CollectionsMarshal.AsSpan(list336); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.Interact, 1027526u, new Vector3(17.410522f, 6f, 16.983276f), 820); + CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1027526u, new Vector3(17.410522f, 6f, 16.983276f), 820); obj251.Steps = list336; reference264 = obj251; - num++; - ref QuestSequence reference265 = ref span340[num]; + ref QuestSequence reference265 = ref span86[6]; QuestSequence obj252 = new QuestSequence { Sequence = 6 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span346[num2] = new QuestStep(EInteractionType.Interact, 2009967u, new Vector3(18.20398f, 7.522644f, 38.223755f), 820); + span89[2] = new QuestStep(EInteractionType.Interact, 2009967u, new Vector3(18.20398f, 7.522644f, 38.223755f), 820); obj252.Steps = list337; reference265 = obj252; - num++; - ref QuestSequence reference266 = ref span340[num]; + ref QuestSequence reference266 = ref span86[7]; QuestSequence obj253 = new QuestSequence { Sequence = 7 @@ -266373,9 +220286,7 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span347 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(10.609789f, 6f, 33.17366f), 820) + CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(10.609789f, 6f, 33.17366f), 820) { StopDistance = 0.25f, DelaySecondsAtStart = 3f, @@ -266383,18 +220294,15 @@ public static class AssemblyQuestLoader }; obj253.Steps = list338; reference266 = obj253; - num++; - ref QuestSequence reference267 = ref span340[num]; + ref QuestSequence reference267 = ref span86[8]; QuestSequence obj254 = new QuestSequence { Sequence = 8 }; - index2 = 1; - List list339 = new List(index2); - CollectionsMarshal.SetCount(list339, index2); - Span span348 = CollectionsMarshal.AsSpan(list339); - num2 = 0; - ref QuestStep reference268 = ref span348[num2]; + num2 = 1; + List list339 = new List(num2); + CollectionsMarshal.SetCount(list339, num2); + ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list339)[0]; QuestStep obj255 = new QuestStep(EInteractionType.Interact, 1029827u, new Vector3(4.1046753f, 5.9999995f, 29.770264f), 820) { StopDistance = 1f @@ -266402,9 +220310,7 @@ public static class AssemblyQuestLoader num3 = 1; List list340 = new List(num3); CollectionsMarshal.SetCount(list340, num3); - Span span349 = CollectionsMarshal.AsSpan(list340); - index3 = 0; - span349[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA205_03286_Q1_000_152"), @@ -266414,8 +220320,7 @@ public static class AssemblyQuestLoader reference268 = obj255; obj254.Steps = list339; reference267 = obj254; - num++; - ref QuestSequence reference269 = ref span340[num]; + ref QuestSequence reference269 = ref span86[9]; QuestSequence obj256 = new QuestSequence { Sequence = 9 @@ -266423,48 +220328,40 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span350 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820); + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820); obj256.Steps = list341; reference269 = obj256; - num++; - ref QuestSequence reference270 = ref span340[num]; + ref QuestSequence reference270 = ref span86[10]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)820, Sprint = true }; - num2++; - span351[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); + span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1029830u, new Vector3(28.396973f, 82.78207f, 26.5354f), 820); obj257.Steps = list342; reference270 = obj257; - questRoot48.QuestSequence = list8; + questRoot49.QuestSequence = list8; AddQuest(questId37, questRoot2); QuestId questId38 = new QuestId(3287); - QuestRoot questRoot49 = new QuestRoot(); + QuestRoot questRoot50 = new QuestRoot(); num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - 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]; + 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]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -266472,30 +220369,24 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span354 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span354[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029832u, new Vector3(28.793701f, 82.78206f, 24.917969f), 820) + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029832u, new Vector3(28.793701f, 82.78206f, 24.917969f), 820) { StopDistance = 5f }; obj258.Steps = list345; reference271 = obj258; - num++; - ref QuestSequence reference272 = ref span353[num]; + ref QuestSequence reference272 = ref span91[1]; QuestSequence obj259 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj259.Steps = list346; reference272 = obj259; - num++; - ref QuestSequence reference273 = ref span353[num]; + ref QuestSequence reference273 = ref span91[2]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -266503,30 +220394,23 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span356 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.Interact, 1029834u, new Vector3(-18.35669f, 82.597046f, -52.99463f), 820); + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1029834u, new Vector3(-18.35669f, 82.597046f, -52.99463f), 820); obj260.Steps = list347; reference273 = obj260; - num++; - ref QuestSequence reference274 = ref span353[num]; + ref QuestSequence reference274 = ref span91[3]; QuestSequence obj261 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list348 = new List(index2); - CollectionsMarshal.SetCount(list348, index2); - Span span357 = CollectionsMarshal.AsSpan(list348); - num2 = 0; - ref QuestStep reference275 = ref span357[num2]; + num2 = 1; + List list348 = new List(num2); + CollectionsMarshal.SetCount(list348, num2); + ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list348)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.CompleteQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); - index3 = 1; - List list349 = new List(index3); - CollectionsMarshal.SetCount(list349, index3); - Span span358 = CollectionsMarshal.AsSpan(list349); - num3 = 0; - span358[num3] = new DialogueChoice + num3 = 1; + List list349 = new List(num3); + CollectionsMarshal.SetCount(list349, num3); + CollectionsMarshal.AsSpan(list349)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA206_03287_Q2_000_081"), @@ -266536,25 +220420,22 @@ public static class AssemblyQuestLoader reference275 = questStep15; obj261.Steps = list348; reference274 = obj261; - questRoot49.QuestSequence = list344; - AddQuest(questId38, questRoot49); + questRoot50.QuestSequence = list344; + AddQuest(questId38, questRoot50); QuestId questId39 = new QuestId(3288); questRoot2 = new QuestRoot(); - QuestRoot questRoot50 = questRoot2; + QuestRoot questRoot51 = questRoot2; num = 1; List list350 = new List(num); CollectionsMarshal.SetCount(list350, num); - 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]; + 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]; QuestSequence obj262 = new QuestSequence { Sequence = 0 @@ -266562,27 +220443,21 @@ public static class AssemblyQuestLoader num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span361 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - span361[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); + CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029833u, new Vector3(-24.887512f, 82.2726f, -19.058533f), 820); obj262.Steps = list351; reference276 = obj262; - num++; - ref QuestSequence reference277 = ref span360[num]; + ref QuestSequence reference277 = ref span92[1]; QuestSequence obj263 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj263.Steps = list352; reference277 = obj263; - num++; - ref QuestSequence reference278 = ref span360[num]; + ref QuestSequence reference278 = ref span92[2]; QuestSequence obj264 = new QuestSequence { Sequence = 2 @@ -266590,30 +220465,25 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span363 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - ref QuestStep reference279 = ref span363[index2]; + ref QuestStep reference279 = ref CollectionsMarshal.AsSpan(list353)[0]; 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 span364 = CollectionsMarshal.AsSpan(list354); - index3 = 0; - span364[index3] = new DialogueChoice + Span span93 = CollectionsMarshal.AsSpan(list354); + span93[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q1_000_041"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A1_000_042") }; - index3++; - span364[index3] = new DialogueChoice + span93[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q2_000_052"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A2_000_054") }; - index3++; - span364[index3] = new DialogueChoice + span93[2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_TISTABIE_000_060") @@ -266622,39 +220492,33 @@ public static class AssemblyQuestLoader reference279 = questStep16; obj264.Steps = list353; reference278 = obj264; - num++; - ref QuestSequence reference280 = ref span360[num]; + ref QuestSequence reference280 = ref span92[3]; QuestSequence obj265 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list355 = new List(index2); - CollectionsMarshal.SetCount(list355, index2); - Span span365 = CollectionsMarshal.AsSpan(list355); - num2 = 0; - ref QuestStep reference281 = ref span365[num2]; + num2 = 1; + List list355 = new List(num2); + CollectionsMarshal.SetCount(list355, num2); + ref QuestStep reference281 = ref CollectionsMarshal.AsSpan(list355)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1027575u, new Vector3(59.128662f, 83.00107f, -70.08472f), 820); - index3 = 3; - List list356 = new List(index3); - CollectionsMarshal.SetCount(list356, index3); - Span span366 = CollectionsMarshal.AsSpan(list356); - num3 = 0; - span366[num3] = new DialogueChoice + num3 = 3; + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + Span span94 = CollectionsMarshal.AsSpan(list356); + span94[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q1_000_041"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A1_000_042") }; - num3++; - span366[num3] = new DialogueChoice + span94[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_Q2_000_052"), Answer = new ExcelRef("TEXT_LUCKMA207_03288_A2_000_054") }; - num3++; - span366[num3] = new DialogueChoice + span94[2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA207_03288_TISTABIE_000_060") @@ -266663,8 +220527,7 @@ public static class AssemblyQuestLoader reference281 = questStep17; obj265.Steps = list355; reference280 = obj265; - num++; - ref QuestSequence reference282 = ref span360[num]; + ref QuestSequence reference282 = ref span92[4]; QuestSequence obj266 = new QuestSequence { Sequence = 4 @@ -266672,40 +220535,32 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span367 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); + CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); obj266.Steps = list357; reference282 = obj266; - num++; - ref QuestSequence reference283 = ref span360[num]; + ref QuestSequence reference283 = ref span92[5]; QuestSequence obj267 = new QuestSequence { Sequence = 5 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.76068f, 86.70241f, -39.688606f), 820) + span95[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(65.76068f, 86.70241f, -39.688606f), 820) { DisableNavmesh = true }; - num2++; - span368[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.27692f, 86.7024f, -40.825073f), 820) + span95[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(64.27692f, 86.7024f, -40.825073f), 820) { DisableNavmesh = true }; - num2++; - span368[num2] = new QuestStep(EInteractionType.Emote, null, new Vector3(61.212788f, 86.7f, -40.65704f), 820) + span95[4] = new QuestStep(EInteractionType.Emote, null, new Vector3(61.212788f, 86.7f, -40.65704f), 820) { StopDistance = 0.5f, DisableNavmesh = true, @@ -266713,8 +220568,7 @@ public static class AssemblyQuestLoader }; obj267.Steps = list358; reference283 = obj267; - num++; - ref QuestSequence reference284 = ref span360[num]; + ref QuestSequence reference284 = ref span92[6]; QuestSequence obj268 = new QuestSequence { Sequence = 6 @@ -266722,42 +220576,34 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span369 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span369[index2] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1027574u, new Vector3(54.154175f, 82.00165f, -50.888855f), 820); obj268.Steps = list359; reference284 = obj268; - num++; - ref QuestSequence reference285 = ref span360[num]; + ref QuestSequence reference285 = ref span92[7]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj269.Steps = list360; reference285 = obj269; - questRoot51.QuestSequence = list8; + questRoot52.QuestSequence = list8; AddQuest(questId39, questRoot2); QuestId questId40 = new QuestId(3289); - QuestRoot questRoot52 = new QuestRoot(); + QuestRoot questRoot53 = new QuestRoot(); num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - 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]; + 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]; QuestSequence obj270 = new QuestSequence { Sequence = 0 @@ -266765,34 +220611,27 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span373 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span373[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029837u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029837u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); obj270.Steps = list363; reference286 = obj270; - num++; - ref QuestSequence reference287 = ref span372[num]; + ref QuestSequence reference287 = ref span96[1]; QuestSequence obj271 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span374[num2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820); + span97[2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820); obj271.Steps = list364; reference287 = obj271; - num++; - ref QuestSequence reference288 = ref span372[num]; + ref QuestSequence reference288 = ref span96[2]; QuestSequence obj272 = new QuestSequence { Sequence = 2 @@ -266800,14 +220639,12 @@ public static class AssemblyQuestLoader num2 = 3; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span375 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span375[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + Span span98 = CollectionsMarshal.AsSpan(list365); + span98[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreMainstay }; - index2++; - span375[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) + span98[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 820) { AethernetShard = EAetheryteLocation.EulmoreSoutheastDerelict, AethernetShortcut = new AethernetShortcut @@ -266816,27 +220653,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - index2++; - span375[index2] = new QuestStep(EInteractionType.Interact, 1027588u, new Vector3(-50.247986f, -0.10068311f, 61.32605f), 820); + span98[2] = new QuestStep(EInteractionType.Interact, 1027588u, new Vector3(-50.247986f, -0.10068311f, 61.32605f), 820); obj272.Steps = list365; reference288 = obj272; - num++; - ref QuestSequence reference289 = ref span372[num]; + ref QuestSequence reference289 = ref span96[3]; QuestSequence obj273 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShard = EAetheryteLocation.EulmoreNightsoilPots }; - num2++; - span376[num2] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820) + span99[1] = new QuestStep(EInteractionType.Interact, 1029838u, new Vector3(-18.387146f, 23.1f, -8.712891f), 820) { AethernetShortcut = new AethernetShortcut { @@ -266846,8 +220679,7 @@ public static class AssemblyQuestLoader }; obj273.Steps = list366; reference289 = obj273; - num++; - ref QuestSequence reference290 = ref span372[num]; + ref QuestSequence reference290 = ref span96[4]; QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue @@ -266855,42 +220687,34 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span377 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span377[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028990u, new Vector3(26.810059f, 82.78224f, 23.819275f), 820); obj274.Steps = list367; reference290 = obj274; - questRoot52.QuestSequence = list362; - AddQuest(questId40, questRoot52); + questRoot53.QuestSequence = list362; + AddQuest(questId40, questRoot53); QuestId questId41 = new QuestId(3290); - QuestRoot questRoot53 = new QuestRoot(); + QuestRoot questRoot54 = new QuestRoot(); num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - 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]; + 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]; QuestSequence obj275 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj275.Steps = list370; reference291 = obj275; - num++; - ref QuestSequence reference292 = ref span379[num]; + ref QuestSequence reference292 = ref span100[1]; QuestSequence obj276 = new QuestSequence { Sequence = 1 @@ -266898,16 +220722,12 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span381 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - ref QuestStep reference293 = ref span381[index2]; + ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list371)[0]; 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); - Span span382 = CollectionsMarshal.AsSpan(list372); - index3 = 0; - span382[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list372)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA209_03290_Q1_000_041") @@ -266916,22 +220736,18 @@ public static class AssemblyQuestLoader reference293 = questStep18; obj276.Steps = list371; reference292 = obj276; - num++; - ref QuestSequence reference294 = ref span379[num]; + ref QuestSequence reference294 = ref span100[2]; QuestSequence obj277 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj277.Steps = list373; reference294 = obj277; - num++; - ref QuestSequence reference295 = ref span379[num]; + ref QuestSequence reference295 = ref span100[3]; QuestSequence obj278 = new QuestSequence { Sequence = 3 @@ -266939,9 +220755,8 @@ public static class AssemblyQuestLoader num2 = 2; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span384 = CollectionsMarshal.AsSpan(list374); - index2 = 0; - span384[index2] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) + Span span101 = CollectionsMarshal.AsSpan(list374); + span101[0] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) { TargetTerritoryId = (ushort)814, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -266951,25 +220766,22 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - index2++; - span384[index2] = new QuestStep(EInteractionType.Interact, 1029841u, new Vector3(800.0458f, 1.4174876f, 255.9701f), 814) + span101[1] = new QuestStep(EInteractionType.Interact, 1029841u, new Vector3(800.0458f, 1.4174876f, 255.9701f), 814) { StopDistance = 7f }; obj278.Steps = list374; reference295 = obj278; - num++; - ref QuestSequence reference296 = ref span379[num]; + ref QuestSequence reference296 = ref span100[4]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -266978,27 +220790,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - num2++; - span385[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029842u, new Vector3(-2.02948f, -4.7436786E-14f, -4.196289f), 844); + span102[1] = new QuestStep(EInteractionType.CompleteQuest, 1029842u, new Vector3(-2.02948f, -4.7436786E-14f, -4.196289f), 844); obj279.Steps = list375; reference296 = obj279; - questRoot53.QuestSequence = list369; - AddQuest(questId41, questRoot53); + questRoot54.QuestSequence = list369; + AddQuest(questId41, questRoot54); QuestId questId42 = new QuestId(3291); - QuestRoot questRoot54 = new QuestRoot(); + QuestRoot questRoot55 = new QuestRoot(); num = 1; List list376 = new List(num); CollectionsMarshal.SetCount(list376, num); - 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]; + 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]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -267006,26 +220814,21 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span388 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span388[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj280.Steps = list378; reference297 = obj280; - num++; - ref QuestSequence reference298 = ref span387[num]; + ref QuestSequence reference298 = ref span103[1]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -267036,8 +220839,7 @@ public static class AssemblyQuestLoader }; obj281.Steps = list379; reference298 = obj281; - num++; - ref QuestSequence reference299 = ref span387[num]; + ref QuestSequence reference299 = ref span103[2]; QuestSequence obj282 = new QuestSequence { Sequence = 2 @@ -267045,36 +220847,29 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span390 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - span390[index2] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819); + CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819); obj282.Steps = list380; reference299 = obj282; - num++; - span387[num] = new QuestSequence + span103[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference300 = ref span387[num]; + ref QuestSequence reference300 = ref span103[4]; QuestSequence obj283 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f, DisableNavmesh = true }; obj283.Steps = list381; reference300 = obj283; - num++; - ref QuestSequence reference301 = ref span387[num]; + ref QuestSequence reference301 = ref span103[5]; QuestSequence obj284 = new QuestSequence { Sequence = 5 @@ -267082,32 +220877,26 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span392 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010044u, new Vector3(446.0669f, -60.56305f, -523.7049f), 815) + Span span104 = CollectionsMarshal.AsSpan(list382); + span104[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010044u, new Vector3(446.0669f, -60.56305f, -523.7049f), 815) { AetherCurrentId = 2818253u }; - index2++; - span392[index2] = new QuestStep(EInteractionType.Interact, 1028962u, new Vector3(477.71423f, -50.54957f, -509.88025f), 815); + span104[1] = new QuestStep(EInteractionType.Interact, 1028962u, new Vector3(477.71423f, -50.54957f, -509.88025f), 815); obj284.Steps = list382; reference301 = obj284; - num++; - ref QuestSequence reference302 = ref span387[num]; + ref QuestSequence reference302 = ref span103[6]; QuestSequence obj285 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj285.Steps = list383; reference302 = obj285; - num++; - ref QuestSequence reference303 = ref span387[num]; + ref QuestSequence reference303 = ref span103[7]; QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue @@ -267115,42 +220904,34 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - Span span394 = CollectionsMarshal.AsSpan(list384); - index2 = 0; - span394[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); + CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028963u, new Vector3(327.0465f, 1.4685787f, -296.4676f), 815); obj286.Steps = list384; reference303 = obj286; - questRoot54.QuestSequence = list377; - AddQuest(questId42, questRoot54); + questRoot55.QuestSequence = list377; + AddQuest(questId42, questRoot55); QuestId questId43 = new QuestId(3292); - QuestRoot questRoot55 = new QuestRoot(); + QuestRoot questRoot56 = new QuestRoot(); num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - 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]; + 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]; QuestSequence obj287 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj287.Steps = list387; reference304 = obj287; - num++; - ref QuestSequence reference305 = ref span396[num]; + ref QuestSequence reference305 = ref span105[1]; QuestSequence obj288 = new QuestSequence { Sequence = 1 @@ -267158,35 +220939,29 @@ public static class AssemblyQuestLoader num2 = 2; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span398 = CollectionsMarshal.AsSpan(list388); - index2 = 0; - span398[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + Span span106 = CollectionsMarshal.AsSpan(list388); + span106[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengMordSouq }; - index2++; - span398[index2] = new QuestStep(EInteractionType.Interact, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + span106[1] = new QuestStep(EInteractionType.Interact, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); obj288.Steps = list388; reference305 = obj288; - num++; - ref QuestSequence reference306 = ref span396[num]; + ref QuestSequence reference306 = ref span105[2]; QuestSequence obj289 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Comment = "Click all four foods" }; obj289.Steps = list389; reference306 = obj289; - num++; - ref QuestSequence reference307 = ref span396[num]; + ref QuestSequence reference307 = ref span105[3]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue @@ -267194,45 +220969,37 @@ public static class AssemblyQuestLoader num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - Span span400 = CollectionsMarshal.AsSpan(list390); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); + CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027872u, new Vector3(268.4519f, 4.0296993f, -144.1825f), 815); obj290.Steps = list390; reference307 = obj290; - questRoot55.QuestSequence = list386; - AddQuest(questId43, questRoot55); + questRoot56.QuestSequence = list386; + AddQuest(questId43, questRoot56); QuestId questId44 = new QuestId(3293); - QuestRoot questRoot56 = new QuestRoot(); + QuestRoot questRoot57 = new QuestRoot(); num = 1; List list391 = new List(num); CollectionsMarshal.SetCount(list391, num); - 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]; + 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]; QuestSequence obj291 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj291.Steps = list393; reference308 = obj291; - num++; - ref QuestSequence reference309 = ref span402[num]; + ref QuestSequence reference309 = ref span107[1]; QuestSequence obj292 = new QuestSequence { Sequence = 1 @@ -267240,33 +221007,24 @@ public static class AssemblyQuestLoader num2 = 3; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span404 = CollectionsMarshal.AsSpan(list394); - index2 = 0; - ref QuestStep reference310 = ref span404[index2]; + Span span108 = CollectionsMarshal.AsSpan(list394); + ref QuestStep reference310 = ref span108[0]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2009935u, new Vector3(328.48096f, 1.449585f, -289.5705f), 815); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list395; num3 = 1; List list396 = new List(num3); CollectionsMarshal.SetCount(list396, num3); - Span span406 = CollectionsMarshal.AsSpan(list396); - index3 = 0; - span406[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list396)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMA303_03293_Q1_000_000"), @@ -267274,81 +221032,61 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list396; reference310 = questStep19; - index2++; - ref QuestStep reference311 = ref span404[index2]; + ref QuestStep reference311 = ref span108[1]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2009934u, new Vector3(231.15894f, 4.0131226f, -300.55695f), 815); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list397; reference311 = questStep20; - index2++; - ref QuestStep reference312 = ref span404[index2]; + ref QuestStep reference312 = ref span108[2]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list398; reference312 = questStep21; obj292.Steps = list394; reference309 = obj292; - num++; - ref QuestSequence reference313 = ref span402[num]; + ref QuestSequence reference313 = ref span107[2]; QuestSequence obj293 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj293.Steps = list399; reference313 = obj293; - questRoot56.QuestSequence = list392; - AddQuest(questId44, questRoot56); + questRoot57.QuestSequence = list392; + AddQuest(questId44, questRoot57); QuestId questId45 = new QuestId(3294); - QuestRoot questRoot57 = new QuestRoot(); + QuestRoot questRoot58 = new QuestRoot(); num = 1; List list400 = new List(num); CollectionsMarshal.SetCount(list400, num); - 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]; + 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]; QuestSequence obj294 = new QuestSequence { Sequence = 0 @@ -267356,35 +221094,29 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span412 = CollectionsMarshal.AsSpan(list402); - index2 = 0; - span412[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028977u, new Vector3(313.8933f, 1.4685827f, -156.81696f), 815); + CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028977u, new Vector3(313.8933f, 1.4685827f, -156.81696f), 815); obj294.Steps = list402; reference314 = obj294; - num++; - ref QuestSequence reference315 = ref span411[num]; + ref QuestSequence reference315 = ref span112[1]; QuestSequence obj295 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3375) }; - num2++; - span413[num2] = new QuestStep(EInteractionType.Interact, 1030606u, new Vector3(347.15796f, -8.423396f, -117.93707f), 815) + span113[1] = new QuestStep(EInteractionType.Interact, 1030606u, new Vector3(347.15796f, -8.423396f, -117.93707f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj295.Steps = list403; reference315 = obj295; - num++; - ref QuestSequence reference316 = ref span411[num]; + ref QuestSequence reference316 = ref span112[2]; QuestSequence obj296 = new QuestSequence { Sequence = 2 @@ -267392,40 +221124,32 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span414 = CollectionsMarshal.AsSpan(list404); - index2 = 0; - ref QuestStep reference317 = ref span414[index2]; + ref QuestStep reference317 = ref CollectionsMarshal.AsSpan(list404)[0]; QuestStep obj297 = new QuestStep(EInteractionType.Combat, null, new Vector3(443.3203f, -23.82671f, -44.724243f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list405 = new List(index3); - CollectionsMarshal.SetCount(list405, index3); - Span span415 = CollectionsMarshal.AsSpan(list405); - num3 = 0; - span415[num3] = 10874u; + num3 = 1; + List list405 = new List(num3); + CollectionsMarshal.SetCount(list405, num3); + CollectionsMarshal.AsSpan(list405)[0] = 10874u; obj297.KillEnemyDataIds = list405; reference317 = obj297; obj296.Steps = list404; reference316 = obj296; - num++; - ref QuestSequence reference318 = ref span411[num]; + ref QuestSequence reference318 = ref span112[3]; QuestSequence obj298 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj298.Steps = list406; reference318 = obj298; - num++; - ref QuestSequence reference319 = ref span411[num]; + ref QuestSequence reference319 = ref span112[4]; QuestSequence obj299 = new QuestSequence { Sequence = 4 @@ -267433,9 +221157,7 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span417 = CollectionsMarshal.AsSpan(list407); - index2 = 0; - ref QuestStep reference320 = ref span417[index2]; + ref QuestStep reference320 = ref CollectionsMarshal.AsSpan(list407)[0]; QuestStep obj300 = new QuestStep(EInteractionType.Combat, 2009848u, new Vector3(487.51038f, -37.979797f, 56.10742f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -267443,29 +221165,23 @@ public static class AssemblyQuestLoader num3 = 1; List list408 = new List(num3); CollectionsMarshal.SetCount(list408, num3); - Span span418 = CollectionsMarshal.AsSpan(list408); - index3 = 0; - span418[index3] = 10875u; + CollectionsMarshal.AsSpan(list408)[0] = 10875u; obj300.KillEnemyDataIds = list408; reference320 = obj300; obj299.Steps = list407; reference319 = obj299; - num++; - ref QuestSequence reference321 = ref span411[num]; + ref QuestSequence reference321 = ref span112[5]; QuestSequence obj301 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj301.Steps = list409; reference321 = obj301; - num++; - ref QuestSequence reference322 = ref span411[num]; + ref QuestSequence reference322 = ref span112[6]; QuestSequence obj302 = new QuestSequence { Sequence = byte.MaxValue @@ -267473,45 +221189,37 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - Span span420 = CollectionsMarshal.AsSpan(list410); - index2 = 0; - span420[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028980u, new Vector3(388.93713f, -33.327938f, 233.20361f), 815); + CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028980u, new Vector3(388.93713f, -33.327938f, 233.20361f), 815); obj302.Steps = list410; reference322 = obj302; - questRoot57.QuestSequence = list401; - AddQuest(questId45, questRoot57); + questRoot58.QuestSequence = list401; + AddQuest(questId45, questRoot58); QuestId questId46 = new QuestId(3295); - QuestRoot questRoot58 = new QuestRoot(); + QuestRoot questRoot59 = new QuestRoot(); num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - 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]; + 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]; QuestSequence obj303 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj303.Steps = list413; reference323 = obj303; - num++; - ref QuestSequence reference324 = ref span422[num]; + ref QuestSequence reference324 = ref span114[1]; QuestSequence obj304 = new QuestSequence { Sequence = 1 @@ -267519,40 +221227,33 @@ public static class AssemblyQuestLoader num2 = 3; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - Span span424 = CollectionsMarshal.AsSpan(list414); - index2 = 0; - span424[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) + Span span115 = CollectionsMarshal.AsSpan(list414); + span115[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 815) { Aetheryte = EAetheryteLocation.AmhAraengInnAtJourneysHead }; - index2++; - span424[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010047u, new Vector3(344.6554f, -66.54462f, 538.9332f), 815) + span115[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010047u, new Vector3(344.6554f, -66.54462f, 538.9332f), 815) { AetherCurrentId = 2818256u }; - index2++; - span424[index2] = new QuestStep(EInteractionType.Interact, 2009849u, new Vector3(362.50854f, -63.95056f, 503.65454f), 815); + span115[2] = new QuestStep(EInteractionType.Interact, 2009849u, new Vector3(362.50854f, -63.95056f, 503.65454f), 815); obj304.Steps = list414; reference324 = obj304; - num++; - ref QuestSequence reference325 = ref span422[num]; + ref QuestSequence reference325 = ref span114[2]; QuestSequence obj305 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true }; obj305.Steps = list415; reference325 = obj305; - num++; - ref QuestSequence reference326 = ref span422[num]; + ref QuestSequence reference326 = ref span114[3]; QuestSequence obj306 = new QuestSequence { Sequence = 3 @@ -267560,30 +221261,24 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span426 = CollectionsMarshal.AsSpan(list416); - index2 = 0; - span426[index2] = new QuestStep(EInteractionType.Interact, 2009851u, new Vector3(329.57947f, -72.15991f, 463.3401f), 815) + CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.Interact, 2009851u, new Vector3(329.57947f, -72.15991f, 463.3401f), 815) { DisableNavmesh = true }; obj306.Steps = list416; reference326 = obj306; - num++; - ref QuestSequence reference327 = ref span422[num]; + ref QuestSequence reference327 = ref span114[4]; QuestSequence obj307 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj307.Steps = list417; reference327 = obj307; - num++; - ref QuestSequence reference328 = ref span422[num]; + ref QuestSequence reference328 = ref span114[5]; QuestSequence obj308 = new QuestSequence { Sequence = 5 @@ -267591,198 +221286,151 @@ public static class AssemblyQuestLoader num2 = 1; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span428 = CollectionsMarshal.AsSpan(list418); - index2 = 0; - span428[index2] = new QuestStep(EInteractionType.Interact, 2009853u, new Vector3(200.79346f, -82.29199f, 384.32886f), 815); + CollectionsMarshal.AsSpan(list418)[0] = new QuestStep(EInteractionType.Interact, 2009853u, new Vector3(200.79346f, -82.29199f, 384.32886f), 815); obj308.Steps = list418; reference328 = obj308; - num++; - ref QuestSequence reference329 = ref span422[num]; + ref QuestSequence reference329 = ref span114[6]; QuestSequence obj309 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj309.Steps = list419; reference329 = obj309; - questRoot58.QuestSequence = list412; - AddQuest(questId46, questRoot58); + questRoot59.QuestSequence = list412; + AddQuest(questId46, questRoot59); QuestId questId47 = new QuestId(3296); - questRoot2 = new QuestRoot(); - QuestRoot questRoot59 = questRoot2; + QuestRoot questRoot60 = new QuestRoot(); num = 1; List list420 = new List(num); CollectionsMarshal.SetCount(list420, num); - 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]; + 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]; QuestSequence obj310 = new QuestSequence { Sequence = 0 }; num2 = 1; - 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; + 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; reference330 = obj310; - num++; - ref QuestSequence reference331 = ref span431[num]; + ref QuestSequence reference331 = ref span116[1]; QuestSequence obj311 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list422 = new List(index2); - CollectionsMarshal.SetCount(list422, index2); - Span span433 = CollectionsMarshal.AsSpan(list422); - num2 = 0; - ref QuestStep reference332 = ref span433[num2]; + num2 = 3; + List list423 = new List(num2); + CollectionsMarshal.SetCount(list423, num2); + Span span117 = CollectionsMarshal.AsSpan(list423); + ref QuestStep reference332 = ref span117[0]; QuestStep obj312 = new QuestStep(EInteractionType.Combat, 2009854u, new Vector3(215.44214f, -58.609924f, 262.745f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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); + num3 = 1; + List list424 = new List(num3); CollectionsMarshal.SetCount(list424, num3); - 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; + 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; reference332 = obj312; - num2++; - ref QuestStep reference333 = ref span433[num2]; + ref QuestStep reference333 = ref span117[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2009855u, new Vector3(259.20496f, -44.571655f, 159.74658f), 815); - 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; + 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; reference333 = questStep22; - num2++; - ref QuestStep reference334 = ref span433[num2]; + ref QuestStep reference334 = ref span117[2]; QuestStep obj313 = new QuestStep(EInteractionType.Combat, 2009856u, new Vector3(337.08704f, -35.01947f, 42.313232f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - 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; + 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; reference334 = obj313; - obj311.Steps = list422; + obj311.Steps = list423; reference331 = obj311; - num++; - ref QuestSequence reference335 = ref span431[num]; + ref QuestSequence reference335 = ref span116[2]; QuestSequence obj314 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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; + 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; reference335 = obj314; - num++; - ref QuestSequence reference336 = ref span431[num]; + ref QuestSequence reference336 = ref span116[3]; QuestSequence obj315 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; reference336 = obj315; - questRoot60.QuestSequence = list8; - AddQuest(questId47, questRoot2); + questRoot60.QuestSequence = list421; + AddQuest(questId47, questRoot60); QuestId questId48 = new QuestId(3297); questRoot2 = new QuestRoot(); QuestRoot questRoot61 = questRoot2; num = 1; - List list430 = new List(num); - CollectionsMarshal.SetCount(list430, num); - Span span441 = CollectionsMarshal.AsSpan(list430); - index = 0; - span441[index] = "liza"; - questRoot61.Author = list430; + List list431 = new List(num); + CollectionsMarshal.SetCount(list431, num); + CollectionsMarshal.AsSpan(list431)[0] = "liza"; + questRoot61.Author = list431; QuestRoot questRoot62 = questRoot2; - index = 9; - List list431 = new List(index); - CollectionsMarshal.SetCount(list431, index); - Span span442 = CollectionsMarshal.AsSpan(list431); - num = 0; - ref QuestSequence reference337 = ref span442[num]; + num = 9; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span121 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference337 = ref span121[0]; QuestSequence obj316 = new QuestSequence { Sequence = 0 @@ -267790,27 +221438,21 @@ public static class AssemblyQuestLoader num2 = 1; List list432 = new List(num2); CollectionsMarshal.SetCount(list432, num2); - Span span443 = CollectionsMarshal.AsSpan(list432); - index2 = 0; - span443[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); obj316.Steps = list432; reference337 = obj316; - num++; - ref QuestSequence reference338 = ref span442[num]; + ref QuestSequence reference338 = ref span121[1]; QuestSequence obj317 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj317.Steps = list433; reference338 = obj317; - num++; - ref QuestSequence reference339 = ref span442[num]; + ref QuestSequence reference339 = ref span121[2]; QuestSequence obj318 = new QuestSequence { Sequence = 2 @@ -267818,35 +221460,29 @@ public static class AssemblyQuestLoader num2 = 1; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span445 = CollectionsMarshal.AsSpan(list434); - index2 = 0; - span445[index2] = new QuestStep(EInteractionType.Interact, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) + CollectionsMarshal.AsSpan(list434)[0] = new QuestStep(EInteractionType.Interact, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) { StopDistance = 7f }; obj318.Steps = list434; reference339 = obj318; - num++; - ref QuestSequence reference340 = ref span442[num]; + ref QuestSequence reference340 = ref span121[3]; QuestSequence obj319 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj319.Steps = list435; reference340 = obj319; - num++; - ref QuestSequence reference341 = ref span442[num]; + ref QuestSequence reference341 = ref span121[4]; QuestSequence obj320 = new QuestSequence { Sequence = 4 @@ -267854,30 +221490,24 @@ public static class AssemblyQuestLoader num2 = 1; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - Span span447 = CollectionsMarshal.AsSpan(list436); - index2 = 0; - span447[index2] = new QuestStep(EInteractionType.Interact, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); + CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.Interact, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815); obj320.Steps = list436; reference341 = obj320; - num++; - ref QuestSequence reference342 = ref span442[num]; + ref QuestSequence reference342 = ref span121[5]; QuestSequence obj321 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj321.Steps = list437; reference342 = obj321; - num++; - ref QuestSequence reference343 = ref span442[num]; + ref QuestSequence reference343 = ref span121[6]; QuestSequence obj322 = new QuestSequence { Sequence = 6 @@ -267885,27 +221515,21 @@ public static class AssemblyQuestLoader num2 = 1; List list438 = new List(num2); CollectionsMarshal.SetCount(list438, num2); - Span span449 = CollectionsMarshal.AsSpan(list438); - index2 = 0; - span449[index2] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); + CollectionsMarshal.AsSpan(list438)[0] = new QuestStep(EInteractionType.Interact, 1029007u, new Vector3(215.13696f, 7.1558266f, -214.3435f), 815); obj322.Steps = list438; reference343 = obj322; - num++; - ref QuestSequence reference344 = ref span442[num]; + ref QuestSequence reference344 = ref span121[7]; QuestSequence obj323 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj323.Steps = list439; reference344 = obj323; - num++; - ref QuestSequence reference345 = ref span442[num]; + ref QuestSequence reference345 = ref span121[8]; QuestSequence obj324 = new QuestSequence { Sequence = byte.MaxValue @@ -267913,15 +221537,13 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - Span span451 = CollectionsMarshal.AsSpan(list440); - index2 = 0; - span451[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) + CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029001u, new Vector3(373.09827f, -26.632425f, 290.6996f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj324.Steps = list440; reference345 = obj324; - questRoot62.QuestSequence = list431; + questRoot62.QuestSequence = list8; AddQuest(questId48, questRoot2); QuestId questId49 = new QuestId(3298); questRoot2 = new QuestRoot(); @@ -267929,31 +221551,25 @@ public static class AssemblyQuestLoader num = 1; List list441 = new List(num); CollectionsMarshal.SetCount(list441, num); - Span span452 = CollectionsMarshal.AsSpan(list441); - index = 0; - span452[index] = "liza"; + CollectionsMarshal.AsSpan(list441)[0] = "liza"; questRoot63.Author = list441; QuestRoot questRoot64 = questRoot2; - index = 8; - list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span453 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference346 = ref span453[num]; + num = 8; + list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span123 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference346 = ref span123[0]; QuestSequence obj325 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj325.Steps = list442; reference346 = obj325; - num++; - ref QuestSequence reference347 = ref span453[num]; + ref QuestSequence reference347 = ref span123[1]; QuestSequence obj326 = new QuestSequence { Sequence = 1 @@ -267961,30 +221577,24 @@ public static class AssemblyQuestLoader num2 = 1; List list443 = new List(num2); CollectionsMarshal.SetCount(list443, num2); - Span span455 = CollectionsMarshal.AsSpan(list443); - index2 = 0; - span455[index2] = new QuestStep(EInteractionType.Interact, 1029008u, new Vector3(399.64905f, -28.357803f, 349.813f), 815) + CollectionsMarshal.AsSpan(list443)[0] = new QuestStep(EInteractionType.Interact, 1029008u, new Vector3(399.64905f, -28.357803f, 349.813f), 815) { StopDistance = 7f }; obj326.Steps = list443; reference347 = obj326; - num++; - ref QuestSequence reference348 = ref span453[num]; + ref QuestSequence reference348 = ref span123[2]; QuestSequence obj327 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj327.Steps = list444; reference348 = obj327; - num++; - ref QuestSequence reference349 = ref span453[num]; + ref QuestSequence reference349 = ref span123[3]; QuestSequence obj328 = new QuestSequence { Sequence = 3 @@ -267992,9 +221602,7 @@ public static class AssemblyQuestLoader num2 = 1; List list445 = new List(num2); CollectionsMarshal.SetCount(list445, num2); - Span span457 = CollectionsMarshal.AsSpan(list445); - index2 = 0; - ref QuestStep reference350 = ref span457[index2]; + ref QuestStep reference350 = ref CollectionsMarshal.AsSpan(list445)[0]; QuestStep obj329 = new QuestStep(EInteractionType.Combat, 2009859u, new Vector3(317.28076f, -76.554565f, 476.64612f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -268002,29 +221610,23 @@ public static class AssemblyQuestLoader num3 = 1; List list446 = new List(num3); CollectionsMarshal.SetCount(list446, num3); - Span span458 = CollectionsMarshal.AsSpan(list446); - index3 = 0; - span458[index3] = 10877u; + CollectionsMarshal.AsSpan(list446)[0] = 10877u; obj329.KillEnemyDataIds = list446; reference350 = obj329; obj328.Steps = list445; reference349 = obj328; - num++; - ref QuestSequence reference351 = ref span453[num]; + ref QuestSequence reference351 = ref span123[4]; QuestSequence obj330 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj330.Steps = list447; reference351 = obj330; - num++; - ref QuestSequence reference352 = ref span453[num]; + ref QuestSequence reference352 = ref span123[5]; QuestSequence obj331 = new QuestSequence { Sequence = 5 @@ -268032,67 +221634,49 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - Span span460 = CollectionsMarshal.AsSpan(list448); - index2 = 0; - span460[index2] = new QuestStep(EInteractionType.Interact, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); + CollectionsMarshal.AsSpan(list448)[0] = new QuestStep(EInteractionType.Interact, 1029010u, new Vector3(401.3275f, -28.80457f, 260.21204f), 815); obj331.Steps = list448; reference352 = obj331; - num++; - ref QuestSequence reference353 = ref span453[num]; + ref QuestSequence reference353 = ref span123[6]; QuestSequence obj332 = new QuestSequence { Sequence = 6 }; - index2 = 2; - List list449 = new List(index2); - CollectionsMarshal.SetCount(list449, index2); - Span span461 = CollectionsMarshal.AsSpan(list449); - num2 = 0; - ref QuestStep reference354 = ref span461[num2]; + num2 = 2; + List list449 = new List(num2); + CollectionsMarshal.SetCount(list449, num2); + Span span124 = CollectionsMarshal.AsSpan(list449); + ref QuestStep reference354 = ref span124[0]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1027906u, new Vector3(423.14795f, -26.83098f, 294.6974f), 815); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list450; reference354 = questStep23; - num2++; - ref QuestStep reference355 = ref span461[num2]; + ref QuestStep reference355 = ref span124[1]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list451; reference355 = questStep24; obj332.Steps = list449; reference353 = obj332; - num++; - ref QuestSequence reference356 = ref span453[num]; + ref QuestSequence reference356 = ref span123[7]; QuestSequence obj333 = new QuestSequence { Sequence = byte.MaxValue @@ -268100,9 +221684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - Span span464 = CollectionsMarshal.AsSpan(list452); - index2 = 0; - span464[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029012u, new Vector3(400.80872f, -28.75819f, 257.28235f), 815); + CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029012u, new Vector3(400.80872f, -28.75819f, 257.28235f), 815); obj333.Steps = list452; reference356 = obj333; questRoot64.QuestSequence = list8; @@ -268112,30 +221694,24 @@ public static class AssemblyQuestLoader num = 1; List list453 = new List(num); CollectionsMarshal.SetCount(list453, num); - Span span465 = CollectionsMarshal.AsSpan(list453); - index = 0; - span465[index] = "liza"; + CollectionsMarshal.AsSpan(list453)[0] = "liza"; questRoot65.Author = list453; - index = 4; - List list454 = new List(index); - CollectionsMarshal.SetCount(list454, index); - Span span466 = CollectionsMarshal.AsSpan(list454); - num = 0; - ref QuestSequence reference357 = ref span466[num]; + num = 4; + List list454 = new List(num); + CollectionsMarshal.SetCount(list454, num); + Span span127 = CollectionsMarshal.AsSpan(list454); + ref QuestSequence reference357 = ref span127[0]; QuestSequence obj334 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj334.Steps = list455; reference357 = obj334; - num++; - ref QuestSequence reference358 = ref span466[num]; + ref QuestSequence reference358 = ref span127[1]; QuestSequence obj335 = new QuestSequence { Sequence = 1 @@ -268143,9 +221719,8 @@ public static class AssemblyQuestLoader num2 = 3; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span468 = CollectionsMarshal.AsSpan(list456); - index2 = 0; - span468[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.63951f, 36.19769f, -170.36603f), 819) + Span span128 = CollectionsMarshal.AsSpan(list456); + span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(58.63951f, 36.19769f, -170.36603f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -268154,31 +221729,25 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - index2++; - span468[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + span128[1] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { TargetTerritoryId = (ushort)815 }; - index2++; - span468[index2] = new QuestStep(EInteractionType.Interact, 1029013u, new Vector3(664.4236f, -48.865906f, -651.3619f), 815); + span128[2] = new QuestStep(EInteractionType.Interact, 1029013u, new Vector3(664.4236f, -48.865906f, -651.3619f), 815); obj335.Steps = list456; reference358 = obj335; - num++; - ref QuestSequence reference359 = ref span466[num]; + ref QuestSequence reference359 = ref span127[2]; QuestSequence obj336 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj336.Steps = list457; reference359 = obj336; - num++; - ref QuestSequence reference360 = ref span466[num]; + ref QuestSequence reference360 = ref span127[3]; QuestSequence obj337 = new QuestSequence { Sequence = byte.MaxValue @@ -268186,9 +221755,8 @@ public static class AssemblyQuestLoader num2 = 2; List list458 = new List(num2); CollectionsMarshal.SetCount(list458, num2); - Span span470 = CollectionsMarshal.AsSpan(list458); - index2 = 0; - span470[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span129 = CollectionsMarshal.AsSpan(list458); + span129[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -268197,8 +221765,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index2++; - span470[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029015u, new Vector3(2.243042f, 0f, -4.1047363f), 844); + span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1029015u, new Vector3(2.243042f, 0f, -4.1047363f), 844); obj337.Steps = list458; reference360 = obj337; questRoot65.QuestSequence = list454; @@ -268212,16 +221779,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -268229,33 +221793,27 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -268263,9 +221821,8 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010024u, new Vector3(554.2534f, 17.92926f, 352.1018f), 813) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010024u, new Vector3(554.2534f, 17.92926f, 352.1018f), 813) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -268275,40 +221832,32 @@ public static class AssemblyQuestLoader }, AetherCurrentId = 2818223u }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Interact, 1028928u, new Vector3(347.98206f, 3.5166266f, 167.89502f), 813); + span2[1] = new QuestStep(EInteractionType.Interact, 1028928u, new Vector3(347.98206f, 3.5166266f, 167.89502f), 813); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Aetheryte = EAetheryteLocation.LakelandFortJobb }; - 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) + 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) { AetherCurrentId = 2818227u }; - num2++; - span6[num2] = new QuestStep(EInteractionType.Interact, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + span3[4] = new QuestStep(EInteractionType.Interact, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -268316,9 +221865,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Duty, null, null, 813) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Duty, null, null, 813) { DutyOptions = new DutyOptions { @@ -268328,23 +221875,19 @@ public static class AssemblyQuestLoader }; obj5.Steps = list7; reference5 = obj5; - num++; - span2[num] = new QuestSequence + span[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[6]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -268354,16 +221897,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; questRoot2.Author = list9; - index = 5; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 5; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span4 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span4[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -268371,30 +221911,24 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029846u, new Vector3(682.33765f, 101.7017f, -710.3533f), 813); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span4[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span4[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -268402,30 +221936,24 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819); + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span4[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span10[num]; + ref QuestSequence reference11 = ref span4[4]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -268433,9 +221961,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference12 = ref span15[index2]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestStep obj12 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f @@ -268443,9 +221969,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - int index3 = 0; - span16[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMA402_03301_Q1_000_000") @@ -268461,30 +221985,24 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 6; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 6; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span5 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span5[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span5[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -268492,14 +222010,12 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819) + Span span6 = CollectionsMarshal.AsSpan(list20); + span6[0] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819) { PickUpQuestId = new QuestId(3380) }; - index2++; - span20[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + span6[1] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -268518,18 +222034,15 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span5[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -268540,8 +222053,7 @@ public static class AssemblyQuestLoader }; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span5[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -268549,27 +222061,21 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Interact, 2009809u, new Vector3(-62.638306f, -35.446716f, -275.83734f), 819); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Interact, 2009809u, new Vector3(-62.638306f, -35.446716f, -275.83734f), 819); obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span18[num]; + ref QuestSequence reference17 = ref span5[4]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span18[num]; + ref QuestSequence reference18 = ref span5[5]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -268577,9 +222083,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028941u, new Vector3(-67.0329f, -37.700005f, -209.15546f), 819); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028941u, new Vector3(-67.0329f, -37.700005f, -209.15546f), 819); obj18.Steps = list24; reference18 = obj18; questRoot3.QuestSequence = list18; @@ -268589,33 +222093,27 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; questRoot4.Author = list25; - index = 6; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference19 = ref span26[num]; + num = 6; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span7 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference19 = ref span7[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span26[num]; + ref QuestSequence reference20 = ref span7[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -268623,26 +222121,21 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.Interact, 1028944u, new Vector3(-63.767517f, -37.7f, -210.2846f), 819) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1028944u, new Vector3(-63.767517f, -37.7f, -210.2846f), 819) { StopDistance = 5f }; obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span26[num]; + ref QuestSequence reference21 = ref span7[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -268652,8 +222145,7 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span26[num]; + ref QuestSequence reference22 = ref span7[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 @@ -268661,9 +222153,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AethernetShortcut = new AethernetShortcut { @@ -268673,25 +222163,21 @@ public static class AssemblyQuestLoader }; obj22.Steps = list30; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span26[num]; + ref QuestSequence reference23 = ref span7[4]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - 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) + 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) { ItemId = 2002531u }; obj23.Steps = list31; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span26[num]; + ref QuestSequence reference24 = ref span7[5]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -268699,9 +222185,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819) { AethernetShortcut = new AethernetShortcut { @@ -268718,30 +222202,24 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot5.Author = list33; - index = 6; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference25 = ref span34[num]; + num = 6; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span8 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference25 = ref span8[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj25.Steps = list35; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span8[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -268749,30 +222227,24 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1028945u, new Vector3(588.55554f, 9.151089f, 342.7328f), 813); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1028945u, new Vector3(588.55554f, 9.151089f, 342.7328f), 813); obj26.Steps = list36; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span34[num]; + ref QuestSequence reference27 = ref span8[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj27.Steps = list37; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span34[num]; + ref QuestSequence reference28 = ref span8[3]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -268780,33 +222252,27 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-621.27985f, 56.75789f, -151.14738f), 813) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-621.27985f, 56.75789f, -151.14738f), 813) { Fly = true }; obj28.Steps = list38; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span34[num]; + ref QuestSequence reference29 = ref span8[4]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj29.Steps = list39; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span34[num]; + ref QuestSequence reference30 = ref span8[5]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -268814,29 +222280,23 @@ public static class AssemblyQuestLoader num2 = 6; 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(-655.08356f, 52.60457f, -186.09218f), 813); - index2++; - span40[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-628.89685f, 52.60457f, -190.31772f), 813) + 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) { DisableNavmesh = true }; - index2++; - span40[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010032u, new Vector3(-619.6537f, 51.499146f, -199.11499f), 813) + span9[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010032u, new Vector3(-619.6537f, 51.499146f, -199.11499f), 813) { DisableNavmesh = true, AetherCurrentId = 2818231u }; - index2++; - span40[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) + span9[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 813) { Aetheryte = EAetheryteLocation.LakelandOstallImperative }; - 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) + 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) { DisableNavmesh = true }; @@ -268849,30 +222309,24 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot6.Author = list41; - index = 7; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference31 = ref span42[num]; + num = 7; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span10 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference31 = ref span10[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj31.Steps = list43; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span10[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -268880,92 +222334,67 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - 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); + 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); obj32.Steps = list44; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span42[num]; + ref QuestSequence reference33 = ref span10[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref QuestStep reference34 = ref span45[num2]; + num2 = 5; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + Span span12 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference34 = ref span12[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1028951u, new Vector3(-639.0631f, 56.95372f, -167.71198f), 813); - 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); + 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); questStep.CompletionQuestVariablesFlags = list46; reference34 = questStep; - num2++; - ref QuestStep reference35 = ref span45[num2]; + ref QuestStep reference35 = ref span12[1]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list47; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference35 = questStep2; - num2++; - ref QuestStep reference36 = ref span45[num2]; + ref QuestStep reference36 = ref span12[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1028952u, new Vector3(-750.20984f, 66.442f, -194.32367f), 813); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list48; reference36 = questStep3; - num2++; - ref QuestStep reference37 = ref span45[num2]; + ref QuestStep reference37 = ref span12[3]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1028953u, new Vector3(-776.51636f, 51.56758f, -243.57977f), 813) { DisableNavmesh = true, @@ -268974,50 +222403,36 @@ public static class AssemblyQuestLoader num3 = 6; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - 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); + 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); obj34.CompletionQuestVariablesFlags = list49; reference37 = obj34; - num2++; - ref QuestStep reference38 = ref span45[num2]; + ref QuestStep reference38 = ref span12[4]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 1028954u, new Vector3(-715.78546f, 51.50113f, -265.49176f), 813) { DisableNavmesh = true, Mount = true }; - 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); + 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); obj35.CompletionQuestVariablesFlags = list50; reference38 = obj35; obj33.Steps = list45; reference33 = obj33; - num++; - ref QuestSequence reference39 = ref span42[num]; + ref QuestSequence reference39 = ref span10[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 @@ -269025,38 +222440,31 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1028947u, new Vector3(-648.9509f, 64.32663f, -271.65643f), 813); obj36.Steps = list51; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span42[num]; + ref QuestSequence reference40 = ref span10[4]; QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - 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) + 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) { PickUpQuestId = new QuestId(3385) }; - num2++; - span52[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) + span18[1] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { PickUpQuestId = new QuestId(3384) }; - num2++; - span52[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813) + span18[2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813) { PickUpQuestId = new QuestId(3386) }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) + span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) { Comment = "Tower Bottom", AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -269068,8 +222476,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) + span18[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) { DisableNavmesh = true, Comment = "Tower Bottom Platform 1", @@ -269081,8 +222488,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.0622f, 149.62582f, -337.95224f), 813) + span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-780.0622f, 149.62582f, -337.95224f), 813) { Comment = "Wooden Skywalk Bottom", SkipConditions = new SkipConditions @@ -269093,8 +222499,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-765.9982f, 155.44612f, -338.81696f), 813) + span18[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-765.9982f, 155.44612f, -338.81696f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 1", @@ -269106,8 +222511,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-754.08276f, 168.09683f, -308.96964f), 813) + span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-754.08276f, 168.09683f, -308.96964f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 2", @@ -269119,8 +222523,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-785.5669f, 180.77463f, -297.20663f), 813) + span18[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-785.5669f, 180.77463f, -297.20663f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 3", @@ -269132,8 +222535,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-797.36646f, 193.39963f, -328.5602f), 813) + span18[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-797.36646f, 193.39963f, -328.5602f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Platform 4", @@ -269145,8 +222547,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-778.27325f, 200.46912f, -335.60287f), 813) + span18[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-778.27325f, 200.46912f, -335.60287f), 813) { DisableNavmesh = true, Comment = "Wooden Skywalk Top", @@ -269158,8 +222559,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-773.5372f, 200.21283f, -331.92017f), 813) + span18[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-773.5372f, 200.21283f, -331.92017f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -269170,8 +222570,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-764.10376f, 200.22963f, -332.95276f), 813) + span18[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-764.10376f, 200.22963f, -332.95276f), 813) { SkipConditions = new SkipConditions { @@ -269181,8 +222580,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.3483f, 200.13994f, -312.77927f), 813) + span18[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.3483f, 200.13994f, -312.77927f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -269193,8 +222591,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-756.9433f, 200.1388f, -295.38437f), 813) + span18[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-756.9433f, 200.1388f, -295.38437f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -269205,8 +222602,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span52[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028955u, new Vector3(-755.67255f, 200.19878f, -293.87354f), 813) + span18[15] = new QuestStep(EInteractionType.SinglePlayerDuty, 1028955u, new Vector3(-755.67255f, 200.19878f, -293.87354f), 813) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -269215,13 +222611,11 @@ public static class AssemblyQuestLoader }; obj37.Steps = list52; reference40 = obj37; - num++; - span42[num] = new QuestSequence + span10[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference41 = ref span42[num]; + ref QuestSequence reference41 = ref span10[6]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -269229,9 +222623,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028956u, new Vector3(-635.76715f, 126.0163f, 697.444f), 816) { DisableNavmesh = true }; @@ -269244,33 +222636,27 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot7.Author = list54; - index = 4; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference42 = ref span55[num]; + num = 4; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span19 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference42 = ref span19[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + 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) { DisableNavmesh = true }; obj39.Steps = list56; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span55[num]; + ref QuestSequence reference43 = ref span19[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -269278,42 +222664,35 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); obj40.Steps = list57; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span19[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Aetheryte = EAetheryteLocation.IlMhegLydhaLran }; - num2++; - ref QuestStep reference45 = ref span58[num2]; + ref QuestStep reference45 = ref span20[1]; 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 span59 = CollectionsMarshal.AsSpan(list59); - index3 = 0; - span59[index3] = new DialogueChoice + Span span21 = CollectionsMarshal.AsSpan(list59); + span21[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB105_03306_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKMB105_03306_A3_000_002") }; - index3++; - span59[index3] = new DialogueChoice + span21[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB105_03306_Q4_000_000"), @@ -269323,8 +222702,7 @@ public static class AssemblyQuestLoader reference45 = questStep4; obj41.Steps = list58; reference44 = obj41; - num++; - ref QuestSequence reference46 = ref span55[num]; + ref QuestSequence reference46 = ref span19[3]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -269332,9 +222710,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028970u, new Vector3(-370.41278f, 47.988583f, 497.3982f), 816); obj42.Steps = list60; reference46 = obj42; questRoot7.QuestSequence = list55; @@ -269344,30 +222720,24 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot8.Author = list61; - index = 3; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference47 = ref span62[num]; + num = 3; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span22 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference47 = ref span22[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj43.Steps = list63; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span62[num]; + ref QuestSequence reference48 = ref span22[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -269375,39 +222745,30 @@ public static class AssemblyQuestLoader num2 = 6; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) + Span span23 = CollectionsMarshal.AsSpan(list64); + span23[0] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816) { PickUpQuestId = new QuestId(3395) }; - index2++; - ref QuestStep reference49 = ref span64[index2]; + ref QuestStep reference49 = ref span23[1]; QuestStep questStep5 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.70227f, 69.40222f, 546.2372f), 816); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions2.StepIf = skipStepConditions2; questStep5.SkipConditions = skipConditions2; reference49 = questStep5; - index2++; - ref QuestStep reference50 = ref span64[index2]; + ref QuestStep reference50 = ref span23[2]; QuestStep obj45 = new QuestStep(EInteractionType.UseItem, 2009820u, new Vector3(-375.29565f, 76.06616f, 550.4386f), 816) { DisableNavmesh = true, @@ -269416,51 +222777,37 @@ public static class AssemblyQuestLoader num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - 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); + 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); obj45.CompletionQuestVariablesFlags = list66; reference50 = obj45; - index2++; - ref QuestStep reference51 = ref span64[index2]; + ref QuestStep reference51 = ref span23[3]; 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(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list67; skipConditions3.StepIf = skipStepConditions3; obj46.SkipConditions = skipConditions3; reference51 = obj46; - index2++; - ref QuestStep reference52 = ref span64[index2]; + ref QuestStep reference52 = ref span23[4]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, 2009819u, new Vector3(-454.88672f, 80.125f, 593.469f), 816) { ItemId = 2002534u @@ -269468,59 +222815,43 @@ public static class AssemblyQuestLoader num3 = 6; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - 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); + 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); obj47.CompletionQuestVariablesFlags = list68; reference52 = obj47; - index2++; - ref QuestStep reference53 = ref span64[index2]; + ref QuestStep reference53 = ref span23[5]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 2009821u, new Vector3(-280.32355f, 56.22937f, 474.08252f), 816) { ItemId = 2002534u }; - 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); + 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); obj48.CompletionQuestVariablesFlags = list69; reference53 = obj48; obj44.Steps = list64; reference48 = obj44; - num++; - ref QuestSequence reference54 = ref span62[num]; + ref QuestSequence reference54 = ref span22[2]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj49.Steps = list70; reference54 = obj49; questRoot8.QuestSequence = list62; @@ -269530,16 +222861,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot9.Author = list71; - index = 3; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference55 = ref span72[num]; + num = 3; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span29 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference55 = ref span29[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -269547,23 +222875,19 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); obj50.Steps = list73; reference55 = obj50; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span29[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list74 = new List(index2); - CollectionsMarshal.SetCount(list74, index2); - Span span74 = CollectionsMarshal.AsSpan(list74); - num2 = 0; - ref QuestStep reference57 = ref span74[num2]; + num2 = 2; + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + Span span30 = CollectionsMarshal.AsSpan(list74); + ref QuestStep reference57 = ref span30[0]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 2009822u, new Vector3(-211.10858f, 38.895264f, 356.77112f), 816) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -269571,30 +222895,21 @@ public static class AssemblyQuestLoader num3 = 1; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - Span span75 = CollectionsMarshal.AsSpan(list75); - index3 = 0; - span75[index3] = 10840u; + CollectionsMarshal.AsSpan(list75)[0] = 10840u; obj52.KillEnemyDataIds = list75; - 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); + 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); obj52.CompletionQuestVariablesFlags = list76; reference57 = obj52; - num2++; - ref QuestStep reference58 = ref span74[num2]; + ref QuestStep reference58 = ref span30[1]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, 2009823u, new Vector3(-260.24268f, 38.986816f, 289.05164f), 816) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -269602,32 +222917,23 @@ public static class AssemblyQuestLoader num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span77 = CollectionsMarshal.AsSpan(list77); - index3 = 0; - span77[index3] = 10840u; + CollectionsMarshal.AsSpan(list77)[0] = 10840u; obj53.KillEnemyDataIds = list77; - 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); + 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); obj53.CompletionQuestVariablesFlags = list78; reference58 = obj53; obj51.Steps = list74; reference56 = obj51; - num++; - ref QuestSequence reference59 = ref span72[num]; + ref QuestSequence reference59 = ref span29[2]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -269635,9 +222941,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027655u, new Vector3(-424.6739f, 60.46432f, 490.07385f), 816); obj54.Steps = list79; reference59 = obj54; questRoot9.QuestSequence = list72; @@ -269647,30 +222951,24 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot10.Author = list80; - index = 4; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference60 = ref span81[num]; + num = 4; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span33 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference60 = ref span33[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj55.Steps = list82; reference60 = obj55; - num++; - ref QuestSequence reference61 = ref span81[num]; + ref QuestSequence reference61 = ref span33[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -269678,23 +222976,19 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 2009824u, new Vector3(-59.250793f, 0.47296143f, 279.95728f), 816); + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 2009824u, new Vector3(-59.250793f, 0.47296143f, 279.95728f), 816); obj56.Steps = list83; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span81[num]; + ref QuestSequence reference62 = ref span33[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num2 = 0; - ref QuestStep reference63 = ref span84[num2]; + num2 = 2; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + Span span34 = CollectionsMarshal.AsSpan(list84); + ref QuestStep reference63 = ref span34[0]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, 2009825u, new Vector3(-122.30109f, 17.807251f, 413.2295f), 816) { ItemId = 2002536u @@ -269702,49 +222996,35 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - 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); + 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); obj58.CompletionQuestVariablesFlags = list85; reference63 = obj58; - num2++; - ref QuestStep reference64 = ref span84[num2]; + ref QuestStep reference64 = ref span34[1]; QuestStep obj59 = new QuestStep(EInteractionType.UseItem, 2009826u, new Vector3(-263.17236f, 41.85547f, 469.5963f), 816) { ItemId = 2002536u }; - 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); + 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); obj59.CompletionQuestVariablesFlags = list86; reference64 = obj59; obj57.Steps = list84; reference62 = obj57; - num++; - ref QuestSequence reference65 = ref span81[num]; + ref QuestSequence reference65 = ref span33[3]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -269752,9 +223032,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027656u, new Vector3(-291.61517f, 40.324036f, 456.65674f), 816); obj60.Steps = list87; reference65 = obj60; questRoot10.QuestSequence = list81; @@ -269764,30 +223042,24 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "liza"; + CollectionsMarshal.AsSpan(list88)[0] = "liza"; questRoot11.Author = list88; - index = 6; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference66 = ref span89[num]; + num = 6; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span37 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference66 = ref span37[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj61.Steps = list90; reference66 = obj61; - num++; - ref QuestSequence reference67 = ref span89[num]; + ref QuestSequence reference67 = ref span37[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -269795,9 +223067,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { ChatMessage = new ChatMessage { @@ -269806,18 +223076,15 @@ public static class AssemblyQuestLoader }; obj62.Steps = list91; reference67 = obj62; - num++; - ref QuestSequence reference68 = ref span89[num]; + ref QuestSequence reference68 = ref span37[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DelaySecondsAtStart = 6f, ChatMessage = new ChatMessage @@ -269827,8 +223094,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list92; reference68 = obj63; - num++; - ref QuestSequence reference69 = ref span89[num]; + ref QuestSequence reference69 = ref span37[3]; QuestSequence obj64 = new QuestSequence { Sequence = 3 @@ -269836,9 +223102,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Say, 2009827u, new Vector3(-408.6214f, 57.99951f, 408.1941f), 816) { DelaySecondsAtStart = 8f, ChatMessage = new ChatMessage @@ -269848,25 +223112,21 @@ public static class AssemblyQuestLoader }; obj64.Steps = list93; reference69 = obj64; - num++; - ref QuestSequence reference70 = ref span89[num]; + ref QuestSequence reference70 = ref span37[4]; QuestSequence obj65 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj65.Steps = list94; reference70 = obj65; - num++; - ref QuestSequence reference71 = ref span89[num]; + ref QuestSequence reference71 = ref span37[5]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -269874,9 +223134,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028999u, new Vector3(-603.1434f, 36.117786f, -230.0603f), 816); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028999u, new Vector3(-603.1434f, 36.117786f, -230.0603f), 816); obj66.Steps = list95; reference71 = obj66; questRoot11.QuestSequence = list89; @@ -269886,26 +223144,21 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot12.Author = list96; - index = 4; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference72 = ref span97[num]; + num = 4; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span38 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference72 = ref span38[0]; QuestSequence obj67 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list98)[0]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1029017u, new Vector3(-645.01416f, 35.86156f, -223.10223f), 816) { StopDistance = 5f @@ -269913,9 +223166,7 @@ public static class AssemblyQuestLoader num3 = 1; List list99 = new List(num3); CollectionsMarshal.SetCount(list99, num3); - Span span99 = CollectionsMarshal.AsSpan(list99); - index3 = 0; - span99[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB110_03311_Q1_000_000"), @@ -269925,8 +223176,7 @@ public static class AssemblyQuestLoader reference73 = obj68; obj67.Steps = list98; reference72 = obj67; - num++; - ref QuestSequence reference74 = ref span97[num]; + ref QuestSequence reference74 = ref span38[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -269934,24 +223184,20 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816) + Span span39 = CollectionsMarshal.AsSpan(list100); + span39[0] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816) { PickUpQuestId = new QuestId(3398) }; - index2++; - ref QuestStep reference75 = ref span100[index2]; + ref QuestStep reference75 = ref span39[1]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-629.64935f, 35.484062f, -173.54001f), 816) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list101 = new List(index3); - CollectionsMarshal.SetCount(list101, index3); - Span span101 = CollectionsMarshal.AsSpan(list101); - num3 = 0; - span101[num3] = 10258u; + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + CollectionsMarshal.AsSpan(list101)[0] = 10258u; obj70.KillEnemyDataIds = list101; obj70.CombatItemUse = new CombatItemUse { @@ -269962,22 +223208,18 @@ public static class AssemblyQuestLoader reference75 = obj70; obj69.Steps = list100; reference74 = obj69; - num++; - ref QuestSequence reference76 = ref span97[num]; + ref QuestSequence reference76 = ref span38[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj71.Steps = list102; reference76 = obj71; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span38[3]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -269985,9 +223227,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030535u, new Vector3(-355.30634f, 46.684208f, 482.0172f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; @@ -270000,30 +223240,24 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "liza"; + CollectionsMarshal.AsSpan(list104)[0] = "liza"; questRoot13.Author = list104; - index = 5; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference78 = ref span105[num]; + num = 5; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span40 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference78 = ref span40[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj73.Steps = list106; reference78 = obj73; - num++; - ref QuestSequence reference79 = ref span105[num]; + ref QuestSequence reference79 = ref span40[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -270031,28 +223265,23 @@ public static class AssemblyQuestLoader num2 = 2; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) + Span span41 = CollectionsMarshal.AsSpan(list107); + span41[0] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816) { PickUpQuestId = new QuestId(3404) }; - index2++; - span107[index2] = new QuestStep(EInteractionType.Interact, 2009828u, new Vector3(133.40955f, -0.015319824f, 455.9242f), 816); + span41[1] = new QuestStep(EInteractionType.Interact, 2009828u, new Vector3(133.40955f, -0.015319824f, 455.9242f), 816); obj74.Steps = list107; reference79 = obj74; - num++; - ref QuestSequence reference80 = ref span105[num]; + ref QuestSequence reference80 = ref span40[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Duty, null, null, 816) { DutyOptions = new DutyOptions { @@ -270062,13 +223291,11 @@ public static class AssemblyQuestLoader }; obj75.Steps = list108; reference80 = obj75; - num++; - span105[num] = new QuestSequence + span40[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference81 = ref span105[num]; + ref QuestSequence reference81 = ref span40[4]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -270076,14 +223303,12 @@ public static class AssemblyQuestLoader num2 = 2; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010056u, new Vector3(-231.4141f, 4.701926f, 160.8437f), 816) + Span span42 = CollectionsMarshal.AsSpan(list109); + span42[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010056u, new Vector3(-231.4141f, 4.701926f, 160.8437f), 816) { AetherCurrentId = 2818270u }; - index2++; - span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031669u, new Vector3(-300.0077f, 1.4994799f, 182.8794f), 816) + span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1031669u, new Vector3(-300.0077f, 1.4994799f, 182.8794f), 816) { Mount = false }; @@ -270096,33 +223321,27 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "liza"; + CollectionsMarshal.AsSpan(list110)[0] = "liza"; questRoot14.Author = list110; - index = 6; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference82 = ref span111[num]; + num = 6; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span43 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference82 = ref span43[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj77.Steps = list112; reference82 = obj77; - num++; - ref QuestSequence reference83 = ref span111[num]; + ref QuestSequence reference83 = ref span43[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -270130,27 +223349,21 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1030577u, new Vector3(-547.57f, 26.358929f, -229.11426f), 816); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1030577u, new Vector3(-547.57f, 26.358929f, -229.11426f), 816); obj78.Steps = list113; reference83 = obj78; - num++; - ref QuestSequence reference84 = ref span111[num]; + ref QuestSequence reference84 = ref span43[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj79.Steps = list114; reference84 = obj79; - num++; - ref QuestSequence reference85 = ref span111[num]; + ref QuestSequence reference85 = ref span43[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -270158,27 +223371,21 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1030579u, new Vector3(-517.2656f, 76.02325f, -416.67816f), 816); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1030579u, new Vector3(-517.2656f, 76.02325f, -416.67816f), 816); obj80.Steps = list115; reference85 = obj80; - num++; - ref QuestSequence reference86 = ref span111[num]; + ref QuestSequence reference86 = ref span43[4]; QuestSequence obj81 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj81.Steps = list116; reference86 = obj81; - num++; - ref QuestSequence reference87 = ref span111[num]; + ref QuestSequence reference87 = ref span43[5]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -270186,9 +223393,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029562u, new Vector3(-130.69354f, 58.754936f, -680.4761f), 816); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029562u, new Vector3(-130.69354f, 58.754936f, -680.4761f), 816); obj82.Steps = list117; reference87 = obj82; questRoot14.QuestSequence = list111; @@ -270198,33 +223403,27 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot15.Author = list118; - index = 4; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference88 = ref span119[num]; + num = 4; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span44 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference88 = ref span44[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj83.Steps = list120; reference88 = obj83; - num++; - ref QuestSequence reference89 = ref span119[num]; + ref QuestSequence reference89 = ref span44[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -270232,28 +223431,23 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + Span span45 = CollectionsMarshal.AsSpan(list121); + span45[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegPlaEnni }; - index2++; - span121[index2] = new QuestStep(EInteractionType.Interact, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); + span45[1] = new QuestStep(EInteractionType.Interact, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); obj84.Steps = list121; reference89 = obj84; - num++; - ref QuestSequence reference90 = ref span119[num]; + ref QuestSequence reference90 = ref span44[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list122 = new List(index2); - CollectionsMarshal.SetCount(list122, index2); - Span span122 = CollectionsMarshal.AsSpan(list122); - num2 = 0; - ref QuestStep reference91 = ref span122[num2]; + num2 = 1; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + ref QuestStep reference91 = ref CollectionsMarshal.AsSpan(list122)[0]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-121.60927f, 57.405594f, -669.88385f), 816) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -270261,15 +223455,12 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - index3 = 0; - span123[index3] = 10255u; + CollectionsMarshal.AsSpan(list123)[0] = 10255u; obj86.KillEnemyDataIds = list123; reference91 = obj86; obj85.Steps = list122; reference90 = obj85; - num++; - ref QuestSequence reference92 = ref span119[num]; + ref QuestSequence reference92 = ref span44[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -270277,9 +223468,7 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029572u, new Vector3(-44.022278f, 104.915054f, -856.53467f), 816); obj87.Steps = list124; reference92 = obj87; questRoot15.QuestSequence = list119; @@ -270289,30 +223478,24 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot16.Author = list125; - index = 6; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference93 = ref span126[num]; + num = 6; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span46 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference93 = ref span46[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj88.Steps = list127; reference93 = obj88; - num++; - ref QuestSequence reference94 = ref span126[num]; + ref QuestSequence reference94 = ref span46[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -270320,147 +223503,107 @@ public static class AssemblyQuestLoader num2 = 6; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - ref QuestStep reference95 = ref span128[index2]; + Span span47 = CollectionsMarshal.AsSpan(list128); + ref QuestStep reference95 = ref span47[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2009830u, new Vector3(-111.77234f, 103.1051f, -865.7816f), 816); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list129; reference95 = questStep6; - index2++; - ref QuestStep reference96 = ref span128[index2]; + ref QuestStep reference96 = ref span47[1]; 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 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list130; skipConditions4.StepIf = skipStepConditions4; questStep7.SkipConditions = skipConditions4; reference96 = questStep7; - index2++; - ref QuestStep reference97 = ref span128[index2]; + ref QuestStep reference97 = ref span47[2]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list131; skipConditions5.StepIf = skipStepConditions5; obj90.SkipConditions = skipConditions5; reference97 = obj90; - index2++; - ref QuestStep reference98 = ref span128[index2]; + ref QuestStep reference98 = ref span47[3]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list132; reference98 = questStep8; - index2++; - span128[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.223904f, 107.18862f, -860.6854f), 816) + span47[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-35.223904f, 107.18862f, -860.6854f), 816) { DisableNavmesh = true, Mount = true }; - index2++; - ref QuestStep reference99 = ref span128[index2]; + ref QuestStep reference99 = ref span47[5]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2009832u, new Vector3(25.436768f, 100.694214f, -902.31177f), 816); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list133; reference99 = questStep9; obj89.Steps = list128; reference94 = obj89; - num++; - ref QuestSequence reference100 = ref span126[num]; + ref QuestSequence reference100 = ref span46[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj91.Steps = list134; reference100 = obj91; - num++; - ref QuestSequence reference101 = ref span126[num]; + ref QuestSequence reference101 = ref span46[3]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -270468,27 +223611,21 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 2009833u, new Vector3(-181.13983f, 84.09241f, -786.2211f), 816); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 2009833u, new Vector3(-181.13983f, 84.09241f, -786.2211f), 816); obj92.Steps = list135; reference101 = obj92; - num++; - ref QuestSequence reference102 = ref span126[num]; + ref QuestSequence reference102 = ref span46[4]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj93.Steps = list136; reference102 = obj93; - num++; - ref QuestSequence reference103 = ref span126[num]; + ref QuestSequence reference103 = ref span46[5]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue @@ -270496,9 +223633,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029573u, new Vector3(-85.83203f, 101.65893f, -866.0563f), 816); obj94.Steps = list137; reference103 = obj94; questRoot16.QuestSequence = list126; @@ -270508,30 +223643,24 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "liza"; + CollectionsMarshal.AsSpan(list138)[0] = "liza"; questRoot17.Author = list138; - index = 5; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference104 = ref span139[num]; + num = 5; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span53 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference104 = ref span53[0]; QuestSequence obj95 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj95.Steps = list140; reference104 = obj95; - num++; - ref QuestSequence reference105 = ref span139[num]; + ref QuestSequence reference105 = ref span53[1]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -270539,11 +223668,9 @@ public static class AssemblyQuestLoader num2 = 9; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - 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) + 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) { StopDistance = 0.25f, Mount = false, @@ -270553,8 +223680,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(27.701914f, 108.983986f, -844.172f), 816) + span54[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(27.701914f, 108.983986f, -844.172f), 816) { JumpDestination = new JumpDestination { @@ -270562,8 +223688,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(25.056326f, 110.28013f, -846.34796f), 816) + span54[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(25.056326f, 110.28013f, -846.34796f), 816) { JumpDestination = new JumpDestination { @@ -270571,8 +223696,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(21.853422f, 111.3742f, -847.6101f), 816) + span54[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(21.853422f, 111.3742f, -847.6101f), 816) { JumpDestination = new JumpDestination { @@ -270580,113 +223704,86 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span141[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010059u, new Vector3(12.832764f, 110.73462f, -851.25507f), 816) + span54[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010059u, new Vector3(12.832764f, 110.73462f, -851.25507f), 816) { DisableNavmesh = true, AetherCurrentId = 2818273u }; - index2++; - span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.588793f, 102.26027f, -859.4154f), 816) + span54[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(17.588793f, 102.26027f, -859.4154f), 816) { DisableNavmesh = true, Mount = true }; - index2++; - span141[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) + span54[7] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 816) { Aetheryte = EAetheryteLocation.IlMhegWolekdorf }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Interact, 1029575u, new Vector3(477.46997f, 90.93466f, -328.5725f), 816); + span54[8] = new QuestStep(EInteractionType.Interact, 1029575u, new Vector3(477.46997f, 90.93466f, -328.5725f), 816); obj96.Steps = list141; reference105 = obj96; - num++; - ref QuestSequence reference106 = ref span139[num]; + ref QuestSequence reference106 = ref span53[2]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - index2 = 9; - List list142 = new List(index2); - CollectionsMarshal.SetCount(list142, index2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num2 = 0; - ref QuestStep reference107 = ref span142[num2]; + num2 = 9; + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + Span span55 = CollectionsMarshal.AsSpan(list142); + ref QuestStep reference107 = ref span55[0]; 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 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list143; skipConditions6.StepIf = skipStepConditions6; questStep10.SkipConditions = skipConditions6; reference107 = questStep10; - num2++; - ref QuestStep reference108 = ref span142[num2]; + ref QuestStep reference108 = ref span55[1]; 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(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list144; skipConditions7.StepIf = skipStepConditions7; obj98.SkipConditions = skipConditions7; reference108 = obj98; - num2++; - ref QuestStep reference109 = ref span142[num2]; + ref QuestStep reference109 = ref span55[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list145; reference109 = questStep11; - num2++; - ref QuestStep reference110 = ref span142[num2]; + ref QuestStep reference110 = ref span55[3]; QuestStep obj99 = new QuestStep(EInteractionType.Jump, null, new Vector3(533.1536f, 109.112404f, -154.17346f), 816) { StopDistance = 0.25f, @@ -270700,28 +223797,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list146; skipConditions8.StepIf = skipStepConditions8; obj99.SkipConditions = skipConditions8; reference110 = obj99; - num2++; - ref QuestStep reference111 = ref span142[num2]; + ref QuestStep reference111 = ref span55[4]; QuestStep obj100 = new QuestStep(EInteractionType.Jump, null, new Vector3(536.68494f, 111.31597f, -155.06671f), 816) { StopDistance = 0.5f, @@ -270737,25 +223827,18 @@ public static class AssemblyQuestLoader num3 = 6; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list147; skipConditions9.StepIf = skipStepConditions9; obj100.SkipConditions = skipConditions9; reference111 = obj100; - num2++; - ref QuestStep reference112 = ref span142[num2]; + ref QuestStep reference112 = ref span55[5]; QuestStep obj101 = new QuestStep(EInteractionType.Jump, null, new Vector3(539.31104f, 113.00041f, -155.02728f), 816) { StopDistance = 0.5f, @@ -270768,28 +223851,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions10 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list148; skipConditions10.StepIf = skipStepConditions10; obj101.SkipConditions = skipConditions10; reference112 = obj101; - num2++; - ref QuestStep reference113 = ref span142[num2]; + ref QuestStep reference113 = ref span55[6]; QuestStep obj102 = new QuestStep(EInteractionType.Jump, null, new Vector3(542.8287f, 114.6852f, -154.211f), 816) { StopDistance = 0.5f, @@ -270805,50 +223881,35 @@ public static class AssemblyQuestLoader num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list149; skipConditions11.StepIf = skipStepConditions11; obj102.SkipConditions = skipConditions11; reference113 = obj102; - num2++; - ref QuestStep reference114 = ref span142[num2]; + ref QuestStep reference114 = ref span55[7]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2009835u, new Vector3(570.00073f, 119.15759f, -145.70844f), 816); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list150; reference114 = questStep12; - num2++; - span142[num2] = new QuestStep(EInteractionType.Interact, 2009834u, new Vector3(496.75732f, 103.95972f, -116.41113f), 816); + span55[8] = new QuestStep(EInteractionType.Interact, 2009834u, new Vector3(496.75732f, 103.95972f, -116.41113f), 816); obj97.Steps = list142; reference106 = obj97; - num++; - ref QuestSequence reference115 = ref span139[num]; + ref QuestSequence reference115 = ref span53[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -270856,25 +223917,20 @@ public static class AssemblyQuestLoader num2 = 2; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - 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); + 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); obj103.Steps = list151; reference115 = obj103; - num++; - ref QuestSequence reference116 = ref span139[num]; + ref QuestSequence reference116 = ref span53[4]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; @@ -270887,16 +223943,13 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - Span span153 = CollectionsMarshal.AsSpan(list153); - index = 0; - span153[index] = "liza"; + CollectionsMarshal.AsSpan(list153)[0] = "liza"; questRoot18.Author = list153; - index = 7; - List list154 = new List(index); - CollectionsMarshal.SetCount(list154, index); - Span span154 = CollectionsMarshal.AsSpan(list154); - num = 0; - ref QuestSequence reference117 = ref span154[num]; + num = 7; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span65 = CollectionsMarshal.AsSpan(list154); + ref QuestSequence reference117 = ref span65[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -270904,27 +223957,21 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027672u, new Vector3(-101.51831f, 101.86012f, -838.49854f), 816); obj105.Steps = list155; reference117 = obj105; - num++; - ref QuestSequence reference118 = ref span154[num]; + ref QuestSequence reference118 = ref span65[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj106.Steps = list156; reference118 = obj106; - num++; - ref QuestSequence reference119 = ref span154[num]; + ref QuestSequence reference119 = ref span65[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -270932,9 +223979,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - ref QuestStep reference120 = ref span157[index2]; + ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list157)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1029580u, new Vector3(453.05554f, 87.4745f, -691.9509f), 816) { StopDistance = 9f, @@ -270943,9 +223988,7 @@ public static class AssemblyQuestLoader num3 = 1; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - Span span158 = CollectionsMarshal.AsSpan(list158); - index3 = 0; - span158[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list158)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMB116_03317_Q1_000_000"), @@ -270955,25 +223998,21 @@ public static class AssemblyQuestLoader reference120 = obj108; obj107.Steps = list157; reference119 = obj107; - num++; - ref QuestSequence reference121 = ref span154[num]; + ref QuestSequence reference121 = ref span65[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Pet }; obj109.Steps = list159; reference121 = obj109; - num++; - ref QuestSequence reference122 = ref span154[num]; + ref QuestSequence reference122 = ref span65[4]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -270981,33 +224020,27 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Emote, 1027692u, new Vector3(382.1317f, 86.5506f, -617.0901f), 816) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Emote, 1027692u, new Vector3(382.1317f, 86.5506f, -617.0901f), 816) { Emote = EEmote.Pet }; obj110.Steps = list160; reference122 = obj110; - num++; - ref QuestSequence reference123 = ref span154[num]; + ref QuestSequence reference123 = ref span65[5]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Emote = EEmote.Pet }; obj111.Steps = list161; reference123 = obj111; - num++; - ref QuestSequence reference124 = ref span154[num]; + ref QuestSequence reference124 = ref span65[6]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -271015,9 +224048,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029577u, new Vector3(456.83984f, 86.13955f, -710.0176f), 816); obj112.Steps = list162; reference124 = obj112; questRoot18.QuestSequence = list154; @@ -271027,30 +224058,24 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "liza"; + CollectionsMarshal.AsSpan(list163)[0] = "liza"; questRoot19.Author = list163; - index = 6; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference125 = ref span164[num]; + num = 6; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span66 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference125 = ref span66[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj113.Steps = list165; reference125 = obj113; - num++; - ref QuestSequence reference126 = ref span164[num]; + ref QuestSequence reference126 = ref span66[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -271058,38 +224083,32 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj114.Steps = list166; reference126 = obj114; - num++; - ref QuestSequence reference127 = ref span164[num]; + ref QuestSequence reference127 = ref span66[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818276u }; - num2++; - span167[num2] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) + span67[1] = new QuestStep(EInteractionType.Interact, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f }; obj115.Steps = list167; reference127 = obj115; - num++; - ref QuestSequence reference128 = ref span164[num]; + ref QuestSequence reference128 = ref span66[3]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -271097,47 +224116,38 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - ref QuestStep reference129 = ref span168[index2]; + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list168)[0]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 1030874u, new Vector3(658.442f, 102.799385f, -608.91125f), 816) { StopDistance = 9f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj117.KillEnemyDataIds = list169; reference129 = obj117; obj116.Steps = list168; reference128 = obj116; - num++; - ref QuestSequence reference130 = ref span164[num]; + ref QuestSequence reference130 = ref span66[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 9f }; obj118.Steps = list170; reference130 = obj118; - num++; - ref QuestSequence reference131 = ref span164[num]; + ref QuestSequence reference131 = ref span66[5]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -271145,9 +224155,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; @@ -271160,33 +224168,27 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "liza"; + CollectionsMarshal.AsSpan(list172)[0] = "liza"; questRoot20.Author = list172; - index = 3; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference132 = ref span173[num]; + num = 3; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span69 = CollectionsMarshal.AsSpan(list173); + ref QuestSequence reference132 = ref span69[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 9f }; obj120.Steps = list174; reference132 = obj120; - num++; - ref QuestSequence reference133 = ref span173[num]; + ref QuestSequence reference133 = ref span69[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -271194,30 +224196,24 @@ public static class AssemblyQuestLoader num2 = 3; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816) + Span span70 = CollectionsMarshal.AsSpan(list175); + span70[0] = new QuestStep(EInteractionType.AcceptQuest, 1027695u, new Vector3(441.64185f, 89.80711f, -653.43713f), 816) { PickUpQuestId = new QuestId(3427) }; - 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); + 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); obj121.Steps = list175; reference133 = obj121; - num++; - ref QuestSequence reference134 = ref span173[num]; + ref QuestSequence reference134 = ref span69[2]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 9f, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf @@ -271231,16 +224227,13 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - Span span177 = CollectionsMarshal.AsSpan(list177); - index = 0; - span177[index] = "liza"; + CollectionsMarshal.AsSpan(list177)[0] = "liza"; questRoot21.Author = list177; - index = 4; - List list178 = new List(index); - CollectionsMarshal.SetCount(list178, index); - Span span178 = CollectionsMarshal.AsSpan(list178); - num = 0; - ref QuestSequence reference135 = ref span178[num]; + num = 4; + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + Span span71 = CollectionsMarshal.AsSpan(list178); + ref QuestSequence reference135 = ref span71[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -271248,37 +224241,30 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027690u, new Vector3(452.9945f, 87.48282f, -691.9814f), 816) { StopDistance = 9f }; obj123.Steps = list179; reference135 = obj123; - num++; - ref QuestSequence reference136 = ref span178[num]; + ref QuestSequence reference136 = ref span71[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818277u }; - 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); + 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); obj124.Steps = list180; reference136 = obj124; - num++; - ref QuestSequence reference137 = ref span178[num]; + ref QuestSequence reference137 = ref span71[2]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -271286,9 +224272,7 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Duty, null, null, 816) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Duty, null, null, 816) { DutyOptions = new DutyOptions { @@ -271297,18 +224281,15 @@ public static class AssemblyQuestLoader }; obj125.Steps = list181; reference137 = obj125; - num++; - ref QuestSequence reference138 = ref span178[num]; + ref QuestSequence reference138 = ref span71[3]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -271321,16 +224302,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot22.Author = list183; - index = 4; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference139 = ref span184[num]; + num = 4; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span73 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference139 = ref span73[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -271338,33 +224316,27 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029584u, new Vector3(-373.55615f, 48.181767f, 474.32666f), 816) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029584u, new Vector3(-373.55615f, 48.181767f, 474.32666f), 816) { StopDistance = 7f }; obj127.Steps = list185; reference139 = obj127; - num++; - ref QuestSequence reference140 = ref span184[num]; + ref QuestSequence reference140 = ref span73[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj128.Steps = list186; reference140 = obj128; - num++; - ref QuestSequence reference141 = ref span184[num]; + ref QuestSequence reference141 = ref span73[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -271372,26 +224344,21 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.Interact, 1029595u, new Vector3(20.675903f, 0.0058916546f, 0.7171631f), 819) { StopDistance = 5f }; obj129.Steps = list187; reference141 = obj129; - num++; - ref QuestSequence reference142 = ref span184[num]; + ref QuestSequence reference142 = ref span73[3]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list188 = new List(index2); - CollectionsMarshal.SetCount(list188, index2); - Span span188 = CollectionsMarshal.AsSpan(list188); - num2 = 0; - ref QuestStep reference143 = ref span188[num2]; + num2 = 1; + List list188 = new List(num2); + CollectionsMarshal.SetCount(list188, num2); + ref QuestStep reference143 = ref CollectionsMarshal.AsSpan(list188)[0]; QuestStep obj131 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f, @@ -271404,9 +224371,7 @@ public static class AssemblyQuestLoader num3 = 1; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span189 = CollectionsMarshal.AsSpan(list189); - index3 = 0; - span189[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list189)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMB120_03321_Q1_000_000") @@ -271422,16 +224387,13 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "liza"; + CollectionsMarshal.AsSpan(list190)[0] = "liza"; questRoot23.Author = list190; - index = 4; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference144 = ref span191[num]; + num = 4; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span74 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference144 = ref span74[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -271439,26 +224401,21 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 5f }; obj132.Steps = list192; reference144 = obj132; - num++; - ref QuestSequence reference145 = ref span191[num]; + ref QuestSequence reference145 = ref span74[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -271469,8 +224426,7 @@ public static class AssemblyQuestLoader }; obj133.Steps = list193; reference145 = obj133; - num++; - ref QuestSequence reference146 = ref span191[num]; + ref QuestSequence reference146 = ref span74[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -271478,26 +224434,21 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.Interact, 1030883u, new Vector3(-0.015319824f, 0f, 4.2877197f), 844) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1030883u, new Vector3(-0.015319824f, 0f, 4.2877197f), 844) { StopDistance = 7f }; obj134.Steps = list194; reference146 = obj134; - num++; - ref QuestSequence reference147 = ref span191[num]; + ref QuestSequence reference147 = ref span74[3]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; @@ -271510,16 +224461,13 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "liza"; + CollectionsMarshal.AsSpan(list196)[0] = "liza"; questRoot24.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]; + num = 4; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span75 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference148 = ref span75[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -271527,9 +224475,7 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029167u, new Vector3(751.46094f, 21.38111f, -2.7314453f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb, SkipConditions = new SkipConditions @@ -271542,18 +224488,16 @@ public static class AssemblyQuestLoader }; obj136.Steps = list198; reference148 = obj136; - num++; - ref QuestSequence reference149 = ref span197[num]; + ref QuestSequence reference149 = ref span75[1]; QuestSequence obj137 = 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.WalkTo, null, new Vector3(789.16504f, 21.14688f, -93.24946f), 813) + 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) { SkipConditions = new SkipConditions { @@ -271563,8 +224507,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) + span76[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -271575,8 +224518,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span199[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) + span76[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(731.32855f, 13.078317f, -147.50694f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -271587,18 +224529,15 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { StopDistance = 0.5f, DisableNavmesh = true }; obj137.Steps = list199; reference149 = obj137; - num++; - ref QuestSequence reference150 = ref span197[num]; + ref QuestSequence reference150 = ref span75[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -271606,26 +224545,21 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.Snipe, 2010512u, new Vector3(721.7975f, -1.9990234f, -92.97333f), 813) + CollectionsMarshal.AsSpan(list200)[0] = 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; - num++; - ref QuestSequence reference151 = ref span197[num]; + ref QuestSequence reference151 = ref span75[3]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj139.Steps = list201; reference151 = obj139; questRoot24.QuestSequence = list197; @@ -271635,16 +224569,13 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "liza"; + CollectionsMarshal.AsSpan(list202)[0] = "liza"; questRoot25.Author = list202; - index = 8; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference152 = ref span203[num]; + num = 8; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span77 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference152 = ref span77[0]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -271652,23 +224583,19 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030889u, new Vector3(699.42773f, -1.7076154f, -94.529724f), 813); obj140.Steps = list204; reference152 = obj140; - num++; - ref QuestSequence reference153 = ref span203[num]; + ref QuestSequence reference153 = ref span77[1]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -271678,20 +224605,17 @@ public static class AssemblyQuestLoader } } }; - num2++; - span205[num2] = new QuestStep(EInteractionType.Interact, 1028303u, new Vector3(872.7396f, 42.18195f, -281.26953f), 813) + span78[1] = new QuestStep(EInteractionType.Interact, 1028303u, new Vector3(872.7396f, 42.18195f, -281.26953f), 813) { Fly = true }; obj141.Steps = list205; reference153 = obj141; - num++; - span203[num] = new QuestSequence + span77[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference154 = ref span203[num]; + ref QuestSequence reference154 = ref span77[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -271699,30 +224623,24 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.Interact, 1029180u, new Vector3(-718.44055f, 9.072795f, 682.6123f), 817) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1029180u, new Vector3(-718.44055f, 9.072795f, 682.6123f), 817) { DisableNavmesh = true }; obj142.Steps = list206; reference154 = obj142; - num++; - ref QuestSequence reference155 = ref span203[num]; + ref QuestSequence reference155 = ref span77[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj143.Steps = list207; reference155 = obj143; - num++; - ref QuestSequence reference156 = ref span203[num]; + ref QuestSequence reference156 = ref span77[5]; QuestSequence obj144 = new QuestSequence { Sequence = 5 @@ -271730,55 +224648,43 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.Interact, 1029188u, new Vector3(-421.1643f, 1.6214006f, 594.72034f), 817) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1029188u, new Vector3(-421.1643f, 1.6214006f, 594.72034f), 817) { StopDistance = 5f }; obj144.Steps = list208; reference156 = obj144; - num++; - ref QuestSequence reference157 = ref span203[num]; + ref QuestSequence reference157 = ref span77[6]; QuestSequence obj145 = new QuestSequence { Sequence = 6 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span209[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010064u, new Vector3(-405.9548f, 7.1691f, 506.5442f), 817) + span79[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010064u, new Vector3(-405.9548f, 7.1691f, 506.5442f), 817) { DisableNavmesh = true, AetherCurrentId = 2818283u }; - num2++; - span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.7318f, 1.622011f, 512.249f), 817) + span79[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-405.7318f, 1.622011f, 512.249f), 817) { DisableNavmesh = true, Mount = true }; - num2++; - span209[num2] = new QuestStep(EInteractionType.Interact, 1029189u, new Vector3(-234.51593f, -3.1024718f, 332.02112f), 817); + span79[7] = new QuestStep(EInteractionType.Interact, 1029189u, new Vector3(-234.51593f, -3.1024718f, 332.02112f), 817); obj145.Steps = list209; reference157 = obj145; - num++; - ref QuestSequence reference158 = ref span203[num]; + ref QuestSequence reference158 = ref span77[7]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -271786,9 +224692,7 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - span210[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029190u, new Vector3(-121.90442f, -18.975767f, 297.23047f), 817); + CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029190u, new Vector3(-121.90442f, -18.975767f, 297.23047f), 817); obj146.Steps = list210; reference158 = obj146; questRoot25.QuestSequence = list203; @@ -271798,33 +224702,26 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span211 = CollectionsMarshal.AsSpan(list211); - index = 0; - span211[index] = "liza"; + CollectionsMarshal.AsSpan(list211)[0] = "liza"; questRoot26.Author = list211; - index = 6; - List list212 = new List(index); - CollectionsMarshal.SetCount(list212, index); - Span span212 = CollectionsMarshal.AsSpan(list212); - num = 0; - ref QuestSequence reference159 = ref span212[num]; + num = 6; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span80 = CollectionsMarshal.AsSpan(list212); + ref QuestSequence reference159 = ref span80[0]; QuestSequence obj147 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list213 = new List(num2); + CollectionsMarshal.SetCount(list213, num2); + ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list213)[0]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); - index3 = 1; - List list214 = new List(index3); - CollectionsMarshal.SetCount(list214, index3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num3 = 0; - span214[num3] = new DialogueChoice + num3 = 1; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC104_03325_Q1_000_000"), @@ -271834,8 +224731,7 @@ public static class AssemblyQuestLoader reference160 = questStep13; obj147.Steps = list213; reference159 = obj147; - num++; - ref QuestSequence reference161 = ref span212[num]; + ref QuestSequence reference161 = ref span80[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -271843,32 +224739,26 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj148.Steps = list215; reference161 = obj148; - num++; - ref QuestSequence reference162 = ref span212[num]; + ref QuestSequence reference162 = ref span80[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Aetheryte = EAetheryteLocation.RaktikaSlitherbough }; - num2++; - span216[num2] = new QuestStep(EInteractionType.Interact, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817); + span81[1] = new QuestStep(EInteractionType.Interact, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817); obj149.Steps = list216; reference162 = obj149; - num++; - ref QuestSequence reference163 = ref span212[num]; + ref QuestSequence reference163 = ref span80[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -271876,26 +224766,22 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.Emote, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Emote, 1029198u, new Vector3(-118.18121f, -19.713022f, 385.51917f), 817) { Emote = EEmote.Kneel }; obj150.Steps = list217; reference163 = obj150; - num++; - ref QuestSequence reference164 = ref span212[num]; + ref QuestSequence reference164 = ref span80[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list218 = new List(index2); - CollectionsMarshal.SetCount(list218, index2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num2 = 0; - ref QuestStep reference165 = ref span218[num2]; + num2 = 3; + List list218 = new List(num2); + CollectionsMarshal.SetCount(list218, num2); + Span span82 = CollectionsMarshal.AsSpan(list218); + ref QuestStep reference165 = ref span82[0]; QuestStep obj152 = new QuestStep(EInteractionType.Say, 1030382u, new Vector3(-113.11517f, -18.484627f, 324.20837f), 817) { ChatMessage = new ChatMessage @@ -271906,23 +224792,16 @@ public static class AssemblyQuestLoader num3 = 6; 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)8, 0, EQuestWorkMode.Bitwise); + 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); obj152.CompletionQuestVariablesFlags = list219; reference165 = obj152; - num2++; - ref QuestStep reference166 = ref span218[num2]; + ref QuestStep reference166 = ref span82[1]; QuestStep obj153 = new QuestStep(EInteractionType.Say, 1027463u, new Vector3(-130.26636f, -18.486685f, 246.57043f), 817) { ChatMessage = new ChatMessage @@ -271930,26 +224809,19 @@ public static class AssemblyQuestLoader Key = "TEXT_LUCKMC104_03325_SYSTEM_000_110" } }; - 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); + 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); obj153.CompletionQuestVariablesFlags = list220; reference166 = obj153; - num2++; - ref QuestStep reference167 = ref span218[num2]; + ref QuestStep reference167 = ref span82[2]; QuestStep obj154 = new QuestStep(EInteractionType.Say, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817) { ChatMessage = new ChatMessage @@ -271960,25 +224832,18 @@ public static class AssemblyQuestLoader num3 = 6; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - 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); + 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); obj154.CompletionQuestVariablesFlags = list221; reference167 = obj154; obj151.Steps = list218; reference164 = obj151; - num++; - ref QuestSequence reference168 = ref span212[num]; + ref QuestSequence reference168 = ref span80[5]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -271986,9 +224851,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029199u, new Vector3(-116.71625f, -19.706732f, 386.49573f), 817); + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029199u, new Vector3(-116.71625f, -19.706732f, 386.49573f), 817); obj155.Steps = list222; reference168 = obj155; questRoot26.QuestSequence = list212; @@ -271998,26 +224861,21 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - Span span223 = CollectionsMarshal.AsSpan(list223); - index = 0; - span223[index] = "liza"; + CollectionsMarshal.AsSpan(list223)[0] = "liza"; questRoot27.Author = list223; - index = 6; - List list224 = new List(index); - CollectionsMarshal.SetCount(list224, index); - Span span224 = CollectionsMarshal.AsSpan(list224); - num = 0; - ref QuestSequence reference169 = ref span224[num]; + num = 6; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + Span span86 = CollectionsMarshal.AsSpan(list224); + ref QuestSequence reference169 = ref span86[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, @@ -272031,8 +224889,7 @@ public static class AssemblyQuestLoader }; obj156.Steps = list225; reference169 = obj156; - num++; - ref QuestSequence reference170 = ref span224[num]; + ref QuestSequence reference170 = ref span86[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -272040,30 +224897,24 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) { StopDistance = 7f }; obj157.Steps = list226; reference170 = obj157; - num++; - ref QuestSequence reference171 = ref span224[num]; + ref QuestSequence reference171 = ref span86[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj158.Steps = list227; reference171 = obj158; - num++; - ref QuestSequence reference172 = ref span224[num]; + ref QuestSequence reference172 = ref span86[3]; QuestSequence obj159 = new QuestSequence { Sequence = 3 @@ -272071,30 +224922,24 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1029200u, new Vector3(-112.90161f, -19.59217f, 388.84558f), 817) { StopDistance = 7f }; obj159.Steps = list228; reference172 = obj159; - num++; - ref QuestSequence reference173 = ref span224[num]; + ref QuestSequence reference173 = ref span86[4]; QuestSequence obj160 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj160.Steps = list229; reference173 = obj160; - num++; - ref QuestSequence reference174 = ref span224[num]; + ref QuestSequence reference174 = ref span86[5]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -272102,9 +224947,7 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); obj161.Steps = list230; reference174 = obj161; questRoot27.QuestSequence = list224; @@ -272114,30 +224957,24 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - Span span231 = CollectionsMarshal.AsSpan(list231); - index = 0; - span231[index] = "liza"; + CollectionsMarshal.AsSpan(list231)[0] = "liza"; questRoot28.Author = list231; - index = 7; - List list232 = new List(index); - CollectionsMarshal.SetCount(list232, index); - Span span232 = CollectionsMarshal.AsSpan(list232); - num = 0; - ref QuestSequence reference175 = ref span232[num]; + num = 7; + List list232 = new List(num); + CollectionsMarshal.SetCount(list232, num); + Span span87 = CollectionsMarshal.AsSpan(list232); + ref QuestSequence reference175 = ref span87[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj162.Steps = list233; reference175 = obj162; - num++; - ref QuestSequence reference176 = ref span232[num]; + ref QuestSequence reference176 = ref span87[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -272145,45 +224982,37 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817) + Span span88 = CollectionsMarshal.AsSpan(list234); + span88[0] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817) { PickUpQuestId = new QuestId(3444) }; - index2++; - span234[index2] = new QuestStep(EInteractionType.Interact, 2009866u, new Vector3(-260.73096f, 13.656799f, 554.68054f), 817); + span88[1] = new QuestStep(EInteractionType.Interact, 2009866u, new Vector3(-260.73096f, 13.656799f, 554.68054f), 817); obj163.Steps = list234; reference176 = obj163; - num++; - ref QuestSequence reference177 = ref span232[num]; + ref QuestSequence reference177 = ref span87[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list235 = new List(index2); - CollectionsMarshal.SetCount(list235, index2); - Span span235 = CollectionsMarshal.AsSpan(list235); - num2 = 0; - ref QuestStep reference178 = ref span235[num2]; + num2 = 1; + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list235)[0]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, null, new Vector3(-284.9141f, 8.7010765f, 603.8272f), 817) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list236 = new List(index3); - CollectionsMarshal.SetCount(list236, index3); - Span span236 = CollectionsMarshal.AsSpan(list236); - num3 = 0; - span236[num3] = 10878u; + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + CollectionsMarshal.AsSpan(list236)[0] = 10878u; obj165.KillEnemyDataIds = list236; reference178 = obj165; obj164.Steps = list235; reference177 = obj164; - num++; - ref QuestSequence reference179 = ref span232[num]; + ref QuestSequence reference179 = ref span87[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -272191,27 +225020,21 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 1029206u, new Vector3(-243.18304f, 13.323829f, 778.9883f), 817); + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1029206u, new Vector3(-243.18304f, 13.323829f, 778.9883f), 817); obj166.Steps = list237; reference179 = obj166; - num++; - ref QuestSequence reference180 = ref span232[num]; + ref QuestSequence reference180 = ref span87[4]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj167.Steps = list238; reference180 = obj167; - num++; - ref QuestSequence reference181 = ref span232[num]; + ref QuestSequence reference181 = ref span87[5]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -272219,23 +225042,18 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Interact, 1029207u, new Vector3(-213.61108f, 10.207863f, 712.6116f), 817); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1029207u, new Vector3(-213.61108f, 10.207863f, 712.6116f), 817); obj168.Steps = list239; reference181 = obj168; - num++; - ref QuestSequence reference182 = ref span232[num]; + ref QuestSequence reference182 = ref span87[6]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -272248,16 +225066,13 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "liza"; + CollectionsMarshal.AsSpan(list241)[0] = "liza"; questRoot29.Author = list241; - index = 6; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference183 = ref span242[num]; + num = 6; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span89 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference183 = ref span89[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -272265,27 +225080,21 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817); obj170.Steps = list243; reference183 = obj170; - num++; - ref QuestSequence reference184 = ref span242[num]; + ref QuestSequence reference184 = ref span89[1]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj171.Steps = list244; reference184 = obj171; - num++; - ref QuestSequence reference185 = ref span242[num]; + ref QuestSequence reference185 = ref span89[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -272293,30 +225102,24 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1028989u, new Vector3(-77.86682f, -28.632244f, 423.6056f), 817); + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1028989u, new Vector3(-77.86682f, -28.632244f, 423.6056f), 817); obj172.Steps = list245; reference185 = obj172; - num++; - ref QuestSequence reference186 = ref span242[num]; + ref QuestSequence reference186 = ref span89[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2002546u }; obj173.Steps = list246; reference186 = obj173; - num++; - ref QuestSequence reference187 = ref span242[num]; + ref QuestSequence reference187 = ref span89[4]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -272324,23 +225127,18 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 2009872u, new Vector3(-69.65747f, -28.641174f, 409.4757f), 817); + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 2009872u, new Vector3(-69.65747f, -28.641174f, 409.4757f), 817); obj174.Steps = list247; reference187 = obj174; - num++; - ref QuestSequence reference188 = ref span242[num]; + ref QuestSequence reference188 = ref span89[5]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -272353,16 +225151,13 @@ public static class AssemblyQuestLoader num = 1; List list249 = new List(num); CollectionsMarshal.SetCount(list249, num); - Span span249 = CollectionsMarshal.AsSpan(list249); - index = 0; - span249[index] = "liza"; + CollectionsMarshal.AsSpan(list249)[0] = "liza"; questRoot30.Author = list249; - index = 10; - List list250 = new List(index); - CollectionsMarshal.SetCount(list250, index); - Span span250 = CollectionsMarshal.AsSpan(list250); - num = 0; - ref QuestSequence reference189 = ref span250[num]; + num = 10; + List list250 = new List(num); + CollectionsMarshal.SetCount(list250, num); + Span span90 = CollectionsMarshal.AsSpan(list250); + ref QuestSequence reference189 = ref span90[0]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -272370,30 +225165,24 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817) { StopDistance = 5f }; obj176.Steps = list251; reference189 = obj176; - num++; - ref QuestSequence reference190 = ref span250[num]; + ref QuestSequence reference190 = ref span90[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj177.Steps = list252; reference190 = obj177; - num++; - ref QuestSequence reference191 = ref span250[num]; + ref QuestSequence reference191 = ref span90[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -272401,17 +225190,14 @@ public static class AssemblyQuestLoader num2 = 3; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - 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) + 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) { DisableNavmesh = true, AetherCurrentId = 2818285u }; - index2++; - ref QuestStep reference192 = ref span253[index2]; + ref QuestStep reference192 = ref span91[2]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 1029214u, new Vector3(-157.64093f, 7.3982058f, -13.351685f), 817) { StopDistance = 2f, @@ -272420,29 +225206,23 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - Span span254 = CollectionsMarshal.AsSpan(list254); - index3 = 0; - span254[index3] = 10879u; + CollectionsMarshal.AsSpan(list254)[0] = 10879u; obj179.KillEnemyDataIds = list254; reference192 = obj179; obj178.Steps = list253; reference191 = obj178; - num++; - ref QuestSequence reference193 = ref span250[num]; + ref QuestSequence reference193 = ref span90[3]; QuestSequence obj180 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj180.Steps = list255; reference193 = obj180; - num++; - ref QuestSequence reference194 = ref span250[num]; + ref QuestSequence reference194 = ref span90[4]; QuestSequence obj181 = new QuestSequence { Sequence = 4 @@ -272450,40 +225230,32 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 2009874u, new Vector3(-231.8609f, 21.713562f, -49.302002f), 817); + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 2009874u, new Vector3(-231.8609f, 21.713562f, -49.302002f), 817); obj181.Steps = list256; reference194 = obj181; - num++; - ref QuestSequence reference195 = ref span250[num]; + ref QuestSequence reference195 = ref span90[5]; QuestSequence obj182 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list257 = new List(index2); - CollectionsMarshal.SetCount(list257, index2); - Span span257 = CollectionsMarshal.AsSpan(list257); - num2 = 0; - ref QuestStep reference196 = ref span257[num2]; + num2 = 1; + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + ref QuestStep reference196 = ref CollectionsMarshal.AsSpan(list257)[0]; QuestStep obj183 = new QuestStep(EInteractionType.Combat, 2009875u, new Vector3(-292.2561f, 23.5141f, -182.75739f), 817) { ItemId = 2002547u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list258 = new List(index3); - CollectionsMarshal.SetCount(list258, index3); - Span span258 = CollectionsMarshal.AsSpan(list258); - num3 = 0; - span258[num3] = 10880u; + num3 = 1; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + CollectionsMarshal.AsSpan(list258)[0] = 10880u; obj183.KillEnemyDataIds = list258; reference196 = obj183; obj182.Steps = list257; reference195 = obj182; - num++; - ref QuestSequence reference197 = ref span250[num]; + ref QuestSequence reference197 = ref span90[6]; QuestSequence obj184 = new QuestSequence { Sequence = 6 @@ -272491,26 +225263,21 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.UseItem, 2010501u, new Vector3(-292.28656f, 23.483582f, -182.78784f), 817) + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.UseItem, 2010501u, new Vector3(-292.28656f, 23.483582f, -182.78784f), 817) { ItemId = 2002548u }; obj184.Steps = list259; reference197 = obj184; - num++; - ref QuestSequence reference198 = ref span250[num]; + ref QuestSequence reference198 = ref span90[7]; QuestSequence obj185 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list260 = new List(index2); - CollectionsMarshal.SetCount(list260, index2); - Span span260 = CollectionsMarshal.AsSpan(list260); - num2 = 0; - ref QuestStep reference199 = ref span260[num2]; + num2 = 1; + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list260)[0]; QuestStep obj186 = new QuestStep(EInteractionType.Combat, 2009876u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) { ItemId = 2002547u, @@ -272519,15 +225286,12 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span261 = CollectionsMarshal.AsSpan(list261); - index3 = 0; - span261[index3] = 10881u; + CollectionsMarshal.AsSpan(list261)[0] = 10881u; obj186.KillEnemyDataIds = list261; reference199 = obj186; obj185.Steps = list260; reference198 = obj185; - num++; - ref QuestSequence reference200 = ref span250[num]; + ref QuestSequence reference200 = ref span90[8]; QuestSequence obj187 = new QuestSequence { Sequence = 8 @@ -272535,26 +225299,21 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.UseItem, 2010502u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.UseItem, 2010502u, new Vector3(-190.44794f, 3.036438f, 2.5787354f), 817) { ItemId = 2002548u }; obj187.Steps = list262; reference200 = obj187; - num++; - ref QuestSequence reference201 = ref span250[num]; + ref QuestSequence reference201 = ref span90[9]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj188.Steps = list263; reference201 = obj188; questRoot30.QuestSequence = list250; @@ -272564,16 +225323,13 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - Span span264 = CollectionsMarshal.AsSpan(list264); - index = 0; - span264[index] = "liza"; + CollectionsMarshal.AsSpan(list264)[0] = "liza"; questRoot31.Author = list264; - index = 6; - List list265 = new List(index); - CollectionsMarshal.SetCount(list265, index); - Span span265 = CollectionsMarshal.AsSpan(list265); - num = 0; - ref QuestSequence reference202 = ref span265[num]; + num = 6; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + Span span92 = CollectionsMarshal.AsSpan(list265); + ref QuestSequence reference202 = ref span92[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -272581,27 +225337,21 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029216u, new Vector3(-235.09583f, 19.22425f, -70.72565f), 817); obj189.Steps = list266; reference202 = obj189; - num++; - ref QuestSequence reference203 = ref span265[num]; + ref QuestSequence reference203 = ref span92[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj190.Steps = list267; reference203 = obj190; - num++; - ref QuestSequence reference204 = ref span265[num]; + ref QuestSequence reference204 = ref span92[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -272609,35 +225359,29 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-761.0279f, 36.49958f, -337.04126f), 817) + Span span93 = CollectionsMarshal.AsSpan(list268); + span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-761.0279f, 36.49958f, -337.04126f), 817) { Comment = "Moves out of aggro range of the door guard" }; - index2++; - span268[index2] = new QuestStep(EInteractionType.Interact, 1029764u, new Vector3(-763.79034f, 36.49958f, -332.29572f), 817) + span93[1] = new QuestStep(EInteractionType.Interact, 1029764u, new Vector3(-763.79034f, 36.49958f, -332.29572f), 817) { StopDistance = 7f }; obj191.Steps = list268; reference204 = obj191; - num++; - ref QuestSequence reference205 = ref span265[num]; + ref QuestSequence reference205 = ref span92[3]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj192.Steps = list269; reference205 = obj192; - num++; - ref QuestSequence reference206 = ref span265[num]; + ref QuestSequence reference206 = ref span92[4]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -272645,26 +225389,21 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.Snipe, 2009877u, new Vector3(-820.6455f, 38.376343f, -359.4873f), 817) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Snipe, 2009877u, new Vector3(-820.6455f, 38.376343f, -359.4873f), 817) { Comment = "Click murals" }; obj193.Steps = list270; reference206 = obj193; - num++; - ref QuestSequence reference207 = ref span265[num]; + ref QuestSequence reference207 = ref span92[5]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -272677,16 +225416,13 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - Span span272 = CollectionsMarshal.AsSpan(list272); - index = 0; - span272[index] = "liza"; + CollectionsMarshal.AsSpan(list272)[0] = "liza"; questRoot32.Author = list272; - index = 4; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - ref QuestSequence reference208 = ref span273[num]; + num = 4; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span94 = CollectionsMarshal.AsSpan(list273); + ref QuestSequence reference208 = ref span94[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -272694,33 +225430,27 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029221u, new Vector3(-523.09454f, 2.9589303f, -35.629883f), 817) { StopDistance = 7f }; obj195.Steps = list274; reference208 = obj195; - num++; - ref QuestSequence reference209 = ref span273[num]; + ref QuestSequence reference209 = ref span94[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj196.Steps = list275; reference209 = obj196; - num++; - ref QuestSequence reference210 = ref span273[num]; + ref QuestSequence reference210 = ref span94[2]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -272728,25 +225458,20 @@ public static class AssemblyQuestLoader num2 = 2; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - 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); + 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); obj197.Steps = list276; reference210 = obj197; - num++; - ref QuestSequence reference211 = ref span273[num]; + ref QuestSequence reference211 = ref span94[3]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -272759,16 +225484,13 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - Span span278 = CollectionsMarshal.AsSpan(list278); - index = 0; - span278[index] = "liza"; + CollectionsMarshal.AsSpan(list278)[0] = "liza"; questRoot33.Author = list278; - index = 7; - List list279 = new List(index); - CollectionsMarshal.SetCount(list279, index); - Span span279 = CollectionsMarshal.AsSpan(list279); - num = 0; - ref QuestSequence reference212 = ref span279[num]; + num = 7; + List list279 = new List(num); + CollectionsMarshal.SetCount(list279, num); + Span span96 = CollectionsMarshal.AsSpan(list279); + ref QuestSequence reference212 = ref span96[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -272776,35 +225498,29 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029195u, new Vector3(-35.751892f, -18.919392f, 335.71375f), 817) { StopDistance = 5f }; obj199.Steps = list280; reference212 = obj199; - num++; - ref QuestSequence reference213 = ref span279[num]; + ref QuestSequence reference213 = ref span96[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3656) }; - num2++; - span281[num2] = new QuestStep(EInteractionType.Interact, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + span97[1] = new QuestStep(EInteractionType.Interact, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj200.Steps = list281; reference213 = obj200; - num++; - ref QuestSequence reference214 = ref span279[num]; + ref QuestSequence reference214 = ref span96[2]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -272812,21 +225528,17 @@ public static class AssemblyQuestLoader num2 = 2; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - 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]; + 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]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2009879u, new Vector3(-591.97375f, -90.56238f, 291.6151f), 817) { Fly = true }; - index3 = 1; - List list283 = new List(index3); - CollectionsMarshal.SetCount(list283, index3); - Span span283 = CollectionsMarshal.AsSpan(list283); - num3 = 0; - span283[num3] = new DialogueChoice + num3 = 1; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + CollectionsMarshal.AsSpan(list283)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q2_000_071") @@ -272835,18 +225547,15 @@ public static class AssemblyQuestLoader reference215 = obj202; obj201.Steps = list282; reference214 = obj201; - num++; - ref QuestSequence reference216 = ref span279[num]; + ref QuestSequence reference216 = ref span96[3]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list284 = new List(index2); - CollectionsMarshal.SetCount(list284, index2); - Span span284 = CollectionsMarshal.AsSpan(list284); - num2 = 0; - ref QuestStep reference217 = ref span284[num2]; + num2 = 1; + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + ref QuestStep reference217 = ref CollectionsMarshal.AsSpan(list284)[0]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2009880u, new Vector3(-670.25256f, -90.68439f, 449.94275f), 817) { Fly = true @@ -272854,9 +225563,7 @@ public static class AssemblyQuestLoader num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - Span span285 = CollectionsMarshal.AsSpan(list285); - index3 = 0; - span285[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list285)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q3_000_081") @@ -272865,8 +225572,7 @@ public static class AssemblyQuestLoader reference217 = obj204; obj203.Steps = list284; reference216 = obj203; - num++; - ref QuestSequence reference218 = ref span279[num]; + ref QuestSequence reference218 = ref span96[4]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -272874,16 +225580,12 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - ref QuestStep reference219 = ref span286[index2]; + ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list286)[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2009882u, new Vector3(-880.15564f, -90.68439f, 289.99768f), 817); - index3 = 1; - List list287 = new List(index3); - CollectionsMarshal.SetCount(list287, index3); - Span span287 = CollectionsMarshal.AsSpan(list287); - num3 = 0; - span287[num3] = new DialogueChoice + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + CollectionsMarshal.AsSpan(list287)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC111_03332_Q5_000_091") @@ -272892,31 +225594,27 @@ public static class AssemblyQuestLoader reference219 = questStep14; obj205.Steps = list286; reference218 = obj205; - num++; - ref QuestSequence reference220 = ref span279[num]; + ref QuestSequence reference220 = ref span96[5]; QuestSequence obj206 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; - num2++; - span288[num2] = new QuestStep(EInteractionType.Interact, 2009884u, new Vector3(-593.164f, -95.23157f, 256.0005f), 817) + span99[1] = new QuestStep(EInteractionType.Interact, 2009884u, new Vector3(-593.164f, -95.23157f, 256.0005f), 817) { DisableNavmesh = true, Fly = true }; obj206.Steps = list288; reference220 = obj206; - num++; - ref QuestSequence reference221 = ref span279[num]; + ref QuestSequence reference221 = ref span96[6]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue @@ -272924,32 +225622,27 @@ public static class AssemblyQuestLoader num2 = 5; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) + Span span100 = CollectionsMarshal.AsSpan(list289); + span100[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.7246f, -92.929955f, 279.56708f), 817) { DisableNavmesh = true, Mount = true, Fly = true }; - index2++; - span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.93475f, -77.64466f, 341.04385f), 817) + span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.93475f, -77.64466f, 341.04385f), 817) { Fly = true }; - index2++; - span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-537.1801f, -0.6f, 340.31f), 817) + span100[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-537.1801f, -0.6f, 340.31f), 817) { DisableNavmesh = true, RestartNavigationIfCancelled = false }; - index2++; - span289[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.11002f, -0.3000083f, 324.28143f), 817) + span100[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.11002f, -0.3000083f, 324.28143f), 817) { DisableNavmesh = true }; - index2++; - span289[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); + span100[4] = new QuestStep(EInteractionType.CompleteQuest, 1029223u, new Vector3(-470.96973f, 2.3035004f, 301.4724f), 817); obj207.Steps = list289; reference221 = obj207; questRoot33.QuestSequence = list279; @@ -272959,30 +225652,24 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - span290[index] = "liza"; + CollectionsMarshal.AsSpan(list290)[0] = "liza"; questRoot34.Author = list290; - index = 4; - List list291 = new List(index); - CollectionsMarshal.SetCount(list291, index); - Span span291 = CollectionsMarshal.AsSpan(list291); - num = 0; - ref QuestSequence reference222 = ref span291[num]; + num = 4; + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + Span span101 = CollectionsMarshal.AsSpan(list291); + ref QuestSequence reference222 = ref span101[0]; QuestSequence obj208 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj208.Steps = list292; reference222 = obj208; - num++; - ref QuestSequence reference223 = ref span291[num]; + ref QuestSequence reference223 = ref span101[1]; QuestSequence obj209 = new QuestSequence { Sequence = 1 @@ -272990,52 +225677,43 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.Interact, 1029224u, new Vector3(-7.4921875f, 0.74753714f, 205.40161f), 817) + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1029224u, new Vector3(-7.4921875f, 0.74753714f, 205.40161f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj209.Steps = list293; reference223 = obj209; - num++; - ref QuestSequence reference224 = ref span291[num]; + ref QuestSequence reference224 = ref span101[2]; QuestSequence obj210 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span294[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010069u, new Vector3(338.6129f, 24.12439f, 203.17383f), 817) + span102[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010069u, new Vector3(338.6129f, 24.12439f, 203.17383f), 817) { AetherCurrentId = 2818288u }; - num2++; - span294[num2] = new QuestStep(EInteractionType.Interact, 2009886u, new Vector3(288.19702f, -0.10687256f, 221.66772f), 817) + span102[4] = new QuestStep(EInteractionType.Interact, 2009886u, new Vector3(288.19702f, -0.10687256f, 221.66772f), 817) { DisableNavmesh = true, Mount = true }; obj210.Steps = list294; reference224 = obj210; - num++; - ref QuestSequence reference225 = ref span291[num]; + ref QuestSequence reference225 = ref span101[3]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue @@ -273043,11 +225721,9 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - 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); + 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); obj211.Steps = list295; reference225 = obj211; questRoot34.QuestSequence = list291; @@ -273057,33 +225733,27 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "liza"; + CollectionsMarshal.AsSpan(list296)[0] = "liza"; questRoot35.Author = list296; - index = 4; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference226 = ref span297[num]; + num = 4; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span104 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference226 = ref span104[0]; QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj212.Steps = list298; reference226 = obj212; - num++; - ref QuestSequence reference227 = ref span297[num]; + ref QuestSequence reference227 = ref span104[1]; QuestSequence obj213 = new QuestSequence { Sequence = 1 @@ -273091,114 +225761,81 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj213.Steps = list299; reference227 = obj213; - num++; - ref QuestSequence reference228 = ref span297[num]; + ref QuestSequence reference228 = ref span104[2]; QuestSequence obj214 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list300 = new List(index2); - CollectionsMarshal.SetCount(list300, index2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num2 = 0; - ref QuestStep reference229 = ref span300[num2]; + num2 = 5; + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + Span span105 = CollectionsMarshal.AsSpan(list300); + ref QuestStep reference229 = ref span105[0]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list301; reference229 = questStep15; - num2++; - ref QuestStep reference230 = ref span300[num2]; + ref QuestStep reference230 = ref span105[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1027717u, new Vector3(334.18774f, 7.960762f, -141.46643f), 817); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list302; reference230 = questStep16; - num2++; - span300[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) + span105[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 817) { Aetheryte = EAetheryteLocation.RaktikaFanow }; - num2++; - ref QuestStep reference231 = ref span300[num2]; + ref QuestStep reference231 = ref span105[3]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list303; reference231 = questStep17; - num2++; - ref QuestStep reference232 = ref span300[num2]; + ref QuestStep reference232 = ref span105[4]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1027712u, new Vector3(454.1847f, 6.955061f, -193.07245f), 817); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list304; reference232 = questStep18; obj214.Steps = list300; reference228 = obj214; - num++; - ref QuestSequence reference233 = ref span297[num]; + ref QuestSequence reference233 = ref span104[3]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -273206,9 +225843,7 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029231u, new Vector3(453.05554f, 33.66181f, -156.9696f), 817); obj215.Steps = list305; reference233 = obj215; questRoot35.QuestSequence = list297; @@ -273218,30 +225853,24 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "liza"; + CollectionsMarshal.AsSpan(list306)[0] = "liza"; questRoot36.Author = list306; - index = 7; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference234 = ref span307[num]; + num = 7; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span110 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference234 = ref span110[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj216.Steps = list308; reference234 = obj216; - num++; - ref QuestSequence reference235 = ref span307[num]; + ref QuestSequence reference235 = ref span110[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -273249,34 +225878,28 @@ public static class AssemblyQuestLoader num2 = 2; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) + Span span111 = CollectionsMarshal.AsSpan(list309); + span111[0] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) { PickUpQuestId = new QuestId(3467) }; - index2++; - span309[index2] = new QuestStep(EInteractionType.Interact, 1029238u, new Vector3(206.56128f, -6.300962f, -352.4682f), 817); + span111[1] = new QuestStep(EInteractionType.Interact, 1029238u, new Vector3(206.56128f, -6.300962f, -352.4682f), 817); obj217.Steps = list309; reference235 = obj217; - num++; - ref QuestSequence reference236 = ref span307[num]; + ref QuestSequence reference236 = ref span110[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj218.Steps = list310; reference236 = obj218; - num++; - ref QuestSequence reference237 = ref span307[num]; + ref QuestSequence reference237 = ref span110[3]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -273284,9 +225907,8 @@ public static class AssemblyQuestLoader num2 = 9; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - ref QuestStep reference238 = ref span311[index2]; + Span span113 = CollectionsMarshal.AsSpan(list311); + ref QuestStep reference238 = ref span113[0]; QuestStep obj220 = new QuestStep(EInteractionType.Jump, null, new Vector3(194.89655f, -18.734356f, -426.63055f), 817) { StopDistance = 0.25f, @@ -273304,49 +225926,35 @@ public static class AssemblyQuestLoader num3 = 6; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - 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); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list312; skipConditions12.StepIf = skipStepConditions12; obj220.SkipConditions = skipConditions12; reference238 = obj220; - index2++; - ref QuestStep reference239 = ref span311[index2]; + ref QuestStep reference239 = ref span113[1]; QuestStep obj221 = new QuestStep(EInteractionType.UseItem, 2009890u, new Vector3(218.46338f, 10.574402f, -425.25372f), 817) { ItemId = 2002552u }; - 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); + 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); obj221.CompletionQuestVariablesFlags = list313; reference239 = obj221; - index2++; - ref QuestStep reference240 = ref span311[index2]; + ref QuestStep reference240 = ref span113[2]; QuestStep obj222 = new QuestStep(EInteractionType.Jump, null, new Vector3(149.22699f, -19.278904f, -427.7278f), 817) { StopDistance = 0.25f, @@ -273365,49 +225973,35 @@ public static class AssemblyQuestLoader num3 = 6; List list314 = new List(num3); CollectionsMarshal.SetCount(list314, num3); - 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); + 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); skipStepConditions13.CompletionQuestVariablesFlags = list314; skipConditions13.StepIf = skipStepConditions13; obj222.SkipConditions = skipConditions13; reference240 = obj222; - index2++; - ref QuestStep reference241 = ref span311[index2]; + ref QuestStep reference241 = ref span113[3]; QuestStep obj223 = new QuestStep(EInteractionType.UseItem, 2009887u, new Vector3(124.37622f, 10.879639f, -429.43463f), 817) { ItemId = 2002552u }; - 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); + 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); obj223.CompletionQuestVariablesFlags = list315; reference241 = obj223; - index2++; - ref QuestStep reference242 = ref span311[index2]; + ref QuestStep reference242 = ref span113[4]; QuestStep obj224 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.42946f, -19.372574f, -430.77545f), 817) { DisableNavmesh = true, @@ -273418,25 +226012,18 @@ public static class AssemblyQuestLoader num3 = 6; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - 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); + 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); skipStepConditions14.CompletionQuestVariablesFlags = list316; skipConditions14.StepIf = skipStepConditions14; obj224.SkipConditions = skipConditions14; reference242 = obj224; - index2++; - ref QuestStep reference243 = ref span311[index2]; + ref QuestStep reference243 = ref span113[5]; QuestStep obj225 = new QuestStep(EInteractionType.Jump, null, new Vector3(145.00993f, -20f, -509.06528f), 817) { StopDistance = 0.25f, @@ -273451,28 +226038,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - 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); + 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); skipStepConditions15.CompletionQuestVariablesFlags = list317; skipConditions15.StepIf = skipStepConditions15; obj225.SkipConditions = skipConditions15; reference243 = obj225; - index2++; - ref QuestStep reference244 = ref span311[index2]; + ref QuestStep reference244 = ref span113[6]; QuestStep obj226 = new QuestStep(EInteractionType.UseItem, 2009888u, new Vector3(119.920654f, 10.696533f, -510.52112f), 817) { ItemId = 2002552u @@ -273480,23 +226060,16 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - 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); + 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); obj226.CompletionQuestVariablesFlags = list318; reference244 = obj226; - index2++; - ref QuestStep reference245 = ref span311[index2]; + ref QuestStep reference245 = ref span113[7]; QuestStep obj227 = new QuestStep(EInteractionType.Jump, null, new Vector3(195.20181f, -19.677738f, -516.0344f), 817) { StopDistance = 0.25f, @@ -273512,28 +226085,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions16 = new SkipStepConditions(); - 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); + 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); skipStepConditions16.CompletionQuestVariablesFlags = list319; skipConditions16.StepIf = skipStepConditions16; obj227.SkipConditions = skipConditions16; reference245 = obj227; - index2++; - ref QuestStep reference246 = ref span311[index2]; + ref QuestStep reference246 = ref span113[8]; QuestStep obj228 = new QuestStep(EInteractionType.UseItem, 2009889u, new Vector3(218.92114f, 8.957031f, -514.45795f), 817) { ItemId = 2002552u @@ -273541,45 +226107,35 @@ public static class AssemblyQuestLoader num3 = 6; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - 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); + 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); obj228.CompletionQuestVariablesFlags = list320; reference246 = obj228; obj219.Steps = list311; reference237 = obj219; - num++; - ref QuestSequence reference247 = ref span307[num]; + ref QuestSequence reference247 = ref span110[4]; QuestSequence obj229 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span321[num2] = new QuestStep(EInteractionType.Interact, 1029241u, new Vector3(177.203f, -19.544508f, -533.53174f), 817); + span123[1] = new QuestStep(EInteractionType.Interact, 1029241u, new Vector3(177.203f, -19.544508f, -533.53174f), 817); obj229.Steps = list321; reference247 = obj229; - num++; - ref QuestSequence reference248 = ref span307[num]; + ref QuestSequence reference248 = ref span110[5]; QuestSequence obj230 = new QuestSequence { Sequence = 5 @@ -273587,25 +226143,21 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - ref QuestStep reference249 = ref span322[index2]; + ref QuestStep reference249 = ref CollectionsMarshal.AsSpan(list322)[0]; QuestStep obj231 = new QuestStep(EInteractionType.Interact, 1030946u, new Vector3(175.37183f, -19.521969f, -536.0647f), 817) { StopDistance = 7f }; - index3 = 2; - List list323 = new List(index3); - CollectionsMarshal.SetCount(list323, index3); - Span span323 = CollectionsMarshal.AsSpan(list323); - num3 = 0; - span323[num3] = new DialogueChoice + num3 = 2; + List list323 = new List(num3); + CollectionsMarshal.SetCount(list323, num3); + Span span124 = CollectionsMarshal.AsSpan(list323); + span124[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC114_03335_Q1_000_000") }; - num3++; - span323[num3] = new DialogueChoice + span124[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC114_03335_Q2_000_000"), @@ -273615,18 +226167,15 @@ public static class AssemblyQuestLoader reference249 = obj231; obj230.Steps = list322; reference248 = obj230; - num++; - ref QuestSequence reference250 = ref span307[num]; + ref QuestSequence reference250 = ref span110[6]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj232.Steps = list324; reference250 = obj232; questRoot36.QuestSequence = list307; @@ -273636,16 +226185,13 @@ public static class AssemblyQuestLoader num = 1; List list325 = new List(num); CollectionsMarshal.SetCount(list325, num); - Span span325 = CollectionsMarshal.AsSpan(list325); - index = 0; - span325[index] = "liza"; + CollectionsMarshal.AsSpan(list325)[0] = "liza"; questRoot37.Author = list325; - index = 5; - List list326 = new List(index); - CollectionsMarshal.SetCount(list326, index); - Span span326 = CollectionsMarshal.AsSpan(list326); - num = 0; - ref QuestSequence reference251 = ref span326[num]; + num = 5; + List list326 = new List(num); + CollectionsMarshal.SetCount(list326, num); + Span span125 = CollectionsMarshal.AsSpan(list326); + ref QuestSequence reference251 = ref span125[0]; QuestSequence obj233 = new QuestSequence { Sequence = 0 @@ -273653,31 +226199,24 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029240u, new Vector3(173.2356f, -19.585392f, -536.82764f), 817); obj233.Steps = list327; reference251 = obj233; - num++; - ref QuestSequence reference252 = ref span326[num]; + ref QuestSequence reference252 = ref span125[1]; QuestSequence obj234 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj234.Steps = list328; reference252 = obj234; - num++; - ref QuestSequence reference253 = ref span326[num]; + ref QuestSequence reference253 = ref span125[2]; QuestSequence obj235 = new QuestSequence { Sequence = 2 @@ -273685,33 +226224,28 @@ public static class AssemblyQuestLoader num2 = 3; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span329[index2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) + span127[2] = new QuestStep(EInteractionType.Interact, 2010218u, new Vector3(220.17236f, 12.436096f, -711.9707f), 817) { DisableNavmesh = true }; obj235.Steps = list329; reference253 = obj235; - num++; - ref QuestSequence reference254 = ref span326[num]; + ref QuestSequence reference254 = ref span125[3]; QuestSequence obj236 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Comment = "Retry point", SkipConditions = new SkipConditions @@ -273722,45 +226256,34 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { DisableNavmesh = true }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span330[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(170.7773f, -8.781983f, -864.8363f), 817) + span128[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(170.7773f, -8.781983f, -864.8363f), 817) { DisableNavmesh = true }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span330[num2] = new QuestStep(EInteractionType.Interact, 2010217u, new Vector3(115.43445f, -7.400635f, -895.4757f), 817) + span128[10] = new QuestStep(EInteractionType.Interact, 2010217u, new Vector3(115.43445f, -7.400635f, -895.4757f), 817) { DisableNavmesh = true }; obj236.Steps = list330; reference254 = obj236; - num++; - ref QuestSequence reference255 = ref span326[num]; + ref QuestSequence reference255 = ref span125[4]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue @@ -273768,9 +226291,7 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span331[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); + CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029242u, new Vector3(122.697754f, -8.781986f, -891.4168f), 817); obj237.Steps = list331; reference255 = obj237; questRoot37.QuestSequence = list326; @@ -273780,30 +226301,24 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = "liza"; + CollectionsMarshal.AsSpan(list332)[0] = "liza"; questRoot38.Author = list332; - index = 3; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref QuestSequence reference256 = ref span333[num]; + num = 3; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + Span span129 = CollectionsMarshal.AsSpan(list333); + ref QuestSequence reference256 = ref span129[0]; QuestSequence obj238 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj238.Steps = list334; reference256 = obj238; - num++; - ref QuestSequence reference257 = ref span333[num]; + ref QuestSequence reference257 = ref span129[1]; QuestSequence obj239 = new QuestSequence { Sequence = 1 @@ -273811,34 +226326,27 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - ref QuestStep reference258 = ref span335[index2]; + ref QuestStep reference258 = ref CollectionsMarshal.AsSpan(list335)[0]; 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); - Span span336 = CollectionsMarshal.AsSpan(list336); - index3 = 0; - span336[index3] = "(room 2) AI tries to walk straight to the next door, ignoring all walls"; + CollectionsMarshal.AsSpan(list336)[0] = "(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; - num++; - ref QuestSequence reference259 = ref span333[num]; + ref QuestSequence reference259 = ref span129[2]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj240.Steps = list337; reference259 = obj240; questRoot38.QuestSequence = list333; @@ -273848,16 +226356,13 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - Span span338 = CollectionsMarshal.AsSpan(list338); - index = 0; - span338[index] = "liza"; + CollectionsMarshal.AsSpan(list338)[0] = "liza"; questRoot39.Author = list338; - index = 6; - List list339 = new List(index); - CollectionsMarshal.SetCount(list339, index); - Span span339 = CollectionsMarshal.AsSpan(list339); - num = 0; - ref QuestSequence reference260 = ref span339[num]; + num = 6; + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + Span span130 = CollectionsMarshal.AsSpan(list339); + ref QuestSequence reference260 = ref span130[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 @@ -273865,33 +226370,27 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029247u, new Vector3(166.91846f, -19.856256f, -535.1797f), 817) + CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029247u, new Vector3(166.91846f, -19.856256f, -535.1797f), 817) { StopDistance = 5f }; obj241.Steps = list340; reference260 = obj241; - num++; - ref QuestSequence reference261 = ref span339[num]; + ref QuestSequence reference261 = ref span130[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 2f }; obj242.Steps = list341; reference261 = obj242; - num++; - ref QuestSequence reference262 = ref span339[num]; + ref QuestSequence reference262 = ref span130[2]; QuestSequence obj243 = new QuestSequence { Sequence = 2 @@ -273899,30 +226398,24 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.UseItem, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817) + CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.UseItem, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817) { ItemId = 2002553u }; obj243.Steps = list342; reference262 = obj243; - num++; - ref QuestSequence reference263 = ref span339[num]; + ref QuestSequence reference263 = ref span130[3]; QuestSequence obj244 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj244.Steps = list343; reference263 = obj244; - num++; - ref QuestSequence reference264 = ref span339[num]; + ref QuestSequence reference264 = ref span130[4]; QuestSequence obj245 = new QuestSequence { Sequence = 4 @@ -273930,23 +226423,18 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1029250u, new Vector3(448.2948f, 7.479239f, -208.14838f), 817); obj245.Steps = list344; reference264 = obj245; - num++; - ref QuestSequence reference265 = ref span339[num]; + ref QuestSequence reference265 = ref span130[5]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj246.Steps = list345; reference265 = obj246; questRoot39.QuestSequence = list339; @@ -273956,16 +226444,13 @@ public static class AssemblyQuestLoader num = 1; List list346 = new List(num); CollectionsMarshal.SetCount(list346, num); - Span span346 = CollectionsMarshal.AsSpan(list346); - index = 0; - span346[index] = "liza"; + CollectionsMarshal.AsSpan(list346)[0] = "liza"; questRoot40.Author = list346; - index = 6; - List list347 = new List(index); - CollectionsMarshal.SetCount(list347, index); - Span span347 = CollectionsMarshal.AsSpan(list347); - num = 0; - ref QuestSequence reference266 = ref span347[num]; + num = 6; + List list347 = new List(num); + CollectionsMarshal.SetCount(list347, num); + Span span131 = CollectionsMarshal.AsSpan(list347); + ref QuestSequence reference266 = ref span131[0]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -273973,30 +226458,24 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - span348[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029249u, new Vector3(449.8817f, 6.955061f, -208.75867f), 817); obj247.Steps = list348; reference266 = obj247; - num++; - ref QuestSequence reference267 = ref span347[num]; + ref QuestSequence reference267 = ref span131[1]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj248.Steps = list349; reference267 = obj248; - num++; - ref QuestSequence reference268 = ref span347[num]; + ref QuestSequence reference268 = ref span131[2]; QuestSequence obj249 = new QuestSequence { Sequence = 2 @@ -274004,31 +226483,25 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(580.9263f, 18.753235f, -43.01526f), 817) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(580.9263f, 18.753235f, -43.01526f), 817) { StopDistance = 1f, ItemId = 2002554u }; obj249.Steps = list350; reference268 = obj249; - num++; - ref QuestSequence reference269 = ref span347[num]; + ref QuestSequence reference269 = ref span131[3]; QuestSequence obj250 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj250.Steps = list351; reference269 = obj250; - num++; - ref QuestSequence reference270 = ref span347[num]; + ref QuestSequence reference270 = ref span131[4]; QuestSequence obj251 = new QuestSequence { Sequence = 4 @@ -274036,16 +226509,12 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - ref QuestStep reference271 = ref span352[index2]; + ref QuestStep reference271 = ref CollectionsMarshal.AsSpan(list352)[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1029554u, new Vector3(585.7174f, 18.386158f, -59.18976f), 817); - index3 = 1; - List list353 = new List(index3); - CollectionsMarshal.SetCount(list353, index3); - Span span353 = CollectionsMarshal.AsSpan(list353); - num3 = 0; - span353[num3] = new DialogueChoice + num3 = 1; + List list353 = new List(num3); + CollectionsMarshal.SetCount(list353, num3); + CollectionsMarshal.AsSpan(list353)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMC118_03339_Q1_000_000"), @@ -274055,18 +226524,15 @@ public static class AssemblyQuestLoader reference271 = questStep20; obj251.Steps = list352; reference270 = obj251; - num++; - ref QuestSequence reference272 = ref span347[num]; + ref QuestSequence reference272 = ref span131[5]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -274079,16 +226545,13 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - Span span355 = CollectionsMarshal.AsSpan(list355); - index = 0; - span355[index] = "liza"; + CollectionsMarshal.AsSpan(list355)[0] = "liza"; questRoot41.Author = list355; - index = 5; - List list356 = new List(index); - CollectionsMarshal.SetCount(list356, index); - Span span356 = CollectionsMarshal.AsSpan(list356); - num = 0; - ref QuestSequence reference273 = ref span356[num]; + num = 5; + List list356 = new List(num); + CollectionsMarshal.SetCount(list356, num); + Span span132 = CollectionsMarshal.AsSpan(list356); + ref QuestSequence reference273 = ref span132[0]; QuestSequence obj253 = new QuestSequence { Sequence = 0 @@ -274096,40 +226559,33 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - span357[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029255u, new Vector3(453.6964f, 6.955061f, -201.15973f), 817) + CollectionsMarshal.AsSpan(list357)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029255u, new Vector3(453.6964f, 6.955061f, -201.15973f), 817) { StopDistance = 7f }; obj253.Steps = list357; reference273 = obj253; - num++; - ref QuestSequence reference274 = ref span356[num]; + ref QuestSequence reference274 = ref span132[1]; QuestSequence obj254 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3478) }; - num2++; - span358[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010073u, new Vector3(681.1168f, -39.2005f, -262.77563f), 817) + span133[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010073u, new Vector3(681.1168f, -39.2005f, -262.77563f), 817) { AetherCurrentId = 2818292u }; - num2++; - span358[num2] = new QuestStep(EInteractionType.Interact, 2009893u, new Vector3(854.39844f, -63.85907f, -394.43048f), 817); + span133[2] = new QuestStep(EInteractionType.Interact, 2009893u, new Vector3(854.39844f, -63.85907f, -394.43048f), 817); obj254.Steps = list358; reference274 = obj254; - num++; - ref QuestSequence reference275 = ref span356[num]; + ref QuestSequence reference275 = ref span132[2]; QuestSequence obj255 = new QuestSequence { Sequence = 2 @@ -274137,9 +226593,7 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new QuestStep(EInteractionType.Duty, null, null, 817) + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Duty, null, null, 817) { DutyOptions = new DutyOptions { @@ -274149,23 +226603,19 @@ public static class AssemblyQuestLoader }; obj255.Steps = list359; reference275 = obj255; - num++; - span356[num] = new QuestSequence + span132[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference276 = ref span356[num]; + ref QuestSequence reference276 = ref span132[4]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -274178,16 +226628,13 @@ public static class AssemblyQuestLoader num = 1; List list361 = new List(num); CollectionsMarshal.SetCount(list361, num); - Span span361 = CollectionsMarshal.AsSpan(list361); - index = 0; - span361[index] = "liza"; + CollectionsMarshal.AsSpan(list361)[0] = "liza"; questRoot42.Author = list361; - index = 3; - List list362 = new List(index); - CollectionsMarshal.SetCount(list362, index); - Span span362 = CollectionsMarshal.AsSpan(list362); - num = 0; - ref QuestSequence reference277 = ref span362[num]; + num = 3; + List list362 = new List(num); + CollectionsMarshal.SetCount(list362, num); + Span span134 = CollectionsMarshal.AsSpan(list362); + ref QuestSequence reference277 = ref span134[0]; QuestSequence obj257 = new QuestSequence { Sequence = 0 @@ -274195,34 +226642,28 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) + CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029557u, new Vector3(848.7831f, -65.42493f, -394.67462f), 817) { StopDistance = 5f }; obj257.Steps = list363; reference277 = obj257; - num++; - ref QuestSequence reference278 = ref span362[num]; + ref QuestSequence reference278 = ref span134[1]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj258.Steps = list364; reference278 = obj258; - num++; - ref QuestSequence reference279 = ref span362[num]; + ref QuestSequence reference279 = ref span134[2]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -274230,9 +226671,7 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span365[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -274245,33 +226684,27 @@ public static class AssemblyQuestLoader num = 1; List list366 = new List(num); CollectionsMarshal.SetCount(list366, num); - Span span366 = CollectionsMarshal.AsSpan(list366); - index = 0; - span366[index] = "liza"; + CollectionsMarshal.AsSpan(list366)[0] = "liza"; questRoot43.Author = list366; - index = 5; - List list367 = new List(index); - CollectionsMarshal.SetCount(list367, index); - Span span367 = CollectionsMarshal.AsSpan(list367); - num = 0; - ref QuestSequence reference280 = ref span367[num]; + num = 5; + List list367 = new List(num); + CollectionsMarshal.SetCount(list367, num); + Span span135 = CollectionsMarshal.AsSpan(list367); + ref QuestSequence reference280 = ref span135[0]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj260.Steps = list368; reference280 = obj260; - num++; - ref QuestSequence reference281 = ref span367[num]; + ref QuestSequence reference281 = ref span135[1]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -274279,32 +226712,26 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span369 = CollectionsMarshal.AsSpan(list369); - index2 = 0; - span369[index2] = new QuestStep(EInteractionType.Interact, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); + CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1029194u, new Vector3(-37.216797f, -18.920458f, 336.62915f), 817); obj261.Steps = list369; reference281 = obj261; - num++; - ref QuestSequence reference282 = ref span367[num]; + ref QuestSequence reference282 = ref span135[2]; QuestSequence obj262 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj262.Steps = list370; reference282 = obj262; - num++; - ref QuestSequence reference283 = ref span367[num]; + ref QuestSequence reference283 = ref span135[3]; QuestSequence obj263 = new QuestSequence { Sequence = 3 @@ -274312,27 +226739,22 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1029558u, new Vector3(28.732666f, 0f, 1.87677f), 819) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Crystarium }; obj263.Steps = list371; reference283 = obj263; - num++; - ref QuestSequence reference284 = ref span367[num]; + ref QuestSequence reference284 = ref span135[4]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list372 = new List(index2); - CollectionsMarshal.SetCount(list372, index2); - Span span372 = CollectionsMarshal.AsSpan(list372); - num2 = 0; - ref QuestStep reference285 = ref span372[num2]; + num2 = 1; + List list372 = new List(num2); + CollectionsMarshal.SetCount(list372, num2); + ref QuestStep reference285 = ref CollectionsMarshal.AsSpan(list372)[0]; QuestStep obj265 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f, @@ -274345,9 +226767,7 @@ public static class AssemblyQuestLoader num3 = 1; List list373 = new List(num3); CollectionsMarshal.SetCount(list373, num3); - Span span373 = CollectionsMarshal.AsSpan(list373); - index3 = 0; - span373[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMC121_03342_Q1_000_000") @@ -274363,16 +226783,13 @@ public static class AssemblyQuestLoader num = 1; List list374 = new List(num); CollectionsMarshal.SetCount(list374, num); - Span span374 = CollectionsMarshal.AsSpan(list374); - index = 0; - span374[index] = "liza"; + CollectionsMarshal.AsSpan(list374)[0] = "liza"; questRoot44.Author = list374; - index = 5; - List list375 = new List(index); - CollectionsMarshal.SetCount(list375, index); - Span span375 = CollectionsMarshal.AsSpan(list375); - num = 0; - ref QuestSequence reference286 = ref span375[num]; + num = 5; + List list375 = new List(num); + CollectionsMarshal.SetCount(list375, num); + Span span137 = CollectionsMarshal.AsSpan(list375); + ref QuestSequence reference286 = ref span137[0]; QuestSequence obj266 = new QuestSequence { Sequence = 0 @@ -274380,27 +226797,21 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - span376[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027827u, new Vector3(105.02783f, 0.49999997f, -145.70844f), 819); + CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027827u, new Vector3(105.02783f, 0.49999997f, -145.70844f), 819); obj266.Steps = list376; reference286 = obj266; - num++; - ref QuestSequence reference287 = ref span375[num]; + ref QuestSequence reference287 = ref span137[1]; QuestSequence obj267 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj267.Steps = list377; reference287 = obj267; - num++; - ref QuestSequence reference288 = ref span375[num]; + ref QuestSequence reference288 = ref span137[2]; QuestSequence obj268 = new QuestSequence { Sequence = 2 @@ -274408,9 +226819,7 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.Interact, 1027817u, new Vector3(-118.425354f, -47.50666f, -181.17041f), 819) + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1027817u, new Vector3(-118.425354f, -47.50666f, -181.17041f), 819) { AethernetShortcut = new AethernetShortcut { @@ -274420,62 +226829,46 @@ public static class AssemblyQuestLoader }; obj268.Steps = list378; reference288 = obj268; - num++; - ref QuestSequence reference289 = ref span375[num]; + ref QuestSequence reference289 = ref span137[3]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list379 = new List(index2); - CollectionsMarshal.SetCount(list379, index2); - Span span379 = CollectionsMarshal.AsSpan(list379); - num2 = 0; - ref QuestStep reference290 = ref span379[num2]; + num2 = 2; + List list379 = new List(num2); + CollectionsMarshal.SetCount(list379, num2); + Span span138 = CollectionsMarshal.AsSpan(list379); + ref QuestStep reference290 = ref span138[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2010022u, new Vector3(-152.08673f, -45.88391f, -185.0462f), 819); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list380; reference290 = questStep21; - num2++; - ref QuestStep reference291 = ref span379[num2]; + ref QuestStep reference291 = ref span138[1]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list381; reference291 = questStep22; obj269.Steps = list379; reference289 = obj269; - num++; - ref QuestSequence reference292 = ref span375[num]; + ref QuestSequence reference292 = ref span137[4]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -274483,9 +226876,7 @@ public static class AssemblyQuestLoader num2 = 1; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span382[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + CollectionsMarshal.AsSpan(list382)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { AethernetShortcut = new AethernetShortcut { @@ -274502,30 +226893,24 @@ public static class AssemblyQuestLoader num = 1; List list383 = new List(num); CollectionsMarshal.SetCount(list383, num); - Span span383 = CollectionsMarshal.AsSpan(list383); - index = 0; - span383[index] = "liza"; + CollectionsMarshal.AsSpan(list383)[0] = "liza"; questRoot45.Author = list383; - index = 3; - List list384 = new List(index); - CollectionsMarshal.SetCount(list384, index); - Span span384 = CollectionsMarshal.AsSpan(list384); - num = 0; - ref QuestSequence reference293 = ref span384[num]; + num = 3; + List list384 = new List(num); + CollectionsMarshal.SetCount(list384, num); + Span span141 = CollectionsMarshal.AsSpan(list384); + ref QuestSequence reference293 = ref span141[0]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj271.Steps = list385; reference293 = obj271; - num++; - ref QuestSequence reference294 = ref span384[num]; + ref QuestSequence reference294 = ref span141[1]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -274533,9 +226918,8 @@ public static class AssemblyQuestLoader num2 = 5; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - ref QuestStep reference295 = ref span386[index2]; + Span span142 = CollectionsMarshal.AsSpan(list386); + ref QuestStep reference295 = ref span142[0]; QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819) { AethernetShortcut = new AethernetShortcut @@ -274544,26 +226928,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTemenosRookery } }; - 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); + 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); obj273.CompletionQuestVariablesFlags = list387; reference295 = obj273; - index2++; - ref QuestStep reference296 = ref span386[index2]; + ref QuestStep reference296 = ref span142[1]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 1027227u, new Vector3(-65.78168f, -27.23603f, -272.99915f), 819) { AethernetShortcut = new AethernetShortcut @@ -274575,23 +226952,16 @@ public static class AssemblyQuestLoader num3 = 6; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - 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); + 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); obj274.CompletionQuestVariablesFlags = list388; reference296 = obj274; - index2++; - ref QuestStep reference297 = ref span386[index2]; + ref QuestStep reference297 = ref span142[2]; QuestStep obj275 = new QuestStep(EInteractionType.Interact, 1030258u, new Vector3(65.659546f, 36.197685f, -148.54657f), 819) { AethernetShortcut = new AethernetShortcut @@ -274600,26 +226970,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - 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); + 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); obj275.CompletionQuestVariablesFlags = list389; reference297 = obj275; - index2++; - span386[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(80.6178f, 35.999687f, -146.81993f), 819) + span142[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(80.6178f, 35.999687f, -146.81993f), 819) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -274627,48 +226990,36 @@ public static class AssemblyQuestLoader Position = new Vector3(98.63616f, 0.5f, -153.71947f) } }; - index2++; - ref QuestStep reference298 = ref span386[index2]; + ref QuestStep reference298 = ref span142[4]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list390; reference298 = questStep23; obj272.Steps = list386; reference294 = obj272; - num++; - ref QuestSequence reference299 = ref span384[num]; + ref QuestSequence reference299 = ref span141[2]; QuestSequence obj276 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list391 = new List(index2); - CollectionsMarshal.SetCount(list391, index2); - Span span391 = CollectionsMarshal.AsSpan(list391); - num2 = 0; - ref QuestStep reference300 = ref span391[num2]; + num2 = 1; + List list391 = new List(num2); + CollectionsMarshal.SetCount(list391, num2); + ref QuestStep reference300 = ref CollectionsMarshal.AsSpan(list391)[0]; QuestStep questStep24 = new QuestStep(EInteractionType.CompleteQuest, 1027244u, new Vector3(76.157715f, 0.0889954f, -44.26648f), 819); - index3 = 1; - List list392 = new List(index3); - CollectionsMarshal.SetCount(list392, index3); - Span span392 = CollectionsMarshal.AsSpan(list392); - num3 = 0; - span392[num3] = new DialogueChoice + num3 = 1; + List list392 = new List(num3); + CollectionsMarshal.SetCount(list392, num3); + CollectionsMarshal.AsSpan(list392)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA002_03344_Q1_000_051"), @@ -274685,16 +227036,13 @@ public static class AssemblyQuestLoader num = 1; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - Span span393 = CollectionsMarshal.AsSpan(list393); - index = 0; - span393[index] = "liza"; + CollectionsMarshal.AsSpan(list393)[0] = "liza"; questRoot46.Author = list393; - index = 4; - List list394 = new List(index); - CollectionsMarshal.SetCount(list394, index); - Span span394 = CollectionsMarshal.AsSpan(list394); - num = 0; - ref QuestSequence reference301 = ref span394[num]; + num = 4; + List list394 = new List(num); + CollectionsMarshal.SetCount(list394, num); + Span span147 = CollectionsMarshal.AsSpan(list394); + ref QuestSequence reference301 = ref span147[0]; QuestSequence obj277 = new QuestSequence { Sequence = 0 @@ -274702,29 +227050,23 @@ public static class AssemblyQuestLoader num2 = 2; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - 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); + 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); obj277.Steps = list395; reference301 = obj277; - num++; - ref QuestSequence reference302 = ref span394[num]; + ref QuestSequence reference302 = ref span147[1]; QuestSequence obj278 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj278.Steps = list396; reference302 = obj278; - num++; - ref QuestSequence reference303 = ref span394[num]; + ref QuestSequence reference303 = ref span147[2]; QuestSequence obj279 = new QuestSequence { Sequence = 2 @@ -274732,25 +227074,20 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span397 = CollectionsMarshal.AsSpan(list397); - index2 = 0; - span397[index2] = new QuestStep(EInteractionType.Interact, 1029146u, new Vector3(86.74744f, 0.74016255f, 147.11218f), 819); + CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.Interact, 1029146u, new Vector3(86.74744f, 0.74016255f, 147.11218f), 819); obj279.Steps = list397; reference303 = obj279; - num++; - ref QuestSequence reference304 = ref span394[num]; + ref QuestSequence reference304 = ref span147[3]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj280.Steps = list398; reference304 = obj280; questRoot46.QuestSequence = list394; @@ -274760,16 +227097,13 @@ public static class AssemblyQuestLoader num = 1; List list399 = new List(num); CollectionsMarshal.SetCount(list399, num); - Span span399 = CollectionsMarshal.AsSpan(list399); - index = 0; - span399[index] = "liza"; + CollectionsMarshal.AsSpan(list399)[0] = "liza"; questRoot47.Author = list399; - index = 5; - List list400 = new List(index); - CollectionsMarshal.SetCount(list400, index); - Span span400 = CollectionsMarshal.AsSpan(list400); - num = 0; - ref QuestSequence reference305 = ref span400[num]; + num = 5; + List list400 = new List(num); + CollectionsMarshal.SetCount(list400, num); + Span span150 = CollectionsMarshal.AsSpan(list400); + ref QuestSequence reference305 = ref span150[0]; QuestSequence obj281 = new QuestSequence { Sequence = 0 @@ -274777,88 +227111,63 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - Span span401 = CollectionsMarshal.AsSpan(list401); - index2 = 0; - span401[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj281.Steps = list401; reference305 = obj281; - num++; - ref QuestSequence reference306 = ref span400[num]; + ref QuestSequence reference306 = ref span150[1]; QuestSequence obj282 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list402 = new List(index2); - CollectionsMarshal.SetCount(list402, index2); - Span span402 = CollectionsMarshal.AsSpan(list402); - num2 = 0; - ref QuestStep reference307 = ref span402[num2]; + num2 = 3; + List list402 = new List(num2); + CollectionsMarshal.SetCount(list402, num2); + Span span151 = CollectionsMarshal.AsSpan(list402); + ref QuestStep reference307 = ref span151[0]; 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 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); + 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); questStep25.CompletionQuestVariablesFlags = list403; reference307 = questStep25; - num2++; - ref QuestStep reference308 = ref span402[num2]; + ref QuestStep reference308 = ref span151[1]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2009994u, new Vector3(-155.29114f, -0.015319824f, -99.38208f), 819); - 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); + 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); questStep26.CompletionQuestVariablesFlags = list404; reference308 = questStep26; - num2++; - ref QuestStep reference309 = ref span402[num2]; + ref QuestStep reference309 = ref span151[2]; 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 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); + 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); questStep27.CompletionQuestVariablesFlags = list405; reference309 = questStep27; obj282.Steps = list402; reference306 = obj282; - num++; - ref QuestSequence reference310 = ref span400[num]; + ref QuestSequence reference310 = ref span150[2]; QuestSequence obj283 = new QuestSequence { Sequence = 2 @@ -274866,27 +227175,21 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj283.Steps = list406; reference310 = obj283; - num++; - ref QuestSequence reference311 = ref span400[num]; + ref QuestSequence reference311 = ref span150[3]; QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj284.Steps = list407; reference311 = obj284; - num++; - ref QuestSequence reference312 = ref span400[num]; + ref QuestSequence reference312 = ref span150[4]; QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue @@ -274894,9 +227197,7 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - span408[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); + CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027316u, new Vector3(-127.30603f, 0f, -109.48352f), 819); obj285.Steps = list408; reference312 = obj285; questRoot47.QuestSequence = list400; @@ -274906,30 +227207,24 @@ public static class AssemblyQuestLoader num = 1; List list409 = new List(num); CollectionsMarshal.SetCount(list409, num); - Span span409 = CollectionsMarshal.AsSpan(list409); - index = 0; - span409[index] = "liza"; + CollectionsMarshal.AsSpan(list409)[0] = "liza"; questRoot48.Author = list409; - index = 3; - List list410 = new List(index); - CollectionsMarshal.SetCount(list410, index); - Span span410 = CollectionsMarshal.AsSpan(list410); - num = 0; - ref QuestSequence reference313 = ref span410[num]; + num = 3; + List list410 = new List(num); + CollectionsMarshal.SetCount(list410, num); + Span span155 = CollectionsMarshal.AsSpan(list410); + ref QuestSequence reference313 = ref span155[0]; QuestSequence obj286 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj286.Steps = list411; reference313 = obj286; - num++; - ref QuestSequence reference314 = ref span410[num]; + ref QuestSequence reference314 = ref span155[1]; QuestSequence obj287 = new QuestSequence { Sequence = 1 @@ -274937,30 +227232,25 @@ public static class AssemblyQuestLoader num2 = 1; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - ref QuestStep reference315 = ref span412[index2]; + ref QuestStep reference315 = ref CollectionsMarshal.AsSpan(list412)[0]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1030259u, new Vector3(-68.55884f, -27.236004f, -269.58118f), 819); - index3 = 3; - List list413 = new List(index3); - CollectionsMarshal.SetCount(list413, index3); - Span span413 = CollectionsMarshal.AsSpan(list413); - num3 = 0; - span413[num3] = new DialogueChoice + num3 = 3; + List list413 = new List(num3); + CollectionsMarshal.SetCount(list413, num3); + Span span156 = CollectionsMarshal.AsSpan(list413); + span156[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q1_000_012"), Answer = new ExcelRef("TEXT_LUCKZA005_03347_A1_000_013") }; - num3++; - span413[num3] = new DialogueChoice + span156[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q2_000_017"), Answer = new ExcelRef("TEXT_LUCKZA005_03347_A2_000_019") }; - num3++; - span413[num3] = new DialogueChoice + span156[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA005_03347_Q3_000_022"), @@ -274970,18 +227260,15 @@ public static class AssemblyQuestLoader reference315 = questStep28; obj287.Steps = list412; reference314 = obj287; - num++; - ref QuestSequence reference316 = ref span410[num]; + ref QuestSequence reference316 = ref span155[2]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj288.Steps = list414; reference316 = obj288; questRoot48.QuestSequence = list410; @@ -274991,16 +227278,13 @@ public static class AssemblyQuestLoader num = 1; List list415 = new List(num); CollectionsMarshal.SetCount(list415, num); - Span span415 = CollectionsMarshal.AsSpan(list415); - index = 0; - span415[index] = "liza"; + CollectionsMarshal.AsSpan(list415)[0] = "liza"; questRoot49.Author = list415; - index = 3; - List list416 = new List(index); - CollectionsMarshal.SetCount(list416, index); - Span span416 = CollectionsMarshal.AsSpan(list416); - num = 0; - ref QuestSequence reference317 = ref span416[num]; + num = 3; + List list416 = new List(num); + CollectionsMarshal.SetCount(list416, num); + Span span157 = CollectionsMarshal.AsSpan(list416); + ref QuestSequence reference317 = ref span157[0]; QuestSequence obj289 = new QuestSequence { Sequence = 0 @@ -275008,30 +227292,24 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - Span span417 = CollectionsMarshal.AsSpan(list417); - index2 = 0; - span417[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819); + CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819); obj289.Steps = list417; reference317 = obj289; - num++; - ref QuestSequence reference318 = ref span416[num]; + ref QuestSequence reference318 = ref span157[1]; QuestSequence obj290 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Emote = EEmote.BattleStance }; obj290.Steps = list418; reference318 = obj290; - num++; - ref QuestSequence reference319 = ref span416[num]; + ref QuestSequence reference319 = ref span157[2]; QuestSequence obj291 = new QuestSequence { Sequence = byte.MaxValue @@ -275039,9 +227317,7 @@ public static class AssemblyQuestLoader num2 = 1; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span419 = CollectionsMarshal.AsSpan(list419); - index2 = 0; - span419[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) + CollectionsMarshal.AsSpan(list419)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029884u, new Vector3(52.96399f, 35.999683f, -109.14783f), 819) { Emote = EEmote.Box }; @@ -275058,16 +227334,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -275075,32 +227348,26 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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(-451.1456f, 8.987026f, 532.7527f), 814); - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1030741u, new Vector3(-446.28064f, 7.6579986f, 536.15625f), 814) + 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) { StopDistance = 7f }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -275108,9 +227375,8 @@ public static class AssemblyQuestLoader num2 = 7; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-447.98965f, 7.657998f, 532.0151f), 814) + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-447.98965f, 7.657998f, 532.0151f), 814) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -275119,8 +227385,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref span3[1]; QuestStep obj4 = new QuestStep(EInteractionType.UseItem, 2010260u, new Vector3(-444.38855f, 8.987488f, 532.6771f), 814) { DelaySecondsAtStart = 1f, @@ -275129,48 +227394,34 @@ public static class AssemblyQuestLoader int num3 = 6; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - 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); + 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); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - index2++; - ref QuestStep reference5 = ref span5[index2]; + ref QuestStep reference5 = ref span3[2]; QuestStep obj5 = new QuestStep(EInteractionType.UseItem, 2010286u, new Vector3(-443.0152f, 8.773865f, 535.97314f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - 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); + 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); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; - index2++; - ref QuestStep reference6 = ref span5[index2]; + ref QuestStep reference6 = ref span3[3]; QuestStep obj6 = new QuestStep(EInteractionType.UseItem, 2010287u, new Vector3(-442.92365f, 8.895996f, 538.6892f), 814) { DelaySecondsAtStart = 1f, @@ -275179,48 +227430,34 @@ public static class AssemblyQuestLoader num3 = 6; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - 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); + 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); obj6.CompletionQuestVariablesFlags = list8; reference6 = obj6; - index2++; - ref QuestStep reference7 = ref span5[index2]; + ref QuestStep reference7 = ref span3[4]; QuestStep obj7 = new QuestStep(EInteractionType.UseItem, 2010288u, new Vector3(-441.88605f, 8.590759f, 542.3513f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - 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); + 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); obj7.CompletionQuestVariablesFlags = list9; reference7 = obj7; - index2++; - ref QuestStep reference8 = ref span5[index2]; + ref QuestStep reference8 = ref span3[5]; QuestStep obj8 = new QuestStep(EInteractionType.UseItem, 2010261u, new Vector3(-444.6327f, 8.804443f, 544.51807f), 814) { DelaySecondsAtStart = 1f, @@ -275229,64 +227466,47 @@ public static class AssemblyQuestLoader num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - 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); + 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); obj8.CompletionQuestVariablesFlags = list10; reference8 = obj8; - index2++; - ref QuestStep reference9 = ref span5[index2]; + ref QuestStep reference9 = ref span3[6]; QuestStep obj9 = new QuestStep(EInteractionType.UseItem, 2010289u, new Vector3(-443.47296f, 8.499207f, 548.30237f), 814) { DelaySecondsAtStart = 1f, ItemId = 2002688u }; - 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); + 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); obj9.CompletionQuestVariablesFlags = list11; reference9 = obj9; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj10.Steps = list12; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[4]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -275294,9 +227514,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027452u, new Vector3(-310.62793f, 19.405178f, 405.2948f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; @@ -275309,30 +227527,24 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "liza"; + CollectionsMarshal.AsSpan(list14)[0] = "liza"; questRoot2.Author = list14; - index = 6; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference12 = ref span15[num]; + num = 6; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span10 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference12 = ref span10[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span10[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -275340,9 +227552,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - ref QuestStep reference14 = ref span17[index2]; + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, null, new Vector3(-226.82605f, 21.612165f, 298.9232f), 814) { StopDistance = 1f, @@ -275351,32 +227561,26 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num4 = 0; - span18[num4] = 11151u; + CollectionsMarshal.AsSpan(list18)[0] = 11151u; obj14.KillEnemyDataIds = list18; reference14 = obj14; obj13.Steps = list17; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span15[num]; + ref QuestSequence reference15 = ref span10[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj15.Steps = list19; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span15[num]; + ref QuestSequence reference16 = ref span10[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -275384,27 +227588,21 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814); obj16.Steps = list20; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span15[num]; + ref QuestSequence reference17 = ref span10[4]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj17.Steps = list21; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span15[num]; + ref QuestSequence reference18 = ref span10[5]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -275412,11 +227610,9 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - 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); + 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); obj18.Steps = list22; reference18 = obj18; questRoot2.QuestSequence = list15; @@ -275426,26 +227622,21 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "alydev"; + CollectionsMarshal.AsSpan(list23)[0] = "alydev"; questRoot3.Author = list23; - index = 4; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference19 = ref span24[num]; + num = 4; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span12 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference19 = ref span12[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -275463,8 +227654,7 @@ public static class AssemblyQuestLoader }; obj19.Steps = list25; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span24[num]; + ref QuestSequence reference20 = ref span12[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -275472,40 +227662,32 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref QuestStep reference21 = ref span26[index2]; + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list26)[0]; QuestStep obj21 = new QuestStep(EInteractionType.Combat, 2010303u, new Vector3(-481.529f, 26.108154f, 333.27222f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list27 = new List(num4); - CollectionsMarshal.SetCount(list27, num4); - Span span27 = CollectionsMarshal.AsSpan(list27); - num3 = 0; - span27[num3] = 11152u; + num3 = 1; + List list27 = new List(num3); + CollectionsMarshal.SetCount(list27, num3); + CollectionsMarshal.AsSpan(list27)[0] = 11152u; obj21.KillEnemyDataIds = list27; reference21 = obj21; obj20.Steps = list26; reference20 = obj20; - num++; - ref QuestSequence reference22 = ref span24[num]; + ref QuestSequence reference22 = ref span12[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj22.Steps = list28; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span24[num]; + ref QuestSequence reference23 = ref span12[3]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -275513,9 +227695,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { Fly = true, NextQuestId = new QuestId(3373) @@ -275529,26 +227709,21 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "alydev"; + CollectionsMarshal.AsSpan(list30)[0] = "alydev"; questRoot4.Author = list30; - index = 5; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference24 = ref span31[num]; + num = 5; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span13 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference24 = ref span13[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -275566,8 +227741,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list32; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span31[num]; + ref QuestSequence reference25 = ref span13[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -275575,16 +227749,12 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - ref QuestStep reference26 = ref span33[index2]; + ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list33)[0]; 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); - Span span34 = CollectionsMarshal.AsSpan(list34); - num4 = 0; - span34[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list34)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZA103_03373_Q1_000_000"), @@ -275594,26 +227764,21 @@ public static class AssemblyQuestLoader reference26 = questStep; obj25.Steps = list33; reference25 = obj25; - num++; - ref QuestSequence reference27 = ref span31[num]; + ref QuestSequence reference27 = ref span13[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj26.Steps = list35; reference27 = obj26; - num++; - ref QuestSequence reference28 = ref span31[num]; + ref QuestSequence reference28 = ref span13[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -275621,23 +227786,18 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1030771u, new Vector3(-532.4636f, 62.522995f, 684.0161f), 814); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1030771u, new Vector3(-532.4636f, 62.522995f, 684.0161f), 814); obj27.Steps = list36; reference28 = obj27; - num++; - ref QuestSequence reference29 = ref span31[num]; + ref QuestSequence reference29 = ref span13[4]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3374) }; @@ -275650,16 +227810,13 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "alydev"; + CollectionsMarshal.AsSpan(list38)[0] = "alydev"; questRoot5.Author = list38; - index = 5; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference30 = ref span39[num]; + num = 5; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span15 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference30 = ref span15[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -275667,9 +227824,7 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030766u, new Vector3(-284.22986f, 35.373142f, 204.66919f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -275687,25 +227842,21 @@ public static class AssemblyQuestLoader }; obj29.Steps = list40; reference30 = obj29; - num++; - ref QuestSequence reference31 = ref span39[num]; + ref QuestSequence reference31 = ref span15[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj30.Steps = list41; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span39[num]; + ref QuestSequence reference32 = ref span15[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 @@ -275713,30 +227864,24 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Interact, 1030773u, new Vector3(-259.78485f, 21.732246f, 362.14233f), 814); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1030773u, new Vector3(-259.78485f, 21.732246f, 362.14233f), 814); obj31.Steps = list42; reference32 = obj31; - num++; - ref QuestSequence reference33 = ref span39[num]; + ref QuestSequence reference33 = ref span15[3]; QuestSequence obj32 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj32.Steps = list43; reference33 = obj32; - num++; - ref QuestSequence reference34 = ref span39[num]; + ref QuestSequence reference34 = ref span15[4]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -275744,9 +227889,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030774u, new Vector3(-290.27246f, 17.772081f, 442.86243f), 814) { NextQuestId = new QuestId(3560) }; @@ -275759,30 +227902,24 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot6.Author = list45; - index = 4; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference35 = ref span46[num]; + num = 4; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span16 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference35 = ref span16[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list47; reference35 = obj34; - num++; - ref QuestSequence reference36 = ref span46[num]; + ref QuestSequence reference36 = ref span16[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -275790,9 +227927,8 @@ public static class AssemblyQuestLoader num2 = 2; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + Span span17 = CollectionsMarshal.AsSpan(list48); + span17[0] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { StopDistance = 7f, TargetTerritoryId = (ushort)815, @@ -275803,87 +227939,63 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - index2++; - span48[index2] = new QuestStep(EInteractionType.Interact, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); + span17[1] = new QuestStep(EInteractionType.Interact, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); obj35.Steps = list48; reference36 = obj35; - num++; - ref QuestSequence reference37 = ref span46[num]; + ref QuestSequence reference37 = ref span16[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref QuestStep reference38 = ref span49[num2]; + num2 = 3; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + Span span18 = CollectionsMarshal.AsSpan(list49); + ref QuestStep reference38 = ref span18[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010010u, new Vector3(651.8806f, -54.062744f, -594.5068f), 815); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list50; reference38 = questStep2; - num2++; - ref QuestStep reference39 = ref span49[num2]; + ref QuestStep reference39 = ref span18[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list51; reference39 = questStep3; - num2++; - ref QuestStep reference40 = ref span49[num2]; + ref QuestStep reference40 = ref span18[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010012u, new Vector3(674.5249f, -60.654602f, -566.03345f), 815); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list52; reference40 = questStep4; obj36.Steps = list49; reference37 = obj36; - num++; - ref QuestSequence reference41 = ref span46[num]; + ref QuestSequence reference41 = ref span16[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -275891,9 +228003,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030391u, new Vector3(579.9801f, -46.38523f, -684.90125f), 815); obj37.Steps = list53; reference41 = obj37; questRoot6.QuestSequence = list46; @@ -275903,30 +228013,24 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot7.Author = list54; - index = 3; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference42 = ref span55[num]; + num = 3; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span22 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference42 = ref span22[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list56; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span55[num]; + ref QuestSequence reference43 = ref span22[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -275934,27 +228038,22 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 2010499u, new Vector3(655.1765f, 57.724854f, -436.51483f), 813) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 2010499u, new Vector3(655.1765f, 57.724854f, -436.51483f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj39.Steps = list57; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span22[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -275972,16 +228071,13 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "liza"; + CollectionsMarshal.AsSpan(list59)[0] = "liza"; questRoot8.Author = list59; - index = 4; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference45 = ref span60[num]; + num = 4; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span23 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference45 = ref span23[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -275989,30 +228085,24 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027948u, new Vector3(40.42102f, 2.232896f, 261.49377f), 819); obj41.Steps = list61; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span23[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj42.Steps = list62; reference46 = obj42; - num++; - ref QuestSequence reference47 = ref span60[num]; + ref QuestSequence reference47 = ref span23[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -276020,58 +228110,43 @@ public static class AssemblyQuestLoader num2 = 12; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - ref QuestStep reference48 = ref span63[index2]; + Span span24 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference48 = ref span24[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list64; reference48 = questStep5; - index2++; - ref QuestStep reference49 = ref span63[index2]; + ref QuestStep reference49 = ref span24[1]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list65; skipConditions.StepIf = skipStepConditions; obj44.SkipConditions = skipConditions; reference49 = obj44; - index2++; - ref QuestStep reference50 = ref span63[index2]; + ref QuestStep reference50 = ref span24[2]; QuestStep obj45 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(704.28827f, 24.192482f, -17.380848f), 813) { DisableNavmesh = true @@ -276081,168 +228156,121 @@ public static class AssemblyQuestLoader num3 = 6; List list66 = new List(num3); CollectionsMarshal.SetCount(list66, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list66; skipConditions2.StepIf = skipStepConditions2; obj45.SkipConditions = skipConditions2; reference50 = obj45; - index2++; - ref QuestStep reference51 = ref span63[index2]; + ref QuestStep reference51 = ref span24[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1027339u, new Vector3(709.6819f, 24.19248f, 1.8157349f), 813); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list67; reference51 = questStep6; - index2++; - ref QuestStep reference52 = ref span63[index2]; + ref QuestStep reference52 = ref span24[4]; 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 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list68; skipConditions3.StepIf = skipStepConditions3; questStep7.SkipConditions = skipConditions3; reference52 = questStep7; - index2++; - ref QuestStep reference53 = ref span63[index2]; + ref QuestStep reference53 = ref span24[5]; QuestStep questStep8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(681.9016f, 32.510292f, -62.020554f), 813); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list69; skipConditions4.StepIf = skipStepConditions4; questStep8.SkipConditions = skipConditions4; reference53 = questStep8; - index2++; - ref QuestStep reference54 = ref span63[index2]; + ref QuestStep reference54 = ref span24[6]; 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 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list70; skipConditions5.StepIf = skipStepConditions5; questStep9.SkipConditions = skipConditions5; reference54 = questStep9; - index2++; - ref QuestStep reference55 = ref span63[index2]; + ref QuestStep reference55 = ref span24[7]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 1027420u, new Vector3(702.38794f, 21.798542f, -81.34589f), 813) { StopDistance = 7f }; - 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); + 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); obj46.CompletionQuestVariablesFlags = list71; reference55 = obj46; - index2++; - span63[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(735.5528f, 21.146883f, -88.66971f), 813) + span24[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(735.5528f, 21.146883f, -88.66971f), 813) { DisableNavmesh = true }; - 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); + 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); obj43.Steps = list63; reference47 = obj43; - num++; - ref QuestSequence reference56 = ref span60[num]; + ref QuestSequence reference56 = ref span23[3]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { JumpDestination = new JumpDestination { @@ -276250,8 +228278,7 @@ public static class AssemblyQuestLoader StopDistance = 0.25f } }; - num2++; - span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813); + span33[1] = new QuestStep(EInteractionType.CompleteQuest, 1028280u, new Vector3(784.0542f, 21.414852f, -9.414856f), 813); obj47.Steps = list72; reference56 = obj47; questRoot8.QuestSequence = list60; @@ -276261,16 +228288,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; questRoot9.Author = list73; - index = 3; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference57 = ref span74[num]; + num = 3; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span34 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference57 = ref span34[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -276278,23 +228302,19 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813); obj48.Steps = list75; reference57 = obj48; - num++; - ref QuestSequence reference58 = ref span74[num]; + ref QuestSequence reference58 = ref span34[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference59 = ref span76[num2]; + num2 = 6; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span35 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference59 = ref span35[0]; QuestStep obj50 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-724.9727f, 54.379677f, -289.8897f), 813) { Comment = "Tower Bottom" @@ -276304,25 +228324,18 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list77; skipConditions6.StepIf = skipStepConditions6; obj50.SkipConditions = skipConditions6; reference59 = obj50; - num2++; - ref QuestStep reference60 = ref span76[num2]; + ref QuestStep reference60 = ref span35[1]; QuestStep obj51 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-757.78326f, 97.68395f, -372.66458f), 813) { DisableNavmesh = true, @@ -276330,28 +228343,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list78; skipConditions7.StepIf = skipStepConditions7; obj51.SkipConditions = skipConditions7; reference60 = obj51; - num2++; - ref QuestStep reference61 = ref span76[num2]; + ref QuestStep reference61 = ref span35[2]; QuestStep obj52 = new QuestStep(EInteractionType.UseItem, 2010618u, new Vector3(-792.1111f, 115.15979f, -346.4256f), 813) { ItemId = 2002831u @@ -276359,47 +228365,33 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - 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); + 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); obj52.CompletionQuestVariablesFlags = list79; reference61 = obj52; - num2++; - ref QuestStep reference62 = ref span76[num2]; + ref QuestStep reference62 = ref span35[3]; QuestStep obj53 = new QuestStep(EInteractionType.UseItem, 2010619u, new Vector3(-798.27576f, 115.15979f, -320.05798f), 813) { ItemId = 2002831u }; - 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); + 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); obj53.CompletionQuestVariablesFlags = list80; reference62 = obj53; - num2++; - ref QuestStep reference63 = ref span76[num2]; + ref QuestStep reference63 = ref span35[4]; QuestStep obj54 = new QuestStep(EInteractionType.UseItem, 2010613u, new Vector3(-794.73566f, 115.15979f, -310.32275f), 813) { ItemId = 2002831u @@ -276407,49 +228399,35 @@ public static class AssemblyQuestLoader num3 = 6; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - 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); + 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); obj54.CompletionQuestVariablesFlags = list81; reference63 = obj54; - num2++; - ref QuestStep reference64 = ref span76[num2]; + ref QuestStep reference64 = ref span35[5]; QuestStep obj55 = new QuestStep(EInteractionType.UseItem, 2010620u, new Vector3(-789.05927f, 146.77649f, -344.1673f), 813) { ItemId = 2002831u }; - 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); + 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); obj55.CompletionQuestVariablesFlags = list82; reference64 = obj55; obj49.Steps = list76; reference58 = obj49; - num++; - ref QuestSequence reference65 = ref span74[num]; + ref QuestSequence reference65 = ref span34[2]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -276457,9 +228435,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; @@ -276472,30 +228448,24 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "liza"; + CollectionsMarshal.AsSpan(list84)[0] = "liza"; questRoot10.Author = list84; - index = 5; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference66 = ref span85[num]; + num = 5; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span42 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference66 = ref span42[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj57.Steps = list86; reference66 = obj57; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span42[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -276503,27 +228473,21 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1031214u, new Vector3(-425.2232f, 7.8791666f, -120.83624f), 813); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1031214u, new Vector3(-425.2232f, 7.8791666f, -120.83624f), 813); obj58.Steps = list87; reference67 = obj58; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span42[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj59.Steps = list88; reference68 = obj59; - num++; - ref QuestSequence reference69 = ref span85[num]; + ref QuestSequence reference69 = ref span42[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -276531,26 +228495,21 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.UseItem, 1031213u, new Vector3(-465.1103f, 1.231928f, 77.927734f), 813) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.UseItem, 1031213u, new Vector3(-465.1103f, 1.231928f, 77.927734f), 813) { ItemId = 2002832u }; obj60.Steps = list89; reference69 = obj60; - num++; - ref QuestSequence reference70 = ref span85[num]; + ref QuestSequence reference70 = ref span42[4]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; @@ -276563,16 +228522,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot11.Author = list91; - index = 4; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference71 = ref span92[num]; + num = 4; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span43 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference71 = ref span43[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -276580,28 +228536,23 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027419u, new Vector3(-700.7401f, 61.993748f, -353.62787f), 813); obj62.Steps = list93; reference71 = obj62; - num++; - ref QuestSequence reference72 = ref span92[num]; + ref QuestSequence reference72 = ref span43[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818230u }; - num2++; - ref QuestStep reference73 = ref span94[num2]; + ref QuestStep reference73 = ref span44[1]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813) { Mount = true @@ -276609,9 +228560,7 @@ public static class AssemblyQuestLoader num3 = 1; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - Span span95 = CollectionsMarshal.AsSpan(list95); - num4 = 0; - span95[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZC003_03386_Q1_000_000"), @@ -276621,8 +228570,7 @@ public static class AssemblyQuestLoader reference73 = obj64; obj63.Steps = list94; reference72 = obj63; - num++; - ref QuestSequence reference74 = ref span92[num]; + ref QuestSequence reference74 = ref span43[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -276630,107 +228578,79 @@ public static class AssemblyQuestLoader num2 = 6; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.60991f, 28.47209f, -130.60031f), 813) + Span span45 = CollectionsMarshal.AsSpan(list96); + span45[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.60991f, 28.47209f, -130.60031f), 813) { Mount = true }; - index2++; - span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.76884f, 32.30582f, -122.91172f), 813) + span45[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-159.76884f, 32.30582f, -122.91172f), 813) { DisableNavmesh = true }; - index2++; - ref QuestStep reference75 = ref span96[index2]; + ref QuestStep reference75 = ref span45[2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1028317u, new Vector3(-157.64093f, 49.13476f, -137.3465f), 813); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list97; reference75 = questStep10; - index2++; - span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.64954f, 5.779213f, -158.39209f), 813) + span45[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.64954f, 5.779213f, -158.39209f), 813) { DisableNavmesh = true, Mount = true }; - index2++; - ref QuestStep reference76 = ref span96[index2]; + ref QuestStep reference76 = ref span45[4]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list98; reference76 = questStep11; - index2++; - ref QuestStep reference77 = ref span96[index2]; + ref QuestStep reference77 = ref span45[5]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1031559u, new Vector3(-194.17108f, 5.761844f, -153.79572f), 813); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list99; reference77 = questStep12; obj65.Steps = list96; reference74 = obj65; - num++; - ref QuestSequence reference78 = ref span92[num]; + ref QuestSequence reference78 = ref span43[3]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span100[num2] = new QuestStep(EInteractionType.CompleteQuest, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813); + span49[2] = new QuestStep(EInteractionType.CompleteQuest, 1027353u, new Vector3(-146.31879f, 28.47206f, -128.83197f), 813); obj66.Steps = list100; reference78 = obj66; questRoot11.QuestSequence = list92; @@ -276740,16 +228660,13 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot12.Author = list101; - index = 4; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference79 = ref span102[num]; + num = 4; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span50 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference79 = ref span50[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -276757,27 +228674,21 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816); + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030266u, new Vector3(-367.66614f, 66.863594f, 557.1526f), 816); obj67.Steps = list103; reference79 = obj67; - num++; - ref QuestSequence reference80 = ref span102[num]; + ref QuestSequence reference80 = ref span50[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj68.Steps = list104; reference80 = obj68; - num++; - ref QuestSequence reference81 = ref span102[num]; + ref QuestSequence reference81 = ref span50[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -276785,9 +228696,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Say, 2009997u, new Vector3(-40.116028f, 24.063354f, 739.25366f), 816) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Say, 2009997u, new Vector3(-40.116028f, 24.063354f, 739.25366f), 816) { ChatMessage = new ChatMessage { @@ -276796,18 +228705,15 @@ public static class AssemblyQuestLoader }; obj69.Steps = list105; reference81 = obj69; - num++; - ref QuestSequence reference82 = ref span102[num]; + ref QuestSequence reference82 = ref span50[3]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; @@ -276820,16 +228726,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot13.Author = list107; - index = 5; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference83 = ref span108[num]; + num = 5; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span51 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference83 = ref span51[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -276837,111 +228740,78 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj71.Steps = list109; reference83 = obj71; - num++; - ref QuestSequence reference84 = ref span108[num]; + ref QuestSequence reference84 = ref span51[1]; QuestSequence obj72 = new QuestSequence { Sequence = 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]; + 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]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list111; reference85 = questStep13; - num2++; - ref QuestStep reference86 = ref span110[num2]; + ref QuestStep reference86 = ref span52[2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2010161u, new Vector3(-341.02393f, -34.62274f, -211.4748f), 816); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list112; reference86 = questStep14; - num2++; - ref QuestStep reference87 = ref span110[num2]; + ref QuestStep reference87 = ref span52[3]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list113; reference87 = questStep15; - num2++; - ref QuestStep reference88 = ref span110[num2]; + ref QuestStep reference88 = ref span52[4]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2010158u, new Vector3(-347.43274f, -48.264343f, -120.3479f), 816); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list114; reference88 = questStep16; obj72.Steps = list110; reference84 = obj72; - num++; - ref QuestSequence reference89 = ref span108[num]; + ref QuestSequence reference89 = ref span51[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -276949,34 +228819,29 @@ public static class AssemblyQuestLoader num2 = 3; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.WalkTo, 2010158u, new Vector3(-347.43274f, 0f, -120.3479f), 816) + Span span57 = CollectionsMarshal.AsSpan(list115); + span57[0] = new QuestStep(EInteractionType.WalkTo, 2010158u, new Vector3(-347.43274f, 0f, -120.3479f), 816) { DisableNavmesh = true, Mount = true }; - index2++; - span115[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.7658f, 0.09470785f, -86.849434f), 816) + span57[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.7658f, 0.09470785f, -86.849434f), 816) { DisableNavmesh = true }; - index2++; - span115[index2] = new QuestStep(EInteractionType.Interact, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + span57[2] = new QuestStep(EInteractionType.Interact, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj73.Steps = list115; reference89 = obj73; - num++; - ref QuestSequence reference90 = ref span108[num]; + ref QuestSequence reference90 = ref span51[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list116 = new List(index2); - CollectionsMarshal.SetCount(list116, index2); - Span span116 = CollectionsMarshal.AsSpan(list116); - num2 = 0; - ref QuestStep reference91 = ref span116[num2]; + num2 = 3; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + Span span58 = CollectionsMarshal.AsSpan(list116); + ref QuestStep reference91 = ref span58[0]; QuestStep obj75 = new QuestStep(EInteractionType.UseItem, 2010163u, new Vector3(-659.9985f, 38.864624f, -227.25269f), 816) { ItemId = 2002637u @@ -276984,47 +228849,33 @@ public static class AssemblyQuestLoader num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - 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); + 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); obj75.CompletionQuestVariablesFlags = list117; reference91 = obj75; - num2++; - ref QuestStep reference92 = ref span116[num2]; + ref QuestStep reference92 = ref span58[1]; QuestStep obj76 = new QuestStep(EInteractionType.UseItem, 2010164u, new Vector3(-664.02686f, 40.66516f, -225.08588f), 816) { ItemId = 2002637u }; - 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); + 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); obj76.CompletionQuestVariablesFlags = list118; reference92 = obj76; - num2++; - ref QuestStep reference93 = ref span116[num2]; + ref QuestStep reference93 = ref span58[2]; QuestStep obj77 = new QuestStep(EInteractionType.UseItem, 2010162u, new Vector3(-667.6585f, 42.74048f, -228.62598f), 816) { ItemId = 2002637u @@ -277032,25 +228883,18 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - 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); + 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); obj77.CompletionQuestVariablesFlags = list119; reference93 = obj77; obj74.Steps = list116; reference90 = obj74; - num++; - ref QuestSequence reference94 = ref span108[num]; + ref QuestSequence reference94 = ref span51[4]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -277058,9 +228902,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030618u, new Vector3(-613.39746f, 36.54754f, -215.41168f), 816); obj78.Steps = list120; reference94 = obj78; questRoot13.QuestSequence = list108; @@ -277074,16 +228916,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -277091,88 +228930,63 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2010363u, new Vector3(-621.8815f, 37.338745f, -234.33282f), 816); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -277180,30 +228994,24 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1030839u, new Vector3(-628.1377f, 35.861557f, -238.20862f), 816); + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1030839u, new Vector3(-628.1377f, 35.861557f, -238.20862f), 816); obj3.Steps = list8; reference6 = obj3; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj4.Steps = list9; reference7 = obj4; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -277211,9 +229019,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030838u, new Vector3(-285.90833f, 40.324036f, 444.41882f), 816); obj5.Steps = list10; reference8 = obj5; questRoot.QuestSequence = list2; @@ -277223,30 +229029,24 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list11)[0] = "liza"; questRoot2.Author = list11; - index = 5; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 5; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span6 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span6[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list13; reference9 = obj6; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span6[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -277254,27 +229054,21 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 2010481u, new Vector3(238.7273f, 72.95337f, -723.72015f), 816); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 2010481u, new Vector3(238.7273f, 72.95337f, -723.72015f), 816); obj7.Steps = list14; reference10 = obj7; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span6[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj8.Steps = list15; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span12[num]; + ref QuestSequence reference12 = ref span6[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -277282,30 +229076,23 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 2010483u, new Vector3(34.1344f, 39.902344f, -622.18665f), 816); + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 2010483u, new Vector3(34.1344f, 39.902344f, -622.18665f), 816); obj9.Steps = list16; reference12 = obj9; - num++; - ref QuestSequence reference13 = ref span12[num]; + ref QuestSequence reference13 = ref span6[4]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list17 = new List(index2); - CollectionsMarshal.SetCount(list17, index2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref QuestStep reference14 = ref span17[num2]; + num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 1031025u, new Vector3(-79.75891f, 37.968338f, -531.8532f), 816); - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new DialogueChoice + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZD101_03427_Q1_000_000"), @@ -277322,16 +229109,13 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; questRoot3.Author = list19; - index = 4; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference15 = ref span20[num]; + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span7 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference15 = ref span7[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -277339,23 +229123,18 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029023u, new Vector3(-131.36493f, -16.477911f, 316.3042f), 817); obj11.Steps = list21; reference15 = obj11; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span7[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -277364,8 +229143,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list22; reference16 = obj12; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span7[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -277373,23 +229151,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 2009776u, new Vector3(-375.38727f, 10.0251465f, 451.65173f), 817); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2009776u, new Vector3(-375.38727f, 10.0251465f, 451.65173f), 817); obj13.Steps = list23; reference17 = obj13; - num++; - ref QuestSequence reference18 = ref span20[num]; + ref QuestSequence reference18 = ref span7[3]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj14.Steps = list24; reference18 = obj14; questRoot3.QuestSequence = list20; @@ -277403,16 +229176,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -277420,88 +229190,63 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list5; reference3 = questStep; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1031381u, new Vector3(558.64795f, 27.378386f, 152.42236f), 817); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list6; reference4 = questStep2; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list7; reference5 = questStep3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -277509,9 +229254,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027736u, new Vector3(396.38354f, 20.422523f, -179.12573f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -277524,30 +229267,24 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; questRoot2.Author = list9; - index = 5; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 5; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span6 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span6[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list11; reference7 = obj4; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span6[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -277555,42 +229292,34 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817); obj5.Steps = list12; reference8 = obj5; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span6[2]; QuestSequence obj6 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list13 = new List(index2); - CollectionsMarshal.SetCount(list13, index2); - Span span13 = CollectionsMarshal.AsSpan(list13); - num2 = 0; - ref QuestStep reference10 = ref span13[num2]; + num2 = 1; + List list13 = new List(num2); + CollectionsMarshal.SetCount(list13, num2); + ref QuestStep reference10 = ref CollectionsMarshal.AsSpan(list13)[0]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.35954f, -20f, -483.02176f), 817) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + Span span7 = CollectionsMarshal.AsSpan(list14); + span7[0] = 11163u; + span7[1] = 11164u; obj7.KillEnemyDataIds = list14; reference10 = obj7; obj6.Steps = list13; reference9 = obj6; - num++; - ref QuestSequence reference11 = ref span10[num]; + ref QuestSequence reference11 = ref span6[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -277598,26 +229327,21 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { StopDistance = 7f }; obj8.Steps = list15; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span10[num]; + ref QuestSequence reference12 = ref span6[4]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; @@ -277630,16 +229354,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 3; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 3; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span8 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span8[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -277647,23 +229368,19 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817); obj10.Steps = list19; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span8[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 4; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span9 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span9[0]; QuestStep obj12 = new QuestStep(EInteractionType.Interact, 1031012u, new Vector3(395.01025f, 20.422523f, -211.81049f), 817) { Fly = true @@ -277671,92 +229388,64 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - 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); + 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); obj12.CompletionQuestVariablesFlags = list21; reference15 = obj12; - num2++; - ref QuestStep reference16 = ref span20[num2]; + ref QuestStep reference16 = ref span9[1]; QuestStep questStep4 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(432.72134f, 34.13806f, -146.49078f), 817); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list22; skipConditions.StepIf = skipStepConditions; questStep4.SkipConditions = skipConditions; reference16 = questStep4; - num2++; - ref QuestStep reference17 = ref span20[num2]; + ref QuestStep reference17 = ref span9[2]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list23; reference17 = questStep5; - num2++; - ref QuestStep reference18 = ref span20[num2]; + ref QuestStep reference18 = ref span9[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1031151u, new Vector3(401.20544f, 33.63778f, -104.32593f), 817); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list24; reference18 = questStep6; obj11.Steps = list20; reference14 = obj11; - num++; - ref QuestSequence reference19 = ref span18[num]; + ref QuestSequence reference19 = ref span8[2]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -277764,9 +229453,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3480) @@ -277780,30 +229467,24 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; questRoot4.Author = list26; - index = 10; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 10; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span14 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span14[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj14.Steps = list28; reference20 = obj14; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span14[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -277811,26 +229492,21 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) { Fly = true }; obj15.Steps = list29; reference21 = obj15; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span14[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num2 = 0; - ref QuestStep reference23 = ref span30[num2]; + num2 = 1; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(591.2435f, 22.702421f, 85.20056f), 817) { Fly = true, @@ -277839,38 +229515,29 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num4 = 0; - ref ComplexCombatData reference24 = ref span31[num4]; + ref ComplexCombatData reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; ComplexCombatData obj18 = new ComplexCombatData { DataId = 10285u, MinimumKillCount = 3u }; - 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; + 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; obj18.CompletionQuestVariablesFlags = list32; reference24 = obj18; obj17.ComplexCombatData = list31; reference23 = obj17; obj16.Steps = list30; reference22 = obj16; - num++; - ref QuestSequence reference25 = ref span27[num]; + ref QuestSequence reference25 = ref span14[3]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -277878,33 +229545,27 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1031007u, new Vector3(566.27747f, 26.783415f, 133.77576f), 817) { Fly = true }; obj19.Steps = list33; reference25 = obj19; - num++; - ref QuestSequence reference26 = ref span27[num]; + ref QuestSequence reference26 = ref span14[4]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj20.Steps = list34; reference26 = obj20; - num++; - ref QuestSequence reference27 = ref span27[num]; + ref QuestSequence reference27 = ref span14[5]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -277912,33 +229573,25 @@ public static class AssemblyQuestLoader num2 = 3; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - ref QuestStep reference28 = ref span35[index2]; + Span span16 = CollectionsMarshal.AsSpan(list35); + ref QuestStep reference28 = ref span16[0]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 2010451u, new Vector3(265.03394f, 11.306824f, 73.899414f), 817) { Fly = true }; - 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); + 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); obj22.CompletionQuestVariablesFlags = list36; reference28 = obj22; - index2++; - ref QuestStep reference29 = ref span35[index2]; + ref QuestStep reference29 = ref span16[1]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 2010450u, new Vector3(267.20068f, 11.184814f, 30.502686f), 817) { StopDistance = 0.5f, @@ -277947,67 +229600,50 @@ public static class AssemblyQuestLoader num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - 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); + 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); obj23.CompletionQuestVariablesFlags = list37; reference29 = obj23; - index2++; - ref QuestStep reference30 = ref span35[index2]; + ref QuestStep reference30 = ref span16[2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 2010449u, new Vector3(242.14539f, 21.86615f, -20.004639f), 817) { StopDistance = 0.5f, Fly = true }; - 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); + 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); obj24.CompletionQuestVariablesFlags = list38; reference30 = obj24; obj21.Steps = list35; reference27 = obj21; - num++; - ref QuestSequence reference31 = ref span27[num]; + ref QuestSequence reference31 = ref span14[6]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj25.Steps = list39; reference31 = obj25; - num++; - ref QuestSequence reference32 = ref span27[num]; + ref QuestSequence reference32 = ref span14[7]; QuestSequence obj26 = new QuestSequence { Sequence = 7 @@ -278015,9 +229651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref QuestStep reference33 = ref span40[index2]; + ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list40)[0]; QuestStep obj27 = new QuestStep(EInteractionType.Combat, null, new Vector3(441.3478f, 11.8605385f, 172.98285f), 817) { StopDistance = 0.5f, @@ -278026,29 +229660,23 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - num4 = 0; - span41[num4] = 11165u; + CollectionsMarshal.AsSpan(list41)[0] = 11165u; obj27.KillEnemyDataIds = list41; reference33 = obj27; obj26.Steps = list40; reference32 = obj26; - num++; - ref QuestSequence reference34 = ref span27[num]; + ref QuestSequence reference34 = ref span14[8]; QuestSequence obj28 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj28.Steps = list42; reference34 = obj28; - num++; - ref QuestSequence reference35 = ref span27[num]; + ref QuestSequence reference35 = ref span14[9]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -278056,9 +229684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, NextQuestId = new QuestId(3481) @@ -278072,33 +229698,27 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot5.Author = list44; - index = 5; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference36 = ref span45[num]; + num = 5; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span20 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference36 = ref span20[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj30.Steps = list46; reference36 = obj30; - num++; - ref QuestSequence reference37 = ref span45[num]; + ref QuestSequence reference37 = ref span20[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -278106,43 +229726,35 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { Fly = true }; obj31.Steps = list47; reference37 = obj31; - num++; - ref QuestSequence reference38 = ref span45[num]; + ref QuestSequence reference38 = ref span20[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num2 = 0; - ref QuestStep reference39 = ref span48[num2]; + num2 = 1; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.50095f, -20f, -481.85556f), 817) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list49 = new List(num4); - CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = 11166u; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = 11166u; obj33.KillEnemyDataIds = list49; reference39 = obj33; obj32.Steps = list48; reference38 = obj32; - num++; - ref QuestSequence reference40 = ref span45[num]; + ref QuestSequence reference40 = ref span20[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 @@ -278150,26 +229762,21 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1031001u, new Vector3(167.71179f, -20f, -471.00024f), 817) { StopDistance = 5f }; obj34.Steps = list50; reference40 = obj34; - num++; - ref QuestSequence reference41 = ref span45[num]; + ref QuestSequence reference41 = ref span20[4]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3482) @@ -278183,16 +229790,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot6.Author = list52; - index = 8; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference42 = ref span53[num]; + num = 8; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span21 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference42 = ref span21[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -278200,33 +229804,27 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031152u, new Vector3(465.7511f, 18.97871f, -61.08191f), 817) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031152u, new Vector3(465.7511f, 18.97871f, -61.08191f), 817) { Fly = true }; obj36.Steps = list54; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span21[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj37.Steps = list55; reference43 = obj37; - num++; - ref QuestSequence reference44 = ref span53[num]; + ref QuestSequence reference44 = ref span21[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -278234,9 +229832,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref QuestStep reference45 = ref span56[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(180.39362f, -26.65495f, 784.1922f), 817) { StopDistance = 0.5f, @@ -278245,32 +229841,26 @@ public static class AssemblyQuestLoader num3 = 1; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num4 = 0; - span57[num4] = 11167u; + CollectionsMarshal.AsSpan(list57)[0] = 11167u; obj39.KillEnemyDataIds = list57; reference45 = obj39; obj38.Steps = list56; reference44 = obj38; - num++; - ref QuestSequence reference46 = ref span53[num]; + ref QuestSequence reference46 = ref span21[3]; QuestSequence obj40 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj40.Steps = list58; reference46 = obj40; - num++; - ref QuestSequence reference47 = ref span53[num]; + ref QuestSequence reference47 = ref span21[4]; QuestSequence obj41 = new QuestSequence { Sequence = 4 @@ -278278,51 +229868,40 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj41.Steps = list59; reference47 = obj41; - num++; - ref QuestSequence reference48 = ref span53[num]; + ref QuestSequence reference48 = ref span21[5]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - index2 = 4; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference49 = ref span60[num2]; + num2 = 4; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + Span span22 = CollectionsMarshal.AsSpan(list60); + ref QuestStep reference49 = ref span22[0]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2010458u, new Vector3(101.15198f, -18.783936f, -672.2057f), 817) { Fly = true }; - 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); + 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); obj43.CompletionQuestVariablesFlags = list61; reference49 = obj43; - num2++; - ref QuestStep reference50 = ref span60[num2]; + ref QuestStep reference50 = ref span22[1]; QuestStep obj44 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(216.41074f, 11.20001f, -712.12494f), 817) { Fly = true @@ -278332,69 +229911,48 @@ public static class AssemblyQuestLoader num3 = 6; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list62; skipConditions2.StepIf = skipStepConditions2; obj44.SkipConditions = skipConditions2; reference50 = obj44; - num2++; - ref QuestStep reference51 = ref span60[num2]; + ref QuestStep reference51 = ref span22[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2010457u, new Vector3(221.30151f, 11.184814f, -721.24817f), 817); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list63; reference51 = questStep7; - num2++; - ref QuestStep reference52 = ref span60[num2]; + ref QuestStep reference52 = ref span22[3]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list64; reference52 = questStep8; obj42.Steps = list60; reference48 = obj42; - num++; - ref QuestSequence reference53 = ref span53[num]; + ref QuestSequence reference53 = ref span21[6]; QuestSequence obj45 = new QuestSequence { Sequence = 6 @@ -278402,26 +229960,21 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1031164u, new Vector3(169.05469f, -19.903002f, -530.2052f), 817) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1031164u, new Vector3(169.05469f, -19.903002f, -530.2052f), 817) { Fly = true }; obj45.Steps = list65; reference53 = obj45; - num++; - ref QuestSequence reference54 = ref span53[num]; + ref QuestSequence reference54 = ref span21[7]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -278439,16 +229992,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -278456,23 +230006,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, null, new Vector3(-51.720833f, -17.25763f, 37.377193f), 815) { StopDistance = 1f, @@ -278481,15 +230026,12 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 11103u; + CollectionsMarshal.AsSpan(list5)[0] = 11103u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -278497,43 +230039,35 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1030980u, new Vector3(-53.75763f, -17.25763f, 35.416138f), 815) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1030980u, new Vector3(-53.75763f, -17.25763f, 35.416138f), 815) { StopDistance = 5f }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list7 = new List(index2); - CollectionsMarshal.SetCount(list7, index2); - Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - ref QuestStep reference6 = ref span7[num2]; + num2 = 1; + List list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); + ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, null, new Vector3(56.450626f, -30.337545f, 103.22127f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list8 = new List(index3); - CollectionsMarshal.SetCount(list8, index3); - Span span8 = CollectionsMarshal.AsSpan(list8); - num3 = 0; - span8[num3] = 11103u; + num3 = 1; + List list8 = new List(num3); + CollectionsMarshal.SetCount(list8, num3); + CollectionsMarshal.AsSpan(list8)[0] = 11103u; obj6.KillEnemyDataIds = list8; reference6 = obj6; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[4]; QuestSequence obj7 = new QuestSequence { Sequence = 4 @@ -278541,26 +230075,21 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1030981u, new Vector3(56.443115f, -30.173006f, 101.76245f), 815) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1030981u, new Vector3(56.443115f, -30.173006f, 101.76245f), 815) { StopDistance = 5f }; obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[5]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj8.Steps = list10; reference8 = obj8; questRoot.QuestSequence = list2; @@ -278570,16 +230099,13 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list11)[0] = "liza"; questRoot2.Author = list11; - index = 3; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 3; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span2 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span2[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -278587,27 +230113,21 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815); + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span2[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span2[2]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -278615,14 +230135,12 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815) + Span span3 = CollectionsMarshal.AsSpan(list15); + span3[0] = new QuestStep(EInteractionType.AcceptQuest, 1030979u, new Vector3(-424.61285f, 31.900826f, -226.64227f), 815) { PickUpQuestId = new QuestId(3503) }; - index2++; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030807u, new Vector3(-336.6903f, 19.24816f, 75.913574f), 815); + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1030807u, new Vector3(-336.6903f, 19.24816f, 75.913574f), 815); obj11.Steps = list15; reference11 = obj11; questRoot2.QuestSequence = list12; @@ -278632,30 +230150,24 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 4; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 4; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span4 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span4[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span4[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -278663,9 +230175,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030456u, new Vector3(63.279175f, -4.0096626f, 145.28113f), 820) { AethernetShortcut = new AethernetShortcut { @@ -278675,18 +230185,15 @@ public static class AssemblyQuestLoader }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span4[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -278696,8 +230203,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span17[num]; + ref QuestSequence reference15 = ref span4[3]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -278705,9 +230211,7 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030457u, new Vector3(63.370728f, -4.158061f, 143.93835f), 820) + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030457u, new Vector3(63.370728f, -4.158061f, 143.93835f), 820) { AethernetShortcut = new AethernetShortcut { @@ -278725,30 +230229,24 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot4.Author = list22; - index = 4; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 4; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span5 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span5[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span5[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -278756,9 +230254,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - ref QuestStep reference18 = ref span25[index2]; + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list25)[0]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(383.55106f, 4.5417395f, 602.9981f), 814) { StopDistance = 0.5f, @@ -278769,32 +230265,26 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span26 = CollectionsMarshal.AsSpan(list26); - index3 = 0; - span26[index3] = 11087u; + CollectionsMarshal.AsSpan(list26)[0] = 11087u; obj18.KillEnemyDataIds = list26; reference18 = obj18; obj17.Steps = list25; reference17 = obj17; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span5[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span23[num]; + ref QuestSequence reference20 = ref span5[3]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -278802,9 +230292,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030463u, new Vector3(-14.847046f, -6.9869757f, -124.4068f), 820) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030463u, new Vector3(-14.847046f, -6.9869757f, -124.4068f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -278822,30 +230310,24 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "liza"; + CollectionsMarshal.AsSpan(list29)[0] = "liza"; questRoot5.Author = list29; - index = 3; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 3; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span6 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span6[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj21.Steps = list31; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span30[num]; + ref QuestSequence reference22 = ref span6[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -278853,54 +230335,39 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference23 = ref span32[index2]; + Span span7 = CollectionsMarshal.AsSpan(list32); + ref QuestStep reference23 = ref span7[0]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1027606u, new Vector3(-50.247986f, -4.820967f, -94.65173f), 820) { StopDistance = 7f }; - 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); + 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); obj23.CompletionQuestVariablesFlags = list33; reference23 = obj23; - index2++; - ref QuestStep reference24 = ref span32[index2]; + ref QuestStep reference24 = ref span7[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list34; reference24 = questStep; - index2++; - ref QuestStep reference25 = ref span32[index2]; + ref QuestStep reference25 = ref span7[2]; QuestStep obj24 = new QuestStep(EInteractionType.Interact, 1027604u, new Vector3(76.3103f, -8.115f, -46.219604f), 820) { AethernetShortcut = new AethernetShortcut @@ -278909,45 +230376,34 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - 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); + 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); obj24.CompletionQuestVariablesFlags = list35; reference25 = obj24; obj22.Steps = list32; reference22 = obj22; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span6[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference27 = ref span36[num2]; + num2 = 1; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; 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); - Span span37 = CollectionsMarshal.AsSpan(list37); - index3 = 0; - span37[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH008_03518_Q1_000_000"), @@ -278964,16 +230420,13 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "liza"; + CollectionsMarshal.AsSpan(list38)[0] = "liza"; questRoot6.Author = list38; - index = 3; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference28 = ref span39[num]; + num = 3; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span11 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference28 = ref span11[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -278981,23 +230434,19 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820); obj26.Steps = list40; reference28 = obj26; - num++; - ref QuestSequence reference29 = ref span39[num]; + ref QuestSequence reference29 = ref span11[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list41 = new List(index2); - CollectionsMarshal.SetCount(list41, index2); - Span span41 = CollectionsMarshal.AsSpan(list41); - num2 = 0; - ref QuestStep reference30 = ref span41[num2]; + num2 = 3; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + Span span12 = CollectionsMarshal.AsSpan(list41); + ref QuestStep reference30 = ref span12[0]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2010114u, new Vector3(81.19324f, -10.421997f, 48.8136f), 820) { AethernetShortcut = new AethernetShortcut @@ -279006,70 +230455,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreSoutheastDerelict } }; - 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); + 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); obj28.CompletionQuestVariablesFlags = list42; reference30 = obj28; - num2++; - ref QuestStep reference31 = ref span41[num2]; + ref QuestStep reference31 = ref span12[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list43; reference31 = questStep3; - num2++; - ref QuestStep reference32 = ref span41[num2]; + ref QuestStep reference32 = ref span12[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010115u, new Vector3(-30.167114f, -11.917358f, 106.43164f), 820); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list44; reference32 = questStep4; obj27.Steps = list41; reference29 = obj27; - num++; - ref QuestSequence reference33 = ref span39[num]; + ref QuestSequence reference33 = ref span11[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -279077,9 +230505,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027550u, new Vector3(52.536743f, 82.8351f, 13.595764f), 820) { AethernetShortcut = new AethernetShortcut { @@ -279096,30 +230522,24 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot7.Author = list46; - index = 3; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference34 = ref span47[num]; + num = 3; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span16 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference34 = ref span16[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj30.Steps = list48; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span47[num]; + ref QuestSequence reference35 = ref span16[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -279127,55 +230547,40 @@ public static class AssemblyQuestLoader num2 = 3; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - ref QuestStep reference36 = ref span49[index2]; + Span span17 = CollectionsMarshal.AsSpan(list49); + ref QuestStep reference36 = ref span17[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list50; reference36 = questStep5; - index2++; - ref QuestStep reference37 = ref span49[index2]; + ref QuestStep reference37 = ref span17[1]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1027554u, new Vector3(27.54248f, 82.78693f, 32.303345f), 820) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Eulmore }; - 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); + 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); obj32.CompletionQuestVariablesFlags = list51; reference37 = obj32; - index2++; - ref QuestStep reference38 = ref span49[index2]; + ref QuestStep reference38 = ref span17[2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1027593u, new Vector3(78.11096f, -10.682121f, 73.28906f), 820) { AethernetShortcut = new AethernetShortcut @@ -279187,42 +230592,31 @@ public static class AssemblyQuestLoader num3 = 6; List list52 = new List(num3); CollectionsMarshal.SetCount(list52, num3); - 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); + 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); obj33.CompletionQuestVariablesFlags = list52; reference38 = obj33; obj31.Steps = list49; reference35 = obj31; - num++; - ref QuestSequence reference39 = ref span47[num]; + ref QuestSequence reference39 = ref span16[2]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list53 = new List(index2); - CollectionsMarshal.SetCount(list53, index2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num2 = 0; - ref QuestStep reference40 = ref span53[num2]; + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list53)[0]; QuestStep questStep6 = new QuestStep(EInteractionType.CompleteQuest, 1030465u, new Vector3(19.272095f, 36f, -4.409851f), 820); - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = new DialogueChoice + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH010_03520_Q1_000_000"), @@ -279239,16 +230633,13 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot8.Author = list55; - index = 3; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference41 = ref span56[num]; + num = 3; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span21 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference41 = ref span21[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -279256,23 +230647,18 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820); obj35.Steps = list57; reference41 = obj35; - num++; - ref QuestSequence reference42 = ref span56[num]; + ref QuestSequence reference42 = ref span21[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -279282,8 +230668,7 @@ public static class AssemblyQuestLoader }; obj36.Steps = list58; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span56[num]; + ref QuestSequence reference43 = ref span21[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -279291,9 +230676,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030467u, new Vector3(-4.348877f, 6f, -30.319702f), 820) { AethernetShortcut = new AethernetShortcut { @@ -279310,30 +230693,24 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "liza"; + CollectionsMarshal.AsSpan(list60)[0] = "liza"; questRoot9.Author = list60; - index = 3; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference44 = ref span61[num]; + num = 3; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span22 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference44 = ref span22[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list62; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span61[num]; + ref QuestSequence reference45 = ref span22[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -279341,72 +230718,50 @@ public static class AssemblyQuestLoader num2 = 4; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - ref QuestStep reference46 = ref span63[index2]; + Span span23 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference46 = ref span23[0]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list64; reference46 = questStep7; - index2++; - ref QuestStep reference47 = ref span63[index2]; + ref QuestStep reference47 = ref span23[1]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1030470u, new Vector3(98.039185f, -17.955051f, -77.10382f), 820); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list65; reference47 = questStep8; - index2++; - ref QuestStep reference48 = ref span63[index2]; + ref QuestStep reference48 = ref span23[2]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list66; reference48 = questStep9; - index2++; - ref QuestStep reference49 = ref span63[index2]; + ref QuestStep reference49 = ref span23[3]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1030469u, new Vector3(-112.16907f, -14.506645f, -49.515564f), 820) { AethernetShortcut = new AethernetShortcut @@ -279415,38 +230770,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreNightsoilPots } }; - 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); + 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); obj40.CompletionQuestVariablesFlags = list67; reference49 = obj40; obj39.Steps = list63; reference45 = obj39; - num++; - ref QuestSequence reference50 = ref span61[num]; + ref QuestSequence reference50 = ref span22[2]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj41.Steps = list68; reference50 = obj41; questRoot9.QuestSequence = list61; @@ -279456,16 +230802,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot10.Author = list69; - index = 3; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference51 = ref span70[num]; + num = 3; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span28 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference51 = ref span28[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -279473,23 +230816,19 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820); obj42.Steps = list71; reference51 = obj42; - num++; - ref QuestSequence reference52 = ref span70[num]; + ref QuestSequence reference52 = ref span28[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num2 = 0; - ref QuestStep reference53 = ref span72[num2]; + num2 = 4; + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + Span span29 = CollectionsMarshal.AsSpan(list72); + ref QuestStep reference53 = ref span29[0]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2010119u, new Vector3(23.697266f, -23.361572f, 121.23291f), 820) { AethernetShortcut = new AethernetShortcut @@ -279501,88 +230840,60 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - 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); + 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); obj44.CompletionQuestVariablesFlags = list73; reference53 = obj44; - num2++; - ref QuestStep reference54 = ref span72[num2]; + ref QuestStep reference54 = ref span29[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2010117u, new Vector3(26.596436f, -21.957764f, 130.81555f), 820); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list74; reference54 = questStep10; - num2++; - ref QuestStep reference55 = ref span72[num2]; + ref QuestStep reference55 = ref span29[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list75; reference55 = questStep11; - num2++; - ref QuestStep reference56 = ref span72[num2]; + ref QuestStep reference56 = ref span29[3]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2010120u, new Vector3(45.76172f, -8.773987f, 139.05542f), 820); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list76; reference56 = questStep12; obj43.Steps = list72; reference52 = obj43; - num++; - ref QuestSequence reference57 = ref span70[num]; + ref QuestSequence reference57 = ref span28[2]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -279590,9 +230901,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027595u, new Vector3(41.58081f, -7.639986f, -109.57507f), 820) { AethernetShortcut = new AethernetShortcut { @@ -279609,30 +230918,24 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "liza"; + CollectionsMarshal.AsSpan(list78)[0] = "liza"; questRoot11.Author = list78; - index = 3; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference58 = ref span79[num]; + num = 3; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span34 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference58 = ref span34[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj46.Steps = list80; reference58 = obj46; - num++; - ref QuestSequence reference59 = ref span79[num]; + ref QuestSequence reference59 = ref span34[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -279640,30 +230943,22 @@ public static class AssemblyQuestLoader num2 = 3; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - ref QuestStep reference60 = ref span81[index2]; + Span span35 = CollectionsMarshal.AsSpan(list81); + ref QuestStep reference60 = ref span35[0]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list82; reference60 = questStep13; - index2++; - ref QuestStep reference61 = ref span81[index2]; + ref QuestStep reference61 = ref span35[1]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 2010121u, new Vector3(-5.56958f, 82.90222f, -35.446716f), 820) { AethernetShortcut = new AethernetShortcut @@ -279672,59 +230967,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Eulmore } }; - 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); + 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); obj48.CompletionQuestVariablesFlags = list83; reference61 = obj48; - index2++; - ref QuestStep reference62 = ref span81[index2]; + ref QuestStep reference62 = ref span35[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list84; reference62 = questStep14; obj47.Steps = list81; reference59 = obj47; - num++; - ref QuestSequence reference63 = ref span79[num]; + ref QuestSequence reference63 = ref span34[2]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj49.Steps = list85; reference63 = obj49; questRoot11.QuestSequence = list79; @@ -279734,16 +231013,13 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot12.Author = list86; - index = 4; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference64 = ref span87[num]; + num = 4; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span39 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference64 = ref span39[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -279751,27 +231027,21 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030419u, new Vector3(-506.6148f, 45.614502f, -194.50684f), 815); obj50.Steps = list88; reference64 = obj50; - num++; - ref QuestSequence reference65 = ref span87[num]; + ref QuestSequence reference65 = ref span39[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj51.Steps = list89; reference65 = obj51; - num++; - ref QuestSequence reference66 = ref span87[num]; + ref QuestSequence reference66 = ref span39[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -279779,36 +231049,29 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - ref QuestStep reference67 = ref span90[index2]; + ref QuestStep reference67 = ref CollectionsMarshal.AsSpan(list90)[0]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(-478.15445f, 10.344208f, 191.1135f), 815) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list91 = new List(index3); - CollectionsMarshal.SetCount(list91, index3); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - span91[num3] = 11106u; + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + CollectionsMarshal.AsSpan(list91)[0] = 11106u; obj53.KillEnemyDataIds = list91; reference67 = obj53; obj52.Steps = list90; reference66 = obj52; - num++; - ref QuestSequence reference68 = ref span87[num]; + ref QuestSequence reference68 = ref span39[3]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -279821,16 +231084,13 @@ public static class AssemblyQuestLoader num = 1; List list93 = new List(num); CollectionsMarshal.SetCount(list93, num); - Span span93 = CollectionsMarshal.AsSpan(list93); - index = 0; - span93[index] = "liza"; + CollectionsMarshal.AsSpan(list93)[0] = "liza"; questRoot13.Author = list93; - index = 4; - List list94 = new List(index); - CollectionsMarshal.SetCount(list94, index); - Span span94 = CollectionsMarshal.AsSpan(list94); - num = 0; - ref QuestSequence reference69 = ref span94[num]; + num = 4; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + Span span40 = CollectionsMarshal.AsSpan(list94); + ref QuestSequence reference69 = ref span40[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -279838,31 +231098,25 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030679u, new Vector3(64.07251f, 1.7078f, 231.40308f), 819); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030679u, new Vector3(64.07251f, 1.7078f, 231.40308f), 819); obj55.Steps = list95; reference69 = obj55; - num++; - ref QuestSequence reference70 = ref span94[num]; + ref QuestSequence reference70 = ref span40[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj56.Steps = list96; reference70 = obj56; - num++; - ref QuestSequence reference71 = ref span94[num]; + ref QuestSequence reference71 = ref span40[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -279870,9 +231124,8 @@ public static class AssemblyQuestLoader num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - ref QuestStep reference72 = ref span97[index2]; + Span span41 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference72 = ref span41[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1027411u, new Vector3(-771.1452f, 51.501152f, -212.32928f), 813) { Fly = true @@ -279880,59 +231133,43 @@ public static class AssemblyQuestLoader num3 = 6; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - 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); + 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); obj58.CompletionQuestVariablesFlags = list98; reference72 = obj58; - index2++; - ref QuestStep reference73 = ref span97[index2]; + ref QuestStep reference73 = ref span41[1]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1027382u, new Vector3(-765.92664f, 61.720478f, -304.1886f), 813) { Fly = true }; - 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); + 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); obj59.CompletionQuestVariablesFlags = list99; reference73 = obj59; obj57.Steps = list97; reference71 = obj57; - num++; - ref QuestSequence reference74 = ref span94[num]; + ref QuestSequence reference74 = ref span40[3]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3534) @@ -279946,16 +231183,13 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot14.Author = list101; - index = 4; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference75 = ref span102[num]; + num = 4; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span44 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference75 = ref span44[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -279963,23 +231197,18 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813); + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030689u, new Vector3(-657.5875f, 50.950245f, -217.76147f), 813); obj61.Steps = list103; reference75 = obj61; - num++; - ref QuestSequence reference76 = ref span102[num]; + ref QuestSequence reference76 = ref span44[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list104 = new List(index2); - CollectionsMarshal.SetCount(list104, index2); - Span span104 = CollectionsMarshal.AsSpan(list104); - num2 = 0; - ref QuestStep reference77 = ref span104[num2]; + num2 = 1; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list104)[0]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, null, new Vector3(-506.45068f, 3.7609627f, -19.921053f), 813) { StopDistance = 0.5f, @@ -279989,15 +231218,12 @@ public static class AssemblyQuestLoader num3 = 1; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - Span span105 = CollectionsMarshal.AsSpan(list105); - index3 = 0; - span105[index3] = 11147u; + CollectionsMarshal.AsSpan(list105)[0] = 11147u; obj63.KillEnemyDataIds = list105; reference77 = obj63; obj62.Steps = list104; reference76 = obj62; - num++; - ref QuestSequence reference78 = ref span102[num]; + ref QuestSequence reference78 = ref span44[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -280005,19 +231231,15 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - ref QuestStep reference79 = ref span106[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 1030682u, new Vector3(-506.4317f, 3.7609625f, -22.01886f), 813) { StopDistance = 7f }; - index3 = 1; - List list107 = new List(index3); - CollectionsMarshal.SetCount(list107, index3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new DialogueChoice + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZH302_03534_Q1_000_000"), @@ -280027,18 +231249,15 @@ public static class AssemblyQuestLoader reference79 = obj65; obj64.Steps = list106; reference78 = obj64; - num++; - ref QuestSequence reference80 = ref span102[num]; + ref QuestSequence reference80 = ref span44[3]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3535) @@ -280052,16 +231271,13 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot15.Author = list109; - index = 5; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference81 = ref span110[num]; + num = 5; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span45 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference81 = ref span45[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -280069,30 +231285,24 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813); + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030681u, new Vector3(-641.1383f, 55.757515f, -141.92426f), 813); obj67.Steps = list111; reference81 = obj67; - num++; - ref QuestSequence reference82 = ref span110[num]; + ref QuestSequence reference82 = ref span45[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj68.Steps = list112; reference82 = obj68; - num++; - ref QuestSequence reference83 = ref span110[num]; + ref QuestSequence reference83 = ref span45[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -280100,27 +231310,22 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1030706u, new Vector3(-375.32617f, 105.92186f, -618.92126f), 813) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1030706u, new Vector3(-375.32617f, 105.92186f, -618.92126f), 813) { StopDistance = 2f, Fly = true }; obj69.Steps = list113; reference83 = obj69; - num++; - ref QuestSequence reference84 = ref span110[num]; + ref QuestSequence reference84 = ref span45[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list114 = new List(index2); - CollectionsMarshal.SetCount(list114, index2); - Span span114 = CollectionsMarshal.AsSpan(list114); - num2 = 0; - ref QuestStep reference85 = ref span114[num2]; + num2 = 1; + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list114)[0]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 2010210u, new Vector3(-370.38226f, 103.37976f, -661.1887f), 813) { Fly = true @@ -280128,9 +231333,7 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span115 = CollectionsMarshal.AsSpan(list115); - index3 = 0; - span115[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKZH303_03535_Q3_000_000") @@ -280139,8 +231342,7 @@ public static class AssemblyQuestLoader reference85 = obj71; obj70.Steps = list114; reference84 = obj70; - num++; - ref QuestSequence reference86 = ref span110[num]; + ref QuestSequence reference86 = ref span45[4]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -280148,9 +231350,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030684u, new Vector3(-351.91882f, 100.1054f, -629.0227f), 813) { NextQuestId = new QuestId(3536) }; @@ -280163,30 +231363,24 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "liza"; + CollectionsMarshal.AsSpan(list117)[0] = "liza"; questRoot16.Author = list117; - index = 6; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference87 = ref span118[num]; + num = 6; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span46 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference87 = ref span46[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj73.Steps = list119; reference87 = obj73; - num++; - ref QuestSequence reference88 = ref span118[num]; + ref QuestSequence reference88 = ref span46[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -280194,44 +231388,36 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 1030685u, new Vector3(-443.68658f, 9.218739f, -150.53027f), 813) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 1030685u, new Vector3(-443.68658f, 9.218739f, -150.53027f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj74.Steps = list120; reference88 = obj74; - num++; - ref QuestSequence reference89 = ref span118[num]; + ref QuestSequence reference89 = ref span46[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list121 = new List(index2); - CollectionsMarshal.SetCount(list121, index2); - Span span121 = CollectionsMarshal.AsSpan(list121); - num2 = 0; - ref QuestStep reference90 = ref span121[num2]; + num2 = 1; + List list121 = new List(num2); + CollectionsMarshal.SetCount(list121, num2); + ref QuestStep reference90 = ref CollectionsMarshal.AsSpan(list121)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2010212u, new Vector3(-395.8648f, 6.210388f, -51.895935f), 813) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list122 = new List(index3); - CollectionsMarshal.SetCount(list122, index3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - span122[num3] = 11148u; + num3 = 1; + List list122 = new List(num3); + CollectionsMarshal.SetCount(list122, num3); + CollectionsMarshal.AsSpan(list122)[0] = 11148u; obj76.KillEnemyDataIds = list122; reference90 = obj76; obj75.Steps = list121; reference89 = obj75; - num++; - ref QuestSequence reference91 = ref span118[num]; + ref QuestSequence reference91 = ref span46[3]; QuestSequence obj77 = new QuestSequence { Sequence = 3 @@ -280239,34 +231425,28 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 2010213u, new Vector3(-298.11554f, 4.348816f, 16.189758f), 813) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 2010213u, new Vector3(-298.11554f, 4.348816f, 16.189758f), 813) { StopDistance = 0.5f, Fly = true }; obj77.Steps = list123; reference91 = obj77; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span46[4]; QuestSequence obj78 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj78.Steps = list124; reference92 = obj78; - num++; - ref QuestSequence reference93 = ref span118[num]; + ref QuestSequence reference93 = ref span46[5]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -280274,9 +231454,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030688u, new Vector3(-659.26605f, 51.002872f, -217.30377f), 813) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030688u, new Vector3(-659.26605f, 51.002872f, -217.30377f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative @@ -280290,30 +231468,24 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "liza"; + CollectionsMarshal.AsSpan(list126)[0] = "liza"; questRoot17.Author = list126; - index = 5; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference94 = ref span127[num]; + num = 5; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span47 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference94 = ref span47[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj80.Steps = list128; reference94 = obj80; - num++; - ref QuestSequence reference95 = ref span127[num]; + ref QuestSequence reference95 = ref span47[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -280321,37 +231493,30 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1030748u, new Vector3(-514.8852f, 334.116f, -9.262268f), 814); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1030748u, new Vector3(-514.8852f, 334.116f, -9.262268f), 814); obj81.Steps = list129; reference95 = obj81; - num++; - ref QuestSequence reference96 = ref span127[num]; + ref QuestSequence reference96 = ref span47[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span130[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-518.69183f, 331.39224f, -23.225534f), 814) + span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-518.69183f, 331.39224f, -23.225534f), 814) { DisableNavmesh = true }; - num2++; - span130[num2] = new QuestStep(EInteractionType.Interact, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814); + span48[2] = new QuestStep(EInteractionType.Interact, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814); obj82.Steps = list130; reference96 = obj82; - num++; - ref QuestSequence reference97 = ref span127[num]; + ref QuestSequence reference97 = ref span47[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 @@ -280359,9 +231524,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - ref QuestStep reference98 = ref span131[index2]; + ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list131)[0]; QuestStep obj84 = new QuestStep(EInteractionType.Emote, 1030749u, new Vector3(-504.5701f, 332.93307f, -112.077515f), 814) { Emote = EEmote.Soothe @@ -280369,9 +231532,7 @@ public static class AssemblyQuestLoader num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span132 = CollectionsMarshal.AsSpan(list132); - index3 = 0; - span132[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list132)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI001_03537_Q1_000_000"), @@ -280381,18 +231542,15 @@ public static class AssemblyQuestLoader reference98 = obj84; obj83.Steps = list131; reference97 = obj83; - num++; - ref QuestSequence reference99 = ref span127[num]; + ref QuestSequence reference99 = ref span47[4]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj85.Steps = list133; reference99 = obj85; questRoot17.QuestSequence = list127; @@ -280406,16 +231564,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -280423,16 +231578,12 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; 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); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q1_000_000"), @@ -280442,22 +231593,18 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list5; reference3 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -280465,16 +231612,12 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - ref QuestStep reference5 = ref span6[index2]; + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1030779u, new Vector3(-436.48438f, 417.21954f, -641.38245f), 814); - index3 = 1; - List list7 = new List(index3); - CollectionsMarshal.SetCount(list7, index3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new DialogueChoice + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q3_000_000"), @@ -280484,25 +231627,20 @@ public static class AssemblyQuestLoader reference5 = questStep2; obj3.Steps = list6; reference4 = obj3; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list8 = new List(index2); - CollectionsMarshal.SetCount(list8, index2); - Span span8 = CollectionsMarshal.AsSpan(list8); - num2 = 0; - ref QuestStep reference7 = ref span8[num2]; + num2 = 1; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; 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); - Span span9 = CollectionsMarshal.AsSpan(list9); - index3 = 0; - span9[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI101_03556_Q4_000_000"), @@ -280512,8 +231650,7 @@ public static class AssemblyQuestLoader reference7 = questStep3; obj4.Steps = list8; reference6 = obj4; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -280521,9 +231658,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); obj5.Steps = list10; reference8 = obj5; questRoot.QuestSequence = list2; @@ -280533,30 +231668,24 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "alydev"; + CollectionsMarshal.AsSpan(list11)[0] = "alydev"; questRoot2.Author = list11; - index = 5; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 5; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span2 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list13; reference9 = obj6; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -280564,33 +231693,27 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814) { Fly = true }; obj7.Steps = list14; reference10 = obj7; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2002690u }; obj8.Steps = list15; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span12[num]; + ref QuestSequence reference12 = ref span2[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -280598,23 +231721,18 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814); + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1030781u, new Vector3(-408.83502f, 417.21606f, -633.1731f), 814); obj9.Steps = list16; reference12 = obj9; - num++; - ref QuestSequence reference13 = ref span12[num]; + ref QuestSequence reference13 = ref span2[4]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3558) @@ -280628,16 +231746,13 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "alydev"; + CollectionsMarshal.AsSpan(list18)[0] = "alydev"; questRoot3.Author = list18; - index = 5; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference14 = ref span19[num]; + num = 5; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span3 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference14 = ref span3[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -280645,23 +231760,19 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - ref QuestStep reference15 = ref span20[index2]; + ref QuestStep reference15 = ref CollectionsMarshal.AsSpan(list20)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814); - index3 = 2; - List list21 = new List(index3); - CollectionsMarshal.SetCount(list21, index3); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - span21[num3] = new DialogueChoice + num3 = 2; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + Span span4 = CollectionsMarshal.AsSpan(list21); + span4[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI103_03558_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKZI103_03558_A1_000_001") }; - num3++; - span21[num3] = new DialogueChoice + span4[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZI103_03558_Q2_000_000"), @@ -280671,25 +231782,21 @@ public static class AssemblyQuestLoader reference15 = questStep4; obj11.Steps = list20; reference14 = obj11; - num++; - ref QuestSequence reference16 = ref span19[num]; + ref QuestSequence reference16 = ref span3[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj12.Steps = list22; reference16 = obj12; - num++; - ref QuestSequence reference17 = ref span19[num]; + ref QuestSequence reference17 = ref span3[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -280697,9 +231804,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref QuestStep reference18 = ref span23[index2]; + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; QuestStep obj14 = new QuestStep(EInteractionType.Combat, 1030784u, new Vector3(-407.8584f, 362.59058f, -289.5705f), 814) { Fly = true, @@ -280708,29 +231813,23 @@ public static class AssemblyQuestLoader num3 = 1; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span24 = CollectionsMarshal.AsSpan(list24); - index3 = 0; - span24[index3] = 11142u; + CollectionsMarshal.AsSpan(list24)[0] = 11142u; obj14.KillEnemyDataIds = list24; reference18 = obj14; obj13.Steps = list23; reference17 = obj13; - num++; - ref QuestSequence reference19 = ref span19[num]; + ref QuestSequence reference19 = ref span3[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj15.Steps = list25; reference19 = obj15; - num++; - ref QuestSequence reference20 = ref span19[num]; + ref QuestSequence reference20 = ref span3[4]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -280738,9 +231837,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030786u, new Vector3(-519.646f, 392.919f, -482.71918f), 814) { Fly = true, Emote = EEmote.Rally, @@ -280755,30 +231852,24 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "alydev"; + CollectionsMarshal.AsSpan(list27)[0] = "alydev"; questRoot4.Author = list27; - index = 5; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference21 = ref span28[num]; + num = 5; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span5 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference21 = ref span5[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj17.Steps = list29; reference21 = obj17; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span5[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -280786,30 +231877,24 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1030775u, new Vector3(-436.72852f, 417.2178f, -640.4364f), 814) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1030775u, new Vector3(-436.72852f, 417.2178f, -640.4364f), 814) { Fly = true }; obj18.Steps = list30; reference22 = obj18; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span5[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj19.Steps = list31; reference23 = obj19; - num++; - ref QuestSequence reference24 = ref span28[num]; + ref QuestSequence reference24 = ref span5[3]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -280817,23 +231902,18 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814); obj20.Steps = list32; reference24 = obj20; - num++; - ref QuestSequence reference25 = ref span28[num]; + ref QuestSequence reference25 = ref span5[4]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3560) }; @@ -280846,16 +231926,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "alydev"; + CollectionsMarshal.AsSpan(list34)[0] = "alydev"; questRoot5.Author = list34; - index = 8; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference26 = ref span35[num]; + num = 8; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span6 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference26 = ref span6[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -280863,9 +231940,7 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030800u, new Vector3(-396.68878f, 417.51825f, -657.9232f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -280883,18 +231958,15 @@ public static class AssemblyQuestLoader }; obj22.Steps = list36; reference26 = obj22; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span6[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -280912,8 +231984,7 @@ public static class AssemblyQuestLoader }; obj23.Steps = list37; reference27 = obj23; - num++; - ref QuestSequence reference28 = ref span35[num]; + ref QuestSequence reference28 = ref span6[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -280921,9 +231992,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1030787u, new Vector3(-408.80444f, 417.2132f, -631.7388f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -280941,25 +232010,21 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span35[num]; + ref QuestSequence reference29 = ref span6[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj25.Steps = list39; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span35[num]; + ref QuestSequence reference30 = ref span6[4]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -280967,30 +232032,24 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 2010309u, new Vector3(-109.69714f, 353.50574f, -181.65869f), 814); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2010309u, new Vector3(-109.69714f, 353.50574f, -181.65869f), 814); obj26.Steps = list40; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span35[num]; + ref QuestSequence reference31 = ref span6[5]; QuestSequence obj27 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj27.Steps = list41; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span35[num]; + ref QuestSequence reference32 = ref span6[6]; QuestSequence obj28 = new QuestSequence { Sequence = 6 @@ -280998,9 +232057,7 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1030789u, new Vector3(-262.83667f, 21.717266f, 369.64978f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright, SkipConditions = new SkipConditions @@ -281018,18 +232075,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span35[num]; + ref QuestSequence reference33 = ref span6[7]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaTomra, @@ -281055,16 +232109,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot6.Author = list44; - index = 3; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference34 = ref span45[num]; + num = 3; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span7 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference34 = ref span7[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -281072,23 +232123,19 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819); + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819); obj30.Steps = list46; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span7[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list47 = new List(index2); - CollectionsMarshal.SetCount(list47, index2); - Span span47 = CollectionsMarshal.AsSpan(list47); - num2 = 0; - ref QuestStep reference36 = ref span47[num2]; + num2 = 3; + List list47 = new List(num2); + CollectionsMarshal.SetCount(list47, num2); + Span span8 = CollectionsMarshal.AsSpan(list47); + ref QuestStep reference36 = ref span8[0]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1031119u, new Vector3(80.125f, 1.4901161E-08f, 190.44775f), 819) { AethernetShortcut = new AethernetShortcut @@ -281097,70 +232144,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - 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); + 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); obj32.CompletionQuestVariablesFlags = list48; reference36 = obj32; - num2++; - ref QuestStep reference37 = ref span47[num2]; + ref QuestStep reference37 = ref span8[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list49; reference37 = questStep5; - num2++; - ref QuestStep reference38 = ref span47[num2]; + ref QuestStep reference38 = ref span8[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1028333u, new Vector3(-168.07812f, 1.490116E-08f, 96.14697f), 819); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list50; reference38 = questStep6; obj31.Steps = list47; reference35 = obj31; - num++; - ref QuestSequence reference39 = ref span45[num]; + ref QuestSequence reference39 = ref span7[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -281168,9 +232194,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028024u, new Vector3(78.96533f, 35.999687f, -153.27692f), 819) { AethernetShortcut = new AethernetShortcut { @@ -281187,30 +232211,24 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot7.Author = list52; - index = 4; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference40 = ref span53[num]; + num = 4; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span12 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference40 = ref span12[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list54; reference40 = obj34; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span12[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -281218,9 +232236,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1027254u, new Vector3(-37.857666f, -0.5500218f, -61.20398f), 819) { AethernetShortcut = new AethernetShortcut { @@ -281230,25 +232246,21 @@ public static class AssemblyQuestLoader }; obj35.Steps = list55; reference41 = obj35; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span12[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2002756u }; obj36.Steps = list56; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span12[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -281256,9 +232268,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - ref QuestStep reference44 = ref span57[index2]; + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list57)[0]; QuestStep obj38 = new QuestStep(EInteractionType.CompleteQuest, 1027263u, new Vector3(-69.5354f, -36.726383f, -282.79547f), 819) { AethernetShortcut = new AethernetShortcut @@ -281270,9 +232280,7 @@ public static class AssemblyQuestLoader num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span58 = CollectionsMarshal.AsSpan(list58); - index3 = 0; - span58[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ002_03565_Q1_000_000"), @@ -281289,30 +232297,24 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "liza"; + CollectionsMarshal.AsSpan(list59)[0] = "liza"; questRoot8.Author = list59; - index = 4; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference45 = ref span60[num]; + num = 4; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span13 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference45 = ref span13[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj39.Steps = list61; reference45 = obj39; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span13[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -281320,30 +232322,24 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1031037u, new Vector3(65.32385f, 31.22887f, 151.7815f), 819); + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1031037u, new Vector3(65.32385f, 31.22887f, 151.7815f), 819); obj40.Steps = list62; reference46 = obj40; - num++; - ref QuestSequence reference47 = ref span60[num]; + ref QuestSequence reference47 = ref span13[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Emote = EEmote.Welcome }; obj41.Steps = list63; reference47 = obj41; - num++; - ref QuestSequence reference48 = ref span60[num]; + ref QuestSequence reference48 = ref span13[3]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -281351,9 +232347,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031038u, new Vector3(71.30542f, 30.758999f, 141.95471f), 819); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031038u, new Vector3(71.30542f, 30.758999f, 141.95471f), 819); obj42.Steps = list64; reference48 = obj42; questRoot8.QuestSequence = list60; @@ -281363,30 +232357,24 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot9.Author = list65; - index = 3; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference49 = ref span66[num]; + num = 3; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span14 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference49 = ref span14[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj43.Steps = list67; reference49 = obj43; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span14[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -281394,9 +232382,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - ref QuestStep reference51 = ref span68[index2]; + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1031060u, new Vector3(-148.36353f, 1.4901161E-08f, 200.42712f), 819) { AethernetShortcut = new AethernetShortcut @@ -281405,12 +232391,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - index3 = 1; - List list69 = new List(index3); - CollectionsMarshal.SetCount(list69, index3); - Span span69 = CollectionsMarshal.AsSpan(list69); - num3 = 0; - span69[num3] = new DialogueChoice + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ004_03567_Q1_000_000"), @@ -281420,18 +232404,15 @@ public static class AssemblyQuestLoader reference51 = obj45; obj44.Steps = list68; reference50 = obj44; - num++; - ref QuestSequence reference52 = ref span66[num]; + ref QuestSequence reference52 = ref span14[2]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -281449,16 +232430,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot10.Author = list71; - index = 4; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference53 = ref span72[num]; + num = 4; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span15 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference53 = ref span15[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -281466,23 +232444,19 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819); + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819); obj47.Steps = list73; reference53 = obj47; - num++; - ref QuestSequence reference54 = ref span72[num]; + ref QuestSequence reference54 = ref span15[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list74 = new List(index2); - CollectionsMarshal.SetCount(list74, index2); - Span span74 = CollectionsMarshal.AsSpan(list74); - num2 = 0; - ref QuestStep reference55 = ref span74[num2]; + num2 = 3; + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + Span span16 = CollectionsMarshal.AsSpan(list74); + ref QuestStep reference55 = ref span16[0]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 1031427u, new Vector3(10.8185425f, -1.4707987E-11f, -56.26001f), 819) { AethernetShortcut = new AethernetShortcut @@ -281494,23 +232468,16 @@ public static class AssemblyQuestLoader num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - 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); + 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); obj49.CompletionQuestVariablesFlags = list75; reference55 = obj49; - num2++; - ref QuestStep reference56 = ref span74[num2]; + ref QuestStep reference56 = ref span16[1]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 1027252u, new Vector3(-117.60132f, 38.614765f, 236.04175f), 819) { AethernetShortcut = new AethernetShortcut @@ -281519,26 +232486,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - 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); + 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); obj50.CompletionQuestVariablesFlags = list76; reference56 = obj50; - num2++; - span74[num2] = new QuestStep(EInteractionType.Interact, 1027260u, new Vector3(-49.515564f, -36.72638f, -271.4123f), 819) + span16[2] = new QuestStep(EInteractionType.Interact, 1027260u, new Vector3(-49.515564f, -36.72638f, -271.4123f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -281549,8 +232509,7 @@ public static class AssemblyQuestLoader }; obj48.Steps = list74; reference54 = obj48; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span15[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -281558,9 +232517,7 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1031064u, new Vector3(62.42456f, 27.999973f, -113.75604f), 819) { AethernetShortcut = new AethernetShortcut { @@ -281570,18 +232527,15 @@ public static class AssemblyQuestLoader }; obj51.Steps = list77; reference57 = obj51; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span15[3]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -281598,16 +232552,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot11.Author = list79; - index = 6; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference59 = ref span80[num]; + num = 6; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span19 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference59 = ref span19[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -281615,27 +232566,21 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818); + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031015u, new Vector3(530.51025f, 353.54364f, -244.00702f), 818); obj53.Steps = list81; reference59 = obj53; - num++; - ref QuestSequence reference60 = ref span80[num]; + ref QuestSequence reference60 = ref span19[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj54.Steps = list82; reference60 = obj54; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span19[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -281643,33 +232588,24 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference62 = ref span83[index2]; + Span span20 = CollectionsMarshal.AsSpan(list83); + ref QuestStep reference62 = ref span20[0]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list84; - index3 = 1; - List list85 = new List(index3); - CollectionsMarshal.SetCount(list85, index3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num3 = 0; - span85[num3] = new DialogueChoice + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ101_03588_Q2_000_000"), @@ -281677,32 +232613,23 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list85; reference62 = questStep7; - index2++; - ref QuestStep reference63 = ref span83[index2]; + ref QuestStep reference63 = ref span20[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list86; - index3 = 1; - List list87 = new List(index3); - CollectionsMarshal.SetCount(list87, index3); - Span span87 = CollectionsMarshal.AsSpan(list87); - num3 = 0; - span87[num3] = new DialogueChoice + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZJ101_03588_Q1_000_000"), @@ -281712,22 +232639,18 @@ public static class AssemblyQuestLoader reference63 = questStep8; obj55.Steps = list83; reference61 = obj55; - num++; - ref QuestSequence reference64 = ref span80[num]; + ref QuestSequence reference64 = ref span19[3]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj56.Steps = list88; reference64 = obj56; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span19[4]; QuestSequence obj57 = new QuestSequence { Sequence = 4 @@ -281735,26 +232658,21 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1031017u, new Vector3(603.02124f, 348.01245f, -165.30103f), 818) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1031017u, new Vector3(603.02124f, 348.01245f, -165.30103f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj57.Steps = list89; reference65 = obj57; - num++; - ref QuestSequence reference66 = ref span80[num]; + ref QuestSequence reference66 = ref span19[5]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj58.Steps = list90; reference66 = obj58; questRoot11.QuestSequence = list80; @@ -281764,16 +232682,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot12.Author = list91; - index = 6; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference67 = ref span92[num]; + num = 6; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span23 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference67 = ref span23[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -281781,27 +232696,21 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818); obj59.Steps = list93; reference67 = obj59; - num++; - ref QuestSequence reference68 = ref span92[num]; + ref QuestSequence reference68 = ref span23[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj60.Steps = list94; reference68 = obj60; - num++; - ref QuestSequence reference69 = ref span92[num]; + ref QuestSequence reference69 = ref span23[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -281809,27 +232718,21 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.Interact, 1027774u, new Vector3(-365.59094f, -260.1766f, 276.9359f), 818); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1027774u, new Vector3(-365.59094f, -260.1766f, 276.9359f), 818); obj61.Steps = list95; reference69 = obj61; - num++; - ref QuestSequence reference70 = ref span92[num]; + ref QuestSequence reference70 = ref span23[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj62.Steps = list96; reference70 = obj62; - num++; - ref QuestSequence reference71 = ref span92[num]; + ref QuestSequence reference71 = ref span23[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -281837,9 +232740,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - ref QuestStep reference72 = ref span97[index2]; + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2010125u, new Vector3(-502.7085f, -250.93463f, 449.97327f), 818) { ItemId = 2002612u, @@ -281848,29 +232749,23 @@ public static class AssemblyQuestLoader num3 = 3; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span98 = CollectionsMarshal.AsSpan(list98); - index3 = 0; - span98[index3] = 10846u; - index3++; - span98[index3] = 10847u; - index3++; - span98[index3] = 10848u; + Span span24 = CollectionsMarshal.AsSpan(list98); + span24[0] = 10846u; + span24[1] = 10847u; + span24[2] = 10848u; obj64.KillEnemyDataIds = list98; reference72 = obj64; obj63.Steps = list97; reference71 = obj63; - num++; - ref QuestSequence reference73 = ref span92[num]; + ref QuestSequence reference73 = ref span23[5]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj65.Steps = list99; reference73 = obj65; questRoot12.QuestSequence = list92; @@ -281880,16 +232775,13 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "liza"; + CollectionsMarshal.AsSpan(list100)[0] = "liza"; questRoot13.Author = list100; - index = 6; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference74 = ref span101[num]; + num = 6; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span25 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference74 = ref span25[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -281897,27 +232789,21 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj66.Steps = list102; reference74 = obj66; - num++; - ref QuestSequence reference75 = ref span101[num]; + ref QuestSequence reference75 = ref span25[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj67.Steps = list103; reference75 = obj67; - num++; - ref QuestSequence reference76 = ref span101[num]; + ref QuestSequence reference76 = ref span25[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -281925,27 +232811,21 @@ public static class AssemblyQuestLoader num2 = 1; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); + CollectionsMarshal.AsSpan(list104)[0] = new QuestStep(EInteractionType.Interact, 1030475u, new Vector3(-627.7715f, -250.75601f, 550.65234f), 818); obj68.Steps = list104; reference76 = obj68; - num++; - ref QuestSequence reference77 = ref span101[num]; + ref QuestSequence reference77 = ref span25[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj69.Steps = list105; reference77 = obj69; - num++; - ref QuestSequence reference78 = ref span101[num]; + ref QuestSequence reference78 = ref span25[4]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -281953,23 +232833,18 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 1027778u, new Vector3(-713.28296f, -245.368f, 498.49683f), 818); obj70.Steps = list106; reference78 = obj70; - num++; - ref QuestSequence reference79 = ref span101[num]; + ref QuestSequence reference79 = ref span25[5]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj71.Steps = list107; reference79 = obj71; questRoot13.QuestSequence = list101; @@ -281979,16 +232854,13 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot14.Author = list108; - index = 5; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference80 = ref span109[num]; + num = 5; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span26 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference80 = ref span26[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -281996,27 +232868,21 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818); obj72.Steps = list110; reference80 = obj72; - num++; - ref QuestSequence reference81 = ref span109[num]; + ref QuestSequence reference81 = ref span26[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj73.Steps = list111; reference81 = obj73; - num++; - ref QuestSequence reference82 = ref span109[num]; + ref QuestSequence reference82 = ref span26[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -282024,40 +232890,32 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - 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) + 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) { StopDistance = 7f }; obj74.Steps = list112; reference82 = obj74; - num++; - ref QuestSequence reference83 = ref span109[num]; + ref QuestSequence reference83 = ref span26[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list113 = new List(index2); - CollectionsMarshal.SetCount(list113, index2); - Span span113 = CollectionsMarshal.AsSpan(list113); - num2 = 0; - ref QuestStep reference84 = ref span113[num2]; + num2 = 1; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list113)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, null, new Vector3(-85.3181f, -281.24854f, 423.48425f), 818) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list114 = new List(index3); - CollectionsMarshal.SetCount(list114, index3); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = 10304u; + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = 10304u; obj76.KillEnemyDataIds = list114; obj76.CombatItemUse = new CombatItemUse { @@ -282068,8 +232926,7 @@ public static class AssemblyQuestLoader reference84 = obj76; obj75.Steps = list113; reference83 = obj75; - num++; - ref QuestSequence reference85 = ref span109[num]; + ref QuestSequence reference85 = ref span26[4]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -282077,11 +232934,9 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - 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) + 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) { StopDistance = 7f }; @@ -282094,30 +232949,24 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "liza"; + CollectionsMarshal.AsSpan(list116)[0] = "liza"; questRoot15.Author = list116; - index = 4; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference86 = ref span117[num]; + num = 4; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span29 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference86 = ref span29[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj78.Steps = list118; reference86 = obj78; - num++; - ref QuestSequence reference87 = ref span117[num]; + ref QuestSequence reference87 = ref span29[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -282125,9 +232974,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819) { AethernetShortcut = new AethernetShortcut { @@ -282137,18 +232984,15 @@ public static class AssemblyQuestLoader }; obj79.Steps = list119; reference87 = obj79; - num++; - ref QuestSequence reference88 = ref span117[num]; + ref QuestSequence reference88 = ref span29[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Duty, null, null, 819) { DutyOptions = new DutyOptions { @@ -282157,8 +233001,7 @@ public static class AssemblyQuestLoader }; obj80.Steps = list120; reference88 = obj80; - num++; - ref QuestSequence reference89 = ref span117[num]; + ref QuestSequence reference89 = ref span29[3]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -282166,9 +233009,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.CompleteQuest, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.CompleteQuest, 1028899u, new Vector3(77.04285f, 0.0889954f, -31.784546f), 819); obj81.Steps = list121; reference89 = obj81; questRoot15.QuestSequence = list117; @@ -282178,30 +233019,24 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - Span span122 = CollectionsMarshal.AsSpan(list122); - index = 0; - span122[index] = "liza"; + CollectionsMarshal.AsSpan(list122)[0] = "liza"; questRoot16.Author = list122; - index = 6; - List list123 = new List(index); - CollectionsMarshal.SetCount(list123, index); - Span span123 = CollectionsMarshal.AsSpan(list123); - num = 0; - ref QuestSequence reference90 = ref span123[num]; + num = 6; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + Span span30 = CollectionsMarshal.AsSpan(list123); + ref QuestSequence reference90 = ref span30[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj82.Steps = list124; reference90 = obj82; - num++; - ref QuestSequence reference91 = ref span123[num]; + ref QuestSequence reference91 = ref span30[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -282209,44 +233044,38 @@ public static class AssemblyQuestLoader num2 = 2; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818) + Span span31 = CollectionsMarshal.AsSpan(list125); + span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.41547322f, -276.906f, 269.2778f), 818) { Fly = true, AetheryteShortcut = EAetheryteLocation.TempestMacarensesAngle }; - index2++; - span125[index2] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) + span31[1] = new QuestStep(EInteractionType.Interact, 1027772u, new Vector3(5.3864136f, -276.906f, 271.59534f), 818) { StopDistance = 7f }; obj83.Steps = list125; reference91 = obj83; - num++; - ref QuestSequence reference92 = ref span123[num]; + ref QuestSequence reference92 = ref span30[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span126[num2] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) + span32[1] = new QuestStep(EInteractionType.Interact, 1028056u, new Vector3(-68.37573f, -274.33163f, 579.33923f), 818) { StopDistance = 7f }; obj84.Steps = list126; reference92 = obj84; - num++; - ref QuestSequence reference93 = ref span123[num]; + ref QuestSequence reference93 = ref span30[3]; QuestSequence obj85 = new QuestSequence { Sequence = 3 @@ -282254,9 +233083,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Duty, null, null, 818) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Duty, null, null, 818) { DutyOptions = new DutyOptions { @@ -282265,27 +233092,23 @@ public static class AssemblyQuestLoader }; obj85.Steps = list127; reference93 = obj85; - num++; - ref QuestSequence reference94 = ref span123[num]; + ref QuestSequence reference94 = ref span30[4]; QuestSequence obj86 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj86.Steps = list128; reference94 = obj86; - num++; - ref QuestSequence reference95 = ref span123[num]; + ref QuestSequence reference95 = ref span30[5]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -282293,9 +233116,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031144u, new Vector3(84.33655f, -10.490669f, 59.494873f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -282313,26 +233134,21 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot17.Author = list130; - index = 3; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference96 = ref span131[num]; + num = 3; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span34 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference96 = ref span34[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -282343,8 +233159,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list132; reference96 = obj88; - num++; - ref QuestSequence reference97 = ref span131[num]; + ref QuestSequence reference97 = ref span34[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -282352,9 +233167,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -282365,18 +233178,15 @@ public static class AssemblyQuestLoader }; obj89.Steps = list133; reference97 = obj89; - num++; - ref QuestSequence reference98 = ref span131[num]; + ref QuestSequence reference98 = ref span34[2]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3598) @@ -282390,16 +233200,13 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "liza"; + CollectionsMarshal.AsSpan(list135)[0] = "liza"; questRoot18.Author = list135; - index = 2; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference99 = ref span136[num]; + num = 2; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span35 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference99 = ref span35[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -282407,9 +233214,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -282423,18 +233228,15 @@ public static class AssemblyQuestLoader }; obj91.Steps = list137; reference99 = obj91; - num++; - ref QuestSequence reference100 = ref span136[num]; + ref QuestSequence reference100 = ref span35[1]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3599) @@ -282448,16 +233250,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot19.Author = list139; - index = 2; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference101 = ref span140[num]; + num = 2; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span36 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference101 = ref span36[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -282465,9 +233264,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -282481,18 +233278,15 @@ public static class AssemblyQuestLoader }; obj93.Steps = list141; reference101 = obj93; - num++; - ref QuestSequence reference102 = ref span140[num]; + ref QuestSequence reference102 = ref span36[1]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(3600) @@ -282510,16 +233304,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -282527,9 +233318,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027990u, new Vector3(-85.31323f, -2.7974376E-11f, -93.247925f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -282543,18 +233332,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4176) @@ -282568,16 +233354,13 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - index = 0; - span5[index] = "liza"; + CollectionsMarshal.AsSpan(list5)[0] = "liza"; questRoot2.Author = list5; - index = 2; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - ref QuestSequence reference3 = ref span6[num]; + num = 2; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestSequence reference3 = ref span2[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -282585,9 +233368,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030408u, new Vector3(-101.12158f, -9.99916f, -62.82141f), 820) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030408u, new Vector3(-101.12158f, -9.99916f, -62.82141f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, AethernetShortcut = new AethernetShortcut @@ -282605,18 +233386,15 @@ public static class AssemblyQuestLoader }; obj3.Steps = list7; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span6[num]; + ref QuestSequence reference4 = ref span2[1]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -282634,16 +233412,12 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; questRoot3.Author = list9; - index = 1; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference5 = ref span10[num]; + num = 1; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + ref QuestSequence reference5 = ref CollectionsMarshal.AsSpan(list10)[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -282651,9 +233425,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027847u, new Vector3(-76.34094f, 20.04979f, -110.97894f), 819) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027847u, new Vector3(-76.34094f, 20.04979f, -110.97894f), 819) { StopDistance = 5f }; @@ -282666,26 +233438,20 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "liza"; + CollectionsMarshal.AsSpan(list12)[0] = "liza"; questRoot4.Author = list12; - index = 1; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference6 = ref span13[num]; + num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list13)[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list14; reference6 = obj6; questRoot4.QuestSequence = list13; @@ -282695,16 +233461,12 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot5.Author = list15; - index = 1; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference7 = ref span16[num]; + num = 1; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + ref QuestSequence reference7 = ref CollectionsMarshal.AsSpan(list16)[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -282712,9 +233474,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031106u, new Vector3(-8.255188f, -3.1851232E-07f, 10.543945f), 819); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031106u, new Vector3(-8.255188f, -3.1851232E-07f, 10.543945f), 819); obj7.Steps = list17; reference7 = obj7; questRoot5.QuestSequence = list16; @@ -282724,33 +233484,27 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "liza"; + CollectionsMarshal.AsSpan(list18)[0] = "liza"; questRoot6.Author = list18; - index = 6; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference8 = ref span19[num]; + num = 6; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span3 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference8 = ref span3[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj8.Steps = list20; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span19[num]; + ref QuestSequence reference9 = ref span3[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -282758,30 +233512,24 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.Interact, 2009895u, new Vector3(26.04712f, -0.015319824f, 73.92993f), 819); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 2009895u, new Vector3(26.04712f, -0.015319824f, 73.92993f), 819); obj9.Steps = list21; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span19[num]; + ref QuestSequence reference10 = ref span3[2]; QuestSequence obj10 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj10.Steps = list22; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span19[num]; + ref QuestSequence reference11 = ref span3[3]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -282789,23 +233537,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 2009897u, new Vector3(-224.47546f, 21.22528f, 58.03003f), 819); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 2009897u, new Vector3(-224.47546f, 21.22528f, 58.03003f), 819); obj11.Steps = list23; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span19[num]; + ref QuestSequence reference12 = ref span3[4]; QuestSequence obj12 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference13 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj13 = new QuestStep(EInteractionType.SinglePlayerDuty, 1029599u, new Vector3(-107.0116f, 20f, 12.619202f), 819) { StopDistance = 5f @@ -282814,20 +233557,16 @@ public static class AssemblyQuestLoader int num3 = 3; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - 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."; + 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."; singlePlayerDutyOptions.Notes = list25; obj13.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference13 = obj13; obj12.Steps = list24; reference12 = obj12; - num++; - ref QuestSequence reference14 = ref span19[num]; + ref QuestSequence reference14 = ref span3[5]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -282835,9 +233574,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029601u, new Vector3(-707.5456f, 51.501152f, -241.56561f), 813); obj14.Steps = list26; reference14 = obj14; questRoot6.QuestSequence = list19; @@ -282847,30 +233584,24 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "liza"; + CollectionsMarshal.AsSpan(list27)[0] = "liza"; questRoot7.Author = list27; - index = 3; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference15 = ref span28[num]; + num = 3; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span5 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference15 = ref span5[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj15.Steps = list29; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span28[num]; + ref QuestSequence reference16 = ref span5[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -282878,33 +233609,25 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref QuestStep reference17 = ref span30[index2]; + Span span6 = CollectionsMarshal.AsSpan(list30); + ref QuestStep reference17 = ref span6[0]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1030314u, new Vector3(-690.0587f, 52.7832f, -302.20496f), 813) { Fly = true }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list31; reference17 = obj17; - index2++; - ref QuestStep reference18 = ref span30[index2]; + ref QuestStep reference18 = ref span6[1]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1030313u, new Vector3(-649.13403f, 53.2081f, -178.08807f), 813) { Fly = true @@ -282912,61 +233635,45 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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); + 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); obj18.CompletionQuestVariablesFlags = list32; reference18 = obj18; - index2++; - ref QuestStep reference19 = ref span30[index2]; + ref QuestStep reference19 = ref span6[2]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030312u, new Vector3(-694.0261f, 52.60457f, -124.74249f), 813); - 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); + 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); questStep.CompletionQuestVariablesFlags = list33; reference19 = questStep; obj16.Steps = list30; reference16 = obj16; - num++; - ref QuestSequence reference20 = ref span28[num]; + ref QuestSequence reference20 = ref span5[2]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span34[num2] = new QuestStep(EInteractionType.CompleteQuest, 1029606u, new Vector3(-734.5541f, 52.60457f, -147.1123f), 813) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1029606u, new Vector3(-734.5541f, 52.60457f, -147.1123f), 813) { Fly = true }; @@ -282979,16 +233686,13 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "liza"; + CollectionsMarshal.AsSpan(list35)[0] = "liza"; questRoot8.Author = list35; - index = 6; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference21 = ref span36[num]; + num = 6; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span11 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference21 = ref span11[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -282996,33 +233700,27 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030587u, new Vector3(-728.0537f, 52.604565f, -146.3493f), 813) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030587u, new Vector3(-728.0537f, 52.604565f, -146.3493f), 813) { StopDistance = 5f }; obj20.Steps = list37; reference21 = obj20; - num++; - ref QuestSequence reference22 = ref span36[num]; + ref QuestSequence reference22 = ref span11[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj21.Steps = list38; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span36[num]; + ref QuestSequence reference23 = ref span11[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 @@ -283030,9 +233728,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) { AethernetShortcut = new AethernetShortcut { @@ -283042,18 +233738,15 @@ public static class AssemblyQuestLoader }; obj22.Steps = list39; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span36[num]; + ref QuestSequence reference24 = ref span11[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list40 = new List(index2); - CollectionsMarshal.SetCount(list40, index2); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref QuestStep reference25 = ref span40[num2]; + num2 = 1; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list40)[0]; QuestStep obj24 = new QuestStep(EInteractionType.Emote, 1029608u, new Vector3(-120.83624f, -47.55994f, -166.15558f), 819) { Emote = EEmote.Poke @@ -283061,9 +233754,7 @@ public static class AssemblyQuestLoader num3 = 1; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - Span span41 = CollectionsMarshal.AsSpan(list41); - num4 = 0; - span41[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list41)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD103_03608_Q1_000_000"), @@ -283073,8 +233764,7 @@ public static class AssemblyQuestLoader reference25 = obj24; obj23.Steps = list40; reference24 = obj23; - num++; - ref QuestSequence reference26 = ref span36[num]; + ref QuestSequence reference26 = ref span11[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -283082,63 +233772,46 @@ public static class AssemblyQuestLoader num2 = 2; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - ref QuestStep reference27 = ref span42[index2]; + Span span12 = CollectionsMarshal.AsSpan(list42); + ref QuestStep reference27 = ref span12[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2009900u, new Vector3(-136.64453f, -46.00598f, -183.67291f), 819); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list43; reference27 = questStep2; - index2++; - ref QuestStep reference28 = ref span42[index2]; + ref QuestStep reference28 = ref span12[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list44; reference28 = questStep3; obj25.Steps = list42; reference26 = obj25; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span11[5]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -283151,16 +233824,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot9.Author = list46; - index = 7; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference30 = ref span47[num]; + num = 7; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span15 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference30 = ref span15[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -283168,35 +233838,28 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029853u, new Vector3(-30.991089f, -0.6499998f, -49.69867f), 819); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029853u, new Vector3(-30.991089f, -0.6499998f, -49.69867f), 819); obj27.Steps = list48; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span47[num]; + ref QuestSequence reference31 = ref span15[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)844 }; - num2++; - ref QuestStep reference32 = ref span49[num2]; + ref QuestStep reference32 = ref span16[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1028923u, new Vector3(-0.015319824f, -1.0530548E-13f, -6.0273438f), 844); - num4 = 1; - List list50 = new List(num4); - CollectionsMarshal.SetCount(list50, num4); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = new DialogueChoice + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD104_03609_Q1_000_000"), @@ -283206,8 +233869,7 @@ public static class AssemblyQuestLoader reference32 = questStep4; obj28.Steps = list49; reference31 = obj28; - num++; - ref QuestSequence reference33 = ref span47[num]; + ref QuestSequence reference33 = ref span15[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -283215,33 +233877,27 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1029597u, new Vector3(2.4871826f, 0f, 1.5106201f), 844) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1029597u, new Vector3(2.4871826f, 0f, 1.5106201f), 844) { StopDistance = 7f }; obj29.Steps = list51; reference33 = obj29; - num++; - ref QuestSequence reference34 = ref span47[num]; + ref QuestSequence reference34 = ref span15[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj30.Steps = list52; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span47[num]; + ref QuestSequence reference35 = ref span15[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -283249,35 +233905,29 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - 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) + 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) { Fly = true }; obj31.Steps = list53; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span47[num]; + ref QuestSequence reference36 = ref span15[5]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj32.Steps = list54; reference36 = obj32; - num++; - ref QuestSequence reference37 = ref span47[num]; + ref QuestSequence reference37 = ref span15[6]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -283285,9 +233935,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029614u, new Vector3(-554.1314f, 35.800797f, -669.70325f), 815); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029614u, new Vector3(-554.1314f, 35.800797f, -669.70325f), 815); obj33.Steps = list55; reference37 = obj33; questRoot9.QuestSequence = list47; @@ -283297,30 +233945,24 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot10.Author = list56; - index = 4; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference38 = ref span57[num]; + num = 4; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span18 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference38 = ref span18[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list58; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span57[num]; + ref QuestSequence reference39 = ref span18[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -283328,88 +233970,63 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1030438u, new Vector3(-403.67743f, -20.21407f, -589.9901f), 815); obj35.Steps = list59; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span57[num]; + ref QuestSequence reference40 = ref span18[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference41 = ref span60[num2]; + num2 = 3; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + Span span19 = CollectionsMarshal.AsSpan(list60); + ref QuestStep reference41 = ref span19[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list61; reference41 = questStep5; - num2++; - ref QuestStep reference42 = ref span60[num2]; + ref QuestStep reference42 = ref span19[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1027919u, new Vector3(-404.50146f, -17.85281f, -549.95044f), 815); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list62; reference42 = questStep6; - num2++; - ref QuestStep reference43 = ref span60[num2]; + ref QuestStep reference43 = ref span19[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list63; reference43 = questStep7; obj36.Steps = list60; reference40 = obj36; - num++; - ref QuestSequence reference44 = ref span57[num]; + ref QuestSequence reference44 = ref span18[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -283417,16 +234034,12 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - ref QuestStep reference45 = ref span64[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list64)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.CompleteQuest, 1029617u, new Vector3(-419.39423f, -20.145794f, -578.88153f), 815); - num4 = 1; - List list65 = new List(num4); - CollectionsMarshal.SetCount(list65, num4); - Span span65 = CollectionsMarshal.AsSpan(list65); - num3 = 0; - span65[num3] = new DialogueChoice + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD105_03610_Q1_000_000"), @@ -283443,30 +234056,24 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot11.Author = list66; - index = 7; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference46 = ref span67[num]; + num = 7; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span23 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference46 = ref span23[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list68; reference46 = obj38; - num++; - ref QuestSequence reference47 = ref span67[num]; + ref QuestSequence reference47 = ref span23[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -283474,27 +234081,21 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.Interact, 1030947u, new Vector3(-461.9364f, -1.2183915f, -372.06073f), 815); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Interact, 1030947u, new Vector3(-461.9364f, -1.2183915f, -372.06073f), 815); obj39.Steps = list69; reference47 = obj39; - num++; - ref QuestSequence reference48 = ref span67[num]; + ref QuestSequence reference48 = ref span23[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj40.Steps = list70; reference48 = obj40; - num++; - ref QuestSequence reference49 = ref span67[num]; + ref QuestSequence reference49 = ref span23[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -283502,88 +234103,63 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - ref QuestStep reference50 = ref span71[index2]; + Span span24 = CollectionsMarshal.AsSpan(list71); + ref QuestStep reference50 = ref span24[0]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list72; reference50 = questStep9; - index2++; - ref QuestStep reference51 = ref span71[index2]; + ref QuestStep reference51 = ref span24[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2009904u, new Vector3(19.821411f, 46.189087f, -575.0973f), 815); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list73; reference51 = questStep10; - index2++; - ref QuestStep reference52 = ref span71[index2]; + ref QuestStep reference52 = ref span24[2]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list74; reference52 = questStep11; obj41.Steps = list71; reference49 = obj41; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span23[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj42.Steps = list75; reference53 = obj42; - num++; - ref QuestSequence reference54 = ref span67[num]; + ref QuestSequence reference54 = ref span23[5]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -283591,35 +234167,28 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - ref QuestStep reference55 = ref span76[index2]; + ref QuestStep reference55 = ref CollectionsMarshal.AsSpan(list76)[0]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, 1029623u, new Vector3(-62.760437f, 45.619083f, -606.3783f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list77 = new List(num4); - CollectionsMarshal.SetCount(list77, num4); - Span span77 = CollectionsMarshal.AsSpan(list77); - num3 = 0; - span77[num3] = 10882u; + num3 = 1; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + CollectionsMarshal.AsSpan(list77)[0] = 10882u; obj44.KillEnemyDataIds = list77; reference55 = obj44; obj43.Steps = list76; reference54 = obj43; - num++; - ref QuestSequence reference56 = ref span67[num]; + ref QuestSequence reference56 = ref span23[6]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj45.Steps = list78; reference56 = obj45; questRoot11.QuestSequence = list67; @@ -283629,16 +234198,13 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot12.Author = list79; - index = 8; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference57 = ref span80[num]; + num = 8; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span28 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference57 = ref span28[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -283646,30 +234212,24 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029629u, new Vector3(88.48706f, 45.737045f, -595.9106f), 815) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029629u, new Vector3(88.48706f, 45.737045f, -595.9106f), 815) { StopDistance = 7f }; obj46.Steps = list81; reference57 = obj46; - num++; - ref QuestSequence reference58 = ref span80[num]; + ref QuestSequence reference58 = ref span28[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj47.Steps = list82; reference58 = obj47; - num++; - ref QuestSequence reference59 = ref span80[num]; + ref QuestSequence reference59 = ref span28[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -283677,28 +234237,23 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1029632u, new Vector3(-136.36993f, 28.480484f, -374.99048f), 815); + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1029632u, new Vector3(-136.36993f, 28.480484f, -374.99048f), 815); obj48.Steps = list83; reference59 = obj48; - num++; - ref QuestSequence reference60 = ref span80[num]; + ref QuestSequence reference60 = ref span28[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Sprint = true }; - num2++; - ref QuestStep reference61 = ref span84[num2]; + ref QuestStep reference61 = ref span29[1]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.48285f, 18.86909f, -244.22473f), 815) { StopDistance = 1f, @@ -283707,15 +234262,12 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num4 = 0; - span85[num4] = 11138u; + CollectionsMarshal.AsSpan(list85)[0] = 11138u; obj50.KillEnemyDataIds = list85; reference61 = obj50; obj49.Steps = list84; reference60 = obj49; - num++; - ref QuestSequence reference62 = ref span80[num]; + ref QuestSequence reference62 = ref span28[4]; QuestSequence obj51 = new QuestSequence { Sequence = 4 @@ -283723,30 +234275,24 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1029633u, new Vector3(-278.03473f, 19.067781f, -249.19507f), 815) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1029633u, new Vector3(-278.03473f, 19.067781f, -249.19507f), 815) { StopDistance = 7f }; obj51.Steps = list86; reference62 = obj51; - num++; - ref QuestSequence reference63 = ref span80[num]; + ref QuestSequence reference63 = ref span28[5]; QuestSequence obj52 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj52.Steps = list87; reference63 = obj52; - num++; - ref QuestSequence reference64 = ref span80[num]; + ref QuestSequence reference64 = ref span28[6]; QuestSequence obj53 = new QuestSequence { Sequence = 6 @@ -283754,23 +234300,18 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1029635u, new Vector3(-479.45374f, 47.777702f, -189.77649f), 815); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1029635u, new Vector3(-479.45374f, 47.777702f, -189.77649f), 815); obj53.Steps = list88; reference64 = obj53; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span28[7]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj54.Steps = list89; reference65 = obj54; questRoot12.QuestSequence = list80; @@ -283780,16 +234321,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "liza"; + CollectionsMarshal.AsSpan(list90)[0] = "liza"; questRoot13.Author = list90; - index = 7; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference66 = ref span91[num]; + num = 7; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span30 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference66 = ref span30[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -283797,32 +234335,26 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029637u, new Vector3(-483.23798f, 45.473377f, -211.3222f), 815); obj55.Steps = list92; reference66 = obj55; - num++; - ref QuestSequence reference67 = ref span91[num]; + ref QuestSequence reference67 = ref span30[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.AmhAraengTwine }; - num2++; - span93[num2] = new QuestStep(EInteractionType.Interact, 1029640u, new Vector3(-545.31165f, 45.512848f, -230.6402f), 815); + span31[1] = new QuestStep(EInteractionType.Interact, 1029640u, new Vector3(-545.31165f, 45.512848f, -230.6402f), 815); obj56.Steps = list93; reference67 = obj56; - num++; - ref QuestSequence reference68 = ref span91[num]; + ref QuestSequence reference68 = ref span30[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -283830,20 +234362,16 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - ref QuestStep reference69 = ref span94[index2]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list94)[0]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-410.60504f, 46.19129f, -245.38031f), 815) { StopDistance = 2f, ItemId = 2002559u }; - num4 = 1; - List list95 = new List(num4); - CollectionsMarshal.SetCount(list95, num4); - Span span95 = CollectionsMarshal.AsSpan(list95); - num3 = 0; - span95[num3] = new DialogueChoice + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD108_03613_Q1_000_000"), @@ -283853,31 +234381,26 @@ public static class AssemblyQuestLoader reference69 = obj58; obj57.Steps = list94; reference68 = obj57; - num++; - ref QuestSequence reference70 = ref span91[num]; + ref QuestSequence reference70 = ref span30[3]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DisableNavmesh = true, AetherCurrentId = 2818259u }; - num2++; - span96[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815) + span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-341.64484f, 46.191288f, -244.7952f), 815) { DisableNavmesh = true }; - num2++; - ref QuestStep reference71 = ref span96[num2]; + ref QuestStep reference71 = ref span32[3]; QuestStep obj60 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-226.30658f, 46.19127f, -247.21143f), 815) { StopDistance = 2f, @@ -283886,9 +234409,7 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span97 = CollectionsMarshal.AsSpan(list97); - num4 = 0; - span97[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD108_03613_Q2_000_000"), @@ -283898,8 +234419,7 @@ public static class AssemblyQuestLoader reference71 = obj60; obj59.Steps = list96; reference70 = obj59; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span30[4]; QuestSequence obj61 = new QuestSequence { Sequence = 4 @@ -283907,118 +234427,87 @@ public static class AssemblyQuestLoader num2 = 3; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - ref QuestStep reference73 = ref span98[index2]; + Span span33 = CollectionsMarshal.AsSpan(list98); + ref QuestStep reference73 = ref span33[0]; QuestStep obj62 = new QuestStep(EInteractionType.Combat, 2009910u, new Vector3(-170.48907f, 46.189087f, -279.56055f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list99 = new List(num4); - CollectionsMarshal.SetCount(list99, num4); - Span span99 = CollectionsMarshal.AsSpan(list99); - num3 = 0; - span99[num3] = 10883u; + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + CollectionsMarshal.AsSpan(list99)[0] = 10883u; obj62.KillEnemyDataIds = list99; num3 = 6; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - 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); + 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); obj62.CompletionQuestVariablesFlags = list100; reference73 = obj62; - index2++; - ref QuestStep reference74 = ref span98[index2]; + ref QuestStep reference74 = ref span33[1]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2009911u, new Vector3(-181.5061f, 46.189087f, -362.6917f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list101 = new List(num4); - CollectionsMarshal.SetCount(list101, num4); - Span span101 = CollectionsMarshal.AsSpan(list101); - num3 = 0; - span101[num3] = 10883u; + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + CollectionsMarshal.AsSpan(list101)[0] = 10883u; obj63.KillEnemyDataIds = list101; num3 = 6; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - 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); + 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); obj63.CompletionQuestVariablesFlags = list102; reference74 = obj63; - index2++; - ref QuestStep reference75 = ref span98[index2]; + ref QuestStep reference75 = ref span33[2]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, 2009912u, new Vector3(-127.58075f, 45.914307f, -456.59576f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = 10883u; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = 10883u; obj64.KillEnemyDataIds = list103; num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - 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); + 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); obj64.CompletionQuestVariablesFlags = list104; reference75 = obj64; obj61.Steps = list98; reference72 = obj61; - num++; - ref QuestSequence reference76 = ref span91[num]; + ref QuestSequence reference76 = ref span30[5]; QuestSequence obj65 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj65.Steps = list105; reference76 = obj65; - num++; - ref QuestSequence reference77 = ref span91[num]; + ref QuestSequence reference77 = ref span30[6]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -284026,9 +234515,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029643u, new Vector3(-453.60498f, 45.48443f, -236.86578f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; @@ -284041,30 +234528,24 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot14.Author = list107; - index = 4; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference78 = ref span108[num]; + num = 4; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span37 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference78 = ref span37[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj67.Steps = list109; reference78 = obj67; - num++; - ref QuestSequence reference79 = ref span108[num]; + ref QuestSequence reference79 = ref span37[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -284072,33 +234553,26 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1029645u, new Vector3(-503.16626f, 45.71098f, -258.32f), 815); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1029645u, new Vector3(-503.16626f, 45.71098f, -258.32f), 815); obj68.Steps = list110; reference79 = obj68; - num++; - ref QuestSequence reference80 = ref span108[num]; + ref QuestSequence reference80 = ref span37[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list111 = new List(index2); - CollectionsMarshal.SetCount(list111, index2); - Span span111 = CollectionsMarshal.AsSpan(list111); - num2 = 0; - ref QuestStep reference81 = ref span111[num2]; + num2 = 1; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list111)[0]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(-395.11795f, 24.01915f, -200.26707f), 815) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list112 = new List(num4); - CollectionsMarshal.SetCount(list112, num4); - Span span112 = CollectionsMarshal.AsSpan(list112); - num3 = 0; - span112[num3] = new ComplexCombatData + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + CollectionsMarshal.AsSpan(list112)[0] = new ComplexCombatData { DataId = 10347u, MinimumKillCount = 3u, @@ -284109,8 +234583,7 @@ public static class AssemblyQuestLoader reference81 = obj70; obj69.Steps = list111; reference80 = obj69; - num++; - ref QuestSequence reference82 = ref span108[num]; + ref QuestSequence reference82 = ref span37[3]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -284118,9 +234591,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); obj71.Steps = list113; reference82 = obj71; questRoot14.QuestSequence = list108; @@ -284130,33 +234601,27 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot15.Author = list114; - index = 4; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference83 = ref span115[num]; + num = 4; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span38 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference83 = ref span38[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj72.Steps = list116; reference83 = obj72; - num++; - ref QuestSequence reference84 = ref span115[num]; + ref QuestSequence reference84 = ref span38[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -284164,30 +234629,24 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1029639u, new Vector3(-478.6908f, 47.777702f, -191.36346f), 815); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1029639u, new Vector3(-478.6908f, 47.777702f, -191.36346f), 815); obj73.Steps = list117; reference84 = obj73; - num++; - ref QuestSequence reference85 = ref span115[num]; + ref QuestSequence reference85 = ref span38[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj74.Steps = list118; reference85 = obj74; - num++; - ref QuestSequence reference86 = ref span115[num]; + ref QuestSequence reference86 = ref span38[3]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -284195,9 +234654,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.CompleteQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.CompleteQuest, 1029755u, new Vector3(-462.54675f, 45.367775f, -205.31018f), 815); obj75.Steps = list119; reference86 = obj75; questRoot15.QuestSequence = list115; @@ -284207,30 +234664,24 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "liza"; + CollectionsMarshal.AsSpan(list120)[0] = "liza"; questRoot16.Author = list120; - index = 7; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference87 = ref span121[num]; + num = 7; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span39 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference87 = ref span39[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj76.Steps = list122; reference87 = obj76; - num++; - ref QuestSequence reference88 = ref span121[num]; + ref QuestSequence reference88 = ref span39[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -284238,32 +234689,26 @@ public static class AssemblyQuestLoader num2 = 2; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815) + Span span40 = CollectionsMarshal.AsSpan(list123); + span40[0] = new QuestStep(EInteractionType.AcceptQuest, 1027927u, new Vector3(-476.95123f, 47.78906f, -200.61041f), 815) { PickUpQuestId = new QuestId(3511) }; - index2++; - span123[index2] = new QuestStep(EInteractionType.Interact, 1029756u, new Vector3(-344.96075f, 18.147886f, 40.66516f), 815); + span40[1] = new QuestStep(EInteractionType.Interact, 1029756u, new Vector3(-344.96075f, 18.147886f, 40.66516f), 815); obj77.Steps = list123; reference88 = obj77; - num++; - ref QuestSequence reference89 = ref span121[num]; + ref QuestSequence reference89 = ref span39[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj78.Steps = list124; reference89 = obj78; - num++; - ref QuestSequence reference90 = ref span121[num]; + ref QuestSequence reference90 = ref span39[3]; QuestSequence obj79 = new QuestSequence { Sequence = 3 @@ -284271,30 +234716,24 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.Interact, 1029758u, new Vector3(-594.81195f, 5.3112187f, 41.45874f), 815) { StopDistance = 7f }; obj79.Steps = list125; reference90 = obj79; - num++; - ref QuestSequence reference91 = ref span121[num]; + ref QuestSequence reference91 = ref span39[4]; QuestSequence obj80 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj80.Steps = list126; reference91 = obj80; - num++; - ref QuestSequence reference92 = ref span121[num]; + ref QuestSequence reference92 = ref span39[5]; QuestSequence obj81 = new QuestSequence { Sequence = 5 @@ -284302,16 +234741,12 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - ref QuestStep reference93 = ref span127[index2]; + ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list127)[0]; 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); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMD111_03616_Q1_000_001"), @@ -284321,18 +234756,15 @@ public static class AssemblyQuestLoader reference93 = questStep12; obj81.Steps = list127; reference92 = obj81; - num++; - ref QuestSequence reference94 = ref span121[num]; + ref QuestSequence reference94 = ref span39[6]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -284345,16 +234777,13 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot17.Author = list130; - index = 6; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference95 = ref span131[num]; + num = 6; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span41 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference95 = ref span41[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -284362,30 +234791,24 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029757u, new Vector3(-595.72754f, 5.317615f, 38.16284f), 815) { StopDistance = 7f }; obj83.Steps = list132; reference95 = obj83; - num++; - ref QuestSequence reference96 = ref span131[num]; + ref QuestSequence reference96 = ref span41[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj84.Steps = list133; reference96 = obj84; - num++; - ref QuestSequence reference97 = ref span131[num]; + ref QuestSequence reference97 = ref span41[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -284393,47 +234816,36 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 2010009u, new Vector3(-321.3092f, 20.004517f, 99.83972f), 815); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 2010009u, new Vector3(-321.3092f, 20.004517f, 99.83972f), 815); obj85.Steps = list134; reference97 = obj85; - num++; - ref QuestSequence reference98 = ref span131[num]; + ref QuestSequence reference98 = ref span41[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref QuestStep reference99 = ref span135[num2]; + num2 = 3; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span42 = CollectionsMarshal.AsSpan(list135); + ref QuestStep reference99 = ref span42[0]; QuestStep obj87 = new QuestStep(EInteractionType.UseItem, 2009918u, new Vector3(-453.08612f, 11.703674f, 185.5039f), 815) { ItemId = 2002562u }; - 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); + 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); obj87.CompletionQuestVariablesFlags = list136; reference99 = obj87; - num2++; - ref QuestStep reference100 = ref span135[num2]; + ref QuestStep reference100 = ref span42[1]; QuestStep obj88 = new QuestStep(EInteractionType.UseItem, 2009916u, new Vector3(-610.4677f, -0.65618896f, 135.9425f), 815) { ItemId = 2002562u @@ -284441,49 +234853,35 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - 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); + 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); obj88.CompletionQuestVariablesFlags = list137; reference100 = obj88; - num2++; - ref QuestStep reference101 = ref span135[num2]; + ref QuestStep reference101 = ref span42[2]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 2009917u, new Vector3(-426.65753f, 17.196838f, 5.142273f), 815) { ItemId = 2002562u }; - 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); + 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); obj89.CompletionQuestVariablesFlags = list138; reference101 = obj89; obj86.Steps = list135; reference98 = obj86; - num++; - ref QuestSequence reference102 = ref span131[num]; + ref QuestSequence reference102 = ref span41[4]; QuestSequence obj90 = new QuestSequence { Sequence = 4 @@ -284491,9 +234889,8 @@ public static class AssemblyQuestLoader num2 = 7; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - ref QuestStep reference103 = ref span139[index2]; + Span span46 = CollectionsMarshal.AsSpan(list139); + ref QuestStep reference103 = ref span46[0]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 2010277u, new Vector3(-411.0628f, 16.891724f, 9.536865f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284501,30 +234898,21 @@ public static class AssemblyQuestLoader num3 = 1; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - Span span140 = CollectionsMarshal.AsSpan(list140); - num4 = 0; - span140[num4] = 10884u; + CollectionsMarshal.AsSpan(list140)[0] = 10884u; obj91.KillEnemyDataIds = list140; - 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); + 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); obj91.CompletionQuestVariablesFlags = list141; reference103 = obj91; - index2++; - ref QuestStep reference104 = ref span139[index2]; + ref QuestStep reference104 = ref span46[1]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, 2010279u, new Vector3(-492.8512f, 10.574402f, 9.4453125f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284532,30 +234920,21 @@ public static class AssemblyQuestLoader num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span142 = CollectionsMarshal.AsSpan(list142); - num4 = 0; - span142[num4] = 10884u; + CollectionsMarshal.AsSpan(list142)[0] = 10884u; obj92.KillEnemyDataIds = list142; - 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); + 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); obj92.CompletionQuestVariablesFlags = list143; reference104 = obj92; - index2++; - ref QuestStep reference105 = ref span139[index2]; + ref QuestStep reference105 = ref span46[2]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, 2010276u, new Vector3(-580.89575f, 6.088318f, 119.79846f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284563,30 +234942,21 @@ public static class AssemblyQuestLoader num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num4 = 0; - span144[num4] = 10884u; + CollectionsMarshal.AsSpan(list144)[0] = 10884u; obj93.KillEnemyDataIds = list144; - 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); + 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); obj93.CompletionQuestVariablesFlags = list145; reference105 = obj93; - index2++; - ref QuestStep reference106 = ref span139[index2]; + ref QuestStep reference106 = ref span46[3]; QuestStep obj94 = new QuestStep(EInteractionType.Combat, 2010275u, new Vector3(-589.1356f, 1.7547607f, 179.18665f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284594,30 +234964,21 @@ public static class AssemblyQuestLoader num3 = 1; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - Span span146 = CollectionsMarshal.AsSpan(list146); - num4 = 0; - span146[num4] = 10884u; + CollectionsMarshal.AsSpan(list146)[0] = 10884u; obj94.KillEnemyDataIds = list146; - 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); + 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); obj94.CompletionQuestVariablesFlags = list147; reference106 = obj94; - index2++; - ref QuestStep reference107 = ref span139[index2]; + ref QuestStep reference107 = ref span46[4]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, 2010274u, new Vector3(-627.039f, 0.93078613f, 131.45642f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284625,30 +234986,21 @@ public static class AssemblyQuestLoader num3 = 1; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span148 = CollectionsMarshal.AsSpan(list148); - num4 = 0; - span148[num4] = 10884u; + CollectionsMarshal.AsSpan(list148)[0] = 10884u; obj95.KillEnemyDataIds = list148; - 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); + 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); obj95.CompletionQuestVariablesFlags = list149; reference107 = obj95; - index2++; - ref QuestStep reference108 = ref span139[index2]; + ref QuestStep reference108 = ref span46[5]; QuestStep obj96 = new QuestStep(EInteractionType.Combat, 2010281u, new Vector3(-503.0747f, 10.666016f, 191.85156f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284656,30 +235008,21 @@ public static class AssemblyQuestLoader num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span150 = CollectionsMarshal.AsSpan(list150); - num4 = 0; - span150[num4] = 10884u; + CollectionsMarshal.AsSpan(list150)[0] = 10884u; obj96.KillEnemyDataIds = list150; - 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); + 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); obj96.CompletionQuestVariablesFlags = list151; reference108 = obj96; - index2++; - ref QuestStep reference109 = ref span139[index2]; + ref QuestStep reference109 = ref span46[6]; QuestStep obj97 = new QuestStep(EInteractionType.Combat, 2010283u, new Vector3(-419.21112f, 11.9782715f, 181.41443f), 815) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -284687,42 +235030,31 @@ public static class AssemblyQuestLoader num3 = 1; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num4 = 0; - span152[num4] = 10884u; + CollectionsMarshal.AsSpan(list152)[0] = 10884u; obj97.KillEnemyDataIds = list152; - 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); + 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); obj97.CompletionQuestVariablesFlags = list153; reference109 = obj97; obj90.Steps = list139; reference102 = obj90; - num++; - ref QuestSequence reference110 = ref span131[num]; + ref QuestSequence reference110 = ref span41[5]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj98.Steps = list154; reference110 = obj98; questRoot17.QuestSequence = list131; @@ -284732,16 +235064,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot18.Author = list155; - index = 4; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference111 = ref span156[num]; + num = 4; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span54 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference111 = ref span54[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -284749,30 +235078,24 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029759u, new Vector3(-342.33618f, 19.004045f, 77.04285f), 815); obj99.Steps = list157; reference111 = obj99; - num++; - ref QuestSequence reference112 = ref span156[num]; + ref QuestSequence reference112 = ref span54[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj100.Steps = list158; reference112 = obj100; - num++; - ref QuestSequence reference113 = ref span156[num]; + ref QuestSequence reference113 = ref span54[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -284780,23 +235103,18 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1029761u, new Vector3(-503.19678f, 45.72556f, -254.01697f), 815); obj101.Steps = list159; reference113 = obj101; - num++; - ref QuestSequence reference114 = ref span156[num]; + ref QuestSequence reference114 = ref span54[3]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj102.Steps = list160; reference114 = obj102; questRoot18.QuestSequence = list156; @@ -284806,16 +235124,13 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot19.Author = list161; - index = 4; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference115 = ref span162[num]; + num = 4; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span55 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference115 = ref span55[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -284823,35 +235138,29 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029765u, new Vector3(-455.40552f, 45.692944f, -240.52802f), 815); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029765u, new Vector3(-455.40552f, 45.692944f, -240.52802f), 815); obj103.Steps = list163; reference115 = obj103; - num++; - ref QuestSequence reference116 = ref span162[num]; + ref QuestSequence reference116 = ref span55[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3525) }; - num2++; - span164[num2] = new QuestStep(EInteractionType.Interact, 1029768u, new Vector3(7.9804688f, 45.619083f, -583.7339f), 815) + span56[1] = new QuestStep(EInteractionType.Interact, 1029768u, new Vector3(7.9804688f, 45.619083f, -583.7339f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj104.Steps = list164; reference116 = obj104; - num++; - ref QuestSequence reference117 = ref span162[num]; + ref QuestSequence reference117 = ref span55[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -284859,34 +235168,27 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - ref QuestStep reference118 = ref span165[index2]; + ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list165)[0]; 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); - 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."; + CollectionsMarshal.AsSpan(list166)[0] = "(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; - num++; - ref QuestSequence reference119 = ref span162[num]; + ref QuestSequence reference119 = ref span55[3]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj106.Steps = list167; reference119 = obj106; questRoot19.QuestSequence = list162; @@ -284896,16 +235198,13 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "liza"; + CollectionsMarshal.AsSpan(list168)[0] = "liza"; questRoot20.Author = list168; - index = 4; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference120 = ref span169[num]; + num = 4; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span57 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference120 = ref span57[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -284913,27 +235212,21 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029775u, new Vector3(20.675903f, -91.19236f, 509.78857f), 815); obj107.Steps = list170; reference120 = obj107; - num++; - ref QuestSequence reference121 = ref span169[num]; + ref QuestSequence reference121 = ref span57[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj108.Steps = list171; reference121 = obj108; - num++; - ref QuestSequence reference122 = ref span169[num]; + ref QuestSequence reference122 = ref span57[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -284941,28 +235234,23 @@ public static class AssemblyQuestLoader num2 = 2; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010052u, new Vector3(158.804f, -61.09476f, 674.8915f), 815) + Span span58 = CollectionsMarshal.AsSpan(list172); + span58[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010052u, new Vector3(158.804f, -61.09476f, 674.8915f), 815) { AetherCurrentId = 2818261u }; - index2++; - span172[index2] = new QuestStep(EInteractionType.Interact, 1029777u, new Vector3(147.93616f, -75.016464f, 642.359f), 815); + span58[1] = new QuestStep(EInteractionType.Interact, 1029777u, new Vector3(147.93616f, -75.016464f, 642.359f), 815); obj109.Steps = list172; reference122 = obj109; - num++; - ref QuestSequence reference123 = ref span169[num]; + ref QuestSequence reference123 = ref span57[3]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj110.Steps = list173; reference123 = obj110; questRoot20.QuestSequence = list169; @@ -284972,16 +235260,13 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - Span span174 = CollectionsMarshal.AsSpan(list174); - index = 0; - span174[index] = "liza"; + CollectionsMarshal.AsSpan(list174)[0] = "liza"; questRoot21.Author = list174; - index = 5; - List list175 = new List(index); - CollectionsMarshal.SetCount(list175, index); - Span span175 = CollectionsMarshal.AsSpan(list175); - num = 0; - ref QuestSequence reference124 = ref span175[num]; + num = 5; + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + Span span59 = CollectionsMarshal.AsSpan(list175); + ref QuestSequence reference124 = ref span59[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -284989,27 +235274,21 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029783u, new Vector3(-281.36108f, -62.86976f, 382.62f), 815); + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029783u, new Vector3(-281.36108f, -62.86976f, 382.62f), 815); obj111.Steps = list176; reference124 = obj111; - num++; - ref QuestSequence reference125 = ref span175[num]; + ref QuestSequence reference125 = ref span59[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj112.Steps = list177; reference125 = obj112; - num++; - ref QuestSequence reference126 = ref span175[num]; + ref QuestSequence reference126 = ref span59[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -285017,9 +235296,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Duty, null, null, 815) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Duty, null, null, 815) { DutyOptions = new DutyOptions { @@ -285028,23 +235305,19 @@ public static class AssemblyQuestLoader }; obj113.Steps = list178; reference126 = obj113; - num++; - span175[num] = new QuestSequence + span59[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference127 = ref span175[num]; + ref QuestSequence reference127 = ref span59[4]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -285057,16 +235330,13 @@ public static class AssemblyQuestLoader num = 1; List list180 = new List(num); CollectionsMarshal.SetCount(list180, num); - Span span180 = CollectionsMarshal.AsSpan(list180); - index = 0; - span180[index] = "liza"; + CollectionsMarshal.AsSpan(list180)[0] = "liza"; questRoot22.Author = list180; - index = 3; - List list181 = new List(index); - CollectionsMarshal.SetCount(list181, index); - Span span181 = CollectionsMarshal.AsSpan(list181); - num = 0; - ref QuestSequence reference128 = ref span181[num]; + num = 3; + List list181 = new List(num); + CollectionsMarshal.SetCount(list181, num); + Span span60 = CollectionsMarshal.AsSpan(list181); + ref QuestSequence reference128 = ref span60[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -285074,26 +235344,21 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029786u, new Vector3(-431.08264f, -86.381516f, 462.33313f), 815) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029786u, new Vector3(-431.08264f, -86.381516f, 462.33313f), 815) { StopDistance = 5f }; obj115.Steps = list182; reference128 = obj115; - num++; - ref QuestSequence reference129 = ref span181[num]; + ref QuestSequence reference129 = ref span60[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -285104,8 +235369,7 @@ public static class AssemblyQuestLoader }; obj116.Steps = list183; reference129 = obj116; - num++; - ref QuestSequence reference130 = ref span181[num]; + ref QuestSequence reference130 = ref span60[2]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -285113,9 +235377,7 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - ref QuestStep reference131 = ref span184[index2]; + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list184)[0]; QuestStep obj118 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 7f, @@ -285125,12 +235387,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumPendants } }; - num4 = 1; - List list185 = new List(num4); - CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = new DialogueChoice + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMD117_03622_Q2_000_000") @@ -285146,26 +235406,21 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "liza"; + CollectionsMarshal.AsSpan(list186)[0] = "liza"; questRoot23.Author = list186; - index = 5; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference132 = ref span187[num]; + num = 5; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span61 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference132 = ref span61[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -285183,8 +235438,7 @@ public static class AssemblyQuestLoader }; obj119.Steps = list188; reference132 = obj119; - num++; - ref QuestSequence reference133 = ref span187[num]; + ref QuestSequence reference133 = ref span61[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -285192,9 +235446,8 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) + Span span62 = CollectionsMarshal.AsSpan(list189); + span62[0] = new QuestStep(EInteractionType.Interact, 1027264u, new Vector3(60.593506f, 36.247692f, -171.80133f), 819) { TargetTerritoryId = (ushort)815, AethernetShortcut = new AethernetShortcut @@ -285203,25 +235456,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - index2++; - span189[index2] = new QuestStep(EInteractionType.Interact, 1030623u, new Vector3(665.6748f, -50.355476f, -641.5351f), 815) + span62[1] = new QuestStep(EInteractionType.Interact, 1030623u, new Vector3(665.6748f, -50.355476f, -641.5351f), 815) { Fly = true }; obj120.Steps = list189; reference133 = obj120; - num++; - ref QuestSequence reference134 = ref span187[num]; + ref QuestSequence reference134 = ref span61[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list190 = new List(index2); - CollectionsMarshal.SetCount(list190, index2); - Span span190 = CollectionsMarshal.AsSpan(list190); - num2 = 0; - ref QuestStep reference135 = ref span190[num2]; + num2 = 1; + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list190)[0]; QuestStep obj122 = new QuestStep(EInteractionType.Combat, 2010165u, new Vector3(483.48206f, -50.46167f, -631.52515f), 815) { Fly = true, @@ -285230,15 +235479,12 @@ public static class AssemblyQuestLoader num3 = 1; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span191 = CollectionsMarshal.AsSpan(list191); - num4 = 0; - span191[num4] = 10836u; + CollectionsMarshal.AsSpan(list191)[0] = 10836u; obj122.KillEnemyDataIds = list191; reference135 = obj122; obj121.Steps = list190; reference134 = obj121; - num++; - ref QuestSequence reference136 = ref span187[num]; + ref QuestSequence reference136 = ref span61[3]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -285246,23 +235492,18 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1030624u, new Vector3(500.54163f, -50.72601f, -647.5471f), 815); + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1030624u, new Vector3(500.54163f, -50.72601f, -647.5471f), 815); obj123.Steps = list192; reference136 = obj123; - num++; - ref QuestSequence reference137 = ref span187[num]; + ref QuestSequence reference137 = ref span61[4]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, NextQuestId = new QuestId(3624) @@ -285276,16 +235517,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "liza"; + CollectionsMarshal.AsSpan(list194)[0] = "liza"; questRoot24.Author = list194; - index = 5; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference138 = ref span195[num]; + num = 5; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span63 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference138 = ref span63[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -285293,9 +235531,7 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -285313,35 +235549,29 @@ public static class AssemblyQuestLoader }; obj125.Steps = list196; reference138 = obj125; - num++; - ref QuestSequence reference139 = ref span195[num]; + ref QuestSequence reference139 = ref span63[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list197 = new List(index2); - CollectionsMarshal.SetCount(list197, index2); - Span span197 = CollectionsMarshal.AsSpan(list197); - num2 = 0; - ref QuestStep reference140 = ref span197[num2]; + num2 = 1; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list197)[0]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2010166u, new Vector3(599.115f, -33.61566f, -304.49384f), 815) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - Span span198 = CollectionsMarshal.AsSpan(list198); - num3 = 0; - span198[num3] = 10837u; + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + CollectionsMarshal.AsSpan(list198)[0] = 10837u; obj127.KillEnemyDataIds = list198; reference140 = obj127; obj126.Steps = list197; reference139 = obj126; - num++; - ref QuestSequence reference141 = ref span195[num]; + ref QuestSequence reference141 = ref span63[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 @@ -285349,33 +235579,27 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true }; obj128.Steps = list199; reference141 = obj128; - num++; - ref QuestSequence reference142 = ref span195[num]; + ref QuestSequence reference142 = ref span63[3]; QuestSequence obj129 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj129.Steps = list200; reference142 = obj129; - num++; - ref QuestSequence reference143 = ref span195[num]; + ref QuestSequence reference143 = ref span63[4]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -285383,9 +235607,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - ref QuestStep reference144 = ref span201[index2]; + ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list201)[0]; QuestStep obj131 = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true @@ -285393,9 +235615,7 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - num4 = 0; - span202[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list202)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKBA411_03624_Q1_000_100"), @@ -285413,26 +235633,21 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span203 = CollectionsMarshal.AsSpan(list203); - index = 0; - span203[index] = "liza"; + CollectionsMarshal.AsSpan(list203)[0] = "liza"; questRoot25.Author = list203; - index = 9; - List list204 = new List(index); - CollectionsMarshal.SetCount(list204, index); - Span span204 = CollectionsMarshal.AsSpan(list204); - num = 0; - ref QuestSequence reference145 = ref span204[num]; + num = 9; + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + Span span64 = CollectionsMarshal.AsSpan(list204); + ref QuestSequence reference145 = ref span64[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -285450,8 +235665,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list205; reference145 = obj132; - num++; - ref QuestSequence reference146 = ref span204[num]; + ref QuestSequence reference146 = ref span64[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -285459,33 +235673,27 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.Interact, 1030626u, new Vector3(331.62415f, 1.4685826f, -244.95312f), 815) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1030626u, new Vector3(331.62415f, 1.4685826f, -244.95312f), 815) { Fly = true }; obj133.Steps = list206; reference146 = obj133; - num++; - ref QuestSequence reference147 = ref span204[num]; + ref QuestSequence reference147 = ref span64[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj134.Steps = list207; reference147 = obj134; - num++; - ref QuestSequence reference148 = ref span204[num]; + ref QuestSequence reference148 = ref span64[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -285493,34 +235701,28 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.Interact, 1030628u, new Vector3(407.6753f, -28.443933f, 260.8224f), 815) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1030628u, new Vector3(407.6753f, -28.443933f, 260.8224f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj135.Steps = list208; reference148 = obj135; - num++; - ref QuestSequence reference149 = ref span204[num]; + ref QuestSequence reference149 = ref span64[4]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj136.Steps = list209; reference149 = obj136; - num++; - ref QuestSequence reference150 = ref span204[num]; + ref QuestSequence reference150 = ref span64[5]; QuestSequence obj137 = new QuestSequence { Sequence = 5 @@ -285528,41 +235730,33 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - ref QuestStep reference151 = ref span210[index2]; + ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list210)[0]; QuestStep obj138 = new QuestStep(EInteractionType.Combat, 1030632u, new Vector3(550.225f, -45.678886f, 282.82593f), 815) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list211 = new List(num4); - CollectionsMarshal.SetCount(list211, num4); - Span span211 = CollectionsMarshal.AsSpan(list211); - num3 = 0; - span211[num3] = 10838u; + num3 = 1; + List list211 = new List(num3); + CollectionsMarshal.SetCount(list211, num3); + CollectionsMarshal.AsSpan(list211)[0] = 10838u; obj138.KillEnemyDataIds = list211; reference151 = obj138; obj137.Steps = list210; reference150 = obj137; - num++; - ref QuestSequence reference152 = ref span204[num]; + ref QuestSequence reference152 = ref span64[6]; QuestSequence obj139 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj139.Steps = list212; reference152 = obj139; - num++; - ref QuestSequence reference153 = ref span204[num]; + ref QuestSequence reference153 = ref span64[7]; QuestSequence obj140 = new QuestSequence { Sequence = 7 @@ -285570,26 +235764,21 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 1030631u, new Vector3(367.72717f, -28.562725f, 356.19116f), 815) + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1030631u, new Vector3(367.72717f, -28.562725f, 356.19116f), 815) { Fly = true }; obj140.Steps = list213; reference153 = obj140; - num++; - ref QuestSequence reference154 = ref span204[num]; + ref QuestSequence reference154 = ref span64[8]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -285604,16 +235793,13 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - Span span215 = CollectionsMarshal.AsSpan(list215); - index = 0; - span215[index] = "liza"; + CollectionsMarshal.AsSpan(list215)[0] = "liza"; questRoot26.Author = list215; - index = 4; - List list216 = new List(index); - CollectionsMarshal.SetCount(list216, index); - Span span216 = CollectionsMarshal.AsSpan(list216); - num = 0; - ref QuestSequence reference155 = ref span216[num]; + num = 4; + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span65 = CollectionsMarshal.AsSpan(list216); + ref QuestSequence reference155 = ref span65[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -285621,9 +235807,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -285641,18 +235825,15 @@ public static class AssemblyQuestLoader }; obj142.Steps = list217; reference155 = obj142; - num++; - ref QuestSequence reference156 = ref span216[num]; + ref QuestSequence reference156 = ref span65[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list218 = new List(index2); - CollectionsMarshal.SetCount(list218, index2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num2 = 0; - ref QuestStep reference157 = ref span218[num2]; + num2 = 1; + List list218 = new List(num2); + CollectionsMarshal.SetCount(list218, num2); + ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list218)[0]; QuestStep obj144 = new QuestStep(EInteractionType.SinglePlayerDuty, 1030636u, new Vector3(342.8855f, -35.843185f, 76.58496f), 815) { Fly = true, @@ -285665,21 +235846,17 @@ public static class AssemblyQuestLoader num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span219 = CollectionsMarshal.AsSpan(list219); - num4 = 0; - span219[num4] = "Sometimes the movement is the cause of a duty failing."; + CollectionsMarshal.AsSpan(list219)[0] = "Sometimes the movement is the cause of a duty failing."; obj145.Notes = list219; obj144.SinglePlayerDutyOptions = obj145; reference157 = obj144; obj143.Steps = list218; reference156 = obj143; - num++; - span216[num] = new QuestSequence + span65[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference158 = ref span216[num]; + ref QuestSequence reference158 = ref span65[3]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -285687,9 +235864,7 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -285704,26 +235879,21 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - Span span221 = CollectionsMarshal.AsSpan(list221); - index = 0; - span221[index] = "liza"; + CollectionsMarshal.AsSpan(list221)[0] = "liza"; questRoot27.Author = list221; - index = 7; - List list222 = new List(index); - CollectionsMarshal.SetCount(list222, index); - Span span222 = CollectionsMarshal.AsSpan(list222); - num = 0; - ref QuestSequence reference159 = ref span222[num]; + num = 7; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + Span span66 = CollectionsMarshal.AsSpan(list222); + ref QuestSequence reference159 = ref span66[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -285741,8 +235911,7 @@ public static class AssemblyQuestLoader }; obj147.Steps = list223; reference159 = obj147; - num++; - ref QuestSequence reference160 = ref span222[num]; + ref QuestSequence reference160 = ref span66[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -285750,9 +235919,7 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - ref QuestStep reference161 = ref span224[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list224)[0]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1030638u, new Vector3(543.8773f, -6.503428f, 811.7036f), 813) { Fly = true, @@ -285765,30 +235932,25 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - num4 = 1; - List list225 = new List(num4); - CollectionsMarshal.SetCount(list225, num4); - Span span225 = CollectionsMarshal.AsSpan(list225); - num3 = 0; - span225[num3] = 813; + num3 = 1; + List list225 = new List(num3); + CollectionsMarshal.SetCount(list225, num3); + CollectionsMarshal.AsSpan(list225)[0] = 813; skipAetheryteCondition.InTerritory = list225; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj149.SkipConditions = skipConditions; reference161 = obj149; obj148.Steps = list224; reference160 = obj148; - num++; - ref QuestSequence reference162 = ref span222[num]; + ref QuestSequence reference162 = ref span66[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list226 = new List(index2); - CollectionsMarshal.SetCount(list226, index2); - Span span226 = CollectionsMarshal.AsSpan(list226); - num2 = 0; - ref QuestStep reference163 = ref span226[num2]; + num2 = 1; + List list226 = new List(num2); + CollectionsMarshal.SetCount(list226, num2); + ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list226)[0]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 2010215u, new Vector3(523.9795f, -2.0599976f, 795.1018f), 813) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -285796,15 +235958,12 @@ public static class AssemblyQuestLoader num3 = 1; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num4 = 0; - span227[num4] = 10839u; + CollectionsMarshal.AsSpan(list227)[0] = 10839u; obj151.KillEnemyDataIds = list227; reference163 = obj151; obj150.Steps = list226; reference162 = obj150; - num++; - ref QuestSequence reference164 = ref span222[num]; + ref QuestSequence reference164 = ref span66[3]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -285812,27 +235971,21 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 1030639u, new Vector3(542.8092f, -6.489782f, 811.79517f), 813); + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1030639u, new Vector3(542.8092f, -6.489782f, 811.79517f), 813); obj152.Steps = list228; reference164 = obj152; - num++; - ref QuestSequence reference165 = ref span222[num]; + ref QuestSequence reference165 = ref span66[4]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj153.Steps = list229; reference165 = obj153; - num++; - ref QuestSequence reference166 = ref span222[num]; + ref QuestSequence reference166 = ref span66[5]; QuestSequence obj154 = new QuestSequence { Sequence = 5 @@ -285840,23 +235993,18 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1031033u, new Vector3(540.6727f, -6.4392195f, 801.87683f), 813); obj154.Steps = list230; reference166 = obj154; - num++; - ref QuestSequence reference167 = ref span222[num]; + ref QuestSequence reference167 = ref span66[6]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, @@ -285871,16 +236019,13 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "liza"; + CollectionsMarshal.AsSpan(list232)[0] = "liza"; questRoot28.Author = list232; - index = 8; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference168 = ref span233[num]; + num = 8; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span67 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference168 = ref span67[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -285888,9 +236033,7 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq, SkipConditions = new SkipConditions @@ -285908,25 +236051,21 @@ public static class AssemblyQuestLoader }; obj156.Steps = list234; reference168 = obj156; - num++; - ref QuestSequence reference169 = ref span233[num]; + ref QuestSequence reference169 = ref span67[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj157.Steps = list235; reference169 = obj157; - num++; - ref QuestSequence reference170 = ref span233[num]; + ref QuestSequence reference170 = ref span67[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -285934,26 +236073,21 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1030625u, new Vector3(218.73804f, 7.1558266f, -249.1341f), 815) { Fly = true }; obj158.Steps = list236; reference170 = obj158; - num++; - ref QuestSequence reference171 = ref span233[num]; + ref QuestSequence reference171 = ref span67[3]; QuestSequence obj159 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengTwine, @@ -285964,13 +236098,11 @@ public static class AssemblyQuestLoader }; obj159.Steps = list237; reference171 = obj159; - num++; - span233[num] = new QuestSequence + span67[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference172 = ref span233[num]; + ref QuestSequence reference172 = ref span67[5]; QuestSequence obj160 = new QuestSequence { Sequence = 5 @@ -285978,30 +236110,24 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815); + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1030641u, new Vector3(-255.8786f, 23.447075f, -288.4718f), 815); obj160.Steps = list238; reference172 = obj160; - num++; - ref QuestSequence reference173 = ref span233[num]; + ref QuestSequence reference173 = ref span67[6]; QuestSequence obj161 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj161.Steps = list239; reference173 = obj161; - num++; - ref QuestSequence reference174 = ref span233[num]; + ref QuestSequence reference174 = ref span67[7]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -286009,9 +236135,7 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -286029,30 +236153,24 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list241)[0] = "plogon_enjoyer"; questRoot29.Author = list241; - index = 9; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference175 = ref span242[num]; + num = 9; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span68 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference175 = ref span68[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj163.Steps = list243; reference175 = obj163; - num++; - ref QuestSequence reference176 = ref span242[num]; + ref QuestSequence reference176 = ref span68[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -286060,9 +236178,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1030831u, new Vector3(26.260742f, 35.999687f, -129.2287f), 819) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1030831u, new Vector3(26.260742f, 35.999687f, -129.2287f), 819) { AethernetShortcut = new AethernetShortcut { @@ -286072,26 +236188,22 @@ public static class AssemblyQuestLoader }; obj164.Steps = list244; reference176 = obj164; - num++; - ref QuestSequence reference177 = ref span242[num]; + ref QuestSequence reference177 = ref span68[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj165.Steps = list245; reference177 = obj165; - num++; - ref QuestSequence reference178 = ref span242[num]; + ref QuestSequence reference178 = ref span68[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -286099,35 +236211,29 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.Interact, 1030833u, new Vector3(340.90173f, -35.861984f, 74.23511f), 815) + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1030833u, new Vector3(340.90173f, -35.861984f, 74.23511f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj166.Steps = list246; reference178 = obj166; - num++; - ref QuestSequence reference179 = ref span242[num]; + ref QuestSequence reference179 = ref span68[4]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj167.Steps = list247; reference179 = obj167; - num++; - ref QuestSequence reference180 = ref span242[num]; + ref QuestSequence reference180 = ref span68[5]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -286135,35 +236241,29 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.Interact, 1030835u, new Vector3(-67.826416f, 105.29415f, -252.94885f), 816) + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Interact, 1030835u, new Vector3(-67.826416f, 105.29415f, -252.94885f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj168.Steps = list248; reference180 = obj168; - num++; - ref QuestSequence reference181 = ref span242[num]; + ref QuestSequence reference181 = ref span68[6]; QuestSequence obj169 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj169.Steps = list249; reference181 = obj169; - num++; - ref QuestSequence reference182 = ref span242[num]; + ref QuestSequence reference182 = ref span68[7]; QuestSequence obj170 = new QuestSequence { Sequence = 7 @@ -286171,27 +236271,22 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 2010361u, new Vector3(55.61914f, 165.42297f, -302.66272f), 813) + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 2010361u, new Vector3(55.61914f, 165.42297f, -302.66272f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj170.Steps = list250; reference182 = obj170; - num++; - ref QuestSequence reference183 = ref span242[num]; + ref QuestSequence reference183 = ref span68[8]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -286210,16 +236305,13 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - Span span252 = CollectionsMarshal.AsSpan(list252); - index = 0; - span252[index] = "liza"; + CollectionsMarshal.AsSpan(list252)[0] = "liza"; questRoot30.Author = list252; - index = 5; - List list253 = new List(index); - CollectionsMarshal.SetCount(list253, index); - Span span253 = CollectionsMarshal.AsSpan(list253); - num = 0; - ref QuestSequence reference184 = ref span253[num]; + num = 5; + List list253 = new List(num); + CollectionsMarshal.SetCount(list253, num); + Span span69 = CollectionsMarshal.AsSpan(list253); + ref QuestSequence reference184 = ref span69[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -286227,26 +236319,21 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027231u, new Vector3(65.35437f, 1.7160122f, 249.83594f), 819) { StopDistance = 7f }; obj172.Steps = list254; reference184 = obj172; - num++; - ref QuestSequence reference185 = ref span253[num]; + ref QuestSequence reference185 = ref span69[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -286257,8 +236344,7 @@ public static class AssemblyQuestLoader }; obj173.Steps = list255; reference185 = obj173; - num++; - ref QuestSequence reference186 = ref span253[num]; + ref QuestSequence reference186 = ref span69[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -286266,47 +236352,36 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 1030165u, new Vector3(-249.28668f, 18.603912f, 399.31323f), 814) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1030165u, new Vector3(-249.28668f, 18.603912f, 399.31323f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj174.Steps = list256; reference186 = obj174; - num++; - ref QuestSequence reference187 = ref span253[num]; + ref QuestSequence reference187 = ref span69[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list257 = new List(index2); - CollectionsMarshal.SetCount(list257, index2); - Span span257 = CollectionsMarshal.AsSpan(list257); - num2 = 0; - ref QuestStep reference188 = ref span257[num2]; + num2 = 3; + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + Span span70 = CollectionsMarshal.AsSpan(list257); + ref QuestStep reference188 = ref span70[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1030170u, new Vector3(-87.32745f, 11.115211f, 312.09277f), 814); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list258; reference188 = questStep14; - num2++; - ref QuestStep reference189 = ref span257[num2]; + ref QuestStep reference189 = ref span70[1]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, 1030167u, new Vector3(-37.644104f, 7.0351543f, 372.42688f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -286314,55 +236389,39 @@ public static class AssemblyQuestLoader num3 = 2; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span259 = CollectionsMarshal.AsSpan(list259); - num4 = 0; - span259[num4] = 10860u; - num4++; - span259[num4] = 10861u; + Span span72 = CollectionsMarshal.AsSpan(list259); + span72[0] = 10860u; + span72[1] = 10861u; obj176.KillEnemyDataIds = list259; - 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); + 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); obj176.CompletionQuestVariablesFlags = list260; reference189 = obj176; - num2++; - ref QuestStep reference190 = ref span257[num2]; + ref QuestStep reference190 = ref span70[2]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list261; reference190 = questStep15; obj175.Steps = list257; reference187 = obj175; - num++; - ref QuestSequence reference191 = ref span253[num]; + ref QuestSequence reference191 = ref span69[4]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -286370,9 +236429,7 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030171u, new Vector3(164.4159f, 39.902184f, 564.9957f), 814); + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030171u, new Vector3(164.4159f, 39.902184f, 564.9957f), 814); obj177.Steps = list262; reference191 = obj177; questRoot30.QuestSequence = list253; @@ -286382,33 +236439,27 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot31.Author = list263; - index = 3; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference192 = ref span264[num]; + num = 3; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span75 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference192 = ref span75[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj178.Steps = list265; reference192 = obj178; - num++; - ref QuestSequence reference193 = ref span264[num]; + ref QuestSequence reference193 = ref span75[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -286416,26 +236467,21 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030179u, new Vector3(167.65088f, 40.011803f, 563.1647f), 814) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030179u, new Vector3(167.65088f, 40.011803f, 563.1647f), 814) { StopDistance = 7f }; obj179.Steps = list266; reference193 = obj179; - num++; - ref QuestSequence reference194 = ref span264[num]; + ref QuestSequence reference194 = ref span75[2]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -286448,16 +236494,13 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - Span span268 = CollectionsMarshal.AsSpan(list268); - index = 0; - span268[index] = "liza"; + CollectionsMarshal.AsSpan(list268)[0] = "liza"; questRoot32.Author = list268; - index = 8; - List list269 = new List(index); - CollectionsMarshal.SetCount(list269, index); - Span span269 = CollectionsMarshal.AsSpan(list269); - num = 0; - ref QuestSequence reference195 = ref span269[num]; + num = 8; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span76 = CollectionsMarshal.AsSpan(list269); + ref QuestSequence reference195 = ref span76[0]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -286465,31 +236508,26 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030184u, new Vector3(4.257263f, 82.8f, 44.663086f), 820) { StopDistance = 7f }; obj181.Steps = list270; reference195 = obj181; - num++; - ref QuestSequence reference196 = ref span269[num]; + ref QuestSequence reference196 = ref span76[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.Eulmore }; - num2++; - span271[num2] = new QuestStep(EInteractionType.Interact, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) + span77[1] = new QuestStep(EInteractionType.Interact, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) { AethernetShortcut = new AethernetShortcut { @@ -286499,8 +236537,7 @@ public static class AssemblyQuestLoader }; obj182.Steps = list271; reference196 = obj182; - num++; - ref QuestSequence reference197 = ref span269[num]; + ref QuestSequence reference197 = ref span76[2]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -286508,26 +236545,21 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.UseItem, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.UseItem, 1030190u, new Vector3(-71.39697f, -0.8649193f, 66.11731f), 820) { ItemId = 2002609u }; obj183.Steps = list272; reference197 = obj183; - num++; - ref QuestSequence reference198 = ref span269[num]; + ref QuestSequence reference198 = ref span76[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -286537,8 +236569,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list273; reference198 = obj184; - num++; - ref QuestSequence reference199 = ref span269[num]; + ref QuestSequence reference199 = ref span76[4]; QuestSequence obj185 = new QuestSequence { Sequence = 4 @@ -286546,26 +236577,21 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.UseItem, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.UseItem, 1030191u, new Vector3(-6.729248f, 44.999493f, -22.537598f), 820) { ItemId = 2002609u }; obj185.Steps = list274; reference199 = obj185; - num++; - ref QuestSequence reference200 = ref span269[num]; + ref QuestSequence reference200 = ref span76[5]; QuestSequence obj186 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -286575,8 +236601,7 @@ public static class AssemblyQuestLoader }; obj186.Steps = list275; reference200 = obj186; - num++; - ref QuestSequence reference201 = ref span269[num]; + ref QuestSequence reference201 = ref span76[6]; QuestSequence obj187 = new QuestSequence { Sequence = 6 @@ -286584,33 +236609,26 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.UseItem, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.UseItem, 1030193u, new Vector3(20.950623f, 82.835106f, -49.607117f), 820) { ItemId = 2002609u }; obj187.Steps = list276; reference201 = obj187; - num++; - ref QuestSequence reference202 = ref span269[num]; + ref QuestSequence reference202 = ref span76[7]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list277 = new List(index2); - CollectionsMarshal.SetCount(list277, index2); - Span span277 = CollectionsMarshal.AsSpan(list277); - num2 = 0; - ref QuestStep reference203 = ref span277[num2]; + num2 = 1; + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + ref QuestStep reference203 = ref CollectionsMarshal.AsSpan(list277)[0]; QuestStep questStep16 = new QuestStep(EInteractionType.CompleteQuest, 1030194u, new Vector3(27.359375f, 82.903946f, 22.384888f), 820); - num4 = 1; - List list278 = new List(num4); - CollectionsMarshal.SetCount(list278, num4); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = new DialogueChoice + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + CollectionsMarshal.AsSpan(list278)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME103_03632_Q1_000_000"), @@ -286627,16 +236645,13 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - Span span279 = CollectionsMarshal.AsSpan(list279); - index = 0; - span279[index] = "liza"; + CollectionsMarshal.AsSpan(list279)[0] = "liza"; questRoot33.Author = list279; - index = 6; - List list280 = new List(index); - CollectionsMarshal.SetCount(list280, index); - Span span280 = CollectionsMarshal.AsSpan(list280); - num = 0; - ref QuestSequence reference204 = ref span280[num]; + num = 6; + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + Span span78 = CollectionsMarshal.AsSpan(list280); + ref QuestSequence reference204 = ref span78[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -286644,33 +236659,27 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030196u, new Vector3(21.377869f, 82.782265f, 25.009521f), 820) + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030196u, new Vector3(21.377869f, 82.782265f, 25.009521f), 820) { StopDistance = 7f }; obj189.Steps = list281; reference204 = obj189; - num++; - ref QuestSequence reference205 = ref span280[num]; + ref QuestSequence reference205 = ref span78[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj190.Steps = list282; reference205 = obj190; - num++; - ref QuestSequence reference206 = ref span280[num]; + ref QuestSequence reference206 = ref span78[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -286678,141 +236687,102 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); obj191.Steps = list283; reference206 = obj191; - num++; - ref QuestSequence reference207 = ref span280[num]; + ref QuestSequence reference207 = ref span78[3]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - index2 = 5; - List list284 = new List(index2); - CollectionsMarshal.SetCount(list284, index2); - Span span284 = CollectionsMarshal.AsSpan(list284); - num2 = 0; - ref QuestStep reference208 = ref span284[num2]; + num2 = 5; + List list284 = new List(num2); + CollectionsMarshal.SetCount(list284, num2); + Span span79 = CollectionsMarshal.AsSpan(list284); + ref QuestStep reference208 = ref span79[0]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list285; skipConditions2.StepIf = skipStepConditions; questStep17.SkipConditions = skipConditions2; reference208 = questStep17; - num2++; - ref QuestStep reference209 = ref span284[num2]; + ref QuestStep reference209 = ref span79[1]; QuestStep obj193 = new QuestStep(EInteractionType.Interact, 2010088u, new Vector3(-448.2033f, 8.316162f, 546.25757f), 814) { StopDistance = 4f }; - 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); + 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); obj193.CompletionQuestVariablesFlags = list286; reference209 = obj193; - num2++; - ref QuestStep reference210 = ref span284[num2]; + ref QuestStep reference210 = ref span79[2]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list287; reference210 = questStep18; - num2++; - ref QuestStep reference211 = ref span284[num2]; + ref QuestStep reference211 = ref span79[3]; QuestStep questStep19 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-458.26974f, 18.818102f, 479.86996f), 814); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list288; skipConditions3.StepIf = skipStepConditions2; questStep19.SkipConditions = skipConditions3; reference211 = questStep19; - num2++; - ref QuestStep reference212 = ref span284[num2]; + ref QuestStep reference212 = ref span79[4]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list289; reference212 = questStep20; obj192.Steps = list284; reference207 = obj192; - num++; - ref QuestSequence reference213 = ref span280[num]; + ref QuestSequence reference213 = ref span78[4]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -286820,23 +236790,19 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - ref QuestStep reference214 = ref span290[index2]; + ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list290)[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1027288u, new Vector3(-457.3587f, 8.987028f, 537.04126f), 814); - num4 = 2; - List list291 = new List(num4); - CollectionsMarshal.SetCount(list291, num4); - Span span291 = CollectionsMarshal.AsSpan(list291); - num3 = 0; - span291[num3] = new DialogueChoice + num3 = 2; + List list291 = new List(num3); + CollectionsMarshal.SetCount(list291, num3); + Span span85 = CollectionsMarshal.AsSpan(list291); + span85[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME104_03633_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKME104_03633_A1_000_006") }; - num3++; - span291[num3] = new DialogueChoice + span85[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME104_03633_Q2_000_000"), @@ -286846,18 +236812,15 @@ public static class AssemblyQuestLoader reference214 = questStep21; obj194.Steps = list290; reference213 = obj194; - num++; - ref QuestSequence reference215 = ref span280[num]; + ref QuestSequence reference215 = ref span78[5]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj195.Steps = list292; reference215 = obj195; questRoot33.QuestSequence = list280; @@ -286867,16 +236830,13 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - Span span293 = CollectionsMarshal.AsSpan(list293); - index = 0; - span293[index] = "liza"; + CollectionsMarshal.AsSpan(list293)[0] = "liza"; questRoot34.Author = list293; - index = 7; - List list294 = new List(index); - CollectionsMarshal.SetCount(list294, index); - Span span294 = CollectionsMarshal.AsSpan(list294); - num = 0; - ref QuestSequence reference216 = ref span294[num]; + num = 7; + List list294 = new List(num); + CollectionsMarshal.SetCount(list294, num); + Span span86 = CollectionsMarshal.AsSpan(list294); + ref QuestSequence reference216 = ref span86[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -286884,27 +236844,21 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030197u, new Vector3(-456.68726f, 65.77815f, 79.9115f), 814); obj196.Steps = list295; reference216 = obj196; - num++; - ref QuestSequence reference217 = ref span294[num]; + ref QuestSequence reference217 = ref span86[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj197.Steps = list296; reference217 = obj197; - num++; - ref QuestSequence reference218 = ref span294[num]; + ref QuestSequence reference218 = ref span86[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -286912,27 +236866,21 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.Interact, 1030207u, new Vector3(-448.661f, 334.0526f, -36.91156f), 814); + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1030207u, new Vector3(-448.661f, 334.0526f, -36.91156f), 814); obj198.Steps = list297; reference218 = obj198; - num++; - ref QuestSequence reference219 = ref span294[num]; + ref QuestSequence reference219 = ref span86[3]; QuestSequence obj199 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj199.Steps = list298; reference219 = obj199; - num++; - ref QuestSequence reference220 = ref span294[num]; + ref QuestSequence reference220 = ref span86[4]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -286940,91 +236888,66 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Snipe, 2010090u, new Vector3(-416.28143f, 354.3297f, 22.47644f), 814) + CollectionsMarshal.AsSpan(list299)[0] = 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; - num++; - ref QuestSequence reference221 = ref span294[num]; + ref QuestSequence reference221 = ref span86[5]; QuestSequence obj201 = new QuestSequence { Sequence = 5 }; - index2 = 3; - List list300 = new List(index2); - CollectionsMarshal.SetCount(list300, index2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num2 = 0; - ref QuestStep reference222 = ref span300[num2]; + num2 = 3; + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + Span span87 = CollectionsMarshal.AsSpan(list300); + ref QuestStep reference222 = ref span87[0]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list301; reference222 = questStep22; - num2++; - ref QuestStep reference223 = ref span300[num2]; + ref QuestStep reference223 = ref span87[1]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2010093u, new Vector3(-132.52466f, 355.24524f, -176.25696f), 814); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list302; reference223 = questStep23; - num2++; - ref QuestStep reference224 = ref span300[num2]; + ref QuestStep reference224 = ref span87[2]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list303; reference224 = questStep24; obj201.Steps = list300; reference221 = obj201; - num++; - ref QuestSequence reference225 = ref span294[num]; + ref QuestSequence reference225 = ref span86[6]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -287032,9 +236955,7 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030211u, new Vector3(-137.3465f, 352.35822f, -188.03699f), 814); + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030211u, new Vector3(-137.3465f, 352.35822f, -188.03699f), 814); obj202.Steps = list304; reference225 = obj202; questRoot34.QuestSequence = list294; @@ -287044,30 +236965,24 @@ public static class AssemblyQuestLoader num = 1; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - Span span305 = CollectionsMarshal.AsSpan(list305); - index = 0; - span305[index] = "liza"; + CollectionsMarshal.AsSpan(list305)[0] = "liza"; questRoot35.Author = list305; - index = 6; - List list306 = new List(index); - CollectionsMarshal.SetCount(list306, index); - Span span306 = CollectionsMarshal.AsSpan(list306); - num = 0; - ref QuestSequence reference226 = ref span306[num]; + num = 6; + List list306 = new List(num); + CollectionsMarshal.SetCount(list306, num); + Span span91 = CollectionsMarshal.AsSpan(list306); + ref QuestSequence reference226 = ref span91[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj203.Steps = list307; reference226 = obj203; - num++; - ref QuestSequence reference227 = ref span306[num]; + ref QuestSequence reference227 = ref span91[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 @@ -287075,39 +236990,31 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1030214u, new Vector3(-119.73761f, 362.56046f, -346.15094f), 814); + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1030214u, new Vector3(-119.73761f, 362.56046f, -346.15094f), 814); obj204.Steps = list308; reference227 = obj204; - num++; - ref QuestSequence reference228 = ref span306[num]; + ref QuestSequence reference228 = ref span91[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list309 = new List(index2); - CollectionsMarshal.SetCount(list309, index2); - Span span309 = CollectionsMarshal.AsSpan(list309); - num2 = 0; - ref QuestStep reference229 = ref span309[num2]; + num2 = 1; + List list309 = new List(num2); + CollectionsMarshal.SetCount(list309, num2); + ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list309)[0]; QuestStep obj206 = new QuestStep(EInteractionType.Combat, 2010094u, new Vector3(-279.07227f, 378.6831f, -404.37933f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list310 = new List(num4); - CollectionsMarshal.SetCount(list310, num4); - Span span310 = CollectionsMarshal.AsSpan(list310); - num3 = 0; - span310[num3] = 10862u; + num3 = 1; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + CollectionsMarshal.AsSpan(list310)[0] = 10862u; obj206.KillEnemyDataIds = list310; reference229 = obj206; obj205.Steps = list309; reference228 = obj205; - num++; - ref QuestSequence reference230 = ref span306[num]; + ref QuestSequence reference230 = ref span91[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -287115,9 +237022,7 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - ref QuestStep reference231 = ref span311[index2]; + ref QuestStep reference231 = ref CollectionsMarshal.AsSpan(list311)[0]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, 2010095u, new Vector3(-168.9021f, 396.8108f, -468.31464f), 814) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -287125,31 +237030,25 @@ public static class AssemblyQuestLoader num3 = 2; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span312 = CollectionsMarshal.AsSpan(list312); - num4 = 0; - span312[num4] = 10862u; - num4++; - span312[num4] = 10864u; + Span span92 = CollectionsMarshal.AsSpan(list312); + span92[0] = 10862u; + span92[1] = 10864u; obj208.KillEnemyDataIds = list312; reference231 = obj208; obj207.Steps = list311; reference230 = obj207; - num++; - ref QuestSequence reference232 = ref span306[num]; + ref QuestSequence reference232 = ref span91[4]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj209.Steps = list313; reference232 = obj209; - num++; - ref QuestSequence reference233 = ref span306[num]; + ref QuestSequence reference233 = ref span91[5]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -287157,14 +237056,12 @@ public static class AssemblyQuestLoader num2 = 2; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) + Span span93 = CollectionsMarshal.AsSpan(list314); + span93[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 814) { Aetheryte = EAetheryteLocation.KholusiaTomra }; - index2++; - span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); + span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1030216u, new Vector3(-445.48718f, 334.0526f, -55.40558f), 814); obj210.Steps = list314; reference233 = obj210; questRoot35.QuestSequence = list306; @@ -287174,30 +237071,24 @@ public static class AssemblyQuestLoader num = 1; List list315 = new List(num); CollectionsMarshal.SetCount(list315, num); - Span span315 = CollectionsMarshal.AsSpan(list315); - index = 0; - span315[index] = "liza"; + CollectionsMarshal.AsSpan(list315)[0] = "liza"; questRoot36.Author = list315; - index = 4; - List list316 = new List(index); - CollectionsMarshal.SetCount(list316, index); - Span span316 = CollectionsMarshal.AsSpan(list316); - num = 0; - ref QuestSequence reference234 = ref span316[num]; + num = 4; + List list316 = new List(num); + CollectionsMarshal.SetCount(list316, num); + Span span94 = CollectionsMarshal.AsSpan(list316); + ref QuestSequence reference234 = ref span94[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj211.Steps = list317; reference234 = obj211; - num++; - ref QuestSequence reference235 = ref span316[num]; + ref QuestSequence reference235 = ref span94[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -287205,54 +237096,45 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.Interact, 1030224u, new Vector3(-437.46094f, 334.0526f, -45.059937f), 814); + CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1030224u, new Vector3(-437.46094f, 334.0526f, -45.059937f), 814); obj212.Steps = list318; reference235 = obj212; - num++; - ref QuestSequence reference236 = ref span316[num]; + ref QuestSequence reference236 = ref span94[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list319 = new List(index2); - CollectionsMarshal.SetCount(list319, index2); - Span span319 = CollectionsMarshal.AsSpan(list319); - num2 = 0; - ref QuestStep reference237 = ref span319[num2]; + num2 = 1; + List list319 = new List(num2); + CollectionsMarshal.SetCount(list319, num2); + ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list319)[0]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1030223u, new Vector3(-436.5454f, 334.0526f, -46.707886f), 814) { StopDistance = 5f }; - num4 = 4; - List list320 = new List(num4); - CollectionsMarshal.SetCount(list320, num4); - Span span320 = CollectionsMarshal.AsSpan(list320); - num3 = 0; - span320[num3] = new DialogueChoice + num3 = 4; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + Span span95 = CollectionsMarshal.AsSpan(list320); + span95[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A1_000_002") }; - num3++; - span320[num3] = new DialogueChoice + span95[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q2_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A2_000_003") }; - num3++; - span320[num3] = new DialogueChoice + span95[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKME107_03636_A3_000_002") }; - num3++; - span320[num3] = new DialogueChoice + span95[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME107_03636_Q4_000_000"), @@ -287262,8 +237144,7 @@ public static class AssemblyQuestLoader reference237 = obj214; obj213.Steps = list319; reference236 = obj213; - num++; - ref QuestSequence reference238 = ref span316[num]; + ref QuestSequence reference238 = ref span94[3]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue @@ -287271,9 +237152,7 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027462u, new Vector3(-121.87384f, 352.35822f, -191.08875f), 814); obj215.Steps = list321; reference238 = obj215; questRoot36.QuestSequence = list316; @@ -287283,30 +237162,24 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - Span span322 = CollectionsMarshal.AsSpan(list322); - index = 0; - span322[index] = "liza"; + CollectionsMarshal.AsSpan(list322)[0] = "liza"; questRoot37.Author = list322; - index = 6; - List list323 = new List(index); - CollectionsMarshal.SetCount(list323, index); - Span span323 = CollectionsMarshal.AsSpan(list323); - num = 0; - ref QuestSequence reference239 = ref span323[num]; + num = 6; + List list323 = new List(num); + CollectionsMarshal.SetCount(list323, num); + Span span96 = CollectionsMarshal.AsSpan(list323); + ref QuestSequence reference239 = ref span96[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj216.Steps = list324; reference239 = obj216; - num++; - ref QuestSequence reference240 = ref span323[num]; + ref QuestSequence reference240 = ref span96[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 @@ -287314,30 +237187,24 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span325[index2] = new QuestStep(EInteractionType.Interact, 1030229u, new Vector3(-425.80304f, 416.76733f, -586.2974f), 814) + CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1030229u, new Vector3(-425.80304f, 416.76733f, -586.2974f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj217.Steps = list325; reference240 = obj217; - num++; - ref QuestSequence reference241 = ref span323[num]; + ref QuestSequence reference241 = ref span96[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj218.Steps = list326; reference241 = obj218; - num++; - ref QuestSequence reference242 = ref span323[num]; + ref QuestSequence reference242 = ref span96[3]; QuestSequence obj219 = new QuestSequence { Sequence = 3 @@ -287345,33 +237212,27 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.Snipe, 1030231u, new Vector3(-443.7171f, 417.16812f, -616.47974f), 814) + CollectionsMarshal.AsSpan(list327)[0] = 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; - num++; - ref QuestSequence reference243 = ref span323[num]; + ref QuestSequence reference243 = ref span96[4]; QuestSequence obj220 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Comment = "Click red hat dwarf" }; obj220.Steps = list328; reference243 = obj220; - num++; - ref QuestSequence reference244 = ref span323[num]; + ref QuestSequence reference244 = ref span96[5]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue @@ -287379,9 +237240,7 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814); obj221.Steps = list329; reference244 = obj221; questRoot37.QuestSequence = list323; @@ -287391,30 +237250,24 @@ public static class AssemblyQuestLoader num = 1; List list330 = new List(num); CollectionsMarshal.SetCount(list330, num); - Span span330 = CollectionsMarshal.AsSpan(list330); - index = 0; - span330[index] = "liza"; + CollectionsMarshal.AsSpan(list330)[0] = "liza"; questRoot38.Author = list330; - index = 3; - List list331 = new List(index); - CollectionsMarshal.SetCount(list331, index); - Span span331 = CollectionsMarshal.AsSpan(list331); - num = 0; - ref QuestSequence reference245 = ref span331[num]; + num = 3; + List list331 = new List(num); + CollectionsMarshal.SetCount(list331, num); + Span span97 = CollectionsMarshal.AsSpan(list331); + ref QuestSequence reference245 = ref span97[0]; QuestSequence obj222 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj222.Steps = list332; reference245 = obj222; - num++; - ref QuestSequence reference246 = ref span331[num]; + ref QuestSequence reference246 = ref span97[1]; QuestSequence obj223 = new QuestSequence { Sequence = 1 @@ -287422,9 +237275,7 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030239u, new Vector3(-467.76532f, 417.22897f, -648.85944f), 814) + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1030239u, new Vector3(-467.76532f, 417.22897f, -648.85944f), 814) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -287433,18 +237284,15 @@ public static class AssemblyQuestLoader }; obj223.Steps = list333; reference246 = obj223; - num++; - ref QuestSequence reference247 = ref span331[num]; + ref QuestSequence reference247 = ref span97[2]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj224.Steps = list334; reference247 = obj224; questRoot38.QuestSequence = list331; @@ -287454,16 +237302,13 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - Span span335 = CollectionsMarshal.AsSpan(list335); - index = 0; - span335[index] = "liza"; + CollectionsMarshal.AsSpan(list335)[0] = "liza"; questRoot39.Author = list335; - index = 5; - List list336 = new List(index); - CollectionsMarshal.SetCount(list336, index); - Span span336 = CollectionsMarshal.AsSpan(list336); - num = 0; - ref QuestSequence reference248 = ref span336[num]; + num = 5; + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + Span span98 = CollectionsMarshal.AsSpan(list336); + ref QuestSequence reference248 = ref span98[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -287471,27 +237316,21 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030233u, new Vector3(349.2942f, 315.2037f, -373.25098f), 814); obj225.Steps = list337; reference248 = obj225; - num++; - ref QuestSequence reference249 = ref span336[num]; + ref QuestSequence reference249 = ref span98[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj226.Steps = list338; reference249 = obj226; - num++; - ref QuestSequence reference250 = ref span336[num]; + ref QuestSequence reference250 = ref span98[2]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -287499,28 +237338,23 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj227.Steps = list339; reference250 = obj227; - num++; - ref QuestSequence reference251 = ref span336[num]; + ref QuestSequence reference251 = ref span98[3]; QuestSequence obj228 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818245u }; - num2++; - ref QuestStep reference252 = ref span340[num2]; + ref QuestStep reference252 = ref span99[1]; QuestStep obj229 = new QuestStep(EInteractionType.UseItem, 1030235u, new Vector3(705.0431f, 270.07697f, -492.9122f), 814) { ItemId = 2002610u @@ -287528,47 +237362,33 @@ public static class AssemblyQuestLoader num3 = 6; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - 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); + 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); obj229.CompletionQuestVariablesFlags = list341; reference252 = obj229; - num2++; - ref QuestStep reference253 = ref span340[num2]; + ref QuestStep reference253 = ref span99[2]; QuestStep obj230 = new QuestStep(EInteractionType.UseItem, 1030236u, new Vector3(744.53345f, 269.99976f, -515.49554f), 814) { ItemId = 2002610u }; - 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); + 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); obj230.CompletionQuestVariablesFlags = list342; reference253 = obj230; - num2++; - ref QuestStep reference254 = ref span340[num2]; + ref QuestStep reference254 = ref span99[3]; QuestStep obj231 = new QuestStep(EInteractionType.UseItem, 1030237u, new Vector3(747.12744f, 270f, -477.4395f), 814) { ItemId = 2002610u @@ -287576,25 +237396,18 @@ public static class AssemblyQuestLoader num3 = 6; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - 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); + 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); obj231.CompletionQuestVariablesFlags = list343; reference254 = obj231; obj228.Steps = list340; reference251 = obj228; - num++; - ref QuestSequence reference255 = ref span336[num]; + ref QuestSequence reference255 = ref span98[4]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -287602,9 +237415,7 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030375u, new Vector3(611.9325f, 278.146f, -512.4437f), 814); obj232.Steps = list344; reference255 = obj232; questRoot39.QuestSequence = list336; @@ -287614,30 +237425,24 @@ public static class AssemblyQuestLoader num = 1; List list345 = new List(num); CollectionsMarshal.SetCount(list345, num); - Span span345 = CollectionsMarshal.AsSpan(list345); - index = 0; - span345[index] = "liza"; + CollectionsMarshal.AsSpan(list345)[0] = "liza"; questRoot40.Author = list345; - index = 5; - List list346 = new List(index); - CollectionsMarshal.SetCount(list346, index); - Span span346 = CollectionsMarshal.AsSpan(list346); - num = 0; - ref QuestSequence reference256 = ref span346[num]; + num = 5; + List list346 = new List(num); + CollectionsMarshal.SetCount(list346, num); + Span span103 = CollectionsMarshal.AsSpan(list346); + ref QuestSequence reference256 = ref span103[0]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj233.Steps = list347; reference256 = obj233; - num++; - ref QuestSequence reference257 = ref span346[num]; + ref QuestSequence reference257 = ref span103[1]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -287645,33 +237450,27 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - span348[index2] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814) + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1027296u, new Vector3(-469.77954f, 417.22958f, -649.2561f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj234.Steps = list348; reference257 = obj234; - num++; - ref QuestSequence reference258 = ref span346[num]; + ref QuestSequence reference258 = ref span103[2]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list349 = new List(index2); - CollectionsMarshal.SetCount(list349, index2); - Span span349 = CollectionsMarshal.AsSpan(list349); - num2 = 0; - ref QuestStep reference259 = ref span349[num2]; + num2 = 2; + List list349 = new List(num2); + CollectionsMarshal.SetCount(list349, num2); + Span span104 = CollectionsMarshal.AsSpan(list349); + ref QuestStep reference259 = ref span104[0]; QuestStep questStep25 = new QuestStep(EInteractionType.AcceptQuest, 1030776u, new Vector3(-450.85834f, 417.1344f, -610.8644f), 814); - num4 = 1; - List list350 = new List(num4); - CollectionsMarshal.SetCount(list350, num4); - Span span350 = CollectionsMarshal.AsSpan(list350); - num3 = 0; - span350[num3] = new DialogueChoice + num3 = 1; + List list350 = new List(num3); + CollectionsMarshal.SetCount(list350, num3); + CollectionsMarshal.AsSpan(list350)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/035/LucKzi101_03556", @@ -287681,12 +237480,10 @@ public static class AssemblyQuestLoader questStep25.DialogueChoices = list350; questStep25.PickUpQuestId = new QuestId(3556); reference259 = questStep25; - num2++; - span349[num2] = new QuestStep(EInteractionType.Interact, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); + span104[1] = new QuestStep(EInteractionType.Interact, 1030292u, new Vector3(-463.73694f, 334.0526f, -81.04071f), 814); obj235.Steps = list349; reference258 = obj235; - num++; - ref QuestSequence reference260 = ref span346[num]; + ref QuestSequence reference260 = ref span103[3]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -287694,84 +237491,60 @@ public static class AssemblyQuestLoader num2 = 3; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span351 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - ref QuestStep reference261 = ref span351[index2]; + Span span105 = CollectionsMarshal.AsSpan(list351); + ref QuestStep reference261 = ref span105[0]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list352; reference261 = questStep26; - index2++; - ref QuestStep reference262 = ref span351[index2]; + ref QuestStep reference262 = ref span105[1]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1030240u, new Vector3(-464.49988f, 334.0526f, -65.53754f), 814); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list353; reference262 = questStep27; - index2++; - ref QuestStep reference263 = ref span351[index2]; + ref QuestStep reference263 = ref span105[2]; 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 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); + 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); questStep28.CompletionQuestVariablesFlags = list354; reference263 = questStep28; obj236.Steps = list351; reference260 = obj236; - num++; - ref QuestSequence reference264 = ref span346[num]; + ref QuestSequence reference264 = ref span103[4]; QuestSequence obj237 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj237.Steps = list355; reference264 = obj237; questRoot40.QuestSequence = list346; @@ -287781,16 +237554,13 @@ public static class AssemblyQuestLoader num = 1; List list356 = new List(num); CollectionsMarshal.SetCount(list356, num); - Span span356 = CollectionsMarshal.AsSpan(list356); - index = 0; - span356[index] = "liza"; + CollectionsMarshal.AsSpan(list356)[0] = "liza"; questRoot41.Author = list356; - index = 5; - List list357 = new List(index); - CollectionsMarshal.SetCount(list357, index); - Span span357 = CollectionsMarshal.AsSpan(list357); - num = 0; - ref QuestSequence reference265 = ref span357[num]; + num = 5; + List list357 = new List(num); + CollectionsMarshal.SetCount(list357, num); + Span span109 = CollectionsMarshal.AsSpan(list357); + ref QuestSequence reference265 = ref span109[0]; QuestSequence obj238 = new QuestSequence { Sequence = 0 @@ -287798,30 +237568,24 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - span358[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030238u, new Vector3(-466.08685f, 334.0526f, -81.13226f), 814) + CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030238u, new Vector3(-466.08685f, 334.0526f, -81.13226f), 814) { StopDistance = 7f }; obj238.Steps = list358; reference265 = obj238; - num++; - ref QuestSequence reference266 = ref span357[num]; + ref QuestSequence reference266 = ref span109[1]; QuestSequence obj239 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj239.Steps = list359; reference266 = obj239; - num++; - ref QuestSequence reference267 = ref span357[num]; + ref QuestSequence reference267 = ref span109[2]; QuestSequence obj240 = new QuestSequence { Sequence = 2 @@ -287829,27 +237593,21 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - Span span360 = CollectionsMarshal.AsSpan(list360); - index2 = 0; - span360[index2] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); + CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.Interact, 1030250u, new Vector3(-137.59064f, 352.35822f, -190.90564f), 814); obj240.Steps = list360; reference267 = obj240; - num++; - ref QuestSequence reference268 = ref span357[num]; + ref QuestSequence reference268 = ref span109[3]; QuestSequence obj241 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj241.Steps = list361; reference268 = obj241; - num++; - ref QuestSequence reference269 = ref span357[num]; + ref QuestSequence reference269 = ref span109[4]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -287857,9 +237615,7 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030253u, new Vector3(-141.22229f, 352.35822f, -188.95251f), 814) { StopDistance = 7f }; @@ -287872,33 +237628,27 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - Span span363 = CollectionsMarshal.AsSpan(list363); - index = 0; - span363[index] = "liza"; + CollectionsMarshal.AsSpan(list363)[0] = "liza"; questRoot42.Author = list363; - index = 4; - List list364 = new List(index); - CollectionsMarshal.SetCount(list364, index); - Span span364 = CollectionsMarshal.AsSpan(list364); - num = 0; - ref QuestSequence reference270 = ref span364[num]; + num = 4; + List list364 = new List(num); + CollectionsMarshal.SetCount(list364, num); + Span span110 = CollectionsMarshal.AsSpan(list364); + ref QuestSequence reference270 = ref span110[0]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj243.Steps = list365; reference270 = obj243; - num++; - ref QuestSequence reference271 = ref span364[num]; + ref QuestSequence reference271 = ref span110[1]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -287906,29 +237656,24 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span366 = CollectionsMarshal.AsSpan(list366); - index2 = 0; - span366[index2] = new QuestStep(EInteractionType.Interact, 1030254u, new Vector3(-132.82983f, 354.35815f, -177.20306f), 814); + CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.Interact, 1030254u, new Vector3(-132.82983f, 354.35815f, -177.20306f), 814); obj244.Steps = list366; reference271 = obj244; - num++; - ref QuestSequence reference272 = ref span364[num]; + ref QuestSequence reference272 = ref span110[2]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, PickUpQuestId = new QuestId(3537) }; - num2++; - span367[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-122.537926f, 352.3582f, -173.26604f), 814) + span111[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-122.537926f, 352.3582f, -173.26604f), 814) { StopDistance = 0.5f, Mount = true, @@ -287937,23 +237682,19 @@ public static class AssemblyQuestLoader Position = new Vector3(-119.30471f, 349.90027f, -158.2842f) } }; - num2++; - span367[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010042u, new Vector3(-62.912964f, 345.11328f, -16.556091f), 814) + span111[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010042u, new Vector3(-62.912964f, 345.11328f, -16.556091f), 814) { AetherCurrentId = 2818246u }; - num2++; - span367[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.071743f, 324.03458f, 14.810446f), 814) + span111[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-41.071743f, 324.03458f, 14.810446f), 814) { DisableNavmesh = true, Mount = true }; - num2++; - span367[num2] = new QuestStep(EInteractionType.Interact, 1030293u, new Vector3(-5.1728516f, 324.3521f, 190.50879f), 814); + span111[4] = new QuestStep(EInteractionType.Interact, 1030293u, new Vector3(-5.1728516f, 324.3521f, 190.50879f), 814); obj245.Steps = list367; reference272 = obj245; - num++; - ref QuestSequence reference273 = ref span364[num]; + ref QuestSequence reference273 = ref span110[3]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue @@ -287961,9 +237702,8 @@ public static class AssemblyQuestLoader num2 = 2; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - span368[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-92.20083f, 351.37643f, -192.06285f), 814) + Span span112 = CollectionsMarshal.AsSpan(list368); + span112[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-92.20083f, 351.37643f, -192.06285f), 814) { StopDistance = 0.25f, JumpDestination = new JumpDestination @@ -287971,8 +237711,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-106.80138f, 352.33783f, -196.68427f) } }; - index2++; - span368[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); + span112[1] = new QuestStep(EInteractionType.CompleteQuest, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); obj246.Steps = list368; reference273 = obj246; questRoot42.QuestSequence = list364; @@ -287982,33 +237721,27 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - Span span369 = CollectionsMarshal.AsSpan(list369); - index = 0; - span369[index] = "liza"; + CollectionsMarshal.AsSpan(list369)[0] = "liza"; questRoot43.Author = list369; - index = 7; - List list370 = new List(index); - CollectionsMarshal.SetCount(list370, index); - Span span370 = CollectionsMarshal.AsSpan(list370); - num = 0; - ref QuestSequence reference274 = ref span370[num]; + num = 7; + List list370 = new List(num); + CollectionsMarshal.SetCount(list370, num); + Span span113 = CollectionsMarshal.AsSpan(list370); + ref QuestSequence reference274 = ref span113[0]; QuestSequence obj247 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj247.Steps = list371; reference274 = obj247; - num++; - ref QuestSequence reference275 = ref span370[num]; + ref QuestSequence reference275 = ref span113[1]; QuestSequence obj248 = new QuestSequence { Sequence = 1 @@ -288016,16 +237749,12 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - ref QuestStep reference276 = ref span372[index2]; + ref QuestStep reference276 = ref CollectionsMarshal.AsSpan(list372)[0]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1030294u, new Vector3(-142.13782f, 352.3582f, -189.47137f), 814); - num4 = 1; - List list373 = new List(num4); - CollectionsMarshal.SetCount(list373, num4); - Span span373 = CollectionsMarshal.AsSpan(list373); - num3 = 0; - span373[num3] = new DialogueChoice + num3 = 1; + List list373 = new List(num3); + CollectionsMarshal.SetCount(list373, num3); + CollectionsMarshal.AsSpan(list373)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKME114_03643_Q1_000_000"), @@ -288035,25 +237764,21 @@ public static class AssemblyQuestLoader reference276 = questStep29; obj248.Steps = list372; reference275 = obj248; - num++; - ref QuestSequence reference277 = ref span370[num]; + ref QuestSequence reference277 = ref span113[2]; QuestSequence obj249 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra }; obj249.Steps = list374; reference277 = obj249; - num++; - ref QuestSequence reference278 = ref span370[num]; + ref QuestSequence reference278 = ref span113[3]; QuestSequence obj250 = new QuestSequence { Sequence = 3 @@ -288061,9 +237786,7 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - span375[index2] = new QuestStep(EInteractionType.Duty, null, null, 814) + CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -288073,23 +237796,19 @@ public static class AssemblyQuestLoader }; obj250.Steps = list375; reference278 = obj250; - num++; - span370[num] = new QuestSequence + span113[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference279 = ref span370[num]; + ref QuestSequence reference279 = ref span113[5]; QuestSequence obj251 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list376 = new List(num2); + CollectionsMarshal.SetCount(list376, num2); + CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Duty, null, null, 880) { DutyOptions = new DutyOptions { @@ -288098,8 +237817,7 @@ public static class AssemblyQuestLoader }; obj251.Steps = list376; reference279 = obj251; - num++; - ref QuestSequence reference280 = ref span370[num]; + ref QuestSequence reference280 = ref span113[6]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue @@ -288107,9 +237825,7 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - Span span377 = CollectionsMarshal.AsSpan(list377); - index2 = 0; - span377[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030303u, new Vector3(109.23926f, 0.0140714925f, 108.72046f), 880); + CollectionsMarshal.AsSpan(list377)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030303u, new Vector3(109.23926f, 0.0140714925f, 108.72046f), 880); obj252.Steps = list377; reference280 = obj252; questRoot43.QuestSequence = list370; @@ -288119,33 +237835,27 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - Span span378 = CollectionsMarshal.AsSpan(list378); - index = 0; - span378[index] = "liza"; + CollectionsMarshal.AsSpan(list378)[0] = "liza"; questRoot44.Author = list378; - index = 5; - List list379 = new List(index); - CollectionsMarshal.SetCount(list379, index); - Span span379 = CollectionsMarshal.AsSpan(list379); - num = 0; - ref QuestSequence reference281 = ref span379[num]; + num = 5; + List list379 = new List(num); + CollectionsMarshal.SetCount(list379, num); + Span span114 = CollectionsMarshal.AsSpan(list379); + ref QuestSequence reference281 = ref span114[0]; QuestSequence obj253 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj253.Steps = list380; reference281 = obj253; - num++; - ref QuestSequence reference282 = ref span379[num]; + ref QuestSequence reference282 = ref span114[1]; QuestSequence obj254 = new QuestSequence { Sequence = 1 @@ -288153,9 +237863,7 @@ public static class AssemblyQuestLoader num2 = 1; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - Span span381 = CollectionsMarshal.AsSpan(list381); - index2 = 0; - span381[index2] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) + CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { AethernetShortcut = new AethernetShortcut { @@ -288165,22 +237873,18 @@ public static class AssemblyQuestLoader }; obj254.Steps = list381; reference282 = obj254; - num++; - ref QuestSequence reference283 = ref span379[num]; + ref QuestSequence reference283 = ref span114[2]; QuestSequence obj255 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj255.Steps = list382; reference283 = obj255; - num++; - ref QuestSequence reference284 = ref span379[num]; + ref QuestSequence reference284 = ref span114[3]; QuestSequence obj256 = new QuestSequence { Sequence = 3 @@ -288188,9 +237892,7 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span383 = CollectionsMarshal.AsSpan(list383); - index2 = 0; - span383[index2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut { @@ -288200,18 +237902,15 @@ public static class AssemblyQuestLoader }; obj256.Steps = list383; reference284 = obj256; - num++; - ref QuestSequence reference285 = ref span379[num]; + ref QuestSequence reference285 = ref span114[4]; QuestSequence obj257 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -288229,16 +237928,13 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - Span span385 = CollectionsMarshal.AsSpan(list385); - index = 0; - span385[index] = "liza"; + CollectionsMarshal.AsSpan(list385)[0] = "liza"; questRoot45.Author = list385; - index = 4; - List list386 = new List(index); - CollectionsMarshal.SetCount(list386, index); - Span span386 = CollectionsMarshal.AsSpan(list386); - num = 0; - ref QuestSequence reference286 = ref span386[num]; + num = 4; + List list386 = new List(num); + CollectionsMarshal.SetCount(list386, num); + Span span115 = CollectionsMarshal.AsSpan(list386); + ref QuestSequence reference286 = ref span115[0]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -288246,23 +237942,18 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - Span span387 = CollectionsMarshal.AsSpan(list387); - index2 = 0; - span387[index2] = new QuestStep(EInteractionType.AcceptQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); + CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819); obj258.Steps = list387; reference286 = obj258; - num++; - ref QuestSequence reference287 = ref span386[num]; + ref QuestSequence reference287 = ref span115[1]; QuestSequence obj259 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -288272,8 +237963,7 @@ public static class AssemblyQuestLoader }; obj259.Steps = list388; reference287 = obj259; - num++; - ref QuestSequence reference288 = ref span386[num]; + ref QuestSequence reference288 = ref span115[2]; QuestSequence obj260 = new QuestSequence { Sequence = 2 @@ -288281,9 +237971,8 @@ public static class AssemblyQuestLoader num2 = 4; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span389 = CollectionsMarshal.AsSpan(list389); - index2 = 0; - ref QuestStep reference289 = ref span389[index2]; + Span span116 = CollectionsMarshal.AsSpan(list389); + ref QuestStep reference289 = ref span116[0]; QuestStep obj261 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-171.1477f, 0f, -78.01033f), 819) { DisableNavmesh = true @@ -288293,46 +237982,32 @@ public static class AssemblyQuestLoader num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list390; skipConditions4.StepIf = skipStepConditions3; obj261.SkipConditions = skipConditions4; reference289 = obj261; - index2++; - ref QuestStep reference290 = ref span389[index2]; + ref QuestStep reference290 = ref span116[1]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1027246u, new Vector3(-136.98022f, 0f, -73.777466f), 819); - 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); + 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); questStep30.CompletionQuestVariablesFlags = list391; reference290 = questStep30; - index2++; - ref QuestStep reference291 = ref span389[index2]; + ref QuestStep reference291 = ref span116[2]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut @@ -288344,23 +238019,16 @@ public static class AssemblyQuestLoader num3 = 6; List list392 = new List(num3); CollectionsMarshal.SetCount(list392, num3); - 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); + 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); obj262.CompletionQuestVariablesFlags = list392; reference291 = obj262; - index2++; - ref QuestStep reference292 = ref span389[index2]; + ref QuestStep reference292 = ref span116[3]; QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1027854u, new Vector3(40.57373f, 36.197685f, -160.23505f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -288370,38 +238038,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - 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); + 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); obj263.CompletionQuestVariablesFlags = list393; reference292 = obj263; obj260.Steps = list389; reference288 = obj260; - num++; - ref QuestSequence reference293 = ref span386[num]; + ref QuestSequence reference293 = ref span115[3]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -288409,8 +238069,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - num2++; - span394[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(608.7031f, 12.602462f, 311.77286f), 813) + span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(608.7031f, 12.602462f, 311.77286f), 813) { Fly = true, SkipConditions = new SkipConditions @@ -288421,8 +238080,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span394[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); + span121[2] = new QuestStep(EInteractionType.CompleteQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); obj264.Steps = list394; reference293 = obj264; questRoot45.QuestSequence = list386; @@ -288432,16 +238090,13 @@ public static class AssemblyQuestLoader num = 1; List list395 = new List(num); CollectionsMarshal.SetCount(list395, num); - Span span395 = CollectionsMarshal.AsSpan(list395); - index = 0; - span395[index] = "liza"; + CollectionsMarshal.AsSpan(list395)[0] = "liza"; questRoot46.Author = list395; - index = 5; - List list396 = new List(index); - CollectionsMarshal.SetCount(list396, index); - Span span396 = CollectionsMarshal.AsSpan(list396); - num = 0; - ref QuestSequence reference294 = ref span396[num]; + num = 5; + List list396 = new List(num); + CollectionsMarshal.SetCount(list396, num); + Span span122 = CollectionsMarshal.AsSpan(list396); + ref QuestSequence reference294 = ref span122[0]; QuestSequence obj265 = new QuestSequence { Sequence = 0 @@ -288449,23 +238104,18 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span397 = CollectionsMarshal.AsSpan(list397); - index2 = 0; - span397[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); + CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030369u, new Vector3(614.4961f, 13.3097515f, 305.80603f), 813); obj265.Steps = list397; reference294 = obj265; - num++; - ref QuestSequence reference295 = ref span396[num]; + ref QuestSequence reference295 = ref span122[1]; QuestSequence obj266 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list398 = new List(index2); - CollectionsMarshal.SetCount(list398, index2); - Span span398 = CollectionsMarshal.AsSpan(list398); - num2 = 0; - ref QuestStep reference296 = ref span398[num2]; + num2 = 1; + List list398 = new List(num2); + CollectionsMarshal.SetCount(list398, num2); + ref QuestStep reference296 = ref CollectionsMarshal.AsSpan(list398)[0]; QuestStep obj267 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -288485,9 +238135,7 @@ public static class AssemblyQuestLoader num3 = 1; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - Span span399 = CollectionsMarshal.AsSpan(list399); - num4 = 0; - span399[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMF103_03646_Q0_000_006") @@ -288496,8 +238144,7 @@ public static class AssemblyQuestLoader reference296 = obj267; obj266.Steps = list398; reference295 = obj266; - num++; - ref QuestSequence reference297 = ref span396[num]; + ref QuestSequence reference297 = ref span122[2]; QuestSequence obj268 = new QuestSequence { Sequence = 2 @@ -288505,16 +238152,12 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - ref QuestStep reference298 = ref span400[index2]; + ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list400)[0]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1030370u, new Vector3(66.84973f, -2.9802322E-07f, 13.321045f), 819); - num4 = 1; - List list401 = new List(num4); - CollectionsMarshal.SetCount(list401, num4); - Span span401 = CollectionsMarshal.AsSpan(list401); - num3 = 0; - span401[num3] = new DialogueChoice + num3 = 1; + List list401 = new List(num3); + CollectionsMarshal.SetCount(list401, num3); + CollectionsMarshal.AsSpan(list401)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF103_03646_Q1_000_000"), @@ -288524,18 +238167,16 @@ public static class AssemblyQuestLoader reference298 = questStep31; obj268.Steps = list400; reference297 = obj268; - num++; - ref QuestSequence reference299 = ref span396[num]; + ref QuestSequence reference299 = ref span122[3]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -288543,15 +238184,13 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumAmaroLaunch } }; - num2++; - span402[num2] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) + span123[1] = new QuestStep(EInteractionType.Interact, 1027225u, new Vector3(61.905884f, 36.247692f, -169.17682f), 819) { StopDistance = 7f }; obj269.Steps = list402; reference299 = obj269; - num++; - ref QuestSequence reference300 = ref span396[num]; + ref QuestSequence reference300 = ref span122[4]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -288559,9 +238198,7 @@ public static class AssemblyQuestLoader num2 = 1; List list403 = new List(num2); CollectionsMarshal.SetCount(list403, num2); - Span span403 = CollectionsMarshal.AsSpan(list403); - index2 = 0; - span403[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) + CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030327u, new Vector3(58.426758f, 36.19769f, -162.4018f), 819) { StopDistance = 7f }; @@ -288574,33 +238211,27 @@ public static class AssemblyQuestLoader num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - Span span404 = CollectionsMarshal.AsSpan(list404); - index = 0; - span404[index] = "liza"; + CollectionsMarshal.AsSpan(list404)[0] = "liza"; questRoot47.Author = list404; - index = 5; - List list405 = new List(index); - CollectionsMarshal.SetCount(list405, index); - Span span405 = CollectionsMarshal.AsSpan(list405); - num = 0; - ref QuestSequence reference301 = ref span405[num]; + num = 5; + List list405 = new List(num); + CollectionsMarshal.SetCount(list405, num); + Span span124 = CollectionsMarshal.AsSpan(list405); + ref QuestSequence reference301 = ref span124[0]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj271.Steps = list406; reference301 = obj271; - num++; - ref QuestSequence reference302 = ref span405[num]; + ref QuestSequence reference302 = ref span124[1]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -288608,9 +238239,8 @@ public static class AssemblyQuestLoader num2 = 5; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span407 = CollectionsMarshal.AsSpan(list407); - index2 = 0; - span407[index2] = new QuestStep(EInteractionType.None, null, null, 819) + Span span125 = CollectionsMarshal.AsSpan(list407); + span125[0] = new QuestStep(EInteractionType.None, null, null, 819) { AethernetShortcut = new AethernetShortcut { @@ -288618,8 +238248,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - index2++; - span407[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + span125[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -288630,8 +238259,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span407[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + span125[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -288642,8 +238270,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span407[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + span125[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -288653,37 +238280,32 @@ public static class AssemblyQuestLoader } } }; - index2++; - span407[index2] = new QuestStep(EInteractionType.Interact, 1030346u, new Vector3(-145.09808f, 9.572956f, 704.6769f), 813) + span125[4] = new QuestStep(EInteractionType.Interact, 1030346u, new Vector3(-145.09808f, 9.572956f, 704.6769f), 813) { StopDistance = 1f, Fly = true }; obj272.Steps = list407; reference302 = obj272; - num++; - ref QuestSequence reference303 = ref span405[num]; + ref QuestSequence reference303 = ref span124[2]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, DisableNavmesh = true }; - num2++; - span408[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-578.07544f, -28.413673f, 749.037f), 813) + span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-578.07544f, -28.413673f, 749.037f), 813) { DisableNavmesh = true }; - num2++; - ref QuestStep reference304 = ref span408[num2]; + ref QuestStep reference304 = ref span126[2]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2010138u, new Vector3(-606.46985f, -28.183472f, 768.6731f), 813) { DisableNavmesh = true @@ -288691,46 +238313,32 @@ public static class AssemblyQuestLoader num3 = 6; List list409 = new List(num3); CollectionsMarshal.SetCount(list409, num3); - 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); + 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); obj274.CompletionQuestVariablesFlags = list409; reference304 = obj274; - num2++; - ref QuestStep reference305 = ref span408[num2]; + ref QuestStep reference305 = ref span126[3]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2010137u, new Vector3(-687.83093f, -40.299072f, 729.36584f), 813); - 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); + 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); questStep32.CompletionQuestVariablesFlags = list410; reference305 = questStep32; obj273.Steps = list408; reference303 = obj273; - num++; - ref QuestSequence reference306 = ref span405[num]; + ref QuestSequence reference306 = ref span124[3]; QuestSequence obj275 = new QuestSequence { Sequence = 3 @@ -288738,15 +238346,13 @@ public static class AssemblyQuestLoader num2 = 4; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span411 = CollectionsMarshal.AsSpan(list411); - index2 = 0; - span411[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-667.5838f, -1.974393f, 698.4002f), 813) + Span span129 = CollectionsMarshal.AsSpan(list411); + span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-667.5838f, -1.974393f, 698.4002f), 813) { DisableNavmesh = true, Mount = true }; - index2++; - span411[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) + span129[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) { SkipConditions = new SkipConditions { @@ -288756,8 +238362,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span411[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) + span129[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -288768,8 +238373,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference307 = ref span411[index2]; + ref QuestStep reference307 = ref span129[3]; QuestStep obj276 = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { Fly = true @@ -288777,9 +238381,7 @@ public static class AssemblyQuestLoader num3 = 1; List list412 = new List(num3); CollectionsMarshal.SetCount(list412, num3); - Span span412 = CollectionsMarshal.AsSpan(list412); - num4 = 0; - span412[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list412)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF104_03647_Q1_000_000"), @@ -288789,18 +238391,15 @@ public static class AssemblyQuestLoader reference307 = obj276; obj275.Steps = list411; reference306 = obj275; - num++; - ref QuestSequence reference308 = ref span405[num]; + ref QuestSequence reference308 = ref span124[4]; QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, DisableNavmesh = true @@ -288814,16 +238413,13 @@ public static class AssemblyQuestLoader num = 1; List list414 = new List(num); CollectionsMarshal.SetCount(list414, num); - Span span414 = CollectionsMarshal.AsSpan(list414); - index = 0; - span414[index] = "liza"; + CollectionsMarshal.AsSpan(list414)[0] = "liza"; questRoot48.Author = list414; - index = 6; - List list415 = new List(index); - CollectionsMarshal.SetCount(list415, index); - Span span415 = CollectionsMarshal.AsSpan(list415); - num = 0; - ref QuestSequence reference309 = ref span415[num]; + num = 6; + List list415 = new List(num); + CollectionsMarshal.SetCount(list415, num); + Span span130 = CollectionsMarshal.AsSpan(list415); + ref QuestSequence reference309 = ref span130[0]; QuestSequence obj278 = new QuestSequence { Sequence = 0 @@ -288831,35 +238427,29 @@ public static class AssemblyQuestLoader num2 = 1; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span416 = CollectionsMarshal.AsSpan(list416); - index2 = 0; - span416[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030336u, new Vector3(278.7976f, 414.807f, -851.2856f), 818) + CollectionsMarshal.AsSpan(list416)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030336u, new Vector3(278.7976f, 414.807f, -851.2856f), 818) { DisableNavmesh = true }; obj278.Steps = list416; reference309 = obj278; - num++; - ref QuestSequence reference310 = ref span415[num]; + ref QuestSequence reference310 = ref span130[1]; QuestSequence obj279 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818298u }; - num2++; - span417[num2] = new QuestStep(EInteractionType.Interact, 1030514u, new Vector3(479.5758f, 368.87827f, -340.99335f), 818); + span131[1] = new QuestStep(EInteractionType.Interact, 1030514u, new Vector3(479.5758f, 368.87827f, -340.99335f), 818); obj279.Steps = list417; reference310 = obj279; - num++; - ref QuestSequence reference311 = ref span415[num]; + ref QuestSequence reference311 = ref span130[2]; QuestSequence obj280 = new QuestSequence { Sequence = 2 @@ -288867,32 +238457,26 @@ public static class AssemblyQuestLoader num2 = 2; List list418 = new List(num2); CollectionsMarshal.SetCount(list418, num2); - Span span418 = CollectionsMarshal.AsSpan(list418); - index2 = 0; - span418[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) + Span span132 = CollectionsMarshal.AsSpan(list418); + span132[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) { Aetheryte = EAetheryteLocation.TempestOndoCups }; - index2++; - span418[index2] = new QuestStep(EInteractionType.Interact, 1030515u, new Vector3(605.3711f, 350.3518f, -196.91772f), 818); + span132[1] = new QuestStep(EInteractionType.Interact, 1030515u, new Vector3(605.3711f, 350.3518f, -196.91772f), 818); obj280.Steps = list418; reference311 = obj280; - num++; - ref QuestSequence reference312 = ref span415[num]; + ref QuestSequence reference312 = ref span130[3]; QuestSequence obj281 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj281.Steps = list419; reference312 = obj281; - num++; - ref QuestSequence reference313 = ref span415[num]; + ref QuestSequence reference313 = ref span130[4]; QuestSequence obj282 = new QuestSequence { Sequence = 4 @@ -288900,19 +238484,15 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - Span span420 = CollectionsMarshal.AsSpan(list420); - index2 = 0; - ref QuestStep reference314 = ref span420[index2]; + ref QuestStep reference314 = ref CollectionsMarshal.AsSpan(list420)[0]; QuestStep obj283 = new QuestStep(EInteractionType.Combat, null, new Vector3(796.1852f, 449.08664f, -710.04565f), 818) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list421 = new List(num4); - CollectionsMarshal.SetCount(list421, num4); - Span span421 = CollectionsMarshal.AsSpan(list421); - num3 = 0; - span421[num3] = new ComplexCombatData + num3 = 1; + List list421 = new List(num3); + CollectionsMarshal.SetCount(list421, num3); + CollectionsMarshal.AsSpan(list421)[0] = new ComplexCombatData { DataId = 10316u, MinimumKillCount = 3u @@ -288921,18 +238501,15 @@ public static class AssemblyQuestLoader reference314 = obj283; obj282.Steps = list420; reference313 = obj282; - num++; - ref QuestSequence reference315 = ref span415[num]; + ref QuestSequence reference315 = ref span130[5]; QuestSequence obj284 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -288945,16 +238522,13 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - Span span423 = CollectionsMarshal.AsSpan(list423); - index = 0; - span423[index] = "liza"; + CollectionsMarshal.AsSpan(list423)[0] = "liza"; questRoot49.Author = list423; - index = 6; - List list424 = new List(index); - CollectionsMarshal.SetCount(list424, index); - Span span424 = CollectionsMarshal.AsSpan(list424); - num = 0; - ref QuestSequence reference316 = ref span424[num]; + num = 6; + List list424 = new List(num); + CollectionsMarshal.SetCount(list424, num); + Span span133 = CollectionsMarshal.AsSpan(list424); + ref QuestSequence reference316 = ref span133[0]; QuestSequence obj285 = new QuestSequence { Sequence = 0 @@ -288962,32 +238536,26 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - Span span425 = CollectionsMarshal.AsSpan(list425); - index2 = 0; - span425[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030517u, new Vector3(578.7594f, 349.86563f, -231.00635f), 818); + CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030517u, new Vector3(578.7594f, 349.86563f, -231.00635f), 818); obj285.Steps = list425; reference316 = obj285; - num++; - ref QuestSequence reference317 = ref span424[num]; + ref QuestSequence reference317 = ref span133[1]; QuestSequence obj286 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3588) }; - num2++; - span426[num2] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); + span134[1] = new QuestStep(EInteractionType.Interact, 1030518u, new Vector3(400.38135f, 363.65552f, -439.6582f), 818); obj286.Steps = list426; reference317 = obj286; - num++; - ref QuestSequence reference318 = ref span424[num]; + ref QuestSequence reference318 = ref span133[2]; QuestSequence obj287 = new QuestSequence { Sequence = 2 @@ -288995,9 +238563,8 @@ public static class AssemblyQuestLoader num2 = 3; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span427 = CollectionsMarshal.AsSpan(list427); - index2 = 0; - ref QuestStep reference319 = ref span427[index2]; + Span span135 = CollectionsMarshal.AsSpan(list427); + ref QuestStep reference319 = ref span135[0]; QuestStep obj288 = new QuestStep(EInteractionType.Snipe, 2010141u, new Vector3(405.38635f, 361.22668f, -414.38928f), 818) { Comment = "Click top left (broken) window" @@ -289005,66 +238572,48 @@ public static class AssemblyQuestLoader num3 = 6; List list428 = new List(num3); CollectionsMarshal.SetCount(list428, num3); - 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); + 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); obj288.CompletionQuestVariablesFlags = list428; reference319 = obj288; - index2++; - span427[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.9114f, 353.76694f, -475.44562f), 818); - index2++; - ref QuestStep reference320 = ref span427[index2]; + span135[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(324.9114f, 353.76694f, -475.44562f), 818); + ref QuestStep reference320 = ref span135[2]; QuestStep obj289 = new QuestStep(EInteractionType.UseItem, 2010142u, new Vector3(326.8329f, 355.79456f, -477.53113f), 818) { StopDistance = 4f, ItemId = 2002673u }; - 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); + 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); obj289.CompletionQuestVariablesFlags = list429; reference320 = obj289; obj287.Steps = list427; reference318 = obj287; - num++; - ref QuestSequence reference321 = ref span424[num]; + ref QuestSequence reference321 = ref span133[3]; QuestSequence obj290 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj290.Steps = list430; reference321 = obj290; - num++; - ref QuestSequence reference322 = ref span424[num]; + ref QuestSequence reference322 = ref span133[4]; QuestSequence obj291 = new QuestSequence { Sequence = 4 @@ -289072,28 +238621,23 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span431 = CollectionsMarshal.AsSpan(list431); - index2 = 0; - span431[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010076u, new Vector3(50.18689f, 380.0868f, -512.0775f), 818) + Span span138 = CollectionsMarshal.AsSpan(list431); + span138[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010076u, new Vector3(50.18689f, 380.0868f, -512.0775f), 818) { AetherCurrentId = 2818300u }; - index2++; - span431[index2] = new QuestStep(EInteractionType.Interact, 2010143u, new Vector3(25.711426f, 381.6128f, -522.3316f), 818); + span138[1] = new QuestStep(EInteractionType.Interact, 2010143u, new Vector3(25.711426f, 381.6128f, -522.3316f), 818); obj291.Steps = list431; reference322 = obj291; - num++; - ref QuestSequence reference323 = ref span424[num]; + ref QuestSequence reference323 = ref span133[5]; QuestSequence obj292 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -289110,16 +238654,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -289127,26 +238668,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030225u, new Vector3(28.824219f, 381.81906f, -524.4374f), 818) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1027758u, new Vector3(568.1085f, 350.2004f, -230.36548f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups @@ -289154,9 +238690,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMF107_03650_Q1_000_000"), @@ -289166,8 +238700,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -289175,30 +238708,24 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1030519u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Psych }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -289206,16 +238733,12 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref QuestStep reference7 = ref span8[index2]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; QuestStep questStep = new QuestStep(EInteractionType.CompleteQuest, 1030586u, new Vector3(638.97156f, 402.23993f, 212.78699f), 818); - index3 = 1; - List list9 = new List(index3); - CollectionsMarshal.SetCount(list9, index3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - span9[num3] = new DialogueChoice + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMF107_03650_A3_000_000") @@ -289231,30 +238754,24 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "liza"; + CollectionsMarshal.AsSpan(list10)[0] = "liza"; questRoot2.Author = list10; - index = 10; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference8 = ref span11[num]; + num = 10; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span2 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference8 = ref span2[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj7.Steps = list12; reference8 = obj7; - num++; - ref QuestSequence reference9 = ref span11[num]; + ref QuestSequence reference9 = ref span2[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -289262,30 +238779,24 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span11[num]; + ref QuestSequence reference10 = ref span2[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj9.Steps = list14; reference10 = obj9; - num++; - ref QuestSequence reference11 = ref span11[num]; + ref QuestSequence reference11 = ref span2[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 @@ -289293,58 +238804,48 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.2212f, 316.451f, -300.7331f), 818) + Span span3 = CollectionsMarshal.AsSpan(list15); + span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(486.2212f, 316.451f, -300.7331f), 818) { StopDistance = 1f }; - index2++; - span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.52316f, 313.60648f, -294.83905f), 818) + span3[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(474.52316f, 313.60648f, -294.83905f), 818) { StopDistance = 1f, DisableNavmesh = true }; - index2++; - span15[index2] = new QuestStep(EInteractionType.Interact, 1030570u, new Vector3(400.59497f, 303.51035f, -245.10571f), 818); + span3[2] = new QuestStep(EInteractionType.Interact, 1030570u, new Vector3(400.59497f, 303.51035f, -245.10571f), 818); obj10.Steps = list15; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span11[num]; + ref QuestSequence reference12 = ref span2[4]; QuestSequence obj11 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818303u }; - 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) + 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) { StopDistance = 1f, DisableNavmesh = true, Mount = false }; - num2++; - span16[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.40463f, 235.09933f, -321.0536f), 818) + span4[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(286.40463f, 235.09933f, -321.0536f), 818) { DisableNavmesh = true, Mount = false }; - num2++; - span16[num2] = new QuestStep(EInteractionType.Interact, 1030532u, new Vector3(302.02173f, 238.75215f, -346.15094f), 818); + span4[4] = new QuestStep(EInteractionType.Interact, 1030532u, new Vector3(302.02173f, 238.75215f, -346.15094f), 818); obj11.Steps = list16; reference12 = obj11; - num++; - ref QuestSequence reference13 = ref span11[num]; + ref QuestSequence reference13 = ref span2[5]; QuestSequence obj12 = new QuestSequence { Sequence = 5 @@ -289352,27 +238853,21 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1030527u, new Vector3(87.937744f, 199.56166f, -143.0534f), 818); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1030527u, new Vector3(87.937744f, 199.56166f, -143.0534f), 818); obj12.Steps = list17; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span11[num]; + ref QuestSequence reference14 = ref span2[6]; QuestSequence obj13 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj13.Steps = list18; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span11[num]; + ref QuestSequence reference15 = ref span2[7]; QuestSequence obj14 = new QuestSequence { Sequence = 7 @@ -289380,29 +238875,23 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1030534u, new Vector3(-501.915f, 127.18983f, -257.435f), 818); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1030534u, new Vector3(-501.915f, 127.18983f, -257.435f), 818); obj14.Steps = list19; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span11[num]; + ref QuestSequence reference16 = ref span2[8]; QuestSequence obj15 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj15.Steps = list20; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span11[num]; + ref QuestSequence reference17 = ref span2[9]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue @@ -289410,9 +238899,7 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030344u, new Vector3(-792.9656f, 73.244484f, -211.62744f), 818) + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030344u, new Vector3(-792.9656f, 73.244484f, -211.62744f), 818) { StopDistance = 7f }; @@ -289425,30 +238912,24 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot3.Author = list22; - index = 5; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference18 = ref span23[num]; + num = 5; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span6 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference18 = ref span6[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj17.Steps = list24; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span6[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 @@ -289456,32 +238937,26 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010083u, new Vector3(-774.25806f, 63.1875f, -97.73407f), 818) + Span span7 = CollectionsMarshal.AsSpan(list25); + span7[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2010083u, new Vector3(-774.25806f, 63.1875f, -97.73407f), 818) { AetherCurrentId = 2818307u }; - index2++; - span25[index2] = new QuestStep(EInteractionType.Interact, 2010144u, new Vector3(-610.5898f, 46.341675f, 94.01074f), 818); + span7[1] = new QuestStep(EInteractionType.Interact, 2010144u, new Vector3(-610.5898f, 46.341675f, 94.01074f), 818); obj18.Steps = list25; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span23[num]; + ref QuestSequence reference20 = ref span6[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj19.Steps = list26; reference20 = obj19; - num++; - ref QuestSequence reference21 = ref span23[num]; + ref QuestSequence reference21 = ref span6[3]; QuestSequence obj20 = new QuestSequence { Sequence = 3 @@ -289489,84 +238964,60 @@ public static class AssemblyQuestLoader num2 = 3; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - ref QuestStep reference22 = ref span27[index2]; + Span span8 = CollectionsMarshal.AsSpan(list27); + ref QuestStep reference22 = ref span8[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list28; reference22 = questStep2; - index2++; - ref QuestStep reference23 = ref span27[index2]; + ref QuestStep reference23 = ref span8[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1030552u, new Vector3(-494.16345f, -250.89603f, 365.7129f), 818); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list29; reference23 = questStep3; - index2++; - ref QuestStep reference24 = ref span27[index2]; + ref QuestStep reference24 = ref span8[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list30; reference24 = questStep4; obj20.Steps = list27; reference21 = obj20; - num++; - ref QuestSequence reference25 = ref span23[num]; + ref QuestSequence reference25 = ref span6[4]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj21.Steps = list31; reference25 = obj21; questRoot3.QuestSequence = list23; @@ -289576,16 +239027,13 @@ public static class AssemblyQuestLoader num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span32 = CollectionsMarshal.AsSpan(list32); - index = 0; - span32[index] = "liza"; + CollectionsMarshal.AsSpan(list32)[0] = "liza"; questRoot4.Author = list32; - index = 8; - List list33 = new List(index); - CollectionsMarshal.SetCount(list33, index); - Span span33 = CollectionsMarshal.AsSpan(list33); - num = 0; - ref QuestSequence reference26 = ref span33[num]; + num = 8; + List list33 = new List(num); + CollectionsMarshal.SetCount(list33, num); + Span span12 = CollectionsMarshal.AsSpan(list33); + ref QuestSequence reference26 = ref span12[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -289593,52 +239041,42 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030554u, new Vector3(-633.99713f, -288.06885f, 251.60596f), 818); obj22.Steps = list34; reference26 = obj22; - num++; - ref QuestSequence reference27 = ref span33[num]; + ref QuestSequence reference27 = ref span12[1]; QuestSequence obj23 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(3593) }; - num2++; - span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818) + span13[1] = new QuestStep(EInteractionType.AcceptQuest, 1030477u, new Vector3(-594.6593f, -266.7698f, 338.70447f), 818) { PickUpQuestId = new QuestId(3594) }; - num2++; - span35[num2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818) + span13[2] = new QuestStep(EInteractionType.AcceptQuest, 1027775u, new Vector3(-390.85986f, -260.17664f, 308.46106f), 818) { PickUpQuestId = new QuestId(3592) }; - num2++; - span35[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) + span13[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 818) { Aetheryte = EAetheryteLocation.TempestMacarensesAngle }; - 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) + 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) { StopDistance = 7f }; obj23.Steps = list35; reference27 = obj23; - num++; - ref QuestSequence reference28 = ref span33[num]; + ref QuestSequence reference28 = ref span12[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -289646,32 +239084,26 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 2010147u, new Vector3(1.5106201f, -276.93604f, 261.64636f), 818); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 2010147u, new Vector3(1.5106201f, -276.93604f, 261.64636f), 818); obj24.Steps = list36; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span33[num]; + ref QuestSequence reference29 = ref span12[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj25.Steps = list37; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span33[num]; + ref QuestSequence reference30 = ref span12[4]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -289679,32 +239111,26 @@ public static class AssemblyQuestLoader num2 = 2; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - 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) + 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) { StopDistance = 7f }; obj26.Steps = list38; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span33[num]; + ref QuestSequence reference31 = ref span12[5]; QuestSequence obj27 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj27.Steps = list39; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span33[num]; + ref QuestSequence reference32 = ref span12[6]; QuestSequence obj28 = new QuestSequence { Sequence = 6 @@ -289712,33 +239138,28 @@ public static class AssemblyQuestLoader num2 = 2; 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(314.43127f, -274.1735f, 659.203f), 818); - index2++; - span40[index2] = new QuestStep(EInteractionType.Interact, 1027773u, new Vector3(316.4568f, -274.1735f, 653.65063f), 818) + 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) { StopDistance = 7f }; obj28.Steps = list40; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span33[num]; + ref QuestSequence reference33 = ref span12[7]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.TempestMacarensesAngle }; - num2++; - span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818); + span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818); obj29.Steps = list41; reference33 = obj29; questRoot4.QuestSequence = list33; @@ -289748,16 +239169,13 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot5.Author = list42; - index = 13; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference34 = ref span43[num]; + num = 13; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span18 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference34 = ref span18[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -289765,33 +239183,27 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030557u, new Vector3(-244.70898f, -266.0001f, 448.3557f), 818) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030557u, new Vector3(-244.70898f, -266.0001f, 448.3557f), 818) { StopDistance = 5f }; obj30.Steps = list44; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span18[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj31.Steps = list45; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span43[num]; + ref QuestSequence reference36 = ref span18[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -289799,33 +239211,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 1030561u, new Vector3(-243.39667f, -266.0001f, 442.4657f), 818) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 1030561u, new Vector3(-243.39667f, -266.0001f, 442.4657f), 818) { StopDistance = 5f }; obj32.Steps = list46; reference36 = obj32; - num++; - ref QuestSequence reference37 = ref span43[num]; + ref QuestSequence reference37 = ref span18[3]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj33.Steps = list47; reference37 = obj33; - num++; - ref QuestSequence reference38 = ref span43[num]; + ref QuestSequence reference38 = ref span18[4]; QuestSequence obj34 = new QuestSequence { Sequence = 4 @@ -289833,33 +239239,27 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1030558u, new Vector3(-241.32147f, -266.0001f, 444.08325f), 818) { StopDistance = 5f }; obj34.Steps = list48; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span43[num]; + ref QuestSequence reference39 = ref span18[5]; QuestSequence obj35 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj35.Steps = list49; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span43[num]; + ref QuestSequence reference40 = ref span18[6]; QuestSequence obj36 = new QuestSequence { Sequence = 6 @@ -289867,26 +239267,21 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1030562u, new Vector3(-356.8628f, -229.0648f, 700.34326f), 818) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1030562u, new Vector3(-356.8628f, -229.0648f, 700.34326f), 818) { Fly = true }; obj36.Steps = list50; reference40 = obj36; - num++; - ref QuestSequence reference41 = ref span43[num]; + ref QuestSequence reference41 = ref span18[7]; QuestSequence obj37 = new QuestSequence { Sequence = 7 }; - 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) + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Duty, null, null, 818) { DutyOptions = new DutyOptions { @@ -289895,13 +239290,11 @@ public static class AssemblyQuestLoader }; obj37.Steps = list51; reference41 = obj37; - num++; - span43[num] = new QuestSequence + span18[8] = new QuestSequence { Sequence = 8 }; - num++; - ref QuestSequence reference42 = ref span43[num]; + ref QuestSequence reference42 = ref span18[9]; QuestSequence obj38 = new QuestSequence { Sequence = 9 @@ -289909,9 +239302,7 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Duty, null, null, 881) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Duty, null, null, 881) { DutyOptions = new DutyOptions { @@ -289920,27 +239311,22 @@ public static class AssemblyQuestLoader }; obj38.Steps = list52; reference42 = obj38; - num++; - span43[num] = new QuestSequence + span18[10] = new QuestSequence { Sequence = 10 }; - num++; - ref QuestSequence reference43 = ref span43[num]; + ref QuestSequence reference43 = ref span18[11]; QuestSequence obj39 = new QuestSequence { Sequence = 11 }; - 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); + 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); obj39.Steps = list53; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span43[num]; + ref QuestSequence reference44 = ref span18[12]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -289948,15 +239334,13 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span19 = CollectionsMarshal.AsSpan(list54); + span19[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1031257u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj40.Steps = list54; reference44 = obj40; questRoot5.QuestSequence = list43; @@ -289966,30 +239350,24 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot6.Author = list55; - index = 4; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference45 = ref span56[num]; + num = 4; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span20 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference45 = ref span20[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj41.Steps = list57; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span20[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -289997,27 +239375,21 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); obj42.Steps = list58; reference46 = obj42; - num++; - ref QuestSequence reference47 = ref span56[num]; + ref QuestSequence reference47 = ref span20[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj43.Steps = list59; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span20[3]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -290025,9 +239397,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030821u, new Vector3(-524.4679f, 0.08425587f, 227.00842f), 817); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030821u, new Vector3(-524.4679f, 0.08425587f, 227.00842f), 817); obj44.Steps = list60; reference48 = obj44; questRoot6.QuestSequence = list56; @@ -290037,30 +239407,24 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot7.Author = list61; - index = 4; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference49 = ref span62[num]; + num = 4; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span21 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference49 = ref span21[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj45.Steps = list63; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span62[num]; + ref QuestSequence reference50 = ref span21[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -290068,27 +239432,21 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1029876u, new Vector3(-524.71204f, 0.08067314f, 227.03894f), 817); obj46.Steps = list64; reference50 = obj46; - num++; - ref QuestSequence reference51 = ref span62[num]; + ref QuestSequence reference51 = ref span21[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj47.Steps = list65; reference51 = obj47; - num++; - ref QuestSequence reference52 = ref span62[num]; + ref QuestSequence reference52 = ref span21[3]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -290096,9 +239454,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030824u, new Vector3(-28.732727f, -23.695421f, 320.39355f), 817) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030824u, new Vector3(-28.732727f, -23.695421f, 320.39355f), 817) { StopDistance = 5f, NextQuestId = new QuestId(3658) @@ -290112,30 +239468,24 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "liza"; + CollectionsMarshal.AsSpan(list67)[0] = "liza"; questRoot8.Author = list67; - index = 3; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference53 = ref span68[num]; + num = 3; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span22 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference53 = ref span22[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj49.Steps = list69; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span68[num]; + ref QuestSequence reference54 = ref span22[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -290143,26 +239493,21 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 2010352u, new Vector3(-322.65204f, 14.90802f, -181.53668f), 817) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 2010352u, new Vector3(-322.65204f, 14.90802f, -181.53668f), 817) { Fly = true }; obj50.Steps = list70; reference54 = obj50; - num++; - ref QuestSequence reference55 = ref span68[num]; + ref QuestSequence reference55 = ref span22[2]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, NextQuestId = new QuestId(3659) @@ -290176,16 +239521,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "liza"; + CollectionsMarshal.AsSpan(list72)[0] = "liza"; questRoot9.Author = list72; - index = 6; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference56 = ref span73[num]; + num = 6; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span23 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference56 = ref span23[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -290193,40 +239535,32 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030818u, new Vector3(-28.641174f, -24.631424f, 318.98987f), 817); obj52.Steps = list74; reference56 = obj52; - num++; - ref QuestSequence reference57 = ref span73[num]; + ref QuestSequence reference57 = ref span23[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list75 = new List(index2); - CollectionsMarshal.SetCount(list75, index2); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref QuestStep reference58 = ref span75[num2]; + num2 = 1; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list76 = new List(index3); - CollectionsMarshal.SetCount(list76, index3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span76[num3] = 11153u; + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = 11153u; obj54.KillEnemyDataIds = list76; reference58 = obj54; obj53.Steps = list75; reference57 = obj53; - num++; - ref QuestSequence reference59 = ref span73[num]; + ref QuestSequence reference59 = ref span23[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -290234,23 +239568,18 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1030827u, new Vector3(-438.46802f, -0.3f, 725.1239f), 817); obj55.Steps = list77; reference59 = obj55; - num++; - ref QuestSequence reference60 = ref span73[num]; + ref QuestSequence reference60 = ref span23[3]; QuestSequence obj56 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list78 = new List(index2); - CollectionsMarshal.SetCount(list78, index2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num2 = 0; - ref QuestStep reference61 = ref span78[num2]; + num2 = 1; + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, null, new Vector3(-500.49435f, 7.3168135f, 93.674324f), 817) { StopDistance = 0.5f, @@ -290260,15 +239589,12 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - index3 = 0; - span79[index3] = 11154u; + CollectionsMarshal.AsSpan(list79)[0] = 11154u; obj57.KillEnemyDataIds = list79; reference61 = obj57; obj56.Steps = list78; reference60 = obj56; - num++; - ref QuestSequence reference62 = ref span73[num]; + ref QuestSequence reference62 = ref span23[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -290276,26 +239602,21 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Interact, 2010522u, new Vector3(-501.5488f, 7.461609f, 96.94055f), 817) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 2010522u, new Vector3(-501.5488f, 7.461609f, 96.94055f), 817) { StopDistance = 4f }; obj58.Steps = list80; reference62 = obj58; - num++; - ref QuestSequence reference63 = ref span73[num]; + ref QuestSequence reference63 = ref span23[5]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; @@ -290308,16 +239629,13 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "liza"; + CollectionsMarshal.AsSpan(list82)[0] = "liza"; 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]; + num = 9; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span24 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference64 = ref span24[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -290325,9 +239643,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, SkipConditions = new SkipConditions @@ -290340,29 +239656,24 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference64 = obj60; - num++; - ref QuestSequence reference65 = ref span83[num]; + ref QuestSequence reference65 = ref span24[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference66 = ref span85[num2]; + num2 = 1; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; - index3 = 1; - List list86 = new List(index3); - CollectionsMarshal.SetCount(list86, index3); - Span span86 = CollectionsMarshal.AsSpan(list86); - num3 = 0; - span86[num3] = new DialogueChoice + num3 = 1; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + CollectionsMarshal.AsSpan(list86)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q1_000_000") @@ -290371,8 +239682,7 @@ public static class AssemblyQuestLoader reference66 = obj62; obj61.Steps = list85; reference65 = obj61; - num++; - ref QuestSequence reference67 = ref span83[num]; + ref QuestSequence reference67 = ref span24[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -290380,9 +239690,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - ref QuestStep reference68 = ref span87[index2]; + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list87)[0]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1031579u, new Vector3(735.89685f, 285.08194f, -82.35297f), 814) { StopDistance = 5f @@ -290390,9 +239698,7 @@ public static class AssemblyQuestLoader num3 = 1; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - Span span88 = CollectionsMarshal.AsSpan(list88); - index3 = 0; - span88[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q2_000_000"), @@ -290402,25 +239708,21 @@ public static class AssemblyQuestLoader reference68 = obj64; obj63.Steps = list87; reference67 = obj63; - num++; - ref QuestSequence reference69 = ref span83[num]; + ref QuestSequence reference69 = ref span24[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj65.Steps = list89; reference69 = obj65; - num++; - ref QuestSequence reference70 = ref span83[num]; + ref QuestSequence reference70 = ref span24[4]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -290428,36 +239730,29 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 2010753u, new Vector3(631.9523f, 325.82593f, -228.68695f), 814) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 2010753u, new Vector3(631.9523f, 325.82593f, -228.68695f), 814) { Fly = true }; obj66.Steps = list90; reference70 = obj66; - num++; - ref QuestSequence reference71 = ref span83[num]; + ref QuestSequence reference71 = ref span24[5]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference72 = ref span91[num2]; + num2 = 1; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list91)[0]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; - index3 = 1; - List list92 = new List(index3); - CollectionsMarshal.SetCount(list92, index3); - Span span92 = CollectionsMarshal.AsSpan(list92); - num3 = 0; - span92[num3] = new DialogueChoice + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYA003_03671_Q5_000_000"), @@ -290467,8 +239762,7 @@ public static class AssemblyQuestLoader reference72 = obj68; obj67.Steps = list91; reference71 = obj67; - num++; - ref QuestSequence reference73 = ref span83[num]; + ref QuestSequence reference73 = ref span24[6]; QuestSequence obj69 = new QuestSequence { Sequence = 6 @@ -290476,35 +239770,29 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(544.0766f, 295.72742f, -218.72057f), 814) + Span span25 = CollectionsMarshal.AsSpan(list93); + span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(544.0766f, 295.72742f, -218.72057f), 814) { Fly = true }; - index2++; - span93[index2] = new QuestStep(EInteractionType.Interact, 2010754u, new Vector3(542.9313f, 296.19275f, -217.02905f), 814); + span25[1] = new QuestStep(EInteractionType.Interact, 2010754u, new Vector3(542.9313f, 296.19275f, -217.02905f), 814); obj69.Steps = list93; reference73 = obj69; - num++; - ref QuestSequence reference74 = ref span83[num]; + ref QuestSequence reference74 = ref span24[7]; QuestSequence obj70 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj70.Steps = list94; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span83[num]; + ref QuestSequence reference75 = ref span24[8]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -290512,9 +239800,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaTomra, NextQuestId = new QuestId(3717) @@ -290528,26 +239814,21 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list96)[0] = "JerryWester"; questRoot11.Author = list96; - index = 6; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference76 = ref span97[num]; + num = 6; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span26 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference76 = ref span26[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -290560,8 +239841,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list98; reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span26[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -290569,9 +239849,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut { @@ -290581,18 +239859,15 @@ public static class AssemblyQuestLoader }; obj73.Steps = list99; reference77 = obj73; - num++; - ref QuestSequence reference78 = ref span97[num]; + ref QuestSequence reference78 = ref span26[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference79 = ref span100[num2]; + num2 = 1; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list100)[0]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 2010920u, new Vector3(-141.13074f, -12.64978f, -33.585205f), 419) { AethernetShortcut = new AethernetShortcut @@ -290604,9 +239879,7 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - index3 = 0; - span101[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA001_03672_Q3_000_000") @@ -290615,8 +239888,7 @@ public static class AssemblyQuestLoader reference79 = obj75; obj74.Steps = list100; reference78 = obj74; - num++; - ref QuestSequence reference80 = ref span97[num]; + ref QuestSequence reference80 = ref span26[3]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -290624,26 +239896,21 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Interact, 1031989u, new Vector3(-139.17761f, -12.634913f, -33.951355f), 419) + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1031989u, new Vector3(-139.17761f, -12.634913f, -33.951355f), 419) { StopDistance = 7f }; obj76.Steps = list102; reference80 = obj76; - num++; - ref QuestSequence reference81 = ref span97[num]; + ref QuestSequence reference81 = ref span26[4]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list103 = new List(index2); - CollectionsMarshal.SetCount(list103, index2); - Span span103 = CollectionsMarshal.AsSpan(list103); - num2 = 0; - ref QuestStep reference82 = ref span103[num2]; + num2 = 1; + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list103)[0]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut @@ -290652,12 +239919,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - index3 = 1; - List list104 = new List(index3); - CollectionsMarshal.SetCount(list104, index3); - Span span104 = CollectionsMarshal.AsSpan(list104); - num3 = 0; - span104[num3] = new DialogueChoice + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA001_03672_EVENTAREA_WARP_000_117") @@ -290666,8 +239931,7 @@ public static class AssemblyQuestLoader reference82 = obj78; obj77.Steps = list103; reference81 = obj77; - num++; - ref QuestSequence reference83 = ref span97[num]; + ref QuestSequence reference83 = ref span26[5]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue @@ -290675,9 +239939,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031684u, new Vector3(-7.156494f, -16f, 163.46985f), 886) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031684u, new Vector3(-7.156494f, -16f, 163.46985f), 886) { NextQuestId = new QuestId(3725) }; @@ -290690,33 +239952,26 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "liza"; + CollectionsMarshal.AsSpan(list106)[0] = "liza"; questRoot12.Author = list106; - index = 4; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference84 = ref span107[num]; + num = 4; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span27 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference84 = ref span27[0]; QuestSequence obj80 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list108)[0]; 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); - Span span109 = CollectionsMarshal.AsSpan(list109); - index3 = 0; - span109[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG101_03673_Q1_000_500"), @@ -290726,8 +239981,7 @@ public static class AssemblyQuestLoader reference85 = questStep5; obj80.Steps = list108; reference84 = obj80; - num++; - ref QuestSequence reference86 = ref span107[num]; + ref QuestSequence reference86 = ref span27[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 @@ -290735,50 +239989,42 @@ public static class AssemblyQuestLoader num2 = 3; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + Span span28 = CollectionsMarshal.AsSpan(list110); + span28[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) + span28[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(30.917934f, 20.495003f, -656.1909f), 156) { Mount = true }; - index2++; - span110[index2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) + span28[2] = new QuestStep(EInteractionType.Interact, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) { Fly = true }; obj81.Steps = list110; reference86 = obj81; - num++; - ref QuestSequence reference87 = ref span107[num]; + ref QuestSequence reference87 = ref span27[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span111[num2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + span29[1] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - num2++; - span111[num2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + span29[2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj82.Steps = list111; reference87 = obj82; - num++; - ref QuestSequence reference88 = ref span107[num]; + ref QuestSequence reference88 = ref span27[3]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -290786,9 +240032,8 @@ public static class AssemblyQuestLoader num2 = 2; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span30 = CollectionsMarshal.AsSpan(list112); + span30[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -290798,8 +240043,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index2++; - span112[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj83.Steps = list112; reference88 = obj83; questRoot12.QuestSequence = list107; @@ -290809,30 +240053,24 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - Span span113 = CollectionsMarshal.AsSpan(list113); - index = 0; - span113[index] = "liza"; + CollectionsMarshal.AsSpan(list113)[0] = "liza"; questRoot13.Author = list113; - index = 5; - List list114 = new List(index); - CollectionsMarshal.SetCount(list114, index); - Span span114 = CollectionsMarshal.AsSpan(list114); - num = 0; - ref QuestSequence reference89 = ref span114[num]; + num = 5; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span31 = CollectionsMarshal.AsSpan(list114); + ref QuestSequence reference89 = ref span31[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj84.Steps = list115; reference89 = obj84; - num++; - ref QuestSequence reference90 = ref span114[num]; + ref QuestSequence reference90 = ref span31[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -290840,9 +240078,8 @@ public static class AssemblyQuestLoader num2 = 6; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.None, null, null, 819) + Span span32 = CollectionsMarshal.AsSpan(list116); + span32[0] = new QuestStep(EInteractionType.None, null, null, 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -290851,8 +240088,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - index2++; - span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -290863,8 +240099,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -290875,8 +240110,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.93826f, 3.1323283f, 690.1962f), 813) + span32[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.93826f, 3.1323283f, 690.1962f), 813) { SkipConditions = new SkipConditions { @@ -290886,28 +240120,23 @@ public static class AssemblyQuestLoader } } }; - index2++; - span116[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.65658f, -0.67464465f, 653.1527f), 813) + span32[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.65658f, -0.67464465f, 653.1527f), 813) { StopDistance = 0.5f, Fly = true }; - index2++; - span116[index2] = new QuestStep(EInteractionType.Interact, 1031726u, new Vector3(-116.80786f, -0.6811354f, 651.026f), 813); + span32[5] = new QuestStep(EInteractionType.Interact, 1031726u, new Vector3(-116.80786f, -0.6811354f, 651.026f), 813); obj85.Steps = list116; reference90 = obj85; - num++; - ref QuestSequence reference91 = ref span114[num]; + ref QuestSequence reference91 = ref span31[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Duty, null, null, 813) { DutyOptions = new DutyOptions { @@ -290916,13 +240145,11 @@ public static class AssemblyQuestLoader }; obj86.Steps = list117; reference91 = obj86; - num++; - span114[num] = new QuestSequence + span31[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference92 = ref span114[num]; + ref QuestSequence reference92 = ref span31[4]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -290930,9 +240157,7 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032451u, new Vector3(-113.359314f, -0.6671539f, 656.79407f), 813) { StopDistance = 5f }; @@ -290945,30 +240170,24 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "liza"; + CollectionsMarshal.AsSpan(list119)[0] = "liza"; questRoot14.Author = list119; - index = 6; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference93 = ref span120[num]; + num = 6; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span33 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference93 = ref span33[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj88.Steps = list121; reference93 = obj88; - num++; - ref QuestSequence reference94 = ref span120[num]; + ref QuestSequence reference94 = ref span33[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -290976,9 +240195,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -290990,25 +240207,21 @@ public static class AssemblyQuestLoader }; obj89.Steps = list122; reference94 = obj89; - num++; - ref QuestSequence reference95 = ref span120[num]; + ref QuestSequence reference95 = ref span33[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj90.Steps = list123; reference95 = obj90; - num++; - ref QuestSequence reference96 = ref span120[num]; + ref QuestSequence reference96 = ref span33[3]; QuestSequence obj91 = new QuestSequence { Sequence = 3 @@ -291016,50 +240229,39 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj91.Steps = list124; reference96 = obj91; - num++; - ref QuestSequence reference97 = ref span120[num]; + ref QuestSequence reference97 = ref span33[4]; QuestSequence obj92 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num2 = 0; - ref QuestStep reference98 = ref span125[num2]; + num2 = 3; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + Span span34 = CollectionsMarshal.AsSpan(list125); + ref QuestStep reference98 = ref span34[0]; QuestStep obj93 = new QuestStep(EInteractionType.UseItem, 1027910u, new Vector3(356.71008f, -27.8172f, 310.04797f), 815) { ItemId = 2002904u }; - 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); + 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); obj93.CompletionQuestVariablesFlags = list126; reference98 = obj93; - num2++; - ref QuestStep reference99 = ref span125[num2]; + ref QuestStep reference99 = ref span34[1]; QuestStep obj94 = new QuestStep(EInteractionType.UseItem, 1027909u, new Vector3(357.47314f, -27.145874f, 317.28076f), 815) { ItemId = 2002904u @@ -291067,49 +240269,35 @@ public static class AssemblyQuestLoader num3 = 6; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - 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); + 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); obj94.CompletionQuestVariablesFlags = list127; reference99 = obj94; - num2++; - ref QuestStep reference100 = ref span125[num2]; + ref QuestStep reference100 = ref span34[2]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 1027939u, new Vector3(415.854f, -28.357805f, 335.4391f), 815) { ItemId = 2002904u }; - 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); + 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); obj95.CompletionQuestVariablesFlags = list128; reference100 = obj95; obj92.Steps = list125; reference97 = obj92; - num++; - ref QuestSequence reference101 = ref span120[num]; + ref QuestSequence reference101 = ref span33[5]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -291117,9 +240305,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815); obj96.Steps = list129; reference101 = obj96; questRoot14.QuestSequence = list120; @@ -291129,30 +240315,24 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot15.Author = list130; - index = 6; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference102 = ref span131[num]; + num = 6; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span38 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference102 = ref span38[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj97.Steps = list132; reference102 = obj97; - num++; - ref QuestSequence reference103 = ref span131[num]; + ref QuestSequence reference103 = ref span38[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -291160,16 +240340,12 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - ref QuestStep reference104 = ref span133[index2]; + ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list133)[0]; 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); - Span span134 = CollectionsMarshal.AsSpan(list134); - index3 = 0; - span134[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG104_03676_Q2_000_100"), @@ -291179,25 +240355,21 @@ public static class AssemblyQuestLoader reference104 = questStep6; obj98.Steps = list133; reference103 = obj98; - num++; - ref QuestSequence reference105 = ref span131[num]; + ref QuestSequence reference105 = ref span38[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj99.Steps = list135; reference105 = obj99; - num++; - ref QuestSequence reference106 = ref span131[num]; + ref QuestSequence reference106 = ref span38[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 @@ -291205,9 +240377,8 @@ public static class AssemblyQuestLoader num2 = 4; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.96634f, 41.707367f, -482.99057f), 815) + Span span39 = CollectionsMarshal.AsSpan(list136); + span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.96634f, 41.707367f, -482.99057f), 815) { SkipConditions = new SkipConditions { @@ -291217,95 +240388,71 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference107 = ref span136[index2]; + ref QuestStep reference107 = ref span39[1]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 2010811u, new Vector3(-16.922302f, 42.282715f, -470.48145f), 815) { StopDistance = 1f, Fly = true }; - 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); + 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); obj101.CompletionQuestVariablesFlags = list137; reference107 = obj101; - index2++; - ref QuestStep reference108 = ref span136[index2]; + ref QuestStep reference108 = ref span39[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list138; reference108 = questStep7; - index2++; - ref QuestStep reference109 = ref span136[index2]; + ref QuestStep reference109 = ref span39[3]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2010809u, new Vector3(19.760376f, 42.130127f, -463.3402f), 815) { Comment = "Combat not necessary to progress quest" }; - 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); + 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); obj102.CompletionQuestVariablesFlags = list139; reference109 = obj102; obj100.Steps = list136; reference106 = obj100; - num++; - ref QuestSequence reference110 = ref span131[num]; + ref QuestSequence reference110 = ref span38[4]; QuestSequence obj103 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Comment = "Should be far enough to reset combat" }; - num2++; - ref QuestStep reference111 = ref span140[num2]; + ref QuestStep reference111 = ref span43[1]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1031732u, new Vector3(366.68945f, -27.966003f, 305.19568f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead @@ -291313,9 +240460,7 @@ public static class AssemblyQuestLoader num3 = 1; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - Span span141 = CollectionsMarshal.AsSpan(list141); - index3 = 0; - span141[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list141)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMG104_03676_Q3_000_200"), @@ -291325,8 +240470,7 @@ public static class AssemblyQuestLoader reference111 = obj104; obj103.Steps = list140; reference110 = obj103; - num++; - ref QuestSequence reference112 = ref span131[num]; + ref QuestSequence reference112 = ref span38[5]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -291334,9 +240478,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031734u, new Vector3(364.58374f, -27.966003f, 304.12744f), 815) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031734u, new Vector3(364.58374f, -27.966003f, 304.12744f), 815) { StopDistance = 6f }; @@ -291349,33 +240491,27 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot16.Author = list143; - index = 3; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference113 = ref span144[num]; + num = 3; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span44 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference113 = ref span44[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj106.Steps = list145; reference113 = obj106; - num++; - ref QuestSequence reference114 = ref span144[num]; + ref QuestSequence reference114 = ref span44[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -291383,26 +240519,21 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.Interact, 1031737u, new Vector3(20.950623f, 82.05f, 17.837708f), 820) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1031737u, new Vector3(20.950623f, 82.05f, 17.837708f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj107.Steps = list146; reference114 = obj107; - num++; - ref QuestSequence reference115 = ref span144[num]; + ref QuestSequence reference115 = ref span44[2]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj108.Steps = list147; reference115 = obj108; questRoot16.QuestSequence = list144; @@ -291412,16 +240543,13 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "liza"; + CollectionsMarshal.AsSpan(list148)[0] = "liza"; questRoot17.Author = list148; - index = 3; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference116 = ref span149[num]; + num = 3; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span45 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference116 = ref span45[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -291429,44 +240557,33 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031742u, new Vector3(-18.60083f, 82.84981f, -48.29486f), 820); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031742u, new Vector3(-18.60083f, 82.84981f, -48.29486f), 820); obj109.Steps = list150; reference116 = obj109; - num++; - ref QuestSequence reference117 = ref span149[num]; + ref QuestSequence reference117 = ref span45[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list151 = new List(index2); - CollectionsMarshal.SetCount(list151, index2); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref QuestStep reference118 = ref span151[num2]; + num2 = 3; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + Span span46 = CollectionsMarshal.AsSpan(list151); + ref QuestStep reference118 = ref span46[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1027544u, new Vector3(12.985352f, 82.05f, -25.223206f), 820); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list152; reference118 = questStep8; - num2++; - ref QuestStep reference119 = ref span151[num2]; + ref QuestStep reference119 = ref span46[1]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1027602u, new Vector3(74.35718f, -10.320814f, 4.8981323f), 820) { AethernetShortcut = new AethernetShortcut @@ -291478,23 +240595,16 @@ public static class AssemblyQuestLoader num3 = 6; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - 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); + 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); obj111.CompletionQuestVariablesFlags = list153; reference119 = obj111; - num2++; - ref QuestStep reference120 = ref span151[num2]; + ref QuestStep reference120 = ref span46[2]; QuestStep obj112 = new QuestStep(EInteractionType.Interact, 1029990u, new Vector3(11.36792f, 5.999995f, -38.651123f), 820) { AethernetShortcut = new AethernetShortcut @@ -291503,28 +240613,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreGloryGate } }; - 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); + 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); obj112.CompletionQuestVariablesFlags = list154; reference120 = obj112; obj110.Steps = list151; reference117 = obj110; - num++; - ref QuestSequence reference121 = ref span149[num]; + ref QuestSequence reference121 = ref span45[2]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -291532,9 +240635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031746u, new Vector3(-4.043701f, -5.091193f, -98.19183f), 820); obj113.Steps = list155; reference121 = obj113; questRoot17.QuestSequence = list149; @@ -291544,30 +240645,24 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "liza"; + CollectionsMarshal.AsSpan(list156)[0] = "liza"; questRoot18.Author = list156; - index = 7; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference122 = ref span157[num]; + num = 7; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span50 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference122 = ref span50[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list158; reference122 = obj114; - num++; - ref QuestSequence reference123 = ref span157[num]; + ref QuestSequence reference123 = ref span50[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -291575,26 +240670,22 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 1027306u, new Vector3(-294.94165f, 18.10139f, 403.5553f), 814) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1027306u, new Vector3(-294.94165f, 18.10139f, 403.5553f), 814) { AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj115.Steps = list159; reference123 = obj115; - num++; - ref QuestSequence reference124 = ref span157[num]; + ref QuestSequence reference124 = ref span50[2]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)814, SkipConditions = new SkipConditions @@ -291605,15 +240696,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span160[num2] = new QuestStep(EInteractionType.Interact, 1031751u, new Vector3(-468.77246f, 334.0526f, -35.05005f), 814) + span51[1] = new QuestStep(EInteractionType.Interact, 1031751u, new Vector3(-468.77246f, 334.0526f, -35.05005f), 814) { Fly = true }; obj116.Steps = list160; reference124 = obj116; - num++; - ref QuestSequence reference125 = ref span157[num]; + ref QuestSequence reference125 = ref span50[3]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -291621,30 +240710,24 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1031753u, new Vector3(-159.19745f, 352.35825f, -212.51245f), 814) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1031753u, new Vector3(-159.19745f, 352.35825f, -212.51245f), 814) { Fly = true }; obj117.Steps = list161; reference125 = obj117; - num++; - ref QuestSequence reference126 = ref span157[num]; + ref QuestSequence reference126 = ref span50[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj118.Steps = list162; reference126 = obj118; - num++; - ref QuestSequence reference127 = ref span157[num]; + ref QuestSequence reference127 = ref span50[5]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -291652,26 +240735,21 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.Interact, 1031748u, new Vector3(-61.417603f, 378.34897f, -454.03223f), 814) + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1031748u, new Vector3(-61.417603f, 378.34897f, -454.03223f), 814) { Fly = true }; obj119.Steps = list163; reference127 = obj119; - num++; - ref QuestSequence reference128 = ref span157[num]; + ref QuestSequence reference128 = ref span50[6]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj120.Steps = list164; reference128 = obj120; questRoot18.QuestSequence = list157; @@ -291681,16 +240759,13 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot19.Author = list165; - index = 5; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference129 = ref span166[num]; + num = 5; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span52 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference129 = ref span52[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -291698,30 +240773,24 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031760u, new Vector3(-60.04431f, 377.92743f, -451.6518f), 814); obj121.Steps = list167; reference129 = obj121; - num++; - ref QuestSequence reference130 = ref span166[num]; + ref QuestSequence reference130 = ref span52[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj122.Steps = list168; reference130 = obj122; - num++; - ref QuestSequence reference131 = ref span166[num]; + ref QuestSequence reference131 = ref span52[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 @@ -291729,33 +240798,27 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Snipe, 2010813u, new Vector3(-421.71362f, 339.62f, -161.45575f), 814) + CollectionsMarshal.AsSpan(list169)[0] = 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; - num++; - ref QuestSequence reference132 = ref span166[num]; + ref QuestSequence reference132 = ref span52[3]; QuestSequence obj124 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj124.Steps = list170; reference132 = obj124; - num++; - ref QuestSequence reference133 = ref span166[num]; + ref QuestSequence reference133 = ref span52[4]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -291763,9 +240826,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031769u, new Vector3(168.5968f, 39.939266f, 585.90063f), 814) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031769u, new Vector3(168.5968f, 39.939266f, 585.90063f), 814) { StopDistance = 7f }; @@ -291778,33 +240839,27 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "liza"; + CollectionsMarshal.AsSpan(list172)[0] = "liza"; questRoot20.Author = list172; - index = 4; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference134 = ref span173[num]; + num = 4; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span53 = CollectionsMarshal.AsSpan(list173); + ref QuestSequence reference134 = ref span53[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj126.Steps = list174; reference134 = obj126; - num++; - ref QuestSequence reference135 = ref span173[num]; + ref QuestSequence reference135 = ref span53[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -291812,30 +240867,24 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1027549u, new Vector3(2.029419f, 83.195244f, 57.846924f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj127.Steps = list175; reference135 = obj127; - num++; - ref QuestSequence reference136 = ref span173[num]; + ref QuestSequence reference136 = ref span53[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj128.Steps = list176; reference136 = obj128; - num++; - ref QuestSequence reference137 = ref span173[num]; + ref QuestSequence reference137 = ref span53[3]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -291843,9 +240892,7 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820); + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820); obj129.Steps = list177; reference137 = obj129; questRoot20.QuestSequence = list173; @@ -291855,30 +240902,24 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "liza"; + CollectionsMarshal.AsSpan(list178)[0] = "liza"; questRoot21.Author = list178; - index = 4; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference138 = ref span179[num]; + num = 4; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span54 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference138 = ref span54[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj130.Steps = list180; reference138 = obj130; - num++; - ref QuestSequence reference139 = ref span179[num]; + ref QuestSequence reference139 = ref span54[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -291886,9 +240927,8 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span55 = CollectionsMarshal.AsSpan(list181); + span55[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -291898,22 +240938,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index2++; - span181[index2] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + span55[1] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj131.Steps = list181; reference139 = obj131; - num++; - ref QuestSequence reference140 = ref span179[num]; + ref QuestSequence reference140 = ref span54[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list182 = new List(index2); - CollectionsMarshal.SetCount(list182, index2); - Span span182 = CollectionsMarshal.AsSpan(list182); - num2 = 0; - ref QuestStep reference141 = ref span182[num2]; + num2 = 2; + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + Span span56 = CollectionsMarshal.AsSpan(list182); + ref QuestStep reference141 = ref span56[0]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, @@ -291924,24 +240961,19 @@ public static class AssemblyQuestLoader num3 = 1; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - Span span183 = CollectionsMarshal.AsSpan(list183); - index3 = 0; - span183[index3] = 351; + CollectionsMarshal.AsSpan(list183)[0] = 351; skipStepConditions.InTerritory = list183; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list184 = new List(index3); - CollectionsMarshal.SetCount(list184, index3); - Span span184 = CollectionsMarshal.AsSpan(list184); - num3 = 0; - span184[num3] = 351; + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + CollectionsMarshal.AsSpan(list184)[0] = 351; skipAetheryteCondition.InTerritory = list184; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj133.SkipConditions = skipConditions; reference141 = obj133; - num2++; - ref QuestStep reference142 = ref span182[num2]; + ref QuestStep reference142 = ref span56[1]; QuestStep obj134 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { Comment = "Estinien vs. Arch Ultima" @@ -291950,22 +240982,17 @@ public static class AssemblyQuestLoader num3 = 4; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - 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"; + 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"; singlePlayerDutyOptions.Notes = list185; obj134.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference142 = obj134; obj132.Steps = list182; reference140 = obj132; - num++; - ref QuestSequence reference143 = ref span179[num]; + ref QuestSequence reference143 = ref span54[3]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -291973,9 +241000,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351) { StopDistance = 5f }; @@ -291988,30 +241013,24 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "liza"; + CollectionsMarshal.AsSpan(list187)[0] = "liza"; questRoot22.Author = list187; - index = 12; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference144 = ref span188[num]; + num = 12; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span58 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference144 = ref span58[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj136.Steps = list189; reference144 = obj136; - num++; - ref QuestSequence reference145 = ref span188[num]; + ref QuestSequence reference145 = ref span58[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -292019,34 +241038,28 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 1031843u, new Vector3(152.48328f, 0.21766767f, 655.4512f), 813) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1031843u, new Vector3(152.48328f, 0.21766767f, 655.4512f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj137.Steps = list190; reference145 = obj137; - num++; - ref QuestSequence reference146 = ref span188[num]; + ref QuestSequence reference146 = ref span58[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj138.Steps = list191; reference146 = obj138; - num++; - ref QuestSequence reference147 = ref span188[num]; + ref QuestSequence reference147 = ref span58[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -292054,44 +241067,36 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - ref QuestStep reference148 = ref span192[index2]; + ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list192)[0]; QuestStep obj140 = new QuestStep(EInteractionType.Combat, null, new Vector3(234.24565f, 10.83118f, 738.46594f), 813) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list193 = new List(index3); - CollectionsMarshal.SetCount(list193, index3); - Span span193 = CollectionsMarshal.AsSpan(list193); - num3 = 0; - span193[num3] = 11437u; + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + CollectionsMarshal.AsSpan(list193)[0] = 11437u; obj140.KillEnemyDataIds = list193; reference148 = obj140; obj139.Steps = list192; reference147 = obj139; - num++; - ref QuestSequence reference149 = ref span188[num]; + ref QuestSequence reference149 = ref span58[4]; QuestSequence obj141 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj141.Steps = list194; reference149 = obj141; - num++; - ref QuestSequence reference150 = ref span188[num]; + ref QuestSequence reference150 = ref span58[5]; QuestSequence obj142 = new QuestSequence { Sequence = 5 @@ -292099,26 +241104,21 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1031846u, new Vector3(-204.76086f, 2.4649847f, 739.9557f), 813) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1031846u, new Vector3(-204.76086f, 2.4649847f, 739.9557f), 813) { Fly = true }; obj142.Steps = list195; reference150 = obj142; - num++; - ref QuestSequence reference151 = ref span188[num]; + ref QuestSequence reference151 = ref span58[6]; QuestSequence obj143 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list196 = new List(index2); - CollectionsMarshal.SetCount(list196, index2); - Span span196 = CollectionsMarshal.AsSpan(list196); - num2 = 0; - ref QuestStep reference152 = ref span196[num2]; + num2 = 1; + List list196 = new List(num2); + CollectionsMarshal.SetCount(list196, num2); + ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list196)[0]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { Fly = true, @@ -292127,9 +241127,7 @@ public static class AssemblyQuestLoader num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span197 = CollectionsMarshal.AsSpan(list197); - index3 = 0; - span197[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANPIX001_03683_EVENTAREA_WARP_000_133") @@ -292138,13 +241136,11 @@ public static class AssemblyQuestLoader reference152 = obj144; obj143.Steps = list196; reference151 = obj143; - num++; - span188[num] = new QuestSequence + span58[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference153 = ref span188[num]; + ref QuestSequence reference153 = ref span58[8]; QuestSequence obj145 = new QuestSequence { Sequence = 8 @@ -292152,32 +241148,25 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 1031850u, new Vector3(55.588623f, -1.6532946f, 48.599854f), 889); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1031850u, new Vector3(55.588623f, -1.6532946f, 48.599854f), 889); obj145.Steps = list198; reference153 = obj145; - num++; - span188[num] = new QuestSequence + span58[9] = new QuestSequence { Sequence = 9 }; - num++; - ref QuestSequence reference154 = ref span188[num]; + ref QuestSequence reference154 = ref span58[10]; QuestSequence obj146 = new QuestSequence { Sequence = 10 }; - 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); + 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); obj146.Steps = list199; reference154 = obj146; - num++; - ref QuestSequence reference155 = ref span188[num]; + ref QuestSequence reference155 = ref span58[11]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -292185,20 +241174,16 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - ref QuestStep reference156 = ref span200[index2]; + ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list200)[0]; QuestStep obj148 = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - index3 = 1; - List list201 = new List(index3); - CollectionsMarshal.SetCount(list201, index3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = new DialogueChoice + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + CollectionsMarshal.AsSpan(list201)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX001_03683_Q3_000_000"), @@ -292215,30 +241200,24 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "liza"; + CollectionsMarshal.AsSpan(list202)[0] = "liza"; questRoot23.Author = list202; - index = 13; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference157 = ref span203[num]; + num = 13; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span59 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference157 = ref span59[0]; QuestSequence obj149 = 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, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + 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); obj149.Steps = list204; reference157 = obj149; - num++; - ref QuestSequence reference158 = ref span203[num]; + ref QuestSequence reference158 = ref span59[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -292246,32 +241225,26 @@ public static class AssemblyQuestLoader num2 = 2; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + Span span60 = CollectionsMarshal.AsSpan(list205); + span60[0] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)890 }; - index2++; - span205[index2] = new QuestStep(EInteractionType.Interact, 1031853u, new Vector3(60.471436f, -1.6051313f, 53.543823f), 890); + span60[1] = new QuestStep(EInteractionType.Interact, 1031853u, new Vector3(60.471436f, -1.6051313f, 53.543823f), 890); obj150.Steps = list205; reference158 = obj150; - num++; - ref QuestSequence reference159 = ref span203[num]; + ref QuestSequence reference159 = ref span59[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj151.Steps = list206; reference159 = obj151; - num++; - ref QuestSequence reference160 = ref span203[num]; + ref QuestSequence reference160 = ref span59[3]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -292279,27 +241252,22 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 1031855u, new Vector3(74.784424f, 98.85967f, -820.88965f), 816) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1031855u, new Vector3(74.784424f, 98.85967f, -820.88965f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; obj152.Steps = list207; reference160 = obj152; - num++; - ref QuestSequence reference161 = ref span203[num]; + ref QuestSequence reference161 = ref span59[4]; QuestSequence obj153 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list208 = new List(index2); - CollectionsMarshal.SetCount(list208, index2); - Span span208 = CollectionsMarshal.AsSpan(list208); - num2 = 0; - ref QuestStep reference162 = ref span208[num2]; + num2 = 1; + List list208 = new List(num2); + CollectionsMarshal.SetCount(list208, num2); + ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list208)[0]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1031858u, new Vector3(-211.35272f, 16.63259f, 427.32886f), 814) { Fly = true, @@ -292308,9 +241276,7 @@ public static class AssemblyQuestLoader num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span209 = CollectionsMarshal.AsSpan(list209); - index3 = 0; - span209[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX002_03684_Q1_000_000"), @@ -292320,8 +241286,7 @@ public static class AssemblyQuestLoader reference162 = obj154; obj153.Steps = list208; reference161 = obj153; - num++; - ref QuestSequence reference163 = ref span203[num]; + ref QuestSequence reference163 = ref span59[5]; QuestSequence obj155 = new QuestSequence { Sequence = 5 @@ -292329,42 +241294,34 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - span210[index2] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) + CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1031860u, new Vector3(-217.45636f, 21.481304f, 356.9237f), 814) { Fly = true }; obj155.Steps = list210; reference163 = obj155; - num++; - ref QuestSequence reference164 = ref span203[num]; + ref QuestSequence reference164 = ref span59[6]; QuestSequence obj156 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list211 = new List(index2); - CollectionsMarshal.SetCount(list211, index2); - Span span211 = CollectionsMarshal.AsSpan(list211); - num2 = 0; - ref QuestStep reference165 = ref span211[num2]; + num2 = 1; + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list211)[0]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, null, new Vector3(-137.7369f, 11.939666f, 336.4078f), 814) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list212 = new List(index3); - CollectionsMarshal.SetCount(list212, index3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - span212[num3] = 11438u; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + CollectionsMarshal.AsSpan(list212)[0] = 11438u; obj157.KillEnemyDataIds = list212; reference165 = obj157; obj156.Steps = list211; reference164 = obj156; - num++; - ref QuestSequence reference166 = ref span203[num]; + ref QuestSequence reference166 = ref span59[7]; QuestSequence obj158 = new QuestSequence { Sequence = 7 @@ -292372,30 +241329,24 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 1031861u, new Vector3(-149.85895f, 13.084818f, 341.1764f), 814); + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1031861u, new Vector3(-149.85895f, 13.084818f, 341.1764f), 814); obj158.Steps = list213; reference166 = obj158; - num++; - ref QuestSequence reference167 = ref span203[num]; + ref QuestSequence reference167 = ref span59[8]; QuestSequence obj159 = new QuestSequence { Sequence = 8 }; - 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) + 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) { Fly = true }; obj159.Steps = list214; reference167 = obj159; - num++; - ref QuestSequence reference168 = ref span203[num]; + ref QuestSequence reference168 = ref span59[9]; QuestSequence obj160 = new QuestSequence { Sequence = 9 @@ -292403,39 +241354,32 @@ public static class AssemblyQuestLoader num2 = 2; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + Span span61 = CollectionsMarshal.AsSpan(list215); + span61[0] = new QuestStep(EInteractionType.Interact, 1031891u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { TargetTerritoryId = (ushort)890, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - index2++; - span215[index2] = new QuestStep(EInteractionType.Interact, 1031863u, new Vector3(60.379883f, 31.0353f, -110.76526f), 890); + span61[1] = new QuestStep(EInteractionType.Interact, 1031863u, new Vector3(60.379883f, 31.0353f, -110.76526f), 890); obj160.Steps = list215; reference168 = obj160; - num++; - span203[num] = new QuestSequence + span59[10] = new QuestSequence { Sequence = 10 }; - num++; - ref QuestSequence reference169 = ref span203[num]; + ref QuestSequence reference169 = ref span59[11]; QuestSequence obj161 = new QuestSequence { Sequence = 11 }; - 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); + 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); obj161.Steps = list216; reference169 = obj161; - num++; - ref QuestSequence reference170 = ref span203[num]; + ref QuestSequence reference170 = ref span59[12]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -292443,9 +241387,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -292459,33 +241401,26 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot24.Author = list218; - index = 11; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference171 = ref span219[num]; + num = 11; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span62 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference171 = ref span62[0]; QuestSequence obj163 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + ref QuestStep reference172 = ref CollectionsMarshal.AsSpan(list220)[0]; 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); - Span span221 = CollectionsMarshal.AsSpan(list221); - index3 = 0; - span221[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list221)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX003_03685_Q1_000_000"), @@ -292495,8 +241430,7 @@ public static class AssemblyQuestLoader reference172 = questStep9; obj163.Steps = list220; reference171 = obj163; - num++; - ref QuestSequence reference173 = ref span219[num]; + ref QuestSequence reference173 = ref span62[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -292504,32 +241438,26 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + Span span63 = CollectionsMarshal.AsSpan(list222); + span63[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - index2++; - span222[index2] = new QuestStep(EInteractionType.Interact, 1031866u, new Vector3(78.690796f, 0.15887591f, 50.0343f), 891); + span63[1] = new QuestStep(EInteractionType.Interact, 1031866u, new Vector3(78.690796f, 0.15887591f, 50.0343f), 891); obj164.Steps = list222; reference173 = obj164; - num++; - ref QuestSequence reference174 = ref span219[num]; + ref QuestSequence reference174 = ref span62[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj165.Steps = list223; reference174 = obj165; - num++; - ref QuestSequence reference175 = ref span219[num]; + ref QuestSequence reference175 = ref span62[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -292537,36 +241465,30 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1031867u, new Vector3(303.15088f, 1.4685827f, -313.34406f), 815) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1031867u, new Vector3(303.15088f, 1.4685827f, -313.34406f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; obj166.Steps = list224; reference175 = obj166; - num++; - ref QuestSequence reference176 = ref span219[num]; + ref QuestSequence reference176 = ref span62[4]; QuestSequence obj167 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span225[num2] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); + span64[1] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); obj167.Steps = list225; reference176 = obj167; - num++; - ref QuestSequence reference177 = ref span219[num]; + ref QuestSequence reference177 = ref span62[5]; QuestSequence obj168 = new QuestSequence { Sequence = 5 @@ -292574,43 +241496,35 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - ref QuestStep reference178 = ref span226[index2]; + ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list226)[0]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(355.25076f, -19.54202f, -4.2170615f), 815) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list227 = new List(index3); - CollectionsMarshal.SetCount(list227, index3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = 11439u; + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = 11439u; obj169.KillEnemyDataIds = list227; reference178 = obj169; obj168.Steps = list226; reference177 = obj168; - num++; - ref QuestSequence reference179 = ref span219[num]; + ref QuestSequence reference179 = ref span62[6]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj170.Steps = list228; reference179 = obj170; - num++; - ref QuestSequence reference180 = ref span219[num]; + ref QuestSequence reference180 = ref span62[7]; QuestSequence obj171 = new QuestSequence { Sequence = 7 @@ -292618,39 +241532,33 @@ public static class AssemblyQuestLoader num2 = 2; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) + Span span65 = CollectionsMarshal.AsSpan(list229); + span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(201.67809f, 7.1558266f, -137.17564f), 815) { Fly = true }; - index2++; - span229[index2] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); + span65[1] = new QuestStep(EInteractionType.Interact, 1031869u, new Vector3(201.06812f, 7.1558266f, -138.81134f), 815); obj171.Steps = list229; reference180 = obj171; - num++; - ref QuestSequence reference181 = ref span219[num]; + ref QuestSequence reference181 = ref span62[8]; QuestSequence obj172 = new QuestSequence { Sequence = 8 }; - 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) + 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) { TargetTerritoryId = (ushort)891, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num2++; - span230[num2] = new QuestStep(EInteractionType.Interact, 1032030u, new Vector3(90.40967f, 40.45613f, -105.48566f), 891); + span66[1] = new QuestStep(EInteractionType.Interact, 1032030u, new Vector3(90.40967f, 40.45613f, -105.48566f), 891); obj172.Steps = list230; reference181 = obj172; - num++; - ref QuestSequence reference182 = ref span219[num]; + ref QuestSequence reference182 = ref span62[9]; QuestSequence obj173 = new QuestSequence { Sequence = 9 @@ -292658,23 +241566,18 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Interact, 1032352u, new Vector3(95.994385f, 38.906254f, -89.37213f), 891); + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1032352u, new Vector3(95.994385f, 38.906254f, -89.37213f), 891); obj173.Steps = list231; reference182 = obj173; - num++; - ref QuestSequence reference183 = ref span219[num]; + ref QuestSequence reference183 = ref span62[10]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -292688,16 +241591,13 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "liza"; + CollectionsMarshal.AsSpan(list233)[0] = "liza"; questRoot25.Author = list233; - index = 11; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference184 = ref span234[num]; + num = 11; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span67 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference184 = ref span67[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -292705,32 +241605,26 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj175.Steps = list235; reference184 = obj175; - num++; - ref QuestSequence reference185 = ref span234[num]; + ref QuestSequence reference185 = ref span67[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)891 }; - num2++; - span236[num2] = new QuestStep(EInteractionType.Interact, 1031875u, new Vector3(63.553833f, -6.2561507f, -4.6845703f), 891); + span68[1] = new QuestStep(EInteractionType.Interact, 1031875u, new Vector3(63.553833f, -6.2561507f, -4.6845703f), 891); obj176.Steps = list236; reference185 = obj176; - num++; - ref QuestSequence reference186 = ref span234[num]; + ref QuestSequence reference186 = ref span67[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 @@ -292738,30 +241632,24 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 1031873u, new Vector3(62.57715f, -6.26951f, -1.2970581f), 891); + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1031873u, new Vector3(62.57715f, -6.26951f, -1.2970581f), 891); obj177.Steps = list237; reference186 = obj177; - num++; - ref QuestSequence reference187 = ref span234[num]; + ref QuestSequence reference187 = ref span67[3]; QuestSequence obj178 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj178.Steps = list238; reference187 = obj178; - num++; - ref QuestSequence reference188 = ref span234[num]; + ref QuestSequence reference188 = ref span67[4]; QuestSequence obj179 = new QuestSequence { Sequence = 4 @@ -292769,23 +241657,18 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Interact, 1031878u, new Vector3(-42.648987f, -18.509216f, 270.31348f), 817); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1031878u, new Vector3(-42.648987f, -18.509216f, 270.31348f), 817); obj179.Steps = list239; reference188 = obj179; - num++; - ref QuestSequence reference189 = ref span234[num]; + ref QuestSequence reference189 = ref span67[5]; QuestSequence obj180 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list240 = new List(index2); - CollectionsMarshal.SetCount(list240, index2); - Span span240 = CollectionsMarshal.AsSpan(list240); - num2 = 0; - ref QuestStep reference190 = ref span240[num2]; + num2 = 1; + List list240 = new List(num2); + CollectionsMarshal.SetCount(list240, num2); + ref QuestStep reference190 = ref CollectionsMarshal.AsSpan(list240)[0]; QuestStep obj181 = new QuestStep(EInteractionType.Combat, null, new Vector3(-277.1741f, 16.288988f, 251.72075f), 817) { StopDistance = 1f, @@ -292794,15 +241677,12 @@ public static class AssemblyQuestLoader num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - Span span241 = CollectionsMarshal.AsSpan(list241); - index3 = 0; - span241[index3] = 11440u; + CollectionsMarshal.AsSpan(list241)[0] = 11440u; obj181.KillEnemyDataIds = list241; reference190 = obj181; obj180.Steps = list240; reference189 = obj180; - num++; - ref QuestSequence reference191 = ref span234[num]; + ref QuestSequence reference191 = ref span67[6]; QuestSequence obj182 = new QuestSequence { Sequence = 6 @@ -292810,32 +241690,26 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new QuestStep(EInteractionType.Interact, 1031879u, new Vector3(-276.93604f, 15.250552f, 263.20276f), 817); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1031879u, new Vector3(-276.93604f, 15.250552f, 263.20276f), 817); obj182.Steps = list242; reference191 = obj182; - num++; - ref QuestSequence reference192 = ref span234[num]; + ref QuestSequence reference192 = ref span67[7]; QuestSequence obj183 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span243[num2] = new QuestStep(EInteractionType.Interact, 1032280u, new Vector3(-42.038635f, -18.997498f, 270.58813f), 817); + span69[1] = new QuestStep(EInteractionType.Interact, 1032280u, new Vector3(-42.038635f, -18.997498f, 270.58813f), 817); obj183.Steps = list243; reference192 = obj183; - num++; - ref QuestSequence reference193 = ref span234[num]; + ref QuestSequence reference193 = ref span67[8]; QuestSequence obj184 = new QuestSequence { Sequence = 8 @@ -292843,34 +241717,28 @@ public static class AssemblyQuestLoader num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + Span span70 = CollectionsMarshal.AsSpan(list244); + span70[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - index2++; - span244[index2] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); + span70[1] = new QuestStep(EInteractionType.Interact, 1032032u, new Vector3(-2.5177612f, 25.887014f, -107.07257f), 891); obj184.Steps = list244; reference193 = obj184; - num++; - ref QuestSequence reference194 = ref span234[num]; + ref QuestSequence reference194 = ref span67[9]; QuestSequence obj185 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj185.Steps = list245; reference194 = obj185; - num++; - ref QuestSequence reference195 = ref span234[num]; + ref QuestSequence reference195 = ref span67[10]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -292878,9 +241746,7 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -292894,30 +241760,24 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list247)[0] = "plogon_enjoyer"; questRoot26.Author = list247; - index = 10; - List list248 = new List(index); - CollectionsMarshal.SetCount(list248, index); - Span span248 = CollectionsMarshal.AsSpan(list248); - num = 0; - ref QuestSequence reference196 = ref span248[num]; + num = 10; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + Span span71 = CollectionsMarshal.AsSpan(list248); + ref QuestSequence reference196 = ref span71[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj187.Steps = list249; reference196 = obj187; - num++; - ref QuestSequence reference197 = ref span248[num]; + ref QuestSequence reference197 = ref span71[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -292925,32 +241785,26 @@ public static class AssemblyQuestLoader num2 = 2; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) + Span span72 = CollectionsMarshal.AsSpan(list250); + span72[0] = new QuestStep(EInteractionType.Interact, 1031892u, new Vector3(-461.5702f, 72.51754f, 586.48047f), 816) { TargetTerritoryId = (ushort)891 }; - index2++; - span250[index2] = new QuestStep(EInteractionType.Interact, 1031883u, new Vector3(-116.07544f, 9.440084f, -41.428284f), 891); + span72[1] = new QuestStep(EInteractionType.Interact, 1031883u, new Vector3(-116.07544f, 9.440084f, -41.428284f), 891); obj188.Steps = list250; reference197 = obj188; - num++; - ref QuestSequence reference198 = ref span248[num]; + ref QuestSequence reference198 = ref span71[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj189.Steps = list251; reference198 = obj189; - num++; - ref QuestSequence reference199 = ref span248[num]; + ref QuestSequence reference199 = ref span71[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -292958,48 +241812,40 @@ public static class AssemblyQuestLoader num2 = 4; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.Interact, 1031204u, new Vector3(481.95605f, 90.43779f, -656.09216f), 816) + Span span73 = CollectionsMarshal.AsSpan(list252); + span73[0] = new QuestStep(EInteractionType.Interact, 1031204u, new Vector3(481.95605f, 90.43779f, -656.09216f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; - index2++; - span252[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-107.78667f, 108.39998f, -840.88965f), 816) + span73[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-107.78667f, 108.39998f, -840.88965f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj190.Steps = list252; reference199 = obj190; - num++; - ref QuestSequence reference200 = ref span248[num]; + ref QuestSequence reference200 = ref span71[4]; QuestSequence obj191 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj191.Steps = list253; reference200 = obj191; - num++; - ref QuestSequence reference201 = ref span248[num]; + ref QuestSequence reference201 = ref span71[5]; QuestSequence obj192 = new QuestSequence { Sequence = 5 @@ -293007,35 +241853,28 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1031808u, new Vector3(-461.53967f, 72.51729f, 586.48047f), 816) { Fly = true }; obj192.Steps = list254; reference201 = obj192; - num++; - ref QuestSequence reference202 = ref span248[num]; + ref QuestSequence reference202 = ref span71[6]; QuestSequence obj193 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj193.Steps = list255; reference202 = obj193; - num++; - span248[num] = new QuestSequence + span71[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference203 = ref span248[num]; + ref QuestSequence reference203 = ref span71[8]; QuestSequence obj194 = new QuestSequence { Sequence = 8 @@ -293043,28 +241882,23 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 1031886u, new Vector3(38.345825f, -4.6399317f, 24.76538f), 892); + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1031886u, new Vector3(38.345825f, -4.6399317f, 24.76538f), 892); obj194.Steps = list256; reference203 = obj194; - num++; - ref QuestSequence reference204 = ref span248[num]; + ref QuestSequence reference204 = ref span71[9]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)816 }; - num2++; - span257[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj195.Steps = list257; reference204 = obj195; questRoot26.QuestSequence = list248; @@ -293074,16 +241908,13 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list258)[0] = "plogon_enjoyer"; questRoot27.Author = list258; - index = 3; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference205 = ref span259[num]; + num = 3; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span75 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference205 = ref span75[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -293091,32 +241922,26 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj196.Steps = list260; reference205 = obj196; - num++; - ref QuestSequence reference206 = ref span259[num]; + ref QuestSequence reference206 = ref span75[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)892 }; - num2++; - span261[num2] = new QuestStep(EInteractionType.Interact, 1031890u, new Vector3(55.649536f, -6.167951f, 8.041443f), 892); + span76[1] = new QuestStep(EInteractionType.Interact, 1031890u, new Vector3(55.649536f, -6.167951f, 8.041443f), 892); obj197.Steps = list261; reference206 = obj197; - num++; - ref QuestSequence reference207 = ref span259[num]; + ref QuestSequence reference207 = ref span75[2]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -293124,14 +241949,12 @@ public static class AssemblyQuestLoader num2 = 2; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) + Span span77 = CollectionsMarshal.AsSpan(list262); + span77[0] = new QuestStep(EInteractionType.Interact, 1032365u, new Vector3(56.412598f, 5.5911026f, 116.16687f), 892) { TargetTerritoryId = (ushort)816 }; - index2++; - span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); + span77[1] = new QuestStep(EInteractionType.CompleteQuest, 1031806u, new Vector3(-464.59143f, 71.76874f, 573.8766f), 816); obj198.Steps = list262; reference207 = obj198; questRoot27.QuestSequence = list259; @@ -293141,30 +241964,24 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot28.Author = list263; - index = 3; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference208 = ref span264[num]; + num = 3; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span78 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference208 = ref span78[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj199.Steps = list265; reference208 = obj199; - num++; - ref QuestSequence reference209 = ref span264[num]; + ref QuestSequence reference209 = ref span78[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -293172,37 +241989,29 @@ public static class AssemblyQuestLoader num2 = 5; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - ref QuestStep reference210 = ref span266[index2]; + Span span79 = CollectionsMarshal.AsSpan(list266); + ref QuestStep reference210 = ref span79[0]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list267; skipConditions2.StepIf = skipStepConditions2; obj201.SkipConditions = skipConditions2; reference210 = obj201; - index2++; - ref QuestStep reference211 = ref span266[index2]; + ref QuestStep reference211 = ref span79[1]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2010856u, new Vector3(-271.29016f, 52.96399f, 605.9204f), 816) { DisableNavmesh = true @@ -293210,106 +242019,76 @@ public static class AssemblyQuestLoader num3 = 6; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - 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); + 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); obj202.CompletionQuestVariablesFlags = list268; reference211 = obj202; - index2++; - ref QuestStep reference212 = ref span266[index2]; + ref QuestStep reference212 = ref span79[2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2010858u, new Vector3(-250.62946f, 50.94983f, 597.7416f), 816); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list269; reference212 = questStep10; - index2++; - ref QuestStep reference213 = ref span266[index2]; + ref QuestStep reference213 = ref span79[3]; 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 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list270; skipConditions3.StepIf = skipStepConditions3; questStep11.SkipConditions = skipConditions3; reference213 = questStep11; - index2++; - ref QuestStep reference214 = ref span266[index2]; + ref QuestStep reference214 = ref span79[4]; QuestStep obj203 = new QuestStep(EInteractionType.Interact, 2010857u, new Vector3(-261.1277f, 50.94983f, 585.2903f), 816) { StopDistance = 4.5f, DisableNavmesh = true }; - 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); + 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); obj203.CompletionQuestVariablesFlags = list271; reference214 = obj203; obj200.Steps = list266; reference209 = obj200; - num++; - ref QuestSequence reference215 = ref span264[num]; + ref QuestSequence reference215 = ref span78[2]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -293322,16 +242101,13 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot29.Author = list273; - index = 3; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference216 = ref span274[num]; + num = 3; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span85 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference216 = ref span85[0]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -293339,23 +242115,18 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj205.Steps = list275; reference216 = obj205; - num++; - ref QuestSequence reference217 = ref span274[num]; + ref QuestSequence reference217 = ref span85[1]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list276 = new List(index2); - CollectionsMarshal.SetCount(list276, index2); - Span span276 = CollectionsMarshal.AsSpan(list276); - num2 = 0; - ref QuestStep reference218 = ref span276[num2]; + num2 = 1; + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + ref QuestStep reference218 = ref CollectionsMarshal.AsSpan(list276)[0]; QuestStep obj207 = new QuestStep(EInteractionType.Combat, 2010859u, new Vector3(-743.86206f, 78.96533f, 457.14502f), 816) { Fly = true, @@ -293364,15 +242135,12 @@ public static class AssemblyQuestLoader num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span277 = CollectionsMarshal.AsSpan(list277); - index3 = 0; - span277[index3] = 11443u; + CollectionsMarshal.AsSpan(list277)[0] = 11443u; obj207.KillEnemyDataIds = list277; reference218 = obj207; obj206.Steps = list276; reference217 = obj206; - num++; - ref QuestSequence reference219 = ref span274[num]; + ref QuestSequence reference219 = ref span85[2]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -293380,9 +242148,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -293395,30 +242161,24 @@ public static class AssemblyQuestLoader num = 1; List list279 = new List(num); CollectionsMarshal.SetCount(list279, num); - Span span279 = CollectionsMarshal.AsSpan(list279); - index = 0; - span279[index] = "liza"; + CollectionsMarshal.AsSpan(list279)[0] = "liza"; questRoot30.Author = list279; - index = 3; - List list280 = new List(index); - CollectionsMarshal.SetCount(list280, index); - Span span280 = CollectionsMarshal.AsSpan(list280); - num = 0; - ref QuestSequence reference220 = ref span280[num]; + num = 3; + List list280 = new List(num); + CollectionsMarshal.SetCount(list280, num); + Span span86 = CollectionsMarshal.AsSpan(list280); + ref QuestSequence reference220 = ref span86[0]; QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj209.Steps = list281; reference220 = obj209; - num++; - ref QuestSequence reference221 = ref span280[num]; + ref QuestSequence reference221 = ref span86[1]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -293426,9 +242186,8 @@ public static class AssemblyQuestLoader num2 = 3; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - ref QuestStep reference222 = ref span282[index2]; + Span span87 = CollectionsMarshal.AsSpan(list282); + ref QuestStep reference222 = ref span87[0]; QuestStep obj211 = new QuestStep(EInteractionType.Say, 1032140u, new Vector3(-459.89166f, 42.65948f, -305.71454f), 816) { Fly = true, @@ -293437,33 +242196,24 @@ public static class AssemblyQuestLoader Key = "TEXT_BANPIX103_03691_SAYTODO_000_030" } }; - 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]; + 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]; int num4 = 1; List list284 = new List(num4); CollectionsMarshal.SetCount(list284, num4); - Span span284 = CollectionsMarshal.AsSpan(list284); - int index4 = 0; - span284[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference223 = list284; - num3++; - span283[num3] = null; - num3++; - span283[num3] = null; + span88[4] = null; + span88[5] = null; obj211.RequiredQuestVariables = list283; reference222 = obj211; - index2++; - ref QuestStep reference224 = ref span282[index2]; + ref QuestStep reference224 = ref span87[1]; QuestStep obj212 = new QuestStep(EInteractionType.Say, 1032141u, new Vector3(-473.47223f, 45.390854f, -311.6656f), 816) { Fly = true, @@ -293475,30 +242225,21 @@ public static class AssemblyQuestLoader num3 = 6; List> list285 = new List>(num3); CollectionsMarshal.SetCount(list285, num3); - 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); + 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); reference225 = list286; - index3++; - span285[index3] = null; - index3++; - span285[index3] = null; + span89[4] = null; + span89[5] = null; obj212.RequiredQuestVariables = list285; reference224 = obj212; - index2++; - ref QuestStep reference226 = ref span282[index2]; + ref QuestStep reference226 = ref span87[2]; QuestStep obj213 = new QuestStep(EInteractionType.Say, 1032142u, new Vector3(-472.7398f, 50.10258f, -328.26733f), 816) { Fly = true, @@ -293507,45 +242248,34 @@ public static class AssemblyQuestLoader Key = "TEXT_BANPIX103_03691_SAYTODO_000_030" } }; - 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]; + 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]; num4 = 1; List list288 = new List(num4); CollectionsMarshal.SetCount(list288, num4); - Span span288 = CollectionsMarshal.AsSpan(list288); - index4 = 0; - span288[index4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list288)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference227 = list288; - num3++; - span287[num3] = null; - num3++; - span287[num3] = null; + span90[4] = null; + span90[5] = null; obj213.RequiredQuestVariables = list287; reference226 = obj213; obj210.Steps = list282; reference221 = obj210; - num++; - ref QuestSequence reference228 = ref span280[num]; + ref QuestSequence reference228 = ref span86[2]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -293559,16 +242289,13 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - span290[index] = "liza"; + CollectionsMarshal.AsSpan(list290)[0] = "liza"; questRoot31.Author = list290; - index = 3; - List list291 = new List(index); - CollectionsMarshal.SetCount(list291, index); - Span span291 = CollectionsMarshal.AsSpan(list291); - num = 0; - ref QuestSequence reference229 = ref span291[num]; + num = 3; + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + Span span91 = CollectionsMarshal.AsSpan(list291); + ref QuestSequence reference229 = ref span91[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -293576,23 +242303,19 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj215.Steps = list292; reference229 = obj215; - num++; - ref QuestSequence reference230 = ref span291[num]; + ref QuestSequence reference230 = ref span91[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -293603,72 +242326,51 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference231 = ref span293[num2]; + ref QuestStep reference231 = ref span92[1]; 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> 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); + 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); reference232 = list295; - index3++; - span294[index3] = null; - index3++; - span294[index3] = null; - index3++; - span294[index3] = null; - index3++; - span294[index3] = null; + span93[2] = null; + span93[3] = null; + span93[4] = null; + span93[5] = null; questStep12.RequiredQuestVariables = list294; reference231 = questStep12; - num2++; - ref QuestStep reference233 = ref span293[num2]; + ref QuestStep reference233 = ref span92[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2010861u, new Vector3(-332.44836f, 44.47998f, 462.15002f), 816); - 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]; + 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]; num4 = 3; List list297 = new List(num4); CollectionsMarshal.SetCount(list297, num4); - 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); + 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); reference234 = list297; - num3++; - span296[num3] = null; - num3++; - span296[num3] = null; - num3++; - span296[num3] = null; - num3++; - span296[num3] = null; + span95[2] = null; + span95[3] = null; + span95[4] = null; + span95[5] = null; questStep13.RequiredQuestVariables = list296; reference233 = questStep13; - num2++; - ref QuestStep reference235 = ref span293[num2]; + ref QuestStep reference235 = ref span92[3]; QuestStep obj217 = new QuestStep(EInteractionType.Interact, 2010863u, new Vector3(-293.08008f, 42.70996f, 463.61487f), 816) { IgnoreDistanceToObject = true @@ -293676,71 +242378,51 @@ public static class AssemblyQuestLoader num3 = 6; List> list298 = new List>(num3); CollectionsMarshal.SetCount(list298, num3); - 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); + 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); reference236 = list299; - index3++; - span298[index3] = null; - index3++; - span298[index3] = null; - index3++; - span298[index3] = null; - index3++; - span298[index3] = null; + span97[2] = null; + span97[3] = null; + span97[4] = null; + span97[5] = null; obj217.RequiredQuestVariables = list298; reference235 = obj217; - num2++; - ref QuestStep reference237 = ref span293[num2]; + ref QuestStep reference237 = ref span92[4]; QuestStep obj218 = new QuestStep(EInteractionType.Interact, 2010862u, new Vector3(-276.96655f, 42.893066f, 453.6659f), 816) { IgnoreDistanceToObject = true }; - 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]; + 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]; num4 = 3; List list301 = new List(num4); CollectionsMarshal.SetCount(list301, num4); - 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); + 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); reference238 = list301; - num3++; - span300[num3] = null; - num3++; - span300[num3] = null; - num3++; - span300[num3] = null; - num3++; - span300[num3] = null; + span99[2] = null; + span99[3] = null; + span99[4] = null; + span99[5] = null; obj218.RequiredQuestVariables = list300; reference237 = obj218; obj216.Steps = list293; reference230 = obj216; - num++; - ref QuestSequence reference239 = ref span291[num]; + ref QuestSequence reference239 = ref span91[2]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue @@ -293748,9 +242430,7 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -293763,30 +242443,24 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - Span span303 = CollectionsMarshal.AsSpan(list303); - index = 0; - span303[index] = "liza"; + CollectionsMarshal.AsSpan(list303)[0] = "liza"; questRoot32.Author = list303; - index = 3; - List list304 = new List(index); - CollectionsMarshal.SetCount(list304, index); - Span span304 = CollectionsMarshal.AsSpan(list304); - num = 0; - ref QuestSequence reference240 = ref span304[num]; + num = 3; + List list304 = new List(num); + CollectionsMarshal.SetCount(list304, num); + Span span101 = CollectionsMarshal.AsSpan(list304); + ref QuestSequence reference240 = ref span101[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj220.Steps = list305; reference240 = obj220; - num++; - ref QuestSequence reference241 = ref span304[num]; + ref QuestSequence reference241 = ref span101[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 @@ -293794,9 +242468,7 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - ref QuestStep reference242 = ref span306[index2]; + ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list306)[0]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, 2010864u, new Vector3(3.8909912f, 13.90094f, 637.23206f), 816) { Fly = true, @@ -293805,25 +242477,20 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - Span span307 = CollectionsMarshal.AsSpan(list307); - index3 = 0; - span307[index3] = 11444u; + CollectionsMarshal.AsSpan(list307)[0] = 11444u; obj222.KillEnemyDataIds = list307; reference242 = obj222; obj221.Steps = list306; reference241 = obj221; - num++; - ref QuestSequence reference243 = ref span304[num]; + ref QuestSequence reference243 = ref span101[2]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -293836,16 +242503,13 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - Span span309 = CollectionsMarshal.AsSpan(list309); - index = 0; - span309[index] = "liza"; + CollectionsMarshal.AsSpan(list309)[0] = "liza"; questRoot33.Author = list309; - index = 3; - List list310 = new List(index); - CollectionsMarshal.SetCount(list310, index); - Span span310 = CollectionsMarshal.AsSpan(list310); - num = 0; - ref QuestSequence reference244 = ref span310[num]; + num = 3; + List list310 = new List(num); + CollectionsMarshal.SetCount(list310, num); + Span span102 = CollectionsMarshal.AsSpan(list310); + ref QuestSequence reference244 = ref span102[0]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -293853,65 +242517,50 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span311[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj224.Steps = list311; reference244 = obj224; - num++; - ref QuestSequence reference245 = ref span310[num]; + ref QuestSequence reference245 = ref span102[1]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span312[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-332.49713f, -44.52391f, -242.4296f), 816) + span103[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-332.49713f, -44.52391f, -242.4296f), 816) { DisableNavmesh = true, Fly = true }; - num2++; - ref QuestStep reference246 = ref span312[num2]; + ref QuestStep reference246 = ref span103[2]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 2010865u, new Vector3(-335.59174f, -53.75763f, -277.9126f), 816) { Fly = true }; - 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); + 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); reference247 = list314; - num3++; - span313[num3] = null; - num3++; - span313[num3] = null; + span104[4] = null; + span104[5] = null; obj226.RequiredQuestVariables = list313; reference246 = obj226; - num2++; - ref QuestStep reference248 = ref span312[num2]; + ref QuestStep reference248 = ref span103[3]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 2010866u, new Vector3(-335.59174f, -54.154297f, -293.41577f), 816) { Fly = true @@ -293919,63 +242568,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list315 = new List>(num3); CollectionsMarshal.SetCount(list315, num3); - 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]; + Span> span105 = CollectionsMarshal.AsSpan(list315); + span105[0] = null; + span105[1] = null; + span105[2] = null; + ref List reference249 = ref span105[3]; num4 = 1; List list316 = new List(num4); CollectionsMarshal.SetCount(list316, num4); - Span span316 = CollectionsMarshal.AsSpan(list316); - index4 = 0; - span316[index4] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list316)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference249 = list316; - index3++; - span315[index3] = null; - index3++; - span315[index3] = null; + span105[4] = null; + span105[5] = null; obj227.RequiredQuestVariables = list315; reference248 = obj227; - num2++; - ref QuestStep reference250 = ref span312[num2]; + ref QuestStep reference250 = ref span103[4]; QuestStep obj228 = new QuestStep(EInteractionType.Interact, 2010867u, new Vector3(-351.64417f, -53.635498f, -295.73517f), 816) { Fly = true }; - 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); + 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); reference251 = list318; - num3++; - span317[num3] = null; - num3++; - span317[num3] = null; + span106[4] = null; + span106[5] = null; obj228.RequiredQuestVariables = list317; reference250 = obj228; obj225.Steps = list312; reference245 = obj225; - num++; - ref QuestSequence reference252 = ref span310[num]; + ref QuestSequence reference252 = ref span102[2]; QuestSequence obj229 = new QuestSequence { Sequence = byte.MaxValue @@ -293983,9 +242614,7 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -293999,30 +242628,24 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - Span span320 = CollectionsMarshal.AsSpan(list320); - index = 0; - span320[index] = "liza"; + CollectionsMarshal.AsSpan(list320)[0] = "liza"; questRoot34.Author = list320; - index = 3; - List list321 = new List(index); - CollectionsMarshal.SetCount(list321, index); - Span span321 = CollectionsMarshal.AsSpan(list321); - num = 0; - ref QuestSequence reference253 = ref span321[num]; + num = 3; + List list321 = new List(num); + CollectionsMarshal.SetCount(list321, num); + Span span107 = CollectionsMarshal.AsSpan(list321); + ref QuestSequence reference253 = ref span107[0]; QuestSequence obj230 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj230.Steps = list322; reference253 = obj230; - num++; - ref QuestSequence reference254 = ref span321[num]; + ref QuestSequence reference254 = ref span107[1]; QuestSequence obj231 = new QuestSequence { Sequence = 1 @@ -294030,9 +242653,7 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - ref QuestStep reference255 = ref span323[index2]; + ref QuestStep reference255 = ref CollectionsMarshal.AsSpan(list323)[0]; QuestStep obj232 = new QuestStep(EInteractionType.Combat, 2010868u, new Vector3(-504.32596f, 77.22583f, -410.11676f), 816) { Fly = true, @@ -294041,25 +242662,20 @@ public static class AssemblyQuestLoader num3 = 1; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - Span span324 = CollectionsMarshal.AsSpan(list324); - index3 = 0; - span324[index3] = 11445u; + CollectionsMarshal.AsSpan(list324)[0] = 11445u; obj232.KillEnemyDataIds = list324; reference255 = obj232; obj231.Steps = list323; reference254 = obj231; - num++; - ref QuestSequence reference256 = ref span321[num]; + ref QuestSequence reference256 = ref span107[2]; QuestSequence obj233 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -294073,16 +242689,13 @@ public static class AssemblyQuestLoader num = 1; List list326 = new List(num); CollectionsMarshal.SetCount(list326, num); - Span span326 = CollectionsMarshal.AsSpan(list326); - index = 0; - span326[index] = "liza"; + CollectionsMarshal.AsSpan(list326)[0] = "liza"; questRoot35.Author = list326; - index = 3; - List list327 = new List(index); - CollectionsMarshal.SetCount(list327, index); - Span span327 = CollectionsMarshal.AsSpan(list327); - num = 0; - ref QuestSequence reference257 = ref span327[num]; + num = 3; + List list327 = new List(num); + CollectionsMarshal.SetCount(list327, num); + Span span108 = CollectionsMarshal.AsSpan(list327); + ref QuestSequence reference257 = ref span108[0]; QuestSequence obj234 = new QuestSequence { Sequence = 0 @@ -294090,47 +242703,36 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - index2 = 0; - span328[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj234.Steps = list328; reference257 = obj234; - num++; - ref QuestSequence reference258 = ref span327[num]; + ref QuestSequence reference258 = ref span108[1]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list329 = new List(index2); - CollectionsMarshal.SetCount(list329, index2); - Span span329 = CollectionsMarshal.AsSpan(list329); - num2 = 0; - ref QuestStep reference259 = ref span329[num2]; + num2 = 2; + List list329 = new List(num2); + CollectionsMarshal.SetCount(list329, num2); + Span span109 = CollectionsMarshal.AsSpan(list329); + ref QuestStep reference259 = ref span109[0]; QuestStep obj236 = new QuestStep(EInteractionType.Interact, 2010888u, new Vector3(-171.58777f, 5.2338257f, -252.88782f), 816) { Fly = true }; - 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); + 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); obj236.CompletionQuestVariablesFlags = list330; reference259 = obj236; - num2++; - ref QuestStep reference260 = ref span329[num2]; + ref QuestStep reference260 = ref span109[1]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 2010889u, new Vector3(-170.1839f, 4.9591064f, -283.0396f), 816) { Fly = true @@ -294138,25 +242740,18 @@ public static class AssemblyQuestLoader num3 = 6; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - 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); + 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); obj237.CompletionQuestVariablesFlags = list331; reference260 = obj237; obj235.Steps = list329; reference258 = obj235; - num++; - ref QuestSequence reference261 = ref span327[num]; + ref QuestSequence reference261 = ref span108[2]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -294164,9 +242759,7 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span332 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -294180,30 +242773,24 @@ public static class AssemblyQuestLoader num = 1; List list333 = new List(num); CollectionsMarshal.SetCount(list333, num); - Span span333 = CollectionsMarshal.AsSpan(list333); - index = 0; - span333[index] = "liza"; + CollectionsMarshal.AsSpan(list333)[0] = "liza"; questRoot36.Author = list333; - index = 3; - List list334 = new List(index); - CollectionsMarshal.SetCount(list334, index); - Span span334 = CollectionsMarshal.AsSpan(list334); - num = 0; - ref QuestSequence reference262 = ref span334[num]; + num = 3; + List list334 = new List(num); + CollectionsMarshal.SetCount(list334, num); + Span span112 = CollectionsMarshal.AsSpan(list334); + ref QuestSequence reference262 = ref span112[0]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj239.Steps = list335; reference262 = obj239; - num++; - ref QuestSequence reference263 = ref span334[num]; + ref QuestSequence reference263 = ref span112[1]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -294211,37 +242798,30 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span336 = CollectionsMarshal.AsSpan(list336); - index2 = 0; - ref QuestStep reference264 = ref span336[index2]; + ref QuestStep reference264 = ref CollectionsMarshal.AsSpan(list336)[0]; QuestStep obj241 = new QuestStep(EInteractionType.Combat, 2010890u, new Vector3(10.0251465f, 32.944214f, -608.6061f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list337 = new List(index3); - CollectionsMarshal.SetCount(list337, index3); - Span span337 = CollectionsMarshal.AsSpan(list337); - num3 = 0; - span337[num3] = 11446u; + num3 = 1; + List list337 = new List(num3); + CollectionsMarshal.SetCount(list337, num3); + CollectionsMarshal.AsSpan(list337)[0] = 11446u; obj241.KillEnemyDataIds = list337; reference264 = obj241; obj240.Steps = list336; reference263 = obj240; - num++; - ref QuestSequence reference265 = ref span334[num]; + ref QuestSequence reference265 = ref span112[2]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -294255,16 +242835,13 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - Span span339 = CollectionsMarshal.AsSpan(list339); - index = 0; - span339[index] = "liza"; + CollectionsMarshal.AsSpan(list339)[0] = "liza"; questRoot37.Author = list339; - index = 4; - List list340 = new List(index); - CollectionsMarshal.SetCount(list340, index); - Span span340 = CollectionsMarshal.AsSpan(list340); - num = 0; - ref QuestSequence reference266 = ref span340[num]; + num = 4; + List list340 = new List(num); + CollectionsMarshal.SetCount(list340, num); + Span span113 = CollectionsMarshal.AsSpan(list340); + ref QuestSequence reference266 = ref span113[0]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -294272,27 +242849,21 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj243.Steps = list341; reference266 = obj243; - num++; - ref QuestSequence reference267 = ref span340[num]; + ref QuestSequence reference267 = ref span113[1]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj244.Steps = list342; reference267 = obj244; - num++; - ref QuestSequence reference268 = ref span340[num]; + ref QuestSequence reference268 = ref span113[2]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -294300,9 +242871,8 @@ public static class AssemblyQuestLoader num2 = 3; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - ref QuestStep reference269 = ref span343[index2]; + Span span114 = CollectionsMarshal.AsSpan(list343); + ref QuestStep reference269 = ref span114[0]; QuestStep obj246 = new QuestStep(EInteractionType.Action, 2010891u, new Vector3(-852.0485f, 37.67456f, 298.11548f), 816) { Fly = true, @@ -294311,66 +242881,48 @@ public static class AssemblyQuestLoader num3 = 6; List> list344 = new List>(num3); CollectionsMarshal.SetCount(list344, num3); - Span> span344 = CollectionsMarshal.AsSpan(list344); - index3 = 0; - span344[index3] = null; - index3++; - span344[index3] = null; - index3++; - ref List reference270 = ref span344[index3]; + Span> span115 = CollectionsMarshal.AsSpan(list344); + span115[0] = null; + span115[1] = null; + ref List reference270 = ref span115[2]; num4 = 2; List list345 = new List(num4); CollectionsMarshal.SetCount(list345, num4); - 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); + Span span116 = CollectionsMarshal.AsSpan(list345); + span116[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + span116[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference270 = list345; - index3++; - span344[index3] = null; - index3++; - span344[index3] = null; - index3++; - span344[index3] = null; + span115[3] = null; + span115[4] = null; + span115[5] = null; obj246.RequiredQuestVariables = list344; reference269 = obj246; - index2++; - ref QuestStep reference271 = ref span343[index2]; + ref QuestStep reference271 = ref span114[1]; QuestStep obj247 = new QuestStep(EInteractionType.Action, 2010892u, new Vector3(-774.44116f, 54.520386f, 102.61682f), 816) { Fly = true, Action = EAction.SiphonSnout }; - 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); + 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); reference272 = list347; - num3++; - span346[num3] = null; - num3++; - span346[num3] = null; - num3++; - span346[num3] = null; + span117[3] = null; + span117[4] = null; + span117[5] = null; obj247.RequiredQuestVariables = list346; reference271 = obj247; - index2++; - ref QuestStep reference273 = ref span343[index2]; + ref QuestStep reference273 = ref span114[2]; QuestStep obj248 = new QuestStep(EInteractionType.Action, 2010893u, new Vector3(-802.30414f, 27.115234f, -108.44586f), 816) { Fly = true, @@ -294379,51 +242931,40 @@ public static class AssemblyQuestLoader num3 = 6; List> list348 = new List>(num3); CollectionsMarshal.SetCount(list348, num3); - Span> span348 = CollectionsMarshal.AsSpan(list348); - index3 = 0; - span348[index3] = null; - index3++; - span348[index3] = null; - index3++; - ref List reference274 = ref span348[index3]; + Span> span119 = CollectionsMarshal.AsSpan(list348); + span119[0] = null; + span119[1] = null; + ref List reference274 = ref span119[2]; num4 = 2; List list349 = new List(num4); CollectionsMarshal.SetCount(list349, num4); - 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); + Span span120 = CollectionsMarshal.AsSpan(list349); + span120[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + span120[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference274 = list349; - index3++; - span348[index3] = null; - index3++; - span348[index3] = null; - index3++; - span348[index3] = null; + span119[3] = null; + span119[4] = null; + span119[5] = null; obj248.RequiredQuestVariables = list348; reference273 = obj248; obj245.Steps = list343; reference268 = obj245; - num++; - ref QuestSequence reference275 = ref span340[num]; + ref QuestSequence reference275 = ref span113[3]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 3f, Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - num2++; - span350[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span121[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Mount = false }; @@ -294436,16 +242977,13 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - Span span351 = CollectionsMarshal.AsSpan(list351); - index = 0; - span351[index] = "liza"; + CollectionsMarshal.AsSpan(list351)[0] = "liza"; questRoot38.Author = list351; - index = 3; - List list352 = new List(index); - CollectionsMarshal.SetCount(list352, index); - Span span352 = CollectionsMarshal.AsSpan(list352); - num = 0; - ref QuestSequence reference276 = ref span352[num]; + num = 3; + List list352 = new List(num); + CollectionsMarshal.SetCount(list352, num); + Span span122 = CollectionsMarshal.AsSpan(list352); + ref QuestSequence reference276 = ref span122[0]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -294453,55 +242991,42 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj250.Steps = list353; reference276 = obj250; - num++; - ref QuestSequence reference277 = ref span352[num]; + ref QuestSequence reference277 = ref span122[1]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list354 = new List(index2); - CollectionsMarshal.SetCount(list354, index2); - Span span354 = CollectionsMarshal.AsSpan(list354); - num2 = 0; - ref QuestStep reference278 = ref span354[num2]; + num2 = 3; + List list354 = new List(num2); + CollectionsMarshal.SetCount(list354, num2); + Span span123 = CollectionsMarshal.AsSpan(list354); + ref QuestStep reference278 = ref span123[0]; QuestStep obj252 = new QuestStep(EInteractionType.Interact, 1032183u, new Vector3(-105.60773f, 110.29838f, -196.97876f), 816) { StopDistance = 1f, Fly = true }; - 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); + 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); reference279 = list356; - num3++; - span355[num3] = null; - num3++; - span355[num3] = null; - num3++; - span355[num3] = null; + span124[3] = null; + span124[4] = null; + span124[5] = null; obj252.RequiredQuestVariables = list355; reference278 = obj252; - num2++; - ref QuestStep reference280 = ref span354[num2]; + ref QuestStep reference280 = ref span123[1]; QuestStep obj253 = new QuestStep(EInteractionType.Interact, 1032185u, new Vector3(-185.29034f, 154.79187f, -262.89777f), 816) { Fly = true @@ -294509,63 +243034,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list357 = new List>(num3); CollectionsMarshal.SetCount(list357, num3); - Span> span357 = CollectionsMarshal.AsSpan(list357); - index3 = 0; - span357[index3] = null; - index3++; - span357[index3] = null; - index3++; - ref List reference281 = ref span357[index3]; + Span> span125 = CollectionsMarshal.AsSpan(list357); + span125[0] = null; + span125[1] = null; + ref List reference281 = ref span125[2]; num4 = 1; List list358 = new List(num4); CollectionsMarshal.SetCount(list358, num4); - Span span358 = CollectionsMarshal.AsSpan(list358); - index4 = 0; - span358[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list358)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference281 = list358; - index3++; - span357[index3] = null; - index3++; - span357[index3] = null; - index3++; - span357[index3] = null; + span125[3] = null; + span125[4] = null; + span125[5] = null; obj253.RequiredQuestVariables = list357; reference280 = obj253; - num2++; - ref QuestStep reference282 = ref span354[num2]; + ref QuestStep reference282 = ref span123[2]; QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1032184u, new Vector3(-226.27612f, 114.61068f, -305.6535f), 816) { Fly = true }; - 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); + 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); reference283 = list360; - num3++; - span359[num3] = null; - num3++; - span359[num3] = null; - num3++; - span359[num3] = null; + span126[3] = null; + span126[4] = null; + span126[5] = null; obj254.RequiredQuestVariables = list359; reference282 = obj254; obj251.Steps = list354; reference277 = obj251; - num++; - ref QuestSequence reference284 = ref span352[num]; + ref QuestSequence reference284 = ref span122[2]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue @@ -294573,9 +243080,7 @@ public static class AssemblyQuestLoader num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span361 = CollectionsMarshal.AsSpan(list361); - index2 = 0; - span361[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -294593,16 +243098,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -294610,23 +243112,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Combat, 2010894u, new Vector3(268.51294f, 33.707153f, -78.14148f), 816) { Fly = true, @@ -294635,15 +243132,12 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 11448u; + CollectionsMarshal.AsSpan(list5)[0] = 11448u; obj3.KillEnemyDataIds = list5; reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -294651,9 +243145,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -294667,30 +243159,24 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 5; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 5; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -294698,59 +243184,46 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) { Fly = true }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span2[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference8 = ref span11[num2]; + num2 = 3; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + Span span3 = CollectionsMarshal.AsSpan(list11); + ref QuestStep reference8 = ref span3[0]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 2010895u, new Vector3(718.28796f, 188.06738f, 296.77258f), 816) { Fly = true }; - 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]; + 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]; int num4 = 2; List list13 = new List(num4); CollectionsMarshal.SetCount(list13, num4); - 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); + Span span5 = CollectionsMarshal.AsSpan(list13); + span5[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span5[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference9 = list13; - num3++; - span12[num3] = null; - num3++; - span12[num3] = null; - num3++; - span12[num3] = null; - num3++; - span12[num3] = null; + span4[2] = null; + span4[3] = null; + span4[4] = null; + span4[5] = null; obj8.RequiredQuestVariables = list12; reference8 = obj8; - num2++; - ref QuestStep reference10 = ref span11[num2]; + ref QuestStep reference10 = ref span3[1]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2010896u, new Vector3(743.5569f, 189.83752f, 260.4867f), 816) { Fly = true @@ -294758,67 +243231,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list14 = new List>(num3); CollectionsMarshal.SetCount(list14, num3); - 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); + 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); reference11 = list15; - index3++; - span14[index3] = null; - index3++; - span14[index3] = null; - index3++; - span14[index3] = null; - index3++; - span14[index3] = null; + span6[2] = null; + span6[3] = null; + span6[4] = null; + span6[5] = null; obj9.RequiredQuestVariables = list14; reference10 = obj9; - num2++; - ref QuestStep reference12 = ref span11[num2]; + ref QuestStep reference12 = ref span3[2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2010897u, new Vector3(769.0698f, 191.60742f, 251.88062f), 816) { Fly = true }; - 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]; + 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]; num4 = 2; List list17 = new List(num4); CollectionsMarshal.SetCount(list17, num4); - 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); + Span span9 = CollectionsMarshal.AsSpan(list17); + span9[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + span9[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference13 = list17; - num3++; - span16[num3] = null; - num3++; - span16[num3] = null; - num3++; - span16[num3] = null; - num3++; - span16[num3] = null; + span8[2] = null; + span8[3] = null; + span8[4] = null; + span8[5] = null; obj10.RequiredQuestVariables = list16; reference12 = obj10; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference14 = ref span8[num]; + ref QuestSequence reference14 = ref span2[3]; QuestSequence obj11 = new QuestSequence { Sequence = 3 @@ -294826,27 +243281,22 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1032261u, new Vector3(-258.38104f, 50.977943f, 601.2206f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj11.Steps = list18; reference14 = obj11; - num++; - ref QuestSequence reference15 = ref span8[num]; + ref QuestSequence reference15 = ref span2[4]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -294859,16 +243309,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; - index = 3; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 3; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span10 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span10[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -294876,23 +243323,19 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj13.Steps = list22; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span10[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list23 = new List(index2); - CollectionsMarshal.SetCount(list23, index2); - Span span23 = CollectionsMarshal.AsSpan(list23); - num2 = 0; - ref QuestStep reference18 = ref span23[num2]; + num2 = 3; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + Span span11 = CollectionsMarshal.AsSpan(list23); + ref QuestStep reference18 = ref span11[0]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 2010900u, new Vector3(787.92993f, 187.33496f, 174.33423f), 816) { Fly = true @@ -294900,61 +243343,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list24 = new List>(num3); CollectionsMarshal.SetCount(list24, num3); - 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); + 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); reference19 = list25; - index3++; - span24[index3] = null; - index3++; - span24[index3] = null; + span12[4] = null; + span12[5] = null; obj15.RequiredQuestVariables = list24; reference18 = obj15; - num2++; - ref QuestStep reference20 = ref span23[num2]; + ref QuestStep reference20 = ref span11[1]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 2010899u, new Vector3(783.2302f, 187.30444f, 151.995f), 816) { Fly = true }; - 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]; + 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]; num4 = 1; List list27 = new List(num4); CollectionsMarshal.SetCount(list27, num4); - Span span27 = CollectionsMarshal.AsSpan(list27); - num5 = 0; - span27[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list27)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference21 = list27; - num3++; - span26[num3] = null; - num3++; - span26[num3] = null; + span13[4] = null; + span13[5] = null; obj16.RequiredQuestVariables = list26; reference20 = obj16; - num2++; - ref QuestStep reference22 = ref span23[num2]; + ref QuestStep reference22 = ref span11[2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 2010898u, new Vector3(765.8655f, 187.30444f, 163.53088f), 816) { Fly = true @@ -294962,32 +243387,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list28 = new List>(num3); CollectionsMarshal.SetCount(list28, num3); - 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); + 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); reference23 = list29; - index3++; - span28[index3] = null; - index3++; - span28[index3] = null; + span14[4] = null; + span14[5] = null; obj17.RequiredQuestVariables = list28; reference22 = obj17; obj14.Steps = list23; reference17 = obj14; - num++; - ref QuestSequence reference24 = ref span21[num]; + ref QuestSequence reference24 = ref span10[2]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -294995,14 +243411,12 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.3476f, 186.89098f, 193.8602f), 816) + Span span15 = CollectionsMarshal.AsSpan(list30); + span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(743.3476f, 186.89098f, 193.8602f), 816) { Mount = false }; - index2++; - span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span15[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -295016,30 +243430,24 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "liza"; + CollectionsMarshal.AsSpan(list31)[0] = "liza"; questRoot4.Author = list31; - index = 3; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference25 = ref span32[num]; + num = 3; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span16 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference25 = ref span16[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj19.Steps = list33; reference25 = obj19; - num++; - ref QuestSequence reference26 = ref span32[num]; + ref QuestSequence reference26 = ref span16[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -295047,40 +243455,30 @@ public static class AssemblyQuestLoader num2 = 3; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - ref QuestStep reference27 = ref span34[index2]; + Span span17 = CollectionsMarshal.AsSpan(list34); + ref QuestStep reference27 = ref span17[0]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1032169u, new Vector3(-423.33105f, 25.599815f, 265.94946f), 816) { Fly = true }; - 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]; + 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]; num4 = 1; List list36 = new List(num4); CollectionsMarshal.SetCount(list36, num4); - Span span36 = CollectionsMarshal.AsSpan(list36); - num5 = 0; - span36[num5] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list36)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference28 = list36; - num3++; - span35[num3] = null; - num3++; - span35[num3] = null; - num3++; - span35[num3] = null; - num3++; - span35[num3] = null; + span18[2] = null; + span18[3] = null; + span18[4] = null; + span18[5] = null; obj21.RequiredQuestVariables = list35; reference27 = obj21; - index2++; - ref QuestStep reference29 = ref span34[index2]; + ref QuestStep reference29 = ref span17[1]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1032168u, new Vector3(-431.3573f, 24.720499f, 251.60596f), 816) { Fly = true @@ -295088,73 +243486,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list37 = new List>(num3); CollectionsMarshal.SetCount(list37, num3); - 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); + 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); reference30 = list38; - index3++; - span37[index3] = null; - index3++; - span37[index3] = null; - index3++; - span37[index3] = null; - index3++; - span37[index3] = null; + span19[2] = null; + span19[3] = null; + span19[4] = null; + span19[5] = null; obj22.RequiredQuestVariables = list37; reference29 = obj22; - index2++; - ref QuestStep reference31 = ref span34[index2]; + ref QuestStep reference31 = ref span17[2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1032167u, new Vector3(-416.52557f, 20.303928f, 221.75928f), 816) { Fly = true }; - 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]; + 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]; num4 = 1; List list40 = new List(num4); CollectionsMarshal.SetCount(list40, num4); - Span span40 = CollectionsMarshal.AsSpan(list40); - num5 = 0; - span40[num5] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list40)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference32 = list40; - num3++; - span39[num3] = null; - num3++; - span39[num3] = null; - num3++; - span39[num3] = null; - num3++; - span39[num3] = null; + span20[2] = null; + span20[3] = null; + span20[4] = null; + span20[5] = null; obj23.RequiredQuestVariables = list39; reference31 = obj23; obj20.Steps = list34; reference26 = obj20; - num++; - ref QuestSequence reference33 = ref span32[num]; + ref QuestSequence reference33 = ref span16[2]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -295167,16 +243545,13 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot5.Author = list42; - index = 3; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference34 = ref span43[num]; + num = 3; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span21 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference34 = ref span21[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -295184,23 +243559,19 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj25.Steps = list44; reference34 = obj25; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span21[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref QuestStep reference36 = ref span45[num2]; + num2 = 3; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + Span span22 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference36 = ref span22[0]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2010901u, new Vector3(-413.96204f, -0.10687256f, -55.77173f), 816) { Fly = true @@ -295208,61 +243579,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list46 = new List>(num3); CollectionsMarshal.SetCount(list46, num3); - 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); + 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); reference37 = list47; - index3++; - span46[index3] = null; - index3++; - span46[index3] = null; - index3++; - span46[index3] = null; + span23[3] = null; + span23[4] = null; + span23[5] = null; obj27.RequiredQuestVariables = list46; reference36 = obj27; - num2++; - ref QuestStep reference38 = ref span45[num2]; + ref QuestStep reference38 = ref span22[1]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2010902u, new Vector3(-405.9358f, -0.07635498f, -28.397034f), 816) { Fly = true }; - 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]; + 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]; num4 = 1; List list49 = new List(num4); CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - num5 = 0; - span49[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list49)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference39 = list49; - num3++; - span48[num3] = null; - num3++; - span48[num3] = null; - num3++; - span48[num3] = null; + span24[3] = null; + span24[4] = null; + span24[5] = null; obj28.RequiredQuestVariables = list48; reference38 = obj28; - num2++; - ref QuestStep reference40 = ref span45[num2]; + ref QuestStep reference40 = ref span22[2]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2010903u, new Vector3(-395.46808f, -0.07635498f, -0.16790771f), 816) { Fly = true @@ -295270,32 +243623,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list50 = new List>(num3); CollectionsMarshal.SetCount(list50, num3); - 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); + 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); reference41 = list51; - index3++; - span50[index3] = null; - index3++; - span50[index3] = null; - index3++; - span50[index3] = null; + span25[3] = null; + span25[4] = null; + span25[5] = null; obj29.RequiredQuestVariables = list50; reference40 = obj29; obj26.Steps = list45; reference35 = obj26; - num++; - ref QuestSequence reference42 = ref span43[num]; + ref QuestSequence reference42 = ref span21[2]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -295303,15 +243647,13 @@ public static class AssemblyQuestLoader num2 = 2; 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(-427.47775f, 5.0289116f, 18.171812f), 816) + Span span26 = CollectionsMarshal.AsSpan(list52); + span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-427.47775f, 5.0289116f, 18.171812f), 816) { DisableNavmesh = true, Mount = false }; - index2++; - span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -295325,30 +243667,24 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "liza"; + CollectionsMarshal.AsSpan(list53)[0] = "liza"; questRoot6.Author = list53; - index = 3; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference43 = ref span54[num]; + num = 3; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span27 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference43 = ref span27[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj31.Steps = list55; reference43 = obj31; - num++; - ref QuestSequence reference44 = ref span54[num]; + ref QuestSequence reference44 = ref span27[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -295356,45 +243692,34 @@ public static class AssemblyQuestLoader num2 = 4; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.77283f, 7.1942587f, 130.61378f), 816) + Span span28 = CollectionsMarshal.AsSpan(list56); + span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-115.77283f, 7.1942587f, 130.61378f), 816) { Fly = true }; - index2++; - ref QuestStep reference45 = ref span56[index2]; + ref QuestStep reference45 = ref span28[1]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2010911u, new Vector3(-113.93915f, -36.087585f, 87.6936f), 816) { DisableNavmesh = true }; - 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]; + 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]; num4 = 1; List list58 = new List(num4); CollectionsMarshal.SetCount(list58, num4); - Span span58 = CollectionsMarshal.AsSpan(list58); - num5 = 0; - span58[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list58)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference46 = list58; - num3++; - span57[num3] = null; - num3++; - span57[num3] = null; - num3++; - span57[num3] = null; - num3++; - span57[num3] = null; + span29[2] = null; + span29[3] = null; + span29[4] = null; + span29[5] = null; obj33.RequiredQuestVariables = list57; reference45 = obj33; - index2++; - ref QuestStep reference47 = ref span56[index2]; + ref QuestStep reference47 = ref span28[2]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 2010904u, new Vector3(-164.93481f, -50.919373f, 71.15283f), 816) { DisableNavmesh = true @@ -295402,73 +243727,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list59 = new List>(num3); CollectionsMarshal.SetCount(list59, num3); - 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); + 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); reference48 = list60; - index3++; - span59[index3] = null; - index3++; - span59[index3] = null; - index3++; - span59[index3] = null; - index3++; - span59[index3] = null; + span30[2] = null; + span30[3] = null; + span30[4] = null; + span30[5] = null; obj34.RequiredQuestVariables = list59; reference47 = obj34; - index2++; - ref QuestStep reference49 = ref span56[index2]; + ref QuestStep reference49 = ref span28[3]; QuestStep obj35 = new QuestStep(EInteractionType.Interact, 2010910u, new Vector3(-189.86804f, -66.941345f, 13.046387f), 816) { DisableNavmesh = true }; - 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]; + 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]; num4 = 1; List list62 = new List(num4); CollectionsMarshal.SetCount(list62, num4); - Span span62 = CollectionsMarshal.AsSpan(list62); - num5 = 0; - span62[num5] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list62)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference50 = list62; - num3++; - span61[num3] = null; - num3++; - span61[num3] = null; - num3++; - span61[num3] = null; - num3++; - span61[num3] = null; + span31[2] = null; + span31[3] = null; + span31[4] = null; + span31[5] = null; obj35.RequiredQuestVariables = list61; reference49 = obj35; obj32.Steps = list56; reference44 = obj32; - num++; - ref QuestSequence reference51 = ref span54[num]; + ref QuestSequence reference51 = ref span27[2]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -295482,16 +243787,13 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot7.Author = list64; - index = 3; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference52 = ref span65[num]; + num = 3; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span32 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference52 = ref span32[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -295499,23 +243801,18 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj37.Steps = list66; reference52 = obj37; - num++; - ref QuestSequence reference53 = ref span65[num]; + ref QuestSequence reference53 = ref span32[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list67 = new List(index2); - CollectionsMarshal.SetCount(list67, index2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num2 = 0; - ref QuestStep reference54 = ref span67[num2]; + num2 = 1; + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list67)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, 2010905u, new Vector3(164.01917f, 0.289917f, 640.2228f), 816) { Fly = true, @@ -295524,15 +243821,12 @@ public static class AssemblyQuestLoader num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span68 = CollectionsMarshal.AsSpan(list68); - index3 = 0; - span68[index3] = 11449u; + CollectionsMarshal.AsSpan(list68)[0] = 11449u; obj39.KillEnemyDataIds = list68; reference54 = obj39; obj38.Steps = list67; reference53 = obj38; - num++; - ref QuestSequence reference55 = ref span65[num]; + ref QuestSequence reference55 = ref span32[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -295540,9 +243834,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -295555,30 +243847,24 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - span70[index] = "liza"; + CollectionsMarshal.AsSpan(list70)[0] = "liza"; questRoot8.Author = list70; - index = 3; - List list71 = new List(index); - CollectionsMarshal.SetCount(list71, index); - Span span71 = CollectionsMarshal.AsSpan(list71); - num = 0; - ref QuestSequence reference56 = ref span71[num]; + num = 3; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + Span span33 = CollectionsMarshal.AsSpan(list71); + ref QuestSequence reference56 = ref span33[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj41.Steps = list72; reference56 = obj41; - num++; - ref QuestSequence reference57 = ref span71[num]; + ref QuestSequence reference57 = ref span33[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -295586,38 +243872,31 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Snipe, 1032170u, new Vector3(25.070557f, 13.914338f, 755.58093f), 816) + CollectionsMarshal.AsSpan(list73)[0] = 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; - num++; - ref QuestSequence reference58 = ref span71[num]; + ref QuestSequence reference58 = ref span33[2]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list74 = new List(index2); - CollectionsMarshal.SetCount(list74, index2); - Span span74 = CollectionsMarshal.AsSpan(list74); - num2 = 0; - ref QuestStep reference59 = ref span74[num2]; + num2 = 1; + List list74 = new List(num2); + CollectionsMarshal.SetCount(list74, num2); + ref QuestStep reference59 = ref CollectionsMarshal.AsSpan(list74)[0]; QuestStep obj44 = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; - index3 = 1; - List list75 = new List(index3); - CollectionsMarshal.SetCount(list75, index3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - span75[num3] = new DialogueChoice + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX119_03707_Q1_000_000"), @@ -295634,16 +243913,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot9.Author = list76; - index = 3; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference60 = ref span77[num]; + num = 3; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span34 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference60 = ref span34[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -295651,23 +243927,19 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj45.Steps = list78; reference60 = obj45; - num++; - ref QuestSequence reference61 = ref span77[num]; + ref QuestSequence reference61 = ref span34[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list79 = new List(index2); - CollectionsMarshal.SetCount(list79, index2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref QuestStep reference62 = ref span79[num2]; + num2 = 3; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + Span span35 = CollectionsMarshal.AsSpan(list79); + ref QuestStep reference62 = ref span35[0]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 2010906u, new Vector3(60.135742f, 5.7526245f, 404.34875f), 816) { Fly = true @@ -295675,67 +243947,46 @@ public static class AssemblyQuestLoader num3 = 6; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - 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); + 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); obj47.CompletionQuestVariablesFlags = list80; reference62 = obj47; - num2++; - ref QuestStep reference63 = ref span79[num2]; + ref QuestStep reference63 = ref span35[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2010907u, new Vector3(50.858276f, 6.94281f, 406.51562f), 816); - 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); + 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); questStep.CompletionQuestVariablesFlags = list81; reference63 = questStep; - num2++; - ref QuestStep reference64 = ref span79[num2]; + ref QuestStep reference64 = ref span35[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list82; reference64 = questStep2; obj46.Steps = list79; reference61 = obj46; - num++; - ref QuestSequence reference65 = ref span77[num]; + ref QuestSequence reference65 = ref span34[2]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue @@ -295743,9 +243994,7 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -295759,30 +244008,24 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "liza"; + CollectionsMarshal.AsSpan(list84)[0] = "liza"; questRoot10.Author = list84; - index = 3; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference66 = ref span85[num]; + num = 3; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span39 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference66 = ref span39[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj49.Steps = list86; reference66 = obj49; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span39[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 @@ -295790,36 +244033,29 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - ref QuestStep reference68 = ref span87[index2]; + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list87)[0]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2010909u, new Vector3(-242.08441f, 0.83917236f, 223.80408f), 816) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list88 = new List(index3); - CollectionsMarshal.SetCount(list88, index3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num3 = 0; - span88[num3] = 11450u; + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + CollectionsMarshal.AsSpan(list88)[0] = 11450u; obj51.KillEnemyDataIds = list88; reference68 = obj51; obj50.Steps = list87; reference67 = obj50; - num++; - ref QuestSequence reference69 = ref span85[num]; + ref QuestSequence reference69 = ref span39[2]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -295832,16 +244068,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "liza"; + CollectionsMarshal.AsSpan(list90)[0] = "liza"; questRoot11.Author = list90; - index = 4; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference70 = ref span91[num]; + num = 4; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span40 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference70 = ref span40[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -295849,31 +244082,25 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj53.Steps = list92; reference70 = obj53; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span40[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, ItemId = 2002945u }; obj54.Steps = list93; reference71 = obj54; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span40[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -295881,27 +244108,22 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.UseItem, 1032205u, new Vector3(-114.21387f, 112.903015f, -350.57605f), 816) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.UseItem, 1032205u, new Vector3(-114.21387f, 112.903015f, -350.57605f), 816) { Fly = true, ItemId = 2002945u }; obj55.Steps = list94; reference72 = obj55; - num++; - ref QuestSequence reference73 = ref span91[num]; + ref QuestSequence reference73 = ref span40[3]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list95 = new List(index2); - CollectionsMarshal.SetCount(list95, index2); - Span span95 = CollectionsMarshal.AsSpan(list95); - num2 = 0; - ref QuestStep reference74 = ref span95[num2]; + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestStep obj57 = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, @@ -295910,9 +244132,7 @@ public static class AssemblyQuestLoader num3 = 1; List list96 = new List(num3); CollectionsMarshal.SetCount(list96, num3); - Span span96 = CollectionsMarshal.AsSpan(list96); - index3 = 0; - span96[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list96)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPIX122_03710_Q1_000_000"), @@ -295929,16 +244149,13 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot12.Author = list97; - index = 3; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference75 = ref span98[num]; + num = 3; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span41 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference75 = ref span41[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -295946,31 +244163,25 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj58.Steps = list99; reference75 = obj58; - num++; - ref QuestSequence reference76 = ref span98[num]; + ref QuestSequence reference76 = ref span41[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj59.Steps = list100; reference76 = obj59; - num++; - ref QuestSequence reference77 = ref span98[num]; + ref QuestSequence reference77 = ref span41[2]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -295978,11 +244189,9 @@ public static class AssemblyQuestLoader num2 = 2; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -295996,30 +244205,24 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot13.Author = list102; - index = 3; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference78 = ref span103[num]; + num = 3; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span43 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference78 = ref span43[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj61.Steps = list104; reference78 = obj61; - num++; - ref QuestSequence reference79 = ref span103[num]; + ref QuestSequence reference79 = ref span43[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 @@ -296027,15 +244230,13 @@ public static class AssemblyQuestLoader num2 = 2; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.35126f, 102.935814f, -799.43896f), 816) + Span span44 = CollectionsMarshal.AsSpan(list105); + span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(67.35126f, 102.935814f, -799.43896f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni }; - index2++; - span105[index2] = new QuestStep(EInteractionType.Say, 1032208u, new Vector3(68.89441f, 103.07577f, -797.05505f), 816) + span44[1] = new QuestStep(EInteractionType.Say, 1032208u, new Vector3(68.89441f, 103.07577f, -797.05505f), 816) { ChatMessage = new ChatMessage { @@ -296044,18 +244245,15 @@ public static class AssemblyQuestLoader }; obj62.Steps = list105; reference79 = obj62; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span43[2]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -296069,16 +244267,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot14.Author = list107; - index = 4; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference81 = ref span108[num]; + num = 4; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span45 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference81 = ref span45[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -296086,23 +244281,18 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj64.Steps = list109; reference81 = obj64; - num++; - ref QuestSequence reference82 = ref span108[num]; + ref QuestSequence reference82 = ref span45[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference83 = ref span110[num2]; + num2 = 1; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, null, new Vector3(218.93869f, 30.646347f, -487.75848f), 816) { StopDistance = 0.5f, @@ -296110,20 +244300,17 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + Span span46 = CollectionsMarshal.AsSpan(list111); + span46[0] = 11455u; + span46[1] = 11456u; obj66.KillEnemyDataIds = list111; reference83 = obj66; obj65.Steps = list110; reference82 = obj65; - num++; - ref QuestSequence reference84 = ref span108[num]; + ref QuestSequence reference84 = ref span45[2]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -296131,23 +244318,18 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1032211u, new Vector3(220.38599f, 30.803741f, -489.5552f), 816); + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1032211u, new Vector3(220.38599f, 30.803741f, -489.5552f), 816); obj67.Steps = list112; reference84 = obj67; - num++; - ref QuestSequence reference85 = ref span108[num]; + ref QuestSequence reference85 = ref span45[3]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -296161,16 +244343,13 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot15.Author = list114; - index = 4; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference86 = ref span115[num]; + num = 4; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span47 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference86 = ref span47[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -296178,27 +244357,21 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj69.Steps = list116; reference86 = obj69; - num++; - ref QuestSequence reference87 = ref span115[num]; + ref QuestSequence reference87 = ref span47[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj70.Steps = list117; reference87 = obj70; - num++; - ref QuestSequence reference88 = ref span115[num]; + ref QuestSequence reference88 = ref span47[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -296206,9 +244379,8 @@ public static class AssemblyQuestLoader num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - ref QuestStep reference89 = ref span118[index2]; + Span span48 = CollectionsMarshal.AsSpan(list118); + ref QuestStep reference89 = ref span48[0]; QuestStep obj72 = new QuestStep(EInteractionType.Action, 2010922u, new Vector3(-27.878296f, 30.44165f, -505.39407f), 816) { Fly = true, @@ -296217,67 +244389,51 @@ public static class AssemblyQuestLoader num3 = 6; List list119 = new List(num3); CollectionsMarshal.SetCount(list119, num3); - 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); + 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); obj72.CompletionQuestVariablesFlags = list119; reference89 = obj72; - index2++; - ref QuestStep reference90 = ref span118[index2]; + ref QuestStep reference90 = ref span48[1]; QuestStep obj73 = new QuestStep(EInteractionType.Action, 2010923u, new Vector3(-53.025208f, 55.954834f, -671.29016f), 816) { Fly = true, Action = EAction.SiphonSnout }; - 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); + 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); obj73.CompletionQuestVariablesFlags = list120; reference90 = obj73; obj71.Steps = list118; reference88 = obj71; - num++; - ref QuestSequence reference91 = ref span115[num]; + ref QuestSequence reference91 = ref span47[3]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 100f, DelaySecondsAtStart = 2f, Fly = true }; - num2++; - span121[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -296291,16 +244447,13 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - Span span122 = CollectionsMarshal.AsSpan(list122); - index = 0; - span122[index] = "liza"; + CollectionsMarshal.AsSpan(list122)[0] = "liza"; questRoot16.Author = list122; - index = 3; - List list123 = new List(index); - CollectionsMarshal.SetCount(list123, index); - Span span123 = CollectionsMarshal.AsSpan(list123); - num = 0; - ref QuestSequence reference92 = ref span123[num]; + num = 3; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + Span span52 = CollectionsMarshal.AsSpan(list123); + ref QuestSequence reference92 = ref span52[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -296308,23 +244461,18 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816); obj75.Steps = list124; reference92 = obj75; - num++; - ref QuestSequence reference93 = ref span123[num]; + ref QuestSequence reference93 = ref span52[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num2 = 0; - ref QuestStep reference94 = ref span125[num2]; + num2 = 1; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list125)[0]; QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2010788u, new Vector3(-480.0946f, 83.45154f, 635.9197f), 816) { Fly = true, @@ -296333,19 +244481,15 @@ public static class AssemblyQuestLoader num3 = 3; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span126 = CollectionsMarshal.AsSpan(list126); - index3 = 0; - span126[index3] = 11452u; - index3++; - span126[index3] = 11453u; - index3++; - span126[index3] = 11454u; + Span span53 = CollectionsMarshal.AsSpan(list126); + span53[0] = 11452u; + span53[1] = 11453u; + span53[2] = 11454u; obj77.KillEnemyDataIds = list126; reference94 = obj77; obj76.Steps = list125; reference93 = obj76; - num++; - ref QuestSequence reference95 = ref span123[num]; + ref QuestSequence reference95 = ref span52[2]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -296353,9 +244497,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031809u, new Vector3(-454.3069f, 71.43217f, 575.1278f), 816) { Fly = true }; @@ -296368,30 +244510,24 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot17.Author = list128; - index = 3; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference96 = ref span129[num]; + num = 3; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span54 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference96 = ref span54[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj79.Steps = list130; reference96 = obj79; - num++; - ref QuestSequence reference97 = ref span129[num]; + ref QuestSequence reference97 = ref span54[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -296399,42 +244535,32 @@ public static class AssemblyQuestLoader num2 = 2; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - ref QuestStep reference98 = ref span131[index2]; + Span span55 = CollectionsMarshal.AsSpan(list131); + ref QuestStep reference98 = ref span55[0]; QuestStep obj81 = new QuestStep(EInteractionType.UseItem, 1032203u, new Vector3(10.849121f, 100.161f, -886.22876f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegPlaEnni, ItemId = 2002943u }; - 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); + 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); reference99 = list133; - num3++; - span132[num3] = null; - num3++; - span132[num3] = null; - num3++; - span132[num3] = null; + span56[3] = null; + span56[4] = null; + span56[5] = null; obj81.RequiredQuestVariables = list132; reference98 = obj81; - index2++; - ref QuestStep reference100 = ref span131[index2]; + ref QuestStep reference100 = ref span55[1]; QuestStep obj82 = new QuestStep(EInteractionType.UseItem, 1032202u, new Vector3(10.849121f, 100.161f, -886.22876f), 816) { Fly = true, @@ -296443,42 +244569,31 @@ public static class AssemblyQuestLoader num3 = 6; List> list134 = new List>(num3); CollectionsMarshal.SetCount(list134, num3); - Span> span134 = CollectionsMarshal.AsSpan(list134); - index3 = 0; - span134[index3] = null; - index3++; - span134[index3] = null; - index3++; - ref List reference101 = ref span134[index3]; + Span> span57 = CollectionsMarshal.AsSpan(list134); + span57[0] = null; + span57[1] = null; + ref List reference101 = ref span57[2]; num4 = 1; List list135 = new List(num4); CollectionsMarshal.SetCount(list135, num4); - Span span135 = CollectionsMarshal.AsSpan(list135); - num5 = 0; - span135[num5] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list135)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); reference101 = list135; - index3++; - span134[index3] = null; - index3++; - span134[index3] = null; - index3++; - span134[index3] = null; + span57[3] = null; + span57[4] = null; + span57[5] = null; obj82.RequiredQuestVariables = list134; reference100 = obj82; obj80.Steps = list131; reference97 = obj80; - num++; - ref QuestSequence reference102 = ref span129[num]; + ref QuestSequence reference102 = ref span54[2]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran @@ -296492,16 +244607,13 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "liza"; + CollectionsMarshal.AsSpan(list137)[0] = "liza"; questRoot18.Author = list137; - index = 12; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference103 = ref span138[num]; + num = 12; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span58 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference103 = ref span58[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -296509,31 +244621,25 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031577u, new Vector3(-425.58942f, 417.21378f, -636.7438f), 814); obj84.Steps = list139; reference103 = obj84; - num++; - ref QuestSequence reference104 = ref span138[num]; + ref QuestSequence reference104 = ref span58[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj85.Steps = list140; reference104 = obj85; - num++; - ref QuestSequence reference105 = ref span138[num]; + ref QuestSequence reference105 = ref span58[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -296541,35 +244647,29 @@ public static class AssemblyQuestLoader num2 = 2; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.1434f, 295.63748f, -219.3426f), 814) + Span span59 = CollectionsMarshal.AsSpan(list141); + span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.1434f, 295.63748f, -219.3426f), 814) { Fly = true }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Interact, 2010833u, new Vector3(545.4946f, 296.1317f, -218.79913f), 814); + span59[1] = new QuestStep(EInteractionType.Interact, 2010833u, new Vector3(545.4946f, 296.1317f, -218.79913f), 814); obj86.Steps = list141; reference105 = obj86; - num++; - ref QuestSequence reference106 = ref span138[num]; + ref QuestSequence reference106 = ref span58[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj87.Steps = list142; reference106 = obj87; - num++; - ref QuestSequence reference107 = ref span138[num]; + ref QuestSequence reference107 = ref span58[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -296577,33 +244677,27 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1031826u, new Vector3(623.1022f, 297.49335f, -199.51172f), 814) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1031826u, new Vector3(623.1022f, 297.49335f, -199.51172f), 814) { Fly = true }; obj88.Steps = list143; reference107 = obj88; - num++; - ref QuestSequence reference108 = ref span138[num]; + ref QuestSequence reference108 = ref span58[5]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj89.Steps = list144; reference108 = obj89; - num++; - ref QuestSequence reference109 = ref span138[num]; + ref QuestSequence reference109 = ref span58[6]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -296611,33 +244705,27 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Emote, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Emote, 1031578u, new Vector3(737.48376f, 285.0224f, -84.97754f), 814) { Emote = EEmote.Doubt }; obj90.Steps = list145; reference109 = obj90; - num++; - ref QuestSequence reference110 = ref span138[num]; + ref QuestSequence reference110 = ref span58[7]; QuestSequence obj91 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj91.Steps = list146; reference110 = obj91; - num++; - ref QuestSequence reference111 = ref span138[num]; + ref QuestSequence reference111 = ref span58[8]; QuestSequence obj92 = new QuestSequence { Sequence = 8 @@ -296645,47 +244733,39 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - ref QuestStep reference112 = ref span147[index2]; + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list147)[0]; QuestStep obj93 = new QuestStep(EInteractionType.Combat, null, new Vector3(215.44379f, 315.57245f, -22.744217f), 814) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + Span span60 = CollectionsMarshal.AsSpan(list148); + span60[0] = 11435u; + span60[1] = 11436u; obj93.KillEnemyDataIds = list148; reference112 = obj93; obj92.Steps = list147; reference111 = obj92; - num++; - ref QuestSequence reference113 = ref span138[num]; + ref QuestSequence reference113 = ref span58[9]; QuestSequence obj94 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true }; - num2++; - span149[num2] = new QuestStep(EInteractionType.Interact, 1031828u, new Vector3(236.40796f, 309.01877f, -118.24219f), 814); + span61[1] = new QuestStep(EInteractionType.Interact, 1031828u, new Vector3(236.40796f, 309.01877f, -118.24219f), 814); obj94.Steps = list149; reference113 = obj94; - num++; - ref QuestSequence reference114 = ref span138[num]; + ref QuestSequence reference114 = ref span58[10]; QuestSequence obj95 = new QuestSequence { Sequence = 10 @@ -296693,23 +244773,18 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 2010844u, new Vector3(238.17798f, 308.5221f, -120.19531f), 814); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 2010844u, new Vector3(238.17798f, 308.5221f, -120.19531f), 814); obj95.Steps = list150; reference114 = obj95; - num++; - ref QuestSequence reference115 = ref span138[num]; + ref QuestSequence reference115 = ref span58[11]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3718) @@ -296723,16 +244798,13 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "liza"; + CollectionsMarshal.AsSpan(list152)[0] = "liza"; questRoot19.Author = list152; - index = 8; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference116 = ref span153[num]; + num = 8; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span62 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference116 = ref span62[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -296740,30 +244812,24 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814); + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031586u, new Vector3(663.569f, 297.47797f, -162.24927f), 814); obj97.Steps = list154; reference116 = obj97; - num++; - ref QuestSequence reference117 = ref span153[num]; + ref QuestSequence reference117 = ref span62[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj98.Steps = list155; reference117 = obj98; - num++; - ref QuestSequence reference118 = ref span153[num]; + ref QuestSequence reference118 = ref span62[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -296771,30 +244837,24 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 2010855u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 2010855u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { StopDistance = 4f }; obj99.Steps = list156; reference118 = obj99; - num++; - ref QuestSequence reference119 = ref span153[num]; + ref QuestSequence reference119 = ref span62[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj100.Steps = list157; reference119 = obj100; - num++; - ref QuestSequence reference120 = ref span153[num]; + ref QuestSequence reference120 = ref span62[4]; QuestSequence obj101 = new QuestSequence { Sequence = 4 @@ -296802,9 +244862,7 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.Duty, null, null, 895) + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 895) { DutyOptions = new DutyOptions { @@ -296813,27 +244871,22 @@ public static class AssemblyQuestLoader }; obj101.Steps = list158; reference120 = obj101; - num++; - span153[num] = new QuestSequence + span62[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference121 = ref span153[num]; + ref QuestSequence reference121 = ref span62[6]; QuestSequence obj102 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj102.Steps = list159; reference121 = obj102; - num++; - ref QuestSequence reference122 = ref span153[num]; + ref QuestSequence reference122 = ref span62[7]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue @@ -296841,9 +244894,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895) { StopDistance = 4f, NextQuestId = new QuestId(3719) @@ -296857,33 +244908,27 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot20.Author = list161; - index = 2; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference123 = ref span162[num]; + num = 2; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span63 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference123 = ref span63[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj104.Steps = list163; reference123 = obj104; - num++; - ref QuestSequence reference124 = ref span162[num]; + ref QuestSequence reference124 = ref span63[1]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -296891,9 +244936,7 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj105.Steps = list164; reference124 = obj105; questRoot20.QuestSequence = list162; @@ -296903,33 +244946,26 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot21.Author = list165; - index = 10; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference125 = ref span166[num]; + num = 10; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span64 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference125 = ref span64[0]; QuestSequence obj106 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list167)[0]; 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); - Span span168 = CollectionsMarshal.AsSpan(list168); - index3 = 0; - span168[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list168)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKTA110_03720_Q2_000_000") @@ -296938,8 +244974,7 @@ public static class AssemblyQuestLoader reference126 = questStep3; obj106.Steps = list167; reference125 = obj106; - num++; - ref QuestSequence reference127 = ref span166[num]; + ref QuestSequence reference127 = ref span64[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -296947,9 +244982,8 @@ public static class AssemblyQuestLoader num2 = 6; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) + Span span65 = CollectionsMarshal.AsSpan(list169); + span65[0] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) { SkipConditions = new SkipConditions { @@ -296959,10 +244993,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -296972,10 +245004,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -296985,34 +245015,29 @@ public static class AssemblyQuestLoader } } }; - index2++; - span169[index2] = new QuestStep(EInteractionType.Interact, 1032073u, new Vector3(-560.0824f, 383f, -139.08606f), 896); + span65[5] = new QuestStep(EInteractionType.Interact, 1032073u, new Vector3(-560.0824f, 383f, -139.08606f), 896); obj107.Steps = list169; reference127 = obj107; - num++; - ref QuestSequence reference128 = ref span166[num]; + ref QuestSequence reference128 = ref span64[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 }; - 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) + 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) { RestartNavigationIfCancelled = false }; - num2++; - span170[num2] = new QuestStep(EInteractionType.Interact, 1032025u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) + span66[1] = new QuestStep(EInteractionType.Interact, 1032025u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) { DelaySecondsAtStart = 5f }; obj108.Steps = list170; reference128 = obj108; - num++; - ref QuestSequence reference129 = ref span166[num]; + ref QuestSequence reference129 = ref span64[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 @@ -297020,9 +245045,8 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) + Span span67 = CollectionsMarshal.AsSpan(list171); + span67[0] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) { SkipConditions = new SkipConditions { @@ -297032,8 +245056,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span171[index2] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) + span67[1] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) { SkipConditions = new SkipConditions { @@ -297043,26 +245066,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span171[index2] = new QuestStep(EInteractionType.Interact, 2010825u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); + span67[2] = new QuestStep(EInteractionType.Interact, 2010825u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); obj109.Steps = list171; reference129 = obj109; - num++; - ref QuestSequence reference130 = ref span166[num]; + ref QuestSequence reference130 = ref span64[4]; QuestSequence obj110 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj110.Steps = list172; reference130 = obj110; - num++; - ref QuestSequence reference131 = ref span166[num]; + ref QuestSequence reference131 = ref span64[5]; QuestSequence obj111 = new QuestSequence { Sequence = 5 @@ -297070,14 +245088,12 @@ public static class AssemblyQuestLoader num2 = 7; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) + Span span68 = CollectionsMarshal.AsSpan(list173); + span68[0] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) { TargetTerritoryId = (ushort)896 }; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) + span68[1] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) { SkipConditions = new SkipConditions { @@ -297087,50 +245103,35 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference132 = ref span173[index2]; + ref QuestStep reference132 = ref span68[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2010827u, new Vector3(-688.2887f, -484.00098f, 582.2689f), 896); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list174; reference132 = questStep4; - index2++; - ref QuestStep reference133 = ref span173[index2]; + ref QuestStep reference133 = ref span68[3]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list175; reference133 = questStep5; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) + span68[4] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) { SkipConditions = new SkipConditions { @@ -297140,8 +245141,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) + span68[5] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) { SkipConditions = new SkipConditions { @@ -297151,46 +245151,36 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference134 = ref span173[index2]; + ref QuestStep reference134 = ref span68[6]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1032150u, new Vector3(-729.3965f, -499.74826f, 546.4408f), 896); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list176; reference134 = questStep6; obj111.Steps = list173; reference131 = obj111; - num++; - ref QuestSequence reference135 = ref span166[num]; + ref QuestSequence reference135 = ref span64[6]; QuestSequence obj112 = new QuestSequence { Sequence = 6 }; - 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) + 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) { TargetTerritoryId = (ushort)896 }; - num2++; - span177[num2] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) + span72[1] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) { SkipConditions = new SkipConditions { @@ -297200,8 +245190,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span177[num2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) + span72[2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) { SkipConditions = new SkipConditions { @@ -297211,8 +245200,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span177[num2] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) + span72[3] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) { SkipConditions = new SkipConditions { @@ -297222,12 +245210,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span177[num2] = new QuestStep(EInteractionType.Interact, 1032075u, new Vector3(899.5956f, -677f, 880.39966f), 896); + span72[4] = new QuestStep(EInteractionType.Interact, 1032075u, new Vector3(899.5956f, -677f, 880.39966f), 896); obj112.Steps = list177; reference135 = obj112; - num++; - ref QuestSequence reference136 = ref span166[num]; + ref QuestSequence reference136 = ref span64[7]; QuestSequence obj113 = new QuestSequence { Sequence = 7 @@ -297235,32 +245221,26 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj113.Steps = list178; reference136 = obj113; - num++; - ref QuestSequence reference137 = ref span166[num]; + ref QuestSequence reference137 = ref span64[8]; QuestSequence obj114 = new QuestSequence { Sequence = 8 }; - 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) + 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) { TargetTerritoryId = (ushort)895 }; - num2++; - span179[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + span73[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj114.Steps = list179; reference137 = obj114; - num++; - ref QuestSequence reference138 = ref span166[num]; + ref QuestSequence reference138 = ref span64[9]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -297268,14 +245248,12 @@ public static class AssemblyQuestLoader num2 = 2; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span74 = CollectionsMarshal.AsSpan(list180); + span74[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - index2++; - ref QuestStep reference139 = ref span180[index2]; + ref QuestStep reference139 = ref span74[1]; QuestStep obj116 = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true @@ -297283,9 +245261,7 @@ public static class AssemblyQuestLoader num3 = 1; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span181 = CollectionsMarshal.AsSpan(list181); - index3 = 0; - span181[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA110_03720_Q1_000_000"), @@ -297303,36 +245279,29 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = "liza"; + CollectionsMarshal.AsSpan(list182)[0] = "liza"; questRoot22.Author = list182; - index = 10; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref QuestSequence reference140 = ref span183[num]; + num = 10; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span75 = CollectionsMarshal.AsSpan(list183); + ref QuestSequence reference140 = ref span75[0]; QuestSequence obj117 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list184 = new List(num2); + CollectionsMarshal.SetCount(list184, num2); + ref QuestStep reference141 = ref CollectionsMarshal.AsSpan(list184)[0]; QuestStep obj118 = new QuestStep(EInteractionType.AcceptQuest, 1032229u, new Vector3(-501.1826f, 484.0032f, 244.2511f), 896) { StopDistance = 4f }; - index3 = 1; - List list185 = new List(index3); - CollectionsMarshal.SetCount(list185, index3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = new DialogueChoice + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKTA120_03721_Q2_000_000") @@ -297341,8 +245310,7 @@ public static class AssemblyQuestLoader reference141 = obj118; obj117.Steps = list184; reference140 = obj117; - num++; - ref QuestSequence reference142 = ref span183[num]; + ref QuestSequence reference142 = ref span75[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -297350,9 +245318,8 @@ public static class AssemblyQuestLoader num2 = 6; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) + Span span76 = CollectionsMarshal.AsSpan(list186); + span76[0] = new QuestStep(EInteractionType.Interact, 2010848u, new Vector3(-504.78372f, 483.97034f, 234.82104f), 896) { SkipConditions = new SkipConditions { @@ -297362,10 +245329,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -297375,10 +245340,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -297388,34 +245351,29 @@ public static class AssemblyQuestLoader } } }; - index2++; - span186[index2] = new QuestStep(EInteractionType.Interact, 1032074u, new Vector3(-560.0824f, 383f, -139.08606f), 896); + span76[5] = new QuestStep(EInteractionType.Interact, 1032074u, new Vector3(-560.0824f, 383f, -139.08606f), 896); obj119.Steps = list186; reference142 = obj119; - num++; - ref QuestSequence reference143 = ref span183[num]; + ref QuestSequence reference143 = ref span75[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - 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) + 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) { RestartNavigationIfCancelled = false }; - num2++; - span187[num2] = new QuestStep(EInteractionType.Interact, 1032026u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) + span77[1] = new QuestStep(EInteractionType.Interact, 1032026u, new Vector3(-573.6935f, 352.99423f, -264.0879f), 896) { DelaySecondsAtStart = 5f }; obj120.Steps = list187; reference143 = obj120; - num++; - ref QuestSequence reference144 = ref span183[num]; + ref QuestSequence reference144 = ref span75[3]; QuestSequence obj121 = new QuestSequence { Sequence = 3 @@ -297423,9 +245381,8 @@ public static class AssemblyQuestLoader num2 = 3; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) + Span span78 = CollectionsMarshal.AsSpan(list188); + span78[0] = new QuestStep(EInteractionType.Interact, 2010874u, new Vector3(-626.5507f, 340.96277f, -367.02527f), 896) { SkipConditions = new SkipConditions { @@ -297435,8 +245392,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span188[index2] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) + span78[1] = new QuestStep(EInteractionType.Interact, 2010872u, new Vector3(-697.87134f, 339.1621f, -378.34747f), 896) { SkipConditions = new SkipConditions { @@ -297446,26 +245402,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span188[index2] = new QuestStep(EInteractionType.Interact, 2010834u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); + span78[2] = new QuestStep(EInteractionType.Interact, 2010834u, new Vector3(-708.21704f, 339.19275f, -350.57605f), 896); obj121.Steps = list188; reference144 = obj121; - num++; - ref QuestSequence reference145 = ref span183[num]; + ref QuestSequence reference145 = ref span75[4]; QuestSequence obj122 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj122.Steps = list189; reference145 = obj122; - num++; - ref QuestSequence reference146 = ref span183[num]; + ref QuestSequence reference146 = ref span75[5]; QuestSequence obj123 = new QuestSequence { Sequence = 5 @@ -297473,14 +245424,12 @@ public static class AssemblyQuestLoader num2 = 7; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) + Span span79 = CollectionsMarshal.AsSpan(list190); + span79[0] = new QuestStep(EInteractionType.Interact, 2010882u, new Vector3(-684.01624f, 335.8662f, -292.04242f), 896) { TargetTerritoryId = (ushort)896 }; - index2++; - span190[index2] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) + span79[1] = new QuestStep(EInteractionType.Interact, 2010871u, new Vector3(-676.2646f, -482.9328f, 612.4818f), 896) { SkipConditions = new SkipConditions { @@ -297490,50 +245439,35 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference147 = ref span190[index2]; + ref QuestStep reference147 = ref span79[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list191; reference147 = questStep7; - index2++; - ref QuestStep reference148 = ref span190[index2]; + ref QuestStep reference148 = ref span79[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2010835u, new Vector3(-747.982f, -489.98248f, 603.1128f), 896); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list192; reference148 = questStep8; - index2++; - span190[index2] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) + span79[4] = new QuestStep(EInteractionType.Interact, 2010875u, new Vector3(-712.1538f, -495.99454f, 562.3406f), 896) { SkipConditions = new SkipConditions { @@ -297543,8 +245477,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span190[index2] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) + span79[5] = new QuestStep(EInteractionType.Interact, 2010873u, new Vector3(-711.2383f, -498.00873f, 547.1732f), 896) { SkipConditions = new SkipConditions { @@ -297554,46 +245487,36 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference149 = ref span190[index2]; + ref QuestStep reference149 = ref span79[6]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list193; reference149 = questStep9; obj123.Steps = list190; reference146 = obj123; - num++; - ref QuestSequence reference150 = ref span183[num]; + ref QuestSequence reference150 = ref span75[6]; QuestSequence obj124 = new QuestSequence { Sequence = 6 }; - 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) + 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) { TargetTerritoryId = (ushort)896 }; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) + span83[1] = new QuestStep(EInteractionType.Interact, 2010878u, new Vector3(874.7843f, -676.02045f, 884.9774f), 896) { SkipConditions = new SkipConditions { @@ -297603,8 +245526,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) + span83[2] = new QuestStep(EInteractionType.Interact, 2010877u, new Vector3(911.13135f, -677.0276f, 894.1023f), 896) { SkipConditions = new SkipConditions { @@ -297614,8 +245536,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) + span83[3] = new QuestStep(EInteractionType.Interact, 2010876u, new Vector3(900.05334f, -673.0602f, 828.70215f), 896) { SkipConditions = new SkipConditions { @@ -297625,12 +245546,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span194[num2] = new QuestStep(EInteractionType.Interact, 1032076u, new Vector3(899.93115f, -677f, 881.43726f), 896); + span83[4] = new QuestStep(EInteractionType.Interact, 1032076u, new Vector3(899.93115f, -677f, 881.43726f), 896); obj124.Steps = list194; reference150 = obj124; - num++; - ref QuestSequence reference151 = ref span183[num]; + ref QuestSequence reference151 = ref span75[7]; QuestSequence obj125 = new QuestSequence { Sequence = 7 @@ -297638,32 +245557,26 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1032228u, new Vector3(-499.4736f, 484.00323f, 244.19006f), 896); obj125.Steps = list195; reference151 = obj125; - num++; - ref QuestSequence reference152 = ref span183[num]; + ref QuestSequence reference152 = ref span75[8]; QuestSequence obj126 = new QuestSequence { Sequence = 8 }; - 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) + 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) { TargetTerritoryId = (ushort)895 }; - num2++; - span196[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + span84[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj126.Steps = list196; reference152 = obj126; - num++; - ref QuestSequence reference153 = ref span183[num]; + ref QuestSequence reference153 = ref span75[9]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -297671,24 +245584,20 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span85 = CollectionsMarshal.AsSpan(list197); + span85[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - index2++; - ref QuestStep reference154 = ref span197[index2]; + ref QuestStep reference154 = ref span85[1]; QuestStep obj128 = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; - index3 = 1; - List list198 = new List(index3); - CollectionsMarshal.SetCount(list198, index3); - Span span198 = CollectionsMarshal.AsSpan(list198); - num3 = 0; - span198[num3] = new DialogueChoice + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA120_03721_Q1_000_000"), @@ -297706,26 +245615,22 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "liza"; + CollectionsMarshal.AsSpan(list199)[0] = "liza"; questRoot23.Author = list199; - index = 5; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference155 = ref span200[num]; + num = 5; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span86 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference155 = ref span86[0]; QuestSequence obj129 = new QuestSequence { Sequence = 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]; + num2 = 11; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + Span span87 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference156 = ref span87[0]; QuestStep obj130 = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -297740,95 +245645,76 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - index3 = 0; - span202[index3] = 886; + CollectionsMarshal.AsSpan(list202)[0] = 886; skipAetheryteCondition.InTerritory = list202; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj130.SkipConditions = skipConditions; reference156 = obj130; - num2++; - ref QuestStep reference157 = ref span201[num2]; + ref QuestStep reference157 = ref span87[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1031681u, new Vector3(8.102478f, -16.00001f, 146.34924f), 886); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - index3 = 1; - List list203 = new List(index3); - CollectionsMarshal.SetCount(list203, index3); - Span span203 = CollectionsMarshal.AsSpan(list203); - num3 = 0; - span203[num3] = 60091u; + num3 = 1; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + CollectionsMarshal.AsSpan(list203)[0] = 60091u; skipStepConditions.NotNamePlateIconId = list203; skipConditions2.StepIf = skipStepConditions; questStep10.SkipConditions = skipConditions2; reference157 = questStep10; - num2++; - ref QuestStep reference158 = ref span201[num2]; + ref QuestStep reference158 = ref span87[2]; 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); - Span span204 = CollectionsMarshal.AsSpan(list204); - index3 = 0; - span204[index3] = 60091u; + CollectionsMarshal.AsSpan(list204)[0] = 60091u; skipStepConditions2.NotNamePlateIconId = list204; skipConditions3.StepIf = skipStepConditions2; questStep11.SkipConditions = skipConditions3; reference158 = questStep11; - num2++; - ref QuestStep reference159 = ref span201[num2]; + ref QuestStep reference159 = ref span87[3]; 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(); - index3 = 1; - List list205 = new List(index3); - CollectionsMarshal.SetCount(list205, index3); - Span span205 = CollectionsMarshal.AsSpan(list205); - num3 = 0; - span205[num3] = 60091u; + num3 = 1; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + CollectionsMarshal.AsSpan(list205)[0] = 60091u; skipStepConditions3.NotNamePlateIconId = list205; skipConditions4.StepIf = skipStepConditions3; obj131.SkipConditions = skipConditions4; reference159 = obj131; - num2++; - span201[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(39.29597f, -16.000002f, 140.2944f), 886); - num2++; - ref QuestStep reference160 = ref span201[num2]; + span87[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(39.29597f, -16.000002f, 140.2944f), 886); + ref QuestStep reference160 = ref span87[5]; 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); - Span span206 = CollectionsMarshal.AsSpan(list206); - index3 = 0; - span206[index3] = 60091u; + CollectionsMarshal.AsSpan(list206)[0] = 60091u; skipStepConditions4.NotNamePlateIconId = list206; skipConditions5.StepIf = skipStepConditions4; questStep12.SkipConditions = skipConditions5; reference160 = questStep12; - num2++; - ref QuestStep reference161 = ref span201[num2]; + ref QuestStep reference161 = ref span87[6]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1031693u, new Vector3(-21.25586f, -16f, 138.93335f), 886); SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index3 = 1; - List list207 = new List(index3); - CollectionsMarshal.SetCount(list207, index3); - Span span207 = CollectionsMarshal.AsSpan(list207); - num3 = 0; - span207[num3] = 60091u; + num3 = 1; + List list207 = new List(num3); + CollectionsMarshal.SetCount(list207, num3); + CollectionsMarshal.AsSpan(list207)[0] = 60091u; skipStepConditions5.NotNamePlateIconId = list207; skipConditions6.StepIf = skipStepConditions5; questStep13.SkipConditions = skipConditions6; reference161 = questStep13; - num2++; - ref QuestStep reference162 = ref span201[num2]; + ref QuestStep reference162 = ref span87[7]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1031694u, new Vector3(-18.60083f, -16f, 138.99438f), 886) { StopDistance = 7f @@ -297838,49 +245724,39 @@ public static class AssemblyQuestLoader num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span208 = CollectionsMarshal.AsSpan(list208); - index3 = 0; - span208[index3] = 60091u; + CollectionsMarshal.AsSpan(list208)[0] = 60091u; skipStepConditions6.NotNamePlateIconId = list208; skipConditions7.StepIf = skipStepConditions6; obj132.SkipConditions = skipConditions7; reference162 = obj132; - num2++; - ref QuestStep reference163 = ref span201[num2]; + ref QuestStep reference163 = ref span87[8]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1031695u, new Vector3(-32.852783f, -16f, 169.9397f), 886); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - index3 = 1; - List list209 = new List(index3); - CollectionsMarshal.SetCount(list209, index3); - Span span209 = CollectionsMarshal.AsSpan(list209); - num3 = 0; - span209[num3] = 60091u; + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + CollectionsMarshal.AsSpan(list209)[0] = 60091u; skipStepConditions7.NotNamePlateIconId = list209; skipConditions8.StepIf = skipStepConditions7; questStep14.SkipConditions = skipConditions8; reference163 = questStep14; - num2++; - ref QuestStep reference164 = ref span201[num2]; + ref QuestStep reference164 = ref span87[9]; 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); - Span span210 = CollectionsMarshal.AsSpan(list210); - index3 = 0; - span210[index3] = 60091u; + CollectionsMarshal.AsSpan(list210)[0] = 60091u; skipStepConditions8.NotNamePlateIconId = list210; skipConditions9.StepIf = skipStepConditions8; questStep15.SkipConditions = skipConditions9; reference164 = questStep15; - num2++; - span201[num2] = new QuestStep(EInteractionType.AcceptQuest, 1031992u, new Vector3(-8.255188f, -16f, 162.43225f), 886); + span87[10] = new QuestStep(EInteractionType.AcceptQuest, 1031992u, new Vector3(-8.255188f, -16f, 162.43225f), 886); obj129.Steps = list201; reference155 = obj129; - num++; - ref QuestSequence reference165 = ref span200[num]; + ref QuestSequence reference165 = ref span86[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -297888,32 +245764,26 @@ public static class AssemblyQuestLoader num2 = 2; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1031683u, new Vector3(13.260071f, -15.2f, 183.64221f), 886) + Span span88 = CollectionsMarshal.AsSpan(list211); + span88[0] = new QuestStep(EInteractionType.Interact, 1031683u, new Vector3(13.260071f, -15.2f, 183.64221f), 886) { TargetTerritoryId = (ushort)418 }; - index2++; - span211[index2] = new QuestStep(EInteractionType.Interact, 1031995u, new Vector3(21.86615f, -12.021002f, 54.184692f), 418); + span88[1] = new QuestStep(EInteractionType.Interact, 1031995u, new Vector3(21.86615f, -12.021002f, 54.184692f), 418); obj133.Steps = list211; reference165 = obj133; - num++; - ref QuestSequence reference166 = ref span200[num]; + ref QuestSequence reference166 = ref span86[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj134.Steps = list212; reference166 = obj134; - num++; - ref QuestSequence reference167 = ref span200[num]; + ref QuestSequence reference167 = ref span86[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -297921,9 +245791,8 @@ public static class AssemblyQuestLoader num2 = 3; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - ref QuestStep reference168 = ref span213[index2]; + Span span89 = CollectionsMarshal.AsSpan(list213); + ref QuestStep reference168 = ref span89[0]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut @@ -297932,47 +245801,33 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - 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); + 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); obj136.CompletionQuestVariablesFlags = list214; reference168 = obj136; - index2++; - ref QuestStep reference169 = ref span213[index2]; + ref QuestStep reference169 = ref span89[1]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list215; reference169 = questStep16; - index2++; - ref QuestStep reference170 = ref span213[index2]; + ref QuestStep reference170 = ref span89[2]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 1012180u, new Vector3(-174.18176f, -12.555469f, -21.561035f), 419) { AethernetShortcut = new AethernetShortcut @@ -297981,38 +245836,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardJeweledCrozier } }; - 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); + 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); obj137.CompletionQuestVariablesFlags = list216; reference170 = obj137; obj135.Steps = list213; reference167 = obj135; - num++; - ref QuestSequence reference171 = ref span200[num]; + ref QuestSequence reference171 = ref span86[4]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)886, AethernetShortcut = new AethernetShortcut @@ -298021,8 +245868,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardBrume } }; - num2++; - span217[num2] = new QuestStep(EInteractionType.CompleteQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886) + span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886) { NextQuestId = new QuestId(3726) }; @@ -298035,16 +245881,13 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot24.Author = list218; - index = 3; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference172 = ref span219[num]; + num = 3; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span94 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference172 = ref span94[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -298052,23 +245895,18 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886); + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031991u, new Vector3(-7.7669067f, -16.000002f, 163.3783f), 886); obj139.Steps = list220; reference172 = obj139; - num++; - ref QuestSequence reference173 = ref span219[num]; + ref QuestSequence reference173 = ref span94[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list221 = new List(index2); - CollectionsMarshal.SetCount(list221, index2); - Span span221 = CollectionsMarshal.AsSpan(list221); - num2 = 0; - ref QuestStep reference174 = ref span221[num2]; + num2 = 1; + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list221)[0]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) { StopDistance = 5f @@ -298076,29 +245914,25 @@ public static class AssemblyQuestLoader num3 = 4; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span222 = CollectionsMarshal.AsSpan(list222); - index3 = 0; - span222[index3] = new DialogueChoice + Span span95 = CollectionsMarshal.AsSpan(list222); + span95[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q1_000_000") }; - index3++; - span222[index3] = new DialogueChoice + span95[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q2_000_000"), Answer = new ExcelRef("TEXT_LUCKHA102_03726_A2_000_002") }; - index3++; - span222[index3] = new DialogueChoice + span95[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q3_000_000"), Answer = new ExcelRef("TEXT_LUCKHA102_03726_A3_000_001") }; - index3++; - span222[index3] = new DialogueChoice + span95[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA102_03726_Q4_000_000"), @@ -298108,8 +245942,7 @@ public static class AssemblyQuestLoader reference174 = obj141; obj140.Steps = list221; reference173 = obj140; - num++; - ref QuestSequence reference175 = ref span219[num]; + ref QuestSequence reference175 = ref span94[2]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue @@ -298117,9 +245950,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032832u, new Vector3(-8.255188f, -16f, 162.40173f), 886) { StopDistance = 5f, NextQuestId = new QuestId(3727) @@ -298133,33 +245964,27 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - Span span224 = CollectionsMarshal.AsSpan(list224); - index = 0; - span224[index] = "liza"; + CollectionsMarshal.AsSpan(list224)[0] = "liza"; questRoot25.Author = list224; - index = 5; - List list225 = new List(index); - CollectionsMarshal.SetCount(list225, index); - Span span225 = CollectionsMarshal.AsSpan(list225); - num = 0; - ref QuestSequence reference176 = ref span225[num]; + num = 5; + List list225 = new List(num); + CollectionsMarshal.SetCount(list225, num); + Span span96 = CollectionsMarshal.AsSpan(list225); + ref QuestSequence reference176 = ref span96[0]; QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj143.Steps = list226; reference176 = obj143; - num++; - ref QuestSequence reference177 = ref span225[num]; + ref QuestSequence reference177 = ref span96[1]; QuestSequence obj144 = new QuestSequence { Sequence = 1 @@ -298167,26 +245992,22 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1031999u, new Vector3(-4.2268066f, 1.4791284f, 115.37341f), 418) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1031999u, new Vector3(-4.2268066f, 1.4791284f, 115.37341f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj144.Steps = list227; reference177 = obj144; - num++; - ref QuestSequence reference178 = ref span225[num]; + ref QuestSequence reference178 = ref span96[2]; QuestSequence obj145 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -298194,8 +246015,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - num2++; - span228[num2] = new QuestStep(EInteractionType.Interact, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) + span97[1] = new QuestStep(EInteractionType.Interact, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886) { AethernetShortcut = new AethernetShortcut { @@ -298205,8 +246025,7 @@ public static class AssemblyQuestLoader }; obj145.Steps = list228; reference178 = obj145; - num++; - ref QuestSequence reference179 = ref span225[num]; + ref QuestSequence reference179 = ref span96[3]; QuestSequence obj146 = new QuestSequence { Sequence = 3 @@ -298214,23 +246033,18 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 1032001u, new Vector3(161.79138f, -50f, 73.47217f), 886); + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1032001u, new Vector3(161.79138f, -50f, 73.47217f), 886); obj146.Steps = list229; reference179 = obj146; - num++; - ref QuestSequence reference180 = ref span225[num]; + ref QuestSequence reference180 = ref span96[4]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3728) }; @@ -298243,16 +246057,13 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - Span span231 = CollectionsMarshal.AsSpan(list231); - index = 0; - span231[index] = "liza"; + CollectionsMarshal.AsSpan(list231)[0] = "liza"; questRoot26.Author = list231; - index = 6; - List list232 = new List(index); - CollectionsMarshal.SetCount(list232, index); - Span span232 = CollectionsMarshal.AsSpan(list232); - num = 0; - ref QuestSequence reference181 = ref span232[num]; + num = 6; + List list232 = new List(num); + CollectionsMarshal.SetCount(list232, num); + Span span98 = CollectionsMarshal.AsSpan(list232); + ref QuestSequence reference181 = ref span98[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -298260,27 +246071,21 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886); + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031996u, new Vector3(209.55212f, -40.000004f, 8.132996f), 886); obj148.Steps = list233; reference181 = obj148; - num++; - ref QuestSequence reference182 = ref span232[num]; + ref QuestSequence reference182 = ref span98[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj149.Steps = list234; reference182 = obj149; - num++; - ref QuestSequence reference183 = ref span232[num]; + ref QuestSequence reference183 = ref span98[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -298288,9 +246093,8 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.PurchaseItem, 1031689u, new Vector3(48.8136f, -16f, 150.92688f), 886) + Span span99 = CollectionsMarshal.AsSpan(list235); + span99[0] = new QuestStep(EInteractionType.PurchaseItem, 1031689u, new Vector3(48.8136f, -16f, 150.92688f), 886) { Comment = "Buy cream yellow dye", AethernetShortcut = new AethernetShortcut @@ -298306,8 +246110,7 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262151u) } }; - index2++; - span235[index2] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886) + span99[1] = new QuestStep(EInteractionType.Interact, 1032844u, new Vector3(147.93616f, -49.999996f, 76.920654f), 886) { AethernetShortcut = new AethernetShortcut { @@ -298317,18 +246120,15 @@ public static class AssemblyQuestLoader }; obj150.Steps = list235; reference183 = obj150; - num++; - ref QuestSequence reference184 = ref span232[num]; + ref QuestSequence reference184 = ref span98[3]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list236 = new List(index2); - CollectionsMarshal.SetCount(list236, index2); - Span span236 = CollectionsMarshal.AsSpan(list236); - num2 = 0; - ref QuestStep reference185 = ref span236[num2]; + num2 = 1; + List list236 = new List(num2); + CollectionsMarshal.SetCount(list236, num2); + ref QuestStep reference185 = ref CollectionsMarshal.AsSpan(list236)[0]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1032003u, new Vector3(94.92627f, -18.500006f, 171.1604f), 886) { AethernetShortcut = new AethernetShortcut @@ -298337,12 +246137,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.FirmamentMendicantsCourt } }; - index3 = 1; - List list237 = new List(index3); - CollectionsMarshal.SetCount(list237, index3); - Span span237 = CollectionsMarshal.AsSpan(list237); - num3 = 0; - span237[num3] = new DialogueChoice + num3 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA104_03728_Q1_000_000"), @@ -298352,8 +246150,7 @@ public static class AssemblyQuestLoader reference185 = obj152; obj151.Steps = list236; reference184 = obj151; - num++; - ref QuestSequence reference186 = ref span232[num]; + ref QuestSequence reference186 = ref span98[4]; QuestSequence obj153 = new QuestSequence { Sequence = 4 @@ -298361,9 +246158,7 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 2010924u, new Vector3(103.1051f, -20.004639f, 4.196167f), 886) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 2010924u, new Vector3(103.1051f, -20.004639f, 4.196167f), 886) { AethernetShortcut = new AethernetShortcut { @@ -298373,18 +246168,15 @@ public static class AssemblyQuestLoader }; obj153.Steps = list238; reference186 = obj153; - num++; - ref QuestSequence reference187 = ref span232[num]; + ref QuestSequence reference187 = ref span98[5]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -298402,16 +246194,13 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - Span span240 = CollectionsMarshal.AsSpan(list240); - index = 0; - span240[index] = "liza"; + CollectionsMarshal.AsSpan(list240)[0] = "liza"; questRoot27.Author = list240; - index = 3; - List list241 = new List(index); - CollectionsMarshal.SetCount(list241, index); - Span span241 = CollectionsMarshal.AsSpan(list241); - num = 0; - ref QuestSequence reference188 = ref span241[num]; + num = 3; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + Span span100 = CollectionsMarshal.AsSpan(list241); + ref QuestSequence reference188 = ref span100[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -298419,9 +246208,7 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - ref QuestStep reference189 = ref span242[index2]; + ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list242)[0]; QuestStep obj156 = new QuestStep(EInteractionType.AcceptQuest, 1031781u, new Vector3(24.246582f, 82.78206f, 25.77246f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -298436,9 +246223,7 @@ public static class AssemblyQuestLoader num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - Span span243 = CollectionsMarshal.AsSpan(list243); - index3 = 0; - span243[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS640_03729_Q1_000_000"), @@ -298448,22 +246233,18 @@ public static class AssemblyQuestLoader reference189 = obj156; obj155.Steps = list242; reference188 = obj155; - num++; - ref QuestSequence reference190 = ref span241[num]; + ref QuestSequence reference190 = ref span100[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj157.Steps = list244; reference190 = obj157; - num++; - ref QuestSequence reference191 = ref span241[num]; + ref QuestSequence reference191 = ref span100[2]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -298471,9 +246252,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); obj158.Steps = list245; reference191 = obj158; questRoot27.QuestSequence = list241; @@ -298483,26 +246262,21 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - Span span246 = CollectionsMarshal.AsSpan(list246); - index = 0; - span246[index] = "Censored"; + CollectionsMarshal.AsSpan(list246)[0] = "Censored"; questRoot28.Author = list246; - index = 4; - List list247 = new List(index); - CollectionsMarshal.SetCount(list247, index); - Span span247 = CollectionsMarshal.AsSpan(list247); - num = 0; - ref QuestSequence reference192 = ref span247[num]; + num = 4; + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + Span span101 = CollectionsMarshal.AsSpan(list247); + ref QuestSequence reference192 = ref span101[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Eulmore, @@ -298521,8 +246295,7 @@ public static class AssemblyQuestLoader }; obj159.Steps = list248; reference192 = obj159; - num++; - ref QuestSequence reference193 = ref span247[num]; + ref QuestSequence reference193 = ref span101[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -298530,16 +246303,12 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - ref QuestStep reference194 = ref span249[index2]; + ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list249)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820); - index3 = 1; - List list250 = new List(index3); - CollectionsMarshal.SetCount(list250, index3); - Span span250 = CollectionsMarshal.AsSpan(list250); - num3 = 0; - span250[num3] = new DialogueChoice + num3 = 1; + List list250 = new List(num3); + CollectionsMarshal.SetCount(list250, num3); + CollectionsMarshal.AsSpan(list250)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS641_03730_Q1_000_000"), @@ -298549,18 +246318,15 @@ public static class AssemblyQuestLoader reference194 = questStep17; obj160.Steps = list249; reference193 = obj160; - num++; - ref QuestSequence reference195 = ref span247[num]; + ref QuestSequence reference195 = ref span101[2]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Sprint = true, AethernetShortcut = new AethernetShortcut @@ -298571,8 +246337,7 @@ public static class AssemblyQuestLoader }; obj161.Steps = list251; reference195 = obj161; - num++; - ref QuestSequence reference196 = ref span247[num]; + ref QuestSequence reference196 = ref span101[3]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -298580,9 +246345,7 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) + CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031801u, new Vector3(52.8114f, 83.001076f, -65.38495f), 820) { Sprint = true, AethernetShortcut = new AethernetShortcut @@ -298600,26 +246363,21 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - Span span253 = CollectionsMarshal.AsSpan(list253); - index = 0; - span253[index] = "Censored"; + CollectionsMarshal.AsSpan(list253)[0] = "Censored"; questRoot29.Author = list253; - index = 2; - List list254 = new List(index); - CollectionsMarshal.SetCount(list254, index); - Span span254 = CollectionsMarshal.AsSpan(list254); - num = 0; - ref QuestSequence reference197 = ref span254[num]; + num = 2; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + Span span102 = CollectionsMarshal.AsSpan(list254); + ref QuestSequence reference197 = ref span102[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Eulmore, SkipConditions = new SkipConditions @@ -298637,8 +246395,7 @@ public static class AssemblyQuestLoader }; obj163.Steps = list255; reference197 = obj163; - num++; - ref QuestSequence reference198 = ref span254[num]; + ref QuestSequence reference198 = ref span102[1]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -298646,9 +246403,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1031118u, new Vector3(-2.3041382f, 85.537865f, -82.65814f), 820); + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1031118u, new Vector3(-2.3041382f, 85.537865f, -82.65814f), 820); obj164.Steps = list256; reference198 = obj164; questRoot29.QuestSequence = list254; @@ -298658,26 +246413,21 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "liza"; + CollectionsMarshal.AsSpan(list257)[0] = "liza"; questRoot30.Author = list257; - index = 4; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference199 = ref span258[num]; + num = 4; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span103 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference199 = ref span103[0]; QuestSequence obj165 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list259)[0]; QuestStep obj166 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -298696,17 +246446,14 @@ public static class AssemblyQuestLoader num3 = 1; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span260 = CollectionsMarshal.AsSpan(list260); - index3 = 0; - span260[index3] = 131; + CollectionsMarshal.AsSpan(list260)[0] = 131; obj167.InTerritory = list260; skipConditions10.AetheryteShortcutIf = obj167; obj166.SkipConditions = skipConditions10; reference200 = obj166; obj165.Steps = list259; reference199 = obj165; - num++; - ref QuestSequence reference201 = ref span258[num]; + ref QuestSequence reference201 = ref span103[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 @@ -298714,30 +246461,24 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f }; obj168.Steps = list261; reference201 = obj168; - num++; - ref QuestSequence reference202 = ref span258[num]; + ref QuestSequence reference202 = ref span103[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj169.Steps = list262; reference202 = obj169; - num++; - ref QuestSequence reference203 = ref span258[num]; + ref QuestSequence reference203 = ref span103[3]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -298745,9 +246486,7 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { NextQuestId = new QuestId(3733) }; @@ -298760,26 +246499,21 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - Span span264 = CollectionsMarshal.AsSpan(list264); - index = 0; - span264[index] = "liza"; + CollectionsMarshal.AsSpan(list264)[0] = "liza"; questRoot31.Author = list264; - index = 5; - List list265 = new List(index); - CollectionsMarshal.SetCount(list265, index); - Span span265 = CollectionsMarshal.AsSpan(list265); - num = 0; - ref QuestSequence reference204 = ref span265[num]; + num = 5; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + Span span104 = CollectionsMarshal.AsSpan(list265); + ref QuestSequence reference204 = ref span104[0]; QuestSequence obj171 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list266)[0]; QuestStep obj172 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -298794,20 +246528,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list267 = new List(index3); - CollectionsMarshal.SetCount(list267, index3); - Span span267 = CollectionsMarshal.AsSpan(list267); - num3 = 0; - span267[num3] = 131; + num3 = 1; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + CollectionsMarshal.AsSpan(list267)[0] = 131; obj173.InTerritory = list267; skipConditions11.AetheryteShortcutIf = obj173; obj172.SkipConditions = skipConditions11; reference205 = obj172; obj171.Steps = list266; reference204 = obj171; - num++; - ref QuestSequence reference206 = ref span265[num]; + ref QuestSequence reference206 = ref span104[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -298815,9 +246546,7 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) + CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -298828,18 +246557,15 @@ public static class AssemblyQuestLoader }; obj174.Steps = list268; reference206 = obj174; - num++; - ref QuestSequence reference207 = ref span265[num]; + ref QuestSequence reference207 = ref span104[2]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list269 = new List(index2); - CollectionsMarshal.SetCount(list269, index2); - Span span269 = CollectionsMarshal.AsSpan(list269); - num2 = 0; - ref QuestStep reference208 = ref span269[num2]; + num2 = 1; + List list269 = new List(num2); + CollectionsMarshal.SetCount(list269, num2); + ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list269)[0]; QuestStep obj176 = new QuestStep(EInteractionType.Combat, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -298847,15 +246573,12 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span270 = CollectionsMarshal.AsSpan(list270); - index3 = 0; - span270[index3] = 11441u; + CollectionsMarshal.AsSpan(list270)[0] = 11441u; obj176.KillEnemyDataIds = list270; reference208 = obj176; obj175.Steps = list269; reference207 = obj175; - num++; - ref QuestSequence reference209 = ref span265[num]; + ref QuestSequence reference209 = ref span104[3]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -298863,23 +246586,18 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140); + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1031958u, new Vector3(178.0575f, 51.459526f, 104.69214f), 140); obj177.Steps = list271; reference209 = obj177; - num++; - ref QuestSequence reference210 = ref span265[num]; + ref QuestSequence reference210 = ref span104[4]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -298898,16 +246616,13 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot32.Author = list273; - index = 6; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference211 = ref span274[num]; + num = 6; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span105 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference211 = ref span105[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -298915,9 +246630,7 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - ref QuestStep reference212 = ref span275[index2]; + ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list275)[0]; QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -298932,30 +246645,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list276 = new List(index3); - CollectionsMarshal.SetCount(list276, index3); - Span span276 = CollectionsMarshal.AsSpan(list276); - num3 = 0; - span276[num3] = 131; + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + CollectionsMarshal.AsSpan(list276)[0] = 131; obj181.InTerritory = list276; skipConditions12.AetheryteShortcutIf = obj181; obj180.SkipConditions = skipConditions12; reference212 = obj180; obj179.Steps = list275; reference211 = obj179; - num++; - ref QuestSequence reference213 = ref span274[num]; + ref QuestSequence reference213 = ref span105[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -298965,8 +246673,7 @@ public static class AssemblyQuestLoader }; obj182.Steps = list277; reference213 = obj182; - num++; - ref QuestSequence reference214 = ref span274[num]; + ref QuestSequence reference214 = ref span105[2]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -298974,9 +246681,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.Interact, 1031965u, new Vector3(-193.3471f, 18f, 88.181885f), 130) + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1031965u, new Vector3(-193.3471f, 18f, 88.181885f), 130) { AethernetShortcut = new AethernetShortcut { @@ -298986,18 +246691,15 @@ public static class AssemblyQuestLoader }; obj183.Steps = list278; reference214 = obj183; - num++; - ref QuestSequence reference215 = ref span274[num]; + ref QuestSequence reference215 = ref span105[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -299007,8 +246709,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list279; reference215 = obj184; - num++; - ref QuestSequence reference216 = ref span274[num]; + ref QuestSequence reference216 = ref span105[4]; QuestSequence obj185 = new QuestSequence { Sequence = 4 @@ -299016,9 +246717,7 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AethernetShortcut = new AethernetShortcut { @@ -299028,18 +246727,15 @@ public static class AssemblyQuestLoader }; obj185.Steps = list280; reference216 = obj185; - num++; - ref QuestSequence reference217 = ref span274[num]; + ref QuestSequence reference217 = ref span105[5]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3735) }; @@ -299052,16 +246748,13 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - Span span282 = CollectionsMarshal.AsSpan(list282); - index = 0; - span282[index] = "liza"; + CollectionsMarshal.AsSpan(list282)[0] = "liza"; questRoot33.Author = list282; - index = 6; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - ref QuestSequence reference218 = ref span283[num]; + num = 6; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span106 = CollectionsMarshal.AsSpan(list283); + ref QuestSequence reference218 = ref span106[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -299069,9 +246762,7 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - ref QuestStep reference219 = ref span284[index2]; + ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list284)[0]; QuestStep obj188 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -299089,34 +246780,28 @@ public static class AssemblyQuestLoader num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - Span span285 = CollectionsMarshal.AsSpan(list285); - index3 = 0; - span285[index3] = 131; + CollectionsMarshal.AsSpan(list285)[0] = 131; obj189.InTerritory = list285; skipConditions13.AetheryteShortcutIf = obj189; obj188.SkipConditions = skipConditions13; reference219 = obj188; obj187.Steps = list284; reference218 = obj187; - num++; - ref QuestSequence reference220 = ref span283[num]; + ref QuestSequence reference220 = ref span106[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj190.Steps = list286; reference220 = obj190; - num++; - ref QuestSequence reference221 = ref span283[num]; + ref QuestSequence reference221 = ref span106[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -299124,43 +246809,35 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - span287[index2] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) + CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) { Fly = true }; obj191.Steps = list287; reference221 = obj191; - num++; - ref QuestSequence reference222 = ref span283[num]; + ref QuestSequence reference222 = ref span106[3]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list288 = new List(index2); - CollectionsMarshal.SetCount(list288, index2); - Span span288 = CollectionsMarshal.AsSpan(list288); - num2 = 0; - ref QuestStep reference223 = ref span288[num2]; + num2 = 1; + List list288 = new List(num2); + CollectionsMarshal.SetCount(list288, num2); + ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list288)[0]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2010849u, new Vector3(192.55359f, 55.039307f, -190.81409f), 140) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list289 = new List(index3); - CollectionsMarshal.SetCount(list289, index3); - Span span289 = CollectionsMarshal.AsSpan(list289); - num3 = 0; - span289[num3] = 11442u; + num3 = 1; + List list289 = new List(num3); + CollectionsMarshal.SetCount(list289, num3); + CollectionsMarshal.AsSpan(list289)[0] = 11442u; obj193.KillEnemyDataIds = list289; reference223 = obj193; obj192.Steps = list288; reference222 = obj192; - num++; - ref QuestSequence reference224 = ref span283[num]; + ref QuestSequence reference224 = ref span106[4]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -299168,26 +246845,21 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1031971u, new Vector3(298.146f, 62.280518f, -209.0639f), 140) { Fly = true }; obj194.Steps = list290; reference224 = obj194; - num++; - ref QuestSequence reference225 = ref span283[num]; + ref QuestSequence reference225 = ref span106[5]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -299206,16 +246878,13 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - Span span292 = CollectionsMarshal.AsSpan(list292); - index = 0; - span292[index] = "liza"; + CollectionsMarshal.AsSpan(list292)[0] = "liza"; questRoot34.Author = list292; - index = 4; - List list293 = new List(index); - CollectionsMarshal.SetCount(list293, index); - Span span293 = CollectionsMarshal.AsSpan(list293); - num = 0; - ref QuestSequence reference226 = ref span293[num]; + num = 4; + List list293 = new List(num); + CollectionsMarshal.SetCount(list293, num); + Span span107 = CollectionsMarshal.AsSpan(list293); + ref QuestSequence reference226 = ref span107[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -299223,9 +246892,7 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - ref QuestStep reference227 = ref span294[index2]; + ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list294)[0]; QuestStep obj197 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -299243,27 +246910,23 @@ public static class AssemblyQuestLoader num3 = 1; List list295 = new List(num3); CollectionsMarshal.SetCount(list295, num3); - Span span295 = CollectionsMarshal.AsSpan(list295); - index3 = 0; - span295[index3] = 131; + CollectionsMarshal.AsSpan(list295)[0] = 131; obj198.InTerritory = list295; skipConditions14.AetheryteShortcutIf = obj198; obj197.SkipConditions = skipConditions14; reference227 = obj197; obj196.Steps = list294; reference226 = obj196; - num++; - ref QuestSequence reference228 = ref span293[num]; + ref QuestSequence reference228 = ref span107[1]; QuestSequence obj199 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list296 = new List(index2); - CollectionsMarshal.SetCount(list296, index2); - Span span296 = CollectionsMarshal.AsSpan(list296); - num2 = 0; - ref QuestStep reference229 = ref span296[num2]; + num2 = 3; + List list296 = new List(num2); + CollectionsMarshal.SetCount(list296, num2); + Span span108 = CollectionsMarshal.AsSpan(list296); + ref QuestStep reference229 = ref span108[0]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1031980u, new Vector3(-85.00806f, 6.9845695f, -11.001831f), 131) { AethernetShortcut = new AethernetShortcut @@ -299272,70 +246935,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahGladiator } }; - 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); + 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); obj200.CompletionQuestVariablesFlags = list297; reference229 = obj200; - num2++; - ref QuestStep reference230 = ref span296[num2]; + ref QuestStep reference230 = ref span108[1]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list298; reference230 = questStep18; - num2++; - ref QuestStep reference231 = ref span296[num2]; + ref QuestStep reference231 = ref span108[2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1001675u, new Vector3(-89.49426f, 7.008118f, 10.849121f), 131); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list299; reference231 = questStep19; obj199.Steps = list296; reference228 = obj199; - num++; - ref QuestSequence reference232 = ref span293[num]; + ref QuestSequence reference232 = ref span107[2]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -299343,23 +246985,18 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 1031978u, new Vector3(-75.05914f, 6.9845705f, 10.971252f), 131); + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1031978u, new Vector3(-75.05914f, 6.9845705f, 10.971252f), 131); obj201.Steps = list300; reference232 = obj201; - num++; - ref QuestSequence reference233 = ref span293[num]; + ref QuestSequence reference233 = ref span107[3]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(3737) @@ -299373,16 +247010,13 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "liza"; + CollectionsMarshal.AsSpan(list302)[0] = "liza"; questRoot35.Author = list302; - index = 2; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference234 = ref span303[num]; + num = 2; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span112 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference234 = ref span112[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -299390,9 +247024,7 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - ref QuestStep reference235 = ref span304[index2]; + ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list304)[0]; QuestStep obj204 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -299411,27 +247043,22 @@ public static class AssemblyQuestLoader num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - Span span305 = CollectionsMarshal.AsSpan(list305); - index3 = 0; - span305[index3] = 131; + CollectionsMarshal.AsSpan(list305)[0] = 131; obj205.InTerritory = list305; skipConditions15.AetheryteShortcutIf = obj205; obj204.SkipConditions = skipConditions15; reference235 = obj204; obj203.Steps = list304; reference234 = obj203; - num++; - ref QuestSequence reference236 = ref span303[num]; + ref QuestSequence reference236 = ref span112[1]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(3989) @@ -299449,16 +247076,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Censored"; + CollectionsMarshal.AsSpan(list)[0] = "Censored"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -299466,9 +247090,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1018433u, new Vector3(50.766724f, 50f, -772.3964f), 156) { Fly = true, @@ -299484,9 +247106,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKZK991_03750_Q1_000_000"), @@ -299496,18 +247116,15 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Sprint = true, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -299519,8 +247136,7 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -299528,34 +247144,29 @@ public static class AssemblyQuestLoader num2 = 2; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.02783f, -16.420786f, 11.723575f), 145) + Span span2 = CollectionsMarshal.AsSpan(list6); + span2[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-509.02783f, -16.420786f, 11.723575f), 145) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; - index2++; - span6[index2] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); + span2[1] = new QuestStep(EInteractionType.Interact, 1006355u, new Vector3(-512.47424f, -16.42f, -7.522766f), 145); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1030875u, new Vector3(-458.64044f, -28.193886f, 110.64307f), 145) + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1030875u, new Vector3(-458.64044f, -28.193886f, 110.64307f), 145) { Fly = true }; @@ -299568,16 +247179,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 3; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 3; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -299585,34 +247193,28 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1031783u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1031783u, new Vector3(-3.03656f, 0.01804012f, -8.1026f), 351) { StopDistance = 5f }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span4[2]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -299620,9 +247222,7 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032494u, new Vector3(739.6504f, 70f, 514.21375f), 621); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list9; @@ -299632,30 +247232,24 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "liza"; + CollectionsMarshal.AsSpan(list13)[0] = "liza"; questRoot3.Author = list13; - index = 2; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 2; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span5 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span5[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span5[1]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -299663,9 +247257,8 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span6 = CollectionsMarshal.AsSpan(list16); + span6[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -299675,8 +247268,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index2++; - span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + span6[1] = new QuestStep(EInteractionType.CompleteQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj10.Steps = list16; reference10 = obj10; questRoot3.QuestSequence = list14; @@ -299686,30 +247278,24 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot4.Author = list17; - index = 5; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference11 = ref span18[num]; + num = 5; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span7 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference11 = ref span7[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj11.Steps = list19; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span18[num]; + ref QuestSequence reference12 = ref span7[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -299717,21 +247303,17 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.009940993f, 1.036532f, 14.22064f), 844) + Span span8 = CollectionsMarshal.AsSpan(list20); + span8[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.009940993f, 1.036532f, 14.22064f), 844) { TargetTerritoryId = (ushort)819 }; - index2++; - ref QuestStep reference13 = ref span20[index2]; + ref QuestStep reference13 = ref span8[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1030370u, new Vector3(66.84973f, -2.9802322E-07f, 13.321045f), 819); - index3 = 1; - List list21 = new List(index3); - CollectionsMarshal.SetCount(list21, index3); - Span span21 = CollectionsMarshal.AsSpan(list21); - num3 = 0; - span21[num3] = new DialogueChoice + num3 = 1; + List list21 = new List(num3); + CollectionsMarshal.SetCount(list21, num3); + CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMH103_03763_Q1_000_500"), @@ -299741,25 +247323,21 @@ public static class AssemblyQuestLoader reference13 = questStep; obj12.Steps = list20; reference12 = obj12; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span7[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj13.Steps = list22; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span7[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -299767,26 +247345,21 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1032498u, new Vector3(628.6869f, 94.385544f, -645.9297f), 813) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1032498u, new Vector3(628.6869f, 94.385544f, -645.9297f), 813) { Fly = true }; obj14.Steps = list23; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span7[4]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj15.Steps = list24; reference16 = obj15; questRoot4.QuestSequence = list18; @@ -299796,16 +247369,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; questRoot5.Author = list25; - index = 4; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference17 = ref span26[num]; + num = 4; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span9 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference17 = ref span9[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -299813,23 +247383,19 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032502u, new Vector3(629.0836f, 94.39156f, -644.98364f), 813); obj16.Steps = list27; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span26[num]; + ref QuestSequence reference18 = ref span9[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -299839,12 +247405,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - num2++; - span28[num2] = new QuestStep(EInteractionType.Interact, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); + span10[1] = new QuestStep(EInteractionType.Interact, 1031722u, new Vector3(-1.7853394f, 0f, -1.8158569f), 844); obj17.Steps = list28; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span26[num]; + ref QuestSequence reference19 = ref span9[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 @@ -299852,14 +247416,12 @@ public static class AssemblyQuestLoader num2 = 6; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) + Span span11 = CollectionsMarshal.AsSpan(list29); + span11[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) { TargetTerritoryId = (ushort)819 }; - index2++; - ref QuestStep reference20 = ref span29[index2]; + ref QuestStep reference20 = ref span11[1]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { Comment = "Chessamile" @@ -299867,47 +247429,33 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - 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); + 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); obj19.CompletionQuestVariablesFlags = list30; reference20 = obj19; - index2++; - ref QuestStep reference21 = ref span29[index2]; + ref QuestStep reference21 = ref span11[2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1027224u, new Vector3(-57.358704f, -7.4820004f, 118.08948f), 819) { Comment = "Bragi" }; - 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); + 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); obj20.CompletionQuestVariablesFlags = list31; reference21 = obj20; - index2++; - ref QuestStep reference22 = ref span29[index2]; + ref QuestStep reference22 = ref span11[3]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 4f, @@ -299916,23 +247464,16 @@ public static class AssemblyQuestLoader num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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); + 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); obj21.CompletionQuestVariablesFlags = list32; reference22 = obj21; - index2++; - ref QuestStep reference23 = ref span29[index2]; + ref QuestStep reference23 = ref span11[4]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1027232u, new Vector3(-9.323303f, 20.1973f, -136.52252f), 819) { Comment = "Katliss", @@ -299942,26 +247483,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCrystallineMean } }; - 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); + 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); obj22.CompletionQuestVariablesFlags = list33; reference23 = obj22; - index2++; - ref QuestStep reference24 = ref span29[index2]; + ref QuestStep reference24 = ref span11[5]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { Comment = "Moren", @@ -299974,35 +247508,26 @@ public static class AssemblyQuestLoader num3 = 6; List list34 = new List(num3); CollectionsMarshal.SetCount(list34, num3); - 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); + 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); obj23.CompletionQuestVariablesFlags = list34; reference24 = obj23; obj18.Steps = list29; reference19 = obj18; - num++; - ref QuestSequence reference25 = ref span26[num]; + ref QuestSequence reference25 = ref span9[3]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -300015,16 +247540,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot6.Author = list36; - index = 4; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference26 = ref span37[num]; + num = 4; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span17 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference26 = ref span17[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 @@ -300032,33 +247554,27 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844) { StopDistance = 7f }; obj25.Steps = list38; reference26 = obj25; - num++; - ref QuestSequence reference27 = ref span37[num]; + ref QuestSequence reference27 = ref span17[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj26.Steps = list39; reference27 = obj26; - num++; - ref QuestSequence reference28 = ref span37[num]; + ref QuestSequence reference28 = ref span17[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 @@ -300066,53 +247582,45 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref QuestStep reference29 = ref span40[index2]; + ref QuestStep reference29 = ref CollectionsMarshal.AsSpan(list40)[0]; 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(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list41; obj28.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 4; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - Span span42 = CollectionsMarshal.AsSpan(list42); - index3 = 0; - span42[index3] = new DialogueChoice + Span span18 = CollectionsMarshal.AsSpan(list42); + span18[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(138u), DataId = 2011009u }; - index3++; - span42[index3] = new DialogueChoice + span18[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(139u), DataId = 2011006u }; - index3++; - span42[index3] = new DialogueChoice + span18[2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", Prompt = new ExcelRef(142u), DataId = 2011007u }; - index3++; - span42[index3] = new DialogueChoice + span18[3] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "GimmickYesNo", @@ -300122,18 +247630,15 @@ public static class AssemblyQuestLoader reference29 = obj28; obj27.Steps = list40; reference28 = obj27; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span17[3]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -300146,16 +247651,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot7.Author = list44; - index = 5; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference31 = ref span45[num]; + num = 5; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span19 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference31 = ref span19[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -300163,33 +247665,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1029234u, new Vector3(449.0271f, 33.66181f, -157.94617f), 817) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1029234u, new Vector3(449.0271f, 33.66181f, -157.94617f), 817) { StopDistance = 5f }; obj30.Steps = list46; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span45[num]; + ref QuestSequence reference32 = ref span19[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj31.Steps = list47; reference32 = obj31; - num++; - ref QuestSequence reference33 = ref span45[num]; + ref QuestSequence reference33 = ref span19[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -300197,27 +247693,21 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1027750u, new Vector3(-24.734924f, -25.324257f, 305.5924f), 817); obj32.Steps = list48; reference33 = obj32; - num++; - ref QuestSequence reference34 = ref span45[num]; + ref QuestSequence reference34 = ref span19[3]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj33.Steps = list49; reference34 = obj33; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span19[4]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -300225,9 +247715,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032515u, new Vector3(-642.2064f, 3.1136527f, 16.861145f), 817) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032515u, new Vector3(-642.2064f, 3.1136527f, 16.861145f), 817) { Fly = true }; @@ -300240,30 +247728,24 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "liza"; + CollectionsMarshal.AsSpan(list51)[0] = "liza"; questRoot8.Author = list51; - index = 4; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference36 = ref span52[num]; + num = 4; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span20 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference36 = ref span20[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj35.Steps = list53; reference36 = obj35; - num++; - ref QuestSequence reference37 = ref span52[num]; + ref QuestSequence reference37 = ref span20[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -300271,26 +247753,22 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; obj36.Steps = list54; reference37 = obj36; - num++; - ref QuestSequence reference38 = ref span52[num]; + ref QuestSequence reference38 = ref span20[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -300301,8 +247779,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-559.0543f, 394.95718f, -611.97614f), 818) + span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-559.0543f, 394.95718f, -611.97614f), 818) { SkipConditions = new SkipConditions { @@ -300312,8 +247789,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-681.43286f, 404.5379f, -693.3609f), 818) + span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-681.43286f, 404.5379f, -693.3609f), 818) { SkipConditions = new SkipConditions { @@ -300323,8 +247799,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-675.946f, 408.10754f, -711.8061f), 818) + span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-675.946f, 408.10754f, -711.8061f), 818) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -300335,17 +247810,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span55[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6145f, 393.0597f, -823.20044f), 818) + span21[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-423.6145f, 393.0597f, -823.20044f), 818) { Fly = true }; - num2++; - span55[num2] = new QuestStep(EInteractionType.Interact, 2010814u, new Vector3(-422.47656f, 393.9115f, -824.094f), 818); + span21[5] = new QuestStep(EInteractionType.Interact, 2010814u, new Vector3(-422.47656f, 393.9115f, -824.094f), 818); obj37.Steps = list55; reference38 = obj37; - num++; - ref QuestSequence reference39 = ref span52[num]; + ref QuestSequence reference39 = ref span20[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -300353,9 +247825,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027757u, new Vector3(609.7047f, 350.3518f, -197.95532f), 818) { AetheryteShortcut = EAetheryteLocation.TempestOndoCups }; @@ -300368,30 +247838,24 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot9.Author = list57; - index = 7; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference40 = ref span58[num]; + num = 7; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span22 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference40 = ref span22[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj39.Steps = list59; reference40 = obj39; - num++; - ref QuestSequence reference41 = ref span58[num]; + ref QuestSequence reference41 = ref span22[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -300399,9 +247863,8 @@ public static class AssemblyQuestLoader num2 = 7; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.None, null, null, 819) + Span span23 = CollectionsMarshal.AsSpan(list60); + span23[0] = new QuestStep(EInteractionType.None, null, null, 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -300410,8 +247873,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + span23[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -300422,8 +247884,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -300434,8 +247895,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + span23[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -300445,8 +247905,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.70464f, 1.0942776f, 738.40204f), 813) + span23[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.70464f, 1.0942776f, 738.40204f), 813) { SkipConditions = new SkipConditions { @@ -300456,34 +247915,28 @@ public static class AssemblyQuestLoader } } }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-269.44116f, -0.82486916f, 724.67255f), 813) + span23[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-269.44116f, -0.82486916f, 724.67255f), 813) { Fly = true }; - index2++; - span60[index2] = new QuestStep(EInteractionType.Interact, 1032528u, new Vector3(-270.98505f, -0.82573783f, 723.96423f), 813); + span23[6] = new QuestStep(EInteractionType.Interact, 1032528u, new Vector3(-270.98505f, -0.82573783f, 723.96423f), 813); obj40.Steps = list60; reference41 = obj40; - num++; - ref QuestSequence reference42 = ref span58[num]; + ref QuestSequence reference42 = ref span22[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj41.Steps = list61; reference42 = obj41; - num++; - ref QuestSequence reference43 = ref span58[num]; + ref QuestSequence reference43 = ref span22[3]; QuestSequence obj42 = new QuestSequence { Sequence = 3 @@ -300491,9 +247944,8 @@ public static class AssemblyQuestLoader num2 = 8; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.3982f, 26.347507f, 773.5695f), 813) + Span span24 = CollectionsMarshal.AsSpan(list62); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-591.3982f, 26.347507f, 773.5695f), 813) { DisableNavmesh = true, Mount = true, @@ -300506,8 +247958,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-610.2863f, -2.1544409f, 734.7734f), 813) + span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-610.2863f, -2.1544409f, 734.7734f), 813) { DisableNavmesh = true, Fly = true, @@ -300519,8 +247970,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span62[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-565.32196f, -1.9743931f, 799.9003f), 813) + span24[2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-565.32196f, -1.9743931f, 799.9003f), 813) { StopDistance = 1f, DisableNavmesh = true, @@ -300532,8 +247982,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) + span24[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -300544,37 +247993,28 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference44 = ref span62[index2]; + ref QuestStep reference44 = ref span24[4]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 2010280u, new Vector3(-630.4265f, -29.862f, 752.5597f), 813) { DisableNavmesh = true }; - 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); + 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); obj43.CompletionQuestVariablesFlags = list63; reference44 = obj43; - index2++; - span62[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.167f, -41.328938f, 741.29126f), 813) + span24[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-654.167f, -41.328938f, 741.29126f), 813) { Mount = true }; - index2++; - ref QuestStep reference45 = ref span62[index2]; + ref QuestStep reference45 = ref span24[6]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2010278u, new Vector3(-655.5123f, -40.299072f, 743.22107f), 813) { DisableNavmesh = true @@ -300582,67 +248022,51 @@ public static class AssemblyQuestLoader num3 = 6; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - 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); + 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); obj44.CompletionQuestVariablesFlags = list64; reference45 = obj44; - index2++; - ref QuestStep reference46 = ref span62[index2]; + ref QuestStep reference46 = ref span24[7]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 2010282u, new Vector3(-663.14185f, -25.711487f, 738.82654f), 813) { Mount = true }; - 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); + 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); obj45.CompletionQuestVariablesFlags = list65; reference46 = obj45; obj42.Steps = list62; reference43 = obj42; - num++; - ref QuestSequence reference47 = ref span58[num]; + ref QuestSequence reference47 = ref span22[4]; QuestSequence obj46 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true, Mount = true, Fly = true, RestartNavigationIfCancelled = false }; - num2++; - span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) + span28[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.45654f, 0.39776123f, 810.7269f), 813) { SkipConditions = new SkipConditions { @@ -300652,8 +248076,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span66[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) + span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-619.98676f, 24.866888f, 794.4714f), 813) { Mount = true, SkipConditions = new SkipConditions @@ -300664,15 +248087,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span66[num2] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) + span28[3] = new QuestStep(EInteractionType.Interact, 1030333u, new Vector3(-612.23773f, 27.728632f, 817.65466f), 813) { Fly = true }; obj46.Steps = list66; reference47 = obj46; - num++; - ref QuestSequence reference48 = ref span58[num]; + ref QuestSequence reference48 = ref span22[5]; QuestSequence obj47 = new QuestSequence { Sequence = 5 @@ -300680,23 +248101,19 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1032531u, new Vector3(-130.90723f, 9.572956f, 697.68823f), 813); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1032531u, new Vector3(-130.90723f, 9.572956f, 697.68823f), 813); obj47.Steps = list67; reference48 = obj47; - num++; - ref QuestSequence reference49 = ref span58[num]; + ref QuestSequence reference49 = ref span22[6]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -300706,8 +248123,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + span29[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { SkipConditions = new SkipConditions { @@ -300717,8 +248133,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + span29[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { DisableNavmesh = true, Comment = "these bridges have navmesh problems", @@ -300730,8 +248145,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032554u, new Vector3(237.72021f, 5.6935816f, 552.1781f), 813) + span29[3] = new QuestStep(EInteractionType.CompleteQuest, 1032554u, new Vector3(237.72021f, 5.6935816f, 552.1781f), 813) { Fly = true }; @@ -300744,16 +248158,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot10.Author = list69; - index = 5; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference50 = ref span70[num]; + num = 5; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span30 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference50 = ref span30[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -300761,31 +248172,25 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032555u, new Vector3(235.40088f, 5.733457f, 552.3612f), 813); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032555u, new Vector3(235.40088f, 5.733457f, 552.3612f), 813); obj49.Steps = list71; reference50 = obj49; - num++; - ref QuestSequence reference51 = ref span70[num]; + ref QuestSequence reference51 = ref span30[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; obj50.Steps = list72; reference51 = obj50; - num++; - ref QuestSequence reference52 = ref span70[num]; + ref QuestSequence reference52 = ref span30[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -300793,9 +248198,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Duty, null, null, 814) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -300805,23 +248208,19 @@ public static class AssemblyQuestLoader }; obj51.Steps = list73; reference52 = obj51; - num++; - span70[num] = new QuestSequence + span30[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference53 = ref span70[num]; + ref QuestSequence reference53 = ref span30[4]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj52.Steps = list74; reference53 = obj52; questRoot10.QuestSequence = list70; @@ -300831,16 +248230,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "liza"; + CollectionsMarshal.AsSpan(list75)[0] = "liza"; questRoot11.Author = list75; - index = 6; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference54 = ref span76[num]; + num = 6; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span31 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference54 = ref span31[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -300848,32 +248244,25 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032539u, new Vector3(-534.1726f, 63.559536f, 735.1339f), 814); obj53.Steps = list77; reference54 = obj53; - num++; - span76[num] = new QuestSequence + span31[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference55 = ref span76[num]; + ref QuestSequence reference55 = ref span31[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj54.Steps = list78; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span76[num]; + ref QuestSequence reference56 = ref span31[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -300881,9 +248270,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1032558u, new Vector3(56.90088f, 36.19769f, -169.23785f), 819) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1032558u, new Vector3(56.90088f, 36.19769f, -169.23785f), 819) { AethernetShortcut = new AethernetShortcut { @@ -300893,18 +248280,16 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span76[num]; + ref QuestSequence reference57 = ref span31[4]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -300913,12 +248298,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); + span32[1] = new QuestStep(EInteractionType.Interact, 1032121u, new Vector3(0.045776367f, -5.996435E-14f, -5.5390625f), 844); obj56.Steps = list80; reference57 = obj56; - num++; - ref QuestSequence reference58 = ref span76[num]; + ref QuestSequence reference58 = ref span31[5]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -300926,14 +248309,12 @@ public static class AssemblyQuestLoader num2 = 2; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) + Span span33 = CollectionsMarshal.AsSpan(list81); + span33[0] = new QuestStep(EInteractionType.Interact, 2009758u, new Vector3(-0.015319824f, 1.0223389f, 14.206055f), 844) { TargetTerritoryId = (ushort)819 }; - index2++; - ref QuestStep reference59 = ref span81[index2]; + ref QuestStep reference59 = ref span33[1]; QuestStep obj58 = new QuestStep(EInteractionType.CompleteQuest, 1030610u, new Vector3(65.11023f, 1.7160122f, 249.7749f), 819) { StopDistance = 5f, @@ -300946,9 +248327,7 @@ public static class AssemblyQuestLoader num3 = 1; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - Span span82 = CollectionsMarshal.AsSpan(list82); - index3 = 0; - span82[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMH110_03770_Q1_000_600") @@ -300964,33 +248343,27 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "liza"; + CollectionsMarshal.AsSpan(list83)[0] = "liza"; questRoot12.Author = list83; - index = 8; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference60 = ref span84[num]; + num = 8; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span34 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference60 = ref span34[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj59.Steps = list85; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span84[num]; + ref QuestSequence reference61 = ref span34[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -300998,9 +248371,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1027226u, new Vector3(-61.84485f, -17.72202f, -266.2547f), 819) { AethernetShortcut = new AethernetShortcut { @@ -301010,25 +248381,20 @@ public static class AssemblyQuestLoader }; obj60.Steps = list86; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span84[num]; + ref QuestSequence reference62 = ref span34[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list87 = new List(index2); - CollectionsMarshal.SetCount(list87, index2); - Span span87 = CollectionsMarshal.AsSpan(list87); - num2 = 0; - ref QuestStep reference63 = ref span87[num2]; + num2 = 1; + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list87)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1033794u, new Vector3(-81.28485f, -36.750004f, -277.7906f), 819); - index3 = 1; - List list88 = new List(index3); - CollectionsMarshal.SetCount(list88, index3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num3 = 0; - span88[num3] = new DialogueChoice + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + CollectionsMarshal.AsSpan(list88)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI101_03771_Q3_000_148"), @@ -301038,8 +248404,7 @@ public static class AssemblyQuestLoader reference63 = questStep2; obj61.Steps = list87; reference62 = obj61; - num++; - ref QuestSequence reference64 = ref span84[num]; + ref QuestSequence reference64 = ref span34[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -301047,9 +248412,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AethernetShortcut = new AethernetShortcut { @@ -301059,22 +248422,18 @@ public static class AssemblyQuestLoader }; obj62.Steps = list89; reference64 = obj62; - num++; - ref QuestSequence reference65 = ref span84[num]; + ref QuestSequence reference65 = ref span34[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj63.Steps = list90; reference65 = obj63; - num++; - ref QuestSequence reference66 = ref span84[num]; + ref QuestSequence reference66 = ref span34[5]; QuestSequence obj64 = new QuestSequence { Sequence = 5 @@ -301082,91 +248441,66 @@ public static class AssemblyQuestLoader num2 = 3; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - ref QuestStep reference67 = ref span91[index2]; + Span span35 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference67 = ref span35[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list92; reference67 = questStep3; - index2++; - ref QuestStep reference68 = ref span91[index2]; + ref QuestStep reference68 = ref span35[1]; QuestStep obj65 = new QuestStep(EInteractionType.Interact, 2011071u, new Vector3(-139.3302f, 0.99176025f, 167.65088f), 819) { StopDistance = 5f }; - 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); + 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); obj65.CompletionQuestVariablesFlags = list93; reference68 = obj65; - index2++; - ref QuestStep reference69 = ref span91[index2]; + ref QuestStep reference69 = ref span35[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list94; reference69 = questStep4; obj64.Steps = list91; reference66 = obj64; - num++; - ref QuestSequence reference70 = ref span84[num]; + ref QuestSequence reference70 = ref span34[6]; QuestSequence obj66 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj66.Steps = list95; reference70 = obj66; - num++; - ref QuestSequence reference71 = ref span84[num]; + ref QuestSequence reference71 = ref span34[7]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -301174,9 +248508,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1027248u, new Vector3(-30.807983f, -0.64999914f, -51.438232f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; @@ -301189,30 +248521,24 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot13.Author = list97; - index = 6; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference72 = ref span98[num]; + num = 6; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span39 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference72 = ref span39[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj68.Steps = list99; reference72 = obj68; - num++; - ref QuestSequence reference73 = ref span98[num]; + ref QuestSequence reference73 = ref span39[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -301220,9 +248546,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 1033807u, new Vector3(761.2573f, 25.95656f, 417.99023f), 813) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1033807u, new Vector3(761.2573f, 25.95656f, 417.99023f), 813) { AethernetShortcut = new AethernetShortcut { @@ -301232,19 +248556,17 @@ public static class AssemblyQuestLoader }; obj69.Steps = list100; reference73 = obj69; - num++; - ref QuestSequence reference74 = ref span98[num]; + ref QuestSequence reference74 = ref span39[2]; QuestSequence obj70 = new QuestSequence { Sequence = 2, Comment = "This isn't solving for the 'best' results, but for the closest waypoints" }; - index2 = 3; - List list101 = new List(index2); - CollectionsMarshal.SetCount(list101, index2); - Span span101 = CollectionsMarshal.AsSpan(list101); - num2 = 0; - ref QuestStep reference75 = ref span101[num2]; + num2 = 3; + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + Span span40 = CollectionsMarshal.AsSpan(list101); + ref QuestStep reference75 = ref span40[0]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2011078u, new Vector3(754.45166f, 15.8845825f, 273.88416f), 813) { StopDistance = 1f, @@ -301252,84 +248574,63 @@ public static class AssemblyQuestLoader ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list102 = new List(index3); - CollectionsMarshal.SetCount(list102, index3); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - span102[num3] = 12168u; + num3 = 1; + List list102 = new List(num3); + CollectionsMarshal.SetCount(list102, num3); + CollectionsMarshal.AsSpan(list102)[0] = 12168u; obj71.KillEnemyDataIds = list102; num3 = 6; List list103 = new List(num3); CollectionsMarshal.SetCount(list103, num3); - 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); + 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); obj71.CompletionQuestVariablesFlags = list103; reference75 = obj71; - num2++; - ref QuestStep reference76 = ref span101[num2]; + ref QuestStep reference76 = ref span40[1]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, 2011076u, new Vector3(495.4756f, 10.299805f, 290.547f), 813) { Fly = true, ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list104 = new List(index3); - CollectionsMarshal.SetCount(list104, index3); - Span span104 = CollectionsMarshal.AsSpan(list104); - num3 = 0; - span104[num3] = 12166u; + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = 12166u; obj72.KillEnemyDataIds = list104; num3 = 6; List list105 = new List(num3); CollectionsMarshal.SetCount(list105, num3); - 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); + 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); obj72.CompletionQuestVariablesFlags = list105; reference76 = obj72; - num2++; - ref QuestStep reference77 = ref span101[num2]; + ref QuestStep reference77 = ref span40[2]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011079u, new Vector3(685.5725f, 6.881775f, 497.12354f), 813) { Fly = true, ItemId = 2003001u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list106 = new List(index3); - CollectionsMarshal.SetCount(list106, index3); - Span span106 = CollectionsMarshal.AsSpan(list106); - num3 = 0; - span106[num3] = 12168u; + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = 12168u; obj73.KillEnemyDataIds = list106; reference77 = obj73; obj70.Steps = list101; reference74 = obj70; - num++; - ref QuestSequence reference78 = ref span98[num]; + ref QuestSequence reference78 = ref span39[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -301337,35 +248638,29 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1033808u, new Vector3(763.9734f, 25.874697f, 419.51624f), 813) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1033808u, new Vector3(763.9734f, 25.874697f, 419.51624f), 813) { Fly = true }; obj74.Steps = list107; reference78 = obj74; - num++; - ref QuestSequence reference79 = ref span98[num]; + ref QuestSequence reference79 = ref span39[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span108[num2] = new QuestStep(EInteractionType.Interact, 2011107u, new Vector3(-223.13275f, 38.590088f, -86.80859f), 819); + span43[1] = new QuestStep(EInteractionType.Interact, 2011107u, new Vector3(-223.13275f, 38.590088f, -86.80859f), 819); obj75.Steps = list108; reference79 = obj75; - num++; - ref QuestSequence reference80 = ref span98[num]; + ref QuestSequence reference80 = ref span39[5]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -301373,9 +248668,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033811u, new Vector3(-208.11786f, 38.64859f, -82.65814f), 819); + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033811u, new Vector3(-208.11786f, 38.64859f, -82.65814f), 819); obj76.Steps = list109; reference80 = obj76; questRoot13.QuestSequence = list98; @@ -301385,30 +248678,24 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "liza"; + CollectionsMarshal.AsSpan(list110)[0] = "liza"; questRoot14.Author = list110; - index = 5; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference81 = ref span111[num]; + num = 5; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span44 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference81 = ref span44[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj77.Steps = list112; reference81 = obj77; - num++; - ref QuestSequence reference82 = ref span111[num]; + ref QuestSequence reference82 = ref span44[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -301416,36 +248703,30 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1034900u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1034900u, new Vector3(-32.791687f, -0.6250627f, -44.663208f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium }; obj78.Steps = list113; reference82 = obj78; - num++; - ref QuestSequence reference83 = ref span111[num]; + ref QuestSequence reference83 = ref span44[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + span45[1] = new QuestStep(EInteractionType.Interact, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj79.Steps = list114; reference83 = obj79; - num++; - ref QuestSequence reference84 = ref span111[num]; + ref QuestSequence reference84 = ref span44[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 @@ -301453,23 +248734,18 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 2011080u, new Vector3(-11.39856f, 1.449585f, -6.942932f), 351); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 2011080u, new Vector3(-11.39856f, 1.449585f, -6.942932f), 351); obj80.Steps = list115; reference84 = obj80; - num++; - ref QuestSequence reference85 = ref span111[num]; + ref QuestSequence reference85 = ref span44[4]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj81.Steps = list116; reference85 = obj81; questRoot14.QuestSequence = list111; @@ -301479,16 +248755,13 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "liza"; + CollectionsMarshal.AsSpan(list117)[0] = "liza"; questRoot15.Author = list117; - index = 4; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference86 = ref span118[num]; + num = 4; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span46 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference86 = ref span46[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -301496,42 +248769,34 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032081u, new Vector3(-2.4262085f, 0f, -9.10968f), 351); obj82.Steps = list119; reference86 = obj82; - num++; - ref QuestSequence reference87 = ref span118[num]; + ref QuestSequence reference87 = ref span46[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)156 }; - num2++; - span120[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.958076f, 21.232033f, -653.85443f), 156) + span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(29.958076f, 21.232033f, -653.85443f), 156) { Mount = true }; - num2++; - span120[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.789001f, 54.865185f, -770.47614f), 156) + span47[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(26.789001f, 54.865185f, -770.47614f), 156) { Fly = true }; - num2++; - span120[num2] = new QuestStep(EInteractionType.Interact, 1033818u, new Vector3(24.551636f, 50.99997f, -815.18274f), 156); + span47[3] = new QuestStep(EInteractionType.Interact, 1033818u, new Vector3(24.551636f, 50.99997f, -815.18274f), 156); obj83.Steps = list120; reference87 = obj83; - num++; - ref QuestSequence reference88 = ref span118[num]; + ref QuestSequence reference88 = ref span46[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -301539,9 +248804,8 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) + Span span48 = CollectionsMarshal.AsSpan(list121); + span48[0] = new QuestStep(EInteractionType.Interact, 1027230u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -301551,22 +248815,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index2++; - span121[index2] = new QuestStep(EInteractionType.Interact, 1033819u, new Vector3(-0.015319824f, 0f, -4.043701f), 844); + span48[1] = new QuestStep(EInteractionType.Interact, 1033819u, new Vector3(-0.015319824f, 0f, -4.043701f), 844); obj84.Steps = list121; reference88 = obj84; - num++; - ref QuestSequence reference89 = ref span118[num]; + ref QuestSequence reference89 = ref span46[3]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -301579,16 +248839,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot16.Author = list123; - index = 5; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference90 = ref span124[num]; + num = 5; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span49 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference90 = ref span49[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -301596,39 +248853,32 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033823u, new Vector3(40.329468f, -2.0168546E-08f, 1.9378662f), 819) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033823u, new Vector3(40.329468f, -2.0168546E-08f, 1.9378662f), 819) { StopDistance = 5f }; obj86.Steps = list125; reference90 = obj86; - num++; - ref QuestSequence reference91 = ref span124[num]; + ref QuestSequence reference91 = ref span49[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright }; - num2++; - ref QuestStep reference92 = ref span126[num2]; + ref QuestStep reference92 = ref span50[1]; 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); - Span span127 = CollectionsMarshal.AsSpan(list127); - index3 = 0; - span127[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list127)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI105_03775_Q2_000_052") @@ -301637,13 +248887,11 @@ public static class AssemblyQuestLoader reference92 = questStep5; obj87.Steps = list126; reference91 = obj87; - num++; - span124[num] = new QuestSequence + span49[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference93 = ref span124[num]; + ref QuestSequence reference93 = ref span49[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 @@ -301651,46 +248899,39 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - ref QuestStep reference94 = ref span128[index2]; + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list128)[0]; 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(); - 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)"; + 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)"; singlePlayerDutyOptions2.Notes = list129; obj89.SinglePlayerDutyOptions = singlePlayerDutyOptions2; num3 = 3; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = new DialogueChoice + Span span52 = CollectionsMarshal.AsSpan(list130); + span52[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(209u), Answer = new ExcelRef(211u) }; - index3++; - span130[index3] = new DialogueChoice + span52[1] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(209u), Answer = new ExcelRef(216u) }; - index3++; - span130[index3] = new DialogueChoice + span52[2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -301701,18 +248942,15 @@ public static class AssemblyQuestLoader reference94 = obj89; obj88.Steps = list128; reference93 = obj88; - num++; - ref QuestSequence reference95 = ref span124[num]; + ref QuestSequence reference95 = ref span49[4]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -301725,16 +248963,13 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot17.Author = list132; - index = 8; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference96 = ref span133[num]; + num = 8; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span53 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference96 = ref span53[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -301742,27 +248977,21 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.AcceptQuest, 2011087u, new Vector3(-382.8231f, -229.0648f, 755.3434f), 818); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 2011087u, new Vector3(-382.8231f, -229.0648f, 755.3434f), 818); obj91.Steps = list134; reference96 = obj91; - num++; - ref QuestSequence reference97 = ref span133[num]; + ref QuestSequence reference97 = ref span53[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj92.Steps = list135; reference97 = obj92; - num++; - ref QuestSequence reference98 = ref span133[num]; + ref QuestSequence reference98 = ref span53[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -301770,27 +248999,21 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 2011091u, new Vector3(-251.9112f, -229.20581f, 657.3739f), 818); + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2011091u, new Vector3(-251.9112f, -229.20581f, 657.3739f), 818); obj93.Steps = list136; reference98 = obj93; - num++; - ref QuestSequence reference99 = ref span133[num]; + ref QuestSequence reference99 = ref span53[3]; QuestSequence obj94 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj94.Steps = list137; reference99 = obj94; - num++; - ref QuestSequence reference100 = ref span133[num]; + ref QuestSequence reference100 = ref span53[4]; QuestSequence obj95 = new QuestSequence { Sequence = 4 @@ -301798,27 +249021,21 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 2011095u, new Vector3(-132.1889f, -244.89203f, 687.9529f), 818); + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 2011095u, new Vector3(-132.1889f, -244.89203f, 687.9529f), 818); obj95.Steps = list138; reference100 = obj95; - num++; - ref QuestSequence reference101 = ref span133[num]; + ref QuestSequence reference101 = ref span53[5]; QuestSequence obj96 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj96.Steps = list139; reference101 = obj96; - num++; - ref QuestSequence reference102 = ref span133[num]; + ref QuestSequence reference102 = ref span53[6]; QuestSequence obj97 = new QuestSequence { Sequence = 6 @@ -301826,23 +249043,18 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 2011099u, new Vector3(-29.221008f, -263.9353f, 717.28076f), 818); + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2011099u, new Vector3(-29.221008f, -263.9353f, 717.28076f), 818); obj97.Steps = list140; reference102 = obj97; - num++; - ref QuestSequence reference103 = ref span133[num]; + ref QuestSequence reference103 = ref span53[7]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj98.Steps = list141; reference103 = obj98; questRoot17.QuestSequence = list133; @@ -301852,16 +249064,13 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "liza"; + CollectionsMarshal.AsSpan(list142)[0] = "liza"; questRoot18.Author = list142; - index = 8; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference104 = ref span143[num]; + num = 8; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span54 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference104 = ref span54[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -301869,30 +249078,24 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033829u, new Vector3(-497.94766f, 8.986913f, 584.1915f), 814); obj99.Steps = list144; reference104 = obj99; - num++; - ref QuestSequence reference105 = ref span143[num]; + ref QuestSequence reference105 = ref span54[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj100.Steps = list145; reference105 = obj100; - num++; - ref QuestSequence reference106 = ref span143[num]; + ref QuestSequence reference106 = ref span54[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -301900,23 +249103,18 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.Interact, 1033830u, new Vector3(23.819275f, 82.049995f, 16.342407f), 820); + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1033830u, new Vector3(23.819275f, 82.049995f, 16.342407f), 820); obj101.Steps = list146; reference106 = obj101; - num++; - ref QuestSequence reference107 = ref span143[num]; + ref QuestSequence reference107 = ref span54[3]; QuestSequence obj102 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Duty, null, null, 820) { DutyOptions = new DutyOptions { @@ -301925,13 +249123,11 @@ public static class AssemblyQuestLoader }; obj102.Steps = list147; reference107 = obj102; - num++; - span143[num] = new QuestSequence + span54[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference108 = ref span143[num]; + ref QuestSequence reference108 = ref span54[5]; QuestSequence obj103 = new QuestSequence { Sequence = 5 @@ -301939,30 +249135,24 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1033850u, new Vector3(291.49304f, 9.905235f, 153.2157f), 813); + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1033850u, new Vector3(291.49304f, 9.905235f, 153.2157f), 813); obj103.Steps = list148; reference108 = obj103; - num++; - ref QuestSequence reference109 = ref span143[num]; + ref QuestSequence reference109 = ref span54[6]; QuestSequence obj104 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj104.Steps = list149; reference109 = obj104; - num++; - ref QuestSequence reference110 = ref span143[num]; + ref QuestSequence reference110 = ref span54[7]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -301970,9 +249160,7 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819) { StopDistance = 5f }; @@ -301985,33 +249173,26 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "liza"; + CollectionsMarshal.AsSpan(list151)[0] = "liza"; questRoot19.Author = list151; - index = 5; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference111 = ref span152[num]; + num = 5; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span55 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference111 = ref span55[0]; QuestSequence obj106 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list153)[0]; QuestStep questStep6 = new QuestStep(EInteractionType.AcceptQuest, 1033854u, new Vector3(59.983154f, -3.0654925E-07f, 1.6021729f), 819); - index3 = 1; - List list154 = new List(index3); - CollectionsMarshal.SetCount(list154, index3); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - span154[num3] = new DialogueChoice + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI108_03778_Q1_000_001"), @@ -302021,13 +249202,11 @@ public static class AssemblyQuestLoader reference112 = questStep6; obj106.Steps = list153; reference111 = obj106; - num++; - span152[num] = new QuestSequence + span55[1] = new QuestSequence { Sequence = 1 }; - num++; - ref QuestSequence reference113 = ref span152[num]; + ref QuestSequence reference113 = ref span55[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -302035,9 +249214,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Duty, null, null, 931) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Duty, null, null, 931) { DutyOptions = new DutyOptions { @@ -302046,23 +249223,19 @@ public static class AssemblyQuestLoader }; obj107.Steps = list155; reference113 = obj107; - num++; - span152[num] = new QuestSequence + span55[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference114 = ref span152[num]; + ref QuestSequence reference114 = ref span55[4]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj108.Steps = list156; reference114 = obj108; questRoot19.QuestSequence = list152; @@ -302072,16 +249245,13 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; questRoot20.Author = list157; - index = 7; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference115 = ref span158[num]; + num = 7; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span56 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference115 = ref span56[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -302089,33 +249259,27 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033860u, new Vector3(53.269165f, -2.8964132E-07f, 1.4190674f), 819) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033860u, new Vector3(53.269165f, -2.8964132E-07f, 1.4190674f), 819) { StopDistance = 5f }; obj109.Steps = list159; reference115 = obj109; - num++; - ref QuestSequence reference116 = ref span158[num]; + ref QuestSequence reference116 = ref span56[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj110.Steps = list160; reference116 = obj110; - num++; - ref QuestSequence reference117 = ref span158[num]; + ref QuestSequence reference117 = ref span56[2]; QuestSequence obj111 = new QuestSequence { Sequence = 2 @@ -302123,33 +249287,27 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1033864u, new Vector3(384.60352f, -28.36043f, 322.56042f), 815) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1033864u, new Vector3(384.60352f, -28.36043f, 322.56042f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj111.Steps = list161; reference117 = obj111; - num++; - ref QuestSequence reference118 = ref span158[num]; + ref QuestSequence reference118 = ref span56[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj112.Steps = list162; reference118 = obj112; - num++; - ref QuestSequence reference119 = ref span158[num]; + ref QuestSequence reference119 = ref span56[4]; QuestSequence obj113 = new QuestSequence { Sequence = 4 @@ -302157,30 +249315,24 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.Interact, 1033867u, new Vector3(253.28442f, -46.571102f, 337.02588f), 815); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1033867u, new Vector3(253.28442f, -46.571102f, 337.02588f), 815); obj113.Steps = list163; reference119 = obj113; - num++; - ref QuestSequence reference120 = ref span158[num]; + ref QuestSequence reference120 = ref span56[5]; QuestSequence obj114 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj114.Steps = list164; reference120 = obj114; - num++; - ref QuestSequence reference121 = ref span158[num]; + ref QuestSequence reference121 = ref span56[6]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -302188,9 +249340,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033868u, new Vector3(19.57727f, 82.78207f, 48.53894f), 820); obj115.Steps = list165; reference121 = obj115; questRoot20.QuestSequence = list158; @@ -302200,30 +249350,24 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "liza"; + CollectionsMarshal.AsSpan(list166)[0] = "liza"; questRoot21.Author = list166; - index = 4; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference122 = ref span167[num]; + num = 4; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span57 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference122 = ref span57[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj116.Steps = list168; reference122 = obj116; - num++; - ref QuestSequence reference123 = ref span167[num]; + ref QuestSequence reference123 = ref span57[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -302231,35 +249375,29 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj117.Steps = list169; reference123 = obj117; - num++; - ref QuestSequence reference124 = ref span167[num]; + ref QuestSequence reference124 = ref span57[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj118.Steps = list170; reference124 = obj118; - num++; - ref QuestSequence reference125 = ref span167[num]; + ref QuestSequence reference125 = ref span57[3]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -302267,9 +249405,8 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-221.27931f, 55.081436f, -553.9665f), 816) + Span span58 = CollectionsMarshal.AsSpan(list171); + span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-221.27931f, 55.081436f, -553.9665f), 816) { SkipConditions = new SkipConditions { @@ -302279,8 +249416,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) + span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1033872u, new Vector3(-634.2717f, 35.86156f, -234.21082f), 816) { Fly = true }; @@ -302293,30 +249429,24 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "liza"; + CollectionsMarshal.AsSpan(list172)[0] = "liza"; questRoot22.Author = list172; - index = 6; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference126 = ref span173[num]; + num = 6; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span59 = CollectionsMarshal.AsSpan(list173); + ref QuestSequence reference126 = ref span59[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj120.Steps = list174; reference126 = obj120; - num++; - ref QuestSequence reference127 = ref span173[num]; + ref QuestSequence reference127 = ref span59[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 @@ -302324,30 +249454,24 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1032532u, new Vector3(-88.33453f, -19.033354f, 296.31494f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj121.Steps = list175; reference127 = obj121; - num++; - ref QuestSequence reference128 = ref span173[num]; + ref QuestSequence reference128 = ref span59[2]; QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj122.Steps = list176; reference128 = obj122; - num++; - ref QuestSequence reference129 = ref span173[num]; + ref QuestSequence reference129 = ref span59[3]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -302355,26 +249479,21 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.Interact, 1033878u, new Vector3(-483.8178f, 45.586155f, -236.68274f), 815) + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 1033878u, new Vector3(-483.8178f, 45.586155f, -236.68274f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj123.Steps = list177; reference129 = obj123; - num++; - ref QuestSequence reference130 = ref span173[num]; + ref QuestSequence reference130 = ref span59[4]; QuestSequence obj124 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list178 = new List(index2); - CollectionsMarshal.SetCount(list178, index2); - Span span178 = CollectionsMarshal.AsSpan(list178); - num2 = 0; - ref QuestStep reference131 = ref span178[num2]; + num2 = 1; + List list178 = new List(num2); + CollectionsMarshal.SetCount(list178, num2); + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list178)[0]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 1033881u, new Vector3(-37.43042f, 4.583f, 3.982544f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium @@ -302382,9 +249501,7 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - Span span179 = CollectionsMarshal.AsSpan(list179); - index3 = 0; - span179[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list179)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMI111_03781_Q1_000_153"), @@ -302394,8 +249511,7 @@ public static class AssemblyQuestLoader reference131 = obj125; obj124.Steps = list178; reference130 = obj124; - num++; - ref QuestSequence reference132 = ref span173[num]; + ref QuestSequence reference132 = ref span59[5]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -302403,9 +249519,7 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033884u, new Vector3(26.230225f, 0f, 1.4190674f), 819); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033884u, new Vector3(26.230225f, 0f, 1.4190674f), 819); obj126.Steps = list180; reference132 = obj126; questRoot22.QuestSequence = list173; @@ -302415,33 +249529,27 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - Span span181 = CollectionsMarshal.AsSpan(list181); - index = 0; - span181[index] = "liza"; + CollectionsMarshal.AsSpan(list181)[0] = "liza"; questRoot23.Author = list181; - index = 3; - List list182 = new List(index); - CollectionsMarshal.SetCount(list182, index); - Span span182 = CollectionsMarshal.AsSpan(list182); - num = 0; - ref QuestSequence reference133 = ref span182[num]; + num = 3; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + Span span60 = CollectionsMarshal.AsSpan(list182); + ref QuestSequence reference133 = ref span60[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj127.Steps = list183; reference133 = obj127; - num++; - ref QuestSequence reference134 = ref span182[num]; + ref QuestSequence reference134 = ref span60[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -302449,31 +249557,25 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - ref QuestStep reference135 = ref span184[index2]; + Span span61 = CollectionsMarshal.AsSpan(list184); + ref QuestStep reference135 = ref span61[0]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819); - index3 = 1; - List list185 = new List(index3); - CollectionsMarshal.SetCount(list185, index3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = new DialogueChoice + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI112_03782_Q1_000_007") }; questStep7.DialogueChoices = list185; reference135 = questStep7; - index2++; - ref QuestStep reference136 = ref span184[index2]; + ref QuestStep reference136 = ref span61[1]; 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); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list186)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMI112_03782_Q2_000_044") @@ -302482,20 +249584,17 @@ public static class AssemblyQuestLoader reference136 = questStep8; obj128.Steps = list184; reference134 = obj128; - num++; - ref QuestSequence reference137 = ref span182[num]; + ref QuestSequence reference137 = ref span60[2]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj129.Steps = list187; reference137 = obj129; questRoot23.QuestSequence = list182; @@ -302505,16 +249604,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot24.Author = list188; - index = 9; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference138 = ref span189[num]; + num = 9; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span63 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference138 = ref span63[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -302522,9 +249618,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032581u, new Vector3(750.1792f, 69.99991f, 518.9136f), 621) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032581u, new Vector3(750.1792f, 69.99991f, 518.9136f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -302538,29 +249632,24 @@ public static class AssemblyQuestLoader }; obj130.Steps = list190; reference138 = obj130; - num++; - ref QuestSequence reference139 = ref span189[num]; + ref QuestSequence reference139 = ref span63[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list191 = new List(index2); - CollectionsMarshal.SetCount(list191, index2); - Span span191 = CollectionsMarshal.AsSpan(list191); - num2 = 0; - ref QuestStep reference140 = ref span191[num2]; + num2 = 1; + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list191)[0]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - index3 = 1; - List list192 = new List(index3); - CollectionsMarshal.SetCount(list192, index3); - Span span192 = CollectionsMarshal.AsSpan(list192); - num3 = 0; - span192[num3] = new DialogueChoice + num3 = 1; + List list192 = new List(num3); + CollectionsMarshal.SetCount(list192, num3); + CollectionsMarshal.AsSpan(list192)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW101_03783_Q3_000_000") @@ -302569,8 +249658,7 @@ public static class AssemblyQuestLoader reference140 = obj132; obj131.Steps = list191; reference139 = obj131; - num++; - ref QuestSequence reference141 = ref span189[num]; + ref QuestSequence reference141 = ref span63[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -302578,27 +249666,21 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Interact, 1032582u, new Vector3(-482.0478f, 107.63f, 121.934814f), 829); + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1032582u, new Vector3(-482.0478f, 107.63f, 121.934814f), 829); obj133.Steps = list193; reference141 = obj133; - num++; - ref QuestSequence reference142 = ref span189[num]; + ref QuestSequence reference142 = ref span63[3]; QuestSequence obj134 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj134.Steps = list194; reference142 = obj134; - num++; - ref QuestSequence reference143 = ref span189[num]; + ref QuestSequence reference143 = ref span63[4]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -302606,9 +249688,7 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Duty, null, null, 829) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Duty, null, null, 829) { DutyOptions = new DutyOptions { @@ -302617,30 +249697,25 @@ public static class AssemblyQuestLoader }; obj135.Steps = list195; reference143 = obj135; - num++; - span189[num] = new QuestSequence + span63[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference144 = ref span189[num]; + ref QuestSequence reference144 = ref span63[6]; QuestSequence obj136 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 4f }; obj136.Steps = list196; reference144 = obj136; - num++; - ref QuestSequence reference145 = ref span189[num]; + ref QuestSequence reference145 = ref span63[7]; QuestSequence obj137 = new QuestSequence { Sequence = 7 @@ -302648,28 +249723,23 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); obj137.Steps = list197; reference145 = obj137; - num++; - ref QuestSequence reference146 = ref span189[num]; + ref QuestSequence reference146 = ref span63[8]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3895) }; @@ -302682,16 +249752,13 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "liza"; + CollectionsMarshal.AsSpan(list199)[0] = "liza"; questRoot25.Author = list199; - index = 2; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference147 = ref span200[num]; + num = 2; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span65 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference147 = ref span65[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -302699,29 +249766,24 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj139.Steps = list201; reference147 = obj139; - num++; - ref QuestSequence reference148 = ref span200[num]; + ref QuestSequence reference148 = ref span65[1]; QuestSequence obj140 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)895, Fly = true }; - num2++; - span202[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895) + span66[1] = new QuestStep(EInteractionType.CompleteQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895) { NextQuestId = new QuestId(3785) }; @@ -302734,16 +249796,13 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span203 = CollectionsMarshal.AsSpan(list203); - index = 0; - span203[index] = "liza"; + CollectionsMarshal.AsSpan(list203)[0] = "liza"; questRoot26.Author = list203; - index = 4; - List list204 = new List(index); - CollectionsMarshal.SetCount(list204, index); - Span span204 = CollectionsMarshal.AsSpan(list204); - num = 0; - ref QuestSequence reference149 = ref span204[num]; + num = 4; + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + Span span67 = CollectionsMarshal.AsSpan(list204); + ref QuestSequence reference149 = ref span67[0]; QuestSequence obj141 = new QuestSequence { Sequence = 0 @@ -302751,35 +249810,29 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj141.Steps = list205; reference149 = obj141; - num++; - ref QuestSequence reference150 = ref span204[num]; + ref QuestSequence reference150 = ref span67[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)814 }; - num2++; - span206[num2] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) + span68[1] = new QuestStep(EInteractionType.Interact, 1031580u, new Vector3(665.21704f, 297.47797f, -159.77728f), 814) { Fly = true }; obj142.Steps = list206; reference150 = obj142; - num++; - ref QuestSequence reference151 = ref span204[num]; + ref QuestSequence reference151 = ref span67[2]; QuestSequence obj143 = new QuestSequence { Sequence = 2 @@ -302787,9 +249840,7 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - ref QuestStep reference152 = ref span207[index2]; + ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list207)[0]; QuestStep obj144 = new QuestStep(EInteractionType.Combat, null, new Vector3(382.49646f, 312.8454f, -382.58423f), 814) { Fly = true, @@ -302798,9 +249849,7 @@ public static class AssemblyQuestLoader num3 = 1; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - Span span208 = CollectionsMarshal.AsSpan(list208); - index3 = 0; - span208[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list208)[0] = new ComplexCombatData { DataId = 10410u, MinimumKillCount = 1u, @@ -302811,18 +249860,15 @@ public static class AssemblyQuestLoader reference152 = obj144; obj143.Steps = list207; reference151 = obj143; - num++; - ref QuestSequence reference153 = ref span204[num]; + ref QuestSequence reference153 = ref span67[3]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3952) @@ -302836,16 +249882,13 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "liza"; + CollectionsMarshal.AsSpan(list210)[0] = "liza"; questRoot27.Author = list210; - index = 6; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference154 = ref span211[num]; + num = 6; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span69 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference154 = ref span69[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -302853,30 +249896,24 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) { StopDistance = 7f }; obj146.Steps = list212; reference154 = obj146; - num++; - ref QuestSequence reference155 = ref span211[num]; + ref QuestSequence reference155 = ref span69[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj147.Steps = list213; reference155 = obj147; - num++; - ref QuestSequence reference156 = ref span211[num]; + ref QuestSequence reference156 = ref span69[2]; QuestSequence obj148 = new QuestSequence { Sequence = 2 @@ -302884,33 +249921,27 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 2010957u, new Vector3(485.40466f, -26.29132f, -20.859192f), 815) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 2010957u, new Vector3(485.40466f, -26.29132f, -20.859192f), 815) { Fly = true }; obj148.Steps = list214; reference156 = obj148; - num++; - ref QuestSequence reference157 = ref span211[num]; + ref QuestSequence reference157 = ref span69[3]; QuestSequence obj149 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 6f }; obj149.Steps = list215; reference157 = obj149; - num++; - ref QuestSequence reference158 = ref span211[num]; + ref QuestSequence reference158 = ref span69[4]; QuestSequence obj150 = new QuestSequence { Sequence = 4 @@ -302918,19 +249949,15 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference159 = ref span216[index2]; + ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list216)[0]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1030092u, new Vector3(382.864f, -64.404945f, 512.01636f), 815) { Fly = true }; - index3 = 1; - List list217 = new List(index3); - CollectionsMarshal.SetCount(list217, index3); - Span span217 = CollectionsMarshal.AsSpan(list217); - num3 = 0; - span217[num3] = new DialogueChoice + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKRA201_03787_YESNO_001") @@ -302939,18 +249966,15 @@ public static class AssemblyQuestLoader reference159 = obj151; obj150.Steps = list216; reference158 = obj150; - num++; - ref QuestSequence reference160 = ref span211[num]; + ref QuestSequence reference160 = ref span69[5]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3788) }; @@ -302963,16 +249987,13 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "liza"; + CollectionsMarshal.AsSpan(list219)[0] = "liza"; questRoot28.Author = list219; - index = 4; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference161 = ref span220[num]; + num = 4; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span70 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference161 = ref span70[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -302980,32 +250001,26 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032596u, new Vector3(-6.0273438f, -2.5312338f, 21.62201f), 878); obj153.Steps = list221; reference161 = obj153; - num++; - ref QuestSequence reference162 = ref span220[num]; + ref QuestSequence reference162 = ref span70[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)857 }; - num2++; - span222[num2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + span71[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj154.Steps = list222; reference162 = obj154; - num++; - ref QuestSequence reference163 = ref span220[num]; + ref QuestSequence reference163 = ref span70[2]; QuestSequence obj155 = new QuestSequence { Sequence = 2 @@ -303013,9 +250028,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -303024,18 +250037,15 @@ public static class AssemblyQuestLoader }; obj155.Steps = list223; reference163 = obj155; - num++; - ref QuestSequence reference164 = ref span220[num]; + ref QuestSequence reference164 = ref span70[3]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f, NextQuestId = new QuestId(3789) @@ -303049,16 +250059,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "liza"; + CollectionsMarshal.AsSpan(list225)[0] = "liza"; questRoot29.Author = list225; - index = 7; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference165 = ref span226[num]; + num = 7; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span72 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference165 = ref span72[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -303066,33 +250073,27 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032605u, new Vector3(-8.743469f, -2.0474615f, -10.025269f), 878) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032605u, new Vector3(-8.743469f, -2.0474615f, -10.025269f), 878) { StopDistance = 6f }; obj157.Steps = list227; reference165 = obj157; - num++; - ref QuestSequence reference166 = ref span226[num]; + ref QuestSequence reference166 = ref span72[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj158.Steps = list228; reference166 = obj158; - num++; - ref QuestSequence reference167 = ref span226[num]; + ref QuestSequence reference167 = ref span72[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 @@ -303100,31 +250101,25 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Emote, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Emote, 1032602u, new Vector3(-6.7597656f, -2.1008918f, -8.560364f), 878) { StopDistance = 6f, Emote = EEmote.Rally }; obj159.Steps = list229; reference167 = obj159; - num++; - ref QuestSequence reference168 = ref span226[num]; + ref QuestSequence reference168 = ref span72[3]; QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj160.Steps = list230; reference168 = obj160; - num++; - ref QuestSequence reference169 = ref span226[num]; + ref QuestSequence reference169 = ref span72[4]; QuestSequence obj161 = new QuestSequence { Sequence = 4 @@ -303132,28 +250127,23 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span73 = CollectionsMarshal.AsSpan(list231); + span73[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - index2++; - span231[index2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + span73[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj161.Steps = list231; reference169 = obj161; - num++; - ref QuestSequence reference170 = ref span226[num]; + ref QuestSequence reference170 = ref span72[5]; QuestSequence obj162 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -303162,8 +250152,7 @@ public static class AssemblyQuestLoader }; obj162.Steps = list232; reference170 = obj162; - num++; - ref QuestSequence reference171 = ref span226[num]; + ref QuestSequence reference171 = ref span72[6]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -303171,9 +250160,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 6f, NextQuestId = new QuestId(3790) @@ -303187,33 +250174,27 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "liza"; + CollectionsMarshal.AsSpan(list234)[0] = "liza"; questRoot30.Author = list234; - index = 5; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference172 = ref span235[num]; + num = 5; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span74 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference172 = ref span74[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj164.Steps = list236; reference172 = obj164; - num++; - ref QuestSequence reference173 = ref span235[num]; + ref QuestSequence reference173 = ref span74[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -303221,32 +250202,26 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span75 = CollectionsMarshal.AsSpan(list237); + span75[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - index2++; - span237[index2] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); + span75[1] = new QuestStep(EInteractionType.Interact, 1030112u, new Vector3(101.548706f, -2.330609E-14f, 93.217285f), 857); obj165.Steps = list237; reference173 = obj165; - num++; - ref QuestSequence reference174 = ref span235[num]; + ref QuestSequence reference174 = ref span74[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj166.Steps = list238; reference174 = obj166; - num++; - ref QuestSequence reference175 = ref span235[num]; + ref QuestSequence reference175 = ref span74[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -303254,9 +250229,7 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -303265,18 +250238,15 @@ public static class AssemblyQuestLoader }; obj167.Steps = list239; reference175 = obj167; - num++; - ref QuestSequence reference176 = ref span235[num]; + ref QuestSequence reference176 = ref span74[4]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3791) }; @@ -303289,16 +250259,13 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "liza"; + CollectionsMarshal.AsSpan(list241)[0] = "liza"; questRoot31.Author = list241; - index = 3; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference177 = ref span242[num]; + num = 3; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span76 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference177 = ref span76[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -303306,26 +250273,21 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032611u, new Vector3(103.65454f, -2.7643511E-14f, 94.56018f), 857) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032611u, new Vector3(103.65454f, -2.7643511E-14f, 94.56018f), 857) { StopDistance = 5f }; obj169.Steps = list243; reference177 = obj169; - num++; - ref QuestSequence reference178 = ref span242[num]; + ref QuestSequence reference178 = ref span76[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list244 = new List(num2); + CollectionsMarshal.SetCount(list244, num2); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -303334,8 +250296,7 @@ public static class AssemblyQuestLoader }; obj170.Steps = list244; reference178 = obj170; - num++; - ref QuestSequence reference179 = ref span242[num]; + ref QuestSequence reference179 = ref span76[2]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -303343,9 +250304,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857) { StopDistance = 5f, NextQuestId = new QuestId(3792) @@ -303359,33 +250318,27 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - Span span246 = CollectionsMarshal.AsSpan(list246); - index = 0; - span246[index] = "liza"; + CollectionsMarshal.AsSpan(list246)[0] = "liza"; questRoot32.Author = list246; - index = 3; - List list247 = new List(index); - CollectionsMarshal.SetCount(list247, index); - Span span247 = CollectionsMarshal.AsSpan(list247); - num = 0; - ref QuestSequence reference180 = ref span247[num]; + num = 3; + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + Span span77 = CollectionsMarshal.AsSpan(list247); + ref QuestSequence reference180 = ref span77[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj172.Steps = list248; reference180 = obj172; - num++; - ref QuestSequence reference181 = ref span247[num]; + ref QuestSequence reference181 = ref span77[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -303393,29 +250346,24 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1030091u, new Vector3(380.97205f, -64.31066f, 511.2229f), 815); obj173.Steps = list249; reference181 = obj173; - num++; - ref QuestSequence reference182 = ref span247[num]; + ref QuestSequence reference182 = ref span77[2]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - num2++; - span250[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f, NextQuestId = new QuestId(3793) @@ -303429,16 +250377,13 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - Span span251 = CollectionsMarshal.AsSpan(list251); - index = 0; - span251[index] = "liza"; + CollectionsMarshal.AsSpan(list251)[0] = "liza"; questRoot33.Author = list251; - index = 3; - List list252 = new List(index); - CollectionsMarshal.SetCount(list252, index); - Span span252 = CollectionsMarshal.AsSpan(list252); - num = 0; - ref QuestSequence reference183 = ref span252[num]; + num = 3; + List list252 = new List(num); + CollectionsMarshal.SetCount(list252, num); + Span span79 = CollectionsMarshal.AsSpan(list252); + ref QuestSequence reference183 = ref span79[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -303446,26 +250391,21 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f }; obj175.Steps = list253; reference183 = obj175; - num++; - ref QuestSequence reference184 = ref span252[num]; + ref QuestSequence reference184 = ref span79[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -303476,8 +250416,7 @@ public static class AssemblyQuestLoader }; obj176.Steps = list254; reference184 = obj176; - num++; - ref QuestSequence reference185 = ref span252[num]; + ref QuestSequence reference185 = ref span79[2]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -303485,15 +250424,13 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) + Span span80 = CollectionsMarshal.AsSpan(list255); + span80[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(268.15204f, 7.1558266f, -237.94643f), 815) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - index2++; - span255[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f, NextQuestId = new QuestId(3975) @@ -303507,30 +250444,24 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - Span span256 = CollectionsMarshal.AsSpan(list256); - index = 0; - span256[index] = "liza"; + CollectionsMarshal.AsSpan(list256)[0] = "liza"; questRoot34.Author = list256; - index = 6; - List list257 = new List(index); - CollectionsMarshal.SetCount(list257, index); - Span span257 = CollectionsMarshal.AsSpan(list257); - num = 0; - ref QuestSequence reference186 = ref span257[num]; + num = 6; + List list257 = new List(num); + CollectionsMarshal.SetCount(list257, num); + Span span81 = CollectionsMarshal.AsSpan(list257); + ref QuestSequence reference186 = ref span81[0]; QuestSequence obj178 = 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, 1032720u, new Vector3(-22.90387f, -25.207546f, 310.6278f), 817); + 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); obj178.Steps = list258; reference186 = obj178; - num++; - ref QuestSequence reference187 = ref span257[num]; + ref QuestSequence reference187 = ref span81[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -303538,34 +250469,28 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Interact, 1032721u, new Vector3(463.79797f, 6.95506f, -199.02344f), 817) + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1032721u, new Vector3(463.79797f, 6.95506f, -199.02344f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj179.Steps = list259; reference187 = obj179; - num++; - ref QuestSequence reference188 = ref span257[num]; + ref QuestSequence reference188 = ref span81[2]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj180.Steps = list260; reference188 = obj180; - num++; - ref QuestSequence reference189 = ref span257[num]; + ref QuestSequence reference189 = ref span81[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -303573,33 +250498,26 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) { Fly = true }; obj181.Steps = list261; reference189 = obj181; - num++; - ref QuestSequence reference190 = ref span257[num]; + ref QuestSequence reference190 = ref span81[4]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list262 = new List(index2); - CollectionsMarshal.SetCount(list262, index2); - Span span262 = CollectionsMarshal.AsSpan(list262); - num2 = 0; - ref QuestStep reference191 = ref span262[num2]; + num2 = 1; + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + ref QuestStep reference191 = ref CollectionsMarshal.AsSpan(list262)[0]; 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); - Span span263 = CollectionsMarshal.AsSpan(list263); - index3 = 0; - span263[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANQIQ001_03794_Q3_000_000"), @@ -303609,8 +250527,7 @@ public static class AssemblyQuestLoader reference191 = questStep9; obj182.Steps = list262; reference190 = obj182; - num++; - ref QuestSequence reference192 = ref span257[num]; + ref QuestSequence reference192 = ref span81[5]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -303618,24 +250535,20 @@ public static class AssemblyQuestLoader num2 = 2; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - ref QuestStep reference193 = ref span264[index2]; + Span span82 = CollectionsMarshal.AsSpan(list264); + ref QuestStep reference193 = ref span82[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 817); - index3 = 1; - List list265 = new List(index3); - CollectionsMarshal.SetCount(list265, index3); - Span span265 = CollectionsMarshal.AsSpan(list265); - num3 = 0; - span265[num3] = new GatheredItem + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem { ItemId = 29512u, ItemCount = 1 }; questStep10.ItemsToGather = list265; reference193 = questStep10; - index2++; - span264[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) + span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1032724u, new Vector3(796.7803f, -45.83978f, -194.01855f), 817) { Fly = true }; @@ -303648,30 +250561,24 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list266)[0] = "plogon_enjoyer"; questRoot35.Author = list266; - index = 4; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference194 = ref span267[num]; + num = 4; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span83 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference194 = ref span83[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj184.Steps = list268; reference194 = obj184; - num++; - ref QuestSequence reference195 = ref span267[num]; + ref QuestSequence reference195 = ref span83[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -303679,79 +250586,64 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Interact, 1032731u, new Vector3(-28.732727f, -24.68478f, 318.28796f), 817) + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1032731u, new Vector3(-28.732727f, -24.68478f, 318.28796f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj185.Steps = list269; reference195 = obj185; - num++; - ref QuestSequence reference196 = ref span267[num]; + ref QuestSequence reference196 = ref span83[2]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list270 = new List(index2); - CollectionsMarshal.SetCount(list270, index2); - Span span270 = CollectionsMarshal.AsSpan(list270); - num2 = 0; - ref QuestStep reference197 = ref span270[num2]; + num2 = 3; + List list270 = new List(num2); + CollectionsMarshal.SetCount(list270, num2); + Span span84 = CollectionsMarshal.AsSpan(list270); + ref QuestStep reference197 = ref span84[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list271 = new List(num3); CollectionsMarshal.SetCount(list271, num3); - Span span271 = CollectionsMarshal.AsSpan(list271); - index3 = 0; - span271[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list271)[0] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list271; - index3 = 1; - List list272 = new List(index3); - CollectionsMarshal.SetCount(list272, index3); - Span span272 = CollectionsMarshal.AsSpan(list272); - num3 = 0; - span272[num3] = new GatheredItem + num3 = 1; + List list272 = new List(num3); + CollectionsMarshal.SetCount(list272, num3); + CollectionsMarshal.AsSpan(list272)[0] = new GatheredItem { ItemId = 29513u, ItemCount = 1 }; questStep11.ItemsToGather = list272; reference197 = questStep11; - num2++; - ref QuestStep reference198 = ref span270[num2]; + ref QuestStep reference198 = ref span84[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - Span span273 = CollectionsMarshal.AsSpan(list273); - index3 = 0; - span273[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list273)[0] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list273; - index3 = 1; - List list274 = new List(index3); - CollectionsMarshal.SetCount(list274, index3); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - span274[num3] = new GatheredItem + num3 = 1; + List list274 = new List(num3); + CollectionsMarshal.SetCount(list274, num3); + CollectionsMarshal.AsSpan(list274)[0] = new GatheredItem { ItemId = 29539u, ItemCount = 1 }; questStep12.ItemsToGather = list274; reference198 = questStep12; - num2++; - span270[num2] = new QuestStep(EInteractionType.Interact, 1032734u, new Vector3(802.6703f, -45.915627f, -214.70972f), 817) + span84[2] = new QuestStep(EInteractionType.Interact, 1032734u, new Vector3(802.6703f, -45.915627f, -214.70972f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj186.Steps = list270; reference196 = obj186; - num++; - ref QuestSequence reference199 = ref span267[num]; + ref QuestSequence reference199 = ref span83[3]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -303759,9 +250651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj187.Steps = list275; reference199 = obj187; questRoot35.QuestSequence = list267; @@ -303771,30 +250661,24 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list276)[0] = "plogon_enjoyer"; questRoot36.Author = list276; - index = 5; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference200 = ref span277[num]; + num = 5; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span85 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference200 = ref span85[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj188.Steps = list278; reference200 = obj188; - num++; - ref QuestSequence reference201 = ref span277[num]; + ref QuestSequence reference201 = ref span85[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -303802,31 +250686,25 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj189.Steps = list279; reference201 = obj189; - num++; - ref QuestSequence reference202 = ref span277[num]; + ref QuestSequence reference202 = ref span85[2]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj190.Steps = list280; reference202 = obj190; - num++; - ref QuestSequence reference203 = ref span277[num]; + ref QuestSequence reference203 = ref span85[3]; QuestSequence obj191 = new QuestSequence { Sequence = 3 @@ -303834,70 +250712,56 @@ public static class AssemblyQuestLoader num2 = 3; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - ref QuestStep reference204 = ref span281[index2]; + Span span86 = CollectionsMarshal.AsSpan(list281); + ref QuestStep reference204 = ref span86[0]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - Span span282 = CollectionsMarshal.AsSpan(list282); - index3 = 0; - span282[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; questStep13.RequiredQuestAcceptedJob = list282; - index3 = 1; - List list283 = new List(index3); - CollectionsMarshal.SetCount(list283, index3); - Span span283 = CollectionsMarshal.AsSpan(list283); - num3 = 0; - span283[num3] = new GatheredItem + num3 = 1; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem { ItemId = 29514u, ItemCount = 1 }; questStep13.ItemsToGather = list283; reference204 = questStep13; - index2++; - ref QuestStep reference205 = ref span281[index2]; + ref QuestStep reference205 = ref span86[1]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list284 = new List(num3); CollectionsMarshal.SetCount(list284, num3); - Span span284 = CollectionsMarshal.AsSpan(list284); - index3 = 0; - span284[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; questStep14.RequiredQuestAcceptedJob = list284; - index3 = 1; - List list285 = new List(index3); - CollectionsMarshal.SetCount(list285, index3); - Span span285 = CollectionsMarshal.AsSpan(list285); - num3 = 0; - span285[num3] = new GatheredItem + num3 = 1; + List list285 = new List(num3); + CollectionsMarshal.SetCount(list285, num3); + CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem { ItemId = 29540u, ItemCount = 1 }; questStep14.ItemsToGather = list285; reference205 = questStep14; - index2++; - span281[index2] = new QuestStep(EInteractionType.Interact, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) + span86[2] = new QuestStep(EInteractionType.Interact, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) { Fly = true }; obj191.Steps = list281; reference203 = obj191; - num++; - ref QuestSequence reference206 = ref span277[num]; + ref QuestSequence reference206 = ref span85[4]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj192.Steps = list286; reference206 = obj192; questRoot36.QuestSequence = list277; @@ -303907,16 +250771,13 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - Span span287 = CollectionsMarshal.AsSpan(list287); - index = 0; - span287[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list287)[0] = "plogon_enjoyer"; questRoot37.Author = list287; - index = 4; - List list288 = new List(index); - CollectionsMarshal.SetCount(list288, index); - Span span288 = CollectionsMarshal.AsSpan(list288); - num = 0; - ref QuestSequence reference207 = ref span288[num]; + num = 4; + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + Span span87 = CollectionsMarshal.AsSpan(list288); + ref QuestSequence reference207 = ref span87[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -303924,27 +250785,21 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj193.Steps = list289; reference207 = obj193; - num++; - ref QuestSequence reference208 = ref span288[num]; + ref QuestSequence reference208 = ref span87[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj194.Steps = list290; reference208 = obj194; - num++; - ref QuestSequence reference209 = ref span288[num]; + ref QuestSequence reference209 = ref span87[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -303952,71 +250807,57 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - ref QuestStep reference210 = ref span291[index2]; + Span span88 = CollectionsMarshal.AsSpan(list291); + ref QuestStep reference210 = ref span88[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span292 = CollectionsMarshal.AsSpan(list292); - index3 = 0; - span292[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list292)[0] = EExtendedClassJob.Miner; questStep15.RequiredQuestAcceptedJob = list292; - index3 = 1; - List list293 = new List(index3); - CollectionsMarshal.SetCount(list293, index3); - Span span293 = CollectionsMarshal.AsSpan(list293); - num3 = 0; - span293[num3] = new GatheredItem + num3 = 1; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + CollectionsMarshal.AsSpan(list293)[0] = new GatheredItem { ItemId = 29515u, ItemCount = 3 }; questStep15.ItemsToGather = list293; reference210 = questStep15; - index2++; - ref QuestStep reference211 = ref span291[index2]; + ref QuestStep reference211 = ref span88[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span294 = CollectionsMarshal.AsSpan(list294); - index3 = 0; - span294[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list294)[0] = EExtendedClassJob.Botanist; questStep16.RequiredQuestAcceptedJob = list294; - index3 = 1; - List list295 = new List(index3); - CollectionsMarshal.SetCount(list295, index3); - Span span295 = CollectionsMarshal.AsSpan(list295); - num3 = 0; - span295[num3] = new GatheredItem + num3 = 1; + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + CollectionsMarshal.AsSpan(list295)[0] = new GatheredItem { ItemId = 29541u, ItemCount = 3 }; questStep16.ItemsToGather = list295; reference211 = questStep16; - index2++; - span291[index2] = new QuestStep(EInteractionType.Interact, 1032862u, new Vector3(777.06555f, -45.76794f, -209.21649f), 817) + span88[2] = new QuestStep(EInteractionType.Interact, 1032862u, new Vector3(777.06555f, -45.76794f, -209.21649f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj195.Steps = list291; reference209 = obj195; - num++; - ref QuestSequence reference212 = ref span288[num]; + ref QuestSequence reference212 = ref span87[3]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj196.Steps = list296; reference212 = obj196; questRoot37.QuestSequence = list288; @@ -304026,16 +250867,13 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span297 = CollectionsMarshal.AsSpan(list297); - index = 0; - span297[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list297)[0] = "plogon_enjoyer"; questRoot38.Author = list297; - index = 7; - List list298 = new List(index); - CollectionsMarshal.SetCount(list298, index); - Span span298 = CollectionsMarshal.AsSpan(list298); - num = 0; - ref QuestSequence reference213 = ref span298[num]; + num = 7; + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + Span span89 = CollectionsMarshal.AsSpan(list298); + ref QuestSequence reference213 = ref span89[0]; QuestSequence obj197 = new QuestSequence { Sequence = 0 @@ -304043,27 +250881,21 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032735u, new Vector3(803.7993f, -45.924515f, -217.94464f), 817); obj197.Steps = list299; reference213 = obj197; - num++; - ref QuestSequence reference214 = ref span298[num]; + ref QuestSequence reference214 = ref span89[1]; QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj198.Steps = list300; reference214 = obj198; - num++; - ref QuestSequence reference215 = ref span298[num]; + ref QuestSequence reference215 = ref span89[2]; QuestSequence obj199 = new QuestSequence { Sequence = 2 @@ -304071,33 +250903,27 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true }; obj199.Steps = list301; reference215 = obj199; - num++; - ref QuestSequence reference216 = ref span298[num]; + ref QuestSequence reference216 = ref span89[3]; QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj200.Steps = list302; reference216 = obj200; - num++; - ref QuestSequence reference217 = ref span298[num]; + ref QuestSequence reference217 = ref span89[4]; QuestSequence obj201 = new QuestSequence { Sequence = 4 @@ -304105,75 +250931,60 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817); + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817); obj201.Steps = list303; reference217 = obj201; - num++; - ref QuestSequence reference218 = ref span298[num]; + ref QuestSequence reference218 = ref span89[5]; QuestSequence obj202 = new QuestSequence { Sequence = 5 }; - index2 = 3; - List list304 = new List(index2); - CollectionsMarshal.SetCount(list304, index2); - Span span304 = CollectionsMarshal.AsSpan(list304); - num2 = 0; - ref QuestStep reference219 = ref span304[num2]; + num2 = 3; + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + Span span90 = CollectionsMarshal.AsSpan(list304); + ref QuestStep reference219 = ref span90[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - Span span305 = CollectionsMarshal.AsSpan(list305); - index3 = 0; - span305[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list305)[0] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list305; - index3 = 1; - List list306 = new List(index3); - CollectionsMarshal.SetCount(list306, index3); - Span span306 = CollectionsMarshal.AsSpan(list306); - num3 = 0; - span306[num3] = new GatheredItem + num3 = 1; + List list306 = new List(num3); + CollectionsMarshal.SetCount(list306, num3); + CollectionsMarshal.AsSpan(list306)[0] = new GatheredItem { ItemId = 29516u, ItemCount = 3 }; questStep17.ItemsToGather = list306; reference219 = questStep17; - num2++; - ref QuestStep reference220 = ref span304[num2]; + ref QuestStep reference220 = ref span90[1]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - Span span307 = CollectionsMarshal.AsSpan(list307); - index3 = 0; - span307[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list307)[0] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list307; - index3 = 1; - List list308 = new List(index3); - CollectionsMarshal.SetCount(list308, index3); - Span span308 = CollectionsMarshal.AsSpan(list308); - num3 = 0; - span308[num3] = new GatheredItem + num3 = 1; + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + CollectionsMarshal.AsSpan(list308)[0] = new GatheredItem { ItemId = 29542u, ItemCount = 3 }; questStep18.ItemsToGather = list308; reference220 = questStep18; - num2++; - span304[num2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) + span90[2] = new QuestStep(EInteractionType.Interact, 1032967u, new Vector3(774.8989f, -45.74954f, -205.52374f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj202.Steps = list304; reference218 = obj202; - num++; - ref QuestSequence reference221 = ref span298[num]; + ref QuestSequence reference221 = ref span89[6]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -304181,9 +250992,7 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj203.Steps = list309; reference221 = obj203; questRoot38.QuestSequence = list298; @@ -304193,30 +251002,24 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list310)[0] = "plogon_enjoyer"; questRoot39.Author = list310; - index = 6; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference222 = ref span311[num]; + num = 6; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span91 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference222 = ref span91[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj204.Steps = list312; reference222 = obj204; - num++; - ref QuestSequence reference223 = ref span311[num]; + ref QuestSequence reference223 = ref span91[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -304224,35 +251027,29 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) + CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1027716u, new Vector3(494.9873f, -6.555339f, -224.93329f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj205.Steps = list313; reference223 = obj205; - num++; - ref QuestSequence reference224 = ref span311[num]; + ref QuestSequence reference224 = ref span91[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj206.Steps = list314; reference224 = obj206; - num++; - ref QuestSequence reference225 = ref span311[num]; + ref QuestSequence reference225 = ref span91[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -304260,30 +251057,24 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817) + CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1032750u, new Vector3(-523.827f, 0.143766f, 227.55774f), 817) { Fly = true }; obj207.Steps = list315; reference225 = obj207; - num++; - ref QuestSequence reference226 = ref span311[num]; + ref QuestSequence reference226 = ref span91[4]; QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj208.Steps = list316; reference226 = obj208; - num++; - ref QuestSequence reference227 = ref span311[num]; + ref QuestSequence reference227 = ref span91[5]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -304291,9 +251082,7 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) + CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -304311,16 +251100,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list)[0] = "plogon_enjoyer"; questRoot.Author = list; - index = 2; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 2; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -304328,23 +251114,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; questRoot.QuestSequence = list2; @@ -304354,16 +251135,13 @@ public static class AssemblyQuestLoader num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - index = 0; - span5[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list5)[0] = "plogon_enjoyer"; questRoot2.Author = list5; - index = 2; - List list6 = new List(index); - CollectionsMarshal.SetCount(list6, index); - Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - ref QuestSequence reference3 = ref span6[num]; + num = 2; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + Span span2 = CollectionsMarshal.AsSpan(list6); + ref QuestSequence reference3 = ref span2[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -304371,23 +251149,18 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj3.Steps = list7; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span6[num]; + ref QuestSequence reference4 = ref span2[1]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj4.Steps = list8; reference4 = obj4; questRoot2.QuestSequence = list6; @@ -304397,16 +251170,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list9)[0] = "plogon_enjoyer"; questRoot3.Author = list9; - index = 2; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference5 = ref span10[num]; + num = 2; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -304414,23 +251184,18 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj5.Steps = list11; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span10[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj6.Steps = list12; reference6 = obj6; questRoot3.QuestSequence = list10; @@ -304440,16 +251205,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list13)[0] = "plogon_enjoyer"; questRoot4.Author = list13; - index = 2; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference7 = ref span14[num]; + num = 2; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span4 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference7 = ref span4[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -304457,23 +251219,18 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj7.Steps = list15; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span14[num]; + ref QuestSequence reference8 = ref span4[1]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj8.Steps = list16; reference8 = obj8; questRoot4.QuestSequence = list14; @@ -304483,16 +251240,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list17)[0] = "plogon_enjoyer"; questRoot5.Author = list17; - index = 2; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference9 = ref span18[num]; + num = 2; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span5 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference9 = ref span5[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -304500,23 +251254,18 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032660u, new Vector3(804.4098f, -45.9255f, -216.41876f), 817); obj9.Steps = list19; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span18[num]; + ref QuestSequence reference10 = ref span5[1]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj10.Steps = list20; reference10 = obj10; questRoot5.QuestSequence = list18; @@ -304526,16 +251275,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list21)[0] = "plogon_enjoyer"; questRoot6.Author = list21; - index = 2; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference11 = ref span22[num]; + num = 2; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span6 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference11 = ref span6[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -304543,23 +251289,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032659u, new Vector3(802.79236f, -45.91779f, -218.58557f), 817); obj11.Steps = list23; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span22[num]; + ref QuestSequence reference12 = ref span6[1]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj12.Steps = list24; reference12 = obj12; questRoot6.QuestSequence = list22; @@ -304569,16 +251310,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; questRoot7.Author = list25; - index = 2; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference13 = ref span26[num]; + num = 2; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span7 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference13 = ref span7[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -304586,73 +251324,58 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj13.Steps = list27; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span26[num]; + ref QuestSequence reference14 = ref span7[1]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list28 = new List(index2); - CollectionsMarshal.SetCount(list28, index2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num2 = 0; - ref QuestStep reference15 = ref span28[num2]; + num2 = 4; + List list28 = new List(num2); + CollectionsMarshal.SetCount(list28, num2); + Span span8 = CollectionsMarshal.AsSpan(list28); + ref QuestStep reference15 = ref span8[0]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 817); int num3 = 1; List list29 = new List(num3); CollectionsMarshal.SetCount(list29, num3); - Span span29 = CollectionsMarshal.AsSpan(list29); - int index3 = 0; - span29[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list29)[0] = EExtendedClassJob.Miner; questStep.RequiredQuestAcceptedJob = list29; - index3 = 1; - List list30 = new List(index3); - CollectionsMarshal.SetCount(list30, index3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num3 = 0; - span30[num3] = new GatheredItem + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheredItem { ItemId = 29517u, ItemCount = 3 }; questStep.ItemsToGather = list30; reference15 = questStep; - num2++; - ref QuestStep reference16 = ref span28[num2]; + ref QuestStep reference16 = ref span8[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - index3 = 0; - span31[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list31)[0] = EExtendedClassJob.Botanist; questStep2.RequiredQuestAcceptedJob = list31; - index3 = 1; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new GatheredItem + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new GatheredItem { ItemId = 29543u, ItemCount = 3 }; questStep2.ItemsToGather = list32; reference16 = questStep2; - num2++; - span28[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span8[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span28[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span8[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -304665,16 +251388,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot8.Author = list33; - index = 2; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference17 = ref span34[num]; + num = 2; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span9 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference17 = ref span9[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -304682,72 +251402,57 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj15.Steps = list35; reference17 = obj15; - num++; - ref QuestSequence reference18 = ref span34[num]; + ref QuestSequence reference18 = ref span9[1]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference19 = ref span36[num2]; + num2 = 4; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span10 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference19 = ref span10[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span37 = CollectionsMarshal.AsSpan(list37); - index3 = 0; - span37[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list37)[0] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list37; - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new GatheredItem + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new GatheredItem { ItemId = 29518u, ItemCount = 3 }; questStep3.ItemsToGather = list38; reference19 = questStep3; - num2++; - ref QuestStep reference20 = ref span36[num2]; + ref QuestStep reference20 = ref span10[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - Span span39 = CollectionsMarshal.AsSpan(list39); - index3 = 0; - span39[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list39)[0] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list39; - index3 = 1; - List list40 = new List(index3); - CollectionsMarshal.SetCount(list40, index3); - Span span40 = CollectionsMarshal.AsSpan(list40); - num3 = 0; - span40[num3] = new GatheredItem + num3 = 1; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem { ItemId = 29544u, ItemCount = 3 }; questStep4.ItemsToGather = list40; reference20 = questStep4; - num2++; - span36[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span10[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true }; - num2++; - span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span10[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -304760,16 +251465,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot9.Author = list41; - index = 2; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference21 = ref span42[num]; + num = 2; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span11 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference21 = ref span11[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -304777,73 +251479,58 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj17.Steps = list43; reference21 = obj17; - num++; - ref QuestSequence reference22 = ref span42[num]; + ref QuestSequence reference22 = ref span11[1]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list44 = new List(index2); - CollectionsMarshal.SetCount(list44, index2); - Span span44 = CollectionsMarshal.AsSpan(list44); - num2 = 0; - ref QuestStep reference23 = ref span44[num2]; + num2 = 4; + List list44 = new List(num2); + CollectionsMarshal.SetCount(list44, num2); + Span span12 = CollectionsMarshal.AsSpan(list44); + ref QuestStep reference23 = ref span12[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - index3 = 0; - span45[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list45)[0] = EExtendedClassJob.Miner; questStep5.RequiredQuestAcceptedJob = list45; - index3 = 1; - List list46 = new List(index3); - CollectionsMarshal.SetCount(list46, index3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num3 = 0; - span46[num3] = new GatheredItem + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = new GatheredItem { ItemId = 29519u, ItemCount = 3 }; questStep5.ItemsToGather = list46; reference23 = questStep5; - num2++; - ref QuestStep reference24 = ref span44[num2]; + ref QuestStep reference24 = ref span12[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span47 = CollectionsMarshal.AsSpan(list47); - index3 = 0; - span47[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list47)[0] = EExtendedClassJob.Botanist; questStep6.RequiredQuestAcceptedJob = list47; - index3 = 1; - List list48 = new List(index3); - CollectionsMarshal.SetCount(list48, index3); - Span span48 = CollectionsMarshal.AsSpan(list48); - num3 = 0; - span48[num3] = new GatheredItem + num3 = 1; + List list48 = new List(num3); + CollectionsMarshal.SetCount(list48, num3); + CollectionsMarshal.AsSpan(list48)[0] = new GatheredItem { ItemId = 29545u, ItemCount = 3 }; questStep6.ItemsToGather = list48; reference24 = questStep6; - num2++; - span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span12[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span44[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span12[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -304856,16 +251543,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot10.Author = list49; - index = 2; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference25 = ref span50[num]; + num = 2; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span13 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference25 = ref span13[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -304873,73 +251557,58 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj19.Steps = list51; reference25 = obj19; - num++; - ref QuestSequence reference26 = ref span50[num]; + ref QuestSequence reference26 = ref span13[1]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference27 = ref span52[num2]; + num2 = 4; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + Span span14 = CollectionsMarshal.AsSpan(list52); + ref QuestStep reference27 = ref span14[0]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list53)[0] = EExtendedClassJob.Miner; questStep7.RequiredQuestAcceptedJob = list53; - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span54[num3] = new GatheredItem + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new GatheredItem { ItemId = 29520u, ItemCount = 3 }; questStep7.ItemsToGather = list54; reference27 = questStep7; - num2++; - ref QuestStep reference28 = ref span52[num2]; + ref QuestStep reference28 = ref span14[1]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - index3 = 0; - span55[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list55)[0] = EExtendedClassJob.Botanist; questStep8.RequiredQuestAcceptedJob = list55; - index3 = 1; - List list56 = new List(index3); - CollectionsMarshal.SetCount(list56, index3); - Span span56 = CollectionsMarshal.AsSpan(list56); - num3 = 0; - span56[num3] = new GatheredItem + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + CollectionsMarshal.AsSpan(list56)[0] = new GatheredItem { ItemId = 29546u, ItemCount = 3 }; questStep8.ItemsToGather = list56; reference28 = questStep8; - num2++; - span52[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span14[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span52[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span14[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -304952,16 +251621,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot11.Author = list57; - index = 4; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference29 = ref span58[num]; + num = 4; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span15 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference29 = ref span15[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -304969,23 +251635,19 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj21.Steps = list59; reference29 = obj21; - num++; - ref QuestSequence reference30 = ref span58[num]; + ref QuestSequence reference30 = ref span15[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list60 = new List(index2); - CollectionsMarshal.SetCount(list60, index2); - Span span60 = CollectionsMarshal.AsSpan(list60); - num2 = 0; - ref QuestStep reference31 = ref span60[num2]; + num2 = 2; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + Span span16 = CollectionsMarshal.AsSpan(list60); + ref QuestStep reference31 = ref span16[0]; QuestStep obj23 = new QuestStep(EInteractionType.UseItem, 2010995u, new Vector3(-73.99103f, -19.36377f, 298.8479f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough, @@ -304994,49 +251656,35 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); obj23.CompletionQuestVariablesFlags = list61; reference31 = obj23; - num2++; - ref QuestStep reference32 = ref span60[num2]; + ref QuestStep reference32 = ref span16[1]; QuestStep obj24 = new QuestStep(EInteractionType.UseItem, 2010994u, new Vector3(-69.13867f, -19.485779f, 294.14807f), 817) { ItemId = 2002977u }; - 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); + 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); obj24.CompletionQuestVariablesFlags = list62; reference32 = obj24; obj22.Steps = list60; reference30 = obj22; - num++; - ref QuestSequence reference33 = ref span58[num]; + ref QuestSequence reference33 = ref span15[2]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -305044,29 +251692,24 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1027741u, new Vector3(-80.338745f, -19.101032f, 299.82446f), 817); obj25.Steps = list63; reference33 = obj25; - num++; - ref QuestSequence reference34 = ref span58[num]; + ref QuestSequence reference34 = ref span15[3]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span64[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305079,16 +251722,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot12.Author = list65; - index = 2; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference35 = ref span66[num]; + num = 2; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span20 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference35 = ref span20[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -305096,73 +251736,58 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj27.Steps = list67; reference35 = obj27; - num++; - ref QuestSequence reference36 = ref span66[num]; + ref QuestSequence reference36 = ref span20[1]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list68 = new List(index2); - CollectionsMarshal.SetCount(list68, index2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref QuestStep reference37 = ref span68[num2]; + num2 = 4; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + Span span21 = CollectionsMarshal.AsSpan(list68); + ref QuestStep reference37 = ref span21[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span69 = CollectionsMarshal.AsSpan(list69); - index3 = 0; - span69[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list69)[0] = EExtendedClassJob.Miner; questStep9.RequiredQuestAcceptedJob = list69; - index3 = 1; - List list70 = new List(index3); - CollectionsMarshal.SetCount(list70, index3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num3 = 0; - span70[num3] = new GatheredItem + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem { ItemId = 29521u, ItemCount = 3 }; questStep9.ItemsToGather = list70; reference37 = questStep9; - num2++; - ref QuestStep reference38 = ref span68[num2]; + ref QuestStep reference38 = ref span21[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - index3 = 0; - span71[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list71)[0] = EExtendedClassJob.Botanist; questStep10.RequiredQuestAcceptedJob = list71; - index3 = 1; - List list72 = new List(index3); - CollectionsMarshal.SetCount(list72, index3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = new GatheredItem + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = new GatheredItem { ItemId = 29547u, ItemCount = 3 }; questStep10.ItemsToGather = list72; reference38 = questStep10; - num2++; - span68[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span21[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305175,16 +251800,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; questRoot13.Author = list73; - index = 2; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference39 = ref span74[num]; + num = 2; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span22 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference39 = ref span22[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -305192,73 +251814,58 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj29.Steps = list75; reference39 = obj29; - num++; - ref QuestSequence reference40 = ref span74[num]; + ref QuestSequence reference40 = ref span22[1]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference41 = ref span76[num2]; + num2 = 4; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span23 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference41 = ref span23[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span77 = CollectionsMarshal.AsSpan(list77); - index3 = 0; - span77[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list77)[0] = EExtendedClassJob.Miner; questStep11.RequiredQuestAcceptedJob = list77; - index3 = 1; - List list78 = new List(index3); - CollectionsMarshal.SetCount(list78, index3); - Span span78 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - span78[num3] = new GatheredItem + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = new GatheredItem { ItemId = 29522u, ItemCount = 3 }; questStep11.ItemsToGather = list78; reference41 = questStep11; - num2++; - ref QuestStep reference42 = ref span76[num2]; + ref QuestStep reference42 = ref span23[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - index3 = 0; - span79[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list79)[0] = EExtendedClassJob.Botanist; questStep12.RequiredQuestAcceptedJob = list79; - index3 = 1; - List list80 = new List(index3); - CollectionsMarshal.SetCount(list80, index3); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - span80[num3] = new GatheredItem + num3 = 1; + List list80 = new List(num3); + CollectionsMarshal.SetCount(list80, num3); + CollectionsMarshal.AsSpan(list80)[0] = new GatheredItem { ItemId = 29548u, ItemCount = 3 }; questStep12.ItemsToGather = list80; reference42 = questStep12; - num2++; - span76[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span23[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span76[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span23[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305271,16 +251878,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list81)[0] = "plogon_enjoyer"; questRoot14.Author = list81; - index = 3; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference43 = ref span82[num]; + num = 3; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span24 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference43 = ref span24[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -305288,41 +251892,34 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj31.Steps = list83; reference43 = obj31; - num++; - ref QuestSequence reference44 = ref span82[num]; + ref QuestSequence reference44 = ref span24[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span84[num2] = new QuestStep(EInteractionType.Interact, 1027715u, new Vector3(411.21533f, 33.637783f, -128.5268f), 817) + span25[1] = new QuestStep(EInteractionType.Interact, 1027715u, new Vector3(411.21533f, 33.637783f, -128.5268f), 817) { Fly = true }; - num2++; - span84[num2] = new QuestStep(EInteractionType.Interact, 1027713u, new Vector3(446.70776f, 34.051743f, -117.17407f), 817) + span25[2] = new QuestStep(EInteractionType.Interact, 1027713u, new Vector3(446.70776f, 34.051743f, -117.17407f), 817) { Fly = true }; obj32.Steps = list84; reference44 = obj32; - num++; - ref QuestSequence reference45 = ref span82[num]; + ref QuestSequence reference45 = ref span24[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -305330,14 +251927,12 @@ public static class AssemblyQuestLoader num2 = 2; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + Span span26 = CollectionsMarshal.AsSpan(list85); + span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true }; - index2++; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span26[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305350,30 +251945,24 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list86)[0] = "plogon_enjoyer"; questRoot15.Author = list86; - index = 2; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference46 = ref span87[num]; + num = 2; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span27 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference46 = ref span27[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list88; reference46 = obj34; - num++; - ref QuestSequence reference47 = ref span87[num]; + ref QuestSequence reference47 = ref span27[1]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -305381,59 +251970,47 @@ public static class AssemblyQuestLoader num2 = 4; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref QuestStep reference48 = ref span89[index2]; + Span span28 = CollectionsMarshal.AsSpan(list89); + ref QuestStep reference48 = ref span28[0]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span90 = CollectionsMarshal.AsSpan(list90); - index3 = 0; - span90[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list90)[0] = EExtendedClassJob.Miner; questStep13.RequiredQuestAcceptedJob = list90; - index3 = 1; - List list91 = new List(index3); - CollectionsMarshal.SetCount(list91, index3); - Span span91 = CollectionsMarshal.AsSpan(list91); - num3 = 0; - span91[num3] = new GatheredItem + num3 = 1; + List list91 = new List(num3); + CollectionsMarshal.SetCount(list91, num3); + CollectionsMarshal.AsSpan(list91)[0] = new GatheredItem { ItemId = 29523u, ItemCount = 3 }; questStep13.ItemsToGather = list91; reference48 = questStep13; - index2++; - ref QuestStep reference49 = ref span89[index2]; + ref QuestStep reference49 = ref span28[1]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list92 = new List(num3); CollectionsMarshal.SetCount(list92, num3); - Span span92 = CollectionsMarshal.AsSpan(list92); - index3 = 0; - span92[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list92)[0] = EExtendedClassJob.Botanist; questStep14.RequiredQuestAcceptedJob = list92; - index3 = 1; - List list93 = new List(index3); - CollectionsMarshal.SetCount(list93, index3); - Span span93 = CollectionsMarshal.AsSpan(list93); - num3 = 0; - span93[num3] = new GatheredItem + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new GatheredItem { ItemId = 29549u, ItemCount = 3 }; questStep14.ItemsToGather = list93; reference49 = questStep14; - index2++; - span89[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span28[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305446,30 +252023,24 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list94)[0] = "plogon_enjoyer"; questRoot16.Author = list94; - index = 2; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference50 = ref span95[num]; + num = 2; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span29 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference50 = ref span29[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj36.Steps = list96; reference50 = obj36; - num++; - ref QuestSequence reference51 = ref span95[num]; + ref QuestSequence reference51 = ref span29[1]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -305477,59 +252048,47 @@ public static class AssemblyQuestLoader num2 = 4; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - ref QuestStep reference52 = ref span97[index2]; + Span span30 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference52 = ref span30[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span98 = CollectionsMarshal.AsSpan(list98); - index3 = 0; - span98[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list98)[0] = EExtendedClassJob.Miner; questStep15.RequiredQuestAcceptedJob = list98; - index3 = 1; - List list99 = new List(index3); - CollectionsMarshal.SetCount(list99, index3); - Span span99 = CollectionsMarshal.AsSpan(list99); - num3 = 0; - span99[num3] = new GatheredItem + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + CollectionsMarshal.AsSpan(list99)[0] = new GatheredItem { ItemId = 29524u, ItemCount = 3 }; questStep15.ItemsToGather = list99; reference52 = questStep15; - index2++; - ref QuestStep reference53 = ref span97[index2]; + ref QuestStep reference53 = ref span30[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list100 = new List(num3); CollectionsMarshal.SetCount(list100, num3); - Span span100 = CollectionsMarshal.AsSpan(list100); - index3 = 0; - span100[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list100)[0] = EExtendedClassJob.Botanist; questStep16.RequiredQuestAcceptedJob = list100; - index3 = 1; - List list101 = new List(index3); - CollectionsMarshal.SetCount(list101, index3); - Span span101 = CollectionsMarshal.AsSpan(list101); - num3 = 0; - span101[num3] = new GatheredItem + num3 = 1; + List list101 = new List(num3); + CollectionsMarshal.SetCount(list101, num3); + CollectionsMarshal.AsSpan(list101)[0] = new GatheredItem { ItemId = 29550u, ItemCount = 3 }; questStep16.ItemsToGather = list101; reference53 = questStep16; - index2++; - span97[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span30[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span30[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305542,30 +252101,24 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list102)[0] = "plogon_enjoyer"; questRoot17.Author = list102; - index = 2; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference54 = ref span103[num]; + num = 2; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span31 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference54 = ref span31[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list104; reference54 = obj38; - num++; - ref QuestSequence reference55 = ref span103[num]; + ref QuestSequence reference55 = ref span31[1]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -305573,59 +252126,47 @@ public static class AssemblyQuestLoader num2 = 4; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - ref QuestStep reference56 = ref span105[index2]; + Span span32 = CollectionsMarshal.AsSpan(list105); + ref QuestStep reference56 = ref span32[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span106 = CollectionsMarshal.AsSpan(list106); - index3 = 0; - span106[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list106)[0] = EExtendedClassJob.Miner; questStep17.RequiredQuestAcceptedJob = list106; - index3 = 1; - List list107 = new List(index3); - CollectionsMarshal.SetCount(list107, index3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new GatheredItem + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = new GatheredItem { ItemId = 29525u, ItemCount = 3 }; questStep17.ItemsToGather = list107; reference56 = questStep17; - index2++; - ref QuestStep reference57 = ref span105[index2]; + ref QuestStep reference57 = ref span32[1]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - index3 = 0; - span108[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list108)[0] = EExtendedClassJob.Botanist; questStep18.RequiredQuestAcceptedJob = list108; - index3 = 1; - List list109 = new List(index3); - CollectionsMarshal.SetCount(list109, index3); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - span109[num3] = new GatheredItem + num3 = 1; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + CollectionsMarshal.AsSpan(list109)[0] = new GatheredItem { ItemId = 29551u, ItemCount = 3 }; questStep18.ItemsToGather = list109; reference57 = questStep18; - index2++; - span105[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span32[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305638,30 +252179,24 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list110)[0] = "plogon_enjoyer"; questRoot18.Author = list110; - index = 2; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference58 = ref span111[num]; + num = 2; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span33 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference58 = ref span33[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj40.Steps = list112; reference58 = obj40; - num++; - ref QuestSequence reference59 = ref span111[num]; + ref QuestSequence reference59 = ref span33[1]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -305669,59 +252204,47 @@ public static class AssemblyQuestLoader num2 = 4; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - ref QuestStep reference60 = ref span113[index2]; + Span span34 = CollectionsMarshal.AsSpan(list113); + ref QuestStep reference60 = ref span34[0]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span114 = CollectionsMarshal.AsSpan(list114); - index3 = 0; - span114[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list114)[0] = EExtendedClassJob.Miner; questStep19.RequiredQuestAcceptedJob = list114; - index3 = 1; - List list115 = new List(index3); - CollectionsMarshal.SetCount(list115, index3); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - span115[num3] = new GatheredItem + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = new GatheredItem { ItemId = 29526u, ItemCount = 3 }; questStep19.ItemsToGather = list115; reference60 = questStep19; - index2++; - ref QuestStep reference61 = ref span113[index2]; + ref QuestStep reference61 = ref span34[1]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span116 = CollectionsMarshal.AsSpan(list116); - index3 = 0; - span116[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list116)[0] = EExtendedClassJob.Botanist; questStep20.RequiredQuestAcceptedJob = list116; - index3 = 1; - List list117 = new List(index3); - CollectionsMarshal.SetCount(list117, index3); - Span span117 = CollectionsMarshal.AsSpan(list117); - num3 = 0; - span117[num3] = new GatheredItem + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = new GatheredItem { ItemId = 29552u, ItemCount = 3 }; questStep20.ItemsToGather = list117; reference61 = questStep20; - index2++; - span113[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span34[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305734,30 +252257,24 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list118)[0] = "plogon_enjoyer"; questRoot19.Author = list118; - index = 2; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference62 = ref span119[num]; + num = 2; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span35 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference62 = ref span35[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj42.Steps = list120; reference62 = obj42; - num++; - ref QuestSequence reference63 = ref span119[num]; + ref QuestSequence reference63 = ref span35[1]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -305765,59 +252282,47 @@ public static class AssemblyQuestLoader num2 = 4; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - ref QuestStep reference64 = ref span121[index2]; + Span span36 = CollectionsMarshal.AsSpan(list121); + ref QuestStep reference64 = ref span36[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span122 = CollectionsMarshal.AsSpan(list122); - index3 = 0; - span122[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list122)[0] = EExtendedClassJob.Miner; questStep21.RequiredQuestAcceptedJob = list122; - index3 = 1; - List list123 = new List(index3); - CollectionsMarshal.SetCount(list123, index3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = new GatheredItem + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = new GatheredItem { ItemId = 29527u, ItemCount = 3 }; questStep21.ItemsToGather = list123; reference64 = questStep21; - index2++; - ref QuestStep reference65 = ref span121[index2]; + ref QuestStep reference65 = ref span36[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span124 = CollectionsMarshal.AsSpan(list124); - index3 = 0; - span124[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list124)[0] = EExtendedClassJob.Botanist; questStep22.RequiredQuestAcceptedJob = list124; - index3 = 1; - List list125 = new List(index3); - CollectionsMarshal.SetCount(list125, index3); - Span span125 = CollectionsMarshal.AsSpan(list125); - num3 = 0; - span125[num3] = new GatheredItem + num3 = 1; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + CollectionsMarshal.AsSpan(list125)[0] = new GatheredItem { ItemId = 29553u, ItemCount = 3 }; questStep22.ItemsToGather = list125; reference65 = questStep22; - index2++; - span121[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span36[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span121[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span36[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305830,30 +252335,24 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "liza"; + CollectionsMarshal.AsSpan(list126)[0] = "liza"; questRoot20.Author = list126; - index = 3; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference66 = ref span127[num]; + num = 3; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span37 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference66 = ref span37[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj44.Steps = list128; reference66 = obj44; - num++; - ref QuestSequence reference67 = ref span127[num]; + ref QuestSequence reference67 = ref span37[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 @@ -305861,9 +252360,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Say, 1032413u, new Vector3(144.36548f, -19.982845f, -459.8001f), 817) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Say, 1032413u, new Vector3(144.36548f, -19.982845f, -459.8001f), 817) { Fly = true, ChatMessage = new ChatMessage @@ -305873,24 +252370,21 @@ public static class AssemblyQuestLoader }; obj45.Steps = list129; reference67 = obj45; - num++; - ref QuestSequence reference68 = ref span127[num]; + ref QuestSequence reference68 = ref span37[2]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span130[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span38[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305903,16 +252397,13 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "liza"; + CollectionsMarshal.AsSpan(list131)[0] = "liza"; questRoot21.Author = list131; - index = 2; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference69 = ref span132[num]; + num = 2; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span39 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference69 = ref span39[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -305920,73 +252411,58 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj47.Steps = list133; reference69 = obj47; - num++; - ref QuestSequence reference70 = ref span132[num]; + ref QuestSequence reference70 = ref span39[1]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list134 = new List(index2); - CollectionsMarshal.SetCount(list134, index2); - Span span134 = CollectionsMarshal.AsSpan(list134); - num2 = 0; - ref QuestStep reference71 = ref span134[num2]; + num2 = 4; + List list134 = new List(num2); + CollectionsMarshal.SetCount(list134, num2); + Span span40 = CollectionsMarshal.AsSpan(list134); + ref QuestStep reference71 = ref span40[0]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - Span span135 = CollectionsMarshal.AsSpan(list135); - index3 = 0; - span135[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list135)[0] = EExtendedClassJob.Miner; questStep23.RequiredQuestAcceptedJob = list135; - index3 = 1; - List list136 = new List(index3); - CollectionsMarshal.SetCount(list136, index3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num3 = 0; - span136[num3] = new GatheredItem + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + CollectionsMarshal.AsSpan(list136)[0] = new GatheredItem { ItemId = 29528u, ItemCount = 3 }; questStep23.ItemsToGather = list136; reference71 = questStep23; - num2++; - ref QuestStep reference72 = ref span134[num2]; + ref QuestStep reference72 = ref span40[1]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span137 = CollectionsMarshal.AsSpan(list137); - index3 = 0; - span137[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list137)[0] = EExtendedClassJob.Botanist; questStep24.RequiredQuestAcceptedJob = list137; - index3 = 1; - List list138 = new List(index3); - CollectionsMarshal.SetCount(list138, index3); - Span span138 = CollectionsMarshal.AsSpan(list138); - num3 = 0; - span138[num3] = new GatheredItem + num3 = 1; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + CollectionsMarshal.AsSpan(list138)[0] = new GatheredItem { ItemId = 29554u, ItemCount = 3 }; questStep24.ItemsToGather = list138; reference72 = questStep24; - num2++; - span134[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span40[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span134[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span40[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -305999,16 +252475,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot22.Author = list139; - index = 2; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference73 = ref span140[num]; + num = 2; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span41 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference73 = ref span41[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -306016,73 +252489,58 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj49.Steps = list141; reference73 = obj49; - num++; - ref QuestSequence reference74 = ref span140[num]; + ref QuestSequence reference74 = ref span41[1]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list142 = new List(index2); - CollectionsMarshal.SetCount(list142, index2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num2 = 0; - ref QuestStep reference75 = ref span142[num2]; + num2 = 4; + List list142 = new List(num2); + CollectionsMarshal.SetCount(list142, num2); + Span span42 = CollectionsMarshal.AsSpan(list142); + ref QuestStep reference75 = ref span42[0]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span143 = CollectionsMarshal.AsSpan(list143); - index3 = 0; - span143[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Miner; questStep25.RequiredQuestAcceptedJob = list143; - index3 = 1; - List list144 = new List(index3); - CollectionsMarshal.SetCount(list144, index3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - span144[num3] = new GatheredItem + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem { ItemId = 29529u, ItemCount = 3 }; questStep25.ItemsToGather = list144; reference75 = questStep25; - num2++; - ref QuestStep reference76 = ref span142[num2]; + ref QuestStep reference76 = ref span42[1]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span145 = CollectionsMarshal.AsSpan(list145); - index3 = 0; - span145[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list145)[0] = EExtendedClassJob.Botanist; questStep26.RequiredQuestAcceptedJob = list145; - index3 = 1; - List list146 = new List(index3); - CollectionsMarshal.SetCount(list146, index3); - Span span146 = CollectionsMarshal.AsSpan(list146); - num3 = 0; - span146[num3] = new GatheredItem + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = new GatheredItem { ItemId = 29555u, ItemCount = 3 }; questStep26.ItemsToGather = list146; reference76 = questStep26; - num2++; - span142[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span42[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span142[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span42[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306095,16 +252553,13 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span147 = CollectionsMarshal.AsSpan(list147); - index = 0; - span147[index] = "liza"; + CollectionsMarshal.AsSpan(list147)[0] = "liza"; questRoot23.Author = list147; - index = 2; - List list148 = new List(index); - CollectionsMarshal.SetCount(list148, index); - Span span148 = CollectionsMarshal.AsSpan(list148); - num = 0; - ref QuestSequence reference77 = ref span148[num]; + num = 2; + List list148 = new List(num); + CollectionsMarshal.SetCount(list148, num); + Span span43 = CollectionsMarshal.AsSpan(list148); + ref QuestSequence reference77 = ref span43[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -306112,73 +252567,58 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj51.Steps = list149; reference77 = obj51; - num++; - ref QuestSequence reference78 = ref span148[num]; + ref QuestSequence reference78 = ref span43[1]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list150 = new List(index2); - CollectionsMarshal.SetCount(list150, index2); - Span span150 = CollectionsMarshal.AsSpan(list150); - num2 = 0; - ref QuestStep reference79 = ref span150[num2]; + num2 = 4; + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + Span span44 = CollectionsMarshal.AsSpan(list150); + ref QuestStep reference79 = ref span44[0]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - index3 = 0; - span151[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list151)[0] = EExtendedClassJob.Miner; questStep27.RequiredQuestAcceptedJob = list151; - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = new GatheredItem + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = new GatheredItem { ItemId = 29530u, ItemCount = 3 }; questStep27.ItemsToGather = list152; reference79 = questStep27; - num2++; - ref QuestStep reference80 = ref span150[num2]; + ref QuestStep reference80 = ref span44[1]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - index3 = 0; - span153[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list153)[0] = EExtendedClassJob.Botanist; questStep28.RequiredQuestAcceptedJob = list153; - index3 = 1; - List list154 = new List(index3); - CollectionsMarshal.SetCount(list154, index3); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - span154[num3] = new GatheredItem + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new GatheredItem { ItemId = 29556u, ItemCount = 3 }; questStep28.ItemsToGather = list154; reference80 = questStep28; - num2++; - span150[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span44[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span150[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span44[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306191,16 +252631,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot24.Author = list155; - index = 4; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference81 = ref span156[num]; + num = 4; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span45 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference81 = ref span45[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -306208,27 +252645,21 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj53.Steps = list157; reference81 = obj53; - num++; - ref QuestSequence reference82 = ref span156[num]; + ref QuestSequence reference82 = ref span45[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj54.Steps = list158; reference82 = obj54; - num++; - ref QuestSequence reference83 = ref span156[num]; + ref QuestSequence reference83 = ref span45[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 @@ -306236,9 +252667,8 @@ public static class AssemblyQuestLoader num2 = 2; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - ref QuestStep reference84 = ref span159[index2]; + Span span46 = CollectionsMarshal.AsSpan(list159); + ref QuestStep reference84 = ref span46[0]; QuestStep obj56 = new QuestStep(EInteractionType.Action, 1032829u, new Vector3(488.3954f, 34.798103f, 232.37964f), 817) { Fly = true, @@ -306247,66 +252677,50 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - 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); + 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); obj56.CompletionQuestVariablesFlags = list160; reference84 = obj56; - index2++; - ref QuestStep reference85 = ref span159[index2]; + ref QuestStep reference85 = ref span46[1]; QuestStep obj57 = new QuestStep(EInteractionType.Action, 1032828u, new Vector3(352.16296f, 28.242743f, 303.2119f), 817) { Fly = true, Action = EAction.PeculiarLight }; - 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); + 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); obj57.CompletionQuestVariablesFlags = list161; reference85 = obj57; obj55.Steps = list159; reference83 = obj55; - num++; - ref QuestSequence reference86 = ref span156[num]; + ref QuestSequence reference86 = ref span45[3]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span162[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306319,16 +252733,13 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list163)[0] = "plogon_enjoyer"; questRoot25.Author = list163; - index = 2; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference87 = ref span164[num]; + num = 2; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span50 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference87 = ref span50[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -306336,73 +252747,58 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj59.Steps = list165; reference87 = obj59; - num++; - ref QuestSequence reference88 = ref span164[num]; + ref QuestSequence reference88 = ref span50[1]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list166 = new List(index2); - CollectionsMarshal.SetCount(list166, index2); - Span span166 = CollectionsMarshal.AsSpan(list166); - num2 = 0; - ref QuestStep reference89 = ref span166[num2]; + num2 = 4; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + Span span51 = CollectionsMarshal.AsSpan(list166); + ref QuestStep reference89 = ref span51[0]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list167 = new List(num3); CollectionsMarshal.SetCount(list167, num3); - Span span167 = CollectionsMarshal.AsSpan(list167); - index3 = 0; - span167[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Miner; questStep29.RequiredQuestAcceptedJob = list167; - index3 = 1; - List list168 = new List(index3); - CollectionsMarshal.SetCount(list168, index3); - Span span168 = CollectionsMarshal.AsSpan(list168); - num3 = 0; - span168[num3] = new GatheredItem + num3 = 1; + List list168 = new List(num3); + CollectionsMarshal.SetCount(list168, num3); + CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem { ItemId = 29531u, ItemCount = 3 }; questStep29.ItemsToGather = list168; reference89 = questStep29; - num2++; - ref QuestStep reference90 = ref span166[num2]; + ref QuestStep reference90 = ref span51[1]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span169 = CollectionsMarshal.AsSpan(list169); - index3 = 0; - span169[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list169)[0] = EExtendedClassJob.Botanist; questStep30.RequiredQuestAcceptedJob = list169; - index3 = 1; - List list170 = new List(index3); - CollectionsMarshal.SetCount(list170, index3); - Span span170 = CollectionsMarshal.AsSpan(list170); - num3 = 0; - span170[num3] = new GatheredItem + num3 = 1; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + CollectionsMarshal.AsSpan(list170)[0] = new GatheredItem { ItemId = 29557u, ItemCount = 3 }; questStep30.ItemsToGather = list170; reference90 = questStep30; - num2++; - span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span51[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span166[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span51[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306415,16 +252811,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list171)[0] = "plogon_enjoyer"; questRoot26.Author = list171; - index = 2; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference91 = ref span172[num]; + num = 2; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span52 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference91 = ref span52[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -306432,73 +252825,58 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj61.Steps = list173; reference91 = obj61; - num++; - ref QuestSequence reference92 = ref span172[num]; + ref QuestSequence reference92 = ref span52[1]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list174 = new List(index2); - CollectionsMarshal.SetCount(list174, index2); - Span span174 = CollectionsMarshal.AsSpan(list174); - num2 = 0; - ref QuestStep reference93 = ref span174[num2]; + num2 = 4; + List list174 = new List(num2); + CollectionsMarshal.SetCount(list174, num2); + Span span53 = CollectionsMarshal.AsSpan(list174); + ref QuestStep reference93 = ref span53[0]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - Span span175 = CollectionsMarshal.AsSpan(list175); - index3 = 0; - span175[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list175)[0] = EExtendedClassJob.Miner; questStep31.RequiredQuestAcceptedJob = list175; - index3 = 1; - List list176 = new List(index3); - CollectionsMarshal.SetCount(list176, index3); - Span span176 = CollectionsMarshal.AsSpan(list176); - num3 = 0; - span176[num3] = new GatheredItem + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + CollectionsMarshal.AsSpan(list176)[0] = new GatheredItem { ItemId = 29532u, ItemCount = 3 }; questStep31.ItemsToGather = list176; reference93 = questStep31; - num2++; - ref QuestStep reference94 = ref span174[num2]; + ref QuestStep reference94 = ref span53[1]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - Span span177 = CollectionsMarshal.AsSpan(list177); - index3 = 0; - span177[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list177)[0] = EExtendedClassJob.Botanist; questStep32.RequiredQuestAcceptedJob = list177; - index3 = 1; - List list178 = new List(index3); - CollectionsMarshal.SetCount(list178, index3); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - span178[num3] = new GatheredItem + num3 = 1; + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + CollectionsMarshal.AsSpan(list178)[0] = new GatheredItem { ItemId = 29558u, ItemCount = 3 }; questStep32.ItemsToGather = list178; reference94 = questStep32; - num2++; - span174[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span53[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span53[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306511,16 +252889,13 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "liza"; + CollectionsMarshal.AsSpan(list179)[0] = "liza"; questRoot27.Author = list179; - index = 3; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference95 = ref span180[num]; + num = 3; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span54 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference95 = ref span54[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -306528,31 +252903,25 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj63.Steps = list181; reference95 = obj63; - num++; - ref QuestSequence reference96 = ref span180[num]; + ref QuestSequence reference96 = ref span54[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj64.Steps = list182; reference96 = obj64; - num++; - ref QuestSequence reference97 = ref span180[num]; + ref QuestSequence reference97 = ref span54[2]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -306560,15 +252929,13 @@ public static class AssemblyQuestLoader num2 = 2; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + Span span55 = CollectionsMarshal.AsSpan(list183); + span55[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span183[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306581,30 +252948,24 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - Span span184 = CollectionsMarshal.AsSpan(list184); - index = 0; - span184[index] = "liza"; + CollectionsMarshal.AsSpan(list184)[0] = "liza"; questRoot28.Author = list184; - index = 2; - List list185 = new List(index); - CollectionsMarshal.SetCount(list185, index); - Span span185 = CollectionsMarshal.AsSpan(list185); - num = 0; - ref QuestSequence reference98 = ref span185[num]; + num = 2; + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span56 = CollectionsMarshal.AsSpan(list185); + ref QuestSequence reference98 = ref span56[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj66.Steps = list186; reference98 = obj66; - num++; - ref QuestSequence reference99 = ref span185[num]; + ref QuestSequence reference99 = ref span56[1]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -306612,59 +252973,47 @@ public static class AssemblyQuestLoader num2 = 4; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - ref QuestStep reference100 = ref span187[index2]; + Span span57 = CollectionsMarshal.AsSpan(list187); + ref QuestStep reference100 = ref span57[0]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span188 = CollectionsMarshal.AsSpan(list188); - index3 = 0; - span188[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list188)[0] = EExtendedClassJob.Miner; questStep33.RequiredQuestAcceptedJob = list188; - index3 = 1; - List list189 = new List(index3); - CollectionsMarshal.SetCount(list189, index3); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - span189[num3] = new GatheredItem + num3 = 1; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + CollectionsMarshal.AsSpan(list189)[0] = new GatheredItem { ItemId = 29533u, ItemCount = 3 }; questStep33.ItemsToGather = list189; reference100 = questStep33; - index2++; - ref QuestStep reference101 = ref span187[index2]; + ref QuestStep reference101 = ref span57[1]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - index3 = 0; - span190[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list190)[0] = EExtendedClassJob.Botanist; questStep34.RequiredQuestAcceptedJob = list190; - index3 = 1; - List list191 = new List(index3); - CollectionsMarshal.SetCount(list191, index3); - Span span191 = CollectionsMarshal.AsSpan(list191); - num3 = 0; - span191[num3] = new GatheredItem + num3 = 1; + List list191 = new List(num3); + CollectionsMarshal.SetCount(list191, num3); + CollectionsMarshal.AsSpan(list191)[0] = new GatheredItem { ItemId = 29559u, ItemCount = 3 }; questStep34.ItemsToGather = list191; reference101 = questStep34; - index2++; - span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span57[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span57[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f, Fly = true @@ -306678,30 +253027,24 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = "liza"; + CollectionsMarshal.AsSpan(list192)[0] = "liza"; questRoot29.Author = list192; - index = 2; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref QuestSequence reference102 = ref span193[num]; + num = 2; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span58 = CollectionsMarshal.AsSpan(list193); + ref QuestSequence reference102 = ref span58[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj68.Steps = list194; reference102 = obj68; - num++; - ref QuestSequence reference103 = ref span193[num]; + ref QuestSequence reference103 = ref span58[1]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -306709,59 +253052,47 @@ public static class AssemblyQuestLoader num2 = 4; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - ref QuestStep reference104 = ref span195[index2]; + Span span59 = CollectionsMarshal.AsSpan(list195); + ref QuestStep reference104 = ref span59[0]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - Span span196 = CollectionsMarshal.AsSpan(list196); - index3 = 0; - span196[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list196)[0] = EExtendedClassJob.Miner; questStep35.RequiredQuestAcceptedJob = list196; - index3 = 1; - List list197 = new List(index3); - CollectionsMarshal.SetCount(list197, index3); - Span span197 = CollectionsMarshal.AsSpan(list197); - num3 = 0; - span197[num3] = new GatheredItem + num3 = 1; + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = new GatheredItem { ItemId = 29534u, ItemCount = 3 }; questStep35.ItemsToGather = list197; reference104 = questStep35; - index2++; - ref QuestStep reference105 = ref span195[index2]; + ref QuestStep reference105 = ref span59[1]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span198 = CollectionsMarshal.AsSpan(list198); - index3 = 0; - span198[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list198)[0] = EExtendedClassJob.Botanist; questStep36.RequiredQuestAcceptedJob = list198; - index3 = 1; - List list199 = new List(index3); - CollectionsMarshal.SetCount(list199, index3); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - span199[num3] = new GatheredItem + num3 = 1; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + CollectionsMarshal.AsSpan(list199)[0] = new GatheredItem { ItemId = 29560u, ItemCount = 3 }; questStep36.ItemsToGather = list199; reference105 = questStep36; - index2++; - span195[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span59[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - index2++; - span195[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306774,30 +253105,24 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; questRoot30.Author = list200; - index = 5; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestSequence reference106 = ref span201[num]; + num = 5; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span60 = CollectionsMarshal.AsSpan(list201); + ref QuestSequence reference106 = ref span60[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj70.Steps = list202; reference106 = obj70; - num++; - ref QuestSequence reference107 = ref span201[num]; + ref QuestSequence reference107 = ref span60[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -306805,34 +253130,28 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj71.Steps = list203; reference107 = obj71; - num++; - ref QuestSequence reference108 = ref span201[num]; + ref QuestSequence reference108 = ref span60[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, ItemId = 2002980u }; obj72.Steps = list204; reference108 = obj72; - num++; - ref QuestSequence reference109 = ref span201[num]; + ref QuestSequence reference109 = ref span60[3]; QuestSequence obj73 = new QuestSequence { Sequence = 3 @@ -306840,29 +253159,24 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817); + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1032830u, new Vector3(-134.02002f, -18.460577f, 303.5476f), 817); obj73.Steps = list205; reference109 = obj73; - num++; - ref QuestSequence reference110 = ref span201[num]; + ref QuestSequence reference110 = ref span60[4]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span206[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306875,16 +253189,13 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot31.Author = list207; - index = 2; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference111 = ref span208[num]; + num = 2; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span62 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference111 = ref span62[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -306892,73 +253203,58 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj75.Steps = list209; reference111 = obj75; - num++; - ref QuestSequence reference112 = ref span208[num]; + ref QuestSequence reference112 = ref span62[1]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference113 = ref span210[num2]; + num2 = 4; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span63 = CollectionsMarshal.AsSpan(list210); + ref QuestStep reference113 = ref span63[0]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span211 = CollectionsMarshal.AsSpan(list211); - index3 = 0; - span211[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list211)[0] = EExtendedClassJob.Miner; questStep37.RequiredQuestAcceptedJob = list211; - index3 = 1; - List list212 = new List(index3); - CollectionsMarshal.SetCount(list212, index3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - span212[num3] = new GatheredItem + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + CollectionsMarshal.AsSpan(list212)[0] = new GatheredItem { ItemId = 29535u, ItemCount = 3 }; questStep37.ItemsToGather = list212; reference113 = questStep37; - num2++; - ref QuestStep reference114 = ref span210[num2]; + ref QuestStep reference114 = ref span63[1]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span213 = CollectionsMarshal.AsSpan(list213); - index3 = 0; - span213[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list213)[0] = EExtendedClassJob.Botanist; questStep38.RequiredQuestAcceptedJob = list213; - index3 = 1; - List list214 = new List(index3); - CollectionsMarshal.SetCount(list214, index3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num3 = 0; - span214[num3] = new GatheredItem + num3 = 1; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + CollectionsMarshal.AsSpan(list214)[0] = new GatheredItem { ItemId = 29561u, ItemCount = 3 }; questStep38.ItemsToGather = list214; reference114 = questStep38; - num2++; - span210[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span63[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span63[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -306971,16 +253267,13 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - Span span215 = CollectionsMarshal.AsSpan(list215); - index = 0; - span215[index] = "liza"; + CollectionsMarshal.AsSpan(list215)[0] = "liza"; questRoot32.Author = list215; - index = 2; - List list216 = new List(index); - CollectionsMarshal.SetCount(list216, index); - Span span216 = CollectionsMarshal.AsSpan(list216); - num = 0; - ref QuestSequence reference115 = ref span216[num]; + num = 2; + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span64 = CollectionsMarshal.AsSpan(list216); + ref QuestSequence reference115 = ref span64[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -306988,73 +253281,58 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj77.Steps = list217; reference115 = obj77; - num++; - ref QuestSequence reference116 = ref span216[num]; + ref QuestSequence reference116 = ref span64[1]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 4; - List list218 = new List(index2); - CollectionsMarshal.SetCount(list218, index2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num2 = 0; - ref QuestStep reference117 = ref span218[num2]; + num2 = 4; + List list218 = new List(num2); + CollectionsMarshal.SetCount(list218, num2); + Span span65 = CollectionsMarshal.AsSpan(list218); + ref QuestStep reference117 = ref span65[0]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list219 = new List(num3); CollectionsMarshal.SetCount(list219, num3); - Span span219 = CollectionsMarshal.AsSpan(list219); - index3 = 0; - span219[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list219)[0] = EExtendedClassJob.Miner; questStep39.RequiredQuestAcceptedJob = list219; - index3 = 1; - List list220 = new List(index3); - CollectionsMarshal.SetCount(list220, index3); - Span span220 = CollectionsMarshal.AsSpan(list220); - num3 = 0; - span220[num3] = new GatheredItem + num3 = 1; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + CollectionsMarshal.AsSpan(list220)[0] = new GatheredItem { ItemId = 29536u, ItemCount = 3 }; questStep39.ItemsToGather = list220; reference117 = questStep39; - num2++; - ref QuestStep reference118 = ref span218[num2]; + ref QuestStep reference118 = ref span65[1]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 817); num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span221 = CollectionsMarshal.AsSpan(list221); - index3 = 0; - span221[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list221)[0] = EExtendedClassJob.Botanist; questStep40.RequiredQuestAcceptedJob = list221; - index3 = 1; - List list222 = new List(index3); - CollectionsMarshal.SetCount(list222, index3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num3 = 0; - span222[num3] = new GatheredItem + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = new GatheredItem { ItemId = 29562u, ItemCount = 3 }; questStep40.ItemsToGather = list222; reference118 = questStep40; - num2++; - span218[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) + span65[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(788.1569f, -45.82557f, -212.9306f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span218[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span65[3] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -307067,16 +253345,13 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - Span span223 = CollectionsMarshal.AsSpan(list223); - index = 0; - span223[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list223)[0] = "plogon_enjoyer"; questRoot33.Author = list223; - index = 4; - List list224 = new List(index); - CollectionsMarshal.SetCount(list224, index); - Span span224 = CollectionsMarshal.AsSpan(list224); - num = 0; - ref QuestSequence reference119 = ref span224[num]; + num = 4; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + Span span66 = CollectionsMarshal.AsSpan(list224); + ref QuestSequence reference119 = ref span66[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -307084,30 +253359,24 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj79.Steps = list225; reference119 = obj79; - num++; - ref QuestSequence reference120 = ref span224[num]; + ref QuestSequence reference120 = ref span66[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj80.Steps = list226; reference120 = obj80; - num++; - ref QuestSequence reference121 = ref span224[num]; + ref QuestSequence reference121 = ref span66[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 @@ -307115,33 +253384,28 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Action, 2010998u, new Vector3(-677.0886f, 0.32037354f, 208.69751f), 817) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Action, 2010998u, new Vector3(-677.0886f, 0.32037354f, 208.69751f), 817) { Fly = true, Action = EAction.PeculiarLight }; obj81.Steps = list227; reference121 = obj81; - num++; - ref QuestSequence reference122 = ref span224[num]; + ref QuestSequence reference122 = ref span66[3]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; - num2++; - span228[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { StopDistance = 7f }; @@ -307154,16 +253418,13 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "pot0to"; + CollectionsMarshal.AsSpan(list229)[0] = "pot0to"; questRoot34.Author = list229; - index = 2; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference123 = ref span230[num]; + num = 2; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span68 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference123 = ref span68[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -307171,23 +253432,19 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817); obj83.Steps = list231; reference123 = obj83; - num++; - ref QuestSequence reference124 = ref span230[num]; + ref QuestSequence reference124 = ref span68[1]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list232 = new List(index2); - CollectionsMarshal.SetCount(list232, index2); - Span span232 = CollectionsMarshal.AsSpan(list232); - num2 = 0; - ref QuestStep reference125 = ref span232[num2]; + num2 = 3; + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + Span span69 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference125 = ref span69[0]; QuestStep obj85 = new QuestStep(EInteractionType.Gather, 33005u, new Vector3(214.7744f, -19.57758f, 623.6767f), 817) { Fly = true @@ -307195,24 +253452,19 @@ public static class AssemblyQuestLoader num3 = 1; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - Span span233 = CollectionsMarshal.AsSpan(list233); - index3 = 0; - span233[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list233)[0] = EExtendedClassJob.Miner; obj85.RequiredQuestAcceptedJob = list233; - index3 = 1; - List list234 = new List(index3); - CollectionsMarshal.SetCount(list234, index3); - Span span234 = CollectionsMarshal.AsSpan(list234); - num3 = 0; - span234[num3] = new GatheredItem + num3 = 1; + List list234 = new List(num3); + CollectionsMarshal.SetCount(list234, num3); + CollectionsMarshal.AsSpan(list234)[0] = new GatheredItem { ItemId = 29537u, ItemCount = 3 }; obj85.ItemsToGather = list234; reference125 = obj85; - num2++; - ref QuestStep reference126 = ref span232[num2]; + ref QuestStep reference126 = ref span69[1]; QuestStep obj86 = new QuestStep(EInteractionType.Gather, 33020u, new Vector3(226.1767f, -20.10281f, 643.5543f), 817) { Fly = true @@ -307220,24 +253472,19 @@ public static class AssemblyQuestLoader num3 = 1; List list235 = new List(num3); CollectionsMarshal.SetCount(list235, num3); - Span span235 = CollectionsMarshal.AsSpan(list235); - index3 = 0; - span235[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list235)[0] = EExtendedClassJob.Botanist; obj86.RequiredQuestAcceptedJob = list235; - index3 = 1; - List list236 = new List(index3); - CollectionsMarshal.SetCount(list236, index3); - Span span236 = CollectionsMarshal.AsSpan(list236); - num3 = 0; - span236[num3] = new GatheredItem + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + CollectionsMarshal.AsSpan(list236)[0] = new GatheredItem { ItemId = 29563u, ItemCount = 3 }; obj86.ItemsToGather = list236; reference126 = obj86; - num2++; - span232[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) + span69[2] = new QuestStep(EInteractionType.CompleteQuest, 1032643u, new Vector3(787.0145f, -45.82774f, -218.555f), 817) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow @@ -307251,16 +253498,13 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - Span span237 = CollectionsMarshal.AsSpan(list237); - index = 0; - span237[index] = "Censored"; + CollectionsMarshal.AsSpan(list237)[0] = "Censored"; questRoot35.Author = list237; - index = 5; - List list238 = new List(index); - CollectionsMarshal.SetCount(list238, index); - Span span238 = CollectionsMarshal.AsSpan(list238); - num = 0; - ref QuestSequence reference127 = ref span238[num]; + num = 5; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + Span span70 = CollectionsMarshal.AsSpan(list238); + ref QuestSequence reference127 = ref span70[0]; QuestSequence obj87 = new QuestSequence { Sequence = 0 @@ -307268,9 +253512,7 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.AcceptQuest, 1018994u, new Vector3(49.240845f, 4.0000005f, 55.77173f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -307281,18 +253523,16 @@ public static class AssemblyQuestLoader }; obj87.Steps = list239; reference127 = obj87; - num++; - ref QuestSequence reference128 = ref span238[num]; + ref QuestSequence reference128 = ref span70[1]; QuestSequence obj88 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)639, AethernetShortcut = new AethernetShortcut @@ -307301,12 +253541,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeRubyBazaar } }; - num2++; - span240[num2] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); + span71[1] = new QuestStep(EInteractionType.Interact, 1020622u, new Vector3(0.045776367f, 0f, -2.3041382f), 639); obj88.Steps = list240; reference128 = obj88; - num++; - ref QuestSequence reference129 = ref span238[num]; + ref QuestSequence reference129 = ref span70[2]; QuestSequence obj89 = new QuestSequence { Sequence = 2 @@ -307314,33 +253552,27 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Interact, 1032866u, new Vector3(274.1283f, 8.18297f, -409.8421f), 614) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1032866u, new Vector3(274.1283f, 8.18297f, -409.8421f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce }; obj89.Steps = list241; reference129 = obj89; - num++; - ref QuestSequence reference130 = ref span238[num]; + ref QuestSequence reference130 = ref span70[3]; QuestSequence obj90 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj90.Steps = list242; reference130 = obj90; - num++; - ref QuestSequence reference131 = ref span238[num]; + ref QuestSequence reference131 = ref span70[4]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -307348,9 +253580,7 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032868u, new Vector3(-258.59473f, 53.217506f, -644.8616f), 614) { NextQuestId = new QuestId(3835) }; @@ -307363,26 +253593,21 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "Censored"; + CollectionsMarshal.AsSpan(list244)[0] = "Censored"; questRoot36.Author = list244; - index = 7; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference132 = ref span245[num]; + num = 7; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span72 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference132 = ref span72[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaHouseOfTheFierce, @@ -307396,8 +253621,7 @@ public static class AssemblyQuestLoader }; obj92.Steps = list246; reference132 = obj92; - num++; - ref QuestSequence reference133 = ref span245[num]; + ref QuestSequence reference133 = ref span72[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -307405,9 +253629,7 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - ref QuestStep reference134 = ref span247[index2]; + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list247)[0]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, @@ -307420,9 +253642,7 @@ public static class AssemblyQuestLoader num3 = 1; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - Span span248 = CollectionsMarshal.AsSpan(list248); - index3 = 0; - span248[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list248)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKSA002_03835_Q1_000_031") @@ -307431,27 +253651,22 @@ public static class AssemblyQuestLoader reference134 = obj94; obj93.Steps = list247; reference133 = obj93; - num++; - span245[num] = new QuestSequence + span72[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference135 = ref span245[num]; + ref QuestSequence reference135 = ref span72[3]; QuestSequence obj95 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj95.Steps = list249; reference135 = obj95; - num++; - ref QuestSequence reference136 = ref span245[num]; + ref QuestSequence reference136 = ref span72[4]; QuestSequence obj96 = new QuestSequence { Sequence = 4 @@ -307459,30 +253674,24 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 1032871u, new Vector3(22.323914f, 0.09971012f, -14.694458f), 915); + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1032871u, new Vector3(22.323914f, 0.09971012f, -14.694458f), 915); obj96.Steps = list250; reference136 = obj96; - num++; - ref QuestSequence reference137 = ref span245[num]; + ref QuestSequence reference137 = ref span72[5]; QuestSequence obj97 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj97.Steps = list251; reference137 = obj97; - num++; - ref QuestSequence reference138 = ref span245[num]; + ref QuestSequence reference138 = ref span72[6]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue @@ -307490,9 +253699,7 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - span252[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) + CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032877u, new Vector3(29.43457f, 0f, 30.350098f), 635) { NextQuestId = new QuestId(3836) }; @@ -307505,26 +253712,21 @@ public static class AssemblyQuestLoader num = 1; List list253 = new List(num); CollectionsMarshal.SetCount(list253, num); - Span span253 = CollectionsMarshal.AsSpan(list253); - index = 0; - span253[index] = "Censored"; + CollectionsMarshal.AsSpan(list253)[0] = "Censored"; questRoot37.Author = list253; - index = 5; - List list254 = new List(index); - CollectionsMarshal.SetCount(list254, index); - Span span254 = CollectionsMarshal.AsSpan(list254); - num = 0; - ref QuestSequence reference139 = ref span254[num]; + num = 5; + List list254 = new List(num); + CollectionsMarshal.SetCount(list254, num); + Span span73 = CollectionsMarshal.AsSpan(list254); + ref QuestSequence reference139 = ref span73[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -307537,8 +253739,7 @@ public static class AssemblyQuestLoader }; obj99.Steps = list255; reference139 = obj99; - num++; - ref QuestSequence reference140 = ref span254[num]; + ref QuestSequence reference140 = ref span73[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 @@ -307546,9 +253747,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.Interact, 1032869u, new Vector3(127.27539f, -4.1787133f, 98.68005f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, AethernetShortcut = new AethernetShortcut @@ -307559,25 +253758,20 @@ public static class AssemblyQuestLoader }; obj100.Steps = list256; reference140 = obj100; - num++; - ref QuestSequence reference141 = ref span254[num]; + ref QuestSequence reference141 = ref span73[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list257 = new List(index2); - CollectionsMarshal.SetCount(list257, index2); - Span span257 = CollectionsMarshal.AsSpan(list257); - num2 = 0; - ref QuestStep reference142 = ref span257[num2]; + num2 = 1; + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list257)[0]; QuestStep questStep41 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032901u, new Vector3(9.567322f, -6.0169958E-05f, -10.269409f), 915); - index3 = 1; - List list258 = new List(index3); - CollectionsMarshal.SetCount(list258, index3); - Span span258 = CollectionsMarshal.AsSpan(list258); - num3 = 0; - span258[num3] = new DialogueChoice + num3 = 1; + List list258 = new List(num3); + CollectionsMarshal.SetCount(list258, num3); + CollectionsMarshal.AsSpan(list258)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKSA003_03836_Q1_100_098") @@ -307586,13 +253780,11 @@ public static class AssemblyQuestLoader reference142 = questStep41; obj101.Steps = list257; reference141 = obj101; - num++; - span254[num] = new QuestSequence + span73[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference143 = ref span254[num]; + ref QuestSequence reference143 = ref span73[4]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -307600,9 +253792,7 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032872u, new Vector3(16.67804f, 0.03006095f, -17.868408f), 915); + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1032872u, new Vector3(16.67804f, 0.03006095f, -17.868408f), 915); obj102.Steps = list259; reference143 = obj102; questRoot37.QuestSequence = list254; @@ -307612,30 +253802,24 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - Span span260 = CollectionsMarshal.AsSpan(list260); - index = 0; - span260[index] = "liza"; + CollectionsMarshal.AsSpan(list260)[0] = "liza"; questRoot38.Author = list260; - index = 4; - List list261 = new List(index); - CollectionsMarshal.SetCount(list261, index); - Span span261 = CollectionsMarshal.AsSpan(list261); - num = 0; - ref QuestSequence reference144 = ref span261[num]; + num = 4; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span74 = CollectionsMarshal.AsSpan(list261); + ref QuestSequence reference144 = ref span74[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj103.Steps = list262; reference144 = obj103; - num++; - ref QuestSequence reference145 = ref span261[num]; + ref QuestSequence reference145 = ref span74[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -307643,9 +253827,7 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 1032782u, new Vector3(6.8512573f, 27.030483f, -93.7973f), 419) + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1032782u, new Vector3(6.8512573f, 27.030483f, -93.7973f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -307656,25 +253838,21 @@ public static class AssemblyQuestLoader }; obj104.Steps = list263; reference145 = obj104; - num++; - ref QuestSequence reference146 = ref span261[num]; + ref QuestSequence reference146 = ref span74[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj105.Steps = list264; reference146 = obj105; - num++; - ref QuestSequence reference147 = ref span261[num]; + ref QuestSequence reference147 = ref span74[3]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -307682,9 +253860,8 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.None, null, null, 886) + Span span75 = CollectionsMarshal.AsSpan(list265); + span75[0] = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -307693,8 +253870,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - index2++; - span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) + span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1032786u, new Vector3(113.7865f, -20.000002f, -0.3204956f), 886) { AethernetShortcut = new AethernetShortcut { @@ -307712,33 +253888,25 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "liza"; + CollectionsMarshal.AsSpan(list266)[0] = "liza"; questRoot39.Author = list266; - index = 1; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference148 = ref span267[num]; + num = 1; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + ref QuestSequence reference148 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestSequence obj107 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list268 = new List(num2); + CollectionsMarshal.SetCount(list268, num2); + ref QuestStep reference149 = ref CollectionsMarshal.AsSpan(list268)[0]; 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); - Span span269 = CollectionsMarshal.AsSpan(list269); - index3 = 0; - span269[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list269)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYB007_03842_Q1_000_000"), @@ -307755,16 +253923,13 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - Span span270 = CollectionsMarshal.AsSpan(list270); - index = 0; - span270[index] = "Cacahuetes"; + CollectionsMarshal.AsSpan(list270)[0] = "Cacahuetes"; questRoot40.Author = list270; - index = 2; - List list271 = new List(index); - CollectionsMarshal.SetCount(list271, index); - Span span271 = CollectionsMarshal.AsSpan(list271); - num = 0; - ref QuestSequence reference150 = ref span271[num]; + num = 2; + List list271 = new List(num); + CollectionsMarshal.SetCount(list271, num); + Span span76 = CollectionsMarshal.AsSpan(list271); + ref QuestSequence reference150 = ref span76[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -307772,23 +253937,18 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000858u, new Vector3(-168.47485f, 4.5500045f, 163.65295f), 129); + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000858u, new Vector3(-168.47485f, 4.5500045f, 163.65295f), 129); obj108.Steps = list272; reference150 = obj108; - num++; - ref QuestSequence reference151 = ref span271[num]; + ref QuestSequence reference151 = ref span76[1]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -307809,16 +253969,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -307826,37 +253983,30 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1001541u, new Vector3(-99.4126f, -11.39856f, -41.73346f), 141); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num2++; - span4[num2] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 141) + span2[1] = new QuestStep(EInteractionType.RegisterFreeOrFavoredAetheryte, null, null, 141) { Aetheryte = EAetheryteLocation.CentralThanalanBlackBrushStation }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + span2[2] = new QuestStep(EInteractionType.Interact, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -307864,13 +254014,10 @@ public static class AssemblyQuestLoader num2 = 7; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - 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]; + 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]; QuestStep obj4 = new QuestStep(EInteractionType.PurchaseItem, 1001564u, new Vector3(-9.689575f, -2.0480804f, -145.09808f), 141) { ItemId = 2653u, @@ -307886,9 +254033,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = EExtendedClassJob.DoW; + CollectionsMarshal.AsSpan(list6)[0] = EExtendedClassJob.DoW; obj4.RequiredCurrentJob = list6; obj4.PurchaseMenu = new PurchaseMenu { @@ -307896,19 +254041,16 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262357u) }; reference4 = obj4; - index2++; - ref QuestStep reference5 = ref span5[index2]; + ref QuestStep reference5 = ref span3[3]; QuestStep obj5 = new QuestStep(EInteractionType.PurchaseItem, 1001564u, new Vector3(-9.689575f, -2.0480804f, -145.09808f), 141) { ItemId = 2655u, ItemCount = 1 }; - index3 = 1; - List list7 = new List(index3); - CollectionsMarshal.SetCount(list7, index3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = EExtendedClassJob.DoM; + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = EExtendedClassJob.DoM; obj5.RequiredCurrentJob = list7; obj5.PurchaseMenu = new PurchaseMenu { @@ -307916,8 +254058,7 @@ public static class AssemblyQuestLoader Key = new ExcelRef(262357u) }; reference5 = obj5; - index2++; - span5[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + span3[4] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { ItemId = 2653u, SkipConditions = new SkipConditions @@ -307931,8 +254072,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span5[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 141) + span3[5] = new QuestStep(EInteractionType.EquipItem, null, null, 141) { ItemId = 2655u, SkipConditions = new SkipConditions @@ -307946,8 +254086,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); + span3[6] = new QuestStep(EInteractionType.CompleteQuest, 1001447u, new Vector3(-32.6391f, -1.0332576f, -148.51611f), 141); obj3.Steps = list5; reference3 = obj3; questRoot.QuestSequence = list2; @@ -307957,30 +254096,24 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 3; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 3; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -307988,9 +254121,8 @@ public static class AssemblyQuestLoader num2 = 2; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + Span span5 = CollectionsMarshal.AsSpan(list11); + ref QuestStep reference8 = ref span5[0]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 353u, new Vector3(112.41321f, 28.93967f, -37.277832f), 141) { EnemySpawnType = EEnemySpawnType.FinishCombatIfAny @@ -307998,49 +254130,40 @@ public static class AssemblyQuestLoader num3 = 2; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - Span span12 = CollectionsMarshal.AsSpan(list12); - index3 = 0; - span12[index3] = 352u; - index3++; - span12[index3] = 353u; + Span span6 = CollectionsMarshal.AsSpan(list12); + span6[0] = 352u; + span6[1] = 353u; obj8.KillEnemyDataIds = list12; reference8 = obj8; - index2++; - ref QuestStep reference9 = ref span11[index2]; + ref QuestStep reference9 = ref span5[1]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(125.61467f, 29.092033f, -14.67918f), 141) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list13 = new List(index3); - CollectionsMarshal.SetCount(list13, index3); - Span span13 = CollectionsMarshal.AsSpan(list13); - num3 = 0; - span13[num3] = 355u; + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = 355u; obj9.KillEnemyDataIds = list13; reference9 = obj9; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span4[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span14[num2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); + span7[2] = new QuestStep(EInteractionType.CompleteQuest, 1001605u, new Vector3(94.46863f, 0.34075314f, -272.60242f), 141); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list9; @@ -308050,16 +254173,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot3.Author = list15; - index = 3; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 3; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span8 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span8[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -308067,23 +254187,18 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000421u, new Vector3(98.25281f, -8f, -78.446655f), 148); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span8[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list18 = new List(index2); - CollectionsMarshal.SetCount(list18, index2); - Span span18 = CollectionsMarshal.AsSpan(list18); - num2 = 0; - ref QuestStep reference13 = ref span18[num2]; + num2 = 1; + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); + ref QuestStep reference13 = ref CollectionsMarshal.AsSpan(list18)[0]; QuestStep obj13 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.08282f, -8.422037f, -47.295006f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -308091,9 +254206,7 @@ public static class AssemblyQuestLoader num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span19 = CollectionsMarshal.AsSpan(list19); - index3 = 0; - span19[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list19)[0] = new ComplexCombatData { DataId = 43u, MinimumKillCount = 3u @@ -308102,8 +254215,7 @@ public static class AssemblyQuestLoader reference13 = obj13; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span8[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -308111,9 +254223,7 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000449u, new Vector3(201.83093f, -5.5419664f, -107.25574f), 148); obj14.Steps = list20; reference14 = obj14; questRoot3.QuestSequence = list16; @@ -308123,30 +254233,24 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "liza"; + CollectionsMarshal.AsSpan(list21)[0] = "liza"; questRoot4.Author = list21; - index = 4; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 4; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span9 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span9[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span22[num]; + ref QuestSequence reference16 = ref span9[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -308154,54 +254258,42 @@ public static class AssemblyQuestLoader num2 = 6; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(459.86548f, 17.983778f, -76.51779f), 148) + Span span10 = CollectionsMarshal.AsSpan(list24); + span10[0] = new QuestStep(EInteractionType.Combat, null, new Vector3(459.86548f, 17.983778f, -76.51779f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(486.40424f, 24.968294f, -88.684456f), 148) + span10[1] = new QuestStep(EInteractionType.Combat, null, new Vector3(486.40424f, 24.968294f, -88.684456f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(485.05884f, 30.642492f, -59.45244f), 148) + span10[2] = new QuestStep(EInteractionType.Combat, null, new Vector3(485.05884f, 30.642492f, -59.45244f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - span24[index2] = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) + span10[3] = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - index2++; - ref QuestStep reference17 = ref span24[index2]; + ref QuestStep reference17 = ref span10[4]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2000010u, new Vector3(480.88794f, 30.746826f, -49.729187f), 148); - 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); + 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); questStep.CompletionQuestVariablesFlags = list25; reference17 = questStep; - index2++; - ref QuestStep reference18 = ref span24[index2]; + ref QuestStep reference18 = ref span10[5]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, null, new Vector3(480.88794f, 30.746826f, -49.729187f), 148) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -308209,46 +254301,34 @@ public static class AssemblyQuestLoader num3 = 1; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - Span span26 = CollectionsMarshal.AsSpan(list26); - index3 = 0; - span26[index3] = 142u; + CollectionsMarshal.AsSpan(list26)[0] = 142u; obj17.KillEnemyDataIds = list26; - 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; + 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; obj17.CompletionQuestVariablesFlags = list27; reference18 = obj17; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference19 = ref span22[num]; + ref QuestSequence reference19 = ref span9[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj18.Steps = list28; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span22[num]; + ref QuestSequence reference20 = ref span9[3]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -308256,9 +254336,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000408u, new Vector3(106.85889f, -8f, -75.669556f), 148); + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000408u, new Vector3(106.85889f, -8f, -75.669556f), 148); obj19.Steps = list29; reference20 = obj19; questRoot4.QuestSequence = list22; @@ -308268,28 +254346,23 @@ public static class AssemblyQuestLoader num = 2; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "liza"; - index++; - span30[index] = "JerryWester"; + Span span13 = CollectionsMarshal.AsSpan(list30); + span13[0] = "liza"; + span13[1] = "JerryWester"; questRoot5.Author = list30; - index = 3; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference21 = ref span31[num]; + num = 3; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span14 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference21 = ref span14[0]; QuestSequence obj20 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj21 = new QuestStep(EInteractionType.AcceptQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania @@ -308299,19 +254372,16 @@ public static class AssemblyQuestLoader num3 = 2; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span33 = CollectionsMarshal.AsSpan(list33); - index3 = 0; - span33[index3] = 132; - index3++; - span33[index3] = 133; + Span span15 = CollectionsMarshal.AsSpan(list33); + span15[0] = 132; + span15[1] = 133; skipAetheryteCondition.InTerritory = list33; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj21.SkipConditions = skipConditions; reference22 = obj21; obj20.Steps = list32; reference21 = obj20; - num++; - ref QuestSequence reference23 = ref span31[num]; + ref QuestSequence reference23 = ref span14[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -308319,9 +254389,8 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + Span span16 = CollectionsMarshal.AsSpan(list34); + span16[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { Comment = "Use Chocobo whistle (if not yet unlocked)", ItemId = 6001u, @@ -308333,8 +254402,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span34[index2] = new QuestStep(EInteractionType.Interact, 1000257u, new Vector3(150.16394f, 10.852949f, -230.45703f), 133) + span16[1] = new QuestStep(EInteractionType.Interact, 1000257u, new Vector3(150.16394f, 10.852949f, -230.45703f), 133) { AethernetShortcut = new AethernetShortcut { @@ -308344,18 +254412,16 @@ public static class AssemblyQuestLoader }; obj22.Steps = list34; reference23 = obj22; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span14[2]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)152, SkipConditions = new SkipConditions @@ -308366,8 +254432,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span35[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) + span17[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 152) { StopDistance = 5f, Aetheryte = EAetheryteLocation.EastShroudHawthorneHut, @@ -308379,8 +254444,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span35[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152) + span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1006188u, new Vector3(-236.92688f, 3.5435789f, 283.4973f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -308400,16 +254464,13 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list36)[0] = "JerryWester"; questRoot6.Author = list36; - index = 3; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference25 = ref span37[num]; + num = 3; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span18 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference25 = ref span18[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -308417,9 +254478,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -308432,42 +254491,33 @@ public static class AssemblyQuestLoader }; obj24.Steps = list38; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span37[num]; + ref QuestSequence reference26 = ref span18[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list39 = new List(index2); - CollectionsMarshal.SetCount(list39, index2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num2 = 0; - ref QuestStep reference27 = ref span39[num2]; + num2 = 3; + List list39 = new List(num2); + CollectionsMarshal.SetCount(list39, num2); + Span span19 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference27 = ref span19[0]; QuestStep obj26 = new QuestStep(EInteractionType.Emote, 1000576u, new Vector3(21.469421f, -4.575074f, 221.75928f), 152) { Emote = EEmote.Dance }; - 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); + 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); obj26.CompletionQuestVariablesFlags = list40; reference27 = obj26; - num2++; - ref QuestStep reference28 = ref span39[num2]; + ref QuestStep reference28 = ref span19[1]; QuestStep obj27 = new QuestStep(EInteractionType.Emote, 1000563u, new Vector3(-3.768982f, -5.8594565f, 217.2732f), 152) { Emote = EEmote.Dance @@ -308475,49 +254525,35 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - 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); + 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); obj27.CompletionQuestVariablesFlags = list41; reference28 = obj27; - num2++; - ref QuestStep reference29 = ref span39[num2]; + ref QuestStep reference29 = ref span19[2]; QuestStep obj28 = new QuestStep(EInteractionType.Emote, 1000587u, new Vector3(-7.248047f, -8.407776f, 268.23828f), 152) { Emote = EEmote.Dance }; - 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); + 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); obj28.CompletionQuestVariablesFlags = list42; reference29 = obj28; obj25.Steps = list39; reference26 = obj25; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span18[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -308525,9 +254561,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006674u, new Vector3(21.98816f, -3.7664814f, 209.97937f), 152); obj29.Steps = list43; reference30 = obj29; questRoot6.QuestSequence = list37; @@ -308537,26 +254571,21 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list44)[0] = "JerryWester"; questRoot7.Author = list44; - index = 4; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference31 = ref span45[num]; + num = 4; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span23 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference31 = ref span23[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, @@ -308570,8 +254599,7 @@ public static class AssemblyQuestLoader }; obj30.Steps = list46; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span45[num]; + ref QuestSequence reference32 = ref span23[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -308579,23 +254607,19 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1000584u, new Vector3(44.785156f, -2.1720045f, 231.86072f), 152); + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1000584u, new Vector3(44.785156f, -2.1720045f, 231.86072f), 152); obj31.Steps = list47; reference32 = obj31; - num++; - ref QuestSequence reference33 = ref span45[num]; + ref QuestSequence reference33 = ref span23[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list48 = new List(index2); - CollectionsMarshal.SetCount(list48, index2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num2 = 0; - ref QuestStep reference34 = ref span48[num2]; + num2 = 5; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + Span span24 = CollectionsMarshal.AsSpan(list48); + ref QuestStep reference34 = ref span24[0]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, null, new Vector3(-34.76502f, -8.079653f, 264.55304f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -308603,9 +254627,7 @@ public static class AssemblyQuestLoader num3 = 1; List list49 = new List(num3); CollectionsMarshal.SetCount(list49, num3); - Span span49 = CollectionsMarshal.AsSpan(list49); - index3 = 0; - ref ComplexCombatData reference35 = ref span49[index3]; + ref ComplexCombatData reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; ComplexCombatData obj34 = new ComplexCombatData { DataId = 179u, @@ -308614,161 +254636,112 @@ public static class AssemblyQuestLoader int num4 = 6; List list50 = new List(num4); CollectionsMarshal.SetCount(list50, num4); - 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; + 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; obj34.CompletionQuestVariablesFlags = list50; reference35 = obj34; obj33.ComplexCombatData = list49; - 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; + 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; obj33.CompletionQuestVariablesFlags = list51; reference34 = obj33; - num2++; - ref QuestStep reference36 = ref span48[num2]; + ref QuestStep reference36 = ref span24[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list52; reference36 = questStep2; - num2++; - ref QuestStep reference37 = ref span48[num2]; + ref QuestStep reference37 = ref span24[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2001914u, new Vector3(-32.6391f, -3.7995605f, 321.3092f), 152); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list53; reference37 = questStep3; - num2++; - ref QuestStep reference38 = ref span48[num2]; + ref QuestStep reference38 = ref span24[3]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list54; reference38 = questStep4; - num2++; - ref QuestStep reference39 = ref span48[num2]; + ref QuestStep reference39 = ref span24[4]; QuestStep obj35 = new QuestStep(EInteractionType.Combat, null, new Vector3(47.758923f, 7.4985247f, 428.1574f), 152) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list55 = new List(index3); - CollectionsMarshal.SetCount(list55, index3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - ref ComplexCombatData reference40 = ref span55[num3]; + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + ref ComplexCombatData reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; ComplexCombatData obj36 = new ComplexCombatData { DataId = 7u, MinimumKillCount = 1u }; - 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; + 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; obj36.CompletionQuestVariablesFlags = list56; reference40 = obj36; obj35.ComplexCombatData = list55; num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - 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; + 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; obj35.CompletionQuestVariablesFlags = list57; reference39 = obj35; obj32.Steps = list48; reference33 = obj32; - num++; - ref QuestSequence reference41 = ref span45[num]; + ref QuestSequence reference41 = ref span23[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -308776,9 +254749,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000580u, new Vector3(25.65039f, -3.7080078f, 209.97937f), 152); obj37.Steps = list58; reference41 = obj37; questRoot7.QuestSequence = list45; @@ -308788,30 +254759,24 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list59)[0] = "JerryWester"; questRoot8.Author = list59; - index = 3; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference42 = ref span60[num]; + num = 3; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span32 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference42 = ref span32[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list61; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span60[num]; + ref QuestSequence reference43 = ref span32[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -308819,26 +254784,21 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.UseItem, 1002934u, new Vector3(-164.41602f, 8.398999f, -63.61493f), 153) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.UseItem, 1002934u, new Vector3(-164.41602f, 8.398999f, -63.61493f), 153) { ItemId = 2003006u }; obj39.Steps = list62; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span60[num]; + ref QuestSequence reference44 = ref span32[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj40.Steps = list63; reference44 = obj40; questRoot8.QuestSequence = list60; @@ -308848,16 +254808,13 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list64)[0] = "JerryWester"; questRoot9.Author = list64; - index = 6; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference45 = ref span65[num]; + num = 6; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span33 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference45 = ref span33[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -308865,28 +254822,23 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj41.Steps = list66; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span65[num]; + ref QuestSequence reference46 = ref span33[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.SouthShroudQuarrymill }; - num2++; - span67[num2] = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129) + span34[1] = new QuestStep(EInteractionType.Interact, 1003272u, new Vector3(-262.92822f, 16.2f, 51.407593f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -308897,8 +254849,7 @@ public static class AssemblyQuestLoader }; obj42.Steps = list67; reference46 = obj42; - num++; - ref QuestSequence reference47 = ref span65[num]; + ref QuestSequence reference47 = ref span33[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 @@ -308906,23 +254857,18 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1001208u, new Vector3(-228.16821f, 16f, 50.644653f), 129); obj43.Steps = list68; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span65[num]; + ref QuestSequence reference48 = ref span33[3]; QuestSequence obj44 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -308932,8 +254878,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list69; reference48 = obj44; - num++; - ref QuestSequence reference49 = ref span65[num]; + ref QuestSequence reference49 = ref span33[4]; QuestSequence obj45 = new QuestSequence { Sequence = 4 @@ -308941,9 +254886,8 @@ public static class AssemblyQuestLoader num2 = 4; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) + Span span35 = CollectionsMarshal.AsSpan(list70); + span35[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 135) { Aetheryte = EAetheryteLocation.LowerLaNosceaMorabyDrydocks, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -308968,8 +254912,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span70[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) + span35[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 134) { Aetheryte = EAetheryteLocation.MiddleLaNosceaSummerfordFarms, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -308994,8 +254937,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span70[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) + span35[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 138) { Aetheryte = EAetheryteLocation.WesternLaNosceaSwiftperch, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -309011,30 +254953,26 @@ public static class AssemblyQuestLoader } } }; - index2++; - span70[index2] = new QuestStep(EInteractionType.Interact, 1003393u, new Vector3(305.47034f, -36.325005f, 351.76624f), 138) + span35[3] = new QuestStep(EInteractionType.Interact, 1003393u, new Vector3(305.47034f, -36.325005f, 351.76624f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj45.Steps = list70; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span65[num]; + ref QuestSequence reference50 = ref span33[5]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)139 }; - num2++; - span71[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + span36[1] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj46.Steps = list71; reference50 = obj46; questRoot9.QuestSequence = list65; @@ -309044,16 +254982,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list72)[0] = "JerryWester"; questRoot10.Author = list72; - index = 3; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference51 = ref span73[num]; + num = 3; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span37 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference51 = ref span37[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -309061,43 +254996,35 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj47.Steps = list74; reference51 = obj47; - num++; - ref QuestSequence reference52 = ref span73[num]; + ref QuestSequence reference52 = ref span37[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true }; - num2++; - span75[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) + span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) { Mount = true }; - num2++; - ref QuestStep reference53 = ref span75[num2]; + ref QuestStep reference53 = ref span38[2]; QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(-585.1562f, -1.1847447f, -2.186262f), 139) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list76 = new List(index3); - CollectionsMarshal.SetCount(list76, index3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span76[num3] = new ComplexCombatData + num3 = 1; + List list76 = new List(num3); + CollectionsMarshal.SetCount(list76, num3); + CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData { DataId = 28u, MinimumKillCount = 3u, @@ -309108,8 +255035,7 @@ public static class AssemblyQuestLoader reference53 = obj49; obj48.Steps = list75; reference52 = obj48; - num++; - ref QuestSequence reference54 = ref span73[num]; + ref QuestSequence reference54 = ref span37[2]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -309117,19 +255043,16 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) + Span span39 = CollectionsMarshal.AsSpan(list77); + span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-523.5316f, 6.5687256f, 49.144527f), 139) { Mount = true }; - index2++; - span77[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) + span39[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-421.19717f, -2.5932822f, 150.81766f), 139) { Mount = true }; - index2++; - span77[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); + span39[2] = new QuestStep(EInteractionType.CompleteQuest, 1006193u, new Vector3(-334.0658f, -0.81366825f, 148.91272f), 139); obj50.Steps = list77; reference54 = obj50; questRoot10.QuestSequence = list73; @@ -309139,26 +255062,21 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list78)[0] = "JerryWester"; questRoot11.Author = list78; - index = 6; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference55 = ref span79[num]; + num = 6; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span40 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference55 = ref span40[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -309171,8 +255089,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list80; reference55 = obj51; - num++; - ref QuestSequence reference56 = ref span79[num]; + ref QuestSequence reference56 = ref span40[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -309180,23 +255097,18 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 1006199u, new Vector3(-141.71057f, 6.568114f, -23.178528f), 153); + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1006199u, new Vector3(-141.71057f, 6.568114f, -23.178528f), 153); obj52.Steps = list81; reference56 = obj52; - num++; - ref QuestSequence reference57 = ref span79[num]; + ref QuestSequence reference57 = ref span40[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list82 = new List(index2); - CollectionsMarshal.SetCount(list82, index2); - Span span82 = CollectionsMarshal.AsSpan(list82); - num2 = 0; - ref QuestStep reference58 = ref span82[num2]; + num2 = 1; + List list82 = new List(num2); + CollectionsMarshal.SetCount(list82, num2); + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -309204,15 +255116,12 @@ public static class AssemblyQuestLoader num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span83 = CollectionsMarshal.AsSpan(list83); - index3 = 0; - span83[index3] = 62u; + CollectionsMarshal.AsSpan(list83)[0] = 62u; obj54.KillEnemyDataIds = list83; reference58 = obj54; obj53.Steps = list82; reference57 = obj53; - num++; - ref QuestSequence reference59 = ref span79[num]; + ref QuestSequence reference59 = ref span40[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -309220,41 +255129,33 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.Interact, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Interact, 1006201u, new Vector3(-65.4765f, 4.3282256f, -27.237366f), 153); obj55.Steps = list84; reference59 = obj55; - num++; - ref QuestSequence reference60 = ref span79[num]; + ref QuestSequence reference60 = ref span40[4]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list85 = new List(index2); - CollectionsMarshal.SetCount(list85, index2); - Span span85 = CollectionsMarshal.AsSpan(list85); - num2 = 0; - ref QuestStep reference61 = ref span85[num2]; + num2 = 1; + List list85 = new List(num2); + CollectionsMarshal.SetCount(list85, num2); + ref QuestStep reference61 = ref CollectionsMarshal.AsSpan(list85)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1006203u, new Vector3(32.700073f, 10.692124f, -12.985474f), 153); SinglePlayerDutyOptions obj57 = new SinglePlayerDutyOptions { Enabled = true }; - 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"; + 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"; obj57.Notes = list86; questStep5.SinglePlayerDutyOptions = obj57; reference61 = questStep5; obj56.Steps = list85; reference60 = obj56; - num++; - ref QuestSequence reference62 = ref span79[num]; + ref QuestSequence reference62 = ref span40[5]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -309262,9 +255163,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000590u, new Vector3(-165.9419f, 9.869227f, -81.34589f), 153); obj58.Steps = list87; reference62 = obj58; questRoot11.QuestSequence = list79; @@ -309274,30 +255173,24 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list88)[0] = "JerryWester"; questRoot12.Author = list88; - index = 4; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference63 = ref span89[num]; + num = 4; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span41 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference63 = ref span41[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list90; reference63 = obj59; - num++; - ref QuestSequence reference64 = ref span89[num]; + ref QuestSequence reference64 = ref span41[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -309305,28 +255198,23 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + Span span42 = CollectionsMarshal.AsSpan(list91); + span42[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - index2++; - span91[index2] = new QuestStep(EInteractionType.Interact, 1007417u, new Vector3(1.2359009f, -3.0000014f, -57.66388f), 212); + span42[1] = new QuestStep(EInteractionType.Interact, 1007417u, new Vector3(1.2359009f, -3.0000014f, -57.66388f), 212); obj60.Steps = list91; reference64 = obj60; - num++; - ref QuestSequence reference65 = ref span89[num]; + ref QuestSequence reference65 = ref span41[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -309337,8 +255225,7 @@ public static class AssemblyQuestLoader }; obj61.Steps = list92; reference65 = obj61; - num++; - ref QuestSequence reference66 = ref span89[num]; + ref QuestSequence reference66 = ref span41[3]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -309346,9 +255233,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006240u, new Vector3(14.389221f, -44.86571f, 262.65344f), 154) { Emote = EEmote.Soothe }; @@ -309361,33 +255246,27 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list94)[0] = "JerryWester"; questRoot13.Author = list94; - index = 3; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference67 = ref span95[num]; + num = 3; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span43 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference67 = ref span43[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj63.Steps = list96; reference67 = obj63; - num++; - ref QuestSequence reference68 = ref span95[num]; + ref QuestSequence reference68 = ref span43[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -309395,17 +255274,14 @@ public static class AssemblyQuestLoader num2 = 3; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 154) + Span span44 = CollectionsMarshal.AsSpan(list97); + span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 154) { StopDistance = 5f, Aetheryte = EAetheryteLocation.NorthShroudFallgourdFloat }; - index2++; - span97[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.10292f, -56.837837f, 295.99493f), 154); - index2++; - ref QuestStep reference69 = ref span97[index2]; + span44[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-214.10292f, -56.837837f, 295.99493f), 154); + ref QuestStep reference69 = ref span44[2]; QuestStep obj65 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.81464f, -56.335888f, 302.93182f), 154) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -309413,9 +255289,7 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span98 = CollectionsMarshal.AsSpan(list98); - index3 = 0; - span98[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list98)[0] = new ComplexCombatData { DataId = 179u, MinimumKillCount = 3u @@ -309424,18 +255298,15 @@ public static class AssemblyQuestLoader reference69 = obj65; obj64.Steps = list97; reference68 = obj64; - num++; - ref QuestSequence reference70 = ref span95[num]; + ref QuestSequence reference70 = ref span43[2]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; @@ -309448,16 +255319,13 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list100)[0] = "JerryWester"; questRoot14.Author = list100; - index = 5; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference71 = ref span101[num]; + num = 5; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span45 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference71 = ref span45[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -309465,9 +255333,7 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006279u, new Vector3(-231.4336f, 21.512743f, 339.49792f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil, SkipConditions = new SkipConditions @@ -309480,34 +255346,28 @@ public static class AssemblyQuestLoader }; obj67.Steps = list102; reference71 = obj67; - num++; - ref QuestSequence reference72 = ref span101[num]; + ref QuestSequence reference72 = ref span45[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list103 = new List(index2); - CollectionsMarshal.SetCount(list103, index2); - Span span103 = CollectionsMarshal.AsSpan(list103); - num2 = 0; - ref QuestStep reference73 = ref span103[num2]; + num2 = 1; + List list103 = new List(num2); + CollectionsMarshal.SetCount(list103, num2); + ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list103)[0]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2002646u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list104 = new List(index3); - CollectionsMarshal.SetCount(list104, index3); - Span span104 = CollectionsMarshal.AsSpan(list104); - num3 = 0; - span104[num3] = 1888u; + num3 = 1; + List list104 = new List(num3); + CollectionsMarshal.SetCount(list104, num3); + CollectionsMarshal.AsSpan(list104)[0] = 1888u; obj69.KillEnemyDataIds = list104; reference73 = obj69; obj68.Steps = list103; reference72 = obj68; - num++; - ref QuestSequence reference74 = ref span101[num]; + ref QuestSequence reference74 = ref span45[2]; QuestSequence obj70 = new QuestSequence { Sequence = 2 @@ -309515,27 +255375,21 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 2002574u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153); + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 2002574u, new Vector3(-68.711426f, 1.296936f, 301.74707f), 153); obj70.Steps = list105; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span101[num]; + ref QuestSequence reference75 = ref span45[3]; QuestSequence obj71 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj71.Steps = list106; reference75 = obj71; - num++; - ref QuestSequence reference76 = ref span101[num]; + ref QuestSequence reference76 = ref span45[4]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -309543,29 +255397,24 @@ public static class AssemblyQuestLoader num2 = 5; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) + Span span46 = CollectionsMarshal.AsSpan(list107); + span46[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-180.60515f, 17.857697f, -278.74887f), 146) { AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - index2++; - span107[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) + span46[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-183.61136f, 3.5857017f, -248.78667f), 146) { DisableNavmesh = true }; - index2++; - span107[index2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) + span46[2] = new QuestStep(EInteractionType.Interact, 1004596u, new Vector3(-471.27496f, -2.650424f, 95.628296f), 146) { TargetTerritoryId = (ushort)146 }; - index2++; - span107[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) + span46[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 146) { Aetheryte = EAetheryteLocation.SouthernThanalanForgottenSprings }; - index2++; - span107[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); + span46[4] = new QuestStep(EInteractionType.CompleteQuest, 1004917u, new Vector3(-358.6328f, 8.469424f, 422.4154f), 146); obj72.Steps = list107; reference76 = obj72; questRoot14.QuestSequence = list101; @@ -309575,26 +255424,21 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list108)[0] = "JerryWester"; questRoot15.Author = list108; - index = 2; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference77 = ref span109[num]; + num = 2; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span47 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference77 = ref span47[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -309607,8 +255451,7 @@ public static class AssemblyQuestLoader }; obj73.Steps = list110; reference77 = obj73; - num++; - ref QuestSequence reference78 = ref span109[num]; + ref QuestSequence reference78 = ref span47[1]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -309616,9 +255459,7 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -309631,26 +255472,21 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list112)[0] = "JerryWester"; questRoot16.Author = list112; - index = 4; - List list113 = new List(index); - CollectionsMarshal.SetCount(list113, index); - Span span113 = CollectionsMarshal.AsSpan(list113); - num = 0; - ref QuestSequence reference79 = ref span113[num]; + num = 4; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + Span span48 = CollectionsMarshal.AsSpan(list113); + ref QuestSequence reference79 = ref span48[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone, @@ -309664,8 +255500,7 @@ public static class AssemblyQuestLoader }; obj75.Steps = list114; reference79 = obj75; - num++; - ref QuestSequence reference80 = ref span113[num]; + ref QuestSequence reference80 = ref span48[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -309673,27 +255508,21 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1033920u, new Vector3(-387.35028f, -56.033897f, 105.241455f), 145); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1033920u, new Vector3(-387.35028f, -56.033897f, 105.241455f), 145); obj76.Steps = list115; reference80 = obj76; - num++; - ref QuestSequence reference81 = ref span113[num]; + ref QuestSequence reference81 = ref span48[2]; QuestSequence obj77 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj77.Steps = list116; reference81 = obj77; - num++; - ref QuestSequence reference82 = ref span113[num]; + ref QuestSequence reference82 = ref span48[3]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -309701,9 +255530,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1003958u, new Vector3(-497.70352f, -19.630796f, 39.993896f), 145); obj78.Steps = list117; reference82 = obj78; questRoot16.QuestSequence = list113; @@ -309713,26 +255540,21 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list118)[0] = "JerryWester"; questRoot17.Author = list118; - index = 5; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference83 = ref span119[num]; + num = 5; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span49 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference83 = ref span49[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -309745,8 +255567,7 @@ public static class AssemblyQuestLoader }; obj79.Steps = list120; reference83 = obj79; - num++; - ref QuestSequence reference84 = ref span119[num]; + ref QuestSequence reference84 = ref span49[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -309754,27 +255575,21 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1006434u, new Vector3(237.14038f, 302f, -194.99512f), 155); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1006434u, new Vector3(237.14038f, 302f, -194.99512f), 155); obj80.Steps = list121; reference84 = obj80; - num++; - ref QuestSequence reference85 = ref span119[num]; + ref QuestSequence reference85 = ref span49[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj81.Steps = list122; reference85 = obj81; - num++; - ref QuestSequence reference86 = ref span119[num]; + ref QuestSequence reference86 = ref span49[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -309782,23 +255597,18 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1006383u, new Vector3(138.87231f, 285.06497f, 175.21924f), 155); obj82.Steps = list123; reference86 = obj82; - num++; - ref QuestSequence reference87 = ref span119[num]; + ref QuestSequence reference87 = ref span49[4]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; @@ -309811,16 +255621,13 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list125)[0] = "JerryWester"; questRoot18.Author = list125; - index = 3; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference88 = ref span126[num]; + num = 3; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span50 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference88 = ref span50[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -309828,9 +255635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -309843,20 +255648,17 @@ public static class AssemblyQuestLoader }; obj84.Steps = list127; reference88 = obj84; - num++; - ref QuestSequence reference89 = ref span126[num]; + ref QuestSequence reference89 = ref span50[1]; QuestSequence obj85 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, null, new Vector3(-321.0041f, 255.60681f, -159.89929f), 155) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -309864,9 +255666,7 @@ public static class AssemblyQuestLoader num3 = 1; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - index3 = 0; - span129[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list129)[0] = new ComplexCombatData { DataId = 132u, MinimumKillCount = 3u, @@ -309877,8 +255677,7 @@ public static class AssemblyQuestLoader reference90 = obj86; obj85.Steps = list128; reference89 = obj85; - num++; - ref QuestSequence reference91 = ref span126[num]; + ref QuestSequence reference91 = ref span50[2]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -309886,9 +255685,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006461u, new Vector3(-415.9762f, 224.99998f, -299.73297f), 155); obj87.Steps = list130; reference91 = obj87; questRoot18.QuestSequence = list126; @@ -309898,26 +255695,21 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; questRoot19.Author = list131; - index = 4; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference92 = ref span132[num]; + num = 4; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span52 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference92 = ref span52[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -309930,8 +255722,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list133; reference92 = obj88; - num++; - ref QuestSequence reference93 = ref span132[num]; + ref QuestSequence reference93 = ref span52[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -309939,9 +255730,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1006710u, new Vector3(-123.73547f, 7.0426483f, -149.98096f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -309952,18 +255741,15 @@ public static class AssemblyQuestLoader }; obj89.Steps = list134; reference93 = obj89; - num++; - ref QuestSequence reference94 = ref span132[num]; + ref QuestSequence reference94 = ref span52[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref QuestStep reference95 = ref span135[num2]; + num2 = 1; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj91 = new QuestStep(EInteractionType.Combat, 2002195u, new Vector3(-528.0995f, 26.260742f, -239.61243f), 148) { StopDistance = 4f, @@ -309976,18 +255762,15 @@ public static class AssemblyQuestLoader ItemId = 2003019u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list136 = new List(index3); - CollectionsMarshal.SetCount(list136, index3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num3 = 0; - span136[num3] = 1894u; + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + CollectionsMarshal.AsSpan(list136)[0] = 1894u; obj91.KillEnemyDataIds = list136; reference95 = obj91; obj90.Steps = list135; reference94 = obj90; - num++; - ref QuestSequence reference96 = ref span132[num]; + ref QuestSequence reference96 = ref span52[3]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -309995,11 +255778,9 @@ public static class AssemblyQuestLoader num2 = 2; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -310017,34 +255798,28 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list138)[0] = "JerryWester"; questRoot20.Author = list138; - index = 5; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference97 = ref span139[num]; + num = 5; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span54 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference97 = ref span54[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj93.Steps = list140; reference97 = obj93; - num++; - ref QuestSequence reference98 = ref span139[num]; + ref QuestSequence reference98 = ref span54[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -310052,9 +255827,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - ref QuestStep reference99 = ref span141[index2]; + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list141)[0]; QuestStep obj95 = new QuestStep(EInteractionType.Combat, null, new Vector3(-429.60284f, -15.201682f, -477.29346f), 156) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -310062,41 +255835,36 @@ public static class AssemblyQuestLoader num3 = 5; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span142 = CollectionsMarshal.AsSpan(list142); - index3 = 0; - span142[index3] = new ComplexCombatData + Span span55 = CollectionsMarshal.AsSpan(list142); + span55[0] = new ComplexCombatData { DataId = 55u, MinimumKillCount = 3u, RewardItemId = 2003022u, RewardItemCount = 3 }; - index3++; - span142[index3] = new ComplexCombatData + span55[1] = new ComplexCombatData { DataId = 61u, MinimumKillCount = 3u, RewardItemId = 2003022u, RewardItemCount = 3 }; - index3++; - span142[index3] = new ComplexCombatData + span55[2] = new ComplexCombatData { DataId = 62u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - index3++; - span142[index3] = new ComplexCombatData + span55[3] = new ComplexCombatData { DataId = 63u, MinimumKillCount = 0u, RewardItemId = 2003021u, RewardItemCount = 3 }; - index3++; - span142[index3] = new ComplexCombatData + span55[4] = new ComplexCombatData { DataId = 64u, MinimumKillCount = 0u, @@ -310107,22 +255875,18 @@ public static class AssemblyQuestLoader reference99 = obj95; obj94.Steps = list141; reference98 = obj94; - num++; - ref QuestSequence reference100 = ref span139[num]; + ref QuestSequence reference100 = ref span54[2]; QuestSequence obj96 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj96.Steps = list143; reference100 = obj96; - num++; - ref QuestSequence reference101 = ref span139[num]; + ref QuestSequence reference101 = ref span54[3]; QuestSequence obj97 = new QuestSequence { Sequence = 3 @@ -310130,23 +255894,18 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.Interact, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156); + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1006988u, new Vector3(41.33667f, 28.999998f, -795.4681f), 156); obj97.Steps = list144; reference101 = obj97; - num++; - ref QuestSequence reference102 = ref span139[num]; + ref QuestSequence reference102 = ref span54[4]; QuestSequence obj98 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj98.Steps = list145; reference102 = obj98; questRoot20.QuestSequence = list139; @@ -310156,16 +255915,13 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list146)[0] = "JerryWester"; questRoot21.Author = list146; - index = 4; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference103 = ref span147[num]; + num = 4; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span56 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference103 = ref span56[0]; QuestSequence obj99 = new QuestSequence { Sequence = 0 @@ -310173,9 +255929,7 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006638u, new Vector3(37.979614f, 4.051331f, 420.27917f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCampBluefog, SkipConditions = new SkipConditions @@ -310188,27 +255942,23 @@ public static class AssemblyQuestLoader }; obj99.Steps = list148; reference103 = obj99; - num++; - ref QuestSequence reference104 = ref span147[num]; + ref QuestSequence reference104 = ref span56[1]; QuestSequence obj100 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; - num2++; - span149[num2] = new QuestStep(EInteractionType.Interact, 1006647u, new Vector3(-28.244446f, 46.96473f, -17.654724f), 147); + span57[1] = new QuestStep(EInteractionType.Interact, 1006647u, new Vector3(-28.244446f, 46.96473f, -17.654724f), 147); obj100.Steps = list149; reference104 = obj100; - num++; - ref QuestSequence reference105 = ref span147[num]; + ref QuestSequence reference105 = ref span56[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 @@ -310216,33 +255966,25 @@ public static class AssemblyQuestLoader num2 = 3; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - ref QuestStep reference106 = ref span150[index2]; + Span span58 = CollectionsMarshal.AsSpan(list150); + ref QuestStep reference106 = ref span58[0]; QuestStep obj102 = new QuestStep(EInteractionType.Emote, 1006648u, new Vector3(-76.12726f, 49.98848f, -59.494934f), 147) { Emote = EEmote.Psych }; - 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); + 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); obj102.CompletionQuestVariablesFlags = list151; reference106 = obj102; - index2++; - ref QuestStep reference107 = ref span150[index2]; + ref QuestStep reference107 = ref span58[1]; QuestStep obj103 = new QuestStep(EInteractionType.Emote, 1006650u, new Vector3(-85.19116f, 48f, -34.40918f), 147) { Emote = EEmote.Psych @@ -310250,59 +255992,43 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - 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); + 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); obj103.CompletionQuestVariablesFlags = list152; reference107 = obj103; - index2++; - ref QuestStep reference108 = ref span150[index2]; + ref QuestStep reference108 = ref span58[2]; QuestStep obj104 = new QuestStep(EInteractionType.Emote, 1006649u, new Vector3(-34.53119f, 46.999996f, 32.73047f), 147) { Emote = EEmote.Psych }; - 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); + 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); obj104.CompletionQuestVariablesFlags = list153; reference108 = obj104; obj101.Steps = list150; reference105 = obj101; - num++; - ref QuestSequence reference109 = ref span147[num]; + ref QuestSequence reference109 = ref span56[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, Emote = EEmote.Psych @@ -310316,16 +256042,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list155)[0] = "JerryWester"; questRoot22.Author = list155; - index = 4; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference110 = ref span156[num]; + num = 4; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span62 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference110 = ref span62[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -310333,9 +256056,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -310349,18 +256070,15 @@ public static class AssemblyQuestLoader }; obj106.Steps = list157; reference110 = obj106; - num++; - ref QuestSequence reference111 = ref span156[num]; + ref QuestSequence reference111 = ref span62[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, SkipConditions = new SkipConditions @@ -310373,8 +256091,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list158; reference111 = obj107; - num++; - ref QuestSequence reference112 = ref span156[num]; + ref QuestSequence reference112 = ref span62[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -310382,9 +256099,8 @@ public static class AssemblyQuestLoader num2 = 12; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + Span span63 = CollectionsMarshal.AsSpan(list159); + span63[0] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 31337u, SkipConditions = new SkipConditions @@ -310398,8 +256114,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[1] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20642u, SkipConditions = new SkipConditions @@ -310413,8 +256128,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[2] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20643u, SkipConditions = new SkipConditions @@ -310428,8 +256142,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[3] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20644u, SkipConditions = new SkipConditions @@ -310443,8 +256156,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[4] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20645u, SkipConditions = new SkipConditions @@ -310458,8 +256170,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[5] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20646u, SkipConditions = new SkipConditions @@ -310473,8 +256184,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[6] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20647u, SkipConditions = new SkipConditions @@ -310488,8 +256198,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[7] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20648u, SkipConditions = new SkipConditions @@ -310503,8 +256212,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[8] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20649u, SkipConditions = new SkipConditions @@ -310518,8 +256226,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[9] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20650u, SkipConditions = new SkipConditions @@ -310533,8 +256240,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.UseItem, null, null, 147) + span63[10] = new QuestStep(EInteractionType.UseItem, null, null, 147) { ItemId = 20651u, SkipConditions = new SkipConditions @@ -310548,8 +256254,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span159[index2] = new QuestStep(EInteractionType.Duty, null, null, 147) + span63[11] = new QuestStep(EInteractionType.Duty, null, null, 147) { DutyOptions = new DutyOptions { @@ -310559,18 +256264,15 @@ public static class AssemblyQuestLoader }; obj108.Steps = list159; reference112 = obj108; - num++; - ref QuestSequence reference113 = ref span156[num]; + ref QuestSequence reference113 = ref span62[3]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -310583,16 +256285,13 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list161)[0] = "JerryWester"; questRoot23.Author = list161; - index = 8; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference114 = ref span162[num]; + num = 8; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span64 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference114 = ref span64[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -310600,32 +256299,26 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj110.Steps = list163; reference114 = obj110; - num++; - ref QuestSequence reference115 = ref span162[num]; + ref QuestSequence reference115 = ref span64[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span164[num2] = new QuestStep(EInteractionType.Interact, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); + span65[1] = new QuestStep(EInteractionType.Interact, 1007722u, new Vector3(2.4871826f, 5.1752613E-07f, 4.5929565f), 212); obj111.Steps = list164; reference115 = obj111; - num++; - ref QuestSequence reference116 = ref span162[num]; + ref QuestSequence reference116 = ref span64[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -310633,53 +256326,44 @@ public static class AssemblyQuestLoader num2 = 3; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212) + Span span66 = CollectionsMarshal.AsSpan(list165); + span66[0] = new QuestStep(EInteractionType.AcceptQuest, 1007534u, new Vector3(1.4800415f, -3.0000014f, -48.722107f), 212) { PickUpQuestId = new QuestId(1048) }; - index2++; - span165[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(618.9289f, 23.936241f, 458.50406f), 137) + span66[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(618.9289f, 23.936241f, 458.50406f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - index2++; - span165[index2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); + span66[2] = new QuestStep(EInteractionType.Interact, 1006273u, new Vector3(619.0126f, 23.936245f, 455.10022f), 137); obj112.Steps = list165; reference116 = obj112; - num++; - ref QuestSequence reference117 = ref span162[num]; + ref QuestSequence reference117 = ref span64[3]; QuestSequence obj113 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; - num2++; - span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.752865f, 72.71639f, -22.499773f), 137) + span67[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.752865f, 72.71639f, -22.499773f), 137) { Mount = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.34223f, 86.050835f, -4.656612f), 137) + span67[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-117.34223f, 86.050835f, -4.656612f), 137) { Fly = true }; - num2++; - span166[num2] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); + span67[3] = new QuestStep(EInteractionType.Interact, 1006309u, new Vector3(-116.56372f, 86.051636f, -5.874817f), 137); obj113.Steps = list166; reference117 = obj113; - num++; - ref QuestSequence reference118 = ref span162[num]; + ref QuestSequence reference118 = ref span64[4]; QuestSequence obj114 = new QuestSequence { Sequence = 4 @@ -310687,33 +256371,28 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.1786175f, 71.18964f, -17.323349f), 137) + Span span68 = CollectionsMarshal.AsSpan(list167); + span68[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(9.1786175f, 71.18964f, -17.323349f), 137) { Fly = true }; - index2++; - span167[index2] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); + span68[1] = new QuestStep(EInteractionType.Interact, 1006305u, new Vector3(10.60498f, 71.47817f, -16.617126f), 137); obj114.Steps = list167; reference118 = obj114; - num++; - ref QuestSequence reference119 = ref span162[num]; + ref QuestSequence reference119 = ref span64[5]; QuestSequence obj115 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference120 = ref span168[num2]; + ref QuestStep reference120 = ref span69[1]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -310721,15 +256400,12 @@ public static class AssemblyQuestLoader num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span169 = CollectionsMarshal.AsSpan(list169); - index3 = 0; - span169[index3] = 320u; + CollectionsMarshal.AsSpan(list169)[0] = 320u; obj116.KillEnemyDataIds = list169; reference120 = obj116; obj115.Steps = list168; reference119 = obj115; - num++; - ref QuestSequence reference121 = ref span162[num]; + ref QuestSequence reference121 = ref span64[6]; QuestSequence obj117 = new QuestSequence { Sequence = 6 @@ -310737,23 +256413,18 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.Interact, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137); + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.Interact, 1007738u, new Vector3(29.129395f, 54.01148f, 484.9469f), 137); obj117.Steps = list170; reference121 = obj117; - num++; - ref QuestSequence reference122 = ref span162[num]; + ref QuestSequence reference122 = ref span64[7]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; @@ -310766,16 +256437,13 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list172)[0] = "JerryWester"; questRoot24.Author = list172; - index = 2; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference123 = ref span173[num]; + num = 2; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span70 = CollectionsMarshal.AsSpan(list173); + ref QuestSequence reference123 = ref span70[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -310783,9 +256451,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.AcceptQuest, 1007739u, new Vector3(-34.53119f, 70.347595f, 2.7618408f), 137) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.AcceptQuest, 1007739u, new Vector3(-34.53119f, 70.347595f, 2.7618408f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport, SkipConditions = new SkipConditions @@ -310798,23 +256464,20 @@ public static class AssemblyQuestLoader }; obj119.Steps = list174; reference123 = obj119; - num++; - ref QuestSequence reference124 = ref span173[num]; + ref QuestSequence reference124 = ref span70[1]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span175[num2] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj120.Steps = list175; reference124 = obj120; questRoot24.QuestSequence = list173; @@ -310824,16 +256487,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list176)[0] = "JerryWester"; questRoot25.Author = list176; - index = 3; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference125 = ref span177[num]; + num = 3; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span72 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference125 = ref span72[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -310841,27 +256501,21 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj121.Steps = list178; reference125 = obj121; - num++; - ref QuestSequence reference126 = ref span177[num]; + ref QuestSequence reference126 = ref span72[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj122.Steps = list179; reference126 = obj122; - num++; - ref QuestSequence reference127 = ref span177[num]; + ref QuestSequence reference127 = ref span72[2]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue @@ -310869,9 +256523,7 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; @@ -310884,26 +256536,21 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - Span span181 = CollectionsMarshal.AsSpan(list181); - index = 0; - span181[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list181)[0] = "JerryWester"; questRoot26.Author = list181; - index = 4; - List list182 = new List(index); - CollectionsMarshal.SetCount(list182, index); - Span span182 = CollectionsMarshal.AsSpan(list182); - num = 0; - ref QuestSequence reference128 = ref span182[num]; + num = 4; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + Span span73 = CollectionsMarshal.AsSpan(list182); + ref QuestSequence reference128 = ref span73[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -310916,8 +256563,7 @@ public static class AssemblyQuestLoader }; obj124.Steps = list183; reference128 = obj124; - num++; - ref QuestSequence reference129 = ref span182[num]; + ref QuestSequence reference129 = ref span73[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -310925,43 +256571,36 @@ public static class AssemblyQuestLoader num2 = 2; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.UseItem, null, null, 156) + Span span74 = CollectionsMarshal.AsSpan(list184); + span74[0] = new QuestStep(EInteractionType.UseItem, null, null, 156) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - index2++; - span184[index2] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); + span74[1] = new QuestStep(EInteractionType.Interact, 1003785u, new Vector3(-489.8299f, 21.48999f, -381.97913f), 140); obj125.Steps = list184; reference129 = obj125; - num++; - ref QuestSequence reference130 = ref span182[num]; + ref QuestSequence reference130 = ref span73[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)212 }; - num2++; - span185[num2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span75[1] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - num2++; - span185[num2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); + span75[2] = new QuestStep(EInteractionType.Interact, 1006693u, new Vector3(39.29187f, 1.2148079f, 0.8086548f), 212); obj126.Steps = list185; reference130 = obj126; - num++; - ref QuestSequence reference131 = ref span182[num]; + ref QuestSequence reference131 = ref span73[3]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -310969,9 +256608,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000168u, new Vector3(-75.48645f, -0.5013741f, -5.081299f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; @@ -310984,30 +256621,24 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list187)[0] = "JerryWester"; questRoot27.Author = list187; - index = 4; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference132 = ref span188[num]; + num = 4; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span76 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference132 = ref span76[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj128.Steps = list189; reference132 = obj128; - num++; - ref QuestSequence reference133 = ref span188[num]; + ref QuestSequence reference133 = ref span76[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -311015,35 +256646,29 @@ public static class AssemblyQuestLoader num2 = 2; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) + Span span77 = CollectionsMarshal.AsSpan(list190); + span77[0] = new QuestStep(EInteractionType.Interact, 2001717u, new Vector3(25.497803f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212 }; - index2++; - span190[index2] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); + span77[1] = new QuestStep(EInteractionType.Interact, 1007478u, new Vector3(-2.822998f, -3.0000014f, -56.229553f), 212); obj129.Steps = list190; reference133 = obj129; - num++; - ref QuestSequence reference134 = ref span188[num]; + ref QuestSequence reference134 = ref span76[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj130.Steps = list191; reference134 = obj130; - num++; - ref QuestSequence reference135 = ref span188[num]; + ref QuestSequence reference135 = ref span76[3]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -311051,19 +256676,16 @@ public static class AssemblyQuestLoader num2 = 3; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span78 = CollectionsMarshal.AsSpan(list192); + span78[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - index2++; - span192[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span78[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); + span78[2] = new QuestStep(EInteractionType.CompleteQuest, 1007724u, new Vector3(1.0223389f, -1.9957249f, -45.79236f), 351); obj131.Steps = list192; reference135 = obj131; questRoot27.QuestSequence = list188; @@ -311073,30 +256695,24 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list193)[0] = "JerryWester"; questRoot28.Author = list193; - index = 4; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference136 = ref span194[num]; + num = 4; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span79 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference136 = ref span79[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj132.Steps = list195; reference136 = obj132; - num++; - ref QuestSequence reference137 = ref span194[num]; + ref QuestSequence reference137 = ref span79[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -311104,30 +256720,24 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.Interact, 1008595u, new Vector3(79.60632f, 46.311092f, -251.69757f), 140) + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1008595u, new Vector3(79.60632f, 46.311092f, -251.69757f), 140) { AetheryteShortcut = EAetheryteLocation.WesternThanalanHorizon }; obj133.Steps = list196; reference137 = obj133; - num++; - ref QuestSequence reference138 = ref span194[num]; + ref QuestSequence reference138 = ref span79[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj134.Steps = list197; reference138 = obj134; - num++; - ref QuestSequence reference139 = ref span194[num]; + ref QuestSequence reference139 = ref span79[3]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -311135,9 +256745,7 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1008597u, new Vector3(57.66382f, 44.999996f, -220.93542f), 140); obj135.Steps = list198; reference139 = obj135; questRoot28.QuestSequence = list194; @@ -311147,30 +256755,24 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list199)[0] = "JerryWester"; questRoot29.Author = list199; - index = 3; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference140 = ref span200[num]; + num = 3; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span80 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference140 = ref span80[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj136.Steps = list201; reference140 = obj136; - num++; - ref QuestSequence reference141 = ref span200[num]; + ref QuestSequence reference141 = ref span80[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -311178,9 +256780,7 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1008700u, new Vector3(-132.52466f, 4.1f, -111.92493f), 130) { AethernetShortcut = new AethernetShortcut { @@ -311190,18 +256790,15 @@ public static class AssemblyQuestLoader }; obj137.Steps = list202; reference141 = obj137; - num++; - ref QuestSequence reference142 = ref span200[num]; + ref QuestSequence reference142 = ref span80[2]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -311218,16 +256815,13 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - Span span204 = CollectionsMarshal.AsSpan(list204); - index = 0; - span204[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list204)[0] = "JerryWester"; questRoot30.Author = list204; - index = 5; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - ref QuestSequence reference143 = ref span205[num]; + num = 5; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + Span span81 = CollectionsMarshal.AsSpan(list205); + ref QuestSequence reference143 = ref span81[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -311235,9 +256829,7 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1008623u, new Vector3(24.887451f, 6.999997f, -80.03363f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -311250,28 +256842,24 @@ public static class AssemblyQuestLoader }; obj139.Steps = list206; reference143 = obj139; - num++; - ref QuestSequence reference144 = ref span205[num]; + ref QuestSequence reference144 = ref span81[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)140, ItemId = 30362u }; - num2++; - span207[num2] = new QuestStep(EInteractionType.Interact, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); + span82[1] = new QuestStep(EInteractionType.Interact, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); obj140.Steps = list207; reference144 = obj140; - num++; - ref QuestSequence reference145 = ref span205[num]; + ref QuestSequence reference145 = ref span81[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -311279,89 +256867,67 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.60025f, 25.983873f, -369.20984f), 140) + Span span83 = CollectionsMarshal.AsSpan(list208); + span83[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.60025f, 25.983873f, -369.20984f), 140) { Fly = true }; - index2++; - span208[index2] = new QuestStep(EInteractionType.Interact, 1008628u, new Vector3(-431.8761f, 25.983873f, -368.36804f), 140); + span83[1] = new QuestStep(EInteractionType.Interact, 1008628u, new Vector3(-431.8761f, 25.983873f, -368.36804f), 140); obj141.Steps = list208; reference145 = obj141; - num++; - ref QuestSequence reference146 = ref span205[num]; + ref QuestSequence reference146 = ref span81[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference147 = ref span209[num2]; + ref QuestStep reference147 = ref span84[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1008636u, new Vector3(-415.91516f, 23.113977f, -394.6136f), 140); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list210; reference147 = questStep6; - num2++; - span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-412.0704f, 23.008799f, -338.06842f), 140) + span84[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-412.0704f, 23.008799f, -338.06842f), 140) { Fly = true }; - num2++; - ref QuestStep reference148 = ref span209[num2]; + ref QuestStep reference148 = ref span84[3]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list211; reference148 = questStep7; - num2++; - span209[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.07297f, 30.999876f, -328.30157f), 140) + span84[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-443.07297f, 30.999876f, -328.30157f), 140) { Fly = true }; - num2++; - span209[num2] = new QuestStep(EInteractionType.Interact, 1008635u, new Vector3(-444.29694f, 30.999878f, -329.64075f), 140); + span84[5] = new QuestStep(EInteractionType.Interact, 1008635u, new Vector3(-444.29694f, 30.999878f, -329.64075f), 140); obj142.Steps = list209; reference146 = obj142; - num++; - ref QuestSequence reference149 = ref span205[num]; + ref QuestSequence reference149 = ref span81[4]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue @@ -311369,14 +256935,12 @@ public static class AssemblyQuestLoader num2 = 2; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.36285f, 19.00904f, -354.65195f), 140) + Span span87 = CollectionsMarshal.AsSpan(list212); + span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-496.36285f, 19.00904f, -354.65195f), 140) { Fly = true }; - index2++; - span212[index2] = new QuestStep(EInteractionType.CompleteQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); + span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1008639u, new Vector3(-497.94766f, 19.009045f, -354.75702f), 140); obj143.Steps = list212; reference149 = obj143; questRoot30.QuestSequence = list205; @@ -311386,26 +256950,21 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list213)[0] = "JerryWester"; questRoot31.Author = list213; - index = 5; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference150 = ref span214[num]; + num = 5; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span88 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference150 = ref span88[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -311418,8 +256977,7 @@ public static class AssemblyQuestLoader }; obj144.Steps = list215; reference150 = obj144; - num++; - ref QuestSequence reference151 = ref span214[num]; + ref QuestSequence reference151 = ref span88[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 @@ -311427,30 +256985,24 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.Interact, 1006530u, new Vector3(21.927185f, 20.746975f, -682.06305f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj145.Steps = list216; reference151 = obj145; - num++; - ref QuestSequence reference152 = ref span214[num]; + ref QuestSequence reference152 = ref span88[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj146.Steps = list217; reference152 = obj146; - num++; - ref QuestSequence reference153 = ref span214[num]; + ref QuestSequence reference153 = ref span88[3]; QuestSequence obj147 = new QuestSequence { Sequence = 3 @@ -311458,33 +257010,27 @@ public static class AssemblyQuestLoader num2 = 3; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span89 = CollectionsMarshal.AsSpan(list218); + span89[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351 }; - index2++; - span218[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span89[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span218[index2] = new QuestStep(EInteractionType.Interact, 1008547u, new Vector3(0.77819824f, -1.9957249f, -45.487183f), 351); + span89[2] = new QuestStep(EInteractionType.Interact, 1008547u, new Vector3(0.77819824f, -1.9957249f, -45.487183f), 351); obj147.Steps = list218; reference153 = obj147; - num++; - ref QuestSequence reference154 = ref span214[num]; + ref QuestSequence reference154 = ref span88[4]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj148.Steps = list219; reference154 = obj148; questRoot31.QuestSequence = list214; @@ -311494,16 +257040,13 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span220 = CollectionsMarshal.AsSpan(list220); - index = 0; - span220[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list220)[0] = "JerryWester"; questRoot32.Author = list220; - index = 4; - List list221 = new List(index); - CollectionsMarshal.SetCount(list221, index); - Span span221 = CollectionsMarshal.AsSpan(list221); - num = 0; - ref QuestSequence reference155 = ref span221[num]; + num = 4; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span90 = CollectionsMarshal.AsSpan(list221); + ref QuestSequence reference155 = ref span90[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -311511,9 +257054,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -311526,43 +257067,34 @@ public static class AssemblyQuestLoader }; obj149.Steps = list222; reference155 = obj149; - num++; - ref QuestSequence reference156 = ref span221[num]; + ref QuestSequence reference156 = ref span90[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list223 = new List(index2); - CollectionsMarshal.SetCount(list223, index2); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref QuestStep reference157 = ref span223[num2]; + num2 = 1; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + ref QuestStep reference157 = ref CollectionsMarshal.AsSpan(list223)[0]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj151.KillEnemyDataIds = list224; reference157 = obj151; obj150.Steps = list223; reference156 = obj150; - num++; - ref QuestSequence reference158 = ref span221[num]; + ref QuestSequence reference158 = ref span90[2]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -311570,28 +257102,23 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Interact, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141); + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1009050u, new Vector3(57.419678f, -5.5366235f, -1.2664795f), 141); obj152.Steps = list225; reference158 = obj152; - num++; - ref QuestSequence reference159 = ref span221[num]; + ref QuestSequence reference159 = ref span90[3]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span226[num2] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); + span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141); obj153.Steps = list226; reference159 = obj153; questRoot32.QuestSequence = list221; @@ -311601,16 +257128,13 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list227)[0] = "JerryWester"; questRoot33.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]; + num = 5; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span93 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference160 = ref span93[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -311618,9 +257142,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1009049u, new Vector3(187.54858f, -1f, -302.93738f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -311633,27 +257155,23 @@ public static class AssemblyQuestLoader }; obj154.Steps = list229; reference160 = obj154; - num++; - ref QuestSequence reference161 = ref span228[num]; + ref QuestSequence reference161 = ref span93[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span230[num2] = new QuestStep(EInteractionType.Interact, 1009055u, new Vector3(-142.74823f, 4.2354183f, 232.77625f), 141); + span94[1] = new QuestStep(EInteractionType.Interact, 1009055u, new Vector3(-142.74823f, 4.2354183f, 232.77625f), 141); obj155.Steps = list230; reference161 = obj155; - num++; - ref QuestSequence reference162 = ref span228[num]; + ref QuestSequence reference162 = ref span93[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -311661,32 +257179,26 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(57.739433f, -1.247997f, 343.4356f), 141) + Span span95 = CollectionsMarshal.AsSpan(list231); + span95[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(57.739433f, -1.247997f, 343.4356f), 141) { Fly = true }; - index2++; - span231[index2] = new QuestStep(EInteractionType.Interact, 1009056u, new Vector3(58.27417f, -1.2500068f, 342.2445f), 141); + span95[1] = new QuestStep(EInteractionType.Interact, 1009056u, new Vector3(58.27417f, -1.2500068f, 342.2445f), 141); obj156.Steps = list231; reference162 = obj156; - num++; - ref QuestSequence reference163 = ref span228[num]; + ref QuestSequence reference163 = ref span93[3]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj157.Steps = list232; reference163 = obj157; - num++; - ref QuestSequence reference164 = ref span228[num]; + ref QuestSequence reference164 = ref span93[4]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -311694,14 +257206,12 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) + Span span96 = CollectionsMarshal.AsSpan(list233); + span96[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-119.1183f, 3.7999938f, -104.33473f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; - index2++; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); + span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1004576u, new Vector3(-141.64954f, 4.1f, -114.67157f), 130); obj158.Steps = list233; reference164 = obj158; questRoot33.QuestSequence = list228; @@ -311711,26 +257221,21 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list234)[0] = "JerryWester"; questRoot34.Author = list234; - index = 8; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference165 = ref span235[num]; + num = 8; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span97 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference165 = ref span97[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut, SkipConditions = new SkipConditions @@ -311743,8 +257248,7 @@ public static class AssemblyQuestLoader }; obj159.Steps = list236; reference165 = obj159; - num++; - ref QuestSequence reference166 = ref span235[num]; + ref QuestSequence reference166 = ref span97[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 @@ -311752,33 +257256,27 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 1009098u, new Vector3(262.71448f, -8.995881f, -77.92786f), 152) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1009098u, new Vector3(262.71448f, -8.995881f, -77.92786f), 152) { Fly = true }; obj160.Steps = list237; reference166 = obj160; - num++; - ref QuestSequence reference167 = ref span235[num]; + ref QuestSequence reference167 = ref span97[2]; QuestSequence obj161 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj161.Steps = list238; reference167 = obj161; - num++; - ref QuestSequence reference168 = ref span235[num]; + ref QuestSequence reference168 = ref span97[3]; QuestSequence obj162 = new QuestSequence { Sequence = 3 @@ -311786,34 +257284,28 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Interact, 1009119u, new Vector3(106.85889f, -27.487057f, -366.3844f), 152) + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1009119u, new Vector3(106.85889f, -27.487057f, -366.3844f), 152) { Fly = true }; obj162.Steps = list239; reference168 = obj162; - num++; - ref QuestSequence reference169 = ref span235[num]; + ref QuestSequence reference169 = ref span97[4]; QuestSequence obj163 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.25f, Fly = true }; obj163.Steps = list240; reference169 = obj163; - num++; - ref QuestSequence reference170 = ref span235[num]; + ref QuestSequence reference170 = ref span97[5]; QuestSequence obj164 = new QuestSequence { Sequence = 5 @@ -311821,9 +257313,7 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Duty, null, null, 152) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Duty, null, null, 152) { DutyOptions = new DutyOptions { @@ -311832,23 +257322,19 @@ public static class AssemblyQuestLoader }; obj164.Steps = list241; reference170 = obj164; - num++; - span235[num] = new QuestSequence + span97[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference171 = ref span235[num]; + ref QuestSequence reference171 = ref span97[7]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut @@ -311862,16 +257348,13 @@ public static class AssemblyQuestLoader num = 1; List list243 = new List(num); CollectionsMarshal.SetCount(list243, num); - Span span243 = CollectionsMarshal.AsSpan(list243); - index = 0; - span243[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list243)[0] = "JerryWester"; questRoot35.Author = list243; - index = 5; - List list244 = new List(index); - CollectionsMarshal.SetCount(list244, index); - Span span244 = CollectionsMarshal.AsSpan(list244); - num = 0; - ref QuestSequence reference172 = ref span244[num]; + num = 5; + List list244 = new List(num); + CollectionsMarshal.SetCount(list244, num); + Span span98 = CollectionsMarshal.AsSpan(list244); + ref QuestSequence reference172 = ref span98[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -311879,9 +257362,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.AcceptQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.AcceptQuest, 1010010u, new Vector3(-50.94995f, -3.440948f, 20.58435f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -311894,22 +257375,18 @@ public static class AssemblyQuestLoader }; obj166.Steps = list245; reference172 = obj166; - num++; - ref QuestSequence reference173 = ref span244[num]; + ref QuestSequence reference173 = ref span98[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj167.Steps = list246; reference173 = obj167; - num++; - ref QuestSequence reference174 = ref span244[num]; + ref QuestSequence reference174 = ref span98[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -311917,39 +257394,31 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); obj168.Steps = list247; reference174 = obj168; - num++; - ref QuestSequence reference175 = ref span244[num]; + ref QuestSequence reference175 = ref span98[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span248[num2] = new QuestStep(EInteractionType.Interact, 1010012u, new Vector3(23.910828f, -18.800003f, 89.89087f), 132) + span99[3] = new QuestStep(EInteractionType.Interact, 1010012u, new Vector3(23.910828f, -18.800003f, 89.89087f), 132) { DisableNavmesh = true }; obj169.Steps = list248; reference175 = obj169; - num++; - ref QuestSequence reference176 = ref span244[num]; + ref QuestSequence reference176 = ref span98[4]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -311957,9 +257426,7 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1010018u, new Vector3(49.729126f, -8.046955f, 100.20593f), 132); obj170.Steps = list249; reference176 = obj170; questRoot35.QuestSequence = list244; @@ -311969,26 +257436,21 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list250)[0] = "JerryWester"; questRoot36.Author = list250; - index = 6; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference177 = ref span251[num]; + num = 6; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span100 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference177 = ref span100[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -312001,8 +257463,7 @@ public static class AssemblyQuestLoader }; obj171.Steps = list252; reference177 = obj171; - num++; - ref QuestSequence reference178 = ref span251[num]; + ref QuestSequence reference178 = ref span100[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -312010,9 +257471,8 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) + Span span101 = CollectionsMarshal.AsSpan(list253); + span101[0] = new QuestStep(EInteractionType.Interact, 1001263u, new Vector3(181.41443f, -2.3519497f, -240.40594f), 133) { TargetTerritoryId = (ushort)152, AethernetShortcut = new AethernetShortcut @@ -312021,31 +257481,26 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - index2++; - span253[index2] = new QuestStep(EInteractionType.Interact, 1010020u, new Vector3(-569.39044f, 9.822195f, 65.171265f), 152); + span101[1] = new QuestStep(EInteractionType.Interact, 1010020u, new Vector3(-569.39044f, 9.822195f, 65.171265f), 152); obj172.Steps = list253; reference178 = obj172; - num++; - ref QuestSequence reference179 = ref span251[num]; + ref QuestSequence reference179 = ref span100[2]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span254[num2] = new QuestStep(EInteractionType.Interact, 1010037u, new Vector3(-300.98425f, 0.4458849f, 267.84155f), 152); + span102[1] = new QuestStep(EInteractionType.Interact, 1010037u, new Vector3(-300.98425f, 0.4458849f, 267.84155f), 152); obj173.Steps = list254; reference179 = obj173; - num++; - ref QuestSequence reference180 = ref span251[num]; + ref QuestSequence reference180 = ref span100[3]; QuestSequence obj174 = new QuestSequence { Sequence = 3 @@ -312053,32 +257508,26 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-172.96619f, 1.4138634f, 147.4101f), 152) + Span span103 = CollectionsMarshal.AsSpan(list255); + span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-172.96619f, 1.4138634f, 147.4101f), 152) { Fly = true }; - index2++; - span255[index2] = new QuestStep(EInteractionType.Interact, 1010038u, new Vector3(-173.66296f, 1.4696703f, 146.83752f), 152); + span103[1] = new QuestStep(EInteractionType.Interact, 1010038u, new Vector3(-173.66296f, 1.4696703f, 146.83752f), 152); obj174.Steps = list255; reference180 = obj174; - num++; - ref QuestSequence reference181 = ref span251[num]; + ref QuestSequence reference181 = ref span100[4]; QuestSequence obj175 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj175.Steps = list256; reference181 = obj175; - num++; - ref QuestSequence reference182 = ref span251[num]; + ref QuestSequence reference182 = ref span100[5]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -312086,20 +257535,17 @@ public static class AssemblyQuestLoader num2 = 3; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) + Span span104 = CollectionsMarshal.AsSpan(list257); + span104[0] = new QuestStep(EInteractionType.Interact, 2002881u, new Vector3(21.133728f, 22.323914f, -631.281f), 156) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - index2++; - span257[index2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span104[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); + span104[2] = new QuestStep(EInteractionType.CompleteQuest, 1010147u, new Vector3(0.8086548f, -1.9957249f, -45.67035f), 351); obj176.Steps = list257; reference182 = obj176; questRoot36.QuestSequence = list251; @@ -312109,33 +257555,27 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list258)[0] = "JerryWester"; questRoot37.Author = list258; - index = 6; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference183 = ref span259[num]; + num = 6; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span105 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference183 = ref span105[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj177.Steps = list260; reference183 = obj177; - num++; - ref QuestSequence reference184 = ref span259[num]; + ref QuestSequence reference184 = ref span105[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -312143,35 +257583,29 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 1010890u, new Vector3(31.967651f, -1f, 2.9144287f), 351); + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1010890u, new Vector3(31.967651f, -1f, 2.9144287f), 351); obj178.Steps = list261; reference184 = obj178; - num++; - ref QuestSequence reference185 = ref span259[num]; + ref QuestSequence reference185 = ref span105[2]; QuestSequence obj179 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)351 }; - num2++; - span262[num2] = new QuestStep(EInteractionType.Interact, 1010860u, new Vector3(2.822876f, -1.995725f, -41.24518f), 351) + span106[1] = new QuestStep(EInteractionType.Interact, 1010860u, new Vector3(2.822876f, -1.995725f, -41.24518f), 351) { StopDistance = 7f }; obj179.Steps = list262; reference185 = obj179; - num++; - ref QuestSequence reference186 = ref span259[num]; + ref QuestSequence reference186 = ref span105[3]; QuestSequence obj180 = new QuestSequence { Sequence = 3 @@ -312179,28 +257613,23 @@ public static class AssemblyQuestLoader num2 = 2; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) + Span span107 = CollectionsMarshal.AsSpan(list263); + span107[0] = new QuestStep(EInteractionType.Interact, 2002880u, new Vector3(-0.015319824f, -1.0223389f, -29.251587f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span263[index2] = new QuestStep(EInteractionType.Interact, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351); + span107[1] = new QuestStep(EInteractionType.Interact, 1010858u, new Vector3(-1.9074707f, 0f, -3.1281738f), 351); obj180.Steps = list263; reference186 = obj180; - num++; - ref QuestSequence reference187 = ref span259[num]; + ref QuestSequence reference187 = ref span105[4]; QuestSequence obj181 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.5f, Fly = true, @@ -312208,8 +257637,7 @@ public static class AssemblyQuestLoader }; obj181.Steps = list264; reference187 = obj181; - num++; - ref QuestSequence reference188 = ref span259[num]; + ref QuestSequence reference188 = ref span105[5]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue @@ -312217,9 +257645,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006646u, new Vector3(-29.953552f, 46.99734f, 32.547485f), 147) { StopDistance = 5f }; @@ -312232,30 +257658,24 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "liza"; + CollectionsMarshal.AsSpan(list266)[0] = "liza"; questRoot38.Author = list266; - index = 5; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference189 = ref span267[num]; + num = 5; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span108 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference189 = ref span108[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj183.Steps = list268; reference189 = obj183; - num++; - ref QuestSequence reference190 = ref span267[num]; + ref QuestSequence reference190 = ref span108[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 @@ -312263,84 +257683,60 @@ public static class AssemblyQuestLoader num2 = 3; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - ref QuestStep reference191 = ref span269[index2]; + Span span109 = CollectionsMarshal.AsSpan(list269); + ref QuestStep reference191 = ref span109[0]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list270; reference191 = questStep8; - index2++; - ref QuestStep reference192 = ref span269[index2]; + ref QuestStep reference192 = ref span109[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1033787u, new Vector3(40.05493f, -19.999998f, 89.066895f), 886); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list271; reference192 = questStep9; - index2++; - ref QuestStep reference193 = ref span269[index2]; + ref QuestStep reference193 = ref span109[2]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list272; reference193 = questStep10; obj184.Steps = list269; reference190 = obj184; - num++; - ref QuestSequence reference194 = ref span267[num]; + ref QuestSequence reference194 = ref span108[2]; QuestSequence obj185 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -312350,8 +257746,7 @@ public static class AssemblyQuestLoader }; obj185.Steps = list273; reference194 = obj185; - num++; - ref QuestSequence reference195 = ref span267[num]; + ref QuestSequence reference195 = ref span108[3]; QuestSequence obj186 = new QuestSequence { Sequence = 3 @@ -312359,9 +257754,7 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886) { AethernetShortcut = new AethernetShortcut { @@ -312371,18 +257764,15 @@ public static class AssemblyQuestLoader }; obj186.Steps = list274; reference195 = obj186; - num++; - ref QuestSequence reference196 = ref span267[num]; + ref QuestSequence reference196 = ref span108[4]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -312400,16 +257790,13 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "Censored"; + CollectionsMarshal.AsSpan(list276)[0] = "Censored"; questRoot39.Author = list276; - index = 5; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference197 = ref span277[num]; + num = 5; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span113 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference197 = ref span113[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -312417,9 +257804,8 @@ public static class AssemblyQuestLoader num2 = 2; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - ref QuestStep reference198 = ref span278[index2]; + Span span114 = CollectionsMarshal.AsSpan(list278); + ref QuestStep reference198 = ref span114[0]; QuestStep obj189 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -312431,18 +257817,15 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - index3 = 1; - List list279 = new List(index3); - CollectionsMarshal.SetCount(list279, index3); - Span span279 = CollectionsMarshal.AsSpan(list279); - num3 = 0; - span279[num3] = 154; + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = 154; skipStepConditions.InTerritory = list279; skipConditions2.StepIf = skipStepConditions; obj189.SkipConditions = skipConditions2; reference198 = obj189; - index2++; - span278[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) + span114[1] = new QuestStep(EInteractionType.AcceptQuest, 1033543u, new Vector3(113.38977f, -20f, -0.96136475f), 886) { AethernetShortcut = new AethernetShortcut { @@ -312452,22 +257835,18 @@ public static class AssemblyQuestLoader }; obj188.Steps = list278; reference197 = obj188; - num++; - ref QuestSequence reference199 = ref span277[num]; + ref QuestSequence reference199 = ref span113[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj190.Steps = list280; reference199 = obj190; - num++; - ref QuestSequence reference200 = ref span277[num]; + ref QuestSequence reference200 = ref span113[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -312475,31 +257854,25 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400) + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1033789u, new Vector3(-701.83875f, 83.7986f, 229.99915f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; obj191.Steps = list281; reference200 = obj191; - num++; - ref QuestSequence reference201 = ref span277[num]; + ref QuestSequence reference201 = ref span113[3]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj192.Steps = list282; reference201 = obj192; - num++; - ref QuestSequence reference202 = ref span277[num]; + ref QuestSequence reference202 = ref span113[4]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -312507,9 +257880,8 @@ public static class AssemblyQuestLoader num2 = 2; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.None, null, null, 418) + Span span115 = CollectionsMarshal.AsSpan(list283); + span115[0] = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -312518,8 +257890,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - index2++; - span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033922u, new Vector3(113.38977f, -20f, -0.9918823f), 886) + span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1033922u, new Vector3(113.38977f, -20f, -0.9918823f), 886) { AethernetShortcut = new AethernetShortcut { @@ -312536,26 +257907,22 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = "Censored"; + CollectionsMarshal.AsSpan(list284)[0] = "Censored"; questRoot40.Author = list284; - index = 2; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref QuestSequence reference203 = ref span285[num]; + num = 2; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span116 = CollectionsMarshal.AsSpan(list285); + ref QuestSequence reference203 = ref span116[0]; QuestSequence obj194 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list286 = new List(num2); + CollectionsMarshal.SetCount(list286, num2); + Span span117 = CollectionsMarshal.AsSpan(list286); + ref QuestStep reference204 = ref span117[0]; QuestStep obj195 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -312570,15 +257937,12 @@ public static class AssemblyQuestLoader num3 = 1; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - Span span287 = CollectionsMarshal.AsSpan(list287); - index3 = 0; - span287[index3] = 154; + CollectionsMarshal.AsSpan(list287)[0] = 154; skipStepConditions2.InTerritory = list287; skipConditions3.StepIf = skipStepConditions2; obj195.SkipConditions = skipConditions3; reference204 = obj195; - num2++; - span286[num2] = new QuestStep(EInteractionType.AcceptQuest, 1032220u, new Vector3(113.29822f, -20.000002f, 1.449585f), 886) + span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1032220u, new Vector3(113.29822f, -20.000002f, 1.449585f), 886) { AethernetShortcut = new AethernetShortcut { @@ -312588,8 +257952,7 @@ public static class AssemblyQuestLoader }; obj194.Steps = list286; reference203 = obj194; - num++; - ref QuestSequence reference205 = ref span285[num]; + ref QuestSequence reference205 = ref span116[1]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -312597,9 +257960,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033784u, new Vector3(154.00928f, -50f, 67.73474f), 886); obj196.Steps = list288; reference205 = obj196; questRoot40.QuestSequence = list285; @@ -312609,26 +257970,21 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - Span span289 = CollectionsMarshal.AsSpan(list289); - index = 0; - span289[index] = "liza"; + CollectionsMarshal.AsSpan(list289)[0] = "liza"; questRoot41.Author = list289; - index = 11; - List list290 = new List(index); - CollectionsMarshal.SetCount(list290, index); - Span span290 = CollectionsMarshal.AsSpan(list290); - num = 0; - ref QuestSequence reference206 = ref span290[num]; + num = 11; + List list290 = new List(num); + CollectionsMarshal.SetCount(list290, num); + Span span118 = CollectionsMarshal.AsSpan(list290); + ref QuestSequence reference206 = ref span118[0]; QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -312641,8 +257997,7 @@ public static class AssemblyQuestLoader }; obj197.Steps = list291; reference206 = obj197; - num++; - ref QuestSequence reference207 = ref span290[num]; + ref QuestSequence reference207 = ref span118[1]; QuestSequence obj198 = new QuestSequence { Sequence = 1 @@ -312650,19 +258005,15 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - ref QuestStep reference208 = ref span292[index2]; + ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list292)[0]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1026804u, new Vector3(-524.55945f, 8.698304f, -15.487976f), 621) { Fly = true }; - index3 = 1; - List list293 = new List(index3); - CollectionsMarshal.SetCount(list293, index3); - Span span293 = CollectionsMarshal.AsSpan(list293); - num3 = 0; - span293[num3] = new DialogueChoice + num3 = 1; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW201_03895_Q1_000_011") @@ -312671,22 +258022,18 @@ public static class AssemblyQuestLoader reference208 = obj199; obj198.Steps = list292; reference207 = obj198; - num++; - ref QuestSequence reference209 = ref span290[num]; + ref QuestSequence reference209 = ref span118[2]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj200.Steps = list294; reference209 = obj200; - num++; - ref QuestSequence reference210 = ref span290[num]; + ref QuestSequence reference210 = ref span118[3]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -312694,27 +258041,21 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829); obj201.Steps = list295; reference210 = obj201; - num++; - ref QuestSequence reference211 = ref span290[num]; + ref QuestSequence reference211 = ref span118[4]; QuestSequence obj202 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj202.Steps = list296; reference211 = obj202; - num++; - ref QuestSequence reference212 = ref span290[num]; + ref QuestSequence reference212 = ref span118[5]; QuestSequence obj203 = new QuestSequence { Sequence = 5 @@ -312722,9 +258063,7 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - ref QuestStep reference213 = ref span297[index2]; + ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list297)[0]; QuestStep obj204 = new QuestStep(EInteractionType.SinglePlayerDuty, 1032851u, new Vector3(-481.3764f, 107.63f, 122.78931f), 829) { StopDistance = 5f, @@ -312736,9 +258075,7 @@ public static class AssemblyQuestLoader num3 = 1; List list298 = new List(num3); CollectionsMarshal.SetCount(list298, num3); - Span span298 = CollectionsMarshal.AsSpan(list298); - index3 = 0; - span298[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list298)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKYW201_03895_Q6_000_000"), @@ -312748,27 +258085,22 @@ public static class AssemblyQuestLoader reference213 = obj204; obj203.Steps = list297; reference212 = obj203; - num++; - span290[num] = new QuestSequence + span118[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference214 = ref span290[num]; + ref QuestSequence reference214 = ref span118[7]; QuestSequence obj205 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj205.Steps = list299; reference214 = obj205; - num++; - ref QuestSequence reference215 = ref span290[num]; + ref QuestSequence reference215 = ref span118[8]; QuestSequence obj206 = new QuestSequence { Sequence = 8 @@ -312776,27 +258108,21 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 1033632u, new Vector3(50.94983f, 35f, 60.440918f), 919); + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1033632u, new Vector3(50.94983f, 35f, 60.440918f), 919); obj206.Steps = list300; reference215 = obj206; - num++; - ref QuestSequence reference216 = ref span290[num]; + ref QuestSequence reference216 = ref span118[9]; QuestSequence obj207 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj207.Steps = list301; reference216 = obj207; - num++; - ref QuestSequence reference217 = ref span290[num]; + ref QuestSequence reference217 = ref span118[10]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue @@ -312804,27 +258130,23 @@ public static class AssemblyQuestLoader num2 = 3; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - ref QuestStep reference218 = ref span302[index2]; + Span span119 = CollectionsMarshal.AsSpan(list302); + ref QuestStep reference218 = ref span119[0]; 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(); - index3 = 1; - List list303 = new List(index3); - CollectionsMarshal.SetCount(list303, index3); - Span span303 = CollectionsMarshal.AsSpan(list303); - num3 = 0; - span303[num3] = 919; + num3 = 1; + List list303 = new List(num3); + CollectionsMarshal.SetCount(list303, num3); + CollectionsMarshal.AsSpan(list303)[0] = 919; skipStepConditions3.NotInTerritory = list303; skipConditions4.StepIf = skipStepConditions3; obj209.SkipConditions = skipConditions4; reference218 = obj209; - index2++; - span302[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + span119[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -312836,8 +258158,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + span119[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3980) }; @@ -312850,26 +258171,21 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span304 = CollectionsMarshal.AsSpan(list304); - index = 0; - span304[index] = "alydev"; + CollectionsMarshal.AsSpan(list304)[0] = "alydev"; questRoot42.Author = list304; - index = 6; - List list305 = new List(index); - CollectionsMarshal.SetCount(list305, index); - Span span305 = CollectionsMarshal.AsSpan(list305); - num = 0; - ref QuestSequence reference219 = ref span305[num]; + num = 6; + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + Span span120 = CollectionsMarshal.AsSpan(list305); + ref QuestSequence reference219 = ref span120[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaWright, @@ -312888,8 +258204,7 @@ public static class AssemblyQuestLoader }; obj210.Steps = list306; reference219 = obj210; - num++; - ref QuestSequence reference220 = ref span305[num]; + ref QuestSequence reference220 = ref span120[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -312897,9 +258212,7 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span307[index2] = new QuestStep(EInteractionType.Interact, 1033720u, new Vector3(79.81995f, 35.999687f, -148.27197f), 819) + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1033720u, new Vector3(79.81995f, 35.999687f, -148.27197f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -312910,18 +258223,15 @@ public static class AssemblyQuestLoader }; obj211.Steps = list307; reference220 = obj211; - num++; - ref QuestSequence reference221 = ref span305[num]; + ref QuestSequence reference221 = ref span120[2]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -312931,8 +258241,7 @@ public static class AssemblyQuestLoader }; obj212.Steps = list308; reference221 = obj212; - num++; - ref QuestSequence reference222 = ref span305[num]; + ref QuestSequence reference222 = ref span120[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -312940,27 +258249,22 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.Interact, 1033723u, new Vector3(-349.63f, 100.1054f, -605.27966f), 813) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1033723u, new Vector3(-349.63f, 100.1054f, -605.27966f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj213.Steps = list309; reference222 = obj213; - num++; - ref QuestSequence reference223 = ref span305[num]; + ref QuestSequence reference223 = ref span120[4]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list310 = new List(index2); - CollectionsMarshal.SetCount(list310, index2); - Span span310 = CollectionsMarshal.AsSpan(list310); - num2 = 0; - ref QuestStep reference224 = ref span310[num2]; + num2 = 1; + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; QuestStep obj215 = new QuestStep(EInteractionType.Interact, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813) { Fly = true @@ -312968,9 +258272,7 @@ public static class AssemblyQuestLoader num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span311 = CollectionsMarshal.AsSpan(list311); - index3 = 0; - span311[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANDWA001_03896_Q3_000_000"), @@ -312980,8 +258282,7 @@ public static class AssemblyQuestLoader reference224 = obj215; obj214.Steps = list310; reference223 = obj214; - num++; - ref QuestSequence reference225 = ref span305[num]; + ref QuestSequence reference225 = ref span120[5]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -312989,15 +258290,13 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span121 = CollectionsMarshal.AsSpan(list312); + span121[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31137u, ItemCount = 1 }; - index2++; - span312[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813); + span121[1] = new QuestStep(EInteractionType.CompleteQuest, 1033727u, new Vector3(-601.8616f, 65.60101f, -419.9131f), 813); obj216.Steps = list312; reference225 = obj216; questRoot42.QuestSequence = list305; @@ -313007,30 +258306,24 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - Span span313 = CollectionsMarshal.AsSpan(list313); - index = 0; - span313[index] = "Theo"; + CollectionsMarshal.AsSpan(list313)[0] = "Theo"; questRoot43.Author = list313; - index = 5; - List list314 = new List(index); - CollectionsMarshal.SetCount(list314, index); - Span span314 = CollectionsMarshal.AsSpan(list314); - num = 0; - ref QuestSequence reference226 = ref span314[num]; + num = 5; + List list314 = new List(num); + CollectionsMarshal.SetCount(list314, num); + Span span122 = CollectionsMarshal.AsSpan(list314); + ref QuestSequence reference226 = ref span122[0]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj217.Steps = list315; reference226 = obj217; - num++; - ref QuestSequence reference227 = ref span314[num]; + ref QuestSequence reference227 = ref span122[1]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -313038,33 +258331,27 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) { Mount = true }; obj218.Steps = list316; reference227 = obj218; - num++; - ref QuestSequence reference228 = ref span314[num]; + ref QuestSequence reference228 = ref span122[2]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; obj219.Steps = list317; reference228 = obj219; - num++; - ref QuestSequence reference229 = ref span314[num]; + ref QuestSequence reference229 = ref span122[3]; QuestSequence obj220 = new QuestSequence { Sequence = 3 @@ -313072,32 +258359,27 @@ public static class AssemblyQuestLoader num2 = 2; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span123 = CollectionsMarshal.AsSpan(list318); + span123[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31139u, ItemCount = 1 }; - index2++; - span318[index2] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) + span123[1] = new QuestStep(EInteractionType.Interact, 1033730u, new Vector3(-593.9269f, 71.99991f, -444.9989f), 813) { Mount = true }; obj220.Steps = list318; reference229 = obj220; - num++; - ref QuestSequence reference230 = ref span314[num]; + ref QuestSequence reference230 = ref span122[4]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj221.Steps = list319; reference230 = obj221; questRoot43.QuestSequence = list314; @@ -313107,16 +258389,13 @@ public static class AssemblyQuestLoader num = 1; List list320 = new List(num); CollectionsMarshal.SetCount(list320, num); - Span span320 = CollectionsMarshal.AsSpan(list320); - index = 0; - span320[index] = "liza"; + CollectionsMarshal.AsSpan(list320)[0] = "liza"; questRoot44.Author = list320; - index = 8; - List list321 = new List(index); - CollectionsMarshal.SetCount(list321, index); - Span span321 = CollectionsMarshal.AsSpan(list321); - num = 0; - ref QuestSequence reference231 = ref span321[num]; + num = 8; + List list321 = new List(num); + CollectionsMarshal.SetCount(list321, num); + Span span124 = CollectionsMarshal.AsSpan(list321); + ref QuestSequence reference231 = ref span124[0]; QuestSequence obj222 = new QuestSequence { Sequence = 0 @@ -313124,32 +258403,26 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); obj222.Steps = list322; reference231 = obj222; - num++; - ref QuestSequence reference232 = ref span321[num]; + ref QuestSequence reference232 = ref span124[1]; QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span323[num2] = new QuestStep(EInteractionType.Interact, 1033732u, new Vector3(-356.22186f, 108.722115f, -682.3072f), 813); + span125[1] = new QuestStep(EInteractionType.Interact, 1033732u, new Vector3(-356.22186f, 108.722115f, -682.3072f), 813); obj223.Steps = list323; reference232 = obj223; - num++; - ref QuestSequence reference233 = ref span321[num]; + ref QuestSequence reference233 = ref span124[2]; QuestSequence obj224 = new QuestSequence { Sequence = 2 @@ -313157,19 +258430,15 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - ref QuestStep reference234 = ref span324[index2]; + ref QuestStep reference234 = ref CollectionsMarshal.AsSpan(list324)[0]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 1033733u, new Vector3(-357.16797f, 108.722115f, -683.1922f), 813) { StopDistance = 5f }; - index3 = 1; - List list325 = new List(index3); - CollectionsMarshal.SetCount(list325, index3); - Span span325 = CollectionsMarshal.AsSpan(list325); - num3 = 0; - span325[num3] = new DialogueChoice + num3 = 1; + List list325 = new List(num3); + CollectionsMarshal.SetCount(list325, num3); + CollectionsMarshal.AsSpan(list325)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANDWA003_03898_SYSTEM_000_046") @@ -313178,25 +258447,21 @@ public static class AssemblyQuestLoader reference234 = obj225; obj224.Steps = list324; reference233 = obj224; - num++; - ref QuestSequence reference235 = ref span321[num]; + ref QuestSequence reference235 = ref span124[3]; QuestSequence obj226 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj226.Steps = list326; reference235 = obj226; - num++; - ref QuestSequence reference236 = ref span321[num]; + ref QuestSequence reference236 = ref span124[4]; QuestSequence obj227 = new QuestSequence { Sequence = 4 @@ -313204,9 +258469,7 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819) + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1027826u, new Vector3(89.15845f, 0.49999997f, -145.4643f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -313217,26 +258480,22 @@ public static class AssemblyQuestLoader }; obj227.Steps = list327; reference236 = obj227; - num++; - ref QuestSequence reference237 = ref span321[num]; + ref QuestSequence reference237 = ref span124[5]; QuestSequence obj228 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; obj228.Steps = list328; reference237 = obj228; - num++; - ref QuestSequence reference238 = ref span321[num]; + ref QuestSequence reference238 = ref span124[6]; QuestSequence obj229 = new QuestSequence { Sequence = 6 @@ -313244,29 +258503,24 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60091f, -414.66394f), 813); + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60091f, -414.66394f), 813); obj229.Steps = list329; reference238 = obj229; - num++; - ref QuestSequence reference239 = ref span321[num]; + ref QuestSequence reference239 = ref span124[7]; QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 31141u, ItemCount = 1 }; - num2++; - span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); + span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.60101f, -412.71082f), 813); obj230.Steps = list330; reference239 = obj230; questRoot44.QuestSequence = list321; @@ -313276,16 +258530,13 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "Theo"; + CollectionsMarshal.AsSpan(list331)[0] = "Theo"; questRoot45.Author = list331; - index = 6; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference240 = ref span332[num]; + num = 6; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span127 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference240 = ref span127[0]; QuestSequence obj231 = new QuestSequence { Sequence = 0 @@ -313293,32 +258544,26 @@ public static class AssemblyQuestLoader num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + Span span128 = CollectionsMarshal.AsSpan(list333); + span128[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; - index2++; - span333[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + span128[1] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj231.Steps = list333; reference240 = obj231; - num++; - ref QuestSequence reference241 = ref span332[num]; + ref QuestSequence reference241 = ref span127[1]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj232.Steps = list334; reference241 = obj232; - num++; - ref QuestSequence reference242 = ref span332[num]; + ref QuestSequence reference242 = ref span127[2]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -313326,33 +258571,27 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); + CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); obj233.Steps = list335; reference242 = obj233; - num++; - ref QuestSequence reference243 = ref span332[num]; + ref QuestSequence reference243 = ref span127[3]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 31143u, ItemCount = 1 }; - num2++; - span336[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + span129[1] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj234.Steps = list336; reference243 = obj234; - num++; - ref QuestSequence reference244 = ref span332[num]; + ref QuestSequence reference244 = ref span127[4]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -313360,31 +258599,26 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.Interact, 1033737u, new Vector3(-250.17175f, 18.842602f, -161.12f), 813) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1033737u, new Vector3(-250.17175f, 18.842602f, -161.12f), 813) { Fly = true }; obj235.Steps = list337; reference244 = obj235; - num++; - ref QuestSequence reference245 = ref span332[num]; + ref QuestSequence reference245 = ref span127[5]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span338[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj236.Steps = list338; reference245 = obj236; questRoot45.QuestSequence = list332; @@ -313398,16 +258632,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 10; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 10; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -313415,30 +258646,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -313446,9 +258671,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -313467,22 +258690,18 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -313490,33 +258709,27 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1033749u, new Vector3(-628.04614f, 65.60228f, -414.66394f), 813); obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 31145u, ItemCount = 1 }; - num2++; - span8[num2] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + span2[1] = new QuestStep(EInteractionType.Interact, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[6]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -313524,37 +258737,30 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) { Fly = true }; obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[7]; QuestSequence obj8 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - 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); + 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); obj8.Steps = list10; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[8]; QuestSequence obj9 = new QuestSequence { Sequence = 8 @@ -313562,26 +258768,21 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1033743u, new Vector3(-369.83295f, 5.6262345f, -94.80432f), 813) { Fly = true }; obj9.Steps = list11; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[9]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -313594,16 +258795,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "Theo"; + CollectionsMarshal.AsSpan(list13)[0] = "Theo"; questRoot2.Author = list13; - index = 5; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference11 = ref span14[num]; + num = 5; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span4 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference11 = ref span4[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -313611,30 +258809,24 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813); obj11.Steps = list15; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span14[num]; + ref QuestSequence reference12 = ref span4[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span14[num]; + ref QuestSequence reference13 = ref span4[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -313642,27 +258834,21 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1033746u, new Vector3(-351.36957f, 100.1054f, -603.60114f), 813); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1033746u, new Vector3(-351.36957f, 100.1054f, -603.60114f), 813); obj13.Steps = list17; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span14[num]; + ref QuestSequence reference14 = ref span4[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj14.Steps = list18; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span14[num]; + ref QuestSequence reference15 = ref span4[4]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -313670,9 +258856,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033710u, new Vector3(-607.72107f, 65.602394f, -412.71082f), 813) { Fly = true }; @@ -313685,32 +258869,26 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; - index = 4; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference16 = ref span21[num]; + num = 4; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span5 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference16 = ref span5[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span5[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -313718,36 +258896,30 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813) { Fly = true }; obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span5[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 31147u, ItemCount = 3 }; - num2++; - span24[num2] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813); + span7[1] = new QuestStep(EInteractionType.Interact, 1034103u, new Vector3(-674.7692f, 52.60457f, -148.05829f), 813); obj18.Steps = list24; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span21[num]; + ref QuestSequence reference19 = ref span5[3]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -313755,14 +258927,12 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span8 = CollectionsMarshal.AsSpan(list25); + span8[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span8[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj19.Steps = list25; reference19 = obj19; questRoot3.QuestSequence = list21; @@ -313772,32 +258942,26 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; questRoot4.Author = list26; - index = 3; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 3; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span9 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span9[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span9[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -313805,9 +258969,7 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1034105u, new Vector3(775.9059f, 21.325724f, 21.286316f), 813) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1034105u, new Vector3(775.9059f, 21.325724f, 21.286316f), 813) { StopDistance = 1f, Fly = true, @@ -313815,30 +258977,26 @@ public static class AssemblyQuestLoader }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span9[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 31149u, ItemCount = 2 }; - num2++; - span30[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span30[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span11[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj22.Steps = list30; reference22 = obj22; questRoot4.QuestSequence = list27; @@ -313848,16 +259006,13 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "liza"; + CollectionsMarshal.AsSpan(list31)[0] = "liza"; questRoot5.Author = list31; - index = 3; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference23 = ref span32[num]; + num = 3; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span12 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference23 = ref span12[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -313865,29 +259020,23 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - 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); + 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); obj23.Steps = list33; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span32[num]; + ref QuestSequence reference24 = ref span12[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span32[num]; + ref QuestSequence reference25 = ref span12[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -313895,17 +259044,14 @@ public static class AssemblyQuestLoader num2 = 3; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span14 = CollectionsMarshal.AsSpan(list35); + span14[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31151u, ItemCount = 4 }; - 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); + 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); obj25.Steps = list35; reference25 = obj25; questRoot5.QuestSequence = list32; @@ -313915,32 +259061,26 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot6.Author = list36; - index = 3; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference26 = ref span37[num]; + num = 3; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span15 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference26 = ref span15[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj26.Steps = list38; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span37[num]; + ref QuestSequence reference27 = ref span15[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -313948,9 +259088,8 @@ public static class AssemblyQuestLoader num2 = 3; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - ref QuestStep reference28 = ref span39[index2]; + Span span17 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference28 = ref span17[0]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 2011179u, new Vector3(-304.036f, 19.860376f, -244.1596f), 813) { Fly = true @@ -313958,49 +259097,34 @@ public static class AssemblyQuestLoader int num3 = 6; List> list40 = new List>(num3); CollectionsMarshal.SetCount(list40, num3); - 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); + 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); reference29 = list41; - num4++; - span40[num4] = null; - num4++; - span40[num4] = null; - num4++; - span40[num4] = null; + span18[3] = null; + span18[4] = null; + span18[5] = null; obj28.RequiredQuestVariables = list40; - 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); + 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); obj28.CompletionQuestVariablesFlags = list42; reference28 = obj28; - index2++; - ref QuestStep reference30 = ref span39[index2]; + ref QuestStep reference30 = ref span17[1]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2011178u, new Vector3(-267.5365f, 14.389221f, -191.63806f), 813) { Fly = true @@ -314008,49 +259132,34 @@ public static class AssemblyQuestLoader num3 = 6; List> list43 = new List>(num3); CollectionsMarshal.SetCount(list43, num3); - 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); + 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); reference31 = list44; - num4++; - span43[num4] = null; - num4++; - span43[num4] = null; - num4++; - span43[num4] = null; + span21[3] = null; + span21[4] = null; + span21[5] = null; obj29.RequiredQuestVariables = list43; - 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); + 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); obj29.CompletionQuestVariablesFlags = list45; reference30 = obj29; - index2++; - ref QuestStep reference32 = ref span39[index2]; + ref QuestStep reference32 = ref span17[2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2011177u, new Vector3(-236.13336f, 21.042175f, -223.0412f), 813) { Fly = true @@ -314058,66 +259167,49 @@ public static class AssemblyQuestLoader num3 = 6; List> list46 = new List>(num3); CollectionsMarshal.SetCount(list46, num3); - 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); + 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); reference33 = list47; - num4++; - span46[num4] = null; - num4++; - span46[num4] = null; - num4++; - span46[num4] = null; + span24[3] = null; + span24[4] = null; + span24[5] = null; obj30.RequiredQuestVariables = list46; - 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); + 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); obj30.CompletionQuestVariablesFlags = list48; reference32 = obj30; obj27.Steps = list39; reference27 = obj27; - num++; - ref QuestSequence reference34 = ref span37[num]; + ref QuestSequence reference34 = ref span15[2]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span49[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span27[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj31.Steps = list49; reference34 = obj31; questRoot6.QuestSequence = list37; @@ -314127,16 +259219,13 @@ public static class AssemblyQuestLoader num = 1; List list50 = new List(num); CollectionsMarshal.SetCount(list50, num); - Span span50 = CollectionsMarshal.AsSpan(list50); - index = 0; - span50[index] = "liza"; + CollectionsMarshal.AsSpan(list50)[0] = "liza"; questRoot7.Author = list50; - index = 4; - List list51 = new List(index); - CollectionsMarshal.SetCount(list51, index); - Span span51 = CollectionsMarshal.AsSpan(list51); - num = 0; - ref QuestSequence reference35 = ref span51[num]; + num = 4; + List list51 = new List(num); + CollectionsMarshal.SetCount(list51, num); + Span span28 = CollectionsMarshal.AsSpan(list51); + ref QuestSequence reference35 = ref span28[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -314144,29 +259233,23 @@ public static class AssemblyQuestLoader num2 = 2; 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(-615.73865f, 65.602264f, -423.84705f), 813); - index2++; - span52[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + 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); obj32.Steps = list52; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span51[num]; + ref QuestSequence reference36 = ref span28[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj33.Steps = list53; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span51[num]; + ref QuestSequence reference37 = ref span28[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -314174,38 +259257,33 @@ public static class AssemblyQuestLoader num2 = 2; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span30 = CollectionsMarshal.AsSpan(list54); + span30[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31153u, ItemCount = 3 }; - index2++; - span54[index2] = new QuestStep(EInteractionType.Interact, 1034112u, new Vector3(115.983765f, 106.73271f, -551.7815f), 813) + span30[1] = new QuestStep(EInteractionType.Interact, 1034112u, new Vector3(115.983765f, 106.73271f, -551.7815f), 813) { Fly = true }; obj34.Steps = list54; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span51[num]; + ref QuestSequence reference38 = ref span28[3]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span55[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj35.Steps = list55; reference38 = obj35; questRoot7.QuestSequence = list51; @@ -314215,16 +259293,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "pot0to"; + CollectionsMarshal.AsSpan(list56)[0] = "pot0to"; questRoot8.Author = list56; - index = 3; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference39 = ref span57[num]; + num = 3; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span32 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference39 = ref span32[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -314232,25 +259307,20 @@ public static class AssemblyQuestLoader num2 = 2; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - 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); + 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); obj36.Steps = list58; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span57[num]; + ref QuestSequence reference40 = ref span32[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb, @@ -314264,8 +259334,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list59; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span57[num]; + ref QuestSequence reference41 = ref span32[2]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -314273,15 +259342,13 @@ public static class AssemblyQuestLoader num2 = 3; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span34 = CollectionsMarshal.AsSpan(list60); + span34[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31155u, ItemCount = 2 }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span34[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -314298,8 +259365,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span34[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj38.Steps = list60; reference41 = obj38; questRoot8.QuestSequence = list57; @@ -314309,32 +259375,26 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list61)[0] = "plogon_enjoyer"; questRoot9.Author = list61; - index = 3; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference42 = ref span62[num]; + num = 3; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span35 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference42 = ref span35[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj39.Steps = list63; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span62[num]; + ref QuestSequence reference43 = ref span35[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -314342,37 +259402,31 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1034118u, new Vector3(-55.49713f, 98.10251f, -624.7501f), 813) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1034118u, new Vector3(-55.49713f, 98.10251f, -624.7501f), 813) { Fly = true }; obj40.Steps = list64; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span62[num]; + ref QuestSequence reference44 = ref span35[2]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 31157u, ItemCount = 3 }; - num2++; - span65[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span37[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - num2++; - span65[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj41.Steps = list65; reference44 = obj41; questRoot9.QuestSequence = list62; @@ -314382,16 +259436,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot10.Author = list66; - index = 3; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference45 = ref span67[num]; + num = 3; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span38 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference45 = ref span38[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -314399,25 +259450,21 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - 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); + 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); obj42.Steps = list68; reference45 = obj42; - num++; - ref QuestSequence reference46 = ref span67[num]; + ref QuestSequence reference46 = ref span38[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list69 = new List(index2); - CollectionsMarshal.SetCount(list69, index2); - Span span69 = CollectionsMarshal.AsSpan(list69); - num2 = 0; - ref QuestStep reference47 = ref span69[num2]; + num2 = 3; + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + Span span40 = CollectionsMarshal.AsSpan(list69); + ref QuestStep reference47 = ref span40[0]; QuestStep obj44 = new QuestStep(EInteractionType.Say, 1033770u, new Vector3(-410.11676f, 91.978714f, -426.71857f), 813) { Fly = true, @@ -314429,30 +259476,21 @@ public static class AssemblyQuestLoader num3 = 6; List> list70 = new List>(num3); CollectionsMarshal.SetCount(list70, num3); - 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); + 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); reference48 = list71; - num4++; - span70[num4] = null; - num4++; - span70[num4] = null; - num4++; - span70[num4] = null; + span41[3] = null; + span41[4] = null; + span41[5] = null; obj44.RequiredQuestVariables = list70; reference47 = obj44; - num2++; - ref QuestStep reference49 = ref span69[num2]; + ref QuestStep reference49 = ref span40[1]; QuestStep obj45 = new QuestStep(EInteractionType.Say, 1033771u, new Vector3(-396.07843f, 93.51564f, -419.11957f), 813) { Fly = true, @@ -314461,33 +259499,24 @@ public static class AssemblyQuestLoader Key = "TEXT_BANDWA108_03909_SAYTODO_000_030" } }; - 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); + 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); reference50 = list73; - num3++; - span72[num3] = null; - num3++; - span72[num3] = null; - num3++; - span72[num3] = null; + span42[3] = null; + span42[4] = null; + span42[5] = null; obj45.RequiredQuestVariables = list72; reference49 = obj45; - num2++; - ref QuestStep reference51 = ref span69[num2]; + ref QuestStep reference51 = ref span40[2]; QuestStep obj46 = new QuestStep(EInteractionType.Say, 1033772u, new Vector3(-399.80164f, 91.33075f, -441.42828f), 813) { Fly = true, @@ -314499,32 +259528,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list74 = new List>(num3); CollectionsMarshal.SetCount(list74, num3); - 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); + 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); reference52 = list75; - num4++; - span74[num4] = null; - num4++; - span74[num4] = null; - num4++; - span74[num4] = null; + span43[3] = null; + span43[4] = null; + span43[5] = null; obj46.RequiredQuestVariables = list74; reference51 = obj46; obj43.Steps = list69; reference46 = obj43; - num++; - ref QuestSequence reference53 = ref span67[num]; + ref QuestSequence reference53 = ref span38[2]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -314532,14 +259552,12 @@ public static class AssemblyQuestLoader num2 = 2; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span44 = CollectionsMarshal.AsSpan(list76); + span44[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span76[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span44[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj47.Steps = list76; reference53 = obj47; questRoot10.QuestSequence = list67; @@ -314549,32 +259567,26 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot11.Author = list77; - index = 4; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference54 = ref span78[num]; + num = 4; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span45 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference54 = ref span45[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj48.Steps = list79; reference54 = obj48; - num++; - ref QuestSequence reference55 = ref span78[num]; + ref QuestSequence reference55 = ref span45[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -314582,36 +259594,30 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); obj49.Steps = list80; reference55 = obj49; - num++; - ref QuestSequence reference56 = ref span78[num]; + ref QuestSequence reference56 = ref span45[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 31159u, ItemCount = 3 }; - num2++; - span81[num2] = new QuestStep(EInteractionType.Interact, 1033773u, new Vector3(-629.3279f, 56.201706f, -139.29962f), 813) + span47[1] = new QuestStep(EInteractionType.Interact, 1033773u, new Vector3(-629.3279f, 56.201706f, -139.29962f), 813) { Fly = true }; obj50.Steps = list81; reference56 = obj50; - num++; - ref QuestSequence reference57 = ref span78[num]; + ref QuestSequence reference57 = ref span45[3]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -314619,14 +259625,12 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span48 = CollectionsMarshal.AsSpan(list82); + span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span82[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj51.Steps = list82; reference57 = obj51; questRoot11.QuestSequence = list78; @@ -314636,32 +259640,26 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "liza"; + CollectionsMarshal.AsSpan(list83)[0] = "liza"; questRoot12.Author = list83; - index = 3; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference58 = ref span84[num]; + num = 3; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span49 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference58 = ref span49[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj52.Steps = list85; reference58 = obj52; - num++; - ref QuestSequence reference59 = ref span84[num]; + ref QuestSequence reference59 = ref span49[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -314669,31 +259667,25 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60085f, -431.81506f), 813); obj53.Steps = list86; reference59 = obj53; - num++; - ref QuestSequence reference60 = ref span84[num]; + ref QuestSequence reference60 = ref span49[2]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 31161u, ItemCount = 1 }; - 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); + 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); obj54.Steps = list87; reference60 = obj54; questRoot12.QuestSequence = list84; @@ -314703,16 +259695,13 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "pot0to"; + CollectionsMarshal.AsSpan(list88)[0] = "pot0to"; questRoot13.Author = list88; - index = 4; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference61 = ref span89[num]; + num = 4; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span52 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference61 = ref span52[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -314720,9 +259709,8 @@ public static class AssemblyQuestLoader num2 = 2; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span53 = CollectionsMarshal.AsSpan(list90); + span53[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -314734,22 +259722,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span53[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj55.Steps = list90; reference61 = obj55; - num++; - ref QuestSequence reference62 = ref span89[num]; + ref QuestSequence reference62 = ref span52[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, ItemId = 2003030u, @@ -314757,8 +259741,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list91; reference62 = obj56; - num++; - ref QuestSequence reference63 = ref span89[num]; + ref QuestSequence reference63 = ref span52[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -314766,28 +259749,23 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1034059u, new Vector3(-725.70386f, 68.86053f, 2.2124634f), 813); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1034059u, new Vector3(-725.70386f, 68.86053f, 2.2124634f), 813); obj57.Steps = list92; reference63 = obj57; - num++; - ref QuestSequence reference64 = ref span89[num]; + ref QuestSequence reference64 = ref span52[3]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span93[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj58.Steps = list93; reference64 = obj58; questRoot13.QuestSequence = list89; @@ -314797,16 +259775,13 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "pot0to"; + CollectionsMarshal.AsSpan(list94)[0] = "pot0to"; questRoot14.Author = list94; - index = 4; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference65 = ref span95[num]; + num = 4; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span55 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference65 = ref span55[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -314814,9 +259789,8 @@ public static class AssemblyQuestLoader num2 = 2; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span56 = CollectionsMarshal.AsSpan(list96); + span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -314828,26 +259802,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span96[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span56[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj59.Steps = list96; reference65 = obj59; - num++; - ref QuestSequence reference66 = ref span95[num]; + ref QuestSequence reference66 = ref span55[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj60.Steps = list97; reference66 = obj60; - num++; - ref QuestSequence reference67 = ref span95[num]; + ref QuestSequence reference67 = ref span55[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -314855,37 +259824,32 @@ public static class AssemblyQuestLoader num2 = 2; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span57 = CollectionsMarshal.AsSpan(list98); + span57[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31163u, ItemCount = 3 }; - index2++; - span98[index2] = new QuestStep(EInteractionType.Interact, 1034061u, new Vector3(-355.97772f, 100.1054f, -636.53015f), 813) + span57[1] = new QuestStep(EInteractionType.Interact, 1034061u, new Vector3(-355.97772f, 100.1054f, -636.53015f), 813) { Fly = true }; obj61.Steps = list98; reference67 = obj61; - num++; - ref QuestSequence reference68 = ref span95[num]; + ref QuestSequence reference68 = ref span55[3]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span99[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj62.Steps = list99; reference68 = obj62; questRoot14.QuestSequence = list95; @@ -314895,16 +259859,13 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "pot0to"; + CollectionsMarshal.AsSpan(list100)[0] = "pot0to"; questRoot15.Author = list100; - index = 3; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference69 = ref span101[num]; + num = 3; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span59 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference69 = ref span59[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -314912,36 +259873,30 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span60 = CollectionsMarshal.AsSpan(list102); + span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - index2++; - span102[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span60[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj63.Steps = list102; reference69 = obj63; - num++; - ref QuestSequence reference70 = ref span101[num]; + ref QuestSequence reference70 = ref span59[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj64.Steps = list103; reference70 = obj64; - num++; - ref QuestSequence reference71 = ref span101[num]; + ref QuestSequence reference71 = ref span59[2]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -314949,20 +259904,17 @@ public static class AssemblyQuestLoader num2 = 3; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - index2 = 0; - span104[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span61 = CollectionsMarshal.AsSpan(list104); + span61[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31165u, ItemCount = 2 }; - index2++; - span104[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span61[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span104[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span61[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj65.Steps = list104; reference71 = obj65; questRoot15.QuestSequence = list101; @@ -314972,32 +259924,26 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "liza"; + CollectionsMarshal.AsSpan(list105)[0] = "liza"; questRoot16.Author = list105; - index = 4; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference72 = ref span106[num]; + num = 4; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span62 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference72 = ref span62[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj66.Steps = list107; reference72 = obj66; - num++; - ref QuestSequence reference73 = ref span106[num]; + ref QuestSequence reference73 = ref span62[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 @@ -315005,39 +259951,33 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) { StopDistance = 5f }; obj67.Steps = list108; reference73 = obj67; - num++; - ref QuestSequence reference74 = ref span106[num]; + ref QuestSequence reference74 = ref span62[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 31167u, ItemCount = 1 }; - num2++; - span109[num2] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) + span64[1] = new QuestStep(EInteractionType.Interact, 1033750u, new Vector3(-591.3329f, 72.00111f, -451.01093f), 813) { StopDistance = 5f }; obj68.Steps = list109; reference74 = obj68; - num++; - ref QuestSequence reference75 = ref span106[num]; + ref QuestSequence reference75 = ref span62[3]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -315045,14 +259985,12 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span65 = CollectionsMarshal.AsSpan(list110); + span65[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj69.Steps = list110; reference75 = obj69; questRoot16.QuestSequence = list106; @@ -315062,32 +260000,26 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "liza"; + CollectionsMarshal.AsSpan(list111)[0] = "liza"; questRoot17.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference76 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span66 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference76 = ref span66[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj70.Steps = list113; reference76 = obj70; - num++; - ref QuestSequence reference77 = ref span112[num]; + ref QuestSequence reference77 = ref span66[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -315095,235 +260027,168 @@ public static class AssemblyQuestLoader num2 = 4; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - ref QuestStep reference78 = ref span114[index2]; + Span span68 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference78 = ref span68[0]; QuestStep obj72 = new QuestStep(EInteractionType.Interact, 2011169u, new Vector3(-95.903015f, 1.6326294f, 41.244995f), 813) { Fly = true }; - 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); + 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); reference79 = list116; - num3++; - span115[num3] = null; - num3++; - span115[num3] = null; + span69[4] = null; + span69[5] = null; obj72.RequiredQuestVariables = list115; num3 = 6; List list117 = new List(num3); CollectionsMarshal.SetCount(list117, num3); - 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); + 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); obj72.CompletionQuestVariablesFlags = list117; reference78 = obj72; - index2++; - ref QuestStep reference80 = ref span114[index2]; + ref QuestStep reference80 = ref span68[1]; QuestStep obj73 = new QuestStep(EInteractionType.Interact, 2011170u, new Vector3(-84.916504f, 2.39563f, 36.850464f), 813) { Fly = true }; - 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); + 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); reference81 = list119; - num3++; - span118[num3] = null; - num3++; - span118[num3] = null; + span72[4] = null; + span72[5] = null; obj73.RequiredQuestVariables = list118; num3 = 6; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - 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); + 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); obj73.CompletionQuestVariablesFlags = list120; reference80 = obj73; - index2++; - ref QuestStep reference82 = ref span114[index2]; + ref QuestStep reference82 = ref span68[2]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 2011171u, new Vector3(-68.55884f, 2.5177002f, 38.04065f), 813) { Fly = true }; - 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); + 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); reference83 = list122; - num3++; - span121[num3] = null; - num3++; - span121[num3] = null; + span75[4] = null; + span75[5] = null; obj74.RequiredQuestVariables = list121; num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - 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); + 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); obj74.CompletionQuestVariablesFlags = list123; reference82 = obj74; - index2++; - ref QuestStep reference84 = ref span114[index2]; + ref QuestStep reference84 = ref span68[3]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 2011172u, new Vector3(-70.2984f, 1.449585f, 62.210938f), 813) { Fly = true }; - 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); + 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); reference85 = list125; - num3++; - span124[num3] = null; - num3++; - span124[num3] = null; + span78[4] = null; + span78[5] = null; obj75.RequiredQuestVariables = list124; num3 = 6; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - 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); + 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); obj75.CompletionQuestVariablesFlags = list126; reference84 = obj75; obj71.Steps = list114; reference77 = obj71; - num++; - ref QuestSequence reference86 = ref span112[num]; + ref QuestSequence reference86 = ref span66[2]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj76.Steps = list127; reference86 = obj76; questRoot17.QuestSequence = list112; @@ -315333,16 +260198,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot18.Author = list128; - index = 4; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference87 = ref span129[num]; + num = 4; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span82 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference87 = ref span82[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -315350,29 +260212,23 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - 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); + 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); obj77.Steps = list130; reference87 = obj77; - num++; - ref QuestSequence reference88 = ref span129[num]; + ref QuestSequence reference88 = ref span82[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj78.Steps = list131; reference88 = obj78; - num++; - ref QuestSequence reference89 = ref span129[num]; + ref QuestSequence reference89 = ref span82[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -315380,39 +260236,34 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span84 = CollectionsMarshal.AsSpan(list132); + span84[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31169u, ItemCount = 3 }; - index2++; - span132[index2] = new QuestStep(EInteractionType.Interact, 1033694u, new Vector3(593.19434f, 5.8981767f, 704.86f), 813) + span84[1] = new QuestStep(EInteractionType.Interact, 1033694u, new Vector3(593.19434f, 5.8981767f, 704.86f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj79.Steps = list132; reference89 = obj79; - num++; - ref QuestSequence reference90 = ref span129[num]; + ref QuestSequence reference90 = ref span82[3]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span133[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span85[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj80.Steps = list133; reference90 = obj80; questRoot18.QuestSequence = list129; @@ -315422,16 +260273,13 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "liza"; + CollectionsMarshal.AsSpan(list134)[0] = "liza"; questRoot19.Author = list134; - index = 4; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference91 = ref span135[num]; + num = 4; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span86 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference91 = ref span86[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -315439,32 +260287,26 @@ public static class AssemblyQuestLoader num2 = 2; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - 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); + 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); obj81.Steps = list136; reference91 = obj81; - num++; - ref QuestSequence reference92 = ref span135[num]; + ref QuestSequence reference92 = ref span86[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj82.Steps = list137; reference92 = obj82; - num++; - ref QuestSequence reference93 = ref span135[num]; + ref QuestSequence reference93 = ref span86[2]; QuestSequence obj83 = new QuestSequence { Sequence = 2 @@ -315472,38 +260314,33 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span88 = CollectionsMarshal.AsSpan(list138); + span88[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31171u, ItemCount = 1 }; - index2++; - span138[index2] = new QuestStep(EInteractionType.Interact, 1033696u, new Vector3(119.035645f, 7.096028f, 667.5974f), 813) + span88[1] = new QuestStep(EInteractionType.Interact, 1033696u, new Vector3(119.035645f, 7.096028f, 667.5974f), 813) { StopDistance = 5f }; obj83.Steps = list138; reference93 = obj83; - num++; - ref QuestSequence reference94 = ref span135[num]; + ref QuestSequence reference94 = ref span86[3]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span139[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span89[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj84.Steps = list139; reference94 = obj84; questRoot19.QuestSequence = list135; @@ -315513,16 +260350,13 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - span140[index] = "liza"; + CollectionsMarshal.AsSpan(list140)[0] = "liza"; questRoot20.Author = list140; - index = 4; - List list141 = new List(index); - CollectionsMarshal.SetCount(list141, index); - Span span141 = CollectionsMarshal.AsSpan(list141); - num = 0; - ref QuestSequence reference95 = ref span141[num]; + num = 4; + List list141 = new List(num); + CollectionsMarshal.SetCount(list141, num); + Span span90 = CollectionsMarshal.AsSpan(list141); + ref QuestSequence reference95 = ref span90[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -315530,33 +260364,27 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - 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); + 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); obj85.Steps = list142; reference95 = obj85; - num++; - ref QuestSequence reference96 = ref span141[num]; + ref QuestSequence reference96 = ref span90[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj86.Steps = list143; reference96 = obj86; - num++; - ref QuestSequence reference97 = ref span141[num]; + ref QuestSequence reference97 = ref span90[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -315564,32 +260392,27 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.Emote, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Emote, 1033697u, new Vector3(705.2262f, 20.93061f, 29.007324f), 813) { Emote = EEmote.Psych }; obj87.Steps = list144; reference97 = obj87; - num++; - ref QuestSequence reference98 = ref span141[num]; + ref QuestSequence reference98 = ref span90[3]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span145[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj88.Steps = list145; reference98 = obj88; questRoot20.QuestSequence = list141; @@ -315599,16 +260422,13 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "pot0to"; + CollectionsMarshal.AsSpan(list146)[0] = "pot0to"; questRoot21.Author = list146; - index = 4; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference99 = ref span147[num]; + num = 4; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span93 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference99 = ref span93[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -315616,29 +260436,23 @@ public static class AssemblyQuestLoader num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - 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); + 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); obj89.Steps = list148; reference99 = obj89; - num++; - ref QuestSequence reference100 = ref span147[num]; + ref QuestSequence reference100 = ref span93[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj90.Steps = list149; reference100 = obj90; - num++; - ref QuestSequence reference101 = ref span147[num]; + ref QuestSequence reference101 = ref span93[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -315646,37 +260460,32 @@ public static class AssemblyQuestLoader num2 = 2; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span95 = CollectionsMarshal.AsSpan(list150); + span95[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31173u, ItemCount = 3 }; - index2++; - span150[index2] = new QuestStep(EInteractionType.Interact, 1033703u, new Vector3(-270.77136f, 93.37625f, -480.33875f), 813) + span95[1] = new QuestStep(EInteractionType.Interact, 1033703u, new Vector3(-270.77136f, 93.37625f, -480.33875f), 813) { Fly = true }; obj91.Steps = list150; reference101 = obj91; - num++; - ref QuestSequence reference102 = ref span147[num]; + ref QuestSequence reference102 = ref span93[3]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj92.Steps = list151; reference102 = obj92; questRoot21.QuestSequence = list147; @@ -315686,16 +260495,13 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "liza"; + CollectionsMarshal.AsSpan(list152)[0] = "liza"; questRoot22.Author = list152; - index = 3; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference103 = ref span153[num]; + num = 3; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span97 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference103 = ref span97[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -315703,32 +260509,26 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - 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); + 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); obj93.Steps = list154; reference103 = obj93; - num++; - ref QuestSequence reference104 = ref span153[num]; + ref QuestSequence reference104 = ref span97[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj94.Steps = list155; reference104 = obj94; - num++; - ref QuestSequence reference105 = ref span153[num]; + ref QuestSequence reference105 = ref span97[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -315736,20 +260536,17 @@ public static class AssemblyQuestLoader num2 = 3; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Craft, null, null, 813) + Span span99 = CollectionsMarshal.AsSpan(list156); + span99[0] = new QuestStep(EInteractionType.Craft, null, null, 813) { ItemId = 31175u, ItemCount = 1 }; - index2++; - span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span99[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span99[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj95.Steps = list156; reference105 = obj95; questRoot22.QuestSequence = list153; @@ -315759,32 +260556,26 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; questRoot23.Author = list157; - index = 3; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference106 = ref span158[num]; + num = 3; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span100 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference106 = ref span100[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj96.Steps = list159; reference106 = obj96; - num++; - ref QuestSequence reference107 = ref span158[num]; + ref QuestSequence reference107 = ref span100[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -315792,34 +260583,26 @@ public static class AssemblyQuestLoader num2 = 3; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - ref QuestStep reference108 = ref span160[index2]; + Span span102 = CollectionsMarshal.AsSpan(list160); + ref QuestStep reference108 = ref span102[0]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1033706u, new Vector3(-384.9088f, 105.85561f, -645.9602f), 813) { StopDistance = 2f, Fly = true }; - 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); + 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); obj98.CompletionQuestVariablesFlags = list161; reference108 = obj98; - index2++; - ref QuestStep reference109 = ref span160[index2]; + ref QuestStep reference109 = ref span102[1]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1033705u, new Vector3(-380.3922f, 103.089836f, -669.8253f), 813) { Fly = true @@ -315827,64 +260610,48 @@ public static class AssemblyQuestLoader num3 = 6; List list162 = new List(num3); CollectionsMarshal.SetCount(list162, num3); - 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); + 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); obj99.CompletionQuestVariablesFlags = list162; reference109 = obj99; - index2++; - ref QuestStep reference110 = ref span160[index2]; + ref QuestStep reference110 = ref span102[2]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1033707u, new Vector3(-361.83722f, 103.57124f, -703.2731f), 813) { Fly = true }; - 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); + 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); obj100.CompletionQuestVariablesFlags = list163; reference110 = obj100; obj97.Steps = list160; reference107 = obj97; - num++; - ref QuestSequence reference111 = ref span158[num]; + ref QuestSequence reference111 = ref span100[2]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span164[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span106[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj101.Steps = list164; reference111 = obj101; questRoot23.QuestSequence = list158; @@ -315894,16 +260661,13 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot24.Author = list165; - index = 5; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference112 = ref span166[num]; + num = 5; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span107 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference112 = ref span107[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -315911,29 +260675,23 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - 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); + 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); obj102.Steps = list167; reference112 = obj102; - num++; - ref QuestSequence reference113 = ref span166[num]; + ref QuestSequence reference113 = ref span107[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj103.Steps = list168; reference113 = obj103; - num++; - ref QuestSequence reference114 = ref span166[num]; + ref QuestSequence reference114 = ref span107[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -315941,9 +260699,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Action, 1034065u, new Vector3(-294.75854f, 99.225815f, -724.0253f), 813) { Fly = true, Land = true, @@ -315951,25 +260707,21 @@ public static class AssemblyQuestLoader }; obj104.Steps = list169; reference114 = obj104; - num++; - ref QuestSequence reference115 = ref span166[num]; + ref QuestSequence reference115 = ref span107[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Action = EAction.Cannonfire }; obj105.Steps = list170; reference115 = obj105; - num++; - ref QuestSequence reference116 = ref span166[num]; + ref QuestSequence reference116 = ref span107[4]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue @@ -315977,14 +260729,12 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span109 = CollectionsMarshal.AsSpan(list171); + span109[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span171[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813) + span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813) { Mount = false }; @@ -315997,32 +260747,26 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "liza"; + CollectionsMarshal.AsSpan(list172)[0] = "liza"; questRoot25.Author = list172; - index = 4; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference117 = ref span173[num]; + num = 4; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + Span span110 = CollectionsMarshal.AsSpan(list173); + ref QuestSequence reference117 = ref span110[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj107.Steps = list174; reference117 = obj107; - num++; - ref QuestSequence reference118 = ref span173[num]; + ref QuestSequence reference118 = ref span110[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 @@ -316030,33 +260774,27 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj108.Steps = list175; reference118 = obj108; - num++; - ref QuestSequence reference119 = ref span173[num]; + ref QuestSequence reference119 = ref span110[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 31177u, ItemCount = 1 }; - num2++; - span176[num2] = new QuestStep(EInteractionType.Interact, 1034070u, new Vector3(-796.47516f, 69.28625f, 117.29602f), 813); + span112[1] = new QuestStep(EInteractionType.Interact, 1034070u, new Vector3(-796.47516f, 69.28625f, 117.29602f), 813); obj109.Steps = list176; reference119 = obj109; - num++; - ref QuestSequence reference120 = ref span173[num]; + ref QuestSequence reference120 = ref span110[3]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -316064,14 +260802,12 @@ public static class AssemblyQuestLoader num2 = 2; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span113 = CollectionsMarshal.AsSpan(list177); + span113[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span177[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj110.Steps = list177; reference120 = obj110; questRoot25.QuestSequence = list173; @@ -316081,32 +260817,26 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "liza"; + CollectionsMarshal.AsSpan(list178)[0] = "liza"; questRoot26.Author = list178; - index = 3; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference121 = ref span179[num]; + num = 3; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span114 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference121 = ref span114[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj111.Steps = list180; reference121 = obj111; - num++; - ref QuestSequence reference122 = ref span179[num]; + ref QuestSequence reference122 = ref span114[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -316114,37 +260844,31 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Interact, 1034071u, new Vector3(-171.4046f, 5.779212f, -110.27698f), 813) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1034071u, new Vector3(-171.4046f, 5.779212f, -110.27698f), 813) { Fly = true }; obj112.Steps = list181; reference122 = obj112; - num++; - ref QuestSequence reference123 = ref span179[num]; + ref QuestSequence reference123 = ref span114[2]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 31179u, ItemCount = 3 }; - num2++; - span182[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span116[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - num2++; - span182[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span116[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj113.Steps = list182; reference123 = obj113; questRoot26.QuestSequence = list179; @@ -316154,16 +260878,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot27.Author = list183; - index = 3; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference124 = ref span184[num]; + num = 3; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span117 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference124 = ref span117[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -316171,34 +260892,28 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - 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); + 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); obj114.Steps = list185; reference124 = obj114; - num++; - ref QuestSequence reference125 = ref span184[num]; + ref QuestSequence reference125 = ref span117[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span186[num2] = new QuestStep(EInteractionType.Interact, 1034072u, new Vector3(-25.92511f, 1.3904266f, 662.8976f), 813); + span119[1] = new QuestStep(EInteractionType.Interact, 1034072u, new Vector3(-25.92511f, 1.3904266f, 662.8976f), 813); obj115.Steps = list186; reference125 = obj115; - num++; - ref QuestSequence reference126 = ref span184[num]; + ref QuestSequence reference126 = ref span117[2]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -316206,15 +260921,13 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span120 = CollectionsMarshal.AsSpan(list187); + span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - index2++; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span120[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj116.Steps = list187; reference126 = obj116; questRoot27.QuestSequence = list184; @@ -316224,32 +260937,26 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot28.Author = list188; - index = 4; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference127 = ref span189[num]; + num = 4; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span121 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference127 = ref span121[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj117.Steps = list190; reference127 = obj117; - num++; - ref QuestSequence reference128 = ref span189[num]; + ref QuestSequence reference128 = ref span121[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -316257,36 +260964,30 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1033767u, new Vector3(-608.6061f, 65.60222f, -431.81506f), 813); obj118.Steps = list191; reference128 = obj118; - num++; - ref QuestSequence reference129 = ref span189[num]; + ref QuestSequence reference129 = ref span121[2]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 31181u, ItemCount = 1 }; - num2++; - span192[num2] = new QuestStep(EInteractionType.Interact, 1034073u, new Vector3(-504.0513f, 3.623286f, 25.802979f), 813) + span123[1] = new QuestStep(EInteractionType.Interact, 1034073u, new Vector3(-504.0513f, 3.623286f, 25.802979f), 813) { Fly = true }; obj119.Steps = list192; reference129 = obj119; - num++; - ref QuestSequence reference130 = ref span189[num]; + ref QuestSequence reference130 = ref span121[3]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -316294,14 +260995,12 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span124 = CollectionsMarshal.AsSpan(list193); + span124[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - index2++; - span193[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span124[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj120.Steps = list193; reference130 = obj120; questRoot28.QuestSequence = list189; @@ -316311,32 +261010,26 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "liza"; + CollectionsMarshal.AsSpan(list194)[0] = "liza"; questRoot29.Author = list194; - index = 3; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference131 = ref span195[num]; + num = 3; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span125 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference131 = ref span125[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj121.Steps = list196; reference131 = obj121; - num++; - ref QuestSequence reference132 = ref span195[num]; + ref QuestSequence reference132 = ref span125[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -316344,42 +261037,36 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-134.17696f, 14.623874f, -124.68204f), 813) + Span span127 = CollectionsMarshal.AsSpan(list197); + span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-134.17696f, 14.623874f, -124.68204f), 813) { Fly = true }; - index2++; - span197[index2] = new QuestStep(EInteractionType.Interact, 1034075u, new Vector3(-137.71265f, 14.623856f, -124.89508f), 813) + span127[1] = new QuestStep(EInteractionType.Interact, 1034075u, new Vector3(-137.71265f, 14.623856f, -124.89508f), 813) { StopDistance = 5f }; obj122.Steps = list197; reference132 = obj122; - num++; - ref QuestSequence reference133 = ref span195[num]; + ref QuestSequence reference133 = ref span125[2]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 31183u, ItemCount = 3 }; - num2++; - span198[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + span128[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true }; - num2++; - span198[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span128[2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj123.Steps = list198; reference133 = obj123; questRoot29.QuestSequence = list195; @@ -316389,16 +261076,13 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "pot0to"; + CollectionsMarshal.AsSpan(list199)[0] = "pot0to"; questRoot30.Author = list199; - index = 4; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference134 = ref span200[num]; + num = 4; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span129 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference134 = ref span129[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -316406,9 +261090,8 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) + Span span130 = CollectionsMarshal.AsSpan(list201); + span130[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.73865f, 65.602264f, -423.84705f), 813) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative, @@ -316420,26 +261103,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span201[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span130[1] = new QuestStep(EInteractionType.AcceptQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj124.Steps = list201; reference134 = obj124; - num++; - ref QuestSequence reference135 = ref span200[num]; + ref QuestSequence reference135 = ref span129[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj125.Steps = list202; reference135 = obj125; - num++; - ref QuestSequence reference136 = ref span200[num]; + ref QuestSequence reference136 = ref span129[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -316447,9 +261125,8 @@ public static class AssemblyQuestLoader num2 = 15; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - ref QuestStep reference137 = ref span203[index2]; + Span span131 = CollectionsMarshal.AsSpan(list203); + ref QuestStep reference137 = ref span131[0]; QuestStep obj127 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.43753f, 101.31912f, -445.69028f), 813) { Fly = true, @@ -316458,77 +261135,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list204 = new List>(num3); CollectionsMarshal.SetCount(list204, num3); - 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); + 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); reference138 = list205; - num4++; - span204[num4] = null; - num4++; - span204[num4] = null; - num4++; - span204[num4] = null; - num4++; - span204[num4] = null; + span132[2] = null; + span132[3] = null; + span132[4] = null; + span132[5] = null; obj127.RequiredQuestVariables = list204; reference137 = obj127; - index2++; - ref QuestStep reference139 = ref span203[index2]; + ref QuestStep reference139 = ref span131[1]; 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" }; - 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); + 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); reference140 = list207; - num3++; - span206[num3] = null; - num3++; - span206[num3] = null; - num3++; - span206[num3] = null; - num3++; - span206[num3] = null; + span134[2] = null; + span134[3] = null; + span134[4] = null; + span134[5] = null; obj128.RequiredQuestVariables = list206; reference139 = obj128; - index2++; - ref QuestStep reference141 = ref span203[index2]; + ref QuestStep reference141 = ref span131[2]; QuestStep obj129 = new QuestStep(EInteractionType.Action, 2011130u, new Vector3(-245.7771f, 101.426636f, -433.98187f), 813) { Comment = "west of The Stay - fire cannon", @@ -316537,80 +261190,55 @@ public static class AssemblyQuestLoader num3 = 6; List> list208 = new List>(num3); CollectionsMarshal.SetCount(list208, num3); - 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); + 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); reference142 = list209; - num4++; - span208[num4] = null; - num4++; - span208[num4] = null; - num4++; - span208[num4] = null; - num4++; - span208[num4] = null; + span136[2] = null; + span136[3] = null; + span136[4] = null; + span136[5] = null; obj129.RequiredQuestVariables = list208; reference141 = obj129; - index2++; - ref QuestStep reference143 = ref span203[index2]; + ref QuestStep reference143 = ref span131[3]; 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> 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); + 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); reference144 = list211; - num3++; - span210[num3] = null; - num3++; - span210[num3] = null; - num3++; - span210[num3] = null; - num3++; - span210[num3] = null; + span138[2] = null; + span138[3] = null; + span138[4] = null; + span138[5] = null; obj130.RequiredQuestVariables = list210; reference143 = obj130; - index2++; - ref QuestStep reference145 = ref span203[index2]; + ref QuestStep reference145 = ref span131[4]; QuestStep obj131 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-205.86038f, 100.41297f, -450.21674f), 813) { Comment = "inside The Stay - walk up to target" @@ -316618,82 +261246,56 @@ public static class AssemblyQuestLoader num3 = 6; List> list212 = new List>(num3); CollectionsMarshal.SetCount(list212, num3); - 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); + 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); reference146 = list213; - num4++; - span212[num4] = null; - num4++; - span212[num4] = null; - num4++; - span212[num4] = null; - num4++; - span212[num4] = null; + span140[2] = null; + span140[3] = null; + span140[4] = null; + span140[5] = null; obj131.RequiredQuestVariables = list212; reference145 = obj131; - index2++; - ref QuestStep reference147 = ref span203[index2]; + ref QuestStep reference147 = ref span131[5]; 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> 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); + 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); reference148 = list215; - num3++; - span214[num3] = null; - num3++; - span214[num3] = null; - num3++; - span214[num3] = null; - num3++; - span214[num3] = null; + span142[2] = null; + span142[3] = null; + span142[4] = null; + span142[5] = null; obj132.RequiredQuestVariables = list214; reference147 = obj132; - index2++; - ref QuestStep reference149 = ref span203[index2]; + ref QuestStep reference149 = ref span131[6]; QuestStep obj133 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-204.52136f, 86.09296f, -519.285f), 813) { Fly = true, @@ -316702,81 +261304,55 @@ public static class AssemblyQuestLoader num3 = 6; List> list216 = new List>(num3); CollectionsMarshal.SetCount(list216, num3); - 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); + 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); reference150 = list217; - num4++; - span216[num4] = null; - num4++; - span216[num4] = null; - num4++; - span216[num4] = null; - num4++; - span216[num4] = null; + span144[2] = null; + span144[3] = null; + span144[4] = null; + span144[5] = null; obj133.RequiredQuestVariables = list216; reference149 = obj133; - index2++; - ref QuestStep reference151 = ref span203[index2]; + ref QuestStep reference151 = ref span131[7]; 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> 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); + 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); reference152 = list219; - num3++; - span218[num3] = null; - num3++; - span218[num3] = null; - num3++; - span218[num3] = null; - num3++; - span218[num3] = null; + span146[2] = null; + span146[3] = null; + span146[4] = null; + span146[5] = null; obj134.RequiredQuestVariables = list218; reference151 = obj134; - index2++; - ref QuestStep reference153 = ref span203[index2]; + ref QuestStep reference153 = ref span131[8]; QuestStep obj135 = new QuestStep(EInteractionType.Action, 2011133u, new Vector3(-193.13348f, 86.045654f, -502.76953f), 813) { Comment = "north of The Stay - fire cannon", @@ -316785,80 +261361,55 @@ public static class AssemblyQuestLoader num3 = 6; List> list220 = new List>(num3); CollectionsMarshal.SetCount(list220, num3); - 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); + 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); reference154 = list221; - num4++; - span220[num4] = null; - num4++; - span220[num4] = null; - num4++; - span220[num4] = null; - num4++; - span220[num4] = null; + span148[2] = null; + span148[3] = null; + span148[4] = null; + span148[5] = null; obj135.RequiredQuestVariables = list220; reference153 = obj135; - index2++; - ref QuestStep reference155 = ref span203[index2]; + ref QuestStep reference155 = ref span131[9]; 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" }; - 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); + 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); reference156 = list223; - num3++; - span222[num3] = null; - num3++; - span222[num3] = null; - num3++; - span222[num3] = null; - num3++; - span222[num3] = null; + span150[2] = null; + span150[3] = null; + span150[4] = null; + span150[5] = null; obj136.RequiredQuestVariables = list222; reference155 = obj136; - index2++; - ref QuestStep reference157 = ref span203[index2]; + ref QuestStep reference157 = ref span131[10]; 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" @@ -316866,78 +261417,54 @@ public static class AssemblyQuestLoader num3 = 6; List> list224 = new List>(num3); CollectionsMarshal.SetCount(list224, num3); - 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); + 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); reference158 = list225; - num4++; - span224[num4] = null; - num4++; - span224[num4] = null; - num4++; - span224[num4] = null; - num4++; - span224[num4] = null; + span152[2] = null; + span152[3] = null; + span152[4] = null; + span152[5] = null; obj137.RequiredQuestVariables = list224; reference157 = obj137; - index2++; - ref QuestStep reference159 = ref span203[index2]; + ref QuestStep reference159 = ref span131[11]; 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 }; - 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); + 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); reference160 = list227; - num3++; - span226[num3] = null; - num3++; - span226[num3] = null; - num3++; - span226[num3] = null; - num3++; - span226[num3] = null; + span154[2] = null; + span154[3] = null; + span154[4] = null; + span154[5] = null; obj138.RequiredQuestVariables = list226; reference159 = obj138; - index2++; - ref QuestStep reference161 = ref span203[index2]; + ref QuestStep reference161 = ref span131[12]; QuestStep obj139 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-153.4956f, 100.40788f, -442.20892f), 813) { Fly = true, @@ -316946,77 +261473,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list228 = new List>(num3); CollectionsMarshal.SetCount(list228, num3); - 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); + 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); reference162 = list229; - num4++; - span228[num4] = null; - num4++; - span228[num4] = null; - num4++; - span228[num4] = null; - num4++; - span228[num4] = null; + span156[2] = null; + span156[3] = null; + span156[4] = null; + span156[5] = null; obj139.RequiredQuestVariables = list228; reference161 = obj139; - index2++; - ref QuestStep reference163 = ref span203[index2]; + ref QuestStep reference163 = ref span131[13]; 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" }; - 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); + 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); reference164 = list231; - num3++; - span230[num3] = null; - num3++; - span230[num3] = null; - num3++; - span230[num3] = null; - num3++; - span230[num3] = null; + span158[2] = null; + span158[3] = null; + span158[4] = null; + span158[5] = null; obj140.RequiredQuestVariables = list230; reference163 = obj140; - index2++; - ref QuestStep reference165 = ref span203[index2]; + ref QuestStep reference165 = ref span131[14]; QuestStep obj141 = new QuestStep(EInteractionType.Action, 2011129u, new Vector3(-126.878784f, 103.196655f, -442.649f), 813) { Comment = "east of The Stay - fire cannon", @@ -317025,56 +261528,42 @@ public static class AssemblyQuestLoader num3 = 6; List> list232 = new List>(num3); CollectionsMarshal.SetCount(list232, num3); - 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); + 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); reference166 = list233; - num4++; - span232[num4] = null; - num4++; - span232[num4] = null; - num4++; - span232[num4] = null; - num4++; - span232[num4] = null; + span160[2] = null; + span160[3] = null; + span160[4] = null; + span160[5] = null; obj141.RequiredQuestVariables = list232; reference165 = obj141; obj126.Steps = list203; reference136 = obj126; - num++; - ref QuestSequence reference167 = ref span200[num]; + ref QuestSequence reference167 = ref span129[3]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandOstallImperative }; - num2++; - span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); + span162[1] = new QuestStep(EInteractionType.CompleteQuest, 1033712u, new Vector3(-617.1206f, 65.602264f, -425.25372f), 813); obj142.Steps = list234; reference167 = obj142; questRoot30.QuestSequence = list200; @@ -317088,16 +261577,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -317105,26 +261591,22 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { StopDistance = 4f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1032245u, new Vector3(622.73596f, 297.49292f, -199.42017f), 814) { Fly = true @@ -317132,67 +261614,46 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - 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); + 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); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1032244u, new Vector3(603.9978f, 297.43994f, -180.92627f), 814); - 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); + 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); questStep.CompletionQuestVariablesFlags = list6; reference4 = questStep; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list7; reference5 = questStep2; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -317200,36 +261661,30 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true }; obj4.Steps = list8; reference6 = obj4; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)895, Fly = true }; - num2++; - span9[num2] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); + span6[1] = new QuestStep(EInteractionType.Interact, 1032152u, new Vector3(-13.809448f, 0.039723f, -66.941345f), 895); obj5.Steps = list9; reference7 = obj5; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -317237,23 +261692,18 @@ public static class AssemblyQuestLoader num2 = 5; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) + Span span7 = CollectionsMarshal.AsSpan(list10); + span7[0] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) { TargetTerritoryId = (ushort)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) + 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) { RestartNavigationIfCancelled = false }; - index2++; - span10[index2] = new QuestStep(EInteractionType.Say, 2011156u, new Vector3(-694.05664f, 339.1621f, -370.2602f), 896) + span7[4] = new QuestStep(EInteractionType.Say, 2011156u, new Vector3(-694.05664f, 339.1621f, -370.2602f), 896) { DelaySecondsAtStart = 5f, ChatMessage = new ChatMessage @@ -317263,18 +261713,15 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference8 = obj6; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3953) }; @@ -317287,16 +261734,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "liza"; + CollectionsMarshal.AsSpan(list12)[0] = "liza"; questRoot2.Author = list12; - index = 5; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference10 = ref span13[num]; + num = 5; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span8 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference10 = ref span8[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -317304,23 +261748,18 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032020u, new Vector3(-9.353821f, 0.037398916f, -66.88031f), 895); obj8.Steps = list14; reference10 = obj8; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span8[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Duty, null, null, 814) { DutyOptions = new DutyOptions { @@ -317329,8 +261768,7 @@ public static class AssemblyQuestLoader }; obj9.Steps = list15; reference11 = obj9; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span8[2]; QuestSequence obj10 = new QuestSequence { Sequence = 2 @@ -317338,23 +261776,19 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1034040u, new Vector3(-363.94293f, 103.83351f, 366.4148f), 928); + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.Interact, 1034040u, new Vector3(-363.94293f, 103.83351f, 366.4148f), 928); obj10.Steps = list16; reference12 = obj10; - num++; - ref QuestSequence reference13 = ref span13[num]; + ref QuestSequence reference13 = ref span8[3]; QuestSequence obj11 = new QuestSequence { Sequence = 3 }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -317364,23 +261798,19 @@ public static class AssemblyQuestLoader } } }; - num2++; - span17[num2] = new QuestStep(EInteractionType.Interact, 2011155u, new Vector3(-383.81018f, 102.89148f, 389.12024f), 928) + span9[1] = new QuestStep(EInteractionType.Interact, 2011155u, new Vector3(-383.81018f, 102.89148f, 389.12024f), 928) { TargetTerritoryId = (ushort)814 }; - num2++; - span17[num2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + span9[2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - num2++; - span17[num2] = new QuestStep(EInteractionType.Interact, 1034044u, new Vector3(-19.058533f, -3.501947E-11f, -58.365784f), 895); + span9[3] = new QuestStep(EInteractionType.Interact, 1034044u, new Vector3(-19.058533f, -3.501947E-11f, -58.365784f), 895); obj11.Steps = list17; reference13 = obj11; - num++; - ref QuestSequence reference14 = ref span13[num]; + ref QuestSequence reference14 = ref span8[4]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -317388,14 +261818,12 @@ public static class AssemblyQuestLoader num2 = 2; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74414f, 0.6866455f, -58.396362f), 895) + Span span10 = CollectionsMarshal.AsSpan(list18); + span10[0] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74414f, 0.6866455f, -58.396362f), 895) { TargetTerritoryId = (ushort)895 }; - index2++; - span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034031u, new Vector3(-50.492126f, 0.037401117f, -121.53815f), 895) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1034031u, new Vector3(-50.492126f, 0.037401117f, -121.53815f), 895) { NextQuestId = new QuestId(3954) }; @@ -317408,30 +261836,24 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; questRoot3.Author = list19; - index = 13; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference15 = ref span20[num]; + num = 13; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span11 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference15 = ref span11[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj13.Steps = list21; reference15 = obj13; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span11[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -317439,35 +261861,29 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.5766f, 1.2054443f, -109.056274f), 895) + Span span12 = CollectionsMarshal.AsSpan(list22); + span12[0] = new QuestStep(EInteractionType.Interact, 2011137u, new Vector3(-49.5766f, 1.2054443f, -109.056274f), 895) { TargetTerritoryId = (ushort)895 }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + span12[1] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj14.Steps = list22; reference16 = obj14; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span11[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 1f }; obj15.Steps = list23; reference17 = obj15; - num++; - ref QuestSequence reference18 = ref span20[num]; + ref QuestSequence reference18 = ref span11[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -317475,33 +261891,25 @@ public static class AssemblyQuestLoader num2 = 6; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - ref QuestStep reference19 = ref span24[index2]; + Span span13 = CollectionsMarshal.AsSpan(list24); + ref QuestStep reference19 = ref span13[0]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1034016u, new Vector3(-6.668213f, -3.3829915E-11f, -56.443176f), 895) { StopDistance = 5f }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list25; reference19 = obj17; - index2++; - ref QuestStep reference20 = ref span24[index2]; + ref QuestStep reference20 = ref span13[1]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1034019u, new Vector3(-4.9592285f, -3.3072475E-11f, -55.161438f), 895) { StopDistance = 5f @@ -317509,47 +261917,33 @@ public static class AssemblyQuestLoader num3 = 6; List list26 = new List(num3); CollectionsMarshal.SetCount(list26, num3); - 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); + 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); obj18.CompletionQuestVariablesFlags = list26; reference20 = obj18; - index2++; - ref QuestStep reference21 = ref span24[index2]; + ref QuestStep reference21 = ref span13[2]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1034020u, new Vector3(-4.348877f, -3.1869986E-11f, -53.11664f), 895) { StopDistance = 5f }; - 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); + 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); obj19.CompletionQuestVariablesFlags = list27; reference21 = obj19; - index2++; - ref QuestStep reference22 = ref span24[index2]; + ref QuestStep reference22 = ref span13[3]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1034017u, new Vector3(-5.0507812f, 0.029999875f, -51.010986f), 895) { StopDistance = 5f @@ -317557,47 +261951,33 @@ public static class AssemblyQuestLoader num3 = 6; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - 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); + 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); obj20.CompletionQuestVariablesFlags = list28; reference22 = obj20; - index2++; - ref QuestStep reference23 = ref span24[index2]; + ref QuestStep reference23 = ref span13[4]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1034018u, new Vector3(-6.729248f, 0.037395146f, -49.851257f), 895) { StopDistance = 5f }; - 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); + 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); obj21.CompletionQuestVariablesFlags = list29; reference23 = obj21; - index2++; - ref QuestStep reference24 = ref span24[index2]; + ref QuestStep reference24 = ref span13[5]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1034028u, new Vector3(-9.140198f, 0.029994294f, -49.973328f), 895) { StopDistance = 5f @@ -317605,39 +261985,29 @@ public static class AssemblyQuestLoader num3 = 6; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - 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); + 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); obj22.CompletionQuestVariablesFlags = list30; reference24 = obj22; obj16.Steps = list24; reference18 = obj16; - num++; - ref QuestSequence reference25 = ref span20[num]; + ref QuestSequence reference25 = ref span11[4]; QuestSequence obj23 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj23.Steps = list31; reference25 = obj23; - num++; - ref QuestSequence reference26 = ref span20[num]; + ref QuestSequence reference26 = ref span11[5]; QuestSequence obj24 = new QuestSequence { Sequence = 5 @@ -317645,16 +262015,12 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - ref QuestStep reference27 = ref span32[index2]; + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1034025u, new Vector3(-6.515625f, 0.029999863f, -52.84204f), 895); - num4 = 1; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = new DialogueChoice + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA303_03954_Q1_000_000"), @@ -317664,22 +262030,18 @@ public static class AssemblyQuestLoader reference27 = questStep3; obj24.Steps = list32; reference26 = obj24; - num++; - ref QuestSequence reference28 = ref span20[num]; + ref QuestSequence reference28 = ref span11[6]; QuestSequence obj25 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj25.Steps = list34; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span20[num]; + ref QuestSequence reference29 = ref span11[7]; QuestSequence obj26 = new QuestSequence { Sequence = 7 @@ -317687,40 +262049,34 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74166f, 0.691666f, -58.37535f), 895) + Span span20 = CollectionsMarshal.AsSpan(list35); + span20[0] = new QuestStep(EInteractionType.Interact, 2011136u, new Vector3(-21.74166f, 0.691666f, -58.37535f), 895) { TargetTerritoryId = (ushort)895 }; - index2++; - span35[index2] = new QuestStep(EInteractionType.Interact, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895) + span20[1] = new QuestStep(EInteractionType.Interact, 1034030u, new Vector3(-48.508484f, 0.029999997f, -120.50055f), 895) { StopDistance = 7f }; obj26.Steps = list35; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span20[num]; + ref QuestSequence reference30 = ref span11[8]; QuestSequence obj27 = new QuestSequence { Sequence = 8 }; - 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) + 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) { TargetTerritoryId = (ushort)895 }; - num2++; - span36[num2] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); + span21[1] = new QuestStep(EInteractionType.Interact, 1034027u, new Vector3(-7.7669067f, -3.1738587E-11f, -52.872498f), 895); obj27.Steps = list36; reference30 = obj27; - num++; - ref QuestSequence reference31 = ref span20[num]; + ref QuestSequence reference31 = ref span11[9]; QuestSequence obj28 = new QuestSequence { Sequence = 9 @@ -317728,38 +262084,32 @@ public static class AssemblyQuestLoader num2 = 2; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span22 = CollectionsMarshal.AsSpan(list37); + span22[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - index2++; - span37[index2] = new QuestStep(EInteractionType.Interact, 2011151u, new Vector3(467.79578f, 311.02466f, -189.1051f), 814) + span22[1] = new QuestStep(EInteractionType.Interact, 2011151u, new Vector3(467.79578f, 311.02466f, -189.1051f), 814) { Fly = true }; obj28.Steps = list37; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span20[num]; + ref QuestSequence reference32 = ref span11[10]; QuestSequence obj29 = new QuestSequence { Sequence = 10 }; - 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) + 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) { Fly = true }; obj29.Steps = list38; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span20[num]; + ref QuestSequence reference33 = ref span11[11]; QuestSequence obj30 = new QuestSequence { Sequence = 11 @@ -317767,26 +262117,21 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 2011153u, new Vector3(466.26978f, 298.146f, -398.79456f), 814) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 2011153u, new Vector3(466.26978f, 298.146f, -398.79456f), 814) { Fly = true }; obj30.Steps = list39; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span20[num]; + ref QuestSequence reference34 = ref span11[12]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(3998) @@ -317800,16 +262145,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot4.Author = list41; - index = 5; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference35 = ref span42[num]; + num = 5; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span23 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference35 = ref span23[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -317817,30 +262159,24 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033962u, new Vector3(49.729126f, -18.746954f, 7.2785034f), 886); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033962u, new Vector3(49.729126f, -18.746954f, 7.2785034f), 886); obj32.Steps = list43; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span23[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj33.Steps = list44; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span23[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -317848,23 +262184,18 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Interact, 1033966u, new Vector3(1.7547607f, -2.9701123f, 33.6156f), 132); + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Interact, 1033966u, new Vector3(1.7547607f, -2.9701123f, 33.6156f), 132); obj34.Steps = list45; reference37 = obj34; - num++; - ref QuestSequence reference38 = ref span42[num]; + ref QuestSequence reference38 = ref span23[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -317874,8 +262205,7 @@ public static class AssemblyQuestLoader }; obj35.Steps = list46; reference38 = obj35; - num++; - ref QuestSequence reference39 = ref span42[num]; + ref QuestSequence reference39 = ref span23[4]; QuestSequence obj36 = new QuestSequence { Sequence = byte.MaxValue @@ -317883,9 +262213,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033969u, new Vector3(126.63464f, 12.680123f, -103.53253f), 133) { NextQuestId = new QuestId(3956) }; @@ -317898,30 +262226,24 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot5.Author = list48; - index = 4; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference40 = ref span49[num]; + num = 4; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span24 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference40 = ref span24[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj37.Steps = list50; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span49[num]; + ref QuestSequence reference41 = ref span24[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -317929,30 +262251,24 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1033971u, new Vector3(-14.4198f, 9.999999f, -79.88104f), 130) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1033971u, new Vector3(-14.4198f, 9.999999f, -79.88104f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj38.Steps = list51; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span49[num]; + ref QuestSequence reference42 = ref span24[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj39.Steps = list52; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span49[num]; + ref QuestSequence reference43 = ref span24[3]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -317960,16 +262276,12 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - ref QuestStep reference44 = ref span53[index2]; + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list53)[0]; 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); - Span span54 = CollectionsMarshal.AsSpan(list54); - num4 = 0; - span54[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list54)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA202_03956_Q1_000_000"), @@ -317987,30 +262299,24 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot6.Author = list55; - index = 7; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference45 = ref span56[num]; + num = 7; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span25 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference45 = ref span25[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj41.Steps = list57; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span25[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -318018,26 +262324,21 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1033997u, new Vector3(-6.149414f, 20f, 16.189758f), 129) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1033997u, new Vector3(-6.149414f, 20f, 16.189758f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj42.Steps = list58; reference46 = obj42; - num++; - ref QuestSequence reference47 = ref span56[num]; + ref QuestSequence reference47 = ref span25[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -318047,8 +262348,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list59; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span25[3]; QuestSequence obj44 = new QuestSequence { Sequence = 3 @@ -318056,9 +262356,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1033999u, new Vector3(47.501343f, 44.70852f, 131.2428f), 128) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1033999u, new Vector3(47.501343f, 44.70852f, 131.2428f), 128) { AethernetShortcut = new AethernetShortcut { @@ -318068,22 +262366,18 @@ public static class AssemblyQuestLoader }; obj44.Steps = list60; reference48 = obj44; - num++; - ref QuestSequence reference49 = ref span56[num]; + ref QuestSequence reference49 = ref span25[4]; QuestSequence obj45 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj45.Steps = list61; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span56[num]; + ref QuestSequence reference50 = ref span25[5]; QuestSequence obj46 = new QuestSequence { Sequence = 5 @@ -318091,33 +262385,26 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128); obj46.Steps = list62; reference50 = obj46; - num++; - ref QuestSequence reference51 = ref span56[num]; + ref QuestSequence reference51 = ref span25[6]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference52 = ref span63[num2]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference52 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj48 = new QuestStep(EInteractionType.CompleteQuest, 1033986u, new Vector3(-2.8840332f, 43.999985f, -157.91565f), 128) { StopDistance = 7f }; - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new DialogueChoice + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA203_03957_Q1_000_000"), @@ -318135,16 +262422,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot7.Author = list65; - index = 3; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference53 = ref span66[num]; + num = 3; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span26 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference53 = ref span26[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -318152,26 +262436,21 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1033987u, new Vector3(-2.8840332f, 43.99998f, -159.3805f), 128) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1033987u, new Vector3(-2.8840332f, 43.99998f, -159.3805f), 128) { StopDistance = 7f }; obj49.Steps = list67; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span66[num]; + ref QuestSequence reference54 = ref span26[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -318182,8 +262461,7 @@ public static class AssemblyQuestLoader }; obj50.Steps = list68; reference54 = obj50; - num++; - ref QuestSequence reference55 = ref span66[num]; + ref QuestSequence reference55 = ref span26[2]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -318191,9 +262469,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.CompleteQuest, 1033990u, new Vector3(-38.71222f, -20f, 58.060547f), 886) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.CompleteQuest, 1033990u, new Vector3(-38.71222f, -20f, 58.060547f), 886) { StopDistance = 7f, NextQuestId = new QuestId(3960) @@ -318207,33 +262483,27 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - span70[index] = "liza"; + CollectionsMarshal.AsSpan(list70)[0] = "liza"; questRoot8.Author = list70; - index = 3; - List list71 = new List(index); - CollectionsMarshal.SetCount(list71, index); - Span span71 = CollectionsMarshal.AsSpan(list71); - num = 0; - ref QuestSequence reference56 = ref span71[num]; + num = 3; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + Span span27 = CollectionsMarshal.AsSpan(list71); + ref QuestSequence reference56 = ref span27[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj52.Steps = list72; reference56 = obj52; - num++; - ref QuestSequence reference57 = ref span71[num]; + ref QuestSequence reference57 = ref span27[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -318241,9 +262511,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.Interact, 1034082u, new Vector3(118.57776f, -20.000143f, 46.860474f), 418) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.Interact, 1034082u, new Vector3(118.57776f, -20.000143f, 46.860474f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -318254,18 +262522,15 @@ public static class AssemblyQuestLoader }; obj53.Steps = list73; reference57 = obj53; - num++; - ref QuestSequence reference58 = ref span71[num]; + ref QuestSequence reference58 = ref span27[2]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3999) }; @@ -318278,16 +262543,13 @@ public static class AssemblyQuestLoader num = 1; List list75 = new List(num); CollectionsMarshal.SetCount(list75, num); - Span span75 = CollectionsMarshal.AsSpan(list75); - index = 0; - span75[index] = "liza"; + CollectionsMarshal.AsSpan(list75)[0] = "liza"; questRoot9.Author = list75; - index = 3; - List list76 = new List(index); - CollectionsMarshal.SetCount(list76, index); - Span span76 = CollectionsMarshal.AsSpan(list76); - num = 0; - ref QuestSequence reference59 = ref span76[num]; + num = 3; + List list76 = new List(num); + CollectionsMarshal.SetCount(list76, num); + Span span28 = CollectionsMarshal.AsSpan(list76); + ref QuestSequence reference59 = ref span28[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -318295,34 +262557,28 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032590u, new Vector3(265.3086f, 7.1558266f, -237.78137f), 815) { StopDistance = 4f }; obj55.Steps = list77; reference59 = obj55; - num++; - ref QuestSequence reference60 = ref span76[num]; + ref QuestSequence reference60 = ref span28[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengInnAtJourneysHead }; obj56.Steps = list78; reference60 = obj56; - num++; - ref QuestSequence reference61 = ref span76[num]; + ref QuestSequence reference61 = ref span28[2]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue @@ -318330,9 +262586,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) { NextQuestId = new QuestId(3976) }; @@ -318345,33 +262599,27 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot10.Author = list80; - index = 4; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference62 = ref span81[num]; + num = 4; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span29 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference62 = ref span29[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj58.Steps = list82; reference62 = obj58; - num++; - ref QuestSequence reference63 = ref span81[num]; + ref QuestSequence reference63 = ref span29[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 @@ -318379,28 +262627,23 @@ public static class AssemblyQuestLoader num2 = 2; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) + Span span30 = CollectionsMarshal.AsSpan(list83); + span30[0] = new QuestStep(EInteractionType.Interact, 2010135u, new Vector3(-14.66394f, -2.5788574f, 23.819275f), 878) { TargetTerritoryId = (ushort)857 }; - index2++; - span83[index2] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); + span30[1] = new QuestStep(EInteractionType.Interact, 1030110u, new Vector3(99.99231f, -7.687662E-13f, 92.51538f), 857); obj59.Steps = list83; reference63 = obj59; - num++; - ref QuestSequence reference64 = ref span81[num]; + ref QuestSequence reference64 = ref span29[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -318409,8 +262652,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list84; reference64 = obj60; - num++; - ref QuestSequence reference65 = ref span81[num]; + ref QuestSequence reference65 = ref span29[3]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -318418,9 +262660,7 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034511u, new Vector3(101.27405f, -2.4161777E-14f, 93.36987f), 857) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034511u, new Vector3(101.27405f, -2.4161777E-14f, 93.36987f), 857) { NextQuestId = new QuestId(3977) }; @@ -318433,33 +262673,27 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot11.Author = list86; - index = 6; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference66 = ref span87[num]; + num = 6; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span31 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference66 = ref span31[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj62.Steps = list88; reference66 = obj62; - num++; - ref QuestSequence reference67 = ref span87[num]; + ref QuestSequence reference67 = ref span31[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -318467,33 +262701,27 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1034513u, new Vector3(-6.149414f, -2.4984214f, 19.72992f), 878) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1034513u, new Vector3(-6.149414f, -2.4984214f, 19.72992f), 878) { StopDistance = 5f }; obj63.Steps = list89; reference67 = obj63; - num++; - ref QuestSequence reference68 = ref span87[num]; + ref QuestSequence reference68 = ref span31[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)857 }; obj64.Steps = list90; reference68 = obj64; - num++; - ref QuestSequence reference69 = ref span87[num]; + ref QuestSequence reference69 = ref span31[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -318501,26 +262729,21 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1034515u, new Vector3(-7.888916f, -2.4984214f, 12.741211f), 878) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1034515u, new Vector3(-7.888916f, -2.4984214f, 12.741211f), 878) { StopDistance = 5f }; obj65.Steps = list91; reference69 = obj65; - num++; - ref QuestSequence reference70 = ref span87[num]; + ref QuestSequence reference70 = ref span31[4]; QuestSequence obj66 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -318529,8 +262752,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list92; reference70 = obj66; - num++; - ref QuestSequence reference71 = ref span87[num]; + ref QuestSequence reference71 = ref span31[5]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -318538,9 +262760,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034518u, new Vector3(101.182495f, -3.8122757E-14f, 103.715576f), 857) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034518u, new Vector3(101.182495f, -3.8122757E-14f, 103.715576f), 857) { StopDistance = 7f, NextQuestId = new QuestId(3978) @@ -318554,33 +262774,27 @@ public static class AssemblyQuestLoader num = 1; List list94 = new List(num); CollectionsMarshal.SetCount(list94, num); - Span span94 = CollectionsMarshal.AsSpan(list94); - index = 0; - span94[index] = "liza"; + CollectionsMarshal.AsSpan(list94)[0] = "liza"; questRoot12.Author = list94; - index = 7; - List list95 = new List(index); - CollectionsMarshal.SetCount(list95, index); - Span span95 = CollectionsMarshal.AsSpan(list95); - num = 0; - ref QuestSequence reference72 = ref span95[num]; + num = 7; + List list95 = new List(num); + CollectionsMarshal.SetCount(list95, num); + Span span32 = CollectionsMarshal.AsSpan(list95); + ref QuestSequence reference72 = ref span32[0]; QuestSequence obj68 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj68.Steps = list96; reference72 = obj68; - num++; - ref QuestSequence reference73 = ref span95[num]; + ref QuestSequence reference73 = ref span32[1]; QuestSequence obj69 = new QuestSequence { Sequence = 1 @@ -318588,9 +262802,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Duty, null, null, 857) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -318599,23 +262811,19 @@ public static class AssemblyQuestLoader }; obj69.Steps = list97; reference73 = obj69; - num++; - span95[num] = new QuestSequence + span32[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference74 = ref span95[num]; + ref QuestSequence reference74 = ref span32[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Duty, null, null, 857) { DutyOptions = new DutyOptions { @@ -318624,8 +262832,7 @@ public static class AssemblyQuestLoader }; obj70.Steps = list98; reference74 = obj70; - num++; - ref QuestSequence reference75 = ref span95[num]; + ref QuestSequence reference75 = ref span32[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 @@ -318633,26 +262840,21 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) { StopDistance = 5f }; obj71.Steps = list99; reference75 = obj71; - num++; - ref QuestSequence reference76 = ref span95[num]; + ref QuestSequence reference76 = ref span32[5]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f, ChatMessage = new ChatMessage @@ -318662,8 +262864,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list100; reference76 = obj72; - num++; - ref QuestSequence reference77 = ref span95[num]; + ref QuestSequence reference77 = ref span32[6]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -318671,9 +262872,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1034521u, new Vector3(-8.163635f, -2.4984214f, 11.734131f), 878) { StopDistance = 5f }; @@ -318686,33 +262885,27 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot13.Author = list102; - index = 3; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference78 = ref span103[num]; + num = 3; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span33 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference78 = ref span33[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj74.Steps = list104; reference78 = obj74; - num++; - ref QuestSequence reference79 = ref span103[num]; + ref QuestSequence reference79 = ref span33[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -318720,32 +262913,27 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1034508u, new Vector3(380.66675f, -64.28985f, 510.58203f), 815) { StopDistance = 5f }; obj75.Steps = list105; reference79 = obj75; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span33[2]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.AmhAraengMordSouq }; - num2++; - span106[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) + span34[1] = new QuestStep(EInteractionType.CompleteQuest, 1032715u, new Vector3(265.3086f, 7.1558266f, -237.81189f), 815) { StopDistance = 4f }; @@ -318758,16 +262946,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot14.Author = list107; - index = 9; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference81 = ref span108[num]; + num = 9; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span35 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference81 = ref span35[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -318775,9 +262960,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -318790,18 +262973,15 @@ public static class AssemblyQuestLoader }; obj77.Steps = list109; reference81 = obj77; - num++; - ref QuestSequence reference82 = ref span108[num]; + ref QuestSequence reference82 = ref span35[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference83 = ref span110[num2]; + num2 = 1; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestStep obj79 = new QuestStep(EInteractionType.Interact, 1035243u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) { Fly = true @@ -318809,9 +262989,7 @@ public static class AssemblyQuestLoader num3 = 1; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num4 = 0; - span111[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW301_03980_Q2_000_000") @@ -318820,8 +262998,7 @@ public static class AssemblyQuestLoader reference83 = obj79; obj78.Steps = list110; reference82 = obj78; - num++; - ref QuestSequence reference84 = ref span108[num]; + ref QuestSequence reference84 = ref span35[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -318829,27 +263006,21 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj80.Steps = list112; reference84 = obj80; - num++; - ref QuestSequence reference85 = ref span108[num]; + ref QuestSequence reference85 = ref span35[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj81.Steps = list113; reference85 = obj81; - num++; - ref QuestSequence reference86 = ref span108[num]; + ref QuestSequence reference86 = ref span35[4]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -318857,9 +263028,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Duty, null, null, 140) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Duty, null, null, 140) { DutyOptions = new DutyOptions { @@ -318868,25 +263037,21 @@ public static class AssemblyQuestLoader }; obj82.Steps = list114; reference86 = obj82; - num++; - ref QuestSequence reference87 = ref span108[num]; + ref QuestSequence reference87 = ref span35[5]; QuestSequence obj83 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj83.Steps = list115; reference87 = obj83; - num++; - ref QuestSequence reference88 = ref span108[num]; + ref QuestSequence reference88 = ref span35[6]; QuestSequence obj84 = new QuestSequence { Sequence = 6 @@ -318894,27 +263059,21 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); obj84.Steps = list116; reference88 = obj84; - num++; - ref QuestSequence reference89 = ref span108[num]; + ref QuestSequence reference89 = ref span35[7]; QuestSequence obj85 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj85.Steps = list117; reference89 = obj85; - num++; - ref QuestSequence reference90 = ref span108[num]; + ref QuestSequence reference90 = ref span35[8]; QuestSequence obj86 = new QuestSequence { Sequence = byte.MaxValue @@ -318922,9 +263081,8 @@ public static class AssemblyQuestLoader num2 = 3; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - ref QuestStep reference91 = ref span118[index2]; + Span span36 = CollectionsMarshal.AsSpan(list118); + ref QuestStep reference91 = ref span36[0]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { StopDistance = 7f, @@ -318932,18 +263090,15 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num4 = 1; - List list119 = new List(num4); - CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - num3 = 0; - span119[num3] = 919; + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = 919; skipStepConditions.NotInTerritory = list119; skipConditions.StepIf = skipStepConditions; obj87.SkipConditions = skipConditions; reference91 = obj87; - index2++; - span118[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -318955,8 +263110,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + span36[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(3981) }; @@ -318969,26 +263123,21 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "liza"; + CollectionsMarshal.AsSpan(list120)[0] = "liza"; questRoot15.Author = list120; - index = 5; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference92 = ref span121[num]; + num = 5; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span37 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference92 = ref span37[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -319001,8 +263150,7 @@ public static class AssemblyQuestLoader }; obj88.Steps = list122; reference92 = obj88; - num++; - ref QuestSequence reference93 = ref span121[num]; + ref QuestSequence reference93 = ref span37[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -319010,16 +263158,12 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - ref QuestStep reference94 = ref span123[index2]; + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list123)[0]; 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); - Span span124 = CollectionsMarshal.AsSpan(list124); - num4 = 0; - span124[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW311_03981_Q3_000_000") @@ -319028,22 +263172,18 @@ public static class AssemblyQuestLoader reference94 = questStep5; obj89.Steps = list123; reference93 = obj89; - num++; - ref QuestSequence reference95 = ref span121[num]; + ref QuestSequence reference95 = ref span37[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj90.Steps = list125; reference95 = obj90; - num++; - ref QuestSequence reference96 = ref span121[num]; + ref QuestSequence reference96 = ref span37[3]; QuestSequence obj91 = new QuestSequence { Sequence = 3 @@ -319051,23 +263191,19 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 1035323u, new Vector3(1.1443481f, 41.01995f, 24.917969f), 919); + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 1035323u, new Vector3(1.1443481f, 41.01995f, 24.917969f), 919); obj91.Steps = list126; reference96 = obj91; - num++; - ref QuestSequence reference97 = ref span121[num]; + ref QuestSequence reference97 = ref span37[4]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list127 = new List(index2); - CollectionsMarshal.SetCount(list127, index2); - Span span127 = CollectionsMarshal.AsSpan(list127); - num2 = 0; - ref QuestStep reference98 = ref span127[num2]; + num2 = 3; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + Span span38 = CollectionsMarshal.AsSpan(list127); + ref QuestStep reference98 = ref span38[0]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1033636u, new Vector3(-5.5390625f, 41.019974f, 25.680908f), 919) { StopDistance = 7f, @@ -319075,18 +263211,15 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num4 = 1; - List list128 = new List(num4); - CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = 919; + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = 919; skipStepConditions2.NotInTerritory = list128; skipConditions2.StepIf = skipStepConditions2; obj93.SkipConditions = skipConditions2; reference98 = obj93; - num2++; - span127[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + span38[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -319098,8 +263231,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span127[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + span38[2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { NextQuestId = new QuestId(4031) }; @@ -319112,16 +263244,13 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - Span span129 = CollectionsMarshal.AsSpan(list129); - index = 0; - span129[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list129)[0] = "plogon_enjoyer"; questRoot16.Author = list129; - index = 4; - List list130 = new List(index); - CollectionsMarshal.SetCount(list130, index); - Span span130 = CollectionsMarshal.AsSpan(list130); - num = 0; - ref QuestSequence reference99 = ref span130[num]; + num = 4; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + Span span39 = CollectionsMarshal.AsSpan(list130); + ref QuestSequence reference99 = ref span39[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -319129,27 +263258,21 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819); obj94.Steps = list131; reference99 = obj94; - num++; - ref QuestSequence reference100 = ref span130[num]; + ref QuestSequence reference100 = ref span39[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj95.Steps = list132; reference100 = obj95; - num++; - ref QuestSequence reference101 = ref span130[num]; + ref QuestSequence reference101 = ref span39[2]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -319157,23 +263280,18 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1030643u, new Vector3(-0.16790771f, 3.9998174f, 201.9226f), 819); obj96.Steps = list133; reference101 = obj96; - num++; - ref QuestSequence reference102 = ref span130[num]; + ref QuestSequence reference102 = ref span39[3]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3986) }; @@ -319186,16 +263304,13 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list135)[0] = "plogon_enjoyer"; questRoot17.Author = list135; - index = 6; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference103 = ref span136[num]; + num = 6; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span40 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference103 = ref span40[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 @@ -319203,16 +263318,12 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - ref QuestStep reference104 = ref span137[index2]; + ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list137)[0]; 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); - Span span138 = CollectionsMarshal.AsSpan(list138); - num4 = 0; - span138[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKUN001_03986_Q1_000_000"), @@ -319222,33 +263333,28 @@ public static class AssemblyQuestLoader reference104 = questStep6; obj98.Steps = list137; reference103 = obj98; - num++; - ref QuestSequence reference105 = ref span136[num]; + ref QuestSequence reference105 = ref span40[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span139[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span41[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span139[num2] = new QuestStep(EInteractionType.Interact, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351); + span41[2] = new QuestStep(EInteractionType.Interact, 1014565u, new Vector3(0.44250488f, -1.9957249f, -43.22882f), 351); obj99.Steps = list139; reference105 = obj99; - num++; - ref QuestSequence reference106 = ref span136[num]; + ref QuestSequence reference106 = ref span40[2]; QuestSequence obj100 = new QuestSequence { Sequence = 2 @@ -319256,23 +263362,18 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 2011294u, new Vector3(1.9683228f, -1.9990234f, -42.343872f), 351); + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 2011294u, new Vector3(1.9683228f, -1.9990234f, -42.343872f), 351); obj100.Steps = list140; reference106 = obj100; - num++; - ref QuestSequence reference107 = ref span136[num]; + ref QuestSequence reference107 = ref span40[3]; QuestSequence obj101 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list141 = new List(index2); - CollectionsMarshal.SetCount(list141, index2); - Span span141 = CollectionsMarshal.AsSpan(list141); - num2 = 0; - ref QuestStep reference108 = ref span141[num2]; + num2 = 1; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list141)[0]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -319282,12 +263383,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - num4 = 1; - List list142 = new List(num4); - CollectionsMarshal.SetCount(list142, num4); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = new DialogueChoice + num3 = 1; + List list142 = new List(num3); + CollectionsMarshal.SetCount(list142, num3); + CollectionsMarshal.AsSpan(list142)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKUN001_03986_Q3_000_000"), @@ -319297,8 +263396,7 @@ public static class AssemblyQuestLoader reference108 = obj102; obj101.Steps = list141; reference107 = obj101; - num++; - ref QuestSequence reference109 = ref span136[num]; + ref QuestSequence reference109 = ref span40[4]; QuestSequence obj103 = new QuestSequence { Sequence = 4 @@ -319306,9 +263404,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 1030837u, new Vector3(-25.92511f, 3.9998174f, 205.12695f), 819) { AethernetShortcut = new AethernetShortcut { @@ -319318,18 +263414,15 @@ public static class AssemblyQuestLoader }; obj103.Steps = list143; reference109 = obj103; - num++; - ref QuestSequence reference110 = ref span136[num]; + ref QuestSequence reference110 = ref span40[5]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3987) }; @@ -319342,16 +263435,13 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list145)[0] = "plogon_enjoyer"; questRoot18.Author = list145; - index = 8; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference111 = ref span146[num]; + num = 8; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span42 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference111 = ref span42[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -319359,31 +263449,25 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035281u, new Vector3(-1.1444702f, 3.9998174f, 199.6947f), 819); + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035281u, new Vector3(-1.1444702f, 3.9998174f, 199.6947f), 819); obj105.Steps = list147; reference111 = obj105; - num++; - ref QuestSequence reference112 = ref span146[num]; + ref QuestSequence reference112 = ref span42[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LakelandFortJobb }; obj106.Steps = list148; reference112 = obj106; - num++; - ref QuestSequence reference113 = ref span146[num]; + ref QuestSequence reference113 = ref span42[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -319391,9 +263475,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - ref QuestStep reference114 = ref span149[index2]; + ref QuestStep reference114 = ref CollectionsMarshal.AsSpan(list149)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.8607f, 14.622499f, 222.77487f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -319401,29 +263483,23 @@ public static class AssemblyQuestLoader num3 = 1; List list150 = new List(num3); CollectionsMarshal.SetCount(list150, num3); - Span span150 = CollectionsMarshal.AsSpan(list150); - num4 = 0; - span150[num4] = 12662u; + CollectionsMarshal.AsSpan(list150)[0] = 12662u; obj108.KillEnemyDataIds = list150; reference114 = obj108; obj107.Steps = list149; reference113 = obj107; - num++; - ref QuestSequence reference115 = ref span146[num]; + ref QuestSequence reference115 = ref span42[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj109.Steps = list151; reference115 = obj109; - num++; - ref QuestSequence reference116 = ref span146[num]; + ref QuestSequence reference116 = ref span42[4]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -319431,39 +263507,31 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - ref QuestStep reference117 = ref span152[index2]; + ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list152)[0]; QuestStep obj111 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.62976f, 14.622499f, 223.06616f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list153 = new List(num4); - CollectionsMarshal.SetCount(list153, num4); - Span span153 = CollectionsMarshal.AsSpan(list153); - num3 = 0; - span153[num3] = 12663u; + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + CollectionsMarshal.AsSpan(list153)[0] = 12663u; obj111.KillEnemyDataIds = list153; reference117 = obj111; obj110.Steps = list152; reference116 = obj110; - num++; - ref QuestSequence reference118 = ref span146[num]; + ref QuestSequence reference118 = ref span42[5]; QuestSequence obj112 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj112.Steps = list154; reference118 = obj112; - num++; - ref QuestSequence reference119 = ref span146[num]; + ref QuestSequence reference119 = ref span42[6]; QuestSequence obj113 = new QuestSequence { Sequence = 6 @@ -319471,9 +263539,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - ref QuestStep reference120 = ref span155[index2]; + ref QuestStep reference120 = ref CollectionsMarshal.AsSpan(list155)[0]; QuestStep obj114 = new QuestStep(EInteractionType.Combat, null, new Vector3(652.4463f, 14.6225f, 222.89134f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -319481,25 +263547,20 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span156 = CollectionsMarshal.AsSpan(list156); - num4 = 0; - span156[num4] = 12664u; + CollectionsMarshal.AsSpan(list156)[0] = 12664u; obj114.KillEnemyDataIds = list156; reference120 = obj114; obj113.Steps = list155; reference119 = obj113; - num++; - ref QuestSequence reference121 = ref span146[num]; + ref QuestSequence reference121 = ref span42[7]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(3988) }; @@ -319512,16 +263573,13 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list158)[0] = "plogon_enjoyer"; questRoot19.Author = list158; - index = 6; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference122 = ref span159[num]; + num = 6; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span43 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference122 = ref span43[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -319529,30 +263587,24 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035283u, new Vector3(659.8153f, 14.620948f, 215.77783f), 813); obj116.Steps = list160; reference122 = obj116; - num++; - ref QuestSequence reference123 = ref span159[num]; + ref QuestSequence reference123 = ref span43[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj117.Steps = list161; reference123 = obj117; - num++; - ref QuestSequence reference124 = ref span159[num]; + ref QuestSequence reference124 = ref span43[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 @@ -319560,39 +263612,31 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - ref QuestStep reference125 = ref span162[index2]; + ref QuestStep reference125 = ref CollectionsMarshal.AsSpan(list162)[0]; QuestStep obj119 = new QuestStep(EInteractionType.Combat, null, new Vector3(2.5688472f, 195.76323f, -300.17883f), 813) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list163 = new List(num4); - CollectionsMarshal.SetCount(list163, num4); - Span span163 = CollectionsMarshal.AsSpan(list163); - num3 = 0; - span163[num3] = 12665u; + num3 = 1; + List list163 = new List(num3); + CollectionsMarshal.SetCount(list163, num3); + CollectionsMarshal.AsSpan(list163)[0] = 12665u; obj119.KillEnemyDataIds = list163; reference125 = obj119; obj118.Steps = list162; reference124 = obj118; - num++; - ref QuestSequence reference126 = ref span159[num]; + ref QuestSequence reference126 = ref span43[3]; QuestSequence obj120 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj120.Steps = list164; reference126 = obj120; - num++; - ref QuestSequence reference127 = ref span159[num]; + ref QuestSequence reference127 = ref span43[4]; QuestSequence obj121 = new QuestSequence { Sequence = 4 @@ -319600,23 +263644,18 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 2011298u, new Vector3(2.5689f, 195.7632f, -300.4041f), 813); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 2011298u, new Vector3(2.5689f, 195.7632f, -300.4041f), 813); obj121.Steps = list165; reference127 = obj121; - num++; - ref QuestSequence reference128 = ref span159[num]; + ref QuestSequence reference128 = ref span43[5]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -319634,16 +263673,13 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "liza"; + CollectionsMarshal.AsSpan(list167)[0] = "liza"; questRoot20.Author = list167; - index = 3; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference129 = ref span168[num]; + num = 3; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span44 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference129 = ref span44[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -319651,9 +263687,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - ref QuestStep reference130 = ref span169[index2]; + ref QuestStep reference130 = ref CollectionsMarshal.AsSpan(list169)[0]; QuestStep obj124 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -319672,27 +263706,22 @@ public static class AssemblyQuestLoader num3 = 1; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span170 = CollectionsMarshal.AsSpan(list170); - num4 = 0; - span170[num4] = 131; + CollectionsMarshal.AsSpan(list170)[0] = 131; obj125.InTerritory = list170; skipConditions3.AetheryteShortcutIf = obj125; obj124.SkipConditions = skipConditions3; reference130 = obj124; obj123.Steps = list169; reference129 = obj123; - num++; - ref QuestSequence reference131 = ref span168[num]; + ref QuestSequence reference131 = ref span44[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -319703,8 +263732,7 @@ public static class AssemblyQuestLoader }; obj126.Steps = list171; reference131 = obj126; - num++; - ref QuestSequence reference132 = ref span168[num]; + ref QuestSequence reference132 = ref span44[2]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -319712,9 +263740,7 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -319734,26 +263760,21 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - Span span173 = CollectionsMarshal.AsSpan(list173); - index = 0; - span173[index] = "liza"; + CollectionsMarshal.AsSpan(list173)[0] = "liza"; questRoot21.Author = list173; - index = 8; - List list174 = new List(index); - CollectionsMarshal.SetCount(list174, index); - Span span174 = CollectionsMarshal.AsSpan(list174); - num = 0; - ref QuestSequence reference133 = ref span174[num]; + num = 8; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + Span span45 = CollectionsMarshal.AsSpan(list174); + ref QuestSequence reference133 = ref span45[0]; QuestSequence obj128 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list175)[0]; QuestStep obj129 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { StopDistance = 7f, @@ -319769,20 +263790,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list176 = new List(num4); - CollectionsMarshal.SetCount(list176, num4); - Span span176 = CollectionsMarshal.AsSpan(list176); - num3 = 0; - span176[num3] = 131; + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + CollectionsMarshal.AsSpan(list176)[0] = 131; obj130.InTerritory = list176; skipConditions4.AetheryteShortcutIf = obj130; obj129.SkipConditions = skipConditions4; reference134 = obj129; obj128.Steps = list175; reference133 = obj128; - num++; - ref QuestSequence reference135 = ref span174[num]; + ref QuestSequence reference135 = ref span45[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -319790,9 +263808,7 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - ref QuestStep reference136 = ref span177[index2]; + ref QuestStep reference136 = ref CollectionsMarshal.AsSpan(list177)[0]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -319805,9 +263821,7 @@ public static class AssemblyQuestLoader num3 = 1; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - Span span178 = CollectionsMarshal.AsSpan(list178); - num4 = 0; - span178[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAOZ630_03990_Q1_000_000"), @@ -319817,18 +263831,16 @@ public static class AssemblyQuestLoader reference136 = obj132; obj131.Steps = list177; reference135 = obj131; - num++; - ref QuestSequence reference137 = ref span174[num]; + ref QuestSequence reference137 = ref span45[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list179 = new List(index2); - CollectionsMarshal.SetCount(list179, index2); - Span span179 = CollectionsMarshal.AsSpan(list179); - num2 = 0; - ref QuestStep reference138 = ref span179[num2]; + num2 = 3; + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + Span span46 = CollectionsMarshal.AsSpan(list179); + ref QuestStep reference138 = ref span46[0]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1019038u, new Vector3(-55.222473f, -2.9000003f, -65.65961f), 628) { AethernetShortcut = new AethernetShortcut @@ -319837,70 +263849,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeShiokazeHostelry } }; - 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); + 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); obj134.CompletionQuestVariablesFlags = list180; reference138 = obj134; - num2++; - ref QuestStep reference139 = ref span179[num2]; + ref QuestStep reference139 = ref span46[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list181; reference139 = questStep7; - num2++; - ref QuestStep reference140 = ref span179[num2]; + ref QuestStep reference140 = ref span46[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1035099u, new Vector3(-36.728516f, 14.000002f, -52.170654f), 628); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list182; reference140 = questStep8; obj133.Steps = list179; reference137 = obj133; - num++; - ref QuestSequence reference141 = ref span174[num]; + ref QuestSequence reference141 = ref span45[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 @@ -319908,9 +263899,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.Interact, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -319921,18 +263910,15 @@ public static class AssemblyQuestLoader }; obj135.Steps = list183; reference141 = obj135; - num++; - ref QuestSequence reference142 = ref span174[num]; + ref QuestSequence reference142 = ref span45[4]; QuestSequence obj136 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -319942,8 +263928,7 @@ public static class AssemblyQuestLoader }; obj136.Steps = list184; reference142 = obj136; - num++; - ref QuestSequence reference143 = ref span174[num]; + ref QuestSequence reference143 = ref span45[5]; QuestSequence obj137 = new QuestSequence { Sequence = 5 @@ -319951,9 +263936,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1035104u, new Vector3(153.42944f, 18.1f, 50.70569f), 628) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1035104u, new Vector3(153.42944f, 18.1f, 50.70569f), 628) { AethernetShortcut = new AethernetShortcut { @@ -319963,25 +263946,21 @@ public static class AssemblyQuestLoader }; obj137.Steps = list185; reference143 = obj137; - num++; - ref QuestSequence reference144 = ref span174[num]; + ref QuestSequence reference144 = ref span45[6]; QuestSequence obj138 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj138.Steps = list186; reference144 = obj138; - num++; - ref QuestSequence reference145 = ref span174[num]; + ref QuestSequence reference145 = ref span45[7]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -319989,9 +263968,7 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AethernetShortcut = new AethernetShortcut { @@ -320009,26 +263986,21 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot22.Author = list188; - index = 7; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference146 = ref span189[num]; + num = 7; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span50 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference146 = ref span50[0]; QuestSequence obj140 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list190)[0]; QuestStep obj141 = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -320048,9 +264020,7 @@ public static class AssemblyQuestLoader num3 = 1; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - Span span191 = CollectionsMarshal.AsSpan(list191); - num4 = 0; - span191[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list191)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_JOBAOZ650_03991_Q1_000_000"), @@ -320060,8 +264030,7 @@ public static class AssemblyQuestLoader reference147 = obj141; obj140.Steps = list190; reference146 = obj140; - num++; - ref QuestSequence reference148 = ref span189[num]; + ref QuestSequence reference148 = ref span50[1]; QuestSequence obj142 = new QuestSequence { Sequence = 1 @@ -320069,9 +264038,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1035103u, new Vector3(56.77881f, 4.05f, 92.36279f), 628) { AethernetShortcut = new AethernetShortcut { @@ -320081,62 +264048,46 @@ public static class AssemblyQuestLoader }; obj142.Steps = list192; reference148 = obj142; - num++; - ref QuestSequence reference149 = ref span189[num]; + ref QuestSequence reference149 = ref span50[2]; QuestSequence obj143 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list193 = new List(index2); - CollectionsMarshal.SetCount(list193, index2); - Span span193 = CollectionsMarshal.AsSpan(list193); - num2 = 0; - ref QuestStep reference150 = ref span193[num2]; + num2 = 2; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + Span span51 = CollectionsMarshal.AsSpan(list193); + ref QuestStep reference150 = ref span51[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1018989u, new Vector3(35.171997f, 4.8365545f, 49.240845f), 628); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list194; reference150 = questStep9; - num2++; - ref QuestStep reference151 = ref span193[num2]; + ref QuestStep reference151 = ref span51[1]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list195; reference151 = questStep10; obj143.Steps = list193; reference149 = obj143; - num++; - ref QuestSequence reference152 = ref span189[num]; + ref QuestSequence reference152 = ref span50[3]; QuestSequence obj144 = new QuestSequence { Sequence = 3 @@ -320144,27 +264095,21 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.Interact, 1035106u, new Vector3(83.08533f, 4.0000014f, 51.621216f), 628); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1035106u, new Vector3(83.08533f, 4.0000014f, 51.621216f), 628); obj144.Steps = list196; reference152 = obj144; - num++; - ref QuestSequence reference153 = ref span189[num]; + ref QuestSequence reference153 = ref span50[4]; QuestSequence obj145 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj145.Steps = list197; reference153 = obj145; - num++; - ref QuestSequence reference154 = ref span189[num]; + ref QuestSequence reference154 = ref span50[5]; QuestSequence obj146 = new QuestSequence { Sequence = 5 @@ -320172,23 +264117,18 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 1035105u, new Vector3(139.0249f, 18f, 48.508423f), 628); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1035105u, new Vector3(139.0249f, 18f, 48.508423f), 628); obj146.Steps = list198; reference154 = obj146; - num++; - ref QuestSequence reference155 = ref span189[num]; + ref QuestSequence reference155 = ref span50[6]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -320206,16 +264146,13 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; questRoot23.Author = list200; - index = 7; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestSequence reference156 = ref span201[num]; + num = 7; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span54 = CollectionsMarshal.AsSpan(list201); + ref QuestSequence reference156 = ref span54[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -320223,9 +264160,7 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -320243,18 +264178,15 @@ public static class AssemblyQuestLoader }; obj148.Steps = list202; reference156 = obj148; - num++; - ref QuestSequence reference157 = ref span201[num]; + ref QuestSequence reference157 = ref span54[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -320264,8 +264196,7 @@ public static class AssemblyQuestLoader }; obj149.Steps = list203; reference157 = obj149; - num++; - ref QuestSequence reference158 = ref span201[num]; + ref QuestSequence reference158 = ref span54[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -320273,9 +264204,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.Interact, 1035108u, new Vector3(-106.401184f, -7f, -63.553833f), 628) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1035108u, new Vector3(-106.401184f, -7f, -63.553833f), 628) { AethernetShortcut = new AethernetShortcut { @@ -320285,26 +264214,22 @@ public static class AssemblyQuestLoader }; obj150.Steps = list204; reference158 = obj150; - num++; - ref QuestSequence reference159 = ref span201[num]; + ref QuestSequence reference159 = ref span54[3]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YanxiaNamai }; obj151.Steps = list205; reference159 = obj151; - num++; - ref QuestSequence reference160 = ref span201[num]; + ref QuestSequence reference160 = ref span54[4]; QuestSequence obj152 = new QuestSequence { Sequence = 4 @@ -320312,95 +264237,70 @@ public static class AssemblyQuestLoader num2 = 3; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - ref QuestStep reference161 = ref span206[index2]; + Span span55 = CollectionsMarshal.AsSpan(list206); + ref QuestStep reference161 = ref span55[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1035112u, new Vector3(457.32812f, 67.99535f, -108.20172f), 614); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list207; reference161 = questStep11; - index2++; - ref QuestStep reference162 = ref span206[index2]; + ref QuestStep reference162 = ref span55[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list208; reference162 = questStep12; - index2++; - ref QuestStep reference163 = ref span206[index2]; + ref QuestStep reference163 = ref span55[2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1035113u, new Vector3(404.77612f, 72.81784f, -80.338745f), 614) { StopDistance = 1f, Fly = true }; - 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); + 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); obj153.CompletionQuestVariablesFlags = list209; reference163 = obj153; obj152.Steps = list206; reference160 = obj152; - num++; - ref QuestSequence reference164 = ref span201[num]; + ref QuestSequence reference164 = ref span54[5]; QuestSequence obj154 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj154.Steps = list210; reference164 = obj154; - num++; - ref QuestSequence reference165 = ref span201[num]; + ref QuestSequence reference165 = ref span54[6]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -320408,9 +264308,7 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035096u, new Vector3(130.84607f, 11.999016f, -82.108826f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -320429,26 +264327,21 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - Span span212 = CollectionsMarshal.AsSpan(list212); - index = 0; - span212[index] = "liza"; + CollectionsMarshal.AsSpan(list212)[0] = "liza"; questRoot24.Author = list212; - index = 4; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref QuestSequence reference166 = ref span213[num]; + num = 4; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span59 = CollectionsMarshal.AsSpan(list213); + ref QuestSequence reference166 = ref span59[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -320466,8 +264359,7 @@ public static class AssemblyQuestLoader }; obj156.Steps = list214; reference166 = obj156; - num++; - ref QuestSequence reference167 = ref span213[num]; + ref QuestSequence reference167 = ref span59[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -320475,9 +264367,7 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.Interact, 1035116u, new Vector3(153.39893f, 18.1f, 50.70569f), 628) + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1035116u, new Vector3(153.39893f, 18.1f, 50.70569f), 628) { AethernetShortcut = new AethernetShortcut { @@ -320487,25 +264377,21 @@ public static class AssemblyQuestLoader }; obj157.Steps = list215; reference167 = obj157; - num++; - ref QuestSequence reference168 = ref span213[num]; + ref QuestSequence reference168 = ref span59[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj158.Steps = list216; reference168 = obj158; - num++; - ref QuestSequence reference169 = ref span213[num]; + ref QuestSequence reference169 = ref span59[3]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -320513,9 +264399,7 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { StopDistance = 5f }; @@ -320528,26 +264412,21 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot25.Author = list218; - index = 2; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference170 = ref span219[num]; + num = 2; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span60 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference170 = ref span60[0]; QuestSequence obj160 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list220)[0]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -320566,17 +264445,14 @@ public static class AssemblyQuestLoader num3 = 1; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span221 = CollectionsMarshal.AsSpan(list221); - num4 = 0; - span221[num4] = 131; + CollectionsMarshal.AsSpan(list221)[0] = 131; obj162.InTerritory = list221; skipConditions5.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions5; reference171 = obj161; obj160.Steps = list220; reference170 = obj160; - num++; - ref QuestSequence reference172 = ref span219[num]; + ref QuestSequence reference172 = ref span60[1]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -320584,9 +264460,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, NextQuestId = new QuestId(4773) @@ -320600,30 +264474,24 @@ public static class AssemblyQuestLoader num = 1; List list223 = new List(num); CollectionsMarshal.SetCount(list223, num); - Span span223 = CollectionsMarshal.AsSpan(list223); - index = 0; - span223[index] = "liza"; + CollectionsMarshal.AsSpan(list223)[0] = "liza"; questRoot26.Author = list223; - index = 17; - List list224 = new List(index); - CollectionsMarshal.SetCount(list224, index); - Span span224 = CollectionsMarshal.AsSpan(list224); - num = 0; - ref QuestSequence reference173 = ref span224[num]; + num = 17; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + Span span61 = CollectionsMarshal.AsSpan(list224); + ref QuestSequence reference173 = ref span61[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj164.Steps = list225; reference173 = obj164; - num++; - ref QuestSequence reference174 = ref span224[num]; + ref QuestSequence reference174 = ref span61[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -320631,33 +264499,27 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Emote, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Emote, 1034052u, new Vector3(618.58545f, 297.26346f, -170.24493f), 814) { Emote = EEmote.Comfort }; obj165.Steps = list226; reference174 = obj165; - num++; - ref QuestSequence reference175 = ref span224[num]; + ref QuestSequence reference175 = ref span61[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj166.Steps = list227; reference175 = obj166; - num++; - ref QuestSequence reference176 = ref span224[num]; + ref QuestSequence reference176 = ref span61[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -320665,33 +264527,27 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 1034932u, new Vector3(618.61584f, 297.26785f, -170.30597f), 814) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1034932u, new Vector3(618.61584f, 297.26785f, -170.30597f), 814) { Fly = true }; obj167.Steps = list228; reference176 = obj167; - num++; - ref QuestSequence reference177 = ref span224[num]; + ref QuestSequence reference177 = ref span61[4]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj168.Steps = list229; reference177 = obj168; - num++; - ref QuestSequence reference178 = ref span224[num]; + ref QuestSequence reference178 = ref span61[5]; QuestSequence obj169 = new QuestSequence { Sequence = 5 @@ -320699,33 +264555,27 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1034934u, new Vector3(-31.47937f, 330.8092f, -35.90454f), 814) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1034934u, new Vector3(-31.47937f, 330.8092f, -35.90454f), 814) { Fly = true }; obj169.Steps = list230; reference178 = obj169; - num++; - ref QuestSequence reference179 = ref span224[num]; + ref QuestSequence reference179 = ref span61[6]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj170.Steps = list231; reference179 = obj170; - num++; - ref QuestSequence reference180 = ref span224[num]; + ref QuestSequence reference180 = ref span61[7]; QuestSequence obj171 = new QuestSequence { Sequence = 7 @@ -320733,30 +264583,24 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1034936u, new Vector3(-452.3537f, 65.77815f, 93.03418f), 814); + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1034936u, new Vector3(-452.3537f, 65.77815f, 93.03418f), 814); obj171.Steps = list232; reference180 = obj171; - num++; - ref QuestSequence reference181 = ref span224[num]; + ref QuestSequence reference181 = ref span61[8]; QuestSequence obj172 = new QuestSequence { Sequence = 8 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KholusiaStilltide }; obj172.Steps = list233; reference181 = obj172; - num++; - ref QuestSequence reference182 = ref span224[num]; + ref QuestSequence reference182 = ref span61[9]; QuestSequence obj173 = new QuestSequence { Sequence = 9 @@ -320764,19 +264608,15 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - ref QuestStep reference183 = ref span234[index2]; + ref QuestStep reference183 = ref CollectionsMarshal.AsSpan(list234)[0]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1034931u, new Vector3(534.08093f, 299.67776f, -184.22223f), 814) { StopDistance = 5f }; - num4 = 1; - List list235 = new List(num4); - CollectionsMarshal.SetCount(list235, num4); - Span span235 = CollectionsMarshal.AsSpan(list235); - num3 = 0; - span235[num3] = new DialogueChoice + num3 = 1; + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + CollectionsMarshal.AsSpan(list235)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA401_03998_Q6_000_000"), @@ -320786,25 +264626,21 @@ public static class AssemblyQuestLoader reference183 = obj174; obj173.Steps = list234; reference182 = obj173; - num++; - ref QuestSequence reference184 = ref span224[num]; + ref QuestSequence reference184 = ref span61[10]; QuestSequence obj175 = new QuestSequence { Sequence = 10 }; - 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) + 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) { Fly = true }; obj175.Steps = list236; reference184 = obj175; - num++; - ref QuestSequence reference185 = ref span224[num]; + ref QuestSequence reference185 = ref span61[11]; QuestSequence obj176 = new QuestSequence { Sequence = 11 @@ -320812,26 +264648,22 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 2011273u, new Vector3(574.9447f, 296.71167f, -175.55511f), 814) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 2011273u, new Vector3(574.9447f, 296.71167f, -175.55511f), 814) { Fly = true }; obj176.Steps = list237; reference185 = obj176; - num++; - ref QuestSequence reference186 = ref span224[num]; + ref QuestSequence reference186 = ref span61[12]; QuestSequence obj177 = new QuestSequence { Sequence = 12 }; - index2 = 4; - List list238 = new List(index2); - CollectionsMarshal.SetCount(list238, index2); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref QuestStep reference187 = ref span238[num2]; + num2 = 4; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + Span span62 = CollectionsMarshal.AsSpan(list238); + ref QuestStep reference187 = ref span62[0]; QuestStep obj178 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(702.07294f, 293.53958f, -159.18176f), 814) { Fly = true @@ -320841,45 +264673,37 @@ public static class AssemblyQuestLoader num3 = 1; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - num4 = 0; - span239[num4] = 928; + CollectionsMarshal.AsSpan(list239)[0] = 928; skipStepConditions3.InTerritory = list239; skipConditions6.StepIf = skipStepConditions3; obj178.SkipConditions = skipConditions6; reference187 = obj178; - num2++; - ref QuestStep reference188 = ref span238[num2]; + ref QuestStep reference188 = ref span62[1]; 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(); - num4 = 1; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - Span span240 = CollectionsMarshal.AsSpan(list240); - num3 = 0; - span240[num3] = 928; + num3 = 1; + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + CollectionsMarshal.AsSpan(list240)[0] = 928; skipStepConditions4.InTerritory = list240; skipConditions7.StepIf = skipStepConditions4; obj179.SkipConditions = skipConditions7; reference188 = obj179; - num2++; - span238[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + span62[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - num2++; - span238[num2] = new QuestStep(EInteractionType.Interact, 2011274u, new Vector3(-277.69897f, 69.90149f, 274.00623f), 928) + span62[3] = new QuestStep(EInteractionType.Interact, 2011274u, new Vector3(-277.69897f, 69.90149f, 274.00623f), 928) { DelaySecondsAtStart = 5f }; obj177.Steps = list238; reference186 = obj177; - num++; - ref QuestSequence reference189 = ref span224[num]; + ref QuestSequence reference189 = ref span61[13]; QuestSequence obj180 = new QuestSequence { Sequence = 13 @@ -320887,19 +264711,16 @@ public static class AssemblyQuestLoader num2 = 28; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + Span span63 = CollectionsMarshal.AsSpan(list241); + span63[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span63[1] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011109u, new Vector3(-254.20007f, 29.984009f, 178.02698f), 928) + span63[2] = new QuestStep(EInteractionType.Interact, 2011109u, new Vector3(-254.20007f, 29.984009f, 178.02698f), 928) { SkipConditions = new SkipConditions { @@ -320909,37 +264730,29 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + span63[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + span63[7] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - index2++; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + span63[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span63[9] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011110u, new Vector3(-203.41809f, -150.53027f, -187.39612f), 928) + span63[10] = new QuestStep(EInteractionType.Interact, 2011110u, new Vector3(-203.41809f, -150.53027f, -187.39612f), 928) { SkipConditions = new SkipConditions { @@ -320949,10 +264762,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { StopDistance = 1f, SkipConditions = new SkipConditions @@ -320963,24 +264774,20 @@ public static class AssemblyQuestLoader } } }; - index2++; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + span63[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DisableNavmesh = true }; - index2++; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + span63[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - index2++; - span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span63[15] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011118u, new Vector3(-295.9182f, -203.99792f, -320.9735f), 928) + span63[16] = new QuestStep(EInteractionType.Interact, 2011118u, new Vector3(-295.9182f, -203.99792f, -320.9735f), 928) { SkipConditions = new SkipConditions { @@ -320990,18 +264797,15 @@ public static class AssemblyQuestLoader } } }; - index2++; - span241[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) + span63[17] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span241[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span63[18] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011115u, new Vector3(-386.25165f, -241.32147f, -314.99207f), 928) + span63[19] = new QuestStep(EInteractionType.Interact, 2011115u, new Vector3(-386.25165f, -241.32147f, -314.99207f), 928) { SkipConditions = new SkipConditions { @@ -321011,17 +264815,13 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { DisableNavmesh = true }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -321031,8 +264831,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011114u, new Vector3(-345.17438f, -244.77002f, -321.43134f), 928) + span63[24] = new QuestStep(EInteractionType.Interact, 2011114u, new Vector3(-345.17438f, -244.77002f, -321.43134f), 928) { SkipConditions = new SkipConditions { @@ -321042,32 +264841,27 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span241[index2] = new QuestStep(EInteractionType.Interact, 2011275u, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + span63[27] = new QuestStep(EInteractionType.Interact, 2011275u, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 1f }; obj180.Steps = list241; reference189 = obj180; - num++; - ref QuestSequence reference190 = ref span224[num]; + ref QuestSequence reference190 = ref span61[14]; QuestSequence obj181 = new QuestSequence { Sequence = 14 }; - 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) + 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) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -321075,8 +264869,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - num2++; - span242[num2] = new QuestStep(EInteractionType.Interact, 2011112u, new Vector3(-366.47595f, -249.80548f, -318.89832f), 928) + span64[1] = new QuestStep(EInteractionType.Interact, 2011112u, new Vector3(-366.47595f, -249.80548f, -318.89832f), 928) { StopDistance = 1f, SkipConditions = new SkipConditions @@ -321087,13 +264880,11 @@ public static class AssemblyQuestLoader } } }; - num2++; - span242[num2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) + span64[2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 }; - num2++; - span242[num2] = new QuestStep(EInteractionType.Interact, 2011116u, new Vector3(193.89636f, -500.0229f, -89.7384f), 928) + span64[3] = new QuestStep(EInteractionType.Interact, 2011116u, new Vector3(193.89636f, -500.0229f, -89.7384f), 928) { SkipConditions = new SkipConditions { @@ -321103,10 +264894,8 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -321116,12 +264905,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span242[num2] = new QuestStep(EInteractionType.Interact, 2011276u, new Vector3(200f, -478.47717f, -558.8312f), 928); + span64[6] = new QuestStep(EInteractionType.Interact, 2011276u, new Vector3(200f, -478.47717f, -558.8312f), 928); obj181.Steps = list242; reference190 = obj181; - num++; - ref QuestSequence reference191 = ref span224[num]; + ref QuestSequence reference191 = ref span61[15]; QuestSequence obj182 = new QuestSequence { Sequence = 15 @@ -321129,28 +264916,23 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.Interact, 1035130u, new Vector3(-16.372986f, 0.039723f, -70.481445f), 895); + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.Interact, 1035130u, new Vector3(-16.372986f, 0.039723f, -70.481445f), 895); obj182.Steps = list243; reference191 = obj182; - num++; - ref QuestSequence reference192 = ref span224[num]; + ref QuestSequence reference192 = ref span61[16]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)814 }; - num2++; - span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, NextQuestId = new QuestId(4034) @@ -321164,16 +264946,13 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "liza"; + CollectionsMarshal.AsSpan(list245)[0] = "liza"; questRoot27.Author = list245; - index = 4; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference193 = ref span246[num]; + num = 4; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span66 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference193 = ref span66[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -321181,9 +264960,8 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.None, null, null, 886) + Span span67 = CollectionsMarshal.AsSpan(list247); + span67[0] = new QuestStep(EInteractionType.None, null, null, 886) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -321192,8 +264970,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardFirmament } }; - index2++; - span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035506u, new Vector3(49.729126f, -18.746954f, 7.675232f), 886) + span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1035506u, new Vector3(49.729126f, -18.746954f, 7.675232f), 886) { AethernetShortcut = new AethernetShortcut { @@ -321203,18 +264980,15 @@ public static class AssemblyQuestLoader }; obj184.Steps = list247; reference193 = obj184; - num++; - ref QuestSequence reference194 = ref span246[num]; + ref QuestSequence reference194 = ref span66[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -321224,8 +264998,7 @@ public static class AssemblyQuestLoader }; obj185.Steps = list248; reference194 = obj185; - num++; - ref QuestSequence reference195 = ref span246[num]; + ref QuestSequence reference195 = ref span66[2]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -321233,9 +265006,7 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1035509u, new Vector3(119.58484f, -20f, -135.36285f), 886) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1035509u, new Vector3(119.58484f, -20f, -135.36285f), 886) { AethernetShortcut = new AethernetShortcut { @@ -321245,18 +265016,15 @@ public static class AssemblyQuestLoader }; obj186.Steps = list249; reference195 = obj186; - num++; - ref QuestSequence reference196 = ref span246[num]; + ref QuestSequence reference196 = ref span66[3]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4000) }; @@ -321273,16 +265041,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -321290,30 +265055,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035520u, new Vector3(19.943481f, 1.8347055E-07f, -158.92273f), 886) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -321321,23 +265080,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 2011307u, new Vector3(49.94275f, -18.753357f, 10.910156f), 886); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 2011307u, new Vector3(49.94275f, -18.753357f, 10.910156f), 886); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref QuestStep reference5 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2011308u, new Vector3(215.62524f, -36.881104f, -3.5858765f), 886) { AethernetShortcut = new AethernetShortcut @@ -321349,9 +265103,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - Span span7 = CollectionsMarshal.AsSpan(list7); - int index3 = 0; - span7[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list7)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA302_04000_Q2_000_000") @@ -321360,8 +265112,7 @@ public static class AssemblyQuestLoader reference5 = obj5; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -321369,16 +265120,12 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref QuestStep reference7 = ref span8[index2]; + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list8)[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2011308u, new Vector3(215.62524f, -36.881104f, -3.5858765f), 886); - index3 = 1; - List list9 = new List(index3); - CollectionsMarshal.SetCount(list9, index3); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - span9[num3] = new DialogueChoice + num3 = 1; + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKHA302_04000_Q3_000_000") @@ -321387,18 +265134,15 @@ public static class AssemblyQuestLoader reference7 = questStep; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4001) }; @@ -321411,16 +265155,13 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list11)[0] = "liza"; questRoot2.Author = list11; - index = 3; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 3; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span2 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span2[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -321428,23 +265169,18 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886); + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886); obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span2[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list14 = new List(index2); - CollectionsMarshal.SetCount(list14, index2); - Span span14 = CollectionsMarshal.AsSpan(list14); - num2 = 0; - ref QuestStep reference11 = ref span14[num2]; + num2 = 1; + List list14 = new List(num2); + CollectionsMarshal.SetCount(list14, num2); + ref QuestStep reference11 = ref CollectionsMarshal.AsSpan(list14)[0]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { Comment = "Concert can be skipped via ESC → Quit Game" @@ -321452,9 +265188,7 @@ public static class AssemblyQuestLoader num3 = 1; List list15 = new List(num3); CollectionsMarshal.SetCount(list15, num3); - Span span15 = CollectionsMarshal.AsSpan(list15); - index3 = 0; - span15[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list15)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKHA303_04001_Q2_000_000"), @@ -321464,8 +265198,7 @@ public static class AssemblyQuestLoader reference11 = obj10; obj9.Steps = list14; reference10 = obj9; - num++; - ref QuestSequence reference12 = ref span12[num]; + ref QuestSequence reference12 = ref span2[2]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -321473,9 +265206,7 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035521u, new Vector3(207.599f, -40f, -13.290649f), 886) { NextQuestId = new QuestId(4002) }; @@ -321488,30 +265219,24 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 3; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 3; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span3 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span3[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span3[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -321519,9 +265244,7 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1035529u, new Vector3(-7.156494f, -16f, 163.43933f), 886) { AethernetShortcut = new AethernetShortcut { @@ -321531,18 +265254,15 @@ public static class AssemblyQuestLoader }; obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span3[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4079) }; @@ -321555,16 +265275,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot4.Author = list22; - index = 4; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 4; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span4 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span4[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -321572,27 +265289,21 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); obj15.Steps = list24; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span4[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj16.Steps = list25; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span4[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -321600,27 +265311,22 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1035342u, new Vector3(125.50537f, -15.184305f, -424.21613f), 156) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1035342u, new Vector3(125.50537f, -15.184305f, -424.21613f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj17.Steps = list26; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span4[3]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj18.Steps = list27; reference19 = obj18; questRoot4.QuestSequence = list23; @@ -321630,16 +265336,13 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot5.Author = list28; - index = 6; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference20 = ref span29[num]; + num = 6; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span5 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference20 = ref span5[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -321647,30 +265350,24 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035345u, new Vector3(-894.52966f, -184.293f, -637.6593f), 402); + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035345u, new Vector3(-894.52966f, -184.293f, -637.6593f), 402); obj19.Steps = list30; reference20 = obj19; - num++; - ref QuestSequence reference21 = ref span29[num]; + ref QuestSequence reference21 = ref span5[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj20.Steps = list31; reference21 = obj20; - num++; - ref QuestSequence reference22 = ref span29[num]; + ref QuestSequence reference22 = ref span5[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -321678,43 +265375,35 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402) { Fly = true }; obj21.Steps = list32; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span29[num]; + ref QuestSequence reference23 = ref span5[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num2 = 0; - ref QuestStep reference24 = ref span33[num2]; + num2 = 1; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list33)[0]; QuestStep obj23 = new QuestStep(EInteractionType.Combat, 2011330u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list34 = new List(index3); - CollectionsMarshal.SetCount(list34, index3); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - span34[num3] = 12661u; + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + CollectionsMarshal.AsSpan(list34)[0] = 12661u; obj23.KillEnemyDataIds = list34; reference24 = obj23; obj22.Steps = list33; reference23 = obj22; - num++; - ref QuestSequence reference25 = ref span29[num]; + ref QuestSequence reference25 = ref span5[4]; QuestSequence obj24 = new QuestSequence { Sequence = 4 @@ -321722,26 +265411,21 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 2011331u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 2011331u, new Vector3(585.1072f, -64.83563f, -692.19507f), 402) { StopDistance = 5f }; obj24.Steps = list35; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span29[num]; + ref QuestSequence reference26 = ref span5[5]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -321754,16 +265438,13 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "liza"; + CollectionsMarshal.AsSpan(list37)[0] = "liza"; questRoot6.Author = list37; - index = 6; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference27 = ref span38[num]; + num = 6; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span6 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference27 = ref span6[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -321771,33 +265452,27 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402); + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035350u, new Vector3(641.3214f, -2.8402345f, -350.3319f), 402); obj26.Steps = list39; reference27 = obj26; - num++; - ref QuestSequence reference28 = ref span38[num]; + ref QuestSequence reference28 = ref span6[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span40[num2] = new QuestStep(EInteractionType.Interact, 1035355u, new Vector3(-0.35101318f, 0f, -6.9123535f), 351); + span7[1] = new QuestStep(EInteractionType.Interact, 1035355u, new Vector3(-0.35101318f, 0f, -6.9123535f), 351); obj27.Steps = list40; reference28 = obj27; - num++; - ref QuestSequence reference29 = ref span38[num]; + ref QuestSequence reference29 = ref span6[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -321805,35 +265480,29 @@ public static class AssemblyQuestLoader num2 = 2; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 2011104u, new Vector3(-11.001831f, 1.4800415f, -6.9733887f), 351) + Span span8 = CollectionsMarshal.AsSpan(list41); + span8[0] = new QuestStep(EInteractionType.Interact, 2011104u, new Vector3(-11.001831f, 1.4800415f, -6.9733887f), 351) { TargetTerritoryId = (ushort)351 }; - index2++; - span41[index2] = new QuestStep(EInteractionType.Interact, 2011332u, new Vector3(-56.717834f, 1.9989014f, 14.633362f), 351); + span8[1] = new QuestStep(EInteractionType.Interact, 2011332u, new Vector3(-56.717834f, 1.9989014f, 14.633362f), 351); obj28.Steps = list41; reference29 = obj28; - num++; - ref QuestSequence reference30 = ref span38[num]; + ref QuestSequence reference30 = ref span6[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj29.Steps = list42; reference30 = obj29; - num++; - ref QuestSequence reference31 = ref span38[num]; + ref QuestSequence reference31 = ref span6[4]; QuestSequence obj30 = new QuestSequence { Sequence = 4 @@ -321841,9 +265510,8 @@ public static class AssemblyQuestLoader num2 = 2; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.08533f, 16.999998f, -48.293888f), 418) + Span span9 = CollectionsMarshal.AsSpan(list43); + span9[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-150.08533f, 16.999998f, -48.293888f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -321852,22 +265520,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardSkysteelManufactory } }; - index2++; - span43[index2] = new QuestStep(EInteractionType.Interact, 1014578u, new Vector3(-148.02783f, 16.999998f, -48.844177f), 418); + span9[1] = new QuestStep(EInteractionType.Interact, 1014578u, new Vector3(-148.02783f, 16.999998f, -48.844177f), 418); obj30.Steps = list43; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span38[num]; + ref QuestSequence reference32 = ref span6[5]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -321884,16 +265548,13 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot7.Author = list45; - index = 3; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference33 = ref span46[num]; + num = 3; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span10 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference33 = ref span10[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -321901,9 +265562,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - ref QuestStep reference34 = ref span47[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list47)[0]; QuestStep obj33 = new QuestStep(EInteractionType.AcceptQuest, 1035354u, new Vector3(-1.0223389f, 0f, -8.529846f), 351) { StopDistance = 5f @@ -321911,9 +265570,7 @@ public static class AssemblyQuestLoader num3 = 1; List list48 = new List(num3); CollectionsMarshal.SetCount(list48, num3); - Span span48 = CollectionsMarshal.AsSpan(list48); - index3 = 0; - span48[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list48)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMJ104_04010_Q1_000_000"), @@ -321923,18 +265580,15 @@ public static class AssemblyQuestLoader reference34 = obj33; obj32.Steps = list47; reference33 = obj32; - num++; - ref QuestSequence reference35 = ref span46[num]; + ref QuestSequence reference35 = ref span10[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -321945,8 +265599,7 @@ public static class AssemblyQuestLoader }; obj34.Steps = list49; reference35 = obj34; - num++; - ref QuestSequence reference36 = ref span46[num]; + ref QuestSequence reference36 = ref span10[2]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -321954,9 +265607,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035366u, new Vector3(-110.09387f, 39.999992f, 116.990845f), 128) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035366u, new Vector3(-110.09387f, 39.999992f, 116.990845f), 128) { StopDistance = 5f }; @@ -321969,33 +265620,27 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "liza"; + CollectionsMarshal.AsSpan(list51)[0] = "liza"; questRoot8.Author = list51; - index = 7; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference37 = ref span52[num]; + num = 7; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span11 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference37 = ref span11[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj36.Steps = list53; reference37 = obj36; - num++; - ref QuestSequence reference38 = ref span52[num]; + ref QuestSequence reference38 = ref span11[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -322003,9 +265648,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1035374u, new Vector3(-481.80365f, 137.42972f, 698.63416f), 399) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1035374u, new Vector3(-481.80365f, 137.42972f, 698.63416f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -322017,25 +265660,21 @@ public static class AssemblyQuestLoader }; obj37.Steps = list54; reference38 = obj37; - num++; - ref QuestSequence reference39 = ref span52[num]; + ref QuestSequence reference39 = ref span11[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj38.Steps = list55; reference39 = obj38; - num++; - ref QuestSequence reference40 = ref span52[num]; + ref QuestSequence reference40 = ref span11[3]; QuestSequence obj39 = new QuestSequence { Sequence = 3 @@ -322043,9 +265682,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Interact, 1035380u, new Vector3(382.77246f, 75.28701f, -222.03406f), 399) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1035380u, new Vector3(382.77246f, 75.28701f, -222.03406f), 399) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -322057,18 +265694,15 @@ public static class AssemblyQuestLoader }; obj39.Steps = list56; reference40 = obj39; - num++; - ref QuestSequence reference41 = ref span52[num]; + ref QuestSequence reference41 = ref span11[4]; QuestSequence obj40 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list57 = new List(num2); + CollectionsMarshal.SetCount(list57, num2); + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Duty, null, null, 399) { DutyOptions = new DutyOptions { @@ -322077,13 +265711,11 @@ public static class AssemblyQuestLoader }; obj40.Steps = list57; reference41 = obj40; - num++; - span52[num] = new QuestSequence + span11[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference42 = ref span52[num]; + ref QuestSequence reference42 = ref span11[6]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -322091,9 +265723,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035381u, new Vector3(382.25366f, 75.22071f, -223.40735f), 399); obj41.Steps = list58; reference42 = obj41; questRoot8.QuestSequence = list52; @@ -322103,30 +265733,24 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "liza"; + CollectionsMarshal.AsSpan(list59)[0] = "liza"; questRoot9.Author = list59; - index = 5; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference43 = ref span60[num]; + num = 5; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span12 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference43 = ref span12[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj42.Steps = list61; reference43 = obj42; - num++; - ref QuestSequence reference44 = ref span60[num]; + ref QuestSequence reference44 = ref span12[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -322134,30 +265758,24 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; obj43.Steps = list62; reference44 = obj43; - num++; - ref QuestSequence reference45 = ref span60[num]; + ref QuestSequence reference45 = ref span12[2]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj44.Steps = list63; reference45 = obj44; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span12[3]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -322165,9 +265783,8 @@ public static class AssemblyQuestLoader num2 = 2; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128) + Span span13 = CollectionsMarshal.AsSpan(list64); + span13[0] = new QuestStep(EInteractionType.Interact, 1000915u, new Vector3(18.387085f, 47.600006f, -162.12714f), 128) { AethernetShortcut = new AethernetShortcut { @@ -322175,8 +265792,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaMarauder } }; - index2++; - span64[index2] = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) + span13[1] = new QuestStep(EInteractionType.Interact, 1000918u, new Vector3(84.09241f, 44.399914f, 132.34143f), 128) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -322187,18 +265803,15 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference46 = obj45; - num++; - ref QuestSequence reference47 = ref span60[num]; + ref QuestSequence reference47 = ref span12[4]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa }; @@ -322211,16 +265824,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "liza"; + CollectionsMarshal.AsSpan(list66)[0] = "liza"; questRoot10.Author = list66; - index = 3; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference48 = ref span67[num]; + num = 3; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span14 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference48 = ref span14[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -322228,34 +265838,28 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035386u, new Vector3(-0.4730835f, 19.999977f, -13.839966f), 129) { StopDistance = 5f }; obj47.Steps = list68; reference48 = obj47; - num++; - ref QuestSequence reference49 = ref span67[num]; + ref QuestSequence reference49 = ref span14[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj48.Steps = list69; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span67[num]; + ref QuestSequence reference50 = ref span14[2]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -322263,9 +265867,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035391u, new Vector3(296.86414f, 69.333755f, -147.32587f), 135) { Fly = true }; @@ -322278,30 +265880,24 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot11.Author = list71; - index = 3; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference51 = ref span72[num]; + num = 3; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span15 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference51 = ref span15[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj50.Steps = list73; reference51 = obj50; - num++; - ref QuestSequence reference52 = ref span72[num]; + ref QuestSequence reference52 = ref span15[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 @@ -322309,41 +265905,34 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference53 = ref span74[index2]; + Span span16 = CollectionsMarshal.AsSpan(list74); + ref QuestStep reference53 = ref span16[0]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa }; - index3 = 1; - List list75 = new List(index3); - CollectionsMarshal.SetCount(list75, index3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - span75[num3] = new DialogueChoice + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKMJ108_04014_SYSTEM_100_010") }; obj52.DialogueChoices = list75; reference53 = obj52; - index2++; - span74[index2] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + span16[1] = new QuestStep(EInteractionType.Interact, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj51.Steps = list74; reference52 = obj51; - num++; - ref QuestSequence reference54 = ref span72[num]; + ref QuestSequence reference54 = ref span15[2]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj53.Steps = list76; reference54 = obj53; questRoot11.QuestSequence = list72; @@ -322353,16 +265942,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot12.Author = list77; - index = 4; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference55 = ref span78[num]; + num = 4; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span17 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference55 = ref span17[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -322370,30 +265956,24 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1002694u, new Vector3(-0.045776367f, 1.6001425f, -7.0039062f), 198); obj54.Steps = list79; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span78[num]; + ref QuestSequence reference56 = ref span17[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OuterLaNosceaCampOverlook }; obj55.Steps = list80; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span78[num]; + ref QuestSequence reference57 = ref span17[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -322401,26 +265981,21 @@ public static class AssemblyQuestLoader num2 = 5; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.600548f, 77.45801f, -366.82053f), 180) + Span span18 = CollectionsMarshal.AsSpan(list81); + span18[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(46.600548f, 77.45801f, -366.82053f), 180) { Fly = true }; - index2++; - span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.927666f, 26.050894f, -612.8873f), 180) + span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(111.927666f, 26.050894f, -612.8873f), 180) { Fly = true }; - index2++; - span81[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(82.19566f, 25.922153f, -711.6839f), 180) + span18[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(82.19566f, 25.922153f, -711.6839f), 180) { Fly = true }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -322429,18 +266004,15 @@ public static class AssemblyQuestLoader }; obj56.Steps = list81; reference57 = obj56; - num++; - ref QuestSequence reference58 = ref span78[num]; + ref QuestSequence reference58 = ref span17[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -322453,16 +266025,13 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "liza"; + CollectionsMarshal.AsSpan(list83)[0] = "liza"; questRoot13.Author = list83; - index = 4; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference59 = ref span84[num]; + num = 4; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span19 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference59 = ref span19[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -322470,33 +266039,27 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035398u, new Vector3(-106.126526f, 64.45569f, -242.66425f), 180) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035398u, new Vector3(-106.126526f, 64.45569f, -242.66425f), 180) { StopDistance = 7f }; obj58.Steps = list85; reference59 = obj58; - num++; - ref QuestSequence reference60 = ref span84[num]; + ref QuestSequence reference60 = ref span19[1]; QuestSequence obj59 = 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, 1035409u, new Vector3(581.62805f, 80f, 621.7898f), 621) + 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) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj59.Steps = list86; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span84[num]; + ref QuestSequence reference61 = ref span19[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -322504,32 +266067,27 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1035414u, new Vector3(739.4979f, 70f, 526.48206f), 621) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1035414u, new Vector3(739.4979f, 70f, 526.48206f), 621) { StopDistance = 5f }; obj60.Steps = list87; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span84[num]; + ref QuestSequence reference62 = ref span19[3]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); + span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1032694u, new Vector3(-3.03656f, 0.01804012f, -8.133057f), 351); obj61.Steps = list88; reference62 = obj61; questRoot13.QuestSequence = list84; @@ -322539,16 +266097,13 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "liza"; + CollectionsMarshal.AsSpan(list89)[0] = "liza"; questRoot14.Author = list89; - index = 9; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference63 = ref span90[num]; + num = 9; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span21 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference63 = ref span21[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -322556,9 +266111,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -322571,25 +266124,20 @@ public static class AssemblyQuestLoader }; obj62.Steps = list91; reference63 = obj62; - num++; - ref QuestSequence reference64 = ref span90[num]; + ref QuestSequence reference64 = ref span21[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list92 = new List(index2); - CollectionsMarshal.SetCount(list92, index2); - Span span92 = CollectionsMarshal.AsSpan(list92); - num2 = 0; - ref QuestStep reference65 = ref span92[num2]; + num2 = 1; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list92)[0]; 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); - Span span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_LUCKYW401_04031_Q9_000_000") @@ -322598,8 +266146,7 @@ public static class AssemblyQuestLoader reference65 = questStep2; obj63.Steps = list92; reference64 = obj63; - num++; - ref QuestSequence reference66 = ref span90[num]; + ref QuestSequence reference66 = ref span21[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -322607,27 +266154,21 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1033633u, new Vector3(7.2785034f, 41f, 8.255066f), 919); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1033633u, new Vector3(7.2785034f, 41f, 8.255066f), 919); obj64.Steps = list94; reference66 = obj64; - num++; - ref QuestSequence reference67 = ref span90[num]; + ref QuestSequence reference67 = ref span21[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj65.Steps = list95; reference67 = obj65; - num++; - ref QuestSequence reference68 = ref span90[num]; + ref QuestSequence reference68 = ref span21[4]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -322635,27 +266176,21 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1036281u, new Vector3(-1.3580933f, 41f, 19.394226f), 919); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1036281u, new Vector3(-1.3580933f, 41f, 19.394226f), 919); obj66.Steps = list96; reference68 = obj66; - num++; - ref QuestSequence reference69 = ref span90[num]; + ref QuestSequence reference69 = ref span21[5]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj67.Steps = list97; reference69 = obj67; - num++; - ref QuestSequence reference70 = ref span90[num]; + ref QuestSequence reference70 = ref span21[6]; QuestSequence obj68 = new QuestSequence { Sequence = 6 @@ -322663,9 +266198,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.Duty, null, null, 991) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.Duty, null, null, 991) { DutyOptions = new DutyOptions { @@ -322674,22 +266207,18 @@ public static class AssemblyQuestLoader }; obj68.Steps = list98; reference70 = obj68; - num++; - ref QuestSequence reference71 = ref span90[num]; + ref QuestSequence reference71 = ref span21[7]; QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj69.Steps = list99; reference71 = obj69; - num++; - ref QuestSequence reference72 = ref span90[num]; + ref QuestSequence reference72 = ref span21[8]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -322697,9 +266226,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036286u, new Vector3(-15.610046f, 41f, 5.3864136f), 919) { NextQuestId = new QuestId(4032) }; @@ -322712,30 +266239,24 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot15.Author = list101; - index = 8; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference73 = ref span102[num]; + num = 8; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span22 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference73 = ref span22[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj71.Steps = list103; reference73 = obj71; - num++; - ref QuestSequence reference74 = ref span102[num]; + ref QuestSequence reference74 = ref span22[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -322743,31 +266264,25 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - 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); + 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); obj72.Steps = list104; reference74 = obj72; - num++; - ref QuestSequence reference75 = ref span102[num]; + ref QuestSequence reference75 = ref span22[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj73.Steps = list105; reference75 = obj73; - num++; - ref QuestSequence reference76 = ref span102[num]; + ref QuestSequence reference76 = ref span22[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -322775,30 +266290,24 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.Interact, 2011480u, new Vector3(-17.227417f, 40.97046f, 5.2948f), 919) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.Interact, 2011480u, new Vector3(-17.227417f, 40.97046f, 5.2948f), 919) { StopDistance = 4.5f }; obj74.Steps = list106; reference76 = obj74; - num++; - ref QuestSequence reference77 = ref span102[num]; + ref QuestSequence reference77 = ref span22[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj75.Steps = list107; reference77 = obj75; - num++; - ref QuestSequence reference78 = ref span102[num]; + ref QuestSequence reference78 = ref span22[5]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -322806,33 +266315,27 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1036285u, new Vector3(-16.372986f, 40.999996f, 3.8909912f), 919) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1036285u, new Vector3(-16.372986f, 40.999996f, 3.8909912f), 919) { StopDistance = 5f }; obj76.Steps = list108; reference78 = obj76; - num++; - ref QuestSequence reference79 = ref span102[num]; + ref QuestSequence reference79 = ref span22[6]; QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj77.Steps = list109; reference79 = obj77; - num++; - ref QuestSequence reference80 = ref span102[num]; + ref QuestSequence reference80 = ref span22[7]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -322840,9 +266343,8 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) + Span span25 = CollectionsMarshal.AsSpan(list110); + span25[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-507.93283f, 7.6638765f, 52.09985f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, @@ -322854,8 +266356,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621); + span25[1] = new QuestStep(EInteractionType.CompleteQuest, 1032586u, new Vector3(-505.42462f, 7.68313f, 51.621216f), 621); obj78.Steps = list110; reference80 = obj78; questRoot15.QuestSequence = list102; @@ -322865,26 +266366,21 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list111)[0] = "plogon_enjoyer"; questRoot16.Author = list111; - index = 6; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference81 = ref span112[num]; + num = 6; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span26 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference81 = ref span26[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -322895,8 +266391,7 @@ public static class AssemblyQuestLoader }; obj79.Steps = list113; reference81 = obj79; - num++; - ref QuestSequence reference82 = ref span112[num]; + ref QuestSequence reference82 = ref span26[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -322904,9 +266399,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1028406u, new Vector3(43.289795f, -8f, 108.62891f), 132) { AethernetShortcut = new AethernetShortcut { @@ -322916,25 +266409,21 @@ public static class AssemblyQuestLoader }; obj80.Steps = list114; reference82 = obj80; - num++; - ref QuestSequence reference83 = ref span112[num]; + ref QuestSequence reference83 = ref span26[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj81.Steps = list115; reference83 = obj81; - num++; - ref QuestSequence reference84 = ref span112[num]; + ref QuestSequence reference84 = ref span26[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -322942,30 +266431,24 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.Interact, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.Interact, 1024112u, new Vector3(796.933f, 69.9999f, 634.76f), 621); obj82.Steps = list116; reference84 = obj82; - num++; - ref QuestSequence reference85 = ref span112[num]; + ref QuestSequence reference85 = ref span26[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj83.Steps = list117; reference85 = obj83; - num++; - ref QuestSequence reference86 = ref span112[num]; + ref QuestSequence reference86 = ref span26[5]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -322973,9 +266456,7 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006756u, new Vector3(-16.891846f, 10.17425f, -246.87573f), 133) { AethernetShortcut = new AethernetShortcut { @@ -322992,30 +266473,24 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "liza"; + CollectionsMarshal.AsSpan(list119)[0] = "liza"; questRoot17.Author = list119; - index = 8; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference87 = ref span120[num]; + num = 8; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span27 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference87 = ref span27[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj85.Steps = list121; reference87 = obj85; - num++; - ref QuestSequence reference88 = ref span120[num]; + ref QuestSequence reference88 = ref span27[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -323023,41 +266498,35 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span28 = CollectionsMarshal.AsSpan(list122); + span28[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - index2++; - span122[index2] = new QuestStep(EInteractionType.Interact, 1035131u, new Vector3(-3.6469727f, -3.475783E-11f, -58.121643f), 895); + span28[1] = new QuestStep(EInteractionType.Interact, 1035131u, new Vector3(-3.6469727f, -3.475783E-11f, -58.121643f), 895); obj86.Steps = list122; reference88 = obj86; - num++; - ref QuestSequence reference89 = ref span120[num]; + ref QuestSequence reference89 = ref span27[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)814 }; - num2++; - span123[num2] = new QuestStep(EInteractionType.Interact, 1035132u, new Vector3(545.4337f, 295.66992f, -221.45422f), 814) + span29[1] = new QuestStep(EInteractionType.Interact, 1035132u, new Vector3(545.4337f, 295.66992f, -221.45422f), 814) { Fly = true }; obj87.Steps = list123; reference89 = obj87; - num++; - ref QuestSequence reference90 = ref span120[num]; + ref QuestSequence reference90 = ref span27[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 @@ -323065,30 +266534,24 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.Interact, 2011442u, new Vector3(-8.957031f, 0.503479f, -65.26294f), 895); + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.Interact, 2011442u, new Vector3(-8.957031f, 0.503479f, -65.26294f), 895); obj88.Steps = list124; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span120[num]; + ref QuestSequence reference91 = ref span27[4]; QuestSequence obj89 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj89.Steps = list125; reference91 = obj89; - num++; - ref QuestSequence reference92 = ref span120[num]; + ref QuestSequence reference92 = ref span27[5]; QuestSequence obj90 = new QuestSequence { Sequence = 5 @@ -323096,33 +266559,25 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - ref QuestStep reference93 = ref span126[index2]; + Span span30 = CollectionsMarshal.AsSpan(list126); + ref QuestStep reference93 = ref span30[0]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 1034054u, new Vector3(659.75415f, 297.47797f, -145.15906f), 814) { Fly = true }; - 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); + 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); obj91.CompletionQuestVariablesFlags = list127; reference93 = obj91; - index2++; - ref QuestStep reference94 = ref span126[index2]; + ref QuestStep reference94 = ref span30[1]; QuestStep obj92 = new QuestStep(EInteractionType.Interact, 1027299u, new Vector3(638.11694f, 297.44974f, -180.19385f), 814) { Fly = true @@ -323130,66 +266585,49 @@ public static class AssemblyQuestLoader num3 = 6; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - 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); + 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); obj92.CompletionQuestVariablesFlags = list128; reference94 = obj92; - index2++; - ref QuestStep reference95 = ref span126[index2]; + ref QuestStep reference95 = ref span30[2]; QuestStep obj93 = new QuestStep(EInteractionType.Interact, 1027486u, new Vector3(608.8501f, 297.4718f, -165.45361f), 814) { Fly = true }; - 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); + 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); obj93.CompletionQuestVariablesFlags = list129; reference95 = obj93; obj90.Steps = list126; reference92 = obj90; - num++; - ref QuestSequence reference96 = ref span120[num]; + ref QuestSequence reference96 = ref span27[6]; QuestSequence obj94 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj94.Steps = list130; reference96 = obj94; - num++; - ref QuestSequence reference97 = ref span120[num]; + ref QuestSequence reference97 = ref span27[7]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -323197,9 +266635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - ref QuestStep reference98 = ref span131[index2]; + ref QuestStep reference98 = ref CollectionsMarshal.AsSpan(list131)[0]; QuestStep obj96 = new QuestStep(EInteractionType.CompleteQuest, 1035135u, new Vector3(-361.37946f, 105.987305f, 347.12744f), 928) { StopDistance = 5f @@ -323207,16 +266643,14 @@ public static class AssemblyQuestLoader num3 = 2; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span132 = CollectionsMarshal.AsSpan(list132); - index3 = 0; - span132[index3] = new DialogueChoice + Span span34 = CollectionsMarshal.AsSpan(list132); + span34[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA501_04034_Q5_000_000"), Answer = new ExcelRef("TEXT_LUCKTA501_04034_A5_000_001") }; - index3++; - span132[index3] = new DialogueChoice + span34[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA501_04034_Q6_000_000"), @@ -323234,36 +266668,29 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span133 = CollectionsMarshal.AsSpan(list133); - index = 0; - span133[index] = "liza"; + CollectionsMarshal.AsSpan(list133)[0] = "liza"; questRoot18.Author = list133; - index = 4; - List list134 = new List(index); - CollectionsMarshal.SetCount(list134, index); - Span span134 = CollectionsMarshal.AsSpan(list134); - num = 0; - ref QuestSequence reference99 = ref span134[num]; + num = 4; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + Span span35 = CollectionsMarshal.AsSpan(list134); + ref QuestSequence reference99 = ref span35[0]; QuestSequence obj97 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + ref QuestStep reference100 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj98 = new QuestStep(EInteractionType.AcceptQuest, 1035135u, new Vector3(-361.37946f, 105.987305f, 347.12744f), 928) { StopDistance = 5f }; - index3 = 1; - List list136 = new List(index3); - CollectionsMarshal.SetCount(list136, index3); - Span span136 = CollectionsMarshal.AsSpan(list136); - num3 = 0; - span136[num3] = new DialogueChoice + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA502_04035_Q1_000_000"), @@ -323273,8 +266700,7 @@ public static class AssemblyQuestLoader reference100 = obj98; obj97.Steps = list135; reference99 = obj97; - num++; - ref QuestSequence reference101 = ref span134[num]; + ref QuestSequence reference101 = ref span35[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -323282,65 +266708,53 @@ public static class AssemblyQuestLoader num2 = 14; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + Span span36 = CollectionsMarshal.AsSpan(list137); + span36[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + span36[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928) + span36[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-234.40671f, 30f, 168.78214f), 928) { DelaySecondsAtStart = 2f }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + span36[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - index2++; - span137[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + span36[6] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + span36[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) + span36[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.96237f, -168.28922f, -329.79776f), 928) { DelaySecondsAtStart = 2f, DisableNavmesh = true }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + span36[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - index2++; - span137[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) + span36[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - index2++; - span137[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) + span36[11] = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, DelaySecondsAtStart = 2f, @@ -323349,27 +266763,22 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - index2++; - span137[index2] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) + span36[12] = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 }; - index2++; - span137[index2] = new QuestStep(EInteractionType.Interact, 2011440u, new Vector3(200f, -478.47717f, -558.8312f), 928); + span36[13] = new QuestStep(EInteractionType.Interact, 2011440u, new Vector3(200f, -478.47717f, -558.8312f), 928); obj99.Steps = list137; reference101 = obj99; - num++; - ref QuestSequence reference102 = ref span134[num]; + ref QuestSequence reference102 = ref span35[2]; QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Duty, null, null, 928) { DutyOptions = new DutyOptions { @@ -323378,8 +266787,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list138; reference102 = obj100; - num++; - ref QuestSequence reference103 = ref span134[num]; + ref QuestSequence reference103 = ref span35[3]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -323387,9 +266795,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035142u, new Vector3(701.9607f, 291.86115f, -142.443f), 814) { StopDistance = 5f, NextQuestId = new QuestId(4036) @@ -323403,33 +266809,27 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - span140[index] = "liza"; + CollectionsMarshal.AsSpan(list140)[0] = "liza"; questRoot19.Author = list140; - index = 8; - List list141 = new List(index); - CollectionsMarshal.SetCount(list141, index); - Span span141 = CollectionsMarshal.AsSpan(list141); - num = 0; - ref QuestSequence reference104 = ref span141[num]; + num = 8; + List list141 = new List(num); + CollectionsMarshal.SetCount(list141, num); + Span span37 = CollectionsMarshal.AsSpan(list141); + ref QuestSequence reference104 = ref span37[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj102.Steps = list142; reference104 = obj102; - num++; - ref QuestSequence reference105 = ref span141[num]; + ref QuestSequence reference105 = ref span37[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -323437,36 +266837,30 @@ public static class AssemblyQuestLoader num2 = 2; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span38 = CollectionsMarshal.AsSpan(list143); + span38[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - index2++; - span143[index2] = new QuestStep(EInteractionType.Interact, 1035141u, new Vector3(-13.382202f, 0.039723f, -66.11737f), 895); + span38[1] = new QuestStep(EInteractionType.Interact, 1035141u, new Vector3(-13.382202f, 0.039723f, -66.11737f), 895); obj103.Steps = list143; reference105 = obj103; - num++; - ref QuestSequence reference106 = ref span141[num]; + ref QuestSequence reference106 = ref span37[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj104.Steps = list144; reference106 = obj104; - num++; - ref QuestSequence reference107 = ref span141[num]; + ref QuestSequence reference107 = ref span37[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -323474,36 +266868,30 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) + Span span39 = CollectionsMarshal.AsSpan(list145); + span39[0] = new QuestStep(EInteractionType.Interact, 2010832u, new Vector3(738.3076f, 285.60303f, -82.871826f), 814) { TargetTerritoryId = (ushort)895, Fly = true }; - index2++; - span145[index2] = new QuestStep(EInteractionType.Interact, 1035133u, new Vector3(-6.881897f, 0.029997535f, -63.187683f), 895); + span39[1] = new QuestStep(EInteractionType.Interact, 1035133u, new Vector3(-6.881897f, 0.029997535f, -63.187683f), 895); obj105.Steps = list145; reference107 = obj105; - num++; - ref QuestSequence reference108 = ref span141[num]; + ref QuestSequence reference108 = ref span37[4]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 4f }; obj106.Steps = list146; reference108 = obj106; - num++; - ref QuestSequence reference109 = ref span141[num]; + ref QuestSequence reference109 = ref span37[5]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -323511,35 +266899,25 @@ public static class AssemblyQuestLoader num2 = 6; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - 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]; + 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]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list148; - index3 = 1; - List list149 = new List(index3); - CollectionsMarshal.SetCount(list149, index3); - Span span149 = CollectionsMarshal.AsSpan(list149); - num3 = 0; - span149[num3] = new DialogueChoice + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + CollectionsMarshal.AsSpan(list149)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q9_000_000"), @@ -323547,32 +266925,23 @@ public static class AssemblyQuestLoader }; questStep3.DialogueChoices = list149; reference110 = questStep3; - index2++; - ref QuestStep reference111 = ref span147[index2]; + ref QuestStep reference111 = ref span40[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list150; - index3 = 1; - List list151 = new List(index3); - CollectionsMarshal.SetCount(list151, index3); - Span span151 = CollectionsMarshal.AsSpan(list151); - num3 = 0; - span151[num3] = new DialogueChoice + num3 = 1; + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q6_000_000"), @@ -323580,32 +266949,23 @@ public static class AssemblyQuestLoader }; questStep4.DialogueChoices = list151; reference111 = questStep4; - index2++; - ref QuestStep reference112 = ref span147[index2]; + ref QuestStep reference112 = ref span40[3]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list152; - index3 = 1; - List list153 = new List(index3); - CollectionsMarshal.SetCount(list153, index3); - Span span153 = CollectionsMarshal.AsSpan(list153); - num3 = 0; - span153[num3] = new DialogueChoice + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q7_000_000"), @@ -323613,32 +266973,23 @@ public static class AssemblyQuestLoader }; questStep5.DialogueChoices = list153; reference112 = questStep5; - index2++; - ref QuestStep reference113 = ref span147[index2]; + ref QuestStep reference113 = ref span40[4]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list154; - index3 = 1; - List list155 = new List(index3); - CollectionsMarshal.SetCount(list155, index3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num3 = 0; - span155[num3] = new DialogueChoice + num3 = 1; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q8_000_000"), @@ -323646,32 +266997,23 @@ public static class AssemblyQuestLoader }; questStep6.DialogueChoices = list155; reference113 = questStep6; - index2++; - ref QuestStep reference114 = ref span147[index2]; + ref QuestStep reference114 = ref span40[5]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list156; - index3 = 1; - List list157 = new List(index3); - CollectionsMarshal.SetCount(list157, index3); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = new DialogueChoice + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q10_000_000"), @@ -323681,25 +267023,20 @@ public static class AssemblyQuestLoader reference114 = questStep7; obj107.Steps = list147; reference109 = obj107; - num++; - ref QuestSequence reference115 = ref span141[num]; + ref QuestSequence reference115 = ref span37[6]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list158 = new List(index2); - CollectionsMarshal.SetCount(list158, index2); - Span span158 = CollectionsMarshal.AsSpan(list158); - num2 = 0; - ref QuestStep reference116 = ref span158[num2]; + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list158)[0]; 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); - Span span159 = CollectionsMarshal.AsSpan(list159); - index3 = 0; - span159[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA503_04036_Q11_000_000"), @@ -323709,8 +267046,7 @@ public static class AssemblyQuestLoader reference116 = questStep8; obj108.Steps = list158; reference115 = obj108; - num++; - ref QuestSequence reference117 = ref span141[num]; + ref QuestSequence reference117 = ref span37[7]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -323718,14 +267054,12 @@ public static class AssemblyQuestLoader num2 = 2; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) + Span span46 = CollectionsMarshal.AsSpan(list160); + span46[0] = new QuestStep(EInteractionType.Interact, 2010829u, new Vector3(1.4190674f, 0.83917236f, 2.5177002f), 895) { TargetTerritoryId = (ushort)814 }; - index2++; - span160[index2] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) + span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814) { Fly = true, NextQuestId = new QuestId(4043) @@ -323739,33 +267073,26 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot20.Author = list161; - index = 2; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference118 = ref span162[num]; + num = 2; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span47 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference118 = ref span47[0]; QuestSequence obj110 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new DialogueChoice + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA510_04043_Q1_000_000"), @@ -323775,8 +267102,7 @@ public static class AssemblyQuestLoader reference119 = questStep9; obj110.Steps = list163; reference118 = obj110; - num++; - ref QuestSequence reference120 = ref span162[num]; + ref QuestSequence reference120 = ref span47[1]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -323784,9 +267110,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814); obj111.Steps = list165; reference120 = obj111; questRoot20.QuestSequence = list162; @@ -323796,26 +267120,20 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "liza"; + CollectionsMarshal.AsSpan(list166)[0] = "liza"; questRoot21.Author = list166; - index = 1; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference121 = ref span167[num]; + num = 1; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + ref QuestSequence reference121 = ref CollectionsMarshal.AsSpan(list167)[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj112.Steps = list168; reference121 = obj112; questRoot21.QuestSequence = list167; @@ -323825,16 +267143,12 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; questRoot22.Author = list169; - index = 1; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference122 = ref span170[num]; + num = 1; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + ref QuestSequence reference122 = ref CollectionsMarshal.AsSpan(list170)[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -323842,9 +267156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj113.Steps = list171; reference122 = obj113; questRoot22.QuestSequence = list170; @@ -323854,26 +267166,20 @@ public static class AssemblyQuestLoader num = 1; List list172 = new List(num); CollectionsMarshal.SetCount(list172, num); - Span span172 = CollectionsMarshal.AsSpan(list172); - index = 0; - span172[index] = "liza"; + CollectionsMarshal.AsSpan(list172)[0] = "liza"; questRoot23.Author = list172; - index = 1; - List list173 = new List(index); - CollectionsMarshal.SetCount(list173, index); - Span span173 = CollectionsMarshal.AsSpan(list173); - num = 0; - ref QuestSequence reference123 = ref span173[num]; + num = 1; + List list173 = new List(num); + CollectionsMarshal.SetCount(list173, num); + ref QuestSequence reference123 = ref CollectionsMarshal.AsSpan(list173)[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list174; reference123 = obj114; questRoot23.QuestSequence = list173; @@ -323883,16 +267189,12 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "liza"; + CollectionsMarshal.AsSpan(list175)[0] = "liza"; questRoot24.Author = list175; - index = 1; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference124 = ref span176[num]; + num = 1; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + ref QuestSequence reference124 = ref CollectionsMarshal.AsSpan(list176)[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 @@ -323900,9 +267202,7 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj115.Steps = list177; reference124 = obj115; questRoot24.QuestSequence = list176; @@ -323912,26 +267212,20 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "liza"; + CollectionsMarshal.AsSpan(list178)[0] = "liza"; questRoot25.Author = list178; - index = 1; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference125 = ref span179[num]; + num = 1; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + ref QuestSequence reference125 = ref CollectionsMarshal.AsSpan(list179)[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj116.Steps = list180; reference125 = obj116; questRoot25.QuestSequence = list179; @@ -323941,16 +267235,12 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - Span span181 = CollectionsMarshal.AsSpan(list181); - index = 0; - span181[index] = "liza"; + CollectionsMarshal.AsSpan(list181)[0] = "liza"; questRoot26.Author = list181; - index = 1; - List list182 = new List(index); - CollectionsMarshal.SetCount(list182, index); - Span span182 = CollectionsMarshal.AsSpan(list182); - num = 0; - ref QuestSequence reference126 = ref span182[num]; + num = 1; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + ref QuestSequence reference126 = ref CollectionsMarshal.AsSpan(list182)[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 @@ -323958,9 +267248,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.AcceptQuest, 1032227u, new Vector3(665.8884f, 297.47797f, -160.57074f), 814); obj117.Steps = list183; reference126 = obj117; questRoot26.QuestSequence = list182; @@ -323974,16 +267262,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -323991,9 +267276,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) { Fly = true, @@ -324009,16 +267292,14 @@ public static class AssemblyQuestLoader int num3 = 2; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int num4 = 0; - span4[num4] = new DialogueChoice + Span span2 = CollectionsMarshal.AsSpan(list4); + span2[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA521_04050_Q1_000_000"), Answer = new ExcelRef("TEXT_LUCKTA521_04050_A1_000_002") }; - num4++; - span4[num4] = new DialogueChoice + span2[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA521_04050_Q2_000_000"), @@ -324028,85 +267309,64 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)895, Fly = true }; - num2++; - span5[num2] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) + span3[1] = new QuestStep(EInteractionType.Interact, 2010830u, new Vector3(-0.015319824f, 1.2664795f, -94.86542f), 895) { TargetTerritoryId = (ushort)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) + 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) { RestartNavigationIfCancelled = false }; - num2++; - ref QuestStep reference4 = ref span5[num2]; + ref QuestStep reference4 = ref span3[5]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2011457u, new Vector3(-643.4882f, 338.39917f, -353.8415f), 896) { DelaySecondsAtStart = 2f }; - 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); + 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); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - num2++; - ref QuestStep reference5 = ref span5[num2]; + ref QuestStep reference5 = ref span3[6]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list7; reference5 = questStep; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -324114,9 +267374,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036042u, new Vector3(655.1765f, 297.57593f, -171.31305f), 814) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -324130,26 +267388,21 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; 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]; + num = 3; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span6 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span6[0]; QuestSequence obj6 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj7 = new QuestStep(EInteractionType.AcceptQuest, 1036043u, new Vector3(653.8948f, 297.51984f, -171.80133f), 814) { Fly = true, @@ -324162,12 +267415,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list12 = new List(num4); - CollectionsMarshal.SetCount(list12, num4); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = new DialogueChoice + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA522_04051_Q1_000_000"), @@ -324177,8 +267428,7 @@ public static class AssemblyQuestLoader reference8 = obj7; obj6.Steps = list11; reference7 = obj6; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span6[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -324186,9 +267436,8 @@ public static class AssemblyQuestLoader num2 = 25; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - ref QuestStep reference10 = ref span13[index2]; + Span span7 = CollectionsMarshal.AsSpan(list13); + ref QuestStep reference10 = ref span7[0]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 2011154u, new Vector3(703.1509f, 295.3993f, -160.20447f), 814) { TargetTerritoryId = (ushort)928 @@ -324198,161 +267447,119 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span14 = CollectionsMarshal.AsSpan(list14); - num4 = 0; - span14[num4] = 928; + CollectionsMarshal.AsSpan(list14)[0] = 928; skipStepConditions.InTerritory = list14; skipConditions.StepIf = skipStepConditions; obj9.SkipConditions = skipConditions; reference10 = obj9; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) + span7[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-352.89597f, 106.840775f, 337.33798f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span7[2] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 3f }; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) + span7[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-271.62762f, 69.97228f, 273.0655f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span7[4] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) + span7[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) { DisableNavmesh = true }; - index2++; - ref QuestStep reference11 = ref span13[index2]; + ref QuestStep reference11 = ref span7[9]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2011477u, new Vector3(-233.6004f, 2.5177002f, 49.637573f), 928) { DisableNavmesh = true }; - 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); + 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); reference12 = list16; - num3++; - span15[num3] = null; - num3++; - span15[num3] = null; + span8[4] = null; + span8[5] = null; obj10.RequiredQuestVariables = list15; num3 = 6; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - 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); + 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); obj10.CompletionQuestVariablesFlags = list17; reference11 = obj10; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) + span7[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-246.3392f, 2.727209f, 47.629112f), 928) { DisableNavmesh = true }; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) + span7[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-233.77907f, -3.860001f, 31.767477f), 928) { DisableNavmesh = true }; - index2++; - span13[index2] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) + span7[12] = new QuestStep(EInteractionType.Interact, 2011234u, new Vector3(-230.12134f, -2.609314f, 11.612061f), 928) { TargetTerritoryId = (ushort)928 }; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) + span7[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-229.71193f, -115.06235f, -115.379684f), 928) { RestartNavigationIfCancelled = false }; - index2++; - span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span7[14] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span13[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) + span7[17] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-237.64621f, -168.16484f, -336.7267f), 928) { DelaySecondsAtStart = 2f, RestartNavigationIfCancelled = false }; - index2++; - span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span7[18] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - index2++; - ref QuestStep reference13 = ref span13[index2]; + ref QuestStep reference13 = ref span7[19]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2011458u, new Vector3(-295.1858f, -203.93689f, -329.36603f), 928); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list18; reference13 = questStep2; - index2++; - ref QuestStep reference14 = ref span13[index2]; + ref QuestStep reference14 = ref span7[20]; QuestStep obj11 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-305.8408f, -204.6433f, -336.8385f), 928) { DelaySecondsAtStart = 2f, @@ -324361,35 +267568,25 @@ public static class AssemblyQuestLoader num3 = 6; List> list19 = new List>(num3); CollectionsMarshal.SetCount(list19, num3); - 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); + 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); reference15 = list20; - num4++; - span19[num4] = null; - num4++; - span19[num4] = null; + span11[4] = null; + span11[5] = null; obj11.RequiredQuestVariables = list19; reference14 = obj11; - index2++; - span13[index2] = new QuestStep(EInteractionType.None, null, null, 928) + span7[21] = new QuestStep(EInteractionType.None, null, null, 928) { DelaySecondsAtStart = 2f }; - index2++; - ref QuestStep reference16 = ref span13[index2]; + ref QuestStep reference16 = ref span7[22]; QuestStep obj12 = new QuestStep(EInteractionType.Jump, null, new Vector3(-366.50647f, -241.32147f, -311.57397f), 928) { StopDistance = 0.5f, @@ -324399,33 +267596,24 @@ public static class AssemblyQuestLoader Position = new Vector3(-366.558f, -249.74661f, -301.74612f) } }; - 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); + 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); reference17 = list22; - num3++; - span21[num3] = null; - num3++; - span21[num3] = null; + span12[4] = null; + span12[5] = null; obj12.RequiredQuestVariables = list21; reference16 = obj12; - index2++; - ref QuestStep reference18 = ref span13[index2]; + ref QuestStep reference18 = ref span7[23]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2011269u, new Vector3(-366.50647f, -248.43219f, -285.6947f), 928) { TargetTerritoryId = (ushort)928 @@ -324433,70 +267621,50 @@ public static class AssemblyQuestLoader num3 = 6; List> list23 = new List>(num3); CollectionsMarshal.SetCount(list23, num3); - 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); + 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); reference19 = list24; - num4++; - span23[num4] = null; - num4++; - span23[num4] = null; + span13[4] = null; + span13[5] = null; obj13.RequiredQuestVariables = list23; reference18 = obj13; - index2++; - ref QuestStep reference20 = ref span13[index2]; + ref QuestStep reference20 = ref span7[24]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011459u, new Vector3(205.8899f, -500.0229f, -167.86456f), 928); - 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); + 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); reference21 = list26; - num3++; - span25[num3] = null; - num3++; - span25[num3] = null; + span14[4] = null; + span14[5] = null; questStep3.RequiredQuestVariables = list25; reference20 = questStep3; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference22 = ref span10[num]; + ref QuestSequence reference22 = ref span6[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -324510,16 +267678,13 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "liza"; + CollectionsMarshal.AsSpan(list28)[0] = "liza"; questRoot3.Author = list28; - index = 3; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference23 = ref span29[num]; + num = 3; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span15 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference23 = ref span15[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -324527,9 +267692,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref QuestStep reference24 = ref span30[index2]; + ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj16 = new QuestStep(EInteractionType.AcceptQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) { Fly = true, @@ -324538,9 +267701,7 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num4 = 0; - span31[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKTA523_04052_Q1_000_000"), @@ -324550,29 +267711,24 @@ public static class AssemblyQuestLoader reference24 = obj16; obj15.Steps = list30; reference23 = obj15; - num++; - ref QuestSequence reference25 = ref span29[num]; + ref QuestSequence reference25 = ref span15[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list32 = new List(index2); - CollectionsMarshal.SetCount(list32, index2); - Span span32 = CollectionsMarshal.AsSpan(list32); - num2 = 0; - ref QuestStep reference26 = ref span32[num2]; + num2 = 1; + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + ref QuestStep reference26 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(552.4747f, 294.7846f, -137.54712f), 814) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list33 = new List(num4); - CollectionsMarshal.SetCount(list33, num4); - Span span33 = CollectionsMarshal.AsSpan(list33); - num3 = 0; - span33[num3] = 10391u; + num3 = 1; + List list33 = new List(num3); + CollectionsMarshal.SetCount(list33, num3); + CollectionsMarshal.AsSpan(list33)[0] = 10391u; obj18.KillEnemyDataIds = list33; obj18.CombatItemUse = new CombatItemUse { @@ -324583,8 +267739,7 @@ public static class AssemblyQuestLoader reference26 = obj18; obj17.Steps = list32; reference25 = obj17; - num++; - ref QuestSequence reference27 = ref span29[num]; + ref QuestSequence reference27 = ref span15[2]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -324592,9 +267747,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036044u, new Vector3(652.7046f, 297.47797f, -171.03839f), 814) { Fly = true }; @@ -324607,26 +267760,21 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "liza"; + CollectionsMarshal.AsSpan(list35)[0] = "liza"; questRoot4.Author = list35; - index = 3; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference28 = ref span36[num]; + num = 3; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span16 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference28 = ref span16[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide, @@ -324640,8 +267788,7 @@ public static class AssemblyQuestLoader }; obj20.Steps = list37; reference28 = obj20; - num++; - ref QuestSequence reference29 = ref span36[num]; + ref QuestSequence reference29 = ref span16[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -324649,26 +267796,21 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1036045u, new Vector3(10.0251465f, 82.83513f, -53.60504f), 820) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1036045u, new Vector3(10.0251465f, 82.83513f, -53.60504f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj21.Steps = list38; reference29 = obj21; - num++; - ref QuestSequence reference30 = ref span36[num]; + ref QuestSequence reference30 = ref span16[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KholusiaStilltide @@ -324682,16 +267824,13 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot5.Author = list40; - index = 3; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference31 = ref span41[num]; + num = 3; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span17 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference31 = ref span17[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -324699,34 +267838,28 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1035613u, new Vector3(-2.456726f, 0f, -9.720032f), 351) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1035613u, new Vector3(-2.456726f, 0f, -9.720032f), 351) { StopDistance = 5f }; obj23.Steps = list42; reference31 = obj23; - num++; - ref QuestSequence reference32 = ref span41[num]; + ref QuestSequence reference32 = ref span17[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj24.Steps = list43; reference32 = obj24; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span17[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -324734,9 +267867,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036329u, new Vector3(741.1155f, 70f, 527.7333f), 621); + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036329u, new Vector3(741.1155f, 70f, 527.7333f), 621); obj25.Steps = list44; reference33 = obj25; questRoot5.QuestSequence = list41; @@ -324746,30 +267877,24 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot6.Author = list45; - index = 5; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference34 = ref span46[num]; + num = 5; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span18 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference34 = ref span18[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj26.Steps = list47; reference34 = obj26; - num++; - ref QuestSequence reference35 = ref span46[num]; + ref QuestSequence reference35 = ref span18[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -324777,26 +267902,21 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1036334u, new Vector3(-73.56378f, 8.05915f, 29.3125f), 418) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1036334u, new Vector3(-73.56378f, 8.05915f, 29.3125f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj27.Steps = list48; reference35 = obj27; - num++; - ref QuestSequence reference36 = ref span46[num]; + ref QuestSequence reference36 = ref span18[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -324806,8 +267926,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list49; reference36 = obj28; - num++; - ref QuestSequence reference37 = ref span46[num]; + ref QuestSequence reference37 = ref span18[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 @@ -324815,9 +267934,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1036342u, new Vector3(161.91345f, -15.134371f, 33.279907f), 419) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1036342u, new Vector3(161.91345f, -15.134371f, 33.279907f), 419) { AethernetShortcut = new AethernetShortcut { @@ -324827,18 +267944,15 @@ public static class AssemblyQuestLoader }; obj29.Steps = list50; reference37 = obj29; - num++; - ref QuestSequence reference38 = ref span46[num]; + ref QuestSequence reference38 = ref span18[4]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj30.Steps = list51; reference38 = obj30; questRoot6.QuestSequence = list46; @@ -324848,16 +267962,13 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot7.Author = list52; - index = 7; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference39 = ref span53[num]; + num = 7; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span19 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference39 = ref span19[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -324865,31 +267976,25 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036346u, new Vector3(-520.531f, -103.99243f, 144.24353f), 402); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036346u, new Vector3(-520.531f, -103.99243f, 144.24353f), 402); obj31.Steps = list54; reference39 = obj31; - num++; - ref QuestSequence reference40 = ref span53[num]; + ref QuestSequence reference40 = ref span19[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj32.Steps = list55; reference40 = obj32; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span19[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -324897,33 +268002,27 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Interact, 1036588u, new Vector3(-683.3448f, -41.403988f, 426.44385f), 402) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1036588u, new Vector3(-683.3448f, -41.403988f, 426.44385f), 402) { StopDistance = 5f }; obj33.Steps = list56; reference41 = obj33; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span19[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj34.Steps = list57; reference42 = obj34; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span19[4]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -324931,9 +268030,8 @@ public static class AssemblyQuestLoader num2 = 3; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - ref QuestStep reference44 = ref span58[index2]; + Span span20 = CollectionsMarshal.AsSpan(list58); + ref QuestStep reference44 = ref span20[0]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1036358u, new Vector3(-215.16754f, 253.81813f, -13.16864f), 402) { Fly = true @@ -324941,48 +268039,34 @@ public static class AssemblyQuestLoader num3 = 6; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - 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); + 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); obj36.CompletionQuestVariablesFlags = list59; reference44 = obj36; - index2++; - ref QuestStep reference45 = ref span58[index2]; + ref QuestStep reference45 = ref span20[1]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1036359u, new Vector3(-244.55634f, 263.18918f, -24.521301f), 402) { Mount = true, Fly = true }; - 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); + 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); obj37.CompletionQuestVariablesFlags = list60; reference45 = obj37; - index2++; - ref QuestStep reference46 = ref span58[index2]; + ref QuestStep reference46 = ref span20[2]; QuestStep obj38 = new QuestStep(EInteractionType.Interact, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) { DisableNavmesh = true @@ -324990,45 +268074,34 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); obj38.CompletionQuestVariablesFlags = list61; reference46 = obj38; obj35.Steps = list58; reference43 = obj35; - num++; - ref QuestSequence reference47 = ref span53[num]; + ref QuestSequence reference47 = ref span19[5]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list62 = new List(index2); - CollectionsMarshal.SetCount(list62, index2); - Span span62 = CollectionsMarshal.AsSpan(list62); - num2 = 0; - ref QuestStep reference48 = ref span62[num2]; + num2 = 1; + List list62 = new List(num2); + CollectionsMarshal.SetCount(list62, num2); + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list62)[0]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1036353u, new Vector3(-229.38892f, 246.3967f, 96.75745f), 402) { Fly = true }; - num4 = 1; - List list63 = new List(num4); - CollectionsMarshal.SetCount(list63, num4); - Span span63 = CollectionsMarshal.AsSpan(list63); - num3 = 0; - span63[num3] = new DialogueChoice + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMK103_04060_Q1_000_100"), @@ -325038,8 +268111,7 @@ public static class AssemblyQuestLoader reference48 = obj40; obj39.Steps = list62; reference47 = obj39; - num++; - ref QuestSequence reference49 = ref span53[num]; + ref QuestSequence reference49 = ref span19[6]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -325047,9 +268119,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036357u, new Vector3(-275.4406f, 252f, -20.981201f), 402) { Fly = true }; @@ -325062,30 +268132,24 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot8.Author = list65; - index = 5; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference50 = ref span66[num]; + num = 5; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span24 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference50 = ref span24[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj42.Steps = list67; reference50 = obj42; - num++; - ref QuestSequence reference51 = ref span66[num]; + ref QuestSequence reference51 = ref span24[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -325093,33 +268157,27 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Interact, 2011484u, new Vector3(28.366455f, 271.229f, -35.355164f), 402) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2011484u, new Vector3(28.366455f, 271.229f, -35.355164f), 402) { Fly = true }; obj43.Steps = list68; reference51 = obj43; - num++; - ref QuestSequence reference52 = ref span66[num]; + ref QuestSequence reference52 = ref span24[2]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj44.Steps = list69; reference52 = obj44; - num++; - ref QuestSequence reference53 = ref span66[num]; + ref QuestSequence reference53 = ref span24[3]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -325127,23 +268185,18 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402); + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1036351u, new Vector3(-681.33057f, -41.32259f, 427.66455f), 402); obj45.Steps = list70; reference53 = obj45; - num++; - ref QuestSequence reference54 = ref span66[num]; + ref QuestSequence reference54 = ref span24[4]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj46.Steps = list71; reference54 = obj46; questRoot8.QuestSequence = list66; @@ -325153,16 +268206,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "liza"; + CollectionsMarshal.AsSpan(list72)[0] = "liza"; questRoot9.Author = list72; - index = 6; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference55 = ref span73[num]; + num = 6; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span25 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference55 = ref span25[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -325170,30 +268220,24 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036352u, new Vector3(-679.92676f, -41.30151f, 429.00732f), 402); obj47.Steps = list74; reference55 = obj47; - num++; - ref QuestSequence reference56 = ref span73[num]; + ref QuestSequence reference56 = ref span25[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj48.Steps = list75; reference56 = obj48; - num++; - ref QuestSequence reference57 = ref span73[num]; + ref QuestSequence reference57 = ref span25[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -325201,9 +268245,7 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 1036374u, new Vector3(-25.0401f, 83.19998f, 10.452393f), 130) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1036374u, new Vector3(-25.0401f, 83.19998f, 10.452393f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -325214,18 +268256,15 @@ public static class AssemblyQuestLoader }; obj49.Steps = list76; reference57 = obj49; - num++; - ref QuestSequence reference58 = ref span73[num]; + ref QuestSequence reference58 = ref span25[3]; QuestSequence obj50 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 130) { DutyOptions = new DutyOptions { @@ -325234,13 +268273,11 @@ public static class AssemblyQuestLoader }; obj50.Steps = list77; reference58 = obj50; - num++; - span73[num] = new QuestSequence + span25[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference59 = ref span73[num]; + ref QuestSequence reference59 = ref span25[5]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -325248,9 +268285,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036376u, new Vector3(-20.065674f, 83.2f, 15.121643f), 130) { StopDistance = 7f }; @@ -325263,33 +268298,27 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot10.Author = list79; - index = 6; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference60 = ref span80[num]; + num = 6; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span26 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference60 = ref span26[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj52.Steps = list81; reference60 = obj52; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span26[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -325297,9 +268326,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - ref QuestStep reference62 = ref span82[index2]; + ref QuestStep reference62 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1036388u, new Vector3(-76.46301f, 42f, 58.243652f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -325312,9 +268339,7 @@ public static class AssemblyQuestLoader num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span83 = CollectionsMarshal.AsSpan(list83); - num4 = 0; - span83[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_LUCKMK106_04063_Q1_000_100"), @@ -325324,22 +268349,18 @@ public static class AssemblyQuestLoader reference62 = obj54; obj53.Steps = list82; reference61 = obj53; - num++; - ref QuestSequence reference63 = ref span80[num]; + ref QuestSequence reference63 = ref span26[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj55.Steps = list84; reference63 = obj55; - num++; - ref QuestSequence reference64 = ref span80[num]; + ref QuestSequence reference64 = ref span26[3]; QuestSequence obj56 = new QuestSequence { Sequence = 3 @@ -325347,31 +268368,25 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 1036392u, new Vector3(-14.328308f, 36.01278f, 61.08191f), 131); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1036392u, new Vector3(-14.328308f, 36.01278f, 61.08191f), 131); obj56.Steps = list85; reference64 = obj56; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span26[4]; QuestSequence obj57 = new QuestSequence { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; obj57.Steps = list86; reference65 = obj57; - num++; - ref QuestSequence reference66 = ref span80[num]; + ref QuestSequence reference66 = ref span26[5]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -325379,9 +268394,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036399u, new Vector3(-3.402832f, 0.01804012f, -8.499329f), 351); + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036399u, new Vector3(-3.402832f, 0.01804012f, -8.499329f), 351); obj58.Steps = list87; reference66 = obj58; questRoot10.QuestSequence = list80; @@ -325391,30 +268404,24 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "liza"; + CollectionsMarshal.AsSpan(list88)[0] = "liza"; questRoot11.Author = list88; - index = 5; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference67 = ref span89[num]; + num = 5; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span27 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference67 = ref span27[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list90; reference67 = obj59; - num++; - ref QuestSequence reference68 = ref span89[num]; + ref QuestSequence reference68 = ref span27[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -325422,31 +268429,25 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj60.Steps = list91; reference68 = obj60; - num++; - ref QuestSequence reference69 = ref span89[num]; + ref QuestSequence reference69 = ref span27[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj61.Steps = list92; reference69 = obj61; - num++; - ref QuestSequence reference70 = ref span89[num]; + ref QuestSequence reference70 = ref span27[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 @@ -325454,23 +268455,18 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1037011u, new Vector3(741.7257f, 70f, 534.63025f), 621); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1037011u, new Vector3(741.7257f, 70f, 534.63025f), 621); obj62.Steps = list93; reference70 = obj62; - num++; - ref QuestSequence reference71 = ref span89[num]; + ref QuestSequence reference71 = ref span27[4]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.FringesCastrumOriens }; @@ -325483,16 +268479,13 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "liza"; + CollectionsMarshal.AsSpan(list95)[0] = "liza"; questRoot12.Author = list95; - index = 6; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference72 = ref span96[num]; + num = 6; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span28 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference72 = ref span28[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 @@ -325500,26 +268493,21 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036426u, new Vector3(-642.3591f, 130f, -504.63113f), 612) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036426u, new Vector3(-642.3591f, 130f, -504.63113f), 612) { StopDistance = 5f }; obj64.Steps = list97; reference72 = obj64; - num++; - ref QuestSequence reference73 = ref span96[num]; + ref QuestSequence reference73 = ref span28[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -325530,8 +268518,7 @@ public static class AssemblyQuestLoader }; obj65.Steps = list98; reference73 = obj65; - num++; - ref QuestSequence reference74 = ref span96[num]; + ref QuestSequence reference74 = ref span28[2]; QuestSequence obj66 = new QuestSequence { Sequence = 2 @@ -325539,27 +268526,22 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1005577u, new Vector3(28.488525f, -3.6319542f, 210.62024f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj66.Steps = list99; reference74 = obj66; - num++; - ref QuestSequence reference75 = ref span96[num]; + ref QuestSequence reference75 = ref span28[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -325570,8 +268552,7 @@ public static class AssemblyQuestLoader }; obj67.Steps = list100; reference75 = obj67; - num++; - ref QuestSequence reference76 = ref span96[num]; + ref QuestSequence reference76 = ref span28[4]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -325579,23 +268560,18 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj68.Steps = list101; reference76 = obj68; - num++; - ref QuestSequence reference77 = ref span96[num]; + ref QuestSequence reference77 = ref span28[5]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj69.Steps = list102; reference77 = obj69; questRoot12.QuestSequence = list96; @@ -325605,16 +268581,13 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "liza"; + CollectionsMarshal.AsSpan(list103)[0] = "liza"; questRoot13.Author = list103; - index = 5; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference78 = ref span104[num]; + num = 5; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span29 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference78 = ref span29[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -325622,30 +268595,24 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1003027u, new Vector3(4.8981323f, -1.92944f, -0.19836426f), 205); obj70.Steps = list105; reference78 = obj70; - num++; - ref QuestSequence reference79 = ref span104[num]; + ref QuestSequence reference79 = ref span29[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj71.Steps = list106; reference79 = obj71; - num++; - ref QuestSequence reference80 = ref span104[num]; + ref QuestSequence reference80 = ref span29[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -325653,49 +268620,40 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - ref QuestStep reference81 = ref span107[index2]; + ref QuestStep reference81 = ref CollectionsMarshal.AsSpan(list107)[0]; 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(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list108; obj73.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference81 = obj73; obj72.Steps = list107; reference80 = obj72; - num++; - ref QuestSequence reference82 = ref span104[num]; + ref QuestSequence reference82 = ref span29[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.None, null, null, 351) { Comment = "Credits" }; obj74.Steps = list109; reference82 = obj74; - num++; - ref QuestSequence reference83 = ref span104[num]; + ref QuestSequence reference83 = ref span29[4]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -325703,9 +268661,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036444u, new Vector3(-1.6937866f, 0f, -4.135254f), 351); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036444u, new Vector3(-1.6937866f, 0f, -4.135254f), 351); obj75.Steps = list110; reference83 = obj75; questRoot13.QuestSequence = list104; @@ -325715,26 +268671,21 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "kaiser"; + CollectionsMarshal.AsSpan(list111)[0] = "kaiser"; questRoot14.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference84 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span31 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference84 = ref span31[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Limsa, @@ -325748,8 +268699,7 @@ public static class AssemblyQuestLoader }; obj76.Steps = list113; reference84 = obj76; - num++; - ref QuestSequence reference85 = ref span112[num]; + ref QuestSequence reference85 = ref span31[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -325757,9 +268707,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.Interact, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -325770,18 +268718,15 @@ public static class AssemblyQuestLoader }; obj77.Steps = list114; reference85 = obj77; - num++; - ref QuestSequence reference86 = ref span112[num]; + ref QuestSequence reference86 = ref span31[2]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list115 = new List(index2); - CollectionsMarshal.SetCount(list115, index2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num2 = 0; - ref QuestStep reference87 = ref span115[num2]; + num2 = 1; + List list115 = new List(num2); + CollectionsMarshal.SetCount(list115, num2); + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list115)[0]; QuestStep obj79 = new QuestStep(EInteractionType.CompleteQuest, 1039265u, new Vector3(-27.542603f, 42.597717f, 163.7445f), 134) { StopDistance = 5f, @@ -325798,9 +268743,7 @@ public static class AssemblyQuestLoader num3 = 1; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - Span span116 = CollectionsMarshal.AsSpan(list116); - num4 = 0; - span116[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "quest/040/AktKbb101_04067", @@ -325817,16 +268760,13 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "kaiser"; + CollectionsMarshal.AsSpan(list117)[0] = "kaiser"; questRoot15.Author = list117; - index = 10; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference88 = ref span118[num]; + num = 10; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span32 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference88 = ref span32[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -325834,9 +268774,8 @@ public static class AssemblyQuestLoader num2 = 4; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-25.441345f, 42.597717f, 162.65016f), 134) + Span span33 = CollectionsMarshal.AsSpan(list119); + span33[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-25.441345f, 42.597717f, 162.65016f), 134) { StopDistance = 5f, Fly = true, @@ -325858,8 +268797,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span119[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 134) + span33[1] = new QuestStep(EInteractionType.EquipItem, null, null, 134) { Comment = "Try to Equip Stonegold Milpreves", ItemId = 35778u, @@ -325874,27 +268812,22 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { StopDistance = 5f }; obj80.Steps = list119; reference88 = obj80; - num++; - ref QuestSequence reference89 = ref span118[num]; + ref QuestSequence reference89 = ref span32[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -325908,8 +268841,7 @@ public static class AssemblyQuestLoader }; obj81.Steps = list120; reference89 = obj81; - num++; - ref QuestSequence reference90 = ref span118[num]; + ref QuestSequence reference90 = ref span32[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 @@ -325917,9 +268849,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 2011759u, new Vector3(20.065613f, 215.44214f, -108.171265f), 478) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2011759u, new Vector3(20.065613f, 215.44214f, -108.171265f), 478) { StopDistance = 2f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -325933,18 +268863,15 @@ public static class AssemblyQuestLoader }; obj82.Steps = list121; reference90 = obj82; - num++; - ref QuestSequence reference91 = ref span118[num]; + ref QuestSequence reference91 = ref span32[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -325958,8 +268885,7 @@ public static class AssemblyQuestLoader }; obj83.Steps = list122; reference91 = obj83; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span32[4]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -325967,9 +268893,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.Interact, 1039247u, new Vector3(68.7113f, 212.84532f, -109.9718f), 478) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Interact, 1039247u, new Vector3(68.7113f, 212.84532f, -109.9718f), 478) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -325983,18 +268907,15 @@ public static class AssemblyQuestLoader }; obj84.Steps = list123; reference92 = obj84; - num++; - ref QuestSequence reference93 = ref span118[num]; + ref QuestSequence reference93 = ref span32[5]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -326017,8 +268938,7 @@ public static class AssemblyQuestLoader }; obj85.Steps = list124; reference93 = obj85; - num++; - ref QuestSequence reference94 = ref span118[num]; + ref QuestSequence reference94 = ref span32[6]; QuestSequence obj86 = new QuestSequence { Sequence = 6 @@ -326026,9 +268946,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - ref QuestStep reference95 = ref span125[index2]; + ref QuestStep reference95 = ref CollectionsMarshal.AsSpan(list125)[0]; QuestStep obj87 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { StopDistance = 5f, @@ -326044,12 +268962,10 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - Span span126 = CollectionsMarshal.AsSpan(list126); - num3 = 0; - span126[num3] = 399; + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = 399; obj88.InTerritory = list126; skipConditions2.AetheryteShortcutIf = obj88; skipConditions2.AethernetShortcutIf = new SkipAetheryteCondition @@ -326060,23 +268976,19 @@ public static class AssemblyQuestLoader reference95 = obj87; obj86.Steps = list125; reference94 = obj86; - num++; - span118[num] = new QuestSequence + span32[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference96 = ref span118[num]; + ref QuestSequence reference96 = ref span32[8]; QuestSequence obj89 = new QuestSequence { Sequence = 8 }; - index2 = 1; - List list127 = new List(index2); - CollectionsMarshal.SetCount(list127, index2); - Span span127 = CollectionsMarshal.AsSpan(list127); - num2 = 0; - ref QuestStep reference97 = ref span127[num2]; + num2 = 1; + List list127 = new List(num2); + CollectionsMarshal.SetCount(list127, num2); + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list127)[0]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 1039248u, new Vector3(-612.2988f, 146.86842f, 42.435303f), 399) { StopDistance = 5f, @@ -326095,9 +269007,7 @@ public static class AssemblyQuestLoader num3 = 1; List list128 = new List(num3); CollectionsMarshal.SetCount(list128, num3); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = 399; + CollectionsMarshal.AsSpan(list128)[0] = 399; obj91.InTerritory = list128; skipConditions3.AetheryteShortcutIf = obj91; skipConditions3.AethernetShortcutIf = new SkipAetheryteCondition @@ -326108,8 +269018,7 @@ public static class AssemblyQuestLoader reference97 = obj90; obj89.Steps = list127; reference96 = obj89; - num++; - ref QuestSequence reference98 = ref span118[num]; + ref QuestSequence reference98 = ref span32[9]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -326117,9 +269026,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326139,26 +269046,21 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "kaiser"; + CollectionsMarshal.AsSpan(list130)[0] = "kaiser"; questRoot16.Author = list130; - index = 9; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference99 = ref span131[num]; + num = 9; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span34 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference99 = ref span34[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -326172,8 +269074,7 @@ public static class AssemblyQuestLoader }; obj93.Steps = list132; reference99 = obj93; - num++; - ref QuestSequence reference100 = ref span131[num]; + ref QuestSequence reference100 = ref span34[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -326181,26 +269082,21 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1039250u, new Vector3(-29.251587f, -2.0576189f, -161.08954f), 141) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1039250u, new Vector3(-29.251587f, -2.0576189f, -161.08954f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj94.Steps = list133; reference100 = obj94; - num++; - ref QuestSequence reference101 = ref span131[num]; + ref QuestSequence reference101 = ref span34[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -326214,8 +269110,7 @@ public static class AssemblyQuestLoader }; obj95.Steps = list134; reference101 = obj95; - num++; - ref QuestSequence reference102 = ref span131[num]; + ref QuestSequence reference102 = ref span34[3]; QuestSequence obj96 = new QuestSequence { Sequence = 3 @@ -326223,21 +269118,17 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - ref QuestStep reference103 = ref span135[index2]; + ref QuestStep reference103 = ref CollectionsMarshal.AsSpan(list135)[0]; QuestStep obj97 = new QuestStep(EInteractionType.Combat, null, new Vector3(177.52213f, -3.5157094f, -133.6495f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list136 = new List(num4); - CollectionsMarshal.SetCount(list136, num4); - Span span136 = CollectionsMarshal.AsSpan(list136); - num3 = 0; - span136[num3] = new ComplexCombatData + num3 = 1; + List list136 = new List(num3); + CollectionsMarshal.SetCount(list136, num3); + CollectionsMarshal.AsSpan(list136)[0] = new ComplexCombatData { DataId = 14031u, MinimumKillCount = 1u @@ -326253,18 +269144,15 @@ public static class AssemblyQuestLoader reference103 = obj97; obj96.Steps = list135; reference102 = obj96; - num++; - ref QuestSequence reference104 = ref span131[num]; + ref QuestSequence reference104 = ref span34[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -326277,8 +269165,7 @@ public static class AssemblyQuestLoader }; obj98.Steps = list137; reference104 = obj98; - num++; - ref QuestSequence reference105 = ref span131[num]; + ref QuestSequence reference105 = ref span34[5]; QuestSequence obj99 = new QuestSequence { Sequence = 5 @@ -326286,9 +269173,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 1039258u, new Vector3(122.72827f, 0.111846395f, -215.22852f), 141) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1039258u, new Vector3(122.72827f, 0.111846395f, -215.22852f), 141) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, @@ -326302,18 +269187,15 @@ public static class AssemblyQuestLoader }; obj99.Steps = list138; reference105 = obj99; - num++; - ref QuestSequence reference106 = ref span131[num]; + ref QuestSequence reference106 = ref span34[6]; QuestSequence obj100 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -326326,8 +269208,7 @@ public static class AssemblyQuestLoader }; obj100.Steps = list139; reference106 = obj100; - num++; - ref QuestSequence reference107 = ref span131[num]; + ref QuestSequence reference107 = ref span34[7]; QuestSequence obj101 = new QuestSequence { Sequence = 7 @@ -326335,9 +269216,7 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1039271u, new Vector3(122.819824f, 0.10310017f, -215.2591f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation, SkipConditions = new SkipConditions @@ -326350,18 +269229,15 @@ public static class AssemblyQuestLoader }; obj101.Steps = list140; reference107 = obj101; - num++; - ref QuestSequence reference108 = ref span131[num]; + ref QuestSequence reference108 = ref span34[8]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326381,16 +269257,13 @@ public static class AssemblyQuestLoader num = 1; List list142 = new List(num); CollectionsMarshal.SetCount(list142, num); - Span span142 = CollectionsMarshal.AsSpan(list142); - index = 0; - span142[index] = "kaiser"; + CollectionsMarshal.AsSpan(list142)[0] = "kaiser"; questRoot17.Author = list142; - index = 6; - List list143 = new List(index); - CollectionsMarshal.SetCount(list143, index); - Span span143 = CollectionsMarshal.AsSpan(list143); - num = 0; - ref QuestSequence reference109 = ref span143[num]; + num = 6; + List list143 = new List(num); + CollectionsMarshal.SetCount(list143, num); + Span span35 = CollectionsMarshal.AsSpan(list143); + ref QuestSequence reference109 = ref span35[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -326398,9 +269271,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - ref QuestStep reference110 = ref span144[index2]; + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list144)[0]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, @@ -326415,9 +269286,7 @@ public static class AssemblyQuestLoader num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span145 = CollectionsMarshal.AsSpan(list145); - num4 = 0; - span145[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB121_04070_Q1_000_000"), @@ -326427,25 +269296,21 @@ public static class AssemblyQuestLoader reference110 = obj104; obj103.Steps = list144; reference109 = obj103; - num++; - ref QuestSequence reference111 = ref span143[num]; + ref QuestSequence reference111 = ref span35[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj105.Steps = list146; reference111 = obj105; - num++; - ref QuestSequence reference112 = ref span143[num]; + ref QuestSequence reference112 = ref span35[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -326453,9 +269318,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Interact, 1039275u, new Vector3(236.9878f, -24.792122f, 202.594f), 138) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1039275u, new Vector3(236.9878f, -24.792122f, 202.594f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, SkipConditions = new SkipConditions @@ -326468,18 +269331,15 @@ public static class AssemblyQuestLoader }; obj106.Steps = list147; reference112 = obj106; - num++; - ref QuestSequence reference113 = ref span143[num]; + ref QuestSequence reference113 = ref span35[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -326494,8 +269354,7 @@ public static class AssemblyQuestLoader }; obj107.Steps = list148; reference113 = obj107; - num++; - ref QuestSequence reference114 = ref span143[num]; + ref QuestSequence reference114 = ref span35[4]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -326503,9 +269362,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.Interact, 1039279u, new Vector3(239.9176f, -24.724764f, 205.24902f), 138) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.Interact, 1039279u, new Vector3(239.9176f, -24.724764f, 205.24902f), 138) { StopDistance = 6f, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport, @@ -326519,18 +269376,15 @@ public static class AssemblyQuestLoader }; obj108.Steps = list149; reference114 = obj108; - num++; - ref QuestSequence reference115 = ref span143[num]; + ref QuestSequence reference115 = ref span35[5]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326550,16 +269404,13 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "kaiser"; + CollectionsMarshal.AsSpan(list151)[0] = "kaiser"; questRoot18.Author = list151; - index = 7; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference116 = ref span152[num]; + num = 7; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span36 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference116 = ref span36[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -326567,9 +269418,7 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326582,18 +269431,15 @@ public static class AssemblyQuestLoader }; obj110.Steps = list153; reference116 = obj110; - num++; - ref QuestSequence reference117 = ref span152[num]; + ref QuestSequence reference117 = ref span36[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326606,8 +269452,7 @@ public static class AssemblyQuestLoader }; obj111.Steps = list154; reference117 = obj111; - num++; - ref QuestSequence reference118 = ref span152[num]; + ref QuestSequence reference118 = ref span36[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -326615,9 +269460,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - ref QuestStep reference119 = ref span155[index2]; + ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list155)[0]; QuestStep obj113 = new QuestStep(EInteractionType.Combat, null, new Vector3(-501.8255f, 147.54488f, -191.78416f), 399) { Fly = true, @@ -326628,12 +269471,10 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list156 = new List(num4); - CollectionsMarshal.SetCount(list156, num4); - Span span156 = CollectionsMarshal.AsSpan(list156); - num3 = 0; - span156[num3] = new ComplexCombatData + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = new ComplexCombatData { DataId = 14030u, MinimumKillCount = 1u @@ -326649,18 +269490,15 @@ public static class AssemblyQuestLoader reference119 = obj113; obj112.Steps = list155; reference118 = obj112; - num++; - ref QuestSequence reference120 = ref span152[num]; + ref QuestSequence reference120 = ref span36[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - 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) + 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) { 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 @@ -326679,8 +269517,7 @@ public static class AssemblyQuestLoader }; obj114.Steps = list157; reference120 = obj114; - num++; - ref QuestSequence reference121 = ref span152[num]; + ref QuestSequence reference121 = ref span36[4]; QuestSequence obj115 = new QuestSequence { Sequence = 4 @@ -326688,9 +269525,7 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - ref QuestStep reference122 = ref span158[index2]; + ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, null, new Vector3(-383.24777f, 147.98257f, 52.931572f), 399) { Fly = true, @@ -326704,9 +269539,7 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span159 = CollectionsMarshal.AsSpan(list159); - num4 = 0; - span159[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list159)[0] = new ComplexCombatData { DataId = 14029u, MinimumKillCount = 2u @@ -326722,18 +269555,15 @@ public static class AssemblyQuestLoader reference122 = obj116; obj115.Steps = list158; reference121 = obj115; - num++; - ref QuestSequence reference123 = ref span152[num]; + ref QuestSequence reference123 = ref span36[5]; QuestSequence obj117 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = false, AethernetShortcut = new AethernetShortcut @@ -326751,8 +269581,7 @@ public static class AssemblyQuestLoader }; obj117.Steps = list160; reference123 = obj117; - num++; - ref QuestSequence reference124 = ref span152[num]; + ref QuestSequence reference124 = ref span36[6]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -326760,9 +269589,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039249u, new Vector3(0.3508911f, 210.99998f, -17.746277f), 478) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326782,26 +269609,21 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "kaiser"; + CollectionsMarshal.AsSpan(list162)[0] = "kaiser"; questRoot19.Author = list162; - index = 5; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference125 = ref span163[num]; + num = 5; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span37 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference125 = ref span37[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326814,8 +269636,7 @@ public static class AssemblyQuestLoader }; obj119.Steps = list164; reference125 = obj119; - num++; - ref QuestSequence reference126 = ref span163[num]; + ref QuestSequence reference126 = ref span37[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -326823,9 +269644,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -326839,18 +269658,15 @@ public static class AssemblyQuestLoader }; obj120.Steps = list165; reference126 = obj120; - num++; - ref QuestSequence reference127 = ref span163[num]; + ref QuestSequence reference127 = ref span37[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsTailfeather, @@ -326864,8 +269680,7 @@ public static class AssemblyQuestLoader }; obj121.Steps = list166; reference127 = obj121; - num++; - ref QuestSequence reference128 = ref span163[num]; + ref QuestSequence reference128 = ref span37[3]; QuestSequence obj122 = new QuestSequence { Sequence = 3 @@ -326873,23 +269688,18 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1039288u, new Vector3(212.9701f, 52.213486f, -787.50287f), 398); obj122.Steps = list167; reference128 = obj122; - num++; - ref QuestSequence reference129 = ref span163[num]; + ref QuestSequence reference129 = ref span37[4]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, SkipConditions = new SkipConditions @@ -326909,16 +269719,13 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; questRoot20.Author = list169; - index = 4; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference130 = ref span170[num]; + num = 4; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span38 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference130 = ref span38[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -326926,9 +269733,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036633u, new Vector3(82.871704f, 4.099994f, -131.30396f), 130) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1036633u, new Vector3(82.871704f, 4.099994f, -131.30396f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -326939,18 +269744,15 @@ public static class AssemblyQuestLoader }; obj124.Steps = list171; reference130 = obj124; - num++; - ref QuestSequence reference131 = ref span170[num]; + ref QuestSequence reference131 = ref span38[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -326960,8 +269762,7 @@ public static class AssemblyQuestLoader }; obj125.Steps = list172; reference131 = obj125; - num++; - ref QuestSequence reference132 = ref span170[num]; + ref QuestSequence reference132 = ref span38[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -326969,16 +269770,12 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - ref QuestStep reference133 = ref span173[index2]; + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list173)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131); - num4 = 1; - List list174 = new List(num4); - CollectionsMarshal.SetCount(list174, num4); - Span span174 = CollectionsMarshal.AsSpan(list174); - num3 = 0; - span174[num3] = new DialogueChoice + num3 = 1; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBB201_04073_Q5_000_000") @@ -326987,18 +269784,15 @@ public static class AssemblyQuestLoader reference133 = questStep4; obj126.Steps = list173; reference132 = obj126; - num++; - ref QuestSequence reference134 = ref span170[num]; + ref QuestSequence reference134 = ref span38[3]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list175 = new List(index2); - CollectionsMarshal.SetCount(list175, index2); - Span span175 = CollectionsMarshal.AsSpan(list175); - num2 = 0; - ref QuestStep reference135 = ref span175[num2]; + num2 = 1; + List list175 = new List(num2); + CollectionsMarshal.SetCount(list175, num2); + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list175)[0]; QuestStep obj128 = new QuestStep(EInteractionType.CompleteQuest, 1037014u, new Vector3(0.9002075f, 0.014807776f, -4.3793945f), 971) { StopDistance = 5f @@ -327006,9 +269800,7 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span176 = CollectionsMarshal.AsSpan(list176); - num4 = 0; - span176[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB201_04073_Q4_000_000"), @@ -327026,16 +269818,13 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - Span span177 = CollectionsMarshal.AsSpan(list177); - index = 0; - span177[index] = "liza"; + CollectionsMarshal.AsSpan(list177)[0] = "liza"; questRoot21.Author = list177; - index = 4; - List list178 = new List(index); - CollectionsMarshal.SetCount(list178, index); - Span span178 = CollectionsMarshal.AsSpan(list178); - num = 0; - ref QuestSequence reference136 = ref span178[num]; + num = 4; + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + Span span39 = CollectionsMarshal.AsSpan(list178); + ref QuestSequence reference136 = ref span39[0]; QuestSequence obj129 = new QuestSequence { Sequence = 0 @@ -327043,9 +269832,8 @@ public static class AssemblyQuestLoader num2 = 5; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - ref QuestStep reference137 = ref span179[index2]; + Span span40 = CollectionsMarshal.AsSpan(list179); + ref QuestStep reference137 = ref span40[0]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -327058,12 +269846,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num4 = 1; - List list180 = new List(num4); - CollectionsMarshal.SetCount(list180, num4); - Span span180 = CollectionsMarshal.AsSpan(list180); - num3 = 0; - span180[num3] = 971; + num3 = 1; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + CollectionsMarshal.AsSpan(list180)[0] = 971; skipStepConditions2.InTerritory = list180; skipConditions4.StepIf = skipStepConditions2; SkipAetheryteCondition obj131 = new SkipAetheryteCondition @@ -327073,17 +269859,14 @@ public static class AssemblyQuestLoader num3 = 2; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span181 = CollectionsMarshal.AsSpan(list181); - num4 = 0; - span181[num4] = 131; - num4++; - span181[num4] = 971; + Span span41 = CollectionsMarshal.AsSpan(list181); + span41[0] = 131; + span41[1] = 971; obj131.InTerritory = list181; skipConditions4.AetheryteShortcutIf = obj131; obj130.SkipConditions = skipConditions4; reference137 = obj130; - index2++; - span179[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 971) + span40[1] = new QuestStep(EInteractionType.EquipItem, null, null, 971) { ItemId = 35760u, SkipConditions = new SkipConditions @@ -327097,8 +269880,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span179[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(0.13146536f, 0.01480782f, -0.7022889f), 971) + span40[2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(0.13146536f, 0.01480782f, -0.7022889f), 971) { ItemId = 35872u, SkipConditions = new SkipConditions @@ -327112,35 +269894,29 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { StopDistance = 5f }; obj129.Steps = list179; reference136 = obj129; - num++; - ref QuestSequence reference138 = ref span178[num]; + ref QuestSequence reference138 = ref span39[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj132.Steps = list182; reference138 = obj132; - num++; - ref QuestSequence reference139 = ref span178[num]; + ref QuestSequence reference139 = ref span39[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 @@ -327148,23 +269924,19 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - span183[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1036637u, new Vector3(-263.84375f, -4.9409676f, -371.26727f), 141); + CollectionsMarshal.AsSpan(list183)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1036637u, new Vector3(-263.84375f, -4.9409676f, -371.26727f), 141); obj133.Steps = list183; reference139 = obj133; - num++; - ref QuestSequence reference140 = ref span178[num]; + ref QuestSequence reference140 = ref span39[3]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -327174,8 +269946,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - num2++; - span184[num2] = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971) + span42[1] = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971) { NextQuestId = new QuestId(4075) }; @@ -327188,16 +269959,13 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - Span span185 = CollectionsMarshal.AsSpan(list185); - index = 0; - span185[index] = "liza"; + CollectionsMarshal.AsSpan(list185)[0] = "liza"; questRoot22.Author = list185; - index = 5; - List list186 = new List(index); - CollectionsMarshal.SetCount(list186, index); - Span span186 = CollectionsMarshal.AsSpan(list186); - num = 0; - ref QuestSequence reference141 = ref span186[num]; + num = 5; + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + Span span43 = CollectionsMarshal.AsSpan(list186); + ref QuestSequence reference141 = ref span43[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -327205,9 +269973,8 @@ public static class AssemblyQuestLoader num2 = 2; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - ref QuestStep reference142 = ref span187[index2]; + Span span44 = CollectionsMarshal.AsSpan(list187); + ref QuestStep reference142 = ref span44[0]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -327220,12 +269987,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num4 = 1; - List list188 = new List(num4); - CollectionsMarshal.SetCount(list188, num4); - Span span188 = CollectionsMarshal.AsSpan(list188); - num3 = 0; - span188[num3] = 971; + num3 = 1; + List list188 = new List(num3); + CollectionsMarshal.SetCount(list188, num3); + CollectionsMarshal.AsSpan(list188)[0] = 971; skipStepConditions3.InTerritory = list188; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition obj137 = new SkipAetheryteCondition @@ -327235,38 +270000,31 @@ public static class AssemblyQuestLoader num3 = 2; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - Span span189 = CollectionsMarshal.AsSpan(list189); - num4 = 0; - span189[num4] = 131; - num4++; - span189[num4] = 971; + Span span45 = CollectionsMarshal.AsSpan(list189); + span45[0] = 131; + span45[1] = 971; obj137.InTerritory = list189; skipConditions5.AetheryteShortcutIf = obj137; obj136.SkipConditions = skipConditions5; reference142 = obj136; - index2++; - span187[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + span44[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj135.Steps = list187; reference141 = obj135; - num++; - ref QuestSequence reference143 = ref span186[num]; + ref QuestSequence reference143 = ref span43[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj138.Steps = list190; reference143 = obj138; - num++; - ref QuestSequence reference144 = ref span186[num]; + ref QuestSequence reference144 = ref span43[2]; QuestSequence obj139 = new QuestSequence { Sequence = 2 @@ -327274,34 +270032,26 @@ public static class AssemblyQuestLoader num2 = 3; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - ref QuestStep reference145 = ref span191[index2]; + Span span46 = CollectionsMarshal.AsSpan(list191); + ref QuestStep reference145 = ref span46[0]; QuestStep obj140 = new QuestStep(EInteractionType.UseItem, 2011694u, new Vector3(-151.20166f, 5.6915283f, -143.69421f), 148) { Fly = true, ItemId = 2003077u }; - 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); + 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); obj140.CompletionQuestVariablesFlags = list192; reference145 = obj140; - index2++; - ref QuestStep reference146 = ref span191[index2]; + ref QuestStep reference146 = ref span46[1]; QuestStep obj141 = new QuestStep(EInteractionType.UseItem, 2011693u, new Vector3(-208.11786f, 4.0131226f, -22.110352f), 148) { Fly = true, @@ -327310,75 +270060,56 @@ public static class AssemblyQuestLoader num3 = 6; List list193 = new List(num3); CollectionsMarshal.SetCount(list193, num3); - 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); + 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); obj141.CompletionQuestVariablesFlags = list193; reference146 = obj141; - index2++; - ref QuestStep reference147 = ref span191[index2]; + ref QuestStep reference147 = ref span46[2]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, 2011546u, new Vector3(-274.34198f, 19.821411f, 66.453f), 148) { Fly = true, ItemId = 2003077u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list194 = new List(num4); - CollectionsMarshal.SetCount(list194, num4); - Span span194 = CollectionsMarshal.AsSpan(list194); - num3 = 0; - span194[num3] = 14028u; + num3 = 1; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + CollectionsMarshal.AsSpan(list194)[0] = 14028u; obj142.KillEnemyDataIds = list194; num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - 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); + 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); obj142.CompletionQuestVariablesFlags = list195; reference147 = obj142; obj139.Steps = list191; reference144 = obj139; - num++; - ref QuestSequence reference148 = ref span186[num]; + ref QuestSequence reference148 = ref span43[3]; QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj143.Steps = list196; reference148 = obj143; - num++; - ref QuestSequence reference149 = ref span186[num]; + ref QuestSequence reference149 = ref span43[4]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -327386,9 +270117,8 @@ public static class AssemblyQuestLoader num2 = 2; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + Span span50 = CollectionsMarshal.AsSpan(list197); + span50[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -327398,15 +270128,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - index2++; - ref QuestStep reference150 = ref span197[index2]; + ref QuestStep reference150 = ref span50[1]; QuestStep questStep5 = new QuestStep(EInteractionType.CompleteQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); - num4 = 1; - List list198 = new List(num4); - CollectionsMarshal.SetCount(list198, num4); - Span span198 = CollectionsMarshal.AsSpan(list198); - num3 = 0; - span198[num3] = new DialogueChoice + num3 = 1; + List list198 = new List(num3); + CollectionsMarshal.SetCount(list198, num3); + CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB211_04075_Q1_000_000"), @@ -327424,26 +270151,22 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "liza"; + CollectionsMarshal.AsSpan(list199)[0] = "liza"; questRoot23.Author = list199; - index = 6; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference151 = ref span200[num]; + num = 6; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span51 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference151 = ref span51[0]; QuestSequence obj145 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + Span span52 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference152 = ref span52[0]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -327459,33 +270182,27 @@ public static class AssemblyQuestLoader num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - num4 = 0; - span202[num4] = 971; + CollectionsMarshal.AsSpan(list202)[0] = 971; skipStepConditions4.InTerritory = list202; skipConditions6.StepIf = skipStepConditions4; SkipAetheryteCondition obj147 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; + num3 = 2; + List list203 = new List(num3); + CollectionsMarshal.SetCount(list203, num3); + Span span53 = CollectionsMarshal.AsSpan(list203); + span53[0] = 131; + span53[1] = 971; obj147.InTerritory = list203; skipConditions6.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions6; reference152 = obj146; - num2++; - span201[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + span52[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj145.Steps = list201; reference151 = obj145; - num++; - ref QuestSequence reference153 = ref span200[num]; + ref QuestSequence reference153 = ref span51[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -327493,9 +270210,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.Interact, 1036641u, new Vector3(-149.95044f, 14.004999f, 54.8562f), 130) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1036641u, new Vector3(-149.95044f, 14.004999f, 54.8562f), 130) { AethernetShortcut = new AethernetShortcut { @@ -327505,18 +270220,15 @@ public static class AssemblyQuestLoader }; obj148.Steps = list204; reference153 = obj148; - num++; - ref QuestSequence reference154 = ref span200[num]; + ref QuestSequence reference154 = ref span51[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -327526,8 +270238,7 @@ public static class AssemblyQuestLoader }; obj149.Steps = list205; reference154 = obj149; - num++; - ref QuestSequence reference155 = ref span200[num]; + ref QuestSequence reference155 = ref span51[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -327535,32 +270246,26 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.87344f, -3.6581912f, 179.7406f), 141) + Span span54 = CollectionsMarshal.AsSpan(list206); + span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.87344f, -3.6581912f, 179.7406f), 141) { Fly = true }; - index2++; - span206[index2] = new QuestStep(EInteractionType.Interact, 1036644u, new Vector3(-68.10101f, -3.6581912f, 179.61389f), 141); + span54[1] = new QuestStep(EInteractionType.Interact, 1036644u, new Vector3(-68.10101f, -3.6581912f, 179.61389f), 141); obj150.Steps = list206; reference155 = obj150; - num++; - ref QuestSequence reference156 = ref span200[num]; + ref QuestSequence reference156 = ref span51[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj151.Steps = list207; reference156 = obj151; - num++; - ref QuestSequence reference157 = ref span200[num]; + ref QuestSequence reference157 = ref span51[5]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -327568,9 +270273,8 @@ public static class AssemblyQuestLoader num2 = 2; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + Span span55 = CollectionsMarshal.AsSpan(list208); + span55[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -327580,15 +270284,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - index2++; - ref QuestStep reference158 = ref span208[index2]; + ref QuestStep reference158 = ref span55[1]; 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); - Span span209 = CollectionsMarshal.AsSpan(list209); - num4 = 0; - span209[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB221_04076_Q2_000_000"), @@ -327606,26 +270307,22 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "liza"; + CollectionsMarshal.AsSpan(list210)[0] = "liza"; questRoot24.Author = list210; - index = 9; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference159 = ref span211[num]; + num = 9; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span56 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference159 = ref span56[0]; QuestSequence obj153 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + Span span57 = CollectionsMarshal.AsSpan(list212); + ref QuestStep reference160 = ref span57[0]; QuestStep obj154 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -327638,12 +270335,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - num4 = 1; - List list213 = new List(num4); - CollectionsMarshal.SetCount(list213, num4); - Span span213 = CollectionsMarshal.AsSpan(list213); - num3 = 0; - span213[num3] = 971; + num3 = 1; + List list213 = new List(num3); + CollectionsMarshal.SetCount(list213, num3); + CollectionsMarshal.AsSpan(list213)[0] = 971; skipStepConditions5.InTerritory = list213; skipConditions7.StepIf = skipStepConditions5; SkipAetheryteCondition obj155 = new SkipAetheryteCondition @@ -327653,21 +270348,17 @@ public static class AssemblyQuestLoader num3 = 2; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num4 = 0; - span214[num4] = 131; - num4++; - span214[num4] = 971; + Span span58 = CollectionsMarshal.AsSpan(list214); + span58[0] = 131; + span58[1] = 971; obj155.InTerritory = list214; skipConditions7.AetheryteShortcutIf = obj155; obj154.SkipConditions = skipConditions7; reference160 = obj154; - num2++; - span212[num2] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1036629u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj153.Steps = list212; reference159 = obj153; - num++; - ref QuestSequence reference161 = ref span211[num]; + ref QuestSequence reference161 = ref span56[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -327675,38 +270366,32 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.Interact, 1036645u, new Vector3(-65.23236f, -2.0043268f, -170.06183f), 141) + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1036645u, new Vector3(-65.23236f, -2.0043268f, -170.06183f), 141) { AetheryteShortcut = EAetheryteLocation.CentralThanalanBlackBrushStation }; obj156.Steps = list215; reference161 = obj156; - num++; - ref QuestSequence reference162 = ref span211[num]; + ref QuestSequence reference162 = ref span56[2]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span216[num2] = new QuestStep(EInteractionType.Interact, 1036646u, new Vector3(84.33655f, 0.27463394f, -279.86572f), 141) + span59[1] = new QuestStep(EInteractionType.Interact, 1036646u, new Vector3(84.33655f, 0.27463394f, -279.86572f), 141) { StopDistance = 5f }; obj157.Steps = list216; reference162 = obj157; - num++; - ref QuestSequence reference163 = ref span211[num]; + ref QuestSequence reference163 = ref span56[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -327714,45 +270399,37 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.258f, 1.9472685f, -165.4284f), 141) + Span span60 = CollectionsMarshal.AsSpan(list217); + span60[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.258f, 1.9472685f, -165.4284f), 141) { Fly = true }; - index2++; - span217[index2] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); + span60[1] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); obj158.Steps = list217; reference163 = obj158; - num++; - ref QuestSequence reference164 = ref span211[num]; + ref QuestSequence reference164 = ref span56[4]; QuestSequence obj159 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list218 = new List(index2); - CollectionsMarshal.SetCount(list218, index2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num2 = 0; - ref QuestStep reference165 = ref span218[num2]; + num2 = 1; + List list218 = new List(num2); + CollectionsMarshal.SetCount(list218, num2); + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list218)[0]; QuestStep obj160 = new QuestStep(EInteractionType.Combat, null, new Vector3(159.8781f, -0.6240455f, -154.44577f), 141) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span219 = CollectionsMarshal.AsSpan(list219); - num3 = 0; - span219[num3] = 14027u; + num3 = 1; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + CollectionsMarshal.AsSpan(list219)[0] = 14027u; obj160.KillEnemyDataIds = list219; reference165 = obj160; obj159.Steps = list218; reference164 = obj159; - num++; - ref QuestSequence reference166 = ref span211[num]; + ref QuestSequence reference166 = ref span56[5]; QuestSequence obj161 = new QuestSequence { Sequence = 5 @@ -327760,30 +270437,24 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1036647u, new Vector3(154.89429f, 1.9564945f, -166.67432f), 141); obj161.Steps = list220; reference166 = obj161; - num++; - ref QuestSequence reference167 = ref span211[num]; + ref QuestSequence reference167 = ref span56[6]; QuestSequence obj162 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj162.Steps = list221; reference167 = obj162; - num++; - ref QuestSequence reference168 = ref span211[num]; + ref QuestSequence reference168 = ref span56[7]; QuestSequence obj163 = new QuestSequence { Sequence = 7 @@ -327791,9 +270462,7 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -327805,25 +270474,20 @@ public static class AssemblyQuestLoader }; obj163.Steps = list222; reference168 = obj163; - num++; - ref QuestSequence reference169 = ref span211[num]; + ref QuestSequence reference169 = ref span56[8]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list223 = new List(index2); - CollectionsMarshal.SetCount(list223, index2); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref QuestStep reference170 = ref span223[num2]; + num2 = 1; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list223)[0]; 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); - Span span224 = CollectionsMarshal.AsSpan(list224); - num4 = 0; - span224[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list224)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBB231_04077_Q2_000_000"), @@ -327841,16 +270505,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "liza"; + CollectionsMarshal.AsSpan(list225)[0] = "liza"; questRoot25.Author = list225; - index = 3; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference171 = ref span226[num]; + num = 3; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span61 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference171 = ref span61[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -327858,9 +270519,8 @@ public static class AssemblyQuestLoader num2 = 2; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - ref QuestStep reference172 = ref span227[index2]; + Span span62 = CollectionsMarshal.AsSpan(list227); + ref QuestStep reference172 = ref span62[0]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1036632u, new Vector3(115.098755f, 8f, 15.396301f), 131) { TargetTerritoryId = (ushort)971, @@ -327873,12 +270533,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - num4 = 1; - List list228 = new List(num4); - CollectionsMarshal.SetCount(list228, num4); - Span span228 = CollectionsMarshal.AsSpan(list228); - num3 = 0; - span228[num3] = 971; + num3 = 1; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = 971; skipStepConditions6.InTerritory = list228; skipConditions8.StepIf = skipStepConditions6; SkipAetheryteCondition obj167 = new SkipAetheryteCondition @@ -327888,39 +270546,32 @@ public static class AssemblyQuestLoader num3 = 2; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - Span span229 = CollectionsMarshal.AsSpan(list229); - num4 = 0; - span229[num4] = 131; - num4++; - span229[num4] = 971; + Span span63 = CollectionsMarshal.AsSpan(list229); + span63[0] = 131; + span63[1] = 971; obj167.InTerritory = list229; skipConditions8.AetheryteShortcutIf = obj167; obj166.SkipConditions = skipConditions8; reference172 = obj166; - index2++; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); + span62[1] = new QuestStep(EInteractionType.AcceptQuest, 1036631u, new Vector3(2.7922974f, -2.7403547E-07f, -0.44250488f), 971); obj165.Steps = list227; reference171 = obj165; - num++; - ref QuestSequence reference173 = ref span226[num]; + ref QuestSequence reference173 = ref span61[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj168.Steps = list230; reference173 = obj168; - num++; - ref QuestSequence reference174 = ref span226[num]; + ref QuestSequence reference174 = ref span61[2]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue @@ -327928,9 +270579,7 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036630u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036630u, new Vector3(0.77819824f, 0.014807776f, -1.9684448f), 971); obj169.Steps = list231; reference174 = obj169; questRoot25.QuestSequence = list226; @@ -327940,30 +270589,24 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "liza"; + CollectionsMarshal.AsSpan(list232)[0] = "liza"; questRoot26.Author = list232; - index = 5; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference175 = ref span233[num]; + num = 5; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span64 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference175 = ref span64[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj170.Steps = list234; reference175 = obj170; - num++; - ref QuestSequence reference176 = ref span233[num]; + ref QuestSequence reference176 = ref span64[1]; QuestSequence obj171 = new QuestSequence { Sequence = 1 @@ -327971,9 +270614,7 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.Interact, 1036487u, new Vector3(-93.15637f, 0f, -129.56439f), 886) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.Interact, 1036487u, new Vector3(-93.15637f, 0f, -129.56439f), 886) { AethernetShortcut = new AethernetShortcut { @@ -327983,27 +270624,23 @@ public static class AssemblyQuestLoader }; obj171.Steps = list235; reference176 = obj171; - num++; - ref QuestSequence reference177 = ref span233[num]; + ref QuestSequence reference177 = ref span64[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj172.Steps = list236; reference177 = obj172; - num++; - ref QuestSequence reference178 = ref span233[num]; + ref QuestSequence reference178 = ref span64[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 @@ -328011,9 +270648,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 1036488u, new Vector3(140.91699f, -40f, 158.55652f), 886) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1036488u, new Vector3(140.91699f, -40f, 158.55652f), 886) { AethernetShortcut = new AethernetShortcut { @@ -328023,18 +270658,15 @@ public static class AssemblyQuestLoader }; obj173.Steps = list237; reference178 = obj173; - num++; - ref QuestSequence reference179 = ref span233[num]; + ref QuestSequence reference179 = ref span64[4]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -328051,16 +270683,13 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "Censored"; + CollectionsMarshal.AsSpan(list239)[0] = "Censored"; questRoot27.Author = list239; - index = 3; - List list240 = new List(index); - CollectionsMarshal.SetCount(list240, index); - Span span240 = CollectionsMarshal.AsSpan(list240); - num = 0; - ref QuestSequence reference180 = ref span240[num]; + num = 3; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span66 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference180 = ref span66[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -328068,9 +270697,8 @@ public static class AssemblyQuestLoader num2 = 2; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - ref QuestStep reference181 = ref span241[index2]; + Span span67 = CollectionsMarshal.AsSpan(list241); + ref QuestStep reference181 = ref span67[0]; QuestStep obj176 = new QuestStep(EInteractionType.None, null, null, 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -328082,18 +270710,15 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num4 = 1; - List list242 = new List(num4); - CollectionsMarshal.SetCount(list242, num4); - Span span242 = CollectionsMarshal.AsSpan(list242); - num3 = 0; - span242[num3] = 154; + num3 = 1; + List list242 = new List(num3); + CollectionsMarshal.SetCount(list242, num3); + CollectionsMarshal.AsSpan(list242)[0] = 154; skipStepConditions7.InTerritory = list242; skipConditions9.StepIf = skipStepConditions7; obj176.SkipConditions = skipConditions9; reference181 = obj176; - index2++; - span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) + span67[1] = new QuestStep(EInteractionType.AcceptQuest, 1036127u, new Vector3(-116.92993f, 0f, -137.31598f), 886) { AethernetShortcut = new AethernetShortcut { @@ -328103,22 +270728,18 @@ public static class AssemblyQuestLoader }; obj175.Steps = list241; reference180 = obj175; - num++; - ref QuestSequence reference182 = ref span240[num]; + ref QuestSequence reference182 = ref span66[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj177.Steps = list243; reference182 = obj177; - num++; - ref QuestSequence reference183 = ref span240[num]; + ref QuestSequence reference183 = ref span66[2]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue @@ -328126,9 +270747,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.CompleteQuest, 1036494u, new Vector3(-98.77167f, 0f, -131.51752f), 886); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1036494u, new Vector3(-98.77167f, 0f, -131.51752f), 886); obj178.Steps = list244; reference183 = obj178; questRoot27.QuestSequence = list240; @@ -328142,16 +270761,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "Censored"; + CollectionsMarshal.AsSpan(list)[0] = "Censored"; questRoot.Author = list; - index = 9; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 9; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -328159,9 +270775,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj2 = new QuestStep(EInteractionType.AcceptQuest, 1038397u, new Vector3(-178.97314f, 4.05f, -74.69299f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -328174,9 +270788,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA101_04102_Q1_000_000"), @@ -328186,25 +270798,21 @@ public static class AssemblyQuestLoader reference2 = obj2; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj3 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -328212,36 +270820,30 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331417f, 195.88f), 154) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1002780u, new Vector3(-89.79938f, -45.331417f, 195.88f), 154) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -328249,44 +270851,36 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1038408u, new Vector3(55.039307f, -39.472065f, 234.72949f), 154) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1038408u, new Vector3(55.039307f, -39.472065f, 234.72949f), 154) { Fly = true, Land = true }; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list9 = new List(index2); - CollectionsMarshal.SetCount(list9, index2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num2 = 0; - ref QuestStep reference8 = ref span9[num2]; + num2 = 1; + List list9 = new List(num2); + CollectionsMarshal.SetCount(list9, num2); + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list9)[0]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, null, new Vector3(201.86879f, -27.880434f, 171.45041f), 154) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list10 = new List(index3); - CollectionsMarshal.SetCount(list10, index3); - Span span10 = CollectionsMarshal.AsSpan(list10); - num3 = 0; - span10[num3] = 14016u; + num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = 14016u; obj8.KillEnemyDataIds = list10; reference8 = obj8; obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[6]; QuestSequence obj9 = new QuestSequence { Sequence = 6 @@ -328294,31 +270888,25 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 1038410u, new Vector3(201.49536f, -27.91251f, 171.61816f), 154); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1038410u, new Vector3(201.49536f, -27.91251f, 171.61816f), 154); obj9.Steps = list11; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[7]; QuestSequence obj10 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, Land = true }; obj10.Steps = list12; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[8]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -328326,9 +270914,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4103) @@ -328342,26 +270928,21 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "Censored"; + CollectionsMarshal.AsSpan(list14)[0] = "Censored"; questRoot2.Author = list14; - index = 9; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference12 = ref span15[num]; + num = 9; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + Span span3 = CollectionsMarshal.AsSpan(list15); + ref QuestSequence reference12 = ref span3[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -328374,8 +270955,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list16; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span15[num]; + ref QuestSequence reference13 = ref span3[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -328383,31 +270963,25 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1038412u, new Vector3(-150.98804f, 1.7044317f, 220.99634f), 153) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1038412u, new Vector3(-150.98804f, 1.7044317f, 220.99634f), 153) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj13.Steps = list17; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span15[num]; + ref QuestSequence reference14 = ref span3[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj14.Steps = list18; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span15[num]; + ref QuestSequence reference15 = ref span3[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -328415,69 +270989,50 @@ public static class AssemblyQuestLoader num2 = 3; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference16 = ref span19[index2]; + Span span4 = CollectionsMarshal.AsSpan(list19); + ref QuestStep reference16 = ref span4[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list20; reference16 = questStep; - index2++; - ref QuestStep reference17 = ref span19[index2]; + ref QuestStep reference17 = ref span4[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1038417u, new Vector3(-200.70197f, 20.729956f, 361.07422f), 153); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list21; reference17 = questStep2; - index2++; - span19[index2] = new QuestStep(EInteractionType.Interact, 1038416u, new Vector3(-238.30017f, 21.68142f, 356.83215f), 153); + span4[2] = new QuestStep(EInteractionType.Interact, 1038416u, new Vector3(-238.30017f, 21.68142f, 356.83215f), 153); obj15.Steps = list19; reference15 = obj15; - num++; - ref QuestSequence reference18 = ref span15[num]; + ref QuestSequence reference18 = ref span3[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj16.Steps = list22; reference18 = obj16; - num++; - ref QuestSequence reference19 = ref span15[num]; + ref QuestSequence reference19 = ref span3[5]; QuestSequence obj17 = new QuestSequence { Sequence = 5 @@ -328485,26 +271040,21 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1038419u, new Vector3(-267.56696f, 1.8750894f, 675.6847f), 153) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1038419u, new Vector3(-267.56696f, 1.8750894f, 675.6847f), 153) { Fly = true }; obj17.Steps = list23; reference19 = obj17; - num++; - ref QuestSequence reference20 = ref span15[num]; + ref QuestSequence reference20 = ref span3[6]; QuestSequence obj18 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference21 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, null, new Vector3(-264.79346f, 2.2244208f, 673.19916f), 153) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -328512,15 +271062,12 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - index3 = 0; - span25[index3] = 14015u; + CollectionsMarshal.AsSpan(list25)[0] = 14015u; obj19.KillEnemyDataIds = list25; reference21 = obj19; obj18.Steps = list24; reference20 = obj18; - num++; - ref QuestSequence reference22 = ref span15[num]; + ref QuestSequence reference22 = ref span3[7]; QuestSequence obj20 = new QuestSequence { Sequence = 7 @@ -328528,23 +271075,18 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1038432u, new Vector3(-273.7011f, 1.919117f, 669.7031f), 153); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1038432u, new Vector3(-273.7011f, 1.919117f, 669.7031f), 153); obj20.Steps = list26; reference22 = obj20; - num++; - ref QuestSequence reference23 = ref span15[num]; + ref QuestSequence reference23 = ref span3[8]; QuestSequence obj21 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4104) @@ -328558,16 +271100,13 @@ public static class AssemblyQuestLoader num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span28 = CollectionsMarshal.AsSpan(list28); - index = 0; - span28[index] = "Censored"; + CollectionsMarshal.AsSpan(list28)[0] = "Censored"; questRoot3.Author = list28; - index = 6; - List list29 = new List(index); - CollectionsMarshal.SetCount(list29, index); - Span span29 = CollectionsMarshal.AsSpan(list29); - num = 0; - ref QuestSequence reference24 = ref span29[num]; + num = 6; + List list29 = new List(num); + CollectionsMarshal.SetCount(list29, num); + Span span7 = CollectionsMarshal.AsSpan(list29); + ref QuestSequence reference24 = ref span7[0]; QuestSequence obj22 = new QuestSequence { Sequence = 0 @@ -328575,9 +271114,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref QuestStep reference25 = ref span30[index2]; + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj23 = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -328589,12 +271126,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list31 = new List(index3); - CollectionsMarshal.SetCount(list31, index3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num3 = 0; - span31[num3] = new DialogueChoice + num3 = 1; + List list31 = new List(num3); + CollectionsMarshal.SetCount(list31, num3); + CollectionsMarshal.AsSpan(list31)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA121_04104_Q0_000_000"), @@ -328604,18 +271139,15 @@ public static class AssemblyQuestLoader reference25 = obj23; obj22.Steps = list30; reference24 = obj22; - num++; - ref QuestSequence reference26 = ref span29[num]; + ref QuestSequence reference26 = ref span7[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list32 = new List(index2); - CollectionsMarshal.SetCount(list32, index2); - Span span32 = CollectionsMarshal.AsSpan(list32); - num2 = 0; - ref QuestStep reference27 = ref span32[num2]; + num2 = 1; + List list32 = new List(num2); + CollectionsMarshal.SetCount(list32, num2); + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list32)[0]; QuestStep obj25 = new QuestStep(EInteractionType.Combat, 2011735u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148) { Fly = true, @@ -328625,15 +271157,12 @@ public static class AssemblyQuestLoader num3 = 1; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - Span span33 = CollectionsMarshal.AsSpan(list33); - index3 = 0; - span33[index3] = 14013u; + CollectionsMarshal.AsSpan(list33)[0] = 14013u; obj25.KillEnemyDataIds = list33; reference27 = obj25; obj24.Steps = list32; reference26 = obj24; - num++; - ref QuestSequence reference28 = ref span29[num]; + ref QuestSequence reference28 = ref span7[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 @@ -328641,94 +271170,71 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 2011730u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148); + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 2011730u, new Vector3(-314.4427f, 61.05127f, -141.10028f), 148); obj26.Steps = list34; reference28 = obj26; - num++; - ref QuestSequence reference29 = ref span29[num]; + ref QuestSequence reference29 = ref span7[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref QuestStep reference30 = ref span35[num2]; + num2 = 3; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span8 = CollectionsMarshal.AsSpan(list35); + ref QuestStep reference30 = ref span8[0]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, 2011733u, new Vector3(-408.9876f, 61.631104f, -125.90222f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list36 = new List(index3); - CollectionsMarshal.SetCount(list36, index3); - Span span36 = CollectionsMarshal.AsSpan(list36); - num3 = 0; - span36[num3] = 14014u; + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = 14014u; obj28.KillEnemyDataIds = list36; num3 = 6; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - 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); + 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); obj28.CompletionQuestVariablesFlags = list37; reference30 = obj28; - num2++; - ref QuestStep reference31 = ref span35[num2]; + ref QuestStep reference31 = ref span8[1]; QuestStep obj29 = new QuestStep(EInteractionType.Combat, 2011732u, new Vector3(-343.2517f, 60.105225f, -72.46515f), 148) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = 14014u; + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = 14014u; obj29.KillEnemyDataIds = list38; num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - 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); + 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); obj29.CompletionQuestVariablesFlags = list39; reference31 = obj29; - num2++; - span35[num2] = new QuestStep(EInteractionType.Interact, 2011731u, new Vector3(-231.46417f, 56.71765f, -93.614136f), 148) + span8[2] = new QuestStep(EInteractionType.Interact, 2011731u, new Vector3(-231.46417f, 56.71765f, -93.614136f), 148) { Fly = true }; obj27.Steps = list35; reference29 = obj27; - num++; - ref QuestSequence reference32 = ref span29[num]; + ref QuestSequence reference32 = ref span7[4]; QuestSequence obj30 = new QuestSequence { Sequence = 4 @@ -328736,26 +271242,21 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.Interact, 2011747u, new Vector3(-310.71948f, 21.194763f, 173.66284f), 148) + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.Interact, 2011747u, new Vector3(-310.71948f, 21.194763f, 173.66284f), 148) { Fly = true }; obj30.Steps = list40; reference32 = obj30; - num++; - ref QuestSequence reference33 = ref span29[num]; + ref QuestSequence reference33 = ref span7[5]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4105) }; @@ -328768,16 +271269,13 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "Censored"; + CollectionsMarshal.AsSpan(list42)[0] = "Censored"; questRoot4.Author = list42; - index = 7; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference34 = ref span43[num]; + num = 7; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span11 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference34 = ref span11[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -328785,9 +271283,7 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -328800,40 +271296,34 @@ public static class AssemblyQuestLoader }; obj32.Steps = list44; reference34 = obj32; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span11[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref QuestStep reference36 = ref span45[num2]; + num2 = 2; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + Span span12 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference36 = ref span12[0]; 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(); - index3 = 1; - List list46 = new List(index3); - CollectionsMarshal.SetCount(list46, index3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num3 = 0; - span46[num3] = 133; + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = 133; skipStepConditions.InTerritory = list46; skipConditions.StepIf = skipStepConditions; obj34.SkipConditions = skipConditions; reference36 = obj34; - num2++; - span45[num2] = new QuestStep(EInteractionType.Interact, 1038436u, new Vector3(-236.68274f, -4f, 1.6326294f), 133); + span12[1] = new QuestStep(EInteractionType.Interact, 1038436u, new Vector3(-236.68274f, -4f, 1.6326294f), 133); obj33.Steps = list45; reference35 = obj33; - num++; - ref QuestSequence reference37 = ref span43[num]; + ref QuestSequence reference37 = ref span11[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -328841,34 +271331,28 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1038437u, new Vector3(-305.5924f, 13.1841545f, -49.94281f), 152) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1038437u, new Vector3(-305.5924f, 13.1841545f, -49.94281f), 152) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj35.Steps = list47; reference37 = obj35; - num++; - ref QuestSequence reference38 = ref span43[num]; + ref QuestSequence reference38 = ref span11[3]; QuestSequence obj36 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj36.Steps = list48; reference38 = obj36; - num++; - ref QuestSequence reference39 = ref span43[num]; + ref QuestSequence reference39 = ref span11[4]; QuestSequence obj37 = new QuestSequence { Sequence = 4 @@ -328876,9 +271360,7 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - ref QuestStep reference40 = ref span49[index2]; + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list49)[0]; QuestStep obj38 = new QuestStep(EInteractionType.Combat, 2011736u, new Vector3(-116.92993f, -3.3417358f, 190.14258f), 152) { Fly = true, @@ -328887,29 +271369,23 @@ public static class AssemblyQuestLoader num3 = 1; List list50 = new List(num3); CollectionsMarshal.SetCount(list50, num3); - Span span50 = CollectionsMarshal.AsSpan(list50); - index3 = 0; - span50[index3] = 14012u; + CollectionsMarshal.AsSpan(list50)[0] = 14012u; obj38.KillEnemyDataIds = list50; reference40 = obj38; obj37.Steps = list49; reference39 = obj37; - num++; - ref QuestSequence reference41 = ref span43[num]; + ref QuestSequence reference41 = ref span11[5]; QuestSequence obj39 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj39.Steps = list51; reference41 = obj39; - num++; - ref QuestSequence reference42 = ref span43[num]; + ref QuestSequence reference42 = ref span11[6]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -328917,9 +271393,7 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, NextQuestId = new QuestId(4106) @@ -328933,26 +271407,21 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "Censored"; + CollectionsMarshal.AsSpan(list53)[0] = "Censored"; questRoot5.Author = list53; - index = 8; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference43 = ref span54[num]; + num = 8; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span13 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference43 = ref span13[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -328965,8 +271434,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list55; reference43 = obj41; - num++; - ref QuestSequence reference44 = ref span54[num]; + ref QuestSequence reference44 = ref span13[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -328974,41 +271442,33 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref QuestStep reference45 = ref span56[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, 2011737u, new Vector3(335.8053f, -0.5340576f, -179.85815f), 148) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list57 = new List(index3); - CollectionsMarshal.SetCount(list57, index3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = 14011u; + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = 14011u; obj43.KillEnemyDataIds = list57; reference45 = obj43; obj42.Steps = list56; reference44 = obj42; - num++; - ref QuestSequence reference46 = ref span54[num]; + ref QuestSequence reference46 = ref span13[2]; QuestSequence obj44 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj44.Steps = list58; reference46 = obj44; - num++; - ref QuestSequence reference47 = ref span54[num]; + ref QuestSequence reference47 = ref span13[3]; QuestSequence obj45 = new QuestSequence { Sequence = 3 @@ -329016,9 +271476,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - ref QuestStep reference48 = ref span59[index2]; + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list59)[0]; QuestStep obj46 = new QuestStep(EInteractionType.Combat, 2011738u, new Vector3(256.8551f, 15.823547f, -109.51398f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, @@ -329027,29 +271485,23 @@ public static class AssemblyQuestLoader num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span60 = CollectionsMarshal.AsSpan(list60); - index3 = 0; - span60[index3] = 14010u; + CollectionsMarshal.AsSpan(list60)[0] = 14010u; obj46.KillEnemyDataIds = list60; reference48 = obj46; obj45.Steps = list59; reference47 = obj45; - num++; - ref QuestSequence reference49 = ref span54[num]; + ref QuestSequence reference49 = ref span13[4]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj47.Steps = list61; reference49 = obj47; - num++; - ref QuestSequence reference50 = ref span54[num]; + ref QuestSequence reference50 = ref span13[5]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -329057,9 +271509,7 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1038446u, new Vector3(325.73438f, -5.688218f, -97.76465f), 154) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1038446u, new Vector3(325.73438f, -5.688218f, -97.76465f), 154) { Fly = true, Land = true, @@ -329067,26 +271517,22 @@ public static class AssemblyQuestLoader }; obj48.Steps = list62; reference50 = obj48; - num++; - ref QuestSequence reference51 = ref span54[num]; + ref QuestSequence reference51 = ref span13[6]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj49.Steps = list63; reference51 = obj49; - num++; - ref QuestSequence reference52 = ref span54[num]; + ref QuestSequence reference52 = ref span13[7]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -329094,9 +271540,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038411u, new Vector3(-69.41333f, -0.5033642f, 5.0201416f), 132) { NextQuestId = new QuestId(4107) }; @@ -329109,26 +271553,21 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "Censored"; + CollectionsMarshal.AsSpan(list65)[0] = "Censored"; questRoot6.Author = list65; - index = 8; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference53 = ref span66[num]; + num = 8; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span14 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference53 = ref span14[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, SkipConditions = new SkipConditions @@ -329141,8 +271580,7 @@ public static class AssemblyQuestLoader }; obj51.Steps = list67; reference53 = obj51; - num++; - ref QuestSequence reference54 = ref span66[num]; + ref QuestSequence reference54 = ref span14[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -329150,41 +271588,34 @@ public static class AssemblyQuestLoader num2 = 2; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - ref QuestStep reference55 = ref span68[index2]; + Span span15 = CollectionsMarshal.AsSpan(list68); + ref QuestStep reference55 = ref span15[0]; 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(); - index3 = 1; - List list69 = new List(index3); - CollectionsMarshal.SetCount(list69, index3); - Span span69 = CollectionsMarshal.AsSpan(list69); - num3 = 0; - span69[num3] = 133; + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = 133; skipStepConditions2.InTerritory = list69; skipConditions2.StepIf = skipStepConditions2; obj53.SkipConditions = skipConditions2; reference55 = obj53; - index2++; - span68[index2] = new QuestStep(EInteractionType.Interact, 1038452u, new Vector3(16.250854f, 6.9444046f, -109.544556f), 133); + span15[1] = new QuestStep(EInteractionType.Interact, 1038452u, new Vector3(16.250854f, 6.9444046f, -109.544556f), 133); obj52.Steps = list68; reference54 = obj52; - num++; - ref QuestSequence reference56 = ref span66[num]; + ref QuestSequence reference56 = ref span14[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref QuestStep reference57 = ref span70[num2]; + num2 = 1; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list70)[0]; QuestStep obj55 = new QuestStep(EInteractionType.SinglePlayerDuty, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148) { Fly = true, @@ -329194,19 +271625,13 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - 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."; + 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."; singlePlayerDutyOptions.Notes = list71; obj55.SinglePlayerDutyOptions = singlePlayerDutyOptions; obj55.SkipConditions = new SkipConditions @@ -329219,13 +271644,11 @@ public static class AssemblyQuestLoader reference57 = obj55; obj54.Steps = list70; reference56 = obj54; - num++; - span66[num] = new QuestSequence + span14[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference58 = ref span66[num]; + ref QuestSequence reference58 = ref span14[4]; QuestSequence obj56 = new QuestSequence { Sequence = 4 @@ -329233,23 +271656,18 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Interact, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148); + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Interact, 1038454u, new Vector3(-311.39087f, 20.991789f, 175.12769f), 148); obj56.Steps = list72; reference58 = obj56; - num++; - ref QuestSequence reference59 = ref span66[num]; + ref QuestSequence reference59 = ref span14[5]; QuestSequence obj57 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list73 = new List(index2); - CollectionsMarshal.SetCount(list73, index2); - Span span73 = CollectionsMarshal.AsSpan(list73); - num2 = 0; - ref QuestStep reference60 = ref span73[num2]; + num2 = 1; + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list73)[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1000460u, new Vector3(-159.41101f, 4.054107f, -4.1047363f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -329259,12 +271677,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - index3 = 1; - List list74 = new List(index3); - CollectionsMarshal.SetCount(list74, index3); - Span span74 = CollectionsMarshal.AsSpan(list74); - num3 = 0; - span74[num3] = new DialogueChoice + num3 = 1; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA151_04107_SYSTEM_000_091") @@ -329273,8 +271689,7 @@ public static class AssemblyQuestLoader reference60 = obj58; obj57.Steps = list73; reference59 = obj57; - num++; - ref QuestSequence reference61 = ref span66[num]; + ref QuestSequence reference61 = ref span14[6]; QuestSequence obj59 = new QuestSequence { Sequence = 6 @@ -329282,23 +271697,18 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1038456u, new Vector3(-161.48627f, 3.9593172f, -8.011047f), 133); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1038456u, new Vector3(-161.48627f, 3.9593172f, -8.011047f), 133); obj59.Steps = list75; reference61 = obj59; - num++; - ref QuestSequence reference62 = ref span66[num]; + ref QuestSequence reference62 = ref span14[7]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -329316,16 +271726,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot7.Author = list77; - index = 6; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference63 = ref span78[num]; + num = 6; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span17 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference63 = ref span17[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -329333,9 +271740,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - ref QuestStep reference64 = ref span79[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj62 = new QuestStep(EInteractionType.AcceptQuest, 1039411u, new Vector3(-182.20801f, 4.06f, -80.73547f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -329355,9 +271760,7 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - index3 = 0; - span80[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA201_04108_Q1_000_000"), @@ -329367,26 +271770,22 @@ public static class AssemblyQuestLoader reference64 = obj62; obj61.Steps = list79; reference63 = obj61; - num++; - ref QuestSequence reference65 = ref span78[num]; + ref QuestSequence reference65 = ref span17[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj63.Steps = list81; reference65 = obj63; - num++; - ref QuestSequence reference66 = ref span78[num]; + ref QuestSequence reference66 = ref span17[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -329394,51 +271793,40 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1039403u, new Vector3(-2.0599976f, 115.8696f, -576.9589f), 620) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1039403u, new Vector3(-2.0599976f, 115.8696f, -576.9589f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj64.Steps = list82; reference66 = obj64; - num++; - ref QuestSequence reference67 = ref span78[num]; + ref QuestSequence reference67 = ref span17[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list83 = new List(index2); - CollectionsMarshal.SetCount(list83, index2); - Span span83 = CollectionsMarshal.AsSpan(list83); - num2 = 0; - ref QuestStep reference68 = ref span83[num2]; + num2 = 2; + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + Span span18 = CollectionsMarshal.AsSpan(list83); + ref QuestStep reference68 = ref span18[0]; QuestStep obj66 = new QuestStep(EInteractionType.Interact, 1039404u, new Vector3(2.2735596f, 116.12106f, -577.9355f), 620) { StopDistance = 7f }; - 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); + 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); obj66.CompletionQuestVariablesFlags = list84; reference68 = obj66; - num2++; - ref QuestStep reference69 = ref span83[num2]; + ref QuestStep reference69 = ref span18[1]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1039405u, new Vector3(2.1209717f, 116.152916f, -574.4259f), 620) { StopDistance = 7f @@ -329446,25 +271834,18 @@ public static class AssemblyQuestLoader num3 = 6; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - 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); + 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); obj67.CompletionQuestVariablesFlags = list85; reference69 = obj67; obj65.Steps = list83; reference67 = obj65; - num++; - ref QuestSequence reference70 = ref span78[num]; + ref QuestSequence reference70 = ref span17[4]; QuestSequence obj68 = new QuestSequence { Sequence = 4 @@ -329472,26 +271853,21 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1039408u, new Vector3(144.12134f, 118.19209f, -728.6946f), 620) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1039408u, new Vector3(144.12134f, 118.19209f, -728.6946f), 620) { Fly = true }; obj68.Steps = list86; reference70 = obj68; - num++; - ref QuestSequence reference71 = ref span78[num]; + ref QuestSequence reference71 = ref span17[5]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -329506,16 +271882,13 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "liza"; + CollectionsMarshal.AsSpan(list88)[0] = "liza"; questRoot8.Author = list88; - index = 10; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference72 = ref span89[num]; + num = 10; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span21 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference72 = ref span21[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -329523,9 +271896,7 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -329540,25 +271911,21 @@ public static class AssemblyQuestLoader }; obj70.Steps = list90; reference72 = obj70; - num++; - ref QuestSequence reference73 = ref span89[num]; + ref QuestSequence reference73 = ref span21[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj71.Steps = list91; reference73 = obj71; - num++; - ref QuestSequence reference74 = ref span89[num]; + ref QuestSequence reference74 = ref span21[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -329566,43 +271933,34 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - ref QuestStep reference75 = ref span92[index2]; + ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list92)[0]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011775u, new Vector3(577.66077f, 221.4541f, -629.3279f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list93 = new List(index3); - CollectionsMarshal.SetCount(list93, index3); - Span span93 = CollectionsMarshal.AsSpan(list93); - num3 = 0; - span93[num3] = 14009u; + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = 14009u; obj73.KillEnemyDataIds = list93; reference75 = obj73; obj72.Steps = list92; reference74 = obj72; - num++; - ref QuestSequence reference76 = ref span89[num]; + ref QuestSequence reference76 = ref span21[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list94 = new List(index2); - CollectionsMarshal.SetCount(list94, index2); - Span span94 = CollectionsMarshal.AsSpan(list94); - num2 = 0; - ref QuestStep reference77 = ref span94[num2]; + num2 = 1; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + ref QuestStep reference77 = ref CollectionsMarshal.AsSpan(list94)[0]; 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); - Span span95 = CollectionsMarshal.AsSpan(list95); - index3 = 0; - span95[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA211_04109_SYSTEM_000_051") @@ -329611,8 +271969,7 @@ public static class AssemblyQuestLoader reference77 = questStep3; obj74.Steps = list94; reference76 = obj74; - num++; - ref QuestSequence reference78 = ref span89[num]; + ref QuestSequence reference78 = ref span21[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 @@ -329620,40 +271977,32 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - ref QuestStep reference79 = ref span96[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj76 = new QuestStep(EInteractionType.Combat, 2011777u, new Vector3(161.4862f, 118.364136f, -471.70215f), 620) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list97 = new List(index3); - CollectionsMarshal.SetCount(list97, index3); - Span span97 = CollectionsMarshal.AsSpan(list97); - num3 = 0; - span97[num3] = 14009u; + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + CollectionsMarshal.AsSpan(list97)[0] = 14009u; obj76.KillEnemyDataIds = list97; reference79 = obj76; obj75.Steps = list96; reference78 = obj75; - num++; - ref QuestSequence reference80 = ref span89[num]; + ref QuestSequence reference80 = ref span21[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj77.Steps = list98; reference80 = obj77; - num++; - ref QuestSequence reference81 = ref span89[num]; + ref QuestSequence reference81 = ref span21[6]; QuestSequence obj78 = new QuestSequence { Sequence = 6 @@ -329661,31 +272010,26 @@ public static class AssemblyQuestLoader num2 = 2; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.49226f, 118.1921f, -731.30457f), 620) + Span span22 = CollectionsMarshal.AsSpan(list99); + span22[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(143.49226f, 118.1921f, -731.30457f), 620) { Fly = true }; - index2++; - span99[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) + span22[1] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620) { StopDistance = 5f }; obj78.Steps = list99; reference81 = obj78; - num++; - ref QuestSequence reference82 = ref span89[num]; + ref QuestSequence reference82 = ref span21[7]; QuestSequence obj79 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference83 = ref span100[num2]; + num2 = 1; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list100)[0]; QuestStep obj80 = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620) { Fly = true @@ -329693,9 +272037,7 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - index3 = 0; - span101[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list101)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA211_04109_Q2_000_000"), @@ -329705,8 +272047,7 @@ public static class AssemblyQuestLoader reference83 = obj80; obj79.Steps = list100; reference82 = obj79; - num++; - ref QuestSequence reference84 = ref span89[num]; + ref QuestSequence reference84 = ref span21[8]; QuestSequence obj81 = new QuestSequence { Sequence = 8 @@ -329714,23 +272055,18 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620); + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.Interact, 1039414u, new Vector3(5.4779663f, 113.40467f, -755.581f), 620); obj81.Steps = list102; reference84 = obj81; - num++; - ref QuestSequence reference85 = ref span89[num]; + ref QuestSequence reference85 = ref span21[9]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -329745,16 +272081,13 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "liza"; + CollectionsMarshal.AsSpan(list104)[0] = "liza"; questRoot9.Author = list104; - index = 8; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference86 = ref span105[num]; + num = 8; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span23 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference86 = ref span23[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -329762,9 +272095,7 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -329779,18 +272110,15 @@ public static class AssemblyQuestLoader }; obj83.Steps = list106; reference86 = obj83; - num++; - ref QuestSequence reference87 = ref span105[num]; + ref QuestSequence reference87 = ref span23[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -329801,8 +272129,7 @@ public static class AssemblyQuestLoader }; obj84.Steps = list107; reference87 = obj84; - num++; - ref QuestSequence reference88 = ref span105[num]; + ref QuestSequence reference88 = ref span23[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -329810,9 +272137,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1039418u, new Vector3(144.94531f, 3.9999998f, 16.464417f), 131) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1039418u, new Vector3(144.94531f, 3.9999998f, 16.464417f), 131) { AethernetShortcut = new AethernetShortcut { @@ -329822,69 +272147,58 @@ public static class AssemblyQuestLoader }; obj85.Steps = list108; reference88 = obj85; - num++; - ref QuestSequence reference89 = ref span105[num]; + ref QuestSequence reference89 = ref span23[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Sprint = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.70839f, 4f, -11.791445f), 131) + span24[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(147.70839f, 4f, -11.791445f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(134.52821f, 4f, -65.066986f), 131) + span24[2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(134.52821f, 4f, -65.066986f), 131) { Sprint = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(129.31218f, 4f, -66.995674f), 131) + span24[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(129.31218f, 4f, -66.995674f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(117.33298f, 4f, -72.35007f), 131) + span24[4] = new QuestStep(EInteractionType.WalkTo, 1039418u, new Vector3(117.33298f, 4f, -72.35007f), 131) { Sprint = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(116.47475f, 4f, -76.0361f), 131) + span24[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039418u, new Vector3(116.47475f, 4f, -76.0361f), 131) { StopDistance = 10f, NpcWaitDistance = 2f, Sprint = false }; - num2++; - span109[num2] = new QuestStep(EInteractionType.WalkTo, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131) + span24[6] = new QuestStep(EInteractionType.WalkTo, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131) { Sprint = false }; - num2++; - ref QuestStep reference90 = ref span109[num2]; + ref QuestStep reference90 = ref span24[7]; QuestStep obj87 = new QuestStep(EInteractionType.None, null, null, 131) { DelaySecondsAtStart = 120f }; - index3 = 1; - List list110 = new List(index3); - CollectionsMarshal.SetCount(list110, index3); - Span span110 = CollectionsMarshal.AsSpan(list110); - num3 = 0; - span110[num3] = new DialogueChoice + num3 = 1; + List list110 = new List(num3); + CollectionsMarshal.SetCount(list110, num3); + CollectionsMarshal.AsSpan(list110)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA221_04110_Q2_000_000"), @@ -329894,8 +272208,7 @@ public static class AssemblyQuestLoader reference90 = obj87; obj86.Steps = list109; reference89 = obj86; - num++; - ref QuestSequence reference91 = ref span105[num]; + ref QuestSequence reference91 = ref span23[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -329903,23 +272216,18 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131); + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Interact, 1039419u, new Vector3(102.311646f, 4f, -102.64752f), 131); obj88.Steps = list111; reference91 = obj88; - num++; - ref QuestSequence reference92 = ref span105[num]; + ref QuestSequence reference92 = ref span23[5]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 0.5f, AethernetShortcut = new AethernetShortcut @@ -329930,8 +272238,7 @@ public static class AssemblyQuestLoader }; obj89.Steps = list112; reference92 = obj89; - num++; - ref QuestSequence reference93 = ref span105[num]; + ref QuestSequence reference93 = ref span23[6]; QuestSequence obj90 = new QuestSequence { Sequence = 6 @@ -329939,9 +272246,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1039415u, new Vector3(6.9122925f, 29.999926f, 25.558838f), 131) { AethernetShortcut = new AethernetShortcut { @@ -329951,18 +272256,15 @@ public static class AssemblyQuestLoader }; obj90.Steps = list113; reference93 = obj90; - num++; - ref QuestSequence reference94 = ref span105[num]; + ref QuestSequence reference94 = ref span23[7]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -329977,16 +272279,13 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; questRoot10.Author = list115; - index = 6; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference95 = ref span116[num]; + num = 6; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span25 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference95 = ref span25[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -329994,9 +272293,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -330011,27 +272308,23 @@ public static class AssemblyQuestLoader }; obj92.Steps = list117; reference95 = obj92; - num++; - ref QuestSequence reference96 = ref span116[num]; + ref QuestSequence reference96 = ref span25[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span118[num2] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621); + span26[1] = new QuestStep(EInteractionType.Interact, 1039421u, new Vector3(611.0779f, 80.000015f, 624.6891f), 621); obj93.Steps = list118; reference96 = obj93; - num++; - ref QuestSequence reference97 = ref span116[num]; + ref QuestSequence reference97 = ref span25[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -330039,9 +272332,8 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - ref QuestStep reference98 = ref span119[index2]; + Span span27 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference98 = ref span27[0]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1021565u, new Vector3(440.11584f, 114.254425f, 212.84802f), 612) { AetheryteShortcut = EAetheryteLocation.FringesPeeringStones @@ -330049,66 +272341,49 @@ public static class AssemblyQuestLoader 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, 0, EQuestWorkMode.Bitwise); + 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); obj95.CompletionQuestVariablesFlags = list120; reference98 = obj95; - index2++; - ref QuestStep reference99 = ref span119[index2]; + ref QuestStep reference99 = ref span27[1]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1020817u, new Vector3(327.5348f, 83.45977f, -103.07471f), 612) { Fly = true }; - 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); + 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); obj96.CompletionQuestVariablesFlags = list121; reference99 = obj96; obj94.Steps = list119; reference97 = obj94; - num++; - ref QuestSequence reference100 = ref span116[num]; + ref QuestSequence reference100 = ref span25[3]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj97.Steps = list122; reference100 = obj97; - num++; - ref QuestSequence reference101 = ref span116[num]; + ref QuestSequence reference101 = ref span25[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -330116,9 +272391,7 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - ref QuestStep reference102 = ref span123[index2]; + ref QuestStep reference102 = ref CollectionsMarshal.AsSpan(list123)[0]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1039422u, new Vector3(748.989f, 69.99995f, 516.0448f), 621) { Fly = true @@ -330126,9 +272399,7 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span124 = CollectionsMarshal.AsSpan(list124); - index3 = 0; - span124[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA231_04111_SYSTEM_000_060") @@ -330137,18 +272408,15 @@ public static class AssemblyQuestLoader reference102 = obj99; obj98.Steps = list123; reference101 = obj98; - num++; - ref QuestSequence reference103 = ref span116[num]; + ref QuestSequence reference103 = ref span25[5]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(4112) @@ -330162,16 +272430,13 @@ public static class AssemblyQuestLoader num = 1; List list126 = new List(num); CollectionsMarshal.SetCount(list126, num); - Span span126 = CollectionsMarshal.AsSpan(list126); - index = 0; - span126[index] = "liza"; + CollectionsMarshal.AsSpan(list126)[0] = "liza"; questRoot11.Author = list126; - index = 6; - List list127 = new List(index); - CollectionsMarshal.SetCount(list127, index); - Span span127 = CollectionsMarshal.AsSpan(list127); - num = 0; - ref QuestSequence reference104 = ref span127[num]; + num = 6; + List list127 = new List(num); + CollectionsMarshal.SetCount(list127, num); + Span span30 = CollectionsMarshal.AsSpan(list127); + ref QuestSequence reference104 = ref span30[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -330179,9 +272444,7 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -330196,26 +272459,22 @@ public static class AssemblyQuestLoader }; obj101.Steps = list128; reference104 = obj101; - num++; - ref QuestSequence reference105 = ref span127[num]; + ref QuestSequence reference105 = ref span30[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj102.Steps = list129; reference105 = obj102; - num++; - ref QuestSequence reference106 = ref span127[num]; + ref QuestSequence reference106 = ref span30[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -330223,35 +272482,29 @@ public static class AssemblyQuestLoader num2 = 2; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.92796f, 118.19209f, -732.00134f), 620) + Span span31 = CollectionsMarshal.AsSpan(list130); + span31[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.92796f, 118.19209f, -732.00134f), 620) { Fly = true }; - index2++; - span130[index2] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620); + span31[1] = new QuestStep(EInteractionType.Interact, 1020841u, new Vector3(146.01355f, 118.1921f, -730.4951f), 620); obj103.Steps = list130; reference106 = obj103; - num++; - ref QuestSequence reference107 = ref span127[num]; + ref QuestSequence reference107 = ref span30[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj104.Steps = list131; reference107 = obj104; - num++; - ref QuestSequence reference108 = ref span127[num]; + ref QuestSequence reference108 = ref span30[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -330259,26 +272512,21 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span132[index2] = new QuestStep(EInteractionType.Interact, 1039427u, new Vector3(142.22925f, 118.1921f, -730.0679f), 620) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1039427u, new Vector3(142.22925f, 118.1921f, -730.0679f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj105.Steps = list132; reference108 = obj105; - num++; - ref QuestSequence reference109 = ref span127[num]; + ref QuestSequence reference109 = ref span30[5]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -330292,16 +272540,13 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "liza"; + CollectionsMarshal.AsSpan(list134)[0] = "liza"; questRoot12.Author = list134; - index = 5; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference110 = ref span135[num]; + num = 5; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span32 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference110 = ref span32[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -330309,9 +272554,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039402u, new Vector3(741.0239f, 70f, 510.61267f), 621) { StopDistance = 6f, Fly = true, @@ -330326,43 +272569,36 @@ public static class AssemblyQuestLoader }; obj107.Steps = list136; reference110 = obj107; - num++; - ref QuestSequence reference111 = ref span135[num]; + ref QuestSequence reference111 = ref span32[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list137 = new List(index2); - CollectionsMarshal.SetCount(list137, index2); - Span span137 = CollectionsMarshal.AsSpan(list137); - num2 = 0; - ref QuestStep reference112 = ref span137[num2]; + num2 = 1; + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list137)[0]; QuestStep obj109 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039431u, new Vector3(735.25586f, 70f, 437.33875f), 621) { StopDistance = 7f }; SinglePlayerDutyOptions singlePlayerDutyOptions2 = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions2.Notes = list138; obj109.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference112 = obj109; obj108.Steps = list137; reference111 = obj108; - num++; - span135[num] = new QuestSequence + span32[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference113 = ref span135[num]; + ref QuestSequence reference113 = ref span32[3]; QuestSequence obj110 = new QuestSequence { Sequence = 3 @@ -330370,23 +272606,18 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1039432u, new Vector3(606.1035f, 80.000015f, 623.77356f), 621); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1039432u, new Vector3(606.1035f, 80.000015f, 623.77356f), 621); obj110.Steps = list139; reference113 = obj110; - num++; - ref QuestSequence reference114 = ref span135[num]; + ref QuestSequence reference114 = ref span32[4]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -330404,16 +272635,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot13.Author = list141; - index = 8; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference115 = ref span142[num]; + num = 8; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span34 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference115 = ref span34[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -330421,9 +272649,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - ref QuestStep reference116 = ref span143[index2]; + ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list143)[0]; QuestStep obj113 = new QuestStep(EInteractionType.AcceptQuest, 1040165u, new Vector3(-175.0058f, 4.061f, -81.22388f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -330443,9 +272669,7 @@ public static class AssemblyQuestLoader num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span144 = CollectionsMarshal.AsSpan(list144); - index3 = 0; - span144[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA301_04114_Q1_000_000"), @@ -330455,18 +272679,15 @@ public static class AssemblyQuestLoader reference116 = obj113; obj112.Steps = list143; reference115 = obj112; - num++; - ref QuestSequence reference117 = ref span142[num]; + ref QuestSequence reference117 = ref span34[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -330477,8 +272698,7 @@ public static class AssemblyQuestLoader }; obj114.Steps = list145; reference117 = obj114; - num++; - ref QuestSequence reference118 = ref span142[num]; + ref QuestSequence reference118 = ref span34[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 @@ -330486,31 +272706,25 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.Interact, 1040167u, new Vector3(-57.78595f, -25.02207f, 80.18616f), 138) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1040167u, new Vector3(-57.78595f, -25.02207f, 80.18616f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj115.Steps = list146; reference118 = obj115; - num++; - ref QuestSequence reference119 = ref span142[num]; + ref QuestSequence reference119 = ref span34[3]; QuestSequence obj116 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj116.Steps = list147; reference119 = obj116; - num++; - ref QuestSequence reference120 = ref span142[num]; + ref QuestSequence reference120 = ref span34[4]; QuestSequence obj117 = new QuestSequence { Sequence = 4 @@ -330518,41 +272732,33 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - ref QuestStep reference121 = ref span148[index2]; + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list148)[0]; QuestStep obj118 = new QuestStep(EInteractionType.Combat, 1040171u, new Vector3(-195.75806f, -40.81036f, -76.46301f), 138) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list149 = new List(index3); - CollectionsMarshal.SetCount(list149, index3); - Span span149 = CollectionsMarshal.AsSpan(list149); - num3 = 0; - span149[num3] = 14019u; + num3 = 1; + List list149 = new List(num3); + CollectionsMarshal.SetCount(list149, num3); + CollectionsMarshal.AsSpan(list149)[0] = 14019u; obj118.KillEnemyDataIds = list149; reference121 = obj118; obj117.Steps = list148; reference120 = obj117; - num++; - ref QuestSequence reference122 = ref span142[num]; + ref QuestSequence reference122 = ref span34[5]; QuestSequence obj119 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj119.Steps = list150; reference122 = obj119; - num++; - ref QuestSequence reference123 = ref span142[num]; + ref QuestSequence reference123 = ref span34[6]; QuestSequence obj120 = new QuestSequence { Sequence = 6 @@ -330560,26 +272766,21 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1040177u, new Vector3(-132.34149f, -23.704098f, 53.60486f), 138) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1040177u, new Vector3(-132.34149f, -23.704098f, 53.60486f), 138) { Fly = true }; obj120.Steps = list151; reference123 = obj120; - num++; - ref QuestSequence reference124 = ref span142[num]; + ref QuestSequence reference124 = ref span34[7]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -330598,16 +272799,13 @@ public static class AssemblyQuestLoader num = 1; List list153 = new List(num); CollectionsMarshal.SetCount(list153, num); - Span span153 = CollectionsMarshal.AsSpan(list153); - index = 0; - span153[index] = "liza"; + CollectionsMarshal.AsSpan(list153)[0] = "liza"; questRoot14.Author = list153; - index = 9; - List list154 = new List(index); - CollectionsMarshal.SetCount(list154, index); - Span span154 = CollectionsMarshal.AsSpan(list154); - num = 0; - ref QuestSequence reference125 = ref span154[num]; + num = 9; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + Span span35 = CollectionsMarshal.AsSpan(list154); + ref QuestSequence reference125 = ref span35[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -330615,9 +272813,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - ref QuestStep reference126 = ref span155[index2]; + ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list155)[0]; QuestStep obj123 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -330636,35 +272832,29 @@ public static class AssemblyQuestLoader num3 = 1; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - Span span156 = CollectionsMarshal.AsSpan(list156); - index3 = 0; - span156[index3] = 128; + CollectionsMarshal.AsSpan(list156)[0] = 128; obj124.InTerritory = list156; skipConditions3.AetheryteShortcutIf = obj124; obj123.SkipConditions = skipConditions3; reference126 = obj123; obj122.Steps = list155; reference125 = obj122; - num++; - ref QuestSequence reference127 = ref span154[num]; + ref QuestSequence reference127 = ref span35[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj125.Steps = list157; reference127 = obj125; - num++; - ref QuestSequence reference128 = ref span154[num]; + ref QuestSequence reference128 = ref span35[2]; QuestSequence obj126 = new QuestSequence { Sequence = 2 @@ -330672,73 +272862,55 @@ public static class AssemblyQuestLoader num2 = 2; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - ref QuestStep reference129 = ref span158[index2]; + Span span36 = CollectionsMarshal.AsSpan(list158); + ref QuestStep reference129 = ref span36[0]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1040185u, new Vector3(-205.43231f, -41.047558f, -57.38922f), 138) { Fly = true }; - 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); + 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); obj127.CompletionQuestVariablesFlags = list159; reference129 = obj127; - index2++; - ref QuestStep reference130 = ref span158[index2]; + ref QuestStep reference130 = ref span36[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list160; reference130 = questStep4; obj126.Steps = list158; reference128 = obj126; - num++; - ref QuestSequence reference131 = ref span154[num]; + ref QuestSequence reference131 = ref span35[3]; QuestSequence obj128 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj128.Steps = list161; reference131 = obj128; - num++; - ref QuestSequence reference132 = ref span154[num]; + ref QuestSequence reference132 = ref span35[4]; QuestSequence obj129 = new QuestSequence { Sequence = 4 @@ -330746,42 +272918,34 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1040175u, new Vector3(-69.993164f, -25.092323f, 59.861084f), 138) { Fly = true }; obj129.Steps = list162; reference132 = obj129; - num++; - ref QuestSequence reference133 = ref span154[num]; + ref QuestSequence reference133 = ref span35[5]; QuestSequence obj130 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list163 = new List(index2); - CollectionsMarshal.SetCount(list163, index2); - Span span163 = CollectionsMarshal.AsSpan(list163); - num2 = 0; - ref QuestStep reference134 = ref span163[num2]; + num2 = 1; + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(-85.9908f, -25.16141f, 73.1317f), 138) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = 14018u; + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = 14018u; obj131.KillEnemyDataIds = list164; reference134 = obj131; obj130.Steps = list163; reference133 = obj130; - num++; - ref QuestSequence reference135 = ref span154[num]; + ref QuestSequence reference135 = ref span35[6]; QuestSequence obj132 = new QuestSequence { Sequence = 6 @@ -330789,30 +272953,24 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1040178u, new Vector3(-80.52191f, -25.288979f, 63.21814f), 138); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1040178u, new Vector3(-80.52191f, -25.288979f, 63.21814f), 138); obj132.Steps = list165; reference135 = obj132; - num++; - ref QuestSequence reference136 = ref span154[num]; + ref QuestSequence reference136 = ref span35[7]; QuestSequence obj133 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; obj133.Steps = list166; reference136 = obj133; - num++; - ref QuestSequence reference137 = ref span154[num]; + ref QuestSequence reference137 = ref span35[8]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -330820,9 +272978,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040174u, new Vector3(67.27698f, 40f, 66.63611f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -330841,26 +272997,21 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "liza"; + CollectionsMarshal.AsSpan(list168)[0] = "liza"; questRoot15.Author = list168; - index = 5; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference138 = ref span169[num]; + num = 5; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span39 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference138 = ref span39[0]; QuestSequence obj135 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list170 = new List(num2); + CollectionsMarshal.SetCount(list170, num2); + ref QuestStep reference139 = ref CollectionsMarshal.AsSpan(list170)[0]; QuestStep obj136 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -330879,17 +273030,14 @@ public static class AssemblyQuestLoader num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span171 = CollectionsMarshal.AsSpan(list171); - index3 = 0; - span171[index3] = 128; + CollectionsMarshal.AsSpan(list171)[0] = 128; obj137.InTerritory = list171; skipConditions4.AetheryteShortcutIf = obj137; obj136.SkipConditions = skipConditions4; reference139 = obj136; obj135.Steps = list170; reference138 = obj135; - num++; - ref QuestSequence reference140 = ref span169[num]; + ref QuestSequence reference140 = ref span39[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -330897,27 +273045,22 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1040187u, new Vector3(-95.44525f, -24.941013f, 77.927734f), 138) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1040187u, new Vector3(-95.44525f, -24.941013f, 77.927734f), 138) { Fly = true, AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj138.Steps = list172; reference140 = obj138; - num++; - ref QuestSequence reference141 = ref span169[num]; + ref QuestSequence reference141 = ref span39[2]; QuestSequence obj139 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -330928,8 +273071,7 @@ public static class AssemblyQuestLoader }; obj139.Steps = list173; reference141 = obj139; - num++; - ref QuestSequence reference142 = ref span169[num]; + ref QuestSequence reference142 = ref span39[3]; QuestSequence obj140 = new QuestSequence { Sequence = 3 @@ -330937,26 +273079,21 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) { StopDistance = 7f }; obj140.Steps = list174; reference142 = obj140; - num++; - ref QuestSequence reference143 = ref span169[num]; + ref QuestSequence reference143 = ref span39[4]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4117) }; @@ -330969,16 +273106,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "liza"; + CollectionsMarshal.AsSpan(list176)[0] = "liza"; questRoot16.Author = list176; - index = 6; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference144 = ref span177[num]; + num = 6; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span40 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference144 = ref span40[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -330986,9 +273120,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - ref QuestStep reference145 = ref span178[index2]; + ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list178)[0]; QuestStep obj143 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -331003,30 +273135,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list179 = new List(index3); - CollectionsMarshal.SetCount(list179, index3); - Span span179 = CollectionsMarshal.AsSpan(list179); - num3 = 0; - span179[num3] = 128; + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = 128; obj144.InTerritory = list179; skipConditions5.AetheryteShortcutIf = obj144; obj143.SkipConditions = skipConditions5; reference145 = obj143; obj142.Steps = list178; reference144 = obj142; - num++; - ref QuestSequence reference146 = ref span177[num]; + ref QuestSequence reference146 = ref span40[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list180 = new List(index2); - CollectionsMarshal.SetCount(list180, index2); - Span span180 = CollectionsMarshal.AsSpan(list180); - num2 = 0; - ref QuestStep reference147 = ref span180[num2]; + num2 = 1; + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + ref QuestStep reference147 = ref CollectionsMarshal.AsSpan(list180)[0]; QuestStep obj146 = new QuestStep(EInteractionType.Interact, 1040195u, new Vector3(70.51184f, 40f, 66.14783f), 128) { StopDistance = 5f @@ -331034,16 +273161,14 @@ public static class AssemblyQuestLoader num3 = 2; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span181 = CollectionsMarshal.AsSpan(list181); - index3 = 0; - span181[index3] = new DialogueChoice + Span span41 = CollectionsMarshal.AsSpan(list181); + span41[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKBA331_04117_A1_000_001") }; - index3++; - span181[index3] = new DialogueChoice + span41[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q2_000_000"), @@ -331053,8 +273178,7 @@ public static class AssemblyQuestLoader reference147 = obj146; obj145.Steps = list180; reference146 = obj145; - num++; - ref QuestSequence reference148 = ref span177[num]; + ref QuestSequence reference148 = ref span40[2]; QuestSequence obj147 = new QuestSequence { Sequence = 2 @@ -331062,27 +273186,22 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1040196u, new Vector3(-0.015319824f, 11.924474f, 792.6909f), 135) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1040196u, new Vector3(-0.015319824f, 11.924474f, 792.6909f), 135) { Fly = true, AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj147.Steps = list182; reference148 = obj147; - num++; - ref QuestSequence reference149 = ref span177[num]; + ref QuestSequence reference149 = ref span40[3]; QuestSequence obj148 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list183 = new List(index2); - CollectionsMarshal.SetCount(list183, index2); - Span span183 = CollectionsMarshal.AsSpan(list183); - num2 = 0; - ref QuestStep reference150 = ref span183[num2]; + num2 = 1; + List list183 = new List(num2); + CollectionsMarshal.SetCount(list183, num2); + ref QuestStep reference150 = ref CollectionsMarshal.AsSpan(list183)[0]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -331092,12 +273211,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - index3 = 1; - List list184 = new List(index3); - CollectionsMarshal.SetCount(list184, index3); - Span span184 = CollectionsMarshal.AsSpan(list184); - num3 = 0; - span184[num3] = new DialogueChoice + num3 = 1; + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA331_04117_Q4_000_000"), @@ -331107,8 +273224,7 @@ public static class AssemblyQuestLoader reference150 = obj149; obj148.Steps = list183; reference149 = obj148; - num++; - ref QuestSequence reference151 = ref span177[num]; + ref QuestSequence reference151 = ref span40[4]; QuestSequence obj150 = new QuestSequence { Sequence = 4 @@ -331116,23 +273232,18 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129); + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1040204u, new Vector3(-185.22931f, 1.9999955f, 224.90259f), 129); obj150.Steps = list185; reference151 = obj150; - num++; - ref QuestSequence reference152 = ref span177[num]; + ref QuestSequence reference152 = ref span40[5]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -331150,16 +273261,13 @@ public static class AssemblyQuestLoader num = 1; List list187 = new List(num); CollectionsMarshal.SetCount(list187, num); - Span span187 = CollectionsMarshal.AsSpan(list187); - index = 0; - span187[index] = "liza"; + CollectionsMarshal.AsSpan(list187)[0] = "liza"; questRoot17.Author = list187; - index = 6; - List list188 = new List(index); - CollectionsMarshal.SetCount(list188, index); - Span span188 = CollectionsMarshal.AsSpan(list188); - num = 0; - ref QuestSequence reference153 = ref span188[num]; + num = 6; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + Span span42 = CollectionsMarshal.AsSpan(list188); + ref QuestSequence reference153 = ref span42[0]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -331167,9 +273275,7 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - ref QuestStep reference154 = ref span189[index2]; + ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list189)[0]; QuestStep obj153 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -331188,34 +273294,28 @@ public static class AssemblyQuestLoader num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - index3 = 0; - span190[index3] = 128; + CollectionsMarshal.AsSpan(list190)[0] = 128; obj154.InTerritory = list190; skipConditions6.AetheryteShortcutIf = obj154; obj153.SkipConditions = skipConditions6; reference154 = obj153; obj152.Steps = list189; reference153 = obj152; - num++; - ref QuestSequence reference155 = ref span188[num]; + ref QuestSequence reference155 = ref span42[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj155.Steps = list191; reference155 = obj155; - num++; - ref QuestSequence reference156 = ref span188[num]; + ref QuestSequence reference156 = ref span42[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -331223,33 +273323,27 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 2011924u, new Vector3(375.63123f, 29.55664f, 330.9834f), 137) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 2011924u, new Vector3(375.63123f, 29.55664f, 330.9834f), 137) { Fly = true }; obj156.Steps = list192; reference156 = obj156; - num++; - ref QuestSequence reference157 = ref span188[num]; + ref QuestSequence reference157 = ref span42[3]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj157.Steps = list193; reference157 = obj157; - num++; - ref QuestSequence reference158 = ref span188[num]; + ref QuestSequence reference158 = ref span42[4]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -331257,26 +273351,21 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1006266u, new Vector3(560.35706f, 20.721315f, 455.89368f), 137) { Fly = true }; obj158.Steps = list194; reference158 = obj158; - num++; - ref QuestSequence reference159 = ref span188[num]; + ref QuestSequence reference159 = ref span42[5]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -331295,16 +273384,13 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "liza"; + CollectionsMarshal.AsSpan(list196)[0] = "liza"; questRoot18.Author = list196; - index = 9; - List list197 = new List(index); - CollectionsMarshal.SetCount(list197, index); - Span span197 = CollectionsMarshal.AsSpan(list197); - num = 0; - ref QuestSequence reference160 = ref span197[num]; + num = 9; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span43 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference160 = ref span43[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -331312,9 +273398,7 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - ref QuestStep reference161 = ref span198[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list198)[0]; QuestStep obj161 = new QuestStep(EInteractionType.AcceptQuest, 1040166u, new Vector3(68.74182f, 40f, 66.300415f), 128) { StopDistance = 5f, @@ -331330,21 +273414,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list199 = new List(index3); - CollectionsMarshal.SetCount(list199, index3); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - span199[num3] = 128; + num3 = 1; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + CollectionsMarshal.AsSpan(list199)[0] = 128; obj162.InTerritory = list199; skipConditions7.AetheryteShortcutIf = obj162; obj161.SkipConditions = skipConditions7; num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span200 = CollectionsMarshal.AsSpan(list200); - index3 = 0; - span200[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q1_000_000"), @@ -331354,42 +273434,34 @@ public static class AssemblyQuestLoader reference161 = obj161; obj160.Steps = list198; reference160 = obj160; - num++; - ref QuestSequence reference162 = ref span197[num]; + ref QuestSequence reference162 = ref span43[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list201 = new List(index2); - CollectionsMarshal.SetCount(list201, index2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num2 = 0; - ref QuestStep reference163 = ref span201[num2]; + num2 = 1; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list201)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.SinglePlayerDuty, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128); SinglePlayerDutyOptions singlePlayerDutyOptions3 = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions3.Notes = list202; questStep5.SinglePlayerDutyOptions = singlePlayerDutyOptions3; reference163 = questStep5; obj163.Steps = list201; reference162 = obj163; - num++; - span197[num] = new QuestSequence + span43[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference164 = ref span197[num]; + ref QuestSequence reference164 = ref span43[3]; QuestSequence obj164 = new QuestSequence { Sequence = 3 @@ -331397,23 +273469,19 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128); + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128); obj164.Steps = list203; reference164 = obj164; - num++; - ref QuestSequence reference165 = ref span197[num]; + ref QuestSequence reference165 = ref span43[4]; QuestSequence obj165 = new QuestSequence { Sequence = 4 }; - index2 = 5; - List list204 = new List(index2); - CollectionsMarshal.SetCount(list204, index2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num2 = 0; - ref QuestStep reference166 = ref span204[num2]; + num2 = 5; + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + Span span45 = CollectionsMarshal.AsSpan(list204); + ref QuestStep reference166 = ref span45[0]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1040190u, new Vector3(-58.884644f, 39.999916f, 21.22528f), 128) { StopDistance = 7f @@ -331421,26 +273489,18 @@ public static class AssemblyQuestLoader num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - 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); + 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); obj166.CompletionQuestVariablesFlags = list205; - index3 = 1; - List list206 = new List(index3); - CollectionsMarshal.SetCount(list206, index3); - Span span206 = CollectionsMarshal.AsSpan(list206); - num3 = 0; - span206[num3] = new DialogueChoice + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + CollectionsMarshal.AsSpan(list206)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q3_000_000"), @@ -331448,8 +273508,7 @@ public static class AssemblyQuestLoader }; obj166.DialogueChoices = list206; reference166 = obj166; - num2++; - ref QuestStep reference167 = ref span204[num2]; + ref QuestStep reference167 = ref span45[1]; QuestStep obj167 = new QuestStep(EInteractionType.Interact, 1040191u, new Vector3(-57.63336f, 39.999992f, 20.09607f), 128) { StopDistance = 7f @@ -331457,26 +273516,18 @@ public static class AssemblyQuestLoader num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - 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); + 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); obj167.CompletionQuestVariablesFlags = list207; - index3 = 1; - List list208 = new List(index3); - CollectionsMarshal.SetCount(list208, index3); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = new DialogueChoice + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + CollectionsMarshal.AsSpan(list208)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q4_000_000"), @@ -331484,8 +273535,7 @@ public static class AssemblyQuestLoader }; obj167.DialogueChoices = list208; reference167 = obj167; - num2++; - ref QuestStep reference168 = ref span204[num2]; + ref QuestStep reference168 = ref span45[2]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 1040192u, new Vector3(-56.168518f, 39.999992f, 19.638367f), 128) { StopDistance = 7f @@ -331493,26 +273543,18 @@ public static class AssemblyQuestLoader num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - 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); + 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); obj168.CompletionQuestVariablesFlags = list209; - index3 = 1; - List list210 = new List(index3); - CollectionsMarshal.SetCount(list210, index3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = new DialogueChoice + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q5_000_000"), @@ -331520,8 +273562,7 @@ public static class AssemblyQuestLoader }; obj168.DialogueChoices = list210; reference168 = obj168; - num2++; - ref QuestStep reference169 = ref span204[num2]; + ref QuestStep reference169 = ref span45[3]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1040193u, new Vector3(-55.00885f, 39.999992f, 19.4552f), 128) { StopDistance = 7f @@ -331529,26 +273570,18 @@ public static class AssemblyQuestLoader num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - 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); + 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); obj169.CompletionQuestVariablesFlags = list211; - index3 = 1; - List list212 = new List(index3); - CollectionsMarshal.SetCount(list212, index3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - span212[num3] = new DialogueChoice + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + CollectionsMarshal.AsSpan(list212)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q6_000_000"), @@ -331556,8 +273589,7 @@ public static class AssemblyQuestLoader }; obj169.DialogueChoices = list212; reference169 = obj169; - num2++; - ref QuestStep reference170 = ref span204[num2]; + ref QuestStep reference170 = ref span45[4]; QuestStep obj170 = new QuestStep(EInteractionType.Interact, 1040194u, new Vector3(-53.818604f, 39.999992f, 19.516235f), 128) { StopDistance = 7f @@ -331565,26 +273597,18 @@ public static class AssemblyQuestLoader num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - 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); + 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); obj170.CompletionQuestVariablesFlags = list213; - index3 = 1; - List list214 = new List(index3); - CollectionsMarshal.SetCount(list214, index3); - Span span214 = CollectionsMarshal.AsSpan(list214); - num3 = 0; - span214[num3] = new DialogueChoice + num3 = 1; + List list214 = new List(num3); + CollectionsMarshal.SetCount(list214, num3); + CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA351_04119_Q7_000_000"), @@ -331594,8 +273618,7 @@ public static class AssemblyQuestLoader reference170 = obj170; obj165.Steps = list204; reference165 = obj165; - num++; - ref QuestSequence reference171 = ref span197[num]; + ref QuestSequence reference171 = ref span43[5]; QuestSequence obj171 = new QuestSequence { Sequence = 5 @@ -331603,33 +273626,27 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128) + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.Interact, 1040214u, new Vector3(-59.40338f, 39.999916f, 24.093994f), 128) { StopDistance = 5f }; obj171.Steps = list215; reference171 = obj171; - num++; - ref QuestSequence reference172 = ref span197[num]; + ref QuestSequence reference172 = ref span43[6]; QuestSequence obj172 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj172.Steps = list216; reference172 = obj172; - num++; - ref QuestSequence reference173 = ref span197[num]; + ref QuestSequence reference173 = ref span43[7]; QuestSequence obj173 = new QuestSequence { Sequence = 7 @@ -331637,26 +273654,21 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.Interact, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1040189u, new Vector3(-52.140076f, 39.999992f, 21.805054f), 128) { StopDistance = 7f }; obj173.Steps = list217; reference173 = obj173; - num++; - ref QuestSequence reference174 = ref span197[num]; + ref QuestSequence reference174 = ref span43[8]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -331674,16 +273686,13 @@ public static class AssemblyQuestLoader num = 1; List list219 = new List(num); CollectionsMarshal.SetCount(list219, num); - Span span219 = CollectionsMarshal.AsSpan(list219); - index = 0; - span219[index] = "liza"; + CollectionsMarshal.AsSpan(list219)[0] = "liza"; questRoot19.Author = list219; - index = 6; - List list220 = new List(index); - CollectionsMarshal.SetCount(list220, index); - Span span220 = CollectionsMarshal.AsSpan(list220); - num = 0; - ref QuestSequence reference175 = ref span220[num]; + num = 6; + List list220 = new List(num); + CollectionsMarshal.SetCount(list220, num); + Span span51 = CollectionsMarshal.AsSpan(list220); + ref QuestSequence reference175 = ref span51[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -331691,9 +273700,7 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - ref QuestStep reference176 = ref span221[index2]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list221)[0]; QuestStep obj176 = new QuestStep(EInteractionType.AcceptQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -331713,9 +273720,7 @@ public static class AssemblyQuestLoader num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span222 = CollectionsMarshal.AsSpan(list222); - index3 = 0; - span222[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA401_04120_Q1_000_000"), @@ -331725,25 +273730,21 @@ public static class AssemblyQuestLoader reference176 = obj176; obj175.Steps = list221; reference175 = obj175; - num++; - ref QuestSequence reference177 = ref span220[num]; + ref QuestSequence reference177 = ref span51[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj177.Steps = list223; reference177 = obj177; - num++; - ref QuestSequence reference178 = ref span220[num]; + ref QuestSequence reference178 = ref span51[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -331751,44 +273752,36 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1038459u, new Vector3(472.09888f, 16.276169f, 318.25732f), 614) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1038459u, new Vector3(472.09888f, 16.276169f, 318.25732f), 614) { StopDistance = 5f }; obj178.Steps = list224; reference178 = obj178; - num++; - ref QuestSequence reference179 = ref span220[num]; + ref QuestSequence reference179 = ref span51[3]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list225 = new List(index2); - CollectionsMarshal.SetCount(list225, index2); - Span span225 = CollectionsMarshal.AsSpan(list225); - num2 = 0; - ref QuestStep reference180 = ref span225[num2]; + num2 = 1; + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + ref QuestStep reference180 = ref CollectionsMarshal.AsSpan(list225)[0]; QuestStep obj180 = new QuestStep(EInteractionType.Combat, null, new Vector3(323.44977f, 30.394468f, 222.47493f), 614) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list226 = new List(index3); - CollectionsMarshal.SetCount(list226, index3); - Span span226 = CollectionsMarshal.AsSpan(list226); - num3 = 0; - span226[num3] = 14026u; + num3 = 1; + List list226 = new List(num3); + CollectionsMarshal.SetCount(list226, num3); + CollectionsMarshal.AsSpan(list226)[0] = 14026u; obj180.KillEnemyDataIds = list226; reference180 = obj180; obj179.Steps = list225; reference179 = obj179; - num++; - ref QuestSequence reference181 = ref span220[num]; + ref QuestSequence reference181 = ref span51[4]; QuestSequence obj181 = new QuestSequence { Sequence = 4 @@ -331796,26 +273789,21 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1038462u, new Vector3(319.9359f, 29.41258f, 224.4143f), 614) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1038462u, new Vector3(319.9359f, 29.41258f, 224.4143f), 614) { StopDistance = 5f }; obj181.Steps = list227; reference181 = obj181; - num++; - ref QuestSequence reference182 = ref span220[num]; + ref QuestSequence reference182 = ref span51[5]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(4121) @@ -331829,16 +273817,13 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "liza"; + CollectionsMarshal.AsSpan(list229)[0] = "liza"; questRoot20.Author = list229; - index = 7; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference183 = ref span230[num]; + num = 7; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span52 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference183 = ref span52[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -331846,9 +273831,7 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -331861,18 +273844,15 @@ public static class AssemblyQuestLoader }; obj183.Steps = list231; reference183 = obj183; - num++; - ref QuestSequence reference184 = ref span230[num]; + ref QuestSequence reference184 = ref span52[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -331880,8 +273860,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list232; reference184 = obj184; - num++; - ref QuestSequence reference185 = ref span230[num]; + ref QuestSequence reference185 = ref span52[2]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -331889,9 +273868,8 @@ public static class AssemblyQuestLoader num2 = 4; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference186 = ref span233[index2]; + Span span53 = CollectionsMarshal.AsSpan(list233); + ref QuestStep reference186 = ref span53[0]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-755.03345f, 4.7634573f, -477.97415f), 613) { Fly = true @@ -331901,111 +273879,80 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list234; skipConditions8.StepIf = skipStepConditions3; obj186.SkipConditions = skipConditions8; reference186 = obj186; - index2++; - ref QuestStep reference187 = ref span233[index2]; + ref QuestStep reference187 = ref span53[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1038467u, new Vector3(-753.78046f, 4.7634573f, -479.3927f), 613); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list235; reference187 = questStep6; - index2++; - ref QuestStep reference188 = ref span233[index2]; + ref QuestStep reference188 = ref span53[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list236; reference188 = questStep7; - index2++; - ref QuestStep reference189 = ref span233[index2]; + ref QuestStep reference189 = ref span53[3]; QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1038468u, new Vector3(-815.88464f, 19.565891f, -461.3871f), 613) { Fly = true }; - 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); + 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); obj187.CompletionQuestVariablesFlags = list237; reference189 = obj187; obj185.Steps = list233; reference185 = obj185; - num++; - ref QuestSequence reference190 = ref span230[num]; + ref QuestSequence reference190 = ref span52[3]; QuestSequence obj188 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj188.Steps = list238; reference190 = obj188; - num++; - ref QuestSequence reference191 = ref span230[num]; + ref QuestSequence reference191 = ref span52[4]; QuestSequence obj189 = new QuestSequence { Sequence = 4 @@ -332013,27 +273960,21 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613); + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.Interact, 1038464u, new Vector3(-738.55194f, 1.1992621f, -365.56042f), 613); obj189.Steps = list239; reference191 = obj189; - num++; - ref QuestSequence reference192 = ref span230[num]; + ref QuestSequence reference192 = ref span52[5]; QuestSequence obj190 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj190.Steps = list240; reference192 = obj190; - num++; - ref QuestSequence reference193 = ref span230[num]; + ref QuestSequence reference193 = ref span52[6]; QuestSequence obj191 = new QuestSequence { Sequence = byte.MaxValue @@ -332041,9 +273982,7 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, NextQuestId = new QuestId(4122) @@ -332057,26 +273996,21 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "Censored"; + CollectionsMarshal.AsSpan(list242)[0] = "Censored"; questRoot21.Author = list242; - index = 8; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference194 = ref span243[num]; + num = 8; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span58 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference194 = ref span58[0]; QuestSequence obj192 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -332089,8 +274023,7 @@ public static class AssemblyQuestLoader }; obj192.Steps = list244; reference194 = obj192; - num++; - ref QuestSequence reference195 = ref span243[num]; + ref QuestSequence reference195 = ref span58[1]; QuestSequence obj193 = new QuestSequence { Sequence = 1 @@ -332098,9 +274031,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1038471u, new Vector3(201.77002f, 1.1510025f, -574.88367f), 613) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1038471u, new Vector3(201.77002f, 1.1510025f, -574.88367f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -332119,22 +274050,18 @@ public static class AssemblyQuestLoader }; obj193.Steps = list245; reference195 = obj193; - num++; - ref QuestSequence reference196 = ref span243[num]; + ref QuestSequence reference196 = ref span58[2]; QuestSequence obj194 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj194.Steps = list246; reference196 = obj194; - num++; - ref QuestSequence reference197 = ref span243[num]; + ref QuestSequence reference197 = ref span58[3]; QuestSequence obj195 = new QuestSequence { Sequence = 3 @@ -332142,27 +274069,21 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1038476u, new Vector3(16.983276f, -195.74509f, -105.97394f), 613); + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1038476u, new Vector3(16.983276f, -195.74509f, -105.97394f), 613); obj195.Steps = list247; reference197 = obj195; - num++; - ref QuestSequence reference198 = ref span243[num]; + ref QuestSequence reference198 = ref span58[4]; QuestSequence obj196 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj196.Steps = list248; reference198 = obj196; - num++; - ref QuestSequence reference199 = ref span243[num]; + ref QuestSequence reference199 = ref span58[5]; QuestSequence obj197 = new QuestSequence { Sequence = 5 @@ -332170,27 +274091,21 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1038478u, new Vector3(-90.25714f, -198.95348f, -129.65594f), 613); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1038478u, new Vector3(-90.25714f, -198.95348f, -129.65594f), 613); obj197.Steps = list249; reference199 = obj197; - num++; - ref QuestSequence reference200 = ref span243[num]; + ref QuestSequence reference200 = ref span58[6]; QuestSequence obj198 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj198.Steps = list250; reference200 = obj198; - num++; - ref QuestSequence reference201 = ref span243[num]; + ref QuestSequence reference201 = ref span58[7]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -332198,9 +274113,7 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038457u, new Vector3(-0.83929443f, 0f, 8.8654175f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -332221,26 +274134,21 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - Span span252 = CollectionsMarshal.AsSpan(list252); - index = 0; - span252[index] = "Censored"; + CollectionsMarshal.AsSpan(list252)[0] = "Censored"; questRoot22.Author = list252; - index = 5; - List list253 = new List(index); - CollectionsMarshal.SetCount(list253, index); - Span span253 = CollectionsMarshal.AsSpan(list253); - num = 0; - ref QuestSequence reference202 = ref span253[num]; + num = 5; + List list253 = new List(num); + CollectionsMarshal.SetCount(list253, num); + Span span59 = CollectionsMarshal.AsSpan(list253); + ref QuestSequence reference202 = ref span59[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -332253,8 +274161,7 @@ public static class AssemblyQuestLoader }; obj200.Steps = list254; reference202 = obj200; - num++; - ref QuestSequence reference203 = ref span253[num]; + ref QuestSequence reference203 = ref span59[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -332262,9 +274169,7 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1021505u, new Vector3(79.42322f, 33.00897f, -669.9474f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -332283,25 +274188,21 @@ public static class AssemblyQuestLoader }; obj201.Steps = list255; reference203 = obj201; - num++; - ref QuestSequence reference204 = ref span253[num]; + ref QuestSequence reference204 = ref span59[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj202.Steps = list256; reference204 = obj202; - num++; - ref QuestSequence reference205 = ref span253[num]; + ref QuestSequence reference205 = ref span59[3]; QuestSequence obj203 = new QuestSequence { Sequence = 3 @@ -332309,26 +274210,21 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1038482u, new Vector3(569.7261f, 0.7321513f, -517.47925f), 613) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1038482u, new Vector3(569.7261f, 0.7321513f, -517.47925f), 613) { StopDistance = 5f }; obj203.Steps = list257; reference205 = obj203; - num++; - ref QuestSequence reference206 = ref span253[num]; + ref QuestSequence reference206 = ref span59[4]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -332349,16 +274245,13 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - Span span259 = CollectionsMarshal.AsSpan(list259); - index = 0; - span259[index] = "Censored"; + CollectionsMarshal.AsSpan(list259)[0] = "Censored"; questRoot23.Author = list259; - index = 6; - List list260 = new List(index); - CollectionsMarshal.SetCount(list260, index); - Span span260 = CollectionsMarshal.AsSpan(list260); - num = 0; - ref QuestSequence reference207 = ref span260[num]; + num = 6; + List list260 = new List(num); + CollectionsMarshal.SetCount(list260, num); + Span span60 = CollectionsMarshal.AsSpan(list260); + ref QuestSequence reference207 = ref span60[0]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -332366,9 +274259,7 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -332381,18 +274272,15 @@ public static class AssemblyQuestLoader }; obj205.Steps = list261; reference207 = obj205; - num++; - ref QuestSequence reference208 = ref span260[num]; + ref QuestSequence reference208 = ref span60[1]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, SkipConditions = new SkipConditions @@ -332410,8 +274298,7 @@ public static class AssemblyQuestLoader }; obj206.Steps = list262; reference208 = obj206; - num++; - ref QuestSequence reference209 = ref span260[num]; + ref QuestSequence reference209 = ref span60[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -332419,51 +274306,36 @@ public static class AssemblyQuestLoader num2 = 3; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - ref QuestStep reference210 = ref span263[index2]; + Span span61 = CollectionsMarshal.AsSpan(list263); + ref QuestStep reference210 = ref span61[0]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list264; reference210 = questStep8; - index2++; - ref QuestStep reference211 = ref span263[index2]; + ref QuestStep reference211 = ref span61[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1038489u, new Vector3(427.87805f, 68.02852f, -126.17688f), 614); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list265; reference211 = questStep9; - index2++; - ref QuestStep reference212 = ref span263[index2]; + ref QuestStep reference212 = ref span61[2]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1038490u, new Vector3(443.68652f, 58.724403f, -181.62811f), 614) { Fly = true @@ -332471,44 +274343,34 @@ public static class AssemblyQuestLoader num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - 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); + 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); obj208.CompletionQuestVariablesFlags = list266; reference212 = obj208; obj207.Steps = list263; reference209 = obj207; - num++; - ref QuestSequence reference213 = ref span260[num]; + ref QuestSequence reference213 = ref span60[3]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span267[num2] = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); + span65[1] = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); obj209.Steps = list267; reference213 = obj209; - num++; - ref QuestSequence reference214 = ref span260[num]; + ref QuestSequence reference214 = ref span60[4]; QuestSequence obj210 = new QuestSequence { Sequence = 4 @@ -332516,16 +274378,12 @@ public static class AssemblyQuestLoader num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - ref QuestStep reference215 = ref span268[index2]; + ref QuestStep reference215 = ref CollectionsMarshal.AsSpan(list268)[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1038491u, new Vector3(626.9779f, 81.0615f, -211.53589f), 614); - index3 = 1; - List list269 = new List(index3); - CollectionsMarshal.SetCount(list269, index3); - Span span269 = CollectionsMarshal.AsSpan(list269); - num3 = 0; - span269[num3] = new DialogueChoice + num3 = 1; + List list269 = new List(num3); + CollectionsMarshal.SetCount(list269, num3); + CollectionsMarshal.AsSpan(list269)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA441_04124_SYSTEM_101_121") @@ -332534,18 +274392,15 @@ public static class AssemblyQuestLoader reference215 = questStep10; obj210.Steps = list268; reference214 = obj210; - num++; - ref QuestSequence reference216 = ref span260[num]; + ref QuestSequence reference216 = ref span60[5]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4125) }; @@ -332558,16 +274413,13 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "Censored"; + CollectionsMarshal.AsSpan(list271)[0] = "Censored"; questRoot24.Author = list271; - index = 6; - List list272 = new List(index); - CollectionsMarshal.SetCount(list272, index); - Span span272 = CollectionsMarshal.AsSpan(list272); - num = 0; - ref QuestSequence reference217 = ref span272[num]; + num = 6; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span66 = CollectionsMarshal.AsSpan(list272); + ref QuestSequence reference217 = ref span66[0]; QuestSequence obj212 = new QuestSequence { Sequence = 0 @@ -332575,9 +274427,7 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - Span span273 = CollectionsMarshal.AsSpan(list273); - index2 = 0; - span273[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) + CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038458u, new Vector3(-0.96136475f, 0f, 7.2174683f), 759) { AetheryteShortcut = EAetheryteLocation.DomanEnclave, SkipConditions = new SkipConditions @@ -332590,18 +274440,16 @@ public static class AssemblyQuestLoader }; obj212.Steps = list273; reference217 = obj212; - num++; - ref QuestSequence reference218 = ref span272[num]; + ref QuestSequence reference218 = ref span66[1]; QuestSequence obj213 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)614, AethernetShortcut = new AethernetShortcut @@ -332610,20 +274458,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.DomanEnclaveDocks } }; - num2++; - span274[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614) + span67[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614) { Fly = true }; obj213.Steps = list274; reference218 = obj213; - num++; - span272[num] = new QuestSequence + span66[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference219 = ref span272[num]; + ref QuestSequence reference219 = ref span66[3]; QuestSequence obj214 = new QuestSequence { Sequence = 3 @@ -332631,30 +274476,24 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.Interact, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614); + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1038494u, new Vector3(-449.63763f, 53.78236f, 303.60876f), 614); obj214.Steps = list275; reference219 = obj214; - num++; - ref QuestSequence reference220 = ref span272[num]; + ref QuestSequence reference220 = ref span66[4]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.DomanEnclave }; obj215.Steps = list276; reference220 = obj215; - num++; - ref QuestSequence reference221 = ref span272[num]; + ref QuestSequence reference221 = ref span66[5]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -332662,9 +274501,7 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) + CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039102u, new Vector3(-177.96606f, 4.05f, -90.44025f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -332682,26 +274519,21 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - Span span278 = CollectionsMarshal.AsSpan(list278); - index = 0; - span278[index] = "liza"; + CollectionsMarshal.AsSpan(list278)[0] = "liza"; questRoot25.Author = list278; - index = 9; - List list279 = new List(index); - CollectionsMarshal.SetCount(list279, index); - Span span279 = CollectionsMarshal.AsSpan(list279); - num = 0; - ref QuestSequence reference222 = ref span279[num]; + num = 9; + List list279 = new List(num); + CollectionsMarshal.SetCount(list279, num); + Span span68 = CollectionsMarshal.AsSpan(list279); + ref QuestSequence reference222 = ref span68[0]; QuestSequence obj217 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list280)[0]; QuestStep obj218 = new QuestStep(EInteractionType.AcceptQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -332721,9 +274553,7 @@ public static class AssemblyQuestLoader num3 = 1; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - Span span281 = CollectionsMarshal.AsSpan(list281); - index3 = 0; - span281[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list281)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBA501_04126_Q1_000_000"), @@ -332733,8 +274563,7 @@ public static class AssemblyQuestLoader reference223 = obj218; obj217.Steps = list280; reference222 = obj217; - num++; - ref QuestSequence reference224 = ref span279[num]; + ref QuestSequence reference224 = ref span68[1]; QuestSequence obj219 = new QuestSequence { Sequence = 1 @@ -332742,26 +274571,21 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Interact, 1037018u, new Vector3(-34.042908f, 5.474271f, 45.303955f), 418) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1037018u, new Vector3(-34.042908f, 5.474271f, 45.303955f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard }; obj219.Steps = list282; reference224 = obj219; - num++; - ref QuestSequence reference225 = ref span279[num]; + ref QuestSequence reference225 = ref span68[2]; QuestSequence obj220 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -332771,8 +274595,7 @@ public static class AssemblyQuestLoader }; obj220.Steps = list283; reference225 = obj220; - num++; - ref QuestSequence reference226 = ref span279[num]; + ref QuestSequence reference226 = ref span68[3]; QuestSequence obj221 = new QuestSequence { Sequence = 3 @@ -332780,31 +274603,25 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419); + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1037019u, new Vector3(-148.79077f, 14.953051f, -167.92554f), 419); obj221.Steps = list284; reference226 = obj221; - num++; - ref QuestSequence reference227 = ref span279[num]; + ref QuestSequence reference227 = ref span68[4]; QuestSequence obj222 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj222.Steps = list285; reference227 = obj222; - num++; - ref QuestSequence reference228 = ref span279[num]; + ref QuestSequence reference228 = ref span68[5]; QuestSequence obj223 = new QuestSequence { Sequence = 5 @@ -332812,44 +274629,36 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - ref QuestStep reference229 = ref span286[index2]; + ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list286)[0]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(665.96155f, 184.83743f, -453.5654f), 397) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list287 = new List(index3); - CollectionsMarshal.SetCount(list287, index3); - Span span287 = CollectionsMarshal.AsSpan(list287); - num3 = 0; - span287[num3] = 14025u; + num3 = 1; + List list287 = new List(num3); + CollectionsMarshal.SetCount(list287, num3); + CollectionsMarshal.AsSpan(list287)[0] = 14025u; obj224.KillEnemyDataIds = list287; reference229 = obj224; obj223.Steps = list286; reference228 = obj223; - num++; - ref QuestSequence reference230 = ref span279[num]; + ref QuestSequence reference230 = ref span68[6]; QuestSequence obj225 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj225.Steps = list288; reference230 = obj225; - num++; - ref QuestSequence reference231 = ref span279[num]; + ref QuestSequence reference231 = ref span68[7]; QuestSequence obj226 = new QuestSequence { Sequence = 7 @@ -332857,9 +274666,7 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - ref QuestStep reference232 = ref span289[index2]; + ref QuestStep reference232 = ref CollectionsMarshal.AsSpan(list289)[0]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -332872,9 +274679,7 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span290 = CollectionsMarshal.AsSpan(list290); - index3 = 0; - span290[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA501_04126_SYSTEM_000_501") @@ -332883,18 +274688,15 @@ public static class AssemblyQuestLoader reference232 = obj227; obj226.Steps = list289; reference231 = obj226; - num++; - ref QuestSequence reference233 = ref span279[num]; + ref QuestSequence reference233 = ref span68[8]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4127) }; @@ -332907,16 +274709,13 @@ public static class AssemblyQuestLoader num = 1; List list292 = new List(num); CollectionsMarshal.SetCount(list292, num); - Span span292 = CollectionsMarshal.AsSpan(list292); - index = 0; - span292[index] = "liza"; + CollectionsMarshal.AsSpan(list292)[0] = "liza"; questRoot26.Author = list292; - index = 5; - List list293 = new List(index); - CollectionsMarshal.SetCount(list293, index); - Span span293 = CollectionsMarshal.AsSpan(list293); - num = 0; - ref QuestSequence reference234 = ref span293[num]; + num = 5; + List list293 = new List(num); + CollectionsMarshal.SetCount(list293, num); + Span span69 = CollectionsMarshal.AsSpan(list293); + ref QuestSequence reference234 = ref span69[0]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -332924,9 +274723,8 @@ public static class AssemblyQuestLoader num2 = 2; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - ref QuestStep reference235 = ref span294[index2]; + Span span70 = CollectionsMarshal.AsSpan(list294); + ref QuestStep reference235 = ref span70[0]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -332938,12 +274736,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - index3 = 1; - List list295 = new List(index3); - CollectionsMarshal.SetCount(list295, index3); - Span span295 = CollectionsMarshal.AsSpan(list295); - num3 = 0; - span295[num3] = 1001; + num3 = 1; + List list295 = new List(num3); + CollectionsMarshal.SetCount(list295, num3); + CollectionsMarshal.AsSpan(list295)[0] = 1001; skipStepConditions4.InTerritory = list295; skipConditions9.StepIf = skipStepConditions4; SkipAetheryteCondition obj231 = new SkipAetheryteCondition @@ -332953,40 +274749,33 @@ public static class AssemblyQuestLoader num3 = 1; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - Span span296 = CollectionsMarshal.AsSpan(list296); - index3 = 0; - span296[index3] = 1001; + CollectionsMarshal.AsSpan(list296)[0] = 1001; obj231.InTerritory = list296; skipConditions9.AetheryteShortcutIf = obj231; obj230.SkipConditions = skipConditions9; - index3 = 1; - List list297 = new List(index3); - CollectionsMarshal.SetCount(list297, index3); - Span span297 = CollectionsMarshal.AsSpan(list297); - num3 = 0; - span297[num3] = new DialogueChoice + num3 = 1; + List list297 = new List(num3); + CollectionsMarshal.SetCount(list297, num3); + CollectionsMarshal.AsSpan(list297)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA511_04127_SYSTEM_000_501") }; obj230.DialogueChoices = list297; reference235 = obj230; - index2++; - span294[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + span70[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj229.Steps = list294; reference234 = obj229; - num++; - ref QuestSequence reference236 = ref span293[num]; + ref QuestSequence reference236 = ref span69[1]; QuestSequence obj232 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list298 = new List(index2); - CollectionsMarshal.SetCount(list298, index2); - Span span298 = CollectionsMarshal.AsSpan(list298); - num2 = 0; - ref QuestStep reference237 = ref span298[num2]; + num2 = 3; + List list298 = new List(num2); + CollectionsMarshal.SetCount(list298, num2); + Span span71 = CollectionsMarshal.AsSpan(list298); + ref QuestStep reference237 = ref span71[0]; QuestStep obj233 = new QuestStep(EInteractionType.Interact, 1037030u, new Vector3(11.825684f, 15.965058f, -30.136597f), 419) { AethernetShortcut = new AethernetShortcut @@ -332998,67 +274787,46 @@ public static class AssemblyQuestLoader num3 = 6; List list299 = new List(num3); CollectionsMarshal.SetCount(list299, num3); - 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); + 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); obj233.CompletionQuestVariablesFlags = list299; reference237 = obj233; - num2++; - ref QuestStep reference238 = ref span298[num2]; + ref QuestStep reference238 = ref span71[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1037031u, new Vector3(-8.98761f, 27.964876f, -170.58063f), 419); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list300; reference238 = questStep11; - num2++; - ref QuestStep reference239 = ref span298[num2]; + ref QuestStep reference239 = ref span71[2]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list301; reference239 = questStep12; obj232.Steps = list298; reference236 = obj232; - num++; - ref QuestSequence reference240 = ref span293[num]; + ref QuestSequence reference240 = ref span69[2]; QuestSequence obj234 = new QuestSequence { Sequence = 2 @@ -333066,23 +274834,18 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.Interact, 1037033u, new Vector3(69.77942f, -4.6903167f, -41.397766f), 419); + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1037033u, new Vector3(69.77942f, -4.6903167f, -41.397766f), 419); obj234.Steps = list302; reference240 = obj234; - num++; - ref QuestSequence reference241 = ref span293[num]; + ref QuestSequence reference241 = ref span69[3]; QuestSequence obj235 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -333092,8 +274855,7 @@ public static class AssemblyQuestLoader }; obj235.Steps = list303; reference241 = obj235; - num++; - ref QuestSequence reference242 = ref span293[num]; + ref QuestSequence reference242 = ref span69[4]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -333101,9 +274863,8 @@ public static class AssemblyQuestLoader num2 = 2; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - ref QuestStep reference243 = ref span304[index2]; + Span span75 = CollectionsMarshal.AsSpan(list304); + ref QuestStep reference243 = ref span75[0]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -333112,20 +274873,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - index3 = 1; - List list305 = new List(index3); - CollectionsMarshal.SetCount(list305, index3); - Span span305 = CollectionsMarshal.AsSpan(list305); - num3 = 0; - span305[num3] = new DialogueChoice + num3 = 1; + List list305 = new List(num3); + CollectionsMarshal.SetCount(list305, num3); + CollectionsMarshal.AsSpan(list305)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA511_04127_SYSTEM_000_501") }; obj237.DialogueChoices = list305; reference243 = obj237; - index2++; - span304[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + span75[1] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4128) }; @@ -333138,26 +274896,22 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "liza"; + CollectionsMarshal.AsSpan(list306)[0] = "liza"; questRoot27.Author = list306; - index = 4; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference244 = ref span307[num]; + num = 4; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span76 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference244 = ref span76[0]; QuestSequence obj238 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + Span span77 = CollectionsMarshal.AsSpan(list308); + ref QuestStep reference245 = ref span77[0]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -333172,42 +274926,34 @@ public static class AssemblyQuestLoader num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - Span span309 = CollectionsMarshal.AsSpan(list309); - index3 = 0; - span309[index3] = 1001; + CollectionsMarshal.AsSpan(list309)[0] = 1001; skipStepConditions5.InTerritory = list309; skipConditions10.StepIf = skipStepConditions5; SkipAetheryteCondition obj240 = new SkipAetheryteCondition { InSameTerritory = true }; - index3 = 1; - List list310 = new List(index3); - CollectionsMarshal.SetCount(list310, index3); - Span span310 = CollectionsMarshal.AsSpan(list310); - num3 = 0; - span310[num3] = 1001; + num3 = 1; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + CollectionsMarshal.AsSpan(list310)[0] = 1001; obj240.InTerritory = list310; skipConditions10.AetheryteShortcutIf = obj240; obj239.SkipConditions = skipConditions10; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span311 = CollectionsMarshal.AsSpan(list311); - index3 = 0; - span311[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA521_04128_SYSTEM_000_501") }; obj239.DialogueChoices = list311; reference245 = obj239; - num2++; - span308[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + span77[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj238.Steps = list308; reference244 = obj238; - num++; - ref QuestSequence reference246 = ref span307[num]; + ref QuestSequence reference246 = ref span76[1]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -333215,27 +274961,23 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - ref QuestStep reference247 = ref span312[index2]; + Span span78 = CollectionsMarshal.AsSpan(list312); + ref QuestStep reference247 = ref span78[0]; 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(); - index3 = 1; - List list313 = new List(index3); - CollectionsMarshal.SetCount(list313, index3); - Span span313 = CollectionsMarshal.AsSpan(list313); - num3 = 0; - span313[num3] = 1001; + num3 = 1; + List list313 = new List(num3); + CollectionsMarshal.SetCount(list313, num3); + CollectionsMarshal.AsSpan(list313)[0] = 1001; skipStepConditions6.NotInTerritory = list313; skipConditions11.StepIf = skipStepConditions6; obj242.SkipConditions = skipConditions11; reference247 = obj242; - index2++; - span312[index2] = new QuestStep(EInteractionType.Interact, 1037036u, new Vector3(-105.36359f, 14.95313f, -142.74823f), 419) + span78[1] = new QuestStep(EInteractionType.Interact, 1037036u, new Vector3(-105.36359f, 14.95313f, -142.74823f), 419) { AethernetShortcut = new AethernetShortcut { @@ -333245,22 +274987,18 @@ public static class AssemblyQuestLoader }; obj241.Steps = list312; reference246 = obj241; - num++; - ref QuestSequence reference248 = ref span307[num]; + ref QuestSequence reference248 = ref span76[2]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj243.Steps = list314; reference248 = obj243; - num++; - ref QuestSequence reference249 = ref span307[num]; + ref QuestSequence reference249 = ref span76[3]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue @@ -333268,9 +275006,8 @@ public static class AssemblyQuestLoader num2 = 2; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - ref QuestStep reference250 = ref span315[index2]; + Span span79 = CollectionsMarshal.AsSpan(list315); + ref QuestStep reference250 = ref span79[0]; QuestStep obj245 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -333282,17 +275019,14 @@ public static class AssemblyQuestLoader num3 = 1; List list316 = new List(num3); CollectionsMarshal.SetCount(list316, num3); - Span span316 = CollectionsMarshal.AsSpan(list316); - index3 = 0; - span316[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list316)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA521_04128_SYSTEM_000_501") }; obj245.DialogueChoices = list316; reference250 = obj245; - index2++; - span315[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { NextQuestId = new QuestId(4129) }; @@ -333305,26 +275039,22 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - Span span317 = CollectionsMarshal.AsSpan(list317); - index = 0; - span317[index] = "liza"; + CollectionsMarshal.AsSpan(list317)[0] = "liza"; questRoot28.Author = list317; - index = 5; - List list318 = new List(index); - CollectionsMarshal.SetCount(list318, index); - Span span318 = CollectionsMarshal.AsSpan(list318); - num = 0; - ref QuestSequence reference251 = ref span318[num]; + num = 5; + List list318 = new List(num); + CollectionsMarshal.SetCount(list318, num); + Span span80 = CollectionsMarshal.AsSpan(list318); + ref QuestSequence reference251 = ref span80[0]; QuestSequence obj246 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list319 = new List(num2); + CollectionsMarshal.SetCount(list319, num2); + Span span81 = CollectionsMarshal.AsSpan(list319); + ref QuestStep reference252 = ref span81[0]; QuestStep obj247 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { StopDistance = 5f, @@ -333337,12 +275067,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - index3 = 1; - List list320 = new List(index3); - CollectionsMarshal.SetCount(list320, index3); - Span span320 = CollectionsMarshal.AsSpan(list320); - num3 = 0; - span320[num3] = 1001; + num3 = 1; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + CollectionsMarshal.AsSpan(list320)[0] = 1001; skipStepConditions7.InTerritory = list320; skipConditions12.StepIf = skipStepConditions7; SkipAetheryteCondition obj248 = new SkipAetheryteCondition @@ -333352,30 +275080,24 @@ public static class AssemblyQuestLoader num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span321 = CollectionsMarshal.AsSpan(list321); - index3 = 0; - span321[index3] = 1001; + CollectionsMarshal.AsSpan(list321)[0] = 1001; obj248.InTerritory = list321; skipConditions12.AetheryteShortcutIf = obj248; obj247.SkipConditions = skipConditions12; - index3 = 1; - List list322 = new List(index3); - CollectionsMarshal.SetCount(list322, index3); - Span span322 = CollectionsMarshal.AsSpan(list322); - num3 = 0; - span322[num3] = new DialogueChoice + num3 = 1; + List list322 = new List(num3); + CollectionsMarshal.SetCount(list322, num3); + CollectionsMarshal.AsSpan(list322)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_SYSTEM_000_501") }; obj247.DialogueChoices = list322; reference252 = obj247; - num2++; - span319[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + span81[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj246.Steps = list319; reference251 = obj246; - num++; - ref QuestSequence reference253 = ref span318[num]; + ref QuestSequence reference253 = ref span80[1]; QuestSequence obj249 = new QuestSequence { Sequence = 1 @@ -333383,9 +275105,8 @@ public static class AssemblyQuestLoader num2 = 3; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - ref QuestStep reference254 = ref span323[index2]; + Span span82 = CollectionsMarshal.AsSpan(list323); + ref QuestStep reference254 = ref span82[0]; QuestStep obj250 = new QuestStep(EInteractionType.Interact, 1006392u, new Vector3(184.22205f, 319.0841f, -238.33075f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead @@ -333393,81 +275114,57 @@ public static class AssemblyQuestLoader num3 = 6; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - 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); + 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); obj250.CompletionQuestVariablesFlags = list324; reference254 = obj250; - index2++; - ref QuestStep reference255 = ref span323[index2]; + ref QuestStep reference255 = ref span82[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1006395u, new Vector3(206.86658f, 303.115f, -296.2539f), 155); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list325; reference255 = questStep13; - index2++; - ref QuestStep reference256 = ref span323[index2]; + ref QuestStep reference256 = ref span82[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list326; reference256 = questStep14; obj249.Steps = list323; reference253 = obj249; - num++; - ref QuestSequence reference257 = ref span318[num]; + ref QuestSequence reference257 = ref span80[2]; QuestSequence obj251 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj251.Steps = list327; reference257 = obj251; - num++; - ref QuestSequence reference258 = ref span318[num]; + ref QuestSequence reference258 = ref span80[3]; QuestSequence obj252 = new QuestSequence { Sequence = 3 @@ -333475,16 +275172,12 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - index2 = 0; - ref QuestStep reference259 = ref span328[index2]; + ref QuestStep reference259 = ref CollectionsMarshal.AsSpan(list328)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1037041u, new Vector3(197.68054f, 302.31348f, -167.58984f), 155); - index3 = 1; - List list329 = new List(index3); - CollectionsMarshal.SetCount(list329, index3); - Span span329 = CollectionsMarshal.AsSpan(list329); - num3 = 0; - span329[num3] = new DialogueChoice + num3 = 1; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + CollectionsMarshal.AsSpan(list329)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_Q1_000_060") @@ -333493,18 +275186,16 @@ public static class AssemblyQuestLoader reference259 = questStep15; obj252.Steps = list328; reference258 = obj252; - num++; - ref QuestSequence reference260 = ref span318[num]; + ref QuestSequence reference260 = ref span80[4]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list330 = new List(index2); - CollectionsMarshal.SetCount(list330, index2); - Span span330 = CollectionsMarshal.AsSpan(list330); - num2 = 0; - ref QuestStep reference261 = ref span330[num2]; + num2 = 2; + List list330 = new List(num2); + CollectionsMarshal.SetCount(list330, num2); + Span span86 = CollectionsMarshal.AsSpan(list330); + ref QuestStep reference261 = ref span86[0]; QuestStep obj254 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -333517,17 +275208,14 @@ public static class AssemblyQuestLoader num3 = 1; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span331 = CollectionsMarshal.AsSpan(list331); - index3 = 0; - span331[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA531_04129_SYSTEM_000_501") }; obj254.DialogueChoices = list331; reference261 = obj254; - num2++; - span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) + span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001) { NextQuestId = new QuestId(4130) }; @@ -333540,16 +275228,13 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = "liza"; + CollectionsMarshal.AsSpan(list332)[0] = "liza"; questRoot29.Author = list332; - index = 7; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref QuestSequence reference262 = ref span333[num]; + num = 7; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + Span span87 = CollectionsMarshal.AsSpan(list333); + ref QuestSequence reference262 = ref span87[0]; QuestSequence obj255 = new QuestSequence { Sequence = 0 @@ -333557,9 +275242,8 @@ public static class AssemblyQuestLoader num2 = 2; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - ref QuestStep reference263 = ref span334[index2]; + Span span88 = CollectionsMarshal.AsSpan(list334); + ref QuestStep reference263 = ref span88[0]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -333571,12 +275255,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - index3 = 1; - List list335 = new List(index3); - CollectionsMarshal.SetCount(list335, index3); - Span span335 = CollectionsMarshal.AsSpan(list335); - num3 = 0; - span335[num3] = 1001; + num3 = 1; + List list335 = new List(num3); + CollectionsMarshal.SetCount(list335, num3); + CollectionsMarshal.AsSpan(list335)[0] = 1001; skipStepConditions8.InTerritory = list335; skipConditions13.StepIf = skipStepConditions8; SkipAetheryteCondition obj257 = new SkipAetheryteCondition @@ -333586,40 +275268,32 @@ public static class AssemblyQuestLoader num3 = 1; List list336 = new List(num3); CollectionsMarshal.SetCount(list336, num3); - Span span336 = CollectionsMarshal.AsSpan(list336); - index3 = 0; - span336[index3] = 1001; + CollectionsMarshal.AsSpan(list336)[0] = 1001; obj257.InTerritory = list336; skipConditions13.AetheryteShortcutIf = obj257; obj256.SkipConditions = skipConditions13; - index3 = 1; - List list337 = new List(index3); - CollectionsMarshal.SetCount(list337, index3); - Span span337 = CollectionsMarshal.AsSpan(list337); - num3 = 0; - span337[num3] = new DialogueChoice + num3 = 1; + List list337 = new List(num3); + CollectionsMarshal.SetCount(list337, num3); + CollectionsMarshal.AsSpan(list337)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA541_04130_SYSTEM_000_501") }; obj256.DialogueChoices = list337; reference263 = obj256; - index2++; - span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + span88[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj255.Steps = list334; reference262 = obj255; - num++; - ref QuestSequence reference264 = ref span333[num]; + ref QuestSequence reference264 = ref span87[1]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -333629,8 +275303,7 @@ public static class AssemblyQuestLoader }; obj258.Steps = list338; reference264 = obj258; - num++; - ref QuestSequence reference265 = ref span333[num]; + ref QuestSequence reference265 = ref span87[2]; QuestSequence obj259 = new QuestSequence { Sequence = 2 @@ -333638,30 +275311,24 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419); + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(11.001709f, 11.965152f, 52.384155f), 419); obj259.Steps = list339; reference265 = obj259; - num++; - ref QuestSequence reference266 = ref span333[num]; + ref QuestSequence reference266 = ref span87[3]; QuestSequence obj260 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.5f }; obj260.Steps = list340; reference266 = obj260; - num++; - ref QuestSequence reference267 = ref span333[num]; + ref QuestSequence reference267 = ref span87[4]; QuestSequence obj261 = new QuestSequence { Sequence = 4 @@ -333669,30 +275336,24 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(0.16652964f, 26.965057f, -98.31793f), 419) + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 1037043u, new Vector3(0.16652964f, 26.965057f, -98.31793f), 419) { StopDistance = 0.5f }; obj261.Steps = list341; reference267 = obj261; - num++; - ref QuestSequence reference268 = ref span333[num]; + ref QuestSequence reference268 = ref span87[5]; QuestSequence obj262 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj262.Steps = list342; reference268 = obj262; - num++; - ref QuestSequence reference269 = ref span333[num]; + ref QuestSequence reference269 = ref span87[6]; QuestSequence obj263 = new QuestSequence { Sequence = byte.MaxValue @@ -333700,9 +275361,7 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) + CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037015u, new Vector3(0.045776367f, 0f, -7.1260376f), 1001) { NextQuestId = new QuestId(4131) }; @@ -333715,26 +275374,22 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - Span span344 = CollectionsMarshal.AsSpan(list344); - index = 0; - span344[index] = "liza"; + CollectionsMarshal.AsSpan(list344)[0] = "liza"; questRoot30.Author = list344; - index = 7; - List list345 = new List(index); - CollectionsMarshal.SetCount(list345, index); - Span span345 = CollectionsMarshal.AsSpan(list345); - num = 0; - ref QuestSequence reference270 = ref span345[num]; + num = 7; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + Span span89 = CollectionsMarshal.AsSpan(list345); + ref QuestSequence reference270 = ref span89[0]; QuestSequence obj264 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list346 = new List(num2); + CollectionsMarshal.SetCount(list346, num2); + Span span90 = CollectionsMarshal.AsSpan(list346); + ref QuestStep reference271 = ref span90[0]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { StopDistance = 5f, @@ -333750,42 +275405,34 @@ public static class AssemblyQuestLoader num3 = 1; List list347 = new List(num3); CollectionsMarshal.SetCount(list347, num3); - Span span347 = CollectionsMarshal.AsSpan(list347); - index3 = 0; - span347[index3] = 1001; + CollectionsMarshal.AsSpan(list347)[0] = 1001; skipStepConditions9.InTerritory = list347; skipConditions14.StepIf = skipStepConditions9; SkipAetheryteCondition obj266 = new SkipAetheryteCondition { InSameTerritory = true }; - index3 = 1; - List list348 = new List(index3); - CollectionsMarshal.SetCount(list348, index3); - Span span348 = CollectionsMarshal.AsSpan(list348); - num3 = 0; - span348[num3] = 1001; + num3 = 1; + List list348 = new List(num3); + CollectionsMarshal.SetCount(list348, num3); + CollectionsMarshal.AsSpan(list348)[0] = 1001; obj266.InTerritory = list348; skipConditions14.AetheryteShortcutIf = obj266; obj265.SkipConditions = skipConditions14; num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - Span span349 = CollectionsMarshal.AsSpan(list349); - index3 = 0; - span349[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list349)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA551_04131_SYSTEM_000_501") }; obj265.DialogueChoices = list349; reference271 = obj265; - num2++; - span346[num2] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + span90[1] = new QuestStep(EInteractionType.AcceptQuest, 1037016u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj264.Steps = list346; reference270 = obj264; - num++; - ref QuestSequence reference272 = ref span345[num]; + ref QuestSequence reference272 = ref span89[1]; QuestSequence obj267 = new QuestSequence { Sequence = 1 @@ -333793,9 +275440,7 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - ref QuestStep reference273 = ref span350[index2]; + ref QuestStep reference273 = ref CollectionsMarshal.AsSpan(list350)[0]; QuestStep obj268 = new QuestStep(EInteractionType.SinglePlayerDuty, 1037045u, new Vector3(0.10675049f, 35.344906f, -188.58624f), 419) { AethernetShortcut = new AethernetShortcut @@ -333805,40 +275450,33 @@ public static class AssemblyQuestLoader } }; SinglePlayerDutyOptions singlePlayerDutyOptions4 = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions4.Notes = list351; obj268.SinglePlayerDutyOptions = singlePlayerDutyOptions4; reference273 = obj268; obj267.Steps = list350; reference272 = obj267; - num++; - span345[num] = new QuestSequence + span89[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference274 = ref span345[num]; + ref QuestSequence reference274 = ref span89[3]; QuestSequence obj269 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list352 = new List(index2); - CollectionsMarshal.SetCount(list352, index2); - Span span352 = CollectionsMarshal.AsSpan(list352); - num2 = 0; - ref QuestStep reference275 = ref span352[num2]; + num2 = 2; + List list352 = new List(num2); + CollectionsMarshal.SetCount(list352, num2); + Span span92 = CollectionsMarshal.AsSpan(list352); + ref QuestStep reference275 = ref span92[0]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 1011223u, new Vector3(114.579956f, 24.412834f, -11.062805f), 418) { AethernetShortcut = new AethernetShortcut @@ -333850,21 +275488,17 @@ public static class AssemblyQuestLoader num3 = 1; List list353 = new List(num3); CollectionsMarshal.SetCount(list353, num3); - Span span353 = CollectionsMarshal.AsSpan(list353); - index3 = 0; - span353[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list353)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKBA551_04131_SYSTEM_000_501") }; obj270.DialogueChoices = list353; reference275 = obj270; - num2++; - span352[num2] = new QuestStep(EInteractionType.Interact, 1038486u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); + span92[1] = new QuestStep(EInteractionType.Interact, 1038486u, new Vector3(1.1749268f, 0f, -6.3935547f), 1001); obj269.Steps = list352; reference274 = obj269; - num++; - ref QuestSequence reference276 = ref span345[num]; + ref QuestSequence reference276 = ref span89[4]; QuestSequence obj271 = new QuestSequence { Sequence = 4 @@ -333872,33 +275506,27 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - Span span354 = CollectionsMarshal.AsSpan(list354); - index2 = 0; - span354[index2] = new QuestStep(EInteractionType.Interact, 1037017u, new Vector3(-1.2664795f, 0f, -5.7526855f), 1001) + CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1037017u, new Vector3(-1.2664795f, 0f, -5.7526855f), 1001) { StopDistance = 5f }; obj271.Steps = list354; reference276 = obj271; - num++; - ref QuestSequence reference277 = ref span345[num]; + ref QuestSequence reference277 = ref span89[5]; QuestSequence obj272 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj272.Steps = list355; reference277 = obj272; - num++; - ref QuestSequence reference278 = ref span345[num]; + ref QuestSequence reference278 = ref span89[6]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue @@ -333906,9 +275534,7 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span356 = CollectionsMarshal.AsSpan(list356); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) + CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039101u, new Vector3(-168.07812f, 4.05f, -91.66095f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -333930,16 +275556,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -333947,27 +275570,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038504u, new Vector3(-357.62573f, 21.64856f, -95.99457f), 962); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038504u, new Vector3(-357.62573f, 21.64856f, -95.99457f), 962); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -333975,23 +275592,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4154) @@ -334005,16 +275617,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 2; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 2; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -334022,30 +275631,24 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list10 = new List(index2); - CollectionsMarshal.SetCount(list10, index2); - Span span10 = CollectionsMarshal.AsSpan(list10); - num2 = 0; - ref QuestStep reference7 = ref span10[num2]; + num2 = 2; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestStep reference7 = ref span3[0]; QuestStep questStep = new QuestStep(EInteractionType.Gather, null, null, 962); int num3 = 1; List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - Span span11 = CollectionsMarshal.AsSpan(list11); - int index3 = 0; - span11[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list11)[0] = new GatheredItem { ItemId = 35600u, ItemCount = 6, @@ -334053,8 +275656,7 @@ public static class AssemblyQuestLoader }; questStep.ItemsToGather = list11; reference7 = questStep; - num2++; - span10[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -334073,16 +275675,13 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "liza"; + CollectionsMarshal.AsSpan(list12)[0] = "liza"; questRoot3.Author = list12; - index = 2; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference8 = ref span13[num]; + num = 2; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span4 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference8 = ref span4[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -334090,30 +275689,24 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj7.Steps = list14; reference8 = obj7; - num++; - ref QuestSequence reference9 = ref span13[num]; + ref QuestSequence reference9 = ref span4[1]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference10 = ref span15[num2]; + num2 = 2; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference10 = ref span5[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Gather, null, null, 962); - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new GatheredItem + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new GatheredItem { ItemId = 35601u, ItemCount = 6, @@ -334121,8 +275714,7 @@ public static class AssemblyQuestLoader }; questStep2.ItemsToGather = list16; reference10 = questStep2; - num2++; - span15[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + span5[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -334141,16 +275733,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot4.Author = list17; - index = 2; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference11 = ref span18[num]; + num = 2; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span6 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference11 = ref span6[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -334158,30 +275747,24 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj9.Steps = list19; reference11 = obj9; - num++; - ref QuestSequence reference12 = ref span18[num]; + ref QuestSequence reference12 = ref span6[1]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference13 = ref span20[num2]; + num2 = 2; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span7 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference13 = ref span7[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 962); num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - index3 = 0; - span21[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list21)[0] = new GatheredItem { ItemId = 35602u, ItemCount = 6, @@ -334189,8 +275772,7 @@ public static class AssemblyQuestLoader }; questStep3.ItemsToGather = list21; reference13 = questStep3; - num2++; - span20[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -334209,16 +275791,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot5.Author = list22; - index = 8; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference14 = ref span23[num]; + num = 8; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span8 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference14 = ref span8[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -334226,23 +275805,18 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj11.Steps = list24; reference14 = obj11; - num++; - ref QuestSequence reference15 = ref span23[num]; + ref QuestSequence reference15 = ref span8[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334253,8 +275827,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list25; reference15 = obj12; - num++; - ref QuestSequence reference16 = ref span23[num]; + ref QuestSequence reference16 = ref span8[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 @@ -334262,9 +275835,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1038506u, new Vector3(-142.2904f, -4.7500057f, 199.6643f), 628) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1038506u, new Vector3(-142.2904f, -4.7500057f, 199.6643f), 628) { AethernetShortcut = new AethernetShortcut { @@ -334274,18 +275845,15 @@ public static class AssemblyQuestLoader }; obj13.Steps = list26; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span23[num]; + ref QuestSequence reference17 = ref span8[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -334295,8 +275863,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list27; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span8[4]; QuestSequence obj15 = new QuestSequence { Sequence = 4 @@ -334304,9 +275871,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.Interact, 2011720u, new Vector3(129.5033f, 24.979004f, 15.701477f), 628) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2011720u, new Vector3(129.5033f, 24.979004f, 15.701477f), 628) { AethernetShortcut = new AethernetShortcut { @@ -334316,33 +275881,28 @@ public static class AssemblyQuestLoader }; obj15.Steps = list28; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span8[5]; QuestSequence obj16 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list29 = new List(index2); - CollectionsMarshal.SetCount(list29, index2); - Span span29 = CollectionsMarshal.AsSpan(list29); - num2 = 0; - ref QuestStep reference20 = ref span29[num2]; + num2 = 2; + List list29 = new List(num2); + CollectionsMarshal.SetCount(list29, num2); + Span span9 = CollectionsMarshal.AsSpan(list29); + ref QuestStep reference20 = ref span9[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 628); - index3 = 1; - List list30 = new List(index3); - CollectionsMarshal.SetCount(list30, index3); - Span span30 = CollectionsMarshal.AsSpan(list30); - num3 = 0; - span30[num3] = new GatheredItem + num3 = 1; + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = new GatheredItem { ItemId = 35847u, ItemCount = 1 }; questStep4.ItemsToGather = list30; reference20 = questStep4; - num2++; - span29[num2] = new QuestStep(EInteractionType.Interact, 1038508u, new Vector3(114.70203f, 12f, 35.965454f), 628) + span9[1] = new QuestStep(EInteractionType.Interact, 1038508u, new Vector3(114.70203f, 12f, 35.965454f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -334353,8 +275913,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list29; reference19 = obj16; - num++; - ref QuestSequence reference21 = ref span23[num]; + ref QuestSequence reference21 = ref span8[6]; QuestSequence obj17 = new QuestSequence { Sequence = 6 @@ -334362,9 +275921,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.Interact, 1038510u, new Vector3(-92.24078f, 11.799999f, -156.05408f), 628) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.Interact, 1038510u, new Vector3(-92.24078f, 11.799999f, -156.05408f), 628) { AethernetShortcut = new AethernetShortcut { @@ -334374,18 +275931,15 @@ public static class AssemblyQuestLoader }; obj17.Steps = list31; reference21 = obj17; - num++; - ref QuestSequence reference22 = ref span23[num]; + ref QuestSequence reference22 = ref span8[7]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -334404,16 +275958,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot6.Author = list33; - index = 2; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference23 = ref span34[num]; + num = 2; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span10 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference23 = ref span10[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -334421,30 +275972,24 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj19.Steps = list35; reference23 = obj19; - num++; - ref QuestSequence reference24 = ref span34[num]; + ref QuestSequence reference24 = ref span10[1]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference25 = ref span36[num2]; + num2 = 2; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span11 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference25 = ref span11[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Gather, null, null, 962); num3 = 1; List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - Span span37 = CollectionsMarshal.AsSpan(list37); - index3 = 0; - span37[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list37)[0] = new GatheredItem { ItemId = 35603u, ItemCount = 6, @@ -334452,8 +275997,7 @@ public static class AssemblyQuestLoader }; questStep5.ItemsToGather = list37; reference25 = questStep5; - num2++; - span36[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + span11[1] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -334472,16 +276016,13 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "liza"; + CollectionsMarshal.AsSpan(list38)[0] = "liza"; questRoot7.Author = list38; - index = 5; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference26 = ref span39[num]; + num = 5; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span12 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference26 = ref span12[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -334489,38 +276030,31 @@ public static class AssemblyQuestLoader num2 = 1; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - span40[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); + CollectionsMarshal.AsSpan(list40)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962); obj21.Steps = list40; reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span39[num]; + ref QuestSequence reference27 = ref span12[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list41 = new List(index2); - CollectionsMarshal.SetCount(list41, index2); - Span span41 = CollectionsMarshal.AsSpan(list41); - num2 = 0; - ref QuestStep reference28 = ref span41[num2]; + num2 = 2; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + Span span13 = CollectionsMarshal.AsSpan(list41); + ref QuestStep reference28 = ref span13[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 962); - index3 = 1; - List list42 = new List(index3); - CollectionsMarshal.SetCount(list42, index3); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span42[num3] = new GatheredItem + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new GatheredItem { ItemId = 35848u, ItemCount = 1 }; questStep6.ItemsToGather = list42; reference28 = questStep6; - num2++; - span41[num2] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) + span13[1] = new QuestStep(EInteractionType.Interact, 1038503u, new Vector3(-367.0863f, 21.84602f, -101.701416f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -334531,8 +276065,7 @@ public static class AssemblyQuestLoader }; obj22.Steps = list41; reference27 = obj22; - num++; - ref QuestSequence reference29 = ref span39[num]; + ref QuestSequence reference29 = ref span12[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -334540,9 +276073,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1038512u, new Vector3(-73.47223f, -16.147001f, 191.27173f), 962) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1038512u, new Vector3(-73.47223f, -16.147001f, 191.27173f), 962) { AethernetShortcut = new AethernetShortcut { @@ -334552,18 +276083,15 @@ public static class AssemblyQuestLoader }; obj23.Steps = list43; reference29 = obj23; - num++; - ref QuestSequence reference30 = ref span39[num]; + ref QuestSequence reference30 = ref span12[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -334573,8 +276101,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list44; reference30 = obj24; - num++; - ref QuestSequence reference31 = ref span39[num]; + ref QuestSequence reference31 = ref span12[4]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -334582,9 +276109,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038501u, new Vector3(-367.3305f, 21.846018f, -102.983154f), 962) { StopDistance = 7f }; @@ -334597,26 +276122,20 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot8.Author = list46; - index = 1; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference32 = ref span47[num]; + num = 1; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + ref QuestSequence reference32 = ref CollectionsMarshal.AsSpan(list47)[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; @@ -334629,16 +276148,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot9.Author = list49; - index = 5; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference33 = ref span50[num]; + num = 5; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span14 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference33 = ref span14[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -334646,9 +276162,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1012155u, new Vector3(-63.21814f, 8.25915f, 28.732666f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -334661,18 +276175,15 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference33 = obj27; - num++; - ref QuestSequence reference34 = ref span50[num]; + ref QuestSequence reference34 = ref span14[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference35 = ref span52[num2]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1031682u, new Vector3(152.97156f, -20.000004f, 63.767456f), 418) { AethernetShortcut = new AethernetShortcut @@ -334684,9 +276195,7 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKYR103_04172_Q1_000_000") @@ -334695,13 +276204,11 @@ public static class AssemblyQuestLoader reference35 = obj29; obj28.Steps = list52; reference34 = obj28; - num++; - span50[num] = new QuestSequence + span14[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference36 = ref span50[num]; + ref QuestSequence reference36 = ref span14[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 @@ -334709,23 +276216,18 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1039506u, new Vector3(20.401245f, -16f, 159.96033f), 979); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1039506u, new Vector3(20.401245f, -16f, 159.96033f), 979); obj30.Steps = list54; reference36 = obj30; - num++; - ref QuestSequence reference37 = ref span50[num]; + ref QuestSequence reference37 = ref span14[4]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard }; @@ -334738,16 +276240,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot10.Author = list56; - index = 2; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference38 = ref span57[num]; + num = 2; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span15 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference38 = ref span15[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 @@ -334755,9 +276254,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041747u, new Vector3(56.65674f, -0.0004196167f, -24.765442f), 963) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041747u, new Vector3(56.65674f, -0.0004196167f, -24.765442f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, SkipConditions = new SkipConditions @@ -334770,18 +276267,15 @@ public static class AssemblyQuestLoader }; obj32.Steps = list58; reference38 = obj32; - num++; - ref QuestSequence reference39 = ref span57[num]; + ref QuestSequence reference39 = ref span15[1]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, NextQuestId = new QuestId(5005) @@ -334795,16 +276289,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "liza"; + CollectionsMarshal.AsSpan(list60)[0] = "liza"; questRoot11.Author = list60; - index = 2; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference40 = ref span61[num]; + num = 2; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span16 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference40 = ref span16[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -334812,9 +276303,7 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041960u, new Vector3(-1.9379272f, -7.758f, 42.282715f), 962) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041960u, new Vector3(-1.9379272f, -7.758f, 42.282715f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -334827,18 +276316,15 @@ public static class AssemblyQuestLoader }; obj34.Steps = list62; reference40 = obj34; - num++; - ref QuestSequence reference41 = ref span61[num]; + ref QuestSequence reference41 = ref span16[1]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4177) }; @@ -334851,16 +276337,13 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span64 = CollectionsMarshal.AsSpan(list64); - index = 0; - span64[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot12.Author = list64; - index = 2; - List list65 = new List(index); - CollectionsMarshal.SetCount(list65, index); - Span span65 = CollectionsMarshal.AsSpan(list65); - num = 0; - ref QuestSequence reference42 = ref span65[num]; + num = 2; + List list65 = new List(num); + CollectionsMarshal.SetCount(list65, num); + Span span17 = CollectionsMarshal.AsSpan(list65); + ref QuestSequence reference42 = ref span17[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -334868,9 +276351,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -334884,18 +276365,15 @@ public static class AssemblyQuestLoader }; obj36.Steps = list66; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span65[num]; + ref QuestSequence reference43 = ref span17[1]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4178) @@ -334909,16 +276387,13 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot13.Author = list68; - index = 2; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference44 = ref span69[num]; + num = 2; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span18 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference44 = ref span18[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -334926,9 +276401,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -334942,18 +276415,15 @@ public static class AssemblyQuestLoader }; obj38.Steps = list70; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span69[num]; + ref QuestSequence reference45 = ref span18[1]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4179) @@ -334967,16 +276437,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "liza"; + CollectionsMarshal.AsSpan(list72)[0] = "liza"; questRoot14.Author = list72; - index = 2; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference46 = ref span73[num]; + num = 2; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span19 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference46 = ref span19[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -334984,9 +276451,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037060u, new Vector3(25.894531f, -15.646991f, 99.68713f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -335000,18 +276465,15 @@ public static class AssemblyQuestLoader }; obj40.Steps = list74; reference46 = obj40; - num++; - ref QuestSequence reference47 = ref span73[num]; + ref QuestSequence reference47 = ref span19[1]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(5009) @@ -335025,16 +276487,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot15.Author = list76; - index = 4; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference48 = ref span77[num]; + num = 4; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span20 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference48 = ref span20[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 @@ -335042,23 +276501,18 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039336u, new Vector3(-175.61609f, 7.84433f, 68.92493f), 962); obj42.Steps = list78; reference48 = obj42; - num++; - ref QuestSequence reference49 = ref span77[num]; + ref QuestSequence reference49 = ref span20[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -335068,8 +276522,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list79; reference49 = obj43; - num++; - ref QuestSequence reference50 = ref span77[num]; + ref QuestSequence reference50 = ref span20[2]; QuestSequence obj44 = new QuestSequence { Sequence = 2 @@ -335077,26 +276530,21 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.Emote, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.Emote, 1039328u, new Vector3(-152.3919f, -16.147f, 209.46057f), 962) { Emote = EEmote.Poke }; obj44.Steps = list80; reference50 = obj44; - num++; - ref QuestSequence reference51 = ref span77[num]; + ref QuestSequence reference51 = ref span20[3]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -335114,16 +276562,13 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "liza"; + CollectionsMarshal.AsSpan(list82)[0] = "liza"; questRoot16.Author = list82; - index = 4; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference52 = ref span83[num]; + num = 4; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span21 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference52 = ref span21[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -335131,23 +276576,18 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037211u, new Vector3(36.209595f, 2.455876f, -22.90387f), 962); obj46.Steps = list84; reference52 = obj46; - num++; - ref QuestSequence reference53 = ref span83[num]; + ref QuestSequence reference53 = ref span21[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Comment = "Click ewer, head and feet", AethernetShortcut = new AethernetShortcut @@ -335158,8 +276598,7 @@ public static class AssemblyQuestLoader }; obj47.Steps = list85; reference53 = obj47; - num++; - ref QuestSequence reference54 = ref span83[num]; + ref QuestSequence reference54 = ref span21[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -335167,9 +276606,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.Interact, 1039349u, new Vector3(-49.485046f, -14.999998f, 253.34546f), 962) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.Interact, 1039349u, new Vector3(-49.485046f, -14.999998f, 253.34546f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -335180,18 +276617,15 @@ public static class AssemblyQuestLoader }; obj48.Steps = list86; reference54 = obj48; - num++; - ref QuestSequence reference55 = ref span83[num]; + ref QuestSequence reference55 = ref span21[3]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; @@ -335204,16 +276638,13 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "liza"; + CollectionsMarshal.AsSpan(list88)[0] = "liza"; questRoot17.Author = list88; - index = 3; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference56 = ref span89[num]; + num = 3; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span22 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference56 = ref span22[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -335221,23 +276652,19 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); obj50.Steps = list90; reference56 = obj50; - num++; - ref QuestSequence reference57 = ref span89[num]; + ref QuestSequence reference57 = ref span22[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference58 = ref span91[num2]; + num2 = 3; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + Span span23 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference58 = ref span23[0]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 1039340u, new Vector3(71.39697f, -14.446998f, 82.108765f), 962) { AethernetShortcut = new AethernetShortcut @@ -335246,26 +276673,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - 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); + 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); obj52.CompletionQuestVariablesFlags = list92; reference58 = obj52; - num2++; - ref QuestStep reference59 = ref span91[num2]; + ref QuestStep reference59 = ref span23[1]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1039338u, new Vector3(205.67627f, 1.5468291f, 22.690125f), 962) { AethernetShortcut = new AethernetShortcut @@ -335277,23 +276697,16 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - 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); + 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); obj53.CompletionQuestVariablesFlags = list93; reference59 = obj53; - num2++; - ref QuestStep reference60 = ref span91[num2]; + ref QuestStep reference60 = ref span23[2]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1039339u, new Vector3(-237.93402f, 12.289626f, 16.189758f), 962) { AethernetShortcut = new AethernetShortcut @@ -335302,28 +276715,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - 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); + 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); obj54.CompletionQuestVariablesFlags = list94; reference60 = obj54; obj51.Steps = list91; reference57 = obj51; - num++; - ref QuestSequence reference61 = ref span89[num]; + ref QuestSequence reference61 = ref span22[2]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -335331,9 +276737,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; @@ -335346,33 +276750,26 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot18.Author = list96; - index = 3; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference62 = ref span97[num]; + num = 3; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span27 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference62 = ref span27[0]; QuestSequence obj56 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list98 = new List(num2); + CollectionsMarshal.SetCount(list98, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list98)[0]; 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); - Span span99 = CollectionsMarshal.AsSpan(list99); - index3 = 0; - span99[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA004_04183_Q1_000_000"), @@ -335382,8 +276779,7 @@ public static class AssemblyQuestLoader reference63 = questStep7; obj56.Steps = list98; reference62 = obj56; - num++; - ref QuestSequence reference64 = ref span97[num]; + ref QuestSequence reference64 = ref span27[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -335391,9 +276787,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 1039342u, new Vector3(111.65027f, 18.835812f, -175.0058f), 962) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1039342u, new Vector3(111.65027f, 18.835812f, -175.0058f), 962) { AethernetShortcut = new AethernetShortcut { @@ -335403,18 +276797,15 @@ public static class AssemblyQuestLoader }; obj57.Steps = list100; reference64 = obj57; - num++; - ref QuestSequence reference65 = ref span97[num]; + ref QuestSequence reference65 = ref span27[2]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -335431,16 +276822,13 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot19.Author = list102; - index = 3; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference66 = ref span103[num]; + num = 3; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span28 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference66 = ref span28[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -335448,32 +276836,26 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - 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) + 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) { StopDistance = 0.25f }; obj59.Steps = list104; reference66 = obj59; - num++; - ref QuestSequence reference67 = ref span103[num]; + ref QuestSequence reference67 = ref span28[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj60.Steps = list105; reference67 = obj60; - num++; - ref QuestSequence reference68 = ref span103[num]; + ref QuestSequence reference68 = ref span28[2]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -335481,14 +276863,12 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957) + Span span30 = CollectionsMarshal.AsSpan(list106); + span30[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(193.6185f, 1.9123514f, 713.436f), 957) { Fly = true }; - index2++; - span106[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1037622u, new Vector3(189.94562f, 0.8560083f, 702.7896f), 957) { StopDistance = 0.25f }; @@ -335501,34 +276881,28 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot20.Author = list107; - index = 3; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference69 = ref span108[num]; + num = 3; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span31 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference69 = ref span31[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 1f, Fly = true }; obj62.Steps = list109; reference69 = obj62; - num++; - ref QuestSequence reference70 = ref span108[num]; + ref QuestSequence reference70 = ref span31[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -335536,36 +276910,29 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - ref QuestStep reference71 = ref span110[index2]; + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list110)[0]; QuestStep obj64 = new QuestStep(EInteractionType.Combat, null, new Vector3(13.657948f, 1.6567476f, 631.81714f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list111 = new List(index3); - CollectionsMarshal.SetCount(list111, index3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num3 = 0; - span111[num3] = 13527u; + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = 13527u; obj64.KillEnemyDataIds = list111; reference71 = obj64; obj63.Steps = list110; reference70 = obj63; - num++; - ref QuestSequence reference72 = ref span108[num]; + ref QuestSequence reference72 = ref span31[2]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 1f, Fly = true @@ -335579,16 +276946,13 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - Span span113 = CollectionsMarshal.AsSpan(list113); - index = 0; - span113[index] = "liza"; + CollectionsMarshal.AsSpan(list113)[0] = "liza"; questRoot21.Author = list113; - index = 5; - List list114 = new List(index); - CollectionsMarshal.SetCount(list114, index); - Span span114 = CollectionsMarshal.AsSpan(list114); - num = 0; - ref QuestSequence reference73 = ref span114[num]; + num = 5; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span32 = CollectionsMarshal.AsSpan(list114); + ref QuestSequence reference73 = ref span32[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -335596,30 +276960,24 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039375u, new Vector3(148.3634f, 5.192836f, 611.2611f), 957); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039375u, new Vector3(148.3634f, 5.192836f, 611.2611f), 957); obj66.Steps = list115; reference73 = obj66; - num++; - ref QuestSequence reference74 = ref span114[num]; + ref QuestSequence reference74 = ref span32[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj67.Steps = list116; reference74 = obj67; - num++; - ref QuestSequence reference75 = ref span114[num]; + ref QuestSequence reference75 = ref span32[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -335627,9 +276985,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - ref QuestStep reference76 = ref span117[index2]; + ref QuestStep reference76 = ref CollectionsMarshal.AsSpan(list117)[0]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2011900u, new Vector3(-17.135986f, 35.62976f, 394.39978f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -335637,29 +276993,23 @@ public static class AssemblyQuestLoader num3 = 1; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - index3 = 0; - span118[index3] = 14121u; + CollectionsMarshal.AsSpan(list118)[0] = 14121u; obj69.KillEnemyDataIds = list118; reference76 = obj69; obj68.Steps = list117; reference75 = obj68; - num++; - ref QuestSequence reference77 = ref span114[num]; + ref QuestSequence reference77 = ref span32[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj70.Steps = list119; reference77 = obj70; - num++; - ref QuestSequence reference78 = ref span114[num]; + ref QuestSequence reference78 = ref span32[4]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -335667,19 +277017,15 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - ref QuestStep reference79 = ref span120[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list120)[0]; QuestStep obj72 = new QuestStep(EInteractionType.CompleteQuest, 1039377u, new Vector3(147.60046f, 5.186336f, 610.62024f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - index3 = 1; - List list121 = new List(index3); - CollectionsMarshal.SetCount(list121, index3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = new DialogueChoice + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA019_04198_Q1_000_000"), @@ -335696,30 +277042,24 @@ public static class AssemblyQuestLoader num = 1; List list122 = new List(num); CollectionsMarshal.SetCount(list122, num); - Span span122 = CollectionsMarshal.AsSpan(list122); - index = 0; - span122[index] = "liza"; + CollectionsMarshal.AsSpan(list122)[0] = "liza"; questRoot22.Author = list122; - index = 4; - List list123 = new List(index); - CollectionsMarshal.SetCount(list123, index); - Span span123 = CollectionsMarshal.AsSpan(list123); - num = 0; - ref QuestSequence reference80 = ref span123[num]; + num = 4; + List list123 = new List(num); + CollectionsMarshal.SetCount(list123, num); + Span span33 = CollectionsMarshal.AsSpan(list123); + ref QuestSequence reference80 = ref span33[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj73.Steps = list124; reference80 = obj73; - num++; - ref QuestSequence reference81 = ref span123[num]; + ref QuestSequence reference81 = ref span33[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -335727,9 +277067,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - ref QuestStep reference82 = ref span125[index2]; + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list125)[0]; QuestStep obj75 = new QuestStep(EInteractionType.Combat, 1039378u, new Vector3(-103.25781f, 2.5712337f, 597.589f), 957) { Fly = true, @@ -335738,31 +277076,25 @@ public static class AssemblyQuestLoader num3 = 2; List list126 = new List(num3); CollectionsMarshal.SetCount(list126, num3); - Span span126 = CollectionsMarshal.AsSpan(list126); - index3 = 0; - span126[index3] = 14119u; - index3++; - span126[index3] = 14120u; + Span span34 = CollectionsMarshal.AsSpan(list126); + span34[0] = 14119u; + span34[1] = 14120u; obj75.KillEnemyDataIds = list126; reference82 = obj75; obj74.Steps = list125; reference81 = obj74; - num++; - ref QuestSequence reference83 = ref span123[num]; + ref QuestSequence reference83 = ref span33[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj76.Steps = list127; reference83 = obj76; - num++; - ref QuestSequence reference84 = ref span123[num]; + ref QuestSequence reference84 = ref span33[3]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -335770,9 +277102,7 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037682u, new Vector3(-564.1108f, 11.802608f, 124.28467f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -335790,16 +277120,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -335807,27 +277134,22 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) { StopDistance = 0.5f, Fly = true }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1039384u, new Vector3(223.22424f, 10.211119f, 562.4321f), 957) { Fly = true, @@ -335836,9 +277158,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA021_04200_Q1_000_000"), @@ -335848,8 +277168,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -335857,9 +277176,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037671u, new Vector3(-554.37555f, 1.120665f, 22.690125f), 957) { StopDistance = 0.5f, Fly = true, @@ -335874,33 +277191,27 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 3; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 3; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -335908,35 +277219,27 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - ref QuestStep reference7 = ref span10[index2]; + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestStep reference7 = ref span3[0]; QuestStep obj7 = new QuestStep(EInteractionType.Emote, 1037680u, new Vector3(-550.1946f, 1.6023201f, 50.766724f), 957) { StopDistance = 1f, Fly = true, Emote = EEmote.Greeting }; - 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); + 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); obj7.CompletionQuestVariablesFlags = list11; reference7 = obj7; - index2++; - ref QuestStep reference8 = ref span10[index2]; + ref QuestStep reference8 = ref span3[1]; QuestStep obj8 = new QuestStep(EInteractionType.Emote, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { Fly = true, @@ -335945,60 +277248,44 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - 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); + 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); obj8.CompletionQuestVariablesFlags = list12; reference8 = obj8; - index2++; - ref QuestStep reference9 = ref span10[index2]; + ref QuestStep reference9 = ref span3[2]; QuestStep obj9 = new QuestStep(EInteractionType.Emote, 1037676u, new Vector3(-502.95264f, 12.375282f, 116.31946f), 957) { Fly = true, Emote = EEmote.Greeting }; - 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); + 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); obj9.CompletionQuestVariablesFlags = list13; reference9 = obj9; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference10 = ref span8[num]; + ref QuestSequence reference10 = ref span2[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -336011,16 +277298,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot3.Author = list15; - index = 6; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 6; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span7 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span7[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -336028,9 +277312,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - ref QuestStep reference12 = ref span17[index2]; + ref QuestStep reference12 = ref CollectionsMarshal.AsSpan(list17)[0]; QuestStep obj12 = new QuestStep(EInteractionType.AcceptQuest, 1039379u, new Vector3(-478.3246f, 39.636753f, 95.47571f), 957) { Fly = true @@ -336038,9 +277320,7 @@ public static class AssemblyQuestLoader num3 = 1; List list18 = new List(num3); CollectionsMarshal.SetCount(list18, num3); - Span span18 = CollectionsMarshal.AsSpan(list18); - index3 = 0; - span18[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA023_04202_Q1_000_000"), @@ -336050,25 +277330,21 @@ public static class AssemblyQuestLoader reference12 = obj12; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span7[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span7[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -336076,39 +277352,31 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span16[num]; + ref QuestSequence reference15 = ref span7[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list21 = new List(index2); - CollectionsMarshal.SetCount(list21, index2); - Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - ref QuestStep reference16 = ref span21[num2]; + num2 = 1; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list21)[0]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, 2011911u, new Vector3(-387.28925f, 21.744019f, 208.88062f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list22 = new List(index3); - CollectionsMarshal.SetCount(list22, index3); - Span span22 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span22[num3] = 14118u; + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = 14118u; obj16.KillEnemyDataIds = list22; reference16 = obj16; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference17 = ref span16[num]; + ref QuestSequence reference17 = ref span7[4]; QuestSequence obj17 = new QuestSequence { Sequence = 4 @@ -336116,23 +277384,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1039380u, new Vector3(-386.862f, 21.832859f, 206.77502f), 957); obj17.Steps = list23; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span16[num]; + ref QuestSequence reference18 = ref span7[5]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -336145,16 +277408,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; questRoot4.Author = list25; - index = 5; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference19 = ref span26[num]; + num = 5; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span8 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference19 = ref span8[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -336162,32 +277422,26 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957); obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span26[num]; + ref QuestSequence reference20 = ref span8[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference21 = ref span26[num]; + ref QuestSequence reference21 = ref span8[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -336195,113 +277449,81 @@ public static class AssemblyQuestLoader num2 = 4; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - ref QuestStep reference22 = ref span29[index2]; + Span span10 = CollectionsMarshal.AsSpan(list29); + ref QuestStep reference22 = ref span10[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list30; reference22 = questStep; - index2++; - ref QuestStep reference23 = ref span29[index2]; + ref QuestStep reference23 = ref span10[1]; QuestStep questStep2 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(61.000668f, 94.60124f, -159.90234f), 957); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list31; skipConditions.StepIf = skipStepConditions; questStep2.SkipConditions = skipConditions; reference23 = questStep2; - index2++; - ref QuestStep reference24 = ref span29[index2]; + ref QuestStep reference24 = ref span10[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2011914u, null, 957); num3 = 6; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; - index2++; - ref QuestStep reference25 = ref span29[index2]; + ref QuestStep reference25 = ref span10[3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2011913u, new Vector3(79.51477f, 93.0647f, -157.09167f), 957); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list33; reference25 = questStep4; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference26 = ref span26[num]; + ref QuestSequence reference26 = ref span8[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj22.Steps = list34; reference26 = obj22; - num++; - ref QuestSequence reference27 = ref span26[num]; + ref QuestSequence reference27 = ref span8[4]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -336309,9 +277531,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037670u, new Vector3(-508.84262f, -3.7109916E-05f, -20.767578f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -336324,33 +277544,27 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot5.Author = list36; - index = 6; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference28 = ref span37[num]; + num = 6; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span15 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference28 = ref span15[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj24.Steps = list38; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span37[num]; + ref QuestSequence reference29 = ref span15[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -336358,33 +277572,27 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1039366u, new Vector3(-385.24457f, 15.095761f, 62.974f), 957) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1039366u, new Vector3(-385.24457f, 15.095761f, 62.974f), 957) { Fly = true }; obj25.Steps = list39; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span15[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj26.Steps = list40; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span37[num]; + ref QuestSequence reference31 = ref span15[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -336392,51 +277600,36 @@ public static class AssemblyQuestLoader num2 = 3; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref QuestStep reference32 = ref span41[index2]; + Span span16 = CollectionsMarshal.AsSpan(list41); + ref QuestStep reference32 = ref span16[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list42; reference32 = questStep5; - index2++; - ref QuestStep reference33 = ref span41[index2]; + ref QuestStep reference33 = ref span16[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2011904u, new Vector3(-148.57715f, 34.10388f, 207.84314f), 957); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list43; reference33 = questStep6; - index2++; - ref QuestStep reference34 = ref span41[index2]; + ref QuestStep reference34 = ref span16[2]; QuestStep obj28 = new QuestStep(EInteractionType.Combat, 2011902u, new Vector3(-170.21442f, 31.814941f, 193.1029f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -336444,46 +277637,34 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span44 = CollectionsMarshal.AsSpan(list44); - index3 = 0; - span44[index3] = 14117u; + CollectionsMarshal.AsSpan(list44)[0] = 14117u; obj28.KillEnemyDataIds = list44; - 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); + 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); obj28.CompletionQuestVariablesFlags = list45; reference34 = obj28; obj27.Steps = list41; reference31 = obj27; - num++; - ref QuestSequence reference35 = ref span37[num]; + ref QuestSequence reference35 = ref span15[4]; QuestSequence obj29 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj29.Steps = list46; reference35 = obj29; - num++; - ref QuestSequence reference36 = ref span37[num]; + ref QuestSequence reference36 = ref span15[5]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -336491,9 +277672,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039365u, new Vector3(-490.37924f, 5.667216f, 63.553833f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -336507,33 +277686,27 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot6.Author = list48; - index = 5; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference37 = ref span49[num]; + num = 5; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span20 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference37 = ref span20[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj31.Steps = list50; reference37 = obj31; - num++; - ref QuestSequence reference38 = ref span49[num]; + ref QuestSequence reference38 = ref span20[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -336541,26 +277714,21 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1039372u, new Vector3(195.91052f, 4.763736f, 658.2893f), 957) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1039372u, new Vector3(195.91052f, 4.763736f, 658.2893f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj32.Steps = list51; reference38 = obj32; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span20[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference40 = ref span52[num2]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep obj34 = new QuestStep(EInteractionType.Interact, 1039373u, new Vector3(-314.6258f, 0.70631444f, 561.12f), 957) { Fly = true @@ -336568,9 +277736,7 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA026_04205_Q1_000_000"), @@ -336580,8 +277746,7 @@ public static class AssemblyQuestLoader reference40 = obj34; obj33.Steps = list52; reference39 = obj33; - num++; - ref QuestSequence reference41 = ref span49[num]; + ref QuestSequence reference41 = ref span20[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -336589,33 +277754,25 @@ public static class AssemblyQuestLoader num2 = 6; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - ref QuestStep reference42 = ref span54[index2]; + Span span21 = CollectionsMarshal.AsSpan(list54); + ref QuestStep reference42 = ref span21[0]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 2011905u, new Vector3(-443.04572f, -0.22894287f, 800.7781f), 957) { Fly = true }; - 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); + 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); obj36.CompletionQuestVariablesFlags = list55; reference42 = obj36; - index2++; - ref QuestStep reference43 = ref span54[index2]; + ref QuestStep reference43 = ref span21[1]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 2011906u, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) { Mount = false @@ -336623,103 +277780,72 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - 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); + 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); obj37.CompletionQuestVariablesFlags = list56; reference43 = obj37; - index2++; - span54[index2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) + span21[2] = new QuestStep(EInteractionType.Dive, null, new Vector3(-458.42682f, -0.19836426f, 830.8689f), 957) { StopDistance = 5f }; - index2++; - ref QuestStep reference44 = ref span54[index2]; + ref QuestStep reference44 = ref span21[3]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2011908u, new Vector3(-484.85547f, -72.22095f, 814.35876f), 957); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list57; reference44 = questStep7; - index2++; - ref QuestStep reference45 = ref span54[index2]; + ref QuestStep reference45 = ref span21[4]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list58; reference45 = questStep8; - index2++; - ref QuestStep reference46 = ref span54[index2]; + ref QuestStep reference46 = ref span21[5]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2011909u, new Vector3(-513.51184f, -52.689453f, 773.73914f), 957); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list59; reference46 = questStep9; obj35.Steps = list54; reference41 = obj35; - num++; - ref QuestSequence reference47 = ref span49[num]; + ref QuestSequence reference47 = ref span20[4]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -336733,16 +277859,13 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot7.Author = list61; - index = 4; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference48 = ref span62[num]; + num = 4; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span27 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference48 = ref span27[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -336750,26 +277873,21 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037685u, new Vector3(-468.864f, 6.2912574f, 3.463745f), 957) { Fly = true }; obj39.Steps = list63; reference48 = obj39; - num++; - ref QuestSequence reference49 = ref span62[num]; + ref QuestSequence reference49 = ref span27[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list64 = new List(index2); - CollectionsMarshal.SetCount(list64, index2); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref QuestStep reference50 = ref span64[num2]; + num2 = 1; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list64)[0]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-568.1513f, 40.91181f, -451.32486f), 957) { StopDistance = 0.5f, @@ -336779,15 +277897,12 @@ public static class AssemblyQuestLoader num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span65 = CollectionsMarshal.AsSpan(list65); - index3 = 0; - span65[index3] = 14116u; + CollectionsMarshal.AsSpan(list65)[0] = 14116u; obj41.KillEnemyDataIds = list65; reference50 = obj41; obj40.Steps = list64; reference49 = obj40; - num++; - ref QuestSequence reference51 = ref span62[num]; + ref QuestSequence reference51 = ref span27[2]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -336795,23 +277910,18 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.Interact, 1039383u, new Vector3(-567.6509f, 41.313267f, -448.41687f), 957); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1039383u, new Vector3(-567.6509f, 41.313267f, -448.41687f), 957); obj42.Steps = list66; reference51 = obj42; - num++; - ref QuestSequence reference52 = ref span62[num]; + ref QuestSequence reference52 = ref span27[3]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -336825,16 +277935,13 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot8.Author = list68; - index = 5; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference53 = ref span69[num]; + num = 5; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span28 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference53 = ref span28[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -336842,34 +277949,28 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) { StopDistance = 0.5f, Fly = true }; obj44.Steps = list70; reference53 = obj44; - num++; - ref QuestSequence reference54 = ref span69[num]; + ref QuestSequence reference54 = ref span28[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj45.Steps = list71; reference54 = obj45; - num++; - ref QuestSequence reference55 = ref span69[num]; + ref QuestSequence reference55 = ref span28[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -336877,34 +277978,26 @@ public static class AssemblyQuestLoader num2 = 9; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - ref QuestStep reference56 = ref span72[index2]; + Span span29 = CollectionsMarshal.AsSpan(list72); + ref QuestStep reference56 = ref span29[0]; QuestStep questStep10 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-477.78827f, 73.67918f, -542.7145f), 957); SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list73; skipConditions2.StepIf = skipStepConditions2; questStep10.SkipConditions = skipConditions2; reference56 = questStep10; - index2++; - ref QuestStep reference57 = ref span72[index2]; + ref QuestStep reference57 = ref span29[1]; QuestStep obj47 = new QuestStep(EInteractionType.UseItem, 2011962u, new Vector3(-477.16492f, 74.75391f, -544.5792f), 957) { ItemId = 2003199u @@ -336912,97 +278005,69 @@ public static class AssemblyQuestLoader num3 = 6; List list74 = new List(num3); CollectionsMarshal.SetCount(list74, num3); - 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); + 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); obj47.CompletionQuestVariablesFlags = list74; reference57 = obj47; - index2++; - ref QuestStep reference58 = ref span72[index2]; + ref QuestStep reference58 = ref span29[2]; QuestStep obj48 = new QuestStep(EInteractionType.UseItem, 2011963u, new Vector3(-479.2401f, 74.784424f, -541.619f), 957) { DelaySecondsAtStart = 3f, ItemId = 2003199u }; - 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); + 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); obj48.CompletionQuestVariablesFlags = list75; reference58 = obj48; - index2++; - ref QuestStep reference59 = ref span72[index2]; + ref QuestStep reference59 = ref span29[3]; 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 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list76; skipConditions3.StepIf = skipStepConditions3; questStep11.SkipConditions = skipConditions3; reference59 = questStep11; - index2++; - ref QuestStep reference60 = ref span72[index2]; + ref QuestStep reference60 = ref span29[4]; QuestStep obj49 = new QuestStep(EInteractionType.UseItem, 2011964u, new Vector3(-484.67236f, 74.021484f, -523.15564f), 957) { ItemId = 2003199u }; - 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); + 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); obj49.CompletionQuestVariablesFlags = list77; reference60 = obj49; - index2++; - ref QuestStep reference61 = ref span72[index2]; + ref QuestStep reference61 = ref span29[5]; QuestStep obj50 = new QuestStep(EInteractionType.UseItem, 2011965u, new Vector3(-483.6042f, 74.35718f, -519.7986f), 957) { DelaySecondsAtStart = 3f, @@ -337011,49 +278076,34 @@ public static class AssemblyQuestLoader num3 = 6; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - 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); + 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); obj50.CompletionQuestVariablesFlags = list78; reference61 = obj50; - index2++; - span72[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.0877f, 73.24273f, -512.62787f), 957); - index2++; - ref QuestStep reference62 = ref span72[index2]; + span29[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-475.0877f, 73.24273f, -512.62787f), 957); + ref QuestStep reference62 = ref span29[7]; QuestStep obj51 = new QuestStep(EInteractionType.UseItem, 2011967u, new Vector3(-476.92078f, 74.08252f, -511.43665f), 957) { ItemId = 2003199u }; - 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); + 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); obj51.CompletionQuestVariablesFlags = list79; reference62 = obj51; - index2++; - ref QuestStep reference63 = ref span72[index2]; + ref QuestStep reference63 = ref span29[8]; QuestStep obj52 = new QuestStep(EInteractionType.UseItem, 2011966u, new Vector3(-473.0144f, 74.32666f, -512.3827f), 957) { DelaySecondsAtStart = 3f, @@ -337062,42 +278112,32 @@ public static class AssemblyQuestLoader num3 = 6; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - 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); + 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); obj52.CompletionQuestVariablesFlags = list80; reference63 = obj52; obj46.Steps = list72; reference55 = obj46; - num++; - ref QuestSequence reference64 = ref span69[num]; + ref QuestSequence reference64 = ref span28[3]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj53.Steps = list81; reference64 = obj53; - num++; - ref QuestSequence reference65 = ref span69[num]; + ref QuestSequence reference65 = ref span28[4]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -337105,9 +278145,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039385u, new Vector3(-480.12518f, 5.362214f, 37.582886f), 957) { StopDistance = 0.5f, Fly = true, @@ -337122,30 +278160,24 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "liza"; + CollectionsMarshal.AsSpan(list83)[0] = "liza"; questRoot9.Author = list83; - index = 3; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference66 = ref span84[num]; + num = 3; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span38 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference66 = ref span38[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj55.Steps = list85; reference66 = obj55; - num++; - ref QuestSequence reference67 = ref span84[num]; + ref QuestSequence reference67 = ref span38[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -337153,87 +278185,63 @@ public static class AssemblyQuestLoader num2 = 3; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - ref QuestStep reference68 = ref span86[index2]; + Span span39 = CollectionsMarshal.AsSpan(list86); + ref QuestStep reference68 = ref span39[0]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1039370u, new Vector3(-106.21808f, 95.53504f, -700.4959f), 957) { Fly = true }; - 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); + 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); obj57.CompletionQuestVariablesFlags = list87; reference68 = obj57; - index2++; - ref QuestStep reference69 = ref span86[index2]; + ref QuestStep reference69 = ref span39[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list88; reference69 = questStep12; - index2++; - ref QuestStep reference70 = ref span86[index2]; + ref QuestStep reference70 = ref span39[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1039369u, new Vector3(-66.14789f, 89.4264f, -635.8892f), 957); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list89; reference70 = questStep13; obj56.Steps = list86; reference67 = obj56; - num++; - ref QuestSequence reference71 = ref span84[num]; + ref QuestSequence reference71 = ref span38[2]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -337247,16 +278255,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot10.Author = list91; - index = 3; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference72 = ref span92[num]; + num = 3; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span43 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference72 = ref span43[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -337264,35 +278269,29 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) { Fly = true }; obj59.Steps = list93; reference72 = obj59; - num++; - ref QuestSequence reference73 = ref span92[num]; + ref QuestSequence reference73 = ref span43[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span94[num2] = new QuestStep(EInteractionType.Interact, 2011910u, new Vector3(-280.99493f, 95.87244f, -287.64783f), 957); + span44[1] = new QuestStep(EInteractionType.Interact, 2011910u, new Vector3(-280.99493f, 95.87244f, -287.64783f), 957); obj60.Steps = list94; reference73 = obj60; - num++; - ref QuestSequence reference74 = ref span92[num]; + ref QuestSequence reference74 = ref span43[2]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -337300,9 +278299,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037681u, new Vector3(-554.74176f, 11.402611f, 137.31592f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork @@ -337316,30 +278313,24 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot11.Author = list96; - index = 5; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference75 = ref span97[num]; + num = 5; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span45 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference75 = ref span45[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj62.Steps = list98; reference75 = obj62; - num++; - ref QuestSequence reference76 = ref span97[num]; + ref QuestSequence reference76 = ref span45[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -337347,37 +278338,30 @@ public static class AssemblyQuestLoader num2 = 3; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span99[index2] = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); + span46[2] = new QuestStep(EInteractionType.Interact, 1039346u, new Vector3(-188.922f, 23.49104f, -181.90283f), 962); obj63.Steps = list99; reference76 = obj63; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span45[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2003114u }; obj64.Steps = list100; reference77 = obj64; - num++; - ref QuestSequence reference78 = ref span97[num]; + ref QuestSequence reference78 = ref span45[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -337385,16 +278369,12 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - ref QuestStep reference79 = ref span101[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list101)[0]; 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); - Span span102 = CollectionsMarshal.AsSpan(list102); - index3 = 0; - span102[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list102)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC001_04210_Q1_000_000"), @@ -337404,18 +278384,15 @@ public static class AssemblyQuestLoader reference79 = questStep14; obj65.Steps = list101; reference78 = obj65; - num++; - ref QuestSequence reference80 = ref span97[num]; + ref QuestSequence reference80 = ref span45[4]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -337433,16 +278410,13 @@ public static class AssemblyQuestLoader num = 1; List list104 = new List(num); CollectionsMarshal.SetCount(list104, num); - Span span104 = CollectionsMarshal.AsSpan(list104); - index = 0; - span104[index] = "liza"; + CollectionsMarshal.AsSpan(list104)[0] = "liza"; questRoot12.Author = list104; - index = 4; - List list105 = new List(index); - CollectionsMarshal.SetCount(list105, index); - Span span105 = CollectionsMarshal.AsSpan(list105); - num = 0; - ref QuestSequence reference81 = ref span105[num]; + num = 4; + List list105 = new List(num); + CollectionsMarshal.SetCount(list105, num); + Span span47 = CollectionsMarshal.AsSpan(list105); + ref QuestSequence reference81 = ref span47[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -337450,27 +278424,21 @@ public static class AssemblyQuestLoader num2 = 1; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.AcceptQuest, 2011795u, new Vector3(-104.32593f, 24.673828f, -120.042725f), 962); + CollectionsMarshal.AsSpan(list106)[0] = new QuestStep(EInteractionType.AcceptQuest, 2011795u, new Vector3(-104.32593f, 24.673828f, -120.042725f), 962); obj67.Steps = list106; reference81 = obj67; - num++; - ref QuestSequence reference82 = ref span105[num]; + ref QuestSequence reference82 = ref span47[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj68.Steps = list107; reference82 = obj68; - num++; - ref QuestSequence reference83 = ref span105[num]; + ref QuestSequence reference83 = ref span47[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 @@ -337478,23 +278446,18 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1039509u, new Vector3(42.06909f, 2.4514537f, -11.062805f), 962); obj69.Steps = list108; reference83 = obj69; - num++; - ref QuestSequence reference84 = ref span105[num]; + ref QuestSequence reference84 = ref span47[3]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj70.Steps = list109; reference84 = obj70; questRoot12.QuestSequence = list105; @@ -337504,16 +278467,13 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "liza"; + CollectionsMarshal.AsSpan(list110)[0] = "liza"; questRoot13.Author = list110; - index = 3; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference85 = ref span111[num]; + num = 3; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span48 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference85 = ref span48[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -337521,23 +278481,18 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962); + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962); obj71.Steps = list112; reference85 = obj71; - num++; - ref QuestSequence reference86 = ref span111[num]; + ref QuestSequence reference86 = ref span48[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -337547,8 +278502,7 @@ public static class AssemblyQuestLoader }; obj72.Steps = list113; reference86 = obj72; - num++; - ref QuestSequence reference87 = ref span111[num]; + ref QuestSequence reference87 = ref span48[2]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue @@ -337556,9 +278510,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037104u, new Vector3(-326.07007f, 20.1375f, -142.56512f), 962) { AethernetShortcut = new AethernetShortcut { @@ -337575,33 +278527,26 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; questRoot14.Author = list115; - index = 3; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference88 = ref span116[num]; + num = 3; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span49 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference88 = ref span49[0]; QuestSequence obj74 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list117 = new List(num2); + CollectionsMarshal.SetCount(list117, num2); + ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list117)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.AcceptQuest, 1041286u, new Vector3(-230.51807f, 21.437386f, -119.46289f), 962); - index3 = 1; - List list118 = new List(index3); - CollectionsMarshal.SetCount(list118, index3); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - span118[num3] = new DialogueChoice + num3 = 1; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + CollectionsMarshal.AsSpan(list118)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC004_04213_Q1_000_000"), @@ -337611,8 +278556,7 @@ public static class AssemblyQuestLoader reference89 = questStep15; obj74.Steps = list117; reference88 = obj74; - num++; - ref QuestSequence reference90 = ref span116[num]; + ref QuestSequence reference90 = ref span49[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 @@ -337620,9 +278564,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 1041285u, new Vector3(115.80066f, 14.741594f, -132.03638f), 962) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1041285u, new Vector3(115.80066f, 14.741594f, -132.03638f), 962) { AethernetShortcut = new AethernetShortcut { @@ -337632,18 +278574,15 @@ public static class AssemblyQuestLoader }; obj75.Steps = list119; reference90 = obj75; - num++; - ref QuestSequence reference91 = ref span116[num]; + ref QuestSequence reference91 = ref span49[2]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -337660,16 +278599,13 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "liza"; + CollectionsMarshal.AsSpan(list121)[0] = "liza"; questRoot15.Author = list121; - index = 7; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num = 0; - ref QuestSequence reference92 = ref span122[num]; + num = 7; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + Span span50 = CollectionsMarshal.AsSpan(list122); + ref QuestSequence reference92 = ref span50[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -337677,16 +278613,12 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - ref QuestStep reference93 = ref span123[index2]; + ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list123)[0]; 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); - Span span124 = CollectionsMarshal.AsSpan(list124); - index3 = 0; - span124[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list124)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZC005_04214_Q1_000_000") @@ -337695,22 +278627,18 @@ public static class AssemblyQuestLoader reference93 = questStep16; obj77.Steps = list123; reference92 = obj77; - num++; - ref QuestSequence reference94 = ref span122[num]; + ref QuestSequence reference94 = ref span50[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj78.Steps = list125; reference94 = obj78; - num++; - ref QuestSequence reference95 = ref span122[num]; + ref QuestSequence reference95 = ref span50[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -337718,31 +278646,25 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Emote, 2012434u, new Vector3(-168.32227f, 21.927185f, -151.29321f), 962) + CollectionsMarshal.AsSpan(list126)[0] = 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; - num++; - ref QuestSequence reference96 = ref span122[num]; + ref QuestSequence reference96 = ref span50[3]; QuestSequence obj80 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj80.Steps = list127; reference96 = obj80; - num++; - ref QuestSequence reference97 = ref span122[num]; + ref QuestSequence reference97 = ref span50[4]; QuestSequence obj81 = new QuestSequence { Sequence = 4 @@ -337750,30 +278672,23 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.Interact, 1037098u, new Vector3(-94.83484f, 6.617f, -41.58087f), 962); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1037098u, new Vector3(-94.83484f, 6.617f, -41.58087f), 962); obj81.Steps = list128; reference97 = obj81; - num++; - ref QuestSequence reference98 = ref span122[num]; + ref QuestSequence reference98 = ref span50[5]; QuestSequence obj82 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list129 = new List(index2); - CollectionsMarshal.SetCount(list129, index2); - Span span129 = CollectionsMarshal.AsSpan(list129); - num2 = 0; - ref QuestStep reference99 = ref span129[num2]; + num2 = 1; + List list129 = new List(num2); + CollectionsMarshal.SetCount(list129, num2); + ref QuestStep reference99 = ref CollectionsMarshal.AsSpan(list129)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1041288u, new Vector3(-169.51251f, 21.975235f, -152.26978f), 962); - index3 = 1; - List list130 = new List(index3); - CollectionsMarshal.SetCount(list130, index3); - Span span130 = CollectionsMarshal.AsSpan(list130); - num3 = 0; - span130[num3] = new DialogueChoice + num3 = 1; + List list130 = new List(num3); + CollectionsMarshal.SetCount(list130, num3); + CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC005_04214_Q2_000_000"), @@ -337783,8 +278698,7 @@ public static class AssemblyQuestLoader reference99 = questStep17; obj82.Steps = list129; reference98 = obj82; - num++; - ref QuestSequence reference100 = ref span122[num]; + ref QuestSequence reference100 = ref span50[6]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -337792,9 +278706,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041287u, new Vector3(-307.3625f, 22.3f, -143.29755f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -337812,30 +278724,24 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot16.Author = list132; - index = 3; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference101 = ref span133[num]; + num = 3; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span51 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference101 = ref span51[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj84.Steps = list134; reference101 = obj84; - num++; - ref QuestSequence reference102 = ref span133[num]; + ref QuestSequence reference102 = ref span51[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -337843,62 +278749,47 @@ public static class AssemblyQuestLoader num2 = 7; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - ref QuestStep reference103 = ref span135[index2]; + Span span52 = CollectionsMarshal.AsSpan(list135); + ref QuestStep reference103 = ref span52[0]; 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 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list136; skipConditions4.StepIf = skipStepConditions4; questStep18.SkipConditions = skipConditions4; reference103 = questStep18; - index2++; - ref QuestStep reference104 = ref span135[index2]; + ref QuestStep reference104 = ref span52[1]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list137; skipConditions5.StepIf = skipStepConditions5; obj86.SkipConditions = skipConditions5; reference104 = obj86; - index2++; - ref QuestStep reference105 = ref span135[index2]; + ref QuestStep reference105 = ref span52[2]; QuestStep obj87 = new QuestStep(EInteractionType.UseItem, 1041289u, new Vector3(-265.919f, 12.623348f, 102.86096f), 962) { ItemId = 2003288u, @@ -337907,48 +278798,34 @@ public static class AssemblyQuestLoader num3 = 6; List list138 = new List(num3); CollectionsMarshal.SetCount(list138, num3); - 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); + 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); obj87.CompletionQuestVariablesFlags = list138; reference105 = obj87; - index2++; - ref QuestStep reference106 = ref span135[index2]; + ref QuestStep reference106 = ref span52[3]; QuestStep obj88 = new QuestStep(EInteractionType.UseItem, 1041290u, new Vector3(-291.49316f, 12.68306f, 127.45862f), 962) { ItemId = 2003288u, GroundTarget = true }; - 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); + 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); obj88.CompletionQuestVariablesFlags = list139; reference106 = obj88; - index2++; - ref QuestStep reference107 = ref span135[index2]; + ref QuestStep reference107 = ref span52[4]; QuestStep obj89 = new QuestStep(EInteractionType.UseItem, 1041291u, new Vector3(-155.77942f, 11.71745f, -52.628357f), 962) { ItemId = 2003288u, @@ -337957,48 +278834,34 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - 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); + 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); obj89.CompletionQuestVariablesFlags = list140; reference107 = obj89; - index2++; - ref QuestStep reference108 = ref span135[index2]; + ref QuestStep reference108 = ref span52[5]; QuestStep obj90 = new QuestStep(EInteractionType.UseItem, 1041292u, new Vector3(-147.50903f, 12.490502f, -87.052734f), 962) { ItemId = 2003288u, GroundTarget = true }; - 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); + 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); obj90.CompletionQuestVariablesFlags = list141; reference108 = obj90; - index2++; - ref QuestStep reference109 = ref span135[index2]; + ref QuestStep reference109 = ref span52[6]; QuestStep obj91 = new QuestStep(EInteractionType.UseItem, 1041293u, new Vector3(-107.86603f, 18.024683f, -71.33594f), 962) { ItemId = 2003288u, @@ -338007,35 +278870,26 @@ public static class AssemblyQuestLoader num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - 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); + 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); obj91.CompletionQuestVariablesFlags = list142; reference109 = obj91; obj85.Steps = list135; reference102 = obj85; - num++; - ref QuestSequence reference110 = ref span133[num]; + ref QuestSequence reference110 = ref span51[2]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -338052,16 +278906,13 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - span144[index] = "liza"; + CollectionsMarshal.AsSpan(list144)[0] = "liza"; questRoot17.Author = list144; - index = 4; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - ref QuestSequence reference111 = ref span145[num]; + num = 4; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span60 = CollectionsMarshal.AsSpan(list145); + ref QuestSequence reference111 = ref span60[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -338069,27 +278920,21 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958); + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958); obj93.Steps = list146; reference111 = obj93; - num++; - ref QuestSequence reference112 = ref span145[num]; + ref QuestSequence reference112 = ref span60[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj94.Steps = list147; reference112 = obj94; - num++; - ref QuestSequence reference113 = ref span145[num]; + ref QuestSequence reference113 = ref span60[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -338097,26 +278942,21 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(156.03712f, -19.711596f, 562.5593f), 958) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1040899u, new Vector3(156.03712f, -19.711596f, 562.5593f), 958) { StopDistance = 1f }; obj95.Steps = list148; reference113 = obj95; - num++; - ref QuestSequence reference114 = ref span145[num]; + ref QuestSequence reference114 = ref span60[3]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj96.Steps = list149; reference114 = obj96; questRoot17.QuestSequence = list145; @@ -338126,16 +278966,13 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "goatzone"; + CollectionsMarshal.AsSpan(list150)[0] = "goatzone"; questRoot18.Author = list150; - index = 4; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference115 = ref span151[num]; + num = 4; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span61 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference115 = ref span61[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -338143,33 +278980,27 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041122u, new Vector3(134.844f, -13.286316f, 649.8054f), 958) { Fly = true }; obj97.Steps = list152; reference115 = obj97; - num++; - ref QuestSequence reference116 = ref span151[num]; + ref QuestSequence reference116 = ref span61[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj98.Steps = list153; reference116 = obj98; - num++; - ref QuestSequence reference117 = ref span151[num]; + ref QuestSequence reference117 = ref span61[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -338177,91 +279008,70 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - ref QuestStep reference118 = ref span154[index2]; + Span span62 = CollectionsMarshal.AsSpan(list154); + ref QuestStep reference118 = ref span62[0]; QuestStep obj100 = new QuestStep(EInteractionType.Combat, null, new Vector3(73.64728f, -18.777306f, 527.2946f), 958) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list155 = new List(index3); - CollectionsMarshal.SetCount(list155, index3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num3 = 0; - span155[num3] = 14107u; + num3 = 1; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + CollectionsMarshal.AsSpan(list155)[0] = 14107u; obj100.KillEnemyDataIds = list155; 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)8, 0, EQuestWorkMode.Bitwise); + 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); obj100.CompletionQuestVariablesFlags = list156; reference118 = obj100; - index2++; - ref QuestStep reference119 = ref span154[index2]; + ref QuestStep reference119 = ref span62[1]; QuestStep obj101 = new QuestStep(EInteractionType.Combat, null, new Vector3(370.17212f, -18.937208f, 338.0957f), 958) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list157 = new List(index3); - CollectionsMarshal.SetCount(list157, index3); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = 14107u; + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = 14107u; obj101.KillEnemyDataIds = list157; num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - 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); + 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); obj101.CompletionQuestVariablesFlags = list158; reference119 = obj101; obj99.Steps = list154; reference117 = obj99; - num++; - ref QuestSequence reference120 = ref span151[num]; + ref QuestSequence reference120 = ref span61[3]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 2000f, Mount = false }; - num2++; - span159[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + span65[1] = new QuestStep(EInteractionType.CompleteQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true, NextQuestId = new QuestId(4218) @@ -338275,16 +279085,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "goatzone"; + CollectionsMarshal.AsSpan(list160)[0] = "goatzone"; questRoot19.Author = list160; - index = 5; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference121 = ref span161[num]; + num = 5; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span66 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference121 = ref span66[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 @@ -338292,36 +279099,29 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041119u, new Vector3(135.85095f, -17.135998f, 567.8645f), 958) { Fly = true }; obj103.Steps = list162; reference121 = obj103; - num++; - ref QuestSequence reference122 = ref span161[num]; + ref QuestSequence reference122 = ref span66[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list163 = new List(index2); - CollectionsMarshal.SetCount(list163, index2); - Span span163 = CollectionsMarshal.AsSpan(list163); - num2 = 0; - ref QuestStep reference123 = ref span163[num2]; + num2 = 1; + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep obj105 = new QuestStep(EInteractionType.Interact, 1041121u, new Vector3(208.51453f, 4.706692f, 77.77527f), 958) { Fly = true }; - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new DialogueChoice + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC009_04218_Q1_000_000"), @@ -338331,8 +279131,7 @@ public static class AssemblyQuestLoader reference123 = obj105; obj104.Steps = list163; reference122 = obj104; - num++; - ref QuestSequence reference124 = ref span161[num]; + ref QuestSequence reference124 = ref span66[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -338340,33 +279139,27 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Emote, 2012474u, new Vector3(210.28455f, 5.355835f, 76.76807f), 958) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Emote, 2012474u, new Vector3(210.28455f, 5.355835f, 76.76807f), 958) { Emote = EEmote.Pray }; obj106.Steps = list165; reference124 = obj106; - num++; - ref QuestSequence reference125 = ref span161[num]; + ref QuestSequence reference125 = ref span66[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj107.Steps = list166; reference125 = obj107; - num++; - ref QuestSequence reference126 = ref span161[num]; + ref QuestSequence reference126 = ref span66[4]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -338374,9 +279167,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040898u, new Vector3(-433.12738f, 22.221891f, 460.80713f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -338389,30 +279180,24 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "goatzone"; + CollectionsMarshal.AsSpan(list168)[0] = "goatzone"; questRoot20.Author = list168; - index = 3; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference127 = ref span169[num]; + num = 3; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span67 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference127 = ref span67[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj109.Steps = list170; reference127 = obj109; - num++; - ref QuestSequence reference128 = ref span169[num]; + ref QuestSequence reference128 = ref span67[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -338420,84 +279205,60 @@ public static class AssemblyQuestLoader num2 = 3; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference129 = ref span171[index2]; + Span span68 = CollectionsMarshal.AsSpan(list171); + ref QuestStep reference129 = ref span68[0]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list172; reference129 = questStep19; - index2++; - ref QuestStep reference130 = ref span171[index2]; + ref QuestStep reference130 = ref span68[1]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list173; reference130 = questStep20; - index2++; - ref QuestStep reference131 = ref span171[index2]; + ref QuestStep reference131 = ref span68[2]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list174; reference131 = questStep21; obj110.Steps = list171; reference128 = obj110; - num++; - ref QuestSequence reference132 = ref span169[num]; + ref QuestSequence reference132 = ref span67[2]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj111.Steps = list175; reference132 = obj111; questRoot20.QuestSequence = list169; @@ -338507,16 +279268,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "goatzone"; + CollectionsMarshal.AsSpan(list176)[0] = "goatzone"; questRoot21.Author = list176; - index = 4; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference133 = ref span177[num]; + num = 4; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span72 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference133 = ref span72[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -338524,30 +279282,24 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037728u, new Vector3(-369.52777f, 22.149097f, 391.95837f), 958); obj112.Steps = list178; reference133 = obj112; - num++; - ref QuestSequence reference134 = ref span177[num]; + ref QuestSequence reference134 = ref span72[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Comment = "Zoom in between the buildings and wait a few seconds." }; obj113.Steps = list179; reference134 = obj113; - num++; - ref QuestSequence reference135 = ref span177[num]; + ref QuestSequence reference135 = ref span72[2]; QuestSequence obj114 = new QuestSequence { Sequence = 2 @@ -338555,26 +279307,21 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.Interact, 1039395u, new Vector3(83.84827f, 1.1234589f, 137.19385f), 958) + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1039395u, new Vector3(83.84827f, 1.1234589f, 137.19385f), 958) { Fly = true }; obj114.Steps = list180; reference135 = obj114; - num++; - ref QuestSequence reference136 = ref span177[num]; + ref QuestSequence reference136 = ref span72[3]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -338587,16 +279334,13 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = "goatzone"; + CollectionsMarshal.AsSpan(list182)[0] = "goatzone"; questRoot22.Author = list182; - index = 3; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref QuestSequence reference137 = ref span183[num]; + num = 3; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span73 = CollectionsMarshal.AsSpan(list183); + ref QuestSequence reference137 = ref span73[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 @@ -338604,88 +279348,63 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); obj116.Steps = list184; reference137 = obj116; - num++; - ref QuestSequence reference138 = ref span183[num]; + ref QuestSequence reference138 = ref span73[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list185 = new List(index2); - CollectionsMarshal.SetCount(list185, index2); - Span span185 = CollectionsMarshal.AsSpan(list185); - num2 = 0; - ref QuestStep reference139 = ref span185[num2]; + num2 = 3; + List list185 = new List(num2); + CollectionsMarshal.SetCount(list185, num2); + Span span74 = CollectionsMarshal.AsSpan(list185); + ref QuestStep reference139 = ref span74[0]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1039396u, new Vector3(-318.227f, 22.376268f, 449.45447f), 958); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list186; reference139 = questStep22; - num2++; - ref QuestStep reference140 = ref span185[num2]; + ref QuestStep reference140 = ref span74[1]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list187; reference140 = questStep23; - num2++; - ref QuestStep reference141 = ref span185[num2]; + ref QuestStep reference141 = ref span74[2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1039398u, new Vector3(-318.62366f, 22.943655f, 391.4701f), 958); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list188; reference141 = questStep24; obj117.Steps = list185; reference138 = obj117; - num++; - ref QuestSequence reference142 = ref span183[num]; + ref QuestSequence reference142 = ref span73[2]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -338693,9 +279412,7 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - span189[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); + CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037733u, new Vector3(-375.14313f, 22f, 513.54236f), 958); obj118.Steps = list189; reference142 = obj118; questRoot22.QuestSequence = list183; @@ -338705,30 +279422,24 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "goatzone"; + CollectionsMarshal.AsSpan(list190)[0] = "goatzone"; questRoot23.Author = list190; - index = 5; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference143 = ref span191[num]; + num = 5; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span78 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference143 = ref span78[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj119.Steps = list192; reference143 = obj119; - num++; - ref QuestSequence reference144 = ref span191[num]; + ref QuestSequence reference144 = ref span78[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -338736,9 +279447,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - ref QuestStep reference145 = ref span193[index2]; + ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list193)[0]; QuestStep obj121 = new QuestStep(EInteractionType.Combat, null, new Vector3(147.65237f, -18.974234f, 434.61954f), 958) { Fly = true, @@ -338747,31 +279456,25 @@ public static class AssemblyQuestLoader num3 = 2; List list194 = new List(num3); CollectionsMarshal.SetCount(list194, num3); - Span span194 = CollectionsMarshal.AsSpan(list194); - index3 = 0; - span194[index3] = 14105u; - index3++; - span194[index3] = 14106u; + Span span79 = CollectionsMarshal.AsSpan(list194); + span79[0] = 14105u; + span79[1] = 14106u; obj121.KillEnemyDataIds = list194; reference145 = obj121; obj120.Steps = list193; reference144 = obj120; - num++; - ref QuestSequence reference146 = ref span191[num]; + ref QuestSequence reference146 = ref span78[2]; QuestSequence obj122 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj122.Steps = list195; reference146 = obj122; - num++; - ref QuestSequence reference147 = ref span191[num]; + ref QuestSequence reference147 = ref span78[3]; QuestSequence obj123 = new QuestSequence { Sequence = 3 @@ -338779,23 +279482,18 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.Interact, 1039387u, new Vector3(144.82336f, -18.974234f, 436.27063f), 958); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1039387u, new Vector3(144.82336f, -18.974234f, 436.27063f), 958); obj123.Steps = list196; reference147 = obj123; - num++; - ref QuestSequence reference148 = ref span191[num]; + ref QuestSequence reference148 = ref span78[4]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -338808,16 +279506,13 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "goatzone"; + CollectionsMarshal.AsSpan(list198)[0] = "goatzone"; questRoot24.Author = list198; - index = 3; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference149 = ref span199[num]; + num = 3; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span80 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference149 = ref span80[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -338825,48 +279520,37 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); obj125.Steps = list200; reference149 = obj125; - num++; - ref QuestSequence reference150 = ref span199[num]; + ref QuestSequence reference150 = ref span80[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list201 = new List(index2); - CollectionsMarshal.SetCount(list201, index2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num2 = 0; - ref QuestStep reference151 = ref span201[num2]; + num2 = 3; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + Span span81 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference151 = ref span81[0]; QuestStep obj127 = new QuestStep(EInteractionType.UseItem, 2011969u, new Vector3(-371.26727f, 24.979004f, 151.20166f), 958) { Fly = true, ItemId = 2003195u }; - 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); + 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); obj127.CompletionQuestVariablesFlags = list202; reference151 = obj127; - num2++; - ref QuestStep reference152 = ref span201[num2]; + ref QuestStep reference152 = ref span81[1]; QuestStep obj128 = new QuestStep(EInteractionType.UseItem, 2011968u, new Vector3(-313.92395f, 21.805054f, 147.87512f), 958) { ItemId = 2003195u @@ -338874,57 +279558,41 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - 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); + 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); obj128.CompletionQuestVariablesFlags = list203; reference152 = obj128; - num2++; - ref QuestStep reference153 = ref span201[num2]; + ref QuestStep reference153 = ref span81[2]; QuestStep obj129 = new QuestStep(EInteractionType.Combat, 2011970u, new Vector3(-375.29565f, 21.164185f, 99.47351f), 958) { ItemId = 2003195u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list204 = new List(index3); - CollectionsMarshal.SetCount(list204, index3); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - span204[num3] = 14104u; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = 14104u; obj129.KillEnemyDataIds = list204; num3 = 6; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - 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); + 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); obj129.CompletionQuestVariablesFlags = list205; reference153 = obj129; obj126.Steps = list201; reference150 = obj126; - num++; - ref QuestSequence reference154 = ref span199[num]; + ref QuestSequence reference154 = ref span80[2]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -338932,9 +279600,7 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -338947,30 +279613,24 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "goatzone"; + CollectionsMarshal.AsSpan(list207)[0] = "goatzone"; questRoot25.Author = list207; - index = 4; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference155 = ref span208[num]; + num = 4; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span85 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference155 = ref span85[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj131.Steps = list209; reference155 = obj131; - num++; - ref QuestSequence reference156 = ref span208[num]; + ref QuestSequence reference156 = ref span85[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -338978,93 +279638,66 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - span210[index2] = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); + CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1039392u, new Vector3(-378.4085f, 22.105467f, 535.33215f), 958); obj132.Steps = list210; reference156 = obj132; - num++; - ref QuestSequence reference157 = ref span208[num]; + ref QuestSequence reference157 = ref span85[2]; QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list211 = new List(index2); - CollectionsMarshal.SetCount(list211, index2); - Span span211 = CollectionsMarshal.AsSpan(list211); - num2 = 0; - ref QuestStep reference158 = ref span211[num2]; + num2 = 4; + List list211 = new List(num2); + CollectionsMarshal.SetCount(list211, num2); + Span span86 = CollectionsMarshal.AsSpan(list211); + ref QuestStep reference158 = ref span86[0]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1037731u, new Vector3(-356.80176f, 22f, 518.9745f), 958); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list212; reference158 = questStep25; - num2++; - ref QuestStep reference159 = ref span211[num2]; + ref QuestStep reference159 = ref span86[1]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list213; reference159 = questStep26; - num2++; - ref QuestStep reference160 = ref span211[num2]; + ref QuestStep reference160 = ref span86[2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1039393u, new Vector3(-415.9762f, 21.392963f, 384.9087f), 958); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list214; reference160 = questStep27; - num2++; - ref QuestStep reference161 = ref span211[num2]; + ref QuestStep reference161 = ref span86[3]; 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); - Span span215 = CollectionsMarshal.AsSpan(list215); - index3 = 0; - span215[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list215)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC015_04224_Q1_000_000"), @@ -339074,8 +279707,7 @@ public static class AssemblyQuestLoader reference161 = questStep28; obj133.Steps = list211; reference157 = obj133; - num++; - ref QuestSequence reference162 = ref span208[num]; + ref QuestSequence reference162 = ref span85[3]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -339083,9 +279715,7 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037729u, new Vector3(-342.67188f, 22.377153f, 466.8496f), 958); obj134.Steps = list216; reference162 = obj134; questRoot25.QuestSequence = list208; @@ -339095,30 +279725,24 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "goatzone"; + CollectionsMarshal.AsSpan(list217)[0] = "goatzone"; questRoot26.Author = list217; - index = 3; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference163 = ref span218[num]; + num = 3; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span90 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference163 = ref span90[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj135.Steps = list219; reference163 = obj135; - num++; - ref QuestSequence reference164 = ref span218[num]; + ref QuestSequence reference164 = ref span90[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -339126,111 +279750,82 @@ public static class AssemblyQuestLoader num2 = 4; 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(541.0247f, -36.65f, -244.85428f), 958); - index2++; - ref QuestStep reference165 = ref span220[index2]; + 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]; QuestStep obj137 = new QuestStep(EInteractionType.Interact, 2011973u, new Vector3(370.5653f, 10.788086f, -450.6447f), 958) { Fly = true }; - 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); + 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); obj137.CompletionQuestVariablesFlags = list221; num3 = 1; List list222 = new List(num3); CollectionsMarshal.SetCount(list222, num3); - Span span222 = CollectionsMarshal.AsSpan(list222); - index3 = 0; - span222[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list222)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD001_04225_Q1_000_000") }; obj137.DialogueChoices = list222; reference165 = obj137; - index2++; - ref QuestStep reference166 = ref span220[index2]; + ref QuestStep reference166 = ref span91[2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2011974u, new Vector3(282.39868f, 10.788086f, -323.07928f), 958); - 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); + 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); questStep29.CompletionQuestVariablesFlags = list223; num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span224 = CollectionsMarshal.AsSpan(list224); - index3 = 0; - span224[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list224)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD001_04225_Q2_000_000") }; questStep29.DialogueChoices = list224; reference166 = questStep29; - index2++; - ref QuestStep reference167 = ref span220[index2]; + ref QuestStep reference167 = ref span91[3]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2011972u, new Vector3(241.19922f, 11.673096f, -292.98853f), 958); - 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); + 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); questStep30.CompletionQuestVariablesFlags = list225; reference167 = questStep30; obj136.Steps = list220; reference164 = obj136; - num++; - ref QuestSequence reference168 = ref span218[num]; + ref QuestSequence reference168 = ref span90[2]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -339243,16 +279838,13 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "goatzone"; + CollectionsMarshal.AsSpan(list227)[0] = "goatzone"; questRoot27.Author = list227; - index = 3; - List list228 = new List(index); - CollectionsMarshal.SetCount(list228, index); - Span span228 = CollectionsMarshal.AsSpan(list228); - num = 0; - ref QuestSequence reference169 = ref span228[num]; + num = 3; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span95 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference169 = ref span95[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -339260,23 +279852,18 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958); + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958); obj139.Steps = list229; reference169 = obj139; - num++; - ref QuestSequence reference170 = ref span228[num]; + ref QuestSequence reference170 = ref span95[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list230 = new List(index2); - CollectionsMarshal.SetCount(list230, index2); - Span span230 = CollectionsMarshal.AsSpan(list230); - num2 = 0; - ref QuestStep reference171 = ref span230[num2]; + num2 = 1; + List list230 = new List(num2); + CollectionsMarshal.SetCount(list230, num2); + ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list230)[0]; QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-159.59418f, 10.8f, -468.8335f), 958) { StopDistance = 0.5f, @@ -339286,9 +279873,7 @@ public static class AssemblyQuestLoader num3 = 1; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - Span span231 = CollectionsMarshal.AsSpan(list231); - index3 = 0; - span231[index3] = 13468u; + CollectionsMarshal.AsSpan(list231)[0] = 13468u; obj141.KillEnemyDataIds = list231; obj141.CombatItemUse = new CombatItemUse { @@ -339299,8 +279884,7 @@ public static class AssemblyQuestLoader reference171 = obj141; obj140.Steps = list230; reference170 = obj140; - num++; - ref QuestSequence reference172 = ref span228[num]; + ref QuestSequence reference172 = ref span95[2]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue @@ -339308,9 +279892,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039399u, new Vector3(556.4812f, -40.250004f, -133.04346f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -339323,30 +279905,24 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "goatzone"; + CollectionsMarshal.AsSpan(list233)[0] = "goatzone"; questRoot28.Author = list233; - index = 3; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference173 = ref span234[num]; + num = 3; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span96 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference173 = ref span96[0]; QuestSequence obj143 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj143.Steps = list235; reference173 = obj143; - num++; - ref QuestSequence reference174 = ref span234[num]; + ref QuestSequence reference174 = ref span96[1]; QuestSequence obj144 = new QuestSequence { Sequence = 1 @@ -339354,49 +279930,37 @@ public static class AssemblyQuestLoader num2 = 3; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - 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]; + 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]; QuestStep obj145 = new QuestStep(EInteractionType.Interact, 2012049u, new Vector3(301.86914f, 10.788086f, -540.79504f), 958) { Fly = true }; - 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); + 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); obj145.CompletionQuestVariablesFlags = list237; reference175 = obj145; - index2++; - span236[index2] = new QuestStep(EInteractionType.Interact, 2012050u, new Vector3(295.49097f, 11.306824f, -500.26703f), 958); + span97[2] = new QuestStep(EInteractionType.Interact, 2012050u, new Vector3(295.49097f, 11.306824f, -500.26703f), 958); obj144.Steps = list236; reference174 = obj144; - num++; - ref QuestSequence reference176 = ref span234[num]; + ref QuestSequence reference176 = ref span96[2]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -339409,16 +279973,13 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "goatzone"; + CollectionsMarshal.AsSpan(list239)[0] = "goatzone"; questRoot29.Author = list239; - index = 3; - List list240 = new List(index); - CollectionsMarshal.SetCount(list240, index); - Span span240 = CollectionsMarshal.AsSpan(list240); - num = 0; - ref QuestSequence reference177 = ref span240[num]; + num = 3; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span99 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference177 = ref span99[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -339426,30 +279987,23 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041911u, new Vector3(508.8424f, -3.8202174f, -352.71234f), 958); + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041911u, new Vector3(508.8424f, -3.8202174f, -352.71234f), 958); obj147.Steps = list241; reference177 = obj147; - num++; - ref QuestSequence reference178 = ref span240[num]; + ref QuestSequence reference178 = ref span99[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list242 = new List(index2); - CollectionsMarshal.SetCount(list242, index2); - Span span242 = CollectionsMarshal.AsSpan(list242); - num2 = 0; - ref QuestStep reference179 = ref span242[num2]; + num2 = 1; + List list242 = new List(num2); + CollectionsMarshal.SetCount(list242, num2); + ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list242)[0]; 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); - Span span243 = CollectionsMarshal.AsSpan(list243); - index3 = 0; - span243[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD004_04228_Q1_000_000"), @@ -339459,8 +280013,7 @@ public static class AssemblyQuestLoader reference179 = questStep31; obj148.Steps = list242; reference178 = obj148; - num++; - ref QuestSequence reference180 = ref span240[num]; + ref QuestSequence reference180 = ref span99[2]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue @@ -339468,9 +280021,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037771u, new Vector3(524.28467f, -19.820217f, -298.81744f), 958); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037771u, new Vector3(524.28467f, -19.820217f, -298.81744f), 958); obj149.Steps = list244; reference180 = obj149; questRoot29.QuestSequence = list240; @@ -339480,30 +280031,24 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "goatzone"; + CollectionsMarshal.AsSpan(list245)[0] = "goatzone"; questRoot30.Author = list245; - index = 3; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference181 = ref span246[num]; + num = 3; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span100 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference181 = ref span100[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj150.Steps = list247; reference181 = obj150; - num++; - ref QuestSequence reference182 = ref span246[num]; + ref QuestSequence reference182 = ref span100[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 @@ -339511,62 +280056,45 @@ public static class AssemblyQuestLoader num2 = 4; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - ref QuestStep reference183 = ref span248[index2]; + Span span101 = CollectionsMarshal.AsSpan(list248); + ref QuestStep reference183 = ref span101[0]; QuestStep obj152 = new QuestStep(EInteractionType.Combat, 1039400u, new Vector3(364.76685f, 10.8f, -308.03394f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list249 = new List(index3); - CollectionsMarshal.SetCount(list249, index3); - Span span249 = CollectionsMarshal.AsSpan(list249); - num3 = 0; - span249[num3] = 14103u; + num3 = 1; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + CollectionsMarshal.AsSpan(list249)[0] = 14103u; obj152.KillEnemyDataIds = list249; num3 = 6; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - 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); + 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); obj152.CompletionQuestVariablesFlags = list250; reference183 = obj152; - index2++; - ref QuestStep reference184 = ref span248[index2]; + ref QuestStep reference184 = ref span101[1]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 1040627u, new Vector3(282.00195f, 11.327993f, -365.8656f), 958); - 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); + 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); questStep32.CompletionQuestVariablesFlags = list251; reference184 = questStep32; - index2++; - ref QuestStep reference185 = ref span248[index2]; + ref QuestStep reference185 = ref span101[2]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1040626u, new Vector3(296.4065f, 10.799999f, -387.9912f), 958) { Mount = true @@ -339574,56 +280102,40 @@ public static class AssemblyQuestLoader num3 = 6; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - 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); + 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); obj153.CompletionQuestVariablesFlags = list252; reference185 = obj153; - index2++; - ref QuestStep reference186 = ref span248[index2]; + ref QuestStep reference186 = ref span101[3]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1040628u, new Vector3(260.8224f, 10.849999f, -456.32104f), 958); - 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); + 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); questStep33.CompletionQuestVariablesFlags = list253; reference186 = questStep33; obj151.Steps = list248; reference182 = obj151; - num++; - ref QuestSequence reference187 = ref span246[num]; + ref QuestSequence reference187 = ref span100[2]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -339636,16 +280148,13 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - Span span255 = CollectionsMarshal.AsSpan(list255); - index = 0; - span255[index] = "goatzone"; + CollectionsMarshal.AsSpan(list255)[0] = "goatzone"; questRoot31.Author = list255; - index = 4; - List list256 = new List(index); - CollectionsMarshal.SetCount(list256, index); - Span span256 = CollectionsMarshal.AsSpan(list256); - num = 0; - ref QuestSequence reference188 = ref span256[num]; + num = 4; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span106 = CollectionsMarshal.AsSpan(list256); + ref QuestSequence reference188 = ref span106[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -339653,31 +280162,26 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040645u, new Vector3(485.2522f, 10.800001f, -456.32104f), 958) { Fly = true }; obj155.Steps = list257; reference188 = obj155; - num++; - ref QuestSequence reference189 = ref span256[num]; + ref QuestSequence reference189 = ref span106[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference190 = ref span258[num2]; + ref QuestStep reference190 = ref span107[1]; QuestStep obj157 = new QuestStep(EInteractionType.Combat, null, new Vector3(-310.5188f, 10.813947f, -720.8323f), 958) { Fly = false, @@ -339686,20 +280190,16 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span259 = CollectionsMarshal.AsSpan(list259); - index3 = 0; - span259[index3] = 14102u; + CollectionsMarshal.AsSpan(list259)[0] = 14102u; obj157.KillEnemyDataIds = list259; reference190 = obj157; - num2++; - span258[num2] = new QuestStep(EInteractionType.UseItem, 14102u, new Vector3(-313.222f, 10.821807f, -720.4852f), 958) + span107[2] = new QuestStep(EInteractionType.UseItem, 14102u, new Vector3(-313.222f, 10.821807f, -720.4852f), 958) { ItemId = 2003208u }; obj156.Steps = list258; reference189 = obj156; - num++; - ref QuestSequence reference191 = ref span256[num]; + ref QuestSequence reference191 = ref span106[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 @@ -339707,23 +280207,18 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.Interact, 1040629u, new Vector3(-310.47534f, 10.815676f, -720.2411f), 958); + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1040629u, new Vector3(-310.47534f, 10.815676f, -720.2411f), 958); obj158.Steps = list260; reference191 = obj158; - num++; - ref QuestSequence reference192 = ref span256[num]; + ref QuestSequence reference192 = ref span106[3]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium @@ -339737,16 +280232,13 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - Span span262 = CollectionsMarshal.AsSpan(list262); - index = 0; - span262[index] = "goatzone"; + CollectionsMarshal.AsSpan(list262)[0] = "goatzone"; questRoot32.Author = list262; - index = 3; - List list263 = new List(index); - CollectionsMarshal.SetCount(list263, index); - Span span263 = CollectionsMarshal.AsSpan(list263); - num = 0; - ref QuestSequence reference193 = ref span263[num]; + num = 3; + List list263 = new List(num); + CollectionsMarshal.SetCount(list263, num); + Span span108 = CollectionsMarshal.AsSpan(list263); + ref QuestSequence reference193 = ref span108[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -339754,16 +280246,12 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - ref QuestStep reference194 = ref span264[index2]; + ref QuestStep reference194 = ref CollectionsMarshal.AsSpan(list264)[0]; QuestStep questStep34 = new QuestStep(EInteractionType.AcceptQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); - index3 = 1; - List list265 = new List(index3); - CollectionsMarshal.SetCount(list265, index3); - Span span265 = CollectionsMarshal.AsSpan(list265); - num3 = 0; - span265[num3] = new DialogueChoice + num3 = 1; + List list265 = new List(num3); + CollectionsMarshal.SetCount(list265, num3); + CollectionsMarshal.AsSpan(list265)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD007_04231_Q1_000_000"), @@ -339773,88 +280261,64 @@ public static class AssemblyQuestLoader reference194 = questStep34; obj160.Steps = list264; reference193 = obj160; - num++; - ref QuestSequence reference195 = ref span263[num]; + ref QuestSequence reference195 = ref span108[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list266 = new List(index2); - CollectionsMarshal.SetCount(list266, index2); - Span span266 = CollectionsMarshal.AsSpan(list266); - num2 = 0; - ref QuestStep reference196 = ref span266[num2]; + num2 = 4; + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + Span span109 = CollectionsMarshal.AsSpan(list266); + ref QuestStep reference196 = ref span109[0]; 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 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list267; skipConditions6.StepIf = skipStepConditions6; questStep35.SkipConditions = skipConditions6; reference196 = questStep35; - num2++; - ref QuestStep reference197 = ref span266[num2]; + ref QuestStep reference197 = ref span109[1]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1037766u, new Vector3(545.3115f, -36.616177f, -265.00348f), 958); - 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); + 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); questStep36.CompletionQuestVariablesFlags = list268; reference197 = questStep36; - num2++; - ref QuestStep reference198 = ref span266[num2]; + ref QuestStep reference198 = ref span109[2]; 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 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); + 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); questStep37.CompletionQuestVariablesFlags = list269; - index3 = 1; - List list270 = new List(index3); - CollectionsMarshal.SetCount(list270, index3); - Span span270 = CollectionsMarshal.AsSpan(list270); - num3 = 0; - span270[num3] = new DialogueChoice + num3 = 1; + List list270 = new List(num3); + CollectionsMarshal.SetCount(list270, num3); + CollectionsMarshal.AsSpan(list270)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD007_04231_Q2_000_100"), @@ -339862,31 +280326,23 @@ public static class AssemblyQuestLoader }; questStep37.DialogueChoices = list270; reference198 = questStep37; - num2++; - ref QuestStep reference199 = ref span266[num2]; + ref QuestStep reference199 = ref span109[3]; 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 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); + 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); questStep38.CompletionQuestVariablesFlags = list271; reference199 = questStep38; obj161.Steps = list266; reference195 = obj161; - num++; - ref QuestSequence reference200 = ref span263[num]; + ref QuestSequence reference200 = ref span108[2]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -339894,9 +280350,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040646u, new Vector3(503.9292f, -36.65f, -253.07086f), 958); obj162.Steps = list272; reference200 = obj162; questRoot32.QuestSequence = list263; @@ -339906,30 +280360,24 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot33.Author = list273; - index = 6; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference201 = ref span274[num]; + num = 6; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span114 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference201 = ref span114[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj163.Steps = list275; reference201 = obj163; - num++; - ref QuestSequence reference202 = ref span274[num]; + ref QuestSequence reference202 = ref span114[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -339937,122 +280385,102 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.Interact, 1040634u, new Vector3(190.26465f, 10.5f, -630.2129f), 958); + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.Interact, 1040634u, new Vector3(190.26465f, 10.5f, -630.2129f), 958); obj164.Steps = list276; reference202 = obj164; - num++; - ref QuestSequence reference203 = ref span274[num]; + ref QuestSequence reference203 = ref span114[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - index2 = 15; - List list277 = new List(index2); - CollectionsMarshal.SetCount(list277, index2); - Span span277 = CollectionsMarshal.AsSpan(list277); - num2 = 0; - ref QuestStep reference204 = ref span277[num2]; + num2 = 15; + List list277 = new List(num2); + CollectionsMarshal.SetCount(list277, num2); + Span span115 = CollectionsMarshal.AsSpan(list277); + ref QuestStep reference204 = ref span115[0]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 2012377u, new Vector3(189.10498f, 10.482849f, -668.9708f), 958); - index3 = 1; - List list278 = new List(index3); - CollectionsMarshal.SetCount(list278, index3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - span278[num3] = new DialogueChoice + num3 = 1; + List list278 = new List(num3); + CollectionsMarshal.SetCount(list278, num3); + CollectionsMarshal.AsSpan(list278)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD008_04232_SYSTEM04232_Q1_000_001") }; questStep39.DialogueChoices = list278; reference204 = questStep39; - num2++; - span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(148.87286f, 10.5f, -674.6158f), 958) + span115[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(148.87286f, 10.5f, -674.6158f), 958) { StopDistance = 50f, NpcWaitDistance = 3f }; - 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) + 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) { StopDistance = 50f, NpcWaitDistance = 3f }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.80121f, 10.5f, -668.12524f), 958) + span115[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(121.80121f, 10.5f, -668.12524f), 958) { Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.11899f, 10.8f, -647.2713f), 958) + span115[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.11899f, 10.8f, -647.2713f), 958) { Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.128044f, 10.799999f, -632.78925f), 958) + span115[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.128044f, 10.799999f, -632.78925f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.38609f, 10.799999f, -630.82086f), 958) + span115[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(68.38609f, 10.799999f, -630.82086f), 958) { Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(42.153065f, 10.8f, -625.0765f), 958) + span115[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(42.153065f, 10.8f, -625.0765f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.18486f, 10.799999f, -617.59485f), 958) + span115[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(72.18486f, 10.799999f, -617.59485f), 958) { Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(60.43399f, 10.799999f, -600.4008f), 958) + span115[10] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(60.43399f, 10.799999f, -600.4008f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.30184f, 10.8f, -598.927f), 958) + span115[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(55.30184f, 10.8f, -598.927f), 958) { StopDistance = 50f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.088688f, 10.8f, -617.3753f), 958) + span115[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(43.088688f, 10.8f, -617.3753f), 958) { DelaySecondsAtStart = 8f, Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(21.752983f, 10.5f, -589.2936f), 958) + span115[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1040635u, new Vector3(21.752983f, 10.5f, -589.2936f), 958) { StopDistance = 50f, Mount = false, Sprint = false }; - num2++; - span277[num2] = new QuestStep(EInteractionType.WalkTo, 1040636u, new Vector3(21.744019f, 10.5f, -589.3187f), 958) + span115[14] = new QuestStep(EInteractionType.WalkTo, 1040636u, new Vector3(21.744019f, 10.5f, -589.3187f), 958) { StopDistance = 4f, DelaySecondsAtStart = 5f, @@ -340062,8 +280490,7 @@ public static class AssemblyQuestLoader }; obj165.Steps = list277; reference203 = obj165; - num++; - ref QuestSequence reference205 = ref span274[num]; + ref QuestSequence reference205 = ref span114[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -340071,9 +280498,7 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - ref QuestStep reference206 = ref span279[index2]; + ref QuestStep reference206 = ref CollectionsMarshal.AsSpan(list279)[0]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(-18.56067f, 10.5f, -530.3922f), 958) { StopDistance = 1f, @@ -340082,35 +280507,28 @@ public static class AssemblyQuestLoader num3 = 1; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - Span span280 = CollectionsMarshal.AsSpan(list280); - index3 = 0; - span280[index3] = 14101u; + CollectionsMarshal.AsSpan(list280)[0] = 14101u; obj167.KillEnemyDataIds = list280; reference206 = obj167; obj166.Steps = list279; reference205 = obj166; - num++; - ref QuestSequence reference207 = ref span274[num]; + ref QuestSequence reference207 = ref span114[4]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list281 = new List(index2); - CollectionsMarshal.SetCount(list281, index2); - Span span281 = CollectionsMarshal.AsSpan(list281); - num2 = 0; - ref QuestStep reference208 = ref span281[num2]; + num2 = 1; + List list281 = new List(num2); + CollectionsMarshal.SetCount(list281, num2); + ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list281)[0]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1040637u, new Vector3(-16.525574f, 10.5f, -532.15845f), 958) { StopDistance = 7f }; - index3 = 1; - List list282 = new List(index3); - CollectionsMarshal.SetCount(list282, index3); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - span282[num3] = new DialogueChoice + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + CollectionsMarshal.AsSpan(list282)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD008_04232_Q1_000_000"), @@ -340120,8 +280538,7 @@ public static class AssemblyQuestLoader reference208 = obj169; obj168.Steps = list281; reference207 = obj168; - num++; - ref QuestSequence reference209 = ref span274[num]; + ref QuestSequence reference209 = ref span114[5]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -340129,9 +280546,7 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -340144,30 +280559,24 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = "goatzone"; + CollectionsMarshal.AsSpan(list284)[0] = "goatzone"; questRoot34.Author = list284; - index = 4; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref QuestSequence reference210 = ref span285[num]; + num = 4; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span116 = CollectionsMarshal.AsSpan(list285); + ref QuestSequence reference210 = ref span116[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj171.Steps = list286; reference210 = obj171; - num++; - ref QuestSequence reference211 = ref span285[num]; + ref QuestSequence reference211 = ref span116[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -340175,64 +280584,54 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - span287[index2] = new QuestStep(EInteractionType.Emote, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958) + CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Emote, 1039353u, new Vector3(-308.00336f, 22f, 413.80933f), 958) { Emote = EEmote.Soothe }; obj172.Steps = list287; reference211 = obj172; - num++; - ref QuestSequence reference212 = ref span285[num]; + ref QuestSequence reference212 = ref span116[2]; QuestSequence obj173 = new QuestSequence { Sequence = 2 }; - 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) + 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) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - num2++; - span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-351.1446f, 7.736393f, 303.24872f), 958) + span117[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-351.1446f, 7.736393f, 303.24872f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - num2++; - span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-334.03958f, 19.434929f, 175.00089f), 958) + span117[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-334.03958f, 19.434929f, 175.00089f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - num2++; - span288[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-321.72916f, 18.139357f, 98.16852f), 958) + span117[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039353u, new Vector3(-321.72916f, 18.139357f, 98.16852f), 958) { NpcWaitDistance = 1f, Mount = false, Sprint = false }; - num2++; - span288[num2] = new QuestStep(EInteractionType.Interact, 1039355u, new Vector3(-319.4171f, 8.981749f, -9.475891f), 958) + span117[5] = new QuestStep(EInteractionType.Interact, 1039355u, new Vector3(-319.4171f, 8.981749f, -9.475891f), 958) { Mount = false, Sprint = false }; obj173.Steps = list288; reference212 = obj173; - num++; - ref QuestSequence reference213 = ref span285[num]; + ref QuestSequence reference213 = ref span116[3]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue @@ -340240,9 +280639,7 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958) + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037722u, new Vector3(-308.0949f, 22f, 415.3047f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -340255,30 +280652,24 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - span290[index] = "goatzone"; + CollectionsMarshal.AsSpan(list290)[0] = "goatzone"; questRoot35.Author = list290; - index = 5; - List list291 = new List(index); - CollectionsMarshal.SetCount(list291, index); - Span span291 = CollectionsMarshal.AsSpan(list291); - num = 0; - ref QuestSequence reference214 = ref span291[num]; + num = 5; + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + Span span118 = CollectionsMarshal.AsSpan(list291); + ref QuestSequence reference214 = ref span118[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj175.Steps = list292; reference214 = obj175; - num++; - ref QuestSequence reference215 = ref span291[num]; + ref QuestSequence reference215 = ref span118[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 @@ -340286,34 +280677,28 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958) + CollectionsMarshal.AsSpan(list293)[0] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj176.Steps = list293; reference215 = obj176; - num++; - ref QuestSequence reference216 = ref span291[num]; + ref QuestSequence reference216 = ref span118[2]; QuestSequence obj177 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Comment = "Snipe Magitek Colossi" }; obj177.Steps = list294; reference216 = obj177; - num++; - ref QuestSequence reference217 = ref span291[num]; + ref QuestSequence reference217 = ref span118[3]; QuestSequence obj178 = new QuestSequence { Sequence = 3 @@ -340321,23 +280706,18 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958); + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1039359u, new Vector3(486.71704f, 11.195138f, -299.36682f), 958); obj178.Steps = list295; reference217 = obj178; - num++; - ref QuestSequence reference218 = ref span291[num]; + ref QuestSequence reference218 = ref span118[4]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -340350,16 +280730,13 @@ public static class AssemblyQuestLoader num = 1; List list297 = new List(num); CollectionsMarshal.SetCount(list297, num); - Span span297 = CollectionsMarshal.AsSpan(list297); - index = 0; - span297[index] = "goatzone"; + CollectionsMarshal.AsSpan(list297)[0] = "goatzone"; questRoot36.Author = list297; - index = 6; - List list298 = new List(index); - CollectionsMarshal.SetCount(list298, index); - Span span298 = CollectionsMarshal.AsSpan(list298); - num = 0; - ref QuestSequence reference219 = ref span298[num]; + num = 6; + List list298 = new List(num); + CollectionsMarshal.SetCount(list298, num); + Span span119 = CollectionsMarshal.AsSpan(list298); + ref QuestSequence reference219 = ref span119[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 @@ -340367,27 +280744,21 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037751u, new Vector3(-424.15503f, 22.196602f, 423.48352f), 958); obj180.Steps = list299; reference219 = obj180; - num++; - ref QuestSequence reference220 = ref span298[num]; + ref QuestSequence reference220 = ref span119[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj181.Steps = list300; reference220 = obj181; - num++; - ref QuestSequence reference221 = ref span298[num]; + ref QuestSequence reference221 = ref span119[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 @@ -340395,27 +280766,23 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958) + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.Interact, 1040664u, new Vector3(382.22327f, 10.762111f, -713.3135f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj182.Steps = list301; reference221 = obj182; - num++; - ref QuestSequence reference222 = ref span298[num]; + ref QuestSequence reference222 = ref span119[3]; QuestSequence obj183 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list302 = new List(index2); - CollectionsMarshal.SetCount(list302, index2); - Span span302 = CollectionsMarshal.AsSpan(list302); - num2 = 0; - ref QuestStep reference223 = ref span302[num2]; + num2 = 2; + List list302 = new List(num2); + CollectionsMarshal.SetCount(list302, num2); + Span span120 = CollectionsMarshal.AsSpan(list302); + ref QuestStep reference223 = ref span120[0]; QuestStep obj184 = new QuestStep(EInteractionType.UseItem, 2012052u, new Vector3(383.84058f, 11.48999f, -711.1162f), 958) { ItemId = 2003210u @@ -340423,49 +280790,35 @@ public static class AssemblyQuestLoader num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - 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); + 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); obj184.CompletionQuestVariablesFlags = list303; reference223 = obj184; - num2++; - ref QuestStep reference224 = ref span302[num2]; + ref QuestStep reference224 = ref span120[1]; QuestStep obj185 = new QuestStep(EInteractionType.UseItem, 2012051u, new Vector3(383.5354f, 11.306824f, -708.03394f), 958) { ItemId = 2003210u }; - 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); + 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); obj185.CompletionQuestVariablesFlags = list304; reference224 = obj185; obj183.Steps = list302; reference222 = obj183; - num++; - ref QuestSequence reference225 = ref span298[num]; + ref QuestSequence reference225 = ref span119[4]; QuestSequence obj186 = new QuestSequence { Sequence = 4 @@ -340473,16 +280826,12 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - ref QuestStep reference226 = ref span305[index2]; + ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list305)[0]; 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); - Span span306 = CollectionsMarshal.AsSpan(list306); - index3 = 0; - span306[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list306)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD011_04235_Q1_000_000"), @@ -340492,18 +280841,15 @@ public static class AssemblyQuestLoader reference226 = questStep40; obj186.Steps = list305; reference225 = obj186; - num++; - ref QuestSequence reference227 = ref span298[num]; + ref QuestSequence reference227 = ref span119[5]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -340516,16 +280862,13 @@ public static class AssemblyQuestLoader num = 1; List list308 = new List(num); CollectionsMarshal.SetCount(list308, num); - Span span308 = CollectionsMarshal.AsSpan(list308); - index = 0; - span308[index] = "goatzone"; + CollectionsMarshal.AsSpan(list308)[0] = "goatzone"; questRoot37.Author = list308; - index = 6; - List list309 = new List(index); - CollectionsMarshal.SetCount(list309, index); - Span span309 = CollectionsMarshal.AsSpan(list309); - num = 0; - ref QuestSequence reference228 = ref span309[num]; + num = 6; + List list309 = new List(num); + CollectionsMarshal.SetCount(list309, num); + Span span123 = CollectionsMarshal.AsSpan(list309); + ref QuestSequence reference228 = ref span123[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 @@ -340533,30 +280876,24 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958); + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037741u, new Vector3(-434.50067f, 22.00912f, 470.32874f), 958); obj188.Steps = list310; reference228 = obj188; - num++; - ref QuestSequence reference229 = ref span309[num]; + ref QuestSequence reference229 = ref span123[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj189.Steps = list311; reference229 = obj189; - num++; - ref QuestSequence reference230 = ref span309[num]; + ref QuestSequence reference230 = ref span123[2]; QuestSequence obj190 = new QuestSequence { Sequence = 2 @@ -340564,45 +280901,37 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) + CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) { Fly = true }; obj190.Steps = list312; reference230 = obj190; - num++; - ref QuestSequence reference231 = ref span309[num]; + ref QuestSequence reference231 = ref span123[3]; QuestSequence obj191 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 14100u, new Vector3(302.5399f, -12.244642f, 304.46622f), 958) { ItemId = 2003211u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list314 = new List(index3); - CollectionsMarshal.SetCount(list314, index3); - Span span314 = CollectionsMarshal.AsSpan(list314); - num3 = 0; - span314[num3] = 14100u; + num3 = 1; + List list314 = new List(num3); + CollectionsMarshal.SetCount(list314, num3); + CollectionsMarshal.AsSpan(list314)[0] = 14100u; obj192.KillEnemyDataIds = list314; reference232 = obj192; obj191.Steps = list313; reference231 = obj191; - num++; - ref QuestSequence reference233 = ref span309[num]; + ref QuestSequence reference233 = ref span123[4]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -340610,26 +280939,21 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) + CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 1040667u, new Vector3(323.26233f, -9.523699f, 251.88062f), 958) { Fly = false }; obj193.Steps = list315; reference233 = obj193; - num++; - ref QuestSequence reference234 = ref span309[num]; + ref QuestSequence reference234 = ref span123[5]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -340642,16 +280966,13 @@ public static class AssemblyQuestLoader num = 1; List list317 = new List(num); CollectionsMarshal.SetCount(list317, num); - Span span317 = CollectionsMarshal.AsSpan(list317); - index = 0; - span317[index] = "goatzone"; + CollectionsMarshal.AsSpan(list317)[0] = "goatzone"; questRoot38.Author = list317; - index = 3; - List list318 = new List(index); - CollectionsMarshal.SetCount(list318, index); - Span span318 = CollectionsMarshal.AsSpan(list318); - num = 0; - ref QuestSequence reference235 = ref span318[num]; + num = 3; + List list318 = new List(num); + CollectionsMarshal.SetCount(list318, num); + Span span125 = CollectionsMarshal.AsSpan(list318); + ref QuestSequence reference235 = ref span125[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -340659,23 +280980,19 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); + CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958); obj195.Steps = list319; reference235 = obj195; - num++; - ref QuestSequence reference236 = ref span318[num]; + ref QuestSequence reference236 = ref span125[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - index2 = 7; - List list320 = new List(index2); - CollectionsMarshal.SetCount(list320, index2); - Span span320 = CollectionsMarshal.AsSpan(list320); - num2 = 0; - ref QuestStep reference237 = ref span320[num2]; + num2 = 7; + List list320 = new List(num2); + CollectionsMarshal.SetCount(list320, num2); + Span span126 = CollectionsMarshal.AsSpan(list320); + ref QuestStep reference237 = ref span126[0]; QuestStep obj197 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-189.97284f, 15.907461f, -169.83481f), 958) { Fly = true @@ -340685,50 +281002,36 @@ public static class AssemblyQuestLoader num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list321; skipStepConditions7.Flying = ELockedSkipCondition.Locked; skipConditions7.StepIf = skipStepConditions7; obj197.SkipConditions = skipConditions7; reference237 = obj197; - num2++; - ref QuestStep reference238 = ref span320[num2]; + ref QuestStep reference238 = ref span126[1]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 2012054u, new Vector3(-156.05408f, 10.788086f, -235.40094f), 958) { Fly = true }; - 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); + 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); obj198.CompletionQuestVariablesFlags = list322; reference238 = obj198; - num2++; - ref QuestStep reference239 = ref span320[num2]; + ref QuestStep reference239 = ref span126[2]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 2012055u, new Vector3(-129.83911f, 10.788086f, -270.95447f), 958) { Fly = true @@ -340736,49 +281039,35 @@ public static class AssemblyQuestLoader num3 = 6; List list323 = new List(num3); CollectionsMarshal.SetCount(list323, num3); - 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); + 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); obj199.CompletionQuestVariablesFlags = list323; reference239 = obj199; - num2++; - ref QuestStep reference240 = ref span320[num2]; + ref QuestStep reference240 = ref span126[3]; QuestStep questStep41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-223.12543f, 10.826223f, -368.8611f), 958); SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list324; skipStepConditions8.Flying = ELockedSkipCondition.Unlocked; skipConditions8.StepIf = skipStepConditions8; questStep41.SkipConditions = skipConditions8; reference240 = questStep41; - num2++; - ref QuestStep reference241 = ref span320[num2]; + ref QuestStep reference241 = ref span126[4]; QuestStep obj200 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-140.08179f, 16.226164f, -310.9478f), 958) { Fly = true @@ -340788,50 +281077,36 @@ public static class AssemblyQuestLoader num3 = 6; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list325; skipStepConditions9.Flying = ELockedSkipCondition.Locked; skipConditions9.StepIf = skipStepConditions9; obj200.SkipConditions = skipConditions9; reference241 = obj200; - num2++; - ref QuestStep reference242 = ref span320[num2]; + ref QuestStep reference242 = ref span126[5]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2012056u, new Vector3(-234.6991f, 10.788086f, -367.2389f), 958) { Fly = true }; - 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); + 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); obj201.CompletionQuestVariablesFlags = list326; reference242 = obj201; - num2++; - ref QuestStep reference243 = ref span320[num2]; + ref QuestStep reference243 = ref span126[6]; QuestStep obj202 = new QuestStep(EInteractionType.Interact, 2012057u, new Vector3(-246.93683f, 16.494995f, -413.016f), 958) { StopDistance = 1f, @@ -340840,25 +281115,18 @@ public static class AssemblyQuestLoader num3 = 6; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - 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); + 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); obj202.CompletionQuestVariablesFlags = list327; reference243 = obj202; obj196.Steps = list320; reference236 = obj196; - num++; - ref QuestSequence reference244 = ref span318[num]; + ref QuestSequence reference244 = ref span125[2]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -340866,9 +281134,7 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - index2 = 0; - span328[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958) + CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037747u, new Vector3(-314.25964f, 22.00559f, 430.47217f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -340881,33 +281147,26 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - Span span329 = CollectionsMarshal.AsSpan(list329); - index = 0; - span329[index] = "goatzone"; + CollectionsMarshal.AsSpan(list329)[0] = "goatzone"; questRoot39.Author = list329; - index = 3; - List list330 = new List(index); - CollectionsMarshal.SetCount(list330, index); - Span span330 = CollectionsMarshal.AsSpan(list330); - num = 0; - ref QuestSequence reference245 = ref span330[num]; + num = 3; + List list330 = new List(num); + CollectionsMarshal.SetCount(list330, num); + Span span134 = CollectionsMarshal.AsSpan(list330); + ref QuestSequence reference245 = ref span134[0]; QuestSequence obj204 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list331 = new List(num2); + CollectionsMarshal.SetCount(list331, num2); + ref QuestStep reference246 = ref CollectionsMarshal.AsSpan(list331)[0]; QuestStep questStep42 = new QuestStep(EInteractionType.AcceptQuest, 1037755u, new Vector3(-338.76556f, 22.462305f, 449.08826f), 958); - index3 = 1; - List list332 = new List(index3); - CollectionsMarshal.SetCount(list332, index3); - Span span332 = CollectionsMarshal.AsSpan(list332); - num3 = 0; - span332[num3] = new DialogueChoice + num3 = 1; + List list332 = new List(num3); + CollectionsMarshal.SetCount(list332, num3); + CollectionsMarshal.AsSpan(list332)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD014_04238_Q1_000_000") @@ -340916,8 +281175,7 @@ public static class AssemblyQuestLoader reference246 = questStep42; obj204.Steps = list331; reference245 = obj204; - num++; - ref QuestSequence reference247 = ref span330[num]; + ref QuestSequence reference247 = ref span134[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -340925,27 +281183,22 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.UseItem, 1040640u, new Vector3(-239.15472f, 11.232812f, -256.61102f), 958) + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.UseItem, 1040640u, new Vector3(-239.15472f, 11.232812f, -256.61102f), 958) { Fly = true, ItemId = 2003244u }; obj205.Steps = list333; reference247 = obj205; - num++; - ref QuestSequence reference248 = ref span330[num]; + ref QuestSequence reference248 = ref span134[2]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -340958,16 +281211,13 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - Span span335 = CollectionsMarshal.AsSpan(list335); - index = 0; - span335[index] = "goatzone"; + CollectionsMarshal.AsSpan(list335)[0] = "goatzone"; questRoot40.Author = list335; - index = 4; - List list336 = new List(index); - CollectionsMarshal.SetCount(list336, index); - Span span336 = CollectionsMarshal.AsSpan(list336); - num = 0; - ref QuestSequence reference249 = ref span336[num]; + num = 4; + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + Span span135 = CollectionsMarshal.AsSpan(list336); + ref QuestSequence reference249 = ref span135[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -340975,30 +281225,24 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958); + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040662u, new Vector3(-373.18994f, 22.268795f, 385.00024f), 958); obj207.Steps = list337; reference249 = obj207; - num++; - ref QuestSequence reference250 = ref span336[num]; + ref QuestSequence reference250 = ref span135[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj208.Steps = list338; reference250 = obj208; - num++; - ref QuestSequence reference251 = ref span336[num]; + ref QuestSequence reference251 = ref span135[2]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -341006,16 +281250,12 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - ref QuestStep reference252 = ref span339[index2]; + ref QuestStep reference252 = ref CollectionsMarshal.AsSpan(list339)[0]; 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); - Span span340 = CollectionsMarshal.AsSpan(list340); - index3 = 0; - span340[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZD015_04239_Q1_000_000") @@ -341024,18 +281264,15 @@ public static class AssemblyQuestLoader reference252 = questStep43; obj209.Steps = list339; reference251 = obj209; - num++; - ref QuestSequence reference253 = ref span336[num]; + ref QuestSequence reference253 = ref span135[3]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -341048,16 +281285,13 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - Span span342 = CollectionsMarshal.AsSpan(list342); - index = 0; - span342[index] = "liza"; + CollectionsMarshal.AsSpan(list342)[0] = "liza"; questRoot41.Author = list342; - index = 3; - List list343 = new List(index); - CollectionsMarshal.SetCount(list343, index); - Span span343 = CollectionsMarshal.AsSpan(list343); - num = 0; - ref QuestSequence reference254 = ref span343[num]; + num = 3; + List list343 = new List(num); + CollectionsMarshal.SetCount(list343, num); + Span span136 = CollectionsMarshal.AsSpan(list343); + ref QuestSequence reference254 = ref span136[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -341065,39 +281299,31 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); obj211.Steps = list344; reference254 = obj211; - num++; - ref QuestSequence reference255 = ref span343[num]; + ref QuestSequence reference255 = ref span136[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list345 = new List(index2); - CollectionsMarshal.SetCount(list345, index2); - Span span345 = CollectionsMarshal.AsSpan(list345); - num2 = 0; - ref QuestStep reference256 = ref span345[num2]; + num2 = 1; + List list345 = new List(num2); + CollectionsMarshal.SetCount(list345, num2); + ref QuestStep reference256 = ref CollectionsMarshal.AsSpan(list345)[0]; QuestStep obj213 = new QuestStep(EInteractionType.Combat, 1041132u, new Vector3(-558.1293f, -168f, -475.3338f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list346 = new List(index3); - CollectionsMarshal.SetCount(list346, index3); - Span span346 = CollectionsMarshal.AsSpan(list346); - num3 = 0; - span346[num3] = 14053u; + num3 = 1; + List list346 = new List(num3); + CollectionsMarshal.SetCount(list346, num3); + CollectionsMarshal.AsSpan(list346)[0] = 14053u; obj213.KillEnemyDataIds = list346; reference256 = obj213; obj212.Steps = list345; reference255 = obj212; - num++; - ref QuestSequence reference257 = ref span343[num]; + ref QuestSequence reference257 = ref span136[2]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -341105,9 +281331,7 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037867u, new Vector3(-301.62512f, -144.00002f, -491.14215f), 959); obj214.Steps = list347; reference257 = obj214; questRoot41.QuestSequence = list343; @@ -341117,30 +281341,24 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - Span span348 = CollectionsMarshal.AsSpan(list348); - index = 0; - span348[index] = "liza"; + CollectionsMarshal.AsSpan(list348)[0] = "liza"; questRoot42.Author = list348; - index = 3; - List list349 = new List(index); - CollectionsMarshal.SetCount(list349, index); - Span span349 = CollectionsMarshal.AsSpan(list349); - num = 0; - ref QuestSequence reference258 = ref span349[num]; + num = 3; + List list349 = new List(num); + CollectionsMarshal.SetCount(list349, num); + Span span137 = CollectionsMarshal.AsSpan(list349); + ref QuestSequence reference258 = ref span137[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj215.Steps = list350; reference258 = obj215; - num++; - ref QuestSequence reference259 = ref span349[num]; + ref QuestSequence reference259 = ref span137[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -341148,9 +281366,8 @@ public static class AssemblyQuestLoader num2 = 18; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span351 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - ref QuestStep reference260 = ref span351[index2]; + Span span138 = CollectionsMarshal.AsSpan(list351); + ref QuestStep reference260 = ref span138[0]; QuestStep obj217 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-348.90564f, -161.8501f, -651.4007f), 959) { StopDistance = 1f @@ -341160,25 +281377,18 @@ public static class AssemblyQuestLoader num3 = 6; List list352 = new List(num3); CollectionsMarshal.SetCount(list352, num3); - 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list352; skipConditions10.StepIf = skipStepConditions10; obj217.SkipConditions = skipConditions10; reference260 = obj217; - index2++; - ref QuestStep reference261 = ref span351[index2]; + ref QuestStep reference261 = ref span138[1]; QuestStep obj218 = new QuestStep(EInteractionType.Jump, null, new Vector3(-348.90564f, -161.8501f, -651.4007f), 959) { StopDistance = 1f, @@ -341191,28 +281401,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list353; skipConditions11.StepIf = skipStepConditions11; obj218.SkipConditions = skipConditions11; reference261 = obj218; - index2++; - ref QuestStep reference262 = ref span351[index2]; + ref QuestStep reference262 = ref span138[2]; QuestStep obj219 = new QuestStep(EInteractionType.Jump, null, new Vector3(-344.52225f, -160.40424f, -654.19385f), 959) { Comment = "Platform 2", @@ -341227,25 +281430,18 @@ public static class AssemblyQuestLoader num3 = 6; List list354 = new List(num3); CollectionsMarshal.SetCount(list354, num3); - 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); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list354; skipConditions12.StepIf = skipStepConditions12; obj219.SkipConditions = skipConditions12; reference262 = obj219; - index2++; - ref QuestStep reference263 = ref span351[index2]; + ref QuestStep reference263 = ref span138[3]; QuestStep obj220 = new QuestStep(EInteractionType.Jump, null, new Vector3(-342.69867f, -158.90424f, -651.2852f), 959) { Comment = "Platform 3", @@ -341257,28 +281453,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipStepConditions skipStepConditions13 = new SkipStepConditions(); - 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); + 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); skipStepConditions13.CompletionQuestVariablesFlags = list355; skipConditions13.StepIf = skipStepConditions13; obj220.SkipConditions = skipConditions13; reference263 = obj220; - index2++; - ref QuestStep reference264 = ref span351[index2]; + ref QuestStep reference264 = ref span138[4]; QuestStep obj221 = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.018f, -157.40425f, -649.38934f), 959) { Comment = "Platform 4", @@ -341293,25 +281482,18 @@ public static class AssemblyQuestLoader num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - 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); + 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); skipStepConditions14.CompletionQuestVariablesFlags = list356; skipConditions14.StepIf = skipStepConditions14; obj221.SkipConditions = skipConditions14; reference264 = obj221; - index2++; - ref QuestStep reference265 = ref span351[index2]; + ref QuestStep reference265 = ref span138[5]; QuestStep obj222 = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.68277f, -155.90424f, -646.8163f), 959) { Comment = "Platform 5", @@ -341323,28 +281505,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipStepConditions skipStepConditions15 = new SkipStepConditions(); - 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); + 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); skipStepConditions15.CompletionQuestVariablesFlags = list357; skipConditions15.StepIf = skipStepConditions15; obj222.SkipConditions = skipConditions15; reference265 = obj222; - index2++; - ref QuestStep reference266 = ref span351[index2]; + ref QuestStep reference266 = ref span138[6]; QuestStep obj223 = new QuestStep(EInteractionType.Jump, null, new Vector3(-335.60294f, -154.40422f, -646.18335f), 959) { Comment = "Platform 6", @@ -341359,53 +281534,39 @@ public static class AssemblyQuestLoader num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - 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); + 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); skipStepConditions16.CompletionQuestVariablesFlags = list358; skipConditions16.StepIf = skipStepConditions16; obj223.SkipConditions = skipConditions16; reference266 = obj223; - index2++; - ref QuestStep reference267 = ref span351[index2]; + ref QuestStep reference267 = ref span138[7]; 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(); - 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); + 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); skipStepConditions17.CompletionQuestVariablesFlags = list359; skipConditions17.StepIf = skipStepConditions17; obj224.SkipConditions = skipConditions17; reference267 = obj224; - index2++; - ref QuestStep reference268 = ref span351[index2]; + ref QuestStep reference268 = ref span138[8]; QuestStep obj225 = new QuestStep(EInteractionType.Say, 1041789u, new Vector3(-329.3355f, -151.26128f, -657.2519f), 959) { StopDistance = 6f, @@ -341418,23 +281579,16 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - 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); + 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); obj225.CompletionQuestVariablesFlags = list360; reference268 = obj225; - index2++; - ref QuestStep reference269 = ref span351[index2]; + ref QuestStep reference269 = ref span138[9]; QuestStep obj226 = new QuestStep(EInteractionType.Say, 1041790u, new Vector3(-482.01727f, -167.50002f, -545.6169f), 959) { StopDistance = 3f, @@ -341443,31 +281597,23 @@ public static class AssemblyQuestLoader Key = "TEXT_AKTKZE002_04241_SYSTEM_000_010" } }; - 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); + 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); obj226.CompletionQuestVariablesFlags = list361; reference269 = obj226; - index2++; - span351[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) + span138[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) { StopDistance = 1f }; - index2++; - ref QuestStep reference270 = ref span351[index2]; + ref QuestStep reference270 = ref span138[11]; QuestStep obj227 = new QuestStep(EInteractionType.Jump, null, new Vector3(-438.33246f, -168.00002f, -420.43494f), 959) { StopDistance = 1f, @@ -341484,25 +281630,18 @@ public static class AssemblyQuestLoader num3 = 6; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - 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); + 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); skipStepConditions18.CompletionQuestVariablesFlags = list362; skipConditions18.StepIf = skipStepConditions18; obj227.SkipConditions = skipConditions18; reference270 = obj227; - index2++; - ref QuestStep reference271 = ref span351[index2]; + ref QuestStep reference271 = ref span138[12]; QuestStep obj228 = new QuestStep(EInteractionType.Jump, null, new Vector3(-438.3488f, -166.55414f, -415.94168f), 959) { StopDistance = 1f, @@ -341515,28 +281654,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions19 = new SkipStepConditions(); - 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); + 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); skipStepConditions19.CompletionQuestVariablesFlags = list363; skipConditions19.StepIf = skipStepConditions19; obj228.SkipConditions = skipConditions19; reference271 = obj228; - index2++; - ref QuestStep reference272 = ref span351[index2]; + ref QuestStep reference272 = ref span138[13]; QuestStep obj229 = new QuestStep(EInteractionType.Jump, null, new Vector3(-436.71103f, -165.05412f, -413.06158f), 959) { StopDistance = 1f, @@ -341552,25 +281684,18 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - 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); + 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); skipStepConditions20.CompletionQuestVariablesFlags = list364; skipConditions20.StepIf = skipStepConditions20; obj229.SkipConditions = skipConditions20; reference272 = obj229; - index2++; - ref QuestStep reference273 = ref span351[index2]; + ref QuestStep reference273 = ref span138[14]; QuestStep obj230 = new QuestStep(EInteractionType.Jump, null, new Vector3(-434.92825f, -163.55417f, -411.54132f), 959) { StopDistance = 1f, @@ -341583,28 +281708,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions21 = new SkipStepConditions(); - 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); + 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); skipStepConditions21.CompletionQuestVariablesFlags = list365; skipConditions21.StepIf = skipStepConditions21; obj230.SkipConditions = skipConditions21; reference273 = obj230; - index2++; - ref QuestStep reference274 = ref span351[index2]; + ref QuestStep reference274 = ref span138[15]; QuestStep obj231 = new QuestStep(EInteractionType.Jump, null, new Vector3(-432.17563f, -162.05412f, -409.53986f), 959) { StopDistance = 1f, @@ -341620,25 +281738,18 @@ public static class AssemblyQuestLoader num3 = 6; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - 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); + 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); skipStepConditions22.CompletionQuestVariablesFlags = list366; skipConditions22.StepIf = skipStepConditions22; obj231.SkipConditions = skipConditions22; reference274 = obj231; - index2++; - ref QuestStep reference275 = ref span351[index2]; + ref QuestStep reference275 = ref span138[16]; QuestStep obj232 = new QuestStep(EInteractionType.Jump, null, new Vector3(-429.1173f, -160.55412f, -408.93143f), 959) { StopDistance = 1f, @@ -341651,28 +281762,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions23 = new SkipConditions(); SkipStepConditions skipStepConditions23 = new SkipStepConditions(); - 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); + 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); skipStepConditions23.CompletionQuestVariablesFlags = list367; skipConditions23.StepIf = skipStepConditions23; obj232.SkipConditions = skipConditions23; reference275 = obj232; - index2++; - ref QuestStep reference276 = ref span351[index2]; + ref QuestStep reference276 = ref span138[17]; QuestStep obj233 = new QuestStep(EInteractionType.Say, 1041791u, new Vector3(-409.87262f, -158.89125f, -426.68805f), 959) { StopDistance = 3f, @@ -341684,41 +281788,32 @@ public static class AssemblyQuestLoader num3 = 6; List list368 = new List(num3); CollectionsMarshal.SetCount(list368, num3); - 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); + 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); obj233.CompletionQuestVariablesFlags = list368; reference276 = obj233; obj216.Steps = list351; reference259 = obj216; - num++; - ref QuestSequence reference277 = ref span349[num]; + ref QuestSequence reference277 = ref span137[2]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span369[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); + span156[1] = new QuestStep(EInteractionType.CompleteQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959); obj234.Steps = list369; reference277 = obj234; questRoot42.QuestSequence = list349; @@ -341732,16 +281827,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -341749,16 +281841,12 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; 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); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZE014_04253_Q1_000_000"), @@ -341768,24 +281856,20 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list5; reference3 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -341793,30 +281877,22 @@ public static class AssemblyQuestLoader num2 = 3; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - ref QuestStep reference5 = ref span6[index2]; + Span span3 = CollectionsMarshal.AsSpan(list6); + ref QuestStep reference5 = ref span3[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012338u, new Vector3(700.19055f, 135.21008f, 229.48035f), 959); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list7; reference5 = questStep2; - index2++; - ref QuestStep reference6 = ref span6[index2]; + ref QuestStep reference6 = ref span3[1]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 1041125u, new Vector3(735.5f, 151.08012f, 189.01343f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -341824,80 +281900,59 @@ public static class AssemblyQuestLoader num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span8 = CollectionsMarshal.AsSpan(list8); - index3 = 0; - span8[index3] = 14050u; + CollectionsMarshal.AsSpan(list8)[0] = 14050u; obj4.KillEnemyDataIds = 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); + 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); obj4.CompletionQuestVariablesFlags = list9; reference6 = obj4; - index2++; - ref QuestStep reference7 = ref span6[index2]; + ref QuestStep reference7 = ref span3[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list10; reference7 = questStep3; obj3.Steps = list6; reference4 = obj3; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference9 = ref span11[num2]; + num2 = 1; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj6 = new QuestStep(EInteractionType.Combat, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list12 = new List(index3); - CollectionsMarshal.SetCount(list12, index3); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = 14049u; + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = 14049u; obj6.KillEnemyDataIds = list12; reference9 = obj6; obj5.Steps = list11; reference8 = obj5; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[4]; QuestSequence obj7 = new QuestSequence { Sequence = 4 @@ -341905,26 +281960,21 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1041127u, new Vector3(537.3159f, 132.40395f, 233.81396f), 959) { StopDistance = 5f }; obj7.Steps = list13; reference10 = obj7; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[5]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; @@ -341937,16 +281987,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot2.Author = list15; - index = 4; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference12 = ref span16[num]; + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span7 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference12 = ref span7[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -341954,27 +282001,21 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957); obj9.Steps = list17; reference12 = obj9; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span7[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj10.Steps = list18; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span7[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -341982,9 +282023,8 @@ public static class AssemblyQuestLoader num2 = 3; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - ref QuestStep reference15 = ref span19[index2]; + Span span8 = CollectionsMarshal.AsSpan(list19); + ref QuestStep reference15 = ref span8[0]; QuestStep obj12 = new QuestStep(EInteractionType.Combat, null, new Vector3(46.32264f, 21.089579f, -190.2062f), 957) { DelaySecondsAtStart = 3f, @@ -341995,13 +282035,10 @@ public static class AssemblyQuestLoader num3 = 1; List list20 = new List(num3); CollectionsMarshal.SetCount(list20, num3); - Span span20 = CollectionsMarshal.AsSpan(list20); - index3 = 0; - span20[index3] = 14114u; + CollectionsMarshal.AsSpan(list20)[0] = 14114u; obj12.KillEnemyDataIds = list20; reference15 = obj12; - index2++; - span19[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 14115u, new Vector3(333.8999f, 13.173893f, -239.1983f), 957) + span8[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 14115u, new Vector3(333.8999f, 13.173893f, -239.1983f), 957) { StopDistance = 1f, NpcWaitDistance = 4f, @@ -342009,22 +282046,18 @@ public static class AssemblyQuestLoader Mount = false, Sprint = false }; - index2++; - span19[index2] = new QuestStep(EInteractionType.Interact, 2012261u, new Vector3(334.67603f, 13.076904f, -239.7956f), 957); + span8[2] = new QuestStep(EInteractionType.Interact, 2012261u, new Vector3(334.67603f, 13.076904f, -239.7956f), 957); obj11.Steps = list19; reference14 = obj11; - num++; - ref QuestSequence reference16 = ref span16[num]; + ref QuestSequence reference16 = ref span7[3]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj13.Steps = list21; reference16 = obj13; questRoot2.QuestSequence = list16; @@ -342034,16 +282067,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot3.Author = list22; - index = 5; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference17 = ref span23[num]; + num = 5; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span9 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference17 = ref span9[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -342051,27 +282081,21 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); obj14.Steps = list24; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span9[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj15.Steps = list25; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span9[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -342079,30 +282103,22 @@ public static class AssemblyQuestLoader num2 = 4; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - ref QuestStep reference20 = ref span26[index2]; + Span span10 = CollectionsMarshal.AsSpan(list26); + ref QuestStep reference20 = ref span10[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2012232u, new Vector3(660.8529f, 36.423218f, 89.09741f), 957); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list27; reference20 = questStep4; - index2++; - ref QuestStep reference21 = ref span26[index2]; + ref QuestStep reference21 = ref span10[1]; QuestStep obj17 = new QuestStep(EInteractionType.Combat, 1040850u, new Vector3(411.0321f, 7.9535227f, 302.8152f), 957) { StopDistance = 1f, @@ -342111,88 +282127,62 @@ public static class AssemblyQuestLoader num3 = 1; List list28 = new List(num3); CollectionsMarshal.SetCount(list28, num3); - Span span28 = CollectionsMarshal.AsSpan(list28); - index3 = 0; - span28[index3] = 14111u; + CollectionsMarshal.AsSpan(list28)[0] = 14111u; obj17.KillEnemyDataIds = list28; - 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); + 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); obj17.CompletionQuestVariablesFlags = list29; reference21 = obj17; - index2++; - ref QuestStep reference22 = ref span26[index2]; + ref QuestStep reference22 = ref span10[2]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list30; reference22 = questStep5; - index2++; - ref QuestStep reference23 = ref span26[index2]; + ref QuestStep reference23 = ref span10[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012231u, new Vector3(343.9536f, 6.362976f, 372.54907f), 957); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list31; reference23 = questStep6; obj16.Steps = list26; reference19 = obj16; - num++; - ref QuestSequence reference24 = ref span23[num]; + ref QuestSequence reference24 = ref span9[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj18.Steps = list32; reference24 = obj18; - num++; - ref QuestSequence reference25 = ref span23[num]; + ref QuestSequence reference25 = ref span9[4]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -342200,9 +282190,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957); obj19.Steps = list33; reference25 = obj19; questRoot3.QuestSequence = list23; @@ -342212,35 +282200,29 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot4.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference26 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span15 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference26 = ref span15[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj20.Steps = list36; reference26 = obj20; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span15[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -342248,9 +282230,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1041282u, new Vector3(67.826294f, -24.693443f, -238.08661f), 963) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1041282u, new Vector3(67.826294f, -24.693443f, -238.08661f), 963) { AethernetShortcut = new AethernetShortcut { @@ -342260,18 +282240,16 @@ public static class AssemblyQuestLoader }; obj21.Steps = list37; reference27 = obj21; - num++; - ref QuestSequence reference28 = ref span35[num]; + ref QuestSequence reference28 = ref span15[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -342279,8 +282257,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - num2++; - span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; @@ -342293,16 +282270,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot5.Author = list39; - index = 4; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference29 = ref span40[num]; + num = 4; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span18 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference29 = ref span18[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -342310,23 +282284,18 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963); obj23.Steps = list41; reference29 = obj23; - num++; - ref QuestSequence reference30 = ref span40[num]; + ref QuestSequence reference30 = ref span18[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -342336,8 +282305,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list42; reference30 = obj24; - num++; - ref QuestSequence reference31 = ref span40[num]; + ref QuestSequence reference31 = ref span18[2]; QuestSequence obj25 = new QuestSequence { Sequence = 2 @@ -342345,33 +282313,24 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref QuestStep reference32 = ref span43[index2]; + Span span19 = CollectionsMarshal.AsSpan(list43); + ref QuestStep reference32 = ref span19[0]; 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 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; + 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; questStep7.CompletionQuestVariablesFlags = list44; - index3 = 1; - List list45 = new List(index3); - CollectionsMarshal.SetCount(list45, index3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num3 = 0; - span45[num3] = new DialogueChoice + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF015_04270_Q1_000_000"), @@ -342379,32 +282338,23 @@ public static class AssemblyQuestLoader }; questStep7.DialogueChoices = list45; reference32 = questStep7; - index2++; - ref QuestStep reference33 = ref span43[index2]; + ref QuestStep reference33 = ref span19[1]; 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 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; + 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; questStep8.CompletionQuestVariablesFlags = list46; - index3 = 1; - List list47 = new List(index3); - CollectionsMarshal.SetCount(list47, index3); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - span47[num3] = new DialogueChoice + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF015_04270_Q1_000_000"), @@ -342412,33 +282362,28 @@ public static class AssemblyQuestLoader }; questStep8.DialogueChoices = list47; reference33 = questStep8; - index2++; - span43[index2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) + span19[2] = new QuestStep(EInteractionType.Interact, 1041152u, new Vector3(-100.02289f, 13.999934f, 157.97656f), 963) { StopDistance = 7f }; obj25.Steps = list43; reference31 = obj25; - num++; - ref QuestSequence reference34 = ref span40[num]; + ref QuestSequence reference34 = ref span18[3]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 2f, DisableNavmesh = true }; - num2++; - span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963) + span22[2] = new QuestStep(EInteractionType.CompleteQuest, 1037469u, new Vector3(-148.8518f, 36f, 38.895264f), 963) { AethernetShortcut = new AethernetShortcut { @@ -342455,16 +282400,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot6.Author = list49; - index = 3; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference35 = ref span50[num]; + num = 3; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span23 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference35 = ref span23[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -342472,23 +282414,19 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963); + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963); obj27.Steps = list51; reference35 = obj27; - num++; - ref QuestSequence reference36 = ref span50[num]; + ref QuestSequence reference36 = ref span23[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference37 = ref span52[num2]; + num2 = 2; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + Span span24 = CollectionsMarshal.AsSpan(list52); + ref QuestStep reference37 = ref span24[0]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1041154u, new Vector3(112.01648f, 26.99999f, 53.81848f), 963) { AethernetShortcut = new AethernetShortcut @@ -342500,23 +282438,16 @@ public static class AssemblyQuestLoader num3 = 6; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - 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); + 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); obj29.CompletionQuestVariablesFlags = list53; reference37 = obj29; - num2++; - ref QuestStep reference38 = ref span52[num2]; + ref QuestStep reference38 = ref span24[1]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1037354u, new Vector3(109.33081f, 1.8631814f, -100.1145f), 963) { StopDistance = 7f, @@ -342526,28 +282457,21 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - 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); + 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); obj30.CompletionQuestVariablesFlags = list54; reference38 = obj30; obj28.Steps = list52; reference36 = obj28; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span23[2]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -342555,9 +282479,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041155u, new Vector3(-57.51129f, -2.000002f, 129.77795f), 963) { AethernetShortcut = new AethernetShortcut { @@ -342574,30 +282496,24 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot7.Author = list56; - index = 7; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference40 = ref span57[num]; + num = 7; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span27 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference40 = ref span27[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj32.Steps = list58; reference40 = obj32; - num++; - ref QuestSequence reference41 = ref span57[num]; + ref QuestSequence reference41 = ref span27[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -342605,17 +282521,14 @@ public static class AssemblyQuestLoader num2 = 4; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - 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) + 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) { StopDistance = 3f, DisableNavmesh = true }; - index2++; - span59[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) + span28[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-21.53136f, 1.7999926f, -182.28082f), 963) { AethernetShortcut = new AethernetShortcut { @@ -342623,29 +282536,24 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - index2++; - span59[index2] = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) + span28[3] = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 4f }; obj33.Steps = list59; reference41 = obj33; - num++; - ref QuestSequence reference42 = ref span57[num]; + ref QuestSequence reference42 = ref span27[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj34.Steps = list60; reference42 = obj34; - num++; - ref QuestSequence reference43 = ref span57[num]; + ref QuestSequence reference43 = ref span27[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 @@ -342653,27 +282561,21 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.Interact, 2012388u, new Vector3(-65.62909f, 13.992493f, 129.1676f), 963); + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 2012388u, new Vector3(-65.62909f, 13.992493f, 129.1676f), 963); obj35.Steps = list61; reference43 = obj35; - num++; - ref QuestSequence reference44 = ref span57[num]; + ref QuestSequence reference44 = ref span27[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj36.Steps = list62; reference44 = obj36; - num++; - ref QuestSequence reference45 = ref span57[num]; + ref QuestSequence reference45 = ref span27[5]; QuestSequence obj37 = new QuestSequence { Sequence = 5 @@ -342681,23 +282583,18 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.Interact, 1037466u, new Vector3(-205.31018f, 36f, 135.39331f), 963); + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.Interact, 1037466u, new Vector3(-205.31018f, 36f, 135.39331f), 963); obj37.Steps = list63; reference45 = obj37; - num++; - ref QuestSequence reference46 = ref span57[num]; + ref QuestSequence reference46 = ref span27[6]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj38.Steps = list64; reference46 = obj38; questRoot7.QuestSequence = list57; @@ -342707,16 +282604,13 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot8.Author = list65; - index = 4; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference47 = ref span66[num]; + num = 4; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span29 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference47 = ref span29[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 @@ -342724,27 +282618,21 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041146u, new Vector3(-155.80994f, 28f, 178.97302f), 963); obj39.Steps = list67; reference47 = obj39; - num++; - ref QuestSequence reference48 = ref span66[num]; + ref QuestSequence reference48 = ref span29[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj40.Steps = list68; reference48 = obj40; - num++; - ref QuestSequence reference49 = ref span66[num]; + ref QuestSequence reference49 = ref span29[2]; QuestSequence obj41 = new QuestSequence { Sequence = 2 @@ -342752,16 +282640,12 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - ref QuestStep reference50 = ref span69[index2]; + ref QuestStep reference50 = ref CollectionsMarshal.AsSpan(list69)[0]; 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); - Span span70 = CollectionsMarshal.AsSpan(list70); - index3 = 0; - span70[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list70)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF018_04273_Q1_000_000"), @@ -342771,18 +282655,15 @@ public static class AssemblyQuestLoader reference50 = questStep9; obj41.Steps = list69; reference49 = obj41; - num++; - ref QuestSequence reference51 = ref span66[num]; + ref QuestSequence reference51 = ref span29[3]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj42.Steps = list71; reference51 = obj42; questRoot8.QuestSequence = list66; @@ -342792,16 +282673,13 @@ public static class AssemblyQuestLoader num = 1; List list72 = new List(num); CollectionsMarshal.SetCount(list72, num); - Span span72 = CollectionsMarshal.AsSpan(list72); - index = 0; - span72[index] = "liza"; + CollectionsMarshal.AsSpan(list72)[0] = "liza"; questRoot9.Author = list72; - index = 3; - List list73 = new List(index); - CollectionsMarshal.SetCount(list73, index); - Span span73 = CollectionsMarshal.AsSpan(list73); - num = 0; - ref QuestSequence reference52 = ref span73[num]; + num = 3; + List list73 = new List(num); + CollectionsMarshal.SetCount(list73, num); + Span span30 = CollectionsMarshal.AsSpan(list73); + ref QuestSequence reference52 = ref span30[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -342809,47 +282687,35 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); obj43.Steps = list74; reference52 = obj43; - num++; - ref QuestSequence reference53 = ref span73[num]; + ref QuestSequence reference53 = ref span30[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - index2 = 7; - List list75 = new List(index2); - CollectionsMarshal.SetCount(list75, index2); - Span span75 = CollectionsMarshal.AsSpan(list75); - num2 = 0; - ref QuestStep reference54 = ref span75[num2]; + num2 = 7; + List list75 = new List(num2); + CollectionsMarshal.SetCount(list75, num2); + Span span31 = CollectionsMarshal.AsSpan(list75); + ref QuestStep reference54 = ref span31[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012393u, new Vector3(-238.88f, 35.965454f, 122.78931f), 963); - 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; + 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; questStep10.CompletionQuestVariablesFlags = list76; num3 = 1; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - Span span77 = CollectionsMarshal.AsSpan(list77); - index3 = 0; - span77[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list77)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q3_000_000"), @@ -342857,32 +282723,23 @@ public static class AssemblyQuestLoader }; questStep10.DialogueChoices = list77; reference54 = questStep10; - num2++; - ref QuestStep reference55 = ref span75[num2]; + ref QuestStep reference55 = ref span31[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012393u, new Vector3(-238.88f, 35.965454f, 122.78931f), 963); - 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; + 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; questStep11.CompletionQuestVariablesFlags = list78; num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - index3 = 0; - span79[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q3_000_000"), @@ -342890,32 +282747,23 @@ public static class AssemblyQuestLoader }; questStep11.DialogueChoices = list79; reference55 = questStep11; - num2++; - ref QuestStep reference56 = ref span75[num2]; + ref QuestStep reference56 = ref span31[2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2012392u, new Vector3(-237.10992f, 35.965454f, 122.75879f), 963); - 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; + 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; questStep12.CompletionQuestVariablesFlags = list80; num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - Span span81 = CollectionsMarshal.AsSpan(list81); - index3 = 0; - span81[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list81)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q2_000_000"), @@ -342923,32 +282771,23 @@ public static class AssemblyQuestLoader }; questStep12.DialogueChoices = list81; reference56 = questStep12; - num2++; - ref QuestStep reference57 = ref span75[num2]; + ref QuestStep reference57 = ref span31[3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2012391u, new Vector3(-235.52307f, 35.965454f, 122.23999f), 963); - 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; + 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; questStep13.CompletionQuestVariablesFlags = list82; num3 = 1; List list83 = new List(num3); CollectionsMarshal.SetCount(list83, num3); - Span span83 = CollectionsMarshal.AsSpan(list83); - index3 = 0; - span83[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q1_000_000"), @@ -342956,32 +282795,23 @@ public static class AssemblyQuestLoader }; questStep13.DialogueChoices = list83; reference57 = questStep13; - num2++; - ref QuestStep reference58 = ref span75[num2]; + ref QuestStep reference58 = ref span31[4]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2012391u, new Vector3(-235.52307f, 35.965454f, 122.23999f), 963); - 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; + 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; questStep14.CompletionQuestVariablesFlags = list84; num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span85 = CollectionsMarshal.AsSpan(list85); - index3 = 0; - span85[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF019_04274_Q1_000_000"), @@ -342989,52 +282819,37 @@ public static class AssemblyQuestLoader }; questStep14.DialogueChoices = list85; reference58 = questStep14; - num2++; - ref QuestStep reference59 = ref span75[num2]; + ref QuestStep reference59 = ref span31[5]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1041149u, new Vector3(-226.64227f, 36f, 108.56787f), 963); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list86; reference59 = questStep15; - num2++; - ref QuestStep reference60 = ref span75[num2]; + ref QuestStep reference60 = ref span31[6]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list87; reference60 = questStep16; obj44.Steps = list75; reference53 = obj44; - num++; - ref QuestSequence reference61 = ref span73[num]; + ref QuestSequence reference61 = ref span30[2]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -343042,9 +282857,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040957u, new Vector3(-191.48547f, 35.999928f, 158.31238f), 963); obj45.Steps = list88; reference61 = obj45; questRoot9.QuestSequence = list73; @@ -343054,30 +282867,24 @@ public static class AssemblyQuestLoader num = 1; List list89 = new List(num); CollectionsMarshal.SetCount(list89, num); - Span span89 = CollectionsMarshal.AsSpan(list89); - index = 0; - span89[index] = "liza"; + CollectionsMarshal.AsSpan(list89)[0] = "liza"; questRoot10.Author = list89; - index = 4; - List list90 = new List(index); - CollectionsMarshal.SetCount(list90, index); - Span span90 = CollectionsMarshal.AsSpan(list90); - num = 0; - ref QuestSequence reference62 = ref span90[num]; + num = 4; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + Span span39 = CollectionsMarshal.AsSpan(list90); + ref QuestSequence reference62 = ref span39[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj46.Steps = list91; reference62 = obj46; - num++; - ref QuestSequence reference63 = ref span90[num]; + ref QuestSequence reference63 = ref span39[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 @@ -343085,69 +282892,57 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.Interact, 1041514u, new Vector3(-133.59277f, 30.999994f, 0.07623291f), 963); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.Interact, 1041514u, new Vector3(-133.59277f, 30.999994f, 0.07623291f), 963); obj47.Steps = list92; reference63 = obj47; - num++; - ref QuestSequence reference64 = ref span90[num]; + ref QuestSequence reference64 = ref span39[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DelaySecondsAtStart = 2f, Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-63.309746f, 31.051857f, 20.292212f), 963) + span40[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-63.309746f, 31.051857f, 20.292212f), 963) { StopDistance = 100f, Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.410736f, 30.999716f, 20.657598f), 963) + span40[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.410736f, 30.999716f, 20.657598f), 963) { Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-16.034935f, 27.05736f, 31.972898f), 963) + span40[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(-16.034935f, 27.05736f, 31.972898f), 963) { StopDistance = 100f, Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.071863f, 27.000011f, 27.903757f), 963) + span40[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-27.071863f, 27.000011f, 27.903757f), 963) { Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(20.139565f, 26.999846f, 34.94524f), 963) + span40[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(20.139565f, 26.999846f, 34.94524f), 963) { StopDistance = 100f, Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.18388f, 26.999989f, 41.661907f), 963) + span40[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(33.18388f, 26.999989f, 41.661907f), 963) { DelaySecondsAtStart = 2f, Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(56.11211f, 26.999992f, 47.213455f), 963) + span40[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041515u, new Vector3(56.11211f, 26.999992f, 47.213455f), 963) { StopDistance = 100f, Sprint = false }; - num2++; - span93[num2] = new QuestStep(EInteractionType.WalkTo, 1041514u, new Vector3(70.07179f, 26.99999f, 61.356277f), 963) + span40[8] = new QuestStep(EInteractionType.WalkTo, 1041514u, new Vector3(70.07179f, 26.99999f, 61.356277f), 963) { StopDistance = 2f, DelaySecondsAtStart = 8f, @@ -343155,8 +282950,7 @@ public static class AssemblyQuestLoader }; obj48.Steps = list93; reference64 = obj48; - num++; - ref QuestSequence reference65 = ref span90[num]; + ref QuestSequence reference65 = ref span39[3]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue @@ -343164,9 +282958,7 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040885u, new Vector3(-173.05261f, 36f, 25.589355f), 963); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040885u, new Vector3(-173.05261f, 36f, 25.589355f), 963); obj49.Steps = list94; reference65 = obj49; questRoot10.QuestSequence = list90; @@ -343176,30 +282968,24 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "liza"; + CollectionsMarshal.AsSpan(list95)[0] = "liza"; questRoot11.Author = list95; - index = 5; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference66 = ref span96[num]; + num = 5; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span41 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference66 = ref span41[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj50.Steps = list97; reference66 = obj50; - num++; - ref QuestSequence reference67 = ref span96[num]; + ref QuestSequence reference67 = ref span41[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 @@ -343207,62 +282993,51 @@ public static class AssemblyQuestLoader num2 = 5; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - 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) + 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) { StopDistance = 1f, Mount = true }; - index2++; - span98[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-686.881f, -25.994936f, 443.804f), 961) + span42[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-686.881f, -25.994936f, 443.804f), 961) { StopDistance = 1f }; - index2++; - span98[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-738.11304f, -25.933691f, 487.78436f), 961) + span42[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041141u, new Vector3(-738.11304f, -25.933691f, 487.78436f), 961) { StopDistance = 1f }; - index2++; - span98[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961) + span42[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961) { StopDistance = 1f }; obj51.Steps = list98; reference67 = obj51; - num++; - ref QuestSequence reference68 = ref span96[num]; + ref QuestSequence reference68 = ref span41[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list99 = new List(index2); - CollectionsMarshal.SetCount(list99, index2); - Span span99 = CollectionsMarshal.AsSpan(list99); - num2 = 0; - ref QuestStep reference69 = ref span99[num2]; + num2 = 1; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list99)[0]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, null, new Vector3(-838.7837f, -39.605896f, 518.9479f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + Span span43 = CollectionsMarshal.AsSpan(list100); + span43[0] = 14064u; + span43[1] = 14065u; obj53.KillEnemyDataIds = list100; reference69 = obj53; obj52.Steps = list99; reference68 = obj52; - num++; - ref QuestSequence reference70 = ref span96[num]; + ref QuestSequence reference70 = ref span41[3]; QuestSequence obj54 = new QuestSequence { Sequence = 3 @@ -343270,23 +283045,18 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1041137u, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1041137u, new Vector3(-819.6994f, -38.65795f, 506.43152f), 961); obj54.Steps = list101; reference70 = obj54; - num++; - ref QuestSequence reference71 = ref span96[num]; + ref QuestSequence reference71 = ref span41[4]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj55.Steps = list102; reference71 = obj55; questRoot11.QuestSequence = list96; @@ -343300,16 +283070,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -343317,23 +283084,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041847u, new Vector3(-484.2146f, 141.86789f, -97.21527f), 961); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(258.35046f, -10.140662f, -95.71985f), 961) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis @@ -343341,9 +283103,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZH018_04313_Q1_000_100"), @@ -343353,8 +283113,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -343362,23 +283121,18 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(-175.03741f, 12.098856f, 6.8771067f), 961); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1041848u, new Vector3(-175.03741f, 12.098856f, 6.8771067f), 961); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -343391,16 +283145,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 4; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 4; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -343408,27 +283159,21 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962); + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041301u, new Vector3(-50.94995f, -14.169327f, 108.75098f), 962); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -343436,30 +283181,22 @@ public static class AssemblyQuestLoader num2 = 3; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - ref QuestStep reference9 = ref span12[index2]; + Span span3 = CollectionsMarshal.AsSpan(list12); + ref QuestStep reference9 = ref span3[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1037066u, new Vector3(65.01868f, -14.446999f, 78.26355f), 962); - 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); + 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); questStep.CompletionQuestVariablesFlags = list13; reference9 = questStep; - index2++; - ref QuestStep reference10 = ref span12[index2]; + ref QuestStep reference10 = ref span3[1]; QuestStep obj9 = new QuestStep(EInteractionType.Interact, 1040985u, new Vector3(56.77881f, 5.1499996f, -73.86902f), 962) { AethernetShortcut = new AethernetShortcut @@ -343471,23 +283208,16 @@ public static class AssemblyQuestLoader num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - 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); + 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); obj9.CompletionQuestVariablesFlags = list14; reference10 = obj9; - index2++; - ref QuestStep reference11 = ref span12[index2]; + ref QuestStep reference11 = ref span3[2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2012610u, new Vector3(-363.6988f, 20.279175f, 92.729004f), 962) { AethernetShortcut = new AethernetShortcut @@ -343496,38 +283226,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - 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); + 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); obj10.CompletionQuestVariablesFlags = list15; reference11 = obj10; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference12 = ref span9[num]; + ref QuestSequence reference12 = ref span2[3]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -343544,16 +283265,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 4; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 4; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span7 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span7[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -343561,30 +283279,24 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041296u, new Vector3(-32.913757f, 2.400051f, -8.804504f), 962); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041296u, new Vector3(-32.913757f, 2.400051f, -8.804504f), 962); obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span7[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4f }; obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference15 = ref span18[num]; + ref QuestSequence reference15 = ref span7[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -343592,9 +283304,8 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - ref QuestStep reference16 = ref span21[index2]; + Span span8 = CollectionsMarshal.AsSpan(list21); + ref QuestStep reference16 = ref span8[0]; QuestStep obj15 = new QuestStep(EInteractionType.Emote, 1041297u, new Vector3(-167.55939f, 6.6576204f, 129.07605f), 962) { AethernetShortcut = new AethernetShortcut @@ -343607,23 +283318,16 @@ public static class AssemblyQuestLoader num3 = 6; List list22 = new List(num3); CollectionsMarshal.SetCount(list22, num3); - 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); + 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); obj15.CompletionQuestVariablesFlags = list22; reference16 = obj15; - index2++; - ref QuestStep reference17 = ref span21[index2]; + ref QuestStep reference17 = ref span8[1]; QuestStep obj16 = new QuestStep(EInteractionType.Say, 1041299u, new Vector3(-126.17688f, 29.890081f, -201.80054f), 962) { AethernetShortcut = new AethernetShortcut @@ -343636,26 +283340,19 @@ public static class AssemblyQuestLoader Key = "TEXT_AKTKZI002_04317_SAYTODO_000_060" } }; - 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); + 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); obj16.CompletionQuestVariablesFlags = list23; reference17 = obj16; - index2++; - ref QuestStep reference18 = ref span21[index2]; + ref QuestStep reference18 = ref span8[2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1037234u, new Vector3(16.922241f, 23.499975f, -136.67511f), 962) { SkipConditions = new SkipConditions @@ -343669,35 +283366,26 @@ public static class AssemblyQuestLoader num3 = 6; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - 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); + 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); obj17.CompletionQuestVariablesFlags = list24; reference18 = obj17; obj14.Steps = list21; reference15 = obj14; - num++; - ref QuestSequence reference19 = ref span18[num]; + ref QuestSequence reference19 = ref span7[3]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -343714,16 +283402,13 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; questRoot4.Author = list26; - index = 3; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 3; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span12 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span12[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -343731,9 +283416,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - ref QuestStep reference21 = ref span28[index2]; + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list28)[0]; QuestStep obj20 = new QuestStep(EInteractionType.AcceptQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -343750,12 +283433,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list29 = new List(index3); - CollectionsMarshal.SetCount(list29, index3); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span29[num3] = new DialogueChoice + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI003_04318_Q1_000_000"), @@ -343765,62 +283446,46 @@ public static class AssemblyQuestLoader reference21 = obj20; obj19.Steps = list28; reference20 = obj19; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span12[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num2 = 0; - ref QuestStep reference23 = ref span30[num2]; + num2 = 2; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + Span span13 = CollectionsMarshal.AsSpan(list30); + ref QuestStep reference23 = ref span13[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list31; reference23 = questStep2; - num2++; - ref QuestStep reference24 = ref span30[num2]; + ref QuestStep reference24 = ref span13[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012441u, new Vector3(168.0476f, 1.296936f, 53.94055f), 962); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; obj21.Steps = list30; reference22 = obj21; - num++; - ref QuestSequence reference25 = ref span27[num]; + ref QuestSequence reference25 = ref span12[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -343828,9 +283493,7 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041303u, new Vector3(209.55212f, 19.316555f, -110.70422f), 962) { AethernetShortcut = new AethernetShortcut { @@ -343847,32 +283510,26 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot5.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference26 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span16 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference26 = ref span16[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj23.Steps = list36; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span35[num]; + ref QuestSequence reference27 = ref span16[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -343880,9 +283537,7 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 1041308u, new Vector3(190.6615f, 18.89543f, -91.44739f), 962) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 1041308u, new Vector3(190.6615f, 18.89543f, -91.44739f), 962) { AethernetShortcut = new AethernetShortcut { @@ -343892,18 +283547,16 @@ public static class AssemblyQuestLoader }; obj24.Steps = list37; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span35[num]; + ref QuestSequence reference28 = ref span16[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -343911,8 +283564,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanScholarsHarbor } }; - num2++; - span38[num2] = new QuestStep(EInteractionType.CompleteQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); + span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1037077u, new Vector3(-38.07129f, -14.169313f, 105.30249f), 962); obj25.Steps = list38; reference28 = obj25; questRoot5.QuestSequence = list35; @@ -343922,16 +283574,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot6.Author = list39; - index = 4; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference29 = ref span40[num]; + num = 4; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span19 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference29 = ref span19[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -343939,16 +283588,12 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - ref QuestStep reference30 = ref span41[index2]; + ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list41)[0]; 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); - Span span42 = CollectionsMarshal.AsSpan(list42); - index3 = 0; - span42[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI005_04320_Q1_000_000"), @@ -343958,22 +283603,18 @@ public static class AssemblyQuestLoader reference30 = questStep4; obj26.Steps = list41; reference29 = obj26; - num++; - ref QuestSequence reference31 = ref span40[num]; + ref QuestSequence reference31 = ref span19[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj27.Steps = list43; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span19[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -343981,27 +283622,22 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.Emote, 2012494u, new Vector3(78.96533f, -29.098999f, 161.02844f), 956) + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Emote, 2012494u, new Vector3(78.96533f, -29.098999f, 161.02844f), 956) { StopDistance = 5f, Emote = EEmote.Pray }; obj28.Steps = list44; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span40[num]; + ref QuestSequence reference33 = ref span19[3]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj29.Steps = list45; reference33 = obj29; questRoot6.QuestSequence = list40; @@ -344011,16 +283647,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot7.Author = list46; - index = 3; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference34 = ref span47[num]; + num = 3; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span20 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference34 = ref span20[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -344028,34 +283661,27 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956); obj30.Steps = list48; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span47[num]; + ref QuestSequence reference35 = ref span20[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref QuestStep reference36 = ref span49[num2]; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list49)[0]; QuestStep obj32 = new QuestStep(EInteractionType.Combat, null, new Vector3(379.89767f, 68.15723f, -169.26231f), 956) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - index3 = 1; - List list50 = new List(index3); - CollectionsMarshal.SetCount(list50, index3); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = 13415u; + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = 13415u; obj32.KillEnemyDataIds = list50; obj32.CombatItemUse = new CombatItemUse { @@ -344066,8 +283692,7 @@ public static class AssemblyQuestLoader reference36 = obj32; obj31.Steps = list49; reference35 = obj31; - num++; - ref QuestSequence reference37 = ref span47[num]; + ref QuestSequence reference37 = ref span20[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue @@ -344075,9 +283700,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037575u, new Vector3(6.454529f, -31.530432f, -78.14148f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet @@ -344091,30 +283714,24 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot8.Author = list52; - index = 4; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference38 = ref span53[num]; + num = 4; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span21 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference38 = ref span21[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj34.Steps = list54; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span53[num]; + ref QuestSequence reference39 = ref span21[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 @@ -344122,9 +283739,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference40 = ref span55[index2]; + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list55)[0]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(262.07907f, -18.527845f, 183.61182f), 956) { StopDistance = 1f, @@ -344133,32 +283748,26 @@ public static class AssemblyQuestLoader num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span56 = CollectionsMarshal.AsSpan(list56); - index3 = 0; - span56[index3] = 14123u; + CollectionsMarshal.AsSpan(list56)[0] = 14123u; obj36.KillEnemyDataIds = list56; reference40 = obj36; obj35.Steps = list55; reference39 = obj35; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span21[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj37.Steps = list57; reference41 = obj37; - num++; - ref QuestSequence reference42 = ref span53[num]; + ref QuestSequence reference42 = ref span21[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -344166,9 +283775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956); obj38.Steps = list58; reference42 = obj38; questRoot8.QuestSequence = list53; @@ -344178,26 +283785,21 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "alydev"; + CollectionsMarshal.AsSpan(list59)[0] = "alydev"; questRoot9.Author = list59; - index = 3; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference43 = ref span60[num]; + num = 3; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span22 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference43 = ref span22[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -344216,8 +283818,7 @@ public static class AssemblyQuestLoader }; obj39.Steps = list61; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span60[num]; + ref QuestSequence reference44 = ref span22[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -344225,37 +283826,30 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - ref QuestStep reference45 = ref span62[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list62)[0]; QuestStep obj41 = new QuestStep(EInteractionType.Combat, null, new Vector3(-62.2731f, 60.627563f, 786.55927f), 960) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + Span span23 = CollectionsMarshal.AsSpan(list63); + span23[0] = 14047u; + span23[1] = 14048u; obj41.KillEnemyDataIds = list63; reference45 = obj41; obj40.Steps = list62; reference44 = obj40; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span22[2]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list64 = new List(index2); - CollectionsMarshal.SetCount(list64, index2); - Span span64 = CollectionsMarshal.AsSpan(list64); - num2 = 0; - ref QuestStep reference47 = ref span64[num2]; + num2 = 1; + List list64 = new List(num2); + CollectionsMarshal.SetCount(list64, num2); + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list64)[0]; QuestStep obj43 = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 5f, @@ -344276,9 +283870,7 @@ public static class AssemblyQuestLoader num3 = 1; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - Span span65 = CollectionsMarshal.AsSpan(list65); - index3 = 0; - span65[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ001_04337_Q1_000_014"), @@ -344295,16 +283887,13 @@ public static class AssemblyQuestLoader num = 1; List list66 = new List(num); CollectionsMarshal.SetCount(list66, num); - Span span66 = CollectionsMarshal.AsSpan(list66); - index = 0; - span66[index] = "alydev"; + CollectionsMarshal.AsSpan(list66)[0] = "alydev"; questRoot10.Author = list66; - index = 4; - List list67 = new List(index); - CollectionsMarshal.SetCount(list67, index); - Span span67 = CollectionsMarshal.AsSpan(list67); - num = 0; - ref QuestSequence reference48 = ref span67[num]; + num = 4; + List list67 = new List(num); + CollectionsMarshal.SetCount(list67, num); + Span span24 = CollectionsMarshal.AsSpan(list67); + ref QuestSequence reference48 = ref span24[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -344312,9 +283901,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { StopDistance = 5f, Fly = true, @@ -344334,26 +283921,22 @@ public static class AssemblyQuestLoader }; obj44.Steps = list68; reference48 = obj44; - num++; - ref QuestSequence reference49 = ref span67[num]; + ref QuestSequence reference49 = ref span24[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj45.Steps = list69; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span67[num]; + ref QuestSequence reference50 = ref span24[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -344361,21 +283944,17 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - ref QuestStep reference51 = ref span70[index2]; + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list70)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Emote, 1040875u, new Vector3(-717.6166f, 66.99921f, -121.66028f), 960) { StopDistance = 5f, Fly = true, Emote = EEmote.Pet }; - index3 = 1; - List list71 = new List(index3); - CollectionsMarshal.SetCount(list71, index3); - Span span71 = CollectionsMarshal.AsSpan(list71); - num3 = 0; - span71[num3] = new DialogueChoice + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ002_04338_Q1_000_015"), @@ -344385,18 +283964,15 @@ public static class AssemblyQuestLoader reference51 = obj47; obj46.Steps = list70; reference50 = obj46; - num++; - ref QuestSequence reference52 = ref span67[num]; + ref QuestSequence reference52 = ref span24[3]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -344423,16 +283999,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "alydev"; + CollectionsMarshal.AsSpan(list73)[0] = "alydev"; questRoot11.Author = list73; - index = 3; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference53 = ref span74[num]; + num = 3; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span25 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference53 = ref span25[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -344440,9 +284013,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) { StopDistance = 10f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -344461,18 +284032,16 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span74[num]; + ref QuestSequence reference54 = ref span25[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list76 = new List(index2); - CollectionsMarshal.SetCount(list76, index2); - Span span76 = CollectionsMarshal.AsSpan(list76); - num2 = 0; - ref QuestStep reference55 = ref span76[num2]; + num2 = 4; + List list76 = new List(num2); + CollectionsMarshal.SetCount(list76, num2); + Span span26 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference55 = ref span26[0]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2012307u, new Vector3(-678.00415f, 72.06836f, 119.035645f), 960) { Fly = true @@ -344480,44 +284049,30 @@ public static class AssemblyQuestLoader num3 = 6; List list77 = new List(num3); CollectionsMarshal.SetCount(list77, num3); - 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); + 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); obj51.CompletionQuestVariablesFlags = list77; reference55 = obj51; - num2++; - ref QuestStep reference56 = ref span76[num2]; + ref QuestStep reference56 = ref span26[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012308u, new Vector3(-635.49255f, 77.408936f, 46.61621f), 960); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list78; reference56 = questStep5; - num2++; - ref QuestStep reference57 = ref span76[num2]; + ref QuestStep reference57 = ref span26[2]; QuestStep obj52 = new QuestStep(EInteractionType.Interact, 2012305u, new Vector3(-398.3368f, 88.85327f, 314.44263f), 960) { Fly = true @@ -344525,46 +284080,32 @@ public static class AssemblyQuestLoader num3 = 6; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - 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); + 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); obj52.CompletionQuestVariablesFlags = list79; reference57 = obj52; - num2++; - ref QuestStep reference58 = ref span76[num2]; + ref QuestStep reference58 = ref span26[3]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012306u, new Vector3(-641.8402f, 78.93494f, 445.21252f), 960); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list80; reference58 = questStep6; obj50.Steps = list76; reference54 = obj50; - num++; - ref QuestSequence reference59 = ref span74[num]; + ref QuestSequence reference59 = ref span25[2]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -344572,9 +284113,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040883u, new Vector3(-653.3761f, 73.711235f, 244.31213f), 960) { StopDistance = 10f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra, @@ -344600,26 +284139,21 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "alydev"; + CollectionsMarshal.AsSpan(list82)[0] = "alydev"; questRoot12.Author = list82; - index = 3; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference60 = ref span83[num]; + num = 3; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span31 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference60 = ref span31[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -344639,8 +284173,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list84; reference60 = obj54; - num++; - ref QuestSequence reference61 = ref span83[num]; + ref QuestSequence reference61 = ref span31[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -344648,9 +284181,8 @@ public static class AssemblyQuestLoader num2 = 3; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - ref QuestStep reference62 = ref span85[index2]; + Span span32 = CollectionsMarshal.AsSpan(list85); + ref QuestStep reference62 = ref span32[0]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2012309u, new Vector3(-346.02887f, 86.44226f, 283.71094f), 960) { Fly = true @@ -344658,44 +284190,30 @@ public static class AssemblyQuestLoader num3 = 6; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - 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); + 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); obj56.CompletionQuestVariablesFlags = list86; reference62 = obj56; - index2++; - ref QuestStep reference63 = ref span85[index2]; + ref QuestStep reference63 = ref span32[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012310u, new Vector3(-342.12262f, 86.10657f, 278.09558f), 960); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list87; reference63 = questStep7; - index2++; - ref QuestStep reference64 = ref span85[index2]; + ref QuestStep reference64 = ref span32[2]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 2012312u, new Vector3(-292.77484f, 91.38623f, 317.09766f), 960) { Fly = true @@ -344703,35 +284221,26 @@ public static class AssemblyQuestLoader num3 = 6; List list88 = new List(num3); CollectionsMarshal.SetCount(list88, num3); - 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); + 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); obj57.CompletionQuestVariablesFlags = list88; reference64 = obj57; obj55.Steps = list85; reference61 = obj55; - num++; - ref QuestSequence reference65 = ref span83[num]; + ref QuestSequence reference65 = ref span31[2]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list89 = new List(index2); - CollectionsMarshal.SetCount(list89, index2); - Span span89 = CollectionsMarshal.AsSpan(list89); - num2 = 0; - ref QuestStep reference66 = ref span89[num2]; + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj59 = new QuestStep(EInteractionType.CompleteQuest, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 5f, @@ -344750,12 +284259,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list90 = new List(index3); - CollectionsMarshal.SetCount(list90, index3); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = new DialogueChoice + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ004_04340_Q1_000_012"), @@ -344772,16 +284279,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "alydev"; + CollectionsMarshal.AsSpan(list91)[0] = "alydev"; questRoot13.Author = list91; - index = 3; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference67 = ref span92[num]; + num = 3; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span36 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference67 = ref span36[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -344789,9 +284293,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - ref QuestStep reference68 = ref span93[index2]; + ref QuestStep reference68 = ref CollectionsMarshal.AsSpan(list93)[0]; QuestStep obj61 = new QuestStep(EInteractionType.AcceptQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) { StopDistance = 5f, @@ -344813,9 +284315,7 @@ public static class AssemblyQuestLoader num3 = 1; List list94 = new List(num3); CollectionsMarshal.SetCount(list94, num3); - Span span94 = CollectionsMarshal.AsSpan(list94); - index3 = 0; - span94[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ005_04341_Q1_000_001"), @@ -344825,35 +284325,29 @@ public static class AssemblyQuestLoader reference68 = obj61; obj60.Steps = list93; reference67 = obj60; - num++; - ref QuestSequence reference69 = ref span92[num]; + ref QuestSequence reference69 = ref span36[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list95 = new List(index2); - CollectionsMarshal.SetCount(list95, index2); - Span span95 = CollectionsMarshal.AsSpan(list95); - num2 = 0; - ref QuestStep reference70 = ref span95[num2]; + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + ref QuestStep reference70 = ref CollectionsMarshal.AsSpan(list95)[0]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2012311u, new Vector3(-746.9749f, 63.1875f, 7.248047f), 960) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list96 = new List(index3); - CollectionsMarshal.SetCount(list96, index3); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = 14046u; + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = 14046u; obj63.KillEnemyDataIds = list96; reference70 = obj63; obj62.Steps = list95; reference69 = obj62; - num++; - ref QuestSequence reference71 = ref span92[num]; + ref QuestSequence reference71 = ref span36[2]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -344861,9 +284355,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038009u, new Vector3(-597.2534f, 76.989265f, 268.0857f), 960) { StopDistance = 5f, Fly = true, @@ -344890,30 +284382,24 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "liza"; + CollectionsMarshal.AsSpan(list98)[0] = "liza"; questRoot14.Author = list98; - index = 3; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference72 = ref span99[num]; + num = 3; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span37 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference72 = ref span37[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj65.Steps = list100; reference72 = obj65; - num++; - ref QuestSequence reference73 = ref span99[num]; + ref QuestSequence reference73 = ref span37[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -344921,9 +284407,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - ref QuestStep reference74 = ref span101[index2]; + ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list101)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, null, new Vector3(-41.26438f, 274.85336f, -523.8633f), 960) { EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -344931,9 +284415,8 @@ public static class AssemblyQuestLoader num3 = 2; List list102 = new List(num3); CollectionsMarshal.SetCount(list102, num3); - Span span102 = CollectionsMarshal.AsSpan(list102); - index3 = 0; - ref ComplexCombatData reference75 = ref span102[index3]; + Span span38 = CollectionsMarshal.AsSpan(list102); + ref ComplexCombatData reference75 = ref span38[0]; ComplexCombatData obj68 = new ComplexCombatData { DataId = 13315u, @@ -344942,62 +284425,46 @@ public static class AssemblyQuestLoader int num4 = 6; List list103 = new List(num4); CollectionsMarshal.SetCount(list103, num4); - 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; + 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; obj68.CompletionQuestVariablesFlags = list103; reference75 = obj68; - index3++; - ref ComplexCombatData reference76 = ref span102[index3]; + ref ComplexCombatData reference76 = ref span38[1]; ComplexCombatData obj69 = new ComplexCombatData { DataId = 14097u, MinimumKillCount = 1u }; - 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; + 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; obj69.CompletionQuestVariablesFlags = list104; reference76 = obj69; obj67.ComplexCombatData = list102; reference74 = obj67; obj66.Steps = list101; reference73 = obj66; - num++; - ref QuestSequence reference77 = ref span99[num]; + ref QuestSequence reference77 = ref span37[2]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj70.Steps = list105; reference77 = obj70; questRoot14.QuestSequence = list99; @@ -345007,16 +284474,13 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "liza"; + CollectionsMarshal.AsSpan(list106)[0] = "liza"; questRoot15.Author = list106; - index = 3; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference78 = ref span107[num]; + num = 3; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span41 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference78 = ref span41[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -345024,96 +284488,70 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); obj71.Steps = list108; reference78 = obj71; - num++; - ref QuestSequence reference79 = ref span107[num]; + ref QuestSequence reference79 = ref span41[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list109 = new List(index2); - CollectionsMarshal.SetCount(list109, index2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num2 = 0; - ref QuestStep reference80 = ref span109[num2]; + num2 = 4; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span42 = CollectionsMarshal.AsSpan(list109); + ref QuestStep reference80 = ref span42[0]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list110; skipConditions.StepIf = skipStepConditions; obj73.SkipConditions = skipConditions; reference80 = obj73; - num2++; - ref QuestStep reference81 = ref span109[num2]; + ref QuestStep reference81 = ref span42[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list111; reference81 = questStep8; - num2++; - ref QuestStep reference82 = ref span109[num2]; + ref QuestStep reference82 = ref span42[2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1040881u, new Vector3(-201.86163f, 288.6714f, -466.331f), 960); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list112; num3 = 1; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - Span span113 = CollectionsMarshal.AsSpan(list113); - index3 = 0; - span113[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list113)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ010_04346_Q1_000_000"), @@ -345121,31 +284559,23 @@ public static class AssemblyQuestLoader }; questStep9.DialogueChoices = list113; reference82 = questStep9; - num2++; - ref QuestStep reference83 = ref span109[num2]; + ref QuestStep reference83 = ref span42[3]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1040879u, new Vector3(-184.52734f, 267.47086f, -292.65283f), 960); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list114; reference83 = questStep10; obj72.Steps = list109; reference79 = obj72; - num++; - ref QuestSequence reference84 = ref span107[num]; + ref QuestSequence reference84 = ref span41[2]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -345153,9 +284583,7 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960); obj74.Steps = list115; reference84 = obj74; questRoot15.QuestSequence = list107; @@ -345165,26 +284593,21 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "alydev"; + CollectionsMarshal.AsSpan(list116)[0] = "alydev"; questRoot16.Author = list116; - index = 4; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference85 = ref span117[num]; + num = 4; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span47 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference85 = ref span47[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -345204,8 +284627,7 @@ public static class AssemblyQuestLoader }; obj75.Steps = list118; reference85 = obj75; - num++; - ref QuestSequence reference86 = ref span117[num]; + ref QuestSequence reference86 = ref span47[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -345213,9 +284635,8 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - ref QuestStep reference87 = ref span119[index2]; + Span span48 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference87 = ref span48[0]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1038012u, new Vector3(-655.9396f, 70.96863f, 302.90674f), 960) { Fly = true @@ -345223,26 +284644,18 @@ public static class AssemblyQuestLoader 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)4, 0, EQuestWorkMode.Bitwise); + 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); obj77.CompletionQuestVariablesFlags = list120; - index3 = 1; - List list121 = new List(index3); - CollectionsMarshal.SetCount(list121, index3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = new DialogueChoice + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ012_04348_Q2_000_200"), @@ -345250,8 +284663,7 @@ public static class AssemblyQuestLoader }; obj77.DialogueChoices = list121; reference87 = obj77; - index2++; - ref QuestStep reference88 = ref span119[index2]; + ref QuestStep reference88 = ref span48[1]; QuestStep obj78 = new QuestStep(EInteractionType.Interact, 1038013u, new Vector3(-551.8425f, 72.58038f, 232.6543f), 960) { Fly = true @@ -345259,26 +284671,18 @@ public static class AssemblyQuestLoader num3 = 6; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - 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); + 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); obj78.CompletionQuestVariablesFlags = list122; - index3 = 1; - List list123 = new List(index3); - CollectionsMarshal.SetCount(list123, index3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = new DialogueChoice + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZJ012_04348_Q1_000_100"), @@ -345288,25 +284692,21 @@ public static class AssemblyQuestLoader reference88 = obj78; obj76.Steps = list119; reference86 = obj76; - num++; - ref QuestSequence reference89 = ref span117[num]; + ref QuestSequence reference89 = ref span47[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj79.Steps = list124; reference89 = obj79; - num++; - ref QuestSequence reference90 = ref span117[num]; + ref QuestSequence reference90 = ref span47[3]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -345314,9 +284714,7 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038008u, new Vector3(-574.30383f, 77.29004f, 324.33044f), 960) { StopDistance = 5f, Fly = true, @@ -345347,16 +284745,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "alydev"; + CollectionsMarshal.AsSpan(list)[0] = "alydev"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -345364,9 +284759,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) { StopDistance = 5f, Fly = true, @@ -345386,26 +284779,22 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -345413,35 +284802,29 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1042070u, new Vector3(-610.19305f, 77.9267f, 229.17517f), 960) { StopDistance = 5f, Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f, Fly = true }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -345449,27 +284832,22 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1042071u, new Vector3(-754.696f, 67.5721f, -32.51703f), 960) { StopDistance = 5f, Fly = true }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -345496,16 +284874,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; 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]; + num = 3; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span2 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span2[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -345513,16 +284888,12 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - ref QuestStep reference8 = ref span11[index2]; + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; 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); - Span span12 = CollectionsMarshal.AsSpan(list12); - int index3 = 0; - span12[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZK001_04354_Q1_000_100"), @@ -345532,37 +284903,32 @@ public static class AssemblyQuestLoader reference8 = questStep; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span2[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - 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) + 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) { JumpDestination = new JumpDestination { Position = new Vector3(602.4677f, 438.6276f, 297.1612f) } }; - num2++; - ref QuestStep reference10 = ref span13[num2]; + ref QuestStep reference10 = ref span3[1]; QuestStep obj9 = new QuestStep(EInteractionType.Combat, null, new Vector3(656.94653f, 437.98502f, 302.6322f), 960) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list14 = new List(index3); - CollectionsMarshal.SetCount(list14, index3); - Span span14 = CollectionsMarshal.AsSpan(list14); - num3 = 0; - span14[num3] = 14044u; + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = 14044u; obj9.KillEnemyDataIds = list14; obj9.CombatItemUse = new CombatItemUse { @@ -345572,8 +284938,7 @@ public static class AssemblyQuestLoader reference10 = obj9; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference11 = ref span10[num]; + ref QuestSequence reference11 = ref span2[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -345581,9 +284946,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038043u, new Vector3(470.4203f, 437.00183f, 315.81592f), 960); obj10.Steps = list15; reference11 = obj10; questRoot2.QuestSequence = list10; @@ -345593,30 +284956,24 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 4; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 4; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span4 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span4[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj11.Steps = list18; reference12 = obj11; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span4[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -345624,67 +284981,49 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 2012560u, new Vector3(510.3379f, 436.9724f, 307.20984f), 960); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 2012560u, new Vector3(510.3379f, 436.9724f, 307.20984f), 960); obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span4[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 2; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span5 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span5[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list21; reference15 = questStep2; - num2++; - ref QuestStep reference16 = ref span20[num2]; + ref QuestStep reference16 = ref span5[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012753u, new Vector3(688.74634f, 440.45154f, 381.21606f), 960); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; obj13.Steps = list20; reference14 = obj13; - num++; - ref QuestSequence reference17 = ref span17[num]; + ref QuestSequence reference17 = ref span4[3]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -345692,16 +285031,13 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - 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) + 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) { AetherCurrentId = 2818391u }; - index2++; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) + span8[2] = new QuestStep(EInteractionType.CompleteQuest, 1041656u, new Vector3(510.3075f, 436.9997f, 307.17932f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; @@ -345714,30 +285050,24 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot4.Author = list24; - index = 3; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference18 = ref span25[num]; + num = 3; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span9 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference18 = ref span9[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj15.Steps = list26; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span9[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -345745,9 +285075,7 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1038570u, new Vector3(-374.6853f, 7.999938f, 45.822754f), 129) + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1038570u, new Vector3(-374.6853f, 7.999938f, 45.822754f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -345758,18 +285086,15 @@ public static class AssemblyQuestLoader }; obj16.Steps = list27; reference19 = obj16; - num++; - ref QuestSequence reference20 = ref span25[num]; + ref QuestSequence reference20 = ref span9[2]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj17.Steps = list28; reference20 = obj17; questRoot4.QuestSequence = list25; @@ -345779,16 +285104,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "liza"; + CollectionsMarshal.AsSpan(list29)[0] = "liza"; questRoot5.Author = list29; - index = 10; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 10; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span10 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span10[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -345796,30 +285118,24 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj18.Steps = list31; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span30[num]; + ref QuestSequence reference22 = ref span10[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj19.Steps = list32; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span30[num]; + ref QuestSequence reference23 = ref span10[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -345827,35 +285143,29 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(49.69861f, -16.246998f, 145.2201f), 962); obj20.Steps = list33; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span10[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShard = EAetheryteLocation.OldSharlayanScholarsHarbor }; - num2++; - span34[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-56.737106f, -15.127001f, 130.76611f), 962) + span11[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-56.737106f, -15.127001f, 130.76611f), 962) { StopDistance = 0.25f }; obj21.Steps = list34; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span30[num]; + ref QuestSequence reference25 = ref span10[4]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -345863,40 +285173,34 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - 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) + 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) { StopDistance = 0.25f }; obj22.Steps = list35; reference25 = obj22; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span10[5]; QuestSequence obj23 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Aetheryte = EAetheryteLocation.OldSharlayan }; - num2++; - span36[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(66.10567f, 5.0999994f, -63.37148f), 962) + span13[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(66.10567f, 5.0999994f, -63.37148f), 962) { StopDistance = 0.25f }; obj23.Steps = list36; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span30[num]; + ref QuestSequence reference27 = ref span10[6]; QuestSequence obj24 = new QuestSequence { Sequence = 6 @@ -345904,42 +285208,35 @@ public static class AssemblyQuestLoader num2 = 3; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - 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) + 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) { StopDistance = 0.25f }; obj24.Steps = list37; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span30[num]; + ref QuestSequence reference28 = ref span10[7]; QuestSequence obj25 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AethernetShard = EAetheryteLocation.OldSharlayanRostra }; - num2++; - span38[num2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(149.26689f, 18.800978f, -142.65858f), 962) + span15[1] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(149.26689f, 18.800978f, -142.65858f), 962) { StopDistance = 0.25f }; obj25.Steps = list38; reference28 = obj25; - num++; - ref QuestSequence reference29 = ref span30[num]; + ref QuestSequence reference29 = ref span10[8]; QuestSequence obj26 = new QuestSequence { Sequence = 8 @@ -345947,19 +285244,16 @@ public static class AssemblyQuestLoader num2 = 3; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + Span span16 = CollectionsMarshal.AsSpan(list39); + span16[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanLeveilleurEstate }; - index2++; - span39[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span16[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanJourneysEnd }; - index2++; - span39[index2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-82.642426f, 1.0594833f, 30.052902f), 962) + span16[2] = new QuestStep(EInteractionType.Interact, 1038578u, new Vector3(-82.642426f, 1.0594833f, 30.052902f), 962) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -345970,23 +285264,20 @@ public static class AssemblyQuestLoader }; obj26.Steps = list39; reference29 = obj26; - num++; - ref QuestSequence reference30 = ref span30[num]; + ref QuestSequence reference30 = ref span10[9]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)987 }; - num2++; - span40[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038586u, new Vector3(-0.015319824f, 1.9073486E-06f, -0.77819824f), 987); + span17[1] = new QuestStep(EInteractionType.CompleteQuest, 1038586u, new Vector3(-0.015319824f, 1.9073486E-06f, -0.77819824f), 987); obj27.Steps = list40; reference30 = obj27; questRoot5.QuestSequence = list30; @@ -345996,16 +285287,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot6.Author = list41; - index = 8; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference31 = ref span42[num]; + num = 8; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span18 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference31 = ref span18[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -346013,45 +285301,37 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038670u, new Vector3(-2.609314f, 1.9073486E-06f, 0.16778564f), 987) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038670u, new Vector3(-2.609314f, 1.9073486E-06f, 0.16778564f), 987) { StopDistance = 5f }; obj28.Steps = list43; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span18[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)962 }; - num2++; - span44[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span19[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanBaldesionAnnex }; - num2++; - span44[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) + span19[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 962) { AethernetShard = EAetheryteLocation.OldSharlayanStudium }; - num2++; - span44[num2] = new QuestStep(EInteractionType.Interact, 1038675u, new Vector3(-301.38098f, 18.47832f, 10.849121f), 962); + span19[3] = new QuestStep(EInteractionType.Interact, 1038675u, new Vector3(-301.38098f, 18.47832f, 10.849121f), 962); obj29.Steps = list44; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span42[num]; + ref QuestSequence reference33 = ref span18[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -346059,97 +285339,70 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - ref QuestStep reference34 = ref span45[index2]; + Span span20 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference34 = ref span20[0]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list46; - index3 = 1; - List list47 = new List(index3); - CollectionsMarshal.SetCount(list47, index3); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - span47[num3] = new DialogueChoice + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q5_000_071") }; questStep4.DialogueChoices = list47; reference34 = questStep4; - index2++; - ref QuestStep reference35 = ref span45[index2]; + ref QuestStep reference35 = ref span20[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list48; - index3 = 1; - List list49 = new List(index3); - CollectionsMarshal.SetCount(list49, index3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = new DialogueChoice + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q2_000_049") }; questStep5.DialogueChoices = list49; reference35 = questStep5; - index2++; - ref QuestStep reference36 = ref span45[index2]; + ref QuestStep reference36 = ref span20[2]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list50; - index3 = 1; - List list51 = new List(index3); - CollectionsMarshal.SetCount(list51, index3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - span51[num3] = new DialogueChoice + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + CollectionsMarshal.AsSpan(list51)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA103_04359_Q3_000_055") @@ -346158,22 +285411,18 @@ public static class AssemblyQuestLoader reference36 = questStep6; obj30.Steps = list45; reference33 = obj30; - num++; - ref QuestSequence reference37 = ref span42[num]; + ref QuestSequence reference37 = ref span18[3]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj31.Steps = list52; reference37 = obj31; - num++; - ref QuestSequence reference38 = ref span42[num]; + ref QuestSequence reference38 = ref span18[4]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -346181,27 +285430,21 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 2011830u, new Vector3(-276.0205f, 18.997375f, 18.936401f), 962); obj32.Steps = list53; reference38 = obj32; - num++; - ref QuestSequence reference39 = ref span42[num]; + ref QuestSequence reference39 = ref span18[5]; QuestSequence obj33 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj33.Steps = list54; reference39 = obj33; - num++; - ref QuestSequence reference40 = ref span42[num]; + ref QuestSequence reference40 = ref span18[6]; QuestSequence obj34 = new QuestSequence { Sequence = 6 @@ -346209,23 +285452,18 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962); obj34.Steps = list55; reference40 = obj34; - num++; - ref QuestSequence reference41 = ref span42[num]; + ref QuestSequence reference41 = ref span18[7]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -346238,16 +285476,13 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot7.Author = list57; - index = 9; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference42 = ref span58[num]; + num = 9; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span24 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference42 = ref span24[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 @@ -346255,26 +285490,21 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038681u, new Vector3(-281.11694f, 19.003874f, 18.966919f), 962) + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038681u, new Vector3(-281.11694f, 19.003874f, 18.966919f), 962) { StopDistance = 5f }; obj36.Steps = list59; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span58[num]; + ref QuestSequence reference43 = ref span24[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -346284,8 +285514,7 @@ public static class AssemblyQuestLoader }; obj37.Steps = list60; reference43 = obj37; - num++; - ref QuestSequence reference44 = ref span58[num]; + ref QuestSequence reference44 = ref span24[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -346293,29 +285522,23 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - 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); + 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); obj38.Steps = list61; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span58[num]; + ref QuestSequence reference45 = ref span24[3]; QuestSequence obj39 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj39.Steps = list62; reference45 = obj39; - num++; - ref QuestSequence reference46 = ref span58[num]; + ref QuestSequence reference46 = ref span24[4]; QuestSequence obj40 = new QuestSequence { Sequence = 4 @@ -346323,16 +285546,12 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - ref QuestStep reference47 = ref span63[index2]; + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list63)[0]; 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); - Span span64 = CollectionsMarshal.AsSpan(list64); - index3 = 0; - span64[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q3_000_130"), @@ -346342,25 +285561,20 @@ public static class AssemblyQuestLoader reference47 = questStep7; obj40.Steps = list63; reference46 = obj40; - num++; - ref QuestSequence reference48 = ref span58[num]; + ref QuestSequence reference48 = ref span24[5]; QuestSequence obj41 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list65 = new List(index2); - CollectionsMarshal.SetCount(list65, index2); - Span span65 = CollectionsMarshal.AsSpan(list65); - num2 = 0; - ref QuestStep reference49 = ref span65[num2]; + num2 = 1; + List list65 = new List(num2); + CollectionsMarshal.SetCount(list65, num2); + ref QuestStep reference49 = ref CollectionsMarshal.AsSpan(list65)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2011832u, new Vector3(-74.57086f, -12.985474f, 141.1001f), 962); - index3 = 1; - List list66 = new List(index3); - CollectionsMarshal.SetCount(list66, index3); - Span span66 = CollectionsMarshal.AsSpan(list66); - num3 = 0; - span66[num3] = new DialogueChoice + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q5_000_150"), @@ -346370,8 +285584,7 @@ public static class AssemblyQuestLoader reference49 = questStep8; obj41.Steps = list65; reference48 = obj41; - num++; - ref QuestSequence reference50 = ref span58[num]; + ref QuestSequence reference50 = ref span24[6]; QuestSequence obj42 = new QuestSequence { Sequence = 6 @@ -346379,16 +285592,12 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - ref QuestStep reference51 = ref span67[index2]; + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list67)[0]; 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); - Span span68 = CollectionsMarshal.AsSpan(list68); - index3 = 0; - span68[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list68)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA104_04360_Q6_000_170"), @@ -346398,25 +285607,21 @@ public static class AssemblyQuestLoader reference51 = questStep9; obj42.Steps = list67; reference50 = obj42; - num++; - ref QuestSequence reference52 = ref span58[num]; + ref QuestSequence reference52 = ref span24[7]; QuestSequence obj43 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 6.9f }; obj43.Steps = list69; reference52 = obj43; - num++; - ref QuestSequence reference53 = ref span58[num]; + ref QuestSequence reference53 = ref span24[8]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue @@ -346424,11 +285629,9 @@ public static class AssemblyQuestLoader num2 = 2; 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(19.79008f, -16.247002f, 108.36692f), 962); - index2++; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038684u, new Vector3(29.007324f, -14.446999f, 76.46289f), 962); + 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); obj44.Steps = list70; reference53 = obj44; questRoot7.QuestSequence = list58; @@ -346438,30 +285641,24 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot8.Author = list71; - index = 7; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference54 = ref span72[num]; + num = 7; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span27 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference54 = ref span27[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj45.Steps = list73; reference54 = obj45; - num++; - ref QuestSequence reference55 = ref span72[num]; + ref QuestSequence reference55 = ref span27[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -346469,9 +285666,7 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1038679u, new Vector3(-275.5932f, 19.003881f, 13.321045f), 962) { AethernetShortcut = new AethernetShortcut { @@ -346481,44 +285676,37 @@ public static class AssemblyQuestLoader }; obj46.Steps = list74; reference55 = obj46; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span27[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 }; - 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) + 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) { NpcWaitDistance = 1f, Sprint = false }; - num2++; - span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-138.0897f, 21.879826f, -144.57791f), 962) + span28[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-138.0897f, 21.879826f, -144.57791f), 962) { NpcWaitDistance = 1f, Sprint = false }; - num2++; - span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-89.6808f, 24.953402f, -138.54071f), 962) + span28[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-89.6808f, 24.953402f, -138.54071f), 962) { NpcWaitDistance = 1f, Sprint = false }; - num2++; - span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-16.652283f, 41.37599f, -145.70506f), 962) + span28[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-16.652283f, 41.37599f, -145.70506f), 962) { NpcWaitDistance = 1f, Sprint = false }; - num2++; - span75[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-77.90129f, 41.37599f, -209.40958f), 962) + span28[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038753u, new Vector3(-77.90129f, 41.37599f, -209.40958f), 962) { NpcWaitDistance = 1f, Sprint = false, @@ -346526,8 +285714,7 @@ public static class AssemblyQuestLoader }; obj47.Steps = list75; reference56 = obj47; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span27[3]; QuestSequence obj48 = new QuestSequence { Sequence = 3 @@ -346535,36 +285722,28 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 1038688u, new Vector3(-69.5354f, 18.043928f, -321.40082f), 962); + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1038688u, new Vector3(-69.5354f, 18.043928f, -321.40082f), 962); obj48.Steps = list76; reference57 = obj48; - num++; - span72[num] = new QuestSequence + span27[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span27[5]; QuestSequence obj49 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj49.Steps = list77; reference58 = obj49; - num++; - ref QuestSequence reference59 = ref span72[num]; + ref QuestSequence reference59 = ref span27[6]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -346572,9 +285751,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038695u, new Vector3(-52.384216f, 170.403f, -734.7677f), 956); obj50.Steps = list78; reference59 = obj50; questRoot8.QuestSequence = list72; @@ -346584,30 +285761,24 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot9.Author = list79; - index = 9; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference60 = ref span80[num]; + num = 9; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span30 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference60 = ref span30[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj51.Steps = list81; reference60 = obj51; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span30[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -346615,40 +285786,32 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1038692u, new Vector3(-1.5411987f, 170.403f, -748.0125f), 956); obj52.Steps = list82; reference61 = obj52; - num++; - ref QuestSequence reference62 = ref span80[num]; + ref QuestSequence reference62 = ref span30[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list83 = new List(index2); - CollectionsMarshal.SetCount(list83, index2); - Span span83 = CollectionsMarshal.AsSpan(list83); - num2 = 0; - ref QuestStep reference63 = ref span83[num2]; + num2 = 1; + List list83 = new List(num2); + CollectionsMarshal.SetCount(list83, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list83)[0]; QuestStep obj54 = new QuestStep(EInteractionType.Combat, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list84 = new List(index3); - CollectionsMarshal.SetCount(list84, index3); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = 14024u; + num3 = 1; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + CollectionsMarshal.AsSpan(list84)[0] = 14024u; obj54.KillEnemyDataIds = list84; reference63 = obj54; obj53.Steps = list83; reference62 = obj53; - num++; - ref QuestSequence reference64 = ref span80[num]; + ref QuestSequence reference64 = ref span30[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -346656,23 +285819,18 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1038699u, new Vector3(128.00781f, 186.03699f, -740.9324f), 956); obj55.Steps = list85; reference64 = obj55; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span30[4]; QuestSequence obj56 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list86 = new List(index2); - CollectionsMarshal.SetCount(list86, index2); - Span span86 = CollectionsMarshal.AsSpan(list86); - num2 = 0; - ref QuestStep reference66 = ref span86[num2]; + num2 = 1; + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + ref QuestStep reference66 = ref CollectionsMarshal.AsSpan(list86)[0]; QuestStep obj57 = new QuestStep(EInteractionType.Combat, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) { StopDistance = 1f, @@ -346681,17 +285839,14 @@ public static class AssemblyQuestLoader num3 = 2; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span87 = CollectionsMarshal.AsSpan(list87); - index3 = 0; - span87[index3] = 14023u; - index3++; - span87[index3] = 14022u; + Span span31 = CollectionsMarshal.AsSpan(list87); + span31[0] = 14023u; + span31[1] = 14022u; obj57.KillEnemyDataIds = list87; reference66 = obj57; obj56.Steps = list86; reference65 = obj56; - num++; - ref QuestSequence reference67 = ref span80[num]; + ref QuestSequence reference67 = ref span30[5]; QuestSequence obj58 = new QuestSequence { Sequence = 5 @@ -346699,35 +285854,28 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.UseItem, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.UseItem, 1038700u, new Vector3(259.0829f, 166.40231f, -595.69696f), 956) { ItemId = 2003129u }; obj58.Steps = list88; reference67 = obj58; - num++; - ref QuestSequence reference68 = ref span80[num]; + ref QuestSequence reference68 = ref span30[6]; QuestSequence obj59 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetherCurrentId = 2818314u }; - 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) + 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) { DelaySecondsAtStart = 2f, Mount = false, @@ -346735,8 +285883,7 @@ public static class AssemblyQuestLoader }; obj59.Steps = list89; reference68 = obj59; - num++; - ref QuestSequence reference69 = ref span80[num]; + ref QuestSequence reference69 = ref span30[7]; QuestSequence obj60 = new QuestSequence { Sequence = 7 @@ -346744,25 +285891,20 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1038757u, new Vector3(-1.9074707f, 170.403f, -751.5221f), 956); + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1038757u, new Vector3(-1.9074707f, 170.403f, -751.5221f), 956); obj60.Steps = list90; reference69 = obj60; - num++; - ref QuestSequence reference70 = ref span80[num]; + ref QuestSequence reference70 = ref span30[8]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj61.Steps = list91; reference70 = obj61; questRoot9.QuestSequence = list80; @@ -346772,16 +285914,13 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "liza"; + CollectionsMarshal.AsSpan(list92)[0] = "liza"; questRoot10.Author = list92; - index = 7; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference71 = ref span93[num]; + num = 7; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span34 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference71 = ref span34[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -346789,32 +285928,26 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038702u, new Vector3(394.27783f, 165.94997f, -521.294f), 956); obj62.Steps = list94; reference71 = obj62; - num++; - ref QuestSequence reference72 = ref span93[num]; + ref QuestSequence reference72 = ref span34[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.LabyrinthosArcheion }; - num2++; - span95[num2] = new QuestStep(EInteractionType.Interact, 1037475u, new Vector3(379.14087f, 170.1f, -410.97125f), 956); + span35[1] = new QuestStep(EInteractionType.Interact, 1037475u, new Vector3(379.14087f, 170.1f, -410.97125f), 956); obj63.Steps = list95; reference72 = obj63; - num++; - ref QuestSequence reference73 = ref span93[num]; + ref QuestSequence reference73 = ref span34[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -346822,67 +285955,49 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.Interact, 1038712u, new Vector3(415.8236f, 166.41167f, -451.10248f), 956); + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.Interact, 1038712u, new Vector3(415.8236f, 166.41167f, -451.10248f), 956); obj64.Steps = list96; reference73 = obj64; - num++; - ref QuestSequence reference74 = ref span93[num]; + ref QuestSequence reference74 = ref span34[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list97 = new List(index2); - CollectionsMarshal.SetCount(list97, index2); - Span span97 = CollectionsMarshal.AsSpan(list97); - num2 = 0; - ref QuestStep reference75 = ref span97[num2]; + num2 = 2; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span36 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference75 = ref span36[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1038714u, new Vector3(383.01672f, 166.19273f, -464.7746f), 956); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list98; reference75 = questStep10; - num2++; - ref QuestStep reference76 = ref span97[num2]; + ref QuestStep reference76 = ref span36[1]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list99; reference76 = questStep11; obj65.Steps = list97; reference74 = obj65; - num++; - ref QuestSequence reference77 = ref span93[num]; + ref QuestSequence reference77 = ref span34[4]; QuestSequence obj66 = new QuestSequence { Sequence = 4 @@ -346890,30 +286005,24 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 1038717u, new Vector3(579.91907f, 168.84044f, -517.3572f), 956); + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1038717u, new Vector3(579.91907f, 168.84044f, -517.3572f), 956); obj66.Steps = list100; reference77 = obj66; - num++; - ref QuestSequence reference78 = ref span93[num]; + ref QuestSequence reference78 = ref span34[5]; QuestSequence obj67 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Comment = "Shoot Large Green Bird" }; obj67.Steps = list101; reference78 = obj67; - num++; - ref QuestSequence reference79 = ref span93[num]; + ref QuestSequence reference79 = ref span34[6]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -346921,9 +286030,7 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038718u, new Vector3(644.9835f, 185.14716f, -130.23578f), 956); + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038718u, new Vector3(644.9835f, 185.14716f, -130.23578f), 956); obj68.Steps = list102; reference79 = obj68; questRoot10.QuestSequence = list93; @@ -346933,30 +286040,24 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "liza"; + CollectionsMarshal.AsSpan(list103)[0] = "liza"; questRoot11.Author = list103; - index = 8; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference80 = ref span104[num]; + num = 8; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span39 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference80 = ref span39[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj69.Steps = list105; reference80 = obj69; - num++; - ref QuestSequence reference81 = ref span104[num]; + ref QuestSequence reference81 = ref span39[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -346964,42 +286065,34 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - span106[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011981u, new Vector3(748.53125f, 106.7063f, 66.75818f), 956) + Span span40 = CollectionsMarshal.AsSpan(list106); + span40[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011981u, new Vector3(748.53125f, 106.7063f, 66.75818f), 956) { AetherCurrentId = 2818315u }; - index2++; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(760.1999f, 145.74788f, -52.025288f), 956); - index2++; - ref QuestStep reference82 = ref span106[index2]; + span40[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(760.1999f, 145.74788f, -52.025288f), 956); + ref QuestStep reference82 = ref span40[2]; QuestStep obj71 = new QuestStep(EInteractionType.Combat, 2011840u, new Vector3(828.33594f, 147.8446f, -72.22095f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list107 = new List(index3); - CollectionsMarshal.SetCount(list107, index3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = 14020u; + num3 = 1; + List list107 = new List(num3); + CollectionsMarshal.SetCount(list107, num3); + CollectionsMarshal.AsSpan(list107)[0] = 14020u; obj71.KillEnemyDataIds = list107; reference82 = obj71; obj70.Steps = list106; reference81 = obj70; - num++; - ref QuestSequence reference83 = ref span104[num]; + ref QuestSequence reference83 = ref span39[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list108 = new List(index2); - CollectionsMarshal.SetCount(list108, index2); - Span span108 = CollectionsMarshal.AsSpan(list108); - num2 = 0; - ref QuestStep reference84 = ref span108[num2]; + num2 = 1; + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list108)[0]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2011841u, new Vector3(813.6262f, 158.64807f, 126.57361f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -347007,15 +286100,12 @@ public static class AssemblyQuestLoader num3 = 1; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span109 = CollectionsMarshal.AsSpan(list109); - index3 = 0; - span109[index3] = 14021u; + CollectionsMarshal.AsSpan(list109)[0] = 14021u; obj73.KillEnemyDataIds = list109; reference84 = obj73; obj72.Steps = list108; reference83 = obj72; - num++; - ref QuestSequence reference85 = ref span104[num]; + ref QuestSequence reference85 = ref span39[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -347023,32 +286113,26 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1038722u, new Vector3(621.3015f, 97.13325f, 182.17737f), 956); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1038722u, new Vector3(621.3015f, 97.13325f, 182.17737f), 956); obj74.Steps = list110; reference85 = obj74; - num++; - ref QuestSequence reference86 = ref span104[num]; + ref QuestSequence reference86 = ref span39[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Comment = "Avoids aggroing some enemies on the hill" }; - num2++; - span111[num2] = new QuestStep(EInteractionType.Interact, 2011842u, new Vector3(492.1797f, 64.86609f, -44.571655f), 956); + span41[1] = new QuestStep(EInteractionType.Interact, 2011842u, new Vector3(492.1797f, 64.86609f, -44.571655f), 956); obj75.Steps = list111; reference86 = obj75; - num++; - ref QuestSequence reference87 = ref span104[num]; + ref QuestSequence reference87 = ref span39[5]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -347056,88 +286140,63 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - ref QuestStep reference88 = ref span112[index2]; + Span span42 = CollectionsMarshal.AsSpan(list112); + ref QuestStep reference88 = ref span42[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1037985u, new Vector3(481.8036f, 66.16195f, -108.537415f), 956); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list113; reference88 = questStep12; - index2++; - ref QuestStep reference89 = ref span112[index2]; + ref QuestStep reference89 = ref span42[1]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list114; reference89 = questStep13; - index2++; - ref QuestStep reference90 = ref span112[index2]; + ref QuestStep reference90 = ref span42[2]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1038708u, new Vector3(408.31604f, 65.3329f, -130.11371f), 956); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list115; reference90 = questStep14; obj76.Steps = list112; reference87 = obj76; - num++; - ref QuestSequence reference91 = ref span104[num]; + ref QuestSequence reference91 = ref span39[6]; QuestSequence obj77 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj77.Steps = list116; reference91 = obj77; - num++; - ref QuestSequence reference92 = ref span104[num]; + ref QuestSequence reference92 = ref span39[7]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -347145,9 +286204,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038732u, new Vector3(321.43127f, 97.50893f, -279.92682f), 956) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038732u, new Vector3(321.43127f, 97.50893f, -279.92682f), 956) { StopDistance = 5f }; @@ -347160,33 +286217,27 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot12.Author = list118; - index = 5; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference93 = ref span119[num]; + num = 5; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span46 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference93 = ref span46[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj79.Steps = list120; reference93 = obj79; - num++; - ref QuestSequence reference94 = ref span119[num]; + ref QuestSequence reference94 = ref span46[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -347194,33 +286245,27 @@ public static class AssemblyQuestLoader num2 = 2; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(304.306f, 84.01365f, -292.01114f), 956) + Span span47 = CollectionsMarshal.AsSpan(list121); + span47[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(304.306f, 84.01365f, -292.01114f), 956) { DisableNavmesh = true, Mount = true }; - index2++; - span121[index2] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); + span47[1] = new QuestStep(EInteractionType.Interact, 1038736u, new Vector3(177.26404f, 56.63088f, -411.5511f), 956); obj80.Steps = list121; reference94 = obj80; - num++; - ref QuestSequence reference95 = ref span119[num]; + ref QuestSequence reference95 = ref span46[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj81.Steps = list122; reference95 = obj81; - num++; - ref QuestSequence reference96 = ref span119[num]; + ref QuestSequence reference96 = ref span46[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -347228,26 +286273,21 @@ public static class AssemblyQuestLoader num2 = 1; List list123 = new List(num2); CollectionsMarshal.SetCount(list123, num2); - Span span123 = CollectionsMarshal.AsSpan(list123); - index2 = 0; - span123[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.15488f, 81.17488f, -534.99316f), 956) + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-156.15488f, 81.17488f, -534.99316f), 956) { StopDistance = 0.25f }; obj82.Steps = list123; reference96 = obj82; - num++; - ref QuestSequence reference97 = ref span119[num]; + ref QuestSequence reference97 = ref span46[4]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj83.Steps = list124; reference97 = obj83; questRoot12.QuestSequence = list119; @@ -347257,16 +286297,13 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot13.Author = list125; - index = 4; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference98 = ref span126[num]; + num = 4; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span48 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference98 = ref span48[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -347274,27 +286311,21 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038741u, new Vector3(-257.9538f, 79.7362f, -502.06763f), 956); + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038741u, new Vector3(-257.9538f, 79.7362f, -502.06763f), 956); obj84.Steps = list127; reference98 = obj84; - num++; - ref QuestSequence reference99 = ref span126[num]; + ref QuestSequence reference99 = ref span48[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj85.Steps = list128; reference99 = obj85; - num++; - ref QuestSequence reference100 = ref span126[num]; + ref QuestSequence reference100 = ref span48[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -347302,28 +286333,23 @@ public static class AssemblyQuestLoader num2 = 2; 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(253.34096f, 71.49686f, -241.08495f), 956) + Span span49 = CollectionsMarshal.AsSpan(list129); + span49[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.34096f, 71.49686f, -241.08495f), 956) { Comment = "Needed for Navmesh" }; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 1038744u, new Vector3(315.4497f, 96.90322f, -259.23553f), 956); + span49[1] = new QuestStep(EInteractionType.Interact, 1038744u, new Vector3(315.4497f, 96.90322f, -259.23553f), 956); obj86.Steps = list129; reference100 = obj86; - num++; - ref QuestSequence reference101 = ref span126[num]; + ref QuestSequence reference101 = ref span48[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -347336,16 +286362,13 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "liza"; + CollectionsMarshal.AsSpan(list131)[0] = "liza"; questRoot14.Author = list131; - index = 6; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference102 = ref span132[num]; + num = 6; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span50 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference102 = ref span50[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -347353,33 +286376,27 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) { StopDistance = 5f }; obj88.Steps = list133; reference102 = obj88; - num++; - ref QuestSequence reference103 = ref span132[num]; + ref QuestSequence reference103 = ref span50[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj89.Steps = list134; reference103 = obj89; - num++; - ref QuestSequence reference104 = ref span132[num]; + ref QuestSequence reference104 = ref span50[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -347387,26 +286404,21 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1038746u, new Vector3(2.5481567f, 41.37599f, -142.1684f), 962) { StopDistance = 5f }; obj90.Steps = list135; reference104 = obj90; - num++; - ref QuestSequence reference105 = ref span132[num]; + ref QuestSequence reference105 = ref span50[3]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -347416,8 +286428,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list136; reference105 = obj91; - num++; - ref QuestSequence reference106 = ref span132[num]; + ref QuestSequence reference106 = ref span50[4]; QuestSequence obj92 = new QuestSequence { Sequence = 4 @@ -347425,23 +286436,19 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 1040285u, new Vector3(222.03394f, 21.878136f, -120.43945f), 962); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1040285u, new Vector3(222.03394f, 21.878136f, -120.43945f), 962); obj92.Steps = list137; reference106 = obj92; - num++; - ref QuestSequence reference107 = ref span132[num]; + ref QuestSequence reference107 = ref span50[5]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)987, AethernetShortcut = new AethernetShortcut @@ -347450,8 +286457,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num2++; - span138[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987); + span51[1] = new QuestStep(EInteractionType.CompleteQuest, 1040291u, new Vector3(-1.9379272f, 1.9073486E-06f, 1.5715942f), 987); obj93.Steps = list138; reference107 = obj93; questRoot14.QuestSequence = list132; @@ -347461,16 +286467,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot15.Author = list139; - index = 8; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference108 = ref span140[num]; + num = 8; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span52 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference108 = ref span52[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -347478,32 +286481,26 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041250u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041250u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); obj94.Steps = list141; reference108 = obj94; - num++; - ref QuestSequence reference109 = ref span140[num]; + ref QuestSequence reference109 = ref span52[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)962 }; - num2++; - span142[num2] = new QuestStep(EInteractionType.Interact, 1038592u, new Vector3(-83.05487f, 6.6169996f, -39.383606f), 962); + span53[1] = new QuestStep(EInteractionType.Interact, 1038592u, new Vector3(-83.05487f, 6.6169996f, -39.383606f), 962); obj95.Steps = list142; reference109 = obj95; - num++; - ref QuestSequence reference110 = ref span140[num]; + ref QuestSequence reference110 = ref span52[2]; QuestSequence obj96 = new QuestSequence { Sequence = 2 @@ -347511,27 +286508,21 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.Interact, 2011947u, new Vector3(-15.4574585f, 2.7922974f, -8.98761f), 962); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.Interact, 2011947u, new Vector3(-15.4574585f, 2.7922974f, -8.98761f), 962); obj96.Steps = list143; reference110 = obj96; - num++; - ref QuestSequence reference111 = ref span140[num]; + ref QuestSequence reference111 = ref span52[3]; QuestSequence obj97 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj97.Steps = list144; reference111 = obj97; - num++; - ref QuestSequence reference112 = ref span140[num]; + ref QuestSequence reference112 = ref span52[4]; QuestSequence obj98 = new QuestSequence { Sequence = 4 @@ -347539,33 +286530,27 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 1038599u, new Vector3(168.87158f, 5.3451567f, 633.93604f), 957) { DisableNavmesh = true }; obj98.Steps = list145; reference112 = obj98; - num++; - ref QuestSequence reference113 = ref span140[num]; + ref QuestSequence reference113 = ref span52[5]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Emote = EEmote.Deny }; obj99.Steps = list146; reference113 = obj99; - num++; - ref QuestSequence reference114 = ref span140[num]; + ref QuestSequence reference114 = ref span52[6]; QuestSequence obj100 = new QuestSequence { Sequence = 6 @@ -347573,23 +286558,18 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Interact, 1038598u, new Vector3(187.42651f, 9.9744425f, 592.2178f), 957); + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1038598u, new Vector3(187.42651f, 9.9744425f, 592.2178f), 957); obj100.Steps = list147; reference114 = obj100; - num++; - ref QuestSequence reference115 = ref span140[num]; + ref QuestSequence reference115 = ref span52[7]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj101.Steps = list148; reference115 = obj101; questRoot15.QuestSequence = list140; @@ -347599,16 +286579,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "liza"; + CollectionsMarshal.AsSpan(list149)[0] = "liza"; questRoot16.Author = list149; - index = 4; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference116 = ref span150[num]; + num = 4; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span54 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference116 = ref span54[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -347616,44 +286593,34 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038600u, new Vector3(189.92896f, 9.9744425f, 589.89844f), 957); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038600u, new Vector3(189.92896f, 9.9744425f, 589.89844f), 957); obj102.Steps = list151; reference116 = obj102; - num++; - ref QuestSequence reference117 = ref span150[num]; + ref QuestSequence reference117 = ref span54[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Aetheryte = EAetheryteLocation.ThavnairYedlihmad }; - 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) + 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) { StopDistance = 0.25f }; - 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); + 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); obj103.Steps = list152; reference117 = obj103; - num++; - ref QuestSequence reference118 = ref span150[num]; + ref QuestSequence reference118 = ref span54[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 @@ -347661,34 +286628,28 @@ public static class AssemblyQuestLoader num2 = 3; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(223.328f, -0.6f, 752.7248f), 957) + Span span56 = CollectionsMarshal.AsSpan(list153); + span56[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(223.328f, -0.6f, 752.7248f), 957) { DisableNavmesh = true, Sprint = true }; - index2++; - span153[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.03053f, 0.7659681f, 732.0563f), 957) + span56[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(253.03053f, 0.7659681f, 732.0563f), 957) { DisableNavmesh = true }; - index2++; - span153[index2] = new QuestStep(EInteractionType.Interact, 1038606u, new Vector3(277.72937f, 2.9636285f, 703.7003f), 957); + span56[2] = new QuestStep(EInteractionType.Interact, 1038606u, new Vector3(277.72937f, 2.9636285f, 703.7003f), 957); obj104.Steps = list153; reference118 = obj104; - num++; - ref QuestSequence reference119 = ref span150[num]; + ref QuestSequence reference119 = ref span54[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj105.Steps = list154; reference119 = obj105; questRoot16.QuestSequence = list150; @@ -347698,16 +286659,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot17.Author = list155; - index = 7; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference120 = ref span156[num]; + num = 7; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span57 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference120 = ref span57[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -347715,27 +286673,21 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038608u, new Vector3(197.55847f, 1.769943f, 737.97205f), 957); obj106.Steps = list157; reference120 = obj106; - num++; - ref QuestSequence reference121 = ref span156[num]; + ref QuestSequence reference121 = ref span57[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj107.Steps = list158; reference121 = obj107; - num++; - ref QuestSequence reference122 = ref span156[num]; + ref QuestSequence reference122 = ref span57[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -347743,30 +286695,25 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - ref QuestStep reference123 = ref span159[index2]; + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list159)[0]; 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 span160 = CollectionsMarshal.AsSpan(list160); - index3 = 0; - span160[index3] = new DialogueChoice + Span span58 = CollectionsMarshal.AsSpan(list160); + span58[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q2_000_086"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A2_000_088") }; - index3++; - span160[index3] = new DialogueChoice + span58[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q3_000_096"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A3_000_098") }; - index3++; - span160[index3] = new DialogueChoice + span58[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q5_000_106"), @@ -347776,43 +286723,36 @@ public static class AssemblyQuestLoader reference123 = questStep15; obj108.Steps = list159; reference122 = obj108; - num++; - ref QuestSequence reference124 = ref span156[num]; + ref QuestSequence reference124 = ref span57[3]; QuestSequence obj109 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1037626u, new Vector3(166.61316f, 4.763736f, 681.7273f), 957); - index3 = 3; - List list162 = new List(index3); - CollectionsMarshal.SetCount(list162, index3); - Span span162 = CollectionsMarshal.AsSpan(list162); - num3 = 0; - span162[num3] = new DialogueChoice + num3 = 3; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + Span span60 = CollectionsMarshal.AsSpan(list162); + span60[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q6_000_147"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A6_000_149") }; - num3++; - span162[num3] = new DialogueChoice + span60[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q7_000_157"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A7_000_158") }; - num3++; - span162[num3] = new DialogueChoice + span60[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q8_000_162"), @@ -347822,8 +286762,7 @@ public static class AssemblyQuestLoader reference125 = questStep16; obj109.Steps = list161; reference124 = obj109; - num++; - ref QuestSequence reference126 = ref span156[num]; + ref QuestSequence reference126 = ref span57[4]; QuestSequence obj110 = new QuestSequence { Sequence = 4 @@ -347831,30 +286770,25 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - ref QuestStep reference127 = ref span163[index2]; + ref QuestStep reference127 = ref CollectionsMarshal.AsSpan(list163)[0]; 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 span164 = CollectionsMarshal.AsSpan(list164); - index3 = 0; - span164[index3] = new DialogueChoice + Span span61 = CollectionsMarshal.AsSpan(list164); + span61[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q9_000_198"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A9_000_200") }; - index3++; - span164[index3] = new DialogueChoice + span61[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q10_000_207"), Answer = new ExcelRef("TEXT_AKTKMA114_04370_A10_000_209") }; - index3++; - span164[index3] = new DialogueChoice + span61[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMA114_04370_Q11_000_216"), @@ -347864,25 +286798,21 @@ public static class AssemblyQuestLoader reference127 = questStep17; obj110.Steps = list163; reference126 = obj110; - num++; - ref QuestSequence reference128 = ref span156[num]; + ref QuestSequence reference128 = ref span57[5]; QuestSequence obj111 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 0.25f }; obj111.Steps = list165; reference128 = obj111; - num++; - ref QuestSequence reference129 = ref span156[num]; + ref QuestSequence reference129 = ref span57[6]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -347890,9 +286820,7 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038609u, new Vector3(199.35901f, 5.873753f, 612.787f), 957); + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038609u, new Vector3(199.35901f, 5.873753f, 612.787f), 957); obj112.Steps = list166; reference129 = obj112; questRoot17.QuestSequence = list156; @@ -347902,33 +286830,27 @@ public static class AssemblyQuestLoader num = 1; List list167 = new List(num); CollectionsMarshal.SetCount(list167, num); - Span span167 = CollectionsMarshal.AsSpan(list167); - index = 0; - span167[index] = "liza"; + CollectionsMarshal.AsSpan(list167)[0] = "liza"; questRoot18.Author = list167; - index = 8; - List list168 = new List(index); - CollectionsMarshal.SetCount(list168, index); - Span span168 = CollectionsMarshal.AsSpan(list168); - num = 0; - ref QuestSequence reference130 = ref span168[num]; + num = 8; + List list168 = new List(num); + CollectionsMarshal.SetCount(list168, num); + Span span62 = CollectionsMarshal.AsSpan(list168); + ref QuestSequence reference130 = ref span62[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj113.Steps = list169; reference130 = obj113; - num++; - ref QuestSequence reference131 = ref span168[num]; + ref QuestSequence reference131 = ref span62[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -347936,16 +286858,13 @@ public static class AssemblyQuestLoader num2 = 2; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - ref QuestStep reference132 = ref span170[index2]; + Span span63 = CollectionsMarshal.AsSpan(list170); + ref QuestStep reference132 = ref span63[0]; QuestStep questStep18 = new QuestStep(EInteractionType.AcceptQuest, 1041331u, new Vector3(202.4414f, 1.769943f, 727.7484f), 957); - index3 = 1; - List list171 = new List(index3); - CollectionsMarshal.SetCount(list171, index3); - Span span171 = CollectionsMarshal.AsSpan(list171); - num3 = 0; - span171[num3] = new DialogueChoice + num3 = 1; + List list171 = new List(num3); + CollectionsMarshal.SetCount(list171, num3); + CollectionsMarshal.AsSpan(list171)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/044/AktKza201_04489", @@ -347955,26 +286874,21 @@ public static class AssemblyQuestLoader questStep18.DialogueChoices = list171; questStep18.PickUpQuestId = new QuestId(4489); reference132 = questStep18; - index2++; - span170[index2] = new QuestStep(EInteractionType.Interact, 2011951u, new Vector3(105.1499f, 7.7667847f, 581.5061f), 957); + span63[1] = new QuestStep(EInteractionType.Interact, 2011951u, new Vector3(105.1499f, 7.7667847f, 581.5061f), 957); obj114.Steps = list170; reference131 = obj114; - num++; - ref QuestSequence reference133 = ref span168[num]; + ref QuestSequence reference133 = ref span62[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj115.Steps = list172; reference133 = obj115; - num++; - ref QuestSequence reference134 = ref span168[num]; + ref QuestSequence reference134 = ref span62[3]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -347982,9 +286896,7 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - ref QuestStep reference135 = ref span173[index2]; + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list173)[0]; QuestStep obj117 = new QuestStep(EInteractionType.Combat, 1038612u, new Vector3(31.937134f, 37.463673f, 379.5985f), 957) { StopDistance = 0.25f, @@ -347993,29 +286905,23 @@ public static class AssemblyQuestLoader num3 = 1; List list174 = new List(num3); CollectionsMarshal.SetCount(list174, num3); - Span span174 = CollectionsMarshal.AsSpan(list174); - index3 = 0; - span174[index3] = 14006u; + CollectionsMarshal.AsSpan(list174)[0] = 14006u; obj117.KillEnemyDataIds = list174; reference135 = obj117; obj116.Steps = list173; reference134 = obj116; - num++; - ref QuestSequence reference136 = ref span168[num]; + ref QuestSequence reference136 = ref span62[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj118.Steps = list175; reference136 = obj118; - num++; - ref QuestSequence reference137 = ref span168[num]; + ref QuestSequence reference137 = ref span62[5]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -348023,34 +286929,28 @@ public static class AssemblyQuestLoader num2 = 2; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011990u, new Vector3(-176.10437f, 21.530457f, 537.8346f), 957) + Span span64 = CollectionsMarshal.AsSpan(list176); + span64[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011990u, new Vector3(-176.10437f, 21.530457f, 537.8346f), 957) { AetherCurrentId = 2818329u }; - index2++; - span176[index2] = new QuestStep(EInteractionType.Interact, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + span64[1] = new QuestStep(EInteractionType.Interact, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj119.Steps = list176; reference137 = obj119; - num++; - ref QuestSequence reference138 = ref span168[num]; + ref QuestSequence reference138 = ref span62[6]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj120.Steps = list177; reference138 = obj120; - num++; - ref QuestSequence reference139 = ref span168[num]; + ref QuestSequence reference139 = ref span62[7]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -348058,9 +286958,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038616u, new Vector3(-278.88916f, 2.740889f, 532.03625f), 957); obj121.Steps = list178; reference139 = obj121; questRoot18.QuestSequence = list168; @@ -348070,30 +286968,24 @@ public static class AssemblyQuestLoader num = 1; List list179 = new List(num); CollectionsMarshal.SetCount(list179, num); - Span span179 = CollectionsMarshal.AsSpan(list179); - index = 0; - span179[index] = "liza"; + CollectionsMarshal.AsSpan(list179)[0] = "liza"; questRoot19.Author = list179; - index = 10; - List list180 = new List(index); - CollectionsMarshal.SetCount(list180, index); - Span span180 = CollectionsMarshal.AsSpan(list180); - num = 0; - ref QuestSequence reference140 = ref span180[num]; + num = 10; + List list180 = new List(num); + CollectionsMarshal.SetCount(list180, num); + Span span66 = CollectionsMarshal.AsSpan(list180); + ref QuestSequence reference140 = ref span66[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj122.Steps = list181; reference140 = obj122; - num++; - ref QuestSequence reference141 = ref span180[num]; + ref QuestSequence reference141 = ref span66[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -348101,33 +286993,27 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.Interact, 1038620u, new Vector3(-477.68372f, 5.0817194f, 19.21106f), 957); + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.Interact, 1038620u, new Vector3(-477.68372f, 5.0817194f, 19.21106f), 957); obj123.Steps = list182; reference141 = obj123; - num++; - ref QuestSequence reference142 = ref span180[num]; + ref QuestSequence reference142 = ref span66[2]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, Aetheryte = EAetheryteLocation.ThavnairGreatWork }; - num2++; - span183[num2] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); + span67[1] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); obj124.Steps = list183; reference142 = obj124; - num++; - ref QuestSequence reference143 = ref span180[num]; + ref QuestSequence reference143 = ref span66[3]; QuestSequence obj125 = new QuestSequence { Sequence = 3 @@ -348135,43 +287021,35 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - span184[index2] = new QuestStep(EInteractionType.Interact, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj125.Steps = list184; reference143 = obj125; - num++; - ref QuestSequence reference144 = ref span180[num]; + ref QuestSequence reference144 = ref span66[4]; QuestSequence obj126 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; - num2++; - span185[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) + span68[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038636u, new Vector3(-425.414f, 38.415024f, 160.1206f), 957) { StopDistance = 4f }; - 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) + 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) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj126.Steps = list185; reference144 = obj126; - num++; - ref QuestSequence reference145 = ref span180[num]; + ref QuestSequence reference145 = ref span66[5]; QuestSequence obj127 = new QuestSequence { Sequence = 5 @@ -348179,62 +287057,52 @@ public static class AssemblyQuestLoader num2 = 4; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1041219u, new Vector3(-425.43683f, 38.413155f, 160.11292f), 957) + Span span69 = CollectionsMarshal.AsSpan(list186); + span69[0] = new QuestStep(EInteractionType.Interact, 1041219u, new Vector3(-425.43683f, 38.413155f, 160.11292f), 957) { StopDistance = 5f }; - index2++; - span186[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041219u, new Vector3(-419.6078f, 43.950115f, 87.3025f), 957) + span69[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041219u, new Vector3(-419.6078f, 43.950115f, 87.3025f), 957) { StopDistance = 4f }; - 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) + 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) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj127.Steps = list186; reference145 = obj127; - num++; - ref QuestSequence reference146 = ref span180[num]; + ref QuestSequence reference146 = ref span66[6]; QuestSequence obj128 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; - num2++; - span187[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041220u, new Vector3(-444.7032f, 49.551f, 97.1969f), 957) + span70[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041220u, new Vector3(-444.7032f, 49.551f, 97.1969f), 957) { StopDistance = 4f }; - num2++; - span187[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-433.19608f, 46.94587f, 93.295135f), 957) + span70[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-433.19608f, 46.94587f, 93.295135f), 957) { StopDistance = 0.35f }; - num2++; - span187[num2] = new QuestStep(EInteractionType.WalkTo, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) + span70[3] = new QuestStep(EInteractionType.WalkTo, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj128.Steps = list187; reference146 = obj128; - num++; - ref QuestSequence reference147 = ref span180[num]; + ref QuestSequence reference147 = ref span66[7]; QuestSequence obj129 = new QuestSequence { Sequence = 7 @@ -348242,46 +287110,38 @@ public static class AssemblyQuestLoader num2 = 4; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) + Span span71 = CollectionsMarshal.AsSpan(list188); + span71[0] = new QuestStep(EInteractionType.Interact, 1041221u, new Vector3(-444.72424f, 49.55681f, 97.18469f), 957) { StopDistance = 5f }; - index2++; - span188[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041221u, new Vector3(-484.5909f, 54.18516f, 128.3601f), 957) + span71[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041221u, new Vector3(-484.5909f, 54.18516f, 128.3601f), 957) { StopDistance = 4f }; - 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) + 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) { StopDistance = 4f, DelaySecondsAtStart = 2f }; obj129.Steps = list188; reference147 = obj129; - num++; - ref QuestSequence reference148 = ref span180[num]; + ref QuestSequence reference148 = ref span66[8]; QuestSequence obj130 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 5f }; obj130.Steps = list189; reference148 = obj130; - num++; - ref QuestSequence reference149 = ref span180[num]; + ref QuestSequence reference149 = ref span66[9]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -348289,9 +287149,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038635u, new Vector3(-487.1443f, 49.161343f, 153.42944f), 957); obj131.Steps = list190; reference149 = obj131; questRoot19.QuestSequence = list180; @@ -348301,30 +287159,24 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "liza"; + CollectionsMarshal.AsSpan(list191)[0] = "liza"; questRoot20.Author = list191; - index = 7; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference150 = ref span192[num]; + num = 7; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span72 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference150 = ref span72[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj132.Steps = list193; reference150 = obj132; - num++; - ref QuestSequence reference151 = ref span192[num]; + ref QuestSequence reference151 = ref span72[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -348332,39 +287184,31 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - ref QuestStep reference152 = ref span194[index2]; + ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list194)[0]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1038638u, new Vector3(-230.6402f, 27.619656f, 23.727722f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list195 = new List(index3); - CollectionsMarshal.SetCount(list195, index3); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - span195[num3] = 14004u; + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + CollectionsMarshal.AsSpan(list195)[0] = 14004u; obj134.KillEnemyDataIds = list195; reference152 = obj134; obj133.Steps = list194; reference151 = obj133; - num++; - ref QuestSequence reference153 = ref span192[num]; + ref QuestSequence reference153 = ref span72[2]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj135.Steps = list196; reference153 = obj135; - num++; - ref QuestSequence reference154 = ref span192[num]; + ref QuestSequence reference154 = ref span72[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -348372,27 +287216,21 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 1038639u, new Vector3(-15.030151f, 84.48873f, -71.000244f), 957); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 1038639u, new Vector3(-15.030151f, 84.48873f, -71.000244f), 957); obj136.Steps = list197; reference154 = obj136; - num++; - ref QuestSequence reference155 = ref span192[num]; + ref QuestSequence reference155 = ref span72[4]; QuestSequence obj137 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj137.Steps = list198; reference155 = obj137; - num++; - ref QuestSequence reference156 = ref span192[num]; + ref QuestSequence reference156 = ref span72[5]; QuestSequence obj138 = new QuestSequence { Sequence = 5 @@ -348400,23 +287238,18 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.Interact, 1038641u, new Vector3(34.62268f, 90.26942f, -159.80774f), 957); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1038641u, new Vector3(34.62268f, 90.26942f, -159.80774f), 957); obj138.Steps = list199; reference156 = obj138; - num++; - ref QuestSequence reference157 = ref span192[num]; + ref QuestSequence reference157 = ref span72[6]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -348429,16 +287262,13 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "liza"; + CollectionsMarshal.AsSpan(list201)[0] = "liza"; questRoot21.Author = list201; - index = 8; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference158 = ref span202[num]; + num = 8; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span73 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference158 = ref span73[0]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -348446,32 +287276,26 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957); obj140.Steps = list203; reference158 = obj140; - num++; - ref QuestSequence reference159 = ref span202[num]; + ref QuestSequence reference159 = ref span73[1]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(4203) }; - num2++; - span204[num2] = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); + span74[1] = new QuestStep(EInteractionType.Interact, 1038642u, new Vector3(-384.1764f, 12.2027235f, 28.244385f), 957); obj141.Steps = list204; reference159 = obj141; - num++; - ref QuestSequence reference160 = ref span202[num]; + ref QuestSequence reference160 = ref span73[2]; QuestSequence obj142 = new QuestSequence { Sequence = 2 @@ -348479,16 +287303,12 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - ref QuestStep reference161 = ref span205[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list205)[0]; 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); - Span span206 = CollectionsMarshal.AsSpan(list206); - index3 = 0; - span206[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list206)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA118_04374_Q1_000_041") @@ -348497,26 +287317,21 @@ public static class AssemblyQuestLoader reference161 = questStep19; obj142.Steps = list205; reference160 = obj142; - num++; - ref QuestSequence reference162 = ref span202[num]; + ref QuestSequence reference162 = ref span73[3]; QuestSequence obj143 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj143.Steps = list207; reference162 = obj143; - num++; - ref QuestSequence reference163 = ref span202[num]; + ref QuestSequence reference163 = ref span73[4]; QuestSequence obj144 = new QuestSequence { Sequence = 4 @@ -348524,30 +287339,23 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.Interact, 1038645u, new Vector3(-549.24854f, 9.817465f, -563.04266f), 957); + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1038645u, new Vector3(-549.24854f, 9.817465f, -563.04266f), 957); obj144.Steps = list208; reference163 = obj144; - num++; - ref QuestSequence reference164 = ref span202[num]; + ref QuestSequence reference164 = ref span73[5]; QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list209 = new List(index2); - CollectionsMarshal.SetCount(list209, index2); - Span span209 = CollectionsMarshal.AsSpan(list209); - num2 = 0; - ref QuestStep reference165 = ref span209[num2]; + num2 = 1; + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list209)[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1038648u, new Vector3(-557.641f, 9.672808f, -555.04694f), 957); - index3 = 1; - List list210 = new List(index3); - CollectionsMarshal.SetCount(list210, index3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = new DialogueChoice + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA118_04374_Q2_000_141") @@ -348556,8 +287364,7 @@ public static class AssemblyQuestLoader reference165 = questStep20; obj145.Steps = list209; reference164 = obj145; - num++; - ref QuestSequence reference166 = ref span202[num]; + ref QuestSequence reference166 = ref span73[6]; QuestSequence obj146 = new QuestSequence { Sequence = 6 @@ -348565,26 +287372,21 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.68971f, 88.84356f, -608.6588f), 957) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-103.68971f, 88.84356f, -608.6588f), 957) { StopDistance = 0.25f }; obj146.Steps = list211; reference166 = obj146; - num++; - ref QuestSequence reference167 = ref span202[num]; + ref QuestSequence reference167 = ref span73[7]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj147.Steps = list212; reference167 = obj147; questRoot21.QuestSequence = list202; @@ -348594,16 +287396,13 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "liza"; + CollectionsMarshal.AsSpan(list213)[0] = "liza"; questRoot22.Author = list213; - index = 5; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference168 = ref span214[num]; + num = 5; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span76 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference168 = ref span76[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -348611,40 +287410,32 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037649u, new Vector3(-92.97333f, 89.5583f, -642.3591f), 957); obj148.Steps = list215; reference168 = obj148; - num++; - ref QuestSequence reference169 = ref span214[num]; + ref QuestSequence reference169 = ref span76[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true, AetherCurrentId = 2818330u }; - num2++; - span216[num2] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) + span77[3] = new QuestStep(EInteractionType.Interact, 1038631u, new Vector3(-510.7958f, 11.975282f, 117.69275f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj149.Steps = list216; reference169 = obj149; - num++; - ref QuestSequence reference170 = ref span214[num]; + ref QuestSequence reference170 = ref span76[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -348652,16 +287443,12 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - ref QuestStep reference171 = ref span217[index2]; + ref QuestStep reference171 = ref CollectionsMarshal.AsSpan(list217)[0]; 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); - Span span218 = CollectionsMarshal.AsSpan(list218); - index3 = 0; - span218[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA119_04375_Q1_000_056") @@ -348670,25 +287457,21 @@ public static class AssemblyQuestLoader reference171 = questStep21; obj150.Steps = list217; reference170 = obj150; - num++; - ref QuestSequence reference172 = ref span214[num]; + ref QuestSequence reference172 = ref span76[3]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 6f }; obj151.Steps = list219; reference172 = obj151; - num++; - ref QuestSequence reference173 = ref span214[num]; + ref QuestSequence reference173 = ref span76[4]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -348696,9 +287479,7 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038653u, new Vector3(-492.0577f, 4.5676737f, 17.532532f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -348711,30 +287492,24 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - Span span221 = CollectionsMarshal.AsSpan(list221); - index = 0; - span221[index] = "liza"; + CollectionsMarshal.AsSpan(list221)[0] = "liza"; questRoot23.Author = list221; - index = 4; - List list222 = new List(index); - CollectionsMarshal.SetCount(list222, index); - Span span222 = CollectionsMarshal.AsSpan(list222); - num = 0; - ref QuestSequence reference174 = ref span222[num]; + num = 4; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + Span span78 = CollectionsMarshal.AsSpan(list222); + ref QuestSequence reference174 = ref span78[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj153.Steps = list223; reference174 = obj153; - num++; - ref QuestSequence reference175 = ref span222[num]; + ref QuestSequence reference175 = ref span78[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -348742,27 +287517,21 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1038656u, new Vector3(203.96729f, 60.34319f, -595.8496f), 957); + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1038656u, new Vector3(203.96729f, 60.34319f, -595.8496f), 957); obj154.Steps = list224; reference175 = obj154; - num++; - ref QuestSequence reference176 = ref span222[num]; + ref QuestSequence reference176 = ref span78[2]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj155.Steps = list225; reference176 = obj155; - num++; - ref QuestSequence reference177 = ref span222[num]; + ref QuestSequence reference177 = ref span78[3]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -348770,9 +287539,8 @@ public static class AssemblyQuestLoader num2 = 2; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + Span span79 = CollectionsMarshal.AsSpan(list226); + span79[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -348782,8 +287550,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - index2++; - span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038589u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); + span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1038589u, new Vector3(4.0740967f, 1.9073486E-06f, 2.029419f), 987); obj156.Steps = list226; reference177 = obj156; questRoot23.QuestSequence = list222; @@ -348793,33 +287560,27 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "liza"; + CollectionsMarshal.AsSpan(list227)[0] = "liza"; questRoot24.Author = list227; - index = 6; - List list228 = new List(index); - CollectionsMarshal.SetCount(list228, index); - Span span228 = CollectionsMarshal.AsSpan(list228); - num = 0; - ref QuestSequence reference178 = ref span228[num]; + num = 6; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span80 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference178 = ref span80[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj157.Steps = list229; reference178 = obj157; - num++; - ref QuestSequence reference179 = ref span228[num]; + ref QuestSequence reference179 = ref span80[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -348827,30 +287588,24 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj158.Steps = list230; reference179 = obj158; - num++; - ref QuestSequence reference180 = ref span228[num]; + ref QuestSequence reference180 = ref span80[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj159.Steps = list231; reference180 = obj159; - num++; - ref QuestSequence reference181 = ref span228[num]; + ref QuestSequence reference181 = ref span80[3]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -348858,9 +287613,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Duty, null, null, 957) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Duty, null, null, 957) { DutyOptions = new DutyOptions { @@ -348870,23 +287623,19 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference181 = obj160; - num++; - span228[num] = new QuestSequence + span80[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference182 = ref span228[num]; + ref QuestSequence reference182 = ref span80[5]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj161.Steps = list233; reference182 = obj161; questRoot24.QuestSequence = list228; @@ -348896,16 +287645,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "liza"; + CollectionsMarshal.AsSpan(list234)[0] = "liza"; questRoot25.Author = list234; - index = 8; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference183 = ref span235[num]; + num = 8; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span81 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference183 = ref span81[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -348913,27 +287659,21 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040252u, new Vector3(-568.719f, 9.817484f, -581.323f), 957); obj162.Steps = list236; reference183 = obj162; - num++; - ref QuestSequence reference184 = ref span235[num]; + ref QuestSequence reference184 = ref span81[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj163.Steps = list237; reference184 = obj163; - num++; - ref QuestSequence reference185 = ref span235[num]; + ref QuestSequence reference185 = ref span81[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -348941,35 +287681,29 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 1040255u, new Vector3(57.26709f, -27.000013f, 177.5387f), 963) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1040255u, new Vector3(57.26709f, -27.000013f, 177.5387f), 963) { StopDistance = 5f }; obj164.Steps = list238; reference185 = obj164; - num++; - ref QuestSequence reference186 = ref span235[num]; + ref QuestSequence reference186 = ref span81[3]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShard = EAetheryteLocation.RadzAtHanAlzadaalsPeace }; - num2++; - span239[num2] = new QuestStep(EInteractionType.Interact, 1040256u, new Vector3(-4.135254f, -1.9999973f, 85.40466f), 963); + span82[1] = new QuestStep(EInteractionType.Interact, 1040256u, new Vector3(-4.135254f, -1.9999973f, 85.40466f), 963); obj165.Steps = list239; reference186 = obj165; - num++; - ref QuestSequence reference187 = ref span235[num]; + ref QuestSequence reference187 = ref span81[4]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -348977,27 +287711,21 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.Interact, 1040257u, new Vector3(-99.3515f, 20f, 110.52112f), 963); + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1040257u, new Vector3(-99.3515f, 20f, 110.52112f), 963); obj166.Steps = list240; reference187 = obj166; - num++; - ref QuestSequence reference188 = ref span235[num]; + ref QuestSequence reference188 = ref span81[5]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj167.Steps = list241; reference188 = obj167; - num++; - ref QuestSequence reference189 = ref span235[num]; + ref QuestSequence reference189 = ref span81[6]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -349005,33 +287733,27 @@ public static class AssemblyQuestLoader num2 = 3; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span83 = CollectionsMarshal.AsSpan(list242); + span83[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanAirship }; - index2++; - span242[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span83[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMeghaduta }; - index2++; - span242[index2] = new QuestStep(EInteractionType.Interact, 1040259u, new Vector3(-341.93945f, 55f, -70.603516f), 963); + span83[2] = new QuestStep(EInteractionType.Interact, 1040259u, new Vector3(-341.93945f, 55f, -70.603516f), 963); obj168.Steps = list242; reference189 = obj168; - num++; - ref QuestSequence reference190 = ref span235[num]; + ref QuestSequence reference190 = ref span81[7]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj169.Steps = list243; reference190 = obj169; questRoot25.QuestSequence = list235; @@ -349041,16 +287763,13 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "liza"; + CollectionsMarshal.AsSpan(list244)[0] = "liza"; questRoot26.Author = list244; - index = 7; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference191 = ref span245[num]; + num = 7; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span84 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference191 = ref span84[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -349058,27 +287777,21 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040261u, new Vector3(-377.61505f, 45.002518f, -29.922974f), 963); + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040261u, new Vector3(-377.61505f, 45.002518f, -29.922974f), 963); obj170.Steps = list246; reference191 = obj170; - num++; - ref QuestSequence reference192 = ref span245[num]; + ref QuestSequence reference192 = ref span84[1]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj171.Steps = list247; reference192 = obj171; - num++; - ref QuestSequence reference193 = ref span245[num]; + ref QuestSequence reference193 = ref span84[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -349086,32 +287799,26 @@ public static class AssemblyQuestLoader num2 = 2; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - span248[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span85 = CollectionsMarshal.AsSpan(list248); + span85[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanRuveydahFibers }; - index2++; - span248[index2] = new QuestStep(EInteractionType.Interact, 1040264u, new Vector3(-106.49274f, 30.999998f, -14.54187f), 963); + span85[1] = new QuestStep(EInteractionType.Interact, 1040264u, new Vector3(-106.49274f, 30.999998f, -14.54187f), 963); obj172.Steps = list248; reference193 = obj172; - num++; - ref QuestSequence reference194 = ref span245[num]; + ref QuestSequence reference194 = ref span84[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj173.Steps = list249; reference194 = obj173; - num++; - ref QuestSequence reference195 = ref span245[num]; + ref QuestSequence reference195 = ref span84[4]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -349119,28 +287826,23 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 1040268u, new Vector3(87.5105f, 1.8631812f, -121.41614f), 963); + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1040268u, new Vector3(87.5105f, 1.8631812f, -121.41614f), 963); obj174.Steps = list250; reference195 = obj174; - num++; - ref QuestSequence reference196 = ref span245[num]; + ref QuestSequence reference196 = ref span84[5]; QuestSequence obj175 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShard = EAetheryteLocation.RadzAtHanHighCrucible }; - num2++; - span251[num2] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + span86[1] = new QuestStep(EInteractionType.Interact, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -349151,8 +287853,7 @@ public static class AssemblyQuestLoader }; obj175.Steps = list251; reference196 = obj175; - num++; - ref QuestSequence reference197 = ref span245[num]; + ref QuestSequence reference197 = ref span84[6]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -349160,19 +287861,15 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - index2 = 0; - ref QuestStep reference198 = ref span252[index2]; + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list252)[0]; QuestStep obj177 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 6f }; - index3 = 1; - List list253 = new List(index3); - CollectionsMarshal.SetCount(list253, index3); - Span span253 = CollectionsMarshal.AsSpan(list253); - num3 = 0; - span253[num3] = new DialogueChoice + num3 = 1; + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + CollectionsMarshal.AsSpan(list253)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMA123_04379_Q1_000_163") @@ -349188,30 +287885,24 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "liza"; + CollectionsMarshal.AsSpan(list254)[0] = "liza"; questRoot27.Author = list254; - index = 7; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference199 = ref span255[num]; + num = 7; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span87 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference199 = ref span87[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj178.Steps = list256; reference199 = obj178; - num++; - ref QuestSequence reference200 = ref span255[num]; + ref QuestSequence reference200 = ref span87[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -349219,23 +287910,18 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1038771u, new Vector3(-107.49988f, 3.8006456f, 26.29126f), 962); + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1038771u, new Vector3(-107.49988f, 3.8006456f, 26.29126f), 962); obj179.Steps = list257; reference200 = obj179; - num++; - ref QuestSequence reference201 = ref span255[num]; + ref QuestSequence reference201 = ref span87[2]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -349245,8 +287931,7 @@ public static class AssemblyQuestLoader }; obj180.Steps = list258; reference201 = obj180; - num++; - ref QuestSequence reference202 = ref span255[num]; + ref QuestSequence reference202 = ref span87[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -349254,30 +287939,24 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Interact, 1038776u, new Vector3(-310.78058f, 20.0375f, -92.82062f), 962); + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.Interact, 1038776u, new Vector3(-310.78058f, 20.0375f, -92.82062f), 962); obj181.Steps = list259; reference202 = obj181; - num++; - ref QuestSequence reference203 = ref span255[num]; + ref QuestSequence reference203 = ref span87[4]; QuestSequence obj182 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj182.Steps = list260; reference203 = obj182; - num++; - ref QuestSequence reference204 = ref span255[num]; + ref QuestSequence reference204 = ref span87[5]; QuestSequence obj183 = new QuestSequence { Sequence = 5 @@ -349285,23 +287964,18 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 1038760u, new Vector3(-298.5733f, 22.423145f, -149.67578f), 962); + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1038760u, new Vector3(-298.5733f, 22.423145f, -149.67578f), 962); obj183.Steps = list261; reference204 = obj183; - num++; - ref QuestSequence reference205 = ref span255[num]; + ref QuestSequence reference205 = ref span87[6]; QuestSequence obj184 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj184.Steps = list262; reference205 = obj184; questRoot27.QuestSequence = list255; @@ -349311,16 +287985,13 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot28.Author = list263; - index = 4; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference206 = ref span264[num]; + num = 4; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span88 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference206 = ref span88[0]; QuestSequence obj185 = new QuestSequence { Sequence = 0 @@ -349328,23 +287999,19 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038781u, new Vector3(-393.2403f, 20.8f, -105.760315f), 962); + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038781u, new Vector3(-393.2403f, 20.8f, -105.760315f), 962); obj185.Steps = list265; reference206 = obj185; - num++; - ref QuestSequence reference207 = ref span264[num]; + ref QuestSequence reference207 = ref span88[1]; QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)987, AethernetShortcut = new AethernetShortcut @@ -349353,12 +288020,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num2++; - span266[num2] = new QuestStep(EInteractionType.Interact, 1038784u, new Vector3(-0.22894287f, 1.9073486E-06f, -11.12384f), 987); + span89[1] = new QuestStep(EInteractionType.Interact, 1038784u, new Vector3(-0.22894287f, 1.9073486E-06f, -11.12384f), 987); obj186.Steps = list266; reference207 = obj186; - num++; - ref QuestSequence reference208 = ref span264[num]; + ref QuestSequence reference208 = ref span88[2]; QuestSequence obj187 = new QuestSequence { Sequence = 2 @@ -349366,9 +288031,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - ref QuestStep reference209 = ref span267[index2]; + ref QuestStep reference209 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1001029u, new Vector3(9.170593f, 20.999403f, -15.213318f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa @@ -349376,9 +288039,7 @@ public static class AssemblyQuestLoader num3 = 1; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - Span span268 = CollectionsMarshal.AsSpan(list268); - index3 = 0; - span268[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB102_04381_Q1_000_067") @@ -349387,18 +288048,15 @@ public static class AssemblyQuestLoader reference209 = obj188; obj187.Steps = list267; reference208 = obj187; - num++; - ref QuestSequence reference210 = ref span264[num]; + ref QuestSequence reference210 = ref span88[3]; QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter @@ -349412,16 +288070,13 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - Span span270 = CollectionsMarshal.AsSpan(list270); - index = 0; - span270[index] = "liza"; + CollectionsMarshal.AsSpan(list270)[0] = "liza"; questRoot29.Author = list270; - index = 6; - List list271 = new List(index); - CollectionsMarshal.SetCount(list271, index); - Span span271 = CollectionsMarshal.AsSpan(list271); - num = 0; - ref QuestSequence reference211 = ref span271[num]; + num = 6; + List list271 = new List(num); + CollectionsMarshal.SetCount(list271, num); + Span span90 = CollectionsMarshal.AsSpan(list271); + ref QuestSequence reference211 = ref span90[0]; QuestSequence obj190 = new QuestSequence { Sequence = 0 @@ -349429,36 +288084,29 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038802u, new Vector3(746.63916f, 69.999954f, 523.39966f), 621) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038802u, new Vector3(746.63916f, 69.999954f, 523.39966f), 621) { StopDistance = 5f }; obj190.Steps = list272; reference211 = obj190; - num++; - ref QuestSequence reference212 = ref span271[num]; + ref QuestSequence reference212 = ref span90[1]; QuestSequence obj191 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list273 = new List(index2); - CollectionsMarshal.SetCount(list273, index2); - Span span273 = CollectionsMarshal.AsSpan(list273); - num2 = 0; - ref QuestStep reference213 = ref span273[num2]; + num2 = 1; + List list273 = new List(num2); + CollectionsMarshal.SetCount(list273, num2); + ref QuestStep reference213 = ref CollectionsMarshal.AsSpan(list273)[0]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1024065u, new Vector3(749.9961f, 70.139626f, 522.88086f), 621) { StopDistance = 7f }; - index3 = 1; - List list274 = new List(index3); - CollectionsMarshal.SetCount(list274, index3); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - span274[num3] = new DialogueChoice + num3 = 1; + List list274 = new List(num3); + CollectionsMarshal.SetCount(list274, num3); + CollectionsMarshal.AsSpan(list274)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB103_04382_Q1_000_052") @@ -349467,8 +288115,7 @@ public static class AssemblyQuestLoader reference213 = obj192; obj191.Steps = list273; reference212 = obj191; - num++; - ref QuestSequence reference214 = ref span271[num]; + ref QuestSequence reference214 = ref span90[2]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -349476,23 +288123,19 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.Interact, 1038804u, new Vector3(251.81958f, 121.999985f, -360.586f), 737); + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.Interact, 1038804u, new Vector3(251.81958f, 121.999985f, -360.586f), 737); obj193.Steps = list275; reference214 = obj193; - num++; - ref QuestSequence reference215 = ref span271[num]; + ref QuestSequence reference215 = ref span90[3]; QuestSequence obj194 = new QuestSequence { Sequence = 3 }; - index2 = 5; - List list276 = new List(index2); - CollectionsMarshal.SetCount(list276, index2); - Span span276 = CollectionsMarshal.AsSpan(list276); - num2 = 0; - ref QuestStep reference216 = ref span276[num2]; + num2 = 5; + List list276 = new List(num2); + CollectionsMarshal.SetCount(list276, num2); + Span span91 = CollectionsMarshal.AsSpan(list276); + ref QuestStep reference216 = ref span91[0]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1038811u, new Vector3(244.31213f, 122f, -362.96637f), 737) { StopDistance = 7f, @@ -349501,48 +288144,34 @@ public static class AssemblyQuestLoader num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - 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); + 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); obj195.CompletionQuestVariablesFlags = list277; reference216 = obj195; - num2++; - ref QuestStep reference217 = ref span276[num2]; + ref QuestStep reference217 = ref span91[1]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1038812u, new Vector3(245.77698f, 122f, -366.47595f), 737) { StopDistance = 7f, Comment = "Sicard" }; - 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); + 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); obj196.CompletionQuestVariablesFlags = list278; reference217 = obj196; - num2++; - ref QuestStep reference218 = ref span276[num2]; + ref QuestStep reference218 = ref span91[2]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 1038813u, new Vector3(250.78198f, 122f, -366.84216f), 737) { StopDistance = 7f, @@ -349551,48 +288180,34 @@ public static class AssemblyQuestLoader num3 = 6; List list279 = new List(num3); CollectionsMarshal.SetCount(list279, num3); - 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); + 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); obj197.CompletionQuestVariablesFlags = list279; reference218 = obj197; - num2++; - ref QuestStep reference219 = ref span276[num2]; + ref QuestStep reference219 = ref span91[3]; QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1038814u, new Vector3(251.23975f, 122f, -363.9124f), 737) { StopDistance = 7f, Comment = "Lucia" }; - 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); + 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); obj198.CompletionQuestVariablesFlags = list280; reference219 = obj198; - num2++; - ref QuestStep reference220 = ref span276[num2]; + ref QuestStep reference220 = ref span91[4]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1038815u, new Vector3(250.17163f, 122f, -352.34613f), 737) { StopDistance = 7f, @@ -349601,25 +288216,18 @@ public static class AssemblyQuestLoader num3 = 6; List list281 = new List(num3); CollectionsMarshal.SetCount(list281, num3); - 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); + 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); obj199.CompletionQuestVariablesFlags = list281; reference220 = obj199; obj194.Steps = list276; reference215 = obj194; - num++; - ref QuestSequence reference221 = ref span271[num]; + ref QuestSequence reference221 = ref span90[4]; QuestSequence obj200 = new QuestSequence { Sequence = 4 @@ -349627,26 +288235,21 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Interact, 1038816u, new Vector3(254.23047f, 122f, -364.9806f), 737) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1038816u, new Vector3(254.23047f, 122f, -364.9806f), 737) { StopDistance = 7f }; obj200.Steps = list282; reference221 = obj200; - num++; - ref QuestSequence reference222 = ref span271[num]; + ref QuestSequence reference222 = ref span90[5]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -349659,16 +288262,13 @@ public static class AssemblyQuestLoader num = 1; List list284 = new List(num); CollectionsMarshal.SetCount(list284, num); - Span span284 = CollectionsMarshal.AsSpan(list284); - index = 0; - span284[index] = "liza"; + CollectionsMarshal.AsSpan(list284)[0] = "liza"; questRoot30.Author = list284; - index = 8; - List list285 = new List(index); - CollectionsMarshal.SetCount(list285, index); - Span span285 = CollectionsMarshal.AsSpan(list285); - num = 0; - ref QuestSequence reference223 = ref span285[num]; + num = 8; + List list285 = new List(num); + CollectionsMarshal.SetCount(list285, num); + Span span97 = CollectionsMarshal.AsSpan(list285); + ref QuestSequence reference223 = ref span97[0]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -349676,49 +288276,40 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038824u, new Vector3(750.97266f, 69.99991f, 534.78296f), 621); + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038824u, new Vector3(750.97266f, 69.99991f, 534.78296f), 621); obj202.Steps = list286; reference223 = obj202; - num++; - ref QuestSequence reference224 = ref span285[num]; + ref QuestSequence reference224 = ref span97[1]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list287 = new List(index2); - CollectionsMarshal.SetCount(list287, index2); - Span span287 = CollectionsMarshal.AsSpan(list287); - num2 = 0; - ref QuestStep reference225 = ref span287[num2]; + num2 = 1; + List list287 = new List(num2); + CollectionsMarshal.SetCount(list287, num2); + ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list287)[0]; QuestStep obj204 = new QuestStep(EInteractionType.SinglePlayerDuty, 1038825u, new Vector3(742.5803f, 69.99999f, 539.6046f), 621) { Comment = "A Frosty Reception" }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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."; + 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."; singlePlayerDutyOptions.Notes = list288; obj204.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 2; List list289 = new List(num3); CollectionsMarshal.SetCount(list289, num3); - Span span289 = CollectionsMarshal.AsSpan(list289); - index3 = 0; - span289[index3] = new DialogueChoice + Span span98 = CollectionsMarshal.AsSpan(list289); + span98[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef(264u), Answer = new ExcelRef(267u) }; - index3++; - span289[index3] = new DialogueChoice + span98[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef(268u) @@ -349727,13 +288318,11 @@ public static class AssemblyQuestLoader reference225 = obj204; obj203.Steps = list287; reference224 = obj203; - num++; - span285[num] = new QuestSequence + span97[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference226 = ref span285[num]; + ref QuestSequence reference226 = ref span97[3]; QuestSequence obj205 = new QuestSequence { Sequence = 3 @@ -349741,33 +288330,27 @@ public static class AssemblyQuestLoader num2 = 2; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) + Span span99 = CollectionsMarshal.AsSpan(list290); + span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) { StopDistance = 7f, Aetheryte = EAetheryteLocation.GarlemaldCampBrokenGlass }; - index2++; - span290[index2] = new QuestStep(EInteractionType.Interact, 1038826u, new Vector3(-399.31335f, 22.03761f, 454.45935f), 958); + span99[1] = new QuestStep(EInteractionType.Interact, 1038826u, new Vector3(-399.31335f, 22.03761f, 454.45935f), 958); obj205.Steps = list290; reference226 = obj205; - num++; - ref QuestSequence reference227 = ref span285[num]; + ref QuestSequence reference227 = ref span97[4]; QuestSequence obj206 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj206.Steps = list291; reference227 = obj206; - num++; - ref QuestSequence reference228 = ref span285[num]; + ref QuestSequence reference228 = ref span97[5]; QuestSequence obj207 = new QuestSequence { Sequence = 5 @@ -349775,30 +288358,24 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.Interact, 1038835u, new Vector3(-366.17078f, 22f, 514.4884f), 958); + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1038835u, new Vector3(-366.17078f, 22f, 514.4884f), 958); obj207.Steps = list292; reference228 = obj207; - num++; - ref QuestSequence reference229 = ref span285[num]; + ref QuestSequence reference229 = ref span97[6]; QuestSequence obj208 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj208.Steps = list293; reference229 = obj208; - num++; - ref QuestSequence reference230 = ref span285[num]; + ref QuestSequence reference230 = ref span97[7]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -349806,9 +288383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038837u, new Vector3(-353.41425f, 22.717295f, 435.62976f), 958) + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038837u, new Vector3(-353.41425f, 22.717295f, 435.62976f), 958) { StopDistance = 5f }; @@ -349821,33 +288396,27 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; questRoot31.Author = list295; - index = 8; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference231 = ref span296[num]; + num = 8; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span100 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference231 = ref span100[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj210.Steps = list297; reference231 = obj210; - num++; - ref QuestSequence reference232 = ref span296[num]; + ref QuestSequence reference232 = ref span100[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -349855,52 +288424,43 @@ public static class AssemblyQuestLoader num2 = 4; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - 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) + 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) { StopDistance = 5f, DisableNavmesh = true, AetherCurrentId = 2818344u }; - index2++; - span298[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-188.84349f, 20.31553f, 406.13293f), 958) + span101[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-188.84349f, 20.31553f, 406.13293f), 958) { StopDistance = 1f, DisableNavmesh = true, Mount = true }; - index2++; - span298[index2] = new QuestStep(EInteractionType.Interact, 1038840u, new Vector3(-157.06122f, 18.316332f, 364.06494f), 958); + span101[3] = new QuestStep(EInteractionType.Interact, 1038840u, new Vector3(-157.06122f, 18.316332f, 364.06494f), 958); obj211.Steps = list298; reference232 = obj211; - num++; - ref QuestSequence reference233 = ref span296[num]; + ref QuestSequence reference233 = ref span100[2]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 1f, DisableNavmesh = true, Mount = true }; - 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); + 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); obj212.Steps = list299; reference233 = obj212; - num++; - ref QuestSequence reference234 = ref span296[num]; + ref QuestSequence reference234 = ref span100[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -349908,27 +288468,21 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 2012077u, new Vector3(36.942017f, -12.039368f, 362.2339f), 958); + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2012077u, new Vector3(36.942017f, -12.039368f, 362.2339f), 958); obj213.Steps = list300; reference234 = obj213; - num++; - ref QuestSequence reference235 = ref span296[num]; + ref QuestSequence reference235 = ref span100[4]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj214.Steps = list301; reference235 = obj214; - num++; - ref QuestSequence reference236 = ref span296[num]; + ref QuestSequence reference236 = ref span100[5]; QuestSequence obj215 = new QuestSequence { Sequence = 5 @@ -349936,26 +288490,22 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) { Comment = "Follow Girl in Green" }; obj215.Steps = list302; reference236 = obj215; - num++; - ref QuestSequence reference237 = ref span296[num]; + ref QuestSequence reference237 = ref span100[6]; QuestSequence obj216 = new QuestSequence { Sequence = 6 }; - index2 = 13; - List list303 = new List(index2); - CollectionsMarshal.SetCount(list303, index2); - Span span303 = CollectionsMarshal.AsSpan(list303); - num2 = 0; - ref QuestStep reference238 = ref span303[num2]; + num2 = 13; + List list303 = new List(num2); + CollectionsMarshal.SetCount(list303, num2); + Span span103 = CollectionsMarshal.AsSpan(list303); + ref QuestStep reference238 = ref span103[0]; QuestStep obj217 = new QuestStep(EInteractionType.Interact, 2012078u, new Vector3(117.81482f, -16.922302f, 390.46313f), 958) { Comment = "retry point", @@ -349967,111 +288517,96 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list304 = new List(index3); - CollectionsMarshal.SetCount(list304, index3); - Span span304 = CollectionsMarshal.AsSpan(list304); - num3 = 0; - span304[num3] = new DialogueChoice + num3 = 1; + List list304 = new List(num3); + CollectionsMarshal.SetCount(list304, num3); + CollectionsMarshal.AsSpan(list304)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB105_04384_Q1_000_116") }; obj217.DialogueChoices = list304; reference238 = obj217; - num2++; - span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(156.66682f, -18.078814f, 361.58972f), 958) + span103[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(156.66682f, -18.078814f, 361.58972f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(204.82344f, -19.113703f, 373.52936f), 958) + span103[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(204.82344f, -19.113703f, 373.52936f), 958) { DelaySecondsAtStart = 1f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(232.28406f, -16.777779f, 339.1168f), 958) + span103[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(232.28406f, -16.777779f, 339.1168f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.79572f, -13.174152f, 317.53406f), 958) + span103[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(272.79572f, -13.174152f, 317.53406f), 958) { DelaySecondsAtStart = 8f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(287.9112f, -11.811615f, 292.6589f), 958) + span103[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(287.9112f, -11.811615f, 292.6589f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.9364f, -10.539692f, 254.19264f), 958) + span103[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(323.9364f, -10.539692f, 254.19264f), 958) { Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(354.5913f, -5.5008125f, 245.22939f), 958) + span103[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(354.5913f, -5.5008125f, 245.22939f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(354.71964f, -2.2201555f, 233.99152f), 958) + span103[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(354.71964f, -2.2201555f, 233.99152f), 958) { DelaySecondsAtStart = 1f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(382.75116f, 2.7549856f, 226.49387f), 958) + span103[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(382.75116f, 2.7549856f, 226.49387f), 958) { StopDistance = 40f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WalkTo, 1038845u, new Vector3(408.44272f, 4.965298f, 208.22794f), 958) + span103[10] = new QuestStep(EInteractionType.WalkTo, 1038845u, new Vector3(408.44272f, 4.965298f, 208.22794f), 958) { StopDistance = 45f, Mount = false, Sprint = false, IgnoreDistanceToObject = true }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(426.39246f, 5.348692f, 194.86263f), 958) + span103[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038845u, new Vector3(426.39246f, 5.348692f, 194.86263f), 958) { StopDistance = 100f, NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span303[num2] = new QuestStep(EInteractionType.WalkTo, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958) + span103[12] = new QuestStep(EInteractionType.WalkTo, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958) { Mount = false, RestartNavigationIfCancelled = false }; obj216.Steps = list303; reference237 = obj216; - num++; - ref QuestSequence reference239 = ref span296[num]; + ref QuestSequence reference239 = ref span100[7]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -350079,9 +288614,7 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958); + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038846u, new Vector3(555.8098f, 32.30835f, 159.10571f), 958); obj218.Steps = list305; reference239 = obj218; questRoot31.QuestSequence = list296; @@ -350091,33 +288624,27 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "liza"; + CollectionsMarshal.AsSpan(list306)[0] = "liza"; questRoot32.Author = list306; - index = 9; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference240 = ref span307[num]; + num = 9; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span104 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference240 = ref span104[0]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj219.Steps = list308; reference240 = obj219; - num++; - ref QuestSequence reference241 = ref span307[num]; + ref QuestSequence reference241 = ref span104[1]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -350125,30 +288652,24 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.Interact, 1038849u, new Vector3(588.464f, 38.372063f, 216.6018f), 958); + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1038849u, new Vector3(588.464f, 38.372063f, 216.6018f), 958); obj220.Steps = list309; reference241 = obj220; - num++; - ref QuestSequence reference242 = ref span307[num]; + ref QuestSequence reference242 = ref span104[2]; QuestSequence obj221 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj221.Steps = list310; reference242 = obj221; - num++; - ref QuestSequence reference243 = ref span307[num]; + ref QuestSequence reference243 = ref span104[3]; QuestSequence obj222 = new QuestSequence { Sequence = 3 @@ -350156,33 +288677,27 @@ public static class AssemblyQuestLoader num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span311[index2] = new QuestStep(EInteractionType.Interact, 1038851u, new Vector3(591.33276f, 38.372063f, 214.55713f), 958) + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Interact, 1038851u, new Vector3(591.33276f, 38.372063f, 214.55713f), 958) { StopDistance = 5f }; obj222.Steps = list311; reference243 = obj222; - num++; - ref QuestSequence reference244 = ref span307[num]; + ref QuestSequence reference244 = ref span104[4]; QuestSequence obj223 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj223.Steps = list312; reference244 = obj223; - num++; - ref QuestSequence reference245 = ref span307[num]; + ref QuestSequence reference245 = ref span104[5]; QuestSequence obj224 = new QuestSequence { Sequence = 5 @@ -350190,28 +288705,23 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.Interact, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958); + CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1038847u, new Vector3(563.9885f, 32.318867f, 150.04187f), 958); obj224.Steps = list313; reference245 = obj224; - num++; - ref QuestSequence reference246 = ref span307[num]; + ref QuestSequence reference246 = ref span104[6]; QuestSequence obj225 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetherCurrentId = 2818345u }; - num2++; - ref QuestStep reference247 = ref span314[num2]; + ref QuestStep reference247 = ref span105[1]; QuestStep obj226 = new QuestStep(EInteractionType.Combat, 1038853u, new Vector3(156.75586f, -14.955569f, 623.22424f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -350219,17 +288729,14 @@ public static class AssemblyQuestLoader num3 = 2; List list315 = new List(num3); CollectionsMarshal.SetCount(list315, num3); - Span span315 = CollectionsMarshal.AsSpan(list315); - index3 = 0; - span315[index3] = 14085u; - index3++; - span315[index3] = 14086u; + Span span106 = CollectionsMarshal.AsSpan(list315); + span106[0] = 14085u; + span106[1] = 14086u; obj226.KillEnemyDataIds = list315; reference247 = obj226; obj225.Steps = list314; reference246 = obj225; - num++; - ref QuestSequence reference248 = ref span307[num]; + ref QuestSequence reference248 = ref span104[7]; QuestSequence obj227 = new QuestSequence { Sequence = 7 @@ -350237,27 +288744,22 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.Interact, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) { Mount = false, RestartNavigationIfCancelled = false }; obj227.Steps = list316; reference248 = obj227; - num++; - ref QuestSequence reference249 = ref span307[num]; + ref QuestSequence reference249 = ref span104[8]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -350270,16 +288772,13 @@ public static class AssemblyQuestLoader num = 1; List list318 = new List(num); CollectionsMarshal.SetCount(list318, num); - Span span318 = CollectionsMarshal.AsSpan(list318); - index = 0; - span318[index] = "liza"; + CollectionsMarshal.AsSpan(list318)[0] = "liza"; questRoot33.Author = list318; - index = 8; - List list319 = new List(index); - CollectionsMarshal.SetCount(list319, index); - Span span319 = CollectionsMarshal.AsSpan(list319); - num = 0; - ref QuestSequence reference250 = ref span319[num]; + num = 8; + List list319 = new List(num); + CollectionsMarshal.SetCount(list319, num); + Span span107 = CollectionsMarshal.AsSpan(list319); + ref QuestSequence reference250 = ref span107[0]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -350287,30 +288786,24 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span320 = CollectionsMarshal.AsSpan(list320); - index2 = 0; - span320[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) + CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.AcceptQuest, 1037712u, new Vector3(136.5835f, -13.28456f, 650.26306f), 958) { StopDistance = 5f }; obj229.Steps = list320; reference250 = obj229; - num++; - ref QuestSequence reference251 = ref span319[num]; + ref QuestSequence reference251 = ref span107[1]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj230.Steps = list321; reference251 = obj230; - num++; - ref QuestSequence reference252 = ref span319[num]; + ref QuestSequence reference252 = ref span107[2]; QuestSequence obj231 = new QuestSequence { Sequence = 2 @@ -350318,27 +288811,21 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.Interact, 1038858u, new Vector3(596.5818f, 32.318665f, 138.8418f), 958); + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1038858u, new Vector3(596.5818f, 32.318665f, 138.8418f), 958); obj231.Steps = list322; reference252 = obj231; - num++; - ref QuestSequence reference253 = ref span319[num]; + ref QuestSequence reference253 = ref span107[3]; QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj232.Steps = list323; reference253 = obj232; - num++; - ref QuestSequence reference254 = ref span319[num]; + ref QuestSequence reference254 = ref span107[4]; QuestSequence obj233 = new QuestSequence { Sequence = 4 @@ -350346,27 +288833,21 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.Interact, 1038863u, new Vector3(310.71948f, -16.262552f, 357.01526f), 958); + CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1038863u, new Vector3(310.71948f, -16.262552f, 357.01526f), 958); obj233.Steps = list324; reference254 = obj233; - num++; - ref QuestSequence reference255 = ref span319[num]; + ref QuestSequence reference255 = ref span107[5]; QuestSequence obj234 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj234.Steps = list325; reference255 = obj234; - num++; - ref QuestSequence reference256 = ref span319[num]; + ref QuestSequence reference256 = ref span107[6]; QuestSequence obj235 = new QuestSequence { Sequence = 6 @@ -350374,23 +288855,18 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.Interact, 1038865u, new Vector3(583.85596f, -15.842519f, 625.63513f), 958); + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 1038865u, new Vector3(583.85596f, -15.842519f, 625.63513f), 958); obj235.Steps = list326; reference256 = obj235; - num++; - ref QuestSequence reference257 = ref span319[num]; + ref QuestSequence reference257 = ref span107[7]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj236.Steps = list327; reference257 = obj236; questRoot33.QuestSequence = list319; @@ -350400,16 +288876,13 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - Span span328 = CollectionsMarshal.AsSpan(list328); - index = 0; - span328[index] = "liza"; + CollectionsMarshal.AsSpan(list328)[0] = "liza"; questRoot34.Author = list328; - index = 7; - List list329 = new List(index); - CollectionsMarshal.SetCount(list329, index); - Span span329 = CollectionsMarshal.AsSpan(list329); - num = 0; - ref QuestSequence reference258 = ref span329[num]; + num = 7; + List list329 = new List(num); + CollectionsMarshal.SetCount(list329, num); + Span span108 = CollectionsMarshal.AsSpan(list329); + ref QuestSequence reference258 = ref span108[0]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -350417,31 +288890,25 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038868u, new Vector3(605.9204f, 34.7239f, 201.09851f), 958); + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038868u, new Vector3(605.9204f, 34.7239f, 201.09851f), 958); obj237.Steps = list330; reference258 = obj237; - num++; - ref QuestSequence reference259 = ref span329[num]; + ref QuestSequence reference259 = ref span108[1]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj238.Steps = list331; reference259 = obj238; - num++; - ref QuestSequence reference260 = ref span329[num]; + ref QuestSequence reference260 = ref span108[2]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -350449,33 +288916,27 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span332 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.Interact, 1039870u, new Vector3(-358.14453f, 22.554066f, 430.01453f), 958) + CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1039870u, new Vector3(-358.14453f, 22.554066f, 430.01453f), 958) { StopDistance = 5f }; obj239.Steps = list332; reference260 = obj239; - num++; - ref QuestSequence reference261 = ref span329[num]; + ref QuestSequence reference261 = ref span108[3]; QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj240.Steps = list333; reference261 = obj240; - num++; - ref QuestSequence reference262 = ref span329[num]; + ref QuestSequence reference262 = ref span108[4]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -350483,19 +288944,15 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - ref QuestStep reference263 = ref span334[index2]; + ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list334)[0]; QuestStep obj242 = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(-308.36963f, 22.468344f, 365.7129f), 958) { Comment = "Follow Alphinaud and Alisaie" }; - index3 = 1; - List list335 = new List(index3); - CollectionsMarshal.SetCount(list335, index3); - Span span335 = CollectionsMarshal.AsSpan(list335); - num3 = 0; - span335[num3] = new DialogueChoice + num3 = 1; + List list335 = new List(num3); + CollectionsMarshal.SetCount(list335, num3); + CollectionsMarshal.AsSpan(list335)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB108_04387_Q1_000_161") @@ -350504,45 +288961,39 @@ public static class AssemblyQuestLoader reference263 = obj242; obj241.Steps = list334; reference262 = obj241; - num++; - ref QuestSequence reference264 = ref span329[num]; + ref QuestSequence reference264 = ref span108[5]; QuestSequence obj243 = new QuestSequence { Sequence = 5 }; - 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) + 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) { NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span336[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-126.2175f, 0.18809877f, 233.39058f), 958) + span109[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039882u, new Vector3(-126.2175f, 0.18809877f, 233.39058f), 958) { NpcWaitDistance = 5f, Mount = false, Sprint = false }; - num2++; - span336[num2] = new QuestStep(EInteractionType.WalkTo, 1039882u, new Vector3(67.2465f, 0.33215836f, 149.8282f), 958) + span109[2] = new QuestStep(EInteractionType.WalkTo, 1039882u, new Vector3(67.2465f, 0.33215836f, 149.8282f), 958) { Mount = false, Sprint = false }; - num2++; - span336[num2] = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(66.50907f, 0.26087344f, 149.46323f), 958) + span109[3] = new QuestStep(EInteractionType.Interact, 1039880u, new Vector3(66.50907f, 0.26087344f, 149.46323f), 958) { StopDistance = 1f }; obj243.Steps = list336; reference264 = obj243; - num++; - ref QuestSequence reference265 = ref span329[num]; + ref QuestSequence reference265 = ref span108[6]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue @@ -350550,9 +289001,7 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039883u, new Vector3(64.65234f, 0.21427588f, 147.8446f), 958) { StopDistance = 5f }; @@ -350565,33 +289014,27 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - Span span338 = CollectionsMarshal.AsSpan(list338); - index = 0; - span338[index] = "liza"; + CollectionsMarshal.AsSpan(list338)[0] = "liza"; questRoot35.Author = list338; - index = 12; - List list339 = new List(index); - CollectionsMarshal.SetCount(list339, index); - Span span339 = CollectionsMarshal.AsSpan(list339); - num = 0; - ref QuestSequence reference266 = ref span339[num]; + num = 12; + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + Span span110 = CollectionsMarshal.AsSpan(list339); + ref QuestSequence reference266 = ref span110[0]; QuestSequence obj245 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj245.Steps = list340; reference266 = obj245; - num++; - ref QuestSequence reference267 = ref span339[num]; + ref QuestSequence reference267 = ref span110[1]; QuestSequence obj246 = new QuestSequence { Sequence = 1 @@ -350599,9 +289042,7 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - ref QuestStep reference268 = ref span341[index2]; + ref QuestStep reference268 = ref CollectionsMarshal.AsSpan(list341)[0]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(168.04597f, 0.96746624f, 103.04115f), 958) { StopDistance = 1f, @@ -350610,34 +289051,28 @@ public static class AssemblyQuestLoader num3 = 2; List list342 = new List(num3); CollectionsMarshal.SetCount(list342, num3); - Span span342 = CollectionsMarshal.AsSpan(list342); - index3 = 0; - span342[index3] = 14083u; - index3++; - span342[index3] = 14084u; + Span span111 = CollectionsMarshal.AsSpan(list342); + span111[0] = 14083u; + span111[1] = 14084u; obj247.KillEnemyDataIds = list342; reference268 = obj247; obj246.Steps = list341; reference267 = obj246; - num++; - ref QuestSequence reference269 = ref span339[num]; + ref QuestSequence reference269 = ref span110[2]; QuestSequence obj248 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj248.Steps = list343; reference269 = obj248; - num++; - ref QuestSequence reference270 = ref span339[num]; + ref QuestSequence reference270 = ref span110[3]; QuestSequence obj249 = new QuestSequence { Sequence = 3 @@ -350645,43 +289080,35 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - ref QuestStep reference271 = ref span344[index2]; + ref QuestStep reference271 = ref CollectionsMarshal.AsSpan(list344)[0]; QuestStep obj250 = new QuestStep(EInteractionType.Combat, null, new Vector3(301.11044f, 5.506278f, 78.14653f), 958) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list345 = new List(index3); - CollectionsMarshal.SetCount(list345, index3); - Span span345 = CollectionsMarshal.AsSpan(list345); - num3 = 0; - span345[num3] = 14082u; + num3 = 1; + List list345 = new List(num3); + CollectionsMarshal.SetCount(list345, num3); + CollectionsMarshal.AsSpan(list345)[0] = 14082u; obj250.KillEnemyDataIds = list345; reference271 = obj250; obj249.Steps = list344; reference270 = obj249; - num++; - ref QuestSequence reference272 = ref span339[num]; + ref QuestSequence reference272 = ref span110[4]; QuestSequence obj251 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj251.Steps = list346; reference272 = obj251; - num++; - ref QuestSequence reference273 = ref span339[num]; + ref QuestSequence reference273 = ref span110[5]; QuestSequence obj252 = new QuestSequence { Sequence = 5 @@ -350689,23 +289116,18 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.Interact, 1040164u, new Vector3(387.28918f, 3.8935592f, 71.97681f), 958); + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1040164u, new Vector3(387.28918f, 3.8935592f, 71.97681f), 958); obj252.Steps = list347; reference273 = obj252; - num++; - ref QuestSequence reference274 = ref span339[num]; + ref QuestSequence reference274 = ref span110[6]; QuestSequence obj253 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list348 = new List(index2); - CollectionsMarshal.SetCount(list348, index2); - Span span348 = CollectionsMarshal.AsSpan(list348); - num2 = 0; - ref QuestStep reference275 = ref span348[num2]; + num2 = 1; + List list348 = new List(num2); + CollectionsMarshal.SetCount(list348, num2); + ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list348)[0]; QuestStep obj254 = new QuestStep(EInteractionType.Combat, null, new Vector3(527.62775f, 14.620869f, -164.97536f), 958) { StopDistance = 1f, @@ -350714,15 +289136,12 @@ public static class AssemblyQuestLoader num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - Span span349 = CollectionsMarshal.AsSpan(list349); - index3 = 0; - span349[index3] = 14081u; + CollectionsMarshal.AsSpan(list349)[0] = 14081u; obj254.KillEnemyDataIds = list349; reference275 = obj254; obj253.Steps = list348; reference274 = obj253; - num++; - ref QuestSequence reference276 = ref span339[num]; + ref QuestSequence reference276 = ref span110[7]; QuestSequence obj255 = new QuestSequence { Sequence = 7 @@ -350730,30 +289149,24 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.Interact, 1040750u, new Vector3(526.9092f, 14.616225f, -162.85956f), 958) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1040750u, new Vector3(526.9092f, 14.616225f, -162.85956f), 958) { StopDistance = 5f }; obj255.Steps = list350; reference276 = obj255; - num++; - ref QuestSequence reference277 = ref span339[num]; + ref QuestSequence reference277 = ref span110[8]; QuestSequence obj256 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj256.Steps = list351; reference277 = obj256; - num++; - ref QuestSequence reference278 = ref span339[num]; + ref QuestSequence reference278 = ref span110[9]; QuestSequence obj257 = new QuestSequence { Sequence = 9 @@ -350761,27 +289174,21 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - span352[index2] = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); + CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); obj257.Steps = list352; reference278 = obj257; - num++; - ref QuestSequence reference279 = ref span339[num]; + ref QuestSequence reference279 = ref span110[10]; QuestSequence obj258 = new QuestSequence { Sequence = 10 }; - 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); + 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); obj258.Steps = list353; reference279 = obj258; - num++; - ref QuestSequence reference280 = ref span339[num]; + ref QuestSequence reference280 = ref span110[11]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -350789,9 +289196,7 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - Span span354 = CollectionsMarshal.AsSpan(list354); - index2 = 0; - span354[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039892u, new Vector3(547.5393f, -35.24417f, -192.27899f), 958); + CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039892u, new Vector3(547.5393f, -35.24417f, -192.27899f), 958); obj259.Steps = list354; reference280 = obj259; questRoot35.QuestSequence = list339; @@ -350801,30 +289206,24 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - Span span355 = CollectionsMarshal.AsSpan(list355); - index = 0; - span355[index] = "liza"; + CollectionsMarshal.AsSpan(list355)[0] = "liza"; questRoot36.Author = list355; - index = 6; - List list356 = new List(index); - CollectionsMarshal.SetCount(list356, index); - Span span356 = CollectionsMarshal.AsSpan(list356); - num = 0; - ref QuestSequence reference281 = ref span356[num]; + num = 6; + List list356 = new List(num); + CollectionsMarshal.SetCount(list356, num); + Span span112 = CollectionsMarshal.AsSpan(list356); + ref QuestSequence reference281 = ref span112[0]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj260.Steps = list357; reference281 = obj260; - num++; - ref QuestSequence reference282 = ref span356[num]; + ref QuestSequence reference282 = ref span112[1]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -350832,33 +289231,25 @@ public static class AssemblyQuestLoader num2 = 6; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - ref QuestStep reference283 = ref span358[index2]; + Span span113 = CollectionsMarshal.AsSpan(list358); + ref QuestStep reference283 = ref span113[0]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958) { Comment = "Caeso" }; - 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); + 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); obj262.CompletionQuestVariablesFlags = list359; reference283 = obj262; - index2++; - ref QuestStep reference284 = ref span358[index2]; + ref QuestStep reference284 = ref span113[1]; QuestStep obj263 = new QuestStep(EInteractionType.Interact, 1037718u, new Vector3(512.62683f, -36.65f, -160.3266f), 958) { Comment = "Octavia" @@ -350866,48 +289257,34 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - 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); + 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); obj263.CompletionQuestVariablesFlags = list360; reference284 = obj263; - index2++; - ref QuestStep reference285 = ref span358[index2]; + ref QuestStep reference285 = ref span113[2]; QuestStep questStep22 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(502.34732f, -36.65f, -178.38684f), 958); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list361; skipConditions.StepIf = skipStepConditions; questStep22.SkipConditions = skipConditions; reference285 = questStep22; - index2++; - ref QuestStep reference286 = ref span358[index2]; + ref QuestStep reference286 = ref span113[3]; QuestStep obj264 = new QuestStep(EInteractionType.Interact, 1037715u, new Vector3(500.57214f, -36.65f, -178.85101f), 958) { Comment = "Sabinianus" @@ -350915,47 +289292,33 @@ public static class AssemblyQuestLoader num3 = 6; List list362 = new List(num3); CollectionsMarshal.SetCount(list362, num3); - 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); + 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); obj264.CompletionQuestVariablesFlags = list362; reference286 = obj264; - index2++; - ref QuestStep reference287 = ref span358[index2]; + ref QuestStep reference287 = ref span113[4]; QuestStep obj265 = new QuestStep(EInteractionType.Interact, 1037717u, new Vector3(495.35352f, -36.06746f, -205.1576f), 958) { Comment = "Marcellinus" }; - 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); + 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); obj265.CompletionQuestVariablesFlags = list363; reference287 = obj265; - index2++; - ref QuestStep reference288 = ref span358[index2]; + ref QuestStep reference288 = ref span113[5]; QuestStep obj266 = new QuestStep(EInteractionType.Interact, 2012062u, new Vector3(512.1679f, -34.82775f, -201.7169f), 958) { Comment = "Magitek Radio" @@ -350963,39 +289326,29 @@ public static class AssemblyQuestLoader num3 = 6; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - 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); + 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); obj266.CompletionQuestVariablesFlags = list364; reference288 = obj266; obj261.Steps = list358; reference282 = obj261; - num++; - ref QuestSequence reference289 = ref span356[num]; + ref QuestSequence reference289 = ref span112[2]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj267.Steps = list365; reference289 = obj267; - num++; - ref QuestSequence reference290 = ref span356[num]; + ref QuestSequence reference290 = ref span112[3]; QuestSequence obj268 = new QuestSequence { Sequence = 3 @@ -351003,50 +289356,42 @@ public static class AssemblyQuestLoader num2 = 3; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span366 = CollectionsMarshal.AsSpan(list366); - index2 = 0; - span366[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.01605f, -36.61611f, -237.499f), 958) + Span span120 = CollectionsMarshal.AsSpan(list366); + span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(548.01605f, -36.61611f, -237.499f), 958) { Mount = true }; - index2++; - span366[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.66595f, -36.616203f, -244.51854f), 958) + span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.66595f, -36.616203f, -244.51854f), 958) { DisableNavmesh = true }; - index2++; - span366[index2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); + span120[2] = new QuestStep(EInteractionType.Interact, 1037719u, new Vector3(549.7977f, -36.61618f, -260.57837f), 958); obj268.Steps = list366; reference290 = obj268; - num++; - ref QuestSequence reference291 = ref span356[num]; + ref QuestSequence reference291 = ref span112[4]; QuestSequence obj269 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Mount = true }; - num2++; - span367[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.7444f, -36.61608f, -225.64955f), 958) + span121[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(549.7444f, -36.61608f, -225.64955f), 958) { DisableNavmesh = true }; - num2++; - span367[num2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958) + span121[2] = new QuestStep(EInteractionType.Interact, 1039899u, new Vector3(549.6758f, -36.616077f, -216.84601f), 958) { DisableNavmesh = true }; obj269.Steps = list367; reference291 = obj269; - num++; - ref QuestSequence reference292 = ref span356[num]; + ref QuestSequence reference292 = ref span112[5]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -351054,9 +289399,7 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - span368[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); + CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039896u, new Vector3(530.1747f, -36.65f, -175.86023f), 958); obj270.Steps = list368; reference292 = obj270; questRoot36.QuestSequence = list356; @@ -351066,30 +289409,24 @@ public static class AssemblyQuestLoader num = 1; List list369 = new List(num); CollectionsMarshal.SetCount(list369, num); - Span span369 = CollectionsMarshal.AsSpan(list369); - index = 0; - span369[index] = "liza"; + CollectionsMarshal.AsSpan(list369)[0] = "liza"; questRoot37.Author = list369; - index = 7; - List list370 = new List(index); - CollectionsMarshal.SetCount(list370, index); - Span span370 = CollectionsMarshal.AsSpan(list370); - num = 0; - ref QuestSequence reference293 = ref span370[num]; + num = 7; + List list370 = new List(num); + CollectionsMarshal.SetCount(list370, num); + Span span122 = CollectionsMarshal.AsSpan(list370); + ref QuestSequence reference293 = ref span122[0]; QuestSequence obj271 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj271.Steps = list371; reference293 = obj271; - num++; - ref QuestSequence reference294 = ref span370[num]; + ref QuestSequence reference294 = ref span122[1]; QuestSequence obj272 = new QuestSequence { Sequence = 1 @@ -351097,46 +289434,35 @@ public static class AssemblyQuestLoader num2 = 2; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - 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); + 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); obj272.Steps = list372; reference294 = obj272; - num++; - ref QuestSequence reference295 = ref span370[num]; + ref QuestSequence reference295 = ref span122[2]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list373 = new List(index2); - CollectionsMarshal.SetCount(list373, index2); - Span span373 = CollectionsMarshal.AsSpan(list373); - num2 = 0; - ref QuestStep reference296 = ref span373[num2]; + num2 = 5; + List list373 = new List(num2); + CollectionsMarshal.SetCount(list373, num2); + Span span124 = CollectionsMarshal.AsSpan(list373); + ref QuestStep reference296 = ref span124[0]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 2012093u, new Vector3(381.73486f, 15.548889f, -503.2578f), 958); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list374; reference296 = questStep23; - num2++; - ref QuestStep reference297 = ref span373[num2]; + ref QuestStep reference297 = ref span124[1]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 2012094u, new Vector3(381.64343f, 25.986084f, -503.19678f), 958) { Mount = true, @@ -351145,52 +289471,37 @@ public static class AssemblyQuestLoader num3 = 6; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - 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); + 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); obj274.CompletionQuestVariablesFlags = list375; reference297 = obj274; - num2++; - span373[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012005u, new Vector3(382.1621f, 25.894531f, -482.20038f), 958) + span124[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012005u, new Vector3(382.1621f, 25.894531f, -482.20038f), 958) { AetherCurrentId = 2818349u }; - num2++; - ref QuestStep reference298 = ref span373[num2]; + ref QuestStep reference298 = ref span124[3]; QuestStep obj275 = new QuestStep(EInteractionType.Interact, 2012095u, new Vector3(423.1173f, 16.311829f, -570.3365f), 958) { Comment = "Warmachine Wreckage" }; - 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); + 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); obj275.CompletionQuestVariablesFlags = list376; reference298 = obj275; - num2++; - ref QuestStep reference299 = ref span373[num2]; + ref QuestStep reference299 = ref span124[4]; QuestStep obj276 = new QuestStep(EInteractionType.Interact, 2012096u, new Vector3(381.9486f, 16.617004f, -635.33997f), 958) { Comment = "Children's Slide" @@ -351198,25 +289509,18 @@ public static class AssemblyQuestLoader num3 = 6; List list377 = new List(num3); CollectionsMarshal.SetCount(list377, num3); - 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); + 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); obj276.CompletionQuestVariablesFlags = list377; reference299 = obj276; obj273.Steps = list373; reference295 = obj273; - num++; - ref QuestSequence reference300 = ref span370[num]; + ref QuestSequence reference300 = ref span122[3]; QuestSequence obj277 = new QuestSequence { Sequence = 3 @@ -351224,36 +289528,30 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj277.Steps = list378; reference300 = obj277; - num++; - ref QuestSequence reference301 = ref span370[num]; + ref QuestSequence reference301 = ref span122[4]; QuestSequence obj278 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span379[num2] = new QuestStep(EInteractionType.Interact, 2012100u, new Vector3(445.76172f, 15.487854f, -648.61523f), 958) + span129[1] = new QuestStep(EInteractionType.Interact, 2012100u, new Vector3(445.76172f, 15.487854f, -648.61523f), 958) { DisableNavmesh = true }; obj278.Steps = list379; reference301 = obj278; - num++; - ref QuestSequence reference302 = ref span370[num]; + ref QuestSequence reference302 = ref span122[5]; QuestSequence obj279 = new QuestSequence { Sequence = 5 @@ -351261,23 +289559,18 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span380 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - span380[index2] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); + CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.Interact, 1039906u, new Vector3(432.2423f, 15.558166f, -611.90204f), 958); obj279.Steps = list380; reference302 = obj279; - num++; - ref QuestSequence reference303 = ref span370[num]; + ref QuestSequence reference303 = ref span122[6]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj280.Steps = list381; reference303 = obj280; questRoot37.QuestSequence = list370; @@ -351287,16 +289580,13 @@ public static class AssemblyQuestLoader num = 1; List list382 = new List(num); CollectionsMarshal.SetCount(list382, num); - Span span382 = CollectionsMarshal.AsSpan(list382); - index = 0; - span382[index] = "liza"; + CollectionsMarshal.AsSpan(list382)[0] = "liza"; questRoot38.Author = list382; - index = 6; - List list383 = new List(index); - CollectionsMarshal.SetCount(list383, index); - Span span383 = CollectionsMarshal.AsSpan(list383); - num = 0; - ref QuestSequence reference304 = ref span383[num]; + num = 6; + List list383 = new List(num); + CollectionsMarshal.SetCount(list383, num); + Span span130 = CollectionsMarshal.AsSpan(list383); + ref QuestSequence reference304 = ref span130[0]; QuestSequence obj281 = new QuestSequence { Sequence = 0 @@ -351304,30 +289594,24 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - Span span384 = CollectionsMarshal.AsSpan(list384); - index2 = 0; - span384[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038789u, new Vector3(413.13794f, 16.102577f, -578.4848f), 958) + CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038789u, new Vector3(413.13794f, 16.102577f, -578.4848f), 958) { StopDistance = 5f }; obj281.Steps = list384; reference304 = obj281; - num++; - ref QuestSequence reference305 = ref span383[num]; + ref QuestSequence reference305 = ref span130[1]; QuestSequence obj282 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj282.Steps = list385; reference305 = obj282; - num++; - ref QuestSequence reference306 = ref span383[num]; + ref QuestSequence reference306 = ref span130[2]; QuestSequence obj283 = new QuestSequence { Sequence = 2 @@ -351335,30 +289619,24 @@ public static class AssemblyQuestLoader num2 = 1; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - span386[index2] = new QuestStep(EInteractionType.UseItem, 2012101u, new Vector3(270.25244f, 10.452393f, -579.7666f), 958) + CollectionsMarshal.AsSpan(list386)[0] = new QuestStep(EInteractionType.UseItem, 2012101u, new Vector3(270.25244f, 10.452393f, -579.7666f), 958) { ItemId = 2003229u }; obj283.Steps = list386; reference306 = obj283; - num++; - ref QuestSequence reference307 = ref span383[num]; + ref QuestSequence reference307 = ref span130[3]; QuestSequence obj284 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj284.Steps = list387; reference307 = obj284; - num++; - ref QuestSequence reference308 = ref span383[num]; + ref QuestSequence reference308 = ref span130[4]; QuestSequence obj285 = new QuestSequence { Sequence = 4 @@ -351366,23 +289644,18 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span388 = CollectionsMarshal.AsSpan(list388); - index2 = 0; - span388[index2] = new QuestStep(EInteractionType.Interact, 2012106u, new Vector3(339.1621f, 10.788086f, -530.54095f), 958); + CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.Interact, 2012106u, new Vector3(339.1621f, 10.788086f, -530.54095f), 958); obj285.Steps = list388; reference308 = obj285; - num++; - ref QuestSequence reference309 = ref span383[num]; + ref QuestSequence reference309 = ref span130[5]; QuestSequence obj286 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -351395,16 +289668,13 @@ public static class AssemblyQuestLoader num = 1; List list390 = new List(num); CollectionsMarshal.SetCount(list390, num); - Span span390 = CollectionsMarshal.AsSpan(list390); - index = 0; - span390[index] = "liza"; + CollectionsMarshal.AsSpan(list390)[0] = "liza"; questRoot39.Author = list390; - index = 5; - List list391 = new List(index); - CollectionsMarshal.SetCount(list391, index); - Span span391 = CollectionsMarshal.AsSpan(list391); - num = 0; - ref QuestSequence reference310 = ref span391[num]; + num = 5; + List list391 = new List(num); + CollectionsMarshal.SetCount(list391, num); + Span span131 = CollectionsMarshal.AsSpan(list391); + ref QuestSequence reference310 = ref span131[0]; QuestSequence obj287 = new QuestSequence { Sequence = 0 @@ -351412,50 +289682,39 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - Span span392 = CollectionsMarshal.AsSpan(list392); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039913u, new Vector3(526.3904f, -36.65f, -233.87512f), 958) { StopDistance = 5f }; obj287.Steps = list392; reference310 = obj287; - num++; - ref QuestSequence reference311 = ref span391[num]; + ref QuestSequence reference311 = ref span131[1]; QuestSequence obj288 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list393 = new List(index2); - CollectionsMarshal.SetCount(list393, index2); - Span span393 = CollectionsMarshal.AsSpan(list393); - num2 = 0; - ref QuestStep reference312 = ref span393[num2]; + num2 = 2; + List list393 = new List(num2); + CollectionsMarshal.SetCount(list393, num2); + Span span132 = CollectionsMarshal.AsSpan(list393); + ref QuestStep reference312 = ref span132[0]; QuestStep obj289 = new QuestStep(EInteractionType.Interact, 1038790u, new Vector3(495.41467f, -36.06746f, -205.12708f), 958) { Comment = "Marcellinus" }; - 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); + 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); obj289.CompletionQuestVariablesFlags = list394; reference312 = obj289; - num2++; - ref QuestStep reference313 = ref span393[num2]; + ref QuestStep reference313 = ref span132[1]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 1038791u, new Vector3(512.62683f, -36.65f, -160.3266f), 958) { Comment = "Octavia" @@ -351463,25 +289722,18 @@ public static class AssemblyQuestLoader num3 = 6; List list395 = new List(num3); CollectionsMarshal.SetCount(list395, num3); - 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); + 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); obj290.CompletionQuestVariablesFlags = list395; reference313 = obj290; obj288.Steps = list393; reference311 = obj288; - num++; - ref QuestSequence reference314 = ref span391[num]; + ref QuestSequence reference314 = ref span131[2]; QuestSequence obj291 = new QuestSequence { Sequence = 2 @@ -351489,16 +289741,12 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - Span span396 = CollectionsMarshal.AsSpan(list396); - index2 = 0; - ref QuestStep reference315 = ref span396[index2]; + ref QuestStep reference315 = ref CollectionsMarshal.AsSpan(list396)[0]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1039889u, new Vector3(509.4834f, 10.800001f, -422.62915f), 958); - index3 = 1; - List list397 = new List(index3); - CollectionsMarshal.SetCount(list397, index3); - Span span397 = CollectionsMarshal.AsSpan(list397); - num3 = 0; - span397[num3] = new DialogueChoice + num3 = 1; + List list397 = new List(num3); + CollectionsMarshal.SetCount(list397, num3); + CollectionsMarshal.AsSpan(list397)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMB113_04392_Q1_000_031"), @@ -351508,25 +289756,20 @@ public static class AssemblyQuestLoader reference315 = questStep24; obj291.Steps = list396; reference314 = obj291; - num++; - ref QuestSequence reference316 = ref span391[num]; + ref QuestSequence reference316 = ref span131[3]; QuestSequence obj292 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list398 = new List(index2); - CollectionsMarshal.SetCount(list398, index2); - Span span398 = CollectionsMarshal.AsSpan(list398); - num2 = 0; - ref QuestStep reference317 = ref span398[num2]; + num2 = 1; + List list398 = new List(num2); + CollectionsMarshal.SetCount(list398, num2); + ref QuestStep reference317 = ref CollectionsMarshal.AsSpan(list398)[0]; 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); - Span span399 = CollectionsMarshal.AsSpan(list399); - index3 = 0; - span399[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list399)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB113_04392_Q2_000_051") @@ -351535,8 +289778,7 @@ public static class AssemblyQuestLoader reference317 = questStep25; obj292.Steps = list398; reference316 = obj292; - num++; - ref QuestSequence reference318 = ref span391[num]; + ref QuestSequence reference318 = ref span131[4]; QuestSequence obj293 = new QuestSequence { Sequence = byte.MaxValue @@ -351544,9 +289786,7 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); + CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039915u, new Vector3(-399.80164f, 22.143175f, 422.8733f), 958); obj293.Steps = list400; reference318 = obj293; questRoot39.QuestSequence = list391; @@ -351556,30 +289796,24 @@ public static class AssemblyQuestLoader num = 1; List list401 = new List(num); CollectionsMarshal.SetCount(list401, num); - Span span401 = CollectionsMarshal.AsSpan(list401); - index = 0; - span401[index] = "liza"; + CollectionsMarshal.AsSpan(list401)[0] = "liza"; questRoot40.Author = list401; - index = 9; - List list402 = new List(index); - CollectionsMarshal.SetCount(list402, index); - Span span402 = CollectionsMarshal.AsSpan(list402); - num = 0; - ref QuestSequence reference319 = ref span402[num]; + num = 9; + List list402 = new List(num); + CollectionsMarshal.SetCount(list402, num); + Span span135 = CollectionsMarshal.AsSpan(list402); + ref QuestSequence reference319 = ref span135[0]; QuestSequence obj294 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj294.Steps = list403; reference319 = obj294; - num++; - ref QuestSequence reference320 = ref span402[num]; + ref QuestSequence reference320 = ref span135[1]; QuestSequence obj295 = new QuestSequence { Sequence = 1 @@ -351587,32 +289821,26 @@ public static class AssemblyQuestLoader num2 = 2; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span404 = CollectionsMarshal.AsSpan(list404); - index2 = 0; - span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958) + Span span136 = CollectionsMarshal.AsSpan(list404); + span136[0] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958) { PickUpQuestId = new QuestId(4498) }; - index2++; - span404[index2] = new QuestStep(EInteractionType.Interact, 1039917u, new Vector3(495.50623f, 10.800001f, -425.2232f), 958); + span136[1] = new QuestStep(EInteractionType.Interact, 1039917u, new Vector3(495.50623f, 10.800001f, -425.2232f), 958); obj295.Steps = list404; reference320 = obj295; - num++; - ref QuestSequence reference321 = ref span402[num]; + ref QuestSequence reference321 = ref span135[2]; QuestSequence obj296 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj296.Steps = list405; reference321 = obj296; - num++; - ref QuestSequence reference322 = ref span402[num]; + ref QuestSequence reference322 = ref span135[3]; QuestSequence obj297 = new QuestSequence { Sequence = 3 @@ -351620,34 +289848,28 @@ public static class AssemblyQuestLoader num2 = 2; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) + Span span137 = CollectionsMarshal.AsSpan(list406); + span137[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 958) { StopDistance = 7f, DisableNavmesh = true, Aetheryte = EAetheryteLocation.GarlemaldTertium }; - index2++; - span406[index2] = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958); + span137[1] = new QuestStep(EInteractionType.Interact, 1037716u, new Vector3(524.43726f, -36.65f, -186.69415f), 958); obj297.Steps = list406; reference322 = obj297; - num++; - ref QuestSequence reference323 = ref span402[num]; + ref QuestSequence reference323 = ref span135[4]; QuestSequence obj298 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj298.Steps = list407; reference323 = obj298; - num++; - ref QuestSequence reference324 = ref span402[num]; + ref QuestSequence reference324 = ref span135[5]; QuestSequence obj299 = new QuestSequence { Sequence = 5 @@ -351655,23 +289877,19 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - span408[index2] = new QuestStep(EInteractionType.Interact, 1039924u, new Vector3(547.5089f, -35.24417f, -192.73676f), 958); + CollectionsMarshal.AsSpan(list408)[0] = new QuestStep(EInteractionType.Interact, 1039924u, new Vector3(547.5089f, -35.24417f, -192.73676f), 958); obj299.Steps = list408; reference324 = obj299; - num++; - ref QuestSequence reference325 = ref span402[num]; + ref QuestSequence reference325 = ref span135[6]; QuestSequence obj300 = new QuestSequence { Sequence = 6 }; - index2 = 8; - List list409 = new List(index2); - CollectionsMarshal.SetCount(list409, index2); - Span span409 = CollectionsMarshal.AsSpan(list409); - num2 = 0; - ref QuestStep reference326 = ref span409[num2]; + num2 = 8; + List list409 = new List(num2); + CollectionsMarshal.SetCount(list409, num2); + Span span138 = CollectionsMarshal.AsSpan(list409); + ref QuestStep reference326 = ref span138[0]; QuestStep obj301 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(539.89374f, -36.65f, -193.11551f), 958) { DisableNavmesh = true, @@ -351679,22 +289897,16 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list410; skipStepConditions2.NearPosition = new NearPositionCondition { @@ -351705,13 +289917,11 @@ public static class AssemblyQuestLoader skipConditions2.StepIf = skipStepConditions2; obj301.SkipConditions = skipConditions2; reference326 = obj301; - num2++; - span409[num2] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) + span138[1] = new QuestStep(EInteractionType.AcceptQuest, 1040633u, new Vector3(496.94043f, 10.887661f, -418.57025f), 958) { PickUpQuestId = new QuestId(4232) }; - num2++; - ref QuestStep reference327 = ref span409[num2]; + ref QuestStep reference327 = ref span138[2]; QuestStep obj302 = new QuestStep(EInteractionType.Combat, 2012111u, new Vector3(507.042f, 8.8654175f, 64.68298f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -351719,30 +289929,21 @@ public static class AssemblyQuestLoader num3 = 1; List list411 = new List(num3); CollectionsMarshal.SetCount(list411, num3); - Span span411 = CollectionsMarshal.AsSpan(list411); - index3 = 0; - span411[index3] = 14078u; + CollectionsMarshal.AsSpan(list411)[0] = 14078u; obj302.KillEnemyDataIds = list411; - 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); + 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); obj302.CompletionQuestVariablesFlags = list412; reference327 = obj302; - num2++; - ref QuestStep reference328 = ref span409[num2]; + ref QuestStep reference328 = ref span138[3]; QuestStep obj303 = new QuestStep(EInteractionType.Combat, 2012109u, new Vector3(338.49072f, 2.304016f, 94.77368f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -351750,35 +289951,26 @@ public static class AssemblyQuestLoader num3 = 1; List list413 = new List(num3); CollectionsMarshal.SetCount(list413, num3); - Span span413 = CollectionsMarshal.AsSpan(list413); - index3 = 0; - span413[index3] = 14079u; + CollectionsMarshal.AsSpan(list413)[0] = 14079u; obj303.KillEnemyDataIds = list413; obj303.CombatItemUse = new CombatItemUse { ItemId = 2003231u, Condition = ECombatItemUseCondition.Incapacitated }; - 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); + 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); obj303.CompletionQuestVariablesFlags = list414; reference328 = obj303; - num2++; - ref QuestStep reference329 = ref span409[num2]; + ref QuestStep reference329 = ref span138[4]; QuestStep obj304 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(88.57295f, 1.3869624f, 124.77198f), 958) { Comment = "Avoids combat" @@ -351788,46 +289980,32 @@ public static class AssemblyQuestLoader num3 = 6; List list415 = new List(num3); CollectionsMarshal.SetCount(list415, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list415; skipConditions3.StepIf = skipStepConditions3; obj304.SkipConditions = skipConditions3; reference329 = obj304; - num2++; - ref QuestStep reference330 = ref span409[num2]; + ref QuestStep reference330 = ref span138[5]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 2012108u, new Vector3(79.42322f, 0.62561035f, 153.24634f), 958); - 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); + 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); questStep26.CompletionQuestVariablesFlags = list416; reference330 = questStep26; - num2++; - ref QuestStep reference331 = ref span409[num2]; + ref QuestStep reference331 = ref span138[6]; QuestStep obj305 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-20.886705f, -0.47744966f, 353.66968f), 958) { Comment = "Avoids combat" @@ -351837,36 +290015,27 @@ public static class AssemblyQuestLoader num3 = 6; List list417 = new List(num3); CollectionsMarshal.SetCount(list417, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list417; skipConditions4.StepIf = skipStepConditions4; obj305.SkipConditions = skipConditions4; reference331 = obj305; - num2++; - ref QuestStep reference332 = ref span409[num2]; + ref QuestStep reference332 = ref span138[7]; QuestStep obj306 = new QuestStep(EInteractionType.Combat, 2012110u, new Vector3(-25.558899f, -12.954956f, 396.96338f), 958) { DisableNavmesh = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list418 = new List(index3); - CollectionsMarshal.SetCount(list418, index3); - Span span418 = CollectionsMarshal.AsSpan(list418); - num3 = 0; - span418[num3] = 14080u; + num3 = 1; + List list418 = new List(num3); + CollectionsMarshal.SetCount(list418, num3); + CollectionsMarshal.AsSpan(list418)[0] = 14080u; obj306.KillEnemyDataIds = list418; obj306.CombatItemUse = new CombatItemUse { @@ -351876,25 +290045,18 @@ public static class AssemblyQuestLoader num3 = 6; List list419 = new List(num3); CollectionsMarshal.SetCount(list419, num3); - 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); + 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); obj306.CompletionQuestVariablesFlags = list419; reference332 = obj306; obj300.Steps = list409; reference325 = obj300; - num++; - ref QuestSequence reference333 = ref span402[num]; + ref QuestSequence reference333 = ref span135[7]; QuestSequence obj307 = new QuestSequence { Sequence = 7 @@ -351902,23 +290064,18 @@ public static class AssemblyQuestLoader num2 = 1; List list420 = new List(num2); CollectionsMarshal.SetCount(list420, num2); - Span span420 = CollectionsMarshal.AsSpan(list420); - index2 = 0; - span420[index2] = new QuestStep(EInteractionType.Interact, 1039930u, new Vector3(-208.33148f, 15.486622f, 450.88867f), 958); + CollectionsMarshal.AsSpan(list420)[0] = new QuestStep(EInteractionType.Interact, 1039930u, new Vector3(-208.33148f, 15.486622f, 450.88867f), 958); obj307.Steps = list420; reference333 = obj307; - num++; - ref QuestSequence reference334 = ref span402[num]; + ref QuestSequence reference334 = ref span135[8]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj308.Steps = list421; reference334 = obj308; questRoot40.QuestSequence = list402; @@ -351928,16 +290085,13 @@ public static class AssemblyQuestLoader num = 1; List list422 = new List(num); CollectionsMarshal.SetCount(list422, num); - Span span422 = CollectionsMarshal.AsSpan(list422); - index = 0; - span422[index] = "liza"; + CollectionsMarshal.AsSpan(list422)[0] = "liza"; questRoot41.Author = list422; - index = 3; - List list423 = new List(index); - CollectionsMarshal.SetCount(list423, index); - Span span423 = CollectionsMarshal.AsSpan(list423); - num = 0; - ref QuestSequence reference335 = ref span423[num]; + num = 3; + List list423 = new List(num); + CollectionsMarshal.SetCount(list423, num); + Span span146 = CollectionsMarshal.AsSpan(list423); + ref QuestSequence reference335 = ref span146[0]; QuestSequence obj309 = new QuestSequence { Sequence = 0 @@ -351945,47 +290099,39 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span424 = CollectionsMarshal.AsSpan(list424); - index2 = 0; - span424[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); + CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039931u, new Vector3(-351.15588f, 23.742596f, 418.4176f), 958); obj309.Steps = list424; reference335 = obj309; - num++; - ref QuestSequence reference336 = ref span423[num]; + ref QuestSequence reference336 = ref span146[1]; QuestSequence obj310 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(4216) }; - num2++; - ref QuestStep reference337 = ref span425[num2]; + ref QuestStep reference337 = ref span147[1]; 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(); - index3 = 1; - List list426 = new List(index3); - CollectionsMarshal.SetCount(list426, index3); - Span span426 = CollectionsMarshal.AsSpan(list426); - num3 = 0; - span426[num3] = new QuestId(4502); + num3 = 1; + List list426 = new List(num3); + CollectionsMarshal.SetCount(list426, num3); + CollectionsMarshal.AsSpan(list426)[0] = new QuestId(4502); skipAetheryteCondition.QuestsCompleted = list426; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition; obj311.SkipConditions = skipConditions5; obj311.PickUpQuestId = new QuestId(4502); reference337 = obj311; - num2++; - ref QuestStep reference338 = ref span425[num2]; + ref QuestStep reference338 = ref span147[2]; QuestStep obj312 = new QuestStep(EInteractionType.SinglePlayerDuty, 1039932u, new Vector3(-357.99194f, 22f, 488.3954f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -351994,15 +290140,11 @@ public static class AssemblyQuestLoader num3 = 4; List list427 = new List(num3); CollectionsMarshal.SetCount(list427, num3); - 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"; + 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"; singlePlayerDutyOptions2.Notes = list427; obj312.SinglePlayerDutyOptions = singlePlayerDutyOptions2; obj312.SkipConditions = new SkipConditions @@ -352017,18 +290159,16 @@ public static class AssemblyQuestLoader } } }; - index3 = 3; - List list428 = new List(index3); - CollectionsMarshal.SetCount(list428, index3); - Span span428 = CollectionsMarshal.AsSpan(list428); - num3 = 0; - span428[num3] = new DialogueChoice + num3 = 3; + List list428 = new List(num3); + CollectionsMarshal.SetCount(list428, num3); + Span span149 = CollectionsMarshal.AsSpan(list428); + span149[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB115_04394_Q1_000_042") }; - num3++; - span428[num3] = new DialogueChoice + span149[1] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -352036,8 +290176,7 @@ public static class AssemblyQuestLoader Answer = new ExcelRef(247u), SpecialCondition = "NoDutyActions" }; - num3++; - span428[num3] = new DialogueChoice + span149[2] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -352048,8 +290187,7 @@ public static class AssemblyQuestLoader reference338 = obj312; obj310.Steps = list425; reference336 = obj310; - num++; - ref QuestSequence reference339 = ref span423[num]; + ref QuestSequence reference339 = ref span146[2]; QuestSequence obj313 = new QuestSequence { Sequence = byte.MaxValue @@ -352057,9 +290195,7 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - Span span429 = CollectionsMarshal.AsSpan(list429); - index2 = 0; - span429[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039933u, new Vector3(-369.2531f, 22.20836f, 403.76892f), 958) + CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039933u, new Vector3(-369.2531f, 22.20836f, 403.76892f), 958) { StopDistance = 5f }; @@ -352072,30 +290208,24 @@ public static class AssemblyQuestLoader num = 1; List list430 = new List(num); CollectionsMarshal.SetCount(list430, num); - Span span430 = CollectionsMarshal.AsSpan(list430); - index = 0; - span430[index] = "liza"; + CollectionsMarshal.AsSpan(list430)[0] = "liza"; questRoot42.Author = list430; - index = 7; - List list431 = new List(index); - CollectionsMarshal.SetCount(list431, index); - Span span431 = CollectionsMarshal.AsSpan(list431); - num = 0; - ref QuestSequence reference340 = ref span431[num]; + num = 7; + List list431 = new List(num); + CollectionsMarshal.SetCount(list431, num); + Span span150 = CollectionsMarshal.AsSpan(list431); + ref QuestSequence reference340 = ref span150[0]; QuestSequence obj314 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj314.Steps = list432; reference340 = obj314; - num++; - ref QuestSequence reference341 = ref span431[num]; + ref QuestSequence reference341 = ref span150[1]; QuestSequence obj315 = new QuestSequence { Sequence = 1 @@ -352103,32 +290233,26 @@ public static class AssemblyQuestLoader num2 = 1; List list433 = new List(num2); CollectionsMarshal.SetCount(list433, num2); - Span span433 = CollectionsMarshal.AsSpan(list433); - index2 = 0; - span433[index2] = new QuestStep(EInteractionType.Interact, 1039942u, new Vector3(-462.57727f, 20.805109f, -340.68823f), 958); + CollectionsMarshal.AsSpan(list433)[0] = new QuestStep(EInteractionType.Interact, 1039942u, new Vector3(-462.57727f, 20.805109f, -340.68823f), 958); obj315.Steps = list433; reference341 = obj315; - num++; - ref QuestSequence reference342 = ref span431[num]; + ref QuestSequence reference342 = ref span150[2]; QuestSequence obj316 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818350u }; - num2++; - span434[num2] = new QuestStep(EInteractionType.Interact, 1039946u, new Vector3(-476.0052f, 10.889291f, -678.0652f), 958); + span151[1] = new QuestStep(EInteractionType.Interact, 1039946u, new Vector3(-476.0052f, 10.889291f, -678.0652f), 958); obj316.Steps = list434; reference342 = obj316; - num++; - ref QuestSequence reference343 = ref span431[num]; + ref QuestSequence reference343 = ref span150[3]; QuestSequence obj317 = new QuestSequence { Sequence = 3 @@ -352136,38 +290260,31 @@ public static class AssemblyQuestLoader num2 = 2; List list435 = new List(num2); CollectionsMarshal.SetCount(list435, num2); - Span span435 = CollectionsMarshal.AsSpan(list435); - index2 = 0; - ref QuestStep reference344 = ref span435[index2]; + Span span152 = CollectionsMarshal.AsSpan(list435); + ref QuestStep reference344 = ref span152[0]; 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); - Span span436 = CollectionsMarshal.AsSpan(list436); - index3 = 0; - span436[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list436)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB116_04395_Q3_000_206") }; questStep27.DialogueChoices = list436; reference344 = questStep27; - index2++; - span435[index2] = new QuestStep(EInteractionType.Interact, 2012112u, new Vector3(-516.7163f, -190.02063f, -675.288f), 958); + span152[1] = new QuestStep(EInteractionType.Interact, 2012112u, new Vector3(-516.7163f, -190.02063f, -675.288f), 958); obj317.Steps = list435; reference343 = obj317; - num++; - ref QuestSequence reference345 = ref span431[num]; + ref QuestSequence reference345 = ref span150[4]; QuestSequence obj318 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list437 = new List(num2); + CollectionsMarshal.SetCount(list437, num2); + CollectionsMarshal.AsSpan(list437)[0] = new QuestStep(EInteractionType.Duty, null, null, 958) { DutyOptions = new DutyOptions { @@ -352176,13 +290293,11 @@ public static class AssemblyQuestLoader }; obj318.Steps = list437; reference345 = obj318; - num++; - span431[num] = new QuestSequence + span150[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference346 = ref span431[num]; + ref QuestSequence reference346 = ref span150[6]; QuestSequence obj319 = new QuestSequence { Sequence = byte.MaxValue @@ -352190,9 +290305,7 @@ public static class AssemblyQuestLoader num2 = 1; List list438 = new List(num2); CollectionsMarshal.SetCount(list438, num2); - Span span438 = CollectionsMarshal.AsSpan(list438); - index2 = 0; - span438[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039969u, new Vector3(2.029419f, 0f, 33.585083f), 1024) + CollectionsMarshal.AsSpan(list438)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039969u, new Vector3(2.029419f, 0f, 33.585083f), 1024) { StopDistance = 4f }; @@ -352205,30 +290318,24 @@ public static class AssemblyQuestLoader num = 1; List list439 = new List(num); CollectionsMarshal.SetCount(list439, num); - Span span439 = CollectionsMarshal.AsSpan(list439); - index = 0; - span439[index] = "liza"; + CollectionsMarshal.AsSpan(list439)[0] = "liza"; questRoot43.Author = list439; - index = 7; - List list440 = new List(index); - CollectionsMarshal.SetCount(list440, index); - Span span440 = CollectionsMarshal.AsSpan(list440); - num = 0; - ref QuestSequence reference347 = ref span440[num]; + num = 7; + List list440 = new List(num); + CollectionsMarshal.SetCount(list440, num); + Span span153 = CollectionsMarshal.AsSpan(list440); + ref QuestSequence reference347 = ref span153[0]; QuestSequence obj320 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj320.Steps = list441; reference347 = obj320; - num++; - ref QuestSequence reference348 = ref span440[num]; + ref QuestSequence reference348 = ref span153[1]; QuestSequence obj321 = new QuestSequence { Sequence = 1 @@ -352236,16 +290343,12 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - Span span442 = CollectionsMarshal.AsSpan(list442); - index2 = 0; - ref QuestStep reference349 = ref span442[index2]; + ref QuestStep reference349 = ref CollectionsMarshal.AsSpan(list442)[0]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2012116u, new Vector3(5.585561E-05f, 6.62077f, -0.00103838f), 1024); - index3 = 1; - List list443 = new List(index3); - CollectionsMarshal.SetCount(list443, index3); - Span span443 = CollectionsMarshal.AsSpan(list443); - num3 = 0; - span443[num3] = new DialogueChoice + num3 = 1; + List list443 = new List(num3); + CollectionsMarshal.SetCount(list443, num3); + CollectionsMarshal.AsSpan(list443)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB117_04396_Q1_000_060") @@ -352254,30 +290357,26 @@ public static class AssemblyQuestLoader reference349 = questStep28; obj321.Steps = list442; reference348 = obj321; - num++; - span440[num] = new QuestSequence + span153[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference350 = ref span440[num]; + ref QuestSequence reference350 = ref span153[3]; QuestSequence obj322 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DisableNavmesh = true, Mount = true, Aetheryte = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - num2++; - ref QuestStep reference351 = ref span444[num2]; + ref QuestStep reference351 = ref span154[1]; QuestStep obj323 = new QuestStep(EInteractionType.Combat, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -352285,15 +290384,12 @@ public static class AssemblyQuestLoader num3 = 1; List list445 = new List(num3); CollectionsMarshal.SetCount(list445, num3); - Span span445 = CollectionsMarshal.AsSpan(list445); - index3 = 0; - span445[index3] = 14077u; + CollectionsMarshal.AsSpan(list445)[0] = 14077u; obj323.KillEnemyDataIds = list445; reference351 = obj323; obj322.Steps = list444; reference350 = obj322; - num++; - ref QuestSequence reference352 = ref span440[num]; + ref QuestSequence reference352 = ref span153[4]; QuestSequence obj324 = new QuestSequence { Sequence = 4 @@ -352301,27 +290397,21 @@ public static class AssemblyQuestLoader num2 = 1; List list446 = new List(num2); CollectionsMarshal.SetCount(list446, num2); - Span span446 = CollectionsMarshal.AsSpan(list446); - index2 = 0; - span446[index2] = new QuestStep(EInteractionType.Interact, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959); + CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.Interact, 1039977u, new Vector3(-627.49677f, 128.67758f, 632.41016f), 959); obj324.Steps = list446; reference352 = obj324; - num++; - ref QuestSequence reference353 = ref span440[num]; + ref QuestSequence reference353 = ref span153[5]; QuestSequence obj325 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj325.Steps = list447; reference353 = obj325; - num++; - ref QuestSequence reference354 = ref span440[num]; + ref QuestSequence reference354 = ref span153[6]; QuestSequence obj326 = new QuestSequence { Sequence = byte.MaxValue @@ -352329,9 +290419,7 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - Span span448 = CollectionsMarshal.AsSpan(list448); - index2 = 0; - span448[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042050u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); + CollectionsMarshal.AsSpan(list448)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042050u, new Vector3(-383.04724f, 169.00394f, 547.5393f), 959); obj326.Steps = list448; reference354 = obj326; questRoot43.QuestSequence = list440; @@ -352341,30 +290429,24 @@ public static class AssemblyQuestLoader num = 1; List list449 = new List(num); CollectionsMarshal.SetCount(list449, num); - Span span449 = CollectionsMarshal.AsSpan(list449); - index = 0; - span449[index] = "liza"; + CollectionsMarshal.AsSpan(list449)[0] = "liza"; questRoot44.Author = list449; - index = 10; - List list450 = new List(index); - CollectionsMarshal.SetCount(list450, index); - Span span450 = CollectionsMarshal.AsSpan(list450); - num = 0; - ref QuestSequence reference355 = ref span450[num]; + num = 10; + List list450 = new List(num); + CollectionsMarshal.SetCount(list450, num); + Span span155 = CollectionsMarshal.AsSpan(list450); + ref QuestSequence reference355 = ref span155[0]; QuestSequence obj327 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj327.Steps = list451; reference355 = obj327; - num++; - ref QuestSequence reference356 = ref span450[num]; + ref QuestSequence reference356 = ref span155[1]; QuestSequence obj328 = new QuestSequence { Sequence = 1 @@ -352372,37 +290454,30 @@ public static class AssemblyQuestLoader num2 = 3; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span452[index2] = new QuestStep(EInteractionType.Interact, 1039979u, new Vector3(-351.97992f, 103.09564f, 514.4884f), 959) + span156[2] = new QuestStep(EInteractionType.Interact, 1039979u, new Vector3(-351.97992f, 103.09564f, 514.4884f), 959) { DisableNavmesh = true }; obj328.Steps = list452; reference356 = obj328; - num++; - ref QuestSequence reference357 = ref span450[num]; + ref QuestSequence reference357 = ref span155[2]; QuestSequence obj329 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj329.Steps = list453; reference357 = obj329; - num++; - ref QuestSequence reference358 = ref span450[num]; + ref QuestSequence reference358 = ref span155[3]; QuestSequence obj330 = new QuestSequence { Sequence = 3 @@ -352410,27 +290485,21 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - Span span454 = CollectionsMarshal.AsSpan(list454); - index2 = 0; - span454[index2] = new QuestStep(EInteractionType.Interact, 1039981u, new Vector3(-258.56415f, 73.19127f, 455.49695f), 959); + CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.Interact, 1039981u, new Vector3(-258.56415f, 73.19127f, 455.49695f), 959); obj330.Steps = list454; reference358 = obj330; - num++; - ref QuestSequence reference359 = ref span450[num]; + ref QuestSequence reference359 = ref span155[4]; QuestSequence obj331 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj331.Steps = list455; reference359 = obj331; - num++; - ref QuestSequence reference360 = ref span450[num]; + ref QuestSequence reference360 = ref span155[5]; QuestSequence obj332 = new QuestSequence { Sequence = 5 @@ -352438,71 +290507,56 @@ public static class AssemblyQuestLoader num2 = 9; List list456 = new List(num2); CollectionsMarshal.SetCount(list456, num2); - Span span456 = CollectionsMarshal.AsSpan(list456); - index2 = 0; - span456[index2] = new QuestStep(EInteractionType.Interact, 1039985u, new Vector3(-189.92908f, 58.229942f, 419.7605f), 959) + Span span157 = CollectionsMarshal.AsSpan(list456); + span157[0] = new QuestStep(EInteractionType.Interact, 1039985u, new Vector3(-189.92908f, 58.229942f, 419.7605f), 959) { NpcWaitDistance = 5f }; - index2++; - span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-144.128f, 57.30617f, 459.4606f), 959) + span157[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-144.128f, 57.30617f, 459.4606f), 959) { NpcWaitDistance = 1f, Mount = true }; - index2++; - span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-67.99789f, 52.72147f, 481.2938f), 959) + span157[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(-67.99789f, 52.72147f, 481.2938f), 959) { NpcWaitDistance = 1f }; - 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) + 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) { NpcWaitDistance = 1f }; - index2++; - span456[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(104.9116f, 41.95557f, 455.229f), 959) + span157[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039985u, new Vector3(104.9116f, 41.95557f, 455.229f), 959) { NpcWaitDistance = 1f }; - 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); + 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); obj332.Steps = list456; reference360 = obj332; - num++; - ref QuestSequence reference361 = ref span450[num]; + ref QuestSequence reference361 = ref span155[6]; QuestSequence obj333 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list457 = new List(index2); - CollectionsMarshal.SetCount(list457, index2); - Span span457 = CollectionsMarshal.AsSpan(list457); - num2 = 0; - ref QuestStep reference362 = ref span457[num2]; + num2 = 1; + List list457 = new List(num2); + CollectionsMarshal.SetCount(list457, num2); + ref QuestStep reference362 = ref CollectionsMarshal.AsSpan(list457)[0]; QuestStep obj334 = new QuestStep(EInteractionType.Combat, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list458 = new List(index3); - CollectionsMarshal.SetCount(list458, index3); - Span span458 = CollectionsMarshal.AsSpan(list458); - num3 = 0; - span458[num3] = 14076u; + num3 = 1; + List list458 = new List(num3); + CollectionsMarshal.SetCount(list458, num3); + CollectionsMarshal.AsSpan(list458)[0] = 14076u; obj334.KillEnemyDataIds = list458; reference362 = obj334; obj333.Steps = list457; reference361 = obj333; - num++; - ref QuestSequence reference363 = ref span450[num]; + ref QuestSequence reference363 = ref span155[7]; QuestSequence obj335 = new QuestSequence { Sequence = 7 @@ -352510,44 +290564,35 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - Span span459 = CollectionsMarshal.AsSpan(list459); - index2 = 0; - span459[index2] = new QuestStep(EInteractionType.Interact, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959); + CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1039983u, new Vector3(20.187622f, 59.184967f, 523.24695f), 959); obj335.Steps = list459; reference363 = obj335; - num++; - ref QuestSequence reference364 = ref span450[num]; + ref QuestSequence reference364 = ref span155[8]; QuestSequence obj336 = new QuestSequence { Sequence = 8 }; - 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) + 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) { NpcWaitDistance = 1f }; - num2++; - span460[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(193.26242f, 105.96505f, 674.10205f), 959) + span158[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(193.26242f, 105.96505f, 674.10205f), 959) { NpcWaitDistance = 1f }; - num2++; - span460[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(216.4619f, 74.850296f, 526.7501f), 959) + span158[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1039986u, new Vector3(216.4619f, 74.850296f, 526.7501f), 959) { NpcWaitDistance = 1f }; - num2++; - span460[num2] = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); + span158[4] = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); obj336.Steps = list460; reference364 = obj336; - num++; - ref QuestSequence reference365 = ref span450[num]; + ref QuestSequence reference365 = ref span155[9]; QuestSequence obj337 = new QuestSequence { Sequence = byte.MaxValue @@ -352555,9 +290600,7 @@ public static class AssemblyQuestLoader num2 = 1; List list461 = new List(num2); CollectionsMarshal.SetCount(list461, num2); - Span span461 = CollectionsMarshal.AsSpan(list461); - index2 = 0; - span461[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039984u, new Vector3(183.39807f, 58.834427f, 427.29822f), 959); + CollectionsMarshal.AsSpan(list461)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039984u, new Vector3(183.39807f, 58.834427f, 427.29822f), 959); obj337.Steps = list461; reference365 = obj337; questRoot44.QuestSequence = list450; @@ -352567,33 +290610,26 @@ public static class AssemblyQuestLoader num = 1; List list462 = new List(num); CollectionsMarshal.SetCount(list462, num); - Span span462 = CollectionsMarshal.AsSpan(list462); - index = 0; - span462[index] = "liza"; + CollectionsMarshal.AsSpan(list462)[0] = "liza"; questRoot45.Author = list462; - index = 5; - List list463 = new List(index); - CollectionsMarshal.SetCount(list463, index); - Span span463 = CollectionsMarshal.AsSpan(list463); - num = 0; - ref QuestSequence reference366 = ref span463[num]; + num = 5; + List list463 = new List(num); + CollectionsMarshal.SetCount(list463, num); + Span span159 = CollectionsMarshal.AsSpan(list463); + ref QuestSequence reference366 = ref span159[0]; QuestSequence obj338 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list464 = new List(num2); + CollectionsMarshal.SetCount(list464, num2); + ref QuestStep reference367 = ref CollectionsMarshal.AsSpan(list464)[0]; 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); - Span span465 = CollectionsMarshal.AsSpan(list465); - index3 = 0; - span465[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list465)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMB119_04398_Q1_000_001"), @@ -352603,8 +290639,7 @@ public static class AssemblyQuestLoader reference367 = questStep29; obj338.Steps = list464; reference366 = obj338; - num++; - ref QuestSequence reference368 = ref span463[num]; + ref QuestSequence reference368 = ref span159[1]; QuestSequence obj339 = new QuestSequence { Sequence = 1 @@ -352612,16 +290647,12 @@ public static class AssemblyQuestLoader num2 = 1; List list466 = new List(num2); CollectionsMarshal.SetCount(list466, num2); - Span span466 = CollectionsMarshal.AsSpan(list466); - index2 = 0; - ref QuestStep reference369 = ref span466[index2]; + ref QuestStep reference369 = ref CollectionsMarshal.AsSpan(list466)[0]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1039987u, new Vector3(189.25769f, 63.36112f, 467.46008f), 959); - index3 = 1; - List list467 = new List(index3); - CollectionsMarshal.SetCount(list467, index3); - Span span467 = CollectionsMarshal.AsSpan(list467); - num3 = 0; - span467[num3] = new DialogueChoice + num3 = 1; + List list467 = new List(num3); + CollectionsMarshal.SetCount(list467, num3); + CollectionsMarshal.AsSpan(list467)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMB119_04398_Q2_000_010") @@ -352630,18 +290661,15 @@ public static class AssemblyQuestLoader reference369 = questStep30; obj339.Steps = list466; reference368 = obj339; - num++; - ref QuestSequence reference370 = ref span463[num]; + ref QuestSequence reference370 = ref span159[2]; QuestSequence obj340 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list468 = new List(num2); + CollectionsMarshal.SetCount(list468, num2); + CollectionsMarshal.AsSpan(list468)[0] = new QuestStep(EInteractionType.Duty, null, null, 1028) { Comment = "The Dark Inside", DutyOptions = new DutyOptions @@ -352651,13 +290679,11 @@ public static class AssemblyQuestLoader }; obj340.Steps = list468; reference370 = obj340; - num++; - span463[num] = new QuestSequence + span159[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference371 = ref span463[num]; + ref QuestSequence reference371 = ref span159[4]; QuestSequence obj341 = new QuestSequence { Sequence = byte.MaxValue @@ -352665,9 +290691,7 @@ public static class AssemblyQuestLoader num2 = 1; List list469 = new List(num2); CollectionsMarshal.SetCount(list469, num2); - Span span469 = CollectionsMarshal.AsSpan(list469); - index2 = 0; - span469[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) + CollectionsMarshal.AsSpan(list469)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039989u, new Vector3(-279.95728f, 76.14732f, 480.91858f), 959) { StopDistance = 5f }; @@ -352680,33 +290704,27 @@ public static class AssemblyQuestLoader num = 1; List list470 = new List(num); CollectionsMarshal.SetCount(list470, num); - Span span470 = CollectionsMarshal.AsSpan(list470); - index = 0; - span470[index] = "liza"; + CollectionsMarshal.AsSpan(list470)[0] = "liza"; questRoot46.Author = list470; - index = 7; - List list471 = new List(index); - CollectionsMarshal.SetCount(list471, index); - Span span471 = CollectionsMarshal.AsSpan(list471); - num = 0; - ref QuestSequence reference372 = ref span471[num]; + num = 7; + List list471 = new List(num); + CollectionsMarshal.SetCount(list471, num); + Span span160 = CollectionsMarshal.AsSpan(list471); + ref QuestSequence reference372 = ref span160[0]; QuestSequence obj342 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj342.Steps = list472; reference372 = obj342; - num++; - ref QuestSequence reference373 = ref span471[num]; + ref QuestSequence reference373 = ref span160[1]; QuestSequence obj343 = new QuestSequence { Sequence = 1 @@ -352714,31 +290732,25 @@ public static class AssemblyQuestLoader num2 = 1; List list473 = new List(num2); CollectionsMarshal.SetCount(list473, num2); - Span span473 = CollectionsMarshal.AsSpan(list473); - index2 = 0; - span473[index2] = new QuestStep(EInteractionType.Interact, 1038872u, new Vector3(-434.13446f, 136.0188f, 570.1228f), 959); + CollectionsMarshal.AsSpan(list473)[0] = new QuestStep(EInteractionType.Interact, 1038872u, new Vector3(-434.13446f, 136.0188f, 570.1228f), 959); obj343.Steps = list473; reference373 = obj343; - num++; - ref QuestSequence reference374 = ref span471[num]; + ref QuestSequence reference374 = ref span160[2]; QuestSequence obj344 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj344.Steps = list474; reference374 = obj344; - num++; - ref QuestSequence reference375 = ref span471[num]; + ref QuestSequence reference375 = ref span160[3]; QuestSequence obj345 = new QuestSequence { Sequence = 3 @@ -352746,35 +290758,29 @@ public static class AssemblyQuestLoader num2 = 1; List list475 = new List(num2); CollectionsMarshal.SetCount(list475, num2); - Span span475 = CollectionsMarshal.AsSpan(list475); - index2 = 0; - span475[index2] = new QuestStep(EInteractionType.Interact, 2012174u, new Vector3(-446.09753f, 163.31726f, 593.0419f), 959) + CollectionsMarshal.AsSpan(list475)[0] = new QuestStep(EInteractionType.Interact, 2012174u, new Vector3(-446.09753f, 163.31726f, 593.0419f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj345.Steps = list475; reference375 = obj345; - num++; - ref QuestSequence reference376 = ref span471[num]; + ref QuestSequence reference376 = ref span160[4]; QuestSequence obj346 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj346.Steps = list476; reference376 = obj346; - num++; - ref QuestSequence reference377 = ref span471[num]; + ref QuestSequence reference377 = ref span160[5]; QuestSequence obj347 = new QuestSequence { Sequence = 5 @@ -352782,27 +290788,22 @@ public static class AssemblyQuestLoader num2 = 1; List list477 = new List(num2); CollectionsMarshal.SetCount(list477, num2); - Span span477 = CollectionsMarshal.AsSpan(list477); - index2 = 0; - span477[index2] = new QuestStep(EInteractionType.Interact, 2012176u, new Vector3(-399.588f, 147.4784f, 566.1554f), 959) + CollectionsMarshal.AsSpan(list477)[0] = new QuestStep(EInteractionType.Interact, 2012176u, new Vector3(-399.588f, 147.4784f, 566.1554f), 959) { StopDistance = 5f, IgnoreDistanceToObject = true }; obj347.Steps = list477; reference377 = obj347; - num++; - ref QuestSequence reference378 = ref span471[num]; + ref QuestSequence reference378 = ref span160[6]; QuestSequence obj348 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj348.Steps = list478; reference378 = obj348; questRoot46.QuestSequence = list471; @@ -352817,17 +290818,14 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -352835,45 +290833,35 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038880u, new Vector3(-382.2843f, 169.00394f, 549.6758f), 959) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038880u, new Vector3(-382.2843f, 169.00394f, 549.6758f), 959) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence2 = questSequence; - 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) + 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) { DisableNavmesh = true, Mount = true }; - 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); + 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); questSequence2.Steps = list4; reference2 = questSequence; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj2 = new QuestSequence { Sequence = 2 @@ -352881,27 +290869,21 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1038888u, new Vector3(446.95203f, 69.15293f, 540.032f), 959); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1038888u, new Vector3(446.95203f, 69.15293f, 540.032f), 959); obj2.Steps = list5; reference3 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj3 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj3.Steps = list6; reference4 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj4 = new QuestSequence { Sequence = 4 @@ -352909,24 +290891,19 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1040516u, new Vector3(205.52368f, 59.358307f, 405.87463f), 959); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1040516u, new Vector3(205.52368f, 59.358307f, 405.87463f), 959); obj4.Steps = list7; reference5 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence3 = questSequence; - index2 = 1; - list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span8 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference7 = ref span8[num2]; + num2 = 1; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference7 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1040518u, new Vector3(205.06592f, 59.911327f, 411.42883f), 959) { StopDistance = 5f @@ -352934,9 +290911,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span9 = CollectionsMarshal.AsSpan(list8); - int index3 = 0; - span9[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list8)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC102_04400_Q1_000_151") @@ -352945,8 +290920,7 @@ public static class AssemblyQuestLoader reference7 = obj5; questSequence3.Steps = list4; reference6 = questSequence; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[6]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -352954,9 +290928,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span10 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038894u, new Vector3(2.670288f, -49.8925f, -366.0487f), 959); obj6.Steps = list9; reference8 = obj6; questRoot3.QuestSequence = list2; @@ -352967,31 +290939,25 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span11 = CollectionsMarshal.AsSpan(list10); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list10)[0] = "liza"; questRoot4.Author = list10; QuestRoot questRoot5 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span12 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span3 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference9 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj7.Steps = list11; reference9 = obj7; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span3[1]; questSequence = new QuestSequence { Sequence = 1 @@ -353000,44 +290966,37 @@ public static class AssemblyQuestLoader num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span14 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.922524f, -105.8306f, -397.17743f), 959) + Span span4 = CollectionsMarshal.AsSpan(list4); + span4[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(11.922524f, -105.8306f, -397.17743f), 959) { DisableNavmesh = true, Mount = true }; - index2++; - span14[index2] = new QuestStep(EInteractionType.Interact, 1038897u, new Vector3(30.838379f, -132.94641f, -435.47723f), 959); + span4[1] = new QuestStep(EInteractionType.Interact, 1038897u, new Vector3(30.838379f, -132.94641f, -435.47723f), 959); questSequence4.Steps = list4; reference10 = questSequence; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span3[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence5 = questSequence; - 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) + num2 = 3; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span5 = CollectionsMarshal.AsSpan(list4); + span5[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 959) { Aetheryte = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - 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) + 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) { DisableNavmesh = true }; questSequence5.Steps = list4; reference11 = questSequence; - num++; - ref QuestSequence reference12 = ref span12[num]; + ref QuestSequence reference12 = ref span3[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -353045,33 +291004,26 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span16 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1038902u, new Vector3(-124.864624f, -132.87448f, -471.91577f), 959); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1038902u, new Vector3(-124.864624f, -132.87448f, -471.91577f), 959); obj8.Steps = list12; reference12 = obj8; - num++; - ref QuestSequence reference13 = ref span12[num]; + ref QuestSequence reference13 = ref span3[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; QuestSequence questSequence6 = questSequence; - 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) + 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) { DisableNavmesh = true }; - num2++; - span17[num2] = new QuestStep(EInteractionType.CompleteQuest, 1038903u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); + span6[3] = new QuestStep(EInteractionType.CompleteQuest, 1038903u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); questSequence6.Steps = list4; reference13 = questSequence; questRoot5.QuestSequence = list2; @@ -353082,17 +291034,14 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span18 = CollectionsMarshal.AsSpan(list13); - index = 0; - span18[index] = "liza"; + CollectionsMarshal.AsSpan(list13)[0] = "liza"; questRoot6.Author = list13; QuestRoot questRoot7 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span19 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference14 = ref span19[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span7 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference14 = ref span7[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -353100,36 +291049,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span20 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959); obj9.Steps = list14; reference14 = obj9; - num++; - ref QuestSequence reference15 = ref span19[num]; + ref QuestSequence reference15 = ref span7[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence7 = questSequence; - 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) + 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) { AetherCurrentId = 2818362u }; - num2++; - span21[num2] = new QuestStep(EInteractionType.Interact, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) + span8[1] = new QuestStep(EInteractionType.Interact, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; questSequence7.Steps = list4; reference15 = questSequence; - num++; - ref QuestSequence reference16 = ref span19[num]; + ref QuestSequence reference16 = ref span7[2]; questSequence = new QuestSequence { Sequence = 2 @@ -353138,9 +291081,8 @@ public static class AssemblyQuestLoader num2 = 9; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span22 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-451.1233f, -168f, -623.01324f), 959) + Span span9 = CollectionsMarshal.AsSpan(list4); + span9[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-451.1233f, -168f, -623.01324f), 959) { StopDistance = 1f, Mount = false, @@ -353150,8 +291092,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-448.59048f, -166.16438f, -628.15826f) } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-448.59048f, -166.16438f, -628.15826f), 959) + span9[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-448.59048f, -166.16438f, -628.15826f), 959) { Comment = "Platform 2", JumpDestination = new JumpDestination @@ -353159,8 +291100,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-446.64853f, -164.36438f, -633.6268f) } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.64853f, -164.36438f, -633.6268f), 959) + span9[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.64853f, -164.36438f, -633.6268f), 959) { Comment = "Platform 3", JumpDestination = new JumpDestination @@ -353168,8 +291108,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-445.29623f, -162.56439f, -639.4988f) } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.29623f, -162.56439f, -639.4988f), 959) + span9[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.29623f, -162.56439f, -639.4988f), 959) { Comment = "Platform 4", JumpDestination = new JumpDestination @@ -353178,8 +291117,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.7f } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-444.56757f, -160.76439f, -644.749f), 959) + span9[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-444.56757f, -160.76439f, -644.749f), 959) { Comment = "Platform 5", JumpDestination = new JumpDestination @@ -353187,8 +291125,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-445.23477f, -158.96439f, -651.54956f) } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.23477f, -158.96439f, -651.54956f), 959) + span9[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-445.23477f, -158.96439f, -651.54956f), 959) { Comment = "Platform 6", JumpDestination = new JumpDestination @@ -353197,8 +291134,7 @@ public static class AssemblyQuestLoader DelaySeconds = 1f } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.45673f, -157.16441f, -658.25415f), 959) + span9[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-446.45673f, -157.16441f, -658.25415f), 959) { Comment = "Platform 7", JumpDestination = new JumpDestination @@ -353206,8 +291142,7 @@ public static class AssemblyQuestLoader Position = new Vector3(-449.8167f, -155.36438f, -663.3387f) } }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-449.8167f, -155.36438f, -663.3387f), 959) + span9[7] = new QuestStep(EInteractionType.Jump, null, new Vector3(-449.8167f, -155.36438f, -663.3387f), 959) { Comment = "Jump onto the big thing", JumpDestination = new JumpDestination @@ -353215,26 +291150,23 @@ public static class AssemblyQuestLoader Position = new Vector3(-458.69357f, -155.56349f, -661.287f) } }; - index2++; - ref QuestStep reference17 = ref span22[index2]; + ref QuestStep reference17 = ref span9[8]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2012178u, new Vector3(-486.59497f, -154.37555f, -689.26526f), 959) { StopDistance = 3f }; QuestStep questStep2 = questStep; - index3 = 2; - List list15 = new List(index3); - CollectionsMarshal.SetCount(list15, index3); - Span span23 = CollectionsMarshal.AsSpan(list15); - num3 = 0; - span23[num3] = new DialogueChoice + num3 = 2; + List list15 = new List(num3); + CollectionsMarshal.SetCount(list15, num3); + Span span10 = CollectionsMarshal.AsSpan(list15); + span10[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC104_04402_Q1_000_071"), Answer = new ExcelRef("TEXT_AKTKMC104_04402_A1_000_074") }; - num3++; - span23[num3] = new DialogueChoice + span10[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC104_04402_Q2_000_081") @@ -353243,24 +291175,21 @@ public static class AssemblyQuestLoader reference17 = questStep; questSequence8.Steps = list4; reference16 = questSequence; - num++; - ref QuestSequence reference18 = ref span19[num]; + ref QuestSequence reference18 = ref span7[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence9 = questSequence; - 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) + 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) { AetherCurrentId = 2818360u }; - num2++; - span24[num2] = new QuestStep(EInteractionType.Jump, 1038912u, new Vector3(-462.06528f, -155.5629f, -625.5277f), 959) + span11[1] = new QuestStep(EInteractionType.Jump, 1038912u, new Vector3(-462.06528f, -155.5629f, -625.5277f), 959) { JumpDestination = new JumpDestination { @@ -353268,15 +291197,13 @@ public static class AssemblyQuestLoader StopDistance = 8f } }; - num2++; - span24[num2] = new QuestStep(EInteractionType.Interact, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) + span11[2] = new QuestStep(EInteractionType.Interact, 1038912u, new Vector3(-455.40552f, -168f, -620.05035f), 959) { DelaySecondsAtStart = 3f }; questSequence9.Steps = list4; reference18 = questSequence; - num++; - ref QuestSequence reference19 = ref span19[num]; + ref QuestSequence reference19 = ref span7[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -353284,26 +291211,21 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span25 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-455.40552f, -168f, -620.05035f), 959) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.UseItem, null, new Vector3(-455.40552f, -168f, -620.05035f), 959) { ItemId = 2003236u }; obj10.Steps = list16; reference19 = obj10; - num++; - ref QuestSequence reference20 = ref span19[num]; + ref QuestSequence reference20 = ref span7[5]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DelaySecondsAtStart = 2f }; @@ -353317,17 +291239,14 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span27 = CollectionsMarshal.AsSpan(list18); - index = 0; - span27[index] = "liza"; + CollectionsMarshal.AsSpan(list18)[0] = "liza"; questRoot8.Author = list18; QuestRoot questRoot9 = questRoot; - index = 8; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span28 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference21 = ref span28[num]; + num = 8; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span12 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference21 = ref span12[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -353335,30 +291254,24 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span29 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038908u, new Vector3(-456.10742f, -168f, -618.7686f), 959) { StopDistance = 5f }; obj12.Steps = list19; reference21 = obj12; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span12[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj13.Steps = list20; reference22 = obj13; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span12[2]; questSequence = new QuestSequence { Sequence = 2 @@ -353367,11 +291280,9 @@ public static class AssemblyQuestLoader num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + 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) { StopDistance = 1f, Mount = false, @@ -353383,8 +291294,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.36722f, -160.81464f, -258.94827f), 959) + span13[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.36722f, -160.81464f, -258.94827f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -353395,8 +291305,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.09705f, -159.31464f, -262.08554f), 959) + span13[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.09705f, -159.31464f, -262.08554f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -353407,8 +291316,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.5647f, -157.81464f, -265.16046f), 959) + span13[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-357.5647f, -157.81464f, -265.16046f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -353419,8 +291327,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-358.55756f, -156.31464f, -268.07187f), 959) + span13[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-358.55756f, -156.31464f, -268.07187f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -353431,8 +291338,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span31[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-360.63412f, -154.81462f, -270.27368f), 959) + span13[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-360.63412f, -154.81462f, -270.27368f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -353443,8 +291349,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - ref QuestStep reference24 = ref span31[index2]; + ref QuestStep reference24 = ref span13[7]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 1038923u, new Vector3(-376.27222f, -151.67168f, -267.90265f), 959) { StopDistance = 7f @@ -353452,9 +291357,7 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span32 = CollectionsMarshal.AsSpan(list21); - index3 = 0; - span32[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_Q1_000_073"), @@ -353464,24 +291367,21 @@ public static class AssemblyQuestLoader reference24 = obj14; questSequence10.Steps = list4; reference23 = questSequence; - num++; - ref QuestSequence reference25 = ref span28[num]; + ref QuestSequence reference25 = ref span12[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence11 = questSequence; - 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) + 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) { StopDistance = 1f }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) + span14[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.92316f, -161.84383f, -362.42844f), 959) { StopDistance = 1f, Mount = false, @@ -353493,8 +291393,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-333.76025f, -160.81464f, -359.79532f), 959) + span14[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-333.76025f, -160.81464f, -359.79532f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -353505,8 +291404,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.20718f, -159.31462f, -358.21957f), 959) + span14[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-336.20718f, -159.31462f, -358.21957f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -353517,8 +291415,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.62347f, -157.81464f, -356.00974f), 959) + span14[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-338.62347f, -157.81464f, -356.00974f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -353529,8 +291426,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-340.34265f, -156.31462f, -353.9171f), 959) + span14[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-340.34265f, -156.31462f, -353.9171f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -353541,8 +291437,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.2541f, -154.81462f, -350.6315f), 959) + span14[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-341.2541f, -154.81462f, -350.6315f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -353553,23 +291448,19 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - num2++; - span33[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.69525f, -152.67764f, -344.93723f), 959) + span14[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-337.69525f, -152.67764f, -344.93723f), 959) { DisableNavmesh = true }; - num2++; - ref QuestStep reference26 = ref span33[num2]; + ref QuestStep reference26 = ref span14[8]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1038924u, new Vector3(-329.97632f, -151.67169f, -333.76062f), 959) { StopDistance = 5f }; - index3 = 1; - List list22 = new List(index3); - CollectionsMarshal.SetCount(list22, index3); - Span span34 = CollectionsMarshal.AsSpan(list22); - num3 = 0; - span34[num3] = new DialogueChoice + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_Q1_000_118"), @@ -353579,8 +291470,7 @@ public static class AssemblyQuestLoader reference26 = obj15; questSequence11.Steps = list4; reference25 = questSequence; - num++; - ref QuestSequence reference27 = ref span28[num]; + ref QuestSequence reference27 = ref span12[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -353588,27 +291478,21 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span35 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.Interact, 1038919u, new Vector3(-518.36426f, -161.84549f, -281.94098f), 959); obj16.Steps = list23; reference27 = obj16; - num++; - ref QuestSequence reference28 = ref span28[num]; + ref QuestSequence reference28 = ref span12[5]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj17.Steps = list24; reference28 = obj17; - num++; - ref QuestSequence reference29 = ref span28[num]; + ref QuestSequence reference29 = ref span12[6]; questSequence = new QuestSequence { Sequence = 6 @@ -353617,9 +291501,7 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span37 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference30 = ref span37[index2]; + ref QuestStep reference30 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1038926u, new Vector3(-28.244446f, -131.29884f, -585.7481f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow @@ -353627,9 +291509,7 @@ public static class AssemblyQuestLoader num3 = 1; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span38 = CollectionsMarshal.AsSpan(list25); - index3 = 0; - span38[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC105_04403_SYSTEM_000_215") @@ -353638,18 +291518,15 @@ public static class AssemblyQuestLoader reference30 = obj18; questSequence12.Steps = list4; reference29 = questSequence; - num++; - ref QuestSequence reference31 = ref span28[num]; + ref QuestSequence reference31 = ref span12[7]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj19.Steps = list26; reference31 = obj19; questRoot9.QuestSequence = list2; @@ -353660,17 +291537,14 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span40 = CollectionsMarshal.AsSpan(list27); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list27)[0] = "liza"; questRoot10.Author = list27; QuestRoot questRoot11 = questRoot; - index = 11; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span41 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference32 = ref span41[num]; + num = 11; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span15 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference32 = ref span15[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -353678,55 +291552,46 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span42 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038927u, new Vector3(2.090454f, -49.589596f, -699.733f), 959); obj20.Steps = list28; reference32 = obj20; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span15[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence13 = questSequence; - index2 = 3; - list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span43 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference34 = ref span43[num2]; + num2 = 3; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span16 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference34 = ref span16[0]; 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(); - index3 = 1; - List list29 = new List(index3); - CollectionsMarshal.SetCount(list29, index3); - Span span44 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - span44[num3] = new QuestId(4240); + num3 = 1; + List list29 = new List(num3); + CollectionsMarshal.SetCount(list29, num3); + CollectionsMarshal.AsSpan(list29)[0] = new QuestId(4240); skipAetheryteCondition.QuestsCompleted = list29; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj21.SkipConditions = skipConditions; obj21.PickUpQuestId = new QuestId(4240); reference34 = obj21; - num2++; - span43[num2] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959) + span16[1] = new QuestStep(EInteractionType.AcceptQuest, 1039520u, new Vector3(-287.8615f, -143.50005f, -520.28687f), 959) { PickUpQuestId = new QuestId(4241) }; - num2++; - span43[num2] = new QuestStep(EInteractionType.Interact, 1038928u, new Vector3(146.37976f, -137.32071f, -504.26492f), 959) + span16[2] = new QuestStep(EInteractionType.Interact, 1038928u, new Vector3(146.37976f, -137.32071f, -504.26492f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; questSequence13.Steps = list4; reference33 = questSequence; - num++; - ref QuestSequence reference35 = ref span41[num]; + ref QuestSequence reference35 = ref span15[2]; questSequence = new QuestSequence { Sequence = 2 @@ -353735,16 +291600,12 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span45 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference36 = ref span45[index2]; + ref QuestStep reference36 = ref CollectionsMarshal.AsSpan(list4)[0]; 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); - Span span46 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - span46[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMC106_04404_Q1_000_021"), @@ -353754,25 +291615,21 @@ public static class AssemblyQuestLoader reference36 = questStep3; questSequence14.Steps = list4; reference35 = questSequence; - num++; - ref QuestSequence reference37 = ref span41[num]; + ref QuestSequence reference37 = ref span15[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Stretch }; obj22.Steps = list31; reference37 = obj22; - num++; - ref QuestSequence reference38 = ref span41[num]; + ref QuestSequence reference38 = ref span15[4]; QuestSequence obj23 = new QuestSequence { Sequence = 4 @@ -353780,30 +291637,24 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span48 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(681.45264f, -152f, -494.13293f), 959); obj23.Steps = list32; reference38 = obj23; - num++; - ref QuestSequence reference39 = ref span41[num]; + ref QuestSequence reference39 = ref span15[5]; QuestSequence obj24 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 0.25f }; obj24.Steps = list33; reference39 = obj24; - num++; - ref QuestSequence reference40 = ref span41[num]; + ref QuestSequence reference40 = ref span15[6]; QuestSequence obj25 = new QuestSequence { Sequence = 6 @@ -353811,33 +291662,27 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span50 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(547.8397f, -167.50174f, -526.3702f), 959) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(547.8397f, -167.50174f, -526.3702f), 959) { StopDistance = 0.25f }; obj25.Steps = list34; reference40 = obj25; - num++; - ref QuestSequence reference41 = ref span41[num]; + ref QuestSequence reference41 = ref span15[7]; QuestSequence obj26 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 0.25f }; obj26.Steps = list35; reference41 = obj26; - num++; - ref QuestSequence reference42 = ref span41[num]; + ref QuestSequence reference42 = ref span15[8]; QuestSequence obj27 = new QuestSequence { Sequence = 8 @@ -353845,33 +291690,27 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span52 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(617.89886f, -167.50163f, -594.92847f), 959) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1038929u, new Vector3(617.89886f, -167.50163f, -594.92847f), 959) { StopDistance = 0.25f }; obj27.Steps = list36; reference42 = obj27; - num++; - ref QuestSequence reference43 = ref span41[num]; + ref QuestSequence reference43 = ref span15[9]; QuestSequence obj28 = new QuestSequence { Sequence = 9 }; - 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) + 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) { StopDistance = 0.25f }; obj28.Steps = list37; reference43 = obj28; - num++; - ref QuestSequence reference44 = ref span41[num]; + ref QuestSequence reference44 = ref span15[10]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -353879,9 +291718,7 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span54 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038932u, new Vector3(617.05945f, -168.00002f, -656.58044f), 959) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038932u, new Vector3(617.05945f, -168.00002f, -656.58044f), 959) { StopDistance = 7f }; @@ -353895,34 +291732,28 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span55 = CollectionsMarshal.AsSpan(list39); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot12.Author = list39; QuestRoot questRoot13 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span56 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference45 = ref span56[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span17 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference45 = ref span17[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj30.Steps = list40; reference45 = obj30; - num++; - ref QuestSequence reference46 = ref span56[num]; + ref QuestSequence reference46 = ref span17[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -353930,33 +291761,27 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span58 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 2012184u, new Vector3(73.83838f, -133.07397f, -512.2606f), 959) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 2012184u, new Vector3(73.83838f, -133.07397f, -512.2606f), 959) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj31.Steps = list41; reference46 = obj31; - num++; - ref QuestSequence reference47 = ref span56[num]; + ref QuestSequence reference47 = ref span17[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Comment = "Follow Urianger" }; obj32.Steps = list42; reference47 = obj32; - num++; - ref QuestSequence reference48 = ref span56[num]; + ref QuestSequence reference48 = ref span17[3]; questSequence = new QuestSequence { Sequence = 3 @@ -353965,9 +291790,8 @@ public static class AssemblyQuestLoader num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span60 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference49 = ref span60[index2]; + Span span18 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference49 = ref span18[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2012185u, new Vector3(-5.416992f, -49.05786f, -269.24548f), 959) { Comment = "retry point", @@ -353979,64 +291803,55 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span61 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span61[num3] = new DialogueChoice + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC107_04405_Q1_000_043") }; obj33.DialogueChoices = list43; reference49 = obj33; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-6.025082f, -28.32315f, -215.77702f), 959) + span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-6.025082f, -28.32315f, -215.77702f), 959) { DelaySecondsAtStart = 2f, DisableNavmesh = true, Mount = false, Sprint = false }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(15.536669f, -7.1210613f, -177.33519f), 959) + span18[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(15.536669f, -7.1210613f, -177.33519f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.73667f, -5.0926046f, -171.87782f), 959) + span18[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.73667f, -5.0926046f, -171.87782f), 959) { Mount = false, Sprint = false }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(-22.370995f, 14.627041f, -132.87657f), 959) + span18[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(-22.370995f, 14.627041f, -132.87657f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.210857f, 26.867788f, -109.43445f), 959) + span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-25.210857f, 26.867788f, -109.43445f), 959) { Mount = false, Sprint = false }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(1.7508065f, 46.95068f, -69.89246f), 959) + span18[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1038933u, new Vector3(1.7508065f, 46.95068f, -69.89246f), 959) { StopDistance = 100f, NpcWaitDistance = 3f, Mount = false, Sprint = false }; - index2++; - span60[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.261765f, 74.98867f, -32.961533f), 959) + span18[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.261765f, 74.98867f, -32.961533f), 959) { DelaySecondsAtStart = 1f, Mount = false, @@ -354044,18 +291859,15 @@ public static class AssemblyQuestLoader }; questSequence15.Steps = list4; reference48 = questSequence; - num++; - ref QuestSequence reference50 = ref span56[num]; + ref QuestSequence reference50 = ref span17[4]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -354069,17 +291881,14 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span63 = CollectionsMarshal.AsSpan(list45); - index = 0; - span63[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot14.Author = list45; QuestRoot questRoot15 = questRoot; - index = 8; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span64 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference51 = ref span64[num]; + num = 8; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span19 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference51 = ref span19[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -354087,36 +291896,30 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span65 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038935u, new Vector3(68.5282f, 75.72459f, -23.51416f), 959) { StopDistance = 5f }; obj35.Steps = list46; reference51 = obj35; - num++; - ref QuestSequence reference52 = ref span64[num]; + ref QuestSequence reference52 = ref span19[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence16 = questSequence; - 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) + 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) { AetherCurrentId = 2818359u }; - num2++; - span66[num2] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); + span20[1] = new QuestStep(EInteractionType.Interact, 1038936u, new Vector3(191.48547f, 93.90228f, -54.306885f), 959); questSequence16.Steps = list4; reference52 = questSequence; - num++; - ref QuestSequence reference53 = ref span64[num]; + ref QuestSequence reference53 = ref span19[2]; questSequence = new QuestSequence { Sequence = 2 @@ -354125,69 +291928,55 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj36 = 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 span68 = CollectionsMarshal.AsSpan(list47); - index3 = 0; - span68[index3] = 13998u; - index3++; - span68[index3] = 14093u; - index3++; - span68[index3] = 13998u; - questStep4.KillEnemyDataIds = list47; - reference54 = questStep; + Span span21 = CollectionsMarshal.AsSpan(list47); + span21[0] = 13998u; + span21[1] = 14093u; + span21[2] = 13998u; + obj36.KillEnemyDataIds = list47; + reference54 = obj36; questSequence17.Steps = list4; reference53 = questSequence; - num++; - ref QuestSequence reference55 = ref span64[num]; - QuestSequence obj36 = new QuestSequence + ref QuestSequence reference55 = ref span19[3]; + QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - 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]; + 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]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence18 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, JumpDestination = new JumpDestination @@ -354196,49 +291985,40 @@ public static class AssemblyQuestLoader StopDistance = 5f } }; - num2++; - span71[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012012u, new Vector3(316.39575f, -154.98596f, -595.5444f), 959) + span22[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012012u, new Vector3(316.39575f, -154.98596f, -595.5444f), 959) { StopDistance = 3f, AetherCurrentId = 2818361u }; - 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); + 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); questSequence18.Steps = list4; reference57 = questSequence; - num++; - ref QuestSequence reference58 = ref span64[num]; - QuestSequence obj38 = new QuestSequence + ref QuestSequence reference58 = ref span19[6]; + QuestSequence obj39 = new QuestSequence { Sequence = 6 }; num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span72 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Snipe, 2012337u, new Vector3(466.8496f, -168.01715f, -654.13904f), 959) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Snipe, 2012337u, new Vector3(466.8496f, -168.01715f, -654.13904f), 959) { Comment = "Find \"Runninway?\"" }; - obj38.Steps = list50; - reference58 = obj38; - num++; - ref QuestSequence reference59 = ref span64[num]; - QuestSequence obj39 = new QuestSequence + obj39.Steps = list50; + reference58 = obj39; + ref QuestSequence reference59 = ref span19[7]; + QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot15.QuestSequence = list2; AddQuest(questId7, questRoot); QuestId questId8 = new QuestId(4407); @@ -354247,94 +292027,78 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span74 = CollectionsMarshal.AsSpan(list52); - index = 0; - span74[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot16.Author = list52; QuestRoot questRoot17 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span76 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038946u, new Vector3(362.50854f, -168.00002f, -625.11633f), 959) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038946u, new Vector3(362.50854f, -168.00002f, -625.11633f), 959) { StopDistance = 5f }; - obj40.Steps = list53; - reference60 = obj40; - num++; - ref QuestSequence reference61 = ref span75[num]; + obj41.Steps = list53; + reference60 = obj41; + ref QuestSequence reference61 = ref span23[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence19 = questSequence; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index3 = 1; - List list54 = new List(index3); - CollectionsMarshal.SetCount(list54, index3); - Span span78 = CollectionsMarshal.AsSpan(list54); - num3 = 0; - span78[num3] = new QuestId(4516); + num3 = 1; + List list54 = new List(num3); + CollectionsMarshal.SetCount(list54, num3); + CollectionsMarshal.AsSpan(list54)[0] = new QuestId(4516); skipAetheryteCondition2.QuestsCompleted = list54; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition2; - obj41.SkipConditions = skipConditions2; - obj41.PickUpQuestId = new QuestId(4516); - reference62 = obj41; - num2++; - ref QuestStep reference63 = ref span77[num2]; + obj42.SkipConditions = skipConditions2; + obj42.PickUpQuestId = new QuestId(4516); + reference62 = obj42; + ref QuestStep reference63 = ref span24[1]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041123u, new Vector3(-81.864685f, -132.74333f, -521.6602f), 959); - QuestStep questStep5 = questStep; + QuestStep questStep4 = questStep; num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span79 = CollectionsMarshal.AsSpan(list55); - index3 = 0; - span79[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list55)[0] = 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") }; - questStep5.DialogueChoices = list55; + questStep4.DialogueChoices = list55; questStep.PickUpQuestId = new QuestId(4253); reference63 = questStep; - num2++; - span77[num2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + span24[2] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)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); + 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); questSequence19.Steps = list4; reference61 = questSequence; - num++; - ref QuestSequence reference64 = ref span75[num]; + ref QuestSequence reference64 = ref span23[2]; questSequence = new QuestSequence { Sequence = 2 @@ -354343,67 +292107,53 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(167.0076f, -49.589592f, -637.9577f), 959) { StopDistance = 3f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; questSequence20.Steps = list4; reference64 = questSequence; - num++; - ref QuestSequence reference66 = ref span75[num]; + ref QuestSequence reference66 = ref span23[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence21 = questSequence; - 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); + 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); questSequence21.Steps = list4; reference66 = questSequence; - num++; - ref QuestSequence reference67 = ref span75[num]; - QuestSequence obj42 = new QuestSequence + ref QuestSequence reference67 = ref span23[4]; + QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span83 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038952u, new Vector3(-609.12494f, 128.67769f, 572.0454f), 959) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038952u, new Vector3(-609.12494f, 128.67769f, 572.0454f), 959) { StopDistance = 5f }; - obj42.Steps = list57; - reference67 = obj42; + obj44.Steps = list57; + reference67 = obj44; questRoot17.QuestSequence = list2; AddQuest(questId8, questRoot); QuestId questId9 = new QuestId(4408); @@ -354412,34 +292162,28 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span84 = CollectionsMarshal.AsSpan(list58); - index = 0; - span84[index] = "liza"; + CollectionsMarshal.AsSpan(list58)[0] = "liza"; questRoot18.Author = list58; QuestRoot questRoot19 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj43.Steps = list59; - reference68 = obj43; - num++; - ref QuestSequence reference69 = ref span85[num]; + obj45.Steps = list59; + reference68 = obj45; + ref QuestSequence reference69 = ref span27[1]; questSequence = new QuestSequence { Sequence = 1 @@ -354448,9 +292192,8 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span87 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-614.86835f, 128.67761f, 677.33923f), 959) + Span span28 = CollectionsMarshal.AsSpan(list4); + span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-614.86835f, 128.67761f, 677.33923f), 959) { Comment = "Avoids Combat", SkipConditions = new SkipConditions @@ -354461,35 +292204,29 @@ public static class AssemblyQuestLoader } } }; - index2++; - span87[index2] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) + span28[1] = new QuestStep(EInteractionType.Interact, 2012531u, new Vector3(-663.29443f, 132.6466f, 728.96924f), 959) { TargetTerritoryId = (ushort)1024, Fly = true }; - index2++; - span87[index2] = new QuestStep(EInteractionType.Interact, 1038960u, new Vector3(0.99176025f, 0f, 22.171326f), 1024); + span28[2] = new QuestStep(EInteractionType.Interact, 1038960u, new Vector3(0.99176025f, 0f, 22.171326f), 1024); questSequence22.Steps = list4; reference69 = questSequence; - num++; - ref QuestSequence reference70 = ref span85[num]; - QuestSequence obj44 = new QuestSequence + ref QuestSequence reference70 = ref span27[2]; + QuestSequence obj46 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; - obj44.Steps = list60; - reference70 = obj44; - num++; - ref QuestSequence reference71 = ref span85[num]; + obj46.Steps = list60; + reference70 = obj46; + ref QuestSequence reference71 = ref span27[3]; questSequence = new QuestSequence { Sequence = 3 @@ -354498,9 +292235,7 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span89 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1038965u, new Vector3(-104.9668f, 3.8989396f, 9.262146f), 962) + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.Interact, 1038965u, new Vector3(-104.9668f, 3.8989396f, 9.262146f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -354511,41 +292246,35 @@ public static class AssemblyQuestLoader }; questSequence23.Steps = list61; reference71 = questSequence; - num++; - ref QuestSequence reference72 = ref span85[num]; + ref QuestSequence reference72 = ref span27[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence24 = questSequence; - 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) + 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) { TargetTerritoryId = (ushort)987 }; - num2++; - ref QuestStep reference73 = ref span90[num2]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012188u, new Vector3(-0.015319824f, -0.015319824f, -5.081299f), 987); + ref QuestStep reference73 = ref span29[1]; + QuestStep questStep5 = 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); - Span span91 = CollectionsMarshal.AsSpan(list62); - index3 = 0; - span91[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list62)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC110_04408_Q3_000_170") }; - questStep7.DialogueChoices = list62; - reference73 = questStep7; + questStep5.DialogueChoices = list62; + reference73 = questStep5; questSequence24.Steps = list4; reference72 = questSequence; - num++; - ref QuestSequence reference74 = ref span85[num]; + ref QuestSequence reference74 = ref span27[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -354554,10 +292283,8 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj47 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { AethernetShortcut = new AethernetShortcut { @@ -354565,18 +292292,16 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - index3 = 1; - List list63 = new List(index3); - CollectionsMarshal.SetCount(list63, index3); - Span span93 = CollectionsMarshal.AsSpan(list63); - num3 = 0; - span93[num3] = new DialogueChoice + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMC110_04408_Q4_000_204") }; - obj45.DialogueChoices = list63; - reference75 = obj45; + obj47.DialogueChoices = list63; + reference75 = obj47; questSequence25.Steps = list4; reference74 = questSequence; questRoot19.QuestSequence = list2; @@ -354587,34 +292312,28 @@ public static class AssemblyQuestLoader num = 1; List list64 = new List(num); CollectionsMarshal.SetCount(list64, num); - Span span94 = CollectionsMarshal.AsSpan(list64); - index = 0; - span94[index] = "liza"; + CollectionsMarshal.AsSpan(list64)[0] = "liza"; questRoot20.Author = list64; QuestRoot questRoot21 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj46.Steps = list65; - reference76 = obj46; - num++; - ref QuestSequence reference77 = ref span95[num]; + obj48.Steps = list65; + reference76 = obj48; + ref QuestSequence reference77 = ref span30[1]; questSequence = new QuestSequence { Sequence = 1 @@ -354623,60 +292342,49 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span97 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) { TargetTerritoryId = (ushort)987 }; questSequence26.Steps = list66; reference77 = questSequence; - num++; - ref QuestSequence reference78 = ref span95[num]; + ref QuestSequence reference78 = ref span30[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence27 = questSequence; - 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) + 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) { Comment = "Quest automatically progresses once teleported to Yedlihmad", AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; questSequence27.Steps = list67; reference78 = questSequence; - num++; - ref QuestSequence reference79 = ref span95[num]; - QuestSequence obj47 = new QuestSequence + ref QuestSequence reference79 = ref span30[3]; + QuestSequence obj49 = new QuestSequence { Sequence = 3 }; num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence28 = questSequence; - 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) + num2 = 1; + List list69 = new List(num2); + CollectionsMarshal.SetCount(list69, num2); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.Duty, null, null, 957) { DutyOptions = new DutyOptions { @@ -354686,28 +292394,24 @@ public static class AssemblyQuestLoader }; questSequence28.Steps = list69; reference80 = questSequence; - num++; - span95[num] = new QuestSequence + span30[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference81 = ref span95[num]; - QuestSequence obj48 = new QuestSequence + ref QuestSequence reference81 = ref span30[6]; + QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span101 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1038992u, new Vector3(4.6539917f, -1.9999963f, 93.492065f), 963) { StopDistance = 5f }; - obj48.Steps = list70; - reference81 = obj48; + obj50.Steps = list70; + reference81 = obj50; questRoot21.QuestSequence = list2; AddQuest(questId10, questRoot); QuestId questId11 = new QuestId(4410); @@ -354716,62 +292420,50 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span102 = CollectionsMarshal.AsSpan(list71); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot22.Author = list71; QuestRoot questRoot23 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj49.Steps = list72; - reference82 = obj49; - num++; - ref QuestSequence reference83 = ref span103[num]; - QuestSequence obj50 = new QuestSequence + obj51.Steps = list72; + reference82 = obj51; + ref QuestSequence reference83 = ref span31[1]; + QuestSequence obj52 = new QuestSequence { Sequence = 1 }; num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - 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 + 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 { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 @@ -354780,15 +292472,14 @@ public static class AssemblyQuestLoader num2 = 4; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span107 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference86 = ref span107[index2]; + Span span32 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference86 = ref span32[0]; questStep = new QuestStep(EInteractionType.WalkTo, null, new Vector3(81.33277f, 1.8631814f, -96.56102f), 963) { DisableNavmesh = true, Sprint = true }; - QuestStep questStep8 = questStep; + QuestStep questStep6 = questStep; SkipConditions skipConditions3 = new SkipConditions(); SkipConditions skipConditions4 = skipConditions3; SkipStepConditions skipStepConditions = new SkipStepConditions(); @@ -354796,119 +292487,88 @@ public static class AssemblyQuestLoader num3 = 6; List list75 = new List(num3); CollectionsMarshal.SetCount(list75, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list75; skipConditions4.StepIf = skipStepConditions; - questStep8.SkipConditions = skipConditions3; + questStep6.SkipConditions = skipConditions3; reference86 = questStep; - index2++; - ref QuestStep reference87 = ref span107[index2]; + ref QuestStep reference87 = ref span32[1]; questStep = new QuestStep(EInteractionType.Interact, 1037314u, new Vector3(15.701477f, 0.9f, -115.22089f), 963) { Comment = "Varsra" }; - 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; + 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; reference87 = questStep; - index2++; - ref QuestStep reference88 = ref span107[index2]; + ref QuestStep reference88 = ref span32[2]; questStep = new QuestStep(EInteractionType.Interact, 1037316u, new Vector3(-47.04364f, 0.9199997f, -94.95697f), 963) { Comment = "Zeytahnur" }; - QuestStep questStep10 = questStep; + QuestStep questStep8 = questStep; num3 = 6; - 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; + 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; reference88 = questStep; - index2++; - ref QuestStep reference89 = ref span107[index2]; + ref QuestStep reference89 = ref span32[3]; questStep = new QuestStep(EInteractionType.Interact, 1037315u, new Vector3(-19.60791f, 0.8999999f, -60.68518f), 963) { Comment = "Rahdvira" }; - 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; + 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; reference89 = questStep; questSequence29.Steps = list4; reference85 = questSequence; - num++; - ref QuestSequence reference90 = ref span103[num]; - QuestSequence obj52 = new QuestSequence + ref QuestSequence reference90 = ref span31[4]; + QuestSequence obj54 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.25f }; - obj52.Steps = list76; - reference90 = obj52; - num++; - ref QuestSequence reference91 = ref span103[num]; + obj54.Steps = list79; + reference90 = obj54; + ref QuestSequence reference91 = ref span31[5]; questSequence = new QuestSequence { Sequence = 5 @@ -354917,76 +292577,62 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span113 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + Span span37 = CollectionsMarshal.AsSpan(list4); + span37[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanMehrydesMeyhane }; - 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); + 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); questSequence30.Steps = list4; reference91 = questSequence; - num++; - ref QuestSequence reference92 = ref span103[num]; - QuestSequence obj53 = new QuestSequence + ref QuestSequence reference92 = ref span31[6]; + QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot23.QuestSequence = list2; AddQuest(questId11, questRoot); QuestId questId12 = new QuestId(4411); questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list78 = new List(num); - CollectionsMarshal.SetCount(list78, num); - Span span115 = CollectionsMarshal.AsSpan(list78); - index = 0; - span115[index] = "liza"; - questRoot24.Author = list78; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + CollectionsMarshal.AsSpan(list81)[0] = "liza"; + questRoot24.Author = list81; QuestRoot questRoot25 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence31 = questSequence; - 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) + 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) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -354995,10 +292641,9 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence31.Steps = list80; + questSequence31.Steps = list83; reference94 = questSequence; - num++; - ref QuestSequence reference95 = ref span116[num]; + ref QuestSequence reference95 = ref span38[2]; questSequence = new QuestSequence { Sequence = 2 @@ -355007,31 +292652,25 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + 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) { AethernetShard = EAetheryteLocation.RadzAtHanKama }; - index2++; - span119[index2] = new QuestStep(EInteractionType.Interact, 1039540u, new Vector3(149.79773f, 27.049997f, 39.627686f), 963); + span39[2] = new QuestStep(EInteractionType.Interact, 1039540u, new Vector3(149.79773f, 27.049997f, 39.627686f), 963); questSequence32.Steps = list4; reference95 = questSequence; - num++; - ref QuestSequence reference96 = ref span116[num]; + ref QuestSequence reference96 = ref span38[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence33 = questSequence; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -355039,198 +292678,159 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence33.Steps = list81; + questSequence33.Steps = list84; reference96 = questSequence; - num++; - ref QuestSequence reference97 = ref span116[num]; - QuestSequence obj55 = new QuestSequence + ref QuestSequence reference97 = ref span38[4]; + QuestSequence obj57 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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 - }; - 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 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]; + 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 { - Sequence = 7 - }; - 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 + Sequence = 5 }; num2 = 1; 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]; + 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 + { + 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 { - Sequence = 9 - }; - 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 + Sequence = 7 }; num2 = 1; 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]; + 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 + { + 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 { - Sequence = 11 - }; - 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 + Sequence = 9 }; num2 = 1; 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; + 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 + { + 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 + { + 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 + { + 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; questRoot25.QuestSequence = list2; AddQuest(questId12, questRoot); QuestId questId13 = new QuestId(4412); questRoot = new QuestRoot(); QuestRoot questRoot26 = questRoot; num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span130 = CollectionsMarshal.AsSpan(list91); - index = 0; - span130[index] = "liza"; - questRoot26.Author = list91; + List list94 = new List(num); + CollectionsMarshal.SetCount(list94, num); + CollectionsMarshal.AsSpan(list94)[0] = "liza"; + questRoot26.Author = list94; QuestRoot questRoot27 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; - obj66.Steps = list94; - reference108 = obj66; - num++; - ref QuestSequence reference109 = ref span131[num]; + obj68.Steps = list97; + reference108 = obj68; + ref QuestSequence reference109 = ref span40[3]; questSequence = new QuestSequence { Sequence = 3 @@ -355239,191 +292839,156 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2012197u, new Vector3(454.06262f, 29.251465f, -491.3253f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span136 = CollectionsMarshal.AsSpan(list95); - index3 = 0; - span136[index3] = 13994u; - obj67.KillEnemyDataIds = list95; - reference110 = obj67; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = 13994u; + obj69.KillEnemyDataIds = list98; + reference110 = obj69; questSequence34.Steps = list4; reference109 = questSequence; - num++; - ref QuestSequence reference111 = ref span131[num]; + ref QuestSequence reference111 = ref span40[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence35 = questSequence; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; questSequence35.Steps = list4; reference111 = questSequence; - num++; - ref QuestSequence reference113 = ref span131[num]; - QuestSequence obj69 = new QuestSequence + ref QuestSequence reference113 = ref span40[5]; + QuestSequence obj71 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 6, Comment = "TODO Missing completion flags" }; QuestSequence questSequence36 = questSequence; - 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) + 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) { Aetheryte = EAetheryteLocation.ThavnairPalakasStand }; - num2++; - span140[num2] = new QuestStep(EInteractionType.Interact, 1039016u, new Vector3(438.22375f, 3.1179183f, -224.10931f), 957); + span42[4] = new QuestStep(EInteractionType.Interact, 1039016u, new Vector3(438.22375f, 3.1179183f, -224.10931f), 957); questSequence36.Steps = list4; reference114 = questSequence; - num++; - ref QuestSequence reference115 = ref span131[num]; - QuestSequence obj70 = new QuestSequence + ref QuestSequence reference115 = ref span40[7]; + QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; questRoot27.QuestSequence = list2; AddQuest(questId13, questRoot); QuestId questId14 = new QuestId(4413); questRoot = new QuestRoot(); QuestRoot questRoot28 = questRoot; num = 1; - List list99 = new List(num); - CollectionsMarshal.SetCount(list99, num); - Span span142 = CollectionsMarshal.AsSpan(list99); - index = 0; - span142[index] = "liza"; - questRoot28.Author = list99; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + CollectionsMarshal.AsSpan(list102)[0] = "liza"; + questRoot28.Author = list102; QuestRoot questRoot29 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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) + 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) { DisableNavmesh = true }; - obj72.Steps = list101; - reference117 = obj72; - num++; - ref QuestSequence reference118 = ref span143[num]; + obj74.Steps = list104; + reference117 = obj74; + ref QuestSequence reference118 = ref span43[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence37 = questSequence; - 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) + 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) { AetherCurrentId = 2818331u }; - num2++; - ref QuestStep reference119 = ref span146[num2]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1039023u, new Vector3(55.77173f, 14.571876f, -330.46472f), 957); + ref QuestStep reference119 = ref span44[1]; + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1039023u, new Vector3(55.77173f, 14.571876f, -330.46472f), 957); num3 = 1; - List list102 = new List(num3); - CollectionsMarshal.SetCount(list102, num3); - Span span147 = CollectionsMarshal.AsSpan(list102); - index3 = 0; - span147[index3] = new DialogueChoice + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + CollectionsMarshal.AsSpan(list105)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD105_04413_Q1_000_095"), Answer = new ExcelRef("TEXT_AKTKMD105_04413_A1_000_096") }; - questStep12.DialogueChoices = list102; - reference119 = questStep12; + questStep10.DialogueChoices = list105; + reference119 = questStep10; questSequence37.Steps = list4; reference118 = questSequence; - num++; - ref QuestSequence reference120 = ref span143[num]; + ref QuestSequence reference120 = ref span43[3]; questSequence = new QuestSequence { Sequence = 3 @@ -355432,235 +292997,189 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj75 = new QuestStep(EInteractionType.Combat, 1039026u, new Vector3(-29.404175f, 21.255978f, -224.04822f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + 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; questSequence38.Steps = list4; reference120 = questSequence; - num++; - ref QuestSequence reference122 = ref span143[num]; - QuestSequence obj74 = new QuestSequence + ref QuestSequence reference122 = ref span43[4]; + QuestSequence obj76 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = 5 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence39 = questSequence; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - List list106 = new List(num3); - CollectionsMarshal.SetCount(list106, num3); - Span span153 = CollectionsMarshal.AsSpan(list106); - index3 = 0; - span153[index3] = 13989u; - obj76.KillEnemyDataIds = list106; - reference125 = obj76; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + CollectionsMarshal.AsSpan(list109)[0] = 13989u; + obj78.KillEnemyDataIds = list109; + reference125 = obj78; questSequence39.Steps = list4; reference124 = questSequence; - num++; - ref QuestSequence reference126 = ref span143[num]; - QuestSequence obj77 = new QuestSequence + ref QuestSequence reference126 = ref span43[7]; + QuestSequence obj79 = new QuestSequence { Sequence = 7 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot29.QuestSequence = list2; AddQuest(questId14, questRoot); QuestId questId15 = new QuestId(4414); questRoot = new QuestRoot(); QuestRoot questRoot30 = questRoot; num = 1; - List list109 = new List(num); - CollectionsMarshal.SetCount(list109, num); - Span span156 = CollectionsMarshal.AsSpan(list109); - index = 0; - span156[index] = "liza"; - questRoot30.Author = list109; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + CollectionsMarshal.AsSpan(list112)[0] = "liza"; + questRoot30.Author = list112; QuestRoot questRoot31 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence40 = questSequence; - 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) + 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) { DisableNavmesh = true, AetherCurrentId = 2818332u }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 1; + List list116 = new List(num3); + CollectionsMarshal.SetCount(list116, num3); + CollectionsMarshal.AsSpan(list116)[0] = 13988u; + obj84.KillEnemyDataIds = list116; + reference132 = obj84; questSequence40.Steps = list4; reference131 = questSequence; - num++; - ref QuestSequence reference133 = ref span157[num]; - QuestSequence obj83 = new QuestSequence + ref QuestSequence reference133 = ref span46[4]; + QuestSequence obj85 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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 + 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 { Sequence = 5 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 6 @@ -355669,210 +293188,165 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span165 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference136 = ref span165[index2]; + Span span48 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference136 = ref span48[0]; 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 list116 = new List(num3); - CollectionsMarshal.SetCount(list116, num3); - Span span166 = CollectionsMarshal.AsSpan(list116); - index3 = 0; - span166[index3] = 13987u; - questStep13.KillEnemyDataIds = list116; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = 13986u; + questStep13.KillEnemyDataIds = list121; QuestStep questStep14 = questStep; - 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 = 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; - 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; + 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; - index2++; - ref QuestStep reference138 = ref span165[index2]; + ref QuestStep reference138 = ref span48[2]; questStep = new QuestStep(EInteractionType.Combat, null, new Vector3(660.18604f, 44.997604f, 196.7378f), 957) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep17 = questStep; + QuestStep questStep15 = 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; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span51 = CollectionsMarshal.AsSpan(list123); + span51[0] = 13985u; + span51[1] = 13984u; + questStep15.KillEnemyDataIds = list123; + 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; reference138 = questStep; questSequence41.Steps = list4; reference135 = questSequence; - num++; - ref QuestSequence reference139 = ref span157[num]; - QuestSequence obj85 = new QuestSequence + ref QuestSequence reference139 = ref span46[7]; + QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot31.QuestSequence = list2; AddQuest(questId15, questRoot); QuestId questId16 = new QuestId(4415); questRoot = new QuestRoot(); QuestRoot questRoot32 = questRoot; num = 1; - List list120 = new List(num); - CollectionsMarshal.SetCount(list120, num); - Span span173 = CollectionsMarshal.AsSpan(list120); - index = 0; - span173[index] = "liza"; - questRoot32.Author = list120; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + CollectionsMarshal.AsSpan(list126)[0] = "liza"; + questRoot32.Author = list126; QuestRoot questRoot33 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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) + 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) { DisableNavmesh = true }; - obj88.Steps = list123; - reference142 = obj88; - num++; - ref QuestSequence reference143 = ref span174[num]; + obj90.Steps = list129; + reference142 = obj90; + ref QuestSequence reference143 = ref span53[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence42 = questSequence; - 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) + 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) { StopDistance = 1f, DisableNavmesh = true }; - questSequence42.Steps = list124; + questSequence42.Steps = list130; reference143 = questSequence; - num++; - ref QuestSequence reference144 = ref span174[num]; + ref QuestSequence reference144 = ref span53[4]; questSequence = new QuestSequence { Sequence = 4 @@ -355881,187 +293355,147 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span179 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.94444f, -0.6f, 145.83025f), 957) + Span span54 = CollectionsMarshal.AsSpan(list4); + span54[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(235.94444f, -0.6f, 145.83025f), 957) { DisableNavmesh = true, Mount = true }; - index2++; - span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.0308f, 0.57823455f, 150.66217f), 957) + span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.0308f, 0.57823455f, 150.66217f), 957) { DisableNavmesh = true }; - index2++; - span179[index2] = new QuestStep(EInteractionType.Interact, 1039052u, new Vector3(155.2605f, 11.6644f, 217.85303f), 957); + span54[2] = new QuestStep(EInteractionType.Interact, 1039052u, new Vector3(155.2605f, 11.6644f, 217.85303f), 957); questSequence43.Steps = list4; reference144 = questSequence; - num++; - ref QuestSequence reference145 = ref span174[num]; - QuestSequence obj89 = new QuestSequence + ref QuestSequence reference145 = ref span53[5]; + QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj89.Steps = list125; - reference145 = obj89; + obj91.Steps = list131; + reference145 = obj91; questRoot33.QuestSequence = list2; AddQuest(questId16, questRoot); QuestId questId17 = new QuestId(4416); questRoot = new QuestRoot(); QuestRoot questRoot34 = questRoot; num = 1; - List list126 = new List(num); - CollectionsMarshal.SetCount(list126, num); - Span span181 = CollectionsMarshal.AsSpan(list126); - index = 0; - span181[index] = "liza"; - questRoot34.Author = list126; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + CollectionsMarshal.AsSpan(list132)[0] = "liza"; + questRoot34.Author = list132; QuestRoot questRoot35 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence44 = questSequence; - 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) + 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) { StopDistance = 15f, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - questSequence44.Steps = list128; + questSequence44.Steps = list134; reference147 = questSequence; - num++; - ref QuestSequence reference148 = ref span182[num]; - QuestSequence obj91 = new QuestSequence + ref QuestSequence reference148 = ref span55[2]; + QuestSequence obj93 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj91.Steps = list129; - reference148 = obj91; - num++; - ref QuestSequence reference149 = ref span182[num]; + obj93.Steps = list135; + reference148 = obj93; + ref QuestSequence reference149 = ref span55[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence45 = questSequence; - index2 = 3; - list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span186 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference150 = ref span186[num2]; + num2 = 3; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span56 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference150 = ref span56[0]; 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; - 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; + 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; reference152 = questStep; questSequence45.Steps = list4; reference149 = questSequence; - num++; - ref QuestSequence reference153 = ref span182[num]; + ref QuestSequence reference153 = ref span55[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue @@ -356070,19 +293504,16 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span190 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957) + Span span60 = CollectionsMarshal.AsSpan(list4); + span60[0] = new QuestStep(EInteractionType.AcceptQuest, 1040669u, new Vector3(381.64343f, 3.1891773f, -207.20227f), 957) { PickUpQuestId = new QuestId(4259) }; - index2++; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957) + span60[1] = new QuestStep(EInteractionType.AcceptQuest, 1040864u, new Vector3(462.51624f, 14.320099f, -219.86731f), 957) { PickUpQuestId = new QuestId(4257) }; - index2++; - span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957); + span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1039064u, new Vector3(428.85486f, 3.1168792f, -262.62305f), 957); questSequence46.Steps = list4; reference153 = questSequence; questRoot35.QuestSequence = list2; @@ -356091,86 +293522,72 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot36 = questRoot; num = 1; - List list130 = new List(num); - CollectionsMarshal.SetCount(list130, num); - Span span191 = CollectionsMarshal.AsSpan(list130); - index = 0; - span191[index] = "liza"; - questRoot36.Author = list130; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + CollectionsMarshal.AsSpan(list139)[0] = "liza"; + questRoot36.Author = list139; QuestRoot questRoot37 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 8f }; - obj92.Steps = list131; - reference154 = obj92; - num++; - ref QuestSequence reference155 = ref span192[num]; - QuestSequence obj93 = new QuestSequence + obj94.Steps = list140; + reference154 = obj94; + ref QuestSequence reference155 = ref span61[1]; + QuestSequence obj95 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { Fly = true }; - obj93.Steps = list132; - reference155 = obj93; - num++; - ref QuestSequence reference156 = ref span192[num]; + obj95.Steps = list141; + reference155 = obj95; + ref QuestSequence reference156 = ref span61[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence47 = questSequence; - 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) + 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) { TargetTerritoryId = (ushort)963, Fly = true, Comment = "Travel to Radz-at-Han" }; - num2++; - span195[num2] = new QuestStep(EInteractionType.Interact, 1040354u, new Vector3(1.8157349f, -1.9999962f, 95.750244f), 963); + span62[1] = new QuestStep(EInteractionType.Interact, 1040354u, new Vector3(1.8157349f, -1.9999962f, 95.750244f), 963); questSequence47.Steps = list4; reference156 = questSequence; - num++; - ref QuestSequence reference157 = ref span192[num]; + ref QuestSequence reference157 = ref span61[3]; questSequence = new QuestSequence { Sequence = 3 }; QuestSequence questSequence48 = questSequence; num2 = 1; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -356178,100 +293595,82 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - questSequence48.Steps = list133; + questSequence48.Steps = list142; reference157 = questSequence; - num++; - ref QuestSequence reference158 = ref span192[num]; - QuestSequence obj94 = new QuestSequence + ref QuestSequence reference158 = ref span61[4]; + QuestSequence obj96 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = 5 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; - obj96.Steps = list136; - reference160 = obj96; + obj98.Steps = list145; + reference160 = obj98; questRoot37.QuestSequence = list2; AddQuest(questId18, questRoot); QuestId questId19 = new QuestId(4418); questRoot = new QuestRoot(); QuestRoot questRoot38 = questRoot; num = 1; - List list137 = new List(num); - CollectionsMarshal.SetCount(list137, num); - Span span200 = CollectionsMarshal.AsSpan(list137); - index = 0; - span200[index] = "liza"; - questRoot38.Author = list137; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + CollectionsMarshal.AsSpan(list146)[0] = "liza"; + questRoot38.Author = list146; QuestRoot questRoot39 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 @@ -356280,38 +293679,31 @@ public static class AssemblyQuestLoader num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span204 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) + Span span64 = CollectionsMarshal.AsSpan(list4); + span64[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 963) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.RadzAtHan }; - index2++; - span204[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) + span64[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 963) { AethernetShard = EAetheryteLocation.RadzAtHanHallOfTheRadiantHost }; - index2++; - span204[index2] = new QuestStep(EInteractionType.Interact, 1040374u, new Vector3(-145.80005f, 3.9999294f, -83.9704f), 963); + span64[2] = new QuestStep(EInteractionType.Interact, 1040374u, new Vector3(-145.80005f, 3.9999294f, -83.9704f), 963); questSequence49.Steps = list4; reference163 = questSequence; - num++; - ref QuestSequence reference164 = ref span201[num]; - QuestSequence obj99 = new QuestSequence + ref QuestSequence reference164 = ref span63[3]; + QuestSequence obj101 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 @@ -356320,39 +293712,32 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD110_04418_Q2_000_172"), Answer = new ExcelRef("TEXT_AKTKMD110_04418_A2_000_173") }; - questStep22.DialogueChoices = list141; - reference166 = questStep22; + questStep20.DialogueChoices = list150; + reference166 = questStep20; questSequence50.Steps = list4; reference165 = questSequence; - num++; - ref QuestSequence reference167 = ref span201[num]; + ref QuestSequence reference167 = ref span63[5]; questSequence = new QuestSequence { Sequence = 5 }; QuestSequence questSequence51 = questSequence; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -356361,98 +293746,82 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list142 = new List(num3); - CollectionsMarshal.SetCount(list142, num3); - Span span209 = CollectionsMarshal.AsSpan(list142); - index3 = 0; - span209[index3] = new DialogueChoice + List list151 = new List(num3); + CollectionsMarshal.SetCount(list151, num3); + CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMD110_04418_Q3_000_223"), Answer = new ExcelRef("TEXT_AKTKMD110_04418_A3_000_225") }; - obj100.DialogueChoices = list142; - reference168 = obj100; + obj102.DialogueChoices = list151; + reference168 = obj102; questSequence51.Steps = list4; reference167 = questSequence; - num++; - ref QuestSequence reference169 = ref span201[num]; - QuestSequence obj101 = new QuestSequence + ref QuestSequence reference169 = ref span63[6]; + QuestSequence obj103 = new QuestSequence { Sequence = 6 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj102.Steps = list144; - reference170 = obj102; + obj104.Steps = list153; + reference170 = obj104; questRoot39.QuestSequence = list2; AddQuest(questId19, questRoot); QuestId questId20 = new QuestId(4419); questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list145 = new List(num); - CollectionsMarshal.SetCount(list145, num); - Span span212 = CollectionsMarshal.AsSpan(list145); - index = 0; - span212[index] = "liza"; - questRoot40.Author = list145; + List list154 = new List(num); + CollectionsMarshal.SetCount(list154, num); + CollectionsMarshal.AsSpan(list154)[0] = "liza"; + questRoot40.Author = list154; QuestRoot questRoot41 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj103.Steps = list146; - reference171 = obj103; - num++; - ref QuestSequence reference172 = ref span213[num]; + obj105.Steps = list155; + reference171 = obj105; + ref QuestSequence reference172 = ref span65[1]; questSequence = new QuestSequence { Sequence = 1 }; QuestSequence questSequence52 = questSequence; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -356462,10 +293831,9 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - questSequence52.Steps = list147; + questSequence52.Steps = list156; reference172 = questSequence; - num++; - ref QuestSequence reference173 = ref span213[num]; + ref QuestSequence reference173 = ref span65[2]; questSequence = new QuestSequence { Sequence = 2 @@ -356474,9 +293842,7 @@ public static class AssemblyQuestLoader num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span216 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference174 = ref span216[index2]; + ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list4)[0]; questStep = new QuestStep(EInteractionType.Interact, 2012123u, new Vector3(-64.042114f, -37.70508f, -210.52875f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -356486,106 +293852,93 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumCabinetOfCuriosity } }; - QuestStep questStep23 = questStep; - index3 = 4; - list15 = new List(index3); - CollectionsMarshal.SetCount(list15, index3); - Span span217 = CollectionsMarshal.AsSpan(list15); - num3 = 0; - span217[num3] = new DialogueChoice + QuestStep questStep21 = questStep; + num3 = 4; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + Span span66 = CollectionsMarshal.AsSpan(list157); + span66[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q2_000_071") }; - num3++; - span217[num3] = new DialogueChoice + span66[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q3_000_083"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A3_000_087") }; - num3++; - span217[num3] = new DialogueChoice + span66[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q4_000_113"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A4_000_114") }; - num3++; - span217[num3] = new DialogueChoice + span66[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME101_04419_Q5_000_129"), Answer = new ExcelRef("TEXT_AKTKME101_04419_A5_000_131") }; - questStep23.DialogueChoices = list15; + questStep21.DialogueChoices = list157; reference174 = questStep; questSequence53.Steps = list4; reference173 = questSequence; - num++; - ref QuestSequence reference175 = ref span213[num]; - QuestSequence obj104 = new QuestSequence + ref QuestSequence reference175 = ref span65[3]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f }; - obj104.Steps = list148; - reference175 = obj104; + questSequence54.Steps = list158; + reference175 = questSequence; questRoot41.QuestSequence = list2; AddQuest(questId20, questRoot); QuestId questId21 = new QuestId(4420); questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list149 = new List(num); - CollectionsMarshal.SetCount(list149, num); - Span span219 = CollectionsMarshal.AsSpan(list149); - index = 0; - span219[index] = "liza"; - questRoot42.Author = list149; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + CollectionsMarshal.AsSpan(list159)[0] = "liza"; + questRoot42.Author = list159; QuestRoot questRoot43 = questRoot; - 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 + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span67 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference176 = ref span67[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence55 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 6f }; - obj105.Steps = list150; - reference176 = obj105; - num++; - ref QuestSequence reference177 = ref span220[num]; + questSequence55.Steps = list160; + reference176 = questSequence; + ref QuestSequence reference177 = ref span67[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -356594,26 +293947,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - questSequence54.Steps = list151; + questSequence56.Steps = list161; reference177 = questSequence; - num++; - span220[num] = new QuestSequence + span67[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference178 = ref span220[num]; + ref QuestSequence reference178 = ref span67[3]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence55 = questSequence; + QuestSequence questSequence57 = questSequence; num2 = 5; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span223 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference179 = ref span223[index2]; + Span span68 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference179 = ref span68[0]; questStep = new QuestStep(EInteractionType.Jump, null, new Vector3(-6.1157894f, 2.0849845f, -4.654831f), 1031) { JumpDestination = new JumpDestination @@ -356621,339 +293971,267 @@ public static class AssemblyQuestLoader Position = new Vector3(-1.5539734f, 3.6164591f, -1.1141448f) } }; - QuestStep questStep24 = questStep; + QuestStep questStep22 = questStep; skipConditions3 = new SkipConditions(); SkipConditions skipConditions5 = skipConditions3; skipStepConditions = new SkipStepConditions(); SkipStepConditions skipStepConditions3 = skipStepConditions; num3 = 6; - 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; + 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; skipConditions5.StepIf = skipStepConditions; - questStep24.SkipConditions = skipConditions3; + questStep22.SkipConditions = skipConditions3; reference179 = questStep; - index2++; - ref QuestStep reference180 = ref span223[index2]; + ref QuestStep reference180 = ref span68[1]; questStep = new QuestStep(EInteractionType.Interact, 2012128u, new Vector3(-0.001528129f, 4.931927f, 0.01416349f), 1031); - QuestStep questStep25 = questStep; - 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; + 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; - index2++; - ref QuestStep reference181 = ref span223[index2]; + 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); QuestStep questStep26 = questStep; num3 = 6; - 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; + 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; reference183 = questStep; - questSequence55.Steps = list4; + questSequence57.Steps = list4; reference178 = questSequence; - num++; - ref QuestSequence reference184 = ref span220[num]; + ref QuestSequence reference184 = ref span67[4]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - 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; + 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; reference184 = obj106; - num++; - ref QuestSequence reference185 = ref span220[num]; - QuestSequence obj107 = new QuestSequence + ref QuestSequence reference185 = ref span67[5]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; + QuestSequence questSequence58 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj107.Steps = list153; - reference185 = obj107; + questSequence58.Steps = list168; + reference185 = questSequence; questRoot43.QuestSequence = list2; AddQuest(questId21, questRoot); QuestId questId22 = new QuestId(4421); questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list154 = new List(num); - CollectionsMarshal.SetCount(list154, num); - Span span231 = CollectionsMarshal.AsSpan(list154); - index = 0; - span231[index] = "liza"; - questRoot44.Author = list154; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + CollectionsMarshal.AsSpan(list169)[0] = "liza"; + questRoot44.Author = list169; QuestRoot questRoot45 = questRoot; - 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 + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span74 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference186 = ref span74[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj108.Steps = list155; - reference186 = obj108; - num++; - ref QuestSequence reference187 = ref span232[num]; - QuestSequence obj109 = new QuestSequence + questSequence59.Steps = list170; + reference186 = questSequence; + ref QuestSequence reference187 = ref span74[1]; + QuestSequence obj107 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - 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 + 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 { ItemId = 2003232u, Condition = ECombatItemUseCondition.HealthPercent, Value = 50 }; - reference189 = questStep; - questSequence56.Steps = list4; + reference189 = obj108; + questSequence60.Steps = list4; reference188 = questSequence; - num++; - ref QuestSequence reference190 = ref span232[num]; - QuestSequence obj110 = new QuestSequence + ref QuestSequence reference190 = ref span74[3]; + QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; questRoot45.QuestSequence = list2; AddQuest(questId22, questRoot); QuestId questId23 = new QuestId(4422); questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list159 = new List(num); - CollectionsMarshal.SetCount(list159, num); - Span span238 = CollectionsMarshal.AsSpan(list159); - index = 0; - span238[index] = "liza"; - questRoot46.Author = list159; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + CollectionsMarshal.AsSpan(list174)[0] = "liza"; + questRoot46.Author = list174; QuestRoot questRoot47 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence57 = questSequence; + QuestSequence questSequence61 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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); + ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep questStep27 = new QuestStep(EInteractionType.CompleteQuest, 1040009u, new Vector3(366.84216f, -1.0297052f, 157.61035f), 961); num3 = 1; - List list163 = new List(num3); - CollectionsMarshal.SetCount(list163, num3); - Span span244 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span244[index3] = new DialogueChoice + List list178 = new List(num3); + CollectionsMarshal.SetCount(list178, num3); + CollectionsMarshal.AsSpan(list178)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME104_04422_Q1_000_094"), Answer = new ExcelRef("TEXT_AKTKME104_04422_A1_000_095") }; - questStep30.DialogueChoices = list163; - reference195 = questStep30; - questSequence57.Steps = list4; + questStep27.DialogueChoices = list178; + reference195 = questStep27; + questSequence61.Steps = list4; reference194 = questSequence; questRoot47.QuestSequence = list2; AddQuest(questId23, questRoot); @@ -356961,428 +294239,349 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list164 = new List(num); - CollectionsMarshal.SetCount(list164, num); - Span span245 = CollectionsMarshal.AsSpan(list164); - index = 0; - span245[index] = "liza"; - questRoot48.Author = list164; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + CollectionsMarshal.AsSpan(list179)[0] = "liza"; + questRoot48.Author = list179; QuestRoot questRoot49 = questRoot; - 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 + num = 9; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span77 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference196 = ref span77[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj114.Steps = list165; - reference196 = obj114; - num++; - ref QuestSequence reference197 = ref span246[num]; - QuestSequence obj115 = new QuestSequence + questSequence62.Steps = list180; + reference196 = questSequence; + ref QuestSequence reference197 = ref span77[1]; + QuestSequence obj113 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 6f, Aetheryte = EAetheryteLocation.ElpisAnagnorisis }; - num2++; - span249[num2] = new QuestStep(EInteractionType.Interact, 1040018u, new Vector3(156.45068f, 17.339952f, 53.665894f), 961); - questSequence58.Steps = list4; + span78[1] = new QuestStep(EInteractionType.Interact, 1040018u, new Vector3(156.45068f, 17.339952f, 53.665894f), 961); + questSequence63.Steps = list4; reference198 = questSequence; - num++; - ref QuestSequence reference199 = ref span246[num]; - QuestSequence obj116 = new QuestSequence + ref QuestSequence reference199 = ref span77[3]; + QuestSequence obj114 = new QuestSequence { Sequence = 3 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q1_000_106"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A1_000_107") }; - questStep31.DialogueChoices = list168; - reference201 = questStep31; - questSequence59.Steps = list4; + questStep28.DialogueChoices = list183; + reference201 = questStep28; + questSequence64.Steps = list4; reference200 = questSequence; - num++; - ref QuestSequence reference202 = ref span246[num]; + ref QuestSequence reference202 = ref span77[5]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence60 = questSequence; + QuestSequence questSequence65 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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); + ref QuestStep reference203 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1040970u, new Vector3(146.13562f, 10.385858f, 121.47705f), 961); num3 = 1; - List list169 = new List(num3); - CollectionsMarshal.SetCount(list169, num3); - Span span254 = CollectionsMarshal.AsSpan(list169); - index3 = 0; - span254[index3] = new DialogueChoice + List list184 = new List(num3); + CollectionsMarshal.SetCount(list184, num3); + CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q4_000_178"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A4_000_180") }; - questStep32.DialogueChoices = list169; - reference203 = questStep32; - questSequence60.Steps = list4; + questStep29.DialogueChoices = list184; + reference203 = questStep29; + questSequence65.Steps = list4; reference202 = questSequence; - num++; - ref QuestSequence reference204 = ref span246[num]; - QuestSequence obj117 = new QuestSequence + ref QuestSequence reference204 = ref span77[6]; + QuestSequence obj115 = new QuestSequence { Sequence = 6 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence61 = questSequence; + QuestSequence questSequence66 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME105_04423_Q7_000_313"), Answer = new ExcelRef("TEXT_AKTKME105_04423_A7_000_314") }; - questStep33.DialogueChoices = list171; - reference206 = questStep33; - questSequence61.Steps = list4; + questStep30.DialogueChoices = list186; + reference206 = questStep30; + questSequence66.Steps = list4; reference205 = questSequence; - num++; - ref QuestSequence reference207 = ref span246[num]; - QuestSequence obj118 = new QuestSequence + ref QuestSequence reference207 = ref span77[8]; + QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot49.QuestSequence = list2; AddQuest(questId24, questRoot); QuestId questId25 = new QuestId(4424); questRoot = new QuestRoot(); QuestRoot questRoot50 = questRoot; num = 1; - List list173 = new List(num); - CollectionsMarshal.SetCount(list173, num); - Span span259 = CollectionsMarshal.AsSpan(list173); - index = 0; - span259[index] = "liza"; - questRoot50.Author = list173; + List list188 = new List(num); + CollectionsMarshal.SetCount(list188, num); + CollectionsMarshal.AsSpan(list188)[0] = "liza"; + questRoot50.Author = list188; QuestRoot questRoot51 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - 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]; + QuestSequence questSequence67 = questSequence; + num2 = 2; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span80 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference212 = ref span80[0]; questStep = new QuestStep(EInteractionType.UseItem, 2012131u, new Vector3(369.19202f, 2.9754639f, 1.5411377f), 961) { ItemId = 2003234u, GroundTarget = true }; - QuestStep questStep34 = questStep; + QuestStep questStep31 = questStep; num3 = 6; - 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; + 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; reference212 = questStep; - num2++; - ref QuestStep reference213 = ref span264[num2]; + ref QuestStep reference213 = ref span80[1]; questStep = new QuestStep(EInteractionType.UseItem, 2012132u, new Vector3(373.18982f, 2.9754639f, 10.788086f), 961) { ItemId = 2003234u, GroundTarget = true }; - 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; + 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; reference213 = questStep; - questSequence62.Steps = list4; + questSequence67.Steps = list4; reference211 = questSequence; - num++; - ref QuestSequence reference214 = ref span260[num]; - QuestSequence obj122 = new QuestSequence + ref QuestSequence reference214 = ref span79[4]; + QuestSequence obj120 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot51.QuestSequence = list2; AddQuest(questId25, questRoot); QuestId questId26 = new QuestId(4425); questRoot = new QuestRoot(); QuestRoot questRoot52 = questRoot; num = 1; - List list179 = new List(num); - CollectionsMarshal.SetCount(list179, num); - Span span269 = CollectionsMarshal.AsSpan(list179); - index = 0; - span269[index] = "liza"; - questRoot52.Author = list179; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + CollectionsMarshal.AsSpan(list196)[0] = "liza"; + questRoot52.Author = list196; QuestRoot questRoot53 = questRoot; - index = 8; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span270 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference216 = ref span270[num]; + num = 8; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span83 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference216 = ref span83[0]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence63 = questSequence; + QuestSequence questSequence68 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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); + ref QuestStep reference217 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep questStep33 = new QuestStep(EInteractionType.AcceptQuest, 1040050u, new Vector3(560.32654f, 9.796983f, 63.70642f), 961); num3 = 1; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span272 = CollectionsMarshal.AsSpan(list180); - index3 = 0; - span272[index3] = new DialogueChoice + List list197 = new List(num3); + CollectionsMarshal.SetCount(list197, num3); + CollectionsMarshal.AsSpan(list197)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME107_04425_Q1_000_024"), Answer = new ExcelRef("TEXT_AKTKME107_04425_A1_000_025") }; - questStep36.DialogueChoices = list180; - reference217 = questStep36; - questSequence63.Steps = list4; + questStep33.DialogueChoices = list197; + reference217 = questStep33; + questSequence68.Steps = list4; reference216 = questSequence; - num++; - ref QuestSequence reference218 = ref span270[num]; - QuestSequence obj124 = new QuestSequence + ref QuestSequence reference218 = ref span83[1]; + QuestSequence obj122 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence64 = questSequence; + QuestSequence questSequence69 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span274 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012020u, new Vector3(628.2388f, 8.316829f, 107.9021f), 961) + Span span84 = CollectionsMarshal.AsSpan(list4); + span84[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012020u, new Vector3(628.2388f, 8.316829f, 107.9021f), 961) { AetherCurrentId = 2818374u }; - index2++; - span274[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(475.2184f, -17.473314f, 47.986946f), 961) + span84[1] = new QuestStep(EInteractionType.Jump, null, new Vector3(475.2184f, -17.473314f, 47.986946f), 961) { JumpDestination = new JumpDestination { @@ -357390,82 +294589,71 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span274[index2] = new QuestStep(EInteractionType.Interact, 1040052u, new Vector3(349.14172f, -14.766006f, -111.61981f), 961); - questSequence64.Steps = list4; + span84[2] = new QuestStep(EInteractionType.Interact, 1040052u, new Vector3(349.14172f, -14.766006f, -111.61981f), 961); + questSequence69.Steps = list4; reference219 = questSequence; - num++; - ref QuestSequence reference220 = ref span270[num]; - QuestSequence obj125 = new QuestSequence + ref QuestSequence reference220 = ref span83[3]; + questSequence = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; - obj125.Steps = list182; - reference220 = obj125; - num++; - ref QuestSequence reference221 = ref span270[num]; + questSequence70.Steps = list199; + reference220 = questSequence; + ref QuestSequence reference221 = ref span83[4]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence65 = questSequence; + QuestSequence questSequence71 = questSequence; num2 = 1; - 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) + 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) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKME107_04425_SAYTODO_000_190" } }; - questSequence65.Steps = list183; + questSequence71.Steps = list200; reference221 = questSequence; - num++; - ref QuestSequence reference222 = ref span270[num]; + ref QuestSequence reference222 = ref span83[5]; questSequence = new QuestSequence { Sequence = 5 }; - 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) + 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) { ChatMessage = new ChatMessage { Key = "TEXT_AKTKME107_04425_SAYTODO_000_210" } }; - questSequence66.Steps = list184; + questSequence72.Steps = list201; reference222 = questSequence; - num++; - ref QuestSequence reference223 = ref span270[num]; + ref QuestSequence reference223 = ref span83[6]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence67 = questSequence; + QuestSequence questSequence73 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span278 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-55.662647f, -16.696985f, -81.29199f), 961) + Span span85 = CollectionsMarshal.AsSpan(list4); + span85[0] = new QuestStep(EInteractionType.Jump, null, new Vector3(-55.662647f, -16.696985f, -81.29199f), 961) { StopDistance = 0.25f, DisableNavmesh = true, @@ -357474,621 +294662,517 @@ public static class AssemblyQuestLoader Position = new Vector3(-58.75509f, -15.402463f, -83.133934f) } }; - index2++; - span278[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(-64.19198f, -15.332472f, -84.65695f), 961) + span85[1] = new QuestStep(EInteractionType.Emote, null, new Vector3(-64.19198f, -15.332472f, -84.65695f), 961) { StopDistance = 0.25f, Emote = EEmote.Wave }; - questSequence67.Steps = list4; + questSequence73.Steps = list4; reference223 = questSequence; - num++; - ref QuestSequence reference224 = ref span270[num]; - QuestSequence obj126 = new QuestSequence + ref QuestSequence reference224 = ref span83[7]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - obj126.Steps = list185; - reference224 = obj126; + questSequence74.Steps = list202; + reference224 = questSequence; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); QuestId questId27 = new QuestId(4426); questRoot = new QuestRoot(); QuestRoot questRoot54 = questRoot; num = 1; - List list186 = new List(num); - CollectionsMarshal.SetCount(list186, num); - Span span280 = CollectionsMarshal.AsSpan(list186); - index = 0; - span280[index] = "liza"; - questRoot54.Author = list186; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + CollectionsMarshal.AsSpan(list203)[0] = "liza"; + questRoot54.Author = list203; QuestRoot questRoot55 = questRoot; - 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 + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span86 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference225 = ref span86[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence75 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj127.Steps = list187; - reference225 = obj127; - num++; - ref QuestSequence reference226 = ref span281[num]; + questSequence75.Steps = list204; + reference225 = questSequence; + ref QuestSequence reference226 = ref span86[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(4507) }; - 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; + 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; reference226 = questSequence; - num++; - ref QuestSequence reference227 = ref span281[num]; - QuestSequence obj128 = new QuestSequence + ref QuestSequence reference227 = ref span86[2]; + QuestSequence obj123 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 6f, Aetheryte = EAetheryteLocation.ElpisTwelveWonders }; - num2++; - span285[num2] = new QuestStep(EInteractionType.Interact, 1040081u, new Vector3(-659.35767f, -22.39482f, 525.44434f), 961); - questSequence69.Steps = list4; + span88[1] = new QuestStep(EInteractionType.Interact, 1040081u, new Vector3(-659.35767f, -22.39482f, 525.44434f), 961); + questSequence77.Steps = list4; reference228 = questSequence; - num++; - ref QuestSequence reference229 = ref span281[num]; - QuestSequence obj129 = new QuestSequence + ref QuestSequence reference229 = ref span86[4]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; + QuestSequence questSequence78 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj129.Steps = list189; - reference229 = obj129; + questSequence78.Steps = list206; + reference229 = questSequence; questRoot55.QuestSequence = list2; AddQuest(questId27, questRoot); QuestId questId28 = new QuestId(4427); questRoot = new QuestRoot(); QuestRoot questRoot56 = questRoot; num = 1; - List list190 = new List(num); - CollectionsMarshal.SetCount(list190, num); - Span span287 = CollectionsMarshal.AsSpan(list190); - index = 0; - span287[index] = "liza"; - questRoot56.Author = list190; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + CollectionsMarshal.AsSpan(list207)[0] = "liza"; + questRoot56.Author = list207; QuestRoot questRoot57 = questRoot; - 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 + num = 10; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span89 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference230 = ref span89[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj130.Steps = list191; - reference230 = obj130; - num++; - ref QuestSequence reference231 = ref span288[num]; - QuestSequence obj131 = new QuestSequence + questSequence79.Steps = list208; + reference230 = questSequence; + ref QuestSequence reference231 = ref span89[1]; + questSequence = new QuestSequence { Sequence = 1 }; + QuestSequence questSequence80 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj131.Steps = list192; - reference231 = obj131; - num++; - ref QuestSequence reference232 = ref span288[num]; + questSequence80.Steps = list209; + reference231 = questSequence; + ref QuestSequence reference232 = ref span89[2]; questSequence = new QuestSequence { Sequence = 2 }; - 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]; + QuestSequence questSequence81 = questSequence; + num2 = 2; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span90 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference233 = ref span90[0]; questStep = new QuestStep(EInteractionType.Interact, 2012135u, new Vector3(-621.2711f, -19.241638f, 546.50183f), 961); - 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; - num2++; - ref QuestStep reference234 = ref span291[num2]; - questStep = new QuestStep(EInteractionType.Interact, 2012136u, new Vector3(-583.85596f, -20.035156f, 543.572f), 961); - QuestStep questStep38 = questStep; + QuestStep questStep34 = questStep; num3 = 6; - 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; + 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; + reference233 = questStep; + ref QuestStep reference234 = ref span90[1]; + questStep = new QuestStep(EInteractionType.Interact, 2012136u, new Vector3(-583.85596f, -20.035156f, 543.572f), 961); + QuestStep questStep35 = 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; reference234 = questStep; - questSequence70.Steps = list4; + questSequence81.Steps = list4; reference232 = questSequence; - num++; - ref QuestSequence reference235 = ref span288[num]; - QuestSequence obj132 = new QuestSequence + ref QuestSequence reference235 = ref span89[3]; + QuestSequence obj124 = new QuestSequence { Sequence = 3 }; num2 = 1; - 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 + 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 { Sequence = 4 }; - 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 + 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 { Sequence = 5 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 6 }; - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME109_04427_Q3_000_163"), Answer = new ExcelRef("TEXT_AKTKME109_04427_A3_000_164") }; - questStep39.DialogueChoices = list196; - reference239 = questStep39; - questSequence71.Steps = list4; + questStep36.DialogueChoices = list215; + reference239 = questStep36; + questSequence82.Steps = list4; reference238 = questSequence; - num++; - ref QuestSequence reference240 = ref span288[num]; + ref QuestSequence reference240 = ref span89[7]; questSequence = new QuestSequence { Sequence = 7 }; - QuestSequence questSequence72 = questSequence; + QuestSequence questSequence83 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span299 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-734.30804f, -28.391644f, 432.59787f), 961) + Span span93 = CollectionsMarshal.AsSpan(list4); + span93[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-734.30804f, -28.391644f, 432.59787f), 961) { Mount = true }; - index2++; - span299[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012021u, new Vector3(-754.757f, -36.02661f, 411.12378f), 961) + span93[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012021u, new Vector3(-754.757f, -36.02661f, 411.12378f), 961) { DisableNavmesh = true, AetherCurrentId = 2818375u }; - index2++; - span299[index2] = new QuestStep(EInteractionType.Interact, 2012141u, new Vector3(-789.08984f, -36.05713f, 486.41187f), 961); - questSequence72.Steps = list4; + span93[2] = new QuestStep(EInteractionType.Interact, 2012141u, new Vector3(-789.08984f, -36.05713f, 486.41187f), 961); + questSequence83.Steps = list4; reference240 = questSequence; - num++; - ref QuestSequence reference241 = ref span288[num]; - QuestSequence obj135 = new QuestSequence + ref QuestSequence reference241 = ref span89[8]; + QuestSequence obj127 = new QuestSequence { Sequence = 8 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; questRoot57.QuestSequence = list2; AddQuest(questId28, questRoot); QuestId questId29 = new QuestId(4428); questRoot = new QuestRoot(); QuestRoot questRoot58 = questRoot; num = 1; - List list199 = new List(num); - CollectionsMarshal.SetCount(list199, num); - Span span302 = CollectionsMarshal.AsSpan(list199); - index = 0; - span302[index] = "liza"; - questRoot58.Author = list199; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + CollectionsMarshal.AsSpan(list218)[0] = "liza"; + questRoot58.Author = list218; QuestRoot questRoot59 = questRoot; - 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 + 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 { Sequence = 0 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence73 = questSequence; + QuestSequence questSequence84 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span305 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961) + Span span95 = CollectionsMarshal.AsSpan(list4); + span95[0] = new QuestStep(EInteractionType.AcceptQuest, 1037969u, new Vector3(-611.90204f, -22.39482f, 510.42944f), 961) { PickUpQuestId = new QuestId(4288) }; - index2++; - span305[index2] = new QuestStep(EInteractionType.Interact, 1040092u, new Vector3(-340.9629f, -39.973907f, 368.06274f), 961); - questSequence73.Steps = list4; + span95[1] = new QuestStep(EInteractionType.Interact, 1040092u, new Vector3(-340.9629f, -39.973907f, 368.06274f), 961); + questSequence84.Steps = list4; reference244 = questSequence; - num++; - ref QuestSequence reference245 = ref span303[num]; - QuestSequence obj138 = new QuestSequence + ref QuestSequence reference245 = ref span94[2]; + QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence74 = questSequence; + QuestSequence questSequence85 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference247 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj131 = new QuestStep(EInteractionType.Combat, null, new Vector3(-207.7455f, -30.993412f, 232.53859f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 2; - 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; + 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; reference246 = questSequence; - num++; - ref QuestSequence reference248 = ref span303[num]; - QuestSequence obj140 = new QuestSequence + ref QuestSequence reference248 = ref span94[4]; + QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = byte.MaxValue }; + QuestSequence questSequence86 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj141.Steps = list204; - reference249 = obj141; + questSequence86.Steps = list223; + reference249 = questSequence; questRoot59.QuestSequence = list2; AddQuest(questId29, questRoot); QuestId questId30 = new QuestId(4429); questRoot = new QuestRoot(); QuestRoot questRoot60 = questRoot; num = 1; - List list205 = new List(num); - CollectionsMarshal.SetCount(list205, num); - Span span311 = CollectionsMarshal.AsSpan(list205); - index = 0; - span311[index] = "liza"; - questRoot60.Author = list205; + List list224 = new List(num); + CollectionsMarshal.SetCount(list224, num); + CollectionsMarshal.AsSpan(list224)[0] = "liza"; + questRoot60.Author = list224; QuestRoot questRoot61 = questRoot; - 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 + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span97 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference250 = ref span97[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj142.Steps = list206; - reference250 = obj142; - num++; - ref QuestSequence reference251 = ref span312[num]; - QuestSequence obj143 = new QuestSequence + questSequence87.Steps = list225; + reference250 = questSequence; + ref QuestSequence reference251 = ref span97[1]; + questSequence = new QuestSequence { Sequence = 1 }; + QuestSequence questSequence88 = questSequence; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - obj143.Steps = list207; - reference251 = obj143; - num++; - ref QuestSequence reference252 = ref span312[num]; - QuestSequence obj144 = new QuestSequence + questSequence88.Steps = list226; + reference251 = questSequence; + ref QuestSequence reference252 = ref span97[2]; + QuestSequence obj133 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; + QuestSequence questSequence89 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj145.Steps = list209; - reference253 = obj145; - num++; - ref QuestSequence reference254 = ref span312[num]; - QuestSequence obj146 = new QuestSequence + questSequence89.Steps = list228; + reference253 = questSequence; + ref QuestSequence reference254 = ref span97[4]; + QuestSequence obj134 = new QuestSequence { Sequence = 4 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence75 = questSequence; + QuestSequence questSequence90 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKME111_04429_Q2_000_094"), Answer = new ExcelRef("TEXT_AKTKME111_04429_A2_000_096") }; - questStep40.DialogueChoices = list211; - reference256 = questStep40; - questSequence75.Steps = list4; + questStep37.DialogueChoices = list230; + reference256 = questStep37; + questSequence90.Steps = list4; reference255 = questSequence; questRoot61.QuestSequence = list2; AddQuest(questId30, questRoot); @@ -358096,628 +295180,531 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot62 = questRoot; num = 1; - List list212 = new List(num); - CollectionsMarshal.SetCount(list212, num); - Span span320 = CollectionsMarshal.AsSpan(list212); - index = 0; - span320[index] = "liza"; - questRoot62.Author = list212; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + CollectionsMarshal.AsSpan(list231)[0] = "liza"; + questRoot62.Author = list231; QuestRoot questRoot63 = questRoot; - 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 + 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 { Sequence = 0 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence76 = questSequence; + QuestSequence questSequence91 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span323 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) + Span span99 = CollectionsMarshal.AsSpan(list4); + span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 961) { StopDistance = 7f, Aetheryte = EAetheryteLocation.ElpisPoietenOikos }; - index2++; - span323[index2] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); - questSequence76.Steps = list4; + span99[1] = new QuestStep(EInteractionType.Interact, 1040112u, new Vector3(-586.5721f, 167.99568f, -265.49176f), 961); + questSequence91.Steps = list4; reference258 = questSequence; - num++; - ref QuestSequence reference259 = ref span321[num]; - QuestSequence obj148 = new QuestSequence - { - Sequence = 2 - }; - 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 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 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 questStep41 = questStep; - num3 = 4; - 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") - }; - 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") - }; - 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") - }; - 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") - }; - questStep41.DialogueChoices = list15; - reference262 = questStep; - questSequence77.Steps = list4; - reference261 = questSequence; - num++; - ref QuestSequence reference263 = ref span321[num]; - QuestSequence obj150 = new QuestSequence - { - Sequence = 5 - }; - num2 = 1; - 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 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 - }; - 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 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") - }; - 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") - }; - 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") - }; - 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") - }; - questStep42.DialogueChoices = list15; - reference265 = questStep; - questSequence78.Steps = list4; - reference264 = questSequence; - num++; - ref QuestSequence reference266 = ref span321[num]; - QuestSequence obj151 = new QuestSequence - { - Sequence = byte.MaxValue - }; - num2 = 1; - 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 list218 = new List(num); - CollectionsMarshal.SetCount(list218, num); - Span span332 = CollectionsMarshal.AsSpan(list218); - index = 0; - span332[index] = "liza"; - questRoot64.Author = list218; - QuestRoot questRoot65 = questRoot; - 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 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 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") - }; - questStep43.DialogueChoices = list219; - reference268 = questStep43; - questSequence79.Steps = list4; - reference267 = questSequence; - num++; - ref QuestSequence reference269 = ref span333[num]; - QuestSequence obj152 = new QuestSequence - { - Sequence = 1 - }; - num2 = 1; - 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 - }; - 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 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 - }; - 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 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 - }; - 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 - }; - 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 list226 = new List(num); - CollectionsMarshal.SetCount(list226, num); - Span span342 = CollectionsMarshal.AsSpan(list226); - index = 0; - span342[index] = "liza"; - questRoot66.Author = list226; - QuestRoot questRoot67 = questRoot; - 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 - }; - num2 = 1; - 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 - }; - obj158.Steps = list227; - reference275 = obj158; - num++; - ref QuestSequence reference276 = ref span343[num]; - questSequence = new QuestSequence - { - Sequence = 1 - }; - 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; - num++; - ref QuestSequence reference277 = ref span343[num]; - questSequence = new QuestSequence - { - Sequence = 2 - }; - QuestSequence questSequence81 = questSequence; - num2 = 1; - 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 - } - }; - questSequence81.Steps = list228; - reference277 = questSequence; - num++; - span343[num] = new QuestSequence - { - Sequence = 3 - }; - num++; - ref QuestSequence reference278 = ref span343[num]; - QuestSequence obj159 = new QuestSequence - { - Sequence = byte.MaxValue - }; - 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 - }; - 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 list230 = new List(num); - CollectionsMarshal.SetCount(list230, num); - Span span348 = CollectionsMarshal.AsSpan(list230); - index = 0; - span348[index] = "liza"; - questRoot68.Author = list230; - QuestRoot questRoot69 = questRoot; - 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 - }; - num2 = 1; - 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 - }; - obj160.Steps = list231; - reference279 = obj160; - num++; - ref QuestSequence reference280 = ref span349[num]; - questSequence = new QuestSequence - { - Sequence = 1 - }; - 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 - }; - 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") - }; - questStep44.DialogueChoices = list232; - reference281 = questStep44; - questSequence82.Steps = list4; - reference280 = questSequence; - num++; - ref QuestSequence reference282 = ref span349[num]; - QuestSequence obj161 = new QuestSequence + ref QuestSequence reference259 = ref span98[2]; + QuestSequence obj136 = new QuestSequence { Sequence = 2 }; num2 = 1; 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 + 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 { Sequence = 3 }; - 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) + 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]; + questSequence = new QuestSequence { - AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos + Sequence = 4 }; - SkipConditions skipConditions6 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - num3 = 1; - 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; - 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 - }; - SkipConditions skipConditions7 = new SkipConditions(); - SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - 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; - 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 list236 = new List(num3); - CollectionsMarshal.SetCount(list236, num3); - Span span357 = CollectionsMarshal.AsSpan(list236); - index3 = 0; - span357[index3] = new DialogueChoice + QuestSequence questSequence92 = questSequence; + num2 = 1; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list4)[0]; + questStep = new QuestStep(EInteractionType.Interact, 1040116u, new Vector3(-578.4542f, 159.66537f, -173.75458f), 961); + QuestStep questStep38 = questStep; + num3 = 4; + list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + Span span100 = CollectionsMarshal.AsSpan(list157); + span100[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, - Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q2_000_062") + Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q1_000_072") }; - questStep45.DialogueChoices = list236; - reference286 = questStep45; - questSequence83.Steps = list4; - reference283 = questSequence; - num++; - ref QuestSequence reference287 = ref span349[num]; - QuestSequence obj164 = new QuestSequence + span100[1] = 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 + { + 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 + { + Type = EDialogChoiceType.List, + Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q4_000_098"), + Answer = new ExcelRef("TEXT_AKTKME112_04430_A4_000_099") + }; + questStep38.DialogueChoices = list157; + reference262 = questStep; + questSequence92.Steps = list4; + reference261 = questSequence; + ref QuestSequence reference263 = ref span98[5]; + QuestSequence obj138 = 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]; + 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) + { + Mount = true + }; + ref QuestStep reference265 = ref span101[1]; + 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 + { + Type = EDialogChoiceType.YesNo, + Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q5_000_152") + }; + span102[1] = 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 + { + 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 + { + Type = EDialogChoiceType.List, + Prompt = new ExcelRef("TEXT_AKTKME112_04430_Q8_000_181"), + Answer = new ExcelRef("TEXT_AKTKME112_04430_A8_000_182") + }; + questStep39.DialogueChoices = list157; + reference265 = questStep; + questSequence93.Steps = list4; + reference264 = questSequence; + ref QuestSequence reference266 = ref span98[7]; + QuestSequence obj139 = 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; + 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; + QuestRoot questRoot65 = questRoot; + num = 7; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span103 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference267 = ref span103[0]; + 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); + num3 = 1; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + CollectionsMarshal.AsSpan(list238)[0] = 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; + reference267 = questSequence; + ref QuestSequence reference269 = ref span103[1]; + QuestSequence obj140 = 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 + { + 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 + { + 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 { Sequence = 4 }; num2 = 1; - 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) + 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 { - StopDistance = 6f + Sequence = 5 }; - obj164.Steps = list237; - reference287 = obj164; - num++; - ref QuestSequence reference288 = ref span349[num]; + 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 { Sequence = byte.MaxValue }; - 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) + 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) + { + StopDistance = 5f + }; + questSequence95.Steps = list244; + reference274 = questSequence; + 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; + 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 + { + 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) + { + StopDistance = 5f + }; + questSequence96.Steps = list246; + reference275 = questSequence; + ref QuestSequence reference276 = ref span104[1]; + 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; + reference276 = questSequence; + ref QuestSequence reference277 = ref span104[2]; + questSequence = new QuestSequence + { + Sequence = 2 + }; + QuestSequence questSequence98 = 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) + { + SinglePlayerDutyOptions = new SinglePlayerDutyOptions + { + Enabled = true + } + }; + questSequence98.Steps = list248; + reference277 = questSequence; + span104[3] = new QuestSequence + { + Sequence = 3 + }; + ref QuestSequence reference278 = ref span104[4]; + questSequence = 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) + { + StopDistance = 5f + }; + questSequence99.Steps = list249; + reference278 = questSequence; + 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; + 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 + { + 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) + { + StopDistance = 5f + }; + questSequence100.Steps = list251; + reference279 = questSequence; + ref QuestSequence reference280 = ref span106[1]; + 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) + { + 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 + { + Type = EDialogChoiceType.YesNo, + Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q1_000_021") + }; + questStep41.DialogueChoices = list252; + reference281 = questStep41; + questSequence101.Steps = list4; + reference280 = questSequence; + ref QuestSequence reference282 = ref span106[2]; + QuestSequence obj145 = 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]; + 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) + { + 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; + 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) + { + 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; + 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); + num3 = 1; + List list256 = new List(num3); + CollectionsMarshal.SetCount(list256, num3); + CollectionsMarshal.AsSpan(list256)[0] = new DialogueChoice + { + Type = EDialogChoiceType.YesNo, + Prompt = new ExcelRef("TEXT_AKTKME115_04433_Q2_000_062") + }; + questStep44.DialogueChoices = list256; + reference286 = questStep44; + questSequence102.Steps = list4; + reference283 = questSequence; + ref QuestSequence reference287 = ref span106[4]; + questSequence = 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) + { + StopDistance = 6f + }; + questSequence103.Steps = list257; + reference287 = questSequence; + ref QuestSequence reference288 = ref span106[5]; + 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) { AetherCurrentId = 2818379u }; - num2++; - span359[num2] = new QuestStep(EInteractionType.CompleteQuest, 1040135u, new Vector3(-407.46167f, 329.89032f, -759.24316f), 961); - questSequence84.Steps = list4; + span109[1] = new QuestStep(EInteractionType.CompleteQuest, 1040135u, new Vector3(-407.46167f, 329.89032f, -759.24316f), 961); + questSequence104.Steps = list4; reference288 = questSequence; questRoot69.QuestSequence = list2; AddQuest(questId34, questRoot); @@ -358725,386 +295712,321 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot70 = questRoot; num = 1; - List list238 = new List(num); - CollectionsMarshal.SetCount(list238, num); - Span span360 = CollectionsMarshal.AsSpan(list238); - index = 0; - span360[index] = "liza"; - questRoot70.Author = list238; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + CollectionsMarshal.AsSpan(list258)[0] = "liza"; + questRoot70.Author = list258; QuestRoot questRoot71 = questRoot; - 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 + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span110 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference289 = ref span110[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence105 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj165.Steps = list239; - reference289 = obj165; - num++; - ref QuestSequence reference290 = ref span361[num]; + questSequence105.Steps = list259; + reference289 = questSequence; + ref QuestSequence reference290 = ref span110[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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 + 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 { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME116_04434_Q1_000_021") }; - questStep46.DialogueChoices = list240; - reference291 = questStep46; - questSequence85.Steps = list4; + questStep45.DialogueChoices = list260; + reference291 = questStep45; + questSequence106.Steps = list4; reference290 = questSequence; - num++; - ref QuestSequence reference292 = ref span361[num]; - QuestSequence obj166 = new QuestSequence + ref QuestSequence reference292 = ref span110[2]; + QuestSequence obj146 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; questRoot71.QuestSequence = list2; AddQuest(questId35, questRoot); QuestId questId36 = new QuestId(4435); questRoot = new QuestRoot(); QuestRoot questRoot72 = questRoot; num = 1; - List list244 = new List(num); - CollectionsMarshal.SetCount(list244, num); - Span span368 = CollectionsMarshal.AsSpan(list244); - index = 0; - span368[index] = "liza"; - questRoot72.Author = list244; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + CollectionsMarshal.AsSpan(list264)[0] = "liza"; + questRoot72.Author = list264; QuestRoot questRoot73 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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 + 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 { Sequence = 4 }; - 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 + 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 { Sequence = byte.MaxValue }; + QuestSequence questSequence107 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj174.Steps = list250; - reference300 = obj174; + questSequence107.Steps = list270; + reference300 = questSequence; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); QuestId questId37 = new QuestId(4436); questRoot = new QuestRoot(); QuestRoot questRoot74 = questRoot; num = 1; - List list251 = new List(num); - CollectionsMarshal.SetCount(list251, num); - Span span376 = CollectionsMarshal.AsSpan(list251); - index = 0; - span376[index] = "liza"; - questRoot74.Author = list251; + List list271 = new List(num); + CollectionsMarshal.SetCount(list271, num); + CollectionsMarshal.AsSpan(list271)[0] = "liza"; + questRoot74.Author = list271; QuestRoot questRoot75 = questRoot; - 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 + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span112 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference301 = ref span112[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj175.Steps = list252; - reference301 = obj175; - num++; - ref QuestSequence reference302 = ref span377[num]; - QuestSequence obj176 = new QuestSequence + questSequence108.Steps = list272; + reference301 = questSequence; + ref QuestSequence reference302 = ref span112[1]; + QuestSequence obj154 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span380[num2] = new QuestStep(EInteractionType.Interact, 2012169u, new Vector3(523.7352f, 139.29956f, -186.9383f), 961); - questSequence86.Steps = list4; + span113[1] = new QuestStep(EInteractionType.Interact, 2012169u, new Vector3(523.7352f, 139.29956f, -186.9383f), 961); + questSequence109.Steps = list4; reference303 = questSequence; - num++; - ref QuestSequence reference304 = ref span377[num]; + ref QuestSequence reference304 = ref span112[3]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence87 = questSequence; + QuestSequence questSequence110 = questSequence; num2 = 2; - 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; + 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; reference304 = questSequence; - num++; - ref QuestSequence reference305 = ref span377[num]; - QuestSequence obj177 = new QuestSequence + ref QuestSequence reference305 = ref span112[4]; + QuestSequence obj155 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = byte.MaxValue }; + QuestSequence questSequence111 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj178.Steps = list255; - reference306 = obj178; + questSequence111.Steps = list276; + reference306 = questSequence; questRoot75.QuestSequence = list2; AddQuest(questId37, questRoot); QuestId questId38 = new QuestId(4437); questRoot = new QuestRoot(); QuestRoot questRoot76 = questRoot; num = 1; - List list256 = new List(num); - CollectionsMarshal.SetCount(list256, num); - Span span384 = CollectionsMarshal.AsSpan(list256); - index = 0; - span384[index] = "liza"; - questRoot76.Author = list256; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + CollectionsMarshal.AsSpan(list277)[0] = "liza"; + questRoot76.Author = list277; QuestRoot questRoot77 = questRoot; - 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 + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span115 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference307 = ref span115[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj179.Steps = list257; - reference307 = obj179; - num++; - ref QuestSequence reference308 = ref span385[num]; - QuestSequence obj180 = new QuestSequence + questSequence112.Steps = list278; + reference307 = questSequence; + ref QuestSequence reference308 = ref span115[1]; + QuestSequence obj156 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { DutyOptions = new DutyOptions { @@ -359112,122 +296034,105 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 787u } }; - questSequence88.Steps = list259; + questSequence113.Steps = list280; reference309 = questSequence; - num++; - span385[num] = new QuestSequence + span115[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference310 = ref span385[num]; - QuestSequence obj181 = new QuestSequence + ref QuestSequence reference310 = ref span115[4]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; + QuestSequence questSequence114 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj181.Steps = list260; - reference310 = obj181; + questSequence114.Steps = list281; + reference310 = questSequence; questRoot77.QuestSequence = list2; AddQuest(questId38, questRoot); QuestId questId39 = new QuestId(4438); questRoot = new QuestRoot(); QuestRoot questRoot78 = questRoot; num = 1; - List list261 = new List(num); - CollectionsMarshal.SetCount(list261, num); - Span span390 = CollectionsMarshal.AsSpan(list261); - index = 0; - span390[index] = "liza"; - questRoot78.Author = list261; + List list282 = new List(num); + CollectionsMarshal.SetCount(list282, num); + CollectionsMarshal.AsSpan(list282)[0] = "liza"; + questRoot78.Author = list282; QuestRoot questRoot79 = questRoot; - 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 + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span116 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference311 = ref span116[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj182.Steps = list262; - reference311 = obj182; - num++; - ref QuestSequence reference312 = ref span391[num]; + questSequence115.Steps = list283; + reference311 = questSequence; + ref QuestSequence reference312 = ref span116[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence89 = questSequence; + QuestSequence questSequence116 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference313 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1040160u, new Vector3(265.156f, 46.937138f, 790.70715f), 961) { Fly = true }; num3 = 1; - List list263 = new List(num3); - CollectionsMarshal.SetCount(list263, num3); - Span span394 = CollectionsMarshal.AsSpan(list263); - index3 = 0; - span394[index3] = new DialogueChoice + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKME120_04438_Q1_000_008") }; - obj183.DialogueChoices = list263; - reference313 = obj183; - questSequence89.Steps = list4; + obj157.DialogueChoices = list284; + reference313 = obj157; + questSequence116.Steps = list4; reference312 = questSequence; - num++; - ref QuestSequence reference314 = ref span391[num]; - QuestSequence obj184 = new QuestSequence + ref QuestSequence reference314 = ref span116[2]; + QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence90 = questSequence; + QuestSequence questSequence117 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span396 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span396[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + Span span117 = CollectionsMarshal.AsSpan(list4); + span117[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -359237,9 +296142,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - index2++; - span396[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); - questSequence90.Steps = list4; + span117[1] = new QuestStep(EInteractionType.CompleteQuest, 1040161u, new Vector3(-0.35101318f, 1.9073486E-06f, -3.3417358f), 987); + questSequence117.Steps = list4; reference315 = questSequence; questRoot79.QuestSequence = list2; AddQuest(questId39, questRoot); @@ -359247,44 +296151,36 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot80 = questRoot; num = 1; - List list265 = new List(num); - CollectionsMarshal.SetCount(list265, num); - Span span397 = CollectionsMarshal.AsSpan(list265); - index = 0; - span397[index] = "liza"; - questRoot80.Author = list265; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + CollectionsMarshal.AsSpan(list286)[0] = "liza"; + questRoot80.Author = list286; QuestRoot questRoot81 = questRoot; - 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 + 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 { Sequence = 0 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence91 = questSequence; + QuestSequence questSequence118 = questSequence; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -359292,91 +296188,78 @@ public static class AssemblyQuestLoader Enabled = true } }; - questSequence91.Steps = list267; + questSequence118.Steps = list288; reference317 = questSequence; - num++; - span398[num] = new QuestSequence + span118[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference318 = ref span398[num]; - QuestSequence obj186 = new QuestSequence + ref QuestSequence reference318 = ref span118[3]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f }; - obj186.Steps = list268; - reference318 = obj186; + questSequence119.Steps = list289; + reference318 = questSequence; questRoot81.QuestSequence = list2; AddQuest(questId40, questRoot); QuestId questId41 = new QuestId(4440); questRoot = new QuestRoot(); QuestRoot questRoot82 = questRoot; num = 1; - List list269 = new List(num); - CollectionsMarshal.SetCount(list269, num); - Span span402 = CollectionsMarshal.AsSpan(list269); - index = 0; - span402[index] = "liza"; - questRoot82.Author = list269; + List list290 = new List(num); + CollectionsMarshal.SetCount(list290, num); + CollectionsMarshal.AsSpan(list290)[0] = "liza"; + questRoot82.Author = list290; QuestRoot questRoot83 = questRoot; - 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 + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span119 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference319 = ref span119[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence120 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj187.Steps = list270; - reference319 = obj187; - num++; - ref QuestSequence reference320 = ref span403[num]; - QuestSequence obj188 = new QuestSequence + questSequence120.Steps = list291; + reference319 = questSequence; + ref QuestSequence reference320 = ref span119[1]; + QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence92 = questSequence; + QuestSequence questSequence121 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span406 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) + CollectionsMarshal.AsSpan(list4)[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.56799f, 5.0201416f, 4.5318604f), 962) { TargetTerritoryId = (ushort)987, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -359386,26 +296269,23 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - questSequence92.Steps = list4; + questSequence121.Steps = list4; reference321 = questSequence; - num++; - ref QuestSequence reference322 = ref span403[num]; + ref QuestSequence reference322 = ref span119[3]; questSequence = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)962 }; - num2++; - span407[num2] = new QuestStep(EInteractionType.Interact, 1039683u, new Vector3(-3.1586914f, 41.530132f, -160.35712f), 962) + span120[1] = new QuestStep(EInteractionType.Interact, 1039683u, new Vector3(-3.1586914f, 41.530132f, -160.35712f), 962) { AethernetShortcut = new AethernetShortcut { @@ -359413,348 +296293,282 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanRostra } }; - questSequence93.Steps = list4; + questSequence122.Steps = list4; reference322 = questSequence; - num++; - ref QuestSequence reference323 = ref span403[num]; - QuestSequence obj189 = new QuestSequence + ref QuestSequence reference323 = ref span119[4]; + QuestSequence obj161 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); QuestId questId42 = new QuestId(4441); questRoot = new QuestRoot(); QuestRoot questRoot84 = questRoot; num = 1; - List list274 = new List(num); - CollectionsMarshal.SetCount(list274, num); - Span span410 = CollectionsMarshal.AsSpan(list274); - index = 0; - span410[index] = "liza"; - questRoot84.Author = list274; + List list295 = new List(num); + CollectionsMarshal.SetCount(list295, num); + CollectionsMarshal.AsSpan(list295)[0] = "liza"; + questRoot84.Author = list295; QuestRoot questRoot85 = questRoot; - 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 + num = 8; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span121 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference325 = ref span121[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence123 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj191.Steps = list275; - reference325 = obj191; - num++; - ref QuestSequence reference326 = ref span411[num]; - QuestSequence obj192 = new QuestSequence + questSequence123.Steps = list296; + reference325 = questSequence; + ref QuestSequence reference326 = ref span121[1]; + questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; - obj192.Steps = list276; - reference326 = obj192; - num++; - ref QuestSequence reference327 = ref span411[num]; + questSequence124.Steps = list297; + reference326 = questSequence; + ref QuestSequence reference327 = ref span121[2]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence94 = questSequence; + QuestSequence questSequence125 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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 + 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 { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF103_04441_Q1_000_096") }; - 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; + questStep46.DialogueChoices = list298; + reference328 = questStep46; + span122[1] = new QuestStep(EInteractionType.Interact, 1039711u, new Vector3(346.4254f, 90.90158f, -371.1147f), 956); + questSequence125.Steps = list4; reference327 = questSequence; - num++; - ref QuestSequence reference329 = ref span411[num]; - QuestSequence obj193 = new QuestSequence + ref QuestSequence reference329 = ref span121[3]; + QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence95 = questSequence; + QuestSequence questSequence126 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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); + ref QuestStep reference331 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep questStep47 = new QuestStep(EInteractionType.Interact, 1039721u, new Vector3(362.02026f, 79.691376f, 302.11328f), 956); num3 = 1; - List list279 = new List(num3); - CollectionsMarshal.SetCount(list279, num3); - Span span418 = CollectionsMarshal.AsSpan(list279); - index3 = 0; - span418[index3] = new DialogueChoice + List list300 = new List(num3); + CollectionsMarshal.SetCount(list300, num3); + CollectionsMarshal.AsSpan(list300)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF103_04441_Q1_000_181") }; - questStep48.DialogueChoices = list279; - reference331 = questStep48; - questSequence95.Steps = list4; + questStep47.DialogueChoices = list300; + reference331 = questStep47; + questSequence126.Steps = list4; reference330 = questSequence; - num++; - ref QuestSequence reference332 = ref span411[num]; - QuestSequence obj194 = new QuestSequence + ref QuestSequence reference332 = ref span121[5]; + QuestSequence obj164 = new QuestSequence { Sequence = 5 }; - 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 + 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 { Sequence = 6 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot85.QuestSequence = list2; AddQuest(questId42, questRoot); QuestId questId43 = new QuestId(4442); questRoot = new QuestRoot(); QuestRoot questRoot86 = questRoot; num = 1; - List list283 = new List(num); - CollectionsMarshal.SetCount(list283, num); - Span span422 = CollectionsMarshal.AsSpan(list283); - index = 0; - span422[index] = "liza"; - questRoot86.Author = list283; + List list304 = new List(num); + CollectionsMarshal.SetCount(list304, num); + CollectionsMarshal.AsSpan(list304)[0] = "liza"; + questRoot86.Author = list304; QuestRoot questRoot87 = questRoot; - 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 + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span123 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference335 = ref span123[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence127 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj197.Steps = list284; - reference335 = obj197; - num++; - ref QuestSequence reference336 = ref span423[num]; - QuestSequence obj198 = new QuestSequence + questSequence127.Steps = list305; + reference335 = questSequence; + ref QuestSequence reference336 = ref span123[1]; + QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence96 = questSequence; + QuestSequence questSequence128 = questSequence; num2 = 3; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span426 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - ref QuestStep reference338 = ref span426[index2]; + Span span124 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference338 = ref span124[0]; questStep = new QuestStep(EInteractionType.Interact, 1037271u, new Vector3(84.64172f, -31.530367f, 31.021484f), 956); - QuestStep questStep49 = questStep; - 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; + 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; - index2++; - ref QuestStep reference339 = ref span426[index2]; + 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); QuestStep questStep50 = questStep; num3 = 6; - 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; + 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; reference340 = questStep; - questSequence96.Steps = list4; + questSequence128.Steps = list4; reference337 = questSequence; - num++; - ref QuestSequence reference341 = ref span423[num]; + ref QuestSequence reference341 = ref span123[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, Aetheryte = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - num2++; - span430[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039761u, new Vector3(-17.685242f, -31.53043f, -76.798706f), 956); - questSequence97.Steps = list4; + span128[1] = new QuestStep(EInteractionType.CompleteQuest, 1039761u, new Vector3(-17.685242f, -31.53043f, -76.798706f), 956); + questSequence129.Steps = list4; reference341 = questSequence; questRoot87.QuestSequence = list2; AddQuest(questId43, questRoot); @@ -359762,141 +296576,117 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot88 = questRoot; num = 1; - List list286 = new List(num); - CollectionsMarshal.SetCount(list286, num); - Span span431 = CollectionsMarshal.AsSpan(list286); - index = 0; - span431[index] = "liza"; - questRoot88.Author = list286; + List list310 = new List(num); + CollectionsMarshal.SetCount(list310, num); + CollectionsMarshal.AsSpan(list310)[0] = "liza"; + questRoot88.Author = list310; QuestRoot questRoot89 = questRoot; - 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 + num = 7; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span129 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference342 = ref span129[0]; + questSequence = new QuestSequence { Sequence = 0 }; + QuestSequence questSequence130 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - obj199.Steps = list287; - reference342 = obj199; - num++; - ref QuestSequence reference343 = ref span432[num]; - QuestSequence obj200 = new QuestSequence + questSequence130.Steps = list311; + reference342 = questSequence; + ref QuestSequence reference343 = ref span129[1]; + QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence98 = questSequence; + QuestSequence questSequence131 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f, Comment = "Find Points of Interest" }; - questSequence98.Steps = list289; + questSequence131.Steps = list313; reference344 = questSequence; - num++; - ref QuestSequence reference345 = ref span432[num]; + ref QuestSequence reference345 = ref span129[3]; questSequence = new QuestSequence { Sequence = 3 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - 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; + List list314 = new List(num3); + CollectionsMarshal.SetCount(list314, num3); + CollectionsMarshal.AsSpan(list314)[0] = 13983u; + obj169.KillEnemyDataIds = list314; + reference346 = obj169; + questSequence132.Steps = list4; reference345 = questSequence; - num++; - ref QuestSequence reference347 = ref span432[num]; - QuestSequence obj202 = new QuestSequence + ref QuestSequence reference347 = ref span129[4]; + QuestSequence obj170 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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 + 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 { Sequence = 5 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence100 = questSequence; + QuestSequence questSequence133 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span440 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span440[index2] = new QuestStep(EInteractionType.Interact, 1039549u, new Vector3(229.87708f, -18.742016f, 298.72583f), 956) + Span span130 = CollectionsMarshal.AsSpan(list4); + span130[0] = new QuestStep(EInteractionType.Interact, 1039549u, new Vector3(229.87708f, -18.742016f, 298.72583f), 956) { TargetTerritoryId = (ushort)956 }; - index2++; - span440[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040397u, new Vector3(372.39636f, 79.691376f, 299.1836f), 956); - questSequence100.Steps = list4; + span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1040397u, new Vector3(372.39636f, 79.691376f, 299.1836f), 956); + questSequence133.Steps = list4; reference349 = questSequence; questRoot89.QuestSequence = list2; AddQuest(questId44, questRoot); @@ -359904,189 +296694,158 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot90 = questRoot; num = 1; - List list293 = new List(num); - CollectionsMarshal.SetCount(list293, num); - Span span441 = CollectionsMarshal.AsSpan(list293); - index = 0; - span441[index] = "liza"; - questRoot90.Author = list293; + List list317 = new List(num); + CollectionsMarshal.SetCount(list317, num); + CollectionsMarshal.AsSpan(list317)[0] = "liza"; + questRoot90.Author = list317; QuestRoot questRoot91 = questRoot; - 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 + num = 9; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span131 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference350 = ref span131[0]; + questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj204.Steps = list294; - reference350 = obj204; - num++; - ref QuestSequence reference351 = ref span442[num]; - QuestSequence obj205 = new QuestSequence + questSequence134.Steps = list318; + reference350 = questSequence; + ref QuestSequence reference351 = ref span131[1]; + QuestSequence obj172 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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 + 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 { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence101 = questSequence; + QuestSequence questSequence135 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference354 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1040402u, new Vector3(422.61563f, 65.31176f, -121.74779f), 956) { StopDistance = 0.25f }; - index3 = 1; - List list297 = new List(index3); - CollectionsMarshal.SetCount(list297, index3); - Span span447 = CollectionsMarshal.AsSpan(list297); - num3 = 0; - span447[num3] = new DialogueChoice + num3 = 1; + List list321 = new List(num3); + CollectionsMarshal.SetCount(list321, num3); + CollectionsMarshal.AsSpan(list321)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMF106_04444_Q3_000_125"), Answer = new ExcelRef("TEXT_AKTKMF106_04444_A3_000_126") }; - obj207.DialogueChoices = list297; - reference354 = obj207; - questSequence101.Steps = list4; + obj174.DialogueChoices = list321; + reference354 = obj174; + questSequence135.Steps = list4; reference353 = questSequence; - num++; - ref QuestSequence reference355 = ref span442[num]; - QuestSequence obj208 = new QuestSequence + ref QuestSequence reference355 = ref span131[4]; + questSequence = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.25f }; - obj208.Steps = list298; - reference355 = obj208; - num++; - ref QuestSequence reference356 = ref span442[num]; + questSequence136.Steps = list322; + reference355 = questSequence; + ref QuestSequence reference356 = ref span131[5]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence102 = questSequence; + QuestSequence questSequence137 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 0.25f }; - questSequence102.Steps = list299; + questSequence137.Steps = list323; reference356 = questSequence; - num++; - ref QuestSequence reference357 = ref span442[num]; + ref QuestSequence reference357 = ref span131[6]; questSequence = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 0.25f }; - questSequence103.Steps = list300; + questSequence138.Steps = list324; reference357 = questSequence; - num++; - ref QuestSequence reference358 = ref span442[num]; - QuestSequence obj209 = new QuestSequence + ref QuestSequence reference358 = ref span131[7]; + QuestSequence obj175 = new QuestSequence { Sequence = 7 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); num3 = 1; - List list302 = new List(num3); - CollectionsMarshal.SetCount(list302, num3); - Span span453 = CollectionsMarshal.AsSpan(list302); - index3 = 0; - span453[index3] = new DialogueChoice + List list326 = new List(num3); + CollectionsMarshal.SetCount(list326, num3); + CollectionsMarshal.AsSpan(list326)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMF106_04444_Q4_000_272"), Answer = new ExcelRef("TEXT_AKTKMF106_04444_A4_000_273") }; - questStep52.DialogueChoices = list302; - reference360 = questStep52; - questSequence104.Steps = list4; + questStep51.DialogueChoices = list326; + reference360 = questStep51; + questSequence139.Steps = list4; reference359 = questSequence; questRoot91.QuestSequence = list2; AddQuest(questId45, questRoot); @@ -360094,337 +296853,259 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot92 = questRoot; num = 1; - List list303 = new List(num); - CollectionsMarshal.SetCount(list303, num); - Span span454 = CollectionsMarshal.AsSpan(list303); - index = 0; - span454[index] = "liza"; - questRoot92.Author = list303; + List list327 = new List(num); + CollectionsMarshal.SetCount(list327, num); + CollectionsMarshal.AsSpan(list327)[0] = "liza"; + questRoot92.Author = list327; QuestRoot questRoot93 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(4480) }; - num2++; - span457[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) + span133[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) { StopDistance = 0.75f, Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - num2++; - span457[num2] = new QuestStep(EInteractionType.Interact, 1039687u, new Vector3(-18.875488f, -31.53043f, -76.98181f), 956); - questSequence105.Steps = list4; + span133[2] = new QuestStep(EInteractionType.Interact, 1039687u, new Vector3(-18.875488f, -31.53043f, -76.98181f), 956); + questSequence140.Steps = list4; reference362 = questSequence; - num++; - ref QuestSequence reference363 = ref span455[num]; - QuestSequence obj211 = new QuestSequence + ref QuestSequence reference363 = ref span132[2]; + QuestSequence obj177 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - 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]; + QuestSequence questSequence141 = questSequence; + num2 = 8; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span134 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference365 = ref span134[0]; questStep = new QuestStep(EInteractionType.Interact, 1040422u, new Vector3(-37.125244f, -29.530075f, -169.14624f), 956) { Comment = "Distracted Researcher" }; - 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; + 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; reference365 = questStep; - num2++; - ref QuestStep reference366 = ref span459[num2]; + ref QuestStep reference366 = ref span134[1]; questStep = new QuestStep(EInteractionType.Interact, 1040416u, new Vector3(3.0670166f, -29.530357f, -126.17688f), 956) { Comment = "Hyperventilating Engineer" }; - QuestStep questStep54 = questStep; + QuestStep questStep53 = questStep; num3 = 6; - 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; + 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; reference366 = questStep; - num2++; - ref QuestStep reference367 = ref span459[num2]; + ref QuestStep reference367 = ref span134[2]; questStep = new QuestStep(EInteractionType.Interact, 1040420u, new Vector3(40.634766f, -17.53038f, -69.62695f), 956) { Comment = "Harried Aetherologist" }; - 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; + 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; reference367 = questStep; - num2++; - ref QuestStep reference368 = ref span459[num2]; + ref QuestStep reference368 = ref span134[3]; questStep = new QuestStep(EInteractionType.Interact, 1040421u, new Vector3(48.142212f, -31.53043f, -48.111755f), 956) { Mount = true, Comment = "Grimacing Naturalist" }; - QuestStep questStep56 = questStep; + QuestStep questStep55 = questStep; num3 = 6; - 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; + 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; reference368 = questStep; - num2++; - ref QuestStep reference369 = ref span459[num2]; + ref QuestStep reference369 = ref span134[4]; questStep = new QuestStep(EInteractionType.Interact, 1040417u, new Vector3(59.311768f, -29.530416f, -24.429688f), 956) { Comment = "Ponderous Mathematician" }; - 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; + 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; reference369 = questStep; - num2++; - ref QuestStep reference370 = ref span459[num2]; + ref QuestStep reference370 = ref span134[5]; questStep = new QuestStep(EInteractionType.Interact, 1040418u, new Vector3(-19.394226f, -29.530432f, 10.299805f), 956) { Mount = true, Comment = "Despondent Engineer" }; - QuestStep questStep58 = questStep; + QuestStep questStep57 = questStep; num3 = 6; - 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; + 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; reference370 = questStep; - num2++; - ref QuestStep reference371 = ref span459[num2]; + ref QuestStep reference371 = ref span134[6]; questStep = new QuestStep(EInteractionType.Interact, 1040423u, new Vector3(-22.232422f, -31.530355f, 38.071167f), 956) { Mount = true, Comment = "Skeptical Researcher" }; - 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; + 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; reference371 = questStep; - num2++; - ref QuestStep reference372 = ref span459[num2]; + ref QuestStep reference372 = ref span134[7]; questStep = new QuestStep(EInteractionType.Interact, 1040419u, new Vector3(-15.762573f, -31.530432f, -51.59082f), 956) { Comment = "Anxious Engineer" }; - QuestStep questStep60 = questStep; + QuestStep questStep59 = questStep; num3 = 6; - 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; + 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; reference372 = questStep; - questSequence106.Steps = list4; + questSequence141.Steps = list4; reference364 = questSequence; - num++; - ref QuestSequence reference373 = ref span455[num]; - QuestSequence obj212 = new QuestSequence + ref QuestSequence reference373 = ref span132[4]; + QuestSequence obj178 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; - questSequence107.Steps = list307; + questSequence142.Steps = list339; reference374 = questSequence; - num++; - ref QuestSequence reference375 = ref span455[num]; + ref QuestSequence reference375 = ref span132[6]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence108 = questSequence; + QuestSequence questSequence143 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - questSequence108.Steps = list308; + questSequence143.Steps = list340; reference375 = questSequence; questRoot93.QuestSequence = list2; AddQuest(questId46, questRoot); @@ -360432,296 +297113,243 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot94 = questRoot; num = 1; - List list309 = new List(num); - CollectionsMarshal.SetCount(list309, num); - Span span471 = CollectionsMarshal.AsSpan(list309); - index = 0; - span471[index] = "liza"; - questRoot94.Author = list309; + List list341 = new List(num); + CollectionsMarshal.SetCount(list341, num); + CollectionsMarshal.AsSpan(list341)[0] = "liza"; + questRoot94.Author = list341; QuestRoot questRoot95 = questRoot; - index = 7; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span472 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference376 = ref span472[num]; + num = 7; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span143 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference376 = ref span143[0]; questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - questSequence109.Steps = list310; + questSequence144.Steps = list342; reference376 = questSequence; - num++; - ref QuestSequence reference377 = ref span472[num]; + ref QuestSequence reference377 = ref span143[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence110 = questSequence; + QuestSequence questSequence145 = questSequence; num2 = 4; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span474 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span474[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956) + Span span144 = CollectionsMarshal.AsSpan(list4); + span144[0] = new QuestStep(EInteractionType.AcceptQuest, 1041129u, new Vector3(-23.575256f, -31.53021f, 1.8463135f), 956) { PickUpQuestId = new QuestId(4329) }; - index2++; - ref QuestStep reference378 = ref span474[index2]; + ref QuestStep reference378 = ref span144[1]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041683u, new Vector3(-29.984009f, -31.53043f, -23.758362f), 956); - 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 + QuestStep questStep60 = questStep; + num3 = 1; + List list343 = new List(num3); + CollectionsMarshal.SetCount(list343, num3); + CollectionsMarshal.AsSpan(list343)[0] = 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") }; - questStep61.DialogueChoices = list311; + questStep60.DialogueChoices = list343; questStep.PickUpQuestId = new QuestId(4484); reference378 = questStep; - index2++; - ref QuestStep reference379 = ref span474[index2]; + ref QuestStep reference379 = ref span144[2]; questStep = new QuestStep(EInteractionType.AcceptQuest, 1041313u, new Vector3(89.28052f, -17.530382f, -74.906555f), 956); - QuestStep questStep62 = questStep; + QuestStep questStep61 = questStep; num3 = 1; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span476 = CollectionsMarshal.AsSpan(list312); - index3 = 0; - span476[index3] = new DialogueChoice + List list344 = new List(num3); + CollectionsMarshal.SetCount(list344, num3); + CollectionsMarshal.AsSpan(list344)[0] = 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") }; - questStep62.DialogueChoices = list312; + questStep61.DialogueChoices = list344; questStep.PickUpQuestId = new QuestId(4320); reference379 = questStep; - index2++; - span474[index2] = new QuestStep(EInteractionType.Interact, 1040444u, new Vector3(-424.24664f, -31.831255f, -38.895264f), 956); - questSequence110.Steps = list4; + span144[3] = new QuestStep(EInteractionType.Interact, 1040444u, new Vector3(-424.24664f, -31.831255f, -38.895264f), 956); + questSequence145.Steps = list4; reference377 = questSequence; - num++; - ref QuestSequence reference380 = ref span472[num]; - QuestSequence obj213 = new QuestSequence + ref QuestSequence reference380 = ref span143[2]; + QuestSequence obj179 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 6f, Aetheryte = EAetheryteLocation.LabyrinthosAporia }; - num2++; - span479[num2] = new QuestStep(EInteractionType.Interact, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); - questSequence111.Steps = list4; + span145[1] = new QuestStep(EInteractionType.Interact, 1040447u, new Vector3(-710.0176f, -31.53043f, 322.59094f), 956); + questSequence146.Steps = list4; reference382 = questSequence; - num++; - ref QuestSequence reference383 = ref span472[num]; - QuestSequence obj215 = new QuestSequence + ref QuestSequence reference383 = ref span143[5]; + QuestSequence obj181 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot95.QuestSequence = list2; AddQuest(questId47, questRoot); QuestId questId48 = new QuestId(4447); questRoot = new QuestRoot(); QuestRoot questRoot96 = questRoot; num = 1; - List list317 = new List(num); - CollectionsMarshal.SetCount(list317, num); - Span span482 = CollectionsMarshal.AsSpan(list317); - index = 0; - span482[index] = "liza"; - questRoot96.Author = list317; + List list349 = new List(num); + CollectionsMarshal.SetCount(list349, num); + CollectionsMarshal.AsSpan(list349)[0] = "liza"; + questRoot96.Author = list349; QuestRoot questRoot97 = questRoot; - index = 5; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span483 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference385 = ref span483[num]; + num = 5; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span146 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference385 = ref span146[0]; questSequence = new QuestSequence { Sequence = 0 }; - QuestSequence questSequence112 = questSequence; + QuestSequence questSequence147 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - questSequence112.Steps = list318; + questSequence147.Steps = list350; reference385 = questSequence; - num++; - ref QuestSequence reference386 = ref span483[num]; - QuestSequence obj217 = new QuestSequence + ref QuestSequence reference386 = ref span146[1]; + QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence113 = questSequence; + QuestSequence questSequence148 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference388 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj184 = new QuestStep(EInteractionType.Combat, 2012225u, new Vector3(-594.5678f, -26.596497f, 609.09436f), 956) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; reference387 = questSequence; - num++; - ref QuestSequence reference389 = ref span483[num]; - QuestSequence obj218 = new QuestSequence + ref QuestSequence reference389 = ref span146[3]; + QuestSequence obj185 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence114 = questSequence; + QuestSequence questSequence149 = questSequence; num2 = 8; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span489 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-601.1813f, -24.48022f, 633.1958f), 956) + Span span148 = CollectionsMarshal.AsSpan(list4); + span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-601.1813f, -24.48022f, 633.1958f), 956) { Mount = true, Comment = "Avoids aggro + possible navmesh issue" }; - index2++; - span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.4733f, -22.860794f, 666.64417f), 956) + span148[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.4733f, -22.860794f, 666.64417f), 956) { Comment = "Avoids aggro + possible navmesh issue" }; - index2++; - span489[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011985u, new Vector3(-547.7532f, -18.051514f, 661.86f), 956) + span148[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011985u, new Vector3(-547.7532f, -18.051514f, 661.86f), 956) { AetherCurrentId = 2818316u }; - 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) + 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) { DisableNavmesh = true, JumpDestination = new JumpDestination @@ -360731,21 +297359,18 @@ public static class AssemblyQuestLoader DelaySeconds = 0.25f } }; - index2++; - span489[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011986u, new Vector3(-128.06903f, -20.523438f, 676.7223f), 956) + span148[5] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2011986u, new Vector3(-128.06903f, -20.523438f, 676.7223f), 956) { DisableNavmesh = true, AetherCurrentId = 2818317u }; - index2++; - span489[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.01625f, -30.313616f, 670.05585f), 956) + span148[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-114.01625f, -30.313616f, 670.05585f), 956) { DisableNavmesh = true, Mount = true }; - index2++; - span489[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); - questSequence114.Steps = list4; + span148[7] = new QuestStep(EInteractionType.CompleteQuest, 1040455u, new Vector3(10.147156f, -30.155546f, 619.62305f), 956); + questSequence149.Steps = list4; reference390 = questSequence; questRoot97.QuestSequence = list2; AddQuest(questId48, questRoot); @@ -360753,266 +297378,219 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot98 = questRoot; num = 1; - List list322 = new List(num); - CollectionsMarshal.SetCount(list322, num); - Span span490 = CollectionsMarshal.AsSpan(list322); - index = 0; - span490[index] = "liza"; - questRoot98.Author = list322; + List list354 = new List(num); + CollectionsMarshal.SetCount(list354, num); + CollectionsMarshal.AsSpan(list354)[0] = "liza"; + questRoot98.Author = list354; QuestRoot questRoot99 = questRoot; - 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 + 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 { Sequence = 0 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence115 = questSequence; + QuestSequence questSequence150 = questSequence; num2 = 2; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - Span span493 = CollectionsMarshal.AsSpan(list4); - index2 = 0; - span493[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) + Span span150 = CollectionsMarshal.AsSpan(list4); + span150[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.4520116f, -28.723352f, -42.992764f), 956) { Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; - index2++; - ref QuestStep reference393 = ref span493[index2]; - QuestStep questStep64 = new QuestStep(EInteractionType.Interact, 2012226u, new Vector3(-11.6427f, -31.540405f, -81.28485f), 956); + ref QuestStep reference393 = ref span150[1]; + QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 2012226u, new Vector3(-11.6427f, -31.540405f, -81.28485f), 956); num3 = 1; - List list324 = new List(num3); - CollectionsMarshal.SetCount(list324, num3); - Span span494 = CollectionsMarshal.AsSpan(list324); - index3 = 0; - span494[index3] = new DialogueChoice + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + CollectionsMarshal.AsSpan(list356)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF110_04448_Q1_000_031") }; - questStep64.DialogueChoices = list324; - reference393 = questStep64; - questSequence115.Steps = list4; + questStep62.DialogueChoices = list356; + reference393 = questStep62; + questSequence150.Steps = list4; reference392 = questSequence; - num++; - ref QuestSequence reference394 = ref span491[num]; - QuestSequence obj220 = new QuestSequence + ref QuestSequence reference394 = ref span149[2]; + QuestSequence obj187 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence116 = questSequence; + QuestSequence questSequence151 = questSequence; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - questSequence116.Steps = list326; + questSequence151.Steps = list358; reference395 = questSequence; - num++; - ref QuestSequence reference396 = ref span491[num]; + ref QuestSequence reference396 = ref span149[4]; questSequence = new QuestSequence { Sequence = 4 }; - 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 + 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 { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF110_04448_Q2_000_111") }; - questStep65.DialogueChoices = list327; - reference397 = questStep65; - questSequence117.Steps = list4; + questStep63.DialogueChoices = list359; + reference397 = questStep63; + questSequence152.Steps = list4; reference396 = questSequence; - num++; - ref QuestSequence reference398 = ref span491[num]; + ref QuestSequence reference398 = ref span149[5]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence118 = questSequence; + QuestSequence questSequence153 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 7f }; - questSequence118.Steps = list328; + questSequence153.Steps = list360; reference398 = questSequence; - num++; - ref QuestSequence reference399 = ref span491[num]; - QuestSequence obj221 = new QuestSequence + ref QuestSequence reference399 = ref span149[6]; + QuestSequence obj188 = new QuestSequence { Sequence = 6 }; - 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) + 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) { RestartNavigationIfCancelled = false }; - obj221.Steps = list329; - reference399 = obj221; - num++; - ref QuestSequence reference400 = ref span491[num]; - QuestSequence obj222 = new QuestSequence + obj188.Steps = list361; + reference399 = obj188; + ref QuestSequence reference400 = ref span149[7]; + QuestSequence obj189 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; questRoot99.QuestSequence = list2; AddQuest(questId49, questRoot); QuestId questId50 = new QuestId(4449); questRoot = new QuestRoot(); QuestRoot questRoot100 = questRoot; num = 1; - List list331 = new List(num); - CollectionsMarshal.SetCount(list331, num); - Span span502 = CollectionsMarshal.AsSpan(list331); - index = 0; - span502[index] = "liza"; - questRoot100.Author = list331; + List list363 = new List(num); + CollectionsMarshal.SetCount(list363, num); + CollectionsMarshal.AsSpan(list363)[0] = "liza"; + questRoot100.Author = list363; QuestRoot questRoot101 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - 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 + 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 { ContentFinderConditionId = 786u }; num3 = 1; - 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; + 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; reference403 = questSequence; - num++; - span503[num] = new QuestSequence + span151[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference405 = ref span503[num]; + ref QuestSequence reference405 = ref span151[4]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence120 = questSequence; + QuestSequence questSequence155 = questSequence; num2 = 1; - 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) + List list367 = new List(num2); + CollectionsMarshal.SetCount(list367, num2); + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.Duty, null, null, 1030) { DutyOptions = new DutyOptions { @@ -361020,41 +297598,34 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 790u } }; - questSequence120.Steps = list335; + questSequence155.Steps = list367; reference405 = questSequence; - num++; - span503[num] = new QuestSequence + span151[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference406 = ref span503[num]; - QuestSequence obj226 = new QuestSequence + ref QuestSequence reference406 = ref span151[6]; + QuestSequence obj193 = new QuestSequence { Sequence = 6 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence121 = questSequence; + QuestSequence questSequence156 = questSequence; num2 = 1; list4 = new List(num2); CollectionsMarshal.SetCount(list4, num2); - 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) + ref QuestStep reference408 = ref CollectionsMarshal.AsSpan(list4)[0]; + QuestStep obj194 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -361063,19 +297634,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - index3 = 1; - List list337 = new List(index3); - CollectionsMarshal.SetCount(list337, index3); - Span span511 = CollectionsMarshal.AsSpan(list337); - num3 = 0; - span511[num3] = new DialogueChoice + num3 = 1; + List list369 = new List(num3); + CollectionsMarshal.SetCount(list369, num3); + CollectionsMarshal.AsSpan(list369)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMF111_04449_Q4_000_344") }; - obj227.DialogueChoices = list337; - reference408 = obj227; - questSequence121.Steps = list4; + obj194.DialogueChoices = list369; + reference408 = obj194; + questSequence156.Steps = list4; reference407 = questSequence; questRoot101.QuestSequence = list2; AddQuest(questId50, questRoot); @@ -361088,16 +297657,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -361105,26 +297671,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040276u, new Vector3(-99.076904f, 3.9334679f, 1.3884888f), 962) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -361134,8 +297695,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -361143,23 +297703,18 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1039804u, new Vector3(-0.16790771f, 41.37599f, -146.65448f), 962); + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1039804u, new Vector3(-0.16790771f, 41.37599f, -146.65448f), 962); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -361169,8 +297724,7 @@ public static class AssemblyQuestLoader }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -361178,50 +297732,42 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - ref QuestStep reference6 = ref span7[index2]; + ref QuestStep reference6 = ref CollectionsMarshal.AsSpan(list7)[0]; 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 span8 = CollectionsMarshal.AsSpan(list8); - int num4 = 0; - span8[num4] = new DialogueChoice + Span span2 = CollectionsMarshal.AsSpan(list8); + span2[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q2_000_221") }; - num4++; - span8[num4] = new DialogueChoice + span2[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q3_000_240"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A3_000_241") }; - num4++; - span8[num4] = new DialogueChoice + span2[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q4_000_256"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A4_000_258") }; - num4++; - span8[num4] = new DialogueChoice + span2[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q5_000_276"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A5_000_278") }; - num4++; - span8[num4] = new DialogueChoice + span2[4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q6_000_298"), Answer = new ExcelRef("TEXT_AKTKMG101_04450_A6_000_300") }; - num4++; - span8[num4] = new DialogueChoice + span2[5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG101_04450_Q7_000_305"), @@ -361231,18 +297777,15 @@ public static class AssemblyQuestLoader reference6 = questStep; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -361255,16 +297798,13 @@ public static class AssemblyQuestLoader num = 1; List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); - Span span10 = CollectionsMarshal.AsSpan(list10); - index = 0; - span10[index] = "liza"; + CollectionsMarshal.AsSpan(list10)[0] = "liza"; questRoot2.Author = list10; - index = 6; - List list11 = new List(index); - CollectionsMarshal.SetCount(list11, index); - Span span11 = CollectionsMarshal.AsSpan(list11); - num = 0; - ref QuestSequence reference8 = ref span11[num]; + num = 6; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); + Span span3 = CollectionsMarshal.AsSpan(list11); + ref QuestSequence reference8 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -361272,23 +297812,18 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039818u, new Vector3(29.861816f, 5.1499996f, -65.445984f), 962); obj7.Steps = list12; reference8 = obj7; - num++; - ref QuestSequence reference9 = ref span11[num]; + ref QuestSequence reference9 = ref span3[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -361298,8 +297833,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span11[num]; + ref QuestSequence reference10 = ref span3[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 @@ -361307,9 +297841,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1039820u, new Vector3(-87.02222f, -13.777f, 147.29529f), 962) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1039820u, new Vector3(-87.02222f, -13.777f, 147.29529f), 962) { AethernetShortcut = new AethernetShortcut { @@ -361319,25 +297851,21 @@ public static class AssemblyQuestLoader }; obj9.Steps = list14; reference10 = obj9; - num++; - ref QuestSequence reference11 = ref span11[num]; + ref QuestSequence reference11 = ref span3[3]; QuestSequence obj10 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj10.Steps = list15; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span11[num]; + ref QuestSequence reference12 = ref span3[4]; QuestSequence obj11 = new QuestSequence { Sequence = 4 @@ -361345,9 +297873,8 @@ public static class AssemblyQuestLoader num2 = 2; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.Interact, 1039823u, new Vector3(-282.09363f, 19.003872f, 20.248657f), 962) + Span span4 = CollectionsMarshal.AsSpan(list16); + span4[0] = new QuestStep(EInteractionType.Interact, 1039823u, new Vector3(-282.09363f, 19.003872f, 20.248657f), 962) { AethernetShortcut = new AethernetShortcut { @@ -361355,8 +297882,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - index2++; - span16[index2] = new QuestStep(EInteractionType.Interact, 1039825u, new Vector3(223.46838f, 24.898844f, -149.58423f), 962) + span4[1] = new QuestStep(EInteractionType.Interact, 1039825u, new Vector3(223.46838f, 24.898844f, -149.58423f), 962) { AethernetShortcut = new AethernetShortcut { @@ -361366,18 +297892,15 @@ public static class AssemblyQuestLoader }; obj11.Steps = list16; reference12 = obj11; - num++; - ref QuestSequence reference13 = ref span11[num]; + ref QuestSequence reference13 = ref span3[5]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list17 = new List(index2); - CollectionsMarshal.SetCount(list17, index2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - ref QuestStep reference14 = ref span17[num2]; + num2 = 1; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list17)[0]; QuestStep obj13 = new QuestStep(EInteractionType.CompleteQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, @@ -361387,12 +297910,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanBaldesionAnnex } }; - num4 = 1; - List list18 = new List(num4); - CollectionsMarshal.SetCount(list18, num4); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = new DialogueChoice + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG102_04451_Q1_000_143") @@ -361408,16 +297929,13 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; questRoot3.Author = list19; - index = 4; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference15 = ref span20[num]; + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span5 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference15 = ref span5[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -361425,26 +297943,22 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; obj14.Steps = list21; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span5[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -361456,20 +297970,17 @@ public static class AssemblyQuestLoader } } }; - num2++; - span22[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - num2++; - span22[num2] = new QuestStep(EInteractionType.Interact, 1039827u, new Vector3(-323.38446f, -224.2727f, 301.56396f), 956) + span6[2] = new QuestStep(EInteractionType.Interact, 1039827u, new Vector3(-323.38446f, -224.2727f, 301.56396f), 956) { Fly = false }; obj15.Steps = list22; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span5[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -361477,16 +297988,12 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref QuestStep reference18 = ref span23[index2]; + ref QuestStep reference18 = ref CollectionsMarshal.AsSpan(list23)[0]; 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); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG103_04452_Q1_000_183") @@ -361495,18 +298002,15 @@ public static class AssemblyQuestLoader reference18 = questStep2; obj16.Steps = list23; reference17 = obj16; - num++; - ref QuestSequence reference19 = ref span20[num]; + ref QuestSequence reference19 = ref span5[3]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -361519,16 +298023,13 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; questRoot4.Author = list26; - index = 6; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 6; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span7 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span7[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -361536,30 +298037,24 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039853u, new Vector3(-377.7066f, 80.86001f, 606.53076f), 960) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039853u, new Vector3(-377.7066f, 80.86001f, 606.53076f), 960) { StopDistance = 7f }; obj18.Steps = list28; reference20 = obj18; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span7[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj19.Steps = list29; reference21 = obj19; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span7[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 @@ -361567,88 +298062,63 @@ public static class AssemblyQuestLoader num2 = 3; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - ref QuestStep reference23 = ref span30[index2]; + Span span8 = CollectionsMarshal.AsSpan(list30); + ref QuestStep reference23 = ref span8[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2012351u, new Vector3(-11.490112f, 61.905884f, 533.6842f), 960); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list31; reference23 = questStep3; - index2++; - ref QuestStep reference24 = ref span30[index2]; + ref QuestStep reference24 = ref span8[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list32; reference24 = questStep4; - index2++; - ref QuestStep reference25 = ref span30[index2]; + ref QuestStep reference25 = ref span8[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1040293u, new Vector3(56.77881f, 99.37216f, 665.5221f), 960); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list33; reference25 = questStep5; obj20.Steps = list30; reference22 = obj20; - num++; - ref QuestSequence reference26 = ref span27[num]; + ref QuestSequence reference26 = ref span7[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj21.Steps = list34; reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span27[num]; + ref QuestSequence reference27 = ref span7[4]; QuestSequence obj22 = new QuestSequence { Sequence = 4 @@ -361656,23 +298126,18 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 1040294u, new Vector3(-373.00684f, 90.107704f, 460.99023f), 960); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1040294u, new Vector3(-373.00684f, 90.107704f, 460.99023f), 960); obj22.Steps = list35; reference27 = obj22; - num++; - ref QuestSequence reference28 = ref span27[num]; + ref QuestSequence reference28 = ref span7[5]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj23.Steps = list36; reference28 = obj23; questRoot4.QuestSequence = list27; @@ -361682,16 +298147,13 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "liza"; + CollectionsMarshal.AsSpan(list37)[0] = "liza"; questRoot5.Author = list37; - index = 7; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference29 = ref span38[num]; + num = 7; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span12 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference29 = ref span12[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -361699,26 +298161,22 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039772u, new Vector3(-476.2188f, 73.47535f, 309.86487f), 960) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039772u, new Vector3(-476.2188f, 73.47535f, 309.86487f), 960) { StopDistance = 7f }; obj24.Steps = list39; reference29 = obj24; - num++; - ref QuestSequence reference30 = ref span38[num]; + ref QuestSequence reference30 = ref span12[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list40 = new List(index2); - CollectionsMarshal.SetCount(list40, index2); - Span span40 = CollectionsMarshal.AsSpan(list40); - num2 = 0; - ref QuestStep reference31 = ref span40[num2]; + num2 = 4; + List list40 = new List(num2); + CollectionsMarshal.SetCount(list40, num2); + Span span13 = CollectionsMarshal.AsSpan(list40); + ref QuestStep reference31 = ref span13[0]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1038010u, new Vector3(-517.9065f, 72.5362f, 332.23462f), 960) { StopDistance = 8f @@ -361726,53 +298184,38 @@ public static class AssemblyQuestLoader num3 = 6; List list41 = new List(num3); CollectionsMarshal.SetCount(list41, num3); - 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); + 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); obj26.CompletionQuestVariablesFlags = list41; reference31 = obj26; - num2++; - ref QuestStep reference32 = ref span40[num2]; + ref QuestStep reference32 = ref span13[1]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1038008u, new Vector3(-603.9369f, 78.6382f, 303.8529f), 960) { StopDistance = 8f }; - 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); + 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); obj27.CompletionQuestVariablesFlags = list42; reference32 = obj27; - num2++; - span40[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + span13[2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 10f, Aetheryte = EAetheryteLocation.UltimaThuleReahTahra }; - num2++; - ref QuestStep reference33 = ref span40[num2]; + ref QuestStep reference33 = ref span13[3]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1038006u, new Vector3(-490.6844f, 88.871994f, 207.35486f), 960) { StopDistance = 8f @@ -361780,25 +298223,18 @@ public static class AssemblyQuestLoader num3 = 6; List list43 = new List(num3); CollectionsMarshal.SetCount(list43, num3); - 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); + 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); obj28.CompletionQuestVariablesFlags = list43; reference33 = obj28; obj25.Steps = list40; reference30 = obj25; - num++; - ref QuestSequence reference34 = ref span38[num]; + ref QuestSequence reference34 = ref span12[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -361806,88 +298242,63 @@ public static class AssemblyQuestLoader num2 = 1; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.Interact, 1039775u, new Vector3(-469.3523f, 55.880516f, -36.66742f), 960); + CollectionsMarshal.AsSpan(list44)[0] = new QuestStep(EInteractionType.Interact, 1039775u, new Vector3(-469.3523f, 55.880516f, -36.66742f), 960); obj29.Steps = list44; reference34 = obj29; - num++; - ref QuestSequence reference35 = ref span38[num]; + ref QuestSequence reference35 = ref span12[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list45 = new List(index2); - CollectionsMarshal.SetCount(list45, index2); - Span span45 = CollectionsMarshal.AsSpan(list45); - num2 = 0; - ref QuestStep reference36 = ref span45[num2]; + num2 = 3; + List list45 = new List(num2); + CollectionsMarshal.SetCount(list45, num2); + Span span17 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference36 = ref span17[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2012283u, new Vector3(-465.1103f, 56.47351f, -30.71643f), 960); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list46; reference36 = questStep6; - num2++; - ref QuestStep reference37 = ref span45[num2]; + ref QuestStep reference37 = ref span17[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list47; reference37 = questStep7; - num2++; - ref QuestStep reference38 = ref span45[num2]; + ref QuestStep reference38 = ref span17[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2012282u, new Vector3(-479.3927f, 56.290405f, -33.676758f), 960); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list48; reference38 = questStep8; obj30.Steps = list45; reference35 = obj30; - num++; - ref QuestSequence reference39 = ref span38[num]; + ref QuestSequence reference39 = ref span12[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -361895,23 +298306,18 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 2012284u, new Vector3(-474.32672f, 56.198975f, -41.031555f), 960); + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 2012284u, new Vector3(-474.32672f, 56.198975f, -41.031555f), 960); obj31.Steps = list49; reference39 = obj31; - num++; - ref QuestSequence reference40 = ref span38[num]; + ref QuestSequence reference40 = ref span12[5]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref QuestStep reference41 = ref span50[num2]; + num2 = 1; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list50)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) { StopDistance = 1f, @@ -361920,15 +298326,12 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num4 = 0; - span51[num4] = 14002u; + CollectionsMarshal.AsSpan(list51)[0] = 14002u; obj33.KillEnemyDataIds = list51; reference41 = obj33; obj32.Steps = list50; reference40 = obj32; - num++; - ref QuestSequence reference42 = ref span38[num]; + ref QuestSequence reference42 = ref span12[6]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -361936,9 +298339,7 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039776u, new Vector3(-572.2896f, 64.78333f, -200.3357f), 960) { StopDistance = 8f }; @@ -361951,30 +298352,24 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "liza"; + CollectionsMarshal.AsSpan(list53)[0] = "liza"; questRoot6.Author = list53; - index = 5; - List list54 = new List(index); - CollectionsMarshal.SetCount(list54, index); - Span span54 = CollectionsMarshal.AsSpan(list54); - num = 0; - ref QuestSequence reference43 = ref span54[num]; + num = 5; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span21 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference43 = ref span21[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj35.Steps = list55; reference43 = obj35; - num++; - ref QuestSequence reference44 = ref span54[num]; + ref QuestSequence reference44 = ref span21[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -361982,33 +298377,27 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.Interact, 1040295u, new Vector3(-504.0513f, 73.32458f, 273.9757f), 960) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.Interact, 1040295u, new Vector3(-504.0513f, 73.32458f, 273.9757f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj36.Steps = list56; reference44 = obj36; - num++; - ref QuestSequence reference45 = ref span54[num]; + ref QuestSequence reference45 = ref span21[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 8f }; obj37.Steps = list57; reference45 = obj37; - num++; - ref QuestSequence reference46 = ref span54[num]; + ref QuestSequence reference46 = ref span21[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -362016,25 +298405,20 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1040301u, new Vector3(-620.44714f, 92.1207f, -203.35706f), 960); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1040301u, new Vector3(-620.44714f, 92.1207f, -203.35706f), 960); obj38.Steps = list58; reference46 = obj38; - num++; - ref QuestSequence reference47 = ref span54[num]; + ref QuestSequence reference47 = ref span21[4]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Mount = false @@ -362048,16 +298432,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "liza"; + CollectionsMarshal.AsSpan(list60)[0] = "liza"; questRoot7.Author = list60; - index = 7; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference48 = ref span61[num]; + num = 7; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span23 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference48 = ref span23[0]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -362065,30 +298446,24 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040307u, new Vector3(-469.29126f, 232.2548f, -252.8573f), 960) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040307u, new Vector3(-469.29126f, 232.2548f, -252.8573f), 960) { StopDistance = 5f }; obj40.Steps = list62; reference48 = obj40; - num++; - ref QuestSequence reference49 = ref span61[num]; + ref QuestSequence reference49 = ref span23[1]; QuestSequence obj41 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj41.Steps = list63; reference49 = obj41; - num++; - ref QuestSequence reference50 = ref span61[num]; + ref QuestSequence reference50 = ref span23[2]; QuestSequence obj42 = new QuestSequence { Sequence = 2 @@ -362096,34 +298471,27 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1040313u, new Vector3(-339.10126f, 255.53401f, -281.75793f), 960); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1040313u, new Vector3(-339.10126f, 255.53401f, -281.75793f), 960); obj42.Steps = list64; reference50 = obj42; - num++; - ref QuestSequence reference51 = ref span61[num]; + ref QuestSequence reference51 = ref span23[3]; QuestSequence obj43 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818389u }; - num2++; - span65[num2] = new QuestStep(EInteractionType.Interact, 1040317u, new Vector3(-200.57983f, 268.01642f, -312.58112f), 960); + span24[2] = new QuestStep(EInteractionType.Interact, 1040317u, new Vector3(-200.57983f, 268.01642f, -312.58112f), 960); obj43.Steps = list65; reference51 = obj43; - num++; - ref QuestSequence reference52 = ref span61[num]; + ref QuestSequence reference52 = ref span23[4]; QuestSequence obj44 = new QuestSequence { Sequence = 4 @@ -362131,48 +298499,37 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.Interact, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Interact, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj44.Steps = list66; reference52 = obj44; - num++; - ref QuestSequence reference53 = ref span61[num]; + ref QuestSequence reference53 = ref span23[5]; QuestSequence obj45 = new QuestSequence { Sequence = 5 }; - index2 = 6; - List list67 = new List(index2); - CollectionsMarshal.SetCount(list67, index2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num2 = 0; - ref QuestStep reference54 = ref span67[num2]; + num2 = 6; + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + Span span25 = CollectionsMarshal.AsSpan(list67); + ref QuestStep reference54 = ref span25[0]; QuestStep questStep9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.10138f, 269.016f, -591.87366f), 960); SkipConditions skipConditions = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list68; skipConditions.StepIf = skipStepConditions; questStep9.SkipConditions = skipConditions; reference54 = questStep9; - num2++; - ref QuestStep reference55 = ref span67[num2]; + ref QuestStep reference55 = ref span25[1]; QuestStep obj46 = new QuestStep(EInteractionType.Interact, 2012354u, new Vector3(30.777344f, 272.51086f, -600.7019f), 960) { StopDistance = 4f, @@ -362181,53 +298538,38 @@ public static class AssemblyQuestLoader num3 = 6; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - 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); + 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); obj46.CompletionQuestVariablesFlags = list69; reference55 = obj46; - num2++; - ref QuestStep reference56 = ref span67[num2]; + ref QuestStep reference56 = ref span25[2]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 2012355u, new Vector3(64.10315f, 272.4497f, -616.4492f), 960) { StopDistance = 4f }; - 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); + 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); obj47.CompletionQuestVariablesFlags = list70; reference56 = obj47; - num2++; - span67[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) + span25[3] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 960) { StopDistance = 8f, Aetheryte = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - num2++; - ref QuestStep reference57 = ref span67[num2]; + ref QuestStep reference57 = ref span25[4]; QuestStep obj48 = new QuestStep(EInteractionType.Interact, 2012356u, new Vector3(115.526f, 272.99915f, -617.853f), 960) { StopDistance = 4f @@ -362235,49 +298577,35 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - 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); + 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); obj48.CompletionQuestVariablesFlags = list71; reference57 = obj48; - num2++; - ref QuestStep reference58 = ref span67[num2]; + ref QuestStep reference58 = ref span25[5]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2012357u, new Vector3(151.59839f, 272.9381f, -592.5841f), 960) { StopDistance = 4f }; - 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); + 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); obj49.CompletionQuestVariablesFlags = list72; reference58 = obj49; obj45.Steps = list67; reference53 = obj45; - num++; - ref QuestSequence reference59 = ref span61[num]; + ref QuestSequence reference59 = ref span23[6]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -362285,9 +298613,7 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040318u, new Vector3(29.984009f, 270.45825f, -535.0271f), 960); obj50.Steps = list73; reference59 = obj50; questRoot7.QuestSequence = list61; @@ -362297,30 +298623,24 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "liza"; + CollectionsMarshal.AsSpan(list74)[0] = "liza"; questRoot8.Author = list74; - index = 5; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference60 = ref span75[num]; + num = 5; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span31 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference60 = ref span31[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj51.Steps = list76; reference60 = obj51; - num++; - ref QuestSequence reference61 = ref span75[num]; + ref QuestSequence reference61 = ref span31[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -362328,27 +298648,21 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1040329u, new Vector3(75.69995f, 268.99997f, -528.3436f), 960); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1040329u, new Vector3(75.69995f, 268.99997f, -528.3436f), 960); obj52.Steps = list77; reference61 = obj52; - num++; - ref QuestSequence reference62 = ref span75[num]; + ref QuestSequence reference62 = ref span31[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj53.Steps = list78; reference62 = obj53; - num++; - ref QuestSequence reference63 = ref span75[num]; + ref QuestSequence reference63 = ref span31[3]; QuestSequence obj54 = new QuestSequence { Sequence = 3 @@ -362356,23 +298670,18 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 2012358u, new Vector3(84.97742f, 269.06226f, -493.00375f), 960); obj54.Steps = list79; reference63 = obj54; - num++; - ref QuestSequence reference64 = ref span75[num]; + ref QuestSequence reference64 = ref span31[4]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -362385,16 +298694,13 @@ public static class AssemblyQuestLoader num = 1; List list81 = new List(num); CollectionsMarshal.SetCount(list81, num); - Span span81 = CollectionsMarshal.AsSpan(list81); - index = 0; - span81[index] = "liza"; + CollectionsMarshal.AsSpan(list81)[0] = "liza"; questRoot9.Author = list81; - index = 4; - List list82 = new List(index); - CollectionsMarshal.SetCount(list82, index); - Span span82 = CollectionsMarshal.AsSpan(list82); - num = 0; - ref QuestSequence reference65 = ref span82[num]; + num = 4; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + Span span32 = CollectionsMarshal.AsSpan(list82); + ref QuestSequence reference65 = ref span32[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 @@ -362402,30 +298708,24 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039760u, new Vector3(82.65808f, 269.0903f, -490.44025f), 960) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039760u, new Vector3(82.65808f, 269.0903f, -490.44025f), 960) { StopDistance = 7f }; obj56.Steps = list83; reference65 = obj56; - num++; - ref QuestSequence reference66 = ref span82[num]; + ref QuestSequence reference66 = ref span32[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj57.Steps = list84; reference66 = obj57; - num++; - ref QuestSequence reference67 = ref span82[num]; + ref QuestSequence reference67 = ref span32[2]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -362433,35 +298733,29 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 1040339u, new Vector3(-341.78687f, 263.37482f, -461.44812f), 960); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1040339u, new Vector3(-341.78687f, 263.37482f, -461.44812f), 960); obj58.Steps = list85; reference67 = obj58; - num++; - ref QuestSequence reference68 = ref span82[num]; + ref QuestSequence reference68 = ref span32[3]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - num2++; - span86[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012031u, new Vector3(13.107483f, 275.56262f, -756.40497f), 960) + span33[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2012031u, new Vector3(13.107483f, 275.56262f, -756.40497f), 960) { DisableNavmesh = true, AetherCurrentId = 2818390u }; - num2++; - span86[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039778u, new Vector3(184.03906f, 269.03912f, -637.6288f), 960); + span33[2] = new QuestStep(EInteractionType.CompleteQuest, 1039778u, new Vector3(184.03906f, 269.03912f, -637.6288f), 960); obj59.Steps = list86; reference68 = obj59; questRoot9.QuestSequence = list82; @@ -362471,16 +298765,13 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = "liza"; + CollectionsMarshal.AsSpan(list87)[0] = "liza"; questRoot10.Author = list87; - index = 10; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref QuestSequence reference69 = ref span88[num]; + num = 10; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + Span span34 = CollectionsMarshal.AsSpan(list88); + ref QuestSequence reference69 = ref span34[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -362488,40 +298779,33 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039782u, new Vector3(183.12354f, 269.0203f, -633.5393f), 960) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039782u, new Vector3(183.12354f, 269.0203f, -633.5393f), 960) { StopDistance = 6f }; obj60.Steps = list89; reference69 = obj60; - num++; - ref QuestSequence reference70 = ref span88[num]; + ref QuestSequence reference70 = ref span34[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(4342) }; - num2++; - span90[num2] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960) + span35[1] = new QuestStep(EInteractionType.AcceptQuest, 1038016u, new Vector3(105.42456f, 269.29584f, -454.3069f), 960) { PickUpQuestId = new QuestId(4346) }; - num2++; - span90[num2] = new QuestStep(EInteractionType.Interact, 1039787u, new Vector3(434.37854f, 284.02585f, -328.51147f), 960); + span35[2] = new QuestStep(EInteractionType.Interact, 1039787u, new Vector3(434.37854f, 284.02585f, -328.51147f), 960); obj61.Steps = list90; reference70 = obj61; - num++; - ref QuestSequence reference71 = ref span88[num]; + ref QuestSequence reference71 = ref span34[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 @@ -362529,56 +298813,46 @@ public static class AssemblyQuestLoader num2 = 2; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - ref QuestStep reference72 = ref span91[index2]; + Span span36 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference72 = ref span36[0]; 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); - Span span92 = CollectionsMarshal.AsSpan(list92); - num4 = 0; - span92[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list92)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG110_04459_Q1_000_041") }; questStep10.DialogueChoices = list92; reference72 = questStep10; - index2++; - ref QuestStep reference73 = ref span91[index2]; + ref QuestStep reference73 = ref span36[1]; QuestStep obj63 = new QuestStep(EInteractionType.Combat, 2012286u, new Vector3(506.98096f, 439.68872f, 157f), 960) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + Span span37 = CollectionsMarshal.AsSpan(list93); + span37[0] = 14000u; + span37[1] = 14001u; obj63.KillEnemyDataIds = list93; reference73 = obj63; obj62.Steps = list91; reference71 = obj62; - num++; - ref QuestSequence reference74 = ref span88[num]; + ref QuestSequence reference74 = ref span34[3]; QuestSequence obj64 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj64.Steps = list94; reference74 = obj64; - num++; - ref QuestSequence reference75 = ref span88[num]; + ref QuestSequence reference75 = ref span34[4]; QuestSequence obj65 = new QuestSequence { Sequence = 4 @@ -362586,30 +298860,24 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.Interact, 1039790u, new Vector3(508.53735f, 439.695f, 155.59619f), 960) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1039790u, new Vector3(508.53735f, 439.695f, 155.59619f), 960) { StopDistance = 5f }; obj65.Steps = list95; reference75 = obj65; - num++; - ref QuestSequence reference76 = ref span88[num]; + ref QuestSequence reference76 = ref span34[5]; QuestSequence obj66 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj66.Steps = list96; reference76 = obj66; - num++; - ref QuestSequence reference77 = ref span88[num]; + ref QuestSequence reference77 = ref span34[6]; QuestSequence obj67 = new QuestSequence { Sequence = 6 @@ -362617,9 +298885,7 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - ref QuestStep reference78 = ref span97[index2]; + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list97)[0]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2012289u, new Vector3(490.44006f, 439.68872f, 191.30237f), 960) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -362627,34 +298893,28 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span98 = CollectionsMarshal.AsSpan(list98); - num4 = 0; - span98[num4] = 13999u; + CollectionsMarshal.AsSpan(list98)[0] = 13999u; obj68.KillEnemyDataIds = list98; reference78 = obj68; obj67.Steps = list97; reference77 = obj67; - num++; - ref QuestSequence reference79 = ref span88[num]; + ref QuestSequence reference79 = ref span34[7]; QuestSequence obj69 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AetherCurrentId = 2818392u }; - num2++; - span99[num2] = new QuestStep(EInteractionType.Interact, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); + span38[1] = new QuestStep(EInteractionType.Interact, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); obj69.Steps = list99; reference79 = obj69; - num++; - ref QuestSequence reference80 = ref span88[num]; + ref QuestSequence reference80 = ref span34[8]; QuestSequence obj70 = new QuestSequence { Sequence = 8 @@ -362662,90 +298922,66 @@ public static class AssemblyQuestLoader num2 = 3; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - ref QuestStep reference81 = ref span100[index2]; + Span span39 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference81 = ref span39[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1038039u, new Vector3(521.9348f, 436.99805f, 329.76257f), 960); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list101; reference81 = questStep11; - index2++; - ref QuestStep reference82 = ref span100[index2]; + ref QuestStep reference82 = ref span39[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list102; reference82 = questStep12; - index2++; - ref QuestStep reference83 = ref span100[index2]; + ref QuestStep reference83 = ref span39[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1038045u, new Vector3(504.6615f, 437.1449f, 347.64624f), 960); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list103; reference83 = questStep13; obj70.Steps = list100; reference80 = obj70; - num++; - ref QuestSequence reference84 = ref span88[num]; + ref QuestSequence reference84 = ref span34[9]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Aetheryte = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span104[num2] = new QuestStep(EInteractionType.CompleteQuest, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); + span43[1] = new QuestStep(EInteractionType.CompleteQuest, 1039791u, new Vector3(502.98303f, 436.99966f, 308.97986f), 960); obj71.Steps = list104; reference84 = obj71; questRoot10.QuestSequence = list88; @@ -362755,16 +298991,13 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "liza"; + CollectionsMarshal.AsSpan(list105)[0] = "liza"; questRoot11.Author = list105; - index = 7; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference85 = ref span106[num]; + num = 7; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span44 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference85 = ref span44[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -362772,38 +299005,31 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1040340u, new Vector3(544.51807f, 437.9998f, 301.4419f), 960) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1040340u, new Vector3(544.51807f, 437.9998f, 301.4419f), 960) { StopDistance = 5f }; obj72.Steps = list107; reference85 = obj72; - num++; - ref QuestSequence reference86 = ref span106[num]; + ref QuestSequence reference86 = ref span44[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(4355) }; - num2++; - ref QuestStep reference87 = ref span108[num2]; + ref QuestStep reference87 = ref span45[1]; 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); - Span span109 = CollectionsMarshal.AsSpan(list109); - num4 = 0; - span109[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/043/AktKzk001_04354", @@ -362813,12 +299039,10 @@ public static class AssemblyQuestLoader questStep14.DialogueChoices = list109; questStep14.PickUpQuestId = new QuestId(4354); reference87 = questStep14; - num2++; - span108[num2] = new QuestStep(EInteractionType.Interact, 1040343u, new Vector3(624.3839f, 441.9763f, 437.33875f), 960); + span45[2] = new QuestStep(EInteractionType.Interact, 1040343u, new Vector3(624.3839f, 441.9763f, 437.33875f), 960); obj73.Steps = list108; reference86 = obj73; - num++; - ref QuestSequence reference88 = ref span106[num]; + ref QuestSequence reference88 = ref span44[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -362826,27 +299050,21 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 2012359u, new Vector3(623.3462f, 442.95398f, 441.00085f), 960); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 2012359u, new Vector3(623.3462f, 442.95398f, 441.00085f), 960); obj74.Steps = list110; reference88 = obj74; - num++; - ref QuestSequence reference89 = ref span106[num]; + ref QuestSequence reference89 = ref span44[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj75.Steps = list111; reference89 = obj75; - num++; - ref QuestSequence reference90 = ref span106[num]; + ref QuestSequence reference90 = ref span44[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -362854,30 +299072,24 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Snipe, 2012360u, new Vector3(525.13916f, 441.03137f, 375.50916f), 960) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Snipe, 2012360u, new Vector3(525.13916f, 441.03137f, 375.50916f), 960) { Comment = "Find Errant Omicron" }; obj76.Steps = list112; reference90 = obj76; - num++; - ref QuestSequence reference91 = ref span106[num]; + ref QuestSequence reference91 = ref span44[5]; QuestSequence obj77 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj77.Steps = list113; reference91 = obj77; - num++; - ref QuestSequence reference92 = ref span106[num]; + ref QuestSequence reference92 = ref span44[6]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -362885,24 +299097,20 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - ref QuestStep reference93 = ref span114[index2]; + Span span46 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference93 = ref span46[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2012796u, new Vector3(639.27673f, 439.78027f, 241.77905f), 960); - num4 = 1; - List list115 = new List(num4); - CollectionsMarshal.SetCount(list115, num4); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - span115[num3] = new DialogueChoice + num3 = 1; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + CollectionsMarshal.AsSpan(list115)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG111_04460_Q1_000_135") }; questStep15.DialogueChoices = list115; reference93 = questStep15; - index2++; - span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041157u, new Vector3(801.63257f, 478.9742f, 196.79553f), 960); + span46[1] = new QuestStep(EInteractionType.CompleteQuest, 1041157u, new Vector3(801.63257f, 478.9742f, 196.79553f), 960); obj78.Steps = list114; reference92 = obj78; questRoot11.QuestSequence = list106; @@ -362912,30 +299120,24 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "liza"; + CollectionsMarshal.AsSpan(list116)[0] = "liza"; questRoot12.Author = list116; - index = 5; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference94 = ref span117[num]; + num = 5; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span47 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference94 = ref span47[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj79.Steps = list118; reference94 = obj79; - num++; - ref QuestSequence reference95 = ref span117[num]; + ref QuestSequence reference95 = ref span47[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -362943,33 +299145,27 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 1040342u, new Vector3(546.07446f, 437.9998f, 303.8529f), 960) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1040342u, new Vector3(546.07446f, 437.9998f, 303.8529f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj80.Steps = list119; reference95 = obj80; - num++; - ref QuestSequence reference96 = ref span117[num]; + ref QuestSequence reference96 = ref span47[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Comment = "Identify Anomaly (Head, Elbow or Knee)" }; obj81.Steps = list120; reference96 = obj81; - num++; - ref QuestSequence reference97 = ref span117[num]; + ref QuestSequence reference97 = ref span47[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -362977,23 +299173,18 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 1041159u, new Vector3(624.0176f, 441.9763f, 439.78027f), 960); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 1041159u, new Vector3(624.0176f, 441.9763f, 439.78027f), 960); obj82.Steps = list121; reference97 = obj82; - num++; - ref QuestSequence reference98 = ref span117[num]; + ref QuestSequence reference98 = ref span47[4]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj83.Steps = list122; reference98 = obj83; questRoot12.QuestSequence = list117; @@ -363003,16 +299194,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot13.Author = list123; - index = 6; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference99 = ref span124[num]; + num = 6; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span48 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference99 = ref span48[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -363020,30 +299208,24 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041161u, new Vector3(622.4308f, 441.9763f, 436.17908f), 960); + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041161u, new Vector3(622.4308f, 441.9763f, 436.17908f), 960); obj84.Steps = list125; reference99 = obj84; - num++; - ref QuestSequence reference100 = ref span124[num]; + ref QuestSequence reference100 = ref span48[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj85.Steps = list126; reference100 = obj85; - num++; - ref QuestSequence reference101 = ref span124[num]; + ref QuestSequence reference101 = ref span48[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -363051,45 +299233,37 @@ public static class AssemblyQuestLoader num2 = 2; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - ref QuestStep reference102 = ref span127[index2]; + Span span49 = CollectionsMarshal.AsSpan(list127); + ref QuestStep reference102 = ref span49[0]; 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); - Span span128 = CollectionsMarshal.AsSpan(list128); - num4 = 0; - span128[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list128)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG113_04462_Q1_000_040") }; questStep16.DialogueChoices = list128; reference102 = questStep16; - index2++; - span127[index2] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(460.563f, 417.0675f, 415.21326f), 960); + span49[1] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(460.563f, 417.0675f, 415.21326f), 960); obj86.Steps = list127; reference101 = obj86; - num++; - ref QuestSequence reference103 = ref span124[num]; + ref QuestSequence reference103 = ref span48[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj87.Steps = list129; reference103 = obj87; - num++; - ref QuestSequence reference104 = ref span124[num]; + ref QuestSequence reference104 = ref span48[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -363097,26 +299271,21 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(231.45715f, 566f, 317.96698f), 960) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.Interact, 1041165u, new Vector3(231.45715f, 566f, 317.96698f), 960) { StopDistance = 1f }; obj88.Steps = list130; reference104 = obj88; - num++; - ref QuestSequence reference105 = ref span124[num]; + ref QuestSequence reference105 = ref span48[5]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj89.Steps = list131; reference105 = obj89; questRoot13.QuestSequence = list124; @@ -363126,16 +299295,13 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot14.Author = list132; - index = 6; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference106 = ref span133[num]; + num = 6; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span50 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference106 = ref span50[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -363143,47 +299309,35 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041168u, new Vector3(222.52222f, 565.99994f, 313.1914f), 960); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041168u, new Vector3(222.52222f, 565.99994f, 313.1914f), 960); obj90.Steps = list134; reference106 = obj90; - num++; - ref QuestSequence reference107 = ref span133[num]; + ref QuestSequence reference107 = ref span50[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list135 = new List(index2); - CollectionsMarshal.SetCount(list135, index2); - Span span135 = CollectionsMarshal.AsSpan(list135); - num2 = 0; - ref QuestStep reference108 = ref span135[num2]; + num2 = 6; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span51 = CollectionsMarshal.AsSpan(list135); + ref QuestStep reference108 = ref span51[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 2012364u, new Vector3(203.9978f, 565.9723f, 296.98633f), 960); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list136; num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span137 = CollectionsMarshal.AsSpan(list137); - num4 = 0; - span137[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list137)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG114_04463_Q1_000_031"), @@ -363191,116 +299345,79 @@ public static class AssemblyQuestLoader }; questStep17.DialogueChoices = list137; reference108 = questStep17; - num2++; - ref QuestStep reference109 = ref span135[num2]; + ref QuestStep reference109 = ref span51[1]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2012367u, new Vector3(185.74805f, 568.902f, 240.03955f), 960); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list138; reference109 = questStep18; - num2++; - ref QuestStep reference110 = ref span135[num2]; + ref QuestStep reference110 = ref span51[2]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list139; reference110 = questStep19; - num2++; - ref QuestStep reference111 = ref span135[num2]; + ref QuestStep reference111 = ref span51[3]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2012366u, new Vector3(157.24414f, 566.03345f, 295.97925f), 960); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list140; reference111 = questStep20; - num2++; - ref QuestStep reference112 = ref span135[num2]; + ref QuestStep reference112 = ref span51[4]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list141; reference112 = questStep21; - num2++; - ref QuestStep reference113 = ref span135[num2]; + ref QuestStep reference113 = ref span51[5]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2012365u, new Vector3(78.99597f, 566.27747f, 241.9928f), 960); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list142; num3 = 1; List list143 = new List(num3); CollectionsMarshal.SetCount(list143, num3); - Span span143 = CollectionsMarshal.AsSpan(list143); - num4 = 0; - span143[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list143)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMG114_04463_Q2_000_061"), @@ -363310,8 +299427,7 @@ public static class AssemblyQuestLoader reference113 = questStep22; obj91.Steps = list135; reference107 = obj91; - num++; - ref QuestSequence reference114 = ref span133[num]; + ref QuestSequence reference114 = ref span50[2]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -363319,27 +299435,21 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.Interact, 1041171u, new Vector3(39.993896f, 567.5f, 192.88928f), 960); + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1041171u, new Vector3(39.993896f, 567.5f, 192.88928f), 960); obj92.Steps = list144; reference114 = obj92; - num++; - ref QuestSequence reference115 = ref span133[num]; + ref QuestSequence reference115 = ref span50[3]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj93.Steps = list145; reference115 = obj93; - num++; - ref QuestSequence reference116 = ref span133[num]; + ref QuestSequence reference116 = ref span50[4]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -363347,23 +299457,18 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.462573f, 637.1029f, 2.690414f), 1027); + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(1.462573f, 637.1029f, 2.690414f), 1027); obj94.Steps = list146; reference116 = obj94; - num++; - ref QuestSequence reference117 = ref span133[num]; + ref QuestSequence reference117 = ref span50[5]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, DisableNavmesh = true @@ -363377,16 +299482,13 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "liza"; + CollectionsMarshal.AsSpan(list148)[0] = "liza"; questRoot15.Author = list148; - index = 9; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference118 = ref span149[num]; + num = 9; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span58 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference118 = ref span58[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -363394,26 +299496,21 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042216u, new Vector3(4.196167f, 637.10297f, 4.2266846f), 960) + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042216u, new Vector3(4.196167f, 637.10297f, 4.2266846f), 960) { DisableNavmesh = true }; obj96.Steps = list150; reference118 = obj96; - num++; - ref QuestSequence reference119 = ref span149[num]; + ref QuestSequence reference119 = ref span58[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Duty, null, null, 960) { DutyOptions = new DutyOptions { @@ -363422,13 +299519,11 @@ public static class AssemblyQuestLoader }; obj97.Steps = list151; reference119 = obj97; - num++; - span149[num] = new QuestSequence + span58[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference120 = ref span149[num]; + ref QuestSequence reference120 = ref span58[3]; QuestSequence obj98 = new QuestSequence { Sequence = 3 @@ -363436,9 +299531,7 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.Duty, null, null, 1029) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Duty, null, null, 1029) { DutyOptions = new DutyOptions { @@ -363447,23 +299540,19 @@ public static class AssemblyQuestLoader }; obj98.Steps = list152; reference120 = obj98; - num++; - span149[num] = new QuestSequence + span58[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference121 = ref span149[num]; + ref QuestSequence reference121 = ref span58[5]; QuestSequence obj99 = new QuestSequence { Sequence = 5 }; - 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) + 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) { DisableNavmesh = true, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -363473,13 +299562,11 @@ public static class AssemblyQuestLoader }; obj99.Steps = list153; reference121 = obj99; - num++; - span149[num] = new QuestSequence + span58[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference122 = ref span149[num]; + ref QuestSequence reference122 = ref span58[7]; QuestSequence obj100 = new QuestSequence { Sequence = 7 @@ -363487,34 +299574,26 @@ public static class AssemblyQuestLoader num2 = 8; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - ref QuestStep reference123 = ref span154[index2]; + Span span59 = CollectionsMarshal.AsSpan(list154); + ref QuestStep reference123 = ref span59[0]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1041188u, new Vector3(-0.16790771f, 0f, 0.8086548f), 351) { StopDistance = 5f, DelaySecondsAtStart = 3f }; - 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); + 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); obj101.CompletionQuestVariablesFlags = list155; reference123 = obj101; - index2++; - ref QuestStep reference124 = ref span154[index2]; + ref QuestStep reference124 = ref span59[1]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 1041181u, new Vector3(-1.236023f, 0f, 0.6560669f), 351) { StopDistance = 5f @@ -363522,44 +299601,30 @@ public static class AssemblyQuestLoader num3 = 6; List list156 = new List(num3); CollectionsMarshal.SetCount(list156, num3); - 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); + 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); obj102.CompletionQuestVariablesFlags = list156; reference124 = obj102; - index2++; - ref QuestStep reference125 = ref span154[index2]; + ref QuestStep reference125 = ref span59[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1041182u, new Vector3(-6.4240723f, 0.009977884f, -4.7455444f), 351); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list157; reference125 = questStep23; - index2++; - ref QuestStep reference126 = ref span154[index2]; + ref QuestStep reference126 = ref span59[3]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1041184u, new Vector3(-7.034485f, 0f, -5.8442383f), 351) { StopDistance = 5f @@ -363567,126 +299632,87 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - 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); + 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); obj103.CompletionQuestVariablesFlags = list158; reference126 = obj103; - index2++; - ref QuestStep reference127 = ref span154[index2]; + ref QuestStep reference127 = ref span59[4]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1041183u, new Vector3(6.6376343f, 0f, -6.790344f), 351); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list159; reference127 = questStep24; - index2++; - ref QuestStep reference128 = ref span154[index2]; + ref QuestStep reference128 = ref span59[5]; 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 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); + 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); questStep25.CompletionQuestVariablesFlags = list160; reference128 = questStep25; - index2++; - ref QuestStep reference129 = ref span154[index2]; + ref QuestStep reference129 = ref span59[6]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1041185u, new Vector3(25.864014f, -1f, -5.7526855f), 351); - 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); + 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); questStep26.CompletionQuestVariablesFlags = list161; reference129 = questStep26; - index2++; - ref QuestStep reference130 = ref span154[index2]; + ref QuestStep reference130 = ref span59[7]; 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 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); + 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); questStep27.CompletionQuestVariablesFlags = list162; reference130 = questStep27; obj100.Steps = list154; reference122 = obj100; - num++; - ref QuestSequence reference131 = ref span149[num]; + ref QuestSequence reference131 = ref span58[8]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list163 = new List(index2); - CollectionsMarshal.SetCount(list163, index2); - Span span163 = CollectionsMarshal.AsSpan(list163); - num2 = 0; - ref QuestStep reference132 = ref span163[num2]; + num2 = 1; + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + ref QuestStep reference132 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep questStep28 = new QuestStep(EInteractionType.CompleteQuest, 1041189u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); - num4 = 1; - List list164 = new List(num4); - CollectionsMarshal.SetCount(list164, num4); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new DialogueChoice + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMG115_04464_Q13_000_391") @@ -363702,16 +299728,13 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot16.Author = list165; - index = 2; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference133 = ref span166[num]; + num = 2; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span68 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference133 = ref span68[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -363719,23 +299742,18 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1038500u, new Vector3(-357.83936f, 21.84602f, -91.32526f), 962); obj105.Steps = list167; reference133 = obj105; - num++; - ref QuestSequence reference134 = ref span166[num]; + ref QuestSequence reference134 = ref span68[1]; QuestSequence obj106 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj106.Steps = list168; reference134 = obj106; questRoot16.QuestSequence = list166; @@ -363745,16 +299763,13 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; questRoot17.Author = list169; - index = 4; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference135 = ref span170[num]; + num = 4; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span69 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference135 = ref span69[0]; QuestSequence obj107 = new QuestSequence { Sequence = 0 @@ -363762,9 +299777,7 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041268u, new Vector3(-81.1933f, 1.0795165f, 36.51477f), 962) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041268u, new Vector3(-81.1933f, 1.0795165f, 36.51477f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -363775,25 +299788,21 @@ public static class AssemblyQuestLoader }; obj107.Steps = list171; reference135 = obj107; - num++; - ref QuestSequence reference136 = ref span170[num]; + ref QuestSequence reference136 = ref span69[1]; QuestSequence obj108 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj108.Steps = list172; reference136 = obj108; - num++; - ref QuestSequence reference137 = ref span170[num]; + ref QuestSequence reference137 = ref span69[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -363801,9 +299810,8 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) + Span span70 = CollectionsMarshal.AsSpan(list173); + span70[0] = new QuestStep(EInteractionType.Interact, 1033863u, new Vector3(118.02844f, 14.649026f, 7.156433f), 819) { TargetTerritoryId = (ushort)844, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -363813,22 +299821,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 2012425u, new Vector3(0.10675049f, -0.015319824f, -8.163635f), 844); + span70[1] = new QuestStep(EInteractionType.Interact, 2012425u, new Vector3(0.10675049f, -0.015319824f, -8.163635f), 844); obj109.Steps = list173; reference137 = obj109; - num++; - ref QuestSequence reference138 = ref span170[num]; + ref QuestSequence reference138 = ref span69[3]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4476) }; @@ -363841,16 +299845,13 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "liza"; + CollectionsMarshal.AsSpan(list175)[0] = "liza"; questRoot18.Author = list175; - index = 5; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference139 = ref span176[num]; + num = 5; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span71 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference139 = ref span71[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -363858,31 +299859,25 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961); + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041271u, new Vector3(542.5039f, 7.6627564f, 50.91931f), 961); obj111.Steps = list177; reference139 = obj111; - num++; - ref QuestSequence reference140 = ref span176[num]; + ref QuestSequence reference140 = ref span71[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; obj112.Steps = list178; reference140 = obj112; - num++; - ref QuestSequence reference141 = ref span176[num]; + ref QuestSequence reference141 = ref span71[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -363890,9 +299885,7 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - ref QuestStep reference142 = ref span179[index2]; + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list179)[0]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1041273u, new Vector3(808.3772f, 152.22246f, -240.4975f), 961) { Fly = true @@ -363900,9 +299893,7 @@ public static class AssemblyQuestLoader num3 = 1; List list180 = new List(num3); CollectionsMarshal.SetCount(list180, num3); - Span span180 = CollectionsMarshal.AsSpan(list180); - num4 = 0; - span180[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKRA102_04476_SYSTEM_046") @@ -363911,18 +299902,15 @@ public static class AssemblyQuestLoader reference142 = obj114; obj113.Steps = list179; reference141 = obj113; - num++; - ref QuestSequence reference143 = ref span176[num]; + ref QuestSequence reference143 = ref span71[3]; QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -363931,8 +299919,7 @@ public static class AssemblyQuestLoader }; obj115.Steps = list181; reference143 = obj115; - num++; - ref QuestSequence reference144 = ref span176[num]; + ref QuestSequence reference144 = ref span71[4]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -363940,9 +299927,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041501u, new Vector3(101.51831f, -9.999997E-12f, 101.60974f), 1025) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041501u, new Vector3(101.51831f, -9.999997E-12f, 101.60974f), 1025) { StopDistance = 5f, NextQuestId = new QuestId(4477) @@ -363956,30 +299941,24 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot19.Author = list183; - index = 3; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference145 = ref span184[num]; + num = 3; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span72 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference145 = ref span72[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj117.Steps = list185; reference145 = obj117; - num++; - ref QuestSequence reference146 = ref span184[num]; + ref QuestSequence reference146 = ref span72[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -363987,9 +299966,7 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -363998,18 +299975,15 @@ public static class AssemblyQuestLoader }; obj118.Steps = list186; reference146 = obj118; - num++; - ref QuestSequence reference147 = ref span184[num]; + ref QuestSequence reference147 = ref span72[2]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 4f, NextQuestId = new QuestId(4478) @@ -364023,16 +299997,13 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot20.Author = list188; - index = 3; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference148 = ref span189[num]; + num = 3; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span73 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference148 = ref span73[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -364040,26 +300011,21 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041503u, new Vector3(100.87732f, 7.6875f, -67.61273f), 1025) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041503u, new Vector3(100.87732f, 7.6875f, -67.61273f), 1025) { StopDistance = 4f }; obj120.Steps = list190; reference148 = obj120; - num++; - ref QuestSequence reference149 = ref span189[num]; + ref QuestSequence reference149 = ref span73[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list191 = new List(num2); + CollectionsMarshal.SetCount(list191, num2); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -364068,8 +300034,7 @@ public static class AssemblyQuestLoader }; obj121.Steps = list191; reference149 = obj121; - num++; - ref QuestSequence reference150 = ref span189[num]; + ref QuestSequence reference150 = ref span73[2]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -364077,9 +300042,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041278u, new Vector3(98.34436f, -1E-11f, -29.678833f), 1025) { StopDistance = 5f, NextQuestId = new QuestId(4479) @@ -364093,33 +300056,27 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "liza"; + CollectionsMarshal.AsSpan(list193)[0] = "liza"; questRoot21.Author = list193; - index = 6; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference151 = ref span194[num]; + num = 6; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span74 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference151 = ref span74[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj123.Steps = list195; reference151 = obj123; - num++; - ref QuestSequence reference152 = ref span194[num]; + ref QuestSequence reference152 = ref span74[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -364127,23 +300084,18 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.Interact, 1041279u, new Vector3(114.54944f, -9.999999E-12f, -25.742065f), 1025); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 1041279u, new Vector3(114.54944f, -9.999999E-12f, -25.742065f), 1025); obj124.Steps = list196; reference152 = obj124; - num++; - ref QuestSequence reference153 = ref span194[num]; + ref QuestSequence reference153 = ref span74[2]; QuestSequence obj125 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list197 = new List(num2); + CollectionsMarshal.SetCount(list197, num2); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -364152,13 +300104,11 @@ public static class AssemblyQuestLoader }; obj125.Steps = list197; reference153 = obj125; - num++; - span194[num] = new QuestSequence + span74[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference154 = ref span194[num]; + ref QuestSequence reference154 = ref span74[4]; QuestSequence obj126 = new QuestSequence { Sequence = 4 @@ -364166,26 +300116,21 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 1041280u, new Vector3(98.95471f, -1E-11f, -29.953552f), 1025) + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1041280u, new Vector3(98.95471f, -1E-11f, -29.953552f), 1025) { StopDistance = 5f }; obj126.Steps = list198; reference154 = obj126; - num++; - ref QuestSequence reference155 = ref span194[num]; + ref QuestSequence reference155 = ref span74[5]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, NextQuestId = new QuestId(4635) @@ -364199,16 +300144,13 @@ public static class AssemblyQuestLoader num = 1; List list200 = new List(num); CollectionsMarshal.SetCount(list200, num); - Span span200 = CollectionsMarshal.AsSpan(list200); - index = 0; - span200[index] = "liza"; + CollectionsMarshal.AsSpan(list200)[0] = "liza"; questRoot22.Author = list200; - index = 7; - List list201 = new List(index); - CollectionsMarshal.SetCount(list201, index); - Span span201 = CollectionsMarshal.AsSpan(list201); - num = 0; - ref QuestSequence reference156 = ref span201[num]; + num = 7; + List list201 = new List(num); + CollectionsMarshal.SetCount(list201, num); + Span span75 = CollectionsMarshal.AsSpan(list201); + ref QuestSequence reference156 = ref span75[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -364216,27 +300158,21 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956); + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041667u, new Vector3(443.96118f, 65.162f, -105.4552f), 956); obj128.Steps = list202; reference156 = obj128; - num++; - ref QuestSequence reference157 = ref span201[num]; + ref QuestSequence reference157 = ref span75[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj129.Steps = list203; reference157 = obj129; - num++; - ref QuestSequence reference158 = ref span201[num]; + ref QuestSequence reference158 = ref span75[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 @@ -364244,30 +300180,24 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.Interact, 2012726u, new Vector3(806.79016f, 154.10083f, -149.64526f), 956); + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 2012726u, new Vector3(806.79016f, 154.10083f, -149.64526f), 956); obj130.Steps = list204; reference158 = obj130; - num++; - ref QuestSequence reference159 = ref span201[num]; + ref QuestSequence reference159 = ref span75[3]; QuestSequence obj131 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; obj131.Steps = list205; reference159 = obj131; - num++; - ref QuestSequence reference160 = ref span201[num]; + ref QuestSequence reference160 = ref span75[4]; QuestSequence obj132 = new QuestSequence { Sequence = 4 @@ -364275,40 +300205,32 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.Interact, 1041668u, new Vector3(394.12524f, 173.82095f, -646.75366f), 956); + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.Interact, 1041668u, new Vector3(394.12524f, 173.82095f, -646.75366f), 956); obj132.Steps = list206; reference160 = obj132; - num++; - ref QuestSequence reference161 = ref span201[num]; + ref QuestSequence reference161 = ref span75[5]; QuestSequence obj133 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list207 = new List(index2); - CollectionsMarshal.SetCount(list207, index2); - Span span207 = CollectionsMarshal.AsSpan(list207); - num2 = 0; - ref QuestStep reference162 = ref span207[num2]; + num2 = 1; + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + ref QuestStep reference162 = ref CollectionsMarshal.AsSpan(list207)[0]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) { StopDistance = 1f, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list208 = new List(num4); - CollectionsMarshal.SetCount(list208, num4); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = 14069u; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + CollectionsMarshal.AsSpan(list208)[0] = 14069u; obj134.KillEnemyDataIds = list208; reference162 = obj134; obj133.Steps = list207; reference161 = obj133; - num++; - ref QuestSequence reference163 = ref span201[num]; + ref QuestSequence reference163 = ref span75[6]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -364316,9 +300238,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041670u, new Vector3(285.23682f, 185.65448f, -729.67114f), 956) { StopDistance = 5f }; @@ -364331,33 +300251,26 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "liza"; + CollectionsMarshal.AsSpan(list210)[0] = "liza"; questRoot23.Author = list210; - index = 3; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference164 = ref span211[num]; + num = 3; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span76 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference164 = ref span76[0]; QuestSequence obj136 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list212)[0]; 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); - Span span213 = CollectionsMarshal.AsSpan(list213); - num4 = 0; - span213[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list213)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZI101_04484_Q1_000_000"), @@ -364367,8 +300280,7 @@ public static class AssemblyQuestLoader reference165 = questStep29; obj136.Steps = list212; reference164 = obj136; - num++; - ref QuestSequence reference166 = ref span211[num]; + ref QuestSequence reference166 = ref span76[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -364376,23 +300288,18 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1041684u, new Vector3(50.43103f, -29.530062f, 27.115234f), 956); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1041684u, new Vector3(50.43103f, -29.530062f, 27.115234f), 956); obj137.Steps = list214; reference166 = obj137; - num++; - ref QuestSequence reference167 = ref span211[num]; + ref QuestSequence reference167 = ref span76[2]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj138.Steps = list215; reference167 = obj138; questRoot23.QuestSequence = list211; @@ -364402,16 +300309,13 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - Span span216 = CollectionsMarshal.AsSpan(list216); - index = 0; - span216[index] = "liza"; + CollectionsMarshal.AsSpan(list216)[0] = "liza"; questRoot24.Author = list216; - index = 7; - List list217 = new List(index); - CollectionsMarshal.SetCount(list217, index); - Span span217 = CollectionsMarshal.AsSpan(list217); - num = 0; - ref QuestSequence reference168 = ref span217[num]; + num = 7; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + Span span77 = CollectionsMarshal.AsSpan(list217); + ref QuestSequence reference168 = ref span77[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 @@ -364419,16 +300323,12 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - ref QuestStep reference169 = ref span218[index2]; + ref QuestStep reference169 = ref CollectionsMarshal.AsSpan(list218)[0]; QuestStep questStep30 = new QuestStep(EInteractionType.AcceptQuest, 1041331u, new Vector3(202.4414f, 1.769943f, 727.7484f), 957); - num4 = 1; - List list219 = new List(num4); - CollectionsMarshal.SetCount(list219, num4); - Span span219 = CollectionsMarshal.AsSpan(list219); - num3 = 0; - span219[num3] = new DialogueChoice + num3 = 1; + List list219 = new List(num3); + CollectionsMarshal.SetCount(list219, num3); + CollectionsMarshal.AsSpan(list219)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA201_04489_Q1_000_004"), @@ -364438,22 +300338,18 @@ public static class AssemblyQuestLoader reference169 = questStep30; obj139.Steps = list218; reference168 = obj139; - num++; - ref QuestSequence reference170 = ref span217[num]; + ref QuestSequence reference170 = ref span77[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj140.Steps = list220; reference170 = obj140; - num++; - ref QuestSequence reference171 = ref span217[num]; + ref QuestSequence reference171 = ref span77[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -364461,23 +300357,18 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1041334u, new Vector3(123.125f, 16.522793f, 537.8042f), 957); obj141.Steps = list221; reference171 = obj141; - num++; - ref QuestSequence reference172 = ref span217[num]; + ref QuestSequence reference172 = ref span77[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list222 = new List(index2); - CollectionsMarshal.SetCount(list222, index2); - Span span222 = CollectionsMarshal.AsSpan(list222); - num2 = 0; - ref QuestStep reference173 = ref span222[num2]; + num2 = 1; + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list222)[0]; QuestStep obj143 = new QuestStep(EInteractionType.Combat, null, new Vector3(167.34262f, 41.652294f, 409.31412f), 957) { StopDistance = 1f, @@ -364486,15 +300377,12 @@ public static class AssemblyQuestLoader num3 = 1; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - Span span223 = CollectionsMarshal.AsSpan(list223); - num4 = 0; - span223[num4] = 14043u; + CollectionsMarshal.AsSpan(list223)[0] = 14043u; obj143.KillEnemyDataIds = list223; reference173 = obj143; obj142.Steps = list222; reference172 = obj142; - num++; - ref QuestSequence reference174 = ref span217[num]; + ref QuestSequence reference174 = ref span77[4]; QuestSequence obj144 = new QuestSequence { Sequence = 4 @@ -364502,33 +300390,27 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1041338u, new Vector3(167.1626f, 41.614826f, 409.53687f), 957) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1041338u, new Vector3(167.1626f, 41.614826f, 409.53687f), 957) { StopDistance = 7f }; obj144.Steps = list224; reference174 = obj144; - num++; - ref QuestSequence reference175 = ref span217[num]; + ref QuestSequence reference175 = ref span77[5]; QuestSequence obj145 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj145.Steps = list225; reference175 = obj145; - num++; - ref QuestSequence reference176 = ref span217[num]; + ref QuestSequence reference176 = ref span77[6]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -364536,9 +300418,7 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj146.Steps = list226; reference176 = obj146; questRoot24.QuestSequence = list217; @@ -364548,30 +300428,24 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "liza"; + CollectionsMarshal.AsSpan(list227)[0] = "liza"; questRoot25.Author = list227; - index = 8; - List list228 = new List(index); - CollectionsMarshal.SetCount(list228, index); - Span span228 = CollectionsMarshal.AsSpan(list228); - num = 0; - ref QuestSequence reference177 = ref span228[num]; + num = 8; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span78 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference177 = ref span78[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj147.Steps = list229; reference177 = obj147; - num++; - ref QuestSequence reference178 = ref span228[num]; + ref QuestSequence reference178 = ref span78[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -364579,33 +300453,27 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.Interact, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) { Fly = true }; obj148.Steps = list230; reference178 = obj148; - num++; - ref QuestSequence reference179 = ref span228[num]; + ref QuestSequence reference179 = ref span78[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj149.Steps = list231; reference179 = obj149; - num++; - ref QuestSequence reference180 = ref span228[num]; + ref QuestSequence reference180 = ref span78[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -364613,88 +300481,63 @@ public static class AssemblyQuestLoader num2 = 3; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - ref QuestStep reference181 = ref span232[index2]; + Span span79 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference181 = ref span79[0]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1041342u, new Vector3(-123.9491f, 0.3411509f, 642.8778f), 957); - 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); + 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); questStep31.CompletionQuestVariablesFlags = list233; reference181 = questStep31; - index2++; - ref QuestStep reference182 = ref span232[index2]; + ref QuestStep reference182 = ref span79[1]; 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 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); + 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); questStep32.CompletionQuestVariablesFlags = list234; reference182 = questStep32; - index2++; - ref QuestStep reference183 = ref span232[index2]; + ref QuestStep reference183 = ref span79[2]; QuestStep questStep33 = new QuestStep(EInteractionType.Interact, 1041343u, new Vector3(-181.10938f, 0.2237328f, 640.2533f), 957); - 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); + 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); questStep33.CompletionQuestVariablesFlags = list235; reference183 = questStep33; obj150.Steps = list232; reference180 = obj150; - num++; - ref QuestSequence reference184 = ref span228[num]; + ref QuestSequence reference184 = ref span78[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj151.Steps = list236; reference184 = obj151; - num++; - ref QuestSequence reference185 = ref span228[num]; + ref QuestSequence reference185 = ref span78[5]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -364702,9 +300545,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - ref QuestStep reference186 = ref span237[index2]; + ref QuestStep reference186 = ref CollectionsMarshal.AsSpan(list237)[0]; QuestStep obj153 = new QuestStep(EInteractionType.Interact, 1041345u, new Vector3(-112.596375f, 35.468357f, 392.87402f), 957) { Fly = true @@ -364712,9 +300553,7 @@ public static class AssemblyQuestLoader num3 = 1; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num4 = 0; - span238[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZA202_04490_Q1_000_042"), @@ -364724,35 +300563,29 @@ public static class AssemblyQuestLoader reference186 = obj153; obj152.Steps = list237; reference185 = obj152; - num++; - ref QuestSequence reference187 = ref span228[num]; + ref QuestSequence reference187 = ref span78[6]; QuestSequence obj154 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list239 = new List(index2); - CollectionsMarshal.SetCount(list239, index2); - Span span239 = CollectionsMarshal.AsSpan(list239); - num2 = 0; - ref QuestStep reference188 = ref span239[num2]; + num2 = 1; + List list239 = new List(num2); + CollectionsMarshal.SetCount(list239, num2); + ref QuestStep reference188 = ref CollectionsMarshal.AsSpan(list239)[0]; QuestStep obj155 = new QuestStep(EInteractionType.Combat, 2012325u, new Vector3(-206.16473f, 20.645447f, 229.20569f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list240 = new List(num4); - CollectionsMarshal.SetCount(list240, num4); - Span span240 = CollectionsMarshal.AsSpan(list240); - num3 = 0; - span240[num3] = 14042u; + num3 = 1; + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + CollectionsMarshal.AsSpan(list240)[0] = 14042u; obj155.KillEnemyDataIds = list240; reference188 = obj155; obj154.Steps = list239; reference187 = obj154; - num++; - ref QuestSequence reference189 = ref span228[num]; + ref QuestSequence reference189 = ref span78[7]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue @@ -364760,9 +300593,7 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041340u, new Vector3(-124.43738f, 1.3207349f, 613.94666f), 957) { Fly = true, NextQuestId = new QuestId(4491) @@ -364776,33 +300607,27 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "liza"; + CollectionsMarshal.AsSpan(list242)[0] = "liza"; questRoot26.Author = list242; - index = 6; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference190 = ref span243[num]; + num = 6; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span83 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference190 = ref span83[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj157.Steps = list244; reference190 = obj157; - num++; - ref QuestSequence reference191 = ref span243[num]; + ref QuestSequence reference191 = ref span83[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 @@ -364810,38 +300635,32 @@ public static class AssemblyQuestLoader num2 = 2; 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(191.63799f, 15.136713f, 508.80118f), 957) + Span span84 = CollectionsMarshal.AsSpan(list245); + span84[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - index2++; - span245[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + span84[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj158.Steps = list245; reference191 = obj158; - num++; - ref QuestSequence reference192 = ref span243[num]; + ref QuestSequence reference192 = ref span83[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj159.Steps = list246; reference192 = obj159; - num++; - ref QuestSequence reference193 = ref span243[num]; + ref QuestSequence reference193 = ref span83[3]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -364849,26 +300668,22 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1041348u, new Vector3(176.83679f, 10.170378f, 549.0044f), 957) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1041348u, new Vector3(176.83679f, 10.170378f, 549.0044f), 957) { Fly = true }; obj160.Steps = list247; reference193 = obj160; - num++; - ref QuestSequence reference194 = ref span243[num]; + ref QuestSequence reference194 = ref span83[4]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - index2 = 5; - List list248 = new List(index2); - CollectionsMarshal.SetCount(list248, index2); - Span span248 = CollectionsMarshal.AsSpan(list248); - num2 = 0; - ref QuestStep reference195 = ref span248[num2]; + num2 = 5; + List list248 = new List(num2); + CollectionsMarshal.SetCount(list248, num2); + Span span86 = CollectionsMarshal.AsSpan(list248); + ref QuestStep reference195 = ref span86[0]; QuestStep obj162 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(217.2226f, 10.08736f, 604.91754f), 957) { Fly = true @@ -364878,46 +300693,32 @@ public static class AssemblyQuestLoader num3 = 6; List list249 = new List(num3); CollectionsMarshal.SetCount(list249, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list249; skipConditions2.StepIf = skipStepConditions2; obj162.SkipConditions = skipConditions2; reference195 = obj162; - num2++; - ref QuestStep reference196 = ref span248[num2]; + ref QuestStep reference196 = ref span86[1]; QuestStep questStep34 = new QuestStep(EInteractionType.Interact, 1037655u, new Vector3(218.73804f, 10.087359f, 605.249f), 957); - 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); + 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); questStep34.CompletionQuestVariablesFlags = list250; reference196 = questStep34; - num2++; - ref QuestStep reference197 = ref span248[num2]; + ref QuestStep reference197 = ref span86[2]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1037656u, new Vector3(208.1482f, 4.5989733f, 672.0835f), 957) { Fly = true @@ -364925,75 +300726,54 @@ public static class AssemblyQuestLoader num3 = 6; List list251 = new List(num3); CollectionsMarshal.SetCount(list251, num3); - 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); + 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); obj163.CompletionQuestVariablesFlags = list251; reference197 = obj163; - num2++; - ref QuestStep reference198 = ref span248[num2]; + ref QuestStep reference198 = ref span86[3]; QuestStep questStep35 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(161.044f, 1.8294137f, 708.1364f), 957); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list252; skipConditions3.StepIf = skipStepConditions3; questStep35.SkipConditions = skipConditions3; reference198 = questStep35; - num2++; - ref QuestStep reference199 = ref span248[num2]; + ref QuestStep reference199 = ref span86[4]; 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 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list253; skipConditions4.StepIf = skipStepConditions4; questStep36.SkipConditions = skipConditions4; reference199 = questStep36; obj161.Steps = list248; reference194 = obj161; - num++; - ref QuestSequence reference200 = ref span243[num]; + ref QuestSequence reference200 = ref span83[5]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -365001,14 +300781,12 @@ public static class AssemblyQuestLoader num2 = 2; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span92 = CollectionsMarshal.AsSpan(list254); + span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - index2++; - span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957) + span92[1] = new QuestStep(EInteractionType.CompleteQuest, 1041389u, new Vector3(192.79773f, 14.118593f, 487.6936f), 957) { NextQuestId = new QuestId(4492) }; @@ -365021,30 +300799,24 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - Span span255 = CollectionsMarshal.AsSpan(list255); - index = 0; - span255[index] = "liza"; + CollectionsMarshal.AsSpan(list255)[0] = "liza"; questRoot27.Author = list255; - index = 5; - List list256 = new List(index); - CollectionsMarshal.SetCount(list256, index); - Span span256 = CollectionsMarshal.AsSpan(list256); - num = 0; - ref QuestSequence reference201 = ref span256[num]; + num = 5; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span93 = CollectionsMarshal.AsSpan(list256); + ref QuestSequence reference201 = ref span93[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj165.Steps = list257; reference201 = obj165; - num++; - ref QuestSequence reference202 = ref span256[num]; + ref QuestSequence reference202 = ref span93[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -365052,31 +300824,27 @@ public static class AssemblyQuestLoader num2 = 2; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span94 = CollectionsMarshal.AsSpan(list258); + span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Mount = true }; - index2++; - span258[index2] = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) + span94[1] = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) { Fly = true }; obj166.Steps = list258; reference202 = obj166; - num++; - ref QuestSequence reference203 = ref span256[num]; + ref QuestSequence reference203 = ref span93[2]; QuestSequence obj167 = new QuestSequence { Sequence = 2 }; - index2 = 8; - List list259 = new List(index2); - CollectionsMarshal.SetCount(list259, index2); - Span span259 = CollectionsMarshal.AsSpan(list259); - num2 = 0; - ref QuestStep reference204 = ref span259[num2]; + num2 = 8; + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + Span span95 = CollectionsMarshal.AsSpan(list259); + ref QuestStep reference204 = ref span95[0]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2012451u, new Vector3(215.53369f, 9.903015f, 597.4059f), 957) { SkipConditions = new SkipConditions @@ -365087,63 +300855,53 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list260 = new List(num4); - CollectionsMarshal.SetCount(list260, num4); - Span span260 = CollectionsMarshal.AsSpan(list260); - num3 = 0; - span260[num3] = new DialogueChoice + num3 = 1; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + CollectionsMarshal.AsSpan(list260)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKZA204_04492_Q1_000_054") }; obj168.DialogueChoices = list260; reference204 = obj168; - num2++; - span259[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(196.16476f, 9.8597355f, 555.2623f), 957) + span95[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(196.16476f, 9.8597355f, 555.2623f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - num2++; - span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.92545f, 10.335635f, 567.79816f), 957) + span95[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(199.92545f, 10.335635f, 567.79816f), 957) { Mount = false, Sprint = false }; - num2++; - span259[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(170.85558f, 9.90086f, 552.88477f), 957) + span95[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(170.85558f, 9.90086f, 552.88477f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - num2++; - span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.38617f, 14.520461f, 539.5006f), 957) + span95[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(157.38617f, 14.520461f, 539.5006f), 957) { Mount = false, Sprint = false }; - num2++; - span259[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(135.2287f, 19.553255f, 527.03894f), 957) + span95[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1041390u, new Vector3(135.2287f, 19.553255f, 527.03894f), 957) { StopDistance = 100f, Mount = false, Sprint = false }; - num2++; - span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.45122f, 23.673492f, 500.76654f), 957) + span95[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.45122f, 23.673492f, 500.76654f), 957) { Mount = false, Sprint = false }; - num2++; - span259[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.16548f, 23.302423f, 481.5656f), 957); + span95[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(156.16548f, 23.302423f, 481.5656f), 957); obj167.Steps = list259; reference203 = obj167; - num++; - ref QuestSequence reference205 = ref span256[num]; + ref QuestSequence reference205 = ref span93[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 @@ -365151,31 +300909,26 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 1041394u, new Vector3(-30.289246f, 29.867386f, 458.15198f), 957) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1041394u, new Vector3(-30.289246f, 29.867386f, 458.15198f), 957) { Fly = true }; obj169.Steps = list261; reference205 = obj169; - num++; - ref QuestSequence reference206 = ref span256[num]; + ref QuestSequence reference206 = ref span93[4]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span262[num2] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + span96[1] = new QuestStep(EInteractionType.CompleteQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj170.Steps = list262; reference206 = obj170; questRoot27.QuestSequence = list256; @@ -365185,16 +300938,13 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot28.Author = list263; - index = 5; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference207 = ref span264[num]; + num = 5; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span97 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference207 = ref span97[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -365202,65 +300952,47 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042175u, new Vector3(386.83142f, 12.541633f, -311.20776f), 957); + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042175u, new Vector3(386.83142f, 12.541633f, -311.20776f), 957); obj171.Steps = list265; reference207 = obj171; - num++; - ref QuestSequence reference208 = ref span264[num]; + ref QuestSequence reference208 = ref span97[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list266 = new List(index2); - CollectionsMarshal.SetCount(list266, index2); - Span span266 = CollectionsMarshal.AsSpan(list266); - num2 = 0; - ref QuestStep reference209 = ref span266[num2]; + num2 = 3; + List list266 = new List(num2); + CollectionsMarshal.SetCount(list266, num2); + Span span98 = CollectionsMarshal.AsSpan(list266); + ref QuestStep reference209 = ref span98[0]; 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 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); + 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); questStep37.CompletionQuestVariablesFlags = list267; reference209 = questStep37; - num2++; - ref QuestStep reference210 = ref span266[num2]; + ref QuestStep reference210 = ref span98[1]; QuestStep questStep38 = new QuestStep(EInteractionType.Interact, 1041398u, new Vector3(437.39978f, 3.1168795f, -248.64581f), 957); - 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); + 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); questStep38.CompletionQuestVariablesFlags = list268; reference210 = questStep38; - num2++; - ref QuestStep reference211 = ref span266[num2]; + ref QuestStep reference211 = ref span98[2]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1041399u, new Vector3(365.9265f, 3.1168795f, -245.53296f), 957) { Fly = true @@ -365268,25 +301000,18 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - 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); + 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); obj173.CompletionQuestVariablesFlags = list269; reference211 = obj173; obj172.Steps = list266; reference208 = obj172; - num++; - ref QuestSequence reference212 = ref span264[num]; + ref QuestSequence reference212 = ref span97[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 @@ -365294,40 +301019,34 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957) + Span span102 = CollectionsMarshal.AsSpan(list270); + span102[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.03082f, 6.081707f, -206.11922f), 957) { Fly = true }; - index2++; - span270[index2] = new QuestStep(EInteractionType.Interact, 1042187u, new Vector3(404.89807f, 7.6153164f, -200.64093f), 957) + span102[1] = new QuestStep(EInteractionType.Interact, 1042187u, new Vector3(404.89807f, 7.6153164f, -200.64093f), 957) { DisableNavmesh = true }; obj174.Steps = list270; reference212 = obj174; - num++; - ref QuestSequence reference213 = ref span264[num]; + ref QuestSequence reference213 = ref span97[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj175.Steps = list271; reference213 = obj175; - num++; - ref QuestSequence reference214 = ref span264[num]; + ref QuestSequence reference214 = ref span97[4]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue @@ -365335,9 +301054,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true, NextQuestId = new QuestId(4494) @@ -365351,30 +301068,24 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot29.Author = list273; - index = 6; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference215 = ref span274[num]; + num = 6; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span104 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference215 = ref span104[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj177.Steps = list275; reference215 = obj177; - num++; - ref QuestSequence reference216 = ref span274[num]; + ref QuestSequence reference216 = ref span104[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 @@ -365382,65 +301093,48 @@ public static class AssemblyQuestLoader num2 = 3; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - ref QuestStep reference217 = ref span276[index2]; + Span span105 = CollectionsMarshal.AsSpan(list276); + ref QuestStep reference217 = ref span105[0]; QuestStep obj179 = new QuestStep(EInteractionType.Combat, 2012454u, new Vector3(519.6764f, 13.01593f, -339.5285f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list277 = new List(num4); - CollectionsMarshal.SetCount(list277, num4); - Span span277 = CollectionsMarshal.AsSpan(list277); - num3 = 0; - span277[num3] = 14041u; + num3 = 1; + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + CollectionsMarshal.AsSpan(list277)[0] = 14041u; obj179.KillEnemyDataIds = list277; num3 = 6; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - 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); + 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); obj179.CompletionQuestVariablesFlags = list278; reference217 = obj179; - index2++; - ref QuestStep reference218 = ref span276[index2]; + ref QuestStep reference218 = ref span105[1]; QuestStep obj180 = new QuestStep(EInteractionType.Interact, 2012453u, new Vector3(556.02344f, 9.170593f, -382.00964f), 957) { Fly = true }; - 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); + 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); obj180.CompletionQuestVariablesFlags = list279; reference218 = obj180; - index2++; - ref QuestStep reference219 = ref span276[index2]; + ref QuestStep reference219 = ref span105[2]; QuestStep obj181 = new QuestStep(EInteractionType.Interact, 2012452u, new Vector3(515.8617f, 7.4310913f, -413.59583f), 957) { Fly = true @@ -365448,42 +301142,32 @@ public static class AssemblyQuestLoader num3 = 6; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - 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); + 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); obj181.CompletionQuestVariablesFlags = list280; reference219 = obj181; obj178.Steps = list276; reference216 = obj178; - num++; - ref QuestSequence reference220 = ref span274[num]; + ref QuestSequence reference220 = ref span104[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj182.Steps = list281; reference220 = obj182; - num++; - ref QuestSequence reference221 = ref span274[num]; + ref QuestSequence reference221 = ref span104[3]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -365491,33 +301175,26 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true }; obj183.Steps = list282; reference221 = obj183; - num++; - ref QuestSequence reference222 = ref span274[num]; + ref QuestSequence reference222 = ref span104[4]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list283 = new List(index2); - CollectionsMarshal.SetCount(list283, index2); - Span span283 = CollectionsMarshal.AsSpan(list283); - num2 = 0; - ref QuestStep reference223 = ref span283[num2]; + num2 = 1; + List list283 = new List(num2); + CollectionsMarshal.SetCount(list283, num2); + ref QuestStep reference223 = ref CollectionsMarshal.AsSpan(list283)[0]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1041405u, new Vector3(377.67603f, 3.1168795f, -238.57489f), 957); - num4 = 1; - List list284 = new List(num4); - CollectionsMarshal.SetCount(list284, num4); - Span span284 = CollectionsMarshal.AsSpan(list284); - num3 = 0; - span284[num3] = new DialogueChoice + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + CollectionsMarshal.AsSpan(list284)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF102_04494_Q1_000_033"), @@ -365527,8 +301204,7 @@ public static class AssemblyQuestLoader reference223 = questStep39; obj184.Steps = list283; reference222 = obj184; - num++; - ref QuestSequence reference224 = ref span274[num]; + ref QuestSequence reference224 = ref span104[5]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -365536,9 +301212,7 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { NextQuestId = new QuestId(4495) }; @@ -365551,30 +301225,24 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "liza"; + CollectionsMarshal.AsSpan(list286)[0] = "liza"; questRoot30.Author = list286; - index = 6; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference225 = ref span287[num]; + num = 6; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span109 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference225 = ref span109[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj186.Steps = list288; reference225 = obj186; - num++; - ref QuestSequence reference226 = ref span287[num]; + ref QuestSequence reference226 = ref span109[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -365582,9 +301250,7 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - ref QuestStep reference227 = ref span289[index2]; + ref QuestStep reference227 = ref CollectionsMarshal.AsSpan(list289)[0]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1041407u, new Vector3(672.5414f, 41.21271f, 145.46423f), 957) { Fly = true @@ -365592,9 +301258,7 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span290 = CollectionsMarshal.AsSpan(list290); - num4 = 0; - span290[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF103_04495_Q1_000_016"), @@ -365604,25 +301268,21 @@ public static class AssemblyQuestLoader reference227 = obj188; obj187.Steps = list289; reference226 = obj187; - num++; - ref QuestSequence reference228 = ref span287[num]; + ref QuestSequence reference228 = ref span109[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj189.Steps = list291; reference228 = obj189; - num++; - ref QuestSequence reference229 = ref span287[num]; + ref QuestSequence reference229 = ref span109[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -365630,37 +301290,29 @@ public static class AssemblyQuestLoader num2 = 6; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - ref QuestStep reference230 = ref span292[index2]; + Span span110 = CollectionsMarshal.AsSpan(list292); + ref QuestStep reference230 = ref span110[0]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list293; skipConditions5.StepIf = skipStepConditions5; obj191.SkipConditions = skipConditions5; reference230 = obj191; - index2++; - ref QuestStep reference231 = ref span292[index2]; + ref QuestStep reference231 = ref span110[1]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 2012455u, new Vector3(574.91406f, 24.979004f, 284.3518f), 957) { IgnoreDistanceToObject = true @@ -365668,140 +301320,102 @@ public static class AssemblyQuestLoader num3 = 6; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - 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); + 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); obj192.CompletionQuestVariablesFlags = list294; reference231 = obj192; - index2++; - ref QuestStep reference232 = ref span292[index2]; + ref QuestStep reference232 = ref span110[2]; 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(); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list295; skipConditions6.StepIf = skipStepConditions6; obj193.SkipConditions = skipConditions6; reference232 = obj193; - index2++; - ref QuestStep reference233 = ref span292[index2]; + ref QuestStep reference233 = ref span110[3]; 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 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); + 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); questStep40.CompletionQuestVariablesFlags = list296; reference233 = questStep40; - index2++; - ref QuestStep reference234 = ref span292[index2]; + ref QuestStep reference234 = ref span110[4]; 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(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list297; skipConditions7.StepIf = skipStepConditions7; obj194.SkipConditions = skipConditions7; reference234 = obj194; - index2++; - ref QuestStep reference235 = ref span292[index2]; + ref QuestStep reference235 = ref span110[5]; 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 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); + 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); questStep41.CompletionQuestVariablesFlags = list298; reference235 = questStep41; obj190.Steps = list292; reference229 = obj190; - num++; - ref QuestSequence reference236 = ref span287[num]; + ref QuestSequence reference236 = ref span109[4]; QuestSequence obj195 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj195.Steps = list299; reference236 = obj195; - num++; - ref QuestSequence reference237 = ref span287[num]; + ref QuestSequence reference237 = ref span109[5]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -365809,19 +301423,15 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - ref QuestStep reference238 = ref span300[index2]; + ref QuestStep reference238 = ref CollectionsMarshal.AsSpan(list300)[0]; QuestStep obj197 = new QuestStep(EInteractionType.CompleteQuest, 1041402u, new Vector3(411.06274f, 3.1168792f, -268.6046f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - num4 = 1; - List list301 = new List(num4); - CollectionsMarshal.SetCount(list301, num4); - Span span301 = CollectionsMarshal.AsSpan(list301); - num3 = 0; - span301[num3] = new DialogueChoice + num3 = 1; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + CollectionsMarshal.AsSpan(list301)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF103_04495_Q2_000_045"), @@ -365839,30 +301449,24 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "liza"; + CollectionsMarshal.AsSpan(list302)[0] = "liza"; questRoot31.Author = list302; - index = 6; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference239 = ref span303[num]; + num = 6; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span117 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference239 = ref span117[0]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj198.Steps = list304; reference239 = obj198; - num++; - ref QuestSequence reference240 = ref span303[num]; + ref QuestSequence reference240 = ref span117[1]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -365870,38 +301474,32 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.Interact, 2012460u, new Vector3(240.52795f, 7.095398f, -556.5729f), 957) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 2012460u, new Vector3(240.52795f, 7.095398f, -556.5729f), 957) { Fly = true }; obj199.Steps = list305; reference240 = obj199; - num++; - ref QuestSequence reference241 = ref span303[num]; + ref QuestSequence reference241 = ref span117[2]; QuestSequence obj200 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = false }; - num2++; - span306[num2] = new QuestStep(EInteractionType.Interact, 1041410u, new Vector3(271.5343f, 6.226011f, -556.54236f), 957) + span118[1] = new QuestStep(EInteractionType.Interact, 1041410u, new Vector3(271.5343f, 6.226011f, -556.54236f), 957) { StopDistance = 5f }; obj200.Steps = list306; reference241 = obj200; - num++; - ref QuestSequence reference242 = ref span303[num]; + ref QuestSequence reference242 = ref span117[3]; QuestSequence obj201 = new QuestSequence { Sequence = 3 @@ -365909,33 +301507,27 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span307[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj201.Steps = list307; reference242 = obj201; - num++; - ref QuestSequence reference243 = ref span303[num]; + ref QuestSequence reference243 = ref span117[4]; QuestSequence obj202 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj202.Steps = list308; reference243 = obj202; - num++; - ref QuestSequence reference244 = ref span303[num]; + ref QuestSequence reference244 = ref span117[5]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -365943,9 +301535,7 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { Fly = true, NextQuestId = new QuestId(4497) @@ -365959,33 +301549,26 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "liza"; + CollectionsMarshal.AsSpan(list310)[0] = "liza"; questRoot32.Author = list310; - index = 9; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference245 = ref span311[num]; + num = 9; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span119 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference245 = ref span119[0]; QuestSequence obj204 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + ref QuestStep reference246 = ref CollectionsMarshal.AsSpan(list312)[0]; 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); - Span span313 = CollectionsMarshal.AsSpan(list313); - num4 = 0; - span313[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZF201_04497_Q1_000_012"), @@ -365995,8 +301578,7 @@ public static class AssemblyQuestLoader reference246 = questStep42; obj204.Steps = list312; reference245 = obj204; - num++; - ref QuestSequence reference247 = ref span311[num]; + ref QuestSequence reference247 = ref span119[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -366004,41 +301586,35 @@ public static class AssemblyQuestLoader num2 = 2; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span120 = CollectionsMarshal.AsSpan(list314); + span120[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - index2++; - span314[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + span120[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj205.Steps = list314; reference247 = obj205; - num++; - ref QuestSequence reference248 = ref span311[num]; + ref QuestSequence reference248 = ref span119[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span315[num2] = new QuestStep(EInteractionType.Interact, 1041412u, new Vector3(93.88867f, 8.462445f, 566.0028f), 957) + span121[1] = new QuestStep(EInteractionType.Interact, 1041412u, new Vector3(93.88867f, 8.462445f, 566.0028f), 957) { Fly = true }; obj206.Steps = list315; reference248 = obj206; - num++; - ref QuestSequence reference249 = ref span311[num]; + ref QuestSequence reference249 = ref span119[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -366046,9 +301622,7 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - ref QuestStep reference250 = ref span316[index2]; + ref QuestStep reference250 = ref CollectionsMarshal.AsSpan(list316)[0]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, null, new Vector3(-282.0419f, 67.704025f, -545.84924f), 957) { StopDistance = 1f, @@ -366056,35 +301630,29 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list317 = new List(num4); - CollectionsMarshal.SetCount(list317, num4); - Span span317 = CollectionsMarshal.AsSpan(list317); - num3 = 0; - span317[num3] = 14039u; + num3 = 1; + List list317 = new List(num3); + CollectionsMarshal.SetCount(list317, num3); + CollectionsMarshal.AsSpan(list317)[0] = 14039u; obj208.KillEnemyDataIds = list317; reference250 = obj208; obj207.Steps = list316; reference249 = obj207; - num++; - ref QuestSequence reference251 = ref span311[num]; + ref QuestSequence reference251 = ref span119[4]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj209.Steps = list318; reference251 = obj209; - num++; - ref QuestSequence reference252 = ref span311[num]; + ref QuestSequence reference252 = ref span119[5]; QuestSequence obj210 = new QuestSequence { Sequence = 5 @@ -366092,33 +301660,27 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - span319[index2] = new QuestStep(EInteractionType.Interact, 1041417u, new Vector3(388.7235f, 22.369963f, -488.42606f), 957) + CollectionsMarshal.AsSpan(list319)[0] = new QuestStep(EInteractionType.Interact, 1041417u, new Vector3(388.7235f, 22.369963f, -488.42606f), 957) { Fly = true }; obj210.Steps = list319; reference252 = obj210; - num++; - ref QuestSequence reference253 = ref span311[num]; + ref QuestSequence reference253 = ref span119[6]; QuestSequence obj211 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj211.Steps = list320; reference253 = obj211; - num++; - ref QuestSequence reference254 = ref span311[num]; + ref QuestSequence reference254 = ref span119[7]; QuestSequence obj212 = new QuestSequence { Sequence = 7 @@ -366126,23 +301688,18 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.Interact, 1041421u, new Vector3(401.8158f, 3.0714467f, -214.74023f), 957); + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1041421u, new Vector3(401.8158f, 3.0714467f, -214.74023f), 957); obj212.Steps = list321; reference254 = obj212; - num++; - ref QuestSequence reference255 = ref span311[num]; + ref QuestSequence reference255 = ref span119[8]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj213.Steps = list322; reference255 = obj213; questRoot32.QuestSequence = list311; @@ -366152,16 +301709,13 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - Span span323 = CollectionsMarshal.AsSpan(list323); - index = 0; - span323[index] = "liza"; + CollectionsMarshal.AsSpan(list323)[0] = "liza"; questRoot33.Author = list323; - index = 5; - List list324 = new List(index); - CollectionsMarshal.SetCount(list324, index); - Span span324 = CollectionsMarshal.AsSpan(list324); - num = 0; - ref QuestSequence reference256 = ref span324[num]; + num = 5; + List list324 = new List(num); + CollectionsMarshal.SetCount(list324, num); + Span span122 = CollectionsMarshal.AsSpan(list324); + ref QuestSequence reference256 = ref span122[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 @@ -366169,27 +301723,21 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span325[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958); + CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041753u, new Vector3(-321.49237f, 22.009079f, 424.00232f), 958); obj214.Steps = list325; reference256 = obj214; - num++; - ref QuestSequence reference257 = ref span324[num]; + ref QuestSequence reference257 = ref span122[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj215.Steps = list326; reference257 = obj215; - num++; - ref QuestSequence reference258 = ref span324[num]; + ref QuestSequence reference258 = ref span122[2]; QuestSequence obj216 = new QuestSequence { Sequence = 2 @@ -366197,88 +301745,63 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958); obj216.Steps = list327; reference258 = obj216; - num++; - ref QuestSequence reference259 = ref span324[num]; + ref QuestSequence reference259 = ref span122[3]; QuestSequence obj217 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list328 = new List(index2); - CollectionsMarshal.SetCount(list328, index2); - Span span328 = CollectionsMarshal.AsSpan(list328); - num2 = 0; - ref QuestStep reference260 = ref span328[num2]; + num2 = 3; + List list328 = new List(num2); + CollectionsMarshal.SetCount(list328, num2); + Span span123 = CollectionsMarshal.AsSpan(list328); + ref QuestStep reference260 = ref span123[0]; 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 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); + 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); questStep43.CompletionQuestVariablesFlags = list329; reference260 = questStep43; - num2++; - ref QuestStep reference261 = ref span328[num2]; + ref QuestStep reference261 = ref span123[1]; QuestStep questStep44 = new QuestStep(EInteractionType.Interact, 2012618u, new Vector3(-338.03314f, 23.727722f, 394.88806f), 958); - 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); + 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); questStep44.CompletionQuestVariablesFlags = list330; reference261 = questStep44; - num2++; - ref QuestStep reference262 = ref span328[num2]; + ref QuestStep reference262 = ref span123[2]; 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 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); + 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); questStep45.CompletionQuestVariablesFlags = list331; reference262 = questStep45; obj217.Steps = list328; reference259 = obj217; - num++; - ref QuestSequence reference263 = ref span324[num]; + ref QuestSequence reference263 = ref span122[4]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -366286,9 +301809,7 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span332 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); + CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); obj218.Steps = list332; reference263 = obj218; questRoot33.QuestSequence = list324; @@ -366298,33 +301819,26 @@ public static class AssemblyQuestLoader num = 1; List list333 = new List(num); CollectionsMarshal.SetCount(list333, num); - Span span333 = CollectionsMarshal.AsSpan(list333); - index = 0; - span333[index] = "goatzone"; + CollectionsMarshal.AsSpan(list333)[0] = "goatzone"; questRoot34.Author = list333; - index = 3; - List list334 = new List(index); - CollectionsMarshal.SetCount(list334, index); - Span span334 = CollectionsMarshal.AsSpan(list334); - num = 0; - ref QuestSequence reference264 = ref span334[num]; + num = 3; + List list334 = new List(num); + CollectionsMarshal.SetCount(list334, num); + Span span127 = CollectionsMarshal.AsSpan(list334); + ref QuestSequence reference264 = ref span127[0]; QuestSequence obj219 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + ref QuestStep reference265 = ref CollectionsMarshal.AsSpan(list335)[0]; QuestStep questStep46 = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); - num4 = 1; - List list336 = new List(num4); - CollectionsMarshal.SetCount(list336, num4); - Span span336 = CollectionsMarshal.AsSpan(list336); - num3 = 0; - span336[num3] = new DialogueChoice + num3 = 1; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + CollectionsMarshal.AsSpan(list336)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC102_04499_Q1_000_000"), @@ -366334,8 +301848,7 @@ public static class AssemblyQuestLoader reference265 = questStep46; obj219.Steps = list335; reference264 = obj219; - num++; - ref QuestSequence reference266 = ref span334[num]; + ref QuestSequence reference266 = ref span127[1]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -366343,26 +301856,21 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.Interact, 2012620u, new Vector3(64.68298f, -14.358765f, 395.22388f), 958) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 2012620u, new Vector3(64.68298f, -14.358765f, 395.22388f), 958) { Fly = true }; obj220.Steps = list337; reference266 = obj220; - num++; - ref QuestSequence reference267 = ref span334[num]; + ref QuestSequence reference267 = ref span127[2]; QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass, NextQuestId = new QuestId(4500) @@ -366380,16 +301888,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "goatzone"; + CollectionsMarshal.AsSpan(list)[0] = "goatzone"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -366397,27 +301902,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041755u, new Vector3(-340.35254f, 22f, 502.037f), 958); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -366425,40 +301924,33 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) { Fly = true }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list6 = new List(index2); - CollectionsMarshal.SetCount(list6, index2); - Span span6 = CollectionsMarshal.AsSpan(list6); - num2 = 0; - ref QuestStep reference5 = ref span6[num2]; + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref QuestStep reference5 = ref CollectionsMarshal.AsSpan(list6)[0]; 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 span7 = CollectionsMarshal.AsSpan(list7); - int num4 = 0; - span7[num4] = new DialogueChoice + Span span2 = CollectionsMarshal.AsSpan(list7); + span2[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC103_04500_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKZC103_04500_A1_000_001") }; - num4++; - span7[num4] = new DialogueChoice + span2[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZC103_04500_Q2_000_000"), @@ -366476,16 +301968,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "goatzone"; + CollectionsMarshal.AsSpan(list8)[0] = "goatzone"; questRoot2.Author = list8; - index = 5; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 5; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span3 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -366493,45 +301982,37 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041761u, new Vector3(414.51123f, -18.808798f, 613.1837f), 958) { Fly = true }; obj5.Steps = list10; reference6 = obj5; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference8 = ref span11[num2]; + num2 = 1; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + ref QuestStep reference8 = ref CollectionsMarshal.AsSpan(list11)[0]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2012329u, new Vector3(376.82153f, -18.875488f, 512.65735f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + Span span4 = CollectionsMarshal.AsSpan(list12); + span4[0] = 14094u; + span4[1] = 14095u; obj7.KillEnemyDataIds = list12; reference8 = obj7; obj6.Steps = list11; reference7 = obj6; - num++; - ref QuestSequence reference9 = ref span9[num]; + ref QuestSequence reference9 = ref span3[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -366539,30 +302020,24 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1041760u, new Vector3(413.87048f, -18.81719f, 612.05444f), 958) { Fly = true }; obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span3[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj9.Steps = list14; reference10 = obj9; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span3[4]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -366570,9 +302045,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.CompleteQuest, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.CompleteQuest, 1040963u, new Vector3(-325.27655f, 22.462305f, 450.49194f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -366585,30 +302058,24 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 3; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 3; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span5 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span5[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj11.Steps = list18; reference12 = obj11; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span5[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -366616,26 +302083,21 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1041766u, new Vector3(513.6339f, -19.82022f, -309.1936f), 958) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1041766u, new Vector3(513.6339f, -19.82022f, -309.1936f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span5[2]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj13.Steps = list20; reference14 = obj13; questRoot3.QuestSequence = list17; @@ -366645,16 +302107,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "goatzone"; + CollectionsMarshal.AsSpan(list21)[0] = "goatzone"; questRoot4.Author = list21; - index = 5; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 5; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span6 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span6[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -366662,16 +302121,12 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref QuestStep reference16 = ref span23[index2]; + ref QuestStep reference16 = ref CollectionsMarshal.AsSpan(list23)[0]; 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); - Span span24 = CollectionsMarshal.AsSpan(list24); - num4 = 0; - span24[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD102_04503_Q1_000_000"), @@ -366681,25 +302136,21 @@ public static class AssemblyQuestLoader reference16 = questStep2; obj14.Steps = list23; reference15 = obj14; - num++; - ref QuestSequence reference17 = ref span22[num]; + ref QuestSequence reference17 = ref span6[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj15.Steps = list25; reference17 = obj15; - num++; - ref QuestSequence reference18 = ref span22[num]; + ref QuestSequence reference18 = ref span6[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 @@ -366707,27 +302158,21 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 2012623u, new Vector3(168.26111f, 11.36792f, -102.92212f), 958); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 2012623u, new Vector3(168.26111f, 11.36792f, -102.92212f), 958); obj16.Steps = list26; reference18 = obj16; - num++; - ref QuestSequence reference19 = ref span22[num]; + ref QuestSequence reference19 = ref span6[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj17.Steps = list27; reference19 = obj17; - num++; - ref QuestSequence reference20 = ref span22[num]; + ref QuestSequence reference20 = ref span6[4]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue @@ -366735,9 +302180,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium, NextQuestId = new QuestId(4504) @@ -366751,33 +302194,26 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "goatzone"; + CollectionsMarshal.AsSpan(list29)[0] = "goatzone"; questRoot5.Author = list29; - index = 4; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference21 = ref span30[num]; + num = 4; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span7 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference21 = ref span7[0]; QuestSequence obj19 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; QuestStep questStep3 = new QuestStep(EInteractionType.AcceptQuest, 1041768u, new Vector3(539.9404f, -36.65f, -132.37207f), 958); - num4 = 1; - List list32 = new List(num4); - CollectionsMarshal.SetCount(list32, num4); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new DialogueChoice + num3 = 1; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD103_04504_Q1_000_000"), @@ -366787,8 +302223,7 @@ public static class AssemblyQuestLoader reference22 = questStep3; obj19.Steps = list31; reference21 = obj19; - num++; - ref QuestSequence reference23 = ref span30[num]; + ref QuestSequence reference23 = ref span7[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -366796,26 +302231,21 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.Interact, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.Interact, 1041770u, new Vector3(157.30518f, 23.164677f, -415.36584f), 958) { Fly = true }; obj20.Steps = list33; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span7[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list34 = new List(index2); - CollectionsMarshal.SetCount(list34, index2); - Span span34 = CollectionsMarshal.AsSpan(list34); - num2 = 0; - ref QuestStep reference25 = ref span34[num2]; + num2 = 1; + List list34 = new List(num2); + CollectionsMarshal.SetCount(list34, num2); + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list34)[0]; QuestStep obj22 = new QuestStep(EInteractionType.Combat, 2012331u, new Vector3(150.89636f, 23.147888f, -414.9386f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -366823,15 +302253,12 @@ public static class AssemblyQuestLoader num3 = 1; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - Span span35 = CollectionsMarshal.AsSpan(list35); - num4 = 0; - span35[num4] = 14092u; + CollectionsMarshal.AsSpan(list35)[0] = 14092u; obj22.KillEnemyDataIds = list35; reference25 = obj22; obj21.Steps = list34; reference24 = obj21; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span7[3]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -366839,16 +302266,12 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference27 = ref span36[index2]; + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.CompleteQuest, 2012629u, new Vector3(155.74878f, 23.147888f, -414.29773f), 958); - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = new DialogueChoice + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD103_04504_Q2_000_000"), @@ -366866,34 +302289,28 @@ public static class AssemblyQuestLoader num = 1; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span38 = CollectionsMarshal.AsSpan(list38); - index = 0; - span38[index] = "goatzone"; + CollectionsMarshal.AsSpan(list38)[0] = "goatzone"; questRoot6.Author = list38; - index = 5; - List list39 = new List(index); - CollectionsMarshal.SetCount(list39, index); - Span span39 = CollectionsMarshal.AsSpan(list39); - num = 0; - ref QuestSequence reference28 = ref span39[num]; + num = 5; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + Span span8 = CollectionsMarshal.AsSpan(list39); + ref QuestSequence reference28 = ref span8[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, Fly = true }; obj24.Steps = list40; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span39[num]; + ref QuestSequence reference29 = ref span8[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -366901,33 +302318,27 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1041771u, new Vector3(-157.67151f, 10.8f, -530.6325f), 958) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1041771u, new Vector3(-157.67151f, 10.8f, -530.6325f), 958) { Fly = true }; obj25.Steps = list41; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span39[num]; + ref QuestSequence reference30 = ref span8[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj26.Steps = list42; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span39[num]; + ref QuestSequence reference31 = ref span8[3]; QuestSequence obj27 = new QuestSequence { Sequence = 3 @@ -366935,23 +302346,18 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1041774u, new Vector3(-44.815796f, 10.8f, -614.40454f), 958); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1041774u, new Vector3(-44.815796f, 10.8f, -614.40454f), 958); obj27.Steps = list43; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span39[num]; + ref QuestSequence reference32 = ref span8[4]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list44 = new List(index2); - CollectionsMarshal.SetCount(list44, index2); - Span span44 = CollectionsMarshal.AsSpan(list44); - num2 = 0; - ref QuestStep reference33 = ref span44[num2]; + num2 = 1; + List list44 = new List(num2); + CollectionsMarshal.SetCount(list44, num2); + ref QuestStep reference33 = ref CollectionsMarshal.AsSpan(list44)[0]; QuestStep obj29 = new QuestStep(EInteractionType.CompleteQuest, 1041767u, new Vector3(541.03906f, -36.65f, -132.46362f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium @@ -366959,9 +302365,7 @@ public static class AssemblyQuestLoader num3 = 1; List list45 = new List(num3); CollectionsMarshal.SetCount(list45, num3); - Span span45 = CollectionsMarshal.AsSpan(list45); - num4 = 0; - span45[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list45)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD104_04505_Q1_000_000"), @@ -366979,16 +302383,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "goatzone"; + CollectionsMarshal.AsSpan(list46)[0] = "goatzone"; questRoot7.Author = list46; - index = 7; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference34 = ref span47[num]; + num = 7; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span9 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference34 = ref span9[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -366996,19 +302397,15 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - ref QuestStep reference35 = ref span48[index2]; + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list48)[0]; QuestStep obj31 = new QuestStep(EInteractionType.AcceptQuest, 1041776u, new Vector3(541.89355f, -36.65f, -132.64673f), 958) { StopDistance = 5f }; - num4 = 1; - List list49 = new List(num4); - CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - num3 = 0; - span49[num3] = new DialogueChoice + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q1_000_000"), @@ -367018,18 +302415,15 @@ public static class AssemblyQuestLoader reference35 = obj31; obj30.Steps = list48; reference34 = obj30; - num++; - ref QuestSequence reference36 = ref span47[num]; + ref QuestSequence reference36 = ref span9[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref QuestStep reference37 = ref span50[num2]; + num2 = 1; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list50)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1041754u, new Vector3(-340.84082f, 22f, 500.57214f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -367037,9 +302431,7 @@ public static class AssemblyQuestLoader num3 = 1; List list51 = new List(num3); CollectionsMarshal.SetCount(list51, num3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num4 = 0; - span51[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list51)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q2_000_000"), @@ -367049,8 +302441,7 @@ public static class AssemblyQuestLoader reference37 = obj33; obj32.Steps = list50; reference36 = obj32; - num++; - ref QuestSequence reference38 = ref span47[num]; + ref QuestSequence reference38 = ref span9[2]; QuestSequence obj34 = new QuestSequence { Sequence = 2 @@ -367058,33 +302449,27 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - span52[index2] = new QuestStep(EInteractionType.Interact, 1041778u, new Vector3(-322.10272f, 10.85f, -576.04333f), 958) + CollectionsMarshal.AsSpan(list52)[0] = new QuestStep(EInteractionType.Interact, 1041778u, new Vector3(-322.10272f, 10.85f, -576.04333f), 958) { Fly = true }; obj34.Steps = list52; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span47[num]; + ref QuestSequence reference39 = ref span9[3]; QuestSequence obj35 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj35.Steps = list53; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span47[num]; + ref QuestSequence reference40 = ref span9[4]; QuestSequence obj36 = new QuestSequence { Sequence = 4 @@ -367092,40 +302477,32 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - ref QuestStep reference41 = ref span54[index2]; + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list54)[0]; QuestStep obj37 = new QuestStep(EInteractionType.Combat, null, new Vector3(-276.31705f, 10.799999f, -592.71124f), 958) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list55 = new List(num4); - CollectionsMarshal.SetCount(list55, num4); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = 14091u; + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = 14091u; obj37.KillEnemyDataIds = list55; reference41 = obj37; obj36.Steps = list54; reference40 = obj36; - num++; - ref QuestSequence reference42 = ref span47[num]; + ref QuestSequence reference42 = ref span9[5]; QuestSequence obj38 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj38.Steps = list56; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span47[num]; + ref QuestSequence reference43 = ref span9[6]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue @@ -367133,9 +302510,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - ref QuestStep reference44 = ref span57[index2]; + ref QuestStep reference44 = ref CollectionsMarshal.AsSpan(list57)[0]; QuestStep obj40 = new QuestStep(EInteractionType.CompleteQuest, 1041784u, new Vector3(-342.67188f, 22f, 499.07666f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass @@ -367143,9 +302518,7 @@ public static class AssemblyQuestLoader num3 = 1; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - Span span58 = CollectionsMarshal.AsSpan(list58); - num4 = 0; - span58[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list58)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZD201_04506_Q3_000_000"), @@ -367162,30 +302535,24 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "liza"; + CollectionsMarshal.AsSpan(list59)[0] = "liza"; questRoot8.Author = list59; - index = 5; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference45 = ref span60[num]; + num = 5; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span10 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference45 = ref span10[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj41.Steps = list61; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span10[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -367193,27 +302560,21 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1041329u, new Vector3(233.99707f, 8.289929f, 270.71033f), 961); obj42.Steps = list62; reference46 = obj42; - num++; - ref QuestSequence reference47 = ref span60[num]; + ref QuestSequence reference47 = ref span10[2]; QuestSequence obj43 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj43.Steps = list63; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span60[num]; + ref QuestSequence reference48 = ref span10[3]; QuestSequence obj44 = new QuestSequence { Sequence = 3 @@ -367221,84 +302582,60 @@ public static class AssemblyQuestLoader num2 = 3; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - ref QuestStep reference49 = ref span64[index2]; + Span span11 = CollectionsMarshal.AsSpan(list64); + ref QuestStep reference49 = ref span11[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1037947u, new Vector3(115.28186f, 7.385857f, 306.11108f), 961); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list65; reference49 = questStep5; - index2++; - ref QuestStep reference50 = ref span64[index2]; + ref QuestStep reference50 = ref span11[1]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list66; reference50 = questStep6; - index2++; - ref QuestStep reference51 = ref span64[index2]; + ref QuestStep reference51 = ref span11[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1037962u, new Vector3(180.8346f, 10.385859f, 113.35925f), 961); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list67; reference51 = questStep7; obj44.Steps = list64; reference48 = obj44; - num++; - ref QuestSequence reference52 = ref span60[num]; + ref QuestSequence reference52 = ref span10[4]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj45.Steps = list68; reference52 = obj45; questRoot8.QuestSequence = list60; @@ -367308,16 +302645,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot9.Author = list69; - index = 4; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference53 = ref span70[num]; + num = 4; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span15 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference53 = ref span15[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -367325,25 +302659,20 @@ public static class AssemblyQuestLoader num2 = 1; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - span71[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961); + CollectionsMarshal.AsSpan(list71)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041369u, new Vector3(-639.85657f, 162.30406f, -189.47137f), 961); obj46.Steps = list71; reference53 = obj46; - num++; - ref QuestSequence reference54 = ref span70[num]; + ref QuestSequence reference54 = ref span15[1]; QuestSequence obj47 = new QuestSequence { Sequence = 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]; + 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]; QuestStep obj48 = new QuestStep(EInteractionType.Combat, null, new Vector3(-318.20203f, 147.32677f, -31.146088f), 961) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -367351,15 +302680,12 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span73 = CollectionsMarshal.AsSpan(list73); - num4 = 0; - span73[num4] = 14070u; + CollectionsMarshal.AsSpan(list73)[0] = 14070u; obj48.KillEnemyDataIds = list73; reference55 = obj48; obj47.Steps = list72; reference54 = obj47; - num++; - ref QuestSequence reference56 = ref span70[num]; + ref QuestSequence reference56 = ref span15[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 @@ -367367,26 +302693,21 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 1040888u, new Vector3(-320.0885f, 147.4287f, -30.594421f), 961) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1040888u, new Vector3(-320.0885f, 147.4287f, -30.594421f), 961) { StopDistance = 5f }; obj49.Steps = list74; reference56 = obj49; - num++; - ref QuestSequence reference57 = ref span70[num]; + ref QuestSequence reference57 = ref span15[3]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; @@ -367399,16 +302720,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot10.Author = list76; - index = 4; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference58 = ref span77[num]; + num = 4; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span17 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference58 = ref span17[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -367416,27 +302734,21 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041555u, new Vector3(26.443848f, -129.20917f, -536.9497f), 959); obj51.Steps = list78; reference58 = obj51; - num++; - ref QuestSequence reference59 = ref span77[num]; + ref QuestSequence reference59 = ref span17[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj52.Steps = list79; reference59 = obj52; - num++; - ref QuestSequence reference60 = ref span77[num]; + ref QuestSequence reference60 = ref span17[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -367444,33 +302756,25 @@ public static class AssemblyQuestLoader num2 = 3; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - ref QuestStep reference61 = ref span80[index2]; + Span span18 = CollectionsMarshal.AsSpan(list80); + ref QuestStep reference61 = ref span18[0]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1041745u, new Vector3(66.23938f, -133.00002f, -432.8222f), 959) { Comment = "Cheerful Loporrit" }; - 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); + 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); obj54.CompletionQuestVariablesFlags = list81; reference61 = obj54; - index2++; - ref QuestStep reference62 = ref span80[index2]; + ref QuestStep reference62 = ref span18[1]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 1041746u, new Vector3(-85.83203f, -133.0356f, -507.1336f), 959) { Comment = "Stern Loporrit" @@ -367478,66 +302782,48 @@ public static class AssemblyQuestLoader num3 = 6; List list82 = new List(num3); CollectionsMarshal.SetCount(list82, num3); - 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); + 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); obj55.CompletionQuestVariablesFlags = list82; reference62 = obj55; - index2++; - ref QuestStep reference63 = ref span80[index2]; + ref QuestStep reference63 = ref span18[2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 1041744u, new Vector3(-110.12439f, -133.07341f, -556.7865f), 959) { Comment = "Easygoing Loporrit" }; - 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); + 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); obj56.CompletionQuestVariablesFlags = list83; reference63 = obj56; obj53.Steps = list80; reference60 = obj53; - num++; - ref QuestSequence reference64 = ref span77[num]; + ref QuestSequence reference64 = ref span17[3]; QuestSequence obj57 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num2 = 0; - ref QuestStep reference65 = ref span84[num2]; + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list84)[0]; 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); - Span span85 = CollectionsMarshal.AsSpan(list85); - num4 = 0; - span85[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKZE101_04516_Q3_000_000"), @@ -367554,16 +302840,13 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot11.Author = list86; - index = 6; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference66 = ref span87[num]; + num = 6; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span22 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference66 = ref span22[0]; QuestSequence obj58 = new QuestSequence { Sequence = 0 @@ -367571,30 +302854,24 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041556u, new Vector3(113.14563f, -133.07352f, -465.17133f), 959); obj58.Steps = list88; reference66 = obj58; - num++; - ref QuestSequence reference67 = ref span87[num]; + ref QuestSequence reference67 = ref span22[1]; QuestSequence obj59 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj59.Steps = list89; reference67 = obj59; - num++; - ref QuestSequence reference68 = ref span87[num]; + ref QuestSequence reference68 = ref span22[2]; QuestSequence obj60 = new QuestSequence { Sequence = 2 @@ -367602,81 +302879,62 @@ public static class AssemblyQuestLoader num2 = 2; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) + Span span23 = CollectionsMarshal.AsSpan(list90); + span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - index2++; - span90[index2] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); + span23[1] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); obj60.Steps = list90; reference68 = obj60; - num++; - ref QuestSequence reference69 = ref span87[num]; + ref QuestSequence reference69 = ref span22[3]; QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference70 = ref span91[num2]; + num2 = 3; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + Span span24 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference70 = ref span24[0]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2012508u, new Vector3(-7.4312134f, 42.61841f, 428.27502f), 959) { Fly = true }; - 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); + 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); obj62.CompletionQuestVariablesFlags = list92; reference70 = obj62; - num2++; - span91[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.65185f, 40.539097f, 458.56393f), 959) + span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-54.65185f, 40.539097f, 458.56393f), 959) { Fly = true }; - num2++; - ref QuestStep reference71 = ref span91[num2]; + ref QuestStep reference71 = ref span24[2]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list93; reference71 = questStep9; obj61.Steps = list91; reference69 = obj61; - num++; - ref QuestSequence reference72 = ref span87[num]; + ref QuestSequence reference72 = ref span22[4]; QuestSequence obj63 = new QuestSequence { Sequence = 4 @@ -367684,28 +302942,23 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) + Span span27 = CollectionsMarshal.AsSpan(list94); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(10.0736885f, 27.10196f, 448.53668f), 959) { Fly = true }; - index2++; - span94[index2] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); + span27[1] = new QuestStep(EInteractionType.Interact, 1041559u, new Vector3(8.743347f, 27.418339f, 447.74548f), 959); obj63.Steps = list94; reference72 = obj63; - num++; - ref QuestSequence reference73 = ref span87[num]; + ref QuestSequence reference73 = ref span22[5]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -367720,16 +302973,13 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot12.Author = list96; - index = 7; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference74 = ref span97[num]; + num = 7; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span28 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference74 = ref span28[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -367737,30 +302987,24 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041558u, new Vector3(291.2489f, -144f, -477.95837f), 959); + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041558u, new Vector3(291.2489f, -144f, -477.95837f), 959); obj65.Steps = list98; reference74 = obj65; - num++; - ref QuestSequence reference75 = ref span97[num]; + ref QuestSequence reference75 = ref span28[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj66.Steps = list99; reference75 = obj66; - num++; - ref QuestSequence reference76 = ref span97[num]; + ref QuestSequence reference76 = ref span28[2]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -367768,30 +303012,24 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - index2 = 0; - span100[index2] = new QuestStep(EInteractionType.Interact, 1041817u, new Vector3(477.37842f, 140.67236f, 109.453f), 959) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.Interact, 1041817u, new Vector3(477.37842f, 140.67236f, 109.453f), 959) { Fly = true }; obj67.Steps = list100; reference76 = obj67; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span28[3]; QuestSequence obj68 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj68.Steps = list101; reference77 = obj68; - num++; - ref QuestSequence reference78 = ref span97[num]; + ref QuestSequence reference78 = ref span28[4]; QuestSequence obj69 = new QuestSequence { Sequence = 4 @@ -367799,46 +303037,38 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - ref QuestStep reference79 = ref span102[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list102)[0]; QuestStep obj70 = new QuestStep(EInteractionType.Combat, null, new Vector3(626.34064f, 143.6347f, 58.013206f), 959) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + Span span29 = CollectionsMarshal.AsSpan(list103); + span29[0] = 14098u; + span29[1] = 14099u; obj70.KillEnemyDataIds = list103; reference79 = obj70; obj69.Steps = list102; reference78 = obj69; - num++; - ref QuestSequence reference80 = ref span97[num]; + ref QuestSequence reference80 = ref span28[5]; QuestSequence obj71 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj71.Steps = list104; reference80 = obj71; - num++; - ref QuestSequence reference81 = ref span97[num]; + ref QuestSequence reference81 = ref span28[6]; QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue @@ -367846,9 +303076,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1041564u, new Vector3(-338.36884f, -168f, -613.7637f), 959) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1041564u, new Vector3(-338.36884f, -168f, -613.7637f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -367863,33 +303091,27 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "liza"; + CollectionsMarshal.AsSpan(list106)[0] = "liza"; questRoot13.Author = list106; - index = 7; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference82 = ref span107[num]; + num = 7; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span30 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference82 = ref span30[0]; QuestSequence obj73 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 6.5f }; obj73.Steps = list108; reference82 = obj73; - num++; - ref QuestSequence reference83 = ref span107[num]; + ref QuestSequence reference83 = ref span30[1]; QuestSequence obj74 = new QuestSequence { Sequence = 1 @@ -367897,36 +303119,30 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.UseItem, 2012512u, new Vector3(-457.29767f, -158.12933f, -585.77856f), 959) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.UseItem, 2012512u, new Vector3(-457.29767f, -158.12933f, -585.77856f), 959) { Fly = true, ItemId = 2003328u }; obj74.Steps = list109; reference83 = obj74; - num++; - ref QuestSequence reference84 = ref span107[num]; + ref QuestSequence reference84 = ref span30[2]; QuestSequence obj75 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span110[num2] = new QuestStep(EInteractionType.Interact, 2012513u, new Vector3(-326.8025f, -151.26276f, -748.5008f), 959); + span31[1] = new QuestStep(EInteractionType.Interact, 2012513u, new Vector3(-326.8025f, -151.26276f, -748.5008f), 959); obj75.Steps = list110; reference84 = obj75; - num++; - ref QuestSequence reference85 = ref span107[num]; + ref QuestSequence reference85 = ref span30[3]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -367934,11 +303150,9 @@ public static class AssemblyQuestLoader num2 = 9; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - 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) + 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) { StopDistance = 1f, Comment = "Platform 1", @@ -367948,8 +303162,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-431.76593f, -166.55412f, -679.5478f), 959) + span32[2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-431.76593f, -166.55412f, -679.5478f), 959) { StopDistance = 1f, Comment = "Platform 2", @@ -367959,8 +303172,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-430.03564f, -165.05414f, -682.2485f), 959) + span32[3] = new QuestStep(EInteractionType.Jump, null, new Vector3(-430.03564f, -165.05414f, -682.2485f), 959) { StopDistance = 1f, Comment = "Platform 3", @@ -367970,8 +303182,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.49857f, -163.55414f, -684.8062f), 959) + span32[4] = new QuestStep(EInteractionType.Jump, null, new Vector3(-428.49857f, -163.55414f, -684.8062f), 959) { StopDistance = 1f, Comment = "Platform 4", @@ -367981,8 +303192,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.48633f, -162.05414f, -687.71533f), 959) + span32[5] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.48633f, -162.05414f, -687.71533f), 959) { StopDistance = 1f, Comment = "Platform 5", @@ -367992,8 +303202,7 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.7118f, -160.55414f, -691.17804f), 959) + span32[6] = new QuestStep(EInteractionType.Jump, null, new Vector3(-427.7118f, -160.55414f, -691.17804f), 959) { StopDistance = 1f, Comment = "Platform 6", @@ -368003,27 +303212,23 @@ public static class AssemblyQuestLoader DelaySeconds = 0.1f } }; - index2++; - span111[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-434.91986f, -158.88745f, -693.17865f), 959) + span32[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-434.91986f, -158.88745f, -693.17865f), 959) { DisableNavmesh = true }; - index2++; - span111[index2] = new QuestStep(EInteractionType.Interact, 2012611u, new Vector3(-450.33954f, -158.12933f, -694.42285f), 959); + span32[8] = new QuestStep(EInteractionType.Interact, 2012611u, new Vector3(-450.33954f, -158.12933f, -694.42285f), 959); obj76.Steps = list111; reference85 = obj76; - num++; - ref QuestSequence reference86 = ref span107[num]; + ref QuestSequence reference86 = ref span30[4]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - index2 = 4; - List list112 = new List(index2); - CollectionsMarshal.SetCount(list112, index2); - Span span112 = CollectionsMarshal.AsSpan(list112); - num2 = 0; - ref QuestStep reference87 = ref span112[num2]; + num2 = 4; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span33 = CollectionsMarshal.AsSpan(list112); + ref QuestStep reference87 = ref span33[0]; QuestStep obj78 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-548.9189f, -158.88948f, -651.8319f), 959) { Fly = true @@ -368033,46 +303238,32 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list113; skipConditions.StepIf = skipStepConditions; obj78.SkipConditions = skipConditions; reference87 = obj78; - num2++; - ref QuestStep reference88 = ref span112[num2]; + ref QuestStep reference88 = ref span33[1]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012514u, new Vector3(-549.12646f, -158.86176f, -649.2866f), 959); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list114; reference88 = questStep10; - num2++; - ref QuestStep reference89 = ref span112[num2]; + ref QuestStep reference89 = ref span33[2]; QuestStep obj79 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-549.3165f, -158.89796f, -468.4637f), 959) { Fly = true @@ -368082,48 +303273,34 @@ public static class AssemblyQuestLoader num3 = 6; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list115; skipConditions2.StepIf = skipStepConditions2; obj79.SkipConditions = skipConditions2; reference89 = obj79; - num2++; - ref QuestStep reference90 = ref span112[num2]; + ref QuestStep reference90 = ref span33[3]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 2012515u, new Vector3(-549.157f, -158.89221f, -465.87323f), 959); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list116; reference90 = questStep11; obj77.Steps = list112; reference86 = obj77; - num++; - ref QuestSequence reference91 = ref span107[num]; + ref QuestSequence reference91 = ref span30[5]; QuestSequence obj80 = new QuestSequence { Sequence = 5 @@ -368131,26 +303308,21 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.Interact, 1041818u, new Vector3(-295.76562f, -144f, -547.0817f), 959) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.Interact, 1041818u, new Vector3(-295.76562f, -144f, -547.0817f), 959) { Fly = true }; obj80.Steps = list117; reference91 = obj80; - num++; - ref QuestSequence reference92 = ref span107[num]; + ref QuestSequence reference92 = ref span30[6]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj81.Steps = list118; reference92 = obj81; questRoot13.QuestSequence = list107; @@ -368160,18 +303332,15 @@ public static class AssemblyQuestLoader num = 2; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "JerryWester"; - index++; - span119[index] = "Wigglez"; + Span span38 = CollectionsMarshal.AsSpan(list119); + span38[0] = "JerryWester"; + span38[1] = "Wigglez"; questRoot14.Author = list119; - index = 5; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference93 = ref span120[num]; + num = 5; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span39 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference93 = ref span39[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -368179,9 +303348,8 @@ public static class AssemblyQuestLoader num2 = 5; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - ref QuestStep reference94 = ref span121[index2]; + Span span40 = CollectionsMarshal.AsSpan(list121); + ref QuestStep reference94 = ref span40[0]; QuestStep obj83 = new QuestStep(EInteractionType.UseItem, null, null, 132) { TargetTerritoryId = (ushort)140, @@ -368192,32 +303360,26 @@ public static class AssemblyQuestLoader num3 = 2; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span122 = CollectionsMarshal.AsSpan(list122); - num4 = 0; - span122[num4] = 140; - num4++; - span122[num4] = 212; + Span span41 = CollectionsMarshal.AsSpan(list122); + span41[0] = 140; + span41[1] = 212; skipStepConditions3.InTerritory = list122; skipConditions3.StepIf = skipStepConditions3; obj83.SkipConditions = skipConditions3; reference94 = obj83; - index2++; - ref QuestStep reference95 = ref span121[index2]; + ref QuestStep reference95 = ref span40[1]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-492.96475f, 20.999884f, -380.82272f), 140); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - num4 = 1; - List list123 = new List(num4); - CollectionsMarshal.SetCount(list123, num4); - Span span123 = CollectionsMarshal.AsSpan(list123); - num3 = 0; - span123[num3] = 212; + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = 212; skipStepConditions4.InTerritory = list123; skipConditions4.StepIf = skipStepConditions4; questStep12.SkipConditions = skipConditions4; reference95 = questStep12; - index2++; - ref QuestStep reference96 = ref span121[index2]; + ref QuestStep reference96 = ref span40[2]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 2001711u, new Vector3(-480.9181f, 18.00103f, -386.862f), 140) { TargetTerritoryId = (ushort)212 @@ -368227,15 +303389,12 @@ public static class AssemblyQuestLoader num3 = 1; List list124 = new List(num3); CollectionsMarshal.SetCount(list124, num3); - Span span124 = CollectionsMarshal.AsSpan(list124); - num4 = 0; - span124[num4] = 212; + CollectionsMarshal.AsSpan(list124)[0] = 212; skipStepConditions5.InTerritory = list124; skipConditions5.StepIf = skipStepConditions5; obj84.SkipConditions = skipConditions5; reference96 = obj84; - index2++; - span121[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) + span40[3] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.23944f, 2.090454f, -0.015319824f), 212) { TargetTerritoryId = (ushort)212, SkipConditions = new SkipConditions @@ -368246,40 +303405,34 @@ public static class AssemblyQuestLoader } } }; - index2++; - span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + span40[4] = new QuestStep(EInteractionType.AcceptQuest, 1006690u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj82.Steps = list121; reference93 = obj82; - num++; - ref QuestSequence reference97 = ref span120[num]; + ref QuestSequence reference97 = ref span39[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num2 = 0; - ref QuestStep reference98 = ref span125[num2]; + num2 = 3; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + Span span42 = CollectionsMarshal.AsSpan(list125); + ref QuestStep reference98 = ref span42[0]; 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(); - num4 = 1; - List list126 = new List(num4); - CollectionsMarshal.SetCount(list126, num4); - Span span126 = CollectionsMarshal.AsSpan(list126); - num3 = 0; - span126[num3] = 140; + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = 140; skipStepConditions6.InTerritory = list126; skipConditions6.StepIf = skipStepConditions6; obj86.SkipConditions = skipConditions6; reference98 = obj86; - num2++; - ref QuestStep reference99 = ref span125[num2]; + ref QuestStep reference99 = ref span42[1]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2001716u, new Vector3(-15.701599f, 1.083313f, -0.015319824f), 212) { TargetTerritoryId = (ushort)140 @@ -368289,19 +303442,15 @@ public static class AssemblyQuestLoader num3 = 1; List list127 = new List(num3); CollectionsMarshal.SetCount(list127, num3); - Span span127 = CollectionsMarshal.AsSpan(list127); - num4 = 0; - span127[num4] = 140; + CollectionsMarshal.AsSpan(list127)[0] = 140; skipStepConditions7.InTerritory = list127; skipConditions7.StepIf = skipStepConditions7; obj87.SkipConditions = skipConditions7; reference99 = obj87; - num2++; - span125[num2] = new QuestStep(EInteractionType.Interact, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140); + span42[2] = new QuestStep(EInteractionType.Interact, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140); obj85.Steps = list125; reference97 = obj85; - num++; - ref QuestSequence reference100 = ref span120[num]; + ref QuestSequence reference100 = ref span39[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -368309,39 +303458,31 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span128[index2] = new QuestStep(EInteractionType.Interact, 1006633u, new Vector3(-396.7804f, 27.883184f, -739.3149f), 140); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1006633u, new Vector3(-396.7804f, 27.883184f, -739.3149f), 140); obj88.Steps = list128; reference100 = obj88; - num++; - ref QuestSequence reference101 = ref span120[num]; + ref QuestSequence reference101 = ref span39[3]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DelaySecondsAtStart = 5f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - 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) + 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) { DelaySecondsAtStart = 3f, EnemySpawnType = EEnemySpawnType.FinishCombatIfAny }; - num2++; - span129[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002252u, new Vector3(-662.25684f, 62.333008f, -805.478f), 140) + span43[4] = new QuestStep(EInteractionType.SinglePlayerDuty, 2002252u, new Vector3(-662.25684f, 62.333008f, -805.478f), 140) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -368350,8 +303491,7 @@ public static class AssemblyQuestLoader }; obj89.Steps = list129; reference101 = obj89; - num++; - ref QuestSequence reference102 = ref span120[num]; + ref QuestSequence reference102 = ref span39[4]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -368359,9 +303499,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.CompleteQuest, 1006578u, new Vector3(-467.27704f, 22.996977f, -475.21173f), 140) { StopDistance = 7f }; @@ -368374,26 +303512,21 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list131)[0] = "JerryWester"; questRoot15.Author = list131; - index = 8; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference103 = ref span132[num]; + num = 8; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span44 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference103 = ref span44[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant, @@ -368407,8 +303540,7 @@ public static class AssemblyQuestLoader }; obj91.Steps = list133; reference103 = obj91; - num++; - ref QuestSequence reference104 = ref span132[num]; + ref QuestSequence reference104 = ref span44[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -368416,26 +303548,21 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.Interact, 1006668u, new Vector3(-115.19043f, 47.372406f, 28.67163f), 147) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1006668u, new Vector3(-115.19043f, 47.372406f, 28.67163f), 147) { AetheryteShortcut = EAetheryteLocation.NorthernThanalanCeruleumProcessingPlant }; obj92.Steps = list134; reference104 = obj92; - num++; - ref QuestSequence reference105 = ref span132[num]; + ref QuestSequence reference105 = ref span44[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Duty, null, null, 147) { DutyOptions = new DutyOptions { @@ -368445,13 +303572,11 @@ public static class AssemblyQuestLoader }; obj93.Steps = list135; reference105 = obj93; - num++; - span132[num] = new QuestSequence + span44[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference106 = ref span132[num]; + ref QuestSequence reference106 = ref span44[4]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -368459,9 +303584,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Duty, null, null, 1053) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Duty, null, null, 1053) { DutyOptions = new DutyOptions { @@ -368471,23 +303594,19 @@ public static class AssemblyQuestLoader }; obj94.Steps = list136; reference106 = obj94; - num++; - span132[num] = new QuestSequence + span44[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference107 = ref span132[num]; + ref QuestSequence reference107 = ref span44[6]; QuestSequence obj95 = new QuestSequence { Sequence = 6 }; - 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) + 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) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -368496,8 +303615,7 @@ public static class AssemblyQuestLoader }; obj95.Steps = list137; reference107 = obj95; - num++; - ref QuestSequence reference108 = ref span132[num]; + ref QuestSequence reference108 = ref span44[7]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -368505,14 +303623,12 @@ public static class AssemblyQuestLoader num2 = 2; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.25277f, 2.1f, 0f), 212) + Span span45 = CollectionsMarshal.AsSpan(list138); + span45[0] = new QuestStep(EInteractionType.Interact, 2001715u, new Vector3(23.25277f, 2.1f, 0f), 212) { TargetTerritoryId = (ushort)212 }; - index2++; - span138[index2] = new QuestStep(EInteractionType.CompleteQuest, 1006692u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); + span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1006692u, new Vector3(39.261353f, 1.2148079f, 0.8086548f), 212); obj96.Steps = list138; reference108 = obj96; questRoot15.QuestSequence = list132; @@ -368522,26 +303638,21 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot16.Author = list139; - index = 4; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference109 = ref span140[num]; + num = 4; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span46 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference109 = ref span46[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -368554,8 +303665,7 @@ public static class AssemblyQuestLoader }; obj97.Steps = list141; reference109 = obj97; - num++; - ref QuestSequence reference110 = ref span140[num]; + ref QuestSequence reference110 = ref span46[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -368563,9 +303673,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.Interact, 2012872u, new Vector3(-86.930725f, -12.985474f, 140.30664f), 962) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2012872u, new Vector3(-86.930725f, -12.985474f, 140.30664f), 962) { AethernetShortcut = new AethernetShortcut { @@ -368575,22 +303683,18 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference110 = obj98; - num++; - ref QuestSequence reference111 = ref span140[num]; + ref QuestSequence reference111 = ref span46[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj99.Steps = list143; reference111 = obj99; - num++; - ref QuestSequence reference112 = ref span140[num]; + ref QuestSequence reference112 = ref span46[3]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -368598,9 +303702,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042428u, new Vector3(222.85791f, 24.942732f, -197.71118f), 962) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042428u, new Vector3(222.85791f, 24.942732f, -197.71118f), 962) { AethernetShortcut = new AethernetShortcut { @@ -368617,36 +303719,30 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "liza"; + CollectionsMarshal.AsSpan(list145)[0] = "liza"; questRoot17.Author = list145; - index = 2; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference113 = ref span146[num]; + num = 2; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span47 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference113 = ref span47[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)351, DisableNavmesh = true }; - num2++; - span147[num2] = new QuestStep(EInteractionType.AcceptQuest, 1041232u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); + span48[1] = new QuestStep(EInteractionType.AcceptQuest, 1041232u, new Vector3(-0.015319824f, 0f, -7.1870728f), 351); obj101.Steps = list147; reference113 = obj101; - num++; - ref QuestSequence reference114 = ref span146[num]; + ref QuestSequence reference114 = ref span47[1]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -368654,14 +303750,12 @@ public static class AssemblyQuestLoader num2 = 2; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) + Span span49 = CollectionsMarshal.AsSpan(list148); + span49[0] = new QuestStep(EInteractionType.Interact, 2002879u, new Vector3(0f, 3f, 27.5f), 351) { TargetTerritoryId = (ushort)156 }; - index2++; - span148[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); + span49[1] = new QuestStep(EInteractionType.CompleteQuest, 1039570u, new Vector3(36.453735f, 29f, -799.7101f), 156); obj102.Steps = list148; reference114 = obj102; questRoot17.QuestSequence = list146; @@ -368671,30 +303765,24 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "liza"; + CollectionsMarshal.AsSpan(list149)[0] = "liza"; questRoot18.Author = list149; - index = 6; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference115 = ref span150[num]; + num = 6; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span50 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference115 = ref span50[0]; QuestSequence obj103 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj103.Steps = list151; reference115 = obj103; - num++; - ref QuestSequence reference116 = ref span150[num]; + ref QuestSequence reference116 = ref span50[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -368702,9 +303790,7 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1037318u, new Vector3(-4.1047363f, 2.9999943f, -203.8758f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -368715,59 +303801,50 @@ public static class AssemblyQuestLoader }; obj104.Steps = list152; reference116 = obj104; - num++; - ref QuestSequence reference117 = ref span150[num]; + ref QuestSequence reference117 = ref span50[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list153 = new List(index2); - CollectionsMarshal.SetCount(list153, index2); - Span span153 = CollectionsMarshal.AsSpan(list153); - num2 = 0; - ref QuestStep reference118 = ref span153[num2]; + num2 = 1; + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list153)[0]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1039571u, new Vector3(-24.429688f, 3.0099995f, -225.42157f), 963); - num4 = 6; - List list154 = new List(num4); - CollectionsMarshal.SetCount(list154, num4); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - span154[num3] = new DialogueChoice + num3 = 6; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + Span span51 = CollectionsMarshal.AsSpan(list154); + span51[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q9_100_111") }; - num3++; - span154[num3] = new DialogueChoice + span51[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A1_000_001") }; - num3++; - span154[num3] = new DialogueChoice + span51[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q2_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A2_000_001") }; - num3++; - span154[num3] = new DialogueChoice + span51[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q3_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A3_000_001") }; - num3++; - span154[num3] = new DialogueChoice + span51[4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q4_000_000"), Answer = new ExcelRef("TEXT_AKTKMH102_04527_A4_000_001") }; - num3++; - span154[num3] = new DialogueChoice + span51[5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH102_04527_Q5_000_000"), @@ -368777,8 +303854,7 @@ public static class AssemblyQuestLoader reference118 = questStep13; obj105.Steps = list153; reference117 = obj105; - num++; - ref QuestSequence reference119 = ref span150[num]; + ref QuestSequence reference119 = ref span50[3]; QuestSequence obj106 = new QuestSequence { Sequence = 3 @@ -368786,30 +303862,24 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1039574u, new Vector3(-13.870483f, 1.51f, -178.14911f), 963); + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1039574u, new Vector3(-13.870483f, 1.51f, -178.14911f), 963); obj106.Steps = list155; reference119 = obj106; - num++; - ref QuestSequence reference120 = ref span150[num]; + ref QuestSequence reference120 = ref span50[4]; QuestSequence obj107 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj107.Steps = list156; reference120 = obj107; - num++; - ref QuestSequence reference121 = ref span150[num]; + ref QuestSequence reference121 = ref span50[5]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue @@ -368817,9 +303887,7 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039578u, new Vector3(-254.50525f, 4.3609705f, 570.94666f), 957) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039578u, new Vector3(-254.50525f, 4.3609705f, 570.94666f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -368833,30 +303901,24 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "liza"; + CollectionsMarshal.AsSpan(list158)[0] = "liza"; questRoot19.Author = list158; - index = 5; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference122 = ref span159[num]; + num = 5; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span52 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference122 = ref span52[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj109.Steps = list160; reference122 = obj109; - num++; - ref QuestSequence reference123 = ref span159[num]; + ref QuestSequence reference123 = ref span52[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 @@ -368864,9 +303926,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -368878,18 +303938,16 @@ public static class AssemblyQuestLoader }; obj110.Steps = list161; reference123 = obj110; - num++; - ref QuestSequence reference124 = ref span159[num]; + ref QuestSequence reference124 = ref span52[2]; QuestSequence obj111 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -368897,12 +303955,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - num2++; - span162[num2] = new QuestStep(EInteractionType.Interact, 1039581u, new Vector3(-398.45886f, 19f, 92.48486f), 962); + span53[1] = new QuestStep(EInteractionType.Interact, 1039581u, new Vector3(-398.45886f, 19f, 92.48486f), 962); obj111.Steps = list162; reference124 = obj111; - num++; - ref QuestSequence reference125 = ref span159[num]; + ref QuestSequence reference125 = ref span52[3]; QuestSequence obj112 = new QuestSequence { Sequence = 3 @@ -368910,9 +303966,8 @@ public static class AssemblyQuestLoader num2 = 3; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + Span span54 = CollectionsMarshal.AsSpan(list163); + span54[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -368924,30 +303979,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span163[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + span54[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - index2++; - span163[index2] = new QuestStep(EInteractionType.Interact, 1039582u, new Vector3(-325.2461f, -224.27272f, 298.39014f), 956) + span54[2] = new QuestStep(EInteractionType.Interact, 1039582u, new Vector3(-325.2461f, -224.27272f, 298.39014f), 956) { Fly = false }; obj112.Steps = list163; reference125 = obj112; - num++; - ref QuestSequence reference126 = ref span159[num]; + ref QuestSequence reference126 = ref span52[4]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -368961,16 +304011,13 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot20.Author = list165; - index = 4; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference127 = ref span166[num]; + num = 4; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span55 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference127 = ref span55[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -368978,23 +304025,18 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039586u, new Vector3(-264.5152f, 0.24978253f, 605.6763f), 957); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039586u, new Vector3(-264.5152f, 0.24978253f, 605.6763f), 957); obj114.Steps = list167; reference127 = obj114; - num++; - ref QuestSequence reference128 = ref span166[num]; + ref QuestSequence reference128 = ref span55[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list168 = new List(index2); - CollectionsMarshal.SetCount(list168, index2); - Span span168 = CollectionsMarshal.AsSpan(list168); - num2 = 0; - ref QuestStep reference129 = ref span168[num2]; + num2 = 1; + List list168 = new List(num2); + CollectionsMarshal.SetCount(list168, num2); + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list168)[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Duty, null, null, 957); DutyOptions obj116 = new DutyOptions { @@ -369003,21 +304045,17 @@ public static class AssemblyQuestLoader num3 = 1; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - Span span169 = CollectionsMarshal.AsSpan(list169); - num4 = 0; - span169[num4] = "No VBM module"; + CollectionsMarshal.AsSpan(list169)[0] = "No VBM module"; obj116.Notes = list169; questStep14.DutyOptions = obj116; reference129 = questStep14; obj115.Steps = list168; reference128 = obj115; - num++; - span166[num] = new QuestSequence + span55[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference130 = ref span166[num]; + ref QuestSequence reference130 = ref span55[3]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -369025,9 +304063,7 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039590u, new Vector3(113.69495f, -350.00003f, -72.19049f), 1056) + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039590u, new Vector3(113.69495f, -350.00003f, -72.19049f), 1056) { StopDistance = 7f }; @@ -369040,33 +304076,27 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot21.Author = list171; - index = 4; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference131 = ref span172[num]; + num = 4; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span56 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference131 = ref span56[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj118.Steps = list173; reference131 = obj118; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span56[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -369074,33 +304104,27 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1039595u, new Vector3(107.83545f, -350f, -84.82495f), 1056) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1039595u, new Vector3(107.83545f, -350f, -84.82495f), 1056) { StopDistance = 5f }; obj119.Steps = list174; reference132 = obj119; - num++; - ref QuestSequence reference133 = ref span172[num]; + ref QuestSequence reference133 = ref span56[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj120.Steps = list175; reference133 = obj120; - num++; - ref QuestSequence reference134 = ref span172[num]; + ref QuestSequence reference134 = ref span56[3]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -369108,16 +304132,12 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - ref QuestStep reference135 = ref span176[index2]; + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list176)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.CompleteQuest, 1039600u, new Vector3(142.443f, 4.7837553f, -148.57715f), 963); - num4 = 1; - List list177 = new List(num4); - CollectionsMarshal.SetCount(list177, num4); - Span span177 = CollectionsMarshal.AsSpan(list177); - num3 = 0; - span177[num3] = new DialogueChoice + num3 = 1; + List list177 = new List(num3); + CollectionsMarshal.SetCount(list177, num3); + CollectionsMarshal.AsSpan(list177)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH105_04530_Q2_000_000"), @@ -369134,30 +304154,24 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "liza"; + CollectionsMarshal.AsSpan(list178)[0] = "liza"; questRoot22.Author = list178; - index = 4; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference136 = ref span179[num]; + num = 4; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span57 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference136 = ref span57[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj122.Steps = list180; reference136 = obj122; - num++; - ref QuestSequence reference137 = ref span179[num]; + ref QuestSequence reference137 = ref span57[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -369165,27 +304179,23 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Interact, 1039589u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1039589u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj123.Steps = list181; reference137 = obj123; - num++; - ref QuestSequence reference138 = ref span179[num]; + ref QuestSequence reference138 = ref span57[2]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list182 = new List(index2); - CollectionsMarshal.SetCount(list182, index2); - Span span182 = CollectionsMarshal.AsSpan(list182); - num2 = 0; - ref QuestStep reference139 = ref span182[num2]; + num2 = 3; + List list182 = new List(num2); + CollectionsMarshal.SetCount(list182, num2); + Span span58 = CollectionsMarshal.AsSpan(list182); + ref QuestStep reference139 = ref span58[0]; QuestStep obj125 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(169.31848f, 5.3451567f, 633.7924f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -369195,52 +304205,37 @@ public static class AssemblyQuestLoader num3 = 6; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list183; skipConditions8.StepIf = skipStepConditions8; obj125.SkipConditions = skipConditions8; reference139 = obj125; - num2++; - ref QuestStep reference140 = ref span182[num2]; + ref QuestStep reference140 = ref span58[1]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1037631u, new Vector3(166.64368f, 5.34517f, 635.9807f), 957) { StopDistance = 5f }; - 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); + 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); obj126.CompletionQuestVariablesFlags = list184; num3 = 1; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num4 = 0; - span185[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list185)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH106_04531_Q1_000_000"), @@ -369248,31 +304243,23 @@ public static class AssemblyQuestLoader }; obj126.DialogueChoices = list185; reference140 = obj126; - num2++; - ref QuestStep reference141 = ref span182[num2]; + ref QuestStep reference141 = ref span58[2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1039606u, new Vector3(215.80823f, 9.935694f, 561.27246f), 957); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list186; reference141 = questStep16; obj124.Steps = list182; reference138 = obj124; - num++; - ref QuestSequence reference142 = ref span179[num]; + ref QuestSequence reference142 = ref span57[3]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -369280,9 +304267,7 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - span187[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039607u, new Vector3(-342.58032f, 55f, -68.61987f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -369300,30 +304285,24 @@ public static class AssemblyQuestLoader num = 1; List list188 = new List(num); CollectionsMarshal.SetCount(list188, num); - Span span188 = CollectionsMarshal.AsSpan(list188); - index = 0; - span188[index] = "liza"; + CollectionsMarshal.AsSpan(list188)[0] = "liza"; questRoot23.Author = list188; - index = 7; - List list189 = new List(index); - CollectionsMarshal.SetCount(list189, index); - Span span189 = CollectionsMarshal.AsSpan(list189); - num = 0; - ref QuestSequence reference143 = ref span189[num]; + num = 7; + List list189 = new List(num); + CollectionsMarshal.SetCount(list189, num); + Span span62 = CollectionsMarshal.AsSpan(list189); + ref QuestSequence reference143 = ref span62[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj128.Steps = list190; reference143 = obj128; - num++; - ref QuestSequence reference144 = ref span189[num]; + ref QuestSequence reference144 = ref span62[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -369331,9 +304310,7 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1039611u, new Vector3(124.1626f, 4.856044f, -139.63531f), 963) + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1039611u, new Vector3(124.1626f, 4.856044f, -139.63531f), 963) { AethernetShortcut = new AethernetShortcut { @@ -369343,25 +304320,21 @@ public static class AssemblyQuestLoader }; obj129.Steps = list191; reference144 = obj129; - num++; - ref QuestSequence reference145 = ref span189[num]; + ref QuestSequence reference145 = ref span62[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj130.Steps = list192; reference145 = obj130; - num++; - ref QuestSequence reference146 = ref span189[num]; + ref QuestSequence reference146 = ref span62[3]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -369369,9 +304342,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Interact, 1039615u, new Vector3(-297.13898f, 20.8f, -189.59338f), 962) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 1039615u, new Vector3(-297.13898f, 20.8f, -189.59338f), 962) { AethernetShortcut = new AethernetShortcut { @@ -369381,18 +304352,15 @@ public static class AssemblyQuestLoader }; obj131.Steps = list193; reference146 = obj131; - num++; - ref QuestSequence reference147 = ref span189[num]; + ref QuestSequence reference147 = ref span62[4]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -369402,8 +304370,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list194; reference147 = obj132; - num++; - ref QuestSequence reference148 = ref span189[num]; + ref QuestSequence reference148 = ref span62[5]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -369411,9 +304378,7 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-94.118614f, 3.8989394f, 1.0696089f), 962) + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1039614u, new Vector3(-94.118614f, 3.8989394f, 1.0696089f), 962) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -369424,18 +304389,15 @@ public static class AssemblyQuestLoader }; obj133.Steps = list195; reference148 = obj133; - num++; - ref QuestSequence reference149 = ref span189[num]; + ref QuestSequence reference149 = ref span62[6]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj134.Steps = list196; reference149 = obj134; questRoot23.QuestSequence = list189; @@ -369445,16 +304407,13 @@ public static class AssemblyQuestLoader num = 1; List list197 = new List(num); CollectionsMarshal.SetCount(list197, num); - Span span197 = CollectionsMarshal.AsSpan(list197); - index = 0; - span197[index] = "liza"; + CollectionsMarshal.AsSpan(list197)[0] = "liza"; questRoot24.Author = list197; - index = 8; - List list198 = new List(index); - CollectionsMarshal.SetCount(list198, index); - Span span198 = CollectionsMarshal.AsSpan(list198); - num = 0; - ref QuestSequence reference150 = ref span198[num]; + num = 8; + List list198 = new List(num); + CollectionsMarshal.SetCount(list198, num); + Span span63 = CollectionsMarshal.AsSpan(list198); + ref QuestSequence reference150 = ref span63[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -369462,23 +304421,18 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039618u, new Vector3(-95.96399f, 3.933468f, 0.503479f), 962); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039618u, new Vector3(-95.96399f, 3.933468f, 0.503479f), 962); obj135.Steps = list199; reference150 = obj135; - num++; - ref QuestSequence reference151 = ref span198[num]; + ref QuestSequence reference151 = ref span63[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -369488,8 +304442,7 @@ public static class AssemblyQuestLoader }; obj136.Steps = list200; reference151 = obj136; - num++; - ref QuestSequence reference152 = ref span198[num]; + ref QuestSequence reference152 = ref span63[2]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -369497,27 +304450,21 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 2012844u, new Vector3(-4.3793945f, 5.569519f, 13.809326f), 1057); + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 2012844u, new Vector3(-4.3793945f, 5.569519f, 13.809326f), 1057); obj137.Steps = list201; reference152 = obj137; - num++; - ref QuestSequence reference153 = ref span198[num]; + ref QuestSequence reference153 = ref span63[3]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj138.Steps = list202; reference153 = obj138; - num++; - ref QuestSequence reference154 = ref span198[num]; + ref QuestSequence reference154 = ref span63[4]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -369525,33 +304472,27 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 1039622u, new Vector3(-341.78687f, 19f, 69.10803f), 962) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Interact, 1039622u, new Vector3(-341.78687f, 19f, 69.10803f), 962) { StopDistance = 5f }; obj139.Steps = list203; reference154 = obj139; - num++; - ref QuestSequence reference155 = ref span198[num]; + ref QuestSequence reference155 = ref span63[5]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj140.Steps = list204; reference155 = obj140; - num++; - ref QuestSequence reference156 = ref span198[num]; + ref QuestSequence reference156 = ref span63[6]; QuestSequence obj141 = new QuestSequence { Sequence = 6 @@ -369559,9 +304500,8 @@ public static class AssemblyQuestLoader num2 = 3; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.9973f, 1.2090492f, 118.133255f), 957) + Span span64 = CollectionsMarshal.AsSpan(list205); + span64[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(242.9973f, 1.2090492f, 118.133255f), 957) { StopDistance = 4f, Fly = true, @@ -369574,8 +304514,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span205[index2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) + span64[1] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) { Mount = false, SkipConditions = new SkipConditions @@ -369586,8 +304525,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span205[index2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) + span64[2] = new QuestStep(EInteractionType.Interact, 2012847u, new Vector3(242.08435f, 0.3508911f, 119.43237f), 957) { SkipConditions = new SkipConditions { @@ -369599,18 +304537,15 @@ public static class AssemblyQuestLoader }; obj141.Steps = list205; reference156 = obj141; - num++; - ref QuestSequence reference157 = ref span198[num]; + ref QuestSequence reference157 = ref span63[7]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; @@ -369623,16 +304558,13 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot25.Author = list207; - index = 4; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference158 = ref span208[num]; + num = 4; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span65 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference158 = ref span65[0]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -369640,23 +304572,18 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957); + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039624u, new Vector3(-478.38562f, 4.7772117f, 26.779541f), 957); obj143.Steps = list209; reference158 = obj143; - num++; - ref QuestSequence reference159 = ref span208[num]; + ref QuestSequence reference159 = ref span65[1]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference160 = ref span210[num2]; + num2 = 1; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list210)[0]; QuestStep obj145 = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { Fly = true @@ -369664,9 +304591,7 @@ public static class AssemblyQuestLoader num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span211 = CollectionsMarshal.AsSpan(list211); - num4 = 0; - span211[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list211)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMH109_04534_Q2_000_120") @@ -369675,8 +304600,7 @@ public static class AssemblyQuestLoader reference160 = obj145; obj144.Steps = list210; reference159 = obj144; - num++; - ref QuestSequence reference161 = ref span208[num]; + ref QuestSequence reference161 = ref span65[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 @@ -369684,23 +304608,18 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.Interact, 1039632u, new Vector3(106.614746f, -350f, -78.56879f), 1056); + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1039632u, new Vector3(106.614746f, -350f, -78.56879f), 1056); obj146.Steps = list212; reference161 = obj146; - num++; - ref QuestSequence reference162 = ref span208[num]; + ref QuestSequence reference162 = ref span65[3]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj147.Steps = list213; reference162 = obj147; questRoot25.QuestSequence = list208; @@ -369710,16 +304629,13 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - Span span214 = CollectionsMarshal.AsSpan(list214); - index = 0; - span214[index] = "liza"; + CollectionsMarshal.AsSpan(list214)[0] = "liza"; questRoot26.Author = list214; - index = 5; - List list215 = new List(index); - CollectionsMarshal.SetCount(list215, index); - Span span215 = CollectionsMarshal.AsSpan(list215); - num = 0; - ref QuestSequence reference163 = ref span215[num]; + num = 5; + List list215 = new List(num); + CollectionsMarshal.SetCount(list215, num); + Span span66 = CollectionsMarshal.AsSpan(list215); + ref QuestSequence reference163 = ref span66[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -369727,30 +304643,24 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039633u, new Vector3(111.46704f, -350f, -83.14642f), 1056) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039633u, new Vector3(111.46704f, -350f, -83.14642f), 1056) { StopDistance = 5f }; obj148.Steps = list216; reference163 = obj148; - num++; - ref QuestSequence reference164 = ref span215[num]; + ref QuestSequence reference164 = ref span66[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj149.Steps = list217; reference164 = obj149; - num++; - ref QuestSequence reference165 = ref span215[num]; + ref QuestSequence reference165 = ref span66[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -369758,33 +304668,26 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.Interact, 1039638u, new Vector3(-511.6503f, 11.97528f, 108.11011f), 957) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1039638u, new Vector3(-511.6503f, 11.97528f, 108.11011f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj150.Steps = list218; reference165 = obj150; - num++; - ref QuestSequence reference166 = ref span215[num]; + ref QuestSequence reference166 = ref span66[3]; QuestSequence obj151 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list219 = new List(index2); - CollectionsMarshal.SetCount(list219, index2); - Span span219 = CollectionsMarshal.AsSpan(list219); - num2 = 0; - ref QuestStep reference167 = ref span219[num2]; + num2 = 1; + List list219 = new List(num2); + CollectionsMarshal.SetCount(list219, num2); + ref QuestStep reference167 = ref CollectionsMarshal.AsSpan(list219)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1039639u, new Vector3(-513.6644f, 11.97528f, 106.06543f), 957); - num4 = 1; - List list220 = new List(num4); - CollectionsMarshal.SetCount(list220, num4); - Span span220 = CollectionsMarshal.AsSpan(list220); - num3 = 0; - span220[num3] = new DialogueChoice + num3 = 1; + List list220 = new List(num3); + CollectionsMarshal.SetCount(list220, num3); + CollectionsMarshal.AsSpan(list220)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMH110_04535_Q2_000_000"), @@ -369794,8 +304697,7 @@ public static class AssemblyQuestLoader reference167 = questStep17; obj151.Steps = list219; reference166 = obj151; - num++; - ref QuestSequence reference168 = ref span215[num]; + ref QuestSequence reference168 = ref span66[4]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -369803,9 +304705,7 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -369823,26 +304723,21 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot27.Author = list222; - index = 7; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference169 = ref span223[num]; + num = 7; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span67 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference169 = ref span67[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -369860,8 +304755,7 @@ public static class AssemblyQuestLoader }; obj153.Steps = list224; reference169 = obj153; - num++; - ref QuestSequence reference170 = ref span223[num]; + ref QuestSequence reference170 = ref span67[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -369869,38 +304763,31 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Interact, 2012860u, new Vector3(42.160645f, 20.462341f, -683.1617f), 156) + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 2012860u, new Vector3(42.160645f, 20.462341f, -683.1617f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona }; obj154.Steps = list225; reference170 = obj154; - num++; - ref QuestSequence reference171 = ref span223[num]; + ref QuestSequence reference171 = ref span67[2]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj155.Steps = list226; reference171 = obj155; - num++; - span223[num] = new QuestSequence + span67[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference172 = ref span223[num]; + ref QuestSequence reference172 = ref span67[4]; QuestSequence obj156 = new QuestSequence { Sequence = 4 @@ -369908,23 +304795,19 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1042269u, new Vector3(1.449585f, 0.05000399f, -18.661804f), 1061); + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1042269u, new Vector3(1.449585f, 0.05000399f, -18.661804f), 1061); obj156.Steps = list227; reference172 = obj156; - num++; - ref QuestSequence reference173 = ref span223[num]; + ref QuestSequence reference173 = ref span67[5]; QuestSequence obj157 = new QuestSequence { Sequence = 5 }; - index2 = 3; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref QuestStep reference174 = ref span228[num2]; + num2 = 3; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span68 = CollectionsMarshal.AsSpan(list228); + ref QuestStep reference174 = ref span68[0]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2012863u, new Vector3(0.1327076f, 2.960754f, 6.778096f), 1061) { StopDistance = 5f, @@ -369933,67 +304816,46 @@ public static class AssemblyQuestLoader num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - 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); + 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); obj158.CompletionQuestVariablesFlags = list229; reference174 = obj158; - num2++; - ref QuestStep reference175 = ref span228[num2]; + ref QuestStep reference175 = ref span68[1]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2012865u, new Vector3(-21.21936f, 0.7837547f, -58.66461f), 1061); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list230; reference175 = questStep18; - num2++; - ref QuestStep reference176 = ref span228[num2]; + ref QuestStep reference176 = ref span68[2]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list231; reference176 = questStep19; obj157.Steps = list228; reference173 = obj157; - num++; - ref QuestSequence reference177 = ref span223[num]; + ref QuestSequence reference177 = ref span67[6]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -370001,9 +304863,7 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042273u, new Vector3(3.5248413f, 0.0999997f, 14.145081f), 1061) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042273u, new Vector3(3.5248413f, 0.0999997f, 14.145081f), 1061) { NextQuestId = new QuestId(4537) }; @@ -370016,33 +304876,27 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "liza"; + CollectionsMarshal.AsSpan(list233)[0] = "liza"; questRoot28.Author = list233; - index = 4; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference178 = ref span234[num]; + num = 4; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span72 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference178 = ref span72[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj160.Steps = list235; reference178 = obj160; - num++; - ref QuestSequence reference179 = ref span234[num]; + ref QuestSequence reference179 = ref span72[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -370050,23 +304904,18 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.Interact, 1042276u, new Vector3(45.76172f, 0.05f, 6.9733276f), 1061); + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1042276u, new Vector3(45.76172f, 0.05f, 6.9733276f), 1061); obj161.Steps = list236; reference179 = obj161; - num++; - ref QuestSequence reference180 = ref span234[num]; + ref QuestSequence reference180 = ref span72[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -370075,8 +304924,7 @@ public static class AssemblyQuestLoader }; obj162.Steps = list237; reference180 = obj162; - num++; - ref QuestSequence reference181 = ref span234[num]; + ref QuestSequence reference181 = ref span72[3]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -370084,9 +304932,7 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042278u, new Vector3(12.130859f, 0.0999997f, -0.83929443f), 1061) { StopDistance = 5f, NextQuestId = new QuestId(4538) @@ -370100,33 +304946,27 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "liza"; + CollectionsMarshal.AsSpan(list239)[0] = "liza"; questRoot29.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]; + num = 6; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span73 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference182 = ref span73[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj164.Steps = list241; reference182 = obj164; - num++; - ref QuestSequence reference183 = ref span240[num]; + ref QuestSequence reference183 = ref span73[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -370134,30 +304974,24 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new QuestStep(EInteractionType.Interact, 1042279u, new Vector3(13.290527f, 0.099999696f, -2.243164f), 1061); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.Interact, 1042279u, new Vector3(13.290527f, 0.099999696f, -2.243164f), 1061); obj165.Steps = list242; reference183 = obj165; - num++; - ref QuestSequence reference184 = ref span240[num]; + ref QuestSequence reference184 = ref span73[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; obj166.Steps = list243; reference184 = obj166; - num++; - ref QuestSequence reference185 = ref span240[num]; + ref QuestSequence reference185 = ref span73[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -370165,55 +304999,40 @@ public static class AssemblyQuestLoader num2 = 3; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - ref QuestStep reference186 = ref span244[index2]; + Span span74 = CollectionsMarshal.AsSpan(list244); + ref QuestStep reference186 = ref span74[0]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2012866u, new Vector3(-0.015319824f, 6.6376343f, -78.81293f), 635) { StopDistance = 5f, IgnoreDistanceToObject = true }; - 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); + 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); obj168.CompletionQuestVariablesFlags = list245; reference186 = obj168; - index2++; - ref QuestStep reference187 = ref span244[index2]; + ref QuestStep reference187 = ref span74[1]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list246; reference187 = questStep20; - index2++; - ref QuestStep reference188 = ref span244[index2]; + ref QuestStep reference188 = ref span74[2]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1042284u, new Vector3(208.69751f, 13.5620365f, -140.30676f), 635) { AethernetShortcut = new AethernetShortcut @@ -370222,42 +305041,32 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RhalgrsReachNorthEast } }; - 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); + 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); obj169.CompletionQuestVariablesFlags = list247; reference188 = obj169; obj167.Steps = list244; reference185 = obj167; - num++; - ref QuestSequence reference189 = ref span240[num]; + ref QuestSequence reference189 = ref span73[4]; QuestSequence obj170 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj170.Steps = list248; reference189 = obj170; - num++; - ref QuestSequence reference190 = ref span240[num]; + ref QuestSequence reference190 = ref span73[5]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -370265,9 +305074,7 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042285u, new Vector3(-4.623535f, 2.745737f, -39.505676f), 635) { StopDistance = 5f, NextQuestId = new QuestId(4539) @@ -370281,26 +305088,21 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "liza"; + CollectionsMarshal.AsSpan(list250)[0] = "liza"; questRoot30.Author = list250; - index = 8; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference191 = ref span251[num]; + num = 8; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span78 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference191 = ref span78[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RhalgrsReach, @@ -370314,8 +305116,7 @@ public static class AssemblyQuestLoader }; obj172.Steps = list252; reference191 = obj172; - num++; - ref QuestSequence reference192 = ref span251[num]; + ref QuestSequence reference192 = ref span78[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -370323,9 +305124,7 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1042286u, new Vector3(-207.04968f, 18f, 87.84619f), 130) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1042286u, new Vector3(-207.04968f, 18f, 87.84619f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -370336,22 +305135,18 @@ public static class AssemblyQuestLoader }; obj173.Steps = list253; reference192 = obj173; - num++; - ref QuestSequence reference193 = ref span251[num]; + ref QuestSequence reference193 = ref span78[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj174.Steps = list254; reference193 = obj174; - num++; - ref QuestSequence reference194 = ref span251[num]; + ref QuestSequence reference194 = ref span78[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 @@ -370359,41 +305154,35 @@ public static class AssemblyQuestLoader num2 = 2; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) + Span span79 = CollectionsMarshal.AsSpan(list255); + span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-157.07425f, 24.884384f, -354.37775f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanLittleAlaMhigo }; - index2++; - span255[index2] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) + span79[1] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) { Fly = true }; obj175.Steps = list255; reference194 = obj175; - num++; - ref QuestSequence reference195 = ref span251[num]; + ref QuestSequence reference195 = ref span78[4]; QuestSequence obj176 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span256[num2] = new QuestStep(EInteractionType.Interact, 2012869u, new Vector3(137.4685f, 10.696533f, -488.36502f), 146); + span80[1] = new QuestStep(EInteractionType.Interact, 2012869u, new Vector3(137.4685f, 10.696533f, -488.36502f), 146); obj176.Steps = list256; reference195 = obj176; - num++; - ref QuestSequence reference196 = ref span251[num]; + ref QuestSequence reference196 = ref span78[5]; QuestSequence obj177 = new QuestSequence { Sequence = 5 @@ -370401,38 +305190,32 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1042288u, new Vector3(153.09375f, 10.362769f, -436.88104f), 146) { Fly = true }; obj177.Steps = list257; reference196 = obj177; - num++; - ref QuestSequence reference197 = ref span251[num]; + ref QuestSequence reference197 = ref span78[6]; QuestSequence obj178 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span258[num2] = new QuestStep(EInteractionType.Interact, 1042281u, new Vector3(1.9378662f, 0.099999696f, -0.44250488f), 1061); + span81[1] = new QuestStep(EInteractionType.Interact, 1042281u, new Vector3(1.9378662f, 0.099999696f, -0.44250488f), 1061); obj178.Steps = list258; reference197 = obj178; - num++; - ref QuestSequence reference198 = ref span251[num]; + ref QuestSequence reference198 = ref span78[7]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -370440,9 +305223,7 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { Fly = true, NextQuestId = new QuestId(4666) @@ -370456,26 +305237,21 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - Span span260 = CollectionsMarshal.AsSpan(list260); - index = 0; - span260[index] = "liza"; + CollectionsMarshal.AsSpan(list260)[0] = "liza"; questRoot31.Author = list260; - index = 7; - List list261 = new List(index); - CollectionsMarshal.SetCount(list261, index); - Span span261 = CollectionsMarshal.AsSpan(list261); - num = 0; - ref QuestSequence reference199 = ref span261[num]; + num = 7; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span82 = CollectionsMarshal.AsSpan(list261); + ref QuestSequence reference199 = ref span82[0]; QuestSequence obj180 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list262 = new List(num2); + CollectionsMarshal.SetCount(list262, num2); + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list262)[0]; QuestStep obj181 = new QuestStep(EInteractionType.AcceptQuest, 1042487u, new Vector3(32.272827f, -4.4237822E-07f, -0.7477417f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan @@ -370483,9 +305259,7 @@ public static class AssemblyQuestLoader num3 = 1; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - Span span263 = CollectionsMarshal.AsSpan(list263); - num4 = 0; - span263[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB811_04542_Q4_000_000"), @@ -370495,8 +305269,7 @@ public static class AssemblyQuestLoader reference200 = obj181; obj180.Steps = list262; reference199 = obj180; - num++; - ref QuestSequence reference201 = ref span261[num]; + ref QuestSequence reference201 = ref span82[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -370504,23 +305277,18 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.Interact, 1042488u, new Vector3(150.68274f, 4.783756f, -145.00653f), 963); + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 1042488u, new Vector3(150.68274f, 4.783756f, -145.00653f), 963); obj182.Steps = list264; reference201 = obj182; - num++; - ref QuestSequence reference202 = ref span261[num]; + ref QuestSequence reference202 = ref span82[2]; QuestSequence obj183 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -370530,8 +305298,7 @@ public static class AssemblyQuestLoader }; obj183.Steps = list265; reference202 = obj183; - num++; - ref QuestSequence reference203 = ref span261[num]; + ref QuestSequence reference203 = ref span82[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -370539,9 +305306,7 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1027322u, new Vector3(-20.126648f, 3.9998171f, 204.24194f), 819) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -370553,18 +305318,16 @@ public static class AssemblyQuestLoader }; obj184.Steps = list266; reference203 = obj184; - num++; - ref QuestSequence reference204 = ref span261[num]; + ref QuestSequence reference204 = ref span82[4]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -370572,8 +305335,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumTessellation } }; - num2++; - span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { Comment = "these bridges have navmesh problems", SkipConditions = new SkipConditions @@ -370584,8 +305346,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) + span83[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(15.410904f, 2.2598603f, 677.3755f), 813) { DisableNavmesh = true, SkipConditions = new SkipConditions @@ -370596,8 +305357,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span267[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + span83[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -370607,32 +305367,24 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference205 = ref span267[num2]; + ref QuestStep reference205 = ref span83[4]; QuestStep obj186 = new QuestStep(EInteractionType.Interact, 1042493u, new Vector3(-106.73688f, 14.173656f, 756.4354f), 813) { Fly = true }; - 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); + 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); obj186.CompletionQuestVariablesFlags = list268; reference205 = obj186; - num2++; - ref QuestStep reference206 = ref span267[num2]; + ref QuestStep reference206 = ref span83[5]; QuestStep obj187 = new QuestStep(EInteractionType.Interact, 1042491u, new Vector3(-137.22437f, 9.572956f, 708.3999f), 813) { StopDistance = 1f, @@ -370641,49 +305393,35 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - 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); + 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); obj187.CompletionQuestVariablesFlags = list269; reference206 = obj187; - num2++; - ref QuestStep reference207 = ref span267[num2]; + ref QuestStep reference207 = ref span83[6]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 1042492u, new Vector3(-218.76862f, 1.9084097f, 756.16077f), 813) { Fly = true }; - 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); + 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); obj188.CompletionQuestVariablesFlags = list270; reference207 = obj188; obj185.Steps = list267; reference204 = obj185; - num++; - ref QuestSequence reference208 = ref span261[num]; + ref QuestSequence reference208 = ref span82[5]; QuestSequence obj189 = new QuestSequence { Sequence = 5 @@ -370691,9 +305429,8 @@ public static class AssemblyQuestLoader num2 = 2; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) + Span span87 = CollectionsMarshal.AsSpan(list271); + span87[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-82.79376f, 11.970126f, 765.8721f), 813) { SkipConditions = new SkipConditions { @@ -370703,22 +305440,19 @@ public static class AssemblyQuestLoader } } }; - index2++; - span271[index2] = new QuestStep(EInteractionType.Interact, 1042494u, new Vector3(-54.032227f, 2.015483f, 677.9125f), 813); + span87[1] = new QuestStep(EInteractionType.Interact, 1042494u, new Vector3(-54.032227f, 2.015483f, 677.9125f), 813); obj189.Steps = list271; reference208 = obj189; - num++; - ref QuestSequence reference209 = ref span261[num]; + ref QuestSequence reference209 = ref span82[6]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -370728,8 +305462,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) + span88[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(55.589294f, 2.0276523f, 669.1557f), 813) { DisableNavmesh = true, Comment = "these bridges have navmesh problems", @@ -370741,8 +305474,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(105.453514f, -1.5952542f, 604.3535f), 813) + span88[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(105.453514f, -1.5952542f, 604.3535f), 813) { SkipConditions = new SkipConditions { @@ -370752,8 +305484,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042497u, new Vector3(220.7522f, 12.699311f, 229.84656f), 813) + span88[3] = new QuestStep(EInteractionType.CompleteQuest, 1042497u, new Vector3(220.7522f, 12.699311f, 229.84656f), 813) { Fly = true, NextQuestId = new QuestId(4543) @@ -370767,16 +305498,13 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot32.Author = list273; - index = 11; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference210 = ref span274[num]; + num = 11; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span89 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference210 = ref span89[0]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -370784,9 +305512,7 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - ref QuestStep reference211 = ref span275[index2]; + ref QuestStep reference211 = ref CollectionsMarshal.AsSpan(list275)[0]; QuestStep obj192 = new QuestStep(EInteractionType.AcceptQuest, 1042499u, new Vector3(217.51733f, 12.445339f, 228.44275f), 813) { StopDistance = 5f @@ -370794,9 +305520,7 @@ public static class AssemblyQuestLoader num3 = 1; List list276 = new List(num3); CollectionsMarshal.SetCount(list276, num3); - Span span276 = CollectionsMarshal.AsSpan(list276); - num4 = 0; - span276[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list276)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB812_04543_Q1_000_000"), @@ -370806,18 +305530,15 @@ public static class AssemblyQuestLoader reference211 = obj192; obj191.Steps = list275; reference210 = obj191; - num++; - ref QuestSequence reference212 = ref span274[num]; + ref QuestSequence reference212 = ref span89[1]; QuestSequence obj193 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -370828,8 +305549,7 @@ public static class AssemblyQuestLoader }; obj193.Steps = list277; reference212 = obj193; - num++; - ref QuestSequence reference213 = ref span274[num]; + ref QuestSequence reference213 = ref span89[2]; QuestSequence obj194 = new QuestSequence { Sequence = 2 @@ -370837,9 +305557,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - span278[index2] = new QuestStep(EInteractionType.Interact, 1042505u, new Vector3(148.11926f, 27.06f, 36.240112f), 963) + CollectionsMarshal.AsSpan(list278)[0] = new QuestStep(EInteractionType.Interact, 1042505u, new Vector3(148.11926f, 27.06f, 36.240112f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -370850,62 +305568,46 @@ public static class AssemblyQuestLoader }; obj194.Steps = list278; reference213 = obj194; - num++; - ref QuestSequence reference214 = ref span274[num]; + ref QuestSequence reference214 = ref span89[3]; QuestSequence obj195 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list279 = new List(index2); - CollectionsMarshal.SetCount(list279, index2); - Span span279 = CollectionsMarshal.AsSpan(list279); - num2 = 0; - ref QuestStep reference215 = ref span279[num2]; + num2 = 2; + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + Span span90 = CollectionsMarshal.AsSpan(list279); + ref QuestStep reference215 = ref span90[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 1037341u, new Vector3(133.77576f, 26.99999f, 12.405518f), 963); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list280; reference215 = questStep21; - num2++; - ref QuestStep reference216 = ref span279[num2]; + ref QuestStep reference216 = ref span90[1]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list281; reference216 = questStep22; obj195.Steps = list279; reference214 = obj195; - num++; - ref QuestSequence reference217 = ref span274[num]; + ref QuestSequence reference217 = ref span89[4]; QuestSequence obj196 = new QuestSequence { Sequence = 4 @@ -370913,27 +305615,21 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.Interact, 1042506u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.Interact, 1042506u, new Vector3(126.11572f, 26.999989f, 32.76111f), 963); obj196.Steps = list282; reference217 = obj196; - num++; - ref QuestSequence reference218 = ref span274[num]; + ref QuestSequence reference218 = ref span89[5]; QuestSequence obj197 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj197.Steps = list283; reference218 = obj197; - num++; - ref QuestSequence reference219 = ref span274[num]; + ref QuestSequence reference219 = ref span89[6]; QuestSequence obj198 = new QuestSequence { Sequence = 6 @@ -370941,23 +305637,19 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.Interact, 1037324u, new Vector3(-4.257263f, 27f, 36.362183f), 963); + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1037324u, new Vector3(-4.257263f, 27f, 36.362183f), 963); obj198.Steps = list284; reference219 = obj198; - num++; - ref QuestSequence reference220 = ref span274[num]; + ref QuestSequence reference220 = ref span89[7]; QuestSequence obj199 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 0.5f, JumpDestination = new JumpDestination @@ -370965,12 +305657,10 @@ public static class AssemblyQuestLoader Position = new Vector3(-3.6922705f, -1.9999962f, 52.106045f) } }; - num2++; - span285[num2] = new QuestStep(EInteractionType.Interact, 1042509u, new Vector3(-29.373718f, -1.9999962f, 130.93762f), 963); + span93[1] = new QuestStep(EInteractionType.Interact, 1042509u, new Vector3(-29.373718f, -1.9999962f, 130.93762f), 963); obj199.Steps = list285; reference220 = obj199; - num++; - ref QuestSequence reference221 = ref span274[num]; + ref QuestSequence reference221 = ref span89[8]; QuestSequence obj200 = new QuestSequence { Sequence = 8 @@ -370978,34 +305668,28 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.Interact, 1042510u, new Vector3(-337.57538f, 3.2215352f, 365.7129f), 957) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1042510u, new Vector3(-337.57538f, 3.2215352f, 365.7129f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj200.Steps = list286; reference221 = obj200; - num++; - ref QuestSequence reference222 = ref span274[num]; + ref QuestSequence reference222 = ref span89[9]; QuestSequence obj201 = new QuestSequence { Sequence = 9 }; - 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) + 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) { StopDistance = 5f }; obj201.Steps = list287; reference222 = obj201; - num++; - ref QuestSequence reference223 = ref span274[num]; + ref QuestSequence reference223 = ref span89[10]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue @@ -371013,9 +305697,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042512u, new Vector3(31.387817f, -5.021957E-07f, -0.65618896f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, NextQuestId = new QuestId(4641) @@ -371029,36 +305711,29 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - Span span289 = CollectionsMarshal.AsSpan(list289); - index = 0; - span289[index] = "liza"; + CollectionsMarshal.AsSpan(list289)[0] = "liza"; questRoot33.Author = list289; - index = 9; - List list290 = new List(index); - CollectionsMarshal.SetCount(list290, index); - Span span290 = CollectionsMarshal.AsSpan(list290); - num = 0; - ref QuestSequence reference224 = ref span290[num]; + num = 9; + List list290 = new List(num); + CollectionsMarshal.SetCount(list290, num); + Span span94 = CollectionsMarshal.AsSpan(list290); + ref QuestSequence reference224 = ref span94[0]; QuestSequence obj203 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list291 = new List(num2); + CollectionsMarshal.SetCount(list291, num2); + ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list291)[0]; QuestStep obj204 = new QuestStep(EInteractionType.AcceptQuest, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - num4 = 1; - List list292 = new List(num4); - CollectionsMarshal.SetCount(list292, num4); - Span span292 = CollectionsMarshal.AsSpan(list292); - num3 = 0; - span292[num3] = new DialogueChoice + num3 = 1; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + CollectionsMarshal.AsSpan(list292)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q1_000_004"), @@ -371068,8 +305743,7 @@ public static class AssemblyQuestLoader reference225 = obj204; obj203.Steps = list291; reference224 = obj203; - num++; - ref QuestSequence reference226 = ref span290[num]; + ref QuestSequence reference226 = ref span94[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -371077,51 +305751,36 @@ public static class AssemblyQuestLoader num2 = 3; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - ref QuestStep reference227 = ref span293[index2]; + Span span95 = CollectionsMarshal.AsSpan(list293); + ref QuestStep reference227 = ref span95[0]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list294; reference227 = questStep23; - index2++; - ref QuestStep reference228 = ref span293[index2]; + ref QuestStep reference228 = ref span95[1]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1042305u, new Vector3(200f, 10.114502f, 579.1256f), 957); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list295; reference228 = questStep24; - index2++; - ref QuestStep reference229 = ref span293[index2]; + ref QuestStep reference229 = ref span95[2]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1042304u, new Vector3(171.58765f, 4.763736f, 683.37524f), 957) { Fly = true @@ -371129,42 +305788,32 @@ public static class AssemblyQuestLoader num3 = 6; List list296 = new List(num3); CollectionsMarshal.SetCount(list296, num3); - 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); + 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); obj206.CompletionQuestVariablesFlags = list296; reference229 = obj206; obj205.Steps = list293; reference226 = obj205; - num++; - ref QuestSequence reference230 = ref span290[num]; + ref QuestSequence reference230 = ref span94[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj207.Steps = list297; reference230 = obj207; - num++; - ref QuestSequence reference231 = ref span290[num]; + ref QuestSequence reference231 = ref span94[3]; QuestSequence obj208 = new QuestSequence { Sequence = 3 @@ -371172,43 +305821,36 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) + Span span99 = CollectionsMarshal.AsSpan(list298); + span99[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(191.63799f, 15.136713f, 508.80118f), 957) { Fly = true }; - index2++; - span298[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + span99[1] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj208.Steps = list298; reference231 = obj208; - num++; - ref QuestSequence reference232 = ref span290[num]; + ref QuestSequence reference232 = ref span94[4]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Mount = true }; - num2++; - ref QuestStep reference233 = ref span299[num2]; + ref QuestStep reference233 = ref span100[1]; QuestStep obj210 = new QuestStep(EInteractionType.Interact, 1042307u, new Vector3(121.01929f, 6.780056f, 585.59546f), 957) { Fly = true }; - num4 = 1; - List list300 = new List(num4); - CollectionsMarshal.SetCount(list300, num4); - Span span300 = CollectionsMarshal.AsSpan(list300); - num3 = 0; - span300[num3] = new DialogueChoice + num3 = 1; + List list300 = new List(num3); + CollectionsMarshal.SetCount(list300, num3); + CollectionsMarshal.AsSpan(list300)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q4_000_081") @@ -371217,8 +305859,7 @@ public static class AssemblyQuestLoader reference233 = obj210; obj209.Steps = list299; reference232 = obj209; - num++; - ref QuestSequence reference234 = ref span290[num]; + ref QuestSequence reference234 = ref span94[5]; QuestSequence obj211 = new QuestSequence { Sequence = 5 @@ -371226,9 +305867,7 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - ref QuestStep reference235 = ref span301[index2]; + ref QuestStep reference235 = ref CollectionsMarshal.AsSpan(list301)[0]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1042310u, new Vector3(-488.7007f, 4.563182f, 18.20398f), 957) { StopDistance = 5f @@ -371236,9 +305875,7 @@ public static class AssemblyQuestLoader num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - Span span302 = CollectionsMarshal.AsSpan(list302); - num4 = 0; - span302[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list302)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK001_04545_Q5_000_115") @@ -371247,22 +305884,18 @@ public static class AssemblyQuestLoader reference235 = obj212; obj211.Steps = list301; reference234 = obj211; - num++; - ref QuestSequence reference236 = ref span290[num]; + ref QuestSequence reference236 = ref span94[6]; QuestSequence obj213 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj213.Steps = list303; reference236 = obj213; - num++; - ref QuestSequence reference237 = ref span290[num]; + ref QuestSequence reference237 = ref span94[7]; QuestSequence obj214 = new QuestSequence { Sequence = 7 @@ -371270,28 +305903,23 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 1041332u, new Vector3(194.68982f, 14.118598f, 485.9845f), 957); obj214.Steps = list304; reference237 = obj214; - num++; - ref QuestSequence reference238 = ref span290[num]; + ref QuestSequence reference238 = ref span94[8]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span305[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042313u, new Vector3(-78.690796f, 40.010006f, 323.2318f), 957) + span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1042313u, new Vector3(-78.690796f, 40.010006f, 323.2318f), 957) { Fly = true }; @@ -371304,16 +305932,13 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "liza"; + CollectionsMarshal.AsSpan(list306)[0] = "liza"; questRoot34.Author = list306; - index = 10; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference239 = ref span307[num]; + num = 10; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span102 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference239 = ref span102[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -371321,30 +305946,24 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957); + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957); obj216.Steps = list308; reference239 = obj216; - num++; - ref QuestSequence reference240 = ref span307[num]; + ref QuestSequence reference240 = ref span102[1]; QuestSequence obj217 = 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, 2012919u, new Vector3(-464.22522f, 5.3864136f, 22.445984f), 957) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj217.Steps = list309; reference240 = obj217; - num++; - ref QuestSequence reference241 = ref span307[num]; + ref QuestSequence reference241 = ref span102[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -371352,44 +305971,36 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - ref QuestStep reference242 = ref span310[index2]; + ref QuestStep reference242 = ref CollectionsMarshal.AsSpan(list310)[0]; QuestStep obj219 = new QuestStep(EInteractionType.Combat, null, new Vector3(-363.06543f, 55.300343f, -108.32965f), 957) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list311 = new List(num4); - CollectionsMarshal.SetCount(list311, num4); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = 14681u; + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = 14681u; obj219.KillEnemyDataIds = list311; reference242 = obj219; obj218.Steps = list310; reference241 = obj218; - num++; - ref QuestSequence reference243 = ref span307[num]; + ref QuestSequence reference243 = ref span102[3]; QuestSequence obj220 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj220.Steps = list312; reference243 = obj220; - num++; - ref QuestSequence reference244 = ref span307[num]; + ref QuestSequence reference244 = ref span102[4]; QuestSequence obj221 = new QuestSequence { Sequence = 4 @@ -371397,30 +306008,24 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957) + CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.Interact, 1042321u, new Vector3(-522.9725f, 11.61713f, 88.97534f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj221.Steps = list313; reference244 = obj221; - num++; - ref QuestSequence reference245 = ref span307[num]; + ref QuestSequence reference245 = ref span102[5]; QuestSequence obj222 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj222.Steps = list314; reference245 = obj222; - num++; - ref QuestSequence reference246 = ref span307[num]; + ref QuestSequence reference246 = ref span102[6]; QuestSequence obj223 = new QuestSequence { Sequence = 6 @@ -371428,55 +306033,40 @@ public static class AssemblyQuestLoader num2 = 3; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - ref QuestStep reference247 = ref span315[index2]; + Span span103 = CollectionsMarshal.AsSpan(list315); + ref QuestStep reference247 = ref span103[0]; 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 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); + 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); questStep25.CompletionQuestVariablesFlags = list316; reference247 = questStep25; - index2++; - ref QuestStep reference248 = ref span315[index2]; + ref QuestStep reference248 = ref span103[1]; QuestStep obj224 = new QuestStep(EInteractionType.Interact, 1042325u, new Vector3(-552.75806f, 1.120665f, 23.392029f), 957) { StopDistance = 0.5f, Fly = true }; - 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); + 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); obj224.CompletionQuestVariablesFlags = list317; reference248 = obj224; - index2++; - ref QuestStep reference249 = ref span315[index2]; + ref QuestStep reference249 = ref span103[2]; QuestStep obj225 = new QuestStep(EInteractionType.Interact, 1042323u, new Vector3(-480.33875f, 1.9096844f, -13.53479f), 957) { Fly = true @@ -371484,39 +306074,29 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - 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); + 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); obj225.CompletionQuestVariablesFlags = list318; reference249 = obj225; obj223.Steps = list315; reference246 = obj223; - num++; - ref QuestSequence reference250 = ref span307[num]; + ref QuestSequence reference250 = ref span102[7]; QuestSequence obj226 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj226.Steps = list319; reference250 = obj226; - num++; - ref QuestSequence reference251 = ref span307[num]; + ref QuestSequence reference251 = ref span102[8]; QuestSequence obj227 = new QuestSequence { Sequence = 8 @@ -371524,26 +306104,21 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span320 = CollectionsMarshal.AsSpan(list320); - index2 = 0; - span320[index2] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) + CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.Interact, 1041397u, new Vector3(402.30408f, 3.0506973f, -212.35986f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj227.Steps = list320; reference251 = obj227; - num++; - ref QuestSequence reference252 = ref span307[num]; + ref QuestSequence reference252 = ref span102[9]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -371558,16 +306133,13 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - Span span322 = CollectionsMarshal.AsSpan(list322); - index = 0; - span322[index] = "liza"; + CollectionsMarshal.AsSpan(list322)[0] = "liza"; questRoot35.Author = list322; - index = 7; - List list323 = new List(index); - CollectionsMarshal.SetCount(list323, index); - Span span323 = CollectionsMarshal.AsSpan(list323); - num = 0; - ref QuestSequence reference253 = ref span323[num]; + num = 7; + List list323 = new List(num); + CollectionsMarshal.SetCount(list323, num); + Span span107 = CollectionsMarshal.AsSpan(list323); + ref QuestSequence reference253 = ref span107[0]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -371575,31 +306147,25 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj229.Steps = list324; reference253 = obj229; - num++; - ref QuestSequence reference254 = ref span323[num]; + ref QuestSequence reference254 = ref span107[1]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj230.Steps = list325; reference254 = obj230; - num++; - ref QuestSequence reference255 = ref span323[num]; + ref QuestSequence reference255 = ref span107[2]; QuestSequence obj231 = new QuestSequence { Sequence = 2 @@ -371607,33 +306173,27 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.Interact, 2012921u, new Vector3(128.89294f, 16f, -437.9187f), 957) + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.Interact, 2012921u, new Vector3(128.89294f, 16f, -437.9187f), 957) { Fly = true }; obj231.Steps = list326; reference255 = obj231; - num++; - ref QuestSequence reference256 = ref span323[num]; + ref QuestSequence reference256 = ref span107[3]; QuestSequence obj232 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4.5f }; obj232.Steps = list327; reference256 = obj232; - num++; - ref QuestSequence reference257 = ref span323[num]; + ref QuestSequence reference257 = ref span107[4]; QuestSequence obj233 = new QuestSequence { Sequence = 4 @@ -371641,33 +306201,27 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - index2 = 0; - span328[index2] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) + CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1042327u, new Vector3(413.35156f, 19.3188f, -457.57233f), 957) { Fly = true }; obj233.Steps = list328; reference257 = obj233; - num++; - ref QuestSequence reference258 = ref span323[num]; + ref QuestSequence reference258 = ref span107[5]; QuestSequence obj234 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj234.Steps = list329; reference258 = obj234; - num++; - ref QuestSequence reference259 = ref span323[num]; + ref QuestSequence reference259 = ref span107[6]; QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue @@ -371675,9 +306229,7 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - span330[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) + CollectionsMarshal.AsSpan(list330)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.986862f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -371691,30 +306243,24 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "liza"; + CollectionsMarshal.AsSpan(list331)[0] = "liza"; questRoot36.Author = list331; - index = 6; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference260 = ref span332[num]; + num = 6; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span108 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference260 = ref span108[0]; QuestSequence obj236 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj236.Steps = list333; reference260 = obj236; - num++; - ref QuestSequence reference261 = ref span332[num]; + ref QuestSequence reference261 = ref span108[1]; QuestSequence obj237 = new QuestSequence { Sequence = 1 @@ -371722,51 +306268,40 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.Interact, 1042336u, new Vector3(409.964f, 18.253498f, -461.53967f), 957) + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.Interact, 1042336u, new Vector3(409.964f, 18.253498f, -461.53967f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj237.Steps = list334; reference261 = obj237; - num++; - ref QuestSequence reference262 = ref span332[num]; + ref QuestSequence reference262 = ref span108[2]; QuestSequence obj238 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list335 = new List(index2); - CollectionsMarshal.SetCount(list335, index2); - Span span335 = CollectionsMarshal.AsSpan(list335); - num2 = 0; - ref QuestStep reference263 = ref span335[num2]; + num2 = 2; + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + Span span109 = CollectionsMarshal.AsSpan(list335); + ref QuestStep reference263 = ref span109[0]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 2012970u, new Vector3(197.4364f, 9.323181f, -438.71216f), 957) { Fly = true }; - 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); + 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); obj239.CompletionQuestVariablesFlags = list336; reference263 = obj239; - num2++; - ref QuestStep reference264 = ref span335[num2]; + ref QuestStep reference264 = ref span109[1]; QuestStep obj240 = new QuestStep(EInteractionType.Combat, 2012924u, new Vector3(179.33923f, 7.309021f, -392.44684f), 957) { Fly = true, @@ -371775,32 +306310,23 @@ public static class AssemblyQuestLoader num3 = 1; List list337 = new List(num3); CollectionsMarshal.SetCount(list337, num3); - Span span337 = CollectionsMarshal.AsSpan(list337); - num4 = 0; - span337[num4] = 14683u; + CollectionsMarshal.AsSpan(list337)[0] = 14683u; obj240.KillEnemyDataIds = list337; - 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); + 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); obj240.CompletionQuestVariablesFlags = list338; reference264 = obj240; obj238.Steps = list335; reference262 = obj238; - num++; - ref QuestSequence reference265 = ref span332[num]; + ref QuestSequence reference265 = ref span108[3]; QuestSequence obj241 = new QuestSequence { Sequence = 3 @@ -371808,33 +306334,27 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.Interact, 1042339u, new Vector3(145.95251f, 9.608223f, -234.24127f), 957) + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1042339u, new Vector3(145.95251f, 9.608223f, -234.24127f), 957) { Fly = true }; obj241.Steps = list339; reference265 = obj241; - num++; - ref QuestSequence reference266 = ref span332[num]; + ref QuestSequence reference266 = ref span108[4]; QuestSequence obj242 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj242.Steps = list340; reference266 = obj242; - num++; - ref QuestSequence reference267 = ref span332[num]; + ref QuestSequence reference267 = ref span108[5]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue @@ -371842,9 +306362,7 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -371858,33 +306376,27 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - Span span342 = CollectionsMarshal.AsSpan(list342); - index = 0; - span342[index] = "skiaz"; + CollectionsMarshal.AsSpan(list342)[0] = "skiaz"; questRoot37.Author = list342; - index = 8; - List list343 = new List(index); - CollectionsMarshal.SetCount(list343, index); - Span span343 = CollectionsMarshal.AsSpan(list343); - num = 0; - ref QuestSequence reference268 = ref span343[num]; + num = 8; + List list343 = new List(num); + CollectionsMarshal.SetCount(list343, num); + Span span112 = CollectionsMarshal.AsSpan(list343); + ref QuestSequence reference268 = ref span112[0]; QuestSequence obj244 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj244.Steps = list344; reference268 = obj244; - num++; - ref QuestSequence reference269 = ref span343[num]; + ref QuestSequence reference269 = ref span112[1]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -371892,9 +306404,8 @@ public static class AssemblyQuestLoader num2 = 3; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - ref QuestStep reference270 = ref span345[index2]; + Span span113 = CollectionsMarshal.AsSpan(list345); + ref QuestStep reference270 = ref span113[0]; QuestStep obj246 = new QuestStep(EInteractionType.Combat, 2012925u, new Vector3(-108.01868f, 40.17688f, 182.5741f), 957) { Fly = true, @@ -371903,28 +306414,22 @@ public static class AssemblyQuestLoader num3 = 1; List list346 = new List(num3); CollectionsMarshal.SetCount(list346, num3); - Span span346 = CollectionsMarshal.AsSpan(list346); - num4 = 0; - span346[num4] = 14684u; + CollectionsMarshal.AsSpan(list346)[0] = 14684u; obj246.KillEnemyDataIds = list346; reference270 = obj246; - index2++; - ref QuestStep reference271 = ref span345[index2]; + ref QuestStep reference271 = ref span113[1]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, 2012926u, new Vector3(-53.574463f, 56.22937f, 66.056274f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list347 = new List(num4); - CollectionsMarshal.SetCount(list347, num4); - Span span347 = CollectionsMarshal.AsSpan(list347); - num3 = 0; - span347[num3] = 14685u; + num3 = 1; + List list347 = new List(num3); + CollectionsMarshal.SetCount(list347, num3); + CollectionsMarshal.AsSpan(list347)[0] = 14685u; obj247.KillEnemyDataIds = list347; reference271 = obj247; - index2++; - ref QuestStep reference272 = ref span345[index2]; + ref QuestStep reference272 = ref span113[2]; QuestStep obj248 = new QuestStep(EInteractionType.Combat, 2012927u, new Vector3(-246.05176f, 18.509094f, 128.58777f), 957) { Fly = true, @@ -371933,32 +306438,26 @@ public static class AssemblyQuestLoader num3 = 1; List list348 = new List(num3); CollectionsMarshal.SetCount(list348, num3); - Span span348 = CollectionsMarshal.AsSpan(list348); - num4 = 0; - span348[num4] = 14684u; + CollectionsMarshal.AsSpan(list348)[0] = 14684u; obj248.KillEnemyDataIds = list348; reference272 = obj248; obj245.Steps = list345; reference269 = obj245; - num++; - ref QuestSequence reference273 = ref span343[num]; + ref QuestSequence reference273 = ref span112[2]; QuestSequence obj249 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj249.Steps = list349; reference273 = obj249; - num++; - ref QuestSequence reference274 = ref span343[num]; + ref QuestSequence reference274 = ref span112[3]; QuestSequence obj250 = new QuestSequence { Sequence = 3 @@ -371966,19 +306465,15 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - ref QuestStep reference275 = ref span350[index2]; + ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list350)[0]; QuestStep obj251 = new QuestStep(EInteractionType.Interact, 1042353u, new Vector3(-56.199036f, 35.964603f, 379.07983f), 957) { Fly = true }; - num4 = 1; - List list351 = new List(num4); - CollectionsMarshal.SetCount(list351, num4); - Span span351 = CollectionsMarshal.AsSpan(list351); - num3 = 0; - span351[num3] = new DialogueChoice + num3 = 1; + List list351 = new List(num3); + CollectionsMarshal.SetCount(list351, num3); + CollectionsMarshal.AsSpan(list351)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK005_04549_Q2_000_046"), @@ -371988,25 +306483,21 @@ public static class AssemblyQuestLoader reference275 = obj251; obj250.Steps = list350; reference274 = obj250; - num++; - ref QuestSequence reference276 = ref span343[num]; + ref QuestSequence reference276 = ref span112[4]; QuestSequence obj252 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj252.Steps = list352; reference276 = obj252; - num++; - ref QuestSequence reference277 = ref span343[num]; + ref QuestSequence reference277 = ref span112[5]; QuestSequence obj253 = new QuestSequence { Sequence = 5 @@ -372014,34 +306505,28 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.Interact, 1042346u, new Vector3(175.21924f, 5.629661f, 614.12976f), 957) + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.Interact, 1042346u, new Vector3(175.21924f, 5.629661f, 614.12976f), 957) { Fly = true }; obj253.Steps = list353; reference277 = obj253; - num++; - ref QuestSequence reference278 = ref span343[num]; + ref QuestSequence reference278 = ref span112[6]; QuestSequence obj254 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj254.Steps = list354; reference278 = obj254; - num++; - ref QuestSequence reference279 = ref span343[num]; + ref QuestSequence reference279 = ref span112[7]; QuestSequence obj255 = new QuestSequence { Sequence = byte.MaxValue @@ -372049,9 +306534,7 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - span355[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj255.Steps = list355; reference279 = obj255; questRoot37.QuestSequence = list343; @@ -372065,16 +306548,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -372082,16 +306562,12 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; 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); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK006_04550_Q1_000_007"), @@ -372101,22 +306577,18 @@ public static class AssemblyQuestLoader reference2 = questStep; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list5; reference3 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -372124,9 +306596,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957); obj3.Steps = list6; reference4 = obj3; questRoot.QuestSequence = list2; @@ -372136,30 +306606,24 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 3; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 3; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list9; reference5 = obj4; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -372167,33 +306631,25 @@ public static class AssemblyQuestLoader num2 = 3; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - ref QuestStep reference7 = ref span10[index2]; + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestStep reference7 = ref span3[0]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1042363u, new Vector3(227.58826f, 4.933288f, 644.4037f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - 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); + 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); obj6.CompletionQuestVariablesFlags = list11; reference7 = obj6; - index2++; - ref QuestStep reference8 = ref span10[index2]; + ref QuestStep reference8 = ref span3[1]; QuestStep obj7 = new QuestStep(EInteractionType.Interact, 1042364u, new Vector3(198.93188f, 1.7699993f, 707.1183f), 957) { Fly = true @@ -372201,59 +306657,43 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - 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); + 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); obj7.CompletionQuestVariablesFlags = list12; reference8 = obj7; - index2++; - ref QuestStep reference9 = ref span10[index2]; + ref QuestStep reference9 = ref span3[2]; QuestStep obj8 = new QuestStep(EInteractionType.Interact, 1042365u, new Vector3(177.66077f, 5.331657f, 651.27026f), 957) { Fly = true }; - 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); + 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); obj8.CompletionQuestVariablesFlags = list13; reference9 = obj8; obj5.Steps = list10; reference6 = obj5; - num++; - ref QuestSequence reference10 = ref span8[num]; + ref QuestSequence reference10 = ref span2[2]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -372266,16 +306706,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot3.Author = list15; - index = 4; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span7 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span7[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -372283,30 +306720,24 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj10.Steps = list17; reference11 = obj10; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span7[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj11.Steps = list18; reference12 = obj11; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span7[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -372314,27 +306745,22 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.Interact, 1042366u, new Vector3(185.56494f, 1.8742322f, 760.4332f), 957) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.Interact, 1042366u, new Vector3(185.56494f, 1.8742322f, 760.4332f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj12.Steps = list19; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span7[3]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -372347,16 +306773,13 @@ public static class AssemblyQuestLoader num = 1; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); - Span span21 = CollectionsMarshal.AsSpan(list21); - index = 0; - span21[index] = "liza"; + CollectionsMarshal.AsSpan(list21)[0] = "liza"; questRoot4.Author = list21; - index = 3; - List list22 = new List(index); - CollectionsMarshal.SetCount(list22, index); - Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - ref QuestSequence reference15 = ref span22[num]; + num = 3; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); + Span span8 = CollectionsMarshal.AsSpan(list22); + ref QuestSequence reference15 = ref span8[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 @@ -372364,23 +306787,18 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj14.Steps = list23; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span22[num]; + ref QuestSequence reference16 = ref span8[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span24 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference17 = ref span24[num2]; + num2 = 1; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj16 = new QuestStep(EInteractionType.Combat, 2012850u, new Vector3(-399.74066f, 58.91504f, -354.97064f), 957) { Fly = true, @@ -372389,17 +306807,14 @@ public static class AssemblyQuestLoader num3 = 2; List list25 = new List(num3); CollectionsMarshal.SetCount(list25, num3); - Span span25 = CollectionsMarshal.AsSpan(list25); - index3 = 0; - span25[index3] = 14674u; - index3++; - span25[index3] = 14675u; + Span span9 = CollectionsMarshal.AsSpan(list25); + span9[0] = 14674u; + span9[1] = 14675u; obj16.KillEnemyDataIds = list25; reference17 = obj16; obj15.Steps = list24; reference16 = obj15; - num++; - ref QuestSequence reference18 = ref span22[num]; + ref QuestSequence reference18 = ref span8[2]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -372407,9 +306822,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -372423,30 +306836,24 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "liza"; + CollectionsMarshal.AsSpan(list27)[0] = "liza"; questRoot5.Author = list27; - index = 5; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference19 = ref span28[num]; + num = 5; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span10 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference19 = ref span10[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj18.Steps = list29; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span28[num]; + ref QuestSequence reference20 = ref span10[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -372454,34 +306861,28 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj19.Steps = list30; reference20 = obj19; - num++; - ref QuestSequence reference21 = ref span28[num]; + ref QuestSequence reference21 = ref span10[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj20.Steps = list31; reference21 = obj20; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span10[3]; QuestSequence obj21 = new QuestSequence { Sequence = 3 @@ -372489,9 +306890,8 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) + Span span11 = CollectionsMarshal.AsSpan(list32); + span11[0] = new QuestStep(EInteractionType.Interact, 2012851u, new Vector3(427.4204f, 18.44812f, -451.37714f), 957) { SkipConditions = new SkipConditions { @@ -372501,30 +306901,25 @@ public static class AssemblyQuestLoader } } }; - index2++; - span32[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.76804f, 21.84539f, -466.46533f), 957) + span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.76804f, 21.84539f, -466.46533f), 957) { DisableNavmesh = true }; - index2++; - span32[index2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) + span11[2] = new QuestStep(EInteractionType.Interact, 1042367u, new Vector3(507.01135f, 12.589098f, -482.96332f), 957) { DisableNavmesh = true }; obj21.Steps = list32; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span10[4]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -372538,16 +306933,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot6.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference24 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span12 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference24 = ref span12[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -372555,23 +306947,19 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj23.Steps = list36; reference24 = obj23; - num++; - ref QuestSequence reference25 = ref span35[num]; + ref QuestSequence reference25 = ref span12[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num2 = 0; - ref QuestStep reference26 = ref span37[num2]; + num2 = 4; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + Span span13 = CollectionsMarshal.AsSpan(list37); + ref QuestStep reference26 = ref span13[0]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1043108u, new Vector3(336.41565f, 0.9428888f, 624.10913f), 957) { SkipConditions = new SkipConditions @@ -372582,20 +306970,17 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK105_04555_Q1_000_000") }; obj25.DialogueChoices = list38; reference26 = obj25; - num2++; - ref QuestStep reference27 = ref span37[num2]; + ref QuestStep reference27 = ref span13[1]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2012853u, new Vector3(392.66028f, 57.602783f, 630.64f), 957) { Fly = true @@ -372603,67 +306988,46 @@ public static class AssemblyQuestLoader num3 = 6; List list39 = new List(num3); CollectionsMarshal.SetCount(list39, num3); - 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); + 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); obj26.CompletionQuestVariablesFlags = list39; reference27 = obj26; - num2++; - ref QuestStep reference28 = ref span37[num2]; + ref QuestStep reference28 = ref span13[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2012854u, new Vector3(422.99524f, 62.91284f, 584.161f), 957); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list40; reference28 = questStep2; - num2++; - ref QuestStep reference29 = ref span37[num2]; + ref QuestStep reference29 = ref span13[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list41; reference29 = questStep3; obj24.Steps = list37; reference25 = obj24; - num++; - ref QuestSequence reference30 = ref span35[num]; + ref QuestSequence reference30 = ref span12[2]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -372671,9 +307035,8 @@ public static class AssemblyQuestLoader num2 = 3; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - ref QuestStep reference31 = ref span42[index2]; + Span span17 = CollectionsMarshal.AsSpan(list42); + ref QuestStep reference31 = ref span17[0]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1043107u, new Vector3(376.51636f, 55.220497f, 601.0985f), 957) { SkipConditions = new SkipConditions @@ -372684,20 +307047,17 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list43 = new List(index3); - CollectionsMarshal.SetCount(list43, index3); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span43[num3] = new DialogueChoice + num3 = 1; + List list43 = new List(num3); + CollectionsMarshal.SetCount(list43, num3); + CollectionsMarshal.AsSpan(list43)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANARK105_04555_Q2_000_000") }; obj28.DialogueChoices = list43; reference31 = obj28; - index2++; - span42[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(236.26051f, 2.3393192f, 644.57275f), 957) + span17[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(236.26051f, 2.3393192f, 644.57275f), 957) { SkipConditions = new SkipConditions { @@ -372707,8 +307067,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span42[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span17[2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -372721,30 +307080,24 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot7.Author = list44; - index = 3; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference32 = ref span45[num]; + num = 3; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span18 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference32 = ref span18[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj29.Steps = list46; reference32 = obj29; - num++; - ref QuestSequence reference33 = ref span45[num]; + ref QuestSequence reference33 = ref span18[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 @@ -372752,9 +307105,8 @@ public static class AssemblyQuestLoader num2 = 3; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - ref QuestStep reference34 = ref span47[index2]; + Span span19 = CollectionsMarshal.AsSpan(list47); + ref QuestStep reference34 = ref span19[0]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1042368u, new Vector3(-485.771f, 39.62969f, 114.213745f), 957) { Fly = true, @@ -372763,33 +307115,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list48 = new List>(num3); CollectionsMarshal.SetCount(list48, num3); - Span> span48 = CollectionsMarshal.AsSpan(list48); - index3 = 0; - span48[index3] = null; - index3++; - span48[index3] = null; - index3++; - ref List reference35 = ref span48[index3]; + Span> span20 = CollectionsMarshal.AsSpan(list48); + span20[0] = null; + span20[1] = null; + ref List reference35 = ref span20[2]; int num4 = 1; List list49 = new List(num4); CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - int index4 = 0; - span49[index4] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list49)[0] = new QuestWorkValue((byte)3, 0, EQuestWorkMode.Bitwise); reference35 = list49; - index3++; - span48[index3] = null; - index3++; - span48[index3] = null; - index3++; - span48[index3] = null; + span20[3] = null; + span20[4] = null; + span20[5] = null; obj31.RequiredQuestVariables = list48; - index3 = 1; - List list50 = new List(index3); - CollectionsMarshal.SetCount(list50, index3); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = new DialogueChoice + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q1_000_000"), @@ -372797,8 +307139,7 @@ public static class AssemblyQuestLoader }; obj31.DialogueChoices = list50; reference34 = obj31; - index2++; - ref QuestStep reference36 = ref span47[index2]; + ref QuestStep reference36 = ref span19[1]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 1042369u, new Vector3(-561.2726f, 11.802609f, 128.95398f), 957) { Fly = true @@ -372806,33 +307147,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list51 = new List>(num3); CollectionsMarshal.SetCount(list51, num3); - 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); + 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); reference37 = list52; - index3++; - span51[index3] = null; - index3++; - span51[index3] = null; - index3++; - span51[index3] = null; + span21[3] = null; + span21[4] = null; + span21[5] = null; obj32.RequiredQuestVariables = list51; - index3 = 1; - List list53 = new List(index3); - CollectionsMarshal.SetCount(list53, index3); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - span53[num3] = new DialogueChoice + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q2_000_000"), @@ -372840,39 +307171,28 @@ public static class AssemblyQuestLoader }; obj32.DialogueChoices = list53; reference36 = obj32; - index2++; - ref QuestStep reference38 = ref span47[index2]; + ref QuestStep reference38 = ref span19[2]; 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> span54 = CollectionsMarshal.AsSpan(list54); - index3 = 0; - span54[index3] = null; - index3++; - span54[index3] = null; - index3++; - ref List reference39 = ref span54[index3]; + Span> span22 = CollectionsMarshal.AsSpan(list54); + span22[0] = null; + span22[1] = null; + ref List reference39 = ref span22[2]; num4 = 1; List list55 = new List(num4); CollectionsMarshal.SetCount(list55, num4); - Span span55 = CollectionsMarshal.AsSpan(list55); - index4 = 0; - span55[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list55)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference39 = list55; - index3++; - span54[index3] = null; - index3++; - span54[index3] = null; - index3++; - span54[index3] = null; + span22[3] = null; + span22[4] = null; + span22[5] = null; questStep4.RequiredQuestVariables = list54; - index3 = 1; - List list56 = new List(index3); - CollectionsMarshal.SetCount(list56, index3); - Span span56 = CollectionsMarshal.AsSpan(list56); - num3 = 0; - span56[num3] = new DialogueChoice + num3 = 1; + List list56 = new List(num3); + CollectionsMarshal.SetCount(list56, num3); + CollectionsMarshal.AsSpan(list56)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK106_04556_Q3_000_000"), @@ -372882,18 +307202,15 @@ public static class AssemblyQuestLoader reference38 = questStep4; obj30.Steps = list47; reference33 = obj30; - num++; - ref QuestSequence reference40 = ref span45[num]; + ref QuestSequence reference40 = ref span18[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -372906,16 +307223,13 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "liza"; + CollectionsMarshal.AsSpan(list58)[0] = "liza"; questRoot8.Author = list58; - index = 4; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference41 = ref span59[num]; + num = 4; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span23 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference41 = ref span23[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -372923,27 +307237,21 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj34.Steps = list60; reference41 = obj34; - num++; - ref QuestSequence reference42 = ref span59[num]; + ref QuestSequence reference42 = ref span23[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj35.Steps = list61; reference42 = obj35; - num++; - ref QuestSequence reference43 = ref span59[num]; + ref QuestSequence reference43 = ref span23[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -372951,9 +307259,8 @@ public static class AssemblyQuestLoader num2 = 6; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - ref QuestStep reference44 = ref span62[index2]; + Span span24 = CollectionsMarshal.AsSpan(list62); + ref QuestStep reference44 = ref span24[0]; QuestStep obj37 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.3157f, 3.1168795f, -241.61731f), 957) { Fly = true, @@ -372964,50 +307271,36 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list63; skipConditions.StepIf = skipStepConditions; obj37.SkipConditions = skipConditions; reference44 = obj37; - index2++; - ref QuestStep reference45 = ref span62[index2]; + ref QuestStep reference45 = ref span24[1]; QuestStep obj38 = new QuestStep(EInteractionType.Action, 1042372u, new Vector3(441.062f, 3.5405273f, -238.78845f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - 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); + 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); obj38.CompletionQuestVariablesFlags = list64; reference45 = obj38; - index2++; - ref QuestStep reference46 = ref span62[index2]; + ref QuestStep reference46 = ref span24[2]; QuestStep obj39 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(378.90213f, 3.1168797f, -226.82733f), 957) { Fly = true, @@ -373018,50 +307311,36 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list65; skipConditions2.StepIf = skipStepConditions2; obj39.SkipConditions = skipConditions2; reference46 = obj39; - index2++; - ref QuestStep reference47 = ref span62[index2]; + ref QuestStep reference47 = ref span24[3]; QuestStep obj40 = new QuestStep(EInteractionType.Action, 1042371u, new Vector3(376.7605f, 3.3540652f, -225.33002f), 957) { StopDistance = 5f, Action = EAction.BlueGulal }; - 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); + 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); obj40.CompletionQuestVariablesFlags = list66; reference47 = obj40; - index2++; - ref QuestStep reference48 = ref span62[index2]; + ref QuestStep reference48 = ref span24[4]; QuestStep obj41 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(404.06558f, 13.027411f, -307.05457f), 957) { Fly = true, @@ -373072,69 +307351,53 @@ public static class AssemblyQuestLoader num3 = 6; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list67; skipConditions3.StepIf = skipStepConditions3; obj41.SkipConditions = skipConditions3; reference48 = obj41; - index2++; - ref QuestStep reference49 = ref span62[index2]; + ref QuestStep reference49 = ref span24[5]; QuestStep obj42 = new QuestStep(EInteractionType.Action, 1042373u, new Vector3(406.1189f, 13.0274105f, -311.0857f), 957) { StopDistance = 5f, Action = EAction.RedGulal }; - 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); + 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); obj42.CompletionQuestVariablesFlags = list68; reference49 = obj42; obj36.Steps = list62; reference43 = obj36; - num++; - ref QuestSequence reference50 = ref span59[num]; + ref QuestSequence reference50 = ref span23[3]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 10000f, Mount = false, Comment = "Unmount from Quest Mount" }; - num2++; - span69[num2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span31[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -373148,16 +307411,13 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - span70[index] = "liza"; + CollectionsMarshal.AsSpan(list70)[0] = "liza"; questRoot9.Author = list70; - index = 4; - List list71 = new List(index); - CollectionsMarshal.SetCount(list71, index); - Span span71 = CollectionsMarshal.AsSpan(list71); - num = 0; - ref QuestSequence reference51 = ref span71[num]; + num = 4; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + Span span32 = CollectionsMarshal.AsSpan(list71); + ref QuestSequence reference51 = ref span32[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -373165,23 +307425,18 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj44.Steps = list72; reference51 = obj44; - num++; - ref QuestSequence reference52 = ref span71[num]; + ref QuestSequence reference52 = ref span32[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -373193,8 +307448,7 @@ public static class AssemblyQuestLoader }; obj45.Steps = list73; reference52 = obj45; - num++; - ref QuestSequence reference53 = ref span71[num]; + ref QuestSequence reference53 = ref span32[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -373202,23 +307456,18 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 2012908u, new Vector3(208.23987f, 65.62903f, -642.1149f), 957); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2012908u, new Vector3(208.23987f, 65.62903f, -642.1149f), 957); obj46.Steps = list74; reference53 = obj46; - num++; - ref QuestSequence reference54 = ref span71[num]; + ref QuestSequence reference54 = ref span32[3]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -373232,16 +307481,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot10.Author = list76; - index = 4; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference55 = ref span77[num]; + num = 4; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span33 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference55 = ref span33[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -373249,23 +307495,18 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj48.Steps = list78; reference55 = obj48; - num++; - ref QuestSequence reference56 = ref span77[num]; + ref QuestSequence reference56 = ref span33[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list79 = new List(index2); - CollectionsMarshal.SetCount(list79, index2); - Span span79 = CollectionsMarshal.AsSpan(list79); - num2 = 0; - ref QuestStep reference57 = ref span79[num2]; + num2 = 1; + List list79 = new List(num2); + CollectionsMarshal.SetCount(list79, num2); + ref QuestStep reference57 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) { StopDistance = 0.25f, @@ -373276,15 +307517,12 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - index3 = 0; - span80[index3] = 14676u; + CollectionsMarshal.AsSpan(list80)[0] = 14676u; obj50.KillEnemyDataIds = list80; reference57 = obj50; obj49.Steps = list79; reference56 = obj49; - num++; - ref QuestSequence reference58 = ref span77[num]; + ref QuestSequence reference58 = ref span33[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -373292,26 +307530,21 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 1042378u, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.Interact, 1042378u, new Vector3(-605.46277f, 2.1626635f, -336.87347f), 957) { StopDistance = 5f }; obj51.Steps = list81; reference58 = obj51; - num++; - ref QuestSequence reference59 = ref span77[num]; + ref QuestSequence reference59 = ref span33[3]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -373325,16 +307558,13 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "liza"; + CollectionsMarshal.AsSpan(list83)[0] = "liza"; questRoot11.Author = list83; - index = 3; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference60 = ref span84[num]; + num = 3; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span34 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference60 = ref span34[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -373342,62 +307572,48 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj53.Steps = list85; reference60 = obj53; - num++; - ref QuestSequence reference61 = ref span84[num]; + ref QuestSequence reference61 = ref span34[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference62 = ref span86[num2]; + ref QuestStep reference62 = ref span35[1]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2012880u, new Vector3(-669.4896f, -36.42328f, 522.6367f), 957) { DisableNavmesh = true, Fly = true }; - 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); + 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); reference63 = list88; - num3++; - span87[num3] = null; - num3++; - span87[num3] = null; - num3++; - span87[num3] = null; - num3++; - span87[num3] = null; + span36[2] = null; + span36[3] = null; + span36[4] = null; + span36[5] = null; obj55.RequiredQuestVariables = list87; reference62 = obj55; - num2++; - ref QuestStep reference64 = ref span86[num2]; + ref QuestStep reference64 = ref span35[2]; QuestStep obj56 = new QuestStep(EInteractionType.Interact, 2012881u, new Vector3(-652.4605f, -31.784546f, 554.46704f), 957) { DisableNavmesh = true, @@ -373406,65 +307622,47 @@ public static class AssemblyQuestLoader num3 = 6; List> list89 = new List>(num3); CollectionsMarshal.SetCount(list89, num3); - Span> span89 = CollectionsMarshal.AsSpan(list89); - index3 = 0; - span89[index3] = null; - index3++; - ref List reference65 = ref span89[index3]; + Span> span38 = CollectionsMarshal.AsSpan(list89); + span38[0] = null; + ref List reference65 = ref span38[1]; num4 = 2; List list90 = new List(num4); CollectionsMarshal.SetCount(list90, num4); - 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); + Span span39 = CollectionsMarshal.AsSpan(list90); + span39[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span39[1] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference65 = list90; - index3++; - span89[index3] = null; - index3++; - span89[index3] = null; - index3++; - span89[index3] = null; - index3++; - span89[index3] = null; + span38[2] = null; + span38[3] = null; + span38[4] = null; + span38[5] = null; obj56.RequiredQuestVariables = list89; reference64 = obj56; - num2++; - ref QuestStep reference66 = ref span86[num2]; + ref QuestStep reference66 = ref span35[3]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 2012882u, new Vector3(-729.9458f, -38.864807f, 600.5187f), 957) { Fly = true }; - 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); + 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); reference67 = list92; - num3++; - span91[num3] = null; - num3++; - span91[num3] = null; - num3++; - span91[num3] = null; - num3++; - span91[num3] = null; + span40[2] = null; + span40[3] = null; + span40[4] = null; + span40[5] = null; obj57.RequiredQuestVariables = list91; reference66 = obj57; - num2++; - ref QuestStep reference68 = ref span86[num2]; + ref QuestStep reference68 = ref span35[4]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 2012883u, new Vector3(-746.0593f, -38.92578f, 597.0397f), 957) { Fly = true @@ -373472,34 +307670,25 @@ public static class AssemblyQuestLoader num3 = 6; List> list93 = new List>(num3); CollectionsMarshal.SetCount(list93, num3); - Span> span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = null; - index3++; - ref List reference69 = ref span93[index3]; + Span> span42 = CollectionsMarshal.AsSpan(list93); + span42[0] = null; + ref List reference69 = ref span42[1]; num4 = 2; List list94 = new List(num4); CollectionsMarshal.SetCount(list94, num4); - 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); + Span span43 = CollectionsMarshal.AsSpan(list94); + span43[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + span43[1] = new QuestWorkValue(null, (byte)4, EQuestWorkMode.Bitwise); reference69 = list94; - index3++; - span93[index3] = null; - index3++; - span93[index3] = null; - index3++; - span93[index3] = null; - index3++; - span93[index3] = null; + span42[2] = null; + span42[3] = null; + span42[4] = null; + span42[5] = null; obj58.RequiredQuestVariables = list93; reference68 = obj58; obj54.Steps = list86; reference61 = obj54; - num++; - ref QuestSequence reference70 = ref span84[num]; + ref QuestSequence reference70 = ref span34[2]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -373507,9 +307696,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -373523,30 +307710,24 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot12.Author = list96; - index = 3; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference71 = ref span97[num]; + num = 3; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span44 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference71 = ref span44[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj60.Steps = list98; reference71 = obj60; - num++; - ref QuestSequence reference72 = ref span97[num]; + ref QuestSequence reference72 = ref span44[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -373554,42 +307735,32 @@ public static class AssemblyQuestLoader num2 = 3; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - ref QuestStep reference73 = ref span99[index2]; + Span span45 = CollectionsMarshal.AsSpan(list99); + ref QuestStep reference73 = ref span45[0]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1042384u, new Vector3(562.7068f, 12.048153f, 157.85449f), 957) { Fly = true }; - 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); + 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); reference74 = list101; - num3++; - span100[num3] = null; - num3++; - span100[num3] = null; - num3++; - span100[num3] = null; + span46[3] = null; + span46[4] = null; + span46[5] = null; obj62.RequiredQuestVariables = list100; reference73 = obj62; - index2++; - ref QuestStep reference75 = ref span99[index2]; + ref QuestStep reference75 = ref span45[1]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 1042385u, new Vector3(614.43494f, 38.455334f, 193.77429f), 957) { Fly = true @@ -373597,77 +307768,57 @@ public static class AssemblyQuestLoader num3 = 6; List> list102 = new List>(num3); CollectionsMarshal.SetCount(list102, num3); - Span> span102 = CollectionsMarshal.AsSpan(list102); - index3 = 0; - span102[index3] = null; - index3++; - span102[index3] = null; - index3++; - ref List reference76 = ref span102[index3]; + Span> span48 = CollectionsMarshal.AsSpan(list102); + span48[0] = null; + span48[1] = null; + ref List reference76 = ref span48[2]; num4 = 2; List list103 = new List(num4); CollectionsMarshal.SetCount(list103, num4); - 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); + Span span49 = CollectionsMarshal.AsSpan(list103); + span49[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + span49[1] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference76 = list103; - index3++; - span102[index3] = null; - index3++; - span102[index3] = null; - index3++; - span102[index3] = null; + span48[3] = null; + span48[4] = null; + span48[5] = null; obj63.RequiredQuestVariables = list102; reference75 = obj63; - index2++; - ref QuestStep reference77 = ref span99[index2]; + ref QuestStep reference77 = ref span45[2]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1042386u, new Vector3(607.35486f, 18.607574f, 212.14612f), 957) { Fly = true }; - 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); + 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); reference78 = list105; - num3++; - span104[num3] = null; - num3++; - span104[num3] = null; - num3++; - span104[num3] = null; + span50[3] = null; + span50[4] = null; + span50[5] = null; obj64.RequiredQuestVariables = list104; reference77 = obj64; obj61.Steps = list99; reference72 = obj61; - num++; - ref QuestSequence reference79 = ref span97[num]; + ref QuestSequence reference79 = ref span44[2]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -373680,16 +307831,13 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot13.Author = list107; - index = 3; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference80 = ref span108[num]; + num = 3; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span52 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference80 = ref span52[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -373697,23 +307845,19 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj66.Steps = list109; reference80 = obj66; - num++; - ref QuestSequence reference81 = ref span108[num]; + ref QuestSequence reference81 = ref span52[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference82 = ref span110[num2]; + num2 = 2; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span53 = CollectionsMarshal.AsSpan(list110); + ref QuestStep reference82 = ref span53[0]; QuestStep obj68 = new QuestStep(EInteractionType.Interact, 1042390u, new Vector3(376.089f, 3.1168795f, -241.77924f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand @@ -373721,50 +307865,36 @@ public static class AssemblyQuestLoader num3 = 6; 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)4, 0, EQuestWorkMode.Bitwise); + 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); obj68.CompletionQuestVariablesFlags = list111; reference82 = obj68; - num2++; - ref QuestStep reference83 = ref span110[num2]; + ref QuestStep reference83 = ref span53[1]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1042389u, new Vector3(-416.31195f, 10.9610405f, 11.48999f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; - 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); + 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); obj69.CompletionQuestVariablesFlags = list112; reference83 = obj69; obj67.Steps = list110; reference81 = obj67; - num++; - ref QuestSequence reference84 = ref span108[num]; + ref QuestSequence reference84 = ref span52[2]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -373772,9 +307902,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -373787,30 +307915,24 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot14.Author = list114; - index = 4; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference85 = ref span115[num]; + num = 4; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span56 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference85 = ref span56[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj71.Steps = list116; reference85 = obj71; - num++; - ref QuestSequence reference86 = ref span115[num]; + ref QuestSequence reference86 = ref span56[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -373818,9 +307940,8 @@ public static class AssemblyQuestLoader num2 = 3; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - ref QuestStep reference87 = ref span117[index2]; + Span span57 = CollectionsMarshal.AsSpan(list117); + ref QuestStep reference87 = ref span57[0]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2012884u, new Vector3(111.46704f, 5.935669f, -294.36182f), 957) { Fly = true, @@ -373830,62 +307951,44 @@ public static class AssemblyQuestLoader num3 = 6; List> list118 = new List>(num3); CollectionsMarshal.SetCount(list118, num3); - Span> span118 = CollectionsMarshal.AsSpan(list118); - index3 = 0; - span118[index3] = null; - index3++; - ref List reference88 = ref span118[index3]; + Span> span58 = CollectionsMarshal.AsSpan(list118); + span58[0] = null; + ref List reference88 = ref span58[1]; num4 = 1; List list119 = new List(num4); CollectionsMarshal.SetCount(list119, num4); - Span span119 = CollectionsMarshal.AsSpan(list119); - index4 = 0; - span119[index4] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list119)[0] = new QuestWorkValue((byte)1, (byte)3, EQuestWorkMode.Bitwise); reference88 = list119; - index3++; - span118[index3] = null; - index3++; - span118[index3] = null; - index3++; - span118[index3] = null; - index3++; - span118[index3] = null; + span58[2] = null; + span58[3] = null; + span58[4] = null; + span58[5] = null; obj73.RequiredQuestVariables = list118; reference87 = obj73; - index2++; - ref QuestStep reference89 = ref span117[index2]; + ref QuestStep reference89 = ref span57[1]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2012885u, new Vector3(108.17114f, 8.224609f, -373.22046f), 957) { Fly = true, ItemId = 2003420u }; - 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); + 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); reference90 = list121; - num3++; - span120[num3] = null; - num3++; - span120[num3] = null; - num3++; - span120[num3] = null; - num3++; - span120[num3] = null; + span59[2] = null; + span59[3] = null; + span59[4] = null; + span59[5] = null; obj74.RequiredQuestVariables = list120; reference89 = obj74; - index2++; - ref QuestStep reference91 = ref span117[index2]; + ref QuestStep reference91 = ref span57[2]; QuestStep obj75 = new QuestStep(EInteractionType.UseItem, 2012886u, new Vector3(135.91211f, 6.4850464f, -327.5349f), 957) { Fly = true, @@ -373894,128 +307997,91 @@ public static class AssemblyQuestLoader num3 = 6; List> list122 = new List>(num3); CollectionsMarshal.SetCount(list122, num3); - Span> span122 = CollectionsMarshal.AsSpan(list122); - index3 = 0; - span122[index3] = null; - index3++; - ref List reference92 = ref span122[index3]; + Span> span60 = CollectionsMarshal.AsSpan(list122); + span60[0] = null; + ref List reference92 = ref span60[1]; num4 = 1; List list123 = new List(num4); CollectionsMarshal.SetCount(list123, num4); - Span span123 = CollectionsMarshal.AsSpan(list123); - index4 = 0; - span123[index4] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list123)[0] = new QuestWorkValue((byte)1, (byte)1, EQuestWorkMode.Bitwise); reference92 = list123; - index3++; - span122[index3] = null; - index3++; - span122[index3] = null; - index3++; - span122[index3] = null; - index3++; - span122[index3] = null; + span60[2] = null; + span60[3] = null; + span60[4] = null; + span60[5] = null; obj75.RequiredQuestVariables = list122; reference91 = obj75; obj72.Steps = list117; reference86 = obj72; - num++; - ref QuestSequence reference93 = ref span115[num]; + ref QuestSequence reference93 = ref span56[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list124 = new List(index2); - CollectionsMarshal.SetCount(list124, index2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num2 = 0; - ref QuestStep reference94 = ref span124[num2]; + num2 = 3; + List list124 = new List(num2); + CollectionsMarshal.SetCount(list124, num2); + Span span61 = CollectionsMarshal.AsSpan(list124); + ref QuestStep reference94 = ref span61[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2012884u, new Vector3(111.46704f, 5.935669f, -294.36182f), 957); - 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); + 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); reference95 = list126; - num3++; - span125[num3] = null; - num3++; - span125[num3] = null; - num3++; - span125[num3] = null; + span62[3] = null; + span62[4] = null; + span62[5] = null; questStep5.RequiredQuestVariables = list125; reference94 = questStep5; - num2++; - ref QuestStep reference96 = ref span124[num2]; + ref QuestStep reference96 = ref span61[1]; 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> span127 = CollectionsMarshal.AsSpan(list127); - index3 = 0; - span127[index3] = null; - index3++; - span127[index3] = null; - index3++; - ref List reference97 = ref span127[index3]; + Span> span63 = CollectionsMarshal.AsSpan(list127); + span63[0] = null; + span63[1] = null; + ref List reference97 = ref span63[2]; num4 = 1; List list128 = new List(num4); CollectionsMarshal.SetCount(list128, num4); - Span span128 = CollectionsMarshal.AsSpan(list128); - index4 = 0; - span128[index4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list128)[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference97 = list128; - index3++; - span127[index3] = null; - index3++; - span127[index3] = null; - index3++; - span127[index3] = null; + span63[3] = null; + span63[4] = null; + span63[5] = null; questStep6.RequiredQuestVariables = list127; reference96 = questStep6; - num2++; - ref QuestStep reference98 = ref span124[num2]; + ref QuestStep reference98 = ref span61[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2012886u, new Vector3(135.91211f, 6.4850464f, -327.5349f), 957); - 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); + 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); reference99 = list130; - num3++; - span129[num3] = null; - num3++; - span129[num3] = null; - num3++; - span129[num3] = null; + span64[3] = null; + span64[4] = null; + span64[5] = null; questStep7.RequiredQuestVariables = list129; reference98 = questStep7; obj76.Steps = list124; reference93 = obj76; - num++; - ref QuestSequence reference100 = ref span115[num]; + ref QuestSequence reference100 = ref span56[3]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -374023,9 +308089,7 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -374038,30 +308102,24 @@ public static class AssemblyQuestLoader num = 1; List list132 = new List(num); CollectionsMarshal.SetCount(list132, num); - Span span132 = CollectionsMarshal.AsSpan(list132); - index = 0; - span132[index] = "liza"; + CollectionsMarshal.AsSpan(list132)[0] = "liza"; questRoot15.Author = list132; - index = 4; - List list133 = new List(index); - CollectionsMarshal.SetCount(list133, index); - Span span133 = CollectionsMarshal.AsSpan(list133); - num = 0; - ref QuestSequence reference101 = ref span133[num]; + num = 4; + List list133 = new List(num); + CollectionsMarshal.SetCount(list133, num); + Span span65 = CollectionsMarshal.AsSpan(list133); + ref QuestSequence reference101 = ref span65[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj78.Steps = list134; reference101 = obj78; - num++; - ref QuestSequence reference102 = ref span133[num]; + ref QuestSequence reference102 = ref span65[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -374069,23 +308127,19 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.Interact, 1042302u, new Vector3(-102.43384f, 40.00001f, 331.89893f), 957); obj79.Steps = list135; reference102 = obj79; - num++; - ref QuestSequence reference103 = ref span133[num]; + ref QuestSequence reference103 = ref span65[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - index2 = 6; - List list136 = new List(index2); - CollectionsMarshal.SetCount(list136, index2); - Span span136 = CollectionsMarshal.AsSpan(list136); - num2 = 0; - ref QuestStep reference104 = ref span136[num2]; + num2 = 6; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + Span span66 = CollectionsMarshal.AsSpan(list136); + ref QuestStep reference104 = ref span66[0]; QuestStep obj81 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(86.44138f, 38.836067f, 375.43958f), 957) { Fly = true, @@ -374096,50 +308150,36 @@ public static class AssemblyQuestLoader num3 = 6; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list137; skipConditions4.StepIf = skipStepConditions4; obj81.SkipConditions = skipConditions4; reference104 = obj81; - num2++; - ref QuestStep reference105 = ref span136[num2]; + ref QuestStep reference105 = ref span66[1]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 2012887u, new Vector3(90.71484f, 38.70359f, 377.7981f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - 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); + 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); obj82.CompletionQuestVariablesFlags = list138; reference105 = obj82; - num2++; - ref QuestStep reference106 = ref span136[num2]; + ref QuestStep reference106 = ref span66[2]; QuestStep obj83 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.42284f, 50.283375f, 165.20433f), 957) { Fly = true, @@ -374150,50 +308190,36 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list139; skipConditions5.StepIf = skipStepConditions5; obj83.SkipConditions = skipConditions5; reference106 = obj83; - num2++; - ref QuestStep reference107 = ref span136[num2]; + ref QuestStep reference107 = ref span66[3]; QuestStep obj84 = new QuestStep(EInteractionType.Action, 2012888u, new Vector3(-74.2962f, 50.095337f, 160.41797f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - 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); + 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); obj84.CompletionQuestVariablesFlags = list140; reference107 = obj84; - num2++; - ref QuestStep reference108 = ref span136[num2]; + ref QuestStep reference108 = ref span66[4]; QuestStep obj85 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-195.75089f, 35.536575f, 98.20429f), 957) { Fly = true, @@ -374204,52 +308230,38 @@ public static class AssemblyQuestLoader num3 = 6; List list141 = new List(num3); CollectionsMarshal.SetCount(list141, num3); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list141; skipConditions6.StepIf = skipStepConditions6; obj85.SkipConditions = skipConditions6; reference108 = obj85; - num2++; - ref QuestStep reference109 = ref span136[num2]; + ref QuestStep reference109 = ref span66[5]; QuestStep obj86 = new QuestStep(EInteractionType.Action, 2012889u, new Vector3(-197.9859f, 36.209595f, 94.102295f), 957) { StopDistance = 5f, Action = EAction.YellowGulal }; - 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); + 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); obj86.CompletionQuestVariablesFlags = list142; reference109 = obj86; obj80.Steps = list136; reference103 = obj80; - num++; - ref QuestSequence reference110 = ref span133[num]; + ref QuestSequence reference110 = ref span65[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -374257,14 +308269,12 @@ public static class AssemblyQuestLoader num2 = 2; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.59158f, 39.9961f, 320.7581f), 957) + Span span73 = CollectionsMarshal.AsSpan(list143); + span73[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.59158f, 39.9961f, 320.7581f), 957) { Fly = true }; - index2++; - span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span73[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Mount = false, Comment = "TODO Verify this properly unmounts" @@ -374278,30 +308288,24 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - span144[index] = "liza"; + CollectionsMarshal.AsSpan(list144)[0] = "liza"; questRoot16.Author = list144; - index = 3; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - ref QuestSequence reference111 = ref span145[num]; + num = 3; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span74 = CollectionsMarshal.AsSpan(list145); + ref QuestSequence reference111 = ref span74[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj88.Steps = list146; reference111 = obj88; - num++; - ref QuestSequence reference112 = ref span145[num]; + ref QuestSequence reference112 = ref span74[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -374309,9 +308313,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - ref QuestStep reference113 = ref span147[index2]; + ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list147)[0]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, 2012855u, new Vector3(-255.23767f, 69.13855f, -527.8248f), 957) { Fly = true, @@ -374320,25 +308322,20 @@ public static class AssemblyQuestLoader num3 = 1; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - Span span148 = CollectionsMarshal.AsSpan(list148); - index3 = 0; - span148[index3] = 14677u; + CollectionsMarshal.AsSpan(list148)[0] = 14677u; obj90.KillEnemyDataIds = list148; reference113 = obj90; obj89.Steps = list147; reference112 = obj89; - num++; - ref QuestSequence reference114 = ref span145[num]; + ref QuestSequence reference114 = ref span74[2]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -374352,16 +308349,13 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot17.Author = list150; - index = 5; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference115 = ref span151[num]; + num = 5; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span75 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference115 = ref span75[0]; QuestSequence obj92 = new QuestSequence { Sequence = 0 @@ -374369,31 +308363,25 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj92.Steps = list152; reference115 = obj92; - num++; - ref QuestSequence reference116 = ref span151[num]; + ref QuestSequence reference116 = ref span75[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj93.Steps = list153; reference116 = obj93; - num++; - ref QuestSequence reference117 = ref span151[num]; + ref QuestSequence reference117 = ref span75[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 @@ -374401,34 +308389,28 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.UseItem, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.UseItem, 1042470u, new Vector3(-579.553f, -0.058757372f, -31.23523f), 957) { StopDistance = 4f, ItemId = 2003401u }; obj94.Steps = list154; reference117 = obj94; - num++; - ref QuestSequence reference118 = ref span151[num]; + ref QuestSequence reference118 = ref span75[3]; QuestSequence obj95 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f }; obj95.Steps = list155; reference118 = obj95; - num++; - ref QuestSequence reference119 = ref span151[num]; + ref QuestSequence reference119 = ref span75[4]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -374436,9 +308418,7 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -374451,30 +308431,24 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; questRoot18.Author = list157; - index = 3; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference120 = ref span158[num]; + num = 3; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span76 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference120 = ref span76[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj97.Steps = list159; reference120 = obj97; - num++; - ref QuestSequence reference121 = ref span158[num]; + ref QuestSequence reference121 = ref span76[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -374482,87 +308456,63 @@ public static class AssemblyQuestLoader num2 = 3; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - ref QuestStep reference122 = ref span160[index2]; + Span span77 = CollectionsMarshal.AsSpan(list160); + ref QuestStep reference122 = ref span77[0]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 2012858u, new Vector3(280.78125f, 0.045776367f, 556.7252f), 957) { Fly = true }; - 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); + 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); obj99.CompletionQuestVariablesFlags = list161; reference122 = obj99; - index2++; - ref QuestStep reference123 = ref span160[index2]; + ref QuestStep reference123 = ref span77[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list162; reference123 = questStep8; - index2++; - ref QuestStep reference124 = ref span160[index2]; + ref QuestStep reference124 = ref span77[2]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2012856u, new Vector3(281.94092f, 0.015197754f, 510.64307f), 957); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list163; reference124 = questStep9; obj98.Steps = list160; reference121 = obj98; - num++; - ref QuestSequence reference125 = ref span158[num]; + ref QuestSequence reference125 = ref span76[2]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -374575,16 +308525,13 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot19.Author = list165; - index = 4; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference126 = ref span166[num]; + num = 4; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span81 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference126 = ref span81[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -374592,27 +308539,21 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj101.Steps = list167; reference126 = obj101; - num++; - ref QuestSequence reference127 = ref span166[num]; + ref QuestSequence reference127 = ref span81[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj102.Steps = list168; reference127 = obj102; - num++; - ref QuestSequence reference128 = ref span166[num]; + ref QuestSequence reference128 = ref span81[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 @@ -374620,27 +308561,22 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1042458u, new Vector3(416.5254f, 8.834262f, -344.38086f), 957) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1042458u, new Vector3(416.5254f, 8.834262f, -344.38086f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj103.Steps = list169; reference128 = obj103; - num++; - ref QuestSequence reference129 = ref span166[num]; + ref QuestSequence reference129 = ref span81[3]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -374654,16 +308590,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot20.Author = list171; - index = 4; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference130 = ref span172[num]; + num = 4; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span82 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference130 = ref span82[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -374671,23 +308604,18 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj105.Steps = list173; reference130 = obj105; - num++; - ref QuestSequence reference131 = ref span172[num]; + ref QuestSequence reference131 = ref span82[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -374695,8 +308623,7 @@ public static class AssemblyQuestLoader }; obj106.Steps = list174; reference131 = obj106; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span82[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 @@ -374704,9 +308631,7 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - ref QuestStep reference133 = ref span175[index2]; + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list175)[0]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2012894u, new Vector3(257.09924f, 6.6071167f, -468.0705f), 957) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -374714,25 +308639,20 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span176 = CollectionsMarshal.AsSpan(list176); - index3 = 0; - span176[index3] = 14678u; + CollectionsMarshal.AsSpan(list176)[0] = 14678u; obj108.KillEnemyDataIds = list176; reference133 = obj108; obj107.Steps = list175; reference132 = obj107; - num++; - ref QuestSequence reference134 = ref span172[num]; + ref QuestSequence reference134 = ref span82[3]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -374746,16 +308666,13 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "liza"; + CollectionsMarshal.AsSpan(list178)[0] = "liza"; questRoot21.Author = list178; - index = 3; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference135 = ref span179[num]; + num = 3; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span83 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference135 = ref span83[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -374763,51 +308680,40 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj110.Steps = list180; reference135 = obj110; - num++; - ref QuestSequence reference136 = ref span179[num]; + ref QuestSequence reference136 = ref span83[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - index2 = 6; - List list181 = new List(index2); - CollectionsMarshal.SetCount(list181, index2); - Span span181 = CollectionsMarshal.AsSpan(list181); - num2 = 0; - ref QuestStep reference137 = ref span181[num2]; + num2 = 6; + List list181 = new List(num2); + CollectionsMarshal.SetCount(list181, num2); + Span span84 = CollectionsMarshal.AsSpan(list181); + ref QuestStep reference137 = ref span84[0]; 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(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list182; skipConditions7.StepIf = skipStepConditions7; obj112.SkipConditions = skipConditions7; reference137 = obj112; - num2++; - ref QuestStep reference138 = ref span181[num2]; + ref QuestStep reference138 = ref span84[1]; QuestStep obj113 = new QuestStep(EInteractionType.UseItem, 2012902u, new Vector3(264.88135f, 8.773865f, 287.98352f), 957) { ItemId = 2003405u @@ -374815,51 +308721,37 @@ public static class AssemblyQuestLoader num3 = 6; List list183 = new List(num3); CollectionsMarshal.SetCount(list183, num3); - 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); + 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); obj113.CompletionQuestVariablesFlags = list183; reference138 = obj113; - num2++; - ref QuestStep reference139 = ref span181[num2]; + ref QuestStep reference139 = ref span84[2]; 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(); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list184; skipConditions8.StepIf = skipStepConditions8; obj114.SkipConditions = skipConditions8; reference139 = obj114; - num2++; - ref QuestStep reference140 = ref span181[num2]; + ref QuestStep reference140 = ref span84[3]; QuestStep obj115 = new QuestStep(EInteractionType.UseItem, 2012901u, new Vector3(340.07776f, 8.2855835f, 360.3723f), 957) { ItemId = 2003405u @@ -374867,51 +308759,37 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - 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); + 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); obj115.CompletionQuestVariablesFlags = list185; reference140 = obj115; - num2++; - ref QuestStep reference141 = ref span181[num2]; + ref QuestStep reference141 = ref span84[4]; 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(); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list186; skipConditions9.StepIf = skipStepConditions9; obj116.SkipConditions = skipConditions9; reference141 = obj116; - num2++; - ref QuestStep reference142 = ref span181[num2]; + ref QuestStep reference142 = ref span84[5]; QuestStep obj117 = new QuestStep(EInteractionType.UseItem, 2012900u, new Vector3(254.8103f, 8.377136f, 375.20398f), 957) { ItemId = 2003405u @@ -374919,25 +308797,18 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - 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); + 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); obj117.CompletionQuestVariablesFlags = list187; reference142 = obj117; obj111.Steps = list181; reference136 = obj111; - num++; - ref QuestSequence reference143 = ref span179[num]; + ref QuestSequence reference143 = ref span83[2]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -374945,9 +308816,7 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -374960,30 +308829,24 @@ public static class AssemblyQuestLoader num = 1; List list189 = new List(num); CollectionsMarshal.SetCount(list189, num); - Span span189 = CollectionsMarshal.AsSpan(list189); - index = 0; - span189[index] = "liza"; + CollectionsMarshal.AsSpan(list189)[0] = "liza"; questRoot22.Author = list189; - index = 4; - List list190 = new List(index); - CollectionsMarshal.SetCount(list190, index); - Span span190 = CollectionsMarshal.AsSpan(list190); - num = 0; - ref QuestSequence reference144 = ref span190[num]; + num = 4; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + Span span91 = CollectionsMarshal.AsSpan(list190); + ref QuestSequence reference144 = ref span91[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj119.Steps = list191; reference144 = obj119; - num++; - ref QuestSequence reference145 = ref span190[num]; + ref QuestSequence reference145 = ref span91[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -374991,15 +308854,13 @@ public static class AssemblyQuestLoader num2 = 2; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.61847f, 7.3659906f, 22.413525f), 957) + Span span92 = CollectionsMarshal.AsSpan(list192); + span92[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(459.61847f, 7.3659906f, 22.413525f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; - index2++; - span192[index2] = new QuestStep(EInteractionType.UseItem, 2012895u, new Vector3(461.8142f, 9.262146f, 24.2771f), 957) + span92[1] = new QuestStep(EInteractionType.UseItem, 2012895u, new Vector3(461.8142f, 9.262146f, 24.2771f), 957) { StopDistance = 5f, ItemId = 2003407u, @@ -375007,22 +308868,18 @@ public static class AssemblyQuestLoader }; obj120.Steps = list192; reference145 = obj120; - num++; - ref QuestSequence reference146 = ref span190[num]; + ref QuestSequence reference146 = ref span91[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj121.Steps = list193; reference146 = obj121; - num++; - ref QuestSequence reference147 = ref span190[num]; + ref QuestSequence reference147 = ref span91[3]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue @@ -375030,9 +308887,7 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -375046,30 +308901,24 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - span195[index] = "liza"; + CollectionsMarshal.AsSpan(list195)[0] = "liza"; questRoot23.Author = list195; - index = 3; - List list196 = new List(index); - CollectionsMarshal.SetCount(list196, index); - Span span196 = CollectionsMarshal.AsSpan(list196); - num = 0; - ref QuestSequence reference148 = ref span196[num]; + num = 3; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span93 = CollectionsMarshal.AsSpan(list196); + ref QuestSequence reference148 = ref span93[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj123.Steps = list197; reference148 = obj123; - num++; - ref QuestSequence reference149 = ref span196[num]; + ref QuestSequence reference149 = ref span93[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 @@ -375077,85 +308926,64 @@ public static class AssemblyQuestLoader num2 = 2; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - ref QuestStep reference150 = ref span198[index2]; + Span span94 = CollectionsMarshal.AsSpan(list198); + ref QuestStep reference150 = ref span94[0]; QuestStep obj125 = new QuestStep(EInteractionType.Combat, 2012903u, new Vector3(37.03357f, 22.507019f, -8.133057f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list199 = new List(index3); - CollectionsMarshal.SetCount(list199, index3); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - span199[num3] = 14679u; + num3 = 1; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + CollectionsMarshal.AsSpan(list199)[0] = 14679u; obj125.KillEnemyDataIds = list199; num3 = 6; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - 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); + 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); obj125.CompletionQuestVariablesFlags = list200; reference150 = obj125; - index2++; - ref QuestStep reference151 = ref span198[index2]; + ref QuestStep reference151 = ref span94[1]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2012904u, new Vector3(116.68567f, 22.262878f, -71.000244f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list201 = new List(index3); - CollectionsMarshal.SetCount(list201, index3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = 14679u; + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + CollectionsMarshal.AsSpan(list201)[0] = 14679u; obj126.KillEnemyDataIds = list201; num3 = 6; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - 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); + 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); obj126.CompletionQuestVariablesFlags = list202; reference151 = obj126; obj124.Steps = list198; reference149 = obj124; - num++; - ref QuestSequence reference152 = ref span196[num]; + ref QuestSequence reference152 = ref span93[2]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -375168,16 +308996,13 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - Span span204 = CollectionsMarshal.AsSpan(list204); - index = 0; - span204[index] = "liza"; + CollectionsMarshal.AsSpan(list204)[0] = "liza"; questRoot24.Author = list204; - index = 3; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - ref QuestSequence reference153 = ref span205[num]; + num = 3; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + Span span97 = CollectionsMarshal.AsSpan(list205); + ref QuestSequence reference153 = ref span97[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 @@ -375185,51 +309010,40 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj128.Steps = list206; reference153 = obj128; - num++; - ref QuestSequence reference154 = ref span205[num]; + ref QuestSequence reference154 = ref span97[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list207 = new List(index2); - CollectionsMarshal.SetCount(list207, index2); - Span span207 = CollectionsMarshal.AsSpan(list207); - num2 = 0; - ref QuestStep reference155 = ref span207[num2]; + num2 = 4; + List list207 = new List(num2); + CollectionsMarshal.SetCount(list207, num2); + Span span98 = CollectionsMarshal.AsSpan(list207); + ref QuestStep reference155 = ref span98[0]; 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(); - 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list208; skipConditions10.StepIf = skipStepConditions10; obj130.SkipConditions = skipConditions10; reference155 = obj130; - num2++; - ref QuestStep reference156 = ref span207[num2]; + ref QuestStep reference156 = ref span98[1]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 2012907u, new Vector3(95.140015f, -29.404175f, 183.94751f), 957) { DisableNavmesh = true @@ -375237,47 +309051,33 @@ public static class AssemblyQuestLoader num3 = 6; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - 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); + 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); obj131.CompletionQuestVariablesFlags = list209; reference156 = obj131; - num2++; - ref QuestStep reference157 = ref span207[num2]; + ref QuestStep reference157 = ref span98[2]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2012906u, new Vector3(74.84546f, -35.41626f, 212.05457f), 957) { Fly = true }; - 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); + 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); obj132.CompletionQuestVariablesFlags = list210; reference157 = obj132; - num2++; - ref QuestStep reference158 = ref span207[num2]; + ref QuestStep reference158 = ref span98[3]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2012905u, new Vector3(132.7992f, -25.558899f, 206.74438f), 957) { Fly = true @@ -375285,25 +309085,18 @@ public static class AssemblyQuestLoader num3 = 6; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - 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); + 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); obj133.CompletionQuestVariablesFlags = list211; reference158 = obj133; obj129.Steps = list207; reference154 = obj129; - num++; - ref QuestSequence reference159 = ref span205[num]; + ref QuestSequence reference159 = ref span97[2]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue @@ -375311,16 +309104,14 @@ public static class AssemblyQuestLoader num2 = 2; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.10968f, 5.2216215f, 201.52365f), 957) + Span span103 = CollectionsMarshal.AsSpan(list212); + span103[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(110.10968f, 5.2216215f, 201.52365f), 957) { DisableNavmesh = true, Mount = true, Fly = true }; - index2++; - span212[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + span103[1] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true }; @@ -375333,30 +309124,24 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "liza"; + CollectionsMarshal.AsSpan(list213)[0] = "liza"; questRoot25.Author = list213; - index = 3; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference160 = ref span214[num]; + num = 3; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span104 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference160 = ref span104[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj135.Steps = list215; reference160 = obj135; - num++; - ref QuestSequence reference161 = ref span214[num]; + ref QuestSequence reference161 = ref span104[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 @@ -375364,9 +309149,8 @@ public static class AssemblyQuestLoader num2 = 4; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference162 = ref span216[index2]; + Span span105 = CollectionsMarshal.AsSpan(list216); + ref QuestStep reference162 = ref span105[0]; QuestStep obj137 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.12948f, 89.78411f, -666.6682f), 957) { Fly = true, @@ -375379,28 +309163,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list217; skipConditions11.StepIf = skipStepConditions11; obj137.SkipConditions = skipConditions11; reference162 = obj137; - index2++; - ref QuestStep reference163 = ref span216[index2]; + ref QuestStep reference163 = ref span105[1]; QuestStep obj138 = new QuestStep(EInteractionType.Emote, 1042462u, new Vector3(-73.86902f, 89.90596f, -666.0411f), 957) { StopDistance = 7f, @@ -375409,48 +309186,34 @@ public static class AssemblyQuestLoader num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - 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); + 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); obj138.CompletionQuestVariablesFlags = list218; reference163 = obj138; - index2++; - ref QuestStep reference164 = ref span216[index2]; + ref QuestStep reference164 = ref span105[2]; QuestStep obj139 = new QuestStep(EInteractionType.Emote, 1042461u, new Vector3(-85.160645f, 100.062004f, -715.3277f), 957) { Fly = true, Emote = EEmote.Doubt }; - 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); + 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); obj139.CompletionQuestVariablesFlags = list219; reference164 = obj139; - index2++; - ref QuestStep reference165 = ref span216[index2]; + ref QuestStep reference165 = ref span105[3]; QuestStep obj140 = new QuestStep(EInteractionType.Emote, 1042460u, new Vector3(-143.66376f, 95.4186f, -702.4491f), 957) { Fly = true, @@ -375459,35 +309222,26 @@ public static class AssemblyQuestLoader num3 = 6; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - 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); + 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); obj140.CompletionQuestVariablesFlags = list220; reference165 = obj140; obj136.Steps = list216; reference161 = obj136; - num++; - ref QuestSequence reference166 = ref span214[num]; + ref QuestSequence reference166 = ref span104[2]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -375501,16 +309255,13 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot26.Author = list222; - index = 5; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference167 = ref span223[num]; + num = 5; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span110 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference167 = ref span110[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -375518,31 +309269,25 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj142.Steps = list224; reference167 = obj142; - num++; - ref QuestSequence reference168 = ref span223[num]; + ref QuestSequence reference168 = ref span110[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj143.Steps = list225; reference168 = obj143; - num++; - ref QuestSequence reference169 = ref span223[num]; + ref QuestSequence reference169 = ref span110[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -375550,27 +309295,21 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 2012977u, new Vector3(-526.66516f, 6.1188354f, -579.52246f), 957); + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 2012977u, new Vector3(-526.66516f, 6.1188354f, -579.52246f), 957); obj144.Steps = list226; reference169 = obj144; - num++; - ref QuestSequence reference170 = ref span223[num]; + ref QuestSequence reference170 = ref span110[3]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj145.Steps = list227; reference170 = obj145; - num++; - ref QuestSequence reference171 = ref span223[num]; + ref QuestSequence reference171 = ref span110[4]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -375578,9 +309317,7 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -375594,30 +309331,24 @@ public static class AssemblyQuestLoader num = 1; List list229 = new List(num); CollectionsMarshal.SetCount(list229, num); - Span span229 = CollectionsMarshal.AsSpan(list229); - index = 0; - span229[index] = "liza"; + CollectionsMarshal.AsSpan(list229)[0] = "liza"; questRoot27.Author = list229; - index = 5; - List list230 = new List(index); - CollectionsMarshal.SetCount(list230, index); - Span span230 = CollectionsMarshal.AsSpan(list230); - num = 0; - ref QuestSequence reference172 = ref span230[num]; + num = 5; + List list230 = new List(num); + CollectionsMarshal.SetCount(list230, num); + Span span111 = CollectionsMarshal.AsSpan(list230); + ref QuestSequence reference172 = ref span111[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj147.Steps = list231; reference172 = obj147; - num++; - ref QuestSequence reference173 = ref span230[num]; + ref QuestSequence reference173 = ref span111[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -375625,92 +309356,67 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj148.Steps = list232; reference173 = obj148; - num++; - ref QuestSequence reference174 = ref span230[num]; + ref QuestSequence reference174 = ref span111[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list233 = new List(index2); - CollectionsMarshal.SetCount(list233, index2); - Span span233 = CollectionsMarshal.AsSpan(list233); - num2 = 0; - ref QuestStep reference175 = ref span233[num2]; + num2 = 3; + List list233 = new List(num2); + CollectionsMarshal.SetCount(list233, num2); + Span span112 = CollectionsMarshal.AsSpan(list233); + ref QuestStep reference175 = ref span112[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2012910u, new Vector3(-790.15796f, -0.25946045f, -110.09387f), 957); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list234; reference175 = questStep10; - num2++; - ref QuestStep reference176 = ref span233[num2]; + ref QuestStep reference176 = ref span112[1]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list235; reference176 = questStep11; - num2++; - ref QuestStep reference177 = ref span233[num2]; + ref QuestStep reference177 = ref span112[2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2012909u, new Vector3(-856.4126f, -0.25946045f, -159.83832f), 957); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list236; reference177 = questStep12; obj149.Steps = list233; reference174 = obj149; - num++; - ref QuestSequence reference178 = ref span230[num]; + ref QuestSequence reference178 = ref span111[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -375718,26 +309424,21 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1042468u, new Vector3(-660.88354f, 0.14433183f, -63.401245f), 957) { Fly = true }; obj150.Steps = list237; reference178 = obj150; - num++; - ref QuestSequence reference179 = ref span230[num]; + ref QuestSequence reference179 = ref span111[4]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -375750,16 +309451,13 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "liza"; + CollectionsMarshal.AsSpan(list239)[0] = "liza"; questRoot28.Author = list239; - index = 5; - List list240 = new List(index); - CollectionsMarshal.SetCount(list240, index); - Span span240 = CollectionsMarshal.AsSpan(list240); - num = 0; - ref QuestSequence reference180 = ref span240[num]; + num = 5; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span116 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference180 = ref span116[0]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -375767,31 +309465,25 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957); obj152.Steps = list241; reference180 = obj152; - num++; - ref QuestSequence reference181 = ref span240[num]; + ref QuestSequence reference181 = ref span116[1]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj153.Steps = list242; reference181 = obj153; - num++; - ref QuestSequence reference182 = ref span240[num]; + ref QuestSequence reference182 = ref span116[2]; QuestSequence obj154 = new QuestSequence { Sequence = 2 @@ -375799,9 +309491,8 @@ public static class AssemblyQuestLoader num2 = 3; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - ref QuestStep reference183 = ref span243[index2]; + Span span117 = CollectionsMarshal.AsSpan(list243); + ref QuestStep reference183 = ref span117[0]; QuestStep obj155 = new QuestStep(EInteractionType.Say, 1042472u, new Vector3(352.5597f, 20.552443f, 6.362976f), 957) { Fly = true, @@ -375813,33 +309504,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list244 = new List>(num3); CollectionsMarshal.SetCount(list244, num3); - Span> span244 = CollectionsMarshal.AsSpan(list244); - index3 = 0; - span244[index3] = null; - index3++; - ref List reference184 = ref span244[index3]; + Span> span118 = CollectionsMarshal.AsSpan(list244); + span118[0] = null; + ref List reference184 = ref span118[1]; num4 = 1; List list245 = new List(num4); CollectionsMarshal.SetCount(list245, num4); - Span span245 = CollectionsMarshal.AsSpan(list245); - index4 = 0; - span245[index4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list245)[0] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); reference184 = list245; - index3++; - span244[index3] = null; - index3++; - span244[index3] = null; - index3++; - span244[index3] = null; - index3++; - span244[index3] = null; + span118[2] = null; + span118[3] = null; + span118[4] = null; + span118[5] = null; obj155.RequiredQuestVariables = list244; - index3 = 1; - List list246 = new List(index3); - CollectionsMarshal.SetCount(list246, index3); - Span span246 = CollectionsMarshal.AsSpan(list246); - num3 = 0; - span246[num3] = new DialogueChoice + num3 = 1; + List list246 = new List(num3); + CollectionsMarshal.SetCount(list246, num3); + CollectionsMarshal.AsSpan(list246)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q1_000_000"), @@ -375847,8 +309528,7 @@ public static class AssemblyQuestLoader }; obj155.DialogueChoices = list246; reference183 = obj155; - index2++; - ref QuestStep reference185 = ref span243[index2]; + ref QuestStep reference185 = ref span117[1]; QuestStep obj156 = new QuestStep(EInteractionType.Say, 1042387u, new Vector3(398.94702f, 6.591665f, 50.492065f), 957) { Fly = true, @@ -375860,33 +309540,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list247 = new List>(num3); CollectionsMarshal.SetCount(list247, num3); - 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); + 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); reference186 = list248; - index3++; - span247[index3] = null; - index3++; - span247[index3] = null; - index3++; - span247[index3] = null; - index3++; - span247[index3] = null; + span119[2] = null; + span119[3] = null; + span119[4] = null; + span119[5] = null; obj156.RequiredQuestVariables = list247; - index3 = 1; - List list249 = new List(index3); - CollectionsMarshal.SetCount(list249, index3); - Span span249 = CollectionsMarshal.AsSpan(list249); - num3 = 0; - span249[num3] = new DialogueChoice + num3 = 1; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + CollectionsMarshal.AsSpan(list249)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q2_000_000"), @@ -375894,8 +309564,7 @@ public static class AssemblyQuestLoader }; obj156.DialogueChoices = list249; reference185 = obj156; - index2++; - ref QuestStep reference187 = ref span243[index2]; + ref QuestStep reference187 = ref span117[2]; QuestStep obj157 = new QuestStep(EInteractionType.Say, 1042388u, new Vector3(408.95703f, 7.8583245f, 5.0201416f), 957) { Fly = true, @@ -375907,33 +309576,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list250 = new List>(num3); CollectionsMarshal.SetCount(list250, num3); - Span> span250 = CollectionsMarshal.AsSpan(list250); - index3 = 0; - span250[index3] = null; - index3++; - ref List reference188 = ref span250[index3]; + Span> span120 = CollectionsMarshal.AsSpan(list250); + span120[0] = null; + ref List reference188 = ref span120[1]; num4 = 1; List list251 = new List(num4); CollectionsMarshal.SetCount(list251, num4); - Span span251 = CollectionsMarshal.AsSpan(list251); - index4 = 0; - span251[index4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list251)[0] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); reference188 = list251; - index3++; - span250[index3] = null; - index3++; - span250[index3] = null; - index3++; - span250[index3] = null; - index3++; - span250[index3] = null; + span120[2] = null; + span120[3] = null; + span120[4] = null; + span120[5] = null; obj157.RequiredQuestVariables = list250; - index3 = 1; - List list252 = new List(index3); - CollectionsMarshal.SetCount(list252, index3); - Span span252 = CollectionsMarshal.AsSpan(list252); - num3 = 0; - span252[num3] = new DialogueChoice + num3 = 1; + List list252 = new List(num3); + CollectionsMarshal.SetCount(list252, num3); + CollectionsMarshal.AsSpan(list252)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANARK127_04577_Q3_000_000"), @@ -375943,25 +309602,21 @@ public static class AssemblyQuestLoader reference187 = obj157; obj154.Steps = list243; reference182 = obj154; - num++; - ref QuestSequence reference189 = ref span240[num]; + ref QuestSequence reference189 = ref span116[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj158.Steps = list253; reference189 = obj158; - num++; - ref QuestSequence reference190 = ref span240[num]; + ref QuestSequence reference190 = ref span116[4]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -375969,9 +309624,7 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042301u, new Vector3(-66.02582f, 39.994705f, 321.06494f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad @@ -375985,30 +309638,24 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - Span span255 = CollectionsMarshal.AsSpan(list255); - index = 0; - span255[index] = "liza"; + CollectionsMarshal.AsSpan(list255)[0] = "liza"; questRoot29.Author = list255; - index = 3; - List list256 = new List(index); - CollectionsMarshal.SetCount(list256, index); - Span span256 = CollectionsMarshal.AsSpan(list256); - num = 0; - ref QuestSequence reference191 = ref span256[num]; + num = 3; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span121 = CollectionsMarshal.AsSpan(list256); + ref QuestSequence reference191 = ref span121[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj160.Steps = list257; reference191 = obj160; - num++; - ref QuestSequence reference192 = ref span256[num]; + ref QuestSequence reference192 = ref span121[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -376016,9 +309663,8 @@ public static class AssemblyQuestLoader num2 = 3; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - ref QuestStep reference193 = ref span258[index2]; + Span span122 = CollectionsMarshal.AsSpan(list258); + ref QuestStep reference193 = ref span122[0]; QuestStep obj162 = new QuestStep(EInteractionType.Combat, 2012915u, new Vector3(-383.505f, 1.0527954f, 362.99683f), 957) { Fly = true, @@ -376027,30 +309673,21 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span259 = CollectionsMarshal.AsSpan(list259); - index3 = 0; - span259[index3] = 14680u; + CollectionsMarshal.AsSpan(list259)[0] = 14680u; obj162.KillEnemyDataIds = list259; - 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); + 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); obj162.CompletionQuestVariablesFlags = list260; reference193 = obj162; - index2++; - ref QuestStep reference194 = ref span258[index2]; + ref QuestStep reference194 = ref span122[1]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 2012914u, new Vector3(-399.83215f, 1.6326294f, 291.73718f), 957) { Fly = true @@ -376058,67 +309695,49 @@ public static class AssemblyQuestLoader num3 = 6; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - 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); + 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); obj163.CompletionQuestVariablesFlags = list261; reference194 = obj163; - index2++; - ref QuestStep reference195 = ref span258[index2]; + ref QuestStep reference195 = ref span122[2]; QuestStep obj164 = new QuestStep(EInteractionType.Combat, 2012913u, new Vector3(-444.0528f, 0.38146973f, 249.53076f), 957) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list262 = new List(index3); - CollectionsMarshal.SetCount(list262, index3); - Span span262 = CollectionsMarshal.AsSpan(list262); - num3 = 0; - span262[num3] = 14680u; + num3 = 1; + List list262 = new List(num3); + CollectionsMarshal.SetCount(list262, num3); + CollectionsMarshal.AsSpan(list262)[0] = 14680u; obj164.KillEnemyDataIds = list262; num3 = 6; List list263 = new List(num3); CollectionsMarshal.SetCount(list263, num3); - 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); + 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); obj164.CompletionQuestVariablesFlags = list263; reference195 = obj164; obj161.Steps = list258; reference192 = obj161; - num++; - ref QuestSequence reference196 = ref span256[num]; + ref QuestSequence reference196 = ref span121[2]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -376131,16 +309750,13 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - Span span265 = CollectionsMarshal.AsSpan(list265); - index = 0; - span265[index] = "liza"; + CollectionsMarshal.AsSpan(list265)[0] = "liza"; questRoot30.Author = list265; - index = 4; - List list266 = new List(index); - CollectionsMarshal.SetCount(list266, index); - Span span266 = CollectionsMarshal.AsSpan(list266); - num = 0; - ref QuestSequence reference197 = ref span266[num]; + num = 4; + List list266 = new List(num); + CollectionsMarshal.SetCount(list266, num); + Span span126 = CollectionsMarshal.AsSpan(list266); + ref QuestSequence reference197 = ref span126[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 @@ -376148,9 +309764,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - ref QuestStep reference198 = ref span267[index2]; + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list267)[0]; QuestStep obj167 = new QuestStep(EInteractionType.AcceptQuest, 1039543u, new Vector3(-173.66296f, 4.0499997f, -91.38635f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -376167,12 +309781,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list268 = new List(index3); - CollectionsMarshal.SetCount(list268, index3); - Span span268 = CollectionsMarshal.AsSpan(list268); - num3 = 0; - span268[num3] = new DialogueChoice + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKBZ001_04579_Q1_000_000"), @@ -376182,25 +309794,21 @@ public static class AssemblyQuestLoader reference198 = obj167; obj166.Steps = list267; reference197 = obj166; - num++; - ref QuestSequence reference199 = ref span266[num]; + ref QuestSequence reference199 = ref span126[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj168.Steps = list269; reference199 = obj168; - num++; - ref QuestSequence reference200 = ref span266[num]; + ref QuestSequence reference200 = ref span126[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -376208,23 +309816,18 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.Interact, 1042731u, new Vector3(-416.64764f, 21.708784f, 409.90308f), 958); + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.Interact, 1042731u, new Vector3(-416.64764f, 21.708784f, 409.90308f), 958); obj169.Steps = list270; reference200 = obj169; - num++; - ref QuestSequence reference201 = ref span266[num]; + ref QuestSequence reference201 = ref span126[3]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4580) }; @@ -376237,16 +309840,13 @@ public static class AssemblyQuestLoader num = 1; List list272 = new List(num); CollectionsMarshal.SetCount(list272, num); - Span span272 = CollectionsMarshal.AsSpan(list272); - index = 0; - span272[index] = "liza"; + CollectionsMarshal.AsSpan(list272)[0] = "liza"; questRoot31.Author = list272; - index = 7; - List list273 = new List(index); - CollectionsMarshal.SetCount(list273, index); - Span span273 = CollectionsMarshal.AsSpan(list273); - num = 0; - ref QuestSequence reference202 = ref span273[num]; + num = 7; + List list273 = new List(num); + CollectionsMarshal.SetCount(list273, num); + Span span127 = CollectionsMarshal.AsSpan(list273); + ref QuestSequence reference202 = ref span127[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 @@ -376254,30 +309854,24 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958); + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042733u, new Vector3(-337.51428f, 21.963173f, 484.91638f), 958); obj171.Steps = list274; reference202 = obj171; - num++; - ref QuestSequence reference203 = ref span273[num]; + ref QuestSequence reference203 = ref span127[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj172.Steps = list275; reference203 = obj172; - num++; - ref QuestSequence reference204 = ref span273[num]; + ref QuestSequence reference204 = ref span127[2]; QuestSequence obj173 = new QuestSequence { Sequence = 2 @@ -376285,9 +309879,8 @@ public static class AssemblyQuestLoader num2 = 3; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - ref QuestStep reference205 = ref span276[index2]; + Span span128 = CollectionsMarshal.AsSpan(list276); + ref QuestStep reference205 = ref span128[0]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1042740u, new Vector3(580.5293f, 32.31866f, 143.05322f), 958) { Fly = true @@ -376295,84 +309888,60 @@ public static class AssemblyQuestLoader num3 = 6; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - 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); + 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); obj174.CompletionQuestVariablesFlags = list277; reference205 = obj174; - index2++; - ref QuestStep reference206 = ref span276[index2]; + ref QuestStep reference206 = ref span128[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1042739u, new Vector3(586.694f, 32.318665f, 140.7644f), 958); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list278; reference206 = questStep13; - index2++; - ref QuestStep reference207 = ref span276[index2]; + ref QuestStep reference207 = ref span128[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list279; reference207 = questStep14; obj173.Steps = list276; reference204 = obj173; - num++; - ref QuestSequence reference208 = ref span273[num]; + ref QuestSequence reference208 = ref span127[3]; QuestSequence obj175 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj175.Steps = list280; reference208 = obj175; - num++; - ref QuestSequence reference209 = ref span273[num]; + ref QuestSequence reference209 = ref span127[4]; QuestSequence obj176 = new QuestSequence { Sequence = 4 @@ -376380,41 +309949,33 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.Interact, 1042744u, new Vector3(578.912f, 32.318665f, 140.7644f), 958); + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1042744u, new Vector3(578.912f, 32.318665f, 140.7644f), 958); obj176.Steps = list281; reference209 = obj176; - num++; - ref QuestSequence reference210 = ref span273[num]; + ref QuestSequence reference210 = ref span127[5]; QuestSequence obj177 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list282 = new List(index2); - CollectionsMarshal.SetCount(list282, index2); - Span span282 = CollectionsMarshal.AsSpan(list282); - num2 = 0; - ref QuestStep reference211 = ref span282[num2]; + num2 = 1; + List list282 = new List(num2); + CollectionsMarshal.SetCount(list282, num2); + ref QuestStep reference211 = ref CollectionsMarshal.AsSpan(list282)[0]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, null, new Vector3(439.23065f, 3.0308545f, 65.572105f), 958) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list283 = new List(index3); - CollectionsMarshal.SetCount(list283, index3); - Span span283 = CollectionsMarshal.AsSpan(list283); - num3 = 0; - span283[num3] = 14686u; + num3 = 1; + List list283 = new List(num3); + CollectionsMarshal.SetCount(list283, num3); + CollectionsMarshal.AsSpan(list283)[0] = 14686u; obj178.KillEnemyDataIds = list283; reference211 = obj178; obj177.Steps = list282; reference210 = obj177; - num++; - ref QuestSequence reference212 = ref span273[num]; + ref QuestSequence reference212 = ref span127[6]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -376422,14 +309983,12 @@ public static class AssemblyQuestLoader num2 = 2; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(576.40137f, 38.372063f, 213.64067f), 958) + Span span132 = CollectionsMarshal.AsSpan(list284); + span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(576.40137f, 38.372063f, 213.64067f), 958) { Fly = true }; - index2++; - span284[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958) + span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1042746u, new Vector3(576.62305f, 38.372063f, 215.01477f), 958) { StopDistance = 5f, NextQuestId = new QuestId(4581) @@ -376443,30 +310002,24 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - Span span285 = CollectionsMarshal.AsSpan(list285); - index = 0; - span285[index] = "liza"; + CollectionsMarshal.AsSpan(list285)[0] = "liza"; questRoot32.Author = list285; - index = 8; - List list286 = new List(index); - CollectionsMarshal.SetCount(list286, index); - Span span286 = CollectionsMarshal.AsSpan(list286); - num = 0; - ref QuestSequence reference213 = ref span286[num]; + num = 8; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + Span span133 = CollectionsMarshal.AsSpan(list286); + ref QuestSequence reference213 = ref span133[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj180.Steps = list287; reference213 = obj180; - num++; - ref QuestSequence reference214 = ref span286[num]; + ref QuestSequence reference214 = ref span133[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -376474,33 +310027,27 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.Interact, 1042751u, new Vector3(-344.22827f, 23.742596f, 421.68298f), 958) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.Interact, 1042751u, new Vector3(-344.22827f, 23.742596f, 421.68298f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj181.Steps = list288; reference214 = obj181; - num++; - ref QuestSequence reference215 = ref span286[num]; + ref QuestSequence reference215 = ref span133[2]; QuestSequence obj182 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj182.Steps = list289; reference215 = obj182; - num++; - ref QuestSequence reference216 = ref span286[num]; + ref QuestSequence reference216 = ref span133[3]; QuestSequence obj183 = new QuestSequence { Sequence = 3 @@ -376508,30 +310055,24 @@ public static class AssemblyQuestLoader num2 = 1; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - span290[index2] = new QuestStep(EInteractionType.Interact, 1042752u, new Vector3(75.21167f, 10.494146f, -75.05914f), 958); + CollectionsMarshal.AsSpan(list290)[0] = new QuestStep(EInteractionType.Interact, 1042752u, new Vector3(75.21167f, 10.494146f, -75.05914f), 958); obj183.Steps = list290; reference216 = obj183; - num++; - ref QuestSequence reference217 = ref span286[num]; + ref QuestSequence reference217 = ref span133[4]; QuestSequence obj184 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj184.Steps = list291; reference217 = obj184; - num++; - ref QuestSequence reference218 = ref span286[num]; + ref QuestSequence reference218 = ref span133[5]; QuestSequence obj185 = new QuestSequence { Sequence = 5 @@ -376539,26 +310080,21 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.Interact, 2012955u, new Vector3(62.394165f, 10.452393f, -316.64f), 958) + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 2012955u, new Vector3(62.394165f, 10.452393f, -316.64f), 958) { Fly = true }; obj185.Steps = list292; reference218 = obj185; - num++; - ref QuestSequence reference219 = ref span286[num]; + ref QuestSequence reference219 = ref span133[6]; QuestSequence obj186 = new QuestSequence { Sequence = 6 }; - index2 = 1; - List list293 = new List(index2); - CollectionsMarshal.SetCount(list293, index2); - Span span293 = CollectionsMarshal.AsSpan(list293); - num2 = 0; - ref QuestStep reference220 = ref span293[num2]; + num2 = 1; + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + ref QuestStep reference220 = ref CollectionsMarshal.AsSpan(list293)[0]; QuestStep obj187 = new QuestStep(EInteractionType.Combat, null, new Vector3(-31.511757f, 23.164677f, -415.98322f), 958) { StopDistance = 0.5f, @@ -376568,17 +310104,14 @@ public static class AssemblyQuestLoader num3 = 2; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span294 = CollectionsMarshal.AsSpan(list294); - index3 = 0; - span294[index3] = 14687u; - index3++; - span294[index3] = 14688u; + Span span134 = CollectionsMarshal.AsSpan(list294); + span134[0] = 14687u; + span134[1] = 14688u; obj187.KillEnemyDataIds = list294; reference220 = obj187; obj186.Steps = list293; reference219 = obj186; - num++; - ref QuestSequence reference221 = ref span286[num]; + ref QuestSequence reference221 = ref span133[7]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -376586,9 +310119,7 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042759u, new Vector3(-28.427612f, 23.164675f, -414.0536f), 958) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042759u, new Vector3(-28.427612f, 23.164675f, -414.0536f), 958) { NextQuestId = new QuestId(4582) }; @@ -376601,33 +310132,27 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "liza"; + CollectionsMarshal.AsSpan(list296)[0] = "liza"; questRoot33.Author = list296; - index = 6; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference222 = ref span297[num]; + num = 6; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span135 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference222 = ref span135[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj189.Steps = list298; reference222 = obj189; - num++; - ref QuestSequence reference223 = ref span297[num]; + ref QuestSequence reference223 = ref span135[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 @@ -376635,51 +310160,42 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1042766u, new Vector3(-416.25085f, 21.684832f, 408.1941f), 958) + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1042766u, new Vector3(-416.25085f, 21.684832f, 408.1941f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj190.Steps = list299; reference223 = obj190; - num++; - ref QuestSequence reference224 = ref span297[num]; + ref QuestSequence reference224 = ref span135[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list300 = new List(index2); - CollectionsMarshal.SetCount(list300, index2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num2 = 0; - ref QuestStep reference225 = ref span300[num2]; + num2 = 1; + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + ref QuestStep reference225 = ref CollectionsMarshal.AsSpan(list300)[0]; QuestStep obj192 = new QuestStep(EInteractionType.SinglePlayerDuty, 1042769u, new Vector3(-336.99554f, 10.799999f, -602.1057f), 958) { Fly = true }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list301; obj192.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference225 = obj192; obj191.Steps = list300; reference224 = obj191; - num++; - span297[num] = new QuestSequence + span135[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference226 = ref span297[num]; + ref QuestSequence reference226 = ref span135[4]; QuestSequence obj193 = new QuestSequence { Sequence = 4 @@ -376687,26 +310203,21 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.Interact, 1042770u, new Vector3(-415.21326f, 21.765957f, 409.99463f), 958) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1042770u, new Vector3(-415.21326f, 21.765957f, 409.99463f), 958) { StopDistance = 5f }; obj193.Steps = list302; reference226 = obj193; - num++; - ref QuestSequence reference227 = ref span297[num]; + ref QuestSequence reference227 = ref span135[5]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -376724,16 +310235,13 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span304 = CollectionsMarshal.AsSpan(list304); - index = 0; - span304[index] = "pot0to"; + CollectionsMarshal.AsSpan(list304)[0] = "pot0to"; questRoot34.Author = list304; - index = 6; - List list305 = new List(index); - CollectionsMarshal.SetCount(list305, index); - Span span305 = CollectionsMarshal.AsSpan(list305); - num = 0; - ref QuestSequence reference228 = ref span305[num]; + num = 6; + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + Span span137 = CollectionsMarshal.AsSpan(list305); + ref QuestSequence reference228 = ref span137[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -376741,9 +310249,7 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -376756,18 +310262,16 @@ public static class AssemblyQuestLoader }; obj195.Steps = list306; reference228 = obj195; - num++; - ref QuestSequence reference229 = ref span305[num]; + ref QuestSequence reference229 = ref span137[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -376776,25 +310280,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.LimsaFisher } }; - 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) + 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) { DisableNavmesh = true }; - 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); + 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); obj196.Steps = list307; reference229 = obj196; - num++; - ref QuestSequence reference230 = ref span305[num]; + ref QuestSequence reference230 = ref span137[2]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -376802,30 +310299,24 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1000100u, new Vector3(23.819275f, -8f, 115.92273f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj197.Steps = list308; reference230 = obj197; - num++; - ref QuestSequence reference231 = ref span305[num]; + ref QuestSequence reference231 = ref span137[3]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj198.Steps = list309; reference231 = obj198; - num++; - ref QuestSequence reference232 = ref span305[num]; + ref QuestSequence reference232 = ref span137[4]; QuestSequence obj199 = new QuestSequence { Sequence = 4 @@ -376833,9 +310324,7 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.Interact, 1042600u, new Vector3(-20.431885f, 14.000006f, 5.2948f), 131) + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Interact, 1042600u, new Vector3(-20.431885f, 14.000006f, 5.2948f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -376846,18 +310335,15 @@ public static class AssemblyQuestLoader }; obj199.Steps = list310; reference232 = obj199; - num++; - ref QuestSequence reference233 = ref span305[num]; + ref QuestSequence reference233 = ref span137[5]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4650) @@ -376871,16 +310357,13 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - Span span312 = CollectionsMarshal.AsSpan(list312); - index = 0; - span312[index] = "liza"; + CollectionsMarshal.AsSpan(list312)[0] = "liza"; questRoot35.Author = list312; - index = 8; - List list313 = new List(index); - CollectionsMarshal.SetCount(list313, index); - Span span313 = CollectionsMarshal.AsSpan(list313); - num = 0; - ref QuestSequence reference234 = ref span313[num]; + num = 8; + List list313 = new List(num); + CollectionsMarshal.SetCount(list313, num); + Span span139 = CollectionsMarshal.AsSpan(list313); + ref QuestSequence reference234 = ref span139[0]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -376888,23 +310371,19 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042796u, new Vector3(-12.100403f, -16.147f, 153.76514f), 962); + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042796u, new Vector3(-12.100403f, -16.147f, 153.76514f), 962); obj201.Steps = list314; reference234 = obj201; - num++; - ref QuestSequence reference235 = ref span313[num]; + ref QuestSequence reference235 = ref span139[1]; QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -376916,17 +310395,14 @@ public static class AssemblyQuestLoader } } }; - num2++; - span315[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + span140[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - num2++; - span315[num2] = new QuestStep(EInteractionType.Interact, 1042797u, new Vector3(-393.20978f, -220.20282f, 283.16162f), 956); + span140[2] = new QuestStep(EInteractionType.Interact, 1042797u, new Vector3(-393.20978f, -220.20282f, 283.16162f), 956); obj202.Steps = list315; reference235 = obj202; - num++; - ref QuestSequence reference236 = ref span313[num]; + ref QuestSequence reference236 = ref span139[2]; QuestSequence obj203 = new QuestSequence { Sequence = 2 @@ -376934,16 +310410,12 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - ref QuestStep reference237 = ref span316[index2]; + ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list316)[0]; 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); - Span span317 = CollectionsMarshal.AsSpan(list317); - index3 = 0; - span317[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list317)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_STMBDR601_04586_Q2_000_107") @@ -376952,22 +310424,18 @@ public static class AssemblyQuestLoader reference237 = questStep15; obj203.Steps = list316; reference236 = obj203; - num++; - ref QuestSequence reference238 = ref span313[num]; + ref QuestSequence reference238 = ref span139[3]; QuestSequence obj204 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj204.Steps = list318; reference238 = obj204; - num++; - ref QuestSequence reference239 = ref span313[num]; + ref QuestSequence reference239 = ref span139[4]; QuestSequence obj205 = new QuestSequence { Sequence = 4 @@ -376975,9 +310443,8 @@ public static class AssemblyQuestLoader num2 = 3; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - ref QuestStep reference240 = ref span319[index2]; + Span span141 = CollectionsMarshal.AsSpan(list319); + ref QuestStep reference240 = ref span141[0]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1042887u, new Vector3(108.72046f, 26.999989f, 14.90802f), 963) { AethernetShortcut = new AethernetShortcut @@ -376986,80 +310453,57 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - 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); + 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); obj206.CompletionQuestVariablesFlags = list320; reference240 = obj206; - index2++; - ref QuestStep reference241 = ref span319[index2]; + ref QuestStep reference241 = ref span141[1]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list321; reference241 = questStep16; - index2++; - ref QuestStep reference242 = ref span319[index2]; + ref QuestStep reference242 = ref span141[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1042804u, new Vector3(87.35791f, 26.99999f, 56.687256f), 963); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list322; reference242 = questStep17; obj205.Steps = list319; reference239 = obj205; - num++; - ref QuestSequence reference243 = ref span313[num]; + ref QuestSequence reference243 = ref span139[5]; QuestSequence obj207 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list323 = new List(index2); - CollectionsMarshal.SetCount(list323, index2); - Span span323 = CollectionsMarshal.AsSpan(list323); - num2 = 0; - ref QuestStep reference244 = ref span323[num2]; + num2 = 1; + List list323 = new List(num2); + CollectionsMarshal.SetCount(list323, num2); + ref QuestStep reference244 = ref CollectionsMarshal.AsSpan(list323)[0]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 1042803u, new Vector3(116.01684f, 26.99999f, 45.689087f), 963) { StopDistance = 0.25f @@ -377067,9 +310511,7 @@ public static class AssemblyQuestLoader num3 = 1; List list324 = new List(num3); CollectionsMarshal.SetCount(list324, num3); - Span span324 = CollectionsMarshal.AsSpan(list324); - index3 = 0; - span324[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list324)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR601_04586_Q5_000_225"), @@ -377079,8 +310521,7 @@ public static class AssemblyQuestLoader reference244 = obj208; obj207.Steps = list323; reference243 = obj207; - num++; - ref QuestSequence reference245 = ref span313[num]; + ref QuestSequence reference245 = ref span139[6]; QuestSequence obj209 = new QuestSequence { Sequence = 6 @@ -377088,9 +310529,7 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span325[index2] = new QuestStep(EInteractionType.Interact, 1039541u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) + CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.Interact, 1039541u, new Vector3(-159.3805f, 23.999973f, 110.61267f), 963) { AethernetShortcut = new AethernetShortcut { @@ -377100,18 +310539,15 @@ public static class AssemblyQuestLoader }; obj209.Steps = list325; reference245 = obj209; - num++; - ref QuestSequence reference246 = ref span313[num]; + ref QuestSequence reference246 = ref span139[7]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 4f, NextQuestId = new QuestId(4587) @@ -377125,16 +310561,13 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - Span span327 = CollectionsMarshal.AsSpan(list327); - index = 0; - span327[index] = "liza"; + CollectionsMarshal.AsSpan(list327)[0] = "liza"; questRoot36.Author = list327; - index = 12; - List list328 = new List(index); - CollectionsMarshal.SetCount(list328, index); - Span span328 = CollectionsMarshal.AsSpan(list328); - num = 0; - ref QuestSequence reference247 = ref span328[num]; + num = 12; + List list328 = new List(num); + CollectionsMarshal.SetCount(list328, num); + Span span145 = CollectionsMarshal.AsSpan(list328); + ref QuestSequence reference247 = ref span145[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 @@ -377142,30 +310575,24 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042807u, new Vector3(-59.06775f, 13.999993f, 114.67151f), 963) + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042807u, new Vector3(-59.06775f, 13.999993f, 114.67151f), 963) { StopDistance = 6f }; obj211.Steps = list329; reference247 = obj211; - num++; - ref QuestSequence reference248 = ref span328[num]; + ref QuestSequence reference248 = ref span145[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj212.Steps = list330; reference248 = obj212; - num++; - ref QuestSequence reference249 = ref span328[num]; + ref QuestSequence reference249 = ref span145[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 @@ -377173,75 +310600,56 @@ public static class AssemblyQuestLoader num2 = 3; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - ref QuestStep reference250 = ref span331[index2]; + Span span146 = CollectionsMarshal.AsSpan(list331); + ref QuestStep reference250 = ref span146[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1042811u, new Vector3(-323.23187f, 22f, 500.35852f), 958); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list332; reference250 = questStep18; - index2++; - span331[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.7818f, 25.227219f, 423.6428f), 958) + span146[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-277.7818f, 25.227219f, 423.6428f), 958) { Fly = true }; - index2++; - ref QuestStep reference251 = ref span331[index2]; + ref QuestStep reference251 = ref span146[2]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list333; reference251 = questStep19; obj213.Steps = list331; reference249 = obj213; - num++; - ref QuestSequence reference252 = ref span328[num]; + ref QuestSequence reference252 = ref span145[3]; QuestSequence obj214 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj214.Steps = list334; reference252 = obj214; - num++; - ref QuestSequence reference253 = ref span328[num]; + ref QuestSequence reference253 = ref span145[4]; QuestSequence obj215 = new QuestSequence { Sequence = 4 @@ -377249,30 +310657,24 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.Interact, 1042829u, new Vector3(-330.86145f, 22.310896f, 431.4182f), 958); + CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.Interact, 1042829u, new Vector3(-330.86145f, 22.310896f, 431.4182f), 958); obj215.Steps = list335; reference253 = obj215; - num++; - ref QuestSequence reference254 = ref span328[num]; + ref QuestSequence reference254 = ref span145[5]; QuestSequence obj216 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj216.Steps = list336; reference254 = obj216; - num++; - ref QuestSequence reference255 = ref span328[num]; + ref QuestSequence reference255 = ref span145[6]; QuestSequence obj217 = new QuestSequence { Sequence = 6 @@ -377280,30 +310682,24 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.Interact, 1043126u, new Vector3(605.9509f, 34.7239f, 203.32642f), 958) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1043126u, new Vector3(605.9509f, 34.7239f, 203.32642f), 958) { StopDistance = 5f }; obj217.Steps = list337; reference255 = obj217; - num++; - ref QuestSequence reference256 = ref span328[num]; + ref QuestSequence reference256 = ref span145[7]; QuestSequence obj218 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj218.Steps = list338; reference256 = obj218; - num++; - ref QuestSequence reference257 = ref span328[num]; + ref QuestSequence reference257 = ref span145[8]; QuestSequence obj219 = new QuestSequence { Sequence = 8 @@ -377311,19 +310707,15 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - ref QuestStep reference258 = ref span339[index2]; + ref QuestStep reference258 = ref CollectionsMarshal.AsSpan(list339)[0]; QuestStep obj220 = new QuestStep(EInteractionType.Interact, 1042818u, new Vector3(-1.6327515f, -28.024765f, -216.23566f), 959) { Fly = true }; - index3 = 1; - List list340 = new List(index3); - CollectionsMarshal.SetCount(list340, index3); - Span span340 = CollectionsMarshal.AsSpan(list340); - num3 = 0; - span340[num3] = new DialogueChoice + num3 = 1; + List list340 = new List(num3); + CollectionsMarshal.SetCount(list340, num3); + CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_STMBDR602_04587_Q4_000_294"), @@ -377333,25 +310725,21 @@ public static class AssemblyQuestLoader reference258 = obj220; obj219.Steps = list339; reference257 = obj219; - num++; - ref QuestSequence reference259 = ref span328[num]; + ref QuestSequence reference259 = ref span145[9]; QuestSequence obj221 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true }; obj221.Steps = list341; reference259 = obj221; - num++; - ref QuestSequence reference260 = ref span328[num]; + ref QuestSequence reference260 = ref span145[10]; QuestSequence obj222 = new QuestSequence { Sequence = 10 @@ -377359,9 +310747,8 @@ public static class AssemblyQuestLoader num2 = 3; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) + Span span149 = CollectionsMarshal.AsSpan(list342); + span149[0] = new QuestStep(EInteractionType.Interact, 1039550u, new Vector3(-620.7218f, -27.670597f, 302.17432f), 956) { TargetTerritoryId = (ushort)956, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, @@ -377373,27 +310760,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span342[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + span149[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - index2++; - span342[index2] = new QuestStep(EInteractionType.Interact, 1042800u, new Vector3(-393.0572f, -220.20284f, 284.71802f), 956); + span149[2] = new QuestStep(EInteractionType.Interact, 1042800u, new Vector3(-393.0572f, -220.20284f, 284.71802f), 956); obj222.Steps = list342; reference260 = obj222; - num++; - ref QuestSequence reference261 = ref span328[num]; + ref QuestSequence reference261 = ref span145[11]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj223.Steps = list343; reference261 = obj223; questRoot36.QuestSequence = list328; @@ -377403,16 +310785,13 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - Span span344 = CollectionsMarshal.AsSpan(list344); - index = 0; - span344[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list344)[0] = "JerryWester"; questRoot37.Author = list344; - index = 5; - List list345 = new List(index); - CollectionsMarshal.SetCount(list345, index); - Span span345 = CollectionsMarshal.AsSpan(list345); - num = 0; - ref QuestSequence reference262 = ref span345[num]; + num = 5; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + Span span150 = CollectionsMarshal.AsSpan(list345); + ref QuestSequence reference262 = ref span150[0]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -377420,45 +310799,36 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - span346[index2] = new QuestStep(EInteractionType.AcceptQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); + CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1006454u, new Vector3(-168.84113f, 304.1538f, -328.66406f), 155); obj224.Steps = list346; reference262 = obj224; - num++; - ref QuestSequence reference263 = ref span345[num]; + ref QuestSequence reference263 = ref span150[1]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list347 = new List(index2); - CollectionsMarshal.SetCount(list347, index2); - Span span347 = CollectionsMarshal.AsSpan(list347); - num2 = 0; - ref QuestStep reference264 = ref span347[num2]; + num2 = 1; + List list347 = new List(num2); + CollectionsMarshal.SetCount(list347, num2); + ref QuestStep reference264 = ref CollectionsMarshal.AsSpan(list347)[0]; 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 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"; + 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"; singlePlayerDutyOptions2.Notes = list348; questStep20.SinglePlayerDutyOptions = singlePlayerDutyOptions2; reference264 = questStep20; obj225.Steps = list347; reference263 = obj225; - num++; - span345[num] = new QuestSequence + span150[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference265 = ref span345[num]; + ref QuestSequence reference265 = ref span150[3]; QuestSequence obj226 = new QuestSequence { Sequence = 3 @@ -377466,34 +310836,28 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.Interact, 1010978u, new Vector3(-157.57996f, 304.1538f, -314.53424f), 155); + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1010978u, new Vector3(-157.57996f, 304.1538f, -314.53424f), 155); obj226.Steps = list349; reference265 = obj226; - num++; - ref QuestSequence reference266 = ref span345[num]; + ref QuestSequence reference266 = ref span150[4]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)351, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span350[num2] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) + span152[1] = new QuestStep(EInteractionType.Interact, 2002878u, new Vector3(-0.015319824f, -1.0223389f, -26.779602f), 351) { TargetTerritoryId = (ushort)351 }; - num2++; - span350[num2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); + span152[2] = new QuestStep(EInteractionType.CompleteQuest, 1010897u, new Vector3(0.9613037f, -1.9957249f, -45.609253f), 351); obj227.Steps = list350; reference266 = obj227; questRoot37.QuestSequence = list345; @@ -377503,16 +310867,13 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - Span span351 = CollectionsMarshal.AsSpan(list351); - index = 0; - span351[index] = "liza"; + CollectionsMarshal.AsSpan(list351)[0] = "liza"; questRoot38.Author = list351; - index = 7; - List list352 = new List(index); - CollectionsMarshal.SetCount(list352, index); - Span span352 = CollectionsMarshal.AsSpan(list352); - num = 0; - ref QuestSequence reference267 = ref span352[num]; + num = 7; + List list352 = new List(num); + CollectionsMarshal.SetCount(list352, num); + Span span153 = CollectionsMarshal.AsSpan(list352); + ref QuestSequence reference267 = ref span153[0]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -377520,30 +310881,24 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj228.Steps = list353; reference267 = obj228; - num++; - ref QuestSequence reference268 = ref span352[num]; + ref QuestSequence reference268 = ref span153[1]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj229.Steps = list354; reference268 = obj229; - num++; - ref QuestSequence reference269 = ref span352[num]; + ref QuestSequence reference269 = ref span153[2]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -377551,31 +310906,25 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - span355[index2] = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) + CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1039627u, new Vector3(-270.25262f, 0.07863108f, 605.9204f), 957) { StopDistance = 5f, TargetTerritoryId = (ushort)1056 }; obj230.Steps = list355; reference269 = obj230; - num++; - ref QuestSequence reference270 = ref span352[num]; + ref QuestSequence reference270 = ref span153[3]; QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj231.Steps = list356; reference270 = obj231; - num++; - ref QuestSequence reference271 = ref span352[num]; + ref QuestSequence reference271 = ref span153[4]; QuestSequence obj232 = new QuestSequence { Sequence = 4 @@ -377583,42 +310932,34 @@ public static class AssemblyQuestLoader num2 = 1; List list357 = new List(num2); CollectionsMarshal.SetCount(list357, num2); - Span span357 = CollectionsMarshal.AsSpan(list357); - index2 = 0; - ref QuestStep reference272 = ref span357[index2]; + ref QuestStep reference272 = ref CollectionsMarshal.AsSpan(list357)[0]; QuestStep questStep21 = new QuestStep(EInteractionType.Duty, null, null, 1056); DutyOptions obj233 = new DutyOptions { ContentFinderConditionId = 869u }; - index3 = 1; - List list358 = new List(index3); - CollectionsMarshal.SetCount(list358, index3); - Span span358 = CollectionsMarshal.AsSpan(list358); - num3 = 0; - span358[num3] = "No VBM module"; + num3 = 1; + List list358 = new List(num3); + CollectionsMarshal.SetCount(list358, num3); + CollectionsMarshal.AsSpan(list358)[0] = "No VBM module"; obj233.Notes = list358; questStep21.DutyOptions = obj233; reference272 = questStep21; obj232.Steps = list357; reference271 = obj232; - num++; - span352[num] = new QuestSequence + span153[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference273 = ref span352[num]; + ref QuestSequence reference273 = ref span153[6]; QuestSequence obj234 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -377631,16 +310972,13 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - Span span360 = CollectionsMarshal.AsSpan(list360); - index = 0; - span360[index] = "liza"; + CollectionsMarshal.AsSpan(list360)[0] = "liza"; questRoot39.Author = list360; - index = 5; - List list361 = new List(index); - CollectionsMarshal.SetCount(list361, index); - Span span361 = CollectionsMarshal.AsSpan(list361); - num = 0; - ref QuestSequence reference274 = ref span361[num]; + num = 5; + List list361 = new List(num); + CollectionsMarshal.SetCount(list361, num); + Span span154 = CollectionsMarshal.AsSpan(list361); + ref QuestSequence reference274 = ref span154[0]; QuestSequence obj235 = new QuestSequence { Sequence = 0 @@ -377648,112 +310986,80 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042064u, new Vector3(-83.72626f, 376.38647f, -158.0072f), 1089) + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042064u, new Vector3(-83.72626f, 376.38647f, -158.0072f), 1089) { StopDistance = 7f }; obj235.Steps = list362; reference274 = obj235; - num++; - ref QuestSequence reference275 = ref span361[num]; + ref QuestSequence reference275 = ref span154[1]; QuestSequence obj236 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list363 = new List(index2); - CollectionsMarshal.SetCount(list363, index2); - Span span363 = CollectionsMarshal.AsSpan(list363); - num2 = 0; - ref QuestStep reference276 = ref span363[num2]; + num2 = 4; + List list363 = new List(num2); + CollectionsMarshal.SetCount(list363, num2); + Span span155 = CollectionsMarshal.AsSpan(list363); + ref QuestStep reference276 = ref span155[0]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list364; reference276 = questStep22; - num2++; - ref QuestStep reference277 = ref span363[num2]; + ref QuestStep reference277 = ref span155[1]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1043790u, new Vector3(-10.360962f, 359.19916f, -106.70636f), 1089); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list365; reference277 = questStep23; - num2++; - ref QuestStep reference278 = ref span363[num2]; + ref QuestStep reference278 = ref span155[2]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list366; reference278 = questStep24; - num2++; - ref QuestStep reference279 = ref span363[num2]; + ref QuestStep reference279 = ref span155[3]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1043792u, new Vector3(4.043579f, 350.57257f, -49.45453f), 1089); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list367; reference279 = questStep25; obj236.Steps = list363; reference275 = obj236; - num++; - ref QuestSequence reference280 = ref span361[num]; + ref QuestSequence reference280 = ref span154[2]; QuestSequence obj237 = new QuestSequence { Sequence = 2 @@ -377761,37 +311067,30 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - span368[index2] = new QuestStep(EInteractionType.Interact, 2013042u, new Vector3(38.071167f, 348.04297f, 4.3792725f), 1089); + CollectionsMarshal.AsSpan(list368)[0] = new QuestStep(EInteractionType.Interact, 2013042u, new Vector3(38.071167f, 348.04297f, 4.3792725f), 1089); obj237.Steps = list368; reference280 = obj237; - num++; - ref QuestSequence reference281 = ref span361[num]; + ref QuestSequence reference281 = ref span154[3]; QuestSequence obj238 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)1089 }; - num2++; - span369[num2] = new QuestStep(EInteractionType.Interact, 2013113u, new Vector3(-280.0794f, -716.7621f, 133.95886f), 1089) + span160[1] = new QuestStep(EInteractionType.Interact, 2013113u, new Vector3(-280.0794f, -716.7621f, 133.95886f), 1089) { TargetTerritoryId = (ushort)1089 }; - num2++; - span369[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.0746f, -718.0001f, 206.78001f), 1089); + span160[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(71.0746f, -718.0001f, 206.78001f), 1089); obj238.Steps = list369; reference281 = obj238; - num++; - ref QuestSequence reference282 = ref span361[num]; + ref QuestSequence reference282 = ref span154[4]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -377799,9 +311098,7 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - span370[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043800u, new Vector3(100.11438f, -718.4441f, 206.77502f), 1089) + CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043800u, new Vector3(100.11438f, -718.4441f, 206.77502f), 1089) { StopDistance = 5f }; @@ -377814,33 +311111,27 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - Span span371 = CollectionsMarshal.AsSpan(list371); - index = 0; - span371[index] = "liza"; + CollectionsMarshal.AsSpan(list371)[0] = "liza"; questRoot40.Author = list371; - index = 5; - List list372 = new List(index); - CollectionsMarshal.SetCount(list372, index); - Span span372 = CollectionsMarshal.AsSpan(list372); - num = 0; - ref QuestSequence reference283 = ref span372[num]; + num = 5; + List list372 = new List(num); + CollectionsMarshal.SetCount(list372, num); + Span span161 = CollectionsMarshal.AsSpan(list372); + ref QuestSequence reference283 = ref span161[0]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj240.Steps = list373; reference283 = obj240; - num++; - ref QuestSequence reference284 = ref span372[num]; + ref QuestSequence reference284 = ref span161[1]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -377848,27 +311139,21 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span374 = CollectionsMarshal.AsSpan(list374); - index2 = 0; - span374[index2] = new QuestStep(EInteractionType.Interact, 1043804u, new Vector3(220.59961f, -699.9556f, 90.01294f), 1089); + CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.Interact, 1043804u, new Vector3(220.59961f, -699.9556f, 90.01294f), 1089); obj241.Steps = list374; reference284 = obj241; - num++; - ref QuestSequence reference285 = ref span372[num]; + ref QuestSequence reference285 = ref span161[2]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj242.Steps = list375; reference285 = obj242; - num++; - ref QuestSequence reference286 = ref span372[num]; + ref QuestSequence reference286 = ref span161[3]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -377876,14 +311161,12 @@ public static class AssemblyQuestLoader num2 = 2; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - span376[index2] = new QuestStep(EInteractionType.Interact, 2013112u, new Vector3(259.9318f, -706.408f, 90.01325f), 1089) + Span span162 = CollectionsMarshal.AsSpan(list376); + span162[0] = new QuestStep(EInteractionType.Interact, 2013112u, new Vector3(259.9318f, -706.408f, 90.01325f), 1089) { TargetTerritoryId = (ushort)1089 }; - index2++; - span376[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1043808u, new Vector3(-1.5107422f, -698.0104f, -150.83551f), 1089) + span162[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1043808u, new Vector3(-1.5107422f, -698.0104f, -150.83551f), 1089) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -377892,18 +311175,15 @@ public static class AssemblyQuestLoader }; obj243.Steps = list376; reference286 = obj243; - num++; - ref QuestSequence reference287 = ref span372[num]; + ref QuestSequence reference287 = ref span161[4]; QuestSequence obj244 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -377916,16 +311196,13 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - Span span378 = CollectionsMarshal.AsSpan(list378); - index = 0; - span378[index] = "liza"; + CollectionsMarshal.AsSpan(list378)[0] = "liza"; questRoot41.Author = list378; - index = 5; - List list379 = new List(index); - CollectionsMarshal.SetCount(list379, index); - Span span379 = CollectionsMarshal.AsSpan(list379); - num = 0; - ref QuestSequence reference288 = ref span379[num]; + num = 5; + List list379 = new List(num); + CollectionsMarshal.SetCount(list379, num); + Span span163 = CollectionsMarshal.AsSpan(list379); + ref QuestSequence reference288 = ref span163[0]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -377933,96 +311210,70 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span380 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - span380[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043815u, new Vector3(1.7241821f, -698.0104f, -138.1095f), 1089) + CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043815u, new Vector3(1.7241821f, -698.0104f, -138.1095f), 1089) { StopDistance = 5f }; obj245.Steps = list380; reference288 = obj245; - num++; - ref QuestSequence reference289 = ref span379[num]; + ref QuestSequence reference289 = ref span163[1]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1089 }; - num2++; - ref QuestStep reference290 = ref span381[num2]; + ref QuestStep reference290 = ref span164[1]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list382; reference290 = questStep26; - num2++; - ref QuestStep reference291 = ref span381[num2]; + ref QuestStep reference291 = ref span164[2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1043791u, new Vector3(-9.87262f, 350.62988f, -61.539734f), 1089); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list383; reference291 = questStep27; - num2++; - ref QuestStep reference292 = ref span381[num2]; + ref QuestStep reference292 = ref span164[3]; 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 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); + 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); questStep28.CompletionQuestVariablesFlags = list384; reference292 = questStep28; obj246.Steps = list381; reference289 = obj246; - num++; - ref QuestSequence reference293 = ref span379[num]; + ref QuestSequence reference293 = ref span163[2]; QuestSequence obj247 = new QuestSequence { Sequence = 2 @@ -378030,40 +311281,33 @@ public static class AssemblyQuestLoader num2 = 2; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span385 = CollectionsMarshal.AsSpan(list385); - index2 = 0; - span385[index2] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) + Span span168 = CollectionsMarshal.AsSpan(list385); + span168[0] = new QuestStep(EInteractionType.Interact, 2013115u, new Vector3(14.236633f, 351.27795f, 14.389221f), 1089) { TargetTerritoryId = (ushort)1089 }; - index2++; - span385[index2] = new QuestStep(EInteractionType.Interact, 1043814u, new Vector3(0.6866455f, -698.0104f, -139.75745f), 1089); + span168[1] = new QuestStep(EInteractionType.Interact, 1043814u, new Vector3(0.6866455f, -698.0104f, -139.75745f), 1089); obj247.Steps = list385; reference293 = obj247; - num++; - ref QuestSequence reference294 = ref span379[num]; + ref QuestSequence reference294 = ref span163[3]; QuestSequence obj248 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)1089 }; - num2++; - ref QuestStep reference295 = ref span386[num2]; + ref QuestStep reference295 = ref span169[1]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1043816u, new Vector3(13.595764f, 359.19916f, -110.12439f), 1089); - index3 = 1; - List list387 = new List(index3); - CollectionsMarshal.SetCount(list387, index3); - Span span387 = CollectionsMarshal.AsSpan(list387); - num3 = 0; - span387[num3] = new DialogueChoice + num3 = 1; + List list387 = new List(num3); + CollectionsMarshal.SetCount(list387, num3); + CollectionsMarshal.AsSpan(list387)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI104_04595_SYSTEM_000_322") @@ -378072,8 +311316,7 @@ public static class AssemblyQuestLoader reference295 = questStep29; obj248.Steps = list386; reference294 = obj248; - num++; - ref QuestSequence reference296 = ref span379[num]; + ref QuestSequence reference296 = ref span163[4]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue @@ -378081,9 +311324,7 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span388 = CollectionsMarshal.AsSpan(list388); - index2 = 0; - span388[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; @@ -378096,33 +311337,27 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - Span span389 = CollectionsMarshal.AsSpan(list389); - index = 0; - span389[index] = "liza"; + CollectionsMarshal.AsSpan(list389)[0] = "liza"; questRoot42.Author = list389; - index = 10; - List list390 = new List(index); - CollectionsMarshal.SetCount(list390, index); - Span span390 = CollectionsMarshal.AsSpan(list390); - num = 0; - ref QuestSequence reference297 = ref span390[num]; + num = 10; + List list390 = new List(num); + CollectionsMarshal.SetCount(list390, num); + Span span170 = CollectionsMarshal.AsSpan(list390); + ref QuestSequence reference297 = ref span170[0]; QuestSequence obj250 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj250.Steps = list391; reference297 = obj250; - num++; - ref QuestSequence reference298 = ref span390[num]; + ref QuestSequence reference298 = ref span170[1]; QuestSequence obj251 = new QuestSequence { Sequence = 1 @@ -378130,34 +311365,27 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - Span span392 = CollectionsMarshal.AsSpan(list392); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(-30.045044f, -0.50953794f, 33.798706f), 1077) { StopDistance = 5f }; obj251.Steps = list392; reference298 = obj251; - num++; - ref QuestSequence reference299 = ref span390[num]; + ref QuestSequence reference299 = ref span170[2]; QuestSequence obj252 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj252.Steps = list393; reference299 = obj252; - num++; - ref QuestSequence reference300 = ref span390[num]; + ref QuestSequence reference300 = ref span170[3]; QuestSequence obj253 = new QuestSequence { Sequence = 3 @@ -378165,30 +311393,24 @@ public static class AssemblyQuestLoader num2 = 1; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - Span span394 = CollectionsMarshal.AsSpan(list394); - index2 = 0; - span394[index2] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(27.317875f, -0.43000424f, -13.701547f), 1077) + CollectionsMarshal.AsSpan(list394)[0] = new QuestStep(EInteractionType.Interact, 1043822u, new Vector3(27.317875f, -0.43000424f, -13.701547f), 1077) { StopDistance = 0.25f }; obj253.Steps = list394; reference300 = obj253; - num++; - ref QuestSequence reference301 = ref span390[num]; + ref QuestSequence reference301 = ref span170[4]; QuestSequence obj254 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj254.Steps = list395; reference301 = obj254; - num++; - ref QuestSequence reference302 = ref span390[num]; + ref QuestSequence reference302 = ref span170[5]; QuestSequence obj255 = new QuestSequence { Sequence = 5 @@ -378196,16 +311418,12 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - Span span396 = CollectionsMarshal.AsSpan(list396); - index2 = 0; - ref QuestStep reference303 = ref span396[index2]; + ref QuestStep reference303 = ref CollectionsMarshal.AsSpan(list396)[0]; 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); - Span span397 = CollectionsMarshal.AsSpan(list397); - index3 = 0; - span397[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list397)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI105_04596_Q1_000_000"), @@ -378215,22 +311433,18 @@ public static class AssemblyQuestLoader reference303 = questStep30; obj255.Steps = list396; reference302 = obj255; - num++; - ref QuestSequence reference304 = ref span390[num]; + ref QuestSequence reference304 = ref span170[6]; QuestSequence obj256 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj256.Steps = list398; reference304 = obj256; - num++; - ref QuestSequence reference305 = ref span390[num]; + ref QuestSequence reference305 = ref span170[7]; QuestSequence obj257 = new QuestSequence { Sequence = 7 @@ -378238,30 +311452,23 @@ public static class AssemblyQuestLoader num2 = 1; List list399 = new List(num2); CollectionsMarshal.SetCount(list399, num2); - Span span399 = CollectionsMarshal.AsSpan(list399); - index2 = 0; - span399[index2] = new QuestStep(EInteractionType.Interact, 1043834u, new Vector3(56.198975f, 16.517479f, 82.20032f), 1077); + CollectionsMarshal.AsSpan(list399)[0] = new QuestStep(EInteractionType.Interact, 1043834u, new Vector3(56.198975f, 16.517479f, 82.20032f), 1077); obj257.Steps = list399; reference305 = obj257; - num++; - ref QuestSequence reference306 = ref span390[num]; + ref QuestSequence reference306 = ref span170[8]; QuestSequence obj258 = new QuestSequence { Sequence = 8 }; - index2 = 1; - List list400 = new List(index2); - CollectionsMarshal.SetCount(list400, index2); - Span span400 = CollectionsMarshal.AsSpan(list400); - num2 = 0; - ref QuestStep reference307 = ref span400[num2]; + num2 = 1; + List list400 = new List(num2); + CollectionsMarshal.SetCount(list400, num2); + ref QuestStep reference307 = ref CollectionsMarshal.AsSpan(list400)[0]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1043835u, new Vector3(134.41675f, 24.30001f, 60.501953f), 1077); - index3 = 1; - List list401 = new List(index3); - CollectionsMarshal.SetCount(list401, index3); - Span span401 = CollectionsMarshal.AsSpan(list401); - num3 = 0; - span401[num3] = new DialogueChoice + num3 = 1; + List list401 = new List(num3); + CollectionsMarshal.SetCount(list401, num3); + CollectionsMarshal.AsSpan(list401)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI105_04596_Q2_000_000"), @@ -378271,8 +311478,7 @@ public static class AssemblyQuestLoader reference307 = questStep31; obj258.Steps = list400; reference306 = obj258; - num++; - ref QuestSequence reference308 = ref span390[num]; + ref QuestSequence reference308 = ref span170[9]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue @@ -378280,9 +311486,7 @@ public static class AssemblyQuestLoader num2 = 1; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span402 = CollectionsMarshal.AsSpan(list402); - index2 = 0; - span402[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043836u, new Vector3(1.0223389f, -0.4f, -68.223145f), 1077) + CollectionsMarshal.AsSpan(list402)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043836u, new Vector3(1.0223389f, -0.4f, -68.223145f), 1077) { StopDistance = 5f }; @@ -378295,26 +311499,21 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - Span span403 = CollectionsMarshal.AsSpan(list403); - index = 0; - span403[index] = "liza"; + CollectionsMarshal.AsSpan(list403)[0] = "liza"; questRoot43.Author = list403; - index = 6; - List list404 = new List(index); - CollectionsMarshal.SetCount(list404, index); - Span span404 = CollectionsMarshal.AsSpan(list404); - num = 0; - ref QuestSequence reference309 = ref span404[num]; + num = 6; + List list404 = new List(num); + CollectionsMarshal.SetCount(list404, num); + Span span172 = CollectionsMarshal.AsSpan(list404); + ref QuestSequence reference309 = ref span172[0]; QuestSequence obj260 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list405 = new List(num2); + CollectionsMarshal.SetCount(list405, num2); + ref QuestStep reference310 = ref CollectionsMarshal.AsSpan(list405)[0]; QuestStep obj261 = new QuestStep(EInteractionType.AcceptQuest, 1043839u, new Vector3(-0.25946045f, -0.4f, -70.72565f), 1077) { StopDistance = 7f @@ -378322,9 +311521,7 @@ public static class AssemblyQuestLoader num3 = 1; List list406 = new List(num3); CollectionsMarshal.SetCount(list406, num3); - Span span406 = CollectionsMarshal.AsSpan(list406); - index3 = 0; - span406[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list406)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI106_04597_Q1_000_000"), @@ -378334,8 +311531,7 @@ public static class AssemblyQuestLoader reference310 = obj261; obj260.Steps = list405; reference309 = obj260; - num++; - ref QuestSequence reference311 = ref span404[num]; + ref QuestSequence reference311 = ref span172[1]; QuestSequence obj262 = new QuestSequence { Sequence = 1 @@ -378343,16 +311539,12 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span407 = CollectionsMarshal.AsSpan(list407); - index2 = 0; - ref QuestStep reference312 = ref span407[index2]; + ref QuestStep reference312 = ref CollectionsMarshal.AsSpan(list407)[0]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013053u, new Vector3(-0.16790771f, -0.16790771f, -74.87604f), 1077); - index3 = 1; - List list408 = new List(index3); - CollectionsMarshal.SetCount(list408, index3); - Span span408 = CollectionsMarshal.AsSpan(list408); - num3 = 0; - span408[num3] = new DialogueChoice + num3 = 1; + List list408 = new List(num3); + CollectionsMarshal.SetCount(list408, num3); + CollectionsMarshal.AsSpan(list408)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI106_04597_SYSTEM_000_120") @@ -378361,23 +311553,19 @@ public static class AssemblyQuestLoader reference312 = questStep32; obj262.Steps = list407; reference311 = obj262; - num++; - span404[num] = new QuestSequence + span172[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference313 = ref span404[num]; + ref QuestSequence reference313 = ref span172[3]; QuestSequence obj263 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list409 = new List(num2); + CollectionsMarshal.SetCount(list409, num2); + CollectionsMarshal.AsSpan(list409)[0] = new QuestStep(EInteractionType.Duty, null, null, 1092) { DutyOptions = new DutyOptions { @@ -378386,13 +311574,11 @@ public static class AssemblyQuestLoader }; obj263.Steps = list409; reference313 = obj263; - num++; - span404[num] = new QuestSequence + span172[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference314 = ref span404[num]; + ref QuestSequence reference314 = ref span172[5]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -378400,9 +311586,7 @@ public static class AssemblyQuestLoader num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - Span span410 = CollectionsMarshal.AsSpan(list410); - index2 = 0; - span410[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043840u, new Vector3(-29.434692f, -0.21963555f, 52.506226f), 1077) + CollectionsMarshal.AsSpan(list410)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043840u, new Vector3(-29.434692f, -0.21963555f, 52.506226f), 1077) { StopDistance = 5f }; @@ -378415,33 +311599,27 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - Span span411 = CollectionsMarshal.AsSpan(list411); - index = 0; - span411[index] = "liza"; + CollectionsMarshal.AsSpan(list411)[0] = "liza"; questRoot44.Author = list411; - index = 4; - List list412 = new List(index); - CollectionsMarshal.SetCount(list412, index); - Span span412 = CollectionsMarshal.AsSpan(list412); - num = 0; - ref QuestSequence reference315 = ref span412[num]; + num = 4; + List list412 = new List(num); + CollectionsMarshal.SetCount(list412, num); + Span span173 = CollectionsMarshal.AsSpan(list412); + ref QuestSequence reference315 = ref span173[0]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj265.Steps = list413; reference315 = obj265; - num++; - ref QuestSequence reference316 = ref span412[num]; + ref QuestSequence reference316 = ref span173[1]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -378449,30 +311627,23 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - Span span414 = CollectionsMarshal.AsSpan(list414); - index2 = 0; - span414[index2] = new QuestStep(EInteractionType.Interact, 1043844u, new Vector3(-50.736267f, -0.4300005f, -11.795227f), 1077); + CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Interact, 1043844u, new Vector3(-50.736267f, -0.4300005f, -11.795227f), 1077); obj266.Steps = list414; reference316 = obj266; - num++; - ref QuestSequence reference317 = ref span412[num]; + ref QuestSequence reference317 = ref span173[2]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list415 = new List(index2); - CollectionsMarshal.SetCount(list415, index2); - Span span415 = CollectionsMarshal.AsSpan(list415); - num2 = 0; - ref QuestStep reference318 = ref span415[num2]; + num2 = 1; + List list415 = new List(num2); + CollectionsMarshal.SetCount(list415, num2); + ref QuestStep reference318 = ref CollectionsMarshal.AsSpan(list415)[0]; 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); - Span span416 = CollectionsMarshal.AsSpan(list416); - index3 = 0; - span416[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list416)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI107_04598_SYSTEM_000_221") @@ -378481,8 +311652,7 @@ public static class AssemblyQuestLoader reference318 = questStep33; obj267.Steps = list415; reference317 = obj267; - num++; - ref QuestSequence reference319 = ref span412[num]; + ref QuestSequence reference319 = ref span173[3]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue @@ -378490,16 +311660,12 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - Span span417 = CollectionsMarshal.AsSpan(list417); - index2 = 0; - ref QuestStep reference320 = ref span417[index2]; + ref QuestStep reference320 = ref CollectionsMarshal.AsSpan(list417)[0]; QuestStep questStep34 = new QuestStep(EInteractionType.CompleteQuest, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963); - index3 = 1; - List list418 = new List(index3); - CollectionsMarshal.SetCount(list418, index3); - Span span418 = CollectionsMarshal.AsSpan(list418); - num3 = 0; - span418[num3] = new DialogueChoice + num3 = 1; + List list418 = new List(num3); + CollectionsMarshal.SetCount(list418, num3); + CollectionsMarshal.AsSpan(list418)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI107_04598_SYSTEM_000_401") @@ -378515,26 +311681,21 @@ public static class AssemblyQuestLoader num = 1; List list419 = new List(num); CollectionsMarshal.SetCount(list419, num); - Span span419 = CollectionsMarshal.AsSpan(list419); - index = 0; - span419[index] = "liza"; + CollectionsMarshal.AsSpan(list419)[0] = "liza"; questRoot45.Author = list419; - index = 9; - List list420 = new List(index); - CollectionsMarshal.SetCount(list420, index); - Span span420 = CollectionsMarshal.AsSpan(list420); - num = 0; - ref QuestSequence reference321 = ref span420[num]; + num = 9; + List list420 = new List(num); + CollectionsMarshal.SetCount(list420, num); + Span span174 = CollectionsMarshal.AsSpan(list420); + ref QuestSequence reference321 = ref span174[0]; QuestSequence obj269 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list421 = new List(num2); + CollectionsMarshal.SetCount(list421, num2); + ref QuestStep reference322 = ref CollectionsMarshal.AsSpan(list421)[0]; QuestStep obj270 = new QuestStep(EInteractionType.AcceptQuest, 1043848u, new Vector3(-1.5717163f, 0.008460393f, -1.8463745f), 1078) { StopDistance = 7f @@ -378542,9 +311703,7 @@ public static class AssemblyQuestLoader num3 = 1; List list422 = new List(num3); CollectionsMarshal.SetCount(list422, num3); - Span span422 = CollectionsMarshal.AsSpan(list422); - index3 = 0; - span422[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list422)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_Q1_000_000"), @@ -378554,8 +311713,7 @@ public static class AssemblyQuestLoader reference322 = obj270; obj269.Steps = list421; reference321 = obj269; - num++; - ref QuestSequence reference323 = ref span420[num]; + ref QuestSequence reference323 = ref span174[1]; QuestSequence obj271 = new QuestSequence { Sequence = 1 @@ -378563,15 +311721,13 @@ public static class AssemblyQuestLoader num2 = 2; List list423 = new List(num2); CollectionsMarshal.SetCount(list423, num2); - Span span423 = CollectionsMarshal.AsSpan(list423); - index2 = 0; - span423[index2] = new QuestStep(EInteractionType.Interact, 2013077u, new Vector3(-0.015319824f, 1.2359009f, 5.3864136f), 1078) + Span span175 = CollectionsMarshal.AsSpan(list423); + span175[0] = new QuestStep(EInteractionType.Interact, 2013077u, new Vector3(-0.015319824f, 1.2359009f, 5.3864136f), 1078) { StopDistance = 4f, TargetTerritoryId = (ushort)963 }; - index2++; - ref QuestStep reference324 = ref span423[index2]; + ref QuestStep reference324 = ref span175[1]; QuestStep obj272 = new QuestStep(EInteractionType.Interact, 1037381u, new Vector3(-23.697266f, 1.7999947f, -180.07172f), 963) { StopDistance = 5f, @@ -378581,12 +311737,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMehrydesMeyhane } }; - index3 = 1; - List list424 = new List(index3); - CollectionsMarshal.SetCount(list424, index3); - Span span424 = CollectionsMarshal.AsSpan(list424); - num3 = 0; - span424[num3] = new DialogueChoice + num3 = 1; + List list424 = new List(num3); + CollectionsMarshal.SetCount(list424, num3); + CollectionsMarshal.AsSpan(list424)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_Q3_000_000"), @@ -378596,18 +311750,15 @@ public static class AssemblyQuestLoader reference324 = obj272; obj271.Steps = list423; reference323 = obj271; - num++; - ref QuestSequence reference325 = ref span420[num]; + ref QuestSequence reference325 = ref span174[2]; QuestSequence obj273 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list425 = new List(index2); - CollectionsMarshal.SetCount(list425, index2); - Span span425 = CollectionsMarshal.AsSpan(list425); - num2 = 0; - ref QuestStep reference326 = ref span425[num2]; + num2 = 1; + List list425 = new List(num2); + CollectionsMarshal.SetCount(list425, num2); + ref QuestStep reference326 = ref CollectionsMarshal.AsSpan(list425)[0]; QuestStep obj274 = new QuestStep(EInteractionType.Interact, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -378619,9 +311770,7 @@ public static class AssemblyQuestLoader num3 = 1; List list426 = new List(num3); CollectionsMarshal.SetCount(list426, num3); - Span span426 = CollectionsMarshal.AsSpan(list426); - index3 = 0; - span426[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list426)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI108_04599_SYSTEM_000_211") @@ -378630,8 +311779,7 @@ public static class AssemblyQuestLoader reference326 = obj274; obj273.Steps = list425; reference325 = obj273; - num++; - ref QuestSequence reference327 = ref span420[num]; + ref QuestSequence reference327 = ref span174[3]; QuestSequence obj275 = new QuestSequence { Sequence = 3 @@ -378639,23 +311787,18 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span427 = CollectionsMarshal.AsSpan(list427); - index2 = 0; - span427[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-353.3227f, 54.999992f, -79.60632f), 963); + CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-353.3227f, 54.999992f, -79.60632f), 963); obj275.Steps = list427; reference327 = obj275; - num++; - ref QuestSequence reference328 = ref span420[num]; + ref QuestSequence reference328 = ref span174[4]; QuestSequence obj276 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -378665,8 +311808,7 @@ public static class AssemblyQuestLoader }; obj276.Steps = list428; reference328 = obj276; - num++; - ref QuestSequence reference329 = ref span420[num]; + ref QuestSequence reference329 = ref span174[5]; QuestSequence obj277 = new QuestSequence { Sequence = 5 @@ -378674,33 +311816,27 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - Span span429 = CollectionsMarshal.AsSpan(list429); - index2 = 0; - span429[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-33.52105f, 0.59983087f, -74.57541f), 963) + CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-33.52105f, 0.59983087f, -74.57541f), 963) { StopDistance = 0.25f }; obj277.Steps = list429; reference329 = obj277; - num++; - ref QuestSequence reference330 = ref span420[num]; + ref QuestSequence reference330 = ref span174[6]; QuestSequence obj278 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj278.Steps = list430; reference330 = obj278; - num++; - ref QuestSequence reference331 = ref span420[num]; + ref QuestSequence reference331 = ref span174[7]; QuestSequence obj279 = new QuestSequence { Sequence = 7 @@ -378708,9 +311844,7 @@ public static class AssemblyQuestLoader num2 = 1; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span431 = CollectionsMarshal.AsSpan(list431); - index2 = 0; - span431[index2] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-159.23143f, 36.051323f, 70.24f), 963) + CollectionsMarshal.AsSpan(list431)[0] = new QuestStep(EInteractionType.Interact, 1043852u, new Vector3(-159.23143f, 36.051323f, 70.24f), 963) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -378721,18 +311855,15 @@ public static class AssemblyQuestLoader }; obj279.Steps = list431; reference331 = obj279; - num++; - ref QuestSequence reference332 = ref span420[num]; + ref QuestSequence reference332 = ref span174[8]; QuestSequence obj280 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj280.Steps = list432; reference332 = obj280; questRoot45.QuestSequence = list420; @@ -378746,16 +311877,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -378763,23 +311891,18 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043858u, new Vector3(-159.89929f, 36.051323f, 67.27698f), 963); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043858u, new Vector3(-159.89929f, 36.051323f, 67.27698f), 963); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -378791,9 +311914,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMI109_04600_SYSTEM_000_020") @@ -378802,8 +311923,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue @@ -378811,9 +311931,7 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { StopDistance = 5f }; @@ -378826,34 +311944,28 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot2.Author = list7; - index = 8; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 8; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span2[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span2[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 @@ -378861,45 +311973,37 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.Interact, 1043518u, new Vector3(456.32092f, 437.00073f, 315.69385f), 960) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.Interact, 1043518u, new Vector3(456.32092f, 437.00073f, 315.69385f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span2[2]; QuestSequence obj7 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference8 = ref span11[num2]; + num2 = 2; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + Span span3 = CollectionsMarshal.AsSpan(list11); + ref QuestStep reference8 = ref span3[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013076u, new Vector3(456.65674f, 438.04077f, 310.2616f), 960); - index3 = 1; - List list12 = new List(index3); - CollectionsMarshal.SetCount(list12, index3); - Span span12 = CollectionsMarshal.AsSpan(list12); - num3 = 0; - span12[num3] = new DialogueChoice + num3 = 1; + List list12 = new List(num3); + CollectionsMarshal.SetCount(list12, num3); + CollectionsMarshal.AsSpan(list12)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; questStep.DialogueChoices = list12; reference8 = questStep; - num2++; - span11[num2] = new QuestStep(EInteractionType.Interact, 2013034u, new Vector3(304.37158f, 483.48206f, 143.14478f), 960); + span3[1] = new QuestStep(EInteractionType.Interact, 2013034u, new Vector3(304.37158f, 483.48206f, 143.14478f), 960); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference9 = ref span8[num]; + ref QuestSequence reference9 = ref span2[3]; QuestSequence obj8 = new QuestSequence { Sequence = 3 @@ -378907,105 +312011,85 @@ public static class AssemblyQuestLoader num2 = 3; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span4 = CollectionsMarshal.AsSpan(list13); + span4[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - index2++; - ref QuestStep reference10 = ref span13[index2]; + ref QuestStep reference10 = ref span4[1]; 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); - Span span14 = CollectionsMarshal.AsSpan(list14); - index3 = 0; - span14[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list14)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q6_000_000") }; questStep2.DialogueChoices = list14; reference10 = questStep2; - index2++; - span13[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.50006f, 246.72314f), 960); + span4[2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.50006f, 246.72314f), 960); obj8.Steps = list13; reference9 = obj8; - num++; - ref QuestSequence reference11 = ref span8[num]; + ref QuestSequence reference11 = ref span2[4]; QuestSequence obj9 = new QuestSequence { Sequence = 4 }; - index2 = 5; - List list15 = new List(index2); - CollectionsMarshal.SetCount(list15, index2); - Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - ref QuestStep reference12 = ref span15[num2]; + num2 = 5; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference12 = ref span5[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = EExtendedClassJob.Miner; questStep3.RequiredQuestAcceptedJob = list16; num3 = 1; List list17 = new List(num3); CollectionsMarshal.SetCount(list17, num3); - Span span17 = CollectionsMarshal.AsSpan(list17); - index3 = 0; - span17[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list17)[0] = new GatheredItem { ItemId = 38276u, ItemCount = 3 }; questStep3.ItemsToGather = list17; reference12 = questStep3; - num2++; - ref QuestStep reference13 = ref span15[num2]; + ref QuestStep reference13 = ref span5[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list18 = new List(index3); - CollectionsMarshal.SetCount(list18, index3); - Span span18 = CollectionsMarshal.AsSpan(list18); - num3 = 0; - span18[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + CollectionsMarshal.AsSpan(list18)[0] = EExtendedClassJob.Botanist; questStep4.RequiredQuestAcceptedJob = list18; num3 = 1; List list19 = new List(num3); CollectionsMarshal.SetCount(list19, num3); - Span span19 = CollectionsMarshal.AsSpan(list19); - index3 = 0; - span19[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list19)[0] = new GatheredItem { ItemId = 38300u, ItemCount = 3 }; questStep4.ItemsToGather = list19; reference13 = questStep4; - num2++; - ref QuestStep reference14 = ref span15[num2]; + ref QuestStep reference14 = ref span5[2]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index3 = 1; - List list20 = new List(index3); - CollectionsMarshal.SetCount(list20, index3); - Span span20 = CollectionsMarshal.AsSpan(list20); - num3 = 0; - span20[num3] = new DialogueChoice + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; obj10.DialogueChoices = list20; reference14 = obj10; - num2++; - ref QuestStep reference15 = ref span15[num2]; + ref QuestStep reference15 = ref span5[3]; QuestStep obj11 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 @@ -379013,21 +312097,17 @@ public static class AssemblyQuestLoader num3 = 1; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - Span span21 = CollectionsMarshal.AsSpan(list21); - index3 = 0; - span21[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list21)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q6_000_000") }; obj11.DialogueChoices = list21; reference15 = obj11; - num2++; - span15[num2] = new QuestStep(EInteractionType.Interact, 1044190u, new Vector3(203.84521f, 567.50006f, 246.87573f), 960); + span5[4] = new QuestStep(EInteractionType.Interact, 1044190u, new Vector3(203.84521f, 567.50006f, 246.87573f), 960); obj9.Steps = list15; reference11 = obj9; - num++; - ref QuestSequence reference16 = ref span8[num]; + ref QuestSequence reference16 = ref span2[5]; QuestSequence obj12 = new QuestSequence { Sequence = 5 @@ -379035,42 +312115,34 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference17 = ref span22[index2]; + Span span6 = CollectionsMarshal.AsSpan(list22); + ref QuestStep reference17 = ref span6[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960); - index3 = 1; - List list23 = new List(index3); - CollectionsMarshal.SetCount(list23, index3); - Span span23 = CollectionsMarshal.AsSpan(list23); - num3 = 0; - span23[num3] = new DialogueChoice + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI001_04601_Q5_000_000") }; questStep5.DialogueChoices = list23; reference17 = questStep5; - index2++; - span22[index2] = new QuestStep(EInteractionType.Interact, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); + span6[1] = new QuestStep(EInteractionType.Interact, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); obj12.Steps = list22; reference16 = obj12; - num++; - ref QuestSequence reference18 = ref span8[num]; + ref QuestSequence reference18 = ref span2[6]; QuestSequence obj13 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj13.Steps = list24; reference18 = obj13; - num++; - ref QuestSequence reference19 = ref span8[num]; + ref QuestSequence reference19 = ref span2[7]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -379078,14 +312150,12 @@ public static class AssemblyQuestLoader num2 = 2; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span7 = CollectionsMarshal.AsSpan(list25); + span7[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - index2++; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); + span7[1] = new QuestStep(EInteractionType.CompleteQuest, 1043514u, new Vector3(303.82227f, 481.99442f, 154.83325f), 960); obj14.Steps = list25; reference19 = obj14; questRoot2.QuestSequence = list8; @@ -379095,30 +312165,24 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list26)[0] = "plogon_enjoyer"; questRoot3.Author = list26; - index = 9; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 9; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span8 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span8[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj15.Steps = list28; reference20 = obj15; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span8[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -379126,9 +312190,8 @@ public static class AssemblyQuestLoader num2 = 2; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - ref QuestStep reference22 = ref span29[index2]; + Span span9 = CollectionsMarshal.AsSpan(list29); + ref QuestStep reference22 = ref span9[0]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { Mount = true @@ -379136,45 +312199,38 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - span30[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list30)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI002_04602_Q5_000_000") }; obj17.DialogueChoices = list30; reference22 = obj17; - index2++; - span29[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + span9[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj16.Steps = list29; reference21 = obj16; - num++; - ref QuestSequence reference23 = ref span27[num]; + ref QuestSequence reference23 = ref span8[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)960, Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span31[num2] = new QuestStep(EInteractionType.Interact, 1043527u, new Vector3(463.5537f, 417.06747f, 407.12585f), 960); + span10[1] = new QuestStep(EInteractionType.Interact, 1043527u, new Vector3(463.5537f, 417.06747f, 407.12585f), 960); obj18.Steps = list31; reference23 = obj18; - num++; - ref QuestSequence reference24 = ref span27[num]; + ref QuestSequence reference24 = ref span8[3]; QuestSequence obj19 = new QuestSequence { Sequence = 3 @@ -379182,43 +312238,36 @@ public static class AssemblyQuestLoader num2 = 3; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.Interact, 2012485u, new Vector3(469.3828f, 418.14294f, 403.3722f), 960) + Span span11 = CollectionsMarshal.AsSpan(list32); + span11[0] = new QuestStep(EInteractionType.Interact, 2012485u, new Vector3(469.3828f, 418.14294f, 403.3722f), 960) { TargetTerritoryId = (ushort)960 }; - index2++; - span32[index2] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) + span11[1] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) { Mount = true }; - index2++; - span32[index2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) + span11[2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) { Mount = true }; obj19.Steps = list32; reference24 = obj19; - num++; - ref QuestSequence reference25 = ref span27[num]; + ref QuestSequence reference25 = ref span8[4]; QuestSequence obj20 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Mount = true }; obj20.Steps = list33; reference25 = obj20; - num++; - ref QuestSequence reference26 = ref span27[num]; + ref QuestSequence reference26 = ref span8[5]; QuestSequence obj21 = new QuestSequence { Sequence = 5 @@ -379226,34 +312275,28 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1043533u, new Vector3(77.3479f, 269.00006f, -607.72107f), 960) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1043533u, new Vector3(77.3479f, 269.00006f, -607.72107f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj21.Steps = list34; reference26 = obj21; - num++; - ref QuestSequence reference27 = ref span27[num]; + ref QuestSequence reference27 = ref span8[6]; QuestSequence obj22 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj22.Steps = list35; reference27 = obj22; - num++; - ref QuestSequence reference28 = ref span27[num]; + ref QuestSequence reference28 = ref span8[7]; QuestSequence obj23 = new QuestSequence { Sequence = 7 @@ -379261,101 +312304,83 @@ public static class AssemblyQuestLoader num2 = 5; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference29 = ref span36[index2]; + Span span12 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference29 = ref span12[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list37 = new List(index3); - CollectionsMarshal.SetCount(list37, index3); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = EExtendedClassJob.Miner; questStep6.RequiredQuestAcceptedJob = list37; num3 = 1; List list38 = new List(num3); CollectionsMarshal.SetCount(list38, num3); - Span span38 = CollectionsMarshal.AsSpan(list38); - index3 = 0; - span38[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list38)[0] = new GatheredItem { ItemId = 38277u, ItemCount = 3 }; questStep6.ItemsToGather = list38; reference29 = questStep6; - index2++; - ref QuestStep reference30 = ref span36[index2]; + ref QuestStep reference30 = ref span12[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list39 = new List(index3); - CollectionsMarshal.SetCount(list39, index3); - Span span39 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - span39[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + CollectionsMarshal.AsSpan(list39)[0] = EExtendedClassJob.Botanist; questStep7.RequiredQuestAcceptedJob = list39; num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - index3 = 0; - span40[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list40)[0] = new GatheredItem { ItemId = 38301u, ItemCount = 3 }; questStep7.ItemsToGather = list40; reference30 = questStep7; - index2++; - span36[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span12[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span36[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span12[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - index2++; - span36[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + span12[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj23.Steps = list36; reference28 = obj23; - num++; - ref QuestSequence reference31 = ref span27[num]; + ref QuestSequence reference31 = ref span8[8]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list41 = new List(index2); - CollectionsMarshal.SetCount(list41, index2); - Span span41 = CollectionsMarshal.AsSpan(list41); - num2 = 0; - ref QuestStep reference32 = ref span41[num2]; + num2 = 2; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + Span span13 = CollectionsMarshal.AsSpan(list41); + ref QuestStep reference32 = ref span13[0]; QuestStep obj25 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { Fly = true }; - index3 = 1; - List list42 = new List(index3); - CollectionsMarshal.SetCount(list42, index3); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span42[num3] = new DialogueChoice + num3 = 1; + List list42 = new List(num3); + CollectionsMarshal.SetCount(list42, num3); + CollectionsMarshal.AsSpan(list42)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI002_04602_Q2_000_000") }; obj25.DialogueChoices = list42; reference32 = obj25; - num2++; - span41[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj24.Steps = list41; reference31 = obj24; questRoot3.QuestSequence = list27; @@ -379365,16 +312390,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list43)[0] = "plogon_enjoyer"; questRoot4.Author = list43; - index = 8; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 8; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span14 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span14[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -379382,23 +312404,19 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj26.Steps = list45; reference33 = obj26; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span14[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list46 = new List(index2); - CollectionsMarshal.SetCount(list46, index2); - Span span46 = CollectionsMarshal.AsSpan(list46); - num2 = 0; - ref QuestStep reference35 = ref span46[num2]; + num2 = 2; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + Span span15 = CollectionsMarshal.AsSpan(list46); + ref QuestStep reference35 = ref span15[0]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { Mount = true @@ -379406,24 +312424,20 @@ public static class AssemblyQuestLoader num3 = 1; List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - Span span47 = CollectionsMarshal.AsSpan(list47); - index3 = 0; - span47[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q9_000_000") }; obj28.DialogueChoices = list47; reference35 = obj28; - num2++; - span46[num2] = new QuestStep(EInteractionType.Interact, 1043539u, new Vector3(205.92041f, 566f, 257.2517f), 960) + span15[1] = new QuestStep(EInteractionType.Interact, 1043539u, new Vector3(205.92041f, 566f, 257.2517f), 960) { Fly = true }; obj27.Steps = list46; reference34 = obj27; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span14[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -379431,39 +312445,33 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj29.Steps = list48; reference36 = obj29; - num++; - ref QuestSequence reference37 = ref span44[num]; + ref QuestSequence reference37 = ref span14[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; - num2++; - span49[num2] = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) + span16[1] = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) { Fly = true }; obj30.Steps = list49; reference37 = obj30; - num++; - ref QuestSequence reference38 = ref span44[num]; + ref QuestSequence reference38 = ref span14[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -379471,36 +312479,29 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 1043547u, new Vector3(110.30737f, 269.03677f, -626.7338f), 960) { Fly = true }; obj31.Steps = list50; reference38 = obj31; - num++; - ref QuestSequence reference39 = ref span44[num]; + ref QuestSequence reference39 = ref span14[5]; QuestSequence obj32 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list51 = new List(index2); - CollectionsMarshal.SetCount(list51, index2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num2 = 0; - ref QuestStep reference40 = ref span51[num2]; + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1043549u, new Vector3(46.219482f, 269.597f, -474.60138f), 960) { Fly = true }; - index3 = 1; - List list52 = new List(index3); - CollectionsMarshal.SetCount(list52, index3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = new DialogueChoice + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q2_000_000") @@ -379509,8 +312510,7 @@ public static class AssemblyQuestLoader reference40 = obj33; obj32.Steps = list51; reference39 = obj32; - num++; - ref QuestSequence reference41 = ref span44[num]; + ref QuestSequence reference41 = ref span14[6]; QuestSequence obj34 = new QuestSequence { Sequence = 6 @@ -379518,83 +312518,68 @@ public static class AssemblyQuestLoader num2 = 5; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - ref QuestStep reference42 = ref span53[index2]; + Span span17 = CollectionsMarshal.AsSpan(list53); + ref QuestStep reference42 = ref span17[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 960); num3 = 1; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - index3 = 0; - span54[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list54)[0] = EExtendedClassJob.Miner; questStep8.RequiredQuestAcceptedJob = list54; - index3 = 1; - List list55 = new List(index3); - CollectionsMarshal.SetCount(list55, index3); - Span span55 = CollectionsMarshal.AsSpan(list55); - num3 = 0; - span55[num3] = new GatheredItem + num3 = 1; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + CollectionsMarshal.AsSpan(list55)[0] = new GatheredItem { ItemId = 38278u, ItemCount = 3 }; questStep8.ItemsToGather = list55; reference42 = questStep8; - index2++; - ref QuestStep reference43 = ref span53[index2]; + ref QuestStep reference43 = ref span17[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 960); num3 = 1; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - Span span56 = CollectionsMarshal.AsSpan(list56); - index3 = 0; - span56[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list56)[0] = EExtendedClassJob.Botanist; questStep9.RequiredQuestAcceptedJob = list56; - index3 = 1; - List list57 = new List(index3); - CollectionsMarshal.SetCount(list57, index3); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = new GatheredItem + num3 = 1; + List list57 = new List(num3); + CollectionsMarshal.SetCount(list57, num3); + CollectionsMarshal.AsSpan(list57)[0] = new GatheredItem { ItemId = 38302u, ItemCount = 3 }; questStep9.ItemsToGather = list57; reference43 = questStep9; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span17[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span17[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + span17[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj34.Steps = list53; reference41 = obj34; - num++; - ref QuestSequence reference44 = ref span44[num]; + ref QuestSequence reference44 = ref span14[7]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list58 = new List(index2); - CollectionsMarshal.SetCount(list58, index2); - Span span58 = CollectionsMarshal.AsSpan(list58); - num2 = 0; - ref QuestStep reference45 = ref span58[num2]; + num2 = 2; + List list58 = new List(num2); + CollectionsMarshal.SetCount(list58, num2); + Span span18 = CollectionsMarshal.AsSpan(list58); + ref QuestStep reference45 = ref span18[0]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { Fly = true @@ -379602,17 +312587,14 @@ public static class AssemblyQuestLoader num3 = 1; List list59 = new List(num3); CollectionsMarshal.SetCount(list59, num3); - Span span59 = CollectionsMarshal.AsSpan(list59); - index3 = 0; - span59[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI003_04603_Q8_000_000") }; obj36.DialogueChoices = list59; reference45 = obj36; - num2++; - span58[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj35.Steps = list58; reference44 = obj35; questRoot4.QuestSequence = list44; @@ -379622,16 +312604,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list60)[0] = "plogon_enjoyer"; questRoot5.Author = list60; - index = 6; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference46 = ref span61[num]; + num = 6; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span19 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference46 = ref span19[0]; QuestSequence obj37 = new QuestSequence { Sequence = 0 @@ -379639,49 +312618,41 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj37.Steps = list62; reference46 = obj37; - num++; - ref QuestSequence reference47 = ref span61[num]; + ref QuestSequence reference47 = ref span19[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference48 = ref span63[num2]; + num2 = 2; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span20 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference48 = ref span20[0]; QuestStep obj39 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - index3 = 1; - List list64 = new List(index3); - CollectionsMarshal.SetCount(list64, index3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new DialogueChoice + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI004_04604_Q5_000_000") }; obj39.DialogueChoices = list64; reference48 = obj39; - num2++; - span63[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + span20[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj38.Steps = list63; reference47 = obj38; - num++; - ref QuestSequence reference49 = ref span61[num]; + ref QuestSequence reference49 = ref span19[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -379689,35 +312660,29 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1043559u, new Vector3(-573.3883f, 73.033104f, 212.78699f), 960) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1043559u, new Vector3(-573.3883f, 73.033104f, 212.78699f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj40.Steps = list65; reference49 = obj40; - num++; - ref QuestSequence reference50 = ref span61[num]; + ref QuestSequence reference50 = ref span19[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.DravanianForelandsAnyxTrine }; obj41.Steps = list66; reference50 = obj41; - num++; - ref QuestSequence reference51 = ref span61[num]; + ref QuestSequence reference51 = ref span19[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 @@ -379725,53 +312690,42 @@ public static class AssemblyQuestLoader num2 = 5; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - ref QuestStep reference52 = ref span67[index2]; + Span span21 = CollectionsMarshal.AsSpan(list67); + ref QuestStep reference52 = ref span21[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 398); num3 = 1; List list68 = new List(num3); CollectionsMarshal.SetCount(list68, num3); - Span span68 = CollectionsMarshal.AsSpan(list68); - index3 = 0; - span68[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list68)[0] = EExtendedClassJob.Miner; questStep10.RequiredQuestAcceptedJob = list68; - index3 = 1; - List list69 = new List(index3); - CollectionsMarshal.SetCount(list69, index3); - Span span69 = CollectionsMarshal.AsSpan(list69); - num3 = 0; - span69[num3] = new GatheredItem + num3 = 1; + List list69 = new List(num3); + CollectionsMarshal.SetCount(list69, num3); + CollectionsMarshal.AsSpan(list69)[0] = new GatheredItem { ItemId = 38279u, ItemCount = 3 }; questStep10.ItemsToGather = list69; reference52 = questStep10; - index2++; - ref QuestStep reference53 = ref span67[index2]; + ref QuestStep reference53 = ref span21[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 398); num3 = 1; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - Span span70 = CollectionsMarshal.AsSpan(list70); - index3 = 0; - span70[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list70)[0] = EExtendedClassJob.Botanist; questStep11.RequiredQuestAcceptedJob = list70; - index3 = 1; - List list71 = new List(index3); - CollectionsMarshal.SetCount(list71, index3); - Span span71 = CollectionsMarshal.AsSpan(list71); - num3 = 0; - span71[num3] = new GatheredItem + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = new GatheredItem { ItemId = 38303u, ItemCount = 3 }; questStep11.ItemsToGather = list71; reference53 = questStep11; - index2++; - span67[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span21[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, @@ -379784,31 +312738,27 @@ public static class AssemblyQuestLoader } } }; - index2++; - span67[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span21[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - index2++; - span67[index2] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) + span21[4] = new QuestStep(EInteractionType.Interact, 1043585u, new Vector3(203.84521f, 567.4998f, 246.87573f), 960) { Fly = true }; obj42.Steps = list67; reference51 = obj42; - num++; - ref QuestSequence reference54 = ref span61[num]; + ref QuestSequence reference54 = ref span19[5]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list72 = new List(index2); - CollectionsMarshal.SetCount(list72, index2); - Span span72 = CollectionsMarshal.AsSpan(list72); - num2 = 0; - ref QuestStep reference55 = ref span72[num2]; + num2 = 2; + List list72 = new List(num2); + CollectionsMarshal.SetCount(list72, num2); + Span span22 = CollectionsMarshal.AsSpan(list72); + ref QuestStep reference55 = ref span22[0]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -379817,17 +312767,14 @@ public static class AssemblyQuestLoader num3 = 1; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - Span span73 = CollectionsMarshal.AsSpan(list73); - index3 = 0; - span73[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list73)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI004_04604_Q4_000_000") }; obj44.DialogueChoices = list73; reference55 = obj44; - num2++; - span72[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span22[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj43.Steps = list72; reference54 = obj43; questRoot5.QuestSequence = list61; @@ -379837,16 +312784,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list74)[0] = "plogon_enjoyer"; questRoot6.Author = list74; - index = 8; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference56 = ref span75[num]; + num = 8; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span23 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference56 = ref span23[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -379854,48 +312798,40 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj45.Steps = list76; reference56 = obj45; - num++; - ref QuestSequence reference57 = ref span75[num]; + ref QuestSequence reference57 = ref span23[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list77 = new List(index2); - CollectionsMarshal.SetCount(list77, index2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num2 = 0; - ref QuestStep reference58 = ref span77[num2]; + num2 = 2; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + Span span24 = CollectionsMarshal.AsSpan(list77); + ref QuestStep reference58 = ref span24[0]; QuestStep obj47 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - index3 = 1; - List list78 = new List(index3); - CollectionsMarshal.SetCount(list78, index3); - Span span78 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - span78[num3] = new DialogueChoice + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI005_04605_Q5_000_000") }; obj47.DialogueChoices = list78; reference58 = obj47; - num2++; - span77[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + span24[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj46.Steps = list77; reference57 = obj46; - num++; - ref QuestSequence reference59 = ref span75[num]; + ref QuestSequence reference59 = ref span23[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -379903,39 +312839,33 @@ public static class AssemblyQuestLoader num2 = 2; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) + Span span25 = CollectionsMarshal.AsSpan(list79); + span25[0] = new QuestStep(EInteractionType.Interact, 1043530u, new Vector3(475.0896f, 437.00183f, 319.53918f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span79[index2] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) + span25[1] = new QuestStep(EInteractionType.Interact, 1043529u, new Vector3(504.90576f, 436.9996f, 341.5122f), 960) { Fly = true }; obj48.Steps = list79; reference59 = obj48; - num++; - ref QuestSequence reference60 = ref span75[num]; + ref QuestSequence reference60 = ref span23[3]; QuestSequence obj49 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj49.Steps = list80; reference60 = obj49; - num++; - ref QuestSequence reference61 = ref span75[num]; + ref QuestSequence reference61 = ref span23[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -379943,43 +312873,36 @@ public static class AssemblyQuestLoader num2 = 3; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span26 = CollectionsMarshal.AsSpan(list81); + span26[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span81[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span26[1] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - index2++; - span81[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + span26[2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj50.Steps = list81; reference61 = obj50; - num++; - ref QuestSequence reference62 = ref span75[num]; + ref QuestSequence reference62 = ref span23[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj51.Steps = list82; reference62 = obj51; - num++; - ref QuestSequence reference63 = ref span75[num]; + ref QuestSequence reference63 = ref span23[6]; QuestSequence obj52 = new QuestSequence { Sequence = 6 @@ -379987,83 +312910,68 @@ public static class AssemblyQuestLoader num2 = 5; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference64 = ref span83[index2]; + Span span27 = CollectionsMarshal.AsSpan(list83); + ref QuestStep reference64 = ref span27[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - Span span84 = CollectionsMarshal.AsSpan(list84); - index3 = 0; - span84[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list84)[0] = EExtendedClassJob.Miner; questStep12.RequiredQuestAcceptedJob = list84; - index3 = 1; - List list85 = new List(index3); - CollectionsMarshal.SetCount(list85, index3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num3 = 0; - span85[num3] = new GatheredItem + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = new GatheredItem { ItemId = 38280u, ItemCount = 3 }; questStep12.ItemsToGather = list85; reference64 = questStep12; - index2++; - ref QuestStep reference65 = ref span83[index2]; + ref QuestStep reference65 = ref span27[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list86 = new List(num3); CollectionsMarshal.SetCount(list86, num3); - Span span86 = CollectionsMarshal.AsSpan(list86); - index3 = 0; - span86[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list86)[0] = EExtendedClassJob.Botanist; questStep13.RequiredQuestAcceptedJob = list86; - index3 = 1; - List list87 = new List(index3); - CollectionsMarshal.SetCount(list87, index3); - Span span87 = CollectionsMarshal.AsSpan(list87); - num3 = 0; - span87[num3] = new GatheredItem + num3 = 1; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + CollectionsMarshal.AsSpan(list87)[0] = new GatheredItem { ItemId = 38304u, ItemCount = 3 }; questStep13.ItemsToGather = list87; reference65 = questStep13; - index2++; - span83[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span27[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span83[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span27[3] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - index2++; - span83[index2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + span27[4] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj52.Steps = list83; reference63 = obj52; - num++; - ref QuestSequence reference66 = ref span75[num]; + ref QuestSequence reference66 = ref span23[7]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list88 = new List(index2); - CollectionsMarshal.SetCount(list88, index2); - Span span88 = CollectionsMarshal.AsSpan(list88); - num2 = 0; - ref QuestStep reference67 = ref span88[num2]; + num2 = 2; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + Span span28 = CollectionsMarshal.AsSpan(list88); + ref QuestStep reference67 = ref span28[0]; QuestStep obj54 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -380072,17 +312980,14 @@ public static class AssemblyQuestLoader num3 = 1; List list89 = new List(num3); CollectionsMarshal.SetCount(list89, num3); - Span span89 = CollectionsMarshal.AsSpan(list89); - index3 = 0; - span89[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI005_04605_Q6_000_000") }; obj54.DialogueChoices = list89; reference67 = obj54; - num2++; - span88[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); + span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); obj53.Steps = list88; reference66 = obj53; questRoot6.QuestSequence = list75; @@ -380092,16 +312997,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list90)[0] = "plogon_enjoyer"; questRoot7.Author = list90; - index = 5; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference68 = ref span91[num]; + num = 5; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span29 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference68 = ref span29[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -380109,48 +313011,40 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj55.Steps = list92; reference68 = obj55; - num++; - ref QuestSequence reference69 = ref span91[num]; + ref QuestSequence reference69 = ref span29[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list93 = new List(index2); - CollectionsMarshal.SetCount(list93, index2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num2 = 0; - ref QuestStep reference70 = ref span93[num2]; + num2 = 2; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span30 = CollectionsMarshal.AsSpan(list93); + ref QuestStep reference70 = ref span30[0]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - index3 = 1; - List list94 = new List(index3); - CollectionsMarshal.SetCount(list94, index3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = new DialogueChoice + num3 = 1; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI006_04606_Q5_000_000") }; obj57.DialogueChoices = list94; reference70 = obj57; - num2++; - span93[num2] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) + span30[1] = new QuestStep(EInteractionType.Interact, 1043586u, new Vector3(205.3711f, 567.4998f, 246.72314f), 960) { Fly = true }; obj56.Steps = list93; reference69 = obj56; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span29[2]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -380158,33 +313052,25 @@ public static class AssemblyQuestLoader num2 = 4; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - 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); + 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); obj58.Steps = list95; reference71 = obj58; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span29[3]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj59.Steps = list96; reference72 = obj59; - num++; - ref QuestSequence reference73 = ref span91[num]; + ref QuestSequence reference73 = ref span29[4]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue @@ -380192,9 +313078,8 @@ public static class AssemblyQuestLoader num2 = 2; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - ref QuestStep reference74 = ref span97[index2]; + Span span32 = CollectionsMarshal.AsSpan(list97); + ref QuestStep reference74 = ref span32[0]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, @@ -380203,17 +313088,14 @@ public static class AssemblyQuestLoader num3 = 1; List list98 = new List(num3); CollectionsMarshal.SetCount(list98, num3); - Span span98 = CollectionsMarshal.AsSpan(list98); - index3 = 0; - span98[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANOMI006_04606_Q6_000_000") }; obj61.DialogueChoices = list98; reference74 = obj61; - index2++; - span97[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span32[1] = new QuestStep(EInteractionType.CompleteQuest, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj60.Steps = list97; reference73 = obj60; questRoot7.QuestSequence = list91; @@ -380223,30 +313105,24 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot8.Author = list99; - index = 3; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference75 = ref span100[num]; + num = 3; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span33 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference75 = ref span33[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj62.Steps = list101; reference75 = obj62; - num++; - ref QuestSequence reference76 = ref span100[num]; + ref QuestSequence reference76 = ref span33[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -380254,75 +313130,61 @@ public static class AssemblyQuestLoader num2 = 3; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - ref QuestStep reference77 = ref span102[index2]; + Span span34 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference77 = ref span34[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list103 = new List(index3); - CollectionsMarshal.SetCount(list103, index3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list103; num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span104 = CollectionsMarshal.AsSpan(list104); - index3 = 0; - span104[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list104)[0] = new GatheredItem { ItemId = 38281u, ItemCount = 3 }; questStep14.ItemsToGather = list104; reference77 = questStep14; - index2++; - ref QuestStep reference78 = ref span102[index2]; + ref QuestStep reference78 = ref span34[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list105 = new List(index3); - CollectionsMarshal.SetCount(list105, index3); - Span span105 = CollectionsMarshal.AsSpan(list105); - num3 = 0; - span105[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list105 = new List(num3); + CollectionsMarshal.SetCount(list105, num3); + CollectionsMarshal.AsSpan(list105)[0] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list105; num3 = 1; List list106 = new List(num3); CollectionsMarshal.SetCount(list106, num3); - Span span106 = CollectionsMarshal.AsSpan(list106); - index3 = 0; - span106[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list106)[0] = new GatheredItem { ItemId = 38305u, ItemCount = 3 }; questStep15.ItemsToGather = list106; reference78 = questStep15; - index2++; - span102[index2] = new QuestStep(EInteractionType.Interact, 1044042u, new Vector3(507.0725f, 436.99997f, 340.07776f), 960) + span34[2] = new QuestStep(EInteractionType.Interact, 1044042u, new Vector3(507.0725f, 436.99997f, 340.07776f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj63.Steps = list102; reference76 = obj63; - num++; - ref QuestSequence reference79 = ref span100[num]; + ref QuestSequence reference79 = ref span33[2]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960 }; - num2++; - span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj64.Steps = list107; reference79 = obj64; questRoot8.QuestSequence = list100; @@ -380332,16 +313194,13 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot9.Author = list108; - index = 3; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference80 = ref span109[num]; + num = 3; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span36 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference80 = ref span36[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -380349,28 +313208,23 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj65.Steps = list110; reference80 = obj65; - num++; - ref QuestSequence reference81 = ref span109[num]; + ref QuestSequence reference81 = ref span36[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1073 }; - num2++; - ref QuestStep reference82 = ref span111[num2]; + ref QuestStep reference82 = ref span37[1]; QuestStep obj67 = new QuestStep(EInteractionType.Say, 1044043u, new Vector3(-7.1260376f, 498.9474f, -5.416992f), 1073) { ChatMessage = new ChatMessage @@ -380378,26 +313232,19 @@ public static class AssemblyQuestLoader Key = "TEXT_BANOMI102_04608_SAYTODO_000_050" } }; - 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); + 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); obj67.CompletionQuestVariablesFlags = list112; reference82 = obj67; - num2++; - ref QuestStep reference83 = ref span111[num2]; + ref QuestStep reference83 = ref span37[2]; QuestStep obj68 = new QuestStep(EInteractionType.Say, 1044044u, new Vector3(11.215393f, 499.7763f, -23.239563f), 1073) { ChatMessage = new ChatMessage @@ -380408,25 +313255,18 @@ public static class AssemblyQuestLoader num3 = 6; List list113 = new List(num3); CollectionsMarshal.SetCount(list113, num3); - 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); + 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); obj68.CompletionQuestVariablesFlags = list113; reference83 = obj68; obj66.Steps = list111; reference81 = obj66; - num++; - ref QuestSequence reference84 = ref span109[num]; + ref QuestSequence reference84 = ref span36[2]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -380434,14 +313274,12 @@ public static class AssemblyQuestLoader num2 = 2; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span40 = CollectionsMarshal.AsSpan(list114); + span40[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - index2++; - span114[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj69.Steps = list114; reference84 = obj69; questRoot9.QuestSequence = list109; @@ -380451,30 +313289,24 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; questRoot10.Author = list115; - index = 2; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference85 = ref span116[num]; + num = 2; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span41 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference85 = ref span41[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj70.Steps = list117; reference85 = obj70; - num++; - ref QuestSequence reference86 = ref span116[num]; + ref QuestSequence reference86 = ref span41[1]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue @@ -380482,59 +313314,47 @@ public static class AssemblyQuestLoader num2 = 4; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - ref QuestStep reference87 = ref span118[index2]; + Span span42 = CollectionsMarshal.AsSpan(list118); + ref QuestStep reference87 = ref span42[0]; QuestStep questStep16 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list119 = new List(index3); - CollectionsMarshal.SetCount(list119, index3); - Span span119 = CollectionsMarshal.AsSpan(list119); - num3 = 0; - span119[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list119 = new List(num3); + CollectionsMarshal.SetCount(list119, num3); + CollectionsMarshal.AsSpan(list119)[0] = EExtendedClassJob.Miner; questStep16.RequiredQuestAcceptedJob = list119; num3 = 1; List list120 = new List(num3); CollectionsMarshal.SetCount(list120, num3); - Span span120 = CollectionsMarshal.AsSpan(list120); - index3 = 0; - span120[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list120)[0] = new GatheredItem { ItemId = 38282u, ItemCount = 3 }; questStep16.ItemsToGather = list120; reference87 = questStep16; - index2++; - ref QuestStep reference88 = ref span118[index2]; + ref QuestStep reference88 = ref span42[1]; QuestStep questStep17 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list121 = new List(index3); - CollectionsMarshal.SetCount(list121, index3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num3 = 0; - span121[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + CollectionsMarshal.AsSpan(list121)[0] = EExtendedClassJob.Botanist; questStep17.RequiredQuestAcceptedJob = list121; num3 = 1; List list122 = new List(num3); CollectionsMarshal.SetCount(list122, num3); - Span span122 = CollectionsMarshal.AsSpan(list122); - index3 = 0; - span122[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list122)[0] = new GatheredItem { ItemId = 38306u, ItemCount = 3 }; questStep17.ItemsToGather = list122; reference88 = questStep17; - index2++; - span118[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span42[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span118[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span42[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj71.Steps = list118; reference86 = obj71; questRoot10.QuestSequence = list116; @@ -380544,30 +313364,24 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot11.Author = list123; - index = 3; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference89 = ref span124[num]; + num = 3; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span43 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference89 = ref span43[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj72.Steps = list125; reference89 = obj72; - num++; - ref QuestSequence reference90 = ref span124[num]; + ref QuestSequence reference90 = ref span43[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 @@ -380575,9 +313389,8 @@ public static class AssemblyQuestLoader num2 = 3; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - ref QuestStep reference91 = ref span126[index2]; + Span span44 = CollectionsMarshal.AsSpan(list126); + ref QuestStep reference91 = ref span44[0]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1044046u, new Vector3(-585.3514f, 74.4431f, 238.33057f), 960) { StopDistance = 9f, @@ -380590,52 +313403,37 @@ public static class AssemblyQuestLoader } } }; - 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]; + 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]; int num4 = 2; List list128 = new List(num4); CollectionsMarshal.SetCount(list128, num4); - 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); + Span span46 = CollectionsMarshal.AsSpan(list128); + span46[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + span46[1] = new QuestWorkValue((byte)3, null, EQuestWorkMode.Bitwise); reference92 = list128; - num3++; - span127[num3] = null; - num3++; - span127[num3] = null; - num3++; - span127[num3] = null; + span45[3] = null; + span45[4] = null; + span45[5] = null; obj74.RequiredQuestVariables = list127; num3 = 6; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - 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); + 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); obj74.CompletionQuestVariablesFlags = list129; reference91 = obj74; - index2++; - ref QuestStep reference93 = ref span126[index2]; + ref QuestStep reference93 = ref span44[1]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1044047u, new Vector3(36.66736f, 269.16718f, -627.83246f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa, @@ -380647,114 +313445,83 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); reference94 = list131; - num3++; - span130[num3] = null; - num3++; - span130[num3] = null; - num3++; - span130[num3] = null; + span48[3] = null; + span48[4] = null; + span48[5] = null; obj75.RequiredQuestVariables = list130; num3 = 6; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - 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); + 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); obj75.CompletionQuestVariablesFlags = list132; reference93 = obj75; - index2++; - ref QuestStep reference95 = ref span126[index2]; + ref QuestStep reference95 = ref span44[2]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1044045u, new Vector3(510.64307f, 436.9999f, 332.41772f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - 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]; + 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]; num4 = 2; List list134 = new List(num4); CollectionsMarshal.SetCount(list134, num4); - 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); + Span span52 = CollectionsMarshal.AsSpan(list134); + span52[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + span52[1] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference96 = list134; - num3++; - span133[num3] = null; - num3++; - span133[num3] = null; - num3++; - span133[num3] = null; + span51[3] = null; + span51[4] = null; + span51[5] = null; obj76.RequiredQuestVariables = list133; num3 = 6; List list135 = new List(num3); CollectionsMarshal.SetCount(list135, num3); - 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); + 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); obj76.CompletionQuestVariablesFlags = list135; reference95 = obj76; obj73.Steps = list126; reference90 = obj73; - num++; - ref QuestSequence reference97 = ref span124[num]; + ref QuestSequence reference97 = ref span43[2]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron, @@ -380771,8 +313538,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span136[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj77.Steps = list136; reference97 = obj77; questRoot11.QuestSequence = list124; @@ -380782,16 +313548,13 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list137)[0] = "plogon_enjoyer"; questRoot12.Author = list137; - index = 3; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference98 = ref span138[num]; + num = 3; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span55 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference98 = ref span55[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -380799,86 +313562,68 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj78.Steps = list139; reference98 = obj78; - num++; - ref QuestSequence reference99 = ref span138[num]; + ref QuestSequence reference99 = ref span55[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1073 }; - num2++; - ref QuestStep reference100 = ref span140[num2]; + ref QuestStep reference100 = ref span56[1]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list141 = new List(index3); - CollectionsMarshal.SetCount(list141, index3); - Span span141 = CollectionsMarshal.AsSpan(list141); - num3 = 0; - span141[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list141 = new List(num3); + CollectionsMarshal.SetCount(list141, num3); + CollectionsMarshal.AsSpan(list141)[0] = EExtendedClassJob.Miner; questStep18.RequiredQuestAcceptedJob = list141; num3 = 1; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - Span span142 = CollectionsMarshal.AsSpan(list142); - index3 = 0; - span142[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list142)[0] = new GatheredItem { ItemId = 38284u, ItemCount = 3 }; questStep18.ItemsToGather = list142; reference100 = questStep18; - num2++; - ref QuestStep reference101 = ref span140[num2]; + ref QuestStep reference101 = ref span56[2]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list143 = new List(index3); - CollectionsMarshal.SetCount(list143, index3); - Span span143 = CollectionsMarshal.AsSpan(list143); - num3 = 0; - span143[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list143 = new List(num3); + CollectionsMarshal.SetCount(list143, num3); + CollectionsMarshal.AsSpan(list143)[0] = EExtendedClassJob.Botanist; questStep19.RequiredQuestAcceptedJob = list143; num3 = 1; List list144 = new List(num3); CollectionsMarshal.SetCount(list144, num3); - Span span144 = CollectionsMarshal.AsSpan(list144); - index3 = 0; - span144[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list144)[0] = new GatheredItem { ItemId = 38308u, ItemCount = 3 }; questStep19.ItemsToGather = list144; reference101 = questStep19; - num2++; - span140[num2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + span56[3] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - num2++; - span140[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span56[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - num2++; - span140[num2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); + span56[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); obj79.Steps = list140; reference99 = obj79; - num++; - ref QuestSequence reference102 = ref span138[num]; + ref QuestSequence reference102 = ref span55[2]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -380886,14 +313631,12 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + Span span57 = CollectionsMarshal.AsSpan(list145); + span57[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960 }; - index2++; - span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span57[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj80.Steps = list145; reference102 = obj80; questRoot12.QuestSequence = list138; @@ -380903,30 +313646,24 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "liza"; + CollectionsMarshal.AsSpan(list146)[0] = "liza"; questRoot13.Author = list146; - index = 2; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference103 = ref span147[num]; + num = 2; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span58 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference103 = ref span58[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj81.Steps = list148; reference103 = obj81; - num++; - ref QuestSequence reference104 = ref span147[num]; + ref QuestSequence reference104 = ref span58[1]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -380934,59 +313671,47 @@ public static class AssemblyQuestLoader num2 = 4; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - ref QuestStep reference105 = ref span149[index2]; + Span span59 = CollectionsMarshal.AsSpan(list149); + ref QuestStep reference105 = ref span59[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list150 = new List(index3); - CollectionsMarshal.SetCount(list150, index3); - Span span150 = CollectionsMarshal.AsSpan(list150); - num3 = 0; - span150[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + CollectionsMarshal.AsSpan(list150)[0] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list150; num3 = 1; List list151 = new List(num3); CollectionsMarshal.SetCount(list151, num3); - Span span151 = CollectionsMarshal.AsSpan(list151); - index3 = 0; - span151[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list151)[0] = new GatheredItem { ItemId = 38283u, ItemCount = 3 }; questStep20.ItemsToGather = list151; reference105 = questStep20; - index2++; - ref QuestStep reference106 = ref span149[index2]; + ref QuestStep reference106 = ref span59[1]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list152; num3 = 1; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - Span span153 = CollectionsMarshal.AsSpan(list153); - index3 = 0; - span153[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list153)[0] = new GatheredItem { ItemId = 38307u, ItemCount = 3 }; questStep21.ItemsToGather = list153; reference106 = questStep21; - index2++; - span149[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span59[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span59[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj82.Steps = list149; reference104 = obj82; questRoot13.QuestSequence = list147; @@ -380996,30 +313721,24 @@ public static class AssemblyQuestLoader num = 1; List list154 = new List(num); CollectionsMarshal.SetCount(list154, num); - Span span154 = CollectionsMarshal.AsSpan(list154); - index = 0; - span154[index] = "liza"; + CollectionsMarshal.AsSpan(list154)[0] = "liza"; questRoot14.Author = list154; - index = 3; - List list155 = new List(index); - CollectionsMarshal.SetCount(list155, index); - Span span155 = CollectionsMarshal.AsSpan(list155); - num = 0; - ref QuestSequence reference107 = ref span155[num]; + num = 3; + List list155 = new List(num); + CollectionsMarshal.SetCount(list155, num); + Span span60 = CollectionsMarshal.AsSpan(list155); + ref QuestSequence reference107 = ref span60[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj83.Steps = list156; reference107 = obj83; - num++; - ref QuestSequence reference108 = ref span155[num]; + ref QuestSequence reference108 = ref span60[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -381027,34 +313746,26 @@ public static class AssemblyQuestLoader num2 = 2; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - ref QuestStep reference109 = ref span157[index2]; + Span span61 = CollectionsMarshal.AsSpan(list157); + ref QuestStep reference109 = ref span61[0]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1044048u, new Vector3(-347.70734f, 263.0844f, -463.73694f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - 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); + 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); obj85.CompletionQuestVariablesFlags = list158; reference109 = obj85; - index2++; - ref QuestStep reference110 = ref span157[index2]; + ref QuestStep reference110 = ref span61[1]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1044049u, new Vector3(-376.21124f, 266.08542f, -551.90356f), 960) { Fly = true @@ -381062,41 +313773,32 @@ public static class AssemblyQuestLoader num3 = 6; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - 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); + 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); obj86.CompletionQuestVariablesFlags = list159; reference110 = obj86; obj84.Steps = list157; reference108 = obj84; - num++; - ref QuestSequence reference111 = ref span155[num]; + ref QuestSequence reference111 = ref span60[2]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span160[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj87.Steps = list160; reference111 = obj87; questRoot14.QuestSequence = list155; @@ -381106,16 +313808,13 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span161 = CollectionsMarshal.AsSpan(list161); - index = 0; - span161[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list161)[0] = "plogon_enjoyer"; questRoot15.Author = list161; - index = 3; - List list162 = new List(index); - CollectionsMarshal.SetCount(list162, index); - Span span162 = CollectionsMarshal.AsSpan(list162); - num = 0; - ref QuestSequence reference112 = ref span162[num]; + num = 3; + List list162 = new List(num); + CollectionsMarshal.SetCount(list162, num); + Span span65 = CollectionsMarshal.AsSpan(list162); + ref QuestSequence reference112 = ref span65[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -381123,80 +313822,64 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj88.Steps = list163; reference112 = obj88; - num++; - ref QuestSequence reference113 = ref span162[num]; + ref QuestSequence reference113 = ref span65[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1073 }; - num2++; - ref QuestStep reference114 = ref span164[num2]; + ref QuestStep reference114 = ref span66[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list165 = new List(index3); - CollectionsMarshal.SetCount(list165, index3); - Span span165 = CollectionsMarshal.AsSpan(list165); - num3 = 0; - span165[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + CollectionsMarshal.AsSpan(list165)[0] = EExtendedClassJob.Miner; questStep22.RequiredQuestAcceptedJob = list165; num3 = 1; List list166 = new List(num3); CollectionsMarshal.SetCount(list166, num3); - Span span166 = CollectionsMarshal.AsSpan(list166); - index3 = 0; - span166[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list166)[0] = new GatheredItem { ItemId = 38285u, ItemCount = 3 }; questStep22.ItemsToGather = list166; reference114 = questStep22; - num2++; - ref QuestStep reference115 = ref span164[num2]; + ref QuestStep reference115 = ref span66[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list167 = new List(index3); - CollectionsMarshal.SetCount(list167, index3); - Span span167 = CollectionsMarshal.AsSpan(list167); - num3 = 0; - span167[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + CollectionsMarshal.AsSpan(list167)[0] = EExtendedClassJob.Botanist; questStep23.RequiredQuestAcceptedJob = list167; num3 = 1; List list168 = new List(num3); CollectionsMarshal.SetCount(list168, num3); - Span span168 = CollectionsMarshal.AsSpan(list168); - index3 = 0; - span168[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list168)[0] = new GatheredItem { ItemId = 38309u, ItemCount = 3 }; questStep23.ItemsToGather = list168; reference115 = questStep23; - num2++; - span164[num2] = new QuestStep(EInteractionType.Interact, 1044050u, new Vector3(472.03772f, 437.00162f, 336.6598f), 960) + span66[3] = new QuestStep(EInteractionType.Interact, 1044050u, new Vector3(472.03772f, 437.00162f, 336.6598f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj89.Steps = list164; reference113 = obj89; - num++; - ref QuestSequence reference116 = ref span162[num]; + ref QuestSequence reference116 = ref span65[2]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -381204,15 +313887,13 @@ public static class AssemblyQuestLoader num2 = 2; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span67 = CollectionsMarshal.AsSpan(list169); + span67[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - index2++; - span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj90.Steps = list169; reference116 = obj90; questRoot15.QuestSequence = list162; @@ -381222,30 +313903,24 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list170)[0] = "plogon_enjoyer"; questRoot16.Author = list170; - index = 2; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference117 = ref span171[num]; + num = 2; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span68 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference117 = ref span68[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj91.Steps = list172; reference117 = obj91; - num++; - ref QuestSequence reference118 = ref span171[num]; + ref QuestSequence reference118 = ref span68[1]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -381253,60 +313928,48 @@ public static class AssemblyQuestLoader num2 = 4; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - ref QuestStep reference119 = ref span173[index2]; + Span span69 = CollectionsMarshal.AsSpan(list173); + ref QuestStep reference119 = ref span69[0]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list174 = new List(index3); - CollectionsMarshal.SetCount(list174, index3); - Span span174 = CollectionsMarshal.AsSpan(list174); - num3 = 0; - span174[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + CollectionsMarshal.AsSpan(list174)[0] = EExtendedClassJob.Miner; questStep24.RequiredQuestAcceptedJob = list174; num3 = 1; List list175 = new List(num3); CollectionsMarshal.SetCount(list175, num3); - Span span175 = CollectionsMarshal.AsSpan(list175); - index3 = 0; - span175[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list175)[0] = new GatheredItem { ItemId = 38286u, ItemCount = 3 }; questStep24.ItemsToGather = list175; reference119 = questStep24; - index2++; - ref QuestStep reference120 = ref span173[index2]; + ref QuestStep reference120 = ref span69[1]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list176 = new List(index3); - CollectionsMarshal.SetCount(list176, index3); - Span span176 = CollectionsMarshal.AsSpan(list176); - num3 = 0; - span176[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list176 = new List(num3); + CollectionsMarshal.SetCount(list176, num3); + CollectionsMarshal.AsSpan(list176)[0] = EExtendedClassJob.Botanist; questStep25.RequiredQuestAcceptedJob = list176; num3 = 1; List list177 = new List(num3); CollectionsMarshal.SetCount(list177, num3); - Span span177 = CollectionsMarshal.AsSpan(list177); - index3 = 0; - span177[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list177)[0] = new GatheredItem { ItemId = 38310u, ItemCount = 3 }; questStep25.ItemsToGather = list177; reference120 = questStep25; - index2++; - span173[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span69[2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span69[3] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj92.Steps = list173; reference118 = obj92; questRoot16.QuestSequence = list171; @@ -381316,30 +313979,24 @@ public static class AssemblyQuestLoader num = 1; List list178 = new List(num); CollectionsMarshal.SetCount(list178, num); - Span span178 = CollectionsMarshal.AsSpan(list178); - index = 0; - span178[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list178)[0] = "plogon_enjoyer"; questRoot17.Author = list178; - index = 3; - List list179 = new List(index); - CollectionsMarshal.SetCount(list179, index); - Span span179 = CollectionsMarshal.AsSpan(list179); - num = 0; - ref QuestSequence reference121 = ref span179[num]; + num = 3; + List list179 = new List(num); + CollectionsMarshal.SetCount(list179, num); + Span span70 = CollectionsMarshal.AsSpan(list179); + ref QuestSequence reference121 = ref span70[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj93.Steps = list180; reference121 = obj93; - num++; - ref QuestSequence reference122 = ref span179[num]; + ref QuestSequence reference122 = ref span70[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -381347,9 +314004,8 @@ public static class AssemblyQuestLoader num2 = 6; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - ref QuestStep reference123 = ref span181[index2]; + Span span71 = CollectionsMarshal.AsSpan(list181); + ref QuestStep reference123 = ref span71[0]; QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1044051u, new Vector3(-543.20593f, 72.39467f, 298.146f), 960) { Fly = true, @@ -381362,33 +314018,24 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); reference124 = list183; - num3++; - span182[num3] = null; - num3++; - span182[num3] = null; + span72[4] = null; + span72[5] = null; obj95.RequiredQuestVariables = list182; reference123 = obj95; - index2++; - ref QuestStep reference125 = ref span181[index2]; + ref QuestStep reference125 = ref span71[1]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1044052u, new Vector3(-110.27698f, 53.589848f, 538.41455f), 960) { Fly = true @@ -381396,30 +314043,21 @@ public static class AssemblyQuestLoader num3 = 6; List> list184 = new List>(num3); CollectionsMarshal.SetCount(list184, num3); - 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]; + Span> span73 = CollectionsMarshal.AsSpan(list184); + span73[0] = null; + span73[1] = null; + span73[2] = null; + ref List reference126 = ref span73[3]; num4 = 1; List list185 = new List(num4); CollectionsMarshal.SetCount(list185, num4); - Span span185 = CollectionsMarshal.AsSpan(list185); - num5 = 0; - span185[num5] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list185)[0] = new QuestWorkValue(null, (byte)1, EQuestWorkMode.Bitwise); reference126 = list185; - index3++; - span184[index3] = null; - index3++; - span184[index3] = null; + span73[4] = null; + span73[5] = null; obj96.RequiredQuestVariables = list184; reference125 = obj96; - index2++; - ref QuestStep reference127 = ref span181[index2]; + ref QuestStep reference127 = ref span71[2]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1044054u, new Vector3(83.69568f, 269.0921f, -483.0854f), 960) { Fly = true, @@ -381432,33 +314070,24 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); reference128 = list187; - num3++; - span186[num3] = null; - num3++; - span186[num3] = null; + span74[4] = null; + span74[5] = null; obj97.RequiredQuestVariables = list186; reference127 = obj97; - index2++; - ref QuestStep reference129 = ref span181[index2]; + ref QuestStep reference129 = ref span71[3]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1044053u, new Vector3(-225.66571f, 271.7499f, -308.6748f), 960) { Fly = true @@ -381466,30 +314095,21 @@ public static class AssemblyQuestLoader num3 = 6; List> list188 = new List>(num3); CollectionsMarshal.SetCount(list188, num3); - 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]; + Span> span75 = CollectionsMarshal.AsSpan(list188); + span75[0] = null; + span75[1] = null; + span75[2] = null; + ref List reference130 = ref span75[3]; num4 = 1; List list189 = new List(num4); CollectionsMarshal.SetCount(list189, num4); - Span span189 = CollectionsMarshal.AsSpan(list189); - num5 = 0; - span189[num5] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list189)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference130 = list189; - index3++; - span188[index3] = null; - index3++; - span188[index3] = null; + span75[4] = null; + span75[5] = null; obj98.RequiredQuestVariables = list188; reference129 = obj98; - index2++; - ref QuestStep reference131 = ref span181[index2]; + ref QuestStep reference131 = ref span71[4]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1044056u, new Vector3(582.7573f, 441.71567f, 427.9392f), 960) { Fly = true, @@ -381502,33 +314122,24 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); reference132 = list191; - num3++; - span190[num3] = null; - num3++; - span190[num3] = null; + span76[4] = null; + span76[5] = null; obj99.RequiredQuestVariables = list190; reference131 = obj99; - index2++; - ref QuestStep reference133 = ref span181[index2]; + ref QuestStep reference133 = ref span71[5]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1044055u, new Vector3(636.59106f, 438.6276f, 271.5343f), 960) { Fly = true @@ -381536,49 +314147,38 @@ public static class AssemblyQuestLoader num3 = 6; List> list192 = new List>(num3); CollectionsMarshal.SetCount(list192, num3); - 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]; + Span> span77 = CollectionsMarshal.AsSpan(list192); + span77[0] = null; + span77[1] = null; + span77[2] = null; + ref List reference134 = ref span77[3]; num4 = 1; List list193 = new List(num4); CollectionsMarshal.SetCount(list193, num4); - Span span193 = CollectionsMarshal.AsSpan(list193); - num5 = 0; - span193[num5] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list193)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference134 = list193; - index3++; - span192[index3] = null; - index3++; - span192[index3] = null; + span77[4] = null; + span77[5] = null; obj100.RequiredQuestVariables = list192; reference133 = obj100; obj94.Steps = list181; reference122 = obj94; - num++; - ref QuestSequence reference135 = ref span179[num]; + ref QuestSequence reference135 = ref span70[2]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span194[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span78[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj101.Steps = list194; reference135 = obj101; questRoot17.QuestSequence = list179; @@ -381588,16 +314188,13 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - span195[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list195)[0] = "plogon_enjoyer"; questRoot18.Author = list195; - index = 3; - List list196 = new List(index); - CollectionsMarshal.SetCount(list196, index); - Span span196 = CollectionsMarshal.AsSpan(list196); - num = 0; - ref QuestSequence reference136 = ref span196[num]; + num = 3; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span79 = CollectionsMarshal.AsSpan(list196); + ref QuestSequence reference136 = ref span79[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -381605,80 +314202,64 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj102.Steps = list197; reference136 = obj102; - num++; - ref QuestSequence reference137 = ref span196[num]; + ref QuestSequence reference137 = ref span79[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1073 }; - num2++; - ref QuestStep reference138 = ref span198[num2]; + ref QuestStep reference138 = ref span80[1]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list199 = new List(index3); - CollectionsMarshal.SetCount(list199, index3); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - span199[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list199 = new List(num3); + CollectionsMarshal.SetCount(list199, num3); + CollectionsMarshal.AsSpan(list199)[0] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list199; num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span200 = CollectionsMarshal.AsSpan(list200); - index3 = 0; - span200[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list200)[0] = new GatheredItem { ItemId = 38287u, ItemCount = 3 }; questStep26.ItemsToGather = list200; reference138 = questStep26; - num2++; - ref QuestStep reference139 = ref span198[num2]; + ref QuestStep reference139 = ref span80[2]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list201 = new List(index3); - CollectionsMarshal.SetCount(list201, index3); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list201 = new List(num3); + CollectionsMarshal.SetCount(list201, num3); + CollectionsMarshal.AsSpan(list201)[0] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list201; num3 = 1; List list202 = new List(num3); CollectionsMarshal.SetCount(list202, num3); - Span span202 = CollectionsMarshal.AsSpan(list202); - index3 = 0; - span202[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list202)[0] = new GatheredItem { ItemId = 38311u, ItemCount = 3 }; questStep27.ItemsToGather = list202; reference139 = questStep27; - num2++; - span198[num2] = new QuestStep(EInteractionType.Interact, 1044057u, new Vector3(490.2876f, 436.9998f, 312.3064f), 960) + span80[3] = new QuestStep(EInteractionType.Interact, 1044057u, new Vector3(490.2876f, 436.9998f, 312.3064f), 960) { Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj103.Steps = list198; reference137 = obj103; - num++; - ref QuestSequence reference140 = ref span196[num]; + ref QuestSequence reference140 = ref span79[2]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -381686,15 +314267,13 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span81 = CollectionsMarshal.AsSpan(list203); + span81[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - index2++; - span203[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -381707,30 +314286,24 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - Span span204 = CollectionsMarshal.AsSpan(list204); - index = 0; - span204[index] = "pot0to"; + CollectionsMarshal.AsSpan(list204)[0] = "pot0to"; questRoot19.Author = list204; - index = 3; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - ref QuestSequence reference141 = ref span205[num]; + num = 3; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + Span span82 = CollectionsMarshal.AsSpan(list205); + ref QuestSequence reference141 = ref span82[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj105.Steps = list206; reference141 = obj105; - num++; - ref QuestSequence reference142 = ref span205[num]; + ref QuestSequence reference142 = ref span82[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -381738,88 +314311,71 @@ public static class AssemblyQuestLoader num2 = 6; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + Span span83 = CollectionsMarshal.AsSpan(list207); + span83[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - index2++; - ref QuestStep reference143 = ref span207[index2]; + ref QuestStep reference143 = ref span83[1]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list208 = new List(index3); - CollectionsMarshal.SetCount(list208, index3); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list208 = new List(num3); + CollectionsMarshal.SetCount(list208, num3); + CollectionsMarshal.AsSpan(list208)[0] = EExtendedClassJob.Miner; questStep28.RequiredQuestAcceptedJob = list208; num3 = 1; List list209 = new List(num3); CollectionsMarshal.SetCount(list209, num3); - Span span209 = CollectionsMarshal.AsSpan(list209); - index3 = 0; - span209[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list209)[0] = new GatheredItem { ItemId = 38288u, ItemCount = 3 }; questStep28.ItemsToGather = list209; reference143 = questStep28; - index2++; - ref QuestStep reference144 = ref span207[index2]; + ref QuestStep reference144 = ref span83[2]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list210 = new List(index3); - CollectionsMarshal.SetCount(list210, index3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.Botanist; questStep29.RequiredQuestAcceptedJob = list210; num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span211 = CollectionsMarshal.AsSpan(list211); - index3 = 0; - span211[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem { ItemId = 38312u, ItemCount = 3 }; questStep29.ItemsToGather = list211; reference144 = questStep29; - index2++; - span207[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span83[3] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span207[index2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span83[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - index2++; - span207[index2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); + span83[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960); obj106.Steps = list207; reference142 = obj106; - num++; - ref QuestSequence reference145 = ref span205[num]; + ref QuestSequence reference145 = ref span82[2]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960 }; - num2++; - span212[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span84[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj107.Steps = list212; reference145 = obj107; questRoot19.QuestSequence = list205; @@ -381829,16 +314385,13 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list213)[0] = "plogon_enjoyer"; questRoot20.Author = list213; - index = 3; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference146 = ref span214[num]; + num = 3; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span85 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference146 = ref span85[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -381846,23 +314399,18 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj108.Steps = list215; reference146 = obj108; - num++; - ref QuestSequence reference147 = ref span214[num]; + ref QuestSequence reference147 = ref span85[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa, @@ -381870,8 +314418,7 @@ public static class AssemblyQuestLoader }; obj109.Steps = list216; reference147 = obj109; - num++; - ref QuestSequence reference148 = ref span214[num]; + ref QuestSequence reference148 = ref span85[2]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -381879,16 +314426,14 @@ public static class AssemblyQuestLoader num2 = 2; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span86 = CollectionsMarshal.AsSpan(list217); + span86[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span217[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Fly = true }; @@ -381901,30 +314446,24 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot21.Author = list218; - index = 4; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference149 = ref span219[num]; + num = 4; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span87 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference149 = ref span87[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj111.Steps = list220; reference149 = obj111; - num++; - ref QuestSequence reference150 = ref span219[num]; + ref QuestSequence reference150 = ref span87[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -381932,76 +314471,61 @@ public static class AssemblyQuestLoader num2 = 2; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + Span span88 = CollectionsMarshal.AsSpan(list221); + span88[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - index2++; - span221[index2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); + span88[1] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); obj112.Steps = list221; reference150 = obj112; - num++; - ref QuestSequence reference151 = ref span219[num]; + ref QuestSequence reference151 = ref span87[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list222 = new List(index2); - CollectionsMarshal.SetCount(list222, index2); - Span span222 = CollectionsMarshal.AsSpan(list222); - num2 = 0; - ref QuestStep reference152 = ref span222[num2]; + num2 = 3; + List list222 = new List(num2); + CollectionsMarshal.SetCount(list222, num2); + Span span89 = CollectionsMarshal.AsSpan(list222); + ref QuestStep reference152 = ref span89[0]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list223 = new List(index3); - CollectionsMarshal.SetCount(list223, index3); - Span span223 = CollectionsMarshal.AsSpan(list223); - num3 = 0; - span223[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list223 = new List(num3); + CollectionsMarshal.SetCount(list223, num3); + CollectionsMarshal.AsSpan(list223)[0] = EExtendedClassJob.Miner; questStep30.RequiredQuestAcceptedJob = list223; num3 = 1; List list224 = new List(num3); CollectionsMarshal.SetCount(list224, num3); - Span span224 = CollectionsMarshal.AsSpan(list224); - index3 = 0; - span224[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list224)[0] = new GatheredItem { ItemId = 38289u, ItemCount = 3 }; questStep30.ItemsToGather = list224; reference152 = questStep30; - num2++; - ref QuestStep reference153 = ref span222[num2]; + ref QuestStep reference153 = ref span89[1]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list225 = new List(index3); - CollectionsMarshal.SetCount(list225, index3); - Span span225 = CollectionsMarshal.AsSpan(list225); - num3 = 0; - span225[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list225 = new List(num3); + CollectionsMarshal.SetCount(list225, num3); + CollectionsMarshal.AsSpan(list225)[0] = EExtendedClassJob.Botanist; questStep31.RequiredQuestAcceptedJob = list225; num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span226 = CollectionsMarshal.AsSpan(list226); - index3 = 0; - span226[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list226)[0] = new GatheredItem { ItemId = 38313u, ItemCount = 3 }; questStep31.ItemsToGather = list226; reference153 = questStep31; - num2++; - span222[num2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); + span89[2] = new QuestStep(EInteractionType.Interact, 1044059u, new Vector3(-15.304871f, 494.9991f, -68.16211f), 1073); obj113.Steps = list222; reference151 = obj113; - num++; - ref QuestSequence reference154 = ref span219[num]; + ref QuestSequence reference154 = ref span87[3]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -382009,14 +314533,12 @@ public static class AssemblyQuestLoader num2 = 2; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span90 = CollectionsMarshal.AsSpan(list227); + span90[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - index2++; - span227[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj114.Steps = list227; reference154 = obj114; questRoot21.QuestSequence = list219; @@ -382026,30 +314548,24 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span228 = CollectionsMarshal.AsSpan(list228); - index = 0; - span228[index] = "liza"; + CollectionsMarshal.AsSpan(list228)[0] = "liza"; questRoot22.Author = list228; - index = 4; - List list229 = new List(index); - CollectionsMarshal.SetCount(list229, index); - Span span229 = CollectionsMarshal.AsSpan(list229); - num = 0; - ref QuestSequence reference155 = ref span229[num]; + num = 4; + List list229 = new List(num); + CollectionsMarshal.SetCount(list229, num); + Span span91 = CollectionsMarshal.AsSpan(list229); + ref QuestSequence reference155 = ref span91[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj115.Steps = list230; reference155 = obj115; - num++; - ref QuestSequence reference156 = ref span229[num]; + ref QuestSequence reference156 = ref span91[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -382057,51 +314573,40 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Interact, 1044060u, new Vector3(57.75537f, 269.00012f, -674.49457f), 960) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Interact, 1044060u, new Vector3(57.75537f, 269.00012f, -674.49457f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj116.Steps = list231; reference156 = obj116; - num++; - ref QuestSequence reference157 = ref span229[num]; + ref QuestSequence reference157 = ref span91[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list232 = new List(index2); - CollectionsMarshal.SetCount(list232, index2); - Span span232 = CollectionsMarshal.AsSpan(list232); - num2 = 0; - ref QuestStep reference158 = ref span232[num2]; + num2 = 2; + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + Span span92 = CollectionsMarshal.AsSpan(list232); + ref QuestStep reference158 = ref span92[0]; QuestStep obj118 = new QuestStep(EInteractionType.Action, 1044063u, new Vector3(-193.53015f, 269.23087f, -315.63293f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - 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); + 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); obj118.CompletionQuestVariablesFlags = list233; reference158 = obj118; - num2++; - ref QuestStep reference159 = ref span232[num2]; + ref QuestStep reference159 = ref span92[1]; QuestStep obj119 = new QuestStep(EInteractionType.Action, 1044062u, new Vector3(-213.42798f, 268.01166f, -299.5194f), 960) { Fly = true, @@ -382110,25 +314615,18 @@ public static class AssemblyQuestLoader num3 = 6; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - 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); + 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); obj119.CompletionQuestVariablesFlags = list234; reference159 = obj119; obj117.Steps = list232; reference157 = obj117; - num++; - ref QuestSequence reference160 = ref span229[num]; + ref QuestSequence reference160 = ref span91[3]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -382136,15 +314634,13 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span95 = CollectionsMarshal.AsSpan(list235); + span95[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj120.Steps = list235; reference160 = obj120; questRoot22.QuestSequence = list229; @@ -382154,30 +314650,24 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = "liza"; + CollectionsMarshal.AsSpan(list236)[0] = "liza"; questRoot23.Author = list236; - index = 3; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref QuestSequence reference161 = ref span237[num]; + num = 3; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span96 = CollectionsMarshal.AsSpan(list237); + ref QuestSequence reference161 = ref span96[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj121.Steps = list238; reference161 = obj121; - num++; - ref QuestSequence reference162 = ref span237[num]; + ref QuestSequence reference162 = ref span96[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -382185,77 +314675,63 @@ public static class AssemblyQuestLoader num2 = 3; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - ref QuestStep reference163 = ref span239[index2]; + Span span97 = CollectionsMarshal.AsSpan(list239); + ref QuestStep reference163 = ref span97[0]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list240 = new List(index3); - CollectionsMarshal.SetCount(list240, index3); - Span span240 = CollectionsMarshal.AsSpan(list240); - num3 = 0; - span240[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list240 = new List(num3); + CollectionsMarshal.SetCount(list240, num3); + CollectionsMarshal.AsSpan(list240)[0] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list240; num3 = 1; List list241 = new List(num3); CollectionsMarshal.SetCount(list241, num3); - Span span241 = CollectionsMarshal.AsSpan(list241); - index3 = 0; - span241[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list241)[0] = new GatheredItem { ItemId = 38290u, ItemCount = 3 }; questStep32.ItemsToGather = list241; reference163 = questStep32; - index2++; - ref QuestStep reference164 = ref span239[index2]; + ref QuestStep reference164 = ref span97[1]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list242 = new List(index3); - CollectionsMarshal.SetCount(list242, index3); - Span span242 = CollectionsMarshal.AsSpan(list242); - num3 = 0; - span242[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list242 = new List(num3); + CollectionsMarshal.SetCount(list242, num3); + CollectionsMarshal.AsSpan(list242)[0] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list242; num3 = 1; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - Span span243 = CollectionsMarshal.AsSpan(list243); - index3 = 0; - span243[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list243)[0] = new GatheredItem { ItemId = 38314u, ItemCount = 3 }; questStep33.ItemsToGather = list243; reference164 = questStep33; - index2++; - span239[index2] = new QuestStep(EInteractionType.Interact, 1044064u, new Vector3(86.503296f, 269.08234f, -515.0683f), 960) + span97[2] = new QuestStep(EInteractionType.Interact, 1044064u, new Vector3(86.503296f, 269.08234f, -515.0683f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj122.Steps = list239; reference162 = obj122; - num++; - ref QuestSequence reference165 = ref span237[num]; + ref QuestSequence reference165 = ref span96[2]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span244[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span98[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj123.Steps = list244; reference165 = obj123; questRoot23.QuestSequence = list237; @@ -382265,16 +314741,13 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list245)[0] = "plogon_enjoyer"; questRoot24.Author = list245; - index = 3; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference166 = ref span246[num]; + num = 3; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span99 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference166 = ref span99[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -382282,79 +314755,63 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj124.Steps = list247; reference166 = obj124; - num++; - ref QuestSequence reference167 = ref span246[num]; + ref QuestSequence reference167 = ref span99[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1073 }; - num2++; - ref QuestStep reference168 = ref span248[num2]; + ref QuestStep reference168 = ref span100[1]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list249 = new List(index3); - CollectionsMarshal.SetCount(list249, index3); - Span span249 = CollectionsMarshal.AsSpan(list249); - num3 = 0; - span249[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list249 = new List(num3); + CollectionsMarshal.SetCount(list249, num3); + CollectionsMarshal.AsSpan(list249)[0] = EExtendedClassJob.Miner; questStep34.RequiredQuestAcceptedJob = list249; num3 = 1; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - Span span250 = CollectionsMarshal.AsSpan(list250); - index3 = 0; - span250[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list250)[0] = new GatheredItem { ItemId = 38291u, ItemCount = 3 }; questStep34.ItemsToGather = list250; reference168 = questStep34; - num2++; - ref QuestStep reference169 = ref span248[num2]; + ref QuestStep reference169 = ref span100[2]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list251 = new List(index3); - CollectionsMarshal.SetCount(list251, index3); - Span span251 = CollectionsMarshal.AsSpan(list251); - num3 = 0; - span251[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + CollectionsMarshal.AsSpan(list251)[0] = EExtendedClassJob.Botanist; questStep35.RequiredQuestAcceptedJob = list251; num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span252 = CollectionsMarshal.AsSpan(list252); - index3 = 0; - span252[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list252)[0] = new GatheredItem { ItemId = 38315u, ItemCount = 3 }; questStep35.ItemsToGather = list252; reference169 = questStep35; - num2++; - span248[num2] = new QuestStep(EInteractionType.Interact, 1044065u, new Vector3(478.9348f, 437.0016f, 340.505f), 960) + span100[3] = new QuestStep(EInteractionType.Interact, 1044065u, new Vector3(478.9348f, 437.0016f, 340.505f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj125.Steps = list248; reference167 = obj125; - num++; - ref QuestSequence reference170 = ref span246[num]; + ref QuestSequence reference170 = ref span99[2]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -382362,15 +314819,13 @@ public static class AssemblyQuestLoader num2 = 2; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span101 = CollectionsMarshal.AsSpan(list253); + span101[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - index2++; - span253[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj126.Steps = list253; reference170 = obj126; questRoot24.QuestSequence = list246; @@ -382380,30 +314835,24 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list254)[0] = "plogon_enjoyer"; questRoot25.Author = list254; - index = 4; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference171 = ref span255[num]; + num = 4; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span102 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference171 = ref span102[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj127.Steps = list256; reference171 = obj127; - num++; - ref QuestSequence reference172 = ref span255[num]; + ref QuestSequence reference172 = ref span102[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -382411,46 +314860,40 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 2013073u, new Vector3(334.37085f, 483.17688f, 158.28174f), 960) + Span span103 = CollectionsMarshal.AsSpan(list257); + span103[0] = new QuestStep(EInteractionType.Interact, 2013073u, new Vector3(334.37085f, 483.17688f, 158.28174f), 960) { TargetTerritoryId = (ushort)960, Mount = true }; - index2++; - span257[index2] = new QuestStep(EInteractionType.Interact, 1044066u, new Vector3(493.58362f, 436.99985f, 317.09766f), 960) + span103[1] = new QuestStep(EInteractionType.Interact, 1044066u, new Vector3(493.58362f, 436.99985f, 317.09766f), 960) { Fly = true }; obj128.Steps = list257; reference172 = obj128; - num++; - ref QuestSequence reference173 = ref span255[num]; + ref QuestSequence reference173 = ref span102[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Action = EAction.ElectrixFlux }; - num2++; - span258[num2] = new QuestStep(EInteractionType.Action, 1044069u, new Vector3(668.0552f, 440.4633f, 360.79956f), 960) + span104[1] = new QuestStep(EInteractionType.Action, 1044069u, new Vector3(668.0552f, 440.4633f, 360.79956f), 960) { Fly = true, Action = EAction.ElectrixFlux }; obj129.Steps = list258; reference173 = obj129; - num++; - ref QuestSequence reference174 = ref span255[num]; + ref QuestSequence reference174 = ref span102[3]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue @@ -382458,16 +314901,14 @@ public static class AssemblyQuestLoader num2 = 2; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span105 = CollectionsMarshal.AsSpan(list259); + span105[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span259[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + span105[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -382480,30 +314921,24 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - Span span260 = CollectionsMarshal.AsSpan(list260); - index = 0; - span260[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list260)[0] = "plogon_enjoyer"; questRoot26.Author = list260; - index = 3; - List list261 = new List(index); - CollectionsMarshal.SetCount(list261, index); - Span span261 = CollectionsMarshal.AsSpan(list261); - num = 0; - ref QuestSequence reference175 = ref span261[num]; + num = 3; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span106 = CollectionsMarshal.AsSpan(list261); + ref QuestSequence reference175 = ref span106[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj131.Steps = list262; reference175 = obj131; - num++; - ref QuestSequence reference176 = ref span261[num]; + ref QuestSequence reference176 = ref span106[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 @@ -382511,83 +314946,68 @@ public static class AssemblyQuestLoader num2 = 4; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + Span span107 = CollectionsMarshal.AsSpan(list263); + span107[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - index2++; - ref QuestStep reference177 = ref span263[index2]; + ref QuestStep reference177 = ref span107[1]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list264 = new List(index3); - CollectionsMarshal.SetCount(list264, index3); - Span span264 = CollectionsMarshal.AsSpan(list264); - num3 = 0; - span264[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list264 = new List(num3); + CollectionsMarshal.SetCount(list264, num3); + CollectionsMarshal.AsSpan(list264)[0] = EExtendedClassJob.Miner; questStep36.RequiredQuestAcceptedJob = list264; num3 = 1; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - Span span265 = CollectionsMarshal.AsSpan(list265); - index3 = 0; - span265[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list265)[0] = new GatheredItem { ItemId = 38292u, ItemCount = 3 }; questStep36.ItemsToGather = list265; reference177 = questStep36; - index2++; - ref QuestStep reference178 = ref span263[index2]; + ref QuestStep reference178 = ref span107[2]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list266 = new List(index3); - CollectionsMarshal.SetCount(list266, index3); - Span span266 = CollectionsMarshal.AsSpan(list266); - num3 = 0; - span266[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + CollectionsMarshal.AsSpan(list266)[0] = EExtendedClassJob.Botanist; questStep37.RequiredQuestAcceptedJob = list266; num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span267 = CollectionsMarshal.AsSpan(list267); - index3 = 0; - span267[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list267)[0] = new GatheredItem { ItemId = 38316u, ItemCount = 3 }; questStep37.ItemsToGather = list267; reference178 = questStep37; - index2++; - span263[index2] = new QuestStep(EInteractionType.Interact, 1044070u, new Vector3(132.34143f, 269.00006f, -654.6273f), 960) + span107[3] = new QuestStep(EInteractionType.Interact, 1044070u, new Vector3(132.34143f, 269.00006f, -654.6273f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj132.Steps = list263; reference176 = obj132; - num++; - ref QuestSequence reference179 = ref span261[num]; + ref QuestSequence reference179 = ref span106[2]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span268[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Mount = true }; @@ -382600,16 +315020,13 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - Span span269 = CollectionsMarshal.AsSpan(list269); - index = 0; - span269[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list269)[0] = "plogon_enjoyer"; questRoot27.Author = list269; - index = 3; - List list270 = new List(index); - CollectionsMarshal.SetCount(list270, index); - Span span270 = CollectionsMarshal.AsSpan(list270); - num = 0; - ref QuestSequence reference180 = ref span270[num]; + num = 3; + List list270 = new List(num); + CollectionsMarshal.SetCount(list270, num); + Span span109 = CollectionsMarshal.AsSpan(list270); + ref QuestSequence reference180 = ref span109[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -382617,93 +315034,75 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - span271[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj134.Steps = list271; reference180 = obj134; - num++; - ref QuestSequence reference181 = ref span270[num]; + ref QuestSequence reference181 = ref span109[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1073 }; - num2++; - ref QuestStep reference182 = ref span272[num2]; + ref QuestStep reference182 = ref span110[1]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list273 = new List(index3); - CollectionsMarshal.SetCount(list273, index3); - Span span273 = CollectionsMarshal.AsSpan(list273); - num3 = 0; - span273[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list273 = new List(num3); + CollectionsMarshal.SetCount(list273, num3); + CollectionsMarshal.AsSpan(list273)[0] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list273; num3 = 1; List list274 = new List(num3); CollectionsMarshal.SetCount(list274, num3); - Span span274 = CollectionsMarshal.AsSpan(list274); - index3 = 0; - span274[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list274)[0] = new GatheredItem { ItemId = 38293u, ItemCount = 3 }; questStep38.ItemsToGather = list274; reference182 = questStep38; - num2++; - ref QuestStep reference183 = ref span272[num2]; + ref QuestStep reference183 = ref span110[2]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list275 = new List(index3); - CollectionsMarshal.SetCount(list275, index3); - Span span275 = CollectionsMarshal.AsSpan(list275); - num3 = 0; - span275[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list275 = new List(num3); + CollectionsMarshal.SetCount(list275, num3); + CollectionsMarshal.AsSpan(list275)[0] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list275; num3 = 1; List list276 = new List(num3); CollectionsMarshal.SetCount(list276, num3); - Span span276 = CollectionsMarshal.AsSpan(list276); - index3 = 0; - span276[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list276)[0] = new GatheredItem { ItemId = 38317u, ItemCount = 3 }; questStep39.ItemsToGather = list276; reference183 = questStep39; - num2++; - span272[num2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + span110[3] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, Mount = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span272[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span110[4] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960, Mount = true, Fly = true }; - num2++; - span272[num2] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960) + span110[5] = new QuestStep(EInteractionType.Interact, 1043936u, new Vector3(194.56775f, 567.4998f, 250.93457f), 960) { Fly = true }; obj135.Steps = list272; reference181 = obj135; - num++; - ref QuestSequence reference184 = ref span270[num]; + ref QuestSequence reference184 = ref span109[2]; QuestSequence obj136 = new QuestSequence { Sequence = byte.MaxValue @@ -382711,15 +315110,13 @@ public static class AssemblyQuestLoader num2 = 2; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) + Span span111 = CollectionsMarshal.AsSpan(list277); + span111[0] = new QuestStep(EInteractionType.Interact, 1043864u, new Vector3(244.83093f, 564.8203f, 261.76843f), 960) { TargetTerritoryId = (ushort)960, Fly = true }; - index2++; - span277[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) + span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960) { Fly = true }; @@ -382732,30 +315129,24 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - Span span278 = CollectionsMarshal.AsSpan(list278); - index = 0; - span278[index] = "liza"; + CollectionsMarshal.AsSpan(list278)[0] = "liza"; questRoot28.Author = list278; - index = 3; - List list279 = new List(index); - CollectionsMarshal.SetCount(list279, index); - Span span279 = CollectionsMarshal.AsSpan(list279); - num = 0; - ref QuestSequence reference185 = ref span279[num]; + num = 3; + List list279 = new List(num); + CollectionsMarshal.SetCount(list279, num); + Span span112 = CollectionsMarshal.AsSpan(list279); + ref QuestSequence reference185 = ref span112[0]; QuestSequence obj137 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj137.Steps = list280; reference185 = obj137; - num++; - ref QuestSequence reference186 = ref span279[num]; + ref QuestSequence reference186 = ref span112[1]; QuestSequence obj138 = new QuestSequence { Sequence = 1 @@ -382763,77 +315154,63 @@ public static class AssemblyQuestLoader num2 = 3; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - ref QuestStep reference187 = ref span281[index2]; + Span span113 = CollectionsMarshal.AsSpan(list281); + ref QuestStep reference187 = ref span113[0]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list282 = new List(index3); - CollectionsMarshal.SetCount(list282, index3); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - span282[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; questStep40.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span283 = CollectionsMarshal.AsSpan(list283); - index3 = 0; - span283[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem { ItemId = 38294u, ItemCount = 3 }; questStep40.ItemsToGather = list283; reference187 = questStep40; - index2++; - ref QuestStep reference188 = ref span281[index2]; + ref QuestStep reference188 = ref span113[1]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list284 = new List(index3); - CollectionsMarshal.SetCount(list284, index3); - Span span284 = CollectionsMarshal.AsSpan(list284); - num3 = 0; - span284[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; questStep41.RequiredQuestAcceptedJob = list284; num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - Span span285 = CollectionsMarshal.AsSpan(list285); - index3 = 0; - span285[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem { ItemId = 38318u, ItemCount = 3 }; questStep41.ItemsToGather = list285; reference188 = questStep41; - index2++; - span281[index2] = new QuestStep(EInteractionType.Interact, 1044071u, new Vector3(46.066895f, 268.99976f, -584.77155f), 960) + span113[2] = new QuestStep(EInteractionType.Interact, 1044071u, new Vector3(46.066895f, 268.99976f, -584.77155f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; obj138.Steps = list281; reference186 = obj138; - num++; - ref QuestSequence reference189 = ref span279[num]; + ref QuestSequence reference189 = ref span112[2]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span286[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span114[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj139.Steps = list286; reference189 = obj139; questRoot28.QuestSequence = list279; @@ -382843,16 +315220,13 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - Span span287 = CollectionsMarshal.AsSpan(list287); - index = 0; - span287[index] = "liza"; + CollectionsMarshal.AsSpan(list287)[0] = "liza"; questRoot29.Author = list287; - index = 4; - List list288 = new List(index); - CollectionsMarshal.SetCount(list288, index); - Span span288 = CollectionsMarshal.AsSpan(list288); - num = 0; - ref QuestSequence reference190 = ref span288[num]; + num = 4; + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + Span span115 = CollectionsMarshal.AsSpan(list288); + ref QuestSequence reference190 = ref span115[0]; QuestSequence obj140 = new QuestSequence { Sequence = 0 @@ -382860,30 +315234,24 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj140.Steps = list289; reference190 = obj140; - num++; - ref QuestSequence reference191 = ref span288[num]; + ref QuestSequence reference191 = ref span115[1]; QuestSequence obj141 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj141.Steps = list290; reference191 = obj141; - num++; - ref QuestSequence reference192 = ref span288[num]; + ref QuestSequence reference192 = ref span115[2]; QuestSequence obj142 = new QuestSequence { Sequence = 2 @@ -382891,34 +315259,26 @@ public static class AssemblyQuestLoader num2 = 2; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - ref QuestStep reference193 = ref span291[index2]; + Span span116 = CollectionsMarshal.AsSpan(list291); + ref QuestStep reference193 = ref span116[0]; QuestStep obj143 = new QuestStep(EInteractionType.Action, 2013132u, new Vector3(-327.04663f, 88.48706f, 293.04944f), 960) { Fly = true, Action = EAction.ElectrixFlux }; - 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); + 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); obj143.CompletionQuestVariablesFlags = list292; reference193 = obj143; - index2++; - ref QuestStep reference194 = ref span291[index2]; + ref QuestStep reference194 = ref span116[1]; QuestStep obj144 = new QuestStep(EInteractionType.Action, 2013131u, new Vector3(-324.8493f, 88.05969f, 269.79468f), 960) { Fly = true, @@ -382927,41 +315287,32 @@ public static class AssemblyQuestLoader num3 = 6; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - 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); + 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); obj144.CompletionQuestVariablesFlags = list293; reference194 = obj144; obj142.Steps = list291; reference192 = obj142; - num++; - ref QuestSequence reference195 = ref span288[num]; + ref QuestSequence reference195 = ref span115[3]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span294[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj145.Steps = list294; reference195 = obj145; questRoot29.QuestSequence = list288; @@ -382971,16 +315322,13 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; questRoot30.Author = list295; - index = 3; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference196 = ref span296[num]; + num = 3; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span120 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference196 = ref span120[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 @@ -382988,74 +315336,59 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj146.Steps = list297; reference196 = obj146; - num++; - ref QuestSequence reference197 = ref span296[num]; + ref QuestSequence reference197 = ref span120[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list298 = new List(index2); - CollectionsMarshal.SetCount(list298, index2); - Span span298 = CollectionsMarshal.AsSpan(list298); - num2 = 0; - ref QuestStep reference198 = ref span298[num2]; + num2 = 3; + List list298 = new List(num2); + CollectionsMarshal.SetCount(list298, num2); + Span span121 = CollectionsMarshal.AsSpan(list298); + ref QuestStep reference198 = ref span121[0]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list299 = new List(index3); - CollectionsMarshal.SetCount(list299, index3); - Span span299 = CollectionsMarshal.AsSpan(list299); - num3 = 0; - span299[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list299 = new List(num3); + CollectionsMarshal.SetCount(list299, num3); + CollectionsMarshal.AsSpan(list299)[0] = EExtendedClassJob.Miner; questStep42.RequiredQuestAcceptedJob = list299; num3 = 1; List list300 = new List(num3); CollectionsMarshal.SetCount(list300, num3); - Span span300 = CollectionsMarshal.AsSpan(list300); - index3 = 0; - span300[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list300)[0] = new GatheredItem { ItemId = 38295u, ItemCount = 3 }; questStep42.ItemsToGather = list300; reference198 = questStep42; - num2++; - ref QuestStep reference199 = ref span298[num2]; + ref QuestStep reference199 = ref span121[1]; QuestStep questStep43 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list301 = new List(index3); - CollectionsMarshal.SetCount(list301, index3); - Span span301 = CollectionsMarshal.AsSpan(list301); - num3 = 0; - span301[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list301 = new List(num3); + CollectionsMarshal.SetCount(list301, num3); + CollectionsMarshal.AsSpan(list301)[0] = EExtendedClassJob.Botanist; questStep43.RequiredQuestAcceptedJob = list301; num3 = 1; List list302 = new List(num3); CollectionsMarshal.SetCount(list302, num3); - Span span302 = CollectionsMarshal.AsSpan(list302); - index3 = 0; - span302[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list302)[0] = new GatheredItem { ItemId = 38319u, ItemCount = 3 }; questStep43.ItemsToGather = list302; reference199 = questStep43; - num2++; - span298[num2] = new QuestStep(EInteractionType.Interact, 1044074u, new Vector3(-585.90063f, 75.22713f, 256.67188f), 960) + span121[2] = new QuestStep(EInteractionType.Interact, 1044074u, new Vector3(-585.90063f, 75.22713f, 256.67188f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj147.Steps = list298; reference197 = obj147; - num++; - ref QuestSequence reference200 = ref span296[num]; + ref QuestSequence reference200 = ref span120[2]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue @@ -383063,15 +315396,13 @@ public static class AssemblyQuestLoader num2 = 2; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span122 = CollectionsMarshal.AsSpan(list303); + span122[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span303[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj148.Steps = list303; reference200 = obj148; questRoot30.QuestSequence = list296; @@ -383081,30 +315412,24 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span304 = CollectionsMarshal.AsSpan(list304); - index = 0; - span304[index] = "liza"; + CollectionsMarshal.AsSpan(list304)[0] = "liza"; questRoot31.Author = list304; - index = 4; - List list305 = new List(index); - CollectionsMarshal.SetCount(list305, index); - Span span305 = CollectionsMarshal.AsSpan(list305); - num = 0; - ref QuestSequence reference201 = ref span305[num]; + num = 4; + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + Span span123 = CollectionsMarshal.AsSpan(list305); + ref QuestSequence reference201 = ref span123[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj149.Steps = list306; reference201 = obj149; - num++; - ref QuestSequence reference202 = ref span305[num]; + ref QuestSequence reference202 = ref span123[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 @@ -383112,76 +315437,61 @@ public static class AssemblyQuestLoader num2 = 2; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span307[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) + Span span124 = CollectionsMarshal.AsSpan(list307); + span124[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.48206f, 143.11438f), 960) { TargetTerritoryId = (ushort)1073 }; - index2++; - span307[index2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); + span124[1] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); obj150.Steps = list307; reference202 = obj150; - num++; - ref QuestSequence reference203 = ref span305[num]; + ref QuestSequence reference203 = ref span123[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list308 = new List(index2); - CollectionsMarshal.SetCount(list308, index2); - Span span308 = CollectionsMarshal.AsSpan(list308); - num2 = 0; - ref QuestStep reference204 = ref span308[num2]; + num2 = 3; + List list308 = new List(num2); + CollectionsMarshal.SetCount(list308, num2); + Span span125 = CollectionsMarshal.AsSpan(list308); + ref QuestStep reference204 = ref span125[0]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list309 = new List(index3); - CollectionsMarshal.SetCount(list309, index3); - Span span309 = CollectionsMarshal.AsSpan(list309); - num3 = 0; - span309[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list309 = new List(num3); + CollectionsMarshal.SetCount(list309, num3); + CollectionsMarshal.AsSpan(list309)[0] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list309; num3 = 1; List list310 = new List(num3); CollectionsMarshal.SetCount(list310, num3); - Span span310 = CollectionsMarshal.AsSpan(list310); - index3 = 0; - span310[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list310)[0] = new GatheredItem { ItemId = 38296u, ItemCount = 3 }; questStep44.ItemsToGather = list310; reference204 = questStep44; - num2++; - ref QuestStep reference205 = ref span308[num2]; + ref QuestStep reference205 = ref span125[1]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 1073); - index3 = 1; - List list311 = new List(index3); - CollectionsMarshal.SetCount(list311, index3); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list311; num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span312 = CollectionsMarshal.AsSpan(list312); - index3 = 0; - span312[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list312)[0] = new GatheredItem { ItemId = 38320u, ItemCount = 3 }; questStep45.ItemsToGather = list312; reference205 = questStep45; - num2++; - span308[num2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); + span125[2] = new QuestStep(EInteractionType.Interact, 1044075u, new Vector3(-64.4389f, 493.32922f, -4.409851f), 1073); obj151.Steps = list308; reference203 = obj151; - num++; - ref QuestSequence reference206 = ref span305[num]; + ref QuestSequence reference206 = ref span123[3]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -383189,14 +315499,12 @@ public static class AssemblyQuestLoader num2 = 2; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) + Span span126 = CollectionsMarshal.AsSpan(list313); + span126[0] = new QuestStep(EInteractionType.Interact, 1043421u, new Vector3(2.4261475f, 499.87805f, 46.036377f), 1073) { TargetTerritoryId = (ushort)960 }; - index2++; - span313[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span126[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj152.Steps = list313; reference206 = obj152; questRoot31.QuestSequence = list305; @@ -383206,30 +315514,24 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - Span span314 = CollectionsMarshal.AsSpan(list314); - index = 0; - span314[index] = "liza"; + CollectionsMarshal.AsSpan(list314)[0] = "liza"; questRoot32.Author = list314; - index = 3; - List list315 = new List(index); - CollectionsMarshal.SetCount(list315, index); - Span span315 = CollectionsMarshal.AsSpan(list315); - num = 0; - ref QuestSequence reference207 = ref span315[num]; + num = 3; + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span127 = CollectionsMarshal.AsSpan(list315); + ref QuestSequence reference207 = ref span127[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj153.Steps = list316; reference207 = obj153; - num++; - ref QuestSequence reference208 = ref span315[num]; + ref QuestSequence reference208 = ref span127[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -383237,77 +315539,63 @@ public static class AssemblyQuestLoader num2 = 3; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - ref QuestStep reference209 = ref span317[index2]; + Span span128 = CollectionsMarshal.AsSpan(list317); + ref QuestStep reference209 = ref span128[0]; QuestStep questStep46 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list318 = new List(index3); - CollectionsMarshal.SetCount(list318, index3); - Span span318 = CollectionsMarshal.AsSpan(list318); - num3 = 0; - span318[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list318 = new List(num3); + CollectionsMarshal.SetCount(list318, num3); + CollectionsMarshal.AsSpan(list318)[0] = EExtendedClassJob.Miner; questStep46.RequiredQuestAcceptedJob = list318; num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span319 = CollectionsMarshal.AsSpan(list319); - index3 = 0; - span319[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list319)[0] = new GatheredItem { ItemId = 38297u, ItemCount = 3 }; questStep46.ItemsToGather = list319; reference209 = questStep46; - index2++; - ref QuestStep reference210 = ref span317[index2]; + ref QuestStep reference210 = ref span128[1]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 960); - index3 = 1; - List list320 = new List(index3); - CollectionsMarshal.SetCount(list320, index3); - Span span320 = CollectionsMarshal.AsSpan(list320); - num3 = 0; - span320[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + CollectionsMarshal.AsSpan(list320)[0] = EExtendedClassJob.Botanist; questStep47.RequiredQuestAcceptedJob = list320; num3 = 1; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - Span span321 = CollectionsMarshal.AsSpan(list321); - index3 = 0; - span321[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list321)[0] = new GatheredItem { ItemId = 38321u, ItemCount = 3 }; questStep47.ItemsToGather = list321; reference210 = questStep47; - index2++; - span317[index2] = new QuestStep(EInteractionType.Interact, 1044076u, new Vector3(-499.96188f, 77.00467f, 241.07727f), 960) + span128[2] = new QuestStep(EInteractionType.Interact, 1044076u, new Vector3(-499.96188f, 77.00467f, 241.07727f), 960) { StopDistance = 9f, AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; obj154.Steps = list317; reference208 = obj154; - num++; - ref QuestSequence reference211 = ref span315[num]; + ref QuestSequence reference211 = ref span127[2]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span322[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span129[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj155.Steps = list322; reference211 = obj155; questRoot32.QuestSequence = list315; @@ -383317,16 +315605,13 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - Span span323 = CollectionsMarshal.AsSpan(list323); - index = 0; - span323[index] = "liza"; + CollectionsMarshal.AsSpan(list323)[0] = "liza"; questRoot33.Author = list323; - index = 3; - List list324 = new List(index); - CollectionsMarshal.SetCount(list324, index); - Span span324 = CollectionsMarshal.AsSpan(list324); - num = 0; - ref QuestSequence reference212 = ref span324[num]; + num = 3; + List list324 = new List(num); + CollectionsMarshal.SetCount(list324, num); + Span span130 = CollectionsMarshal.AsSpan(list324); + ref QuestSequence reference212 = ref span130[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 @@ -383334,77 +315619,62 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - index2 = 0; - span325[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj156.Steps = list325; reference212 = obj156; - num++; - ref QuestSequence reference213 = ref span324[num]; + ref QuestSequence reference213 = ref span130[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list326 = new List(index2); - CollectionsMarshal.SetCount(list326, index2); - Span span326 = CollectionsMarshal.AsSpan(list326); - num2 = 0; - ref QuestStep reference214 = ref span326[num2]; + num2 = 3; + List list326 = new List(num2); + CollectionsMarshal.SetCount(list326, num2); + Span span131 = CollectionsMarshal.AsSpan(list326); + ref QuestStep reference214 = ref span131[0]; QuestStep obj158 = new QuestStep(EInteractionType.Gather, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; - index3 = 1; - List list327 = new List(index3); - CollectionsMarshal.SetCount(list327, index3); - Span span327 = CollectionsMarshal.AsSpan(list327); - num3 = 0; - span327[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list327 = new List(num3); + CollectionsMarshal.SetCount(list327, num3); + CollectionsMarshal.AsSpan(list327)[0] = EExtendedClassJob.Miner; obj158.RequiredQuestAcceptedJob = list327; num3 = 1; List list328 = new List(num3); CollectionsMarshal.SetCount(list328, num3); - Span span328 = CollectionsMarshal.AsSpan(list328); - index3 = 0; - span328[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list328)[0] = new GatheredItem { ItemId = 38299u, ItemCount = 3 }; obj158.ItemsToGather = list328; reference214 = obj158; - num2++; - ref QuestStep reference215 = ref span326[num2]; + ref QuestStep reference215 = ref span131[1]; QuestStep obj159 = new QuestStep(EInteractionType.Gather, null, null, 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleReahTahra }; - index3 = 1; - List list329 = new List(index3); - CollectionsMarshal.SetCount(list329, index3); - Span span329 = CollectionsMarshal.AsSpan(list329); - num3 = 0; - span329[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list329 = new List(num3); + CollectionsMarshal.SetCount(list329, num3); + CollectionsMarshal.AsSpan(list329)[0] = EExtendedClassJob.Botanist; obj159.RequiredQuestAcceptedJob = list329; num3 = 1; List list330 = new List(num3); CollectionsMarshal.SetCount(list330, num3); - Span span330 = CollectionsMarshal.AsSpan(list330); - index3 = 0; - span330[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list330)[0] = new GatheredItem { ItemId = 38323u, ItemCount = 3 }; obj159.ItemsToGather = list330; reference215 = obj159; - num2++; - span326[num2] = new QuestStep(EInteractionType.Interact, 1044081u, new Vector3(-503.99023f, 74.16917f, 261.82947f), 960); + span131[2] = new QuestStep(EInteractionType.Interact, 1044081u, new Vector3(-503.99023f, 74.16917f, 261.82947f), 960); obj157.Steps = list326; reference213 = obj157; - num++; - ref QuestSequence reference216 = ref span324[num]; + ref QuestSequence reference216 = ref span130[2]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -383412,15 +315682,13 @@ public static class AssemblyQuestLoader num2 = 2; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span331[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span132 = CollectionsMarshal.AsSpan(list331); + span132[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span331[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj160.Steps = list331; reference216 = obj160; questRoot33.QuestSequence = list324; @@ -383430,30 +315698,24 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = "liza"; + CollectionsMarshal.AsSpan(list332)[0] = "liza"; questRoot34.Author = list332; - index = 4; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref QuestSequence reference217 = ref span333[num]; + num = 4; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + Span span133 = CollectionsMarshal.AsSpan(list333); + ref QuestSequence reference217 = ref span133[0]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj161.Steps = list334; reference217 = obj161; - num++; - ref QuestSequence reference218 = ref span333[num]; + ref QuestSequence reference218 = ref span133[1]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -383461,20 +315723,16 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - ref QuestStep reference219 = ref span335[index2]; + ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list335)[0]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1044078u, new Vector3(97.154175f, 269.09738f, -498.3139f), 960) { Fly = true, AetheryteShortcut = EAetheryteLocation.UltimaThuleAbodeOfTheEa }; - index3 = 1; - List list336 = new List(index3); - CollectionsMarshal.SetCount(list336, index3); - Span span336 = CollectionsMarshal.AsSpan(list336); - num3 = 0; - span336[num3] = new DialogueChoice + num3 = 1; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + CollectionsMarshal.AsSpan(list336)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANOMI127_04633_Q1_000_000"), @@ -383484,25 +315742,21 @@ public static class AssemblyQuestLoader reference219 = obj163; obj162.Steps = list335; reference218 = obj162; - num++; - ref QuestSequence reference220 = ref span333[num]; + ref QuestSequence reference220 = ref span133[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj164.Steps = list337; reference220 = obj164; - num++; - ref QuestSequence reference221 = ref span333[num]; + ref QuestSequence reference221 = ref span133[3]; QuestSequence obj165 = new QuestSequence { Sequence = byte.MaxValue @@ -383510,15 +315764,13 @@ public static class AssemblyQuestLoader num2 = 2; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span338 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span338[index2] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) + Span span134 = CollectionsMarshal.AsSpan(list338); + span134[0] = new QuestStep(EInteractionType.Interact, 2013072u, new Vector3(456.65674f, 438.04077f, 310.2312f), 960) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index2++; - span338[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span134[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj165.Steps = list338; reference221 = obj165; questRoot34.QuestSequence = list333; @@ -383528,30 +315780,24 @@ public static class AssemblyQuestLoader num = 1; List list339 = new List(num); CollectionsMarshal.SetCount(list339, num); - Span span339 = CollectionsMarshal.AsSpan(list339); - index = 0; - span339[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list339)[0] = "plogon_enjoyer"; questRoot35.Author = list339; - index = 3; - List list340 = new List(index); - CollectionsMarshal.SetCount(list340, index); - Span span340 = CollectionsMarshal.AsSpan(list340); - num = 0; - ref QuestSequence reference222 = ref span340[num]; + num = 3; + List list340 = new List(num); + CollectionsMarshal.SetCount(list340, num); + Span span135 = CollectionsMarshal.AsSpan(list340); + ref QuestSequence reference222 = ref span135[0]; QuestSequence obj166 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj166.Steps = list341; reference222 = obj166; - num++; - ref QuestSequence reference223 = ref span340[num]; + ref QuestSequence reference223 = ref span135[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 @@ -383559,81 +315805,66 @@ public static class AssemblyQuestLoader num2 = 4; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) + Span span136 = CollectionsMarshal.AsSpan(list342); + span136[0] = new QuestStep(EInteractionType.Interact, 2013074u, new Vector3(304.3412f, 483.4821f, 143.1448f), 960) { TargetTerritoryId = (ushort)1073 }; - index2++; - ref QuestStep reference224 = ref span342[index2]; + ref QuestStep reference224 = ref span136[1]; QuestStep questStep48 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - Span span343 = CollectionsMarshal.AsSpan(list343); - index3 = 0; - span343[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list343)[0] = EExtendedClassJob.Miner; questStep48.RequiredQuestAcceptedJob = list343; - index3 = 1; - List list344 = new List(index3); - CollectionsMarshal.SetCount(list344, index3); - Span span344 = CollectionsMarshal.AsSpan(list344); - num3 = 0; - span344[num3] = new GatheredItem + num3 = 1; + List list344 = new List(num3); + CollectionsMarshal.SetCount(list344, num3); + CollectionsMarshal.AsSpan(list344)[0] = new GatheredItem { ItemId = 38298u, ItemCount = 3 }; questStep48.ItemsToGather = list344; reference224 = questStep48; - index2++; - ref QuestStep reference225 = ref span342[index2]; + ref QuestStep reference225 = ref span136[2]; QuestStep questStep49 = new QuestStep(EInteractionType.Gather, null, null, 1073); num3 = 1; List list345 = new List(num3); CollectionsMarshal.SetCount(list345, num3); - Span span345 = CollectionsMarshal.AsSpan(list345); - index3 = 0; - span345[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list345)[0] = EExtendedClassJob.Botanist; questStep49.RequiredQuestAcceptedJob = list345; - index3 = 1; - List list346 = new List(index3); - CollectionsMarshal.SetCount(list346, index3); - Span span346 = CollectionsMarshal.AsSpan(list346); - num3 = 0; - span346[num3] = new GatheredItem + num3 = 1; + List list346 = new List(num3); + CollectionsMarshal.SetCount(list346, num3); + CollectionsMarshal.AsSpan(list346)[0] = new GatheredItem { ItemId = 38322u, ItemCount = 3 }; questStep49.ItemsToGather = list346; reference225 = questStep49; - index2++; - span342[index2] = new QuestStep(EInteractionType.Interact, 1044077u, new Vector3(474.9674f, 437.00165f, 338.094f), 960) + span136[3] = new QuestStep(EInteractionType.Interact, 1044077u, new Vector3(474.9674f, 437.00165f, 338.094f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; obj167.Steps = list342; reference223 = obj167; - num++; - ref QuestSequence reference226 = ref span340[num]; + ref QuestSequence reference226 = ref span135[2]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)960, Mount = true }; - num2++; - span347[num2] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); + span137[1] = new QuestStep(EInteractionType.CompleteQuest, 1043417u, new Vector3(314.9004f, 481.99442f, 148.11926f), 960); obj168.Steps = list347; reference226 = obj168; questRoot35.QuestSequence = list340; @@ -383643,16 +315874,13 @@ public static class AssemblyQuestLoader num = 1; List list348 = new List(num); CollectionsMarshal.SetCount(list348, num); - Span span348 = CollectionsMarshal.AsSpan(list348); - index = 0; - span348[index] = "liza"; + CollectionsMarshal.AsSpan(list348)[0] = "liza"; questRoot36.Author = list348; - index = 5; - List list349 = new List(index); - CollectionsMarshal.SetCount(list349, index); - Span span349 = CollectionsMarshal.AsSpan(list349); - num = 0; - ref QuestSequence reference227 = ref span349[num]; + num = 5; + List list349 = new List(num); + CollectionsMarshal.SetCount(list349, num); + Span span138 = CollectionsMarshal.AsSpan(list349); + ref QuestSequence reference227 = ref span138[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -383660,9 +315888,7 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.AcceptQuest, 1041258u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.AcceptQuest, 1041258u, new Vector3(-639.704f, -27.175835f, 301.07568f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, SkipConditions = new SkipConditions @@ -383675,26 +315901,22 @@ public static class AssemblyQuestLoader }; obj169.Steps = list350; reference227 = obj169; - num++; - ref QuestSequence reference228 = ref span349[num]; + ref QuestSequence reference228 = ref span138[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisPoietenOikos }; obj170.Steps = list351; reference228 = obj170; - num++; - ref QuestSequence reference229 = ref span349[num]; + ref QuestSequence reference229 = ref span138[2]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -383702,34 +315924,28 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - span352[index2] = new QuestStep(EInteractionType.Interact, 1043488u, new Vector3(643.48804f, 158.6388f, -254.35266f), 961) + CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1043488u, new Vector3(643.48804f, 158.6388f, -254.35266f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; obj171.Steps = list352; reference229 = obj171; - num++; - ref QuestSequence reference230 = ref span349[num]; + ref QuestSequence reference230 = ref span138[3]; QuestSequence obj172 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj172.Steps = list353; reference230 = obj172; - num++; - ref QuestSequence reference231 = ref span349[num]; + ref QuestSequence reference231 = ref span138[4]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -383737,9 +315953,7 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - Span span354 = CollectionsMarshal.AsSpan(list354); - index2 = 0; - span354[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) + CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043489u, new Vector3(99.99231f, -9.999999E-12f, -22.171448f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4636) @@ -383753,33 +315967,27 @@ public static class AssemblyQuestLoader num = 1; List list355 = new List(num); CollectionsMarshal.SetCount(list355, num); - Span span355 = CollectionsMarshal.AsSpan(list355); - index = 0; - span355[index] = "liza"; + CollectionsMarshal.AsSpan(list355)[0] = "liza"; questRoot37.Author = list355; - index = 3; - List list356 = new List(index); - CollectionsMarshal.SetCount(list356, index); - Span span356 = CollectionsMarshal.AsSpan(list356); - num = 0; - ref QuestSequence reference232 = ref span356[num]; + num = 3; + List list356 = new List(num); + CollectionsMarshal.SetCount(list356, num); + Span span139 = CollectionsMarshal.AsSpan(list356); + ref QuestSequence reference232 = ref span139[0]; QuestSequence obj174 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj174.Steps = list357; reference232 = obj174; - num++; - ref QuestSequence reference233 = ref span356[num]; + ref QuestSequence reference233 = ref span139[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -383787,9 +315995,7 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - span358[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) + CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -383798,18 +316004,15 @@ public static class AssemblyQuestLoader }; obj175.Steps = list358; reference233 = obj175; - num++; - ref QuestSequence reference234 = ref span356[num]; + ref QuestSequence reference234 = ref span139[2]; QuestSequence obj176 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 4f, NextQuestId = new QuestId(4637) @@ -383823,16 +316026,13 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - Span span360 = CollectionsMarshal.AsSpan(list360); - index = 0; - span360[index] = "liza"; + CollectionsMarshal.AsSpan(list360)[0] = "liza"; questRoot38.Author = list360; - index = 5; - List list361 = new List(index); - CollectionsMarshal.SetCount(list361, index); - Span span361 = CollectionsMarshal.AsSpan(list361); - num = 0; - ref QuestSequence reference235 = ref span361[num]; + num = 5; + List list361 = new List(num); + CollectionsMarshal.SetCount(list361, num); + Span span140 = CollectionsMarshal.AsSpan(list361); + ref QuestSequence reference235 = ref span140[0]; QuestSequence obj177 = new QuestSequence { Sequence = 0 @@ -383840,27 +316040,21 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043491u, new Vector3(101.79285f, -1E-11f, -26.901672f), 1025); + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043491u, new Vector3(101.79285f, -1E-11f, -26.901672f), 1025); obj177.Steps = list362; reference235 = obj177; - num++; - ref QuestSequence reference236 = ref span361[num]; + ref QuestSequence reference236 = ref span140[1]; QuestSequence obj178 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj178.Steps = list363; reference236 = obj178; - num++; - ref QuestSequence reference237 = ref span361[num]; + ref QuestSequence reference237 = ref span140[2]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -383868,23 +316062,18 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span364 = CollectionsMarshal.AsSpan(list364); - index2 = 0; - span364[index2] = new QuestStep(EInteractionType.Interact, 1043493u, new Vector3(98.31384f, -9.999999E-12f, -26.901672f), 1025); + CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1043493u, new Vector3(98.31384f, -9.999999E-12f, -26.901672f), 1025); obj179.Steps = list364; reference237 = obj179; - num++; - ref QuestSequence reference238 = ref span361[num]; + ref QuestSequence reference238 = ref span140[3]; QuestSequence obj180 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list365 = new List(num2); + CollectionsMarshal.SetCount(list365, num2); + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -383893,8 +316082,7 @@ public static class AssemblyQuestLoader }; obj180.Steps = list365; reference238 = obj180; - num++; - ref QuestSequence reference239 = ref span361[num]; + ref QuestSequence reference239 = ref span140[4]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -383902,9 +316090,7 @@ public static class AssemblyQuestLoader num2 = 1; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span366 = CollectionsMarshal.AsSpan(list366); - index2 = 0; - span366[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) + CollectionsMarshal.AsSpan(list366)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043506u, new Vector3(102.12854f, -9.999999E-12f, -26.56604f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4638) @@ -383918,33 +316104,27 @@ public static class AssemblyQuestLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - Span span367 = CollectionsMarshal.AsSpan(list367); - index = 0; - span367[index] = "liza"; + CollectionsMarshal.AsSpan(list367)[0] = "liza"; questRoot39.Author = list367; - index = 4; - List list368 = new List(index); - CollectionsMarshal.SetCount(list368, index); - Span span368 = CollectionsMarshal.AsSpan(list368); - num = 0; - ref QuestSequence reference240 = ref span368[num]; + num = 4; + List list368 = new List(num); + CollectionsMarshal.SetCount(list368, num); + Span span141 = CollectionsMarshal.AsSpan(list368); + ref QuestSequence reference240 = ref span141[0]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj182.Steps = list369; reference240 = obj182; - num++; - ref QuestSequence reference241 = ref span368[num]; + ref QuestSequence reference241 = ref span141[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -383952,26 +316132,21 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - span370[index2] = new QuestStep(EInteractionType.Interact, 1043785u, new Vector3(98.55798f, -1E-11f, -26.474487f), 1025) + CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.Interact, 1043785u, new Vector3(98.55798f, -1E-11f, -26.474487f), 1025) { StopDistance = 4f }; obj183.Steps = list370; reference241 = obj183; - num++; - ref QuestSequence reference242 = ref span368[num]; + ref QuestSequence reference242 = ref span141[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list371 = new List(num2); + CollectionsMarshal.SetCount(list371, num2); + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -383980,8 +316155,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list371; reference242 = obj184; - num++; - ref QuestSequence reference243 = ref span368[num]; + ref QuestSequence reference243 = ref span141[3]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -383989,9 +316163,7 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - span372[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) + CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043495u, new Vector3(98.71057f, -9.999999E-12f, -26.260803f), 1025) { StopDistance = 4f, NextQuestId = new QuestId(4639) @@ -384005,33 +316177,27 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - Span span373 = CollectionsMarshal.AsSpan(list373); - index = 0; - span373[index] = "liza"; + CollectionsMarshal.AsSpan(list373)[0] = "liza"; questRoot40.Author = list373; - index = 3; - List list374 = new List(index); - CollectionsMarshal.SetCount(list374, index); - Span span374 = CollectionsMarshal.AsSpan(list374); - num = 0; - ref QuestSequence reference244 = ref span374[num]; + num = 3; + List list374 = new List(num); + CollectionsMarshal.SetCount(list374, num); + Span span142 = CollectionsMarshal.AsSpan(list374); + ref QuestSequence reference244 = ref span142[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj186.Steps = list375; reference244 = obj186; - num++; - ref QuestSequence reference245 = ref span374[num]; + ref QuestSequence reference245 = ref span142[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -384039,9 +316205,7 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - span376[index2] = new QuestStep(EInteractionType.Duty, null, null, 1025) + CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Duty, null, null, 1025) { DutyOptions = new DutyOptions { @@ -384050,18 +316214,15 @@ public static class AssemblyQuestLoader }; obj187.Steps = list376; reference245 = obj187; - num++; - ref QuestSequence reference246 = ref span374[num]; + ref QuestSequence reference246 = ref span142[2]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f, NextQuestId = new QuestId(4640) @@ -384075,16 +316236,13 @@ public static class AssemblyQuestLoader num = 1; List list378 = new List(num); CollectionsMarshal.SetCount(list378, num); - Span span378 = CollectionsMarshal.AsSpan(list378); - index = 0; - span378[index] = "liza"; + CollectionsMarshal.AsSpan(list378)[0] = "liza"; questRoot41.Author = list378; - index = 5; - List list379 = new List(index); - CollectionsMarshal.SetCount(list379, index); - Span span379 = CollectionsMarshal.AsSpan(list379); - num = 0; - ref QuestSequence reference247 = ref span379[num]; + num = 5; + List list379 = new List(num); + CollectionsMarshal.SetCount(list379, num); + Span span143 = CollectionsMarshal.AsSpan(list379); + ref QuestSequence reference247 = ref span143[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -384092,30 +316250,24 @@ public static class AssemblyQuestLoader num2 = 1; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span380 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - span380[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) + CollectionsMarshal.AsSpan(list380)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043497u, new Vector3(95.93347f, -4.4899712E-13f, 95.59766f), 1093) { StopDistance = 6f }; obj189.Steps = list380; reference247 = obj189; - num++; - ref QuestSequence reference248 = ref span379[num]; + ref QuestSequence reference248 = ref span143[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj190.Steps = list381; reference248 = obj190; - num++; - ref QuestSequence reference249 = ref span379[num]; + ref QuestSequence reference249 = ref span143[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -384123,35 +316275,29 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span382[index2] = new QuestStep(EInteractionType.Interact, 2013032u, new Vector3(99.9981f, 1.1515f, 120.2372f), 1093) + Span span144 = CollectionsMarshal.AsSpan(list382); + span144[0] = new QuestStep(EInteractionType.Interact, 2013032u, new Vector3(99.9981f, 1.1515f, 120.2372f), 1093) { TargetTerritoryId = (ushort)1025 }; - index2++; - span382[index2] = new QuestStep(EInteractionType.Interact, 1043500u, new Vector3(99.809204f, -1E-11f, -25.68097f), 1025); + span144[1] = new QuestStep(EInteractionType.Interact, 1043500u, new Vector3(99.809204f, -1E-11f, -25.68097f), 1025); obj191.Steps = list382; reference249 = obj191; - num++; - ref QuestSequence reference250 = ref span379[num]; + ref QuestSequence reference250 = ref span143[3]; QuestSequence obj192 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj192.Steps = list383; reference250 = obj192; - num++; - ref QuestSequence reference251 = ref span379[num]; + ref QuestSequence reference251 = ref span143[4]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue @@ -384159,9 +316305,7 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - Span span384 = CollectionsMarshal.AsSpan(list384); - index2 = 0; - span384[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { NextQuestId = new QuestId(4756) }; @@ -384174,40 +316318,33 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - Span span385 = CollectionsMarshal.AsSpan(list385); - index = 0; - span385[index] = "liza"; + CollectionsMarshal.AsSpan(list385)[0] = "liza"; questRoot42.Author = list385; - index = 10; - List list386 = new List(index); - CollectionsMarshal.SetCount(list386, index); - Span span386 = CollectionsMarshal.AsSpan(list386); - num = 0; - ref QuestSequence reference252 = ref span386[num]; + num = 10; + List list386 = new List(num); + CollectionsMarshal.SetCount(list386, num); + Span span145 = CollectionsMarshal.AsSpan(list386); + ref QuestSequence reference252 = ref span145[0]; QuestSequence obj194 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list387 = new List(num2); + CollectionsMarshal.SetCount(list387, num2); + ref QuestStep reference253 = ref CollectionsMarshal.AsSpan(list387)[0]; 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 span388 = CollectionsMarshal.AsSpan(list388); - index3 = 0; - span388[index3] = new DialogueChoice + Span span146 = CollectionsMarshal.AsSpan(list388); + span146[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB821_04641_Q2_000_000"), Answer = new ExcelRef("TEXT_CHRHDB821_04641_A2_000_002") }; - index3++; - span388[index3] = new DialogueChoice + span146[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB821_04641_Q3_000_000"), @@ -384217,8 +316354,7 @@ public static class AssemblyQuestLoader reference253 = questStep50; obj194.Steps = list387; reference252 = obj194; - num++; - ref QuestSequence reference254 = ref span386[num]; + ref QuestSequence reference254 = ref span145[1]; QuestSequence obj195 = new QuestSequence { Sequence = 1 @@ -384226,43 +316362,36 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span389 = CollectionsMarshal.AsSpan(list389); - index2 = 0; - span389[index2] = new QuestStep(EInteractionType.Interact, 1042524u, new Vector3(-432.70013f, 22.328213f, 508.75085f), 958) + CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1042524u, new Vector3(-432.70013f, 22.328213f, 508.75085f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj195.Steps = list389; reference254 = obj195; - num++; - ref QuestSequence reference255 = ref span386[num]; + ref QuestSequence reference255 = ref span145[2]; QuestSequence obj196 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, TargetTerritoryId = (ushort)1024, Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; - num2++; - span390[num2] = new QuestStep(EInteractionType.Interact, 2012529u, new Vector3(0.07623291f, 0.83917236f, 52.506226f), 1024) + span147[1] = new QuestStep(EInteractionType.Interact, 2012529u, new Vector3(0.07623291f, 0.83917236f, 52.506226f), 1024) { TargetTerritoryId = (ushort)958 }; - num2++; - span390[num2] = new QuestStep(EInteractionType.Interact, 1042525u, new Vector3(-446.0365f, 10.5f, -616.14404f), 958); + span147[2] = new QuestStep(EInteractionType.Interact, 1042525u, new Vector3(-446.0365f, 10.5f, -616.14404f), 958); obj196.Steps = list390; reference255 = obj196; - num++; - ref QuestSequence reference256 = ref span386[num]; + ref QuestSequence reference256 = ref span145[3]; QuestSequence obj197 = new QuestSequence { Sequence = 3 @@ -384270,30 +316399,24 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - Span span391 = CollectionsMarshal.AsSpan(list391); - index2 = 0; - span391[index2] = new QuestStep(EInteractionType.Interact, 1042526u, new Vector3(-657.9232f, 130.61172f, 722.62134f), 959) + CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.Interact, 1042526u, new Vector3(-657.9232f, 130.61172f, 722.62134f), 959) { StopDistance = 7f }; obj197.Steps = list391; reference256 = obj197; - num++; - ref QuestSequence reference257 = ref span386[num]; + ref QuestSequence reference257 = ref span145[4]; QuestSequence obj198 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj198.Steps = list392; reference257 = obj198; - num++; - ref QuestSequence reference258 = ref span386[num]; + ref QuestSequence reference258 = ref span145[5]; QuestSequence obj199 = new QuestSequence { Sequence = 5 @@ -384301,35 +316424,29 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span393 = CollectionsMarshal.AsSpan(list393); - index2 = 0; - span393[index2] = new QuestStep(EInteractionType.Interact, 1042531u, new Vector3(-103.07471f, -137.41672f, -444.66315f), 959) + CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.Interact, 1042531u, new Vector3(-103.07471f, -137.41672f, -444.66315f), 959) { Fly = true }; obj199.Steps = list393; reference258 = obj199; - num++; - ref QuestSequence reference259 = ref span386[num]; + ref QuestSequence reference259 = ref span145[6]; QuestSequence obj200 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; - num2++; - span394[num2] = new QuestStep(EInteractionType.Interact, 1042532u, new Vector3(-60.624146f, -132.80109f, -587.4266f), 959); + span148[1] = new QuestStep(EInteractionType.Interact, 1042532u, new Vector3(-60.624146f, -132.80109f, -587.4266f), 959); obj200.Steps = list394; reference259 = obj200; - num++; - ref QuestSequence reference260 = ref span386[num]; + ref QuestSequence reference260 = ref span145[7]; QuestSequence obj201 = new QuestSequence { Sequence = 7 @@ -384337,23 +316454,18 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - Span span395 = CollectionsMarshal.AsSpan(list395); - index2 = 0; - span395[index2] = new QuestStep(EInteractionType.Interact, 1037816u, new Vector3(114.3053f, -132.87448f, -559.35f), 959); + CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1037816u, new Vector3(114.3053f, -132.87448f, -559.35f), 959); obj201.Steps = list395; reference260 = obj201; - num++; - ref QuestSequence reference261 = ref span386[num]; + ref QuestSequence reference261 = ref span145[8]; QuestSequence obj202 = new QuestSequence { Sequence = 8 }; - 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) + 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) { StopDistance = 0.5f, Fly = true, @@ -384361,8 +316473,7 @@ public static class AssemblyQuestLoader }; obj202.Steps = list396; reference261 = obj202; - num++; - ref QuestSequence reference262 = ref span386[num]; + ref QuestSequence reference262 = ref span145[9]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -384370,9 +316481,7 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span397 = CollectionsMarshal.AsSpan(list397); - index2 = 0; - span397[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) + CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042544u, new Vector3(324.422f, 130.1783f, 711.94006f), 959) { StopDistance = 7f, NextQuestId = new QuestId(4642) @@ -384386,33 +316495,27 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - Span span398 = CollectionsMarshal.AsSpan(list398); - index = 0; - span398[index] = "liza"; + CollectionsMarshal.AsSpan(list398)[0] = "liza"; questRoot43.Author = list398; - index = 6; - List list399 = new List(index); - CollectionsMarshal.SetCount(list399, index); - Span span399 = CollectionsMarshal.AsSpan(list399); - num = 0; - ref QuestSequence reference263 = ref span399[num]; + num = 6; + List list399 = new List(num); + CollectionsMarshal.SetCount(list399, num); + Span span149 = CollectionsMarshal.AsSpan(list399); + ref QuestSequence reference263 = ref span149[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 6f }; obj204.Steps = list400; reference263 = obj204; - num++; - ref QuestSequence reference264 = ref span399[num]; + ref QuestSequence reference264 = ref span149[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -384420,34 +316523,28 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - Span span401 = CollectionsMarshal.AsSpan(list401); - index2 = 0; - span401[index2] = new QuestStep(EInteractionType.Interact, 1042548u, new Vector3(1.5106201f, 70.01534f, -1.083435f), 959) + CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Interact, 1042548u, new Vector3(1.5106201f, 70.01534f, -1.083435f), 959) { Fly = true }; obj205.Steps = list401; reference264 = obj205; - num++; - ref QuestSequence reference265 = ref span399[num]; + ref QuestSequence reference265 = ref span149[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; obj206.Steps = list402; reference265 = obj206; - num++; - ref QuestSequence reference266 = ref span399[num]; + ref QuestSequence reference266 = ref span149[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -384455,33 +316552,27 @@ public static class AssemblyQuestLoader num2 = 1; List list403 = new List(num2); CollectionsMarshal.SetCount(list403, num2); - Span span403 = CollectionsMarshal.AsSpan(list403); - index2 = 0; - span403[index2] = new QuestStep(EInteractionType.Interact, 2013063u, new Vector3(-249.22565f, 81.712036f, 134.1726f), 959) + CollectionsMarshal.AsSpan(list403)[0] = new QuestStep(EInteractionType.Interact, 2013063u, new Vector3(-249.22565f, 81.712036f, 134.1726f), 959) { Fly = true }; obj207.Steps = list403; reference266 = obj207; - num++; - ref QuestSequence reference267 = ref span399[num]; + ref QuestSequence reference267 = ref span149[4]; QuestSequence obj208 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj208.Steps = list404; reference267 = obj208; - num++; - ref QuestSequence reference268 = ref span399[num]; + ref QuestSequence reference268 = ref span149[5]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -384489,9 +316580,7 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - Span span405 = CollectionsMarshal.AsSpan(list405); - index2 = 0; - span405[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042555u, new Vector3(31.204712f, -5.351952E-07f, -0.77819824f), 963) + CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042555u, new Vector3(31.204712f, -5.351952E-07f, -0.77819824f), 963) { StopDistance = 5f, NextQuestId = new QuestId(4718) @@ -384505,26 +316594,20 @@ public static class AssemblyQuestLoader num = 1; List list406 = new List(num); CollectionsMarshal.SetCount(list406, num); - Span span406 = CollectionsMarshal.AsSpan(list406); - index = 0; - span406[index] = "liza"; + CollectionsMarshal.AsSpan(list406)[0] = "liza"; questRoot44.Author = list406; - index = 1; - List list407 = new List(index); - CollectionsMarshal.SetCount(list407, index); - Span span407 = CollectionsMarshal.AsSpan(list407); - num = 0; - ref QuestSequence reference269 = ref span407[num]; + num = 1; + List list407 = new List(num); + CollectionsMarshal.SetCount(list407, num); + ref QuestSequence reference269 = ref CollectionsMarshal.AsSpan(list407)[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj210.Steps = list408; reference269 = obj210; questRoot44.QuestSequence = list407; @@ -384538,16 +316621,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "pot0to"; + CollectionsMarshal.AsSpan(list)[0] = "pot0to"; questRoot.Author = list; - index = 11; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 11; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -384555,9 +316635,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -384570,18 +316648,15 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -384592,8 +316667,7 @@ public static class AssemblyQuestLoader }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -384601,34 +316675,28 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1011952u, new Vector3(-277.63788f, -184.59735f, 741.60376f), 401) { Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsCampCloudtop }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)567 }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -384636,88 +316704,63 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(72.46509f, 203.98001f, 125.993774f), 478); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(72.46509f, 203.98001f, 125.993774f), 478); obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = 5 }; - index2 = 3; - List list8 = new List(index2); - CollectionsMarshal.SetCount(list8, index2); - Span span8 = CollectionsMarshal.AsSpan(list8); - num2 = 0; - ref QuestStep reference7 = ref span8[num2]; + num2 = 3; + List list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); + Span span2 = CollectionsMarshal.AsSpan(list8); + ref QuestStep reference7 = ref span2[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list9; reference7 = questStep; - num2++; - ref QuestStep reference8 = ref span8[num2]; + ref QuestStep reference8 = ref span2[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1042609u, new Vector3(-49.149292f, 209.18335f, -103.01367f), 478); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list10; reference8 = questStep2; - num2++; - ref QuestStep reference9 = ref span8[num2]; + ref QuestStep reference9 = ref span2[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list11; reference9 = questStep3; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[6]; QuestSequence obj7 = new QuestSequence { Sequence = 6 @@ -384725,30 +316768,24 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(-30.20218f, 214.49994f, 91.81962f), 478) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1042605u, new Vector3(-30.20218f, 214.49994f, 91.81962f), 478) { StopDistance = 1f }; obj7.Steps = list12; reference10 = obj7; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[7]; QuestSequence obj8 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj8.Steps = list13; reference11 = obj8; - num++; - ref QuestSequence reference12 = ref span2[num]; + ref QuestSequence reference12 = ref span[8]; QuestSequence obj9 = new QuestSequence { Sequence = 8 @@ -384756,41 +316793,33 @@ public static class AssemblyQuestLoader num2 = 4; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) + Span span6 = CollectionsMarshal.AsSpan(list14); + span6[0] = new QuestStep(EInteractionType.Interact, 2007074u, new Vector3(-815.8236f, -87.26642f, -834.3175f), 401) { TargetTerritoryId = (ushort)567, Fly = true, AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; - index2++; - span14[index2] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) + span6[1] = new QuestStep(EInteractionType.Interact, 2007080u, new Vector3(18.1734f, -14.755493f, 26.840576f), 567) { TargetTerritoryId = (ushort)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); + 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); obj9.Steps = list14; reference12 = obj9; - num++; - ref QuestSequence reference13 = ref span2[num]; + ref QuestSequence reference13 = ref span[9]; QuestSequence obj10 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj10.Steps = list15; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span2[num]; + ref QuestSequence reference14 = ref span[10]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -384798,9 +316827,7 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.CompleteQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4662) @@ -384814,26 +316841,21 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list17)[0] = "CryoTechnic"; questRoot2.Author = list17; - index = 3; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference15 = ref span18[num]; + num = 3; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span7 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference15 = ref span7[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, SkipConditions = new SkipConditions @@ -384846,8 +316868,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list19; reference15 = obj12; - num++; - ref QuestSequence reference16 = ref span18[num]; + ref QuestSequence reference16 = ref span7[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -384855,11 +316876,9 @@ public static class AssemblyQuestLoader num2 = 2; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, ItemId = 38420u, @@ -384878,18 +316897,15 @@ public static class AssemblyQuestLoader }; obj13.Steps = list20; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span18[num]; + ref QuestSequence reference17 = ref span7[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -384907,16 +316923,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list22)[0] = "CryoTechnic"; questRoot3.Author = list22; - index = 3; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference18 = ref span23[num]; + num = 3; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span9 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference18 = ref span9[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -384924,9 +316937,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - span24[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + CollectionsMarshal.AsSpan(list24)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -384937,18 +316948,15 @@ public static class AssemblyQuestLoader }; obj15.Steps = list24; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span23[num]; + ref QuestSequence reference19 = ref span9[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -384967,8 +316975,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list25; reference19 = obj16; - num++; - ref QuestSequence reference20 = ref span23[num]; + ref QuestSequence reference20 = ref span9[2]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -384976,9 +316983,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -384996,26 +317001,21 @@ public static class AssemblyQuestLoader num = 1; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); - Span span27 = CollectionsMarshal.AsSpan(list27); - index = 0; - span27[index] = "Censored"; + CollectionsMarshal.AsSpan(list27)[0] = "Censored"; questRoot4.Author = list27; - index = 4; - List list28 = new List(index); - CollectionsMarshal.SetCount(list28, index); - Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - ref QuestSequence reference21 = ref span28[num]; + num = 4; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); + Span span10 = CollectionsMarshal.AsSpan(list28); + ref QuestSequence reference21 = ref span10[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -385033,8 +317033,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list29; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span28[num]; + ref QuestSequence reference22 = ref span10[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -385042,9 +317041,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.Interact, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.Interact, 1044133u, new Vector3(-196.2768f, 4.065f, -107.286194f), 963) { AethernetShortcut = new AethernetShortcut { @@ -385054,39 +317051,30 @@ public static class AssemblyQuestLoader }; obj19.Steps = list30; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span28[num]; + ref QuestSequence reference23 = ref span10[2]; QuestSequence obj20 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref QuestStep reference24 = ref span31[num2]; + num2 = 4; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + Span span11 = CollectionsMarshal.AsSpan(list31); + ref QuestStep reference24 = ref span11[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1044136u, new Vector3(-157.8852f, 3.999719f, -64.49994f), 963); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list32; reference24 = questStep4; - num2++; - ref QuestStep reference25 = ref span31[num2]; + ref QuestStep reference25 = ref span11[1]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044139u, new Vector3(3.5248413f, 2.9999907f, -196.1242f), 963) { AethernetShortcut = new AethernetShortcut @@ -385098,23 +317086,16 @@ public static class AssemblyQuestLoader num3 = 6; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - 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); + 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); obj21.CompletionQuestVariablesFlags = list33; reference25 = obj21; - num2++; - ref QuestStep reference26 = ref span31[num2]; + ref QuestStep reference26 = ref span11[2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044142u, new Vector3(48.874634f, 26.999975f, 45.090332f), 963) { AethernetShortcut = new AethernetShortcut @@ -385123,26 +317104,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanKama } }; - 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); + 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); obj22.CompletionQuestVariablesFlags = list34; reference26 = obj22; - num2++; - ref QuestStep reference27 = ref span31[num2]; + ref QuestStep reference27 = ref span11[3]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1044145u, new Vector3(-112.7489f, 29.037842f, 239.55127f), 963) { AethernetShortcut = new AethernetShortcut @@ -385154,25 +317128,18 @@ public static class AssemblyQuestLoader num3 = 6; List list35 = new List(num3); CollectionsMarshal.SetCount(list35, num3); - 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); + 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); obj23.CompletionQuestVariablesFlags = list35; reference27 = obj23; obj20.Steps = list31; reference23 = obj20; - num++; - ref QuestSequence reference28 = ref span28[num]; + ref QuestSequence reference28 = ref span10[3]; QuestSequence obj24 = new QuestSequence { Sequence = byte.MaxValue @@ -385180,9 +317147,7 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044135u, new Vector3(-195.36127f, 4.065f, -106.55377f), 963) { AethernetShortcut = new AethernetShortcut { @@ -385200,26 +317165,21 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "Censored"; + CollectionsMarshal.AsSpan(list37)[0] = "Censored"; questRoot5.Author = list37; - index = 3; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference29 = ref span38[num]; + num = 3; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span16 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference29 = ref span16[0]; QuestSequence obj25 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -385238,8 +317198,7 @@ public static class AssemblyQuestLoader }; obj25.Steps = list39; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span38[num]; + ref QuestSequence reference30 = ref span16[1]; QuestSequence obj26 = new QuestSequence { Sequence = 1 @@ -385247,9 +317206,8 @@ public static class AssemblyQuestLoader num2 = 4; List list40 = new List(num2); CollectionsMarshal.SetCount(list40, num2); - Span span40 = CollectionsMarshal.AsSpan(list40); - index2 = 0; - ref QuestStep reference31 = ref span40[index2]; + Span span17 = CollectionsMarshal.AsSpan(list40); + ref QuestStep reference31 = ref span17[0]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1044221u, new Vector3(99.32092f, 4.7837553f, -158.98376f), 963) { AethernetShortcut = new AethernetShortcut @@ -385258,26 +317216,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHan } }; - 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); + 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); obj27.CompletionQuestVariablesFlags = list41; reference31 = obj27; - index2++; - ref QuestStep reference32 = ref span40[index2]; + ref QuestStep reference32 = ref span17[1]; QuestStep obj28 = new QuestStep(EInteractionType.Interact, 1044218u, new Vector3(17.135864f, -2.000002f, 96.025024f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -385290,44 +317241,30 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - 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); + 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); obj28.CompletionQuestVariablesFlags = list42; reference32 = obj28; - index2++; - ref QuestStep reference33 = ref span40[index2]; + ref QuestStep reference33 = ref span17[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1044217u, new Vector3(-71.54962f, -2.0001035f, 150.83533f), 963); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list43; reference33 = questStep5; - index2++; - ref QuestStep reference34 = ref span40[index2]; + ref QuestStep reference34 = ref span17[3]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 1044215u, new Vector3(-278.0957f, 36f, 69.10803f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -385340,35 +317277,26 @@ public static class AssemblyQuestLoader num3 = 6; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - 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); + 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); obj29.CompletionQuestVariablesFlags = list44; reference34 = obj29; obj26.Steps = list40; reference30 = obj26; - num++; - ref QuestSequence reference35 = ref span38[num]; + ref QuestSequence reference35 = ref span16[2]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -385386,16 +317314,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "pot0to"; + CollectionsMarshal.AsSpan(list46)[0] = "pot0to"; questRoot6.Author = list46; - index = 12; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference36 = ref span47[num]; + num = 12; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span22 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference36 = ref span22[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -385403,9 +317328,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -385418,18 +317341,15 @@ public static class AssemblyQuestLoader }; obj31.Steps = list48; reference36 = obj31; - num++; - ref QuestSequence reference37 = ref span47[num]; + ref QuestSequence reference37 = ref span22[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -385440,8 +317360,7 @@ public static class AssemblyQuestLoader }; obj32.Steps = list49; reference37 = obj32; - num++; - ref QuestSequence reference38 = ref span47[num]; + ref QuestSequence reference38 = ref span22[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -385449,9 +317368,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.Interact, 2013289u, new Vector3(362.11182f, 0.7171631f, 763.17993f), 613) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.Interact, 2013289u, new Vector3(362.11182f, 0.7171631f, 763.17993f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -385462,22 +317379,18 @@ public static class AssemblyQuestLoader }; obj33.Steps = list50; reference38 = obj33; - num++; - ref QuestSequence reference39 = ref span47[num]; + ref QuestSequence reference39 = ref span22[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj34.Steps = list51; reference39 = obj34; - num++; - ref QuestSequence reference40 = ref span47[num]; + ref QuestSequence reference40 = ref span22[4]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -385485,16 +317398,12 @@ public static class AssemblyQuestLoader num2 = 1; List list52 = new List(num2); CollectionsMarshal.SetCount(list52, num2); - Span span52 = CollectionsMarshal.AsSpan(list52); - index2 = 0; - ref QuestStep reference41 = ref span52[index2]; + ref QuestStep reference41 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1044963u, new Vector3(34.470093f, 4f, 77.805664f), 628); - num4 = 1; - List list53 = new List(num4); - CollectionsMarshal.SetCount(list53, num4); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - span53[num3] = new DialogueChoice + num3 = 1; + List list53 = new List(num3); + CollectionsMarshal.SetCount(list53, num3); + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA301_04662_Q4_000_000"), @@ -385504,22 +317413,18 @@ public static class AssemblyQuestLoader reference41 = questStep6; obj35.Steps = list52; reference40 = obj35; - num++; - ref QuestSequence reference42 = ref span47[num]; + ref QuestSequence reference42 = ref span22[5]; QuestSequence obj36 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj36.Steps = list54; reference42 = obj36; - num++; - ref QuestSequence reference43 = ref span47[num]; + ref QuestSequence reference43 = ref span22[6]; QuestSequence obj37 = new QuestSequence { Sequence = 6 @@ -385527,27 +317432,21 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1044967u, new Vector3(24.795776f, 4.0000014f, 39.230957f), 628); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1044967u, new Vector3(24.795776f, 4.0000014f, 39.230957f), 628); obj37.Steps = list55; reference43 = obj37; - num++; - ref QuestSequence reference44 = ref span47[num]; + ref QuestSequence reference44 = ref span22[7]; QuestSequence obj38 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj38.Steps = list56; reference44 = obj38; - num++; - ref QuestSequence reference45 = ref span47[num]; + ref QuestSequence reference45 = ref span22[8]; QuestSequence obj39 = new QuestSequence { Sequence = 8 @@ -385555,31 +317454,25 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1045117u, new Vector3(736.0189f, 0.10766173f, -298.5733f), 613) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1045117u, new Vector3(736.0189f, 0.10766173f, -298.5733f), 613) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaTamamizu }; obj39.Steps = list57; reference45 = obj39; - num++; - ref QuestSequence reference46 = ref span47[num]; + ref QuestSequence reference46 = ref span22[9]; QuestSequence obj40 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj40.Steps = list58; reference46 = obj40; - num++; - ref QuestSequence reference47 = ref span47[num]; + ref QuestSequence reference47 = ref span22[10]; QuestSequence obj41 = new QuestSequence { Sequence = 10 @@ -385587,23 +317480,18 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - span59[index2] = new QuestStep(EInteractionType.Interact, 1044973u, new Vector3(114.51892f, 12.000001f, 101.3656f), 628); + CollectionsMarshal.AsSpan(list59)[0] = new QuestStep(EInteractionType.Interact, 1044973u, new Vector3(114.51892f, 12.000001f, 101.3656f), 628); obj41.Steps = list59; reference47 = obj41; - num++; - ref QuestSequence reference48 = ref span47[num]; + ref QuestSequence reference48 = ref span22[11]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4761) @@ -385617,16 +317505,13 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot7.Author = list61; - index = 5; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference49 = ref span62[num]; + num = 5; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span23 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference49 = ref span23[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -385634,9 +317519,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -385649,18 +317532,15 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference49 = obj43; - num++; - ref QuestSequence reference50 = ref span62[num]; + ref QuestSequence reference50 = ref span23[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, @@ -385668,8 +317548,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference50 = obj44; - num++; - ref QuestSequence reference51 = ref span62[num]; + ref QuestSequence reference51 = ref span23[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -385677,26 +317556,21 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1044299u, new Vector3(-85.89307f, 3f, 84.58069f), 1061) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1044299u, new Vector3(-85.89307f, 3f, 84.58069f), 1061) { StopDistance = 5f }; obj45.Steps = list65; reference51 = obj45; - num++; - ref QuestSequence reference52 = ref span62[num]; + ref QuestSequence reference52 = ref span23[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -385705,8 +317579,7 @@ public static class AssemblyQuestLoader }; obj46.Steps = list66; reference52 = obj46; - num++; - ref QuestSequence reference53 = ref span62[num]; + ref QuestSequence reference53 = ref span23[4]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue @@ -385714,9 +317587,7 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044303u, new Vector3(-7.2786255f, 0.0999997f, 5.874695f), 1061) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044303u, new Vector3(-7.2786255f, 0.0999997f, 5.874695f), 1061) { NextQuestId = new QuestId(4667) }; @@ -385729,30 +317600,24 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot8.Author = list68; - index = 5; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference54 = ref span69[num]; + num = 5; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span24 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference54 = ref span24[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj48.Steps = list70; reference54 = obj48; - num++; - ref QuestSequence reference55 = ref span69[num]; + ref QuestSequence reference55 = ref span24[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 @@ -385760,9 +317625,8 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - index2 = 0; - ref QuestStep reference56 = ref span71[index2]; + Span span25 = CollectionsMarshal.AsSpan(list71); + ref QuestStep reference56 = ref span25[0]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2012871u, new Vector3(15.945618f, 1.7547607f, -61.600708f), 1061) { TargetTerritoryId = (ushort)156 @@ -385772,15 +317636,12 @@ public static class AssemblyQuestLoader num3 = 1; List list72 = new List(num3); CollectionsMarshal.SetCount(list72, num3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num4 = 0; - span72[num4] = 1061; + CollectionsMarshal.AsSpan(list72)[0] = 1061; skipStepConditions.NotInTerritory = list72; skipConditions.StepIf = skipStepConditions; obj50.SkipConditions = skipConditions; reference56 = obj50; - index2++; - span71[index2] = new QuestStep(EInteractionType.Interact, 1044306u, new Vector3(-149.58423f, 42.86022f, -182.8794f), 156) + span25[1] = new QuestStep(EInteractionType.Interact, 1044306u, new Vector3(-149.58423f, 42.86022f, -182.8794f), 156) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -385794,33 +317655,28 @@ public static class AssemblyQuestLoader }; obj49.Steps = list71; reference55 = obj49; - num++; - ref QuestSequence reference57 = ref span69[num]; + ref QuestSequence reference57 = ref span24[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona }; - num2++; - span73[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-693.9247f, 261.1125f, 436.2933f), 155) + span26[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-693.9247f, 261.1125f, 436.2933f), 155) { Fly = true }; - num2++; - span73[num2] = new QuestStep(EInteractionType.Interact, 1044310u, new Vector3(-674.21985f, 254.80737f, 490.77588f), 155); + span26[2] = new QuestStep(EInteractionType.Interact, 1044310u, new Vector3(-674.21985f, 254.80737f, 490.77588f), 155); obj51.Steps = list73; reference57 = obj51; - num++; - ref QuestSequence reference58 = ref span69[num]; + ref QuestSequence reference58 = ref span24[3]; QuestSequence obj52 = new QuestSequence { Sequence = 3 @@ -385828,29 +317684,24 @@ public static class AssemblyQuestLoader num2 = 2; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(180.50424f, 360.59534f, -609.197f), 155) + Span span27 = CollectionsMarshal.AsSpan(list74); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(180.50424f, 360.59534f, -609.197f), 155) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - index2++; - span74[index2] = new QuestStep(EInteractionType.Interact, 1044314u, new Vector3(182.5741f, 360.90265f, -610.2846f), 155); + span27[1] = new QuestStep(EInteractionType.Interact, 1044314u, new Vector3(182.5741f, 360.90265f, -610.2846f), 155); obj52.Steps = list74; reference58 = obj52; - num++; - ref QuestSequence reference59 = ref span69[num]; + ref QuestSequence reference59 = ref span24[4]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4668) }; @@ -385863,16 +317714,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot9.Author = list76; - index = 6; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference60 = ref span77[num]; + num = 6; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span28 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference60 = ref span28[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 @@ -385880,9 +317728,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044315u, new Vector3(80.24719f, 373.73154f, -674.49457f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, SkipConditions = new SkipConditions @@ -385895,25 +317741,21 @@ public static class AssemblyQuestLoader }; obj54.Steps = list78; reference60 = obj54; - num++; - ref QuestSequence reference61 = ref span77[num]; + ref QuestSequence reference61 = ref span28[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj55.Steps = list79; reference61 = obj55; - num++; - ref QuestSequence reference62 = ref span77[num]; + ref QuestSequence reference62 = ref span28[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -385921,36 +317763,30 @@ public static class AssemblyQuestLoader num2 = 2; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23065f, 1.2987103f, 6.734147f), 132) + Span span29 = CollectionsMarshal.AsSpan(list80); + span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-105.23065f, 1.2987103f, 6.734147f), 132) { TargetTerritoryId = (ushort)133 }; - index2++; - span80[index2] = new QuestStep(EInteractionType.Interact, 1044323u, new Vector3(-140.45929f, 5.046544f, -40.48224f), 133); + span29[1] = new QuestStep(EInteractionType.Interact, 1044323u, new Vector3(-140.45929f, 5.046544f, -40.48224f), 133); obj56.Steps = list80; reference62 = obj56; - num++; - ref QuestSequence reference63 = ref span77[num]; + ref QuestSequence reference63 = ref span28[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj57.Steps = list81; reference63 = obj57; - num++; - ref QuestSequence reference64 = ref span77[num]; + ref QuestSequence reference64 = ref span28[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 @@ -385958,19 +317794,15 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - ref QuestStep reference65 = ref span82[index2]; + ref QuestStep reference65 = ref CollectionsMarshal.AsSpan(list82)[0]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 1044328u, new Vector3(-246.08228f, 0.7061289f, 384.08484f), 153) { StopDistance = 7f }; - num4 = 1; - List list83 = new List(num4); - CollectionsMarshal.SetCount(list83, num4); - Span span83 = CollectionsMarshal.AsSpan(list83); - num3 = 0; - span83[num3] = new DialogueChoice + num3 = 1; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + CollectionsMarshal.AsSpan(list83)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKEA203_04668_SYSTEM_000_122") @@ -385979,18 +317811,15 @@ public static class AssemblyQuestLoader reference65 = obj59; obj58.Steps = list82; reference64 = obj58; - num++; - ref QuestSequence reference66 = ref span77[num]; + ref QuestSequence reference66 = ref span28[5]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4669) }; @@ -386003,16 +317832,13 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "liza"; + CollectionsMarshal.AsSpan(list85)[0] = "liza"; questRoot10.Author = list85; - index = 4; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference67 = ref span86[num]; + num = 4; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span30 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference67 = ref span30[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -386020,9 +317846,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044331u, new Vector3(204.05884f, 6.2006326f, -32.059265f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -386035,18 +317859,15 @@ public static class AssemblyQuestLoader }; obj61.Steps = list87; reference67 = obj61; - num++; - ref QuestSequence reference68 = ref span86[num]; + ref QuestSequence reference68 = ref span30[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, @@ -386055,8 +317876,7 @@ public static class AssemblyQuestLoader }; obj62.Steps = list88; reference68 = obj62; - num++; - ref QuestSequence reference69 = ref span86[num]; + ref QuestSequence reference69 = ref span30[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -386064,26 +317884,21 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1044335u, new Vector3(-1.3886108f, 0.0999997f, 0.59503174f), 1061) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1044335u, new Vector3(-1.3886108f, 0.0999997f, 0.59503174f), 1061) { StopDistance = 5f }; obj63.Steps = list89; reference69 = obj63; - num++; - ref QuestSequence reference70 = ref span86[num]; + ref QuestSequence reference70 = ref span30[3]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MorDhona, @@ -386098,16 +317913,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot11.Author = list91; - index = 4; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference71 = ref span92[num]; + num = 4; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span31 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference71 = ref span31[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -386115,26 +317927,21 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { StopDistance = 5f }; obj65.Steps = list93; reference71 = obj65; - num++; - ref QuestSequence reference72 = ref span92[num]; + ref QuestSequence reference72 = ref span31[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -386144,8 +317951,7 @@ public static class AssemblyQuestLoader }; obj66.Steps = list94; reference72 = obj66; - num++; - ref QuestSequence reference73 = ref span92[num]; + ref QuestSequence reference73 = ref span31[2]; QuestSequence obj67 = new QuestSequence { Sequence = 2 @@ -386153,9 +317959,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.Interact, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1044293u, new Vector3(-346.12042f, 55f, -66.17847f), 963) { AethernetShortcut = new AethernetShortcut { @@ -386165,18 +317969,15 @@ public static class AssemblyQuestLoader }; obj67.Steps = list95; reference73 = obj67; - num++; - ref QuestSequence reference74 = ref span92[num]; + ref QuestSequence reference74 = ref span31[3]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -386194,16 +317995,13 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot12.Author = list97; - index = 7; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference75 = ref span98[num]; + num = 7; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span32 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference75 = ref span32[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -386211,30 +318009,24 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044229u, new Vector3(-345.99835f, 55f, -63.645386f), 963); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044229u, new Vector3(-345.99835f, 55f, -63.645386f), 963); obj69.Steps = list99; reference75 = obj69; - num++; - ref QuestSequence reference76 = ref span98[num]; + ref QuestSequence reference76 = ref span32[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj70.Steps = list100; reference76 = obj70; - num++; - ref QuestSequence reference77 = ref span98[num]; + ref QuestSequence reference77 = ref span32[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -386242,33 +318034,27 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1044234u, new Vector3(-368.15448f, 21.999998f, 485.37415f), 958) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1044234u, new Vector3(-368.15448f, 21.999998f, 485.37415f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj71.Steps = list101; reference77 = obj71; - num++; - ref QuestSequence reference78 = ref span98[num]; + ref QuestSequence reference78 = ref span32[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj72.Steps = list102; reference78 = obj72; - num++; - ref QuestSequence reference79 = ref span98[num]; + ref QuestSequence reference79 = ref span32[4]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -386276,33 +318062,27 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 1045227u, new Vector3(150.04187f, -20.207552f, 509.88013f), 958) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1045227u, new Vector3(150.04187f, -20.207552f, 509.88013f), 958) { StopDistance = 5f }; obj73.Steps = list103; reference79 = obj73; - num++; - ref QuestSequence reference80 = ref span98[num]; + ref QuestSequence reference80 = ref span32[5]; QuestSequence obj74 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj74.Steps = list104; reference80 = obj74; - num++; - ref QuestSequence reference81 = ref span98[num]; + ref QuestSequence reference81 = ref span32[6]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -386310,9 +318090,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044239u, new Vector3(-369.2226f, 22f, 484.0619f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; @@ -386325,30 +318103,24 @@ public static class AssemblyQuestLoader num = 1; List list106 = new List(num); CollectionsMarshal.SetCount(list106, num); - Span span106 = CollectionsMarshal.AsSpan(list106); - index = 0; - span106[index] = "liza"; + CollectionsMarshal.AsSpan(list106)[0] = "liza"; questRoot13.Author = list106; - index = 4; - List list107 = new List(index); - CollectionsMarshal.SetCount(list107, index); - Span span107 = CollectionsMarshal.AsSpan(list107); - num = 0; - ref QuestSequence reference82 = ref span107[num]; + num = 4; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + Span span33 = CollectionsMarshal.AsSpan(list107); + ref QuestSequence reference82 = ref span33[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj76.Steps = list108; reference82 = obj76; - num++; - ref QuestSequence reference83 = ref span107[num]; + ref QuestSequence reference83 = ref span33[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -386356,26 +318128,22 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.Interact, 1044249u, new Vector3(-89.89093f, -9.408967f, 416.3423f), 958) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1044249u, new Vector3(-89.89093f, -9.408967f, 416.3423f), 958) { Fly = true }; obj77.Steps = list109; reference83 = obj77; - num++; - ref QuestSequence reference84 = ref span107[num]; + ref QuestSequence reference84 = ref span33[2]; QuestSequence obj78 = new QuestSequence { Sequence = 2 }; - index2 = 4; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference85 = ref span110[num2]; + num2 = 4; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span34 = CollectionsMarshal.AsSpan(list110); + ref QuestStep reference85 = ref span34[0]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, 2013226u, new Vector3(18.631226f, -12.314087f, 383.77966f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -386383,74 +318151,51 @@ public static class AssemblyQuestLoader num3 = 2; List list111 = new List(num3); CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num4 = 0; - span111[num4] = 16028u; - num4++; - span111[num4] = 16029u; + Span span35 = CollectionsMarshal.AsSpan(list111); + span35[0] = 16028u; + span35[1] = 16029u; obj79.KillEnemyDataIds = list111; - 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); + 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); obj79.CompletionQuestVariablesFlags = list112; reference85 = obj79; - num2++; - ref QuestStep reference86 = ref span110[num2]; + ref QuestStep reference86 = ref span34[1]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list113; reference86 = questStep7; - num2++; - ref QuestStep reference87 = ref span110[num2]; + ref QuestStep reference87 = ref span34[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013308u, new Vector3(75.33374f, -12.527649f, 339.40637f), 958); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list114; reference87 = questStep8; - num2++; - ref QuestStep reference88 = ref span110[num2]; + ref QuestStep reference88 = ref span34[3]; QuestStep obj80 = new QuestStep(EInteractionType.Combat, 2013051u, new Vector3(62.333008f, -10.635559f, 308.73572f), 958) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -386458,32 +318203,23 @@ public static class AssemblyQuestLoader num3 = 1; List list115 = new List(num3); CollectionsMarshal.SetCount(list115, num3); - Span span115 = CollectionsMarshal.AsSpan(list115); - num4 = 0; - span115[num4] = 16030u; + CollectionsMarshal.AsSpan(list115)[0] = 16030u; obj80.KillEnemyDataIds = list115; - 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); + 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); obj80.CompletionQuestVariablesFlags = list116; reference88 = obj80; obj78.Steps = list110; reference84 = obj78; - num++; - ref QuestSequence reference89 = ref span107[num]; + ref QuestSequence reference89 = ref span33[3]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue @@ -386491,9 +318227,7 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044250u, new Vector3(23.23944f, 1.1781613f, 144.70117f), 958) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044250u, new Vector3(23.23944f, 1.1781613f, 144.70117f), 958) { Fly = true }; @@ -386506,30 +318240,24 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot14.Author = list118; - index = 4; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference90 = ref span119[num]; + num = 4; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span40 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference90 = ref span40[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj82.Steps = list120; reference90 = obj82; - num++; - ref QuestSequence reference91 = ref span119[num]; + ref QuestSequence reference91 = ref span40[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 @@ -386537,9 +318265,7 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044257u, new Vector3(485.06897f, 10.800001f, -427.75616f), 958) + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1044257u, new Vector3(485.06897f, 10.800001f, -427.75616f), 958) { StopDistance = 5f, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -386549,23 +318275,19 @@ public static class AssemblyQuestLoader }; obj83.Steps = list121; reference91 = obj83; - num++; - span119[num] = new QuestSequence + span40[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference92 = ref span119[num]; + ref QuestSequence reference92 = ref span40[3]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -386578,16 +318300,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot15.Author = list123; - index = 6; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference93 = ref span124[num]; + num = 6; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span41 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference93 = ref span41[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 @@ -386595,33 +318314,27 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044260u, new Vector3(527.9469f, -36.65f, -242.90839f), 958) + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044260u, new Vector3(527.9469f, -36.65f, -242.90839f), 958) { StopDistance = 5f }; obj85.Steps = list125; reference93 = obj85; - num++; - ref QuestSequence reference94 = ref span124[num]; + ref QuestSequence reference94 = ref span41[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj86.Steps = list126; reference94 = obj86; - num++; - ref QuestSequence reference95 = ref span124[num]; + ref QuestSequence reference95 = ref span41[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -386629,26 +318342,21 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 1044263u, new Vector3(466.05627f, -18.123579f, 718.8982f), 958) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1044263u, new Vector3(466.05627f, -18.123579f, 718.8982f), 958) { Fly = true }; obj87.Steps = list127; reference95 = obj87; - num++; - ref QuestSequence reference96 = ref span124[num]; + ref QuestSequence reference96 = ref span41[3]; QuestSequence obj88 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Duty, null, null, 958) { DutyOptions = new DutyOptions { @@ -386658,13 +318366,11 @@ public static class AssemblyQuestLoader }; obj88.Steps = list128; reference96 = obj88; - num++; - span124[num] = new QuestSequence + span41[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference97 = ref span124[num]; + ref QuestSequence reference97 = ref span41[5]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -386672,9 +318378,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044270u, new Vector3(-247.21143f, -173f, 131.88367f), 1119); + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044270u, new Vector3(-247.21143f, -173f, 131.88367f), 1119); obj89.Steps = list129; reference97 = obj89; questRoot15.QuestSequence = list124; @@ -386684,33 +318388,27 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot16.Author = list130; - index = 7; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference98 = ref span131[num]; + num = 7; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span42 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference98 = ref span42[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj90.Steps = list132; reference98 = obj90; - num++; - ref QuestSequence reference99 = ref span131[num]; + ref QuestSequence reference99 = ref span42[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -386718,32 +318416,26 @@ public static class AssemblyQuestLoader num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 2013231u, new Vector3(-408.83502f, -117.81494f, 371.96924f), 1119) + Span span43 = CollectionsMarshal.AsSpan(list133); + span43[0] = new QuestStep(EInteractionType.Interact, 2013231u, new Vector3(-408.83502f, -117.81494f, 371.96924f), 1119) { TargetTerritoryId = (ushort)1119 }; - index2++; - span133[index2] = new QuestStep(EInteractionType.Interact, 1044274u, new Vector3(351.15576f, 33.99946f, -381.5824f), 1119); + span43[1] = new QuestStep(EInteractionType.Interact, 1044274u, new Vector3(351.15576f, 33.99946f, -381.5824f), 1119); obj91.Steps = list133; reference99 = obj91; - num++; - ref QuestSequence reference100 = ref span131[num]; + ref QuestSequence reference100 = ref span42[2]; QuestSequence obj92 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj92.Steps = list134; reference100 = obj92; - num++; - ref QuestSequence reference101 = ref span131[num]; + ref QuestSequence reference101 = ref span42[3]; QuestSequence obj93 = new QuestSequence { Sequence = 3 @@ -386751,32 +318443,26 @@ public static class AssemblyQuestLoader num2 = 2; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.Interact, 2013230u, new Vector3(350.08765f, 34.86682f, -433.95135f), 1119) + Span span44 = CollectionsMarshal.AsSpan(list135); + span44[0] = new QuestStep(EInteractionType.Interact, 2013230u, new Vector3(350.08765f, 34.86682f, -433.95135f), 1119) { TargetTerritoryId = (ushort)1119 }; - index2++; - span135[index2] = new QuestStep(EInteractionType.Interact, 2013233u, new Vector3(-261.1582f, -165.36206f, 229.08362f), 1119); + span44[1] = new QuestStep(EInteractionType.Interact, 2013233u, new Vector3(-261.1582f, -165.36206f, 229.08362f), 1119); obj93.Steps = list135; reference101 = obj93; - num++; - ref QuestSequence reference102 = ref span131[num]; + ref QuestSequence reference102 = ref span42[4]; QuestSequence obj94 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj94.Steps = list136; reference102 = obj94; - num++; - ref QuestSequence reference103 = ref span131[num]; + ref QuestSequence reference103 = ref span42[5]; QuestSequence obj95 = new QuestSequence { Sequence = 5 @@ -386784,23 +318470,18 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 2013235u, new Vector3(-2.4262085f, 374.6853f, -601.0071f), 1119); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 2013235u, new Vector3(-2.4262085f, 374.6853f, -601.0071f), 1119); obj95.Steps = list137; reference103 = obj95; - num++; - ref QuestSequence reference104 = ref span131[num]; + ref QuestSequence reference104 = ref span42[6]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -386813,16 +318494,13 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "liza"; + CollectionsMarshal.AsSpan(list139)[0] = "liza"; questRoot17.Author = list139; - index = 5; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference105 = ref span140[num]; + num = 5; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span45 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference105 = ref span45[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -386830,26 +318508,21 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044289u, new Vector3(465.81213f, -17.44166f, 707.3014f), 958) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044289u, new Vector3(465.81213f, -17.44166f, 707.3014f), 958) { StopDistance = 5f }; obj97.Steps = list141; reference105 = obj97; - num++; - ref QuestSequence reference106 = ref span140[num]; + ref QuestSequence reference106 = ref span45[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -386860,8 +318533,7 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference106 = obj98; - num++; - ref QuestSequence reference107 = ref span140[num]; + ref QuestSequence reference107 = ref span45[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 @@ -386869,16 +318541,12 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - ref QuestStep reference108 = ref span143[index2]; + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list143)[0]; 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); - Span span144 = CollectionsMarshal.AsSpan(list144); - num4 = 0; - span144[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMJ107_04676_Q1_000_000"), @@ -386888,46 +318556,36 @@ public static class AssemblyQuestLoader reference108 = questStep9; obj99.Steps = list143; reference107 = obj99; - num++; - ref QuestSequence reference109 = ref span140[num]; + ref QuestSequence reference109 = ref span45[3]; QuestSequence obj100 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list145 = new List(index2); - CollectionsMarshal.SetCount(list145, index2); - Span span145 = CollectionsMarshal.AsSpan(list145); - num2 = 0; - ref QuestStep reference110 = ref span145[num2]; + num2 = 2; + List list145 = new List(num2); + CollectionsMarshal.SetCount(list145, num2); + Span span46 = CollectionsMarshal.AsSpan(list145); + ref QuestStep reference110 = ref span46[0]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1037648u, new Vector3(-562.005f, 9.817466f, -585.1987f), 957) { Fly = true }; - 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); + 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); obj101.CompletionQuestVariablesFlags = list146; reference110 = obj101; - num2++; - span145[num2] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); + span46[1] = new QuestStep(EInteractionType.Interact, 1037647u, new Vector3(-588.83044f, 9.81748f, -590.08167f), 957); obj100.Steps = list145; reference109 = obj100; - num++; - ref QuestSequence reference111 = ref span140[num]; + ref QuestSequence reference111 = ref span45[4]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -386935,9 +318593,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1037646u, new Vector3(-568.99365f, 9.817484f, -569.8787f), 957); obj102.Steps = list147; reference111 = obj102; questRoot17.QuestSequence = list140; @@ -386947,33 +318603,26 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "liza"; + CollectionsMarshal.AsSpan(list148)[0] = "liza"; questRoot18.Author = list148; - index = 7; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference112 = ref span149[num]; + num = 7; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span48 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference112 = ref span48[0]; QuestSequence obj103 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list150 = new List(num2); + CollectionsMarshal.SetCount(list150, num2); + ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list150)[0]; 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); - Span span151 = CollectionsMarshal.AsSpan(list151); - num4 = 0; - span151[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list151)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q1_000_000"), @@ -386983,8 +318632,7 @@ public static class AssemblyQuestLoader reference113 = questStep10; obj103.Steps = list150; reference112 = obj103; - num++; - ref QuestSequence reference114 = ref span149[num]; + ref QuestSequence reference114 = ref span48[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 @@ -386992,36 +318640,29 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.Interact, 1041091u, new Vector3(-89.89093f, 89.42026f, -616.14404f), 957) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Interact, 1041091u, new Vector3(-89.89093f, 89.42026f, -616.14404f), 957) { Fly = true }; obj104.Steps = list152; reference114 = obj104; - num++; - ref QuestSequence reference115 = ref span149[num]; + ref QuestSequence reference115 = ref span48[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list153 = new List(index2); - CollectionsMarshal.SetCount(list153, index2); - Span span153 = CollectionsMarshal.AsSpan(list153); - num2 = 0; - ref QuestStep reference116 = ref span153[num2]; + num2 = 1; + List list153 = new List(num2); + CollectionsMarshal.SetCount(list153, num2); + ref QuestStep reference116 = ref CollectionsMarshal.AsSpan(list153)[0]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 1037697u, new Vector3(-73.74689f, 99.94384f, -715.44977f), 957) { Fly = true }; - num4 = 1; - List list154 = new List(num4); - CollectionsMarshal.SetCount(list154, num4); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - span154[num3] = new DialogueChoice + num3 = 1; + List list154 = new List(num3); + CollectionsMarshal.SetCount(list154, num3); + CollectionsMarshal.AsSpan(list154)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMJ108_04677_Q2_000_063") @@ -387030,13 +318671,11 @@ public static class AssemblyQuestLoader reference116 = obj106; obj105.Steps = list153; reference115 = obj105; - num++; - span149[num] = new QuestSequence + span48[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference117 = ref span149[num]; + ref QuestSequence reference117 = ref span48[4]; QuestSequence obj107 = new QuestSequence { Sequence = 4 @@ -387044,9 +318683,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Duty, null, null, 1125) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Duty, null, null, 1125) { DutyOptions = new DutyOptions { @@ -387055,23 +318692,19 @@ public static class AssemblyQuestLoader }; obj107.Steps = list155; reference117 = obj107; - num++; - span149[num] = new QuestSequence + span48[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference118 = ref span149[num]; + ref QuestSequence reference118 = ref span48[6]; QuestSequence obj108 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -387084,16 +318717,13 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; questRoot19.Author = list157; - index = 3; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference119 = ref span158[num]; + num = 3; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span49 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference119 = ref span49[0]; QuestSequence obj109 = new QuestSequence { Sequence = 0 @@ -387101,26 +318731,21 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044291u, new Vector3(-40.024475f, 89.42017f, -636.86584f), 957) { StopDistance = 5f }; obj109.Steps = list159; reference119 = obj109; - num++; - ref QuestSequence reference120 = ref span158[num]; + ref QuestSequence reference120 = ref span49[1]; QuestSequence obj110 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list160 = new List(index2); - CollectionsMarshal.SetCount(list160, index2); - Span span160 = CollectionsMarshal.AsSpan(list160); - num2 = 0; - ref QuestStep reference121 = ref span160[num2]; + num2 = 1; + List list160 = new List(num2); + CollectionsMarshal.SetCount(list160, num2); + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list160)[0]; QuestStep obj111 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -387133,9 +318758,7 @@ public static class AssemblyQuestLoader num3 = 1; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - Span span161 = CollectionsMarshal.AsSpan(list161); - num4 = 0; - span161[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list161)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMJ109_04678_SYSTEM_000_021") @@ -387144,8 +318767,7 @@ public static class AssemblyQuestLoader reference121 = obj111; obj110.Steps = list160; reference120 = obj110; - num++; - ref QuestSequence reference122 = ref span158[num]; + ref QuestSequence reference122 = ref span49[2]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue @@ -387153,9 +318775,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj112.Steps = list162; reference122 = obj112; questRoot19.QuestSequence = list158; @@ -387165,26 +318785,21 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "liza"; + CollectionsMarshal.AsSpan(list163)[0] = "liza"; questRoot20.Author = list163; - index = 7; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference123 = ref span164[num]; + num = 7; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span50 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference123 = ref span50[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -387197,8 +318812,7 @@ public static class AssemblyQuestLoader }; obj113.Steps = list165; reference123 = obj113; - num++; - ref QuestSequence reference124 = ref span164[num]; + ref QuestSequence reference124 = ref span50[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -387206,51 +318820,40 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span166[index2] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj114.Steps = list166; reference124 = obj114; - num++; - ref QuestSequence reference125 = ref span164[num]; + ref QuestSequence reference125 = ref span50[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list167 = new List(index2); - CollectionsMarshal.SetCount(list167, index2); - Span span167 = CollectionsMarshal.AsSpan(list167); - num2 = 0; - ref QuestStep reference126 = ref span167[num2]; + num2 = 3; + List list167 = new List(num2); + CollectionsMarshal.SetCount(list167, num2); + Span span51 = CollectionsMarshal.AsSpan(list167); + ref QuestStep reference126 = ref span51[0]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1044914u, new Vector3(-120.409f, -137.41672f, -526.63464f), 959) { Fly = true }; - 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); + 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); obj116.CompletionQuestVariablesFlags = list168; reference126 = obj116; - num2++; - ref QuestStep reference127 = ref span167[num2]; + ref QuestStep reference127 = ref span51[1]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1044913u, new Vector3(55.161255f, -129.40565f, -636.8048f), 959) { Fly = true @@ -387258,49 +318861,35 @@ public static class AssemblyQuestLoader num3 = 6; List list169 = new List(num3); CollectionsMarshal.SetCount(list169, num3); - 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); + 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); obj117.CompletionQuestVariablesFlags = list169; reference127 = obj117; - num2++; - ref QuestStep reference128 = ref span167[num2]; + ref QuestStep reference128 = ref span51[2]; QuestStep obj118 = new QuestStep(EInteractionType.Interact, 1044912u, new Vector3(61.41748f, -137.4167f, -606.28674f), 959) { Fly = true }; - 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); + 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); obj118.CompletionQuestVariablesFlags = list170; reference128 = obj118; obj115.Steps = list167; reference125 = obj115; - num++; - ref QuestSequence reference129 = ref span164[num]; + ref QuestSequence reference129 = ref span50[3]; QuestSequence obj119 = new QuestSequence { Sequence = 3 @@ -387308,33 +318897,27 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 1044911u, new Vector3(0.38146973f, -127.50014f, -457.14508f), 959) { Fly = true }; obj119.Steps = list171; reference129 = obj119; - num++; - ref QuestSequence reference130 = ref span164[num]; + ref QuestSequence reference130 = ref span50[4]; QuestSequence obj120 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj120.Steps = list172; reference130 = obj120; - num++; - ref QuestSequence reference131 = ref span164[num]; + ref QuestSequence reference131 = ref span50[5]; QuestSequence obj121 = new QuestSequence { Sequence = 5 @@ -387342,32 +318925,27 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.Interact, 1044920u, new Vector3(-170.42804f, -49.399723f, -289.5705f), 959) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.Interact, 1044920u, new Vector3(-170.42804f, -49.399723f, -289.5705f), 959) { Fly = true }; obj121.Steps = list173; reference131 = obj121; - num++; - ref QuestSequence reference132 = ref span164[num]; + ref QuestSequence reference132 = ref span50[6]; QuestSequence obj122 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38843u, ItemCount = 3 }; - num2++; - span174[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044921u, new Vector3(-170.0008f, -49.34972f, -287.22064f), 959) + span55[1] = new QuestStep(EInteractionType.CompleteQuest, 1044921u, new Vector3(-170.0008f, -49.34972f, -287.22064f), 959) { StopDistance = 5f }; @@ -387380,16 +318958,13 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "kaiser"; + CollectionsMarshal.AsSpan(list175)[0] = "kaiser"; questRoot21.Author = list175; - index = 5; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference133 = ref span176[num]; + num = 5; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span56 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference133 = ref span56[0]; QuestSequence obj123 = new QuestSequence { Sequence = 0 @@ -387397,9 +318972,8 @@ public static class AssemblyQuestLoader num2 = 2; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.None, null, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + Span span57 = CollectionsMarshal.AsSpan(list177); + span57[0] = new QuestStep(EInteractionType.None, null, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true, @@ -387417,26 +318991,22 @@ public static class AssemblyQuestLoader } } }; - index2++; - span177[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + span57[1] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, Fly = true }; obj123.Steps = list177; reference133 = obj123; - num++; - ref QuestSequence reference134 = ref span176[num]; + ref QuestSequence reference134 = ref span56[1]; QuestSequence obj124 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -387451,8 +319021,7 @@ public static class AssemblyQuestLoader }; obj124.Steps = list178; reference134 = obj124; - num++; - ref QuestSequence reference135 = ref span176[num]; + ref QuestSequence reference135 = ref span56[2]; QuestSequence obj125 = new QuestSequence { Sequence = 2 @@ -387460,9 +319029,7 @@ public static class AssemblyQuestLoader num2 = 1; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.Interact, 1044926u, new Vector3(500.96887f, -164.43474f, -698.3902f), 959) + CollectionsMarshal.AsSpan(list179)[0] = new QuestStep(EInteractionType.Interact, 1044926u, new Vector3(500.96887f, -164.43474f, -698.3902f), 959) { StopDistance = 5f, Fly = true, @@ -387477,18 +319044,15 @@ public static class AssemblyQuestLoader }; obj125.Steps = list179; reference135 = obj125; - num++; - ref QuestSequence reference136 = ref span176[num]; + ref QuestSequence reference136 = ref span56[3]; QuestSequence obj126 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -387503,8 +319067,7 @@ public static class AssemblyQuestLoader }; obj126.Steps = list180; reference136 = obj126; - num++; - ref QuestSequence reference137 = ref span176[num]; + ref QuestSequence reference137 = ref span56[4]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -387512,15 +319075,13 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span58 = CollectionsMarshal.AsSpan(list181); + span58[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38845u, ItemCount = 2 }; - index2++; - span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) + span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1044928u, new Vector3(-172.74744f, -49.199722f, -250.8736f), 959) { StopDistance = 5f, Fly = true, @@ -387542,30 +319103,24 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = "liza"; + CollectionsMarshal.AsSpan(list182)[0] = "liza"; questRoot22.Author = list182; - index = 7; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref QuestSequence reference138 = ref span183[num]; + num = 7; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span59 = CollectionsMarshal.AsSpan(list183); + ref QuestSequence reference138 = ref span59[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj128.Steps = list184; reference138 = obj128; - num++; - ref QuestSequence reference139 = ref span183[num]; + ref QuestSequence reference139 = ref span59[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -387573,91 +319128,66 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.Interact, 1044932u, new Vector3(12.436096f, 3.2249978f, 3.829956f), 962) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.Interact, 1044932u, new Vector3(12.436096f, 3.2249978f, 3.829956f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj129.Steps = list185; reference139 = obj129; - num++; - ref QuestSequence reference140 = ref span183[num]; + ref QuestSequence reference140 = ref span59[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list186 = new List(index2); - CollectionsMarshal.SetCount(list186, index2); - Span span186 = CollectionsMarshal.AsSpan(list186); - num2 = 0; - ref QuestStep reference141 = ref span186[num2]; + num2 = 3; + List list186 = new List(num2); + CollectionsMarshal.SetCount(list186, num2); + Span span60 = CollectionsMarshal.AsSpan(list186); + ref QuestStep reference141 = ref span60[0]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list187; reference141 = questStep11; - num2++; - ref QuestStep reference142 = ref span186[num2]; + ref QuestStep reference142 = ref span60[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1044933u, new Vector3(15.609924f, 2.3729992f, -72.19049f), 962); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list188; reference142 = questStep12; - num2++; - ref QuestStep reference143 = ref span186[num2]; + ref QuestStep reference143 = ref span60[2]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list189; reference143 = questStep13; obj130.Steps = list186; reference140 = obj130; - num++; - ref QuestSequence reference144 = ref span183[num]; + ref QuestSequence reference144 = ref span59[3]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -387665,9 +319195,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Interact, 1044936u, new Vector3(-328.99976f, 20.0375f, -113.359314f), 962) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.Interact, 1044936u, new Vector3(-328.99976f, 20.0375f, -113.359314f), 962) { AethernetShortcut = new AethernetShortcut { @@ -387677,18 +319205,15 @@ public static class AssemblyQuestLoader }; obj131.Steps = list190; reference144 = obj131; - num++; - ref QuestSequence reference145 = ref span183[num]; + ref QuestSequence reference145 = ref span59[4]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f, AethernetShortcut = new AethernetShortcut @@ -387699,8 +319224,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list191; reference145 = obj132; - num++; - ref QuestSequence reference146 = ref span183[num]; + ref QuestSequence reference146 = ref span59[5]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -387708,33 +319232,28 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj133.Steps = list192; reference146 = obj133; - num++; - ref QuestSequence reference147 = ref span183[num]; + ref QuestSequence reference147 = ref span59[6]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38847u, ItemCount = 2 }; - num2++; - span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959); + span64[1] = new QuestStep(EInteractionType.CompleteQuest, 1044937u, new Vector3(-193.59125f, -49.199722f, -293.23267f), 959); obj134.Steps = list193; reference147 = obj134; questRoot22.QuestSequence = list183; @@ -387744,16 +319263,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "AnimaMachinae"; + CollectionsMarshal.AsSpan(list194)[0] = "AnimaMachinae"; questRoot23.Author = list194; - index = 8; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference148 = ref span195[num]; + num = 8; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span65 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference148 = ref span65[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -387761,31 +319277,25 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959); obj135.Steps = list196; reference148 = obj135; - num++; - ref QuestSequence reference149 = ref span195[num]; + ref QuestSequence reference149 = ref span65[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj136.Steps = list197; reference149 = obj136; - num++; - ref QuestSequence reference150 = ref span195[num]; + ref QuestSequence reference150 = ref span65[2]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -387793,31 +319303,25 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 1044942u, new Vector3(-331.838f, 105.39431f, 551.2322f), 959); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.Interact, 1044942u, new Vector3(-331.838f, 105.39431f, 551.2322f), 959); obj137.Steps = list198; reference150 = obj137; - num++; - ref QuestSequence reference151 = ref span195[num]; + ref QuestSequence reference151 = ref span65[3]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj138.Steps = list199; reference151 = obj138; - num++; - ref QuestSequence reference152 = ref span195[num]; + ref QuestSequence reference152 = ref span65[4]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -387825,51 +319329,40 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.Interact, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { Fly = true }; obj139.Steps = list200; reference152 = obj139; - num++; - ref QuestSequence reference153 = ref span195[num]; + ref QuestSequence reference153 = ref span65[5]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - index2 = 3; - List list201 = new List(index2); - CollectionsMarshal.SetCount(list201, index2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num2 = 0; - ref QuestStep reference154 = ref span201[num2]; + num2 = 3; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + Span span66 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference154 = ref span66[0]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 1044944u, new Vector3(-463.55383f, -157.99237f, -513.3593f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - 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); + 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); obj141.CompletionQuestVariablesFlags = list202; reference154 = obj141; - num2++; - ref QuestStep reference155 = ref span201[num2]; + ref QuestStep reference155 = ref span66[1]; QuestStep obj142 = new QuestStep(EInteractionType.Interact, 1044945u, new Vector3(-540.1236f, -167.8502f, -620.63025f), 959) { Fly = true @@ -387877,30 +319370,22 @@ public static class AssemblyQuestLoader num3 = 6; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - 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); + 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); obj142.CompletionQuestVariablesFlags = list203; reference155 = obj142; - num2++; - span201[num2] = new QuestStep(EInteractionType.Interact, 1044943u, new Vector3(-414.54187f, -158.1177f, -639.9481f), 959) + span66[2] = new QuestStep(EInteractionType.Interact, 1044943u, new Vector3(-414.54187f, -158.1177f, -639.9481f), 959) { Fly = true }; obj140.Steps = list201; reference153 = obj140; - num++; - ref QuestSequence reference156 = ref span195[num]; + ref QuestSequence reference156 = ref span65[6]; QuestSequence obj143 = new QuestSequence { Sequence = 6 @@ -387908,33 +319393,28 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.Interact, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj143.Steps = list204; reference156 = obj143; - num++; - ref QuestSequence reference157 = ref span195[num]; + ref QuestSequence reference157 = ref span65[7]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38849u, ItemCount = 1 }; - num2++; - span205[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959); + span69[1] = new QuestStep(EInteractionType.CompleteQuest, 1044947u, new Vector3(-145.70844f, -49.19972f, -271.5343f), 959); obj144.Steps = list205; reference157 = obj144; questRoot23.QuestSequence = list195; @@ -387944,16 +319424,13 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "kaiser"; + CollectionsMarshal.AsSpan(list206)[0] = "kaiser"; questRoot24.Author = list206; - index = 4; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference158 = ref span207[num]; + num = 4; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span70 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference158 = ref span70[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -387961,9 +319438,7 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - ref QuestStep reference159 = ref span208[index2]; + ref QuestStep reference159 = ref CollectionsMarshal.AsSpan(list208)[0]; QuestStep obj146 = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { StopDistance = 5f, @@ -387975,30 +319450,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list209 = new List(num4); - CollectionsMarshal.SetCount(list209, num4); - Span span209 = CollectionsMarshal.AsSpan(list209); - num3 = 0; - span209[num3] = 959; + num3 = 1; + List list209 = new List(num3); + CollectionsMarshal.SetCount(list209, num3); + CollectionsMarshal.AsSpan(list209)[0] = 959; obj147.InTerritory = list209; skipConditions2.AetheryteShortcutIf = obj147; obj146.SkipConditions = skipConditions2; reference159 = obj146; obj145.Steps = list208; reference158 = obj145; - num++; - ref QuestSequence reference160 = ref span207[num]; + ref QuestSequence reference160 = ref span70[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -388006,8 +319476,7 @@ public static class AssemblyQuestLoader }; obj148.Steps = list210; reference160 = obj148; - num++; - ref QuestSequence reference161 = ref span207[num]; + ref QuestSequence reference161 = ref span70[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -388015,32 +319484,27 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959) { StopDistance = 5f }; obj149.Steps = list211; reference161 = obj149; - num++; - ref QuestSequence reference162 = ref span207[num]; + ref QuestSequence reference162 = ref span70[3]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38851u, ItemCount = 1 }; - num2++; - span212[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959); + span71[1] = new QuestStep(EInteractionType.CompleteQuest, 1044955u, new Vector3(-161.36414f, -49.19972f, -288.4718f), 959); obj150.Steps = list212; reference162 = obj150; questRoot24.QuestSequence = list207; @@ -388050,16 +319514,13 @@ public static class AssemblyQuestLoader num = 1; List list213 = new List(num); CollectionsMarshal.SetCount(list213, num); - Span span213 = CollectionsMarshal.AsSpan(list213); - index = 0; - span213[index] = "pot0to"; + CollectionsMarshal.AsSpan(list213)[0] = "pot0to"; questRoot25.Author = list213; - index = 6; - List list214 = new List(index); - CollectionsMarshal.SetCount(list214, index); - Span span214 = CollectionsMarshal.AsSpan(list214); - num = 0; - ref QuestSequence reference163 = ref span214[num]; + num = 6; + List list214 = new List(num); + CollectionsMarshal.SetCount(list214, num); + Span span72 = CollectionsMarshal.AsSpan(list214); + ref QuestSequence reference163 = ref span72[0]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -388067,9 +319528,7 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044402u, new Vector3(-193.89642f, -49.19972f, -262.13477f), 959) { Fly = true, SkipConditions = new SkipConditions @@ -388082,22 +319541,18 @@ public static class AssemblyQuestLoader }; obj151.Steps = list215; reference163 = obj151; - num++; - ref QuestSequence reference164 = ref span214[num]; + ref QuestSequence reference164 = ref span72[1]; QuestSequence obj152 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj152.Steps = list216; reference164 = obj152; - num++; - ref QuestSequence reference165 = ref span214[num]; + ref QuestSequence reference165 = ref span72[2]; QuestSequence obj153 = new QuestSequence { Sequence = 2 @@ -388105,27 +319560,21 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.Interact, 1044406u, new Vector3(-174.63953f, -49.149708f, -248.67633f), 959); + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Interact, 1044406u, new Vector3(-174.63953f, -49.149708f, -248.67633f), 959); obj153.Steps = list217; reference165 = obj153; - num++; - ref QuestSequence reference166 = ref span214[num]; + ref QuestSequence reference166 = ref span72[3]; QuestSequence obj154 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj154.Steps = list218; reference166 = obj154; - num++; - ref QuestSequence reference167 = ref span214[num]; + ref QuestSequence reference167 = ref span72[4]; QuestSequence obj155 = new QuestSequence { Sequence = 4 @@ -388133,23 +319582,18 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.Interact, 1044414u, new Vector3(-170.79425f, -48.89972f, -282.18512f), 959); + CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 1044414u, new Vector3(-170.79425f, -48.89972f, -282.18512f), 959); obj155.Steps = list219; reference167 = obj155; - num++; - ref QuestSequence reference168 = ref span214[num]; + ref QuestSequence reference168 = ref span72[5]; QuestSequence obj156 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj156.Steps = list220; reference168 = obj156; questRoot25.QuestSequence = list214; @@ -388159,16 +319603,13 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - Span span221 = CollectionsMarshal.AsSpan(list221); - index = 0; - span221[index] = "liza"; + CollectionsMarshal.AsSpan(list221)[0] = "liza"; questRoot26.Author = list221; - index = 3; - List list222 = new List(index); - CollectionsMarshal.SetCount(list222, index); - Span span222 = CollectionsMarshal.AsSpan(list222); - num = 0; - ref QuestSequence reference169 = ref span222[num]; + num = 3; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + Span span73 = CollectionsMarshal.AsSpan(list222); + ref QuestSequence reference169 = ref span73[0]; QuestSequence obj157 = new QuestSequence { Sequence = 0 @@ -388176,33 +319617,27 @@ public static class AssemblyQuestLoader num2 = 2; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - 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); + 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); obj157.Steps = list223; reference169 = obj157; - num++; - ref QuestSequence reference170 = ref span222[num]; + ref QuestSequence reference170 = ref span73[1]; QuestSequence obj158 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj158.Steps = list224; reference170 = obj158; - num++; - ref QuestSequence reference171 = ref span222[num]; + ref QuestSequence reference171 = ref span73[2]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -388210,21 +319645,18 @@ public static class AssemblyQuestLoader num2 = 3; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span75 = CollectionsMarshal.AsSpan(list225); + span75[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38853u, ItemCount = 3 }; - index2++; - span225[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span75[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - index2++; - span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span75[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj159.Steps = list225; reference171 = obj159; questRoot26.QuestSequence = list222; @@ -388234,32 +319666,26 @@ public static class AssemblyQuestLoader num = 1; List list226 = new List(num); CollectionsMarshal.SetCount(list226, num); - Span span226 = CollectionsMarshal.AsSpan(list226); - index = 0; - span226[index] = "liza"; + CollectionsMarshal.AsSpan(list226)[0] = "liza"; questRoot27.Author = list226; - index = 4; - List list227 = new List(index); - CollectionsMarshal.SetCount(list227, index); - Span span227 = CollectionsMarshal.AsSpan(list227); - num = 0; - ref QuestSequence reference172 = ref span227[num]; + num = 4; + List list227 = new List(num); + CollectionsMarshal.SetCount(list227, num); + Span span76 = CollectionsMarshal.AsSpan(list227); + ref QuestSequence reference172 = ref span76[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj160.Steps = list228; reference172 = obj160; - num++; - ref QuestSequence reference173 = ref span227[num]; + ref QuestSequence reference173 = ref span76[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -388267,37 +319693,31 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj161.Steps = list229; reference173 = obj161; - num++; - ref QuestSequence reference174 = ref span227[num]; + ref QuestSequence reference174 = ref span76[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 38855u, ItemCount = 2 }; - num2++; - span230[num2] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959); + span78[1] = new QuestStep(EInteractionType.Interact, 1044565u, new Vector3(352.0714f, -161.16423f, -378.0423f), 959); obj162.Steps = list230; reference174 = obj162; - num++; - ref QuestSequence reference175 = ref span227[num]; + ref QuestSequence reference175 = ref span76[3]; QuestSequence obj163 = new QuestSequence { Sequence = byte.MaxValue @@ -388305,15 +319725,13 @@ public static class AssemblyQuestLoader num2 = 2; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span79 = CollectionsMarshal.AsSpan(list231); + span79[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - index2++; - span231[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj163.Steps = list231; reference175 = obj163; questRoot27.QuestSequence = list227; @@ -388323,32 +319741,26 @@ public static class AssemblyQuestLoader num = 1; List list232 = new List(num); CollectionsMarshal.SetCount(list232, num); - Span span232 = CollectionsMarshal.AsSpan(list232); - index = 0; - span232[index] = "liza"; + CollectionsMarshal.AsSpan(list232)[0] = "liza"; questRoot28.Author = list232; - index = 3; - List list233 = new List(index); - CollectionsMarshal.SetCount(list233, index); - Span span233 = CollectionsMarshal.AsSpan(list233); - num = 0; - ref QuestSequence reference176 = ref span233[num]; + num = 3; + List list233 = new List(num); + CollectionsMarshal.SetCount(list233, num); + Span span80 = CollectionsMarshal.AsSpan(list233); + ref QuestSequence reference176 = ref span80[0]; QuestSequence obj164 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj164.Steps = list234; reference176 = obj164; - num++; - ref QuestSequence reference177 = ref span233[num]; + ref QuestSequence reference177 = ref span80[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 @@ -388356,9 +319768,8 @@ public static class AssemblyQuestLoader num2 = 2; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.51479f, -105.22506f, -511.04712f), 959) + Span span82 = CollectionsMarshal.AsSpan(list235); + span82[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-170.51479f, -105.22506f, -511.04712f), 959) { Fly = true, SkipConditions = new SkipConditions @@ -388369,36 +319780,31 @@ public static class AssemblyQuestLoader } } }; - index2++; - span235[index2] = new QuestStep(EInteractionType.Interact, 1044572u, new Vector3(-638.056f, -143.79326f, -513.0846f), 959) + span82[1] = new QuestStep(EInteractionType.Interact, 1044572u, new Vector3(-638.056f, -143.79326f, -513.0846f), 959) { Fly = true }; obj165.Steps = list235; reference177 = obj165; - num++; - ref QuestSequence reference178 = ref span233[num]; + ref QuestSequence reference178 = ref span80[2]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38857u, ItemCount = 4 }; - num2++; - span236[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span83[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - num2++; - span236[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span83[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj166.Steps = list236; reference178 = obj166; questRoot28.QuestSequence = list233; @@ -388408,16 +319814,13 @@ public static class AssemblyQuestLoader num = 1; List list237 = new List(num); CollectionsMarshal.SetCount(list237, num); - Span span237 = CollectionsMarshal.AsSpan(list237); - index = 0; - span237[index] = "liza"; + CollectionsMarshal.AsSpan(list237)[0] = "liza"; questRoot29.Author = list237; - index = 5; - List list238 = new List(index); - CollectionsMarshal.SetCount(list238, index); - Span span238 = CollectionsMarshal.AsSpan(list238); - num = 0; - ref QuestSequence reference179 = ref span238[num]; + num = 5; + List list238 = new List(num); + CollectionsMarshal.SetCount(list238, num); + Span span84 = CollectionsMarshal.AsSpan(list238); + ref QuestSequence reference179 = ref span84[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -388425,32 +319828,26 @@ public static class AssemblyQuestLoader num2 = 2; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - 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); + 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); obj167.Steps = list239; reference179 = obj167; - num++; - ref QuestSequence reference180 = ref span238[num]; + ref QuestSequence reference180 = ref span84[1]; QuestSequence obj168 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj168.Steps = list240; reference180 = obj168; - num++; - ref QuestSequence reference181 = ref span238[num]; + ref QuestSequence reference181 = ref span84[2]; QuestSequence obj169 = new QuestSequence { Sequence = 2 @@ -388458,34 +319855,28 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Emote, 1044568u, new Vector3(-188.09796f, -49.14971f, -252.70471f), 959) { Fly = true, Emote = EEmote.Dance }; obj169.Steps = list241; reference181 = obj169; - num++; - ref QuestSequence reference182 = ref span238[num]; + ref QuestSequence reference182 = ref span84[3]; QuestSequence obj170 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Dance }; obj170.Steps = list242; reference182 = obj170; - num++; - ref QuestSequence reference183 = ref span238[num]; + ref QuestSequence reference183 = ref span84[4]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -388493,11 +319884,9 @@ public static class AssemblyQuestLoader num2 = 2; 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(-201.42024f, -49.149708f, -273.68756f), 959); - index2++; - span243[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + 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); obj171.Steps = list243; reference183 = obj171; questRoot29.QuestSequence = list238; @@ -388507,32 +319896,26 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "liza"; + CollectionsMarshal.AsSpan(list244)[0] = "liza"; questRoot30.Author = list244; - index = 4; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference184 = ref span245[num]; + num = 4; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span87 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference184 = ref span87[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj172.Steps = list246; reference184 = obj172; - num++; - ref QuestSequence reference185 = ref span245[num]; + ref QuestSequence reference185 = ref span87[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -388540,37 +319923,31 @@ public static class AssemblyQuestLoader num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959) + CollectionsMarshal.AsSpan(list247)[0] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj173.Steps = list247; reference185 = obj173; - num++; - ref QuestSequence reference186 = ref span245[num]; + ref QuestSequence reference186 = ref span87[2]; QuestSequence obj174 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 38859u, ItemCount = 3 }; - num2++; - span248[num2] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959); + span89[1] = new QuestStep(EInteractionType.Interact, 1044573u, new Vector3(487.23572f, -163.52985f, -600.5188f), 959); obj174.Steps = list248; reference186 = obj174; - num++; - ref QuestSequence reference187 = ref span245[num]; + ref QuestSequence reference187 = ref span87[3]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -388578,15 +319955,13 @@ public static class AssemblyQuestLoader num2 = 2; 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(-201.42024f, -49.149708f, -273.68756f), 959) + Span span90 = CollectionsMarshal.AsSpan(list249); + span90[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - index2++; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span90[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj175.Steps = list249; reference187 = obj175; questRoot30.QuestSequence = list245; @@ -388596,32 +319971,26 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "Kaiser"; + CollectionsMarshal.AsSpan(list250)[0] = "Kaiser"; questRoot31.Author = list250; - index = 3; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference188 = ref span251[num]; + num = 3; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span91 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference188 = ref span91[0]; QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj176.Steps = list252; reference188 = obj176; - num++; - ref QuestSequence reference189 = ref span251[num]; + ref QuestSequence reference189 = ref span91[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -388629,9 +319998,7 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1044569u, new Vector3(-385.6718f, -151.67168f, -261.28027f), 959) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1044569u, new Vector3(-385.6718f, -151.67168f, -261.28027f), 959) { StopDistance = 5f, Fly = true, @@ -388651,24 +320018,21 @@ public static class AssemblyQuestLoader }; obj177.Steps = list253; reference189 = obj177; - num++; - ref QuestSequence reference190 = ref span251[num]; + ref QuestSequence reference190 = ref span91[2]; QuestSequence obj178 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38861u, ItemCount = 2 }; - num2++; - span254[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -388685,8 +320049,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span254[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span93[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj178.Steps = list254; reference190 = obj178; questRoot31.QuestSequence = list251; @@ -388696,16 +320059,13 @@ public static class AssemblyQuestLoader num = 1; List list255 = new List(num); CollectionsMarshal.SetCount(list255, num); - Span span255 = CollectionsMarshal.AsSpan(list255); - index = 0; - span255[index] = "kaiser"; + CollectionsMarshal.AsSpan(list255)[0] = "kaiser"; questRoot32.Author = list255; - index = 3; - List list256 = new List(index); - CollectionsMarshal.SetCount(list256, index); - Span span256 = CollectionsMarshal.AsSpan(list256); - num = 0; - ref QuestSequence reference191 = ref span256[num]; + num = 3; + List list256 = new List(num); + CollectionsMarshal.SetCount(list256, num); + Span span94 = CollectionsMarshal.AsSpan(list256); + ref QuestSequence reference191 = ref span94[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -388713,32 +320073,26 @@ public static class AssemblyQuestLoader num2 = 2; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - 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); + 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); obj179.Steps = list257; reference191 = obj179; - num++; - ref QuestSequence reference192 = ref span256[num]; + ref QuestSequence reference192 = ref span94[1]; QuestSequence obj180 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj180.Steps = list258; reference192 = obj180; - num++; - ref QuestSequence reference193 = ref span256[num]; + ref QuestSequence reference193 = ref span94[2]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue @@ -388746,17 +320100,14 @@ public static class AssemblyQuestLoader num2 = 3; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span96 = CollectionsMarshal.AsSpan(list259); + span96[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38863u, ItemCount = 3 }; - 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); + 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); obj181.Steps = list259; reference193 = obj181; questRoot32.QuestSequence = list256; @@ -388766,32 +320117,26 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - Span span260 = CollectionsMarshal.AsSpan(list260); - index = 0; - span260[index] = "kaiser"; + CollectionsMarshal.AsSpan(list260)[0] = "kaiser"; questRoot33.Author = list260; - index = 4; - List list261 = new List(index); - CollectionsMarshal.SetCount(list261, index); - Span span261 = CollectionsMarshal.AsSpan(list261); - num = 0; - ref QuestSequence reference194 = ref span261[num]; + num = 4; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span97 = CollectionsMarshal.AsSpan(list261); + ref QuestSequence reference194 = ref span97[0]; QuestSequence obj182 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj182.Steps = list262; reference194 = obj182; - num++; - ref QuestSequence reference195 = ref span261[num]; + ref QuestSequence reference195 = ref span97[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 @@ -388799,9 +320144,7 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959) + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959) { StopDistance = 5f, Fly = true, @@ -388816,25 +320159,22 @@ public static class AssemblyQuestLoader }; obj183.Steps = list263; reference195 = obj183; - num++; - ref QuestSequence reference196 = ref span261[num]; + ref QuestSequence reference196 = ref span97[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, Land = true, Action = EAction.HopStep }; - num2++; - span264[num2] = new QuestStep(EInteractionType.Action, 2013256u, new Vector3(-739.0097f, -139.72687f, -539.0555f), 959) + span99[1] = new QuestStep(EInteractionType.Action, 2013256u, new Vector3(-739.0097f, -139.72687f, -539.0555f), 959) { Fly = true, Land = true, @@ -388842,8 +320182,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list264; reference196 = obj184; - num++; - ref QuestSequence reference197 = ref span261[num]; + ref QuestSequence reference197 = ref span97[3]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -388851,9 +320190,7 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) { StopDistance = 5f, Fly = true, @@ -388880,32 +320217,26 @@ public static class AssemblyQuestLoader num = 1; List list266 = new List(num); CollectionsMarshal.SetCount(list266, num); - Span span266 = CollectionsMarshal.AsSpan(list266); - index = 0; - span266[index] = "liza"; + CollectionsMarshal.AsSpan(list266)[0] = "liza"; questRoot34.Author = list266; - index = 3; - List list267 = new List(index); - CollectionsMarshal.SetCount(list267, index); - Span span267 = CollectionsMarshal.AsSpan(list267); - num = 0; - ref QuestSequence reference198 = ref span267[num]; + num = 3; + List list267 = new List(num); + CollectionsMarshal.SetCount(list267, num); + Span span100 = CollectionsMarshal.AsSpan(list267); + ref QuestSequence reference198 = ref span100[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj186.Steps = list268; reference198 = obj186; - num++; - ref QuestSequence reference199 = ref span267[num]; + ref QuestSequence reference199 = ref span100[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -388913,39 +320244,33 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - span269[index2] = new QuestStep(EInteractionType.Interact, 1044580u, new Vector3(323.84216f, -144.00002f, -539.086f), 959) + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.Interact, 1044580u, new Vector3(323.84216f, -144.00002f, -539.086f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj187.Steps = list269; reference199 = obj187; - num++; - ref QuestSequence reference200 = ref span267[num]; + ref QuestSequence reference200 = ref span100[2]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38865u, ItemCount = 3 }; - num2++; - span270[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span102[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span270[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span102[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj188.Steps = list270; reference200 = obj188; questRoot34.QuestSequence = list267; @@ -388955,16 +320280,13 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "liza"; + CollectionsMarshal.AsSpan(list271)[0] = "liza"; questRoot35.Author = list271; - index = 4; - List list272 = new List(index); - CollectionsMarshal.SetCount(list272, index); - Span span272 = CollectionsMarshal.AsSpan(list272); - num = 0; - ref QuestSequence reference201 = ref span272[num]; + num = 4; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span103 = CollectionsMarshal.AsSpan(list272); + ref QuestSequence reference201 = ref span103[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -388972,29 +320294,23 @@ public static class AssemblyQuestLoader num2 = 2; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - 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); + 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); obj189.Steps = list273; reference201 = obj189; - num++; - ref QuestSequence reference202 = ref span272[num]; + ref QuestSequence reference202 = ref span103[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj190.Steps = list274; reference202 = obj190; - num++; - ref QuestSequence reference203 = ref span272[num]; + ref QuestSequence reference203 = ref span103[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -389002,38 +320318,33 @@ public static class AssemblyQuestLoader num2 = 2; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span105 = CollectionsMarshal.AsSpan(list275); + span105[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38867u, ItemCount = 1 }; - index2++; - span275[index2] = new QuestStep(EInteractionType.Interact, 1044581u, new Vector3(-691.37103f, -152.75392f, -706.9963f), 959) + span105[1] = new QuestStep(EInteractionType.Interact, 1044581u, new Vector3(-691.37103f, -152.75392f, -706.9963f), 959) { Fly = true }; obj191.Steps = list275; reference203 = obj191; - num++; - ref QuestSequence reference204 = ref span272[num]; + ref QuestSequence reference204 = ref span103[3]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span276[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span106[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj192.Steps = list276; reference204 = obj192; questRoot35.QuestSequence = list272; @@ -389043,16 +320354,13 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - Span span277 = CollectionsMarshal.AsSpan(list277); - index = 0; - span277[index] = "liza"; + CollectionsMarshal.AsSpan(list277)[0] = "liza"; questRoot36.Author = list277; - index = 3; - List list278 = new List(index); - CollectionsMarshal.SetCount(list278, index); - Span span278 = CollectionsMarshal.AsSpan(list278); - num = 0; - ref QuestSequence reference205 = ref span278[num]; + num = 3; + List list278 = new List(num); + CollectionsMarshal.SetCount(list278, num); + Span span107 = CollectionsMarshal.AsSpan(list278); + ref QuestSequence reference205 = ref span107[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -389060,25 +320368,21 @@ public static class AssemblyQuestLoader num2 = 2; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - 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); + 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); obj193.Steps = list279; reference205 = obj193; - num++; - ref QuestSequence reference206 = ref span278[num]; + ref QuestSequence reference206 = ref span107[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list280 = new List(index2); - CollectionsMarshal.SetCount(list280, index2); - Span span280 = CollectionsMarshal.AsSpan(list280); - num2 = 0; - ref QuestStep reference207 = ref span280[num2]; + num2 = 2; + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + Span span109 = CollectionsMarshal.AsSpan(list280); + ref QuestStep reference207 = ref span109[0]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 2013259u, new Vector3(725.03235f, 150.92688f, 134.96594f), 959) { Fly = true, @@ -389087,63 +320391,45 @@ public static class AssemblyQuestLoader num3 = 6; List> list281 = new List>(num3); CollectionsMarshal.SetCount(list281, num3); - 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); + 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); reference208 = list282; - num4++; - span281[num4] = null; - num4++; - span281[num4] = null; - num4++; - span281[num4] = null; + span110[3] = null; + span110[4] = null; + span110[5] = null; obj195.RequiredQuestVariables = list281; reference207 = obj195; - num2++; - ref QuestStep reference209 = ref span280[num2]; + ref QuestStep reference209 = ref span109[1]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 2013260u, new Vector3(725.063f, 141.37488f, 233.02039f), 959) { Fly = true }; - 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); + 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); reference210 = list284; - num3++; - span283[num3] = null; - num3++; - span283[num3] = null; - num3++; - span283[num3] = null; + span111[3] = null; + span111[4] = null; + span111[5] = null; obj196.RequiredQuestVariables = list283; reference209 = obj196; obj194.Steps = list280; reference206 = obj194; - num++; - ref QuestSequence reference211 = ref span278[num]; + ref QuestSequence reference211 = ref span107[2]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue @@ -389151,15 +320437,13 @@ public static class AssemblyQuestLoader num2 = 2; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span112 = CollectionsMarshal.AsSpan(list285); + span112[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - index2++; - span285[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span112[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj197.Steps = list285; reference211 = obj197; questRoot36.QuestSequence = list278; @@ -389169,32 +320453,26 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "liza"; + CollectionsMarshal.AsSpan(list286)[0] = "liza"; questRoot37.Author = list286; - index = 3; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference212 = ref span287[num]; + num = 3; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span113 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference212 = ref span113[0]; QuestSequence obj198 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj198.Steps = list288; reference212 = obj198; - num++; - ref QuestSequence reference213 = ref span287[num]; + ref QuestSequence reference213 = ref span113[1]; QuestSequence obj199 = new QuestSequence { Sequence = 1 @@ -389202,37 +320480,31 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.Interact, 1044583u, new Vector3(-52.018066f, -137.4167f, -622.4613f), 959) + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1044583u, new Vector3(-52.018066f, -137.4167f, -622.4613f), 959) { Fly = true }; obj199.Steps = list289; reference213 = obj199; - num++; - ref QuestSequence reference214 = ref span287[num]; + ref QuestSequence reference214 = ref span113[2]; QuestSequence obj200 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38869u, ItemCount = 4 }; - num2++; - span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span115[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - num2++; - span290[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span115[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj200.Steps = list290; reference214 = obj200; questRoot37.QuestSequence = list287; @@ -389242,16 +320514,13 @@ public static class AssemblyQuestLoader num = 1; List list291 = new List(num); CollectionsMarshal.SetCount(list291, num); - Span span291 = CollectionsMarshal.AsSpan(list291); - index = 0; - span291[index] = "pot0to"; + CollectionsMarshal.AsSpan(list291)[0] = "pot0to"; questRoot38.Author = list291; - index = 4; - List list292 = new List(index); - CollectionsMarshal.SetCount(list292, index); - Span span292 = CollectionsMarshal.AsSpan(list292); - num = 0; - ref QuestSequence reference215 = ref span292[num]; + num = 4; + List list292 = new List(num); + CollectionsMarshal.SetCount(list292, num); + Span span116 = CollectionsMarshal.AsSpan(list292); + ref QuestSequence reference215 = ref span116[0]; QuestSequence obj201 = new QuestSequence { Sequence = 0 @@ -389259,32 +320528,26 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - span293[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span117 = CollectionsMarshal.AsSpan(list293); + span117[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - index2++; - span293[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span117[1] = new QuestStep(EInteractionType.AcceptQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj201.Steps = list293; reference215 = obj201; - num++; - ref QuestSequence reference216 = ref span292[num]; + ref QuestSequence reference216 = ref span116[1]; QuestSequence obj202 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj202.Steps = list294; reference216 = obj202; - num++; - ref QuestSequence reference217 = ref span292[num]; + ref QuestSequence reference217 = ref span116[2]; QuestSequence obj203 = new QuestSequence { Sequence = 2 @@ -389292,37 +320555,32 @@ public static class AssemblyQuestLoader num2 = 2; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span118 = CollectionsMarshal.AsSpan(list295); + span118[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38871u, ItemCount = 1 }; - index2++; - span295[index2] = new QuestStep(EInteractionType.Interact, 1044584u, new Vector3(563.8971f, -167.50002f, -594.53723f), 959) + span118[1] = new QuestStep(EInteractionType.Interact, 1044584u, new Vector3(563.8971f, -167.50002f, -594.53723f), 959) { Fly = true }; obj203.Steps = list295; reference217 = obj203; - num++; - ref QuestSequence reference218 = ref span292[num]; + ref QuestSequence reference218 = ref span116[3]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span296[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span119[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj204.Steps = list296; reference218 = obj204; questRoot38.QuestSequence = list292; @@ -389336,16 +320594,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -389353,32 +320608,26 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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); + 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); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -389386,9 +320635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num3 = 0; - span5[num3] = new QuestStep(EInteractionType.Say, 1044585u, new Vector3(-496.14713f, -154.93994f, -484.88593f), 959) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Say, 1044585u, new Vector3(-496.14713f, -154.93994f, -484.88593f), 959) { Fly = true, ChatMessage = new ChatMessage @@ -389398,25 +320645,21 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -389424,14 +320667,12 @@ public static class AssemblyQuestLoader num2 = 2; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span3 = CollectionsMarshal.AsSpan(list7); + span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - num3++; - span7[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -389441,32 +320682,26 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 3; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 3; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -389474,31 +320709,25 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num3 = 0; - span11[num3] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span4[2]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 38873u, ItemCount = 3 }; - 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); + 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); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list9; @@ -389508,16 +320737,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "liza"; + CollectionsMarshal.AsSpan(list13)[0] = "liza"; questRoot3.Author = list13; - index = 4; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 4; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span7 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span7[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -389525,33 +320751,27 @@ public static class AssemblyQuestLoader num2 = 2; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - 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); + 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); obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span7[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span14[num]; + ref QuestSequence reference11 = ref span7[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 @@ -389559,35 +320779,30 @@ public static class AssemblyQuestLoader num2 = 2; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - num3 = 0; - span17[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span9 = CollectionsMarshal.AsSpan(list17); + span9[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38875u, ItemCount = 1 }; - num3++; - span17[num3] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959); + span9[1] = new QuestStep(EInteractionType.Interact, 1044586u, new Vector3(-524.19324f, -158.8955f, -521.17194f), 959); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span14[num]; + ref QuestSequence reference12 = ref span7[3]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span18[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj12.Steps = list18; reference12 = obj12; questRoot3.QuestSequence = list14; @@ -389597,16 +320812,13 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "liza"; + CollectionsMarshal.AsSpan(list19)[0] = "liza"; questRoot4.Author = list19; - index = 4; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference13 = ref span20[num]; + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span11 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference13 = ref span11[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -389614,33 +320826,27 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - 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); + 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); obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span20[num]; + ref QuestSequence reference14 = ref span11[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span20[num]; + ref QuestSequence reference15 = ref span11[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -389648,35 +320854,30 @@ public static class AssemblyQuestLoader num2 = 2; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - num3 = 0; - span23[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span13 = CollectionsMarshal.AsSpan(list23); + span13[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38877u, ItemCount = 2 }; - num3++; - span23[num3] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959); + span13[1] = new QuestStep(EInteractionType.Interact, 1044587u, new Vector3(354.02454f, 91.97786f, 509.14783f), 959); obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span11[3]; QuestSequence obj16 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span24[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span14[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj16.Steps = list24; reference16 = obj16; questRoot4.QuestSequence = list20; @@ -389686,16 +320887,13 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; questRoot5.Author = list25; - index = 4; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference17 = ref span26[num]; + num = 4; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span15 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference17 = ref span15[0]; QuestSequence obj17 = new QuestSequence { Sequence = 0 @@ -389703,29 +320901,23 @@ public static class AssemblyQuestLoader num2 = 2; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - 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); + 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); obj17.Steps = list27; reference17 = obj17; - num++; - ref QuestSequence reference18 = ref span26[num]; + ref QuestSequence reference18 = ref span15[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj18.Steps = list28; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span26[num]; + ref QuestSequence reference19 = ref span15[2]; QuestSequence obj19 = new QuestSequence { Sequence = 2 @@ -389733,100 +320925,76 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - num3 = 0; - ref QuestStep reference20 = ref span29[num3]; + Span span17 = CollectionsMarshal.AsSpan(list29); + ref QuestStep reference20 = ref span17[0]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1044590u, new Vector3(-536.9497f, -157.99246f, -693.75146f), 959) { StopDistance = 1f, Fly = true }; - 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); + 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); obj20.CompletionQuestVariablesFlags = list30; reference20 = obj20; - num3++; - ref QuestStep reference21 = ref span29[num3]; + ref QuestStep reference21 = ref span17[1]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1044591u, new Vector3(-502.58643f, -161.38867f, -773.251f), 959) { Fly = true }; - 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); + 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); obj21.CompletionQuestVariablesFlags = list31; reference21 = obj21; - num3++; - ref QuestStep reference22 = ref span29[num3]; + ref QuestStep reference22 = ref span17[2]; QuestStep obj22 = new QuestStep(EInteractionType.Interact, 1044589u, new Vector3(-433.03577f, -167.50002f, -741.7258f), 959) { Fly = true }; - 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); + 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); obj22.CompletionQuestVariablesFlags = list32; reference22 = obj22; obj19.Steps = list29; reference19 = obj19; - num++; - ref QuestSequence reference23 = ref span26[num]; + ref QuestSequence reference23 = ref span15[3]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span33[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span21[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj23.Steps = list33; reference23 = obj23; questRoot5.QuestSequence = list26; @@ -389836,16 +321004,13 @@ public static class AssemblyQuestLoader num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span34 = CollectionsMarshal.AsSpan(list34); - index = 0; - span34[index] = "liza"; + CollectionsMarshal.AsSpan(list34)[0] = "liza"; questRoot6.Author = list34; - index = 3; - List list35 = new List(index); - CollectionsMarshal.SetCount(list35, index); - Span span35 = CollectionsMarshal.AsSpan(list35); - num = 0; - ref QuestSequence reference24 = ref span35[num]; + num = 3; + List list35 = new List(num); + CollectionsMarshal.SetCount(list35, num); + Span span22 = CollectionsMarshal.AsSpan(list35); + ref QuestSequence reference24 = ref span22[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 @@ -389853,32 +321018,26 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - 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); + 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); obj24.Steps = list36; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span35[num]; + ref QuestSequence reference25 = ref span22[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj25.Steps = list37; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span35[num]; + ref QuestSequence reference26 = ref span22[2]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue @@ -389886,21 +321045,18 @@ public static class AssemblyQuestLoader num2 = 3; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span24 = CollectionsMarshal.AsSpan(list38); + span24[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38879u, ItemCount = 2 }; - num3++; - span38[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span24[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3++; - span38[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span24[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj26.Steps = list38; reference26 = obj26; questRoot6.QuestSequence = list35; @@ -389910,32 +321066,26 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot7.Author = list39; - index = 4; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference27 = ref span40[num]; + num = 4; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span25 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference27 = ref span25[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj27.Steps = list41; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span40[num]; + ref QuestSequence reference28 = ref span25[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 @@ -389943,36 +321093,30 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - num3 = 0; - span42[num3] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Interact, 1044412u, new Vector3(-181.56714f, -49.19972f, -304.76843f), 959); obj28.Steps = list42; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span40[num]; + ref QuestSequence reference29 = ref span25[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 38881u, ItemCount = 1 }; - num2++; - span43[num2] = new QuestStep(EInteractionType.Interact, 1044602u, new Vector3(463.0349f, -167.81126f, -490.13504f), 959) + span27[1] = new QuestStep(EInteractionType.Interact, 1044602u, new Vector3(463.0349f, -167.81126f, -490.13504f), 959) { Fly = true }; obj29.Steps = list43; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span40[num]; + ref QuestSequence reference30 = ref span25[3]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -389980,15 +321124,13 @@ public static class AssemblyQuestLoader num2 = 2; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - num3 = 0; - span44[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span28 = CollectionsMarshal.AsSpan(list44); + span28[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3++; - span44[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span28[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj30.Steps = list44; reference30 = obj30; questRoot7.QuestSequence = list40; @@ -389998,32 +321140,26 @@ public static class AssemblyQuestLoader num = 1; List list45 = new List(num); CollectionsMarshal.SetCount(list45, num); - Span span45 = CollectionsMarshal.AsSpan(list45); - index = 0; - span45[index] = "liza"; + CollectionsMarshal.AsSpan(list45)[0] = "liza"; questRoot8.Author = list45; - index = 4; - List list46 = new List(index); - CollectionsMarshal.SetCount(list46, index); - Span span46 = CollectionsMarshal.AsSpan(list46); - num = 0; - ref QuestSequence reference31 = ref span46[num]; + num = 4; + List list46 = new List(num); + CollectionsMarshal.SetCount(list46, num); + Span span29 = CollectionsMarshal.AsSpan(list46); + ref QuestSequence reference31 = ref span29[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj31.Steps = list47; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span46[num]; + ref QuestSequence reference32 = ref span29[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -390031,103 +321167,78 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - num3 = 0; - span48[num3] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 1044408u, new Vector3(-164.08032f, -49.199722f, -250.75159f), 959); obj32.Steps = list48; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span46[num]; + ref QuestSequence reference33 = ref span29[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list49 = new List(num3); - CollectionsMarshal.SetCount(list49, num3); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref QuestStep reference34 = ref span49[num2]; + num2 = 3; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + Span span31 = CollectionsMarshal.AsSpan(list49); + ref QuestStep reference34 = ref span31[0]; QuestStep obj34 = new QuestStep(EInteractionType.Action, 2013262u, new Vector3(34.98889f, -47.56244f, -531.5481f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - 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); + 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); obj34.CompletionQuestVariablesFlags = list50; reference34 = obj34; - num2++; - ref QuestStep reference35 = ref span49[num2]; + ref QuestStep reference35 = ref span31[1]; QuestStep obj35 = new QuestStep(EInteractionType.Action, 2013263u, new Vector3(49.79016f, -133.07397f, -558.9227f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - 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); + 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); obj35.CompletionQuestVariablesFlags = list51; reference35 = obj35; - num2++; - ref QuestStep reference36 = ref span49[num2]; + ref QuestStep reference36 = ref span31[2]; QuestStep obj36 = new QuestStep(EInteractionType.Action, 2013261u, new Vector3(-34.28705f, -129.2287f, -495.71985f), 959) { Fly = true, Land = true, Action = EAction.HopStep }; - 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); + 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); obj36.CompletionQuestVariablesFlags = list52; reference36 = obj36; obj33.Steps = list49; reference33 = obj33; - num++; - ref QuestSequence reference37 = ref span46[num]; + ref QuestSequence reference37 = ref span29[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -390135,14 +321246,12 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - num3 = 0; - span53[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + Span span35 = CollectionsMarshal.AsSpan(list53); + span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true }; - num3++; - span53[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) + span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959) { Mount = false }; @@ -390155,32 +321264,26 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; questRoot9.Author = list54; - index = 4; - List list55 = new List(index); - CollectionsMarshal.SetCount(list55, index); - Span span55 = CollectionsMarshal.AsSpan(list55); - num = 0; - ref QuestSequence reference38 = ref span55[num]; + num = 4; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span36 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference38 = ref span36[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj38.Steps = list56; reference38 = obj38; - num++; - ref QuestSequence reference39 = ref span55[num]; + ref QuestSequence reference39 = ref span36[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -390188,37 +321291,31 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - num3 = 0; - span57[num3] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959) { StopDistance = 1f, Fly = true }; obj39.Steps = list57; reference39 = obj39; - num++; - ref QuestSequence reference40 = ref span55[num]; + ref QuestSequence reference40 = ref span36[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 38883u, ItemCount = 3 }; - num2++; - span58[num2] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959); + span38[1] = new QuestStep(EInteractionType.Interact, 1044608u, new Vector3(227.19153f, 93.66165f, -35.385742f), 959); obj40.Steps = list58; reference40 = obj40; - num++; - ref QuestSequence reference41 = ref span55[num]; + ref QuestSequence reference41 = ref span36[3]; QuestSequence obj41 = new QuestSequence { Sequence = byte.MaxValue @@ -390226,15 +321323,13 @@ public static class AssemblyQuestLoader num2 = 2; 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(-201.42024f, -49.149708f, -273.68756f), 959) + Span span39 = CollectionsMarshal.AsSpan(list59); + span39[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3++; - span59[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span39[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj41.Steps = list59; reference41 = obj41; questRoot9.QuestSequence = list55; @@ -390244,32 +321339,26 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "liza"; + CollectionsMarshal.AsSpan(list60)[0] = "liza"; questRoot10.Author = list60; - index = 3; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference42 = ref span61[num]; + num = 3; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span40 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference42 = ref span40[0]; QuestSequence obj42 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj42.Steps = list62; reference42 = obj42; - num++; - ref QuestSequence reference43 = ref span61[num]; + ref QuestSequence reference43 = ref span40[1]; QuestSequence obj43 = new QuestSequence { Sequence = 1 @@ -390277,123 +321366,92 @@ public static class AssemblyQuestLoader num2 = 4; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num3 = 0; - ref QuestStep reference44 = ref span63[num3]; + Span span42 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference44 = ref span42[0]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 2013264u, new Vector3(47.01306f, -132.86035f, -504.08182f), 959) { Fly = true }; - 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); + 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); obj44.CompletionQuestVariablesFlags = list64; reference44 = obj44; - num3++; - ref QuestStep reference45 = ref span63[num3]; + ref QuestStep reference45 = ref span42[1]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 2013266u, new Vector3(64.65234f, -132.61621f, -451.133f), 959) { Fly = true }; - 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); + 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); obj45.CompletionQuestVariablesFlags = list65; reference45 = obj45; - num3++; - ref QuestStep reference46 = ref span63[num3]; + ref QuestStep reference46 = ref span42[2]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list66; skipConditions.StepIf = skipStepConditions; obj46.SkipConditions = skipConditions; reference46 = obj46; - num3++; - ref QuestStep reference47 = ref span63[num3]; + ref QuestStep reference47 = ref span42[3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013265u, new Vector3(15.060608f, -131.27338f, -444.0528f), 959); - 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); + 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); questStep.CompletionQuestVariablesFlags = list67; reference47 = questStep; obj43.Steps = list63; reference43 = obj43; - num++; - ref QuestSequence reference48 = ref span61[num]; + ref QuestSequence reference48 = ref span40[2]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj47.Steps = list68; reference48 = obj47; questRoot10.QuestSequence = list61; @@ -390403,16 +321461,13 @@ public static class AssemblyQuestLoader num = 1; List list69 = new List(num); CollectionsMarshal.SetCount(list69, num); - Span span69 = CollectionsMarshal.AsSpan(list69); - index = 0; - span69[index] = "liza"; + CollectionsMarshal.AsSpan(list69)[0] = "liza"; questRoot11.Author = list69; - index = 3; - List list70 = new List(index); - CollectionsMarshal.SetCount(list70, index); - Span span70 = CollectionsMarshal.AsSpan(list70); - num = 0; - ref QuestSequence reference49 = ref span70[num]; + num = 3; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + Span span48 = CollectionsMarshal.AsSpan(list70); + ref QuestSequence reference49 = ref span48[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -390420,33 +321475,27 @@ public static class AssemblyQuestLoader num2 = 2; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - 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); + 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); obj48.Steps = list71; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span70[num]; + ref QuestSequence reference50 = ref span48[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj49.Steps = list72; reference50 = obj49; - num++; - ref QuestSequence reference51 = ref span70[num]; + ref QuestSequence reference51 = ref span48[2]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue @@ -390454,21 +321503,18 @@ public static class AssemblyQuestLoader num2 = 3; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span50 = CollectionsMarshal.AsSpan(list73); + span50[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38885u, ItemCount = 1 }; - num3++; - span73[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span50[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3++; - span73[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span50[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj50.Steps = list73; reference51 = obj50; questRoot11.QuestSequence = list70; @@ -390478,32 +321524,26 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "liza"; + CollectionsMarshal.AsSpan(list74)[0] = "liza"; questRoot12.Author = list74; - index = 3; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference52 = ref span75[num]; + num = 3; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span51 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference52 = ref span51[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj51.Steps = list76; reference52 = obj51; - num++; - ref QuestSequence reference53 = ref span75[num]; + ref QuestSequence reference53 = ref span51[1]; QuestSequence obj52 = new QuestSequence { Sequence = 1 @@ -390511,20 +321551,16 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num3 = 0; - ref QuestStep reference54 = ref span77[num3]; + ref QuestStep reference54 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1044613u, new Vector3(493.55298f, -163.52985f, -711.54346f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num4 = 1; - List list78 = new List(num4); - CollectionsMarshal.SetCount(list78, num4); - Span span78 = CollectionsMarshal.AsSpan(list78); - num5 = 0; - span78[num5] = new DialogueChoice + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANLOP125_04711_Q1_000_000"), @@ -390534,24 +321570,21 @@ public static class AssemblyQuestLoader reference54 = obj53; obj52.Steps = list77; reference53 = obj52; - num++; - ref QuestSequence reference55 = ref span75[num]; + ref QuestSequence reference55 = ref span51[2]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span79[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span53[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj54.Steps = list79; reference55 = obj54; questRoot12.QuestSequence = list75; @@ -390561,16 +321594,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot13.Author = list80; - index = 4; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference56 = ref span81[num]; + num = 4; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span54 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference56 = ref span54[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -390578,32 +321608,26 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - 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); + 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); obj55.Steps = list82; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span81[num]; + ref QuestSequence reference57 = ref span54[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj56.Steps = list83; reference57 = obj56; - num++; - ref QuestSequence reference58 = ref span81[num]; + ref QuestSequence reference58 = ref span54[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -390611,34 +321635,29 @@ public static class AssemblyQuestLoader num2 = 2; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num3 = 0; - span84[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span56 = CollectionsMarshal.AsSpan(list84); + span56[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38887u, ItemCount = 3 }; - num3++; - span84[num3] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959); + span56[1] = new QuestStep(EInteractionType.Interact, 1044615u, new Vector3(-84.7334f, -49.589592f, -351.73578f), 959); obj57.Steps = list84; reference58 = obj57; - num++; - ref QuestSequence reference59 = ref span81[num]; + ref QuestSequence reference59 = ref span54[3]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span85[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span57[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj58.Steps = list85; reference59 = obj58; questRoot13.QuestSequence = list81; @@ -390648,16 +321667,13 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot14.Author = list86; - index = 3; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference60 = ref span87[num]; + num = 3; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span58 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference60 = ref span58[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -390665,33 +321681,27 @@ public static class AssemblyQuestLoader num2 = 2; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - 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); + 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); obj59.Steps = list88; reference60 = obj59; - num++; - ref QuestSequence reference61 = ref span87[num]; + ref QuestSequence reference61 = ref span58[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; obj60.Steps = list89; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span87[num]; + ref QuestSequence reference62 = ref span58[2]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue @@ -390699,21 +321709,18 @@ public static class AssemblyQuestLoader num2 = 3; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = new QuestStep(EInteractionType.Craft, null, null, 959) + Span span60 = CollectionsMarshal.AsSpan(list90); + span60[0] = new QuestStep(EInteractionType.Craft, null, null, 959) { ItemId = 38889u, ItemCount = 1 }; - num3++; - span90[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) + span60[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-201.42024f, -49.149708f, -273.68756f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num3++; - span90[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span60[2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj61.Steps = list90; reference62 = obj61; questRoot14.QuestSequence = list87; @@ -390723,32 +321730,26 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "pot0to"; + CollectionsMarshal.AsSpan(list91)[0] = "pot0to"; questRoot15.Author = list91; - index = 5; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference63 = ref span92[num]; + num = 5; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span61 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference63 = ref span61[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj62.Steps = list93; reference63 = obj62; - num++; - ref QuestSequence reference64 = ref span92[num]; + ref QuestSequence reference64 = ref span61[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 @@ -390756,34 +321757,28 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = new QuestStep(EInteractionType.Interact, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Interact, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { Fly = true }; obj63.Steps = list94; reference64 = obj63; - num++; - ref QuestSequence reference65 = ref span92[num]; + ref QuestSequence reference65 = ref span61[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 2003449u, GroundTarget = true }; obj64.Steps = list95; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span92[num]; + ref QuestSequence reference66 = ref span61[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 @@ -390791,33 +321786,28 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num3 = 0; - span96[num3] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.UseItem, 1044571u, new Vector3(20.09607f, 64.97662f, 43.411865f), 959) { ItemId = 2003449u, GroundTarget = true }; obj65.Steps = list96; reference66 = obj65; - num++; - ref QuestSequence reference67 = ref span92[num]; + ref QuestSequence reference67 = ref span61[4]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; - num2++; - span97[num2] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); + span63[1] = new QuestStep(EInteractionType.CompleteQuest, 1044403u, new Vector3(-203.5401f, -48.949707f, -273.60956f), 959); obj66.Steps = list97; reference67 = obj66; questRoot15.QuestSequence = list92; @@ -390827,16 +321817,13 @@ public static class AssemblyQuestLoader num = 1; List list98 = new List(num); CollectionsMarshal.SetCount(list98, num); - Span span98 = CollectionsMarshal.AsSpan(list98); - index = 0; - span98[index] = "liza"; + CollectionsMarshal.AsSpan(list98)[0] = "liza"; questRoot16.Author = list98; - index = 3; - List list99 = new List(index); - CollectionsMarshal.SetCount(list99, index); - Span span99 = CollectionsMarshal.AsSpan(list99); - num = 0; - ref QuestSequence reference68 = ref span99[num]; + num = 3; + List list99 = new List(num); + CollectionsMarshal.SetCount(list99, num); + Span span64 = CollectionsMarshal.AsSpan(list99); + ref QuestSequence reference68 = ref span64[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -390844,9 +321831,7 @@ public static class AssemblyQuestLoader num2 = 1; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = new QuestStep(EInteractionType.AcceptQuest, 1044553u, new Vector3(-96.910095f, 3.1843073f, 6.8207397f), 819) + CollectionsMarshal.AsSpan(list100)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044553u, new Vector3(-96.910095f, 3.1843073f, 6.8207397f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -390859,26 +321844,22 @@ public static class AssemblyQuestLoader }; obj67.Steps = list100; reference68 = obj67; - num++; - ref QuestSequence reference69 = ref span99[num]; + ref QuestSequence reference69 = ref span64[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran }; obj68.Steps = list101; reference69 = obj68; - num++; - ref QuestSequence reference70 = ref span99[num]; + ref QuestSequence reference70 = ref span64[2]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue @@ -390886,9 +321867,7 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - num3 = 0; - span102[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044558u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); + CollectionsMarshal.AsSpan(list102)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044558u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); obj69.Steps = list102; reference70 = obj69; questRoot16.QuestSequence = list99; @@ -390898,26 +321877,21 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "liza"; + CollectionsMarshal.AsSpan(list103)[0] = "liza"; questRoot17.Author = list103; - index = 4; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference71 = ref span104[num]; + num = 4; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span65 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference71 = ref span65[0]; QuestSequence obj70 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list105)[0]; QuestStep obj71 = new QuestStep(EInteractionType.AcceptQuest, 1044547u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -390929,12 +321903,10 @@ public static class AssemblyQuestLoader } } }; - num5 = 1; - List list106 = new List(num5); - CollectionsMarshal.SetCount(list106, num5); - Span span106 = CollectionsMarshal.AsSpan(list106); - num4 = 0; - span106[num4] = new DialogueChoice + num3 = 1; + List list106 = new List(num3); + CollectionsMarshal.SetCount(list106, num3); + CollectionsMarshal.AsSpan(list106)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBCTS681_04716_Q1_000_003"), @@ -390944,8 +321916,7 @@ public static class AssemblyQuestLoader reference72 = obj71; obj70.Steps = list105; reference71 = obj70; - num++; - ref QuestSequence reference73 = ref span104[num]; + ref QuestSequence reference73 = ref span65[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -390953,31 +321924,25 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - num3 = 0; - span107[num3] = new QuestStep(EInteractionType.Interact, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816); obj72.Steps = list107; reference73 = obj72; - num++; - ref QuestSequence reference74 = ref span104[num]; + ref QuestSequence reference74 = ref span65[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RaktikaFanow }; obj73.Steps = list108; reference74 = obj73; - num++; - ref QuestSequence reference75 = ref span104[num]; + ref QuestSequence reference75 = ref span65[3]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -390985,9 +321950,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - span109[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044560u, new Vector3(-241.68768f, 51.058994f, 620.8744f), 816) { Fly = true, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -391002,26 +321965,21 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "liza"; + CollectionsMarshal.AsSpan(list110)[0] = "liza"; questRoot18.Author = list110; - index = 2; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference76 = ref span111[num]; + num = 2; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span66 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference76 = ref span66[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.IlMhegLydhaLran, @@ -391035,8 +321993,7 @@ public static class AssemblyQuestLoader }; obj75.Steps = list112; reference76 = obj75; - num++; - ref QuestSequence reference77 = ref span111[num]; + ref QuestSequence reference77 = ref span66[1]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -391044,9 +322001,7 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - span113[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044562u, new Vector3(-294.97223f, 67.46317f, 603.6621f), 816) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044562u, new Vector3(-294.97223f, 67.46317f, 603.6621f), 816) { Fly = true }; @@ -391059,36 +322014,29 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot19.Author = list114; - index = 9; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference78 = ref span115[num]; + num = 9; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span67 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference78 = ref span67[0]; QuestSequence obj77 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list116)[0]; QuestStep obj78 = new QuestStep(EInteractionType.AcceptQuest, 1042558u, new Vector3(33.066284f, -5.8859587E-07f, -2.2125854f), 963) { StopDistance = 5f }; - num4 = 1; - List list117 = new List(num4); - CollectionsMarshal.SetCount(list117, num4); - Span span117 = CollectionsMarshal.AsSpan(list117); - num5 = 0; - span117[num5] = new DialogueChoice + num3 = 1; + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + CollectionsMarshal.AsSpan(list117)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q6_000_000"), @@ -391098,8 +322046,7 @@ public static class AssemblyQuestLoader reference79 = obj78; obj77.Steps = list116; reference78 = obj77; - num++; - ref QuestSequence reference80 = ref span115[num]; + ref QuestSequence reference80 = ref span67[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -391107,73 +322054,55 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - num3 = 0; - span118[num3] = new QuestStep(EInteractionType.Interact, 1042560u, new Vector3(431.96765f, 3.1168795f, -250.5379f), 957) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1042560u, new Vector3(431.96765f, 3.1168795f, -250.5379f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj79.Steps = list118; reference80 = obj79; - num++; - ref QuestSequence reference81 = ref span115[num]; + ref QuestSequence reference81 = ref span67[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - num3 = 2; - List list119 = new List(num3); - CollectionsMarshal.SetCount(list119, num3); - Span span119 = CollectionsMarshal.AsSpan(list119); - num2 = 0; - ref QuestStep reference82 = ref span119[num2]; + num2 = 2; + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + Span span68 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference82 = ref span68[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1042564u, new Vector3(423.63623f, 3.1168795f, -273.8537f), 957); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list120; reference82 = questStep2; - num2++; - ref QuestStep reference83 = ref span119[num2]; + ref QuestStep reference83 = ref span68[1]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1042565u, new Vector3(393.14856f, 3.1164212f, -212.9397f), 957) { Fly = true }; - 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); + 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); obj81.CompletionQuestVariablesFlags = list121; reference83 = obj81; obj80.Steps = list119; reference81 = obj80; - num++; - ref QuestSequence reference84 = ref span115[num]; + ref QuestSequence reference84 = ref span67[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -391181,33 +322110,27 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - num3 = 0; - span122[num3] = new QuestStep(EInteractionType.Interact, 1042567u, new Vector3(374.80737f, 3.1168795f, -256.45844f), 957) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 1042567u, new Vector3(374.80737f, 3.1168795f, -256.45844f), 957) { Fly = true }; obj82.Steps = list122; reference84 = obj82; - num++; - ref QuestSequence reference85 = ref span115[num]; + ref QuestSequence reference85 = ref span67[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj83.Steps = list123; reference85 = obj83; - num++; - ref QuestSequence reference86 = ref span115[num]; + ref QuestSequence reference86 = ref span67[5]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -391215,19 +322138,15 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - num3 = 0; - ref QuestStep reference87 = ref span124[num3]; + ref QuestStep reference87 = ref CollectionsMarshal.AsSpan(list124)[0]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2013267u, new Vector3(205.70679f, 7.9193726f, -180.34644f), 957) { Fly = true }; - num5 = 1; - List list125 = new List(num5); - CollectionsMarshal.SetCount(list125, num5); - Span span125 = CollectionsMarshal.AsSpan(list125); - num4 = 0; - span125[num4] = new DialogueChoice + num3 = 1; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + CollectionsMarshal.AsSpan(list125)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q4_000_000"), @@ -391237,28 +322156,23 @@ public static class AssemblyQuestLoader reference87 = obj85; obj84.Steps = list124; reference86 = obj84; - num++; - ref QuestSequence reference88 = ref span115[num]; + ref QuestSequence reference88 = ref span67[6]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - num3 = 1; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - Span span126 = CollectionsMarshal.AsSpan(list126); - num2 = 0; - ref QuestStep reference89 = ref span126[num2]; + num2 = 1; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + ref QuestStep reference89 = ref CollectionsMarshal.AsSpan(list126)[0]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2013268u, new Vector3(36.209595f, 17.196838f, -232.68488f), 957) { Fly = true }; - num4 = 1; - List list127 = new List(num4); - CollectionsMarshal.SetCount(list127, num4); - Span span127 = CollectionsMarshal.AsSpan(list127); - num5 = 0; - span127[num5] = new DialogueChoice + num3 = 1; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + CollectionsMarshal.AsSpan(list127)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB831_04718_Q5_000_000"), @@ -391268,8 +322182,7 @@ public static class AssemblyQuestLoader reference89 = obj87; obj86.Steps = list126; reference88 = obj86; - num++; - ref QuestSequence reference90 = ref span115[num]; + ref QuestSequence reference90 = ref span67[7]; QuestSequence obj88 = new QuestSequence { Sequence = 7 @@ -391277,23 +322190,18 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = new QuestStep(EInteractionType.Interact, 2013269u, new Vector3(-13.565308f, 22.964722f, -346.7613f), 957); + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 2013269u, new Vector3(-13.565308f, 22.964722f, -346.7613f), 957); obj88.Steps = list128; reference90 = obj88; - num++; - ref QuestSequence reference91 = ref span115[num]; + ref QuestSequence reference91 = ref span67[8]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4719) @@ -391307,16 +322215,13 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot20.Author = list130; - index = 7; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference92 = ref span131[num]; + num = 7; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span71 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference92 = ref span71[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -391324,33 +322229,27 @@ public static class AssemblyQuestLoader num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - span132[num3] = new QuestStep(EInteractionType.AcceptQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042573u, new Vector3(565.91125f, 13.300535f, 242.48108f), 957) { StopDistance = 7f }; obj90.Steps = list132; reference92 = obj90; - num++; - ref QuestSequence reference93 = ref span131[num]; + ref QuestSequence reference93 = ref span71[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj91.Steps = list133; reference93 = obj91; - num++; - ref QuestSequence reference94 = ref span131[num]; + ref QuestSequence reference94 = ref span71[2]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -391358,33 +322257,27 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - num3 = 0; - span134[num3] = new QuestStep(EInteractionType.Interact, 1044752u, new Vector3(-432.02875f, 22.24389f, 507.53027f), 958) + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.Interact, 1044752u, new Vector3(-432.02875f, 22.24389f, 507.53027f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj92.Steps = list134; reference94 = obj92; - num++; - ref QuestSequence reference95 = ref span131[num]; + ref QuestSequence reference95 = ref span71[3]; QuestSequence obj93 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj93.Steps = list135; reference95 = obj93; - num++; - ref QuestSequence reference96 = ref span131[num]; + ref QuestSequence reference96 = ref span71[4]; QuestSequence obj94 = new QuestSequence { Sequence = 4 @@ -391392,34 +322285,28 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - num3 = 0; - span136[num3] = new QuestStep(EInteractionType.Interact, 2013272u, new Vector3(697.8712f, 30.105957f, -789.7612f), 958) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2013272u, new Vector3(697.8712f, 30.105957f, -789.7612f), 958) { Fly = true, AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj94.Steps = list136; reference96 = obj94; - num++; - ref QuestSequence reference97 = ref span131[num]; + ref QuestSequence reference97 = ref span71[5]; QuestSequence obj95 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj95.Steps = list137; reference97 = obj95; - num++; - ref QuestSequence reference98 = ref span131[num]; + ref QuestSequence reference98 = ref span71[6]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -391427,9 +322314,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num3 = 0; - span138[num3] = new QuestStep(EInteractionType.CompleteQuest, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { StopDistance = 5f, NextQuestId = new QuestId(4754) @@ -391443,26 +322328,21 @@ public static class AssemblyQuestLoader num = 1; List list139 = new List(num); CollectionsMarshal.SetCount(list139, num); - Span span139 = CollectionsMarshal.AsSpan(list139); - index = 0; - span139[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list139)[0] = "CryoTechnic"; questRoot21.Author = list139; - index = 4; - List list140 = new List(index); - CollectionsMarshal.SetCount(list140, index); - Span span140 = CollectionsMarshal.AsSpan(list140); - num = 0; - ref QuestSequence reference99 = ref span140[num]; + num = 4; + List list140 = new List(num); + CollectionsMarshal.SetCount(list140, num); + Span span72 = CollectionsMarshal.AsSpan(list140); + ref QuestSequence reference99 = ref span72[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -391473,8 +322353,7 @@ public static class AssemblyQuestLoader }; obj97.Steps = list141; reference99 = obj97; - num++; - ref QuestSequence reference100 = ref span140[num]; + ref QuestSequence reference100 = ref span72[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -391482,9 +322361,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - num3 = 0; - span142[num3] = new QuestStep(EInteractionType.Interact, 2013276u, new Vector3(-192.17715f, 35.999996f, 57.092976f), 963) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.Interact, 2013276u, new Vector3(-192.17715f, 35.999996f, 57.092976f), 963) { AethernetShortcut = new AethernetShortcut { @@ -391494,18 +322371,15 @@ public static class AssemblyQuestLoader }; obj98.Steps = list142; reference100 = obj98; - num++; - ref QuestSequence reference101 = ref span140[num]; + ref QuestSequence reference101 = ref span72[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -391524,8 +322398,7 @@ public static class AssemblyQuestLoader }; obj99.Steps = list143; reference101 = obj99; - num++; - ref QuestSequence reference102 = ref span140[num]; + ref QuestSequence reference102 = ref span72[3]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -391533,9 +322406,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - span144[num3] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -391553,26 +322424,21 @@ public static class AssemblyQuestLoader num = 1; List list145 = new List(num); CollectionsMarshal.SetCount(list145, num); - Span span145 = CollectionsMarshal.AsSpan(list145); - index = 0; - span145[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list145)[0] = "CryoTechnic"; questRoot22.Author = list145; - index = 3; - List list146 = new List(index); - CollectionsMarshal.SetCount(list146, index); - Span span146 = CollectionsMarshal.AsSpan(list146); - num = 0; - ref QuestSequence reference103 = ref span146[num]; + num = 3; + List list146 = new List(num); + CollectionsMarshal.SetCount(list146, num); + Span span73 = CollectionsMarshal.AsSpan(list146); + ref QuestSequence reference103 = ref span73[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -391583,8 +322449,7 @@ public static class AssemblyQuestLoader }; obj101.Steps = list147; reference103 = obj101; - num++; - ref QuestSequence reference104 = ref span146[num]; + ref QuestSequence reference104 = ref span73[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -391592,9 +322457,7 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - span148[num3] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -391613,18 +322476,15 @@ public static class AssemblyQuestLoader }; obj102.Steps = list148; reference104 = obj102; - num++; - ref QuestSequence reference105 = ref span146[num]; + ref QuestSequence reference105 = ref span73[2]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -391642,16 +322502,13 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot23.Author = list150; - index = 6; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference106 = ref span151[num]; + num = 6; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span74 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference106 = ref span74[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -391659,23 +322516,18 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj104.Steps = list152; reference106 = obj104; - num++; - ref QuestSequence reference107 = ref span151[num]; + ref QuestSequence reference107 = ref span74[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -391685,8 +322537,7 @@ public static class AssemblyQuestLoader }; obj105.Steps = list153; reference107 = obj105; - num++; - ref QuestSequence reference108 = ref span151[num]; + ref QuestSequence reference108 = ref span74[2]; QuestSequence obj106 = new QuestSequence { Sequence = 2 @@ -391694,23 +322545,19 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num3 = 0; - ref QuestStep reference109 = ref span154[num3]; + ref QuestStep reference109 = ref CollectionsMarshal.AsSpan(list154)[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2013349u, new Vector3(-53.87964f, 0.59503174f, -141.71057f), 963); - num5 = 2; - List list155 = new List(num5); - CollectionsMarshal.SetCount(list155, num5); - Span span155 = CollectionsMarshal.AsSpan(list155); - num4 = 0; - span155[num4] = new DialogueChoice + num3 = 2; + List list155 = new List(num3); + CollectionsMarshal.SetCount(list155, num3); + Span span75 = CollectionsMarshal.AsSpan(list155); + span75[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q1_000_000"), Answer = new ExcelRef("TEXT_AKTKMK101_04735_A1_000_003") }; - num4++; - span155[num4] = new DialogueChoice + span75[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q1_000_065") @@ -391719,25 +322566,21 @@ public static class AssemblyQuestLoader reference109 = questStep3; obj106.Steps = list154; reference108 = obj106; - num++; - ref QuestSequence reference110 = ref span151[num]; + ref QuestSequence reference110 = ref span74[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2003461u }; obj107.Steps = list156; reference110 = obj107; - num++; - ref QuestSequence reference111 = ref span151[num]; + ref QuestSequence reference111 = ref span74[4]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -391745,23 +322588,18 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = new QuestStep(EInteractionType.Interact, 1045395u, new Vector3(-21.713623f, 1.7999926f, -181.81128f), 963); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.Interact, 1045395u, new Vector3(-21.713623f, 1.7999926f, -181.81128f), 963); obj108.Steps = list157; reference111 = obj108; - num++; - ref QuestSequence reference112 = ref span151[num]; + ref QuestSequence reference112 = ref span74[5]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - num3 = 1; - List list158 = new List(num3); - CollectionsMarshal.SetCount(list158, num3); - Span span158 = CollectionsMarshal.AsSpan(list158); - num2 = 0; - ref QuestStep reference113 = ref span158[num2]; + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep obj110 = new QuestStep(EInteractionType.CompleteQuest, 1043847u, new Vector3(-350.24036f, 55f, -81.28485f), 963) { AethernetShortcut = new AethernetShortcut @@ -391770,12 +322608,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - num4 = 1; - List list159 = new List(num4); - CollectionsMarshal.SetCount(list159, num4); - Span span159 = CollectionsMarshal.AsSpan(list159); - num5 = 0; - span159[num5] = new DialogueChoice + num3 = 1; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + CollectionsMarshal.AsSpan(list159)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK101_04735_Q2_000_182") @@ -391791,16 +322627,13 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot24.Author = list160; - index = 10; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference114 = ref span161[num]; + num = 10; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span76 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference114 = ref span76[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -391808,29 +322641,24 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num3 = 0; - span162[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045397u, new Vector3(0.6560669f, 0.01927659f, 0.869751f), 1161); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045397u, new Vector3(0.6560669f, 0.01927659f, 0.869751f), 1161); obj111.Steps = list162; reference114 = obj111; - num++; - ref QuestSequence reference115 = ref span161[num]; + ref QuestSequence reference115 = ref span76[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4f, TargetTerritoryId = (ushort)963 }; - num2++; - span163[num2] = new QuestStep(EInteractionType.Interact, 1039602u, new Vector3(142.04614f, 4.783756f, -146.47144f), 963) + span77[1] = new QuestStep(EInteractionType.Interact, 1039602u, new Vector3(142.04614f, 4.783756f, -146.47144f), 963) { AethernetShortcut = new AethernetShortcut { @@ -391840,8 +322668,7 @@ public static class AssemblyQuestLoader }; obj112.Steps = list163; reference115 = obj112; - num++; - ref QuestSequence reference116 = ref span161[num]; + ref QuestSequence reference116 = ref span76[2]; QuestSequence obj113 = new QuestSequence { Sequence = 2 @@ -391849,9 +322676,7 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new QuestStep(EInteractionType.Interact, 1045401u, new Vector3(-144.45721f, 28.05f, 219.1958f), 963) + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.Interact, 1045401u, new Vector3(-144.45721f, 28.05f, 219.1958f), 963) { AethernetShortcut = new AethernetShortcut { @@ -391861,28 +322686,23 @@ public static class AssemblyQuestLoader }; obj113.Steps = list164; reference116 = obj113; - num++; - ref QuestSequence reference117 = ref span161[num]; + ref QuestSequence reference117 = ref span76[3]; QuestSequence obj114 = new QuestSequence { Sequence = 3 }; - num3 = 1; - List list165 = new List(num3); - CollectionsMarshal.SetCount(list165, num3); - Span span165 = CollectionsMarshal.AsSpan(list165); - num2 = 0; - ref QuestStep reference118 = ref span165[num2]; + num2 = 1; + List list165 = new List(num2); + CollectionsMarshal.SetCount(list165, num2); + ref QuestStep reference118 = ref CollectionsMarshal.AsSpan(list165)[0]; QuestStep obj115 = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 5f }; - num5 = 1; - List list166 = new List(num5); - CollectionsMarshal.SetCount(list166, num5); - Span span166 = CollectionsMarshal.AsSpan(list166); - num4 = 0; - span166[num4] = new DialogueChoice + num3 = 1; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK102_04736_Q2_000_094") @@ -391891,8 +322711,7 @@ public static class AssemblyQuestLoader reference118 = obj115; obj114.Steps = list165; reference117 = obj114; - num++; - ref QuestSequence reference119 = ref span161[num]; + ref QuestSequence reference119 = ref span76[4]; QuestSequence obj116 = new QuestSequence { Sequence = 4 @@ -391900,9 +322719,8 @@ public static class AssemblyQuestLoader num2 = 2; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - num3 = 0; - span167[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.0711417f, -28.723347f, -43.467506f), 956) + Span span78 = CollectionsMarshal.AsSpan(list167); + span78[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(6.0711417f, -28.723347f, -43.467506f), 956) { Mount = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -391914,32 +322732,27 @@ public static class AssemblyQuestLoader } } }; - num3++; - span167[num3] = new QuestStep(EInteractionType.Interact, 1045407u, new Vector3(-32.578064f, -29.530006f, -125.96332f), 956) + span78[1] = new QuestStep(EInteractionType.Interact, 1045407u, new Vector3(-32.578064f, -29.530006f, -125.96332f), 956) { Fly = true }; obj116.Steps = list167; reference119 = obj116; - num++; - ref QuestSequence reference120 = ref span161[num]; + ref QuestSequence reference120 = ref span76[5]; QuestSequence obj117 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj117.Steps = list168; reference120 = obj117; - num++; - ref QuestSequence reference121 = ref span161[num]; + ref QuestSequence reference121 = ref span76[6]; QuestSequence obj118 = new QuestSequence { Sequence = 6 @@ -391947,49 +322760,40 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - num3 = 0; - span169[num3] = new QuestStep(EInteractionType.Interact, 1045417u, new Vector3(135.9425f, -16.146997f, 236.22485f), 962) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1045417u, new Vector3(135.9425f, -16.146997f, 236.22485f), 962) { StopDistance = 5f }; obj118.Steps = list169; reference121 = obj118; - num++; - ref QuestSequence reference122 = ref span161[num]; + ref QuestSequence reference122 = ref span76[7]; QuestSequence obj119 = new QuestSequence { Sequence = 7 }; - num3 = 1; - List list170 = new List(num3); - CollectionsMarshal.SetCount(list170, num3); - Span span170 = CollectionsMarshal.AsSpan(list170); - num2 = 0; - ref QuestStep reference123 = ref span170[num2]; + num2 = 1; + List list170 = new List(num2); + CollectionsMarshal.SetCount(list170, num2); + ref QuestStep reference123 = ref CollectionsMarshal.AsSpan(list170)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Duty, null, null, 962); DutyOptions obj120 = new DutyOptions { ContentFinderConditionId = 822u }; - 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"; + num3 = 1; + List list171 = new List(num3); + CollectionsMarshal.SetCount(list171, num3); + CollectionsMarshal.AsSpan(list171)[0] = "Navigation issues for area transitions"; obj120.Notes = list171; questStep4.DutyOptions = obj120; reference123 = questStep4; obj119.Steps = list170; reference122 = obj119; - num++; - span161[num] = new QuestSequence + span76[8] = new QuestSequence { Sequence = 8 }; - num++; - ref QuestSequence reference124 = ref span161[num]; + ref QuestSequence reference124 = ref span76[9]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -391997,9 +322801,7 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - num3 = 0; - span172[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045420u, new Vector3(142.07666f, -16.147f, 235.70605f), 962) { StopDistance = 7f }; @@ -392012,33 +322814,27 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - Span span173 = CollectionsMarshal.AsSpan(list173); - index = 0; - span173[index] = "liza"; + CollectionsMarshal.AsSpan(list173)[0] = "liza"; questRoot25.Author = list173; - index = 5; - List list174 = new List(index); - CollectionsMarshal.SetCount(list174, index); - Span span174 = CollectionsMarshal.AsSpan(list174); - num = 0; - ref QuestSequence reference125 = ref span174[num]; + num = 5; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + Span span79 = CollectionsMarshal.AsSpan(list174); + ref QuestSequence reference125 = ref span79[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj122.Steps = list175; reference125 = obj122; - num++; - ref QuestSequence reference126 = ref span174[num]; + ref QuestSequence reference126 = ref span79[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -392046,34 +322842,28 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - num3 = 0; - span176[num3] = new QuestStep(EInteractionType.Interact, 1040824u, new Vector3(-334.4015f, 23.803606f, 404.9286f), 958) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1040824u, new Vector3(-334.4015f, 23.803606f, 404.9286f), 958) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj123.Steps = list176; reference126 = obj123; - num++; - ref QuestSequence reference127 = ref span174[num]; + ref QuestSequence reference127 = ref span79[2]; QuestSequence obj124 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj124.Steps = list177; reference127 = obj124; - num++; - ref QuestSequence reference128 = ref span174[num]; + ref QuestSequence reference128 = ref span79[3]; QuestSequence obj125 = new QuestSequence { Sequence = 3 @@ -392081,126 +322871,89 @@ public static class AssemblyQuestLoader num2 = 5; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - num3 = 0; - ref QuestStep reference129 = ref span178[num3]; + Span span80 = CollectionsMarshal.AsSpan(list178); + ref QuestStep reference129 = ref span80[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1045490u, new Vector3(523.24695f, -36.65f, -156.02356f), 958); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list179; reference129 = questStep5; - num3++; - ref QuestStep reference130 = ref span178[num3]; + ref QuestStep reference130 = ref span80[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1045491u, new Vector3(502.4032f, -36.65f, -178.27118f), 958); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list180; reference130 = questStep6; - num3++; - ref QuestStep reference131 = ref span178[num3]; + ref QuestStep reference131 = ref span80[2]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1037774u, new Vector3(518.181f, -36.65f, -212.14618f), 958); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list181; reference131 = questStep7; - num3++; - ref QuestStep reference132 = ref span178[num3]; + ref QuestStep reference132 = ref span80[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1045489u, new Vector3(549.2484f, -36.615707f, -213.18384f), 958); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list182; reference132 = questStep8; - num3++; - ref QuestStep reference133 = ref span178[num3]; + ref QuestStep reference133 = ref span80[4]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1037766u, new Vector3(545.3115f, -36.616177f, -265.00348f), 958); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list183; reference133 = questStep9; obj125.Steps = list178; reference128 = obj125; - num++; - ref QuestSequence reference134 = ref span174[num]; + ref QuestSequence reference134 = ref span79[4]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -392210,8 +322963,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span184[num2] = new QuestStep(EInteractionType.CompleteQuest, 1045430u, new Vector3(415.1521f, 15.558167f, -637.56775f), 958) + span86[1] = new QuestStep(EInteractionType.CompleteQuest, 1045430u, new Vector3(415.1521f, 15.558167f, -637.56775f), 958) { Fly = true }; @@ -392224,16 +322976,13 @@ public static class AssemblyQuestLoader num = 1; List list185 = new List(num); CollectionsMarshal.SetCount(list185, num); - Span span185 = CollectionsMarshal.AsSpan(list185); - index = 0; - span185[index] = "liza"; + CollectionsMarshal.AsSpan(list185)[0] = "liza"; questRoot26.Author = list185; - index = 7; - List list186 = new List(index); - CollectionsMarshal.SetCount(list186, index); - Span span186 = CollectionsMarshal.AsSpan(list186); - num = 0; - ref QuestSequence reference135 = ref span186[num]; + num = 7; + List list186 = new List(num); + CollectionsMarshal.SetCount(list186, num); + Span span87 = CollectionsMarshal.AsSpan(list186); + ref QuestSequence reference135 = ref span87[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -392241,34 +322990,28 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - num3 = 0; - span187[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045431u, new Vector3(413.4431f, 15.5581665f, -638.3002f), 958) + CollectionsMarshal.AsSpan(list187)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045431u, new Vector3(413.4431f, 15.5581665f, -638.3002f), 958) { StopDistance = 5f }; obj127.Steps = list187; reference135 = obj127; - num++; - ref QuestSequence reference136 = ref span186[num]; + ref QuestSequence reference136 = ref span87[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1160, Fly = true }; obj128.Steps = list188; reference136 = obj128; - num++; - ref QuestSequence reference137 = ref span186[num]; + ref QuestSequence reference137 = ref span87[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -392276,109 +323019,77 @@ public static class AssemblyQuestLoader num2 = 1; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - span189[num3] = new QuestStep(EInteractionType.Interact, 1045769u, new Vector3(10.421875f, 2.9999998f, 65.2323f), 1160); + CollectionsMarshal.AsSpan(list189)[0] = new QuestStep(EInteractionType.Interact, 1045769u, new Vector3(10.421875f, 2.9999998f, 65.2323f), 1160); obj129.Steps = list189; reference137 = obj129; - num++; - ref QuestSequence reference138 = ref span186[num]; + ref QuestSequence reference138 = ref span87[3]; QuestSequence obj130 = new QuestSequence { Sequence = 3 }; - num3 = 4; - List list190 = new List(num3); - CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - num2 = 0; - ref QuestStep reference139 = ref span190[num2]; + num2 = 4; + List list190 = new List(num2); + CollectionsMarshal.SetCount(list190, num2); + Span span88 = CollectionsMarshal.AsSpan(list190); + ref QuestStep reference139 = ref span88[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013351u, new Vector3(21.10321f, 3.8604736f, 67.063354f), 1160); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list191; reference139 = questStep10; - num2++; - ref QuestStep reference140 = ref span190[num2]; + ref QuestStep reference140 = ref span88[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1045493u, new Vector3(-10.635559f, 3f, 42.435303f), 1160); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list192; reference140 = questStep11; - num2++; - ref QuestStep reference141 = ref span190[num2]; + ref QuestStep reference141 = ref span88[2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2013350u, new Vector3(9.353699f, 3.5552979f, 26.382812f), 1160); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list193; reference141 = questStep12; - num2++; - ref QuestStep reference142 = ref span190[num2]; + ref QuestStep reference142 = ref span88[3]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1045492u, new Vector3(42.435303f, 3.1270661f, -9.353821f), 1160); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list194; reference142 = questStep13; obj130.Steps = list190; reference138 = obj130; - num++; - ref QuestSequence reference143 = ref span186[num]; + ref QuestSequence reference143 = ref span87[4]; QuestSequence obj131 = new QuestSequence { Sequence = 4 @@ -392386,31 +323097,25 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - span195[num3] = new QuestStep(EInteractionType.Interact, 1045439u, new Vector3(0.19836426f, 3f, -26.840637f), 1160); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.Interact, 1045439u, new Vector3(0.19836426f, 3f, -26.840637f), 1160); obj131.Steps = list195; reference143 = obj131; - num++; - ref QuestSequence reference144 = ref span186[num]; + ref QuestSequence reference144 = ref span87[5]; QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GarlemaldCampBrokenGlass }; obj132.Steps = list196; reference144 = obj132; - num++; - ref QuestSequence reference145 = ref span186[num]; + ref QuestSequence reference145 = ref span87[6]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue @@ -392418,9 +323123,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - num3 = 0; - span197[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045441u, new Vector3(507.43872f, -36.65f, -202.99078f), 958) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045441u, new Vector3(507.43872f, -36.65f, -202.99078f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; @@ -392433,33 +323136,27 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "liza"; + CollectionsMarshal.AsSpan(list198)[0] = "liza"; questRoot27.Author = list198; - index = 4; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference146 = ref span199[num]; + num = 4; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span93 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference146 = ref span93[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj134.Steps = list200; reference146 = obj134; - num++; - ref QuestSequence reference147 = ref span199[num]; + ref QuestSequence reference147 = ref span93[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 @@ -392467,9 +323164,8 @@ public static class AssemblyQuestLoader num2 = 2; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num3 = 0; - span201[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.4148f, 10.8f, -659.2858f), 958) + Span span94 = CollectionsMarshal.AsSpan(list201); + span94[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(252.4148f, 10.8f, -659.2858f), 958) { SkipConditions = new SkipConditions { @@ -392479,43 +323175,36 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference148 = ref span201[num3]; + ref QuestStep reference148 = ref span94[1]; QuestStep obj136 = new QuestStep(EInteractionType.Combat, null, new Vector3(-80.826256f, 10.8f, -663.8825f), 958) { StopDistance = 1f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list202 = new List(num4); - CollectionsMarshal.SetCount(list202, num4); - Span span202 = CollectionsMarshal.AsSpan(list202); - num5 = 0; - span202[num5] = 16332u; + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = 16332u; obj136.KillEnemyDataIds = list202; reference148 = obj136; obj135.Steps = list201; reference147 = obj135; - num++; - ref QuestSequence reference149 = ref span199[num]; + ref QuestSequence reference149 = ref span93[2]; QuestSequence obj137 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj137.Steps = list203; reference149 = obj137; - num++; - ref QuestSequence reference150 = ref span199[num]; + ref QuestSequence reference150 = ref span93[3]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -392523,9 +323212,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - span204[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045452u, new Vector3(283.8025f, 10.8f, -231.61676f), 958) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045452u, new Vector3(283.8025f, 10.8f, -231.61676f), 958) { StopDistance = 5f }; @@ -392538,33 +323225,27 @@ public static class AssemblyQuestLoader num = 1; List list205 = new List(num); CollectionsMarshal.SetCount(list205, num); - Span span205 = CollectionsMarshal.AsSpan(list205); - index = 0; - span205[index] = "liza"; + CollectionsMarshal.AsSpan(list205)[0] = "liza"; questRoot28.Author = list205; - index = 7; - List list206 = new List(index); - CollectionsMarshal.SetCount(list206, index); - Span span206 = CollectionsMarshal.AsSpan(list206); - num = 0; - ref QuestSequence reference151 = ref span206[num]; + num = 7; + List list206 = new List(num); + CollectionsMarshal.SetCount(list206, num); + Span span95 = CollectionsMarshal.AsSpan(list206); + ref QuestSequence reference151 = ref span95[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj139.Steps = list207; reference151 = obj139; - num++; - ref QuestSequence reference152 = ref span206[num]; + ref QuestSequence reference152 = ref span95[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -392572,34 +323253,28 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - num3 = 0; - span208[num3] = new QuestStep(EInteractionType.Interact, 1045456u, new Vector3(-541.9242f, 128.67758f, 585.1072f), 959) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.Interact, 1045456u, new Vector3(-541.9242f, 128.67758f, 585.1072f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj140.Steps = list208; reference152 = obj140; - num++; - ref QuestSequence reference153 = ref span206[num]; + ref QuestSequence reference153 = ref span95[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj141.Steps = list209; reference153 = obj141; - num++; - ref QuestSequence reference154 = ref span206[num]; + ref QuestSequence reference154 = ref span95[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 @@ -392607,9 +323282,8 @@ public static class AssemblyQuestLoader num2 = 3; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) + Span span96 = CollectionsMarshal.AsSpan(list210); + span96[0] = new QuestStep(EInteractionType.Interact, 2012664u, new Vector3(-26.901672f, -130.47992f, -580.4685f), 959) { TargetTerritoryId = (ushort)959, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -392621,8 +323295,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span210[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) + span96[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) { StopDistance = 1f, Fly = true, @@ -392634,32 +323307,27 @@ public static class AssemblyQuestLoader } } }; - num3++; - span210[num3] = new QuestStep(EInteractionType.Interact, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959) + span96[2] = new QuestStep(EInteractionType.Interact, 1039686u, new Vector3(-17.95996f, -47.192066f, -494.31604f), 959) { Fly = true }; obj142.Steps = list210; reference154 = obj142; - num++; - ref QuestSequence reference155 = ref span206[num]; + ref QuestSequence reference155 = ref span95[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj143.Steps = list211; reference155 = obj143; - num++; - ref QuestSequence reference156 = ref span206[num]; + ref QuestSequence reference156 = ref span95[5]; QuestSequence obj144 = new QuestSequence { Sequence = 5 @@ -392667,121 +323335,90 @@ public static class AssemblyQuestLoader num2 = 4; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - ref QuestStep reference157 = ref span212[num3]; + Span span97 = CollectionsMarshal.AsSpan(list212); + ref QuestStep reference157 = ref span97[0]; QuestStep obj145 = new QuestStep(EInteractionType.Emote, 1045471u, new Vector3(158.61743f, -49.589592f, -626.42865f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - 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); + 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); obj145.CompletionQuestVariablesFlags = list213; reference157 = obj145; - num3++; - ref QuestStep reference158 = ref span212[num3]; + ref QuestStep reference158 = ref span97[1]; QuestStep obj146 = new QuestStep(EInteractionType.Emote, 1045470u, new Vector3(154.7417f, -49.589596f, -622.3087f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - 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); + 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); obj146.CompletionQuestVariablesFlags = list214; reference158 = obj146; - num3++; - ref QuestStep reference159 = ref span212[num3]; + ref QuestStep reference159 = ref span97[2]; QuestStep obj147 = new QuestStep(EInteractionType.Emote, 1045472u, new Vector3(148.91272f, -49.589596f, -621.48474f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - 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); + 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); obj147.CompletionQuestVariablesFlags = list215; reference159 = obj147; - num3++; - ref QuestStep reference160 = ref span212[num3]; + ref QuestStep reference160 = ref span97[3]; QuestStep obj148 = new QuestStep(EInteractionType.Emote, 1045473u, new Vector3(152.42236f, -49.589592f, -614.8623f), 959) { StopDistance = 6f, Emote = EEmote.Rally }; - 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); + 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); obj148.CompletionQuestVariablesFlags = list216; reference160 = obj148; obj144.Steps = list212; reference156 = obj144; - num++; - ref QuestSequence reference161 = ref span206[num]; + ref QuestSequence reference161 = ref span95[6]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f }; @@ -392794,16 +323431,13 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot29.Author = list218; - index = 4; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference162 = ref span219[num]; + num = 4; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span102 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference162 = ref span102[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -392811,34 +323445,28 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - num3 = 0; - span220[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045611u, new Vector3(160.87585f, -49.589592f, -618.46344f), 959) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045611u, new Vector3(160.87585f, -49.589592f, -618.46344f), 959) { StopDistance = 7f }; obj150.Steps = list220; reference162 = obj150; - num++; - ref QuestSequence reference163 = ref span219[num]; + ref QuestSequence reference163 = ref span102[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj151.Steps = list221; reference163 = obj151; - num++; - ref QuestSequence reference164 = ref span219[num]; + ref QuestSequence reference164 = ref span102[2]; QuestSequence obj152 = new QuestSequence { Sequence = 2 @@ -392846,84 +323474,60 @@ public static class AssemblyQuestLoader num2 = 3; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - num3 = 0; - ref QuestStep reference165 = ref span222[num3]; + Span span103 = CollectionsMarshal.AsSpan(list222); + ref QuestStep reference165 = ref span103[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2013354u, new Vector3(-2.7314453f, 73.8689f, 638.0254f), 1162); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list223; reference165 = questStep14; - num3++; - ref QuestStep reference166 = ref span222[num3]; + ref QuestStep reference166 = ref span103[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013355u, new Vector3(-44.87683f, 66.57507f, 547.6615f), 1162); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list224; reference166 = questStep15; - num3++; - ref QuestStep reference167 = ref span222[num3]; + ref QuestStep reference167 = ref span103[2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2013356u, new Vector3(69.29114f, 56.71765f, 472.19043f), 1162); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list225; reference167 = questStep16; obj152.Steps = list222; reference164 = obj152; - num++; - ref QuestSequence reference168 = ref span219[num]; + ref QuestSequence reference168 = ref span102[3]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj153.Steps = list226; reference168 = obj153; questRoot29.QuestSequence = list219; @@ -392933,16 +323537,13 @@ public static class AssemblyQuestLoader num = 1; List list227 = new List(num); CollectionsMarshal.SetCount(list227, num); - Span span227 = CollectionsMarshal.AsSpan(list227); - index = 0; - span227[index] = "liza"; + CollectionsMarshal.AsSpan(list227)[0] = "liza"; questRoot30.Author = list227; - index = 5; - List list228 = new List(index); - CollectionsMarshal.SetCount(list228, index); - Span span228 = CollectionsMarshal.AsSpan(list228); - num = 0; - ref QuestSequence reference169 = ref span228[num]; + num = 5; + List list228 = new List(num); + CollectionsMarshal.SetCount(list228, num); + Span span107 = CollectionsMarshal.AsSpan(list228); + ref QuestSequence reference169 = ref span107[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -392950,30 +323551,24 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - num3 = 0; - span229[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045482u, new Vector3(17.135864f, 56.573345f, 436.0265f), 1162) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045482u, new Vector3(17.135864f, 56.573345f, 436.0265f), 1162) { StopDistance = 5f }; obj154.Steps = list229; reference169 = obj154; - num++; - ref QuestSequence reference170 = ref span228[num]; + ref QuestSequence reference170 = ref span107[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj155.Steps = list230; reference170 = obj155; - num++; - ref QuestSequence reference171 = ref span228[num]; + ref QuestSequence reference171 = ref span107[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -392981,9 +323576,7 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - num3 = 0; - span231[num3] = new QuestStep(EInteractionType.Duty, null, null, 1159) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Duty, null, null, 1159) { DutyOptions = new DutyOptions { @@ -392992,23 +323585,19 @@ public static class AssemblyQuestLoader }; obj156.Steps = list231; reference171 = obj156; - num++; - span228[num] = new QuestSequence + span107[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference172 = ref span228[num]; + ref QuestSequence reference172 = ref span107[4]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj157.Steps = list232; reference172 = obj157; questRoot30.QuestSequence = list228; @@ -393018,16 +323607,13 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "liza"; + CollectionsMarshal.AsSpan(list233)[0] = "liza"; questRoot31.Author = list233; - index = 4; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference173 = ref span234[num]; + num = 4; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span108 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference173 = ref span108[0]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -393035,26 +323621,22 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - num3 = 0; - span235[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045758u, new Vector3(-135.85114f, 54.977272f, 432.02856f), 959) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045758u, new Vector3(-135.85114f, 54.977272f, 432.02856f), 959) { StopDistance = 7f }; obj158.Steps = list235; reference173 = obj158; - num++; - ref QuestSequence reference174 = ref span234[num]; + ref QuestSequence reference174 = ref span108[1]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)959, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow, @@ -393066,8 +323648,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span236[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) + span109[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-19.779482f, -56.63768f, -464.9354f), 959) { StopDistance = 1f, Fly = true, @@ -393079,15 +323660,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span236[num2] = new QuestStep(EInteractionType.Interact, 1045466u, new Vector3(-20.126648f, -47.54357f, -491.99664f), 959) + span109[2] = new QuestStep(EInteractionType.Interact, 1045466u, new Vector3(-20.126648f, -47.54357f, -491.99664f), 959) { Fly = true }; obj159.Steps = list236; reference174 = obj159; - num++; - ref QuestSequence reference175 = ref span234[num]; + ref QuestSequence reference175 = ref span108[2]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -393095,9 +323674,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - num3 = 0; - ref QuestStep reference176 = ref span237[num3]; + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list237)[0]; QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -393107,12 +323684,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanMeghaduta } }; - num4 = 1; - List list238 = new List(num4); - CollectionsMarshal.SetCount(list238, num4); - Span span238 = CollectionsMarshal.AsSpan(list238); - num5 = 0; - span238[num5] = new DialogueChoice + num3 = 1; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + CollectionsMarshal.AsSpan(list238)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMK109_04743_Q1_000_000") @@ -393121,18 +323696,15 @@ public static class AssemblyQuestLoader reference176 = obj161; obj160.Steps = list237; reference175 = obj160; - num++; - ref QuestSequence reference177 = ref span234[num]; + ref QuestSequence reference177 = ref span108[3]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj162.Steps = list239; reference177 = obj162; questRoot31.QuestSequence = list234; @@ -393142,16 +323714,13 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - Span span240 = CollectionsMarshal.AsSpan(list240); - index = 0; - span240[index] = "liza"; + CollectionsMarshal.AsSpan(list240)[0] = "liza"; questRoot32.Author = list240; - index = 5; - List list241 = new List(index); - CollectionsMarshal.SetCount(list241, index); - Span span241 = CollectionsMarshal.AsSpan(list241); - num = 0; - ref QuestSequence reference178 = ref span241[num]; + num = 5; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + Span span110 = CollectionsMarshal.AsSpan(list241); + ref QuestSequence reference178 = ref span110[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 @@ -393159,30 +323728,24 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - num3 = 0; - span242[num3] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963); obj163.Steps = list242; reference178 = obj163; - num++; - ref QuestSequence reference179 = ref span241[num]; + ref QuestSequence reference179 = ref span110[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj164.Steps = list243; reference179 = obj164; - num++; - ref QuestSequence reference180 = ref span241[num]; + ref QuestSequence reference180 = ref span110[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 @@ -393190,9 +323753,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - num3 = 0; - span244[num3] = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1033908u, new Vector3(-63.61493f, -17.722f, -264.75934f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, AethernetShortcut = new AethernetShortcut @@ -393203,22 +323764,18 @@ public static class AssemblyQuestLoader }; obj165.Steps = list244; reference180 = obj165; - num++; - ref QuestSequence reference181 = ref span241[num]; + ref QuestSequence reference181 = ref span110[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj166.Steps = list245; reference181 = obj166; - num++; - ref QuestSequence reference182 = ref span241[num]; + ref QuestSequence reference182 = ref span110[4]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue @@ -393226,9 +323783,7 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num3 = 0; - span246[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045628u, new Vector3(24.2771f, 0f, 1.083313f), 819); + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045628u, new Vector3(24.2771f, 0f, 1.083313f), 819); obj167.Steps = list246; reference182 = obj167; questRoot32.QuestSequence = list241; @@ -393238,30 +323793,24 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "liza"; + CollectionsMarshal.AsSpan(list247)[0] = "liza"; questRoot33.Author = list247; - index = 6; - List list248 = new List(index); - CollectionsMarshal.SetCount(list248, index); - Span span248 = CollectionsMarshal.AsSpan(list248); - num = 0; - ref QuestSequence reference183 = ref span248[num]; + num = 6; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + Span span111 = CollectionsMarshal.AsSpan(list248); + ref QuestSequence reference183 = ref span111[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj168.Steps = list249; reference183 = obj168; - num++; - ref QuestSequence reference184 = ref span248[num]; + ref QuestSequence reference184 = ref span111[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 @@ -393269,30 +323818,24 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - num3 = 0; - span250[num3] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1045636u, new Vector3(27.939209f, 82.05f, -8.255188f), 820) { AetheryteShortcut = EAetheryteLocation.Eulmore }; obj169.Steps = list250; reference184 = obj169; - num++; - ref QuestSequence reference185 = ref span248[num]; + ref QuestSequence reference185 = ref span111[2]; QuestSequence obj170 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj170.Steps = list251; reference185 = obj170; - num++; - ref QuestSequence reference186 = ref span248[num]; + ref QuestSequence reference186 = ref span111[3]; QuestSequence obj171 = new QuestSequence { Sequence = 3 @@ -393300,30 +323843,22 @@ public static class AssemblyQuestLoader num2 = 3; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - num3 = 0; - ref QuestStep reference187 = ref span252[num3]; + Span span112 = CollectionsMarshal.AsSpan(list252); + ref QuestStep reference187 = ref span112[0]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1045635u, new Vector3(39.261353f, 83.001076f, -61.387024f), 820); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list253; reference187 = questStep17; - num3++; - ref QuestStep reference188 = ref span252[num3]; + ref QuestStep reference188 = ref span112[1]; QuestStep obj172 = new QuestStep(EInteractionType.Interact, 1045633u, new Vector3(14.755432f, 23.099987f, 11.520508f), 820) { AethernetShortcut = new AethernetShortcut @@ -393332,26 +323867,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreMainstay } }; - 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); + 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); obj172.CompletionQuestVariablesFlags = list254; reference188 = obj172; - num3++; - ref QuestStep reference189 = ref span252[num3]; + ref QuestStep reference189 = ref span112[2]; QuestStep obj173 = new QuestStep(EInteractionType.Interact, 1045634u, new Vector3(-93.40051f, -0.82003593f, 28.54956f), 820) { AethernetShortcut = new AethernetShortcut @@ -393360,38 +323888,29 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.EulmoreNightsoilPots } }; - 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); + 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); obj173.CompletionQuestVariablesFlags = list255; reference189 = obj173; obj171.Steps = list252; reference186 = obj171; - num++; - ref QuestSequence reference190 = ref span248[num]; + ref QuestSequence reference190 = ref span111[4]; QuestSequence obj174 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -393401,8 +323920,7 @@ public static class AssemblyQuestLoader }; obj174.Steps = list256; reference190 = obj174; - num++; - ref QuestSequence reference191 = ref span248[num]; + ref QuestSequence reference191 = ref span111[5]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue @@ -393410,9 +323928,7 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - num3 = 0; - span257[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045631u, new Vector3(29.709229f, 82.05f, -5.661133f), 820) { StopDistance = 7f }; @@ -393425,33 +323941,27 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "liza"; + CollectionsMarshal.AsSpan(list258)[0] = "liza"; questRoot34.Author = list258; - index = 7; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference192 = ref span259[num]; + num = 7; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span116 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference192 = ref span116[0]; QuestSequence obj176 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj176.Steps = list260; reference192 = obj176; - num++; - ref QuestSequence reference193 = ref span259[num]; + ref QuestSequence reference193 = ref span116[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 @@ -393459,26 +323969,21 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - num3 = 0; - span261[num3] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 1029197u, new Vector3(-87.87671f, -19.022131f, 298.20703f), 817) { AetheryteShortcut = EAetheryteLocation.RaktikaSlitherbough }; obj177.Steps = list261; reference193 = obj177; - num++; - ref QuestSequence reference194 = ref span259[num]; + ref QuestSequence reference194 = ref span116[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -393487,8 +323992,7 @@ public static class AssemblyQuestLoader }; obj178.Steps = list262; reference194 = obj178; - num++; - ref QuestSequence reference195 = ref span259[num]; + ref QuestSequence reference195 = ref span116[3]; QuestSequence obj179 = new QuestSequence { Sequence = 3 @@ -393496,27 +324000,21 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = new QuestStep(EInteractionType.Interact, 1027754u, new Vector3(-108.20172f, -19.684433f, 380.2395f), 817); + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1027754u, new Vector3(-108.20172f, -19.684433f, 380.2395f), 817); obj179.Steps = list263; reference195 = obj179; - num++; - ref QuestSequence reference196 = ref span259[num]; + ref QuestSequence reference196 = ref span116[4]; QuestSequence obj180 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj180.Steps = list264; reference196 = obj180; - num++; - ref QuestSequence reference197 = ref span259[num]; + ref QuestSequence reference197 = ref span116[5]; QuestSequence obj181 = new QuestSequence { Sequence = 5 @@ -393524,26 +324022,21 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - num3 = 0; - span265[num3] = new QuestStep(EInteractionType.Interact, 1045647u, new Vector3(-488.88385f, 45.58085f, -224.5976f), 815) + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Interact, 1045647u, new Vector3(-488.88385f, 45.58085f, -224.5976f), 815) { AetheryteShortcut = EAetheryteLocation.AmhAraengTwine }; obj181.Steps = list265; reference197 = obj181; - num++; - ref QuestSequence reference198 = ref span259[num]; + ref QuestSequence reference198 = ref span116[6]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj182.Steps = list266; reference198 = obj182; questRoot34.QuestSequence = list259; @@ -393553,16 +324046,13 @@ public static class AssemblyQuestLoader num = 1; List list267 = new List(num); CollectionsMarshal.SetCount(list267, num); - Span span267 = CollectionsMarshal.AsSpan(list267); - index = 0; - span267[index] = "liza"; + CollectionsMarshal.AsSpan(list267)[0] = "liza"; questRoot35.Author = list267; - index = 5; - List list268 = new List(index); - CollectionsMarshal.SetCount(list268, index); - Span span268 = CollectionsMarshal.AsSpan(list268); - num = 0; - ref QuestSequence reference199 = ref span268[num]; + num = 5; + List list268 = new List(num); + CollectionsMarshal.SetCount(list268, num); + Span span117 = CollectionsMarshal.AsSpan(list268); + ref QuestSequence reference199 = ref span117[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -393570,23 +324060,19 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - num3 = 0; - span269[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045649u, new Vector3(-205.95105f, -3.1999998f, -11.490112f), 819); + CollectionsMarshal.AsSpan(list269)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045649u, new Vector3(-205.95105f, -3.1999998f, -11.490112f), 819); obj183.Steps = list269; reference199 = obj183; - num++; - ref QuestSequence reference200 = ref span268[num]; + ref QuestSequence reference200 = ref span117[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)844, AethernetShortcut = new AethernetShortcut @@ -393595,12 +324081,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.CrystariumDossalGate } }; - num2++; - span270[num2] = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); + span118[1] = new QuestStep(EInteractionType.Interact, 1033888u, new Vector3(1.3580322f, 0f, -5.081299f), 844); obj184.Steps = list270; reference200 = obj184; - num++; - ref QuestSequence reference201 = ref span268[num]; + ref QuestSequence reference201 = ref span117[2]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -393608,9 +324092,7 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - num3 = 0; - span271[num3] = new QuestStep(EInteractionType.Interact, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + CollectionsMarshal.AsSpan(list271)[0] = new QuestStep(EInteractionType.Interact, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -393621,26 +324103,22 @@ public static class AssemblyQuestLoader }; obj185.Steps = list271; reference201 = obj185; - num++; - ref QuestSequence reference202 = ref span268[num]; + ref QuestSequence reference202 = ref span117[3]; QuestSequence obj186 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj186.Steps = list272; reference202 = obj186; - num++; - ref QuestSequence reference203 = ref span268[num]; + ref QuestSequence reference203 = ref span117[4]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -393648,9 +324126,7 @@ public static class AssemblyQuestLoader num2 = 1; List list273 = new List(num2); CollectionsMarshal.SetCount(list273, num2); - Span span273 = CollectionsMarshal.AsSpan(list273); - num3 = 0; - span273[num3] = new QuestStep(EInteractionType.CompleteQuest, 1045658u, new Vector3(40.634766f, 56.721893f, 465.7815f), 1162); + CollectionsMarshal.AsSpan(list273)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045658u, new Vector3(40.634766f, 56.721893f, 465.7815f), 1162); obj187.Steps = list273; reference203 = obj187; questRoot35.QuestSequence = list268; @@ -393660,33 +324136,27 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - Span span274 = CollectionsMarshal.AsSpan(list274); - index = 0; - span274[index] = "liza"; + CollectionsMarshal.AsSpan(list274)[0] = "liza"; questRoot36.Author = list274; - index = 8; - List list275 = new List(index); - CollectionsMarshal.SetCount(list275, index); - Span span275 = CollectionsMarshal.AsSpan(list275); - num = 0; - ref QuestSequence reference204 = ref span275[num]; + num = 8; + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + Span span119 = CollectionsMarshal.AsSpan(list275); + ref QuestSequence reference204 = ref span119[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 6f }; obj188.Steps = list276; reference204 = obj188; - num++; - ref QuestSequence reference205 = ref span275[num]; + ref QuestSequence reference205 = ref span119[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -393694,9 +324164,7 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - num3 = 0; - span277[num3] = new QuestStep(EInteractionType.Duty, null, null, 1162) + CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Duty, null, null, 1162) { DutyOptions = new DutyOptions { @@ -393706,30 +324174,24 @@ public static class AssemblyQuestLoader }; obj189.Steps = list277; reference205 = obj189; - num++; - span275[num] = new QuestSequence + span119[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference206 = ref span275[num]; + ref QuestSequence reference206 = ref span119[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - num3 = 1; - List list278 = new List(num3); - CollectionsMarshal.SetCount(list278, num3); - Span span278 = CollectionsMarshal.AsSpan(list278); - num2 = 0; - ref QuestStep reference207 = ref span278[num2]; + 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); - num4 = 1; - List list279 = new List(num4); - CollectionsMarshal.SetCount(list279, num4); - Span span279 = CollectionsMarshal.AsSpan(list279); - num5 = 0; - span279[num5] = new DialogueChoice + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKML105_04748_SYSTEM_000_406") @@ -393738,13 +324200,11 @@ public static class AssemblyQuestLoader reference207 = questStep18; obj190.Steps = list278; reference206 = obj190; - num++; - span275[num] = new QuestSequence + span119[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference208 = ref span275[num]; + ref QuestSequence reference208 = ref span119[5]; QuestSequence obj191 = new QuestSequence { Sequence = 5 @@ -393752,9 +324212,7 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - num3 = 0; - span280[num3] = new QuestStep(EInteractionType.Duty, null, null, 1181) + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 1181) { DutyOptions = new DutyOptions { @@ -393763,23 +324221,19 @@ public static class AssemblyQuestLoader }; obj191.Steps = list280; reference208 = obj191; - num++; - span275[num] = new QuestSequence + span119[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference209 = ref span275[num]; + ref QuestSequence reference209 = ref span119[7]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj192.Steps = list281; reference209 = obj192; questRoot36.QuestSequence = list275; @@ -393789,16 +324243,13 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - Span span282 = CollectionsMarshal.AsSpan(list282); - index = 0; - span282[index] = "liza"; + CollectionsMarshal.AsSpan(list282)[0] = "liza"; questRoot37.Author = list282; - index = 4; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - ref QuestSequence reference210 = ref span283[num]; + num = 4; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span120 = CollectionsMarshal.AsSpan(list283); + ref QuestSequence reference210 = ref span120[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -393806,30 +324257,24 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - num3 = 0; - span284[num3] = new QuestStep(EInteractionType.AcceptQuest, 1045674u, new Vector3(45.853394f, 56.66061f, 467.39905f), 1162) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045674u, new Vector3(45.853394f, 56.66061f, 467.39905f), 1162) { StopDistance = 15f }; obj193.Steps = list284; reference210 = obj193; - num++; - ref QuestSequence reference211 = ref span283[num]; + ref QuestSequence reference211 = ref span120[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj194.Steps = list285; reference211 = obj194; - num++; - ref QuestSequence reference212 = ref span283[num]; + ref QuestSequence reference212 = ref span120[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -393837,26 +324282,21 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - num3 = 0; - span286[num3] = new QuestStep(EInteractionType.Interact, 1042201u, new Vector3(536.2782f, -36.65f, -191.51605f), 958) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1042201u, new Vector3(536.2782f, -36.65f, -191.51605f), 958) { AetheryteShortcut = EAetheryteLocation.GarlemaldTertium }; obj195.Steps = list286; reference212 = obj195; - num++; - ref QuestSequence reference213 = ref span283[num]; + ref QuestSequence reference213 = ref span120[3]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -393878,16 +324318,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 7; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 7; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -393895,26 +324332,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045681u, new Vector3(5.8136597f, 41.530136f, -165.27051f), 962) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045681u, new Vector3(5.8136597f, 41.530136f, -165.27051f), 962) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 1; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + ref QuestStep reference3 = ref CollectionsMarshal.AsSpan(list4)[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1030533u, new Vector3(117.997925f, 14.649025f, 7.156433f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, @@ -393927,9 +324359,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list5)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKML107_04750_SYSTEM_000_101") @@ -393938,8 +324368,7 @@ public static class AssemblyQuestLoader reference3 = obj3; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -393947,30 +324376,24 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844); + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1045684u, new Vector3(-0.96136475f, 0f, -3.3417358f), 844); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -393978,9 +324401,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1039649u, new Vector3(-336.53772f, 55f, -69.47443f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -393991,22 +324412,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[6]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -394014,9 +324431,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.CompleteQuest, 1039645u, new Vector3(-338.33832f, 55f, -68.40625f), 963) { AethernetShortcut = new AethernetShortcut { @@ -394033,30 +324448,24 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list11)[0] = "liza"; questRoot2.Author = list11; - index = 3; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference9 = ref span12[num]; + num = 3; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span2 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference9 = ref span2[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span2[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -394064,9 +324473,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -394078,18 +324485,15 @@ public static class AssemblyQuestLoader }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span2[2]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -394106,16 +324510,13 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 6; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 6; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span3 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span3[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -394123,23 +324524,18 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045692u, new Vector3(-256.67206f, 19.26994f, -46.28064f), 962); + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045692u, new Vector3(-256.67206f, 19.26994f, -46.28064f), 962); obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span3[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list19 = new List(index2); - CollectionsMarshal.SetCount(list19, index2); - Span span19 = CollectionsMarshal.AsSpan(list19); - num2 = 0; - ref QuestStep reference14 = ref span19[num2]; + num2 = 1; + List list19 = new List(num2); + CollectionsMarshal.SetCount(list19, num2); + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list19)[0]; QuestStep obj14 = new QuestStep(EInteractionType.SinglePlayerDuty, 1045695u, new Vector3(135.57642f, -16.147f, 243.42712f), 962) { AethernetShortcut = new AethernetShortcut @@ -394149,26 +324545,22 @@ public static class AssemblyQuestLoader } }; SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list20; obj14.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference14 = obj14; obj13.Steps = list19; reference13 = obj13; - num++; - span17[num] = new QuestSequence + span3[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference15 = ref span17[num]; + ref QuestSequence reference15 = ref span3[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 @@ -394176,30 +324568,24 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.Interact, 1045696u, new Vector3(135.729f, -16.146997f, 241.50452f), 962); + CollectionsMarshal.AsSpan(list21)[0] = new QuestStep(EInteractionType.Interact, 1045696u, new Vector3(135.729f, -16.146997f, 241.50452f), 962); obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span17[num]; + ref QuestSequence reference16 = ref span3[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span17[num]; + ref QuestSequence reference17 = ref span3[5]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -394207,9 +324593,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045699u, new Vector3(-60.41046f, -15.127002f, 139.42163f), 962) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045699u, new Vector3(-60.41046f, -15.127002f, 139.42163f), 962) { StopDistance = 5f }; @@ -394222,26 +324606,21 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot4.Author = list24; - index = 7; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference18 = ref span25[num]; + num = 7; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span5 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference18 = ref span5[0]; QuestSequence obj18 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + ref QuestStep reference19 = ref CollectionsMarshal.AsSpan(list26)[0]; QuestStep obj19 = new QuestStep(EInteractionType.AcceptQuest, 1045700u, new Vector3(-58.54895f, -15.127001f, 139.45215f), 962) { StopDistance = 5f @@ -394249,9 +324628,7 @@ public static class AssemblyQuestLoader num3 = 1; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); - Span span27 = CollectionsMarshal.AsSpan(list27); - index3 = 0; - span27[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list27)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKMM103_04753_Q1_000_000"), @@ -394261,8 +324638,7 @@ public static class AssemblyQuestLoader reference19 = obj19; obj18.Steps = list26; reference18 = obj18; - num++; - ref QuestSequence reference20 = ref span25[num]; + ref QuestSequence reference20 = ref span5[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 @@ -394270,9 +324646,8 @@ public static class AssemblyQuestLoader num2 = 4; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - ref QuestStep reference21 = ref span28[index2]; + Span span6 = CollectionsMarshal.AsSpan(list28); + ref QuestStep reference21 = ref span6[0]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 2013419u, new Vector3(-308.49164f, 20.248657f, 48.142212f), 962) { AethernetShortcut = new AethernetShortcut @@ -394281,105 +324656,74 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanStudium } }; - 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); + 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); obj21.CompletionQuestVariablesFlags = list29; reference21 = obj21; - index2++; - ref QuestStep reference22 = ref span28[index2]; + ref QuestStep reference22 = ref span6[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list30; reference22 = questStep; - index2++; - ref QuestStep reference23 = ref span28[index2]; + ref QuestStep reference23 = ref span6[2]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2013417u, new Vector3(-404.25726f, 20.248657f, 59.00659f), 962); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list31; reference23 = questStep2; - index2++; - ref QuestStep reference24 = ref span28[index2]; + ref QuestStep reference24 = ref span6[3]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list32; reference24 = questStep3; obj20.Steps = list28; reference20 = obj20; - num++; - ref QuestSequence reference25 = ref span25[num]; + ref QuestSequence reference25 = ref span5[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj22.Steps = list33; reference25 = obj22; - num++; - ref QuestSequence reference26 = ref span25[num]; + ref QuestSequence reference26 = ref span5[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -394387,9 +324731,7 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1045702u, new Vector3(-131.15137f, 5.64997f, 44.663086f), 962) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1045702u, new Vector3(-131.15137f, 5.64997f, 44.663086f), 962) { AethernetShortcut = new AethernetShortcut { @@ -394399,25 +324741,20 @@ public static class AssemblyQuestLoader }; obj23.Steps = list34; reference26 = obj23; - num++; - ref QuestSequence reference27 = ref span25[num]; + ref QuestSequence reference27 = ref span5[4]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref QuestStep reference28 = ref span35[num2]; + num2 = 1; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list35)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1038588u, new Vector3(-101.76245f, 4.357494f, 0.7476196f), 962); - index3 = 1; - List list36 = new List(index3); - CollectionsMarshal.SetCount(list36, index3); - Span span36 = CollectionsMarshal.AsSpan(list36); - num3 = 0; - span36[num3] = new DialogueChoice + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKMM103_04753_SYSTEM_000_302") @@ -394426,8 +324763,7 @@ public static class AssemblyQuestLoader reference28 = questStep4; obj24.Steps = list35; reference27 = obj24; - num++; - ref QuestSequence reference29 = ref span25[num]; + ref QuestSequence reference29 = ref span5[5]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -394435,28 +324771,23 @@ public static class AssemblyQuestLoader num2 = 2; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - index2 = 0; - span37[index2] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) + Span span11 = CollectionsMarshal.AsSpan(list37); + span11[0] = new QuestStep(EInteractionType.Interact, 2011936u, new Vector3(-108.5617f, 5.0504f, 4.55803f), 962) { TargetTerritoryId = (ushort)987 }; - index2++; - span37[index2] = new QuestStep(EInteractionType.Interact, 2013420u, new Vector3(-0.10687256f, -0.015319824f, -7.614319f), 987); + span11[1] = new QuestStep(EInteractionType.Interact, 2013420u, new Vector3(-0.10687256f, -0.015319824f, -7.614319f), 987); obj25.Steps = list37; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span25[num]; + ref QuestSequence reference30 = ref span5[6]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -394469,16 +324800,13 @@ public static class AssemblyQuestLoader num = 1; List list39 = new List(num); CollectionsMarshal.SetCount(list39, num); - Span span39 = CollectionsMarshal.AsSpan(list39); - index = 0; - span39[index] = "liza"; + CollectionsMarshal.AsSpan(list39)[0] = "liza"; questRoot5.Author = list39; - index = 6; - List list40 = new List(index); - CollectionsMarshal.SetCount(list40, index); - Span span40 = CollectionsMarshal.AsSpan(list40); - num = 0; - ref QuestSequence reference31 = ref span40[num]; + num = 6; + List list40 = new List(num); + CollectionsMarshal.SetCount(list40, num); + Span span12 = CollectionsMarshal.AsSpan(list40); + ref QuestSequence reference31 = ref span12[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -394486,26 +324814,21 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963) { StopDistance = 5f }; obj27.Steps = list41; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span40[num]; + ref QuestSequence reference32 = ref span12[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -394515,8 +324838,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span40[num]; + ref QuestSequence reference33 = ref span12[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -394524,9 +324846,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - ref QuestStep reference34 = ref span43[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list43)[0]; QuestStep obj30 = new QuestStep(EInteractionType.Combat, null, new Vector3(31.966597f, 5.8818626f, 580.4358f), 957) { Fly = true, @@ -394536,9 +324856,7 @@ public static class AssemblyQuestLoader num3 = 1; List list44 = new List(num3); CollectionsMarshal.SetCount(list44, num3); - Span span44 = CollectionsMarshal.AsSpan(list44); - index3 = 0; - span44[index3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list44)[0] = new ComplexCombatData { DataId = 13527u, MinimumKillCount = 1u, @@ -394549,26 +324867,22 @@ public static class AssemblyQuestLoader reference34 = obj30; obj29.Steps = list43; reference33 = obj29; - num++; - ref QuestSequence reference35 = ref span40[num]; + ref QuestSequence reference35 = ref span12[3]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj31.Steps = list45; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span40[num]; + ref QuestSequence reference36 = ref span12[4]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -394576,26 +324890,21 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.Interact, 2013336u, new Vector3(-589.50183f, 2.2735596f, -285.42004f), 957) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.Interact, 2013336u, new Vector3(-589.50183f, 2.2735596f, -285.42004f), 957) { Fly = true }; obj32.Steps = list46; reference36 = obj32; - num++; - ref QuestSequence reference37 = ref span40[num]; + ref QuestSequence reference37 = ref span12[5]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -394614,16 +324923,13 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot6.Author = list48; - index = 8; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference38 = ref span49[num]; + num = 8; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span13 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference38 = ref span13[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -394631,9 +324937,7 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044783u, new Vector3(-313.4051f, 93.68002f, -316.7926f), 957) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044783u, new Vector3(-313.4051f, 93.68002f, -316.7926f), 957) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork, @@ -394647,28 +324951,23 @@ public static class AssemblyQuestLoader }; obj34.Steps = list50; reference38 = obj34; - num++; - ref QuestSequence reference39 = ref span49[num]; + ref QuestSequence reference39 = ref span13[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list51 = new List(index2); - CollectionsMarshal.SetCount(list51, index2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num2 = 0; - ref QuestStep reference40 = ref span51[num2]; + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref QuestStep reference40 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj36 = new QuestStep(EInteractionType.Interact, 1044788u, new Vector3(-42.191284f, 2.4950514f, -36.14868f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; - index3 = 1; - List list52 = new List(index3); - CollectionsMarshal.SetCount(list52, index3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = new DialogueChoice + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB842_04755_Q2_000_000"), @@ -394678,8 +324977,7 @@ public static class AssemblyQuestLoader reference40 = obj36; obj35.Steps = list51; reference39 = obj35; - num++; - ref QuestSequence reference41 = ref span49[num]; + ref QuestSequence reference41 = ref span13[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -394687,9 +324985,8 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1039544u, new Vector3(-29.617859f, 179.71387f, -826.2302f), 956) + Span span14 = CollectionsMarshal.AsSpan(list53); + span14[0] = new QuestStep(EInteractionType.Interact, 1039544u, new Vector3(-29.617859f, 179.71387f, -826.2302f), 956) { TargetTerritoryId = (ushort)962, AethernetShortcut = new AethernetShortcut @@ -394698,29 +324995,24 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.OldSharlayanHallOfArtifice } }; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1044794u, new Vector3(-63.09613f, 18f, -297.59674f), 962); + span14[1] = new QuestStep(EInteractionType.Interact, 1044794u, new Vector3(-63.09613f, 18f, -297.59674f), 962); obj37.Steps = list53; reference41 = obj37; - num++; - ref QuestSequence reference42 = ref span49[num]; + ref QuestSequence reference42 = ref span13[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosArcheion }; obj38.Steps = list54; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span49[num]; + ref QuestSequence reference43 = ref span13[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -394728,9 +325020,8 @@ public static class AssemblyQuestLoader num2 = 3; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference44 = ref span55[index2]; + Span span15 = CollectionsMarshal.AsSpan(list55); + ref QuestStep reference44 = ref span15[0]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1044805u, new Vector3(435.26355f, 65.16199f, -134.20312f), 956) { Fly = true @@ -394738,44 +325029,30 @@ public static class AssemblyQuestLoader num3 = 6; List list56 = new List(num3); CollectionsMarshal.SetCount(list56, num3); - 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); + 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); obj40.CompletionQuestVariablesFlags = list56; reference44 = obj40; - index2++; - ref QuestStep reference45 = ref span55[index2]; + ref QuestStep reference45 = ref span15[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1044806u, new Vector3(414.87744f, 65.16199f, -117.784424f), 956); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list57; reference45 = questStep5; - index2++; - ref QuestStep reference46 = ref span55[index2]; + ref QuestStep reference46 = ref span15[2]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1044807u, new Vector3(494.40747f, 65.16199f, -82.993835f), 956) { Fly = true @@ -394783,39 +325060,29 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - 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); + 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); obj41.CompletionQuestVariablesFlags = list58; reference46 = obj41; obj39.Steps = list55; reference43 = obj39; - num++; - ref QuestSequence reference47 = ref span49[num]; + ref QuestSequence reference47 = ref span13[5]; QuestSequence obj42 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj42.Steps = list59; reference47 = obj42; - num++; - ref QuestSequence reference48 = ref span49[num]; + ref QuestSequence reference48 = ref span13[6]; QuestSequence obj43 = new QuestSequence { Sequence = 6 @@ -394823,26 +325090,21 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1044765u, new Vector3(9.567322f, -6.762952E-05f, 17.715698f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj43.Steps = list60; reference48 = obj43; - num++; - ref QuestSequence reference49 = ref span49[num]; + ref QuestSequence reference49 = ref span13[7]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4799) }; @@ -394855,16 +325117,13 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "liza"; + CollectionsMarshal.AsSpan(list62)[0] = "liza"; questRoot7.Author = list62; - index = 4; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference50 = ref span63[num]; + num = 4; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span19 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference50 = ref span19[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -394872,9 +325131,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043504u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia, SkipConditions = new SkipConditions @@ -394887,37 +325144,31 @@ public static class AssemblyQuestLoader }; obj45.Steps = list64; reference50 = obj45; - num++; - ref QuestSequence reference51 = ref span63[num]; + ref QuestSequence reference51 = ref span19[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)956 }; - num2++; - span65[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + span20[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true }; - num2++; - span65[num2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) + span20[2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) { TargetTerritoryId = (ushort)1079 }; - num2++; - span65[num2] = new QuestStep(EInteractionType.Interact, 2013338u, new Vector3(18.753235f, 197.52808f, 519.06604f), 1079); + span20[3] = new QuestStep(EInteractionType.Interact, 2013338u, new Vector3(18.753235f, 197.52808f, 519.06604f), 1079); obj46.Steps = list65; reference51 = obj46; - num++; - ref QuestSequence reference52 = ref span63[num]; + ref QuestSequence reference52 = ref span19[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -394925,9 +325176,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.Duty, null, null, 1079) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.Duty, null, null, 1079) { DutyOptions = new DutyOptions { @@ -394936,18 +325185,15 @@ public static class AssemblyQuestLoader }; obj47.Steps = list66; reference52 = obj47; - num++; - ref QuestSequence reference53 = ref span63[num]; + ref QuestSequence reference53 = ref span19[3]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(4757) @@ -394961,16 +325207,13 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot8.Author = list68; - index = 5; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference54 = ref span69[num]; + num = 5; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span21 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference54 = ref span21[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -394978,35 +325221,28 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045335u, new Vector3(18.20398f, 197.41248f, 504.75305f), 1079) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045335u, new Vector3(18.20398f, 197.41248f, 504.75305f), 1079) { StopDistance = 4f }; obj49.Steps = list70; reference54 = obj49; - num++; - ref QuestSequence reference55 = ref span69[num]; + ref QuestSequence reference55 = ref span21[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj50.Steps = list71; reference55 = obj50; - num++; - span69[num] = new QuestSequence + span21[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference56 = ref span69[num]; + ref QuestSequence reference56 = ref span21[3]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -395014,9 +325250,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - span72[index2] = new QuestStep(EInteractionType.Duty, null, null, 1079) + CollectionsMarshal.AsSpan(list72)[0] = new QuestStep(EInteractionType.Duty, null, null, 1079) { DutyOptions = new DutyOptions { @@ -395025,18 +325259,15 @@ public static class AssemblyQuestLoader }; obj51.Steps = list72; reference56 = obj51; - num++; - ref QuestSequence reference57 = ref span69[num]; + ref QuestSequence reference57 = ref span21[4]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 4f, NextQuestId = new QuestId(4758) @@ -395050,16 +325281,13 @@ public static class AssemblyQuestLoader num = 1; List list74 = new List(num); CollectionsMarshal.SetCount(list74, num); - Span span74 = CollectionsMarshal.AsSpan(list74); - index = 0; - span74[index] = "liza"; + CollectionsMarshal.AsSpan(list74)[0] = "liza"; questRoot9.Author = list74; - index = 3; - List list75 = new List(index); - CollectionsMarshal.SetCount(list75, index); - Span span75 = CollectionsMarshal.AsSpan(list75); - num = 0; - ref QuestSequence reference58 = ref span75[num]; + num = 3; + List list75 = new List(num); + CollectionsMarshal.SetCount(list75, num); + Span span22 = CollectionsMarshal.AsSpan(list75); + ref QuestSequence reference58 = ref span22[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 @@ -395067,26 +325295,21 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045347u, new Vector3(98.98523f, 0f, 103.74609f), 1158) { StopDistance = 4f }; obj53.Steps = list76; reference58 = obj53; - num++; - ref QuestSequence reference59 = ref span75[num]; + ref QuestSequence reference59 = ref span22[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Duty, null, null, 1158) { DutyOptions = new DutyOptions { @@ -395095,8 +325318,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list77; reference59 = obj54; - num++; - ref QuestSequence reference60 = ref span75[num]; + ref QuestSequence reference60 = ref span22[2]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -395104,9 +325326,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045348u, new Vector3(99.90076f, 0f, 104.478516f), 1158) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045348u, new Vector3(99.90076f, 0f, 104.478516f), 1158) { NextQuestId = new QuestId(4759) }; @@ -395119,30 +325339,24 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot10.Author = list79; - index = 3; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference61 = ref span80[num]; + num = 3; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span23 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference61 = ref span23[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj56.Steps = list81; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span80[num]; + ref QuestSequence reference62 = ref span23[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -395150,9 +325364,7 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Duty, null, null, 1158) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Duty, null, null, 1158) { DutyOptions = new DutyOptions { @@ -395161,18 +325373,15 @@ public static class AssemblyQuestLoader }; obj57.Steps = list82; reference62 = obj57; - num++; - ref QuestSequence reference63 = ref span80[num]; + ref QuestSequence reference63 = ref span23[2]; QuestSequence obj58 = 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, 1045357u, new Vector3(28.610596f, 197.55505f, 509.72766f), 1079) + 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) { StopDistance = 5f, NextQuestId = new QuestId(4760) @@ -395186,16 +325395,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "liza"; + CollectionsMarshal.AsSpan(list84)[0] = "liza"; questRoot11.Author = list84; - index = 5; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference64 = ref span85[num]; + num = 5; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span24 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference64 = ref span24[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -395203,46 +325409,38 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045356u, new Vector3(28.42749f, 197.55338f, 508.23218f), 1079) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045356u, new Vector3(28.42749f, 197.55338f, 508.23218f), 1079) { StopDistance = 4f }; obj59.Steps = list86; reference64 = obj59; - num++; - ref QuestSequence reference65 = ref span85[num]; + ref QuestSequence reference65 = ref span24[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) + span25[1] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) { TargetTerritoryId = (ushort)1025 }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Interact, 2013031u, new Vector3(99.96179f, 8.8349f, -71.03082f), 1025) + span25[2] = new QuestStep(EInteractionType.Interact, 2013031u, new Vector3(99.96179f, 8.8349f, -71.03082f), 1025) { TargetTerritoryId = (ushort)1093 }; - num2++; - span87[num2] = new QuestStep(EInteractionType.Interact, 1045364u, new Vector3(96.36072f, -4.5494874E-13f, 85.43518f), 1093); + span25[3] = new QuestStep(EInteractionType.Interact, 1045364u, new Vector3(96.36072f, -4.5494874E-13f, 85.43518f), 1093); obj60.Steps = list87; reference65 = obj60; - num++; - ref QuestSequence reference66 = ref span85[num]; + ref QuestSequence reference66 = ref span24[2]; QuestSequence obj61 = new QuestSequence { Sequence = 2 @@ -395250,38 +325448,31 @@ public static class AssemblyQuestLoader num2 = 3; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) + Span span26 = CollectionsMarshal.AsSpan(list88); + span26[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.53903f, -220.1193f, 301.76364f), 956) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; - index2++; - span88[index2] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) + span26[1] = new QuestStep(EInteractionType.Interact, 2013029u, new Vector3(-238.97156f, -220.41656f, 340.6272f), 956) { TargetTerritoryId = (ushort)1079 }; - index2++; - span88[index2] = new QuestStep(EInteractionType.Interact, 1045371u, new Vector3(29.404175f, 197.55386f, 508.8424f), 1079); + span26[2] = new QuestStep(EInteractionType.Interact, 1045371u, new Vector3(29.404175f, 197.55386f, 508.8424f), 1079); obj61.Steps = list88; reference66 = obj61; - num++; - ref QuestSequence reference67 = ref span85[num]; + ref QuestSequence reference67 = ref span24[3]; QuestSequence obj62 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj62.Steps = list89; reference67 = obj62; - num++; - ref QuestSequence reference68 = ref span85[num]; + ref QuestSequence reference68 = ref span24[4]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -395289,9 +325480,7 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.CompleteQuest, 1045332u, new Vector3(-639.704f, -27.177149f, 301.9912f), 956) { NextQuestId = new QuestId(5252) }; @@ -395304,26 +325493,21 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "liza"; + CollectionsMarshal.AsSpan(list91)[0] = "liza"; questRoot12.Author = list91; - index = 5; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference69 = ref span92[num]; + num = 5; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span27 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference69 = ref span27[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -395336,8 +325520,7 @@ public static class AssemblyQuestLoader }; obj64.Steps = list93; reference69 = obj64; - num++; - ref QuestSequence reference70 = ref span92[num]; + ref QuestSequence reference70 = ref span27[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -395345,23 +325528,19 @@ public static class AssemblyQuestLoader num2 = 2; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.Interact, 1033637u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) + Span span28 = CollectionsMarshal.AsSpan(list94); + span28[0] = new QuestStep(EInteractionType.Interact, 1033637u, new Vector3(-533.4402f, 8.187748f, -46.341675f), 621) { TargetTerritoryId = (ushort)919, Fly = true, AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; - index2++; - ref QuestStep reference71 = ref span94[index2]; + ref QuestStep reference71 = ref span28[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919); - index3 = 1; - List list95 = new List(index3); - CollectionsMarshal.SetCount(list95, index3); - Span span95 = CollectionsMarshal.AsSpan(list95); - num3 = 0; - span95[num3] = new DialogueChoice + num3 = 1; + List list95 = new List(num3); + CollectionsMarshal.SetCount(list95, num3); + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_Q2_000_000"), @@ -395371,18 +325550,15 @@ public static class AssemblyQuestLoader reference71 = questStep6; obj65.Steps = list94; reference70 = obj65; - num++; - ref QuestSequence reference72 = ref span92[num]; + ref QuestSequence reference72 = ref span27[2]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list96 = new List(index2); - CollectionsMarshal.SetCount(list96, index2); - Span span96 = CollectionsMarshal.AsSpan(list96); - num2 = 0; - ref QuestStep reference73 = ref span96[num2]; + num2 = 1; + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1045296u, new Vector3(-1.1750488f, 41.01997f, 30.289062f), 919) { StopDistance = 7f @@ -395390,9 +325566,7 @@ public static class AssemblyQuestLoader num3 = 1; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - Span span97 = CollectionsMarshal.AsSpan(list97); - index3 = 0; - span97[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list97)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_Q5_000_000") @@ -395401,8 +325575,7 @@ public static class AssemblyQuestLoader reference73 = obj67; obj66.Steps = list96; reference72 = obj66; - num++; - ref QuestSequence reference74 = ref span92[num]; + ref QuestSequence reference74 = ref span27[3]; QuestSequence obj68 = new QuestSequence { Sequence = 3 @@ -395410,20 +325583,16 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - ref QuestStep reference75 = ref span98[index2]; + ref QuestStep reference75 = ref CollectionsMarshal.AsSpan(list98)[0]; 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" }; - index3 = 1; - List list99 = new List(index3); - CollectionsMarshal.SetCount(list99, index3); - Span span99 = CollectionsMarshal.AsSpan(list99); - num3 = 0; - span99[num3] = new DialogueChoice + num3 = 1; + List list99 = new List(num3); + CollectionsMarshal.SetCount(list99, num3); + CollectionsMarshal.AsSpan(list99)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKSA401_04761_SYSTEM_100_076") @@ -395432,18 +325601,15 @@ public static class AssemblyQuestLoader reference75 = obj69; obj68.Steps = list98; reference74 = obj68; - num++; - ref QuestSequence reference76 = ref span92[num]; + ref QuestSequence reference76 = ref span27[4]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4762) @@ -395457,16 +325623,13 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot13.Author = list101; - index = 6; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference77 = ref span102[num]; + num = 6; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span29 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference77 = ref span29[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -395474,9 +325637,7 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - ref QuestStep reference78 = ref span103[index2]; + ref QuestStep reference78 = ref CollectionsMarshal.AsSpan(list103)[0]; QuestStep obj72 = new QuestStep(EInteractionType.AcceptQuest, 1033629u, new Vector3(-0.3204956f, 41f, 17.56311f), 919) { StopDistance = 7f @@ -395484,9 +325645,7 @@ public static class AssemblyQuestLoader num3 = 1; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - Span span104 = CollectionsMarshal.AsSpan(list104); - index3 = 0; - span104[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list104)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_AKTKSA402_04762_Q1_000_000"), @@ -395496,22 +325655,18 @@ public static class AssemblyQuestLoader reference78 = obj72; obj71.Steps = list103; reference77 = obj71; - num++; - ref QuestSequence reference79 = ref span102[num]; + ref QuestSequence reference79 = ref span29[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj73.Steps = list105; reference79 = obj73; - num++; - ref QuestSequence reference80 = ref span102[num]; + ref QuestSequence reference80 = ref span29[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -395519,69 +325674,50 @@ public static class AssemblyQuestLoader num2 = 3; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - Span span106 = CollectionsMarshal.AsSpan(list106); - index2 = 0; - ref QuestStep reference81 = ref span106[index2]; + Span span30 = CollectionsMarshal.AsSpan(list106); + ref QuestStep reference81 = ref span30[0]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1045308u, new Vector3(-18.35669f, 40.999996f, -17.898865f), 919); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list107; reference81 = questStep7; - index2++; - span106[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.634434f, 41f, 13.581184f), 919); - index2++; - ref QuestStep reference82 = ref span106[index2]; + span30[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.634434f, 41f, 13.581184f), 919); + ref QuestStep reference82 = ref span30[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list108; reference82 = questStep8; obj74.Steps = list106; reference80 = obj74; - num++; - ref QuestSequence reference83 = ref span102[num]; + ref QuestSequence reference83 = ref span29[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj75.Steps = list109; reference83 = obj75; - num++; - ref QuestSequence reference84 = ref span102[num]; + ref QuestSequence reference84 = ref span29[4]; QuestSequence obj76 = new QuestSequence { Sequence = 4 @@ -395589,26 +325725,21 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.Interact, 1045614u, new Vector3(53.116577f, 34.999966f, 78.01941f), 919) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.Interact, 1045614u, new Vector3(53.116577f, 34.999966f, 78.01941f), 919) { StopDistance = 7f }; obj76.Steps = list110; reference84 = obj76; - num++; - ref QuestSequence reference85 = ref span102[num]; + ref QuestSequence reference85 = ref span29[5]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, NextQuestId = new QuestId(4812) @@ -395622,16 +325753,13 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list112)[0] = "CryoTechnic"; questRoot14.Author = list112; - index = 3; - List list113 = new List(index); - CollectionsMarshal.SetCount(list113, index); - Span span113 = CollectionsMarshal.AsSpan(list113); - num = 0; - ref QuestSequence reference86 = ref span113[num]; + num = 3; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + Span span33 = CollectionsMarshal.AsSpan(list113); + ref QuestSequence reference86 = ref span33[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -395639,27 +325767,21 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); obj78.Steps = list114; reference86 = obj78; - num++; - ref QuestSequence reference87 = ref span113[num]; + ref QuestSequence reference87 = ref span33[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj79.Steps = list115; reference87 = obj79; - num++; - ref QuestSequence reference88 = ref span113[num]; + ref QuestSequence reference88 = ref span33[2]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue @@ -395667,9 +325789,7 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.CompleteQuest, 1000909u, new Vector3(-326.37524f, 12.899658f, 9.994568f), 129); obj80.Steps = list116; reference88 = obj80; questRoot14.QuestSequence = list113; @@ -395679,26 +325799,21 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list117)[0] = "CryoTechnic"; questRoot15.Author = list117; - index = 4; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference89 = ref span118[num]; + num = 4; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span34 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference89 = ref span34[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -395709,8 +325824,7 @@ public static class AssemblyQuestLoader }; obj81.Steps = list119; reference89 = obj81; - num++; - ref QuestSequence reference90 = ref span118[num]; + ref QuestSequence reference90 = ref span34[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 @@ -395718,9 +325832,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.Interact, 2013384u, new Vector3(-23.036152f, 1.510001f, -192.78279f), 963) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.Interact, 2013384u, new Vector3(-23.036152f, 1.510001f, -192.78279f), 963) { AethernetShortcut = new AethernetShortcut { @@ -395730,18 +325842,15 @@ public static class AssemblyQuestLoader }; obj82.Steps = list120; reference90 = obj82; - num++; - ref QuestSequence reference91 = ref span118[num]; + ref QuestSequence reference91 = ref span34[2]; QuestSequence obj83 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -395760,8 +325869,7 @@ public static class AssemblyQuestLoader }; obj83.Steps = list121; reference91 = obj83; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span34[3]; QuestSequence obj84 = new QuestSequence { Sequence = byte.MaxValue @@ -395769,9 +325877,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -395789,26 +325895,21 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list123)[0] = "CryoTechnic"; questRoot16.Author = list123; - index = 3; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference93 = ref span124[num]; + num = 3; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span35 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference93 = ref span35[0]; QuestSequence obj85 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -395819,8 +325920,7 @@ public static class AssemblyQuestLoader }; obj85.Steps = list125; reference93 = obj85; - num++; - ref QuestSequence reference94 = ref span124[num]; + ref QuestSequence reference94 = ref span35[1]; QuestSequence obj86 = new QuestSequence { Sequence = 1 @@ -395828,9 +325928,7 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -395849,18 +325947,15 @@ public static class AssemblyQuestLoader }; obj86.Steps = list126; reference94 = obj86; - num++; - ref QuestSequence reference95 = ref span124[num]; + ref QuestSequence reference95 = ref span35[2]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -395878,16 +325973,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "pot0to"; + CollectionsMarshal.AsSpan(list128)[0] = "pot0to"; questRoot17.Author = list128; - index = 3; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference96 = ref span129[num]; + num = 3; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span36 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference96 = ref span36[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -395895,9 +325987,7 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - ref QuestStep reference97 = ref span130[index2]; + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list130)[0]; QuestStep obj89 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -395913,38 +326003,31 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list131 = new List(index3); - CollectionsMarshal.SetCount(list131, index3); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - span131[num3] = 131; + num3 = 1; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + CollectionsMarshal.AsSpan(list131)[0] = 131; obj90.InTerritory = list131; skipConditions.AetheryteShortcutIf = obj90; obj89.SkipConditions = skipConditions; reference97 = obj89; obj88.Steps = list130; reference96 = obj88; - num++; - ref QuestSequence reference98 = ref span129[num]; + ref QuestSequence reference98 = ref span36[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj91.Steps = list132; reference98 = obj91; - num++; - ref QuestSequence reference99 = ref span129[num]; + ref QuestSequence reference99 = ref span36[2]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -395952,9 +326035,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026937u, new Vector3(65.7511f, 14.005002f, 90.440186f), 131) { NextQuestId = new QuestId(4774) }; @@ -395967,26 +326048,21 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "liza"; + CollectionsMarshal.AsSpan(list134)[0] = "liza"; questRoot18.Author = list134; - index = 8; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference100 = ref span135[num]; + num = 8; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span38 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference100 = ref span38[0]; QuestSequence obj93 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list136)[0]; QuestStep obj94 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -396004,17 +326080,14 @@ public static class AssemblyQuestLoader num3 = 1; List list137 = new List(num3); CollectionsMarshal.SetCount(list137, num3); - Span span137 = CollectionsMarshal.AsSpan(list137); - index3 = 0; - span137[index3] = 131; + CollectionsMarshal.AsSpan(list137)[0] = 131; obj95.InTerritory = list137; skipConditions2.AetheryteShortcutIf = obj95; obj94.SkipConditions = skipConditions2; reference101 = obj94; obj93.Steps = list136; reference100 = obj93; - num++; - ref QuestSequence reference102 = ref span135[num]; + ref QuestSequence reference102 = ref span38[1]; QuestSequence obj96 = new QuestSequence { Sequence = 1 @@ -396022,9 +326095,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 1045582u, new Vector3(-344.53345f, -2.3744698f, 16.494995f), 129) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1045582u, new Vector3(-344.53345f, -2.3744698f, 16.494995f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -396035,18 +326106,15 @@ public static class AssemblyQuestLoader }; obj96.Steps = list138; reference102 = obj96; - num++; - ref QuestSequence reference103 = ref span135[num]; + ref QuestSequence reference103 = ref span38[2]; QuestSequence obj97 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -396056,8 +326124,7 @@ public static class AssemblyQuestLoader }; obj97.Steps = list139; reference103 = obj97; - num++; - ref QuestSequence reference104 = ref span135[num]; + ref QuestSequence reference104 = ref span38[3]; QuestSequence obj98 = new QuestSequence { Sequence = 3 @@ -396065,74 +326132,54 @@ public static class AssemblyQuestLoader num2 = 4; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - ref QuestStep reference105 = ref span140[index2]; + Span span39 = CollectionsMarshal.AsSpan(list140); + ref QuestStep reference105 = ref span39[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1045585u, new Vector3(-269.3675f, 7.352252f, 201.43433f), 129); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list141; reference105 = questStep9; - 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) + 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) { DisableNavmesh = true }; - index2++; - ref QuestStep reference106 = ref span140[index2]; + ref QuestStep reference106 = ref span39[3]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list142; reference106 = questStep10; obj98.Steps = list140; reference104 = obj98; - num++; - ref QuestSequence reference107 = ref span135[num]; + ref QuestSequence reference107 = ref span38[4]; QuestSequence obj99 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj99.Steps = list143; reference107 = obj99; - num++; - ref QuestSequence reference108 = ref span135[num]; + ref QuestSequence reference108 = ref span38[5]; QuestSequence obj100 = new QuestSequence { Sequence = 5 @@ -396140,9 +326187,7 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - span144[index2] = new QuestStep(EInteractionType.Interact, 1045587u, new Vector3(-3.7995605f, 39.999966f, 36.697876f), 128) + CollectionsMarshal.AsSpan(list144)[0] = new QuestStep(EInteractionType.Interact, 1045587u, new Vector3(-3.7995605f, 39.999966f, 36.697876f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -396153,18 +326198,15 @@ public static class AssemblyQuestLoader }; obj100.Steps = list144; reference108 = obj100; - num++; - ref QuestSequence reference109 = ref span135[num]; + ref QuestSequence reference109 = ref span38[6]; QuestSequence obj101 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -396175,8 +326217,7 @@ public static class AssemblyQuestLoader }; obj101.Steps = list145; reference109 = obj101; - num++; - ref QuestSequence reference110 = ref span135[num]; + ref QuestSequence reference110 = ref span38[7]; QuestSequence obj102 = new QuestSequence { Sequence = byte.MaxValue @@ -396184,9 +326225,7 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -396205,26 +326244,21 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span147 = CollectionsMarshal.AsSpan(list147); - index = 0; - span147[index] = "liza"; + CollectionsMarshal.AsSpan(list147)[0] = "liza"; questRoot19.Author = list147; - index = 6; - List list148 = new List(index); - CollectionsMarshal.SetCount(list148, index); - Span span148 = CollectionsMarshal.AsSpan(list148); - num = 0; - ref QuestSequence reference111 = ref span148[num]; + num = 6; + List list148 = new List(num); + CollectionsMarshal.SetCount(list148, num); + Span span42 = CollectionsMarshal.AsSpan(list148); + ref QuestSequence reference111 = ref span42[0]; QuestSequence obj103 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list149)[0]; QuestStep obj104 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -396239,20 +326273,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list150 = new List(index3); - CollectionsMarshal.SetCount(list150, index3); - Span span150 = CollectionsMarshal.AsSpan(list150); - num3 = 0; - span150[num3] = 131; + num3 = 1; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + CollectionsMarshal.AsSpan(list150)[0] = 131; obj105.InTerritory = list150; skipConditions3.AetheryteShortcutIf = obj105; obj104.SkipConditions = skipConditions3; reference112 = obj104; obj103.Steps = list149; reference111 = obj103; - num++; - ref QuestSequence reference113 = ref span148[num]; + ref QuestSequence reference113 = ref span42[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -396260,33 +326291,27 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1045603u, new Vector3(56.198975f, -8.45414f, 99.22937f), 132) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1045603u, new Vector3(56.198975f, -8.45414f, 99.22937f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj106.Steps = list151; reference113 = obj106; - num++; - ref QuestSequence reference114 = ref span148[num]; + ref QuestSequence reference114 = ref span42[2]; QuestSequence obj107 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; obj107.Steps = list152; reference114 = obj107; - num++; - ref QuestSequence reference115 = ref span148[num]; + ref QuestSequence reference115 = ref span42[3]; QuestSequence obj108 = new QuestSequence { Sequence = 3 @@ -396294,33 +326319,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 2013282u, new Vector3(190.1731f, -8.529846f, -44.35797f), 148) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 2013282u, new Vector3(190.1731f, -8.529846f, -44.35797f), 148) { Fly = true }; obj108.Steps = list153; reference115 = obj108; - num++; - ref QuestSequence reference116 = ref span148[num]; + ref QuestSequence reference116 = ref span42[4]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj109.Steps = list154; reference116 = obj109; - num++; - ref QuestSequence reference117 = ref span148[num]; + ref QuestSequence reference117 = ref span42[5]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -396328,9 +326347,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.CompleteQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -396349,26 +326366,21 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "liza"; + CollectionsMarshal.AsSpan(list156)[0] = "liza"; questRoot20.Author = list156; - index = 8; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference118 = ref span157[num]; + num = 8; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span43 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference118 = ref span43[0]; QuestSequence obj111 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list158)[0]; QuestStep obj112 = new QuestStep(EInteractionType.AcceptQuest, 1035095u, new Vector3(63.004395f, 14.005002f, 89.829834f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -396386,17 +326398,14 @@ public static class AssemblyQuestLoader num3 = 1; List list159 = new List(num3); CollectionsMarshal.SetCount(list159, num3); - Span span159 = CollectionsMarshal.AsSpan(list159); - index3 = 0; - span159[index3] = 131; + CollectionsMarshal.AsSpan(list159)[0] = 131; obj113.InTerritory = list159; skipConditions4.AetheryteShortcutIf = obj113; obj112.SkipConditions = skipConditions4; reference119 = obj112; obj111.Steps = list158; reference118 = obj111; - num++; - ref QuestSequence reference120 = ref span157[num]; + ref QuestSequence reference120 = ref span43[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 @@ -396404,9 +326413,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.Interact, 1045605u, new Vector3(-166.09448f, 2.0333128f, -17.288513f), 418) + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.Interact, 1045605u, new Vector3(-166.09448f, 2.0333128f, -17.288513f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -396417,18 +326424,16 @@ public static class AssemblyQuestLoader }; obj114.Steps = list160; reference120 = obj114; - num++; - ref QuestSequence reference121 = ref span157[num]; + ref QuestSequence reference121 = ref span43[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list161 = new List(index2); - CollectionsMarshal.SetCount(list161, index2); - Span span161 = CollectionsMarshal.AsSpan(list161); - num2 = 0; - ref QuestStep reference122 = ref span161[num2]; + num2 = 3; + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + Span span44 = CollectionsMarshal.AsSpan(list161); + ref QuestStep reference122 = ref span44[0]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1045608u, new Vector3(-14.145203f, 11.965044f, 27.756104f), 419) { AethernetShortcut = new AethernetShortcut @@ -396437,70 +326442,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardLastVigil } }; - 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); + 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); obj116.CompletionQuestVariablesFlags = list162; reference122 = obj116; - num2++; - ref QuestStep reference123 = ref span161[num2]; + ref QuestStep reference123 = ref span44[1]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list163; reference123 = questStep11; - num2++; - ref QuestStep reference124 = ref span161[num2]; + ref QuestStep reference124 = ref span44[2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1045607u, new Vector3(-55.89386f, 11.965071f, 39.78015f), 419); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list164; reference124 = questStep12; obj115.Steps = list161; reference121 = obj115; - num++; - ref QuestSequence reference125 = ref span157[num]; + ref QuestSequence reference125 = ref span43[3]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -396508,23 +326492,18 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.Interact, 1045610u, new Vector3(30.929932f, 11.965028f, 33.6156f), 419); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.Interact, 1045610u, new Vector3(30.929932f, 11.965028f, 33.6156f), 419); obj117.Steps = list165; reference125 = obj117; - num++; - ref QuestSequence reference126 = ref span157[num]; + ref QuestSequence reference126 = ref span43[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -396534,8 +326513,7 @@ public static class AssemblyQuestLoader }; obj118.Steps = list166; reference126 = obj118; - num++; - ref QuestSequence reference127 = ref span157[num]; + ref QuestSequence reference127 = ref span43[5]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -396543,27 +326521,21 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1045714u, new Vector3(65.171265f, 24.071722f, -37.521973f), 418); obj119.Steps = list167; reference127 = obj119; - num++; - ref QuestSequence reference128 = ref span157[num]; + ref QuestSequence reference128 = ref span43[6]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj120.Steps = list168; reference128 = obj120; - num++; - ref QuestSequence reference129 = ref span157[num]; + ref QuestSequence reference129 = ref span43[7]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -396571,9 +326543,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.CompleteQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -396592,26 +326562,21 @@ public static class AssemblyQuestLoader num = 1; List list170 = new List(num); CollectionsMarshal.SetCount(list170, num); - Span span170 = CollectionsMarshal.AsSpan(list170); - index = 0; - span170[index] = "liza"; + CollectionsMarshal.AsSpan(list170)[0] = "liza"; questRoot21.Author = list170; - index = 3; - List list171 = new List(index); - CollectionsMarshal.SetCount(list171, index); - Span span171 = CollectionsMarshal.AsSpan(list171); - num = 0; - ref QuestSequence reference130 = ref span171[num]; + num = 3; + List list171 = new List(num); + CollectionsMarshal.SetCount(list171, num); + Span span48 = CollectionsMarshal.AsSpan(list171); + ref QuestSequence reference130 = ref span48[0]; QuestSequence obj122 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list172)[0]; QuestStep obj123 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -396629,17 +326594,14 @@ public static class AssemblyQuestLoader num3 = 1; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span173 = CollectionsMarshal.AsSpan(list173); - index3 = 0; - span173[index3] = 131; + CollectionsMarshal.AsSpan(list173)[0] = 131; obj124.InTerritory = list173; skipConditions5.AetheryteShortcutIf = obj124; obj123.SkipConditions = skipConditions5; reference131 = obj123; obj122.Steps = list172; reference130 = obj122; - num++; - ref QuestSequence reference132 = ref span171[num]; + ref QuestSequence reference132 = ref span48[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -396647,9 +326609,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1045715u, new Vector3(21.042175f, 29.999996f, -16.342468f), 131) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1045715u, new Vector3(21.042175f, 29.999996f, -16.342468f), 131) { AethernetShortcut = new AethernetShortcut { @@ -396659,18 +326619,15 @@ public static class AssemblyQuestLoader }; obj125.Steps = list174; reference132 = obj125; - num++; - ref QuestSequence reference133 = ref span171[num]; + ref QuestSequence reference133 = ref span48[2]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(4778) @@ -396684,16 +326641,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "liza"; + CollectionsMarshal.AsSpan(list176)[0] = "liza"; questRoot22.Author = list176; - index = 2; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference134 = ref span177[num]; + num = 2; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span49 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference134 = ref span49[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -396701,9 +326655,7 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - ref QuestStep reference135 = ref span178[index2]; + ref QuestStep reference135 = ref CollectionsMarshal.AsSpan(list178)[0]; QuestStep obj128 = new QuestStep(EInteractionType.AcceptQuest, 1026852u, new Vector3(63.126587f, 14.005002f, 89.86035f), 131) { StopDistance = 5f, @@ -396719,30 +326671,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list179 = new List(index3); - CollectionsMarshal.SetCount(list179, index3); - Span span179 = CollectionsMarshal.AsSpan(list179); - num3 = 0; - span179[num3] = 131; + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = 131; obj129.InTerritory = list179; skipConditions6.AetheryteShortcutIf = obj129; obj128.SkipConditions = skipConditions6; reference135 = obj128; obj127.Steps = list178; reference134 = obj127; - num++; - ref QuestSequence reference136 = ref span177[num]; + ref QuestSequence reference136 = ref span49[1]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -396755,16 +326702,13 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - Span span181 = CollectionsMarshal.AsSpan(list181); - index = 0; - span181[index] = "pot0to"; + CollectionsMarshal.AsSpan(list181)[0] = "pot0to"; questRoot23.Author = list181; - index = 6; - List list182 = new List(index); - CollectionsMarshal.SetCount(list182, index); - Span span182 = CollectionsMarshal.AsSpan(list182); - num = 0; - ref QuestSequence reference137 = ref span182[num]; + num = 6; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + Span span50 = CollectionsMarshal.AsSpan(list182); + ref QuestSequence reference137 = ref span50[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -396772,9 +326716,7 @@ public static class AssemblyQuestLoader num2 = 1; List list183 = new List(num2); CollectionsMarshal.SetCount(list183, num2); - Span span183 = CollectionsMarshal.AsSpan(list183); - index2 = 0; - ref QuestStep reference138 = ref span183[index2]; + ref QuestStep reference138 = ref CollectionsMarshal.AsSpan(list183)[0]; QuestStep obj132 = new QuestStep(EInteractionType.AcceptQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -396782,9 +326724,7 @@ public static class AssemblyQuestLoader num3 = 1; List list184 = new List(num3); CollectionsMarshal.SetCount(list184, num3); - Span span184 = CollectionsMarshal.AsSpan(list184); - index3 = 0; - span184[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list184)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBWIL901_04779_Q1_000_000"), @@ -396794,25 +326734,21 @@ public static class AssemblyQuestLoader reference138 = obj132; obj131.Steps = list183; reference137 = obj131; - num++; - ref QuestSequence reference139 = ref span182[num]; + ref QuestSequence reference139 = ref span50[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj133.Steps = list185; reference139 = obj133; - num++; - ref QuestSequence reference140 = ref span182[num]; + ref QuestSequence reference140 = ref span50[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -396820,26 +326756,21 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 2013396u, new Vector3(-69.96271f, -21.011719f, -10.177856f), 145) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 2013396u, new Vector3(-69.96271f, -21.011719f, -10.177856f), 145) { Fly = true }; obj134.Steps = list186; reference140 = obj134; - num++; - ref QuestSequence reference141 = ref span182[num]; + ref QuestSequence reference141 = ref span50[3]; QuestSequence obj135 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -396850,8 +326781,7 @@ public static class AssemblyQuestLoader }; obj135.Steps = list187; reference141 = obj135; - num++; - ref QuestSequence reference142 = ref span182[num]; + ref QuestSequence reference142 = ref span50[4]; QuestSequence obj136 = new QuestSequence { Sequence = 4 @@ -396859,9 +326789,7 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -396872,18 +326800,15 @@ public static class AssemblyQuestLoader }; obj136.Steps = list188; reference142 = obj136; - num++; - ref QuestSequence reference143 = ref span182[num]; + ref QuestSequence reference143 = ref span50[5]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj137.Steps = list189; reference143 = obj137; questRoot23.QuestSequence = list182; @@ -396893,16 +326818,13 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "pot0to"; + CollectionsMarshal.AsSpan(list190)[0] = "pot0to"; questRoot24.Author = list190; - index = 7; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference144 = ref span191[num]; + num = 7; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span51 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference144 = ref span51[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -396910,9 +326832,7 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - ref QuestStep reference145 = ref span192[index2]; + ref QuestStep reference145 = ref CollectionsMarshal.AsSpan(list192)[0]; QuestStep obj139 = new QuestStep(EInteractionType.AcceptQuest, 1045619u, new Vector3(24.612793f, 40f, 80.338745f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -396924,37 +326844,31 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions7 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list193 = new List(index3); - CollectionsMarshal.SetCount(list193, index3); - Span span193 = CollectionsMarshal.AsSpan(list193); - num3 = 0; - span193[num3] = 128; + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + CollectionsMarshal.AsSpan(list193)[0] = 128; skipAetheryteCondition.InTerritory = list193; skipConditions7.AetheryteShortcutIf = skipAetheryteCondition; obj139.SkipConditions = skipConditions7; reference145 = obj139; obj138.Steps = list192; reference144 = obj138; - num++; - ref QuestSequence reference146 = ref span191[num]; + ref QuestSequence reference146 = ref span51[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj140.Steps = list194; reference146 = obj140; - num++; - ref QuestSequence reference147 = ref span191[num]; + ref QuestSequence reference147 = ref span51[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 @@ -396962,37 +326876,30 @@ public static class AssemblyQuestLoader num2 = 3; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - 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) + 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) { Fly = true }; - index2++; - span195[index2] = new QuestStep(EInteractionType.Interact, 1045625u, new Vector3(217.18164f, 8.973654f, 615.77783f), 135); + span52[2] = new QuestStep(EInteractionType.Interact, 1045625u, new Vector3(217.18164f, 8.973654f, 615.77783f), 135); obj141.Steps = list195; reference147 = obj141; - num++; - ref QuestSequence reference148 = ref span191[num]; + ref QuestSequence reference148 = ref span51[3]; QuestSequence obj142 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj142.Steps = list196; reference148 = obj142; - num++; - ref QuestSequence reference149 = ref span191[num]; + ref QuestSequence reference149 = ref span51[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 @@ -397000,27 +326907,21 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.Interact, 2013397u, new Vector3(247.8523f, 6.6986694f, 783.505f), 135); + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.Interact, 2013397u, new Vector3(247.8523f, 6.6986694f, 783.505f), 135); obj143.Steps = list197; reference149 = obj143; - num++; - ref QuestSequence reference150 = ref span191[num]; + ref QuestSequence reference150 = ref span51[5]; QuestSequence obj144 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj144.Steps = list198; reference150 = obj144; - num++; - ref QuestSequence reference151 = ref span191[num]; + ref QuestSequence reference151 = ref span51[6]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -397028,9 +326929,7 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - ref QuestStep reference152 = ref span199[index2]; + ref QuestStep reference152 = ref CollectionsMarshal.AsSpan(list199)[0]; QuestStep obj146 = new QuestStep(EInteractionType.CompleteQuest, 1045615u, new Vector3(-115.80072f, 4f, -100.99945f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah @@ -397038,9 +326937,7 @@ public static class AssemblyQuestLoader num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span200 = CollectionsMarshal.AsSpan(list200); - index3 = 0; - span200[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list200)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_SUBWIL902_04780_Q2_000_000"), @@ -397057,33 +326954,26 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "liza"; + CollectionsMarshal.AsSpan(list201)[0] = "liza"; questRoot25.Author = list201; - index = 7; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference153 = ref span202[num]; + num = 7; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span53 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference153 = ref span53[0]; QuestSequence obj147 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list203 = new List(num2); + CollectionsMarshal.SetCount(list203, num2); + ref QuestStep reference154 = ref CollectionsMarshal.AsSpan(list203)[0]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1043515u, new Vector3(303.39502f, 481.99442f, 152.81909f), 960); - index3 = 1; - List list204 = new List(index3); - CollectionsMarshal.SetCount(list204, index3); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - span204[num3] = new DialogueChoice + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q1_000_007"), @@ -397093,8 +326983,7 @@ public static class AssemblyQuestLoader reference154 = questStep13; obj147.Steps = list203; reference153 = obj147; - num++; - ref QuestSequence reference155 = ref span202[num]; + ref QuestSequence reference155 = ref span53[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -397102,31 +326991,25 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 1045899u, new Vector3(-164.99585f, -49.302116f, -284.22986f), 959) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 1045899u, new Vector3(-164.99585f, -49.302116f, -284.22986f), 959) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumBestwaysBurrow }; obj148.Steps = list205; reference155 = obj148; - num++; - ref QuestSequence reference156 = ref span202[num]; + ref QuestSequence reference156 = ref span53[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj149.Steps = list206; reference156 = obj149; - num++; - ref QuestSequence reference157 = ref span202[num]; + ref QuestSequence reference157 = ref span53[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 @@ -397134,34 +327017,28 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1042300u, new Vector3(-76.82922f, 39.977543f, 309.98706f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj150.Steps = list207; reference157 = obj150; - num++; - ref QuestSequence reference158 = ref span202[num]; + ref QuestSequence reference158 = ref span53[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj151.Steps = list208; reference158 = obj151; - num++; - ref QuestSequence reference159 = ref span202[num]; + ref QuestSequence reference159 = ref span53[5]; QuestSequence obj152 = new QuestSequence { Sequence = 5 @@ -397169,36 +327046,30 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference160 = ref span209[index2]; + ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list209)[0]; 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 span210 = CollectionsMarshal.AsSpan(list210); - index3 = 0; - span210[index3] = new DialogueChoice + Span span54 = CollectionsMarshal.AsSpan(list210); + span54[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q3_000_112") }; - index3++; - span210[index3] = new DialogueChoice + span54[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q4_000_116"), Answer = new ExcelRef("TEXT_BANALL310_04787_A4_000_003") }; - index3++; - span210[index3] = new DialogueChoice + span54[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q5_000_120"), Answer = new ExcelRef("TEXT_BANALL310_04787_A5_000_002") }; - index3++; - span210[index3] = new DialogueChoice + span54[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL310_04787_Q6_000_124"), @@ -397208,18 +327079,15 @@ public static class AssemblyQuestLoader reference160 = questStep14; obj152.Steps = list209; reference159 = obj152; - num++; - ref QuestSequence reference161 = ref span202[num]; + ref QuestSequence reference161 = ref span53[6]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -397232,16 +327100,13 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - Span span212 = CollectionsMarshal.AsSpan(list212); - index = 0; - span212[index] = "liza"; + CollectionsMarshal.AsSpan(list212)[0] = "liza"; questRoot26.Author = list212; - index = 6; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref QuestSequence reference162 = ref span213[num]; + num = 6; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span55 = CollectionsMarshal.AsSpan(list213); + ref QuestSequence reference162 = ref span55[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -397249,9 +327114,7 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045901u, new Vector3(-79.6369f, 39.981316f, 311.78748f), 957) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -397265,33 +327128,28 @@ public static class AssemblyQuestLoader }; obj154.Steps = list214; reference162 = obj154; - num++; - ref QuestSequence reference163 = ref span213[num]; + ref QuestSequence reference163 = ref span55[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)960, AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - num2++; - span215[num2] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) + span56[1] = new QuestStep(EInteractionType.Interact, 1043865u, new Vector3(301.8081f, 482.13644f, 165.02625f), 960) { TargetTerritoryId = (ushort)960 }; - num2++; - span215[num2] = new QuestStep(EInteractionType.Interact, 1045904u, new Vector3(201.46484f, 567.4998f, 241.32141f), 960); + span56[2] = new QuestStep(EInteractionType.Interact, 1045904u, new Vector3(201.46484f, 567.4998f, 241.32141f), 960); obj155.Steps = list215; reference163 = obj155; - num++; - ref QuestSequence reference164 = ref span213[num]; + ref QuestSequence reference164 = ref span55[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -397299,19 +327157,15 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference165 = ref span216[index2]; + ref QuestStep reference165 = ref CollectionsMarshal.AsSpan(list216)[0]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1045905u, new Vector3(491.6609f, 436.9997f, 301.22827f), 960) { AetheryteShortcut = EAetheryteLocation.UltimaThuleBaseOmicron }; - index3 = 1; - List list217 = new List(index3); - CollectionsMarshal.SetCount(list217, index3); - Span span217 = CollectionsMarshal.AsSpan(list217); - num3 = 0; - span217[num3] = new DialogueChoice + num3 = 1; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + CollectionsMarshal.AsSpan(list217)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q1_000_049"), @@ -397321,27 +327175,23 @@ public static class AssemblyQuestLoader reference165 = obj157; obj156.Steps = list216; reference164 = obj156; - num++; - ref QuestSequence reference166 = ref span213[num]; + ref QuestSequence reference166 = ref span55[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)960 }; - num2++; - span218[num2] = new QuestStep(EInteractionType.Interact, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); + span57[1] = new QuestStep(EInteractionType.Interact, 1043951u, new Vector3(303.8529f, 481.99442f, 154.83325f), 960); obj158.Steps = list218; reference166 = obj158; - num++; - ref QuestSequence reference167 = ref span213[num]; + ref QuestSequence reference167 = ref span55[4]; QuestSequence obj159 = new QuestSequence { Sequence = 4 @@ -397349,9 +327199,7 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - ref QuestStep reference168 = ref span219[index2]; + ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list219)[0]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2013445u, new Vector3(-386.83148f, 80.85742f, 603.6621f), 960) { Fly = true, @@ -397360,15 +327208,13 @@ public static class AssemblyQuestLoader num3 = 2; List list220 = new List(num3); CollectionsMarshal.SetCount(list220, num3); - Span span220 = CollectionsMarshal.AsSpan(list220); - index3 = 0; - span220[index3] = new DialogueChoice + Span span58 = CollectionsMarshal.AsSpan(list220); + span58[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q2_000_090") }; - index3++; - span220[index3] = new DialogueChoice + span58[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANALL320_04788_Q3_000_130"), @@ -397378,18 +327224,15 @@ public static class AssemblyQuestLoader reference168 = obj160; obj159.Steps = list219; reference167 = obj159; - num++; - ref QuestSequence reference169 = ref span213[num]; + ref QuestSequence reference169 = ref span55[5]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -397402,16 +327245,13 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot27.Author = list222; - index = 8; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference170 = ref span223[num]; + num = 8; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span59 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference170 = ref span59[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -397419,9 +327259,7 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1042264u, new Vector3(124.22363f, 19.32629f, -617.42584f), 156) { AetheryteShortcut = EAetheryteLocation.MorDhona, SkipConditions = new SkipConditions @@ -397434,29 +327272,25 @@ public static class AssemblyQuestLoader }; obj162.Steps = list224; reference170 = obj162; - num++; - ref QuestSequence reference171 = ref span223[num]; + ref QuestSequence reference171 = ref span59[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, Fly = true }; - num2++; - span225[num2] = new QuestStep(EInteractionType.Interact, 1045968u, new Vector3(5.661072f, 0.099999696f, 5.8441772f), 1061); + span60[1] = new QuestStep(EInteractionType.Interact, 1045968u, new Vector3(5.661072f, 0.099999696f, 5.8441772f), 1061); obj163.Steps = list225; reference171 = obj163; - num++; - ref QuestSequence reference172 = ref span223[num]; + ref QuestSequence reference172 = ref span59[2]; QuestSequence obj164 = new QuestSequence { Sequence = 2 @@ -397464,16 +327298,12 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - ref QuestStep reference173 = ref span226[index2]; + ref QuestStep reference173 = ref CollectionsMarshal.AsSpan(list226)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1045971u, new Vector3(1.3580322f, 0.099999696f, 27.237305f), 1061); - index3 = 1; - List list227 = new List(index3); - CollectionsMarshal.SetCount(list227, index3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = new DialogueChoice + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_AKTKEA301_04791_Q1_100_000") @@ -397482,26 +327312,22 @@ public static class AssemblyQuestLoader reference173 = questStep15; obj164.Steps = list226; reference172 = obj164; - num++; - ref QuestSequence reference174 = ref span223[num]; + ref QuestSequence reference174 = ref span59[3]; QuestSequence obj165 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj165.Steps = list228; reference174 = obj165; - num++; - ref QuestSequence reference175 = ref span223[num]; + ref QuestSequence reference175 = ref span59[4]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -397509,9 +327335,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Interact, 2012870u, new Vector3(154.46704f, -26.29132f, -437.46094f), 156) { StopDistance = 1f, TargetTerritoryId = (ushort)1061, @@ -397520,25 +327344,21 @@ public static class AssemblyQuestLoader }; obj166.Steps = list229; reference175 = obj166; - num++; - ref QuestSequence reference176 = ref span223[num]; + ref QuestSequence reference176 = ref span59[5]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj167.Steps = list230; reference176 = obj167; - num++; - ref QuestSequence reference177 = ref span223[num]; + ref QuestSequence reference177 = ref span59[6]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -397546,9 +327366,7 @@ public static class AssemblyQuestLoader num2 = 1; List list231 = new List(num2); CollectionsMarshal.SetCount(list231, num2); - Span span231 = CollectionsMarshal.AsSpan(list231); - index2 = 0; - span231[index2] = new QuestStep(EInteractionType.Duty, null, null, 1061) + CollectionsMarshal.AsSpan(list231)[0] = new QuestStep(EInteractionType.Duty, null, null, 1061) { DutyOptions = new DutyOptions { @@ -397557,18 +327375,15 @@ public static class AssemblyQuestLoader }; obj168.Steps = list231; reference177 = obj168; - num++; - ref QuestSequence reference178 = ref span223[num]; + ref QuestSequence reference178 = ref span59[7]; QuestSequence obj169 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4792) }; @@ -397581,16 +327396,13 @@ public static class AssemblyQuestLoader num = 1; List list233 = new List(num); CollectionsMarshal.SetCount(list233, num); - Span span233 = CollectionsMarshal.AsSpan(list233); - index = 0; - span233[index] = "liza"; + CollectionsMarshal.AsSpan(list233)[0] = "liza"; questRoot28.Author = list233; - index = 6; - List list234 = new List(index); - CollectionsMarshal.SetCount(list234, index); - Span span234 = CollectionsMarshal.AsSpan(list234); - num = 0; - ref QuestSequence reference179 = ref span234[num]; + num = 6; + List list234 = new List(num); + CollectionsMarshal.SetCount(list234, num); + Span span61 = CollectionsMarshal.AsSpan(list234); + ref QuestSequence reference179 = ref span61[0]; QuestSequence obj170 = new QuestSequence { Sequence = 0 @@ -397598,34 +327410,28 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.AcceptQuest, 1045985u, new Vector3(945.18945f, -950f, -937.8042f), 1182) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.AcceptQuest, 1045985u, new Vector3(945.18945f, -950f, -937.8042f), 1182) { StopDistance = 4f }; obj170.Steps = list235; reference179 = obj170; - num++; - ref QuestSequence reference180 = ref span234[num]; + ref QuestSequence reference180 = ref span61[1]; QuestSequence obj171 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EastShroudHawthorneHut }; obj171.Steps = list236; reference180 = obj171; - num++; - ref QuestSequence reference181 = ref span234[num]; + ref QuestSequence reference181 = ref span61[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -397633,9 +327439,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.Interact, 1045992u, new Vector3(-277.45483f, 16.000862f, 50.461548f), 129) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.Interact, 1045992u, new Vector3(-277.45483f, 16.000862f, 50.461548f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -397646,18 +327450,15 @@ public static class AssemblyQuestLoader }; obj172.Steps = list237; reference181 = obj172; - num++; - ref QuestSequence reference182 = ref span234[num]; + ref QuestSequence reference182 = ref span61[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -397667,8 +327468,7 @@ public static class AssemblyQuestLoader }; obj173.Steps = list238; reference182 = obj173; - num++; - ref QuestSequence reference183 = ref span234[num]; + ref QuestSequence reference183 = ref span61[4]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -397676,27 +327476,23 @@ public static class AssemblyQuestLoader num2 = 4; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.Interact, 1045996u, new Vector3(85.9845f, 68.34592f, 348.989f), 135) + Span span62 = CollectionsMarshal.AsSpan(list239); + span62[0] = new QuestStep(EInteractionType.Interact, 1045996u, new Vector3(85.9845f, 68.34592f, 348.989f), 135) { Fly = true }; - index2++; - span239[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(45.021595f, 71.30157f, 376.23453f), 135) + span62[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(45.021595f, 71.30157f, 376.23453f), 135) { Mount = false, Sprint = false }; - index2++; - span239[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(43.50745f, 71.30162f, 379.11874f), 135) + span62[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1045996u, new Vector3(43.50745f, 71.30162f, 379.11874f), 135) { StopDistance = 10f, Mount = false, Sprint = false }; - index2++; - span239[index2] = new QuestStep(EInteractionType.WalkTo, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135) + span62[3] = new QuestStep(EInteractionType.WalkTo, 1045998u, new Vector3(9.048584f, 66.55368f, 409.53687f), 135) { StopDistance = 1f, Mount = false, @@ -397704,18 +327500,15 @@ public static class AssemblyQuestLoader }; obj174.Steps = list239; reference183 = obj174; - num++; - ref QuestSequence reference184 = ref span234[num]; + ref QuestSequence reference184 = ref span61[5]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj175.Steps = list240; reference184 = obj175; questRoot28.QuestSequence = list234; @@ -397725,16 +327518,13 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "liza"; + CollectionsMarshal.AsSpan(list241)[0] = "liza"; questRoot29.Author = list241; - index = 6; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference185 = ref span242[num]; + num = 6; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span63 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference185 = ref span63[0]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -397742,27 +327532,21 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044156u, new Vector3(-276.3562f, 39.993896f, 224.26172f), 1055); + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044156u, new Vector3(-276.3562f, 39.993896f, 224.26172f), 1055); obj176.Steps = list243; reference185 = obj176; - num++; - ref QuestSequence reference186 = ref span242[num]; + ref QuestSequence reference186 = ref span63[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj177.Steps = list244; reference186 = obj177; - num++; - ref QuestSequence reference187 = ref span242[num]; + ref QuestSequence reference187 = ref span63[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -397770,67 +327554,49 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); obj178.Steps = list245; reference187 = obj178; - num++; - ref QuestSequence reference188 = ref span242[num]; + ref QuestSequence reference188 = ref span63[3]; QuestSequence obj179 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list246 = new List(index2); - CollectionsMarshal.SetCount(list246, index2); - Span span246 = CollectionsMarshal.AsSpan(list246); - num2 = 0; - ref QuestStep reference189 = ref span246[num2]; + num2 = 2; + List list246 = new List(num2); + CollectionsMarshal.SetCount(list246, num2); + Span span64 = CollectionsMarshal.AsSpan(list246); + ref QuestStep reference189 = ref span64[0]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list247; reference189 = questStep16; - num2++; - ref QuestStep reference190 = ref span246[num2]; + ref QuestStep reference190 = ref span64[1]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1046281u, new Vector3(-118.21167f, 91.550545f, 398.79456f), 1055); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list248; reference190 = questStep17; obj179.Steps = list246; reference188 = obj179; - num++; - ref QuestSequence reference191 = ref span242[num]; + ref QuestSequence reference191 = ref span63[4]; QuestSequence obj180 = new QuestSequence { Sequence = 4 @@ -397838,23 +327604,18 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1046221u, new Vector3(-303.12048f, 39.993896f, 244.80042f), 1055); obj180.Steps = list249; reference191 = obj180; - num++; - ref QuestSequence reference192 = ref span242[num]; + ref QuestSequence reference192 = ref span63[5]; QuestSequence obj181 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -397867,16 +327628,13 @@ public static class AssemblyQuestLoader num = 1; List list251 = new List(num); CollectionsMarshal.SetCount(list251, num); - Span span251 = CollectionsMarshal.AsSpan(list251); - index = 0; - span251[index] = "liza"; + CollectionsMarshal.AsSpan(list251)[0] = "liza"; questRoot30.Author = list251; - index = 5; - List list252 = new List(index); - CollectionsMarshal.SetCount(list252, index); - Span span252 = CollectionsMarshal.AsSpan(list252); - num = 0; - ref QuestSequence reference193 = ref span252[num]; + num = 5; + List list252 = new List(num); + CollectionsMarshal.SetCount(list252, num); + Span span67 = CollectionsMarshal.AsSpan(list252); + ref QuestSequence reference193 = ref span67[0]; QuestSequence obj182 = new QuestSequence { Sequence = 0 @@ -397884,30 +327642,24 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963); + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044768u, new Vector3(11.154297f, -0.00010118321f, 14.816467f), 963); obj182.Steps = list253; reference193 = obj182; - num++; - ref QuestSequence reference194 = ref span252[num]; + ref QuestSequence reference194 = ref span67[1]; QuestSequence obj183 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj183.Steps = list254; reference194 = obj183; - num++; - ref QuestSequence reference195 = ref span252[num]; + ref QuestSequence reference195 = ref span67[2]; QuestSequence obj184 = new QuestSequence { Sequence = 2 @@ -397915,54 +327667,39 @@ public static class AssemblyQuestLoader num2 = 4; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - ref QuestStep reference196 = ref span255[index2]; + Span span68 = CollectionsMarshal.AsSpan(list255); + ref QuestStep reference196 = ref span68[0]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list256; reference196 = questStep18; - index2++; - ref QuestStep reference197 = ref span255[index2]; + ref QuestStep reference197 = ref span68[1]; QuestStep obj185 = new QuestStep(EInteractionType.Interact, 1044822u, new Vector3(244.09851f, 9.916463f, 575.8601f), 957) { Fly = true }; - 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); + 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); obj185.CompletionQuestVariablesFlags = list257; reference197 = obj185; - index2++; - ref QuestStep reference198 = ref span255[index2]; + ref QuestStep reference198 = ref span68[2]; QuestStep obj186 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(203.62158f, 1.7700036f, 711.6622f), 957) { Fly = true @@ -397972,65 +327709,48 @@ public static class AssemblyQuestLoader num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list258; skipConditions8.StepIf = skipStepConditions; obj186.SkipConditions = skipConditions8; reference198 = obj186; - index2++; - ref QuestStep reference199 = ref span255[index2]; + ref QuestStep reference199 = ref span68[3]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1044820u, new Vector3(205.09644f, 1.7700036f, 710.84155f), 957); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list259; reference199 = questStep19; obj184.Steps = list255; reference195 = obj184; - num++; - ref QuestSequence reference200 = ref span252[num]; + ref QuestSequence reference200 = ref span67[3]; QuestSequence obj187 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj187.Steps = list260; reference200 = obj187; - num++; - ref QuestSequence reference201 = ref span252[num]; + ref QuestSequence reference201 = ref span67[4]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue @@ -398038,9 +327758,7 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.CompleteQuest, 1044830u, new Vector3(25.680908f, 1.5596709f, 634.5464f), 957) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.CompleteQuest, 1044830u, new Vector3(25.680908f, 1.5596709f, 634.5464f), 957) { StopDistance = 5f, NextQuestId = new QuestId(4800) @@ -398058,16 +327776,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -398075,35 +327790,29 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1044835u, new Vector3(24.338135f, 1.6764785f, 631.1284f), 957) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1044835u, new Vector3(24.338135f, 1.6764785f, 631.1284f), 957) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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(-18.503275f, 56.94149f, 74.85906f), 957) + 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) { Fly = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1044751u, new Vector3(-16.617126f, 56.856533f, 74.052f), 957); + span2[1] = new QuestStep(EInteractionType.Interact, 1044751u, new Vector3(-16.617126f, 56.856533f, 74.052f), 957); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -398111,9 +327820,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Duty, null, null, 1183) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Duty, null, null, 1183) { DutyOptions = new DutyOptions { @@ -398122,18 +327829,15 @@ public static class AssemblyQuestLoader }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -398146,18 +327850,15 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list7)[0] = "WigglyMuffin"; questRoot2.Author = list7; questRoot2.IsSeasonalQuest = true; questRoot2.SeasonalQuestExpiry = new DateTime(2025, 11, 27, 14, 59, 0, DateTimeKind.Utc); - index = 3; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 3; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -398165,9 +327866,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1011145u, new Vector3(-65.38495f, 0.06979119f, 0.8086548f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, SkipConditions = new SkipConditions @@ -398180,18 +327879,16 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -398203,15 +327900,12 @@ public static class AssemblyQuestLoader Position = new Vector3(7.2141614f, 3.9997299f, 60.4036f) } }; - num2++; - ref QuestStep reference7 = ref span10[num2]; + ref QuestStep reference7 = ref span4[1]; 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); - Span span11 = CollectionsMarshal.AsSpan(list11); - int index3 = 0; - span11[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list11)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBGSC901_04801_SYSTEM_000_011") @@ -398220,8 +327914,7 @@ public static class AssemblyQuestLoader reference7 = questStep; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference8 = ref span8[num]; + ref QuestSequence reference8 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -398229,9 +327922,7 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046439u, new Vector3(-17.868408f, -3.8732372E-12f, -37.857666f), 1197); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046439u, new Vector3(-17.868408f, -3.8732372E-12f, -37.857666f), 1197); obj7.Steps = list12; reference8 = obj7; questRoot2.QuestSequence = list8; @@ -398241,26 +327932,21 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list13)[0] = "CryoTechnic"; questRoot3.Author = list13; - index = 3; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 3; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span5 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span5[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -398271,8 +327957,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list15; reference9 = obj8; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span5[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -398280,9 +327965,7 @@ public static class AssemblyQuestLoader num2 = 1; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) + CollectionsMarshal.AsSpan(list16)[0] = new QuestStep(EInteractionType.PurchaseItem, 1043892u, new Vector3(48.325317f, -0.0003188569f, -12.802368f), 963) { AethernetShortcut = new AethernetShortcut { @@ -398301,18 +327984,15 @@ public static class AssemblyQuestLoader }; obj9.Steps = list16; reference10 = obj9; - num++; - ref QuestSequence reference11 = ref span14[num]; + ref QuestSequence reference11 = ref span5[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -398330,16 +328010,13 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list18)[0] = "CryoTechnic"; questRoot4.Author = list18; - index = 3; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference12 = ref span19[num]; + num = 3; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span6 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference12 = ref span6[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -398347,9 +328024,7 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.AcceptQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -398360,18 +328035,15 @@ public static class AssemblyQuestLoader }; obj11.Steps = list20; reference12 = obj11; - num++; - ref QuestSequence reference13 = ref span19[num]; + ref QuestSequence reference13 = ref span6[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -398390,8 +328062,7 @@ public static class AssemblyQuestLoader }; obj12.Steps = list21; reference13 = obj12; - num++; - ref QuestSequence reference14 = ref span19[num]; + ref QuestSequence reference14 = ref span6[2]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -398399,9 +328070,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1043891u, new Vector3(41.33667f, -24.693443f, -201.67853f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, AethernetShortcut = new AethernetShortcut @@ -398419,26 +328088,21 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "liza"; + CollectionsMarshal.AsSpan(list23)[0] = "liza"; questRoot5.Author = list23; - index = 6; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference15 = ref span24[num]; + num = 6; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span7 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference15 = ref span7[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -398451,8 +328115,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list25; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span24[num]; + ref QuestSequence reference16 = ref span7[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -398460,9 +328123,7 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1046136u, new Vector3(-341.39008f, 22.3f, -103.74609f), 962) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1046136u, new Vector3(-341.39008f, 22.3f, -103.74609f), 962) { AethernetShortcut = new AethernetShortcut { @@ -398472,25 +328133,21 @@ public static class AssemblyQuestLoader }; obj15.Steps = list26; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span24[num]; + ref QuestSequence reference17 = ref span7[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj16.Steps = list27; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span24[num]; + ref QuestSequence reference18 = ref span7[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -398498,9 +328155,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.Interact, 1046139u, new Vector3(87.63245f, -16.247002f, 123.76587f), 962) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 1046139u, new Vector3(87.63245f, -16.247002f, 123.76587f), 962) { AethernetShortcut = new AethernetShortcut { @@ -398510,25 +328165,21 @@ public static class AssemblyQuestLoader }; obj17.Steps = list28; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span24[num]; + ref QuestSequence reference19 = ref span7[4]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj18.Steps = list29; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span24[num]; + ref QuestSequence reference20 = ref span7[5]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue @@ -398536,9 +328187,7 @@ public static class AssemblyQuestLoader num2 = 1; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - Span span30 = CollectionsMarshal.AsSpan(list30); - index2 = 0; - span30[index2] = new QuestStep(EInteractionType.CompleteQuest, 2013721u, new Vector3(406.30188f, 13.01593f, -299.8551f), 957) + CollectionsMarshal.AsSpan(list30)[0] = new QuestStep(EInteractionType.CompleteQuest, 2013721u, new Vector3(406.30188f, 13.01593f, -299.8551f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -398553,26 +328202,21 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "liza"; + CollectionsMarshal.AsSpan(list31)[0] = "liza"; questRoot6.Author = list31; - index = 7; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference21 = ref span32[num]; + num = 7; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span8 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference21 = ref span8[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand, @@ -398586,8 +328230,7 @@ public static class AssemblyQuestLoader }; obj20.Steps = list33; reference21 = obj20; - num++; - ref QuestSequence reference22 = ref span32[num]; + ref QuestSequence reference22 = ref span8[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 @@ -398595,91 +328238,66 @@ public static class AssemblyQuestLoader num2 = 1; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) + CollectionsMarshal.AsSpan(list34)[0] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(406.42407f, 3.1168795f, -272.26672f), 957) { StopDistance = 5f }; obj21.Steps = list34; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span32[num]; + ref QuestSequence reference23 = ref span8[2]; QuestSequence obj22 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list35 = new List(index2); - CollectionsMarshal.SetCount(list35, index2); - Span span35 = CollectionsMarshal.AsSpan(list35); - num2 = 0; - ref QuestStep reference24 = ref span35[num2]; + num2 = 3; + List list35 = new List(num2); + CollectionsMarshal.SetCount(list35, num2); + Span span9 = CollectionsMarshal.AsSpan(list35); + ref QuestStep reference24 = ref span9[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1037703u, new Vector3(423.7887f, 3.1168795f, -269.73376f), 957); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list36; reference24 = questStep2; - num2++; - ref QuestStep reference25 = ref span35[num2]; + ref QuestStep reference25 = ref span9[1]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list37; reference25 = questStep3; - num2++; - ref QuestStep reference26 = ref span35[num2]; + ref QuestStep reference26 = ref span9[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1039517u, new Vector3(376.6078f, 5.709401f, -220.50812f), 957); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list38; reference26 = questStep4; obj22.Steps = list35; reference23 = obj22; - num++; - ref QuestSequence reference27 = ref span32[num]; + ref QuestSequence reference27 = ref span8[3]; QuestSequence obj23 = new QuestSequence { Sequence = 3 @@ -398687,34 +328305,28 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(545.292f, 10.612534f, 232.90868f), 957) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1046203u, new Vector3(545.292f, 10.612534f, 232.90868f), 957) { StopDistance = 0.5f, Fly = true }; obj23.Steps = list39; reference27 = obj23; - num++; - ref QuestSequence reference28 = ref span32[num]; + ref QuestSequence reference28 = ref span8[4]; QuestSequence obj24 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj24.Steps = list40; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span32[num]; + ref QuestSequence reference29 = ref span8[5]; QuestSequence obj25 = new QuestSequence { Sequence = 5 @@ -398722,26 +328334,21 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1042599u, new Vector3(31.998047f, 5.1499996f, -67.73486f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan }; obj25.Steps = list41; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span32[num]; + ref QuestSequence reference30 = ref span8[6]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj26.Steps = list42; reference30 = obj26; questRoot6.QuestSequence = list32; @@ -398751,16 +328358,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "liza"; + CollectionsMarshal.AsSpan(list43)[0] = "liza"; questRoot7.Author = list43; - index = 3; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference31 = ref span44[num]; + num = 3; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span13 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference31 = ref span13[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -398768,9 +328372,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046399u, new Vector3(130.05261f, -16.077408f, 190.72253f), 962) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046399u, new Vector3(130.05261f, -16.077408f, 190.72253f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -398788,26 +328390,22 @@ public static class AssemblyQuestLoader }; obj27.Steps = list45; reference31 = obj27; - num++; - ref QuestSequence reference32 = ref span44[num]; + ref QuestSequence reference32 = ref span13[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet }; obj28.Steps = list46; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span44[num]; + ref QuestSequence reference33 = ref span13[2]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue @@ -398815,9 +328413,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046403u, new Vector3(-31.99823f, -31.53043f, -53.26935f), 956) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046403u, new Vector3(-31.99823f, -31.53043f, -53.26935f), 956) { Fly = true }; @@ -398830,26 +328426,21 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "kaiser"; + CollectionsMarshal.AsSpan(list48)[0] = "kaiser"; questRoot8.Author = list48; - index = 4; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference34 = ref span49[num]; + num = 4; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span14 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference34 = ref span14[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -398868,8 +328459,7 @@ public static class AssemblyQuestLoader }; obj30.Steps = list50; reference34 = obj30; - num++; - ref QuestSequence reference35 = ref span49[num]; + ref QuestSequence reference35 = ref span14[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 @@ -398877,27 +328467,22 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Interact, 1046404u, new Vector3(-707.6982f, -31.53043f, 280.38452f), 956) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.Interact, 1046404u, new Vector3(-707.6982f, -31.53043f, 280.38452f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj31.Steps = list51; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span49[num]; + ref QuestSequence reference36 = ref span14[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference37 = ref span52[num2]; + num2 = 1; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + ref QuestStep reference37 = ref CollectionsMarshal.AsSpan(list52)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, @@ -398918,9 +328503,7 @@ public static class AssemblyQuestLoader num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list53)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_SUBCTS606_04816_Q2_000_055") @@ -398929,8 +328512,7 @@ public static class AssemblyQuestLoader reference37 = obj33; obj32.Steps = list52; reference36 = obj32; - num++; - ref QuestSequence reference38 = ref span49[num]; + ref QuestSequence reference38 = ref span14[3]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -398938,9 +328520,7 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046073u, new Vector3(-53.635498f, -29.497286f, -65.14081f), 956) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.LabyrinthosSharlayanHamlet, @@ -398966,33 +328546,27 @@ public static class AssemblyQuestLoader num = 1; List list55 = new List(num); CollectionsMarshal.SetCount(list55, num); - Span span55 = CollectionsMarshal.AsSpan(list55); - index = 0; - span55[index] = "liza"; + CollectionsMarshal.AsSpan(list55)[0] = "liza"; questRoot9.Author = list55; - index = 3; - List list56 = new List(index); - CollectionsMarshal.SetCount(list56, index); - Span span56 = CollectionsMarshal.AsSpan(list56); - num = 0; - ref QuestSequence reference39 = ref span56[num]; + num = 3; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + Span span15 = CollectionsMarshal.AsSpan(list56); + ref QuestSequence reference39 = ref span15[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj35.Steps = list57; reference39 = obj35; - num++; - ref QuestSequence reference40 = ref span56[num]; + ref QuestSequence reference40 = ref span15[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -399000,23 +328574,18 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 2014140u, new Vector3(-30.960571f, -17.47168f, 191.36328f), 1185); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 2014140u, new Vector3(-30.960571f, -17.47168f, 191.36328f), 1185); obj36.Steps = list58; reference40 = obj36; - num++; - ref QuestSequence reference41 = ref span56[num]; + ref QuestSequence reference41 = ref span15[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj37.Steps = list59; reference41 = obj37; questRoot9.QuestSequence = list56; @@ -399026,16 +328595,13 @@ public static class AssemblyQuestLoader num = 1; List list60 = new List(num); CollectionsMarshal.SetCount(list60, num); - Span span60 = CollectionsMarshal.AsSpan(list60); - index = 0; - span60[index] = "liza"; + CollectionsMarshal.AsSpan(list60)[0] = "liza"; questRoot10.Author = list60; - index = 5; - List list61 = new List(index); - CollectionsMarshal.SetCount(list61, index); - Span span61 = CollectionsMarshal.AsSpan(list61); - num = 0; - ref QuestSequence reference42 = ref span61[num]; + num = 5; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + Span span16 = CollectionsMarshal.AsSpan(list61); + ref QuestSequence reference42 = ref span16[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -399043,9 +328609,7 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048252u, new Vector3(-21.683167f, -19.328289f, 203.14331f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -399058,18 +328622,16 @@ public static class AssemblyQuestLoader }; obj38.Steps = list62; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span61[num]; + ref QuestSequence reference43 = ref span16[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -399078,12 +328640,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IshgardForgottenKnight } }; - num2++; - span63[num2] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); + span17[1] = new QuestStep(EInteractionType.Interact, 1011192u, new Vector3(88.36499f, 15.094684f, 31.296265f), 418); obj39.Steps = list63; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span61[num]; + ref QuestSequence reference44 = ref span16[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 @@ -399091,9 +328651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1048253u, new Vector3(-223.95673f, -16.134916f, -64.2558f), 419) + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1048253u, new Vector3(-223.95673f, -16.134916f, -64.2558f), 419) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -399104,18 +328662,15 @@ public static class AssemblyQuestLoader }; obj40.Steps = list64; reference44 = obj40; - num++; - ref QuestSequence reference45 = ref span61[num]; + ref QuestSequence reference45 = ref span16[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -399125,8 +328680,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list65; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span61[num]; + ref QuestSequence reference46 = ref span16[4]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -399134,9 +328688,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { NextQuestId = new QuestId(4819) }; @@ -399149,26 +328701,21 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "liza"; + CollectionsMarshal.AsSpan(list67)[0] = "liza"; questRoot11.Author = list67; - index = 7; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference47 = ref span68[num]; + num = 7; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span18 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference47 = ref span18[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -399181,8 +328728,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list69; reference47 = obj43; - num++; - ref QuestSequence reference48 = ref span68[num]; + ref QuestSequence reference48 = ref span18[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -399190,33 +328736,27 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 1006433u, new Vector3(202.80762f, 309.07346f, -220.69128f), 155) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1006433u, new Vector3(202.80762f, 309.07346f, -220.69128f), 155) { AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; obj44.Steps = list70; reference48 = obj44; - num++; - ref QuestSequence reference49 = ref span68[num]; + ref QuestSequence reference49 = ref span18[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj45.Steps = list71; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span68[num]; + ref QuestSequence reference50 = ref span18[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -399224,40 +328764,32 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - ref QuestStep reference51 = ref span72[index2]; + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list72)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, null, new Vector3(-20.404095f, 200.07019f, 519.84406f), 155) { Fly = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list73 = new List(index3); - CollectionsMarshal.SetCount(list73, index3); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = 17605u; + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = 17605u; obj47.KillEnemyDataIds = list73; reference51 = obj47; obj46.Steps = list72; reference50 = obj46; - num++; - ref QuestSequence reference52 = ref span68[num]; + ref QuestSequence reference52 = ref span18[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj48.Steps = list74; reference52 = obj48; - num++; - ref QuestSequence reference53 = ref span68[num]; + ref QuestSequence reference53 = ref span18[5]; QuestSequence obj49 = new QuestSequence { Sequence = 5 @@ -399265,9 +328797,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -399278,18 +328808,15 @@ public static class AssemblyQuestLoader }; obj49.Steps = list75; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span68[num]; + ref QuestSequence reference54 = ref span18[6]; QuestSequence obj50 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4820) }; @@ -399302,16 +328829,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "liza"; + CollectionsMarshal.AsSpan(list77)[0] = "liza"; questRoot12.Author = list77; - index = 8; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference55 = ref span78[num]; + num = 8; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span19 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference55 = ref span19[0]; QuestSequence obj51 = new QuestSequence { Sequence = 0 @@ -399319,9 +328843,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - ref QuestStep reference56 = ref span79[index2]; + ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list79)[0]; QuestStep obj52 = new QuestStep(EInteractionType.AcceptQuest, 1048255u, new Vector3(39.475098f, 23.979128f, -48.05072f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -399336,9 +328858,7 @@ public static class AssemblyQuestLoader num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - index3 = 0; - span80[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list80)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA121_04820_Q1_000_000"), @@ -399348,25 +328868,21 @@ public static class AssemblyQuestLoader reference56 = obj52; obj51.Steps = list79; reference55 = obj51; - num++; - ref QuestSequence reference57 = ref span78[num]; + ref QuestSequence reference57 = ref span19[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest }; obj53.Steps = list81; reference57 = obj53; - num++; - ref QuestSequence reference58 = ref span78[num]; + ref QuestSequence reference58 = ref span19[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 @@ -399374,47 +328890,39 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 1048270u, new Vector3(459.76953f, 161.99915f, -493.33948f), 397) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 1048270u, new Vector3(459.76953f, 161.99915f, -493.33948f), 397) { Fly = true }; obj54.Steps = list82; reference58 = obj54; - num++; - ref QuestSequence reference59 = ref span78[num]; + ref QuestSequence reference59 = ref span19[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 }; - 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]; + 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]; QuestStep obj56 = new QuestStep(EInteractionType.Combat, null, new Vector3(455.58475f, 157.40831f, -558.01215f), 397) { Fly = false, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list84 = new List(num3); + CollectionsMarshal.SetCount(list84, num3); + Span span21 = CollectionsMarshal.AsSpan(list84); + span21[0] = 17606u; + span21[1] = 17607u; obj56.KillEnemyDataIds = list84; reference60 = obj56; obj55.Steps = list83; reference59 = obj55; - num++; - ref QuestSequence reference61 = ref span78[num]; + ref QuestSequence reference61 = ref span19[4]; QuestSequence obj57 = new QuestSequence { Sequence = 4 @@ -399422,26 +328930,21 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 1048278u, new Vector3(452.84204f, 157.40831f, -556.87805f), 397) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1048278u, new Vector3(452.84204f, 157.40831f, -556.87805f), 397) { StopDistance = 7f }; obj57.Steps = list85; reference61 = obj57; - num++; - ref QuestSequence reference62 = ref span78[num]; + ref QuestSequence reference62 = ref span19[5]; QuestSequence obj58 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list86 = new List(index2); - CollectionsMarshal.SetCount(list86, index2); - Span span86 = CollectionsMarshal.AsSpan(list86); - num2 = 0; - ref QuestStep reference63 = ref span86[num2]; + num2 = 1; + List list86 = new List(num2); + CollectionsMarshal.SetCount(list86, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list86)[0]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(466.1211f, 161.96898f, -488.2508f), 397) { Comment = "You automatically spawn triggering combat", @@ -399450,19 +328953,15 @@ public static class AssemblyQuestLoader num3 = 3; List list87 = new List(num3); CollectionsMarshal.SetCount(list87, num3); - Span span87 = CollectionsMarshal.AsSpan(list87); - index3 = 0; - span87[index3] = 17608u; - index3++; - span87[index3] = 17609u; - index3++; - span87[index3] = 17610u; + Span span22 = CollectionsMarshal.AsSpan(list87); + span22[0] = 17608u; + span22[1] = 17609u; + span22[2] = 17610u; obj59.KillEnemyDataIds = list87; reference63 = obj59; obj58.Steps = list86; reference62 = obj58; - num++; - ref QuestSequence reference64 = ref span78[num]; + ref QuestSequence reference64 = ref span19[6]; QuestSequence obj60 = new QuestSequence { Sequence = 6 @@ -399470,23 +328969,18 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1048271u, new Vector3(464.3778f, 161.94708f, -488.45657f), 397); + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1048271u, new Vector3(464.3778f, 161.94708f, -488.45657f), 397); obj60.Steps = list88; reference64 = obj60; - num++; - ref QuestSequence reference65 = ref span78[num]; + ref QuestSequence reference65 = ref span19[7]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -399505,16 +328999,13 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "liza"; + CollectionsMarshal.AsSpan(list90)[0] = "liza"; questRoot13.Author = list90; - index = 5; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference66 = ref span91[num]; + num = 5; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span23 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference66 = ref span23[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -399522,9 +329013,7 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - span92[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) + CollectionsMarshal.AsSpan(list92)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050461u, new Vector3(87.20532f, 23.979128f, -1.7243042f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -399537,66 +329026,50 @@ public static class AssemblyQuestLoader }; obj62.Steps = list92; reference66 = obj62; - num++; - ref QuestSequence reference67 = ref span91[num]; + ref QuestSequence reference67 = ref span23[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list93 = new List(index2); - CollectionsMarshal.SetCount(list93, index2); - Span span93 = CollectionsMarshal.AsSpan(list93); - num2 = 0; - ref QuestStep reference68 = ref span93[num2]; + num2 = 2; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + Span span24 = CollectionsMarshal.AsSpan(list93); + ref QuestStep reference68 = ref span24[0]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 2013677u, new Vector3(-226.0014f, -11.520569f, 339.9862f), 400) { Fly = true, AetheryteShortcut = EAetheryteLocation.ChurningMistsZenith }; - 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); + 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); obj64.CompletionQuestVariablesFlags = list94; reference68 = obj64; - num2++; - ref QuestStep reference69 = ref span93[num2]; + ref QuestStep reference69 = ref span24[1]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list95; reference69 = questStep5; obj63.Steps = list93; reference67 = obj63; - num++; - ref QuestSequence reference70 = ref span91[num]; + ref QuestSequence reference70 = ref span23[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -399604,9 +329077,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - ref QuestStep reference71 = ref span96[index2]; + ref QuestStep reference71 = ref CollectionsMarshal.AsSpan(list96)[0]; QuestStep obj66 = new QuestStep(EInteractionType.Combat, 2013681u, new Vector3(-527.7333f, 147.11218f, 15.27417f), 399) { Fly = true, @@ -399618,28 +329089,23 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list97 = new List(index3); - CollectionsMarshal.SetCount(list97, index3); - Span span97 = CollectionsMarshal.AsSpan(list97); - num3 = 0; - span97[num3] = 17611u; + num3 = 1; + List list97 = new List(num3); + CollectionsMarshal.SetCount(list97, num3); + CollectionsMarshal.AsSpan(list97)[0] = 17611u; obj66.KillEnemyDataIds = list97; reference71 = obj66; obj65.Steps = list96; reference70 = obj65; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span23[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -399650,8 +329116,7 @@ public static class AssemblyQuestLoader }; obj67.Steps = list98; reference72 = obj67; - num++; - ref QuestSequence reference73 = ref span91[num]; + ref QuestSequence reference73 = ref span23[4]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -399659,9 +329124,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f, NextQuestId = new QuestId(4822) @@ -399675,26 +329138,21 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "liza"; + CollectionsMarshal.AsSpan(list100)[0] = "liza"; questRoot14.Author = list100; - index = 5; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference74 = ref span101[num]; + num = 5; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span27 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference74 = ref span27[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Ishgard, @@ -399708,8 +329166,7 @@ public static class AssemblyQuestLoader }; obj69.Steps = list102; reference74 = obj69; - num++; - ref QuestSequence reference75 = ref span101[num]; + ref QuestSequence reference75 = ref span27[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -399717,92 +329174,66 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { StopDistance = 5f }; obj70.Steps = list103; reference75 = obj70; - num++; - ref QuestSequence reference76 = ref span101[num]; + ref QuestSequence reference76 = ref span27[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list104 = new List(index2); - CollectionsMarshal.SetCount(list104, index2); - Span span104 = CollectionsMarshal.AsSpan(list104); - num2 = 0; - ref QuestStep reference77 = ref span104[num2]; + num2 = 3; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + Span span28 = CollectionsMarshal.AsSpan(list104); + ref QuestStep reference77 = ref span28[0]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list105; reference77 = questStep6; - num2++; - ref QuestStep reference78 = ref span104[num2]; + ref QuestStep reference78 = ref span28[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048285u, new Vector3(-21.316895f, 5.504703f, 37.64392f), 418); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list106; reference78 = questStep7; - num2++; - ref QuestStep reference79 = ref span104[num2]; + ref QuestStep reference79 = ref span28[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list107; - index3 = 1; - List list108 = new List(index3); - CollectionsMarshal.SetCount(list108, index3); - Span span108 = CollectionsMarshal.AsSpan(list108); - num3 = 0; - span108[num3] = new DialogueChoice + num3 = 1; + List list108 = new List(num3); + CollectionsMarshal.SetCount(list108, num3); + CollectionsMarshal.AsSpan(list108)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA141_04822_Q1_000_000"), @@ -399812,8 +329243,7 @@ public static class AssemblyQuestLoader reference79 = questStep8; obj71.Steps = list104; reference76 = obj71; - num++; - ref QuestSequence reference80 = ref span101[num]; + ref QuestSequence reference80 = ref span27[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 @@ -399821,9 +329251,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AethernetShortcut = new AethernetShortcut { @@ -399833,25 +329261,20 @@ public static class AssemblyQuestLoader }; obj72.Steps = list109; reference80 = obj72; - num++; - ref QuestSequence reference81 = ref span101[num]; + ref QuestSequence reference81 = ref span27[4]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference82 = ref span110[num2]; + num2 = 1; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + ref QuestStep reference82 = ref CollectionsMarshal.AsSpan(list110)[0]; 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); - Span span111 = CollectionsMarshal.AsSpan(list111); - index3 = 0; - span111[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list111)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA141_04822_Q3_000_000"), @@ -399869,16 +329292,13 @@ public static class AssemblyQuestLoader num = 1; List list112 = new List(num); CollectionsMarshal.SetCount(list112, num); - Span span112 = CollectionsMarshal.AsSpan(list112); - index = 0; - span112[index] = "liza"; + CollectionsMarshal.AsSpan(list112)[0] = "liza"; questRoot15.Author = list112; - index = 7; - List list113 = new List(index); - CollectionsMarshal.SetCount(list113, index); - Span span113 = CollectionsMarshal.AsSpan(list113); - num = 0; - ref QuestSequence reference83 = ref span113[num]; + num = 7; + List list113 = new List(num); + CollectionsMarshal.SetCount(list113, num); + Span span32 = CollectionsMarshal.AsSpan(list113); + ref QuestSequence reference83 = ref span32[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -399886,9 +329306,7 @@ public static class AssemblyQuestLoader num2 = 1; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - span114[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) + CollectionsMarshal.AsSpan(list114)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048257u, new Vector3(39.81079f, 23.979128f, -48.17273f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, SkipConditions = new SkipConditions @@ -399901,25 +329319,21 @@ public static class AssemblyQuestLoader }; obj74.Steps = list114; reference83 = obj74; - num++; - ref QuestSequence reference84 = ref span113[num]; + ref QuestSequence reference84 = ref span32[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SeaOfCloudsOkZundu }; obj75.Steps = list115; reference84 = obj75; - num++; - ref QuestSequence reference85 = ref span113[num]; + ref QuestSequence reference85 = ref span32[2]; QuestSequence obj76 = new QuestSequence { Sequence = 2 @@ -399927,39 +329341,32 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048288u, new Vector3(-576.3485f, -52.88129f, -418.6618f), 401) + CollectionsMarshal.AsSpan(list116)[0] = 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; - num++; - span113[num] = new QuestSequence + span32[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference86 = ref span113[num]; + ref QuestSequence reference86 = ref span32[4]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj77.Steps = list117; reference86 = obj77; - num++; - ref QuestSequence reference87 = ref span113[num]; + ref QuestSequence reference87 = ref span32[5]; QuestSequence obj78 = new QuestSequence { Sequence = 5 @@ -399967,9 +329374,7 @@ public static class AssemblyQuestLoader num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1012163u, new Vector3(128.25195f, 24.458832f, -0.6867676f), 418) { AetheryteShortcut = EAetheryteLocation.Ishgard, AethernetShortcut = new AethernetShortcut @@ -399980,18 +329385,15 @@ public static class AssemblyQuestLoader }; obj78.Steps = list118; reference87 = obj78; - num++; - ref QuestSequence reference88 = ref span113[num]; + ref QuestSequence reference88 = ref span32[6]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -400009,16 +329411,13 @@ public static class AssemblyQuestLoader num = 1; List list120 = new List(num); CollectionsMarshal.SetCount(list120, num); - Span span120 = CollectionsMarshal.AsSpan(list120); - index = 0; - span120[index] = "liza"; + CollectionsMarshal.AsSpan(list120)[0] = "liza"; questRoot16.Author = list120; - index = 8; - List list121 = new List(index); - CollectionsMarshal.SetCount(list121, index); - Span span121 = CollectionsMarshal.AsSpan(list121); - num = 0; - ref QuestSequence reference89 = ref span121[num]; + num = 8; + List list121 = new List(num); + CollectionsMarshal.SetCount(list121, num); + Span span33 = CollectionsMarshal.AsSpan(list121); + ref QuestSequence reference89 = ref span33[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -400026,9 +329425,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -400041,18 +329438,15 @@ public static class AssemblyQuestLoader }; obj80.Steps = list122; reference89 = obj80; - num++; - ref QuestSequence reference90 = ref span121[num]; + ref QuestSequence reference90 = ref span33[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, AethernetShortcut = new AethernetShortcut @@ -400063,8 +329457,7 @@ public static class AssemblyQuestLoader }; obj81.Steps = list123; reference90 = obj81; - num++; - ref QuestSequence reference91 = ref span121[num]; + ref QuestSequence reference91 = ref span33[2]; QuestSequence obj82 = new QuestSequence { Sequence = 2 @@ -400072,11 +329465,9 @@ public static class AssemblyQuestLoader num2 = 2; 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(-387.69412f, 5.999984f, 41.170013f), 129); - index2++; - span124[index2] = new QuestStep(EInteractionType.Interact, 1046292u, new Vector3(-195.36127f, 19.999954f, 112.962524f), 129) + 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) { AethernetShortcut = new AethernetShortcut { @@ -400086,83 +329477,60 @@ public static class AssemblyQuestLoader }; obj82.Steps = list124; reference91 = obj82; - num++; - ref QuestSequence reference92 = ref span121[num]; + ref QuestSequence reference92 = ref span33[3]; QuestSequence obj83 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list125 = new List(index2); - CollectionsMarshal.SetCount(list125, index2); - Span span125 = CollectionsMarshal.AsSpan(list125); - num2 = 0; - ref QuestStep reference93 = ref span125[num2]; + num2 = 3; + List list125 = new List(num2); + CollectionsMarshal.SetCount(list125, num2); + Span span35 = CollectionsMarshal.AsSpan(list125); + ref QuestStep reference93 = ref span35[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1001540u, new Vector3(-202.68567f, 16f, 56.99243f), 129); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list126; reference93 = questStep10; - num2++; - ref QuestStep reference94 = ref span125[num2]; + ref QuestStep reference94 = ref span35[1]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list127; reference94 = questStep11; - num2++; - ref QuestStep reference95 = ref span125[num2]; + ref QuestStep reference95 = ref span35[2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1003277u, new Vector3(-136.67511f, 18.2f, 16.494995f), 129); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list128; reference95 = questStep12; obj83.Steps = list125; reference92 = obj83; - num++; - ref QuestSequence reference96 = ref span121[num]; + ref QuestSequence reference96 = ref span33[4]; QuestSequence obj84 = new QuestSequence { Sequence = 4 @@ -400170,9 +329538,7 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1046293u, new Vector3(-143.35852f, 3.9999998f, 189.6543f), 129) + CollectionsMarshal.AsSpan(list129)[0] = new QuestStep(EInteractionType.Interact, 1046293u, new Vector3(-143.35852f, 3.9999998f, 189.6543f), 129) { AethernetShortcut = new AethernetShortcut { @@ -400182,25 +329548,21 @@ public static class AssemblyQuestLoader }; obj84.Steps = list129; reference96 = obj84; - num++; - ref QuestSequence reference97 = ref span121[num]; + ref QuestSequence reference97 = ref span33[5]; QuestSequence obj85 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 1f }; obj85.Steps = list130; reference97 = obj85; - num++; - ref QuestSequence reference98 = ref span121[num]; + ref QuestSequence reference98 = ref span33[6]; QuestSequence obj86 = new QuestSequence { Sequence = 6 @@ -400208,27 +329570,22 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.Action, 1046296u, new Vector3(-114.42743f, 20f, 111.283936f), 129) + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.Action, 1046296u, new Vector3(-114.42743f, 20f, 111.283936f), 129) { StopDistance = 10f, Action = EAction.Esuna }; obj86.Steps = list131; reference98 = obj86; - num++; - ref QuestSequence reference99 = ref span121[num]; + ref QuestSequence reference99 = ref span33[7]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4825) }; @@ -400241,16 +329598,13 @@ public static class AssemblyQuestLoader num = 1; List list133 = new List(num); CollectionsMarshal.SetCount(list133, num); - Span span133 = CollectionsMarshal.AsSpan(list133); - index = 0; - span133[index] = "liza"; + CollectionsMarshal.AsSpan(list133)[0] = "liza"; questRoot17.Author = list133; - index = 7; - List list134 = new List(index); - CollectionsMarshal.SetCount(list134, index); - Span span134 = CollectionsMarshal.AsSpan(list134); - num = 0; - ref QuestSequence reference100 = ref span134[num]; + num = 7; + List list134 = new List(num); + CollectionsMarshal.SetCount(list134, num); + Span span39 = CollectionsMarshal.AsSpan(list134); + ref QuestSequence reference100 = ref span39[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -400258,9 +329612,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -400273,25 +329625,21 @@ public static class AssemblyQuestLoader }; obj88.Steps = list135; reference100 = obj88; - num++; - ref QuestSequence reference101 = ref span134[num]; + ref QuestSequence reference101 = ref span39[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj89.Steps = list136; reference101 = obj89; - num++; - ref QuestSequence reference102 = ref span134[num]; + ref QuestSequence reference102 = ref span39[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 @@ -400299,26 +329647,21 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.Interact, 1046297u, new Vector3(211.68835f, -25.006758f, 230.85376f), 138) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.Interact, 1046297u, new Vector3(211.68835f, -25.006758f, 230.85376f), 138) { Fly = true }; obj90.Steps = list137; reference102 = obj90; - num++; - ref QuestSequence reference103 = ref span134[num]; + ref QuestSequence reference103 = ref span39[3]; QuestSequence obj91 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list138 = new List(index2); - CollectionsMarshal.SetCount(list138, index2); - Span span138 = CollectionsMarshal.AsSpan(list138); - num2 = 0; - ref QuestStep reference104 = ref span138[num2]; + num2 = 1; + List list138 = new List(num2); + CollectionsMarshal.SetCount(list138, num2); + ref QuestStep reference104 = ref CollectionsMarshal.AsSpan(list138)[0]; QuestStep obj92 = new QuestStep(EInteractionType.Combat, null, new Vector3(465.86716f, 11.231914f, 326.10486f), 138) { StopDistance = 0.25f, @@ -400328,17 +329671,14 @@ public static class AssemblyQuestLoader num3 = 2; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - Span span139 = CollectionsMarshal.AsSpan(list139); - index3 = 0; - span139[index3] = 17612u; - index3++; - span139[index3] = 17613u; + Span span40 = CollectionsMarshal.AsSpan(list139); + span40[0] = 17612u; + span40[1] = 17613u; obj92.KillEnemyDataIds = list139; reference104 = obj92; obj91.Steps = list138; reference103 = obj91; - num++; - ref QuestSequence reference105 = ref span134[num]; + ref QuestSequence reference105 = ref span39[4]; QuestSequence obj93 = new QuestSequence { Sequence = 4 @@ -400346,34 +329686,28 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.Interact, 1046302u, new Vector3(465.50684f, 11.444184f, 330.89185f), 138) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.Interact, 1046302u, new Vector3(465.50684f, 11.444184f, 330.89185f), 138) { StopDistance = 7f }; obj93.Steps = list140; reference105 = obj93; - num++; - ref QuestSequence reference106 = ref span134[num]; + ref QuestSequence reference106 = ref span39[5]; QuestSequence obj94 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 10f, Action = EAction.Esuna }; obj94.Steps = list141; reference106 = obj94; - num++; - ref QuestSequence reference107 = ref span134[num]; + ref QuestSequence reference107 = ref span39[6]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -400381,9 +329715,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4826) @@ -400397,26 +329729,21 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot18.Author = list143; - index = 6; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference108 = ref span144[num]; + num = 6; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span41 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference108 = ref span41[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -400429,8 +329756,7 @@ public static class AssemblyQuestLoader }; obj96.Steps = list145; reference108 = obj96; - num++; - ref QuestSequence reference109 = ref span144[num]; + ref QuestSequence reference109 = ref span41[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -400438,33 +329764,27 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135) + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135) { AetheryteShortcut = EAetheryteLocation.LowerLaNosceaMorabyDrydocks }; obj97.Steps = list146; reference109 = obj97; - num++; - ref QuestSequence reference110 = ref span144[num]; + ref QuestSequence reference110 = ref span41[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj98.Steps = list147; reference110 = obj98; - num++; - ref QuestSequence reference111 = ref span144[num]; + ref QuestSequence reference111 = ref span41[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -400472,33 +329792,26 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1046308u, new Vector3(217.39526f, 14.096056f, 658.7776f), 135) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1046308u, new Vector3(217.39526f, 14.096056f, 658.7776f), 135) { Fly = true }; obj99.Steps = list148; reference111 = obj99; - num++; - ref QuestSequence reference112 = ref span144[num]; + ref QuestSequence reference112 = ref span41[4]; QuestSequence obj100 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list149 = new List(index2); - CollectionsMarshal.SetCount(list149, index2); - Span span149 = CollectionsMarshal.AsSpan(list149); - num2 = 0; - ref QuestStep reference113 = ref span149[num2]; + num2 = 1; + List list149 = new List(num2); + CollectionsMarshal.SetCount(list149, num2); + ref QuestStep reference113 = ref CollectionsMarshal.AsSpan(list149)[0]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1046307u, new Vector3(216.84595f, 14.096056f, 660.3646f), 135); - index3 = 1; - List list150 = new List(index3); - CollectionsMarshal.SetCount(list150, index3); - Span span150 = CollectionsMarshal.AsSpan(list150); - num3 = 0; - span150[num3] = new DialogueChoice + num3 = 1; + List list150 = new List(num3); + CollectionsMarshal.SetCount(list150, num3); + CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA221_04826_Q1_000_048"), @@ -400508,8 +329821,7 @@ public static class AssemblyQuestLoader reference113 = questStep13; obj100.Steps = list149; reference112 = obj100; - num++; - ref QuestSequence reference114 = ref span144[num]; + ref QuestSequence reference114 = ref span41[5]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -400517,9 +329829,7 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4827) @@ -400533,26 +329843,21 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "liza"; + CollectionsMarshal.AsSpan(list152)[0] = "liza"; questRoot19.Author = list152; - index = 6; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference115 = ref span153[num]; + num = 6; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span42 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference115 = ref span42[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -400565,8 +329870,7 @@ public static class AssemblyQuestLoader }; obj102.Steps = list154; reference115 = obj102; - num++; - ref QuestSequence reference116 = ref span153[num]; + ref QuestSequence reference116 = ref span42[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -400574,33 +329878,27 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1046310u, new Vector3(268.39087f, -25f, 264.05737f), 138) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1046310u, new Vector3(268.39087f, -25f, 264.05737f), 138) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj103.Steps = list155; reference116 = obj103; - num++; - ref QuestSequence reference117 = ref span153[num]; + ref QuestSequence reference117 = ref span42[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UpperLaNosceaCampBronzeLake }; obj104.Steps = list156; reference117 = obj104; - num++; - ref QuestSequence reference118 = ref span153[num]; + ref QuestSequence reference118 = ref span42[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -400608,9 +329906,8 @@ public static class AssemblyQuestLoader num2 = 3; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - ref QuestStep reference119 = ref span157[index2]; + Span span43 = CollectionsMarshal.AsSpan(list157); + ref QuestStep reference119 = ref span43[0]; QuestStep obj106 = new QuestStep(EInteractionType.Action, 1046314u, new Vector3(457.60278f, 4.1072555f, 103.89868f), 139) { Action = EAction.Esuna @@ -400618,47 +329915,33 @@ public static class AssemblyQuestLoader num3 = 6; List list158 = new List(num3); CollectionsMarshal.SetCount(list158, num3); - 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); + 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); obj106.CompletionQuestVariablesFlags = list158; reference119 = obj106; - index2++; - ref QuestStep reference120 = ref span157[index2]; + ref QuestStep reference120 = ref span43[1]; QuestStep obj107 = new QuestStep(EInteractionType.Action, 1046313u, new Vector3(432.6084f, 8.108173f, 133.80627f), 139) { Action = EAction.Esuna }; - 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); + 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); obj107.CompletionQuestVariablesFlags = list159; reference120 = obj107; - index2++; - ref QuestStep reference121 = ref span157[index2]; + ref QuestStep reference121 = ref span43[2]; QuestStep obj108 = new QuestStep(EInteractionType.Action, 1046312u, new Vector3(413.0464f, 3.616333f, 113.969604f), 139) { Action = EAction.Esuna @@ -400666,39 +329949,29 @@ public static class AssemblyQuestLoader num3 = 6; List list160 = new List(num3); CollectionsMarshal.SetCount(list160, num3); - 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); + 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); obj108.CompletionQuestVariablesFlags = list160; reference121 = obj108; obj105.Steps = list157; reference118 = obj105; - num++; - ref QuestSequence reference122 = ref span153[num]; + ref QuestSequence reference122 = ref span42[4]; QuestSequence obj109 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj109.Steps = list161; reference122 = obj109; - num++; - ref QuestSequence reference123 = ref span153[num]; + ref QuestSequence reference123 = ref span42[5]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -400706,9 +329979,7 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4828) @@ -400722,26 +329993,21 @@ public static class AssemblyQuestLoader num = 1; List list163 = new List(num); CollectionsMarshal.SetCount(list163, num); - Span span163 = CollectionsMarshal.AsSpan(list163); - index = 0; - span163[index] = "liza"; + CollectionsMarshal.AsSpan(list163)[0] = "liza"; questRoot20.Author = list163; - index = 8; - List list164 = new List(index); - CollectionsMarshal.SetCount(list164, index); - Span span164 = CollectionsMarshal.AsSpan(list164); - num = 0; - ref QuestSequence reference124 = ref span164[num]; + num = 8; + List list164 = new List(num); + CollectionsMarshal.SetCount(list164, num); + Span span47 = CollectionsMarshal.AsSpan(list164); + ref QuestSequence reference124 = ref span47[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -400754,8 +330020,7 @@ public static class AssemblyQuestLoader }; obj111.Steps = list165; reference124 = obj111; - num++; - ref QuestSequence reference125 = ref span164[num]; + ref QuestSequence reference125 = ref span47[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 @@ -400763,19 +330028,15 @@ public static class AssemblyQuestLoader num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span166 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - ref QuestStep reference126 = ref span166[index2]; + ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list166)[0]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1046317u, new Vector3(570.18384f, 20.721313f, 451.34656f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; - index3 = 1; - List list167 = new List(index3); - CollectionsMarshal.SetCount(list167, index3); - Span span167 = CollectionsMarshal.AsSpan(list167); - num3 = 0; - span167[num3] = new DialogueChoice + num3 = 1; + List list167 = new List(num3); + CollectionsMarshal.SetCount(list167, num3); + CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA241_04828_Q1_000_013"), @@ -400785,22 +330046,18 @@ public static class AssemblyQuestLoader reference126 = obj113; obj112.Steps = list166; reference125 = obj112; - num++; - ref QuestSequence reference127 = ref span164[num]; + ref QuestSequence reference127 = ref span47[2]; QuestSequence obj114 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj114.Steps = list168; reference127 = obj114; - num++; - ref QuestSequence reference128 = ref span164[num]; + ref QuestSequence reference128 = ref span47[3]; QuestSequence obj115 = new QuestSequence { Sequence = 3 @@ -400808,9 +330065,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - ref QuestStep reference129 = ref span169[index2]; + ref QuestStep reference129 = ref CollectionsMarshal.AsSpan(list169)[0]; QuestStep obj116 = new QuestStep(EInteractionType.Combat, 2013561u, new Vector3(-220.44714f, 35.78235f, 268.05518f), 137) { StopDistance = 0.25f, @@ -400822,33 +330077,26 @@ public static class AssemblyQuestLoader num3 = 3; List list170 = new List(num3); CollectionsMarshal.SetCount(list170, num3); - Span span170 = CollectionsMarshal.AsSpan(list170); - index3 = 0; - span170[index3] = 17614u; - index3++; - span170[index3] = 17615u; - index3++; - span170[index3] = 17616u; + Span span48 = CollectionsMarshal.AsSpan(list170); + span48[0] = 17614u; + span48[1] = 17615u; + span48[2] = 17616u; obj116.KillEnemyDataIds = list170; reference129 = obj116; obj115.Steps = list169; reference128 = obj115; - num++; - ref QuestSequence reference130 = ref span164[num]; + ref QuestSequence reference130 = ref span47[4]; QuestSequence obj117 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj117.Steps = list171; reference130 = obj117; - num++; - ref QuestSequence reference131 = ref span164[num]; + ref QuestSequence reference131 = ref span47[5]; QuestSequence obj118 = new QuestSequence { Sequence = 5 @@ -400856,30 +330104,24 @@ public static class AssemblyQuestLoader num2 = 1; List list172 = new List(num2); CollectionsMarshal.SetCount(list172, num2); - Span span172 = CollectionsMarshal.AsSpan(list172); - index2 = 0; - span172[index2] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); + CollectionsMarshal.AsSpan(list172)[0] = new QuestStep(EInteractionType.Interact, 1046318u, new Vector3(-98.95477f, 34.20764f, 220.44702f), 137); obj118.Steps = list172; reference131 = obj118; - num++; - ref QuestSequence reference132 = ref span164[num]; + ref QuestSequence reference132 = ref span47[6]; QuestSequence obj119 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj119.Steps = list173; reference132 = obj119; - num++; - ref QuestSequence reference133 = ref span164[num]; + ref QuestSequence reference133 = ref span47[7]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -400887,9 +330129,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046290u, new Vector3(-114.091736f, 20f, 111.436646f), 129) { AetheryteShortcut = EAetheryteLocation.Limsa, NextQuestId = new QuestId(4829) @@ -400903,26 +330143,21 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "liza"; + CollectionsMarshal.AsSpan(list175)[0] = "liza"; questRoot21.Author = list175; - index = 7; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference134 = ref span176[num]; + num = 7; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span49 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference134 = ref span49[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Limsa, SkipConditions = new SkipConditions @@ -400935,8 +330170,7 @@ public static class AssemblyQuestLoader }; obj121.Steps = list177; reference134 = obj121; - num++; - ref QuestSequence reference135 = ref span176[num]; + ref QuestSequence reference135 = ref span49[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -400944,35 +330178,28 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) { AetheryteShortcut = EAetheryteLocation.EasternLaNosceaWineport }; obj122.Steps = list178; reference135 = obj122; - num++; - ref QuestSequence reference136 = ref span176[num]; + ref QuestSequence reference136 = ref span49[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj123.Steps = list179; reference136 = obj123; - num++; - span176[num] = new QuestSequence + span49[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference137 = ref span176[num]; + ref QuestSequence reference137 = ref span49[4]; QuestSequence obj124 = new QuestSequence { Sequence = 4 @@ -400980,33 +330207,27 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Interact, 1046319u, new Vector3(-335.3476f, 69.418495f, 155.87085f), 137) { StopDistance = 5f }; obj124.Steps = list180; reference137 = obj124; - num++; - ref QuestSequence reference138 = ref span176[num]; + ref QuestSequence reference138 = ref span49[5]; QuestSequence obj125 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.WesternLaNosceaAleport }; obj125.Steps = list181; reference138 = obj125; - num++; - ref QuestSequence reference139 = ref span176[num]; + ref QuestSequence reference139 = ref span49[6]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue @@ -401014,9 +330235,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046289u, new Vector3(-64.62195f, -17.95485f, 201.28174f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -401034,26 +330253,21 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot22.Author = list183; - index = 7; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference140 = ref span184[num]; + num = 7; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span50 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference140 = ref span50[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -401066,8 +330280,7 @@ public static class AssemblyQuestLoader }; obj127.Steps = list185; reference140 = obj127; - num++; - ref QuestSequence reference141 = ref span184[num]; + ref QuestSequence reference141 = ref span50[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 @@ -401075,9 +330288,8 @@ public static class AssemblyQuestLoader num2 = 3; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - ref QuestStep reference142 = ref span186[index2]; + Span span51 = CollectionsMarshal.AsSpan(list186); + ref QuestStep reference142 = ref span51[0]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1019038u, new Vector3(-55.222473f, -2.9000003f, -65.65961f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -401094,84 +330306,60 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj129.CompletionQuestVariablesFlags = list187; reference142 = obj129; - index2++; - ref QuestStep reference143 = ref span186[index2]; + ref QuestStep reference143 = ref span51[1]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list188; reference143 = questStep14; - index2++; - ref QuestStep reference144 = ref span186[index2]; + ref QuestStep reference144 = ref span51[2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1019069u, new Vector3(-62.119568f, 8f, -56.62628f), 628); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list189; reference144 = questStep15; obj128.Steps = list186; reference141 = obj128; - num++; - ref QuestSequence reference145 = ref span184[num]; + ref QuestSequence reference145 = ref span50[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj130.Steps = list190; reference145 = obj130; - num++; - ref QuestSequence reference146 = ref span184[num]; + ref QuestSequence reference146 = ref span50[3]; QuestSequence obj131 = new QuestSequence { Sequence = 3 @@ -401179,23 +330367,18 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.Interact, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.Interact, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628); obj131.Steps = list191; reference146 = obj131; - num++; - ref QuestSequence reference147 = ref span184[num]; + ref QuestSequence reference147 = ref span50[4]; QuestSequence obj132 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -401205,8 +330388,7 @@ public static class AssemblyQuestLoader }; obj132.Steps = list192; reference147 = obj132; - num++; - ref QuestSequence reference148 = ref span184[num]; + ref QuestSequence reference148 = ref span50[5]; QuestSequence obj133 = new QuestSequence { Sequence = 5 @@ -401214,9 +330396,7 @@ public static class AssemblyQuestLoader num2 = 1; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - Span span193 = CollectionsMarshal.AsSpan(list193); - index2 = 0; - span193[index2] = new QuestStep(EInteractionType.Interact, 2013690u, new Vector3(14.114502f, 3.982544f, 43.411865f), 628) + CollectionsMarshal.AsSpan(list193)[0] = new QuestStep(EInteractionType.Interact, 2013690u, new Vector3(14.114502f, 3.982544f, 43.411865f), 628) { AethernetShortcut = new AethernetShortcut { @@ -401226,18 +330406,15 @@ public static class AssemblyQuestLoader }; obj133.Steps = list193; reference148 = obj133; - num++; - ref QuestSequence reference149 = ref span184[num]; + ref QuestSequence reference149 = ref span50[6]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -401255,16 +330432,13 @@ public static class AssemblyQuestLoader num = 1; List list195 = new List(num); CollectionsMarshal.SetCount(list195, num); - Span span195 = CollectionsMarshal.AsSpan(list195); - index = 0; - span195[index] = "liza"; + CollectionsMarshal.AsSpan(list195)[0] = "liza"; questRoot23.Author = list195; - index = 6; - List list196 = new List(index); - CollectionsMarshal.SetCount(list196, index); - Span span196 = CollectionsMarshal.AsSpan(list196); - num = 0; - ref QuestSequence reference150 = ref span196[num]; + num = 6; + List list196 = new List(num); + CollectionsMarshal.SetCount(list196, num); + Span span55 = CollectionsMarshal.AsSpan(list196); + ref QuestSequence reference150 = ref span55[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -401272,9 +330446,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - ref QuestStep reference151 = ref span197[index2]; + ref QuestStep reference151 = ref CollectionsMarshal.AsSpan(list197)[0]; QuestStep obj136 = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, @@ -401289,9 +330461,7 @@ public static class AssemblyQuestLoader num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span198 = CollectionsMarshal.AsSpan(list198); - index3 = 0; - span198[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list198)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA311_04831_Q2_000_000"), @@ -401301,18 +330471,15 @@ public static class AssemblyQuestLoader reference151 = obj136; obj135.Steps = list197; reference150 = obj135; - num++; - ref QuestSequence reference152 = ref span196[num]; + ref QuestSequence reference152 = ref span55[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -401322,8 +330489,7 @@ public static class AssemblyQuestLoader }; obj137.Steps = list199; reference152 = obj137; - num++; - ref QuestSequence reference153 = ref span196[num]; + ref QuestSequence reference153 = ref span55[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -401331,67 +330497,49 @@ public static class AssemblyQuestLoader num2 = 2; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - ref QuestStep reference154 = ref span200[index2]; + Span span56 = CollectionsMarshal.AsSpan(list200); + ref QuestStep reference154 = ref span56[0]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1019169u, new Vector3(476.82898f, 30.113333f, 763.546f), 613); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list201; reference154 = questStep16; - index2++; - ref QuestStep reference155 = ref span200[index2]; + ref QuestStep reference155 = ref span56[1]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list202; reference155 = questStep17; obj138.Steps = list200; reference153 = obj138; - num++; - ref QuestSequence reference156 = ref span196[num]; + ref QuestSequence reference156 = ref span55[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj139.Steps = list203; reference156 = obj139; - num++; - ref QuestSequence reference157 = ref span196[num]; + ref QuestSequence reference157 = ref span55[4]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -401399,28 +330547,23 @@ public static class AssemblyQuestLoader num2 = 2; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(426.16245f, 0.7213422f, 195.08597f), 613) + Span span59 = CollectionsMarshal.AsSpan(list204); + span59[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(426.16245f, 0.7213422f, 195.08597f), 613) { Fly = true }; - index2++; - span204[index2] = new QuestStep(EInteractionType.Interact, 1048301u, new Vector3(427.78674f, 0.5689501f, 195.39172f), 613); + span59[1] = new QuestStep(EInteractionType.Interact, 1048301u, new Vector3(427.78674f, 0.5689501f, 195.39172f), 613); obj140.Steps = list204; reference157 = obj140; - num++; - ref QuestSequence reference158 = ref span196[num]; + ref QuestSequence reference158 = ref span55[5]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -401439,16 +330582,13 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "liza"; + CollectionsMarshal.AsSpan(list206)[0] = "liza"; questRoot24.Author = list206; - index = 5; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference159 = ref span207[num]; + num = 5; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span60 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference159 = ref span60[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -401456,9 +330596,7 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -401471,18 +330609,16 @@ public static class AssemblyQuestLoader }; obj142.Steps = list208; reference159 = obj142; - num++; - ref QuestSequence reference160 = ref span207[num]; + ref QuestSequence reference160 = ref span60[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list209 = new List(index2); - CollectionsMarshal.SetCount(list209, index2); - Span span209 = CollectionsMarshal.AsSpan(list209); - num2 = 0; - ref QuestStep reference161 = ref span209[num2]; + num2 = 3; + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + Span span61 = CollectionsMarshal.AsSpan(list209); + ref QuestStep reference161 = ref span61[0]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1019260u, new Vector3(417.5935f, 68.02854f, -110.24652f), 614) { AetheryteShortcut = EAetheryteLocation.YanxiaNamai, @@ -401494,70 +330630,49 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj144.CompletionQuestVariablesFlags = list210; reference161 = obj144; - num2++; - ref QuestStep reference162 = ref span209[num2]; + ref QuestStep reference162 = ref span61[1]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list211; reference162 = questStep18; - num2++; - ref QuestStep reference163 = ref span209[num2]; + ref QuestStep reference163 = ref span61[2]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1019262u, new Vector3(445.76172f, 58.67623f, -155.62683f), 614); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list212; reference163 = questStep19; obj143.Steps = list209; reference160 = obj143; - num++; - ref QuestSequence reference164 = ref span207[num]; + ref QuestSequence reference164 = ref span60[2]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -401565,34 +330680,28 @@ public static class AssemblyQuestLoader num2 = 1; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 1048302u, new Vector3(399.95422f, 76.04927f, -114.885254f), 614) + CollectionsMarshal.AsSpan(list213)[0] = new QuestStep(EInteractionType.Interact, 1048302u, new Vector3(399.95422f, 76.04927f, -114.885254f), 614) { StopDistance = 0.5f, Fly = true }; obj145.Steps = list213; reference164 = obj145; - num++; - ref QuestSequence reference165 = ref span207[num]; + ref QuestSequence reference165 = ref span60[3]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj146.Steps = list214; reference165 = obj146; - num++; - ref QuestSequence reference166 = ref span207[num]; + ref QuestSequence reference166 = ref span60[4]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -401600,9 +330709,7 @@ public static class AssemblyQuestLoader num2 = 1; List list215 = new List(num2); CollectionsMarshal.SetCount(list215, num2); - Span span215 = CollectionsMarshal.AsSpan(list215); - index2 = 0; - span215[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + CollectionsMarshal.AsSpan(list215)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048296u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -401621,26 +330728,21 @@ public static class AssemblyQuestLoader num = 1; List list216 = new List(num); CollectionsMarshal.SetCount(list216, num); - Span span216 = CollectionsMarshal.AsSpan(list216); - index = 0; - span216[index] = "liza"; + CollectionsMarshal.AsSpan(list216)[0] = "liza"; questRoot25.Author = list216; - index = 5; - List list217 = new List(index); - CollectionsMarshal.SetCount(list217, index); - Span span217 = CollectionsMarshal.AsSpan(list217); - num = 0; - ref QuestSequence reference167 = ref span217[num]; + num = 5; + List list217 = new List(num); + CollectionsMarshal.SetCount(list217, num); + Span span65 = CollectionsMarshal.AsSpan(list217); + ref QuestSequence reference167 = ref span65[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -401653,8 +330755,7 @@ public static class AssemblyQuestLoader }; obj148.Steps = list218; reference167 = obj148; - num++; - ref QuestSequence reference168 = ref span217[num]; + ref QuestSequence reference168 = ref span65[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -401662,9 +330763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.Interact, 2013691u, new Vector3(203.8147f, 12.069824f, 773.0067f), 613) + CollectionsMarshal.AsSpan(list219)[0] = new QuestStep(EInteractionType.Interact, 2013691u, new Vector3(203.8147f, 12.069824f, 773.0067f), 613) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -401675,18 +330774,15 @@ public static class AssemblyQuestLoader }; obj149.Steps = list219; reference168 = obj149; - num++; - ref QuestSequence reference169 = ref span217[num]; + ref QuestSequence reference169 = ref span65[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list220 = new List(index2); - CollectionsMarshal.SetCount(list220, index2); - Span span220 = CollectionsMarshal.AsSpan(list220); - num2 = 0; - ref QuestStep reference170 = ref span220[num2]; + num2 = 1; + List list220 = new List(num2); + CollectionsMarshal.SetCount(list220, num2); + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list220)[0]; QuestStep obj151 = new QuestStep(EInteractionType.Combat, 2013692u, new Vector3(138.59766f, 9.292725f, 676.6002f), 613) { Fly = true, @@ -401695,19 +330791,15 @@ public static class AssemblyQuestLoader num3 = 3; List list221 = new List(num3); CollectionsMarshal.SetCount(list221, num3); - Span span221 = CollectionsMarshal.AsSpan(list221); - index3 = 0; - span221[index3] = 17617u; - index3++; - span221[index3] = 17618u; - index3++; - span221[index3] = 17619u; + Span span66 = CollectionsMarshal.AsSpan(list221); + span66[0] = 17617u; + span66[1] = 17618u; + span66[2] = 17619u; obj151.KillEnemyDataIds = list221; reference170 = obj151; obj150.Steps = list220; reference169 = obj150; - num++; - ref QuestSequence reference171 = ref span217[num]; + ref QuestSequence reference171 = ref span65[3]; QuestSequence obj152 = new QuestSequence { Sequence = 3 @@ -401715,26 +330807,21 @@ public static class AssemblyQuestLoader num2 = 1; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - Span span222 = CollectionsMarshal.AsSpan(list222); - index2 = 0; - span222[index2] = new QuestStep(EInteractionType.Interact, 2013693u, new Vector3(167.89502f, 2.1209717f, 561.27246f), 613) + CollectionsMarshal.AsSpan(list222)[0] = new QuestStep(EInteractionType.Interact, 2013693u, new Vector3(167.89502f, 2.1209717f, 561.27246f), 613) { Fly = true }; obj152.Steps = list222; reference171 = obj152; - num++; - ref QuestSequence reference172 = ref span217[num]; + ref QuestSequence reference172 = ref span65[4]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -401753,16 +330840,13 @@ public static class AssemblyQuestLoader num = 1; List list224 = new List(num); CollectionsMarshal.SetCount(list224, num); - Span span224 = CollectionsMarshal.AsSpan(list224); - index = 0; - span224[index] = "liza"; + CollectionsMarshal.AsSpan(list224)[0] = "liza"; questRoot26.Author = list224; - index = 7; - List list225 = new List(index); - CollectionsMarshal.SetCount(list225, index); - Span span225 = CollectionsMarshal.AsSpan(list225); - num = 0; - ref QuestSequence reference173 = ref span225[num]; + num = 7; + List list225 = new List(num); + CollectionsMarshal.SetCount(list225, num); + Span span67 = CollectionsMarshal.AsSpan(list225); + ref QuestSequence reference173 = ref span67[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 @@ -401770,9 +330854,7 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048297u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -401785,18 +330867,16 @@ public static class AssemblyQuestLoader }; obj154.Steps = list226; reference173 = obj154; - num++; - ref QuestSequence reference174 = ref span225[num]; + ref QuestSequence reference174 = ref span67[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -401804,12 +330884,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.KuganeMarkets } }; - num2++; - span227[num2] = new QuestStep(EInteractionType.Interact, 1018984u, new Vector3(42.34375f, 4.8365364f, 73.83838f), 628); + span68[1] = new QuestStep(EInteractionType.Interact, 1018984u, new Vector3(42.34375f, 4.8365364f, 73.83838f), 628); obj155.Steps = list227; reference174 = obj155; - num++; - ref QuestSequence reference175 = ref span225[num]; + ref QuestSequence reference175 = ref span67[2]; QuestSequence obj156 = new QuestSequence { Sequence = 2 @@ -401817,23 +330895,18 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 1019065u, new Vector3(80.49133f, 4f, 56.443115f), 628); obj156.Steps = list228; reference175 = obj156; - num++; - ref QuestSequence reference176 = ref span225[num]; + ref QuestSequence reference176 = ref span67[3]; QuestSequence obj157 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RubySeaOnokoro, @@ -401841,8 +330914,7 @@ public static class AssemblyQuestLoader }; obj157.Steps = list229; reference176 = obj157; - num++; - ref QuestSequence reference177 = ref span225[num]; + ref QuestSequence reference177 = ref span67[4]; QuestSequence obj158 = new QuestSequence { Sequence = 4 @@ -401850,35 +330922,28 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - ref QuestStep reference178 = ref span230[index2]; + ref QuestStep reference178 = ref CollectionsMarshal.AsSpan(list230)[0]; QuestStep obj159 = new QuestStep(EInteractionType.Combat, 2013695u, new Vector3(519.76794f, 0.99176025f, -679.8352f), 613) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list231 = new List(index3); - CollectionsMarshal.SetCount(list231, index3); - Span span231 = CollectionsMarshal.AsSpan(list231); - num3 = 0; - span231[num3] = 17620u; + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + CollectionsMarshal.AsSpan(list231)[0] = 17620u; obj159.KillEnemyDataIds = list231; reference178 = obj159; obj158.Steps = list230; reference177 = obj158; - num++; - ref QuestSequence reference179 = ref span225[num]; + ref QuestSequence reference179 = ref span67[5]; QuestSequence obj160 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -401896,8 +330961,7 @@ public static class AssemblyQuestLoader }; obj160.Steps = list232; reference179 = obj160; - num++; - ref QuestSequence reference180 = ref span225[num]; + ref QuestSequence reference180 = ref span67[6]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue @@ -401905,9 +330969,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048298u, new Vector3(111.40613f, 11.997235f, -52.018066f), 628) { NextQuestId = new QuestId(4835) }; @@ -401920,26 +330982,21 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "liza"; + CollectionsMarshal.AsSpan(list234)[0] = "liza"; questRoot27.Author = list234; - index = 7; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference181 = ref span235[num]; + num = 7; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span69 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference181 = ref span69[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, SkipConditions = new SkipConditions @@ -401952,8 +331009,7 @@ public static class AssemblyQuestLoader }; obj162.Steps = list236; reference181 = obj162; - num++; - ref QuestSequence reference182 = ref span235[num]; + ref QuestSequence reference182 = ref span69[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 @@ -401961,9 +331017,8 @@ public static class AssemblyQuestLoader num2 = 3; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - ref QuestStep reference183 = ref span237[index2]; + Span span70 = CollectionsMarshal.AsSpan(list237); + ref QuestStep reference183 = ref span70[0]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1019350u, new Vector3(563.2562f, -19.505632f, 319.11182f), 622) { AetheryteShortcut = EAetheryteLocation.AzimSteppeReunion, @@ -401978,84 +331033,60 @@ public static class AssemblyQuestLoader num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - 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); + 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); obj164.CompletionQuestVariablesFlags = list238; reference183 = obj164; - index2++; - ref QuestStep reference184 = ref span237[index2]; + ref QuestStep reference184 = ref span70[1]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1019351u, new Vector3(548.8822f, -19.505648f, 295.1858f), 622); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list239; reference184 = questStep20; - index2++; - ref QuestStep reference185 = ref span237[index2]; + ref QuestStep reference185 = ref span70[2]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list240; reference185 = questStep21; obj163.Steps = list237; reference182 = obj163; - num++; - ref QuestSequence reference186 = ref span235[num]; + ref QuestSequence reference186 = ref span69[2]; QuestSequence obj165 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj165.Steps = list241; reference186 = obj165; - num++; - ref QuestSequence reference187 = ref span235[num]; + ref QuestSequence reference187 = ref span69[3]; QuestSequence obj166 = new QuestSequence { Sequence = 3 @@ -402063,32 +331094,25 @@ public static class AssemblyQuestLoader num2 = 1; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - span242[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622); + CollectionsMarshal.AsSpan(list242)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1048305u, new Vector3(591.08875f, -19.505634f, 296.9253f), 622); obj166.Steps = list242; reference187 = obj166; - num++; - span235[num] = new QuestSequence + span69[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference188 = ref span235[num]; + ref QuestSequence reference188 = ref span69[5]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj167.Steps = list243; reference188 = obj167; - num++; - ref QuestSequence reference189 = ref span235[num]; + ref QuestSequence reference189 = ref span69[6]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -402096,9 +331120,7 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048295u, new Vector3(-74.143616f, -19.32829f, 198.68762f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -402116,26 +331138,21 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span245 = CollectionsMarshal.AsSpan(list245); - index = 0; - span245[index] = "liza"; + CollectionsMarshal.AsSpan(list245)[0] = "liza"; questRoot28.Author = list245; - index = 4; - List list246 = new List(index); - CollectionsMarshal.SetCount(list246, index); - Span span246 = CollectionsMarshal.AsSpan(list246); - num = 0; - ref QuestSequence reference190 = ref span246[num]; + num = 4; + List list246 = new List(num); + CollectionsMarshal.SetCount(list246, num); + Span span74 = CollectionsMarshal.AsSpan(list246); + ref QuestSequence reference190 = ref span74[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -402148,8 +331165,7 @@ public static class AssemblyQuestLoader }; obj169.Steps = list247; reference190 = obj169; - num++; - ref QuestSequence reference191 = ref span246[num]; + ref QuestSequence reference191 = ref span74[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -402157,95 +331173,70 @@ public static class AssemblyQuestLoader num2 = 3; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - index2 = 0; - ref QuestStep reference192 = ref span248[index2]; + Span span75 = CollectionsMarshal.AsSpan(list248); + ref QuestStep reference192 = ref span75[0]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 1020193u, new Vector3(26.108154f, 0f, 25.253662f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach }; - 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); + 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); obj171.CompletionQuestVariablesFlags = list249; reference192 = obj171; - index2++; - ref QuestStep reference193 = ref span248[index2]; + ref QuestStep reference193 = ref span75[1]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list250; reference193 = questStep22; - index2++; - ref QuestStep reference194 = ref span248[index2]; + ref QuestStep reference194 = ref span75[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1019484u, new Vector3(-66.5141f, -5.9571908E-15f, -22.964844f), 635); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list251; reference194 = questStep23; obj170.Steps = list248; reference191 = obj170; - num++; - ref QuestSequence reference195 = ref span246[num]; + ref QuestSequence reference195 = ref span74[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.FringesPeeringStones }; obj172.Steps = list252; reference195 = obj172; - num++; - ref QuestSequence reference196 = ref span246[num]; + ref QuestSequence reference196 = ref span74[3]; QuestSequence obj173 = new QuestSequence { Sequence = byte.MaxValue @@ -402253,9 +331244,7 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048309u, new Vector3(19.638367f, -0.11837298f, 47.226562f), 635) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, NextQuestId = new QuestId(4837) @@ -402269,26 +331258,21 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "liza"; + CollectionsMarshal.AsSpan(list254)[0] = "liza"; questRoot29.Author = list254; - index = 6; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference197 = ref span255[num]; + num = 6; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span79 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference197 = ref span79[0]; QuestSequence obj174 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RhalgrsReach, SkipConditions = new SkipConditions @@ -402301,8 +331285,7 @@ public static class AssemblyQuestLoader }; obj174.Steps = list256; reference197 = obj174; - num++; - ref QuestSequence reference198 = ref span255[num]; + ref QuestSequence reference198 = ref span79[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -402310,33 +331293,27 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.Interact, 1048313u, new Vector3(-621.973f, 41.999973f, -2.02948f), 621) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Interact, 1048313u, new Vector3(-621.973f, 41.999973f, -2.02948f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria }; obj175.Steps = list257; reference198 = obj175; - num++; - ref QuestSequence reference199 = ref span255[num]; + ref QuestSequence reference199 = ref span79[2]; QuestSequence obj176 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj176.Steps = list258; reference199 = obj176; - num++; - ref QuestSequence reference200 = ref span255[num]; + ref QuestSequence reference200 = ref span79[3]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -402344,9 +331321,7 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - ref QuestStep reference201 = ref span259[index2]; + ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list259)[0]; QuestStep obj178 = new QuestStep(EInteractionType.Combat, 2013705u, new Vector3(-379.0799f, 6.149353f, -83.237976f), 621) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -402354,36 +331329,29 @@ public static class AssemblyQuestLoader num3 = 3; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - Span span260 = CollectionsMarshal.AsSpan(list260); - index3 = 0; - span260[index3] = 17621u; - index3++; - span260[index3] = 17622u; - index3++; - span260[index3] = 17623u; + Span span80 = CollectionsMarshal.AsSpan(list260); + span80[0] = 17621u; + span80[1] = 17622u; + span80[2] = 17623u; obj178.KillEnemyDataIds = list260; reference201 = obj178; obj177.Steps = list259; reference200 = obj177; - num++; - ref QuestSequence reference202 = ref span255[num]; + ref QuestSequence reference202 = ref span79[4]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj179.Steps = list261; reference202 = obj179; - num++; - ref QuestSequence reference203 = ref span255[num]; + ref QuestSequence reference203 = ref span79[5]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue @@ -402391,9 +331359,7 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048314u, new Vector3(-622.03406f, 41.999973f, -3.6469727f), 621) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, NextQuestId = new QuestId(4838) @@ -402407,26 +331373,21 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot30.Author = list263; - index = 6; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference204 = ref span264[num]; + num = 6; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span81 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference204 = ref span81[0]; QuestSequence obj181 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsPortaPraetoria, SkipConditions = new SkipConditions @@ -402439,8 +331400,7 @@ public static class AssemblyQuestLoader }; obj181.Steps = list265; reference204 = obj181; - num++; - ref QuestSequence reference205 = ref span264[num]; + ref QuestSequence reference205 = ref span81[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 @@ -402448,34 +331408,28 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.Interact, 1048316u, new Vector3(-537.3159f, 8.282911f, 11.612061f), 621) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1048316u, new Vector3(-537.3159f, 8.282911f, 11.612061f), 621) { Fly = true }; obj182.Steps = list266; reference205 = obj182; - num++; - ref QuestSequence reference206 = ref span264[num]; + ref QuestSequence reference206 = ref span81[2]; QuestSequence obj183 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj183.Steps = list267; reference206 = obj183; - num++; - ref QuestSequence reference207 = ref span264[num]; + ref QuestSequence reference207 = ref span81[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 @@ -402483,93 +331437,79 @@ public static class AssemblyQuestLoader num2 = 10; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-232.29796f, 264.9192f, 613.139f), 620) + Span span82 = CollectionsMarshal.AsSpan(list268); + span82[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-232.29796f, 264.9192f, 613.139f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-241.38339f, 264.6151f, 617.0616f), 620) + span82[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-241.38339f, 264.6151f, 617.0616f), 620) { Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-256.2343f, 264.3857f, 607.0586f), 620) + span82[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-256.2343f, 264.3857f, 607.0586f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.83409f, 265.36874f, 597.0437f), 620) + span82[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-245.83409f, 265.36874f, 597.0437f), 620) { Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-241.25351f, 264.14194f, 622.3978f), 620) + span82[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-241.25351f, 264.14194f, 622.3978f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-249.86191f, 264.12744f, 618.1598f), 620) + span82[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-249.86191f, 264.12744f, 618.1598f), 620) { Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-246.00586f, 265.5263f, 587.24493f), 620) + span82[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-246.00586f, 265.5263f, 587.24493f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.25114f, 265.31882f, 605.55786f), 620) + span82[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-239.25114f, 265.31882f, 605.55786f), 620) { Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-264.12643f, 263.13184f, 563.91364f), 620) + span82[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048318u, new Vector3(-264.12643f, 263.13184f, 563.91364f), 620) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span268[index2] = new QuestStep(EInteractionType.WalkTo, 1048317u, new Vector3(-256.79233f, 264.02664f, 550.90546f), 620) + span82[9] = new QuestStep(EInteractionType.WalkTo, 1048317u, new Vector3(-256.79233f, 264.02664f, 550.90546f), 620) { Mount = false, Sprint = false }; obj184.Steps = list268; reference207 = obj184; - num++; - ref QuestSequence reference208 = ref span264[num]; + ref QuestSequence reference208 = ref span81[4]; QuestSequence obj185 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri }; obj185.Steps = list269; reference208 = obj185; - num++; - ref QuestSequence reference209 = ref span264[num]; + ref QuestSequence reference209 = ref span81[5]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue @@ -402577,9 +331517,7 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { NextQuestId = new QuestId(4839) }; @@ -402592,26 +331530,21 @@ public static class AssemblyQuestLoader num = 1; List list271 = new List(num); CollectionsMarshal.SetCount(list271, num); - Span span271 = CollectionsMarshal.AsSpan(list271); - index = 0; - span271[index] = "liza"; + CollectionsMarshal.AsSpan(list271)[0] = "liza"; questRoot31.Author = list271; - index = 7; - List list272 = new List(index); - CollectionsMarshal.SetCount(list272, index); - Span span272 = CollectionsMarshal.AsSpan(list272); - num = 0; - ref QuestSequence reference210 = ref span272[num]; + num = 7; + List list272 = new List(num); + CollectionsMarshal.SetCount(list272, num); + Span span83 = CollectionsMarshal.AsSpan(list272); + ref QuestSequence reference210 = ref span83[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -402624,8 +331557,7 @@ public static class AssemblyQuestLoader }; obj187.Steps = list273; reference210 = obj187; - num++; - ref QuestSequence reference211 = ref span272[num]; + ref QuestSequence reference211 = ref span83[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 @@ -402633,34 +331565,28 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.Interact, 1048320u, new Vector3(135.63745f, 118.27393f, -685.5116f), 620) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1048320u, new Vector3(135.63745f, 118.27393f, -685.5116f), 620) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj188.Steps = list274; reference211 = obj188; - num++; - ref QuestSequence reference212 = ref span272[num]; + ref QuestSequence reference212 = ref span83[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj189.Steps = list275; reference212 = obj189; - num++; - ref QuestSequence reference213 = ref span272[num]; + ref QuestSequence reference213 = ref span83[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 @@ -402668,64 +331594,50 @@ public static class AssemblyQuestLoader num2 = 2; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - ref QuestStep reference214 = ref span276[index2]; + Span span84 = CollectionsMarshal.AsSpan(list276); + ref QuestStep reference214 = ref span84[0]; QuestStep obj191 = new QuestStep(EInteractionType.Combat, null, new Vector3(-88.44731f, 101.93955f, -691.41956f), 620) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list277 = new List(index3); - CollectionsMarshal.SetCount(list277, index3); - Span span277 = CollectionsMarshal.AsSpan(list277); - num3 = 0; - span277[num3] = 17624u; + num3 = 1; + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + CollectionsMarshal.AsSpan(list277)[0] = 17624u; obj191.KillEnemyDataIds = list277; num3 = 6; List list278 = new List(num3); CollectionsMarshal.SetCount(list278, num3); - 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; + 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; obj191.CompletionQuestVariablesFlags = list278; reference214 = obj191; - index2++; - span276[index2] = new QuestStep(EInteractionType.Interact, 2013706u, new Vector3(-83.36011f, 104.6311f, -686.64075f), 620); + span84[1] = new QuestStep(EInteractionType.Interact, 2013706u, new Vector3(-83.36011f, 104.6311f, -686.64075f), 620); obj190.Steps = list276; reference213 = obj190; - num++; - ref QuestSequence reference215 = ref span272[num]; + ref QuestSequence reference215 = ref span83[4]; QuestSequence obj192 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.PeaksAlaGannha }; obj192.Steps = list279; reference215 = obj192; - num++; - ref QuestSequence reference216 = ref span272[num]; + ref QuestSequence reference216 = ref span83[5]; QuestSequence obj193 = new QuestSequence { Sequence = 5 @@ -402733,26 +331645,21 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.Interact, 1048323u, new Vector3(55.039307f, 115.59516f, -282.5208f), 620) + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Interact, 1048323u, new Vector3(55.039307f, 115.59516f, -282.5208f), 620) { Fly = true }; obj193.Steps = list280; reference216 = obj193; - num++; - ref QuestSequence reference217 = ref span272[num]; + ref QuestSequence reference217 = ref span83[6]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, NextQuestId = new QuestId(4840) @@ -402766,16 +331673,13 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - Span span282 = CollectionsMarshal.AsSpan(list282); - index = 0; - span282[index] = "liza"; + CollectionsMarshal.AsSpan(list282)[0] = "liza"; questRoot32.Author = list282; - index = 5; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - ref QuestSequence reference218 = ref span283[num]; + num = 5; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span86 = CollectionsMarshal.AsSpan(list283); + ref QuestSequence reference218 = ref span86[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -402783,9 +331687,7 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048310u, new Vector3(-310.96362f, 257.52652f, 739.4979f), 620) { AetheryteShortcut = EAetheryteLocation.PeaksAlaGhiri, SkipConditions = new SkipConditions @@ -402798,26 +331700,22 @@ public static class AssemblyQuestLoader }; obj195.Steps = list284; reference218 = obj195; - num++; - ref QuestSequence reference219 = ref span283[num]; + ref QuestSequence reference219 = ref span86[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter }; obj196.Steps = list285; reference219 = obj196; - num++; - ref QuestSequence reference220 = ref span283[num]; + ref QuestSequence reference220 = ref span86[2]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -402825,33 +331723,27 @@ public static class AssemblyQuestLoader num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span286 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span286[index2] = new QuestStep(EInteractionType.Interact, 1048325u, new Vector3(713.5576f, 69.99999f, 617.02905f), 621) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1048325u, new Vector3(713.5576f, 69.99999f, 617.02905f), 621) { Fly = true }; obj197.Steps = list286; reference220 = obj197; - num++; - ref QuestSequence reference221 = ref span283[num]; + ref QuestSequence reference221 = ref span86[3]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj198.Steps = list287; reference221 = obj198; - num++; - ref QuestSequence reference222 = ref span283[num]; + ref QuestSequence reference222 = ref span86[4]; QuestSequence obj199 = new QuestSequence { Sequence = byte.MaxValue @@ -402859,9 +331751,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048324u, new Vector3(568.3833f, 80f, 618.09717f), 621) { Fly = true, AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, @@ -402876,26 +331766,21 @@ public static class AssemblyQuestLoader num = 1; List list289 = new List(num); CollectionsMarshal.SetCount(list289, num); - Span span289 = CollectionsMarshal.AsSpan(list289); - index = 0; - span289[index] = "liza"; + CollectionsMarshal.AsSpan(list289)[0] = "liza"; questRoot33.Author = list289; - index = 6; - List list290 = new List(index); - CollectionsMarshal.SetCount(list290, index); - Span span290 = CollectionsMarshal.AsSpan(list290); - num = 0; - ref QuestSequence reference223 = ref span290[num]; + num = 6; + List list290 = new List(num); + CollectionsMarshal.SetCount(list290, num); + Span span87 = CollectionsMarshal.AsSpan(list290); + ref QuestSequence reference223 = ref span87[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LochsAlaMhiganQuarter, SkipConditions = new SkipConditions @@ -402908,8 +331793,7 @@ public static class AssemblyQuestLoader }; obj200.Steps = list291; reference223 = obj200; - num++; - ref QuestSequence reference224 = ref span290[num]; + ref QuestSequence reference224 = ref span87[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 @@ -402917,38 +331801,31 @@ public static class AssemblyQuestLoader num2 = 1; List list292 = new List(num2); CollectionsMarshal.SetCount(list292, num2); - Span span292 = CollectionsMarshal.AsSpan(list292); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) + CollectionsMarshal.AsSpan(list292)[0] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621) { Fly = true }; obj201.Steps = list292; reference224 = obj201; - num++; - ref QuestSequence reference225 = ref span290[num]; + ref QuestSequence reference225 = ref span87[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Comment = "The Mightiest Shield" }; obj202.Steps = list293; reference225 = obj202; - num++; - span290[num] = new QuestSequence + span87[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference226 = ref span290[num]; + ref QuestSequence reference226 = ref span87[4]; QuestSequence obj203 = new QuestSequence { Sequence = 4 @@ -402956,23 +331833,18 @@ public static class AssemblyQuestLoader num2 = 1; List list294 = new List(num2); CollectionsMarshal.SetCount(list294, num2); - Span span294 = CollectionsMarshal.AsSpan(list294); - index2 = 0; - span294[index2] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621); + CollectionsMarshal.AsSpan(list294)[0] = new QuestStep(EInteractionType.Interact, 1048327u, new Vector3(723.781f, 69.99991f, 545.5862f), 621); obj203.Steps = list294; reference226 = obj203; - num++; - ref QuestSequence reference227 = ref span290[num]; + ref QuestSequence reference227 = ref span87[5]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -402990,16 +331862,13 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "liza"; + CollectionsMarshal.AsSpan(list296)[0] = "liza"; questRoot34.Author = list296; - index = 5; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference228 = ref span297[num]; + num = 5; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span88 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference228 = ref span88[0]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -403007,9 +331876,7 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -403022,25 +331889,21 @@ public static class AssemblyQuestLoader }; obj205.Steps = list298; reference228 = obj205; - num++; - ref QuestSequence reference229 = ref span297[num]; + ref QuestSequence reference229 = ref span88[1]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj206.Steps = list299; reference229 = obj206; - num++; - ref QuestSequence reference230 = ref span297[num]; + ref QuestSequence reference230 = ref span88[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -403048,33 +331911,27 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 1048337u, new Vector3(155.87085f, 5.297462f, 618.2803f), 957) + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1048337u, new Vector3(155.87085f, 5.297462f, 618.2803f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; obj207.Steps = list300; reference230 = obj207; - num++; - ref QuestSequence reference231 = ref span297[num]; + ref QuestSequence reference231 = ref span88[3]; QuestSequence obj208 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.5f }; obj208.Steps = list301; reference231 = obj208; - num++; - ref QuestSequence reference232 = ref span297[num]; + ref QuestSequence reference232 = ref span88[4]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue @@ -403082,9 +331939,7 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { NextQuestId = new QuestId(4843) }; @@ -403097,26 +331952,21 @@ public static class AssemblyQuestLoader num = 1; List list303 = new List(num); CollectionsMarshal.SetCount(list303, num); - Span span303 = CollectionsMarshal.AsSpan(list303); - index = 0; - span303[index] = "liza"; + CollectionsMarshal.AsSpan(list303)[0] = "liza"; questRoot35.Author = list303; - index = 8; - List list304 = new List(index); - CollectionsMarshal.SetCount(list304, index); - Span span304 = CollectionsMarshal.AsSpan(list304); - num = 0; - ref QuestSequence reference233 = ref span304[num]; + num = 8; + List list304 = new List(num); + CollectionsMarshal.SetCount(list304, num); + Span span89 = CollectionsMarshal.AsSpan(list304); + ref QuestSequence reference233 = ref span89[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -403129,8 +331979,7 @@ public static class AssemblyQuestLoader }; obj210.Steps = list305; reference233 = obj210; - num++; - ref QuestSequence reference234 = ref span304[num]; + ref QuestSequence reference234 = ref span89[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 @@ -403138,26 +331987,21 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj211.Steps = list306; reference234 = obj211; - num++; - ref QuestSequence reference235 = ref span304[num]; + ref QuestSequence reference235 = ref span89[2]; QuestSequence obj212 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -403167,8 +332011,7 @@ public static class AssemblyQuestLoader }; obj212.Steps = list307; reference235 = obj212; - num++; - ref QuestSequence reference236 = ref span304[num]; + ref QuestSequence reference236 = ref span89[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -403176,9 +332019,7 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1048332u, new Vector3(52.506226f, -5.20688E-07f, -54.154297f), 963) { AethernetShortcut = new AethernetShortcut { @@ -403188,26 +332029,22 @@ public static class AssemblyQuestLoader }; obj213.Steps = list308; reference236 = obj213; - num++; - ref QuestSequence reference237 = ref span304[num]; + ref QuestSequence reference237 = ref span89[4]; QuestSequence obj214 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj214.Steps = list309; reference237 = obj214; - num++; - ref QuestSequence reference238 = ref span304[num]; + ref QuestSequence reference238 = ref span89[5]; QuestSequence obj215 = new QuestSequence { Sequence = 5 @@ -403215,44 +332052,36 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - ref QuestStep reference239 = ref span310[index2]; + ref QuestStep reference239 = ref CollectionsMarshal.AsSpan(list310)[0]; QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(-427.5108f, -0.015813708f, -710.37146f), 957) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list311 = new List(index3); - CollectionsMarshal.SetCount(list311, index3); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = 17625u; + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = 17625u; obj216.KillEnemyDataIds = list311; reference239 = obj216; obj215.Steps = list310; reference238 = obj215; - num++; - ref QuestSequence reference240 = ref span304[num]; + ref QuestSequence reference240 = ref span89[6]; QuestSequence obj217 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 7f }; obj217.Steps = list312; reference240 = obj217; - num++; - ref QuestSequence reference241 = ref span304[num]; + ref QuestSequence reference241 = ref span89[7]; QuestSequence obj218 = new QuestSequence { Sequence = byte.MaxValue @@ -403260,9 +332089,7 @@ public static class AssemblyQuestLoader num2 = 1; List list313 = new List(num2); CollectionsMarshal.SetCount(list313, num2); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + CollectionsMarshal.AsSpan(list313)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4844) @@ -403276,26 +332103,21 @@ public static class AssemblyQuestLoader num = 1; List list314 = new List(num); CollectionsMarshal.SetCount(list314, num); - Span span314 = CollectionsMarshal.AsSpan(list314); - index = 0; - span314[index] = "liza"; + CollectionsMarshal.AsSpan(list314)[0] = "liza"; questRoot36.Author = list314; - index = 7; - List list315 = new List(index); - CollectionsMarshal.SetCount(list315, index); - Span span315 = CollectionsMarshal.AsSpan(list315); - num = 0; - ref QuestSequence reference242 = ref span315[num]; + num = 7; + List list315 = new List(num); + CollectionsMarshal.SetCount(list315, num); + Span span90 = CollectionsMarshal.AsSpan(list315); + ref QuestSequence reference242 = ref span90[0]; QuestSequence obj219 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -403308,8 +332130,7 @@ public static class AssemblyQuestLoader }; obj219.Steps = list316; reference242 = obj219; - num++; - ref QuestSequence reference243 = ref span315[num]; + ref QuestSequence reference243 = ref span90[1]; QuestSequence obj220 = new QuestSequence { Sequence = 1 @@ -403317,27 +332138,23 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957) + CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957) { Fly = true, AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj220.Steps = list317; reference243 = obj220; - num++; - ref QuestSequence reference244 = ref span315[num]; + ref QuestSequence reference244 = ref span90[2]; QuestSequence obj221 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list318 = new List(index2); - CollectionsMarshal.SetCount(list318, index2); - Span span318 = CollectionsMarshal.AsSpan(list318); - num2 = 0; - ref QuestStep reference245 = ref span318[num2]; + num2 = 2; + List list318 = new List(num2); + CollectionsMarshal.SetCount(list318, num2); + Span span91 = CollectionsMarshal.AsSpan(list318); + ref QuestStep reference245 = ref span91[0]; QuestStep obj222 = new QuestStep(EInteractionType.Combat, null, new Vector3(76.82042f, 82.46339f, -549.32526f), 957) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -403345,9 +332162,7 @@ public static class AssemblyQuestLoader num3 = 1; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - Span span319 = CollectionsMarshal.AsSpan(list319); - index3 = 0; - ref ComplexCombatData reference246 = ref span319[index3]; + ref ComplexCombatData reference246 = ref CollectionsMarshal.AsSpan(list319)[0]; ComplexCombatData obj223 = new ComplexCombatData { DataId = 17626u @@ -403355,32 +332170,24 @@ public static class AssemblyQuestLoader int num4 = 6; List list320 = new List(num4); CollectionsMarshal.SetCount(list320, num4); - 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; + 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; obj223.CompletionQuestVariablesFlags = list320; reference246 = obj223; obj222.ComplexCombatData = list319; reference245 = obj222; - num2++; - span318[num2] = new QuestStep(EInteractionType.UseItem, 17626u, new Vector3(77.01221f, 82.459785f, -549.218f), 957) + span91[1] = new QuestStep(EInteractionType.UseItem, 17626u, new Vector3(77.01221f, 82.459785f, -549.218f), 957) { ItemId = 2003495u }; obj221.Steps = list318; reference244 = obj221; - num++; - ref QuestSequence reference247 = ref span315[num]; + ref QuestSequence reference247 = ref span90[3]; QuestSequence obj224 = new QuestSequence { Sequence = 3 @@ -403388,30 +332195,24 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957); + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1048348u, new Vector3(-118.76105f, 88.94139f, -556.90857f), 957); obj224.Steps = list321; reference247 = obj224; - num++; - ref QuestSequence reference248 = ref span315[num]; + ref QuestSequence reference248 = ref span90[4]; QuestSequence obj225 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairGreatWork }; obj225.Steps = list322; reference248 = obj225; - num++; - ref QuestSequence reference249 = ref span315[num]; + ref QuestSequence reference249 = ref span90[5]; QuestSequence obj226 = new QuestSequence { Sequence = 5 @@ -403419,87 +332220,63 @@ public static class AssemblyQuestLoader num2 = 3; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - ref QuestStep reference250 = ref span323[index2]; + Span span93 = CollectionsMarshal.AsSpan(list323); + ref QuestStep reference250 = ref span93[0]; QuestStep obj227 = new QuestStep(EInteractionType.Interact, 1048354u, new Vector3(154.28394f, 5.2641535f, 618.40234f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad }; - 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); + 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); obj227.CompletionQuestVariablesFlags = list324; reference250 = obj227; - index2++; - ref QuestStep reference251 = ref span323[index2]; + ref QuestStep reference251 = ref span93[1]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list325; reference251 = questStep24; - index2++; - ref QuestStep reference252 = ref span323[index2]; + ref QuestStep reference252 = ref span93[2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1048352u, new Vector3(195.5138f, 15.136732f, 529.015f), 957); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list326; reference252 = questStep25; obj226.Steps = list323; reference249 = obj226; - num++; - ref QuestSequence reference253 = ref span315[num]; + ref QuestSequence reference253 = ref span90[6]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(4845) }; @@ -403512,16 +332289,13 @@ public static class AssemblyQuestLoader num = 1; List list328 = new List(num); CollectionsMarshal.SetCount(list328, num); - Span span328 = CollectionsMarshal.AsSpan(list328); - index = 0; - span328[index] = "liza"; + CollectionsMarshal.AsSpan(list328)[0] = "liza"; questRoot37.Author = list328; - index = 9; - List list329 = new List(index); - CollectionsMarshal.SetCount(list329, index); - Span span329 = CollectionsMarshal.AsSpan(list329); - num = 0; - ref QuestSequence reference254 = ref span329[num]; + num = 9; + List list329 = new List(num); + CollectionsMarshal.SetCount(list329, num); + Span span97 = CollectionsMarshal.AsSpan(list329); + ref QuestSequence reference254 = ref span97[0]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -403529,9 +332303,7 @@ public static class AssemblyQuestLoader num2 = 1; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - Span span330 = CollectionsMarshal.AsSpan(list330); - index2 = 0; - ref QuestStep reference255 = ref span330[index2]; + ref QuestStep reference255 = ref CollectionsMarshal.AsSpan(list330)[0]; QuestStep obj230 = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, @@ -403546,9 +332318,7 @@ public static class AssemblyQuestLoader num3 = 1; List list331 = new List(num3); CollectionsMarshal.SetCount(list331, num3); - Span span331 = CollectionsMarshal.AsSpan(list331); - index3 = 0; - span331[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list331)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBA531_04845_Q2_000_200"), @@ -403558,18 +332328,16 @@ public static class AssemblyQuestLoader reference255 = obj230; obj229.Steps = list330; reference254 = obj229; - num++; - ref QuestSequence reference256 = ref span329[num]; + ref QuestSequence reference256 = ref span97[1]; QuestSequence obj231 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list332 = new List(index2); - CollectionsMarshal.SetCount(list332, index2); - Span span332 = CollectionsMarshal.AsSpan(list332); - num2 = 0; - ref QuestStep reference257 = ref span332[num2]; + num2 = 3; + List list332 = new List(num2); + CollectionsMarshal.SetCount(list332, num2); + Span span98 = CollectionsMarshal.AsSpan(list332); + ref QuestStep reference257 = ref span98[0]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1048357u, new Vector3(-183.21509f, 36f, 53.116577f), 963) { AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -403579,70 +332347,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.RadzAtHanRuveydahFibers } }; - 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); + 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); obj232.CompletionQuestVariablesFlags = list333; reference257 = obj232; - num2++; - ref QuestStep reference258 = ref span332[num2]; + ref QuestStep reference258 = ref span98[1]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list334; reference258 = questStep26; - num2++; - ref QuestStep reference259 = ref span332[num2]; + ref QuestStep reference259 = ref span98[2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1048360u, new Vector3(-237.41516f, 35.999996f, 102.067505f), 963); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list335; reference259 = questStep27; obj231.Steps = list332; reference256 = obj231; - num++; - ref QuestSequence reference260 = ref span329[num]; + ref QuestSequence reference260 = ref span97[2]; QuestSequence obj233 = new QuestSequence { Sequence = 2 @@ -403650,9 +332397,7 @@ public static class AssemblyQuestLoader num2 = 1; List list336 = new List(num2); CollectionsMarshal.SetCount(list336, num2); - Span span336 = CollectionsMarshal.AsSpan(list336); - index2 = 0; - span336[index2] = new QuestStep(EInteractionType.Interact, 1048362u, new Vector3(-10.544006f, 2.999996f, -204.91345f), 963) + CollectionsMarshal.AsSpan(list336)[0] = new QuestStep(EInteractionType.Interact, 1048362u, new Vector3(-10.544006f, 2.999996f, -204.91345f), 963) { AethernetShortcut = new AethernetShortcut { @@ -403662,22 +332407,18 @@ public static class AssemblyQuestLoader }; obj233.Steps = list336; reference260 = obj233; - num++; - ref QuestSequence reference261 = ref span329[num]; + ref QuestSequence reference261 = ref span97[3]; QuestSequence obj234 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj234.Steps = list337; reference261 = obj234; - num++; - ref QuestSequence reference262 = ref span329[num]; + ref QuestSequence reference262 = ref span97[4]; QuestSequence obj235 = new QuestSequence { Sequence = 4 @@ -403685,30 +332426,24 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span338 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span338[index2] = new QuestStep(EInteractionType.Interact, 1048363u, new Vector3(369.40564f, 3.9809039f, -219.40955f), 957) + CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.Interact, 1048363u, new Vector3(369.40564f, 3.9809039f, -219.40955f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairPalakasStand }; obj235.Steps = list338; reference262 = obj235; - num++; - ref QuestSequence reference263 = ref span329[num]; + ref QuestSequence reference263 = ref span97[5]; QuestSequence obj236 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj236.Steps = list339; reference263 = obj236; - num++; - ref QuestSequence reference264 = ref span329[num]; + ref QuestSequence reference264 = ref span97[6]; QuestSequence obj237 = new QuestSequence { Sequence = 6 @@ -403716,9 +332451,8 @@ public static class AssemblyQuestLoader num2 = 12; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - ref QuestStep reference265 = ref span340[index2]; + Span span102 = CollectionsMarshal.AsSpan(list340); + ref QuestStep reference265 = ref span102[0]; QuestStep obj238 = new QuestStep(EInteractionType.Interact, 2013713u, new Vector3(362.35596f, 3.616333f, -241.77924f), 957) { StopDistance = 0.25f, @@ -403735,103 +332469,86 @@ public static class AssemblyQuestLoader num3 = 1; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - Span span341 = CollectionsMarshal.AsSpan(list341); - index3 = 0; - span341[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list341)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGBA531_04845_Q1_000_054") }; obj238.DialogueChoices = list341; reference265 = obj238; - index2++; - span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(387.43045f, 5.8062716f, -203.20459f), 957) + span102[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(387.43045f, 5.8062716f, -203.20459f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.85394f, 3.0972311f, -220.57103f), 957) + span102[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.85394f, 3.0972311f, -220.57103f), 957) { Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(398.46808f, 12.103142f, -174.068f), 957) + span102[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(398.46808f, 12.103142f, -174.068f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(395.88028f, 10.267179f, -192.21916f), 957) + span102[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(395.88028f, 10.267179f, -192.21916f), 957) { Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(395.6862f, 11.099065f, -169.7558f), 957) + span102[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(395.6862f, 11.099065f, -169.7558f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.42825f, 12.946791f, -180.08061f), 957) + span102[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(398.42825f, 12.946791f, -180.08061f), 957) { Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(368.02908f, 5.7749786f, -135.06207f), 957) + span102[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(368.02908f, 5.7749786f, -135.06207f), 957) { Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.81885f, 18.925224f, -43.56831f), 957) + span102[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(300.81885f, 18.925224f, -43.56831f), 957) { Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(274.41418f, 17.838093f, -2.1020741f), 957) + span102[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048364u, new Vector3(274.41418f, 17.838093f, -2.1020741f), 957) { StopDistance = 50f, Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.60135f, 19.312042f, -1.2628903f), 957) + span102[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(256.60135f, 19.312042f, -1.2628903f), 957) { Mount = false, Sprint = false }; - index2++; - span340[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.453f, 16.725914f, 14.936783f), 957) + span102[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(244.453f, 16.725914f, 14.936783f), 957) { Mount = false, Sprint = false }; obj237.Steps = list340; reference264 = obj237; - num++; - ref QuestSequence reference266 = ref span329[num]; + ref QuestSequence reference266 = ref span97[7]; QuestSequence obj239 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj239.Steps = list342; reference266 = obj239; - num++; - ref QuestSequence reference267 = ref span329[num]; + ref QuestSequence reference267 = ref span97[8]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -403839,9 +332556,7 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4846) @@ -403855,26 +332570,21 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - Span span344 = CollectionsMarshal.AsSpan(list344); - index = 0; - span344[index] = "liza"; + CollectionsMarshal.AsSpan(list344)[0] = "liza"; questRoot38.Author = list344; - index = 7; - List list345 = new List(index); - CollectionsMarshal.SetCount(list345, index); - Span span345 = CollectionsMarshal.AsSpan(list345); - num = 0; - ref QuestSequence reference268 = ref span345[num]; + num = 7; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + Span span103 = CollectionsMarshal.AsSpan(list345); + ref QuestSequence reference268 = ref span103[0]; QuestSequence obj241 = 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, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -403887,8 +332597,7 @@ public static class AssemblyQuestLoader }; obj241.Steps = list346; reference268 = obj241; - num++; - ref QuestSequence reference269 = ref span345[num]; + ref QuestSequence reference269 = ref span103[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -403896,9 +332605,7 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.Interact, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1048330u, new Vector3(-28.732727f, -17.972864f, 194.72034f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -403909,18 +332616,16 @@ public static class AssemblyQuestLoader }; obj242.Steps = list347; reference269 = obj242; - num++; - ref QuestSequence reference270 = ref span345[num]; + ref QuestSequence reference270 = ref span103[2]; QuestSequence obj243 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan, SkipConditions = new SkipConditions @@ -403931,25 +332636,21 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference271 = ref span348[num2]; + ref QuestStep reference271 = ref span104[1]; QuestStep obj244 = new QuestStep(EInteractionType.Combat, null, new Vector3(442.79218f, -16.660347f, -111.04725f), 1190) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list349 = new List(index3); - CollectionsMarshal.SetCount(list349, index3); - Span span349 = CollectionsMarshal.AsSpan(list349); - num3 = 0; - span349[num3] = 17627u; + num3 = 1; + List list349 = new List(num3); + CollectionsMarshal.SetCount(list349, num3); + CollectionsMarshal.AsSpan(list349)[0] = 17627u; obj244.KillEnemyDataIds = list349; reference271 = obj244; obj243.Steps = list348; reference270 = obj243; - num++; - ref QuestSequence reference272 = ref span345[num]; + ref QuestSequence reference272 = ref span103[3]; QuestSequence obj245 = new QuestSequence { Sequence = 3 @@ -403957,33 +332658,27 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.Interact, 1048369u, new Vector3(441.5503f, -16.619904f, -109.14783f), 1190) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.Interact, 1048369u, new Vector3(441.5503f, -16.619904f, -109.14783f), 1190) { StopDistance = 7f }; obj245.Steps = list350; reference272 = obj245; - num++; - ref QuestSequence reference273 = ref span345[num]; + ref QuestSequence reference273 = ref span103[4]; QuestSequence obj246 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.RadzAtHan }; obj246.Steps = list351; reference273 = obj246; - num++; - ref QuestSequence reference274 = ref span345[num]; + ref QuestSequence reference274 = ref span103[5]; QuestSequence obj247 = new QuestSequence { Sequence = 5 @@ -403991,26 +332686,21 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - span352[index2] = new QuestStep(EInteractionType.Interact, 1048372u, new Vector3(-53.177734f, -1.9999962f, 147.60046f), 963) + CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1048372u, new Vector3(-53.177734f, -1.9999962f, 147.60046f), 963) { StopDistance = 7f }; obj247.Steps = list352; reference274 = obj247; - num++; - ref QuestSequence reference275 = ref span345[num]; + ref QuestSequence reference275 = ref span103[6]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, NextQuestId = new QuestId(4847) @@ -404024,16 +332714,13 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - Span span354 = CollectionsMarshal.AsSpan(list354); - index = 0; - span354[index] = "liza"; + CollectionsMarshal.AsSpan(list354)[0] = "liza"; questRoot39.Author = list354; - index = 5; - List list355 = new List(index); - CollectionsMarshal.SetCount(list355, index); - Span span355 = CollectionsMarshal.AsSpan(list355); - num = 0; - ref QuestSequence reference276 = ref span355[num]; + num = 5; + List list355 = new List(num); + CollectionsMarshal.SetCount(list355, num); + Span span105 = CollectionsMarshal.AsSpan(list355); + ref QuestSequence reference276 = ref span105[0]; QuestSequence obj249 = new QuestSequence { Sequence = 0 @@ -404041,9 +332728,7 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span356 = CollectionsMarshal.AsSpan(list356); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) + CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048331u, new Vector3(214.03821f, 5.2600574f, 628.3817f), 957) { AetheryteShortcut = EAetheryteLocation.ThavnairYedlihmad, SkipConditions = new SkipConditions @@ -404056,18 +332741,15 @@ public static class AssemblyQuestLoader }; obj249.Steps = list356; reference276 = obj249; - num++; - ref QuestSequence reference277 = ref span355[num]; + ref QuestSequence reference277 = ref span105[1]; QuestSequence obj250 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.RadzAtHan, @@ -404079,13 +332761,11 @@ public static class AssemblyQuestLoader }; obj250.Steps = list357; reference277 = obj250; - num++; - span355[num] = new QuestSequence + span105[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference278 = ref span355[num]; + ref QuestSequence reference278 = ref span105[3]; QuestSequence obj251 = new QuestSequence { Sequence = 3 @@ -404093,23 +332773,18 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - span358[index2] = new QuestStep(EInteractionType.Interact, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957); + CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.Interact, 1048374u, new Vector3(-77.04285f, 99.946754f, -711.0552f), 957); obj251.Steps = list358; reference278 = obj251; - num++; - ref QuestSequence reference279 = ref span355[num]; + ref QuestSequence reference279 = ref span105[4]; QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -404127,16 +332802,13 @@ public static class AssemblyQuestLoader num = 1; List list360 = new List(num); CollectionsMarshal.SetCount(list360, num); - Span span360 = CollectionsMarshal.AsSpan(list360); - index = 0; - span360[index] = "liza"; + CollectionsMarshal.AsSpan(list360)[0] = "liza"; questRoot40.Author = list360; - index = 4; - List list361 = new List(index); - CollectionsMarshal.SetCount(list361, index); - Span span361 = CollectionsMarshal.AsSpan(list361); - num = 0; - ref QuestSequence reference280 = ref span361[num]; + num = 4; + List list361 = new List(num); + CollectionsMarshal.SetCount(list361, num); + Span span106 = CollectionsMarshal.AsSpan(list361); + ref QuestSequence reference280 = ref span106[0]; QuestSequence obj253 = new QuestSequence { Sequence = 0 @@ -404144,9 +332816,7 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046333u, new Vector3(-92.21033f, 3.9999995f, -99.321045f), 130) + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046333u, new Vector3(-92.21033f, 3.9999995f, -99.321045f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -404159,18 +332829,15 @@ public static class AssemblyQuestLoader }; obj253.Steps = list362; reference280 = obj253; - num++; - ref QuestSequence reference281 = ref span361[num]; + ref QuestSequence reference281 = ref span106[1]; QuestSequence obj254 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -404180,8 +332847,7 @@ public static class AssemblyQuestLoader }; obj254.Steps = list363; reference281 = obj254; - num++; - ref QuestSequence reference282 = ref span361[num]; + ref QuestSequence reference282 = ref span106[2]; QuestSequence obj255 = new QuestSequence { Sequence = 2 @@ -404189,26 +332855,21 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span364 = CollectionsMarshal.AsSpan(list364); - index2 = 0; - span364[index2] = new QuestStep(EInteractionType.Interact, 1046336u, new Vector3(-408.52985f, -55.904274f, 120.74463f), 145) + CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1046336u, new Vector3(-408.52985f, -55.904274f, 120.74463f), 145) { AetheryteShortcut = EAetheryteLocation.EasternThanalanCampDrybone }; obj255.Steps = list364; reference282 = obj255; - num++; - ref QuestSequence reference283 = ref span361[num]; + ref QuestSequence reference283 = ref span106[3]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list365 = new List(index2); - CollectionsMarshal.SetCount(list365, index2); - Span span365 = CollectionsMarshal.AsSpan(list365); - num2 = 0; - ref QuestStep reference284 = ref span365[num2]; + num2 = 1; + List list365 = new List(num2); + CollectionsMarshal.SetCount(list365, num2); + ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list365)[0]; QuestStep obj257 = new QuestStep(EInteractionType.CompleteQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131) { AethernetShortcut = new AethernetShortcut @@ -404220,9 +332881,7 @@ public static class AssemblyQuestLoader num3 = 1; List list366 = new List(num3); CollectionsMarshal.SetCount(list366, num3); - Span span366 = CollectionsMarshal.AsSpan(list366); - index3 = 0; - span366[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list366)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGBB101_04848_Q3_000_000") @@ -404239,16 +332898,13 @@ public static class AssemblyQuestLoader num = 1; List list367 = new List(num); CollectionsMarshal.SetCount(list367, num); - Span span367 = CollectionsMarshal.AsSpan(list367); - index = 0; - span367[index] = "liza"; + CollectionsMarshal.AsSpan(list367)[0] = "liza"; questRoot41.Author = list367; - index = 10; - List list368 = new List(index); - CollectionsMarshal.SetCount(list368, index); - Span span368 = CollectionsMarshal.AsSpan(list368); - num = 0; - ref QuestSequence reference285 = ref span368[num]; + num = 10; + List list368 = new List(num); + CollectionsMarshal.SetCount(list368, num); + Span span107 = CollectionsMarshal.AsSpan(list368); + ref QuestSequence reference285 = ref span107[0]; QuestSequence obj258 = new QuestSequence { Sequence = 0 @@ -404256,9 +332912,8 @@ public static class AssemblyQuestLoader num2 = 4; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span369 = CollectionsMarshal.AsSpan(list369); - index2 = 0; - ref QuestStep reference286 = ref span369[index2]; + Span span108 = CollectionsMarshal.AsSpan(list369); + ref QuestStep reference286 = ref span108[0]; QuestStep obj259 = new QuestStep(EInteractionType.UseItem, null, new Vector3(89.036255f, 12f, 47.287598f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -404283,18 +332938,15 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list370 = new List(index3); - CollectionsMarshal.SetCount(list370, index3); - Span span370 = CollectionsMarshal.AsSpan(list370); - num3 = 0; - span370[num3] = 131; + num3 = 1; + List list370 = new List(num3); + CollectionsMarshal.SetCount(list370, num3); + CollectionsMarshal.AsSpan(list370)[0] = 131; obj261.InTerritory = list370; obj260.AetheryteShortcutIf = obj261; obj259.SkipConditions = obj260; reference286 = obj259; - index2++; - span369[index2] = new QuestStep(EInteractionType.EquipItem, null, null, 131) + span108[1] = new QuestStep(EInteractionType.EquipItem, null, null, 131) { ItemId = 41808u, SkipConditions = new SkipConditions @@ -404308,24 +332960,19 @@ public static class AssemblyQuestLoader } } }; - 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); + span108[2] = new QuestStep(EInteractionType.EquipRecommended, null, null, 131); + span108[3] = new QuestStep(EInteractionType.AcceptQuest, 1046337u, new Vector3(89.036255f, 12f, 47.287598f), 131); obj258.Steps = list369; reference285 = obj258; - num++; - ref QuestSequence reference287 = ref span368[num]; + ref QuestSequence reference287 = ref span107[1]; QuestSequence obj262 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -404335,8 +332982,7 @@ public static class AssemblyQuestLoader }; obj262.Steps = list371; reference287 = obj262; - num++; - ref QuestSequence reference288 = ref span368[num]; + ref QuestSequence reference288 = ref span107[2]; QuestSequence obj263 = new QuestSequence { Sequence = 2 @@ -404344,35 +332990,29 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - span372[index2] = new QuestStep(EInteractionType.Interact, 1046339u, new Vector3(28.335938f, 3.9999995f, -136.36993f), 130); + CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 1046339u, new Vector3(28.335938f, 3.9999995f, -136.36993f), 130); obj263.Steps = list372; reference288 = obj263; - num++; - ref QuestSequence reference289 = ref span368[num]; + ref QuestSequence reference289 = ref span107[3]; QuestSequence obj264 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Comment = "Zone transition" }; - num2++; - span373[num2] = new QuestStep(EInteractionType.Interact, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141) + span109[1] = new QuestStep(EInteractionType.Interact, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141) { Fly = true }; obj264.Steps = list373; reference289 = obj264; - num++; - ref QuestSequence reference290 = ref span368[num]; + ref QuestSequence reference290 = ref span107[4]; QuestSequence obj265 = new QuestSequence { Sequence = 4 @@ -404380,35 +333020,28 @@ public static class AssemblyQuestLoader num2 = 1; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span374 = CollectionsMarshal.AsSpan(list374); - index2 = 0; - span374[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141); + CollectionsMarshal.AsSpan(list374)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046344u, new Vector3(90.22656f, 4.0718365f, 434.531f), 141); obj265.Steps = list374; reference290 = obj265; - num++; - span368[num] = new QuestSequence + span107[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference291 = ref span368[num]; + ref QuestSequence reference291 = ref span107[6]; QuestSequence obj266 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj266.Steps = list375; reference291 = obj266; - num++; - ref QuestSequence reference292 = ref span368[num]; + ref QuestSequence reference292 = ref span107[7]; QuestSequence obj267 = new QuestSequence { Sequence = 7 @@ -404416,27 +333049,21 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - span376[index2] = new QuestStep(EInteractionType.Interact, 1004332u, new Vector3(-103.92926f, 4f, -97.88666f), 130); + CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 1004332u, new Vector3(-103.92926f, 4f, -97.88666f), 130); obj267.Steps = list376; reference292 = obj267; - num++; - ref QuestSequence reference293 = ref span368[num]; + ref QuestSequence reference293 = ref span107[8]; QuestSequence obj268 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj268.Steps = list377; reference293 = obj268; - num++; - ref QuestSequence reference294 = ref span368[num]; + ref QuestSequence reference294 = ref span107[9]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue @@ -404444,9 +333071,7 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) { NextQuestId = new QuestId(4850) }; @@ -404464,17 +333089,14 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot2.Author = list; QuestRoot questRoot3 = questRoot; - index = 9; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 9; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence questSequence = new QuestSequence { Sequence = 0 @@ -404483,9 +333105,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - ref QuestStep reference2 = ref span3[index2]; + ref QuestStep reference2 = ref CollectionsMarshal.AsSpan(list3)[0]; QuestStep obj = new QuestStep(EInteractionType.AcceptQuest, 1046346u, new Vector3(-152.17828f, 12f, 11.734131f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -404500,9 +333120,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list4 = new List(num3); CollectionsMarshal.SetCount(list4, num3); - Span span4 = CollectionsMarshal.AsSpan(list4); - int index3 = 0; - span4[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list4)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB111_04850_Q1_000_100"), @@ -404512,25 +333130,21 @@ public static class AssemblyQuestLoader reference2 = obj; questSequence2.Steps = list3; reference = questSequence; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj2.Steps = list5; reference3 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -404538,187 +333152,148 @@ public static class AssemblyQuestLoader num2 = 1; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - span6[index2] = new QuestStep(EInteractionType.Interact, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) + CollectionsMarshal.AsSpan(list6)[0] = new QuestStep(EInteractionType.Interact, 1046347u, new Vector3(205.79846f, 8.794112f, -72.15991f), 153) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; obj3.Steps = list6; reference4 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthShroudCampTranquil }; obj4.Steps = list7; reference5 = obj4; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; questSequence = new QuestSequence { Sequence = 4 }; QuestSequence questSequence3 = questSequence; num2 = 3; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref QuestStep reference7 = ref span8[index2]; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span2 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference7 = ref span2[0]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 2013569u, new Vector3(-161.36414f, 1.083313f, 480.12512f), 153) { Fly = true }; - 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; + 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; reference7 = obj5; - index2++; - ref QuestStep reference8 = ref span8[index2]; + ref QuestStep reference8 = ref span2[1]; 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 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; + 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; reference9 = obj7; - questSequence3.Steps = list8; + questSequence3.Steps = list3; reference6 = questSequence; - num++; - ref QuestSequence reference10 = ref span2[num]; + ref QuestSequence reference10 = ref span[5]; QuestSequence obj8 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; - obj8.Steps = list12; + obj8.Steps = list11; reference10 = obj8; - num++; - ref QuestSequence reference11 = ref span2[num]; + ref QuestSequence reference11 = ref span[6]; QuestSequence obj9 = new QuestSequence { Sequence = 6 }; num2 = 1; - 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) + 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) { Fly = true }; - obj9.Steps = list13; + obj9.Steps = list12; reference11 = obj9; - num++; - ref QuestSequence reference12 = ref span2[num]; + ref QuestSequence reference12 = ref span[7]; QuestSequence obj10 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span14[num2] = new QuestStep(EInteractionType.Interact, 1046362u, new Vector3(22.934265f, 19.877338f, 195.91052f), 153); - obj10.Steps = list14; + span6[1] = new QuestStep(EInteractionType.Interact, 1046362u, new Vector3(22.934265f, 19.877338f, 195.91052f), 153); + obj10.Steps = list13; reference12 = obj10; - num++; - ref QuestSequence reference13 = ref span2[num]; + ref QuestSequence reference13 = ref span[8]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { Fly = true, NextQuestId = new QuestId(4851) }; - obj11.Steps = list15; + obj11.Steps = list14; reference13 = obj11; questRoot3.QuestSequence = list2; AddQuest(questId, questRoot); @@ -404726,29 +333301,24 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot4 = questRoot; num = 1; - List list16 = new List(num); - CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; - questRoot4.Author = list16; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + CollectionsMarshal.AsSpan(list15)[0] = "liza"; + questRoot4.Author = list15; QuestRoot questRoot5 = questRoot; - index = 9; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span17 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference14 = ref span17[num]; + num = 9; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span7 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference14 = ref span7[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -404759,20 +333329,17 @@ public static class AssemblyQuestLoader } } }; - obj12.Steps = list17; + obj12.Steps = list16; reference14 = obj12; - num++; - ref QuestSequence reference15 = ref span17[num]; + ref QuestSequence reference15 = ref span7[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.NorthShroudFallgourdFloat, SkipConditions = new SkipConditions @@ -404783,170 +333350,133 @@ public static class AssemblyQuestLoader } } }; - obj13.Steps = list18; + obj13.Steps = list17; reference15 = obj13; - num++; - ref QuestSequence reference16 = ref span17[num]; + ref QuestSequence reference16 = ref span7[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence4 = questSequence; - index2 = 3; - list8 = new List(index2); - CollectionsMarshal.SetCount(list8, index2); - Span span20 = CollectionsMarshal.AsSpan(list8); - num2 = 0; - ref QuestStep reference17 = ref span20[num2]; + num2 = 3; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span8 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference17 = ref span8[0]; 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 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; + 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; reference18 = questStep2; - num2++; - ref QuestStep reference19 = ref span20[num2]; + ref QuestStep reference19 = ref span8[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1046376u, new Vector3(-25.345276f, -34.650696f, 172.96094f), 154); num3 = 6; - 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; + 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; reference19 = questStep3; - questSequence4.Steps = list8; + questSequence4.Steps = list3; reference16 = questSequence; - num++; - ref QuestSequence reference20 = ref span17[num]; + ref QuestSequence reference20 = ref span7[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; num2 = 1; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); - Span span24 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference21 = ref span24[index2]; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + ref QuestStep reference21 = ref CollectionsMarshal.AsSpan(list21)[0]; QuestStep obj15 = new QuestStep(EInteractionType.Interact, 1046377u, new Vector3(-54.76471f, -40.876083f, 239.36829f), 154) { Fly = true }; - index3 = 1; - List list23 = new List(index3); - CollectionsMarshal.SetCount(list23, index3); - Span span25 = CollectionsMarshal.AsSpan(list23); - num3 = 0; - span25[num3] = new DialogueChoice + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = 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 = list23; + obj15.DialogueChoices = list22; reference21 = obj15; - obj14.Steps = list22; + obj14.Steps = list21; reference20 = obj14; - num++; - ref QuestSequence reference22 = ref span17[num]; + ref QuestSequence reference22 = ref span7[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list24 = new List(index2); - CollectionsMarshal.SetCount(list24, index2); - Span span26 = CollectionsMarshal.AsSpan(list24); - num2 = 0; - ref QuestStep reference23 = ref span26[num2]; + num2 = 1; + List list23 = new List(num2); + CollectionsMarshal.SetCount(list23, num2); + ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list23)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1046379u, new Vector3(-62.60785f, -45.560196f, 269.4895f), 154); num3 = 1; - List list25 = new List(num3); - CollectionsMarshal.SetCount(list25, num3); - Span span27 = CollectionsMarshal.AsSpan(list25); - index3 = 0; - span27[index3] = new DialogueChoice + List list24 = new List(num3); + CollectionsMarshal.SetCount(list24, num3); + CollectionsMarshal.AsSpan(list24)[0] = 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 = list25; + questStep4.DialogueChoices = list24; reference23 = questStep4; - obj16.Steps = list24; + obj16.Steps = list23; reference22 = obj16; - num++; - ref QuestSequence reference24 = ref span17[num]; + ref QuestSequence reference24 = ref span7[5]; QuestSequence obj17 = new QuestSequence { Sequence = 5 }; num2 = 1; - 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; + 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; reference24 = obj17; - num++; - ref QuestSequence reference25 = ref span17[num]; + ref QuestSequence reference25 = ref span7[6]; questSequence = new QuestSequence { Sequence = 6 }; QuestSequence questSequence5 = questSequence; - index2 = 3; - list8 = new List(index2); - CollectionsMarshal.SetCount(list8, index2); - Span span29 = CollectionsMarshal.AsSpan(list8); - num2 = 0; - ref QuestStep reference26 = ref span29[num2]; + num2 = 3; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span12 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference26 = ref span12[0]; QuestStep obj18 = new QuestStep(EInteractionType.Interact, 2013574u, new Vector3(-297.47473f, 58.91504f, -274.61664f), 612) { StopDistance = 1f, @@ -404960,106 +333490,80 @@ public static class AssemblyQuestLoader } } }; - 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; + 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; reference26 = obj18; - num2++; - ref QuestStep reference27 = ref span29[num2]; + ref QuestStep reference27 = ref span12[1]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 2013575u, new Vector3(-325.42914f, 61.661743f, -266.1021f), 612) { Fly = true }; num3 = 6; - 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; + 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; reference27 = obj19; - num2++; - ref QuestStep reference28 = ref span29[num2]; + ref QuestStep reference28 = ref span12[2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 2013573u, new Vector3(-292.80542f, 61.875244f, -326.833f), 612) { Mount = false, Sprint = true }; - 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; + 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; reference28 = obj20; - questSequence5.Steps = list8; + questSequence5.Steps = list3; reference25 = questSequence; - num++; - ref QuestSequence reference29 = ref span17[num]; + ref QuestSequence reference29 = ref span7[7]; QuestSequence obj21 = new QuestSequence { Sequence = 7 }; num2 = 1; - 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; + 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; reference29 = obj21; - num++; - ref QuestSequence reference30 = ref span17[num]; + ref QuestSequence reference30 = ref span7[8]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(4852) }; - obj22.Steps = list31; + obj22.Steps = list30; reference30 = obj22; questRoot5.QuestSequence = list2; AddQuest(questId2, questRoot); @@ -405067,29 +333571,24 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot6 = questRoot; num = 1; - List list32 = new List(num); - CollectionsMarshal.SetCount(list32, num); - Span span35 = CollectionsMarshal.AsSpan(list32); - index = 0; - span35[index] = "liza"; - questRoot6.Author = list32; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + CollectionsMarshal.AsSpan(list31)[0] = "liza"; + questRoot6.Author = list31; QuestRoot questRoot7 = questRoot; - index = 8; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span36 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference31 = ref span36[num]; + num = 8; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span16 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference31 = ref span16[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -405100,20 +333599,17 @@ public static class AssemblyQuestLoader } } }; - obj23.Steps = list33; + obj23.Steps = list32; reference31 = obj23; - num++; - ref QuestSequence reference32 = ref span36[num]; + ref QuestSequence reference32 = ref span16[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Idyllshire, AethernetShortcut = new AethernetShortcut @@ -405122,137 +333618,108 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.IdyllshireEpilogueGate } }; - obj24.Steps = list34; + obj24.Steps = list33; reference32 = obj24; - num++; - ref QuestSequence reference33 = ref span36[num]; + ref QuestSequence reference33 = ref span16[2]; questSequence = new QuestSequence { Sequence = 2 }; QuestSequence questSequence6 = questSequence; num2 = 3; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span39 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - ref QuestStep reference34 = ref span39[index2]; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span17 = CollectionsMarshal.AsSpan(list3); + ref QuestStep reference34 = ref span17[0]; 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 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; + 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; reference35 = obj26; - index2++; - ref QuestStep reference36 = ref span39[index2]; + ref QuestStep reference36 = ref span17[2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2013577u, new Vector3(-69.29126f, 100.938354f, -336.47675f), 399) { Fly = true }; num3 = 6; - 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; + 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; reference36 = obj27; - questSequence6.Steps = list8; + questSequence6.Steps = list3; reference33 = questSequence; - num++; - ref QuestSequence reference37 = ref span36[num]; - QuestSequence obj28 = new QuestSequence + ref QuestSequence reference37 = ref span16[3]; + questSequence = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, Fly = true }; - index3 = 1; - List list39 = new List(index3); - CollectionsMarshal.SetCount(list39, index3); - Span span44 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - span44[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB131_04852_Q2_000_200"), Answer = new ExcelRef("TEXT_KINGBB131_04852_A1_000_200") }; - obj29.DialogueChoices = list39; - reference38 = obj29; - obj28.Steps = list38; - reference37 = obj28; - num++; - ref QuestSequence reference39 = ref span36[num]; - QuestSequence obj30 = new QuestSequence + obj28.DialogueChoices = list38; + reference38 = obj28; + questSequence7.Steps = list37; + reference37 = questSequence; + ref QuestSequence reference39 = ref span16[4]; + QuestSequence obj29 = new QuestSequence { Sequence = 4 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.CoerthasWesternHighlandsFalconsNest, @@ -405264,95 +333731,79 @@ public static class AssemblyQuestLoader } } }; - obj30.Steps = list40; - reference39 = obj30; - num++; - ref QuestSequence reference40 = ref span36[num]; - QuestSequence obj31 = new QuestSequence + obj29.Steps = list39; + reference39 = obj29; + ref QuestSequence reference40 = ref span16[5]; + QuestSequence obj30 = new QuestSequence { Sequence = 5 }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; num3 = 1; - 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 + 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 { Sequence = 6 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, NextQuestId = new QuestId(4853) }; - obj34.Steps = list44; - reference43 = obj34; + obj33.Steps = list43; + reference43 = obj33; questRoot7.QuestSequence = list2; AddQuest(questId3, questRoot); QuestId questId4 = new QuestId(4853); questRoot = new QuestRoot(); QuestRoot questRoot8 = questRoot; num = 1; - List list45 = new List(num); - CollectionsMarshal.SetCount(list45, num); - Span span50 = CollectionsMarshal.AsSpan(list45); - index = 0; - span50[index] = "liza"; - questRoot8.Author = list45; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + CollectionsMarshal.AsSpan(list44)[0] = "liza"; + questRoot8.Author = list44; QuestRoot questRoot9 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill, SkipConditions = new SkipConditions @@ -405363,110 +333814,92 @@ public static class AssemblyQuestLoader } } }; - obj35.Steps = list46; - reference44 = obj35; - num++; - ref QuestSequence reference45 = ref span51[num]; - QuestSequence obj36 = new QuestSequence + obj34.Steps = list45; + reference44 = obj34; + ref QuestSequence reference45 = ref span21[1]; + QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; - obj36.Steps = list47; - reference45 = obj36; - num++; - ref QuestSequence reference46 = ref span51[num]; - QuestSequence obj37 = new QuestSequence + obj35.Steps = list46; + reference45 = obj35; + ref QuestSequence reference46 = ref span21[2]; + QuestSequence obj36 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; - obj37.Steps = list48; - reference46 = obj37; - num++; - span51[num] = new QuestSequence + obj36.Steps = list47; + reference46 = obj36; + span21[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference47 = ref span51[num]; - QuestSequence obj38 = new QuestSequence + ref QuestSequence reference47 = ref span21[4]; + QuestSequence obj37 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SouthShroudQuarrymill }; - obj39.Steps = list50; - reference48 = obj39; + obj38.Steps = list49; + reference48 = obj38; questRoot9.QuestSequence = list2; AddQuest(questId4, questRoot); QuestId questId5 = new QuestId(4854); questRoot = new QuestRoot(); QuestRoot questRoot10 = questRoot; num = 1; - List list51 = new List(num); - CollectionsMarshal.SetCount(list51, num); - Span span57 = CollectionsMarshal.AsSpan(list51); - index = 0; - span57[index] = "liza"; - questRoot10.Author = list51; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + CollectionsMarshal.AsSpan(list50)[0] = "liza"; + questRoot10.Author = list50; QuestRoot questRoot11 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span58 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference49 = ref span58[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span22 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference49 = ref span22[0]; questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -405476,46 +333909,39 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions = new SkipConditions(); - SkipAetheryteCondition obj41 = new SkipAetheryteCondition + SkipAetheryteCondition obj40 = 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 list53 = new List(num3); - CollectionsMarshal.SetCount(list53, num3); - Span span61 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span61[index3] = new DialogueChoice + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB201_04854_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBB201_04854_A1_000_002") }; - obj40.DialogueChoices = list53; - reference50 = obj40; - questSequence7.Steps = list8; + obj39.DialogueChoices = list52; + reference50 = obj39; + questSequence8.Steps = list3; reference49 = questSequence; - num++; - ref QuestSequence reference51 = ref span58[num]; - QuestSequence obj42 = new QuestSequence + ref QuestSequence reference51 = ref span22[1]; + QuestSequence obj41 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -405523,69 +333949,59 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.Gridania } }; - obj42.Steps = list54; - reference51 = obj42; - num++; - ref QuestSequence reference52 = ref span58[num]; - QuestSequence obj43 = new QuestSequence + obj41.Steps = list53; + reference51 = obj41; + ref QuestSequence reference52 = ref span22[2]; + QuestSequence obj42 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { NextQuestId = new QuestId(4855) }; - obj44.Steps = list56; - reference53 = obj44; + obj43.Steps = list55; + reference53 = obj43; questRoot11.QuestSequence = list2; AddQuest(questId5, questRoot); QuestId questId6 = new QuestId(4855); questRoot = new QuestRoot(); QuestRoot questRoot12 = questRoot; num = 1; - List list57 = new List(num); - CollectionsMarshal.SetCount(list57, num); - Span span65 = CollectionsMarshal.AsSpan(list57); - index = 0; - span65[index] = "liza"; - questRoot12.Author = list57; + List list56 = new List(num); + CollectionsMarshal.SetCount(list56, num); + CollectionsMarshal.AsSpan(list56)[0] = "liza"; + questRoot12.Author = list56; QuestRoot questRoot13 = questRoot; - index = 4; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span66 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference54 = ref span66[num]; + num = 4; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span23 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference54 = ref span23[0]; questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, ItemId = 43538u, @@ -405604,8 +334020,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span67[num2] = new QuestStep(EInteractionType.EquipItem, null, null, 132) + span24[1] = new QuestStep(EInteractionType.EquipItem, null, null, 132) { ItemId = 41809u, SkipConditions = new SkipConditions @@ -405619,24 +334034,19 @@ public static class AssemblyQuestLoader } } }; - 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; + 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; reference54 = questSequence; - num++; - ref QuestSequence reference55 = ref span66[num]; - QuestSequence obj45 = new QuestSequence + ref QuestSequence reference55 = ref span23[1]; + QuestSequence obj44 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -405644,22 +334054,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaConjurer } }; - obj45.Steps = list58; - reference55 = obj45; - num++; - ref QuestSequence reference56 = ref span66[num]; + obj44.Steps = list57; + reference55 = obj44; + ref QuestSequence reference56 = ref span23[2]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -405667,70 +334074,60 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLancer } }; - index3 = 1; - List list60 = new List(index3); - CollectionsMarshal.SetCount(list60, index3); - Span span70 = CollectionsMarshal.AsSpan(list60); - num3 = 0; - span70[num3] = new DialogueChoice + num3 = 1; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + CollectionsMarshal.AsSpan(list59)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB202_04855_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGBB202_04855_A1_000_001") }; - obj46.DialogueChoices = list60; - reference57 = obj46; - questSequence9.Steps = list59; + obj45.DialogueChoices = list59; + reference57 = obj45; + questSequence10.Steps = list58; reference56 = questSequence; - num++; - ref QuestSequence reference58 = ref span66[num]; - QuestSequence obj47 = new QuestSequence + ref QuestSequence reference58 = ref span23[3]; + QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(4856) }; - obj47.Steps = list61; - reference58 = obj47; + obj46.Steps = list60; + reference58 = obj46; questRoot13.QuestSequence = list2; AddQuest(questId6, questRoot); QuestId questId7 = new QuestId(4856); questRoot = new QuestRoot(); QuestRoot questRoot14 = questRoot; num = 1; - List list62 = new List(num); - CollectionsMarshal.SetCount(list62, num); - Span span72 = CollectionsMarshal.AsSpan(list62); - index = 0; - span72[index] = "liza"; - questRoot14.Author = list62; + List list61 = new List(num); + CollectionsMarshal.SetCount(list61, num); + CollectionsMarshal.AsSpan(list61)[0] = "liza"; + questRoot14.Author = list61; QuestRoot questRoot15 = questRoot; - index = 6; - list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span73 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference59 = ref span73[num]; + num = 6; + list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span25 = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference59 = ref span25[0]; questSequence = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -405740,147 +334137,123 @@ public static class AssemblyQuestLoader } }; SkipConditions skipConditions2 = new SkipConditions(); - SkipAetheryteCondition obj49 = new SkipAetheryteCondition + SkipAetheryteCondition obj48 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 1; - 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; + 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; reference59 = questSequence; - num++; - ref QuestSequence reference61 = ref span73[num]; - QuestSequence obj50 = new QuestSequence + ref QuestSequence reference61 = ref span25[1]; + QuestSequence obj49 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead }; - obj50.Steps = list65; - reference61 = obj50; - num++; - ref QuestSequence reference62 = ref span73[num]; - QuestSequence obj51 = new QuestSequence + obj49.Steps = list64; + reference61 = obj49; + ref QuestSequence reference62 = ref span25[2]; + QuestSequence obj50 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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) + 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) { Fly = true }; - obj52.Steps = list67; - reference63 = obj52; - num++; - ref QuestSequence reference64 = ref span73[num]; - QuestSequence obj53 = new QuestSequence + obj51.Steps = list66; + reference63 = obj51; + ref QuestSequence reference64 = ref span25[4]; + QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, NextQuestId = new QuestId(4857) }; - obj55.Steps = list70; - reference66 = obj55; + obj54.Steps = list69; + reference66 = obj54; questRoot15.QuestSequence = list2; AddQuest(questId7, questRoot); QuestId questId8 = new QuestId(4857); questRoot = new QuestRoot(); QuestRoot questRoot16 = questRoot; num = 1; - List list71 = new List(num); - CollectionsMarshal.SetCount(list71, num); - Span span82 = CollectionsMarshal.AsSpan(list71); - index = 0; - span82[index] = "liza"; - questRoot16.Author = list71; + List list70 = new List(num); + CollectionsMarshal.SetCount(list70, num); + CollectionsMarshal.AsSpan(list70)[0] = "liza"; + questRoot16.Author = list70; QuestRoot questRoot17 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { Mount = true, AetheryteShortcut = EAetheryteLocation.CoerthasCentralHighlandsCampDragonhead, @@ -405892,20 +334265,17 @@ public static class AssemblyQuestLoader } } }; - obj56.Steps = list72; - reference67 = obj56; - num++; - ref QuestSequence reference68 = ref span83[num]; - QuestSequence obj57 = new QuestSequence + obj55.Steps = list71; + reference67 = obj55; + ref QuestSequence reference68 = ref span26[1]; + QuestSequence obj56 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -405915,22 +334285,19 @@ public static class AssemblyQuestLoader }, ItemId = 2003500u }; - obj57.Steps = list73; - reference68 = obj57; - num++; - ref QuestSequence reference69 = ref span83[num]; + obj56.Steps = list72; + reference68 = obj56; + ref QuestSequence reference69 = ref span26[2]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AethernetShortcut = new AethernetShortcut @@ -405940,153 +334307,123 @@ public static class AssemblyQuestLoader } }; num3 = 1; - List list75 = new List(num3); - CollectionsMarshal.SetCount(list75, num3); - Span span87 = CollectionsMarshal.AsSpan(list75); - index3 = 0; - span87[index3] = new DialogueChoice + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + CollectionsMarshal.AsSpan(list74)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB221_04857_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBB221_04857_A2_000_001") }; - obj58.DialogueChoices = list75; - reference70 = obj58; - questSequence11.Steps = list74; + obj57.DialogueChoices = list74; + reference70 = obj57; + questSequence12.Steps = list73; reference69 = questSequence; - num++; - ref QuestSequence reference71 = ref span83[num]; + ref QuestSequence reference71 = ref span26[3]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence12 = questSequence; + QuestSequence questSequence13 = questSequence; num2 = 3; - 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) + 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) { Fly = true, ItemId = 2003559u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index3 = 1; - List list76 = new List(index3); - CollectionsMarshal.SetCount(list76, index3); - Span span89 = CollectionsMarshal.AsSpan(list76); - num3 = 0; - span89[num3] = new ComplexCombatData + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = new ComplexCombatData { DataId = 17629u }; - obj59.ComplexCombatData = list76; + obj58.ComplexCombatData = list75; num3 = 6; - List list77 = new List(num3); + 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); CollectionsMarshal.SetCount(list77, num3); - 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 - }; - index3 = 1; - List list78 = new List(index3); - CollectionsMarshal.SetCount(list78, index3); - Span span91 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - span91[num3] = new ComplexCombatData + CollectionsMarshal.AsSpan(list77)[0] = new ComplexCombatData { DataId = 17629u }; - obj60.ComplexCombatData = list78; + obj59.ComplexCombatData = list77; 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) + 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) { 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 + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new ComplexCombatData { DataId = 17629u }; - obj61.ComplexCombatData = list80; - reference74 = obj61; - questSequence12.Steps = list8; + obj60.ComplexCombatData = list79; + reference74 = obj60; + questSequence13.Steps = list3; reference71 = questSequence; - num++; - ref QuestSequence reference75 = ref span83[num]; - QuestSequence obj62 = new QuestSequence + ref QuestSequence reference75 = ref span26[4]; + QuestSequence obj61 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - obj62.Steps = list81; - reference75 = obj62; - num++; - ref QuestSequence reference76 = ref span83[num]; - QuestSequence obj63 = new QuestSequence + obj61.Steps = list80; + reference75 = obj61; + ref QuestSequence reference76 = ref span26[5]; + QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -406096,37 +334433,32 @@ public static class AssemblyQuestLoader }, NextQuestId = new QuestId(4858) }; - obj63.Steps = list82; - reference76 = obj63; + obj62.Steps = list81; + reference76 = obj62; questRoot17.QuestSequence = list2; AddQuest(questId8, questRoot); QuestId questId9 = new QuestId(4858); questRoot = new QuestRoot(); QuestRoot questRoot18 = questRoot; num = 1; - List list83 = new List(num); - CollectionsMarshal.SetCount(list83, num); - Span span96 = CollectionsMarshal.AsSpan(list83); - index = 0; - span96[index] = "liza"; - questRoot18.Author = list83; + List list82 = new List(num); + CollectionsMarshal.SetCount(list82, num); + CollectionsMarshal.AsSpan(list82)[0] = "liza"; + questRoot18.Author = list82; QuestRoot questRoot19 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Kugane, AethernetShortcut = new AethernetShortcut @@ -406142,38 +334474,32 @@ public static class AssemblyQuestLoader } } }; - obj64.Steps = list84; - reference77 = obj64; - num++; - ref QuestSequence reference78 = ref span97[num]; - QuestSequence obj65 = new QuestSequence + obj63.Steps = list83; + reference77 = obj63; + ref QuestSequence reference78 = ref span30[1]; + QuestSequence obj64 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, ItemId = 2003503u }; - obj65.Steps = list85; - reference78 = obj65; - num++; - ref QuestSequence reference79 = ref span97[num]; - QuestSequence obj66 = new QuestSequence + obj64.Steps = list84; + reference78 = obj64; + ref QuestSequence reference79 = ref span30[2]; + QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -406181,22 +334507,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - obj66.Steps = list86; - reference79 = obj66; - num++; - ref QuestSequence reference80 = ref span97[num]; + obj65.Steps = list85; + reference79 = obj65; + ref QuestSequence reference80 = ref span30[3]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence13 = questSequence; + QuestSequence questSequence14 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 0.5f, Fly = true, @@ -406207,45 +334530,32 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - QuestStep questStep6 = questStep5; num3 = 9; - 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; + 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; reference80 = questSequence; - num++; - ref QuestSequence reference82 = ref span97[num]; + ref QuestSequence reference82 = ref span30[4]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -406254,69 +334564,60 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahThaumaturge } }; - obj67.Steps = list88; + obj67.Steps = list87; reference82 = obj67; - num++; - ref QuestSequence reference83 = ref span97[num]; - QuestSequence obj68 = new QuestSequence + ref QuestSequence reference83 = ref span30[5]; + questSequence = new QuestSequence { Sequence = byte.MaxValue }; + QuestSequence questSequence15 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 5f }; - index3 = 1; - List list90 = new List(index3); - CollectionsMarshal.SetCount(list90, index3); - Span span105 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span105[num3] = new DialogueChoice + num3 = 1; + List list89 = new List(num3); + CollectionsMarshal.SetCount(list89, num3); + CollectionsMarshal.AsSpan(list89)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB231_04858_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGBB231_04858_A3_000_002") }; - obj69.DialogueChoices = list90; - obj69.NextQuestId = new QuestId(4859); - reference84 = obj69; - obj68.Steps = list89; - reference83 = obj68; + obj68.DialogueChoices = list89; + obj68.NextQuestId = new QuestId(4859); + reference84 = obj68; + questSequence15.Steps = list88; + reference83 = questSequence; questRoot19.QuestSequence = list2; AddQuest(questId9, questRoot); QuestId questId10 = new QuestId(4859); questRoot = new QuestRoot(); QuestRoot questRoot20 = questRoot; num = 1; - List list91 = new List(num); - CollectionsMarshal.SetCount(list91, num); - Span span106 = CollectionsMarshal.AsSpan(list91); - index = 0; - span106[index] = "liza"; - questRoot20.Author = list91; + List list90 = new List(num); + CollectionsMarshal.SetCount(list90, num); + CollectionsMarshal.AsSpan(list90)[0] = "liza"; + questRoot20.Author = list90; QuestRoot questRoot21 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.Uldah, @@ -406333,101 +334634,85 @@ public static class AssemblyQuestLoader } } }; - obj70.Steps = list92; - reference85 = obj70; - num++; - ref QuestSequence reference86 = ref span107[num]; - QuestSequence obj71 = new QuestSequence + obj69.Steps = list91; + reference85 = obj69; + ref QuestSequence reference86 = ref span32[1]; + QuestSequence obj70 = new QuestSequence { Sequence = 1 }; num2 = 2; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.CentralShroudBentbranchMeadows }; - 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 + 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 { Sequence = 2 }; - 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); + 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); num3 = 1; - List list95 = new List(num3); - CollectionsMarshal.SetCount(list95, num3); - Span span111 = CollectionsMarshal.AsSpan(list95); - index3 = 0; - span111[index3] = new DialogueChoice + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBB241_04859_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGBB241_04859_A2_000_001") }; - questStep7.DialogueChoices = list95; - reference88 = questStep7; - obj72.Steps = list94; - reference87 = obj72; - num++; - ref QuestSequence reference89 = ref span107[num]; - QuestSequence obj73 = new QuestSequence + questStep5.DialogueChoices = list94; + reference88 = questStep5; + obj71.Steps = list93; + reference87 = obj71; + ref QuestSequence reference89 = ref span32[3]; + QuestSequence obj72 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj73.Steps = list96; - reference89 = obj73; + obj72.Steps = list95; + reference89 = obj72; questRoot21.QuestSequence = list2; AddQuest(questId10, questRoot); QuestId questId11 = new QuestId(4860); questRoot = new QuestRoot(); QuestRoot questRoot22 = questRoot; num = 1; - List list97 = new List(num); - CollectionsMarshal.SetCount(list97, num); - Span span113 = CollectionsMarshal.AsSpan(list97); - index = 0; - span113[index] = "liza"; - questRoot22.Author = list97; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + CollectionsMarshal.AsSpan(list96)[0] = "liza"; + questRoot22.Author = list96; QuestRoot questRoot23 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.OldSharlayan, @@ -406439,351 +334724,277 @@ public static class AssemblyQuestLoader } } }; - obj74.Steps = list98; - reference90 = obj74; - num++; - ref QuestSequence reference91 = ref span114[num]; - QuestSequence obj75 = new QuestSequence + obj73.Steps = list97; + reference90 = obj73; + ref QuestSequence reference91 = ref span34[1]; + QuestSequence obj74 = new QuestSequence { Sequence = 1 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)987 }; - 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 + 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 { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; - num++; - ref QuestSequence reference93 = ref span114[num]; + ref QuestSequence reference93 = ref span34[4]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence14 = questSequence; + QuestSequence questSequence16 = questSequence; num2 = 5; - 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) + 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) { 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 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); + 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); num3 = 6; List list104 = new List(num3); CollectionsMarshal.SetCount(list104, num3); - 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; + 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; reference93 = questSequence; - num++; - ref QuestSequence reference99 = ref span114[num]; - QuestSequence obj79 = new QuestSequence + ref QuestSequence reference99 = ref span34[5]; + QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj80.Steps = list107; - reference100 = obj80; + obj79.Steps = list106; + reference100 = obj79; questRoot23.QuestSequence = list2; AddQuest(questId11, questRoot); QuestId questId12 = new QuestId(4861); questRoot = new QuestRoot(); QuestRoot questRoot24 = questRoot; num = 1; - List list108 = new List(num); - CollectionsMarshal.SetCount(list108, num); - Span span126 = CollectionsMarshal.AsSpan(list108); - index = 0; - span126[index] = "liza"; - questRoot24.Author = list108; + List list107 = new List(num); + CollectionsMarshal.SetCount(list107, num); + CollectionsMarshal.AsSpan(list107)[0] = "liza"; + questRoot24.Author = list107; QuestRoot questRoot25 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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 }; - obj81.Steps = list109; - reference101 = obj81; - num++; - ref QuestSequence reference102 = ref span127[num]; - QuestSequence obj82 = new QuestSequence + obj80.Steps = list108; + reference101 = obj80; + ref QuestSequence reference102 = ref span42[1]; + QuestSequence obj81 = new QuestSequence { Sequence = 1 }; num2 = 1; - List list110 = new List(num2); - CollectionsMarshal.SetCount(list110, num2); - Span span129 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span129[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(112.38269f, -16.560852f, 142.29028f), 1185) + 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) { StopDistance = 7f }; - obj82.Steps = list110; - reference102 = obj82; - num++; - ref QuestSequence reference103 = ref span127[num]; - QuestSequence obj83 = new QuestSequence + obj81.Steps = list109; + reference102 = obj81; + ref QuestSequence reference103 = ref span42[2]; + QuestSequence obj82 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.25f }; - obj83.Steps = list111; - reference103 = obj83; - num++; - ref QuestSequence reference104 = ref span127[num]; - QuestSequence obj84 = new QuestSequence + obj82.Steps = list110; + reference103 = obj82; + ref QuestSequence reference104 = ref span42[3]; + QuestSequence obj83 = 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) + 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) { StopDistance = 0.25f }; - obj84.Steps = list112; - reference104 = obj84; - num++; - ref QuestSequence reference105 = ref span127[num]; + obj83.Steps = list111; + reference104 = obj83; + ref QuestSequence reference105 = ref span42[4]; questSequence = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f, Aetheryte = EAetheryteLocation.Tuliyollal }; - 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) + 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) { AethernetShard = EAetheryteLocation.TuliyollalBrightploomPost }; - num2++; - span132[num2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(105.193634f, 42f, -341.83524f), 1185) + span43[3] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(105.193634f, 42f, -341.83524f), 1185) { StopDistance = 0.25f }; - questSequence15.Steps = list8; + questSequence17.Steps = list112; reference105 = questSequence; - num++; - ref QuestSequence reference106 = ref span127[num]; - QuestSequence obj85 = new QuestSequence + ref QuestSequence reference106 = ref span42[5]; + QuestSequence obj84 = new QuestSequence { Sequence = 5 }; num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span133 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(41.811092f, 47.072273f, -408.94568f), 1185) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1046504u, new Vector3(41.811092f, 47.072273f, -408.94568f), 1185) { StopDistance = 0.25f }; - obj85.Steps = list113; - reference106 = obj85; - num++; - ref QuestSequence reference107 = ref span127[num]; - QuestSequence obj86 = new QuestSequence + obj84.Steps = list113; + reference106 = obj84; + ref QuestSequence reference107 = ref span42[6]; + QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj86.Steps = list114; - reference107 = obj86; + obj85.Steps = list114; + reference107 = obj85; questRoot25.QuestSequence = list2; AddQuest(questId12, questRoot); QuestId questId13 = new QuestId(4862); @@ -406792,123 +335003,103 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span135 = CollectionsMarshal.AsSpan(list115); - index = 0; - span135[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; questRoot26.Author = list115; QuestRoot questRoot27 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span137 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046509u, new Vector3(43.137207f, 46.999996f, -413.016f), 1185) { StopDistance = 7f }; - obj87.Steps = list116; - reference108 = obj87; - num++; - ref QuestSequence reference109 = ref span136[num]; - QuestSequence obj88 = new QuestSequence + obj86.Steps = list116; + reference108 = obj86; + ref QuestSequence reference109 = ref span44[1]; + QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; - obj88.Steps = list117; - reference109 = obj88; - num++; - ref QuestSequence reference110 = ref span136[num]; - QuestSequence obj89 = new QuestSequence + obj87.Steps = list117; + reference109 = obj87; + ref QuestSequence reference110 = ref span44[2]; + QuestSequence obj88 = new QuestSequence { Sequence = 2 }; num2 = 1; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span139 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(114.4164f, 46.999996f, -125.71052f), 1185) + CollectionsMarshal.AsSpan(list118)[0] = new QuestStep(EInteractionType.Interact, 1046508u, new Vector3(114.4164f, 46.999996f, -125.71052f), 1185) { StopDistance = 0.25f }; - obj89.Steps = list118; - reference110 = obj89; - num++; - ref QuestSequence reference111 = ref span136[num]; - QuestSequence obj90 = new QuestSequence + obj88.Steps = list118; + reference110 = obj88; + ref QuestSequence reference111 = ref span44[3]; + QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f }; - obj90.Steps = list119; - reference111 = obj90; - num++; - ref QuestSequence reference112 = ref span136[num]; - QuestSequence obj91 = new QuestSequence + obj89.Steps = list119; + reference111 = obj89; + ref QuestSequence reference112 = ref span44[4]; + QuestSequence obj90 = new QuestSequence { Sequence = 4 }; num2 = 2; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span141 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + Span span45 = CollectionsMarshal.AsSpan(list120); + span45[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalTheResplendentQuarter }; - index2++; - span141[index2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-317.23196f, 2.9999998f, -13.00843f), 1185) + span45[1] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-317.23196f, 2.9999998f, -13.00843f), 1185) { StopDistance = 0.25f }; - obj91.Steps = list120; - reference112 = obj91; - num++; - ref QuestSequence reference113 = ref span136[num]; - QuestSequence obj92 = new QuestSequence + obj90.Steps = list120; + reference112 = obj90; + ref QuestSequence reference113 = ref span44[5]; + QuestSequence obj91 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Comment = "Dirigible Landing", AethernetShard = EAetheryteLocation.TuliyollalDirigibleLanding }; - num2++; - span142[num2] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-273.17014f, 0.0722692f, 129.50276f), 1185) + span46[1] = new QuestStep(EInteractionType.Interact, 1046509u, new Vector3(-273.17014f, 0.0722692f, 129.50276f), 1185) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -406917,22 +335108,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj92.Steps = list121; - reference113 = obj92; - num++; - ref QuestSequence reference114 = ref span136[num]; - QuestSequence obj93 = new QuestSequence + obj91.Steps = list121; + reference113 = obj91; + ref QuestSequence reference114 = ref span44[6]; + QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - 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; + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046510u, new Vector3(-195.6665f, -4.927734f, 132.18884f), 1185); + obj92.Steps = list122; + reference114 = obj92; questRoot27.QuestSequence = list2; AddQuest(questId13, questRoot); QuestId questId14 = new QuestId(4863); @@ -406941,165 +335129,134 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span144 = CollectionsMarshal.AsSpan(list123); - index = 0; - span144[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot28.Author = list123; QuestRoot questRoot29 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj94.Steps = list124; - reference115 = obj94; - num++; - ref QuestSequence reference116 = ref span145[num]; + obj93.Steps = list124; + reference115 = obj93; + ref QuestSequence reference116 = ref span47[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence16 = questSequence; + QuestSequence questSequence18 = questSequence; num2 = 1; - 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) + 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) { StopDistance = 4.5f }; num3 = 3; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - Span span148 = CollectionsMarshal.AsSpan(list125); - index3 = 0; - span148[index3] = new DialogueChoice + Span span48 = CollectionsMarshal.AsSpan(list125); + span48[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q3_000_000") }; - index3++; - span148[index3] = new DialogueChoice + span48[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q10_000_000") }; - index3++; - span148[index3] = new DialogueChoice + span48[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA104_04863_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMA104_04863_A2_000_001") }; - 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; + 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; reference116 = questSequence; - num++; - ref QuestSequence reference118 = ref span145[num]; - QuestSequence obj96 = new QuestSequence + ref QuestSequence reference118 = ref span47[2]; + QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShard = EAetheryteLocation.TuliyollalTheForardCabins }; - 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 + 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 { Sequence = 3 }; num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span151 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + CollectionsMarshal.AsSpan(list128)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f }; - obj97.Steps = list128; - reference119 = obj97; - num++; - ref QuestSequence reference120 = ref span145[num]; - QuestSequence obj98 = new QuestSequence + obj96.Steps = list128; + reference119 = obj96; + ref QuestSequence reference120 = ref span47[4]; + QuestSequence obj97 = new QuestSequence { Sequence = 4 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence17 = questSequence; + QuestSequence questSequence19 = questSequence; num2 = 4; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span153 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span51 = CollectionsMarshal.AsSpan(list3); + span51[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalBaysideBevyMarketplace }; - index2++; - span153[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) + span51[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-68.179695f, 85.001854f, -56.396465f), 1185) { Comment = "Resplentend Quarter Lamp nav", AethernetShortcut = new AethernetShortcut @@ -407108,14 +335265,12 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - index2++; - span153[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + span51[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalVollokShoonsa }; - index2++; - span153[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046517u, new Vector3(-178.97314f, 120.749985f, -320.21063f), 1185); - questSequence17.Steps = list8; + span51[3] = new QuestStep(EInteractionType.CompleteQuest, 1046517u, new Vector3(-178.97314f, 120.749985f, -320.21063f), 1185); + questSequence19.Steps = list3; reference121 = questSequence; questRoot29.QuestSequence = list2; AddQuest(questId14, questRoot); @@ -407125,61 +335280,50 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span154 = CollectionsMarshal.AsSpan(list130); - index = 0; - span154[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot30.Author = list130; QuestRoot questRoot31 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj99.Steps = list131; - reference122 = obj99; - num++; - ref QuestSequence reference123 = ref span155[num]; - QuestSequence obj100 = new QuestSequence + obj98.Steps = list131; + reference122 = obj98; + ref QuestSequence reference123 = ref span52[1]; + QuestSequence obj99 = new QuestSequence { Sequence = 1 }; num2 = 1; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - Span span157 = CollectionsMarshal.AsSpan(list132); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.Interact, 1046523u, new Vector3(-54.276367f, 95.49999f, -100.75531f), 1185) + CollectionsMarshal.AsSpan(list132)[0] = new QuestStep(EInteractionType.Interact, 1046523u, new Vector3(-54.276367f, 95.49999f, -100.75531f), 1185) { StopDistance = 5f }; - obj100.Steps = list132; - reference123 = obj100; - num++; - ref QuestSequence reference124 = ref span155[num]; - QuestSequence obj101 = new QuestSequence + obj99.Steps = list132; + reference123 = obj99; + ref QuestSequence reference124 = ref span52[2]; + QuestSequence obj100 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -407187,35 +335331,30 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - obj101.Steps = list133; - reference124 = obj101; - num++; - ref QuestSequence reference125 = ref span155[num]; - QuestSequence obj102 = new QuestSequence + obj100.Steps = list133; + reference124 = obj100; + ref QuestSequence reference125 = ref span52[3]; + QuestSequence obj101 = new QuestSequence { Sequence = 3 }; num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - 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 + 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 { Sequence = 4 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -407226,31 +335365,26 @@ public static class AssemblyQuestLoader num3 = 1; List list136 = new List(num3); CollectionsMarshal.SetCount(list136, num3); - Span span161 = CollectionsMarshal.AsSpan(list136); - index3 = 0; - span161[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list136)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA105_04864_SYSTEM_000_060") }; - obj104.DialogueChoices = list136; - reference127 = obj104; - obj103.Steps = list135; - reference126 = obj103; - num++; - ref QuestSequence reference128 = ref span155[num]; - QuestSequence obj105 = new QuestSequence + obj102.DialogueChoices = list136; + reference127 = obj102; + questSequence20.Steps = list135; + reference126 = questSequence; + ref QuestSequence reference128 = ref span52[5]; + QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - 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; + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185); + obj103.Steps = list137; + reference128 = obj103; questRoot31.QuestSequence = list2; AddQuest(questId15, questRoot); QuestId questId16 = new QuestId(4865); @@ -407259,82 +335393,67 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span163 = CollectionsMarshal.AsSpan(list138); - index = 0; - span163[index] = "liza"; + CollectionsMarshal.AsSpan(list138)[0] = "liza"; questRoot32.Author = list138; QuestRoot questRoot33 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj106.Steps = list139; - reference129 = obj106; - num++; - ref QuestSequence reference130 = ref span164[num]; - QuestSequence obj107 = new QuestSequence + obj104.Steps = list139; + reference129 = obj104; + ref QuestSequence reference130 = ref span53[1]; + QuestSequence obj105 = new QuestSequence { Sequence = 1 }; num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - 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 + 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 { Sequence = 2 }; - num++; - ref QuestSequence reference131 = ref span164[num]; - QuestSequence obj108 = new QuestSequence + ref QuestSequence reference131 = ref span53[3]; + QuestSequence obj106 = new QuestSequence { Sequence = 3 }; - 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) + 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) { DisableNavmesh = true }; - obj108.Steps = list141; - reference131 = obj108; - num++; - ref QuestSequence reference132 = ref span164[num]; - QuestSequence obj109 = new QuestSequence + obj106.Steps = list141; + reference131 = obj106; + ref QuestSequence reference132 = ref span53[4]; + QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - 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; + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046694u, new Vector3(-264.8203f, 5.6243224f, -571.80133f), 1188); + obj107.Steps = list142; + reference132 = obj107; questRoot33.QuestSequence = list2; AddQuest(questId16, questRoot); QuestId questId17 = new QuestId(4866); @@ -407343,177 +335462,134 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span169 = CollectionsMarshal.AsSpan(list143); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot34.Author = list143; QuestRoot questRoot35 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj110.Steps = list144; - reference133 = obj110; - num++; - ref QuestSequence reference134 = ref span170[num]; + obj108.Steps = list144; + reference133 = obj108; + ref QuestSequence reference134 = ref span54[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence18 = questSequence; + QuestSequence questSequence21 = questSequence; num2 = 4; - 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) + 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) { Aetheryte = EAetheryteLocation.KozamaukaOkHanu }; - 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); + 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); num3 = 6; List list146 = new List(num3); CollectionsMarshal.SetCount(list146, num3); - 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; + 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; reference134 = questSequence; - num++; - ref QuestSequence reference137 = ref span170[num]; - QuestSequence obj111 = new QuestSequence + ref QuestSequence reference137 = ref span54[2]; + QuestSequence obj109 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence19 = questSequence; + QuestSequence questSequence22 = questSequence; num2 = 2; - 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); + 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); num3 = 6; List list149 = new List(num3); CollectionsMarshal.SetCount(list149, num3); - 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; + 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; reference138 = questSequence; - num++; - ref QuestSequence reference141 = ref span170[num]; - QuestSequence obj112 = new QuestSequence + ref QuestSequence reference141 = ref span54[4]; + QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot35.QuestSequence = list2; AddQuest(questId17, questRoot); QuestId questId18 = new QuestId(4867); @@ -407522,192 +335598,146 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span180 = CollectionsMarshal.AsSpan(list151); - index = 0; - span180[index] = "liza"; + CollectionsMarshal.AsSpan(list151)[0] = "liza"; questRoot36.Author = list151; QuestRoot questRoot37 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span182 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046702u, new Vector3(-122.453674f, 9.842161f, -441.21466f), 1188) + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046702u, new Vector3(-122.453674f, 9.842161f, -441.21466f), 1188) { StopDistance = 5f }; - obj113.Steps = list152; - reference142 = obj113; - num++; - ref QuestSequence reference143 = ref span181[num]; - QuestSequence obj114 = new QuestSequence + obj111.Steps = list152; + reference142 = obj111; + ref QuestSequence reference143 = ref span61[1]; + QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence20 = questSequence; + QuestSequence questSequence23 = questSequence; num2 = 4; - 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); + 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); num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - 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); + 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); num3 = 6; List list157 = new List(num3); CollectionsMarshal.SetCount(list157, num3); - 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; + 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; reference144 = questSequence; - num++; - ref QuestSequence reference149 = ref span181[num]; - QuestSequence obj115 = new QuestSequence + ref QuestSequence reference149 = ref span61[3]; + QuestSequence obj113 = new QuestSequence { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span190 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.Snipe, 1046718u, new Vector3(-101.18262f, 9.773315f, -532.15845f), 1188) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Snipe, 1046718u, new Vector3(-101.18262f, 9.773315f, -532.15845f), 1188) { Comment = "Inspect Eye, Carrying Pole and Tail", AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj116.Steps = list159; - reference150 = obj116; - num++; - ref QuestSequence reference151 = ref span181[num]; - QuestSequence obj117 = new QuestSequence + obj114.Steps = list159; + reference150 = obj114; + ref QuestSequence reference151 = ref span61[5]; + QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; - obj117.Steps = list160; - reference151 = obj117; + obj115.Steps = list160; + reference151 = obj115; questRoot37.QuestSequence = list2; AddQuest(questId18, questRoot); QuestId questId19 = new QuestId(4868); @@ -407716,411 +335746,339 @@ public static class AssemblyQuestLoader num = 1; List list161 = new List(num); CollectionsMarshal.SetCount(list161, num); - Span span192 = CollectionsMarshal.AsSpan(list161); - index = 0; - span192[index] = "liza"; + CollectionsMarshal.AsSpan(list161)[0] = "liza"; questRoot38.Author = list161; QuestRoot questRoot39 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span194 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046725u, new Vector3(-105.85187f, 9.773315f, -536.9192f), 1188) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046725u, new Vector3(-105.85187f, 9.773315f, -536.9192f), 1188) { StopDistance = 7f }; - obj118.Steps = list162; - reference152 = obj118; - num++; - ref QuestSequence reference153 = ref span193[num]; - QuestSequence obj119 = new QuestSequence + obj116.Steps = list162; + reference152 = obj116; + ref QuestSequence reference153 = ref span67[1]; + QuestSequence obj117 = new QuestSequence { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 2; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span196 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013934u, new Vector3(299.48877f, 1.3884888f, -688.4413f), 1188) + Span span68 = CollectionsMarshal.AsSpan(list164); + span68[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013934u, new Vector3(299.48877f, 1.3884888f, -688.4413f), 1188) { AetherCurrentId = 2818419u }; - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list166 = new List(num2); CollectionsMarshal.SetCount(list166, num2); - Span span198 = CollectionsMarshal.AsSpan(list166); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.Interact, 1046731u, new Vector3(-182.20801f, 2.399998f, -388.50995f), 1188) + CollectionsMarshal.AsSpan(list166)[0] = new QuestStep(EInteractionType.Interact, 1046731u, new Vector3(-182.20801f, 2.399998f, -388.50995f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj122.Steps = list166; - reference156 = obj122; - num++; - ref QuestSequence reference157 = ref span193[num]; - QuestSequence obj123 = new QuestSequence + obj120.Steps = list166; + reference156 = obj120; + ref QuestSequence reference157 = ref span67[5]; + QuestSequence obj121 = new QuestSequence { Sequence = 5 }; - 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 + 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 { Sequence = 6 }; num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - 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 + 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 { Sequence = 7 }; - 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) + 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) { AetherCurrentId = 2818420u }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 8 }; - QuestSequence questSequence21 = questSequence; + QuestSequence questSequence24 = questSequence; num2 = 4; - 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) + 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) { AetherCurrentId = 2818423u }; - index2++; - span202[index2] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188) + span70[3] = new QuestStep(EInteractionType.Interact, 1046741u, new Vector3(335.22546f, 87.375534f, -612.54297f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - questSequence21.Steps = list8; + questSequence24.Steps = list170; reference160 = questSequence; - num++; - ref QuestSequence reference161 = ref span193[num]; - QuestSequence obj126 = new QuestSequence + ref QuestSequence reference161 = ref span67[9]; + QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj126.Steps = list170; - reference161 = obj126; + obj124.Steps = list171; + reference161 = obj124; questRoot39.QuestSequence = list2; AddQuest(questId19, questRoot); QuestId questId20 = new QuestId(4869); questRoot = new QuestRoot(); QuestRoot questRoot40 = questRoot; num = 1; - List list171 = new List(num); - CollectionsMarshal.SetCount(list171, num); - Span span204 = CollectionsMarshal.AsSpan(list171); - index = 0; - span204[index] = "liza"; - questRoot40.Author = list171; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + CollectionsMarshal.AsSpan(list172)[0] = "liza"; + questRoot40.Author = list172; QuestRoot questRoot41 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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 + 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 { Sequence = 1 }; - 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 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) + 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 { - EnemySpawnType = EEnemySpawnType.AfterInteraction + Sequence = 2 }; - 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 - }; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; num3 = 1; - 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]; + 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 + { + 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) + { + 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]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence22 = questSequence; + QuestSequence questSequence25 = questSequence; num2 = 3; - 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) + 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) { DisableNavmesh = true, Mount = true }; - index2++; - span212[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013938u, new Vector3(516.80774f, 17.959839f, -348.0431f), 1188) + span72[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013938u, new Vector3(516.80774f, 17.959839f, -348.0431f), 1188) { AetherCurrentId = 2818425u }; - index2++; - ref QuestStep reference169 = ref span212[index2]; - QuestStep obj133 = new QuestStep(EInteractionType.Combat, 2013632u, new Vector3(656.7025f, 7.309021f, -289.44843f), 1188) + ref QuestStep reference169 = ref span72[2]; + QuestStep obj131 = new QuestStep(EInteractionType.Combat, 2013632u, new Vector3(656.7025f, 7.309021f, -289.44843f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = 17690u; + obj131.KillEnemyDataIds = list179; + reference169 = obj131; + questSequence25.Steps = list3; reference168 = questSequence; - num++; - ref QuestSequence reference170 = ref span205[num]; - QuestSequence obj134 = new QuestSequence + ref QuestSequence reference170 = ref span71[5]; + QuestSequence obj132 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Aetheryte = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span214[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013937u, new Vector3(918.15063f, 10.116699f, -404.10468f), 1188) + span73[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013937u, new Vector3(918.15063f, 10.116699f, -404.10468f), 1188) { AetherCurrentId = 2818424u }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj135.Steps = list180; - reference171 = obj135; + obj133.Steps = list181; + reference171 = obj133; questRoot41.QuestSequence = list2; AddQuest(questId20, questRoot); QuestId questId21 = new QuestId(4870); questRoot = new QuestRoot(); QuestRoot questRoot42 = questRoot; num = 1; - List list181 = new List(num); - CollectionsMarshal.SetCount(list181, num); - Span span216 = CollectionsMarshal.AsSpan(list181); - index = 0; - span216[index] = "liza"; - questRoot42.Author = list181; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + CollectionsMarshal.AsSpan(list182)[0] = "liza"; + questRoot42.Author = list182; QuestRoot questRoot43 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj136.Steps = list182; - reference172 = obj136; - num++; - ref QuestSequence reference173 = ref span217[num]; + obj134.Steps = list183; + reference172 = obj134; + ref QuestSequence reference173 = ref span74[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence23 = questSequence; + QuestSequence questSequence26 = questSequence; num2 = 3; - 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) + 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) { ChatMessage = new ChatMessage { @@ -408128,53 +336086,19 @@ public static class AssemblyQuestLoader } }; num3 = 6; - 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) + 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) { ChatMessage = new ChatMessage { @@ -408184,91 +336108,92 @@ public static class AssemblyQuestLoader num3 = 6; List list185 = new List(num3); CollectionsMarshal.SetCount(list185, num3); - 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; + 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; reference173 = questSequence; - num++; - ref QuestSequence reference177 = ref span217[num]; - QuestSequence obj140 = new QuestSequence + ref QuestSequence reference177 = ref span74[2]; + QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - 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 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 + 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 + { + 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 { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; - obj142.Steps = list188; - reference179 = obj142; - num++; - ref QuestSequence reference180 = ref span217[num]; + obj140.Steps = list189; + reference179 = obj140; + ref QuestSequence reference180 = ref span74[5]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence24 = questSequence; + QuestSequence questSequence27 = questSequence; num2 = 3; - 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) + 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) { PickUpQuestId = new QuestId(5064) }; - index2++; - span226[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188) + span79[1] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188) { PickUpQuestId = new QuestId(5081) }; - index2++; - span226[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) + span79[2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -408277,7 +336202,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - questSequence24.Steps = list8; + questSequence27.Steps = list3; reference180 = questSequence; questRoot43.QuestSequence = list2; AddQuest(questId21, questRoot); @@ -408285,43 +336210,35 @@ public static class AssemblyQuestLoader questRoot = new QuestRoot(); QuestRoot questRoot44 = questRoot; num = 1; - List list189 = new List(num); - CollectionsMarshal.SetCount(list189, num); - Span span227 = CollectionsMarshal.AsSpan(list189); - index = 0; - span227[index] = "liza"; - questRoot44.Author = list189; + List list190 = new List(num); + CollectionsMarshal.SetCount(list190, num); + CollectionsMarshal.AsSpan(list190)[0] = "liza"; + questRoot44.Author = list190; QuestRoot questRoot45 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 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) + 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 + { + 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) { AethernetShortcut = new AethernetShortcut { @@ -408329,452 +336246,351 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj144.Steps = list191; - reference182 = obj144; - num++; - span228[num] = new QuestSequence + obj142.Steps = list192; + reference182 = obj142; + span80[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference183 = ref span228[num]; - QuestSequence obj145 = new QuestSequence + ref QuestSequence reference183 = ref span80[3]; + QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot45.QuestSequence = list2; AddQuest(questId22, questRoot); QuestId questId23 = new QuestId(4872); questRoot = new QuestRoot(); QuestRoot questRoot46 = questRoot; num = 1; - List list193 = new List(num); - CollectionsMarshal.SetCount(list193, num); - Span span232 = CollectionsMarshal.AsSpan(list193); - index = 0; - span232[index] = "liza"; - questRoot46.Author = list193; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + CollectionsMarshal.AsSpan(list194)[0] = "liza"; + questRoot46.Author = list194; QuestRoot questRoot47 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { StopDistance = 7f }; - obj146.Steps = list194; - reference184 = obj146; - num++; - ref QuestSequence reference185 = ref span233[num]; + obj144.Steps = list195; + reference184 = obj144; + ref QuestSequence reference185 = ref span81[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.UrqopachaWachunpelo }; - 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); + ref QuestStep reference186 = ref span82[1]; + QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1046557u, new Vector3(353.07837f, -160.20226f, -447.5014f), 1187); num3 = 6; List list196 = new List(num3); CollectionsMarshal.SetCount(list196, num3); - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA113_04872_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMA113_04872_A1_000_001") }; - 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); + 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); num3 = 6; - 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; + 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; reference185 = questSequence; - num++; - ref QuestSequence reference189 = ref span233[num]; - QuestSequence obj147 = new QuestSequence + ref QuestSequence reference189 = ref span81[2]; + QuestSequence obj145 = new QuestSequence { Sequence = 2 }; num2 = 1; - 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 + 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 { Sequence = 3 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; - QuestSequence questSequence26 = questSequence; + QuestSequence questSequence29 = questSequence; num2 = 4; - 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) + 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) { 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 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); + 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); num3 = 6; List list204 = new List(num3); CollectionsMarshal.SetCount(list204, num3); - 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; + 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; reference191 = questSequence; - num++; - ref QuestSequence reference196 = ref span233[num]; - QuestSequence obj150 = new QuestSequence + ref QuestSequence reference196 = ref span81[5]; + QuestSequence obj148 = new QuestSequence { Sequence = 5 }; - 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 + 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 { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA113_04872_Q2_000_000"), Answer = new ExcelRef("TEXT_KINGMA113_04872_A2_000_001") }; - questStep25.DialogueChoices = list206; - reference197 = questStep25; - obj150.Steps = list205; - reference196 = obj150; - num++; - ref QuestSequence reference198 = ref span233[num]; - QuestSequence obj151 = new QuestSequence + questStep23.DialogueChoices = list207; + reference197 = questStep23; + obj148.Steps = list206; + reference196 = obj148; + ref QuestSequence reference198 = ref span81[6]; + QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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; + 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; questRoot47.QuestSequence = list2; AddQuest(questId23, questRoot); QuestId questId24 = new QuestId(4873); questRoot = new QuestRoot(); QuestRoot questRoot48 = questRoot; num = 1; - List list208 = new List(num); - CollectionsMarshal.SetCount(list208, num); - Span span250 = CollectionsMarshal.AsSpan(list208); - index = 0; - span250[index] = "liza"; - questRoot48.Author = list208; + List list209 = new List(num); + CollectionsMarshal.SetCount(list209, num); + CollectionsMarshal.AsSpan(list209)[0] = "liza"; + questRoot48.Author = list209; QuestRoot questRoot49 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 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 + 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 + { + 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 { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 2; - 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) + 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) { AetherCurrentId = 2818404u }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; - 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); + 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); num3 = 1; List list214 = new List(num3); CollectionsMarshal.SetCount(list214, num3); - Span span257 = CollectionsMarshal.AsSpan(list214); - index3 = 0; - span257[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list214)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMA114_04873_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMA114_04873_A1_000_001") }; - 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; + 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; reference203 = questSequence; - num++; - ref QuestSequence reference205 = ref span251[num]; - QuestSequence obj156 = new QuestSequence + ref QuestSequence reference205 = ref span91[5]; + QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - 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; + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046994u, new Vector3(398.8861f, -116.81501f, -219.89783f), 1187); + obj154.Steps = list216; + reference205 = obj154; questRoot49.QuestSequence = list2; AddQuest(questId24, questRoot); QuestId questId25 = new QuestId(4874); @@ -408783,213 +336599,160 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span260 = CollectionsMarshal.AsSpan(list217); - index = 0; - span260[index] = "liza"; + CollectionsMarshal.AsSpan(list217)[0] = "liza"; questRoot50.Author = list217; QuestRoot questRoot51 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - 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); + ref QuestStep reference208 = ref CollectionsMarshal.AsSpan(list219)[0]; + QuestStep questStep25 = 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); - Span span264 = CollectionsMarshal.AsSpan(list220); - index3 = 0; - span264[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list220)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMA115_04874_Q10_000_000") }; - questStep27.DialogueChoices = list220; - reference208 = questStep27; - obj158.Steps = list219; - reference207 = obj158; - num++; - ref QuestSequence reference209 = ref span261[num]; - QuestSequence obj159 = new QuestSequence + questStep25.DialogueChoices = list220; + reference208 = questStep25; + obj156.Steps = list219; + reference207 = obj156; + ref QuestSequence reference209 = ref span93[2]; + QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence28 = questSequence; + QuestSequence questSequence31 = questSequence; num2 = 5; - 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); + 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); num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - 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); + 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); num3 = 6; List list225 = new List(num3); CollectionsMarshal.SetCount(list225, num3); - 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; + 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; reference210 = questSequence; - num++; - ref QuestSequence reference216 = ref span261[num]; + ref QuestSequence reference216 = ref span93[4]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818405u }; - num2++; - span272[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.73465f, -42.923626f, -484.1638f), 1187) + span100[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-432.73465f, -42.923626f, -484.1638f), 1187) { DisableNavmesh = true, Mount = true }; - num2++; - span272[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046585u, new Vector3(-420.95068f, -45.625298f, -461.50916f), 1187); - questSequence29.Steps = list227; + span100[2] = new QuestStep(EInteractionType.CompleteQuest, 1046585u, new Vector3(-420.95068f, -45.625298f, -461.50916f), 1187); + questSequence32.Steps = list227; reference216 = questSequence; questRoot51.QuestSequence = list2; AddQuest(questId25, questRoot); @@ -408999,314 +336762,241 @@ public static class AssemblyQuestLoader num = 1; List list228 = new List(num); CollectionsMarshal.SetCount(list228, num); - Span span273 = CollectionsMarshal.AsSpan(list228); - index = 0; - span273[index] = "liza"; + CollectionsMarshal.AsSpan(list228)[0] = "liza"; questRoot52.Author = list228; QuestRoot questRoot53 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span275 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047746u, new Vector3(-402.97552f, -46.22406f, -467.55176f), 1187) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047746u, new Vector3(-402.97552f, -46.22406f, -467.55176f), 1187) { StopDistance = 5f }; - obj160.Steps = list229; - reference217 = obj160; - num++; - ref QuestSequence reference218 = ref span274[num]; - QuestSequence obj161 = new QuestSequence + obj158.Steps = list229; + reference217 = obj158; + ref QuestSequence reference218 = ref span101[1]; + QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818408u }; - num2++; - span276[num2] = new QuestStep(EInteractionType.Interact, 1046591u, new Vector3(340.59656f, -160.10922f, -430.19763f), 1187) + span102[1] = new QuestStep(EInteractionType.Interact, 1046591u, new Vector3(340.59656f, -160.10922f, -430.19763f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj161.Steps = list230; - reference218 = obj161; - num++; - ref QuestSequence reference219 = ref span274[num]; + obj159.Steps = list230; + reference218 = obj159; + ref QuestSequence reference219 = ref span101[2]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence30 = questSequence; + QuestSequence questSequence33 = questSequence; num2 = 3; - 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); + 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); num3 = 6; List list231 = new List(num3); CollectionsMarshal.SetCount(list231, num3); - 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); + 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); num3 = 6; List list233 = new List(num3); CollectionsMarshal.SetCount(list233, num3); - 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; + 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; reference219 = questSequence; - num++; - ref QuestSequence reference223 = ref span274[num]; - QuestSequence obj162 = new QuestSequence + ref QuestSequence reference223 = ref span101[3]; + QuestSequence obj160 = new QuestSequence { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - 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 + 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 { Sequence = 5 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence31 = questSequence; + QuestSequence questSequence34 = questSequence; num2 = 3; - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = 17691u; + obj163.KillEnemyDataIds = list237; num3 = 6; List list238 = new List(num3); CollectionsMarshal.SetCount(list238, num3); - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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 = 1; + List list239 = new List(num3); + CollectionsMarshal.SetCount(list239, num3); + CollectionsMarshal.AsSpan(list239)[0] = 17691u; + obj164.KillEnemyDataIds = list239; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - 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) + 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) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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 = 1; + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + CollectionsMarshal.AsSpan(list241)[0] = 17691u; + obj165.KillEnemyDataIds = list241; num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - 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; + 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; reference226 = questSequence; - num++; - ref QuestSequence reference230 = ref span274[num]; - QuestSequence obj168 = new QuestSequence + ref QuestSequence reference230 = ref span101[7]; + QuestSequence obj166 = new QuestSequence { Sequence = 7 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 2; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span292 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span292[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013927u, new Vector3(414.7555f, -141.03918f, -681.0254f), 1187) + Span span111 = CollectionsMarshal.AsSpan(list244); + span111[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013927u, new Vector3(414.7555f, -141.03918f, -681.0254f), 1187) { AetherCurrentId = 2818409u }; - index2++; - span292[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046599u, new Vector3(342.09204f, -160.20251f, -449.2104f), 1187) + span111[1] = new QuestStep(EInteractionType.CompleteQuest, 1046599u, new Vector3(342.09204f, -160.20251f, -449.2104f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj169.Steps = list244; - reference231 = obj169; + obj167.Steps = list244; + reference231 = obj167; questRoot53.QuestSequence = list2; AddQuest(questId26, questRoot); QuestId questId27 = new QuestId(4876); @@ -409315,114 +337005,93 @@ public static class AssemblyQuestLoader num = 1; List list245 = new List(num); CollectionsMarshal.SetCount(list245, num); - Span span293 = CollectionsMarshal.AsSpan(list245); - index = 0; - span293[index] = "liza"; + CollectionsMarshal.AsSpan(list245)[0] = "liza"; questRoot54.Author = list245; QuestRoot questRoot55 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - 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 + 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 { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - 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]; + 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]; questSequence = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818410u }; - num2++; - span299[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.69964f, -140.34076f, -601.33215f), 1187) + span113[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-73.69964f, -140.34076f, -601.33215f), 1187) { DisableNavmesh = true, Mount = true }; - num2++; - span299[num2] = new QuestStep(EInteractionType.Emote, 1046802u, new Vector3(-27.847778f, -145.02602f, -648.73737f), 1187) + span113[2] = new QuestStep(EInteractionType.Emote, 1046802u, new Vector3(-27.847778f, -145.02602f, -648.73737f), 1187) { Emote = EEmote.Cheer }; - questSequence32.Steps = list250; + questSequence35.Steps = list250; reference236 = questSequence; - num++; - ref QuestSequence reference237 = ref span294[num]; - QuestSequence obj174 = new QuestSequence + ref QuestSequence reference237 = ref span112[5]; + QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - 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; + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046808u, new Vector3(-20.73706f, -145.3148f, -649.3782f), 1187); + obj172.Steps = list251; + reference237 = obj172; questRoot55.QuestSequence = list2; AddQuest(questId27, questRoot); QuestId questId28 = new QuestId(4877); @@ -409431,88 +337100,73 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - Span span301 = CollectionsMarshal.AsSpan(list252); - index = 0; - span301[index] = "liza"; + CollectionsMarshal.AsSpan(list252)[0] = "liza"; questRoot56.Author = list252; QuestRoot questRoot57 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span304 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.Interact, 1047502u, new Vector3(196.27673f, -169.29994f, -483.48212f), 1187) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1047502u, new Vector3(196.27673f, -169.29994f, -483.48212f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj176.Steps = list254; - reference239 = obj176; - num++; - ref QuestSequence reference240 = ref span302[num]; - QuestSequence obj177 = new QuestSequence + obj174.Steps = list254; + reference239 = obj174; + ref QuestSequence reference240 = ref span114[2]; + QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; - obj177.Steps = list255; - reference240 = obj177; - num++; - ref QuestSequence reference241 = ref span302[num]; + obj175.Steps = list255; + reference240 = obj175; + ref QuestSequence reference241 = ref span114[3]; questSequence = new QuestSequence { Sequence = byte.MaxValue }; - QuestSequence questSequence33 = questSequence; + QuestSequence questSequence36 = questSequence; num2 = 3; - 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) + 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) { Comment = "Traveler to the Rescue", PickUpQuestId = new QuestId(5039) }; - index2++; - span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + span115[1] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Comment = "Crisis of Corruption", PickUpQuestId = new QuestId(5051) }; - index2++; - span306[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) + span115[2] = new QuestStep(EInteractionType.CompleteQuest, 1046537u, new Vector3(-32.822205f, -10.00001f, 142.93127f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -409521,7 +337175,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - questSequence33.Steps = list8; + questSequence36.Steps = list3; reference241 = questSequence; questRoot57.QuestSequence = list2; AddQuest(questId28, questRoot); @@ -409531,75 +337185,61 @@ public static class AssemblyQuestLoader num = 1; List list256 = new List(num); CollectionsMarshal.SetCount(list256, num); - Span span307 = CollectionsMarshal.AsSpan(list256); - index = 0; - span307[index] = "liza"; + CollectionsMarshal.AsSpan(list256)[0] = "liza"; questRoot58.Author = list256; QuestRoot questRoot59 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - 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 + 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 { Sequence = 2 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence34 = questSequence; + QuestSequence questSequence37 = questSequence; num2 = 4; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span312 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span117 = CollectionsMarshal.AsSpan(list3); + span117[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1185) { AethernetShard = EAetheryteLocation.TuliyollalWachumeqimeqi }; - index2++; - span312[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-130.34163f, -14.999287f, 198.40685f), 1185) + span117[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-130.34163f, -14.999287f, 198.40685f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -409607,32 +337247,27 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - index2++; - span312[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.40268f, -19.754322f, 202.20439f), 1185) + span117[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.40268f, -19.754322f, 202.20439f), 1185) { DisableNavmesh = true }; - index2++; - span312[index2] = new QuestStep(EInteractionType.Interact, 1046763u, new Vector3(-114.64105f, -19.642736f, 201.12915f), 1185); - questSequence34.Steps = list8; + span117[3] = new QuestStep(EInteractionType.Interact, 1046763u, new Vector3(-114.64105f, -19.642736f, 201.12915f), 1185); + questSequence37.Steps = list3; reference245 = questSequence; - num++; - ref QuestSequence reference246 = ref span308[num]; - QuestSequence obj181 = new QuestSequence + ref QuestSequence reference246 = ref span116[4]; + QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; - obj181.Steps = list260; - reference246 = obj181; + obj179.Steps = list260; + reference246 = obj179; questRoot59.QuestSequence = list2; AddQuest(questId29, questRoot); QuestId questId30 = new QuestId(4879); @@ -409641,44 +337276,36 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - Span span314 = CollectionsMarshal.AsSpan(list261); - index = 0; - span314[index] = "liza"; + CollectionsMarshal.AsSpan(list261)[0] = "liza"; questRoot60.Author = list261; QuestRoot questRoot61 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span316 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046762u, new Vector3(-112.56586f, -19.725424f, 203.72314f), 1185) { StopDistance = 7f }; - obj182.Steps = list262; - reference247 = obj182; - num++; - ref QuestSequence reference248 = ref span315[num]; - QuestSequence obj183 = new QuestSequence + obj180.Steps = list262; + reference247 = obj180; + ref QuestSequence reference248 = ref span118[1]; + QuestSequence obj181 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -409686,34 +337313,28 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalWachumeqimeqi } }; - obj183.Steps = list263; - reference248 = obj183; - num++; - ref QuestSequence reference249 = ref span315[num]; - QuestSequence obj184 = new QuestSequence + obj181.Steps = list263; + reference248 = obj181; + ref QuestSequence reference249 = ref span118[2]; + QuestSequence obj182 = new QuestSequence { Sequence = 2 }; num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - 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 + 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 { Sequence = 3 }; - 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) + num2 = 1; + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.Duty, null, null, 1185) { DutyOptions = new DutyOptions { @@ -409721,61 +337342,51 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 826u } }; - obj185.Steps = list265; - reference250 = obj185; - num++; - span315[num] = new QuestSequence + obj183.Steps = list265; + reference250 = obj183; + span118[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference251 = ref span315[num]; - QuestSequence obj186 = new QuestSequence + ref QuestSequence reference251 = ref span118[5]; + QuestSequence obj184 = new QuestSequence { Sequence = 5 }; num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span320 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span320[index2] = new QuestStep(EInteractionType.Interact, 1046790u, new Vector3(748.71436f, 114.61811f, 565.3314f), 1188) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1046790u, new Vector3(748.71436f, 114.61811f, 565.3314f), 1188) { StopDistance = 5f }; - obj186.Steps = list266; - reference251 = obj186; - num++; - ref QuestSequence reference252 = ref span315[num]; - QuestSequence obj187 = new QuestSequence + obj184.Steps = list266; + reference251 = obj184; + ref QuestSequence reference252 = ref span118[6]; + QuestSequence obj185 = new QuestSequence { Sequence = 6 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span322 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046781u, new Vector3(579.9801f, 119.49004f, 148.76013f), 1188) + CollectionsMarshal.AsSpan(list268)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046781u, new Vector3(579.9801f, 119.49004f, 148.76013f), 1188) { StopDistance = 5f }; - obj188.Steps = list268; - reference253 = obj188; + obj186.Steps = list268; + reference253 = obj186; questRoot61.QuestSequence = list2; AddQuest(questId30, questRoot); QuestId questId31 = new QuestId(4880); @@ -409784,50 +337395,42 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - Span span323 = CollectionsMarshal.AsSpan(list269); - index = 0; - span323[index] = "liza"; + CollectionsMarshal.AsSpan(list269)[0] = "liza"; questRoot62.Author = list269; QuestRoot questRoot63 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj189.Steps = list270; - reference254 = obj189; - num++; - ref QuestSequence reference255 = ref span324[num]; + obj187.Steps = list270; + reference254 = obj187; + ref QuestSequence reference255 = ref span119[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence35 = questSequence; + QuestSequence questSequence38 = questSequence; num2 = 5; - list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); - Span span326 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); + Span span120 = CollectionsMarshal.AsSpan(list3); + span120[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaManyFires }; - index2++; - span326[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(533.37555f, 122.98077f, 790.01416f), 1188) + span120[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(533.37555f, 122.98077f, 790.01416f), 1188) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -409836,61 +337439,52 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalIhuykatumu } }; - index2++; - span326[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.3003f, 120.81023f, 803.62744f), 1188) + span120[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(522.3003f, 120.81023f, 803.62744f), 1188) { DisableNavmesh = true }; - index2++; - span326[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013943u, new Vector3(485.89294f, 121.3855f, 831.29626f), 1188) + span120[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013943u, new Vector3(485.89294f, 121.3855f, 831.29626f), 1188) { AetherCurrentId = 2818428u }; - index2++; - span326[index2] = new QuestStep(EInteractionType.Interact, 1046603u, new Vector3(127.15344f, 110.20095f, 259.66272f), 1188) + span120[4] = new QuestStep(EInteractionType.Interact, 1046603u, new Vector3(127.15344f, 110.20095f, 259.66272f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - questSequence35.Steps = list8; + questSequence38.Steps = list3; reference255 = questSequence; - num++; - ref QuestSequence reference256 = ref span324[num]; - QuestSequence obj190 = new QuestSequence + ref QuestSequence reference256 = ref span119[2]; + QuestSequence obj188 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetherCurrentId = 2818422u }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 2; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span328 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span328[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + Span span122 = CollectionsMarshal.AsSpan(list272); + span122[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Aetheryte = EAetheryteLocation.KozamaukaEarthenshire }; - index2++; - span328[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); - obj191.Steps = list272; - reference257 = obj191; + span122[1] = new QuestStep(EInteractionType.CompleteQuest, 1046613u, new Vector3(-471.5191f, 121.63345f, 344.89966f), 1188); + obj189.Steps = list272; + reference257 = obj189; questRoot63.QuestSequence = list2; AddQuest(questId31, questRoot); QuestId questId32 = new QuestId(4881); @@ -409899,127 +337493,104 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span329 = CollectionsMarshal.AsSpan(list273); - index = 0; - span329[index] = "liza"; + CollectionsMarshal.AsSpan(list273)[0] = "liza"; questRoot64.Author = list273; QuestRoot questRoot65 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span332 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.Snipe, 1046614u, new Vector3(-473.5943f, 121.63345f, 343.7704f), 1188) + CollectionsMarshal.AsSpan(list275)[0] = 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" }; - obj193.Steps = list275; - reference259 = obj193; - num++; - ref QuestSequence reference260 = ref span330[num]; - QuestSequence obj194 = new QuestSequence + obj191.Steps = list275; + reference259 = obj191; + ref QuestSequence reference260 = ref span123[2]; + QuestSequence obj192 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - 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 + 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 { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818421u }; - 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 + 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 { Sequence = 5 }; num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span336 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span336[index2] = new QuestStep(EInteractionType.Interact, 1046615u, new Vector3(-463.6759f, 121.632996f, 332.23462f), 1188) + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1046615u, new Vector3(-463.6759f, 121.632996f, 332.23462f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj197.Steps = list279; - reference263 = obj197; - num++; - ref QuestSequence reference264 = ref span330[num]; - QuestSequence obj198 = new QuestSequence + obj195.Steps = list279; + reference263 = obj195; + ref QuestSequence reference264 = ref span123[6]; + QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj198.Steps = list280; - reference264 = obj198; + obj196.Steps = list280; + reference264 = obj196; questRoot65.QuestSequence = list2; AddQuest(questId32, questRoot); QuestId questId33 = new QuestId(4882); @@ -410028,89 +337599,72 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - Span span338 = CollectionsMarshal.AsSpan(list281); - index = 0; - span338[index] = "liza"; + CollectionsMarshal.AsSpan(list281)[0] = "liza"; questRoot66.Author = list281; QuestRoot questRoot67 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span340 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046617u, new Vector3(-450.248f, 122.950645f, 345.6626f), 1188) + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046617u, new Vector3(-450.248f, 122.950645f, 345.6626f), 1188) { StopDistance = 5f }; - obj199.Steps = list282; - reference265 = obj199; - num++; - ref QuestSequence reference266 = ref span339[num]; - QuestSequence obj200 = new QuestSequence + obj197.Steps = list282; + reference265 = obj197; + ref QuestSequence reference266 = ref span125[1]; + QuestSequence obj198 = new QuestSequence { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span342 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.Interact, 1051018u, new Vector3(160.20447f, -17.964504f, 166.55212f), 1185) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1051018u, new Vector3(160.20447f, -17.964504f, 166.55212f), 1185) { StopDistance = 5f }; - obj201.Steps = list284; - reference267 = obj201; - num++; - ref QuestSequence reference268 = ref span339[num]; - QuestSequence obj202 = new QuestSequence + obj199.Steps = list284; + reference267 = obj199; + ref QuestSequence reference268 = ref span125[3]; + QuestSequence obj200 = new QuestSequence { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list286 = new List(num2); CollectionsMarshal.SetCount(list286, num2); - Span span344 = CollectionsMarshal.AsSpan(list286); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.Interact, 1046624u, new Vector3(-32.455933f, -17.972866f, 184.6189f), 1185) + CollectionsMarshal.AsSpan(list286)[0] = new QuestStep(EInteractionType.Interact, 1046624u, new Vector3(-32.455933f, -17.972866f, 184.6189f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -410118,20 +337672,17 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - obj203.Steps = list286; - reference269 = obj203; - num++; - ref QuestSequence reference270 = ref span339[num]; - QuestSequence obj204 = new QuestSequence + obj201.Steps = list286; + reference269 = obj201; + ref QuestSequence reference270 = ref span125[5]; + QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -410139,8 +337690,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalWachumeqimeqi } }; - obj204.Steps = list287; - reference270 = obj204; + obj202.Steps = list287; + reference270 = obj202; questRoot67.QuestSequence = list2; AddQuest(questId33, questRoot); QuestId questId34 = new QuestId(4883); @@ -410149,41 +337700,34 @@ public static class AssemblyQuestLoader num = 1; List list288 = new List(num); CollectionsMarshal.SetCount(list288, num); - Span span346 = CollectionsMarshal.AsSpan(list288); - index = 0; - span346[index] = "liza"; + CollectionsMarshal.AsSpan(list288)[0] = "liza"; questRoot68.Author = list288; QuestRoot questRoot69 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - 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 + 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 { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -410191,22 +337735,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - 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 + 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 { Sequence = 2 }; num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span350 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span350[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046681u, new Vector3(-194.78143f, 120.795235f, -359.24316f), 1185) + CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1046681u, new Vector3(-194.78143f, 120.795235f, -359.24316f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -410218,39 +337758,34 @@ public static class AssemblyQuestLoader Enabled = true } }; - obj207.Steps = list291; - reference273 = obj207; - num++; - ref QuestSequence reference274 = ref span347[num]; - QuestSequence obj208 = new QuestSequence + obj205.Steps = list291; + reference273 = obj205; + ref QuestSequence reference274 = ref span126[3]; + QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; - index3 = 1; - List list293 = new List(index3); - CollectionsMarshal.SetCount(list293, index3); - Span span352 = CollectionsMarshal.AsSpan(list293); - num3 = 0; - span352[num3] = new DialogueChoice + num3 = 1; + List list293 = new List(num3); + CollectionsMarshal.SetCount(list293, num3); + CollectionsMarshal.AsSpan(list293)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMB104_04883_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGMB104_04883_A1_000_001") }; - obj209.DialogueChoices = list293; - reference275 = obj209; - obj208.Steps = list292; - reference274 = obj208; + obj207.DialogueChoices = list293; + reference275 = obj207; + obj206.Steps = list292; + reference274 = obj206; questRoot69.QuestSequence = list2; AddQuest(questId34, questRoot); QuestId questId35 = new QuestId(4884); @@ -410259,46 +337794,38 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - Span span353 = CollectionsMarshal.AsSpan(list294); - index = 0; - span353[index] = "liza"; + CollectionsMarshal.AsSpan(list294)[0] = "liza"; questRoot70.Author = list294; QuestRoot questRoot71 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span355 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span355[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046628u, new Vector3(-173.75458f, 120.79523f, -326.37524f), 1185) { StopDistance = 7f }; - obj210.Steps = list295; - reference276 = obj210; - num++; - ref QuestSequence reference277 = ref span354[num]; + obj208.Steps = list295; + reference276 = obj208; + ref QuestSequence reference277 = ref span128[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -410310,132 +337837,110 @@ public static class AssemblyQuestLoader num3 = 1; List list297 = new List(num3); CollectionsMarshal.SetCount(list297, num3); - Span span357 = CollectionsMarshal.AsSpan(list297); - index3 = 0; - span357[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list297)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMB105_04884_Q1_000_000") }; - obj211.DialogueChoices = list297; - reference278 = obj211; - questSequence36.Steps = list296; + obj209.DialogueChoices = list297; + reference278 = obj209; + questSequence39.Steps = list296; reference277 = questSequence; - num++; - span354[num] = new QuestSequence + span128[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference279 = ref span354[num]; + ref QuestSequence reference279 = ref span128[3]; questSequence = new QuestSequence { Sequence = 3 }; - QuestSequence questSequence37 = questSequence; + QuestSequence questSequence40 = questSequence; num2 = 3; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span358 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span358[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) + Span span129 = CollectionsMarshal.AsSpan(list298); + span129[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) { PickUpQuestId = new QuestId(5085) }; - index2++; - span358[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) + span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) { PickUpQuestId = new QuestId(5074) }; - index2++; - span358[index2] = new QuestStep(EInteractionType.Interact, 1046876u, new Vector3(-505.66876f, 121.633156f, 327.62634f), 1188) + span129[2] = new QuestStep(EInteractionType.Interact, 1046876u, new Vector3(-505.66876f, 121.633156f, 327.62634f), 1188) { StopDistance = 5f }; - questSequence37.Steps = list298; + questSequence40.Steps = list298; reference279 = questSequence; - num++; - ref QuestSequence reference280 = ref span354[num]; - QuestSequence obj212 = new QuestSequence + ref QuestSequence reference280 = ref span128[4]; + QuestSequence obj210 = new QuestSequence { Sequence = 4 }; - 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 + 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 { Sequence = 5 }; num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span360 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span360[index2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj213.Steps = list300; - reference281 = obj213; - num++; - ref QuestSequence reference282 = ref span354[num]; - QuestSequence obj214 = new QuestSequence + obj211.Steps = list300; + reference281 = obj211; + ref QuestSequence reference282 = ref span128[6]; + QuestSequence obj212 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; - obj214.Steps = list301; - reference282 = obj214; - num++; - ref QuestSequence reference283 = ref span354[num]; - QuestSequence obj215 = new QuestSequence + obj212.Steps = list301; + reference282 = obj212; + ref QuestSequence reference283 = ref span128[7]; + QuestSequence obj213 = new QuestSequence { Sequence = 7 }; num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span362 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 2013606u, new Vector3(-791.7754f, 127.336426f, 468.0094f), 1188) { StopDistance = 5f }; - obj215.Steps = list302; - reference283 = obj215; - num++; - ref QuestSequence reference284 = ref span354[num]; - QuestSequence obj216 = new QuestSequence + obj213.Steps = list302; + reference283 = obj213; + ref QuestSequence reference284 = ref span128[8]; + QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj216.Steps = list303; - reference284 = obj216; + obj214.Steps = list303; + reference284 = obj214; questRoot71.QuestSequence = list2; AddQuest(questId35, questRoot); QuestId questId36 = new QuestId(4885); @@ -410444,219 +337949,182 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span364 = CollectionsMarshal.AsSpan(list304); - index = 0; - span364[index] = "liza"; + CollectionsMarshal.AsSpan(list304)[0] = "liza"; questRoot72.Author = list304; QuestRoot questRoot73 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span366 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span366[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046642u, new Vector3(-530.38837f, 122.122025f, 340.93237f), 1188) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046642u, new Vector3(-530.38837f, 122.122025f, 340.93237f), 1188) { StopDistance = 5f }; - obj217.Steps = list305; - reference285 = obj217; - num++; - ref QuestSequence reference286 = ref span365[num]; - QuestSequence obj218 = new QuestSequence + obj215.Steps = list305; + reference285 = obj215; + ref QuestSequence reference286 = ref span130[1]; + QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span368 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span368[index2] = new QuestStep(EInteractionType.Interact, 1046644u, new Vector3(569.0242f, 115.13427f, 236.25537f), 1188) + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.Interact, 1046644u, new Vector3(569.0242f, 115.13427f, 236.25537f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj219.Steps = list307; - reference287 = obj219; - num++; - ref QuestSequence reference288 = ref span365[num]; + obj217.Steps = list307; + reference287 = obj217; + ref QuestSequence reference288 = ref span130[3]; questSequence = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f }; - num2++; - span369[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(552.2429f, 115.77921f, 221.62932f), 1188) + span131[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(552.2429f, 115.77921f, 221.62932f), 1188) { NpcWaitDistance = 1f }; - num2++; - span369[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(562.5982f, 115.49999f, 191.69548f), 1188) + span131[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046646u, new Vector3(562.5982f, 115.49999f, 191.69548f), 1188) { NpcWaitDistance = 1f }; - num2++; - span369[num2] = new QuestStep(EInteractionType.WalkTo, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188) + span131[3] = new QuestStep(EInteractionType.WalkTo, 1046647u, new Vector3(585.44275f, 119.49004f, 189.44067f), 1188) { StopDistance = 1f }; - questSequence38.Steps = list8; + questSequence41.Steps = list3; reference288 = questSequence; - num++; - ref QuestSequence reference289 = ref span365[num]; - QuestSequence obj220 = new QuestSequence + ref QuestSequence reference289 = ref span130[4]; + QuestSequence obj218 = new QuestSequence { Sequence = 4 }; num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span370 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span370[index2] = new QuestStep(EInteractionType.Emote, 1046678u, new Vector3(605.61523f, 119.490036f, 185.04602f), 1188) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Emote, 1046678u, new Vector3(605.61523f, 119.490036f, 185.04602f), 1188) { Emote = EEmote.Happy }; - obj220.Steps = list308; - reference289 = obj220; - num++; - ref QuestSequence reference290 = ref span365[num]; + obj218.Steps = list308; + reference289 = obj218; + ref QuestSequence reference290 = ref span130[5]; questSequence = new QuestSequence { Sequence = 5 }; - 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) + 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) { NpcWaitDistance = 1f }; - num2++; - span371[num2] = new QuestStep(EInteractionType.WalkTo, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188) + span132[2] = new QuestStep(EInteractionType.WalkTo, 1046648u, new Vector3(575.9822f, 119.490036f, 156.90845f), 1188) { StopDistance = 1f }; - questSequence39.Steps = list309; + questSequence42.Steps = list309; reference290 = questSequence; - num++; - ref QuestSequence reference291 = ref span365[num]; - QuestSequence obj221 = new QuestSequence + ref QuestSequence reference291 = ref span130[6]; + QuestSequence obj219 = new QuestSequence { Sequence = 6 }; num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span372 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span372[index2] = new QuestStep(EInteractionType.Emote, 1046679u, new Vector3(590.41736f, 119.49004f, 144.09094f), 1188) + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Emote, 1046679u, new Vector3(590.41736f, 119.49004f, 144.09094f), 1188) { Emote = EEmote.Happy }; - obj221.Steps = list310; - reference291 = obj221; - num++; - ref QuestSequence reference292 = ref span365[num]; + obj219.Steps = list310; + reference291 = obj219; + ref QuestSequence reference292 = ref span130[7]; questSequence = new QuestSequence { Sequence = 7 }; - 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) + 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) { NpcWaitDistance = 3f }; - num2++; - span373[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(556.4156f, 115.49999f, 184.765f), 1188) + span133[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046648u, new Vector3(556.4156f, 115.49999f, 184.765f), 1188) { NpcWaitDistance = 1f }; - num2++; - span373[num2] = new QuestStep(EInteractionType.WalkTo, 1046649u, new Vector3(543.78577f, 115.55489f, 165.23987f), 1188) + span133[3] = new QuestStep(EInteractionType.WalkTo, 1046649u, new Vector3(543.78577f, 115.55489f, 165.23987f), 1188) { StopDistance = 1f }; - questSequence40.Steps = list8; + questSequence43.Steps = list3; reference292 = questSequence; - num++; - ref QuestSequence reference293 = ref span365[num]; - QuestSequence obj222 = new QuestSequence + ref QuestSequence reference293 = ref span130[8]; + QuestSequence obj220 = new QuestSequence { Sequence = 8 }; num2 = 1; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span374 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - span374[index2] = new QuestStep(EInteractionType.Emote, 1046680u, new Vector3(545.3727f, 116.722374f, 152.88f), 1188) + CollectionsMarshal.AsSpan(list311)[0] = new QuestStep(EInteractionType.Emote, 1046680u, new Vector3(545.3727f, 116.722374f, 152.88f), 1188) { Emote = EEmote.Happy }; - obj222.Steps = list311; - reference293 = obj222; - num++; - ref QuestSequence reference294 = ref span365[num]; - QuestSequence obj223 = new QuestSequence + obj220.Steps = list311; + reference293 = obj220; + ref QuestSequence reference294 = ref span130[9]; + QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj223.Steps = list312; - reference294 = obj223; + obj221.Steps = list312; + reference294 = obj221; questRoot73.QuestSequence = list2; AddQuest(questId36, questRoot); QuestId questId37 = new QuestId(4886); @@ -410665,312 +338133,258 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - Span span376 = CollectionsMarshal.AsSpan(list313); - index = 0; - span376[index] = "liza"; + CollectionsMarshal.AsSpan(list313)[0] = "liza"; questRoot74.Author = list313; QuestRoot questRoot75 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span378 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046878u, new Vector3(542.53455f, 116.722374f, 153.58203f), 1188) { StopDistance = 5f }; - obj224.Steps = list314; - reference295 = obj224; - num++; - ref QuestSequence reference296 = ref span377[num]; - QuestSequence obj225 = new QuestSequence + obj222.Steps = list314; + reference295 = obj222; + ref QuestSequence reference296 = ref span134[1]; + QuestSequence obj223 = new QuestSequence { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; - QuestSequence questSequence41 = questSequence; num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - 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) + ref QuestStep reference298 = ref CollectionsMarshal.AsSpan(list316)[0]; + QuestStep obj225 = new QuestStep(EInteractionType.Combat, null, new Vector3(169.65424f, 110.795235f, 256.5983f), 1188) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - 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]; + 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]; questSequence = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 50f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(373.7373f, 109.940544f, 292.05542f), 1188) + span137[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(373.7373f, 109.940544f, 292.05542f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(401.49612f, 110.34416f, 358.39096f), 1188) + span137[2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(401.49612f, 110.34416f, 358.39096f), 1188) { StopDistance = 50f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(405.0139f, 110.18579f, 363.32675f), 1188) + span137[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(405.0139f, 110.18579f, 363.32675f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(431.14557f, 110.30115f, 445.72592f), 1188) + span137[4] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(431.14557f, 110.30115f, 445.72592f), 1188) { StopDistance = 50f, NpcWaitDistance = 1f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(432.67133f, 111.30688f, 454.02933f), 1188) + span137[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(432.67133f, 111.30688f, 454.02933f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(414.60312f, 111.47869f, 583.3106f), 1188) + span137[6] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(414.60312f, 111.47869f, 583.3106f), 1188) { StopDistance = 50f }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(407.84457f, 111.124214f, 596.85754f), 1188) + span137[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(407.84457f, 111.124214f, 596.85754f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(337.6815f, 110.679726f, 659.7985f), 1188) + span137[8] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(337.6815f, 110.679726f, 659.7985f), 1188) { StopDistance = 50f, Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(329.07404f, 110.1352f, 664.1191f), 1188) + span137[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(329.07404f, 110.1352f, 664.1191f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(294.8306f, 110.1453f, 680.0281f), 1188) + span137[10] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(294.8306f, 110.1453f, 680.0281f), 1188) { Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.90924f, 111.677704f, 696.8132f), 1188) + span137[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(267.90924f, 111.677704f, 696.8132f), 1188) { Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(260.1857f, 113.90375f, 718.9069f), 1188) + span137[12] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(260.1857f, 113.90375f, 718.9069f), 1188) { StopDistance = 50f, Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(263.2977f, 115.22446f, 726.2601f), 1188) + span137[13] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(263.2977f, 115.22446f, 726.2601f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f, Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(302.6931f, 117.88865f, 758.6998f), 1188) + span137[14] = new QuestStep(EInteractionType.WalkTo, 1046654u, new Vector3(302.6931f, 117.88865f, 758.6998f), 1188) { StopDistance = 50f, Mount = false }; - num2++; - span384[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(309.86523f, 118.87516f, 761.77924f), 1188) + span137[15] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046654u, new Vector3(309.86523f, 118.87516f, 761.77924f), 1188) { StopDistance = 60f, NpcWaitDistance = 1f }; - 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; + 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; reference301 = questSequence; - num++; - ref QuestSequence reference302 = ref span377[num]; + ref QuestSequence reference302 = ref span134[6]; questSequence = new QuestSequence { Sequence = 6 }; - QuestSequence questSequence43 = questSequence; + QuestSequence questSequence45 = questSequence; num2 = 10; - 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) + 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) { StopDistance = 50f, Mount = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(413.78464f, 117.67805f, 753.82654f), 1188) + span138[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(413.78464f, 117.67805f, 753.82654f), 1188) { StopDistance = 30f, Mount = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(430.26556f, 117.201416f, 746.65106f), 1188) + span138[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(430.26556f, 117.201416f, 746.65106f), 1188) { StopDistance = 30f, DelaySecondsAtStart = 2f, Mount = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(454.3518f, 117.324524f, 740.7899f), 1188) + span138[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(454.3518f, 117.324524f, 740.7899f), 1188) { StopDistance = 30f, DelaySecondsAtStart = 2f, Mount = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.93594f, 119.74193f, 718.53876f), 1188) + span138[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(494.93594f, 119.74193f, 718.53876f), 1188) { Mount = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(528.67334f, 121.77753f, 734.24115f), 1188) + span138[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(528.67334f, 121.77753f, 734.24115f), 1188) { StopDistance = 100f, Mount = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(541.26227f, 122.58829f, 731.3827f), 1188) + span138[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046659u, new Vector3(541.26227f, 122.58829f, 731.3827f), 1188) { StopDistance = 100f, NpcWaitDistance = 1f, Mount = false, Sprint = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(639.90125f, 118.65023f, 708.77124f), 1188) + span138[7] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(639.90125f, 118.65023f, 708.77124f), 1188) { Mount = false, Sprint = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(671.42f, 118.15654f, 670.4708f), 1188) + span138[8] = new QuestStep(EInteractionType.WalkTo, 1046659u, new Vector3(671.42f, 118.15654f, 670.4708f), 1188) { Mount = false, Sprint = false }; - index2++; - span385[index2] = new QuestStep(EInteractionType.WalkTo, 2013617u, new Vector3(682.8259f, 116.96033f, 646.44836f), 1188) + span138[9] = new QuestStep(EInteractionType.WalkTo, 2013617u, new Vector3(682.8259f, 116.96033f, 646.44836f), 1188) { Mount = false, Sprint = false }; - questSequence43.Steps = list8; + questSequence45.Steps = list3; reference302 = questSequence; - num++; - ref QuestSequence reference303 = ref span377[num]; - QuestSequence obj229 = new QuestSequence + ref QuestSequence reference303 = ref span134[7]; + QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj229.Steps = list320; - reference303 = obj229; + obj228.Steps = list320; + reference303 = obj228; questRoot75.QuestSequence = list2; AddQuest(questId37, questRoot); QuestId questId38 = new QuestId(4887); @@ -410979,127 +338393,105 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span387 = CollectionsMarshal.AsSpan(list321); - index = 0; - span387[index] = "liza"; + CollectionsMarshal.AsSpan(list321)[0] = "liza"; questRoot76.Author = list321; QuestRoot questRoot77 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span389 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span389[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046661u, new Vector3(609.5215f, 119.490036f, 187.48755f), 1188) { StopDistance = 5f }; - obj230.Steps = list322; - reference304 = obj230; - num++; - ref QuestSequence reference305 = ref span388[num]; - QuestSequence obj231 = new QuestSequence + obj229.Steps = list322; + reference304 = obj229; + ref QuestSequence reference305 = ref span139[1]; + QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - QuestSequence questSequence44 = questSequence; + QuestSequence questSequence46 = questSequence; num2 = 4; - 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) + 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) { AetherCurrentId = 2818427u }; - index2++; - span391[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.692627f, 109.2f, 490.56314f), 1188) + span140[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(35.692627f, 109.2f, 490.56314f), 1188) { Mount = false }; - index2++; - span391[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.322823f, 109.2f, 475.24792f), 1188) + span140[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-46.322823f, 109.2f, 475.24792f), 1188) { Mount = true }; - index2++; - span391[index2] = new QuestStep(EInteractionType.UseItem, 2013619u, new Vector3(-96.33026f, 109.57495f, 488.30383f), 1188) + span140[3] = new QuestStep(EInteractionType.UseItem, 2013619u, new Vector3(-96.33026f, 109.57495f, 488.30383f), 1188) { ItemId = 2003484u }; - questSequence44.Steps = list8; + questSequence46.Steps = list3; reference306 = questSequence; - num++; - ref QuestSequence reference307 = ref span388[num]; - QuestSequence obj232 = new QuestSequence + ref QuestSequence reference307 = ref span139[3]; + QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - 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) + 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) { ItemId = 2003484u }; - obj232.Steps = list324; - reference307 = obj232; - num++; - ref QuestSequence reference308 = ref span388[num]; - QuestSequence obj233 = new QuestSequence + obj231.Steps = list324; + reference307 = obj231; + ref QuestSequence reference308 = ref span139[4]; + QuestSequence obj232 = new QuestSequence { Sequence = 4 }; num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj234.Steps = list326; - reference309 = obj234; + obj233.Steps = list326; + reference309 = obj233; questRoot77.QuestSequence = list2; AddQuest(questId38, questRoot); QuestId questId39 = new QuestId(4888); @@ -411108,46 +338500,38 @@ public static class AssemblyQuestLoader num = 1; List list327 = new List(num); CollectionsMarshal.SetCount(list327, num); - Span span395 = CollectionsMarshal.AsSpan(list327); - index = 0; - span395[index] = "liza"; + CollectionsMarshal.AsSpan(list327)[0] = "liza"; questRoot78.Author = list327; QuestRoot questRoot79 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj236.Steps = list329; - reference311 = obj236; + obj235.Steps = list329; + reference311 = obj235; questRoot79.QuestSequence = list2; AddQuest(questId39, questRoot); QuestId questId40 = new QuestId(4889); @@ -411156,120 +338540,100 @@ public static class AssemblyQuestLoader num = 1; List list330 = new List(num); CollectionsMarshal.SetCount(list330, num); - Span span399 = CollectionsMarshal.AsSpan(list330); - index = 0; - span399[index] = "liza"; + CollectionsMarshal.AsSpan(list330)[0] = "liza"; questRoot80.Author = list330; QuestRoot questRoot81 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span401 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span401[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) + CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046667u, new Vector3(608.6365f, 119.49004f, 190.72253f), 1188) { StopDistance = 5f }; - obj237.Steps = list331; - reference312 = obj237; - num++; - ref QuestSequence reference313 = ref span400[num]; - QuestSequence obj238 = new QuestSequence + obj236.Steps = list331; + reference312 = obj236; + ref QuestSequence reference313 = ref span142[1]; + QuestSequence obj237 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj238.Steps = list332; - reference313 = obj238; - num++; - ref QuestSequence reference314 = ref span400[num]; - QuestSequence obj239 = new QuestSequence + obj237.Steps = list332; + reference313 = obj237; + ref QuestSequence reference314 = ref span142[2]; + QuestSequence obj238 = new QuestSequence { Sequence = 2 }; num2 = 2; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span403 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span403[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-899.7249f, 143.00594f, 472.3082f), 1188) + Span span143 = CollectionsMarshal.AsSpan(list333); + span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-899.7249f, 143.00594f, 472.3082f), 1188) { TargetTerritoryId = (ushort)1187, Fly = true }; - 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 + 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 { Sequence = 3 }; - 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) + 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) { Aetheryte = EAetheryteLocation.UrqopachaWorlarsEcho }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; - obj242.Steps = list336; - reference317 = obj242; + obj241.Steps = list336; + reference317 = obj241; questRoot81.QuestSequence = list2; AddQuest(questId40, questRoot); QuestId questId41 = new QuestId(4890); @@ -411278,212 +338642,164 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - Span span407 = CollectionsMarshal.AsSpan(list337); - index = 0; - span407[index] = "liza"; + CollectionsMarshal.AsSpan(list337)[0] = "liza"; questRoot82.Author = list337; QuestRoot questRoot83 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span409 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span409[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047507u, new Vector3(367.51343f, 130.34726f, 608.05664f), 1187) + CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047507u, new Vector3(367.51343f, 130.34726f, 608.05664f), 1187) { StopDistance = 7f }; - obj243.Steps = list338; - reference318 = obj243; - num++; - ref QuestSequence reference319 = ref span408[num]; + obj242.Steps = list338; + reference318 = obj242; + ref QuestSequence reference319 = ref span145[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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); + 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); num3 = 6; List list339 = new List(num3); CollectionsMarshal.SetCount(list339, num3); - 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); + 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); num3 = 6; List list341 = new List(num3); CollectionsMarshal.SetCount(list341, num3); - 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; + 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; reference319 = questSequence; - num++; - ref QuestSequence reference323 = ref span408[num]; - QuestSequence obj244 = new QuestSequence + ref QuestSequence reference323 = ref span145[2]; + QuestSequence obj243 = new QuestSequence { Sequence = 2 }; num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - 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 + 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 { Sequence = 5 }; - 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 + 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 { Sequence = 6 }; num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span418 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - span418[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013929u, new Vector3(-198.47418f, 23.11737f, -56.565247f), 1187) + Span span150 = CollectionsMarshal.AsSpan(list346); + span150[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013929u, new Vector3(-198.47418f, 23.11737f, -56.565247f), 1187) { DisableNavmesh = true, AetherCurrentId = 2818406u }; - 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 + 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 { Sequence = 7 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - 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; + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046851u, new Vector3(-412.13092f, 113.87041f, 550.7439f), 1187); + obj249.Steps = list348; + reference329 = obj249; questRoot83.QuestSequence = list2; AddQuest(questId41, questRoot); QuestId questId42 = new QuestId(4891); @@ -411492,41 +338808,33 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - Span span421 = CollectionsMarshal.AsSpan(list349); - index = 0; - span421[index] = "liza"; + CollectionsMarshal.AsSpan(list349)[0] = "liza"; questRoot84.Author = list349; QuestRoot questRoot85 = questRoot; - 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 + 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 { Sequence = 0 }; - 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 + 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 { Sequence = 1 }; num2 = 1; List list351 = new List(num2); CollectionsMarshal.SetCount(list351, num2); - Span span424 = CollectionsMarshal.AsSpan(list351); - index2 = 0; - span424[index2] = new QuestStep(EInteractionType.Duty, null, null, 1187) + CollectionsMarshal.AsSpan(list351)[0] = new QuestStep(EInteractionType.Duty, null, null, 1187) { DutyOptions = new DutyOptions { @@ -411534,35 +338842,31 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 824u } }; - obj252.Steps = list351; - reference331 = obj252; - num++; - span422[num] = new QuestSequence + obj251.Steps = list351; + reference331 = obj251; + span151[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference332 = ref span422[num]; - QuestSequence obj253 = new QuestSequence + ref QuestSequence reference332 = ref span151[3]; + QuestSequence obj252 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818411u }; - num2++; - span425[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187) + span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1046864u, new Vector3(403.31128f, 122.535f, 614.8928f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj253.Steps = list352; - reference332 = obj253; + obj252.Steps = list352; + reference332 = obj252; questRoot85.QuestSequence = list2; AddQuest(questId42, questRoot); QuestId questId43 = new QuestId(4892); @@ -411571,185 +338875,141 @@ public static class AssemblyQuestLoader num = 1; List list353 = new List(num); CollectionsMarshal.SetCount(list353, num); - Span span426 = CollectionsMarshal.AsSpan(list353); - index = 0; - span426[index] = "liza"; + CollectionsMarshal.AsSpan(list353)[0] = "liza"; questRoot86.Author = list353; QuestRoot questRoot87 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - 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]; + 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]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; - 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; + 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); SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); num3 = 6; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list356; skipConditions3.StepIf = skipStepConditions; - 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) + 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) { StopDistance = 5f }; - 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) + 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) { StopDistance = 5f }; num3 = 6; List list358 = new List(num3); CollectionsMarshal.SetCount(list358, num3); - 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; + 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; reference334 = questSequence; - num++; - ref QuestSequence reference339 = ref span427[num]; - QuestSequence obj258 = new QuestSequence + ref QuestSequence reference339 = ref span153[2]; + QuestSequence obj257 = new QuestSequence { Sequence = 2 }; num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span436 = CollectionsMarshal.AsSpan(list361); - index2 = 0; - span436[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) + CollectionsMarshal.AsSpan(list361)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047504u, new Vector3(371.14514f, 130.34726f, 610.3456f), 1187) { StopDistance = 7f }; - obj260.Steps = list361; - reference341 = obj260; + obj259.Steps = list361; + reference341 = obj259; questRoot87.QuestSequence = list2; AddQuest(questId43, questRoot); QuestId questId44 = new QuestId(4893); @@ -411758,97 +339018,80 @@ public static class AssemblyQuestLoader num = 1; List list362 = new List(num); CollectionsMarshal.SetCount(list362, num); - Span span437 = CollectionsMarshal.AsSpan(list362); - index = 0; - span437[index] = "liza"; + CollectionsMarshal.AsSpan(list362)[0] = "liza"; questRoot88.Author = list362; QuestRoot questRoot89 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj261.Steps = list363; - reference342 = obj261; - num++; - ref QuestSequence reference343 = ref span438[num]; - QuestSequence obj262 = new QuestSequence + obj260.Steps = list363; + reference342 = obj260; + ref QuestSequence reference343 = ref span159[1]; + QuestSequence obj261 = new QuestSequence { Sequence = 1 }; num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - 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 + 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 { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMB114_04893_Q3_000_000") }; - questStep40.DialogueChoices = list365; - reference344 = questStep40; - obj262.Steps = list364; - reference343 = obj262; - num++; - ref QuestSequence reference345 = ref span438[num]; + questStep38.DialogueChoices = list365; + reference344 = questStep38; + obj261.Steps = list364; + reference343 = obj261; + ref QuestSequence reference345 = ref span159[2]; questSequence = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - 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) + 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) { StopDistance = 1f }; - questSequence47.Steps = list366; + questSequence49.Steps = list366; reference345 = questSequence; - num++; - ref QuestSequence reference346 = ref span438[num]; - QuestSequence obj263 = new QuestSequence + ref QuestSequence reference346 = ref span159[3]; + QuestSequence obj262 = new QuestSequence { Sequence = 3 }; num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - 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) + ref QuestStep reference347 = ref CollectionsMarshal.AsSpan(list367)[0]; + QuestStep obj263 = new QuestStep(EInteractionType.Combat, null, new Vector3(585.3602f, 98.73023f, 548.79535f), 1187) { StopDistance = 0.5f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -411856,132 +339099,109 @@ public static class AssemblyQuestLoader num3 = 1; List list368 = new List(num3); CollectionsMarshal.SetCount(list368, num3); - 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 + 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 { Sequence = 4 }; - 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]; + 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]; questSequence = new QuestSequence { Sequence = 5 }; - QuestSequence questSequence48 = questSequence; + QuestSequence questSequence50 = questSequence; num2 = 3; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span446 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - span446[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(559.54816f, 98.436874f, 539.67975f), 1187) + Span span161 = CollectionsMarshal.AsSpan(list370); + span161[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1046886u, new Vector3(559.54816f, 98.436874f, 539.67975f), 1187) { Mount = true }; - 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) + 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) { StopDistance = 1f }; - questSequence48.Steps = list370; + questSequence50.Steps = list370; reference349 = questSequence; - num++; - ref QuestSequence reference350 = ref span438[num]; - QuestSequence obj266 = new QuestSequence + ref QuestSequence reference350 = ref span159[6]; + QuestSequence obj265 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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 + 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 { Sequence = 7 }; num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - 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 + 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 { Sequence = 8 }; - 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) + 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) { Mount = true }; - num2++; - span450[num2] = new QuestStep(EInteractionType.WalkTo, 1046889u, new Vector3(570.6724f, 119.33488f, 359.8228f), 1187) + span162[1] = new QuestStep(EInteractionType.WalkTo, 1046889u, new Vector3(570.6724f, 119.33488f, 359.8228f), 1187) { StopDistance = 1f }; - obj269.Steps = list374; - reference353 = obj269; - num++; - ref QuestSequence reference354 = ref span438[num]; - QuestSequence obj270 = new QuestSequence + obj268.Steps = list374; + reference353 = obj268; + ref QuestSequence reference354 = ref span159[9]; + QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span451 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - span451[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) + CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046893u, new Vector3(572.0454f, 119.71409f, 357.7478f), 1187) { StopDistance = 5f }; - obj270.Steps = list375; - reference354 = obj270; + obj269.Steps = list375; + reference354 = obj269; questRoot89.QuestSequence = list2; AddQuest(questId44, questRoot); QuestId questId45 = new QuestId(4894); @@ -411990,147 +339210,120 @@ public static class AssemblyQuestLoader num = 1; List list376 = new List(num); CollectionsMarshal.SetCount(list376, num); - Span span452 = CollectionsMarshal.AsSpan(list376); - index = 0; - span452[index] = "liza"; + CollectionsMarshal.AsSpan(list376)[0] = "liza"; questRoot90.Author = list376; QuestRoot questRoot91 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj271.Steps = list377; - reference355 = obj271; - num++; - ref QuestSequence reference356 = ref span453[num]; + obj270.Steps = list377; + reference355 = obj270; + ref QuestSequence reference356 = ref span163[1]; questSequence = new QuestSequence { Sequence = 1 }; - QuestSequence questSequence49 = questSequence; + QuestSequence questSequence51 = questSequence; num2 = 8; - 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) + 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) { AetherCurrentId = 2818413u }; - index2++; - span455[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.70453f, 56.34349f, 226.48372f), 1187) + span164[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.70453f, 56.34349f, 226.48372f), 1187) { DisableNavmesh = true, Mount = true }; - 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) + 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) { DisableNavmesh = true, AetherCurrentId = 2818412u }; - 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) + 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) { DisableNavmesh = true }; - index2++; - span455[index2] = new QuestStep(EInteractionType.Interact, 1046894u, new Vector3(170.91626f, 19.997774f, 241.32141f), 1187); - questSequence49.Steps = list8; + span164[7] = new QuestStep(EInteractionType.Interact, 1046894u, new Vector3(170.91626f, 19.997774f, 241.32141f), 1187); + questSequence51.Steps = list3; reference356 = questSequence; - num++; - ref QuestSequence reference357 = ref span453[num]; - QuestSequence obj272 = new QuestSequence + ref QuestSequence reference357 = ref span163[2]; + QuestSequence obj271 = new QuestSequence { Sequence = 2 }; - 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 + 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 { Sequence = 3 }; num2 = 1; List list379 = new List(num2); CollectionsMarshal.SetCount(list379, num2); - 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 + 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 { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818407u }; - num2++; - span458[num2] = new QuestStep(EInteractionType.Duty, null, null, 1187) + span165[1] = new QuestStep(EInteractionType.Duty, null, null, 1187) { DutyOptions = new DutyOptions { ContentFinderConditionId = 832u } }; - obj274.Steps = list380; - reference359 = obj274; - num++; - span453[num] = new QuestSequence + obj273.Steps = list380; + reference359 = obj273; + span163[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference360 = ref span453[num]; - QuestSequence obj275 = new QuestSequence + ref QuestSequence reference360 = ref span163[6]; + QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; List list381 = new List(num2); CollectionsMarshal.SetCount(list381, num2); - 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; + CollectionsMarshal.AsSpan(list381)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046909u, new Vector3(-803.1586f, 56.144436f, 139.20801f), 1187); + obj274.Steps = list381; + reference360 = obj274; questRoot91.QuestSequence = list2; AddQuest(questId45, questRoot); QuestId questId46 = new QuestId(4895); @@ -412139,66 +339332,55 @@ public static class AssemblyQuestLoader num = 1; List list382 = new List(num); CollectionsMarshal.SetCount(list382, num); - Span span460 = CollectionsMarshal.AsSpan(list382); - index = 0; - span460[index] = "liza"; + CollectionsMarshal.AsSpan(list382)[0] = "liza"; questRoot92.Author = list382; QuestRoot questRoot93 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; - obj276.Steps = list383; - reference361 = obj276; - num++; - ref QuestSequence reference362 = ref span461[num]; - QuestSequence obj277 = new QuestSequence + obj275.Steps = list383; + reference361 = obj275; + ref QuestSequence reference362 = ref span166[1]; + QuestSequence obj276 = new QuestSequence { Sequence = 1 }; num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - Span span463 = CollectionsMarshal.AsSpan(list384); - index2 = 0; - span463[index2] = new QuestStep(EInteractionType.Interact, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) + CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 1046916u, new Vector3(366.01807f, 130.34726f, 599.23694f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj277.Steps = list384; - reference362 = obj277; - num++; - ref QuestSequence reference363 = ref span461[num]; - QuestSequence obj278 = new QuestSequence + obj276.Steps = list384; + reference362 = obj276; + ref QuestSequence reference363 = ref span166[2]; + QuestSequence obj277 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; - obj278.Steps = list385; - reference363 = obj278; + obj277.Steps = list385; + reference363 = obj277; questRoot93.QuestSequence = list2; AddQuest(questId46, questRoot); QuestId questId47 = new QuestId(4896); @@ -412207,57 +339389,48 @@ public static class AssemblyQuestLoader num = 1; List list386 = new List(num); CollectionsMarshal.SetCount(list386, num); - Span span465 = CollectionsMarshal.AsSpan(list386); - index = 0; - span465[index] = "liza"; + CollectionsMarshal.AsSpan(list386)[0] = "liza"; questRoot94.Author = list386; QuestRoot questRoot95 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - Span span467 = CollectionsMarshal.AsSpan(list387); - index2 = 0; - span467[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046918u, new Vector3(365.31616f, 130.34726f, 602.34985f), 1187) + CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046918u, new Vector3(365.31616f, 130.34726f, 602.34985f), 1187) { StopDistance = 7f }; - obj279.Steps = list387; - reference364 = obj279; - num++; - ref QuestSequence reference365 = ref span466[num]; + obj278.Steps = list387; + reference364 = obj278; + ref QuestSequence reference365 = ref span167[1]; questSequence = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f, PickUpQuestId = new QuestId(5055) }; - num2++; - span468[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + span168[1] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f, PickUpQuestId = new QuestId(5047) }; - num2++; - span468[num2] = new QuestStep(EInteractionType.Interact, 1046926u, new Vector3(-163.95825f, -14.999357f, 208.27039f), 1185) + span168[2] = new QuestStep(EInteractionType.Interact, 1046926u, new Vector3(-163.95825f, -14.999357f, 208.27039f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -412266,51 +339439,42 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheForardCabins } }; - questSequence50.Steps = list8; + questSequence52.Steps = list3; reference365 = questSequence; - num++; - ref QuestSequence reference366 = ref span466[num]; - QuestSequence obj280 = new QuestSequence + ref QuestSequence reference366 = ref span167[2]; + QuestSequence obj279 = new QuestSequence { Sequence = 2 }; num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - 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 + 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 { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; - obj281.Steps = list389; - reference367 = obj281; - num++; - ref QuestSequence reference368 = ref span466[num]; - QuestSequence obj282 = new QuestSequence + obj280.Steps = list389; + reference367 = obj280; + ref QuestSequence reference368 = ref span167[4]; + QuestSequence obj281 = new QuestSequence { Sequence = 4 }; num2 = 1; List list390 = new List(num2); CollectionsMarshal.SetCount(list390, num2); - Span span471 = CollectionsMarshal.AsSpan(list390); - index2 = 0; - span471[index2] = new QuestStep(EInteractionType.Interact, 1046930u, new Vector3(-141.31384f, 51.999996f, 7.94989f), 1185) + CollectionsMarshal.AsSpan(list390)[0] = new QuestStep(EInteractionType.Interact, 1046930u, new Vector3(-141.31384f, 51.999996f, 7.94989f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -412319,22 +339483,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - obj282.Steps = list390; - reference368 = obj282; - num++; - ref QuestSequence reference369 = ref span466[num]; - QuestSequence obj283 = new QuestSequence + obj281.Steps = list390; + reference368 = obj281; + ref QuestSequence reference369 = ref span167[5]; + QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue }; - 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; + 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; questRoot95.QuestSequence = list2; AddQuest(questId47, questRoot); QuestId questId48 = new QuestId(4897); @@ -412343,41 +339504,34 @@ public static class AssemblyQuestLoader num = 1; List list392 = new List(num); CollectionsMarshal.SetCount(list392, num); - Span span473 = CollectionsMarshal.AsSpan(list392); - index = 0; - span473[index] = "liza"; + CollectionsMarshal.AsSpan(list392)[0] = "liza"; questRoot96.Author = list392; QuestRoot questRoot97 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - 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 + 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 { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -412385,68 +339539,57 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalDirigibleLanding } }; - 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 + 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 { Sequence = 2 }; - num++; - ref QuestSequence reference372 = ref span474[num]; - QuestSequence obj286 = new QuestSequence + ref QuestSequence reference372 = ref span169[3]; + QuestSequence obj285 = new QuestSequence { Sequence = 3 }; num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - Span span477 = CollectionsMarshal.AsSpan(list395); - index2 = 0; - span477[index2] = new QuestStep(EInteractionType.Interact, 1047608u, new Vector3(15.152161f, 8.205901f, -655.848f), 1189) + CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 1047608u, new Vector3(15.152161f, 8.205901f, -655.848f), 1189) { StopDistance = 7f }; - obj286.Steps = list395; - reference372 = obj286; - num++; - ref QuestSequence reference373 = ref span474[num]; - QuestSequence obj287 = new QuestSequence + obj285.Steps = list395; + reference372 = obj285; + ref QuestSequence reference373 = ref span169[4]; + QuestSequence obj286 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818434u }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span479 = CollectionsMarshal.AsSpan(list397); - index2 = 0; - span479[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047520u, new Vector3(-350.72864f, 16.964071f, -428.4276f), 1189) + CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047520u, new Vector3(-350.72864f, 16.964071f, -428.4276f), 1189) { StopDistance = 1f }; - obj288.Steps = list397; - reference374 = obj288; + obj287.Steps = list397; + reference374 = obj287; questRoot97.QuestSequence = list2; AddQuest(questId48, questRoot); QuestId questId49 = new QuestId(4898); @@ -412455,176 +339598,132 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - Span span480 = CollectionsMarshal.AsSpan(list398); - index = 0; - span480[index] = "liza"; + CollectionsMarshal.AsSpan(list398)[0] = "liza"; questRoot98.Author = list398; QuestRoot questRoot99 = questRoot; - 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 + 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 { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; - obj289.Steps = list399; - reference375 = obj289; - num++; - ref QuestSequence reference376 = ref span481[num]; - QuestSequence obj290 = new QuestSequence + obj288.Steps = list399; + reference375 = obj288; + ref QuestSequence reference376 = ref span172[1]; + QuestSequence obj289 = new QuestSequence { Sequence = 1 }; num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - 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]; + 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]; questSequence = new QuestSequence { Sequence = 2 }; - 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); + 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); num3 = 6; List list401 = new List(num3); CollectionsMarshal.SetCount(list401, num3); - 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); + 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); num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - 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) + 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) { Aetheryte = EAetheryteLocation.YakTelIqBraax }; - 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; + 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; reference377 = questSequence; - num++; - ref QuestSequence reference382 = ref span481[num]; - QuestSequence obj291 = new QuestSequence + ref QuestSequence reference382 = ref span172[3]; + QuestSequence obj290 = new QuestSequence { Sequence = 3 }; num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot99.QuestSequence = list2; AddQuest(questId49, questRoot); QuestId questId50 = new QuestId(4899); @@ -412633,104 +339732,84 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - Span span491 = CollectionsMarshal.AsSpan(list407); - index = 0; - span491[index] = "liza"; + CollectionsMarshal.AsSpan(list407)[0] = "liza"; questRoot100.Author = list407; QuestRoot questRoot101 = questRoot; - 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 + 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 { Sequence = 0 }; num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 1; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - 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 + 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 { Sequence = 3 }; - 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 + 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 { Sequence = 4 }; num2 = 2; List list412 = new List(num2); CollectionsMarshal.SetCount(list412, num2); - Span span497 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span497[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013945u, new Vector3(416.06763f, 15.518433f, -545.0065f), 1189) + Span span179 = CollectionsMarshal.AsSpan(list412); + span179[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013945u, new Vector3(416.06763f, 15.518433f, -545.0065f), 1189) { AetherCurrentId = 2818435u }; - 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 + 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 { Sequence = byte.MaxValue }; - 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; + 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; questRoot101.QuestSequence = list2; AddQuest(questId50, questRoot); } @@ -412742,16 +339821,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -412759,30 +339835,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047764u, new Vector3(474.9065f, 19.501463f, -358.05298f), 1189) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047764u, new Vector3(474.9065f, 19.501463f, -358.05298f), 1189) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -412790,30 +339860,24 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1047555u, new Vector3(-524.58997f, 28.760696f, -424.2771f), 1189) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1047555u, new Vector3(-524.58997f, 28.760696f, -424.2771f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue @@ -412821,9 +339885,7 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047558u, new Vector3(-518.51685f, 28.775951f, -420.95068f), 1189) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047558u, new Vector3(-518.51685f, 28.775951f, -420.95068f), 1189) { StopDistance = 7f }; @@ -412836,33 +339898,27 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 5; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 5; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span2 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span2[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span2[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 @@ -412870,27 +339926,21 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.Interact, 1047563u, new Vector3(-433.06635f, 18.428335f, -392.32477f), 1189); + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.Interact, 1047563u, new Vector3(-433.06635f, 18.428335f, -392.32477f), 1189); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span2[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span9[num]; + ref QuestSequence reference9 = ref span2[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 @@ -412898,23 +339948,18 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.Interact, 1047566u, new Vector3(-531.9143f, 28.760696f, -428.54968f), 1189); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span2[4]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list9; @@ -412924,16 +339969,13 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot3.Author = list15; - index = 4; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span3 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span3[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -412941,28 +339983,23 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047569u, new Vector3(-589.56287f, 1.1820383f, -403.7995f), 1189); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span3[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818438u }; - num2++; - span18[num2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047570u, new Vector3(-526.9398f, 28.760693f, -425.98615f), 1189) + span4[1] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047570u, new Vector3(-526.9398f, 28.760693f, -425.98615f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SinglePlayerDutyOptions = new SinglePlayerDutyOptions @@ -412972,13 +340009,11 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - span16[num] = new QuestSequence + span3[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span3[3]; QuestSequence obj13 = new QuestSequence { Sequence = byte.MaxValue @@ -412986,9 +340021,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047572u, new Vector3(-529.74744f, 28.760696f, -426.50494f), 1189) { StopDistance = 7f }; @@ -413001,33 +340034,27 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot4.Author = list20; - index = 7; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference14 = ref span21[num]; + num = 7; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span5 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference14 = ref span5[0]; QuestSequence obj14 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span21[num]; + ref QuestSequence reference15 = ref span5[1]; QuestSequence obj15 = new QuestSequence { Sequence = 1 @@ -413035,16 +340062,13 @@ public static class AssemblyQuestLoader num2 = 3; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - ref QuestStep reference16 = ref span23[index2]; + Span span6 = CollectionsMarshal.AsSpan(list23); + ref QuestStep reference16 = ref span6[0]; 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); - Span span24 = CollectionsMarshal.AsSpan(list24); - int index3 = 0; - span24[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list24)[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "quest/051/KinGzd201_05110", @@ -413054,31 +340078,25 @@ public static class AssemblyQuestLoader questStep.DialogueChoices = list24; questStep.PickUpQuestId = new QuestId(5110); reference16 = questStep; - index2++; - span23[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) + span6[1] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { PickUpQuestId = new QuestId(5094) }; - index2++; - span23[index2] = new QuestStep(EInteractionType.Interact, 1047577u, new Vector3(600.76294f, 11.096121f, 23.788818f), 1189); + span6[2] = new QuestStep(EInteractionType.Interact, 1047577u, new Vector3(600.76294f, 11.096121f, 23.788818f), 1189); obj15.Steps = list23; reference15 = obj15; - num++; - ref QuestSequence reference17 = ref span21[num]; + ref QuestSequence reference17 = ref span5[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj16.Steps = list25; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span21[num]; + ref QuestSequence reference18 = ref span5[3]; QuestSequence obj17 = new QuestSequence { Sequence = 3 @@ -413086,30 +340104,24 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1048229u, new Vector3(622.2781f, -58.68765f, 176.83679f), 1189) + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1048229u, new Vector3(622.2781f, -58.68765f, 176.83679f), 1189) { Mount = true }; obj17.Steps = list26; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span21[num]; + ref QuestSequence reference19 = ref span5[4]; QuestSequence obj18 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj18.Steps = list27; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span21[num]; + ref QuestSequence reference20 = ref span5[5]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -413117,27 +340129,22 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.UseItem, 2013651u, new Vector3(718.59314f, -90.92853f, 335.8662f), 1189) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.UseItem, 2013651u, new Vector3(718.59314f, -90.92853f, 335.8662f), 1189) { StopDistance = 4f, ItemId = 2003487u }; obj19.Steps = list28; reference20 = obj19; - num++; - ref QuestSequence reference21 = ref span21[num]; + ref QuestSequence reference21 = ref span5[6]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj20.Steps = list29; reference21 = obj20; questRoot4.QuestSequence = list21; @@ -413147,16 +340154,13 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "liza"; + CollectionsMarshal.AsSpan(list30)[0] = "liza"; questRoot5.Author = list30; - index = 6; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference22 = ref span31[num]; + num = 6; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span7 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference22 = ref span7[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -413164,80 +340168,60 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047588u, new Vector3(738.85693f, -133.17517f, 514.9767f), 1189); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047588u, new Vector3(738.85693f, -133.17517f, 514.9767f), 1189); obj21.Steps = list32; reference22 = obj21; - num++; - ref QuestSequence reference23 = ref span31[num]; + ref QuestSequence reference23 = ref span7[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Aetheryte = EAetheryteLocation.YakTelMamook }; - num2++; - span33[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013953u, new Vector3(747.18835f, -176.4096f, 712.64197f), 1189) + span8[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013953u, new Vector3(747.18835f, -176.4096f, 712.64197f), 1189) { AetherCurrentId = 2818443u }; - num2++; - ref QuestStep reference24 = ref span33[num2]; + ref QuestStep reference24 = ref span8[2]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1047592u, new Vector3(561.4862f, -142.49185f, 502.46423f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - 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); + 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); obj23.CompletionQuestVariablesFlags = list34; reference24 = obj23; - num2++; - ref QuestStep reference25 = ref span33[num2]; + ref QuestStep reference25 = ref span8[3]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list35; reference25 = questStep2; obj22.Steps = list33; reference23 = obj22; - num++; - ref QuestSequence reference26 = ref span31[num]; + ref QuestSequence reference26 = ref span7[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 @@ -413245,27 +340229,21 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1047594u, new Vector3(601.9531f, -137.17401f, 489.79932f), 1189); + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1047594u, new Vector3(601.9531f, -137.17401f, 489.79932f), 1189); obj24.Steps = list36; reference26 = obj24; - num++; - ref QuestSequence reference27 = ref span31[num]; + ref QuestSequence reference27 = ref span7[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj25.Steps = list37; reference27 = obj25; - num++; - ref QuestSequence reference28 = ref span31[num]; + ref QuestSequence reference28 = ref span7[4]; QuestSequence obj26 = new QuestSequence { Sequence = 4 @@ -413273,26 +340251,21 @@ public static class AssemblyQuestLoader num2 = 1; List list38 = new List(num2); CollectionsMarshal.SetCount(list38, num2); - Span span38 = CollectionsMarshal.AsSpan(list38); - index2 = 0; - span38[index2] = new QuestStep(EInteractionType.Interact, 1047596u, new Vector3(360.06702f, -113.97448f, 595.0254f), 1189) + CollectionsMarshal.AsSpan(list38)[0] = new QuestStep(EInteractionType.Interact, 1047596u, new Vector3(360.06702f, -113.97448f, 595.0254f), 1189) { StopDistance = 5f }; obj26.Steps = list38; reference28 = obj26; - num++; - ref QuestSequence reference29 = ref span31[num]; + ref QuestSequence reference29 = ref span7[5]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj27.Steps = list39; reference29 = obj27; questRoot5.QuestSequence = list31; @@ -413302,16 +340275,13 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot6.Author = list40; - index = 6; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference30 = ref span41[num]; + num = 6; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span11 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference30 = ref span11[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 @@ -413319,27 +340289,21 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047607u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047607u, new Vector3(233.60034f, -158.66302f, 641.01624f), 1189); obj28.Steps = list42; reference30 = obj28; - num++; - ref QuestSequence reference31 = ref span41[num]; + ref QuestSequence reference31 = ref span11[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj29.Steps = list43; reference31 = obj29; - num++; - ref QuestSequence reference32 = ref span41[num]; + ref QuestSequence reference32 = ref span11[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 @@ -413347,40 +340311,33 @@ public static class AssemblyQuestLoader num2 = 3; List list44 = new List(num2); CollectionsMarshal.SetCount(list44, num2); - Span span44 = CollectionsMarshal.AsSpan(list44); - index2 = 0; - span44[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013949u, new Vector3(-114.33588f, -212.20728f, 623.77356f), 1189) + Span span12 = CollectionsMarshal.AsSpan(list44); + span12[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013949u, new Vector3(-114.33588f, -212.20728f, 623.77356f), 1189) { DisableNavmesh = true, Mount = true, AetherCurrentId = 2818436u }; - index2++; - span44[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.97611f, -197.49266f, 595.45026f), 1189) + span12[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-112.97611f, -197.49266f, 595.45026f), 1189) { DisableNavmesh = true, Mount = true }; - index2++; - span44[index2] = new QuestStep(EInteractionType.Interact, 1047620u, new Vector3(-365.22473f, -165.5307f, 517.66235f), 1189); + span12[2] = new QuestStep(EInteractionType.Interact, 1047620u, new Vector3(-365.22473f, -165.5307f, 517.66235f), 1189); obj30.Steps = list44; reference32 = obj30; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span11[3]; QuestSequence obj31 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj31.Steps = list45; reference33 = obj31; - num++; - ref QuestSequence reference34 = ref span41[num]; + ref QuestSequence reference34 = ref span11[4]; QuestSequence obj32 = new QuestSequence { Sequence = 4 @@ -413388,19 +340345,15 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - ref QuestStep reference35 = ref span46[index2]; + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list46)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 1047617u, new Vector3(-702.6017f, -199.5873f, 620.1113f), 1189) { StopDistance = 5f }; - index3 = 1; - List list47 = new List(index3); - CollectionsMarshal.SetCount(list47, index3); - Span span47 = CollectionsMarshal.AsSpan(list47); - num3 = 0; - span47[num3] = new DialogueChoice + num3 = 1; + List list47 = new List(num3); + CollectionsMarshal.SetCount(list47, num3); + CollectionsMarshal.AsSpan(list47)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMC109_04905_Q1_000_000"), @@ -413410,23 +340363,20 @@ public static class AssemblyQuestLoader reference35 = obj33; obj32.Steps = list46; reference34 = obj32; - num++; - ref QuestSequence reference36 = ref span41[num]; + ref QuestSequence reference36 = ref span11[5]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818441u }; - num2++; - span48[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047632u, new Vector3(723.537f, -133.17401f, 543.1144f), 1189) + span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1047632u, new Vector3(723.537f, -133.17401f, 543.1144f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; @@ -413439,16 +340389,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot7.Author = list49; - index = 6; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference37 = ref span50[num]; + num = 6; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span14 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference37 = ref span14[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -413456,70 +340403,52 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047636u, new Vector3(720.2715f, -133.174f, 545.00635f), 1189) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047636u, new Vector3(720.2715f, -133.174f, 545.00635f), 1189) { StopDistance = 6f }; obj35.Steps = list51; reference37 = obj35; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span14[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list52 = new List(index2); - CollectionsMarshal.SetCount(list52, index2); - Span span52 = CollectionsMarshal.AsSpan(list52); - num2 = 0; - ref QuestStep reference39 = ref span52[num2]; + num2 = 2; + List list52 = new List(num2); + CollectionsMarshal.SetCount(list52, num2); + Span span15 = CollectionsMarshal.AsSpan(list52); + ref QuestStep reference39 = ref span15[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list53; reference39 = questStep3; - num2++; - ref QuestStep reference40 = ref span52[num2]; + ref QuestStep reference40 = ref span15[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1047640u, new Vector3(561.8219f, -142.49185f, 502.7389f), 1189); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list54; reference40 = questStep4; obj36.Steps = list52; reference38 = obj36; - num++; - ref QuestSequence reference41 = ref span50[num]; + ref QuestSequence reference41 = ref span14[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -413527,27 +340456,21 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1047638u, new Vector3(604.8219f, -137.17403f, 488.27344f), 1189); + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1047638u, new Vector3(604.8219f, -137.17403f, 488.27344f), 1189); obj37.Steps = list55; reference41 = obj37; - num++; - ref QuestSequence reference42 = ref span50[num]; + ref QuestSequence reference42 = ref span14[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj38.Steps = list56; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span50[num]; + ref QuestSequence reference43 = ref span14[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -413555,33 +340478,27 @@ public static class AssemblyQuestLoader num2 = 3; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013952u, new Vector3(205.15747f, -193.59125f, 160.99792f), 1189) + Span span18 = CollectionsMarshal.AsSpan(list57); + span18[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013952u, new Vector3(205.15747f, -193.59125f, 160.99792f), 1189) { AetherCurrentId = 2818442u }; - index2++; - span57[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013950u, new Vector3(39.352905f, -158.61761f, -2.3347168f), 1189) + span18[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013950u, new Vector3(39.352905f, -158.61761f, -2.3347168f), 1189) { AetherCurrentId = 2818437u }; - index2++; - span57[index2] = new QuestStep(EInteractionType.Interact, 2013652u, new Vector3(-11.306946f, -166.15558f, 4.3792725f), 1189); + span18[2] = new QuestStep(EInteractionType.Interact, 2013652u, new Vector3(-11.306946f, -166.15558f, 4.3792725f), 1189); obj39.Steps = list57; reference43 = obj39; - num++; - ref QuestSequence reference44 = ref span50[num]; + ref QuestSequence reference44 = ref span14[5]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -413594,16 +340511,13 @@ public static class AssemblyQuestLoader num = 1; List list59 = new List(num); CollectionsMarshal.SetCount(list59, num); - Span span59 = CollectionsMarshal.AsSpan(list59); - index = 0; - span59[index] = "liza"; + CollectionsMarshal.AsSpan(list59)[0] = "liza"; questRoot8.Author = list59; - index = 7; - List list60 = new List(index); - CollectionsMarshal.SetCount(list60, index); - Span span60 = CollectionsMarshal.AsSpan(list60); - num = 0; - ref QuestSequence reference45 = ref span60[num]; + num = 7; + List list60 = new List(num); + CollectionsMarshal.SetCount(list60, num); + Span span19 = CollectionsMarshal.AsSpan(list60); + ref QuestSequence reference45 = ref span19[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -413611,26 +340525,22 @@ public static class AssemblyQuestLoader num2 = 1; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - span61[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + CollectionsMarshal.AsSpan(list61)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; obj41.Steps = list61; reference45 = obj41; - num++; - ref QuestSequence reference46 = ref span60[num]; + ref QuestSequence reference46 = ref span19[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list62 = new List(index2); - CollectionsMarshal.SetCount(list62, index2); - Span span62 = CollectionsMarshal.AsSpan(list62); - num2 = 0; - ref QuestStep reference47 = ref span62[num2]; + num2 = 4; + List list62 = new List(num2); + CollectionsMarshal.SetCount(list62, num2); + Span span20 = CollectionsMarshal.AsSpan(list62); + ref QuestStep reference47 = ref span20[0]; QuestStep obj43 = new QuestStep(EInteractionType.Interact, 1047659u, new Vector3(-8.133057f, -166.18016f, 2.1209717f), 1189) { StopDistance = 5f @@ -413638,44 +340548,30 @@ public static class AssemblyQuestLoader num3 = 6; List list63 = new List(num3); CollectionsMarshal.SetCount(list63, num3); - 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); + 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); obj43.CompletionQuestVariablesFlags = list63; reference47 = obj43; - num2++; - ref QuestStep reference48 = ref span62[num2]; + ref QuestStep reference48 = ref span20[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1047655u, new Vector3(-9.567444f, -166.3551f, -3.5858765f), 1189); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list64; reference48 = questStep5; - num2++; - ref QuestStep reference49 = ref span62[num2]; + ref QuestStep reference49 = ref span20[2]; QuestStep obj44 = new QuestStep(EInteractionType.Interact, 1047557u, new Vector3(-11.001831f, -166.37114f, -6.1799316f), 1189) { StopDistance = 7f @@ -413683,49 +340579,35 @@ public static class AssemblyQuestLoader num3 = 6; List list65 = new List(num3); CollectionsMarshal.SetCount(list65, num3); - 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); + 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); obj44.CompletionQuestVariablesFlags = list65; reference49 = obj44; - num2++; - ref QuestStep reference50 = ref span62[num2]; + ref QuestStep reference50 = ref span20[3]; QuestStep obj45 = new QuestStep(EInteractionType.Interact, 1047656u, new Vector3(-12.64978f, -166.20668f, -3.2807007f), 1189) { StopDistance = 7f }; - 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); + 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); obj45.CompletionQuestVariablesFlags = list66; reference50 = obj45; obj42.Steps = list62; reference46 = obj42; - num++; - ref QuestSequence reference51 = ref span60[num]; + ref QuestSequence reference51 = ref span19[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -413733,30 +340615,24 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1047649u, new Vector3(-13.382202f, -166.21887f, 2.1209717f), 1189) { StopDistance = 7f }; obj46.Steps = list67; reference51 = obj46; - num++; - ref QuestSequence reference52 = ref span60[num]; + ref QuestSequence reference52 = ref span19[3]; QuestSequence obj47 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj47.Steps = list68; reference52 = obj47; - num++; - ref QuestSequence reference53 = ref span60[num]; + ref QuestSequence reference53 = ref span19[4]; QuestSequence obj48 = new QuestSequence { Sequence = 4 @@ -413764,9 +340640,8 @@ public static class AssemblyQuestLoader num2 = 7; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - ref QuestStep reference54 = ref span69[index2]; + Span span25 = CollectionsMarshal.AsSpan(list69); + ref QuestStep reference54 = ref span25[0]; QuestStep obj49 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.721737f, -214.22571f, 435.2371f), 1189) { DisableNavmesh = true, @@ -413777,176 +340652,124 @@ public static class AssemblyQuestLoader num3 = 6; List list70 = new List(num3); CollectionsMarshal.SetCount(list70, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list70; skipConditions.StepIf = skipStepConditions; obj49.SkipConditions = skipConditions; reference54 = obj49; - index2++; - ref QuestStep reference55 = ref span69[index2]; + ref QuestStep reference55 = ref span25[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2013653u, new Vector3(-3.0060425f, -215.01495f, 475.9746f), 1189); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list71; reference55 = questStep6; - index2++; - ref QuestStep reference56 = ref span69[index2]; + ref QuestStep reference56 = ref span25[2]; 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 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list72; skipConditions2.StepIf = skipStepConditions2; questStep7.SkipConditions = skipConditions2; reference56 = questStep7; - index2++; - ref QuestStep reference57 = ref span69[index2]; + ref QuestStep reference57 = ref span25[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2013655u, new Vector3(-4.928711f, -213.2143f, 543.8773f), 1189); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list73; reference57 = questStep8; - index2++; - ref QuestStep reference58 = ref span69[index2]; + ref QuestStep reference58 = ref span25[4]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list74; reference58 = questStep9; - index2++; - ref QuestStep reference59 = ref span69[index2]; + ref QuestStep reference59 = ref span25[5]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2013672u, new Vector3(-147.84473f, -215.04541f, 356.0692f), 1189); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list75; reference59 = questStep10; - index2++; - ref QuestStep reference60 = ref span69[index2]; + ref QuestStep reference60 = ref span25[6]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list76; reference60 = questStep11; obj48.Steps = list69; reference53 = obj48; - num++; - ref QuestSequence reference61 = ref span60[num]; + ref QuestSequence reference61 = ref span19[5]; QuestSequence obj50 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Mount = true }; - num2++; - span77[num2] = new QuestStep(EInteractionType.Interact, 1047669u, new Vector3(-96.87958f, -214.29678f, 385.27502f), 1189); + span33[1] = new QuestStep(EInteractionType.Interact, 1047669u, new Vector3(-96.87958f, -214.29678f, 385.27502f), 1189); obj50.Steps = list77; reference61 = obj50; - num++; - ref QuestSequence reference62 = ref span60[num]; + ref QuestSequence reference62 = ref span19[6]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue @@ -413954,11 +340777,9 @@ public static class AssemblyQuestLoader num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - 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); + 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); obj51.Steps = list78; reference62 = obj51; questRoot8.QuestSequence = list60; @@ -413968,30 +340789,24 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot9.Author = list79; - index = 6; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference63 = ref span80[num]; + num = 6; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span35 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference63 = ref span35[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj52.Steps = list81; reference63 = obj52; - num++; - ref QuestSequence reference64 = ref span80[num]; + ref QuestSequence reference64 = ref span35[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 @@ -413999,33 +340814,27 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Interact, 2013656u, new Vector3(-12.3446045f, -166.24707f, 2.3651123f), 1189) + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.Interact, 2013656u, new Vector3(-12.3446045f, -166.24707f, 2.3651123f), 1189) { StopDistance = 4.5f }; obj53.Steps = list82; reference64 = obj53; - num++; - ref QuestSequence reference65 = ref span80[num]; + ref QuestSequence reference65 = ref span35[2]; QuestSequence obj54 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj54.Steps = list83; reference65 = obj54; - num++; - ref QuestSequence reference66 = ref span80[num]; + ref QuestSequence reference66 = ref span35[3]; QuestSequence obj55 = new QuestSequence { Sequence = 3 @@ -414033,9 +340842,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047682u, new Vector3(353.56665f, -113.97447f, 597.0397f), 1189) + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1047682u, new Vector3(353.56665f, -113.97447f, 597.0397f), 1189) { SinglePlayerDutyOptions = new SinglePlayerDutyOptions { @@ -414044,23 +340851,19 @@ public static class AssemblyQuestLoader }; obj55.Steps = list84; reference66 = obj55; - num++; - span80[num] = new QuestSequence + span35[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference67 = ref span80[num]; + ref QuestSequence reference67 = ref span35[5]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -414073,16 +340876,13 @@ public static class AssemblyQuestLoader num = 1; List list86 = new List(num); CollectionsMarshal.SetCount(list86, num); - Span span86 = CollectionsMarshal.AsSpan(list86); - index = 0; - span86[index] = "liza"; + CollectionsMarshal.AsSpan(list86)[0] = "liza"; questRoot10.Author = list86; - index = 8; - List list87 = new List(index); - CollectionsMarshal.SetCount(list87, index); - Span span87 = CollectionsMarshal.AsSpan(list87); - num = 0; - ref QuestSequence reference68 = ref span87[num]; + num = 8; + List list87 = new List(num); + CollectionsMarshal.SetCount(list87, num); + Span span36 = CollectionsMarshal.AsSpan(list87); + ref QuestSequence reference68 = ref span36[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -414090,40 +340890,33 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047695u, new Vector3(503.19666f, -137.174f, 559.47205f), 1189) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047695u, new Vector3(503.19666f, -137.174f, 559.47205f), 1189) { StopDistance = 7f }; obj57.Steps = list88; reference68 = obj57; - num++; - ref QuestSequence reference69 = ref span87[num]; + ref QuestSequence reference69 = ref span36[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(5103) }; - num2++; - span89[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) + span37[1] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) { PickUpQuestId = new QuestId(5114) }; - num2++; - span89[num2] = new QuestStep(EInteractionType.Interact, 1047701u, new Vector3(572.7473f, -117.35814f, 288.3192f), 1189); + span37[2] = new QuestStep(EInteractionType.Interact, 1047701u, new Vector3(572.7473f, -117.35814f, 288.3192f), 1189); obj58.Steps = list89; reference69 = obj58; - num++; - ref QuestSequence reference70 = ref span87[num]; + ref QuestSequence reference70 = ref span36[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 @@ -414131,30 +340924,24 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1047623u, new Vector3(531.18164f, -130.77031f, 307.45398f), 1189); + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1047623u, new Vector3(531.18164f, -130.77031f, 307.45398f), 1189); obj59.Steps = list90; reference70 = obj59; - num++; - ref QuestSequence reference71 = ref span87[num]; + ref QuestSequence reference71 = ref span36[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj60.Steps = list91; reference71 = obj60; - num++; - ref QuestSequence reference72 = ref span87[num]; + ref QuestSequence reference72 = ref span36[4]; QuestSequence obj61 = new QuestSequence { Sequence = 4 @@ -414162,19 +340949,15 @@ public static class AssemblyQuestLoader num2 = 1; List list92 = new List(num2); CollectionsMarshal.SetCount(list92, num2); - Span span92 = CollectionsMarshal.AsSpan(list92); - index2 = 0; - ref QuestStep reference73 = ref span92[index2]; + ref QuestStep reference73 = ref CollectionsMarshal.AsSpan(list92)[0]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1047707u, new Vector3(-711.1162f, -199.5873f, 624.1703f), 1189) { StopDistance = 5f }; - index3 = 1; - List list93 = new List(index3); - CollectionsMarshal.SetCount(list93, index3); - Span span93 = CollectionsMarshal.AsSpan(list93); - num3 = 0; - span93[num3] = new DialogueChoice + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMC113_04909_Q1_000_090") @@ -414183,18 +340966,15 @@ public static class AssemblyQuestLoader reference73 = obj62; obj61.Steps = list92; reference72 = obj61; - num++; - ref QuestSequence reference74 = ref span87[num]; + ref QuestSequence reference74 = ref span36[5]; QuestSequence obj63 = new QuestSequence { Sequence = 5 }; - 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) + num2 = 1; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.Duty, null, null, 1189) { DutyOptions = new DutyOptions { @@ -414204,13 +340984,11 @@ public static class AssemblyQuestLoader }; obj63.Steps = list94; reference74 = obj63; - num++; - span87[num] = new QuestSequence + span36[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference75 = ref span87[num]; + ref QuestSequence reference75 = ref span36[7]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -414218,9 +340996,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047718u, new Vector3(-156.4508f, -14.999485f, 210.40662f), 1185); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047718u, new Vector3(-156.4508f, -14.999485f, 210.40662f), 1185); obj64.Steps = list95; reference75 = obj64; questRoot10.QuestSequence = list87; @@ -414230,33 +341006,27 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot11.Author = list96; - index = 2; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference76 = ref span97[num]; + num = 2; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span38 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference76 = ref span38[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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) + 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) { DisableNavmesh = true }; obj65.Steps = list98; reference76 = obj65; - num++; - ref QuestSequence reference77 = ref span97[num]; + ref QuestSequence reference77 = ref span38[1]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -414264,9 +341034,7 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047726u, new Vector3(-86.778076f, 100f, -167.37628f), 1185) { StopDistance = 4f }; @@ -414279,33 +341047,27 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "liza"; + CollectionsMarshal.AsSpan(list100)[0] = "liza"; questRoot12.Author = list100; - index = 7; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference78 = ref span101[num]; + num = 7; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span39 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference78 = ref span39[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 4f }; obj67.Steps = list102; reference78 = obj67; - num++; - ref QuestSequence reference79 = ref span101[num]; + ref QuestSequence reference79 = ref span39[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -414313,23 +341075,18 @@ public static class AssemblyQuestLoader num2 = 1; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - span103[index2] = new QuestStep(EInteractionType.Interact, 1047730u, new Vector3(-32.089783f, 95.5f, -77.683716f), 1185); + CollectionsMarshal.AsSpan(list103)[0] = new QuestStep(EInteractionType.Interact, 1047730u, new Vector3(-32.089783f, 95.5f, -77.683716f), 1185); obj68.Steps = list103; reference79 = obj68; - num++; - ref QuestSequence reference80 = ref span101[num]; + ref QuestSequence reference80 = ref span39[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -414339,8 +341096,7 @@ public static class AssemblyQuestLoader }; obj69.Steps = list104; reference80 = obj69; - num++; - ref QuestSequence reference81 = ref span101[num]; + ref QuestSequence reference81 = ref span39[3]; QuestSequence obj70 = new QuestSequence { Sequence = 3 @@ -414348,27 +341104,21 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1047735u, new Vector3(-31.296265f, -10.00001f, 87.907104f), 1185); + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1047735u, new Vector3(-31.296265f, -10.00001f, 87.907104f), 1185); obj70.Steps = list105; reference81 = obj70; - num++; - ref QuestSequence reference82 = ref span101[num]; + ref QuestSequence reference82 = ref span39[4]; QuestSequence obj71 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj71.Steps = list106; reference82 = obj71; - num++; - ref QuestSequence reference83 = ref span101[num]; + ref QuestSequence reference83 = ref span39[5]; QuestSequence obj72 = new QuestSequence { Sequence = 5 @@ -414376,9 +341126,7 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1047812u, new Vector3(-85.06909f, 100.04267f, -169.8482f), 1185) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1047812u, new Vector3(-85.06909f, 100.04267f, -169.8482f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -414388,18 +341136,15 @@ public static class AssemblyQuestLoader }; obj72.Steps = list107; reference83 = obj72; - num++; - ref QuestSequence reference84 = ref span101[num]; + ref QuestSequence reference84 = ref span39[6]; QuestSequence obj73 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -414416,16 +341161,13 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot13.Author = list109; - index = 6; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference85 = ref span110[num]; + num = 6; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span40 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference85 = ref span40[0]; QuestSequence obj74 = new QuestSequence { Sequence = 0 @@ -414433,32 +341175,25 @@ public static class AssemblyQuestLoader num2 = 1; List list111 = new List(num2); CollectionsMarshal.SetCount(list111, num2); - Span span111 = CollectionsMarshal.AsSpan(list111); - index2 = 0; - span111[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185); + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047742u, new Vector3(47.043457f, 48f, -425.5589f), 1185); obj74.Steps = list111; reference85 = obj74; - num++; - ref QuestSequence reference86 = ref span110[num]; + ref QuestSequence reference86 = ref span40[1]; QuestSequence obj75 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj75.Steps = list112; reference86 = obj75; - num++; - span110[num] = new QuestSequence + span40[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference87 = ref span110[num]; + ref QuestSequence reference87 = ref span40[3]; QuestSequence obj76 = new QuestSequence { Sequence = 3 @@ -414466,32 +341201,26 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1046948u, new Vector3(276.2035f, 10.511233f, 663.447f), 1190); + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1046948u, new Vector3(276.2035f, 10.511233f, 663.447f), 1190); obj76.Steps = list113; reference87 = obj76; - num++; - ref QuestSequence reference88 = ref span110[num]; + ref QuestSequence reference88 = ref span40[4]; QuestSequence obj77 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818449u }; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 1046951u, new Vector3(259.266f, -6.482896f, 474.84546f), 1190); + span41[1] = new QuestStep(EInteractionType.Interact, 1046951u, new Vector3(259.266f, -6.482896f, 474.84546f), 1190); obj77.Steps = list114; reference88 = obj77; - num++; - ref QuestSequence reference89 = ref span110[num]; + ref QuestSequence reference89 = ref span40[5]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue @@ -414499,9 +341228,7 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046952u, new Vector3(344.59448f, -1.5287868f, 446.52466f), 1190) { StopDistance = 5f }; @@ -414514,33 +341241,27 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "liza"; + CollectionsMarshal.AsSpan(list116)[0] = "liza"; questRoot14.Author = list116; - index = 8; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference90 = ref span117[num]; + num = 8; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span42 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference90 = ref span42[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj79.Steps = list118; reference90 = obj79; - num++; - ref QuestSequence reference91 = ref span117[num]; + ref QuestSequence reference91 = ref span42[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 @@ -414548,36 +341269,29 @@ public static class AssemblyQuestLoader num2 = 2; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + Span span43 = CollectionsMarshal.AsSpan(list119); + span43[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniHhusatahwi }; - index2++; - span119[index2] = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); + span43[1] = new QuestStep(EInteractionType.Interact, 1046953u, new Vector3(263.7522f, -5.018697f, 496.14697f), 1190); obj80.Steps = list119; reference91 = obj80; - num++; - ref QuestSequence reference92 = ref span117[num]; + ref QuestSequence reference92 = ref span42[2]; QuestSequence obj81 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num2 = 0; - ref QuestStep reference93 = ref span120[num2]; + num2 = 1; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list120)[0]; 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); - Span span121 = CollectionsMarshal.AsSpan(list121); - index3 = 0; - span121[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD102_04913_SYSTEM_000_021") @@ -414586,8 +341300,7 @@ public static class AssemblyQuestLoader reference93 = questStep12; obj81.Steps = list120; reference92 = obj81; - num++; - ref QuestSequence reference94 = ref span117[num]; + ref QuestSequence reference94 = ref span42[3]; QuestSequence obj82 = new QuestSequence { Sequence = 3 @@ -414595,33 +341308,27 @@ public static class AssemblyQuestLoader num2 = 2; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + Span span44 = CollectionsMarshal.AsSpan(list122); + span44[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - index2++; - span122[index2] = new QuestStep(EInteractionType.Interact, 1046957u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); + span44[1] = new QuestStep(EInteractionType.Interact, 1046957u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); obj82.Steps = list122; reference94 = obj82; - num++; - ref QuestSequence reference95 = ref span117[num]; + ref QuestSequence reference95 = ref span42[4]; QuestSequence obj83 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj83.Steps = list123; reference95 = obj83; - num++; - ref QuestSequence reference96 = ref span117[num]; + ref QuestSequence reference96 = ref span42[5]; QuestSequence obj84 = new QuestSequence { Sequence = 5 @@ -414629,42 +341336,34 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - ref QuestStep reference97 = ref span124[index2]; + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list124)[0]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, null, new Vector3(-352.34854f, 18.081078f, -196.42653f), 1190) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - 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; + num3 = 2; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span45 = CollectionsMarshal.AsSpan(list125); + span45[0] = 17697u; + span45[1] = 17698u; obj85.KillEnemyDataIds = list125; reference97 = obj85; obj84.Steps = list124; reference96 = obj84; - num++; - ref QuestSequence reference98 = ref span117[num]; + ref QuestSequence reference98 = ref span42[6]; QuestSequence obj86 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj86.Steps = list126; reference98 = obj86; - num++; - ref QuestSequence reference99 = ref span117[num]; + ref QuestSequence reference99 = ref span42[7]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -414672,9 +341371,7 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -414687,30 +341384,24 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot15.Author = list128; - index = 8; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference100 = ref span129[num]; + num = 8; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span46 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference100 = ref span46[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj88.Steps = list130; reference100 = obj88; - num++; - ref QuestSequence reference101 = ref span129[num]; + ref QuestSequence reference101 = ref span46[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -414718,118 +341409,88 @@ public static class AssemblyQuestLoader num2 = 3; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013956u, new Vector3(-602.92975f, 37.735474f, -352.3766f), 1190) + Span span47 = CollectionsMarshal.AsSpan(list131); + span47[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013956u, new Vector3(-602.92975f, 37.735474f, -352.3766f), 1190) { AetherCurrentId = 2818453u }; - index2++; - span131[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-598.1151f, 30.742912f, -80.21621f), 1190) + span47[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-598.1151f, 30.742912f, -80.21621f), 1190) { Comment = "Avoids combat" }; - index2++; - span131[index2] = new QuestStep(EInteractionType.Interact, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + span47[2] = new QuestStep(EInteractionType.Interact, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj89.Steps = list131; reference101 = obj89; - num++; - ref QuestSequence reference102 = ref span129[num]; + ref QuestSequence reference102 = ref span46[2]; QuestSequence obj90 = new QuestSequence { Sequence = 2 }; - index2 = 7; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num2 = 0; - ref QuestStep reference103 = ref span132[num2]; + num2 = 7; + List list132 = new List(num2); + CollectionsMarshal.SetCount(list132, num2); + Span span48 = CollectionsMarshal.AsSpan(list132); + ref QuestStep reference103 = ref span48[0]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list133; reference103 = questStep13; - num2++; - span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-633.4026f, 27.22425f, -62.308163f), 1190) + span48[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-633.4026f, 27.22425f, -62.308163f), 1190) { Mount = true }; - 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) + 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) { AetherCurrentId = 2818450u }; - num2++; - ref QuestStep reference104 = ref span132[num2]; + ref QuestStep reference104 = ref span48[4]; QuestStep obj91 = new QuestStep(EInteractionType.Interact, 2013799u, new Vector3(-687.89197f, 27.115234f, -57.114563f), 1190) { DisableNavmesh = true }; - 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); + 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); obj91.CompletionQuestVariablesFlags = list134; reference104 = obj91; - num2++; - span132[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-725.3725f, 28.795446f, -39.464005f), 1190) + span48[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-725.3725f, 28.795446f, -39.464005f), 1190) { Mount = true }; - num2++; - ref QuestStep reference105 = ref span132[num2]; + ref QuestStep reference105 = ref span48[6]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list135; reference105 = questStep14; obj90.Steps = list132; reference102 = obj90; - num++; - ref QuestSequence reference106 = ref span129[num]; + ref QuestSequence reference106 = ref span46[3]; QuestSequence obj92 = new QuestSequence { Sequence = 3 @@ -414837,30 +341498,24 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 1046968u, new Vector3(-727.26025f, 29.026073f, -19.424805f), 1190) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 1046968u, new Vector3(-727.26025f, 29.026073f, -19.424805f), 1190) { StopDistance = 6f }; obj92.Steps = list136; reference106 = obj92; - num++; - ref QuestSequence reference107 = ref span129[num]; + ref QuestSequence reference107 = ref span46[4]; QuestSequence obj93 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj93.Steps = list137; reference107 = obj93; - num++; - ref QuestSequence reference108 = ref span129[num]; + ref QuestSequence reference108 = ref span46[5]; QuestSequence obj94 = new QuestSequence { Sequence = 5 @@ -414868,27 +341523,21 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 2013801u, new Vector3(-415.36584f, 17.654663f, 652.61304f), 1190); + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 2013801u, new Vector3(-415.36584f, 17.654663f, 652.61304f), 1190); obj94.Steps = list138; reference108 = obj94; - num++; - ref QuestSequence reference109 = ref span129[num]; + ref QuestSequence reference109 = ref span46[6]; QuestSequence obj95 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj95.Steps = list139; reference109 = obj95; - num++; - ref QuestSequence reference110 = ref span129[num]; + ref QuestSequence reference110 = ref span46[7]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -414896,9 +341545,7 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046967u, new Vector3(-585.47345f, 27.234344f, -59.18976f), 1190); obj96.Steps = list140; reference110 = obj96; questRoot15.QuestSequence = list129; @@ -414908,30 +341555,24 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot16.Author = list141; - index = 4; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference111 = ref span142[num]; + num = 4; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span52 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference111 = ref span52[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj97.Steps = list143; reference111 = obj97; - num++; - ref QuestSequence reference112 = ref span142[num]; + ref QuestSequence reference112 = ref span52[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -414939,18 +341580,14 @@ public static class AssemblyQuestLoader num2 = 4; 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(-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) + 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) { DisableNavmesh = true }; - index2++; - span144[index2] = new QuestStep(EInteractionType.UseItem, 2013804u, new Vector3(-690.69965f, 27.17627f, -26.230347f), 1190) + span53[3] = new QuestStep(EInteractionType.UseItem, 2013804u, new Vector3(-690.69965f, 27.17627f, -26.230347f), 1190) { StopDistance = 4.5f, ItemId = 2003507u, @@ -414958,25 +341595,21 @@ public static class AssemblyQuestLoader }; obj98.Steps = list144; reference112 = obj98; - num++; - ref QuestSequence reference113 = ref span142[num]; + ref QuestSequence reference113 = ref span52[2]; QuestSequence obj99 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 4f }; obj99.Steps = list145; reference113 = obj99; - num++; - ref QuestSequence reference114 = ref span142[num]; + ref QuestSequence reference114 = ref span52[3]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue @@ -414984,9 +341617,7 @@ public static class AssemblyQuestLoader num2 = 1; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - span146[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046972u, new Vector3(-441.70294f, 21.84097f, -117.81494f), 1190); + CollectionsMarshal.AsSpan(list146)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046972u, new Vector3(-441.70294f, 21.84097f, -117.81494f), 1190); obj100.Steps = list146; reference114 = obj100; questRoot16.QuestSequence = list142; @@ -414996,33 +341627,27 @@ public static class AssemblyQuestLoader num = 1; List list147 = new List(num); CollectionsMarshal.SetCount(list147, num); - Span span147 = CollectionsMarshal.AsSpan(list147); - index = 0; - span147[index] = "liza"; + CollectionsMarshal.AsSpan(list147)[0] = "liza"; questRoot17.Author = list147; - index = 8; - List list148 = new List(index); - CollectionsMarshal.SetCount(list148, index); - Span span148 = CollectionsMarshal.AsSpan(list148); - num = 0; - ref QuestSequence reference115 = ref span148[num]; + num = 8; + List list148 = new List(num); + CollectionsMarshal.SetCount(list148, num); + Span span54 = CollectionsMarshal.AsSpan(list148); + ref QuestSequence reference115 = ref span54[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj101.Steps = list149; reference115 = obj101; - num++; - ref QuestSequence reference116 = ref span148[num]; + ref QuestSequence reference116 = ref span54[1]; QuestSequence obj102 = new QuestSequence { Sequence = 1 @@ -415030,30 +341655,24 @@ public static class AssemblyQuestLoader num2 = 1; List list150 = new List(num2); CollectionsMarshal.SetCount(list150, num2); - Span span150 = CollectionsMarshal.AsSpan(list150); - index2 = 0; - span150[index2] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190); + CollectionsMarshal.AsSpan(list150)[0] = new QuestStep(EInteractionType.Interact, 1046974u, new Vector3(-386.83148f, 18.239126f, -136.73608f), 1190); obj102.Steps = list150; reference116 = obj102; - num++; - ref QuestSequence reference117 = ref span148[num]; + ref QuestSequence reference117 = ref span54[2]; QuestSequence obj103 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Emote = EEmote.Poke }; obj103.Steps = list151; reference117 = obj103; - num++; - ref QuestSequence reference118 = ref span148[num]; + ref QuestSequence reference118 = ref span54[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 @@ -415061,16 +341680,12 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - ref QuestStep reference119 = ref span152[index2]; + ref QuestStep reference119 = ref CollectionsMarshal.AsSpan(list152)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2013805u, new Vector3(-225.78778f, 1.0223389f, 71.7937f), 1190); - index3 = 1; - List list153 = new List(index3); - CollectionsMarshal.SetCount(list153, index3); - Span span153 = CollectionsMarshal.AsSpan(list153); - num3 = 0; - span153[num3] = new DialogueChoice + num3 = 1; + List list153 = new List(num3); + CollectionsMarshal.SetCount(list153, num3); + CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q3_000_000"), @@ -415080,27 +341695,22 @@ public static class AssemblyQuestLoader reference119 = questStep15; obj104.Steps = list152; reference118 = obj104; - num++; - ref QuestSequence reference120 = ref span148[num]; + ref QuestSequence reference120 = ref span54[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - 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]; + 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]; 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); - Span span155 = CollectionsMarshal.AsSpan(list155); - index3 = 0; - span155[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list155)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q4_000_000"), @@ -415110,8 +341720,7 @@ public static class AssemblyQuestLoader reference121 = questStep16; obj105.Steps = list154; reference120 = obj105; - num++; - ref QuestSequence reference122 = ref span148[num]; + ref QuestSequence reference122 = ref span54[5]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -415119,23 +341728,18 @@ public static class AssemblyQuestLoader num2 = 3; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - 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]; + 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]; QuestStep obj107 = new QuestStep(EInteractionType.Interact, 2013807u, new Vector3(37.15564f, 4.2266846f, 290.66907f), 1190) { StopDistance = 1f }; - index3 = 1; - List list157 = new List(index3); - CollectionsMarshal.SetCount(list157, index3); - Span span157 = CollectionsMarshal.AsSpan(list157); - num3 = 0; - span157[num3] = new DialogueChoice + num3 = 1; + List list157 = new List(num3); + CollectionsMarshal.SetCount(list157, num3); + CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMD105_04916_Q5_000_000"), @@ -415145,25 +341749,21 @@ public static class AssemblyQuestLoader reference123 = obj107; obj106.Steps = list156; reference122 = obj106; - num++; - ref QuestSequence reference124 = ref span148[num]; + ref QuestSequence reference124 = ref span54[6]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 0.25f }; obj108.Steps = list158; reference124 = obj108; - num++; - ref QuestSequence reference125 = ref span148[num]; + ref QuestSequence reference125 = ref span54[7]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue @@ -415171,9 +341771,7 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046975u, new Vector3(348.6228f, -1.601824f, 449.9121f), 1190); obj109.Steps = list159; reference125 = obj109; questRoot17.QuestSequence = list148; @@ -415183,30 +341781,24 @@ public static class AssemblyQuestLoader num = 1; List list160 = new List(num); CollectionsMarshal.SetCount(list160, num); - Span span160 = CollectionsMarshal.AsSpan(list160); - index = 0; - span160[index] = "liza"; + CollectionsMarshal.AsSpan(list160)[0] = "liza"; questRoot18.Author = list160; - index = 4; - List list161 = new List(index); - CollectionsMarshal.SetCount(list161, index); - Span span161 = CollectionsMarshal.AsSpan(list161); - num = 0; - ref QuestSequence reference126 = ref span161[num]; + num = 4; + List list161 = new List(num); + CollectionsMarshal.SetCount(list161, num); + Span span57 = CollectionsMarshal.AsSpan(list161); + ref QuestSequence reference126 = ref span57[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj110.Steps = list162; reference126 = obj110; - num++; - ref QuestSequence reference127 = ref span161[num]; + ref QuestSequence reference127 = ref span57[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 @@ -415214,30 +341806,24 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.Interact, 1048057u, new Vector3(-313.74078f, 18.853605f, -178.8205f), 1190) + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.Interact, 1048057u, new Vector3(-313.74078f, 18.853605f, -178.8205f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj111.Steps = list163; reference127 = obj111; - num++; - ref QuestSequence reference128 = ref span161[num]; + ref QuestSequence reference128 = ref span57[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj112.Steps = list164; reference128 = obj112; - num++; - ref QuestSequence reference129 = ref span161[num]; + ref QuestSequence reference129 = ref span57[3]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -415245,9 +341831,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1046982u, new Vector3(-349.53845f, 18.823906f, -106.401184f), 1190); obj113.Steps = list165; reference129 = obj113; questRoot18.QuestSequence = list161; @@ -415257,30 +341841,24 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "liza"; + CollectionsMarshal.AsSpan(list166)[0] = "liza"; questRoot19.Author = list166; - index = 5; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference130 = ref span167[num]; + num = 5; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span58 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference130 = ref span58[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list168; reference130 = obj114; - num++; - ref QuestSequence reference131 = ref span167[num]; + ref QuestSequence reference131 = ref span58[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -415288,27 +341866,21 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1051610u, new Vector3(-123.88806f, 16.006582f, -375.9671f), 1190); + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1051610u, new Vector3(-123.88806f, 16.006582f, -375.9671f), 1190); obj115.Steps = list169; reference131 = obj115; - num++; - ref QuestSequence reference132 = ref span167[num]; + ref QuestSequence reference132 = ref span58[2]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj116.Steps = list170; reference132 = obj116; - num++; - ref QuestSequence reference133 = ref span167[num]; + ref QuestSequence reference133 = ref span58[3]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -415316,34 +341888,29 @@ public static class AssemblyQuestLoader num2 = 2; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) + Span span59 = CollectionsMarshal.AsSpan(list171); + span59[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1190) { StopDistance = 8f, Aetheryte = EAetheryteLocation.ShaaloaniMehwahhetsoan }; - index2++; - span171[index2] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); + span59[1] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); obj117.Steps = list171; reference133 = obj117; - num++; - ref QuestSequence reference134 = ref span167[num]; + ref QuestSequence reference134 = ref span58[4]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; - num2++; - span172[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046996u, new Vector3(343.9231f, -16.501034f, -444.23596f), 1190); + span60[1] = new QuestStep(EInteractionType.CompleteQuest, 1046996u, new Vector3(343.9231f, -16.501034f, -444.23596f), 1190); obj118.Steps = list172; reference134 = obj118; questRoot19.QuestSequence = list167; @@ -415353,16 +341920,13 @@ public static class AssemblyQuestLoader num = 1; List list173 = new List(num); CollectionsMarshal.SetCount(list173, num); - Span span173 = CollectionsMarshal.AsSpan(list173); - index = 0; - span173[index] = "liza"; + CollectionsMarshal.AsSpan(list173)[0] = "liza"; questRoot20.Author = list173; - index = 5; - List list174 = new List(index); - CollectionsMarshal.SetCount(list174, index); - Span span174 = CollectionsMarshal.AsSpan(list174); - num = 0; - ref QuestSequence reference135 = ref span174[num]; + num = 5; + List list174 = new List(num); + CollectionsMarshal.SetCount(list174, num); + Span span61 = CollectionsMarshal.AsSpan(list174); + ref QuestSequence reference135 = ref span61[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 @@ -415370,33 +341934,27 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046995u, new Vector3(344.8081f, -16.536486f, -442.8626f), 1190) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046995u, new Vector3(344.8081f, -16.536486f, -442.8626f), 1190) { StopDistance = 6f }; obj119.Steps = list175; reference135 = obj119; - num++; - ref QuestSequence reference136 = ref span174[num]; + ref QuestSequence reference136 = ref span61[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4f }; obj120.Steps = list176; reference136 = obj120; - num++; - ref QuestSequence reference137 = ref span174[num]; + ref QuestSequence reference137 = ref span61[2]; QuestSequence obj121 = new QuestSequence { Sequence = 2 @@ -415404,28 +341962,23 @@ public static class AssemblyQuestLoader num2 = 1; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - span177[index2] = new QuestStep(EInteractionType.Interact, 2013852u, new Vector3(119.61548f, -14.694458f, -517.052f), 1190); + CollectionsMarshal.AsSpan(list177)[0] = new QuestStep(EInteractionType.Interact, 2013852u, new Vector3(119.61548f, -14.694458f, -517.052f), 1190); obj121.Steps = list177; reference137 = obj121; - num++; - ref QuestSequence reference138 = ref span174[num]; + ref QuestSequence reference138 = ref span61[3]; QuestSequence obj122 = new QuestSequence { Sequence = 3 }; - 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) + 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) { PickUpQuestId = new QuestId(5138) }; - num2++; - ref QuestStep reference139 = ref span178[num2]; + ref QuestStep reference139 = ref span62[1]; QuestStep obj123 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.84927f, -0.84392637f, 435.0579f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi @@ -415435,35 +341988,28 @@ public static class AssemblyQuestLoader num3 = 1; List list179 = new List(num3); CollectionsMarshal.SetCount(list179, num3); - Span span179 = CollectionsMarshal.AsSpan(list179); - index3 = 0; - span179[index3] = new QuestId(5140); + CollectionsMarshal.AsSpan(list179)[0] = new QuestId(5140); skipStepConditions3.QuestsCompleted = list179; skipConditions3.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list180 = new List(index3); - CollectionsMarshal.SetCount(list180, index3); - Span span180 = CollectionsMarshal.AsSpan(list180); - num3 = 0; - span180[num3] = new QuestId(5140); + num3 = 1; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + CollectionsMarshal.AsSpan(list180)[0] = new QuestId(5140); skipAetheryteCondition.QuestsCompleted = list180; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition; obj123.SkipConditions = skipConditions3; reference139 = obj123; - num2++; - span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) + span62[2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) { StopDistance = 6f, PickUpQuestId = new QuestId(5140) }; - num2++; - span178[num2] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190) + span62[3] = new QuestStep(EInteractionType.AcceptQuest, 1049324u, new Vector3(-108.659546f, 4.055336f, 319.5697f), 1190) { PickUpQuestId = new QuestId(5130) }; - num2++; - ref QuestStep reference140 = ref span178[num2]; + ref QuestStep reference140 = ref span62[4]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 1047001u, new Vector3(-194.5373f, 16.084282f, -382.9862f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings @@ -415471,9 +342017,7 @@ public static class AssemblyQuestLoader num3 = 1; List list181 = new List(num3); CollectionsMarshal.SetCount(list181, num3); - Span span181 = CollectionsMarshal.AsSpan(list181); - index3 = 0; - span181[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list181)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD108_04919_SYSTEM_000_043") @@ -415482,8 +342026,7 @@ public static class AssemblyQuestLoader reference140 = obj124; obj122.Steps = list178; reference138 = obj122; - num++; - ref QuestSequence reference141 = ref span174[num]; + ref QuestSequence reference141 = ref span61[4]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -415491,9 +342034,7 @@ public static class AssemblyQuestLoader num2 = 1; List list182 = new List(num2); CollectionsMarshal.SetCount(list182, num2); - Span span182 = CollectionsMarshal.AsSpan(list182); - index2 = 0; - span182[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) + CollectionsMarshal.AsSpan(list182)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047002u, new Vector3(-16.494995f, 3.0954878f, -49.851257f), 1170) { StopDistance = 5f }; @@ -415506,33 +342047,27 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot21.Author = list183; - index = 9; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference142 = ref span184[num]; + num = 9; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span63 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference142 = ref span63[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj126.Steps = list185; reference142 = obj126; - num++; - ref QuestSequence reference143 = ref span184[num]; + ref QuestSequence reference143 = ref span63[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -415540,26 +342075,22 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.Interact, 1047012u, new Vector3(-1.3580933f, 3.095488f, -48.630554f), 1170) + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.Interact, 1047012u, new Vector3(-1.3580933f, 3.095488f, -48.630554f), 1170) { StopDistance = 5f }; obj127.Steps = list186; reference143 = obj127; - num++; - ref QuestSequence reference144 = ref span184[num]; + ref QuestSequence reference144 = ref span63[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list187 = new List(index2); - CollectionsMarshal.SetCount(list187, index2); - Span span187 = CollectionsMarshal.AsSpan(list187); - num2 = 0; - ref QuestStep reference145 = ref span187[num2]; + num2 = 5; + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + Span span64 = CollectionsMarshal.AsSpan(list187); + ref QuestStep reference145 = ref span64[0]; QuestStep obj129 = new QuestStep(EInteractionType.Interact, 1047020u, new Vector3(-142.01575f, 44.999992f, 18.631226f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -415569,112 +342100,77 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - 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); + 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); obj129.CompletionQuestVariablesFlags = list188; reference145 = obj129; - num2++; - ref QuestStep reference146 = ref span187[num2]; + ref QuestStep reference146 = ref span64[1]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list189; reference146 = questStep17; - num2++; - ref QuestStep reference147 = ref span187[num2]; + ref QuestStep reference147 = ref span64[2]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1047022u, new Vector3(-96.48285f, 68.41271f, -34.53119f), 1185); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list190; reference147 = questStep18; - num2++; - ref QuestStep reference148 = ref span187[num2]; + ref QuestStep reference148 = ref span64[3]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list191; reference148 = questStep19; - num2++; - ref QuestStep reference149 = ref span187[num2]; + ref QuestStep reference149 = ref span64[4]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1047021u, new Vector3(-254.01697f, 40.075134f, -28.091919f), 1185); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list192; reference149 = questStep20; obj128.Steps = list187; reference144 = obj128; - num++; - ref QuestSequence reference150 = ref span184[num]; + ref QuestSequence reference150 = ref span63[3]; QuestSequence obj130 = new QuestSequence { Sequence = 3 @@ -415682,25 +342178,21 @@ public static class AssemblyQuestLoader num2 = 2; List list193 = new List(num2); CollectionsMarshal.SetCount(list193, num2); - 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); + 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); obj130.Steps = list193; reference150 = obj130; - num++; - ref QuestSequence reference151 = ref span184[num]; + ref QuestSequence reference151 = ref span63[4]; QuestSequence obj131 = new QuestSequence { Sequence = 4 }; - index2 = 4; - List list194 = new List(index2); - CollectionsMarshal.SetCount(list194, index2); - Span span194 = CollectionsMarshal.AsSpan(list194); - num2 = 0; - ref QuestStep reference152 = ref span194[num2]; + num2 = 4; + List list194 = new List(num2); + CollectionsMarshal.SetCount(list194, num2); + Span span71 = CollectionsMarshal.AsSpan(list194); + ref QuestStep reference152 = ref span71[0]; QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2013810u, new Vector3(-194.75098f, -4.928711f, 129.90002f), 1185) { AethernetShortcut = new AethernetShortcut @@ -415712,23 +342204,16 @@ public static class AssemblyQuestLoader num3 = 6; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - 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); + 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); obj132.CompletionQuestVariablesFlags = list195; reference152 = obj132; - num2++; - ref QuestStep reference153 = ref span194[num2]; + ref QuestStep reference153 = ref span71[1]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2013813u, new Vector3(-23.483704f, -10.025269f, 145.25061f), 1185) { AethernetShortcut = new AethernetShortcut @@ -415737,70 +342222,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBaysideBevyMarketplace } }; - 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); + 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); obj133.CompletionQuestVariablesFlags = list196; reference153 = obj133; - num2++; - ref QuestStep reference154 = ref span194[num2]; + ref QuestStep reference154 = ref span71[2]; 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 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); + 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); questStep21.CompletionQuestVariablesFlags = list197; reference154 = questStep21; - num2++; - ref QuestStep reference155 = ref span194[num2]; + ref QuestStep reference155 = ref span71[3]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 2013812u, new Vector3(84.611206f, -16.586609f, 117.02136f), 1185); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list198; reference155 = questStep22; obj131.Steps = list194; reference151 = obj131; - num++; - ref QuestSequence reference156 = ref span184[num]; + ref QuestSequence reference156 = ref span63[5]; QuestSequence obj134 = new QuestSequence { Sequence = 5 @@ -415808,27 +342272,21 @@ public static class AssemblyQuestLoader num2 = 1; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - span199[index2] = new QuestStep(EInteractionType.Interact, 1046843u, new Vector3(-18.783936f, -10.00001f, 95.109375f), 1185); + CollectionsMarshal.AsSpan(list199)[0] = new QuestStep(EInteractionType.Interact, 1046843u, new Vector3(-18.783936f, -10.00001f, 95.109375f), 1185); obj134.Steps = list199; reference156 = obj134; - num++; - ref QuestSequence reference157 = ref span184[num]; + ref QuestSequence reference157 = ref span63[6]; QuestSequence obj135 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj135.Steps = list200; reference157 = obj135; - num++; - ref QuestSequence reference158 = ref span184[num]; + ref QuestSequence reference158 = ref span63[7]; QuestSequence obj136 = new QuestSequence { Sequence = 7 @@ -415836,26 +342294,21 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1047033u, new Vector3(-152.51392f, -14.999287f, 270.64917f), 1185) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1047033u, new Vector3(-152.51392f, -14.999287f, 270.64917f), 1185) { StopDistance = 5f }; obj136.Steps = list201; reference158 = obj136; - num++; - ref QuestSequence reference159 = ref span184[num]; + ref QuestSequence reference159 = ref span63[8]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -415872,16 +342325,13 @@ public static class AssemblyQuestLoader num = 1; List list203 = new List(num); CollectionsMarshal.SetCount(list203, num); - Span span203 = CollectionsMarshal.AsSpan(list203); - index = 0; - span203[index] = "liza"; + CollectionsMarshal.AsSpan(list203)[0] = "liza"; questRoot22.Author = list203; - index = 4; - List list204 = new List(index); - CollectionsMarshal.SetCount(list204, index); - Span span204 = CollectionsMarshal.AsSpan(list204); - num = 0; - ref QuestSequence reference160 = ref span204[num]; + num = 4; + List list204 = new List(num); + CollectionsMarshal.SetCount(list204, num); + Span span76 = CollectionsMarshal.AsSpan(list204); + ref QuestSequence reference160 = ref span76[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -415889,30 +342339,24 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185); + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047034u, new Vector3(66.666626f, -14f, 26.504883f), 1185); obj138.Steps = list205; reference160 = obj138; - num++; - ref QuestSequence reference161 = ref span204[num]; + ref QuestSequence reference161 = ref span76[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Comment = "Inspect Helm, Corpse, Weapon" }; obj139.Steps = list206; reference161 = obj139; - num++; - ref QuestSequence reference162 = ref span204[num]; + ref QuestSequence reference162 = ref span76[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -415920,9 +342364,7 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 1047036u, new Vector3(-180.07172f, 120.795235f, -346.2425f), 1185) + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 1047036u, new Vector3(-180.07172f, 120.795235f, -346.2425f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -415932,18 +342374,15 @@ public static class AssemblyQuestLoader }; obj140.Steps = list207; reference162 = obj140; - num++; - ref QuestSequence reference163 = ref span204[num]; + ref QuestSequence reference163 = ref span76[3]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -415956,16 +342395,13 @@ public static class AssemblyQuestLoader num = 1; List list209 = new List(num); CollectionsMarshal.SetCount(list209, num); - Span span209 = CollectionsMarshal.AsSpan(list209); - index = 0; - span209[index] = "liza"; + CollectionsMarshal.AsSpan(list209)[0] = "liza"; questRoot23.Author = list209; - index = 5; - List list210 = new List(index); - CollectionsMarshal.SetCount(list210, index); - Span span210 = CollectionsMarshal.AsSpan(list210); - num = 0; - ref QuestSequence reference164 = ref span210[num]; + num = 5; + List list210 = new List(num); + CollectionsMarshal.SetCount(list210, num); + Span span77 = CollectionsMarshal.AsSpan(list210); + ref QuestSequence reference164 = ref span77[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -415973,26 +342409,22 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047037u, new Vector3(1.296936f, 3.095488f, -64.9577f), 1170) { StopDistance = 5f }; obj142.Steps = list211; reference164 = obj142; - num++; - ref QuestSequence reference165 = ref span210[num]; + ref QuestSequence reference165 = ref span77[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list212 = new List(index2); - CollectionsMarshal.SetCount(list212, index2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - ref QuestStep reference166 = ref span212[num2]; + num2 = 3; + List list212 = new List(num2); + CollectionsMarshal.SetCount(list212, num2); + Span span78 = CollectionsMarshal.AsSpan(list212); + ref QuestStep reference166 = ref span78[0]; QuestStep obj144 = new QuestStep(EInteractionType.Interact, 1047050u, new Vector3(-218.9823f, 39.999985f, 9.414734f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -416005,67 +342437,46 @@ public static class AssemblyQuestLoader num3 = 6; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - 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); + 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); obj144.CompletionQuestVariablesFlags = list213; reference166 = obj144; - num2++; - ref QuestStep reference167 = ref span212[num2]; + ref QuestStep reference167 = ref span78[1]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1047048u, new Vector3(-244.77002f, 14.99999f, 75.12012f), 1185); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list214; reference167 = questStep23; - num2++; - ref QuestStep reference168 = ref span212[num2]; + ref QuestStep reference168 = ref span78[2]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list215; reference168 = questStep24; obj143.Steps = list212; reference165 = obj143; - num++; - ref QuestSequence reference169 = ref span210[num]; + ref QuestSequence reference169 = ref span77[2]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -416073,84 +342484,60 @@ public static class AssemblyQuestLoader num2 = 3; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference170 = ref span216[index2]; + Span span82 = CollectionsMarshal.AsSpan(list216); + ref QuestStep reference170 = ref span82[0]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1047047u, new Vector3(-62.424683f, -10.00001f, 105.97388f), 1185); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list217; reference170 = questStep25; - index2++; - ref QuestStep reference171 = ref span216[index2]; + ref QuestStep reference171 = ref span82[1]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list218; reference171 = questStep26; - index2++; - ref QuestStep reference172 = ref span216[index2]; + ref QuestStep reference172 = ref span82[2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1047051u, new Vector3(53.45227f, -14f, 90.562256f), 1185); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list219; reference172 = questStep27; obj145.Steps = list216; reference169 = obj145; - num++; - ref QuestSequence reference173 = ref span210[num]; + ref QuestSequence reference173 = ref span77[3]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -416160,8 +342547,7 @@ public static class AssemblyQuestLoader }; obj146.Steps = list220; reference173 = obj146; - num++; - ref QuestSequence reference174 = ref span210[num]; + ref QuestSequence reference174 = ref span77[4]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -416169,9 +342555,7 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047062u, new Vector3(-65.84277f, 100f, -158.98376f), 1185); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047062u, new Vector3(-65.84277f, 100f, -158.98376f), 1185); obj147.Steps = list221; reference174 = obj147; questRoot23.QuestSequence = list210; @@ -416181,33 +342565,27 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot24.Author = list222; - index = 9; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference175 = ref span223[num]; + num = 9; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span86 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference175 = ref span86[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj148.Steps = list224; reference175 = obj148; - num++; - ref QuestSequence reference176 = ref span223[num]; + ref QuestSequence reference176 = ref span86[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -416215,9 +342593,7 @@ public static class AssemblyQuestLoader num2 = 1; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - span225[index2] = new QuestStep(EInteractionType.Interact, 1047068u, new Vector3(41.85547f, 47.072277f, -409.01813f), 1185) + CollectionsMarshal.AsSpan(list225)[0] = new QuestStep(EInteractionType.Interact, 1047068u, new Vector3(41.85547f, 47.072277f, -409.01813f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -416227,30 +342603,25 @@ public static class AssemblyQuestLoader }; obj149.Steps = list225; reference176 = obj149; - num++; - span223[num] = new QuestSequence + span86[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference177 = ref span223[num]; + ref QuestSequence reference177 = ref span86[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj150.Steps = list226; reference177 = obj150; - num++; - ref QuestSequence reference178 = ref span223[num]; + ref QuestSequence reference178 = ref span86[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -416258,93 +342629,67 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.Interact, 1047079u, new Vector3(-284.38245f, 16.00464f, -61.661743f), 1190) + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.Interact, 1047079u, new Vector3(-284.38245f, 16.00464f, -61.661743f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj151.Steps = list227; reference178 = obj151; - num++; - ref QuestSequence reference179 = ref span223[num]; + ref QuestSequence reference179 = ref span86[5]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - index2 = 4; - List list228 = new List(index2); - CollectionsMarshal.SetCount(list228, index2); - Span span228 = CollectionsMarshal.AsSpan(list228); - num2 = 0; - ref QuestStep reference180 = ref span228[num2]; + num2 = 4; + List list228 = new List(num2); + CollectionsMarshal.SetCount(list228, num2); + Span span87 = CollectionsMarshal.AsSpan(list228); + ref QuestStep reference180 = ref span87[0]; 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 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); + 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); questStep28.CompletionQuestVariablesFlags = list229; reference180 = questStep28; - num2++; - span228[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.66742f, 18.137554f, -137.36826f), 1190); - num2++; - ref QuestStep reference181 = ref span228[num2]; + span87[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-359.66742f, 18.137554f, -137.36826f), 1190); + ref QuestStep reference181 = ref span87[2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 1047080u, new Vector3(-364.70593f, 18.08191f, -139.45221f), 1190); - 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); + 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); questStep29.CompletionQuestVariablesFlags = list230; reference181 = questStep29; - num2++; - ref QuestStep reference182 = ref span228[num2]; + ref QuestStep reference182 = ref span87[3]; 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 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); + 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); questStep30.CompletionQuestVariablesFlags = list231; reference182 = questStep30; obj152.Steps = list228; reference179 = obj152; - num++; - ref QuestSequence reference183 = ref span223[num]; + ref QuestSequence reference183 = ref span86[6]; QuestSequence obj153 = new QuestSequence { Sequence = 6 @@ -416352,32 +342697,26 @@ public static class AssemblyQuestLoader num2 = 1; List list232 = new List(num2); CollectionsMarshal.SetCount(list232, num2); - Span span232 = CollectionsMarshal.AsSpan(list232); - index2 = 0; - span232[index2] = new QuestStep(EInteractionType.Interact, 1047081u, new Vector3(-327.90118f, 18.106325f, -146.74603f), 1190); + CollectionsMarshal.AsSpan(list232)[0] = new QuestStep(EInteractionType.Interact, 1047081u, new Vector3(-327.90118f, 18.106325f, -146.74603f), 1190); obj153.Steps = list232; reference183 = obj153; - num++; - ref QuestSequence reference184 = ref span223[num]; + ref QuestSequence reference184 = ref span86[7]; QuestSequence obj154 = new QuestSequence { Sequence = 7 }; - 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) + 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) { PickUpQuestId = new QuestId(5144) }; - num2++; - span233[num2] = new QuestStep(EInteractionType.Interact, 1047082u, new Vector3(-171.37408f, 15.684817f, -358.9685f), 1190); + span91[1] = new QuestStep(EInteractionType.Interact, 1047082u, new Vector3(-171.37408f, 15.684817f, -358.9685f), 1190); obj154.Steps = list233; reference184 = obj154; - num++; - ref QuestSequence reference185 = ref span223[num]; + ref QuestSequence reference185 = ref span86[8]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -416385,9 +342724,7 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047083u, new Vector3(-168.41382f, 15.771556f, -355.64203f), 1190) + CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047083u, new Vector3(-168.41382f, 15.771556f, -355.64203f), 1190) { StopDistance = 7f }; @@ -416400,33 +342737,27 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - Span span235 = CollectionsMarshal.AsSpan(list235); - index = 0; - span235[index] = "liza"; + CollectionsMarshal.AsSpan(list235)[0] = "liza"; questRoot25.Author = list235; - index = 5; - List list236 = new List(index); - CollectionsMarshal.SetCount(list236, index); - Span span236 = CollectionsMarshal.AsSpan(list236); - num = 0; - ref QuestSequence reference186 = ref span236[num]; + num = 5; + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + Span span92 = CollectionsMarshal.AsSpan(list236); + ref QuestSequence reference186 = ref span92[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj156.Steps = list237; reference186 = obj156; - num++; - ref QuestSequence reference187 = ref span236[num]; + ref QuestSequence reference187 = ref span92[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -416434,30 +342765,24 @@ public static class AssemblyQuestLoader num2 = 1; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Interact, 1047089u, new Vector3(-142.77869f, 15.869456f, -314.22906f), 1190); + CollectionsMarshal.AsSpan(list238)[0] = new QuestStep(EInteractionType.Interact, 1047089u, new Vector3(-142.77869f, 15.869456f, -314.22906f), 1190); obj157.Steps = list238; reference187 = obj157; - num++; - ref QuestSequence reference188 = ref span236[num]; + ref QuestSequence reference188 = ref span92[2]; QuestSequence obj158 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj158.Steps = list239; reference188 = obj158; - num++; - ref QuestSequence reference189 = ref span236[num]; + ref QuestSequence reference189 = ref span92[3]; QuestSequence obj159 = new QuestSequence { Sequence = 3 @@ -416465,28 +342790,23 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - span240[index2] = new QuestStep(EInteractionType.Interact, 1047355u, new Vector3(-83.42114f, 16.538801f, -235.64508f), 1190); + CollectionsMarshal.AsSpan(list240)[0] = new QuestStep(EInteractionType.Interact, 1047355u, new Vector3(-83.42114f, 16.538801f, -235.64508f), 1190); obj159.Steps = list240; reference189 = obj159; - num++; - ref QuestSequence reference190 = ref span236[num]; + ref QuestSequence reference190 = ref span92[4]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818451u }; - num2++; - span241[num2] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) + span93[1] = new QuestStep(EInteractionType.CompleteQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -416499,16 +342819,13 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "liza"; + CollectionsMarshal.AsSpan(list242)[0] = "liza"; questRoot26.Author = list242; - index = 7; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference191 = ref span243[num]; + num = 7; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span94 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference191 = ref span94[0]; QuestSequence obj161 = new QuestSequence { Sequence = 0 @@ -416516,36 +342833,28 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1046991u, new Vector3(-315.5719f, 18.834728f, -178.88159f), 1190); obj161.Steps = list244; reference191 = obj161; - num++; - ref QuestSequence reference192 = ref span243[num]; + ref QuestSequence reference192 = ref span94[1]; QuestSequence obj162 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818454u }; - num2++; - span245[num2] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); + span95[3] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); obj162.Steps = list245; reference192 = obj162; - num++; - ref QuestSequence reference193 = ref span243[num]; + ref QuestSequence reference193 = ref span94[2]; QuestSequence obj163 = new QuestSequence { Sequence = 2 @@ -416553,42 +342862,34 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.Interact, 2013814u, new Vector3(-201.00714f, 9.811523f, 18.264954f), 1190); + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 2013814u, new Vector3(-201.00714f, 9.811523f, 18.264954f), 1190); obj163.Steps = list246; reference193 = obj163; - num++; - ref QuestSequence reference194 = ref span243[num]; + ref QuestSequence reference194 = ref span94[3]; QuestSequence obj164 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list247 = new List(index2); - CollectionsMarshal.SetCount(list247, index2); - Span span247 = CollectionsMarshal.AsSpan(list247); - num2 = 0; - ref QuestStep reference195 = ref span247[num2]; + num2 = 1; + List list247 = new List(num2); + CollectionsMarshal.SetCount(list247, num2); + ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list247)[0]; QuestStep obj165 = new QuestStep(EInteractionType.Combat, 2013815u, new Vector3(-176.28754f, 4.409851f, 147.11218f), 1190) { Comment = "two waves of enemies", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list248 = new List(num3); + CollectionsMarshal.SetCount(list248, num3); + Span span96 = CollectionsMarshal.AsSpan(list248); + span96[0] = 17699u; + span96[1] = 17700u; obj165.KillEnemyDataIds = list248; reference195 = obj165; obj164.Steps = list247; reference194 = obj164; - num++; - ref QuestSequence reference196 = ref span243[num]; + ref QuestSequence reference196 = ref span94[4]; QuestSequence obj166 = new QuestSequence { Sequence = 4 @@ -416596,27 +342897,21 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.Interact, 1047356u, new Vector3(-226.15399f, 0.85973585f, 74.387695f), 1190); obj166.Steps = list249; reference196 = obj166; - num++; - ref QuestSequence reference197 = ref span243[num]; + ref QuestSequence reference197 = ref span94[5]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj167.Steps = list250; reference197 = obj167; - num++; - ref QuestSequence reference198 = ref span243[num]; + ref QuestSequence reference198 = ref span94[6]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue @@ -416624,9 +342919,7 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - span251[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); + CollectionsMarshal.AsSpan(list251)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047358u, new Vector3(-139.02502f, 15.680048f, -379.8429f), 1190); obj168.Steps = list251; reference198 = obj168; questRoot26.QuestSequence = list243; @@ -416636,30 +342929,24 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - Span span252 = CollectionsMarshal.AsSpan(list252); - index = 0; - span252[index] = "liza"; + CollectionsMarshal.AsSpan(list252)[0] = "liza"; questRoot27.Author = list252; - index = 6; - List list253 = new List(index); - CollectionsMarshal.SetCount(list253, index); - Span span253 = CollectionsMarshal.AsSpan(list253); - num = 0; - ref QuestSequence reference199 = ref span253[num]; + num = 6; + List list253 = new List(num); + CollectionsMarshal.SetCount(list253, num); + Span span97 = CollectionsMarshal.AsSpan(list253); + ref QuestSequence reference199 = ref span97[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj169.Steps = list254; reference199 = obj169; - num++; - ref QuestSequence reference200 = ref span253[num]; + ref QuestSequence reference200 = ref span97[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 @@ -416667,16 +342954,12 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - ref QuestStep reference201 = ref span255[index2]; + ref QuestStep reference201 = ref CollectionsMarshal.AsSpan(list255)[0]; 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); - Span span256 = CollectionsMarshal.AsSpan(list256); - index3 = 0; - span256[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list256)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMD115_04926_SYSTEM_000_010") @@ -416685,23 +342968,19 @@ public static class AssemblyQuestLoader reference201 = questStep31; obj170.Steps = list255; reference200 = obj170; - num++; - span253[num] = new QuestSequence + span97[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference202 = ref span253[num]; + ref QuestSequence reference202 = ref span97[3]; QuestSequence obj171 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list257 = new List(num2); + CollectionsMarshal.SetCount(list257, num2); + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.Duty, null, null, 1219) { DutyOptions = new DutyOptions { @@ -416711,13 +342990,11 @@ public static class AssemblyQuestLoader }; obj171.Steps = list257; reference202 = obj171; - num++; - span253[num] = new QuestSequence + span97[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference203 = ref span253[num]; + ref QuestSequence reference203 = ref span97[5]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -416725,9 +343002,7 @@ public static class AssemblyQuestLoader num2 = 1; List list258 = new List(num2); CollectionsMarshal.SetCount(list258, num2); - Span span258 = CollectionsMarshal.AsSpan(list258); - index2 = 0; - span258[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047371u, new Vector3(650.5377f, 146.05669f, 695.46045f), 1191) + CollectionsMarshal.AsSpan(list258)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047371u, new Vector3(650.5377f, 146.05669f, 695.46045f), 1191) { DisableNavmesh = true }; @@ -416740,34 +343015,28 @@ public static class AssemblyQuestLoader num = 1; List list259 = new List(num); CollectionsMarshal.SetCount(list259, num); - Span span259 = CollectionsMarshal.AsSpan(list259); - index = 0; - span259[index] = "liza"; + CollectionsMarshal.AsSpan(list259)[0] = "liza"; questRoot28.Author = list259; - index = 9; - List list260 = new List(index); - CollectionsMarshal.SetCount(list260, index); - Span span260 = CollectionsMarshal.AsSpan(list260); - num = 0; - ref QuestSequence reference204 = ref span260[num]; + num = 9; + List list260 = new List(num); + CollectionsMarshal.SetCount(list260, num); + Span span98 = CollectionsMarshal.AsSpan(list260); + ref QuestSequence reference204 = ref span98[0]; QuestSequence obj173 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f, DisableNavmesh = true }; obj173.Steps = list261; reference204 = obj173; - num++; - ref QuestSequence reference205 = ref span260[num]; + ref QuestSequence reference205 = ref span98[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 @@ -416775,27 +343044,21 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.Interact, 1047376u, new Vector3(572.83887f, 107.79388f, 483.5431f), 1191); + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.Interact, 1047376u, new Vector3(572.83887f, 107.79388f, 483.5431f), 1191); obj174.Steps = list262; reference205 = obj174; - num++; - ref QuestSequence reference206 = ref span260[num]; + ref QuestSequence reference206 = ref span98[2]; QuestSequence obj175 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj175.Steps = list263; reference206 = obj175; - num++; - ref QuestSequence reference207 = ref span260[num]; + ref QuestSequence reference207 = ref span98[3]; QuestSequence obj176 = new QuestSequence { Sequence = 3 @@ -416803,87 +343066,63 @@ public static class AssemblyQuestLoader num2 = 6; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + Span span99 = CollectionsMarshal.AsSpan(list264); + span99[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { StopDistance = 8f, Aetheryte = EAetheryteLocation.HeritageFoundYyasulaniStation }; - index2++; - ref QuestStep reference208 = ref span264[index2]; + ref QuestStep reference208 = ref span99[1]; QuestStep questStep32 = new QuestStep(EInteractionType.Interact, 2013817u, new Vector3(482.62744f, 147.1427f, 224.23132f), 1191); - 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); + 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); questStep32.CompletionQuestVariablesFlags = list265; reference208 = questStep32; - index2++; - ref QuestStep reference209 = ref span264[index2]; + ref QuestStep reference209 = ref span99[2]; 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 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); + 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); questStep33.CompletionQuestVariablesFlags = list266; reference209 = questStep33; - index2++; - span264[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013964u, new Vector3(397.8789f, 145.34216f, 224.2008f), 1191) + span99[3] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013964u, new Vector3(397.8789f, 145.34216f, 224.2008f), 1191) { AetherCurrentId = 2818464u }; - index2++; - ref QuestStep reference210 = ref span264[index2]; + ref QuestStep reference210 = ref span99[4]; QuestStep questStep34 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(483.82584f, 145.82513f, 186.19025f), 1191); SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions4 = new SkipStepConditions(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list267; skipConditions4.StepIf = skipStepConditions4; questStep34.SkipConditions = skipConditions4; reference210 = questStep34; - index2++; - ref QuestStep reference211 = ref span264[index2]; + ref QuestStep reference211 = ref span99[5]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2013819u, new Vector3(485.83203f, 147.50891f, 184.22205f), 1191) { StopDistance = 4.5f @@ -416891,39 +343130,29 @@ public static class AssemblyQuestLoader num3 = 6; List list268 = new List(num3); CollectionsMarshal.SetCount(list268, num3); - 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); + 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); obj177.CompletionQuestVariablesFlags = list268; reference211 = obj177; obj176.Steps = list264; reference207 = obj176; - num++; - ref QuestSequence reference212 = ref span260[num]; + ref QuestSequence reference212 = ref span98[4]; QuestSequence obj178 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj178.Steps = list269; reference212 = obj178; - num++; - ref QuestSequence reference213 = ref span260[num]; + ref QuestSequence reference213 = ref span98[5]; QuestSequence obj179 = new QuestSequence { Sequence = 5 @@ -416931,29 +343160,23 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - 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); + 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); obj179.Steps = list270; reference213 = obj179; - num++; - ref QuestSequence reference214 = ref span260[num]; + ref QuestSequence reference214 = ref span98[6]; QuestSequence obj180 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj180.Steps = list271; reference214 = obj180; - num++; - ref QuestSequence reference215 = ref span260[num]; + ref QuestSequence reference215 = ref span98[7]; QuestSequence obj181 = new QuestSequence { Sequence = 7 @@ -416961,23 +343184,18 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.Interact, 1047390u, new Vector3(313.31335f, 63.76171f, -87.6936f), 1191); + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1047390u, new Vector3(313.31335f, 63.76171f, -87.6936f), 1191); obj181.Steps = list272; reference215 = obj181; - num++; - ref QuestSequence reference216 = ref span260[num]; + ref QuestSequence reference216 = ref span98[8]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -416990,16 +343208,13 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - Span span274 = CollectionsMarshal.AsSpan(list274); - index = 0; - span274[index] = "liza"; + CollectionsMarshal.AsSpan(list274)[0] = "liza"; questRoot29.Author = list274; - index = 4; - List list275 = new List(index); - CollectionsMarshal.SetCount(list275, index); - Span span275 = CollectionsMarshal.AsSpan(list275); - num = 0; - ref QuestSequence reference217 = ref span275[num]; + num = 4; + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + Span span105 = CollectionsMarshal.AsSpan(list275); + ref QuestSequence reference217 = ref span105[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -417007,30 +343222,24 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047395u, new Vector3(283.07007f, 63.313274f, -169.23785f), 1191) { StopDistance = 5f }; obj183.Steps = list276; reference217 = obj183; - num++; - ref QuestSequence reference218 = ref span275[num]; + ref QuestSequence reference218 = ref span105[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj184.Steps = list277; reference218 = obj184; - num++; - ref QuestSequence reference219 = ref span275[num]; + ref QuestSequence reference219 = ref span105[2]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -417038,38 +343247,32 @@ public static class AssemblyQuestLoader num2 = 3; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span278[index2] = new QuestStep(EInteractionType.Interact, 1047397u, new Vector3(-149.03491f, 25.971825f, -500.63324f), 1191) + span106[2] = new QuestStep(EInteractionType.Interact, 1047397u, new Vector3(-149.03491f, 25.971825f, -500.63324f), 1191) { DisableNavmesh = true }; obj185.Steps = list278; reference219 = obj185; - num++; - ref QuestSequence reference220 = ref span275[num]; + ref QuestSequence reference220 = ref span105[3]; QuestSequence obj186 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Aetheryte = EAetheryteLocation.HeritageFoundTheOutskirts }; - num2++; - span279[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); + span107[1] = new QuestStep(EInteractionType.CompleteQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); obj186.Steps = list279; reference220 = obj186; questRoot29.QuestSequence = list275; @@ -417079,16 +343282,13 @@ public static class AssemblyQuestLoader num = 1; List list280 = new List(num); CollectionsMarshal.SetCount(list280, num); - Span span280 = CollectionsMarshal.AsSpan(list280); - index = 0; - span280[index] = "liza"; + CollectionsMarshal.AsSpan(list280)[0] = "liza"; questRoot30.Author = list280; - index = 6; - List list281 = new List(index); - CollectionsMarshal.SetCount(list281, index); - Span span281 = CollectionsMarshal.AsSpan(list281); - num = 0; - ref QuestSequence reference221 = ref span281[num]; + num = 6; + List list281 = new List(num); + CollectionsMarshal.SetCount(list281, num); + Span span108 = CollectionsMarshal.AsSpan(list281); + ref QuestSequence reference221 = ref span108[0]; QuestSequence obj187 = new QuestSequence { Sequence = 0 @@ -417096,27 +343296,21 @@ public static class AssemblyQuestLoader num2 = 1; List list282 = new List(num2); CollectionsMarshal.SetCount(list282, num2); - Span span282 = CollectionsMarshal.AsSpan(list282); - index2 = 0; - span282[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); + CollectionsMarshal.AsSpan(list282)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047403u, new Vector3(-177.72192f, 28f, -542.9313f), 1191); obj187.Steps = list282; reference221 = obj187; - num++; - ref QuestSequence reference222 = ref span281[num]; + ref QuestSequence reference222 = ref span108[1]; QuestSequence obj188 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj188.Steps = list283; reference222 = obj188; - num++; - ref QuestSequence reference223 = ref span281[num]; + ref QuestSequence reference223 = ref span108[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 @@ -417124,88 +343318,63 @@ public static class AssemblyQuestLoader num2 = 3; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - ref QuestStep reference224 = ref span284[index2]; + Span span109 = CollectionsMarshal.AsSpan(list284); + ref QuestStep reference224 = ref span109[0]; QuestStep questStep35 = new QuestStep(EInteractionType.Interact, 1047408u, new Vector3(22.9953f, 35.463512f, -332.02112f), 1191); - 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); + 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); questStep35.CompletionQuestVariablesFlags = list285; reference224 = questStep35; - index2++; - ref QuestStep reference225 = ref span284[index2]; + ref QuestStep reference225 = ref span109[1]; 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 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); + 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); questStep36.CompletionQuestVariablesFlags = list286; reference225 = questStep36; - index2++; - ref QuestStep reference226 = ref span284[index2]; + ref QuestStep reference226 = ref span109[2]; QuestStep questStep37 = new QuestStep(EInteractionType.Interact, 1047409u, new Vector3(10.849121f, 30.06934f, -458.7625f), 1191); - 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); + 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); questStep37.CompletionQuestVariablesFlags = list287; reference226 = questStep37; obj189.Steps = list284; reference223 = obj189; - num++; - ref QuestSequence reference227 = ref span281[num]; + ref QuestSequence reference227 = ref span108[3]; QuestSequence obj190 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj190.Steps = list288; reference227 = obj190; - num++; - ref QuestSequence reference228 = ref span281[num]; + ref QuestSequence reference228 = ref span108[4]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -417213,9 +343382,8 @@ public static class AssemblyQuestLoader num2 = 2; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - ref QuestStep reference229 = ref span289[index2]; + Span span113 = CollectionsMarshal.AsSpan(list289); + ref QuestStep reference229 = ref span113[0]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2013821u, new Vector3(-182.42163f, 21.835632f, -411.0323f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -417223,30 +343391,21 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span290 = CollectionsMarshal.AsSpan(list290); - index3 = 0; - span290[index3] = 17701u; + CollectionsMarshal.AsSpan(list290)[0] = 17701u; obj192.KillEnemyDataIds = list290; - 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); + 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); obj192.CompletionQuestVariablesFlags = list291; reference229 = obj192; - index2++; - ref QuestStep reference230 = ref span289[index2]; + ref QuestStep reference230 = ref span113[1]; QuestStep obj193 = new QuestStep(EInteractionType.Combat, 2013820u, new Vector3(-56.839844f, 21.835632f, -520.8057f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -417254,42 +343413,31 @@ public static class AssemblyQuestLoader num3 = 1; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); - Span span292 = CollectionsMarshal.AsSpan(list292); - index3 = 0; - span292[index3] = 17701u; + CollectionsMarshal.AsSpan(list292)[0] = 17701u; obj193.KillEnemyDataIds = list292; - 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); + 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); obj193.CompletionQuestVariablesFlags = list293; reference230 = obj193; obj191.Steps = list289; reference228 = obj191; - num++; - ref QuestSequence reference231 = ref span281[num]; + ref QuestSequence reference231 = ref span108[5]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj194.Steps = list294; reference231 = obj194; questRoot30.QuestSequence = list281; @@ -417299,16 +343447,13 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; questRoot31.Author = list295; - index = 9; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference232 = ref span296[num]; + num = 9; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span116 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference232 = ref span116[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -417316,30 +343461,24 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047406u, new Vector3(-116.77734f, 28.996273f, -351.36957f), 1191); obj195.Steps = list297; reference232 = obj195; - num++; - ref QuestSequence reference233 = ref span296[num]; + ref QuestSequence reference233 = ref span116[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj196.Steps = list298; reference233 = obj196; - num++; - ref QuestSequence reference234 = ref span296[num]; + ref QuestSequence reference234 = ref span116[2]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -417347,88 +343486,63 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1047414u, new Vector3(-146.19672f, 25.971825f, -498.1308f), 1191); + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1047414u, new Vector3(-146.19672f, 25.971825f, -498.1308f), 1191); obj197.Steps = list299; reference234 = obj197; - num++; - ref QuestSequence reference235 = ref span296[num]; + ref QuestSequence reference235 = ref span116[3]; QuestSequence obj198 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list300 = new List(index2); - CollectionsMarshal.SetCount(list300, index2); - Span span300 = CollectionsMarshal.AsSpan(list300); - num2 = 0; - ref QuestStep reference236 = ref span300[num2]; + num2 = 3; + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + Span span117 = CollectionsMarshal.AsSpan(list300); + ref QuestStep reference236 = ref span117[0]; 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 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); + 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); questStep38.CompletionQuestVariablesFlags = list301; reference236 = questStep38; - num2++; - ref QuestStep reference237 = ref span300[num2]; + ref QuestStep reference237 = ref span117[1]; QuestStep questStep39 = new QuestStep(EInteractionType.Interact, 1047420u, new Vector3(-142.50409f, 40.99999f, -698.8785f), 1191); - 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); + 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); questStep39.CompletionQuestVariablesFlags = list302; reference237 = questStep39; - num2++; - ref QuestStep reference238 = ref span300[num2]; + ref QuestStep reference238 = ref span117[2]; 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 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); + 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); questStep40.CompletionQuestVariablesFlags = list303; reference238 = questStep40; obj198.Steps = list300; reference235 = obj198; - num++; - ref QuestSequence reference239 = ref span296[num]; + ref QuestSequence reference239 = ref span116[4]; QuestSequence obj199 = new QuestSequence { Sequence = 4 @@ -417436,27 +343550,21 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.Interact, 2013896u, new Vector3(-202.65509f, 29.984009f, -595.636f), 1191); + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.Interact, 2013896u, new Vector3(-202.65509f, 29.984009f, -595.636f), 1191); obj199.Steps = list304; reference239 = obj199; - num++; - ref QuestSequence reference240 = ref span296[num]; + ref QuestSequence reference240 = ref span116[5]; QuestSequence obj200 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj200.Steps = list305; reference240 = obj200; - num++; - ref QuestSequence reference241 = ref span296[num]; + ref QuestSequence reference241 = ref span116[6]; QuestSequence obj201 = new QuestSequence { Sequence = 6 @@ -417464,34 +343572,28 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - 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); + 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); obj201.Steps = list306; reference241 = obj201; - num++; - ref QuestSequence reference242 = ref span296[num]; + ref QuestSequence reference242 = ref span116[7]; QuestSequence obj202 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AetherCurrentId = 2818465u }; - num2++; - span307[num2] = new QuestStep(EInteractionType.Interact, 1047433u, new Vector3(220.26392f, 55.931297f, -679.19434f), 1191); + span122[1] = new QuestStep(EInteractionType.Interact, 1047433u, new Vector3(220.26392f, 55.931297f, -679.19434f), 1191); obj202.Steps = list307; reference242 = obj202; - num++; - ref QuestSequence reference243 = ref span296[num]; + ref QuestSequence reference243 = ref span116[8]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue @@ -417499,9 +343601,7 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047438u, new Vector3(-1.7243042f, -2.5286822E-06f, -0.5340576f), 1171) { StopDistance = 5f }; @@ -417514,33 +343614,27 @@ public static class AssemblyQuestLoader num = 1; List list309 = new List(num); CollectionsMarshal.SetCount(list309, num); - Span span309 = CollectionsMarshal.AsSpan(list309); - index = 0; - span309[index] = "liza"; + CollectionsMarshal.AsSpan(list309)[0] = "liza"; questRoot32.Author = list309; - index = 6; - List list310 = new List(index); - CollectionsMarshal.SetCount(list310, index); - Span span310 = CollectionsMarshal.AsSpan(list310); - num = 0; - ref QuestSequence reference244 = ref span310[num]; + num = 6; + List list310 = new List(num); + CollectionsMarshal.SetCount(list310, num); + Span span123 = CollectionsMarshal.AsSpan(list310); + ref QuestSequence reference244 = ref span123[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj204.Steps = list311; reference244 = obj204; - num++; - ref QuestSequence reference245 = ref span310[num]; + ref QuestSequence reference245 = ref span123[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 @@ -417548,33 +343642,27 @@ public static class AssemblyQuestLoader num2 = 2; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.Interact, 2013853u, new Vector3(0.6560669f, 0.99176025f, 17.532532f), 1171) + Span span124 = CollectionsMarshal.AsSpan(list312); + span124[0] = new QuestStep(EInteractionType.Interact, 2013853u, new Vector3(0.6560669f, 0.99176025f, 17.532532f), 1171) { StopDistance = 4.5f, TargetTerritoryId = (ushort)1191 }; - index2++; - span312[index2] = new QuestStep(EInteractionType.Interact, 1047444u, new Vector3(264.57617f, 68.46363f, -503.31888f), 1191); + span124[1] = new QuestStep(EInteractionType.Interact, 1047444u, new Vector3(264.57617f, 68.46363f, -503.31888f), 1191); obj205.Steps = list312; reference245 = obj205; - num++; - ref QuestSequence reference246 = ref span310[num]; + ref QuestSequence reference246 = ref span123[2]; QuestSequence obj206 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj206.Steps = list313; reference246 = obj206; - num++; - ref QuestSequence reference247 = ref span310[num]; + ref QuestSequence reference247 = ref span123[3]; QuestSequence obj207 = new QuestSequence { Sequence = 3 @@ -417582,56 +343670,46 @@ public static class AssemblyQuestLoader num2 = 4; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013968u, new Vector3(685.96924f, 139.17749f, -516.5637f), 1191) + Span span125 = CollectionsMarshal.AsSpan(list314); + span125[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013968u, new Vector3(685.96924f, 139.17749f, -516.5637f), 1191) { AetherCurrentId = 2818470u }; - index2++; - span314[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013967u, new Vector3(606.83594f, 127.55017f, -190.3869f), 1191) + span125[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013967u, new Vector3(606.83594f, 127.55017f, -190.3869f), 1191) { AetherCurrentId = 2818469u }; - index2++; - span314[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(554.8906f, 83.21251f, -226.04199f), 1191) + span125[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(554.8906f, 83.21251f, -226.04199f), 1191) { DisableNavmesh = true, Mount = true }; - index2++; - ref QuestStep reference248 = ref span314[index2]; + ref QuestStep reference248 = ref span125[3]; QuestStep obj208 = new QuestStep(EInteractionType.Combat, 2013823u, new Vector3(535.7595f, 85.31323f, -316.0296f), 1191) { Comment = "two waves of enemies", EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list315 = new List(index3); - CollectionsMarshal.SetCount(list315, index3); - Span span315 = CollectionsMarshal.AsSpan(list315); - num3 = 0; - span315[num3] = 17702u; + num3 = 1; + List list315 = new List(num3); + CollectionsMarshal.SetCount(list315, num3); + CollectionsMarshal.AsSpan(list315)[0] = 17702u; obj208.KillEnemyDataIds = list315; reference248 = obj208; obj207.Steps = list314; reference247 = obj207; - num++; - ref QuestSequence reference249 = ref span310[num]; + ref QuestSequence reference249 = ref span123[4]; QuestSequence obj209 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj209.Steps = list316; reference249 = obj209; - num++; - ref QuestSequence reference250 = ref span310[num]; + ref QuestSequence reference250 = ref span123[5]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -417639,9 +343717,7 @@ public static class AssemblyQuestLoader num2 = 1; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - index2 = 0; - span317[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047460u, new Vector3(450.33948f, 89.99999f, -474.815f), 1191) + CollectionsMarshal.AsSpan(list317)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047460u, new Vector3(450.33948f, 89.99999f, -474.815f), 1191) { StopDistance = 5f }; @@ -417654,33 +343730,27 @@ public static class AssemblyQuestLoader num = 1; List list318 = new List(num); CollectionsMarshal.SetCount(list318, num); - Span span318 = CollectionsMarshal.AsSpan(list318); - index = 0; - span318[index] = "liza"; + CollectionsMarshal.AsSpan(list318)[0] = "liza"; questRoot33.Author = list318; - index = 4; - List list319 = new List(index); - CollectionsMarshal.SetCount(list319, index); - Span span319 = CollectionsMarshal.AsSpan(list319); - num = 0; - ref QuestSequence reference251 = ref span319[num]; + num = 4; + List list319 = new List(num); + CollectionsMarshal.SetCount(list319, num); + Span span126 = CollectionsMarshal.AsSpan(list319); + ref QuestSequence reference251 = ref span126[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj211.Steps = list320; reference251 = obj211; - num++; - ref QuestSequence reference252 = ref span319[num]; + ref QuestSequence reference252 = ref span126[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -417688,35 +343758,29 @@ public static class AssemblyQuestLoader num2 = 1; List list321 = new List(num2); CollectionsMarshal.SetCount(list321, num2); - Span span321 = CollectionsMarshal.AsSpan(list321); - index2 = 0; - span321[index2] = new QuestStep(EInteractionType.Interact, 1047770u, new Vector3(247.54712f, 72.69989f, -536.7361f), 1191); + CollectionsMarshal.AsSpan(list321)[0] = new QuestStep(EInteractionType.Interact, 1047770u, new Vector3(247.54712f, 72.69989f, -536.7361f), 1191); obj212.Steps = list321; reference252 = obj212; - num++; - ref QuestSequence reference253 = ref span319[num]; + ref QuestSequence reference253 = ref span126[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)1171 }; - num2++; - span322[num2] = new QuestStep(EInteractionType.Interact, 1047775u, new Vector3(1.0527954f, 0.003171f, 0.6866455f), 1171) + span127[1] = new QuestStep(EInteractionType.Interact, 1047775u, new Vector3(1.0527954f, 0.003171f, 0.6866455f), 1171) { DelaySecondsAtStart = 3f }; obj213.Steps = list322; reference253 = obj213; - num++; - ref QuestSequence reference254 = ref span319[num]; + ref QuestSequence reference254 = ref span126[3]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -417724,9 +343788,7 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047781u, new Vector3(2.670288f, 0.003171f, 1.296936f), 1171) + CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047781u, new Vector3(2.670288f, 0.003171f, 1.296936f), 1171) { StopDistance = 5f }; @@ -417739,33 +343801,27 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - Span span324 = CollectionsMarshal.AsSpan(list324); - index = 0; - span324[index] = "liza"; + CollectionsMarshal.AsSpan(list324)[0] = "liza"; questRoot34.Author = list324; - index = 6; - List list325 = new List(index); - CollectionsMarshal.SetCount(list325, index); - Span span325 = CollectionsMarshal.AsSpan(list325); - num = 0; - ref QuestSequence reference255 = ref span325[num]; + num = 6; + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + Span span128 = CollectionsMarshal.AsSpan(list325); + ref QuestSequence reference255 = ref span128[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj215.Steps = list326; reference255 = obj215; - num++; - ref QuestSequence reference256 = ref span325[num]; + ref QuestSequence reference256 = ref span128[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 @@ -417773,9 +343829,8 @@ public static class AssemblyQuestLoader num2 = 3; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) + Span span129 = CollectionsMarshal.AsSpan(list327); + span129[0] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -417787,39 +343842,32 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(5153) }; - index2++; - span327[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + span129[1] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { PickUpQuestId = new QuestId(5160) }; - index2++; - span327[index2] = new QuestStep(EInteractionType.Interact, 1048053u, new Vector3(-296.52863f, 45.88422f, -828.58014f), 1191); + span129[2] = new QuestStep(EInteractionType.Interact, 1048053u, new Vector3(-296.52863f, 45.88422f, -828.58014f), 1191); obj216.Steps = list327; reference256 = obj216; - num++; - span325[num] = new QuestSequence + span128[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference257 = ref span325[num]; + ref QuestSequence reference257 = ref span128[3]; QuestSequence obj217 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj217.Steps = list328; reference257 = obj217; - num++; - ref QuestSequence reference258 = ref span325[num]; + ref QuestSequence reference258 = ref span128[4]; QuestSequence obj218 = new QuestSequence { Sequence = 4 @@ -417827,36 +343875,30 @@ public static class AssemblyQuestLoader num2 = 2; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span130 = CollectionsMarshal.AsSpan(list329); + span130[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineInformationCenter }; - index2++; - span329[index2] = new QuestStep(EInteractionType.Interact, 1048060u, new Vector3(5.935669f, 7.786434f, 27.450928f), 1186); + span130[1] = new QuestStep(EInteractionType.Interact, 1048060u, new Vector3(5.935669f, 7.786434f, 27.450928f), 1186); obj218.Steps = list329; reference258 = obj218; - num++; - ref QuestSequence reference259 = ref span325[num]; + ref QuestSequence reference259 = ref span128[5]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 11f, Aetheryte = EAetheryteLocation.SolutionNine }; - num2++; - span330[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048061u, new Vector3(-97.94769f, 0.00054359436f, -0.10687256f), 1186); + span131[2] = new QuestStep(EInteractionType.CompleteQuest, 1048061u, new Vector3(-97.94769f, 0.00054359436f, -0.10687256f), 1186); obj219.Steps = list330; reference259 = obj219; questRoot34.QuestSequence = list325; @@ -417866,16 +343908,13 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "liza"; + CollectionsMarshal.AsSpan(list331)[0] = "liza"; questRoot35.Author = list331; - index = 8; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference260 = ref span332[num]; + num = 8; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span132 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference260 = ref span132[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -417883,57 +343922,47 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048062u, new Vector3(-136.43097f, 0.22516371f, -44.235962f), 1186) + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048062u, new Vector3(-136.43097f, 0.22516371f, -44.235962f), 1186) { StopDistance = 5f }; obj220.Steps = list333; reference260 = obj220; - num++; - ref QuestSequence reference261 = ref span332[num]; + ref QuestSequence reference261 = ref span132[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list334 = new List(index2); - CollectionsMarshal.SetCount(list334, index2); - Span span334 = CollectionsMarshal.AsSpan(list334); - num2 = 0; - ref QuestStep reference262 = ref span334[num2]; + num2 = 1; + List list334 = new List(num2); + CollectionsMarshal.SetCount(list334, num2); + ref QuestStep reference262 = ref CollectionsMarshal.AsSpan(list334)[0]; 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 span335 = CollectionsMarshal.AsSpan(list335); - index3 = 0; - span335[index3] = new DialogueChoice + Span span133 = CollectionsMarshal.AsSpan(list335); + span133[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGME103_04934_SYSTEM_000_057") }; - index3++; - span335[index3] = new DialogueChoice + span133[1] = 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; - index3 = 1; - List list336 = new List(index3); - CollectionsMarshal.SetCount(list336, index3); - Span span336 = CollectionsMarshal.AsSpan(list336); - num3 = 0; - span336[num3] = 2u; + num3 = 1; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + CollectionsMarshal.AsSpan(list336)[0] = 2u; questStep41.PointMenuChoices = list336; reference262 = questStep41; obj221.Steps = list334; reference261 = obj221; - num++; - ref QuestSequence reference263 = ref span332[num]; + ref QuestSequence reference263 = ref span132[2]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -417941,33 +343970,27 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.Interact, 1048066u, new Vector3(-162.55438f, 0.92195225f, -52.384216f), 1186) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.Interact, 1048066u, new Vector3(-162.55438f, 0.92195225f, -52.384216f), 1186) { StopDistance = 5f }; obj222.Steps = list337; reference263 = obj222; - num++; - ref QuestSequence reference264 = ref span332[num]; + ref QuestSequence reference264 = ref span132[3]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj223.Steps = list338; reference264 = obj223; - num++; - ref QuestSequence reference265 = ref span332[num]; + ref QuestSequence reference265 = ref span132[4]; QuestSequence obj224 = new QuestSequence { Sequence = 4 @@ -417975,41 +343998,34 @@ public static class AssemblyQuestLoader num2 = 3; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span134 = CollectionsMarshal.AsSpan(list339); + span134[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNexusArcade }; - 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) + 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) { StopDistance = 0.25f, DelaySecondsAtStart = 3f }; obj224.Steps = list339; reference265 = obj224; - num++; - ref QuestSequence reference266 = ref span332[num]; + ref QuestSequence reference266 = ref span132[5]; QuestSequence obj225 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 0.25f }; obj225.Steps = list340; reference266 = obj225; - num++; - ref QuestSequence reference267 = ref span332[num]; + ref QuestSequence reference267 = ref span132[6]; QuestSequence obj226 = new QuestSequence { Sequence = 6 @@ -418017,31 +344033,26 @@ public static class AssemblyQuestLoader num2 = 2; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span135 = CollectionsMarshal.AsSpan(list341); + span135[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineResidentialSector }; - index2++; - span341[index2] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-401.3925f, 13.999998f, 273.74304f), 1186) + span135[1] = new QuestStep(EInteractionType.Interact, 1048065u, new Vector3(-401.3925f, 13.999998f, 273.74304f), 1186) { StopDistance = 0.25f }; obj226.Steps = list341; reference267 = obj226; - num++; - ref QuestSequence reference268 = ref span332[num]; + ref QuestSequence reference268 = ref span132[7]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -418054,16 +344065,13 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - Span span343 = CollectionsMarshal.AsSpan(list343); - index = 0; - span343[index] = "liza"; + CollectionsMarshal.AsSpan(list343)[0] = "liza"; questRoot36.Author = list343; - index = 5; - List list344 = new List(index); - CollectionsMarshal.SetCount(list344, index); - Span span344 = CollectionsMarshal.AsSpan(list344); - num = 0; - ref QuestSequence reference269 = ref span344[num]; + num = 5; + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + Span span136 = CollectionsMarshal.AsSpan(list344); + ref QuestSequence reference269 = ref span136[0]; QuestSequence obj228 = new QuestSequence { Sequence = 0 @@ -418071,33 +344079,27 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048067u, new Vector3(-403.9826f, 13.999998f, 275.8678f), 1186) { StopDistance = 5f }; obj228.Steps = list345; reference269 = obj228; - num++; - ref QuestSequence reference270 = ref span344[num]; + ref QuestSequence reference270 = ref span136[1]; QuestSequence obj229 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; obj229.Steps = list346; reference270 = obj229; - num++; - ref QuestSequence reference271 = ref span344[num]; + ref QuestSequence reference271 = ref span136[2]; QuestSequence obj230 = new QuestSequence { Sequence = 2 @@ -418105,38 +344107,31 @@ public static class AssemblyQuestLoader num2 = 3; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) + Span span137 = CollectionsMarshal.AsSpan(list347); + span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(5.0530143f, 0.49999952f, -117.162285f), 1186) { RestartNavigationIfCancelled = false }; - index2++; - span347[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span137[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { DelaySecondsAtStart = 2f, AethernetShard = EAetheryteLocation.SolutionNineResolution }; - index2++; - span347[index2] = new QuestStep(EInteractionType.Interact, 1048073u, new Vector3(4.0740967f, 38.056595f, -375.50934f), 1186); + span137[2] = new QuestStep(EInteractionType.Interact, 1048073u, new Vector3(4.0740967f, 38.056595f, -375.50934f), 1186); obj230.Steps = list347; reference271 = obj230; - num++; - ref QuestSequence reference272 = ref span344[num]; + ref QuestSequence reference272 = ref span136[3]; QuestSequence obj231 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj231.Steps = list348; reference272 = obj231; - num++; - ref QuestSequence reference273 = ref span344[num]; + ref QuestSequence reference273 = ref span136[4]; QuestSequence obj232 = new QuestSequence { Sequence = byte.MaxValue @@ -418144,9 +344139,7 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186) + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048075u, new Vector3(133.83679f, 0.00054359436f, 3.5248413f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; @@ -418159,30 +344152,24 @@ public static class AssemblyQuestLoader num = 1; List list350 = new List(num); CollectionsMarshal.SetCount(list350, num); - Span span350 = CollectionsMarshal.AsSpan(list350); - index = 0; - span350[index] = "liza"; + CollectionsMarshal.AsSpan(list350)[0] = "liza"; questRoot37.Author = list350; - index = 6; - List list351 = new List(index); - CollectionsMarshal.SetCount(list351, index); - Span span351 = CollectionsMarshal.AsSpan(list351); - num = 0; - ref QuestSequence reference274 = ref span351[num]; + num = 6; + List list351 = new List(num); + CollectionsMarshal.SetCount(list351, num); + Span span138 = CollectionsMarshal.AsSpan(list351); + ref QuestSequence reference274 = ref span138[0]; QuestSequence obj233 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj233.Steps = list352; reference274 = obj233; - num++; - ref QuestSequence reference275 = ref span351[num]; + ref QuestSequence reference275 = ref span138[1]; QuestSequence obj234 = new QuestSequence { Sequence = 1 @@ -418190,35 +344177,29 @@ public static class AssemblyQuestLoader num2 = 2; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.57825f, 0.5499997f, 5.1162424f), 1186) + Span span139 = CollectionsMarshal.AsSpan(list353); + span139[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(146.57825f, 0.5499997f, 5.1162424f), 1186) { RestartNavigationIfCancelled = false }; - index2++; - span353[index2] = new QuestStep(EInteractionType.Interact, 1048172u, new Vector3(250.59888f, 59.699997f, 9.201172f), 1186) + span139[1] = new QuestStep(EInteractionType.Interact, 1048172u, new Vector3(250.59888f, 59.699997f, 9.201172f), 1186) { DelaySecondsAtStart = 2f }; obj234.Steps = list353; reference275 = obj234; - num++; - ref QuestSequence reference276 = ref span351[num]; + ref QuestSequence reference276 = ref span138[2]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj235.Steps = list354; reference276 = obj235; - num++; - ref QuestSequence reference277 = ref span351[num]; + ref QuestSequence reference277 = ref span138[3]; QuestSequence obj236 = new QuestSequence { Sequence = 3 @@ -418226,9 +344207,7 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - ref QuestStep reference278 = ref span355[index2]; + ref QuestStep reference278 = ref CollectionsMarshal.AsSpan(list355)[0]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1048078u, new Vector3(346.0287f, 70f, 12.466553f), 1186) { StopDistance = 5f @@ -418236,9 +344215,7 @@ public static class AssemblyQuestLoader num3 = 1; List list356 = new List(num3); CollectionsMarshal.SetCount(list356, num3); - Span span356 = CollectionsMarshal.AsSpan(list356); - index3 = 0; - span356[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list356)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGME105_04936_SYSTEM_000_044") @@ -418247,40 +344224,33 @@ public static class AssemblyQuestLoader reference278 = obj237; obj236.Steps = list355; reference277 = obj236; - num++; - ref QuestSequence reference279 = ref span351[num]; + ref QuestSequence reference279 = ref span138[4]; QuestSequence obj238 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 1f }; - num2++; - span357[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.64206f, 60f, 79.1161f), 1186) + span140[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1048078u, new Vector3(344.64206f, 60f, 79.1161f), 1186) { StopDistance = 5f, NpcWaitDistance = 3f }; - 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) + 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) { StopDistance = 2f }; obj238.Steps = list357; reference279 = obj238; - num++; - ref QuestSequence reference280 = ref span351[num]; + ref QuestSequence reference280 = ref span138[5]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue @@ -418288,9 +344258,7 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - span358[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048080u, new Vector3(299.45825f, 51.199978f, 202.04468f), 1186); + CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048080u, new Vector3(299.45825f, 51.199978f, 202.04468f), 1186); obj239.Steps = list358; reference280 = obj239; questRoot37.QuestSequence = list351; @@ -418300,33 +344268,27 @@ public static class AssemblyQuestLoader num = 1; List list359 = new List(num); CollectionsMarshal.SetCount(list359, num); - Span span359 = CollectionsMarshal.AsSpan(list359); - index = 0; - span359[index] = "liza"; + CollectionsMarshal.AsSpan(list359)[0] = "liza"; questRoot38.Author = list359; - index = 7; - List list360 = new List(index); - CollectionsMarshal.SetCount(list360, index); - Span span360 = CollectionsMarshal.AsSpan(list360); - num = 0; - ref QuestSequence reference281 = ref span360[num]; + num = 7; + List list360 = new List(num); + CollectionsMarshal.SetCount(list360, num); + Span span141 = CollectionsMarshal.AsSpan(list360); + ref QuestSequence reference281 = ref span141[0]; QuestSequence obj240 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj240.Steps = list361; reference281 = obj240; - num++; - ref QuestSequence reference282 = ref span360[num]; + ref QuestSequence reference282 = ref span141[1]; QuestSequence obj241 = new QuestSequence { Sequence = 1 @@ -418334,42 +344296,34 @@ public static class AssemblyQuestLoader num2 = 1; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - span362[index2] = new QuestStep(EInteractionType.Interact, 1048084u, new Vector3(12.802246f, -1.6391277E-07f, 6.42395f), 1207); + CollectionsMarshal.AsSpan(list362)[0] = new QuestStep(EInteractionType.Interact, 1048084u, new Vector3(12.802246f, -1.6391277E-07f, 6.42395f), 1207); obj241.Steps = list362; reference282 = obj241; - num++; - ref QuestSequence reference283 = ref span360[num]; + ref QuestSequence reference283 = ref span141[2]; QuestSequence obj242 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)1186 }; - num2++; - span363[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span142[1] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineNeonStein }; - num2++; - span363[num2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + span142[2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTrueVue }; - num2++; - span363[num2] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); + span142[3] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); obj242.Steps = list363; reference283 = obj242; - num++; - ref QuestSequence reference284 = ref span360[num]; + ref QuestSequence reference284 = ref span141[3]; QuestSequence obj243 = new QuestSequence { Sequence = 3 @@ -418377,31 +344331,25 @@ public static class AssemblyQuestLoader num2 = 1; List list364 = new List(num2); CollectionsMarshal.SetCount(list364, num2); - Span span364 = CollectionsMarshal.AsSpan(list364); - index2 = 0; - span364[index2] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); + CollectionsMarshal.AsSpan(list364)[0] = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186); obj243.Steps = list364; reference284 = obj243; - num++; - ref QuestSequence reference285 = ref span360[num]; + ref QuestSequence reference285 = ref span141[4]; QuestSequence obj244 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f, ItemId = 2003561u }; obj244.Steps = list365; reference285 = obj244; - num++; - ref QuestSequence reference286 = ref span360[num]; + ref QuestSequence reference286 = ref span141[5]; QuestSequence obj245 = new QuestSequence { Sequence = 5 @@ -418409,14 +344357,12 @@ public static class AssemblyQuestLoader num2 = 3; List list366 = new List(num2); CollectionsMarshal.SetCount(list366, num2); - Span span366 = CollectionsMarshal.AsSpan(list366); - index2 = 0; - span366[index2] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) + Span span143 = CollectionsMarshal.AsSpan(list366); + span143[0] = new QuestStep(EInteractionType.AttuneAethernetShard, null, null, 1186) { AethernetShard = EAetheryteLocation.SolutionNineTheArcadion }; - index2++; - span366[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + span143[1] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AethernetShortcut = new AethernetShortcut @@ -418425,22 +344371,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - index2++; - span366[index2] = new QuestStep(EInteractionType.Interact, 1048189u, new Vector3(13.290527f, -1.7329884E-07f, 6.088318f), 1207); + span143[2] = new QuestStep(EInteractionType.Interact, 1048189u, new Vector3(13.290527f, -1.7329884E-07f, 6.088318f), 1207); obj245.Steps = list366; reference286 = obj245; - num++; - ref QuestSequence reference287 = ref span360[num]; + ref QuestSequence reference287 = ref span141[6]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -418453,16 +344395,13 @@ public static class AssemblyQuestLoader num = 1; List list368 = new List(num); CollectionsMarshal.SetCount(list368, num); - Span span368 = CollectionsMarshal.AsSpan(list368); - index = 0; - span368[index] = "liza"; + CollectionsMarshal.AsSpan(list368)[0] = "liza"; questRoot39.Author = list368; - index = 5; - List list369 = new List(index); - CollectionsMarshal.SetCount(list369, index); - Span span369 = CollectionsMarshal.AsSpan(list369); - num = 0; - ref QuestSequence reference288 = ref span369[num]; + num = 5; + List list369 = new List(num); + CollectionsMarshal.SetCount(list369, num); + Span span144 = CollectionsMarshal.AsSpan(list369); + ref QuestSequence reference288 = ref span144[0]; QuestSequence obj247 = new QuestSequence { Sequence = 0 @@ -418470,30 +344409,24 @@ public static class AssemblyQuestLoader num2 = 1; List list370 = new List(num2); CollectionsMarshal.SetCount(list370, num2); - Span span370 = CollectionsMarshal.AsSpan(list370); - index2 = 0; - span370[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051347u, new Vector3(4.3792725f, 0.04647946f, 5.6915283f), 1207); + CollectionsMarshal.AsSpan(list370)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051347u, new Vector3(4.3792725f, 0.04647946f, 5.6915283f), 1207); obj247.Steps = list370; reference288 = obj247; - num++; - ref QuestSequence reference289 = ref span369[num]; + ref QuestSequence reference289 = ref span144[1]; QuestSequence obj248 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj248.Steps = list371; reference289 = obj248; - num++; - ref QuestSequence reference290 = ref span369[num]; + ref QuestSequence reference290 = ref span144[2]; QuestSequence obj249 = new QuestSequence { Sequence = 2 @@ -418501,27 +344434,21 @@ public static class AssemblyQuestLoader num2 = 1; List list372 = new List(num2); CollectionsMarshal.SetCount(list372, num2); - Span span372 = CollectionsMarshal.AsSpan(list372); - index2 = 0; - span372[index2] = new QuestStep(EInteractionType.Interact, 2013840u, new Vector3(-485.49634f, 28.366455f, -576.22644f), 1191); + CollectionsMarshal.AsSpan(list372)[0] = new QuestStep(EInteractionType.Interact, 2013840u, new Vector3(-485.49634f, 28.366455f, -576.22644f), 1191); obj249.Steps = list372; reference290 = obj249; - num++; - ref QuestSequence reference291 = ref span369[num]; + ref QuestSequence reference291 = ref span144[3]; QuestSequence obj250 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj250.Steps = list373; reference291 = obj250; - num++; - ref QuestSequence reference292 = ref span369[num]; + ref QuestSequence reference292 = ref span144[4]; QuestSequence obj251 = new QuestSequence { Sequence = byte.MaxValue @@ -418529,14 +344456,12 @@ public static class AssemblyQuestLoader num2 = 2; List list374 = new List(num2); CollectionsMarshal.SetCount(list374, num2); - Span span374 = CollectionsMarshal.AsSpan(list374); - index2 = 0; - span374[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013969u, new Vector3(-585.41235f, 20.157104f, -469.44385f), 1191) + Span span145 = CollectionsMarshal.AsSpan(list374); + span145[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013969u, new Vector3(-585.41235f, 20.157104f, -469.44385f), 1191) { AetherCurrentId = 2818466u }; - index2++; - span374[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048103u, new Vector3(-704.09705f, 54.03237f, -210.46777f), 1191); + span145[1] = new QuestStep(EInteractionType.CompleteQuest, 1048103u, new Vector3(-704.09705f, 54.03237f, -210.46777f), 1191); obj251.Steps = list374; reference292 = obj251; questRoot39.QuestSequence = list369; @@ -418546,30 +344471,24 @@ public static class AssemblyQuestLoader num = 1; List list375 = new List(num); CollectionsMarshal.SetCount(list375, num); - Span span375 = CollectionsMarshal.AsSpan(list375); - index = 0; - span375[index] = "liza"; + CollectionsMarshal.AsSpan(list375)[0] = "liza"; questRoot40.Author = list375; - index = 7; - List list376 = new List(index); - CollectionsMarshal.SetCount(list376, index); - Span span376 = CollectionsMarshal.AsSpan(list376); - num = 0; - ref QuestSequence reference293 = ref span376[num]; + num = 7; + List list376 = new List(num); + CollectionsMarshal.SetCount(list376, num); + Span span146 = CollectionsMarshal.AsSpan(list376); + ref QuestSequence reference293 = ref span146[0]; QuestSequence obj252 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj252.Steps = list377; reference293 = obj252; - num++; - ref QuestSequence reference294 = ref span376[num]; + ref QuestSequence reference294 = ref span146[1]; QuestSequence obj253 = new QuestSequence { Sequence = 1 @@ -418577,27 +344496,21 @@ public static class AssemblyQuestLoader num2 = 1; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.Interact, 1048104u, new Vector3(-519.9817f, 10.081686f, 81.1322f), 1191); + CollectionsMarshal.AsSpan(list378)[0] = new QuestStep(EInteractionType.Interact, 1048104u, new Vector3(-519.9817f, 10.081686f, 81.1322f), 1191); obj253.Steps = list378; reference294 = obj253; - num++; - ref QuestSequence reference295 = ref span376[num]; + ref QuestSequence reference295 = ref span146[2]; QuestSequence obj254 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj254.Steps = list379; reference295 = obj254; - num++; - ref QuestSequence reference296 = ref span376[num]; + ref QuestSequence reference296 = ref span146[3]; QuestSequence obj255 = new QuestSequence { Sequence = 3 @@ -418605,82 +344518,65 @@ public static class AssemblyQuestLoader num2 = 13; List list380 = new List(num2); CollectionsMarshal.SetCount(list380, num2); - Span span380 = CollectionsMarshal.AsSpan(list380); - index2 = 0; - span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-552.04144f, -2.079689f, 135.62419f), 1191) + Span span147 = CollectionsMarshal.AsSpan(list380); + span147[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-552.04144f, -2.079689f, 135.62419f), 1191) { Mount = true }; - index2++; - span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-543.3764f, -1.6255682f, 170.78006f), 1191) + span147[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-543.3764f, -1.6255682f, 170.78006f), 1191) { StopDistance = 50f }; - index2++; - span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.3011f, -1.480176f, 158.82558f), 1191) + span147[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-544.3011f, -1.480176f, 158.82558f), 1191) { DelaySecondsAtStart = 5f }; - index2++; - span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-497.62363f, 0.7720427f, 171.72368f), 1191) + span147[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-497.62363f, 0.7720427f, 171.72368f), 1191) { StopDistance = 50f }; - 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) + 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) { StopDistance = 100f }; - 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) + 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) { StopDistance = 100f }; - index2++; - span380[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.35794f, 4.2450695f, 216.45123f), 1191) + span147[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-431.35794f, 4.2450695f, 216.45123f), 1191) { DelaySecondsAtStart = 5f }; - index2++; - span380[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-444.92905f, 3.5340097f, 257.89444f), 1191) + span147[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1047493u, new Vector3(-444.92905f, 3.5340097f, 257.89444f), 1191) { StopDistance = 100f }; - 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) + 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) { StopDistance = 100f, NpcWaitDistance = 5f }; - index2++; - span380[index2] = new QuestStep(EInteractionType.WalkTo, 2013719u, new Vector3(-482.0478f, 6.362976f, 323.62854f), 1191); + span147[12] = new QuestStep(EInteractionType.WalkTo, 2013719u, new Vector3(-482.0478f, 6.362976f, 323.62854f), 1191); obj255.Steps = list380; reference296 = obj255; - num++; - ref QuestSequence reference297 = ref span376[num]; + ref QuestSequence reference297 = ref span146[4]; QuestSequence obj256 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj256.Steps = list381; reference297 = obj256; - num++; - ref QuestSequence reference298 = ref span376[num]; + ref QuestSequence reference298 = ref span146[5]; QuestSequence obj257 = new QuestSequence { Sequence = 5 @@ -418688,55 +344584,45 @@ public static class AssemblyQuestLoader num2 = 5; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span382[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) + Span span148 = CollectionsMarshal.AsSpan(list382); + span148[0] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1191) { Aetheryte = EAetheryteLocation.HeritageFoundElectropeStrike }; - index2++; - span382[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013972u, new Vector3(-29.007446f, 71.42737f, 335.37793f), 1191) + span148[1] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013972u, new Vector3(-29.007446f, 71.42737f, 335.37793f), 1191) { AetherCurrentId = 2818472u }; - index2++; - span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.293804f, 59.430523f, 343.74417f), 1191) + span148[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-44.293804f, 59.430523f, 343.74417f), 1191) { DisableNavmesh = true, Mount = true }; - index2++; - span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.53459f, 24.70902f, 438.2853f), 1191); - index2++; - ref QuestStep reference299 = ref span382[index2]; + span148[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-238.53459f, 24.70902f, 438.2853f), 1191); + ref QuestStep reference299 = ref span148[4]; QuestStep obj258 = new QuestStep(EInteractionType.Combat, 2013842u, new Vector3(-234.18024f, 11.520508f, 512.50464f), 1191) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list383 = new List(index3); - CollectionsMarshal.SetCount(list383, index3); - Span span383 = CollectionsMarshal.AsSpan(list383); - num3 = 0; - span383[num3] = 17703u; + num3 = 1; + List list383 = new List(num3); + CollectionsMarshal.SetCount(list383, num3); + CollectionsMarshal.AsSpan(list383)[0] = 17703u; obj258.KillEnemyDataIds = list383; reference299 = obj258; obj257.Steps = list382; reference298 = obj257; - num++; - ref QuestSequence reference300 = ref span376[num]; + ref QuestSequence reference300 = ref span146[6]; QuestSequence obj259 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 4f }; @@ -418749,16 +344635,13 @@ public static class AssemblyQuestLoader num = 1; List list385 = new List(num); CollectionsMarshal.SetCount(list385, num); - Span span385 = CollectionsMarshal.AsSpan(list385); - index = 0; - span385[index] = "liza"; + CollectionsMarshal.AsSpan(list385)[0] = "liza"; questRoot41.Author = list385; - index = 5; - List list386 = new List(index); - CollectionsMarshal.SetCount(list386, index); - Span span386 = CollectionsMarshal.AsSpan(list386); - num = 0; - ref QuestSequence reference301 = ref span386[num]; + num = 5; + List list386 = new List(num); + CollectionsMarshal.SetCount(list386, num); + Span span150 = CollectionsMarshal.AsSpan(list386); + ref QuestSequence reference301 = ref span150[0]; QuestSequence obj260 = new QuestSequence { Sequence = 0 @@ -418766,143 +344649,102 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - Span span387 = CollectionsMarshal.AsSpan(list387); - index2 = 0; - span387[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) + CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048173u, new Vector3(-464.4389f, 8.100235f, 315.4497f), 1191) { StopDistance = 4f }; obj260.Steps = list387; reference301 = obj260; - num++; - ref QuestSequence reference302 = ref span386[num]; + ref QuestSequence reference302 = ref span150[1]; QuestSequence obj261 = new QuestSequence { Sequence = 1 }; - index2 = 7; - List list388 = new List(index2); - CollectionsMarshal.SetCount(list388, index2); - Span span388 = CollectionsMarshal.AsSpan(list388); - num2 = 0; - ref QuestStep reference303 = ref span388[num2]; + num2 = 7; + List list388 = new List(num2); + CollectionsMarshal.SetCount(list388, num2); + Span span151 = CollectionsMarshal.AsSpan(list388); + ref QuestStep reference303 = ref span151[0]; 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 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); + 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); questStep42.CompletionQuestVariablesFlags = list389; reference303 = questStep42; - num2++; - ref QuestStep reference304 = ref span388[num2]; + ref QuestStep reference304 = ref span151[1]; QuestStep questStep43 = new QuestStep(EInteractionType.Interact, 2013844u, new Vector3(-556.9696f, 3.616333f, 330.6172f), 1191); - 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); + 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); questStep43.CompletionQuestVariablesFlags = list390; reference304 = questStep43; - num2++; - span388[num2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013970u, new Vector3(-600.09155f, 2.2124634f, 267.4143f), 1191) + span151[2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013970u, new Vector3(-600.09155f, 2.2124634f, 267.4143f), 1191) { AetherCurrentId = 2818467u }; - num2++; - span388[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.9605f, 0.31490707f, 239.41946f), 1191) + span151[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-594.9605f, 0.31490707f, 239.41946f), 1191) { Mount = true }; - num2++; - ref QuestStep reference305 = ref span388[num2]; + ref QuestStep reference305 = ref span151[4]; 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 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); + 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); questStep44.CompletionQuestVariablesFlags = list391; reference305 = questStep44; - num2++; - ref QuestStep reference306 = ref span388[num2]; + ref QuestStep reference306 = ref span151[5]; QuestStep questStep45 = new QuestStep(EInteractionType.Interact, 2013846u, new Vector3(-607.72107f, 0.59503174f, 190.3562f), 1191); - 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); + 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); questStep45.CompletionQuestVariablesFlags = list392; reference306 = questStep45; - num2++; - ref QuestStep reference307 = ref span388[num2]; + ref QuestStep reference307 = ref span151[6]; 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 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); + 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); questStep46.CompletionQuestVariablesFlags = list393; reference307 = questStep46; obj261.Steps = list388; reference302 = obj261; - num++; - ref QuestSequence reference308 = ref span386[num]; + ref QuestSequence reference308 = ref span150[2]; QuestSequence obj262 = new QuestSequence { Sequence = 2 @@ -418910,32 +344752,26 @@ public static class AssemblyQuestLoader num2 = 2; List list394 = new List(num2); CollectionsMarshal.SetCount(list394, num2); - 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); + 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); obj262.Steps = list394; reference308 = obj262; - num++; - ref QuestSequence reference309 = ref span386[num]; + ref QuestSequence reference309 = ref span150[3]; QuestSequence obj263 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 5f }; obj263.Steps = list395; reference309 = obj263; - num++; - ref QuestSequence reference310 = ref span386[num]; + ref QuestSequence reference310 = ref span150[4]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -418943,9 +344779,7 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - Span span396 = CollectionsMarshal.AsSpan(list396); - index2 = 0; - span396[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191); + CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191); obj264.Steps = list396; reference310 = obj264; questRoot41.QuestSequence = list386; @@ -418955,33 +344789,27 @@ public static class AssemblyQuestLoader num = 1; List list397 = new List(num); CollectionsMarshal.SetCount(list397, num); - Span span397 = CollectionsMarshal.AsSpan(list397); - index = 0; - span397[index] = "liza"; + CollectionsMarshal.AsSpan(list397)[0] = "liza"; questRoot42.Author = list397; - index = 5; - List list398 = new List(index); - CollectionsMarshal.SetCount(list398, index); - Span span398 = CollectionsMarshal.AsSpan(list398); - num = 0; - ref QuestSequence reference311 = ref span398[num]; + num = 5; + List list398 = new List(num); + CollectionsMarshal.SetCount(list398, num); + Span span158 = CollectionsMarshal.AsSpan(list398); + ref QuestSequence reference311 = ref span158[0]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj265.Steps = list399; reference311 = obj265; - num++; - ref QuestSequence reference312 = ref span398[num]; + ref QuestSequence reference312 = ref span158[1]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -418989,38 +344817,32 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.Interact, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191) + CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1048113u, new Vector3(-468.71143f, 7.866031f, 315.4497f), 1191) { StopDistance = 5f }; obj266.Steps = list400; reference312 = obj266; - num++; - ref QuestSequence reference313 = ref span398[num]; + ref QuestSequence reference313 = ref span158[2]; QuestSequence obj267 = new QuestSequence { Sequence = 2 }; - 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) + 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) { PickUpQuestId = new QuestId(5159) }; - num2++; - span401[num2] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.2030723f, -486.6255f), 1191) + span159[1] = new QuestStep(EInteractionType.Interact, 1048099u, new Vector3(-606.5919f, -2.2030723f, -486.6255f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj267.Steps = list401; reference313 = obj267; - num++; - ref QuestSequence reference314 = ref span398[num]; + ref QuestSequence reference314 = ref span158[3]; QuestSequence obj268 = new QuestSequence { Sequence = 3 @@ -419028,31 +344850,26 @@ public static class AssemblyQuestLoader num2 = 2; List list402 = new List(num2); CollectionsMarshal.SetCount(list402, num2); - Span span402 = CollectionsMarshal.AsSpan(list402); - index2 = 0; - span402[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) + Span span160 = CollectionsMarshal.AsSpan(list402); + span160[0] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) { PickUpQuestId = new QuestId(5156) }; - index2++; - span402[index2] = new QuestStep(EInteractionType.Interact, 1048116u, new Vector3(-296.71173f, 31.884527f, -671.77844f), 1191) + span160[1] = new QuestStep(EInteractionType.Interact, 1048116u, new Vector3(-296.71173f, 31.884527f, -671.77844f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj268.Steps = list402; reference314 = obj268; - num++; - ref QuestSequence reference315 = ref span398[num]; + ref QuestSequence reference315 = ref span158[4]; QuestSequence obj269 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -419065,16 +344882,13 @@ public static class AssemblyQuestLoader num = 1; List list404 = new List(num); CollectionsMarshal.SetCount(list404, num); - Span span404 = CollectionsMarshal.AsSpan(list404); - index = 0; - span404[index] = "liza"; + CollectionsMarshal.AsSpan(list404)[0] = "liza"; questRoot43.Author = list404; - index = 4; - List list405 = new List(index); - CollectionsMarshal.SetCount(list405, index); - Span span405 = CollectionsMarshal.AsSpan(list405); - num = 0; - ref QuestSequence reference316 = ref span405[num]; + num = 4; + List list405 = new List(num); + CollectionsMarshal.SetCount(list405, num); + Span span161 = CollectionsMarshal.AsSpan(list405); + ref QuestSequence reference316 = ref span161[0]; QuestSequence obj270 = new QuestSequence { Sequence = 0 @@ -419082,30 +344896,24 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048120u, new Vector3(-298.7259f, 31.838512f, -672.5719f), 1191) { StopDistance = 7f }; obj270.Steps = list406; reference316 = obj270; - num++; - ref QuestSequence reference317 = ref span405[num]; + ref QuestSequence reference317 = ref span161[1]; QuestSequence obj271 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj271.Steps = list407; reference317 = obj271; - num++; - ref QuestSequence reference318 = ref span405[num]; + ref QuestSequence reference318 = ref span161[2]; QuestSequence obj272 = new QuestSequence { Sequence = 2 @@ -419113,33 +344921,27 @@ public static class AssemblyQuestLoader num2 = 1; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - index2 = 0; - ref QuestStep reference319 = ref span408[index2]; + ref QuestStep reference319 = ref CollectionsMarshal.AsSpan(list408)[0]; QuestStep questStep47 = new QuestStep(EInteractionType.SinglePlayerDuty, 1048122u, new Vector3(647.60803f, 145.90308f, 679.1333f), 1191); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list409; questStep47.SinglePlayerDutyOptions = singlePlayerDutyOptions; num3 = 2; List list410 = new List(num3); CollectionsMarshal.SetCount(list410, num3); - Span span410 = CollectionsMarshal.AsSpan(list410); - index3 = 0; - span410[index3] = new DialogueChoice + Span span162 = CollectionsMarshal.AsSpan(list410); + span162[0] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", Prompt = new ExcelRef(357u), Answer = new ExcelRef(358u) }; - index3++; - span410[index3] = new DialogueChoice + span162[1] = new DialogueChoice { Type = EDialogChoiceType.List, ExcelSheet = "ContentTalk", @@ -419150,18 +344952,15 @@ public static class AssemblyQuestLoader reference319 = questStep47; obj272.Steps = list408; reference318 = obj272; - num++; - ref QuestSequence reference320 = ref span405[num]; + ref QuestSequence reference320 = ref span161[3]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -419174,16 +344973,13 @@ public static class AssemblyQuestLoader num = 1; List list412 = new List(num); CollectionsMarshal.SetCount(list412, num); - Span span412 = CollectionsMarshal.AsSpan(list412); - index = 0; - span412[index] = "liza"; + CollectionsMarshal.AsSpan(list412)[0] = "liza"; questRoot44.Author = list412; - index = 6; - List list413 = new List(index); - CollectionsMarshal.SetCount(list413, index); - Span span413 = CollectionsMarshal.AsSpan(list413); - num = 0; - ref QuestSequence reference321 = ref span413[num]; + num = 6; + List list413 = new List(num); + CollectionsMarshal.SetCount(list413, num); + Span span163 = CollectionsMarshal.AsSpan(list413); + ref QuestSequence reference321 = ref span163[0]; QuestSequence obj274 = new QuestSequence { Sequence = 0 @@ -419191,91 +344987,66 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - Span span414 = CollectionsMarshal.AsSpan(list414); - index2 = 0; - span414[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) + CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048124u, new Vector3(352.31543f, 70.0001f, 8.316162f), 1186) { StopDistance = 5f }; obj274.Steps = list414; reference321 = obj274; - num++; - ref QuestSequence reference322 = ref span413[num]; + ref QuestSequence reference322 = ref span163[1]; QuestSequence obj275 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list415 = new List(index2); - CollectionsMarshal.SetCount(list415, index2); - Span span415 = CollectionsMarshal.AsSpan(list415); - num2 = 0; - ref QuestStep reference323 = ref span415[num2]; + num2 = 3; + List list415 = new List(num2); + CollectionsMarshal.SetCount(list415, num2); + Span span164 = CollectionsMarshal.AsSpan(list415); + ref QuestStep reference323 = ref span164[0]; QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 1048126u, new Vector3(371.4198f, 50.75f, 185.19873f), 1186); - 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); + 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); questStep48.CompletionQuestVariablesFlags = list416; reference323 = questStep48; - num2++; - ref QuestStep reference324 = ref span415[num2]; + ref QuestStep reference324 = ref span164[1]; 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 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); + 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); questStep49.CompletionQuestVariablesFlags = list417; reference324 = questStep49; - num2++; - ref QuestStep reference325 = ref span415[num2]; + ref QuestStep reference325 = ref span164[2]; QuestStep questStep50 = new QuestStep(EInteractionType.Interact, 1048128u, new Vector3(339.22327f, 52.212578f, 186.57202f), 1186); - 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); + 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); questStep50.CompletionQuestVariablesFlags = list418; reference325 = questStep50; obj275.Steps = list415; reference322 = obj275; - num++; - ref QuestSequence reference326 = ref span413[num]; + ref QuestSequence reference326 = ref span163[2]; QuestSequence obj276 = new QuestSequence { Sequence = 2 @@ -419283,35 +345054,29 @@ public static class AssemblyQuestLoader num2 = 2; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span419 = CollectionsMarshal.AsSpan(list419); - index2 = 0; - span419[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + Span span168 = CollectionsMarshal.AsSpan(list419); + span168[0] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207 }; - index2++; - span419[index2] = new QuestStep(EInteractionType.Interact, 1048129u, new Vector3(0.045776367f, -3.0733645E-08f, 5.5389404f), 1207) + span168[1] = new QuestStep(EInteractionType.Interact, 1048129u, new Vector3(0.045776367f, -3.0733645E-08f, 5.5389404f), 1207) { StopDistance = 7f }; obj276.Steps = list419; reference326 = obj276; - num++; - ref QuestSequence reference327 = ref span413[num]; + ref QuestSequence reference327 = ref span163[3]; QuestSequence obj277 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj277.Steps = list420; reference327 = obj277; - num++; - ref QuestSequence reference328 = ref span413[num]; + ref QuestSequence reference328 = ref span163[4]; QuestSequence obj278 = new QuestSequence { Sequence = 4 @@ -419319,23 +345084,18 @@ public static class AssemblyQuestLoader num2 = 1; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - Span span421 = CollectionsMarshal.AsSpan(list421); - index2 = 0; - span421[index2] = new QuestStep(EInteractionType.Interact, 1048133u, new Vector3(-9.87262f, 0f, 4.257263f), 1207); + CollectionsMarshal.AsSpan(list421)[0] = new QuestStep(EInteractionType.Interact, 1048133u, new Vector3(-9.87262f, 0f, 4.257263f), 1207); obj278.Steps = list421; reference328 = obj278; - num++; - ref QuestSequence reference329 = ref span413[num]; + ref QuestSequence reference329 = ref span163[5]; QuestSequence obj279 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -419348,16 +345108,13 @@ public static class AssemblyQuestLoader num = 1; List list423 = new List(num); CollectionsMarshal.SetCount(list423, num); - Span span423 = CollectionsMarshal.AsSpan(list423); - index = 0; - span423[index] = "liza"; + CollectionsMarshal.AsSpan(list423)[0] = "liza"; questRoot45.Author = list423; - index = 3; - List list424 = new List(index); - CollectionsMarshal.SetCount(list424, index); - Span span424 = CollectionsMarshal.AsSpan(list424); - num = 0; - ref QuestSequence reference330 = ref span424[num]; + num = 3; + List list424 = new List(num); + CollectionsMarshal.SetCount(list424, num); + Span span169 = CollectionsMarshal.AsSpan(list424); + ref QuestSequence reference330 = ref span169[0]; QuestSequence obj280 = new QuestSequence { Sequence = 0 @@ -419365,33 +345122,27 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - Span span425 = CollectionsMarshal.AsSpan(list425); - index2 = 0; - span425[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) + CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048132u, new Vector3(-8.1026f, 0f, 2.6397705f), 1207) { StopDistance = 5f }; obj280.Steps = list425; reference330 = obj280; - num++; - ref QuestSequence reference331 = ref span424[num]; + ref QuestSequence reference331 = ref span169[1]; QuestSequence obj281 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj281.Steps = list426; reference331 = obj281; - num++; - ref QuestSequence reference332 = ref span424[num]; + ref QuestSequence reference332 = ref span169[2]; QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue @@ -419399,9 +345150,7 @@ public static class AssemblyQuestLoader num2 = 1; List list427 = new List(num2); CollectionsMarshal.SetCount(list427, num2); - Span span427 = CollectionsMarshal.AsSpan(list427); - index2 = 0; - span427[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191) + CollectionsMarshal.AsSpan(list427)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048135u, new Vector3(-293.84296f, 45.884224f, -816.8002f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -419414,30 +345163,24 @@ public static class AssemblyQuestLoader num = 1; List list428 = new List(num); CollectionsMarshal.SetCount(list428, num); - Span span428 = CollectionsMarshal.AsSpan(list428); - index = 0; - span428[index] = "liza"; + CollectionsMarshal.AsSpan(list428)[0] = "liza"; questRoot46.Author = list428; - index = 9; - List list429 = new List(index); - CollectionsMarshal.SetCount(list429, index); - Span span429 = CollectionsMarshal.AsSpan(list429); - num = 0; - ref QuestSequence reference333 = ref span429[num]; + num = 9; + List list429 = new List(num); + CollectionsMarshal.SetCount(list429, num); + Span span170 = CollectionsMarshal.AsSpan(list429); + ref QuestSequence reference333 = ref span170[0]; QuestSequence obj283 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj283.Steps = list430; reference333 = obj283; - num++; - ref QuestSequence reference334 = ref span429[num]; + ref QuestSequence reference334 = ref span170[1]; QuestSequence obj284 = new QuestSequence { Sequence = 1 @@ -419445,28 +345188,23 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - 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) + 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) { Fly = true }; obj284.Steps = list431; reference334 = obj284; - num++; - ref QuestSequence reference335 = ref span429[num]; + ref QuestSequence reference335 = ref span170[2]; QuestSequence obj285 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list432 = new List(num2); + CollectionsMarshal.SetCount(list432, num2); + CollectionsMarshal.AsSpan(list432)[0] = new QuestStep(EInteractionType.Duty, null, null, 1191) { DutyOptions = new DutyOptions { @@ -419476,13 +345214,11 @@ public static class AssemblyQuestLoader }; obj285.Steps = list432; reference335 = obj285; - num++; - span429[num] = new QuestSequence + span170[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference336 = ref span429[num]; + ref QuestSequence reference336 = ref span170[4]; QuestSequence obj286 = new QuestSequence { Sequence = 4 @@ -419490,9 +345226,7 @@ public static class AssemblyQuestLoader num2 = 1; List list433 = new List(num2); CollectionsMarshal.SetCount(list433, num2); - Span span433 = CollectionsMarshal.AsSpan(list433); - index2 = 0; - ref QuestStep reference337 = ref span433[index2]; + ref QuestStep reference337 = ref CollectionsMarshal.AsSpan(list433)[0]; QuestStep questStep51 = new QuestStep(EInteractionType.Duty, null, null, 1220); DutyOptions obj287 = new DutyOptions { @@ -419501,38 +345235,31 @@ public static class AssemblyQuestLoader num3 = 1; List list434 = new List(num3); CollectionsMarshal.SetCount(list434, num3); - Span span434 = CollectionsMarshal.AsSpan(list434); - index3 = 0; - span434[index3] = "No VBM module"; + CollectionsMarshal.AsSpan(list434)[0] = "No VBM module"; obj287.Notes = list434; questStep51.DutyOptions = obj287; reference337 = questStep51; obj286.Steps = list433; reference336 = obj286; - num++; - span429[num] = new QuestSequence + span170[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference338 = ref span429[num]; + ref QuestSequence reference338 = ref span170[6]; QuestSequence obj288 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj288.Steps = list435; reference338 = obj288; - num++; - ref QuestSequence reference339 = ref span429[num]; + ref QuestSequence reference339 = ref span170[7]; QuestSequence obj289 = new QuestSequence { Sequence = 7 @@ -419540,26 +345267,21 @@ public static class AssemblyQuestLoader num2 = 1; List list436 = new List(num2); CollectionsMarshal.SetCount(list436, num2); - Span span436 = CollectionsMarshal.AsSpan(list436); - index2 = 0; - span436[index2] = new QuestStep(EInteractionType.Interact, 1048156u, new Vector3(104.57007f, 0f, 105.79077f), 1220) + CollectionsMarshal.AsSpan(list436)[0] = new QuestStep(EInteractionType.Interact, 1048156u, new Vector3(104.57007f, 0f, 105.79077f), 1220) { StopDistance = 6f }; obj289.Steps = list436; reference339 = obj289; - num++; - ref QuestSequence reference340 = ref span429[num]; + ref QuestSequence reference340 = ref span170[8]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj290.Steps = list437; reference340 = obj290; questRoot46.QuestSequence = list429; @@ -419569,16 +345291,13 @@ public static class AssemblyQuestLoader num = 1; List list438 = new List(num); CollectionsMarshal.SetCount(list438, num); - Span span438 = CollectionsMarshal.AsSpan(list438); - index = 0; - span438[index] = "liza"; + CollectionsMarshal.AsSpan(list438)[0] = "liza"; questRoot47.Author = list438; - index = 7; - List list439 = new List(index); - CollectionsMarshal.SetCount(list439, index); - Span span439 = CollectionsMarshal.AsSpan(list439); - num = 0; - ref QuestSequence reference341 = ref span439[num]; + num = 7; + List list439 = new List(num); + CollectionsMarshal.SetCount(list439, num); + Span span172 = CollectionsMarshal.AsSpan(list439); + ref QuestSequence reference341 = ref span172[0]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -419586,23 +345305,18 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - Span span440 = CollectionsMarshal.AsSpan(list440); - index2 = 0; - span440[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); + CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048158u, new Vector3(-4.837158f, -3.4458935E-08f, 5.8441772f), 1207); obj291.Steps = list440; reference341 = obj291; - num++; - ref QuestSequence reference342 = ref span439[num]; + ref QuestSequence reference342 = ref span172[1]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -419613,8 +345327,7 @@ public static class AssemblyQuestLoader }; obj292.Steps = list441; reference342 = obj292; - num++; - ref QuestSequence reference343 = ref span439[num]; + ref QuestSequence reference343 = ref span172[2]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -419622,27 +345335,21 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - Span span442 = CollectionsMarshal.AsSpan(list442); - index2 = 0; - span442[index2] = new QuestStep(EInteractionType.Interact, 1047794u, new Vector3(-32.974792f, 95.5f, -79.02649f), 1185); + CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1047794u, new Vector3(-32.974792f, 95.5f, -79.02649f), 1185); obj293.Steps = list442; reference343 = obj293; - num++; - ref QuestSequence reference344 = ref span439[num]; + ref QuestSequence reference344 = ref span172[3]; QuestSequence obj294 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj294.Steps = list443; reference344 = obj294; - num++; - ref QuestSequence reference345 = ref span439[num]; + ref QuestSequence reference345 = ref span172[4]; QuestSequence obj295 = new QuestSequence { Sequence = 4 @@ -419650,27 +345357,21 @@ public static class AssemblyQuestLoader num2 = 1; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span444 = CollectionsMarshal.AsSpan(list444); - index2 = 0; - span444[index2] = new QuestStep(EInteractionType.Interact, 1047800u, new Vector3(42.038574f, 46.999996f, -290.15033f), 1185); + CollectionsMarshal.AsSpan(list444)[0] = new QuestStep(EInteractionType.Interact, 1047800u, new Vector3(42.038574f, 46.999996f, -290.15033f), 1185); obj295.Steps = list444; reference345 = obj295; - num++; - ref QuestSequence reference346 = ref span439[num]; + ref QuestSequence reference346 = ref span172[5]; QuestSequence obj296 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj296.Steps = list445; reference346 = obj296; - num++; - ref QuestSequence reference347 = ref span439[num]; + ref QuestSequence reference347 = ref span172[6]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue @@ -419678,9 +345379,7 @@ public static class AssemblyQuestLoader num2 = 1; List list446 = new List(num2); CollectionsMarshal.SetCount(list446, num2); - Span span446 = CollectionsMarshal.AsSpan(list446); - index2 = 0; - span446[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); + CollectionsMarshal.AsSpan(list446)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047803u, new Vector3(123.552246f, 42f, -341.75635f), 1185); obj297.Steps = list446; reference347 = obj297; questRoot47.QuestSequence = list439; @@ -419690,30 +345389,24 @@ public static class AssemblyQuestLoader num = 1; List list447 = new List(num); CollectionsMarshal.SetCount(list447, num); - Span span447 = CollectionsMarshal.AsSpan(list447); - index = 0; - span447[index] = "liza"; + CollectionsMarshal.AsSpan(list447)[0] = "liza"; questRoot48.Author = list447; - index = 3; - List list448 = new List(index); - CollectionsMarshal.SetCount(list448, index); - Span span448 = CollectionsMarshal.AsSpan(list448); - num = 0; - ref QuestSequence reference348 = ref span448[num]; + num = 3; + List list448 = new List(num); + CollectionsMarshal.SetCount(list448, num); + Span span173 = CollectionsMarshal.AsSpan(list448); + ref QuestSequence reference348 = ref span173[0]; QuestSequence obj298 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj298.Steps = list449; reference348 = obj298; - num++; - ref QuestSequence reference349 = ref span448[num]; + ref QuestSequence reference349 = ref span173[1]; QuestSequence obj299 = new QuestSequence { Sequence = 1 @@ -419721,26 +345414,21 @@ public static class AssemblyQuestLoader num2 = 1; List list450 = new List(num2); CollectionsMarshal.SetCount(list450, num2); - Span span450 = CollectionsMarshal.AsSpan(list450); - index2 = 0; - span450[index2] = new QuestStep(EInteractionType.Interact, 1047806u, new Vector3(-179.55298f, 120.75f, -332.87555f), 1185) + CollectionsMarshal.AsSpan(list450)[0] = new QuestStep(EInteractionType.Interact, 1047806u, new Vector3(-179.55298f, 120.75f, -332.87555f), 1185) { StopDistance = 7f }; obj299.Steps = list450; reference349 = obj299; - num++; - ref QuestSequence reference350 = ref span448[num]; + ref QuestSequence reference350 = ref span173[2]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Comment = "Stops at the place where you can buy Lv99 gear", AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -419759,16 +345447,13 @@ public static class AssemblyQuestLoader num = 1; List list452 = new List(num); CollectionsMarshal.SetCount(list452, num); - Span span452 = CollectionsMarshal.AsSpan(list452); - index = 0; - span452[index] = "liza"; + CollectionsMarshal.AsSpan(list452)[0] = "liza"; questRoot49.Author = list452; - index = 9; - List list453 = new List(index); - CollectionsMarshal.SetCount(list453, index); - Span span453 = CollectionsMarshal.AsSpan(list453); - num = 0; - ref QuestSequence reference351 = ref span453[num]; + num = 9; + List list453 = new List(num); + CollectionsMarshal.SetCount(list453, num); + Span span174 = CollectionsMarshal.AsSpan(list453); + ref QuestSequence reference351 = ref span174[0]; QuestSequence obj301 = new QuestSequence { Sequence = 0 @@ -419776,23 +345461,19 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - Span span454 = CollectionsMarshal.AsSpan(list454); - index2 = 0; - span454[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047810u, new Vector3(-47.470886f, -10.00001f, 98.649536f), 1185); + CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047810u, new Vector3(-47.470886f, -10.00001f, 98.649536f), 1185); obj301.Steps = list454; reference351 = obj301; - num++; - ref QuestSequence reference352 = ref span453[num]; + ref QuestSequence reference352 = ref span174[1]; QuestSequence obj302 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list455 = new List(index2); - CollectionsMarshal.SetCount(list455, index2); - Span span455 = CollectionsMarshal.AsSpan(list455); - num2 = 0; - ref QuestStep reference353 = ref span455[num2]; + num2 = 3; + List list455 = new List(num2); + CollectionsMarshal.SetCount(list455, num2); + Span span175 = CollectionsMarshal.AsSpan(list455); + ref QuestStep reference353 = ref span175[0]; QuestStep obj303 = new QuestStep(EInteractionType.Interact, 1048029u, new Vector3(-711.1162f, -199.5873f, 624.1703f), 1189) { StopDistance = 5f, @@ -419806,12 +345487,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list456 = new List(index3); - CollectionsMarshal.SetCount(list456, index3); - Span span456 = CollectionsMarshal.AsSpan(list456); - num3 = 0; - span456[num3] = new DialogueChoice + num3 = 1; + List list456 = new List(num3); + CollectionsMarshal.SetCount(list456, num3); + CollectionsMarshal.AsSpan(list456)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "EventPathMove", @@ -419819,8 +345498,7 @@ public static class AssemblyQuestLoader }; obj303.DialogueChoices = list456; reference353 = obj303; - num2++; - span455[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.30396f, -153.01865f, 529.2467f), 1189) + span175[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-573.30396f, -153.01865f, 529.2467f), 1189) { Fly = true, SkipConditions = new SkipConditions @@ -419831,20 +345509,17 @@ public static class AssemblyQuestLoader } } }; - num2++; - span455[num2] = new QuestStep(EInteractionType.Interact, 1047813u, new Vector3(-826.32184f, -297.8752f, 875.15063f), 1189) + span175[2] = new QuestStep(EInteractionType.Interact, 1047813u, new Vector3(-826.32184f, -297.8752f, 875.15063f), 1189) { Fly = true }; obj302.Steps = list455; reference352 = obj302; - num++; - span453[num] = new QuestSequence + span174[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference354 = ref span453[num]; + ref QuestSequence reference354 = ref span174[3]; QuestSequence obj304 = new QuestSequence { Sequence = 3 @@ -419852,39 +345527,32 @@ public static class AssemblyQuestLoader num2 = 1; List list457 = new List(num2); CollectionsMarshal.SetCount(list457, num2); - Span span457 = CollectionsMarshal.AsSpan(list457); - index2 = 0; - span457[index2] = new QuestStep(EInteractionType.Interact, 1047818u, new Vector3(-0.9918823f, 0.20000042f, -51.499268f), 1222) + CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1047818u, new Vector3(-0.9918823f, 0.20000042f, -51.499268f), 1222) { StopDistance = 7f }; obj304.Steps = list457; reference354 = obj304; - num++; - span453[num] = new QuestSequence + span174[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference355 = ref span453[num]; + ref QuestSequence reference355 = ref span174[5]; QuestSequence obj305 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 7f, DisableNavmesh = true }; obj305.Steps = list458; reference355 = obj305; - num++; - ref QuestSequence reference356 = ref span453[num]; + ref QuestSequence reference356 = ref span174[6]; QuestSequence obj306 = new QuestSequence { Sequence = 6 @@ -419892,35 +345560,28 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - Span span459 = CollectionsMarshal.AsSpan(list459); - index2 = 0; - span459[index2] = new QuestStep(EInteractionType.Interact, 1047833u, new Vector3(-26.657532f, 53.200012f, 794.67444f), 1192); + CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1047833u, new Vector3(-26.657532f, 53.200012f, 794.67444f), 1192); obj306.Steps = list459; reference356 = obj306; - num++; - ref QuestSequence reference357 = ref span453[num]; + ref QuestSequence reference357 = ref span174[7]; QuestSequence obj307 = new QuestSequence { Sequence = 7 }; - 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) + 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) { DisableNavmesh = true, Aetheryte = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - 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); + 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); obj307.Steps = list460; reference357 = obj307; - num++; - ref QuestSequence reference358 = ref span453[num]; + ref QuestSequence reference358 = ref span174[8]; QuestSequence obj308 = new QuestSequence { Sequence = byte.MaxValue @@ -419928,9 +345589,7 @@ public static class AssemblyQuestLoader num2 = 1; List list461 = new List(num2); CollectionsMarshal.SetCount(list461, num2); - Span span461 = CollectionsMarshal.AsSpan(list461); - index2 = 0; - span461[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) + CollectionsMarshal.AsSpan(list461)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047842u, new Vector3(0.015197754f, 50.124947f, 361.95923f), 1192) { StopDistance = 7f }; @@ -419943,33 +345602,27 @@ public static class AssemblyQuestLoader num = 1; List list462 = new List(num); CollectionsMarshal.SetCount(list462, num); - Span span462 = CollectionsMarshal.AsSpan(list462); - index = 0; - span462[index] = "liza"; + CollectionsMarshal.AsSpan(list462)[0] = "liza"; questRoot50.Author = list462; - index = 7; - List list463 = new List(index); - CollectionsMarshal.SetCount(list463, index); - Span span463 = CollectionsMarshal.AsSpan(list463); - num = 0; - ref QuestSequence reference359 = ref span463[num]; + num = 7; + List list463 = new List(num); + CollectionsMarshal.SetCount(list463, num); + Span span177 = CollectionsMarshal.AsSpan(list463); + ref QuestSequence reference359 = ref span177[0]; QuestSequence obj309 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj309.Steps = list464; reference359 = obj309; - num++; - ref QuestSequence reference360 = ref span463[num]; + ref QuestSequence reference360 = ref span177[1]; QuestSequence obj310 = new QuestSequence { Sequence = 1 @@ -419977,30 +345630,24 @@ public static class AssemblyQuestLoader num2 = 1; List list465 = new List(num2); CollectionsMarshal.SetCount(list465, num2); - Span span465 = CollectionsMarshal.AsSpan(list465); - index2 = 0; - span465[index2] = new QuestStep(EInteractionType.Interact, 2013770u, new Vector3(-0.045776367f, 53.177612f, 772.8236f), 1192) + CollectionsMarshal.AsSpan(list465)[0] = new QuestStep(EInteractionType.Interact, 2013770u, new Vector3(-0.045776367f, 53.177612f, 772.8236f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj310.Steps = list465; reference360 = obj310; - num++; - ref QuestSequence reference361 = ref span463[num]; + ref QuestSequence reference361 = ref span177[2]; QuestSequence obj311 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj311.Steps = list466; reference361 = obj311; - num++; - ref QuestSequence reference362 = ref span463[num]; + ref QuestSequence reference362 = ref span177[3]; QuestSequence obj312 = new QuestSequence { Sequence = 3 @@ -420008,91 +345655,66 @@ public static class AssemblyQuestLoader num2 = 1; List list467 = new List(num2); CollectionsMarshal.SetCount(list467, num2); - Span span467 = CollectionsMarshal.AsSpan(list467); - index2 = 0; - span467[index2] = new QuestStep(EInteractionType.Interact, 1047855u, new Vector3(-131.12079f, 6.380001f, 551.75085f), 1192) + CollectionsMarshal.AsSpan(list467)[0] = new QuestStep(EInteractionType.Interact, 1047855u, new Vector3(-131.12079f, 6.380001f, 551.75085f), 1192) { StopDistance = 6f }; obj312.Steps = list467; reference362 = obj312; - num++; - ref QuestSequence reference363 = ref span463[num]; + ref QuestSequence reference363 = ref span177[4]; QuestSequence obj313 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list468 = new List(index2); - CollectionsMarshal.SetCount(list468, index2); - Span span468 = CollectionsMarshal.AsSpan(list468); - num2 = 0; - ref QuestStep reference364 = ref span468[num2]; + num2 = 3; + List list468 = new List(num2); + CollectionsMarshal.SetCount(list468, num2); + Span span178 = CollectionsMarshal.AsSpan(list468); + ref QuestStep reference364 = ref span178[0]; 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 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); + 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); questStep52.CompletionQuestVariablesFlags = list469; reference364 = questStep52; - num2++; - ref QuestStep reference365 = ref span468[num2]; + ref QuestStep reference365 = ref span178[1]; QuestStep questStep53 = new QuestStep(EInteractionType.Interact, 1047861u, new Vector3(-205.52374f, 6.4019995f, 555.01636f), 1192); - 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); + 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); questStep53.CompletionQuestVariablesFlags = list470; reference365 = questStep53; - num2++; - ref QuestStep reference366 = ref span468[num2]; + ref QuestStep reference366 = ref span178[2]; 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 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); + 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); questStep54.CompletionQuestVariablesFlags = list471; reference366 = questStep54; obj313.Steps = list468; reference363 = obj313; - num++; - ref QuestSequence reference367 = ref span463[num]; + ref QuestSequence reference367 = ref span177[5]; QuestSequence obj314 = new QuestSequence { Sequence = 5 @@ -420100,28 +345722,23 @@ public static class AssemblyQuestLoader num2 = 2; List list472 = new List(num2); CollectionsMarshal.SetCount(list472, num2); - 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) + 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) { StopDistance = 5f }; obj314.Steps = list472; reference367 = obj314; - num++; - ref QuestSequence reference368 = ref span463[num]; + ref QuestSequence reference368 = ref span177[6]; QuestSequence obj315 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj315.Steps = list473; reference368 = obj315; questRoot50.QuestSequence = list463; @@ -420135,16 +345752,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 11; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 11; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -420152,27 +345766,21 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047869u, new Vector3(-266.0716f, 0.049999483f, 533.77576f), 1192); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -420180,9 +345788,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestStep obj4 = new QuestStep(EInteractionType.Combat, 2013771u, new Vector3(-270.924f, -0.015319824f, 610.7423f), 1192) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -420190,29 +345796,23 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = 17704u; + CollectionsMarshal.AsSpan(list6)[0] = 17704u; obj4.KillEnemyDataIds = list6; reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -420220,30 +345820,24 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.Interact, 1047871u, new Vector3(-289.78418f, 0.049857892f, 523.9795f), 1192); + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.Interact, 1047871u, new Vector3(-289.78418f, 0.049857892f, 523.9795f), 1192); obj6.Steps = list8; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 5f }; obj7.Steps = list9; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[6]; QuestSequence obj8 = new QuestSequence { Sequence = 6 @@ -420251,76 +345845,56 @@ public static class AssemblyQuestLoader num2 = 4; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - 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) + 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) { AetherCurrentId = 2818483u }; - index2++; - span10[index2] = new QuestStep(EInteractionType.Interact, 1047874u, new Vector3(-440.0855f, -0.81529194f, 458.4878f), 1192); + span2[3] = new QuestStep(EInteractionType.Interact, 1047874u, new Vector3(-440.0855f, -0.81529194f, 458.4878f), 1192); obj8.Steps = list10; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span2[num]; + ref QuestSequence reference9 = ref span[7]; QuestSequence obj9 = new QuestSequence { Sequence = 7 }; - index2 = 2; - List list11 = new List(index2); - CollectionsMarshal.SetCount(list11, index2); - Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - ref QuestStep reference10 = ref span11[num2]; + num2 = 2; + List list11 = new List(num2); + CollectionsMarshal.SetCount(list11, num2); + Span span3 = CollectionsMarshal.AsSpan(list11); + ref QuestStep reference10 = ref span3[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 2013773u, new Vector3(-433.43256f, 1.3580322f, 500.2975f), 1192); - 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); + 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); questStep.CompletionQuestVariablesFlags = list12; reference10 = questStep; - num2++; - ref QuestStep reference11 = ref span11[num2]; + ref QuestStep reference11 = ref span3[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list13; reference11 = questStep2; obj9.Steps = list11; reference9 = obj9; - num++; - ref QuestSequence reference12 = ref span2[num]; + ref QuestSequence reference12 = ref span[8]; QuestSequence obj10 = new QuestSequence { Sequence = 8 @@ -420328,39 +345902,30 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1047876u, new Vector3(-441.48932f, -0.8153026f, 459.1897f), 1192); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1047876u, new Vector3(-441.48932f, -0.8153026f, 459.1897f), 1192); obj10.Steps = list14; reference12 = obj10; - num++; - ref QuestSequence reference13 = ref span2[num]; + ref QuestSequence reference13 = ref span[9]; QuestSequence obj11 = new QuestSequence { Sequence = 9 }; - 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) + 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) { AetherCurrentId = 2818479u }; - num2++; - ref QuestStep reference14 = ref span15[num2]; + ref QuestStep reference14 = ref span6[3]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192); - index3 = 1; - List list16 = new List(index3); - CollectionsMarshal.SetCount(list16, index3); - Span span16 = CollectionsMarshal.AsSpan(list16); - num3 = 0; - span16[num3] = new DialogueChoice + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF105_04950_SYSTEM_000_197") @@ -420369,8 +345934,7 @@ public static class AssemblyQuestLoader reference14 = questStep3; obj11.Steps = list15; reference13 = obj11; - num++; - ref QuestSequence reference15 = ref span2[num]; + ref QuestSequence reference15 = ref span[10]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -420378,9 +345942,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047879u, new Vector3(-701.9303f, 14.9f, 308.76624f), 1192) { StopDistance = 5f }; @@ -420393,33 +345955,27 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "liza"; + CollectionsMarshal.AsSpan(list18)[0] = "liza"; questRoot2.Author = list18; - index = 7; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference16 = ref span19[num]; + num = 7; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span7 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference16 = ref span7[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj13.Steps = list20; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span19[num]; + ref QuestSequence reference17 = ref span7[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -420427,96 +345983,71 @@ public static class AssemblyQuestLoader num2 = 2; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - span21[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192) + Span span8 = CollectionsMarshal.AsSpan(list21); + span8[0] = new QuestStep(EInteractionType.AcceptQuest, 1050617u, new Vector3(-631.4031f, 2.9305653E-07f, 497.12354f), 1192) { PickUpQuestId = new QuestId(5174) }; - index2++; - span21[index2] = new QuestStep(EInteractionType.Interact, 1047884u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) + span8[1] = new QuestStep(EInteractionType.Interact, 1047884u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj14.Steps = list21; reference17 = obj14; - num++; - ref QuestSequence reference18 = ref span19[num]; + ref QuestSequence reference18 = ref span7[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list22 = new List(index2); - CollectionsMarshal.SetCount(list22, index2); - Span span22 = CollectionsMarshal.AsSpan(list22); - num2 = 0; - ref QuestStep reference19 = ref span22[num2]; + num2 = 3; + List list22 = new List(num2); + CollectionsMarshal.SetCount(list22, num2); + Span span9 = CollectionsMarshal.AsSpan(list22); + ref QuestStep reference19 = ref span9[0]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list23; reference19 = questStep4; - num2++; - ref QuestStep reference20 = ref span22[num2]; + ref QuestStep reference20 = ref span9[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2013774u, new Vector3(268.36035f, -0.7477417f, 628.1376f), 1192); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list24; reference20 = questStep5; - num2++; - ref QuestStep reference21 = ref span22[num2]; + ref QuestStep reference21 = ref span9[2]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list25; reference21 = questStep6; obj15.Steps = list22; reference18 = obj15; - num++; - ref QuestSequence reference22 = ref span19[num]; + ref QuestSequence reference22 = ref span7[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 @@ -420524,45 +346055,37 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 2013776u, new Vector3(304.95142f, -0.015319824f, 608.02625f), 1192); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 2013776u, new Vector3(304.95142f, -0.015319824f, 608.02625f), 1192); obj16.Steps = list26; reference22 = obj16; - num++; - ref QuestSequence reference23 = ref span19[num]; + ref QuestSequence reference23 = ref span7[4]; QuestSequence obj17 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818484u }; - num2++; - ref QuestStep reference24 = ref span27[num2]; + ref QuestStep reference24 = ref span13[1]; QuestStep obj18 = new QuestStep(EInteractionType.Combat, null, new Vector3(383.26807f, -0.106494784f, 551.68506f), 1192) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list28 = new List(index3); - CollectionsMarshal.SetCount(list28, index3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - span28[num3] = 17705u; + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = 17705u; obj18.KillEnemyDataIds = list28; reference24 = obj18; obj17.Steps = list27; reference23 = obj17; - num++; - ref QuestSequence reference25 = ref span19[num]; + ref QuestSequence reference25 = ref span7[5]; QuestSequence obj19 = new QuestSequence { Sequence = 5 @@ -420570,26 +346093,21 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1047891u, new Vector3(381.39917f, -0.1618917f, 557.6714f), 1192) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1047891u, new Vector3(381.39917f, -0.1618917f, 557.6714f), 1192) { StopDistance = 7f }; obj19.Steps = list29; reference25 = obj19; - num++; - ref QuestSequence reference26 = ref span19[num]; + ref QuestSequence reference26 = ref span7[6]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -420602,16 +346120,13 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "liza"; + CollectionsMarshal.AsSpan(list31)[0] = "liza"; questRoot3.Author = list31; - index = 8; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference27 = ref span32[num]; + num = 8; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span14 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference27 = ref span14[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -420619,32 +346134,26 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047898u, new Vector3(383.38293f, -0.15743838f, 554.8638f), 1192) { StopDistance = 7f }; obj21.Steps = list33; reference27 = obj21; - num++; - ref QuestSequence reference28 = ref span32[num]; + ref QuestSequence reference28 = ref span14[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj22.Steps = list34; reference28 = obj22; - num++; - ref QuestSequence reference29 = ref span32[num]; + ref QuestSequence reference29 = ref span14[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -420652,155 +346161,109 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); obj23.Steps = list35; reference29 = obj23; - num++; - ref QuestSequence reference30 = ref span32[num]; + ref QuestSequence reference30 = ref span14[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - index2 = 6; - List list36 = new List(index2); - CollectionsMarshal.SetCount(list36, index2); - Span span36 = CollectionsMarshal.AsSpan(list36); - num2 = 0; - ref QuestStep reference31 = ref span36[num2]; + num2 = 6; + List list36 = new List(num2); + CollectionsMarshal.SetCount(list36, num2); + Span span16 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference31 = ref span16[0]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list37; reference31 = questStep7; - num2++; - ref QuestStep reference32 = ref span36[num2]; + ref QuestStep reference32 = ref span16[1]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1047902u, new Vector3(365.9265f, 22.685093f, 359.21265f), 1192); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list38; reference32 = questStep8; - num2++; - ref QuestStep reference33 = ref span36[num2]; + ref QuestStep reference33 = ref span16[2]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list39; reference33 = questStep9; - num2++; - ref QuestStep reference34 = ref span36[num2]; + ref QuestStep reference34 = ref span16[3]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1047901u, new Vector3(316.15173f, 22.64806f, 399.89307f), 1192); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list40; reference34 = questStep10; - num2++; - ref QuestStep reference35 = ref span36[num2]; + ref QuestStep reference35 = ref span16[4]; 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 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list41; skipConditions.StepIf = skipStepConditions; questStep11.SkipConditions = skipConditions; reference35 = questStep11; - num2++; - ref QuestStep reference36 = ref span36[num2]; + ref QuestStep reference36 = ref span16[5]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1047904u, new Vector3(346.66968f, 58.000057f, 391.6228f), 1192); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list42; reference36 = questStep12; obj24.Steps = list36; reference30 = obj24; - num++; - ref QuestSequence reference37 = ref span32[num]; + ref QuestSequence reference37 = ref span14[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -420808,32 +346271,26 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1047900u, new Vector3(354.5432f, 23.427383f, 397.75684f), 1192); obj25.Steps = list43; reference37 = obj25; - num++; - ref QuestSequence reference38 = ref span32[num]; + ref QuestSequence reference38 = ref span14[5]; QuestSequence obj26 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetherCurrentId = 2818485u }; - num2++; - span44[num2] = new QuestStep(EInteractionType.Interact, 2013778u, new Vector3(699.0615f, 40.299072f, 377.9812f), 1192); + span23[1] = new QuestStep(EInteractionType.Interact, 2013778u, new Vector3(699.0615f, 40.299072f, 377.9812f), 1192); obj26.Steps = list44; reference38 = obj26; - num++; - ref QuestSequence reference39 = ref span32[num]; + ref QuestSequence reference39 = ref span14[6]; QuestSequence obj27 = new QuestSequence { Sequence = 6 @@ -420841,21 +346298,17 @@ public static class AssemblyQuestLoader num2 = 2; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013975u, new Vector3(753.3696f, 45.09243f, 347.0511f), 1192) + Span span24 = CollectionsMarshal.AsSpan(list45); + span24[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013975u, new Vector3(753.3696f, 45.09243f, 347.0511f), 1192) { AetherCurrentId = 2818480u }; - index2++; - ref QuestStep reference40 = ref span45[index2]; + ref QuestStep reference40 = ref span24[1]; 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); - Span span46 = CollectionsMarshal.AsSpan(list46); - index3 = 0; - span46[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF107_04952_SYSTEM_100_174") @@ -420864,18 +346317,15 @@ public static class AssemblyQuestLoader reference40 = questStep13; obj27.Steps = list45; reference39 = obj27; - num++; - ref QuestSequence reference41 = ref span32[num]; + ref QuestSequence reference41 = ref span14[7]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -420888,16 +346338,13 @@ public static class AssemblyQuestLoader num = 1; List list48 = new List(num); CollectionsMarshal.SetCount(list48, num); - Span span48 = CollectionsMarshal.AsSpan(list48); - index = 0; - span48[index] = "liza"; + CollectionsMarshal.AsSpan(list48)[0] = "liza"; questRoot4.Author = list48; - index = 5; - List list49 = new List(index); - CollectionsMarshal.SetCount(list49, index); - Span span49 = CollectionsMarshal.AsSpan(list49); - num = 0; - ref QuestSequence reference42 = ref span49[num]; + num = 5; + List list49 = new List(num); + CollectionsMarshal.SetCount(list49, num); + Span span25 = CollectionsMarshal.AsSpan(list49); + ref QuestSequence reference42 = ref span25[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -420905,26 +346352,22 @@ public static class AssemblyQuestLoader num2 = 1; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047915u, new Vector3(746.5476f, -12.716527f, 216.7544f), 1192) + CollectionsMarshal.AsSpan(list50)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047915u, new Vector3(746.5476f, -12.716527f, 216.7544f), 1192) { StopDistance = 5f }; obj29.Steps = list50; reference42 = obj29; - num++; - ref QuestSequence reference43 = ref span49[num]; + ref QuestSequence reference43 = ref span25[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list51 = new List(index2); - CollectionsMarshal.SetCount(list51, index2); - Span span51 = CollectionsMarshal.AsSpan(list51); - num2 = 0; - ref QuestStep reference44 = ref span51[num2]; + num2 = 3; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + Span span26 = CollectionsMarshal.AsSpan(list51); + ref QuestStep reference44 = ref span26[0]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { TargetTerritoryId = (ushort)1192, @@ -420932,39 +346375,32 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - index3 = 1; - List list52 = new List(index3); - CollectionsMarshal.SetCount(list52, index3); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = new QuestId(5176); + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new QuestId(5176); skipStepConditions2.QuestsCompleted = list52; skipConditions2.StepIf = skipStepConditions2; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); num3 = 1; List list53 = new List(num3); CollectionsMarshal.SetCount(list53, num3); - Span span53 = CollectionsMarshal.AsSpan(list53); - index3 = 0; - span53[index3] = new QuestId(5176); + CollectionsMarshal.AsSpan(list53)[0] = new QuestId(5176); skipAetheryteCondition.QuestsCompleted = list53; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj31.SkipConditions = skipConditions2; reference44 = obj31; - num2++; - span51[num2] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192) + span26[1] = new QuestStep(EInteractionType.AcceptQuest, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192) { PickUpQuestId = new QuestId(5176) }; - num2++; - span51[num2] = new QuestStep(EInteractionType.Interact, 1047917u, new Vector3(35.721313f, 53.20001f, 753.1699f), 1192) + span26[2] = new QuestStep(EInteractionType.Interact, 1047917u, new Vector3(35.721313f, 53.20001f, 753.1699f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj30.Steps = list51; reference43 = obj30; - num++; - ref QuestSequence reference45 = ref span49[num]; + ref QuestSequence reference45 = ref span25[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -420972,32 +346408,26 @@ public static class AssemblyQuestLoader num2 = 1; List list54 = new List(num2); CollectionsMarshal.SetCount(list54, num2); - Span span54 = CollectionsMarshal.AsSpan(list54); - index2 = 0; - span54[index2] = new QuestStep(EInteractionType.Interact, 1047922u, new Vector3(353.04797f, 25.75336f, -11.551086f), 1192); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Interact, 1047922u, new Vector3(353.04797f, 25.75336f, -11.551086f), 1192); obj32.Steps = list54; reference45 = obj32; - num++; - ref QuestSequence reference46 = ref span49[num]; + ref QuestSequence reference46 = ref span25[3]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818487u }; - num2++; - span55[num2] = new QuestStep(EInteractionType.Interact, 1047925u, new Vector3(260.02893f, 27.01824f, -183.61182f), 1192); + span27[1] = new QuestStep(EInteractionType.Interact, 1047925u, new Vector3(260.02893f, 27.01824f, -183.61182f), 1192); obj33.Steps = list55; reference46 = obj33; - num++; - ref QuestSequence reference47 = ref span49[num]; + ref QuestSequence reference47 = ref span25[4]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -421005,9 +346435,7 @@ public static class AssemblyQuestLoader num2 = 1; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - span56[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) + CollectionsMarshal.AsSpan(list56)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047929u, new Vector3(345.2964f, 26.972605f, -296.37604f), 1192) { StopDistance = 7f }; @@ -421020,33 +346448,27 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot5.Author = list57; - index = 8; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference48 = ref span58[num]; + num = 8; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span28 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference48 = ref span28[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj35.Steps = list59; reference48 = obj35; - num++; - ref QuestSequence reference49 = ref span58[num]; + ref QuestSequence reference49 = ref span28[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -421054,27 +346476,21 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.Interact, 1047932u, new Vector3(605.0659f, 27.724148f, -184.77148f), 1192); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.Interact, 1047932u, new Vector3(605.0659f, 27.724148f, -184.77148f), 1192); obj36.Steps = list60; reference49 = obj36; - num++; - ref QuestSequence reference50 = ref span58[num]; + ref QuestSequence reference50 = ref span28[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj37.Steps = list61; reference50 = obj37; - num++; - ref QuestSequence reference51 = ref span58[num]; + ref QuestSequence reference51 = ref span28[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 @@ -421082,96 +346498,69 @@ public static class AssemblyQuestLoader num2 = 4; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - ref QuestStep reference52 = ref span62[index2]; + Span span29 = CollectionsMarshal.AsSpan(list62); + ref QuestStep reference52 = ref span29[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1047944u, new Vector3(665.5221f, 24.999493f, -266.55988f), 1192); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list63; reference52 = questStep14; - index2++; - span62[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + span29[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { Aetheryte = EAetheryteLocation.LivingMemoryLeynodePyro }; - index2++; - ref QuestStep reference53 = ref span62[index2]; + ref QuestStep reference53 = ref span29[2]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list64; reference53 = questStep15; - index2++; - ref QuestStep reference54 = ref span62[index2]; + ref QuestStep reference54 = ref span29[3]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1047942u, new Vector3(634.14966f, 24.999489f, -292.77484f), 1192); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list65; reference54 = questStep16; obj38.Steps = list62; reference51 = obj38; - num++; - ref QuestSequence reference55 = ref span58[num]; + ref QuestSequence reference55 = ref span28[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list66 = new List(index2); - CollectionsMarshal.SetCount(list66, index2); - Span span66 = CollectionsMarshal.AsSpan(list66); - num2 = 0; - ref QuestStep reference56 = ref span66[num2]; + num2 = 1; + List list66 = new List(num2); + CollectionsMarshal.SetCount(list66, num2); + ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list66)[0]; 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); - Span span67 = CollectionsMarshal.AsSpan(list67); - index3 = 0; - span67[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list67)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMF109_04954_Q1_000_000"), @@ -421181,8 +346570,7 @@ public static class AssemblyQuestLoader reference56 = questStep17; obj39.Steps = list66; reference55 = obj39; - num++; - ref QuestSequence reference57 = ref span58[num]; + ref QuestSequence reference57 = ref span28[5]; QuestSequence obj40 = new QuestSequence { Sequence = 5 @@ -421190,27 +346578,21 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Interact, 1047946u, new Vector3(501.45715f, 25.314697f, -140.39832f), 1192); + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 1047946u, new Vector3(501.45715f, 25.314697f, -140.39832f), 1192); obj40.Steps = list68; reference57 = obj40; - num++; - ref QuestSequence reference58 = ref span58[num]; + ref QuestSequence reference58 = ref span28[6]; QuestSequence obj41 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj41.Steps = list69; reference58 = obj41; - num++; - ref QuestSequence reference59 = ref span58[num]; + ref QuestSequence reference59 = ref span28[7]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -421218,9 +346600,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047947u, new Vector3(700.6179f, 27.99997f, -305.98926f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; @@ -421233,30 +346613,24 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot6.Author = list71; - index = 9; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference60 = ref span72[num]; + num = 9; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span33 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference60 = ref span33[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj43.Steps = list73; reference60 = obj43; - num++; - ref QuestSequence reference61 = ref span72[num]; + ref QuestSequence reference61 = ref span33[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -421264,27 +346638,21 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 2013779u, new Vector3(755.1842f, 35.99597f, -388.50995f), 1192); + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 2013779u, new Vector3(755.1842f, 35.99597f, -388.50995f), 1192); obj44.Steps = list74; reference61 = obj44; - num++; - ref QuestSequence reference62 = ref span72[num]; + ref QuestSequence reference62 = ref span33[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj45.Steps = list75; reference62 = obj45; - num++; - ref QuestSequence reference63 = ref span72[num]; + ref QuestSequence reference63 = ref span33[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 @@ -421292,22 +346660,19 @@ public static class AssemblyQuestLoader num2 = 3; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - ref QuestStep reference64 = ref span76[index2]; + Span span34 = CollectionsMarshal.AsSpan(list76); + ref QuestStep reference64 = ref span34[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2013780u, new Vector3(707.24023f, 50.06482f, -548.14984f), 1192); - index3 = 2; - List list77 = new List(index3); - CollectionsMarshal.SetCount(list77, index3); - Span span77 = CollectionsMarshal.AsSpan(list77); - num3 = 0; - span77[num3] = new DialogueChoice + num3 = 2; + List list77 = new List(num3); + CollectionsMarshal.SetCount(list77, num3); + Span span35 = CollectionsMarshal.AsSpan(list77); + span35[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_108") }; - num3++; - span77[num3] = new DialogueChoice + span35[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_109"), @@ -421315,21 +346680,18 @@ public static class AssemblyQuestLoader }; questStep18.DialogueChoices = list77; reference64 = questStep18; - index2++; - ref QuestStep reference65 = ref span76[index2]; + ref QuestStep reference65 = ref span34[1]; 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 span78 = CollectionsMarshal.AsSpan(list78); - index3 = 0; - span78[index3] = new DialogueChoice + Span span36 = CollectionsMarshal.AsSpan(list78); + span36[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_108") }; - index3++; - span78[index3] = new DialogueChoice + span36[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_109"), @@ -421337,15 +346699,12 @@ public static class AssemblyQuestLoader }; questStep19.DialogueChoices = list78; reference65 = questStep19; - index2++; - ref QuestStep reference66 = ref span76[index2]; + ref QuestStep reference66 = ref span34[2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1047955u, new Vector3(712.76404f, 49.000027f, -570.24493f), 1192); - index3 = 1; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - span79[num3] = new DialogueChoice + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_100_120") @@ -421354,27 +346713,23 @@ public static class AssemblyQuestLoader reference66 = questStep20; obj46.Steps = list76; reference63 = obj46; - num++; - ref QuestSequence reference67 = ref span72[num]; + ref QuestSequence reference67 = ref span33[4]; QuestSequence obj47 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetherCurrentId = 2818481u }; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); + span37[1] = new QuestStep(EInteractionType.Interact, 1047959u, new Vector3(485.55725f, 43.36743f, -692.83594f), 1192); obj47.Steps = list80; reference67 = obj47; - num++; - ref QuestSequence reference68 = ref span72[num]; + ref QuestSequence reference68 = ref span33[5]; QuestSequence obj48 = new QuestSequence { Sequence = 5 @@ -421382,16 +346737,12 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - ref QuestStep reference69 = ref span81[index2]; + ref QuestStep reference69 = ref CollectionsMarshal.AsSpan(list81)[0]; 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); - Span span82 = CollectionsMarshal.AsSpan(list82); - index3 = 0; - span82[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMF110_04955_Q1_000_000"), @@ -421401,25 +346752,21 @@ public static class AssemblyQuestLoader reference69 = questStep21; obj48.Steps = list81; reference68 = obj48; - num++; - ref QuestSequence reference70 = ref span72[num]; + ref QuestSequence reference70 = ref span33[6]; QuestSequence obj49 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj49.Steps = list83; reference70 = obj49; - num++; - ref QuestSequence reference71 = ref span72[num]; + ref QuestSequence reference71 = ref span33[7]; QuestSequence obj50 = new QuestSequence { Sequence = 7 @@ -421427,16 +346774,12 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - ref QuestStep reference72 = ref span84[index2]; + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1047965u, new Vector3(485.2826f, 106.244576f, -331.92957f), 1192); - index3 = 1; - List list85 = new List(index3); - CollectionsMarshal.SetCount(list85, index3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num3 = 0; - span85[num3] = new DialogueChoice + num3 = 1; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + CollectionsMarshal.AsSpan(list85)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF110_04955_SYSTEM_000_244") @@ -421445,18 +346788,15 @@ public static class AssemblyQuestLoader reference72 = questStep22; obj50.Steps = list84; reference71 = obj50; - num++; - ref QuestSequence reference73 = ref span72[num]; + ref QuestSequence reference73 = ref span33[8]; QuestSequence obj51 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -421469,16 +346809,13 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = "liza"; + CollectionsMarshal.AsSpan(list87)[0] = "liza"; questRoot7.Author = list87; - index = 5; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref QuestSequence reference74 = ref span88[num]; + num = 5; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + Span span38 = CollectionsMarshal.AsSpan(list88); + ref QuestSequence reference74 = ref span38[0]; QuestSequence obj52 = new QuestSequence { Sequence = 0 @@ -421486,26 +346823,22 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047970u, new Vector3(485.16064f, 106.24457f, -331.899f), 1192) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047970u, new Vector3(485.16064f, 106.24457f, -331.899f), 1192) { StopDistance = 5f }; obj52.Steps = list89; reference74 = obj52; - num++; - ref QuestSequence reference75 = ref span88[num]; + ref QuestSequence reference75 = ref span38[1]; QuestSequence obj53 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num2 = 0; - ref QuestStep reference76 = ref span90[num2]; + num2 = 3; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + Span span39 = CollectionsMarshal.AsSpan(list90); + ref QuestStep reference76 = ref span39[0]; QuestStep obj54 = new QuestStep(EInteractionType.AcceptQuest, 1050625u, new Vector3(628.6869f, 24.99949f, -283.3753f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro @@ -421515,42 +346848,35 @@ public static class AssemblyQuestLoader num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span91 = CollectionsMarshal.AsSpan(list91); - index3 = 0; - span91[index3] = new QuestId(5178); + CollectionsMarshal.AsSpan(list91)[0] = new QuestId(5178); skipAetheryteCondition2.QuestsCompleted = list91; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj54.SkipConditions = skipConditions3; obj54.PickUpQuestId = new QuestId(5178); reference76 = obj54; - num2++; - ref QuestStep reference77 = ref span90[num2]; + ref QuestStep reference77 = ref span39[1]; 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(); - index3 = 1; - List list92 = new List(index3); - CollectionsMarshal.SetCount(list92, index3); - Span span92 = CollectionsMarshal.AsSpan(list92); - num3 = 0; - span92[num3] = new QuestId(5179); + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = new QuestId(5179); skipAetheryteCondition3.QuestsCompleted = list92; skipConditions4.AetheryteShortcutIf = skipAetheryteCondition3; obj55.SkipConditions = skipConditions4; obj55.PickUpQuestId = new QuestId(5179); reference77 = obj55; - num2++; - span90[num2] = new QuestStep(EInteractionType.Interact, 1047971u, new Vector3(34.592163f, 53.20001f, 767.4829f), 1192) + span39[2] = new QuestStep(EInteractionType.Interact, 1047971u, new Vector3(34.592163f, 53.20001f, 767.4829f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; obj53.Steps = list90; reference75 = obj53; - num++; - ref QuestSequence reference78 = ref span88[num]; + ref QuestSequence reference78 = ref span38[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 @@ -421558,27 +346884,21 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.Interact, 1047976u, new Vector3(-56.992493f, 53.20001f, 768.39856f), 1192); + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.Interact, 1047976u, new Vector3(-56.992493f, 53.20001f, 768.39856f), 1192); obj56.Steps = list93; reference78 = obj56; - num++; - ref QuestSequence reference79 = ref span88[num]; + ref QuestSequence reference79 = ref span38[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj57.Steps = list94; reference79 = obj57; - num++; - ref QuestSequence reference80 = ref span88[num]; + ref QuestSequence reference80 = ref span38[4]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue @@ -421586,9 +346906,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047986u, new Vector3(-242.237f, 31f, -68.40625f), 1192); obj58.Steps = list95; reference80 = obj58; questRoot7.QuestSequence = list88; @@ -421598,30 +346916,24 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot8.Author = list96; - index = 5; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference81 = ref span97[num]; + num = 5; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span40 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference81 = ref span40[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj59.Steps = list98; reference81 = obj59; - num++; - ref QuestSequence reference82 = ref span97[num]; + ref QuestSequence reference82 = ref span40[1]; QuestSequence obj60 = new QuestSequence { Sequence = 1 @@ -421629,139 +346941,99 @@ public static class AssemblyQuestLoader num2 = 6; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - ref QuestStep reference83 = ref span99[index2]; + Span span41 = CollectionsMarshal.AsSpan(list99); + ref QuestStep reference83 = ref span41[0]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list100; reference83 = questStep23; - index2++; - ref QuestStep reference84 = ref span99[index2]; + ref QuestStep reference84 = ref span41[1]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 2013788u, new Vector3(-202.86877f, 29.984009f, -229.29736f), 1192); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list101; reference84 = questStep24; - index2++; - ref QuestStep reference85 = ref span99[index2]; + ref QuestStep reference85 = ref span41[2]; 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 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); + 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); questStep25.CompletionQuestVariablesFlags = list102; reference85 = questStep25; - index2++; - ref QuestStep reference86 = ref span99[index2]; + ref QuestStep reference86 = ref span41[3]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2013789u, new Vector3(-286.97644f, 29.984009f, -335.74432f), 1192) { DisableNavmesh = true, Mount = true }; - 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); + 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); obj61.CompletionQuestVariablesFlags = list103; reference86 = obj61; - index2++; - span99[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) + span41[4] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1192) { Aetheryte = EAetheryteLocation.LivingMemoryLeynodeAero }; - index2++; - ref QuestStep reference87 = ref span99[index2]; + ref QuestStep reference87 = ref span41[5]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list104; reference87 = questStep26; obj60.Steps = list99; reference82 = obj60; - num++; - ref QuestSequence reference88 = ref span97[num]; + ref QuestSequence reference88 = ref span40[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj62.Steps = list105; reference88 = obj62; - num++; - ref QuestSequence reference89 = ref span97[num]; + ref QuestSequence reference89 = ref span40[3]; QuestSequence obj63 = new QuestSequence { Sequence = 3 @@ -421769,30 +347041,25 @@ public static class AssemblyQuestLoader num2 = 2; List list106 = new List(num2); CollectionsMarshal.SetCount(list106, num2); - 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); + 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); obj63.Steps = list106; reference89 = obj63; - num++; - ref QuestSequence reference90 = ref span97[num]; + ref QuestSequence reference90 = ref span40[4]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818488u }; - num2++; - span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192) + span48[1] = new QuestStep(EInteractionType.CompleteQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeAero }; @@ -421805,16 +347072,13 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot9.Author = list108; - index = 6; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference91 = ref span109[num]; + num = 6; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span49 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference91 = ref span49[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -421822,33 +347086,26 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192); + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047999u, new Vector3(-521.0803f, -10.000387f, -445.76184f), 1192); obj65.Steps = list110; reference91 = obj65; - num++; - ref QuestSequence reference92 = ref span109[num]; + ref QuestSequence reference92 = ref span49[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list111 = new List(index2); - CollectionsMarshal.SetCount(list111, index2); - Span span111 = CollectionsMarshal.AsSpan(list111); - num2 = 0; - ref QuestStep reference93 = ref span111[num2]; + num2 = 1; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + ref QuestStep reference93 = ref CollectionsMarshal.AsSpan(list111)[0]; QuestStep obj67 = new QuestStep(EInteractionType.Interact, 1048004u, new Vector3(-523.03357f, -10.000407f, -445.57874f), 1192) { StopDistance = 7f }; - index3 = 1; - List list112 = new List(index3); - CollectionsMarshal.SetCount(list112, index3); - Span span112 = CollectionsMarshal.AsSpan(list112); - num3 = 0; - span112[num3] = new DialogueChoice + num3 = 1; + List list112 = new List(num3); + CollectionsMarshal.SetCount(list112, num3); + CollectionsMarshal.AsSpan(list112)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF113_04958_SYSTEM_000_031") @@ -421857,8 +347114,7 @@ public static class AssemblyQuestLoader reference93 = obj67; obj66.Steps = list111; reference92 = obj66; - num++; - ref QuestSequence reference94 = ref span109[num]; + ref QuestSequence reference94 = ref span49[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -421866,35 +347122,29 @@ public static class AssemblyQuestLoader num2 = 1; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - Span span113 = CollectionsMarshal.AsSpan(list113); - index2 = 0; - span113[index2] = new QuestStep(EInteractionType.Interact, 1048008u, new Vector3(-528.58777f, -10.000336f, -466.97186f), 1192) + CollectionsMarshal.AsSpan(list113)[0] = new QuestStep(EInteractionType.Interact, 1048008u, new Vector3(-528.58777f, -10.000336f, -466.97186f), 1192) { StopDistance = 5f }; obj68.Steps = list113; reference94 = obj68; - num++; - ref QuestSequence reference95 = ref span109[num]; + ref QuestSequence reference95 = ref span49[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetherCurrentId = 2818482u }; - num2++; - span114[num2] = new QuestStep(EInteractionType.Interact, 1048009u, new Vector3(-485.86255f, 7.300079f, -705.4398f), 1192); + span50[1] = new QuestStep(EInteractionType.Interact, 1048009u, new Vector3(-485.86255f, 7.300079f, -705.4398f), 1192); obj69.Steps = list114; reference95 = obj69; - num++; - ref QuestSequence reference96 = ref span109[num]; + ref QuestSequence reference96 = ref span49[4]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -421902,16 +347152,12 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - ref QuestStep reference97 = ref span115[index2]; + ref QuestStep reference97 = ref CollectionsMarshal.AsSpan(list115)[0]; 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); - Span span116 = CollectionsMarshal.AsSpan(list116); - index3 = 0; - span116[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list116)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMF113_04958_SYSTEM_000_124") @@ -421920,18 +347166,15 @@ public static class AssemblyQuestLoader reference97 = questStep27; obj70.Steps = list115; reference96 = obj70; - num++; - ref QuestSequence reference98 = ref span109[num]; + ref QuestSequence reference98 = ref span49[5]; QuestSequence obj71 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -421944,16 +347187,13 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot10.Author = list118; - index = 7; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference99 = ref span119[num]; + num = 7; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span51 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference99 = ref span51[0]; QuestSequence obj72 = new QuestSequence { Sequence = 0 @@ -421961,26 +347201,22 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048011u, new Vector3(-500.51117f, 18.990517f, -839.353f), 1192) { StopDistance = 5f }; obj72.Steps = list120; reference99 = obj72; - num++; - ref QuestSequence reference100 = ref span119[num]; + ref QuestSequence reference100 = ref span51[1]; QuestSequence obj73 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, SkipConditions = new SkipConditions @@ -421991,15 +347227,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span121[num2] = new QuestStep(EInteractionType.Interact, 1048014u, new Vector3(-0.13739014f, 50.124947f, 363.05774f), 1192) + span52[1] = new QuestStep(EInteractionType.Interact, 1048014u, new Vector3(-0.13739014f, 50.124947f, 363.05774f), 1192) { Fly = true }; obj73.Steps = list121; reference100 = obj73; - num++; - ref QuestSequence reference101 = ref span119[num]; + ref QuestSequence reference101 = ref span51[2]; QuestSequence obj74 = new QuestSequence { Sequence = 2 @@ -422007,9 +347241,7 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Duty, null, null, 1192) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -422019,23 +347251,19 @@ public static class AssemblyQuestLoader }; obj74.Steps = list122; reference101 = obj74; - num++; - span119[num] = new QuestSequence + span51[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference102 = ref span119[num]; + ref QuestSequence reference102 = ref span51[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list123 = new List(num2); + CollectionsMarshal.SetCount(list123, num2); + CollectionsMarshal.AsSpan(list123)[0] = new QuestStep(EInteractionType.Duty, null, null, 1221) { DutyOptions = new DutyOptions { @@ -422044,13 +347272,11 @@ public static class AssemblyQuestLoader }; obj75.Steps = list123; reference102 = obj75; - num++; - span119[num] = new QuestSequence + span51[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference103 = ref span119[num]; + ref QuestSequence reference103 = ref span51[6]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue @@ -422058,9 +347284,7 @@ public static class AssemblyQuestLoader num2 = 1; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - span124[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048022u, new Vector3(-160.7843f, -14.999356f, 204.42505f), 1185) + CollectionsMarshal.AsSpan(list124)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048022u, new Vector3(-160.7843f, -14.999356f, 204.42505f), 1185) { StopDistance = 7f }; @@ -422073,26 +347297,21 @@ public static class AssemblyQuestLoader num = 1; List list125 = new List(num); CollectionsMarshal.SetCount(list125, num); - Span span125 = CollectionsMarshal.AsSpan(list125); - index = 0; - span125[index] = "liza"; + CollectionsMarshal.AsSpan(list125)[0] = "liza"; questRoot11.Author = list125; - index = 3; - List list126 = new List(index); - CollectionsMarshal.SetCount(list126, index); - Span span126 = CollectionsMarshal.AsSpan(list126); - num = 0; - ref QuestSequence reference104 = ref span126[num]; + num = 3; + List list126 = new List(num); + CollectionsMarshal.SetCount(list126, num); + Span span53 = CollectionsMarshal.AsSpan(list126); + ref QuestSequence reference104 = ref span53[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -422110,8 +347329,7 @@ public static class AssemblyQuestLoader }; obj77.Steps = list127; reference104 = obj77; - num++; - ref QuestSequence reference105 = ref span126[num]; + ref QuestSequence reference105 = ref span53[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 @@ -422119,16 +347337,12 @@ public static class AssemblyQuestLoader num2 = 1; List list128 = new List(num2); CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - ref QuestStep reference106 = ref span128[index2]; + ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list128)[0]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186); - index3 = 1; - List list129 = new List(index3); - CollectionsMarshal.SetCount(list129, index3); - Span span129 = CollectionsMarshal.AsSpan(list129); - num3 = 0; - span129[num3] = new DialogueChoice + num3 = 1; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + CollectionsMarshal.AsSpan(list129)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA101_04960_SYSTEM_100_030") @@ -422137,18 +347351,15 @@ public static class AssemblyQuestLoader reference106 = questStep28; obj78.Steps = list128; reference105 = obj78; - num++; - ref QuestSequence reference107 = ref span126[num]; + ref QuestSequence reference107 = ref span53[2]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(4961) @@ -422162,16 +347373,13 @@ public static class AssemblyQuestLoader num = 1; List list131 = new List(num); CollectionsMarshal.SetCount(list131, num); - Span span131 = CollectionsMarshal.AsSpan(list131); - index = 0; - span131[index] = "liza"; + CollectionsMarshal.AsSpan(list131)[0] = "liza"; questRoot12.Author = list131; - index = 3; - List list132 = new List(index); - CollectionsMarshal.SetCount(list132, index); - Span span132 = CollectionsMarshal.AsSpan(list132); - num = 0; - ref QuestSequence reference108 = ref span132[num]; + num = 3; + List list132 = new List(num); + CollectionsMarshal.SetCount(list132, num); + Span span54 = CollectionsMarshal.AsSpan(list132); + ref QuestSequence reference108 = ref span54[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -422179,9 +347387,8 @@ public static class AssemblyQuestLoader num2 = 2; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - ref QuestStep reference109 = ref span133[index2]; + Span span55 = CollectionsMarshal.AsSpan(list133); + ref QuestStep reference109 = ref span55[0]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, @@ -422197,9 +347404,7 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span134 = CollectionsMarshal.AsSpan(list134); - index3 = 0; - span134[index3] = 1224; + CollectionsMarshal.AsSpan(list134)[0] = 1224; skipStepConditions3.InTerritory = list134; skipStepConditions3.NearPosition = new NearPositionCondition { @@ -422209,35 +347414,29 @@ public static class AssemblyQuestLoader }; skipConditions5.StepIf = skipStepConditions3; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - index3 = 1; - List list135 = new List(index3); - CollectionsMarshal.SetCount(list135, index3); - Span span135 = CollectionsMarshal.AsSpan(list135); - num3 = 0; - span135[num3] = 1224; + num3 = 1; + List list135 = new List(num3); + CollectionsMarshal.SetCount(list135, num3); + CollectionsMarshal.AsSpan(list135)[0] = 1224; skipAetheryteCondition4.InTerritory = list135; skipConditions5.AetheryteShortcutIf = skipAetheryteCondition4; obj81.SkipConditions = skipConditions5; reference109 = obj81; - index2++; - span133[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) + span55[1] = new QuestStep(EInteractionType.AcceptQuest, 1049788u, new Vector3(1.6021729f, 0f, -6.088379f), 1224) { StopDistance = 5f }; obj80.Steps = list133; reference108 = obj80; - num++; - ref QuestSequence reference110 = ref span132[num]; + ref QuestSequence reference110 = ref span54[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list136 = new List(num2); + CollectionsMarshal.SetCount(list136, num2); + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -422246,8 +347445,7 @@ public static class AssemblyQuestLoader }; obj82.Steps = list136; reference110 = obj82; - num++; - ref QuestSequence reference111 = ref span132[num]; + ref QuestSequence reference111 = ref span54[2]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -422255,9 +347453,7 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050476u, new Vector3(0.1373291f, -3.3667622E-13f, -9.658997f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4962) @@ -422271,33 +347467,27 @@ public static class AssemblyQuestLoader num = 1; List list138 = new List(num); CollectionsMarshal.SetCount(list138, num); - Span span138 = CollectionsMarshal.AsSpan(list138); - index = 0; - span138[index] = "liza"; + CollectionsMarshal.AsSpan(list138)[0] = "liza"; questRoot13.Author = list138; - index = 4; - List list139 = new List(index); - CollectionsMarshal.SetCount(list139, index); - Span span139 = CollectionsMarshal.AsSpan(list139); - num = 0; - ref QuestSequence reference112 = ref span139[num]; + num = 4; + List list139 = new List(num); + CollectionsMarshal.SetCount(list139, num); + Span span56 = CollectionsMarshal.AsSpan(list139); + ref QuestSequence reference112 = ref span56[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj84.Steps = list140; reference112 = obj84; - num++; - ref QuestSequence reference113 = ref span139[num]; + ref QuestSequence reference113 = ref span56[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -422305,9 +347495,7 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -422316,25 +347504,21 @@ public static class AssemblyQuestLoader }; obj85.Steps = list141; reference113 = obj85; - num++; - ref QuestSequence reference114 = ref span139[num]; + ref QuestSequence reference114 = ref span56[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj86.Steps = list142; reference114 = obj86; - num++; - ref QuestSequence reference115 = ref span139[num]; + ref QuestSequence reference115 = ref span56[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue @@ -422342,9 +347526,7 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4963) @@ -422358,33 +347540,27 @@ public static class AssemblyQuestLoader num = 1; List list144 = new List(num); CollectionsMarshal.SetCount(list144, num); - Span span144 = CollectionsMarshal.AsSpan(list144); - index = 0; - span144[index] = "liza"; + CollectionsMarshal.AsSpan(list144)[0] = "liza"; questRoot14.Author = list144; - index = 3; - List list145 = new List(index); - CollectionsMarshal.SetCount(list145, index); - Span span145 = CollectionsMarshal.AsSpan(list145); - num = 0; - ref QuestSequence reference116 = ref span145[num]; + num = 3; + List list145 = new List(num); + CollectionsMarshal.SetCount(list145, num); + Span span57 = CollectionsMarshal.AsSpan(list145); + ref QuestSequence reference116 = ref span57[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj88.Steps = list146; reference116 = obj88; - num++; - ref QuestSequence reference117 = ref span145[num]; + ref QuestSequence reference117 = ref span57[1]; QuestSequence obj89 = new QuestSequence { Sequence = 1 @@ -422392,26 +347568,22 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { StopDistance = 5f }; obj89.Steps = list147; reference117 = obj89; - num++; - ref QuestSequence reference118 = ref span145[num]; + ref QuestSequence reference118 = ref span57[2]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)1224, AethernetShortcut = new AethernetShortcut @@ -422420,8 +347592,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - num2++; - span148[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) + span58[1] = new QuestStep(EInteractionType.CompleteQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) { StopDistance = 7f, NextQuestId = new QuestId(4964) @@ -422435,16 +347606,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "liza"; + CollectionsMarshal.AsSpan(list149)[0] = "liza"; questRoot15.Author = list149; - index = 4; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference119 = ref span150[num]; + num = 4; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span59 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference119 = ref span59[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 @@ -422452,26 +347620,21 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049789u, new Vector3(2.3651123f, -4.334177E-12f, -14.206177f), 1224) { StopDistance = 7f }; obj91.Steps = list151; reference119 = obj91; - num++; - ref QuestSequence reference120 = ref span150[num]; + ref QuestSequence reference120 = ref span59[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -422480,8 +347643,7 @@ public static class AssemblyQuestLoader }; obj92.Steps = list152; reference120 = obj92; - num++; - ref QuestSequence reference121 = ref span150[num]; + ref QuestSequence reference121 = ref span59[2]; QuestSequence obj93 = new QuestSequence { Sequence = 2 @@ -422489,26 +347651,21 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj93.Steps = list153; reference121 = obj93; - num++; - ref QuestSequence reference122 = ref span150[num]; + ref QuestSequence reference122 = ref span59[3]; QuestSequence obj94 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(4965) @@ -422522,16 +347679,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot16.Author = list155; - index = 5; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference123 = ref span156[num]; + num = 5; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span60 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference123 = ref span60[0]; QuestSequence obj95 = new QuestSequence { Sequence = 0 @@ -422539,26 +347693,21 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049792u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049792u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj95.Steps = list157; reference123 = obj95; - num++; - ref QuestSequence reference124 = ref span156[num]; + ref QuestSequence reference124 = ref span60[1]; QuestSequence obj96 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -422567,8 +347716,7 @@ public static class AssemblyQuestLoader }; obj96.Steps = list158; reference124 = obj96; - num++; - ref QuestSequence reference125 = ref span156[num]; + ref QuestSequence reference125 = ref span60[2]; QuestSequence obj97 = new QuestSequence { Sequence = 2 @@ -422576,31 +347724,26 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.Interact, 1050477u, new Vector3(1.663208f, -1.9688797E-12f, -10.727112f), 1224) { StopDistance = 7f }; obj97.Steps = list159; reference125 = obj97; - num++; - ref QuestSequence reference126 = ref span156[num]; + ref QuestSequence reference126 = ref span60[3]; QuestSequence obj98 = new QuestSequence { Sequence = 3 }; - 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) + 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) { TargetTerritoryId = (ushort)1186 }; - num2++; - span160[num2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + span61[1] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -422610,8 +347753,7 @@ public static class AssemblyQuestLoader }; obj98.Steps = list160; reference126 = obj98; - num++; - ref QuestSequence reference127 = ref span156[num]; + ref QuestSequence reference127 = ref span60[4]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -422619,9 +347761,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { NextQuestId = new QuestId(5289) }; @@ -422634,30 +347774,24 @@ public static class AssemblyQuestLoader num = 1; List list162 = new List(num); CollectionsMarshal.SetCount(list162, num); - Span span162 = CollectionsMarshal.AsSpan(list162); - index = 0; - span162[index] = "liza"; + CollectionsMarshal.AsSpan(list162)[0] = "liza"; questRoot17.Author = list162; - index = 2; - List list163 = new List(index); - CollectionsMarshal.SetCount(list163, index); - Span span163 = CollectionsMarshal.AsSpan(list163); - num = 0; - ref QuestSequence reference128 = ref span163[num]; + num = 2; + List list163 = new List(num); + CollectionsMarshal.SetCount(list163, num); + Span span62 = CollectionsMarshal.AsSpan(list163); + ref QuestSequence reference128 = ref span62[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj100.Steps = list164; reference128 = obj100; - num++; - ref QuestSequence reference129 = ref span163[num]; + ref QuestSequence reference129 = ref span62[1]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -422665,9 +347799,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj101.Steps = list165; reference129 = obj101; questRoot17.QuestSequence = list163; @@ -422677,30 +347809,24 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "plogon_enjoyer"; + CollectionsMarshal.AsSpan(list166)[0] = "plogon_enjoyer"; questRoot18.Author = list166; - index = 12; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference130 = ref span167[num]; + num = 12; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span63 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference130 = ref span63[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj102.Steps = list168; reference130 = obj102; - num++; - ref QuestSequence reference131 = ref span167[num]; + ref QuestSequence reference131 = ref span63[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -422708,9 +347834,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 2014440u, new Vector3(-100.23657f, -19.882507f, 211.13904f), 1185) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 2014440u, new Vector3(-100.23657f, -19.882507f, 211.13904f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -422720,22 +347844,18 @@ public static class AssemblyQuestLoader }; obj103.Steps = list169; reference131 = obj103; - num++; - ref QuestSequence reference132 = ref span167[num]; + ref QuestSequence reference132 = ref span63[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj104.Steps = list170; reference132 = obj104; - num++; - ref QuestSequence reference133 = ref span167[num]; + ref QuestSequence reference133 = ref span63[3]; QuestSequence obj105 = new QuestSequence { Sequence = 3 @@ -422743,16 +347863,12 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference134 = ref span171[index2]; + ref QuestStep reference134 = ref CollectionsMarshal.AsSpan(list171)[0]; 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); - Span span172 = CollectionsMarshal.AsSpan(list172); - index3 = 0; - span172[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGLZ001_04967_Q2_000_000"), @@ -422762,30 +347878,26 @@ public static class AssemblyQuestLoader reference134 = questStep29; obj105.Steps = list171; reference133 = obj105; - num++; - ref QuestSequence reference135 = ref span167[num]; + ref QuestSequence reference135 = ref span63[4]; QuestSequence obj106 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; - num2++; - span173[num2] = new QuestStep(EInteractionType.Interact, 1047174u, new Vector3(-138.35364f, 42.999657f, -663.2639f), 1191) + span64[1] = new QuestStep(EInteractionType.Interact, 1047174u, new Vector3(-138.35364f, 42.999657f, -663.2639f), 1191) { Fly = true }; obj106.Steps = list173; reference135 = obj106; - num++; - ref QuestSequence reference136 = ref span167[num]; + ref QuestSequence reference136 = ref span63[5]; QuestSequence obj107 = new QuestSequence { Sequence = 5 @@ -422793,9 +347905,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -422806,18 +347916,15 @@ public static class AssemblyQuestLoader }; obj107.Steps = list174; reference136 = obj107; - num++; - ref QuestSequence reference137 = ref span167[num]; + ref QuestSequence reference137 = ref span63[6]; QuestSequence obj108 = new QuestSequence { Sequence = 6 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -422827,8 +347934,7 @@ public static class AssemblyQuestLoader }; obj108.Steps = list175; reference137 = obj108; - num++; - ref QuestSequence reference138 = ref span167[num]; + ref QuestSequence reference138 = ref span63[7]; QuestSequence obj109 = new QuestSequence { Sequence = 7 @@ -422836,9 +347942,7 @@ public static class AssemblyQuestLoader num2 = 1; List list176 = new List(num2); CollectionsMarshal.SetCount(list176, num2); - Span span176 = CollectionsMarshal.AsSpan(list176); - index2 = 0; - span176[index2] = new QuestStep(EInteractionType.Interact, 1047179u, new Vector3(109.147705f, 42f, -353.29218f), 1185) + CollectionsMarshal.AsSpan(list176)[0] = new QuestStep(EInteractionType.Interact, 1047179u, new Vector3(109.147705f, 42f, -353.29218f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -422848,18 +347952,15 @@ public static class AssemblyQuestLoader }; obj109.Steps = list176; reference138 = obj109; - num++; - ref QuestSequence reference139 = ref span167[num]; + ref QuestSequence reference139 = ref span63[8]; QuestSequence obj110 = new QuestSequence { Sequence = 8 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -422869,8 +347970,7 @@ public static class AssemblyQuestLoader }; obj110.Steps = list177; reference139 = obj110; - num++; - ref QuestSequence reference140 = ref span167[num]; + ref QuestSequence reference140 = ref span63[9]; QuestSequence obj111 = new QuestSequence { Sequence = 9 @@ -422878,34 +347978,26 @@ public static class AssemblyQuestLoader num2 = 3; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - 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); + 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); obj111.Steps = list178; reference140 = obj111; - num++; - ref QuestSequence reference141 = ref span167[num]; + ref QuestSequence reference141 = ref span63[10]; QuestSequence obj112 = new QuestSequence { Sequence = 10 }; - index2 = 1; - List list179 = new List(index2); - CollectionsMarshal.SetCount(list179, index2); - Span span179 = CollectionsMarshal.AsSpan(list179); - num2 = 0; - ref QuestStep reference142 = ref span179[num2]; + num2 = 1; + List list179 = new List(num2); + CollectionsMarshal.SetCount(list179, num2); + ref QuestStep reference142 = ref CollectionsMarshal.AsSpan(list179)[0]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); - index3 = 1; - List list180 = new List(index3); - CollectionsMarshal.SetCount(list180, index3); - Span span180 = CollectionsMarshal.AsSpan(list180); - num3 = 0; - span180[num3] = new DialogueChoice + num3 = 1; + List list180 = new List(num3); + CollectionsMarshal.SetCount(list180, num3); + CollectionsMarshal.AsSpan(list180)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGLZ001_04967_Q3_000_302") @@ -422914,8 +348006,7 @@ public static class AssemblyQuestLoader reference142 = questStep30; obj112.Steps = list179; reference141 = obj112; - num++; - ref QuestSequence reference143 = ref span167[num]; + ref QuestSequence reference143 = ref span63[11]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -422923,9 +348014,7 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047095u, new Vector3(139.5437f, -13.99f, 10.60498f), 1185); obj113.Steps = list181; reference143 = obj113; questRoot18.QuestSequence = list167; @@ -422935,30 +348024,24 @@ public static class AssemblyQuestLoader num = 1; List list182 = new List(num); CollectionsMarshal.SetCount(list182, num); - Span span182 = CollectionsMarshal.AsSpan(list182); - index = 0; - span182[index] = "liza"; + CollectionsMarshal.AsSpan(list182)[0] = "liza"; questRoot19.Author = list182; - index = 2; - List list183 = new List(index); - CollectionsMarshal.SetCount(list183, index); - Span span183 = CollectionsMarshal.AsSpan(list183); - num = 0; - ref QuestSequence reference144 = ref span183[num]; + num = 2; + List list183 = new List(num); + CollectionsMarshal.SetCount(list183, num); + Span span66 = CollectionsMarshal.AsSpan(list183); + ref QuestSequence reference144 = ref span66[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list184; reference144 = obj114; - num++; - ref QuestSequence reference145 = ref span183[num]; + ref QuestSequence reference145 = ref span66[1]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -422966,9 +348049,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047164u, new Vector3(217.21204f, -14f, -8.316223f), 1185) + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047164u, new Vector3(217.21204f, -14f, -8.316223f), 1185) { NextQuestId = new QuestId(4990) }; @@ -422981,30 +348062,24 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "liza"; + CollectionsMarshal.AsSpan(list186)[0] = "liza"; questRoot20.Author = list186; - index = 2; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference146 = ref span187[num]; + num = 2; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span67 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference146 = ref span67[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj116.Steps = list188; reference146 = obj116; - num++; - ref QuestSequence reference147 = ref span187[num]; + ref QuestSequence reference147 = ref span67[1]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -423012,16 +348087,13 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - Span span189 = CollectionsMarshal.AsSpan(list189); - index2 = 0; - ref QuestStep reference148 = ref span189[index2]; + Span span68 = CollectionsMarshal.AsSpan(list189); + ref QuestStep reference148 = ref span68[0]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list190 = new List(num3); CollectionsMarshal.SetCount(list190, num3); - Span span190 = CollectionsMarshal.AsSpan(list190); - index3 = 0; - span190[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list190)[0] = new GatheredItem { ItemId = 43899u, ItemCount = 6, @@ -423029,8 +348101,7 @@ public static class AssemblyQuestLoader }; questStep31.ItemsToGather = list190; reference148 = questStep31; - index2++; - span189[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + span68[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -423049,30 +348120,24 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "liza"; + CollectionsMarshal.AsSpan(list191)[0] = "liza"; questRoot21.Author = list191; - index = 2; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference149 = ref span192[num]; + num = 2; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span69 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference149 = ref span69[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj118.Steps = list193; reference149 = obj118; - num++; - ref QuestSequence reference150 = ref span192[num]; + ref QuestSequence reference150 = ref span69[1]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue @@ -423080,16 +348145,13 @@ public static class AssemblyQuestLoader num2 = 2; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - ref QuestStep reference151 = ref span194[index2]; + Span span70 = CollectionsMarshal.AsSpan(list194); + ref QuestStep reference151 = ref span70[0]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 1185); - index3 = 1; - List list195 = new List(index3); - CollectionsMarshal.SetCount(list195, index3); - Span span195 = CollectionsMarshal.AsSpan(list195); - num3 = 0; - span195[num3] = new GatheredItem + num3 = 1; + List list195 = new List(num3); + CollectionsMarshal.SetCount(list195, num3); + CollectionsMarshal.AsSpan(list195)[0] = new GatheredItem { ItemId = 43900u, ItemCount = 6, @@ -423097,8 +348159,7 @@ public static class AssemblyQuestLoader }; questStep32.ItemsToGather = list195; reference151 = questStep32; - index2++; - span194[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + span70[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -423117,30 +348178,24 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "liza"; + CollectionsMarshal.AsSpan(list196)[0] = "liza"; questRoot22.Author = list196; - index = 2; - List list197 = new List(index); - CollectionsMarshal.SetCount(list197, index); - Span span197 = CollectionsMarshal.AsSpan(list197); - num = 0; - ref QuestSequence reference152 = ref span197[num]; + num = 2; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span71 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference152 = ref span71[0]; QuestSequence obj120 = 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, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + 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); obj120.Steps = list198; reference152 = obj120; - num++; - ref QuestSequence reference153 = ref span197[num]; + ref QuestSequence reference153 = ref span71[1]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -423148,16 +348203,13 @@ public static class AssemblyQuestLoader num2 = 2; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - index2 = 0; - ref QuestStep reference154 = ref span199[index2]; + Span span72 = CollectionsMarshal.AsSpan(list199); + ref QuestStep reference154 = ref span72[0]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list200 = new List(num3); CollectionsMarshal.SetCount(list200, num3); - Span span200 = CollectionsMarshal.AsSpan(list200); - index3 = 0; - span200[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list200)[0] = new GatheredItem { ItemId = 43901u, ItemCount = 6, @@ -423165,8 +348217,7 @@ public static class AssemblyQuestLoader }; questStep33.ItemsToGather = list200; reference154 = questStep33; - index2++; - span199[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -423185,30 +348236,24 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "liza"; + CollectionsMarshal.AsSpan(list201)[0] = "liza"; questRoot23.Author = list201; - index = 3; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference155 = ref span202[num]; + num = 3; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span73 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference155 = ref span73[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj122.Steps = list203; reference155 = obj122; - num++; - ref QuestSequence reference156 = ref span202[num]; + ref QuestSequence reference156 = ref span73[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 @@ -423216,9 +348261,7 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.Interact, 1047153u, new Vector3(-270.4662f, 40.0732f, -12.253052f), 1185) + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1047153u, new Vector3(-270.4662f, 40.0732f, -12.253052f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -423228,33 +348271,28 @@ public static class AssemblyQuestLoader }; obj123.Steps = list204; reference156 = obj123; - num++; - ref QuestSequence reference157 = ref span202[num]; + ref QuestSequence reference157 = ref span73[2]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list205 = new List(index2); - CollectionsMarshal.SetCount(list205, index2); - Span span205 = CollectionsMarshal.AsSpan(list205); - num2 = 0; - ref QuestStep reference158 = ref span205[num2]; + num2 = 2; + List list205 = new List(num2); + CollectionsMarshal.SetCount(list205, num2); + Span span74 = CollectionsMarshal.AsSpan(list205); + ref QuestStep reference158 = ref span74[0]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1185); - index3 = 1; - List list206 = new List(index3); - CollectionsMarshal.SetCount(list206, index3); - Span span206 = CollectionsMarshal.AsSpan(list206); - num3 = 0; - span206[num3] = new GatheredItem + num3 = 1; + List list206 = new List(num3); + CollectionsMarshal.SetCount(list206, num3); + CollectionsMarshal.AsSpan(list206)[0] = new GatheredItem { ItemId = 43913u, ItemCount = 1 }; questStep34.ItemsToGather = list206; reference158 = questStep34; - num2++; - span205[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -423273,16 +348311,13 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot24.Author = list207; - index = 2; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference159 = ref span208[num]; + num = 2; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span75 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference159 = ref span75[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 @@ -423290,30 +348325,24 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj125.Steps = list209; reference159 = obj125; - num++; - ref QuestSequence reference160 = ref span208[num]; + ref QuestSequence reference160 = ref span75[1]; QuestSequence obj126 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list210 = new List(index2); - CollectionsMarshal.SetCount(list210, index2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num2 = 0; - ref QuestStep reference161 = ref span210[num2]; + num2 = 2; + List list210 = new List(num2); + CollectionsMarshal.SetCount(list210, num2); + Span span76 = CollectionsMarshal.AsSpan(list210); + ref QuestStep reference161 = ref span76[0]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1185); num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span211 = CollectionsMarshal.AsSpan(list211); - index3 = 0; - span211[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem { ItemId = 43902u, ItemCount = 6, @@ -423321,8 +348350,7 @@ public static class AssemblyQuestLoader }; questStep35.ItemsToGather = list211; reference161 = questStep35; - num2++; - span210[num2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) + span76[1] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -423341,16 +348369,13 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - Span span212 = CollectionsMarshal.AsSpan(list212); - index = 0; - span212[index] = "liza"; + CollectionsMarshal.AsSpan(list212)[0] = "liza"; questRoot25.Author = list212; - index = 9; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref QuestSequence reference162 = ref span213[num]; + num = 9; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span77 = CollectionsMarshal.AsSpan(list213); + ref QuestSequence reference162 = ref span77[0]; QuestSequence obj127 = new QuestSequence { Sequence = 0 @@ -423358,30 +348383,24 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj127.Steps = list214; reference162 = obj127; - num++; - ref QuestSequence reference163 = ref span213[num]; + ref QuestSequence reference163 = ref span77[1]; QuestSequence obj128 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj128.Steps = list215; reference163 = obj128; - num++; - ref QuestSequence reference164 = ref span213[num]; + ref QuestSequence reference164 = ref span77[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -423389,33 +348408,25 @@ public static class AssemblyQuestLoader num2 = 4; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference165 = ref span216[index2]; + Span span78 = CollectionsMarshal.AsSpan(list216); + ref QuestStep reference165 = ref span78[0]; QuestStep obj130 = new QuestStep(EInteractionType.Interact, 1048981u, new Vector3(686.51855f, -137.174f, 534.8745f), 1189) { Fly = true }; - 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); + 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); obj130.CompletionQuestVariablesFlags = list217; reference165 = obj130; - index2++; - ref QuestStep reference166 = ref span216[index2]; + ref QuestStep reference166 = ref span78[1]; QuestStep obj131 = new QuestStep(EInteractionType.Interact, 1048973u, new Vector3(661.86f, -135.17876f, 582.11633f), 1189) { StopDistance = 4f @@ -423423,101 +348434,72 @@ public static class AssemblyQuestLoader num3 = 6; List list218 = new List(num3); CollectionsMarshal.SetCount(list218, num3); - 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); + 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); obj131.CompletionQuestVariablesFlags = list218; reference166 = obj131; - index2++; - ref QuestStep reference167 = ref span216[index2]; + ref QuestStep reference167 = ref span78[2]; QuestStep questStep36 = new QuestStep(EInteractionType.Interact, 1047156u, new Vector3(632.5017f, -137.17401f, 590.8445f), 1189); - 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); + 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); questStep36.CompletionQuestVariablesFlags = list219; reference167 = questStep36; - index2++; - ref QuestStep reference168 = ref span216[index2]; + ref QuestStep reference168 = ref span78[3]; 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 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); + 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); questStep37.CompletionQuestVariablesFlags = list220; reference168 = questStep37; obj129.Steps = list216; reference164 = obj129; - num++; - ref QuestSequence reference169 = ref span213[num]; + ref QuestSequence reference169 = ref span77[3]; QuestSequence obj132 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list221 = new List(index2); - CollectionsMarshal.SetCount(list221, index2); - Span span221 = CollectionsMarshal.AsSpan(list221); - num2 = 0; - ref QuestStep reference170 = ref span221[num2]; + num2 = 2; + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + Span span83 = CollectionsMarshal.AsSpan(list221); + ref QuestStep reference170 = ref span83[0]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 1047158u, new Vector3(539.69617f, -142.49185f, 481.65088f), 1189) { Fly = true }; - 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); + 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); obj133.CompletionQuestVariablesFlags = list222; reference170 = obj133; - num2++; - ref QuestStep reference171 = ref span221[num2]; + ref QuestStep reference171 = ref span83[1]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 1047157u, new Vector3(586.26685f, -142.4984f, 462.97388f), 1189) { Fly = true @@ -423525,25 +348507,18 @@ public static class AssemblyQuestLoader num3 = 6; List list223 = new List(num3); CollectionsMarshal.SetCount(list223, num3); - 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); + 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); obj134.CompletionQuestVariablesFlags = list223; reference171 = obj134; obj132.Steps = list221; reference169 = obj132; - num++; - ref QuestSequence reference172 = ref span213[num]; + ref QuestSequence reference172 = ref span77[4]; QuestSequence obj135 = new QuestSequence { Sequence = 4 @@ -423551,34 +348526,28 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.Interact, 1047159u, new Vector3(191.45496f, -160.64616f, 414.0536f), 1189) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.Interact, 1047159u, new Vector3(191.45496f, -160.64616f, 414.0536f), 1189) { Fly = true }; obj135.Steps = list224; reference172 = obj135; - num++; - ref QuestSequence reference173 = ref span213[num]; + ref QuestSequence reference173 = ref span77[5]; QuestSequence obj136 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj136.Steps = list225; reference173 = obj136; - num++; - ref QuestSequence reference174 = ref span213[num]; + ref QuestSequence reference174 = ref span77[6]; QuestSequence obj137 = new QuestSequence { Sequence = 6 @@ -423586,9 +348555,8 @@ public static class AssemblyQuestLoader num2 = 5; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.87848f, 4.0999737f, -551.09174f), 1189) + Span span86 = CollectionsMarshal.AsSpan(list226); + span86[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(436.87848f, 4.0999737f, -551.09174f), 1189) { SkipConditions = new SkipConditions { @@ -423598,51 +348566,42 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference175 = ref span226[index2]; + ref QuestStep reference175 = ref span86[1]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list227 = new List(index3); - CollectionsMarshal.SetCount(list227, index3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = new GatheredItem + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem { ItemId = 43914u, ItemCount = 1 }; questStep38.ItemsToGather = list227; reference175 = questStep38; - index2++; - span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -33.187485f, -598.0982f), 1189) + span86[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -33.187485f, -598.0982f), 1189) { Fly = true }; - index2++; - span226[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -0.6f, -598.0982f), 1189) + span86[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(674.17834f, -0.6f, -598.0982f), 1189) { DisableNavmesh = true, Fly = true }; - index2++; - span226[index2] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) + span86[4] = new QuestStep(EInteractionType.Interact, 1047160u, new Vector3(664.6067f, 1.554378f, -477.22595f), 1189) { Fly = true }; obj137.Steps = list226; reference174 = obj137; - num++; - ref QuestSequence reference176 = ref span213[num]; + ref QuestSequence reference176 = ref span77[7]; QuestSequence obj138 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -423653,8 +348612,7 @@ public static class AssemblyQuestLoader }; obj138.Steps = list228; reference176 = obj138; - num++; - ref QuestSequence reference177 = ref span213[num]; + ref QuestSequence reference177 = ref span77[8]; QuestSequence obj139 = new QuestSequence { Sequence = byte.MaxValue @@ -423662,9 +348620,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1047132u, new Vector3(217.36475f, -14.000001f, -5.6916504f), 1185); obj139.Steps = list229; reference177 = obj139; questRoot25.QuestSequence = list213; @@ -423678,16 +348634,12 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 1; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + ref QuestSequence reference = ref CollectionsMarshal.AsSpan(list2)[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -423695,9 +348647,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048390u, new Vector3(15.243713f, -14.000001f, 85.83191f), 1185); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048390u, new Vector3(15.243713f, -14.000001f, 85.83191f), 1185); obj.Steps = list3; reference = obj; questRoot.QuestSequence = list2; @@ -423707,26 +348657,20 @@ public static class AssemblyQuestLoader num = 1; List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); - Span span4 = CollectionsMarshal.AsSpan(list4); - index = 0; - span4[index] = "liza"; + CollectionsMarshal.AsSpan(list4)[0] = "liza"; questRoot2.Author = list4; - index = 1; - List list5 = new List(index); - CollectionsMarshal.SetCount(list5, index); - Span span5 = CollectionsMarshal.AsSpan(list5); - num = 0; - ref QuestSequence reference2 = ref span5[num]; + num = 1; + List list5 = new List(num); + CollectionsMarshal.SetCount(list5, num); + ref QuestSequence reference2 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestSequence obj2 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj2.Steps = list6; reference2 = obj2; questRoot2.QuestSequence = list5; @@ -423736,16 +348680,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "liza"; + CollectionsMarshal.AsSpan(list7)[0] = "liza"; questRoot3.Author = list7; - index = 2; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference3 = ref span8[num]; + num = 2; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference3 = ref span[0]; QuestSequence obj3 = new QuestSequence { Sequence = 0 @@ -423753,9 +348694,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051454u, new Vector3(376.2417f, 50.749996f, 148.51599f), 1186) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051454u, new Vector3(376.2417f, 50.749996f, 148.51599f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -423773,18 +348712,15 @@ public static class AssemblyQuestLoader }; obj3.Steps = list9; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span8[num]; + ref QuestSequence reference4 = ref span[1]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -423797,16 +348733,12 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "liza"; + CollectionsMarshal.AsSpan(list11)[0] = "liza"; questRoot4.Author = list11; - index = 1; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference5 = ref span12[num]; + num = 1; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + ref QuestSequence reference5 = ref CollectionsMarshal.AsSpan(list12)[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -423814,9 +348746,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048510u, new Vector3(28.67163f, 50.13025f, -40.940002f), 1185); + CollectionsMarshal.AsSpan(list13)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048510u, new Vector3(28.67163f, 50.13025f, -40.940002f), 1185); obj5.Steps = list13; reference5 = obj5; questRoot4.QuestSequence = list12; @@ -423826,26 +348756,20 @@ public static class AssemblyQuestLoader num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span14 = CollectionsMarshal.AsSpan(list14); - index = 0; - span14[index] = "liza"; + CollectionsMarshal.AsSpan(list14)[0] = "liza"; questRoot5.Author = list14; - index = 1; - List list15 = new List(index); - CollectionsMarshal.SetCount(list15, index); - Span span15 = CollectionsMarshal.AsSpan(list15); - num = 0; - ref QuestSequence reference6 = ref span15[num]; + num = 1; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + ref QuestSequence reference6 = ref CollectionsMarshal.AsSpan(list15)[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj6.Steps = list16; reference6 = obj6; questRoot5.QuestSequence = list15; @@ -423855,16 +348779,12 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot6.Author = list17; - index = 1; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference7 = ref span18[num]; + num = 1; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + ref QuestSequence reference7 = ref CollectionsMarshal.AsSpan(list18)[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -423872,9 +348792,7 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049088u, new Vector3(-157.64093f, 0.9219527f, -38.132385f), 1186); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049088u, new Vector3(-157.64093f, 0.9219527f, -38.132385f), 1186); obj7.Steps = list19; reference7 = obj7; questRoot6.QuestSequence = list18; @@ -423884,30 +348802,24 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot7.Author = list20; - index = 2; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference8 = ref span21[num]; + num = 2; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span2 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference8 = ref span2[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj8.Steps = list22; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span21[num]; + ref QuestSequence reference9 = ref span2[1]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue @@ -423915,9 +348827,7 @@ public static class AssemblyQuestLoader num2 = 1; List list23 = new List(num2); CollectionsMarshal.SetCount(list23, num2); - Span span23 = CollectionsMarshal.AsSpan(list23); - index2 = 0; - span23[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + CollectionsMarshal.AsSpan(list23)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { NextQuestId = new QuestId(5010) }; @@ -423930,30 +348840,24 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot8.Author = list24; - index = 3; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference10 = ref span25[num]; + num = 3; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span3 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference10 = ref span3[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj10.Steps = list26; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span25[num]; + ref QuestSequence reference11 = ref span3[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 @@ -423961,23 +348865,18 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1051414u, new Vector3(-90.348694f, -19.6019f, 212.54285f), 1185); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1051414u, new Vector3(-90.348694f, -19.6019f, 212.54285f), 1185); obj11.Steps = list27; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span25[num]; + ref QuestSequence reference12 = ref span3[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5011) }; @@ -423990,16 +348889,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "liza"; + CollectionsMarshal.AsSpan(list29)[0] = "liza"; questRoot9.Author = list29; - index = 5; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference13 = ref span30[num]; + num = 5; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span4 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference13 = ref span4[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 @@ -424007,30 +348903,24 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185); obj13.Steps = list31; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span30[num]; + ref QuestSequence reference14 = ref span4[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj14.Steps = list32; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span30[num]; + ref QuestSequence reference15 = ref span4[2]; QuestSequence obj15 = new QuestSequence { Sequence = 2 @@ -424038,9 +348928,8 @@ public static class AssemblyQuestLoader num2 = 2; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.20557f, 38.80659f, -459.1674f), 1186) + Span span5 = CollectionsMarshal.AsSpan(list33); + span5[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-65.20557f, 38.80659f, -459.1674f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -424049,22 +348938,18 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResolution } }; - index2++; - span33[index2] = new QuestStep(EInteractionType.Interact, 1049180u, new Vector3(-67.27704f, 38.80659f, -459.22028f), 1186); + span5[1] = new QuestStep(EInteractionType.Interact, 1049180u, new Vector3(-67.27704f, 38.80659f, -459.22028f), 1186); obj15.Steps = list33; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span30[num]; + ref QuestSequence reference16 = ref span4[3]; QuestSequence obj16 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -424074,8 +348959,7 @@ public static class AssemblyQuestLoader }; obj16.Steps = list34; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span30[num]; + ref QuestSequence reference17 = ref span4[4]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -424083,9 +348967,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048541u, new Vector3(23.5141f, -14f, 137.40747f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -424104,30 +348986,24 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot10.Author = list36; - index = 3; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference18 = ref span37[num]; + num = 3; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span6 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference18 = ref span6[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj18.Steps = list38; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span37[num]; + ref QuestSequence reference19 = ref span6[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -424135,9 +349011,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051415u, new Vector3(-400.351f, 14.029996f, 112.26062f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -424148,18 +349022,15 @@ public static class AssemblyQuestLoader }; obj19.Steps = list39; reference19 = obj19; - num++; - ref QuestSequence reference20 = ref span37[num]; + ref QuestSequence reference20 = ref span6[2]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -424177,16 +349048,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot11.Author = list41; - index = 6; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference21 = ref span42[num]; + num = 6; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span7 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference21 = ref span7[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -424194,9 +349062,7 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051434u, new Vector3(28.580078f, -14f, 75.66943f), 1185) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051434u, new Vector3(28.580078f, -14f, 75.66943f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -424209,26 +349075,22 @@ public static class AssemblyQuestLoader }; obj21.Steps = list43; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span42[num]; + ref QuestSequence reference22 = ref span7[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; obj22.Steps = list44; reference22 = obj22; - num++; - ref QuestSequence reference23 = ref span42[num]; + ref QuestSequence reference23 = ref span7[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -424236,9 +349098,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.Duty, null, null, 1190) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.Duty, null, null, 1190) { DutyOptions = new DutyOptions { @@ -424247,18 +349107,15 @@ public static class AssemblyQuestLoader }; obj23.Steps = list45; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span42[num]; + ref QuestSequence reference24 = ref span7[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan, @@ -424272,8 +349129,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list46; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span42[num]; + ref QuestSequence reference25 = ref span7[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -424281,9 +349137,7 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1051436u, new Vector3(476.73767f, 114.935f, 661.6769f), 1187) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1051436u, new Vector3(476.73767f, 114.935f, 661.6769f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, SkipConditions = new SkipConditions @@ -424296,18 +349150,15 @@ public static class AssemblyQuestLoader }; obj25.Steps = list47; reference25 = obj25; - num++; - ref QuestSequence reference26 = ref span42[num]; + ref QuestSequence reference26 = ref span7[5]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -424328,16 +349179,13 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot12.Author = list49; - index = 6; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference27 = ref span50[num]; + num = 6; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span8 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference27 = ref span8[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -424345,9 +349193,7 @@ public static class AssemblyQuestLoader num2 = 1; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) + CollectionsMarshal.AsSpan(list51)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051440u, new Vector3(305.01257f, 51.199978f, 198.07727f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -424365,18 +349211,15 @@ public static class AssemblyQuestLoader }; obj27.Steps = list51; reference27 = obj27; - num++; - ref QuestSequence reference28 = ref span50[num]; + ref QuestSequence reference28 = ref span8[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, SkipConditions = new SkipConditions @@ -424389,8 +349232,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list52; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span50[num]; + ref QuestSequence reference29 = ref span8[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -424398,9 +349240,8 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) + Span span9 = CollectionsMarshal.AsSpan(list53); + span9[0] = new QuestStep(EInteractionType.Interact, 1048243u, new Vector3(57.87744f, 53.200012f, 772.03015f), 1192) { TargetTerritoryId = (ushort)1192, SkipConditions = new SkipConditions @@ -424411,8 +349252,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span53[index2] = new QuestStep(EInteractionType.Interact, 1051443u, new Vector3(614.28235f, 9.022843f, 610.13184f), 1192) + span9[1] = new QuestStep(EInteractionType.Interact, 1051443u, new Vector3(614.28235f, 9.022843f, 610.13184f), 1192) { Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, @@ -424426,18 +349266,15 @@ public static class AssemblyQuestLoader }; obj29.Steps = list53; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span50[num]; + ref QuestSequence reference30 = ref span8[3]; QuestSequence obj30 = new QuestSequence { Sequence = 3 }; - 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) + num2 = 1; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + CollectionsMarshal.AsSpan(list54)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -424446,8 +349283,7 @@ public static class AssemblyQuestLoader }; obj30.Steps = list54; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span50[num]; + ref QuestSequence reference31 = ref span8[4]; QuestSequence obj31 = new QuestSequence { Sequence = 4 @@ -424455,9 +349291,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1051442u, new Vector3(613.76355f, 9.022844f, 612.1156f), 1192) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1051442u, new Vector3(613.76355f, 9.022844f, 612.1156f), 1192) { StopDistance = 7f, Fly = true, @@ -424472,18 +349306,15 @@ public static class AssemblyQuestLoader }; obj31.Steps = list55; reference31 = obj31; - num++; - ref QuestSequence reference32 = ref span50[num]; + ref QuestSequence reference32 = ref span8[5]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -424501,18 +349332,15 @@ public static class AssemblyQuestLoader num = 1; List list57 = new List(num); CollectionsMarshal.SetCount(list57, num); - Span span57 = CollectionsMarshal.AsSpan(list57); - index = 0; - span57[index] = "liza"; + CollectionsMarshal.AsSpan(list57)[0] = "liza"; questRoot13.Author = list57; questRoot13.IsSeasonalQuest = true; questRoot13.SeasonalQuestExpiry = new DateTime(2024, 9, 11, 0, 0, 0, DateTimeKind.Utc); - index = 6; - List list58 = new List(index); - CollectionsMarshal.SetCount(list58, index); - Span span58 = CollectionsMarshal.AsSpan(list58); - num = 0; - ref QuestSequence reference33 = ref span58[num]; + num = 6; + List list58 = new List(num); + CollectionsMarshal.SetCount(list58, num); + Span span10 = CollectionsMarshal.AsSpan(list58); + ref QuestSequence reference33 = ref span10[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -424520,9 +349348,7 @@ public static class AssemblyQuestLoader num2 = 1; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - ref QuestStep reference34 = ref span59[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list59)[0]; QuestStep obj34 = new QuestStep(EInteractionType.AcceptQuest, 1050998u, new Vector3(4.0131226f, 44.499996f, 126.17676f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -424540,27 +349366,22 @@ public static class AssemblyQuestLoader int num3 = 1; List list60 = new List(num3); CollectionsMarshal.SetCount(list60, num3); - Span span60 = CollectionsMarshal.AsSpan(list60); - int index3 = 0; - span60[index3] = 128; + CollectionsMarshal.AsSpan(list60)[0] = 128; obj35.InTerritory = list60; skipConditions.AetheryteShortcutIf = obj35; obj34.SkipConditions = skipConditions; reference34 = obj34; obj33.Steps = list59; reference33 = obj33; - num++; - ref QuestSequence reference35 = ref span58[num]; + ref QuestSequence reference35 = ref span10[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -424570,8 +349391,7 @@ public static class AssemblyQuestLoader }; obj36.Steps = list61; reference35 = obj36; - num++; - ref QuestSequence reference36 = ref span58[num]; + ref QuestSequence reference36 = ref span10[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 @@ -424579,9 +349399,7 @@ public static class AssemblyQuestLoader num2 = 1; List list62 = new List(num2); CollectionsMarshal.SetCount(list62, num2); - Span span62 = CollectionsMarshal.AsSpan(list62); - index2 = 0; - span62[index2] = new QuestStep(EInteractionType.Interact, 1051000u, new Vector3(-100.175476f, 18.00033f, -15.030151f), 129) + CollectionsMarshal.AsSpan(list62)[0] = new QuestStep(EInteractionType.Interact, 1051000u, new Vector3(-100.175476f, 18.00033f, -15.030151f), 129) { AethernetShortcut = new AethernetShortcut { @@ -424591,104 +349409,74 @@ public static class AssemblyQuestLoader }; obj37.Steps = list62; reference36 = obj37; - num++; - ref QuestSequence reference37 = ref span58[num]; + ref QuestSequence reference37 = ref span10[3]; QuestSequence obj38 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list63 = new List(index2); - CollectionsMarshal.SetCount(list63, index2); - Span span63 = CollectionsMarshal.AsSpan(list63); - num2 = 0; - ref QuestStep reference38 = ref span63[num2]; + num2 = 4; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span11 = CollectionsMarshal.AsSpan(list63); + ref QuestStep reference38 = ref span11[0]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1001217u, new Vector3(-140.85602f, 18.199999f, 17.013733f), 129); - 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); + 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); questStep.CompletionQuestVariablesFlags = list64; reference38 = questStep; - num2++; - ref QuestStep reference39 = ref span63[num2]; + ref QuestStep reference39 = ref span11[1]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list65; reference39 = questStep2; - num2++; - ref QuestStep reference40 = ref span63[num2]; + ref QuestStep reference40 = ref span11[2]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1051002u, new Vector3(-205.005f, 15.999994f, 71.97681f), 129); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list66; reference40 = questStep3; - num2++; - ref QuestStep reference41 = ref span63[num2]; + ref QuestStep reference41 = ref span11[3]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list67; reference41 = questStep4; obj38.Steps = list63; reference37 = obj38; - num++; - ref QuestSequence reference42 = ref span58[num]; + ref QuestSequence reference42 = ref span10[4]; QuestSequence obj39 = new QuestSequence { Sequence = 4 @@ -424696,9 +349484,7 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.Interact, 2014209u, new Vector3(-385.1225f, 5.996765f, 33.707153f), 129) + CollectionsMarshal.AsSpan(list68)[0] = new QuestStep(EInteractionType.Interact, 2014209u, new Vector3(-385.1225f, 5.996765f, 33.707153f), 129) { AethernetShortcut = new AethernetShortcut { @@ -424708,18 +349494,15 @@ public static class AssemblyQuestLoader }; obj39.Steps = list68; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span58[num]; + ref QuestSequence reference43 = ref span10[5]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -424737,18 +349520,15 @@ public static class AssemblyQuestLoader num = 1; List list70 = new List(num); CollectionsMarshal.SetCount(list70, num); - Span span70 = CollectionsMarshal.AsSpan(list70); - index = 0; - span70[index] = "liza"; + CollectionsMarshal.AsSpan(list70)[0] = "liza"; questRoot14.Author = list70; questRoot14.IsSeasonalQuest = true; questRoot14.SeasonalQuestExpiry = new DateTime(2024, 9, 11, 0, 0, 0, DateTimeKind.Utc); - index = 6; - List list71 = new List(index); - CollectionsMarshal.SetCount(list71, index); - Span span71 = CollectionsMarshal.AsSpan(list71); - num = 0; - ref QuestSequence reference44 = ref span71[num]; + num = 6; + List list71 = new List(num); + CollectionsMarshal.SetCount(list71, num); + Span span16 = CollectionsMarshal.AsSpan(list71); + ref QuestSequence reference44 = ref span16[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 @@ -424756,9 +349536,7 @@ public static class AssemblyQuestLoader num2 = 1; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - ref QuestStep reference45 = ref span72[index2]; + ref QuestStep reference45 = ref CollectionsMarshal.AsSpan(list72)[0]; QuestStep obj42 = new QuestStep(EInteractionType.AcceptQuest, 1051007u, new Vector3(2.2735596f, 44.499992f, 125.200195f), 128) { StopDistance = 5f, @@ -424774,30 +349552,25 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list73 = new List(index3); - CollectionsMarshal.SetCount(list73, index3); - Span span73 = CollectionsMarshal.AsSpan(list73); - num3 = 0; - span73[num3] = 128; + num3 = 1; + List list73 = new List(num3); + CollectionsMarshal.SetCount(list73, num3); + CollectionsMarshal.AsSpan(list73)[0] = 128; obj43.InTerritory = list73; skipConditions2.AetheryteShortcutIf = obj43; obj42.SkipConditions = skipConditions2; reference45 = obj42; obj41.Steps = list72; reference44 = obj41; - num++; - ref QuestSequence reference46 = ref span71[num]; + ref QuestSequence reference46 = ref span16[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -424807,8 +349580,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list74; reference46 = obj44; - num++; - ref QuestSequence reference47 = ref span71[num]; + ref QuestSequence reference47 = ref span16[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -424816,26 +349588,21 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.Interact, 1051009u, new Vector3(1.5106201f, 44f, -205.8595f), 128) + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.Interact, 1051009u, new Vector3(1.5106201f, 44f, -205.8595f), 128) { StopDistance = 5f }; obj45.Steps = list75; reference47 = obj45; - num++; - ref QuestSequence reference48 = ref span71[num]; + ref QuestSequence reference48 = ref span16[3]; QuestSequence obj46 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -424845,8 +349612,7 @@ public static class AssemblyQuestLoader }; obj46.Steps = list76; reference48 = obj46; - num++; - ref QuestSequence reference49 = ref span71[num]; + ref QuestSequence reference49 = ref span16[4]; QuestSequence obj47 = new QuestSequence { Sequence = 4 @@ -424854,26 +349620,21 @@ public static class AssemblyQuestLoader num2 = 1; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - span77[index2] = new QuestStep(EInteractionType.Interact, 1051010u, new Vector3(-178.11859f, 40.999958f, 184.67993f), 128) + CollectionsMarshal.AsSpan(list77)[0] = new QuestStep(EInteractionType.Interact, 1051010u, new Vector3(-178.11859f, 40.999958f, 184.67993f), 128) { StopDistance = 5f }; obj47.Steps = list77; reference49 = obj47; - num++; - ref QuestSequence reference50 = ref span71[num]; + ref QuestSequence reference50 = ref span16[5]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list78 = new List(index2); - CollectionsMarshal.SetCount(list78, index2); - Span span78 = CollectionsMarshal.AsSpan(list78); - num2 = 0; - ref QuestStep reference51 = ref span78[num2]; + num2 = 1; + List list78 = new List(num2); + CollectionsMarshal.SetCount(list78, num2); + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list78)[0]; QuestStep obj49 = new QuestStep(EInteractionType.CompleteQuest, 1051011u, new Vector3(-178.63745f, 40.999916f, 186.3584f), 128) { StopDistance = 7f @@ -424881,9 +349642,7 @@ public static class AssemblyQuestLoader num3 = 1; List list79 = new List(num3); CollectionsMarshal.SetCount(list79, num3); - Span span79 = CollectionsMarshal.AsSpan(list79); - index3 = 0; - span79[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list79)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESANX002_05016_Q52_000_082") @@ -424899,16 +349658,13 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot15.Author = list80; - index = 3; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference52 = ref span81[num]; + num = 3; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span17 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference52 = ref span17[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -424916,27 +349672,21 @@ public static class AssemblyQuestLoader num2 = 1; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); + CollectionsMarshal.AsSpan(list82)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); obj50.Steps = list82; reference52 = obj50; - num++; - ref QuestSequence reference53 = ref span81[num]; + ref QuestSequence reference53 = ref span17[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj51.Steps = list83; reference53 = obj51; - num++; - ref QuestSequence reference54 = ref span81[num]; + ref QuestSequence reference54 = ref span17[2]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -424944,9 +349694,7 @@ public static class AssemblyQuestLoader num2 = 1; List list84 = new List(num2); CollectionsMarshal.SetCount(list84, num2); - Span span84 = CollectionsMarshal.AsSpan(list84); - index2 = 0; - span84[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); + CollectionsMarshal.AsSpan(list84)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050728u, new Vector3(50.125854f, 47f, -330.40363f), 1185); obj52.Steps = list84; reference54 = obj52; questRoot15.QuestSequence = list81; @@ -424956,30 +349704,24 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "liza"; + CollectionsMarshal.AsSpan(list85)[0] = "liza"; questRoot16.Author = list85; - index = 4; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference55 = ref span86[num]; + num = 4; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span18 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference55 = ref span18[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj53.Steps = list87; reference55 = obj53; - num++; - ref QuestSequence reference56 = ref span86[num]; + ref QuestSequence reference56 = ref span18[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -424987,9 +349729,7 @@ public static class AssemblyQuestLoader num2 = 1; List list88 = new List(num2); CollectionsMarshal.SetCount(list88, num2); - Span span88 = CollectionsMarshal.AsSpan(list88); - index2 = 0; - span88[index2] = new QuestStep(EInteractionType.Interact, 1050733u, new Vector3(-16.83075f, -10.000011f, 93.12573f), 1185) + CollectionsMarshal.AsSpan(list88)[0] = new QuestStep(EInteractionType.Interact, 1050733u, new Vector3(-16.83075f, -10.000011f, 93.12573f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -424999,25 +349739,20 @@ public static class AssemblyQuestLoader }; obj54.Steps = list88; reference56 = obj54; - num++; - ref QuestSequence reference57 = ref span86[num]; + ref QuestSequence reference57 = ref span18[2]; QuestSequence obj55 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list89 = new List(index2); - CollectionsMarshal.SetCount(list89, index2); - Span span89 = CollectionsMarshal.AsSpan(list89); - num2 = 0; - ref QuestStep reference58 = ref span89[num2]; + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1050734u, new Vector3(79.301025f, -17.964588f, 199.57275f), 1185); - index3 = 1; - List list90 = new List(index3); - CollectionsMarshal.SetCount(list90, index3); - Span span90 = CollectionsMarshal.AsSpan(list90); - num3 = 0; - span90[num3] = new DialogueChoice + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA002_05018_Q1_000_000"), @@ -425027,8 +349762,7 @@ public static class AssemblyQuestLoader reference58 = questStep5; obj55.Steps = list89; reference57 = obj55; - num++; - ref QuestSequence reference59 = ref span86[num]; + ref QuestSequence reference59 = ref span18[3]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue @@ -425036,9 +349770,7 @@ public static class AssemblyQuestLoader num2 = 1; List list91 = new List(num2); CollectionsMarshal.SetCount(list91, num2); - Span span91 = CollectionsMarshal.AsSpan(list91); - index2 = 0; - span91[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185) + CollectionsMarshal.AsSpan(list91)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048459u, new Vector3(-394.43048f, 11f, 3.5552979f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -425055,30 +349787,24 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "liza"; + CollectionsMarshal.AsSpan(list92)[0] = "liza"; questRoot17.Author = list92; - index = 5; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference60 = ref span93[num]; + num = 5; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span19 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference60 = ref span19[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj57.Steps = list94; reference60 = obj57; - num++; - ref QuestSequence reference61 = ref span93[num]; + ref QuestSequence reference61 = ref span19[1]; QuestSequence obj58 = new QuestSequence { Sequence = 1 @@ -425086,30 +349812,24 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.Interact, 1050736u, new Vector3(31.47937f, -17.9643f, 167.46765f), 1185) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.Interact, 1050736u, new Vector3(31.47937f, -17.9643f, 167.46765f), 1185) { StopDistance = 2f }; obj58.Steps = list95; reference61 = obj58; - num++; - ref QuestSequence reference62 = ref span93[num]; + ref QuestSequence reference62 = ref span19[2]; QuestSequence obj59 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj59.Steps = list96; reference62 = obj59; - num++; - ref QuestSequence reference63 = ref span93[num]; + ref QuestSequence reference63 = ref span19[3]; QuestSequence obj60 = new QuestSequence { Sequence = 3 @@ -425117,23 +349837,18 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.Interact, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.Interact, 1050737u, new Vector3(87.57141f, -14f, 52.384155f), 1185); obj60.Steps = list97; reference63 = obj60; - num++; - ref QuestSequence reference64 = ref span93[num]; + ref QuestSequence reference64 = ref span19[4]; QuestSequence obj61 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj61.Steps = list98; reference64 = obj61; questRoot17.QuestSequence = list93; @@ -425143,16 +349858,13 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot18.Author = list99; - index = 5; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference65 = ref span100[num]; + num = 5; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span20 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference65 = ref span20[0]; QuestSequence obj62 = new QuestSequence { Sequence = 0 @@ -425160,27 +349872,21 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051038u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051038u, new Vector3(153.94824f, -17.9645f, 95.384155f), 1185); obj62.Steps = list101; reference65 = obj62; - num++; - ref QuestSequence reference66 = ref span100[num]; + ref QuestSequence reference66 = ref span20[1]; QuestSequence obj63 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj63.Steps = list102; reference66 = obj63; - num++; - ref QuestSequence reference67 = ref span100[num]; + ref QuestSequence reference67 = ref span20[2]; QuestSequence obj64 = new QuestSequence { Sequence = 2 @@ -425188,91 +349894,66 @@ public static class AssemblyQuestLoader num2 = 3; List list103 = new List(num2); CollectionsMarshal.SetCount(list103, num2); - Span span103 = CollectionsMarshal.AsSpan(list103); - index2 = 0; - ref QuestStep reference68 = ref span103[index2]; + Span span21 = CollectionsMarshal.AsSpan(list103); + ref QuestStep reference68 = ref span21[0]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list104; reference68 = questStep6; - index2++; - ref QuestStep reference69 = ref span103[index2]; + ref QuestStep reference69 = ref span21[1]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1051027u, new Vector3(12.527649f, -10.00001f, 35.599243f), 1185); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list105; reference69 = questStep7; - index2++; - ref QuestStep reference70 = ref span103[index2]; + ref QuestStep reference70 = ref span21[2]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list106; reference70 = questStep8; obj64.Steps = list103; reference67 = obj64; - num++; - ref QuestSequence reference71 = ref span100[num]; + ref QuestSequence reference71 = ref span20[3]; QuestSequence obj65 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f }; obj65.Steps = list107; reference71 = obj65; - num++; - ref QuestSequence reference72 = ref span100[num]; + ref QuestSequence reference72 = ref span20[4]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue @@ -425280,9 +349961,7 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051029u, new Vector3(-249.77496f, -9.2517585E-06f, 138.01782f), 1185); + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051029u, new Vector3(-249.77496f, -9.2517585E-06f, 138.01782f), 1185); obj66.Steps = list108; reference72 = obj66; questRoot18.QuestSequence = list100; @@ -425292,30 +349971,24 @@ public static class AssemblyQuestLoader num = 1; List list109 = new List(num); CollectionsMarshal.SetCount(list109, num); - Span span109 = CollectionsMarshal.AsSpan(list109); - index = 0; - span109[index] = "liza"; + CollectionsMarshal.AsSpan(list109)[0] = "liza"; questRoot19.Author = list109; - index = 3; - List list110 = new List(index); - CollectionsMarshal.SetCount(list110, index); - Span span110 = CollectionsMarshal.AsSpan(list110); - num = 0; - ref QuestSequence reference73 = ref span110[num]; + num = 3; + List list110 = new List(num); + CollectionsMarshal.SetCount(list110, num); + Span span25 = CollectionsMarshal.AsSpan(list110); + ref QuestSequence reference73 = ref span25[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj67.Steps = list111; reference73 = obj67; - num++; - ref QuestSequence reference74 = ref span110[num]; + ref QuestSequence reference74 = ref span25[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -425323,23 +349996,18 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.Interact, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.Interact, 1051030u, new Vector3(-227.64941f, 40.075134f, -25.436829f), 1185); obj68.Steps = list112; reference74 = obj68; - num++; - ref QuestSequence reference75 = ref span110[num]; + ref QuestSequence reference75 = ref span25[2]; QuestSequence obj69 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj69.Steps = list113; reference75 = obj69; questRoot19.QuestSequence = list110; @@ -425349,16 +350017,13 @@ public static class AssemblyQuestLoader num = 1; List list114 = new List(num); CollectionsMarshal.SetCount(list114, num); - Span span114 = CollectionsMarshal.AsSpan(list114); - index = 0; - span114[index] = "liza"; + CollectionsMarshal.AsSpan(list114)[0] = "liza"; questRoot20.Author = list114; - index = 5; - List list115 = new List(index); - CollectionsMarshal.SetCount(list115, index); - Span span115 = CollectionsMarshal.AsSpan(list115); - num = 0; - ref QuestSequence reference76 = ref span115[num]; + num = 5; + List list115 = new List(num); + CollectionsMarshal.SetCount(list115, num); + Span span26 = CollectionsMarshal.AsSpan(list115); + ref QuestSequence reference76 = ref span26[0]; QuestSequence obj70 = new QuestSequence { Sequence = 0 @@ -425366,27 +350031,21 @@ public static class AssemblyQuestLoader num2 = 1; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - span116[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); + CollectionsMarshal.AsSpan(list116)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); obj70.Steps = list116; reference76 = obj70; - num++; - ref QuestSequence reference77 = ref span115[num]; + ref QuestSequence reference77 = ref span26[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj71.Steps = list117; reference77 = obj71; - num++; - ref QuestSequence reference78 = ref span115[num]; + ref QuestSequence reference78 = ref span26[2]; QuestSequence obj72 = new QuestSequence { Sequence = 2 @@ -425394,32 +350053,26 @@ public static class AssemblyQuestLoader num2 = 2; List list118 = new List(num2); CollectionsMarshal.SetCount(list118, num2); - Span span118 = CollectionsMarshal.AsSpan(list118); - index2 = 0; - span118[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-290.98425f, -9.417534E-06f, 179.37634f), 1185) + Span span27 = CollectionsMarshal.AsSpan(list118); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-290.98425f, -9.417534E-06f, 179.37634f), 1185) { DisableNavmesh = true }; - index2++; - span118[index2] = new QuestStep(EInteractionType.Interact, 2014234u, new Vector3(-272.84656f, -0.015319824f, 191.39392f), 1185); + span27[1] = new QuestStep(EInteractionType.Interact, 2014234u, new Vector3(-272.84656f, -0.015319824f, 191.39392f), 1185); obj72.Steps = list118; reference78 = obj72; - num++; - ref QuestSequence reference79 = ref span115[num]; + ref QuestSequence reference79 = ref span26[3]; QuestSequence obj73 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj73.Steps = list119; reference79 = obj73; - num++; - ref QuestSequence reference80 = ref span115[num]; + ref QuestSequence reference80 = ref span26[4]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue @@ -425427,9 +350080,7 @@ public static class AssemblyQuestLoader num2 = 1; List list120 = new List(num2); CollectionsMarshal.SetCount(list120, num2); - Span span120 = CollectionsMarshal.AsSpan(list120); - index2 = 0; - span120[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); + CollectionsMarshal.AsSpan(list120)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051032u, new Vector3(-259.05243f, 2.127327E-05f, 116.13635f), 1185); obj74.Steps = list120; reference80 = obj74; questRoot20.QuestSequence = list115; @@ -425439,30 +350090,24 @@ public static class AssemblyQuestLoader num = 1; List list121 = new List(num); CollectionsMarshal.SetCount(list121, num); - Span span121 = CollectionsMarshal.AsSpan(list121); - index = 0; - span121[index] = "liza"; + CollectionsMarshal.AsSpan(list121)[0] = "liza"; questRoot21.Author = list121; - index = 3; - List list122 = new List(index); - CollectionsMarshal.SetCount(list122, index); - Span span122 = CollectionsMarshal.AsSpan(list122); - num = 0; - ref QuestSequence reference81 = ref span122[num]; + num = 3; + List list122 = new List(num); + CollectionsMarshal.SetCount(list122, num); + Span span28 = CollectionsMarshal.AsSpan(list122); + ref QuestSequence reference81 = ref span28[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj75.Steps = list123; reference81 = obj75; - num++; - ref QuestSequence reference82 = ref span122[num]; + ref QuestSequence reference82 = ref span28[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 @@ -425470,9 +350115,8 @@ public static class AssemblyQuestLoader num2 = 2; List list124 = new List(num2); CollectionsMarshal.SetCount(list124, num2); - Span span124 = CollectionsMarshal.AsSpan(list124); - index2 = 0; - ref QuestStep reference83 = ref span124[index2]; + Span span29 = CollectionsMarshal.AsSpan(list124); + ref QuestStep reference83 = ref span29[0]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1051036u, new Vector3(-134.72198f, 45.35523f, 52.20105f), 1185) { AethernetShortcut = new AethernetShortcut @@ -425481,59 +350125,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - 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); + 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); obj77.CompletionQuestVariablesFlags = list125; reference83 = obj77; - index2++; - ref QuestStep reference84 = ref span124[index2]; + ref QuestStep reference84 = ref span29[1]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list126; reference84 = questStep9; obj76.Steps = list124; reference82 = obj76; - num++; - ref QuestSequence reference85 = ref span122[num]; + ref QuestSequence reference85 = ref span28[2]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -425550,16 +350178,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot22.Author = list128; - index = 3; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference86 = ref span129[num]; + num = 3; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span32 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference86 = ref span32[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -425567,70 +350192,52 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); obj79.Steps = list130; reference86 = obj79; - num++; - ref QuestSequence reference87 = ref span129[num]; + ref QuestSequence reference87 = ref span32[1]; QuestSequence obj80 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list131 = new List(index2); - CollectionsMarshal.SetCount(list131, index2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num2 = 0; - ref QuestStep reference88 = ref span131[num2]; + num2 = 2; + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + Span span33 = CollectionsMarshal.AsSpan(list131); + ref QuestStep reference88 = ref span33[0]; QuestStep obj81 = new QuestStep(EInteractionType.Interact, 1048431u, new Vector3(88.48706f, -14f, 56.687256f), 1185) { StopDistance = 4f }; - 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); + 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); obj81.CompletionQuestVariablesFlags = list132; reference88 = obj81; - num2++; - ref QuestStep reference89 = ref span131[num2]; + ref QuestStep reference89 = ref span33[1]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list133; reference89 = questStep10; obj80.Steps = list131; reference87 = obj80; - num++; - ref QuestSequence reference90 = ref span129[num]; + ref QuestSequence reference90 = ref span32[2]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue @@ -425638,9 +350245,7 @@ public static class AssemblyQuestLoader num2 = 1; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - index2 = 0; - span134[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); + CollectionsMarshal.AsSpan(list134)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048509u, new Vector3(181.44495f, 40.99999f, -66.63617f), 1185); obj82.Steps = list134; reference90 = obj82; questRoot22.QuestSequence = list129; @@ -425650,33 +350255,26 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "liza"; + CollectionsMarshal.AsSpan(list135)[0] = "liza"; questRoot23.Author = list135; - index = 3; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference91 = ref span136[num]; + num = 3; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span36 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference91 = ref span36[0]; QuestSequence obj83 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + ref QuestStep reference92 = ref CollectionsMarshal.AsSpan(list137)[0]; QuestStep questStep11 = new QuestStep(EInteractionType.AcceptQuest, 1051039u, new Vector3(17.593567f, -17.942173f, 153.06323f), 1185); - index3 = 1; - List list138 = new List(index3); - CollectionsMarshal.SetCount(list138, index3); - Span span138 = CollectionsMarshal.AsSpan(list138); - num3 = 0; - span138[num3] = new DialogueChoice + num3 = 1; + List list138 = new List(num3); + CollectionsMarshal.SetCount(list138, num3); + CollectionsMarshal.AsSpan(list138)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA009_05025_Q1_000_000"), @@ -425686,8 +350284,7 @@ public static class AssemblyQuestLoader reference92 = questStep11; obj83.Steps = list137; reference91 = obj83; - num++; - ref QuestSequence reference93 = ref span136[num]; + ref QuestSequence reference93 = ref span36[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 @@ -425695,9 +350292,7 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1051040u, new Vector3(-169.93976f, 59.999985f, -54.703613f), 1185) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1051040u, new Vector3(-169.93976f, 59.999985f, -54.703613f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -425707,18 +350302,15 @@ public static class AssemblyQuestLoader }; obj84.Steps = list139; reference93 = obj84; - num++; - ref QuestSequence reference94 = ref span136[num]; + ref QuestSequence reference94 = ref span36[2]; QuestSequence obj85 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -425735,16 +350327,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot24.Author = list141; - index = 5; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference95 = ref span142[num]; + num = 5; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span37 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference95 = ref span37[0]; QuestSequence obj86 = new QuestSequence { Sequence = 0 @@ -425752,23 +350341,18 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185); obj86.Steps = list143; reference95 = obj86; - num++; - ref QuestSequence reference96 = ref span142[num]; + ref QuestSequence reference96 = ref span37[1]; QuestSequence obj87 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -425778,8 +350362,7 @@ public static class AssemblyQuestLoader }; obj87.Steps = list144; reference96 = obj87; - num++; - ref QuestSequence reference97 = ref span142[num]; + ref QuestSequence reference97 = ref span37[2]; QuestSequence obj88 = new QuestSequence { Sequence = 2 @@ -425787,23 +350370,18 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.Interact, 2014236u, new Vector3(-154.34503f, -14.084106f, 548.24133f), 1185); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.Interact, 2014236u, new Vector3(-154.34503f, -14.084106f, 548.24133f), 1185); obj88.Steps = list145; reference97 = obj88; - num++; - ref QuestSequence reference98 = ref span142[num]; + ref QuestSequence reference98 = ref span37[3]; QuestSequence obj89 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -425814,8 +350392,7 @@ public static class AssemblyQuestLoader }; obj89.Steps = list146; reference98 = obj89; - num++; - ref QuestSequence reference99 = ref span142[num]; + ref QuestSequence reference99 = ref span37[4]; QuestSequence obj90 = new QuestSequence { Sequence = byte.MaxValue @@ -425823,9 +350400,7 @@ public static class AssemblyQuestLoader num2 = 1; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - span147[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185) + CollectionsMarshal.AsSpan(list147)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051042u, new Vector3(100.38904f, 47f, -230.27393f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -425842,30 +350417,24 @@ public static class AssemblyQuestLoader num = 1; List list148 = new List(num); CollectionsMarshal.SetCount(list148, num); - Span span148 = CollectionsMarshal.AsSpan(list148); - index = 0; - span148[index] = "liza"; + CollectionsMarshal.AsSpan(list148)[0] = "liza"; questRoot25.Author = list148; - index = 3; - List list149 = new List(index); - CollectionsMarshal.SetCount(list149, index); - Span span149 = CollectionsMarshal.AsSpan(list149); - num = 0; - ref QuestSequence reference100 = ref span149[num]; + num = 3; + List list149 = new List(num); + CollectionsMarshal.SetCount(list149, num); + Span span38 = CollectionsMarshal.AsSpan(list149); + ref QuestSequence reference100 = ref span38[0]; QuestSequence obj91 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj91.Steps = list150; reference100 = obj91; - num++; - ref QuestSequence reference101 = ref span149[num]; + ref QuestSequence reference101 = ref span38[1]; QuestSequence obj92 = new QuestSequence { Sequence = 1 @@ -425873,9 +350442,8 @@ public static class AssemblyQuestLoader num2 = 2; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - ref QuestStep reference102 = ref span151[index2]; + Span span39 = CollectionsMarshal.AsSpan(list151); + ref QuestStep reference102 = ref span39[0]; QuestStep obj93 = new QuestStep(EInteractionType.Emote, 1051044u, new Vector3(-307.6372f, 3f, -50.8584f), 1185) { Emote = EEmote.Soothe @@ -425883,23 +350451,16 @@ public static class AssemblyQuestLoader num3 = 6; List list152 = new List(num3); CollectionsMarshal.SetCount(list152, num3); - 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); + 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); obj93.CompletionQuestVariablesFlags = list152; reference102 = obj93; - index2++; - ref QuestStep reference103 = ref span151[index2]; + ref QuestStep reference103 = ref span39[1]; QuestStep obj94 = new QuestStep(EInteractionType.Emote, 1051045u, new Vector3(-49.42401f, -2.7939677E-09f, 16.647583f), 1185) { AethernetShortcut = new AethernetShortcut @@ -425909,38 +350470,29 @@ public static class AssemblyQuestLoader }, Emote = EEmote.Soothe }; - 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); + 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); obj94.CompletionQuestVariablesFlags = list153; reference103 = obj94; obj92.Steps = list151; reference101 = obj92; - num++; - ref QuestSequence reference104 = ref span149[num]; + ref QuestSequence reference104 = ref span38[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -425957,16 +350509,13 @@ public static class AssemblyQuestLoader num = 1; List list155 = new List(num); CollectionsMarshal.SetCount(list155, num); - Span span155 = CollectionsMarshal.AsSpan(list155); - index = 0; - span155[index] = "liza"; + CollectionsMarshal.AsSpan(list155)[0] = "liza"; questRoot26.Author = list155; - index = 5; - List list156 = new List(index); - CollectionsMarshal.SetCount(list156, index); - Span span156 = CollectionsMarshal.AsSpan(list156); - num = 0; - ref QuestSequence reference105 = ref span156[num]; + num = 5; + List list156 = new List(num); + CollectionsMarshal.SetCount(list156, num); + Span span42 = CollectionsMarshal.AsSpan(list156); + ref QuestSequence reference105 = ref span42[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -425974,88 +350523,63 @@ public static class AssemblyQuestLoader num2 = 1; List list157 = new List(num2); CollectionsMarshal.SetCount(list157, num2); - Span span157 = CollectionsMarshal.AsSpan(list157); - index2 = 0; - span157[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); + CollectionsMarshal.AsSpan(list157)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); obj96.Steps = list157; reference105 = obj96; - num++; - ref QuestSequence reference106 = ref span156[num]; + ref QuestSequence reference106 = ref span42[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list158 = new List(index2); - CollectionsMarshal.SetCount(list158, index2); - Span span158 = CollectionsMarshal.AsSpan(list158); - num2 = 0; - ref QuestStep reference107 = ref span158[num2]; + num2 = 3; + List list158 = new List(num2); + CollectionsMarshal.SetCount(list158, num2); + Span span43 = CollectionsMarshal.AsSpan(list158); + ref QuestStep reference107 = ref span43[0]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list159; reference107 = questStep12; - num2++; - ref QuestStep reference108 = ref span158[num2]; + ref QuestStep reference108 = ref span43[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014239u, new Vector3(64.530396f, -17.990417f, 189.56274f), 1185); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list160; reference108 = questStep13; - num2++; - ref QuestStep reference109 = ref span158[num2]; + ref QuestStep reference109 = ref span43[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list161; reference109 = questStep14; obj97.Steps = list158; reference106 = obj97; - num++; - ref QuestSequence reference110 = ref span156[num]; + ref QuestSequence reference110 = ref span42[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -426063,23 +350587,18 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.Interact, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185); obj98.Steps = list162; reference110 = obj98; - num++; - ref QuestSequence reference111 = ref span156[num]; + ref QuestSequence reference111 = ref span42[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list163 = new List(index2); - CollectionsMarshal.SetCount(list163, index2); - Span span163 = CollectionsMarshal.AsSpan(list163); - num2 = 0; - ref QuestStep reference112 = ref span163[num2]; + num2 = 1; + List list163 = new List(num2); + CollectionsMarshal.SetCount(list163, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1051048u, new Vector3(-227.95453f, 40.04104f, -42.648987f), 1185) { AethernetShortcut = new AethernetShortcut @@ -426088,12 +350607,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalTheResplendentQuarter } }; - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new DialogueChoice + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZA012_05028_Q1_000_000"), @@ -426103,8 +350620,7 @@ public static class AssemblyQuestLoader reference112 = obj100; obj99.Steps = list163; reference111 = obj99; - num++; - ref QuestSequence reference113 = ref span156[num]; + ref QuestSequence reference113 = ref span42[4]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -426112,9 +350628,7 @@ public static class AssemblyQuestLoader num2 = 1; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - index2 = 0; - span165[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185) + CollectionsMarshal.AsSpan(list165)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051046u, new Vector3(69.38269f, -14f, 91.081055f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -426131,30 +350645,24 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "liza"; + CollectionsMarshal.AsSpan(list166)[0] = "liza"; questRoot27.Author = list166; - index = 4; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference114 = ref span167[num]; + num = 4; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span47 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference114 = ref span47[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj102.Steps = list168; reference114 = obj102; - num++; - ref QuestSequence reference115 = ref span167[num]; + ref QuestSequence reference115 = ref span47[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -426162,9 +350670,7 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - index2 = 0; - span169[index2] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1046521u, new Vector3(-46.616333f, -17.97287f, 180.3158f), 1185) { StopDistance = 5f, AethernetShortcut = new AethernetShortcut @@ -426175,83 +350681,60 @@ public static class AssemblyQuestLoader }; obj103.Steps = list169; reference115 = obj103; - num++; - ref QuestSequence reference116 = ref span167[num]; + ref QuestSequence reference116 = ref span47[2]; QuestSequence obj104 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list170 = new List(index2); - CollectionsMarshal.SetCount(list170, index2); - Span span170 = CollectionsMarshal.AsSpan(list170); - num2 = 0; - ref QuestStep reference117 = ref span170[num2]; + num2 = 3; + List list170 = new List(num2); + CollectionsMarshal.SetCount(list170, num2); + Span span48 = CollectionsMarshal.AsSpan(list170); + ref QuestStep reference117 = ref span48[0]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list171; reference117 = questStep15; - num2++; - ref QuestStep reference118 = ref span170[num2]; + ref QuestStep reference118 = ref span48[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1048418u, new Vector3(-54.154297f, -17.972868f, 198.44348f), 1185); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list172; reference118 = questStep16; - num2++; - ref QuestStep reference119 = ref span170[num2]; + ref QuestStep reference119 = ref span48[2]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list173; reference119 = questStep17; obj104.Steps = list170; reference116 = obj104; - num++; - ref QuestSequence reference120 = ref span167[num]; + ref QuestSequence reference120 = ref span47[3]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue @@ -426259,9 +350742,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048537u, new Vector3(-61.753296f, 99.99999f, -188.98297f), 1185) { AethernetShortcut = new AethernetShortcut { @@ -426278,30 +350759,24 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "liza"; + CollectionsMarshal.AsSpan(list175)[0] = "liza"; questRoot28.Author = list175; - index = 3; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference121 = ref span176[num]; + num = 3; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span52 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference121 = ref span52[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj106.Steps = list177; reference121 = obj106; - num++; - ref QuestSequence reference122 = ref span176[num]; + ref QuestSequence reference122 = ref span52[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 @@ -426309,108 +350784,77 @@ public static class AssemblyQuestLoader num2 = 4; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - ref QuestStep reference123 = ref span178[index2]; + Span span53 = CollectionsMarshal.AsSpan(list178); + ref QuestStep reference123 = ref span53[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2014104u, new Vector3(374.77686f, -154.07043f, -373.52563f), 1187); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list179; reference123 = questStep18; - index2++; - ref QuestStep reference124 = ref span178[index2]; + ref QuestStep reference124 = ref span53[1]; 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 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); + 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); questStep19.CompletionQuestVariablesFlags = list180; reference124 = questStep19; - index2++; - ref QuestStep reference125 = ref span178[index2]; + ref QuestStep reference125 = ref span53[2]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 2014105u, new Vector3(330.6172f, -158.06824f, -399.8932f), 1187) { IgnoreDistanceToObject = true }; - 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); + 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); obj108.CompletionQuestVariablesFlags = list181; reference125 = obj108; - index2++; - ref QuestStep reference126 = ref span178[index2]; + ref QuestStep reference126 = ref span53[3]; 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 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); + 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); questStep20.CompletionQuestVariablesFlags = list182; reference126 = questStep20; obj107.Steps = list178; reference122 = obj107; - num++; - ref QuestSequence reference127 = ref span176[num]; + ref QuestSequence reference127 = ref span52[2]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj109.Steps = list183; reference127 = obj109; questRoot28.QuestSequence = list176; @@ -426420,16 +350864,13 @@ public static class AssemblyQuestLoader num = 1; List list184 = new List(num); CollectionsMarshal.SetCount(list184, num); - Span span184 = CollectionsMarshal.AsSpan(list184); - index = 0; - span184[index] = "liza"; + CollectionsMarshal.AsSpan(list184)[0] = "liza"; questRoot29.Author = list184; - index = 3; - List list185 = new List(index); - CollectionsMarshal.SetCount(list185, index); - Span span185 = CollectionsMarshal.AsSpan(list185); - num = 0; - ref QuestSequence reference128 = ref span185[num]; + num = 3; + List list185 = new List(num); + CollectionsMarshal.SetCount(list185, num); + Span span58 = CollectionsMarshal.AsSpan(list185); + ref QuestSequence reference128 = ref span58[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -426437,48 +350878,37 @@ public static class AssemblyQuestLoader num2 = 1; List list186 = new List(num2); CollectionsMarshal.SetCount(list186, num2); - Span span186 = CollectionsMarshal.AsSpan(list186); - index2 = 0; - span186[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187); + CollectionsMarshal.AsSpan(list186)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187); obj110.Steps = list186; reference128 = obj110; - num++; - ref QuestSequence reference129 = ref span185[num]; + ref QuestSequence reference129 = ref span58[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list187 = new List(index2); - CollectionsMarshal.SetCount(list187, index2); - Span span187 = CollectionsMarshal.AsSpan(list187); - num2 = 0; - ref QuestStep reference130 = ref span187[num2]; + num2 = 2; + List list187 = new List(num2); + CollectionsMarshal.SetCount(list187, num2); + Span span59 = CollectionsMarshal.AsSpan(list187); + ref QuestStep reference130 = ref span59[0]; QuestStep obj112 = new QuestStep(EInteractionType.UseItem, 1050671u, new Vector3(191.97375f, -87.10133f, -277.39374f), 1187) { Fly = true, ItemId = 2003601u }; - 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); + 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); obj112.CompletionQuestVariablesFlags = list188; reference130 = obj112; - num2++; - ref QuestStep reference131 = ref span187[num2]; + ref QuestStep reference131 = ref span59[1]; QuestStep obj113 = new QuestStep(EInteractionType.UseItem, 1050670u, new Vector3(132.86023f, -75.24902f, -213.2143f), 1187) { Fly = true, @@ -426487,25 +350917,18 @@ public static class AssemblyQuestLoader num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - 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); + 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); obj113.CompletionQuestVariablesFlags = list189; reference131 = obj113; obj111.Steps = list187; reference129 = obj111; - num++; - ref QuestSequence reference132 = ref span185[num]; + ref QuestSequence reference132 = ref span58[2]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -426513,9 +350936,7 @@ public static class AssemblyQuestLoader num2 = 1; List list190 = new List(num2); CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - span190[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187) + CollectionsMarshal.AsSpan(list190)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048649u, new Vector3(357.86987f, -155.91757f, -370.1076f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -426528,30 +350949,24 @@ public static class AssemblyQuestLoader num = 1; List list191 = new List(num); CollectionsMarshal.SetCount(list191, num); - Span span191 = CollectionsMarshal.AsSpan(list191); - index = 0; - span191[index] = "liza"; + CollectionsMarshal.AsSpan(list191)[0] = "liza"; questRoot30.Author = list191; - index = 3; - List list192 = new List(index); - CollectionsMarshal.SetCount(list192, index); - Span span192 = CollectionsMarshal.AsSpan(list192); - num = 0; - ref QuestSequence reference133 = ref span192[num]; + num = 3; + List list192 = new List(num); + CollectionsMarshal.SetCount(list192, num); + Span span62 = CollectionsMarshal.AsSpan(list192); + ref QuestSequence reference133 = ref span62[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj115.Steps = list193; reference133 = obj115; - num++; - ref QuestSequence reference134 = ref span192[num]; + ref QuestSequence reference134 = ref span62[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -426559,26 +350974,21 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.Interact, 1050672u, new Vector3(550.65234f, -54.46781f, 42.83203f), 1187) + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1050672u, new Vector3(550.65234f, -54.46781f, 42.83203f), 1187) { Fly = true }; obj116.Steps = list194; reference134 = obj116; - num++; - ref QuestSequence reference135 = ref span192[num]; + ref QuestSequence reference135 = ref span62[2]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -426591,16 +351001,13 @@ public static class AssemblyQuestLoader num = 1; List list196 = new List(num); CollectionsMarshal.SetCount(list196, num); - Span span196 = CollectionsMarshal.AsSpan(list196); - index = 0; - span196[index] = "liza"; + CollectionsMarshal.AsSpan(list196)[0] = "liza"; questRoot31.Author = list196; - index = 3; - List list197 = new List(index); - CollectionsMarshal.SetCount(list197, index); - Span span197 = CollectionsMarshal.AsSpan(list197); - num = 0; - ref QuestSequence reference136 = ref span197[num]; + num = 3; + List list197 = new List(num); + CollectionsMarshal.SetCount(list197, num); + Span span63 = CollectionsMarshal.AsSpan(list197); + ref QuestSequence reference136 = ref span63[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 @@ -426608,33 +351015,27 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187); obj118.Steps = list198; reference136 = obj118; - num++; - ref QuestSequence reference137 = ref span197[num]; + ref QuestSequence reference137 = ref span63[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; - num2++; - span199[num2] = new QuestStep(EInteractionType.Interact, 2014108u, new Vector3(521.84326f, -53.543945f, 57.938477f), 1187); + span64[1] = new QuestStep(EInteractionType.Interact, 2014108u, new Vector3(521.84326f, -53.543945f, 57.938477f), 1187); obj119.Steps = list199; reference137 = obj119; - num++; - ref QuestSequence reference138 = ref span197[num]; + ref QuestSequence reference138 = ref span63[2]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue @@ -426642,9 +351043,7 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187) + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050673u, new Vector3(375.6007f, -116.81515f, -175.03625f), 1187) { Fly = true }; @@ -426657,30 +351056,24 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "liza"; + CollectionsMarshal.AsSpan(list201)[0] = "liza"; questRoot32.Author = list201; - index = 4; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference139 = ref span202[num]; + num = 4; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span65 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference139 = ref span65[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj121.Steps = list203; reference139 = obj121; - num++; - ref QuestSequence reference140 = ref span202[num]; + ref QuestSequence reference140 = ref span65[1]; QuestSequence obj122 = new QuestSequence { Sequence = 1 @@ -426688,47 +351081,36 @@ public static class AssemblyQuestLoader num2 = 1; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - span204[index2] = new QuestStep(EInteractionType.Interact, 1050674u, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187); + CollectionsMarshal.AsSpan(list204)[0] = new QuestStep(EInteractionType.Interact, 1050674u, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187); obj122.Steps = list204; reference140 = obj122; - num++; - ref QuestSequence reference141 = ref span202[num]; + ref QuestSequence reference141 = ref span65[2]; QuestSequence obj123 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list205 = new List(index2); - CollectionsMarshal.SetCount(list205, index2); - Span span205 = CollectionsMarshal.AsSpan(list205); - num2 = 0; - ref QuestStep reference142 = ref span205[num2]; + num2 = 3; + List list205 = new List(num2); + CollectionsMarshal.SetCount(list205, num2); + Span span66 = CollectionsMarshal.AsSpan(list205); + ref QuestStep reference142 = ref span66[0]; QuestStep obj124 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003604u }; - 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); + 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); obj124.CompletionQuestVariablesFlags = list206; reference142 = obj124; - num2++; - ref QuestStep reference143 = ref span205[num2]; + ref QuestStep reference143 = ref span66[1]; QuestStep obj125 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003605u @@ -426736,49 +351118,35 @@ public static class AssemblyQuestLoader num3 = 6; List list207 = new List(num3); CollectionsMarshal.SetCount(list207, num3); - 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); + 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); obj125.CompletionQuestVariablesFlags = list207; reference143 = obj125; - num2++; - ref QuestStep reference144 = ref span205[num2]; + ref QuestStep reference144 = ref span66[2]; QuestStep obj126 = new QuestStep(EInteractionType.UseItem, null, new Vector3(-388.4795f, -46.297935f, -498.10028f), 1187) { ItemId = 2003606u }; - 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); + 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); obj126.CompletionQuestVariablesFlags = list208; reference144 = obj126; obj123.Steps = list205; reference141 = obj123; - num++; - ref QuestSequence reference145 = ref span202[num]; + ref QuestSequence reference145 = ref span65[3]; QuestSequence obj127 = new QuestSequence { Sequence = byte.MaxValue @@ -426786,16 +351154,12 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference146 = ref span209[index2]; + ref QuestStep reference146 = ref CollectionsMarshal.AsSpan(list209)[0]; 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); - Span span210 = CollectionsMarshal.AsSpan(list210); - index3 = 0; - span210[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list210)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB005_05034_Q1_000_000"), @@ -426812,30 +351176,24 @@ public static class AssemblyQuestLoader num = 1; List list211 = new List(num); CollectionsMarshal.SetCount(list211, num); - Span span211 = CollectionsMarshal.AsSpan(list211); - index = 0; - span211[index] = "liza"; + CollectionsMarshal.AsSpan(list211)[0] = "liza"; questRoot33.Author = list211; - index = 4; - List list212 = new List(index); - CollectionsMarshal.SetCount(list212, index); - Span span212 = CollectionsMarshal.AsSpan(list212); - num = 0; - ref QuestSequence reference147 = ref span212[num]; + num = 4; + List list212 = new List(num); + CollectionsMarshal.SetCount(list212, num); + Span span70 = CollectionsMarshal.AsSpan(list212); + ref QuestSequence reference147 = ref span70[0]; QuestSequence obj128 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj128.Steps = list213; reference147 = obj128; - num++; - ref QuestSequence reference148 = ref span212[num]; + ref QuestSequence reference148 = ref span70[1]; QuestSequence obj129 = new QuestSequence { Sequence = 1 @@ -426843,33 +351201,27 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1048690u, new Vector3(-406.42407f, -41.099792f, -565.6062f), 1187) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1048690u, new Vector3(-406.42407f, -41.099792f, -565.6062f), 1187) { Fly = true }; obj129.Steps = list214; reference148 = obj129; - num++; - ref QuestSequence reference149 = ref span212[num]; + ref QuestSequence reference149 = ref span70[2]; QuestSequence obj130 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj130.Steps = list215; reference149 = obj130; - num++; - ref QuestSequence reference150 = ref span212[num]; + ref QuestSequence reference150 = ref span70[3]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue @@ -426877,9 +351229,7 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050716u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050716u, new Vector3(-421.80518f, -45.817875f, -496.14713f), 1187) { Fly = true }; @@ -426892,30 +351242,24 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "liza"; + CollectionsMarshal.AsSpan(list217)[0] = "liza"; questRoot34.Author = list217; - index = 5; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference151 = ref span218[num]; + num = 5; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span71 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference151 = ref span71[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj132.Steps = list219; reference151 = obj132; - num++; - ref QuestSequence reference152 = ref span218[num]; + ref QuestSequence reference152 = ref span71[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 @@ -426923,46 +351267,38 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - ref QuestStep reference153 = ref span220[index2]; + ref QuestStep reference153 = ref CollectionsMarshal.AsSpan(list220)[0]; QuestStep obj134 = new QuestStep(EInteractionType.Combat, 1050680u, new Vector3(-67.91791f, -140.2539f, -676.7224f), 1187) { StopDistance = 0.5f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list221 = new List(num3); + CollectionsMarshal.SetCount(list221, num3); + Span span72 = CollectionsMarshal.AsSpan(list221); + span72[0] = 17643u; + span72[1] = 17644u; obj134.KillEnemyDataIds = list221; reference153 = obj134; obj133.Steps = list220; reference152 = obj133; - num++; - ref QuestSequence reference154 = ref span218[num]; + ref QuestSequence reference154 = ref span71[2]; QuestSequence obj135 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj135.Steps = list222; reference154 = obj135; - num++; - ref QuestSequence reference155 = ref span218[num]; + ref QuestSequence reference155 = ref span71[3]; QuestSequence obj136 = new QuestSequence { Sequence = 3 @@ -426970,26 +351306,21 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 2014112u, new Vector3(-68.07056f, -140.15417f, -678.9197f), 1187) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 2014112u, new Vector3(-68.07056f, -140.15417f, -678.9197f), 1187) { StopDistance = 4.5f }; obj136.Steps = list223; reference155 = obj136; - num++; - ref QuestSequence reference156 = ref span218[num]; + ref QuestSequence reference156 = ref span71[4]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -427002,16 +351333,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "liza"; + CollectionsMarshal.AsSpan(list225)[0] = "liza"; questRoot35.Author = list225; - index = 4; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference157 = ref span226[num]; + num = 4; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span73 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference157 = ref span73[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -427019,28 +351347,23 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); obj138.Steps = list227; reference157 = obj138; - num++; - ref QuestSequence reference158 = ref span226[num]; + ref QuestSequence reference158 = ref span73[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span228[num2] = new QuestStep(EInteractionType.UseItem, 1050683u, new Vector3(-194.32367f, -67.68594f, -135.57642f), 1187) + span74[1] = new QuestStep(EInteractionType.UseItem, 1050683u, new Vector3(-194.32367f, -67.68594f, -135.57642f), 1187) { StopDistance = 5f, ItemId = 2003608u, @@ -427048,8 +351371,7 @@ public static class AssemblyQuestLoader }; obj139.Steps = list228; reference158 = obj139; - num++; - ref QuestSequence reference159 = ref span226[num]; + ref QuestSequence reference159 = ref span73[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -427057,87 +351379,64 @@ public static class AssemblyQuestLoader num2 = 3; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - ref QuestStep reference160 = ref span229[index2]; + Span span75 = CollectionsMarshal.AsSpan(list229); + ref QuestStep reference160 = ref span75[0]; 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 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); + 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); questStep22.CompletionQuestVariablesFlags = list230; reference160 = questStep22; - index2++; - ref QuestStep reference161 = ref span229[index2]; + ref QuestStep reference161 = ref span75[1]; QuestStep obj141 = new QuestStep(EInteractionType.Interact, 2014114u, new Vector3(-194.78143f, -67.24658f, -131.27338f), 1187) { StopDistance = 4.5f }; - 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); + 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); obj141.CompletionQuestVariablesFlags = list231; reference161 = obj141; - index2++; - ref QuestStep reference162 = ref span229[index2]; + ref QuestStep reference162 = ref span75[2]; 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 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); + 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); questStep23.CompletionQuestVariablesFlags = list232; reference162 = questStep23; obj140.Steps = list229; reference159 = obj140; - num++; - ref QuestSequence reference163 = ref span226[num]; + ref QuestSequence reference163 = ref span73[3]; QuestSequence obj142 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -427148,8 +351447,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span233[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); + span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1048666u, new Vector3(-54.8562f, -130.17744f, -443.1983f), 1187); obj142.Steps = list233; reference163 = obj142; questRoot35.QuestSequence = list226; @@ -427159,16 +351457,13 @@ public static class AssemblyQuestLoader num = 1; List list234 = new List(num); CollectionsMarshal.SetCount(list234, num); - Span span234 = CollectionsMarshal.AsSpan(list234); - index = 0; - span234[index] = "liza"; + CollectionsMarshal.AsSpan(list234)[0] = "liza"; questRoot36.Author = list234; - index = 3; - List list235 = new List(index); - CollectionsMarshal.SetCount(list235, index); - Span span235 = CollectionsMarshal.AsSpan(list235); - num = 0; - ref QuestSequence reference164 = ref span235[num]; + num = 3; + List list235 = new List(num); + CollectionsMarshal.SetCount(list235, num); + Span span80 = CollectionsMarshal.AsSpan(list235); + ref QuestSequence reference164 = ref span80[0]; QuestSequence obj143 = new QuestSequence { Sequence = 0 @@ -427176,41 +351471,33 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187); + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187); obj143.Steps = list236; reference164 = obj143; - num++; - ref QuestSequence reference165 = ref span235[num]; + ref QuestSequence reference165 = ref span80[1]; QuestSequence obj144 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list237 = new List(index2); - CollectionsMarshal.SetCount(list237, index2); - Span span237 = CollectionsMarshal.AsSpan(list237); - num2 = 0; - ref QuestStep reference166 = ref span237[num2]; + num2 = 1; + List list237 = new List(num2); + CollectionsMarshal.SetCount(list237, num2); + ref QuestStep reference166 = ref CollectionsMarshal.AsSpan(list237)[0]; QuestStep obj145 = new QuestStep(EInteractionType.Combat, 2014116u, new Vector3(-6.1189575f, -99.50415f, -247.97437f), 1187) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list238 = new List(index3); - CollectionsMarshal.SetCount(list238, index3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num3 = 0; - span238[num3] = 17645u; + num3 = 1; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + CollectionsMarshal.AsSpan(list238)[0] = 17645u; obj145.KillEnemyDataIds = list238; reference166 = obj145; obj144.Steps = list237; reference165 = obj144; - num++; - ref QuestSequence reference167 = ref span235[num]; + ref QuestSequence reference167 = ref span80[2]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue @@ -427218,9 +351505,7 @@ public static class AssemblyQuestLoader num2 = 1; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187) + CollectionsMarshal.AsSpan(list239)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048658u, new Vector3(365.46875f, -146.10005f, -465.01874f), 1187) { StopDistance = 0.5f, Fly = true, @@ -427235,30 +351520,24 @@ public static class AssemblyQuestLoader num = 1; List list240 = new List(num); CollectionsMarshal.SetCount(list240, num); - Span span240 = CollectionsMarshal.AsSpan(list240); - index = 0; - span240[index] = "liza"; + CollectionsMarshal.AsSpan(list240)[0] = "liza"; questRoot37.Author = list240; - index = 4; - List list241 = new List(index); - CollectionsMarshal.SetCount(list241, index); - Span span241 = CollectionsMarshal.AsSpan(list241); - num = 0; - ref QuestSequence reference168 = ref span241[num]; + num = 4; + List list241 = new List(num); + CollectionsMarshal.SetCount(list241, num); + Span span81 = CollectionsMarshal.AsSpan(list241); + ref QuestSequence reference168 = ref span81[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj147.Steps = list242; reference168 = obj147; - num++; - ref QuestSequence reference169 = ref span241[num]; + ref QuestSequence reference169 = ref span81[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 @@ -427266,9 +351545,7 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - ref QuestStep reference170 = ref span243[index2]; + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list243)[0]; QuestStep obj149 = new QuestStep(EInteractionType.Combat, null, new Vector3(258.56268f, -129.27074f, -351.33496f), 1187) { StopDistance = 0.25f, @@ -427277,32 +351554,26 @@ public static class AssemblyQuestLoader num3 = 1; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - Span span244 = CollectionsMarshal.AsSpan(list244); - index3 = 0; - span244[index3] = 17646u; + CollectionsMarshal.AsSpan(list244)[0] = 17646u; obj149.KillEnemyDataIds = list244; reference170 = obj149; obj148.Steps = list243; reference169 = obj148; - num++; - ref QuestSequence reference171 = ref span241[num]; + ref QuestSequence reference171 = ref span81[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj150.Steps = list245; reference171 = obj150; - num++; - ref QuestSequence reference172 = ref span241[num]; + ref QuestSequence reference172 = ref span81[3]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue @@ -427310,9 +351581,7 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050684u, new Vector3(391.37854f, -156.07434f, -388.50995f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -427325,26 +351594,21 @@ public static class AssemblyQuestLoader num = 1; List list247 = new List(num); CollectionsMarshal.SetCount(list247, num); - Span span247 = CollectionsMarshal.AsSpan(list247); - index = 0; - span247[index] = "liza"; + CollectionsMarshal.AsSpan(list247)[0] = "liza"; questRoot38.Author = list247; - index = 3; - List list248 = new List(index); - CollectionsMarshal.SetCount(list248, index); - Span span248 = CollectionsMarshal.AsSpan(list248); - num = 0; - ref QuestSequence reference173 = ref span248[num]; + num = 3; + List list248 = new List(num); + CollectionsMarshal.SetCount(list248, num); + Span span82 = CollectionsMarshal.AsSpan(list248); + ref QuestSequence reference173 = ref span82[0]; QuestSequence obj152 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -427357,8 +351621,7 @@ public static class AssemblyQuestLoader }; obj152.Steps = list249; reference173 = obj152; - num++; - ref QuestSequence reference174 = ref span248[num]; + ref QuestSequence reference174 = ref span82[1]; QuestSequence obj153 = new QuestSequence { Sequence = 1 @@ -427366,23 +351629,18 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.Interact, 1051370u, new Vector3(302.02173f, -163.4447f, -420.34027f), 1187); + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.Interact, 1051370u, new Vector3(302.02173f, -163.4447f, -420.34027f), 1187); obj153.Steps = list250; reference174 = obj153; - num++; - ref QuestSequence reference175 = ref span248[num]; + ref QuestSequence reference175 = ref span82[2]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj154.Steps = list251; reference175 = obj154; questRoot38.QuestSequence = list248; @@ -427392,16 +351650,13 @@ public static class AssemblyQuestLoader num = 1; List list252 = new List(num); CollectionsMarshal.SetCount(list252, num); - Span span252 = CollectionsMarshal.AsSpan(list252); - index = 0; - span252[index] = "liza"; + CollectionsMarshal.AsSpan(list252)[0] = "liza"; questRoot39.Author = list252; - index = 3; - List list253 = new List(index); - CollectionsMarshal.SetCount(list253, index); - Span span253 = CollectionsMarshal.AsSpan(list253); - num = 0; - ref QuestSequence reference176 = ref span253[num]; + num = 3; + List list253 = new List(num); + CollectionsMarshal.SetCount(list253, num); + Span span83 = CollectionsMarshal.AsSpan(list253); + ref QuestSequence reference176 = ref span83[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -427409,50 +351664,39 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) { StopDistance = 5f }; obj155.Steps = list254; reference176 = obj155; - num++; - ref QuestSequence reference177 = ref span253[num]; + ref QuestSequence reference177 = ref span83[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list255 = new List(index2); - CollectionsMarshal.SetCount(list255, index2); - Span span255 = CollectionsMarshal.AsSpan(list255); - num2 = 0; - ref QuestStep reference178 = ref span255[num2]; + num2 = 3; + List list255 = new List(num2); + CollectionsMarshal.SetCount(list255, num2); + Span span84 = CollectionsMarshal.AsSpan(list255); + ref QuestStep reference178 = ref span84[0]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 2014120u, new Vector3(-624.5365f, 63.46228f, 210.8949f), 1187) { Fly = true }; - 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); + 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); obj157.CompletionQuestVariablesFlags = list256; reference178 = obj157; - num2++; - ref QuestStep reference179 = ref span255[num2]; + ref QuestStep reference179 = ref span84[1]; QuestStep obj158 = new QuestStep(EInteractionType.Combat, 2014121u, new Vector3(-663.9048f, 61.875244f, 207.20227f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -427460,53 +351704,37 @@ public static class AssemblyQuestLoader num3 = 1; List list257 = new List(num3); CollectionsMarshal.SetCount(list257, num3); - Span span257 = CollectionsMarshal.AsSpan(list257); - index3 = 0; - span257[index3] = 17647u; + CollectionsMarshal.AsSpan(list257)[0] = 17647u; obj158.KillEnemyDataIds = list257; - 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); + 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); obj158.CompletionQuestVariablesFlags = list258; reference179 = obj158; - num2++; - ref QuestStep reference180 = ref span255[num2]; + ref QuestStep reference180 = ref span84[2]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list259; reference180 = questStep24; obj156.Steps = list255; reference177 = obj156; - num++; - ref QuestSequence reference181 = ref span253[num]; + ref QuestSequence reference181 = ref span83[2]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue @@ -427514,9 +351742,7 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - index2 = 0; - span260[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050689u, new Vector3(-147.2649f, 40.238018f, 44.449463f), 1187) { StopDistance = 5f, Fly = true @@ -427530,33 +351756,27 @@ public static class AssemblyQuestLoader num = 1; List list261 = new List(num); CollectionsMarshal.SetCount(list261, num); - Span span261 = CollectionsMarshal.AsSpan(list261); - index = 0; - span261[index] = "liza"; + CollectionsMarshal.AsSpan(list261)[0] = "liza"; questRoot40.Author = list261; - index = 5; - List list262 = new List(index); - CollectionsMarshal.SetCount(list262, index); - Span span262 = CollectionsMarshal.AsSpan(list262); - num = 0; - ref QuestSequence reference182 = ref span262[num]; + num = 5; + List list262 = new List(num); + CollectionsMarshal.SetCount(list262, num); + Span span88 = CollectionsMarshal.AsSpan(list262); + ref QuestSequence reference182 = ref span88[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj160.Steps = list263; reference182 = obj160; - num++; - ref QuestSequence reference183 = ref span262[num]; + ref QuestSequence reference183 = ref span88[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 @@ -427564,30 +351784,24 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.Interact, 2014123u, new Vector3(-84.55023f, 16.830688f, 17.288391f), 1187) + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.Interact, 2014123u, new Vector3(-84.55023f, 16.830688f, 17.288391f), 1187) { StopDistance = 4.5f }; obj161.Steps = list264; reference183 = obj161; - num++; - ref QuestSequence reference184 = ref span262[num]; + ref QuestSequence reference184 = ref span88[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj162.Steps = list265; reference184 = obj162; - num++; - ref QuestSequence reference185 = ref span262[num]; + ref QuestSequence reference185 = ref span88[3]; QuestSequence obj163 = new QuestSequence { Sequence = 3 @@ -427595,26 +351809,21 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.Interact, 1050691u, new Vector3(-300.28235f, 62.68029f, -68.89453f), 1187) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1050691u, new Vector3(-300.28235f, 62.68029f, -68.89453f), 1187) { StopDistance = 7f }; obj163.Steps = list266; reference185 = obj163; - num++; - ref QuestSequence reference186 = ref span262[num]; + ref QuestSequence reference186 = ref span88[4]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Fly = true, @@ -427629,16 +351838,13 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - Span span268 = CollectionsMarshal.AsSpan(list268); - index = 0; - span268[index] = "liza"; + CollectionsMarshal.AsSpan(list268)[0] = "liza"; questRoot41.Author = list268; - index = 3; - List list269 = new List(index); - CollectionsMarshal.SetCount(list269, index); - Span span269 = CollectionsMarshal.AsSpan(list269); - num = 0; - ref QuestSequence reference187 = ref span269[num]; + num = 3; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span89 = CollectionsMarshal.AsSpan(list269); + ref QuestSequence reference187 = ref span89[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -427646,51 +351852,40 @@ public static class AssemblyQuestLoader num2 = 1; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) + CollectionsMarshal.AsSpan(list270)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) { StopDistance = 5f }; obj165.Steps = list270; reference187 = obj165; - num++; - ref QuestSequence reference188 = ref span269[num]; + ref QuestSequence reference188 = ref span89[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list271 = new List(index2); - CollectionsMarshal.SetCount(list271, index2); - Span span271 = CollectionsMarshal.AsSpan(list271); - num2 = 0; - ref QuestStep reference189 = ref span271[num2]; + num2 = 3; + List list271 = new List(num2); + CollectionsMarshal.SetCount(list271, num2); + Span span90 = CollectionsMarshal.AsSpan(list271); + ref QuestStep reference189 = ref span90[0]; QuestStep obj167 = new QuestStep(EInteractionType.Instruction, 2014126u, new Vector3(-182.69635f, 51.68225f, 164.56848f), 1187) { Fly = true, Comment = "TODO Needs item use" }; - 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); + 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); obj167.CompletionQuestVariablesFlags = list272; reference189 = obj167; - num2++; - ref QuestStep reference190 = ref span271[num2]; + ref QuestStep reference190 = ref span90[1]; QuestStep obj168 = new QuestStep(EInteractionType.Interact, 2014125u, new Vector3(-161.57782f, 39.902344f, 252.39941f), 1187) { Fly = true @@ -427698,50 +351893,36 @@ public static class AssemblyQuestLoader num3 = 6; List list273 = new List(num3); CollectionsMarshal.SetCount(list273, num3); - 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); + 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); obj168.CompletionQuestVariablesFlags = list273; reference190 = obj168; - num2++; - ref QuestStep reference191 = ref span271[num2]; + ref QuestStep reference191 = ref span90[2]; QuestStep obj169 = new QuestStep(EInteractionType.Instruction, 2014127u, new Vector3(-239.36829f, 49.79016f, 343.52625f), 1187) { Fly = true, Comment = "TODO Needs item use" }; - 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); + 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); obj169.CompletionQuestVariablesFlags = list274; reference191 = obj169; obj166.Steps = list271; reference188 = obj166; - num++; - ref QuestSequence reference192 = ref span269[num]; + ref QuestSequence reference192 = ref span89[2]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue @@ -427749,9 +351930,7 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048761u, new Vector3(-499.71774f, 59.95439f, 130.93762f), 1187) { StopDistance = 5f, Fly = true @@ -427765,33 +351944,27 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "liza"; + CollectionsMarshal.AsSpan(list276)[0] = "liza"; questRoot42.Author = list276; - index = 3; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference193 = ref span277[num]; + num = 3; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span94 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference193 = ref span94[0]; QuestSequence obj171 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj171.Steps = list278; reference193 = obj171; - num++; - ref QuestSequence reference194 = ref span277[num]; + ref QuestSequence reference194 = ref span94[1]; QuestSequence obj172 = new QuestSequence { Sequence = 1 @@ -427799,9 +351972,7 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - ref QuestStep reference195 = ref span279[index2]; + ref QuestStep reference195 = ref CollectionsMarshal.AsSpan(list279)[0]; QuestStep obj173 = new QuestStep(EInteractionType.Combat, 2014128u, new Vector3(-71.64111f, 18.295532f, 255.75635f), 1187) { Fly = true, @@ -427810,25 +351981,20 @@ public static class AssemblyQuestLoader num3 = 1; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - Span span280 = CollectionsMarshal.AsSpan(list280); - index3 = 0; - span280[index3] = 17649u; + CollectionsMarshal.AsSpan(list280)[0] = 17649u; obj173.KillEnemyDataIds = list280; reference195 = obj173; obj172.Steps = list279; reference194 = obj172; - num++; - ref QuestSequence reference196 = ref span277[num]; + ref QuestSequence reference196 = ref span94[2]; QuestSequence obj174 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Fly = true @@ -427842,16 +352008,13 @@ public static class AssemblyQuestLoader num = 1; List list282 = new List(num); CollectionsMarshal.SetCount(list282, num); - Span span282 = CollectionsMarshal.AsSpan(list282); - index = 0; - span282[index] = "liza"; + CollectionsMarshal.AsSpan(list282)[0] = "liza"; questRoot43.Author = list282; - index = 3; - List list283 = new List(index); - CollectionsMarshal.SetCount(list283, index); - Span span283 = CollectionsMarshal.AsSpan(list283); - num = 0; - ref QuestSequence reference197 = ref span283[num]; + num = 3; + List list283 = new List(num); + CollectionsMarshal.SetCount(list283, num); + Span span95 = CollectionsMarshal.AsSpan(list283); + ref QuestSequence reference197 = ref span95[0]; QuestSequence obj175 = new QuestSequence { Sequence = 0 @@ -427859,50 +352022,39 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) { StopDistance = 5f }; obj175.Steps = list284; reference197 = obj175; - num++; - ref QuestSequence reference198 = ref span283[num]; + ref QuestSequence reference198 = ref span95[1]; QuestSequence obj176 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list285 = new List(index2); - CollectionsMarshal.SetCount(list285, index2); - Span span285 = CollectionsMarshal.AsSpan(list285); - num2 = 0; - ref QuestStep reference199 = ref span285[num2]; + num2 = 3; + List list285 = new List(num2); + CollectionsMarshal.SetCount(list285, num2); + Span span96 = CollectionsMarshal.AsSpan(list285); + ref QuestStep reference199 = ref span96[0]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2014130u, new Vector3(438.651f, 103.80713f, 299.33618f), 1187) { Fly = true }; - 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); + 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); obj177.CompletionQuestVariablesFlags = list286; reference199 = obj177; - num2++; - ref QuestStep reference200 = ref span285[num2]; + ref QuestStep reference200 = ref span96[1]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 2014129u, new Vector3(466.23938f, 106.767334f, 244.67834f), 1187) { Fly = true @@ -427910,46 +352062,32 @@ public static class AssemblyQuestLoader num3 = 6; List list287 = new List(num3); CollectionsMarshal.SetCount(list287, num3); - 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); + 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); obj178.CompletionQuestVariablesFlags = list287; reference200 = obj178; - num2++; - ref QuestStep reference201 = ref span285[num2]; + ref QuestStep reference201 = ref span96[2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 2014131u, new Vector3(486.6255f, 112.71838f, 271.13745f), 1187); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list288; reference201 = questStep25; obj176.Steps = list285; reference198 = obj176; - num++; - ref QuestSequence reference202 = ref span283[num]; + ref QuestSequence reference202 = ref span95[2]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -427957,9 +352095,7 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048728u, new Vector3(439.8108f, 112.435f, 669.6116f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -427973,33 +352109,27 @@ public static class AssemblyQuestLoader num = 1; List list290 = new List(num); CollectionsMarshal.SetCount(list290, num); - Span span290 = CollectionsMarshal.AsSpan(list290); - index = 0; - span290[index] = "liza"; + CollectionsMarshal.AsSpan(list290)[0] = "liza"; questRoot44.Author = list290; - index = 3; - List list291 = new List(index); - CollectionsMarshal.SetCount(list291, index); - Span span291 = CollectionsMarshal.AsSpan(list291); - num = 0; - ref QuestSequence reference203 = ref span291[num]; + num = 3; + List list291 = new List(num); + CollectionsMarshal.SetCount(list291, num); + Span span100 = CollectionsMarshal.AsSpan(list291); + ref QuestSequence reference203 = ref span100[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj180.Steps = list292; reference203 = obj180; - num++; - ref QuestSequence reference204 = ref span291[num]; + ref QuestSequence reference204 = ref span100[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -428007,9 +352137,7 @@ public static class AssemblyQuestLoader num2 = 1; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - Span span293 = CollectionsMarshal.AsSpan(list293); - index2 = 0; - ref QuestStep reference205 = ref span293[index2]; + ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list293)[0]; QuestStep obj182 = new QuestStep(EInteractionType.Combat, null, new Vector3(375.92813f, 74.827896f, 411.13763f), 1187) { Fly = true, @@ -428018,25 +352146,20 @@ public static class AssemblyQuestLoader num3 = 1; List list294 = new List(num3); CollectionsMarshal.SetCount(list294, num3); - Span span294 = CollectionsMarshal.AsSpan(list294); - index3 = 0; - span294[index3] = 17484u; + CollectionsMarshal.AsSpan(list294)[0] = 17484u; obj182.KillEnemyDataIds = list294; reference205 = obj182; obj181.Steps = list293; reference204 = obj181; - num++; - ref QuestSequence reference206 = ref span291[num]; + ref QuestSequence reference206 = ref span100[2]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, Fly = true @@ -428050,16 +352173,13 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "liza"; + CollectionsMarshal.AsSpan(list296)[0] = "liza"; questRoot45.Author = list296; - index = 5; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference207 = ref span297[num]; + num = 5; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span101 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference207 = ref span101[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 @@ -428067,33 +352187,27 @@ public static class AssemblyQuestLoader num2 = 1; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) + CollectionsMarshal.AsSpan(list298)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048730u, new Vector3(399.0692f, 122.53533f, 542.9922f), 1187) { StopDistance = 5f }; obj184.Steps = list298; reference207 = obj184; - num++; - ref QuestSequence reference208 = ref span297[num]; + ref QuestSequence reference208 = ref span101[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4.5f }; obj185.Steps = list299; reference208 = obj185; - num++; - ref QuestSequence reference209 = ref span297[num]; + ref QuestSequence reference209 = ref span101[2]; QuestSequence obj186 = new QuestSequence { Sequence = 2 @@ -428101,52 +352215,41 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 2014132u, new Vector3(396.01733f, 123.88794f, 546.53235f), 1187) { StopDistance = 4.5f }; obj186.Steps = list300; reference209 = obj186; - num++; - ref QuestSequence reference210 = ref span297[num]; + ref QuestSequence reference210 = ref span101[3]; QuestSequence obj187 = new QuestSequence { Sequence = 3 }; - index2 = 4; - List list301 = new List(index2); - CollectionsMarshal.SetCount(list301, index2); - Span span301 = CollectionsMarshal.AsSpan(list301); - num2 = 0; - ref QuestStep reference211 = ref span301[num2]; + num2 = 4; + List list301 = new List(num2); + CollectionsMarshal.SetCount(list301, num2); + Span span102 = CollectionsMarshal.AsSpan(list301); + ref QuestStep reference211 = ref span102[0]; QuestStep obj188 = new QuestStep(EInteractionType.UseItem, 2014133u, new Vector3(387.59436f, 131.0597f, 640.772f), 1187) { StopDistance = 3f, IgnoreDistanceToObject = true, ItemId = 2003618u }; - 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); + 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); obj188.CompletionQuestVariablesFlags = list302; reference211 = obj188; - num2++; - ref QuestStep reference212 = ref span301[num2]; + ref QuestStep reference212 = ref span102[1]; QuestStep obj189 = new QuestStep(EInteractionType.UseItem, 2014135u, new Vector3(489.95178f, 114.4884f, 698.3596f), 1187) { StopDistance = 3f, @@ -428156,23 +352259,16 @@ public static class AssemblyQuestLoader num3 = 6; List list303 = new List(num3); CollectionsMarshal.SetCount(list303, num3); - 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); + 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); obj189.CompletionQuestVariablesFlags = list303; reference212 = obj189; - num2++; - ref QuestStep reference213 = ref span301[num2]; + ref QuestStep reference213 = ref span102[2]; QuestStep obj190 = new QuestStep(EInteractionType.Jump, null, new Vector3(530.3024f, 111.13472f, 604.9302f), 1187) { JumpDestination = new JumpDestination @@ -428183,28 +352279,21 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list304; skipConditions3.StepIf = skipStepConditions; obj190.SkipConditions = skipConditions3; reference213 = obj190; - num2++; - ref QuestStep reference214 = ref span301[num2]; + ref QuestStep reference214 = ref span102[3]; QuestStep obj191 = new QuestStep(EInteractionType.UseItem, 2014134u, new Vector3(533.53174f, 114.24426f, 603.0823f), 1187) { StopDistance = 3f, @@ -428214,25 +352303,18 @@ public static class AssemblyQuestLoader num3 = 6; List list305 = new List(num3); CollectionsMarshal.SetCount(list305, num3); - 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); + 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); obj191.CompletionQuestVariablesFlags = list305; reference214 = obj191; obj187.Steps = list301; reference210 = obj187; - num++; - ref QuestSequence reference215 = ref span297[num]; + ref QuestSequence reference215 = ref span101[4]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue @@ -428240,11 +352322,9 @@ public static class AssemblyQuestLoader num2 = 2; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - 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) + 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) { StopDistance = 5f }; @@ -428257,33 +352337,27 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - Span span307 = CollectionsMarshal.AsSpan(list307); - index = 0; - span307[index] = "liza"; + CollectionsMarshal.AsSpan(list307)[0] = "liza"; questRoot46.Author = list307; - index = 4; - List list308 = new List(index); - CollectionsMarshal.SetCount(list308, index); - Span span308 = CollectionsMarshal.AsSpan(list308); - num = 0; - ref QuestSequence reference216 = ref span308[num]; + num = 4; + List list308 = new List(num); + CollectionsMarshal.SetCount(list308, num); + Span span108 = CollectionsMarshal.AsSpan(list308); + ref QuestSequence reference216 = ref span108[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj193.Steps = list309; reference216 = obj193; - num++; - ref QuestSequence reference217 = ref span308[num]; + ref QuestSequence reference217 = ref span108[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 @@ -428291,27 +352365,22 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - index2 = 0; - span310[index2] = new QuestStep(EInteractionType.Emote, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) + CollectionsMarshal.AsSpan(list310)[0] = new QuestStep(EInteractionType.Emote, 1050694u, new Vector3(-22.720703f, 54.759686f, 522.88086f), 1187) { Fly = true, Emote = EEmote.Soothe }; obj194.Steps = list310; reference217 = obj194; - num++; - ref QuestSequence reference218 = ref span308[num]; + ref QuestSequence reference218 = ref span108[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ChatMessage = new ChatMessage { @@ -428320,8 +352389,7 @@ public static class AssemblyQuestLoader }; obj195.Steps = list311; reference218 = obj195; - num++; - ref QuestSequence reference219 = ref span308[num]; + ref QuestSequence reference219 = ref span108[3]; QuestSequence obj196 = new QuestSequence { Sequence = byte.MaxValue @@ -428329,9 +352397,7 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - span312[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) + CollectionsMarshal.AsSpan(list312)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050693u, new Vector3(398.70288f, 122.54732f, 523.4912f), 1187) { StopDistance = 5f, Fly = true, @@ -428346,33 +352412,27 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - Span span313 = CollectionsMarshal.AsSpan(list313); - index = 0; - span313[index] = "liza"; + CollectionsMarshal.AsSpan(list313)[0] = "liza"; questRoot47.Author = list313; - index = 5; - List list314 = new List(index); - CollectionsMarshal.SetCount(list314, index); - Span span314 = CollectionsMarshal.AsSpan(list314); - num = 0; - ref QuestSequence reference220 = ref span314[num]; + num = 5; + List list314 = new List(num); + CollectionsMarshal.SetCount(list314, num); + Span span109 = CollectionsMarshal.AsSpan(list314); + ref QuestSequence reference220 = ref span109[0]; QuestSequence obj197 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 1f }; obj197.Steps = list315; reference220 = obj197; - num++; - ref QuestSequence reference221 = ref span314[num]; + ref QuestSequence reference221 = ref span109[1]; QuestSequence obj198 = new QuestSequence { Sequence = 1 @@ -428380,93 +352440,71 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.Interact, 1050697u, new Vector3(190.4784f, 18.978786f, 210.49817f), 1187) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 1050697u, new Vector3(190.4784f, 18.978786f, 210.49817f), 1187) { Fly = true }; obj198.Steps = list316; reference221 = obj198; - num++; - ref QuestSequence reference222 = ref span314[num]; + ref QuestSequence reference222 = ref span109[2]; QuestSequence obj199 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list317 = new List(index2); - CollectionsMarshal.SetCount(list317, index2); - Span span317 = CollectionsMarshal.AsSpan(list317); - num2 = 0; - ref QuestStep reference223 = ref span317[num2]; + num2 = 2; + List list317 = new List(num2); + CollectionsMarshal.SetCount(list317, num2); + Span span110 = CollectionsMarshal.AsSpan(list317); + ref QuestStep reference223 = ref span110[0]; QuestStep obj200 = new QuestStep(EInteractionType.Combat, null, new Vector3(238.52116f, 47.201637f, 78.30595f), 1187) { StopDistance = 0.25f, Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list318 = new List(index3); - CollectionsMarshal.SetCount(list318, index3); - Span span318 = CollectionsMarshal.AsSpan(list318); - num3 = 0; - span318[num3] = 17650u; + num3 = 1; + List list318 = new List(num3); + CollectionsMarshal.SetCount(list318, num3); + CollectionsMarshal.AsSpan(list318)[0] = 17650u; obj200.KillEnemyDataIds = list318; num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - 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); + 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); obj200.CompletionQuestVariablesFlags = list319; reference223 = obj200; - num2++; - ref QuestStep reference224 = ref span317[num2]; + ref QuestStep reference224 = ref span110[1]; QuestStep obj201 = new QuestStep(EInteractionType.Combat, null, new Vector3(173.96666f, 56.288116f, -18.299652f), 1187) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list320 = new List(index3); - CollectionsMarshal.SetCount(list320, index3); - Span span320 = CollectionsMarshal.AsSpan(list320); - num3 = 0; - span320[num3] = 17650u; + num3 = 1; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + CollectionsMarshal.AsSpan(list320)[0] = 17650u; obj201.KillEnemyDataIds = list320; num3 = 6; List list321 = new List(num3); CollectionsMarshal.SetCount(list321, num3); - 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); + 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); obj201.CompletionQuestVariablesFlags = list321; reference224 = obj201; obj199.Steps = list317; reference222 = obj199; - num++; - ref QuestSequence reference225 = ref span314[num]; + ref QuestSequence reference225 = ref span109[3]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -428474,36 +352512,29 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - ref QuestStep reference226 = ref span322[index2]; + ref QuestStep reference226 = ref CollectionsMarshal.AsSpan(list322)[0]; QuestStep obj203 = new QuestStep(EInteractionType.Combat, 1050698u, new Vector3(97.642456f, 38.62021f, -35.81299f), 1187) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index3 = 1; - List list323 = new List(index3); - CollectionsMarshal.SetCount(list323, index3); - Span span323 = CollectionsMarshal.AsSpan(list323); - num3 = 0; - span323[num3] = 17651u; + num3 = 1; + List list323 = new List(num3); + CollectionsMarshal.SetCount(list323, num3); + CollectionsMarshal.AsSpan(list323)[0] = 17651u; obj203.KillEnemyDataIds = list323; reference226 = obj203; obj202.Steps = list322; reference225 = obj202; - num++; - ref QuestSequence reference227 = ref span314[num]; + ref QuestSequence reference227 = ref span109[4]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -428522,16 +352553,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -428539,26 +352567,22 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 3; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1048774u, new Vector3(495.35352f, 114.935f, 632.95935f), 1187) { Fly = true @@ -428566,47 +352590,33 @@ public static class AssemblyQuestLoader int num3 = 6; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - 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); + 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); obj3.CompletionQuestVariablesFlags = list5; reference3 = obj3; - num2++; - ref QuestStep reference4 = ref span4[num2]; + ref QuestStep reference4 = ref span2[1]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 1048745u, new Vector3(383.3523f, 129.04726f, 657.52637f), 1187) { Fly = true }; - 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); + 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); obj4.CompletionQuestVariablesFlags = list6; reference4 = obj4; - num2++; - ref QuestStep reference5 = ref span4[num2]; + ref QuestStep reference5 = ref span2[2]; QuestStep obj5 = new QuestStep(EInteractionType.Interact, 1048747u, new Vector3(348.47034f, 130.34726f, 597.3755f), 1187) { Fly = true @@ -428614,25 +352624,18 @@ public static class AssemblyQuestLoader num3 = 6; List list7 = new List(num3); CollectionsMarshal.SetCount(list7, num3); - 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); + 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); obj5.CompletionQuestVariablesFlags = list7; reference5 = obj5; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[2]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue @@ -428640,9 +352643,7 @@ public static class AssemblyQuestLoader num2 = 1; List list8 = new List(num2); CollectionsMarshal.SetCount(list8, num2); - Span span8 = CollectionsMarshal.AsSpan(list8); - index2 = 0; - span8[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) + CollectionsMarshal.AsSpan(list8)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048732u, new Vector3(541.4053f, 107.13434f, 602.50244f), 1187) { StopDistance = 5f, Fly = true @@ -428656,30 +352657,24 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "liza"; + CollectionsMarshal.AsSpan(list9)[0] = "liza"; questRoot2.Author = list9; - index = 4; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 4; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span6 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span6[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span6[1]; QuestSequence obj8 = new QuestSequence { Sequence = 1 @@ -428687,27 +352682,21 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span10[num]; + ref QuestSequence reference9 = ref span6[2]; QuestSequence obj9 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span10[num]; + ref QuestSequence reference10 = ref span6[3]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue @@ -428715,9 +352704,7 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); obj10.Steps = list14; reference10 = obj10; questRoot2.QuestSequence = list10; @@ -428727,26 +352714,21 @@ public static class AssemblyQuestLoader num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - index = 0; - span15[index] = "liza"; + CollectionsMarshal.AsSpan(list15)[0] = "liza"; questRoot3.Author = list15; - index = 5; - List list16 = new List(index); - CollectionsMarshal.SetCount(list16, index); - Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - ref QuestSequence reference11 = ref span16[num]; + num = 5; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); + Span span7 = CollectionsMarshal.AsSpan(list16); + ref QuestSequence reference11 = ref span7[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -428764,8 +352746,7 @@ public static class AssemblyQuestLoader }; obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span16[num]; + ref QuestSequence reference12 = ref span7[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 @@ -428773,33 +352754,27 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.Interact, 1051199u, new Vector3(442.95398f, -116.815155f, -178.63745f), 1187) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.Interact, 1051199u, new Vector3(442.95398f, -116.815155f, -178.63745f), 1187) { Fly = true }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span16[num]; + ref QuestSequence reference13 = ref span7[2]; QuestSequence obj13 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span16[num]; + ref QuestSequence reference14 = ref span7[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 @@ -428807,23 +352782,18 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Interact, 1048773u, new Vector3(576.2875f, -49.16388f, 37.00305f), 1187); + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Interact, 1048773u, new Vector3(576.2875f, -49.16388f, 37.00305f), 1187); obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span16[num]; + ref QuestSequence reference15 = ref span7[4]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -428838,16 +352808,13 @@ public static class AssemblyQuestLoader num = 1; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span22 = CollectionsMarshal.AsSpan(list22); - index = 0; - span22[index] = "liza"; + CollectionsMarshal.AsSpan(list22)[0] = "liza"; questRoot4.Author = list22; - index = 3; - List list23 = new List(index); - CollectionsMarshal.SetCount(list23, index); - Span span23 = CollectionsMarshal.AsSpan(list23); - num = 0; - ref QuestSequence reference16 = ref span23[num]; + num = 3; + List list23 = new List(num); + CollectionsMarshal.SetCount(list23, num); + Span span8 = CollectionsMarshal.AsSpan(list23); + ref QuestSequence reference16 = ref span8[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 @@ -428855,9 +352822,7 @@ public static class AssemblyQuestLoader num2 = 1; List list24 = new List(num2); CollectionsMarshal.SetCount(list24, num2); - Span span24 = CollectionsMarshal.AsSpan(list24); - index2 = 0; - ref QuestStep reference17 = ref span24[index2]; + ref QuestStep reference17 = ref CollectionsMarshal.AsSpan(list24)[0]; QuestStep obj17 = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -428874,12 +352839,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list25 = new List(num4); - CollectionsMarshal.SetCount(list25, num4); - Span span25 = CollectionsMarshal.AsSpan(list25); - num3 = 0; - span25[num3] = new DialogueChoice + num3 = 1; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + CollectionsMarshal.AsSpan(list25)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q1_000_000"), @@ -428889,63 +352852,47 @@ public static class AssemblyQuestLoader reference17 = obj17; obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference18 = ref span23[num]; + ref QuestSequence reference18 = ref span8[1]; QuestSequence obj18 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list26 = new List(index2); - CollectionsMarshal.SetCount(list26, index2); - Span span26 = CollectionsMarshal.AsSpan(list26); - num2 = 0; - ref QuestStep reference19 = ref span26[num2]; + num2 = 4; + List list26 = new List(num2); + CollectionsMarshal.SetCount(list26, num2); + Span span9 = CollectionsMarshal.AsSpan(list26); + ref QuestStep reference19 = ref span9[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list27; reference19 = questStep; - num2++; - ref QuestStep reference20 = ref span26[num2]; + ref QuestStep reference20 = ref span9[1]; QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1051202u, new Vector3(338.55188f, -160.20284f, -450.9804f), 1187) { Fly = true }; - 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); + 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); obj19.CompletionQuestVariablesFlags = list28; reference20 = obj19; - num2++; - ref QuestStep reference21 = ref span26[num2]; + ref QuestStep reference21 = ref span9[2]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1051203u, new Vector3(283.22266f, -168.30641f, -452.26215f), 1187) { Fly = true @@ -428953,49 +352900,35 @@ public static class AssemblyQuestLoader 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)4, 0, EQuestWorkMode.Bitwise); + 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); obj20.CompletionQuestVariablesFlags = list29; reference21 = obj20; - num2++; - ref QuestStep reference22 = ref span26[num2]; + ref QuestStep reference22 = ref span9[3]; QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1048660u, new Vector3(246.3263f, -168.27f, -487.20532f), 1187) { Fly = true }; - 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); + 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); obj21.CompletionQuestVariablesFlags = list30; reference22 = obj21; obj18.Steps = list26; reference18 = obj18; - num++; - ref QuestSequence reference23 = ref span23[num]; + ref QuestSequence reference23 = ref span8[2]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -429003,9 +352936,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - ref QuestStep reference24 = ref span31[index2]; + ref QuestStep reference24 = ref CollectionsMarshal.AsSpan(list31)[0]; QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Fly = true @@ -429013,9 +352944,7 @@ public static class AssemblyQuestLoader num3 = 1; List list32 = new List(num3); CollectionsMarshal.SetCount(list32, num3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num4 = 0; - span32[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list32)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q2_000_000") @@ -429032,26 +352961,21 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot5.Author = list33; - index = 5; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference25 = ref span34[num]; + num = 5; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span14 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference25 = ref span14[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, SkipConditions = new SkipConditions @@ -429069,8 +352993,7 @@ public static class AssemblyQuestLoader }; obj24.Steps = list35; reference25 = obj24; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span14[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -429078,36 +353001,29 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - span36[index2] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) + CollectionsMarshal.AsSpan(list36)[0] = new QuestStep(EInteractionType.Interact, 1051200u, new Vector3(563.83606f, -49.515564f, 49.54602f), 1187) { Fly = true }; obj25.Steps = list36; reference26 = obj25; - num++; - ref QuestSequence reference27 = ref span34[num]; + ref QuestSequence reference27 = ref span14[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list37 = new List(index2); - CollectionsMarshal.SetCount(list37, index2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num2 = 0; - ref QuestStep reference28 = ref span37[num2]; + num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + ref QuestStep reference28 = ref CollectionsMarshal.AsSpan(list37)[0]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2014271u, new Vector3(560.9064f, -54.459473f, 22.781677f), 1187) { DisableNavmesh = true }; - num4 = 1; - List list38 = new List(num4); - CollectionsMarshal.SetCount(list38, num4); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB204_05054_Q1_000_000") @@ -429116,8 +353032,7 @@ public static class AssemblyQuestLoader reference28 = obj27; obj26.Steps = list37; reference27 = obj26; - num++; - ref QuestSequence reference29 = ref span34[num]; + ref QuestSequence reference29 = ref span14[3]; QuestSequence obj28 = new QuestSequence { Sequence = 3 @@ -429125,26 +353040,21 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1051204u, new Vector3(562.7374f, -54.457336f, 21.530457f), 1187) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051204u, new Vector3(562.7374f, -54.457336f, 21.530457f), 1187) { StopDistance = 5f }; obj28.Steps = list39; reference29 = obj28; - num++; - ref QuestSequence reference30 = ref span34[num]; + ref QuestSequence reference30 = ref span14[4]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; @@ -429157,16 +353067,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "liza"; + CollectionsMarshal.AsSpan(list41)[0] = "liza"; questRoot6.Author = list41; - index = 5; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference31 = ref span42[num]; + num = 5; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span15 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference31 = ref span15[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -429174,35 +353081,29 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f }; obj30.Steps = list43; reference31 = obj30; - num++; - ref QuestSequence reference32 = ref span42[num]; + ref QuestSequence reference32 = ref span15[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj31.Steps = list44; reference32 = obj31; - num++; - ref QuestSequence reference33 = ref span42[num]; + ref QuestSequence reference33 = ref span15[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -429210,9 +353111,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - ref QuestStep reference34 = ref span45[index2]; + ref QuestStep reference34 = ref CollectionsMarshal.AsSpan(list45)[0]; QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2014272u, new Vector3(133.53162f, 22.2323f, 295.9182f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -429220,34 +353119,28 @@ public static class AssemblyQuestLoader num3 = 1; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - Span span46 = CollectionsMarshal.AsSpan(list46); - num4 = 0; - span46[num4] = 17652u; + CollectionsMarshal.AsSpan(list46)[0] = 17652u; obj33.KillEnemyDataIds = list46; reference34 = obj33; obj32.Steps = list45; reference33 = obj32; - num++; - ref QuestSequence reference35 = ref span42[num]; + ref QuestSequence reference35 = ref span15[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Comment = "Avoids combat" }; - num2++; - span47[num2] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); + span17[1] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); obj34.Steps = list47; reference35 = obj34; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span15[4]; QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue @@ -429255,9 +353148,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -429271,26 +353162,21 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot7.Author = list49; - index = 6; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference37 = ref span50[num]; + num = 6; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span18 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference37 = ref span18[0]; QuestSequence obj36 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref QuestStep reference38 = ref CollectionsMarshal.AsSpan(list51)[0]; QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, @@ -429308,12 +353194,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list52 = new List(num4); - CollectionsMarshal.SetCount(list52, num4); - Span span52 = CollectionsMarshal.AsSpan(list52); - num3 = 0; - span52[num3] = new DialogueChoice + num3 = 1; + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + CollectionsMarshal.AsSpan(list52)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB302_05056_Q1_000_000"), @@ -429323,8 +353207,7 @@ public static class AssemblyQuestLoader reference38 = obj37; obj36.Steps = list51; reference37 = obj36; - num++; - ref QuestSequence reference39 = ref span50[num]; + ref QuestSequence reference39 = ref span18[1]; QuestSequence obj38 = new QuestSequence { Sequence = 1 @@ -429332,26 +353215,22 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.Interact, 1051211u, new Vector3(508.35413f, 111.134995f, 711.57385f), 1187) { Fly = true }; obj38.Steps = list53; reference39 = obj38; - num++; - ref QuestSequence reference40 = ref span50[num]; + ref QuestSequence reference40 = ref span18[2]; QuestSequence obj39 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num2 = 0; - ref QuestStep reference41 = ref span54[num2]; + num2 = 3; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + Span span19 = CollectionsMarshal.AsSpan(list54); + ref QuestStep reference41 = ref span19[0]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 2014275u, new Vector3(673.2433f, 124.40674f, 416.28137f), 1187) { StopDistance = 0.25f, @@ -429360,48 +353239,34 @@ public static class AssemblyQuestLoader num3 = 6; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - 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); + 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); obj40.CompletionQuestVariablesFlags = list55; reference41 = obj40; - num2++; - ref QuestStep reference42 = ref span54[num2]; + ref QuestStep reference42 = ref span19[1]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2014273u, new Vector3(631.58606f, 124.833984f, 405.7527f), 1187) { StopDistance = 0.25f, Fly = true }; - 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); + 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); obj41.CompletionQuestVariablesFlags = list56; reference42 = obj41; - num2++; - ref QuestStep reference43 = ref span54[num2]; + ref QuestStep reference43 = ref span19[2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 2014274u, new Vector3(637.93384f, 120.80554f, 352.34607f), 1187) { StopDistance = 0.25f, @@ -429410,25 +353275,18 @@ public static class AssemblyQuestLoader num3 = 6; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - 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); + 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); obj42.CompletionQuestVariablesFlags = list57; reference43 = obj42; obj39.Steps = list54; reference40 = obj39; - num++; - ref QuestSequence reference44 = ref span50[num]; + ref QuestSequence reference44 = ref span18[3]; QuestSequence obj43 = new QuestSequence { Sequence = 3 @@ -429436,34 +353294,28 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1051213u, new Vector3(624.9331f, 122.30835f, 387.41125f), 1187) + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1051213u, new Vector3(624.9331f, 122.30835f, 387.41125f), 1187) { StopDistance = 5f }; obj43.Steps = list58; reference44 = obj43; - num++; - ref QuestSequence reference45 = ref span50[num]; + ref QuestSequence reference45 = ref span18[4]; QuestSequence obj44 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; obj44.Steps = list59; reference45 = obj44; - num++; - ref QuestSequence reference46 = ref span50[num]; + ref QuestSequence reference46 = ref span18[5]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue @@ -429471,9 +353323,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, Fly = true, @@ -429488,26 +353338,21 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot8.Author = list61; - index = 6; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference47 = ref span62[num]; + num = 6; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span23 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference47 = ref span23[0]; QuestSequence obj46 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, @@ -429525,12 +353370,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list64 = new List(num4); - CollectionsMarshal.SetCount(list64, num4); - Span span64 = CollectionsMarshal.AsSpan(list64); - num3 = 0; - span64[num3] = new DialogueChoice + num3 = 1; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZB303_05057_Q1_000_000"), @@ -429540,8 +353383,7 @@ public static class AssemblyQuestLoader reference48 = obj47; obj46.Steps = list63; reference47 = obj46; - num++; - ref QuestSequence reference49 = ref span62[num]; + ref QuestSequence reference49 = ref span23[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -429549,47 +353391,40 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Interact, 1051214u, new Vector3(256.21423f, 25.563068f, 227.55774f), 1187) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1051214u, new Vector3(256.21423f, 25.563068f, 227.55774f), 1187) { Fly = true }; obj48.Steps = list65; reference49 = obj48; - num++; - ref QuestSequence reference50 = ref span62[num]; + ref QuestSequence reference50 = ref span23[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - 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) + 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) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - num2++; - span66[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(167.20306f, 24.205856f, 150.9515f), 1187) + span24[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(167.20306f, 24.205856f, 150.9515f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - num2++; - span66[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(202.11948f, 39.574707f, 86.737045f), 1187) + span24[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(202.11948f, 39.574707f, 86.737045f), 1187) { NpcWaitDistance = 6f, Mount = false, Sprint = false }; - num2++; - ref QuestStep reference51 = ref span66[num2]; + ref QuestStep reference51 = ref span24[3]; QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187) { Mount = false, @@ -429599,17 +353434,13 @@ public static class AssemblyQuestLoader num3 = 1; List list67 = new List(num3); CollectionsMarshal.SetCount(list67, num3); - Span span67 = CollectionsMarshal.AsSpan(list67); - num4 = 0; - span67[num4] = 17654u; + CollectionsMarshal.AsSpan(list67)[0] = 17654u; obj50.KillEnemyDataIds = list67; reference51 = obj50; - num2++; - span66[num2] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); + span24[4] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); obj49.Steps = list66; reference50 = obj49; - num++; - ref QuestSequence reference52 = ref span62[num]; + ref QuestSequence reference52 = ref span23[3]; QuestSequence obj51 = new QuestSequence { Sequence = 3 @@ -429617,44 +353448,37 @@ public static class AssemblyQuestLoader num2 = 3; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - span68[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(235.00903f, 44.070503f, -28.761452f), 1187) + Span span25 = CollectionsMarshal.AsSpan(list68); + span25[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(235.00903f, 44.070503f, -28.761452f), 1187) { NpcWaitDistance = 6.5f, Mount = false, Sprint = false }; - index2++; - span68[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187) + span25[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17653u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187) { NpcWaitDistance = 6.5f, Mount = false, Sprint = false }; - index2++; - span68[index2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); + span25[2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); obj51.Steps = list68; reference52 = obj51; - num++; - ref QuestSequence reference53 = ref span62[num]; + ref QuestSequence reference53 = ref span23[4]; QuestSequence obj52 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj52.Steps = list69; reference53 = obj52; - num++; - ref QuestSequence reference54 = ref span62[num]; + ref QuestSequence reference54 = ref span23[5]; QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue @@ -429662,9 +353486,7 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -429679,26 +353501,21 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot9.Author = list71; - index = 8; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference55 = ref span72[num]; + num = 8; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span26 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference55 = ref span26[0]; QuestSequence obj54 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -429717,8 +353534,7 @@ public static class AssemblyQuestLoader }; obj54.Steps = list73; reference55 = obj54; - num++; - ref QuestSequence reference56 = ref span72[num]; + ref QuestSequence reference56 = ref span26[1]; QuestSequence obj55 = new QuestSequence { Sequence = 1 @@ -429726,33 +353542,27 @@ public static class AssemblyQuestLoader num2 = 1; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - span74[index2] = new QuestStep(EInteractionType.Interact, 1051216u, new Vector3(522.8502f, 111.135f, 614.3434f), 1187) + CollectionsMarshal.AsSpan(list74)[0] = new QuestStep(EInteractionType.Interact, 1051216u, new Vector3(522.8502f, 111.135f, 614.3434f), 1187) { Fly = true }; obj55.Steps = list74; reference56 = obj55; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span26[2]; QuestSequence obj56 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj56.Steps = list75; reference57 = obj56; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span26[3]; QuestSequence obj57 = new QuestSequence { Sequence = 3 @@ -429760,44 +353570,36 @@ public static class AssemblyQuestLoader num2 = 1; List list76 = new List(num2); CollectionsMarshal.SetCount(list76, num2); - Span span76 = CollectionsMarshal.AsSpan(list76); - index2 = 0; - span76[index2] = new QuestStep(EInteractionType.Interact, 1051221u, new Vector3(-670.25256f, 53.34527f, 126.29883f), 1187) + CollectionsMarshal.AsSpan(list76)[0] = new QuestStep(EInteractionType.Interact, 1051221u, new Vector3(-670.25256f, 53.34527f, 126.29883f), 1187) { StopDistance = 0.25f, Fly = true }; obj57.Steps = list76; reference58 = obj57; - num++; - ref QuestSequence reference59 = ref span72[num]; + ref QuestSequence reference59 = ref span26[4]; QuestSequence obj58 = new QuestSequence { Sequence = 4 }; - index2 = 1; - List list77 = new List(index2); - CollectionsMarshal.SetCount(list77, index2); - Span span77 = CollectionsMarshal.AsSpan(list77); - num2 = 0; - ref QuestStep reference60 = ref span77[num2]; + num2 = 1; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list77)[0]; QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-779.43585f, 61.86622f, 198.07907f), 1187) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list78 = new List(num4); - CollectionsMarshal.SetCount(list78, num4); - Span span78 = CollectionsMarshal.AsSpan(list78); - num3 = 0; - span78[num3] = 17655u; + num3 = 1; + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + CollectionsMarshal.AsSpan(list78)[0] = 17655u; obj59.KillEnemyDataIds = list78; reference60 = obj59; obj58.Steps = list77; reference59 = obj58; - num++; - ref QuestSequence reference61 = ref span72[num]; + ref QuestSequence reference61 = ref span26[5]; QuestSequence obj60 = new QuestSequence { Sequence = 5 @@ -429805,33 +353607,27 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.Interact, 1051223u, new Vector3(-781.3993f, 61.80422f, 198.2909f), 1187) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.Interact, 1051223u, new Vector3(-781.3993f, 61.80422f, 198.2909f), 1187) { StopDistance = 8f }; obj60.Steps = list79; reference61 = obj60; - num++; - ref QuestSequence reference62 = ref span72[num]; + ref QuestSequence reference62 = ref span26[6]; QuestSequence obj61 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj61.Steps = list80; reference62 = obj61; - num++; - ref QuestSequence reference63 = ref span72[num]; + ref QuestSequence reference63 = ref span26[7]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue @@ -429839,9 +353635,7 @@ public static class AssemblyQuestLoader num2 = 1; List list81 = new List(num2); CollectionsMarshal.SetCount(list81, num2); - Span span81 = CollectionsMarshal.AsSpan(list81); - index2 = 0; - span81[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + CollectionsMarshal.AsSpan(list81)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -429856,26 +353650,21 @@ public static class AssemblyQuestLoader num = 1; List list82 = new List(num); CollectionsMarshal.SetCount(list82, num); - Span span82 = CollectionsMarshal.AsSpan(list82); - index = 0; - span82[index] = "liza"; + CollectionsMarshal.AsSpan(list82)[0] = "liza"; questRoot10.Author = list82; - index = 6; - List list83 = new List(index); - CollectionsMarshal.SetCount(list83, index); - Span span83 = CollectionsMarshal.AsSpan(list83); - num = 0; - ref QuestSequence reference64 = ref span83[num]; + num = 6; + List list83 = new List(num); + CollectionsMarshal.SetCount(list83, num); + Span span27 = CollectionsMarshal.AsSpan(list83); + ref QuestSequence reference64 = ref span27[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -429894,8 +353683,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list84; reference64 = obj63; - num++; - ref QuestSequence reference65 = ref span83[num]; + ref QuestSequence reference65 = ref span27[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 @@ -429903,33 +353691,27 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.Interact, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; obj64.Steps = list85; reference65 = obj64; - num++; - ref QuestSequence reference66 = ref span83[num]; + ref QuestSequence reference66 = ref span27[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj65.Steps = list86; reference66 = obj65; - num++; - ref QuestSequence reference67 = ref span83[num]; + ref QuestSequence reference67 = ref span27[3]; QuestSequence obj66 = new QuestSequence { Sequence = 3 @@ -429937,34 +353719,28 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1051230u, new Vector3(-23.422668f, 54.695663f, 533.1044f), 1187) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1051230u, new Vector3(-23.422668f, 54.695663f, 533.1044f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; obj66.Steps = list87; reference67 = obj66; - num++; - ref QuestSequence reference68 = ref span83[num]; + ref QuestSequence reference68 = ref span27[4]; QuestSequence obj67 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj67.Steps = list88; reference68 = obj67; - num++; - ref QuestSequence reference69 = ref span83[num]; + ref QuestSequence reference69 = ref span27[5]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue @@ -429972,9 +353748,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051236u, new Vector3(426.3828f, 118.935f, 603.6621f), 1187) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051236u, new Vector3(426.3828f, 118.935f, 603.6621f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -429987,30 +353761,24 @@ public static class AssemblyQuestLoader num = 1; List list90 = new List(num); CollectionsMarshal.SetCount(list90, num); - Span span90 = CollectionsMarshal.AsSpan(list90); - index = 0; - span90[index] = "liza"; + CollectionsMarshal.AsSpan(list90)[0] = "liza"; questRoot11.Author = list90; - index = 4; - List list91 = new List(index); - CollectionsMarshal.SetCount(list91, index); - Span span91 = CollectionsMarshal.AsSpan(list91); - num = 0; - ref QuestSequence reference70 = ref span91[num]; + num = 4; + List list91 = new List(num); + CollectionsMarshal.SetCount(list91, num); + Span span28 = CollectionsMarshal.AsSpan(list91); + ref QuestSequence reference70 = ref span28[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj69.Steps = list92; reference70 = obj69; - num++; - ref QuestSequence reference71 = ref span91[num]; + ref QuestSequence reference71 = ref span28[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 @@ -430018,33 +353786,28 @@ public static class AssemblyQuestLoader num2 = 2; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.41179f, 15.238003f, -677.9412f), 1188) + Span span29 = CollectionsMarshal.AsSpan(list93); + span29[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-93.41179f, 15.238003f, -677.9412f), 1188) { Fly = true }; - index2++; - span93[index2] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); + span29[1] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); obj70.Steps = list93; reference71 = obj70; - num++; - ref QuestSequence reference72 = ref span91[num]; + ref QuestSequence reference72 = ref span28[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference73 = ref span94[num2]; + ref QuestStep reference73 = ref span30[1]; QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2014163u, new Vector3(181.8722f, 0.99176025f, -568.5359f), 1188) { Fly = true, @@ -430053,47 +353816,33 @@ public static class AssemblyQuestLoader num3 = 6; List list95 = new List(num3); CollectionsMarshal.SetCount(list95, num3); - 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); + 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); obj72.CompletionQuestVariablesFlags = list95; reference73 = obj72; - num2++; - ref QuestStep reference74 = ref span94[num2]; + ref QuestStep reference74 = ref span30[2]; QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2014161u, new Vector3(221.57617f, 0.99176025f, -610.7423f), 1188) { ItemId = 2003626u }; - 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); + 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); obj73.CompletionQuestVariablesFlags = list96; reference74 = obj73; - num2++; - ref QuestStep reference75 = ref span94[num2]; + ref QuestStep reference75 = ref span30[3]; QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2014162u, new Vector3(244.953f, 1.1138916f, -569.2684f), 1188) { ItemId = 2003626u @@ -430101,25 +353850,18 @@ public static class AssemblyQuestLoader num3 = 6; List list97 = new List(num3); CollectionsMarshal.SetCount(list97, num3); - 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); + 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); obj74.CompletionQuestVariablesFlags = list97; reference75 = obj74; obj71.Steps = list94; reference72 = obj71; - num++; - ref QuestSequence reference76 = ref span91[num]; + ref QuestSequence reference76 = ref span28[3]; QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue @@ -430127,9 +353869,7 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188) + CollectionsMarshal.AsSpan(list98)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -430143,30 +353883,24 @@ public static class AssemblyQuestLoader num = 1; List list99 = new List(num); CollectionsMarshal.SetCount(list99, num); - Span span99 = CollectionsMarshal.AsSpan(list99); - index = 0; - span99[index] = "liza"; + CollectionsMarshal.AsSpan(list99)[0] = "liza"; questRoot12.Author = list99; - index = 3; - List list100 = new List(index); - CollectionsMarshal.SetCount(list100, index); - Span span100 = CollectionsMarshal.AsSpan(list100); - num = 0; - ref QuestSequence reference77 = ref span100[num]; + num = 3; + List list100 = new List(num); + CollectionsMarshal.SetCount(list100, num); + Span span34 = CollectionsMarshal.AsSpan(list100); + ref QuestSequence reference77 = ref span34[0]; QuestSequence obj76 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj76.Steps = list101; reference77 = obj76; - num++; - ref QuestSequence reference78 = ref span100[num]; + ref QuestSequence reference78 = ref span34[1]; QuestSequence obj77 = new QuestSequence { Sequence = 1 @@ -430174,9 +353908,8 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - span102[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.05529f, 25.199324f, -523.8404f), 1188) + Span span35 = CollectionsMarshal.AsSpan(list102); + span35[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-95.05529f, 25.199324f, -523.8404f), 1188) { Mount = true, SkipConditions = new SkipConditions @@ -430187,35 +353920,29 @@ public static class AssemblyQuestLoader } } }; - index2++; - ref QuestStep reference79 = ref span102[index2]; + ref QuestStep reference79 = ref span35[1]; QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2014195u, new Vector3(-314.2901f, 0.38146973f, -211.26117f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list103 = new List(num4); - CollectionsMarshal.SetCount(list103, num4); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = 17656u; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = 17656u; obj78.KillEnemyDataIds = list103; reference79 = obj78; obj77.Steps = list102; reference78 = obj77; - num++; - ref QuestSequence reference80 = ref span100[num]; + ref QuestSequence reference80 = ref span34[2]; QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -430229,16 +353956,13 @@ public static class AssemblyQuestLoader num = 1; List list105 = new List(num); CollectionsMarshal.SetCount(list105, num); - Span span105 = CollectionsMarshal.AsSpan(list105); - index = 0; - span105[index] = "liza"; + CollectionsMarshal.AsSpan(list105)[0] = "liza"; questRoot13.Author = list105; - index = 3; - List list106 = new List(index); - CollectionsMarshal.SetCount(list106, index); - Span span106 = CollectionsMarshal.AsSpan(list106); - num = 0; - ref QuestSequence reference81 = ref span106[num]; + num = 3; + List list106 = new List(num); + CollectionsMarshal.SetCount(list106, num); + Span span36 = CollectionsMarshal.AsSpan(list106); + ref QuestSequence reference81 = ref span36[0]; QuestSequence obj80 = new QuestSequence { Sequence = 0 @@ -430246,23 +353970,18 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); obj80.Steps = list107; reference81 = obj80; - num++; - ref QuestSequence reference82 = ref span106[num]; + ref QuestSequence reference82 = ref span36[1]; QuestSequence obj81 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list108 = new List(index2); - CollectionsMarshal.SetCount(list108, index2); - Span span108 = CollectionsMarshal.AsSpan(list108); - num2 = 0; - ref QuestStep reference83 = ref span108[num2]; + num2 = 1; + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + ref QuestStep reference83 = ref CollectionsMarshal.AsSpan(list108)[0]; QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2014196u, new Vector3(819.6382f, 14.084045f, -312.21484f), 1188) { Fly = true, @@ -430271,17 +353990,14 @@ public static class AssemblyQuestLoader num3 = 2; List list109 = new List(num3); CollectionsMarshal.SetCount(list109, num3); - Span span109 = CollectionsMarshal.AsSpan(list109); - num4 = 0; - span109[num4] = 17657u; - num4++; - span109[num4] = 17658u; + Span span37 = CollectionsMarshal.AsSpan(list109); + span37[0] = 17657u; + span37[1] = 17658u; obj82.KillEnemyDataIds = list109; reference83 = obj82; obj81.Steps = list108; reference82 = obj81; - num++; - ref QuestSequence reference84 = ref span106[num]; + ref QuestSequence reference84 = ref span36[2]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue @@ -430289,9 +354005,7 @@ public static class AssemblyQuestLoader num2 = 1; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - Span span110 = CollectionsMarshal.AsSpan(list110); - index2 = 0; - span110[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188) + CollectionsMarshal.AsSpan(list110)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -430304,30 +354018,24 @@ public static class AssemblyQuestLoader num = 1; List list111 = new List(num); CollectionsMarshal.SetCount(list111, num); - Span span111 = CollectionsMarshal.AsSpan(list111); - index = 0; - span111[index] = "liza"; + CollectionsMarshal.AsSpan(list111)[0] = "liza"; questRoot14.Author = list111; - index = 3; - List list112 = new List(index); - CollectionsMarshal.SetCount(list112, index); - Span span112 = CollectionsMarshal.AsSpan(list112); - num = 0; - ref QuestSequence reference85 = ref span112[num]; + num = 3; + List list112 = new List(num); + CollectionsMarshal.SetCount(list112, num); + Span span38 = CollectionsMarshal.AsSpan(list112); + ref QuestSequence reference85 = ref span38[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj84.Steps = list113; reference85 = obj84; - num++; - ref QuestSequence reference86 = ref span112[num]; + ref QuestSequence reference86 = ref span38[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 @@ -430335,33 +354043,25 @@ public static class AssemblyQuestLoader num2 = 3; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - ref QuestStep reference87 = ref span114[index2]; + Span span39 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference87 = ref span39[0]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014165u, new Vector3(255.57336f, -0.015319824f, -350.57605f), 1188) { Fly = true }; - 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); + 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); obj86.CompletionQuestVariablesFlags = list115; reference87 = obj86; - index2++; - ref QuestStep reference88 = ref span114[index2]; + ref QuestStep reference88 = ref span39[1]; QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2014166u, new Vector3(198.74878f, -0.015319824f, -385.39716f), 1188) { Fly = true @@ -430369,59 +354069,43 @@ public static class AssemblyQuestLoader num3 = 6; List list116 = new List(num3); CollectionsMarshal.SetCount(list116, num3); - 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); + 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); obj87.CompletionQuestVariablesFlags = list116; reference88 = obj87; - index2++; - ref QuestStep reference89 = ref span114[index2]; + ref QuestStep reference89 = ref span39[2]; QuestStep obj88 = new QuestStep(EInteractionType.Interact, 2014164u, new Vector3(92.69849f, -0.015319824f, -409.26227f), 1188) { Fly = true }; - 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); + 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); obj88.CompletionQuestVariablesFlags = list117; reference89 = obj88; obj85.Steps = list114; reference86 = obj85; - num++; - ref QuestSequence reference90 = ref span112[num]; + ref QuestSequence reference90 = ref span38[2]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj89.Steps = list118; reference90 = obj89; questRoot14.QuestSequence = list112; @@ -430431,16 +354115,13 @@ public static class AssemblyQuestLoader num = 1; List list119 = new List(num); CollectionsMarshal.SetCount(list119, num); - Span span119 = CollectionsMarshal.AsSpan(list119); - index = 0; - span119[index] = "liza"; + CollectionsMarshal.AsSpan(list119)[0] = "liza"; questRoot15.Author = list119; - index = 4; - List list120 = new List(index); - CollectionsMarshal.SetCount(list120, index); - Span span120 = CollectionsMarshal.AsSpan(list120); - num = 0; - ref QuestSequence reference91 = ref span120[num]; + num = 4; + List list120 = new List(num); + CollectionsMarshal.SetCount(list120, num); + Span span43 = CollectionsMarshal.AsSpan(list120); + ref QuestSequence reference91 = ref span43[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -430448,88 +354129,63 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); obj90.Steps = list121; reference91 = obj90; - num++; - ref QuestSequence reference92 = ref span120[num]; + ref QuestSequence reference92 = ref span43[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list122 = new List(index2); - CollectionsMarshal.SetCount(list122, index2); - Span span122 = CollectionsMarshal.AsSpan(list122); - num2 = 0; - ref QuestStep reference93 = ref span122[num2]; + num2 = 3; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + Span span44 = CollectionsMarshal.AsSpan(list122); + ref QuestStep reference93 = ref span44[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list123; reference93 = questStep2; - num2++; - ref QuestStep reference94 = ref span122[num2]; + ref QuestStep reference94 = ref span44[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014168u, new Vector3(-262.50098f, 4.989685f, -318.25745f), 1188); - num4 = 6; - List list124 = new List(num4); - CollectionsMarshal.SetCount(list124, num4); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list124; reference94 = questStep3; - num2++; - ref QuestStep reference95 = ref span122[num2]; + ref QuestStep reference95 = ref span44[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list125; reference95 = questStep4; obj91.Steps = list122; reference92 = obj91; - num++; - ref QuestSequence reference96 = ref span120[num]; + ref QuestSequence reference96 = ref span43[2]; QuestSequence obj92 = new QuestSequence { Sequence = 2 @@ -430537,9 +354193,8 @@ public static class AssemblyQuestLoader num2 = 2; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(399.21567f, -0.40000004f, -384.69452f), 1188) + Span span48 = CollectionsMarshal.AsSpan(list126); + span48[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(399.21567f, -0.40000004f, -384.69452f), 1188) { Comment = "Waypoint after swimming through the river", SkipConditions = new SkipConditions @@ -430550,8 +354205,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span126[index2] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) + span48[1] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -430564,18 +354218,15 @@ public static class AssemblyQuestLoader }; obj92.Steps = list126; reference96 = obj92; - num++; - ref QuestSequence reference97 = ref span120[num]; + ref QuestSequence reference97 = ref span43[3]; QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -430588,16 +354239,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot16.Author = list128; - index = 3; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference98 = ref span129[num]; + num = 3; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span49 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference98 = ref span49[0]; QuestSequence obj94 = new QuestSequence { Sequence = 0 @@ -430605,47 +354253,36 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); obj94.Steps = list130; reference98 = obj94; - num++; - ref QuestSequence reference99 = ref span129[num]; + ref QuestSequence reference99 = ref span49[1]; QuestSequence obj95 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list131 = new List(index2); - CollectionsMarshal.SetCount(list131, index2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num2 = 0; - ref QuestStep reference100 = ref span131[num2]; + num2 = 3; + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + Span span50 = CollectionsMarshal.AsSpan(list131); + ref QuestStep reference100 = ref span50[0]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - 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); + 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); obj96.CompletionQuestVariablesFlags = list132; reference100 = obj96; - num2++; - ref QuestStep reference101 = ref span131[num2]; + ref QuestStep reference101 = ref span50[1]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1048787u, new Vector3(-143.51111f, 9.842161f, -425.7115f), 1188) { Fly = true @@ -430653,49 +354290,35 @@ public static class AssemblyQuestLoader num3 = 6; List list133 = new List(num3); CollectionsMarshal.SetCount(list133, num3); - 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); + 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); obj97.CompletionQuestVariablesFlags = list133; reference101 = obj97; - num2++; - ref QuestStep reference102 = ref span131[num2]; + ref QuestStep reference102 = ref span50[2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true }; - 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); + 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); obj98.CompletionQuestVariablesFlags = list134; reference102 = obj98; obj95.Steps = list131; reference99 = obj95; - num++; - ref QuestSequence reference103 = ref span129[num]; + ref QuestSequence reference103 = ref span49[2]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue @@ -430703,9 +354326,7 @@ public static class AssemblyQuestLoader num2 = 1; List list135 = new List(num2); CollectionsMarshal.SetCount(list135, num2); - Span span135 = CollectionsMarshal.AsSpan(list135); - index2 = 0; - span135[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); + CollectionsMarshal.AsSpan(list135)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); obj99.Steps = list135; reference103 = obj99; questRoot16.QuestSequence = list129; @@ -430715,30 +354336,24 @@ public static class AssemblyQuestLoader num = 1; List list136 = new List(num); CollectionsMarshal.SetCount(list136, num); - Span span136 = CollectionsMarshal.AsSpan(list136); - index = 0; - span136[index] = "liza"; + CollectionsMarshal.AsSpan(list136)[0] = "liza"; questRoot17.Author = list136; - index = 5; - List list137 = new List(index); - CollectionsMarshal.SetCount(list137, index); - Span span137 = CollectionsMarshal.AsSpan(list137); - num = 0; - ref QuestSequence reference104 = ref span137[num]; + num = 5; + List list137 = new List(num); + CollectionsMarshal.SetCount(list137, num); + Span span54 = CollectionsMarshal.AsSpan(list137); + ref QuestSequence reference104 = ref span54[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj100.Steps = list138; reference104 = obj100; - num++; - ref QuestSequence reference105 = ref span137[num]; + ref QuestSequence reference105 = ref span54[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 @@ -430746,34 +354361,28 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1048837u, new Vector3(-613.2754f, 93.595924f, -476.95123f), 1188) + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1048837u, new Vector3(-613.2754f, 93.595924f, -476.95123f), 1188) { Fly = true }; obj101.Steps = list139; reference105 = obj101; - num++; - ref QuestSequence reference106 = ref span137[num]; + ref QuestSequence reference106 = ref span54[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f, Emote = EEmote.Pray }; obj102.Steps = list140; reference106 = obj102; - num++; - ref QuestSequence reference107 = ref span137[num]; + ref QuestSequence reference107 = ref span54[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 @@ -430781,26 +354390,21 @@ public static class AssemblyQuestLoader num2 = 1; List list141 = new List(num2); CollectionsMarshal.SetCount(list141, num2); - Span span141 = CollectionsMarshal.AsSpan(list141); - index2 = 0; - span141[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.36694f, 6.317712f, -463.53406f), 1188) + CollectionsMarshal.AsSpan(list141)[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-585.36694f, 6.317712f, -463.53406f), 1188) { DisableNavmesh = true }; obj103.Steps = list141; reference107 = obj103; - num++; - ref QuestSequence reference108 = ref span137[num]; + ref QuestSequence reference108 = ref span54[4]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -430813,16 +354417,13 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot18.Author = list143; - index = 4; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference109 = ref span144[num]; + num = 4; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span55 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference109 = ref span55[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 @@ -430830,23 +354431,18 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); obj105.Steps = list145; reference109 = obj105; - num++; - ref QuestSequence reference110 = ref span144[num]; + ref QuestSequence reference110 = ref span55[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list146 = new List(index2); - CollectionsMarshal.SetCount(list146, index2); - Span span146 = CollectionsMarshal.AsSpan(list146); - num2 = 0; - ref QuestStep reference111 = ref span146[num2]; + num2 = 1; + List list146 = new List(num2); + CollectionsMarshal.SetCount(list146, num2); + ref QuestStep reference111 = ref CollectionsMarshal.AsSpan(list146)[0]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { Fly = true, @@ -430855,15 +354451,12 @@ public static class AssemblyQuestLoader num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span147 = CollectionsMarshal.AsSpan(list147); - num4 = 0; - span147[num4] = 17659u; + CollectionsMarshal.AsSpan(list147)[0] = 17659u; obj107.KillEnemyDataIds = list147; reference111 = obj107; obj106.Steps = list146; reference110 = obj106; - num++; - ref QuestSequence reference112 = ref span144[num]; + ref QuestSequence reference112 = ref span55[2]; QuestSequence obj108 = new QuestSequence { Sequence = 2 @@ -430871,26 +354464,21 @@ public static class AssemblyQuestLoader num2 = 1; List list148 = new List(num2); CollectionsMarshal.SetCount(list148, num2); - Span span148 = CollectionsMarshal.AsSpan(list148); - index2 = 0; - span148[index2] = new QuestStep(EInteractionType.Interact, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) + CollectionsMarshal.AsSpan(list148)[0] = new QuestStep(EInteractionType.Interact, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { StopDistance = 7f }; obj108.Steps = list148; reference112 = obj108; - num++; - ref QuestSequence reference113 = ref span144[num]; + ref QuestSequence reference113 = ref span55[3]; QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -430904,16 +354492,13 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot19.Author = list150; - index = 4; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference114 = ref span151[num]; + num = 4; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span56 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference114 = ref span56[0]; QuestSequence obj110 = new QuestSequence { Sequence = 0 @@ -430921,30 +354506,24 @@ public static class AssemblyQuestLoader num2 = 1; List list152 = new List(num2); CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - span152[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); + CollectionsMarshal.AsSpan(list152)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); obj110.Steps = list152; reference114 = obj110; - num++; - ref QuestSequence reference115 = ref span151[num]; + ref QuestSequence reference115 = ref span56[1]; QuestSequence obj111 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj111.Steps = list153; reference115 = obj111; - num++; - ref QuestSequence reference116 = ref span151[num]; + ref QuestSequence reference116 = ref span56[2]; QuestSequence obj112 = new QuestSequence { Sequence = 2 @@ -430952,9 +354531,8 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(623.9169f, 46.050114f, -526.32715f), 1188) + Span span57 = CollectionsMarshal.AsSpan(list154); + span57[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(623.9169f, 46.050114f, -526.32715f), 1188) { Fly = true, SkipConditions = new SkipConditions @@ -430965,25 +354543,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span154[index2] = new QuestStep(EInteractionType.Interact, 2014173u, new Vector3(670.5576f, 42.923584f, -515.55664f), 1188) + span57[1] = new QuestStep(EInteractionType.Interact, 2014173u, new Vector3(670.5576f, 42.923584f, -515.55664f), 1188) { Fly = true }; obj112.Steps = list154; reference116 = obj112; - num++; - ref QuestSequence reference117 = ref span151[num]; + ref QuestSequence reference117 = ref span56[3]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -430997,16 +354571,13 @@ public static class AssemblyQuestLoader num = 1; List list156 = new List(num); CollectionsMarshal.SetCount(list156, num); - Span span156 = CollectionsMarshal.AsSpan(list156); - index = 0; - span156[index] = "liza"; + CollectionsMarshal.AsSpan(list156)[0] = "liza"; questRoot20.Author = list156; - index = 3; - List list157 = new List(index); - CollectionsMarshal.SetCount(list157, index); - Span span157 = CollectionsMarshal.AsSpan(list157); - num = 0; - ref QuestSequence reference118 = ref span157[num]; + num = 3; + List list157 = new List(num); + CollectionsMarshal.SetCount(list157, num); + Span span58 = CollectionsMarshal.AsSpan(list157); + ref QuestSequence reference118 = ref span58[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 @@ -431014,48 +354585,37 @@ public static class AssemblyQuestLoader num2 = 1; List list158 = new List(num2); CollectionsMarshal.SetCount(list158, num2); - Span span158 = CollectionsMarshal.AsSpan(list158); - index2 = 0; - span158[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); + CollectionsMarshal.AsSpan(list158)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); obj114.Steps = list158; reference118 = obj114; - num++; - ref QuestSequence reference119 = ref span157[num]; + ref QuestSequence reference119 = ref span58[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list159 = new List(index2); - CollectionsMarshal.SetCount(list159, index2); - Span span159 = CollectionsMarshal.AsSpan(list159); - num2 = 0; - ref QuestStep reference120 = ref span159[num2]; + num2 = 3; + List list159 = new List(num2); + CollectionsMarshal.SetCount(list159, num2); + Span span59 = CollectionsMarshal.AsSpan(list159); + ref QuestStep reference120 = ref span59[0]; QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1048898u, new Vector3(524.1931f, 15.639493f, 5.4473877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - 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); + 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); obj116.CompletionQuestVariablesFlags = list160; reference120 = obj116; - num2++; - ref QuestStep reference121 = ref span159[num2]; + ref QuestStep reference121 = ref span59[1]; QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1048897u, new Vector3(551.6593f, 12.326415f, -32.852783f), 1188) { Fly = true @@ -431063,46 +354623,32 @@ public static class AssemblyQuestLoader num3 = 6; List list161 = new List(num3); CollectionsMarshal.SetCount(list161, num3); - 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); + 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); obj117.CompletionQuestVariablesFlags = list161; reference121 = obj117; - num2++; - ref QuestStep reference122 = ref span159[num2]; + ref QuestStep reference122 = ref span59[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1048896u, new Vector3(513.0541f, 15.9776535f, -54.36792f), 1188); - num4 = 6; - List list162 = new List(num4); - CollectionsMarshal.SetCount(list162, num4); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list162; reference122 = questStep5; obj115.Steps = list159; reference119 = obj115; - num++; - ref QuestSequence reference123 = ref span157[num]; + ref QuestSequence reference123 = ref span58[2]; QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue @@ -431110,9 +354656,7 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188) + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -431125,30 +354669,24 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span164 = CollectionsMarshal.AsSpan(list164); - index = 0; - span164[index] = "liza"; + CollectionsMarshal.AsSpan(list164)[0] = "liza"; questRoot21.Author = list164; - index = 3; - List list165 = new List(index); - CollectionsMarshal.SetCount(list165, index); - Span span165 = CollectionsMarshal.AsSpan(list165); - num = 0; - ref QuestSequence reference124 = ref span165[num]; + num = 3; + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + Span span63 = CollectionsMarshal.AsSpan(list165); + ref QuestSequence reference124 = ref span63[0]; QuestSequence obj119 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj119.Steps = list166; reference124 = obj119; - num++; - ref QuestSequence reference125 = ref span165[num]; + ref QuestSequence reference125 = ref span63[1]; QuestSequence obj120 = new QuestSequence { Sequence = 1 @@ -431156,26 +354694,21 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 1051373u, new Vector3(-232.07446f, 10.1700535f, -395.68176f), 1188) + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 1051373u, new Vector3(-232.07446f, 10.1700535f, -395.68176f), 1188) { Fly = true }; obj120.Steps = list167; reference125 = obj120; - num++; - ref QuestSequence reference126 = ref span165[num]; + ref QuestSequence reference126 = ref span63[2]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj121.Steps = list168; reference126 = obj121; questRoot21.QuestSequence = list165; @@ -431185,16 +354718,13 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; 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]; + num = 3; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span64 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference127 = ref span64[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -431202,23 +354732,19 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); obj122.Steps = list171; reference127 = obj122; - num++; - ref QuestSequence reference128 = ref span170[num]; + ref QuestSequence reference128 = ref span64[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list172 = new List(index2); - CollectionsMarshal.SetCount(list172, index2); - Span span172 = CollectionsMarshal.AsSpan(list172); - num2 = 0; - ref QuestStep reference129 = ref span172[num2]; + num2 = 2; + List list172 = new List(num2); + CollectionsMarshal.SetCount(list172, num2); + Span span65 = CollectionsMarshal.AsSpan(list172); + ref QuestStep reference129 = ref span65[0]; QuestStep obj124 = new QuestStep(EInteractionType.Interact, 2014174u, new Vector3(-756.89325f, 135.66797f, 83.78723f), 1188) { Fly = true @@ -431226,46 +354752,32 @@ public static class AssemblyQuestLoader num3 = 6; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - 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); + 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); obj124.CompletionQuestVariablesFlags = list173; reference129 = obj124; - num2++; - ref QuestStep reference130 = ref span172[num2]; + ref QuestStep reference130 = ref span65[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014175u, new Vector3(-786.3432f, 135.66797f, 121.9043f), 1188); - num4 = 6; - List list174 = new List(num4); - CollectionsMarshal.SetCount(list174, num4); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list174; reference130 = questStep6; obj123.Steps = list172; reference128 = obj123; - num++; - ref QuestSequence reference131 = ref span170[num]; + ref QuestSequence reference131 = ref span64[2]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -431273,9 +354785,7 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - span175[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -431288,30 +354798,24 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "liza"; + CollectionsMarshal.AsSpan(list176)[0] = "liza"; questRoot23.Author = list176; - index = 5; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference132 = ref span177[num]; + num = 5; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span68 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference132 = ref span68[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj126.Steps = list178; reference132 = obj126; - num++; - ref QuestSequence reference133 = ref span177[num]; + ref QuestSequence reference133 = ref span68[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -431319,35 +354823,29 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - Span span179 = CollectionsMarshal.AsSpan(list179); - index2 = 0; - span179[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) + Span span69 = CollectionsMarshal.AsSpan(list179); + span69[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) { Fly = true }; - index2++; - span179[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); + span69[1] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); obj127.Steps = list179; reference133 = obj127; - num++; - ref QuestSequence reference134 = ref span177[num]; + ref QuestSequence reference134 = ref span68[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj128.Steps = list180; reference134 = obj128; - num++; - ref QuestSequence reference135 = ref span177[num]; + ref QuestSequence reference135 = ref span68[3]; QuestSequence obj129 = new QuestSequence { Sequence = 3 @@ -431355,28 +354853,23 @@ public static class AssemblyQuestLoader num2 = 2; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) + Span span70 = CollectionsMarshal.AsSpan(list181); + span70[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-298.1575f, 112.88461f, 684.6612f), 1188) { Fly = true }; - index2++; - span181[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); + span70[1] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); obj129.Steps = list181; reference135 = obj129; - num++; - ref QuestSequence reference136 = ref span177[num]; + ref QuestSequence reference136 = ref span68[4]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -431389,16 +354882,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot24.Author = list183; - index = 3; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference137 = ref span184[num]; + num = 3; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span71 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference137 = ref span71[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -431406,23 +354896,19 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); obj131.Steps = list185; reference137 = obj131; - num++; - ref QuestSequence reference138 = ref span184[num]; + ref QuestSequence reference138 = ref span71[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list186 = new List(index2); - CollectionsMarshal.SetCount(list186, index2); - Span span186 = CollectionsMarshal.AsSpan(list186); - num2 = 0; - ref QuestStep reference139 = ref span186[num2]; + num2 = 4; + List list186 = new List(num2); + CollectionsMarshal.SetCount(list186, num2); + Span span72 = CollectionsMarshal.AsSpan(list186); + ref QuestStep reference139 = ref span72[0]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014177u, new Vector3(-351.40002f, 109.57495f, 62.210938f), 1188) { Fly = true @@ -431430,47 +354916,33 @@ public static class AssemblyQuestLoader num3 = 6; List list187 = new List(num3); CollectionsMarshal.SetCount(list187, num3); - 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); + 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); obj133.CompletionQuestVariablesFlags = list187; reference139 = obj133; - num2++; - ref QuestStep reference140 = ref span186[num2]; + ref QuestStep reference140 = ref span72[1]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014178u, new Vector3(-172.32019f, 109.54443f, 128.67932f), 1188) { Fly = true }; - 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); + 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); obj134.CompletionQuestVariablesFlags = list188; reference140 = obj134; - num2++; - ref QuestStep reference141 = ref span186[num2]; + ref QuestStep reference141 = ref span72[2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014179u, new Vector3(142.96167f, 109.57495f, 169.604f), 1188) { Fly = true @@ -431478,49 +354950,35 @@ public static class AssemblyQuestLoader num3 = 6; List list189 = new List(num3); CollectionsMarshal.SetCount(list189, num3); - 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); + 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); obj135.CompletionQuestVariablesFlags = list189; reference141 = obj135; - num2++; - ref QuestStep reference142 = ref span186[num2]; + ref QuestStep reference142 = ref span72[3]; QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014180u, new Vector3(214.86218f, 109.54443f, 138.68921f), 1188) { Fly = true }; - 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); + 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); obj136.CompletionQuestVariablesFlags = list190; reference142 = obj136; obj132.Steps = list186; reference138 = obj132; - num++; - ref QuestSequence reference143 = ref span184[num]; + ref QuestSequence reference143 = ref span71[2]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue @@ -431528,9 +354986,7 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188) + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -431543,30 +354999,24 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = "liza"; + CollectionsMarshal.AsSpan(list192)[0] = "liza"; questRoot25.Author = list192; - index = 6; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref QuestSequence reference144 = ref span193[num]; + num = 6; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span77 = CollectionsMarshal.AsSpan(list193); + ref QuestSequence reference144 = ref span77[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj138.Steps = list194; reference144 = obj138; - num++; - ref QuestSequence reference145 = ref span193[num]; + ref QuestSequence reference145 = ref span77[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 @@ -431574,33 +355024,26 @@ public static class AssemblyQuestLoader num2 = 2; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - 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); + 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); obj139.Steps = list195; reference145 = obj139; - num++; - ref QuestSequence reference146 = ref span193[num]; + ref QuestSequence reference146 = ref span77[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj140.Steps = list196; reference146 = obj140; - num++; - ref QuestSequence reference147 = ref span193[num]; + ref QuestSequence reference147 = ref span77[3]; QuestSequence obj141 = new QuestSequence { Sequence = 3 @@ -431608,9 +355051,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - ref QuestStep reference148 = ref span197[index2]; + ref QuestStep reference148 = ref CollectionsMarshal.AsSpan(list197)[0]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(-539.3906f, 139.2539f, -65.13339f), 1188) { StopDistance = 0.25f, @@ -431619,32 +355060,26 @@ public static class AssemblyQuestLoader num3 = 1; List list198 = new List(num3); CollectionsMarshal.SetCount(list198, num3); - Span span198 = CollectionsMarshal.AsSpan(list198); - num4 = 0; - span198[num4] = 17660u; + CollectionsMarshal.AsSpan(list198)[0] = 17660u; obj142.KillEnemyDataIds = list198; reference148 = obj142; obj141.Steps = list197; reference147 = obj141; - num++; - ref QuestSequence reference149 = ref span193[num]; + ref QuestSequence reference149 = ref span77[4]; QuestSequence obj143 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 5f }; obj143.Steps = list199; reference149 = obj143; - num++; - ref QuestSequence reference150 = ref span193[num]; + ref QuestSequence reference150 = ref span77[5]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue @@ -431652,14 +355087,12 @@ public static class AssemblyQuestLoader num2 = 2; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013941u, new Vector3(-754.11615f, 138.68921f, 122.66724f), 1188) + Span span80 = CollectionsMarshal.AsSpan(list200); + span80[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013941u, new Vector3(-754.11615f, 138.68921f, 122.66724f), 1188) { AetherCurrentId = 2818426u }; - index2++; - span200[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) + span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -431672,30 +355105,24 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "liza"; + CollectionsMarshal.AsSpan(list201)[0] = "liza"; questRoot26.Author = list201; - index = 3; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference151 = ref span202[num]; + num = 3; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span81 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference151 = ref span81[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj145.Steps = list203; reference151 = obj145; - num++; - ref QuestSequence reference152 = ref span202[num]; + ref QuestSequence reference152 = ref span81[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 @@ -431703,38 +355130,30 @@ public static class AssemblyQuestLoader num2 = 4; List list204 = new List(num2); CollectionsMarshal.SetCount(list204, num2); - Span span204 = CollectionsMarshal.AsSpan(list204); - index2 = 0; - ref QuestStep reference153 = ref span204[index2]; + Span span82 = CollectionsMarshal.AsSpan(list204); + ref QuestStep reference153 = ref span82[0]; 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(); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list205; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions.StepIf = skipStepConditions; obj147.SkipConditions = skipConditions; reference153 = obj147; - index2++; - ref QuestStep reference154 = ref span204[index2]; + ref QuestStep reference154 = ref span82[1]; QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014184u, new Vector3(-5.1728516f, -6.729248f, 619.98914f), 1188) { DisableNavmesh = true, @@ -431743,47 +355162,33 @@ public static class AssemblyQuestLoader num3 = 6; List list206 = new List(num3); CollectionsMarshal.SetCount(list206, num3); - 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); + 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); obj148.CompletionQuestVariablesFlags = list206; reference154 = obj148; - index2++; - ref QuestStep reference155 = ref span204[index2]; + ref QuestStep reference155 = ref span82[2]; QuestStep obj149 = new QuestStep(EInteractionType.Interact, 2014182u, new Vector3(112.93201f, -2.7314453f, 542.9617f), 1188) { Fly = true }; - 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); + 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); obj149.CompletionQuestVariablesFlags = list207; reference155 = obj149; - index2++; - ref QuestStep reference156 = ref span204[index2]; + ref QuestStep reference156 = ref span82[3]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 2014183u, new Vector3(266.3462f, -1.9684448f, 498.58838f), 1188) { Fly = true @@ -431791,35 +355196,26 @@ public static class AssemblyQuestLoader num3 = 6; List list208 = new List(num3); CollectionsMarshal.SetCount(list208, num3); - 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); + 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); obj150.CompletionQuestVariablesFlags = list208; reference156 = obj150; obj146.Steps = list204; reference152 = obj146; - num++; - ref QuestSequence reference157 = ref span202[num]; + ref QuestSequence reference157 = ref span81[2]; QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; @@ -431832,16 +355228,13 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "liza"; + CollectionsMarshal.AsSpan(list210)[0] = "liza"; questRoot27.Author = list210; - index = 3; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference158 = ref span211[num]; + num = 3; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span87 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference158 = ref span87[0]; QuestSequence obj152 = new QuestSequence { Sequence = 0 @@ -431849,30 +355242,24 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); obj152.Steps = list212; reference158 = obj152; - num++; - ref QuestSequence reference159 = ref span211[num]; + ref QuestSequence reference159 = ref span87[1]; QuestSequence obj153 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj153.Steps = list213; reference159 = obj153; - num++; - ref QuestSequence reference160 = ref span211[num]; + ref QuestSequence reference160 = ref span87[2]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue @@ -431880,9 +355267,7 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -431895,30 +355280,24 @@ public static class AssemblyQuestLoader num = 1; List list215 = new List(num); CollectionsMarshal.SetCount(list215, num); - Span span215 = CollectionsMarshal.AsSpan(list215); - index = 0; - span215[index] = "liza"; + CollectionsMarshal.AsSpan(list215)[0] = "liza"; questRoot28.Author = list215; - index = 5; - List list216 = new List(index); - CollectionsMarshal.SetCount(list216, index); - Span span216 = CollectionsMarshal.AsSpan(list216); - num = 0; - ref QuestSequence reference161 = ref span216[num]; + num = 5; + List list216 = new List(num); + CollectionsMarshal.SetCount(list216, num); + Span span88 = CollectionsMarshal.AsSpan(list216); + ref QuestSequence reference161 = ref span88[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj155.Steps = list217; reference161 = obj155; - num++; - ref QuestSequence reference162 = ref span216[num]; + ref QuestSequence reference162 = ref span88[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 @@ -431926,27 +355305,21 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - index2 = 0; - span218[index2] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); obj156.Steps = list218; reference162 = obj156; - num++; - ref QuestSequence reference163 = ref span216[num]; + ref QuestSequence reference163 = ref span88[2]; QuestSequence obj157 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj157.Steps = list219; reference163 = obj157; - num++; - ref QuestSequence reference164 = ref span216[num]; + ref QuestSequence reference164 = ref span88[3]; QuestSequence obj158 = new QuestSequence { Sequence = 3 @@ -431954,23 +355327,18 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); obj158.Steps = list220; reference164 = obj158; - num++; - ref QuestSequence reference165 = ref span216[num]; + ref QuestSequence reference165 = ref span88[4]; QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; @@ -431983,16 +355351,13 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "liza"; + CollectionsMarshal.AsSpan(list222)[0] = "liza"; questRoot29.Author = list222; - index = 3; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference166 = ref span223[num]; + num = 3; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span89 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference166 = ref span89[0]; QuestSequence obj160 = new QuestSequence { Sequence = 0 @@ -432000,89 +355365,64 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); obj160.Steps = list224; reference166 = obj160; - num++; - ref QuestSequence reference167 = ref span223[num]; + ref QuestSequence reference167 = ref span89[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list225 = new List(index2); - CollectionsMarshal.SetCount(list225, index2); - Span span225 = CollectionsMarshal.AsSpan(list225); - num2 = 0; - ref QuestStep reference168 = ref span225[num2]; + num2 = 4; + List list225 = new List(num2); + CollectionsMarshal.SetCount(list225, num2); + Span span90 = CollectionsMarshal.AsSpan(list225); + ref QuestStep reference168 = ref span90[0]; QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048847u, new Vector3(615.2589f, 119.49003f, 197.58899f), 1188); - num4 = 6; - List list226 = new List(num4); - CollectionsMarshal.SetCount(list226, num4); - 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); + 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); questStep7.CompletionQuestVariablesFlags = list226; reference168 = questStep7; - num2++; - ref QuestStep reference169 = ref span225[num2]; + ref QuestStep reference169 = ref span90[1]; 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 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); + 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); questStep8.CompletionQuestVariablesFlags = list227; reference169 = questStep8; - num2++; - ref QuestStep reference170 = ref span225[num2]; + ref QuestStep reference170 = ref span90[2]; QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1048846u, new Vector3(512.2606f, 114.99095f, 183.85596f), 1188) { Fly = true }; - 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); + 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); obj162.CompletionQuestVariablesFlags = list228; reference170 = obj162; - num2++; - ref QuestStep reference171 = ref span225[num2]; + ref QuestStep reference171 = ref span90[3]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1048844u, new Vector3(476.40186f, 119.9383f, 101.79285f), 1188) { Fly = true @@ -432090,25 +355430,18 @@ public static class AssemblyQuestLoader num3 = 6; List list229 = new List(num3); CollectionsMarshal.SetCount(list229, num3); - 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); + 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); obj163.CompletionQuestVariablesFlags = list229; reference171 = obj163; obj161.Steps = list225; reference167 = obj161; - num++; - ref QuestSequence reference172 = ref span223[num]; + ref QuestSequence reference172 = ref span89[2]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -432116,9 +355449,7 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) + CollectionsMarshal.AsSpan(list230)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188) { Fly = true }; @@ -432131,30 +355462,24 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - Span span231 = CollectionsMarshal.AsSpan(list231); - index = 0; - span231[index] = "liza"; + CollectionsMarshal.AsSpan(list231)[0] = "liza"; questRoot30.Author = list231; - index = 3; - List list232 = new List(index); - CollectionsMarshal.SetCount(list232, index); - Span span232 = CollectionsMarshal.AsSpan(list232); - num = 0; - ref QuestSequence reference173 = ref span232[num]; + num = 3; + List list232 = new List(num); + CollectionsMarshal.SetCount(list232, num); + Span span95 = CollectionsMarshal.AsSpan(list232); + ref QuestSequence reference173 = ref span95[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj165.Steps = list233; reference173 = obj165; - num++; - ref QuestSequence reference174 = ref span232[num]; + ref QuestSequence reference174 = ref span95[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -432162,133 +355487,100 @@ public static class AssemblyQuestLoader num2 = 2; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - ref QuestStep reference175 = ref span234[index2]; + Span span96 = CollectionsMarshal.AsSpan(list234); + ref QuestStep reference175 = ref span96[0]; QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(444.93774f, 112.59213f, 206.74438f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list235 = new List(num4); - CollectionsMarshal.SetCount(list235, num4); - Span span235 = CollectionsMarshal.AsSpan(list235); - num3 = 0; - ref ComplexCombatData reference176 = ref span235[num3]; + num3 = 1; + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + ref ComplexCombatData reference176 = ref CollectionsMarshal.AsSpan(list235)[0]; ComplexCombatData obj168 = new ComplexCombatData { DataId = 17241u, RewardItemId = 2003643u, RewardItemCount = 1 }; - 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; + 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; obj168.CompletionQuestVariablesFlags = list236; reference176 = obj168; obj167.ComplexCombatData = list235; num3 = 6; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); - 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; + 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; obj167.CompletionQuestVariablesFlags = list237; reference175 = obj167; - index2++; - ref QuestStep reference177 = ref span234[index2]; + ref QuestStep reference177 = ref span96[1]; QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(-21.622044f, 109.937355f, 217.64447f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list238 = new List(num4); - CollectionsMarshal.SetCount(list238, num4); - Span span238 = CollectionsMarshal.AsSpan(list238); - num3 = 0; - ref ComplexCombatData reference178 = ref span238[num3]; + num3 = 1; + List list238 = new List(num3); + CollectionsMarshal.SetCount(list238, num3); + ref ComplexCombatData reference178 = ref CollectionsMarshal.AsSpan(list238)[0]; ComplexCombatData obj170 = new ComplexCombatData { DataId = 17242u, RewardItemId = 2003642u, RewardItemCount = 1 }; - 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; + 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; obj170.CompletionQuestVariablesFlags = list239; reference178 = obj170; obj169.ComplexCombatData = list238; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); - 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; + 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; obj169.CompletionQuestVariablesFlags = list240; reference177 = obj169; obj166.Steps = list234; reference174 = obj166; - num++; - ref QuestSequence reference179 = ref span232[num]; + ref QuestSequence reference179 = ref span95[2]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires @@ -432302,16 +355594,13 @@ public static class AssemblyQuestLoader num = 1; List list242 = new List(num); CollectionsMarshal.SetCount(list242, num); - Span span242 = CollectionsMarshal.AsSpan(list242); - index = 0; - span242[index] = "liza"; + CollectionsMarshal.AsSpan(list242)[0] = "liza"; questRoot31.Author = list242; - index = 3; - List list243 = new List(index); - CollectionsMarshal.SetCount(list243, index); - Span span243 = CollectionsMarshal.AsSpan(list243); - num = 0; - ref QuestSequence reference180 = ref span243[num]; + num = 3; + List list243 = new List(num); + CollectionsMarshal.SetCount(list243, num); + Span span101 = CollectionsMarshal.AsSpan(list243); + ref QuestSequence reference180 = ref span101[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -432319,47 +355608,36 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); obj172.Steps = list244; reference180 = obj172; - num++; - ref QuestSequence reference181 = ref span243[num]; + ref QuestSequence reference181 = ref span101[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list245 = new List(index2); - CollectionsMarshal.SetCount(list245, index2); - Span span245 = CollectionsMarshal.AsSpan(list245); - num2 = 0; - ref QuestStep reference182 = ref span245[num2]; + num2 = 3; + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + Span span102 = CollectionsMarshal.AsSpan(list245); + ref QuestStep reference182 = ref span102[0]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2014189u, new Vector3(194.93396f, 109.4834f, 145.25061f), 1188) { Fly = true }; - 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); + 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); obj174.CompletionQuestVariablesFlags = list246; reference182 = obj174; - num2++; - ref QuestStep reference183 = ref span245[num2]; + ref QuestStep reference183 = ref span102[1]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2014191u, new Vector3(53.3302f, 109.17822f, 246.3263f), 1188) { Fly = true @@ -432367,49 +355645,35 @@ public static class AssemblyQuestLoader num3 = 6; List list247 = new List(num3); CollectionsMarshal.SetCount(list247, num3); - 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); + 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); obj175.CompletionQuestVariablesFlags = list247; reference183 = obj175; - num2++; - ref QuestStep reference184 = ref span245[num2]; + ref QuestStep reference184 = ref span102[2]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2014190u, new Vector3(-19.119629f, 109.57495f, 182.02478f), 1188) { Fly = true }; - 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); + 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); obj176.CompletionQuestVariablesFlags = list248; reference184 = obj176; obj173.Steps = list245; reference181 = obj173; - num++; - ref QuestSequence reference185 = ref span243[num]; + ref QuestSequence reference185 = ref span101[2]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue @@ -432417,9 +355681,7 @@ public static class AssemblyQuestLoader num2 = 1; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188) + CollectionsMarshal.AsSpan(list249)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; @@ -432432,30 +355694,24 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "liza"; + CollectionsMarshal.AsSpan(list250)[0] = "liza"; questRoot32.Author = list250; - index = 5; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference186 = ref span251[num]; + num = 5; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span106 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference186 = ref span106[0]; QuestSequence obj178 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj178.Steps = list252; reference186 = obj178; - num++; - ref QuestSequence reference187 = ref span251[num]; + ref QuestSequence reference187 = ref span106[1]; QuestSequence obj179 = new QuestSequence { Sequence = 1 @@ -432463,27 +355719,21 @@ public static class AssemblyQuestLoader num2 = 1; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - span253[index2] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); + CollectionsMarshal.AsSpan(list253)[0] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); obj179.Steps = list253; reference187 = obj179; - num++; - ref QuestSequence reference188 = ref span251[num]; + ref QuestSequence reference188 = ref span106[2]; QuestSequence obj180 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj180.Steps = list254; reference188 = obj180; - num++; - ref QuestSequence reference189 = ref span251[num]; + ref QuestSequence reference189 = ref span106[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 @@ -432491,23 +355741,18 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - index2 = 0; - span255[index2] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); obj181.Steps = list255; reference189 = obj181; - num++; - ref QuestSequence reference190 = ref span251[num]; + ref QuestSequence reference190 = ref span106[4]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj182.Steps = list256; reference190 = obj182; questRoot32.QuestSequence = list251; @@ -432517,16 +355762,13 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "liza"; + CollectionsMarshal.AsSpan(list257)[0] = "liza"; questRoot33.Author = list257; - index = 6; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference191 = ref span258[num]; + num = 6; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span107 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference191 = ref span107[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -432534,30 +355776,24 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj183.Steps = list259; reference191 = obj183; - num++; - ref QuestSequence reference192 = ref span258[num]; + ref QuestSequence reference192 = ref span107[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj184.Steps = list260; reference192 = obj184; - num++; - ref QuestSequence reference193 = ref span258[num]; + ref QuestSequence reference193 = ref span107[2]; QuestSequence obj185 = new QuestSequence { Sequence = 2 @@ -432565,29 +355801,23 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); obj185.Steps = list261; reference193 = obj185; - num++; - ref QuestSequence reference194 = ref span258[num]; + ref QuestSequence reference194 = ref span107[3]; QuestSequence obj186 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj186.Steps = list262; reference194 = obj186; - num++; - ref QuestSequence reference195 = ref span258[num]; + ref QuestSequence reference195 = ref span107[4]; QuestSequence obj187 = new QuestSequence { Sequence = 4 @@ -432595,23 +355825,18 @@ public static class AssemblyQuestLoader num2 = 1; List list263 = new List(num2); CollectionsMarshal.SetCount(list263, num2); - Span span263 = CollectionsMarshal.AsSpan(list263); - index2 = 0; - span263[index2] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + CollectionsMarshal.AsSpan(list263)[0] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj187.Steps = list263; reference195 = obj187; - num++; - ref QuestSequence reference196 = ref span258[num]; + ref QuestSequence reference196 = ref span107[5]; QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5083) }; @@ -432624,16 +355849,13 @@ public static class AssemblyQuestLoader num = 1; List list265 = new List(num); CollectionsMarshal.SetCount(list265, num); - Span span265 = CollectionsMarshal.AsSpan(list265); - index = 0; - span265[index] = "liza"; + CollectionsMarshal.AsSpan(list265)[0] = "liza"; questRoot34.Author = list265; - index = 6; - List list266 = new List(index); - CollectionsMarshal.SetCount(list266, index); - Span span266 = CollectionsMarshal.AsSpan(list266); - num = 0; - ref QuestSequence reference197 = ref span266[num]; + num = 6; + List list266 = new List(num); + CollectionsMarshal.SetCount(list266, num); + Span span109 = CollectionsMarshal.AsSpan(list266); + ref QuestSequence reference197 = ref span109[0]; QuestSequence obj189 = new QuestSequence { Sequence = 0 @@ -432641,30 +355863,24 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); obj189.Steps = list267; reference197 = obj189; - num++; - ref QuestSequence reference198 = ref span266[num]; + ref QuestSequence reference198 = ref span109[1]; QuestSequence obj190 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj190.Steps = list268; reference198 = obj190; - num++; - ref QuestSequence reference199 = ref span266[num]; + ref QuestSequence reference199 = ref span109[2]; QuestSequence obj191 = new QuestSequence { Sequence = 2 @@ -432672,9 +355888,7 @@ public static class AssemblyQuestLoader num2 = 1; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - index2 = 0; - ref QuestStep reference200 = ref span269[index2]; + ref QuestStep reference200 = ref CollectionsMarshal.AsSpan(list269)[0]; QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2014198u, new Vector3(438.04077f, -0.015319824f, -395.43762f), 1188) { Fly = true, @@ -432683,29 +355897,23 @@ public static class AssemblyQuestLoader num3 = 1; List list270 = new List(num3); CollectionsMarshal.SetCount(list270, num3); - Span span270 = CollectionsMarshal.AsSpan(list270); - num4 = 0; - span270[num4] = 17661u; + CollectionsMarshal.AsSpan(list270)[0] = 17661u; obj192.KillEnemyDataIds = list270; reference200 = obj192; obj191.Steps = list269; reference199 = obj191; - num++; - ref QuestSequence reference201 = ref span266[num]; + ref QuestSequence reference201 = ref span109[3]; QuestSequence obj193 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj193.Steps = list271; reference201 = obj193; - num++; - ref QuestSequence reference202 = ref span266[num]; + ref QuestSequence reference202 = ref span109[4]; QuestSequence obj194 = new QuestSequence { Sequence = 4 @@ -432713,26 +355921,21 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1051247u, new Vector3(341.66467f, 9.178029f, -213.15332f), 1188) { Fly = true }; obj194.Steps = list272; reference202 = obj194; - num++; - ref QuestSequence reference203 = ref span266[num]; + ref QuestSequence reference203 = ref span109[5]; QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5084) @@ -432746,16 +355949,13 @@ public static class AssemblyQuestLoader num = 1; List list274 = new List(num); CollectionsMarshal.SetCount(list274, num); - Span span274 = CollectionsMarshal.AsSpan(list274); - index = 0; - span274[index] = "liza"; + CollectionsMarshal.AsSpan(list274)[0] = "liza"; questRoot35.Author = list274; - index = 6; - List list275 = new List(index); - CollectionsMarshal.SetCount(list275, index); - Span span275 = CollectionsMarshal.AsSpan(list275); - num = 0; - ref QuestSequence reference204 = ref span275[num]; + num = 6; + List list275 = new List(num); + CollectionsMarshal.SetCount(list275, num); + Span span110 = CollectionsMarshal.AsSpan(list275); + ref QuestSequence reference204 = ref span110[0]; QuestSequence obj196 = new QuestSequence { Sequence = 0 @@ -432763,16 +355963,12 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - ref QuestStep reference205 = ref span276[index2]; + ref QuestStep reference205 = ref CollectionsMarshal.AsSpan(list276)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1051252u, new Vector3(654.6272f, 26.32866f, -491.02008f), 1188); - num4 = 1; - List list277 = new List(num4); - CollectionsMarshal.SetCount(list277, num4); - Span span277 = CollectionsMarshal.AsSpan(list277); - num3 = 0; - span277[num3] = new DialogueChoice + num3 = 1; + List list277 = new List(num3); + CollectionsMarshal.SetCount(list277, num3); + CollectionsMarshal.AsSpan(list277)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC204_05084_Q1_000_100"), @@ -432782,25 +355978,21 @@ public static class AssemblyQuestLoader reference205 = questStep9; obj196.Steps = list276; reference204 = obj196; - num++; - ref QuestSequence reference206 = ref span275[num]; + ref QuestSequence reference206 = ref span110[1]; QuestSequence obj197 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj197.Steps = list278; reference206 = obj197; - num++; - ref QuestSequence reference207 = ref span275[num]; + ref QuestSequence reference207 = ref span110[2]; QuestSequence obj198 = new QuestSequence { Sequence = 2 @@ -432808,9 +356000,8 @@ public static class AssemblyQuestLoader num2 = 3; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - ref QuestStep reference208 = ref span279[index2]; + Span span111 = CollectionsMarshal.AsSpan(list279); + ref QuestStep reference208 = ref span111[0]; QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { Fly = true @@ -432818,47 +356009,33 @@ public static class AssemblyQuestLoader num3 = 6; List list280 = new List(num3); CollectionsMarshal.SetCount(list280, num3); - 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); + 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); obj199.CompletionQuestVariablesFlags = list280; reference208 = obj199; - index2++; - ref QuestStep reference209 = ref span279[index2]; + ref QuestStep reference209 = ref span111[1]; QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) { Fly = true }; - 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); + 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); obj200.CompletionQuestVariablesFlags = list281; reference209 = obj200; - index2++; - ref QuestStep reference210 = ref span279[index2]; + ref QuestStep reference210 = ref span111[2]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true @@ -432866,42 +356043,32 @@ public static class AssemblyQuestLoader num3 = 6; List list282 = new List(num3); CollectionsMarshal.SetCount(list282, num3); - 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); + 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); obj201.CompletionQuestVariablesFlags = list282; reference210 = obj201; obj198.Steps = list279; reference207 = obj198; - num++; - ref QuestSequence reference211 = ref span275[num]; + ref QuestSequence reference211 = ref span110[3]; QuestSequence obj202 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj202.Steps = list283; reference211 = obj202; - num++; - ref QuestSequence reference212 = ref span275[num]; + ref QuestSequence reference212 = ref span110[4]; QuestSequence obj203 = new QuestSequence { Sequence = 4 @@ -432909,26 +356076,21 @@ public static class AssemblyQuestLoader num2 = 1; List list284 = new List(num2); CollectionsMarshal.SetCount(list284, num2); - Span span284 = CollectionsMarshal.AsSpan(list284); - index2 = 0; - span284[index2] = new QuestStep(EInteractionType.Interact, 1051258u, new Vector3(658.7167f, 5.2940493f, -335.07288f), 1188) + CollectionsMarshal.AsSpan(list284)[0] = new QuestStep(EInteractionType.Interact, 1051258u, new Vector3(658.7167f, 5.2940493f, -335.07288f), 1188) { Fly = true }; obj203.Steps = list284; reference212 = obj203; - num++; - ref QuestSequence reference213 = ref span275[num]; + ref QuestSequence reference213 = ref span110[5]; QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -432941,16 +356103,13 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "liza"; + CollectionsMarshal.AsSpan(list286)[0] = "liza"; questRoot36.Author = list286; - index = 4; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference214 = ref span287[num]; + num = 4; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span115 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference214 = ref span115[0]; QuestSequence obj205 = new QuestSequence { Sequence = 0 @@ -432958,27 +356117,21 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj205.Steps = list288; reference214 = obj205; - num++; - ref QuestSequence reference215 = ref span287[num]; + ref QuestSequence reference215 = ref span115[1]; QuestSequence obj206 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj206.Steps = list289; reference215 = obj206; - num++; - ref QuestSequence reference216 = ref span287[num]; + ref QuestSequence reference216 = ref span115[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -432986,84 +356139,60 @@ public static class AssemblyQuestLoader num2 = 3; List list290 = new List(num2); CollectionsMarshal.SetCount(list290, num2); - Span span290 = CollectionsMarshal.AsSpan(list290); - index2 = 0; - ref QuestStep reference217 = ref span290[index2]; + Span span116 = CollectionsMarshal.AsSpan(list290); + ref QuestStep reference217 = ref span116[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1048892u, new Vector3(-485.55737f, 121.633f, 329.9762f), 1188); - num4 = 6; - List list291 = new List(num4); - CollectionsMarshal.SetCount(list291, num4); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list291; reference217 = questStep10; - index2++; - ref QuestStep reference218 = ref span290[index2]; + ref QuestStep reference218 = ref span116[1]; 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 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); + 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); questStep11.CompletionQuestVariablesFlags = list292; reference218 = questStep11; - index2++; - ref QuestStep reference219 = ref span290[index2]; + ref QuestStep reference219 = ref span116[2]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); - num4 = 6; - List list293 = new List(num4); - CollectionsMarshal.SetCount(list293, num4); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list293; reference219 = questStep12; obj207.Steps = list290; reference216 = obj207; - num++; - ref QuestSequence reference220 = ref span287[num]; + ref QuestSequence reference220 = ref span115[3]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = true }; @@ -433076,16 +356205,13 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "liza"; + CollectionsMarshal.AsSpan(list295)[0] = "liza"; questRoot37.Author = list295; - index = 5; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference221 = ref span296[num]; + num = 5; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span120 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference221 = ref span120[0]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -433093,27 +356219,21 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); obj209.Steps = list297; reference221 = obj209; - num++; - ref QuestSequence reference222 = ref span296[num]; + ref QuestSequence reference222 = ref span120[1]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj210.Steps = list298; reference222 = obj210; - num++; - ref QuestSequence reference223 = ref span296[num]; + ref QuestSequence reference223 = ref span120[2]; QuestSequence obj211 = new QuestSequence { Sequence = 2 @@ -433121,27 +356241,21 @@ public static class AssemblyQuestLoader num2 = 1; List list299 = new List(num2); CollectionsMarshal.SetCount(list299, num2); - Span span299 = CollectionsMarshal.AsSpan(list299); - index2 = 0; - span299[index2] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); + CollectionsMarshal.AsSpan(list299)[0] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); obj211.Steps = list299; reference223 = obj211; - num++; - ref QuestSequence reference224 = ref span296[num]; + ref QuestSequence reference224 = ref span120[3]; QuestSequence obj212 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj212.Steps = list300; reference224 = obj212; - num++; - ref QuestSequence reference225 = ref span296[num]; + ref QuestSequence reference225 = ref span120[4]; QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue @@ -433149,9 +356263,7 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188) { NextQuestId = new QuestId(5087) }; @@ -433164,30 +356276,24 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "liza"; + CollectionsMarshal.AsSpan(list302)[0] = "liza"; questRoot38.Author = list302; - index = 5; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference226 = ref span303[num]; + num = 5; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span121 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference226 = ref span121[0]; QuestSequence obj214 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj214.Steps = list304; reference226 = obj214; - num++; - ref QuestSequence reference227 = ref span303[num]; + ref QuestSequence reference227 = ref span121[1]; QuestSequence obj215 = new QuestSequence { Sequence = 1 @@ -433195,26 +356301,21 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj215.Steps = list305; reference227 = obj215; - num++; - ref QuestSequence reference228 = ref span303[num]; + ref QuestSequence reference228 = ref span121[2]; QuestSequence obj216 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list306 = new List(index2); - CollectionsMarshal.SetCount(list306, index2); - Span span306 = CollectionsMarshal.AsSpan(list306); - num2 = 0; - ref QuestStep reference229 = ref span306[num2]; + num2 = 1; + List list306 = new List(num2); + CollectionsMarshal.SetCount(list306, num2); + ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list306)[0]; QuestStep obj217 = new QuestStep(EInteractionType.Combat, null, new Vector3(627.93854f, 110.09355f, 334.26776f), 1188) { Fly = true, @@ -433223,15 +356324,12 @@ public static class AssemblyQuestLoader num3 = 1; List list307 = new List(num3); CollectionsMarshal.SetCount(list307, num3); - Span span307 = CollectionsMarshal.AsSpan(list307); - num4 = 0; - span307[num4] = 17244u; + CollectionsMarshal.AsSpan(list307)[0] = 17244u; obj217.KillEnemyDataIds = list307; reference229 = obj217; obj216.Steps = list306; reference228 = obj216; - num++; - ref QuestSequence reference230 = ref span303[num]; + ref QuestSequence reference230 = ref span121[3]; QuestSequence obj218 = new QuestSequence { Sequence = 3 @@ -433239,26 +356337,21 @@ public static class AssemblyQuestLoader num2 = 1; List list308 = new List(num2); CollectionsMarshal.SetCount(list308, num2); - Span span308 = CollectionsMarshal.AsSpan(list308); - index2 = 0; - span308[index2] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) + CollectionsMarshal.AsSpan(list308)[0] = new QuestStep(EInteractionType.Interact, 1051266u, new Vector3(565.8197f, 115.49999f, 195.30017f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj218.Steps = list308; reference230 = obj218; - num++; - ref QuestSequence reference231 = ref span303[num]; + ref QuestSequence reference231 = ref span121[4]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5088) @@ -433272,16 +356365,13 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "liza"; + CollectionsMarshal.AsSpan(list310)[0] = "liza"; questRoot39.Author = list310; - index = 7; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference232 = ref span311[num]; + num = 7; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span122 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference232 = ref span122[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -433289,16 +356379,12 @@ public static class AssemblyQuestLoader num2 = 1; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - ref QuestStep reference233 = ref span312[index2]; + ref QuestStep reference233 = ref CollectionsMarshal.AsSpan(list312)[0]; QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188); - num4 = 1; - List list313 = new List(num4); - CollectionsMarshal.SetCount(list313, num4); - Span span313 = CollectionsMarshal.AsSpan(list313); - num3 = 0; - span313[num3] = new DialogueChoice + num3 = 1; + List list313 = new List(num3); + CollectionsMarshal.SetCount(list313, num3); + CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC304_05088_Q1_000_100"), @@ -433308,25 +356394,21 @@ public static class AssemblyQuestLoader reference233 = questStep13; obj220.Steps = list312; reference232 = obj220; - num++; - ref QuestSequence reference234 = ref span311[num]; + ref QuestSequence reference234 = ref span122[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true }; obj221.Steps = list314; reference234 = obj221; - num++; - ref QuestSequence reference235 = ref span311[num]; + ref QuestSequence reference235 = ref span122[2]; QuestSequence obj222 = new QuestSequence { Sequence = 2 @@ -433334,23 +356416,18 @@ public static class AssemblyQuestLoader num2 = 1; List list315 = new List(num2); CollectionsMarshal.SetCount(list315, num2); - Span span315 = CollectionsMarshal.AsSpan(list315); - index2 = 0; - span315[index2] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); + CollectionsMarshal.AsSpan(list315)[0] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); obj222.Steps = list315; reference235 = obj222; - num++; - ref QuestSequence reference236 = ref span311[num]; + ref QuestSequence reference236 = ref span122[3]; QuestSequence obj223 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list316 = new List(index2); - CollectionsMarshal.SetCount(list316, index2); - Span span316 = CollectionsMarshal.AsSpan(list316); - num2 = 0; - ref QuestStep reference237 = ref span316[num2]; + num2 = 1; + List list316 = new List(num2); + CollectionsMarshal.SetCount(list316, num2); + ref QuestStep reference237 = ref CollectionsMarshal.AsSpan(list316)[0]; QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(-759f, 129.30363f, 237.35704f), 1188) { Fly = true, @@ -433359,15 +356436,12 @@ public static class AssemblyQuestLoader num3 = 1; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - Span span317 = CollectionsMarshal.AsSpan(list317); - num4 = 0; - span317[num4] = 17662u; + CollectionsMarshal.AsSpan(list317)[0] = 17662u; obj224.KillEnemyDataIds = list317; reference237 = obj224; obj223.Steps = list316; reference236 = obj223; - num++; - ref QuestSequence reference238 = ref span311[num]; + ref QuestSequence reference238 = ref span122[4]; QuestSequence obj225 = new QuestSequence { Sequence = 4 @@ -433375,33 +356449,27 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.Interact, 1051268u, new Vector3(-756.80176f, 129.29285f, 240.7721f), 1188) + CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.Interact, 1051268u, new Vector3(-756.80176f, 129.29285f, 240.7721f), 1188) { StopDistance = 7f }; obj225.Steps = list318; reference238 = obj225; - num++; - ref QuestSequence reference239 = ref span311[num]; + ref QuestSequence reference239 = ref span122[5]; QuestSequence obj226 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj226.Steps = list319; reference239 = obj226; - num++; - ref QuestSequence reference240 = ref span311[num]; + ref QuestSequence reference240 = ref span122[6]; QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue @@ -433409,9 +356477,7 @@ public static class AssemblyQuestLoader num2 = 1; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span320 = CollectionsMarshal.AsSpan(list320); - index2 = 0; - span320[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) + CollectionsMarshal.AsSpan(list320)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5089) @@ -433425,33 +356491,27 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span321 = CollectionsMarshal.AsSpan(list321); - index = 0; - span321[index] = "liza"; + CollectionsMarshal.AsSpan(list321)[0] = "liza"; questRoot40.Author = list321; - index = 7; - List list322 = new List(index); - CollectionsMarshal.SetCount(list322, index); - Span span322 = CollectionsMarshal.AsSpan(list322); - num = 0; - ref QuestSequence reference241 = ref span322[num]; + num = 7; + List list322 = new List(num); + CollectionsMarshal.SetCount(list322, num); + Span span123 = CollectionsMarshal.AsSpan(list322); + ref QuestSequence reference241 = ref span123[0]; QuestSequence obj228 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj228.Steps = list323; reference241 = obj228; - num++; - ref QuestSequence reference242 = ref span322[num]; + ref QuestSequence reference242 = ref span123[1]; QuestSequence obj229 = new QuestSequence { Sequence = 1 @@ -433459,34 +356519,28 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.Interact, 1051273u, new Vector3(565.54517f, 115.5f, 193.22498f), 1188) + CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.Interact, 1051273u, new Vector3(565.54517f, 115.5f, 193.22498f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj229.Steps = list324; reference242 = obj229; - num++; - ref QuestSequence reference243 = ref span322[num]; + ref QuestSequence reference243 = ref span123[2]; QuestSequence obj230 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; obj230.Steps = list325; reference243 = obj230; - num++; - ref QuestSequence reference244 = ref span322[num]; + ref QuestSequence reference244 = ref span123[3]; QuestSequence obj231 = new QuestSequence { Sequence = 3 @@ -433494,19 +356548,15 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - ref QuestStep reference245 = ref span326[index2]; + ref QuestStep reference245 = ref CollectionsMarshal.AsSpan(list326)[0]; QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1051270u, new Vector3(-565.2705f, 133.77481f, 720.7294f), 1188) { Fly = true }; - num4 = 1; - List list327 = new List(num4); - CollectionsMarshal.SetCount(list327, num4); - Span span327 = CollectionsMarshal.AsSpan(list327); - num3 = 0; - span327[num3] = new DialogueChoice + num3 = 1; + List list327 = new List(num3); + CollectionsMarshal.SetCount(list327, num3); + CollectionsMarshal.AsSpan(list327)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q1_000_100"), @@ -433516,25 +356566,21 @@ public static class AssemblyQuestLoader reference245 = obj232; obj231.Steps = list326; reference244 = obj231; - num++; - ref QuestSequence reference246 = ref span322[num]; + ref QuestSequence reference246 = ref span123[4]; QuestSequence obj233 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj233.Steps = list328; reference246 = obj233; - num++; - ref QuestSequence reference247 = ref span322[num]; + ref QuestSequence reference247 = ref span123[5]; QuestSequence obj234 = new QuestSequence { Sequence = 5 @@ -433542,9 +356588,7 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - ref QuestStep reference248 = ref span329[index2]; + ref QuestStep reference248 = ref CollectionsMarshal.AsSpan(list329)[0]; QuestStep obj235 = new QuestStep(EInteractionType.Interact, 1051278u, new Vector3(-130.69354f, 9.84216f, -415.21326f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu @@ -433552,9 +356596,7 @@ public static class AssemblyQuestLoader num3 = 1; List list330 = new List(num3); CollectionsMarshal.SetCount(list330, num3); - Span span330 = CollectionsMarshal.AsSpan(list330); - num4 = 0; - span330[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list330)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q100_000_100") @@ -433563,18 +356605,15 @@ public static class AssemblyQuestLoader reference248 = obj235; obj234.Steps = list329; reference247 = obj234; - num++; - ref QuestSequence reference249 = ref span322[num]; + ref QuestSequence reference249 = ref span123[6]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj236.Steps = list331; reference249 = obj236; questRoot40.QuestSequence = list322; @@ -433584,16 +356623,13 @@ public static class AssemblyQuestLoader num = 1; List list332 = new List(num); CollectionsMarshal.SetCount(list332, num); - Span span332 = CollectionsMarshal.AsSpan(list332); - index = 0; - span332[index] = "liza"; + CollectionsMarshal.AsSpan(list332)[0] = "liza"; questRoot41.Author = list332; - index = 3; - List list333 = new List(index); - CollectionsMarshal.SetCount(list333, index); - Span span333 = CollectionsMarshal.AsSpan(list333); - num = 0; - ref QuestSequence reference250 = ref span333[num]; + num = 3; + List list333 = new List(num); + CollectionsMarshal.SetCount(list333, num); + Span span124 = CollectionsMarshal.AsSpan(list333); + ref QuestSequence reference250 = ref span124[0]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -433601,40 +356637,32 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); obj237.Steps = list334; reference250 = obj237; - num++; - ref QuestSequence reference251 = ref span333[num]; + ref QuestSequence reference251 = ref span124[1]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list335 = new List(index2); - CollectionsMarshal.SetCount(list335, index2); - Span span335 = CollectionsMarshal.AsSpan(list335); - num2 = 0; - ref QuestStep reference252 = ref span335[num2]; + num2 = 1; + List list335 = new List(num2); + CollectionsMarshal.SetCount(list335, num2); + ref QuestStep reference252 = ref CollectionsMarshal.AsSpan(list335)[0]; QuestStep obj239 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.06216f, 20.027777f, 46.272446f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies }; - num4 = 1; - List list336 = new List(num4); - CollectionsMarshal.SetCount(list336, num4); - Span span336 = CollectionsMarshal.AsSpan(list336); - num3 = 0; - span336[num3] = 17268u; + num3 = 1; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + CollectionsMarshal.AsSpan(list336)[0] = 17268u; obj239.KillEnemyDataIds = list336; reference252 = obj239; obj238.Steps = list335; reference251 = obj238; - num++; - ref QuestSequence reference253 = ref span333[num]; + ref QuestSequence reference253 = ref span124[2]; QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue @@ -433642,9 +356670,7 @@ public static class AssemblyQuestLoader num2 = 1; List list337 = new List(num2); CollectionsMarshal.SetCount(list337, num2); - Span span337 = CollectionsMarshal.AsSpan(list337); - index2 = 0; - span337[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189) + CollectionsMarshal.AsSpan(list337)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -433657,30 +356683,24 @@ public static class AssemblyQuestLoader num = 1; List list338 = new List(num); CollectionsMarshal.SetCount(list338, num); - Span span338 = CollectionsMarshal.AsSpan(list338); - index = 0; - span338[index] = "liza"; + CollectionsMarshal.AsSpan(list338)[0] = "liza"; questRoot42.Author = list338; - index = 3; - List list339 = new List(index); - CollectionsMarshal.SetCount(list339, index); - Span span339 = CollectionsMarshal.AsSpan(list339); - num = 0; - ref QuestSequence reference254 = ref span339[num]; + num = 3; + List list339 = new List(num); + CollectionsMarshal.SetCount(list339, num); + Span span125 = CollectionsMarshal.AsSpan(list339); + ref QuestSequence reference254 = ref span125[0]; QuestSequence obj241 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj241.Steps = list340; reference254 = obj241; - num++; - ref QuestSequence reference255 = ref span339[num]; + ref QuestSequence reference255 = ref span125[1]; QuestSequence obj242 = new QuestSequence { Sequence = 1 @@ -433688,48 +356708,41 @@ public static class AssemblyQuestLoader num2 = 3; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) + Span span126 = CollectionsMarshal.AsSpan(list341); + span126[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) { Fly = true }; - index2++; - span341[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) + span126[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-615.2386f, -44.093876f, -495.7548f), 1189) { DisableNavmesh = true, Fly = true }; - index2++; - span341[index2] = new QuestStep(EInteractionType.Interact, 2014307u, new Vector3(-729.7932f, -107.83557f, -674.8608f), 1189) + span126[2] = new QuestStep(EInteractionType.Interact, 2014307u, new Vector3(-729.7932f, -107.83557f, -674.8608f), 1189) { Fly = true }; obj242.Steps = list341; reference255 = obj242; - num++; - ref QuestSequence reference256 = ref span339[num]; + ref QuestSequence reference256 = ref span125[2]; QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span342[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) + span127[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-596.55597f, 2.3708515f, -493.64908f), 1189) { DisableNavmesh = true, Fly = true }; - num2++; - ref QuestStep reference257 = ref span342[num2]; + ref QuestStep reference257 = ref span127[2]; QuestStep obj244 = new QuestStep(EInteractionType.CompleteQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189) { Fly = true @@ -433737,9 +356750,7 @@ public static class AssemblyQuestLoader num3 = 1; List list343 = new List(num3); CollectionsMarshal.SetCount(list343, num3); - Span span343 = CollectionsMarshal.AsSpan(list343); - num4 = 0; - span343[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list343)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD002_05091_Q1_000_000"), @@ -433756,16 +356767,13 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - Span span344 = CollectionsMarshal.AsSpan(list344); - index = 0; - span344[index] = "liza"; + CollectionsMarshal.AsSpan(list344)[0] = "liza"; questRoot43.Author = list344; - index = 4; - List list345 = new List(index); - CollectionsMarshal.SetCount(list345, index); - Span span345 = CollectionsMarshal.AsSpan(list345); - num = 0; - ref QuestSequence reference258 = ref span345[num]; + num = 4; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + Span span128 = CollectionsMarshal.AsSpan(list345); + ref QuestSequence reference258 = ref span128[0]; QuestSequence obj245 = new QuestSequence { Sequence = 0 @@ -433773,23 +356781,18 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - index2 = 0; - span346[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); + CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); obj245.Steps = list346; reference258 = obj245; - num++; - ref QuestSequence reference259 = ref span345[num]; + ref QuestSequence reference259 = ref span128[1]; QuestSequence obj246 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list347 = new List(index2); - CollectionsMarshal.SetCount(list347, index2); - Span span347 = CollectionsMarshal.AsSpan(list347); - num2 = 0; - ref QuestStep reference260 = ref span347[num2]; + num2 = 1; + List list347 = new List(num2); + CollectionsMarshal.SetCount(list347, num2); + ref QuestStep reference260 = ref CollectionsMarshal.AsSpan(list347)[0]; QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(158.97704f, 0.80940175f, -773.5188f), 1189) { StopDistance = 1f, @@ -433801,18 +356804,15 @@ public static class AssemblyQuestLoader }, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list348 = new List(num4); - CollectionsMarshal.SetCount(list348, num4); - Span span348 = CollectionsMarshal.AsSpan(list348); - num3 = 0; - span348[num3] = 17663u; + num3 = 1; + List list348 = new List(num3); + CollectionsMarshal.SetCount(list348, num3); + CollectionsMarshal.AsSpan(list348)[0] = 17663u; obj247.KillEnemyDataIds = list348; reference260 = obj247; obj246.Steps = list347; reference259 = obj246; - num++; - ref QuestSequence reference261 = ref span345[num]; + ref QuestSequence reference261 = ref span128[2]; QuestSequence obj248 = new QuestSequence { Sequence = 2 @@ -433820,26 +356820,21 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.Interact, 1051058u, new Vector3(159.47205f, 0.81595546f, -770.19916f), 1189) + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051058u, new Vector3(159.47205f, 0.81595546f, -770.19916f), 1189) { StopDistance = 7f }; obj248.Steps = list349; reference261 = obj248; - num++; - ref QuestSequence reference262 = ref span345[num]; + ref QuestSequence reference262 = ref span128[3]; QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -433853,16 +356848,13 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - Span span351 = CollectionsMarshal.AsSpan(list351); - index = 0; - span351[index] = "liza"; + CollectionsMarshal.AsSpan(list351)[0] = "liza"; questRoot44.Author = list351; - index = 4; - List list352 = new List(index); - CollectionsMarshal.SetCount(list352, index); - Span span352 = CollectionsMarshal.AsSpan(list352); - num = 0; - ref QuestSequence reference263 = ref span352[num]; + num = 4; + List list352 = new List(num); + CollectionsMarshal.SetCount(list352, num); + Span span129 = CollectionsMarshal.AsSpan(list352); + ref QuestSequence reference263 = ref span129[0]; QuestSequence obj250 = new QuestSequence { Sequence = 0 @@ -433870,30 +356862,24 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); obj250.Steps = list353; reference263 = obj250; - num++; - ref QuestSequence reference264 = ref span352[num]; + ref QuestSequence reference264 = ref span129[1]; QuestSequence obj251 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj251.Steps = list354; reference264 = obj251; - num++; - ref QuestSequence reference265 = ref span352[num]; + ref QuestSequence reference265 = ref span129[2]; QuestSequence obj252 = new QuestSequence { Sequence = 2 @@ -433901,23 +356887,18 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - span355[index2] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); + CollectionsMarshal.AsSpan(list355)[0] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); obj252.Steps = list355; reference265 = obj252; - num++; - ref QuestSequence reference266 = ref span352[num]; + ref QuestSequence reference266 = ref span129[3]; QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj253.Steps = list356; reference266 = obj253; questRoot44.QuestSequence = list352; @@ -433927,16 +356908,13 @@ public static class AssemblyQuestLoader num = 1; List list357 = new List(num); CollectionsMarshal.SetCount(list357, num); - Span span357 = CollectionsMarshal.AsSpan(list357); - index = 0; - span357[index] = "liza"; + CollectionsMarshal.AsSpan(list357)[0] = "liza"; questRoot45.Author = list357; - index = 5; - List list358 = new List(index); - CollectionsMarshal.SetCount(list358, index); - Span span358 = CollectionsMarshal.AsSpan(list358); - num = 0; - ref QuestSequence reference267 = ref span358[num]; + num = 5; + List list358 = new List(num); + CollectionsMarshal.SetCount(list358, num); + Span span130 = CollectionsMarshal.AsSpan(list358); + ref QuestSequence reference267 = ref span130[0]; QuestSequence obj254 = new QuestSequence { Sequence = 0 @@ -433944,27 +356922,21 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - index2 = 0; - span359[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); obj254.Steps = list359; reference267 = obj254; - num++; - ref QuestSequence reference268 = ref span358[num]; + ref QuestSequence reference268 = ref span130[1]; QuestSequence obj255 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj255.Steps = list360; reference268 = obj255; - num++; - ref QuestSequence reference269 = ref span358[num]; + ref QuestSequence reference269 = ref span130[2]; QuestSequence obj256 = new QuestSequence { Sequence = 2 @@ -433972,89 +356944,75 @@ public static class AssemblyQuestLoader num2 = 10; List list361 = new List(num2); CollectionsMarshal.SetCount(list361, num2); - Span span361 = CollectionsMarshal.AsSpan(list361); - index2 = 0; - span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.42645f, 15.455202f, -305.60803f), 1189) + Span span131 = CollectionsMarshal.AsSpan(list361); + span131[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(509.42645f, 15.455202f, -305.60803f), 1189) { Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(515.47345f, 10.495132f, -260.93246f), 1189) + span131[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(515.47345f, 10.495132f, -260.93246f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(532.88403f, 10.019356f, -237.4513f), 1189) + span131[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(532.88403f, 10.019356f, -237.4513f), 1189) { DelaySecondsAtStart = 5f, Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(543.8844f, 9.337766f, -190.25961f), 1189) + span131[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(543.8844f, 9.337766f, -190.25961f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(530.938f, 10.278882f, -164.46059f), 1189) + span131[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(530.938f, 10.278882f, -164.46059f), 1189) { Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(564.2212f, 12.653475f, -126.851585f), 1189) + span131[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(564.2212f, 12.653475f, -126.851585f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.95447f, 16.180645f, -78.99758f), 1189) + span131[6] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(572.95447f, 16.180645f, -78.99758f), 1189) { Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(599.5003f, 16.939411f, -34.30726f), 1189) + span131[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051074u, new Vector3(599.5003f, 16.939411f, -34.30726f), 1189) { StopDistance = 100f, Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.5126f, 16.16554f, -24.822657f), 1189) + span131[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(598.5126f, 16.16554f, -24.822657f), 1189) { Mount = false, Sprint = false }; - index2++; - span361[index2] = new QuestStep(EInteractionType.WalkTo, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189) + span131[9] = new QuestStep(EInteractionType.WalkTo, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189) { DelaySecondsAtStart = 25f }; obj256.Steps = list361; reference269 = obj256; - num++; - ref QuestSequence reference270 = ref span358[num]; + ref QuestSequence reference270 = ref span130[3]; QuestSequence obj257 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj257.Steps = list362; reference270 = obj257; - num++; - ref QuestSequence reference271 = ref span358[num]; + ref QuestSequence reference271 = ref span130[4]; QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue @@ -434062,14 +357020,12 @@ public static class AssemblyQuestLoader num2 = 2; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013948u, new Vector3(610.7728f, 9.597839f, 233.05103f), 1189) + Span span132 = CollectionsMarshal.AsSpan(list363); + span132[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013948u, new Vector3(610.7728f, 9.597839f, 233.05103f), 1189) { AetherCurrentId = 2818440u }; - index2++; - ref QuestStep reference272 = ref span363[index2]; + ref QuestStep reference272 = ref span132[1]; QuestStep obj259 = new QuestStep(EInteractionType.CompleteQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -434082,9 +357038,7 @@ public static class AssemblyQuestLoader num3 = 1; List list364 = new List(num3); CollectionsMarshal.SetCount(list364, num3); - Span span364 = CollectionsMarshal.AsSpan(list364); - num4 = 0; - span364[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list364)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD005_05094_CHOICE1Q1_100_060"), @@ -434101,30 +357055,24 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - Span span365 = CollectionsMarshal.AsSpan(list365); - index = 0; - span365[index] = "liza"; + CollectionsMarshal.AsSpan(list365)[0] = "liza"; questRoot46.Author = list365; - index = 4; - List list366 = new List(index); - CollectionsMarshal.SetCount(list366, index); - Span span366 = CollectionsMarshal.AsSpan(list366); - num = 0; - ref QuestSequence reference273 = ref span366[num]; + num = 4; + List list366 = new List(num); + CollectionsMarshal.SetCount(list366, num); + Span span133 = CollectionsMarshal.AsSpan(list366); + ref QuestSequence reference273 = ref span133[0]; QuestSequence obj260 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj260.Steps = list367; reference273 = obj260; - num++; - ref QuestSequence reference274 = ref span366[num]; + ref QuestSequence reference274 = ref span133[1]; QuestSequence obj261 = new QuestSequence { Sequence = 1 @@ -434132,45 +357080,37 @@ public static class AssemblyQuestLoader num2 = 1; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - ref QuestStep reference275 = ref span368[index2]; + ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list368)[0]; QuestStep obj262 = new QuestStep(EInteractionType.Combat, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list369 = new List(num3); + CollectionsMarshal.SetCount(list369, num3); + Span span134 = CollectionsMarshal.AsSpan(list369); + span134[0] = 17664u; + span134[1] = 17665u; obj262.KillEnemyDataIds = list369; reference275 = obj262; obj261.Steps = list368; reference274 = obj261; - num++; - ref QuestSequence reference276 = ref span366[num]; + ref QuestSequence reference276 = ref span133[2]; QuestSequence obj263 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj263.Steps = list370; reference276 = obj263; - num++; - ref QuestSequence reference277 = ref span366[num]; + ref QuestSequence reference277 = ref span133[3]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue @@ -434178,9 +357118,7 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189) + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -434194,30 +357132,24 @@ public static class AssemblyQuestLoader num = 1; List list372 = new List(num); CollectionsMarshal.SetCount(list372, num); - Span span372 = CollectionsMarshal.AsSpan(list372); - index = 0; - span372[index] = "liza"; + CollectionsMarshal.AsSpan(list372)[0] = "liza"; questRoot47.Author = list372; - index = 3; - List list373 = new List(index); - CollectionsMarshal.SetCount(list373, index); - Span span373 = CollectionsMarshal.AsSpan(list373); - num = 0; - ref QuestSequence reference278 = ref span373[num]; + num = 3; + List list373 = new List(num); + CollectionsMarshal.SetCount(list373, num); + Span span135 = CollectionsMarshal.AsSpan(list373); + ref QuestSequence reference278 = ref span135[0]; QuestSequence obj265 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj265.Steps = list374; reference278 = obj265; - num++; - ref QuestSequence reference279 = ref span373[num]; + ref QuestSequence reference279 = ref span135[1]; QuestSequence obj266 = new QuestSequence { Sequence = 1 @@ -434225,51 +357157,36 @@ public static class AssemblyQuestLoader num2 = 3; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - ref QuestStep reference280 = ref span375[index2]; + Span span136 = CollectionsMarshal.AsSpan(list375); + ref QuestStep reference280 = ref span136[0]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list376; reference280 = questStep14; - index2++; - ref QuestStep reference281 = ref span375[index2]; + ref QuestStep reference281 = ref span136[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014266u, new Vector3(430.83838f, 20.126648f, -456.71783f), 1189); - num4 = 6; - List list377 = new List(num4); - CollectionsMarshal.SetCount(list377, num4); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list377; reference281 = questStep15; - index2++; - ref QuestStep reference282 = ref span375[index2]; + ref QuestStep reference282 = ref span136[2]; QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2014265u, new Vector3(395.92578f, 20.34021f, -453.02515f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -434277,42 +357194,31 @@ public static class AssemblyQuestLoader num3 = 1; List list378 = new List(num3); CollectionsMarshal.SetCount(list378, num3); - Span span378 = CollectionsMarshal.AsSpan(list378); - num4 = 0; - span378[num4] = 17666u; + CollectionsMarshal.AsSpan(list378)[0] = 17666u; obj267.KillEnemyDataIds = list378; - 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); + 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); obj267.CompletionQuestVariablesFlags = list379; reference282 = obj267; obj266.Steps = list375; reference279 = obj266; - num++; - ref QuestSequence reference283 = ref span373[num]; + ref QuestSequence reference283 = ref span135[2]; QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj268.Steps = list380; reference283 = obj268; questRoot47.QuestSequence = list373; @@ -434322,16 +357228,13 @@ public static class AssemblyQuestLoader num = 1; List list381 = new List(num); CollectionsMarshal.SetCount(list381, num); - Span span381 = CollectionsMarshal.AsSpan(list381); - index = 0; - span381[index] = "liza"; + CollectionsMarshal.AsSpan(list381)[0] = "liza"; questRoot48.Author = list381; - index = 3; - List list382 = new List(index); - CollectionsMarshal.SetCount(list382, index); - Span span382 = CollectionsMarshal.AsSpan(list382); - num = 0; - ref QuestSequence reference284 = ref span382[num]; + num = 3; + List list382 = new List(num); + CollectionsMarshal.SetCount(list382, num); + Span span140 = CollectionsMarshal.AsSpan(list382); + ref QuestSequence reference284 = ref span140[0]; QuestSequence obj269 = new QuestSequence { Sequence = 0 @@ -434339,23 +357242,19 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span383 = CollectionsMarshal.AsSpan(list383); - index2 = 0; - span383[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); + CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); obj269.Steps = list383; reference284 = obj269; - num++; - ref QuestSequence reference285 = ref span382[num]; + ref QuestSequence reference285 = ref span140[1]; QuestSequence obj270 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list384 = new List(index2); - CollectionsMarshal.SetCount(list384, index2); - Span span384 = CollectionsMarshal.AsSpan(list384); - num2 = 0; - ref QuestStep reference286 = ref span384[num2]; + num2 = 3; + List list384 = new List(num2); + CollectionsMarshal.SetCount(list384, num2); + Span span141 = CollectionsMarshal.AsSpan(list384); + ref QuestStep reference286 = ref span141[0]; QuestStep obj271 = new QuestStep(EInteractionType.Interact, 1048961u, new Vector3(-444.38855f, 28.068893f, -363.66827f), 1189) { Fly = true, @@ -434364,51 +357263,37 @@ public static class AssemblyQuestLoader num3 = 6; List list385 = new List(num3); CollectionsMarshal.SetCount(list385, num3); - 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); + 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); obj271.CompletionQuestVariablesFlags = list385; reference286 = obj271; - num2++; - ref QuestStep reference287 = ref span384[num2]; + ref QuestStep reference287 = ref span141[1]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list386; skipConditions2.StepIf = skipStepConditions2; obj272.SkipConditions = skipConditions2; reference287 = obj272; - num2++; - ref QuestStep reference288 = ref span384[num2]; + ref QuestStep reference288 = ref span141[2]; QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1048995u, new Vector3(-639.27673f, 26.716875f, -161.05902f), 1189) { StopDistance = 7f @@ -434416,25 +357301,18 @@ public static class AssemblyQuestLoader num3 = 6; List list387 = new List(num3); CollectionsMarshal.SetCount(list387, num3); - 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); + 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); obj273.CompletionQuestVariablesFlags = list387; reference288 = obj273; obj270.Steps = list384; reference285 = obj270; - num++; - ref QuestSequence reference289 = ref span382[num]; + ref QuestSequence reference289 = ref span140[2]; QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue @@ -434442,9 +357320,7 @@ public static class AssemblyQuestLoader num2 = 1; List list388 = new List(num2); CollectionsMarshal.SetCount(list388, num2); - Span span388 = CollectionsMarshal.AsSpan(list388); - index2 = 0; - span388[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051410u, new Vector3(-9.140198f, 8.205902f, -652.9183f), 1189) + CollectionsMarshal.AsSpan(list388)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051410u, new Vector3(-9.140198f, 8.205902f, -652.9183f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -434462,30 +357338,24 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - Span span389 = CollectionsMarshal.AsSpan(list389); - index = 0; - span389[index] = "liza"; + CollectionsMarshal.AsSpan(list389)[0] = "liza"; questRoot49.Author = list389; - index = 5; - List list390 = new List(index); - CollectionsMarshal.SetCount(list390, index); - Span span390 = CollectionsMarshal.AsSpan(list390); - num = 0; - ref QuestSequence reference290 = ref span390[num]; + num = 5; + List list390 = new List(num); + CollectionsMarshal.SetCount(list390, num); + Span span145 = CollectionsMarshal.AsSpan(list390); + ref QuestSequence reference290 = ref span145[0]; QuestSequence obj275 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj275.Steps = list391; reference290 = obj275; - num++; - ref QuestSequence reference291 = ref span390[num]; + ref QuestSequence reference291 = ref span145[1]; QuestSequence obj276 = new QuestSequence { Sequence = 1 @@ -434493,54 +357363,43 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - Span span392 = CollectionsMarshal.AsSpan(list392); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) { Fly = true }; obj276.Steps = list392; reference291 = obj276; - num++; - ref QuestSequence reference292 = ref span390[num]; + ref QuestSequence reference292 = ref span145[2]; QuestSequence obj277 = new QuestSequence { Sequence = 2 }; - index2 = 6; - List list393 = new List(index2); - CollectionsMarshal.SetCount(list393, index2); - Span span393 = CollectionsMarshal.AsSpan(list393); - num2 = 0; - ref QuestStep reference293 = ref span393[num2]; + num2 = 6; + List list393 = new List(num2); + CollectionsMarshal.SetCount(list393, num2); + Span span146 = CollectionsMarshal.AsSpan(list393); + ref QuestStep reference293 = ref span146[0]; 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(); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list394; skipConditions3.StepIf = skipStepConditions3; obj278.SkipConditions = skipConditions3; reference293 = obj278; - num2++; - ref QuestStep reference294 = ref span393[num2]; + ref QuestStep reference294 = ref span146[1]; QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 2014313u, new Vector3(-581.75024f, 23.697266f, -2.9450073f), 1189) { ItemId = 2003683u @@ -434548,51 +357407,37 @@ public static class AssemblyQuestLoader num3 = 6; List list395 = new List(num3); CollectionsMarshal.SetCount(list395, num3); - 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); + 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); obj279.CompletionQuestVariablesFlags = list395; reference294 = obj279; - num2++; - ref QuestStep reference295 = ref span393[num2]; + ref QuestStep reference295 = ref span146[2]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list396; skipConditions4.StepIf = skipStepConditions4; obj280.SkipConditions = skipConditions4; reference295 = obj280; - num2++; - ref QuestStep reference296 = ref span393[num2]; + ref QuestStep reference296 = ref span146[3]; QuestStep obj281 = new QuestStep(EInteractionType.UseItem, 2014314u, new Vector3(-505.9129f, 23.88031f, 32.455933f), 1189) { ItemId = 2003683u @@ -434600,51 +357445,37 @@ public static class AssemblyQuestLoader num3 = 6; List list397 = new List(num3); CollectionsMarshal.SetCount(list397, num3); - 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); + 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); obj281.CompletionQuestVariablesFlags = list397; reference296 = obj281; - num2++; - ref QuestStep reference297 = ref span393[num2]; + ref QuestStep reference297 = ref span146[4]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list398; skipConditions5.StepIf = skipStepConditions5; obj282.SkipConditions = skipConditions5; reference297 = obj282; - num2++; - ref QuestStep reference298 = ref span393[num2]; + ref QuestStep reference298 = ref span146[5]; QuestStep obj283 = new QuestStep(EInteractionType.UseItem, 2014315u, new Vector3(-413.96204f, 21.896606f, 74.021484f), 1189) { ItemId = 2003683u @@ -434652,25 +357483,18 @@ public static class AssemblyQuestLoader num3 = 6; List list399 = new List(num3); CollectionsMarshal.SetCount(list399, num3); - 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); + 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); obj283.CompletionQuestVariablesFlags = list399; reference298 = obj283; obj277.Steps = list393; reference292 = obj277; - num++; - ref QuestSequence reference299 = ref span390[num]; + ref QuestSequence reference299 = ref span145[3]; QuestSequence obj284 = new QuestSequence { Sequence = 3 @@ -434678,26 +357502,21 @@ public static class AssemblyQuestLoader num2 = 1; List list400 = new List(num2); CollectionsMarshal.SetCount(list400, num2); - Span span400 = CollectionsMarshal.AsSpan(list400); - index2 = 0; - span400[index2] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) + CollectionsMarshal.AsSpan(list400)[0] = new QuestStep(EInteractionType.Interact, 1051365u, new Vector3(-738.3383f, 22.137896f, -85.404785f), 1189) { Fly = true }; obj284.Steps = list400; reference299 = obj284; - num++; - ref QuestSequence reference300 = ref span390[num]; + ref QuestSequence reference300 = ref span145[4]; QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -434710,16 +357529,13 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - Span span402 = CollectionsMarshal.AsSpan(list402); - index = 0; - span402[index] = "liza"; + CollectionsMarshal.AsSpan(list402)[0] = "liza"; questRoot50.Author = list402; - index = 3; - List list403 = new List(index); - CollectionsMarshal.SetCount(list403, index); - Span span403 = CollectionsMarshal.AsSpan(list403); - num = 0; - ref QuestSequence reference301 = ref span403[num]; + num = 3; + List list403 = new List(num); + CollectionsMarshal.SetCount(list403, num); + Span span153 = CollectionsMarshal.AsSpan(list403); + ref QuestSequence reference301 = ref span153[0]; QuestSequence obj286 = new QuestSequence { Sequence = 0 @@ -434727,30 +357543,24 @@ public static class AssemblyQuestLoader num2 = 1; List list404 = new List(num2); CollectionsMarshal.SetCount(list404, num2); - Span span404 = CollectionsMarshal.AsSpan(list404); - index2 = 0; - span404[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); + CollectionsMarshal.AsSpan(list404)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); obj286.Steps = list404; reference301 = obj286; - num++; - ref QuestSequence reference302 = ref span403[num]; + ref QuestSequence reference302 = ref span153[1]; QuestSequence obj287 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj287.Steps = list405; reference302 = obj287; - num++; - ref QuestSequence reference303 = ref span403[num]; + ref QuestSequence reference303 = ref span153[2]; QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue @@ -434758,9 +357568,7 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - index2 = 0; - span406[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); obj288.Steps = list406; reference303 = obj288; questRoot50.QuestSequence = list403; @@ -434774,16 +357582,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -434791,30 +357596,24 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Comment = "Inspect Flag, Red Head, Blue Head" }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -434822,9 +357621,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048982u, new Vector3(595.45276f, -137.17401f, 564.8126f), 1189) { StopDistance = 7f }; @@ -434837,30 +357634,24 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 3; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 3; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span2 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span2[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span2[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -434868,9 +357659,8 @@ public static class AssemblyQuestLoader num2 = 6; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - ref QuestStep reference6 = ref span9[index2]; + Span span3 = CollectionsMarshal.AsSpan(list9); + ref QuestStep reference6 = ref span3[0]; QuestStep obj6 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-92.00457f, -212.91975f, 624.4216f), 1189) { Fly = true @@ -434880,53 +357670,39 @@ public static class AssemblyQuestLoader int num3 = 6; List list10 = new List(num3); CollectionsMarshal.SetCount(list10, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list10; skipConditions.StepIf = skipStepConditions; obj6.SkipConditions = skipConditions; reference6 = obj6; - index2++; - ref QuestStep reference7 = ref span9[index2]; + ref QuestStep reference7 = ref span3[1]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list11; skipConditions2.StepIf = skipStepConditions2; obj7.SkipConditions = skipConditions2; reference7 = obj7; - index2++; - ref QuestStep reference8 = ref span9[index2]; + ref QuestStep reference8 = ref span3[2]; QuestStep obj8 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-122.188805f, -214.08376f, 674.54083f), 1189) { Fly = true @@ -434936,46 +357712,32 @@ public static class AssemblyQuestLoader num3 = 6; List list12 = new List(num3); CollectionsMarshal.SetCount(list12, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list12; skipConditions3.StepIf = skipStepConditions3; obj8.SkipConditions = skipConditions3; reference8 = obj8; - index2++; - ref QuestStep reference9 = ref span9[index2]; + ref QuestStep reference9 = ref span3[3]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1051051u, new Vector3(-122.88098f, -213.78055f, 673.39575f), 1189); - 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); + 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); questStep.CompletionQuestVariablesFlags = list13; reference9 = questStep; - index2++; - ref QuestStep reference10 = ref span9[index2]; + ref QuestStep reference10 = ref span3[4]; QuestStep obj9 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-142.65875f, -213.42487f, 608.63165f), 1189) { Fly = true @@ -434985,58 +357747,42 @@ public static class AssemblyQuestLoader num3 = 6; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list14; skipConditions4.StepIf = skipStepConditions4; obj9.SkipConditions = skipConditions4; reference10 = obj9; - index2++; - ref QuestStep reference11 = ref span9[index2]; + ref QuestStep reference11 = ref span3[5]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1051050u, new Vector3(-143.63324f, -213.18237f, 609.0028f), 1189); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list15; reference11 = questStep2; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference12 = ref span7[num]; + ref QuestSequence reference12 = ref span2[2]; QuestSequence obj10 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -435050,16 +357796,13 @@ public static class AssemblyQuestLoader num = 1; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); - Span span17 = CollectionsMarshal.AsSpan(list17); - index = 0; - span17[index] = "liza"; + CollectionsMarshal.AsSpan(list17)[0] = "liza"; questRoot3.Author = list17; - index = 3; - List list18 = new List(index); - CollectionsMarshal.SetCount(list18, index); - Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - ref QuestSequence reference13 = ref span18[num]; + num = 3; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); + Span span10 = CollectionsMarshal.AsSpan(list18); + ref QuestSequence reference13 = ref span10[0]; QuestSequence obj11 = new QuestSequence { Sequence = 0 @@ -435067,23 +357810,19 @@ public static class AssemblyQuestLoader num2 = 1; List list19 = new List(num2); CollectionsMarshal.SetCount(list19, num2); - Span span19 = CollectionsMarshal.AsSpan(list19); - index2 = 0; - span19[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189); + CollectionsMarshal.AsSpan(list19)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189); obj11.Steps = list19; reference13 = obj11; - num++; - ref QuestSequence reference14 = ref span18[num]; + ref QuestSequence reference14 = ref span10[1]; QuestSequence obj12 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list20 = new List(index2); - CollectionsMarshal.SetCount(list20, index2); - Span span20 = CollectionsMarshal.AsSpan(list20); - num2 = 0; - ref QuestStep reference15 = ref span20[num2]; + num2 = 4; + List list20 = new List(num2); + CollectionsMarshal.SetCount(list20, num2); + Span span11 = CollectionsMarshal.AsSpan(list20); + ref QuestStep reference15 = ref span11[0]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 2014369u, new Vector3(328.20618f, -157.21375f, 429.4651f), 1189) { Fly = true @@ -435091,44 +357830,30 @@ public static class AssemblyQuestLoader num3 = 6; List list21 = new List(num3); CollectionsMarshal.SetCount(list21, num3); - 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); + 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); obj13.CompletionQuestVariablesFlags = list21; reference15 = obj13; - num2++; - ref QuestStep reference16 = ref span20[num2]; + ref QuestStep reference16 = ref span11[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014368u, new Vector3(323.7201f, -157.76306f, 434.19543f), 1189); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list22; reference16 = questStep3; - num2++; - ref QuestStep reference17 = ref span20[num2]; + ref QuestStep reference17 = ref span11[2]; QuestStep obj14 = new QuestStep(EInteractionType.Interact, 2014256u, new Vector3(139.17749f, -162.24927f, 679.95715f), 1189) { Fly = true @@ -435136,46 +357861,32 @@ public static class AssemblyQuestLoader num3 = 6; List list23 = new List(num3); CollectionsMarshal.SetCount(list23, num3); - 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); + 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); obj14.CompletionQuestVariablesFlags = list23; reference17 = obj14; - num2++; - ref QuestStep reference18 = ref span20[num2]; + ref QuestStep reference18 = ref span11[3]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014257u, new Vector3(144.67078f, -163.25635f, 663.84375f), 1189); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list24; reference18 = questStep4; obj12.Steps = list20; reference14 = obj12; - num++; - ref QuestSequence reference19 = ref span18[num]; + ref QuestSequence reference19 = ref span10[2]; QuestSequence obj15 = new QuestSequence { Sequence = byte.MaxValue @@ -435183,9 +357894,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048988u, new Vector3(584.4967f, -143.46597f, 648.64575f), 1189) { Fly = true }; @@ -435198,30 +357907,24 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "liza"; + CollectionsMarshal.AsSpan(list26)[0] = "liza"; questRoot4.Author = list26; - index = 4; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference20 = ref span27[num]; + num = 4; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span16 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference20 = ref span16[0]; QuestSequence obj16 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj16.Steps = list28; reference20 = obj16; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span16[1]; QuestSequence obj17 = new QuestSequence { Sequence = 1 @@ -435229,23 +357932,18 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); obj17.Steps = list29; reference21 = obj17; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span16[2]; QuestSequence obj18 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list30 = new List(index2); - CollectionsMarshal.SetCount(list30, index2); - Span span30 = CollectionsMarshal.AsSpan(list30); - num2 = 0; - ref QuestStep reference23 = ref span30[num2]; + num2 = 1; + List list30 = new List(num2); + CollectionsMarshal.SetCount(list30, num2); + ref QuestStep reference23 = ref CollectionsMarshal.AsSpan(list30)[0]; QuestStep obj19 = new QuestStep(EInteractionType.Combat, 2014258u, new Vector3(87.02222f, -176.1654f, 328.3894f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -435253,15 +357951,12 @@ public static class AssemblyQuestLoader num3 = 1; List list31 = new List(num3); CollectionsMarshal.SetCount(list31, num3); - Span span31 = CollectionsMarshal.AsSpan(list31); - num4 = 0; - span31[num4] = 17676u; + CollectionsMarshal.AsSpan(list31)[0] = 17676u; obj19.KillEnemyDataIds = list31; reference23 = obj19; obj18.Steps = list30; reference22 = obj18; - num++; - ref QuestSequence reference24 = ref span27[num]; + ref QuestSequence reference24 = ref span16[3]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue @@ -435269,9 +357964,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051066u, new Vector3(121.9043f, -172.89474f, 381.15503f), 1189); obj20.Steps = list32; reference24 = obj20; questRoot4.QuestSequence = list27; @@ -435281,30 +357974,24 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot5.Author = list33; - index = 6; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference25 = ref span34[num]; + num = 6; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span17 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference25 = ref span17[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj21.Steps = list35; reference25 = obj21; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span17[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 @@ -435312,19 +357999,15 @@ public static class AssemblyQuestLoader num2 = 1; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference27 = ref span36[index2]; + ref QuestStep reference27 = ref CollectionsMarshal.AsSpan(list36)[0]; QuestStep obj23 = new QuestStep(EInteractionType.Interact, 1051053u, new Vector3(257.1908f, -165.78062f, 146.74597f), 1189) { Fly = true }; - num4 = 1; - List list37 = new List(num4); - CollectionsMarshal.SetCount(list37, num4); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = new DialogueChoice + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZD105_05104_SYSTEM_100_004") @@ -435333,52 +358016,44 @@ public static class AssemblyQuestLoader reference27 = obj23; obj22.Steps = list36; reference26 = obj22; - num++; - ref QuestSequence reference28 = ref span34[num]; + ref QuestSequence reference28 = ref span17[2]; QuestSequence obj24 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(255.7041f, -161.34225f, 101.95002f), 1189) + span18[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(255.7041f, -161.34225f, 101.95002f), 1189) { DisableNavmesh = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(218.3051f, -160.72849f, 78.95244f), 1189) + span18[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(218.3051f, -160.72849f, 78.95244f), 1189) { DisableNavmesh = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(168.0448f, -158.83824f, 31.171473f), 1189) + span18[3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(168.0448f, -158.83824f, 31.171473f), 1189) { DisableNavmesh = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(144.163f, -156.25887f, -57.818764f), 1189) + span18[4] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051053u, new Vector3(144.163f, -156.25887f, -57.818764f), 1189) { DisableNavmesh = true }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189) + span18[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189) { StopDistance = 1f, DisableNavmesh = true }; obj24.Steps = list38; reference28 = obj24; - num++; - ref QuestSequence reference29 = ref span34[num]; + ref QuestSequence reference29 = ref span17[3]; QuestSequence obj25 = new QuestSequence { Sequence = 3 @@ -435386,31 +358061,25 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1051054u, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189); + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1051054u, new Vector3(83.32947f, -157.21858f, -67.64331f), 1189); obj25.Steps = list39; reference29 = obj25; - num++; - ref QuestSequence reference30 = ref span34[num]; + ref QuestSequence reference30 = ref span17[4]; QuestSequence obj26 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true, Mount = false }; obj26.Steps = list40; reference30 = obj26; - num++; - ref QuestSequence reference31 = ref span34[num]; + ref QuestSequence reference31 = ref span17[5]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -435418,9 +358087,7 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048987u, new Vector3(596.97876f, -142.60623f, 441.7334f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -435434,30 +358101,24 @@ public static class AssemblyQuestLoader num = 1; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span42 = CollectionsMarshal.AsSpan(list42); - index = 0; - span42[index] = "liza"; + CollectionsMarshal.AsSpan(list42)[0] = "liza"; questRoot6.Author = list42; - index = 4; - List list43 = new List(index); - CollectionsMarshal.SetCount(list43, index); - Span span43 = CollectionsMarshal.AsSpan(list43); - num = 0; - ref QuestSequence reference32 = ref span43[num]; + num = 4; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + Span span19 = CollectionsMarshal.AsSpan(list43); + ref QuestSequence reference32 = ref span19[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj28.Steps = list44; reference32 = obj28; - num++; - ref QuestSequence reference33 = ref span43[num]; + ref QuestSequence reference33 = ref span19[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -435465,14 +358126,12 @@ public static class AssemblyQuestLoader num2 = 2; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.87303f, -174.86252f, 649.25995f), 1189) + Span span20 = CollectionsMarshal.AsSpan(list45); + span20[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-45.87303f, -174.86252f, 649.25995f), 1189) { Fly = true }; - index2++; - ref QuestStep reference34 = ref span45[index2]; + ref QuestStep reference34 = ref span20[1]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 1051056u, new Vector3(-49.149292f, -174.58734f, 651.4839f), 1189) { StopDistance = 5f, @@ -435481,35 +358140,26 @@ public static class AssemblyQuestLoader num3 = 6; List list46 = new List(num3); CollectionsMarshal.SetCount(list46, num3); - 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); + 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); obj30.CompletionQuestVariablesFlags = list46; reference34 = obj30; obj29.Steps = list45; reference33 = obj29; - num++; - ref QuestSequence reference35 = ref span43[num]; + ref QuestSequence reference35 = ref span19[2]; QuestSequence obj31 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, ChatMessage = new ChatMessage @@ -435519,8 +358169,7 @@ public static class AssemblyQuestLoader }; obj31.Steps = list47; reference35 = obj31; - num++; - ref QuestSequence reference36 = ref span43[num]; + ref QuestSequence reference36 = ref span19[3]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue @@ -435528,9 +358177,7 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189) + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051055u, new Vector3(563.5918f, -144.04688f, 702.26587f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -435544,30 +358191,24 @@ public static class AssemblyQuestLoader num = 1; List list49 = new List(num); CollectionsMarshal.SetCount(list49, num); - Span span49 = CollectionsMarshal.AsSpan(list49); - index = 0; - span49[index] = "liza"; + CollectionsMarshal.AsSpan(list49)[0] = "liza"; questRoot7.Author = list49; - index = 3; - List list50 = new List(index); - CollectionsMarshal.SetCount(list50, index); - Span span50 = CollectionsMarshal.AsSpan(list50); - num = 0; - ref QuestSequence reference37 = ref span50[num]; + num = 3; + List list50 = new List(num); + CollectionsMarshal.SetCount(list50, num); + Span span22 = CollectionsMarshal.AsSpan(list50); + ref QuestSequence reference37 = ref span22[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj33.Steps = list51; reference37 = obj33; - num++; - ref QuestSequence reference38 = ref span50[num]; + ref QuestSequence reference38 = ref span22[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 @@ -435575,38 +358216,29 @@ public static class AssemblyQuestLoader num2 = 3; 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(178.30347f, -195.42366f, 241.28633f), 1189) + Span span23 = CollectionsMarshal.AsSpan(list52); + span23[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(178.30347f, -195.42366f, 241.28633f), 1189) { Fly = true }; - index2++; - ref QuestStep reference39 = ref span52[index2]; + ref QuestStep reference39 = ref span23[1]; QuestStep obj35 = new QuestStep(EInteractionType.UseItem, 2014260u, new Vector3(177.44714f, -194.11005f, 239.61243f), 1189) { ItemId = 2003667u }; - 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); + 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); obj35.CompletionQuestVariablesFlags = list53; reference39 = obj35; - index2++; - ref QuestStep reference40 = ref span52[index2]; + ref QuestStep reference40 = ref span23[2]; QuestStep obj36 = new QuestStep(EInteractionType.UseItem, 2014261u, new Vector3(164.47693f, -194.2627f, 237.50659f), 1189) { ItemId = 2003667u @@ -435614,35 +358246,26 @@ public static class AssemblyQuestLoader num3 = 6; List list54 = new List(num3); CollectionsMarshal.SetCount(list54, num3); - 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); + 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); obj36.CompletionQuestVariablesFlags = list54; reference40 = obj36; obj34.Steps = list52; reference38 = obj34; - num++; - ref QuestSequence reference41 = ref span50[num]; + ref QuestSequence reference41 = ref span22[2]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -435655,16 +358278,13 @@ public static class AssemblyQuestLoader num = 1; List list56 = new List(num); CollectionsMarshal.SetCount(list56, num); - Span span56 = CollectionsMarshal.AsSpan(list56); - index = 0; - span56[index] = "liza"; + CollectionsMarshal.AsSpan(list56)[0] = "liza"; questRoot8.Author = list56; - index = 3; - List list57 = new List(index); - CollectionsMarshal.SetCount(list57, index); - Span span57 = CollectionsMarshal.AsSpan(list57); - num = 0; - ref QuestSequence reference42 = ref span57[num]; + num = 3; + List list57 = new List(num); + CollectionsMarshal.SetCount(list57, num); + Span span26 = CollectionsMarshal.AsSpan(list57); + ref QuestSequence reference42 = ref span26[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -435672,48 +358292,37 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189); obj38.Steps = list58; reference42 = obj38; - num++; - ref QuestSequence reference43 = ref span57[num]; + ref QuestSequence reference43 = ref span26[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list59 = new List(index2); - CollectionsMarshal.SetCount(list59, index2); - Span span59 = CollectionsMarshal.AsSpan(list59); - num2 = 0; - ref QuestStep reference44 = ref span59[num2]; + num2 = 3; + List list59 = new List(num2); + CollectionsMarshal.SetCount(list59, num2); + Span span27 = CollectionsMarshal.AsSpan(list59); + ref QuestStep reference44 = ref span27[0]; QuestStep obj40 = new QuestStep(EInteractionType.Interact, 1051408u, new Vector3(631.2809f, -137.12654f, 509.6665f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - 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); + 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); obj40.CompletionQuestVariablesFlags = list60; reference44 = obj40; - num2++; - ref QuestStep reference45 = ref span59[num2]; + ref QuestStep reference45 = ref span27[1]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1048974u, new Vector3(621.51514f, -135.12726f, 531.1207f), 1189) { Fly = true @@ -435721,49 +358330,35 @@ public static class AssemblyQuestLoader num3 = 6; List list61 = new List(num3); CollectionsMarshal.SetCount(list61, num3); - 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); + 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); obj41.CompletionQuestVariablesFlags = list61; reference45 = obj41; - num2++; - ref QuestStep reference46 = ref span59[num2]; + ref QuestStep reference46 = ref span27[2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1048989u, new Vector3(523.4302f, -135.12724f, 578.14905f), 1189) { Fly = true }; - 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); + 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); obj42.CompletionQuestVariablesFlags = list62; reference46 = obj42; obj39.Steps = list59; reference43 = obj39; - num++; - ref QuestSequence reference47 = ref span57[num]; + ref QuestSequence reference47 = ref span26[2]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue @@ -435771,9 +358366,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - ref QuestStep reference48 = ref span63[index2]; + ref QuestStep reference48 = ref CollectionsMarshal.AsSpan(list63)[0]; QuestStep obj44 = new QuestStep(EInteractionType.CompleteQuest, 1048998u, new Vector3(220.29443f, -156.80957f, 457.02295f), 1189) { Fly = true @@ -435781,9 +358374,7 @@ public static class AssemblyQuestLoader num3 = 1; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span64 = CollectionsMarshal.AsSpan(list64); - num4 = 0; - span64[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list64)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD108_05107_Q1_000_000"), @@ -435800,33 +358391,27 @@ public static class AssemblyQuestLoader num = 1; List list65 = new List(num); CollectionsMarshal.SetCount(list65, num); - Span span65 = CollectionsMarshal.AsSpan(list65); - index = 0; - span65[index] = "liza"; + CollectionsMarshal.AsSpan(list65)[0] = "liza"; questRoot9.Author = list65; - index = 3; - List list66 = new List(index); - CollectionsMarshal.SetCount(list66, index); - Span span66 = CollectionsMarshal.AsSpan(list66); - num = 0; - ref QuestSequence reference49 = ref span66[num]; + num = 3; + List list66 = new List(num); + CollectionsMarshal.SetCount(list66, num); + Span span31 = CollectionsMarshal.AsSpan(list66); + ref QuestSequence reference49 = ref span31[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true }; obj45.Steps = list67; reference49 = obj45; - num++; - ref QuestSequence reference50 = ref span66[num]; + ref QuestSequence reference50 = ref span31[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 @@ -435834,40 +358419,32 @@ public static class AssemblyQuestLoader num2 = 1; List list68 = new List(num2); CollectionsMarshal.SetCount(list68, num2); - Span span68 = CollectionsMarshal.AsSpan(list68); - index2 = 0; - ref QuestStep reference51 = ref span68[index2]; + ref QuestStep reference51 = ref CollectionsMarshal.AsSpan(list68)[0]; QuestStep obj47 = new QuestStep(EInteractionType.Combat, 2014262u, new Vector3(-443.83917f, -158.1903f, 343.34326f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + 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; obj47.KillEnemyDataIds = list69; reference51 = obj47; obj46.Steps = list68; reference50 = obj46; - num++; - ref QuestSequence reference52 = ref span66[num]; + ref QuestSequence reference52 = ref span31[2]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -435880,16 +358457,13 @@ public static class AssemblyQuestLoader num = 1; List list71 = new List(num); CollectionsMarshal.SetCount(list71, num); - Span span71 = CollectionsMarshal.AsSpan(list71); - index = 0; - span71[index] = "liza"; + CollectionsMarshal.AsSpan(list71)[0] = "liza"; questRoot10.Author = list71; - index = 5; - List list72 = new List(index); - CollectionsMarshal.SetCount(list72, index); - Span span72 = CollectionsMarshal.AsSpan(list72); - num = 0; - ref QuestSequence reference53 = ref span72[num]; + num = 5; + List list72 = new List(num); + CollectionsMarshal.SetCount(list72, num); + Span span33 = CollectionsMarshal.AsSpan(list72); + ref QuestSequence reference53 = ref span33[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -435897,33 +358471,27 @@ public static class AssemblyQuestLoader num2 = 1; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - span73[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) + CollectionsMarshal.AsSpan(list73)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) { Fly = true }; obj49.Steps = list73; reference53 = obj49; - num++; - ref QuestSequence reference54 = ref span72[num]; + ref QuestSequence reference54 = ref span33[1]; QuestSequence obj50 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj50.Steps = list74; reference54 = obj50; - num++; - ref QuestSequence reference55 = ref span72[num]; + ref QuestSequence reference55 = ref span33[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -435931,9 +358499,7 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - ref QuestStep reference56 = ref span75[index2]; + ref QuestStep reference56 = ref CollectionsMarshal.AsSpan(list75)[0]; QuestStep obj52 = new QuestStep(EInteractionType.Instruction, null, new Vector3(-433.617f, -156.24463f, 776.9229f), 1189) { Fly = true, @@ -435943,9 +358509,7 @@ public static class AssemblyQuestLoader num3 = 1; List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - Span span76 = CollectionsMarshal.AsSpan(list76); - num4 = 0; - span76[num4] = new ComplexCombatData + CollectionsMarshal.AsSpan(list76)[0] = new ComplexCombatData { DataId = 17267u, MinimumKillCount = 2u, @@ -435956,25 +358520,21 @@ public static class AssemblyQuestLoader reference56 = obj52; obj51.Steps = list75; reference55 = obj51; - num++; - ref QuestSequence reference57 = ref span72[num]; + ref QuestSequence reference57 = ref span33[3]; QuestSequence obj53 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj53.Steps = list77; reference57 = obj53; - num++; - ref QuestSequence reference58 = ref span72[num]; + ref QuestSequence reference58 = ref span33[4]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue @@ -435982,9 +358542,7 @@ public static class AssemblyQuestLoader num2 = 1; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - Span span78 = CollectionsMarshal.AsSpan(list78); - index2 = 0; - span78[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) + CollectionsMarshal.AsSpan(list78)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048997u, new Vector3(-363.9124f, -162.23582f, 550.01135f), 1189) { Fly = true }; @@ -435997,33 +358555,26 @@ public static class AssemblyQuestLoader num = 1; List list79 = new List(num); CollectionsMarshal.SetCount(list79, num); - Span span79 = CollectionsMarshal.AsSpan(list79); - index = 0; - span79[index] = "liza"; + CollectionsMarshal.AsSpan(list79)[0] = "liza"; questRoot11.Author = list79; - index = 4; - List list80 = new List(index); - CollectionsMarshal.SetCount(list80, index); - Span span80 = CollectionsMarshal.AsSpan(list80); - num = 0; - ref QuestSequence reference59 = ref span80[num]; + num = 4; + List list80 = new List(num); + CollectionsMarshal.SetCount(list80, num); + Span span34 = CollectionsMarshal.AsSpan(list80); + ref QuestSequence reference59 = ref span34[0]; QuestSequence obj55 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + ref QuestStep reference60 = ref CollectionsMarshal.AsSpan(list81)[0]; QuestStep questStep5 = new QuestStep(EInteractionType.AcceptQuest, 1050872u, new Vector3(-408.71295f, 20.420113f, -398.8861f), 1189); - num4 = 1; - List list82 = new List(num4); - CollectionsMarshal.SetCount(list82, num4); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = new DialogueChoice + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD201_05110_Q1_000_000"), @@ -436033,8 +358584,7 @@ public static class AssemblyQuestLoader reference60 = questStep5; obj55.Steps = list81; reference59 = obj55; - num++; - ref QuestSequence reference61 = ref span80[num]; + ref QuestSequence reference61 = ref span34[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 @@ -436042,23 +358592,18 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189); + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189); obj56.Steps = list83; reference61 = obj56; - num++; - ref QuestSequence reference62 = ref span80[num]; + ref QuestSequence reference62 = ref span34[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list84 = new List(index2); - CollectionsMarshal.SetCount(list84, index2); - Span span84 = CollectionsMarshal.AsSpan(list84); - num2 = 0; - ref QuestStep reference63 = ref span84[num2]; + num2 = 1; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + ref QuestStep reference63 = ref CollectionsMarshal.AsSpan(list84)[0]; QuestStep obj58 = new QuestStep(EInteractionType.Combat, 2014142u, new Vector3(-372.45752f, 19.33313f, -694.45337f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -436066,15 +358611,12 @@ public static class AssemblyQuestLoader num3 = 1; List list85 = new List(num3); CollectionsMarshal.SetCount(list85, num3); - Span span85 = CollectionsMarshal.AsSpan(list85); - num4 = 0; - span85[num4] = 17668u; + CollectionsMarshal.AsSpan(list85)[0] = 17668u; obj58.KillEnemyDataIds = list85; reference63 = obj58; obj57.Steps = list84; reference62 = obj57; - num++; - ref QuestSequence reference64 = ref span80[num]; + ref QuestSequence reference64 = ref span34[3]; QuestSequence obj59 = new QuestSequence { Sequence = byte.MaxValue @@ -436082,14 +358624,12 @@ public static class AssemblyQuestLoader num2 = 2; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013947u, new Vector3(-184.74103f, 22.934265f, -751.6747f), 1189) + Span span35 = CollectionsMarshal.AsSpan(list86); + span35[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013947u, new Vector3(-184.74103f, 22.934265f, -751.6747f), 1189) { AetherCurrentId = 2818439u }; - index2++; - span86[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) + span35[1] = new QuestStep(EInteractionType.CompleteQuest, 1050873u, new Vector3(-455.10034f, 17.027555f, -478.8739f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -436102,26 +358642,21 @@ public static class AssemblyQuestLoader num = 1; List list87 = new List(num); CollectionsMarshal.SetCount(list87, num); - Span span87 = CollectionsMarshal.AsSpan(list87); - index = 0; - span87[index] = "liza"; + CollectionsMarshal.AsSpan(list87)[0] = "liza"; questRoot12.Author = list87; - index = 4; - List list88 = new List(index); - CollectionsMarshal.SetCount(list88, index); - Span span88 = CollectionsMarshal.AsSpan(list88); - num = 0; - ref QuestSequence reference65 = ref span88[num]; + num = 4; + List list88 = new List(num); + CollectionsMarshal.SetCount(list88, num); + Span span36 = CollectionsMarshal.AsSpan(list88); + ref QuestSequence reference65 = ref span36[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, SkipConditions = new SkipConditions @@ -436139,8 +358674,7 @@ public static class AssemblyQuestLoader }; obj60.Steps = list89; reference65 = obj60; - num++; - ref QuestSequence reference66 = ref span88[num]; + ref QuestSequence reference66 = ref span36[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 @@ -436148,50 +358682,39 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.Interact, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.Interact, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { Fly = true }; obj61.Steps = list90; reference66 = obj61; - num++; - ref QuestSequence reference67 = ref span88[num]; + ref QuestSequence reference67 = ref span36[2]; QuestSequence obj62 = new QuestSequence { Sequence = 2 }; - index2 = 2; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference68 = ref span91[num2]; + num2 = 2; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + Span span37 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference68 = ref span37[0]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 1050876u, new Vector3(-455.92438f, 30.374397f, -423.148f), 1189) { Fly = true }; - 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); + 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); obj63.CompletionQuestVariablesFlags = list92; reference68 = obj63; - num2++; - ref QuestStep reference69 = ref span91[num2]; + ref QuestStep reference69 = ref span37[1]; QuestStep obj64 = new QuestStep(EInteractionType.Interact, 1050875u, new Vector3(-391.01245f, 28.068893f, -365.0111f), 1189) { Fly = true @@ -436199,25 +358722,18 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - 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); + 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); obj64.CompletionQuestVariablesFlags = list93; reference69 = obj64; obj62.Steps = list91; reference67 = obj62; - num++; - ref QuestSequence reference70 = ref span88[num]; + ref QuestSequence reference70 = ref span36[3]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue @@ -436225,9 +358741,7 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) + CollectionsMarshal.AsSpan(list94)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { Fly = true, NextQuestId = new QuestId(5112) @@ -436241,26 +358755,21 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "liza"; + CollectionsMarshal.AsSpan(list95)[0] = "liza"; questRoot13.Author = list95; - index = 4; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference71 = ref span96[num]; + num = 4; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span40 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference71 = ref span40[0]; QuestSequence obj66 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + ref QuestStep reference72 = ref CollectionsMarshal.AsSpan(list97)[0]; QuestStep obj67 = new QuestStep(EInteractionType.AcceptQuest, 1050874u, new Vector3(-508.87314f, 29.61908f, -350.1183f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, @@ -436277,12 +358786,10 @@ public static class AssemblyQuestLoader } } }; - num4 = 1; - List list98 = new List(num4); - CollectionsMarshal.SetCount(list98, num4); - Span span98 = CollectionsMarshal.AsSpan(list98); - num3 = 0; - span98[num3] = new DialogueChoice + num3 = 1; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + CollectionsMarshal.AsSpan(list98)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD203_05112_Q1_000_000"), @@ -436292,8 +358799,7 @@ public static class AssemblyQuestLoader reference72 = obj67; obj66.Steps = list97; reference71 = obj66; - num++; - ref QuestSequence reference73 = ref span96[num]; + ref QuestSequence reference73 = ref span40[1]; QuestSequence obj68 = new QuestSequence { Sequence = 1 @@ -436301,31 +358807,25 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1050877u, new Vector3(-39.871887f, 0.35915944f, -312.1233f), 1189) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1050877u, new Vector3(-39.871887f, 0.35915944f, -312.1233f), 1189) { StopDistance = 1f, Fly = true }; obj68.Steps = list99; reference73 = obj68; - num++; - ref QuestSequence reference74 = ref span96[num]; + ref QuestSequence reference74 = ref span40[2]; QuestSequence obj69 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj69.Steps = list100; reference74 = obj69; - num++; - ref QuestSequence reference75 = ref span96[num]; + ref QuestSequence reference75 = ref span40[3]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue @@ -436333,9 +358833,7 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050878u, new Vector3(475.30322f, 18.197147f, -326.95508f), 1189) { Fly = true, NextQuestId = new QuestId(5113) @@ -436349,30 +358847,24 @@ public static class AssemblyQuestLoader num = 1; List list102 = new List(num); CollectionsMarshal.SetCount(list102, num); - Span span102 = CollectionsMarshal.AsSpan(list102); - index = 0; - span102[index] = "liza"; + CollectionsMarshal.AsSpan(list102)[0] = "liza"; questRoot14.Author = list102; - index = 5; - List list103 = new List(index); - CollectionsMarshal.SetCount(list103, index); - Span span103 = CollectionsMarshal.AsSpan(list103); - num = 0; - ref QuestSequence reference76 = ref span103[num]; + num = 5; + List list103 = new List(num); + CollectionsMarshal.SetCount(list103, num); + Span span41 = CollectionsMarshal.AsSpan(list103); + ref QuestSequence reference76 = ref span41[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj71.Steps = list104; reference76 = obj71; - num++; - ref QuestSequence reference77 = ref span103[num]; + ref QuestSequence reference77 = ref span41[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 @@ -436380,26 +358872,21 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1050879u, new Vector3(595.7274f, 18.8562f, -85.55737f), 1189) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1050879u, new Vector3(595.7274f, 18.8562f, -85.55737f), 1189) { Fly = true }; obj72.Steps = list105; reference77 = obj72; - num++; - ref QuestSequence reference78 = ref span103[num]; + ref QuestSequence reference78 = ref span41[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list106 = new List(index2); - CollectionsMarshal.SetCount(list106, index2); - Span span106 = CollectionsMarshal.AsSpan(list106); - num2 = 0; - ref QuestStep reference79 = ref span106[num2]; + num2 = 1; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list106)[0]; QuestStep obj74 = new QuestStep(EInteractionType.Combat, null, new Vector3(705.4334f, 28.302685f, 2.3153868f), 1189) { StopDistance = 1f, @@ -436409,17 +358896,14 @@ public static class AssemblyQuestLoader num3 = 2; List list107 = new List(num3); CollectionsMarshal.SetCount(list107, num3); - Span span107 = CollectionsMarshal.AsSpan(list107); - num4 = 0; - span107[num4] = 17671u; - num4++; - span107[num4] = 17672u; + Span span42 = CollectionsMarshal.AsSpan(list107); + span42[0] = 17671u; + span42[1] = 17672u; obj74.KillEnemyDataIds = list107; reference79 = obj74; obj73.Steps = list106; reference78 = obj73; - num++; - ref QuestSequence reference80 = ref span103[num]; + ref QuestSequence reference80 = ref span41[3]; QuestSequence obj75 = new QuestSequence { Sequence = 3 @@ -436427,26 +358911,21 @@ public static class AssemblyQuestLoader num2 = 1; List list108 = new List(num2); CollectionsMarshal.SetCount(list108, num2); - Span span108 = CollectionsMarshal.AsSpan(list108); - index2 = 0; - span108[index2] = new QuestStep(EInteractionType.Interact, 1050881u, new Vector3(595.6052f, 18.84498f, -85.55737f), 1189) + CollectionsMarshal.AsSpan(list108)[0] = new QuestStep(EInteractionType.Interact, 1050881u, new Vector3(595.6052f, 18.84498f, -85.55737f), 1189) { Fly = true }; obj75.Steps = list108; reference80 = obj75; - num++; - ref QuestSequence reference81 = ref span103[num]; + ref QuestSequence reference81 = ref span41[4]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; @@ -436459,16 +358938,13 @@ public static class AssemblyQuestLoader num = 1; List list110 = new List(num); CollectionsMarshal.SetCount(list110, num); - Span span110 = CollectionsMarshal.AsSpan(list110); - index = 0; - span110[index] = "liza"; + CollectionsMarshal.AsSpan(list110)[0] = "liza"; questRoot15.Author = list110; - index = 4; - List list111 = new List(index); - CollectionsMarshal.SetCount(list111, index); - Span span111 = CollectionsMarshal.AsSpan(list111); - num = 0; - ref QuestSequence reference82 = ref span111[num]; + num = 4; + List list111 = new List(num); + CollectionsMarshal.SetCount(list111, num); + Span span43 = CollectionsMarshal.AsSpan(list111); + ref QuestSequence reference82 = ref span43[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -436476,9 +358952,7 @@ public static class AssemblyQuestLoader num2 = 1; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - Span span112 = CollectionsMarshal.AsSpan(list112); - index2 = 0; - span112[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) + CollectionsMarshal.AsSpan(list112)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050884u, new Vector3(531.0597f, -142.49185f, 492.0271f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -436496,35 +358970,29 @@ public static class AssemblyQuestLoader }; obj77.Steps = list112; reference82 = obj77; - num++; - ref QuestSequence reference83 = ref span111[num]; + ref QuestSequence reference83 = ref span43[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list113 = new List(index2); - CollectionsMarshal.SetCount(list113, index2); - Span span113 = CollectionsMarshal.AsSpan(list113); - num2 = 0; - ref QuestStep reference84 = ref span113[num2]; + num2 = 1; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + ref QuestStep reference84 = ref CollectionsMarshal.AsSpan(list113)[0]; QuestStep obj79 = new QuestStep(EInteractionType.Combat, null, new Vector3(343.74197f, -154.60175f, 328.8051f), 1189) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list114 = new List(num4); - CollectionsMarshal.SetCount(list114, num4); - Span span114 = CollectionsMarshal.AsSpan(list114); - num3 = 0; - span114[num3] = 17673u; + num3 = 1; + List list114 = new List(num3); + CollectionsMarshal.SetCount(list114, num3); + CollectionsMarshal.AsSpan(list114)[0] = 17673u; obj79.KillEnemyDataIds = list114; reference84 = obj79; obj78.Steps = list113; reference83 = obj78; - num++; - ref QuestSequence reference85 = ref span111[num]; + ref QuestSequence reference85 = ref span43[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -436532,26 +359000,21 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.Interact, 1050885u, new Vector3(338.49072f, -155.05281f, 322.80444f), 1189) + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.Interact, 1050885u, new Vector3(338.49072f, -155.05281f, 322.80444f), 1189) { StopDistance = 7f }; obj80.Steps = list115; reference85 = obj80; - num++; - ref QuestSequence reference86 = ref span111[num]; + ref QuestSequence reference86 = ref span43[3]; QuestSequence obj81 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj81.Steps = list116; reference86 = obj81; questRoot15.QuestSequence = list111; @@ -436561,16 +359024,13 @@ public static class AssemblyQuestLoader num = 1; List list117 = new List(num); CollectionsMarshal.SetCount(list117, num); - Span span117 = CollectionsMarshal.AsSpan(list117); - index = 0; - span117[index] = "liza"; + CollectionsMarshal.AsSpan(list117)[0] = "liza"; questRoot16.Author = list117; - index = 4; - List list118 = new List(index); - CollectionsMarshal.SetCount(list118, index); - Span span118 = CollectionsMarshal.AsSpan(list118); - num = 0; - ref QuestSequence reference87 = ref span118[num]; + num = 4; + List list118 = new List(num); + CollectionsMarshal.SetCount(list118, num); + Span span44 = CollectionsMarshal.AsSpan(list118); + ref QuestSequence reference87 = ref span44[0]; QuestSequence obj82 = new QuestSequence { Sequence = 0 @@ -436578,9 +359038,7 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050888u, new Vector3(515.58704f, -146.73436f, 477.0122f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -436599,18 +359057,16 @@ public static class AssemblyQuestLoader }; obj82.Steps = list119; reference87 = obj82; - num++; - ref QuestSequence reference88 = ref span118[num]; + ref QuestSequence reference88 = ref span44[1]; QuestSequence obj83 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num2 = 0; - ref QuestStep reference89 = ref span120[num2]; + num2 = 3; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span45 = CollectionsMarshal.AsSpan(list120); + ref QuestStep reference89 = ref span45[0]; QuestStep obj84 = new QuestStep(EInteractionType.Combat, 2014147u, new Vector3(440.66528f, -150.77448f, 427.7256f), 1189) { Fly = true, @@ -436619,30 +359075,21 @@ public static class AssemblyQuestLoader num3 = 1; List list121 = new List(num3); CollectionsMarshal.SetCount(list121, num3); - Span span121 = CollectionsMarshal.AsSpan(list121); - num4 = 0; - span121[num4] = 17674u; + CollectionsMarshal.AsSpan(list121)[0] = 17674u; obj84.KillEnemyDataIds = list121; - 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); + 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); obj84.CompletionQuestVariablesFlags = list122; reference89 = obj84; - num2++; - ref QuestStep reference90 = ref span120[num2]; + ref QuestStep reference90 = ref span45[1]; QuestStep obj85 = new QuestStep(EInteractionType.Combat, 2014148u, new Vector3(395.4679f, -152.42242f, 372.7931f), 1189) { Fly = true, @@ -436651,30 +359098,21 @@ public static class AssemblyQuestLoader num3 = 1; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); - Span span123 = CollectionsMarshal.AsSpan(list123); - num4 = 0; - span123[num4] = 17674u; + CollectionsMarshal.AsSpan(list123)[0] = 17674u; obj85.KillEnemyDataIds = list123; - 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); + 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); obj85.CompletionQuestVariablesFlags = list124; reference90 = obj85; - num2++; - ref QuestStep reference91 = ref span120[num2]; + ref QuestStep reference91 = ref span45[2]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014149u, new Vector3(267.9026f, -160.05188f, 354.45166f), 1189) { Fly = true @@ -436682,25 +359120,18 @@ public static class AssemblyQuestLoader num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); - 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); + 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); obj86.CompletionQuestVariablesFlags = list125; reference91 = obj86; obj83.Steps = list120; reference88 = obj83; - num++; - ref QuestSequence reference92 = ref span118[num]; + ref QuestSequence reference92 = ref span44[2]; QuestSequence obj87 = new QuestSequence { Sequence = 2 @@ -436708,26 +359139,21 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.Interact, 2014150u, new Vector3(236.95728f, -167.52887f, 307.97278f), 1189) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.Interact, 2014150u, new Vector3(236.95728f, -167.52887f, 307.97278f), 1189) { Fly = true }; obj87.Steps = list126; reference92 = obj87; - num++; - ref QuestSequence reference93 = ref span118[num]; + ref QuestSequence reference93 = ref span44[3]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -436742,16 +359168,13 @@ public static class AssemblyQuestLoader num = 1; List list128 = new List(num); CollectionsMarshal.SetCount(list128, num); - Span span128 = CollectionsMarshal.AsSpan(list128); - index = 0; - span128[index] = "liza"; + CollectionsMarshal.AsSpan(list128)[0] = "liza"; questRoot17.Author = list128; - index = 4; - List list129 = new List(index); - CollectionsMarshal.SetCount(list129, index); - Span span129 = CollectionsMarshal.AsSpan(list129); - num = 0; - ref QuestSequence reference94 = ref span129[num]; + num = 4; + List list129 = new List(num); + CollectionsMarshal.SetCount(list129, num); + Span span49 = CollectionsMarshal.AsSpan(list129); + ref QuestSequence reference94 = ref span49[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 @@ -436759,30 +359182,24 @@ public static class AssemblyQuestLoader num2 = 1; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - span130[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + CollectionsMarshal.AsSpan(list130)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj89.Steps = list130; reference94 = obj89; - num++; - ref QuestSequence reference95 = ref span129[num]; + ref QuestSequence reference95 = ref span49[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj90.Steps = list131; reference95 = obj90; - num++; - ref QuestSequence reference96 = ref span129[num]; + ref QuestSequence reference96 = ref span49[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 @@ -436790,28 +359207,23 @@ public static class AssemblyQuestLoader num2 = 2; 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(-61.729744f, -212.69492f, 523.0088f), 1189) + Span span50 = CollectionsMarshal.AsSpan(list132); + span50[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-61.729744f, -212.69492f, 523.0088f), 1189) { Fly = true }; - index2++; - span132[index2] = new QuestStep(EInteractionType.Interact, 2014151u, new Vector3(-60.95984f, -210.83392f, 522.02637f), 1189); + span50[1] = new QuestStep(EInteractionType.Interact, 2014151u, new Vector3(-60.95984f, -210.83392f, 522.02637f), 1189); obj91.Steps = list132; reference96 = obj91; - num++; - ref QuestSequence reference97 = ref span129[num]; + ref QuestSequence reference97 = ref span49[3]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -436826,16 +359238,13 @@ public static class AssemblyQuestLoader num = 1; List list134 = new List(num); CollectionsMarshal.SetCount(list134, num); - Span span134 = CollectionsMarshal.AsSpan(list134); - index = 0; - span134[index] = "liza"; + CollectionsMarshal.AsSpan(list134)[0] = "liza"; questRoot18.Author = list134; - index = 3; - List list135 = new List(index); - CollectionsMarshal.SetCount(list135, index); - Span span135 = CollectionsMarshal.AsSpan(list135); - num = 0; - ref QuestSequence reference98 = ref span135[num]; + num = 3; + List list135 = new List(num); + CollectionsMarshal.SetCount(list135, num); + Span span51 = CollectionsMarshal.AsSpan(list135); + ref QuestSequence reference98 = ref span51[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -436843,49 +359252,38 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189); obj93.Steps = list136; reference98 = obj93; - num++; - ref QuestSequence reference99 = ref span135[num]; + ref QuestSequence reference99 = ref span51[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list137 = new List(index2); - CollectionsMarshal.SetCount(list137, index2); - Span span137 = CollectionsMarshal.AsSpan(list137); - num2 = 0; - ref QuestStep reference100 = ref span137[num2]; + num2 = 2; + List list137 = new List(num2); + CollectionsMarshal.SetCount(list137, num2); + Span span52 = CollectionsMarshal.AsSpan(list137); + ref QuestStep reference100 = ref span52[0]; QuestStep obj95 = new QuestStep(EInteractionType.UseItem, 2014153u, new Vector3(500.5111f, -150.04199f, 704.12744f), 1189) { Fly = true, ItemId = 2003624u, GroundTarget = true }; - 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); + 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); obj95.CompletionQuestVariablesFlags = list138; reference100 = obj95; - num2++; - ref QuestStep reference101 = ref span137[num2]; + ref QuestStep reference101 = ref span52[1]; QuestStep obj96 = new QuestStep(EInteractionType.UseItem, 2014152u, new Vector3(486.90015f, -150.04199f, 355.8556f), 1189) { Fly = true, @@ -436895,25 +359293,18 @@ public static class AssemblyQuestLoader num3 = 6; List list139 = new List(num3); CollectionsMarshal.SetCount(list139, num3); - 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); + 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); obj96.CompletionQuestVariablesFlags = list139; reference101 = obj96; obj94.Steps = list137; reference99 = obj94; - num++; - ref QuestSequence reference102 = ref span135[num]; + ref QuestSequence reference102 = ref span51[2]; QuestSequence obj97 = new QuestSequence { Sequence = byte.MaxValue @@ -436921,9 +359312,7 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -436938,30 +359327,24 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot19.Author = list141; - index = 11; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference103 = ref span142[num]; + num = 11; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span55 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference103 = ref span55[0]; QuestSequence obj98 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj98.Steps = list143; reference103 = obj98; - num++; - ref QuestSequence reference104 = ref span142[num]; + ref QuestSequence reference104 = ref span55[1]; QuestSequence obj99 = new QuestSequence { Sequence = 1 @@ -436969,19 +359352,15 @@ public static class AssemblyQuestLoader num2 = 1; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - ref QuestStep reference105 = ref span144[index2]; + ref QuestStep reference105 = ref CollectionsMarshal.AsSpan(list144)[0]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1050897u, new Vector3(755.94714f, -132.59648f, 505.94324f), 1189) { Fly = true }; - num4 = 1; - List list145 = new List(num4); - CollectionsMarshal.SetCount(list145, num4); - Span span145 = CollectionsMarshal.AsSpan(list145); - num3 = 0; - span145[num3] = new DialogueChoice + num3 = 1; + List list145 = new List(num3); + CollectionsMarshal.SetCount(list145, num3); + CollectionsMarshal.AsSpan(list145)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZD401_05118_Q1_000_000"), @@ -436991,25 +359370,21 @@ public static class AssemblyQuestLoader reference105 = obj100; obj99.Steps = list144; reference104 = obj99; - num++; - ref QuestSequence reference106 = ref span142[num]; + ref QuestSequence reference106 = ref span55[2]; QuestSequence obj101 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj101.Steps = list146; reference106 = obj101; - num++; - ref QuestSequence reference107 = ref span142[num]; + ref QuestSequence reference107 = ref span55[3]; QuestSequence obj102 = new QuestSequence { Sequence = 3 @@ -437017,9 +359392,8 @@ public static class AssemblyQuestLoader num2 = 2; List list147 = new List(num2); CollectionsMarshal.SetCount(list147, num2); - Span span147 = CollectionsMarshal.AsSpan(list147); - index2 = 0; - ref QuestStep reference108 = ref span147[index2]; + Span span56 = CollectionsMarshal.AsSpan(list147); + ref QuestStep reference108 = ref span56[0]; QuestStep obj103 = new QuestStep(EInteractionType.Interact, 1050901u, new Vector3(627.25244f, -137.174f, 591.8517f), 1189) { Fly = true @@ -437027,63 +359401,46 @@ public static class AssemblyQuestLoader num3 = 6; List list148 = new List(num3); CollectionsMarshal.SetCount(list148, num3); - 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); + 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); obj103.CompletionQuestVariablesFlags = list148; reference108 = obj103; - index2++; - ref QuestStep reference109 = ref span147[index2]; + ref QuestStep reference109 = ref span56[1]; QuestStep obj104 = new QuestStep(EInteractionType.Interact, 1050900u, new Vector3(575.55493f, -137.174f, 540.0929f), 1189) { Fly = true }; - 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); + 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); obj104.CompletionQuestVariablesFlags = list149; reference109 = obj104; obj102.Steps = list147; reference107 = obj102; - num++; - ref QuestSequence reference110 = ref span142[num]; + ref QuestSequence reference110 = ref span55[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj105.Steps = list150; reference110 = obj105; - num++; - ref QuestSequence reference111 = ref span142[num]; + ref QuestSequence reference111 = ref span55[5]; QuestSequence obj106 = new QuestSequence { Sequence = 5 @@ -437091,33 +359448,27 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.Interact, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) { Fly = true }; obj106.Steps = list151; reference111 = obj106; - num++; - ref QuestSequence reference112 = ref span142[num]; + ref QuestSequence reference112 = ref span55[6]; QuestSequence obj107 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj107.Steps = list152; reference112 = obj107; - num++; - ref QuestSequence reference113 = ref span142[num]; + ref QuestSequence reference113 = ref span55[7]; QuestSequence obj108 = new QuestSequence { Sequence = 7 @@ -437125,27 +359476,22 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.UseItem, 2014154u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.UseItem, 2014154u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) { Fly = true, ItemId = 2003625u }; obj108.Steps = list153; reference113 = obj108; - num++; - ref QuestSequence reference114 = ref span142[num]; + ref QuestSequence reference114 = ref span55[8]; QuestSequence obj109 = new QuestSequence { Sequence = 8 }; - index2 = 1; - List list154 = new List(index2); - CollectionsMarshal.SetCount(list154, index2); - Span span154 = CollectionsMarshal.AsSpan(list154); - num2 = 0; - ref QuestStep reference115 = ref span154[num2]; + num2 = 1; + List list154 = new List(num2); + CollectionsMarshal.SetCount(list154, num2); + ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list154)[0]; QuestStep obj110 = new QuestStep(EInteractionType.Combat, 2014248u, new Vector3(255.9701f, -150.68292f, 807.64465f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -437153,15 +359499,12 @@ public static class AssemblyQuestLoader num3 = 1; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num4 = 0; - span155[num4] = 17675u; + CollectionsMarshal.AsSpan(list155)[0] = 17675u; obj110.KillEnemyDataIds = list155; reference115 = obj110; obj109.Steps = list154; reference114 = obj109; - num++; - ref QuestSequence reference116 = ref span142[num]; + ref QuestSequence reference116 = ref span55[9]; QuestSequence obj111 = new QuestSequence { Sequence = 9 @@ -437169,26 +359512,21 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1050904u, new Vector3(263.84375f, -157.31726f, 738.6129f), 1189) { Fly = true }; obj111.Steps = list156; reference116 = obj111; - num++; - ref QuestSequence reference117 = ref span142[num]; + ref QuestSequence reference117 = ref span55[10]; QuestSequence obj112 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -437202,16 +359540,13 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "liza"; + CollectionsMarshal.AsSpan(list158)[0] = "liza"; questRoot20.Author = list158; - index = 5; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference118 = ref span159[num]; + num = 5; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span59 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference118 = ref span59[0]; QuestSequence obj113 = new QuestSequence { Sequence = 0 @@ -437219,23 +359554,18 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); obj113.Steps = list160; reference118 = obj113; - num++; - ref QuestSequence reference119 = ref span159[num]; + ref QuestSequence reference119 = ref span59[1]; QuestSequence obj114 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -437246,8 +359576,7 @@ public static class AssemblyQuestLoader }; obj114.Steps = list161; reference119 = obj114; - num++; - ref QuestSequence reference120 = ref span159[num]; + ref QuestSequence reference120 = ref span59[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 @@ -437255,30 +359584,24 @@ public static class AssemblyQuestLoader num2 = 1; List list162 = new List(num2); CollectionsMarshal.SetCount(list162, num2); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = new QuestStep(EInteractionType.Interact, 2014065u, new Vector3(250.04956f, 16.281311f, 744.3502f), 1190) + CollectionsMarshal.AsSpan(list162)[0] = new QuestStep(EInteractionType.Interact, 2014065u, new Vector3(250.04956f, 16.281311f, 744.3502f), 1190) { StopDistance = 4f }; obj115.Steps = list162; reference120 = obj115; - num++; - ref QuestSequence reference121 = ref span159[num]; + ref QuestSequence reference121 = ref span59[3]; QuestSequence obj116 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj116.Steps = list163; reference121 = obj116; - num++; - ref QuestSequence reference122 = ref span159[num]; + ref QuestSequence reference122 = ref span59[4]; QuestSequence obj117 = new QuestSequence { Sequence = byte.MaxValue @@ -437286,9 +359609,7 @@ public static class AssemblyQuestLoader num2 = 1; List list164 = new List(num2); CollectionsMarshal.SetCount(list164, num2); - Span span164 = CollectionsMarshal.AsSpan(list164); - index2 = 0; - span164[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); + CollectionsMarshal.AsSpan(list164)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); obj117.Steps = list164; reference122 = obj117; questRoot20.QuestSequence = list159; @@ -437298,30 +359619,24 @@ public static class AssemblyQuestLoader num = 1; List list165 = new List(num); CollectionsMarshal.SetCount(list165, num); - Span span165 = CollectionsMarshal.AsSpan(list165); - index = 0; - span165[index] = "liza"; + CollectionsMarshal.AsSpan(list165)[0] = "liza"; questRoot21.Author = list165; - index = 4; - List list166 = new List(index); - CollectionsMarshal.SetCount(list166, index); - Span span166 = CollectionsMarshal.AsSpan(list166); - num = 0; - ref QuestSequence reference123 = ref span166[num]; + num = 4; + List list166 = new List(num); + CollectionsMarshal.SetCount(list166, num); + Span span60 = CollectionsMarshal.AsSpan(list166); + ref QuestSequence reference123 = ref span60[0]; QuestSequence obj118 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj118.Steps = list167; reference123 = obj118; - num++; - ref QuestSequence reference124 = ref span166[num]; + ref QuestSequence reference124 = ref span60[1]; QuestSequence obj119 = new QuestSequence { Sequence = 1 @@ -437329,47 +359644,36 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.Interact, 2014074u, new Vector3(323.44543f, -0.6867676f, 488.2428f), 1190); + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 2014074u, new Vector3(323.44543f, -0.6867676f, 488.2428f), 1190); obj119.Steps = list168; reference124 = obj119; - num++; - ref QuestSequence reference125 = ref span166[num]; + ref QuestSequence reference125 = ref span60[2]; QuestSequence obj120 = new QuestSequence { Sequence = 2 }; - index2 = 5; - List list169 = new List(index2); - CollectionsMarshal.SetCount(list169, index2); - Span span169 = CollectionsMarshal.AsSpan(list169); - num2 = 0; - ref QuestStep reference126 = ref span169[num2]; + num2 = 5; + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + Span span61 = CollectionsMarshal.AsSpan(list169); + ref QuestStep reference126 = ref span61[0]; QuestStep obj121 = new QuestStep(EInteractionType.UseItem, 1050639u, new Vector3(377.92017f, -0.2627951f, 432.48633f), 1190) { ItemId = 2003580u }; - 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); + 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); obj121.CompletionQuestVariablesFlags = list170; reference126 = obj121; - num2++; - ref QuestStep reference127 = ref span169[num2]; + ref QuestStep reference127 = ref span61[1]; QuestStep obj122 = new QuestStep(EInteractionType.UseItem, 1050638u, new Vector3(368.42908f, -0.26279587f, 419.69934f), 1190) { ItemId = 2003580u @@ -437377,56 +359681,40 @@ public static class AssemblyQuestLoader num3 = 6; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - 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); + 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); obj122.CompletionQuestVariablesFlags = list171; reference127 = obj122; - 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) + 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) { DisableNavmesh = true }; - num2++; - ref QuestStep reference128 = ref span169[num2]; + ref QuestStep reference128 = ref span61[4]; QuestStep obj123 = new QuestStep(EInteractionType.UseItem, 1050640u, new Vector3(377.03516f, 6.07724f, 423.02576f), 1190) { ItemId = 2003580u }; - 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); + 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); obj123.CompletionQuestVariablesFlags = list172; reference128 = obj123; obj120.Steps = list169; reference125 = obj120; - num++; - ref QuestSequence reference129 = ref span166[num]; + ref QuestSequence reference129 = ref span60[3]; QuestSequence obj124 = new QuestSequence { Sequence = byte.MaxValue @@ -437434,16 +359722,13 @@ public static class AssemblyQuestLoader num2 = 3; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - 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) + 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) { DisableNavmesh = true }; - index2++; - span173[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); + span65[2] = new QuestStep(EInteractionType.CompleteQuest, 1049285u, new Vector3(372.70154f, -0.26279598f, 425.55872f), 1190); obj124.Steps = list173; reference129 = obj124; questRoot21.QuestSequence = list166; @@ -437453,30 +359738,24 @@ public static class AssemblyQuestLoader num = 1; List list174 = new List(num); CollectionsMarshal.SetCount(list174, num); - Span span174 = CollectionsMarshal.AsSpan(list174); - index = 0; - span174[index] = "liza"; + CollectionsMarshal.AsSpan(list174)[0] = "liza"; questRoot22.Author = list174; - index = 3; - List list175 = new List(index); - CollectionsMarshal.SetCount(list175, index); - Span span175 = CollectionsMarshal.AsSpan(list175); - num = 0; - ref QuestSequence reference130 = ref span175[num]; + num = 3; + List list175 = new List(num); + CollectionsMarshal.SetCount(list175, num); + Span span66 = CollectionsMarshal.AsSpan(list175); + ref QuestSequence reference130 = ref span66[0]; QuestSequence obj125 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj125.Steps = list176; reference130 = obj125; - num++; - ref QuestSequence reference131 = ref span175[num]; + ref QuestSequence reference131 = ref span66[1]; QuestSequence obj126 = new QuestSequence { Sequence = 1 @@ -437484,9 +359763,8 @@ public static class AssemblyQuestLoader num2 = 4; List list177 = new List(num2); CollectionsMarshal.SetCount(list177, num2); - Span span177 = CollectionsMarshal.AsSpan(list177); - index2 = 0; - ref QuestStep reference132 = ref span177[index2]; + Span span67 = CollectionsMarshal.AsSpan(list177); + ref QuestStep reference132 = ref span67[0]; QuestStep obj127 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(363.75098f, -0.25793338f, 435.93985f), 1190) { Fly = true @@ -437496,107 +359774,77 @@ public static class AssemblyQuestLoader num3 = 6; List list178 = new List(num3); CollectionsMarshal.SetCount(list178, num3); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list178; skipConditions5.StepIf = skipStepConditions5; obj127.SkipConditions = skipConditions5; reference132 = obj127; - index2++; - ref QuestStep reference133 = ref span177[index2]; + ref QuestStep reference133 = ref span67[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list179; reference133 = questStep6; - index2++; - ref QuestStep reference134 = ref span177[index2]; + ref QuestStep reference134 = ref span67[2]; 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 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list180; skipConditions6.StepIf = skipStepConditions6; questStep7.SkipConditions = skipConditions6; reference134 = questStep7; - index2++; - ref QuestStep reference135 = ref span177[index2]; + ref QuestStep reference135 = ref span67[3]; QuestStep obj128 = new QuestStep(EInteractionType.Interact, 1049275u, new Vector3(267.44482f, 10.96981f, 659.4796f), 1190) { Fly = true }; - 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); + 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); obj128.CompletionQuestVariablesFlags = list181; reference135 = obj128; obj126.Steps = list177; reference131 = obj126; - num++; - ref QuestSequence reference136 = ref span175[num]; + ref QuestSequence reference136 = ref span66[2]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -437609,16 +359857,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "liza"; + CollectionsMarshal.AsSpan(list183)[0] = "liza"; questRoot23.Author = list183; - index = 4; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference137 = ref span184[num]; + num = 4; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span72 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference137 = ref span72[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -437626,31 +359871,25 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190); + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049286u, new Vector3(347.46313f, -2.0447416f, 397.177f), 1190); obj130.Steps = list185; reference137 = obj130; - num++; - ref QuestSequence reference138 = ref span184[num]; + ref QuestSequence reference138 = ref span72[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, ItemId = 2003581u }; obj131.Steps = list186; reference138 = obj131; - num++; - ref QuestSequence reference139 = ref span184[num]; + ref QuestSequence reference139 = ref span72[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 @@ -437658,9 +359897,7 @@ public static class AssemblyQuestLoader num2 = 1; List list187 = new List(num2); CollectionsMarshal.SetCount(list187, num2); - Span span187 = CollectionsMarshal.AsSpan(list187); - index2 = 0; - ref QuestStep reference140 = ref span187[index2]; + ref QuestStep reference140 = ref CollectionsMarshal.AsSpan(list187)[0]; QuestStep obj133 = new QuestStep(EInteractionType.Combat, 2014044u, new Vector3(415.7931f, 7.4005737f, 229.0531f), 1190) { EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -437668,25 +359905,20 @@ public static class AssemblyQuestLoader num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span188 = CollectionsMarshal.AsSpan(list188); - num4 = 0; - span188[num4] = 17733u; + CollectionsMarshal.AsSpan(list188)[0] = 17733u; obj133.KillEnemyDataIds = list188; reference140 = obj133; obj132.Steps = list187; reference139 = obj132; - num++; - ref QuestSequence reference141 = ref span184[num]; + ref QuestSequence reference141 = ref span72[3]; QuestSequence obj134 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -437699,16 +359931,13 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "liza"; + CollectionsMarshal.AsSpan(list190)[0] = "liza"; questRoot24.Author = list190; - index = 7; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference142 = ref span191[num]; + num = 7; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span73 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference142 = ref span73[0]; QuestSequence obj135 = new QuestSequence { Sequence = 0 @@ -437716,30 +359945,24 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj135.Steps = list192; reference142 = obj135; - num++; - ref QuestSequence reference143 = ref span191[num]; + ref QuestSequence reference143 = ref span73[1]; QuestSequence obj136 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Emote = EEmote.Pet }; obj136.Steps = list193; reference143 = obj136; - num++; - ref QuestSequence reference144 = ref span191[num]; + ref QuestSequence reference144 = ref span73[2]; QuestSequence obj137 = new QuestSequence { Sequence = 2 @@ -437747,27 +359970,21 @@ public static class AssemblyQuestLoader num2 = 1; List list194 = new List(num2); CollectionsMarshal.SetCount(list194, num2); - Span span194 = CollectionsMarshal.AsSpan(list194); - index2 = 0; - span194[index2] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); + CollectionsMarshal.AsSpan(list194)[0] = new QuestStep(EInteractionType.Interact, 1049288u, new Vector3(333.2417f, -1.1408321f, 478.47717f), 1190); obj137.Steps = list194; reference144 = obj137; - num++; - ref QuestSequence reference145 = ref span191[num]; + ref QuestSequence reference145 = ref span73[3]; QuestSequence obj138 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj138.Steps = list195; reference145 = obj138; - num++; - ref QuestSequence reference146 = ref span191[num]; + ref QuestSequence reference146 = ref span73[4]; QuestSequence obj139 = new QuestSequence { Sequence = 4 @@ -437775,27 +359992,21 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.Interact, 2014045u, new Vector3(341.1764f, 0.1373291f, 457.969f), 1190); + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.Interact, 2014045u, new Vector3(341.1764f, 0.1373291f, 457.969f), 1190); obj139.Steps = list196; reference146 = obj139; - num++; - ref QuestSequence reference147 = ref span191[num]; + ref QuestSequence reference147 = ref span73[5]; QuestSequence obj140 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj140.Steps = list197; reference147 = obj140; - num++; - ref QuestSequence reference148 = ref span191[num]; + ref QuestSequence reference148 = ref span73[6]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -437803,9 +360014,7 @@ public static class AssemblyQuestLoader num2 = 1; List list198 = new List(num2); CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - span198[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); + CollectionsMarshal.AsSpan(list198)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049287u, new Vector3(342.61072f, -1.0227159f, 482.2307f), 1190); obj141.Steps = list198; reference148 = obj141; questRoot24.QuestSequence = list191; @@ -437815,30 +360024,24 @@ public static class AssemblyQuestLoader num = 1; List list199 = new List(num); CollectionsMarshal.SetCount(list199, num); - Span span199 = CollectionsMarshal.AsSpan(list199); - index = 0; - span199[index] = "liza"; + CollectionsMarshal.AsSpan(list199)[0] = "liza"; questRoot25.Author = list199; - index = 4; - List list200 = new List(index); - CollectionsMarshal.SetCount(list200, index); - Span span200 = CollectionsMarshal.AsSpan(list200); - num = 0; - ref QuestSequence reference149 = ref span200[num]; + num = 4; + List list200 = new List(num); + CollectionsMarshal.SetCount(list200, num); + Span span74 = CollectionsMarshal.AsSpan(list200); + ref QuestSequence reference149 = ref span74[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj142.Steps = list201; reference149 = obj142; - num++; - ref QuestSequence reference150 = ref span200[num]; + ref QuestSequence reference150 = ref span74[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -437846,58 +360049,44 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190) + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1049284u, new Vector3(378.43884f, -0.2627956f, 425.55872f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj143.Steps = list202; reference150 = obj143; - num++; - ref QuestSequence reference151 = ref span200[num]; + ref QuestSequence reference151 = ref span74[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - ref QuestStep reference152 = ref span203[num2]; + ref QuestStep reference152 = ref span75[2]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1050718u, new Vector3(365.5603f, 5.957231f, 424.58215f), 1190); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list204; reference152 = questStep8; - num2++; - span203[num2] = new QuestStep(EInteractionType.Interact, 1050719u, new Vector3(384.51196f, -1.5122339f, 383.6881f), 1190); + span75[3] = new QuestStep(EInteractionType.Interact, 1050719u, new Vector3(384.51196f, -1.5122339f, 383.6881f), 1190); obj144.Steps = list203; reference151 = obj144; - num++; - ref QuestSequence reference153 = ref span200[num]; + ref QuestSequence reference153 = ref span74[3]; QuestSequence obj145 = new QuestSequence { Sequence = byte.MaxValue @@ -437905,9 +360094,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049407u, new Vector3(267.01758f, 15.999971f, 770.8705f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -437925,30 +360112,24 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "liza"; + CollectionsMarshal.AsSpan(list206)[0] = "liza"; questRoot26.Author = list206; - index = 3; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference154 = ref span207[num]; + num = 3; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span77 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference154 = ref span77[0]; QuestSequence obj146 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj146.Steps = list208; reference154 = obj146; - num++; - ref QuestSequence reference155 = ref span207[num]; + ref QuestSequence reference155 = ref span77[1]; QuestSequence obj147 = new QuestSequence { Sequence = 1 @@ -437956,9 +360137,7 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - ref QuestStep reference156 = ref span209[index2]; + ref QuestStep reference156 = ref CollectionsMarshal.AsSpan(list209)[0]; QuestStep obj148 = new QuestStep(EInteractionType.Combat, 2014075u, new Vector3(-446.06702f, 17.868286f, 34.286987f), 1190) { Fly = true, @@ -437967,25 +360146,20 @@ public static class AssemblyQuestLoader num3 = 1; List list210 = new List(num3); CollectionsMarshal.SetCount(list210, num3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num4 = 0; - span210[num4] = 17734u; + CollectionsMarshal.AsSpan(list210)[0] = 17734u; obj148.KillEnemyDataIds = list210; reference156 = obj148; obj147.Steps = list209; reference155 = obj147; - num++; - ref QuestSequence reference157 = ref span207[num]; + ref QuestSequence reference157 = ref span77[2]; QuestSequence obj149 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -437998,16 +360172,13 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - Span span212 = CollectionsMarshal.AsSpan(list212); - index = 0; - span212[index] = "liza"; + CollectionsMarshal.AsSpan(list212)[0] = "liza"; questRoot27.Author = list212; - index = 3; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref QuestSequence reference158 = ref span213[num]; + num = 3; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span78 = CollectionsMarshal.AsSpan(list213); + ref QuestSequence reference158 = ref span78[0]; QuestSequence obj150 = new QuestSequence { Sequence = 0 @@ -438015,30 +360186,24 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); obj150.Steps = list214; reference158 = obj150; - num++; - ref QuestSequence reference159 = ref span213[num]; + ref QuestSequence reference159 = ref span78[1]; QuestSequence obj151 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Comment = "Click (from left to right) pump, middle of the connecting pipes, barrels" }; obj151.Steps = list215; reference159 = obj151; - num++; - ref QuestSequence reference160 = ref span213[num]; + ref QuestSequence reference160 = ref span78[2]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue @@ -438046,30 +360211,25 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - ref QuestStep reference161 = ref span216[index2]; + ref QuestStep reference161 = ref CollectionsMarshal.AsSpan(list216)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.CompleteQuest, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190); - num4 = 3; - List list217 = new List(num4); - CollectionsMarshal.SetCount(list217, num4); - Span span217 = CollectionsMarshal.AsSpan(list217); - num3 = 0; - span217[num3] = new DialogueChoice + num3 = 3; + List list217 = new List(num3); + CollectionsMarshal.SetCount(list217, num3); + Span span79 = CollectionsMarshal.AsSpan(list217); + span79[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZE008_05126_A1_000_001") }; - num3++; - span217[num3] = new DialogueChoice + span79[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZE008_05126_A1_000_002") }; - num3++; - span217[num3] = new DialogueChoice + span79[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE008_05126_Q1_000_000"), @@ -438086,30 +360246,24 @@ public static class AssemblyQuestLoader num = 1; List list218 = new List(num); CollectionsMarshal.SetCount(list218, num); - Span span218 = CollectionsMarshal.AsSpan(list218); - index = 0; - span218[index] = "liza"; + CollectionsMarshal.AsSpan(list218)[0] = "liza"; questRoot28.Author = list218; - index = 5; - List list219 = new List(index); - CollectionsMarshal.SetCount(list219, index); - Span span219 = CollectionsMarshal.AsSpan(list219); - num = 0; - ref QuestSequence reference162 = ref span219[num]; + num = 5; + List list219 = new List(num); + CollectionsMarshal.SetCount(list219, num); + Span span80 = CollectionsMarshal.AsSpan(list219); + ref QuestSequence reference162 = ref span80[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj153.Steps = list220; reference162 = obj153; - num++; - ref QuestSequence reference163 = ref span219[num]; + ref QuestSequence reference163 = ref span80[1]; QuestSequence obj154 = new QuestSequence { Sequence = 1 @@ -438117,30 +360271,24 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.Interact, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.Interact, 1050641u, new Vector3(-398.6725f, 21.668707f, -168.23071f), 1190); obj154.Steps = list221; reference163 = obj154; - num++; - ref QuestSequence reference164 = ref span219[num]; + ref QuestSequence reference164 = ref span80[2]; QuestSequence obj155 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj155.Steps = list222; reference164 = obj155; - num++; - ref QuestSequence reference165 = ref span219[num]; + ref QuestSequence reference165 = ref span80[3]; QuestSequence obj156 = new QuestSequence { Sequence = 3 @@ -438148,26 +360296,21 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Emote, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Emote, 1050642u, new Vector3(-290.82172f, 16.40523f, -51.041504f), 1190) { Emote = EEmote.Dance }; obj156.Steps = list223; reference165 = obj156; - num++; - ref QuestSequence reference166 = ref span219[num]; + ref QuestSequence reference166 = ref span80[4]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -438180,16 +360323,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "liza"; + CollectionsMarshal.AsSpan(list225)[0] = "liza"; questRoot29.Author = list225; - index = 4; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference167 = ref span226[num]; + num = 4; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span81 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference167 = ref span81[0]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -438197,30 +360337,24 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050643u, new Vector3(-250.56848f, 22.956224f, -140.30676f), 1190); + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050643u, new Vector3(-250.56848f, 22.956224f, -140.30676f), 1190); obj158.Steps = list227; reference167 = obj158; - num++; - ref QuestSequence reference168 = ref span226[num]; + ref QuestSequence reference168 = ref span81[1]; QuestSequence obj159 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj159.Steps = list228; reference168 = obj159; - num++; - ref QuestSequence reference169 = ref span226[num]; + ref QuestSequence reference169 = ref span81[2]; QuestSequence obj160 = new QuestSequence { Sequence = 2 @@ -438228,27 +360362,22 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Emote, 2014050u, new Vector3(-527.1229f, 29.526123f, -175.64667f), 1190) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.Emote, 2014050u, new Vector3(-527.1229f, 29.526123f, -175.64667f), 1190) { StopDistance = 4f, Emote = EEmote.Respect }; obj160.Steps = list229; reference169 = obj160; - num++; - ref QuestSequence reference170 = ref span226[num]; + ref QuestSequence reference170 = ref span81[3]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj161.Steps = list230; reference170 = obj161; questRoot29.QuestSequence = list226; @@ -438258,16 +360387,13 @@ public static class AssemblyQuestLoader num = 1; List list231 = new List(num); CollectionsMarshal.SetCount(list231, num); - Span span231 = CollectionsMarshal.AsSpan(list231); - index = 0; - span231[index] = "liza"; + CollectionsMarshal.AsSpan(list231)[0] = "liza"; questRoot30.Author = list231; - index = 3; - List list232 = new List(index); - CollectionsMarshal.SetCount(list232, index); - Span span232 = CollectionsMarshal.AsSpan(list232); - num = 0; - ref QuestSequence reference171 = ref span232[num]; + num = 3; + List list232 = new List(num); + CollectionsMarshal.SetCount(list232, num); + Span span82 = CollectionsMarshal.AsSpan(list232); + ref QuestSequence reference171 = ref span82[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -438275,30 +360401,24 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - span233[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190); + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190); obj162.Steps = list233; reference171 = obj162; - num++; - ref QuestSequence reference172 = ref span232[num]; + ref QuestSequence reference172 = ref span82[1]; QuestSequence obj163 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj163.Steps = list234; reference172 = obj163; - num++; - ref QuestSequence reference173 = ref span232[num]; + ref QuestSequence reference173 = ref span82[2]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue @@ -438306,9 +360426,7 @@ public static class AssemblyQuestLoader num2 = 1; List list235 = new List(num2); CollectionsMarshal.SetCount(list235, num2); - Span span235 = CollectionsMarshal.AsSpan(list235); - index2 = 0; - span235[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190) + CollectionsMarshal.AsSpan(list235)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049375u, new Vector3(-318.98987f, 18.789532f, -143.26697f), 1190) { Fly = true }; @@ -438321,30 +360439,24 @@ public static class AssemblyQuestLoader num = 1; List list236 = new List(num); CollectionsMarshal.SetCount(list236, num); - Span span236 = CollectionsMarshal.AsSpan(list236); - index = 0; - span236[index] = "liza"; + CollectionsMarshal.AsSpan(list236)[0] = "liza"; questRoot31.Author = list236; - index = 3; - List list237 = new List(index); - CollectionsMarshal.SetCount(list237, index); - Span span237 = CollectionsMarshal.AsSpan(list237); - num = 0; - ref QuestSequence reference174 = ref span237[num]; + num = 3; + List list237 = new List(num); + CollectionsMarshal.SetCount(list237, num); + Span span83 = CollectionsMarshal.AsSpan(list237); + ref QuestSequence reference174 = ref span83[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj165.Steps = list238; reference174 = obj165; - num++; - ref QuestSequence reference175 = ref span237[num]; + ref QuestSequence reference175 = ref span83[1]; QuestSequence obj166 = new QuestSequence { Sequence = 1 @@ -438352,30 +360464,25 @@ public static class AssemblyQuestLoader num2 = 2; List list239 = new List(num2); CollectionsMarshal.SetCount(list239, num2); - Span span239 = CollectionsMarshal.AsSpan(list239); - index2 = 0; - span239[index2] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013958u, new Vector3(-620.3861f, -9.079163f, 323.3844f), 1190) + Span span84 = CollectionsMarshal.AsSpan(list239); + span84[0] = new QuestStep(EInteractionType.AttuneAetherCurrent, 2013958u, new Vector3(-620.3861f, -9.079163f, 323.3844f), 1190) { AetherCurrentId = 2818455u }; - index2++; - span239[index2] = new QuestStep(EInteractionType.Interact, 1050645u, new Vector3(-650.0496f, -9.854074f, 327.26013f), 1190); + span84[1] = new QuestStep(EInteractionType.Interact, 1050645u, new Vector3(-650.0496f, -9.854074f, 327.26013f), 1190); obj166.Steps = list239; reference175 = obj166; - num++; - ref QuestSequence reference176 = ref span237[num]; + ref QuestSequence reference176 = ref span83[2]; QuestSequence obj167 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj167.Steps = list240; reference176 = obj167; questRoot31.QuestSequence = list237; @@ -438385,16 +360492,13 @@ public static class AssemblyQuestLoader num = 1; List list241 = new List(num); CollectionsMarshal.SetCount(list241, num); - Span span241 = CollectionsMarshal.AsSpan(list241); - index = 0; - span241[index] = "liza"; + CollectionsMarshal.AsSpan(list241)[0] = "liza"; questRoot32.Author = list241; - index = 4; - List list242 = new List(index); - CollectionsMarshal.SetCount(list242, index); - Span span242 = CollectionsMarshal.AsSpan(list242); - num = 0; - ref QuestSequence reference177 = ref span242[num]; + num = 4; + List list242 = new List(num); + CollectionsMarshal.SetCount(list242, num); + Span span86 = CollectionsMarshal.AsSpan(list242); + ref QuestSequence reference177 = ref span86[0]; QuestSequence obj168 = new QuestSequence { Sequence = 0 @@ -438402,23 +360506,18 @@ public static class AssemblyQuestLoader num2 = 1; List list243 = new List(num2); CollectionsMarshal.SetCount(list243, num2); - Span span243 = CollectionsMarshal.AsSpan(list243); - index2 = 0; - span243[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050646u, new Vector3(-150.68292f, -2.4235957f, 408.43823f), 1190); + CollectionsMarshal.AsSpan(list243)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050646u, new Vector3(-150.68292f, -2.4235957f, 408.43823f), 1190); obj168.Steps = list243; reference177 = obj168; - num++; - ref QuestSequence reference178 = ref span242[num]; + ref QuestSequence reference178 = ref span86[1]; QuestSequence obj169 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list244 = new List(index2); - CollectionsMarshal.SetCount(list244, index2); - Span span244 = CollectionsMarshal.AsSpan(list244); - num2 = 0; - ref QuestStep reference179 = ref span244[num2]; + num2 = 1; + List list244 = new List(num2); + CollectionsMarshal.SetCount(list244, num2); + ref QuestStep reference179 = ref CollectionsMarshal.AsSpan(list244)[0]; QuestStep obj170 = new QuestStep(EInteractionType.Combat, null, new Vector3(-111.25304f, -27.185633f, 723.9165f), 1190) { Fly = true, @@ -438427,15 +360526,12 @@ public static class AssemblyQuestLoader num3 = 1; List list245 = new List(num3); CollectionsMarshal.SetCount(list245, num3); - Span span245 = CollectionsMarshal.AsSpan(list245); - num4 = 0; - span245[num4] = 17736u; + CollectionsMarshal.AsSpan(list245)[0] = 17736u; obj170.KillEnemyDataIds = list245; reference179 = obj170; obj169.Steps = list244; reference178 = obj169; - num++; - ref QuestSequence reference180 = ref span242[num]; + ref QuestSequence reference180 = ref span86[2]; QuestSequence obj171 = new QuestSequence { Sequence = 2 @@ -438443,26 +360539,21 @@ public static class AssemblyQuestLoader num2 = 1; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - Span span246 = CollectionsMarshal.AsSpan(list246); - index2 = 0; - span246[index2] = new QuestStep(EInteractionType.Interact, 1050647u, new Vector3(-113.93915f, -27.518993f, 725.1239f), 1190) + CollectionsMarshal.AsSpan(list246)[0] = new QuestStep(EInteractionType.Interact, 1050647u, new Vector3(-113.93915f, -27.518993f, 725.1239f), 1190) { StopDistance = 7f }; obj171.Steps = list246; reference180 = obj171; - num++; - ref QuestSequence reference181 = ref span242[num]; + ref QuestSequence reference181 = ref span86[3]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -438475,16 +360566,13 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - Span span248 = CollectionsMarshal.AsSpan(list248); - index = 0; - span248[index] = "liza"; + CollectionsMarshal.AsSpan(list248)[0] = "liza"; questRoot33.Author = list248; - index = 3; - List list249 = new List(index); - CollectionsMarshal.SetCount(list249, index); - Span span249 = CollectionsMarshal.AsSpan(list249); - num = 0; - ref QuestSequence reference182 = ref span249[num]; + num = 3; + List list249 = new List(num); + CollectionsMarshal.SetCount(list249, num); + Span span87 = CollectionsMarshal.AsSpan(list249); + ref QuestSequence reference182 = ref span87[0]; QuestSequence obj173 = new QuestSequence { Sequence = 0 @@ -438492,52 +360580,41 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - span250[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190); + CollectionsMarshal.AsSpan(list250)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190); obj173.Steps = list250; reference182 = obj173; - num++; - ref QuestSequence reference183 = ref span249[num]; + ref QuestSequence reference183 = ref span87[1]; QuestSequence obj174 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list251 = new List(index2); - CollectionsMarshal.SetCount(list251, index2); - Span span251 = CollectionsMarshal.AsSpan(list251); - num2 = 0; - ref QuestStep reference184 = ref span251[num2]; + num2 = 4; + List list251 = new List(num2); + CollectionsMarshal.SetCount(list251, num2); + Span span88 = CollectionsMarshal.AsSpan(list251); + ref QuestStep reference184 = ref span88[0]; 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(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list252; skipStepConditions7.Flying = ELockedSkipCondition.Locked; skipConditions7.StepIf = skipStepConditions7; obj175.SkipConditions = skipConditions7; reference184 = obj175; - num2++; - ref QuestStep reference185 = ref span251[num2]; + ref QuestStep reference185 = ref span88[1]; QuestStep obj176 = new QuestStep(EInteractionType.UseItem, 2014051u, new Vector3(334.88965f, 6.3934937f, 263.1112f), 1190) { Fly = true, @@ -438546,83 +360623,60 @@ public static class AssemblyQuestLoader num3 = 6; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - 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); + 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); obj176.CompletionQuestVariablesFlags = list253; reference185 = obj176; - num2++; - ref QuestStep reference186 = ref span251[num2]; + ref QuestStep reference186 = ref span88[2]; QuestStep obj177 = new QuestStep(EInteractionType.Combat, 2014053u, new Vector3(440.66528f, 5.874695f, 254.93237f), 1190) { Fly = true, ItemId = 2003587u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - num4 = 1; - List list254 = new List(num4); - CollectionsMarshal.SetCount(list254, num4); - Span span254 = CollectionsMarshal.AsSpan(list254); - num3 = 0; - span254[num3] = 17737u; + num3 = 1; + List list254 = new List(num3); + CollectionsMarshal.SetCount(list254, num3); + CollectionsMarshal.AsSpan(list254)[0] = 17737u; obj177.KillEnemyDataIds = list254; num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - 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); + 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); obj177.CompletionQuestVariablesFlags = list255; reference186 = obj177; - num2++; - ref QuestStep reference187 = ref span251[num2]; + ref QuestStep reference187 = ref span88[3]; QuestStep obj178 = new QuestStep(EInteractionType.UseItem, 2014052u, new Vector3(545.5862f, 8.377136f, 293.01892f), 1190) { Fly = true, ItemId = 2003587u }; - 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); + 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); obj178.CompletionQuestVariablesFlags = list256; reference187 = obj178; obj174.Steps = list251; reference183 = obj174; - num++; - ref QuestSequence reference188 = ref span249[num]; + ref QuestSequence reference188 = ref span87[2]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -438630,9 +360684,7 @@ public static class AssemblyQuestLoader num2 = 1; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - span257[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190) + CollectionsMarshal.AsSpan(list257)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050649u, new Vector3(350.1792f, -1.6156614f, 413.0464f), 1190) { Fly = true }; @@ -438645,30 +360697,24 @@ public static class AssemblyQuestLoader num = 1; List list258 = new List(num); CollectionsMarshal.SetCount(list258, num); - Span span258 = CollectionsMarshal.AsSpan(list258); - index = 0; - span258[index] = "liza"; + CollectionsMarshal.AsSpan(list258)[0] = "liza"; questRoot34.Author = list258; - index = 3; - List list259 = new List(index); - CollectionsMarshal.SetCount(list259, index); - Span span259 = CollectionsMarshal.AsSpan(list259); - num = 0; - ref QuestSequence reference189 = ref span259[num]; + num = 3; + List list259 = new List(num); + CollectionsMarshal.SetCount(list259, num); + Span span93 = CollectionsMarshal.AsSpan(list259); + ref QuestSequence reference189 = ref span93[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj180.Steps = list260; reference189 = obj180; - num++; - ref QuestSequence reference190 = ref span259[num]; + ref QuestSequence reference190 = ref span93[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -438676,26 +360722,21 @@ public static class AssemblyQuestLoader num2 = 1; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - span261[index2] = new QuestStep(EInteractionType.Interact, 2014054u, new Vector3(-756.1608f, 35.8739f, 67.52112f), 1190) + CollectionsMarshal.AsSpan(list261)[0] = new QuestStep(EInteractionType.Interact, 2014054u, new Vector3(-756.1608f, 35.8739f, 67.52112f), 1190) { Fly = true }; obj181.Steps = list261; reference190 = obj181; - num++; - ref QuestSequence reference191 = ref span259[num]; + ref QuestSequence reference191 = ref span93[2]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -438708,16 +360749,13 @@ public static class AssemblyQuestLoader num = 1; List list263 = new List(num); CollectionsMarshal.SetCount(list263, num); - Span span263 = CollectionsMarshal.AsSpan(list263); - index = 0; - span263[index] = "liza"; + CollectionsMarshal.AsSpan(list263)[0] = "liza"; questRoot35.Author = list263; - index = 3; - List list264 = new List(index); - CollectionsMarshal.SetCount(list264, index); - Span span264 = CollectionsMarshal.AsSpan(list264); - num = 0; - ref QuestSequence reference192 = ref span264[num]; + num = 3; + List list264 = new List(num); + CollectionsMarshal.SetCount(list264, num); + Span span94 = CollectionsMarshal.AsSpan(list264); + ref QuestSequence reference192 = ref span94[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -438725,30 +360763,24 @@ public static class AssemblyQuestLoader num2 = 1; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - span265[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051375u, new Vector3(376.15015f, -1.4395642f, 379.26294f), 1190); + CollectionsMarshal.AsSpan(list265)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051375u, new Vector3(376.15015f, -1.4395642f, 379.26294f), 1190); obj183.Steps = list265; reference192 = obj183; - num++; - ref QuestSequence reference193 = ref span264[num]; + ref QuestSequence reference193 = ref span94[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj184.Steps = list266; reference193 = obj184; - num++; - ref QuestSequence reference194 = ref span264[num]; + ref QuestSequence reference194 = ref span94[2]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -438756,9 +360788,7 @@ public static class AssemblyQuestLoader num2 = 1; List list267 = new List(num2); CollectionsMarshal.SetCount(list267, num2); - Span span267 = CollectionsMarshal.AsSpan(list267); - index2 = 0; - span267[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051377u, new Vector3(419.02795f, 0.2806556f, 468.43665f), 1190) + CollectionsMarshal.AsSpan(list267)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051377u, new Vector3(419.02795f, 0.2806556f, 468.43665f), 1190) { StopDistance = 7f }; @@ -438771,30 +360801,24 @@ public static class AssemblyQuestLoader num = 1; List list268 = new List(num); CollectionsMarshal.SetCount(list268, num); - Span span268 = CollectionsMarshal.AsSpan(list268); - index = 0; - span268[index] = "liza"; + CollectionsMarshal.AsSpan(list268)[0] = "liza"; questRoot36.Author = list268; - index = 3; - List list269 = new List(index); - CollectionsMarshal.SetCount(list269, index); - Span span269 = CollectionsMarshal.AsSpan(list269); - num = 0; - ref QuestSequence reference195 = ref span269[num]; + num = 3; + List list269 = new List(num); + CollectionsMarshal.SetCount(list269, num); + Span span95 = CollectionsMarshal.AsSpan(list269); + ref QuestSequence reference195 = ref span95[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj186.Steps = list270; reference195 = obj186; - num++; - ref QuestSequence reference196 = ref span269[num]; + ref QuestSequence reference196 = ref span95[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -438802,9 +360826,7 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - ref QuestStep reference197 = ref span271[index2]; + ref QuestStep reference197 = ref CollectionsMarshal.AsSpan(list271)[0]; QuestStep obj188 = new QuestStep(EInteractionType.Combat, null, new Vector3(-335.70532f, 18.652002f, -543.8954f), 1190) { Fly = true, @@ -438813,34 +360835,26 @@ public static class AssemblyQuestLoader num3 = 2; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span272 = CollectionsMarshal.AsSpan(list272); - num4 = 0; - ref ComplexCombatData reference198 = ref span272[num4]; + Span span96 = CollectionsMarshal.AsSpan(list272); + ref ComplexCombatData reference198 = ref span96[0]; ComplexCombatData obj189 = new ComplexCombatData { DataId = 17274u, MinimumKillCount = 2u }; - 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; + 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; obj189.CompletionQuestVariablesFlags = list273; reference198 = obj189; - num4++; - span272[num4] = new ComplexCombatData + span96[1] = new ComplexCombatData { DataId = 17738u, MinimumKillCount = 1u @@ -438849,18 +360863,15 @@ public static class AssemblyQuestLoader reference197 = obj188; obj187.Steps = list271; reference196 = obj187; - num++; - ref QuestSequence reference199 = ref span269[num]; + ref QuestSequence reference199 = ref span95[2]; QuestSequence obj190 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -438873,16 +360884,13 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - Span span275 = CollectionsMarshal.AsSpan(list275); - index = 0; - span275[index] = "liza"; + CollectionsMarshal.AsSpan(list275)[0] = "liza"; questRoot37.Author = list275; - index = 4; - List list276 = new List(index); - CollectionsMarshal.SetCount(list276, index); - Span span276 = CollectionsMarshal.AsSpan(list276); - num = 0; - ref QuestSequence reference200 = ref span276[num]; + num = 4; + List list276 = new List(num); + CollectionsMarshal.SetCount(list276, num); + Span span98 = CollectionsMarshal.AsSpan(list276); + ref QuestSequence reference200 = ref span98[0]; QuestSequence obj191 = new QuestSequence { Sequence = 0 @@ -438890,29 +360898,24 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190); + CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190); obj191.Steps = list277; reference200 = obj191; - num++; - ref QuestSequence reference201 = ref span276[num]; + ref QuestSequence reference201 = ref span98[1]; QuestSequence obj192 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true, Fly = true }; - num2++; - span278[num2] = new QuestStep(EInteractionType.UseItem, null, new Vector3(557.73425f, -71.68169f, -220.66245f), 1190) + span99[1] = new QuestStep(EInteractionType.UseItem, null, new Vector3(557.73425f, -71.68169f, -220.66245f), 1190) { DisableNavmesh = true, Fly = true, @@ -438920,8 +360923,7 @@ public static class AssemblyQuestLoader }; obj192.Steps = list278; reference201 = obj192; - num++; - ref QuestSequence reference202 = ref span276[num]; + ref QuestSequence reference202 = ref span98[2]; QuestSequence obj193 = new QuestSequence { Sequence = 2 @@ -438929,33 +360931,28 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.Interact, 2014055u, new Vector3(568.0475f, -77.16492f, -219.92828f), 1190) + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 2014055u, new Vector3(568.0475f, -77.16492f, -219.92828f), 1190) { DisableNavmesh = true }; obj193.Steps = list279; reference202 = obj193; - num++; - ref QuestSequence reference203 = ref span276[num]; + ref QuestSequence reference203 = ref span98[3]; QuestSequence obj194 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { DisableNavmesh = true, Mount = true, Fly = true }; - num2++; - span280[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190) + span100[1] = new QuestStep(EInteractionType.CompleteQuest, 1050652u, new Vector3(622.4917f, -17.334448f, -441.42828f), 1190) { Fly = true }; @@ -438968,16 +360965,13 @@ public static class AssemblyQuestLoader num = 1; List list281 = new List(num); CollectionsMarshal.SetCount(list281, num); - Span span281 = CollectionsMarshal.AsSpan(list281); - index = 0; - span281[index] = "liza"; + CollectionsMarshal.AsSpan(list281)[0] = "liza"; questRoot38.Author = list281; - index = 4; - List list282 = new List(index); - CollectionsMarshal.SetCount(list282, index); - Span span282 = CollectionsMarshal.AsSpan(list282); - num = 0; - ref QuestSequence reference204 = ref span282[num]; + num = 4; + List list282 = new List(num); + CollectionsMarshal.SetCount(list282, num); + Span span101 = CollectionsMarshal.AsSpan(list282); + ref QuestSequence reference204 = ref span101[0]; QuestSequence obj195 = new QuestSequence { Sequence = 0 @@ -438985,31 +360979,25 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190); + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050653u, new Vector3(-133.74536f, 16.289755f, -285.1454f), 1190); obj195.Steps = list283; reference204 = obj195; - num++; - ref QuestSequence reference205 = ref span282[num]; + ref QuestSequence reference205 = ref span101[1]; QuestSequence obj196 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.25f, Fly = true }; obj196.Steps = list284; reference205 = obj196; - num++; - ref QuestSequence reference206 = ref span282[num]; + ref QuestSequence reference206 = ref span101[2]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -439017,23 +361005,18 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.Interact, 2014056u, new Vector3(-509.60556f, 62.91284f, -437.15576f), 1190); + CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.Interact, 2014056u, new Vector3(-509.60556f, 62.91284f, -437.15576f), 1190); obj197.Steps = list285; reference206 = obj197; - num++; - ref QuestSequence reference207 = ref span282[num]; + ref QuestSequence reference207 = ref span101[3]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -439046,16 +361029,13 @@ public static class AssemblyQuestLoader num = 1; List list287 = new List(num); CollectionsMarshal.SetCount(list287, num); - Span span287 = CollectionsMarshal.AsSpan(list287); - index = 0; - span287[index] = "liza"; + CollectionsMarshal.AsSpan(list287)[0] = "liza"; questRoot39.Author = list287; - index = 4; - List list288 = new List(index); - CollectionsMarshal.SetCount(list288, index); - Span span288 = CollectionsMarshal.AsSpan(list288); - num = 0; - ref QuestSequence reference208 = ref span288[num]; + num = 4; + List list288 = new List(num); + CollectionsMarshal.SetCount(list288, num); + Span span102 = CollectionsMarshal.AsSpan(list288); + ref QuestSequence reference208 = ref span102[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -439063,59 +361043,46 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190); + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050655u, new Vector3(289.02112f, -15.566031f, -478.78235f), 1190); obj199.Steps = list289; reference208 = obj199; - num++; - ref QuestSequence reference209 = ref span288[num]; + ref QuestSequence reference209 = ref span102[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818452u }; - 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) + 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) { AetherCurrentId = 2818456u }; - 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) + 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) { AetherCurrentId = 2818458u }; - 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) + 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) { DisableNavmesh = true, AetherCurrentId = 2818457u }; - num2++; - span290[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.40674f, -11.14023f, -126.13759f), 1190) + span103[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(290.40674f, -11.14023f, -126.13759f), 1190) { DisableNavmesh = true }; - num2++; - span290[num2] = new QuestStep(EInteractionType.Interact, 1050656u, new Vector3(449.05762f, -17.316843f, -155.6878f), 1190); + span103[8] = new QuestStep(EInteractionType.Interact, 1050656u, new Vector3(449.05762f, -17.316843f, -155.6878f), 1190); obj200.Steps = list290; reference209 = obj200; - num++; - ref QuestSequence reference210 = ref span288[num]; + ref QuestSequence reference210 = ref span102[2]; QuestSequence obj201 = new QuestSequence { Sequence = 2 @@ -439123,64 +361090,54 @@ public static class AssemblyQuestLoader num2 = 7; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.57977f, -18.2f, -244.50037f), 1190) + Span span104 = CollectionsMarshal.AsSpan(list291); + span104[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(400.57977f, -18.2f, -244.50037f), 1190) { Mount = false, Sprint = false }; - index2++; - span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.76282f, -18.2f, -293.1074f), 1190) + span104[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(379.76282f, -18.2f, -293.1074f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - index2++; - span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(370.89987f, -18.2f, -351.861f), 1190) + span104[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(370.89987f, -18.2f, -351.861f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - index2++; - span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.1876f, -18.2f, -381.36987f), 1190) + span104[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(392.1876f, -18.2f, -381.36987f), 1190) { DelaySecondsAtStart = 3f, Mount = false, Sprint = false }; - index2++; - span291[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.26978f, -18.2f, -454.76865f), 1190) + span104[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(386.26978f, -18.2f, -454.76865f), 1190) { Mount = false, Sprint = false }; - index2++; - span291[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17739u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190) + span104[5] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17739u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190) { StopDistance = 0.25f, NpcWaitDistance = 4f, Mount = false, Sprint = false }; - index2++; - span291[index2] = new QuestStep(EInteractionType.Interact, 2014057u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190); + span104[6] = new QuestStep(EInteractionType.Interact, 2014057u, new Vector3(287.58667f, -15.274292f, -476.0052f), 1190); obj201.Steps = list291; reference210 = obj201; - num++; - ref QuestSequence reference211 = ref span288[num]; + ref QuestSequence reference211 = ref span102[3]; QuestSequence obj202 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -439193,16 +361150,13 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - Span span293 = CollectionsMarshal.AsSpan(list293); - index = 0; - span293[index] = "liza"; + CollectionsMarshal.AsSpan(list293)[0] = "liza"; questRoot40.Author = list293; - index = 4; - List list294 = new List(index); - CollectionsMarshal.SetCount(list294, index); - Span span294 = CollectionsMarshal.AsSpan(list294); - num = 0; - ref QuestSequence reference212 = ref span294[num]; + num = 4; + List list294 = new List(num); + CollectionsMarshal.SetCount(list294, num); + Span span105 = CollectionsMarshal.AsSpan(list294); + ref QuestSequence reference212 = ref span105[0]; QuestSequence obj203 = new QuestSequence { Sequence = 0 @@ -439210,31 +361164,25 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190); + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050702u, new Vector3(267.3838f, -16.116768f, -495.71985f), 1190); obj203.Steps = list295; reference212 = obj203; - num++; - ref QuestSequence reference213 = ref span294[num]; + ref QuestSequence reference213 = ref span105[1]; QuestSequence obj204 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj204.Steps = list296; reference213 = obj204; - num++; - ref QuestSequence reference214 = ref span294[num]; + ref QuestSequence reference214 = ref span105[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -439242,23 +361190,18 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.Interact, 2014058u, new Vector3(389.7306f, -1.1139526f, 368.8258f), 1190); + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 2014058u, new Vector3(389.7306f, -1.1139526f, 368.8258f), 1190); obj205.Steps = list297; reference214 = obj205; - num++; - ref QuestSequence reference215 = ref span294[num]; + ref QuestSequence reference215 = ref span105[3]; QuestSequence obj206 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; @@ -439271,16 +361214,13 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - Span span299 = CollectionsMarshal.AsSpan(list299); - index = 0; - span299[index] = "liza"; + CollectionsMarshal.AsSpan(list299)[0] = "liza"; questRoot41.Author = list299; - index = 5; - List list300 = new List(index); - CollectionsMarshal.SetCount(list300, index); - Span span300 = CollectionsMarshal.AsSpan(list300); - num = 0; - ref QuestSequence reference216 = ref span300[num]; + num = 5; + List list300 = new List(num); + CollectionsMarshal.SetCount(list300, num); + Span span106 = CollectionsMarshal.AsSpan(list300); + ref QuestSequence reference216 = ref span106[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -439288,30 +361228,24 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190); + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190); obj207.Steps = list301; reference216 = obj207; - num++; - ref QuestSequence reference217 = ref span300[num]; + ref QuestSequence reference217 = ref span106[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Mount = true }; obj208.Steps = list302; reference217 = obj208; - num++; - ref QuestSequence reference218 = ref span300[num]; + ref QuestSequence reference218 = ref span106[2]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -439319,37 +361253,30 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190); + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1051284u, new Vector3(362.84424f, 5.937199f, 427.2068f), 1190); obj209.Steps = list303; reference218 = obj209; - num++; - ref QuestSequence reference219 = ref span300[num]; + ref QuestSequence reference219 = ref span106[3]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = true }; - num2++; - span304[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + span107[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - num2++; - span304[num2] = new QuestStep(EInteractionType.Interact, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190); + span107[2] = new QuestStep(EInteractionType.Interact, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190); obj210.Steps = list304; reference219 = obj210; - num++; - ref QuestSequence reference220 = ref span300[num]; + ref QuestSequence reference220 = ref span106[4]; QuestSequence obj211 = new QuestSequence { Sequence = byte.MaxValue @@ -439357,9 +361284,7 @@ public static class AssemblyQuestLoader num2 = 1; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190) + CollectionsMarshal.AsSpan(list305)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051286u, new Vector3(272.72437f, -4.5877395f, 464.042f), 1190) { Emote = EEmote.Flex }; @@ -439372,30 +361297,24 @@ public static class AssemblyQuestLoader num = 1; List list306 = new List(num); CollectionsMarshal.SetCount(list306, num); - Span span306 = CollectionsMarshal.AsSpan(list306); - index = 0; - span306[index] = "liza"; + CollectionsMarshal.AsSpan(list306)[0] = "liza"; questRoot42.Author = list306; - index = 3; - List list307 = new List(index); - CollectionsMarshal.SetCount(list307, index); - Span span307 = CollectionsMarshal.AsSpan(list307); - num = 0; - ref QuestSequence reference221 = ref span307[num]; + num = 3; + List list307 = new List(num); + CollectionsMarshal.SetCount(list307, num); + Span span108 = CollectionsMarshal.AsSpan(list307); + ref QuestSequence reference221 = ref span108[0]; QuestSequence obj212 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj212.Steps = list308; reference221 = obj212; - num++; - ref QuestSequence reference222 = ref span307[num]; + ref QuestSequence reference222 = ref span108[1]; QuestSequence obj213 = new QuestSequence { Sequence = 1 @@ -439403,9 +361322,7 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.Interact, 1051289u, new Vector3(246.57043f, 15.999963f, 761.2573f), 1190) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Interact, 1051289u, new Vector3(246.57043f, 15.999963f, 761.2573f), 1190) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -439416,25 +361333,20 @@ public static class AssemblyQuestLoader }; obj213.Steps = list309; reference222 = obj213; - num++; - ref QuestSequence reference223 = ref span307[num]; + ref QuestSequence reference223 = ref span108[2]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list310 = new List(index2); - CollectionsMarshal.SetCount(list310, index2); - Span span310 = CollectionsMarshal.AsSpan(list310); - num2 = 0; - ref QuestStep reference224 = ref span310[num2]; + num2 = 1; + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; QuestStep questStep10 = new QuestStep(EInteractionType.CompleteQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); - num4 = 1; - List list311 = new List(num4); - CollectionsMarshal.SetCount(list311, num4); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = new DialogueChoice + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE202_05141_Q1_000_000"), @@ -439452,16 +361364,13 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - Span span312 = CollectionsMarshal.AsSpan(list312); - index = 0; - span312[index] = "liza"; + CollectionsMarshal.AsSpan(list312)[0] = "liza"; questRoot43.Author = list312; - index = 4; - List list313 = new List(index); - CollectionsMarshal.SetCount(list313, index); - Span span313 = CollectionsMarshal.AsSpan(list313); - num = 0; - ref QuestSequence reference225 = ref span313[num]; + num = 4; + List list313 = new List(num); + CollectionsMarshal.SetCount(list313, num); + Span span109 = CollectionsMarshal.AsSpan(list313); + ref QuestSequence reference225 = ref span109[0]; QuestSequence obj215 = new QuestSequence { Sequence = 0 @@ -439469,31 +361378,25 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051293u, new Vector3(245.89917f, 15.999965f, 758.1139f), 1190); obj215.Steps = list314; reference225 = obj215; - num++; - ref QuestSequence reference226 = ref span313[num]; + ref QuestSequence reference226 = ref span109[1]; QuestSequence obj216 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi }; obj216.Steps = list315; reference226 = obj216; - num++; - ref QuestSequence reference227 = ref span313[num]; + ref QuestSequence reference227 = ref span109[2]; QuestSequence obj217 = new QuestSequence { Sequence = 2 @@ -439501,9 +361404,8 @@ public static class AssemblyQuestLoader num2 = 6; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - ref QuestStep reference228 = ref span316[index2]; + Span span110 = CollectionsMarshal.AsSpan(list316); + ref QuestStep reference228 = ref span110[0]; QuestStep obj218 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(450.56f, 7.0377436f, 489.10336f), 1190) { Fly = true @@ -439513,51 +361415,37 @@ public static class AssemblyQuestLoader num3 = 6; List list317 = new List(num3); CollectionsMarshal.SetCount(list317, num3); - 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); + 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); skipStepConditions8.CompletionQuestVariablesFlags = list317; skipStepConditions8.Flying = ELockedSkipCondition.Locked; skipConditions8.StepIf = skipStepConditions8; obj218.SkipConditions = skipConditions8; reference228 = obj218; - index2++; - ref QuestStep reference229 = ref span316[index2]; + ref QuestStep reference229 = ref span110[1]; QuestStep obj219 = new QuestStep(EInteractionType.Emote, 1051297u, new Vector3(470.84766f, 2.6501055f, 478.08032f), 1190) { Fly = true, Emote = EEmote.Dance }; - 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); + 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); obj219.CompletionQuestVariablesFlags = list318; reference229 = obj219; - index2++; - ref QuestStep reference230 = ref span316[index2]; + ref QuestStep reference230 = ref span110[2]; QuestStep obj220 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190) { Fly = true @@ -439567,113 +361455,83 @@ public static class AssemblyQuestLoader num3 = 6; List list319 = new List(num3); CollectionsMarshal.SetCount(list319, num3); - 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); + 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); skipStepConditions9.CompletionQuestVariablesFlags = list319; skipStepConditions9.Flying = ELockedSkipCondition.Locked; skipConditions9.StepIf = skipStepConditions9; obj220.SkipConditions = skipConditions9; reference230 = obj220; - index2++; - ref QuestStep reference231 = ref span316[index2]; + ref QuestStep reference231 = ref span110[3]; QuestStep obj221 = new QuestStep(EInteractionType.Emote, 1051296u, new Vector3(369.92432f, 5.9371996f, 434.71423f), 1190) { Emote = EEmote.Dance }; - 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); + 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); obj221.CompletionQuestVariablesFlags = list320; reference231 = obj221; - index2++; - ref QuestStep reference232 = ref span316[index2]; + ref QuestStep reference232 = ref span110[4]; 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 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); + 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); skipStepConditions10.CompletionQuestVariablesFlags = list321; skipStepConditions10.Flying = ELockedSkipCondition.Locked; skipConditions10.StepIf = skipStepConditions10; questStep11.SkipConditions = skipConditions10; reference232 = questStep11; - index2++; - ref QuestStep reference233 = ref span316[index2]; + ref QuestStep reference233 = ref span110[5]; QuestStep obj222 = new QuestStep(EInteractionType.Emote, 1051298u, new Vector3(375.6007f, -1.619559f, 387.62476f), 1190) { Fly = true, Emote = EEmote.Dance }; - 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); + 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); obj222.CompletionQuestVariablesFlags = list322; reference233 = obj222; obj217.Steps = list316; reference227 = obj217; - num++; - ref QuestSequence reference234 = ref span313[num]; + ref QuestSequence reference234 = ref span109[3]; QuestSequence obj223 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5143) @@ -439687,16 +361545,13 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - Span span324 = CollectionsMarshal.AsSpan(list324); - index = 0; - span324[index] = "liza"; + CollectionsMarshal.AsSpan(list324)[0] = "liza"; questRoot44.Author = list324; - index = 4; - List list325 = new List(index); - CollectionsMarshal.SetCount(list325, index); - Span span325 = CollectionsMarshal.AsSpan(list325); - num = 0; - ref QuestSequence reference235 = ref span325[num]; + num = 4; + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + Span span117 = CollectionsMarshal.AsSpan(list325); + ref QuestSequence reference235 = ref span117[0]; QuestSequence obj224 = new QuestSequence { Sequence = 0 @@ -439704,23 +361559,19 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051295u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051295u, new Vector3(279.62158f, -4.1182456f, 460.31885f), 1190); obj224.Steps = list326; reference235 = obj224; - num++; - ref QuestSequence reference236 = ref span325[num]; + ref QuestSequence reference236 = ref span117[1]; QuestSequence obj225 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, SkipConditions = new SkipConditions @@ -439731,8 +361582,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference237 = ref span327[num2]; + ref QuestStep reference237 = ref span118[1]; QuestStep obj226 = new QuestStep(EInteractionType.Interact, 1051283u, new Vector3(374.19702f, -0.24794838f, 437.2472f), 1190) { Fly = true @@ -439740,9 +361590,7 @@ public static class AssemblyQuestLoader num3 = 1; List list328 = new List(num3); CollectionsMarshal.SetCount(list328, num3); - Span span328 = CollectionsMarshal.AsSpan(list328); - num4 = 0; - span328[num4] = new DialogueChoice + CollectionsMarshal.AsSpan(list328)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE204_05143_Q1_000_000"), @@ -439752,8 +361600,7 @@ public static class AssemblyQuestLoader reference237 = obj226; obj225.Steps = list327; reference236 = obj225; - num++; - ref QuestSequence reference238 = ref span325[num]; + ref QuestSequence reference238 = ref span117[2]; QuestSequence obj227 = new QuestSequence { Sequence = 2 @@ -439761,26 +361608,21 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - index2 = 0; - span329[index2] = new QuestStep(EInteractionType.Interact, 2014319u, new Vector3(290.76062f, -2.6704102f, 455.34436f), 1190) + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Interact, 2014319u, new Vector3(290.76062f, -2.6704102f, 455.34436f), 1190) { Fly = true }; obj227.Steps = list329; reference238 = obj227; - num++; - ref QuestSequence reference239 = ref span325[num]; + ref QuestSequence reference239 = ref span117[3]; QuestSequence obj228 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj228.Steps = list330; reference239 = obj228; questRoot44.QuestSequence = list325; @@ -439790,16 +361632,13 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "liza"; + CollectionsMarshal.AsSpan(list331)[0] = "liza"; questRoot45.Author = list331; - index = 3; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference240 = ref span332[num]; + num = 3; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span119 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference240 = ref span119[0]; QuestSequence obj229 = new QuestSequence { Sequence = 0 @@ -439807,29 +361646,23 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - index2 = 0; - span333[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190); + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051316u, new Vector3(-380.30066f, 18.718708f, -114.24432f), 1190); obj229.Steps = list333; reference240 = obj229; - num++; - ref QuestSequence reference241 = ref span332[num]; + ref QuestSequence reference241 = ref span119[1]; QuestSequence obj230 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj230.Steps = list334; reference241 = obj230; - num++; - ref QuestSequence reference242 = ref span332[num]; + ref QuestSequence reference242 = ref span119[2]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -439837,9 +361670,7 @@ public static class AssemblyQuestLoader num2 = 1; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - index2 = 0; - span335[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190) + CollectionsMarshal.AsSpan(list335)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051301u, new Vector3(-284.1383f, 17.312117f, -76.676636f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; @@ -439852,30 +361683,24 @@ public static class AssemblyQuestLoader num = 1; List list336 = new List(num); CollectionsMarshal.SetCount(list336, num); - Span span336 = CollectionsMarshal.AsSpan(list336); - index = 0; - span336[index] = "liza"; + CollectionsMarshal.AsSpan(list336)[0] = "liza"; questRoot46.Author = list336; - index = 5; - List list337 = new List(index); - CollectionsMarshal.SetCount(list337, index); - Span span337 = CollectionsMarshal.AsSpan(list337); - num = 0; - ref QuestSequence reference243 = ref span337[num]; + num = 5; + List list337 = new List(num); + CollectionsMarshal.SetCount(list337, num); + Span span121 = CollectionsMarshal.AsSpan(list337); + ref QuestSequence reference243 = ref span121[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj232.Steps = list338; reference243 = obj232; - num++; - ref QuestSequence reference244 = ref span337[num]; + ref QuestSequence reference244 = ref span121[1]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -439883,33 +361708,27 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.Interact, 1051320u, new Vector3(-379.04938f, 18.055899f, -117.387695f), 1190) + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.Interact, 1051320u, new Vector3(-379.04938f, 18.055899f, -117.387695f), 1190) { Fly = true }; obj233.Steps = list339; reference244 = obj233; - num++; - ref QuestSequence reference245 = ref span337[num]; + ref QuestSequence reference245 = ref span121[2]; QuestSequence obj234 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj234.Steps = list340; reference245 = obj234; - num++; - ref QuestSequence reference246 = ref span337[num]; + ref QuestSequence reference246 = ref span121[3]; QuestSequence obj235 = new QuestSequence { Sequence = 3 @@ -439917,26 +361736,21 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.Interact, 2014321u, new Vector3(-120.561584f, -4.0131226f, 117.69275f), 1190) + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.Interact, 2014321u, new Vector3(-120.561584f, -4.0131226f, 117.69275f), 1190) { Fly = true }; obj235.Steps = list341; reference246 = obj235; - num++; - ref QuestSequence reference247 = ref span337[num]; + ref QuestSequence reference247 = ref span121[4]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5146) @@ -439950,16 +361764,13 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - Span span343 = CollectionsMarshal.AsSpan(list343); - index = 0; - span343[index] = "liza"; + CollectionsMarshal.AsSpan(list343)[0] = "liza"; questRoot47.Author = list343; - index = 6; - List list344 = new List(index); - CollectionsMarshal.SetCount(list344, index); - Span span344 = CollectionsMarshal.AsSpan(list344); - num = 0; - ref QuestSequence reference248 = ref span344[num]; + num = 6; + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + Span span122 = CollectionsMarshal.AsSpan(list344); + ref QuestSequence reference248 = ref span122[0]; QuestSequence obj237 = new QuestSequence { Sequence = 0 @@ -439967,30 +361778,24 @@ public static class AssemblyQuestLoader num2 = 1; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - span345[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190); + CollectionsMarshal.AsSpan(list345)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051303u, new Vector3(-150.80493f, 2.3364508f, 42.86255f), 1190); obj237.Steps = list345; reference248 = obj237; - num++; - ref QuestSequence reference249 = ref span344[num]; + ref QuestSequence reference249 = ref span122[1]; QuestSequence obj238 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj238.Steps = list346; reference249 = obj238; - num++; - ref QuestSequence reference250 = ref span344[num]; + ref QuestSequence reference250 = ref span122[2]; QuestSequence obj239 = new QuestSequence { Sequence = 2 @@ -439998,33 +361803,27 @@ public static class AssemblyQuestLoader num2 = 1; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - span347[index2] = new QuestStep(EInteractionType.Interact, 1051306u, new Vector3(-230.9148f, -1.2759173f, 291.9203f), 1190) + CollectionsMarshal.AsSpan(list347)[0] = new QuestStep(EInteractionType.Interact, 1051306u, new Vector3(-230.9148f, -1.2759173f, 291.9203f), 1190) { Fly = true }; obj239.Steps = list347; reference250 = obj239; - num++; - ref QuestSequence reference251 = ref span344[num]; + ref QuestSequence reference251 = ref span122[3]; QuestSequence obj240 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj240.Steps = list348; reference251 = obj240; - num++; - ref QuestSequence reference252 = ref span344[num]; + ref QuestSequence reference252 = ref span122[4]; QuestSequence obj241 = new QuestSequence { Sequence = 4 @@ -440032,26 +361831,21 @@ public static class AssemblyQuestLoader num2 = 1; List list349 = new List(num2); CollectionsMarshal.SetCount(list349, num2); - Span span349 = CollectionsMarshal.AsSpan(list349); - index2 = 0; - span349[index2] = new QuestStep(EInteractionType.Interact, 1051308u, new Vector3(-170.45856f, 1.6625541f, 365.6825f), 1190) + CollectionsMarshal.AsSpan(list349)[0] = new QuestStep(EInteractionType.Interact, 1051308u, new Vector3(-170.45856f, 1.6625541f, 365.6825f), 1190) { Fly = true }; obj241.Steps = list349; reference252 = obj241; - num++; - ref QuestSequence reference253 = ref span344[num]; + ref QuestSequence reference253 = ref span122[5]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5147) @@ -440065,16 +361859,13 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - Span span351 = CollectionsMarshal.AsSpan(list351); - index = 0; - span351[index] = "liza"; + CollectionsMarshal.AsSpan(list351)[0] = "liza"; questRoot48.Author = list351; - index = 4; - List list352 = new List(index); - CollectionsMarshal.SetCount(list352, index); - Span span352 = CollectionsMarshal.AsSpan(list352); - num = 0; - ref QuestSequence reference254 = ref span352[num]; + num = 4; + List list352 = new List(num); + CollectionsMarshal.SetCount(list352, num); + Span span123 = CollectionsMarshal.AsSpan(list352); + ref QuestSequence reference254 = ref span123[0]; QuestSequence obj243 = new QuestSequence { Sequence = 0 @@ -440082,33 +361873,27 @@ public static class AssemblyQuestLoader num2 = 1; List list353 = new List(num2); CollectionsMarshal.SetCount(list353, num2); - Span span353 = CollectionsMarshal.AsSpan(list353); - index2 = 0; - span353[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051333u, new Vector3(-127.82489f, 1.8010846f, 318.13525f), 1190) + CollectionsMarshal.AsSpan(list353)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051333u, new Vector3(-127.82489f, 1.8010846f, 318.13525f), 1190) { StopDistance = 5f }; obj243.Steps = list353; reference254 = obj243; - num++; - ref QuestSequence reference255 = ref span352[num]; + ref QuestSequence reference255 = ref span123[1]; QuestSequence obj244 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj244.Steps = list354; reference255 = obj244; - num++; - ref QuestSequence reference256 = ref span352[num]; + ref QuestSequence reference256 = ref span123[2]; QuestSequence obj245 = new QuestSequence { Sequence = 2 @@ -440116,36 +361901,29 @@ public static class AssemblyQuestLoader num2 = 1; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - ref QuestStep reference257 = ref span355[index2]; + ref QuestStep reference257 = ref CollectionsMarshal.AsSpan(list355)[0]; QuestStep obj246 = new QuestStep(EInteractionType.Combat, null, new Vector3(-73.8012f, 8.56271f, -61.943523f), 1190) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - num4 = 1; - List list356 = new List(num4); - CollectionsMarshal.SetCount(list356, num4); - Span span356 = CollectionsMarshal.AsSpan(list356); - num3 = 0; - span356[num3] = 17742u; + num3 = 1; + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + CollectionsMarshal.AsSpan(list356)[0] = 17742u; obj246.KillEnemyDataIds = list356; reference257 = obj246; obj245.Steps = list355; reference256 = obj245; - num++; - ref QuestSequence reference258 = ref span352[num]; + ref QuestSequence reference258 = ref span123[3]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5148) @@ -440159,16 +361937,13 @@ public static class AssemblyQuestLoader num = 1; List list358 = new List(num); CollectionsMarshal.SetCount(list358, num); - Span span358 = CollectionsMarshal.AsSpan(list358); - index = 0; - span358[index] = "liza"; + CollectionsMarshal.AsSpan(list358)[0] = "liza"; questRoot49.Author = list358; - index = 8; - List list359 = new List(index); - CollectionsMarshal.SetCount(list359, index); - Span span359 = CollectionsMarshal.AsSpan(list359); - num = 0; - ref QuestSequence reference259 = ref span359[num]; + num = 8; + List list359 = new List(num); + CollectionsMarshal.SetCount(list359, num); + Span span124 = CollectionsMarshal.AsSpan(list359); + ref QuestSequence reference259 = ref span124[0]; QuestSequence obj248 = new QuestSequence { Sequence = 0 @@ -440176,27 +361951,21 @@ public static class AssemblyQuestLoader num2 = 1; List list360 = new List(num2); CollectionsMarshal.SetCount(list360, num2); - Span span360 = CollectionsMarshal.AsSpan(list360); - index2 = 0; - span360[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); + CollectionsMarshal.AsSpan(list360)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190); obj248.Steps = list360; reference259 = obj248; - num++; - ref QuestSequence reference260 = ref span359[num]; + ref QuestSequence reference260 = ref span124[1]; QuestSequence obj249 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj249.Steps = list361; reference260 = obj249; - num++; - ref QuestSequence reference261 = ref span359[num]; + ref QuestSequence reference261 = ref span124[2]; QuestSequence obj250 = new QuestSequence { Sequence = 2 @@ -440204,91 +361973,65 @@ public static class AssemblyQuestLoader num2 = 3; List list362 = new List(num2); CollectionsMarshal.SetCount(list362, num2); - Span span362 = CollectionsMarshal.AsSpan(list362); - index2 = 0; - ref QuestStep reference262 = ref span362[index2]; + Span span125 = CollectionsMarshal.AsSpan(list362); + ref QuestStep reference262 = ref span125[0]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list363; reference262 = questStep12; - index2++; - ref QuestStep reference263 = ref span362[index2]; + ref QuestStep reference263 = ref span125[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 2014322u, new Vector3(-619.01276f, -14.114624f, 379.65967f), 1190); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list364; reference263 = questStep13; - index2++; - ref QuestStep reference264 = ref span362[index2]; + ref QuestStep reference264 = ref span125[2]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list365; reference264 = questStep14; obj250.Steps = list362; reference261 = obj250; - num++; - ref QuestSequence reference265 = ref span359[num]; + ref QuestSequence reference265 = ref span124[3]; QuestSequence obj251 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list366 = new List(index2); - CollectionsMarshal.SetCount(list366, index2); - Span span366 = CollectionsMarshal.AsSpan(list366); - num2 = 0; - ref QuestStep reference266 = ref span366[num2]; + num2 = 1; + List list366 = new List(num2); + CollectionsMarshal.SetCount(list366, num2); + ref QuestStep reference266 = ref CollectionsMarshal.AsSpan(list366)[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051310u, new Vector3(-638.1476f, -11.576093f, 350.8506f), 1190); - num4 = 1; - List list367 = new List(num4); - CollectionsMarshal.SetCount(list367, num4); - Span span367 = CollectionsMarshal.AsSpan(list367); - num3 = 0; - span367[num3] = new DialogueChoice + num3 = 1; + List list367 = new List(num3); + CollectionsMarshal.SetCount(list367, num3); + CollectionsMarshal.AsSpan(list367)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZE401_05148_Q2_000_000"), @@ -440298,8 +362041,7 @@ public static class AssemblyQuestLoader reference266 = questStep15; obj251.Steps = list366; reference265 = obj251; - num++; - ref QuestSequence reference267 = ref span359[num]; + ref QuestSequence reference267 = ref span124[4]; QuestSequence obj252 = new QuestSequence { Sequence = 4 @@ -440307,9 +362049,8 @@ public static class AssemblyQuestLoader num2 = 2; List list368 = new List(num2); CollectionsMarshal.SetCount(list368, num2); - Span span368 = CollectionsMarshal.AsSpan(list368); - index2 = 0; - ref QuestStep reference268 = ref span368[index2]; + Span span129 = CollectionsMarshal.AsSpan(list368); + ref QuestStep reference268 = ref span129[0]; QuestStep obj253 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(364.1419f, 5.9295864f, 435.2963f), 1190) { Fly = true, @@ -440320,54 +362061,42 @@ public static class AssemblyQuestLoader num3 = 6; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - 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); + 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); skipStepConditions11.CompletionQuestVariablesFlags = list369; skipStepConditions11.Flying = ELockedSkipCondition.Locked; skipConditions11.StepIf = skipStepConditions11; obj253.SkipConditions = skipConditions11; reference268 = obj253; - index2++; - span368[index2] = new QuestStep(EInteractionType.Interact, 1051315u, new Vector3(362.87476f, 5.9371996f, 427.2068f), 1190); + span129[1] = new QuestStep(EInteractionType.Interact, 1051315u, new Vector3(362.87476f, 5.9371996f, 427.2068f), 1190); obj252.Steps = list368; reference267 = obj252; - num++; - ref QuestSequence reference269 = ref span359[num]; + ref QuestSequence reference269 = ref span124[5]; QuestSequence obj254 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Mount = true }; - num2++; - span370[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) + span131[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(359.11545f, 1.9823306f, 419.5714f), 1190) { DisableNavmesh = true }; - num2++; - span370[num2] = new QuestStep(EInteractionType.Interact, 1051321u, new Vector3(357.7782f, -1.0164845f, 438.37634f), 1190); + span131[2] = new QuestStep(EInteractionType.Interact, 1051321u, new Vector3(357.7782f, -1.0164845f, 438.37634f), 1190); obj254.Steps = list370; reference269 = obj254; - num++; - ref QuestSequence reference270 = ref span359[num]; + ref QuestSequence reference270 = ref span124[6]; QuestSequence obj255 = new QuestSequence { Sequence = 6 @@ -440375,27 +362104,22 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - span371[index2] = new QuestStep(EInteractionType.Interact, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) + CollectionsMarshal.AsSpan(list371)[0] = new QuestStep(EInteractionType.Interact, 1051302u, new Vector3(-380.33118f, 18.1636f, -118.54736f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj255.Steps = list371; reference270 = obj255; - num++; - ref QuestSequence reference271 = ref span359[num]; + ref QuestSequence reference271 = ref span124[7]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj256.Steps = list372; reference271 = obj256; questRoot49.QuestSequence = list359; @@ -440405,16 +362129,13 @@ public static class AssemblyQuestLoader num = 1; List list373 = new List(num); CollectionsMarshal.SetCount(list373, num); - Span span373 = CollectionsMarshal.AsSpan(list373); - index = 0; - span373[index] = "liza"; + CollectionsMarshal.AsSpan(list373)[0] = "liza"; questRoot50.Author = list373; - index = 3; - List list374 = new List(index); - CollectionsMarshal.SetCount(list374, index); - Span span374 = CollectionsMarshal.AsSpan(list374); - num = 0; - ref QuestSequence reference272 = ref span374[num]; + num = 3; + List list374 = new List(num); + CollectionsMarshal.SetCount(list374, num); + Span span132 = CollectionsMarshal.AsSpan(list374); + ref QuestSequence reference272 = ref span132[0]; QuestSequence obj257 = new QuestSequence { Sequence = 0 @@ -440422,9 +362143,7 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - span375[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191) + CollectionsMarshal.AsSpan(list375)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -440442,44 +362161,35 @@ public static class AssemblyQuestLoader }; obj257.Steps = list375; reference272 = obj257; - num++; - ref QuestSequence reference273 = ref span374[num]; + ref QuestSequence reference273 = ref span132[1]; QuestSequence obj258 = new QuestSequence { Sequence = 1 }; - index2 = 9; - List list376 = new List(index2); - CollectionsMarshal.SetCount(list376, index2); - Span span376 = CollectionsMarshal.AsSpan(list376); - num2 = 0; - ref QuestStep reference274 = ref span376[num2]; + num2 = 9; + List list376 = new List(num2); + CollectionsMarshal.SetCount(list376, num2); + Span span133 = CollectionsMarshal.AsSpan(list376); + ref QuestStep reference274 = ref span133[0]; QuestStep questStep16 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-212.22218f, 30f, -620.3656f), 1191); SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions12 = new SkipStepConditions(); - 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); + 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); skipStepConditions12.CompletionQuestVariablesFlags = list377; skipStepConditions12.Flying = ELockedSkipCondition.Unlocked; skipConditions12.StepIf = skipStepConditions12; questStep16.SkipConditions = skipConditions12; reference274 = questStep16; - num2++; - ref QuestStep reference275 = ref span376[num2]; + ref QuestStep reference275 = ref span133[1]; QuestStep obj259 = new QuestStep(EInteractionType.UseItem, 2014079u, new Vector3(-213.24487f, 30.838379f, -618.0362f), 1191) { ItemId = 2003594u, @@ -440494,75 +362204,54 @@ public static class AssemblyQuestLoader num3 = 6; List list378 = new List(num3); CollectionsMarshal.SetCount(list378, num3); - 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); + 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); obj259.CompletionQuestVariablesFlags = list378; reference275 = obj259; - num2++; - ref QuestStep reference276 = ref span376[num2]; + ref QuestStep reference276 = ref span133[2]; QuestStep obj260 = new QuestStep(EInteractionType.UseItem, 2014079u, new Vector3(-213.24487f, 30.838379f, -618.0362f), 1191) { StopDistance = 0.25f, Fly = true, ItemId = 2003594u }; - 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); + 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); obj260.CompletionQuestVariablesFlags = list379; reference276 = obj260; - num2++; - ref QuestStep reference277 = ref span376[num2]; + ref QuestStep reference277 = ref span133[3]; 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 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); + 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); skipStepConditions13.CompletionQuestVariablesFlags = list380; skipStepConditions13.Flying = ELockedSkipCondition.Unlocked; skipConditions13.StepIf = skipStepConditions13; questStep17.SkipConditions = skipConditions13; reference277 = questStep17; - num2++; - ref QuestStep reference278 = ref span376[num2]; + ref QuestStep reference278 = ref span133[4]; QuestStep obj261 = new QuestStep(EInteractionType.UseItem, 2014078u, new Vector3(-272.8161f, 37.857544f, -504.9058f), 1191) { ItemId = 2003594u, @@ -440574,26 +362263,19 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj261.CompletionQuestVariablesFlags = list381; reference278 = obj261; - num2++; - ref QuestStep reference279 = ref span376[num2]; + ref QuestStep reference279 = ref span133[5]; QuestStep obj262 = new QuestStep(EInteractionType.UseItem, 2014078u, new Vector3(-272.8161f, 37.857544f, -504.9058f), 1191) { StopDistance = 0.25f, @@ -440603,49 +362285,35 @@ public static class AssemblyQuestLoader num3 = 6; List list382 = new List(num3); CollectionsMarshal.SetCount(list382, num3); - 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); + 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); obj262.CompletionQuestVariablesFlags = list382; reference279 = obj262; - num2++; - ref QuestStep reference280 = ref span376[num2]; + ref QuestStep reference280 = ref span133[6]; QuestStep questStep18 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-346.93515f, 37.00001f, -611.26953f), 1191); SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions14 = new SkipStepConditions(); - 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); + 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); skipStepConditions14.CompletionQuestVariablesFlags = list383; skipStepConditions14.Flying = ELockedSkipCondition.Unlocked; skipConditions14.StepIf = skipStepConditions14; questStep18.SkipConditions = skipConditions14; reference280 = questStep18; - num2++; - ref QuestStep reference281 = ref span376[num2]; + ref QuestStep reference281 = ref span133[7]; QuestStep obj263 = new QuestStep(EInteractionType.UseItem, 2014080u, new Vector3(-349.1112f, 37.857544f, -610.5898f), 1191) { ItemId = 2003594u, @@ -440660,51 +362328,37 @@ public static class AssemblyQuestLoader num3 = 6; List list384 = new List(num3); CollectionsMarshal.SetCount(list384, num3); - 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); + 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); obj263.CompletionQuestVariablesFlags = list384; reference281 = obj263; - num2++; - ref QuestStep reference282 = ref span376[num2]; + ref QuestStep reference282 = ref span133[8]; QuestStep obj264 = new QuestStep(EInteractionType.UseItem, 2014080u, new Vector3(-349.1112f, 37.857544f, -610.5898f), 1191) { StopDistance = 0.25f, Fly = true, ItemId = 2003594u }; - 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); + 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); obj264.CompletionQuestVariablesFlags = list385; reference282 = obj264; obj258.Steps = list376; reference273 = obj258; - num++; - ref QuestSequence reference283 = ref span374[num]; + ref QuestSequence reference283 = ref span132[2]; QuestSequence obj265 = new QuestSequence { Sequence = byte.MaxValue @@ -440712,14 +362366,12 @@ public static class AssemblyQuestLoader num2 = 2; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - span386[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.87784f, 30f, -577.24225f), 1191) + Span span143 = CollectionsMarshal.AsSpan(list386); + span143[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-270.87784f, 30f, -577.24225f), 1191) { Fly = true }; - index2++; - span386[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191); + span143[1] = new QuestStep(EInteractionType.CompleteQuest, 1049442u, new Vector3(-272.23627f, 30.001156f, -577.59973f), 1191); obj265.Steps = list386; reference283 = obj265; questRoot50.QuestSequence = list374; @@ -440733,16 +362385,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -440750,9 +362399,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -440770,30 +362417,26 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 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(-316.46542f, 38.99998f, -622.67126f), 1191) + 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) { Mount = true }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1049475u, new Vector3(-69.87109f, 36.567646f, -217.39532f), 1191) + span2[1] = new QuestStep(EInteractionType.Interact, 1049475u, new Vector3(-69.87109f, 36.567646f, -217.39532f), 1191) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -440801,9 +362444,7 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - ref QuestStep reference4 = ref span5[index2]; + ref QuestStep reference4 = ref CollectionsMarshal.AsSpan(list5)[0]; QuestStep obj4 = new QuestStep(EInteractionType.Interact, 2014084u, new Vector3(-69.68799f, 36.972534f, -215.7168f), 1191) { StopDistance = 4.5f @@ -440811,9 +362452,7 @@ public static class AssemblyQuestLoader int num3 = 1; List list6 = new List(num3); CollectionsMarshal.SetCount(list6, num3); - Span span6 = CollectionsMarshal.AsSpan(list6); - int index3 = 0; - span6[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list6)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZF002_05150_Q1_100_008") @@ -440822,23 +362461,20 @@ public static class AssemblyQuestLoader reference4 = obj4; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span7[num2] = new QuestStep(EInteractionType.CompleteQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191); + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1049465u, new Vector3(-333.3944f, 43.50267f, -643.64087f), 1191); obj5.Steps = list7; reference5 = obj5; questRoot.QuestSequence = list2; @@ -440848,16 +362484,13 @@ public static class AssemblyQuestLoader num = 1; List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); - Span span8 = CollectionsMarshal.AsSpan(list8); - index = 0; - span8[index] = "liza"; + CollectionsMarshal.AsSpan(list8)[0] = "liza"; questRoot2.Author = list8; - index = 6; - List list9 = new List(index); - CollectionsMarshal.SetCount(list9, index); - Span span9 = CollectionsMarshal.AsSpan(list9); - num = 0; - ref QuestSequence reference6 = ref span9[num]; + num = 6; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); + Span span4 = CollectionsMarshal.AsSpan(list9); + ref QuestSequence reference6 = ref span4[0]; QuestSequence obj6 = new QuestSequence { Sequence = 0 @@ -440865,9 +362498,7 @@ public static class AssemblyQuestLoader num2 = 1; List list10 = new List(num2); CollectionsMarshal.SetCount(list10, num2); - Span span10 = CollectionsMarshal.AsSpan(list10); - index2 = 0; - span10[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) + CollectionsMarshal.AsSpan(list10)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050659u, new Vector3(-215.198f, 36.994804f, -497.85614f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -440885,22 +362516,18 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span9[num]; + ref QuestSequence reference7 = ref span4[1]; QuestSequence obj7 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span9[num]; + ref QuestSequence reference8 = ref span4[2]; QuestSequence obj8 = new QuestSequence { Sequence = 2 @@ -440908,35 +362535,29 @@ public static class AssemblyQuestLoader num2 = 1; List list12 = new List(num2); CollectionsMarshal.SetCount(list12, num2); - Span span12 = CollectionsMarshal.AsSpan(list12); - index2 = 0; - span12[index2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-185.05022f, 30.989729f, -513.96875f), 1191) + CollectionsMarshal.AsSpan(list12)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-185.05022f, 30.989729f, -513.96875f), 1191) { StopDistance = 0.5f, Fly = true }; obj8.Steps = list12; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span9[num]; + ref QuestSequence reference9 = ref span4[3]; QuestSequence obj9 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.5f, Fly = true }; obj9.Steps = list13; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span9[num]; + ref QuestSequence reference10 = ref span4[4]; QuestSequence obj10 = new QuestSequence { Sequence = 4 @@ -440944,27 +362565,22 @@ public static class AssemblyQuestLoader num2 = 1; List list14 = new List(num2); CollectionsMarshal.SetCount(list14, num2); - Span span14 = CollectionsMarshal.AsSpan(list14); - index2 = 0; - span14[index2] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-165.5087f, 38.967262f, -706.4246f), 1191) + CollectionsMarshal.AsSpan(list14)[0] = new QuestStep(EInteractionType.Interact, 1050659u, new Vector3(-165.5087f, 38.967262f, -706.4246f), 1191) { StopDistance = 0.5f, Fly = true }; obj10.Steps = list14; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span9[num]; + ref QuestSequence reference11 = ref span4[5]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -440977,16 +362593,13 @@ public static class AssemblyQuestLoader num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span16 = CollectionsMarshal.AsSpan(list16); - index = 0; - span16[index] = "liza"; + CollectionsMarshal.AsSpan(list16)[0] = "liza"; questRoot3.Author = list16; - index = 6; - List list17 = new List(index); - CollectionsMarshal.SetCount(list17, index); - Span span17 = CollectionsMarshal.AsSpan(list17); - num = 0; - ref QuestSequence reference12 = ref span17[num]; + num = 6; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + Span span5 = CollectionsMarshal.AsSpan(list17); + ref QuestSequence reference12 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 @@ -440994,9 +362607,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050660u, new Vector3(421.8661f, 90f, -476.67664f), 1191) { Fly = true, Land = true, @@ -441016,26 +362627,22 @@ public static class AssemblyQuestLoader }; obj12.Steps = list18; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span17[num]; + ref QuestSequence reference13 = ref span5[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj13.Steps = list19; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span17[num]; + ref QuestSequence reference14 = ref span5[2]; QuestSequence obj14 = new QuestSequence { Sequence = 2 @@ -441043,35 +362650,29 @@ public static class AssemblyQuestLoader num2 = 1; List list20 = new List(num2); CollectionsMarshal.SetCount(list20, num2); - Span span20 = CollectionsMarshal.AsSpan(list20); - index2 = 0; - span20[index2] = new QuestStep(EInteractionType.Emote, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) + CollectionsMarshal.AsSpan(list20)[0] = new QuestStep(EInteractionType.Emote, 1050661u, new Vector3(-136.09528f, 26.068634f, -509.39197f), 1191) { Fly = true, Emote = EEmote.Cheer }; obj14.Steps = list20; reference14 = obj14; - num++; - ref QuestSequence reference15 = ref span17[num]; + ref QuestSequence reference15 = ref span5[3]; QuestSequence obj15 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Emote = EEmote.Cheer }; obj15.Steps = list21; reference15 = obj15; - num++; - ref QuestSequence reference16 = ref span17[num]; + ref QuestSequence reference16 = ref span5[4]; QuestSequence obj16 = new QuestSequence { Sequence = 4 @@ -441079,9 +362680,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.Emote, 1050727u, new Vector3(309.65125f, 71.38871f, -473.68585f), 1191) + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.Emote, 1050727u, new Vector3(309.65125f, 71.38871f, -473.68585f), 1191) { StopDistance = 0.25f, Fly = true, @@ -441089,18 +362688,15 @@ public static class AssemblyQuestLoader }; obj16.Steps = list22; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span17[num]; + ref QuestSequence reference17 = ref span5[5]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 0.25f, Fly = true @@ -441114,16 +362710,13 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "liza"; + CollectionsMarshal.AsSpan(list24)[0] = "liza"; questRoot4.Author = list24; - index = 4; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference18 = ref span25[num]; + num = 4; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span6 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference18 = ref span6[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 @@ -441131,40 +362724,32 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049443u, new Vector3(-177.56934f, 29.999998f, -601.15967f), 1191); obj18.Steps = list26; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span6[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list27 = new List(index2); - CollectionsMarshal.SetCount(list27, index2); - Span span27 = CollectionsMarshal.AsSpan(list27); - num2 = 0; - ref QuestStep reference20 = ref span27[num2]; + num2 = 1; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + ref QuestStep reference20 = ref CollectionsMarshal.AsSpan(list27)[0]; QuestStep obj20 = new QuestStep(EInteractionType.Combat, null, new Vector3(352.85733f, 82.089386f, -355.71875f), 1191) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list28 = new List(index3); - CollectionsMarshal.SetCount(list28, index3); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - span28[num3] = 17677u; + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = 17677u; obj20.KillEnemyDataIds = list28; reference20 = obj20; obj19.Steps = list27; reference19 = obj19; - num++; - ref QuestSequence reference21 = ref span25[num]; + ref QuestSequence reference21 = ref span6[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -441172,26 +362757,21 @@ public static class AssemblyQuestLoader num2 = 1; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - span29[index2] = new QuestStep(EInteractionType.Interact, 1050664u, new Vector3(354.3297f, 82.042984f, -355.7641f), 1191) + CollectionsMarshal.AsSpan(list29)[0] = new QuestStep(EInteractionType.Interact, 1050664u, new Vector3(354.3297f, 82.042984f, -355.7641f), 1191) { StopDistance = 7f }; obj21.Steps = list29; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span25[num]; + ref QuestSequence reference22 = ref span6[3]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -441204,16 +362784,13 @@ public static class AssemblyQuestLoader num = 1; List list31 = new List(num); CollectionsMarshal.SetCount(list31, num); - Span span31 = CollectionsMarshal.AsSpan(list31); - index = 0; - span31[index] = "liza"; + CollectionsMarshal.AsSpan(list31)[0] = "liza"; questRoot5.Author = list31; - index = 3; - List list32 = new List(index); - CollectionsMarshal.SetCount(list32, index); - Span span32 = CollectionsMarshal.AsSpan(list32); - num = 0; - ref QuestSequence reference23 = ref span32[num]; + num = 3; + List list32 = new List(num); + CollectionsMarshal.SetCount(list32, num); + Span span7 = CollectionsMarshal.AsSpan(list32); + ref QuestSequence reference23 = ref span7[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 @@ -441221,30 +362798,24 @@ public static class AssemblyQuestLoader num2 = 1; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051378u, new Vector3(-184.89362f, 29.978386f, -584.52734f), 1191); + CollectionsMarshal.AsSpan(list33)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051378u, new Vector3(-184.89362f, 29.978386f, -584.52734f), 1191); obj23.Steps = list33; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span32[num]; + ref QuestSequence reference24 = ref span7[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj24.Steps = list34; reference24 = obj24; - num++; - ref QuestSequence reference25 = ref span32[num]; + ref QuestSequence reference25 = ref span7[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue @@ -441252,9 +362823,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051380u, new Vector3(-323.72015f, 36.98504f, -555.8404f), 1191); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051380u, new Vector3(-323.72015f, 36.98504f, -555.8404f), 1191); obj25.Steps = list35; reference25 = obj25; questRoot5.QuestSequence = list32; @@ -441264,26 +362833,21 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot6.Author = list36; - index = 3; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference26 = ref span37[num]; + num = 3; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span8 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference26 = ref span8[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -441302,8 +362866,7 @@ public static class AssemblyQuestLoader }; obj26.Steps = list38; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span37[num]; + ref QuestSequence reference27 = ref span8[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 @@ -441311,9 +362874,8 @@ public static class AssemblyQuestLoader num2 = 5; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - ref QuestStep reference28 = ref span39[index2]; + Span span9 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference28 = ref span9[0]; QuestStep obj28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-731.0091f, 10.949384f, -113.12315f), 1191) { Fly = true @@ -441323,49 +362885,35 @@ public static class AssemblyQuestLoader num3 = 6; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - 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); + 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); skipStepConditions.CompletionQuestVariablesFlags = list40; skipConditions.StepIf = skipStepConditions; obj28.SkipConditions = skipConditions; reference28 = obj28; - index2++; - ref QuestStep reference29 = ref span39[index2]; + ref QuestStep reference29 = ref span9[1]; QuestStep obj29 = new QuestStep(EInteractionType.Interact, 2014091u, new Vector3(-732.44836f, 11.459534f, -110.185425f), 1191) { StopDistance = 4f }; - 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); + 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); obj29.CompletionQuestVariablesFlags = list41; reference29 = obj29; - index2++; - ref QuestStep reference30 = ref span39[index2]; + ref QuestStep reference30 = ref span9[2]; QuestStep obj30 = new QuestStep(EInteractionType.Interact, 2014092u, new Vector3(-771.93866f, 8.2855835f, -37.583008f), 1191) { Fly = true @@ -441373,84 +362921,61 @@ public static class AssemblyQuestLoader num3 = 6; List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - 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); + 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); obj30.CompletionQuestVariablesFlags = list42; reference30 = obj30; - index2++; - ref QuestStep reference31 = ref span39[index2]; + ref QuestStep reference31 = ref span9[3]; 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(); - 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); + 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); skipStepConditions2.CompletionQuestVariablesFlags = list43; skipConditions2.StepIf = skipStepConditions2; obj31.SkipConditions = skipConditions2; reference31 = obj31; - index2++; - ref QuestStep reference32 = ref span39[index2]; + ref QuestStep reference32 = ref span9[4]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list44; reference32 = questStep; obj27.Steps = list39; reference27 = obj27; - num++; - ref QuestSequence reference33 = ref span37[num]; + ref QuestSequence reference33 = ref span8[2]; QuestSequence obj32 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts @@ -441464,16 +362989,13 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "liza"; + CollectionsMarshal.AsSpan(list46)[0] = "liza"; questRoot7.Author = list46; - index = 4; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference34 = ref span47[num]; + num = 4; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span15 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference34 = ref span15[0]; QuestSequence obj33 = new QuestSequence { Sequence = 0 @@ -441481,32 +363003,26 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj33.Steps = list48; reference34 = obj33; - num++; - ref QuestSequence reference35 = ref span47[num]; + ref QuestSequence reference35 = ref span15[1]; QuestSequence obj34 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetherCurrentId = 2818471u }; - num2++; - span49[num2] = new QuestStep(EInteractionType.Interact, 1050666u, new Vector3(-446.79944f, 37.14403f, -266.62097f), 1191); + span16[1] = new QuestStep(EInteractionType.Interact, 1050666u, new Vector3(-446.79944f, 37.14403f, -266.62097f), 1191); obj34.Steps = list49; reference35 = obj34; - num++; - ref QuestSequence reference36 = ref span47[num]; + ref QuestSequence reference36 = ref span15[2]; QuestSequence obj35 = new QuestSequence { Sequence = 2 @@ -441514,42 +363030,36 @@ public static class AssemblyQuestLoader num2 = 13; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-442.6795f, 40.021717f, -293.11053f), 1191) + Span span17 = CollectionsMarshal.AsSpan(list50); + span17[0] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-442.6795f, 40.021717f, -293.11053f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-447.5891f, 42.70318f, -318.90863f), 1191) + span17[1] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-447.5891f, 42.70318f, -318.90863f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-498.92047f, 40.894764f, -325.42456f), 1191) + span17[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-498.92047f, 40.894764f, -325.42456f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - ref QuestStep reference37 = ref span50[index2]; + ref QuestStep reference37 = ref span17[3]; QuestStep obj36 = new QuestStep(EInteractionType.Combat, null, new Vector3(-529.6522f, 41.341557f, -311.63504f), 1191) { StopDistance = 0.5f, DisableNavmesh = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list51 = new List(index3); - CollectionsMarshal.SetCount(list51, index3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - span51[num3] = new ComplexCombatData + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + CollectionsMarshal.AsSpan(list51)[0] = new ComplexCombatData { DataId = 17679u, MinimumKillCount = 1u, @@ -441558,73 +363068,61 @@ public static class AssemblyQuestLoader obj36.ComplexCombatData = list51; obj36.CombatDelaySecondsAtStart = 2f; reference37 = obj36; - 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) + 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) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-558.5067f, 35.95048f, -376.88058f), 1191) + span17[6] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-558.5067f, 35.95048f, -376.88058f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-596.211f, 30.139477f, -387.31094f), 1191) + span17[7] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-596.211f, 30.139477f, -387.31094f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-608.17377f, 17.933014f, -420.98196f), 1191) + span17[8] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-608.17377f, 17.933014f, -420.98196f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-611.266f, 10.040784f, -443.45764f), 1191) + span17[9] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-611.266f, 10.040784f, -443.45764f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-609.279f, 1.6734335f, -468.76624f), 1191) + span17[10] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-609.279f, 1.6734335f, -468.76624f), 1191) { StopDistance = 0.5f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) + span17[11] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 17678u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191) { StopDistance = 1f, NpcWaitDistance = 5f, DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.Interact, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); + span17[12] = new QuestStep(EInteractionType.Interact, 1049501u, new Vector3(-592.7062f, -2.4803436f, -489.28055f), 1191); obj35.Steps = list50; reference36 = obj35; - num++; - ref QuestSequence reference38 = ref span47[num]; + ref QuestSequence reference38 = ref span15[3]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj37.Steps = list52; reference38 = obj37; questRoot7.QuestSequence = list47; @@ -441634,16 +363132,13 @@ public static class AssemblyQuestLoader num = 1; List list53 = new List(num); CollectionsMarshal.SetCount(list53, num); - Span span53 = CollectionsMarshal.AsSpan(list53); - index = 0; - span53[index] = "liza"; + CollectionsMarshal.AsSpan(list53)[0] = "liza"; 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]; + num = 3; + List list54 = new List(num); + CollectionsMarshal.SetCount(list54, num); + Span span18 = CollectionsMarshal.AsSpan(list54); + ref QuestSequence reference39 = ref span18[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 @@ -441651,9 +363146,7 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike, @@ -441672,30 +363165,26 @@ public static class AssemblyQuestLoader }; obj38.Steps = list55; reference39 = obj38; - num++; - ref QuestSequence reference40 = ref span54[num]; + ref QuestSequence reference40 = ref span18[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; - num2++; - span56[num2] = new QuestStep(EInteractionType.Emote, 1050667u, new Vector3(-51.46869f, 66.87813f, 180.07166f), 1191) + span19[1] = new QuestStep(EInteractionType.Emote, 1050667u, new Vector3(-51.46869f, 66.87813f, 180.07166f), 1191) { Emote = EEmote.Poke }; obj39.Steps = list56; reference40 = obj39; - num++; - ref QuestSequence reference41 = ref span54[num]; + ref QuestSequence reference41 = ref span18[2]; QuestSequence obj40 = new QuestSequence { Sequence = byte.MaxValue @@ -441703,9 +363192,7 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049488u, new Vector3(-195.23926f, 31.00003f, 142.90063f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; @@ -441718,26 +363205,21 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "liza"; + CollectionsMarshal.AsSpan(list58)[0] = "liza"; questRoot9.Author = list58; - index = 3; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference42 = ref span59[num]; + num = 3; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span20 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference42 = ref span20[0]; QuestSequence obj41 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike, @@ -441756,8 +363238,7 @@ public static class AssemblyQuestLoader }; obj41.Steps = list60; reference42 = obj41; - num++; - ref QuestSequence reference43 = ref span59[num]; + ref QuestSequence reference43 = ref span20[1]; QuestSequence obj42 = new QuestSequence { Sequence = 1 @@ -441765,9 +363246,8 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - index2 = 0; - ref QuestStep reference44 = ref span61[index2]; + Span span21 = CollectionsMarshal.AsSpan(list61); + ref QuestStep reference44 = ref span21[0]; QuestStep obj43 = new QuestStep(EInteractionType.Combat, null, new Vector3(-174.01418f, 31.361284f, 268.5205f), 1191) { StopDistance = 0.5f, @@ -441777,32 +363257,23 @@ public static class AssemblyQuestLoader num3 = 2; List list62 = new List(num3); CollectionsMarshal.SetCount(list62, num3); - Span span62 = CollectionsMarshal.AsSpan(list62); - index3 = 0; - span62[index3] = 17682u; - index3++; - span62[index3] = 17683u; + Span span22 = CollectionsMarshal.AsSpan(list62); + span22[0] = 17682u; + span22[1] = 17683u; obj43.KillEnemyDataIds = list62; - 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); + 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); obj43.CompletionQuestVariablesFlags = list63; reference44 = obj43; - index2++; - ref QuestStep reference45 = ref span61[index2]; + ref QuestStep reference45 = ref span21[1]; QuestStep obj44 = new QuestStep(EInteractionType.Combat, null, new Vector3(-352.59204f, 39.809544f, -44.773865f), 1191) { StopDistance = 0.5f, @@ -441812,44 +363283,33 @@ public static class AssemblyQuestLoader num3 = 2; List list64 = new List(num3); CollectionsMarshal.SetCount(list64, num3); - Span span64 = CollectionsMarshal.AsSpan(list64); - index3 = 0; - span64[index3] = 17680u; - index3++; - span64[index3] = 17681u; + Span span24 = CollectionsMarshal.AsSpan(list64); + span24[0] = 17680u; + span24[1] = 17681u; obj44.KillEnemyDataIds = list64; - 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); + 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); obj44.CompletionQuestVariablesFlags = list65; reference45 = obj44; obj42.Steps = list61; reference43 = obj42; - num++; - ref QuestSequence reference46 = ref span59[num]; + ref QuestSequence reference46 = ref span20[2]; QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; @@ -441862,16 +363322,13 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "liza"; + CollectionsMarshal.AsSpan(list67)[0] = "liza"; questRoot10.Author = list67; - index = 4; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference47 = ref span68[num]; + num = 4; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span26 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference47 = ref span26[0]; QuestSequence obj46 = new QuestSequence { Sequence = 0 @@ -441879,47 +363336,35 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191); + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049505u, new Vector3(-209.85736f, 7.49638f, 595.9104f), 1191); obj46.Steps = list69; reference47 = obj46; - num++; - ref QuestSequence reference48 = ref span68[num]; + ref QuestSequence reference48 = ref span26[1]; QuestSequence obj47 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 4.5f, Comment = "While counterintuitive, this is the closest aether current/msq quest", AetherCurrentId = 2818473u }; - num2++; - span70[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81693f, -2.2232819f, 665.8315f), 1191); - num2++; - ref QuestStep reference49 = ref span70[num2]; + span27[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-264.81693f, -2.2232819f, 665.8315f), 1191); + ref QuestStep reference49 = ref span27[6]; 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); - Span span71 = CollectionsMarshal.AsSpan(list71); - index3 = 0; - span71[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list71)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZF105_05159_Q1_100_006") @@ -441928,8 +363373,7 @@ public static class AssemblyQuestLoader reference49 = questStep2; obj47.Steps = list70; reference48 = obj47; - num++; - ref QuestSequence reference50 = ref span68[num]; + ref QuestSequence reference50 = ref span26[2]; QuestSequence obj48 = new QuestSequence { Sequence = 2 @@ -441937,105 +363381,74 @@ public static class AssemblyQuestLoader num2 = 4; List list72 = new List(num2); CollectionsMarshal.SetCount(list72, num2); - Span span72 = CollectionsMarshal.AsSpan(list72); - index2 = 0; - ref QuestStep reference51 = ref span72[index2]; + Span span28 = CollectionsMarshal.AsSpan(list72); + ref QuestStep reference51 = ref span28[0]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014094u, new Vector3(216.44922f, 89.15845f, 657.3739f), 1191); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list73; reference51 = questStep3; - index2++; - ref QuestStep reference52 = ref span72[index2]; + ref QuestStep reference52 = ref span28[1]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list74; reference52 = questStep4; - index2++; - ref QuestStep reference53 = ref span72[index2]; + ref QuestStep reference53 = ref span28[2]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014217u, new Vector3(232.47119f, 89.98242f, 614.4961f), 1191); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list75; reference53 = questStep5; - index2++; - ref QuestStep reference54 = ref span72[index2]; + ref QuestStep reference54 = ref span28[3]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list76; reference54 = questStep6; obj48.Steps = list72; reference50 = obj48; - num++; - ref QuestSequence reference55 = ref span68[num]; + ref QuestSequence reference55 = ref span26[3]; QuestSequence obj49 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj49.Steps = list77; reference55 = obj49; questRoot10.QuestSequence = list68; @@ -442045,16 +363458,13 @@ public static class AssemblyQuestLoader num = 1; List list78 = new List(num); CollectionsMarshal.SetCount(list78, num); - Span span78 = CollectionsMarshal.AsSpan(list78); - index = 0; - span78[index] = "liza"; + CollectionsMarshal.AsSpan(list78)[0] = "liza"; questRoot11.Author = list78; - index = 4; - List list79 = new List(index); - CollectionsMarshal.SetCount(list79, index); - Span span79 = CollectionsMarshal.AsSpan(list79); - num = 0; - ref QuestSequence reference56 = ref span79[num]; + num = 4; + List list79 = new List(num); + CollectionsMarshal.SetCount(list79, num); + Span span33 = CollectionsMarshal.AsSpan(list79); + ref QuestSequence reference56 = ref span33[0]; QuestSequence obj50 = new QuestSequence { Sequence = 0 @@ -442062,40 +363472,32 @@ public static class AssemblyQuestLoader num2 = 1; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - index2 = 0; - span80[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); + CollectionsMarshal.AsSpan(list80)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050805u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191); obj50.Steps = list80; reference56 = obj50; - num++; - ref QuestSequence reference57 = ref span79[num]; + ref QuestSequence reference57 = ref span33[1]; QuestSequence obj51 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list81 = new List(index2); - CollectionsMarshal.SetCount(list81, index2); - Span span81 = CollectionsMarshal.AsSpan(list81); - num2 = 0; - ref QuestStep reference58 = ref span81[num2]; + num2 = 1; + List list81 = new List(num2); + CollectionsMarshal.SetCount(list81, num2); + ref QuestStep reference58 = ref CollectionsMarshal.AsSpan(list81)[0]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, null, new Vector3(213.87216f, 92.47675f, -298.49872f), 1191) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list82 = new List(index3); - CollectionsMarshal.SetCount(list82, index3); - Span span82 = CollectionsMarshal.AsSpan(list82); - num3 = 0; - span82[num3] = 17684u; + num3 = 1; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + CollectionsMarshal.AsSpan(list82)[0] = 17684u; obj52.KillEnemyDataIds = list82; reference58 = obj52; obj51.Steps = list81; reference57 = obj51; - num++; - ref QuestSequence reference59 = ref span79[num]; + ref QuestSequence reference59 = ref span33[2]; QuestSequence obj53 = new QuestSequence { Sequence = 2 @@ -442103,35 +363505,28 @@ public static class AssemblyQuestLoader num2 = 1; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - span83[index2] = new QuestStep(EInteractionType.Interact, 1050803u, new Vector3(217.57837f, 92.40237f, -296.19293f), 1191) + CollectionsMarshal.AsSpan(list83)[0] = new QuestStep(EInteractionType.Interact, 1050803u, new Vector3(217.57837f, 92.40237f, -296.19293f), 1191) { StopDistance = 7f }; obj53.Steps = list83; reference59 = obj53; - num++; - ref QuestSequence reference60 = ref span79[num]; + ref QuestSequence reference60 = ref span33[3]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818468u }; - num2++; - span84[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050946u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + span34[3] = new QuestStep(EInteractionType.CompleteQuest, 1050946u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; @@ -442144,16 +363539,13 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "liza"; + CollectionsMarshal.AsSpan(list85)[0] = "liza"; questRoot12.Author = list85; - index = 5; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference61 = ref span86[num]; + num = 5; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span35 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference61 = ref span35[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -442161,9 +363553,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -442182,22 +363572,18 @@ public static class AssemblyQuestLoader }; obj55.Steps = list87; reference61 = obj55; - num++; - ref QuestSequence reference62 = ref span86[num]; + ref QuestSequence reference62 = ref span35[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj56.Steps = list88; reference62 = obj56; - num++; - ref QuestSequence reference63 = ref span86[num]; + ref QuestSequence reference63 = ref span35[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -442205,9 +363591,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - ref QuestStep reference64 = ref span89[index2]; + ref QuestStep reference64 = ref CollectionsMarshal.AsSpan(list89)[0]; QuestStep obj58 = new QuestStep(EInteractionType.Interact, 1050807u, new Vector3(-165.97241f, 25.979595f, -502.80005f), 1191) { Fly = true @@ -442215,9 +363599,7 @@ public static class AssemblyQuestLoader num3 = 1; List list90 = new List(num3); CollectionsMarshal.SetCount(list90, num3); - Span span90 = CollectionsMarshal.AsSpan(list90); - index3 = 0; - span90[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list90)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZF202_05161_Q1_000_001"), @@ -442227,42 +363609,33 @@ public static class AssemblyQuestLoader reference64 = obj58; obj57.Steps = list89; reference63 = obj57; - num++; - ref QuestSequence reference65 = ref span86[num]; + ref QuestSequence reference65 = ref span35[3]; QuestSequence obj59 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list91 = new List(index2); - CollectionsMarshal.SetCount(list91, index2); - Span span91 = CollectionsMarshal.AsSpan(list91); - num2 = 0; - ref QuestStep reference66 = ref span91[num2]; + num2 = 3; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + Span span36 = CollectionsMarshal.AsSpan(list91); + ref QuestStep reference66 = ref span36[0]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 2014035u, new Vector3(-61.478638f, 35.355103f, -294.75854f), 1191) { Fly = true }; - 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); + 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); obj60.CompletionQuestVariablesFlags = list92; reference66 = obj60; - num2++; - ref QuestStep reference67 = ref span91[num2]; + ref QuestStep reference67 = ref span36[1]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 2014036u, new Vector3(-99.53461f, 36.9115f, -233.47827f), 1191) { Fly = true @@ -442270,49 +363643,35 @@ public static class AssemblyQuestLoader num3 = 6; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - 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); + 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); obj61.CompletionQuestVariablesFlags = list93; reference67 = obj61; - num2++; - ref QuestStep reference68 = ref span91[num2]; + ref QuestStep reference68 = ref span36[2]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 2014037u, new Vector3(-38.31543f, 37.979614f, -221.5763f), 1191) { Fly = true }; - 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); + 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); obj62.CompletionQuestVariablesFlags = list94; reference68 = obj62; obj59.Steps = list91; reference65 = obj59; - num++; - ref QuestSequence reference69 = ref span86[num]; + ref QuestSequence reference69 = ref span35[4]; QuestSequence obj63 = new QuestSequence { Sequence = byte.MaxValue @@ -442320,9 +363679,7 @@ public static class AssemblyQuestLoader num2 = 1; List list95 = new List(num2); CollectionsMarshal.SetCount(list95, num2); - Span span95 = CollectionsMarshal.AsSpan(list95); - index2 = 0; - span95[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) + CollectionsMarshal.AsSpan(list95)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050802u, new Vector3(-153.09375f, 34.946026f, -581.0178f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -442337,26 +363694,21 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot13.Author = list96; - index = 5; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference70 = ref span97[num]; + num = 5; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span40 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference70 = ref span40[0]; QuestSequence obj64 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, @@ -442375,8 +363727,7 @@ public static class AssemblyQuestLoader }; obj64.Steps = list98; reference70 = obj64; - num++; - ref QuestSequence reference71 = ref span97[num]; + ref QuestSequence reference71 = ref span40[1]; QuestSequence obj65 = new QuestSequence { Sequence = 1 @@ -442384,33 +363735,27 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1050809u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1050809u, new Vector3(-59.372925f, 42.99715f, -637.2626f), 1191) { Fly = true }; obj65.Steps = list99; reference71 = obj65; - num++; - ref QuestSequence reference72 = ref span97[num]; + ref QuestSequence reference72 = ref span40[2]; QuestSequence obj66 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj66.Steps = list100; reference72 = obj66; - num++; - ref QuestSequence reference73 = ref span97[num]; + ref QuestSequence reference73 = ref span40[3]; QuestSequence obj67 = new QuestSequence { Sequence = 3 @@ -442418,26 +363763,21 @@ public static class AssemblyQuestLoader num2 = 1; List list101 = new List(num2); CollectionsMarshal.SetCount(list101, num2); - Span span101 = CollectionsMarshal.AsSpan(list101); - index2 = 0; - span101[index2] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(516.28033f, 145.60376f, 228.34976f), 1191) + CollectionsMarshal.AsSpan(list101)[0] = new QuestStep(EInteractionType.Interact, 1050810u, new Vector3(516.28033f, 145.60376f, 228.34976f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation }; obj67.Steps = list101; reference73 = obj67; - num++; - ref QuestSequence reference74 = ref span97[num]; + ref QuestSequence reference74 = ref span40[4]; QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(5163) @@ -442451,16 +363791,13 @@ public static class AssemblyQuestLoader num = 1; List list103 = new List(num); CollectionsMarshal.SetCount(list103, num); - Span span103 = CollectionsMarshal.AsSpan(list103); - index = 0; - span103[index] = "liza"; + CollectionsMarshal.AsSpan(list103)[0] = "liza"; questRoot14.Author = list103; - index = 4; - List list104 = new List(index); - CollectionsMarshal.SetCount(list104, index); - Span span104 = CollectionsMarshal.AsSpan(list104); - num = 0; - ref QuestSequence reference75 = ref span104[num]; + num = 4; + List list104 = new List(num); + CollectionsMarshal.SetCount(list104, num); + Span span41 = CollectionsMarshal.AsSpan(list104); + ref QuestSequence reference75 = ref span41[0]; QuestSequence obj69 = new QuestSequence { Sequence = 0 @@ -442468,9 +363805,7 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050806u, new Vector3(-151.99518f, 34.94368f, -581.23145f), 1191) { StopDistance = 5f, Fly = true, @@ -442490,25 +363825,21 @@ public static class AssemblyQuestLoader }; obj69.Steps = list105; reference75 = obj69; - num++; - ref QuestSequence reference76 = ref span104[num]; + ref QuestSequence reference76 = ref span41[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj70.Steps = list106; reference76 = obj70; - num++; - ref QuestSequence reference77 = ref span104[num]; + ref QuestSequence reference77 = ref span41[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -442516,9 +363847,8 @@ public static class AssemblyQuestLoader num2 = 2; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - ref QuestStep reference78 = ref span107[index2]; + Span span42 = CollectionsMarshal.AsSpan(list107); + ref QuestStep reference78 = ref span42[0]; QuestStep obj72 = new QuestStep(EInteractionType.Combat, 2014063u, new Vector3(46.00586f, 34.01233f, -411.33746f), 1191) { StopDistance = 0.5f, @@ -442528,30 +363858,21 @@ public static class AssemblyQuestLoader num3 = 1; List list108 = new List(num3); CollectionsMarshal.SetCount(list108, num3); - Span span108 = CollectionsMarshal.AsSpan(list108); - index3 = 0; - span108[index3] = 17685u; + CollectionsMarshal.AsSpan(list108)[0] = 17685u; obj72.KillEnemyDataIds = list108; - 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); + 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); obj72.CompletionQuestVariablesFlags = list109; reference78 = obj72; - index2++; - ref QuestStep reference79 = ref span107[index2]; + ref QuestStep reference79 = ref span42[1]; QuestStep obj73 = new QuestStep(EInteractionType.Combat, 2014077u, new Vector3(-22.110352f, 34.6532f, -268.9403f), 1191) { StopDistance = 0.5f, @@ -442561,42 +363882,31 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - Span span110 = CollectionsMarshal.AsSpan(list110); - index3 = 0; - span110[index3] = 17685u; + CollectionsMarshal.AsSpan(list110)[0] = 17685u; obj73.KillEnemyDataIds = list110; - 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); + 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); obj73.CompletionQuestVariablesFlags = list111; reference79 = obj73; obj71.Steps = list107; reference77 = obj71; - num++; - ref QuestSequence reference80 = ref span104[num]; + ref QuestSequence reference80 = ref span41[3]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -442609,16 +363919,13 @@ public static class AssemblyQuestLoader num = 1; List list113 = new List(num); CollectionsMarshal.SetCount(list113, num); - Span span113 = CollectionsMarshal.AsSpan(list113); - index = 0; - span113[index] = "liza"; + CollectionsMarshal.AsSpan(list113)[0] = "liza"; questRoot15.Author = list113; - index = 3; - List list114 = new List(index); - CollectionsMarshal.SetCount(list114, index); - Span span114 = CollectionsMarshal.AsSpan(list114); - num = 0; - ref QuestSequence reference81 = ref span114[num]; + num = 3; + List list114 = new List(num); + CollectionsMarshal.SetCount(list114, num); + Span span45 = CollectionsMarshal.AsSpan(list114); + ref QuestSequence reference81 = ref span45[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -442626,23 +363933,19 @@ public static class AssemblyQuestLoader num2 = 1; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - index2 = 0; - span115[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186); + CollectionsMarshal.AsSpan(list115)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186); obj75.Steps = list115; reference81 = obj75; - num++; - ref QuestSequence reference82 = ref span114[num]; + ref QuestSequence reference82 = ref span45[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -442650,12 +363953,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - num2++; - span116[num2] = new QuestStep(EInteractionType.Interact, 1050492u, new Vector3(-446.25012f, 13.999722f, 195.23914f), 1186); + span46[1] = new QuestStep(EInteractionType.Interact, 1050492u, new Vector3(-446.25012f, 13.999722f, 195.23914f), 1186); obj76.Steps = list116; reference82 = obj76; - num++; - ref QuestSequence reference83 = ref span114[num]; + ref QuestSequence reference83 = ref span45[2]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue @@ -442663,17 +363964,14 @@ public static class AssemblyQuestLoader num2 = 3; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - 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) + 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) { DisableNavmesh = true, Comment = "For some reason navmesh wanders off through the whole area" }; - index2++; - span117[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186) + span47[2] = new QuestStep(EInteractionType.CompleteQuest, 1051388u, new Vector3(-185.47345f, 0.66f, -42.648987f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -442690,33 +363988,26 @@ public static class AssemblyQuestLoader num = 1; List list118 = new List(num); CollectionsMarshal.SetCount(list118, num); - Span span118 = CollectionsMarshal.AsSpan(list118); - index = 0; - span118[index] = "liza"; + CollectionsMarshal.AsSpan(list118)[0] = "liza"; questRoot16.Author = list118; - index = 5; - List list119 = new List(index); - CollectionsMarshal.SetCount(list119, index); - Span span119 = CollectionsMarshal.AsSpan(list119); - num = 0; - ref QuestSequence reference84 = ref span119[num]; + num = 5; + List list119 = new List(num); + CollectionsMarshal.SetCount(list119, num); + Span span48 = CollectionsMarshal.AsSpan(list119); + ref QuestSequence reference84 = ref span48[0]; QuestSequence obj78 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + ref QuestStep reference85 = ref CollectionsMarshal.AsSpan(list120)[0]; 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); - Span span121 = CollectionsMarshal.AsSpan(list121); - index3 = 0; - span121[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list121)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG002_05165_Q1_000_000"), @@ -442726,8 +364017,7 @@ public static class AssemblyQuestLoader reference85 = questStep7; obj78.Steps = list120; reference84 = obj78; - num++; - ref QuestSequence reference86 = ref span119[num]; + ref QuestSequence reference86 = ref span48[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 @@ -442735,88 +364025,63 @@ public static class AssemblyQuestLoader num2 = 3; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - ref QuestStep reference87 = ref span122[index2]; + Span span49 = CollectionsMarshal.AsSpan(list122); + ref QuestStep reference87 = ref span49[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 2014339u, new Vector3(483.08533f, 61.386963f, 196.09363f), 1186); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list123; reference87 = questStep8; - index2++; - ref QuestStep reference88 = ref span122[index2]; + ref QuestStep reference88 = ref span49[1]; 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 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); + 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); questStep9.CompletionQuestVariablesFlags = list124; reference88 = questStep9; - index2++; - ref QuestStep reference89 = ref span122[index2]; + ref QuestStep reference89 = ref span49[2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 2014338u, new Vector3(456.2904f, 61.41748f, 68.89441f), 1186); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list125; reference89 = questStep10; obj79.Steps = list122; reference86 = obj79; - num++; - ref QuestSequence reference90 = ref span119[num]; + ref QuestSequence reference90 = ref span48[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj80.Steps = list126; reference90 = obj80; - num++; - ref QuestSequence reference91 = ref span119[num]; + ref QuestSequence reference91 = ref span48[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 @@ -442824,26 +364089,21 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Emote, 1051391u, new Vector3(497.94763f, 59.99981f, 160.84534f), 1186) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Emote, 1051391u, new Vector3(497.94763f, 59.99981f, 160.84534f), 1186) { Emote = EEmote.Doubt }; obj81.Steps = list127; reference91 = obj81; - num++; - ref QuestSequence reference92 = ref span119[num]; + ref QuestSequence reference92 = ref span48[4]; QuestSequence obj82 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj82.Steps = list128; reference92 = obj82; questRoot16.QuestSequence = list119; @@ -442853,16 +364113,13 @@ public static class AssemblyQuestLoader num = 1; List list129 = new List(num); CollectionsMarshal.SetCount(list129, num); - Span span129 = CollectionsMarshal.AsSpan(list129); - index = 0; - span129[index] = "liza"; + CollectionsMarshal.AsSpan(list129)[0] = "liza"; questRoot17.Author = list129; - index = 5; - List list130 = new List(index); - CollectionsMarshal.SetCount(list130, index); - Span span130 = CollectionsMarshal.AsSpan(list130); - num = 0; - ref QuestSequence reference93 = ref span130[num]; + num = 5; + List list130 = new List(num); + CollectionsMarshal.SetCount(list130, num); + Span span53 = CollectionsMarshal.AsSpan(list130); + ref QuestSequence reference93 = ref span53[0]; QuestSequence obj83 = new QuestSequence { Sequence = 0 @@ -442870,27 +364127,21 @@ public static class AssemblyQuestLoader num2 = 1; List list131 = new List(num2); CollectionsMarshal.SetCount(list131, num2); - Span span131 = CollectionsMarshal.AsSpan(list131); - index2 = 0; - span131[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); + CollectionsMarshal.AsSpan(list131)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051393u, new Vector3(-315.4193f, 14f, 155.7793f), 1186); obj83.Steps = list131; reference93 = obj83; - num++; - ref QuestSequence reference94 = ref span130[num]; + ref QuestSequence reference94 = ref span53[1]; QuestSequence obj84 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj84.Steps = list132; reference94 = obj84; - num++; - ref QuestSequence reference95 = ref span130[num]; + ref QuestSequence reference95 = ref span53[2]; QuestSequence obj85 = new QuestSequence { Sequence = 2 @@ -442898,9 +364149,7 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - ref QuestStep reference96 = ref span133[index2]; + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list133)[0]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 1051393u, new Vector3(-206.10861f, 2.1999774f, 213.03752f), 1186) { StopDistance = 0.25f @@ -442908,9 +364157,7 @@ public static class AssemblyQuestLoader num3 = 1; List list134 = new List(num3); CollectionsMarshal.SetCount(list134, num3); - Span span134 = CollectionsMarshal.AsSpan(list134); - index3 = 0; - span134[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list134)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG003_05166_Q2_000_000"), @@ -442920,25 +364167,21 @@ public static class AssemblyQuestLoader reference96 = obj86; obj85.Steps = list133; reference95 = obj85; - num++; - ref QuestSequence reference97 = ref span130[num]; + ref QuestSequence reference97 = ref span53[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f }; obj87.Steps = list135; reference97 = obj87; - num++; - ref QuestSequence reference98 = ref span130[num]; + ref QuestSequence reference98 = ref span53[4]; QuestSequence obj88 = new QuestSequence { Sequence = byte.MaxValue @@ -442946,9 +364189,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051395u, new Vector3(-3.55542f, 0.0005434508f, -85.89307f), 1186) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051395u, new Vector3(-3.55542f, 0.0005434508f, -85.89307f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -442965,30 +364206,24 @@ public static class AssemblyQuestLoader num = 1; List list137 = new List(num); CollectionsMarshal.SetCount(list137, num); - Span span137 = CollectionsMarshal.AsSpan(list137); - index = 0; - span137[index] = "liza"; + CollectionsMarshal.AsSpan(list137)[0] = "liza"; questRoot18.Author = list137; - index = 4; - List list138 = new List(index); - CollectionsMarshal.SetCount(list138, index); - Span span138 = CollectionsMarshal.AsSpan(list138); - num = 0; - ref QuestSequence reference99 = ref span138[num]; + num = 4; + List list138 = new List(num); + CollectionsMarshal.SetCount(list138, num); + Span span54 = CollectionsMarshal.AsSpan(list138); + ref QuestSequence reference99 = ref span54[0]; QuestSequence obj89 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj89.Steps = list139; reference99 = obj89; - num++; - ref QuestSequence reference100 = ref span138[num]; + ref QuestSequence reference100 = ref span54[1]; QuestSequence obj90 = new QuestSequence { Sequence = 1 @@ -442996,25 +364231,21 @@ public static class AssemblyQuestLoader num2 = 2; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - 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); + 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); obj90.Steps = list140; reference100 = obj90; - num++; - ref QuestSequence reference101 = ref span138[num]; + ref QuestSequence reference101 = ref span54[2]; QuestSequence obj91 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -443022,12 +364253,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - num2++; - span141[num2] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); + span56[1] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); obj91.Steps = list141; reference101 = obj91; - num++; - ref QuestSequence reference102 = ref span138[num]; + ref QuestSequence reference102 = ref span54[3]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -443035,9 +364264,7 @@ public static class AssemblyQuestLoader num2 = 1; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - Span span142 = CollectionsMarshal.AsSpan(list142); - index2 = 0; - span142[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186) + CollectionsMarshal.AsSpan(list142)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051396u, new Vector3(-346.7918f, 9.519508f, 18.20398f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -443054,30 +364281,24 @@ public static class AssemblyQuestLoader num = 1; List list143 = new List(num); CollectionsMarshal.SetCount(list143, num); - Span span143 = CollectionsMarshal.AsSpan(list143); - index = 0; - span143[index] = "liza"; + CollectionsMarshal.AsSpan(list143)[0] = "liza"; questRoot19.Author = list143; - index = 3; - List list144 = new List(index); - CollectionsMarshal.SetCount(list144, index); - Span span144 = CollectionsMarshal.AsSpan(list144); - num = 0; - ref QuestSequence reference103 = ref span144[num]; + num = 3; + List list144 = new List(num); + CollectionsMarshal.SetCount(list144, num); + Span span57 = CollectionsMarshal.AsSpan(list144); + ref QuestSequence reference103 = ref span57[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj93.Steps = list145; reference103 = obj93; - num++; - ref QuestSequence reference104 = ref span144[num]; + ref QuestSequence reference104 = ref span57[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -443085,84 +364306,60 @@ public static class AssemblyQuestLoader num2 = 3; List list146 = new List(num2); CollectionsMarshal.SetCount(list146, num2); - Span span146 = CollectionsMarshal.AsSpan(list146); - index2 = 0; - ref QuestStep reference105 = ref span146[index2]; + Span span58 = CollectionsMarshal.AsSpan(list146); + ref QuestStep reference105 = ref span58[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1051400u, new Vector3(-56.351562f, 38.0566f, -347.1275f), 1186); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list147; reference105 = questStep11; - index2++; - ref QuestStep reference106 = ref span146[index2]; + ref QuestStep reference106 = ref span58[1]; 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 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); + 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); questStep12.CompletionQuestVariablesFlags = list148; reference106 = questStep12; - index2++; - ref QuestStep reference107 = ref span146[index2]; + ref QuestStep reference107 = ref span58[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1051398u, new Vector3(38.254395f, 38.0566f, -357.99194f), 1186); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list149; reference107 = questStep13; obj94.Steps = list146; reference104 = obj94; - num++; - ref QuestSequence reference108 = ref span144[num]; + ref QuestSequence reference108 = ref span57[2]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj95.Steps = list150; reference108 = obj95; questRoot19.QuestSequence = list144; @@ -443172,16 +364369,13 @@ public static class AssemblyQuestLoader num = 1; List list151 = new List(num); CollectionsMarshal.SetCount(list151, num); - Span span151 = CollectionsMarshal.AsSpan(list151); - index = 0; - span151[index] = "liza"; + CollectionsMarshal.AsSpan(list151)[0] = "liza"; questRoot20.Author = list151; - index = 4; - List list152 = new List(index); - CollectionsMarshal.SetCount(list152, index); - Span span152 = CollectionsMarshal.AsSpan(list152); - num = 0; - ref QuestSequence reference109 = ref span152[num]; + num = 4; + List list152 = new List(num); + CollectionsMarshal.SetCount(list152, num); + Span span62 = CollectionsMarshal.AsSpan(list152); + ref QuestSequence reference109 = ref span62[0]; QuestSequence obj96 = new QuestSequence { Sequence = 0 @@ -443189,23 +364383,19 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051401u, new Vector3(383.90173f, 60f, 56.839844f), 1186); + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051401u, new Vector3(383.90173f, 60f, 56.839844f), 1186); obj96.Steps = list153; reference109 = obj96; - num++; - ref QuestSequence reference110 = ref span152[num]; + ref QuestSequence reference110 = ref span62[1]; QuestSequence obj97 = new QuestSequence { Sequence = 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(292.01248f, 51.401478f, 200.04631f), 1186) + 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) { AethernetShortcut = new AethernetShortcut { @@ -443213,12 +364403,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - num2++; - span154[num2] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); + span63[1] = new QuestStep(EInteractionType.Interact, 1048081u, new Vector3(292.16443f, 51.401485f, 202.65503f), 1186); obj97.Steps = list154; reference110 = obj97; - num++; - ref QuestSequence reference111 = ref span152[num]; + ref QuestSequence reference111 = ref span62[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 @@ -443226,9 +364414,7 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1051402u, new Vector3(-205.58484f, 1.9200057f, 7.583679f), 1186) + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1051402u, new Vector3(-205.58484f, 1.9200057f, 7.583679f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -443238,18 +364424,15 @@ public static class AssemblyQuestLoader }; obj98.Steps = list155; reference111 = obj98; - num++; - ref QuestSequence reference112 = ref span152[num]; + ref QuestSequence reference112 = ref span62[3]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -443266,16 +364449,13 @@ public static class AssemblyQuestLoader num = 1; List list157 = new List(num); CollectionsMarshal.SetCount(list157, num); - Span span157 = CollectionsMarshal.AsSpan(list157); - index = 0; - span157[index] = "liza"; + CollectionsMarshal.AsSpan(list157)[0] = "liza"; questRoot21.Author = list157; - index = 5; - List list158 = new List(index); - CollectionsMarshal.SetCount(list158, index); - Span span158 = CollectionsMarshal.AsSpan(list158); - num = 0; - ref QuestSequence reference113 = ref span158[num]; + num = 5; + List list158 = new List(num); + CollectionsMarshal.SetCount(list158, num); + Span span64 = CollectionsMarshal.AsSpan(list158); + ref QuestSequence reference113 = ref span64[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -443283,23 +364463,19 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051404u, new Vector3(-157.33582f, 2.1999714f, 229.69409f), 1186); + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051404u, new Vector3(-157.33582f, 2.1999714f, 229.69409f), 1186); obj100.Steps = list159; reference113 = obj100; - num++; - ref QuestSequence reference114 = ref span158[num]; + ref QuestSequence reference114 = ref span64[1]; QuestSequence obj101 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -443307,12 +364483,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTrueVue } }; - num2++; - span160[num2] = new QuestStep(EInteractionType.Interact, 1049154u, new Vector3(320.27148f, 52.41666f, 211.32214f), 1186); + span65[1] = new QuestStep(EInteractionType.Interact, 1049154u, new Vector3(320.27148f, 52.41666f, 211.32214f), 1186); obj101.Steps = list160; reference114 = obj101; - num++; - ref QuestSequence reference115 = ref span158[num]; + ref QuestSequence reference115 = ref span64[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -443320,9 +364494,7 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186) + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -443332,26 +364504,22 @@ public static class AssemblyQuestLoader }; obj102.Steps = list161; reference115 = obj102; - num++; - ref QuestSequence reference116 = ref span158[num]; + ref QuestSequence reference116 = ref span64[3]; QuestSequence obj103 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 4f, Emote = EEmote.Psych }; obj103.Steps = list162; reference116 = obj103; - num++; - ref QuestSequence reference117 = ref span158[num]; + ref QuestSequence reference117 = ref span64[4]; QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue @@ -443359,9 +364527,7 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - span163[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186); + CollectionsMarshal.AsSpan(list163)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051405u, new Vector3(-156.2677f, 2.199971f, 231.79968f), 1186); obj104.Steps = list163; reference117 = obj104; questRoot21.QuestSequence = list158; @@ -443371,30 +364537,24 @@ public static class AssemblyQuestLoader num = 1; List list164 = new List(num); CollectionsMarshal.SetCount(list164, num); - Span span164 = CollectionsMarshal.AsSpan(list164); - index = 0; - span164[index] = "liza"; + CollectionsMarshal.AsSpan(list164)[0] = "liza"; questRoot22.Author = list164; - index = 3; - List list165 = new List(index); - CollectionsMarshal.SetCount(list165, index); - Span span165 = CollectionsMarshal.AsSpan(list165); - num = 0; - ref QuestSequence reference118 = ref span165[num]; + num = 3; + List list165 = new List(num); + CollectionsMarshal.SetCount(list165, num); + Span span66 = CollectionsMarshal.AsSpan(list165); + ref QuestSequence reference118 = ref span66[0]; QuestSequence obj105 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj105.Steps = list166; reference118 = obj105; - num++; - ref QuestSequence reference119 = ref span165[num]; + ref QuestSequence reference119 = ref span66[1]; QuestSequence obj106 = new QuestSequence { Sequence = 1 @@ -443402,23 +364562,18 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.Interact, 2014345u, new Vector3(-206.92761f, 0.25933838f, -106.58429f), 1186); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.Interact, 2014345u, new Vector3(-206.92761f, 0.25933838f, -106.58429f), 1186); obj106.Steps = list167; reference119 = obj106; - num++; - ref QuestSequence reference120 = ref span165[num]; + ref QuestSequence reference120 = ref span66[2]; QuestSequence obj107 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj107.Steps = list168; reference120 = obj107; questRoot22.QuestSequence = list165; @@ -443428,16 +364583,13 @@ public static class AssemblyQuestLoader num = 1; List list169 = new List(num); CollectionsMarshal.SetCount(list169, num); - Span span169 = CollectionsMarshal.AsSpan(list169); - index = 0; - span169[index] = "liza"; + CollectionsMarshal.AsSpan(list169)[0] = "liza"; questRoot23.Author = list169; - index = 4; - List list170 = new List(index); - CollectionsMarshal.SetCount(list170, index); - Span span170 = CollectionsMarshal.AsSpan(list170); - num = 0; - ref QuestSequence reference121 = ref span170[num]; + num = 4; + List list170 = new List(num); + CollectionsMarshal.SetCount(list170, num); + Span span67 = CollectionsMarshal.AsSpan(list170); + ref QuestSequence reference121 = ref span67[0]; QuestSequence obj108 = new QuestSequence { Sequence = 0 @@ -443445,16 +364597,12 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - ref QuestStep reference122 = ref span171[index2]; + ref QuestStep reference122 = ref CollectionsMarshal.AsSpan(list171)[0]; 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); - Span span172 = CollectionsMarshal.AsSpan(list172); - index3 = 0; - span172[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list172)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZG009_05172_Q1_000_000"), @@ -443464,22 +364612,18 @@ public static class AssemblyQuestLoader reference122 = questStep14; obj108.Steps = list171; reference121 = obj108; - num++; - ref QuestSequence reference123 = ref span170[num]; + ref QuestSequence reference123 = ref span67[1]; QuestSequence obj109 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj109.Steps = list173; reference123 = obj109; - num++; - ref QuestSequence reference124 = ref span170[num]; + ref QuestSequence reference124 = ref span67[2]; QuestSequence obj110 = new QuestSequence { Sequence = 2 @@ -443487,26 +364631,21 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.Instruction, null, new Vector3(-375.93652f, 13.992493f, 144.06042f), 1186) + CollectionsMarshal.AsSpan(list174)[0] = 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; - num++; - ref QuestSequence reference125 = ref span170[num]; + ref QuestSequence reference125 = ref span67[3]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj111.Steps = list175; reference125 = obj111; questRoot23.QuestSequence = list170; @@ -443516,16 +364655,13 @@ public static class AssemblyQuestLoader num = 1; List list176 = new List(num); CollectionsMarshal.SetCount(list176, num); - Span span176 = CollectionsMarshal.AsSpan(list176); - index = 0; - span176[index] = "liza"; + CollectionsMarshal.AsSpan(list176)[0] = "liza"; questRoot24.Author = list176; - index = 5; - List list177 = new List(index); - CollectionsMarshal.SetCount(list177, index); - Span span177 = CollectionsMarshal.AsSpan(list177); - num = 0; - ref QuestSequence reference126 = ref span177[num]; + num = 5; + List list177 = new List(num); + CollectionsMarshal.SetCount(list177, num); + Span span68 = CollectionsMarshal.AsSpan(list177); + ref QuestSequence reference126 = ref span68[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 @@ -443533,27 +364669,21 @@ public static class AssemblyQuestLoader num2 = 1; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); + CollectionsMarshal.AsSpan(list178)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051381u, new Vector3(261.7074f, 59.699993f, 5.0201416f), 1186); obj112.Steps = list178; reference126 = obj112; - num++; - ref QuestSequence reference127 = ref span177[num]; + ref QuestSequence reference127 = ref span68[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj113.Steps = list179; reference127 = obj113; - num++; - ref QuestSequence reference128 = ref span177[num]; + ref QuestSequence reference128 = ref span68[2]; QuestSequence obj114 = new QuestSequence { Sequence = 2 @@ -443561,84 +364691,60 @@ public static class AssemblyQuestLoader num2 = 3; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - ref QuestStep reference129 = ref span180[index2]; + Span span69 = CollectionsMarshal.AsSpan(list180); + ref QuestStep reference129 = ref span69[0]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1051382u, new Vector3(317.46387f, 70.75f, -64.01166f), 1186); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list181; reference129 = questStep15; - index2++; - ref QuestStep reference130 = ref span180[index2]; + ref QuestStep reference130 = ref span69[1]; 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 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); + 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); questStep16.CompletionQuestVariablesFlags = list182; reference130 = questStep16; - index2++; - ref QuestStep reference131 = ref span180[index2]; + ref QuestStep reference131 = ref span69[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1051384u, new Vector3(253.52856f, 50.3f, 189.07446f), 1186); - 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); + 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); questStep17.CompletionQuestVariablesFlags = list183; reference131 = questStep17; obj114.Steps = list180; reference128 = obj114; - num++; - ref QuestSequence reference132 = ref span177[num]; + ref QuestSequence reference132 = ref span68[3]; QuestSequence obj115 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -443648,8 +364754,7 @@ public static class AssemblyQuestLoader }; obj115.Steps = list184; reference132 = obj115; - num++; - ref QuestSequence reference133 = ref span177[num]; + ref QuestSequence reference133 = ref span68[4]; QuestSequence obj116 = new QuestSequence { Sequence = byte.MaxValue @@ -443657,9 +364762,7 @@ public static class AssemblyQuestLoader num2 = 1; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - span185[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051386u, new Vector3(453.1776f, 61.38527f, 321.85852f), 1186); + CollectionsMarshal.AsSpan(list185)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051386u, new Vector3(453.1776f, 61.38527f, 321.85852f), 1186); obj116.Steps = list185; reference133 = obj116; questRoot24.QuestSequence = list177; @@ -443669,30 +364772,24 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "liza"; + CollectionsMarshal.AsSpan(list186)[0] = "liza"; questRoot25.Author = list186; - index = 5; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference134 = ref span187[num]; + num = 5; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span73 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference134 = ref span73[0]; QuestSequence obj117 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj117.Steps = list188; reference134 = obj117; - num++; - ref QuestSequence reference135 = ref span187[num]; + ref QuestSequence reference135 = ref span73[1]; QuestSequence obj118 = new QuestSequence { Sequence = 1 @@ -443700,31 +364797,25 @@ public static class AssemblyQuestLoader num2 = 2; List list189 = new List(num2); CollectionsMarshal.SetCount(list189, num2); - 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); + 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); obj118.Steps = list189; reference135 = obj118; - num++; - ref QuestSequence reference136 = ref span187[num]; + ref QuestSequence reference136 = ref span73[2]; QuestSequence obj119 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj119.Steps = list190; reference136 = obj119; - num++; - ref QuestSequence reference137 = ref span187[num]; + ref QuestSequence reference137 = ref span73[3]; QuestSequence obj120 = new QuestSequence { Sequence = 3 @@ -443732,27 +364823,22 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.UseItem, 2013899u, new Vector3(-287.31213f, 1.4190674f, 582.7573f), 1192) + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.UseItem, 2013899u, new Vector3(-287.31213f, 1.4190674f, 582.7573f), 1192) { DisableNavmesh = true, ItemId = 2003566u }; obj120.Steps = list191; reference137 = obj120; - num++; - ref QuestSequence reference138 = ref span187[num]; + ref QuestSequence reference138 = ref span73[4]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj121.Steps = list192; reference138 = obj121; questRoot25.QuestSequence = list187; @@ -443762,16 +364848,13 @@ public static class AssemblyQuestLoader num = 1; List list193 = new List(num); CollectionsMarshal.SetCount(list193, num); - Span span193 = CollectionsMarshal.AsSpan(list193); - index = 0; - span193[index] = "liza"; + CollectionsMarshal.AsSpan(list193)[0] = "liza"; questRoot26.Author = list193; - index = 3; - List list194 = new List(index); - CollectionsMarshal.SetCount(list194, index); - Span span194 = CollectionsMarshal.AsSpan(list194); - num = 0; - ref QuestSequence reference139 = ref span194[num]; + num = 3; + List list194 = new List(num); + CollectionsMarshal.SetCount(list194, num); + Span span76 = CollectionsMarshal.AsSpan(list194); + ref QuestSequence reference139 = ref span76[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 @@ -443779,23 +364862,19 @@ public static class AssemblyQuestLoader num2 = 1; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192); + CollectionsMarshal.AsSpan(list195)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192); obj122.Steps = list195; reference139 = obj122; - num++; - ref QuestSequence reference140 = ref span194[num]; + ref QuestSequence reference140 = ref span76[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list196 = new List(index2); - CollectionsMarshal.SetCount(list196, index2); - Span span196 = CollectionsMarshal.AsSpan(list196); - num2 = 0; - ref QuestStep reference141 = ref span196[num2]; + num2 = 4; + List list196 = new List(num2); + CollectionsMarshal.SetCount(list196, num2); + Span span77 = CollectionsMarshal.AsSpan(list196); + ref QuestStep reference141 = ref span77[0]; QuestStep obj124 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-549.43896f, 20.09976f, 630.3976f), 1192) { Fly = true @@ -443805,51 +364884,37 @@ public static class AssemblyQuestLoader num3 = 6; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - 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); + 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); skipStepConditions3.CompletionQuestVariablesFlags = list197; skipStepConditions3.Flying = ELockedSkipCondition.Locked; skipConditions3.StepIf = skipStepConditions3; obj124.SkipConditions = skipConditions3; reference141 = obj124; - num2++; - ref QuestStep reference142 = ref span196[num2]; + ref QuestStep reference142 = ref span77[1]; QuestStep obj125 = new QuestStep(EInteractionType.Interact, 2013901u, new Vector3(-515.9838f, -0.015319824f, 625.14685f), 1192) { DisableNavmesh = true, Fly = true }; - 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); + 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); obj125.CompletionQuestVariablesFlags = list198; reference142 = obj125; - num2++; - ref QuestStep reference143 = ref span196[num2]; + ref QuestStep reference143 = ref span77[2]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 2013902u, new Vector3(-496.78802f, 0.045776367f, 668.72656f), 1192) { Fly = true @@ -443857,49 +364922,35 @@ public static class AssemblyQuestLoader num3 = 6; List list199 = new List(num3); CollectionsMarshal.SetCount(list199, num3); - 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); + 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); obj126.CompletionQuestVariablesFlags = list199; reference143 = obj126; - num2++; - ref QuestStep reference144 = ref span196[num2]; + ref QuestStep reference144 = ref span77[3]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 2013903u, new Vector3(-424.2771f, -0.10687256f, 660.7003f), 1192) { Fly = true }; - 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); + 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); obj127.CompletionQuestVariablesFlags = list200; reference144 = obj127; obj123.Steps = list196; reference140 = obj123; - num++; - ref QuestSequence reference145 = ref span194[num]; + ref QuestSequence reference145 = ref span76[2]; QuestSequence obj128 = new QuestSequence { Sequence = byte.MaxValue @@ -443907,9 +364958,7 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050620u, new Vector3(-733.79114f, 0.007321423f, 518.33374f), 1192) { Fly = true }; @@ -443922,30 +364971,24 @@ public static class AssemblyQuestLoader num = 1; List list202 = new List(num); CollectionsMarshal.SetCount(list202, num); - Span span202 = CollectionsMarshal.AsSpan(list202); - index = 0; - span202[index] = "liza"; + CollectionsMarshal.AsSpan(list202)[0] = "liza"; questRoot27.Author = list202; - index = 5; - List list203 = new List(index); - CollectionsMarshal.SetCount(list203, index); - Span span203 = CollectionsMarshal.AsSpan(list203); - num = 0; - ref QuestSequence reference146 = ref span203[num]; + num = 5; + List list203 = new List(num); + CollectionsMarshal.SetCount(list203, num); + Span span82 = CollectionsMarshal.AsSpan(list203); + ref QuestSequence reference146 = ref span82[0]; QuestSequence obj129 = 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, 1050621u, new Vector3(477.1344f, -0.034497976f, 711.6654f), 1192); + 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); obj129.Steps = list204; reference146 = obj129; - num++; - ref QuestSequence reference147 = ref span203[num]; + ref QuestSequence reference147 = ref span82[1]; QuestSequence obj130 = new QuestSequence { Sequence = 1 @@ -443953,32 +364996,26 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.Interact, 2013904u, new Vector3(199.4812f, 1.1749268f, 642.96936f), 1192); + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.Interact, 2013904u, new Vector3(199.4812f, 1.1749268f, 642.96936f), 1192); obj130.Steps = list205; reference147 = obj130; - num++; - ref QuestSequence reference148 = ref span203[num]; + ref QuestSequence reference148 = ref span82[2]; QuestSequence obj131 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; - num2++; - span206[num2] = new QuestStep(EInteractionType.Interact, 2013905u, new Vector3(252.30786f, 1.5411377f, 621.2711f), 1192); + span83[1] = new QuestStep(EInteractionType.Interact, 2013905u, new Vector3(252.30786f, 1.5411377f, 621.2711f), 1192); obj131.Steps = list206; reference148 = obj131; - num++; - ref QuestSequence reference149 = ref span203[num]; + ref QuestSequence reference149 = ref span82[3]; QuestSequence obj132 = new QuestSequence { Sequence = 3 @@ -443986,34 +365023,26 @@ public static class AssemblyQuestLoader num2 = 1; List list207 = new List(num2); CollectionsMarshal.SetCount(list207, num2); - Span span207 = CollectionsMarshal.AsSpan(list207); - index2 = 0; - span207[index2] = new QuestStep(EInteractionType.Interact, 2013909u, new Vector3(340.59656f, 23.605652f, 289.78406f), 1192); + CollectionsMarshal.AsSpan(list207)[0] = new QuestStep(EInteractionType.Interact, 2013909u, new Vector3(340.59656f, 23.605652f, 289.78406f), 1192); obj132.Steps = list207; reference149 = obj132; - num++; - ref QuestSequence reference150 = ref span203[num]; + ref QuestSequence reference150 = ref span82[4]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - 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]; + 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]; 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); - Span span209 = CollectionsMarshal.AsSpan(list209); - index3 = 0; - span209[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list209)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH003_05176_Q1_000_016"), @@ -444030,16 +365059,13 @@ public static class AssemblyQuestLoader num = 1; List list210 = new List(num); CollectionsMarshal.SetCount(list210, num); - Span span210 = CollectionsMarshal.AsSpan(list210); - index = 0; - span210[index] = "liza"; + CollectionsMarshal.AsSpan(list210)[0] = "liza"; questRoot28.Author = list210; - index = 5; - List list211 = new List(index); - CollectionsMarshal.SetCount(list211, index); - Span span211 = CollectionsMarshal.AsSpan(list211); - num = 0; - ref QuestSequence reference152 = ref span211[num]; + num = 5; + List list211 = new List(num); + CollectionsMarshal.SetCount(list211, num); + Span span85 = CollectionsMarshal.AsSpan(list211); + ref QuestSequence reference152 = ref span85[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -444047,27 +365073,21 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - index2 = 0; - span212[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050623u, new Vector3(253.83374f, -0.034116313f, 439.3529f), 1192); obj134.Steps = list212; reference152 = obj134; - num++; - ref QuestSequence reference153 = ref span211[num]; + ref QuestSequence reference153 = ref span85[1]; QuestSequence obj135 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj135.Steps = list213; reference153 = obj135; - num++; - ref QuestSequence reference154 = ref span211[num]; + ref QuestSequence reference154 = ref span85[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -444075,35 +365095,29 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(406.71564f, 1.3939283f, 550.029f), 1192) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.Interact, 1050623u, new Vector3(406.71564f, 1.3939283f, 550.029f), 1192) { StopDistance = 0.25f, Fly = true }; obj136.Steps = list214; reference154 = obj136; - num++; - ref QuestSequence reference155 = ref span211[num]; + ref QuestSequence reference155 = ref span85[3]; QuestSequence obj137 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f, Fly = true }; obj137.Steps = list215; reference155 = obj137; - num++; - ref QuestSequence reference156 = ref span211[num]; + ref QuestSequence reference156 = ref span85[4]; QuestSequence obj138 = new QuestSequence { Sequence = byte.MaxValue @@ -444111,9 +365125,7 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050624u, new Vector3(581.1398f, 7.6887574f, 664.05725f), 1192) + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050624u, new Vector3(581.1398f, 7.6887574f, 664.05725f), 1192) { StopDistance = 5f }; @@ -444126,30 +365138,24 @@ public static class AssemblyQuestLoader num = 1; List list217 = new List(num); CollectionsMarshal.SetCount(list217, num); - Span span217 = CollectionsMarshal.AsSpan(list217); - index = 0; - span217[index] = "liza"; + CollectionsMarshal.AsSpan(list217)[0] = "liza"; questRoot29.Author = list217; - index = 5; - List list218 = new List(index); - CollectionsMarshal.SetCount(list218, index); - Span span218 = CollectionsMarshal.AsSpan(list218); - num = 0; - ref QuestSequence reference157 = ref span218[num]; + num = 5; + List list218 = new List(num); + CollectionsMarshal.SetCount(list218, num); + Span span86 = CollectionsMarshal.AsSpan(list218); + ref QuestSequence reference157 = ref span86[0]; QuestSequence obj139 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj139.Steps = list219; reference157 = obj139; - num++; - ref QuestSequence reference158 = ref span218[num]; + ref QuestSequence reference158 = ref span86[1]; QuestSequence obj140 = new QuestSequence { Sequence = 1 @@ -444157,39 +365163,31 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1050626u, new Vector3(351.27795f, 48.949432f, -726.4973f), 1192); + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1050626u, new Vector3(351.27795f, 48.949432f, -726.4973f), 1192); obj140.Steps = list220; reference158 = obj140; - num++; - ref QuestSequence reference159 = ref span218[num]; + ref QuestSequence reference159 = ref span86[2]; QuestSequence obj141 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list221 = new List(index2); - CollectionsMarshal.SetCount(list221, index2); - Span span221 = CollectionsMarshal.AsSpan(list221); - num2 = 0; - ref QuestStep reference160 = ref span221[num2]; + num2 = 1; + List list221 = new List(num2); + CollectionsMarshal.SetCount(list221, num2); + ref QuestStep reference160 = ref CollectionsMarshal.AsSpan(list221)[0]; QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(300.00925f, 44.086937f, -577.9258f), 1192) { EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list222 = new List(index3); - CollectionsMarshal.SetCount(list222, index3); - Span span222 = CollectionsMarshal.AsSpan(list222); - num3 = 0; - span222[num3] = 17686u; + num3 = 1; + List list222 = new List(num3); + CollectionsMarshal.SetCount(list222, num3); + CollectionsMarshal.AsSpan(list222)[0] = 17686u; obj142.KillEnemyDataIds = list222; reference160 = obj142; obj141.Steps = list221; reference159 = obj141; - num++; - ref QuestSequence reference161 = ref span218[num]; + ref QuestSequence reference161 = ref span86[3]; QuestSequence obj143 = new QuestSequence { Sequence = 3 @@ -444197,31 +365195,26 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.Interact, 1050627u, new Vector3(302.90674f, 43.98048f, -574.67004f), 1192) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.Interact, 1050627u, new Vector3(302.90674f, 43.98048f, -574.67004f), 1192) { StopDistance = 7f }; obj143.Steps = list223; reference161 = obj143; - num++; - ref QuestSequence reference162 = ref span218[num]; + ref QuestSequence reference162 = ref span86[4]; QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetherCurrentId = 2818486u }; - num2++; - span224[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050631u, new Vector3(354.4823f, 48.940357f, -726.1311f), 1192); + span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1050631u, new Vector3(354.4823f, 48.940357f, -726.1311f), 1192); obj144.Steps = list224; reference162 = obj144; questRoot29.QuestSequence = list218; @@ -444231,16 +365224,13 @@ public static class AssemblyQuestLoader num = 1; List list225 = new List(num); CollectionsMarshal.SetCount(list225, num); - Span span225 = CollectionsMarshal.AsSpan(list225); - index = 0; - span225[index] = "liza"; + CollectionsMarshal.AsSpan(list225)[0] = "liza"; questRoot30.Author = list225; - index = 3; - List list226 = new List(index); - CollectionsMarshal.SetCount(list226, index); - Span span226 = CollectionsMarshal.AsSpan(list226); - num = 0; - ref QuestSequence reference163 = ref span226[num]; + num = 3; + List list226 = new List(num); + CollectionsMarshal.SetCount(list226, num); + Span span88 = CollectionsMarshal.AsSpan(list226); + ref QuestSequence reference163 = ref span88[0]; QuestSequence obj145 = new QuestSequence { Sequence = 0 @@ -444248,27 +365238,21 @@ public static class AssemblyQuestLoader num2 = 1; List list227 = new List(num2); CollectionsMarshal.SetCount(list227, num2); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192); + CollectionsMarshal.AsSpan(list227)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050632u, new Vector3(538.9944f, 25.001822f, -194.3847f), 1192); obj145.Steps = list227; reference163 = obj145; - num++; - ref QuestSequence reference164 = ref span226[num]; + ref QuestSequence reference164 = ref span88[1]; QuestSequence obj146 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj146.Steps = list228; reference164 = obj146; - num++; - ref QuestSequence reference165 = ref span226[num]; + ref QuestSequence reference165 = ref span88[2]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue @@ -444276,9 +365260,7 @@ public static class AssemblyQuestLoader num2 = 1; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050633u, new Vector3(619.5315f, 27.724146f, -172.01501f), 1192) + CollectionsMarshal.AsSpan(list229)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050633u, new Vector3(619.5315f, 27.724146f, -172.01501f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodePyro }; @@ -444291,30 +365273,24 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - Span span230 = CollectionsMarshal.AsSpan(list230); - index = 0; - span230[index] = "liza"; + CollectionsMarshal.AsSpan(list230)[0] = "liza"; questRoot31.Author = list230; - index = 4; - List list231 = new List(index); - CollectionsMarshal.SetCount(list231, index); - Span span231 = CollectionsMarshal.AsSpan(list231); - num = 0; - ref QuestSequence reference166 = ref span231[num]; + num = 4; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + Span span89 = CollectionsMarshal.AsSpan(list231); + ref QuestSequence reference166 = ref span89[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj148.Steps = list232; reference166 = obj148; - num++; - ref QuestSequence reference167 = ref span231[num]; + ref QuestSequence reference167 = ref span89[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 @@ -444322,9 +365298,7 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference168 = ref span233[index2]; + ref QuestStep reference168 = ref CollectionsMarshal.AsSpan(list233)[0]; QuestStep obj150 = new QuestStep(EInteractionType.Interact, 1050635u, new Vector3(-201.83112f, 29.999939f, -124.28479f), 1192) { Fly = true @@ -444332,9 +365306,7 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span234 = CollectionsMarshal.AsSpan(list234); - index3 = 0; - span234[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list234)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH007_05180_Q1_000_005"), @@ -444344,28 +365316,23 @@ public static class AssemblyQuestLoader reference168 = obj150; obj149.Steps = list233; reference167 = obj149; - num++; - ref QuestSequence reference169 = ref span231[num]; + ref QuestSequence reference169 = ref span89[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list235 = new List(index2); - CollectionsMarshal.SetCount(list235, index2); - Span span235 = CollectionsMarshal.AsSpan(list235); - num2 = 0; - ref QuestStep reference170 = ref span235[num2]; + num2 = 1; + List list235 = new List(num2); + CollectionsMarshal.SetCount(list235, num2); + ref QuestStep reference170 = ref CollectionsMarshal.AsSpan(list235)[0]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1050636u, new Vector3(-410.5135f, 30.49998f, -131.94476f), 1192) { Fly = true }; - index3 = 1; - List list236 = new List(index3); - CollectionsMarshal.SetCount(list236, index3); - Span span236 = CollectionsMarshal.AsSpan(list236); - num3 = 0; - span236[num3] = new DialogueChoice + num3 = 1; + List list236 = new List(num3); + CollectionsMarshal.SetCount(list236, num3); + CollectionsMarshal.AsSpan(list236)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGZH007_05180_Q2_000_013"), @@ -444375,8 +365342,7 @@ public static class AssemblyQuestLoader reference170 = obj152; obj151.Steps = list235; reference169 = obj151; - num++; - ref QuestSequence reference171 = ref span231[num]; + ref QuestSequence reference171 = ref span89[3]; QuestSequence obj153 = new QuestSequence { Sequence = byte.MaxValue @@ -444384,9 +365350,7 @@ public static class AssemblyQuestLoader num2 = 1; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - Span span237 = CollectionsMarshal.AsSpan(list237); - index2 = 0; - span237[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050813u, new Vector3(-277.76f, 54.31037f, -382.58948f), 1192) + CollectionsMarshal.AsSpan(list237)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050813u, new Vector3(-277.76f, 54.31037f, -382.58948f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeAero }; @@ -444399,30 +365363,24 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - Span span238 = CollectionsMarshal.AsSpan(list238); - index = 0; - span238[index] = "liza"; + CollectionsMarshal.AsSpan(list238)[0] = "liza"; questRoot32.Author = list238; - index = 3; - List list239 = new List(index); - CollectionsMarshal.SetCount(list239, index); - Span span239 = CollectionsMarshal.AsSpan(list239); - num = 0; - ref QuestSequence reference172 = ref span239[num]; + num = 3; + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + Span span90 = CollectionsMarshal.AsSpan(list239); + ref QuestSequence reference172 = ref span90[0]; QuestSequence obj154 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj154.Steps = list240; reference172 = obj154; - num++; - ref QuestSequence reference173 = ref span239[num]; + ref QuestSequence reference173 = ref span90[1]; QuestSequence obj155 = new QuestSequence { Sequence = 1 @@ -444430,9 +365388,8 @@ public static class AssemblyQuestLoader num2 = 5; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - ref QuestStep reference174 = ref span241[index2]; + Span span91 = CollectionsMarshal.AsSpan(list241); + ref QuestStep reference174 = ref span91[0]; QuestStep obj156 = new QuestStep(EInteractionType.Interact, 2013918u, new Vector3(-429.89246f, -4.5319824f, -466.45306f), 1192) { StopDistance = 0.25f, @@ -444441,51 +365398,37 @@ public static class AssemblyQuestLoader num3 = 6; List list242 = new List(num3); CollectionsMarshal.SetCount(list242, num3); - 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); + 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); obj156.CompletionQuestVariablesFlags = list242; reference174 = obj156; - index2++; - ref QuestStep reference175 = ref span241[index2]; + ref QuestStep reference175 = ref span91[1]; 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(); - 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); + 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); skipStepConditions4.CompletionQuestVariablesFlags = list243; skipConditions4.StepIf = skipStepConditions4; obj157.SkipConditions = skipConditions4; reference175 = obj157; - index2++; - ref QuestStep reference176 = ref span241[index2]; + ref QuestStep reference176 = ref span91[2]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 2013916u, new Vector3(-648.85944f, -3.7995605f, -454.06274f), 1192) { Mount = false @@ -444493,51 +365436,37 @@ public static class AssemblyQuestLoader num3 = 6; List list244 = new List(num3); CollectionsMarshal.SetCount(list244, num3); - 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); + 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); obj158.CompletionQuestVariablesFlags = list244; reference176 = obj158; - index2++; - ref QuestStep reference177 = ref span241[index2]; + ref QuestStep reference177 = ref span91[3]; 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(); - 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); + 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); skipStepConditions5.CompletionQuestVariablesFlags = list245; skipConditions5.StepIf = skipStepConditions5; obj159.SkipConditions = skipConditions5; reference177 = obj159; - index2++; - ref QuestStep reference178 = ref span241[index2]; + ref QuestStep reference178 = ref span91[4]; QuestStep obj160 = new QuestStep(EInteractionType.Interact, 2013917u, new Vector3(-573.14417f, -1.0529175f, -702.05237f), 1192) { Mount = false @@ -444545,35 +365474,26 @@ public static class AssemblyQuestLoader num3 = 6; List list246 = new List(num3); CollectionsMarshal.SetCount(list246, num3); - 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); + 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); obj160.CompletionQuestVariablesFlags = list246; reference178 = obj160; obj155.Steps = list241; reference173 = obj155; - num++; - ref QuestSequence reference179 = ref span239[num]; + ref QuestSequence reference179 = ref span90[2]; QuestSequence obj161 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -444586,18 +365506,15 @@ public static class AssemblyQuestLoader num = 1; List list248 = new List(num); CollectionsMarshal.SetCount(list248, num); - Span span248 = CollectionsMarshal.AsSpan(list248); - index = 0; - span248[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list248)[0] = "JerryWester"; questRoot33.Author = list248; questRoot33.IsSeasonalQuest = true; questRoot33.SeasonalQuestExpiry = new DateTime(2024, 8, 26, 0, 0, 0, DateTimeKind.Utc); - index = 6; - List list249 = new List(index); - CollectionsMarshal.SetCount(list249, index); - Span span249 = CollectionsMarshal.AsSpan(list249); - num = 0; - ref QuestSequence reference180 = ref span249[num]; + num = 6; + List list249 = new List(num); + CollectionsMarshal.SetCount(list249, num); + Span span97 = CollectionsMarshal.AsSpan(list249); + ref QuestSequence reference180 = ref span97[0]; QuestSequence obj162 = new QuestSequence { Sequence = 0 @@ -444605,9 +365522,7 @@ public static class AssemblyQuestLoader num2 = 1; List list250 = new List(num2); CollectionsMarshal.SetCount(list250, num2); - Span span250 = CollectionsMarshal.AsSpan(list250); - index2 = 0; - ref QuestStep reference181 = ref span250[index2]; + ref QuestStep reference181 = ref CollectionsMarshal.AsSpan(list250)[0]; QuestStep obj163 = new QuestStep(EInteractionType.AcceptQuest, 1050816u, new Vector3(14.328186f, 45.665993f, 131.33435f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -444622,30 +365537,26 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list251 = new List(index3); - CollectionsMarshal.SetCount(list251, index3); - Span span251 = CollectionsMarshal.AsSpan(list251); - num3 = 0; - span251[num3] = 128; + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + CollectionsMarshal.AsSpan(list251)[0] = 128; obj164.InTerritory = list251; skipConditions6.AetheryteShortcutIf = obj164; obj163.SkipConditions = skipConditions6; reference181 = obj163; obj162.Steps = list250; reference180 = obj162; - num++; - ref QuestSequence reference182 = ref span249[num]; + ref QuestSequence reference182 = ref span97[1]; QuestSequence obj165 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list252 = new List(index2); - CollectionsMarshal.SetCount(list252, index2); - Span span252 = CollectionsMarshal.AsSpan(list252); - num2 = 0; - ref QuestStep reference183 = ref span252[num2]; + num2 = 4; + List list252 = new List(num2); + CollectionsMarshal.SetCount(list252, num2); + Span span98 = CollectionsMarshal.AsSpan(list252); + ref QuestStep reference183 = ref span98[0]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1000868u, new Vector3(-192.00433f, 0.9999907f, 211.68835f), 129) { TargetTerritoryId = (ushort)137, @@ -444660,9 +365571,7 @@ public static class AssemblyQuestLoader num3 = 1; List list253 = new List(num3); CollectionsMarshal.SetCount(list253, num3); - Span span253 = CollectionsMarshal.AsSpan(list253); - index3 = 0; - span253[index3] = 137; + CollectionsMarshal.AsSpan(list253)[0] = 137; skipStepConditions6.InTerritory = list253; skipStepConditions6.AetheryteUnlocked = EAetheryteLocation.EasternLaNosceaCostaDelSol; skipConditions7.StepIf = skipStepConditions6; @@ -444672,8 +365581,7 @@ public static class AssemblyQuestLoader }; obj166.SkipConditions = skipConditions7; reference183 = obj166; - num2++; - span252[num2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) + span98[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 137) { Aetheryte = EAetheryteLocation.EasternLaNosceaCostaDelSol, SkipConditions = new SkipConditions @@ -444684,8 +365592,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span252[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) + span98[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(732.0986f, 11.349089f, 262.19138f), 137) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol, @@ -444697,15 +365604,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span252[num2] = new QuestStep(EInteractionType.Interact, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) + span98[3] = new QuestStep(EInteractionType.Interact, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) { StopDistance = 5f }; obj165.Steps = list252; reference182 = obj165; - num++; - ref QuestSequence reference184 = ref span249[num]; + ref QuestSequence reference184 = ref span97[2]; QuestSequence obj167 = new QuestSequence { Sequence = 2 @@ -444713,34 +365618,28 @@ public static class AssemblyQuestLoader num2 = 1; List list254 = new List(num2); CollectionsMarshal.SetCount(list254, num2); - Span span254 = CollectionsMarshal.AsSpan(list254); - index2 = 0; - span254[index2] = new QuestStep(EInteractionType.Interact, 1050818u, new Vector3(681.3915f, 9.601691f, 202.86865f), 137) + CollectionsMarshal.AsSpan(list254)[0] = new QuestStep(EInteractionType.Interact, 1050818u, new Vector3(681.3915f, 9.601691f, 202.86865f), 137) { StopDistance = 5f, Fly = true }; obj167.Steps = list254; reference184 = obj167; - num++; - ref QuestSequence reference185 = ref span249[num]; + ref QuestSequence reference185 = ref span97[3]; QuestSequence obj168 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj168.Steps = list255; reference185 = obj168; - num++; - ref QuestSequence reference186 = ref span249[num]; + ref QuestSequence reference186 = ref span97[4]; QuestSequence obj169 = new QuestSequence { Sequence = 4 @@ -444748,16 +365647,12 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - ref QuestStep reference187 = ref span256[index2]; + ref QuestStep reference187 = ref CollectionsMarshal.AsSpan(list256)[0]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 2014098u, new Vector3(769.0698f, 9.719971f, 246.99768f), 137); - index3 = 1; - List list257 = new List(index3); - CollectionsMarshal.SetCount(list257, index3); - Span span257 = CollectionsMarshal.AsSpan(list257); - num3 = 0; - span257[num3] = new DialogueChoice + num3 = 1; + List list257 = new List(num3); + CollectionsMarshal.SetCount(list257, num3); + CollectionsMarshal.AsSpan(list257)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX001_05182_Q1_000_000"), @@ -444767,18 +365662,15 @@ public static class AssemblyQuestLoader reference187 = questStep19; obj169.Steps = list256; reference186 = obj169; - num++; - ref QuestSequence reference188 = ref span249[num]; + ref QuestSequence reference188 = ref span97[5]; QuestSequence obj170 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list258 = new List(index2); - CollectionsMarshal.SetCount(list258, index2); - Span span258 = CollectionsMarshal.AsSpan(list258); - num2 = 0; - ref QuestStep reference189 = ref span258[num2]; + num2 = 1; + List list258 = new List(num2); + CollectionsMarshal.SetCount(list258, num2); + ref QuestStep reference189 = ref CollectionsMarshal.AsSpan(list258)[0]; QuestStep obj171 = new QuestStep(EInteractionType.CompleteQuest, 1050820u, new Vector3(695.46045f, 9.614362f, 295.70447f), 137) { Fly = true @@ -444786,9 +365678,7 @@ public static class AssemblyQuestLoader num3 = 1; List list259 = new List(num3); CollectionsMarshal.SetCount(list259, num3); - Span span259 = CollectionsMarshal.AsSpan(list259); - index3 = 0; - span259[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list259)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX001_05182_Q2_000_000"), @@ -444806,18 +365696,15 @@ public static class AssemblyQuestLoader num = 1; List list260 = new List(num); CollectionsMarshal.SetCount(list260, num); - Span span260 = CollectionsMarshal.AsSpan(list260); - index = 0; - span260[index] = "JerryWester"; + CollectionsMarshal.AsSpan(list260)[0] = "JerryWester"; questRoot34.Author = list260; questRoot34.IsSeasonalQuest = true; questRoot34.SeasonalQuestExpiry = new DateTime(2024, 8, 26, 0, 0, 0, DateTimeKind.Utc); - index = 4; - List list261 = new List(index); - CollectionsMarshal.SetCount(list261, index); - Span span261 = CollectionsMarshal.AsSpan(list261); - num = 0; - ref QuestSequence reference190 = ref span261[num]; + num = 4; + List list261 = new List(num); + CollectionsMarshal.SetCount(list261, num); + Span span99 = CollectionsMarshal.AsSpan(list261); + ref QuestSequence reference190 = ref span99[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -444825,51 +365712,40 @@ public static class AssemblyQuestLoader num2 = 1; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050828u, new Vector3(694.5753f, 9.578133f, 297.59656f), 137) + CollectionsMarshal.AsSpan(list262)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050828u, new Vector3(694.5753f, 9.578133f, 297.59656f), 137) { StopDistance = 5f }; obj172.Steps = list262; reference190 = obj172; - num++; - ref QuestSequence reference191 = ref span261[num]; + ref QuestSequence reference191 = ref span99[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list263 = new List(index2); - CollectionsMarshal.SetCount(list263, index2); - Span span263 = CollectionsMarshal.AsSpan(list263); - num2 = 0; - ref QuestStep reference192 = ref span263[num2]; + num2 = 2; + List list263 = new List(num2); + CollectionsMarshal.SetCount(list263, num2); + Span span100 = CollectionsMarshal.AsSpan(list263); + ref QuestStep reference192 = ref span100[0]; QuestStep obj174 = new QuestStep(EInteractionType.Emote, 1050824u, new Vector3(507.68274f, 9.541115f, 428.54944f), 137) { Fly = true, Emote = EEmote.Uchiwasshoi }; - 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); + 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); obj174.CompletionQuestVariablesFlags = list264; reference192 = obj174; - num2++; - ref QuestStep reference193 = ref span263[num2]; + ref QuestStep reference193 = ref span100[1]; QuestStep obj175 = new QuestStep(EInteractionType.Emote, 1050825u, new Vector3(641.44336f, 11.697773f, 526.604f), 137) { Fly = true, @@ -444878,25 +365754,18 @@ public static class AssemblyQuestLoader num3 = 6; List list265 = new List(num3); CollectionsMarshal.SetCount(list265, num3); - 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); + 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); obj175.CompletionQuestVariablesFlags = list265; reference193 = obj175; obj173.Steps = list263; reference191 = obj173; - num++; - ref QuestSequence reference194 = ref span261[num]; + ref QuestSequence reference194 = ref span99[2]; QuestSequence obj176 = new QuestSequence { Sequence = 2 @@ -444904,41 +365773,34 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.Interact, 1050829u, new Vector3(694.2092f, 9.619679f, 294.81946f), 137) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.Interact, 1050829u, new Vector3(694.2092f, 9.619679f, 294.81946f), 137) { Fly = true }; obj176.Steps = list266; reference194 = obj176; - num++; - ref QuestSequence reference195 = ref span261[num]; + ref QuestSequence reference195 = ref span99[3]; QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - ref QuestStep reference196 = ref span267[num2]; + ref QuestStep reference196 = ref span103[1]; QuestStep obj178 = new QuestStep(EInteractionType.CompleteQuest, 1050817u, new Vector3(735.25586f, 11.306824f, 261.8601f), 137) { StopDistance = 5f }; - index3 = 1; - List list268 = new List(index3); - CollectionsMarshal.SetCount(list268, index3); - Span span268 = CollectionsMarshal.AsSpan(list268); - num3 = 0; - span268[num3] = new DialogueChoice + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + CollectionsMarshal.AsSpan(list268)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESSUX002_05183_Q1_000_000"), @@ -444955,18 +365817,15 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - Span span269 = CollectionsMarshal.AsSpan(list269); - index = 0; - span269[index] = "liza"; + CollectionsMarshal.AsSpan(list269)[0] = "liza"; questRoot35.Author = list269; questRoot35.IsSeasonalQuest = true; questRoot35.SeasonalQuestExpiry = new DateTime(2024, 11, 4, 0, 0, 0, DateTimeKind.Utc); - index = 5; - List list270 = new List(index); - CollectionsMarshal.SetCount(list270, index); - Span span270 = CollectionsMarshal.AsSpan(list270); - num = 0; - ref QuestSequence reference197 = ref span270[num]; + num = 5; + List list270 = new List(num); + CollectionsMarshal.SetCount(list270, num); + Span span104 = CollectionsMarshal.AsSpan(list270); + ref QuestSequence reference197 = ref span104[0]; QuestSequence obj179 = new QuestSequence { Sequence = 0 @@ -444974,9 +365833,7 @@ public static class AssemblyQuestLoader num2 = 1; List list271 = new List(num2); CollectionsMarshal.SetCount(list271, num2); - Span span271 = CollectionsMarshal.AsSpan(list271); - index2 = 0; - ref QuestStep reference198 = ref span271[index2]; + ref QuestStep reference198 = ref CollectionsMarshal.AsSpan(list271)[0]; QuestStep obj180 = new QuestStep(EInteractionType.AcceptQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -444994,31 +365851,25 @@ public static class AssemblyQuestLoader num3 = 1; List list272 = new List(num3); CollectionsMarshal.SetCount(list272, num3); - Span span272 = CollectionsMarshal.AsSpan(list272); - index3 = 0; - span272[index3] = 133; + CollectionsMarshal.AsSpan(list272)[0] = 133; obj181.InTerritory = list272; skipConditions8.AetheryteShortcutIf = obj181; obj180.SkipConditions = skipConditions8; reference198 = obj180; obj179.Steps = list271; reference197 = obj179; - num++; - ref QuestSequence reference199 = ref span270[num]; + ref QuestSequence reference199 = ref span104[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj182.Steps = list273; reference199 = obj182; - num++; - ref QuestSequence reference200 = ref span270[num]; + ref QuestSequence reference200 = ref span104[2]; QuestSequence obj183 = new QuestSequence { Sequence = 2 @@ -445026,30 +365877,24 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.Interact, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133); + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.Interact, 1050483u, new Vector3(-151.07965f, 5.417452f, -53.330322f), 133); obj183.Steps = list274; reference200 = obj183; - num++; - ref QuestSequence reference201 = ref span270[num]; + ref QuestSequence reference201 = ref span104[3]; QuestSequence obj184 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Emote = EEmote.Soothe }; obj184.Steps = list275; reference201 = obj184; - num++; - ref QuestSequence reference202 = ref span270[num]; + ref QuestSequence reference202 = ref span104[4]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -445057,9 +365902,7 @@ public static class AssemblyQuestLoader num2 = 1; List list276 = new List(num2); CollectionsMarshal.SetCount(list276, num2); - Span span276 = CollectionsMarshal.AsSpan(list276); - index2 = 0; - span276[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) + CollectionsMarshal.AsSpan(list276)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050484u, new Vector3(-50.003845f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -445077,28 +365920,23 @@ public static class AssemblyQuestLoader num = 1; List list277 = new List(num); CollectionsMarshal.SetCount(list277, num); - Span span277 = CollectionsMarshal.AsSpan(list277); - index = 0; - span277[index] = "liza"; + CollectionsMarshal.AsSpan(list277)[0] = "liza"; questRoot36.Author = list277; questRoot36.IsSeasonalQuest = true; questRoot36.SeasonalQuestExpiry = new DateTime(2024, 11, 4, 0, 0, 0, DateTimeKind.Utc); - index = 5; - List list278 = new List(index); - CollectionsMarshal.SetCount(list278, index); - Span span278 = CollectionsMarshal.AsSpan(list278); - num = 0; - ref QuestSequence reference203 = ref span278[num]; + num = 5; + List list278 = new List(num); + CollectionsMarshal.SetCount(list278, num); + Span span105 = CollectionsMarshal.AsSpan(list278); + ref QuestSequence reference203 = ref span105[0]; QuestSequence obj186 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list279 = new List(num2); + CollectionsMarshal.SetCount(list279, num2); + ref QuestStep reference204 = ref CollectionsMarshal.AsSpan(list279)[0]; QuestStep obj187 = new QuestStep(EInteractionType.AcceptQuest, 1050485u, new Vector3(-48.69159f, 6.4999957f, -89.79938f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -445113,20 +365951,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list280 = new List(index3); - CollectionsMarshal.SetCount(list280, index3); - Span span280 = CollectionsMarshal.AsSpan(list280); - num3 = 0; - span280[num3] = 133; + num3 = 1; + List list280 = new List(num3); + CollectionsMarshal.SetCount(list280, num3); + CollectionsMarshal.AsSpan(list280)[0] = 133; obj188.InTerritory = list280; skipConditions9.AetheryteShortcutIf = obj188; obj187.SkipConditions = skipConditions9; reference204 = obj187; obj186.Steps = list279; reference203 = obj186; - num++; - ref QuestSequence reference205 = ref span278[num]; + ref QuestSequence reference205 = ref span105[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -445134,27 +365969,21 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.Interact, 1050486u, new Vector3(-105.97394f, 6.9391603f, -133.95898f), 133); + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1050486u, new Vector3(-105.97394f, 6.9391603f, -133.95898f), 133); obj189.Steps = list281; reference205 = obj189; - num++; - ref QuestSequence reference206 = ref span278[num]; + ref QuestSequence reference206 = ref span105[2]; QuestSequence obj190 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj190.Steps = list282; reference206 = obj190; - num++; - ref QuestSequence reference207 = ref span278[num]; + ref QuestSequence reference207 = ref span105[3]; QuestSequence obj191 = new QuestSequence { Sequence = 3 @@ -445162,23 +365991,18 @@ public static class AssemblyQuestLoader num2 = 1; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - index2 = 0; - span283[index2] = new QuestStep(EInteractionType.Interact, 1050489u, new Vector3(153.76514f, 11.213254f, -221.5763f), 133); + CollectionsMarshal.AsSpan(list283)[0] = new QuestStep(EInteractionType.Interact, 1050489u, new Vector3(153.76514f, 11.213254f, -221.5763f), 133); obj191.Steps = list283; reference207 = obj191; - num++; - ref QuestSequence reference208 = ref span278[num]; + ref QuestSequence reference208 = ref span105[4]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -445195,18 +366019,15 @@ public static class AssemblyQuestLoader num = 1; List list285 = new List(num); CollectionsMarshal.SetCount(list285, num); - Span span285 = CollectionsMarshal.AsSpan(list285); - index = 0; - span285[index] = "Starr"; + CollectionsMarshal.AsSpan(list285)[0] = "Starr"; questRoot37.Author = list285; questRoot37.IsSeasonalQuest = true; questRoot37.SeasonalQuestExpiry = new DateTime(2025, 1, 16, 0, 0, 0, DateTimeKind.Utc); - index = 5; - List list286 = new List(index); - CollectionsMarshal.SetCount(list286, index); - Span span286 = CollectionsMarshal.AsSpan(list286); - num = 0; - ref QuestSequence reference209 = ref span286[num]; + num = 5; + List list286 = new List(num); + CollectionsMarshal.SetCount(list286, num); + Span span106 = CollectionsMarshal.AsSpan(list286); + ref QuestSequence reference209 = ref span106[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -445214,9 +366035,7 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - ref QuestStep reference210 = ref span287[index2]; + ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list287)[0]; QuestStep obj194 = new QuestStep(EInteractionType.AcceptQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -445231,34 +366050,27 @@ public static class AssemblyQuestLoader num3 = 1; List list288 = new List(num3); CollectionsMarshal.SetCount(list288, num3); - Span span288 = CollectionsMarshal.AsSpan(list288); - index3 = 0; - span288[index3] = 128; + CollectionsMarshal.AsSpan(list288)[0] = 128; skipAetheryteCondition.InTerritory = list288; skipConditions10.AetheryteShortcutIf = skipAetheryteCondition; obj194.SkipConditions = skipConditions10; reference210 = obj194; obj193.Steps = list287; reference209 = obj193; - num++; - ref QuestSequence reference211 = ref span286[num]; + ref QuestSequence reference211 = ref span106[1]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list289 = new List(index2); - CollectionsMarshal.SetCount(list289, index2); - Span span289 = CollectionsMarshal.AsSpan(list289); - num2 = 0; - ref QuestStep reference212 = ref span289[num2]; + num2 = 1; + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + ref QuestStep reference212 = ref CollectionsMarshal.AsSpan(list289)[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1050357u, new Vector3(-4.6845703f, 40.000004f, 73.3501f), 128); - index3 = 1; - List list290 = new List(index3); - CollectionsMarshal.SetCount(list290, index3); - Span span290 = CollectionsMarshal.AsSpan(list290); - num3 = 0; - span290[num3] = new DialogueChoice + num3 = 1; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + CollectionsMarshal.AsSpan(list290)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q1_000_000"), @@ -445268,8 +366080,7 @@ public static class AssemblyQuestLoader reference212 = questStep20; obj195.Steps = list289; reference211 = obj195; - num++; - ref QuestSequence reference213 = ref span286[num]; + ref QuestSequence reference213 = ref span106[2]; QuestSequence obj196 = new QuestSequence { Sequence = 2 @@ -445277,16 +366088,12 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - ref QuestStep reference214 = ref span291[index2]; + ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list291)[0]; 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); - Span span292 = CollectionsMarshal.AsSpan(list292); - index3 = 0; - span292[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list292)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q2_000_000"), @@ -445296,25 +366103,20 @@ public static class AssemblyQuestLoader reference214 = questStep21; obj196.Steps = list291; reference213 = obj196; - num++; - ref QuestSequence reference215 = ref span286[num]; + ref QuestSequence reference215 = ref span106[3]; QuestSequence obj197 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list293 = new List(index2); - CollectionsMarshal.SetCount(list293, index2); - Span span293 = CollectionsMarshal.AsSpan(list293); - num2 = 0; - ref QuestStep reference216 = ref span293[num2]; + num2 = 1; + List list293 = new List(num2); + CollectionsMarshal.SetCount(list293, num2); + ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list293)[0]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1050359u, new Vector3(-44.235962f, 39.473606f, -163.77509f), 128); - index3 = 1; - List list294 = new List(index3); - CollectionsMarshal.SetCount(list294, index3); - Span span294 = CollectionsMarshal.AsSpan(list294); - num3 = 0; - span294[num3] = new DialogueChoice + num3 = 1; + List list294 = new List(num3); + CollectionsMarshal.SetCount(list294, num3); + CollectionsMarshal.AsSpan(list294)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESNYX101_05186_Q3_000_000"), @@ -445324,8 +366126,7 @@ public static class AssemblyQuestLoader reference216 = questStep22; obj197.Steps = list293; reference215 = obj197; - num++; - ref QuestSequence reference217 = ref span286[num]; + ref QuestSequence reference217 = ref span106[4]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -445333,9 +366134,7 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050356u, new Vector3(17.288391f, 45.656f, 133.95886f), 128) { AethernetShortcut = new AethernetShortcut { @@ -445352,33 +366151,26 @@ public static class AssemblyQuestLoader num = 1; List list296 = new List(num); CollectionsMarshal.SetCount(list296, num); - Span span296 = CollectionsMarshal.AsSpan(list296); - index = 0; - span296[index] = "liza"; + CollectionsMarshal.AsSpan(list296)[0] = "liza"; questRoot38.Author = list296; - index = 3; - List list297 = new List(index); - CollectionsMarshal.SetCount(list297, index); - Span span297 = CollectionsMarshal.AsSpan(list297); - num = 0; - ref QuestSequence reference218 = ref span297[num]; + num = 3; + List list297 = new List(num); + CollectionsMarshal.SetCount(list297, num); + Span span107 = CollectionsMarshal.AsSpan(list297); + ref QuestSequence reference218 = ref span107[0]; QuestSequence obj199 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list298 = new List(num2); + CollectionsMarshal.SetCount(list298, num2); + ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list298)[0]; 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); - Span span299 = CollectionsMarshal.AsSpan(list299); - index3 = 0; - span299[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list299)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGYR301_05187_Q1_000_000"), @@ -445388,8 +366180,7 @@ public static class AssemblyQuestLoader reference219 = questStep23; obj199.Steps = list298; reference218 = obj199; - num++; - ref QuestSequence reference220 = ref span297[num]; + ref QuestSequence reference220 = ref span107[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -445397,26 +366188,21 @@ public static class AssemblyQuestLoader num2 = 1; List list300 = new List(num2); CollectionsMarshal.SetCount(list300, num2); - Span span300 = CollectionsMarshal.AsSpan(list300); - index2 = 0; - span300[index2] = new QuestStep(EInteractionType.Interact, 1051601u, new Vector3(-45.5177f, 7.9999995f, -100.72485f), 130) + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Interact, 1051601u, new Vector3(-45.5177f, 7.9999995f, -100.72485f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah }; obj200.Steps = list300; reference220 = obj200; - num++; - ref QuestSequence reference221 = ref span297[num]; + ref QuestSequence reference221 = ref span107[2]; QuestSequence obj201 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -445434,16 +366220,13 @@ public static class AssemblyQuestLoader num = 1; List list302 = new List(num); CollectionsMarshal.SetCount(list302, num); - Span span302 = CollectionsMarshal.AsSpan(list302); - index = 0; - span302[index] = "liza"; + CollectionsMarshal.AsSpan(list302)[0] = "liza"; questRoot39.Author = list302; - index = 5; - List list303 = new List(index); - CollectionsMarshal.SetCount(list303, index); - Span span303 = CollectionsMarshal.AsSpan(list303); - num = 0; - ref QuestSequence reference222 = ref span303[num]; + num = 5; + List list303 = new List(num); + CollectionsMarshal.SetCount(list303, num); + Span span108 = CollectionsMarshal.AsSpan(list303); + ref QuestSequence reference222 = ref span108[0]; QuestSequence obj202 = new QuestSequence { Sequence = 0 @@ -445451,9 +366234,7 @@ public static class AssemblyQuestLoader num2 = 1; List list304 = new List(num2); CollectionsMarshal.SetCount(list304, num2); - Span span304 = CollectionsMarshal.AsSpan(list304); - index2 = 0; - span304[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + CollectionsMarshal.AsSpan(list304)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -445471,18 +366252,16 @@ public static class AssemblyQuestLoader }; obj202.Steps = list304; reference222 = obj202; - num++; - ref QuestSequence reference223 = ref span303[num]; + ref QuestSequence reference223 = ref span108[1]; QuestSequence obj203 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list305 = new List(index2); - CollectionsMarshal.SetCount(list305, index2); - Span span305 = CollectionsMarshal.AsSpan(list305); - num2 = 0; - ref QuestStep reference224 = ref span305[num2]; + num2 = 3; + List list305 = new List(num2); + CollectionsMarshal.SetCount(list305, num2); + Span span109 = CollectionsMarshal.AsSpan(list305); + ref QuestStep reference224 = ref span109[0]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 1001657u, new Vector3(94.80432f, 7.9804688f, -34.042908f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -445492,70 +366271,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - 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); + 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); obj204.CompletionQuestVariablesFlags = list306; reference224 = obj204; - num2++; - ref QuestStep reference225 = ref span305[num2]; + ref QuestStep reference225 = ref span109[1]; 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 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); + 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); questStep24.CompletionQuestVariablesFlags = list307; reference225 = questStep24; - num2++; - ref QuestStep reference226 = ref span305[num2]; + ref QuestStep reference226 = ref span109[2]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1051655u, new Vector3(137.74304f, 4f, 5.9662476f), 131); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list308; reference226 = questStep25; obj203.Steps = list305; reference223 = obj203; - num++; - ref QuestSequence reference227 = ref span303[num]; + ref QuestSequence reference227 = ref span108[2]; QuestSequence obj205 = new QuestSequence { Sequence = 2 @@ -445563,31 +366321,25 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.Emote, null, new Vector3(146.12386f, 4f, -23.562449f), 131) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.Emote, null, new Vector3(146.12386f, 4f, -23.562449f), 131) { StopDistance = 0.5f, Emote = EEmote.Angry }; obj205.Steps = list309; reference227 = obj205; - num++; - ref QuestSequence reference228 = ref span303[num]; + ref QuestSequence reference228 = ref span108[3]; QuestSequence obj206 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj206.Steps = list310; reference228 = obj206; - num++; - ref QuestSequence reference229 = ref span303[num]; + ref QuestSequence reference229 = ref span108[4]; QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue @@ -445595,9 +366347,8 @@ public static class AssemblyQuestLoader num2 = 2; List list311 = new List(num2); CollectionsMarshal.SetCount(list311, num2); - Span span311 = CollectionsMarshal.AsSpan(list311); - index2 = 0; - ref QuestStep reference230 = ref span311[index2]; + Span span113 = CollectionsMarshal.AsSpan(list311); + ref QuestStep reference230 = ref span113[0]; QuestStep obj208 = new QuestStep(EInteractionType.Interact, 2012114u, new Vector3(0f, 1.15f, 10.23451f), 1255) { TargetTerritoryId = (ushort)131 @@ -445607,15 +366358,12 @@ public static class AssemblyQuestLoader num3 = 1; List list312 = new List(num3); CollectionsMarshal.SetCount(list312, num3); - Span span312 = CollectionsMarshal.AsSpan(list312); - index3 = 0; - span312[index3] = 131; + CollectionsMarshal.AsSpan(list312)[0] = 131; skipStepConditions7.InTerritory = list312; skipConditions11.StepIf = skipStepConditions7; obj208.SkipConditions = skipConditions11; reference230 = obj208; - index2++; - span311[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) + span113[1] = new QuestStep(EInteractionType.CompleteQuest, 1051656u, new Vector3(56.443115f, 10f, 5.935669f), 131) { StopDistance = 7f, NextQuestId = new QuestId(5189) @@ -445629,33 +366377,27 @@ public static class AssemblyQuestLoader num = 1; List list313 = new List(num); CollectionsMarshal.SetCount(list313, num); - Span span313 = CollectionsMarshal.AsSpan(list313); - index = 0; - span313[index] = "liza"; + CollectionsMarshal.AsSpan(list313)[0] = "liza"; questRoot40.Author = list313; - index = 7; - List list314 = new List(index); - CollectionsMarshal.SetCount(list314, index); - Span span314 = CollectionsMarshal.AsSpan(list314); - num = 0; - ref QuestSequence reference231 = ref span314[num]; + num = 7; + List list314 = new List(num); + CollectionsMarshal.SetCount(list314, num); + Span span114 = CollectionsMarshal.AsSpan(list314); + ref QuestSequence reference231 = ref span114[0]; QuestSequence obj209 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj209.Steps = list315; reference231 = obj209; - num++; - ref QuestSequence reference232 = ref span314[num]; + ref QuestSequence reference232 = ref span114[1]; QuestSequence obj210 = new QuestSequence { Sequence = 1 @@ -445663,37 +366405,30 @@ public static class AssemblyQuestLoader num2 = 1; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - span316[index2] = new QuestStep(EInteractionType.Interact, 2014419u, new Vector3(-158.86176f, 7.4921875f, 493.88867f), 146) + CollectionsMarshal.AsSpan(list316)[0] = new QuestStep(EInteractionType.Interact, 2014419u, new Vector3(-158.86176f, 7.4921875f, 493.88867f), 146) { Fly = true, AetheryteShortcut = EAetheryteLocation.SouthernThanalanForgottenSprings }; obj210.Steps = list316; reference232 = obj210; - num++; - ref QuestSequence reference233 = ref span314[num]; + ref QuestSequence reference233 = ref span114[2]; QuestSequence obj211 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list317 = new List(index2); - CollectionsMarshal.SetCount(list317, index2); - Span span317 = CollectionsMarshal.AsSpan(list317); - num2 = 0; - ref QuestStep reference234 = ref span317[num2]; + num2 = 1; + List list317 = new List(num2); + CollectionsMarshal.SetCount(list317, num2); + ref QuestStep reference234 = ref CollectionsMarshal.AsSpan(list317)[0]; QuestStep obj212 = new QuestStep(EInteractionType.Interact, 1051661u, new Vector3(1.7852783f, 19.026453f, 581.62805f), 146) { StopDistance = 5f }; - index3 = 1; - List list318 = new List(index3); - CollectionsMarshal.SetCount(list318, index3); - Span span318 = CollectionsMarshal.AsSpan(list318); - num3 = 0; - span318[num3] = new DialogueChoice + num3 = 1; + List list318 = new List(num3); + CollectionsMarshal.SetCount(list318, num3); + CollectionsMarshal.AsSpan(list318)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGBZ002_05189_Q1_000_000"), @@ -445703,8 +366438,7 @@ public static class AssemblyQuestLoader reference234 = obj212; obj211.Steps = list317; reference233 = obj211; - num++; - ref QuestSequence reference235 = ref span314[num]; + ref QuestSequence reference235 = ref span114[3]; QuestSequence obj213 = new QuestSequence { Sequence = 3 @@ -445712,9 +366446,7 @@ public static class AssemblyQuestLoader num2 = 1; List list319 = new List(num2); CollectionsMarshal.SetCount(list319, num2); - Span span319 = CollectionsMarshal.AsSpan(list319); - index2 = 0; - ref QuestStep reference236 = ref span319[index2]; + ref QuestStep reference236 = ref CollectionsMarshal.AsSpan(list319)[0]; QuestStep obj214 = new QuestStep(EInteractionType.Combat, 1051663u, new Vector3(51.68225f, 0.7631253f, 711.57385f), 146) { Fly = true, @@ -445723,29 +366455,23 @@ public static class AssemblyQuestLoader num3 = 1; List list320 = new List(num3); CollectionsMarshal.SetCount(list320, num3); - Span span320 = CollectionsMarshal.AsSpan(list320); - index3 = 0; - span320[index3] = 18178u; + CollectionsMarshal.AsSpan(list320)[0] = 18178u; obj214.KillEnemyDataIds = list320; reference236 = obj214; obj213.Steps = list319; reference235 = obj213; - num++; - ref QuestSequence reference237 = ref span314[num]; + ref QuestSequence reference237 = ref span114[4]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj215.Steps = list321; reference237 = obj215; - num++; - ref QuestSequence reference238 = ref span314[num]; + ref QuestSequence reference238 = ref span114[5]; QuestSequence obj216 = new QuestSequence { Sequence = 5 @@ -445753,26 +366479,21 @@ public static class AssemblyQuestLoader num2 = 1; List list322 = new List(num2); CollectionsMarshal.SetCount(list322, num2); - Span span322 = CollectionsMarshal.AsSpan(list322); - index2 = 0; - span322[index2] = new QuestStep(EInteractionType.Interact, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) + CollectionsMarshal.AsSpan(list322)[0] = new QuestStep(EInteractionType.Interact, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146) { Fly = true }; obj216.Steps = list322; reference238 = obj216; - num++; - ref QuestSequence reference239 = ref span314[num]; + ref QuestSequence reference239 = ref span114[6]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5190) }; @@ -445785,16 +366506,13 @@ public static class AssemblyQuestLoader num = 1; List list324 = new List(num); CollectionsMarshal.SetCount(list324, num); - Span span324 = CollectionsMarshal.AsSpan(list324); - index = 0; - span324[index] = "liza"; + CollectionsMarshal.AsSpan(list324)[0] = "liza"; questRoot41.Author = list324; - index = 9; - List list325 = new List(index); - CollectionsMarshal.SetCount(list325, index); - Span span325 = CollectionsMarshal.AsSpan(list325); - num = 0; - ref QuestSequence reference240 = ref span325[num]; + num = 9; + List list325 = new List(num); + CollectionsMarshal.SetCount(list325, num); + Span span115 = CollectionsMarshal.AsSpan(list325); + ref QuestSequence reference240 = ref span115[0]; QuestSequence obj218 = new QuestSequence { Sequence = 0 @@ -445802,23 +366520,18 @@ public static class AssemblyQuestLoader num2 = 1; List list326 = new List(num2); CollectionsMarshal.SetCount(list326, num2); - Span span326 = CollectionsMarshal.AsSpan(list326); - index2 = 0; - span326[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146); + CollectionsMarshal.AsSpan(list326)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051668u, new Vector3(170.42798f, 15.943722f, 897.94763f), 146); obj218.Steps = list326; reference240 = obj218; - num++; - ref QuestSequence reference241 = ref span325[num]; + ref QuestSequence reference241 = ref span115[1]; QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -445829,8 +366542,7 @@ public static class AssemblyQuestLoader }; obj219.Steps = list327; reference241 = obj219; - num++; - ref QuestSequence reference242 = ref span325[num]; + ref QuestSequence reference242 = ref span115[2]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -445838,23 +366550,18 @@ public static class AssemblyQuestLoader num2 = 1; List list328 = new List(num2); CollectionsMarshal.SetCount(list328, num2); - Span span328 = CollectionsMarshal.AsSpan(list328); - index2 = 0; - span328[index2] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185); + CollectionsMarshal.AsSpan(list328)[0] = new QuestStep(EInteractionType.Interact, 1051670u, new Vector3(-15.976257f, -19.928413f, 224.90259f), 1185); obj220.Steps = list328; reference242 = obj220; - num++; - ref QuestSequence reference243 = ref span325[num]; + ref QuestSequence reference243 = ref span115[3]; QuestSequence obj221 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 1f, Fly = true, @@ -445862,8 +366569,7 @@ public static class AssemblyQuestLoader }; obj221.Steps = list329; reference243 = obj221; - num++; - ref QuestSequence reference244 = ref span325[num]; + ref QuestSequence reference244 = ref span115[4]; QuestSequence obj222 = new QuestSequence { Sequence = 4 @@ -445871,32 +366577,26 @@ public static class AssemblyQuestLoader num2 = 2; List list330 = new List(num2); CollectionsMarshal.SetCount(list330, num2); - 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); + 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); obj222.Steps = list330; reference244 = obj222; - num++; - ref QuestSequence reference245 = ref span325[num]; + ref QuestSequence reference245 = ref span115[5]; QuestSequence obj223 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Emote = EEmote.Unbound }; obj223.Steps = list331; reference245 = obj223; - num++; - ref QuestSequence reference246 = ref span325[num]; + ref QuestSequence reference246 = ref span115[6]; QuestSequence obj224 = new QuestSequence { Sequence = 6 @@ -445904,32 +366604,26 @@ public static class AssemblyQuestLoader num2 = 1; List list332 = new List(num2); CollectionsMarshal.SetCount(list332, num2); - Span span332 = CollectionsMarshal.AsSpan(list332); - index2 = 0; - span332[index2] = new QuestStep(EInteractionType.Interact, 1051682u, new Vector3(387.5028f, -0.60167974f, 426.99304f), 1190); + CollectionsMarshal.AsSpan(list332)[0] = new QuestStep(EInteractionType.Interact, 1051682u, new Vector3(387.5028f, -0.60167974f, 426.99304f), 1190); obj224.Steps = list332; reference246 = obj224; - num++; - ref QuestSequence reference247 = ref span325[num]; + ref QuestSequence reference247 = ref span115[7]; QuestSequence obj225 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true }; - num2++; - span333[num2] = new QuestStep(EInteractionType.Interact, 1051684u, new Vector3(426.04712f, 0.7461932f, 472.3125f), 1190); + span117[1] = new QuestStep(EInteractionType.Interact, 1051684u, new Vector3(426.04712f, 0.7461932f, 472.3125f), 1190); obj225.Steps = list333; reference247 = obj225; - num++; - ref QuestSequence reference248 = ref span325[num]; + ref QuestSequence reference248 = ref span115[8]; QuestSequence obj226 = new QuestSequence { Sequence = byte.MaxValue @@ -445937,9 +366631,7 @@ public static class AssemblyQuestLoader num2 = 1; List list334 = new List(num2); CollectionsMarshal.SetCount(list334, num2); - Span span334 = CollectionsMarshal.AsSpan(list334); - index2 = 0; - span334[index2] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + CollectionsMarshal.AsSpan(list334)[0] = new QuestStep(EInteractionType.CompleteQuest, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -445958,30 +366650,24 @@ public static class AssemblyQuestLoader num = 1; List list335 = new List(num); CollectionsMarshal.SetCount(list335, num); - Span span335 = CollectionsMarshal.AsSpan(list335); - index = 0; - span335[index] = "liza"; + CollectionsMarshal.AsSpan(list335)[0] = "liza"; questRoot42.Author = list335; - index = 11; - List list336 = new List(index); - CollectionsMarshal.SetCount(list336, index); - Span span336 = CollectionsMarshal.AsSpan(list336); - num = 0; - ref QuestSequence reference249 = ref span336[num]; + num = 11; + List list336 = new List(num); + CollectionsMarshal.SetCount(list336, num); + Span span118 = CollectionsMarshal.AsSpan(list336); + ref QuestSequence reference249 = ref span118[0]; QuestSequence obj227 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj227.Steps = list337; reference249 = obj227; - num++; - ref QuestSequence reference250 = ref span336[num]; + ref QuestSequence reference250 = ref span118[1]; QuestSequence obj228 = new QuestSequence { Sequence = 1 @@ -445989,9 +366675,7 @@ public static class AssemblyQuestLoader num2 = 1; List list338 = new List(num2); CollectionsMarshal.SetCount(list338, num2); - Span span338 = CollectionsMarshal.AsSpan(list338); - index2 = 0; - span338[index2] = new QuestStep(EInteractionType.SinglePlayerDuty, 1051689u, new Vector3(273.33484f, 15.999998f, 740.6576f), 1190) + CollectionsMarshal.AsSpan(list338)[0] = new QuestStep(EInteractionType.SinglePlayerDuty, 1051689u, new Vector3(273.33484f, 15.999998f, 740.6576f), 1190) { AethernetShortcut = new AethernetShortcut { @@ -446001,27 +366685,22 @@ public static class AssemblyQuestLoader }; obj228.Steps = list338; reference250 = obj228; - num++; - span336[num] = new QuestSequence + span118[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference251 = ref span336[num]; + ref QuestSequence reference251 = ref span118[3]; QuestSequence obj229 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj229.Steps = list339; reference251 = obj229; - num++; - ref QuestSequence reference252 = ref span336[num]; + ref QuestSequence reference252 = ref span118[4]; QuestSequence obj230 = new QuestSequence { Sequence = 4 @@ -446029,9 +366708,7 @@ public static class AssemblyQuestLoader num2 = 1; List list340 = new List(num2); CollectionsMarshal.SetCount(list340, num2); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) + CollectionsMarshal.AsSpan(list340)[0] = new QuestStep(EInteractionType.Interact, 1050871u, new Vector3(-51.895935f, -17.97287f, 182.7268f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -446042,22 +366719,18 @@ public static class AssemblyQuestLoader }; obj230.Steps = list340; reference252 = obj230; - num++; - ref QuestSequence reference253 = ref span336[num]; + ref QuestSequence reference253 = ref span118[5]; QuestSequence obj231 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj231.Steps = list341; reference253 = obj231; - num++; - ref QuestSequence reference254 = ref span336[num]; + ref QuestSequence reference254 = ref span118[6]; QuestSequence obj232 = new QuestSequence { Sequence = 6 @@ -446065,33 +366738,27 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - index2 = 0; - span342[index2] = new QuestStep(EInteractionType.Interact, 1051673u, new Vector3(-15.243774f, -19.762682f, 221.72876f), 1185) + CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.Interact, 1051673u, new Vector3(-15.243774f, -19.762682f, 221.72876f), 1185) { StopDistance = 5f }; obj232.Steps = list342; reference254 = obj232; - num++; - ref QuestSequence reference255 = ref span336[num]; + ref QuestSequence reference255 = ref span118[7]; QuestSequence obj233 = new QuestSequence { Sequence = 7 }; - 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) + 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) { StopDistance = 5f }; obj233.Steps = list343; reference255 = obj233; - num++; - ref QuestSequence reference256 = ref span336[num]; + ref QuestSequence reference256 = ref span118[8]; QuestSequence obj234 = new QuestSequence { Sequence = 8 @@ -446099,30 +366766,24 @@ public static class AssemblyQuestLoader num2 = 1; List list344 = new List(num2); CollectionsMarshal.SetCount(list344, num2); - Span span344 = CollectionsMarshal.AsSpan(list344); - index2 = 0; - span344[index2] = new QuestStep(EInteractionType.Interact, 1051671u, new Vector3(-17.95996f, -19.784014f, 224.17017f), 1185) + CollectionsMarshal.AsSpan(list344)[0] = new QuestStep(EInteractionType.Interact, 1051671u, new Vector3(-17.95996f, -19.784014f, 224.17017f), 1185) { StopDistance = 5f }; obj234.Steps = list344; reference256 = obj234; - num++; - ref QuestSequence reference257 = ref span336[num]; + ref QuestSequence reference257 = ref span118[9]; QuestSequence obj235 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj235.Steps = list345; reference257 = obj235; - num++; - ref QuestSequence reference258 = ref span336[num]; + ref QuestSequence reference258 = ref span118[10]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -446130,11 +366791,9 @@ public static class AssemblyQuestLoader num2 = 2; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - 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) + 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) { StopDistance = 5f, DisableNavmesh = true @@ -446148,26 +366807,21 @@ public static class AssemblyQuestLoader num = 1; List list347 = new List(num); CollectionsMarshal.SetCount(list347, num); - Span span347 = CollectionsMarshal.AsSpan(list347); - index = 0; - span347[index] = "liza"; + CollectionsMarshal.AsSpan(list347)[0] = "liza"; questRoot43.Author = list347; - index = 11; - List list348 = new List(index); - CollectionsMarshal.SetCount(list348, index); - Span span348 = CollectionsMarshal.AsSpan(list348); - num = 0; - ref QuestSequence reference259 = ref span348[num]; + num = 11; + List list348 = new List(num); + CollectionsMarshal.SetCount(list348, num); + Span span120 = CollectionsMarshal.AsSpan(list348); + ref QuestSequence reference259 = ref span120[0]; QuestSequence obj237 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -446180,8 +366834,7 @@ public static class AssemblyQuestLoader }; obj237.Steps = list349; reference259 = obj237; - num++; - ref QuestSequence reference260 = ref span348[num]; + ref QuestSequence reference260 = ref span120[1]; QuestSequence obj238 = new QuestSequence { Sequence = 1 @@ -446189,9 +366842,8 @@ public static class AssemblyQuestLoader num2 = 2; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - index2 = 0; - ref QuestStep reference261 = ref span350[index2]; + Span span121 = CollectionsMarshal.AsSpan(list350); + ref QuestStep reference261 = ref span121[0]; QuestStep obj239 = new QuestStep(EInteractionType.Interact, 1048501u, new Vector3(121.44653f, 42f, -347.34113f), 1185) { AethernetShortcut = new AethernetShortcut @@ -446200,59 +366852,43 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalBrightploomPost } }; - 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); + 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); obj239.CompletionQuestVariablesFlags = list351; reference261 = obj239; - index2++; - ref QuestStep reference262 = ref span350[index2]; + ref QuestStep reference262 = ref span121[1]; 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 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); + 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); questStep26.CompletionQuestVariablesFlags = list352; reference262 = questStep26; obj238.Steps = list350; reference260 = obj238; - num++; - ref QuestSequence reference263 = ref span348[num]; + ref QuestSequence reference263 = ref span120[2]; QuestSequence obj240 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -446262,8 +366898,7 @@ public static class AssemblyQuestLoader }; obj240.Steps = list353; reference263 = obj240; - num++; - ref QuestSequence reference264 = ref span348[num]; + ref QuestSequence reference264 = ref span120[3]; QuestSequence obj241 = new QuestSequence { Sequence = 3 @@ -446271,30 +366906,24 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - Span span354 = CollectionsMarshal.AsSpan(list354); - index2 = 0; - span354[index2] = new QuestStep(EInteractionType.Interact, 1051698u, new Vector3(-122.72839f, 27.990566f, -436.42328f), 1191); + CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1051698u, new Vector3(-122.72839f, 27.990566f, -436.42328f), 1191); obj241.Steps = list354; reference264 = obj241; - num++; - ref QuestSequence reference265 = ref span348[num]; + ref QuestSequence reference265 = ref span120[4]; QuestSequence obj242 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj242.Steps = list355; reference265 = obj242; - num++; - ref QuestSequence reference266 = ref span348[num]; + ref QuestSequence reference266 = ref span120[5]; QuestSequence obj243 = new QuestSequence { Sequence = 5 @@ -446302,30 +366931,24 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span356 = CollectionsMarshal.AsSpan(list356); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.Interact, 1048037u, new Vector3(-289.66205f, 45.88422f, -832.3644f), 1191) + CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.Interact, 1048037u, new Vector3(-289.66205f, 45.88422f, -832.3644f), 1191) { Fly = true }; obj243.Steps = list356; reference266 = obj243; - num++; - ref QuestSequence reference267 = ref span348[num]; + ref QuestSequence reference267 = ref span120[6]; QuestSequence obj244 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj244.Steps = list357; reference267 = obj244; - num++; - ref QuestSequence reference268 = ref span348[num]; + ref QuestSequence reference268 = ref span120[7]; QuestSequence obj245 = new QuestSequence { Sequence = 7 @@ -446333,9 +366956,8 @@ public static class AssemblyQuestLoader num2 = 3; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - ref QuestStep reference269 = ref span358[index2]; + Span span124 = CollectionsMarshal.AsSpan(list358); + ref QuestStep reference269 = ref span124[0]; QuestStep obj246 = new QuestStep(EInteractionType.Interact, 1051704u, new Vector3(353.96338f, 50.75f, 243.06091f), 1186) { AethernetShortcut = new AethernetShortcut @@ -446344,26 +366966,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - 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); + 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); obj246.CompletionQuestVariablesFlags = list359; reference269 = obj246; - index2++; - ref QuestStep reference270 = ref span358[index2]; + ref QuestStep reference270 = ref span124[1]; QuestStep obj247 = new QuestStep(EInteractionType.Interact, 1048090u, new Vector3(362.87476f, 50.75f, 223.46838f), 1186) { StopDistance = 5f @@ -446371,60 +366986,43 @@ public static class AssemblyQuestLoader num3 = 6; List list360 = new List(num3); CollectionsMarshal.SetCount(list360, num3); - 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); + 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); obj247.CompletionQuestVariablesFlags = list360; reference270 = obj247; - index2++; - ref QuestStep reference271 = ref span358[index2]; + ref QuestStep reference271 = ref span124[2]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1051705u, new Vector3(344.59448f, 50.75f, 195.45276f), 1186); - 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); + 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); questStep27.CompletionQuestVariablesFlags = list361; reference271 = questStep27; obj245.Steps = list358; reference268 = obj245; - num++; - ref QuestSequence reference272 = ref span348[num]; + ref QuestSequence reference272 = ref span120[8]; QuestSequence obj248 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj248.Steps = list362; reference272 = obj248; - num++; - ref QuestSequence reference273 = ref span348[num]; + ref QuestSequence reference273 = ref span120[9]; QuestSequence obj249 = new QuestSequence { Sequence = 9 @@ -446432,9 +367030,7 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - index2 = 0; - span363[index2] = new QuestStep(EInteractionType.Interact, 1051708u, new Vector3(307.42346f, 70.0001f, -25.0401f), 1186) + CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1051708u, new Vector3(307.42346f, 70.0001f, -25.0401f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -446444,18 +367040,15 @@ public static class AssemblyQuestLoader }; obj249.Steps = list363; reference273 = obj249; - num++; - ref QuestSequence reference274 = ref span348[num]; + ref QuestSequence reference274 = ref span120[10]; QuestSequence obj250 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(5295) @@ -446469,16 +367062,13 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - Span span365 = CollectionsMarshal.AsSpan(list365); - index = 0; - span365[index] = "liza"; + CollectionsMarshal.AsSpan(list365)[0] = "liza"; questRoot44.Author = list365; - index = 9; - List list366 = new List(index); - CollectionsMarshal.SetCount(list366, index); - Span span366 = CollectionsMarshal.AsSpan(list366); - num = 0; - ref QuestSequence reference275 = ref span366[num]; + num = 9; + List list366 = new List(num); + CollectionsMarshal.SetCount(list366, num); + Span span128 = CollectionsMarshal.AsSpan(list366); + ref QuestSequence reference275 = ref span128[0]; QuestSequence obj251 = new QuestSequence { Sequence = 0 @@ -446486,9 +367076,7 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - index2 = 0; - span367[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051712u, new Vector3(12.344482f, -14f, 96.17761f), 1185) + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051712u, new Vector3(12.344482f, -14f, 96.17761f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -446506,26 +367094,22 @@ public static class AssemblyQuestLoader }; obj251.Steps = list367; reference275 = obj251; - num++; - ref QuestSequence reference276 = ref span366[num]; + ref QuestSequence reference276 = ref span128[1]; QuestSequence obj252 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj252.Steps = list368; reference276 = obj252; - num++; - ref QuestSequence reference277 = ref span366[num]; + ref QuestSequence reference277 = ref span128[2]; QuestSequence obj253 = new QuestSequence { Sequence = 2 @@ -446533,27 +367117,21 @@ public static class AssemblyQuestLoader num2 = 1; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span369 = CollectionsMarshal.AsSpan(list369); - index2 = 0; - span369[index2] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); + CollectionsMarshal.AsSpan(list369)[0] = new QuestStep(EInteractionType.Interact, 1051713u, new Vector3(-67.88745f, 2.4000018f, -399.64905f), 1188); obj253.Steps = list369; reference277 = obj253; - num++; - ref QuestSequence reference278 = ref span366[num]; + ref QuestSequence reference278 = ref span128[3]; QuestSequence obj254 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj254.Steps = list370; reference278 = obj254; - num++; - ref QuestSequence reference279 = ref span366[num]; + ref QuestSequence reference279 = ref span128[4]; QuestSequence obj255 = new QuestSequence { Sequence = 4 @@ -446561,9 +367139,7 @@ public static class AssemblyQuestLoader num2 = 1; List list371 = new List(num2); CollectionsMarshal.SetCount(list371, num2); - Span span371 = CollectionsMarshal.AsSpan(list371); - index2 = 0; - ref QuestStep reference280 = ref span371[index2]; + ref QuestStep reference280 = ref CollectionsMarshal.AsSpan(list371)[0]; QuestStep obj256 = new QuestStep(EInteractionType.Interact, 1051718u, new Vector3(62.210938f, 0.7218611f, -333.94366f), 1188) { Fly = true @@ -446571,9 +367147,7 @@ public static class AssemblyQuestLoader num3 = 1; List list372 = new List(num3); CollectionsMarshal.SetCount(list372, num3); - Span span372 = CollectionsMarshal.AsSpan(list372); - index3 = 0; - span372[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list372)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q5_000_001"), @@ -446583,28 +367157,23 @@ public static class AssemblyQuestLoader reference280 = obj256; obj255.Steps = list371; reference279 = obj255; - num++; - ref QuestSequence reference281 = ref span366[num]; + ref QuestSequence reference281 = ref span128[5]; QuestSequence obj257 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list373 = new List(index2); - CollectionsMarshal.SetCount(list373, index2); - Span span373 = CollectionsMarshal.AsSpan(list373); - num2 = 0; - ref QuestStep reference282 = ref span373[num2]; + num2 = 1; + List list373 = new List(num2); + CollectionsMarshal.SetCount(list373, num2); + ref QuestStep reference282 = ref CollectionsMarshal.AsSpan(list373)[0]; QuestStep obj258 = new QuestStep(EInteractionType.Interact, 1051719u, new Vector3(-42.923706f, 21.48239f, -88.76172f), 1188) { Fly = true }; - index3 = 1; - List list374 = new List(index3); - CollectionsMarshal.SetCount(list374, index3); - Span span374 = CollectionsMarshal.AsSpan(list374); - num3 = 0; - span374[num3] = new DialogueChoice + num3 = 1; + List list374 = new List(num3); + CollectionsMarshal.SetCount(list374, num3); + CollectionsMarshal.AsSpan(list374)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q6_000_001"), @@ -446614,8 +367183,7 @@ public static class AssemblyQuestLoader reference282 = obj258; obj257.Steps = list373; reference281 = obj257; - num++; - ref QuestSequence reference283 = ref span366[num]; + ref QuestSequence reference283 = ref span128[6]; QuestSequence obj259 = new QuestSequence { Sequence = 6 @@ -446623,9 +367191,7 @@ public static class AssemblyQuestLoader num2 = 1; List list375 = new List(num2); CollectionsMarshal.SetCount(list375, num2); - Span span375 = CollectionsMarshal.AsSpan(list375); - index2 = 0; - ref QuestStep reference284 = ref span375[index2]; + ref QuestStep reference284 = ref CollectionsMarshal.AsSpan(list375)[0]; QuestStep obj260 = new QuestStep(EInteractionType.Interact, 1051720u, new Vector3(-183.45923f, 0.39999998f, -73.74689f), 1188) { Fly = true @@ -446633,9 +367199,7 @@ public static class AssemblyQuestLoader num3 = 1; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); - Span span376 = CollectionsMarshal.AsSpan(list376); - index3 = 0; - span376[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list376)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL001_05193_Q7_000_001"), @@ -446645,26 +367209,22 @@ public static class AssemblyQuestLoader reference284 = obj260; obj259.Steps = list375; reference283 = obj259; - num++; - ref QuestSequence reference285 = ref span366[num]; + ref QuestSequence reference285 = ref span128[7]; QuestSequence obj261 = new QuestSequence { Sequence = 7 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj261.Steps = list377; reference285 = obj261; - num++; - ref QuestSequence reference286 = ref span366[num]; + ref QuestSequence reference286 = ref span128[8]; QuestSequence obj262 = new QuestSequence { Sequence = byte.MaxValue @@ -446672,9 +367232,8 @@ public static class AssemblyQuestLoader num2 = 3; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.3438f, 13.823656f, -238.32625f), 1188) + Span span129 = CollectionsMarshal.AsSpan(list378); + span129[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(780.3438f, 13.823656f, -238.32625f), 1188) { Fly = true, SkipConditions = new SkipConditions @@ -446685,8 +367244,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span378[index2] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) + span129[1] = new QuestStep(EInteractionType.AttuneAetheryte, null, null, 1188) { Fly = true, Aetheryte = EAetheryteLocation.KozamaukaDockPoga, @@ -446698,8 +367256,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span378[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051721u, new Vector3(737.5753f, 8.14118f, -278.0957f), 1188) + span129[2] = new QuestStep(EInteractionType.CompleteQuest, 1051721u, new Vector3(737.5753f, 8.14118f, -278.0957f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga @@ -446713,26 +367270,22 @@ public static class AssemblyQuestLoader num = 1; List list379 = new List(num); CollectionsMarshal.SetCount(list379, num); - Span span379 = CollectionsMarshal.AsSpan(list379); - index = 0; - span379[index] = "liza"; + CollectionsMarshal.AsSpan(list379)[0] = "liza"; questRoot45.Author = list379; - index = 8; - List list380 = new List(index); - CollectionsMarshal.SetCount(list380, index); - Span span380 = CollectionsMarshal.AsSpan(list380); - num = 0; - ref QuestSequence reference287 = ref span380[num]; + num = 8; + List list380 = new List(num); + CollectionsMarshal.SetCount(list380, num); + Span span130 = CollectionsMarshal.AsSpan(list380); + ref QuestSequence reference287 = ref span130[0]; QuestSequence obj263 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -446744,12 +367297,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span381[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + span131[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj263.Steps = list381; reference287 = obj263; - num++; - ref QuestSequence reference288 = ref span380[num]; + ref QuestSequence reference288 = ref span130[1]; QuestSequence obj264 = new QuestSequence { Sequence = 1 @@ -446757,38 +367308,32 @@ public static class AssemblyQuestLoader num2 = 2; List list382 = new List(num2); CollectionsMarshal.SetCount(list382, num2); - Span span382 = CollectionsMarshal.AsSpan(list382); - index2 = 0; - span382[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span132 = CollectionsMarshal.AsSpan(list382); + span132[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Mount = true }; - index2++; - span382[index2] = new QuestStep(EInteractionType.Interact, 2014423u, new Vector3(727.0161f, 8.010925f, -284.3214f), 1188) + span132[1] = new QuestStep(EInteractionType.Interact, 2014423u, new Vector3(727.0161f, 8.010925f, -284.3214f), 1188) { Fly = true }; obj264.Steps = list382; reference288 = obj264; - num++; - ref QuestSequence reference289 = ref span380[num]; + ref QuestSequence reference289 = ref span130[2]; QuestSequence obj265 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj265.Steps = list383; reference289 = obj265; - num++; - ref QuestSequence reference290 = ref span380[num]; + ref QuestSequence reference290 = ref span130[3]; QuestSequence obj266 = new QuestSequence { Sequence = 3 @@ -446796,9 +367341,7 @@ public static class AssemblyQuestLoader num2 = 1; List list384 = new List(num2); CollectionsMarshal.SetCount(list384, num2); - Span span384 = CollectionsMarshal.AsSpan(list384); - index2 = 0; - span384[index2] = new QuestStep(EInteractionType.Interact, 2014424u, new Vector3(-90.62335f, 9.750427f, -515.31244f), 1188) + CollectionsMarshal.AsSpan(list384)[0] = new QuestStep(EInteractionType.Interact, 2014424u, new Vector3(-90.62335f, 9.750427f, -515.31244f), 1188) { StopDistance = 0.5f, Fly = true, @@ -446806,25 +367349,21 @@ public static class AssemblyQuestLoader }; obj266.Steps = list384; reference290 = obj266; - num++; - ref QuestSequence reference291 = ref span380[num]; + ref QuestSequence reference291 = ref span130[4]; QuestSequence obj267 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj267.Steps = list385; reference291 = obj267; - num++; - ref QuestSequence reference292 = ref span380[num]; + ref QuestSequence reference292 = ref span130[5]; QuestSequence obj268 = new QuestSequence { Sequence = 5 @@ -446832,33 +367371,25 @@ public static class AssemblyQuestLoader num2 = 3; List list386 = new List(num2); CollectionsMarshal.SetCount(list386, num2); - Span span386 = CollectionsMarshal.AsSpan(list386); - index2 = 0; - ref QuestStep reference293 = ref span386[index2]; + Span span133 = CollectionsMarshal.AsSpan(list386); + ref QuestStep reference293 = ref span133[0]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 2014599u, new Vector3(-300.1908f, 0.38146973f, -66.78876f), 1188) { Fly = true }; - 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); + 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); obj269.CompletionQuestVariablesFlags = list387; reference293 = obj269; - index2++; - ref QuestStep reference294 = ref span386[index2]; + ref QuestStep reference294 = ref span133[1]; QuestStep obj270 = new QuestStep(EInteractionType.Interact, 2014600u, new Vector3(-338.4604f, 0.38146973f, -88.944885f), 1188) { Fly = true @@ -446866,76 +367397,57 @@ public static class AssemblyQuestLoader num3 = 6; List list388 = new List(num3); CollectionsMarshal.SetCount(list388, num3); - 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); + 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); obj270.CompletionQuestVariablesFlags = list388; reference294 = obj270; - index2++; - ref QuestStep reference295 = ref span386[index2]; + ref QuestStep reference295 = ref span133[2]; QuestStep obj271 = new QuestStep(EInteractionType.Combat, 2014436u, new Vector3(-370.4433f, 0.38146973f, -111.436646f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - 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; + num3 = 2; + List list389 = new List(num3); + CollectionsMarshal.SetCount(list389, num3); + Span span136 = CollectionsMarshal.AsSpan(list389); + span136[0] = 18170u; + span136[1] = 18171u; obj271.KillEnemyDataIds = list389; num3 = 6; List list390 = new List(num3); CollectionsMarshal.SetCount(list390, num3); - 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); + 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); obj271.CompletionQuestVariablesFlags = list390; reference295 = obj271; obj268.Steps = list386; reference292 = obj268; - num++; - ref QuestSequence reference296 = ref span380[num]; + ref QuestSequence reference296 = ref span130[6]; QuestSequence obj272 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj272.Steps = list391; reference296 = obj272; - num++; - ref QuestSequence reference297 = ref span380[num]; + ref QuestSequence reference297 = ref span130[7]; QuestSequence obj273 = new QuestSequence { Sequence = byte.MaxValue @@ -446943,9 +367455,7 @@ public static class AssemblyQuestLoader num2 = 1; List list392 = new List(num2); CollectionsMarshal.SetCount(list392, num2); - Span span392 = CollectionsMarshal.AsSpan(list392); - index2 = 0; - span392[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051722u, new Vector3(798.3672f, 13.076807f, -246.69269f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -446958,26 +367468,22 @@ public static class AssemblyQuestLoader num = 1; List list393 = new List(num); CollectionsMarshal.SetCount(list393, num); - Span span393 = CollectionsMarshal.AsSpan(list393); - index = 0; - span393[index] = "liza"; + CollectionsMarshal.AsSpan(list393)[0] = "liza"; questRoot46.Author = list393; - index = 7; - List list394 = new List(index); - CollectionsMarshal.SetCount(list394, index); - Span span394 = CollectionsMarshal.AsSpan(list394); - num = 0; - ref QuestSequence reference298 = ref span394[num]; + num = 7; + List list394 = new List(num); + CollectionsMarshal.SetCount(list394, num); + Span span138 = CollectionsMarshal.AsSpan(list394); + ref QuestSequence reference298 = ref span138[0]; QuestSequence obj274 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -446989,12 +367495,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span395[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + span139[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj274.Steps = list395; reference298 = obj274; - num++; - ref QuestSequence reference299 = ref span394[num]; + ref QuestSequence reference299 = ref span138[1]; QuestSequence obj275 = new QuestSequence { Sequence = 1 @@ -447002,9 +367506,7 @@ public static class AssemblyQuestLoader num2 = 1; List list396 = new List(num2); CollectionsMarshal.SetCount(list396, num2); - Span span396 = CollectionsMarshal.AsSpan(list396); - index2 = 0; - span396[index2] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188) + CollectionsMarshal.AsSpan(list396)[0] = new QuestStep(EInteractionType.Interact, 1051731u, new Vector3(-125.07825f, 9.842161f, -450.73627f), 1188) { StopDistance = 2f, Fly = true, @@ -447012,22 +367514,18 @@ public static class AssemblyQuestLoader }; obj275.Steps = list396; reference299 = obj275; - num++; - ref QuestSequence reference300 = ref span394[num]; + ref QuestSequence reference300 = ref span138[2]; QuestSequence obj276 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj276.Steps = list397; reference300 = obj276; - num++; - ref QuestSequence reference301 = ref span394[num]; + ref QuestSequence reference301 = ref span138[3]; QuestSequence obj277 = new QuestSequence { Sequence = 3 @@ -447035,94 +367533,69 @@ public static class AssemblyQuestLoader num2 = 2; List list398 = new List(num2); CollectionsMarshal.SetCount(list398, num2); - Span span398 = CollectionsMarshal.AsSpan(list398); - index2 = 0; - span398[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.89976f, 3.8414032f, -279.8074f), 1188) + Span span140 = CollectionsMarshal.AsSpan(list398); + span140[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(124.89976f, 3.8414032f, -279.8074f), 1188) { Fly = true }; - index2++; - span398[index2] = new QuestStep(EInteractionType.Interact, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); + span140[1] = new QuestStep(EInteractionType.Interact, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); obj277.Steps = list398; reference301 = obj277; - num++; - ref QuestSequence reference302 = ref span394[num]; + ref QuestSequence reference302 = ref span138[4]; QuestSequence obj278 = new QuestSequence { Sequence = 4 }; - index2 = 5; - List list399 = new List(index2); - CollectionsMarshal.SetCount(list399, index2); - Span span399 = CollectionsMarshal.AsSpan(list399); - num2 = 0; - ref QuestStep reference303 = ref span399[num2]; + num2 = 5; + List list399 = new List(num2); + CollectionsMarshal.SetCount(list399, num2); + Span span141 = CollectionsMarshal.AsSpan(list399); + ref QuestStep reference303 = ref span141[0]; QuestStep obj279 = new QuestStep(EInteractionType.Interact, 2014427u, new Vector3(183.79492f, -0.015319824f, -331.53284f), 1188) { Fly = true }; - 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); + 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); obj279.CompletionQuestVariablesFlags = list400; reference303 = obj279; - num2++; - ref QuestStep reference304 = ref span399[num2]; + ref QuestStep reference304 = ref span141[1]; 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 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); + 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); questStep28.CompletionQuestVariablesFlags = list401; reference304 = questStep28; - num2++; - ref QuestStep reference305 = ref span399[num2]; + ref QuestStep reference305 = ref span141[2]; QuestStep questStep29 = new QuestStep(EInteractionType.Interact, 2014429u, new Vector3(213.21423f, -0.015319824f, -354.84857f), 1188); - 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); + 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); questStep29.CompletionQuestVariablesFlags = list402; reference305 = questStep29; - num2++; - ref QuestStep reference306 = ref span399[num2]; + ref QuestStep reference306 = ref span141[3]; QuestStep obj280 = new QuestStep(EInteractionType.Interact, 2014430u, new Vector3(229.93823f, -0.015319824f, -342.15308f), 1188) { Mount = true, @@ -447131,46 +367604,32 @@ public static class AssemblyQuestLoader num3 = 6; List list403 = new List(num3); CollectionsMarshal.SetCount(list403, num3); - 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); + 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); obj280.CompletionQuestVariablesFlags = list403; reference306 = obj280; - num2++; - ref QuestStep reference307 = ref span399[num2]; + ref QuestStep reference307 = ref span141[4]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 2014431u, new Vector3(252.18579f, -0.015319824f, -371.20624f), 1188); - 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); + 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); questStep30.CompletionQuestVariablesFlags = list404; reference307 = questStep30; obj278.Steps = list399; reference302 = obj278; - num++; - ref QuestSequence reference308 = ref span394[num]; + ref QuestSequence reference308 = ref span138[5]; QuestSequence obj281 = new QuestSequence { Sequence = 5 @@ -447178,27 +367637,22 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - Span span405 = CollectionsMarshal.AsSpan(list405); - index2 = 0; - span405[index2] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) + CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.Interact, 1048826u, new Vector3(672.4802f, 41.63828f, -527.36707f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; obj281.Steps = list405; reference308 = obj281; - num++; - ref QuestSequence reference309 = ref span394[num]; + ref QuestSequence reference309 = ref span138[6]; QuestSequence obj282 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -447211,16 +367665,13 @@ public static class AssemblyQuestLoader num = 1; List list407 = new List(num); CollectionsMarshal.SetCount(list407, num); - Span span407 = CollectionsMarshal.AsSpan(list407); - index = 0; - span407[index] = "liza"; + CollectionsMarshal.AsSpan(list407)[0] = "liza"; questRoot47.Author = list407; - index = 8; - List list408 = new List(index); - CollectionsMarshal.SetCount(list408, index); - Span span408 = CollectionsMarshal.AsSpan(list408); - num = 0; - ref QuestSequence reference310 = ref span408[num]; + num = 8; + List list408 = new List(num); + CollectionsMarshal.SetCount(list408, num); + Span span147 = CollectionsMarshal.AsSpan(list408); + ref QuestSequence reference310 = ref span147[0]; QuestSequence obj283 = new QuestSequence { Sequence = 0 @@ -447228,9 +367679,8 @@ public static class AssemblyQuestLoader num2 = 2; List list409 = new List(num2); CollectionsMarshal.SetCount(list409, num2); - Span span409 = CollectionsMarshal.AsSpan(list409); - index2 = 0; - span409[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span148 = CollectionsMarshal.AsSpan(list409); + span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -447242,39 +367692,33 @@ public static class AssemblyQuestLoader } } }; - index2++; - span409[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + span148[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj283.Steps = list409; reference310 = obj283; - num++; - ref QuestSequence reference311 = ref span408[num]; + ref QuestSequence reference311 = ref span147[1]; QuestSequence obj284 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - num2++; - span410[num2] = new QuestStep(EInteractionType.Interact, 1051734u, new Vector3(588.7998f, 116.71518f, 216.84595f), 1188) + span149[1] = new QuestStep(EInteractionType.Interact, 1051734u, new Vector3(588.7998f, 116.71518f, 216.84595f), 1188) { Fly = true }; - num2++; - span410[num2] = new QuestStep(EInteractionType.Interact, 1051735u, new Vector3(614.9232f, 119.49004f, 172.16748f), 1188) + span149[2] = new QuestStep(EInteractionType.Interact, 1051735u, new Vector3(614.9232f, 119.49004f, 172.16748f), 1188) { Fly = true }; obj284.Steps = list410; reference311 = obj284; - num++; - ref QuestSequence reference312 = ref span408[num]; + ref QuestSequence reference312 = ref span147[2]; QuestSequence obj285 = new QuestSequence { Sequence = 2 @@ -447282,33 +367726,27 @@ public static class AssemblyQuestLoader num2 = 1; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span411 = CollectionsMarshal.AsSpan(list411); - index2 = 0; - span411[index2] = new QuestStep(EInteractionType.Interact, 1051736u, new Vector3(573.3883f, 116f, 202.62451f), 1188) + CollectionsMarshal.AsSpan(list411)[0] = new QuestStep(EInteractionType.Interact, 1051736u, new Vector3(573.3883f, 116f, 202.62451f), 1188) { Fly = true }; obj285.Steps = list411; reference312 = obj285; - num++; - ref QuestSequence reference313 = ref span408[num]; + ref QuestSequence reference313 = ref span147[3]; QuestSequence obj286 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj286.Steps = list412; reference313 = obj286; - num++; - ref QuestSequence reference314 = ref span408[num]; + ref QuestSequence reference314 = ref span147[4]; QuestSequence obj287 = new QuestSequence { Sequence = 4 @@ -447316,33 +367754,27 @@ public static class AssemblyQuestLoader num2 = 1; List list413 = new List(num2); CollectionsMarshal.SetCount(list413, num2); - Span span413 = CollectionsMarshal.AsSpan(list413); - index2 = 0; - span413[index2] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) + CollectionsMarshal.AsSpan(list413)[0] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) { StopDistance = 5f }; obj287.Steps = list413; reference314 = obj287; - num++; - ref QuestSequence reference315 = ref span408[num]; + ref QuestSequence reference315 = ref span147[5]; QuestSequence obj288 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj288.Steps = list414; reference315 = obj288; - num++; - ref QuestSequence reference316 = ref span408[num]; + ref QuestSequence reference316 = ref span147[6]; QuestSequence obj289 = new QuestSequence { Sequence = 6 @@ -447350,26 +367782,21 @@ public static class AssemblyQuestLoader num2 = 1; List list415 = new List(num2); CollectionsMarshal.SetCount(list415, num2); - Span span415 = CollectionsMarshal.AsSpan(list415); - index2 = 0; - span415[index2] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) + CollectionsMarshal.AsSpan(list415)[0] = new QuestStep(EInteractionType.Interact, 1051738u, new Vector3(661.7991f, 117.68325f, 646.6925f), 1188) { Fly = true }; obj289.Steps = list415; reference316 = obj289; - num++; - ref QuestSequence reference317 = ref span408[num]; + ref QuestSequence reference317 = ref span147[7]; QuestSequence obj290 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -447382,16 +367809,13 @@ public static class AssemblyQuestLoader num = 1; List list417 = new List(num); CollectionsMarshal.SetCount(list417, num); - Span span417 = CollectionsMarshal.AsSpan(list417); - index = 0; - span417[index] = "liza"; + CollectionsMarshal.AsSpan(list417)[0] = "liza"; questRoot48.Author = list417; - index = 6; - List list418 = new List(index); - CollectionsMarshal.SetCount(list418, index); - Span span418 = CollectionsMarshal.AsSpan(list418); - num = 0; - ref QuestSequence reference318 = ref span418[num]; + num = 6; + List list418 = new List(num); + CollectionsMarshal.SetCount(list418, num); + Span span150 = CollectionsMarshal.AsSpan(list418); + ref QuestSequence reference318 = ref span150[0]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -447399,9 +367823,8 @@ public static class AssemblyQuestLoader num2 = 2; List list419 = new List(num2); CollectionsMarshal.SetCount(list419, num2); - Span span419 = CollectionsMarshal.AsSpan(list419); - index2 = 0; - span419[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span151 = CollectionsMarshal.AsSpan(list419); + span151[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -447413,26 +367836,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span419[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + span151[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj291.Steps = list419; reference318 = obj291; - num++; - ref QuestSequence reference319 = ref span418[num]; + ref QuestSequence reference319 = ref span150[1]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj292.Steps = list420; reference319 = obj292; - num++; - ref QuestSequence reference320 = ref span418[num]; + ref QuestSequence reference320 = ref span150[2]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -447440,11 +367858,9 @@ public static class AssemblyQuestLoader num2 = 2; List list421 = new List(num2); CollectionsMarshal.SetCount(list421, num2); - 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]; + 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]; QuestStep obj294 = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f @@ -447452,9 +367868,7 @@ public static class AssemblyQuestLoader num3 = 1; List list422 = new List(num3); CollectionsMarshal.SetCount(list422, num3); - Span span422 = CollectionsMarshal.AsSpan(list422); - index3 = 0; - span422[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list422)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL005_05197_Q1_000_001"), @@ -447464,22 +367878,18 @@ public static class AssemblyQuestLoader reference321 = obj294; obj293.Steps = list421; reference320 = obj293; - num++; - ref QuestSequence reference322 = ref span418[num]; + ref QuestSequence reference322 = ref span150[3]; QuestSequence obj295 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj295.Steps = list423; reference322 = obj295; - num++; - ref QuestSequence reference323 = ref span418[num]; + ref QuestSequence reference323 = ref span150[4]; QuestSequence obj296 = new QuestSequence { Sequence = 4 @@ -447487,26 +367897,21 @@ public static class AssemblyQuestLoader num2 = 1; List list424 = new List(num2); CollectionsMarshal.SetCount(list424, num2); - Span span424 = CollectionsMarshal.AsSpan(list424); - index2 = 0; - span424[index2] = new QuestStep(EInteractionType.Interact, 1051742u, new Vector3(187.45703f, 0.7218611f, -458.18268f), 1188) + CollectionsMarshal.AsSpan(list424)[0] = new QuestStep(EInteractionType.Interact, 1051742u, new Vector3(187.45703f, 0.7218611f, -458.18268f), 1188) { StopDistance = 5f }; obj296.Steps = list424; reference323 = obj296; - num++; - ref QuestSequence reference324 = ref span418[num]; + ref QuestSequence reference324 = ref span150[5]; QuestSequence obj297 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; @@ -447519,16 +367924,13 @@ public static class AssemblyQuestLoader num = 1; List list426 = new List(num); CollectionsMarshal.SetCount(list426, num); - Span span426 = CollectionsMarshal.AsSpan(list426); - index = 0; - span426[index] = "liza"; + CollectionsMarshal.AsSpan(list426)[0] = "liza"; questRoot49.Author = list426; - index = 3; - List list427 = new List(index); - CollectionsMarshal.SetCount(list427, index); - Span span427 = CollectionsMarshal.AsSpan(list427); - num = 0; - ref QuestSequence reference325 = ref span427[num]; + num = 3; + List list427 = new List(num); + CollectionsMarshal.SetCount(list427, num); + Span span153 = CollectionsMarshal.AsSpan(list427); + ref QuestSequence reference325 = ref span153[0]; QuestSequence obj298 = new QuestSequence { Sequence = 0 @@ -447536,9 +367938,8 @@ public static class AssemblyQuestLoader num2 = 2; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - Span span428 = CollectionsMarshal.AsSpan(list428); - index2 = 0; - span428[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) + Span span154 = CollectionsMarshal.AsSpan(list428); + span154[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(809.655f, 17.004526f, -257.89868f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -447550,26 +367951,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span428[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + span154[1] = new QuestStep(EInteractionType.AcceptQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj298.Steps = list428; reference325 = obj298; - num++; - ref QuestSequence reference326 = ref span427[num]; + ref QuestSequence reference326 = ref span153[1]; QuestSequence obj299 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj299.Steps = list429; reference326 = obj299; - num++; - ref QuestSequence reference327 = ref span427[num]; + ref QuestSequence reference327 = ref span153[2]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue @@ -447577,9 +367973,7 @@ public static class AssemblyQuestLoader num2 = 1; List list430 = new List(num2); CollectionsMarshal.SetCount(list430, num2); - Span span430 = CollectionsMarshal.AsSpan(list430); - index2 = 0; - span430[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); + CollectionsMarshal.AsSpan(list430)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051710u, new Vector3(822.629f, 17.102613f, -263.20288f), 1188); obj300.Steps = list430; reference327 = obj300; questRoot49.QuestSequence = list427; @@ -447589,35 +367983,29 @@ public static class AssemblyQuestLoader num = 1; List list431 = new List(num); CollectionsMarshal.SetCount(list431, num); - Span span431 = CollectionsMarshal.AsSpan(list431); - index = 0; - span431[index] = "liza"; + CollectionsMarshal.AsSpan(list431)[0] = "liza"; questRoot50.Author = list431; - index = 3; - List list432 = new List(index); - CollectionsMarshal.SetCount(list432, index); - Span span432 = CollectionsMarshal.AsSpan(list432); - num = 0; - ref QuestSequence reference328 = ref span432[num]; + num = 3; + List list432 = new List(num); + CollectionsMarshal.SetCount(list432, num); + Span span155 = CollectionsMarshal.AsSpan(list432); + ref QuestSequence reference328 = ref span155[0]; QuestSequence obj301 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj301.Steps = list433; reference328 = obj301; - num++; - ref QuestSequence reference329 = ref span432[num]; + ref QuestSequence reference329 = ref span155[1]; QuestSequence obj302 = new QuestSequence { Sequence = 1 @@ -447625,42 +368013,36 @@ public static class AssemblyQuestLoader num2 = 3; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span434 = CollectionsMarshal.AsSpan(list434); - index2 = 0; - span434[index2] = new QuestStep(EInteractionType.Interact, 1052301u, new Vector3(219.98926f, 10.289447f, -522.9115f), 1188) + Span span157 = CollectionsMarshal.AsSpan(list434); + span157[0] = new QuestStep(EInteractionType.Interact, 1052301u, new Vector3(219.98926f, 10.289447f, -522.9115f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - index2++; - span434[index2] = new QuestStep(EInteractionType.Interact, 1052300u, new Vector3(208.48401f, 10.257622f, -588.98303f), 1188) + span157[1] = new QuestStep(EInteractionType.Interact, 1052300u, new Vector3(208.48401f, 10.257622f, -588.98303f), 1188) { Fly = true }; - index2++; - span434[index2] = new QuestStep(EInteractionType.Interact, 1052302u, new Vector3(171.03833f, 7.17552f, -602.6246f), 1188) + span157[2] = new QuestStep(EInteractionType.Interact, 1052302u, new Vector3(171.03833f, 7.17552f, -602.6246f), 1188) { Fly = true }; obj302.Steps = list434; reference329 = obj302; - num++; - ref QuestSequence reference330 = ref span432[num]; + ref QuestSequence reference330 = ref span155[2]; QuestSequence obj303 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span435[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span158[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -447677,16 +368059,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 3; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 3; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -447694,35 +368073,29 @@ public static class AssemblyQuestLoader int num2 = 2; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - 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) + 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) { StopDistance = 5f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = byte.MaxValue @@ -447730,14 +368103,12 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - num3 = 0; - span5[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span3 = CollectionsMarshal.AsSpan(list5); + span3[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span5[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span3[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -447750,35 +368121,29 @@ public static class AssemblyQuestLoader num = 1; List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); - Span span6 = CollectionsMarshal.AsSpan(list6); - index = 0; - span6[index] = "liza"; + CollectionsMarshal.AsSpan(list6)[0] = "liza"; questRoot2.Author = list6; - index = 3; - List list7 = new List(index); - CollectionsMarshal.SetCount(list7, index); - Span span7 = CollectionsMarshal.AsSpan(list7); - num = 0; - ref QuestSequence reference4 = ref span7[num]; + num = 3; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); + Span span4 = CollectionsMarshal.AsSpan(list7); + ref QuestSequence reference4 = ref span4[0]; QuestSequence obj4 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj4.Steps = list8; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span7[num]; + ref QuestSequence reference5 = ref span4[1]; QuestSequence obj5 = new QuestSequence { Sequence = 1 @@ -447786,21 +368151,18 @@ public static class AssemblyQuestLoader num2 = 3; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - num3 = 0; - ref QuestStep reference6 = ref span9[num3]; + Span span6 = CollectionsMarshal.AsSpan(list9); + ref QuestStep reference6 = ref span6[0]; 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 num4 = 1; - List list10 = new List(num4); - CollectionsMarshal.SetCount(list10, num4); - Span span10 = CollectionsMarshal.AsSpan(list10); - int index2 = 0; - span10[index2] = 18172u; + int num3 = 1; + List list10 = new List(num3); + CollectionsMarshal.SetCount(list10, num3); + CollectionsMarshal.AsSpan(list10)[0] = 18172u; obj6.KillEnemyDataIds = list10; obj6.SkipConditions = new SkipConditions { @@ -447814,128 +368176,95 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); reference7 = list12; - num4++; - span11[num4] = null; - num4++; - span11[num4] = null; - num4++; - span11[num4] = null; + span7[3] = null; + span7[4] = null; + span7[5] = null; obj6.RequiredQuestVariables = list11; reference6 = obj6; - num3++; - ref QuestStep reference8 = ref span9[num3]; + ref QuestStep reference8 = ref span6[1]; QuestStep obj7 = new QuestStep(EInteractionType.Combat, 2014481u, new Vector3(581.78064f, 9.018005f, -180.49902f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list13 = new List(num4); - CollectionsMarshal.SetCount(list13, num4); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - span13[index2] = 18172u; + num3 = 1; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + CollectionsMarshal.AsSpan(list13)[0] = 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); + 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); reference9 = list15; - num4++; - span14[num4] = null; - num4++; - span14[num4] = null; - num4++; - span14[num4] = null; + span8[3] = null; + span8[4] = null; + span8[5] = null; obj7.RequiredQuestVariables = list14; reference8 = obj7; - num3++; - ref QuestStep reference10 = ref span9[num3]; + ref QuestStep reference10 = ref span6[2]; QuestStep obj8 = new QuestStep(EInteractionType.Combat, 2014480u, new Vector3(531.15125f, 12.527649f, -99.321045f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list16 = new List(num4); - CollectionsMarshal.SetCount(list16, num4); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - span16[index2] = 18172u; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = 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); + 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); reference11 = list18; - num4++; - span17[num4] = null; - num4++; - span17[num4] = null; - num4++; - span17[num4] = null; + span9[3] = null; + span9[4] = null; + span9[5] = null; obj8.RequiredQuestVariables = list17; reference10 = obj8; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference12 = ref span7[num]; + ref QuestSequence reference12 = ref span4[2]; QuestSequence obj9 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span19[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span10[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -447948,16 +368277,13 @@ public static class AssemblyQuestLoader num = 1; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span20 = CollectionsMarshal.AsSpan(list20); - index = 0; - span20[index] = "liza"; + CollectionsMarshal.AsSpan(list20)[0] = "liza"; questRoot3.Author = list20; - index = 3; - List list21 = new List(index); - CollectionsMarshal.SetCount(list21, index); - Span span21 = CollectionsMarshal.AsSpan(list21); - num = 0; - ref QuestSequence reference13 = ref span21[num]; + num = 3; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span11 = CollectionsMarshal.AsSpan(list21); + ref QuestSequence reference13 = ref span11[0]; QuestSequence obj10 = new QuestSequence { Sequence = 0 @@ -447965,28 +368291,23 @@ public static class AssemblyQuestLoader num2 = 2; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - 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) + 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) { StopDistance = 5f }; obj10.Steps = list22; reference13 = obj10; - num++; - ref QuestSequence reference14 = ref span21[num]; + ref QuestSequence reference14 = ref span11[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -448005,8 +368326,7 @@ public static class AssemblyQuestLoader }; obj11.Steps = list23; reference14 = obj11; - num++; - ref QuestSequence reference15 = ref span21[num]; + ref QuestSequence reference15 = ref span11[2]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -448014,14 +368334,12 @@ public static class AssemblyQuestLoader num2 = 2; 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(770.70636f, 12.846572f, -260.59436f), 1188) + Span span13 = CollectionsMarshal.AsSpan(list24); + span13[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span24[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span13[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448034,35 +368352,29 @@ public static class AssemblyQuestLoader num = 1; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); - Span span25 = CollectionsMarshal.AsSpan(list25); - index = 0; - span25[index] = "liza"; + CollectionsMarshal.AsSpan(list25)[0] = "liza"; questRoot4.Author = list25; - index = 3; - List list26 = new List(index); - CollectionsMarshal.SetCount(list26, index); - Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - ref QuestSequence reference16 = ref span26[num]; + num = 3; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); + Span span14 = CollectionsMarshal.AsSpan(list26); + ref QuestSequence reference16 = ref span14[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj13.Steps = list27; reference16 = obj13; - num++; - ref QuestSequence reference17 = ref span26[num]; + ref QuestSequence reference17 = ref span14[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -448070,9 +368382,8 @@ public static class AssemblyQuestLoader num2 = 3; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - num3 = 0; - ref QuestStep reference18 = ref span28[num3]; + Span span16 = CollectionsMarshal.AsSpan(list28); + ref QuestStep reference18 = ref span16[0]; QuestStep obj15 = new QuestStep(EInteractionType.UseItem, 2014484u, new Vector3(847.34875f, 15.8845825f, -192.67572f), 1188) { Fly = true, @@ -448091,86 +368402,64 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj15.CompletionQuestVariablesFlags = list29; reference18 = obj15; - num3++; - ref QuestStep reference19 = ref span28[num3]; + ref QuestStep reference19 = ref span16[1]; QuestStep obj16 = new QuestStep(EInteractionType.UseItem, 2014485u, new Vector3(855.2223f, 15.945618f, -208.72821f), 1188) { ItemId = 2003717u }; - 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); + 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); obj16.CompletionQuestVariablesFlags = list30; reference19 = obj16; - num3++; - ref QuestStep reference20 = ref span28[num3]; + ref QuestStep reference20 = ref span16[2]; QuestStep obj17 = new QuestStep(EInteractionType.UseItem, 2014483u, new Vector3(868.1315f, 15.335266f, -203.96735f), 1188) { ItemId = 2003717u }; - 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); + 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); obj17.CompletionQuestVariablesFlags = list31; reference20 = obj17; obj14.Steps = list28; reference17 = obj14; - num++; - ref QuestSequence reference21 = ref span26[num]; + ref QuestSequence reference21 = ref span14[2]; QuestSequence obj18 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -448187,8 +368476,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span32[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448201,16 +368489,13 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "liza"; + CollectionsMarshal.AsSpan(list33)[0] = "liza"; questRoot5.Author = list33; - index = 5; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference22 = ref span34[num]; + num = 5; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span21 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference22 = ref span21[0]; QuestSequence obj19 = new QuestSequence { Sequence = 0 @@ -448218,28 +368503,23 @@ public static class AssemblyQuestLoader num2 = 2; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - 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) + 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) { StopDistance = 5f }; obj19.Steps = list35; reference22 = obj19; - num++; - ref QuestSequence reference23 = ref span34[num]; + ref QuestSequence reference23 = ref span21[1]; QuestSequence obj20 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -448258,8 +368538,7 @@ public static class AssemblyQuestLoader }; obj20.Steps = list36; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span34[num]; + ref QuestSequence reference24 = ref span21[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 @@ -448267,38 +368546,29 @@ public static class AssemblyQuestLoader num2 = 1; List list37 = new List(num2); CollectionsMarshal.SetCount(list37, num2); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = new QuestStep(EInteractionType.Interact, 2014486u, new Vector3(471.88513f, 9.933594f, -206.46985f), 1188) + CollectionsMarshal.AsSpan(list37)[0] = new QuestStep(EInteractionType.Interact, 2014486u, new Vector3(471.88513f, 9.933594f, -206.46985f), 1188) { StopDistance = 4.5f }; obj21.Steps = list37; reference24 = obj21; - num++; - ref QuestSequence reference25 = ref span34[num]; + ref QuestSequence reference25 = ref span21[3]; QuestSequence obj22 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj22.Steps = list38; reference25 = obj22; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span21[4]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -448306,9 +368576,8 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - num3 = 0; - span39[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span24 = CollectionsMarshal.AsSpan(list39); + span24[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -448325,8 +368594,7 @@ public static class AssemblyQuestLoader } } }; - num3++; - span39[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span24[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448339,35 +368607,29 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "liza"; + CollectionsMarshal.AsSpan(list40)[0] = "liza"; questRoot6.Author = list40; - index = 3; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference27 = ref span41[num]; + num = 3; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span25 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference27 = ref span25[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj24.Steps = list42; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span41[num]; + ref QuestSequence reference28 = ref span25[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -448375,9 +368637,8 @@ public static class AssemblyQuestLoader num2 = 3; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - num3 = 0; - span43[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.49648f, 8.736965f, -401.72836f), 1188) + Span span27 = CollectionsMarshal.AsSpan(list43); + span27[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-165.49648f, 8.736965f, -401.72836f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu, @@ -448389,42 +368650,31 @@ public static class AssemblyQuestLoader } } }; - num3++; - ref QuestStep reference29 = ref span43[num3]; + ref QuestStep reference29 = ref span27[1]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 1052307u, new Vector3(-111.0094f, 1.6987718f, -111.0094f), 1188) { Fly = true }; - 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; - num4++; - span44[num4] = null; - num4++; - span44[num4] = null; - num4++; - span44[num4] = null; - num4++; - span44[num4] = null; - obj26.RequiredQuestVariables = list44; + 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 list46 = new List(num4); - CollectionsMarshal.SetCount(list46, num4); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new DialogueChoice + List list45 = new List(num4); + CollectionsMarshal.SetCount(list45, num4); + CollectionsMarshal.AsSpan(list45)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + reference30 = list45; + span28[2] = null; + span28[3] = null; + span28[4] = null; + span28[5] = null; + obj26.RequiredQuestVariables = list44; + num3 = 1; + List list46 = new List(num3); + CollectionsMarshal.SetCount(list46, num3); + CollectionsMarshal.AsSpan(list46)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL107_05205_Q1_000_000"), @@ -448432,42 +368682,31 @@ public static class AssemblyQuestLoader }; obj26.DialogueChoices = list46; reference29 = obj26; - num3++; - ref QuestStep reference31 = ref span43[num3]; + ref QuestStep reference31 = ref span27[2]; QuestStep obj27 = new QuestStep(EInteractionType.Interact, 1052308u, new Vector3(-152.7276f, 3.6225784f, -349.87415f), 1188) { Fly = true }; - 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; - num4++; - span47[num4] = null; - num4++; - span47[num4] = null; - num4++; - span47[num4] = null; - num4++; - span47[num4] = null; - obj27.RequiredQuestVariables = list47; + 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 list49 = new List(num4); - CollectionsMarshal.SetCount(list49, num4); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new DialogueChoice + List list48 = new List(num4); + CollectionsMarshal.SetCount(list48, num4); + CollectionsMarshal.AsSpan(list48)[0] = new QuestWorkValue(0, (byte)2, EQuestWorkMode.Bitwise); + reference32 = list48; + span29[2] = null; + span29[3] = null; + span29[4] = null; + span29[5] = null; + obj27.RequiredQuestVariables = list47; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL107_05205_Q2_000_000"), @@ -448477,23 +368716,20 @@ public static class AssemblyQuestLoader reference31 = obj27; obj25.Steps = list43; reference28 = obj25; - num++; - ref QuestSequence reference33 = ref span41[num]; + ref QuestSequence reference33 = ref span25[2]; QuestSequence obj28 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span30[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448506,16 +368742,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "liza"; + CollectionsMarshal.AsSpan(list51)[0] = "liza"; questRoot7.Author = list51; - index = 3; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference34 = ref span52[num]; + num = 3; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span31 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference34 = ref span31[0]; QuestSequence obj29 = new QuestSequence { Sequence = 0 @@ -448523,127 +368756,96 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - 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) + 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) { StopDistance = 5f }; obj29.Steps = list53; reference34 = obj29; - num++; - ref QuestSequence reference35 = ref span52[num]; + ref QuestSequence reference35 = ref span31[1]; QuestSequence obj30 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list54 = new List(num3); - CollectionsMarshal.SetCount(list54, num3); - Span span54 = CollectionsMarshal.AsSpan(list54); - num2 = 0; - ref QuestStep reference36 = ref span54[num2]; + num2 = 3; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + Span span33 = CollectionsMarshal.AsSpan(list54); + ref QuestStep reference36 = ref span33[0]; QuestStep obj31 = new QuestStep(EInteractionType.Interact, 2014540u, new Vector3(-24.887512f, 21.774597f, -88.76172f), 1188) { StopDistance = 1f, Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - 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); + 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); reference37 = list56; - num4++; - span55[num4] = null; - num4++; - span55[num4] = null; - num4++; - span55[num4] = null; - num4++; - span55[num4] = null; + span34[2] = null; + span34[3] = null; + span34[4] = null; + span34[5] = null; obj31.RequiredQuestVariables = list55; reference36 = obj31; - num2++; - ref QuestStep reference38 = ref span54[num2]; + ref QuestStep reference38 = ref span33[1]; QuestStep obj32 = new QuestStep(EInteractionType.Interact, 2014487u, new Vector3(-45.426086f, 21.469421f, -80.27777f), 1188) { StopDistance = 1f, Fly = true }; - 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); + 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); reference39 = list58; - index2++; - span57[index2] = null; - index2++; - span57[index2] = null; - index2++; - span57[index2] = null; - index2++; - span57[index2] = null; + span35[2] = null; + span35[3] = null; + span35[4] = null; + span35[5] = null; obj32.RequiredQuestVariables = list57; reference38 = obj32; - num2++; - ref QuestStep reference40 = ref span54[num2]; + ref QuestStep reference40 = ref span33[2]; QuestStep obj33 = new QuestStep(EInteractionType.Interact, 2014539u, new Vector3(-9.2317505f, 21.469421f, -74.418274f), 1188) { StopDistance = 1f, Fly = true }; - 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); + 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); reference41 = list60; - num4++; - span59[num4] = null; - num4++; - span59[num4] = null; - num4++; - span59[num4] = null; - num4++; - span59[num4] = null; + span36[2] = null; + span36[3] = null; + span36[4] = null; + span36[5] = null; obj33.RequiredQuestVariables = list59; reference40 = obj33; obj30.Steps = list54; reference35 = obj30; - num++; - ref QuestSequence reference42 = ref span52[num]; + ref QuestSequence reference42 = ref span31[2]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -448651,14 +368853,12 @@ public static class AssemblyQuestLoader num2 = 2; List list61 = new List(num2); CollectionsMarshal.SetCount(list61, num2); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span37 = CollectionsMarshal.AsSpan(list61); + span37[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span61[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span37[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448671,35 +368871,29 @@ public static class AssemblyQuestLoader num = 1; List list62 = new List(num); CollectionsMarshal.SetCount(list62, num); - Span span62 = CollectionsMarshal.AsSpan(list62); - index = 0; - span62[index] = "liza"; + CollectionsMarshal.AsSpan(list62)[0] = "liza"; questRoot8.Author = list62; - index = 4; - List list63 = new List(index); - CollectionsMarshal.SetCount(list63, index); - Span span63 = CollectionsMarshal.AsSpan(list63); - num = 0; - ref QuestSequence reference43 = ref span63[num]; + num = 4; + List list63 = new List(num); + CollectionsMarshal.SetCount(list63, num); + Span span38 = CollectionsMarshal.AsSpan(list63); + ref QuestSequence reference43 = ref span38[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj35.Steps = list64; reference43 = obj35; - num++; - ref QuestSequence reference44 = ref span63[num]; + ref QuestSequence reference44 = ref span38[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 @@ -448707,34 +368901,28 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - num3 = 0; - span65[num3] = new QuestStep(EInteractionType.Interact, 1052309u, new Vector3(-100.35864f, 4.7510896f, -304.3412f), 1188) + CollectionsMarshal.AsSpan(list65)[0] = new QuestStep(EInteractionType.Interact, 1052309u, new Vector3(-100.35864f, 4.7510896f, -304.3412f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj36.Steps = list65; reference44 = obj36; - num++; - ref QuestSequence reference45 = ref span63[num]; + ref QuestSequence reference45 = ref span38[2]; QuestSequence obj37 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj37.Steps = list66; reference45 = obj37; - num++; - ref QuestSequence reference46 = ref span63[num]; + ref QuestSequence reference46 = ref span38[3]; QuestSequence obj38 = new QuestSequence { Sequence = byte.MaxValue @@ -448742,14 +368930,12 @@ public static class AssemblyQuestLoader num2 = 2; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - num3 = 0; - span67[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span40 = CollectionsMarshal.AsSpan(list67); + span40[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span67[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span40[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448762,35 +368948,29 @@ public static class AssemblyQuestLoader num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "liza"; + CollectionsMarshal.AsSpan(list68)[0] = "liza"; questRoot9.Author = list68; - index = 3; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference47 = ref span69[num]; + num = 3; + List list69 = new List(num); + CollectionsMarshal.SetCount(list69, num); + Span span41 = CollectionsMarshal.AsSpan(list69); + ref QuestSequence reference47 = ref span41[0]; QuestSequence obj39 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj39.Steps = list70; reference47 = obj39; - num++; - ref QuestSequence reference48 = ref span69[num]; + ref QuestSequence reference48 = ref span41[1]; QuestSequence obj40 = new QuestSequence { Sequence = 1 @@ -448798,95 +368978,71 @@ public static class AssemblyQuestLoader num2 = 3; List list71 = new List(num2); CollectionsMarshal.SetCount(list71, num2); - Span span71 = CollectionsMarshal.AsSpan(list71); - num3 = 0; - ref QuestStep reference49 = ref span71[num3]; + Span span43 = CollectionsMarshal.AsSpan(list71); + ref QuestStep reference49 = ref span43[0]; QuestStep obj41 = new QuestStep(EInteractionType.Interact, 1052319u, new Vector3(-185.07672f, 6.5185943f, -460.04425f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - 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); + 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); obj41.CompletionQuestVariablesFlags = list72; reference49 = obj41; - num3++; - ref QuestStep reference50 = ref span71[num3]; + ref QuestStep reference50 = ref span43[1]; QuestStep questStep = new QuestStep(EInteractionType.Interact, 1052318u, new Vector3(-217.12067f, 6.4016876f, -474.60138f), 1188); - 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); + 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); questStep.CompletionQuestVariablesFlags = list73; reference50 = questStep; - num3++; - ref QuestStep reference51 = ref span71[num3]; + ref QuestStep reference51 = ref span43[2]; QuestStep obj42 = new QuestStep(EInteractionType.Interact, 1052320u, new Vector3(-108.659546f, 9.773233f, -530.2052f), 1188) { Fly = true }; - 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); + 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); obj42.CompletionQuestVariablesFlags = list74; reference51 = obj42; obj40.Steps = list71; reference48 = obj40; - num++; - ref QuestSequence reference52 = ref span69[num]; + ref QuestSequence reference52 = ref span41[2]; QuestSequence obj43 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span75[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span47[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -448899,16 +369055,13 @@ public static class AssemblyQuestLoader num = 1; List list76 = new List(num); CollectionsMarshal.SetCount(list76, num); - Span span76 = CollectionsMarshal.AsSpan(list76); - index = 0; - span76[index] = "liza"; + CollectionsMarshal.AsSpan(list76)[0] = "liza"; questRoot10.Author = list76; - index = 4; - List list77 = new List(index); - CollectionsMarshal.SetCount(list77, index); - Span span77 = CollectionsMarshal.AsSpan(list77); - num = 0; - ref QuestSequence reference53 = ref span77[num]; + num = 4; + List list77 = new List(num); + CollectionsMarshal.SetCount(list77, num); + Span span48 = CollectionsMarshal.AsSpan(list77); + ref QuestSequence reference53 = ref span48[0]; QuestSequence obj44 = new QuestSequence { Sequence = 0 @@ -448916,36 +369069,30 @@ public static class AssemblyQuestLoader num2 = 2; List list78 = new List(num2); CollectionsMarshal.SetCount(list78, num2); - 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) + 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) { StopDistance = 5f }; obj44.Steps = list78; reference53 = obj44; - num++; - ref QuestSequence reference54 = ref span77[num]; + ref QuestSequence reference54 = ref span48[1]; QuestSequence obj45 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; obj45.Steps = list79; reference54 = obj45; - num++; - ref QuestSequence reference55 = ref span77[num]; + ref QuestSequence reference55 = ref span48[2]; QuestSequence obj46 = new QuestSequence { Sequence = 2 @@ -448953,89 +369100,65 @@ public static class AssemblyQuestLoader num2 = 3; List list80 = new List(num2); CollectionsMarshal.SetCount(list80, num2); - Span span80 = CollectionsMarshal.AsSpan(list80); - num3 = 0; - ref QuestStep reference56 = ref span80[num3]; + Span span50 = CollectionsMarshal.AsSpan(list80); + ref QuestStep reference56 = ref span50[0]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2014488u, new Vector3(103.74609f, -0.015319824f, -339.13184f), 1188); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list81; reference56 = questStep2; - num3++; - ref QuestStep reference57 = ref span80[num3]; + ref QuestStep reference57 = ref span50[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014536u, new Vector3(106.21802f, -0.015319824f, -347.097f), 1188); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list82; reference57 = questStep3; - num3++; - ref QuestStep reference58 = ref span80[num3]; + ref QuestStep reference58 = ref span50[2]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014537u, new Vector3(112.93201f, -0.015319824f, -341.5122f), 1188); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list83; reference58 = questStep4; obj46.Steps = list80; reference55 = obj46; - num++; - ref QuestSequence reference59 = ref span77[num]; + ref QuestSequence reference59 = ref span48[3]; QuestSequence obj47 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span84[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span54[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -449048,16 +369171,13 @@ public static class AssemblyQuestLoader num = 1; List list85 = new List(num); CollectionsMarshal.SetCount(list85, num); - Span span85 = CollectionsMarshal.AsSpan(list85); - index = 0; - span85[index] = "liza"; + CollectionsMarshal.AsSpan(list85)[0] = "liza"; questRoot11.Author = list85; - index = 5; - List list86 = new List(index); - CollectionsMarshal.SetCount(list86, index); - Span span86 = CollectionsMarshal.AsSpan(list86); - num = 0; - ref QuestSequence reference60 = ref span86[num]; + num = 5; + List list86 = new List(num); + CollectionsMarshal.SetCount(list86, num); + Span span55 = CollectionsMarshal.AsSpan(list86); + ref QuestSequence reference60 = ref span55[0]; QuestSequence obj48 = new QuestSequence { Sequence = 0 @@ -449065,28 +369185,23 @@ public static class AssemblyQuestLoader num2 = 2; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - 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) + 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) { StopDistance = 5f }; obj48.Steps = list87; reference60 = obj48; - num++; - ref QuestSequence reference61 = ref span86[num]; + ref QuestSequence reference61 = ref span55[1]; QuestSequence obj49 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -449105,8 +369220,7 @@ public static class AssemblyQuestLoader }; obj49.Steps = list88; reference61 = obj49; - num++; - ref QuestSequence reference62 = ref span86[num]; + ref QuestSequence reference62 = ref span55[2]; QuestSequence obj50 = new QuestSequence { Sequence = 2 @@ -449114,139 +369228,102 @@ public static class AssemblyQuestLoader num2 = 3; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - num3 = 0; - ref QuestStep reference63 = ref span89[num3]; + Span span57 = CollectionsMarshal.AsSpan(list89); + ref QuestStep reference63 = ref span57[0]; QuestStep obj51 = new QuestStep(EInteractionType.Combat, 2014491u, new Vector3(504.78357f, 15.396301f, -283.83307f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list90 = new List(num4); - CollectionsMarshal.SetCount(list90, num4); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = 18173u; + num3 = 1; + List list90 = new List(num3); + CollectionsMarshal.SetCount(list90, num3); + CollectionsMarshal.AsSpan(list90)[0] = 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); + 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); reference64 = list92; - num4++; - span91[num4] = null; - num4++; - span91[num4] = null; - num4++; - span91[num4] = null; + span58[3] = null; + span58[4] = null; + span58[5] = null; obj51.RequiredQuestVariables = list91; reference63 = obj51; - num3++; - ref QuestStep reference65 = ref span89[num3]; + ref QuestStep reference65 = ref span57[1]; QuestStep obj52 = new QuestStep(EInteractionType.Combat, 2014489u, new Vector3(522.301f, 12.191956f, -273.97577f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list93 = new List(num4); - CollectionsMarshal.SetCount(list93, num4); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = 18173u; + num3 = 1; + List list93 = new List(num3); + CollectionsMarshal.SetCount(list93, num3); + CollectionsMarshal.AsSpan(list93)[0] = 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); + 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); reference66 = list95; - num4++; - span94[num4] = null; - num4++; - span94[num4] = null; - num4++; - span94[num4] = null; + span59[3] = null; + span59[4] = null; + span59[5] = null; obj52.RequiredQuestVariables = list94; reference65 = obj52; - num3++; - ref QuestStep reference67 = ref span89[num3]; + ref QuestStep reference67 = ref span57[2]; QuestStep obj53 = new QuestStep(EInteractionType.Combat, 2014490u, new Vector3(485.6183f, 10.8185425f, -281.7884f), 1188) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list96 = new List(num4); - CollectionsMarshal.SetCount(list96, num4); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = 18173u; + num3 = 1; + List list96 = new List(num3); + CollectionsMarshal.SetCount(list96, num3); + CollectionsMarshal.AsSpan(list96)[0] = 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); + 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); reference68 = list98; - num4++; - span97[num4] = null; - num4++; - span97[num4] = null; - num4++; - span97[num4] = null; + span60[3] = null; + span60[4] = null; + span60[5] = null; obj53.RequiredQuestVariables = list97; reference67 = obj53; obj50.Steps = list89; reference62 = obj50; - num++; - ref QuestSequence reference69 = ref span86[num]; + ref QuestSequence reference69 = ref span55[3]; QuestSequence obj54 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj54.Steps = list99; reference69 = obj54; - num++; - ref QuestSequence reference70 = ref span86[num]; + ref QuestSequence reference70 = ref span55[4]; QuestSequence obj55 = new QuestSequence { Sequence = byte.MaxValue @@ -449254,14 +369331,12 @@ public static class AssemblyQuestLoader num2 = 2; List list100 = new List(num2); CollectionsMarshal.SetCount(list100, num2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span61 = CollectionsMarshal.AsSpan(list100); + span61[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span100[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span61[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -449274,35 +369349,29 @@ public static class AssemblyQuestLoader num = 1; List list101 = new List(num); CollectionsMarshal.SetCount(list101, num); - Span span101 = CollectionsMarshal.AsSpan(list101); - index = 0; - span101[index] = "liza"; + CollectionsMarshal.AsSpan(list101)[0] = "liza"; questRoot12.Author = list101; - index = 3; - List list102 = new List(index); - CollectionsMarshal.SetCount(list102, index); - Span span102 = CollectionsMarshal.AsSpan(list102); - num = 0; - ref QuestSequence reference71 = ref span102[num]; + num = 3; + List list102 = new List(num); + CollectionsMarshal.SetCount(list102, num); + Span span62 = CollectionsMarshal.AsSpan(list102); + ref QuestSequence reference71 = ref span62[0]; QuestSequence obj56 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj56.Steps = list103; reference71 = obj56; - num++; - ref QuestSequence reference72 = ref span102[num]; + ref QuestSequence reference72 = ref span62[1]; QuestSequence obj57 = new QuestSequence { Sequence = 1 @@ -449310,76 +369379,59 @@ public static class AssemblyQuestLoader num2 = 2; List list104 = new List(num2); CollectionsMarshal.SetCount(list104, num2); - Span span104 = CollectionsMarshal.AsSpan(list104); - num3 = 0; - ref QuestStep reference73 = ref span104[num3]; + Span span64 = CollectionsMarshal.AsSpan(list104); + ref QuestStep reference73 = ref span64[0]; QuestStep obj58 = new QuestStep(EInteractionType.UseItem, 2014492u, new Vector3(-448.50842f, 0.9613037f, -113.69501f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu, ItemId = 2003721u }; - 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); + 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); obj58.CompletionQuestVariablesFlags = list105; reference73 = obj58; - num3++; - ref QuestStep reference74 = ref span104[num3]; + ref QuestStep reference74 = ref span64[1]; QuestStep obj59 = new QuestStep(EInteractionType.UseItem, 2014493u, new Vector3(-464.0421f, 0.62561035f, -119.95117f), 1188) { ItemId = 2003721u }; - 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); + 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); obj59.CompletionQuestVariablesFlags = list106; reference74 = obj59; obj57.Steps = list104; reference72 = obj57; - num++; - ref QuestSequence reference75 = ref span102[num]; + ref QuestSequence reference75 = ref span62[2]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span107[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span67[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -449392,16 +369444,13 @@ public static class AssemblyQuestLoader num = 1; List list108 = new List(num); CollectionsMarshal.SetCount(list108, num); - Span span108 = CollectionsMarshal.AsSpan(list108); - index = 0; - span108[index] = "liza"; + CollectionsMarshal.AsSpan(list108)[0] = "liza"; questRoot13.Author = list108; - index = 3; - List list109 = new List(index); - CollectionsMarshal.SetCount(list109, index); - Span span109 = CollectionsMarshal.AsSpan(list109); - num = 0; - ref QuestSequence reference76 = ref span109[num]; + num = 3; + List list109 = new List(num); + CollectionsMarshal.SetCount(list109, num); + Span span68 = CollectionsMarshal.AsSpan(list109); + ref QuestSequence reference76 = ref span68[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -449409,28 +369458,24 @@ public static class AssemblyQuestLoader num2 = 2; List list110 = new List(num2); CollectionsMarshal.SetCount(list110, num2); - 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) + 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) { StopDistance = 5f }; obj61.Steps = list110; reference76 = obj61; - num++; - ref QuestSequence reference77 = ref span109[num]; + ref QuestSequence reference77 = ref span68[1]; QuestSequence obj62 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list111 = new List(num3); - CollectionsMarshal.SetCount(list111, num3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num2 = 0; - ref QuestStep reference78 = ref span111[num2]; + num2 = 3; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + Span span70 = CollectionsMarshal.AsSpan(list111); + ref QuestStep reference78 = ref span70[0]; QuestStep obj63 = new QuestStep(EInteractionType.Interact, 2014494u, new Vector3(538.38403f, 15.701477f, -10.147278f), 1188) { Fly = true, @@ -449448,70 +369493,49 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj63.CompletionQuestVariablesFlags = list112; reference78 = obj63; - num2++; - ref QuestStep reference79 = ref span111[num2]; + ref QuestStep reference79 = ref span70[1]; QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014495u, new Vector3(528.77075f, 15.6710205f, -2.456726f), 1188); - 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); + 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); questStep5.CompletionQuestVariablesFlags = list113; reference79 = questStep5; - num2++; - ref QuestStep reference80 = ref span111[num2]; + ref QuestStep reference80 = ref span70[2]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014496u, new Vector3(511.7417f, 12.954895f, -7.522766f), 1188); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list114; reference80 = questStep6; obj62.Steps = list111; reference77 = obj62; - num++; - ref QuestSequence reference81 = ref span109[num]; + ref QuestSequence reference81 = ref span68[2]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue @@ -449519,14 +369543,12 @@ public static class AssemblyQuestLoader num2 = 2; List list115 = new List(num2); CollectionsMarshal.SetCount(list115, num2); - Span span115 = CollectionsMarshal.AsSpan(list115); - num3 = 0; - span115[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span74 = CollectionsMarshal.AsSpan(list115); + span74[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span115[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span74[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -449539,35 +369561,29 @@ public static class AssemblyQuestLoader num = 1; List list116 = new List(num); CollectionsMarshal.SetCount(list116, num); - Span span116 = CollectionsMarshal.AsSpan(list116); - index = 0; - span116[index] = "liza"; + CollectionsMarshal.AsSpan(list116)[0] = "liza"; questRoot14.Author = list116; - index = 3; - List list117 = new List(index); - CollectionsMarshal.SetCount(list117, index); - Span span117 = CollectionsMarshal.AsSpan(list117); - num = 0; - ref QuestSequence reference82 = ref span117[num]; + num = 3; + List list117 = new List(num); + CollectionsMarshal.SetCount(list117, num); + Span span75 = CollectionsMarshal.AsSpan(list117); + ref QuestSequence reference82 = ref span75[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj65.Steps = list118; reference82 = obj65; - num++; - ref QuestSequence reference83 = ref span117[num]; + ref QuestSequence reference83 = ref span75[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 @@ -449575,144 +369591,108 @@ public static class AssemblyQuestLoader num2 = 3; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - num3 = 0; - ref QuestStep reference84 = ref span119[num3]; + Span span77 = CollectionsMarshal.AsSpan(list119); + ref QuestStep reference84 = ref span77[0]; QuestStep obj67 = new QuestStep(EInteractionType.Combat, 2014497u, new Vector3(-130.7851f, 114.39685f, 240.31421f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list120 = new List(index2); - CollectionsMarshal.SetCount(list120, index2); - Span span120 = CollectionsMarshal.AsSpan(list120); - num4 = 0; - span120[num4] = 18174u; + num3 = 1; + List list120 = new List(num3); + CollectionsMarshal.SetCount(list120, num3); + CollectionsMarshal.AsSpan(list120)[0] = 18174u; obj67.KillEnemyDataIds = list120; - 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); + 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); reference85 = list122; - index2++; - span121[index2] = null; - index2++; - span121[index2] = null; - index2++; - span121[index2] = null; + span78[3] = null; + span78[4] = null; + span78[5] = null; obj67.RequiredQuestVariables = list121; reference84 = obj67; - num3++; - ref QuestStep reference86 = ref span119[num3]; + ref QuestStep reference86 = ref span77[1]; QuestStep obj68 = new QuestStep(EInteractionType.Combat, 2014498u, new Vector3(-56.565247f, 111.77234f, 172.62524f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list123 = new List(index2); - CollectionsMarshal.SetCount(list123, index2); - Span span123 = CollectionsMarshal.AsSpan(list123); - num4 = 0; - span123[num4] = 18174u; + num3 = 1; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + CollectionsMarshal.AsSpan(list123)[0] = 18174u; obj68.KillEnemyDataIds = list123; - 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); + 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); reference87 = list125; - index2++; - span124[index2] = null; - index2++; - span124[index2] = null; - index2++; - span124[index2] = null; + span79[3] = null; + span79[4] = null; + span79[5] = null; obj68.RequiredQuestVariables = list124; reference86 = obj68; - num3++; - ref QuestStep reference88 = ref span119[num3]; + ref QuestStep reference88 = ref span77[2]; QuestStep obj69 = new QuestStep(EInteractionType.Combat, 2014499u, new Vector3(-84.18408f, 111.436646f, 268.05518f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - index2 = 1; - List list126 = new List(index2); - CollectionsMarshal.SetCount(list126, index2); - Span span126 = CollectionsMarshal.AsSpan(list126); - num4 = 0; - span126[num4] = 18174u; + num3 = 1; + List list126 = new List(num3); + CollectionsMarshal.SetCount(list126, num3); + CollectionsMarshal.AsSpan(list126)[0] = 18174u; obj69.KillEnemyDataIds = list126; - 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); + 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); reference89 = list128; - index2++; - span127[index2] = null; - index2++; - span127[index2] = null; - index2++; - span127[index2] = null; + span80[3] = null; + span80[4] = null; + span80[5] = null; obj69.RequiredQuestVariables = list127; reference88 = obj69; obj66.Steps = list119; reference83 = obj66; - num++; - ref QuestSequence reference90 = ref span117[num]; + ref QuestSequence reference90 = ref span75[2]; QuestSequence obj70 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span129[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span81[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -449725,16 +369705,13 @@ public static class AssemblyQuestLoader num = 1; List list130 = new List(num); CollectionsMarshal.SetCount(list130, num); - Span span130 = CollectionsMarshal.AsSpan(list130); - index = 0; - span130[index] = "liza"; + CollectionsMarshal.AsSpan(list130)[0] = "liza"; questRoot15.Author = list130; - index = 4; - List list131 = new List(index); - CollectionsMarshal.SetCount(list131, index); - Span span131 = CollectionsMarshal.AsSpan(list131); - num = 0; - ref QuestSequence reference91 = ref span131[num]; + num = 4; + List list131 = new List(num); + CollectionsMarshal.SetCount(list131, num); + Span span82 = CollectionsMarshal.AsSpan(list131); + ref QuestSequence reference91 = ref span82[0]; QuestSequence obj71 = new QuestSequence { Sequence = 0 @@ -449742,36 +369719,30 @@ public static class AssemblyQuestLoader num2 = 2; List list132 = new List(num2); CollectionsMarshal.SetCount(list132, num2); - 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) + 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) { StopDistance = 5f }; obj71.Steps = list132; reference91 = obj71; - num++; - ref QuestSequence reference92 = ref span131[num]; + ref QuestSequence reference92 = ref span82[1]; QuestSequence obj72 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; obj72.Steps = list133; reference92 = obj72; - num++; - ref QuestSequence reference93 = ref span131[num]; + ref QuestSequence reference93 = ref span82[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 @@ -449779,88 +369750,67 @@ public static class AssemblyQuestLoader num2 = 2; List list134 = new List(num2); CollectionsMarshal.SetCount(list134, num2); - Span span134 = CollectionsMarshal.AsSpan(list134); - num3 = 0; - ref QuestStep reference94 = ref span134[num3]; + Span span84 = CollectionsMarshal.AsSpan(list134); + ref QuestStep reference94 = ref span84[0]; QuestStep obj74 = new QuestStep(EInteractionType.Interact, 1052326u, new Vector3(-304.61584f, 110.20639f, 725.39856f), 1188) { Fly = true }; - 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); + 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); reference95 = list136; - num4++; - span135[num4] = null; - num4++; - span135[num4] = null; - num4++; - span135[num4] = null; - num4++; - span135[num4] = null; + span85[2] = null; + span85[3] = null; + span85[4] = null; + span85[5] = null; obj74.RequiredQuestVariables = list135; reference94 = obj74; - num3++; - ref QuestStep reference96 = ref span134[num3]; + ref QuestStep reference96 = ref span84[1]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1052435u, new Vector3(505.76025f, 115.10293f, 205.7373f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - 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); + 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); reference97 = list138; - index2++; - span137[index2] = null; - index2++; - span137[index2] = null; - index2++; - span137[index2] = null; - index2++; - span137[index2] = null; + span86[2] = null; + span86[3] = null; + span86[4] = null; + span86[5] = null; obj75.RequiredQuestVariables = list137; reference96 = obj75; obj73.Steps = list134; reference93 = obj73; - num++; - ref QuestSequence reference98 = ref span131[num]; + ref QuestSequence reference98 = ref span82[3]; QuestSequence obj76 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span139[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span87[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -449873,16 +369823,13 @@ public static class AssemblyQuestLoader num = 1; List list140 = new List(num); CollectionsMarshal.SetCount(list140, num); - Span span140 = CollectionsMarshal.AsSpan(list140); - index = 0; - span140[index] = "liza"; + CollectionsMarshal.AsSpan(list140)[0] = "liza"; questRoot16.Author = list140; - index = 4; - List list141 = new List(index); - CollectionsMarshal.SetCount(list141, index); - Span span141 = CollectionsMarshal.AsSpan(list141); - num = 0; - ref QuestSequence reference99 = ref span141[num]; + num = 4; + List list141 = new List(num); + CollectionsMarshal.SetCount(list141, num); + Span span88 = CollectionsMarshal.AsSpan(list141); + ref QuestSequence reference99 = ref span88[0]; QuestSequence obj77 = new QuestSequence { Sequence = 0 @@ -449890,35 +369837,29 @@ public static class AssemblyQuestLoader num2 = 2; List list142 = new List(num2); CollectionsMarshal.SetCount(list142, num2); - 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) + 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) { StopDistance = 5f }; obj77.Steps = list142; reference99 = obj77; - num++; - ref QuestSequence reference100 = ref span141[num]; + ref QuestSequence reference100 = ref span88[1]; QuestSequence obj78 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj78.Steps = list143; reference100 = obj78; - num++; - ref QuestSequence reference101 = ref span141[num]; + ref QuestSequence reference101 = ref span88[2]; QuestSequence obj79 = new QuestSequence { Sequence = 2 @@ -449926,122 +369867,92 @@ public static class AssemblyQuestLoader num2 = 3; List list144 = new List(num2); CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - ref QuestStep reference102 = ref span144[num3]; + Span span90 = CollectionsMarshal.AsSpan(list144); + ref QuestStep reference102 = ref span90[0]; QuestStep obj80 = new QuestStep(EInteractionType.Action, 1052328u, new Vector3(171.6792f, 16.762953f, -112.44379f), 1188) { Fly = true, Action = EAction.BosomBrook }; - 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); + 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); reference103 = list146; - num4++; - span145[num4] = null; - num4++; - span145[num4] = null; - num4++; - span145[num4] = null; + span91[3] = null; + span91[4] = null; + span91[5] = null; obj80.RequiredQuestVariables = list145; reference102 = obj80; - num3++; - ref QuestStep reference104 = ref span144[num3]; + ref QuestStep reference104 = ref span90[1]; QuestStep obj81 = new QuestStep(EInteractionType.Action, 1052329u, new Vector3(216.7544f, 16.31888f, -99.687195f), 1188) { Fly = true, Action = EAction.BosomBrook }; - 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); + 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); reference105 = list148; - index2++; - span147[index2] = null; - index2++; - span147[index2] = null; - index2++; - span147[index2] = null; + span92[3] = null; + span92[4] = null; + span92[5] = null; obj81.RequiredQuestVariables = list147; reference104 = obj81; - num3++; - ref QuestStep reference106 = ref span144[num3]; + ref QuestStep reference106 = ref span90[2]; QuestStep obj82 = new QuestStep(EInteractionType.Action, 1052327u, new Vector3(186.38892f, 21.742897f, -74.47931f), 1188) { Fly = true, Action = EAction.BosomBrook }; - 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); + 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); reference107 = list150; - num4++; - span149[num4] = null; - num4++; - span149[num4] = null; - num4++; - span149[num4] = null; + span93[3] = null; + span93[4] = null; + span93[5] = null; obj82.RequiredQuestVariables = list149; reference106 = obj82; obj79.Steps = list144; reference101 = obj79; - num++; - ref QuestSequence reference108 = ref span141[num]; + ref QuestSequence reference108 = ref span88[3]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span151[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span94[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450054,16 +369965,13 @@ public static class AssemblyQuestLoader num = 1; List list152 = new List(num); CollectionsMarshal.SetCount(list152, num); - Span span152 = CollectionsMarshal.AsSpan(list152); - index = 0; - span152[index] = "liza"; + CollectionsMarshal.AsSpan(list152)[0] = "liza"; questRoot17.Author = list152; - index = 3; - List list153 = new List(index); - CollectionsMarshal.SetCount(list153, index); - Span span153 = CollectionsMarshal.AsSpan(list153); - num = 0; - ref QuestSequence reference109 = ref span153[num]; + num = 3; + List list153 = new List(num); + CollectionsMarshal.SetCount(list153, num); + Span span95 = CollectionsMarshal.AsSpan(list153); + ref QuestSequence reference109 = ref span95[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -450071,148 +369979,111 @@ public static class AssemblyQuestLoader num2 = 2; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - 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) + 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) { StopDistance = 5f }; obj84.Steps = list154; reference109 = obj84; - num++; - ref QuestSequence reference110 = ref span153[num]; + ref QuestSequence reference110 = ref span95[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list155 = new List(num3); - CollectionsMarshal.SetCount(list155, num3); - Span span155 = CollectionsMarshal.AsSpan(list155); - num2 = 0; - ref QuestStep reference111 = ref span155[num2]; + num2 = 3; + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + Span span97 = CollectionsMarshal.AsSpan(list155); + ref QuestStep reference111 = ref span97[0]; QuestStep obj86 = new QuestStep(EInteractionType.Combat, 2014500u, new Vector3(-217.15118f, 109.57495f, 562.005f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list156 = new List(num4); - CollectionsMarshal.SetCount(list156, num4); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = 18175u; + num3 = 1; + List list156 = new List(num3); + CollectionsMarshal.SetCount(list156, num3); + CollectionsMarshal.AsSpan(list156)[0] = 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); + 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); reference112 = list158; - num4++; - span157[num4] = null; - num4++; - span157[num4] = null; - num4++; - span157[num4] = null; + span98[3] = null; + span98[4] = null; + span98[5] = null; obj86.RequiredQuestVariables = list157; reference111 = obj86; - num2++; - ref QuestStep reference113 = ref span155[num2]; + ref QuestStep reference113 = ref span97[1]; QuestStep obj87 = new QuestStep(EInteractionType.Combat, 2014501u, new Vector3(-171.95392f, 109.57495f, 652.09424f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list159 = new List(num4); - CollectionsMarshal.SetCount(list159, num4); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = 18175u; + num3 = 1; + List list159 = new List(num3); + CollectionsMarshal.SetCount(list159, num3); + CollectionsMarshal.AsSpan(list159)[0] = 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); + 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); reference114 = list161; - num4++; - span160[num4] = null; - num4++; - span160[num4] = null; - num4++; - span160[num4] = null; + span99[3] = null; + span99[4] = null; + span99[5] = null; obj87.RequiredQuestVariables = list160; reference113 = obj87; - num2++; - ref QuestStep reference115 = ref span155[num2]; + ref QuestStep reference115 = ref span97[2]; QuestStep obj88 = new QuestStep(EInteractionType.Combat, 2014502u, new Vector3(-126.756714f, 109.57495f, 765.68225f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list162 = new List(num4); - CollectionsMarshal.SetCount(list162, num4); - Span span162 = CollectionsMarshal.AsSpan(list162); - index2 = 0; - span162[index2] = 18175u; + num3 = 1; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + CollectionsMarshal.AsSpan(list162)[0] = 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); + 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); reference116 = list164; - num4++; - span163[num4] = null; - num4++; - span163[num4] = null; - num4++; - span163[num4] = null; + span100[3] = null; + span100[4] = null; + span100[5] = null; obj88.RequiredQuestVariables = list163; reference115 = obj88; obj85.Steps = list155; reference110 = obj85; - num++; - ref QuestSequence reference117 = ref span153[num]; + ref QuestSequence reference117 = ref span95[2]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue @@ -450220,14 +370091,12 @@ public static class AssemblyQuestLoader num2 = 2; List list165 = new List(num2); CollectionsMarshal.SetCount(list165, num2); - Span span165 = CollectionsMarshal.AsSpan(list165); - num3 = 0; - span165[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span101 = CollectionsMarshal.AsSpan(list165); + span101[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span165[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span101[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450240,35 +370109,29 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "liza"; + CollectionsMarshal.AsSpan(list166)[0] = "liza"; questRoot18.Author = list166; - index = 3; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference118 = ref span167[num]; + num = 3; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span102 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference118 = ref span102[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj90.Steps = list168; reference118 = obj90; - num++; - ref QuestSequence reference119 = ref span167[num]; + ref QuestSequence reference119 = ref span102[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 @@ -450276,32 +370139,27 @@ public static class AssemblyQuestLoader num2 = 1; List list169 = new List(num2); CollectionsMarshal.SetCount(list169, num2); - Span span169 = CollectionsMarshal.AsSpan(list169); - num3 = 0; - span169[num3] = new QuestStep(EInteractionType.Interact, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) + CollectionsMarshal.AsSpan(list169)[0] = new QuestStep(EInteractionType.Interact, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj91.Steps = list169; reference119 = obj91; - num++; - ref QuestSequence reference120 = ref span167[num]; + ref QuestSequence reference120 = ref span102[2]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span170[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span104[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450314,16 +370172,13 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "liza"; + CollectionsMarshal.AsSpan(list171)[0] = "liza"; questRoot19.Author = list171; - index = 4; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference121 = ref span172[num]; + num = 4; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span105 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference121 = ref span105[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -450331,28 +370186,24 @@ public static class AssemblyQuestLoader num2 = 2; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - 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) + 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) { StopDistance = 5f }; obj93.Steps = list173; reference121 = obj93; - num++; - ref QuestSequence reference122 = ref span172[num]; + ref QuestSequence reference122 = ref span105[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -450369,12 +370220,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span174[num2] = new QuestStep(EInteractionType.Interact, 1052331u, new Vector3(973.84595f, 7.192305f, -254.87152f), 1188); + span107[1] = new QuestStep(EInteractionType.Interact, 1052331u, new Vector3(973.84595f, 7.192305f, -254.87152f), 1188); obj94.Steps = list174; reference122 = obj94; - num++; - ref QuestSequence reference123 = ref span172[num]; + ref QuestSequence reference123 = ref span105[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -450382,31 +370231,26 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - num3 = 0; - span175[num3] = new QuestStep(EInteractionType.Interact, 1052332u, new Vector3(978.027f, 7.1869507f, -257.3739f), 1188) + CollectionsMarshal.AsSpan(list175)[0] = new QuestStep(EInteractionType.Interact, 1052332u, new Vector3(978.027f, 7.1869507f, -257.3739f), 1188) { StopDistance = 8f }; obj95.Steps = list175; reference123 = obj95; - num++; - ref QuestSequence reference124 = ref span172[num]; + ref QuestSequence reference124 = ref span105[3]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span176[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span108[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450419,16 +370263,13 @@ public static class AssemblyQuestLoader num = 1; List list177 = new List(num); CollectionsMarshal.SetCount(list177, num); - Span span177 = CollectionsMarshal.AsSpan(list177); - index = 0; - span177[index] = "liza"; + CollectionsMarshal.AsSpan(list177)[0] = "liza"; questRoot20.Author = list177; - index = 4; - List list178 = new List(index); - CollectionsMarshal.SetCount(list178, index); - Span span178 = CollectionsMarshal.AsSpan(list178); - num = 0; - ref QuestSequence reference125 = ref span178[num]; + num = 4; + List list178 = new List(num); + CollectionsMarshal.SetCount(list178, num); + Span span109 = CollectionsMarshal.AsSpan(list178); + ref QuestSequence reference125 = ref span109[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 @@ -450436,102 +370277,77 @@ public static class AssemblyQuestLoader num2 = 2; List list179 = new List(num2); CollectionsMarshal.SetCount(list179, num2); - 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) + 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) { StopDistance = 5f }; obj97.Steps = list179; reference125 = obj97; - num++; - ref QuestSequence reference126 = ref span178[num]; + ref QuestSequence reference126 = ref span109[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list180 = new List(num3); - CollectionsMarshal.SetCount(list180, num3); - Span span180 = CollectionsMarshal.AsSpan(list180); - num2 = 0; - ref QuestStep reference127 = ref span180[num2]; + num2 = 3; + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + Span span111 = CollectionsMarshal.AsSpan(list180); + ref QuestStep reference127 = ref span111[0]; QuestStep obj99 = new QuestStep(EInteractionType.Interact, 1052333u, new Vector3(775.1736f, 12.871736f, -196.0022f), 1188) { Fly = true }; - 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); + 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); obj99.CompletionQuestVariablesFlags = list181; reference127 = obj99; - num2++; - ref QuestStep reference128 = ref span180[num2]; + ref QuestStep reference128 = ref span111[1]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1052335u, new Vector3(867.76526f, 14.402381f, -171.31305f), 1188) { Fly = true }; - 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); + 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); obj100.CompletionQuestVariablesFlags = list182; reference128 = obj100; - num2++; - ref QuestStep reference129 = ref span180[num2]; + ref QuestStep reference129 = ref span111[2]; QuestStep obj101 = new QuestStep(EInteractionType.Interact, 1052334u, new Vector3(864.5609f, 15.056413f, -256.27533f), 1188) { Fly = true }; - 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); + 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); obj101.CompletionQuestVariablesFlags = list183; reference129 = obj101; obj98.Steps = list180; reference126 = obj98; - num++; - ref QuestSequence reference130 = ref span178[num]; + ref QuestSequence reference130 = ref span109[2]; QuestSequence obj102 = new QuestSequence { Sequence = 2 @@ -450539,31 +370355,26 @@ public static class AssemblyQuestLoader num2 = 1; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - num3 = 0; - span184[num3] = new QuestStep(EInteractionType.Interact, 1052336u, new Vector3(838.4375f, 14.301746f, -222.06458f), 1188) + CollectionsMarshal.AsSpan(list184)[0] = new QuestStep(EInteractionType.Interact, 1052336u, new Vector3(838.4375f, 14.301746f, -222.06458f), 1188) { Fly = true }; obj102.Steps = list184; reference130 = obj102; - num++; - ref QuestSequence reference131 = ref span178[num]; + ref QuestSequence reference131 = ref span109[3]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; - num2++; - span185[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span115[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450576,16 +370387,13 @@ public static class AssemblyQuestLoader num = 1; List list186 = new List(num); CollectionsMarshal.SetCount(list186, num); - Span span186 = CollectionsMarshal.AsSpan(list186); - index = 0; - span186[index] = "liza"; + CollectionsMarshal.AsSpan(list186)[0] = "liza"; questRoot21.Author = list186; - index = 4; - List list187 = new List(index); - CollectionsMarshal.SetCount(list187, index); - Span span187 = CollectionsMarshal.AsSpan(list187); - num = 0; - ref QuestSequence reference132 = ref span187[num]; + num = 4; + List list187 = new List(num); + CollectionsMarshal.SetCount(list187, num); + Span span116 = CollectionsMarshal.AsSpan(list187); + ref QuestSequence reference132 = ref span116[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -450593,28 +370401,24 @@ public static class AssemblyQuestLoader num2 = 2; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - 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) + 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) { StopDistance = 5f }; obj104.Steps = list188; reference132 = obj104; - num++; - ref QuestSequence reference133 = ref span187[num]; + ref QuestSequence reference133 = ref span116[1]; QuestSequence obj105 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list189 = new List(num3); - CollectionsMarshal.SetCount(list189, num3); - Span span189 = CollectionsMarshal.AsSpan(list189); - num2 = 0; - ref QuestStep reference134 = ref span189[num2]; + num2 = 3; + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + Span span118 = CollectionsMarshal.AsSpan(list189); + ref QuestStep reference134 = ref span118[0]; QuestStep obj106 = new QuestStep(EInteractionType.Combat, 2014504u, new Vector3(-232.22711f, 120.25635f, 26.199707f), 1188) { Fly = true, @@ -450622,122 +370426,89 @@ public static class AssemblyQuestLoader ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index2 = 1; - List list190 = new List(index2); - CollectionsMarshal.SetCount(list190, index2); - Span span190 = CollectionsMarshal.AsSpan(list190); - num4 = 0; - span190[num4] = 18176u; + num3 = 1; + List list190 = new List(num3); + CollectionsMarshal.SetCount(list190, num3); + CollectionsMarshal.AsSpan(list190)[0] = 18176u; obj106.KillEnemyDataIds = list190; - 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); + 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); reference135 = list192; - index2++; - span191[index2] = null; - index2++; - span191[index2] = null; + span119[4] = null; + span119[5] = null; obj106.RequiredQuestVariables = list191; reference134 = obj106; - num2++; - ref QuestStep reference136 = ref span189[num2]; + ref QuestStep reference136 = ref span118[1]; QuestStep obj107 = new QuestStep(EInteractionType.Combat, 2014503u, new Vector3(-134.29468f, 120.62256f, 41.000854f), 1188) { Fly = true, ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index2 = 1; - List list193 = new List(index2); - CollectionsMarshal.SetCount(list193, index2); - Span span193 = CollectionsMarshal.AsSpan(list193); - num4 = 0; - span193[num4] = 18176u; + num3 = 1; + List list193 = new List(num3); + CollectionsMarshal.SetCount(list193, num3); + CollectionsMarshal.AsSpan(list193)[0] = 18176u; obj107.KillEnemyDataIds = list193; - 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); + 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); reference137 = list195; - index2++; - span194[index2] = null; - index2++; - span194[index2] = null; + span120[4] = null; + span120[5] = null; obj107.RequiredQuestVariables = list194; reference136 = obj107; - num2++; - ref QuestStep reference138 = ref span189[num2]; + ref QuestStep reference138 = ref span118[2]; QuestStep obj108 = new QuestStep(EInteractionType.Combat, 2014505u, new Vector3(-292.28656f, 119.46289f, 17.959839f), 1188) { Fly = true, ItemId = 2003727u, EnemySpawnType = EEnemySpawnType.AfterItemUse }; - index2 = 1; - List list196 = new List(index2); - CollectionsMarshal.SetCount(list196, index2); - Span span196 = CollectionsMarshal.AsSpan(list196); - num4 = 0; - span196[num4] = 18176u; + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + CollectionsMarshal.AsSpan(list196)[0] = 18176u; obj108.KillEnemyDataIds = list196; - 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); + 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); reference139 = list198; - index2++; - span197[index2] = null; - index2++; - span197[index2] = null; + span121[4] = null; + span121[5] = null; obj108.RequiredQuestVariables = list197; reference138 = obj108; obj105.Steps = list189; reference133 = obj105; - num++; - ref QuestSequence reference140 = ref span187[num]; + ref QuestSequence reference140 = ref span116[2]; QuestSequence obj109 = new QuestSequence { Sequence = 2 @@ -450745,31 +370516,27 @@ public static class AssemblyQuestLoader num2 = 2; List list199 = new List(num2); CollectionsMarshal.SetCount(list199, num2); - Span span199 = CollectionsMarshal.AsSpan(list199); - num3 = 0; - span199[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + Span span122 = CollectionsMarshal.AsSpan(list199); + span122[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span199[num3] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + span122[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj109.Steps = list199; reference140 = obj109; - num++; - ref QuestSequence reference141 = ref span187[num]; + ref QuestSequence reference141 = ref span116[3]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -450785,8 +370552,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span200[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span123[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450799,16 +370565,13 @@ public static class AssemblyQuestLoader num = 1; List list201 = new List(num); CollectionsMarshal.SetCount(list201, num); - Span span201 = CollectionsMarshal.AsSpan(list201); - index = 0; - span201[index] = "liza"; + CollectionsMarshal.AsSpan(list201)[0] = "liza"; questRoot22.Author = list201; - index = 3; - List list202 = new List(index); - CollectionsMarshal.SetCount(list202, index); - Span span202 = CollectionsMarshal.AsSpan(list202); - num = 0; - ref QuestSequence reference142 = ref span202[num]; + num = 3; + List list202 = new List(num); + CollectionsMarshal.SetCount(list202, num); + Span span124 = CollectionsMarshal.AsSpan(list202); + ref QuestSequence reference142 = ref span124[0]; QuestSequence obj111 = new QuestSequence { Sequence = 0 @@ -450816,46 +370579,39 @@ public static class AssemblyQuestLoader num2 = 2; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - 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) + 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) { StopDistance = 5f }; obj111.Steps = list203; reference142 = obj111; - num++; - ref QuestSequence reference143 = ref span202[num]; + ref QuestSequence reference143 = ref span124[1]; QuestSequence obj112 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list204 = new List(num3); - CollectionsMarshal.SetCount(list204, num3); - Span span204 = CollectionsMarshal.AsSpan(list204); - num2 = 0; - ref QuestStep reference144 = ref span204[num2]; + num2 = 1; + List list204 = new List(num2); + CollectionsMarshal.SetCount(list204, num2); + ref QuestStep reference144 = ref CollectionsMarshal.AsSpan(list204)[0]; QuestStep obj113 = new QuestStep(EInteractionType.Interact, 1052337u, new Vector3(479.14844f, 113.54922f, 175.37183f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - index2 = 2; - List list205 = new List(index2); - CollectionsMarshal.SetCount(list205, index2); - Span span205 = CollectionsMarshal.AsSpan(list205); - num4 = 0; - span205[num4] = new DialogueChoice + num3 = 2; + List list205 = new List(num3); + CollectionsMarshal.SetCount(list205, num3); + Span span126 = CollectionsMarshal.AsSpan(list205); + span126[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL123_05221_Q1_000_000"), Answer = new ExcelRef("TEXT_BANPEL123_05221_A1_000_003") }; - num4++; - span205[num4] = new DialogueChoice + span126[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANPEL123_05221_Q2_000_000"), @@ -450865,8 +370621,7 @@ public static class AssemblyQuestLoader reference144 = obj113; obj112.Steps = list204; reference143 = obj112; - num++; - ref QuestSequence reference145 = ref span202[num]; + ref QuestSequence reference145 = ref span124[2]; QuestSequence obj114 = new QuestSequence { Sequence = byte.MaxValue @@ -450874,14 +370629,12 @@ public static class AssemblyQuestLoader num2 = 2; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - num3 = 0; - span206[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) + Span span127 = CollectionsMarshal.AsSpan(list206); + span127[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(770.70636f, 12.846572f, -260.59436f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span206[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span127[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -450894,35 +370647,29 @@ public static class AssemblyQuestLoader num = 1; List list207 = new List(num); CollectionsMarshal.SetCount(list207, num); - Span span207 = CollectionsMarshal.AsSpan(list207); - index = 0; - span207[index] = "liza"; + CollectionsMarshal.AsSpan(list207)[0] = "liza"; questRoot23.Author = list207; - index = 5; - List list208 = new List(index); - CollectionsMarshal.SetCount(list208, index); - Span span208 = CollectionsMarshal.AsSpan(list208); - num = 0; - ref QuestSequence reference146 = ref span208[num]; + num = 5; + List list208 = new List(num); + CollectionsMarshal.SetCount(list208, num); + Span span128 = CollectionsMarshal.AsSpan(list208); + ref QuestSequence reference146 = ref span128[0]; QuestSequence obj115 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj115.Steps = list209; reference146 = obj115; - num++; - ref QuestSequence reference147 = ref span208[num]; + ref QuestSequence reference147 = ref span128[1]; QuestSequence obj116 = new QuestSequence { Sequence = 1 @@ -450930,9 +370677,7 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = new QuestStep(EInteractionType.Interact, 1052339u, new Vector3(910.3379f, 10.1397f, -381.36877f), 1188) + CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1052339u, new Vector3(910.3379f, 10.1397f, -381.36877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -450951,22 +370696,18 @@ public static class AssemblyQuestLoader }; obj116.Steps = list210; reference147 = obj116; - num++; - ref QuestSequence reference148 = ref span208[num]; + ref QuestSequence reference148 = ref span128[2]; QuestSequence obj117 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj117.Steps = list211; reference148 = obj117; - num++; - ref QuestSequence reference149 = ref span208[num]; + ref QuestSequence reference149 = ref span128[3]; QuestSequence obj118 = new QuestSequence { Sequence = 3 @@ -450974,23 +370715,19 @@ public static class AssemblyQuestLoader num2 = 1; List list212 = new List(num2); CollectionsMarshal.SetCount(list212, num2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - span212[num3] = new QuestStep(EInteractionType.Interact, 1052340u, new Vector3(789.9137f, 14.354868f, -215.77783f), 1188); + CollectionsMarshal.AsSpan(list212)[0] = new QuestStep(EInteractionType.Interact, 1052340u, new Vector3(789.9137f, 14.354868f, -215.77783f), 1188); obj118.Steps = list212; reference149 = obj118; - num++; - ref QuestSequence reference150 = ref span208[num]; + ref QuestSequence reference150 = ref span128[4]; QuestSequence obj119 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -451006,8 +370743,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span213[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span130[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -451020,16 +370756,13 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - Span span214 = CollectionsMarshal.AsSpan(list214); - index = 0; - span214[index] = "liza"; + CollectionsMarshal.AsSpan(list214)[0] = "liza"; questRoot24.Author = list214; - index = 4; - List list215 = new List(index); - CollectionsMarshal.SetCount(list215, index); - Span span215 = CollectionsMarshal.AsSpan(list215); - num = 0; - ref QuestSequence reference151 = ref span215[num]; + num = 4; + List list215 = new List(num); + CollectionsMarshal.SetCount(list215, num); + Span span131 = CollectionsMarshal.AsSpan(list215); + ref QuestSequence reference151 = ref span131[0]; QuestSequence obj120 = new QuestSequence { Sequence = 0 @@ -451037,28 +370770,24 @@ public static class AssemblyQuestLoader num2 = 2; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - 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) + 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) { StopDistance = 5f }; obj120.Steps = list216; reference151 = obj120; - num++; - ref QuestSequence reference152 = ref span215[num]; + ref QuestSequence reference152 = ref span131[1]; QuestSequence obj121 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, SkipConditions = new SkipConditions @@ -451074,15 +370803,13 @@ public static class AssemblyQuestLoader } } }; - num2++; - span217[num2] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + span133[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj121.Steps = list217; reference152 = obj121; - num++; - ref QuestSequence reference153 = ref span215[num]; + ref QuestSequence reference153 = ref span131[2]; QuestSequence obj122 = new QuestSequence { Sequence = 2 @@ -451090,32 +370817,27 @@ public static class AssemblyQuestLoader num2 = 1; List list218 = new List(num2); CollectionsMarshal.SetCount(list218, num2); - Span span218 = CollectionsMarshal.AsSpan(list218); - num3 = 0; - span218[num3] = new QuestStep(EInteractionType.Interact, 1052341u, new Vector3(239.49023f, 111.689354f, 699.3667f), 1188) + CollectionsMarshal.AsSpan(list218)[0] = new QuestStep(EInteractionType.Interact, 1052341u, new Vector3(239.49023f, 111.689354f, 699.3667f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; obj122.Steps = list218; reference153 = obj122; - num++; - ref QuestSequence reference154 = ref span215[num]; + ref QuestSequence reference154 = ref span131[3]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span219[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span134[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -451128,16 +370850,13 @@ public static class AssemblyQuestLoader num = 1; List list220 = new List(num); CollectionsMarshal.SetCount(list220, num); - Span span220 = CollectionsMarshal.AsSpan(list220); - index = 0; - span220[index] = "liza"; + CollectionsMarshal.AsSpan(list220)[0] = "liza"; questRoot25.Author = list220; - index = 4; - List list221 = new List(index); - CollectionsMarshal.SetCount(list221, index); - Span span221 = CollectionsMarshal.AsSpan(list221); - num = 0; - ref QuestSequence reference155 = ref span221[num]; + num = 4; + List list221 = new List(num); + CollectionsMarshal.SetCount(list221, num); + Span span135 = CollectionsMarshal.AsSpan(list221); + ref QuestSequence reference155 = ref span135[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 @@ -451145,148 +370864,111 @@ public static class AssemblyQuestLoader num2 = 2; List list222 = new List(num2); CollectionsMarshal.SetCount(list222, num2); - 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) + 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) { StopDistance = 5f }; obj124.Steps = list222; reference155 = obj124; - num++; - ref QuestSequence reference156 = ref span221[num]; + ref QuestSequence reference156 = ref span135[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list223 = new List(num3); - CollectionsMarshal.SetCount(list223, num3); - Span span223 = CollectionsMarshal.AsSpan(list223); - num2 = 0; - ref QuestStep reference157 = ref span223[num2]; + num2 = 3; + List list223 = new List(num2); + CollectionsMarshal.SetCount(list223, num2); + Span span137 = CollectionsMarshal.AsSpan(list223); + ref QuestStep reference157 = ref span137[0]; QuestStep obj126 = new QuestStep(EInteractionType.Combat, 2014508u, new Vector3(566.1554f, 123.552246f, 700.4043f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list224 = new List(num4); - CollectionsMarshal.SetCount(list224, num4); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = 18177u; + num3 = 1; + List list224 = new List(num3); + CollectionsMarshal.SetCount(list224, num3); + CollectionsMarshal.AsSpan(list224)[0] = 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); + 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); reference158 = list226; - num4++; - span225[num4] = null; - num4++; - span225[num4] = null; - num4++; - span225[num4] = null; + span138[3] = null; + span138[4] = null; + span138[5] = null; obj126.RequiredQuestVariables = list225; reference157 = obj126; - num2++; - ref QuestStep reference159 = ref span223[num2]; + ref QuestStep reference159 = ref span137[1]; QuestStep obj127 = new QuestStep(EInteractionType.Combat, 2014509u, new Vector3(557.94604f, 124.65088f, 778.56104f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list227 = new List(num4); - CollectionsMarshal.SetCount(list227, num4); - Span span227 = CollectionsMarshal.AsSpan(list227); - index2 = 0; - span227[index2] = 18177u; + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = 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); + 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); reference160 = list229; - num4++; - span228[num4] = null; - num4++; - span228[num4] = null; - num4++; - span228[num4] = null; + span139[3] = null; + span139[4] = null; + span139[5] = null; obj127.RequiredQuestVariables = list228; reference159 = obj127; - num2++; - ref QuestStep reference161 = ref span223[num2]; + ref QuestStep reference161 = ref span137[2]; QuestStep obj128 = new QuestStep(EInteractionType.Combat, 2014507u, new Vector3(721.8584f, 123.09448f, 729.9762f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction }; - num4 = 1; - List list230 = new List(num4); - CollectionsMarshal.SetCount(list230, num4); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - span230[index2] = 18177u; + num3 = 1; + List list230 = new List(num3); + CollectionsMarshal.SetCount(list230, num3); + CollectionsMarshal.AsSpan(list230)[0] = 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); + 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); reference162 = list232; - num4++; - span231[num4] = null; - num4++; - span231[num4] = null; - num4++; - span231[num4] = null; + span140[3] = null; + span140[4] = null; + span140[5] = null; obj128.RequiredQuestVariables = list231; reference161 = obj128; obj125.Steps = list223; reference156 = obj125; - num++; - ref QuestSequence reference163 = ref span221[num]; + ref QuestSequence reference163 = ref span135[2]; QuestSequence obj129 = new QuestSequence { Sequence = 2 @@ -451294,31 +370976,26 @@ public static class AssemblyQuestLoader num2 = 1; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - num3 = 0; - span233[num3] = new QuestStep(EInteractionType.Interact, 1052443u, new Vector3(641.8097f, 122.10785f, 730.70874f), 1188) + CollectionsMarshal.AsSpan(list233)[0] = new QuestStep(EInteractionType.Interact, 1052443u, new Vector3(641.8097f, 122.10785f, 730.70874f), 1188) { Fly = true }; obj129.Steps = list233; reference163 = obj129; - num++; - ref QuestSequence reference164 = ref span221[num]; + ref QuestSequence reference164 = ref span135[3]; QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span234[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span141[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -451331,16 +371008,13 @@ public static class AssemblyQuestLoader num = 1; List list235 = new List(num); CollectionsMarshal.SetCount(list235, num); - Span span235 = CollectionsMarshal.AsSpan(list235); - index = 0; - span235[index] = "liza"; + CollectionsMarshal.AsSpan(list235)[0] = "liza"; questRoot26.Author = list235; - index = 4; - List list236 = new List(index); - CollectionsMarshal.SetCount(list236, index); - Span span236 = CollectionsMarshal.AsSpan(list236); - num = 0; - ref QuestSequence reference165 = ref span236[num]; + num = 4; + List list236 = new List(num); + CollectionsMarshal.SetCount(list236, num); + Span span142 = CollectionsMarshal.AsSpan(list236); + ref QuestSequence reference165 = ref span142[0]; QuestSequence obj131 = new QuestSequence { Sequence = 0 @@ -451348,104 +371022,79 @@ public static class AssemblyQuestLoader num2 = 2; List list237 = new List(num2); CollectionsMarshal.SetCount(list237, num2); - 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) + 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) { StopDistance = 5f }; obj131.Steps = list237; reference165 = obj131; - num++; - ref QuestSequence reference166 = ref span236[num]; + ref QuestSequence reference166 = ref span142[1]; QuestSequence obj132 = new QuestSequence { Sequence = 1 }; - num3 = 3; - List list238 = new List(num3); - CollectionsMarshal.SetCount(list238, num3); - Span span238 = CollectionsMarshal.AsSpan(list238); - num2 = 0; - ref QuestStep reference167 = ref span238[num2]; + num2 = 3; + List list238 = new List(num2); + CollectionsMarshal.SetCount(list238, num2); + Span span144 = CollectionsMarshal.AsSpan(list238); + ref QuestStep reference167 = ref span144[0]; QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014511u, new Vector3(226.85583f, 2.9450073f, -199.6643f), 1188) { StopDistance = 1f, Fly = true }; - 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); + 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); obj133.CompletionQuestVariablesFlags = list239; reference167 = obj133; - num2++; - ref QuestStep reference168 = ref span238[num2]; + ref QuestStep reference168 = ref span144[1]; QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014510u, new Vector3(218.1582f, 2.2124634f, -184.92413f), 1188) { StopDistance = 1f }; - 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); + 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); obj134.CompletionQuestVariablesFlags = list240; reference168 = obj134; - num2++; - ref QuestStep reference169 = ref span238[num2]; + ref QuestStep reference169 = ref span144[2]; QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014512u, new Vector3(61.53955f, 8.102478f, -230.79272f), 1188) { StopDistance = 1f, Fly = true }; - 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); + 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); obj135.CompletionQuestVariablesFlags = list241; reference169 = obj135; obj132.Steps = list238; reference166 = obj132; - num++; - ref QuestSequence reference170 = ref span236[num]; + ref QuestSequence reference170 = ref span142[2]; QuestSequence obj136 = new QuestSequence { Sequence = 2 @@ -451453,31 +371102,27 @@ public static class AssemblyQuestLoader num2 = 2; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - num3 = 0; - span242[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) + Span span148 = CollectionsMarshal.AsSpan(list242); + span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(746.76465f, 15.431515f, -201.92921f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num3++; - span242[num3] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) + span148[1] = new QuestStep(EInteractionType.Interact, 1051741u, new Vector3(744.19763f, 15.431515f, -199.17603f), 1188) { StopDistance = 7f }; obj136.Steps = list242; reference170 = obj136; - num++; - ref QuestSequence reference171 = ref span236[num]; + ref QuestSequence reference171 = ref span142[3]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -451494,8 +371139,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span243[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span149[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -451508,16 +371152,13 @@ public static class AssemblyQuestLoader num = 1; List list244 = new List(num); CollectionsMarshal.SetCount(list244, num); - Span span244 = CollectionsMarshal.AsSpan(list244); - index = 0; - span244[index] = "liza"; + CollectionsMarshal.AsSpan(list244)[0] = "liza"; questRoot27.Author = list244; - index = 4; - List list245 = new List(index); - CollectionsMarshal.SetCount(list245, index); - Span span245 = CollectionsMarshal.AsSpan(list245); - num = 0; - ref QuestSequence reference172 = ref span245[num]; + num = 4; + List list245 = new List(num); + CollectionsMarshal.SetCount(list245, num); + Span span150 = CollectionsMarshal.AsSpan(list245); + ref QuestSequence reference172 = ref span150[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -451525,28 +371166,23 @@ public static class AssemblyQuestLoader num2 = 2; List list246 = new List(num2); CollectionsMarshal.SetCount(list246, num2); - 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) + 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) { StopDistance = 5f }; obj138.Steps = list246; reference172 = obj138; - num++; - ref QuestSequence reference173 = ref span245[num]; + ref QuestSequence reference173 = ref span150[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga, @@ -451565,8 +371201,7 @@ public static class AssemblyQuestLoader }; obj139.Steps = list247; reference173 = obj139; - num++; - ref QuestSequence reference174 = ref span245[num]; + ref QuestSequence reference174 = ref span150[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -451574,32 +371209,27 @@ public static class AssemblyQuestLoader num2 = 1; List list248 = new List(num2); CollectionsMarshal.SetCount(list248, num2); - Span span248 = CollectionsMarshal.AsSpan(list248); - num3 = 0; - span248[num3] = new QuestStep(EInteractionType.Action, 1052345u, new Vector3(908.50684f, 5.7142797f, -337.85004f), 1188) + CollectionsMarshal.AsSpan(list248)[0] = new QuestStep(EInteractionType.Action, 1052345u, new Vector3(908.50684f, 5.7142797f, -337.85004f), 1188) { Fly = true, Action = EAction.BosomBrook }; obj140.Steps = list248; reference174 = obj140; - num++; - ref QuestSequence reference175 = ref span245[num]; + ref QuestSequence reference175 = ref span150[3]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.KozamaukaDockPoga }; - num2++; - span249[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) + span152[1] = new QuestStep(EInteractionType.CompleteQuest, 1051711u, new Vector3(770.7179f, 12.84657f, -263.99634f), 1188) { StopDistance = 5f }; @@ -451612,18 +371242,15 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "Starr"; + CollectionsMarshal.AsSpan(list250)[0] = "Starr"; questRoot28.Author = list250; questRoot28.IsSeasonalQuest = true; questRoot28.SeasonalQuestExpiry = new DateTime(2024, 12, 31, 0, 0, 0, DateTimeKind.Utc); - index = 6; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference176 = ref span251[num]; + num = 6; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span153 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference176 = ref span153[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -451631,9 +371258,7 @@ public static class AssemblyQuestLoader num2 = 1; List list252 = new List(num2); CollectionsMarshal.SetCount(list252, num2); - Span span252 = CollectionsMarshal.AsSpan(list252); - num3 = 0; - span252[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051801u, new Vector3(-49.485046f, 6.499997f, -90.348694f), 133) + CollectionsMarshal.AsSpan(list252)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051801u, new Vector3(-49.485046f, 6.499997f, -90.348694f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, AethernetShortcut = new AethernetShortcut @@ -451644,25 +371269,20 @@ public static class AssemblyQuestLoader }; obj142.Steps = list252; reference176 = obj142; - num++; - ref QuestSequence reference177 = ref span251[num]; + ref QuestSequence reference177 = ref span153[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list253 = new List(num3); - CollectionsMarshal.SetCount(list253, num3); - Span span253 = CollectionsMarshal.AsSpan(list253); - num2 = 0; - ref QuestStep reference178 = ref span253[num2]; + 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); - index2 = 1; - List list254 = new List(index2); - CollectionsMarshal.SetCount(list254, index2); - Span span254 = CollectionsMarshal.AsSpan(list254); - num4 = 0; - span254[num4] = new DialogueChoice + num3 = 1; + List list254 = new List(num3); + CollectionsMarshal.SetCount(list254, num3); + CollectionsMarshal.AsSpan(list254)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESXMX001_05227_SYSTEM_000_025") @@ -451671,8 +371291,7 @@ public static class AssemblyQuestLoader reference178 = questStep7; obj143.Steps = list253; reference177 = obj143; - num++; - ref QuestSequence reference179 = ref span251[num]; + ref QuestSequence reference179 = ref span153[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 @@ -451680,88 +371299,63 @@ public static class AssemblyQuestLoader num2 = 1; List list255 = new List(num2); CollectionsMarshal.SetCount(list255, num2); - Span span255 = CollectionsMarshal.AsSpan(list255); - num3 = 0; - span255[num3] = new QuestStep(EInteractionType.Interact, 1051803u, new Vector3(33.951294f, -0.36796698f, 24.185547f), 1247); + CollectionsMarshal.AsSpan(list255)[0] = new QuestStep(EInteractionType.Interact, 1051803u, new Vector3(33.951294f, -0.36796698f, 24.185547f), 1247); obj144.Steps = list255; reference179 = obj144; - num++; - ref QuestSequence reference180 = ref span251[num]; + ref QuestSequence reference180 = ref span153[3]; QuestSequence obj145 = new QuestSequence { Sequence = 3 }; - num3 = 3; - List list256 = new List(num3); - CollectionsMarshal.SetCount(list256, num3); - Span span256 = CollectionsMarshal.AsSpan(list256); - num2 = 0; - ref QuestStep reference181 = ref span256[num2]; + num2 = 3; + List list256 = new List(num2); + CollectionsMarshal.SetCount(list256, num2); + Span span154 = CollectionsMarshal.AsSpan(list256); + ref QuestStep reference181 = ref span154[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1051816u, new Vector3(18.142944f, 0.0028544795f, -0.289917f), 1247); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list257; reference181 = questStep8; - num2++; - ref QuestStep reference182 = ref span256[num2]; + ref QuestStep reference182 = ref span154[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1052469u, new Vector3(-15.640564f, 0.0026466753f, 18.142944f), 1247); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list258; reference182 = questStep9; - num2++; - ref QuestStep reference183 = ref span256[num2]; + ref QuestStep reference183 = ref span154[2]; QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1051813u, new Vector3(-5.1118164f, 1.21852545E-05f, -31.99823f), 1247); - 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); + 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); questStep10.CompletionQuestVariablesFlags = list259; reference183 = questStep10; obj145.Steps = list256; reference180 = obj145; - num++; - ref QuestSequence reference184 = ref span251[num]; + ref QuestSequence reference184 = ref span153[4]; QuestSequence obj146 = new QuestSequence { Sequence = 4 @@ -451769,23 +371363,18 @@ public static class AssemblyQuestLoader num2 = 1; List list260 = new List(num2); CollectionsMarshal.SetCount(list260, num2); - Span span260 = CollectionsMarshal.AsSpan(list260); - num3 = 0; - span260[num3] = new QuestStep(EInteractionType.Interact, 1051804u, new Vector3(-3.4943848f, 0.0028544795f, -18.417664f), 1247); + CollectionsMarshal.AsSpan(list260)[0] = new QuestStep(EInteractionType.Interact, 1051804u, new Vector3(-3.4943848f, 0.0028544795f, -18.417664f), 1247); obj146.Steps = list260; reference184 = obj146; - num++; - ref QuestSequence reference185 = ref span251[num]; + ref QuestSequence reference185 = ref span153[5]; QuestSequence obj147 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5228) }; @@ -451798,18 +371387,15 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - Span span262 = CollectionsMarshal.AsSpan(list262); - index = 0; - span262[index] = "Starr"; + CollectionsMarshal.AsSpan(list262)[0] = "Starr"; questRoot29.Author = list262; questRoot29.IsSeasonalQuest = true; questRoot29.SeasonalQuestExpiry = new DateTime(2024, 12, 31, 0, 0, 0, DateTimeKind.Utc); - index = 8; - List list263 = new List(index); - CollectionsMarshal.SetCount(list263, index); - Span span263 = CollectionsMarshal.AsSpan(list263); - num = 0; - ref QuestSequence reference186 = ref span263[num]; + num = 8; + List list263 = new List(num); + CollectionsMarshal.SetCount(list263, num); + Span span158 = CollectionsMarshal.AsSpan(list263); + ref QuestSequence reference186 = ref span158[0]; QuestSequence obj148 = new QuestSequence { Sequence = 0 @@ -451817,30 +371403,24 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - num3 = 0; - span264[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247); + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051819u, new Vector3(-1.6937866f, 0.0028544795f, -21.042236f), 1247); obj148.Steps = list264; reference186 = obj148; - num++; - ref QuestSequence reference187 = ref span263[num]; + ref QuestSequence reference187 = ref span158[1]; QuestSequence obj149 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Gridania }; obj149.Steps = list265; reference187 = obj149; - num++; - ref QuestSequence reference188 = ref span263[num]; + ref QuestSequence reference188 = ref span158[2]; QuestSequence obj150 = new QuestSequence { Sequence = 2 @@ -451848,9 +371428,8 @@ public static class AssemblyQuestLoader num2 = 2; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - num3 = 0; - ref QuestStep reference189 = ref span266[num3]; + Span span159 = CollectionsMarshal.AsSpan(list266); + ref QuestStep reference189 = ref span159[0]; QuestStep obj151 = new QuestStep(EInteractionType.Interact, 1051807u, new Vector3(-53.635498f, 5.793307f, -99.931335f), 133) { TargetTerritoryId = (ushort)1247, @@ -451866,36 +371445,29 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list267 = new List(index2); - CollectionsMarshal.SetCount(list267, index2); - Span span267 = CollectionsMarshal.AsSpan(list267); - num4 = 0; - span267[num4] = 132; + num3 = 1; + List list267 = new List(num3); + CollectionsMarshal.SetCount(list267, num3); + CollectionsMarshal.AsSpan(list267)[0] = 132; obj152.InTerritory = list267; skipConditions.AetheryteShortcutIf = obj152; obj151.SkipConditions = skipConditions; reference189 = obj151; - num3++; - span266[num3] = new QuestStep(EInteractionType.Interact, 1051823u, new Vector3(34.164917f, -0.37309912f, 23.605652f), 1247); + span159[1] = new QuestStep(EInteractionType.Interact, 1051823u, new Vector3(34.164917f, -0.37309912f, 23.605652f), 1247); obj150.Steps = list266; reference188 = obj150; - num++; - ref QuestSequence reference190 = ref span263[num]; + ref QuestSequence reference190 = ref span158[3]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj153.Steps = list268; reference190 = obj153; - num++; - ref QuestSequence reference191 = ref span263[num]; + ref QuestSequence reference191 = ref span158[4]; QuestSequence obj154 = new QuestSequence { Sequence = 4 @@ -451903,88 +371475,63 @@ public static class AssemblyQuestLoader num2 = 3; List list269 = new List(num2); CollectionsMarshal.SetCount(list269, num2); - Span span269 = CollectionsMarshal.AsSpan(list269); - num3 = 0; - ref QuestStep reference192 = ref span269[num3]; + Span span160 = CollectionsMarshal.AsSpan(list269); + ref QuestStep reference192 = ref span160[0]; QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1051816u, new Vector3(18.142944f, 0.0028544795f, -0.289917f), 1247); - 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); + 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); questStep11.CompletionQuestVariablesFlags = list270; reference192 = questStep11; - num3++; - ref QuestStep reference193 = ref span269[num3]; + ref QuestStep reference193 = ref span160[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1051809u, new Vector3(-15.823608f, 0.0028544795f, 9.84198f), 1247); - 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); + 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); questStep12.CompletionQuestVariablesFlags = list271; reference193 = questStep12; - num3++; - ref QuestStep reference194 = ref span269[num3]; + ref QuestStep reference194 = ref span160[2]; QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1051813u, new Vector3(-5.1118164f, 1.21852545E-05f, -31.99823f), 1247); - 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); + 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); questStep13.CompletionQuestVariablesFlags = list272; reference194 = questStep13; obj154.Steps = list269; reference191 = obj154; - num++; - ref QuestSequence reference195 = ref span263[num]; + ref QuestSequence reference195 = ref span158[5]; QuestSequence obj155 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj155.Steps = list273; reference195 = obj155; - num++; - ref QuestSequence reference196 = ref span263[num]; + ref QuestSequence reference196 = ref span158[6]; QuestSequence obj156 = new QuestSequence { Sequence = 6 @@ -451992,28 +371539,23 @@ public static class AssemblyQuestLoader num2 = 2; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - span274[num3] = new QuestStep(EInteractionType.Interact, 2014535u, new Vector3(67.88733f, -0.77819824f, 51.224487f), 1247) + Span span164 = CollectionsMarshal.AsSpan(list274); + span164[0] = new QuestStep(EInteractionType.Interact, 2014535u, new Vector3(67.88733f, -0.77819824f, 51.224487f), 1247) { TargetTerritoryId = (ushort)133 }; - num3++; - span274[num3] = new QuestStep(EInteractionType.Interact, 1051802u, new Vector3(-50.06488f, 6.499999f, -89.58569f), 133); + span164[1] = new QuestStep(EInteractionType.Interact, 1051802u, new Vector3(-50.06488f, 6.499999f, -89.58569f), 133); obj156.Steps = list274; reference196 = obj156; - num++; - ref QuestSequence reference197 = ref span263[num]; + ref QuestSequence reference197 = ref span158[7]; QuestSequence obj157 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj157.Steps = list275; reference197 = obj157; questRoot29.QuestSequence = list263; @@ -452023,18 +371565,15 @@ public static class AssemblyQuestLoader num = 1; List list276 = new List(num); CollectionsMarshal.SetCount(list276, num); - Span span276 = CollectionsMarshal.AsSpan(list276); - index = 0; - span276[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list276)[0] = "WigglyMuffin"; questRoot30.Author = list276; questRoot30.IsSeasonalQuest = true; questRoot30.SeasonalQuestExpiry = new DateTime(2026, 1, 15, 14, 59, 0, DateTimeKind.Utc); - index = 6; - List list277 = new List(index); - CollectionsMarshal.SetCount(list277, index); - Span span277 = CollectionsMarshal.AsSpan(list277); - num = 0; - ref QuestSequence reference198 = ref span277[num]; + num = 6; + List list277 = new List(num); + CollectionsMarshal.SetCount(list277, num); + Span span165 = CollectionsMarshal.AsSpan(list277); + ref QuestSequence reference198 = ref span165[0]; QuestSequence obj158 = new QuestSequence { Sequence = 0 @@ -452042,9 +371581,7 @@ public static class AssemblyQuestLoader num2 = 1; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - num3 = 0; - ref QuestStep reference199 = ref span278[num3]; + ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list278)[0]; QuestStep obj159 = new QuestStep(EInteractionType.AcceptQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -452056,34 +371593,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions2 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index2 = 1; - List list279 = new List(index2); - CollectionsMarshal.SetCount(list279, index2); - Span span279 = CollectionsMarshal.AsSpan(list279); - num4 = 0; - span279[num4] = 128; + num3 = 1; + List list279 = new List(num3); + CollectionsMarshal.SetCount(list279, num3); + CollectionsMarshal.AsSpan(list279)[0] = 128; skipAetheryteCondition.InTerritory = list279; skipConditions2.AetheryteShortcutIf = skipAetheryteCondition; obj159.SkipConditions = skipConditions2; reference199 = obj159; obj158.Steps = list278; reference198 = obj158; - num++; - ref QuestSequence reference200 = ref span277[num]; + ref QuestSequence reference200 = ref span165[1]; QuestSequence obj160 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj160.Steps = list280; reference200 = obj160; - num++; - ref QuestSequence reference201 = ref span277[num]; + ref QuestSequence reference201 = ref span165[2]; QuestSequence obj161 = new QuestSequence { Sequence = 2 @@ -452091,27 +371622,21 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - num3 = 0; - span281[num3] = new QuestStep(EInteractionType.Interact, 1052387u, new Vector3(22.690125f, 39.999985f, 30.71643f), 128); + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1052387u, new Vector3(22.690125f, 39.999985f, 30.71643f), 128); obj161.Steps = list281; reference201 = obj161; - num++; - ref QuestSequence reference202 = ref span277[num]; + ref QuestSequence reference202 = ref span165[3]; QuestSequence obj162 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj162.Steps = list282; reference202 = obj162; - num++; - ref QuestSequence reference203 = ref span277[num]; + ref QuestSequence reference203 = ref span165[4]; QuestSequence obj163 = new QuestSequence { Sequence = 4 @@ -452119,30 +371644,22 @@ public static class AssemblyQuestLoader num2 = 2; List list283 = new List(num2); CollectionsMarshal.SetCount(list283, num2); - Span span283 = CollectionsMarshal.AsSpan(list283); - num3 = 0; - ref QuestStep reference204 = ref span283[num3]; + Span span166 = CollectionsMarshal.AsSpan(list283); + ref QuestStep reference204 = ref span166[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 1003550u, new Vector3(76.85962f, 39.99632f, 78.99597f), 128); - 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); + 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); questStep14.CompletionQuestVariablesFlags = list284; reference204 = questStep14; - num3++; - span283[num3] = new QuestStep(EInteractionType.Interact, 1052297u, new Vector3(-94.40759f, 40.999977f, -152.78864f), 128) + span166[1] = new QuestStep(EInteractionType.Interact, 1052297u, new Vector3(-94.40759f, 40.999977f, -152.78864f), 128) { StopDistance = 6.1f, AethernetShortcut = new AethernetShortcut @@ -452153,18 +371670,15 @@ public static class AssemblyQuestLoader }; obj163.Steps = list283; reference203 = obj163; - num++; - ref QuestSequence reference205 = ref span277[num]; + ref QuestSequence reference205 = ref span165[5]; QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -452182,18 +371696,15 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list286)[0] = "WigglyMuffin"; questRoot31.Author = list286; questRoot31.IsSeasonalQuest = true; questRoot31.SeasonalQuestExpiry = new DateTime(2026, 1, 15, 14, 59, 0, DateTimeKind.Utc); - index = 6; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference206 = ref span287[num]; + num = 6; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span168 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference206 = ref span168[0]; QuestSequence obj165 = new QuestSequence { Sequence = 0 @@ -452201,9 +371712,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - num3 = 0; - ref QuestStep reference207 = ref span288[num3]; + ref QuestStep reference207 = ref CollectionsMarshal.AsSpan(list288)[0]; QuestStep obj166 = new QuestStep(EInteractionType.AcceptQuest, 1051493u, new Vector3(17.166382f, 45.656f, 133.92847f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -452215,30 +371724,25 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions3 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition2 = new SkipAetheryteCondition(); - index2 = 1; - List list289 = new List(index2); - CollectionsMarshal.SetCount(list289, index2); - Span span289 = CollectionsMarshal.AsSpan(list289); - num4 = 0; - span289[num4] = 128; + num3 = 1; + List list289 = new List(num3); + CollectionsMarshal.SetCount(list289, num3); + CollectionsMarshal.AsSpan(list289)[0] = 128; skipAetheryteCondition2.InTerritory = list289; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj166.SkipConditions = skipConditions3; reference207 = obj166; obj165.Steps = list288; reference206 = obj165; - num++; - ref QuestSequence reference208 = ref span287[num]; + ref QuestSequence reference208 = ref span168[1]; QuestSequence obj167 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -452255,8 +371759,7 @@ public static class AssemblyQuestLoader }; obj167.Steps = list290; reference208 = obj167; - num++; - ref QuestSequence reference209 = ref span287[num]; + ref QuestSequence reference209 = ref span168[2]; QuestSequence obj168 = new QuestSequence { Sequence = 2 @@ -452264,47 +371767,39 @@ public static class AssemblyQuestLoader num2 = 3; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - 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) + 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) { Mount = false }; - num3++; - span291[num3] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134) + span169[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(55.588623f, 47.3197f, 59.830566f), 134) { Mount = false }; obj168.Steps = list291; reference209 = obj168; - num++; - ref QuestSequence reference210 = ref span287[num]; + ref QuestSequence reference210 = ref span168[3]; QuestSequence obj169 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Mount = false }; - num2++; - span292[num2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134) + span170[2] = new QuestStep(EInteractionType.WaitForObjectAtPosition, 1051873u, new Vector3(145.73889f, 47.20847f, 156.11499f), 134) { Mount = false }; obj169.Steps = list292; reference210 = obj169; - num++; - ref QuestSequence reference211 = ref span287[num]; + ref QuestSequence reference211 = ref span168[4]; QuestSequence obj170 = new QuestSequence { Sequence = 4 @@ -452312,28 +371807,23 @@ public static class AssemblyQuestLoader num2 = 2; List list293 = new List(num2); CollectionsMarshal.SetCount(list293, num2); - 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) + 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) { Mount = false }; obj170.Steps = list293; reference211 = obj170; - num++; - ref QuestSequence reference212 = ref span287[num]; + ref QuestSequence reference212 = ref span168[5]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj171.Steps = list294; reference212 = obj171; questRoot31.QuestSequence = list287; @@ -452343,18 +371833,15 @@ public static class AssemblyQuestLoader num = 1; List list295 = new List(num); CollectionsMarshal.SetCount(list295, num); - Span span295 = CollectionsMarshal.AsSpan(list295); - index = 0; - span295[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list295)[0] = "WigglyMuffin"; questRoot32.Author = list295; questRoot32.IsSeasonalQuest = true; questRoot32.SeasonalQuestExpiry = new DateTime(2025, 12, 31, 14, 59, 0, DateTimeKind.Utc); - index = 8; - List list296 = new List(index); - CollectionsMarshal.SetCount(list296, index); - Span span296 = CollectionsMarshal.AsSpan(list296); - num = 0; - ref QuestSequence reference213 = ref span296[num]; + num = 8; + List list296 = new List(num); + CollectionsMarshal.SetCount(list296, num); + Span span172 = CollectionsMarshal.AsSpan(list296); + ref QuestSequence reference213 = ref span172[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 @@ -452362,9 +371849,7 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - num3 = 0; - ref QuestStep reference214 = ref span297[num3]; + ref QuestStep reference214 = ref CollectionsMarshal.AsSpan(list297)[0]; QuestStep obj173 = new QuestStep(EInteractionType.AcceptQuest, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -452379,32 +371864,27 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list298 = new List(num3); + CollectionsMarshal.SetCount(list298, num3); + Span span173 = CollectionsMarshal.AsSpan(list298); + span173[0] = 132; + span173[1] = 133; obj174.InTerritory = list298; skipConditions4.AetheryteShortcutIf = obj174; obj173.SkipConditions = skipConditions4; reference214 = obj173; obj172.Steps = list297; reference213 = obj172; - num++; - ref QuestSequence reference215 = ref span296[num]; + ref QuestSequence reference215 = ref span172[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list299 = new List(num3); - CollectionsMarshal.SetCount(list299, num3); - Span span299 = CollectionsMarshal.AsSpan(list299); - num2 = 0; - ref QuestStep reference216 = ref span299[num2]; + num2 = 1; + List list299 = new List(num2); + CollectionsMarshal.SetCount(list299, num2); + ref QuestStep reference216 = ref CollectionsMarshal.AsSpan(list299)[0]; QuestStep obj176 = new QuestStep(EInteractionType.Interact, 1054363u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -452420,22 +371900,19 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list300 = new List(num3); + CollectionsMarshal.SetCount(list300, num3); + Span span174 = CollectionsMarshal.AsSpan(list300); + span174[0] = 132; + span174[1] = 133; obj177.InTerritory = list300; skipConditions5.AetheryteShortcutIf = obj177; obj176.SkipConditions = skipConditions5; reference216 = obj176; obj175.Steps = list299; reference215 = obj175; - num++; - ref QuestSequence reference217 = ref span296[num]; + ref QuestSequence reference217 = ref span172[2]; QuestSequence obj178 = new QuestSequence { Sequence = 2 @@ -452443,9 +371920,8 @@ public static class AssemblyQuestLoader num2 = 2; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - num3 = 0; - ref QuestStep reference218 = ref span301[num3]; + Span span175 = CollectionsMarshal.AsSpan(list301); + ref QuestStep reference218 = ref span175[0]; QuestStep obj179 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -452458,48 +371934,40 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - num4 = 1; - List list302 = new List(num4); - CollectionsMarshal.SetCount(list302, num4); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = 1309; + num3 = 1; + List list302 = new List(num3); + CollectionsMarshal.SetCount(list302, num3); + CollectionsMarshal.AsSpan(list302)[0] = 1309; skipStepConditions.InTerritory = list302; skipConditions6.StepIf = skipStepConditions; SkipAetheryteCondition obj180 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; + 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; obj180.InTerritory = list303; skipConditions6.AetheryteShortcutIf = obj180; obj179.SkipConditions = skipConditions6; reference218 = obj179; - num3++; - span301[num3] = new QuestStep(EInteractionType.Interact, 1054362u, new Vector3(15.182739f, 0.0017376093f, -24.643372f), 1309); + span175[1] = new QuestStep(EInteractionType.Interact, 1054362u, new Vector3(15.182739f, 0.0017376093f, -24.643372f), 1309); obj178.Steps = list301; reference217 = obj178; - num++; - ref QuestSequence reference219 = ref span296[num]; + ref QuestSequence reference219 = ref span172[3]; QuestSequence obj181 = new QuestSequence { Sequence = 3 }; - num3 = 3; - List list304 = new List(num3); - CollectionsMarshal.SetCount(list304, num3); - Span span304 = CollectionsMarshal.AsSpan(list304); - num2 = 0; - ref QuestStep reference220 = ref span304[num2]; + num2 = 3; + List list304 = new List(num2); + CollectionsMarshal.SetCount(list304, num2); + Span span177 = CollectionsMarshal.AsSpan(list304); + ref QuestStep reference220 = ref span177[0]; QuestStep obj182 = new QuestStep(EInteractionType.Interact, 1054367u, new Vector3(86.045654f, 5.995377f, -91.844055f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -452514,37 +371982,28 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list305 = new List(num3); + CollectionsMarshal.SetCount(list305, num3); + Span span178 = CollectionsMarshal.AsSpan(list305); + span178[0] = 132; + span178[1] = 133; obj183.InTerritory = list305; skipConditions7.AetheryteShortcutIf = obj183; obj182.SkipConditions = skipConditions7; - 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); + 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); obj182.CompletionQuestVariablesFlags = list306; reference220 = obj182; - num2++; - ref QuestStep reference221 = ref span304[num2]; + ref QuestStep reference221 = ref span177[1]; QuestStep obj184 = new QuestStep(EInteractionType.Interact, 1054366u, new Vector3(159.2279f, 15.699927f, -117.93707f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -452559,37 +372018,28 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list307 = new List(num3); + CollectionsMarshal.SetCount(list307, num3); + Span span180 = CollectionsMarshal.AsSpan(list307); + span180[0] = 132; + span180[1] = 133; obj185.InTerritory = list307; skipConditions8.AetheryteShortcutIf = obj185; obj184.SkipConditions = skipConditions8; - 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); + 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); obj184.CompletionQuestVariablesFlags = list308; reference221 = obj184; - num2++; - ref QuestStep reference222 = ref span304[num2]; + ref QuestStep reference222 = ref span177[2]; QuestStep obj186 = new QuestStep(EInteractionType.Interact, 1054365u, new Vector3(161.6388f, 15.499999f, -61.997437f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -452604,22 +372054,19 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list309 = new List(num3); + CollectionsMarshal.SetCount(list309, num3); + Span span182 = CollectionsMarshal.AsSpan(list309); + span182[0] = 132; + span182[1] = 133; obj187.InTerritory = list309; skipConditions9.AetheryteShortcutIf = obj187; obj186.SkipConditions = skipConditions9; reference222 = obj186; obj181.Steps = list304; reference219 = obj181; - num++; - ref QuestSequence reference223 = ref span296[num]; + ref QuestSequence reference223 = ref span172[4]; QuestSequence obj188 = new QuestSequence { Sequence = 4 @@ -452627,9 +372074,7 @@ public static class AssemblyQuestLoader num2 = 1; List list310 = new List(num2); CollectionsMarshal.SetCount(list310, num2); - Span span310 = CollectionsMarshal.AsSpan(list310); - num3 = 0; - ref QuestStep reference224 = ref span310[num3]; + ref QuestStep reference224 = ref CollectionsMarshal.AsSpan(list310)[0]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) { AethernetShortcut = new AethernetShortcut @@ -452643,32 +372088,28 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + Span span183 = CollectionsMarshal.AsSpan(list311); + span183[0] = 132; + span183[1] = 133; obj190.InTerritory = list311; skipConditions10.AetheryteShortcutIf = obj190; obj189.SkipConditions = skipConditions10; reference224 = obj189; obj188.Steps = list310; reference223 = obj188; - num++; - ref QuestSequence reference225 = ref span296[num]; + ref QuestSequence reference225 = ref span172[5]; QuestSequence obj191 = new QuestSequence { Sequence = 5 }; - num3 = 4; - List list312 = new List(num3); - CollectionsMarshal.SetCount(list312, num3); - Span span312 = CollectionsMarshal.AsSpan(list312); - num2 = 0; - ref QuestStep reference226 = ref span312[num2]; + num2 = 4; + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + Span span184 = CollectionsMarshal.AsSpan(list312); + ref QuestStep reference226 = ref span184[0]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -452681,80 +372122,59 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - num4 = 1; - List list313 = new List(num4); - CollectionsMarshal.SetCount(list313, num4); - Span span313 = CollectionsMarshal.AsSpan(list313); - index2 = 0; - span313[index2] = 1309; + num3 = 1; + List list313 = new List(num3); + CollectionsMarshal.SetCount(list313, num3); + CollectionsMarshal.AsSpan(list313)[0] = 1309; skipStepConditions2.InTerritory = list313; skipConditions11.StepIf = skipStepConditions2; SkipAetheryteCondition obj193 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; + 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; obj193.InTerritory = list314; skipConditions11.AetheryteShortcutIf = obj193; obj192.SkipConditions = skipConditions11; reference226 = obj192; - num2++; - ref QuestStep reference227 = ref span312[num2]; + ref QuestStep reference227 = ref span184[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1054370u, new Vector3(-13.01593f, 0.0015269257f, 24.429688f), 1309); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list315; reference227 = questStep15; - num2++; - ref QuestStep reference228 = ref span312[num2]; + ref QuestStep reference228 = ref span184[2]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 1054369u, new Vector3(7.7973022f, 0.0028544795f, -15.701599f), 1309); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list316; reference228 = questStep16; - num2++; - span312[num2] = new QuestStep(EInteractionType.Interact, 1054371u, new Vector3(18.661804f, 2.0028546f, -93.0343f), 1309); + span184[3] = new QuestStep(EInteractionType.Interact, 1054371u, new Vector3(18.661804f, 2.0028546f, -93.0343f), 1309); obj191.Steps = list312; reference225 = obj191; - num++; - ref QuestSequence reference229 = ref span296[num]; + ref QuestSequence reference229 = ref span172[6]; QuestSequence obj194 = new QuestSequence { Sequence = 6 @@ -452762,9 +372182,8 @@ public static class AssemblyQuestLoader num2 = 2; List list317 = new List(num2); CollectionsMarshal.SetCount(list317, num2); - Span span317 = CollectionsMarshal.AsSpan(list317); - num3 = 0; - ref QuestStep reference230 = ref span317[num3]; + Span span188 = CollectionsMarshal.AsSpan(list317); + ref QuestStep reference230 = ref span188[0]; QuestStep obj195 = new QuestStep(EInteractionType.Interact, 1054364u, new Vector3(-53.97119f, 5.798081f, -100.93848f), 133) { TargetTerritoryId = (ushort)1309, @@ -452777,82 +372196,69 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions12 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - num4 = 1; - List list318 = new List(num4); - CollectionsMarshal.SetCount(list318, num4); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = 1309; + num3 = 1; + List list318 = new List(num3); + CollectionsMarshal.SetCount(list318, num3); + CollectionsMarshal.AsSpan(list318)[0] = 1309; skipStepConditions3.InTerritory = list318; skipConditions12.StepIf = skipStepConditions3; SkipAetheryteCondition obj196 = new SkipAetheryteCondition { InSameTerritory = true }; - 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; + 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; obj196.InTerritory = list319; skipConditions12.AetheryteShortcutIf = obj196; obj195.SkipConditions = skipConditions12; reference230 = obj195; - num3++; - ref QuestStep reference231 = ref span317[num3]; + ref QuestStep reference231 = ref span188[1]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1054374u, new Vector3(11.48999f, 0.0028544795f, -12.64978f), 1309); - num4 = 7; - List list320 = new List(num4); - CollectionsMarshal.SetCount(list320, num4); - Span span320 = CollectionsMarshal.AsSpan(list320); - index2 = 0; - span320[index2] = new DialogueChoice + num3 = 7; + List list320 = new List(num3); + CollectionsMarshal.SetCount(list320, num3); + Span span190 = CollectionsMarshal.AsSpan(list320); + span190[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q2_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A2_000_001") }; - index2++; - span320[index2] = new DialogueChoice + span190[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESXMX101_05231_SYSTEM_000_124") }; - index2++; - span320[index2] = new DialogueChoice + span190[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q3_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A3_000_003") }; - index2++; - span320[index2] = new DialogueChoice + span190[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q4_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A4_000_002") }; - index2++; - span320[index2] = new DialogueChoice + span190[4] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q5_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A5_000_003") }; - index2++; - span320[index2] = new DialogueChoice + span190[5] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q6_000_000"), Answer = new ExcelRef("TEXT_FESXMX101_05231_A6_000_001") }; - index2++; - span320[index2] = new DialogueChoice + span190[6] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESXMX101_05231_Q7_000_000"), @@ -452862,18 +372268,15 @@ public static class AssemblyQuestLoader reference231 = questStep17; obj194.Steps = list317; reference229 = obj194; - num++; - ref QuestSequence reference232 = ref span296[num]; + ref QuestSequence reference232 = ref span172[7]; QuestSequence obj197 = new QuestSequence { Sequence = byte.MaxValue }; - num3 = 1; - List list321 = new List(num3); - CollectionsMarshal.SetCount(list321, num3); - Span span321 = CollectionsMarshal.AsSpan(list321); - num2 = 0; - ref QuestStep reference233 = ref span321[num2]; + num2 = 1; + List list321 = new List(num2); + CollectionsMarshal.SetCount(list321, num2); + ref QuestStep reference233 = ref CollectionsMarshal.AsSpan(list321)[0]; QuestStep obj198 = new QuestStep(EInteractionType.CompleteQuest, 1054361u, new Vector3(-50.06488f, 6.4999995f, -89.58569f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -452888,14 +372291,12 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - 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; + num3 = 2; + List list322 = new List(num3); + CollectionsMarshal.SetCount(list322, num3); + Span span191 = CollectionsMarshal.AsSpan(list322); + span191[0] = 132; + span191[1] = 133; obj199.InTerritory = list322; skipConditions13.AetheryteShortcutIf = obj199; obj198.SkipConditions = skipConditions13; @@ -452909,16 +372310,13 @@ public static class AssemblyQuestLoader num = 1; List list323 = new List(num); CollectionsMarshal.SetCount(list323, num); - Span span323 = CollectionsMarshal.AsSpan(list323); - index = 0; - span323[index] = "liza"; + CollectionsMarshal.AsSpan(list323)[0] = "liza"; questRoot33.Author = list323; - index = 6; - List list324 = new List(index); - CollectionsMarshal.SetCount(list324, index); - Span span324 = CollectionsMarshal.AsSpan(list324); - num = 0; - ref QuestSequence reference234 = ref span324[num]; + num = 6; + List list324 = new List(num); + CollectionsMarshal.SetCount(list324, num); + Span span192 = CollectionsMarshal.AsSpan(list324); + ref QuestSequence reference234 = ref span192[0]; QuestSequence obj200 = new QuestSequence { Sequence = 0 @@ -452926,9 +372324,7 @@ public static class AssemblyQuestLoader num2 = 1; List list325 = new List(num2); CollectionsMarshal.SetCount(list325, num2); - Span span325 = CollectionsMarshal.AsSpan(list325); - num3 = 0; - span325[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051950u, new Vector3(-15.335327f, -5.9003114E-09f, 31.3573f), 1185) + CollectionsMarshal.AsSpan(list325)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051950u, new Vector3(-15.335327f, -5.9003114E-09f, 31.3573f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -452941,26 +372337,22 @@ public static class AssemblyQuestLoader }; obj200.Steps = list325; reference234 = obj200; - num++; - ref QuestSequence reference235 = ref span324[num]; + ref QuestSequence reference235 = ref span192[1]; QuestSequence obj201 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj201.Steps = list326; reference235 = obj201; - num++; - ref QuestSequence reference236 = ref span324[num]; + ref QuestSequence reference236 = ref span192[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -452968,30 +372360,24 @@ public static class AssemblyQuestLoader num2 = 1; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - num3 = 0; - span327[num3] = new QuestStep(EInteractionType.Interact, 2014454u, new Vector3(-525.8412f, -158.37347f, 541.46643f), 1189) + CollectionsMarshal.AsSpan(list327)[0] = new QuestStep(EInteractionType.Interact, 2014454u, new Vector3(-525.8412f, -158.37347f, 541.46643f), 1189) { Fly = true }; obj202.Steps = list327; reference236 = obj202; - num++; - ref QuestSequence reference237 = ref span324[num]; + ref QuestSequence reference237 = ref span192[3]; QuestSequence obj203 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj203.Steps = list328; reference237 = obj203; - num++; - ref QuestSequence reference238 = ref span324[num]; + ref QuestSequence reference238 = ref span192[4]; QuestSequence obj204 = new QuestSequence { Sequence = 4 @@ -452999,9 +372385,7 @@ public static class AssemblyQuestLoader num2 = 1; List list329 = new List(num2); CollectionsMarshal.SetCount(list329, num2); - Span span329 = CollectionsMarshal.AsSpan(list329); - num3 = 0; - span329[num3] = new QuestStep(EInteractionType.Duty, null, null, 1189) + CollectionsMarshal.AsSpan(list329)[0] = new QuestStep(EInteractionType.Duty, null, null, 1189) { DutyOptions = new DutyOptions { @@ -453010,18 +372394,15 @@ public static class AssemblyQuestLoader }; obj204.Steps = list329; reference238 = obj204; - num++; - ref QuestSequence reference239 = ref span324[num]; + ref QuestSequence reference239 = ref span192[5]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f, NextQuestId = new QuestId(5234) @@ -453035,16 +372416,13 @@ public static class AssemblyQuestLoader num = 1; List list331 = new List(num); CollectionsMarshal.SetCount(list331, num); - Span span331 = CollectionsMarshal.AsSpan(list331); - index = 0; - span331[index] = "liza"; + CollectionsMarshal.AsSpan(list331)[0] = "liza"; questRoot34.Author = list331; - index = 5; - List list332 = new List(index); - CollectionsMarshal.SetCount(list332, index); - Span span332 = CollectionsMarshal.AsSpan(list332); - num = 0; - ref QuestSequence reference240 = ref span332[num]; + num = 5; + List list332 = new List(num); + CollectionsMarshal.SetCount(list332, num); + Span span193 = CollectionsMarshal.AsSpan(list332); + ref QuestSequence reference240 = ref span193[0]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -453052,33 +372430,27 @@ public static class AssemblyQuestLoader num2 = 1; List list333 = new List(num2); CollectionsMarshal.SetCount(list333, num2); - Span span333 = CollectionsMarshal.AsSpan(list333); - num3 = 0; - span333[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) + CollectionsMarshal.AsSpan(list333)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051957u, new Vector3(-1.6327515f, 41.999977f, -0.7172241f), 1264) { StopDistance = 6f }; obj206.Steps = list333; reference240 = obj206; - num++; - ref QuestSequence reference241 = ref span332[num]; + ref QuestSequence reference241 = ref span193[1]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 6f }; obj207.Steps = list334; reference241 = obj207; - num++; - ref QuestSequence reference242 = ref span332[num]; + ref QuestSequence reference242 = ref span193[2]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -453086,96 +372458,66 @@ public static class AssemblyQuestLoader num2 = 4; List list335 = new List(num2); CollectionsMarshal.SetCount(list335, num2); - Span span335 = CollectionsMarshal.AsSpan(list335); - num3 = 0; - ref QuestStep reference243 = ref span335[num3]; + Span span194 = CollectionsMarshal.AsSpan(list335); + ref QuestStep reference243 = ref span194[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 1051959u, new Vector3(-15.854187f, 41.99999f, -4.6845703f), 1264); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list336; reference243 = questStep18; - num3++; - ref QuestStep reference244 = ref span335[num3]; + ref QuestStep reference244 = ref span194[1]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1051961u, new Vector3(-13.931519f, 41.999992f, -49.027283f), 1264); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list337; reference244 = questStep19; - num3++; - ref QuestStep reference245 = ref span335[num3]; + ref QuestStep reference245 = ref span194[2]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 1051960u, new Vector3(15.457336f, 43.499985f, -137.25494f), 1264); - 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); + 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); questStep20.CompletionQuestVariablesFlags = list338; reference245 = questStep20; - num3++; - ref QuestStep reference246 = ref span335[num3]; + ref QuestStep reference246 = ref span194[3]; QuestStep questStep21 = new QuestStep(EInteractionType.Interact, 2014455u, new Vector3(71.213745f, 43.411865f, -84.00098f), 1264); - 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); + 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); questStep21.CompletionQuestVariablesFlags = list339; - num4 = 1; - List list340 = new List(num4); - CollectionsMarshal.SetCount(list340, num4); - Span span340 = CollectionsMarshal.AsSpan(list340); - index2 = 0; - span340[index2] = new DialogueChoice + num3 = 1; + List list340 = new List(num3); + CollectionsMarshal.SetCount(list340, num3); + CollectionsMarshal.AsSpan(list340)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA102_05234_Q2_000_000"), @@ -453185,22 +372527,18 @@ public static class AssemblyQuestLoader reference246 = questStep21; obj208.Steps = list335; reference242 = obj208; - num++; - ref QuestSequence reference247 = ref span332[num]; + ref QuestSequence reference247 = ref span193[3]; QuestSequence obj209 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj209.Steps = list341; reference247 = obj209; - num++; - ref QuestSequence reference248 = ref span332[num]; + ref QuestSequence reference248 = ref span193[4]; QuestSequence obj210 = new QuestSequence { Sequence = byte.MaxValue @@ -453208,9 +372546,7 @@ public static class AssemblyQuestLoader num2 = 1; List list342 = new List(num2); CollectionsMarshal.SetCount(list342, num2); - Span span342 = CollectionsMarshal.AsSpan(list342); - num3 = 0; - span342[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051965u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) + CollectionsMarshal.AsSpan(list342)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051965u, new Vector3(1.8463135f, 41.99997f, -2.456726f), 1264) { NextQuestId = new QuestId(5235) }; @@ -453223,30 +372559,24 @@ public static class AssemblyQuestLoader num = 1; List list343 = new List(num); CollectionsMarshal.SetCount(list343, num); - Span span343 = CollectionsMarshal.AsSpan(list343); - index = 0; - span343[index] = "liza"; + CollectionsMarshal.AsSpan(list343)[0] = "liza"; questRoot35.Author = list343; - index = 6; - List list344 = new List(index); - CollectionsMarshal.SetCount(list344, index); - Span span344 = CollectionsMarshal.AsSpan(list344); - num = 0; - ref QuestSequence reference249 = ref span344[num]; + num = 6; + List list344 = new List(num); + CollectionsMarshal.SetCount(list344, num); + Span span199 = CollectionsMarshal.AsSpan(list344); + ref QuestSequence reference249 = ref span199[0]; QuestSequence obj211 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj211.Steps = list345; reference249 = obj211; - num++; - ref QuestSequence reference250 = ref span344[num]; + ref QuestSequence reference250 = ref span199[1]; QuestSequence obj212 = new QuestSequence { Sequence = 1 @@ -453254,27 +372584,22 @@ public static class AssemblyQuestLoader num2 = 1; List list346 = new List(num2); CollectionsMarshal.SetCount(list346, num2); - Span span346 = CollectionsMarshal.AsSpan(list346); - num3 = 0; - span346[num3] = new QuestStep(EInteractionType.Interact, 1051967u, new Vector3(564.72107f, -131.41925f, 609.21643f), 1189) + CollectionsMarshal.AsSpan(list346)[0] = new QuestStep(EInteractionType.Interact, 1051967u, new Vector3(564.72107f, -131.41925f, 609.21643f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj212.Steps = list346; reference250 = obj212; - num++; - ref QuestSequence reference251 = ref span344[num]; + ref QuestSequence reference251 = ref span199[2]; QuestSequence obj213 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -453285,8 +372610,7 @@ public static class AssemblyQuestLoader }; obj213.Steps = list347; reference251 = obj213; - num++; - ref QuestSequence reference252 = ref span344[num]; + ref QuestSequence reference252 = ref span199[3]; QuestSequence obj214 = new QuestSequence { Sequence = 3 @@ -453294,26 +372618,21 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - num3 = 0; - span348[num3] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(-414.69446f, 3f, -55.10034f), 1185) + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.Interact, 1051971u, new Vector3(-414.69446f, 3f, -55.10034f), 1185) { StopDistance = 5f }; obj214.Steps = list348; reference252 = obj214; - num++; - ref QuestSequence reference253 = ref span344[num]; + ref QuestSequence reference253 = ref span199[4]; QuestSequence obj215 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -453324,8 +372643,7 @@ public static class AssemblyQuestLoader }; obj215.Steps = list349; reference253 = obj215; - num++; - ref QuestSequence reference254 = ref span344[num]; + ref QuestSequence reference254 = ref span199[5]; QuestSequence obj216 = new QuestSequence { Sequence = byte.MaxValue @@ -453333,9 +372651,7 @@ public static class AssemblyQuestLoader num2 = 1; List list350 = new List(num2); CollectionsMarshal.SetCount(list350, num2); - Span span350 = CollectionsMarshal.AsSpan(list350); - num3 = 0; - span350[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051972u, new Vector3(123.79639f, -14f, 27.115234f), 1185) + CollectionsMarshal.AsSpan(list350)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051972u, new Vector3(123.79639f, -14f, 27.115234f), 1185) { StopDistance = 5f, NextQuestId = new QuestId(5236) @@ -453349,33 +372665,27 @@ public static class AssemblyQuestLoader num = 1; List list351 = new List(num); CollectionsMarshal.SetCount(list351, num); - Span span351 = CollectionsMarshal.AsSpan(list351); - index = 0; - span351[index] = "liza"; + CollectionsMarshal.AsSpan(list351)[0] = "liza"; questRoot36.Author = list351; - index = 7; - List list352 = new List(index); - CollectionsMarshal.SetCount(list352, index); - Span span352 = CollectionsMarshal.AsSpan(list352); - num = 0; - ref QuestSequence reference255 = ref span352[num]; + num = 7; + List list352 = new List(num); + CollectionsMarshal.SetCount(list352, num); + Span span200 = CollectionsMarshal.AsSpan(list352); + ref QuestSequence reference255 = ref span200[0]; QuestSequence obj217 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj217.Steps = list353; reference255 = obj217; - num++; - ref QuestSequence reference256 = ref span352[num]; + ref QuestSequence reference256 = ref span200[1]; QuestSequence obj218 = new QuestSequence { Sequence = 1 @@ -453383,89 +372693,68 @@ public static class AssemblyQuestLoader num2 = 1; List list354 = new List(num2); CollectionsMarshal.SetCount(list354, num2); - Span span354 = CollectionsMarshal.AsSpan(list354); - num3 = 0; - span354[num3] = new QuestStep(EInteractionType.Interact, 1052148u, new Vector3(-527.245f, -152.47649f, 663.6301f), 1189) + CollectionsMarshal.AsSpan(list354)[0] = new QuestStep(EInteractionType.Interact, 1052148u, new Vector3(-527.245f, -152.47649f, 663.6301f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; obj218.Steps = list354; reference256 = obj218; - num++; - ref QuestSequence reference257 = ref span352[num]; + ref QuestSequence reference257 = ref span200[2]; QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list355 = new List(num3); - CollectionsMarshal.SetCount(list355, num3); - Span span355 = CollectionsMarshal.AsSpan(list355); - num2 = 0; - ref QuestStep reference258 = ref span355[num2]; + num2 = 3; + List list355 = new List(num2); + CollectionsMarshal.SetCount(list355, num2); + Span span201 = CollectionsMarshal.AsSpan(list355); + ref QuestStep reference258 = ref span201[0]; 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(); - index2 = 1; - List list356 = new List(index2); - CollectionsMarshal.SetCount(list356, index2); - Span span356 = CollectionsMarshal.AsSpan(list356); - num4 = 0; - span356[num4] = 1265; + num3 = 1; + List list356 = new List(num3); + CollectionsMarshal.SetCount(list356, num3); + CollectionsMarshal.AsSpan(list356)[0] = 1265; skipStepConditions4.InTerritory = list356; skipConditions14.StepIf = skipStepConditions4; obj220.SkipConditions = skipConditions14; reference258 = obj220; - num2++; - ref QuestStep reference259 = ref span355[num2]; + ref QuestStep reference259 = ref span201[1]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1052131u, new Vector3(-23.849854f, 43f, -25.192688f), 1265); - 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); + 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); questStep22.CompletionQuestVariablesFlags = list357; reference259 = questStep22; - num2++; - ref QuestStep reference260 = ref span355[num2]; + ref QuestStep reference260 = ref span201[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1052132u, new Vector3(-1.1139526f, 41.999992f, -110.15497f), 1265); - 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); + 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); questStep23.CompletionQuestVariablesFlags = list358; reference260 = questStep23; obj219.Steps = list355; reference257 = obj219; - num++; - ref QuestSequence reference261 = ref span352[num]; + ref QuestSequence reference261 = ref span200[3]; QuestSequence obj221 = new QuestSequence { Sequence = 3 @@ -453473,77 +372762,64 @@ public static class AssemblyQuestLoader num2 = 1; List list359 = new List(num2); CollectionsMarshal.SetCount(list359, num2); - Span span359 = CollectionsMarshal.AsSpan(list359); - num3 = 0; - span359[num3] = new QuestStep(EInteractionType.Interact, 1052139u, new Vector3(11.459534f, 41.99999f, -50.644714f), 1265); + CollectionsMarshal.AsSpan(list359)[0] = new QuestStep(EInteractionType.Interact, 1052139u, new Vector3(11.459534f, 41.99999f, -50.644714f), 1265); obj221.Steps = list359; reference261 = obj221; - num++; - ref QuestSequence reference262 = ref span352[num]; + ref QuestSequence reference262 = ref span200[4]; QuestSequence obj222 = new QuestSequence { Sequence = 4 }; - num3 = 1; - List list360 = new List(num3); - CollectionsMarshal.SetCount(list360, num3); - Span span360 = CollectionsMarshal.AsSpan(list360); - num2 = 0; - ref QuestStep reference263 = ref span360[num2]; + num2 = 1; + List list360 = new List(num2); + CollectionsMarshal.SetCount(list360, num2); + ref QuestStep reference263 = ref CollectionsMarshal.AsSpan(list360)[0]; QuestStep obj223 = new QuestStep(EInteractionType.Interact, 1051948u, new Vector3(11.36792f, 41.99999f, -50.55316f), 1265) { StopDistance = 5f }; - num4 = 5; - List list361 = new List(num4); - CollectionsMarshal.SetCount(list361, num4); - Span span361 = CollectionsMarshal.AsSpan(list361); - index2 = 0; - span361[index2] = new DialogueChoice + num3 = 5; + List list361 = new List(num3); + CollectionsMarshal.SetCount(list361, num3); + Span span204 = CollectionsMarshal.AsSpan(list361); + span204[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q1_000_000") }; - index2++; - span361[index2] = new DialogueChoice + span204[1] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q2_000_000") }; - index2++; - span361[index2] = new DialogueChoice + span204[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q3_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A3_000_002") }; - index2++; - span361[index2] = new DialogueChoice + span204[3] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA104_05236_Q5_000_000"), Answer = new ExcelRef("TEXT_KINGEA104_05236_A5_000_002") }; - index2++; - span361[index2] = new DialogueChoice + span204[4] = 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; - index2 = 1; - List list362 = new List(index2); - CollectionsMarshal.SetCount(list362, index2); - Span span362 = CollectionsMarshal.AsSpan(list362); - num4 = 0; - span362[num4] = 0u; + num3 = 1; + List list362 = new List(num3); + CollectionsMarshal.SetCount(list362, num3); + CollectionsMarshal.AsSpan(list362)[0] = 0u; obj223.PointMenuChoices = list362; reference263 = obj223; obj222.Steps = list360; reference262 = obj222; - num++; - ref QuestSequence reference264 = ref span352[num]; + ref QuestSequence reference264 = ref span200[5]; QuestSequence obj224 = new QuestSequence { Sequence = 5 @@ -453551,23 +372827,18 @@ public static class AssemblyQuestLoader num2 = 1; List list363 = new List(num2); CollectionsMarshal.SetCount(list363, num2); - Span span363 = CollectionsMarshal.AsSpan(list363); - num3 = 0; - span363[num3] = new QuestStep(EInteractionType.Interact, 1052163u, new Vector3(5.9662476f, 41.999992f, -47.226746f), 1265); + CollectionsMarshal.AsSpan(list363)[0] = new QuestStep(EInteractionType.Interact, 1052163u, new Vector3(5.9662476f, 41.999992f, -47.226746f), 1265); obj224.Steps = list363; reference264 = obj224; - num++; - ref QuestSequence reference265 = ref span352[num]; + ref QuestSequence reference265 = ref span200[6]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -453585,18 +372856,15 @@ public static class AssemblyQuestLoader num = 1; List list365 = new List(num); CollectionsMarshal.SetCount(list365, num); - Span span365 = CollectionsMarshal.AsSpan(list365); - index = 0; - span365[index] = "liza"; + CollectionsMarshal.AsSpan(list365)[0] = "liza"; questRoot37.Author = list365; questRoot37.IsSeasonalQuest = true; questRoot37.SeasonalQuestExpiry = new DateTime(2025, 3, 17, 0, 0, 0, DateTimeKind.Utc); - index = 4; - List list366 = new List(index); - CollectionsMarshal.SetCount(list366, index); - Span span366 = CollectionsMarshal.AsSpan(list366); - num = 0; - ref QuestSequence reference266 = ref span366[num]; + num = 4; + List list366 = new List(num); + CollectionsMarshal.SetCount(list366, num); + Span span205 = CollectionsMarshal.AsSpan(list366); + ref QuestSequence reference266 = ref span205[0]; QuestSequence obj226 = new QuestSequence { Sequence = 0 @@ -453604,9 +372872,7 @@ public static class AssemblyQuestLoader num2 = 1; List list367 = new List(num2); CollectionsMarshal.SetCount(list367, num2); - Span span367 = CollectionsMarshal.AsSpan(list367); - num3 = 0; - span367[num3] = new QuestStep(EInteractionType.AcceptQuest, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) + CollectionsMarshal.AsSpan(list367)[0] = new QuestStep(EInteractionType.AcceptQuest, 1051884u, new Vector3(-35.111023f, 5.000001f, -130.35785f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -453619,18 +372885,15 @@ public static class AssemblyQuestLoader }; obj226.Steps = list367; reference266 = obj226; - num++; - ref QuestSequence reference267 = ref span366[num]; + ref QuestSequence reference267 = ref span205[1]; QuestSequence obj227 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, AethernetShortcut = new AethernetShortcut @@ -453648,8 +372911,7 @@ public static class AssemblyQuestLoader }; obj227.Steps = list368; reference267 = obj227; - num++; - ref QuestSequence reference268 = ref span366[num]; + ref QuestSequence reference268 = ref span205[2]; QuestSequence obj228 = new QuestSequence { Sequence = 2 @@ -453657,9 +372919,8 @@ public static class AssemblyQuestLoader num2 = 3; List list369 = new List(num2); CollectionsMarshal.SetCount(list369, num2); - Span span369 = CollectionsMarshal.AsSpan(list369); - num3 = 0; - ref QuestStep reference269 = ref span369[num3]; + Span span206 = CollectionsMarshal.AsSpan(list369); + ref QuestStep reference269 = ref span206[0]; QuestStep obj229 = new QuestStep(EInteractionType.Interact, 1051892u, new Vector3(130.05261f, 7.992012f, 75.94409f), 131) { AethernetShortcut = new AethernetShortcut @@ -453668,26 +372929,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahWeaver } }; - 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); + 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); obj229.CompletionQuestVariablesFlags = list370; reference269 = obj229; - num3++; - ref QuestStep reference270 = ref span369[num3]; + ref QuestStep reference270 = ref span206[1]; QuestStep obj230 = new QuestStep(EInteractionType.Interact, 1051891u, new Vector3(148.39392f, 4f, -12.222534f), 131) { AethernetShortcut = new AethernetShortcut @@ -453696,66 +372950,48 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.UldahSapphireAvenue } }; - 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); + 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); obj230.CompletionQuestVariablesFlags = list371; reference270 = obj230; - num3++; - ref QuestStep reference271 = ref span369[num3]; + ref QuestStep reference271 = ref span206[2]; QuestStep questStep24 = new QuestStep(EInteractionType.Interact, 1051893u, new Vector3(107.59131f, 4f, -111.436646f), 131); - 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); + 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); questStep24.CompletionQuestVariablesFlags = list372; reference271 = questStep24; obj228.Steps = list369; reference268 = obj228; - num++; - ref QuestSequence reference272 = ref span366[num]; + ref QuestSequence reference272 = ref span205[3]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue }; - num3 = 1; - List list373 = new List(num3); - CollectionsMarshal.SetCount(list373, num3); - Span span373 = CollectionsMarshal.AsSpan(list373); - num2 = 0; - ref QuestStep reference273 = ref span373[num2]; + 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); - index2 = 1; - List list374 = new List(index2); - CollectionsMarshal.SetCount(list374, index2); - Span span374 = CollectionsMarshal.AsSpan(list374); - num4 = 0; - span374[num4] = new DialogueChoice + num3 = 1; + List list374 = new List(num3); + CollectionsMarshal.SetCount(list374, num3); + CollectionsMarshal.AsSpan(list374)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX001_05237_Q2_000_000"), @@ -453773,18 +373009,15 @@ public static class AssemblyQuestLoader num = 1; List list375 = new List(num); CollectionsMarshal.SetCount(list375, num); - Span span375 = CollectionsMarshal.AsSpan(list375); - index = 0; - span375[index] = "liza"; + CollectionsMarshal.AsSpan(list375)[0] = "liza"; questRoot38.Author = list375; questRoot38.IsSeasonalQuest = true; questRoot38.SeasonalQuestExpiry = new DateTime(2025, 3, 11, 0, 0, 0, DateTimeKind.Utc); - index = 5; - List list376 = new List(index); - CollectionsMarshal.SetCount(list376, index); - Span span376 = CollectionsMarshal.AsSpan(list376); - num = 0; - ref QuestSequence reference274 = ref span376[num]; + num = 5; + List list376 = new List(num); + CollectionsMarshal.SetCount(list376, num); + Span span210 = CollectionsMarshal.AsSpan(list376); + ref QuestSequence reference274 = ref span210[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 @@ -453792,9 +373025,7 @@ public static class AssemblyQuestLoader num2 = 1; List list377 = new List(num2); CollectionsMarshal.SetCount(list377, num2); - Span span377 = CollectionsMarshal.AsSpan(list377); - num3 = 0; - ref QuestStep reference275 = ref span377[num3]; + ref QuestStep reference275 = ref CollectionsMarshal.AsSpan(list377)[0]; QuestStep obj233 = new QuestStep(EInteractionType.AcceptQuest, 1051894u, new Vector3(0.869751f, 14.000016f, -21.591614f), 131) { AetheryteShortcut = EAetheryteLocation.Uldah, @@ -453809,94 +373040,79 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list378 = new List(num4); - CollectionsMarshal.SetCount(list378, num4); - Span span378 = CollectionsMarshal.AsSpan(list378); - index2 = 0; - span378[index2] = 131; + num3 = 1; + List list378 = new List(num3); + CollectionsMarshal.SetCount(list378, num3); + CollectionsMarshal.AsSpan(list378)[0] = 131; obj234.InTerritory = list378; skipConditions15.AetheryteShortcutIf = obj234; obj233.SkipConditions = skipConditions15; reference275 = obj233; obj232.Steps = list377; reference274 = obj232; - num++; - ref QuestSequence reference276 = ref span376[num]; + ref QuestSequence reference276 = ref span210[1]; QuestSequence obj235 = new QuestSequence { Sequence = 1 }; - num3 = 2; - List list379 = new List(num3); - CollectionsMarshal.SetCount(list379, num3); - Span span379 = CollectionsMarshal.AsSpan(list379); - num2 = 0; - ref QuestStep reference277 = ref span379[num2]; + num2 = 2; + List list379 = new List(num2); + CollectionsMarshal.SetCount(list379, num2); + Span span211 = CollectionsMarshal.AsSpan(list379); + ref QuestStep reference277 = ref span211[0]; QuestStep questStep26 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-9.184601f, 9.999999f, -35.359993f), 131); SkipConditions skipConditions16 = new SkipConditions(); SkipStepConditions skipStepConditions5 = new SkipStepConditions(); - index2 = 1; - List list380 = new List(index2); - CollectionsMarshal.SetCount(list380, index2); - Span span380 = CollectionsMarshal.AsSpan(list380); - num4 = 0; - span380[num4] = 130; + num3 = 1; + List list380 = new List(num3); + CollectionsMarshal.SetCount(list380, num3); + CollectionsMarshal.AsSpan(list380)[0] = 130; skipStepConditions5.InTerritory = list380; skipConditions16.StepIf = skipStepConditions5; questStep26.SkipConditions = skipConditions16; reference277 = questStep26; - num2++; - ref QuestStep reference278 = ref span379[num2]; + ref QuestStep reference278 = ref span211[1]; QuestStep questStep27 = new QuestStep(EInteractionType.Interact, 1051895u, new Vector3(-25.0401f, 4.9999785f, -131.45648f), 130); - num4 = 4; - List list381 = new List(num4); - CollectionsMarshal.SetCount(list381, num4); - Span span381 = CollectionsMarshal.AsSpan(list381); - index2 = 0; - span381[index2] = new DialogueChoice + num3 = 4; + List list381 = new List(num3); + CollectionsMarshal.SetCount(list381, num3); + Span span212 = CollectionsMarshal.AsSpan(list381); + span212[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q1_000_000") }; - index2++; - span381[index2] = new DialogueChoice + span212[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q2_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A2_000_001") }; - index2++; - span381[index2] = new DialogueChoice + span212[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESPDX002_05238_Q3_000_000"), Answer = new ExcelRef("TEXT_FESPDX002_05238_A3_000_001") }; - index2++; - span381[index2] = new DialogueChoice + span212[3] = 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; - 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; + 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; questStep27.PointMenuChoices = list382; reference278 = questStep27; obj235.Steps = list379; reference276 = obj235; - num++; - ref QuestSequence reference279 = ref span376[num]; + ref QuestSequence reference279 = ref span210[2]; QuestSequence obj236 = new QuestSequence { Sequence = 2 @@ -453904,9 +373120,7 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span383 = CollectionsMarshal.AsSpan(list383); - num3 = 0; - span383[num3] = new QuestStep(EInteractionType.Interact, 1051899u, new Vector3(-53.421875f, 18f, 60.16626f), 131) + CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.Interact, 1051899u, new Vector3(-53.421875f, 18f, 60.16626f), 131) { AethernetShortcut = new AethernetShortcut { @@ -453916,18 +373130,15 @@ public static class AssemblyQuestLoader }; obj236.Steps = list383; reference279 = obj236; - num++; - ref QuestSequence reference280 = ref span376[num]; + ref QuestSequence reference280 = ref span210[3]; QuestSequence obj237 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -453937,8 +373148,7 @@ public static class AssemblyQuestLoader }; obj237.Steps = list384; reference280 = obj237; - num++; - ref QuestSequence reference281 = ref span376[num]; + ref QuestSequence reference281 = ref span210[4]; QuestSequence obj238 = new QuestSequence { Sequence = byte.MaxValue @@ -453946,9 +373156,7 @@ public static class AssemblyQuestLoader num2 = 1; List list385 = new List(num2); CollectionsMarshal.SetCount(list385, num2); - Span span385 = CollectionsMarshal.AsSpan(list385); - num3 = 0; - span385[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051901u, new Vector3(-33.859802f, 5.0000005f, -130.6325f), 130); + CollectionsMarshal.AsSpan(list385)[0] = new QuestStep(EInteractionType.CompleteQuest, 1051901u, new Vector3(-33.859802f, 5.0000005f, -130.6325f), 130); obj238.Steps = list385; reference281 = obj238; questRoot38.QuestSequence = list376; @@ -453958,26 +373166,21 @@ public static class AssemblyQuestLoader num = 1; List list386 = new List(num); CollectionsMarshal.SetCount(list386, num); - Span span386 = CollectionsMarshal.AsSpan(list386); - index = 0; - span386[index] = "liza"; + CollectionsMarshal.AsSpan(list386)[0] = "liza"; questRoot39.Author = list386; - index = 4; - List list387 = new List(index); - CollectionsMarshal.SetCount(list387, index); - Span span387 = CollectionsMarshal.AsSpan(list387); - num = 0; - ref QuestSequence reference282 = ref span387[num]; + num = 4; + List list387 = new List(num); + CollectionsMarshal.SetCount(list387, num); + Span span214 = CollectionsMarshal.AsSpan(list387); + ref QuestSequence reference282 = ref span214[0]; QuestSequence obj239 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -453990,8 +373193,7 @@ public static class AssemblyQuestLoader }; obj239.Steps = list388; reference282 = obj239; - num++; - ref QuestSequence reference283 = ref span387[num]; + ref QuestSequence reference283 = ref span214[1]; QuestSequence obj240 = new QuestSequence { Sequence = 1 @@ -453999,39 +373201,33 @@ public static class AssemblyQuestLoader num2 = 1; List list389 = new List(num2); CollectionsMarshal.SetCount(list389, num2); - Span span389 = CollectionsMarshal.AsSpan(list389); - num3 = 0; - span389[num3] = new QuestStep(EInteractionType.Interact, 1051496u, new Vector3(-84.42822f, 15.678356f, -242.17596f), 1190) + CollectionsMarshal.AsSpan(list389)[0] = new QuestStep(EInteractionType.Interact, 1051496u, new Vector3(-84.42822f, 15.678356f, -242.17596f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; obj240.Steps = list389; reference283 = obj240; - num++; - ref QuestSequence reference284 = ref span387[num]; + ref QuestSequence reference284 = ref span214[2]; QuestSequence obj241 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - num2++; - span390[num2] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) + span215[1] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) { StopDistance = 5f }; obj241.Steps = list390; reference284 = obj241; - num++; - ref QuestSequence reference285 = ref span387[num]; + ref QuestSequence reference285 = ref span214[3]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -454039,9 +373235,7 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - Span span391 = CollectionsMarshal.AsSpan(list391); - num3 = 0; - span391[num3] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190); + CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190); obj242.Steps = list391; reference285 = obj242; questRoot39.QuestSequence = list387; @@ -454051,26 +373245,21 @@ public static class AssemblyQuestLoader num = 1; List list392 = new List(num); CollectionsMarshal.SetCount(list392, num); - Span span392 = CollectionsMarshal.AsSpan(list392); - index = 0; - span392[index] = "liza"; + CollectionsMarshal.AsSpan(list392)[0] = "liza"; questRoot40.Author = list392; - index = 4; - List list393 = new List(index); - CollectionsMarshal.SetCount(list393, index); - Span span393 = CollectionsMarshal.AsSpan(list393); - num = 0; - ref QuestSequence reference286 = ref span393[num]; + num = 4; + List list393 = new List(num); + CollectionsMarshal.SetCount(list393, num); + Span span216 = CollectionsMarshal.AsSpan(list393); + ref QuestSequence reference286 = ref span216[0]; QuestSequence obj243 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -454083,8 +373272,7 @@ public static class AssemblyQuestLoader }; obj243.Steps = list394; reference286 = obj243; - num++; - ref QuestSequence reference287 = ref span393[num]; + ref QuestSequence reference287 = ref span216[1]; QuestSequence obj244 = new QuestSequence { Sequence = 1 @@ -454092,33 +373280,27 @@ public static class AssemblyQuestLoader num2 = 1; List list395 = new List(num2); CollectionsMarshal.SetCount(list395, num2); - Span span395 = CollectionsMarshal.AsSpan(list395); - num3 = 0; - span395[num3] = new QuestStep(EInteractionType.Interact, 2014456u, new Vector3(-128.64886f, 16.311829f, -290.69965f), 1190) + CollectionsMarshal.AsSpan(list395)[0] = new QuestStep(EInteractionType.Interact, 2014456u, new Vector3(-128.64886f, 16.311829f, -290.69965f), 1190) { Fly = true }; obj244.Steps = list395; reference287 = obj244; - num++; - ref QuestSequence reference288 = ref span393[num]; + ref QuestSequence reference288 = ref span216[2]; QuestSequence obj245 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj245.Steps = list396; reference288 = obj245; - num++; - ref QuestSequence reference289 = ref span393[num]; + ref QuestSequence reference289 = ref span216[3]; QuestSequence obj246 = new QuestSequence { Sequence = byte.MaxValue @@ -454126,9 +373308,7 @@ public static class AssemblyQuestLoader num2 = 1; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span397 = CollectionsMarshal.AsSpan(list397); - num3 = 0; - span397[num3] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) + CollectionsMarshal.AsSpan(list397)[0] = new QuestStep(EInteractionType.CompleteQuest, 1048605u, new Vector3(-358.38867f, 19.728025f, -105.02789f), 1190) { Fly = true, NextQuestId = new QuestId(5241) @@ -454142,32 +373322,26 @@ public static class AssemblyQuestLoader num = 1; List list398 = new List(num); CollectionsMarshal.SetCount(list398, num); - Span span398 = CollectionsMarshal.AsSpan(list398); - index = 0; - span398[index] = "liza"; + CollectionsMarshal.AsSpan(list398)[0] = "liza"; questRoot41.Author = list398; - index = 2; - List list399 = new List(index); - CollectionsMarshal.SetCount(list399, index); - Span span399 = CollectionsMarshal.AsSpan(list399); - num = 0; - ref QuestSequence reference290 = ref span399[num]; + num = 2; + List list399 = new List(num); + CollectionsMarshal.SetCount(list399, num); + Span span217 = CollectionsMarshal.AsSpan(list399); + ref QuestSequence reference290 = ref span217[0]; QuestSequence obj247 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj247.Steps = list400; reference290 = obj247; - num++; - ref QuestSequence reference291 = ref span399[num]; + ref QuestSequence reference291 = ref span217[1]; QuestSequence obj248 = new QuestSequence { Sequence = byte.MaxValue @@ -454175,19 +373349,16 @@ public static class AssemblyQuestLoader num2 = 3; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - Span span401 = CollectionsMarshal.AsSpan(list401); - num3 = 0; - span401[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.53677f, 19.32763f, -99.326805f), 1190) + Span span219 = CollectionsMarshal.AsSpan(list401); + span219[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-354.53677f, 19.32763f, -99.326805f), 1190) { Mount = true }; - num3++; - span401[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-91.25145f, 17.80576f, -267.2748f), 1190) + span219[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-91.25145f, 17.80576f, -267.2748f), 1190) { Fly = true }; - num3++; - span401[num3] = new QuestStep(EInteractionType.CompleteQuest, 1051497u, new Vector3(-91.5694f, 17.7503f, -268.54352f), 1190); + span219[2] = new QuestStep(EInteractionType.CompleteQuest, 1051497u, new Vector3(-91.5694f, 17.7503f, -268.54352f), 1190); obj248.Steps = list401; reference291 = obj248; questRoot41.QuestSequence = list399; @@ -454197,28 +373368,23 @@ public static class AssemblyQuestLoader num = 1; List list402 = new List(num); CollectionsMarshal.SetCount(list402, num); - Span span402 = CollectionsMarshal.AsSpan(list402); - index = 0; - span402[index] = "liza"; + CollectionsMarshal.AsSpan(list402)[0] = "liza"; questRoot42.Author = list402; questRoot42.IsSeasonalQuest = true; questRoot42.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); - index = 6; - List list403 = new List(index); - CollectionsMarshal.SetCount(list403, index); - Span span403 = CollectionsMarshal.AsSpan(list403); - num = 0; - ref QuestSequence reference292 = ref span403[num]; + num = 6; + List list403 = new List(num); + CollectionsMarshal.SetCount(list403, num); + Span span220 = CollectionsMarshal.AsSpan(list403); + ref QuestSequence reference292 = ref span220[0]; QuestSequence obj249 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list404 = new List(num2); + CollectionsMarshal.SetCount(list404, num2); + ref QuestStep reference293 = ref CollectionsMarshal.AsSpan(list404)[0]; QuestStep obj250 = new QuestStep(EInteractionType.AcceptQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -454233,20 +373399,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - num4 = 1; - List list405 = new List(num4); - CollectionsMarshal.SetCount(list405, num4); - Span span405 = CollectionsMarshal.AsSpan(list405); - index2 = 0; - span405[index2] = 133; + num3 = 1; + List list405 = new List(num3); + CollectionsMarshal.SetCount(list405, num3); + CollectionsMarshal.AsSpan(list405)[0] = 133; obj251.InTerritory = list405; skipConditions17.AetheryteShortcutIf = obj251; obj250.SkipConditions = skipConditions17; reference293 = obj250; obj249.Steps = list404; reference292 = obj249; - num++; - ref QuestSequence reference294 = ref span403[num]; + ref QuestSequence reference294 = ref span220[1]; QuestSequence obj252 = new QuestSequence { Sequence = 1 @@ -454254,9 +373417,7 @@ public static class AssemblyQuestLoader num2 = 1; List list406 = new List(num2); CollectionsMarshal.SetCount(list406, num2); - Span span406 = CollectionsMarshal.AsSpan(list406); - num3 = 0; - span406[num3] = new QuestStep(EInteractionType.Interact, 1052065u, new Vector3(172.86938f, 15.699935f, -113.11517f), 133) + CollectionsMarshal.AsSpan(list406)[0] = new QuestStep(EInteractionType.Interact, 1052065u, new Vector3(172.86938f, 15.699935f, -113.11517f), 133) { AethernetShortcut = new AethernetShortcut { @@ -454266,22 +373427,18 @@ public static class AssemblyQuestLoader }; obj252.Steps = list406; reference294 = obj252; - num++; - ref QuestSequence reference295 = ref span403[num]; + ref QuestSequence reference295 = ref span220[2]; QuestSequence obj253 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj253.Steps = list407; reference295 = obj253; - num++; - ref QuestSequence reference296 = ref span403[num]; + ref QuestSequence reference296 = ref span220[3]; QuestSequence obj254 = new QuestSequence { Sequence = 3 @@ -454289,42 +373446,34 @@ public static class AssemblyQuestLoader num2 = 2; List list408 = new List(num2); CollectionsMarshal.SetCount(list408, num2); - Span span408 = CollectionsMarshal.AsSpan(list408); - num3 = 0; - ref QuestStep reference297 = ref span408[num3]; + Span span221 = CollectionsMarshal.AsSpan(list408); + ref QuestStep reference297 = ref span221[0]; QuestStep questStep28 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.474687f, 8.372438f, -86.945724f), 133); SkipConditions skipConditions18 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - index2 = 1; - List list409 = new List(index2); - CollectionsMarshal.SetCount(list409, index2); - Span span409 = CollectionsMarshal.AsSpan(list409); - num4 = 0; - span409[num4] = 132; + num3 = 1; + List list409 = new List(num3); + CollectionsMarshal.SetCount(list409, num3); + CollectionsMarshal.AsSpan(list409)[0] = 132; skipStepConditions6.InTerritory = list409; skipConditions18.StepIf = skipStepConditions6; questStep28.SkipConditions = skipConditions18; reference297 = questStep28; - num3++; - span408[num3] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); + span221[1] = new QuestStep(EInteractionType.Interact, 1000153u, new Vector3(-44.87683f, -1.2500024f, 56.839844f), 132); obj254.Steps = list408; reference296 = obj254; - num++; - ref QuestSequence reference298 = ref span403[num]; + ref QuestSequence reference298 = ref span220[4]; QuestSequence obj255 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj255.Steps = list410; reference298 = obj255; - num++; - ref QuestSequence reference299 = ref span403[num]; + ref QuestSequence reference299 = ref span220[5]; QuestSequence obj256 = new QuestSequence { Sequence = byte.MaxValue @@ -454332,24 +373481,20 @@ public static class AssemblyQuestLoader num2 = 2; List list411 = new List(num2); CollectionsMarshal.SetCount(list411, num2); - Span span411 = CollectionsMarshal.AsSpan(list411); - num3 = 0; - ref QuestStep reference300 = ref span411[num3]; + Span span222 = CollectionsMarshal.AsSpan(list411); + ref QuestStep reference300 = ref span222[0]; QuestStep questStep29 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(12.567871f, 1.2197373f, -15.778544f), 132); SkipConditions skipConditions19 = new SkipConditions(); SkipStepConditions skipStepConditions7 = new SkipStepConditions(); - num4 = 1; - List list412 = new List(num4); - CollectionsMarshal.SetCount(list412, num4); - Span span412 = CollectionsMarshal.AsSpan(list412); - index2 = 0; - span412[index2] = 133; + num3 = 1; + List list412 = new List(num3); + CollectionsMarshal.SetCount(list412, num3); + CollectionsMarshal.AsSpan(list412)[0] = 133; skipStepConditions7.InTerritory = list412; skipConditions19.StepIf = skipStepConditions7; questStep29.SkipConditions = skipConditions19; reference300 = questStep29; - num3++; - span411[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) + span222[1] = new QuestStep(EInteractionType.CompleteQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { NextQuestId = new QuestId(5243) }; @@ -454362,28 +373507,23 @@ public static class AssemblyQuestLoader num = 1; List list413 = new List(num); CollectionsMarshal.SetCount(list413, num); - Span span413 = CollectionsMarshal.AsSpan(list413); - index = 0; - span413[index] = "liza"; + CollectionsMarshal.AsSpan(list413)[0] = "liza"; questRoot43.Author = list413; questRoot43.IsSeasonalQuest = true; questRoot43.SeasonalQuestExpiry = new DateTime(2025, 4, 24, 0, 0, 0, DateTimeKind.Utc); - index = 5; - List list414 = new List(index); - CollectionsMarshal.SetCount(list414, index); - Span span414 = CollectionsMarshal.AsSpan(list414); - num = 0; - ref QuestSequence reference301 = ref span414[num]; + num = 5; + List list414 = new List(num); + CollectionsMarshal.SetCount(list414, num); + Span span223 = CollectionsMarshal.AsSpan(list414); + ref QuestSequence reference301 = ref span223[0]; QuestSequence obj257 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list415 = new List(num2); + CollectionsMarshal.SetCount(list415, num2); + ref QuestStep reference302 = ref CollectionsMarshal.AsSpan(list415)[0]; QuestStep obj258 = new QuestStep(EInteractionType.AcceptQuest, 1052063u, new Vector3(-49.973328f, 6.4999995f, -89.829956f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -454398,20 +373538,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index2 = 1; - List list416 = new List(index2); - CollectionsMarshal.SetCount(list416, index2); - Span span416 = CollectionsMarshal.AsSpan(list416); - num4 = 0; - span416[num4] = 133; + num3 = 1; + List list416 = new List(num3); + CollectionsMarshal.SetCount(list416, num3); + CollectionsMarshal.AsSpan(list416)[0] = 133; obj259.InTerritory = list416; skipConditions20.AetheryteShortcutIf = obj259; obj258.SkipConditions = skipConditions20; reference302 = obj258; obj257.Steps = list415; reference301 = obj257; - num++; - ref QuestSequence reference303 = ref span414[num]; + ref QuestSequence reference303 = ref span223[1]; QuestSequence obj260 = new QuestSequence { Sequence = 1 @@ -454419,23 +373556,19 @@ public static class AssemblyQuestLoader num2 = 1; List list417 = new List(num2); CollectionsMarshal.SetCount(list417, num2); - Span span417 = CollectionsMarshal.AsSpan(list417); - num3 = 0; - span417[num3] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(-49.973328f, 6.4999995f, -89.89093f), 133); + CollectionsMarshal.AsSpan(list417)[0] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(-49.973328f, 6.4999995f, -89.89093f), 133); obj260.Steps = list417; reference303 = obj260; - num++; - ref QuestSequence reference304 = ref span414[num]; + ref QuestSequence reference304 = ref span223[2]; QuestSequence obj261 = new QuestSequence { Sequence = 2 }; - num3 = 3; - List list418 = new List(num3); - CollectionsMarshal.SetCount(list418, num3); - Span span418 = CollectionsMarshal.AsSpan(list418); - num2 = 0; - ref QuestStep reference305 = ref span418[num2]; + num2 = 3; + List list418 = new List(num2); + CollectionsMarshal.SetCount(list418, num2); + Span span224 = CollectionsMarshal.AsSpan(list418); + ref QuestStep reference305 = ref span224[0]; QuestStep obj262 = new QuestStep(EInteractionType.Interact, 1052070u, new Vector3(169.02417f, 15.5f, -93.492065f), 133) { AethernetShortcut = new AethernetShortcut @@ -454444,70 +373577,49 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaLeatherworker } }; - 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); + 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); obj262.CompletionQuestVariablesFlags = list419; reference305 = obj262; - num2++; - ref QuestStep reference306 = ref span418[num2]; + ref QuestStep reference306 = ref span224[1]; QuestStep questStep30 = new QuestStep(EInteractionType.Interact, 1052071u, new Vector3(157.15259f, 15.699948f, -124.16266f), 133); - 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); + 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); questStep30.CompletionQuestVariablesFlags = list420; reference306 = questStep30; - num2++; - ref QuestStep reference307 = ref span418[num2]; + ref QuestStep reference307 = ref span224[2]; QuestStep questStep31 = new QuestStep(EInteractionType.Interact, 1052072u, new Vector3(145.37268f, 13.599698f, -156.4508f), 133); - 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); + 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); questStep31.CompletionQuestVariablesFlags = list421; reference307 = questStep31; obj261.Steps = list418; reference304 = obj261; - num++; - ref QuestSequence reference308 = ref span414[num]; + ref QuestSequence reference308 = ref span223[3]; QuestSequence obj263 = new QuestSequence { Sequence = 3 @@ -454515,31 +373627,26 @@ public static class AssemblyQuestLoader num2 = 2; List list422 = new List(num2); CollectionsMarshal.SetCount(list422, num2); - Span span422 = CollectionsMarshal.AsSpan(list422); - num3 = 0; - span422[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) + Span span228 = CollectionsMarshal.AsSpan(list422); + span228[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) { StopDistance = 2f }; - num3++; - span422[num3] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) + span228[1] = new QuestStep(EInteractionType.Interact, 1052069u, new Vector3(154.11754f, 15.494947f, -95.69504f), 133) { DelaySecondsAtStart = 2f }; obj263.Steps = list422; reference308 = obj263; - num++; - ref QuestSequence reference309 = ref span414[num]; + ref QuestSequence reference309 = ref span223[4]; QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -454556,16 +373663,13 @@ public static class AssemblyQuestLoader num = 1; List list424 = new List(num); CollectionsMarshal.SetCount(list424, num); - Span span424 = CollectionsMarshal.AsSpan(list424); - index = 0; - span424[index] = "liza"; + CollectionsMarshal.AsSpan(list424)[0] = "liza"; questRoot44.Author = list424; - index = 5; - List list425 = new List(index); - CollectionsMarshal.SetCount(list425, index); - Span span425 = CollectionsMarshal.AsSpan(list425); - num = 0; - ref QuestSequence reference310 = ref span425[num]; + num = 5; + List list425 = new List(num); + CollectionsMarshal.SetCount(list425, num); + Span span229 = CollectionsMarshal.AsSpan(list425); + ref QuestSequence reference310 = ref span229[0]; QuestSequence obj265 = new QuestSequence { Sequence = 0 @@ -454573,9 +373677,7 @@ public static class AssemblyQuestLoader num2 = 1; List list426 = new List(num2); CollectionsMarshal.SetCount(list426, num2); - Span span426 = CollectionsMarshal.AsSpan(list426); - num3 = 0; - span426[num3] = new QuestStep(EInteractionType.AcceptQuest, 1047679u, new Vector3(-165.36206f, -14.999356f, 203.93677f), 1185) + CollectionsMarshal.AsSpan(list426)[0] = new QuestStep(EInteractionType.AcceptQuest, 1047679u, new Vector3(-165.36206f, -14.999356f, 203.93677f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -454586,25 +373688,21 @@ public static class AssemblyQuestLoader }; obj265.Steps = list426; reference310 = obj265; - num++; - ref QuestSequence reference311 = ref span425[num]; + ref QuestSequence reference311 = ref span229[1]; QuestSequence obj266 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj266.Steps = list427; reference311 = obj266; - num++; - ref QuestSequence reference312 = ref span425[num]; + ref QuestSequence reference312 = ref span229[2]; QuestSequence obj267 = new QuestSequence { Sequence = 2 @@ -454612,23 +373710,18 @@ public static class AssemblyQuestLoader num2 = 1; List list428 = new List(num2); CollectionsMarshal.SetCount(list428, num2); - Span span428 = CollectionsMarshal.AsSpan(list428); - num3 = 0; - span428[num3] = new QuestStep(EInteractionType.Interact, 2014470u, new Vector3(-32.700073f, -17.47168f, 184.9851f), 1185); + CollectionsMarshal.AsSpan(list428)[0] = new QuestStep(EInteractionType.Interact, 2014470u, new Vector3(-32.700073f, -17.47168f, 184.9851f), 1185); obj267.Steps = list428; reference312 = obj267; - num++; - ref QuestSequence reference313 = ref span425[num]; + ref QuestSequence reference313 = ref span229[3]; QuestSequence obj268 = new QuestSequence { Sequence = 3 }; - num3 = 1; - List list429 = new List(num3); - CollectionsMarshal.SetCount(list429, num3); - Span span429 = CollectionsMarshal.AsSpan(list429); - num2 = 0; - ref QuestStep reference314 = ref span429[num2]; + num2 = 1; + List list429 = new List(num2); + CollectionsMarshal.SetCount(list429, num2); + ref QuestStep reference314 = ref CollectionsMarshal.AsSpan(list429)[0]; QuestStep obj269 = new QuestStep(EInteractionType.Interact, 1047501u, new Vector3(-189.80707f, 120.74999f, -367.14734f), 1185) { AethernetShortcut = new AethernetShortcut @@ -454637,12 +373730,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalVollokShoonsa } }; - index2 = 1; - List list430 = new List(index2); - CollectionsMarshal.SetCount(list430, index2); - Span span430 = CollectionsMarshal.AsSpan(list430); - num4 = 0; - span430[num4] = new DialogueChoice + num3 = 1; + List list430 = new List(num3); + CollectionsMarshal.SetCount(list430, num3); + CollectionsMarshal.AsSpan(list430)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMG101_05244_SYSTEM_000_301") @@ -454651,8 +373742,7 @@ public static class AssemblyQuestLoader reference314 = obj269; obj268.Steps = list429; reference313 = obj268; - num++; - ref QuestSequence reference315 = ref span425[num]; + ref QuestSequence reference315 = ref span229[4]; QuestSequence obj270 = new QuestSequence { Sequence = byte.MaxValue @@ -454660,9 +373750,8 @@ public static class AssemblyQuestLoader num2 = 2; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span431 = CollectionsMarshal.AsSpan(list431); - num3 = 0; - ref QuestStep reference316 = ref span431[num3]; + Span span230 = CollectionsMarshal.AsSpan(list431); + ref QuestStep reference316 = ref span230[0]; QuestStep obj271 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -454675,27 +373764,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions21 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - num4 = 1; - List list432 = new List(num4); - CollectionsMarshal.SetCount(list432, num4); - Span span432 = CollectionsMarshal.AsSpan(list432); - index2 = 0; - span432[index2] = 1207; + num3 = 1; + List list432 = new List(num3); + CollectionsMarshal.SetCount(list432, num3); + CollectionsMarshal.AsSpan(list432)[0] = 1207; skipStepConditions8.InTerritory = list432; skipConditions21.StepIf = skipStepConditions8; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - index2 = 1; - List list433 = new List(index2); - CollectionsMarshal.SetCount(list433, index2); - Span span433 = CollectionsMarshal.AsSpan(list433); - num4 = 0; - span433[num4] = 1207; + num3 = 1; + List list433 = new List(num3); + CollectionsMarshal.SetCount(list433, num3); + CollectionsMarshal.AsSpan(list433)[0] = 1207; skipAetheryteCondition3.InTerritory = list433; skipConditions21.AetheryteShortcutIf = skipAetheryteCondition3; obj271.SkipConditions = skipConditions21; reference316 = obj271; - num3++; - span431[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); + span230[1] = new QuestStep(EInteractionType.CompleteQuest, 1052185u, new Vector3(-4.837158f, -3.632158E-08f, 5.996765f), 1207); obj270.Steps = list431; reference315 = obj270; questRoot44.QuestSequence = list425; @@ -454705,30 +373789,24 @@ public static class AssemblyQuestLoader num = 1; List list434 = new List(num); CollectionsMarshal.SetCount(list434, num); - Span span434 = CollectionsMarshal.AsSpan(list434); - index = 0; - span434[index] = "liza"; + CollectionsMarshal.AsSpan(list434)[0] = "liza"; questRoot45.Author = list434; - index = 3; - List list435 = new List(index); - CollectionsMarshal.SetCount(list435, index); - Span span435 = CollectionsMarshal.AsSpan(list435); - num = 0; - ref QuestSequence reference317 = ref span435[num]; + num = 3; + List list435 = new List(num); + CollectionsMarshal.SetCount(list435, num); + Span span231 = CollectionsMarshal.AsSpan(list435); + ref QuestSequence reference317 = ref span231[0]; QuestSequence obj272 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj272.Steps = list436; reference317 = obj272; - num++; - ref QuestSequence reference318 = ref span435[num]; + ref QuestSequence reference318 = ref span231[1]; QuestSequence obj273 = new QuestSequence { Sequence = 1 @@ -454736,27 +373814,23 @@ public static class AssemblyQuestLoader num2 = 2; List list437 = new List(num2); CollectionsMarshal.SetCount(list437, num2); - Span span437 = CollectionsMarshal.AsSpan(list437); - num3 = 0; - ref QuestStep reference319 = ref span437[num3]; + Span span232 = CollectionsMarshal.AsSpan(list437); + ref QuestStep reference319 = ref span232[0]; 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(); - num4 = 1; - List list438 = new List(num4); - CollectionsMarshal.SetCount(list438, num4); - Span span438 = CollectionsMarshal.AsSpan(list438); - index2 = 0; - span438[index2] = 1186; + num3 = 1; + List list438 = new List(num3); + CollectionsMarshal.SetCount(list438, num3); + CollectionsMarshal.AsSpan(list438)[0] = 1186; skipStepConditions9.InTerritory = list438; skipConditions22.StepIf = skipStepConditions9; obj274.SkipConditions = skipConditions22; reference319 = obj274; - num3++; - span437[num3] = new QuestStep(EInteractionType.Interact, 1052191u, new Vector3(20.248657f, 38.0566f, -388.90674f), 1186) + span232[1] = new QuestStep(EInteractionType.Interact, 1052191u, new Vector3(20.248657f, 38.0566f, -388.90674f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -454766,18 +373840,15 @@ public static class AssemblyQuestLoader }; obj273.Steps = list437; reference318 = obj273; - num++; - ref QuestSequence reference320 = ref span435[num]; + ref QuestSequence reference320 = ref span231[2]; QuestSequence obj275 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -454790,16 +373861,13 @@ public static class AssemblyQuestLoader num = 1; List list440 = new List(num); CollectionsMarshal.SetCount(list440, num); - Span span440 = CollectionsMarshal.AsSpan(list440); - index = 0; - span440[index] = "liza"; + CollectionsMarshal.AsSpan(list440)[0] = "liza"; questRoot46.Author = list440; - index = 7; - List list441 = new List(index); - CollectionsMarshal.SetCount(list441, index); - Span span441 = CollectionsMarshal.AsSpan(list441); - num = 0; - ref QuestSequence reference321 = ref span441[num]; + num = 7; + List list441 = new List(num); + CollectionsMarshal.SetCount(list441, num); + Span span233 = CollectionsMarshal.AsSpan(list441); + ref QuestSequence reference321 = ref span233[0]; QuestSequence obj276 = new QuestSequence { Sequence = 0 @@ -454807,43 +373875,36 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - Span span442 = CollectionsMarshal.AsSpan(list442); - num3 = 0; - span442[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052202u, new Vector3(-305.83655f, 9.519508f, 53.147095f), 1186) + CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052202u, new Vector3(-305.83655f, 9.519508f, 53.147095f), 1186) { StopDistance = 5f }; obj276.Steps = list442; reference321 = obj276; - num++; - ref QuestSequence reference322 = ref span441[num]; + ref QuestSequence reference322 = ref span233[1]; QuestSequence obj277 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; - num2++; - span443[num2] = new QuestStep(EInteractionType.Interact, 1052204u, new Vector3(-158.25134f, 25.984516f, -521.90436f), 1191) + span234[1] = new QuestStep(EInteractionType.Interact, 1052204u, new Vector3(-158.25134f, 25.984516f, -521.90436f), 1191) { Fly = true }; - num2++; - span443[num2] = new QuestStep(EInteractionType.Interact, 1052206u, new Vector3(-137.86536f, 35f, -568.29175f), 1191) + span234[2] = new QuestStep(EInteractionType.Interact, 1052206u, new Vector3(-137.86536f, 35f, -568.29175f), 1191) { Fly = true }; obj277.Steps = list443; reference322 = obj277; - num++; - ref QuestSequence reference323 = ref span441[num]; + ref QuestSequence reference323 = ref span233[2]; QuestSequence obj278 = new QuestSequence { Sequence = 2 @@ -454851,9 +373912,8 @@ public static class AssemblyQuestLoader num2 = 2; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span444 = CollectionsMarshal.AsSpan(list444); - num3 = 0; - ref QuestStep reference324 = ref span444[num3]; + Span span235 = CollectionsMarshal.AsSpan(list444); + ref QuestStep reference324 = ref span235[0]; QuestStep obj279 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -454866,49 +373926,40 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions23 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - index2 = 1; - List list445 = new List(index2); - CollectionsMarshal.SetCount(list445, index2); - Span span445 = CollectionsMarshal.AsSpan(list445); - num4 = 0; - span445[num4] = 1207; + num3 = 1; + List list445 = new List(num3); + CollectionsMarshal.SetCount(list445, num3); + CollectionsMarshal.AsSpan(list445)[0] = 1207; skipStepConditions10.InTerritory = list445; skipConditions23.StepIf = skipStepConditions10; SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - num4 = 1; - List list446 = new List(num4); - CollectionsMarshal.SetCount(list446, num4); - Span span446 = CollectionsMarshal.AsSpan(list446); - index2 = 0; - span446[index2] = 1207; + num3 = 1; + List list446 = new List(num3); + CollectionsMarshal.SetCount(list446, num3); + CollectionsMarshal.AsSpan(list446)[0] = 1207; skipAetheryteCondition4.InTerritory = list446; skipConditions23.AetheryteShortcutIf = skipAetheryteCondition4; obj279.SkipConditions = skipConditions23; reference324 = obj279; - num3++; - span444[num3] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + span235[1] = new QuestStep(EInteractionType.Interact, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj278.Steps = list444; reference323 = obj278; - num++; - ref QuestSequence reference325 = ref span441[num]; + ref QuestSequence reference325 = ref span233[3]; QuestSequence obj280 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj280.Steps = list447; reference325 = obj280; - num++; - ref QuestSequence reference326 = ref span441[num]; + ref QuestSequence reference326 = ref span233[4]; QuestSequence obj281 = new QuestSequence { Sequence = 4 @@ -454916,45 +373967,37 @@ public static class AssemblyQuestLoader num2 = 1; List list448 = new List(num2); CollectionsMarshal.SetCount(list448, num2); - Span span448 = CollectionsMarshal.AsSpan(list448); - num3 = 0; - ref QuestStep reference327 = ref span448[num3]; + ref QuestStep reference327 = ref CollectionsMarshal.AsSpan(list448)[0]; QuestStep questStep32 = new QuestStep(EInteractionType.Duty, null, null, 1191); DutyOptions obj282 = new DutyOptions { Enabled = true, ContentFinderConditionId = 1008u }; - 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"; + 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"; obj282.Notes = list449; questStep32.DutyOptions = obj282; reference327 = questStep32; obj281.Steps = list448; reference326 = obj281; - num++; - span441[num] = new QuestSequence + span233[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference328 = ref span441[num]; + ref QuestSequence reference328 = ref span233[6]; QuestSequence obj283 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 6f }; @@ -454967,16 +374010,13 @@ public static class AssemblyQuestLoader num = 1; List list451 = new List(num); CollectionsMarshal.SetCount(list451, num); - Span span451 = CollectionsMarshal.AsSpan(list451); - index = 0; - span451[index] = "liza"; + CollectionsMarshal.AsSpan(list451)[0] = "liza"; questRoot47.Author = list451; - index = 6; - List list452 = new List(index); - CollectionsMarshal.SetCount(list452, index); - Span span452 = CollectionsMarshal.AsSpan(list452); - num = 0; - ref QuestSequence reference329 = ref span452[num]; + num = 6; + List list452 = new List(num); + CollectionsMarshal.SetCount(list452, num); + Span span237 = CollectionsMarshal.AsSpan(list452); + ref QuestSequence reference329 = ref span237[0]; QuestSequence obj284 = new QuestSequence { Sequence = 0 @@ -454984,30 +374024,24 @@ public static class AssemblyQuestLoader num2 = 1; List list453 = new List(num2); CollectionsMarshal.SetCount(list453, num2); - Span span453 = CollectionsMarshal.AsSpan(list453); - num3 = 0; - span453[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052217u, new Vector3(118.242065f, 12.5f, -69.0166f), 1254) + CollectionsMarshal.AsSpan(list453)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052217u, new Vector3(118.242065f, 12.5f, -69.0166f), 1254) { StopDistance = 6f }; obj284.Steps = list453; reference329 = obj284; - num++; - ref QuestSequence reference330 = ref span452[num]; + ref QuestSequence reference330 = ref span237[1]; QuestSequence obj285 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj285.Steps = list454; reference330 = obj285; - num++; - ref QuestSequence reference331 = ref span452[num]; + ref QuestSequence reference331 = ref span237[2]; QuestSequence obj286 = new QuestSequence { Sequence = 2 @@ -455015,27 +374049,21 @@ public static class AssemblyQuestLoader num2 = 1; List list455 = new List(num2); CollectionsMarshal.SetCount(list455, num2); - Span span455 = CollectionsMarshal.AsSpan(list455); - num3 = 0; - span455[num3] = new QuestStep(EInteractionType.Interact, 2014472u, new Vector3(101.8844f, 12.588623f, 130.44934f), 1254); + CollectionsMarshal.AsSpan(list455)[0] = new QuestStep(EInteractionType.Interact, 2014472u, new Vector3(101.8844f, 12.588623f, 130.44934f), 1254); obj286.Steps = list455; reference331 = obj286; - num++; - ref QuestSequence reference332 = ref span452[num]; + ref QuestSequence reference332 = ref span237[3]; QuestSequence obj287 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj287.Steps = list456; reference332 = obj287; - num++; - ref QuestSequence reference333 = ref span452[num]; + ref QuestSequence reference333 = ref span237[4]; QuestSequence obj288 = new QuestSequence { Sequence = 4 @@ -455043,26 +374071,22 @@ public static class AssemblyQuestLoader num2 = 1; List list457 = new List(num2); CollectionsMarshal.SetCount(list457, num2); - Span span457 = CollectionsMarshal.AsSpan(list457); - num3 = 0; - span457[num3] = new QuestStep(EInteractionType.Interact, 1052227u, new Vector3(-581.2009f, -1.7638817f, -505.45514f), 1191) + CollectionsMarshal.AsSpan(list457)[0] = new QuestStep(EInteractionType.Interact, 1052227u, new Vector3(-581.2009f, -1.7638817f, -505.45514f), 1191) { StopDistance = 5f }; obj288.Steps = list457; reference333 = obj288; - num++; - ref QuestSequence reference334 = ref span452[num]; + ref QuestSequence reference334 = ref span237[5]; QuestSequence obj289 = new QuestSequence { Sequence = byte.MaxValue }; - num3 = 2; - List list458 = new List(num3); - CollectionsMarshal.SetCount(list458, num3); - Span span458 = CollectionsMarshal.AsSpan(list458); - num2 = 0; - ref QuestStep reference335 = ref span458[num2]; + num2 = 2; + List list458 = new List(num2); + CollectionsMarshal.SetCount(list458, num2); + Span span238 = CollectionsMarshal.AsSpan(list458); + ref QuestStep reference335 = ref span238[0]; QuestStep obj290 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -455075,27 +374099,22 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions24 = new SkipConditions(); SkipStepConditions skipStepConditions11 = new SkipStepConditions(); - num4 = 1; - List list459 = new List(num4); - CollectionsMarshal.SetCount(list459, num4); - Span span459 = CollectionsMarshal.AsSpan(list459); - index2 = 0; - span459[index2] = 1207; + num3 = 1; + List list459 = new List(num3); + CollectionsMarshal.SetCount(list459, num3); + CollectionsMarshal.AsSpan(list459)[0] = 1207; skipStepConditions11.InTerritory = list459; skipConditions24.StepIf = skipStepConditions11; SkipAetheryteCondition skipAetheryteCondition5 = new SkipAetheryteCondition(); - index2 = 1; - List list460 = new List(index2); - CollectionsMarshal.SetCount(list460, index2); - Span span460 = CollectionsMarshal.AsSpan(list460); - num4 = 0; - span460[num4] = 1207; + num3 = 1; + List list460 = new List(num3); + CollectionsMarshal.SetCount(list460, num3); + CollectionsMarshal.AsSpan(list460)[0] = 1207; skipAetheryteCondition5.InTerritory = list460; skipConditions24.AetheryteShortcutIf = skipAetheryteCondition5; obj290.SkipConditions = skipConditions24; reference335 = obj290; - num2++; - span458[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + span238[1] = new QuestStep(EInteractionType.CompleteQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj289.Steps = list458; reference334 = obj289; questRoot47.QuestSequence = list452; @@ -455105,16 +374124,13 @@ public static class AssemblyQuestLoader num = 1; List list461 = new List(num); CollectionsMarshal.SetCount(list461, num); - Span span461 = CollectionsMarshal.AsSpan(list461); - index = 0; - span461[index] = "liza"; + CollectionsMarshal.AsSpan(list461)[0] = "liza"; questRoot48.Author = list461; - index = 6; - List list462 = new List(index); - CollectionsMarshal.SetCount(list462, index); - Span span462 = CollectionsMarshal.AsSpan(list462); - num = 0; - ref QuestSequence reference336 = ref span462[num]; + num = 6; + List list462 = new List(num); + CollectionsMarshal.SetCount(list462, num); + Span span239 = CollectionsMarshal.AsSpan(list462); + ref QuestSequence reference336 = ref span239[0]; QuestSequence obj291 = new QuestSequence { Sequence = 0 @@ -455122,38 +374138,32 @@ public static class AssemblyQuestLoader num2 = 1; List list463 = new List(num2); CollectionsMarshal.SetCount(list463, num2); - Span span463 = CollectionsMarshal.AsSpan(list463); - num3 = 0; - span463[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052233u, new Vector3(-0.80877686f, -4.1909516E-08f, 6.42395f), 1207) + CollectionsMarshal.AsSpan(list463)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052233u, new Vector3(-0.80877686f, -4.1909516E-08f, 6.42395f), 1207) { StopDistance = 5f }; obj291.Steps = list463; reference336 = obj291; - num++; - ref QuestSequence reference337 = ref span462[num]; + ref QuestSequence reference337 = ref span239[1]; QuestSequence obj292 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings }; - num2++; - span464[num2] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) + span240[1] = new QuestStep(EInteractionType.Interact, 1051495u, new Vector3(-365.28577f, 20.14268f, -88.51758f), 1190) { StopDistance = 5f }; obj292.Steps = list464; reference337 = obj292; - num++; - ref QuestSequence reference338 = ref span462[num]; + ref QuestSequence reference338 = ref span239[2]; QuestSequence obj293 = new QuestSequence { Sequence = 2 @@ -455161,33 +374171,27 @@ public static class AssemblyQuestLoader num2 = 2; List list465 = new List(num2); CollectionsMarshal.SetCount(list465, num2); - Span span465 = CollectionsMarshal.AsSpan(list465); - num3 = 0; - span465[num3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) + Span span241 = CollectionsMarshal.AsSpan(list465); + span241[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniMehwahhetsoan }; - num3++; - span465[num3] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); + span241[1] = new QuestStep(EInteractionType.Interact, 1046988u, new Vector3(302.96777f, -15.629961f, -514.6716f), 1190); obj293.Steps = list465; reference338 = obj293; - num++; - ref QuestSequence reference339 = ref span462[num]; + ref QuestSequence reference339 = ref span239[3]; QuestSequence obj294 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj294.Steps = list466; reference339 = obj294; - num++; - ref QuestSequence reference340 = ref span462[num]; + ref QuestSequence reference340 = ref span239[4]; QuestSequence obj295 = new QuestSequence { Sequence = 4 @@ -455195,36 +374199,27 @@ public static class AssemblyQuestLoader num2 = 4; List list467 = new List(num2); CollectionsMarshal.SetCount(list467, num2); - Span span467 = CollectionsMarshal.AsSpan(list467); - num3 = 0; - ref QuestStep reference341 = ref span467[num3]; + Span span242 = CollectionsMarshal.AsSpan(list467); + ref QuestStep reference341 = ref span242[0]; QuestStep obj296 = new QuestStep(EInteractionType.Interact, 1052247u, new Vector3(224.96375f, -16.329428f, -527.6417f), 1190) { Fly = true }; - 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); + 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); obj296.CompletionQuestVariablesFlags = list468; - index2 = 1; - List list469 = new List(index2); - CollectionsMarshal.SetCount(list469, index2); - Span span469 = CollectionsMarshal.AsSpan(list469); - num4 = 0; - span469[num4] = new DialogueChoice + num3 = 1; + List list469 = new List(num3); + CollectionsMarshal.SetCount(list469, num3); + CollectionsMarshal.AsSpan(list469)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMG105_05248_Q2_000_000"), @@ -455232,92 +374227,69 @@ public static class AssemblyQuestLoader }; obj296.DialogueChoices = list469; reference341 = obj296; - num3++; - ref QuestStep reference342 = ref span467[num3]; + ref QuestStep reference342 = ref span242[1]; QuestStep obj297 = new QuestStep(EInteractionType.Interact, 1052245u, new Vector3(276.78333f, -16.53927f, -562.7985f), 1190) { Fly = true }; - 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); + 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); obj297.CompletionQuestVariablesFlags = list470; reference342 = obj297; - num3++; - ref QuestStep reference343 = ref span467[num3]; + ref QuestStep reference343 = ref span242[2]; QuestStep obj298 = new QuestStep(EInteractionType.Interact, 1052243u, new Vector3(332.26514f, -14.986355f, -558.95325f), 1190) { Fly = true }; - 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); + 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); obj298.CompletionQuestVariablesFlags = list471; reference343 = obj298; - num3++; - ref QuestStep reference344 = ref span467[num3]; + ref QuestStep reference344 = ref span242[3]; QuestStep obj299 = new QuestStep(EInteractionType.Interact, 1052239u, new Vector3(354.57385f, -17.082237f, -452.5063f), 1190) { Fly = true }; - 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); + 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); obj299.CompletionQuestVariablesFlags = list472; reference344 = obj299; obj295.Steps = list467; reference340 = obj295; - num++; - ref QuestSequence reference345 = ref span462[num]; + ref QuestSequence reference345 = ref span239[5]; QuestSequence obj300 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { SkipConditions = new SkipConditions { @@ -455327,8 +374299,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span473[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) + span247[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(302.1455f, -15.629961f, -516.2348f), 1190) { Fly = true, SkipConditions = new SkipConditions @@ -455339,8 +374310,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span473[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); + span247[2] = new QuestStep(EInteractionType.CompleteQuest, 1051013u, new Vector3(303.79175f, -15.629962f, -516.25854f), 1190); obj300.Steps = list473; reference345 = obj300; questRoot48.QuestSequence = list462; @@ -455350,16 +374320,13 @@ public static class AssemblyQuestLoader num = 1; List list474 = new List(num); CollectionsMarshal.SetCount(list474, num); - Span span474 = CollectionsMarshal.AsSpan(list474); - index = 0; - span474[index] = "liza"; + CollectionsMarshal.AsSpan(list474)[0] = "liza"; questRoot49.Author = list474; - index = 6; - List list475 = new List(index); - CollectionsMarshal.SetCount(list475, index); - Span span475 = CollectionsMarshal.AsSpan(list475); - num = 0; - ref QuestSequence reference346 = ref span475[num]; + num = 6; + List list475 = new List(num); + CollectionsMarshal.SetCount(list475, num); + Span span248 = CollectionsMarshal.AsSpan(list475); + ref QuestSequence reference346 = ref span248[0]; QuestSequence obj301 = new QuestSequence { Sequence = 0 @@ -455367,49 +374334,38 @@ public static class AssemblyQuestLoader num2 = 1; List list476 = new List(num2); CollectionsMarshal.SetCount(list476, num2); - Span span476 = CollectionsMarshal.AsSpan(list476); - num3 = 0; - span476[num3] = new QuestStep(EInteractionType.AcceptQuest, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); + CollectionsMarshal.AsSpan(list476)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); obj301.Steps = list476; reference346 = obj301; - num++; - ref QuestSequence reference347 = ref span475[num]; + ref QuestSequence reference347 = ref span248[1]; QuestSequence obj302 = new QuestSequence { Sequence = 1 }; - num3 = 1; - List list477 = new List(num3); - CollectionsMarshal.SetCount(list477, num3); - Span span477 = CollectionsMarshal.AsSpan(list477); - num2 = 0; - ref QuestStep reference348 = ref span477[num2]; + num2 = 1; + List list477 = new List(num2); + CollectionsMarshal.SetCount(list477, num2); + ref QuestStep reference348 = ref CollectionsMarshal.AsSpan(list477)[0]; QuestStep questStep33 = new QuestStep(EInteractionType.SinglePlayerDuty, 1052248u, new Vector3(293.93445f, -16.71379f, -528.70984f), 1190); SinglePlayerDutyOptions singlePlayerDutyOptions = new SinglePlayerDutyOptions(); - 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"; + 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"; singlePlayerDutyOptions.Notes = list478; questStep33.SinglePlayerDutyOptions = singlePlayerDutyOptions; reference348 = questStep33; obj302.Steps = list477; reference347 = obj302; - num++; - span475[num] = new QuestSequence + span248[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference349 = ref span475[num]; + ref QuestSequence reference349 = ref span248[3]; QuestSequence obj303 = new QuestSequence { Sequence = 3 @@ -455417,36 +374373,29 @@ public static class AssemblyQuestLoader num2 = 1; List list479 = new List(num2); CollectionsMarshal.SetCount(list479, num2); - Span span479 = CollectionsMarshal.AsSpan(list479); - num3 = 0; - span479[num3] = new QuestStep(EInteractionType.Interact, 1052252u, new Vector3(299.15308f, -15.629961f, -518.4253f), 1190) + CollectionsMarshal.AsSpan(list479)[0] = new QuestStep(EInteractionType.Interact, 1052252u, new Vector3(299.15308f, -15.629961f, -518.4253f), 1190) { StopDistance = 5f }; obj303.Steps = list479; reference349 = obj303; - num++; - ref QuestSequence reference350 = ref span475[num]; + ref QuestSequence reference350 = ref span248[4]; QuestSequence obj304 = new QuestSequence { Sequence = 4 }; - num3 = 1; - List list480 = new List(num3); - CollectionsMarshal.SetCount(list480, num3); - Span span480 = CollectionsMarshal.AsSpan(list480); - num2 = 0; - ref QuestStep reference351 = ref span480[num2]; + num2 = 1; + List list480 = new List(num2); + CollectionsMarshal.SetCount(list480, num2); + ref QuestStep reference351 = ref CollectionsMarshal.AsSpan(list480)[0]; QuestStep obj305 = new QuestStep(EInteractionType.Interact, 1052255u, new Vector3(-123.91852f, 16.187744f, -296.80328f), 1190) { Fly = true }; - num4 = 1; - List list481 = new List(num4); - CollectionsMarshal.SetCount(list481, num4); - Span span481 = CollectionsMarshal.AsSpan(list481); - index2 = 0; - span481[index2] = new DialogueChoice + num3 = 1; + List list481 = new List(num3); + CollectionsMarshal.SetCount(list481, num3); + CollectionsMarshal.AsSpan(list481)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMG106_05249_SYSTEM_000_402") @@ -455455,8 +374404,7 @@ public static class AssemblyQuestLoader reference351 = obj305; obj304.Steps = list480; reference350 = obj304; - num++; - ref QuestSequence reference352 = ref span475[num]; + ref QuestSequence reference352 = ref span248[5]; QuestSequence obj306 = new QuestSequence { Sequence = byte.MaxValue @@ -455464,9 +374412,7 @@ public static class AssemblyQuestLoader num2 = 1; List list482 = new List(num2); CollectionsMarshal.SetCount(list482, num2); - Span span482 = CollectionsMarshal.AsSpan(list482); - num3 = 0; - span482[num3] = new QuestStep(EInteractionType.CompleteQuest, 1052259u, new Vector3(-171.03839f, 15.75679f, -372.45752f), 1190); + CollectionsMarshal.AsSpan(list482)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052259u, new Vector3(-171.03839f, 15.75679f, -372.45752f), 1190); obj306.Steps = list482; reference352 = obj306; questRoot49.QuestSequence = list475; @@ -455480,16 +374426,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -455497,23 +374440,19 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052261u, new Vector3(-172.25916f, 15.73959f, -376.1197f), 1190); + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052261u, new Vector3(-172.25916f, 15.73959f, -376.1197f), 1190); obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 2; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -455529,28 +374468,22 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 1207; + CollectionsMarshal.AsSpan(list5)[0] = 1207; skipStepConditions.InTerritory = list5; skipConditions.StepIf = skipStepConditions; SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - index3 = 1; - List list6 = new List(index3); - CollectionsMarshal.SetCount(list6, index3); - Span span6 = CollectionsMarshal.AsSpan(list6); - num3 = 0; - span6[num3] = 1207; + num3 = 1; + List list6 = new List(num3); + CollectionsMarshal.SetCount(list6, num3); + CollectionsMarshal.AsSpan(list6)[0] = 1207; skipAetheryteCondition.InTerritory = list6; skipConditions.AetheryteShortcutIf = skipAetheryteCondition; obj3.SkipConditions = skipConditions; reference3 = obj3; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1052521u, new Vector3(-1.8463745f, -3.4458935E-08f, 5.8441772f), 1207); + span2[1] = new QuestStep(EInteractionType.Interact, 1052521u, new Vector3(-1.8463745f, -3.4458935E-08f, 5.8441772f), 1207); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -455558,27 +374491,21 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1052269u, new Vector3(-2.456726f, -7.2107476E-08f, 8.987488f), 1207); + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1052269u, new Vector3(-2.456726f, -7.2107476E-08f, 8.987488f), 1207); obj4.Steps = list7; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[3]; QuestSequence obj5 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj5.Steps = list8; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[4]; QuestSequence obj6 = new QuestSequence { Sequence = 4 @@ -455586,26 +374513,21 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.Interact, 1052272u, new Vector3(0.19836426f, 0.00054359436f, -94.98743f), 1186) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.Interact, 1052272u, new Vector3(0.19836426f, 0.00054359436f, -94.98743f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine }; obj6.Steps = list9; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[5]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -455618,18 +374540,15 @@ public static class AssemblyQuestLoader num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - index = 0; - span11[index] = "Starr"; + CollectionsMarshal.AsSpan(list11)[0] = "Starr"; questRoot2.Author = list11; questRoot2.IsSeasonalQuest = true; questRoot2.SeasonalQuestExpiry = new DateTime(2025, 2, 17, 0, 0, 0, DateTimeKind.Utc); - index = 8; - List list12 = new List(index); - CollectionsMarshal.SetCount(list12, index); - Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - ref QuestSequence reference8 = ref span12[num]; + num = 8; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + Span span3 = CollectionsMarshal.AsSpan(list12); + ref QuestSequence reference8 = ref span3[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 @@ -455637,9 +374556,7 @@ public static class AssemblyQuestLoader num2 = 1; List list13 = new List(num2); CollectionsMarshal.SetCount(list13, num2); - Span span13 = CollectionsMarshal.AsSpan(list13); - index2 = 0; - ref QuestStep reference9 = ref span13[index2]; + ref QuestStep reference9 = ref CollectionsMarshal.AsSpan(list13)[0]; QuestStep obj9 = new QuestStep(EInteractionType.AcceptQuest, 1052351u, new Vector3(-50.003845f, 6.4999986f, -90.013f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -455657,27 +374574,22 @@ public static class AssemblyQuestLoader num3 = 1; List list14 = new List(num3); CollectionsMarshal.SetCount(list14, num3); - Span span14 = CollectionsMarshal.AsSpan(list14); - index3 = 0; - span14[index3] = 133; + CollectionsMarshal.AsSpan(list14)[0] = 133; obj10.InTerritory = list14; skipConditions2.AetheryteShortcutIf = obj10; obj9.SkipConditions = skipConditions2; reference9 = obj9; obj8.Steps = list13; reference8 = obj8; - num++; - ref QuestSequence reference10 = ref span12[num]; + ref QuestSequence reference10 = ref span3[1]; QuestSequence obj11 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -455687,8 +374599,7 @@ public static class AssemblyQuestLoader }; obj11.Steps = list15; reference10 = obj11; - num++; - ref QuestSequence reference11 = ref span12[num]; + ref QuestSequence reference11 = ref span3[2]; QuestSequence obj12 = new QuestSequence { Sequence = 2 @@ -455696,9 +374607,8 @@ public static class AssemblyQuestLoader num2 = 5; List list16 = new List(num2); CollectionsMarshal.SetCount(list16, num2); - Span span16 = CollectionsMarshal.AsSpan(list16); - index2 = 0; - ref QuestStep reference12 = ref span16[index2]; + Span span4 = CollectionsMarshal.AsSpan(list16); + ref QuestStep reference12 = ref span4[0]; QuestStep obj13 = new QuestStep(EInteractionType.Interact, 1052371u, new Vector3(-83.45166f, 7.316897f, -125.474915f), 133) { AethernetShortcut = new AethernetShortcut @@ -455707,86 +374617,61 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - 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); + 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); obj13.CompletionQuestVariablesFlags = list17; reference12 = obj13; - index2++; - ref QuestStep reference13 = ref span16[index2]; + ref QuestStep reference13 = ref span4[1]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list18; reference13 = questStep; - 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]; + 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]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1052369u, new Vector3(-41.33673f, 6.2679696f, -104.14282f), 133); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list19; reference14 = questStep2; obj12.Steps = list16; reference11 = obj12; - num++; - ref QuestSequence reference15 = ref span12[num]; + ref QuestSequence reference15 = ref span3[3]; QuestSequence obj14 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -455796,8 +374681,7 @@ public static class AssemblyQuestLoader }; obj14.Steps = list20; reference15 = obj14; - num++; - ref QuestSequence reference16 = ref span12[num]; + ref QuestSequence reference16 = ref span3[4]; QuestSequence obj15 = new QuestSequence { Sequence = 4 @@ -455805,30 +374689,22 @@ public static class AssemblyQuestLoader num2 = 3; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - ref QuestStep reference17 = ref span21[index2]; + Span span9 = CollectionsMarshal.AsSpan(list21); + ref QuestStep reference17 = ref span9[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list22; reference17 = questStep3; - index2++; - ref QuestStep reference18 = ref span21[index2]; + ref QuestStep reference18 = ref span9[1]; QuestStep obj16 = new QuestStep(EInteractionType.Interact, 1052375u, new Vector3(-68.77246f, 6.88836f, -134.3252f), 133) { AethernetShortcut = new AethernetShortcut @@ -455837,26 +374713,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GridaniaAmphitheatre } }; - 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); + 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); obj16.CompletionQuestVariablesFlags = list23; reference18 = obj16; - index2++; - ref QuestStep reference19 = ref span21[index2]; + ref QuestStep reference19 = ref span9[2]; QuestStep obj17 = new QuestStep(EInteractionType.Interact, 1052380u, new Vector3(10.391357f, 0.5406719f, -1.7853394f), 132) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -455871,46 +374740,35 @@ public static class AssemblyQuestLoader num3 = 2; List list24 = new List(num3); CollectionsMarshal.SetCount(list24, num3); - Span span24 = CollectionsMarshal.AsSpan(list24); - index3 = 0; - span24[index3] = 132; - index3++; - span24[index3] = 133; + Span span12 = CollectionsMarshal.AsSpan(list24); + span12[0] = 132; + span12[1] = 133; skipAetheryteCondition2.InTerritory = list24; skipConditions3.AetheryteShortcutIf = skipAetheryteCondition2; obj17.SkipConditions = skipConditions3; - 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); + 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); obj17.CompletionQuestVariablesFlags = list25; reference19 = obj17; obj15.Steps = list21; reference16 = obj15; - num++; - ref QuestSequence reference20 = ref span12[num]; + ref QuestSequence reference20 = ref span3[5]; QuestSequence obj18 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -455927,8 +374785,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list26; reference20 = obj18; - num++; - ref QuestSequence reference21 = ref span12[num]; + ref QuestSequence reference21 = ref span3[6]; QuestSequence obj19 = new QuestSequence { Sequence = 6 @@ -455936,23 +374793,18 @@ public static class AssemblyQuestLoader num2 = 1; List list27 = new List(num2); CollectionsMarshal.SetCount(list27, num2); - Span span27 = CollectionsMarshal.AsSpan(list27); - index2 = 0; - span27[index2] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133); + CollectionsMarshal.AsSpan(list27)[0] = new QuestStep(EInteractionType.Interact, 1052382u, new Vector3(-256.79407f, -2.3841858E-07f, -188.61682f), 133); obj19.Steps = list27; reference21 = obj19; - num++; - ref QuestSequence reference22 = ref span12[num]; + ref QuestSequence reference22 = ref span3[7]; QuestSequence obj20 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -455969,16 +374821,13 @@ public static class AssemblyQuestLoader num = 1; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); - Span span29 = CollectionsMarshal.AsSpan(list29); - index = 0; - span29[index] = "liza"; + CollectionsMarshal.AsSpan(list29)[0] = "liza"; questRoot3.Author = list29; - index = 6; - List list30 = new List(index); - CollectionsMarshal.SetCount(list30, index); - Span span30 = CollectionsMarshal.AsSpan(list30); - num = 0; - ref QuestSequence reference23 = ref span30[num]; + num = 6; + List list30 = new List(num); + CollectionsMarshal.SetCount(list30, num); + Span span14 = CollectionsMarshal.AsSpan(list30); + ref QuestSequence reference23 = ref span14[0]; QuestSequence obj21 = new QuestSequence { Sequence = 0 @@ -455986,9 +374835,7 @@ public static class AssemblyQuestLoader num2 = 1; List list31 = new List(num2); CollectionsMarshal.SetCount(list31, num2); - Span span31 = CollectionsMarshal.AsSpan(list31); - index2 = 0; - span31[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048609u, new Vector3(-10.696594f, 2.4000525f, -31.174255f), 962) + CollectionsMarshal.AsSpan(list31)[0] = new QuestStep(EInteractionType.AcceptQuest, 1048609u, new Vector3(-10.696594f, 2.4000525f, -31.174255f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, SkipConditions = new SkipConditions @@ -456001,25 +374848,21 @@ public static class AssemblyQuestLoader }; obj21.Steps = list31; reference23 = obj21; - num++; - ref QuestSequence reference24 = ref span30[num]; + ref QuestSequence reference24 = ref span14[1]; QuestSequence obj22 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; obj22.Steps = list32; reference24 = obj22; - num++; - ref QuestSequence reference25 = ref span30[num]; + ref QuestSequence reference25 = ref span14[2]; QuestSequence obj23 = new QuestSequence { Sequence = 2 @@ -456027,38 +374870,31 @@ public static class AssemblyQuestLoader num2 = 3; List list33 = new List(num2); CollectionsMarshal.SetCount(list33, num2); - Span span33 = CollectionsMarshal.AsSpan(list33); - index2 = 0; - span33[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) + Span span15 = CollectionsMarshal.AsSpan(list33); + span15[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(807.9048f, 152.2857f, -243.60707f), 961) { Fly = true, AetheryteShortcut = EAetheryteLocation.ElpisAnagnorisis }; - index2++; - span33[index2] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) + span15[1] = new QuestStep(EInteractionType.Interact, 2012293u, new Vector3(809.9336f, 151.81189f, -243.42719f), 961) { TargetTerritoryId = (ushort)1025 }; - index2++; - span33[index2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); + span15[2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); obj23.Steps = list33; reference25 = obj23; - num++; - ref QuestSequence reference26 = ref span30[num]; + ref QuestSequence reference26 = ref span14[3]; QuestSequence obj24 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj24.Steps = list34; reference26 = obj24; - num++; - ref QuestSequence reference27 = ref span30[num]; + ref QuestSequence reference27 = ref span14[4]; QuestSequence obj25 = new QuestSequence { Sequence = 4 @@ -456066,23 +374902,18 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.Interact, 1048610u, new Vector3(93.94971f, -1E-11f, 61.020752f), 1025); obj25.Steps = list35; reference27 = obj25; - num++; - ref QuestSequence reference28 = ref span30[num]; + ref QuestSequence reference28 = ref span14[5]; QuestSequence obj26 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.LabyrinthosAporia }; @@ -456095,16 +374926,13 @@ public static class AssemblyQuestLoader num = 1; List list37 = new List(num); CollectionsMarshal.SetCount(list37, num); - Span span37 = CollectionsMarshal.AsSpan(list37); - index = 0; - span37[index] = "Censored"; + CollectionsMarshal.AsSpan(list37)[0] = "Censored"; questRoot4.Author = list37; - index = 4; - List list38 = new List(index); - CollectionsMarshal.SetCount(list38, index); - Span span38 = CollectionsMarshal.AsSpan(list38); - num = 0; - ref QuestSequence reference29 = ref span38[num]; + num = 4; + List list38 = new List(num); + CollectionsMarshal.SetCount(list38, num); + Span span16 = CollectionsMarshal.AsSpan(list38); + ref QuestSequence reference29 = ref span16[0]; QuestSequence obj27 = new QuestSequence { Sequence = 0 @@ -456112,9 +374940,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052591u, new Vector3(71.854614f, -16.247f, 118.242065f), 962) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052591u, new Vector3(71.854614f, -16.247f, 118.242065f), 962) { AetheryteShortcut = EAetheryteLocation.OldSharlayan, AethernetShortcut = new AethernetShortcut @@ -456132,25 +374958,21 @@ public static class AssemblyQuestLoader }; obj27.Steps = list39; reference29 = obj27; - num++; - ref QuestSequence reference30 = ref span38[num]; + ref QuestSequence reference30 = ref span16[1]; QuestSequence obj28 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.MareLamentorumSinusLacrimarum }; obj28.Steps = list40; reference30 = obj28; - num++; - ref QuestSequence reference31 = ref span38[num]; + ref QuestSequence reference31 = ref span16[2]; QuestSequence obj29 = new QuestSequence { Sequence = 2 @@ -456158,26 +374980,21 @@ public static class AssemblyQuestLoader num2 = 1; List list41 = new List(num2); CollectionsMarshal.SetCount(list41, num2); - Span span41 = CollectionsMarshal.AsSpan(list41); - index2 = 0; - span41[index2] = new QuestStep(EInteractionType.Interact, 1052592u, new Vector3(25.680908f, -137.41669f, -411.30695f), 959) + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Interact, 1052592u, new Vector3(25.680908f, -137.41669f, -411.30695f), 959) { Fly = true }; obj29.Steps = list41; reference31 = obj29; - num++; - ref QuestSequence reference32 = ref span38[num]; + ref QuestSequence reference32 = ref span16[3]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5254) }; @@ -456190,16 +375007,13 @@ public static class AssemblyQuestLoader num = 1; List list43 = new List(num); CollectionsMarshal.SetCount(list43, num); - Span span43 = CollectionsMarshal.AsSpan(list43); - index = 0; - span43[index] = "liza"; + CollectionsMarshal.AsSpan(list43)[0] = "liza"; questRoot5.Author = list43; - index = 7; - List list44 = new List(index); - CollectionsMarshal.SetCount(list44, index); - Span span44 = CollectionsMarshal.AsSpan(list44); - num = 0; - ref QuestSequence reference33 = ref span44[num]; + num = 7; + List list44 = new List(num); + CollectionsMarshal.SetCount(list44, num); + Span span17 = CollectionsMarshal.AsSpan(list44); + ref QuestSequence reference33 = ref span17[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 @@ -456207,30 +375021,24 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052595u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237); obj31.Steps = list45; reference33 = obj31; - num++; - ref QuestSequence reference34 = ref span44[num]; + ref QuestSequence reference34 = ref span17[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj32.Steps = list46; reference34 = obj32; - num++; - ref QuestSequence reference35 = ref span44[num]; + ref QuestSequence reference35 = ref span17[2]; QuestSequence obj33 = new QuestSequence { Sequence = 2 @@ -456238,33 +375046,27 @@ public static class AssemblyQuestLoader num2 = 1; List list47 = new List(num2); CollectionsMarshal.SetCount(list47, num2); - Span span47 = CollectionsMarshal.AsSpan(list47); - index2 = 0; - span47[index2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-40.065205f, 11.930657f, -95.35249f), 1237) + CollectionsMarshal.AsSpan(list47)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(-40.065205f, 11.930657f, -95.35249f), 1237) { StopDistance = 0.5f }; obj33.Steps = list47; reference35 = obj33; - num++; - ref QuestSequence reference36 = ref span44[num]; + ref QuestSequence reference36 = ref span17[3]; QuestSequence obj34 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.5f }; obj34.Steps = list48; reference36 = obj34; - num++; - ref QuestSequence reference37 = ref span44[num]; + ref QuestSequence reference37 = ref span17[4]; QuestSequence obj35 = new QuestSequence { Sequence = 4 @@ -456272,65 +375074,52 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(533.5678f, 39.006783f, 167.32143f), 1237) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1052618u, new Vector3(533.5678f, 39.006783f, 167.32143f), 1237) { StopDistance = 0.5f }; obj35.Steps = list49; reference37 = obj35; - num++; - ref QuestSequence reference38 = ref span44[num]; + ref QuestSequence reference38 = ref span17[5]; QuestSequence obj36 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list50 = new List(index2); - CollectionsMarshal.SetCount(list50, index2); - Span span50 = CollectionsMarshal.AsSpan(list50); - num2 = 0; - ref QuestStep reference39 = ref span50[num2]; + num2 = 1; + List list50 = new List(num2); + CollectionsMarshal.SetCount(list50, num2); + ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list50)[0]; 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 span51 = CollectionsMarshal.AsSpan(list51); - index3 = 0; - span51[index3] = new DialogueChoice + Span span18 = CollectionsMarshal.AsSpan(list51); + span18[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK102_05254_Q2_000_000") }; - index3++; - span51[index3] = new DialogueChoice + span18[1] = 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; - 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; + 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; questStep4.PointMenuChoices = list52; reference39 = questStep4; obj36.Steps = list50; reference38 = obj36; - num++; - ref QuestSequence reference40 = ref span44[num]; + ref QuestSequence reference40 = ref span17[6]; QuestSequence obj37 = new QuestSequence { Sequence = byte.MaxValue @@ -456338,14 +375127,12 @@ public static class AssemblyQuestLoader num2 = 2; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.Action, null, null, 1237) + Span span20 = CollectionsMarshal.AsSpan(list53); + span20[0] = new QuestStep(EInteractionType.Action, null, null, 1237) { Action = EAction.DutyAction1 }; - index2++; - span53[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) + span20[1] = new QuestStep(EInteractionType.CompleteQuest, 1052617u, new Vector3(-53.177734f, -3.33786E-06f, -72.129456f), 1237) { NextQuestId = new QuestId(5409) }; @@ -456358,26 +375145,21 @@ public static class AssemblyQuestLoader num = 1; List list54 = new List(num); CollectionsMarshal.SetCount(list54, num); - Span span54 = CollectionsMarshal.AsSpan(list54); - index = 0; - span54[index] = "liza"; + CollectionsMarshal.AsSpan(list54)[0] = "liza"; 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]; + num = 7; + List list55 = new List(num); + CollectionsMarshal.SetCount(list55, num); + Span span21 = CollectionsMarshal.AsSpan(list55); + ref QuestSequence reference41 = ref span21[0]; QuestSequence obj38 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -456390,8 +375172,7 @@ public static class AssemblyQuestLoader }; obj38.Steps = list56; reference41 = obj38; - num++; - ref QuestSequence reference42 = ref span55[num]; + ref QuestSequence reference42 = ref span21[1]; QuestSequence obj39 = new QuestSequence { Sequence = 1 @@ -456399,35 +375180,29 @@ public static class AssemblyQuestLoader num2 = 1; List list57 = new List(num2); CollectionsMarshal.SetCount(list57, num2); - Span span57 = CollectionsMarshal.AsSpan(list57); - index2 = 0; - span57[index2] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + CollectionsMarshal.AsSpan(list57)[0] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true }; obj39.Steps = list57; reference42 = obj39; - num++; - ref QuestSequence reference43 = ref span55[num]; + ref QuestSequence reference43 = ref span21[2]; QuestSequence obj40 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; - num2++; - span58[num2] = new QuestStep(EInteractionType.Interact, 1052568u, new Vector3(562.46277f, -137.17401f, 565.1482f), 1189); + span22[1] = new QuestStep(EInteractionType.Interact, 1052568u, new Vector3(562.46277f, -137.17401f, 565.1482f), 1189); obj40.Steps = list58; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span55[num]; + ref QuestSequence reference44 = ref span21[3]; QuestSequence obj41 = new QuestSequence { Sequence = 3 @@ -456435,33 +375210,24 @@ public static class AssemblyQuestLoader num2 = 3; List list59 = new List(num2); CollectionsMarshal.SetCount(list59, num2); - Span span59 = CollectionsMarshal.AsSpan(list59); - index2 = 0; - ref QuestStep reference45 = ref span59[index2]; + Span span23 = CollectionsMarshal.AsSpan(list59); + ref QuestStep reference45 = ref span23[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list60; - index3 = 1; - List list61 = new List(index3); - CollectionsMarshal.SetCount(list61, index3); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = new DialogueChoice + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q1_000_000"), @@ -456469,32 +375235,23 @@ public static class AssemblyQuestLoader }; questStep5.DialogueChoices = list61; reference45 = questStep5; - index2++; - ref QuestStep reference46 = ref span59[index2]; + ref QuestStep reference46 = ref span23[1]; 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 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); + 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); questStep6.CompletionQuestVariablesFlags = list62; - index3 = 1; - List list63 = new List(index3); - CollectionsMarshal.SetCount(list63, index3); - Span span63 = CollectionsMarshal.AsSpan(list63); - num3 = 0; - span63[num3] = new DialogueChoice + num3 = 1; + List list63 = new List(num3); + CollectionsMarshal.SetCount(list63, num3); + CollectionsMarshal.AsSpan(list63)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q2_000_000"), @@ -456502,32 +375259,23 @@ public static class AssemblyQuestLoader }; questStep6.DialogueChoices = list63; reference46 = questStep6; - index2++; - ref QuestStep reference47 = ref span59[index2]; + ref QuestStep reference47 = ref span23[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list64; - index3 = 1; - List list65 = new List(index3); - CollectionsMarshal.SetCount(list65, index3); - Span span65 = CollectionsMarshal.AsSpan(list65); - num3 = 0; - span65[num3] = new DialogueChoice + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANMAM001_05255_Q3_000_000"), @@ -456537,25 +375285,21 @@ public static class AssemblyQuestLoader reference47 = questStep7; obj41.Steps = list59; reference44 = obj41; - num++; - ref QuestSequence reference48 = ref span55[num]; + ref QuestSequence reference48 = ref span21[4]; QuestSequence obj42 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj42.Steps = list66; reference48 = obj42; - num++; - ref QuestSequence reference49 = ref span55[num]; + ref QuestSequence reference49 = ref span21[5]; QuestSequence obj43 = new QuestSequence { Sequence = 5 @@ -456563,70 +375307,56 @@ public static class AssemblyQuestLoader num2 = 1; List list67 = new List(num2); CollectionsMarshal.SetCount(list67, num2); - Span span67 = CollectionsMarshal.AsSpan(list67); - index2 = 0; - span67[index2] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + CollectionsMarshal.AsSpan(list67)[0] = new QuestStep(EInteractionType.Interact, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true }; obj43.Steps = list67; reference49 = obj43; - num++; - ref QuestSequence reference50 = ref span55[num]; + ref QuestSequence reference50 = ref span21[6]; QuestSequence obj44 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list68 = new List(index2); - CollectionsMarshal.SetCount(list68, index2); - Span span68 = CollectionsMarshal.AsSpan(list68); - num2 = 0; - ref QuestStep reference51 = ref span68[num2]; + num2 = 3; + List list68 = new List(num2); + CollectionsMarshal.SetCount(list68, num2); + Span span27 = CollectionsMarshal.AsSpan(list68); + ref QuestStep reference51 = ref span27[0]; QuestStep questStep8 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list69 = new List(num3); CollectionsMarshal.SetCount(list69, num3); - Span span69 = CollectionsMarshal.AsSpan(list69); - index3 = 0; - span69[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list69)[0] = EExtendedClassJob.Miner; questStep8.RequiredQuestAcceptedJob = list69; - index3 = 1; - List list70 = new List(index3); - CollectionsMarshal.SetCount(list70, index3); - Span span70 = CollectionsMarshal.AsSpan(list70); - num3 = 0; - span70[num3] = new GatheredItem + num3 = 1; + List list70 = new List(num3); + CollectionsMarshal.SetCount(list70, num3); + CollectionsMarshal.AsSpan(list70)[0] = new GatheredItem { ItemId = 48009u, ItemCount = 3 }; questStep8.ItemsToGather = list70; reference51 = questStep8; - num2++; - ref QuestStep reference52 = ref span68[num2]; + ref QuestStep reference52 = ref span27[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - Span span71 = CollectionsMarshal.AsSpan(list71); - index3 = 0; - span71[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list71)[0] = EExtendedClassJob.Botanist; questStep9.RequiredQuestAcceptedJob = list71; - index3 = 1; - List list72 = new List(index3); - CollectionsMarshal.SetCount(list72, index3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = new GatheredItem + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = new GatheredItem { ItemId = 48010u, ItemCount = 3 }; questStep9.ItemsToGather = list72; reference52 = questStep9; - num2++; - span68[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) + span27[2] = new QuestStep(EInteractionType.CompleteQuest, 1052566u, new Vector3(535.3932f, -150f, 749.20264f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -456640,16 +375370,13 @@ public static class AssemblyQuestLoader num = 1; List list73 = new List(num); CollectionsMarshal.SetCount(list73, num); - Span span73 = CollectionsMarshal.AsSpan(list73); - index = 0; - span73[index] = "liza"; + CollectionsMarshal.AsSpan(list73)[0] = "liza"; questRoot7.Author = list73; - index = 4; - List list74 = new List(index); - CollectionsMarshal.SetCount(list74, index); - Span span74 = CollectionsMarshal.AsSpan(list74); - num = 0; - ref QuestSequence reference53 = ref span74[num]; + num = 4; + List list74 = new List(num); + CollectionsMarshal.SetCount(list74, num); + Span span28 = CollectionsMarshal.AsSpan(list74); + ref QuestSequence reference53 = ref span28[0]; QuestSequence obj45 = new QuestSequence { Sequence = 0 @@ -456657,30 +375384,24 @@ public static class AssemblyQuestLoader num2 = 1; List list75 = new List(num2); CollectionsMarshal.SetCount(list75, num2); - Span span75 = CollectionsMarshal.AsSpan(list75); - index2 = 0; - span75[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + CollectionsMarshal.AsSpan(list75)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj45.Steps = list75; reference53 = obj45; - num++; - ref QuestSequence reference54 = ref span74[num]; + ref QuestSequence reference54 = ref span28[1]; QuestSequence obj46 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj46.Steps = list76; reference54 = obj46; - num++; - ref QuestSequence reference55 = ref span74[num]; + ref QuestSequence reference55 = ref span28[2]; QuestSequence obj47 = new QuestSequence { Sequence = 2 @@ -456688,71 +375409,57 @@ public static class AssemblyQuestLoader num2 = 3; List list77 = new List(num2); CollectionsMarshal.SetCount(list77, num2); - Span span77 = CollectionsMarshal.AsSpan(list77); - index2 = 0; - ref QuestStep reference56 = ref span77[index2]; + Span span29 = CollectionsMarshal.AsSpan(list77); + ref QuestStep reference56 = ref span29[0]; QuestStep questStep10 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list78 = new List(num3); CollectionsMarshal.SetCount(list78, num3); - Span span78 = CollectionsMarshal.AsSpan(list78); - index3 = 0; - span78[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list78)[0] = EExtendedClassJob.Miner; questStep10.RequiredQuestAcceptedJob = list78; - index3 = 1; - List list79 = new List(index3); - CollectionsMarshal.SetCount(list79, index3); - Span span79 = CollectionsMarshal.AsSpan(list79); - num3 = 0; - span79[num3] = new GatheredItem + num3 = 1; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + CollectionsMarshal.AsSpan(list79)[0] = new GatheredItem { ItemId = 48012u, ItemCount = 3 }; questStep10.ItemsToGather = list79; reference56 = questStep10; - index2++; - ref QuestStep reference57 = ref span77[index2]; + ref QuestStep reference57 = ref span29[1]; QuestStep questStep11 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list80 = new List(num3); CollectionsMarshal.SetCount(list80, num3); - Span span80 = CollectionsMarshal.AsSpan(list80); - index3 = 0; - span80[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list80)[0] = EExtendedClassJob.Botanist; questStep11.RequiredQuestAcceptedJob = list80; - index3 = 1; - List list81 = new List(index3); - CollectionsMarshal.SetCount(list81, index3); - Span span81 = CollectionsMarshal.AsSpan(list81); - num3 = 0; - span81[num3] = new GatheredItem + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = new GatheredItem { ItemId = 48013u, ItemCount = 3 }; questStep11.ItemsToGather = list81; reference57 = questStep11; - index2++; - span77[index2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) + span29[2] = new QuestStep(EInteractionType.Interact, 1053761u, new Vector3(37.39978f, -173.47919f, 290.6996f), 1189) { Fly = true, Land = true }; obj47.Steps = list77; reference55 = obj47; - num++; - ref QuestSequence reference58 = ref span74[num]; + ref QuestSequence reference58 = ref span28[3]; QuestSequence obj48 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook @@ -456766,16 +375473,13 @@ public static class AssemblyQuestLoader num = 1; List list83 = new List(num); CollectionsMarshal.SetCount(list83, num); - Span span83 = CollectionsMarshal.AsSpan(list83); - index = 0; - span83[index] = "Theo"; + CollectionsMarshal.AsSpan(list83)[0] = "Theo"; questRoot8.Author = list83; - index = 6; - List list84 = new List(index); - CollectionsMarshal.SetCount(list84, index); - Span span84 = CollectionsMarshal.AsSpan(list84); - num = 0; - ref QuestSequence reference59 = ref span84[num]; + num = 6; + List list84 = new List(num); + CollectionsMarshal.SetCount(list84, num); + Span span30 = CollectionsMarshal.AsSpan(list84); + ref QuestSequence reference59 = ref span30[0]; QuestSequence obj49 = new QuestSequence { Sequence = 0 @@ -456783,30 +375487,24 @@ public static class AssemblyQuestLoader num2 = 1; List list85 = new List(num2); CollectionsMarshal.SetCount(list85, num2); - Span span85 = CollectionsMarshal.AsSpan(list85); - index2 = 0; - span85[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + CollectionsMarshal.AsSpan(list85)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj49.Steps = list85; reference59 = obj49; - num++; - ref QuestSequence reference60 = ref span84[num]; + ref QuestSequence reference60 = ref span30[1]; QuestSequence obj50 = 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, 1050891u, new Vector3(662.8672f, -137.17401f, 556.115f), 1189) + 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) { Fly = true }; obj50.Steps = list86; reference60 = obj50; - num++; - ref QuestSequence reference61 = ref span84[num]; + ref QuestSequence reference61 = ref span30[2]; QuestSequence obj51 = new QuestSequence { Sequence = 2 @@ -456814,9 +375512,7 @@ public static class AssemblyQuestLoader num2 = 1; List list87 = new List(num2); CollectionsMarshal.SetCount(list87, num2); - Span span87 = CollectionsMarshal.AsSpan(list87); - index2 = 0; - span87[index2] = new QuestStep(EInteractionType.Interact, 1053765u, new Vector3(-256.21423f, 1.9912608E-05f, 98.527466f), 1185) + CollectionsMarshal.AsSpan(list87)[0] = new QuestStep(EInteractionType.Interact, 1053765u, new Vector3(-256.21423f, 1.9912608E-05f, 98.527466f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -456834,22 +375530,18 @@ public static class AssemblyQuestLoader }; obj51.Steps = list87; reference61 = obj51; - num++; - ref QuestSequence reference62 = ref span84[num]; + ref QuestSequence reference62 = ref span30[3]; QuestSequence obj52 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj52.Steps = list88; reference62 = obj52; - num++; - ref QuestSequence reference63 = ref span84[num]; + ref QuestSequence reference63 = ref span30[4]; QuestSequence obj53 = new QuestSequence { Sequence = 4 @@ -456857,9 +375549,7 @@ public static class AssemblyQuestLoader num2 = 1; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Interact, 1053770u, new Vector3(528.4962f, -150f, 739.89465f), 1189) + CollectionsMarshal.AsSpan(list89)[0] = new QuestStep(EInteractionType.Interact, 1053770u, new Vector3(528.4962f, -150f, 739.89465f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -456873,62 +375563,50 @@ public static class AssemblyQuestLoader }; obj53.Steps = list89; reference63 = obj53; - num++; - ref QuestSequence reference64 = ref span84[num]; + ref QuestSequence reference64 = ref span30[5]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list90 = new List(index2); - CollectionsMarshal.SetCount(list90, index2); - Span span90 = CollectionsMarshal.AsSpan(list90); - num2 = 0; - ref QuestStep reference65 = ref span90[num2]; + num2 = 3; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + Span span31 = CollectionsMarshal.AsSpan(list90); + ref QuestStep reference65 = ref span31[0]; QuestStep questStep12 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list91 = new List(num3); CollectionsMarshal.SetCount(list91, num3); - Span span91 = CollectionsMarshal.AsSpan(list91); - index3 = 0; - span91[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list91)[0] = EExtendedClassJob.Miner; questStep12.RequiredQuestAcceptedJob = list91; - index3 = 1; - List list92 = new List(index3); - CollectionsMarshal.SetCount(list92, index3); - Span span92 = CollectionsMarshal.AsSpan(list92); - num3 = 0; - span92[num3] = new GatheredItem + num3 = 1; + List list92 = new List(num3); + CollectionsMarshal.SetCount(list92, num3); + CollectionsMarshal.AsSpan(list92)[0] = new GatheredItem { ItemId = 48015u, ItemCount = 3 }; questStep12.ItemsToGather = list92; reference65 = questStep12; - num2++; - ref QuestStep reference66 = ref span90[num2]; + ref QuestStep reference66 = ref span31[1]; QuestStep questStep13 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list93 = new List(num3); CollectionsMarshal.SetCount(list93, num3); - Span span93 = CollectionsMarshal.AsSpan(list93); - index3 = 0; - span93[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list93)[0] = EExtendedClassJob.Botanist; questStep13.RequiredQuestAcceptedJob = list93; - index3 = 1; - List list94 = new List(index3); - CollectionsMarshal.SetCount(list94, index3); - Span span94 = CollectionsMarshal.AsSpan(list94); - num3 = 0; - span94[num3] = new GatheredItem + num3 = 1; + List list94 = new List(num3); + CollectionsMarshal.SetCount(list94, num3); + CollectionsMarshal.AsSpan(list94)[0] = new GatheredItem { ItemId = 48016u, ItemCount = 3 }; questStep13.ItemsToGather = list94; reference66 = questStep13; - num2++; - span90[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) + span31[2] = new QuestStep(EInteractionType.CompleteQuest, 1053790u, new Vector3(578.33215f, -144.9379f, 723.81165f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -456954,16 +375632,13 @@ public static class AssemblyQuestLoader num = 1; List list95 = new List(num); CollectionsMarshal.SetCount(list95, num); - Span span95 = CollectionsMarshal.AsSpan(list95); - index = 0; - span95[index] = "Theo"; + CollectionsMarshal.AsSpan(list95)[0] = "Theo"; questRoot9.Author = list95; - index = 8; - List list96 = new List(index); - CollectionsMarshal.SetCount(list96, index); - Span span96 = CollectionsMarshal.AsSpan(list96); - num = 0; - ref QuestSequence reference67 = ref span96[num]; + num = 8; + List list96 = new List(num); + CollectionsMarshal.SetCount(list96, num); + Span span32 = CollectionsMarshal.AsSpan(list96); + ref QuestSequence reference67 = ref span32[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -456971,26 +375646,21 @@ public static class AssemblyQuestLoader num2 = 1; List list97 = new List(num2); CollectionsMarshal.SetCount(list97, num2); - Span span97 = CollectionsMarshal.AsSpan(list97); - index2 = 0; - span97[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189) + CollectionsMarshal.AsSpan(list97)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189) { Fly = true }; obj55.Steps = list97; reference67 = obj55; - num++; - ref QuestSequence reference68 = ref span96[num]; + ref QuestSequence reference68 = ref span32[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts, SkipConditions = new SkipConditions @@ -457003,8 +375673,7 @@ public static class AssemblyQuestLoader }; obj56.Steps = list98; reference68 = obj56; - num++; - ref QuestSequence reference69 = ref span96[num]; + ref QuestSequence reference69 = ref span32[2]; QuestSequence obj57 = new QuestSequence { Sequence = 2 @@ -457012,23 +375681,19 @@ public static class AssemblyQuestLoader num2 = 1; List list99 = new List(num2); CollectionsMarshal.SetCount(list99, num2); - Span span99 = CollectionsMarshal.AsSpan(list99); - index2 = 0; - span99[index2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191); + CollectionsMarshal.AsSpan(list99)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(57.694214f, 38.03109f, -279.8047f), 1191); obj57.Steps = list99; reference69 = obj57; - num++; - ref QuestSequence reference70 = ref span96[num]; + ref QuestSequence reference70 = ref span32[3]; QuestSequence obj58 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list100 = new List(index2); - CollectionsMarshal.SetCount(list100, index2); - Span span100 = CollectionsMarshal.AsSpan(list100); - num2 = 0; - ref QuestStep reference71 = ref span100[num2]; + num2 = 3; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span33 = CollectionsMarshal.AsSpan(list100); + ref QuestStep reference71 = ref span33[0]; QuestStep obj59 = new QuestStep(EInteractionType.Interact, 2014662u, new Vector3(28.94629f, 35.446655f, -330.73932f), 1191) { Fly = true @@ -457036,61 +375701,43 @@ public static class AssemblyQuestLoader num3 = 6; List> list101 = new List>(num3); CollectionsMarshal.SetCount(list101, num3); - Span> span101 = CollectionsMarshal.AsSpan(list101); - index3 = 0; - ref List reference72 = ref span101[index3]; + Span> span34 = CollectionsMarshal.AsSpan(list101); + ref List reference72 = ref span34[0]; int num4 = 1; List list102 = new List(num4); CollectionsMarshal.SetCount(list102, num4); - Span span102 = CollectionsMarshal.AsSpan(list102); - int index4 = 0; - span102[index4] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list102)[0] = new QuestWorkValue(0, 0, EQuestWorkMode.Bitwise); reference72 = list102; - index3++; - span101[index3] = null; - index3++; - span101[index3] = null; - index3++; - span101[index3] = null; - index3++; - span101[index3] = null; - index3++; - span101[index3] = null; + span34[1] = null; + span34[2] = null; + span34[3] = null; + span34[4] = null; + span34[5] = null; obj59.RequiredQuestVariables = list101; reference71 = obj59; - num2++; - ref QuestStep reference73 = ref span100[num2]; + ref QuestStep reference73 = ref span33[1]; QuestStep obj60 = new QuestStep(EInteractionType.Interact, 1053774u, new Vector3(10.055664f, 34.83803f, -387.2282f), 1191) { Fly = true }; - 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); + 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); reference74 = list104; - num3++; - span103[num3] = null; - num3++; - span103[num3] = null; - num3++; - span103[num3] = null; - num3++; - span103[num3] = null; - num3++; - span103[num3] = null; + span35[1] = null; + span35[2] = null; + span35[3] = null; + span35[4] = null; + span35[5] = null; obj60.RequiredQuestVariables = list103; reference73 = obj60; - num2++; - ref QuestStep reference75 = ref span100[num2]; + ref QuestStep reference75 = ref span33[2]; QuestStep obj61 = new QuestStep(EInteractionType.Interact, 1053773u, new Vector3(-13.748474f, 34.838024f, -403.55536f), 1191) { Fly = true @@ -457098,32 +375745,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list105 = new List>(num3); CollectionsMarshal.SetCount(list105, num3); - Span> span105 = CollectionsMarshal.AsSpan(list105); - index3 = 0; - ref List reference76 = ref span105[index3]; + Span> span36 = CollectionsMarshal.AsSpan(list105); + ref List reference76 = ref span36[0]; num4 = 1; List list106 = new List(num4); CollectionsMarshal.SetCount(list106, num4); - Span span106 = CollectionsMarshal.AsSpan(list106); - index4 = 0; - span106[index4] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list106)[0] = new QuestWorkValue((byte)2, (byte)1, EQuestWorkMode.Bitwise); reference76 = list106; - index3++; - span105[index3] = null; - index3++; - span105[index3] = null; - index3++; - span105[index3] = null; - index3++; - span105[index3] = null; - index3++; - span105[index3] = null; + span36[1] = null; + span36[2] = null; + span36[3] = null; + span36[4] = null; + span36[5] = null; obj61.RequiredQuestVariables = list105; reference75 = obj61; obj58.Steps = list100; reference70 = obj58; - num++; - ref QuestSequence reference77 = ref span96[num]; + ref QuestSequence reference77 = ref span32[4]; QuestSequence obj62 = new QuestSequence { Sequence = 4 @@ -457131,26 +375769,21 @@ public static class AssemblyQuestLoader num2 = 1; List list107 = new List(num2); CollectionsMarshal.SetCount(list107, num2); - Span span107 = CollectionsMarshal.AsSpan(list107); - index2 = 0; - span107[index2] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(-54.151768f, 30.108292f, -418.1114f), 1191) + CollectionsMarshal.AsSpan(list107)[0] = new QuestStep(EInteractionType.Interact, 1053772u, new Vector3(-54.151768f, 30.108292f, -418.1114f), 1191) { Fly = true }; obj62.Steps = list107; reference77 = obj62; - num++; - ref QuestSequence reference78 = ref span96[num]; + ref QuestSequence reference78 = ref span32[5]; QuestSequence obj63 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -457163,8 +375796,7 @@ public static class AssemblyQuestLoader }; obj63.Steps = list108; reference78 = obj63; - num++; - ref QuestSequence reference79 = ref span96[num]; + ref QuestSequence reference79 = ref span32[6]; QuestSequence obj64 = new QuestSequence { Sequence = 6 @@ -457172,67 +375804,53 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - span109[index2] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189); + CollectionsMarshal.AsSpan(list109)[0] = new QuestStep(EInteractionType.Interact, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189); obj64.Steps = list109; reference79 = obj64; - num++; - ref QuestSequence reference80 = ref span96[num]; + ref QuestSequence reference80 = ref span32[7]; QuestSequence obj65 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference81 = ref span110[num2]; + num2 = 3; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span37 = CollectionsMarshal.AsSpan(list110); + ref QuestStep reference81 = ref span37[0]; QuestStep questStep14 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list111 = new List(index3); - CollectionsMarshal.SetCount(list111, index3); - Span span111 = CollectionsMarshal.AsSpan(list111); - num3 = 0; - span111[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list111 = new List(num3); + CollectionsMarshal.SetCount(list111, num3); + CollectionsMarshal.AsSpan(list111)[0] = EExtendedClassJob.Miner; questStep14.RequiredQuestAcceptedJob = list111; num3 = 1; List list112 = new List(num3); CollectionsMarshal.SetCount(list112, num3); - Span span112 = CollectionsMarshal.AsSpan(list112); - index3 = 0; - span112[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list112)[0] = new GatheredItem { ItemId = 48018u, ItemCount = 3 }; questStep14.ItemsToGather = list112; reference81 = questStep14; - num2++; - ref QuestStep reference82 = ref span110[num2]; + ref QuestStep reference82 = ref span37[1]; QuestStep questStep15 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list113 = new List(index3); - CollectionsMarshal.SetCount(list113, index3); - Span span113 = CollectionsMarshal.AsSpan(list113); - num3 = 0; - span113[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list113 = new List(num3); + CollectionsMarshal.SetCount(list113, num3); + CollectionsMarshal.AsSpan(list113)[0] = EExtendedClassJob.Botanist; questStep15.RequiredQuestAcceptedJob = list113; num3 = 1; List list114 = new List(num3); CollectionsMarshal.SetCount(list114, num3); - Span span114 = CollectionsMarshal.AsSpan(list114); - index3 = 0; - span114[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list114)[0] = new GatheredItem { ItemId = 48019u, ItemCount = 3 }; questStep15.ItemsToGather = list114; reference82 = questStep15; - num2++; - span110[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) + span37[2] = new QuestStep(EInteractionType.CompleteQuest, 1053775u, new Vector3(552.9717f, -150f, 757.71716f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -457258,16 +375876,13 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "Theo"; + CollectionsMarshal.AsSpan(list115)[0] = "Theo"; questRoot10.Author = list115; - index = 8; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference83 = ref span116[num]; + num = 8; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span38 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference83 = ref span38[0]; QuestSequence obj66 = new QuestSequence { Sequence = 0 @@ -457275,23 +375890,18 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj66.Steps = list117; reference83 = obj66; - num++; - ref QuestSequence reference84 = ref span116[num]; + ref QuestSequence reference84 = ref span38[1]; QuestSequence obj67 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax, @@ -457310,8 +375920,7 @@ public static class AssemblyQuestLoader }; obj67.Steps = list118; reference84 = obj67; - num++; - ref QuestSequence reference85 = ref span116[num]; + ref QuestSequence reference85 = ref span38[2]; QuestSequence obj68 = new QuestSequence { Sequence = 2 @@ -457319,26 +375928,21 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 1053778u, new Vector3(-424.30762f, 23.535458f, -496.2997f), 1189) + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 1053778u, new Vector3(-424.30762f, 23.535458f, -496.2997f), 1189) { Fly = true }; obj68.Steps = list119; reference85 = obj68; - num++; - ref QuestSequence reference86 = ref span116[num]; + ref QuestSequence reference86 = ref span38[3]; QuestSequence obj69 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -457357,8 +375961,7 @@ public static class AssemblyQuestLoader }; obj69.Steps = list120; reference86 = obj69; - num++; - ref QuestSequence reference87 = ref span116[num]; + ref QuestSequence reference87 = ref span38[4]; QuestSequence obj70 = new QuestSequence { Sequence = 4 @@ -457366,115 +375969,84 @@ public static class AssemblyQuestLoader num2 = 3; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - ref QuestStep reference88 = ref span121[index2]; + Span span39 = CollectionsMarshal.AsSpan(list121); + ref QuestStep reference88 = ref span39[0]; QuestStep obj71 = new QuestStep(EInteractionType.Interact, 1053782u, new Vector3(705.3176f, -133.17163f, 515.3734f), 1189) { Fly = true }; - 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); + 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); reference89 = list123; - num3++; - span122[num3] = null; - num3++; - span122[num3] = null; - num3++; - span122[num3] = null; - num3++; - span122[num3] = null; - num3++; - span122[num3] = null; + span40[1] = null; + span40[2] = null; + span40[3] = null; + span40[4] = null; + span40[5] = null; obj71.RequiredQuestVariables = list122; reference88 = obj71; - index2++; - ref QuestStep reference90 = ref span121[index2]; + ref QuestStep reference90 = ref span39[1]; 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> span124 = CollectionsMarshal.AsSpan(list124); - index3 = 0; - ref List reference91 = ref span124[index3]; + Span> span41 = CollectionsMarshal.AsSpan(list124); + ref List reference91 = ref span41[0]; num4 = 1; List list125 = new List(num4); CollectionsMarshal.SetCount(list125, num4); - Span span125 = CollectionsMarshal.AsSpan(list125); - index4 = 0; - span125[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list125)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference91 = list125; - index3++; - span124[index3] = null; - index3++; - span124[index3] = null; - index3++; - span124[index3] = null; - index3++; - span124[index3] = null; - index3++; - span124[index3] = null; + span41[1] = null; + span41[2] = null; + span41[3] = null; + span41[4] = null; + span41[5] = null; questStep16.RequiredQuestVariables = list124; reference90 = questStep16; - index2++; - ref QuestStep reference92 = ref span121[index2]; + ref QuestStep reference92 = ref span39[2]; QuestStep questStep17 = new QuestStep(EInteractionType.Interact, 1053784u, new Vector3(664.33203f, -137.17398f, 546.2882f), 1189); - 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); + 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); reference93 = list127; - num3++; - span126[num3] = null; - num3++; - span126[num3] = null; - num3++; - span126[num3] = null; - num3++; - span126[num3] = null; - num3++; - span126[num3] = null; + span42[1] = null; + span42[2] = null; + span42[3] = null; + span42[4] = null; + span42[5] = null; questStep17.RequiredQuestVariables = list126; reference92 = questStep17; obj70.Steps = list121; reference87 = obj70; - num++; - ref QuestSequence reference94 = ref span116[num]; + ref QuestSequence reference94 = ref span38[5]; QuestSequence obj72 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj72.Steps = list128; reference94 = obj72; - num++; - ref QuestSequence reference95 = ref span116[num]; + ref QuestSequence reference95 = ref span38[6]; QuestSequence obj73 = new QuestSequence { Sequence = 6 @@ -457482,53 +376054,42 @@ public static class AssemblyQuestLoader num2 = 3; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref QuestStep reference96 = ref span129[index2]; + Span span43 = CollectionsMarshal.AsSpan(list129); + ref QuestStep reference96 = ref span43[0]; QuestStep questStep18 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list130 = new List(num3); CollectionsMarshal.SetCount(list130, num3); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list130)[0] = EExtendedClassJob.Miner; questStep18.RequiredQuestAcceptedJob = list130; - index3 = 1; - List list131 = new List(index3); - CollectionsMarshal.SetCount(list131, index3); - Span span131 = CollectionsMarshal.AsSpan(list131); - num3 = 0; - span131[num3] = new GatheredItem + num3 = 1; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + CollectionsMarshal.AsSpan(list131)[0] = new GatheredItem { ItemId = 48021u, ItemCount = 3 }; questStep18.ItemsToGather = list131; reference96 = questStep18; - index2++; - ref QuestStep reference97 = ref span129[index2]; + ref QuestStep reference97 = ref span43[1]; QuestStep questStep19 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list132 = new List(num3); CollectionsMarshal.SetCount(list132, num3); - Span span132 = CollectionsMarshal.AsSpan(list132); - index3 = 0; - span132[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list132)[0] = EExtendedClassJob.Botanist; questStep19.RequiredQuestAcceptedJob = list132; - index3 = 1; - List list133 = new List(index3); - CollectionsMarshal.SetCount(list133, index3); - Span span133 = CollectionsMarshal.AsSpan(list133); - num3 = 0; - span133[num3] = new GatheredItem + num3 = 1; + List list133 = new List(num3); + CollectionsMarshal.SetCount(list133, num3); + CollectionsMarshal.AsSpan(list133)[0] = new GatheredItem { ItemId = 48022u, ItemCount = 3 }; questStep19.ItemsToGather = list133; reference97 = questStep19; - index2++; - span129[index2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) + span43[2] = new QuestStep(EInteractionType.Interact, 1053780u, new Vector3(576.1653f, -145.13588f, 751.09485f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -457547,18 +376108,15 @@ public static class AssemblyQuestLoader }; obj73.Steps = list129; reference95 = obj73; - num++; - ref QuestSequence reference98 = ref span116[num]; + ref QuestSequence reference98 = ref span38[7]; QuestSequence obj74 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj74.Steps = list134; reference98 = obj74; questRoot10.QuestSequence = list116; @@ -457568,16 +376126,13 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "Censored"; + CollectionsMarshal.AsSpan(list135)[0] = "Censored"; questRoot11.Author = list135; - index = 4; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference99 = ref span136[num]; + num = 4; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span44 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference99 = ref span44[0]; QuestSequence obj75 = new QuestSequence { Sequence = 0 @@ -457585,27 +376140,21 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj75.Steps = list137; reference99 = obj75; - num++; - ref QuestSequence reference100 = ref span136[num]; + ref QuestSequence reference100 = ref span44[1]; QuestSequence obj76 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj76.Steps = list138; reference100 = obj76; - num++; - ref QuestSequence reference101 = ref span136[num]; + ref QuestSequence reference101 = ref span44[2]; QuestSequence obj77 = new QuestSequence { Sequence = 2 @@ -457613,23 +376162,18 @@ public static class AssemblyQuestLoader num2 = 1; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - span139[index2] = new QuestStep(EInteractionType.Interact, 1053787u, new Vector3(596.7345f, -143.12323f, 769.9243f), 1189); + CollectionsMarshal.AsSpan(list139)[0] = new QuestStep(EInteractionType.Interact, 1053787u, new Vector3(596.7345f, -143.12323f, 769.9243f), 1189); obj77.Steps = list139; reference101 = obj77; - num++; - ref QuestSequence reference102 = ref span136[num]; + ref QuestSequence reference102 = ref span44[3]; QuestSequence obj78 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -457642,16 +376186,13 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot12.Author = list141; - index = 2; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference103 = ref span142[num]; + num = 2; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span45 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference103 = ref span45[0]; QuestSequence obj79 = new QuestSequence { Sequence = 0 @@ -457659,67 +376200,53 @@ public static class AssemblyQuestLoader num2 = 1; List list143 = new List(num2); CollectionsMarshal.SetCount(list143, num2); - Span span143 = CollectionsMarshal.AsSpan(list143); - index2 = 0; - span143[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list143)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj79.Steps = list143; reference103 = obj79; - num++; - ref QuestSequence reference104 = ref span142[num]; + ref QuestSequence reference104 = ref span45[1]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list144 = new List(index2); - CollectionsMarshal.SetCount(list144, index2); - Span span144 = CollectionsMarshal.AsSpan(list144); - num2 = 0; - ref QuestStep reference105 = ref span144[num2]; + num2 = 3; + List list144 = new List(num2); + CollectionsMarshal.SetCount(list144, num2); + Span span46 = CollectionsMarshal.AsSpan(list144); + ref QuestStep reference105 = ref span46[0]; QuestStep questStep20 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list145 = new List(num3); CollectionsMarshal.SetCount(list145, num3); - Span span145 = CollectionsMarshal.AsSpan(list145); - index3 = 0; - span145[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list145)[0] = EExtendedClassJob.Miner; questStep20.RequiredQuestAcceptedJob = list145; - index3 = 1; - List list146 = new List(index3); - CollectionsMarshal.SetCount(list146, index3); - Span span146 = CollectionsMarshal.AsSpan(list146); - num3 = 0; - span146[num3] = new GatheredItem + num3 = 1; + List list146 = new List(num3); + CollectionsMarshal.SetCount(list146, num3); + CollectionsMarshal.AsSpan(list146)[0] = new GatheredItem { ItemId = 48024u, ItemCount = 3 }; questStep20.ItemsToGather = list146; reference105 = questStep20; - num2++; - ref QuestStep reference106 = ref span144[num2]; + ref QuestStep reference106 = ref span46[1]; QuestStep questStep21 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list147 = new List(num3); CollectionsMarshal.SetCount(list147, num3); - Span span147 = CollectionsMarshal.AsSpan(list147); - index3 = 0; - span147[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list147)[0] = EExtendedClassJob.Botanist; questStep21.RequiredQuestAcceptedJob = list147; - index3 = 1; - List list148 = new List(index3); - CollectionsMarshal.SetCount(list148, index3); - Span span148 = CollectionsMarshal.AsSpan(list148); - num3 = 0; - span148[num3] = new GatheredItem + num3 = 1; + List list148 = new List(num3); + CollectionsMarshal.SetCount(list148, num3); + CollectionsMarshal.AsSpan(list148)[0] = new GatheredItem { ItemId = 48025u, ItemCount = 3 }; questStep21.ItemsToGather = list148; reference106 = questStep21; - num2++; - span144[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span46[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -457745,16 +376272,13 @@ public static class AssemblyQuestLoader num = 1; List list149 = new List(num); CollectionsMarshal.SetCount(list149, num); - Span span149 = CollectionsMarshal.AsSpan(list149); - index = 0; - span149[index] = "liza"; + CollectionsMarshal.AsSpan(list149)[0] = "liza"; questRoot13.Author = list149; - index = 4; - List list150 = new List(index); - CollectionsMarshal.SetCount(list150, index); - Span span150 = CollectionsMarshal.AsSpan(list150); - num = 0; - ref QuestSequence reference107 = ref span150[num]; + num = 4; + List list150 = new List(num); + CollectionsMarshal.SetCount(list150, num); + Span span47 = CollectionsMarshal.AsSpan(list150); + ref QuestSequence reference107 = ref span47[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -457762,23 +376286,19 @@ public static class AssemblyQuestLoader num2 = 1; List list151 = new List(num2); CollectionsMarshal.SetCount(list151, num2); - Span span151 = CollectionsMarshal.AsSpan(list151); - index2 = 0; - span151[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list151)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj81.Steps = list151; reference107 = obj81; - num++; - ref QuestSequence reference108 = ref span150[num]; + ref QuestSequence reference108 = ref span47[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list152 = new List(index2); - CollectionsMarshal.SetCount(list152, index2); - Span span152 = CollectionsMarshal.AsSpan(list152); - num2 = 0; - ref QuestStep reference109 = ref span152[num2]; + num2 = 3; + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + Span span48 = CollectionsMarshal.AsSpan(list152); + ref QuestStep reference109 = ref span48[0]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 2014697u, new Vector3(245.01404f, -158.3429f, 720.4851f), 1189) { StopDistance = 0.5f, @@ -457787,48 +376307,34 @@ public static class AssemblyQuestLoader num3 = 6; List list153 = new List(num3); CollectionsMarshal.SetCount(list153, num3); - 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); + 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); obj83.CompletionQuestVariablesFlags = list153; reference109 = obj83; - num2++; - ref QuestStep reference110 = ref span152[num2]; + ref QuestStep reference110 = ref span48[1]; QuestStep obj84 = new QuestStep(EInteractionType.Interact, 2014699u, new Vector3(242.14539f, -158.67859f, 668.39087f), 1189) { StopDistance = 0.5f, Fly = true }; - 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); + 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); obj84.CompletionQuestVariablesFlags = list154; reference110 = obj84; - num2++; - ref QuestStep reference111 = ref span152[num2]; + ref QuestStep reference111 = ref span48[2]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2014698u, new Vector3(195.33069f, -158.09875f, 726.43616f), 1189) { StopDistance = 0.5f, @@ -457837,25 +376343,18 @@ public static class AssemblyQuestLoader num3 = 6; List list155 = new List(num3); CollectionsMarshal.SetCount(list155, num3); - 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); + 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); obj85.CompletionQuestVariablesFlags = list155; reference111 = obj85; obj82.Steps = list152; reference108 = obj82; - num++; - ref QuestSequence reference112 = ref span150[num]; + ref QuestSequence reference112 = ref span47[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -457863,32 +376362,27 @@ public static class AssemblyQuestLoader num2 = 2; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + Span span52 = CollectionsMarshal.AsSpan(list156); + span52[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true }; - index2++; - span156[index2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + span52[1] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj86.Steps = list156; reference112 = obj86; - num++; - ref QuestSequence reference113 = ref span150[num]; + ref QuestSequence reference113 = ref span47[3]; QuestSequence obj87 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -457914,16 +376408,13 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "liza"; + CollectionsMarshal.AsSpan(list158)[0] = "liza"; questRoot14.Author = list158; - index = 2; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference114 = ref span159[num]; + num = 2; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span53 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference114 = ref span53[0]; QuestSequence obj88 = new QuestSequence { Sequence = 0 @@ -457931,67 +376422,53 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - span160[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list160)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj88.Steps = list160; reference114 = obj88; - num++; - ref QuestSequence reference115 = ref span159[num]; + ref QuestSequence reference115 = ref span53[1]; QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list161 = new List(index2); - CollectionsMarshal.SetCount(list161, index2); - Span span161 = CollectionsMarshal.AsSpan(list161); - num2 = 0; - ref QuestStep reference116 = ref span161[num2]; + num2 = 3; + List list161 = new List(num2); + CollectionsMarshal.SetCount(list161, num2); + Span span54 = CollectionsMarshal.AsSpan(list161); + ref QuestStep reference116 = ref span54[0]; QuestStep questStep22 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list162 = new List(index3); - CollectionsMarshal.SetCount(list162, index3); - Span span162 = CollectionsMarshal.AsSpan(list162); - num3 = 0; - span162[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list162 = new List(num3); + CollectionsMarshal.SetCount(list162, num3); + CollectionsMarshal.AsSpan(list162)[0] = EExtendedClassJob.Miner; questStep22.RequiredQuestAcceptedJob = list162; num3 = 1; List list163 = new List(num3); CollectionsMarshal.SetCount(list163, num3); - Span span163 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span163[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list163)[0] = new GatheredItem { ItemId = 48027u, ItemCount = 3 }; questStep22.ItemsToGather = list163; reference116 = questStep22; - num2++; - ref QuestStep reference117 = ref span161[num2]; + ref QuestStep reference117 = ref span54[1]; QuestStep questStep23 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = EExtendedClassJob.Botanist; questStep23.RequiredQuestAcceptedJob = list164; num3 = 1; List list165 = new List(num3); CollectionsMarshal.SetCount(list165, num3); - Span span165 = CollectionsMarshal.AsSpan(list165); - index3 = 0; - span165[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list165)[0] = new GatheredItem { ItemId = 48028u, ItemCount = 3 }; questStep23.ItemsToGather = list165; reference117 = questStep23; - num2++; - span161[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span54[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458017,16 +376494,13 @@ public static class AssemblyQuestLoader num = 1; List list166 = new List(num); CollectionsMarshal.SetCount(list166, num); - Span span166 = CollectionsMarshal.AsSpan(list166); - index = 0; - span166[index] = "liza"; + CollectionsMarshal.AsSpan(list166)[0] = "liza"; questRoot15.Author = list166; - index = 3; - List list167 = new List(index); - CollectionsMarshal.SetCount(list167, index); - Span span167 = CollectionsMarshal.AsSpan(list167); - num = 0; - ref QuestSequence reference118 = ref span167[num]; + num = 3; + List list167 = new List(num); + CollectionsMarshal.SetCount(list167, num); + Span span55 = CollectionsMarshal.AsSpan(list167); + ref QuestSequence reference118 = ref span55[0]; QuestSequence obj90 = new QuestSequence { Sequence = 0 @@ -458034,80 +376508,64 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj90.Steps = list168; reference118 = obj90; - num++; - ref QuestSequence reference119 = ref span167[num]; + ref QuestSequence reference119 = ref span55[1]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list169 = new List(index2); - CollectionsMarshal.SetCount(list169, index2); - Span span169 = CollectionsMarshal.AsSpan(list169); - num2 = 0; - ref QuestStep reference120 = ref span169[num2]; + num2 = 4; + List list169 = new List(num2); + CollectionsMarshal.SetCount(list169, num2); + Span span56 = CollectionsMarshal.AsSpan(list169); + ref QuestStep reference120 = ref span56[0]; QuestStep questStep24 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list170 = new List(index3); - CollectionsMarshal.SetCount(list170, index3); - Span span170 = CollectionsMarshal.AsSpan(list170); - num3 = 0; - span170[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list170 = new List(num3); + CollectionsMarshal.SetCount(list170, num3); + CollectionsMarshal.AsSpan(list170)[0] = EExtendedClassJob.Miner; questStep24.RequiredQuestAcceptedJob = list170; num3 = 1; List list171 = new List(num3); CollectionsMarshal.SetCount(list171, num3); - Span span171 = CollectionsMarshal.AsSpan(list171); - index3 = 0; - span171[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list171)[0] = new GatheredItem { ItemId = 48030u, ItemCount = 3 }; questStep24.ItemsToGather = list171; reference120 = questStep24; - num2++; - ref QuestStep reference121 = ref span169[num2]; + ref QuestStep reference121 = ref span56[1]; QuestStep questStep25 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list172 = new List(index3); - CollectionsMarshal.SetCount(list172, index3); - Span span172 = CollectionsMarshal.AsSpan(list172); - num3 = 0; - span172[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list172 = new List(num3); + CollectionsMarshal.SetCount(list172, num3); + CollectionsMarshal.AsSpan(list172)[0] = EExtendedClassJob.Botanist; questStep25.RequiredQuestAcceptedJob = list172; num3 = 1; List list173 = new List(num3); CollectionsMarshal.SetCount(list173, num3); - Span span173 = CollectionsMarshal.AsSpan(list173); - index3 = 0; - span173[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list173)[0] = new GatheredItem { ItemId = 48031u, ItemCount = 3 }; questStep25.ItemsToGather = list173; reference121 = questStep25; - num2++; - span169[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + span56[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true }; - num2++; - span169[num2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + span56[3] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj91.Steps = list169; reference119 = obj91; - num++; - ref QuestSequence reference122 = ref span167[num]; + ref QuestSequence reference122 = ref span55[2]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue @@ -458115,9 +376573,7 @@ public static class AssemblyQuestLoader num2 = 1; List list174 = new List(num2); CollectionsMarshal.SetCount(list174, num2); - Span span174 = CollectionsMarshal.AsSpan(list174); - index2 = 0; - span174[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + CollectionsMarshal.AsSpan(list174)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458143,30 +376599,24 @@ public static class AssemblyQuestLoader num = 1; List list175 = new List(num); CollectionsMarshal.SetCount(list175, num); - Span span175 = CollectionsMarshal.AsSpan(list175); - index = 0; - span175[index] = "liza"; + CollectionsMarshal.AsSpan(list175)[0] = "liza"; questRoot16.Author = list175; - index = 4; - List list176 = new List(index); - CollectionsMarshal.SetCount(list176, index); - Span span176 = CollectionsMarshal.AsSpan(list176); - num = 0; - ref QuestSequence reference123 = ref span176[num]; + num = 4; + List list176 = new List(num); + CollectionsMarshal.SetCount(list176, num); + Span span57 = CollectionsMarshal.AsSpan(list176); + ref QuestSequence reference123 = ref span57[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj93.Steps = list177; reference123 = obj93; - num++; - ref QuestSequence reference124 = ref span176[num]; + ref QuestSequence reference124 = ref span57[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 @@ -458174,36 +376624,30 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - span178[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.46579f, -160.31227f, 431.11423f), 1189) + Span span58 = CollectionsMarshal.AsSpan(list178); + span58[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(213.46579f, -160.31227f, 431.11423f), 1189) { StopDistance = 1f, Fly = true }; - index2++; - span178[index2] = new QuestStep(EInteractionType.Interact, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) + span58[1] = new QuestStep(EInteractionType.Interact, 1048991u, new Vector3(211.10852f, -160.27475f, 432.4253f), 1189) { StopDistance = 7f }; obj94.Steps = list178; reference124 = obj94; - num++; - ref QuestSequence reference125 = ref span176[num]; + ref QuestSequence reference125 = ref span57[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj95.Steps = list179; reference125 = obj95; - num++; - ref QuestSequence reference126 = ref span176[num]; + ref QuestSequence reference126 = ref span57[3]; QuestSequence obj96 = new QuestSequence { Sequence = byte.MaxValue @@ -458211,9 +376655,7 @@ public static class AssemblyQuestLoader num2 = 1; List list180 = new List(num2); CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - span180[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458239,30 +376681,24 @@ public static class AssemblyQuestLoader num = 1; List list181 = new List(num); CollectionsMarshal.SetCount(list181, num); - Span span181 = CollectionsMarshal.AsSpan(list181); - index = 0; - span181[index] = "liza"; + CollectionsMarshal.AsSpan(list181)[0] = "liza"; questRoot17.Author = list181; - index = 3; - List list182 = new List(index); - CollectionsMarshal.SetCount(list182, index); - Span span182 = CollectionsMarshal.AsSpan(list182); - num = 0; - ref QuestSequence reference127 = ref span182[num]; + num = 3; + List list182 = new List(num); + CollectionsMarshal.SetCount(list182, num); + Span span59 = CollectionsMarshal.AsSpan(list182); + ref QuestSequence reference127 = ref span59[0]; QuestSequence obj97 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj97.Steps = list183; reference127 = obj97; - num++; - ref QuestSequence reference128 = ref span182[num]; + ref QuestSequence reference128 = ref span59[1]; QuestSequence obj98 = new QuestSequence { Sequence = 1 @@ -458270,77 +376706,62 @@ public static class AssemblyQuestLoader num2 = 4; List list184 = new List(num2); CollectionsMarshal.SetCount(list184, num2); - Span span184 = CollectionsMarshal.AsSpan(list184); - index2 = 0; - ref QuestStep reference129 = ref span184[index2]; + Span span60 = CollectionsMarshal.AsSpan(list184); + ref QuestStep reference129 = ref span60[0]; QuestStep questStep26 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list185 = new List(index3); - CollectionsMarshal.SetCount(list185, index3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + CollectionsMarshal.AsSpan(list185)[0] = EExtendedClassJob.Miner; questStep26.RequiredQuestAcceptedJob = list185; num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list186)[0] = new GatheredItem { ItemId = 48033u, ItemCount = 3 }; questStep26.ItemsToGather = list186; reference129 = questStep26; - index2++; - ref QuestStep reference130 = ref span184[index2]; + ref QuestStep reference130 = ref span60[1]; QuestStep questStep27 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list187 = new List(index3); - CollectionsMarshal.SetCount(list187, index3); - Span span187 = CollectionsMarshal.AsSpan(list187); - num3 = 0; - span187[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list187 = new List(num3); + CollectionsMarshal.SetCount(list187, num3); + CollectionsMarshal.AsSpan(list187)[0] = EExtendedClassJob.Botanist; questStep27.RequiredQuestAcceptedJob = list187; num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span188 = CollectionsMarshal.AsSpan(list188); - index3 = 0; - span188[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list188)[0] = new GatheredItem { ItemId = 48034u, ItemCount = 3 }; questStep27.ItemsToGather = list188; reference130 = questStep27; - index2++; - span184[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) + span60[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(472.2853f, -150f, 758.076f), 1189) { StopDistance = 2f, Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook }; - index2++; - span184[index2] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) + span60[3] = new QuestStep(EInteractionType.Interact, 1052570u, new Vector3(470.6339f, -150f, 757.47314f), 1189) { StopDistance = 7f }; obj98.Steps = list184; reference128 = obj98; - num++; - ref QuestSequence reference131 = ref span182[num]; + ref QuestSequence reference131 = ref span59[2]; QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458366,16 +376787,13 @@ public static class AssemblyQuestLoader num = 1; List list190 = new List(num); CollectionsMarshal.SetCount(list190, num); - Span span190 = CollectionsMarshal.AsSpan(list190); - index = 0; - span190[index] = "liza"; + CollectionsMarshal.AsSpan(list190)[0] = "liza"; questRoot18.Author = list190; - index = 2; - List list191 = new List(index); - CollectionsMarshal.SetCount(list191, index); - Span span191 = CollectionsMarshal.AsSpan(list191); - num = 0; - ref QuestSequence reference132 = ref span191[num]; + num = 2; + List list191 = new List(num); + CollectionsMarshal.SetCount(list191, num); + Span span61 = CollectionsMarshal.AsSpan(list191); + ref QuestSequence reference132 = ref span61[0]; QuestSequence obj100 = new QuestSequence { Sequence = 0 @@ -458383,67 +376801,53 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj100.Steps = list192; reference132 = obj100; - num++; - ref QuestSequence reference133 = ref span191[num]; + ref QuestSequence reference133 = ref span61[1]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list193 = new List(index2); - CollectionsMarshal.SetCount(list193, index2); - Span span193 = CollectionsMarshal.AsSpan(list193); - num2 = 0; - ref QuestStep reference134 = ref span193[num2]; + num2 = 3; + List list193 = new List(num2); + CollectionsMarshal.SetCount(list193, num2); + Span span62 = CollectionsMarshal.AsSpan(list193); + ref QuestStep reference134 = ref span62[0]; QuestStep questStep28 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list194 = new List(index3); - CollectionsMarshal.SetCount(list194, index3); - Span span194 = CollectionsMarshal.AsSpan(list194); - num3 = 0; - span194[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list194 = new List(num3); + CollectionsMarshal.SetCount(list194, num3); + CollectionsMarshal.AsSpan(list194)[0] = EExtendedClassJob.Miner; questStep28.RequiredQuestAcceptedJob = list194; num3 = 1; List list195 = new List(num3); CollectionsMarshal.SetCount(list195, num3); - Span span195 = CollectionsMarshal.AsSpan(list195); - index3 = 0; - span195[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list195)[0] = new GatheredItem { ItemId = 48036u, ItemCount = 3 }; questStep28.ItemsToGather = list195; reference134 = questStep28; - num2++; - ref QuestStep reference135 = ref span193[num2]; + ref QuestStep reference135 = ref span62[1]; QuestStep questStep29 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list196 = new List(index3); - CollectionsMarshal.SetCount(list196, index3); - Span span196 = CollectionsMarshal.AsSpan(list196); - num3 = 0; - span196[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list196 = new List(num3); + CollectionsMarshal.SetCount(list196, num3); + CollectionsMarshal.AsSpan(list196)[0] = EExtendedClassJob.Botanist; questStep29.RequiredQuestAcceptedJob = list196; num3 = 1; List list197 = new List(num3); CollectionsMarshal.SetCount(list197, num3); - Span span197 = CollectionsMarshal.AsSpan(list197); - index3 = 0; - span197[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list197)[0] = new GatheredItem { ItemId = 48037u, ItemCount = 3 }; questStep29.ItemsToGather = list197; reference135 = questStep29; - num2++; - span193[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span62[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458469,16 +376873,13 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "liza"; + CollectionsMarshal.AsSpan(list198)[0] = "liza"; questRoot19.Author = list198; - index = 2; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference136 = ref span199[num]; + num = 2; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span63 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference136 = ref span63[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 @@ -458486,67 +376887,53 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj102.Steps = list200; reference136 = obj102; - num++; - ref QuestSequence reference137 = ref span199[num]; + ref QuestSequence reference137 = ref span63[1]; QuestSequence obj103 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list201 = new List(index2); - CollectionsMarshal.SetCount(list201, index2); - Span span201 = CollectionsMarshal.AsSpan(list201); - num2 = 0; - ref QuestStep reference138 = ref span201[num2]; + num2 = 3; + List list201 = new List(num2); + CollectionsMarshal.SetCount(list201, num2); + Span span64 = CollectionsMarshal.AsSpan(list201); + ref QuestStep reference138 = ref span64[0]; QuestStep questStep30 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list202 = new List(index3); - CollectionsMarshal.SetCount(list202, index3); - Span span202 = CollectionsMarshal.AsSpan(list202); - num3 = 0; - span202[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list202 = new List(num3); + CollectionsMarshal.SetCount(list202, num3); + CollectionsMarshal.AsSpan(list202)[0] = EExtendedClassJob.Miner; questStep30.RequiredQuestAcceptedJob = list202; num3 = 1; List list203 = new List(num3); CollectionsMarshal.SetCount(list203, num3); - Span span203 = CollectionsMarshal.AsSpan(list203); - index3 = 0; - span203[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list203)[0] = new GatheredItem { ItemId = 48039u, ItemCount = 3 }; questStep30.ItemsToGather = list203; reference138 = questStep30; - num2++; - ref QuestStep reference139 = ref span201[num2]; + ref QuestStep reference139 = ref span64[1]; QuestStep questStep31 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list204 = new List(index3); - CollectionsMarshal.SetCount(list204, index3); - Span span204 = CollectionsMarshal.AsSpan(list204); - num3 = 0; - span204[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list204 = new List(num3); + CollectionsMarshal.SetCount(list204, num3); + CollectionsMarshal.AsSpan(list204)[0] = EExtendedClassJob.Botanist; questStep31.RequiredQuestAcceptedJob = list204; num3 = 1; List list205 = new List(num3); CollectionsMarshal.SetCount(list205, num3); - Span span205 = CollectionsMarshal.AsSpan(list205); - index3 = 0; - span205[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list205)[0] = new GatheredItem { ItemId = 48040u, ItemCount = 3 }; questStep31.ItemsToGather = list205; reference139 = questStep31; - num2++; - span201[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span64[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458572,16 +376959,13 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "liza"; + CollectionsMarshal.AsSpan(list206)[0] = "liza"; questRoot20.Author = list206; - index = 2; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference140 = ref span207[num]; + num = 2; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span65 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference140 = ref span65[0]; QuestSequence obj104 = new QuestSequence { Sequence = 0 @@ -458589,67 +376973,53 @@ public static class AssemblyQuestLoader num2 = 1; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list208)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj104.Steps = list208; reference140 = obj104; - num++; - ref QuestSequence reference141 = ref span207[num]; + ref QuestSequence reference141 = ref span65[1]; QuestSequence obj105 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list209 = new List(index2); - CollectionsMarshal.SetCount(list209, index2); - Span span209 = CollectionsMarshal.AsSpan(list209); - num2 = 0; - ref QuestStep reference142 = ref span209[num2]; + num2 = 3; + List list209 = new List(num2); + CollectionsMarshal.SetCount(list209, num2); + Span span66 = CollectionsMarshal.AsSpan(list209); + ref QuestStep reference142 = ref span66[0]; QuestStep questStep32 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list210 = new List(index3); - CollectionsMarshal.SetCount(list210, index3); - Span span210 = CollectionsMarshal.AsSpan(list210); - num3 = 0; - span210[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list210 = new List(num3); + CollectionsMarshal.SetCount(list210, num3); + CollectionsMarshal.AsSpan(list210)[0] = EExtendedClassJob.Miner; questStep32.RequiredQuestAcceptedJob = list210; num3 = 1; List list211 = new List(num3); CollectionsMarshal.SetCount(list211, num3); - Span span211 = CollectionsMarshal.AsSpan(list211); - index3 = 0; - span211[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list211)[0] = new GatheredItem { ItemId = 48042u, ItemCount = 3 }; questStep32.ItemsToGather = list211; reference142 = questStep32; - num2++; - ref QuestStep reference143 = ref span209[num2]; + ref QuestStep reference143 = ref span66[1]; QuestStep questStep33 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list212 = new List(index3); - CollectionsMarshal.SetCount(list212, index3); - Span span212 = CollectionsMarshal.AsSpan(list212); - num3 = 0; - span212[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list212 = new List(num3); + CollectionsMarshal.SetCount(list212, num3); + CollectionsMarshal.AsSpan(list212)[0] = EExtendedClassJob.Botanist; questStep33.RequiredQuestAcceptedJob = list212; num3 = 1; List list213 = new List(num3); CollectionsMarshal.SetCount(list213, num3); - Span span213 = CollectionsMarshal.AsSpan(list213); - index3 = 0; - span213[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list213)[0] = new GatheredItem { ItemId = 48043u, ItemCount = 3 }; questStep33.ItemsToGather = list213; reference143 = questStep33; - num2++; - span209[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span66[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458675,16 +377045,13 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - Span span214 = CollectionsMarshal.AsSpan(list214); - index = 0; - span214[index] = "liza"; + CollectionsMarshal.AsSpan(list214)[0] = "liza"; questRoot21.Author = list214; - index = 3; - List list215 = new List(index); - CollectionsMarshal.SetCount(list215, index); - Span span215 = CollectionsMarshal.AsSpan(list215); - num = 0; - ref QuestSequence reference144 = ref span215[num]; + num = 3; + List list215 = new List(num); + CollectionsMarshal.SetCount(list215, num); + Span span67 = CollectionsMarshal.AsSpan(list215); + ref QuestSequence reference144 = ref span67[0]; QuestSequence obj106 = new QuestSequence { Sequence = 0 @@ -458692,47 +377059,36 @@ public static class AssemblyQuestLoader num2 = 1; List list216 = new List(num2); CollectionsMarshal.SetCount(list216, num2); - Span span216 = CollectionsMarshal.AsSpan(list216); - index2 = 0; - span216[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list216)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj106.Steps = list216; reference144 = obj106; - num++; - ref QuestSequence reference145 = ref span215[num]; + ref QuestSequence reference145 = ref span67[1]; QuestSequence obj107 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list217 = new List(index2); - CollectionsMarshal.SetCount(list217, index2); - Span span217 = CollectionsMarshal.AsSpan(list217); - num2 = 0; - ref QuestStep reference146 = ref span217[num2]; + num2 = 3; + List list217 = new List(num2); + CollectionsMarshal.SetCount(list217, num2); + Span span68 = CollectionsMarshal.AsSpan(list217); + ref QuestStep reference146 = ref span68[0]; QuestStep obj108 = new QuestStep(EInteractionType.Interact, 1052580u, new Vector3(495.1704f, -146.73546f, 500.6637f), 1189) { Fly = true }; - 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); + 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); obj108.CompletionQuestVariablesFlags = list218; reference146 = obj108; - num2++; - ref QuestStep reference147 = ref span217[num2]; + ref QuestStep reference147 = ref span68[1]; QuestStep obj109 = new QuestStep(EInteractionType.Interact, 1052579u, new Vector3(607.9651f, -137.174f, 499.71765f), 1189) { Fly = true @@ -458740,49 +377096,35 @@ public static class AssemblyQuestLoader num3 = 6; 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); + 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); obj109.CompletionQuestVariablesFlags = list219; reference147 = obj109; - num2++; - ref QuestStep reference148 = ref span217[num2]; + ref QuestStep reference148 = ref span68[2]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 1052578u, new Vector3(695.09424f, -137.17401f, 543.26685f), 1189) { Fly = true }; - 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); + 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); obj110.CompletionQuestVariablesFlags = list220; reference148 = obj110; obj107.Steps = list217; reference145 = obj107; - num++; - ref QuestSequence reference149 = ref span215[num]; + ref QuestSequence reference149 = ref span67[2]; QuestSequence obj111 = new QuestSequence { Sequence = byte.MaxValue @@ -458790,9 +377132,7 @@ public static class AssemblyQuestLoader num2 = 1; List list221 = new List(num2); CollectionsMarshal.SetCount(list221, num2); - Span span221 = CollectionsMarshal.AsSpan(list221); - index2 = 0; - span221[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + CollectionsMarshal.AsSpan(list221)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -458805,30 +377145,24 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "Theo"; + CollectionsMarshal.AsSpan(list222)[0] = "Theo"; questRoot22.Author = list222; - index = 2; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference150 = ref span223[num]; + num = 2; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span72 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference150 = ref span72[0]; QuestSequence obj112 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj112.Steps = list224; reference150 = obj112; - num++; - ref QuestSequence reference151 = ref span223[num]; + ref QuestSequence reference151 = ref span72[1]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -458836,53 +377170,42 @@ public static class AssemblyQuestLoader num2 = 3; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - ref QuestStep reference152 = ref span225[index2]; + Span span73 = CollectionsMarshal.AsSpan(list225); + ref QuestStep reference152 = ref span73[0]; QuestStep questStep34 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span226 = CollectionsMarshal.AsSpan(list226); - index3 = 0; - span226[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list226)[0] = EExtendedClassJob.Miner; questStep34.RequiredQuestAcceptedJob = list226; - index3 = 1; - List list227 = new List(index3); - CollectionsMarshal.SetCount(list227, index3); - Span span227 = CollectionsMarshal.AsSpan(list227); - num3 = 0; - span227[num3] = new GatheredItem + num3 = 1; + List list227 = new List(num3); + CollectionsMarshal.SetCount(list227, num3); + CollectionsMarshal.AsSpan(list227)[0] = new GatheredItem { ItemId = 48045u, ItemCount = 3 }; questStep34.ItemsToGather = list227; reference152 = questStep34; - index2++; - ref QuestStep reference153 = ref span225[index2]; + ref QuestStep reference153 = ref span73[1]; QuestStep questStep35 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list228 = new List(num3); CollectionsMarshal.SetCount(list228, num3); - Span span228 = CollectionsMarshal.AsSpan(list228); - index3 = 0; - span228[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list228)[0] = EExtendedClassJob.Botanist; questStep35.RequiredQuestAcceptedJob = list228; - index3 = 1; - List list229 = new List(index3); - CollectionsMarshal.SetCount(list229, index3); - Span span229 = CollectionsMarshal.AsSpan(list229); - num3 = 0; - span229[num3] = new GatheredItem + num3 = 1; + List list229 = new List(num3); + CollectionsMarshal.SetCount(list229, num3); + CollectionsMarshal.AsSpan(list229)[0] = new GatheredItem { ItemId = 48046u, ItemCount = 3 }; questStep35.ItemsToGather = list229; reference153 = questStep35; - index2++; - span225[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span73[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -458908,30 +377231,24 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - Span span230 = CollectionsMarshal.AsSpan(list230); - index = 0; - span230[index] = "Censored"; + CollectionsMarshal.AsSpan(list230)[0] = "Censored"; questRoot23.Author = list230; - index = 2; - List list231 = new List(index); - CollectionsMarshal.SetCount(list231, index); - Span span231 = CollectionsMarshal.AsSpan(list231); - num = 0; - ref QuestSequence reference154 = ref span231[num]; + num = 2; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + Span span74 = CollectionsMarshal.AsSpan(list231); + ref QuestSequence reference154 = ref span74[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list232; reference154 = obj114; - num++; - ref QuestSequence reference155 = ref span231[num]; + ref QuestSequence reference155 = ref span74[1]; QuestSequence obj115 = new QuestSequence { Sequence = byte.MaxValue @@ -458939,53 +377256,42 @@ public static class AssemblyQuestLoader num2 = 3; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference156 = ref span233[index2]; + Span span75 = CollectionsMarshal.AsSpan(list233); + ref QuestStep reference156 = ref span75[0]; QuestStep questStep36 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span234 = CollectionsMarshal.AsSpan(list234); - index3 = 0; - span234[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list234)[0] = EExtendedClassJob.Miner; questStep36.RequiredQuestAcceptedJob = list234; - index3 = 1; - List list235 = new List(index3); - CollectionsMarshal.SetCount(list235, index3); - Span span235 = CollectionsMarshal.AsSpan(list235); - num3 = 0; - span235[num3] = new GatheredItem + num3 = 1; + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + CollectionsMarshal.AsSpan(list235)[0] = new GatheredItem { ItemId = 48048u, ItemCount = 3 }; questStep36.ItemsToGather = list235; reference156 = questStep36; - index2++; - ref QuestStep reference157 = ref span233[index2]; + ref QuestStep reference157 = ref span75[1]; QuestStep questStep37 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list236 = new List(num3); CollectionsMarshal.SetCount(list236, num3); - Span span236 = CollectionsMarshal.AsSpan(list236); - index3 = 0; - span236[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list236)[0] = EExtendedClassJob.Botanist; questStep37.RequiredQuestAcceptedJob = list236; - index3 = 1; - List list237 = new List(index3); - CollectionsMarshal.SetCount(list237, index3); - Span span237 = CollectionsMarshal.AsSpan(list237); - num3 = 0; - span237[num3] = new GatheredItem + num3 = 1; + List list237 = new List(num3); + CollectionsMarshal.SetCount(list237, num3); + CollectionsMarshal.AsSpan(list237)[0] = new GatheredItem { ItemId = 48049u, ItemCount = 3 }; questStep37.ItemsToGather = list237; reference157 = questStep37; - index2++; - span233[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span75[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459011,30 +377317,24 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - Span span238 = CollectionsMarshal.AsSpan(list238); - index = 0; - span238[index] = "Censored"; + CollectionsMarshal.AsSpan(list238)[0] = "Censored"; questRoot24.Author = list238; - index = 4; - List list239 = new List(index); - CollectionsMarshal.SetCount(list239, index); - Span span239 = CollectionsMarshal.AsSpan(list239); - num = 0; - ref QuestSequence reference158 = ref span239[num]; + num = 4; + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + Span span76 = CollectionsMarshal.AsSpan(list239); + ref QuestSequence reference158 = ref span76[0]; QuestSequence obj116 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj116.Steps = list240; reference158 = obj116; - num++; - ref QuestSequence reference159 = ref span239[num]; + ref QuestSequence reference159 = ref span76[1]; QuestSequence obj117 = new QuestSequence { Sequence = 1 @@ -459042,26 +377342,22 @@ public static class AssemblyQuestLoader num2 = 1; List list241 = new List(num2); CollectionsMarshal.SetCount(list241, num2); - Span span241 = CollectionsMarshal.AsSpan(list241); - index2 = 0; - span241[index2] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) + CollectionsMarshal.AsSpan(list241)[0] = new QuestStep(EInteractionType.Interact, 1052562u, new Vector3(482.59705f, -150.00002f, 786.70935f), 1189) { Fly = true }; obj117.Steps = list241; reference159 = obj117; - num++; - ref QuestSequence reference160 = ref span239[num]; + ref QuestSequence reference160 = ref span76[2]; QuestSequence obj118 = new QuestSequence { Sequence = 2 }; - index2 = 3; - List list242 = new List(index2); - CollectionsMarshal.SetCount(list242, index2); - Span span242 = CollectionsMarshal.AsSpan(list242); - num2 = 0; - ref QuestStep reference161 = ref span242[num2]; + num2 = 3; + List list242 = new List(num2); + CollectionsMarshal.SetCount(list242, num2); + Span span77 = CollectionsMarshal.AsSpan(list242); + ref QuestStep reference161 = ref span77[0]; QuestStep obj119 = new QuestStep(EInteractionType.Action, 2014724u, new Vector3(232.89844f, -160.29602f, 432.5475f), 1189) { Fly = true, @@ -459070,54 +377366,39 @@ public static class AssemblyQuestLoader num3 = 6; List list243 = new List(num3); CollectionsMarshal.SetCount(list243, num3); - 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); + 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); obj119.CompletionQuestVariablesFlags = list243; reference161 = obj119; - num2++; - ref QuestStep reference162 = ref span242[num2]; + ref QuestStep reference162 = ref span77[1]; QuestStep obj120 = new QuestStep(EInteractionType.Action, 2014725u, new Vector3(238.20862f, -160.54016f, 401.3275f), 1189) { Action = EAction.ShroudedLuminescence }; - 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); + 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); obj120.CompletionQuestVariablesFlags = list244; reference162 = obj120; - num2++; - span242[num2] = new QuestStep(EInteractionType.Action, 2014726u, new Vector3(205.06592f, -160.54016f, 397.5432f), 1189) + span77[2] = new QuestStep(EInteractionType.Action, 2014726u, new Vector3(205.06592f, -160.54016f, 397.5432f), 1189) { Action = EAction.ShroudedLuminescence }; obj118.Steps = list242; reference160 = obj118; - num++; - ref QuestSequence reference163 = ref span239[num]; + ref QuestSequence reference163 = ref span76[3]; QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue @@ -459125,9 +377406,7 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459153,30 +377432,24 @@ public static class AssemblyQuestLoader num = 1; List list246 = new List(num); CollectionsMarshal.SetCount(list246, num); - Span span246 = CollectionsMarshal.AsSpan(list246); - index = 0; - span246[index] = "Theo"; + CollectionsMarshal.AsSpan(list246)[0] = "Theo"; questRoot25.Author = list246; - index = 2; - List list247 = new List(index); - CollectionsMarshal.SetCount(list247, index); - Span span247 = CollectionsMarshal.AsSpan(list247); - num = 0; - ref QuestSequence reference164 = ref span247[num]; + num = 2; + List list247 = new List(num); + CollectionsMarshal.SetCount(list247, num); + Span span80 = CollectionsMarshal.AsSpan(list247); + ref QuestSequence reference164 = ref span80[0]; QuestSequence obj122 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj122.Steps = list248; reference164 = obj122; - num++; - ref QuestSequence reference165 = ref span247[num]; + ref QuestSequence reference165 = ref span80[1]; QuestSequence obj123 = new QuestSequence { Sequence = byte.MaxValue @@ -459184,53 +377457,42 @@ public static class AssemblyQuestLoader num2 = 3; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - ref QuestStep reference166 = ref span249[index2]; + Span span81 = CollectionsMarshal.AsSpan(list249); + ref QuestStep reference166 = ref span81[0]; QuestStep questStep38 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list250 = new List(num3); CollectionsMarshal.SetCount(list250, num3); - Span span250 = CollectionsMarshal.AsSpan(list250); - index3 = 0; - span250[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list250)[0] = EExtendedClassJob.Miner; questStep38.RequiredQuestAcceptedJob = list250; - index3 = 1; - List list251 = new List(index3); - CollectionsMarshal.SetCount(list251, index3); - Span span251 = CollectionsMarshal.AsSpan(list251); - num3 = 0; - span251[num3] = new GatheredItem + num3 = 1; + List list251 = new List(num3); + CollectionsMarshal.SetCount(list251, num3); + CollectionsMarshal.AsSpan(list251)[0] = new GatheredItem { ItemId = 48051u, ItemCount = 3 }; questStep38.ItemsToGather = list251; reference166 = questStep38; - index2++; - ref QuestStep reference167 = ref span249[index2]; + ref QuestStep reference167 = ref span81[1]; QuestStep questStep39 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span252 = CollectionsMarshal.AsSpan(list252); - index3 = 0; - span252[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list252)[0] = EExtendedClassJob.Botanist; questStep39.RequiredQuestAcceptedJob = list252; - index3 = 1; - List list253 = new List(index3); - CollectionsMarshal.SetCount(list253, index3); - Span span253 = CollectionsMarshal.AsSpan(list253); - num3 = 0; - span253[num3] = new GatheredItem + num3 = 1; + List list253 = new List(num3); + CollectionsMarshal.SetCount(list253, num3); + CollectionsMarshal.AsSpan(list253)[0] = new GatheredItem { ItemId = 48052u, ItemCount = 3 }; questStep39.ItemsToGather = list253; reference167 = questStep39; - index2++; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span81[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459256,30 +377518,24 @@ public static class AssemblyQuestLoader num = 1; List list254 = new List(num); CollectionsMarshal.SetCount(list254, num); - Span span254 = CollectionsMarshal.AsSpan(list254); - index = 0; - span254[index] = "liza"; + CollectionsMarshal.AsSpan(list254)[0] = "liza"; questRoot26.Author = list254; - index = 3; - List list255 = new List(index); - CollectionsMarshal.SetCount(list255, index); - Span span255 = CollectionsMarshal.AsSpan(list255); - num = 0; - ref QuestSequence reference168 = ref span255[num]; + num = 3; + List list255 = new List(num); + CollectionsMarshal.SetCount(list255, num); + Span span82 = CollectionsMarshal.AsSpan(list255); + ref QuestSequence reference168 = ref span82[0]; QuestSequence obj124 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj124.Steps = list256; reference168 = obj124; - num++; - ref QuestSequence reference169 = ref span255[num]; + ref QuestSequence reference169 = ref span82[1]; QuestSequence obj125 = new QuestSequence { Sequence = 1 @@ -459287,9 +377543,8 @@ public static class AssemblyQuestLoader num2 = 3; List list257 = new List(num2); CollectionsMarshal.SetCount(list257, num2); - Span span257 = CollectionsMarshal.AsSpan(list257); - index2 = 0; - ref QuestStep reference170 = ref span257[index2]; + Span span83 = CollectionsMarshal.AsSpan(list257); + ref QuestStep reference170 = ref span83[0]; QuestStep obj126 = new QuestStep(EInteractionType.Say, 1052572u, new Vector3(642.2064f, -137.17401f, 557.76294f), 1189) { Fly = true, @@ -459301,23 +377556,16 @@ public static class AssemblyQuestLoader num3 = 6; List list258 = new List(num3); CollectionsMarshal.SetCount(list258, num3); - 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); + 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); obj126.CompletionQuestVariablesFlags = list258; reference170 = obj126; - index2++; - ref QuestStep reference171 = ref span257[index2]; + ref QuestStep reference171 = ref span83[1]; QuestStep obj127 = new QuestStep(EInteractionType.Say, 1052573u, new Vector3(686.8544f, -137.174f, 513.72546f), 1189) { Fly = true, @@ -459326,26 +377574,19 @@ public static class AssemblyQuestLoader Key = "TEXT_BANMAM115_05275_SAYTODO_000_030" } }; - 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); + 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); obj127.CompletionQuestVariablesFlags = list259; reference171 = obj127; - index2++; - ref QuestStep reference172 = ref span257[index2]; + ref QuestStep reference172 = ref span83[2]; QuestStep obj128 = new QuestStep(EInteractionType.Say, 1052574u, new Vector3(584.4967f, -142.49187f, 484.2754f), 1189) { Fly = true, @@ -459357,35 +377598,26 @@ public static class AssemblyQuestLoader num3 = 6; List list260 = new List(num3); CollectionsMarshal.SetCount(list260, num3); - 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); + 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); obj128.CompletionQuestVariablesFlags = list260; reference172 = obj128; obj125.Steps = list257; reference169 = obj125; - num++; - ref QuestSequence reference173 = ref span255[num]; + ref QuestSequence reference173 = ref span82[2]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -459398,16 +377630,13 @@ public static class AssemblyQuestLoader num = 1; List list262 = new List(num); CollectionsMarshal.SetCount(list262, num); - Span span262 = CollectionsMarshal.AsSpan(list262); - index = 0; - span262[index] = "Censored"; + CollectionsMarshal.AsSpan(list262)[0] = "Censored"; questRoot27.Author = list262; - index = 2; - List list263 = new List(index); - CollectionsMarshal.SetCount(list263, index); - Span span263 = CollectionsMarshal.AsSpan(list263); - num = 0; - ref QuestSequence reference174 = ref span263[num]; + num = 2; + List list263 = new List(num); + CollectionsMarshal.SetCount(list263, num); + Span span87 = CollectionsMarshal.AsSpan(list263); + ref QuestSequence reference174 = ref span87[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -459415,67 +377644,53 @@ public static class AssemblyQuestLoader num2 = 1; List list264 = new List(num2); CollectionsMarshal.SetCount(list264, num2); - Span span264 = CollectionsMarshal.AsSpan(list264); - index2 = 0; - span264[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + CollectionsMarshal.AsSpan(list264)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj130.Steps = list264; reference174 = obj130; - num++; - ref QuestSequence reference175 = ref span263[num]; + ref QuestSequence reference175 = ref span87[1]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list265 = new List(index2); - CollectionsMarshal.SetCount(list265, index2); - Span span265 = CollectionsMarshal.AsSpan(list265); - num2 = 0; - ref QuestStep reference176 = ref span265[num2]; + num2 = 3; + List list265 = new List(num2); + CollectionsMarshal.SetCount(list265, num2); + Span span88 = CollectionsMarshal.AsSpan(list265); + ref QuestStep reference176 = ref span88[0]; QuestStep questStep40 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list266 = new List(index3); - CollectionsMarshal.SetCount(list266, index3); - Span span266 = CollectionsMarshal.AsSpan(list266); - num3 = 0; - span266[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list266 = new List(num3); + CollectionsMarshal.SetCount(list266, num3); + CollectionsMarshal.AsSpan(list266)[0] = EExtendedClassJob.Miner; questStep40.RequiredQuestAcceptedJob = list266; num3 = 1; List list267 = new List(num3); CollectionsMarshal.SetCount(list267, num3); - Span span267 = CollectionsMarshal.AsSpan(list267); - index3 = 0; - span267[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list267)[0] = new GatheredItem { ItemId = 48054u, ItemCount = 3 }; questStep40.ItemsToGather = list267; reference176 = questStep40; - num2++; - ref QuestStep reference177 = ref span265[num2]; + ref QuestStep reference177 = ref span88[1]; QuestStep questStep41 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list268 = new List(index3); - CollectionsMarshal.SetCount(list268, index3); - Span span268 = CollectionsMarshal.AsSpan(list268); - num3 = 0; - span268[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list268 = new List(num3); + CollectionsMarshal.SetCount(list268, num3); + CollectionsMarshal.AsSpan(list268)[0] = EExtendedClassJob.Botanist; questStep41.RequiredQuestAcceptedJob = list268; num3 = 1; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - Span span269 = CollectionsMarshal.AsSpan(list269); - index3 = 0; - span269[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list269)[0] = new GatheredItem { ItemId = 48055u, ItemCount = 3 }; questStep41.ItemsToGather = list269; reference177 = questStep41; - num2++; - span265[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span88[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459501,16 +377716,13 @@ public static class AssemblyQuestLoader num = 1; List list270 = new List(num); CollectionsMarshal.SetCount(list270, num); - Span span270 = CollectionsMarshal.AsSpan(list270); - index = 0; - span270[index] = "Censored"; + CollectionsMarshal.AsSpan(list270)[0] = "Censored"; questRoot28.Author = list270; - index = 2; - List list271 = new List(index); - CollectionsMarshal.SetCount(list271, index); - Span span271 = CollectionsMarshal.AsSpan(list271); - num = 0; - ref QuestSequence reference178 = ref span271[num]; + num = 2; + List list271 = new List(num); + CollectionsMarshal.SetCount(list271, num); + Span span89 = CollectionsMarshal.AsSpan(list271); + ref QuestSequence reference178 = ref span89[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -459518,67 +377730,53 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052561u, new Vector3(578.14905f, -144.88388f, 721.8279f), 1189); obj132.Steps = list272; reference178 = obj132; - num++; - ref QuestSequence reference179 = ref span271[num]; + ref QuestSequence reference179 = ref span89[1]; QuestSequence obj133 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list273 = new List(index2); - CollectionsMarshal.SetCount(list273, index2); - Span span273 = CollectionsMarshal.AsSpan(list273); - num2 = 0; - ref QuestStep reference180 = ref span273[num2]; + num2 = 3; + List list273 = new List(num2); + CollectionsMarshal.SetCount(list273, num2); + Span span90 = CollectionsMarshal.AsSpan(list273); + ref QuestStep reference180 = ref span90[0]; QuestStep questStep42 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list274 = new List(index3); - CollectionsMarshal.SetCount(list274, index3); - Span span274 = CollectionsMarshal.AsSpan(list274); - num3 = 0; - span274[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list274 = new List(num3); + CollectionsMarshal.SetCount(list274, num3); + CollectionsMarshal.AsSpan(list274)[0] = EExtendedClassJob.Miner; questStep42.RequiredQuestAcceptedJob = list274; num3 = 1; List list275 = new List(num3); CollectionsMarshal.SetCount(list275, num3); - Span span275 = CollectionsMarshal.AsSpan(list275); - index3 = 0; - span275[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list275)[0] = new GatheredItem { ItemId = 48057u, ItemCount = 3 }; questStep42.ItemsToGather = list275; reference180 = questStep42; - num2++; - ref QuestStep reference181 = ref span273[num2]; + ref QuestStep reference181 = ref span90[1]; QuestStep questStep43 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list276 = new List(index3); - CollectionsMarshal.SetCount(list276, index3); - Span span276 = CollectionsMarshal.AsSpan(list276); - num3 = 0; - span276[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list276 = new List(num3); + CollectionsMarshal.SetCount(list276, num3); + CollectionsMarshal.AsSpan(list276)[0] = EExtendedClassJob.Botanist; questStep43.RequiredQuestAcceptedJob = list276; num3 = 1; List list277 = new List(num3); CollectionsMarshal.SetCount(list277, num3); - Span span277 = CollectionsMarshal.AsSpan(list277); - index3 = 0; - span277[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list277)[0] = new GatheredItem { ItemId = 48058u, ItemCount = 3 }; questStep43.ItemsToGather = list277; reference181 = questStep43; - num2++; - span273[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span90[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459604,16 +377802,13 @@ public static class AssemblyQuestLoader num = 1; List list278 = new List(num); CollectionsMarshal.SetCount(list278, num); - Span span278 = CollectionsMarshal.AsSpan(list278); - index = 0; - span278[index] = "liza"; + CollectionsMarshal.AsSpan(list278)[0] = "liza"; questRoot29.Author = list278; - index = 2; - List list279 = new List(index); - CollectionsMarshal.SetCount(list279, index); - Span span279 = CollectionsMarshal.AsSpan(list279); - num = 0; - ref QuestSequence reference182 = ref span279[num]; + num = 2; + List list279 = new List(num); + CollectionsMarshal.SetCount(list279, num); + Span span91 = CollectionsMarshal.AsSpan(list279); + ref QuestSequence reference182 = ref span91[0]; QuestSequence obj134 = new QuestSequence { Sequence = 0 @@ -459621,67 +377816,53 @@ public static class AssemblyQuestLoader num2 = 1; List list280 = new List(num2); CollectionsMarshal.SetCount(list280, num2); - Span span280 = CollectionsMarshal.AsSpan(list280); - index2 = 0; - span280[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj134.Steps = list280; reference182 = obj134; - num++; - ref QuestSequence reference183 = ref span279[num]; + ref QuestSequence reference183 = ref span91[1]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list281 = new List(index2); - CollectionsMarshal.SetCount(list281, index2); - Span span281 = CollectionsMarshal.AsSpan(list281); - num2 = 0; - ref QuestStep reference184 = ref span281[num2]; + num2 = 3; + List list281 = new List(num2); + CollectionsMarshal.SetCount(list281, num2); + Span span92 = CollectionsMarshal.AsSpan(list281); + ref QuestStep reference184 = ref span92[0]; QuestStep questStep44 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list282 = new List(index3); - CollectionsMarshal.SetCount(list282, index3); - Span span282 = CollectionsMarshal.AsSpan(list282); - num3 = 0; - span282[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list282 = new List(num3); + CollectionsMarshal.SetCount(list282, num3); + CollectionsMarshal.AsSpan(list282)[0] = EExtendedClassJob.Miner; questStep44.RequiredQuestAcceptedJob = list282; num3 = 1; List list283 = new List(num3); CollectionsMarshal.SetCount(list283, num3); - Span span283 = CollectionsMarshal.AsSpan(list283); - index3 = 0; - span283[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list283)[0] = new GatheredItem { ItemId = 48060u, ItemCount = 3 }; questStep44.ItemsToGather = list283; reference184 = questStep44; - num2++; - ref QuestStep reference185 = ref span281[num2]; + ref QuestStep reference185 = ref span92[1]; QuestStep questStep45 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list284 = new List(index3); - CollectionsMarshal.SetCount(list284, index3); - Span span284 = CollectionsMarshal.AsSpan(list284); - num3 = 0; - span284[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list284 = new List(num3); + CollectionsMarshal.SetCount(list284, num3); + CollectionsMarshal.AsSpan(list284)[0] = EExtendedClassJob.Botanist; questStep45.RequiredQuestAcceptedJob = list284; num3 = 1; List list285 = new List(num3); CollectionsMarshal.SetCount(list285, num3); - Span span285 = CollectionsMarshal.AsSpan(list285); - index3 = 0; - span285[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list285)[0] = new GatheredItem { ItemId = 48061u, ItemCount = 3 }; questStep45.ItemsToGather = list285; reference185 = questStep45; - num2++; - span281[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span92[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459707,16 +377888,13 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "liza"; + CollectionsMarshal.AsSpan(list286)[0] = "liza"; questRoot30.Author = list286; - index = 2; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference186 = ref span287[num]; + num = 2; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span93 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference186 = ref span93[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -459724,67 +377902,53 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj136.Steps = list288; reference186 = obj136; - num++; - ref QuestSequence reference187 = ref span287[num]; + ref QuestSequence reference187 = ref span93[1]; QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list289 = new List(index2); - CollectionsMarshal.SetCount(list289, index2); - Span span289 = CollectionsMarshal.AsSpan(list289); - num2 = 0; - ref QuestStep reference188 = ref span289[num2]; + num2 = 3; + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + Span span94 = CollectionsMarshal.AsSpan(list289); + ref QuestStep reference188 = ref span94[0]; QuestStep questStep46 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list290 = new List(index3); - CollectionsMarshal.SetCount(list290, index3); - Span span290 = CollectionsMarshal.AsSpan(list290); - num3 = 0; - span290[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list290 = new List(num3); + CollectionsMarshal.SetCount(list290, num3); + CollectionsMarshal.AsSpan(list290)[0] = EExtendedClassJob.Miner; questStep46.RequiredQuestAcceptedJob = list290; num3 = 1; List list291 = new List(num3); CollectionsMarshal.SetCount(list291, num3); - Span span291 = CollectionsMarshal.AsSpan(list291); - index3 = 0; - span291[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list291)[0] = new GatheredItem { ItemId = 48063u, ItemCount = 3 }; questStep46.ItemsToGather = list291; reference188 = questStep46; - num2++; - ref QuestStep reference189 = ref span289[num2]; + ref QuestStep reference189 = ref span94[1]; QuestStep questStep47 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list292 = new List(index3); - CollectionsMarshal.SetCount(list292, index3); - Span span292 = CollectionsMarshal.AsSpan(list292); - num3 = 0; - span292[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list292 = new List(num3); + CollectionsMarshal.SetCount(list292, num3); + CollectionsMarshal.AsSpan(list292)[0] = EExtendedClassJob.Botanist; questStep47.RequiredQuestAcceptedJob = list292; num3 = 1; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - Span span293 = CollectionsMarshal.AsSpan(list293); - index3 = 0; - span293[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list293)[0] = new GatheredItem { ItemId = 48064u, ItemCount = 3 }; questStep47.ItemsToGather = list293; reference189 = questStep47; - num2++; - span289[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span94[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459810,16 +377974,13 @@ public static class AssemblyQuestLoader num = 1; List list294 = new List(num); CollectionsMarshal.SetCount(list294, num); - Span span294 = CollectionsMarshal.AsSpan(list294); - index = 0; - span294[index] = "liza"; + CollectionsMarshal.AsSpan(list294)[0] = "liza"; questRoot31.Author = list294; - index = 4; - List list295 = new List(index); - CollectionsMarshal.SetCount(list295, index); - Span span295 = CollectionsMarshal.AsSpan(list295); - num = 0; - ref QuestSequence reference190 = ref span295[num]; + num = 4; + List list295 = new List(num); + CollectionsMarshal.SetCount(list295, num); + Span span95 = CollectionsMarshal.AsSpan(list295); + ref QuestSequence reference190 = ref span95[0]; QuestSequence obj138 = new QuestSequence { Sequence = 0 @@ -459827,81 +377988,59 @@ public static class AssemblyQuestLoader num2 = 1; List list296 = new List(num2); CollectionsMarshal.SetCount(list296, num2); - Span span296 = CollectionsMarshal.AsSpan(list296); - index2 = 0; - span296[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list296)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj138.Steps = list296; reference190 = obj138; - num++; - ref QuestSequence reference191 = ref span295[num]; + ref QuestSequence reference191 = ref span95[1]; QuestSequence obj139 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list297 = new List(index2); - CollectionsMarshal.SetCount(list297, index2); - Span span297 = CollectionsMarshal.AsSpan(list297); - num2 = 0; - ref QuestStep reference192 = ref span297[num2]; + num2 = 2; + List list297 = new List(num2); + CollectionsMarshal.SetCount(list297, num2); + Span span96 = CollectionsMarshal.AsSpan(list297); + ref QuestStep reference192 = ref span96[0]; QuestStep questStep48 = new QuestStep(EInteractionType.Interact, 2014732u, new Vector3(542.71765f, -149.06543f, 768.6426f), 1189); - 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]; + 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]; num4 = 1; List list299 = new List(num4); CollectionsMarshal.SetCount(list299, num4); - Span span299 = CollectionsMarshal.AsSpan(list299); - index4 = 0; - span299[index4] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list299)[0] = new QuestWorkValue(0, (byte)1, EQuestWorkMode.Bitwise); reference193 = list299; - num3++; - span298[num3] = null; - num3++; - span298[num3] = null; - num3++; - span298[num3] = null; - num3++; - span298[num3] = null; + span97[2] = null; + span97[3] = null; + span97[4] = null; + span97[5] = null; questStep48.RequiredQuestVariables = list298; reference192 = questStep48; - num2++; - ref QuestStep reference194 = ref span297[num2]; + ref QuestStep reference194 = ref span96[1]; 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> 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); + 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); reference195 = list301; - index3++; - span300[index3] = null; - index3++; - span300[index3] = null; - index3++; - span300[index3] = null; - index3++; - span300[index3] = null; + span98[2] = null; + span98[3] = null; + span98[4] = null; + span98[5] = null; questStep49.RequiredQuestVariables = list300; reference194 = questStep49; obj139.Steps = list297; reference191 = obj139; - num++; - ref QuestSequence reference196 = ref span295[num]; + ref QuestSequence reference196 = ref span95[2]; QuestSequence obj140 = new QuestSequence { Sequence = 2 @@ -459909,26 +378048,21 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.Interact, 1054142u, new Vector3(-415.06067f, 23.50628f, -464.4084f), 1189) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.Interact, 1054142u, new Vector3(-415.06067f, 23.50628f, -464.4084f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; obj140.Steps = list302; reference196 = obj140; - num++; - ref QuestSequence reference197 = ref span295[num]; + ref QuestSequence reference197 = ref span95[3]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -459954,16 +378088,13 @@ public static class AssemblyQuestLoader num = 1; List list304 = new List(num); CollectionsMarshal.SetCount(list304, num); - Span span304 = CollectionsMarshal.AsSpan(list304); - index = 0; - span304[index] = "liza"; + CollectionsMarshal.AsSpan(list304)[0] = "liza"; questRoot32.Author = list304; - index = 2; - List list305 = new List(index); - CollectionsMarshal.SetCount(list305, index); - Span span305 = CollectionsMarshal.AsSpan(list305); - num = 0; - ref QuestSequence reference198 = ref span305[num]; + num = 2; + List list305 = new List(num); + CollectionsMarshal.SetCount(list305, num); + Span span99 = CollectionsMarshal.AsSpan(list305); + ref QuestSequence reference198 = ref span99[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -459971,67 +378102,53 @@ public static class AssemblyQuestLoader num2 = 1; List list306 = new List(num2); CollectionsMarshal.SetCount(list306, num2); - Span span306 = CollectionsMarshal.AsSpan(list306); - index2 = 0; - span306[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list306)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj142.Steps = list306; reference198 = obj142; - num++; - ref QuestSequence reference199 = ref span305[num]; + ref QuestSequence reference199 = ref span99[1]; QuestSequence obj143 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list307 = new List(index2); - CollectionsMarshal.SetCount(list307, index2); - Span span307 = CollectionsMarshal.AsSpan(list307); - num2 = 0; - ref QuestStep reference200 = ref span307[num2]; + num2 = 3; + List list307 = new List(num2); + CollectionsMarshal.SetCount(list307, num2); + Span span100 = CollectionsMarshal.AsSpan(list307); + ref QuestStep reference200 = ref span100[0]; QuestStep questStep50 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list308 = new List(index3); - CollectionsMarshal.SetCount(list308, index3); - Span span308 = CollectionsMarshal.AsSpan(list308); - num3 = 0; - span308[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list308 = new List(num3); + CollectionsMarshal.SetCount(list308, num3); + CollectionsMarshal.AsSpan(list308)[0] = EExtendedClassJob.Miner; questStep50.RequiredQuestAcceptedJob = list308; num3 = 1; List list309 = new List(num3); CollectionsMarshal.SetCount(list309, num3); - Span span309 = CollectionsMarshal.AsSpan(list309); - index3 = 0; - span309[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list309)[0] = new GatheredItem { ItemId = 48066u, ItemCount = 3 }; questStep50.ItemsToGather = list309; reference200 = questStep50; - num2++; - ref QuestStep reference201 = ref span307[num2]; + ref QuestStep reference201 = ref span100[1]; QuestStep questStep51 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list310 = new List(index3); - CollectionsMarshal.SetCount(list310, index3); - Span span310 = CollectionsMarshal.AsSpan(list310); - num3 = 0; - span310[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list310 = new List(num3); + CollectionsMarshal.SetCount(list310, num3); + CollectionsMarshal.AsSpan(list310)[0] = EExtendedClassJob.Botanist; questStep51.RequiredQuestAcceptedJob = list310; num3 = 1; List list311 = new List(num3); CollectionsMarshal.SetCount(list311, num3); - Span span311 = CollectionsMarshal.AsSpan(list311); - index3 = 0; - span311[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list311)[0] = new GatheredItem { ItemId = 48067u, ItemCount = 3 }; questStep51.ItemsToGather = list311; reference201 = questStep51; - num2++; - span307[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span100[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460057,16 +378174,13 @@ public static class AssemblyQuestLoader num = 1; List list312 = new List(num); CollectionsMarshal.SetCount(list312, num); - Span span312 = CollectionsMarshal.AsSpan(list312); - index = 0; - span312[index] = "liza"; + CollectionsMarshal.AsSpan(list312)[0] = "liza"; questRoot33.Author = list312; - index = 4; - List list313 = new List(index); - CollectionsMarshal.SetCount(list313, index); - Span span313 = CollectionsMarshal.AsSpan(list313); - num = 0; - ref QuestSequence reference202 = ref span313[num]; + num = 4; + List list313 = new List(num); + CollectionsMarshal.SetCount(list313, num); + Span span101 = CollectionsMarshal.AsSpan(list313); + ref QuestSequence reference202 = ref span101[0]; QuestSequence obj144 = new QuestSequence { Sequence = 0 @@ -460074,30 +378188,24 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj144.Steps = list314; reference202 = obj144; - num++; - ref QuestSequence reference203 = ref span313[num]; + ref QuestSequence reference203 = ref span101[1]; QuestSequence obj145 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj145.Steps = list315; reference203 = obj145; - num++; - ref QuestSequence reference204 = ref span313[num]; + ref QuestSequence reference204 = ref span101[2]; QuestSequence obj146 = new QuestSequence { Sequence = 2 @@ -460105,34 +378213,26 @@ public static class AssemblyQuestLoader num2 = 3; List list316 = new List(num2); CollectionsMarshal.SetCount(list316, num2); - Span span316 = CollectionsMarshal.AsSpan(list316); - index2 = 0; - ref QuestStep reference205 = ref span316[index2]; + Span span102 = CollectionsMarshal.AsSpan(list316); + ref QuestStep reference205 = ref span102[0]; QuestStep obj147 = new QuestStep(EInteractionType.Action, 2014730u, new Vector3(370.29065f, -156.69495f, 707.9728f), 1189) { Fly = true, Action = EAction.ShroudedLuminescence }; - 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); + 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); obj147.CompletionQuestVariablesFlags = list317; reference205 = obj147; - index2++; - ref QuestStep reference206 = ref span316[index2]; + ref QuestStep reference206 = ref span102[1]; QuestStep obj148 = new QuestStep(EInteractionType.Action, 2014728u, new Vector3(377.4319f, -150.53027f, 803.952f), 1189) { Fly = true, @@ -460141,60 +378241,44 @@ public static class AssemblyQuestLoader num3 = 6; List list318 = new List(num3); CollectionsMarshal.SetCount(list318, num3); - 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); + 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); obj148.CompletionQuestVariablesFlags = list318; reference206 = obj148; - index2++; - ref QuestStep reference207 = ref span316[index2]; + ref QuestStep reference207 = ref span102[2]; QuestStep obj149 = new QuestStep(EInteractionType.Action, 2014729u, new Vector3(283.4668f, -151.26276f, 796.8108f), 1189) { Fly = true, Action = EAction.ShroudedLuminescence }; - 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); + 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); obj149.CompletionQuestVariablesFlags = list319; reference207 = obj149; obj146.Steps = list316; reference204 = obj146; - num++; - ref QuestSequence reference208 = ref span313[num]; + ref QuestSequence reference208 = ref span101[3]; QuestSequence obj150 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460220,16 +378304,13 @@ public static class AssemblyQuestLoader num = 1; List list321 = new List(num); CollectionsMarshal.SetCount(list321, num); - Span span321 = CollectionsMarshal.AsSpan(list321); - index = 0; - span321[index] = "liza"; + CollectionsMarshal.AsSpan(list321)[0] = "liza"; questRoot34.Author = list321; - index = 2; - List list322 = new List(index); - CollectionsMarshal.SetCount(list322, index); - Span span322 = CollectionsMarshal.AsSpan(list322); - num = 0; - ref QuestSequence reference209 = ref span322[num]; + num = 2; + List list322 = new List(num); + CollectionsMarshal.SetCount(list322, num); + Span span106 = CollectionsMarshal.AsSpan(list322); + ref QuestSequence reference209 = ref span106[0]; QuestSequence obj151 = new QuestSequence { Sequence = 0 @@ -460237,67 +378318,53 @@ public static class AssemblyQuestLoader num2 = 1; List list323 = new List(num2); CollectionsMarshal.SetCount(list323, num2); - Span span323 = CollectionsMarshal.AsSpan(list323); - index2 = 0; - span323[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list323)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj151.Steps = list323; reference209 = obj151; - num++; - ref QuestSequence reference210 = ref span322[num]; + ref QuestSequence reference210 = ref span106[1]; QuestSequence obj152 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list324 = new List(index2); - CollectionsMarshal.SetCount(list324, index2); - Span span324 = CollectionsMarshal.AsSpan(list324); - num2 = 0; - ref QuestStep reference211 = ref span324[num2]; + num2 = 3; + List list324 = new List(num2); + CollectionsMarshal.SetCount(list324, num2); + Span span107 = CollectionsMarshal.AsSpan(list324); + ref QuestStep reference211 = ref span107[0]; QuestStep questStep52 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list325 = new List(num3); CollectionsMarshal.SetCount(list325, num3); - Span span325 = CollectionsMarshal.AsSpan(list325); - index3 = 0; - span325[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list325)[0] = EExtendedClassJob.Miner; questStep52.RequiredQuestAcceptedJob = list325; - index3 = 1; - List list326 = new List(index3); - CollectionsMarshal.SetCount(list326, index3); - Span span326 = CollectionsMarshal.AsSpan(list326); - num3 = 0; - span326[num3] = new GatheredItem + num3 = 1; + List list326 = new List(num3); + CollectionsMarshal.SetCount(list326, num3); + CollectionsMarshal.AsSpan(list326)[0] = new GatheredItem { ItemId = 48069u, ItemCount = 3 }; questStep52.ItemsToGather = list326; reference211 = questStep52; - num2++; - ref QuestStep reference212 = ref span324[num2]; + ref QuestStep reference212 = ref span107[1]; QuestStep questStep53 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list327 = new List(num3); CollectionsMarshal.SetCount(list327, num3); - Span span327 = CollectionsMarshal.AsSpan(list327); - index3 = 0; - span327[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list327)[0] = EExtendedClassJob.Botanist; questStep53.RequiredQuestAcceptedJob = list327; - index3 = 1; - List list328 = new List(index3); - CollectionsMarshal.SetCount(list328, index3); - Span span328 = CollectionsMarshal.AsSpan(list328); - num3 = 0; - span328[num3] = new GatheredItem + num3 = 1; + List list328 = new List(num3); + CollectionsMarshal.SetCount(list328, num3); + CollectionsMarshal.AsSpan(list328)[0] = new GatheredItem { ItemId = 48070u, ItemCount = 3 }; questStep53.ItemsToGather = list328; reference212 = questStep53; - num2++; - span324[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span107[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460323,16 +378390,13 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - Span span329 = CollectionsMarshal.AsSpan(list329); - index = 0; - span329[index] = "liza"; + CollectionsMarshal.AsSpan(list329)[0] = "liza"; questRoot35.Author = list329; - index = 2; - List list330 = new List(index); - CollectionsMarshal.SetCount(list330, index); - Span span330 = CollectionsMarshal.AsSpan(list330); - num = 0; - ref QuestSequence reference213 = ref span330[num]; + num = 2; + List list330 = new List(num); + CollectionsMarshal.SetCount(list330, num); + Span span108 = CollectionsMarshal.AsSpan(list330); + ref QuestSequence reference213 = ref span108[0]; QuestSequence obj153 = new QuestSequence { Sequence = 0 @@ -460340,67 +378404,53 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span331[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj153.Steps = list331; reference213 = obj153; - num++; - ref QuestSequence reference214 = ref span330[num]; + ref QuestSequence reference214 = ref span108[1]; QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list332 = new List(index2); - CollectionsMarshal.SetCount(list332, index2); - Span span332 = CollectionsMarshal.AsSpan(list332); - num2 = 0; - ref QuestStep reference215 = ref span332[num2]; + num2 = 3; + List list332 = new List(num2); + CollectionsMarshal.SetCount(list332, num2); + Span span109 = CollectionsMarshal.AsSpan(list332); + ref QuestStep reference215 = ref span109[0]; QuestStep questStep54 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list333 = new List(num3); CollectionsMarshal.SetCount(list333, num3); - Span span333 = CollectionsMarshal.AsSpan(list333); - index3 = 0; - span333[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list333)[0] = EExtendedClassJob.Miner; questStep54.RequiredQuestAcceptedJob = list333; - index3 = 1; - List list334 = new List(index3); - CollectionsMarshal.SetCount(list334, index3); - Span span334 = CollectionsMarshal.AsSpan(list334); - num3 = 0; - span334[num3] = new GatheredItem + num3 = 1; + List list334 = new List(num3); + CollectionsMarshal.SetCount(list334, num3); + CollectionsMarshal.AsSpan(list334)[0] = new GatheredItem { ItemId = 48072u, ItemCount = 3 }; questStep54.ItemsToGather = list334; reference215 = questStep54; - num2++; - ref QuestStep reference216 = ref span332[num2]; + ref QuestStep reference216 = ref span109[1]; QuestStep questStep55 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list335 = new List(num3); CollectionsMarshal.SetCount(list335, num3); - Span span335 = CollectionsMarshal.AsSpan(list335); - index3 = 0; - span335[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list335)[0] = EExtendedClassJob.Botanist; questStep55.RequiredQuestAcceptedJob = list335; - index3 = 1; - List list336 = new List(index3); - CollectionsMarshal.SetCount(list336, index3); - Span span336 = CollectionsMarshal.AsSpan(list336); - num3 = 0; - span336[num3] = new GatheredItem + num3 = 1; + List list336 = new List(num3); + CollectionsMarshal.SetCount(list336, num3); + CollectionsMarshal.AsSpan(list336)[0] = new GatheredItem { ItemId = 48073u, ItemCount = 3 }; questStep55.ItemsToGather = list336; reference216 = questStep55; - num2++; - span332[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span109[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460426,16 +378476,13 @@ public static class AssemblyQuestLoader num = 1; List list337 = new List(num); CollectionsMarshal.SetCount(list337, num); - Span span337 = CollectionsMarshal.AsSpan(list337); - index = 0; - span337[index] = "Theo"; + CollectionsMarshal.AsSpan(list337)[0] = "Theo"; questRoot36.Author = list337; - index = 3; - List list338 = new List(index); - CollectionsMarshal.SetCount(list338, index); - Span span338 = CollectionsMarshal.AsSpan(list338); - num = 0; - ref QuestSequence reference217 = ref span338[num]; + num = 3; + List list338 = new List(num); + CollectionsMarshal.SetCount(list338, num); + Span span110 = CollectionsMarshal.AsSpan(list338); + ref QuestSequence reference217 = ref span110[0]; QuestSequence obj155 = new QuestSequence { Sequence = 0 @@ -460443,23 +378490,18 @@ public static class AssemblyQuestLoader num2 = 1; List list339 = new List(num2); CollectionsMarshal.SetCount(list339, num2); - Span span339 = CollectionsMarshal.AsSpan(list339); - index2 = 0; - span339[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list339)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj155.Steps = list339; reference217 = obj155; - num++; - ref QuestSequence reference218 = ref span338[num]; + ref QuestSequence reference218 = ref span110[1]; QuestSequence obj156 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list340 = new List(index2); - CollectionsMarshal.SetCount(list340, index2); - Span span340 = CollectionsMarshal.AsSpan(list340); - num2 = 0; - ref QuestStep reference219 = ref span340[num2]; + num2 = 1; + List list340 = new List(num2); + CollectionsMarshal.SetCount(list340, num2); + ref QuestStep reference219 = ref CollectionsMarshal.AsSpan(list340)[0]; QuestStep obj157 = new QuestStep(EInteractionType.Interact, 1052577u, new Vector3(613.39734f, 16.222143f, 1.7547607f), 1189) { Fly = true @@ -460467,32 +378509,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list341 = new List>(num3); CollectionsMarshal.SetCount(list341, num3); - Span> span341 = CollectionsMarshal.AsSpan(list341); - index3 = 0; - span341[index3] = null; - index3++; - ref List reference220 = ref span341[index3]; + Span> span111 = CollectionsMarshal.AsSpan(list341); + span111[0] = null; + ref List reference220 = ref span111[1]; num4 = 1; List list342 = new List(num4); CollectionsMarshal.SetCount(list342, num4); - Span span342 = CollectionsMarshal.AsSpan(list342); - index4 = 0; - span342[index4] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list342)[0] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); reference220 = list342; - index3++; - span341[index3] = null; - index3++; - span341[index3] = null; - index3++; - span341[index3] = null; - index3++; - span341[index3] = null; + span111[2] = null; + span111[3] = null; + span111[4] = null; + span111[5] = null; obj157.RequiredQuestVariables = list341; reference219 = obj157; obj156.Steps = list340; reference218 = obj156; - num++; - ref QuestSequence reference221 = ref span338[num]; + ref QuestSequence reference221 = ref span110[2]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue @@ -460500,9 +378533,7 @@ public static class AssemblyQuestLoader num2 = 1; List list343 = new List(num2); CollectionsMarshal.SetCount(list343, num2); - Span span343 = CollectionsMarshal.AsSpan(list343); - index2 = 0; - span343[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + CollectionsMarshal.AsSpan(list343)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true }; @@ -460515,30 +378546,24 @@ public static class AssemblyQuestLoader num = 1; List list344 = new List(num); CollectionsMarshal.SetCount(list344, num); - Span span344 = CollectionsMarshal.AsSpan(list344); - index = 0; - span344[index] = "liza"; + CollectionsMarshal.AsSpan(list344)[0] = "liza"; questRoot37.Author = list344; - index = 2; - List list345 = new List(index); - CollectionsMarshal.SetCount(list345, index); - Span span345 = CollectionsMarshal.AsSpan(list345); - num = 0; - ref QuestSequence reference222 = ref span345[num]; + num = 2; + List list345 = new List(num); + CollectionsMarshal.SetCount(list345, num); + Span span112 = CollectionsMarshal.AsSpan(list345); + ref QuestSequence reference222 = ref span112[0]; QuestSequence obj159 = 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, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + 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); obj159.Steps = list346; reference222 = obj159; - num++; - ref QuestSequence reference223 = ref span345[num]; + ref QuestSequence reference223 = ref span112[1]; QuestSequence obj160 = new QuestSequence { Sequence = byte.MaxValue @@ -460546,53 +378571,42 @@ public static class AssemblyQuestLoader num2 = 3; List list347 = new List(num2); CollectionsMarshal.SetCount(list347, num2); - Span span347 = CollectionsMarshal.AsSpan(list347); - index2 = 0; - ref QuestStep reference224 = ref span347[index2]; + Span span113 = CollectionsMarshal.AsSpan(list347); + ref QuestStep reference224 = ref span113[0]; QuestStep questStep56 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list348 = new List(index3); - CollectionsMarshal.SetCount(list348, index3); - Span span348 = CollectionsMarshal.AsSpan(list348); - num3 = 0; - span348[num3] = EExtendedClassJob.Miner; + num3 = 1; + List list348 = new List(num3); + CollectionsMarshal.SetCount(list348, num3); + CollectionsMarshal.AsSpan(list348)[0] = EExtendedClassJob.Miner; questStep56.RequiredQuestAcceptedJob = list348; num3 = 1; List list349 = new List(num3); CollectionsMarshal.SetCount(list349, num3); - Span span349 = CollectionsMarshal.AsSpan(list349); - index3 = 0; - span349[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list349)[0] = new GatheredItem { ItemId = 48075u, ItemCount = 3 }; questStep56.ItemsToGather = list349; reference224 = questStep56; - index2++; - ref QuestStep reference225 = ref span347[index2]; + ref QuestStep reference225 = ref span113[1]; QuestStep questStep57 = new QuestStep(EInteractionType.Gather, null, null, 1189); - index3 = 1; - List list350 = new List(index3); - CollectionsMarshal.SetCount(list350, index3); - Span span350 = CollectionsMarshal.AsSpan(list350); - num3 = 0; - span350[num3] = EExtendedClassJob.Botanist; + num3 = 1; + List list350 = new List(num3); + CollectionsMarshal.SetCount(list350, num3); + CollectionsMarshal.AsSpan(list350)[0] = EExtendedClassJob.Botanist; questStep57.RequiredQuestAcceptedJob = list350; num3 = 1; List list351 = new List(num3); CollectionsMarshal.SetCount(list351, num3); - Span span351 = CollectionsMarshal.AsSpan(list351); - index3 = 0; - span351[index3] = new GatheredItem + CollectionsMarshal.AsSpan(list351)[0] = new GatheredItem { ItemId = 48076u, ItemCount = 3 }; questStep57.ItemsToGather = list351; reference225 = questStep57; - index2++; - span347[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span113[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460618,30 +378632,24 @@ public static class AssemblyQuestLoader num = 1; List list352 = new List(num); CollectionsMarshal.SetCount(list352, num); - Span span352 = CollectionsMarshal.AsSpan(list352); - index = 0; - span352[index] = "liza"; + CollectionsMarshal.AsSpan(list352)[0] = "liza"; questRoot38.Author = list352; - index = 3; - List list353 = new List(index); - CollectionsMarshal.SetCount(list353, index); - Span span353 = CollectionsMarshal.AsSpan(list353); - num = 0; - ref QuestSequence reference226 = ref span353[num]; + num = 3; + List list353 = new List(num); + CollectionsMarshal.SetCount(list353, num); + Span span114 = CollectionsMarshal.AsSpan(list353); + ref QuestSequence reference226 = ref span114[0]; QuestSequence obj161 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj161.Steps = list354; reference226 = obj161; - num++; - ref QuestSequence reference227 = ref span353[num]; + ref QuestSequence reference227 = ref span114[1]; QuestSequence obj162 = new QuestSequence { Sequence = 1 @@ -460649,40 +378657,30 @@ public static class AssemblyQuestLoader num2 = 3; List list355 = new List(num2); CollectionsMarshal.SetCount(list355, num2); - Span span355 = CollectionsMarshal.AsSpan(list355); - index2 = 0; - ref QuestStep reference228 = ref span355[index2]; + Span span115 = CollectionsMarshal.AsSpan(list355); + ref QuestStep reference228 = ref span115[0]; QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1054144u, new Vector3(527.6721f, -135.12724f, 585.687f), 1189) { Fly = true }; - 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); + 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); reference229 = list357; - num3++; - span356[num3] = null; - num3++; - span356[num3] = null; - num3++; - span356[num3] = null; + span116[3] = null; + span116[4] = null; + span116[5] = null; obj163.RequiredQuestVariables = list356; reference228 = obj163; - index2++; - ref QuestStep reference230 = ref span355[index2]; + ref QuestStep reference230 = ref span115[1]; QuestStep obj164 = new QuestStep(EInteractionType.Interact, 1054145u, new Vector3(627.77136f, -135.12726f, 545.18945f), 1189) { Fly = true @@ -460690,73 +378688,53 @@ public static class AssemblyQuestLoader num3 = 6; List> list358 = new List>(num3); CollectionsMarshal.SetCount(list358, num3); - Span> span358 = CollectionsMarshal.AsSpan(list358); - index3 = 0; - span358[index3] = null; - index3++; - span358[index3] = null; - index3++; - ref List reference231 = ref span358[index3]; + Span> span117 = CollectionsMarshal.AsSpan(list358); + span117[0] = null; + span117[1] = null; + ref List reference231 = ref span117[2]; num4 = 1; List list359 = new List(num4); CollectionsMarshal.SetCount(list359, num4); - Span span359 = CollectionsMarshal.AsSpan(list359); - index4 = 0; - span359[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list359)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference231 = list359; - index3++; - span358[index3] = null; - index3++; - span358[index3] = null; - index3++; - span358[index3] = null; + span117[3] = null; + span117[4] = null; + span117[5] = null; obj164.RequiredQuestVariables = list358; reference230 = obj164; - index2++; - ref QuestStep reference232 = ref span355[index2]; + ref QuestStep reference232 = ref span115[2]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054143u, new Vector3(668.4214f, -135.17874f, 581.96375f), 1189) { Fly = true }; - 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); + 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); reference233 = list361; - num3++; - span360[num3] = null; - num3++; - span360[num3] = null; - num3++; - span360[num3] = null; + span118[3] = null; + span118[4] = null; + span118[5] = null; obj165.RequiredQuestVariables = list360; reference232 = obj165; obj162.Steps = list355; reference227 = obj162; - num++; - ref QuestSequence reference234 = ref span353[num]; + ref QuestSequence reference234 = ref span114[2]; QuestSequence obj166 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460782,16 +378760,13 @@ public static class AssemblyQuestLoader num = 1; List list363 = new List(num); CollectionsMarshal.SetCount(list363, num); - Span span363 = CollectionsMarshal.AsSpan(list363); - index = 0; - span363[index] = "liza"; + CollectionsMarshal.AsSpan(list363)[0] = "liza"; questRoot39.Author = list363; - index = 2; - List list364 = new List(index); - CollectionsMarshal.SetCount(list364, index); - Span span364 = CollectionsMarshal.AsSpan(list364); - num = 0; - ref QuestSequence reference235 = ref span364[num]; + num = 2; + List list364 = new List(num); + CollectionsMarshal.SetCount(list364, num); + Span span119 = CollectionsMarshal.AsSpan(list364); + ref QuestSequence reference235 = ref span119[0]; QuestSequence obj167 = new QuestSequence { Sequence = 0 @@ -460799,67 +378774,53 @@ public static class AssemblyQuestLoader num2 = 1; List list365 = new List(num2); CollectionsMarshal.SetCount(list365, num2); - Span span365 = CollectionsMarshal.AsSpan(list365); - index2 = 0; - span365[index2] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); + CollectionsMarshal.AsSpan(list365)[0] = new QuestStep(EInteractionType.AcceptQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189); obj167.Steps = list365; reference235 = obj167; - num++; - ref QuestSequence reference236 = ref span364[num]; + ref QuestSequence reference236 = ref span119[1]; QuestSequence obj168 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list366 = new List(index2); - CollectionsMarshal.SetCount(list366, index2); - Span span366 = CollectionsMarshal.AsSpan(list366); - num2 = 0; - ref QuestStep reference237 = ref span366[num2]; + num2 = 3; + List list366 = new List(num2); + CollectionsMarshal.SetCount(list366, num2); + Span span120 = CollectionsMarshal.AsSpan(list366); + ref QuestStep reference237 = ref span120[0]; QuestStep questStep58 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list367 = new List(num3); CollectionsMarshal.SetCount(list367, num3); - Span span367 = CollectionsMarshal.AsSpan(list367); - index3 = 0; - span367[index3] = EExtendedClassJob.Miner; + CollectionsMarshal.AsSpan(list367)[0] = EExtendedClassJob.Miner; questStep58.RequiredQuestAcceptedJob = list367; - index3 = 1; - List list368 = new List(index3); - CollectionsMarshal.SetCount(list368, index3); - Span span368 = CollectionsMarshal.AsSpan(list368); - num3 = 0; - span368[num3] = new GatheredItem + num3 = 1; + List list368 = new List(num3); + CollectionsMarshal.SetCount(list368, num3); + CollectionsMarshal.AsSpan(list368)[0] = new GatheredItem { ItemId = 48081u, ItemCount = 3 }; questStep58.ItemsToGather = list368; reference237 = questStep58; - num2++; - ref QuestStep reference238 = ref span366[num2]; + ref QuestStep reference238 = ref span120[1]; QuestStep questStep59 = new QuestStep(EInteractionType.Gather, null, null, 1189); num3 = 1; List list369 = new List(num3); CollectionsMarshal.SetCount(list369, num3); - Span span369 = CollectionsMarshal.AsSpan(list369); - index3 = 0; - span369[index3] = EExtendedClassJob.Botanist; + CollectionsMarshal.AsSpan(list369)[0] = EExtendedClassJob.Botanist; questStep59.RequiredQuestAcceptedJob = list369; - index3 = 1; - List list370 = new List(index3); - CollectionsMarshal.SetCount(list370, index3); - Span span370 = CollectionsMarshal.AsSpan(list370); - num3 = 0; - span370[num3] = new GatheredItem + num3 = 1; + List list370 = new List(num3); + CollectionsMarshal.SetCount(list370, num3); + CollectionsMarshal.AsSpan(list370)[0] = new GatheredItem { ItemId = 48082u, ItemCount = 3 }; questStep59.ItemsToGather = list370; reference238 = questStep59; - num2++; - span366[num2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) + span120[2] = new QuestStep(EInteractionType.CompleteQuest, 1052560u, new Vector3(589.3186f, -142.89168f, 729.4575f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -460885,16 +378846,13 @@ public static class AssemblyQuestLoader num = 1; List list371 = new List(num); CollectionsMarshal.SetCount(list371, num); - Span span371 = CollectionsMarshal.AsSpan(list371); - index = 0; - span371[index] = "liza"; + CollectionsMarshal.AsSpan(list371)[0] = "liza"; questRoot40.Author = list371; - index = 7; - List list372 = new List(index); - CollectionsMarshal.SetCount(list372, index); - Span span372 = CollectionsMarshal.AsSpan(list372); - num = 0; - ref QuestSequence reference239 = ref span372[num]; + num = 7; + List list372 = new List(num); + CollectionsMarshal.SetCount(list372, num); + Span span121 = CollectionsMarshal.AsSpan(list372); + ref QuestSequence reference239 = ref span121[0]; QuestSequence obj169 = new QuestSequence { Sequence = 0 @@ -460902,9 +378860,7 @@ public static class AssemblyQuestLoader num2 = 1; List list373 = new List(num2); CollectionsMarshal.SetCount(list373, num2); - Span span373 = CollectionsMarshal.AsSpan(list373); - index2 = 0; - span373[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + CollectionsMarshal.AsSpan(list373)[0] = new QuestStep(EInteractionType.AcceptQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -460915,18 +378871,16 @@ public static class AssemblyQuestLoader }; obj169.Steps = list373; reference239 = obj169; - num++; - ref QuestSequence reference240 = ref span372[num]; + ref QuestSequence reference240 = ref span121[1]; QuestSequence obj170 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list374 = new List(index2); - CollectionsMarshal.SetCount(list374, index2); - Span span374 = CollectionsMarshal.AsSpan(list374); - num2 = 0; - ref QuestStep reference241 = ref span374[num2]; + num2 = 2; + List list374 = new List(num2); + CollectionsMarshal.SetCount(list374, num2); + Span span122 = CollectionsMarshal.AsSpan(list374); + ref QuestStep reference241 = ref span122[0]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223 @@ -460936,19 +378890,15 @@ public static class AssemblyQuestLoader num3 = 1; List list375 = new List(num3); CollectionsMarshal.SetCount(list375, num3); - Span span375 = CollectionsMarshal.AsSpan(list375); - index3 = 0; - span375[index3] = 1223; + CollectionsMarshal.AsSpan(list375)[0] = 1223; skipStepConditions2.InTerritory = list375; skipConditions4.StepIf = skipStepConditions2; obj171.SkipConditions = skipConditions4; reference241 = obj171; - num2++; - span374[num2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + span122[1] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj170.Steps = list374; reference240 = obj170; - num++; - ref QuestSequence reference242 = ref span372[num]; + ref QuestSequence reference242 = ref span121[2]; QuestSequence obj172 = new QuestSequence { Sequence = 2 @@ -460956,26 +378906,22 @@ public static class AssemblyQuestLoader num2 = 1; List list376 = new List(num2); CollectionsMarshal.SetCount(list376, num2); - Span span376 = CollectionsMarshal.AsSpan(list376); - index2 = 0; - span376[index2] = new QuestStep(EInteractionType.Interact, 2014718u, new Vector3(3.0975342f, -0.015319824f, -6.3325195f), 1223) + CollectionsMarshal.AsSpan(list376)[0] = new QuestStep(EInteractionType.Interact, 2014718u, new Vector3(3.0975342f, -0.015319824f, -6.3325195f), 1223) { StopDistance = 4.5f }; obj172.Steps = list376; reference242 = obj172; - num++; - ref QuestSequence reference243 = ref span372[num]; + ref QuestSequence reference243 = ref span121[3]; QuestSequence obj173 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -460983,17 +378929,14 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - num2++; - span377[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.1231f, 2.2290611f, 206.59184f), 1186) + span123[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-259.1231f, 2.2290611f, 206.59184f), 1186) { DisableNavmesh = true }; - num2++; - span377[num2] = new QuestStep(EInteractionType.Interact, 1053743u, new Vector3(-231.61676f, 2.1997917f, 302.60156f), 1186); + span123[2] = new QuestStep(EInteractionType.Interact, 1053743u, new Vector3(-231.61676f, 2.1997917f, 302.60156f), 1186); obj173.Steps = list377; reference243 = obj173; - num++; - ref QuestSequence reference244 = ref span372[num]; + ref QuestSequence reference244 = ref span121[4]; QuestSequence obj174 = new QuestSequence { Sequence = 4 @@ -461001,11 +378944,9 @@ public static class AssemblyQuestLoader num2 = 3; List list378 = new List(num2); CollectionsMarshal.SetCount(list378, num2); - 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]; + 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]; QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223, @@ -461017,32 +378958,27 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - index3 = 1; - List list379 = new List(index3); - CollectionsMarshal.SetCount(list379, index3); - Span span379 = CollectionsMarshal.AsSpan(list379); - num3 = 0; - span379[num3] = 1223; + num3 = 1; + List list379 = new List(num3); + CollectionsMarshal.SetCount(list379, num3); + CollectionsMarshal.AsSpan(list379)[0] = 1223; skipStepConditions3.InTerritory = list379; skipConditions5.StepIf = skipStepConditions3; obj175.SkipConditions = skipConditions5; reference245 = obj175; - index2++; - span378[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + span124[2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj174.Steps = list378; reference244 = obj174; - num++; - ref QuestSequence reference246 = ref span372[num]; + ref QuestSequence reference246 = ref span121[5]; QuestSequence obj176 = new QuestSequence { Sequence = 5 }; - index2 = 2; - List list380 = new List(index2); - CollectionsMarshal.SetCount(list380, index2); - Span span380 = CollectionsMarshal.AsSpan(list380); - num2 = 0; - ref QuestStep reference247 = ref span380[num2]; + num2 = 2; + List list380 = new List(num2); + CollectionsMarshal.SetCount(list380, num2); + Span span125 = CollectionsMarshal.AsSpan(list380); + ref QuestStep reference247 = ref span125[0]; QuestStep obj177 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.0740967f, 0.8086548f, 10.574402f), 1223) { TargetTerritoryId = (ushort)1186 @@ -461052,15 +378988,12 @@ public static class AssemblyQuestLoader num3 = 1; List list381 = new List(num3); CollectionsMarshal.SetCount(list381, num3); - Span span381 = CollectionsMarshal.AsSpan(list381); - index3 = 0; - span381[index3] = 1223; + CollectionsMarshal.AsSpan(list381)[0] = 1223; skipStepConditions4.NotInTerritory = list381; skipConditions6.StepIf = skipStepConditions4; obj177.SkipConditions = skipConditions6; reference247 = obj177; - num2++; - ref QuestStep reference248 = ref span380[num2]; + ref QuestStep reference248 = ref span125[1]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1049787u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { AethernetShortcut = new AethernetShortcut @@ -461069,12 +379002,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - index3 = 1; - List list382 = new List(index3); - CollectionsMarshal.SetCount(list382, index3); - Span span382 = CollectionsMarshal.AsSpan(list382); - num3 = 0; - span382[num3] = new DialogueChoice + num3 = 1; + List list382 = new List(num3); + CollectionsMarshal.SetCount(list382, num3); + CollectionsMarshal.AsSpan(list382)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA201_05289_SYSTEM_100_171") @@ -461083,8 +379014,7 @@ public static class AssemblyQuestLoader reference248 = obj178; obj176.Steps = list380; reference246 = obj176; - num++; - ref QuestSequence reference249 = ref span372[num]; + ref QuestSequence reference249 = ref span121[6]; QuestSequence obj179 = new QuestSequence { Sequence = byte.MaxValue @@ -461092,9 +379022,7 @@ public static class AssemblyQuestLoader num2 = 1; List list383 = new List(num2); CollectionsMarshal.SetCount(list383, num2); - Span span383 = CollectionsMarshal.AsSpan(list383); - index2 = 0; - span383[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + CollectionsMarshal.AsSpan(list383)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5290) @@ -461108,33 +379036,27 @@ public static class AssemblyQuestLoader num = 1; List list384 = new List(num); CollectionsMarshal.SetCount(list384, num); - Span span384 = CollectionsMarshal.AsSpan(list384); - index = 0; - span384[index] = "liza"; + CollectionsMarshal.AsSpan(list384)[0] = "liza"; questRoot41.Author = list384; - index = 3; - List list385 = new List(index); - CollectionsMarshal.SetCount(list385, index); - Span span385 = CollectionsMarshal.AsSpan(list385); - num = 0; - ref QuestSequence reference250 = ref span385[num]; + num = 3; + List list385 = new List(num); + CollectionsMarshal.SetCount(list385, num); + Span span126 = CollectionsMarshal.AsSpan(list385); + ref QuestSequence reference250 = ref span126[0]; QuestSequence obj180 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj180.Steps = list386; reference250 = obj180; - num++; - ref QuestSequence reference251 = ref span385[num]; + ref QuestSequence reference251 = ref span126[1]; QuestSequence obj181 = new QuestSequence { Sequence = 1 @@ -461142,9 +379064,7 @@ public static class AssemblyQuestLoader num2 = 1; List list387 = new List(num2); CollectionsMarshal.SetCount(list387, num2); - Span span387 = CollectionsMarshal.AsSpan(list387); - index2 = 0; - span387[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) + CollectionsMarshal.AsSpan(list387)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -461153,18 +379073,15 @@ public static class AssemblyQuestLoader }; obj181.Steps = list387; reference251 = obj181; - num++; - ref QuestSequence reference252 = ref span385[num]; + ref QuestSequence reference252 = ref span126[2]; QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f, NextQuestId = new QuestId(5291) @@ -461178,16 +379095,13 @@ public static class AssemblyQuestLoader num = 1; List list389 = new List(num); CollectionsMarshal.SetCount(list389, num); - Span span389 = CollectionsMarshal.AsSpan(list389); - index = 0; - span389[index] = "liza"; + CollectionsMarshal.AsSpan(list389)[0] = "liza"; questRoot42.Author = list389; - index = 3; - List list390 = new List(index); - CollectionsMarshal.SetCount(list390, index); - Span span390 = CollectionsMarshal.AsSpan(list390); - num = 0; - ref QuestSequence reference253 = ref span390[num]; + num = 3; + List list390 = new List(num); + CollectionsMarshal.SetCount(list390, num); + Span span127 = CollectionsMarshal.AsSpan(list390); + ref QuestSequence reference253 = ref span127[0]; QuestSequence obj183 = new QuestSequence { Sequence = 0 @@ -461195,26 +379109,21 @@ public static class AssemblyQuestLoader num2 = 1; List list391 = new List(num2); CollectionsMarshal.SetCount(list391, num2); - Span span391 = CollectionsMarshal.AsSpan(list391); - index2 = 0; - span391[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + CollectionsMarshal.AsSpan(list391)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f }; obj183.Steps = list391; reference253 = obj183; - num++; - ref QuestSequence reference254 = ref span390[num]; + ref QuestSequence reference254 = ref span127[1]; QuestSequence obj184 = new QuestSequence { Sequence = 1 }; - 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) + num2 = 1; + List list392 = new List(num2); + CollectionsMarshal.SetCount(list392, num2); + CollectionsMarshal.AsSpan(list392)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -461223,8 +379132,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list392; reference254 = obj184; - num++; - ref QuestSequence reference255 = ref span390[num]; + ref QuestSequence reference255 = ref span127[2]; QuestSequence obj185 = new QuestSequence { Sequence = byte.MaxValue @@ -461232,9 +379140,7 @@ public static class AssemblyQuestLoader num2 = 1; List list393 = new List(num2); CollectionsMarshal.SetCount(list393, num2); - Span span393 = CollectionsMarshal.AsSpan(list393); - index2 = 0; - span393[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) + CollectionsMarshal.AsSpan(list393)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053792u, new Vector3(1.9683228f, -2.3974921E-12f, -11.12384f), 1224) { StopDistance = 5f, NextQuestId = new QuestId(5292) @@ -461248,33 +379154,27 @@ public static class AssemblyQuestLoader num = 1; List list394 = new List(num); CollectionsMarshal.SetCount(list394, num); - Span span394 = CollectionsMarshal.AsSpan(list394); - index = 0; - span394[index] = "liza"; + CollectionsMarshal.AsSpan(list394)[0] = "liza"; questRoot43.Author = list394; - index = 7; - List list395 = new List(index); - CollectionsMarshal.SetCount(list395, index); - Span span395 = CollectionsMarshal.AsSpan(list395); - num = 0; - ref QuestSequence reference256 = ref span395[num]; + num = 7; + List list395 = new List(num); + CollectionsMarshal.SetCount(list395, num); + Span span128 = CollectionsMarshal.AsSpan(list395); + ref QuestSequence reference256 = ref span128[0]; QuestSequence obj186 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj186.Steps = list396; reference256 = obj186; - num++; - ref QuestSequence reference257 = ref span395[num]; + ref QuestSequence reference257 = ref span128[1]; QuestSequence obj187 = new QuestSequence { Sequence = 1 @@ -461282,9 +379182,8 @@ public static class AssemblyQuestLoader num2 = 2; List list397 = new List(num2); CollectionsMarshal.SetCount(list397, num2); - Span span397 = CollectionsMarshal.AsSpan(list397); - index2 = 0; - ref QuestStep reference258 = ref span397[index2]; + Span span129 = CollectionsMarshal.AsSpan(list397); + ref QuestStep reference258 = ref span129[0]; QuestStep obj188 = new QuestStep(EInteractionType.Interact, 2013722u, new Vector3(-0.07635498f, 1.0527954f, 8.102478f), 1224) { TargetTerritoryId = (ushort)1186 @@ -461294,15 +379193,12 @@ public static class AssemblyQuestLoader num3 = 1; List list398 = new List(num3); CollectionsMarshal.SetCount(list398, num3); - Span span398 = CollectionsMarshal.AsSpan(list398); - index3 = 0; - span398[index3] = 1224; + CollectionsMarshal.AsSpan(list398)[0] = 1224; skipStepConditions5.NotInTerritory = list398; skipConditions7.StepIf = skipStepConditions5; obj188.SkipConditions = skipConditions7; reference258 = obj188; - index2++; - span397[index2] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + span129[1] = new QuestStep(EInteractionType.Interact, 1049790u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -461312,18 +379208,15 @@ public static class AssemblyQuestLoader }; obj187.Steps = list397; reference257 = obj187; - num++; - ref QuestSequence reference259 = ref span395[num]; + ref QuestSequence reference259 = ref span128[2]; QuestSequence obj189 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list399 = new List(index2); - CollectionsMarshal.SetCount(list399, index2); - Span span399 = CollectionsMarshal.AsSpan(list399); - num2 = 0; - ref QuestStep reference260 = ref span399[num2]; + num2 = 1; + List list399 = new List(num2); + CollectionsMarshal.SetCount(list399, num2); + ref QuestStep reference260 = ref CollectionsMarshal.AsSpan(list399)[0]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1053748u, new Vector3(392.44666f, 61.38526f, 325.82593f), 1186) { AethernetShortcut = new AethernetShortcut @@ -461332,12 +379225,10 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - index3 = 1; - List list400 = new List(index3); - CollectionsMarshal.SetCount(list400, index3); - Span span400 = CollectionsMarshal.AsSpan(list400); - num3 = 0; - span400[num3] = new DialogueChoice + num3 = 1; + List list400 = new List(num3); + CollectionsMarshal.SetCount(list400, num3); + CollectionsMarshal.AsSpan(list400)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA204_05292_SYSTEM_100_141") @@ -461346,13 +379237,11 @@ public static class AssemblyQuestLoader reference260 = obj190; obj189.Steps = list399; reference259 = obj189; - num++; - span395[num] = new QuestSequence + span128[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference261 = ref span395[num]; + ref QuestSequence reference261 = ref span128[4]; QuestSequence obj191 = new QuestSequence { Sequence = 4 @@ -461360,9 +379249,7 @@ public static class AssemblyQuestLoader num2 = 1; List list401 = new List(num2); CollectionsMarshal.SetCount(list401, num2); - Span span401 = CollectionsMarshal.AsSpan(list401); - index2 = 0; - span401[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) + CollectionsMarshal.AsSpan(list401)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -461371,23 +379258,19 @@ public static class AssemblyQuestLoader }; obj191.Steps = list401; reference261 = obj191; - num++; - span395[num] = new QuestSequence + span128[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference262 = ref span395[num]; + ref QuestSequence reference262 = ref span128[6]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5293) }; @@ -461400,16 +379283,13 @@ public static class AssemblyQuestLoader num = 1; List list403 = new List(num); CollectionsMarshal.SetCount(list403, num); - Span span403 = CollectionsMarshal.AsSpan(list403); - index = 0; - span403[index] = "liza"; + CollectionsMarshal.AsSpan(list403)[0] = "liza"; questRoot44.Author = list403; - index = 5; - List list404 = new List(index); - CollectionsMarshal.SetCount(list404, index); - Span span404 = CollectionsMarshal.AsSpan(list404); - num = 0; - ref QuestSequence reference263 = ref span404[num]; + num = 5; + List list404 = new List(num); + CollectionsMarshal.SetCount(list404, num); + Span span130 = CollectionsMarshal.AsSpan(list404); + ref QuestSequence reference263 = ref span130[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -461417,31 +379297,25 @@ public static class AssemblyQuestLoader num2 = 1; List list405 = new List(num2); CollectionsMarshal.SetCount(list405, num2); - Span span405 = CollectionsMarshal.AsSpan(list405); - index2 = 0; - span405[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + CollectionsMarshal.AsSpan(list405)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj193.Steps = list405; reference263 = obj193; - num++; - ref QuestSequence reference264 = ref span404[num]; + ref QuestSequence reference264 = ref span130[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation }; obj194.Steps = list406; reference264 = obj194; - num++; - ref QuestSequence reference265 = ref span404[num]; + ref QuestSequence reference265 = ref span130[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -461449,23 +379323,19 @@ public static class AssemblyQuestLoader num2 = 1; List list407 = new List(num2); CollectionsMarshal.SetCount(list407, num2); - Span span407 = CollectionsMarshal.AsSpan(list407); - index2 = 0; - span407[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + CollectionsMarshal.AsSpan(list407)[0] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj195.Steps = list407; reference265 = obj195; - num++; - ref QuestSequence reference266 = ref span404[num]; + ref QuestSequence reference266 = ref span130[3]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list408 = new List(index2); - CollectionsMarshal.SetCount(list408, index2); - Span span408 = CollectionsMarshal.AsSpan(list408); - num2 = 0; - ref QuestStep reference267 = ref span408[num2]; + num2 = 2; + List list408 = new List(num2); + CollectionsMarshal.SetCount(list408, num2); + Span span131 = CollectionsMarshal.AsSpan(list408); + ref QuestStep reference267 = ref span131[0]; QuestStep obj197 = new QuestStep(EInteractionType.Interact, 2013725u, new Vector3(4.0740967f, 0.8086548f, 10.574402f), 1223) { TargetTerritoryId = (ushort)1186 @@ -461475,15 +379345,12 @@ public static class AssemblyQuestLoader num3 = 1; List list409 = new List(num3); CollectionsMarshal.SetCount(list409, num3); - Span span409 = CollectionsMarshal.AsSpan(list409); - index3 = 0; - span409[index3] = 1223; + CollectionsMarshal.AsSpan(list409)[0] = 1223; skipStepConditions6.NotInTerritory = list409; skipConditions8.StepIf = skipStepConditions6; obj197.SkipConditions = skipConditions8; reference267 = obj197; - num2++; - span408[num2] = new QuestStep(EInteractionType.Interact, 1053751u, new Vector3(-296.4676f, 9.520004f, 27.328857f), 1186) + span131[1] = new QuestStep(EInteractionType.Interact, 1053751u, new Vector3(-296.4676f, 9.520004f, 27.328857f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -461493,8 +379360,7 @@ public static class AssemblyQuestLoader }; obj196.Steps = list408; reference266 = obj196; - num++; - ref QuestSequence reference268 = ref span404[num]; + ref QuestSequence reference268 = ref span130[4]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue @@ -461502,9 +379368,8 @@ public static class AssemblyQuestLoader num2 = 2; List list410 = new List(num2); CollectionsMarshal.SetCount(list410, num2); - Span span410 = CollectionsMarshal.AsSpan(list410); - index2 = 0; - span410[index2] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) + Span span132 = CollectionsMarshal.AsSpan(list410); + span132[0] = new QuestStep(EInteractionType.Interact, 1049793u, new Vector3(364.3396f, 60.125f, 357.1068f), 1186) { TargetTerritoryId = (ushort)1224, AethernetShortcut = new AethernetShortcut @@ -461513,8 +379378,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineTheArcadion } }; - index2++; - span410[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) + span132[1] = new QuestStep(EInteractionType.CompleteQuest, 1053745u, new Vector3(1.6326294f, -2.9191749E-12f, -12.466675f), 1224) { NextQuestId = new QuestId(5294) }; @@ -461527,30 +379391,24 @@ public static class AssemblyQuestLoader num = 1; List list411 = new List(num); CollectionsMarshal.SetCount(list411, num); - Span span411 = CollectionsMarshal.AsSpan(list411); - index = 0; - span411[index] = "liza"; + CollectionsMarshal.AsSpan(list411)[0] = "liza"; questRoot45.Author = list411; - index = 5; - List list412 = new List(index); - CollectionsMarshal.SetCount(list412, index); - Span span412 = CollectionsMarshal.AsSpan(list412); - num = 0; - ref QuestSequence reference269 = ref span412[num]; + num = 5; + List list412 = new List(num); + CollectionsMarshal.SetCount(list412, num); + Span span133 = CollectionsMarshal.AsSpan(list412); + ref QuestSequence reference269 = ref span133[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj199.Steps = list413; reference269 = obj199; - num++; - ref QuestSequence reference270 = ref span412[num]; + ref QuestSequence reference270 = ref span133[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 @@ -461558,9 +379416,7 @@ public static class AssemblyQuestLoader num2 = 1; List list414 = new List(num2); CollectionsMarshal.SetCount(list414, num2); - Span span414 = CollectionsMarshal.AsSpan(list414); - index2 = 0; - span414[index2] = new QuestStep(EInteractionType.Duty, null, null, 1224) + CollectionsMarshal.AsSpan(list414)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { @@ -461569,25 +379425,21 @@ public static class AssemblyQuestLoader }; obj200.Steps = list414; reference270 = obj200; - num++; - ref QuestSequence reference271 = ref span412[num]; + ref QuestSequence reference271 = ref span133[2]; QuestSequence obj201 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f }; obj201.Steps = list415; reference271 = obj201; - num++; - ref QuestSequence reference272 = ref span412[num]; + ref QuestSequence reference272 = ref span133[3]; QuestSequence obj202 = new QuestSequence { Sequence = 3 @@ -461595,27 +379447,23 @@ public static class AssemblyQuestLoader num2 = 3; List list416 = new List(num2); CollectionsMarshal.SetCount(list416, num2); - Span span416 = CollectionsMarshal.AsSpan(list416); - index2 = 0; - ref QuestStep reference273 = ref span416[index2]; + Span span134 = CollectionsMarshal.AsSpan(list416); + ref QuestStep reference273 = ref span134[0]; 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(); - index3 = 1; - List list417 = new List(index3); - CollectionsMarshal.SetCount(list417, index3); - Span span417 = CollectionsMarshal.AsSpan(list417); - num3 = 0; - span417[num3] = 1224; + num3 = 1; + List list417 = new List(num3); + CollectionsMarshal.SetCount(list417, num3); + CollectionsMarshal.AsSpan(list417)[0] = 1224; skipStepConditions7.NotInTerritory = list417; skipConditions9.StepIf = skipStepConditions7; obj203.SkipConditions = skipConditions9; reference273 = obj203; - index2++; - ref QuestStep reference274 = ref span416[index2]; + ref QuestStep reference274 = ref span134[1]; QuestStep obj204 = new QuestStep(EInteractionType.Interact, 2013724u, new Vector3(498.34436f, 60.593506f, 129.13708f), 1186) { TargetTerritoryId = (ushort)1223, @@ -461630,47 +379478,39 @@ public static class AssemblyQuestLoader num3 = 1; List list418 = new List(num3); CollectionsMarshal.SetCount(list418, num3); - Span span418 = CollectionsMarshal.AsSpan(list418); - index3 = 0; - span418[index3] = 1223; + CollectionsMarshal.AsSpan(list418)[0] = 1223; skipStepConditions8.InTerritory = list418; skipConditions10.StepIf = skipStepConditions8; obj204.SkipConditions = skipConditions10; reference274 = obj204; - index2++; - span416[index2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); + span134[2] = new QuestStep(EInteractionType.Interact, 1053740u, new Vector3(4.8675537f, 0f, -6.5462036f), 1223); obj202.Steps = list416; reference272 = obj202; - num++; - ref QuestSequence reference275 = ref span412[num]; + ref QuestSequence reference275 = ref span133[4]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 2; - List list419 = new List(index2); - CollectionsMarshal.SetCount(list419, index2); - Span span419 = CollectionsMarshal.AsSpan(list419); - num2 = 0; - ref QuestStep reference276 = ref span419[num2]; + num2 = 2; + List list419 = new List(num2); + CollectionsMarshal.SetCount(list419, num2); + Span span135 = CollectionsMarshal.AsSpan(list419); + ref QuestStep reference276 = ref span135[0]; 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(); - index3 = 1; - List list420 = new List(index3); - CollectionsMarshal.SetCount(list420, index3); - Span span420 = CollectionsMarshal.AsSpan(list420); - num3 = 0; - span420[num3] = 1223; + num3 = 1; + List list420 = new List(num3); + CollectionsMarshal.SetCount(list420, num3); + CollectionsMarshal.AsSpan(list420)[0] = 1223; skipStepConditions9.NotInTerritory = list420; skipConditions11.StepIf = skipStepConditions9; obj206.SkipConditions = skipConditions11; reference276 = obj206; - num2++; - span419[num2] = new QuestStep(EInteractionType.CompleteQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) + span135[1] = new QuestStep(EInteractionType.CompleteQuest, 1050471u, new Vector3(494.7433f, 59.55f, 125.10864f), 1186) { StopDistance = 7f }; @@ -461683,16 +379523,13 @@ public static class AssemblyQuestLoader num = 1; List list421 = new List(num); CollectionsMarshal.SetCount(list421, num); - Span span421 = CollectionsMarshal.AsSpan(list421); - index = 0; - span421[index] = "Censored"; + CollectionsMarshal.AsSpan(list421)[0] = "Censored"; questRoot46.Author = list421; - index = 10; - List list422 = new List(index); - CollectionsMarshal.SetCount(list422, index); - Span span422 = CollectionsMarshal.AsSpan(list422); - num = 0; - ref QuestSequence reference277 = ref span422[num]; + num = 10; + List list422 = new List(num); + CollectionsMarshal.SetCount(list422, num); + Span span136 = CollectionsMarshal.AsSpan(list422); + ref QuestSequence reference277 = ref span136[0]; QuestSequence obj207 = new QuestSequence { Sequence = 0 @@ -461700,9 +379537,8 @@ public static class AssemblyQuestLoader num2 = 2; List list423 = new List(num2); CollectionsMarshal.SetCount(list423, num2); - Span span423 = CollectionsMarshal.AsSpan(list423); - index2 = 0; - span423[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(311.757f, 70.0001f, -27.256859f), 1186) + Span span137 = CollectionsMarshal.AsSpan(list423); + span137[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(311.757f, 70.0001f, -27.256859f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -461732,25 +379568,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span423[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) + span137[1] = new QuestStep(EInteractionType.AcceptQuest, 1051709u, new Vector3(307.6676f, 70.00009f, -26.962769f), 1186) { StopDistance = 5f }; obj207.Steps = list423; reference277 = obj207; - num++; - ref QuestSequence reference278 = ref span422[num]; + ref QuestSequence reference278 = ref span136[1]; QuestSequence obj208 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -461760,8 +379592,7 @@ public static class AssemblyQuestLoader }; obj208.Steps = list424; reference278 = obj208; - num++; - ref QuestSequence reference279 = ref span422[num]; + ref QuestSequence reference279 = ref span136[2]; QuestSequence obj209 = new QuestSequence { Sequence = 2 @@ -461769,69 +379600,50 @@ public static class AssemblyQuestLoader num2 = 1; List list425 = new List(num2); CollectionsMarshal.SetCount(list425, num2); - Span span425 = CollectionsMarshal.AsSpan(list425); - index2 = 0; - span425[index2] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186); + CollectionsMarshal.AsSpan(list425)[0] = new QuestStep(EInteractionType.Interact, 1053617u, new Vector3(-120.47003f, 2.2297163f, 207.50745f), 1186); obj209.Steps = list425; reference279 = obj209; - num++; - ref QuestSequence reference280 = ref span422[num]; + ref QuestSequence reference280 = ref span136[3]; QuestSequence obj210 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list426 = new List(index2); - CollectionsMarshal.SetCount(list426, index2); - Span span426 = CollectionsMarshal.AsSpan(list426); - num2 = 0; - ref QuestStep reference281 = ref span426[num2]; + num2 = 3; + List list426 = new List(num2); + CollectionsMarshal.SetCount(list426, num2); + Span span138 = CollectionsMarshal.AsSpan(list426); + ref QuestStep reference281 = ref span138[0]; 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 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); + 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); questStep60.CompletionQuestVariablesFlags = list427; reference281 = questStep60; - num2++; - ref QuestStep reference282 = ref span426[num2]; + ref QuestStep reference282 = ref span138[1]; QuestStep questStep61 = new QuestStep(EInteractionType.Interact, 1053620u, new Vector3(-172.80847f, 2.2299733f, 207.96509f), 1186); - 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); + 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); questStep61.CompletionQuestVariablesFlags = list428; reference282 = questStep61; - num2++; - span426[num2] = new QuestStep(EInteractionType.Interact, 1053621u, new Vector3(-262.77563f, 2.1999757f, 236.25537f), 1186); + span138[2] = new QuestStep(EInteractionType.Interact, 1053621u, new Vector3(-262.77563f, 2.1999757f, 236.25537f), 1186); obj210.Steps = list426; reference280 = obj210; - num++; - ref QuestSequence reference283 = ref span422[num]; + ref QuestSequence reference283 = ref span136[4]; QuestSequence obj211 = new QuestSequence { Sequence = 4 @@ -461839,27 +379651,21 @@ public static class AssemblyQuestLoader num2 = 1; List list429 = new List(num2); CollectionsMarshal.SetCount(list429, num2); - Span span429 = CollectionsMarshal.AsSpan(list429); - index2 = 0; - span429[index2] = new QuestStep(EInteractionType.Interact, 1053626u, new Vector3(-323.26245f, 13.999997f, 178.0575f), 1186); + CollectionsMarshal.AsSpan(list429)[0] = new QuestStep(EInteractionType.Interact, 1053626u, new Vector3(-323.26245f, 13.999997f, 178.0575f), 1186); obj211.Steps = list429; reference283 = obj211; - num++; - ref QuestSequence reference284 = ref span422[num]; + ref QuestSequence reference284 = ref span136[5]; QuestSequence obj212 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj212.Steps = list430; reference284 = obj212; - num++; - ref QuestSequence reference285 = ref span422[num]; + ref QuestSequence reference285 = ref span136[6]; QuestSequence obj213 = new QuestSequence { Sequence = 6 @@ -461867,9 +379673,7 @@ public static class AssemblyQuestLoader num2 = 1; List list431 = new List(num2); CollectionsMarshal.SetCount(list431, num2); - Span span431 = CollectionsMarshal.AsSpan(list431); - index2 = 0; - ref QuestStep reference286 = ref span431[index2]; + ref QuestStep reference286 = ref CollectionsMarshal.AsSpan(list431)[0]; QuestStep obj214 = new QuestStep(EInteractionType.Interact, 1053627u, new Vector3(-580.22437f, -0.89430946f, -521.5991f), 1191) { Fly = true, @@ -461878,9 +379682,7 @@ public static class AssemblyQuestLoader num3 = 1; List list432 = new List(num3); CollectionsMarshal.SetCount(list432, num3); - Span span432 = CollectionsMarshal.AsSpan(list432); - index3 = 0; - span432[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list432)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_CHRHDB921_05295_SYSTEM_000_122") @@ -461889,22 +379691,18 @@ public static class AssemblyQuestLoader reference286 = obj214; obj213.Steps = list431; reference285 = obj213; - num++; - ref QuestSequence reference287 = ref span422[num]; + ref QuestSequence reference287 = ref span136[7]; QuestSequence obj215 = new QuestSequence { Sequence = 7 }; - 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); + 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); obj215.Steps = list433; reference287 = obj215; - num++; - ref QuestSequence reference288 = ref span422[num]; + ref QuestSequence reference288 = ref span136[8]; QuestSequence obj216 = new QuestSequence { Sequence = 8 @@ -461912,65 +379710,47 @@ public static class AssemblyQuestLoader num2 = 3; List list434 = new List(num2); CollectionsMarshal.SetCount(list434, num2); - Span span434 = CollectionsMarshal.AsSpan(list434); - index2 = 0; - ref QuestStep reference289 = ref span434[index2]; + Span span141 = CollectionsMarshal.AsSpan(list434); + ref QuestStep reference289 = ref span141[0]; QuestStep questStep62 = new QuestStep(EInteractionType.Interact, 2014622u, new Vector3(97.70349f, 12.588623f, 127.885864f), 1254); - 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); + 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); questStep62.CompletionQuestVariablesFlags = list435; reference289 = questStep62; - index2++; - ref QuestStep reference290 = ref span434[index2]; + ref QuestStep reference290 = ref span141[1]; 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 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); + 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); questStep63.CompletionQuestVariablesFlags = list436; reference290 = questStep63; - index2++; - span434[index2] = new QuestStep(EInteractionType.Interact, 2014624u, new Vector3(104.14282f, 12.924377f, 4.9591064f), 1254); + span141[2] = new QuestStep(EInteractionType.Interact, 2014624u, new Vector3(104.14282f, 12.924377f, 4.9591064f), 1254); obj216.Steps = list434; reference288 = obj216; - num++; - ref QuestSequence reference291 = ref span422[num]; + ref QuestSequence reference291 = ref span136[9]; QuestSequence obj217 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5296) }; @@ -461983,16 +379763,13 @@ public static class AssemblyQuestLoader num = 1; List list438 = new List(num); CollectionsMarshal.SetCount(list438, num); - Span span438 = CollectionsMarshal.AsSpan(list438); - index = 0; - span438[index] = "Censored"; + CollectionsMarshal.AsSpan(list438)[0] = "Censored"; questRoot47.Author = list438; - index = 7; - List list439 = new List(index); - CollectionsMarshal.SetCount(list439, index); - Span span439 = CollectionsMarshal.AsSpan(list439); - num = 0; - ref QuestSequence reference292 = ref span439[num]; + num = 7; + List list439 = new List(num); + CollectionsMarshal.SetCount(list439, num); + Span span144 = CollectionsMarshal.AsSpan(list439); + ref QuestSequence reference292 = ref span144[0]; QuestSequence obj218 = new QuestSequence { Sequence = 0 @@ -462000,23 +379777,18 @@ public static class AssemblyQuestLoader num2 = 1; List list440 = new List(num2); CollectionsMarshal.SetCount(list440, num2); - Span span440 = CollectionsMarshal.AsSpan(list440); - index2 = 0; - span440[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053634u, new Vector3(90.22656f, 12.03999f, 147.08167f), 1254); + CollectionsMarshal.AsSpan(list440)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053634u, new Vector3(90.22656f, 12.03999f, 147.08167f), 1254); obj218.Steps = list440; reference292 = obj218; - num++; - ref QuestSequence reference293 = ref span439[num]; + ref QuestSequence reference293 = ref span144[1]; QuestSequence obj219 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -462027,8 +379799,7 @@ public static class AssemblyQuestLoader }; obj219.Steps = list441; reference293 = obj219; - num++; - ref QuestSequence reference294 = ref span439[num]; + ref QuestSequence reference294 = ref span144[2]; QuestSequence obj220 = new QuestSequence { Sequence = 2 @@ -462036,30 +379807,24 @@ public static class AssemblyQuestLoader num2 = 1; List list442 = new List(num2); CollectionsMarshal.SetCount(list442, num2); - Span span442 = CollectionsMarshal.AsSpan(list442); - index2 = 0; - span442[index2] = new QuestStep(EInteractionType.Interact, 1053641u, new Vector3(-255.51239f, 26.1f, 103.04407f), 1191) + CollectionsMarshal.AsSpan(list442)[0] = new QuestStep(EInteractionType.Interact, 1053641u, new Vector3(-255.51239f, 26.1f, 103.04407f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundElectropeStrike }; obj220.Steps = list442; reference294 = obj220; - num++; - ref QuestSequence reference295 = ref span439[num]; + ref QuestSequence reference295 = ref span144[3]; QuestSequence obj221 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj221.Steps = list443; reference295 = obj221; - num++; - ref QuestSequence reference296 = ref span439[num]; + ref QuestSequence reference296 = ref span144[4]; QuestSequence obj222 = new QuestSequence { Sequence = 4 @@ -462067,19 +379832,15 @@ public static class AssemblyQuestLoader num2 = 1; List list444 = new List(num2); CollectionsMarshal.SetCount(list444, num2); - Span span444 = CollectionsMarshal.AsSpan(list444); - index2 = 0; - ref QuestStep reference297 = ref span444[index2]; + ref QuestStep reference297 = ref CollectionsMarshal.AsSpan(list444)[0]; QuestStep obj223 = new QuestStep(EInteractionType.Interact, 1053649u, new Vector3(113.63391f, 83.57817f, 552.20874f), 1191) { Fly = true }; - index3 = 1; - List list445 = new List(index3); - CollectionsMarshal.SetCount(list445, index3); - Span span445 = CollectionsMarshal.AsSpan(list445); - num3 = 0; - span445[num3] = new DialogueChoice + num3 = 1; + List list445 = new List(num3); + CollectionsMarshal.SetCount(list445, num3); + CollectionsMarshal.AsSpan(list445)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_CHRHDB922_05296_Q1_000_000"), @@ -462089,25 +379850,21 @@ public static class AssemblyQuestLoader reference297 = obj223; obj222.Steps = list444; reference296 = obj222; - num++; - ref QuestSequence reference298 = ref span439[num]; + ref QuestSequence reference298 = ref span144[5]; QuestSequence obj224 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj224.Steps = list446; reference298 = obj224; - num++; - ref QuestSequence reference299 = ref span439[num]; + ref QuestSequence reference299 = ref span144[6]; QuestSequence obj225 = new QuestSequence { Sequence = byte.MaxValue @@ -462115,9 +379872,7 @@ public static class AssemblyQuestLoader num2 = 1; List list447 = new List(num2); CollectionsMarshal.SetCount(list447, num2); - Span span447 = CollectionsMarshal.AsSpan(list447); - index2 = 0; - span447[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053652u, new Vector3(236.62158f, 50.749947f, 209.97937f), 1186) + CollectionsMarshal.AsSpan(list447)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053652u, new Vector3(236.62158f, 50.749947f, 209.97937f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -462136,28 +379891,23 @@ public static class AssemblyQuestLoader num = 1; List list448 = new List(num); CollectionsMarshal.SetCount(list448, num); - Span span448 = CollectionsMarshal.AsSpan(list448); - index = 0; - span448[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list448)[0] = "WigglyMuffin"; questRoot48.Author = list448; questRoot48.IsSeasonalQuest = true; questRoot48.SeasonalQuestExpiry = new DateTime(2025, 9, 11, 0, 0, 0, DateTimeKind.Utc); - index = 4; - List list449 = new List(index); - CollectionsMarshal.SetCount(list449, index); - Span span449 = CollectionsMarshal.AsSpan(list449); - num = 0; - ref QuestSequence reference300 = ref span449[num]; + num = 4; + List list449 = new List(num); + CollectionsMarshal.SetCount(list449, num); + Span span145 = CollectionsMarshal.AsSpan(list449); + ref QuestSequence reference300 = ref span145[0]; QuestSequence obj226 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list450 = new List(num2); + CollectionsMarshal.SetCount(list450, num2); + ref QuestStep reference301 = ref CollectionsMarshal.AsSpan(list450)[0]; QuestStep obj227 = new QuestStep(EInteractionType.AcceptQuest, 1053660u, new Vector3(3.5552979f, 44.499996f, 125.62744f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -462175,17 +379925,14 @@ public static class AssemblyQuestLoader num3 = 1; List list451 = new List(num3); CollectionsMarshal.SetCount(list451, num3); - Span span451 = CollectionsMarshal.AsSpan(list451); - index3 = 0; - span451[index3] = 128; + CollectionsMarshal.AsSpan(list451)[0] = 128; obj228.InTerritory = list451; skipConditions12.AetheryteShortcutIf = obj228; obj227.SkipConditions = skipConditions12; reference301 = obj227; obj226.Steps = list450; reference300 = obj226; - num++; - ref QuestSequence reference302 = ref span449[num]; + ref QuestSequence reference302 = ref span145[1]; QuestSequence obj229 = new QuestSequence { Sequence = 1 @@ -462193,32 +379940,26 @@ public static class AssemblyQuestLoader num2 = 1; List list452 = new List(num2); CollectionsMarshal.SetCount(list452, num2); - Span span452 = CollectionsMarshal.AsSpan(list452); - index2 = 0; - span452[index2] = new QuestStep(EInteractionType.Interact, 1001024u, new Vector3(28.519043f, 44.499977f, 176.3789f), 128); + CollectionsMarshal.AsSpan(list452)[0] = new QuestStep(EInteractionType.Interact, 1001024u, new Vector3(28.519043f, 44.499977f, 176.3789f), 128); obj229.Steps = list452; reference302 = obj229; - num++; - ref QuestSequence reference303 = ref span449[num]; + ref QuestSequence reference303 = ref span145[2]; QuestSequence obj230 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = true }; obj230.Steps = list453; reference303 = obj230; - num++; - ref QuestSequence reference304 = ref span449[num]; + ref QuestSequence reference304 = ref span145[3]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -462226,9 +379967,7 @@ public static class AssemblyQuestLoader num2 = 1; List list454 = new List(num2); CollectionsMarshal.SetCount(list454, num2); - Span span454 = CollectionsMarshal.AsSpan(list454); - index2 = 0; - span454[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) + CollectionsMarshal.AsSpan(list454)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) { NextQuestId = new QuestId(5298) }; @@ -462241,28 +379980,23 @@ public static class AssemblyQuestLoader num = 1; List list455 = new List(num); CollectionsMarshal.SetCount(list455, num); - Span span455 = CollectionsMarshal.AsSpan(list455); - index = 0; - span455[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list455)[0] = "WigglyMuffin"; questRoot49.Author = list455; questRoot49.IsSeasonalQuest = true; questRoot49.SeasonalQuestExpiry = new DateTime(2025, 9, 11, 0, 0, 0, DateTimeKind.Utc); - index = 8; - List list456 = new List(index); - CollectionsMarshal.SetCount(list456, index); - Span span456 = CollectionsMarshal.AsSpan(list456); - num = 0; - ref QuestSequence reference305 = ref span456[num]; + num = 8; + List list456 = new List(num); + CollectionsMarshal.SetCount(list456, num); + Span span147 = CollectionsMarshal.AsSpan(list456); + ref QuestSequence reference305 = ref span147[0]; QuestSequence obj232 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list457 = new List(num2); + CollectionsMarshal.SetCount(list457, num2); + ref QuestStep reference306 = ref CollectionsMarshal.AsSpan(list457)[0]; QuestStep obj233 = new QuestStep(EInteractionType.AcceptQuest, 1053663u, new Vector3(-34.01245f, 71.548134f, 135.63745f), 135) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -462277,20 +380011,17 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list458 = new List(index3); - CollectionsMarshal.SetCount(list458, index3); - Span span458 = CollectionsMarshal.AsSpan(list458); - num3 = 0; - span458[num3] = 135; + num3 = 1; + List list458 = new List(num3); + CollectionsMarshal.SetCount(list458, num3); + CollectionsMarshal.AsSpan(list458)[0] = 135; obj234.InTerritory = list458; skipConditions13.AetheryteShortcutIf = obj234; obj233.SkipConditions = skipConditions13; reference306 = obj233; obj232.Steps = list457; reference305 = obj232; - num++; - ref QuestSequence reference307 = ref span456[num]; + ref QuestSequence reference307 = ref span147[1]; QuestSequence obj235 = new QuestSequence { Sequence = 1 @@ -462298,26 +380029,21 @@ public static class AssemblyQuestLoader num2 = 1; List list459 = new List(num2); CollectionsMarshal.SetCount(list459, num2); - Span span459 = CollectionsMarshal.AsSpan(list459); - index2 = 0; - span459[index2] = new QuestStep(EInteractionType.Interact, 1053666u, new Vector3(184.40515f, 32.156242f, 112.962524f), 135) + CollectionsMarshal.AsSpan(list459)[0] = new QuestStep(EInteractionType.Interact, 1053666u, new Vector3(184.40515f, 32.156242f, 112.962524f), 135) { Fly = true }; obj235.Steps = list459; reference307 = obj235; - num++; - ref QuestSequence reference308 = ref span456[num]; + ref QuestSequence reference308 = ref span147[2]; QuestSequence obj236 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list460 = new List(index2); - CollectionsMarshal.SetCount(list460, index2); - Span span460 = CollectionsMarshal.AsSpan(list460); - num2 = 0; - ref QuestStep reference309 = ref span460[num2]; + num2 = 1; + List list460 = new List(num2); + CollectionsMarshal.SetCount(list460, num2); + ref QuestStep reference309 = ref CollectionsMarshal.AsSpan(list460)[0]; QuestStep obj237 = new QuestStep(EInteractionType.Interact, 1053667u, new Vector3(76.24927f, 71.28403f, 366.3844f), 135) { Fly = true @@ -462325,9 +380051,7 @@ public static class AssemblyQuestLoader num3 = 1; List list461 = new List(num3); CollectionsMarshal.SetCount(list461, num3); - Span span461 = CollectionsMarshal.AsSpan(list461); - index3 = 0; - span461[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list461)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESANX102_05298_Q50_000_001"), @@ -462337,8 +380061,7 @@ public static class AssemblyQuestLoader reference309 = obj237; obj236.Steps = list460; reference308 = obj236; - num++; - ref QuestSequence reference310 = ref span456[num]; + ref QuestSequence reference310 = ref span147[3]; QuestSequence obj238 = new QuestSequence { Sequence = 3 @@ -462346,33 +380069,27 @@ public static class AssemblyQuestLoader num2 = 1; List list462 = new List(num2); CollectionsMarshal.SetCount(list462, num2); - Span span462 = CollectionsMarshal.AsSpan(list462); - index2 = 0; - span462[index2] = new QuestStep(EInteractionType.Interact, 1053669u, new Vector3(-43.47296f, 55.10932f, 488.1819f), 135) + CollectionsMarshal.AsSpan(list462)[0] = new QuestStep(EInteractionType.Interact, 1053669u, new Vector3(-43.47296f, 55.10932f, 488.1819f), 135) { Fly = true }; obj238.Steps = list462; reference310 = obj238; - num++; - ref QuestSequence reference311 = ref span456[num]; + ref QuestSequence reference311 = ref span147[4]; QuestSequence obj239 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true }; obj239.Steps = list463; reference311 = obj239; - num++; - ref QuestSequence reference312 = ref span456[num]; + ref QuestSequence reference312 = ref span147[5]; QuestSequence obj240 = new QuestSequence { Sequence = 5 @@ -462380,38 +380097,32 @@ public static class AssemblyQuestLoader num2 = 2; List list464 = new List(num2); CollectionsMarshal.SetCount(list464, num2); - Span span464 = CollectionsMarshal.AsSpan(list464); - index2 = 0; - span464[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(134.80649f, 58.968193f, 935.78265f), 135) + Span span148 = CollectionsMarshal.AsSpan(list464); + span148[0] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(134.80649f, 58.968193f, 935.78265f), 135) { Fly = true }; - index2++; - span464[index2] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135) + span148[1] = new QuestStep(EInteractionType.Interact, 1002445u, new Vector3(136.82764f, 58.937588f, 937.43787f), 135) { Land = true }; obj240.Steps = list464; reference312 = obj240; - num++; - ref QuestSequence reference313 = ref span456[num]; + ref QuestSequence reference313 = ref span147[6]; QuestSequence obj241 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true }; obj241.Steps = list465; reference313 = obj241; - num++; - ref QuestSequence reference314 = ref span456[num]; + ref QuestSequence reference314 = ref span147[7]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -462419,9 +380130,7 @@ public static class AssemblyQuestLoader num2 = 1; List list466 = new List(num2); CollectionsMarshal.SetCount(list466, num2); - Span span466 = CollectionsMarshal.AsSpan(list466); - index2 = 0; - span466[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053677u, new Vector3(-178.4848f, 40.99994f, 185.44287f), 128); + CollectionsMarshal.AsSpan(list466)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053677u, new Vector3(-178.4848f, 40.99994f, 185.44287f), 128); obj242.Steps = list466; reference314 = obj242; questRoot49.QuestSequence = list456; @@ -462431,26 +380140,22 @@ public static class AssemblyQuestLoader num = 1; List list467 = new List(num); CollectionsMarshal.SetCount(list467, num); - Span span467 = CollectionsMarshal.AsSpan(list467); - index = 0; - span467[index] = "liza"; + CollectionsMarshal.AsSpan(list467)[0] = "liza"; questRoot50.Author = list467; - index = 5; - List list468 = new List(index); - CollectionsMarshal.SetCount(list468, index); - Span span468 = CollectionsMarshal.AsSpan(list468); - num = 0; - ref QuestSequence reference315 = ref span468[num]; + num = 5; + List list468 = new List(num); + CollectionsMarshal.SetCount(list468, num); + Span span149 = CollectionsMarshal.AsSpan(list468); + ref QuestSequence reference315 = ref span149[0]; QuestSequence obj243 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list469 = new List(num2); + CollectionsMarshal.SetCount(list469, num2); + Span span150 = CollectionsMarshal.AsSpan(list469); + ref QuestStep reference316 = ref span150[0]; QuestStep obj244 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -462463,34 +380168,28 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions14 = new SkipConditions(); SkipStepConditions skipStepConditions10 = new SkipStepConditions(); - index3 = 1; - List list470 = new List(index3); - CollectionsMarshal.SetCount(list470, index3); - Span span470 = CollectionsMarshal.AsSpan(list470); - num3 = 0; - span470[num3] = 1207; + num3 = 1; + List list470 = new List(num3); + CollectionsMarshal.SetCount(list470, num3); + CollectionsMarshal.AsSpan(list470)[0] = 1207; skipStepConditions10.InTerritory = list470; skipConditions14.StepIf = skipStepConditions10; SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); num3 = 1; List list471 = new List(num3); CollectionsMarshal.SetCount(list471, num3); - Span span471 = CollectionsMarshal.AsSpan(list471); - index3 = 0; - span471[index3] = 1207; + CollectionsMarshal.AsSpan(list471)[0] = 1207; skipAetheryteCondition3.InTerritory = list471; skipConditions14.AetheryteShortcutIf = skipAetheryteCondition3; obj244.SkipConditions = skipConditions14; reference316 = obj244; - num2++; - span469[num2] = new QuestStep(EInteractionType.AcceptQuest, 1052483u, new Vector3(-4.8982544f, -6.439014E-08f, 8.926453f), 1207) + span150[1] = new QuestStep(EInteractionType.AcceptQuest, 1052483u, new Vector3(-4.8982544f, -6.439014E-08f, 8.926453f), 1207) { StopDistance = 7f }; obj243.Steps = list469; reference315 = obj243; - num++; - ref QuestSequence reference317 = ref span468[num]; + ref QuestSequence reference317 = ref span149[1]; QuestSequence obj245 = new QuestSequence { Sequence = 1 @@ -462498,16 +380197,12 @@ public static class AssemblyQuestLoader num2 = 1; List list472 = new List(num2); CollectionsMarshal.SetCount(list472, num2); - Span span472 = CollectionsMarshal.AsSpan(list472); - index2 = 0; - ref QuestStep reference318 = ref span472[index2]; + ref QuestStep reference318 = ref CollectionsMarshal.AsSpan(list472)[0]; QuestStep questStep64 = new QuestStep(EInteractionType.Interact, 2014751u, new Vector3(-19.699463f, 2.7008667f, -30.258667f), 1207); - index3 = 1; - List list473 = new List(index3); - CollectionsMarshal.SetCount(list473, index3); - Span span473 = CollectionsMarshal.AsSpan(list473); - num3 = 0; - span473[num3] = new DialogueChoice + num3 = 1; + List list473 = new List(num3); + CollectionsMarshal.SetCount(list473, num3); + CollectionsMarshal.AsSpan(list473)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMH101_05299_SYSTEM_000_031") @@ -462516,30 +380211,25 @@ public static class AssemblyQuestLoader reference318 = questStep64; obj245.Steps = list472; reference317 = obj245; - num++; - span468[num] = new QuestSequence + span149[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference319 = ref span468[num]; + ref QuestSequence reference319 = ref span149[3]; QuestSequence obj246 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj246.Steps = list474; reference319 = obj246; - num++; - ref QuestSequence reference320 = ref span468[num]; + ref QuestSequence reference320 = ref span149[4]; QuestSequence obj247 = new QuestSequence { Sequence = byte.MaxValue @@ -462547,9 +380237,7 @@ public static class AssemblyQuestLoader num2 = 1; List list475 = new List(num2); CollectionsMarshal.SetCount(list475, num2); - Span span475 = CollectionsMarshal.AsSpan(list475); - index2 = 0; - span475[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) + CollectionsMarshal.AsSpan(list475)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) { StopDistance = 7f }; @@ -462566,16 +380254,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "liza"; + CollectionsMarshal.AsSpan(list)[0] = "liza"; questRoot.Author = list; - index = 5; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 5; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -462583,26 +380268,22 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054140u, new Vector3(5.203247f, 0.025f, 2.304016f), 1268) { StopDistance = 7f }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list4 = new List(index2); - CollectionsMarshal.SetCount(list4, index2); - Span span4 = CollectionsMarshal.AsSpan(list4); - num2 = 0; - ref QuestStep reference3 = ref span4[num2]; + num2 = 2; + List list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); + Span span2 = CollectionsMarshal.AsSpan(list4); + ref QuestStep reference3 = ref span2[0]; QuestStep obj3 = new QuestStep(EInteractionType.Interact, 2014672u, new Vector3(17.19253f, 0.9405764f, 8.082603f), 1268) { TargetTerritoryId = (ushort)1207 @@ -462612,19 +380293,15 @@ public static class AssemblyQuestLoader int num3 = 1; List list5 = new List(num3); CollectionsMarshal.SetCount(list5, num3); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index3 = 0; - span5[index3] = 1268; + CollectionsMarshal.AsSpan(list5)[0] = 1268; skipStepConditions.NotInTerritory = list5; skipConditions.StepIf = skipStepConditions; obj3.SkipConditions = skipConditions; reference3 = obj3; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 2014674u, new Vector3(-4.4404297f, -0.015319824f, 8.895996f), 1207); + span2[1] = new QuestStep(EInteractionType.Interact, 2014674u, new Vector3(-4.4404297f, -0.015319824f, 8.895996f), 1207); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[2]; QuestSequence obj4 = new QuestSequence { Sequence = 2 @@ -462632,27 +380309,23 @@ public static class AssemblyQuestLoader num2 = 2; List list6 = new List(num2); CollectionsMarshal.SetCount(list6, num2); - Span span6 = CollectionsMarshal.AsSpan(list6); - index2 = 0; - ref QuestStep reference5 = ref span6[index2]; + Span span3 = CollectionsMarshal.AsSpan(list6); + ref QuestStep reference5 = ref span3[0]; 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(); - index3 = 1; - List list7 = new List(index3); - CollectionsMarshal.SetCount(list7, index3); - Span span7 = CollectionsMarshal.AsSpan(list7); - num3 = 0; - span7[num3] = 1207; + num3 = 1; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = 1207; skipStepConditions2.NotInTerritory = list7; skipConditions2.StepIf = skipStepConditions2; obj5.SkipConditions = skipConditions2; reference5 = obj5; - index2++; - ref QuestStep reference6 = ref span6[index2]; + ref QuestStep reference6 = ref span3[1]; QuestStep obj6 = new QuestStep(EInteractionType.Interact, 1053820u, new Vector3(0.59503174f, -6.0500035f, 226.6117f), 1186) { AethernetShortcut = new AethernetShortcut @@ -462664,46 +380337,36 @@ public static class AssemblyQuestLoader num3 = 1; List list8 = new List(num3); CollectionsMarshal.SetCount(list8, num3); - Span span8 = CollectionsMarshal.AsSpan(list8); - index3 = 0; - span8[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list8)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMH102_05300_Q1_000_034") }; obj6.DialogueChoices = list8; - 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; + 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; obj6.PointMenuChoices = list9; reference6 = obj6; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference7 = ref span2[num]; + ref QuestSequence reference7 = ref span[3]; QuestSequence obj7 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj7.Steps = list10; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span2[num]; + ref QuestSequence reference8 = ref span[4]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue @@ -462711,9 +380374,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053827u, new Vector3(-306.0807f, 10.0149355f, 1.8157349f), 1186) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053827u, new Vector3(-306.0807f, 10.0149355f, 1.8157349f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -462730,33 +380391,27 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "liza"; + CollectionsMarshal.AsSpan(list12)[0] = "liza"; questRoot2.Author = list12; - index = 6; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference9 = ref span13[num]; + num = 6; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span5 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference9 = ref span5[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj9.Steps = list14; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span13[num]; + ref QuestSequence reference10 = ref span5[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 @@ -462764,9 +380419,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.Interact, 1053835u, new Vector3(312.73352f, 70.00006f, 10.72699f), 1186) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.Interact, 1053835u, new Vector3(312.73352f, 70.00006f, 10.72699f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -462776,26 +380429,22 @@ public static class AssemblyQuestLoader }; obj10.Steps = list15; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span5[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 5f, Emote = EEmote.Rally }; obj11.Steps = list16; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span5[3]; QuestSequence obj12 = new QuestSequence { Sequence = 3 @@ -462803,91 +380452,66 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.Interact, 1053839u, new Vector3(311.39075f, 70.00006f, 10.421875f), 1186) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.Interact, 1053839u, new Vector3(311.39075f, 70.00006f, 10.421875f), 1186) { StopDistance = 7f }; obj12.Steps = list17; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span13[num]; + ref QuestSequence reference13 = ref span5[4]; QuestSequence obj13 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list18 = new List(index2); - CollectionsMarshal.SetCount(list18, index2); - Span span18 = CollectionsMarshal.AsSpan(list18); - num2 = 0; - ref QuestStep reference14 = ref span18[num2]; + num2 = 3; + List list18 = new List(num2); + CollectionsMarshal.SetCount(list18, num2); + Span span6 = CollectionsMarshal.AsSpan(list18); + ref QuestStep reference14 = ref span6[0]; 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 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); + 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); questStep.CompletionQuestVariablesFlags = list19; reference14 = questStep; - num2++; - ref QuestStep reference15 = ref span18[num2]; + ref QuestStep reference15 = ref span6[1]; QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1053843u, new Vector3(350.1183f, 50.75f, 244.80042f), 1186); - 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); + 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); questStep2.CompletionQuestVariablesFlags = list20; reference15 = questStep2; - num2++; - ref QuestStep reference16 = ref span18[num2]; + ref QuestStep reference16 = ref span6[2]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list21; reference16 = questStep3; obj13.Steps = list18; reference13 = obj13; - num++; - ref QuestSequence reference17 = ref span13[num]; + ref QuestSequence reference17 = ref span5[5]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue @@ -462895,9 +380519,7 @@ public static class AssemblyQuestLoader num2 = 1; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - span22[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053844u, new Vector3(241.01624f, 50.75f, 273.91467f), 1186); + CollectionsMarshal.AsSpan(list22)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053844u, new Vector3(241.01624f, 50.75f, 273.91467f), 1186); obj14.Steps = list22; reference17 = obj14; questRoot2.QuestSequence = list13; @@ -462907,33 +380529,27 @@ public static class AssemblyQuestLoader num = 1; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); - Span span23 = CollectionsMarshal.AsSpan(list23); - index = 0; - span23[index] = "liza"; + CollectionsMarshal.AsSpan(list23)[0] = "liza"; questRoot3.Author = list23; - index = 5; - List list24 = new List(index); - CollectionsMarshal.SetCount(list24, index); - Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - ref QuestSequence reference18 = ref span24[num]; + num = 5; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); + Span span10 = CollectionsMarshal.AsSpan(list24); + ref QuestSequence reference18 = ref span10[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj15.Steps = list25; reference18 = obj15; - num++; - ref QuestSequence reference19 = ref span24[num]; + ref QuestSequence reference19 = ref span10[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 @@ -462941,27 +380557,21 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.Interact, 1053847u, new Vector3(314.62573f, 70.00009f, 0.7476196f), 1186); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.Interact, 1053847u, new Vector3(314.62573f, 70.00009f, 0.7476196f), 1186); obj16.Steps = list26; reference19 = obj16; - num++; - ref QuestSequence reference20 = ref span24[num]; + ref QuestSequence reference20 = ref span10[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj17.Steps = list27; reference20 = obj17; - num++; - ref QuestSequence reference21 = ref span24[num]; + ref QuestSequence reference21 = ref span10[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 @@ -462969,9 +380579,7 @@ public static class AssemblyQuestLoader num2 = 1; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - Span span28 = CollectionsMarshal.AsSpan(list28); - index2 = 0; - span28[index2] = new QuestStep(EInteractionType.Interact, 2014675u, new Vector3(270.83228f, 50.736206f, 123.00293f), 1186) + CollectionsMarshal.AsSpan(list28)[0] = new QuestStep(EInteractionType.Interact, 2014675u, new Vector3(270.83228f, 50.736206f, 123.00293f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -462981,18 +380589,15 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference21 = obj18; - num++; - ref QuestSequence reference22 = ref span24[num]; + ref QuestSequence reference22 = ref span10[4]; QuestSequence obj19 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -463005,16 +380610,13 @@ public static class AssemblyQuestLoader num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span30 = CollectionsMarshal.AsSpan(list30); - index = 0; - span30[index] = "liza"; + CollectionsMarshal.AsSpan(list30)[0] = "liza"; questRoot4.Author = list30; - index = 3; - List list31 = new List(index); - CollectionsMarshal.SetCount(list31, index); - Span span31 = CollectionsMarshal.AsSpan(list31); - num = 0; - ref QuestSequence reference23 = ref span31[num]; + num = 3; + List list31 = new List(num); + CollectionsMarshal.SetCount(list31, num); + Span span11 = CollectionsMarshal.AsSpan(list31); + ref QuestSequence reference23 = ref span11[0]; QuestSequence obj20 = new QuestSequence { Sequence = 0 @@ -463022,48 +380624,40 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053857u, new Vector3(271.10706f, 50.749996f, 186.05322f), 1186) { StopDistance = 5f }; obj20.Steps = list32; reference23 = obj20; - num++; - ref QuestSequence reference24 = ref span31[num]; + ref QuestSequence reference24 = ref span11[1]; QuestSequence obj21 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list33 = new List(index2); - CollectionsMarshal.SetCount(list33, index2); - Span span33 = CollectionsMarshal.AsSpan(list33); - num2 = 0; - ref QuestStep reference25 = ref span33[num2]; + num2 = 2; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span12 = CollectionsMarshal.AsSpan(list33); + ref QuestStep reference25 = ref span12[0]; 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(); - index3 = 1; - List list34 = new List(index3); - CollectionsMarshal.SetCount(list34, index3); - Span span34 = CollectionsMarshal.AsSpan(list34); - num3 = 0; - span34[num3] = 1207; + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + CollectionsMarshal.AsSpan(list34)[0] = 1207; skipStepConditions3.InTerritory = list34; skipConditions3.StepIf = skipStepConditions3; obj22.SkipConditions = skipConditions3; reference25 = obj22; - num2++; - span33[num2] = new QuestStep(EInteractionType.Interact, 1053860u, new Vector3(-4.348877f, -4.3092264E-08f, 6.576599f), 1207); + span12[1] = new QuestStep(EInteractionType.Interact, 1053860u, new Vector3(-4.348877f, -4.3092264E-08f, 6.576599f), 1207); obj21.Steps = list33; reference24 = obj21; - num++; - ref QuestSequence reference26 = ref span31[num]; + ref QuestSequence reference26 = ref span11[2]; QuestSequence obj23 = new QuestSequence { Sequence = byte.MaxValue @@ -463071,9 +380665,7 @@ public static class AssemblyQuestLoader num2 = 1; List list35 = new List(num2); CollectionsMarshal.SetCount(list35, num2); - Span span35 = CollectionsMarshal.AsSpan(list35); - index2 = 0; - span35[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053864u, new Vector3(-2.456726f, -7.357661E-08f, 9.109558f), 1207); + CollectionsMarshal.AsSpan(list35)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053864u, new Vector3(-2.456726f, -7.357661E-08f, 9.109558f), 1207); obj23.Steps = list35; reference26 = obj23; questRoot4.QuestSequence = list31; @@ -463083,33 +380675,27 @@ public static class AssemblyQuestLoader num = 1; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span36 = CollectionsMarshal.AsSpan(list36); - index = 0; - span36[index] = "liza"; + CollectionsMarshal.AsSpan(list36)[0] = "liza"; questRoot5.Author = list36; - index = 6; - List list37 = new List(index); - CollectionsMarshal.SetCount(list37, index); - Span span37 = CollectionsMarshal.AsSpan(list37); - num = 0; - ref QuestSequence reference27 = ref span37[num]; + num = 6; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + Span span13 = CollectionsMarshal.AsSpan(list37); + ref QuestSequence reference27 = ref span13[0]; QuestSequence obj24 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj24.Steps = list38; reference27 = obj24; - num++; - ref QuestSequence reference28 = ref span37[num]; + ref QuestSequence reference28 = ref span13[1]; QuestSequence obj25 = new QuestSequence { Sequence = 1 @@ -463117,9 +380703,8 @@ public static class AssemblyQuestLoader num2 = 2; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - ref QuestStep reference29 = ref span39[index2]; + Span span14 = CollectionsMarshal.AsSpan(list39); + ref QuestStep reference29 = ref span14[0]; QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.01455665f, 1f, 16.05096f), 1207) { TargetTerritoryId = (ushort)1186 @@ -463129,15 +380714,12 @@ public static class AssemblyQuestLoader num3 = 1; List list40 = new List(num3); CollectionsMarshal.SetCount(list40, num3); - Span span40 = CollectionsMarshal.AsSpan(list40); - index3 = 0; - span40[index3] = 1207; + CollectionsMarshal.AsSpan(list40)[0] = 1207; skipStepConditions4.NotInTerritory = list40; skipConditions4.StepIf = skipStepConditions4; obj26.SkipConditions = skipConditions4; reference29 = obj26; - index2++; - span39[index2] = new QuestStep(EInteractionType.Interact, 1053865u, new Vector3(-70.72565f, 42.8066f, -546.95966f), 1186) + span14[1] = new QuestStep(EInteractionType.Interact, 1053865u, new Vector3(-70.72565f, 42.8066f, -546.95966f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -463147,18 +380729,15 @@ public static class AssemblyQuestLoader }; obj25.Steps = list39; reference28 = obj25; - num++; - ref QuestSequence reference30 = ref span37[num]; + ref QuestSequence reference30 = ref span13[2]; QuestSequence obj27 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + CollectionsMarshal.AsSpan(list41)[0] = new QuestStep(EInteractionType.Duty, null, null, 1186) { DutyOptions = new DutyOptions { @@ -463168,13 +380747,11 @@ public static class AssemblyQuestLoader }; obj27.Steps = list41; reference30 = obj27; - num++; - span37[num] = new QuestSequence + span13[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference31 = ref span37[num]; + ref QuestSequence reference31 = ref span13[4]; QuestSequence obj28 = new QuestSequence { Sequence = 4 @@ -463182,9 +380759,7 @@ public static class AssemblyQuestLoader num2 = 1; List list42 = new List(num2); CollectionsMarshal.SetCount(list42, num2); - Span span42 = CollectionsMarshal.AsSpan(list42); - index2 = 0; - span42[index2] = new QuestStep(EInteractionType.Duty, null, null, 1275) + CollectionsMarshal.AsSpan(list42)[0] = new QuestStep(EInteractionType.Duty, null, null, 1275) { DutyOptions = new DutyOptions { @@ -463193,18 +380768,15 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference31 = obj28; - num++; - ref QuestSequence reference32 = ref span37[num]; + ref QuestSequence reference32 = ref span13[5]; QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 5f }; @@ -463217,16 +380789,13 @@ public static class AssemblyQuestLoader num = 1; List list44 = new List(num); CollectionsMarshal.SetCount(list44, num); - Span span44 = CollectionsMarshal.AsSpan(list44); - index = 0; - span44[index] = "liza"; + CollectionsMarshal.AsSpan(list44)[0] = "liza"; questRoot6.Author = list44; - index = 5; - List list45 = new List(index); - CollectionsMarshal.SetCount(list45, index); - Span span45 = CollectionsMarshal.AsSpan(list45); - num = 0; - ref QuestSequence reference33 = ref span45[num]; + num = 5; + List list45 = new List(num); + CollectionsMarshal.SetCount(list45, num); + Span span15 = CollectionsMarshal.AsSpan(list45); + ref QuestSequence reference33 = ref span15[0]; QuestSequence obj30 = new QuestSequence { Sequence = 0 @@ -463234,33 +380803,27 @@ public static class AssemblyQuestLoader num2 = 1; List list46 = new List(num2); CollectionsMarshal.SetCount(list46, num2); - Span span46 = CollectionsMarshal.AsSpan(list46); - index2 = 0; - span46[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) + CollectionsMarshal.AsSpan(list46)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053873u, new Vector3(0.015197754f, 0f, 20.645447f), 1274) { StopDistance = 5f }; obj30.Steps = list46; reference33 = obj30; - num++; - ref QuestSequence reference34 = ref span45[num]; + ref QuestSequence reference34 = ref span15[1]; QuestSequence obj31 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 5f }; obj31.Steps = list47; reference34 = obj31; - num++; - ref QuestSequence reference35 = ref span45[num]; + ref QuestSequence reference35 = ref span15[2]; QuestSequence obj32 = new QuestSequence { Sequence = 2 @@ -463268,27 +380831,21 @@ public static class AssemblyQuestLoader num2 = 1; List list48 = new List(num2); CollectionsMarshal.SetCount(list48, num2); - Span span48 = CollectionsMarshal.AsSpan(list48); - index2 = 0; - span48[index2] = new QuestStep(EInteractionType.Interact, 2014733u, new Vector3(0.015197754f, -0.4730835f, -0.38153076f), 1207); + CollectionsMarshal.AsSpan(list48)[0] = new QuestStep(EInteractionType.Interact, 2014733u, new Vector3(0.015197754f, -0.4730835f, -0.38153076f), 1207); obj32.Steps = list48; reference35 = obj32; - num++; - ref QuestSequence reference36 = ref span45[num]; + ref QuestSequence reference36 = ref span15[3]; QuestSequence obj33 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj33.Steps = list49; reference36 = obj33; - num++; - ref QuestSequence reference37 = ref span45[num]; + ref QuestSequence reference37 = ref span15[4]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue @@ -463296,27 +380853,23 @@ public static class AssemblyQuestLoader num2 = 4; List list50 = new List(num2); CollectionsMarshal.SetCount(list50, num2); - Span span50 = CollectionsMarshal.AsSpan(list50); - index2 = 0; - ref QuestStep reference38 = ref span50[index2]; + Span span16 = CollectionsMarshal.AsSpan(list50); + ref QuestStep reference38 = ref span16[0]; 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(); - index3 = 1; - List list51 = new List(index3); - CollectionsMarshal.SetCount(list51, index3); - Span span51 = CollectionsMarshal.AsSpan(list51); - num3 = 0; - span51[num3] = 1207; + num3 = 1; + List list51 = new List(num3); + CollectionsMarshal.SetCount(list51, num3); + CollectionsMarshal.AsSpan(list51)[0] = 1207; skipStepConditions5.NotInTerritory = list51; skipConditions5.StepIf = skipStepConditions5; obj35.SkipConditions = skipConditions5; reference38 = obj35; - index2++; - span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.58365f, 14.029998f, 272.07394f), 1186) + span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-404.58365f, 14.029998f, 272.07394f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -463324,13 +380877,11 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResidentialSector } }; - index2++; - span50[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.75183f, 13.499982f, 269.15036f), 1186) + span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-409.75183f, 13.499982f, 269.15036f), 1186) { DisableNavmesh = true }; - index2++; - span50[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053874u, new Vector3(-402.48724f, 13.699979f, 240.98572f), 1186); + span16[3] = new QuestStep(EInteractionType.CompleteQuest, 1053874u, new Vector3(-402.48724f, 13.699979f, 240.98572f), 1186); obj34.Steps = list50; reference37 = obj34; questRoot6.QuestSequence = list45; @@ -463340,30 +380891,24 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "liza"; + CollectionsMarshal.AsSpan(list52)[0] = "liza"; questRoot7.Author = list52; - index = 6; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference39 = ref span53[num]; + num = 6; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span17 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference39 = ref span17[0]; QuestSequence obj36 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj36.Steps = list54; reference39 = obj36; - num++; - ref QuestSequence reference40 = ref span53[num]; + ref QuestSequence reference40 = ref span17[1]; QuestSequence obj37 = new QuestSequence { Sequence = 1 @@ -463371,26 +380916,21 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - span55[index2] = new QuestStep(EInteractionType.Interact, 1053881u, new Vector3(-240.89423f, 30f, -595.36127f), 1191) + CollectionsMarshal.AsSpan(list55)[0] = new QuestStep(EInteractionType.Interact, 1053881u, new Vector3(-240.89423f, 30f, -595.36127f), 1191) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj37.Steps = list55; reference40 = obj37; - num++; - ref QuestSequence reference41 = ref span53[num]; + ref QuestSequence reference41 = ref span17[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list56 = new List(index2); - CollectionsMarshal.SetCount(list56, index2); - Span span56 = CollectionsMarshal.AsSpan(list56); - num2 = 0; - ref QuestStep reference42 = ref span56[num2]; + num2 = 1; + List list56 = new List(num2); + CollectionsMarshal.SetCount(list56, num2); + ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list56)[0]; QuestStep obj39 = new QuestStep(EInteractionType.Combat, null, new Vector3(205.08792f, 86.3551f, -419.18634f), 1191) { StopDistance = 0.5f, @@ -463400,17 +380940,14 @@ public static class AssemblyQuestLoader num3 = 2; List list57 = new List(num3); CollectionsMarshal.SetCount(list57, num3); - Span span57 = CollectionsMarshal.AsSpan(list57); - index3 = 0; - span57[index3] = 18476u; - index3++; - span57[index3] = 18477u; + Span span18 = CollectionsMarshal.AsSpan(list57); + span18[0] = 18476u; + span18[1] = 18477u; obj39.KillEnemyDataIds = list57; reference42 = obj39; obj38.Steps = list56; reference41 = obj38; - num++; - ref QuestSequence reference43 = ref span53[num]; + ref QuestSequence reference43 = ref span17[3]; QuestSequence obj40 = new QuestSequence { Sequence = 3 @@ -463418,30 +380955,24 @@ public static class AssemblyQuestLoader num2 = 1; List list58 = new List(num2); CollectionsMarshal.SetCount(list58, num2); - Span span58 = CollectionsMarshal.AsSpan(list58); - index2 = 0; - span58[index2] = new QuestStep(EInteractionType.Interact, 1053885u, new Vector3(204.21143f, 86.28118f, -420.09613f), 1191); + CollectionsMarshal.AsSpan(list58)[0] = new QuestStep(EInteractionType.Interact, 1053885u, new Vector3(204.21143f, 86.28118f, -420.09613f), 1191); obj40.Steps = list58; reference43 = obj40; - num++; - ref QuestSequence reference44 = ref span53[num]; + ref QuestSequence reference44 = ref span17[4]; QuestSequence obj41 = new QuestSequence { Sequence = 4 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj41.Steps = list59; reference44 = obj41; - num++; - ref QuestSequence reference45 = ref span53[num]; + ref QuestSequence reference45 = ref span17[5]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue @@ -463449,9 +380980,7 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - span60[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054150u, new Vector3(-5.9052734f, -3.5390258E-08f, 6.790222f), 1207); + CollectionsMarshal.AsSpan(list60)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054150u, new Vector3(-5.9052734f, -3.5390258E-08f, 6.790222f), 1207); obj42.Steps = list60; reference45 = obj42; questRoot7.QuestSequence = list53; @@ -463461,26 +380990,21 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "liza"; + CollectionsMarshal.AsSpan(list61)[0] = "liza"; questRoot8.Author = list61; - index = 4; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference46 = ref span62[num]; + num = 4; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span19 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference46 = ref span19[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -463493,8 +381017,7 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference46 = obj43; - num++; - ref QuestSequence reference47 = ref span62[num]; + ref QuestSequence reference47 = ref span19[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 @@ -463502,30 +381025,24 @@ public static class AssemblyQuestLoader num2 = 1; List list64 = new List(num2); CollectionsMarshal.SetCount(list64, num2); - Span span64 = CollectionsMarshal.AsSpan(list64); - index2 = 0; - span64[index2] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185); + CollectionsMarshal.AsSpan(list64)[0] = new QuestStep(EInteractionType.Interact, 1053732u, new Vector3(153.70398f, -17.9645f, 95.56726f), 1185); obj44.Steps = list64; reference47 = obj44; - num++; - ref QuestSequence reference48 = ref span62[num]; + ref QuestSequence reference48 = ref span19[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 0.5f }; obj45.Steps = list65; reference48 = obj45; - num++; - ref QuestSequence reference49 = ref span62[num]; + ref QuestSequence reference49 = ref span19[3]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue @@ -463533,9 +381050,7 @@ public static class AssemblyQuestLoader num2 = 1; List list66 = new List(num2); CollectionsMarshal.SetCount(list66, num2); - Span span66 = CollectionsMarshal.AsSpan(list66); - index2 = 0; - span66[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053739u, new Vector3(2.1514893f, -10.00001f, 56.137817f), 1185); + CollectionsMarshal.AsSpan(list66)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053739u, new Vector3(2.1514893f, -10.00001f, 56.137817f), 1185); obj46.Steps = list66; reference49 = obj46; questRoot8.QuestSequence = list62; @@ -463545,26 +381060,21 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "liza"; + CollectionsMarshal.AsSpan(list67)[0] = "liza"; questRoot9.Author = list67; - index = 8; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference50 = ref span68[num]; + num = 8; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span20 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference50 = ref span20[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -463582,8 +381092,7 @@ public static class AssemblyQuestLoader }; obj47.Steps = list69; reference50 = obj47; - num++; - ref QuestSequence reference51 = ref span68[num]; + ref QuestSequence reference51 = ref span20[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 @@ -463591,30 +381100,23 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); + CollectionsMarshal.AsSpan(list70)[0] = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); obj48.Steps = list70; reference51 = obj48; - num++; - ref QuestSequence reference52 = ref span68[num]; + ref QuestSequence reference52 = ref span20[2]; QuestSequence obj49 = new QuestSequence { Sequence = 2 }; - index2 = 1; - List list71 = new List(index2); - CollectionsMarshal.SetCount(list71, index2); - Span span71 = CollectionsMarshal.AsSpan(list71); - num2 = 0; - ref QuestStep reference53 = ref span71[num2]; + num2 = 1; + List list71 = new List(num2); + CollectionsMarshal.SetCount(list71, num2); + ref QuestStep reference53 = ref CollectionsMarshal.AsSpan(list71)[0]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 1038967u, new Vector3(206.68335f, -17.9645f, 62.607666f), 1185); - index3 = 1; - List list72 = new List(index3); - CollectionsMarshal.SetCount(list72, index3); - Span span72 = CollectionsMarshal.AsSpan(list72); - num3 = 0; - span72[num3] = new DialogueChoice + num3 = 1; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + CollectionsMarshal.AsSpan(list72)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGKD001_05309_SYSTEM_000_201") @@ -463623,13 +381125,11 @@ public static class AssemblyQuestLoader reference53 = questStep4; obj49.Steps = list71; reference52 = obj49; - num++; - span68[num] = new QuestSequence + span20[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference54 = ref span68[num]; + ref QuestSequence reference54 = ref span20[4]; QuestSequence obj50 = new QuestSequence { Sequence = 4 @@ -463637,114 +381137,81 @@ public static class AssemblyQuestLoader num2 = 4; List list73 = new List(num2); CollectionsMarshal.SetCount(list73, num2); - Span span73 = CollectionsMarshal.AsSpan(list73); - index2 = 0; - ref QuestStep reference55 = ref span73[index2]; + Span span21 = CollectionsMarshal.AsSpan(list73); + ref QuestStep reference55 = ref span21[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list74; reference55 = questStep5; - index2++; - ref QuestStep reference56 = ref span73[index2]; + ref QuestStep reference56 = ref span21[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1042894u, new Vector3(16.281311f, 16.35219f, -10.666138f), 1277); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list75; reference56 = questStep6; - index2++; - ref QuestStep reference57 = ref span73[index2]; + ref QuestStep reference57 = ref span21[2]; 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 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); + 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); questStep7.CompletionQuestVariablesFlags = list76; reference57 = questStep7; - index2++; - ref QuestStep reference58 = ref span73[index2]; + ref QuestStep reference58 = ref span21[3]; QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1046350u, new Vector3(-18.509216f, 16.352419f, 3.40271f), 1277); - 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); + 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); questStep8.CompletionQuestVariablesFlags = list77; reference58 = questStep8; obj50.Steps = list73; reference54 = obj50; - num++; - ref QuestSequence reference59 = ref span68[num]; + ref QuestSequence reference59 = ref span20[5]; QuestSequence obj51 = new QuestSequence { Sequence = 5 }; - 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); + 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); obj51.Steps = list78; reference59 = obj51; - num++; - span68[num] = new QuestSequence + span20[6] = new QuestSequence { Sequence = 6 }; - num++; - ref QuestSequence reference60 = ref span68[num]; + ref QuestSequence reference60 = ref span20[7]; QuestSequence obj52 = new QuestSequence { Sequence = byte.MaxValue @@ -463752,9 +381219,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052330u, new Vector3(46.066895f, 0f, -0.13739014f), 1269) { StopDistance = 5f, NextQuestId = new QuestId(5310) @@ -463768,33 +381233,27 @@ public static class AssemblyQuestLoader num = 1; List list80 = new List(num); CollectionsMarshal.SetCount(list80, num); - Span span80 = CollectionsMarshal.AsSpan(list80); - index = 0; - span80[index] = "liza"; + CollectionsMarshal.AsSpan(list80)[0] = "liza"; questRoot10.Author = list80; - index = 3; - List list81 = new List(index); - CollectionsMarshal.SetCount(list81, index); - Span span81 = CollectionsMarshal.AsSpan(list81); - num = 0; - ref QuestSequence reference61 = ref span81[num]; + num = 3; + List list81 = new List(num); + CollectionsMarshal.SetCount(list81, num); + Span span26 = CollectionsMarshal.AsSpan(list81); + ref QuestSequence reference61 = ref span26[0]; QuestSequence obj53 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 5f }; obj53.Steps = list82; reference61 = obj53; - num++; - ref QuestSequence reference62 = ref span81[num]; + ref QuestSequence reference62 = ref span26[1]; QuestSequence obj54 = new QuestSequence { Sequence = 1 @@ -463802,9 +381261,8 @@ public static class AssemblyQuestLoader num2 = 3; List list83 = new List(num2); CollectionsMarshal.SetCount(list83, num2); - Span span83 = CollectionsMarshal.AsSpan(list83); - index2 = 0; - ref QuestStep reference63 = ref span83[index2]; + Span span27 = CollectionsMarshal.AsSpan(list83); + ref QuestStep reference63 = ref span27[0]; QuestStep obj55 = new QuestStep(EInteractionType.Interact, 2014647u, new Vector3(34.01233f, 3.118126f, 32.39708f), 1269) { StopDistance = 4f, @@ -463813,77 +381271,54 @@ public static class AssemblyQuestLoader num3 = 6; List list84 = new List(num3); CollectionsMarshal.SetCount(list84, num3); - 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); + 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); obj55.CompletionQuestVariablesFlags = list84; reference63 = obj55; - index2++; - ref QuestStep reference64 = ref span83[index2]; + ref QuestStep reference64 = ref span27[1]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014645u, new Vector3(-37.70508f, 1.3274536f, -35.965576f), 1269); - 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); + 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); questStep9.CompletionQuestVariablesFlags = list85; reference64 = questStep9; - index2++; - ref QuestStep reference65 = ref span83[index2]; + ref QuestStep reference65 = ref span27[2]; 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 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); + 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); questStep10.CompletionQuestVariablesFlags = list86; reference65 = questStep10; obj54.Steps = list83; reference62 = obj54; - num++; - ref QuestSequence reference66 = ref span81[num]; + ref QuestSequence reference66 = ref span26[2]; QuestSequence obj56 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5311) }; @@ -463896,16 +381331,13 @@ public static class AssemblyQuestLoader num = 1; List list88 = new List(num); CollectionsMarshal.SetCount(list88, num); - Span span88 = CollectionsMarshal.AsSpan(list88); - index = 0; - span88[index] = "liza"; + CollectionsMarshal.AsSpan(list88)[0] = "liza"; questRoot11.Author = list88; - index = 2; - List list89 = new List(index); - CollectionsMarshal.SetCount(list89, index); - Span span89 = CollectionsMarshal.AsSpan(list89); - num = 0; - ref QuestSequence reference67 = ref span89[num]; + num = 2; + List list89 = new List(num); + CollectionsMarshal.SetCount(list89, num); + Span span31 = CollectionsMarshal.AsSpan(list89); + ref QuestSequence reference67 = ref span31[0]; QuestSequence obj57 = new QuestSequence { Sequence = 0 @@ -463913,26 +381345,21 @@ public static class AssemblyQuestLoader num2 = 1; List list90 = new List(num2); CollectionsMarshal.SetCount(list90, num2); - Span span90 = CollectionsMarshal.AsSpan(list90); - index2 = 0; - span90[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053794u, new Vector3(-0.015319824f, 0f, -21.103333f), 1269) + CollectionsMarshal.AsSpan(list90)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053794u, new Vector3(-0.015319824f, 0f, -21.103333f), 1269) { StopDistance = 5f }; obj57.Steps = list90; reference67 = obj57; - num++; - ref QuestSequence reference68 = ref span89[num]; + ref QuestSequence reference68 = ref span31[1]; QuestSequence obj58 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj58.Steps = list91; reference68 = obj58; questRoot11.QuestSequence = list89; @@ -463942,16 +381369,13 @@ public static class AssemblyQuestLoader num = 1; List list92 = new List(num); CollectionsMarshal.SetCount(list92, num); - Span span92 = CollectionsMarshal.AsSpan(list92); - index = 0; - span92[index] = "liza"; + CollectionsMarshal.AsSpan(list92)[0] = "liza"; questRoot12.Author = list92; - index = 2; - List list93 = new List(index); - CollectionsMarshal.SetCount(list93, index); - Span span93 = CollectionsMarshal.AsSpan(list93); - num = 0; - ref QuestSequence reference69 = ref span93[num]; + num = 2; + List list93 = new List(num); + CollectionsMarshal.SetCount(list93, num); + Span span32 = CollectionsMarshal.AsSpan(list93); + ref QuestSequence reference69 = ref span32[0]; QuestSequence obj59 = new QuestSequence { Sequence = 0 @@ -463959,27 +381383,22 @@ public static class AssemblyQuestLoader num2 = 1; List list94 = new List(num2); CollectionsMarshal.SetCount(list94, num2); - Span span94 = CollectionsMarshal.AsSpan(list94); - index2 = 0; - span94[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053798u, new Vector3(841.9165f, 72.713615f, -700.3434f), 1252) + CollectionsMarshal.AsSpan(list94)[0] = 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; - num++; - ref QuestSequence reference70 = ref span93[num]; + ref QuestSequence reference70 = ref span32[1]; QuestSequence obj60 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj60.Steps = list95; reference70 = obj60; questRoot12.QuestSequence = list93; @@ -463989,16 +381408,13 @@ public static class AssemblyQuestLoader num = 1; List list96 = new List(num); CollectionsMarshal.SetCount(list96, num); - Span span96 = CollectionsMarshal.AsSpan(list96); - index = 0; - span96[index] = "liza"; + CollectionsMarshal.AsSpan(list96)[0] = "liza"; questRoot13.Author = list96; - index = 2; - List list97 = new List(index); - CollectionsMarshal.SetCount(list97, index); - Span span97 = CollectionsMarshal.AsSpan(list97); - num = 0; - ref QuestSequence reference71 = ref span97[num]; + num = 2; + List list97 = new List(num); + CollectionsMarshal.SetCount(list97, num); + Span span33 = CollectionsMarshal.AsSpan(list97); + ref QuestSequence reference71 = ref span33[0]; QuestSequence obj61 = new QuestSequence { Sequence = 0 @@ -464006,26 +381422,21 @@ public static class AssemblyQuestLoader num2 = 1; List list98 = new List(num2); CollectionsMarshal.SetCount(list98, num2); - Span span98 = CollectionsMarshal.AsSpan(list98); - index2 = 0; - span98[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053796u, new Vector3(868.10095f, 72.75855f, -677.3938f), 1252) + CollectionsMarshal.AsSpan(list98)[0] = 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; - num++; - ref QuestSequence reference72 = ref span97[num]; + ref QuestSequence reference72 = ref span33[1]; QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj62.Steps = list99; reference72 = obj62; questRoot13.QuestSequence = list97; @@ -464035,16 +381446,13 @@ public static class AssemblyQuestLoader num = 1; List list100 = new List(num); CollectionsMarshal.SetCount(list100, num); - Span span100 = CollectionsMarshal.AsSpan(list100); - index = 0; - span100[index] = "liza"; + CollectionsMarshal.AsSpan(list100)[0] = "liza"; questRoot14.Author = list100; - index = 4; - List list101 = new List(index); - CollectionsMarshal.SetCount(list101, index); - Span span101 = CollectionsMarshal.AsSpan(list101); - num = 0; - ref QuestSequence reference73 = ref span101[num]; + num = 4; + List list101 = new List(num); + CollectionsMarshal.SetCount(list101, num); + Span span34 = CollectionsMarshal.AsSpan(list101); + ref QuestSequence reference73 = ref span34[0]; QuestSequence obj63 = new QuestSequence { Sequence = 0 @@ -464052,16 +381460,12 @@ public static class AssemblyQuestLoader num2 = 1; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - ref QuestStep reference74 = ref span102[index2]; + ref QuestStep reference74 = ref CollectionsMarshal.AsSpan(list102)[0]; QuestStep questStep11 = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); - index3 = 1; - List list103 = new List(index3); - CollectionsMarshal.SetCount(list103, index3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = new DialogueChoice + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGKW001_05319_Q1_000_000"), @@ -464071,22 +381475,18 @@ public static class AssemblyQuestLoader reference74 = questStep11; obj63.Steps = list102; reference73 = obj63; - num++; - ref QuestSequence reference75 = ref span101[num]; + ref QuestSequence reference75 = ref span34[1]; QuestSequence obj64 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj64.Steps = list104; reference75 = obj64; - num++; - ref QuestSequence reference76 = ref span101[num]; + ref QuestSequence reference76 = ref span34[2]; QuestSequence obj65 = new QuestSequence { Sequence = 2 @@ -464094,23 +381494,18 @@ public static class AssemblyQuestLoader num2 = 1; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - span105[index2] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + CollectionsMarshal.AsSpan(list105)[0] = new QuestStep(EInteractionType.Interact, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj65.Steps = list105; reference76 = obj65; - num++; - ref QuestSequence reference77 = ref span101[num]; + ref QuestSequence reference77 = ref span34[3]; QuestSequence obj66 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj66.Steps = list106; reference77 = obj66; questRoot14.QuestSequence = list101; @@ -464120,18 +381515,15 @@ public static class AssemblyQuestLoader num = 1; List list107 = new List(num); CollectionsMarshal.SetCount(list107, num); - Span span107 = CollectionsMarshal.AsSpan(list107); - index = 0; - span107[index] = "liza"; + CollectionsMarshal.AsSpan(list107)[0] = "liza"; questRoot15.Author = list107; questRoot15.IsSeasonalQuest = true; questRoot15.SeasonalQuestExpiry = new DateTime(2025, 8, 26, 0, 0, 0, DateTimeKind.Utc); - index = 8; - List list108 = new List(index); - CollectionsMarshal.SetCount(list108, index); - Span span108 = CollectionsMarshal.AsSpan(list108); - num = 0; - ref QuestSequence reference78 = ref span108[num]; + num = 8; + List list108 = new List(num); + CollectionsMarshal.SetCount(list108, num); + Span span35 = CollectionsMarshal.AsSpan(list108); + ref QuestSequence reference78 = ref span35[0]; QuestSequence obj67 = new QuestSequence { Sequence = 0 @@ -464139,9 +381531,7 @@ public static class AssemblyQuestLoader num2 = 1; List list109 = new List(num2); CollectionsMarshal.SetCount(list109, num2); - Span span109 = CollectionsMarshal.AsSpan(list109); - index2 = 0; - ref QuestStep reference79 = ref span109[index2]; + ref QuestStep reference79 = ref CollectionsMarshal.AsSpan(list109)[0]; QuestStep obj68 = new QuestStep(EInteractionType.AcceptQuest, 1053941u, new Vector3(14.328186f, 45.665993f, 131.33435f), 128) { AetheryteShortcut = EAetheryteLocation.Limsa, @@ -464159,35 +381549,29 @@ public static class AssemblyQuestLoader num3 = 1; List list110 = new List(num3); CollectionsMarshal.SetCount(list110, num3); - Span span110 = CollectionsMarshal.AsSpan(list110); - index3 = 0; - span110[index3] = 128; + CollectionsMarshal.AsSpan(list110)[0] = 128; obj69.InTerritory = list110; skipConditions6.AetheryteShortcutIf = obj69; obj68.SkipConditions = skipConditions6; reference79 = obj68; obj67.Steps = list109; reference78 = obj67; - num++; - ref QuestSequence reference80 = ref span108[num]; + ref QuestSequence reference80 = ref span35[1]; QuestSequence obj70 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.EasternLaNosceaCostaDelSol }; obj70.Steps = list111; reference80 = obj70; - num++; - ref QuestSequence reference81 = ref span108[num]; + ref QuestSequence reference81 = ref span35[2]; QuestSequence obj71 = new QuestSequence { Sequence = 2 @@ -464195,34 +381579,27 @@ public static class AssemblyQuestLoader num2 = 3; List list112 = new List(num2); CollectionsMarshal.SetCount(list112, num2); - 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); + 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); obj71.Steps = list112; reference81 = obj71; - num++; - ref QuestSequence reference82 = ref span108[num]; + ref QuestSequence reference82 = ref span35[3]; QuestSequence obj72 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 7f }; obj72.Steps = list113; reference82 = obj72; - num++; - ref QuestSequence reference83 = ref span108[num]; + ref QuestSequence reference83 = ref span35[4]; QuestSequence obj73 = new QuestSequence { Sequence = 4 @@ -464230,83 +381607,61 @@ public static class AssemblyQuestLoader num2 = 6; List list114 = new List(num2); CollectionsMarshal.SetCount(list114, num2); - Span span114 = CollectionsMarshal.AsSpan(list114); - index2 = 0; - ref QuestStep reference84 = ref span114[index2]; + Span span37 = CollectionsMarshal.AsSpan(list114); + ref QuestStep reference84 = ref span37[0]; QuestStep questStep12 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(756.2495f, 38.19998f, 419.6828f), 137); SkipConditions skipConditions7 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - 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); + 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); skipStepConditions6.CompletionQuestVariablesFlags = list115; skipConditions7.StepIf = skipStepConditions6; questStep12.SkipConditions = skipConditions7; reference84 = questStep12; - index2++; - ref QuestStep reference85 = ref span114[index2]; + ref QuestStep reference85 = ref span37[1]; 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 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); + 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); questStep13.CompletionQuestVariablesFlags = list116; reference85 = questStep13; - index2++; - ref QuestStep reference86 = ref span114[index2]; + ref QuestStep reference86 = ref span37[2]; 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(); - 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); + 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); skipStepConditions7.CompletionQuestVariablesFlags = list117; skipConditions8.StepIf = skipStepConditions7; obj74.SkipConditions = skipConditions8; reference86 = obj74; - index2++; - ref QuestStep reference87 = ref span114[index2]; + ref QuestStep reference87 = ref span37[3]; QuestStep obj75 = new QuestStep(EInteractionType.Interact, 1053947u, new Vector3(695.9181f, 8.4f, 442.31323f), 137) { Mount = false @@ -464314,47 +381669,33 @@ public static class AssemblyQuestLoader num3 = 6; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - 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); + 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); obj75.CompletionQuestVariablesFlags = list118; reference87 = obj75; - index2++; - ref QuestStep reference88 = ref span114[index2]; + ref QuestStep reference88 = ref span37[4]; QuestStep obj76 = new QuestStep(EInteractionType.Interact, 1053946u, new Vector3(849.2407f, 8.4f, 461.17346f), 137) { Mount = false }; - 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); + 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); obj76.CompletionQuestVariablesFlags = list119; reference88 = obj76; - index2++; - ref QuestStep reference89 = ref span114[index2]; + ref QuestStep reference89 = ref span37[5]; QuestStep obj77 = new QuestStep(EInteractionType.Interact, 1053945u, new Vector3(872.0989f, 8.4f, 402.8534f), 137) { Mount = false @@ -464362,48 +381703,38 @@ public static class AssemblyQuestLoader 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, 0, EQuestWorkMode.Bitwise); + 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); obj77.CompletionQuestVariablesFlags = list120; reference89 = obj77; obj73.Steps = list114; reference83 = obj73; - num++; - ref QuestSequence reference90 = ref span108[num]; + ref QuestSequence reference90 = ref span35[5]; QuestSequence obj78 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Mount = false }; - num2++; - span121[num2] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137) + span44[1] = new QuestStep(EInteractionType.Interact, 1053943u, new Vector3(777.4929f, 38.999973f, 400.9308f), 137) { StopDistance = 7f, DelaySecondsAtStart = 5f }; obj78.Steps = list121; reference90 = obj78; - num++; - ref QuestSequence reference91 = ref span108[num]; + ref QuestSequence reference91 = ref span35[6]; QuestSequence obj79 = new QuestSequence { Sequence = 6 @@ -464411,31 +381742,26 @@ public static class AssemblyQuestLoader num2 = 1; List list122 = new List(num2); CollectionsMarshal.SetCount(list122, num2); - Span span122 = CollectionsMarshal.AsSpan(list122); - index2 = 0; - span122[index2] = new QuestStep(EInteractionType.Interact, 2014686u, new Vector3(794.4304f, 37.247192f, 394.3694f), 137) + CollectionsMarshal.AsSpan(list122)[0] = new QuestStep(EInteractionType.Interact, 2014686u, new Vector3(794.4304f, 37.247192f, 394.3694f), 137) { DisableNavmesh = true }; obj79.Steps = list122; reference91 = obj79; - num++; - ref QuestSequence reference92 = ref span108[num]; + ref QuestSequence reference92 = ref span35[7]; QuestSequence obj80 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Mount = false }; - num2++; - span123[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051599u, new Vector3(775.0209f, 38.999977f, 398.2146f), 137) + span45[1] = new QuestStep(EInteractionType.CompleteQuest, 1051599u, new Vector3(775.0209f, 38.999977f, 398.2146f), 137) { StopDistance = 7f, DelaySecondsAtStart = 5f @@ -464449,18 +381775,15 @@ public static class AssemblyQuestLoader num = 1; List list124 = new List(num); CollectionsMarshal.SetCount(list124, num); - Span span124 = CollectionsMarshal.AsSpan(list124); - index = 0; - span124[index] = "liza"; + CollectionsMarshal.AsSpan(list124)[0] = "liza"; questRoot16.Author = list124; questRoot16.IsSeasonalQuest = true; questRoot16.SeasonalQuestExpiry = new DateTime(2025, 6, 11, 0, 0, 0, DateTimeKind.Utc); - index = 9; - List list125 = new List(index); - CollectionsMarshal.SetCount(list125, index); - Span span125 = CollectionsMarshal.AsSpan(list125); - num = 0; - ref QuestSequence reference93 = ref span125[num]; + num = 9; + List list125 = new List(num); + CollectionsMarshal.SetCount(list125, num); + Span span46 = CollectionsMarshal.AsSpan(list125); + ref QuestSequence reference93 = ref span46[0]; QuestSequence obj81 = new QuestSequence { Sequence = 0 @@ -464468,9 +381791,7 @@ public static class AssemblyQuestLoader num2 = 1; List list126 = new List(num2); CollectionsMarshal.SetCount(list126, num2); - Span span126 = CollectionsMarshal.AsSpan(list126); - index2 = 0; - span126[index2] = new QuestStep(EInteractionType.AcceptQuest, 1049020u, new Vector3(-86.32031f, 4f, -104.35651f), 130) + CollectionsMarshal.AsSpan(list126)[0] = new QuestStep(EInteractionType.AcceptQuest, 1049020u, new Vector3(-86.32031f, 4f, -104.35651f), 130) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -464483,23 +381804,20 @@ public static class AssemblyQuestLoader }; obj81.Steps = list126; reference93 = obj81; - num++; - ref QuestSequence reference94 = ref span125[num]; + ref QuestSequence reference94 = ref span46[1]; QuestSequence obj82 = new QuestSequence { Sequence = 1 }; - 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) + 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) { PickUpQuestId = new QuestId(434) }; - num2++; - ref QuestStep reference95 = ref span127[num2]; + ref QuestStep reference95 = ref span47[1]; QuestStep obj83 = new QuestStep(EInteractionType.Interact, 1004433u, new Vector3(-23.605713f, 83.19999f, -2.3041382f), 130) { TargetTerritoryId = (ushort)144, @@ -464512,12 +381830,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - index3 = 1; - List list128 = new List(index3); - CollectionsMarshal.SetCount(list128, index3); - Span span128 = CollectionsMarshal.AsSpan(list128); - num3 = 0; - span128[num3] = 144; + num3 = 1; + List list128 = new List(num3); + CollectionsMarshal.SetCount(list128, num3); + CollectionsMarshal.AsSpan(list128)[0] = 144; skipStepConditions8.InTerritory = list128; skipStepConditions8.AetheryteUnlocked = EAetheryteLocation.GoldSaucer; skipConditions9.StepIf = skipStepConditions8; @@ -464525,18 +381841,15 @@ public static class AssemblyQuestLoader num3 = 2; List list129 = new List(num3); CollectionsMarshal.SetCount(list129, num3); - Span span129 = CollectionsMarshal.AsSpan(list129); - index3 = 0; - span129[index3] = 130; - index3++; - span129[index3] = 144; + Span span48 = CollectionsMarshal.AsSpan(list129); + span48[0] = 130; + span48[1] = 144; skipAetheryteCondition.InTerritory = list129; skipAetheryteCondition.AetheryteUnlocked = EAetheryteLocation.GoldSaucer; skipConditions9.AetheryteShortcutIf = skipAetheryteCondition; obj83.SkipConditions = skipConditions9; reference95 = obj83; - num2++; - span127[num2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) + span47[2] = new QuestStep(EInteractionType.AcceptQuest, 1011022u, new Vector3(-38.895264f, -2.7930364E-06f, 97.33728f), 144) { StopDistance = 7f, AetheryteShortcut = EAetheryteLocation.GoldSaucer, @@ -464549,8 +381862,7 @@ public static class AssemblyQuestLoader }, PickUpQuestId = new QuestId(435) }; - num2++; - span127[num2] = new QuestStep(EInteractionType.Interact, 1049021u, new Vector3(-80.91864f, -1.2629791E-05f, 46.463623f), 144) + span47[3] = new QuestStep(EInteractionType.Interact, 1049021u, new Vector3(-80.91864f, -1.2629791E-05f, 46.463623f), 144) { AetheryteShortcut = EAetheryteLocation.GoldSaucer, AethernetShortcut = new AethernetShortcut @@ -464568,8 +381880,7 @@ public static class AssemblyQuestLoader }; obj82.Steps = list127; reference94 = obj82; - num++; - ref QuestSequence reference96 = ref span125[num]; + ref QuestSequence reference96 = ref span46[2]; QuestSequence obj84 = new QuestSequence { Sequence = 2 @@ -464577,9 +381888,8 @@ public static class AssemblyQuestLoader num2 = 3; List list130 = new List(num2); CollectionsMarshal.SetCount(list130, num2); - Span span130 = CollectionsMarshal.AsSpan(list130); - index2 = 0; - ref QuestStep reference97 = ref span130[index2]; + Span span49 = CollectionsMarshal.AsSpan(list130); + ref QuestStep reference97 = ref span49[0]; QuestStep obj85 = new QuestStep(EInteractionType.Interact, 1049029u, new Vector3(10.452393f, 20.99973f, 39.597046f), 144) { AethernetShortcut = new AethernetShortcut @@ -464588,87 +381898,62 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.GoldSaucerWonderSquareWest } }; - 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); + 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); obj85.CompletionQuestVariablesFlags = list131; reference97 = obj85; - index2++; - ref QuestStep reference98 = ref span130[index2]; + ref QuestStep reference98 = ref span49[1]; 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 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); + 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); questStep14.CompletionQuestVariablesFlags = list132; reference98 = questStep14; - index2++; - ref QuestStep reference99 = ref span130[index2]; + ref QuestStep reference99 = ref span49[2]; QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 1049027u, new Vector3(7.003784f, 3.9997306f, 78.20239f), 144); - 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); + 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); questStep15.CompletionQuestVariablesFlags = list133; reference99 = questStep15; obj84.Steps = list130; reference96 = obj84; - num++; - ref QuestSequence reference100 = ref span125[num]; + ref QuestSequence reference100 = ref span46[3]; QuestSequence obj86 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list134 = new List(index2); - CollectionsMarshal.SetCount(list134, index2); - Span span134 = CollectionsMarshal.AsSpan(list134); - num2 = 0; - ref QuestStep reference101 = ref span134[num2]; + num2 = 1; + List list134 = new List(num2); + CollectionsMarshal.SetCount(list134, num2); + ref QuestStep reference101 = ref CollectionsMarshal.AsSpan(list134)[0]; 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); - Span span135 = CollectionsMarshal.AsSpan(list135); - index3 = 0; - span135[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list135)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESGSC901_05322_Q1_000_000"), @@ -464678,8 +381963,7 @@ public static class AssemblyQuestLoader reference101 = questStep16; obj86.Steps = list134; reference100 = obj86; - num++; - ref QuestSequence reference102 = ref span125[num]; + ref QuestSequence reference102 = ref span46[4]; QuestSequence obj87 = new QuestSequence { Sequence = 4 @@ -464687,9 +381971,7 @@ public static class AssemblyQuestLoader num2 = 1; List list136 = new List(num2); CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - span136[index2] = new QuestStep(EInteractionType.Interact, 2014700u, new Vector3(107.7439f, 12.985352f, -45.212524f), 144) + CollectionsMarshal.AsSpan(list136)[0] = new QuestStep(EInteractionType.Interact, 2014700u, new Vector3(107.7439f, 12.985352f, -45.212524f), 144) { AethernetShortcut = new AethernetShortcut { @@ -464699,25 +381981,21 @@ public static class AssemblyQuestLoader }; obj87.Steps = list136; reference102 = obj87; - num++; - ref QuestSequence reference103 = ref span125[num]; + ref QuestSequence reference103 = ref span46[5]; QuestSequence obj88 = new QuestSequence { Sequence = 5 }; - 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) + 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) { StopDistance = 4.5f }; obj88.Steps = list137; reference103 = obj88; - num++; - ref QuestSequence reference104 = ref span125[num]; + ref QuestSequence reference104 = ref span46[6]; QuestSequence obj89 = new QuestSequence { Sequence = 6 @@ -464725,9 +382003,7 @@ public static class AssemblyQuestLoader num2 = 1; List list138 = new List(num2); CollectionsMarshal.SetCount(list138, num2); - Span span138 = CollectionsMarshal.AsSpan(list138); - index2 = 0; - span138[index2] = new QuestStep(EInteractionType.Interact, 1049025u, new Vector3(33.49353f, -5f, -58.54895f), 144) + CollectionsMarshal.AsSpan(list138)[0] = new QuestStep(EInteractionType.Interact, 1049025u, new Vector3(33.49353f, -5f, -58.54895f), 144) { AethernetShortcut = new AethernetShortcut { @@ -464737,18 +382013,15 @@ public static class AssemblyQuestLoader }; obj89.Steps = list138; reference104 = obj89; - num++; - ref QuestSequence reference105 = ref span125[num]; + ref QuestSequence reference105 = ref span46[7]; QuestSequence obj90 = new QuestSequence { Sequence = 7 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -464758,8 +382031,7 @@ public static class AssemblyQuestLoader }; obj90.Steps = list139; reference105 = obj90; - num++; - ref QuestSequence reference106 = ref span125[num]; + ref QuestSequence reference106 = ref span46[8]; QuestSequence obj91 = new QuestSequence { Sequence = byte.MaxValue @@ -464767,9 +382039,7 @@ public static class AssemblyQuestLoader num2 = 1; List list140 = new List(num2); CollectionsMarshal.SetCount(list140, num2); - Span span140 = CollectionsMarshal.AsSpan(list140); - index2 = 0; - span140[index2] = new QuestStep(EInteractionType.CompleteQuest, 1049026u, new Vector3(-31.937195f, 0.044279926f, 18.32605f), 144) + CollectionsMarshal.AsSpan(list140)[0] = new QuestStep(EInteractionType.CompleteQuest, 1049026u, new Vector3(-31.937195f, 0.044279926f, 18.32605f), 144) { StopDistance = 5f }; @@ -464782,33 +382052,26 @@ public static class AssemblyQuestLoader num = 1; List list141 = new List(num); CollectionsMarshal.SetCount(list141, num); - Span span141 = CollectionsMarshal.AsSpan(list141); - index = 0; - span141[index] = "liza"; + CollectionsMarshal.AsSpan(list141)[0] = "liza"; questRoot17.Author = list141; - index = 4; - List list142 = new List(index); - CollectionsMarshal.SetCount(list142, index); - Span span142 = CollectionsMarshal.AsSpan(list142); - num = 0; - ref QuestSequence reference107 = ref span142[num]; + num = 4; + List list142 = new List(num); + CollectionsMarshal.SetCount(list142, num); + Span span53 = CollectionsMarshal.AsSpan(list142); + ref QuestSequence reference107 = ref span53[0]; QuestSequence obj92 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + ref QuestStep reference108 = ref CollectionsMarshal.AsSpan(list143)[0]; QuestStep questStep17 = new QuestStep(EInteractionType.AcceptQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237); - index3 = 1; - List list144 = new List(index3); - CollectionsMarshal.SetCount(list144, index3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - span144[num3] = new DialogueChoice + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ001_05323_Q1_000_000"), @@ -464818,8 +382081,7 @@ public static class AssemblyQuestLoader reference108 = questStep17; obj92.Steps = list143; reference107 = obj92; - num++; - ref QuestSequence reference109 = ref span142[num]; + ref QuestSequence reference109 = ref span53[1]; QuestSequence obj93 = new QuestSequence { Sequence = 1 @@ -464827,67 +382089,49 @@ public static class AssemblyQuestLoader num2 = 2; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - ref QuestStep reference110 = ref span145[index2]; + Span span54 = CollectionsMarshal.AsSpan(list145); + ref QuestStep reference110 = ref span54[0]; 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 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); + 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); questStep18.CompletionQuestVariablesFlags = list146; reference110 = questStep18; - index2++; - ref QuestStep reference111 = ref span145[index2]; + ref QuestStep reference111 = ref span54[1]; QuestStep questStep19 = new QuestStep(EInteractionType.Interact, 1052632u, new Vector3(79.81995f, 0.30599445f, 98.89368f), 1237); - 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); + 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); questStep19.CompletionQuestVariablesFlags = list147; reference111 = questStep19; obj93.Steps = list145; reference109 = obj93; - num++; - ref QuestSequence reference112 = ref span142[num]; + ref QuestSequence reference112 = ref span53[2]; QuestSequence obj94 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj94.Steps = list148; reference112 = obj94; - num++; - ref QuestSequence reference113 = ref span142[num]; + ref QuestSequence reference113 = ref span53[3]; QuestSequence obj95 = new QuestSequence { Sequence = byte.MaxValue @@ -464895,9 +382139,7 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - span149[index2] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237) + CollectionsMarshal.AsSpan(list149)[0] = new QuestStep(EInteractionType.CompleteQuest, 1052631u, new Vector3(10.116699f, 1.6122663f, -17.135986f), 1237) { NextQuestId = new QuestId(5324) }; @@ -464910,33 +382152,26 @@ public static class AssemblyQuestLoader num = 1; List list150 = new List(num); CollectionsMarshal.SetCount(list150, num); - Span span150 = CollectionsMarshal.AsSpan(list150); - index = 0; - span150[index] = "liza"; + CollectionsMarshal.AsSpan(list150)[0] = "liza"; questRoot18.Author = list150; - index = 5; - List list151 = new List(index); - CollectionsMarshal.SetCount(list151, index); - Span span151 = CollectionsMarshal.AsSpan(list151); - num = 0; - ref QuestSequence reference114 = ref span151[num]; + num = 5; + List list151 = new List(num); + CollectionsMarshal.SetCount(list151, num); + Span span57 = CollectionsMarshal.AsSpan(list151); + ref QuestSequence reference114 = ref span57[0]; QuestSequence obj96 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list152 = new List(num2); + CollectionsMarshal.SetCount(list152, num2); + ref QuestStep reference115 = ref CollectionsMarshal.AsSpan(list152)[0]; 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); - Span span153 = CollectionsMarshal.AsSpan(list153); - index3 = 0; - span153[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list153)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ002_05324_Q1_000_000"), @@ -464946,8 +382181,7 @@ public static class AssemblyQuestLoader reference115 = questStep20; obj96.Steps = list152; reference114 = obj96; - num++; - ref QuestSequence reference116 = ref span151[num]; + ref QuestSequence reference116 = ref span57[1]; QuestSequence obj97 = new QuestSequence { Sequence = 1 @@ -464955,27 +382189,21 @@ public static class AssemblyQuestLoader num2 = 1; List list154 = new List(num2); CollectionsMarshal.SetCount(list154, num2); - Span span154 = CollectionsMarshal.AsSpan(list154); - index2 = 0; - span154[index2] = new QuestStep(EInteractionType.Interact, 1052634u, new Vector3(-32.39496f, 1.5f, 31.631958f), 1237); + CollectionsMarshal.AsSpan(list154)[0] = new QuestStep(EInteractionType.Interact, 1052634u, new Vector3(-32.39496f, 1.5f, 31.631958f), 1237); obj97.Steps = list154; reference116 = obj97; - num++; - ref QuestSequence reference117 = ref span151[num]; + ref QuestSequence reference117 = ref span57[2]; QuestSequence obj98 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj98.Steps = list155; reference117 = obj98; - num++; - ref QuestSequence reference118 = ref span151[num]; + ref QuestSequence reference118 = ref span57[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 @@ -464983,23 +382211,18 @@ public static class AssemblyQuestLoader num2 = 1; List list156 = new List(num2); CollectionsMarshal.SetCount(list156, num2); - Span span156 = CollectionsMarshal.AsSpan(list156); - index2 = 0; - span156[index2] = new QuestStep(EInteractionType.Interact, 1052636u, new Vector3(29.95337f, 1f, -70.45099f), 1237); + CollectionsMarshal.AsSpan(list156)[0] = new QuestStep(EInteractionType.Interact, 1052636u, new Vector3(29.95337f, 1f, -70.45099f), 1237); obj99.Steps = list156; reference118 = obj99; - num++; - ref QuestSequence reference119 = ref span151[num]; + ref QuestSequence reference119 = ref span57[4]; QuestSequence obj100 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj100.Steps = list157; reference119 = obj100; questRoot18.QuestSequence = list151; @@ -465009,18 +382232,15 @@ public static class AssemblyQuestLoader num = 1; List list158 = new List(num); CollectionsMarshal.SetCount(list158, num); - Span span158 = CollectionsMarshal.AsSpan(list158); - index = 0; - span158[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list158)[0] = "WigglyMuffin"; questRoot19.Author = list158; questRoot19.IsSeasonalQuest = true; questRoot19.SeasonalQuestExpiry = new DateTime(2026, 2, 16, 14, 59, 0, DateTimeKind.Utc); - index = 7; - List list159 = new List(index); - CollectionsMarshal.SetCount(list159, index); - Span span159 = CollectionsMarshal.AsSpan(list159); - num = 0; - ref QuestSequence reference120 = ref span159[num]; + num = 7; + List list159 = new List(num); + CollectionsMarshal.SetCount(list159, num); + Span span58 = CollectionsMarshal.AsSpan(list159); + ref QuestSequence reference120 = ref span58[0]; QuestSequence obj101 = new QuestSequence { Sequence = 0 @@ -465028,9 +382248,7 @@ public static class AssemblyQuestLoader num2 = 1; List list160 = new List(num2); CollectionsMarshal.SetCount(list160, num2); - Span span160 = CollectionsMarshal.AsSpan(list160); - index2 = 0; - ref QuestStep reference121 = ref span160[index2]; + ref QuestStep reference121 = ref CollectionsMarshal.AsSpan(list160)[0]; QuestStep obj102 = new QuestStep(EInteractionType.AcceptQuest, 1054046u, new Vector3(-50.06488f, 6.5f, -90.25714f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -465045,34 +382263,28 @@ public static class AssemblyQuestLoader { InSameTerritory = true }; - index3 = 1; - List list161 = new List(index3); - CollectionsMarshal.SetCount(list161, index3); - Span span161 = CollectionsMarshal.AsSpan(list161); - num3 = 0; - span161[num3] = 133; + num3 = 1; + List list161 = new List(num3); + CollectionsMarshal.SetCount(list161, num3); + CollectionsMarshal.AsSpan(list161)[0] = 133; obj103.InTerritory = list161; skipConditions10.AetheryteShortcutIf = obj103; obj102.SkipConditions = skipConditions10; reference121 = obj102; obj101.Steps = list160; reference120 = obj101; - num++; - ref QuestSequence reference122 = ref span159[num]; + ref QuestSequence reference122 = ref span58[1]; QuestSequence obj104 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj104.Steps = list162; reference122 = obj104; - num++; - ref QuestSequence reference123 = ref span159[num]; + ref QuestSequence reference123 = ref span58[2]; QuestSequence obj105 = new QuestSequence { Sequence = 2 @@ -465080,9 +382292,7 @@ public static class AssemblyQuestLoader num2 = 1; List list163 = new List(num2); CollectionsMarshal.SetCount(list163, num2); - Span span163 = CollectionsMarshal.AsSpan(list163); - index2 = 0; - ref QuestStep reference124 = ref span163[index2]; + ref QuestStep reference124 = ref CollectionsMarshal.AsSpan(list163)[0]; QuestStep questStep21 = new QuestStep(EInteractionType.SinglePlayerDuty, 1054051u, new Vector3(-41.12317f, 6.8356857f, -125.32239f), 133); SinglePlayerDutyOptions obj106 = new SinglePlayerDutyOptions { @@ -465091,33 +382301,28 @@ public static class AssemblyQuestLoader num3 = 1; List list164 = new List(num3); CollectionsMarshal.SetCount(list164, num3); - Span span164 = CollectionsMarshal.AsSpan(list164); - index3 = 0; - span164[index3] = "You only need to complete one cake layer to complete the duty."; + CollectionsMarshal.AsSpan(list164)[0] = "You only need to complete one cake layer to complete the duty."; obj106.Notes = list164; questStep21.SinglePlayerDutyOptions = obj106; - index3 = 3; - List list165 = new List(index3); - CollectionsMarshal.SetCount(list165, index3); - Span span165 = CollectionsMarshal.AsSpan(list165); - num3 = 0; - span165[num3] = new DialogueChoice + num3 = 3; + List list165 = new List(num3); + CollectionsMarshal.SetCount(list165, num3); + Span span59 = CollectionsMarshal.AsSpan(list165); + span59[0] = 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") }; - num3++; - span165[num3] = new DialogueChoice + span59[1] = 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") }; - num3++; - span165[num3] = new DialogueChoice + span59[2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "custom/009/FesVlt2026Entrance_00938", @@ -465127,25 +382332,20 @@ public static class AssemblyQuestLoader reference124 = questStep21; obj105.Steps = list163; reference123 = obj105; - num++; - ref QuestSequence reference125 = ref span159[num]; + ref QuestSequence reference125 = ref span58[3]; QuestSequence obj107 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list166 = new List(index2); - CollectionsMarshal.SetCount(list166, index2); - Span span166 = CollectionsMarshal.AsSpan(list166); - num2 = 0; - ref QuestStep reference126 = ref span166[num2]; + num2 = 1; + List list166 = new List(num2); + CollectionsMarshal.SetCount(list166, num2); + ref QuestStep reference126 = ref CollectionsMarshal.AsSpan(list166)[0]; 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); - Span span167 = CollectionsMarshal.AsSpan(list167); - index3 = 0; - span167[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list167)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_FESVLX201_05325_Q3_000_000"), @@ -465155,8 +382355,7 @@ public static class AssemblyQuestLoader reference126 = questStep22; obj107.Steps = list166; reference125 = obj107; - num++; - ref QuestSequence reference127 = ref span159[num]; + ref QuestSequence reference127 = ref span58[4]; QuestSequence obj108 = new QuestSequence { Sequence = 4 @@ -465164,23 +382363,18 @@ public static class AssemblyQuestLoader num2 = 1; List list168 = new List(num2); CollectionsMarshal.SetCount(list168, num2); - Span span168 = CollectionsMarshal.AsSpan(list168); - index2 = 0; - span168[index2] = new QuestStep(EInteractionType.Interact, 1054050u, new Vector3(-45.15149f, 6.8105283f, -125.352905f), 133); + CollectionsMarshal.AsSpan(list168)[0] = new QuestStep(EInteractionType.Interact, 1054050u, new Vector3(-45.15149f, 6.8105283f, -125.352905f), 133); obj108.Steps = list168; reference127 = obj108; - num++; - ref QuestSequence reference128 = ref span159[num]; + ref QuestSequence reference128 = ref span58[5]; QuestSequence obj109 = new QuestSequence { Sequence = 5 }; - 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) + 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) { AethernetShortcut = new AethernetShortcut { @@ -465190,8 +382384,7 @@ public static class AssemblyQuestLoader }; obj109.Steps = list169; reference128 = obj109; - num++; - ref QuestSequence reference129 = ref span159[num]; + ref QuestSequence reference129 = ref span58[6]; QuestSequence obj110 = new QuestSequence { Sequence = byte.MaxValue @@ -465199,9 +382392,7 @@ public static class AssemblyQuestLoader num2 = 1; List list170 = new List(num2); CollectionsMarshal.SetCount(list170, num2); - Span span170 = CollectionsMarshal.AsSpan(list170); - index2 = 0; - span170[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054137u, new Vector3(-52.811523f, 6.5f, -88.39557f), 133) + CollectionsMarshal.AsSpan(list170)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054137u, new Vector3(-52.811523f, 6.5f, -88.39557f), 133) { AethernetShortcut = new AethernetShortcut { @@ -465218,26 +382409,21 @@ public static class AssemblyQuestLoader num = 1; List list171 = new List(num); CollectionsMarshal.SetCount(list171, num); - Span span171 = CollectionsMarshal.AsSpan(list171); - index = 0; - span171[index] = "Theo"; + CollectionsMarshal.AsSpan(list171)[0] = "Theo"; questRoot20.Author = list171; - index = 7; - List list172 = new List(index); - CollectionsMarshal.SetCount(list172, index); - Span span172 = CollectionsMarshal.AsSpan(list172); - num = 0; - ref QuestSequence reference130 = ref span172[num]; + num = 7; + List list172 = new List(num); + CollectionsMarshal.SetCount(list172, num); + Span span60 = CollectionsMarshal.AsSpan(list172); + ref QuestSequence reference130 = ref span60[0]; QuestSequence obj111 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list173 = new List(num2); + CollectionsMarshal.SetCount(list173, num2); + ref QuestStep reference131 = ref CollectionsMarshal.AsSpan(list173)[0]; QuestStep obj112 = new QuestStep(EInteractionType.AcceptQuest, 1051949u, new Vector3(141.2832f, 42f, -351.9494f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -465254,12 +382440,10 @@ public static class AssemblyQuestLoader } } }; - index3 = 1; - List list174 = new List(index3); - CollectionsMarshal.SetCount(list174, index3); - Span span174 = CollectionsMarshal.AsSpan(list174); - num3 = 0; - span174[num3] = new DialogueChoice + num3 = 1; + List list174 = new List(num3); + CollectionsMarshal.SetCount(list174, num3); + CollectionsMarshal.AsSpan(list174)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGEA201_05326_Q2_000_000"), @@ -465269,8 +382453,7 @@ public static class AssemblyQuestLoader reference131 = obj112; obj111.Steps = list173; reference130 = obj111; - num++; - ref QuestSequence reference132 = ref span172[num]; + ref QuestSequence reference132 = ref span60[1]; QuestSequence obj113 = new QuestSequence { Sequence = 1 @@ -465278,9 +382461,7 @@ public static class AssemblyQuestLoader num2 = 1; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - ref QuestStep reference133 = ref span175[index2]; + ref QuestStep reference133 = ref CollectionsMarshal.AsSpan(list175)[0]; QuestStep obj114 = new QuestStep(EInteractionType.Interact, 1054347u, new Vector3(730.03735f, -133.17451f, 542.2903f), 1189) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, @@ -465295,9 +382476,7 @@ public static class AssemblyQuestLoader num3 = 1; List list176 = new List(num3); CollectionsMarshal.SetCount(list176, num3); - Span span176 = CollectionsMarshal.AsSpan(list176); - index3 = 0; - span176[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list176)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGEA201_05326_SYSTEM_000_103") @@ -465306,18 +382485,15 @@ public static class AssemblyQuestLoader reference133 = obj114; obj113.Steps = list175; reference132 = obj113; - num++; - ref QuestSequence reference134 = ref span172[num]; + ref QuestSequence reference134 = ref span60[2]; QuestSequence obj115 = new QuestSequence { Sequence = 2 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.YakTelMamook, SkipConditions = new SkipConditions @@ -465330,8 +382506,7 @@ public static class AssemblyQuestLoader }; obj115.Steps = list177; reference134 = obj115; - num++; - ref QuestSequence reference135 = ref span172[num]; + ref QuestSequence reference135 = ref span60[3]; QuestSequence obj116 = new QuestSequence { Sequence = 3 @@ -465339,41 +382514,34 @@ public static class AssemblyQuestLoader num2 = 2; List list178 = new List(num2); CollectionsMarshal.SetCount(list178, num2); - Span span178 = CollectionsMarshal.AsSpan(list178); - index2 = 0; - ref QuestStep reference136 = ref span178[index2]; + Span span61 = CollectionsMarshal.AsSpan(list178); + ref QuestStep reference136 = ref span61[0]; 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(); - index3 = 1; - List list179 = new List(index3); - CollectionsMarshal.SetCount(list179, index3); - Span span179 = CollectionsMarshal.AsSpan(list179); - num3 = 0; - span179[num3] = 1265; + num3 = 1; + List list179 = new List(num3); + CollectionsMarshal.SetCount(list179, num3); + CollectionsMarshal.AsSpan(list179)[0] = 1265; skipStepConditions9.InTerritory = list179; skipConditions11.StepIf = skipStepConditions9; obj117.SkipConditions = skipConditions11; reference136 = obj117; - index2++; - span178[index2] = new QuestStep(EInteractionType.Interact, 2014786u, new Vector3(-2.456726f, 41.97754f, -2.822998f), 1265); + span61[1] = new QuestStep(EInteractionType.Interact, 2014786u, new Vector3(-2.456726f, 41.97754f, -2.822998f), 1265); obj116.Steps = list178; reference135 = obj116; - num++; - ref QuestSequence reference137 = ref span172[num]; + ref QuestSequence reference137 = ref span60[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - 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) + num2 = 1; + List list180 = new List(num2); + CollectionsMarshal.SetCount(list180, num2); + CollectionsMarshal.AsSpan(list180)[0] = new QuestStep(EInteractionType.Duty, null, null, 1265) { DutyOptions = new DutyOptions { @@ -465382,8 +382550,7 @@ public static class AssemblyQuestLoader }; obj118.Steps = list180; reference137 = obj118; - num++; - ref QuestSequence reference138 = ref span172[num]; + ref QuestSequence reference138 = ref span60[5]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -465391,23 +382558,18 @@ public static class AssemblyQuestLoader num2 = 1; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - span181[index2] = new QuestStep(EInteractionType.Interact, 1054310u, new Vector3(-5.2339478f, 41.999985f, -5.935791f), 1265); + CollectionsMarshal.AsSpan(list181)[0] = new QuestStep(EInteractionType.Interact, 1054310u, new Vector3(-5.2339478f, 41.999985f, -5.935791f), 1265); obj119.Steps = list181; reference138 = obj119; - num++; - ref QuestSequence reference139 = ref span172[num]; + ref QuestSequence reference139 = ref span60[6]; QuestSequence obj120 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5327) }; @@ -465420,16 +382582,13 @@ public static class AssemblyQuestLoader num = 1; List list183 = new List(num); CollectionsMarshal.SetCount(list183, num); - Span span183 = CollectionsMarshal.AsSpan(list183); - index = 0; - span183[index] = "Theo"; + CollectionsMarshal.AsSpan(list183)[0] = "Theo"; questRoot21.Author = list183; - index = 6; - List list184 = new List(index); - CollectionsMarshal.SetCount(list184, index); - Span span184 = CollectionsMarshal.AsSpan(list184); - num = 0; - ref QuestSequence reference140 = ref span184[num]; + num = 6; + List list184 = new List(num); + CollectionsMarshal.SetCount(list184, num); + Span span62 = CollectionsMarshal.AsSpan(list184); + ref QuestSequence reference140 = ref span62[0]; QuestSequence obj121 = new QuestSequence { Sequence = 0 @@ -465437,9 +382596,8 @@ public static class AssemblyQuestLoader num2 = 2; List list185 = new List(num2); CollectionsMarshal.SetCount(list185, num2); - Span span185 = CollectionsMarshal.AsSpan(list185); - index2 = 0; - ref QuestStep reference141 = ref span185[index2]; + Span span63 = CollectionsMarshal.AsSpan(list185); + ref QuestStep reference141 = ref span63[0]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 2014450u, new Vector3(-528.37415f, -152.20874f, 671.13745f), 1189) { TargetTerritoryId = (ushort)1265 @@ -465449,29 +382607,23 @@ public static class AssemblyQuestLoader num3 = 1; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = 1265; + CollectionsMarshal.AsSpan(list186)[0] = 1265; skipStepConditions10.InTerritory = list186; skipConditions12.StepIf = skipStepConditions10; obj122.SkipConditions = skipConditions12; reference141 = obj122; - index2++; - span185[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054311u, new Vector3(-2.9450073f, 41.99998f, -7.034485f), 1265); + span63[1] = new QuestStep(EInteractionType.AcceptQuest, 1054311u, new Vector3(-2.9450073f, 41.99998f, -7.034485f), 1265); obj121.Steps = list185; reference140 = obj121; - num++; - ref QuestSequence reference142 = ref span184[num]; + ref QuestSequence reference142 = ref span62[1]; QuestSequence obj123 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -465489,8 +382641,7 @@ public static class AssemblyQuestLoader }; obj123.Steps = list187; reference142 = obj123; - num++; - ref QuestSequence reference143 = ref span184[num]; + ref QuestSequence reference143 = ref span62[2]; QuestSequence obj124 = new QuestSequence { Sequence = 2 @@ -465498,9 +382649,7 @@ public static class AssemblyQuestLoader num2 = 1; List list188 = new List(num2); CollectionsMarshal.SetCount(list188, num2); - Span span188 = CollectionsMarshal.AsSpan(list188); - index2 = 0; - span188[index2] = new QuestStep(EInteractionType.Interact, 2014787u, new Vector3(-326.16168f, 18.44812f, -104.57007f), 1190) + CollectionsMarshal.AsSpan(list188)[0] = new QuestStep(EInteractionType.Interact, 2014787u, new Vector3(-326.16168f, 18.44812f, -104.57007f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -465513,42 +382662,33 @@ public static class AssemblyQuestLoader }; obj124.Steps = list188; reference143 = obj124; - num++; - ref QuestSequence reference144 = ref span184[num]; + ref QuestSequence reference144 = ref span62[3]; QuestSequence obj125 = new QuestSequence { Sequence = 3 }; - index2 = 3; - List list189 = new List(index2); - CollectionsMarshal.SetCount(list189, index2); - Span span189 = CollectionsMarshal.AsSpan(list189); - num2 = 0; - ref QuestStep reference145 = ref span189[num2]; + num2 = 3; + List list189 = new List(num2); + CollectionsMarshal.SetCount(list189, num2); + Span span64 = CollectionsMarshal.AsSpan(list189); + ref QuestStep reference145 = ref span64[0]; QuestStep obj126 = new QuestStep(EInteractionType.Interact, 1049334u, new Vector3(-139.05548f, 1.4543211f, 324.72717f), 1190) { Fly = true }; - 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); + 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); obj126.CompletionQuestVariablesFlags = list190; reference145 = obj126; - num2++; - ref QuestStep reference146 = ref span189[num2]; + ref QuestStep reference146 = ref span64[1]; QuestStep obj127 = new QuestStep(EInteractionType.Interact, 1054321u, new Vector3(-145.25067f, 2.0168247f, 374.3191f), 1190) { Mount = true @@ -465556,30 +382696,22 @@ public static class AssemblyQuestLoader num3 = 6; List list191 = new List(num3); CollectionsMarshal.SetCount(list191, num3); - 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); + 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); obj127.CompletionQuestVariablesFlags = list191; reference146 = obj127; - num2++; - span189[num2] = new QuestStep(EInteractionType.Interact, 1049327u, new Vector3(-207.47699f, -1.806f, 367.87964f), 1190) + span64[2] = new QuestStep(EInteractionType.Interact, 1049327u, new Vector3(-207.47699f, -1.806f, 367.87964f), 1190) { Mount = true }; obj125.Steps = list189; reference144 = obj125; - num++; - ref QuestSequence reference147 = ref span184[num]; + ref QuestSequence reference147 = ref span62[4]; QuestSequence obj128 = new QuestSequence { Sequence = 4 @@ -465587,26 +382719,21 @@ public static class AssemblyQuestLoader num2 = 1; List list192 = new List(num2); CollectionsMarshal.SetCount(list192, num2); - Span span192 = CollectionsMarshal.AsSpan(list192); - index2 = 0; - span192[index2] = new QuestStep(EInteractionType.Interact, 1054324u, new Vector3(-171.89288f, 1.6836945f, 347.219f), 1190) + CollectionsMarshal.AsSpan(list192)[0] = new QuestStep(EInteractionType.Interact, 1054324u, new Vector3(-171.89288f, 1.6836945f, 347.219f), 1190) { Mount = true }; obj128.Steps = list192; reference147 = obj128; - num++; - ref QuestSequence reference148 = ref span184[num]; + ref QuestSequence reference148 = ref span62[5]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5328) @@ -465620,16 +382747,13 @@ public static class AssemblyQuestLoader num = 1; List list194 = new List(num); CollectionsMarshal.SetCount(list194, num); - Span span194 = CollectionsMarshal.AsSpan(list194); - index = 0; - span194[index] = "Theo"; + CollectionsMarshal.AsSpan(list194)[0] = "Theo"; questRoot22.Author = list194; - index = 2; - List list195 = new List(index); - CollectionsMarshal.SetCount(list195, index); - Span span195 = CollectionsMarshal.AsSpan(list195); - num = 0; - ref QuestSequence reference149 = ref span195[num]; + num = 2; + List list195 = new List(num); + CollectionsMarshal.SetCount(list195, num); + Span span67 = CollectionsMarshal.AsSpan(list195); + ref QuestSequence reference149 = ref span67[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 @@ -465637,9 +382761,7 @@ public static class AssemblyQuestLoader num2 = 1; List list196 = new List(num2); CollectionsMarshal.SetCount(list196, num2); - Span span196 = CollectionsMarshal.AsSpan(list196); - index2 = 0; - span196[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) + CollectionsMarshal.AsSpan(list196)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054326u, new Vector3(-40.116028f, -4.257869f, 574.18164f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, @@ -465653,18 +382775,15 @@ public static class AssemblyQuestLoader }; obj130.Steps = list196; reference149 = obj130; - num++; - ref QuestSequence reference150 = ref span195[num]; + ref QuestSequence reference150 = ref span67[1]; QuestSequence obj131 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj131.Steps = list197; reference150 = obj131; questRoot22.QuestSequence = list195; @@ -465674,16 +382793,13 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "Theo"; + CollectionsMarshal.AsSpan(list198)[0] = "Theo"; questRoot23.Author = list198; - index = 4; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference151 = ref span199[num]; + num = 4; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span68 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference151 = ref span68[0]; QuestSequence obj132 = new QuestSequence { Sequence = 0 @@ -465691,9 +382807,7 @@ public static class AssemblyQuestLoader num2 = 1; List list200 = new List(num2); CollectionsMarshal.SetCount(list200, num2); - Span span200 = CollectionsMarshal.AsSpan(list200); - index2 = 0; - span200[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054336u, new Vector3(-325.73438f, 18.38136f, -100.41962f), 1190) + CollectionsMarshal.AsSpan(list200)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054336u, new Vector3(-325.73438f, 18.38136f, -100.41962f), 1190) { AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, SkipConditions = new SkipConditions @@ -465706,25 +382820,21 @@ public static class AssemblyQuestLoader }; obj132.Steps = list200; reference151 = obj132; - num++; - ref QuestSequence reference152 = ref span199[num]; + ref QuestSequence reference152 = ref span68[1]; QuestSequence obj133 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj133.Steps = list201; reference152 = obj133; - num++; - ref QuestSequence reference153 = ref span199[num]; + ref QuestSequence reference153 = ref span68[2]; QuestSequence obj134 = new QuestSequence { Sequence = 2 @@ -465732,23 +382842,18 @@ public static class AssemblyQuestLoader num2 = 1; List list202 = new List(num2); CollectionsMarshal.SetCount(list202, num2); - Span span202 = CollectionsMarshal.AsSpan(list202); - index2 = 0; - span202[index2] = new QuestStep(EInteractionType.Interact, 1054342u, new Vector3(-262.92822f, 32f, -658.2894f), 1191); + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Interact, 1054342u, new Vector3(-262.92822f, 32f, -658.2894f), 1191); obj134.Steps = list202; reference153 = obj134; - num++; - ref QuestSequence reference154 = ref span199[num]; + ref QuestSequence reference154 = ref span68[3]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -465773,16 +382878,13 @@ public static class AssemblyQuestLoader num = 1; List list204 = new List(num); CollectionsMarshal.SetCount(list204, num); - Span span204 = CollectionsMarshal.AsSpan(list204); - index = 0; - span204[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list204)[0] = "CryoTechnic"; questRoot24.Author = list204; - index = 6; - List list205 = new List(index); - CollectionsMarshal.SetCount(list205, index); - Span span205 = CollectionsMarshal.AsSpan(list205); - num = 0; - ref QuestSequence reference155 = ref span205[num]; + num = 6; + List list205 = new List(num); + CollectionsMarshal.SetCount(list205, num); + Span span69 = CollectionsMarshal.AsSpan(list205); + ref QuestSequence reference155 = ref span69[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 @@ -465790,9 +382892,7 @@ public static class AssemblyQuestLoader num2 = 1; List list206 = new List(num2); CollectionsMarshal.SetCount(list206, num2); - Span span206 = CollectionsMarshal.AsSpan(list206); - index2 = 0; - span206[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054642u, new Vector3(532.8602f, 105.007805f, 645.2887f), 1187) + CollectionsMarshal.AsSpan(list206)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054642u, new Vector3(532.8602f, 105.007805f, 645.2887f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, SkipConditions = new SkipConditions @@ -465805,26 +382905,22 @@ public static class AssemblyQuestLoader }; obj136.Steps = list206; reference155 = obj136; - num++; - ref QuestSequence reference156 = ref span205[num]; + ref QuestSequence reference156 = ref span69[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true }; obj137.Steps = list207; reference156 = obj137; - num++; - ref QuestSequence reference157 = ref span205[num]; + ref QuestSequence reference157 = ref span69[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 @@ -465832,46 +382928,37 @@ public static class AssemblyQuestLoader num2 = 5; List list208 = new List(num2); CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - span208[index2] = new QuestStep(EInteractionType.Interact, 1054646u, new Vector3(488.7921f, 112.435005f, 704.12744f), 1187) + Span span70 = CollectionsMarshal.AsSpan(list208); + span70[0] = new QuestStep(EInteractionType.Interact, 1054646u, new Vector3(488.7921f, 112.435005f, 704.12744f), 1187) { Fly = true }; - 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) + 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) { Fly = false }; - index2++; - span208[index2] = new QuestStep(EInteractionType.Interact, 1054644u, new Vector3(376.51636f, 124.51213f, 549.0653f), 1187); + span70[4] = new QuestStep(EInteractionType.Interact, 1054644u, new Vector3(376.51636f, 124.51213f, 549.0653f), 1187); obj138.Steps = list208; reference157 = obj138; - num++; - ref QuestSequence reference158 = ref span205[num]; + ref QuestSequence reference158 = ref span69[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj139.Steps = list209; reference158 = obj139; - num++; - ref QuestSequence reference159 = ref span205[num]; + ref QuestSequence reference159 = ref span69[4]; QuestSequence obj140 = new QuestSequence { Sequence = 4 @@ -465879,29 +382966,24 @@ public static class AssemblyQuestLoader num2 = 1; List list210 = new List(num2); CollectionsMarshal.SetCount(list210, num2); - Span span210 = CollectionsMarshal.AsSpan(list210); - index2 = 0; - span210[index2] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187); + CollectionsMarshal.AsSpan(list210)[0] = new QuestStep(EInteractionType.Interact, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187); obj140.Steps = list210; reference159 = obj140; - num++; - ref QuestSequence reference160 = ref span205[num]; + ref QuestSequence reference160 = ref span69[5]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 46198u, ItemCount = 3 }; - num2++; - span211[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) + span72[1] = new QuestStep(EInteractionType.CompleteQuest, 1054641u, new Vector3(504.2953f, 142.24991f, 787.6859f), 1187) { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; @@ -465914,16 +382996,13 @@ public static class AssemblyQuestLoader num = 1; List list212 = new List(num); CollectionsMarshal.SetCount(list212, num); - Span span212 = CollectionsMarshal.AsSpan(list212); - index = 0; - span212[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list212)[0] = "CryoTechnic"; questRoot25.Author = list212; - index = 6; - List list213 = new List(index); - CollectionsMarshal.SetCount(list213, index); - Span span213 = CollectionsMarshal.AsSpan(list213); - num = 0; - ref QuestSequence reference161 = ref span213[num]; + num = 6; + List list213 = new List(num); + CollectionsMarshal.SetCount(list213, num); + Span span73 = CollectionsMarshal.AsSpan(list213); + ref QuestSequence reference161 = ref span73[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 @@ -465931,9 +383010,7 @@ public static class AssemblyQuestLoader num2 = 1; List list214 = new List(num2); CollectionsMarshal.SetCount(list214, num2); - Span span214 = CollectionsMarshal.AsSpan(list214); - index2 = 0; - span214[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + CollectionsMarshal.AsSpan(list214)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -465947,40 +383024,34 @@ public static class AssemblyQuestLoader }; obj142.Steps = list214; reference161 = obj142; - num++; - ref QuestSequence reference162 = ref span213[num]; + ref QuestSequence reference162 = ref span73[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list215 = new List(index2); - CollectionsMarshal.SetCount(list215, index2); - Span span215 = CollectionsMarshal.AsSpan(list215); - num2 = 0; - ref QuestStep reference163 = ref span215[num2]; + num2 = 2; + List list215 = new List(num2); + CollectionsMarshal.SetCount(list215, num2); + Span span74 = CollectionsMarshal.AsSpan(list215); + ref QuestStep reference163 = ref span74[0]; 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(); - index3 = 1; - List list216 = new List(index3); - CollectionsMarshal.SetCount(list216, index3); - Span span216 = CollectionsMarshal.AsSpan(list216); - num3 = 0; - span216[num3] = 1187; + num3 = 1; + List list216 = new List(num3); + CollectionsMarshal.SetCount(list216, num3); + CollectionsMarshal.AsSpan(list216)[0] = 1187; skipStepConditions11.NotInTerritory = list216; skipConditions13.StepIf = skipStepConditions11; obj144.SkipConditions = skipConditions13; reference163 = obj144; - num2++; - span215[num2] = new QuestStep(EInteractionType.Interact, 1054650u, new Vector3(16.983276f, 0.4f, 145.09802f), 1297); + span74[1] = new QuestStep(EInteractionType.Interact, 1054650u, new Vector3(16.983276f, 0.4f, 145.09802f), 1297); obj143.Steps = list215; reference162 = obj143; - num++; - ref QuestSequence reference164 = ref span213[num]; + ref QuestSequence reference164 = ref span73[2]; QuestSequence obj145 = new QuestSequence { Sequence = 2 @@ -465988,26 +383059,21 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - span217[index2] = new QuestStep(EInteractionType.Emote, 1054651u, new Vector3(22.537537f, 0.4f, 146.68494f), 1297) + CollectionsMarshal.AsSpan(list217)[0] = new QuestStep(EInteractionType.Emote, 1054651u, new Vector3(22.537537f, 0.4f, 146.68494f), 1297) { Emote = EEmote.Soothe }; obj145.Steps = list217; reference164 = obj145; - num++; - ref QuestSequence reference165 = ref span213[num]; + ref QuestSequence reference165 = ref span73[3]; QuestSequence obj146 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true, Land = true, @@ -466022,8 +383088,7 @@ public static class AssemblyQuestLoader }; obj146.Steps = list218; reference165 = obj146; - num++; - ref QuestSequence reference166 = ref span213[num]; + ref QuestSequence reference166 = ref span73[4]; QuestSequence obj147 = new QuestSequence { Sequence = 4 @@ -466031,29 +383096,24 @@ public static class AssemblyQuestLoader num2 = 2; List list219 = new List(num2); CollectionsMarshal.SetCount(list219, num2); - Span span219 = CollectionsMarshal.AsSpan(list219); - index2 = 0; - span219[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span75 = CollectionsMarshal.AsSpan(list219); + span75[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46200u, ItemCount = 1 }; - index2++; - span219[index2] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187); + span75[1] = new QuestStep(EInteractionType.Interact, 1054652u, new Vector3(403.79956f, 122.535f, 590.0206f), 1187); obj147.Steps = list219; reference166 = obj147; - num++; - ref QuestSequence reference167 = ref span213[num]; + ref QuestSequence reference167 = ref span73[5]; QuestSequence obj148 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -466080,16 +383140,13 @@ public static class AssemblyQuestLoader num = 1; List list221 = new List(num); CollectionsMarshal.SetCount(list221, num); - Span span221 = CollectionsMarshal.AsSpan(list221); - index = 0; - span221[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list221)[0] = "CryoTechnic"; questRoot26.Author = list221; - index = 5; - List list222 = new List(index); - CollectionsMarshal.SetCount(list222, index); - Span span222 = CollectionsMarshal.AsSpan(list222); - num = 0; - ref QuestSequence reference168 = ref span222[num]; + num = 5; + List list222 = new List(num); + CollectionsMarshal.SetCount(list222, num); + Span span76 = CollectionsMarshal.AsSpan(list222); + ref QuestSequence reference168 = ref span76[0]; QuestSequence obj149 = new QuestSequence { Sequence = 0 @@ -466097,9 +383154,7 @@ public static class AssemblyQuestLoader num2 = 1; List list223 = new List(num2); CollectionsMarshal.SetCount(list223, num2); - Span span223 = CollectionsMarshal.AsSpan(list223); - index2 = 0; - span223[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + CollectionsMarshal.AsSpan(list223)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466113,25 +383168,21 @@ public static class AssemblyQuestLoader }; obj149.Steps = list223; reference168 = obj149; - num++; - ref QuestSequence reference169 = ref span222[num]; + ref QuestSequence reference169 = ref span76[1]; QuestSequence obj150 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj150.Steps = list224; reference169 = obj150; - num++; - ref QuestSequence reference170 = ref span222[num]; + ref QuestSequence reference170 = ref span76[2]; QuestSequence obj151 = new QuestSequence { Sequence = 2 @@ -466139,9 +383190,8 @@ public static class AssemblyQuestLoader num2 = 2; List list225 = new List(num2); CollectionsMarshal.SetCount(list225, num2); - Span span225 = CollectionsMarshal.AsSpan(list225); - index2 = 0; - ref QuestStep reference171 = ref span225[index2]; + Span span77 = CollectionsMarshal.AsSpan(list225); + ref QuestStep reference171 = ref span77[0]; QuestStep obj152 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -466152,51 +383202,42 @@ public static class AssemblyQuestLoader num3 = 1; List list226 = new List(num3); CollectionsMarshal.SetCount(list226, num3); - Span span226 = CollectionsMarshal.AsSpan(list226); - index3 = 0; - span226[index3] = 1187; + CollectionsMarshal.AsSpan(list226)[0] = 1187; skipStepConditions12.NotInTerritory = list226; skipConditions14.StepIf = skipStepConditions12; obj152.SkipConditions = skipConditions14; reference171 = obj152; - index2++; - span225[index2] = new QuestStep(EInteractionType.Interact, 1054654u, new Vector3(-26.352356f, 0.19851297f, 65.11023f), 1297); + span77[1] = new QuestStep(EInteractionType.Interact, 1054654u, new Vector3(-26.352356f, 0.19851297f, 65.11023f), 1297); obj151.Steps = list225; reference170 = obj151; - num++; - ref QuestSequence reference172 = ref span222[num]; + ref QuestSequence reference172 = ref span76[3]; QuestSequence obj153 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list227 = new List(index2); - CollectionsMarshal.SetCount(list227, index2); - Span span227 = CollectionsMarshal.AsSpan(list227); - num2 = 0; - ref QuestStep reference173 = ref span227[num2]; + num2 = 2; + List list227 = new List(num2); + CollectionsMarshal.SetCount(list227, num2); + Span span78 = CollectionsMarshal.AsSpan(list227); + ref QuestStep reference173 = ref span78[0]; 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(); - index3 = 1; - List list228 = new List(index3); - CollectionsMarshal.SetCount(list228, index3); - Span span228 = CollectionsMarshal.AsSpan(list228); - num3 = 0; - span228[num3] = 1297; + num3 = 1; + List list228 = new List(num3); + CollectionsMarshal.SetCount(list228, num3); + CollectionsMarshal.AsSpan(list228)[0] = 1297; skipStepConditions13.NotInTerritory = list228; skipConditions15.StepIf = skipStepConditions13; obj154.SkipConditions = skipConditions15; reference173 = obj154; - num2++; - span227[num2] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187); + span78[1] = new QuestStep(EInteractionType.Interact, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187); obj153.Steps = list227; reference172 = obj153; - num++; - ref QuestSequence reference174 = ref span222[num]; + ref QuestSequence reference174 = ref span76[4]; QuestSequence obj155 = new QuestSequence { Sequence = byte.MaxValue @@ -466204,15 +383245,13 @@ public static class AssemblyQuestLoader num2 = 2; List list229 = new List(num2); CollectionsMarshal.SetCount(list229, num2); - Span span229 = CollectionsMarshal.AsSpan(list229); - index2 = 0; - span229[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span79 = CollectionsMarshal.AsSpan(list229); + span79[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46202u, ItemCount = 1 }; - index2++; - span229[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + span79[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466238,26 +383277,21 @@ public static class AssemblyQuestLoader num = 1; List list230 = new List(num); CollectionsMarshal.SetCount(list230, num); - Span span230 = CollectionsMarshal.AsSpan(list230); - index = 0; - span230[index] = "WigglyMuffin, CryoTechnic"; + CollectionsMarshal.AsSpan(list230)[0] = "WigglyMuffin, CryoTechnic"; questRoot27.Author = list230; - index = 6; - List list231 = new List(index); - CollectionsMarshal.SetCount(list231, index); - Span span231 = CollectionsMarshal.AsSpan(list231); - num = 0; - ref QuestSequence reference175 = ref span231[num]; + num = 6; + List list231 = new List(num); + CollectionsMarshal.SetCount(list231, num); + Span span80 = CollectionsMarshal.AsSpan(list231); + ref QuestSequence reference175 = ref span80[0]; QuestSequence obj156 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466271,8 +383305,7 @@ public static class AssemblyQuestLoader }; obj156.Steps = list232; reference175 = obj156; - num++; - ref QuestSequence reference176 = ref span231[num]; + ref QuestSequence reference176 = ref span80[1]; QuestSequence obj157 = new QuestSequence { Sequence = 1 @@ -466280,9 +383313,8 @@ public static class AssemblyQuestLoader num2 = 2; List list233 = new List(num2); CollectionsMarshal.SetCount(list233, num2); - Span span233 = CollectionsMarshal.AsSpan(list233); - index2 = 0; - ref QuestStep reference177 = ref span233[index2]; + Span span81 = CollectionsMarshal.AsSpan(list233); + ref QuestStep reference177 = ref span81[0]; QuestStep obj158 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -466292,33 +383324,26 @@ public static class AssemblyQuestLoader num3 = 1; List list234 = new List(num3); CollectionsMarshal.SetCount(list234, num3); - Span span234 = CollectionsMarshal.AsSpan(list234); - index3 = 0; - span234[index3] = 1187; + CollectionsMarshal.AsSpan(list234)[0] = 1187; skipStepConditions14.NotInTerritory = list234; skipConditions16.StepIf = skipStepConditions14; obj158.SkipConditions = skipConditions16; reference177 = obj158; - index2++; - span233[index2] = new QuestStep(EInteractionType.Interact, 1054655u, new Vector3(-71.61066f, 5.9649034f, 65.72058f), 1297); + span81[1] = new QuestStep(EInteractionType.Interact, 1054655u, new Vector3(-71.61066f, 5.9649034f, 65.72058f), 1297); obj157.Steps = list233; reference176 = obj157; - num++; - ref QuestSequence reference178 = ref span231[num]; + ref QuestSequence reference178 = ref span80[2]; QuestSequence obj159 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj159.Steps = list235; reference178 = obj159; - num++; - ref QuestSequence reference179 = ref span231[num]; + ref QuestSequence reference179 = ref span80[3]; QuestSequence obj160 = new QuestSequence { Sequence = 3 @@ -466326,9 +383351,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.Interact, 1054657u, new Vector3(446.1891f, 118.92377f, 543.93823f), 1187) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Interact, 1054657u, new Vector3(446.1891f, 118.92377f, 543.93823f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466342,18 +383365,15 @@ public static class AssemblyQuestLoader }; obj160.Steps = list236; reference179 = obj160; - num++; - ref QuestSequence reference180 = ref span231[num]; + ref QuestSequence reference180 = ref span80[4]; QuestSequence obj161 = new QuestSequence { Sequence = 4 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466367,8 +383387,7 @@ public static class AssemblyQuestLoader }; obj161.Steps = list237; reference180 = obj161; - num++; - ref QuestSequence reference181 = ref span231[num]; + ref QuestSequence reference181 = ref span80[5]; QuestSequence obj162 = new QuestSequence { Sequence = byte.MaxValue @@ -466376,15 +383395,13 @@ public static class AssemblyQuestLoader num2 = 2; List list238 = new List(num2); CollectionsMarshal.SetCount(list238, num2); - Span span238 = CollectionsMarshal.AsSpan(list238); - index2 = 0; - span238[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span82 = CollectionsMarshal.AsSpan(list238); + span82[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46204u, ItemCount = 1 }; - index2++; - span238[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + span82[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466410,26 +383427,21 @@ public static class AssemblyQuestLoader num = 1; List list239 = new List(num); CollectionsMarshal.SetCount(list239, num); - Span span239 = CollectionsMarshal.AsSpan(list239); - index = 0; - span239[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list239)[0] = "WigglyMuffin"; questRoot28.Author = list239; - index = 8; - List list240 = new List(index); - CollectionsMarshal.SetCount(list240, index); - Span span240 = CollectionsMarshal.AsSpan(list240); - num = 0; - ref QuestSequence reference182 = ref span240[num]; + num = 8; + List list240 = new List(num); + CollectionsMarshal.SetCount(list240, num); + Span span83 = CollectionsMarshal.AsSpan(list240); + ref QuestSequence reference182 = ref span83[0]; QuestSequence obj163 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466443,8 +383455,7 @@ public static class AssemblyQuestLoader }; obj163.Steps = list241; reference182 = obj163; - num++; - ref QuestSequence reference183 = ref span240[num]; + ref QuestSequence reference183 = ref span83[1]; QuestSequence obj164 = new QuestSequence { Sequence = 1 @@ -466452,75 +383463,63 @@ public static class AssemblyQuestLoader num2 = 4; List list242 = new List(num2); CollectionsMarshal.SetCount(list242, num2); - Span span242 = CollectionsMarshal.AsSpan(list242); - index2 = 0; - ref QuestStep reference184 = ref span242[index2]; + Span span84 = CollectionsMarshal.AsSpan(list242); + ref QuestStep reference184 = ref span84[0]; 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(); - index3 = 1; - List list243 = new List(index3); - CollectionsMarshal.SetCount(list243, index3); - Span span243 = CollectionsMarshal.AsSpan(list243); - num3 = 0; - span243[num3] = 1187; + num3 = 1; + List list243 = new List(num3); + CollectionsMarshal.SetCount(list243, num3); + CollectionsMarshal.AsSpan(list243)[0] = 1187; skipStepConditions15.NotInTerritory = list243; skipConditions17.StepIf = skipStepConditions15; obj165.SkipConditions = skipConditions17; reference184 = obj165; - index2++; - span242[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.0223392f, 0.39999998f, 150.66316f), 1297) + span84[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-1.0223392f, 0.39999998f, 150.66316f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span242[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) + span84[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-66.967834f, 4.053136f, 162.06543f), 1297) { DisableNavmesh = true }; - index2++; - span242[index2] = new QuestStep(EInteractionType.Interact, 1055121u, new Vector3(-105.94348f, 4.0711794f, 153.1853f), 1297) + span84[3] = new QuestStep(EInteractionType.Interact, 1055121u, new Vector3(-105.94348f, 4.0711794f, 153.1853f), 1297) { DisableNavmesh = true }; obj164.Steps = list242; reference183 = obj164; - num++; - ref QuestSequence reference185 = ref span240[num]; + ref QuestSequence reference185 = ref span83[2]; QuestSequence obj166 = new QuestSequence { Sequence = 2 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span244[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.9967885f, 0.39999998f, 162.83284f), 1297) + span85[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-2.9967885f, 0.39999998f, 162.83284f), 1297) { DisableNavmesh = true }; - num2++; - span244[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.107587256f, 40.897377f, 312.03854f), 1297) + span85[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-0.107587256f, 40.897377f, 312.03854f), 1297) { DisableNavmesh = true }; - num2++; - span244[num2] = new QuestStep(EInteractionType.Interact, 2014980u, new Vector3(0.03678493f, 42.45785f, 314.6959f), 1297); + span85[3] = new QuestStep(EInteractionType.Interact, 2014980u, new Vector3(0.03678493f, 42.45785f, 314.6959f), 1297); obj166.Steps = list244; reference185 = obj166; - num++; - ref QuestSequence reference186 = ref span240[num]; + ref QuestSequence reference186 = ref span83[3]; QuestSequence obj167 = new QuestSequence { Sequence = 3 @@ -466528,36 +383527,30 @@ public static class AssemblyQuestLoader num2 = 1; List list245 = new List(num2); CollectionsMarshal.SetCount(list245, num2); - Span span245 = CollectionsMarshal.AsSpan(list245); - index2 = 0; - span245[index2] = new QuestStep(EInteractionType.Interact, 1054659u, new Vector3(-1.9684448f, 38.852776f, 302.6626f), 1297); + CollectionsMarshal.AsSpan(list245)[0] = new QuestStep(EInteractionType.Interact, 1054659u, new Vector3(-1.9684448f, 38.852776f, 302.6626f), 1297); obj167.Steps = list245; reference186 = obj167; - num++; - ref QuestSequence reference187 = ref span240[num]; + ref QuestSequence reference187 = ref span83[4]; QuestSequence obj168 = new QuestSequence { Sequence = 4 }; - 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) + 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) { DisableNavmesh = true, Mount = true }; - num2++; - span246[num2] = new QuestStep(EInteractionType.Interact, 1054661u, new Vector3(-73.19757f, 5.964904f, 66.84973f), 1297) + span86[1] = new QuestStep(EInteractionType.Interact, 1054661u, new Vector3(-73.19757f, 5.964904f, 66.84973f), 1297) { DisableNavmesh = true }; obj168.Steps = list246; reference187 = obj168; - num++; - ref QuestSequence reference188 = ref span240[num]; + ref QuestSequence reference188 = ref span83[5]; QuestSequence obj169 = new QuestSequence { Sequence = 5 @@ -466565,9 +383558,8 @@ public static class AssemblyQuestLoader num2 = 2; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - span247[index2] = new QuestStep(EInteractionType.Interact, 1054675u, new Vector3(-360.61652f, 113.62453f, 560.1738f), 1187) + Span span87 = CollectionsMarshal.AsSpan(list247); + span87[0] = new QuestStep(EInteractionType.Interact, 1054675u, new Vector3(-360.61652f, 113.62453f, 560.1738f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466584,8 +383576,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span247[index2] = new QuestStep(EInteractionType.Interact, 1054662u, new Vector3(-355.51996f, 101.70931f, 497.0016f), 1187) + span87[1] = new QuestStep(EInteractionType.Interact, 1054662u, new Vector3(-355.51996f, 101.70931f, 497.0016f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466604,18 +383595,15 @@ public static class AssemblyQuestLoader }; obj169.Steps = list247; reference188 = obj169; - num++; - ref QuestSequence reference189 = ref span240[num]; + ref QuestSequence reference189 = ref span83[6]; QuestSequence obj170 = new QuestSequence { Sequence = 6 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466634,8 +383622,7 @@ public static class AssemblyQuestLoader }; obj170.Steps = list248; reference189 = obj170; - num++; - ref QuestSequence reference190 = ref span240[num]; + ref QuestSequence reference190 = ref span83[7]; QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue @@ -466643,15 +383630,13 @@ public static class AssemblyQuestLoader num2 = 2; List list249 = new List(num2); CollectionsMarshal.SetCount(list249, num2); - Span span249 = CollectionsMarshal.AsSpan(list249); - index2 = 0; - span249[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span88 = CollectionsMarshal.AsSpan(list249); + span88[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46206u, ItemCount = 1 }; - index2++; - span249[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) + span88[1] = new QuestStep(EInteractionType.CompleteQuest, 1054636u, new Vector3(506.70618f, 142.24991f, 800.2289f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466677,26 +383662,21 @@ public static class AssemblyQuestLoader num = 1; List list250 = new List(num); CollectionsMarshal.SetCount(list250, num); - Span span250 = CollectionsMarshal.AsSpan(list250); - index = 0; - span250[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list250)[0] = "WigglyMuffin"; questRoot29.Author = list250; - index = 3; - List list251 = new List(index); - CollectionsMarshal.SetCount(list251, index); - Span span251 = CollectionsMarshal.AsSpan(list251); - num = 0; - ref QuestSequence reference191 = ref span251[num]; + num = 3; + List list251 = new List(num); + CollectionsMarshal.SetCount(list251, num); + Span span89 = CollectionsMarshal.AsSpan(list251); + ref QuestSequence reference191 = ref span89[0]; QuestSequence obj172 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466710,8 +383690,7 @@ public static class AssemblyQuestLoader }; obj172.Steps = list252; reference191 = obj172; - num++; - ref QuestSequence reference192 = ref span251[num]; + ref QuestSequence reference192 = ref span89[1]; QuestSequence obj173 = new QuestSequence { Sequence = 1 @@ -466719,9 +383698,8 @@ public static class AssemblyQuestLoader num2 = 4; List list253 = new List(num2); CollectionsMarshal.SetCount(list253, num2); - Span span253 = CollectionsMarshal.AsSpan(list253); - index2 = 0; - ref QuestStep reference193 = ref span253[index2]; + Span span90 = CollectionsMarshal.AsSpan(list253); + ref QuestStep reference193 = ref span90[0]; QuestStep obj174 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -466731,24 +383709,18 @@ public static class AssemblyQuestLoader num3 = 1; List list254 = new List(num3); CollectionsMarshal.SetCount(list254, num3); - Span span254 = CollectionsMarshal.AsSpan(list254); - index3 = 0; - span254[index3] = 1187; + CollectionsMarshal.AsSpan(list254)[0] = 1187; skipStepConditions16.NotInTerritory = list254; skipConditions18.StepIf = skipStepConditions16; obj174.SkipConditions = skipConditions18; reference193 = obj174; - index2++; - span253[index2] = new QuestStep(EInteractionType.Interact, 1054668u, new Vector3(-56.565247f, 4.000225f, 50.736206f), 1297); - index2++; - ref QuestStep reference194 = ref span253[index2]; + span90[1] = new QuestStep(EInteractionType.Interact, 1054668u, new Vector3(-56.565247f, 4.000225f, 50.736206f), 1297); + ref QuestStep reference194 = ref span90[2]; QuestStep questStep23 = new QuestStep(EInteractionType.Interact, 1054669u, new Vector3(-50.30902f, 1.3218602f, 175.09729f), 1297); - index3 = 1; - List list255 = new List(index3); - CollectionsMarshal.SetCount(list255, index3); - Span span255 = CollectionsMarshal.AsSpan(list255); - num3 = 0; - span255[num3] = new DialogueChoice + num3 = 1; + List list255 = new List(num3); + CollectionsMarshal.SetCount(list255, num3); + CollectionsMarshal.AsSpan(list255)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANYOK006_05335_Q1_000_000"), @@ -466756,22 +383728,18 @@ public static class AssemblyQuestLoader }; questStep23.DialogueChoices = list255; reference194 = questStep23; - index2++; - span253[index2] = new QuestStep(EInteractionType.Interact, 1054667u, new Vector3(71.33594f, 3.942892f, 186.93823f), 1297); + span90[3] = new QuestStep(EInteractionType.Interact, 1054667u, new Vector3(71.33594f, 3.942892f, 186.93823f), 1297); obj173.Steps = list253; reference192 = obj173; - num++; - ref QuestSequence reference195 = ref span251[num]; + ref QuestSequence reference195 = ref span89[2]; QuestSequence obj175 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj175.Steps = list256; reference195 = obj175; questRoot29.QuestSequence = list251; @@ -466781,16 +383749,13 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list257)[0] = "WigglyMuffin"; questRoot30.Author = list257; - index = 4; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference196 = ref span258[num]; + num = 4; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span91 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference196 = ref span91[0]; QuestSequence obj176 = new QuestSequence { Sequence = 0 @@ -466798,9 +383763,7 @@ public static class AssemblyQuestLoader num2 = 1; List list259 = new List(num2); CollectionsMarshal.SetCount(list259, num2); - Span span259 = CollectionsMarshal.AsSpan(list259); - index2 = 0; - span259[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list259)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466814,18 +383777,16 @@ public static class AssemblyQuestLoader }; obj176.Steps = list259; reference196 = obj176; - num++; - ref QuestSequence reference197 = ref span258[num]; + ref QuestSequence reference197 = ref span91[1]; QuestSequence obj177 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list260 = new List(index2); - CollectionsMarshal.SetCount(list260, index2); - Span span260 = CollectionsMarshal.AsSpan(list260); - num2 = 0; - ref QuestStep reference198 = ref span260[num2]; + num2 = 4; + List list260 = new List(num2); + CollectionsMarshal.SetCount(list260, num2); + Span span92 = CollectionsMarshal.AsSpan(list260); + ref QuestStep reference198 = ref span92[0]; QuestStep obj178 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -466836,29 +383797,23 @@ public static class AssemblyQuestLoader num3 = 1; List list261 = new List(num3); CollectionsMarshal.SetCount(list261, num3); - Span span261 = CollectionsMarshal.AsSpan(list261); - index3 = 0; - span261[index3] = 1187; + CollectionsMarshal.AsSpan(list261)[0] = 1187; skipStepConditions17.NotInTerritory = list261; skipConditions19.StepIf = skipStepConditions17; obj178.SkipConditions = skipConditions19; reference198 = obj178; - num2++; - span260[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + span92[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - num2++; - span260[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) + span92[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) { Fly = false }; - num2++; - span260[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + span92[3] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj177.Steps = list260; reference197 = obj177; - num++; - ref QuestSequence reference199 = ref span258[num]; + ref QuestSequence reference199 = ref span91[2]; QuestSequence obj179 = new QuestSequence { Sequence = 2 @@ -466866,40 +383821,33 @@ public static class AssemblyQuestLoader num2 = 4; List list262 = new List(num2); CollectionsMarshal.SetCount(list262, num2); - Span span262 = CollectionsMarshal.AsSpan(list262); - index2 = 0; - span262[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span93 = CollectionsMarshal.AsSpan(list262); + span93[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46208u, ItemCount = 3 }; - index2++; - span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) + span93[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.52385f, 1.8905392f, 65.476295f), 1297) { Mount = true, Fly = false }; - index2++; - span262[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.10631f, 1.8898277f, 100.54272f), 1297) + span93[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(70.10631f, 1.8898277f, 100.54272f), 1297) { Fly = false }; - index2++; - span262[index2] = new QuestStep(EInteractionType.Interact, 1055816u, new Vector3(98.924194f, 1.890541f, 98.74109f), 1297); + span93[3] = new QuestStep(EInteractionType.Interact, 1055816u, new Vector3(98.924194f, 1.890541f, 98.74109f), 1297); obj179.Steps = list262; reference199 = obj179; - num++; - ref QuestSequence reference200 = ref span258[num]; + ref QuestSequence reference200 = ref span91[3]; QuestSequence obj180 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -466921,16 +383869,13 @@ public static class AssemblyQuestLoader num = 1; List list264 = new List(num); CollectionsMarshal.SetCount(list264, num); - Span span264 = CollectionsMarshal.AsSpan(list264); - index = 0; - span264[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list264)[0] = "WigglyMuffin"; questRoot31.Author = list264; - index = 3; - List list265 = new List(index); - CollectionsMarshal.SetCount(list265, index); - Span span265 = CollectionsMarshal.AsSpan(list265); - num = 0; - ref QuestSequence reference201 = ref span265[num]; + num = 3; + List list265 = new List(num); + CollectionsMarshal.SetCount(list265, num); + Span span94 = CollectionsMarshal.AsSpan(list265); + ref QuestSequence reference201 = ref span94[0]; QuestSequence obj181 = new QuestSequence { Sequence = 0 @@ -466938,9 +383883,7 @@ public static class AssemblyQuestLoader num2 = 1; List list266 = new List(num2); CollectionsMarshal.SetCount(list266, num2); - Span span266 = CollectionsMarshal.AsSpan(list266); - index2 = 0; - span266[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list266)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -466954,22 +383897,18 @@ public static class AssemblyQuestLoader }; obj181.Steps = list266; reference201 = obj181; - num++; - ref QuestSequence reference202 = ref span265[num]; + ref QuestSequence reference202 = ref span94[1]; QuestSequence obj182 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj182.Steps = list267; reference202 = obj182; - num++; - ref QuestSequence reference203 = ref span265[num]; + ref QuestSequence reference203 = ref span94[2]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue @@ -466977,9 +383916,8 @@ public static class AssemblyQuestLoader num2 = 2; List list268 = new List(num2); CollectionsMarshal.SetCount(list268, num2); - Span span268 = CollectionsMarshal.AsSpan(list268); - index2 = 0; - span268[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span95 = CollectionsMarshal.AsSpan(list268); + span95[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46210u, ItemCount = 2, @@ -466991,8 +383929,7 @@ public static class AssemblyQuestLoader } } }; - index2++; - span268[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187); + span95[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187); obj183.Steps = list268; reference203 = obj183; questRoot31.QuestSequence = list265; @@ -467002,26 +383939,21 @@ public static class AssemblyQuestLoader num = 1; List list269 = new List(num); CollectionsMarshal.SetCount(list269, num); - Span span269 = CollectionsMarshal.AsSpan(list269); - index = 0; - span269[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list269)[0] = "CryoTechnic"; questRoot32.Author = list269; - index = 4; - List list270 = new List(index); - CollectionsMarshal.SetCount(list270, index); - Span span270 = CollectionsMarshal.AsSpan(list270); - num = 0; - ref QuestSequence reference204 = ref span270[num]; + num = 4; + List list270 = new List(num); + CollectionsMarshal.SetCount(list270, num); + Span span96 = CollectionsMarshal.AsSpan(list270); + ref QuestSequence reference204 = ref span96[0]; QuestSequence obj184 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467035,8 +383967,7 @@ public static class AssemblyQuestLoader }; obj184.Steps = list271; reference204 = obj184; - num++; - ref QuestSequence reference205 = ref span270[num]; + ref QuestSequence reference205 = ref span96[1]; QuestSequence obj185 = new QuestSequence { Sequence = 1 @@ -467044,9 +383975,7 @@ public static class AssemblyQuestLoader num2 = 1; List list272 = new List(num2); CollectionsMarshal.SetCount(list272, num2); - Span span272 = CollectionsMarshal.AsSpan(list272); - index2 = 0; - span272[index2] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187) + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187) { Fly = true, Land = true, @@ -467061,28 +383990,24 @@ public static class AssemblyQuestLoader }; obj185.Steps = list272; reference205 = obj185; - num++; - ref QuestSequence reference206 = ref span270[num]; + ref QuestSequence reference206 = ref span96[2]; QuestSequence obj186 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 46212u, ItemCount = 3 }; - num2++; - span273[num2] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187); + span97[1] = new QuestStep(EInteractionType.Interact, 1055817u, new Vector3(458.15198f, 114.935f, 657.3739f), 1187); obj186.Steps = list273; reference206 = obj186; - num++; - ref QuestSequence reference207 = ref span270[num]; + ref QuestSequence reference207 = ref span96[3]; QuestSequence obj187 = new QuestSequence { Sequence = byte.MaxValue @@ -467090,9 +384015,7 @@ public static class AssemblyQuestLoader num2 = 1; List list274 = new List(num2); CollectionsMarshal.SetCount(list274, num2); - Span span274 = CollectionsMarshal.AsSpan(list274); - index2 = 0; - span274[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list274)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467113,26 +384036,21 @@ public static class AssemblyQuestLoader num = 1; List list275 = new List(num); CollectionsMarshal.SetCount(list275, num); - Span span275 = CollectionsMarshal.AsSpan(list275); - index = 0; - span275[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list275)[0] = "CryoTechnic"; questRoot33.Author = list275; - index = 3; - List list276 = new List(index); - CollectionsMarshal.SetCount(list276, index); - Span span276 = CollectionsMarshal.AsSpan(list276); - num = 0; - ref QuestSequence reference208 = ref span276[num]; + num = 3; + List list276 = new List(num); + CollectionsMarshal.SetCount(list276, num); + Span span98 = CollectionsMarshal.AsSpan(list276); + ref QuestSequence reference208 = ref span98[0]; QuestSequence obj188 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467146,8 +384064,7 @@ public static class AssemblyQuestLoader }; obj188.Steps = list277; reference208 = obj188; - num++; - ref QuestSequence reference209 = ref span276[num]; + ref QuestSequence reference209 = ref span98[1]; QuestSequence obj189 = new QuestSequence { Sequence = 1 @@ -467155,9 +384072,8 @@ public static class AssemblyQuestLoader num2 = 3; List list278 = new List(num2); CollectionsMarshal.SetCount(list278, num2); - Span span278 = CollectionsMarshal.AsSpan(list278); - index2 = 0; - ref QuestStep reference210 = ref span278[index2]; + Span span99 = CollectionsMarshal.AsSpan(list278); + ref QuestStep reference210 = ref span99[0]; QuestStep obj190 = new QuestStep(EInteractionType.Interact, 1055818u, new Vector3(583.276f, 120.7841f, 382.55884f), 1187) { Fly = true, @@ -467171,33 +384087,24 @@ public static class AssemblyQuestLoader } } }; - 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]; + 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]; int num4 = 1; List list280 = new List(num4); CollectionsMarshal.SetCount(list280, num4); - Span span280 = CollectionsMarshal.AsSpan(list280); - int index4 = 0; - span280[index4] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list280)[0] = new QuestWorkValue(null, (byte)3, EQuestWorkMode.Bitwise); reference211 = list280; - num3++; - span279[num3] = null; - num3++; - span279[num3] = null; - num3++; - span279[num3] = null; - num3++; - span279[num3] = null; + span100[2] = null; + span100[3] = null; + span100[4] = null; + span100[5] = null; obj190.RequiredQuestVariables = list279; reference210 = obj190; - index2++; - ref QuestStep reference212 = ref span278[index2]; + ref QuestStep reference212 = ref span99[1]; QuestStep obj191 = new QuestStep(EInteractionType.Interact, 1055819u, new Vector3(442.31323f, 101.649635f, 363.21045f), 1187) { Fly = true, @@ -467214,30 +384121,21 @@ public static class AssemblyQuestLoader num3 = 6; List> list281 = new List>(num3); CollectionsMarshal.SetCount(list281, num3); - 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); + 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); reference213 = list282; - index3++; - span281[index3] = null; - index3++; - span281[index3] = null; - index3++; - span281[index3] = null; - index3++; - span281[index3] = null; + span101[2] = null; + span101[3] = null; + span101[4] = null; + span101[5] = null; obj191.RequiredQuestVariables = list281; reference212 = obj191; - index2++; - ref QuestStep reference214 = ref span278[index2]; + ref QuestStep reference214 = ref span99[2]; QuestStep obj192 = new QuestStep(EInteractionType.Interact, 1055820u, new Vector3(379.50696f, 78.73412f, 440.63464f), 1187) { Fly = true, @@ -467251,45 +384149,34 @@ public static class AssemblyQuestLoader } } }; - 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]; + 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]; num4 = 1; List list284 = new List(num4); CollectionsMarshal.SetCount(list284, num4); - Span span284 = CollectionsMarshal.AsSpan(list284); - index4 = 0; - span284[index4] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list284)[0] = new QuestWorkValue(null, (byte)2, EQuestWorkMode.Bitwise); reference215 = list284; - num3++; - span283[num3] = null; - num3++; - span283[num3] = null; - num3++; - span283[num3] = null; - num3++; - span283[num3] = null; + span102[2] = null; + span102[3] = null; + span102[4] = null; + span102[5] = null; obj192.RequiredQuestVariables = list283; reference214 = obj192; obj189.Steps = list278; reference209 = obj189; - num++; - ref QuestSequence reference216 = ref span276[num]; + ref QuestSequence reference216 = ref span98[2]; QuestSequence obj193 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -467304,16 +384191,13 @@ public static class AssemblyQuestLoader num = 1; List list286 = new List(num); CollectionsMarshal.SetCount(list286, num); - Span span286 = CollectionsMarshal.AsSpan(list286); - index = 0; - span286[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list286)[0] = "CryoTechnic"; questRoot34.Author = list286; - index = 4; - List list287 = new List(index); - CollectionsMarshal.SetCount(list287, index); - Span span287 = CollectionsMarshal.AsSpan(list287); - num = 0; - ref QuestSequence reference217 = ref span287[num]; + num = 4; + List list287 = new List(num); + CollectionsMarshal.SetCount(list287, num); + Span span103 = CollectionsMarshal.AsSpan(list287); + ref QuestSequence reference217 = ref span103[0]; QuestSequence obj194 = new QuestSequence { Sequence = 0 @@ -467321,9 +384205,7 @@ public static class AssemblyQuestLoader num2 = 1; List list288 = new List(num2); CollectionsMarshal.SetCount(list288, num2); - Span span288 = CollectionsMarshal.AsSpan(list288); - index2 = 0; - span288[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list288)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467337,18 +384219,16 @@ public static class AssemblyQuestLoader }; obj194.Steps = list288; reference217 = obj194; - num++; - ref QuestSequence reference218 = ref span287[num]; + ref QuestSequence reference218 = ref span103[1]; QuestSequence obj195 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list289 = new List(index2); - CollectionsMarshal.SetCount(list289, index2); - Span span289 = CollectionsMarshal.AsSpan(list289); - num2 = 0; - ref QuestStep reference219 = ref span289[num2]; + num2 = 3; + List list289 = new List(num2); + CollectionsMarshal.SetCount(list289, num2); + Span span104 = CollectionsMarshal.AsSpan(list289); + ref QuestStep reference219 = ref span104[0]; QuestStep obj196 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -467358,24 +384238,19 @@ public static class AssemblyQuestLoader num3 = 1; List list290 = new List(num3); CollectionsMarshal.SetCount(list290, num3); - Span span290 = CollectionsMarshal.AsSpan(list290); - index3 = 0; - span290[index3] = 1187; + CollectionsMarshal.AsSpan(list290)[0] = 1187; skipStepConditions18.NotInTerritory = list290; skipConditions20.StepIf = skipStepConditions18; obj196.SkipConditions = skipConditions20; reference219 = obj196; - num2++; - span289[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + span104[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - num2++; - span289[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + span104[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj195.Steps = list289; reference218 = obj195; - num++; - ref QuestSequence reference220 = ref span287[num]; + ref QuestSequence reference220 = ref span103[2]; QuestSequence obj197 = new QuestSequence { Sequence = 2 @@ -467383,33 +384258,26 @@ public static class AssemblyQuestLoader num2 = 4; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span291[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span105 = CollectionsMarshal.AsSpan(list291); + span105[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46214u, ItemCount = 3 }; - 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); + 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); obj197.Steps = list291; reference220 = obj197; - num++; - ref QuestSequence reference221 = ref span287[num]; + ref QuestSequence reference221 = ref span103[3]; QuestSequence obj198 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -467431,16 +384299,13 @@ public static class AssemblyQuestLoader num = 1; List list293 = new List(num); CollectionsMarshal.SetCount(list293, num); - Span span293 = CollectionsMarshal.AsSpan(list293); - index = 0; - span293[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list293)[0] = "CryoTechnic"; questRoot35.Author = list293; - index = 4; - List list294 = new List(index); - CollectionsMarshal.SetCount(list294, index); - Span span294 = CollectionsMarshal.AsSpan(list294); - num = 0; - ref QuestSequence reference222 = ref span294[num]; + num = 4; + List list294 = new List(num); + CollectionsMarshal.SetCount(list294, num); + Span span106 = CollectionsMarshal.AsSpan(list294); + ref QuestSequence reference222 = ref span106[0]; QuestSequence obj199 = new QuestSequence { Sequence = 0 @@ -467448,9 +384313,7 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467464,47 +384327,39 @@ public static class AssemblyQuestLoader }; obj199.Steps = list295; reference222 = obj199; - num++; - ref QuestSequence reference223 = ref span294[num]; + ref QuestSequence reference223 = ref span106[1]; QuestSequence obj200 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list296 = new List(index2); - CollectionsMarshal.SetCount(list296, index2); - Span span296 = CollectionsMarshal.AsSpan(list296); - num2 = 0; - ref QuestStep reference224 = ref span296[num2]; + num2 = 4; + List list296 = new List(num2); + CollectionsMarshal.SetCount(list296, num2); + Span span107 = CollectionsMarshal.AsSpan(list296); + ref QuestStep reference224 = ref span107[0]; 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(); - index3 = 1; - List list297 = new List(index3); - CollectionsMarshal.SetCount(list297, index3); - Span span297 = CollectionsMarshal.AsSpan(list297); - num3 = 0; - span297[num3] = 1187; + num3 = 1; + List list297 = new List(num3); + CollectionsMarshal.SetCount(list297, num3); + CollectionsMarshal.AsSpan(list297)[0] = 1187; skipStepConditions19.NotInTerritory = list297; skipConditions21.StepIf = skipStepConditions19; obj201.SkipConditions = skipConditions21; reference224 = obj201; - num2++; - span296[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + span107[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - 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); + 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); obj200.Steps = list296; reference223 = obj200; - num++; - ref QuestSequence reference225 = ref span294[num]; + ref QuestSequence reference225 = ref span106[2]; QuestSequence obj202 = new QuestSequence { Sequence = 2 @@ -467512,29 +384367,24 @@ public static class AssemblyQuestLoader num2 = 2; List list298 = new List(num2); CollectionsMarshal.SetCount(list298, num2); - Span span298 = CollectionsMarshal.AsSpan(list298); - index2 = 0; - span298[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span108 = CollectionsMarshal.AsSpan(list298); + span108[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46216u, ItemCount = 3 }; - index2++; - span298[index2] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); + span108[1] = new QuestStep(EInteractionType.Interact, 1055821u, new Vector3(88.97534f, 3.3723087f, 75.791504f), 1297); obj202.Steps = list298; reference225 = obj202; - num++; - ref QuestSequence reference226 = ref span294[num]; + ref QuestSequence reference226 = ref span106[3]; QuestSequence obj203 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -467556,16 +384406,13 @@ public static class AssemblyQuestLoader num = 1; List list300 = new List(num); CollectionsMarshal.SetCount(list300, num); - Span span300 = CollectionsMarshal.AsSpan(list300); - index = 0; - span300[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list300)[0] = "CryoTechnic"; questRoot36.Author = list300; - index = 4; - List list301 = new List(index); - CollectionsMarshal.SetCount(list301, index); - Span span301 = CollectionsMarshal.AsSpan(list301); - num = 0; - ref QuestSequence reference227 = ref span301[num]; + num = 4; + List list301 = new List(num); + CollectionsMarshal.SetCount(list301, num); + Span span109 = CollectionsMarshal.AsSpan(list301); + ref QuestSequence reference227 = ref span109[0]; QuestSequence obj204 = new QuestSequence { Sequence = 0 @@ -467573,9 +384420,7 @@ public static class AssemblyQuestLoader num2 = 1; List list302 = new List(num2); CollectionsMarshal.SetCount(list302, num2); - Span span302 = CollectionsMarshal.AsSpan(list302); - index2 = 0; - span302[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list302)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467589,18 +384434,15 @@ public static class AssemblyQuestLoader }; obj204.Steps = list302; reference227 = obj204; - num++; - ref QuestSequence reference228 = ref span301[num]; + ref QuestSequence reference228 = ref span109[1]; QuestSequence obj205 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list303 = new List(index2); - CollectionsMarshal.SetCount(list303, index2); - Span span303 = CollectionsMarshal.AsSpan(list303); - num2 = 0; - ref QuestStep reference229 = ref span303[num2]; + num2 = 1; + List list303 = new List(num2); + CollectionsMarshal.SetCount(list303, num2); + ref QuestStep reference229 = ref CollectionsMarshal.AsSpan(list303)[0]; QuestStep obj206 = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { TargetTerritoryId = (ushort)1297 @@ -467610,17 +384452,14 @@ public static class AssemblyQuestLoader num3 = 1; List list304 = new List(num3); CollectionsMarshal.SetCount(list304, num3); - Span span304 = CollectionsMarshal.AsSpan(list304); - index3 = 0; - span304[index3] = 1187; + CollectionsMarshal.AsSpan(list304)[0] = 1187; skipStepConditions20.NotInTerritory = list304; skipConditions22.StepIf = skipStepConditions20; obj206.SkipConditions = skipConditions22; reference229 = obj206; obj205.Steps = list303; reference228 = obj205; - num++; - ref QuestSequence reference230 = ref span301[num]; + ref QuestSequence reference230 = ref span109[2]; QuestSequence obj207 = new QuestSequence { Sequence = 2 @@ -467628,33 +384467,28 @@ public static class AssemblyQuestLoader num2 = 2; List list305 = new List(num2); CollectionsMarshal.SetCount(list305, num2); - Span span305 = CollectionsMarshal.AsSpan(list305); - index2 = 0; - span305[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span110 = CollectionsMarshal.AsSpan(list305); + span110[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46218u, ItemCount = 3 }; - index2++; - span305[index2] = new QuestStep(EInteractionType.Interact, 1055824u, new Vector3(520.714f, 111.135f, 608.5145f), 1187) + span110[1] = new QuestStep(EInteractionType.Interact, 1055824u, new Vector3(520.714f, 111.135f, 608.5145f), 1187) { Fly = true, Land = true }; obj207.Steps = list305; reference230 = obj207; - num++; - ref QuestSequence reference231 = ref span301[num]; + ref QuestSequence reference231 = ref span109[3]; QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -467676,16 +384510,13 @@ public static class AssemblyQuestLoader num = 1; List list307 = new List(num); CollectionsMarshal.SetCount(list307, num); - Span span307 = CollectionsMarshal.AsSpan(list307); - index = 0; - span307[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list307)[0] = "WigglyMuffin"; questRoot37.Author = list307; - index = 4; - List list308 = new List(index); - CollectionsMarshal.SetCount(list308, index); - Span span308 = CollectionsMarshal.AsSpan(list308); - num = 0; - ref QuestSequence reference232 = ref span308[num]; + num = 4; + List list308 = new List(num); + CollectionsMarshal.SetCount(list308, num); + Span span111 = CollectionsMarshal.AsSpan(list308); + ref QuestSequence reference232 = ref span111[0]; QuestSequence obj209 = new QuestSequence { Sequence = 0 @@ -467693,9 +384524,7 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467709,45 +384538,38 @@ public static class AssemblyQuestLoader }; obj209.Steps = list309; reference232 = obj209; - num++; - ref QuestSequence reference233 = ref span308[num]; + ref QuestSequence reference233 = ref span111[1]; QuestSequence obj210 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list310 = new List(index2); - CollectionsMarshal.SetCount(list310, index2); - Span span310 = CollectionsMarshal.AsSpan(list310); - num2 = 0; - ref QuestStep reference234 = ref span310[num2]; + num2 = 3; + List list310 = new List(num2); + CollectionsMarshal.SetCount(list310, num2); + Span span112 = CollectionsMarshal.AsSpan(list310); + ref QuestStep reference234 = ref span112[0]; 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(); - index3 = 1; - List list311 = new List(index3); - CollectionsMarshal.SetCount(list311, index3); - Span span311 = CollectionsMarshal.AsSpan(list311); - num3 = 0; - span311[num3] = 1187; + num3 = 1; + List list311 = new List(num3); + CollectionsMarshal.SetCount(list311, num3); + CollectionsMarshal.AsSpan(list311)[0] = 1187; skipStepConditions21.NotInTerritory = list311; skipConditions23.StepIf = skipStepConditions21; obj211.SkipConditions = skipConditions23; reference234 = obj211; - num2++; - span310[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + span112[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - num2++; - span310[num2] = new QuestStep(EInteractionType.Interact, 1055786u, new Vector3(97.24573f, 4.942853f, 198.19934f), 1297); + span112[2] = new QuestStep(EInteractionType.Interact, 1055786u, new Vector3(97.24573f, 4.942853f, 198.19934f), 1297); obj210.Steps = list310; reference233 = obj210; - num++; - ref QuestSequence reference235 = ref span308[num]; + ref QuestSequence reference235 = ref span111[2]; QuestSequence obj212 = new QuestSequence { Sequence = 2 @@ -467755,9 +384577,8 @@ public static class AssemblyQuestLoader num2 = 3; List list312 = new List(num2); CollectionsMarshal.SetCount(list312, num2); - Span span312 = CollectionsMarshal.AsSpan(list312); - index2 = 0; - ref QuestStep reference236 = ref span312[index2]; + Span span113 = CollectionsMarshal.AsSpan(list312); + ref QuestStep reference236 = ref span113[0]; QuestStep obj213 = new QuestStep(EInteractionType.UseItem, 2014944u, new Vector3(162.2566f, 3.905f, 88.95158f), 1297) { ItemId = 2003777u @@ -467765,64 +384586,47 @@ public static class AssemblyQuestLoader num3 = 6; List list313 = new List(num3); CollectionsMarshal.SetCount(list313, num3); - 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); + 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); obj213.CompletionQuestVariablesFlags = list313; reference236 = obj213; - index2++; - ref QuestStep reference237 = ref span312[index2]; + ref QuestStep reference237 = ref span113[1]; QuestStep obj214 = new QuestStep(EInteractionType.UseItem, 2014946u, new Vector3(99.3091f, 5.821984f, 15.11211f), 1297) { ItemId = 2003777u }; - 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); + 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); obj214.CompletionQuestVariablesFlags = list314; reference237 = obj214; - index2++; - span312[index2] = new QuestStep(EInteractionType.UseItem, 2014945u, new Vector3(72.99576f, 3.579935f, 29.1846f), 1297) + span113[2] = new QuestStep(EInteractionType.UseItem, 2014945u, new Vector3(72.99576f, 3.579935f, 29.1846f), 1297) { ItemId = 2003777u }; obj212.Steps = list312; reference235 = obj212; - num++; - ref QuestSequence reference238 = ref span308[num]; + ref QuestSequence reference238 = ref span111[3]; QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -467844,16 +384648,13 @@ public static class AssemblyQuestLoader num = 1; List list316 = new List(num); CollectionsMarshal.SetCount(list316, num); - Span span316 = CollectionsMarshal.AsSpan(list316); - index = 0; - span316[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list316)[0] = "WigglyMuffin"; questRoot38.Author = list316; - index = 4; - List list317 = new List(index); - CollectionsMarshal.SetCount(list317, index); - Span span317 = CollectionsMarshal.AsSpan(list317); - num = 0; - ref QuestSequence reference239 = ref span317[num]; + num = 4; + List list317 = new List(num); + CollectionsMarshal.SetCount(list317, num); + Span span116 = CollectionsMarshal.AsSpan(list317); + ref QuestSequence reference239 = ref span116[0]; QuestSequence obj216 = new QuestSequence { Sequence = 0 @@ -467861,9 +384662,7 @@ public static class AssemblyQuestLoader num2 = 1; List list318 = new List(num2); CollectionsMarshal.SetCount(list318, num2); - Span span318 = CollectionsMarshal.AsSpan(list318); - index2 = 0; - span318[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list318)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467877,18 +384676,15 @@ public static class AssemblyQuestLoader }; obj216.Steps = list318; reference239 = obj216; - num++; - ref QuestSequence reference240 = ref span317[num]; + ref QuestSequence reference240 = ref span116[1]; QuestSequence obj217 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467902,8 +384698,7 @@ public static class AssemblyQuestLoader }; obj217.Steps = list319; reference240 = obj217; - num++; - ref QuestSequence reference241 = ref span317[num]; + ref QuestSequence reference241 = ref span116[2]; QuestSequence obj218 = new QuestSequence { Sequence = 2 @@ -467911,29 +384706,24 @@ public static class AssemblyQuestLoader num2 = 2; List list320 = new List(num2); CollectionsMarshal.SetCount(list320, num2); - Span span320 = CollectionsMarshal.AsSpan(list320); - index2 = 0; - span320[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span117 = CollectionsMarshal.AsSpan(list320); + span117[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46220u, ItemCount = 1 }; - index2++; - span320[index2] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187); + span117[1] = new QuestStep(EInteractionType.Interact, 1055787u, new Vector3(521.8126f, 111.135f, 713.4049f), 1187); obj218.Steps = list320; reference241 = obj218; - num++; - ref QuestSequence reference242 = ref span317[num]; + ref QuestSequence reference242 = ref span116[3]; QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true }; @@ -467946,16 +384736,13 @@ public static class AssemblyQuestLoader num = 1; List list322 = new List(num); CollectionsMarshal.SetCount(list322, num); - Span span322 = CollectionsMarshal.AsSpan(list322); - index = 0; - span322[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list322)[0] = "CryoTechnic"; questRoot39.Author = list322; - index = 4; - List list323 = new List(index); - CollectionsMarshal.SetCount(list323, index); - Span span323 = CollectionsMarshal.AsSpan(list323); - num = 0; - ref QuestSequence reference243 = ref span323[num]; + num = 4; + List list323 = new List(num); + CollectionsMarshal.SetCount(list323, num); + Span span118 = CollectionsMarshal.AsSpan(list323); + ref QuestSequence reference243 = ref span118[0]; QuestSequence obj220 = new QuestSequence { Sequence = 0 @@ -467963,9 +384750,7 @@ public static class AssemblyQuestLoader num2 = 1; List list324 = new List(num2); CollectionsMarshal.SetCount(list324, num2); - Span span324 = CollectionsMarshal.AsSpan(list324); - index2 = 0; - span324[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list324)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -467979,18 +384764,16 @@ public static class AssemblyQuestLoader }; obj220.Steps = list324; reference243 = obj220; - num++; - ref QuestSequence reference244 = ref span323[num]; + ref QuestSequence reference244 = ref span118[1]; QuestSequence obj221 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list325 = new List(index2); - CollectionsMarshal.SetCount(list325, index2); - Span span325 = CollectionsMarshal.AsSpan(list325); - num2 = 0; - ref QuestStep reference245 = ref span325[num2]; + num2 = 2; + List list325 = new List(num2); + CollectionsMarshal.SetCount(list325, num2); + Span span119 = CollectionsMarshal.AsSpan(list325); + ref QuestStep reference245 = ref span119[0]; QuestStep obj222 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -468001,19 +384784,15 @@ public static class AssemblyQuestLoader num3 = 1; List list326 = new List(num3); CollectionsMarshal.SetCount(list326, num3); - Span span326 = CollectionsMarshal.AsSpan(list326); - index3 = 0; - span326[index3] = 1187; + CollectionsMarshal.AsSpan(list326)[0] = 1187; skipStepConditions22.NotInTerritory = list326; skipConditions24.StepIf = skipStepConditions22; obj222.SkipConditions = skipConditions24; reference245 = obj222; - num2++; - span325[num2] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); + span119[1] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); obj221.Steps = list325; reference244 = obj221; - num++; - ref QuestSequence reference246 = ref span323[num]; + ref QuestSequence reference246 = ref span118[2]; QuestSequence obj223 = new QuestSequence { Sequence = 2 @@ -468021,29 +384800,24 @@ public static class AssemblyQuestLoader num2 = 2; List list327 = new List(num2); CollectionsMarshal.SetCount(list327, num2); - Span span327 = CollectionsMarshal.AsSpan(list327); - index2 = 0; - span327[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span120 = CollectionsMarshal.AsSpan(list327); + span120[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46222u, ItemCount = 4 }; - index2++; - span327[index2] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); + span120[1] = new QuestStep(EInteractionType.Interact, 1055788u, new Vector3(97.8866f, 4.942851f, 160.66211f), 1297); obj223.Steps = list327; reference246 = obj223; - num++; - ref QuestSequence reference247 = ref span323[num]; + ref QuestSequence reference247 = ref span118[3]; QuestSequence obj224 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -468065,16 +384839,13 @@ public static class AssemblyQuestLoader num = 1; List list329 = new List(num); CollectionsMarshal.SetCount(list329, num); - Span span329 = CollectionsMarshal.AsSpan(list329); - index = 0; - span329[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list329)[0] = "WigglyMuffin"; questRoot40.Author = list329; - index = 3; - List list330 = new List(index); - CollectionsMarshal.SetCount(list330, index); - Span span330 = CollectionsMarshal.AsSpan(list330); - num = 0; - ref QuestSequence reference248 = ref span330[num]; + num = 3; + List list330 = new List(num); + CollectionsMarshal.SetCount(list330, num); + Span span121 = CollectionsMarshal.AsSpan(list330); + ref QuestSequence reference248 = ref span121[0]; QuestSequence obj225 = new QuestSequence { Sequence = 0 @@ -468082,9 +384853,7 @@ public static class AssemblyQuestLoader num2 = 1; List list331 = new List(num2); CollectionsMarshal.SetCount(list331, num2); - Span span331 = CollectionsMarshal.AsSpan(list331); - index2 = 0; - span331[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list331)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468098,50 +384867,39 @@ public static class AssemblyQuestLoader }; obj225.Steps = list331; reference248 = obj225; - num++; - ref QuestSequence reference249 = ref span330[num]; + ref QuestSequence reference249 = ref span121[1]; QuestSequence obj226 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list332 = new List(index2); - CollectionsMarshal.SetCount(list332, index2); - Span span332 = CollectionsMarshal.AsSpan(list332); - num2 = 0; - ref QuestStep reference250 = ref span332[num2]; + num2 = 4; + List list332 = new List(num2); + CollectionsMarshal.SetCount(list332, num2); + Span span122 = CollectionsMarshal.AsSpan(list332); + ref QuestStep reference250 = ref span122[0]; QuestStep obj227 = new QuestStep(EInteractionType.Emote, 1055796u, new Vector3(-486.8086f, 60.107265f, 138.56714f), 1187) { Fly = true, Emote = EEmote.Poke }; - 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); + 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); reference251 = list334; - num3++; - span333[num3] = null; - num3++; - span333[num3] = null; - num3++; - span333[num3] = null; - num3++; - span333[num3] = null; + span123[2] = null; + span123[3] = null; + span123[4] = null; + span123[5] = null; obj227.RequiredQuestVariables = list333; reference250 = obj227; - num2++; - ref QuestStep reference252 = ref span332[num2]; + ref QuestStep reference252 = ref span122[1]; QuestStep obj228 = new QuestStep(EInteractionType.Emote, 1055797u, new Vector3(-195.02557f, 40.181572f, 15.518433f), 1187) { Fly = true, @@ -468151,62 +384909,44 @@ public static class AssemblyQuestLoader num3 = 6; List> list335 = new List>(num3); CollectionsMarshal.SetCount(list335, num3); - Span> span335 = CollectionsMarshal.AsSpan(list335); - index3 = 0; - span335[index3] = null; - index3++; - ref List reference253 = ref span335[index3]; + Span> span124 = CollectionsMarshal.AsSpan(list335); + span124[0] = null; + ref List reference253 = ref span124[1]; num4 = 1; List list336 = new List(num4); CollectionsMarshal.SetCount(list336, num4); - Span span336 = CollectionsMarshal.AsSpan(list336); - index4 = 0; - span336[index4] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list336)[0] = new QuestWorkValue((byte)1, null, EQuestWorkMode.Bitwise); reference253 = list336; - index3++; - span335[index3] = null; - index3++; - span335[index3] = null; - index3++; - span335[index3] = null; - index3++; - span335[index3] = null; + span124[2] = null; + span124[3] = null; + span124[4] = null; + span124[5] = null; obj228.RequiredQuestVariables = list335; reference252 = obj228; - num2++; - ref QuestStep reference254 = ref span332[num2]; + ref QuestStep reference254 = ref span122[2]; QuestStep obj229 = new QuestStep(EInteractionType.Emote, 1055798u, new Vector3(-434.40912f, 118.59887f, 553.8567f), 1187) { Fly = true, Emote = EEmote.Poke }; - 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); + 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); reference255 = list338; - num3++; - span337[num3] = null; - num3++; - span337[num3] = null; - num3++; - span337[num3] = null; - num3++; - span337[num3] = null; + span125[2] = null; + span125[3] = null; + span125[4] = null; + span125[5] = null; obj229.RequiredQuestVariables = list337; reference254 = obj229; - num2++; - ref QuestStep reference256 = ref span332[num2]; + ref QuestStep reference256 = ref span122[3]; QuestStep obj230 = new QuestStep(EInteractionType.Emote, 1055789u, new Vector3(509.69702f, 111.134995f, 693.78186f), 1187) { Fly = true, @@ -468215,32 +384955,23 @@ public static class AssemblyQuestLoader num3 = 6; List> list339 = new List>(num3); CollectionsMarshal.SetCount(list339, num3); - Span> span339 = CollectionsMarshal.AsSpan(list339); - index3 = 0; - span339[index3] = null; - index3++; - ref List reference257 = ref span339[index3]; + Span> span126 = CollectionsMarshal.AsSpan(list339); + span126[0] = null; + ref List reference257 = ref span126[1]; num4 = 1; List list340 = new List(num4); CollectionsMarshal.SetCount(list340, num4); - Span span340 = CollectionsMarshal.AsSpan(list340); - index4 = 0; - span340[index4] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); + CollectionsMarshal.AsSpan(list340)[0] = new QuestWorkValue((byte)2, null, EQuestWorkMode.Bitwise); reference257 = list340; - index3++; - span339[index3] = null; - index3++; - span339[index3] = null; - index3++; - span339[index3] = null; - index3++; - span339[index3] = null; + span126[2] = null; + span126[3] = null; + span126[4] = null; + span126[5] = null; obj230.RequiredQuestVariables = list339; reference256 = obj230; obj226.Steps = list332; reference249 = obj226; - num++; - ref QuestSequence reference258 = ref span330[num]; + ref QuestSequence reference258 = ref span121[2]; QuestSequence obj231 = new QuestSequence { Sequence = byte.MaxValue @@ -468248,9 +384979,7 @@ public static class AssemblyQuestLoader num2 = 1; List list341 = new List(num2); CollectionsMarshal.SetCount(list341, num2); - Span span341 = CollectionsMarshal.AsSpan(list341); - index2 = 0; - span341[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list341)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho @@ -468264,26 +384993,21 @@ public static class AssemblyQuestLoader num = 1; List list342 = new List(num); CollectionsMarshal.SetCount(list342, num); - Span span342 = CollectionsMarshal.AsSpan(list342); - index = 0; - span342[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list342)[0] = "CryoTechnic"; questRoot41.Author = list342; - index = 4; - List list343 = new List(index); - CollectionsMarshal.SetCount(list343, index); - Span span343 = CollectionsMarshal.AsSpan(list343); - num = 0; - ref QuestSequence reference259 = ref span343[num]; + num = 4; + List list343 = new List(num); + CollectionsMarshal.SetCount(list343, num); + Span span127 = CollectionsMarshal.AsSpan(list343); + ref QuestSequence reference259 = ref span127[0]; QuestSequence obj232 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468297,8 +385021,7 @@ public static class AssemblyQuestLoader }; obj232.Steps = list344; reference259 = obj232; - num++; - ref QuestSequence reference260 = ref span343[num]; + ref QuestSequence reference260 = ref span127[1]; QuestSequence obj233 = new QuestSequence { Sequence = 1 @@ -468306,51 +385029,43 @@ public static class AssemblyQuestLoader num2 = 2; List list345 = new List(num2); CollectionsMarshal.SetCount(list345, num2); - Span span345 = CollectionsMarshal.AsSpan(list345); - index2 = 0; - ref QuestStep reference261 = ref span345[index2]; + Span span128 = CollectionsMarshal.AsSpan(list345); + ref QuestStep reference261 = ref span128[0]; 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(); - index3 = 1; - List list346 = new List(index3); - CollectionsMarshal.SetCount(list346, index3); - Span span346 = CollectionsMarshal.AsSpan(list346); - num3 = 0; - span346[num3] = 1187; + num3 = 1; + List list346 = new List(num3); + CollectionsMarshal.SetCount(list346, num3); + CollectionsMarshal.AsSpan(list346)[0] = 1187; skipStepConditions23.NotInTerritory = list346; skipConditions25.StepIf = skipStepConditions23; obj234.SkipConditions = skipConditions25; reference261 = obj234; - index2++; - span345[index2] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); + span128[1] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); obj233.Steps = list345; reference260 = obj233; - num++; - ref QuestSequence reference262 = ref span343[num]; + ref QuestSequence reference262 = ref span127[2]; QuestSequence obj235 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 46224u, ItemCount = 2 }; - num2++; - span347[num2] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); + span129[1] = new QuestStep(EInteractionType.Interact, 1055790u, new Vector3(124.98657f, 3.9429288f, 184.6189f), 1297); obj235.Steps = list347; reference262 = obj235; - num++; - ref QuestSequence reference263 = ref span343[num]; + ref QuestSequence reference263 = ref span127[3]; QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue @@ -468358,9 +385073,7 @@ public static class AssemblyQuestLoader num2 = 1; List list348 = new List(num2); CollectionsMarshal.SetCount(list348, num2); - Span span348 = CollectionsMarshal.AsSpan(list348); - index2 = 0; - span348[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list348)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -468382,26 +385095,21 @@ public static class AssemblyQuestLoader num = 1; List list349 = new List(num); CollectionsMarshal.SetCount(list349, num); - Span span349 = CollectionsMarshal.AsSpan(list349); - index = 0; - span349[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list349)[0] = "CryoTechnic"; questRoot42.Author = list349; - index = 3; - List list350 = new List(index); - CollectionsMarshal.SetCount(list350, index); - Span span350 = CollectionsMarshal.AsSpan(list350); - num = 0; - ref QuestSequence reference264 = ref span350[num]; + num = 3; + List list350 = new List(num); + CollectionsMarshal.SetCount(list350, num); + Span span130 = CollectionsMarshal.AsSpan(list350); + ref QuestSequence reference264 = ref span130[0]; QuestSequence obj237 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468415,8 +385123,7 @@ public static class AssemblyQuestLoader }; obj237.Steps = list351; reference264 = obj237; - num++; - ref QuestSequence reference265 = ref span350[num]; + ref QuestSequence reference265 = ref span130[1]; QuestSequence obj238 = new QuestSequence { Sequence = 1 @@ -468424,9 +385131,7 @@ public static class AssemblyQuestLoader num2 = 1; List list352 = new List(num2); CollectionsMarshal.SetCount(list352, num2); - Span span352 = CollectionsMarshal.AsSpan(list352); - index2 = 0; - span352[index2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + CollectionsMarshal.AsSpan(list352)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468440,24 +385145,21 @@ public static class AssemblyQuestLoader }; obj238.Steps = list352; reference265 = obj238; - num++; - ref QuestSequence reference266 = ref span350[num]; + ref QuestSequence reference266 = ref span130[2]; QuestSequence obj239 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 46226u, ItemCount = 1 }; - num2++; - span353[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span131[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -468479,16 +385181,13 @@ public static class AssemblyQuestLoader num = 1; List list354 = new List(num); CollectionsMarshal.SetCount(list354, num); - Span span354 = CollectionsMarshal.AsSpan(list354); - index = 0; - span354[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list354)[0] = "CryoTechnic"; questRoot43.Author = list354; - index = 3; - List list355 = new List(index); - CollectionsMarshal.SetCount(list355, index); - Span span355 = CollectionsMarshal.AsSpan(list355); - num = 0; - ref QuestSequence reference267 = ref span355[num]; + num = 3; + List list355 = new List(num); + CollectionsMarshal.SetCount(list355, num); + Span span132 = CollectionsMarshal.AsSpan(list355); + ref QuestSequence reference267 = ref span132[0]; QuestSequence obj240 = new QuestSequence { Sequence = 0 @@ -468496,9 +385195,7 @@ public static class AssemblyQuestLoader num2 = 1; List list356 = new List(num2); CollectionsMarshal.SetCount(list356, num2); - Span span356 = CollectionsMarshal.AsSpan(list356); - index2 = 0; - span356[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list356)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468512,18 +385209,16 @@ public static class AssemblyQuestLoader }; obj240.Steps = list356; reference267 = obj240; - num++; - ref QuestSequence reference268 = ref span355[num]; + ref QuestSequence reference268 = ref span132[1]; QuestSequence obj241 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, Land = true, @@ -468532,14 +385227,12 @@ public static class AssemblyQuestLoader Key = "TEXT_BANYOK114_05349_SAYTODO_000_010" } }; - num2++; - span357[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(145.29918f, 34.203415f, 104.64879f), 1187) + span133[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(145.29918f, 34.203415f, 104.64879f), 1187) { Fly = true, Land = true }; - num2++; - span357[num2] = new QuestStep(EInteractionType.Say, 1055826u, new Vector3(145.76941f, 34.203403f, 101.548706f), 1187) + span133[2] = new QuestStep(EInteractionType.Say, 1055826u, new Vector3(145.76941f, 34.203403f, 101.548706f), 1187) { ChatMessage = new ChatMessage { @@ -468548,8 +385241,7 @@ public static class AssemblyQuestLoader }; obj241.Steps = list357; reference268 = obj241; - num++; - ref QuestSequence reference269 = ref span355[num]; + ref QuestSequence reference269 = ref span132[2]; QuestSequence obj242 = new QuestSequence { Sequence = byte.MaxValue @@ -468557,9 +385249,7 @@ public static class AssemblyQuestLoader num2 = 1; List list358 = new List(num2); CollectionsMarshal.SetCount(list358, num2); - Span span358 = CollectionsMarshal.AsSpan(list358); - index2 = 0; - span358[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list358)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -468590,16 +385280,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list)[0] = "CryoTechnic"; questRoot.Author = list; - index = 4; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -468607,9 +385294,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468623,25 +385308,21 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -468649,29 +385330,24 @@ public static class AssemblyQuestLoader num2 = 2; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span2 = CollectionsMarshal.AsSpan(list5); + span2[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46228u, ItemCount = 1 }; - index2++; - span5[index2] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187); + span2[1] = new QuestStep(EInteractionType.Interact, 1055804u, new Vector3(366.10962f, 129.04724f, 645.8075f), 1187); obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, Land = true, @@ -468693,16 +385369,13 @@ public static class AssemblyQuestLoader num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - index = 0; - span7[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list7)[0] = "CryoTechnic"; questRoot2.Author = list7; - index = 3; - List list8 = new List(index); - CollectionsMarshal.SetCount(list8, index); - Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - ref QuestSequence reference5 = ref span8[num]; + num = 3; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + Span span3 = CollectionsMarshal.AsSpan(list8); + ref QuestSequence reference5 = ref span3[0]; QuestSequence obj5 = new QuestSequence { Sequence = 0 @@ -468710,9 +385383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list9 = new List(num2); CollectionsMarshal.SetCount(list9, num2); - Span span9 = CollectionsMarshal.AsSpan(list9); - index2 = 0; - span9[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list9)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468726,18 +385397,15 @@ public static class AssemblyQuestLoader }; obj5.Steps = list9; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span8[num]; + ref QuestSequence reference6 = ref span3[1]; QuestSequence obj6 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468751,8 +385419,7 @@ public static class AssemblyQuestLoader }; obj6.Steps = list10; reference6 = obj6; - num++; - ref QuestSequence reference7 = ref span8[num]; + ref QuestSequence reference7 = ref span3[2]; QuestSequence obj7 = new QuestSequence { Sequence = byte.MaxValue @@ -468760,9 +385427,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -468784,26 +385449,21 @@ public static class AssemblyQuestLoader num = 1; List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); - Span span12 = CollectionsMarshal.AsSpan(list12); - index = 0; - span12[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list12)[0] = "WigglyMuffin"; questRoot3.Author = list12; - index = 4; - List list13 = new List(index); - CollectionsMarshal.SetCount(list13, index); - Span span13 = CollectionsMarshal.AsSpan(list13); - num = 0; - ref QuestSequence reference8 = ref span13[num]; + num = 4; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + Span span4 = CollectionsMarshal.AsSpan(list13); + ref QuestSequence reference8 = ref span4[0]; QuestSequence obj8 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468817,8 +385477,7 @@ public static class AssemblyQuestLoader }; obj8.Steps = list14; reference8 = obj8; - num++; - ref QuestSequence reference9 = ref span13[num]; + ref QuestSequence reference9 = ref span4[1]; QuestSequence obj9 = new QuestSequence { Sequence = 1 @@ -468826,9 +385485,8 @@ public static class AssemblyQuestLoader num2 = 3; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - ref QuestStep reference10 = ref span15[index2]; + Span span5 = CollectionsMarshal.AsSpan(list15); + ref QuestStep reference10 = ref span5[0]; QuestStep obj10 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -468838,49 +385496,40 @@ public static class AssemblyQuestLoader int num3 = 1; List list16 = new List(num3); CollectionsMarshal.SetCount(list16, num3); - Span span16 = CollectionsMarshal.AsSpan(list16); - int index3 = 0; - span16[index3] = 1187; + CollectionsMarshal.AsSpan(list16)[0] = 1187; skipStepConditions.NotInTerritory = list16; skipConditions.StepIf = skipStepConditions; obj10.SkipConditions = skipConditions; reference10 = obj10; - index2++; - span15[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + span5[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - index2++; - span15[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + span5[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference11 = ref span13[num]; + ref QuestSequence reference11 = ref span4[2]; QuestSequence obj11 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 46230u, ItemCount = 3 }; - num2++; - span17[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) + span6[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) { Fly = false }; - num2++; - span17[num2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + span6[2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj11.Steps = list17; reference11 = obj11; - num++; - ref QuestSequence reference12 = ref span13[num]; + ref QuestSequence reference12 = ref span4[3]; QuestSequence obj12 = new QuestSequence { Sequence = byte.MaxValue @@ -468888,9 +385537,7 @@ public static class AssemblyQuestLoader num2 = 1; List list18 = new List(num2); CollectionsMarshal.SetCount(list18, num2); - Span span18 = CollectionsMarshal.AsSpan(list18); - index2 = 0; - span18[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list18)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -468912,26 +385559,21 @@ public static class AssemblyQuestLoader num = 1; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); - Span span19 = CollectionsMarshal.AsSpan(list19); - index = 0; - span19[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list19)[0] = "WigglyMuffin"; questRoot4.Author = list19; - index = 4; - List list20 = new List(index); - CollectionsMarshal.SetCount(list20, index); - Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - ref QuestSequence reference13 = ref span20[num]; + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); + Span span7 = CollectionsMarshal.AsSpan(list20); + ref QuestSequence reference13 = ref span7[0]; QuestSequence obj13 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -468945,8 +385587,7 @@ public static class AssemblyQuestLoader }; obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference14 = ref span20[num]; + ref QuestSequence reference14 = ref span7[1]; QuestSequence obj14 = new QuestSequence { Sequence = 1 @@ -468954,56 +385595,47 @@ public static class AssemblyQuestLoader num2 = 3; List list22 = new List(num2); CollectionsMarshal.SetCount(list22, num2); - Span span22 = CollectionsMarshal.AsSpan(list22); - index2 = 0; - ref QuestStep reference15 = ref span22[index2]; + Span span8 = CollectionsMarshal.AsSpan(list22); + ref QuestStep reference15 = ref span8[0]; 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(); - index3 = 1; - List list23 = new List(index3); - CollectionsMarshal.SetCount(list23, index3); - Span span23 = CollectionsMarshal.AsSpan(list23); - num3 = 0; - span23[num3] = 1187; + num3 = 1; + List list23 = new List(num3); + CollectionsMarshal.SetCount(list23, num3); + CollectionsMarshal.AsSpan(list23)[0] = 1187; skipStepConditions2.NotInTerritory = list23; skipConditions2.StepIf = skipStepConditions2; obj15.SkipConditions = skipConditions2; reference15 = obj15; - index2++; - span22[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) + span8[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(52.610603f, 0f, 68.19062f), 1297) { Fly = false }; - index2++; - span22[index2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + span8[2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj14.Steps = list22; reference14 = obj14; - num++; - ref QuestSequence reference16 = ref span20[num]; + ref QuestSequence reference16 = ref span7[2]; QuestSequence obj16 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 46232u, ItemCount = 4 }; - num2++; - span24[num2] = new QuestStep(EInteractionType.Interact, 1055807u, new Vector3(-76.46301f, 6.180734f, 35.75183f), 1297); + span9[1] = new QuestStep(EInteractionType.Interact, 1055807u, new Vector3(-76.46301f, 6.180734f, 35.75183f), 1297); obj16.Steps = list24; reference16 = obj16; - num++; - ref QuestSequence reference17 = ref span20[num]; + ref QuestSequence reference17 = ref span7[3]; QuestSequence obj17 = new QuestSequence { Sequence = byte.MaxValue @@ -469011,9 +385643,7 @@ public static class AssemblyQuestLoader num2 = 1; List list25 = new List(num2); CollectionsMarshal.SetCount(list25, num2); - Span span25 = CollectionsMarshal.AsSpan(list25); - index2 = 0; - span25[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list25)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -469035,26 +385665,21 @@ public static class AssemblyQuestLoader num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span26 = CollectionsMarshal.AsSpan(list26); - index = 0; - span26[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list26)[0] = "WigglyMuffin"; questRoot5.Author = list26; - index = 4; - List list27 = new List(index); - CollectionsMarshal.SetCount(list27, index); - Span span27 = CollectionsMarshal.AsSpan(list27); - num = 0; - ref QuestSequence reference18 = ref span27[num]; + num = 4; + List list27 = new List(num); + CollectionsMarshal.SetCount(list27, num); + Span span10 = CollectionsMarshal.AsSpan(list27); + ref QuestSequence reference18 = ref span10[0]; QuestSequence obj18 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469068,8 +385693,7 @@ public static class AssemblyQuestLoader }; obj18.Steps = list28; reference18 = obj18; - num++; - ref QuestSequence reference19 = ref span27[num]; + ref QuestSequence reference19 = ref span10[1]; QuestSequence obj19 = new QuestSequence { Sequence = 1 @@ -469077,9 +385701,8 @@ public static class AssemblyQuestLoader num2 = 3; List list29 = new List(num2); CollectionsMarshal.SetCount(list29, num2); - Span span29 = CollectionsMarshal.AsSpan(list29); - index2 = 0; - ref QuestStep reference20 = ref span29[index2]; + Span span11 = CollectionsMarshal.AsSpan(list29); + ref QuestStep reference20 = ref span11[0]; QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -469089,34 +385712,27 @@ public static class AssemblyQuestLoader num3 = 1; List list30 = new List(num3); CollectionsMarshal.SetCount(list30, num3); - Span span30 = CollectionsMarshal.AsSpan(list30); - index3 = 0; - span30[index3] = 1187; + CollectionsMarshal.AsSpan(list30)[0] = 1187; skipStepConditions3.NotInTerritory = list30; skipConditions3.StepIf = skipStepConditions3; obj20.SkipConditions = skipConditions3; reference20 = obj20; - index2++; - span29[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.796455f, 5.969013f, 48.502377f), 1297) + span11[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-78.796455f, 5.969013f, 48.502377f), 1297) { Fly = false }; - index2++; - span29[index2] = new QuestStep(EInteractionType.Interact, 1055808u, new Vector3(-143.63324f, 5.9494705f, 58.457275f), 1297); + span11[2] = new QuestStep(EInteractionType.Interact, 1055808u, new Vector3(-143.63324f, 5.9494705f, 58.457275f), 1297); obj19.Steps = list29; reference19 = obj19; - num++; - ref QuestSequence reference21 = ref span27[num]; + ref QuestSequence reference21 = ref span10[2]; QuestSequence obj21 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469130,8 +385746,7 @@ public static class AssemblyQuestLoader }; obj21.Steps = list31; reference21 = obj21; - num++; - ref QuestSequence reference22 = ref span27[num]; + ref QuestSequence reference22 = ref span10[3]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -469139,9 +385754,7 @@ public static class AssemblyQuestLoader num2 = 1; List list32 = new List(num2); CollectionsMarshal.SetCount(list32, num2); - Span span32 = CollectionsMarshal.AsSpan(list32); - index2 = 0; - span32[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list32)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469162,26 +385775,21 @@ public static class AssemblyQuestLoader num = 1; List list33 = new List(num); CollectionsMarshal.SetCount(list33, num); - Span span33 = CollectionsMarshal.AsSpan(list33); - index = 0; - span33[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list33)[0] = "WigglyMuffin"; questRoot6.Author = list33; - index = 4; - List list34 = new List(index); - CollectionsMarshal.SetCount(list34, index); - Span span34 = CollectionsMarshal.AsSpan(list34); - num = 0; - ref QuestSequence reference23 = ref span34[num]; + num = 4; + List list34 = new List(num); + CollectionsMarshal.SetCount(list34, num); + Span span12 = CollectionsMarshal.AsSpan(list34); + ref QuestSequence reference23 = ref span12[0]; QuestSequence obj23 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469195,8 +385803,7 @@ public static class AssemblyQuestLoader }; obj23.Steps = list35; reference23 = obj23; - num++; - ref QuestSequence reference24 = ref span34[num]; + ref QuestSequence reference24 = ref span12[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -469204,56 +385811,47 @@ public static class AssemblyQuestLoader num2 = 2; List list36 = new List(num2); CollectionsMarshal.SetCount(list36, num2); - Span span36 = CollectionsMarshal.AsSpan(list36); - index2 = 0; - ref QuestStep reference25 = ref span36[index2]; + Span span13 = CollectionsMarshal.AsSpan(list36); + ref QuestStep reference25 = ref span13[0]; 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(); - index3 = 1; - List list37 = new List(index3); - CollectionsMarshal.SetCount(list37, index3); - Span span37 = CollectionsMarshal.AsSpan(list37); - num3 = 0; - span37[num3] = 1187; + num3 = 1; + List list37 = new List(num3); + CollectionsMarshal.SetCount(list37, num3); + CollectionsMarshal.AsSpan(list37)[0] = 1187; skipStepConditions4.NotInTerritory = list37; skipConditions4.StepIf = skipStepConditions4; obj25.SkipConditions = skipConditions4; reference25 = obj25; - index2++; - span36[index2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + span13[1] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj24.Steps = list36; reference24 = obj24; - num++; - ref QuestSequence reference26 = ref span34[num]; + ref QuestSequence reference26 = ref span12[2]; QuestSequence obj26 = new QuestSequence { Sequence = 2 }; - 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) + 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) { ItemId = 46234u, ItemCount = 2 }; - num2++; - span38[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) + span14[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-102.34843f, 5.9020233f, 48.216927f), 1297) { Fly = false }; - num2++; - span38[num2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); + span14[2] = new QuestStep(EInteractionType.Interact, 1055806u, new Vector3(-105.760315f, 6.3924823f, 60.349365f), 1297); obj26.Steps = list38; reference26 = obj26; - num++; - ref QuestSequence reference27 = ref span34[num]; + ref QuestSequence reference27 = ref span12[3]; QuestSequence obj27 = new QuestSequence { Sequence = byte.MaxValue @@ -469261,9 +385859,7 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, Land = true, @@ -469285,26 +385881,21 @@ public static class AssemblyQuestLoader num = 1; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span40 = CollectionsMarshal.AsSpan(list40); - index = 0; - span40[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list40)[0] = "CryoTechnic"; questRoot7.Author = list40; - index = 4; - List list41 = new List(index); - CollectionsMarshal.SetCount(list41, index); - Span span41 = CollectionsMarshal.AsSpan(list41); - num = 0; - ref QuestSequence reference28 = ref span41[num]; + num = 4; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + Span span15 = CollectionsMarshal.AsSpan(list41); + ref QuestSequence reference28 = ref span15[0]; QuestSequence obj28 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469318,8 +385909,7 @@ public static class AssemblyQuestLoader }; obj28.Steps = list42; reference28 = obj28; - num++; - ref QuestSequence reference29 = ref span41[num]; + ref QuestSequence reference29 = ref span15[1]; QuestSequence obj29 = new QuestSequence { Sequence = 1 @@ -469327,66 +385917,56 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.Interact, 1055810u, new Vector3(530.44934f, 107.13501f, 539.0554f), 1187) + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.Interact, 1055810u, new Vector3(530.44934f, 107.13501f, 539.0554f), 1187) { Fly = true }; obj29.Steps = list43; reference29 = obj29; - num++; - ref QuestSequence reference30 = ref span41[num]; + ref QuestSequence reference30 = ref span15[2]; QuestSequence obj30 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Mount = false, Fly = false }; - num2++; - span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.60175f, 119.49903f, 758.57855f), 1187) + span16[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(543.60175f, 119.49903f, 758.57855f), 1187) { DisableNavmesh = true, Mount = false, Fly = false }; - num2++; - span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.2725f, 127.72187f, 781.8777f), 1187) + span16[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(547.2725f, 127.72187f, 781.8777f), 1187) { Mount = false, Fly = false }; - num2++; - span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.19476f, 135.24232f, 801.69586f), 1187) + span16[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(542.19476f, 135.24232f, 801.69586f), 1187) { DisableNavmesh = true, Mount = false, Fly = false }; - num2++; - span44[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(516.9529f, 142.24991f, 797.651f), 1187) + span16[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(516.9529f, 142.24991f, 797.651f), 1187) { Mount = false, Fly = false }; - num2++; - span44[num2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + span16[5] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Mount = false, Fly = false }; obj30.Steps = list44; reference30 = obj30; - num++; - ref QuestSequence reference31 = ref span41[num]; + ref QuestSequence reference31 = ref span15[3]; QuestSequence obj31 = new QuestSequence { Sequence = byte.MaxValue @@ -469394,9 +385974,7 @@ public static class AssemblyQuestLoader num2 = 1; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - span45[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list45)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469422,26 +386000,21 @@ public static class AssemblyQuestLoader num = 1; List list46 = new List(num); CollectionsMarshal.SetCount(list46, num); - Span span46 = CollectionsMarshal.AsSpan(list46); - index = 0; - span46[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list46)[0] = "CryoTechnic"; questRoot8.Author = list46; - index = 3; - List list47 = new List(index); - CollectionsMarshal.SetCount(list47, index); - Span span47 = CollectionsMarshal.AsSpan(list47); - num = 0; - ref QuestSequence reference32 = ref span47[num]; + num = 3; + List list47 = new List(num); + CollectionsMarshal.SetCount(list47, num); + Span span17 = CollectionsMarshal.AsSpan(list47); + ref QuestSequence reference32 = ref span17[0]; QuestSequence obj32 = new QuestSequence { Sequence = 0 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469455,8 +386028,7 @@ public static class AssemblyQuestLoader }; obj32.Steps = list48; reference32 = obj32; - num++; - ref QuestSequence reference33 = ref span47[num]; + ref QuestSequence reference33 = ref span17[1]; QuestSequence obj33 = new QuestSequence { Sequence = 1 @@ -469464,9 +386036,7 @@ public static class AssemblyQuestLoader num2 = 1; List list49 = new List(num2); CollectionsMarshal.SetCount(list49, num2); - Span span49 = CollectionsMarshal.AsSpan(list49); - index2 = 0; - span49[index2] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) + CollectionsMarshal.AsSpan(list49)[0] = new QuestStep(EInteractionType.Interact, 1054676u, new Vector3(500.93835f, 142.24991f, 782.22314f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469480,18 +386050,16 @@ public static class AssemblyQuestLoader }; obj33.Steps = list49; reference33 = obj33; - num++; - ref QuestSequence reference34 = ref span47[num]; + ref QuestSequence reference34 = ref span17[2]; QuestSequence obj34 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { ItemId = 46236u, ItemCount = 3, @@ -469503,8 +386071,7 @@ public static class AssemblyQuestLoader } } }; - num2++; - span50[num2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + span18[1] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469530,16 +386097,13 @@ public static class AssemblyQuestLoader num = 1; List list51 = new List(num); CollectionsMarshal.SetCount(list51, num); - Span span51 = CollectionsMarshal.AsSpan(list51); - index = 0; - span51[index] = "CryoTechnic"; + CollectionsMarshal.AsSpan(list51)[0] = "CryoTechnic"; questRoot9.Author = list51; - index = 4; - List list52 = new List(index); - CollectionsMarshal.SetCount(list52, index); - Span span52 = CollectionsMarshal.AsSpan(list52); - num = 0; - ref QuestSequence reference35 = ref span52[num]; + num = 4; + List list52 = new List(num); + CollectionsMarshal.SetCount(list52, num); + Span span19 = CollectionsMarshal.AsSpan(list52); + ref QuestSequence reference35 = ref span19[0]; QuestSequence obj35 = new QuestSequence { Sequence = 0 @@ -469547,9 +386111,7 @@ public static class AssemblyQuestLoader num2 = 1; List list53 = new List(num2); CollectionsMarshal.SetCount(list53, num2); - Span span53 = CollectionsMarshal.AsSpan(list53); - index2 = 0; - span53[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list53)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469563,18 +386125,16 @@ public static class AssemblyQuestLoader }; obj35.Steps = list53; reference35 = obj35; - num++; - ref QuestSequence reference36 = ref span52[num]; + ref QuestSequence reference36 = ref span19[1]; QuestSequence obj36 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list54 = new List(index2); - CollectionsMarshal.SetCount(list54, index2); - Span span54 = CollectionsMarshal.AsSpan(list54); - num2 = 0; - ref QuestStep reference37 = ref span54[num2]; + num2 = 2; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + Span span20 = CollectionsMarshal.AsSpan(list54); + ref QuestStep reference37 = ref span20[0]; QuestStep obj37 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -469584,19 +386144,15 @@ public static class AssemblyQuestLoader num3 = 1; List list55 = new List(num3); CollectionsMarshal.SetCount(list55, num3); - Span span55 = CollectionsMarshal.AsSpan(list55); - index3 = 0; - span55[index3] = 1187; + CollectionsMarshal.AsSpan(list55)[0] = 1187; skipStepConditions5.NotInTerritory = list55; skipConditions5.StepIf = skipStepConditions5; obj37.SkipConditions = skipConditions5; reference37 = obj37; - num2++; - span54[num2] = new QuestStep(EInteractionType.Interact, 1055791u, new Vector3(21.469421f, 13.538549f, 283.6194f), 1297); + span20[1] = new QuestStep(EInteractionType.Interact, 1055791u, new Vector3(21.469421f, 13.538549f, 283.6194f), 1297); obj36.Steps = list54; reference36 = obj36; - num++; - ref QuestSequence reference38 = ref span52[num]; + ref QuestSequence reference38 = ref span19[2]; QuestSequence obj38 = new QuestSequence { Sequence = 2 @@ -469604,64 +386160,51 @@ public static class AssemblyQuestLoader num2 = 17; List list56 = new List(num2); CollectionsMarshal.SetCount(list56, num2); - Span span56 = CollectionsMarshal.AsSpan(list56); - index2 = 0; - ref QuestStep reference39 = ref span56[index2]; + Span span21 = CollectionsMarshal.AsSpan(list56); + ref QuestStep reference39 = ref span21[0]; QuestStep obj39 = new QuestStep(EInteractionType.UseItem, 2014955u, new Vector3(21.35857f, 15.18271f, 288.9486f), 1297) { Mount = true, ItemId = 2003778u }; - 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); + 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); obj39.CompletionQuestVariablesFlags = list57; reference39 = obj39; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.474648f, 13.538554f, 299.35413f), 1297) + span21[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(38.474648f, 13.538554f, 299.35413f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.922432f, 13.538555f, 299.98282f), 1297) + span21[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(47.922432f, 13.538555f, 299.98282f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.25193f, 13.538491f, 335.66028f), 1297) + span21[3] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(48.25193f, 13.538491f, 335.66028f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.59439f, 13.538559f, 335.311f), 1297) + span21[4] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(36.59439f, 13.538559f, 335.311f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(27.471945f, 13.538559f, 345.5773f), 1297) + span21[5] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(27.471945f, 13.538559f, 345.5773f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - ref QuestStep reference40 = ref span56[index2]; + ref QuestStep reference40 = ref span21[6]; QuestStep obj40 = new QuestStep(EInteractionType.UseItem, 2014958u, new Vector3(25.25208f, 15.1827f, 343.7696f), 1297) { Mount = true, @@ -469670,114 +386213,89 @@ public static class AssemblyQuestLoader num3 = 6; List list58 = new List(num3); CollectionsMarshal.SetCount(list58, num3); - 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); + 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); obj40.CompletionQuestVariablesFlags = list58; reference40 = obj40; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.319462f, 13.538559f, 359.63834f), 1297) + span21[7] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(13.319462f, 13.538559f, 359.63834f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.500497f, 13.538549f, 359.83508f), 1297) + span21[8] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-15.500497f, 13.538549f, 359.83508f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.350124f, 13.538551f, 347.12094f), 1297) + span21[9] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-26.350124f, 13.538551f, 347.12094f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - ref QuestStep reference41 = ref span56[index2]; + ref QuestStep reference41 = ref span21[10]; QuestStep obj41 = new QuestStep(EInteractionType.UseItem, 2014957u, new Vector3(-24.51654f, 15.1827f, 343.9439f), 1297) { Mount = true, ItemId = 2003778u }; - 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); + 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); obj41.CompletionQuestVariablesFlags = list59; reference41 = obj41; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-36.89487f, 13.5385475f, 335.85452f), 1297) + span21[11] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-36.89487f, 13.5385475f, 335.85452f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.796112f, 13.53848f, 335.2269f), 1297) + span21[12] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-47.796112f, 13.53848f, 335.2269f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.585648f, 13.538531f, 299.03348f), 1297) + span21[13] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-48.585648f, 13.538531f, 299.03348f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-34.23524f, 13.538542f, 298.76367f), 1297) + span21[14] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-34.23524f, 13.538542f, 298.76367f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.993502f, 13.538543f, 287.8971f), 1297) + span21[15] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-22.993502f, 13.538543f, 287.8971f), 1297) { DisableNavmesh = true, Mount = true }; - index2++; - span56[index2] = new QuestStep(EInteractionType.UseItem, 2014956u, new Vector3(-20.50371f, 15.1827f, 288.8894f), 1297) + span21[16] = new QuestStep(EInteractionType.UseItem, 2014956u, new Vector3(-20.50371f, 15.1827f, 288.8894f), 1297) { Mount = true, ItemId = 2003778u }; obj38.Steps = list56; reference38 = obj38; - num++; - ref QuestSequence reference42 = ref span52[num]; + ref QuestSequence reference42 = ref span19[3]; QuestSequence obj42 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469798,16 +386316,13 @@ public static class AssemblyQuestLoader num = 1; List list61 = new List(num); CollectionsMarshal.SetCount(list61, num); - Span span61 = CollectionsMarshal.AsSpan(list61); - index = 0; - span61[index] = "WigglyMuffin, CryoTechnic"; + CollectionsMarshal.AsSpan(list61)[0] = "WigglyMuffin, CryoTechnic"; questRoot10.Author = list61; - index = 4; - List list62 = new List(index); - CollectionsMarshal.SetCount(list62, index); - Span span62 = CollectionsMarshal.AsSpan(list62); - num = 0; - ref QuestSequence reference43 = ref span62[num]; + num = 4; + List list62 = new List(num); + CollectionsMarshal.SetCount(list62, num); + Span span25 = CollectionsMarshal.AsSpan(list62); + ref QuestSequence reference43 = ref span25[0]; QuestSequence obj43 = new QuestSequence { Sequence = 0 @@ -469815,9 +386330,7 @@ public static class AssemblyQuestLoader num2 = 1; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - Span span63 = CollectionsMarshal.AsSpan(list63); - index2 = 0; - span63[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list63)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469831,18 +386344,15 @@ public static class AssemblyQuestLoader }; obj43.Steps = list63; reference43 = obj43; - num++; - ref QuestSequence reference44 = ref span62[num]; + ref QuestSequence reference44 = ref span25[1]; QuestSequence obj44 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469856,8 +386366,7 @@ public static class AssemblyQuestLoader }; obj44.Steps = list64; reference44 = obj44; - num++; - ref QuestSequence reference45 = ref span62[num]; + ref QuestSequence reference45 = ref span25[2]; QuestSequence obj45 = new QuestSequence { Sequence = 2 @@ -469865,9 +386374,8 @@ public static class AssemblyQuestLoader num2 = 2; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - span65[index2] = new QuestStep(EInteractionType.Craft, null, null, 1187) + Span span26 = CollectionsMarshal.AsSpan(list65); + span26[0] = new QuestStep(EInteractionType.Craft, null, null, 1187) { ItemId = 46238u, ItemCount = 1, @@ -469879,25 +386387,21 @@ public static class AssemblyQuestLoader } } }; - index2++; - span65[index2] = new QuestStep(EInteractionType.Interact, 1055793u, new Vector3(424.33813f, 118.935005f, 609.308f), 1187) + span26[1] = new QuestStep(EInteractionType.Interact, 1055793u, new Vector3(424.33813f, 118.935005f, 609.308f), 1187) { Fly = true }; obj45.Steps = list65; reference45 = obj45; - num++; - ref QuestSequence reference46 = ref span62[num]; + ref QuestSequence reference46 = ref span25[3]; QuestSequence obj46 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469918,16 +386422,13 @@ public static class AssemblyQuestLoader num = 1; List list67 = new List(num); CollectionsMarshal.SetCount(list67, num); - Span span67 = CollectionsMarshal.AsSpan(list67); - index = 0; - span67[index] = "WigglyMuffin, CryoTechnic"; + CollectionsMarshal.AsSpan(list67)[0] = "WigglyMuffin, CryoTechnic"; questRoot11.Author = list67; - index = 4; - List list68 = new List(index); - CollectionsMarshal.SetCount(list68, index); - Span span68 = CollectionsMarshal.AsSpan(list68); - num = 0; - ref QuestSequence reference47 = ref span68[num]; + num = 4; + List list68 = new List(num); + CollectionsMarshal.SetCount(list68, num); + Span span27 = CollectionsMarshal.AsSpan(list68); + ref QuestSequence reference47 = ref span27[0]; QuestSequence obj47 = new QuestSequence { Sequence = 0 @@ -469935,9 +386436,7 @@ public static class AssemblyQuestLoader num2 = 1; List list69 = new List(num2); CollectionsMarshal.SetCount(list69, num2); - Span span69 = CollectionsMarshal.AsSpan(list69); - index2 = 0; - span69[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list69)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -469951,18 +386450,16 @@ public static class AssemblyQuestLoader }; obj47.Steps = list69; reference47 = obj47; - num++; - ref QuestSequence reference48 = ref span68[num]; + ref QuestSequence reference48 = ref span27[1]; QuestSequence obj48 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list70 = new List(index2); - CollectionsMarshal.SetCount(list70, index2); - Span span70 = CollectionsMarshal.AsSpan(list70); - num2 = 0; - ref QuestStep reference49 = ref span70[num2]; + num2 = 3; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span28 = CollectionsMarshal.AsSpan(list70); + ref QuestStep reference49 = ref span28[0]; QuestStep obj49 = new QuestStep(EInteractionType.Interact, 2014948u, new Vector3(-485.1251f, 49.18068f, -302.4295f), 1187) { Fly = true, @@ -469978,23 +386475,16 @@ public static class AssemblyQuestLoader num3 = 6; List list71 = new List(num3); CollectionsMarshal.SetCount(list71, num3); - 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); + 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); obj49.CompletionQuestVariablesFlags = list71; reference49 = obj49; - num2++; - ref QuestStep reference50 = ref span70[num2]; + ref QuestStep reference50 = ref span28[1]; QuestStep obj50 = new QuestStep(EInteractionType.Interact, 2014949u, new Vector3(-556.6002f, 55.26223f, -305.9056f), 1187) { Fly = true, @@ -470007,26 +386497,19 @@ public static class AssemblyQuestLoader } } }; - 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); + 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); obj50.CompletionQuestVariablesFlags = list72; reference50 = obj50; - num2++; - ref QuestStep reference51 = ref span70[num2]; + ref QuestStep reference51 = ref span28[2]; QuestStep obj51 = new QuestStep(EInteractionType.Interact, 2014947u, new Vector3(-503.3189f, 57.45695f, -196.0937f), 1187) { Fly = true, @@ -470042,25 +386525,18 @@ public static class AssemblyQuestLoader num3 = 6; List list73 = new List(num3); CollectionsMarshal.SetCount(list73, num3); - 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; + 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; obj51.CompletionQuestVariablesFlags = list73; reference51 = obj51; obj48.Steps = list70; reference48 = obj48; - num++; - ref QuestSequence reference52 = ref span68[num]; + ref QuestSequence reference52 = ref span27[2]; QuestSequence obj52 = new QuestSequence { Sequence = 2 @@ -470068,9 +386544,8 @@ public static class AssemblyQuestLoader num2 = 4; List list74 = new List(num2); CollectionsMarshal.SetCount(list74, num2); - Span span74 = CollectionsMarshal.AsSpan(list74); - index2 = 0; - ref QuestStep reference53 = ref span74[index2]; + Span span32 = CollectionsMarshal.AsSpan(list74); + ref QuestStep reference53 = ref span32[0]; QuestStep obj53 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -470079,45 +386554,37 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions6 = new SkipConditions(); SkipStepConditions skipStepConditions6 = new SkipStepConditions(); - index3 = 1; - List list75 = new List(index3); - CollectionsMarshal.SetCount(list75, index3); - Span span75 = CollectionsMarshal.AsSpan(list75); - num3 = 0; - span75[num3] = 1187; + num3 = 1; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + CollectionsMarshal.AsSpan(list75)[0] = 1187; skipStepConditions6.NotInTerritory = list75; skipConditions6.StepIf = skipStepConditions6; obj53.SkipConditions = skipConditions6; reference53 = obj53; - index2++; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.667403f, 0.39999998f, 157.18628f), 1297) + span32[1] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-7.667403f, 0.39999998f, 157.18628f), 1297) { DisableNavmesh = true }; - index2++; - span74[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-81.35781f, 4.0711737f, 162.40425f), 1297) + span32[2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-81.35781f, 4.0711737f, 162.40425f), 1297) { DisableNavmesh = true }; - index2++; - span74[index2] = new QuestStep(EInteractionType.Interact, 1055794u, new Vector3(-92.729065f, 4.071174f, 172.07593f), 1297) + span32[3] = new QuestStep(EInteractionType.Interact, 1055794u, new Vector3(-92.729065f, 4.071174f, 172.07593f), 1297) { Fly = true }; obj52.Steps = list74; reference52 = obj52; - num++; - ref QuestSequence reference54 = ref span68[num]; + ref QuestSequence reference54 = ref span27[3]; QuestSequence obj54 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470138,16 +386605,13 @@ public static class AssemblyQuestLoader num = 1; List list77 = new List(num); CollectionsMarshal.SetCount(list77, num); - Span span77 = CollectionsMarshal.AsSpan(list77); - index = 0; - span77[index] = "WigglyMuffin, CryoTechnic"; + CollectionsMarshal.AsSpan(list77)[0] = "WigglyMuffin, CryoTechnic"; questRoot12.Author = list77; - index = 4; - List list78 = new List(index); - CollectionsMarshal.SetCount(list78, index); - Span span78 = CollectionsMarshal.AsSpan(list78); - num = 0; - ref QuestSequence reference55 = ref span78[num]; + num = 4; + List list78 = new List(num); + CollectionsMarshal.SetCount(list78, num); + Span span33 = CollectionsMarshal.AsSpan(list78); + ref QuestSequence reference55 = ref span33[0]; QuestSequence obj55 = new QuestSequence { Sequence = 0 @@ -470155,9 +386619,7 @@ public static class AssemblyQuestLoader num2 = 1; List list79 = new List(num2); CollectionsMarshal.SetCount(list79, num2); - Span span79 = CollectionsMarshal.AsSpan(list79); - index2 = 0; - span79[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list79)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470171,18 +386633,16 @@ public static class AssemblyQuestLoader }; obj55.Steps = list79; reference55 = obj55; - num++; - ref QuestSequence reference56 = ref span78[num]; + ref QuestSequence reference56 = ref span33[1]; QuestSequence obj56 = new QuestSequence { Sequence = 1 }; - index2 = 2; - List list80 = new List(index2); - CollectionsMarshal.SetCount(list80, index2); - Span span80 = CollectionsMarshal.AsSpan(list80); - num2 = 0; - ref QuestStep reference57 = ref span80[num2]; + num2 = 2; + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + Span span34 = CollectionsMarshal.AsSpan(list80); + ref QuestStep reference57 = ref span34[0]; QuestStep obj57 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297 @@ -470192,19 +386652,15 @@ public static class AssemblyQuestLoader num3 = 1; List list81 = new List(num3); CollectionsMarshal.SetCount(list81, num3); - Span span81 = CollectionsMarshal.AsSpan(list81); - index3 = 0; - span81[index3] = 1187; + CollectionsMarshal.AsSpan(list81)[0] = 1187; skipStepConditions7.NotInTerritory = list81; skipConditions7.StepIf = skipStepConditions7; obj57.SkipConditions = skipConditions7; reference57 = obj57; - num2++; - span80[num2] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); + span34[1] = new QuestStep(EInteractionType.Interact, 1055802u, new Vector3(74.75391f, 1.8866259f, 50.369995f), 1297); obj56.Steps = list80; reference56 = obj56; - num++; - ref QuestSequence reference58 = ref span78[num]; + ref QuestSequence reference58 = ref span33[2]; QuestSequence obj58 = new QuestSequence { Sequence = 2 @@ -470212,9 +386668,8 @@ public static class AssemblyQuestLoader num2 = 2; List list82 = new List(num2); CollectionsMarshal.SetCount(list82, num2); - Span span82 = CollectionsMarshal.AsSpan(list82); - index2 = 0; - span82[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span35 = CollectionsMarshal.AsSpan(list82); + span35[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46240u, ItemCount = 4, @@ -470226,22 +386681,18 @@ public static class AssemblyQuestLoader } } }; - index2++; - span82[index2] = new QuestStep(EInteractionType.Interact, 1055795u, new Vector3(76.98169f, 3.871f, 20.248657f), 1297); + span35[1] = new QuestStep(EInteractionType.Interact, 1055795u, new Vector3(76.98169f, 3.871f, 20.248657f), 1297); obj58.Steps = list82; reference58 = obj58; - num++; - ref QuestSequence reference59 = ref span78[num]; + ref QuestSequence reference59 = ref span33[3]; QuestSequence obj59 = 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, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470262,16 +386713,13 @@ public static class AssemblyQuestLoader num = 1; List list84 = new List(num); CollectionsMarshal.SetCount(list84, num); - Span span84 = CollectionsMarshal.AsSpan(list84); - index = 0; - span84[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list84)[0] = "WigglyMuffin"; questRoot13.Author = list84; - index = 4; - List list85 = new List(index); - CollectionsMarshal.SetCount(list85, index); - Span span85 = CollectionsMarshal.AsSpan(list85); - num = 0; - ref QuestSequence reference60 = ref span85[num]; + num = 4; + List list85 = new List(num); + CollectionsMarshal.SetCount(list85, num); + Span span36 = CollectionsMarshal.AsSpan(list85); + ref QuestSequence reference60 = ref span36[0]; QuestSequence obj60 = new QuestSequence { Sequence = 0 @@ -470279,9 +386727,7 @@ public static class AssemblyQuestLoader num2 = 1; List list86 = new List(num2); CollectionsMarshal.SetCount(list86, num2); - Span span86 = CollectionsMarshal.AsSpan(list86); - index2 = 0; - span86[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list86)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470295,18 +386741,16 @@ public static class AssemblyQuestLoader }; obj60.Steps = list86; reference60 = obj60; - num++; - ref QuestSequence reference61 = ref span85[num]; + ref QuestSequence reference61 = ref span36[1]; QuestSequence obj61 = new QuestSequence { Sequence = 1 }; - index2 = 4; - List list87 = new List(index2); - CollectionsMarshal.SetCount(list87, index2); - Span span87 = CollectionsMarshal.AsSpan(list87); - num2 = 0; - ref QuestStep reference62 = ref span87[num2]; + num2 = 4; + List list87 = new List(num2); + CollectionsMarshal.SetCount(list87, num2); + Span span37 = CollectionsMarshal.AsSpan(list87); + ref QuestStep reference62 = ref span37[0]; QuestStep obj62 = new QuestStep(EInteractionType.Interact, 1054640u, new Vector3(496.11658f, 142.24991f, 801.6022f), 1187) { TargetTerritoryId = (ushort)1297, @@ -470314,26 +386758,20 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions8 = new SkipConditions(); SkipStepConditions skipStepConditions8 = new SkipStepConditions(); - index3 = 1; - List list88 = new List(index3); - CollectionsMarshal.SetCount(list88, index3); - Span span88 = CollectionsMarshal.AsSpan(list88); - num3 = 0; - span88[num3] = 1187; + num3 = 1; + List list88 = new List(num3); + CollectionsMarshal.SetCount(list88, num3); + CollectionsMarshal.AsSpan(list88)[0] = 1187; skipStepConditions8.NotInTerritory = list88; skipConditions8.StepIf = skipStepConditions8; obj62.SkipConditions = skipConditions8; reference62 = obj62; - 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); + 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); obj61.Steps = list87; reference61 = obj61; - num++; - ref QuestSequence reference63 = ref span85[num]; + ref QuestSequence reference63 = ref span36[2]; QuestSequence obj63 = new QuestSequence { Sequence = 2 @@ -470341,9 +386779,8 @@ public static class AssemblyQuestLoader num2 = 4; List list89 = new List(num2); CollectionsMarshal.SetCount(list89, num2); - Span span89 = CollectionsMarshal.AsSpan(list89); - index2 = 0; - span89[index2] = new QuestStep(EInteractionType.Craft, null, null, 1297) + Span span38 = CollectionsMarshal.AsSpan(list89); + span38[0] = new QuestStep(EInteractionType.Craft, null, null, 1297) { ItemId = 46242u, ItemCount = 1, @@ -470355,29 +386792,23 @@ public static class AssemblyQuestLoader } } }; - 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) + 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) { DisableNavmesh = true }; obj63.Steps = list89; reference63 = obj63; - num++; - ref QuestSequence reference64 = ref span85[num]; + ref QuestSequence reference64 = ref span36[3]; QuestSequence obj64 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470398,16 +386829,13 @@ public static class AssemblyQuestLoader num = 1; List list91 = new List(num); CollectionsMarshal.SetCount(list91, num); - Span span91 = CollectionsMarshal.AsSpan(list91); - index = 0; - span91[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list91)[0] = "WigglyMuffin"; questRoot14.Author = list91; - index = 3; - List list92 = new List(index); - CollectionsMarshal.SetCount(list92, index); - Span span92 = CollectionsMarshal.AsSpan(list92); - num = 0; - ref QuestSequence reference65 = ref span92[num]; + num = 3; + List list92 = new List(num); + CollectionsMarshal.SetCount(list92, num); + Span span39 = CollectionsMarshal.AsSpan(list92); + ref QuestSequence reference65 = ref span39[0]; QuestSequence obj65 = new QuestSequence { Sequence = 0 @@ -470415,9 +386843,7 @@ public static class AssemblyQuestLoader num2 = 1; List list93 = new List(num2); CollectionsMarshal.SetCount(list93, num2); - Span span93 = CollectionsMarshal.AsSpan(list93); - index2 = 0; - span93[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list93)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470431,18 +386857,16 @@ public static class AssemblyQuestLoader }; obj65.Steps = list93; reference65 = obj65; - num++; - ref QuestSequence reference66 = ref span92[num]; + ref QuestSequence reference66 = ref span39[1]; QuestSequence obj66 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, @@ -470459,15 +386883,12 @@ public static class AssemblyQuestLoader } } }; - num2++; - ref QuestStep reference67 = ref span94[num2]; + ref QuestStep reference67 = ref span40[1]; 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); - Span span95 = CollectionsMarshal.AsSpan(list95); - index3 = 0; - span95[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list95)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_BANYOK128_05363_Q1_000_000"), @@ -470477,8 +386898,7 @@ public static class AssemblyQuestLoader reference67 = questStep; obj66.Steps = list94; reference66 = obj66; - num++; - ref QuestSequence reference68 = ref span92[num]; + ref QuestSequence reference68 = ref span39[2]; QuestSequence obj67 = new QuestSequence { Sequence = byte.MaxValue @@ -470486,9 +386906,7 @@ public static class AssemblyQuestLoader num2 = 1; List list96 = new List(num2); CollectionsMarshal.SetCount(list96, num2); - Span span96 = CollectionsMarshal.AsSpan(list96); - index2 = 0; - span96[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) + CollectionsMarshal.AsSpan(list96)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054635u, new Vector3(493.2173f, 142.24991f, 783.0471f), 1187) { Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, @@ -470514,26 +386932,22 @@ public static class AssemblyQuestLoader num = 1; List list97 = new List(num); CollectionsMarshal.SetCount(list97, num); - Span span97 = CollectionsMarshal.AsSpan(list97); - index = 0; - span97[index] = "liza"; + CollectionsMarshal.AsSpan(list97)[0] = "liza"; questRoot15.Author = list97; - index = 7; - List list98 = new List(index); - CollectionsMarshal.SetCount(list98, index); - Span span98 = CollectionsMarshal.AsSpan(list98); - num = 0; - ref QuestSequence reference69 = ref span98[num]; + num = 7; + List list98 = new List(num); + CollectionsMarshal.SetCount(list98, num); + Span span41 = CollectionsMarshal.AsSpan(list98); + ref QuestSequence reference69 = ref span41[0]; QuestSequence obj68 = new QuestSequence { Sequence = 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]; + num2 = 2; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + Span span42 = CollectionsMarshal.AsSpan(list99); + ref QuestStep reference70 = ref span42[0]; QuestStep obj69 = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, @@ -470546,12 +386960,10 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions9 = new SkipConditions(); SkipStepConditions skipStepConditions9 = new SkipStepConditions(); - index3 = 1; - List list100 = new List(index3); - CollectionsMarshal.SetCount(list100, index3); - Span span100 = CollectionsMarshal.AsSpan(list100); - num3 = 0; - span100[num3] = 1207; + num3 = 1; + List list100 = new List(num3); + CollectionsMarshal.SetCount(list100, num3); + CollectionsMarshal.AsSpan(list100)[0] = 1207; skipStepConditions9.InTerritory = list100; skipConditions9.StepIf = skipStepConditions9; SkipAetheryteCondition obj70 = new SkipAetheryteCondition @@ -470561,19 +386973,15 @@ public static class AssemblyQuestLoader num3 = 1; List list101 = new List(num3); CollectionsMarshal.SetCount(list101, num3); - Span span101 = CollectionsMarshal.AsSpan(list101); - index3 = 0; - span101[index3] = 1207; + CollectionsMarshal.AsSpan(list101)[0] = 1207; obj70.InTerritory = list101; skipConditions9.AetheryteShortcutIf = obj70; obj69.SkipConditions = skipConditions9; reference70 = obj69; - num2++; - span99[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); + span42[1] = new QuestStep(EInteractionType.AcceptQuest, 1048161u, new Vector3(-5.874817f, -3.6188258E-08f, 6.8512573f), 1207); obj68.Steps = list99; reference69 = obj68; - num++; - ref QuestSequence reference71 = ref span98[num]; + ref QuestSequence reference71 = ref span41[1]; QuestSequence obj71 = new QuestSequence { Sequence = 1 @@ -470581,45 +386989,37 @@ public static class AssemblyQuestLoader num2 = 2; List list102 = new List(num2); CollectionsMarshal.SetCount(list102, num2); - Span span102 = CollectionsMarshal.AsSpan(list102); - index2 = 0; - ref QuestStep reference72 = ref span102[index2]; + Span span43 = CollectionsMarshal.AsSpan(list102); + ref QuestStep reference72 = ref span43[0]; 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(); - index3 = 1; - List list103 = new List(index3); - CollectionsMarshal.SetCount(list103, index3); - Span span103 = CollectionsMarshal.AsSpan(list103); - num3 = 0; - span103[num3] = 1207; + num3 = 1; + List list103 = new List(num3); + CollectionsMarshal.SetCount(list103, num3); + CollectionsMarshal.AsSpan(list103)[0] = 1207; skipStepConditions10.NotInTerritory = list103; skipConditions10.StepIf = skipStepConditions10; obj72.SkipConditions = skipConditions10; reference72 = obj72; - index2++; - span102[index2] = new QuestStep(EInteractionType.Interact, 1054503u, new Vector3(291.4015f, 50.749996f, 155.19946f), 1186); + span43[1] = new QuestStep(EInteractionType.Interact, 1054503u, new Vector3(291.4015f, 50.749996f, 155.19946f), 1186); obj71.Steps = list102; reference71 = obj71; - num++; - ref QuestSequence reference73 = ref span98[num]; + ref QuestSequence reference73 = ref span41[2]; QuestSequence obj73 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj73.Steps = list104; reference73 = obj73; - num++; - ref QuestSequence reference74 = ref span98[num]; + ref QuestSequence reference74 = ref span41[3]; QuestSequence obj74 = new QuestSequence { Sequence = 3 @@ -470627,75 +387027,52 @@ public static class AssemblyQuestLoader num2 = 3; List list105 = new List(num2); CollectionsMarshal.SetCount(list105, num2); - Span span105 = CollectionsMarshal.AsSpan(list105); - index2 = 0; - ref QuestStep reference75 = ref span105[index2]; + Span span44 = CollectionsMarshal.AsSpan(list105); + ref QuestStep reference75 = ref span44[0]; 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 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); + 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); questStep2.CompletionQuestVariablesFlags = list106; reference75 = questStep2; - index2++; - ref QuestStep reference76 = ref span105[index2]; + ref QuestStep reference76 = ref span44[1]; QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 1056090u, new Vector3(341.26794f, 50.75f, 146.68494f), 1186); - 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); + 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); questStep3.CompletionQuestVariablesFlags = list107; reference76 = questStep3; - index2++; - ref QuestStep reference77 = ref span105[index2]; + ref QuestStep reference77 = ref span44[2]; 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 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); + 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); questStep4.CompletionQuestVariablesFlags = list108; - index3 = 1; - List list109 = new List(index3); - CollectionsMarshal.SetCount(list109, index3); - Span span109 = CollectionsMarshal.AsSpan(list109); - num3 = 0; - span109[num3] = new DialogueChoice + num3 = 1; + List list109 = new List(num3); + CollectionsMarshal.SetCount(list109, num3); + CollectionsMarshal.AsSpan(list109)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI101_05364_Q3_000_000"), @@ -470705,62 +387082,46 @@ public static class AssemblyQuestLoader reference77 = questStep4; obj74.Steps = list105; reference74 = obj74; - num++; - ref QuestSequence reference78 = ref span98[num]; + ref QuestSequence reference78 = ref span41[4]; QuestSequence obj75 = new QuestSequence { Sequence = 4 }; - index2 = 2; - List list110 = new List(index2); - CollectionsMarshal.SetCount(list110, index2); - Span span110 = CollectionsMarshal.AsSpan(list110); - num2 = 0; - ref QuestStep reference79 = ref span110[num2]; + num2 = 2; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + Span span48 = CollectionsMarshal.AsSpan(list110); + ref QuestStep reference79 = ref span48[0]; 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 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); + 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); questStep5.CompletionQuestVariablesFlags = list111; reference79 = questStep5; - num2++; - ref QuestStep reference80 = ref span110[num2]; + ref QuestStep reference80 = ref span48[1]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1054506u, new Vector3(465.44592f, 59.999886f, 196.58191f), 1186); - 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); + 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); questStep6.CompletionQuestVariablesFlags = list112; reference80 = questStep6; obj75.Steps = list110; reference78 = obj75; - num++; - ref QuestSequence reference81 = ref span98[num]; + ref QuestSequence reference81 = ref span41[5]; QuestSequence obj76 = new QuestSequence { Sequence = 5 @@ -470768,27 +387129,21 @@ public static class AssemblyQuestLoader num2 = 3; List list113 = new List(num2); CollectionsMarshal.SetCount(list113, num2); - 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); + 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); obj76.Steps = list113; reference81 = obj76; - num++; - ref QuestSequence reference82 = ref span98[num]; + ref QuestSequence reference82 = ref span41[6]; QuestSequence obj77 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -470801,16 +387156,13 @@ public static class AssemblyQuestLoader num = 1; List list115 = new List(num); CollectionsMarshal.SetCount(list115, num); - Span span115 = CollectionsMarshal.AsSpan(list115); - index = 0; - span115[index] = "liza"; + CollectionsMarshal.AsSpan(list115)[0] = "liza"; questRoot16.Author = list115; - index = 6; - List list116 = new List(index); - CollectionsMarshal.SetCount(list116, index); - Span span116 = CollectionsMarshal.AsSpan(list116); - num = 0; - ref QuestSequence reference83 = ref span116[num]; + num = 6; + List list116 = new List(num); + CollectionsMarshal.SetCount(list116, num); + Span span52 = CollectionsMarshal.AsSpan(list116); + ref QuestSequence reference83 = ref span52[0]; QuestSequence obj78 = new QuestSequence { Sequence = 0 @@ -470818,37 +387170,30 @@ public static class AssemblyQuestLoader num2 = 1; List list117 = new List(num2); CollectionsMarshal.SetCount(list117, num2); - Span span117 = CollectionsMarshal.AsSpan(list117); - index2 = 0; - span117[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) + CollectionsMarshal.AsSpan(list117)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054514u, new Vector3(-404.4709f, 13.699978f, 239.00195f), 1186) { StopDistance = 7f }; obj78.Steps = list117; reference83 = obj78; - num++; - ref QuestSequence reference84 = ref span116[num]; + ref QuestSequence reference84 = ref span52[1]; QuestSequence obj79 = new QuestSequence { Sequence = 1 }; - 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) + 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) { DisableNavmesh = true }; - num2++; - span118[num2] = new QuestStep(EInteractionType.Interact, 1054518u, new Vector3(-368.00183f, 14f, 228.90051f), 1186); + span53[2] = new QuestStep(EInteractionType.Interact, 1054518u, new Vector3(-368.00183f, 14f, 228.90051f), 1186); obj79.Steps = list118; reference84 = obj79; - num++; - ref QuestSequence reference85 = ref span116[num]; + ref QuestSequence reference85 = ref span52[2]; QuestSequence obj80 = new QuestSequence { Sequence = 2 @@ -470856,27 +387201,21 @@ public static class AssemblyQuestLoader num2 = 1; List list119 = new List(num2); CollectionsMarshal.SetCount(list119, num2); - Span span119 = CollectionsMarshal.AsSpan(list119); - index2 = 0; - span119[index2] = new QuestStep(EInteractionType.Interact, 2014833u, new Vector3(-328.48102f, 13.992493f, 161.24207f), 1186); + CollectionsMarshal.AsSpan(list119)[0] = new QuestStep(EInteractionType.Interact, 2014833u, new Vector3(-328.48102f, 13.992493f, 161.24207f), 1186); obj80.Steps = list119; reference85 = obj80; - num++; - ref QuestSequence reference86 = ref span116[num]; + ref QuestSequence reference86 = ref span52[3]; QuestSequence obj81 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj81.Steps = list120; reference86 = obj81; - num++; - ref QuestSequence reference87 = ref span116[num]; + ref QuestSequence reference87 = ref span52[4]; QuestSequence obj82 = new QuestSequence { Sequence = 4 @@ -470884,23 +387223,18 @@ public static class AssemblyQuestLoader num2 = 1; List list121 = new List(num2); CollectionsMarshal.SetCount(list121, num2); - Span span121 = CollectionsMarshal.AsSpan(list121); - index2 = 0; - span121[index2] = new QuestStep(EInteractionType.Interact, 2014835u, new Vector3(-141.31384f, 2.1820068f, 212.9701f), 1186); + CollectionsMarshal.AsSpan(list121)[0] = new QuestStep(EInteractionType.Interact, 2014835u, new Vector3(-141.31384f, 2.1820068f, 212.9701f), 1186); obj82.Steps = list121; reference87 = obj82; - num++; - ref QuestSequence reference88 = ref span116[num]; + ref QuestSequence reference88 = ref span52[5]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj83.Steps = list122; reference88 = obj83; questRoot16.QuestSequence = list116; @@ -470910,16 +387244,13 @@ public static class AssemblyQuestLoader num = 1; List list123 = new List(num); CollectionsMarshal.SetCount(list123, num); - Span span123 = CollectionsMarshal.AsSpan(list123); - index = 0; - span123[index] = "liza"; + CollectionsMarshal.AsSpan(list123)[0] = "liza"; questRoot17.Author = list123; - index = 9; - List list124 = new List(index); - CollectionsMarshal.SetCount(list124, index); - Span span124 = CollectionsMarshal.AsSpan(list124); - num = 0; - ref QuestSequence reference89 = ref span124[num]; + num = 9; + List list124 = new List(num); + CollectionsMarshal.SetCount(list124, num); + Span span54 = CollectionsMarshal.AsSpan(list124); + ref QuestSequence reference89 = ref span54[0]; QuestSequence obj84 = new QuestSequence { Sequence = 0 @@ -470927,30 +387258,24 @@ public static class AssemblyQuestLoader num2 = 1; List list125 = new List(num2); CollectionsMarshal.SetCount(list125, num2); - Span span125 = CollectionsMarshal.AsSpan(list125); - index2 = 0; - span125[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); + CollectionsMarshal.AsSpan(list125)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054529u, new Vector3(-134.53882f, 19.699795f, 382.77246f), 1186); obj84.Steps = list125; reference89 = obj84; - num++; - ref QuestSequence reference90 = ref span124[num]; + ref QuestSequence reference90 = ref span54[1]; QuestSequence obj85 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 7f }; obj85.Steps = list126; reference90 = obj85; - num++; - ref QuestSequence reference91 = ref span124[num]; + ref QuestSequence reference91 = ref span54[2]; QuestSequence obj86 = new QuestSequence { Sequence = 2 @@ -470958,30 +387283,24 @@ public static class AssemblyQuestLoader num2 = 1; List list127 = new List(num2); CollectionsMarshal.SetCount(list127, num2); - Span span127 = CollectionsMarshal.AsSpan(list127); - index2 = 0; - span127[index2] = new QuestStep(EInteractionType.Interact, 1054536u, new Vector3(-5.1728516f, -4.656613E-08f, 7.1869507f), 1207) + CollectionsMarshal.AsSpan(list127)[0] = new QuestStep(EInteractionType.Interact, 1054536u, new Vector3(-5.1728516f, -4.656613E-08f, 7.1869507f), 1207) { StopDistance = 7f }; obj86.Steps = list127; reference91 = obj86; - num++; - ref QuestSequence reference92 = ref span124[num]; + ref QuestSequence reference92 = ref span54[3]; QuestSequence obj87 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj87.Steps = list128; reference92 = obj87; - num++; - ref QuestSequence reference93 = ref span124[num]; + ref QuestSequence reference93 = ref span54[4]; QuestSequence obj88 = new QuestSequence { Sequence = 4 @@ -470989,16 +387308,12 @@ public static class AssemblyQuestLoader num2 = 1; List list129 = new List(num2); CollectionsMarshal.SetCount(list129, num2); - Span span129 = CollectionsMarshal.AsSpan(list129); - index2 = 0; - ref QuestStep reference94 = ref span129[index2]; + ref QuestStep reference94 = ref CollectionsMarshal.AsSpan(list129)[0]; 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); - Span span130 = CollectionsMarshal.AsSpan(list130); - index3 = 0; - span130[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list130)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI103_05366_SYSTEM_000_081") @@ -471007,35 +387322,29 @@ public static class AssemblyQuestLoader reference94 = questStep7; obj88.Steps = list129; reference93 = obj88; - num++; - ref QuestSequence reference95 = ref span124[num]; + ref QuestSequence reference95 = ref span54[5]; QuestSequence obj89 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list131 = new List(index2); - CollectionsMarshal.SetCount(list131, index2); - Span span131 = CollectionsMarshal.AsSpan(list131); - num2 = 0; - ref QuestStep reference96 = ref span131[num2]; + num2 = 1; + List list131 = new List(num2); + CollectionsMarshal.SetCount(list131, num2); + ref QuestStep reference96 = ref CollectionsMarshal.AsSpan(list131)[0]; QuestStep obj90 = new QuestStep(EInteractionType.Combat, null, new Vector3(219.38443f, 57.060833f, -661.6021f), 1191) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea }; - index3 = 1; - List list132 = new List(index3); - CollectionsMarshal.SetCount(list132, index3); - Span span132 = CollectionsMarshal.AsSpan(list132); - num3 = 0; - span132[num3] = 18915u; + num3 = 1; + List list132 = new List(num3); + CollectionsMarshal.SetCount(list132, num3); + CollectionsMarshal.AsSpan(list132)[0] = 18915u; obj90.KillEnemyDataIds = list132; reference96 = obj90; obj89.Steps = list131; reference95 = obj89; - num++; - ref QuestSequence reference97 = ref span124[num]; + ref QuestSequence reference97 = ref span54[6]; QuestSequence obj91 = new QuestSequence { Sequence = 6 @@ -471043,28 +387352,22 @@ public static class AssemblyQuestLoader num2 = 1; List list133 = new List(num2); CollectionsMarshal.SetCount(list133, num2); - Span span133 = CollectionsMarshal.AsSpan(list133); - index2 = 0; - span133[index2] = new QuestStep(EInteractionType.Interact, 1054544u, new Vector3(210.40662f, 57.66854f, -651.3619f), 1191); + CollectionsMarshal.AsSpan(list133)[0] = new QuestStep(EInteractionType.Interact, 1054544u, new Vector3(210.40662f, 57.66854f, -651.3619f), 1191); obj91.Steps = list133; reference97 = obj91; - num++; - span124[num] = new QuestSequence + span54[7] = new QuestSequence { Sequence = 7 }; - num++; - ref QuestSequence reference98 = ref span124[num]; + ref QuestSequence reference98 = ref span54[8]; QuestSequence obj92 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { StopDistance = 7f }; @@ -471077,16 +387380,13 @@ public static class AssemblyQuestLoader num = 1; List list135 = new List(num); CollectionsMarshal.SetCount(list135, num); - Span span135 = CollectionsMarshal.AsSpan(list135); - index = 0; - span135[index] = "liza"; + CollectionsMarshal.AsSpan(list135)[0] = "liza"; questRoot18.Author = list135; - index = 6; - List list136 = new List(index); - CollectionsMarshal.SetCount(list136, index); - Span span136 = CollectionsMarshal.AsSpan(list136); - num = 0; - ref QuestSequence reference99 = ref span136[num]; + num = 6; + List list136 = new List(num); + CollectionsMarshal.SetCount(list136, num); + Span span55 = CollectionsMarshal.AsSpan(list136); + ref QuestSequence reference99 = ref span55[0]; QuestSequence obj93 = new QuestSequence { Sequence = 0 @@ -471094,30 +387394,24 @@ public static class AssemblyQuestLoader num2 = 1; List list137 = new List(num2); CollectionsMarshal.SetCount(list137, num2); - Span span137 = CollectionsMarshal.AsSpan(list137); - index2 = 0; - span137[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171); + CollectionsMarshal.AsSpan(list137)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054545u, new Vector3(6.6071167f, 0.37129992f, -18.570251f), 1171); obj93.Steps = list137; reference99 = obj93; - num++; - ref QuestSequence reference100 = ref span136[num]; + ref QuestSequence reference100 = ref span55[1]; QuestSequence obj94 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts }; obj94.Steps = list138; reference100 = obj94; - num++; - ref QuestSequence reference101 = ref span136[num]; + ref QuestSequence reference101 = ref span55[2]; QuestSequence obj95 = new QuestSequence { Sequence = 2 @@ -471125,9 +387419,8 @@ public static class AssemblyQuestLoader num2 = 3; List list139 = new List(num2); CollectionsMarshal.SetCount(list139, num2); - Span span139 = CollectionsMarshal.AsSpan(list139); - index2 = 0; - ref QuestStep reference102 = ref span139[index2]; + Span span56 = CollectionsMarshal.AsSpan(list139); + ref QuestStep reference102 = ref span56[0]; QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1054549u, new Vector3(-303.8529f, 33.89061f, -546.7765f), 1191) { Fly = true @@ -471135,47 +387428,33 @@ public static class AssemblyQuestLoader num3 = 6; List list140 = new List(num3); CollectionsMarshal.SetCount(list140, num3); - 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); + 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); obj96.CompletionQuestVariablesFlags = list140; reference102 = obj96; - index2++; - ref QuestStep reference103 = ref span139[index2]; + ref QuestStep reference103 = ref span56[1]; QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1054548u, new Vector3(-182.97095f, 28f, -570.0313f), 1191) { Fly = true }; - 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); + 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); obj97.CompletionQuestVariablesFlags = list141; reference103 = obj97; - index2++; - ref QuestStep reference104 = ref span139[index2]; + ref QuestStep reference104 = ref span56[2]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1054547u, new Vector3(-111.49768f, 42.99968f, -658.7778f), 1191) { Fly = true @@ -471183,45 +387462,34 @@ public static class AssemblyQuestLoader num3 = 6; List list142 = new List(num3); CollectionsMarshal.SetCount(list142, num3); - 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); + 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); obj98.CompletionQuestVariablesFlags = list142; reference104 = obj98; obj95.Steps = list139; reference101 = obj95; - num++; - ref QuestSequence reference105 = ref span136[num]; + ref QuestSequence reference105 = ref span55[3]; QuestSequence obj99 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list143 = new List(index2); - CollectionsMarshal.SetCount(list143, index2); - Span span143 = CollectionsMarshal.AsSpan(list143); - num2 = 0; - ref QuestStep reference106 = ref span143[num2]; + num2 = 1; + List list143 = new List(num2); + CollectionsMarshal.SetCount(list143, num2); + ref QuestStep reference106 = ref CollectionsMarshal.AsSpan(list143)[0]; QuestStep obj100 = new QuestStep(EInteractionType.Interact, 1054546u, new Vector3(-240.77216f, 30f, -597.345f), 1191) { Fly = true }; - index3 = 1; - List list144 = new List(index3); - CollectionsMarshal.SetCount(list144, index3); - Span span144 = CollectionsMarshal.AsSpan(list144); - num3 = 0; - span144[num3] = new DialogueChoice + num3 = 1; + List list144 = new List(num3); + CollectionsMarshal.SetCount(list144, num3); + CollectionsMarshal.AsSpan(list144)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI104_05367_Q1_000_000"), @@ -471231,13 +387499,11 @@ public static class AssemblyQuestLoader reference106 = obj100; obj99.Steps = list143; reference105 = obj99; - num++; - span136[num] = new QuestSequence + span55[4] = new QuestSequence { Sequence = 4 }; - num++; - ref QuestSequence reference107 = ref span136[num]; + ref QuestSequence reference107 = ref span55[5]; QuestSequence obj101 = new QuestSequence { Sequence = byte.MaxValue @@ -471245,9 +387511,7 @@ public static class AssemblyQuestLoader num2 = 1; List list145 = new List(num2); CollectionsMarshal.SetCount(list145, num2); - Span span145 = CollectionsMarshal.AsSpan(list145); - index2 = 0; - span145[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054550u, new Vector3(-24.307678f, 38.806587f, -411.2459f), 1186) + CollectionsMarshal.AsSpan(list145)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054550u, new Vector3(-24.307678f, 38.806587f, -411.2459f), 1186) { StopDistance = 7f }; @@ -471260,33 +387524,27 @@ public static class AssemblyQuestLoader num = 1; List list146 = new List(num); CollectionsMarshal.SetCount(list146, num); - Span span146 = CollectionsMarshal.AsSpan(list146); - index = 0; - span146[index] = "liza"; + CollectionsMarshal.AsSpan(list146)[0] = "liza"; questRoot19.Author = list146; - index = 13; - List list147 = new List(index); - CollectionsMarshal.SetCount(list147, index); - Span span147 = CollectionsMarshal.AsSpan(list147); - num = 0; - ref QuestSequence reference108 = ref span147[num]; + num = 13; + List list147 = new List(num); + CollectionsMarshal.SetCount(list147, num); + Span span60 = CollectionsMarshal.AsSpan(list147); + ref QuestSequence reference108 = ref span60[0]; QuestSequence obj102 = new QuestSequence { Sequence = 0 }; - 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) + 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) { StopDistance = 7f }; obj102.Steps = list148; reference108 = obj102; - num++; - ref QuestSequence reference109 = ref span147[num]; + ref QuestSequence reference109 = ref span60[1]; QuestSequence obj103 = new QuestSequence { Sequence = 1 @@ -471294,16 +387552,12 @@ public static class AssemblyQuestLoader num2 = 1; List list149 = new List(num2); CollectionsMarshal.SetCount(list149, num2); - Span span149 = CollectionsMarshal.AsSpan(list149); - index2 = 0; - ref QuestStep reference110 = ref span149[index2]; + ref QuestStep reference110 = ref CollectionsMarshal.AsSpan(list149)[0]; 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); - Span span150 = CollectionsMarshal.AsSpan(list150); - index3 = 0; - span150[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list150)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_000_061") @@ -471312,30 +387566,24 @@ public static class AssemblyQuestLoader reference110 = questStep8; obj103.Steps = list149; reference109 = obj103; - num++; - span147[num] = new QuestSequence + span60[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference111 = ref span147[num]; + ref QuestSequence reference111 = ref span60[3]; QuestSequence obj104 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list151 = new List(index2); - CollectionsMarshal.SetCount(list151, index2); - Span span151 = CollectionsMarshal.AsSpan(list151); - num2 = 0; - ref QuestStep reference112 = ref span151[num2]; + num2 = 1; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + ref QuestStep reference112 = ref CollectionsMarshal.AsSpan(list151)[0]; QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 2014877u, new Vector3(-53.76658f, 0.4967778f, 10.78857f), 1299); - index3 = 1; - List list152 = new List(index3); - CollectionsMarshal.SetCount(list152, index3); - Span span152 = CollectionsMarshal.AsSpan(list152); - num3 = 0; - span152[num3] = new DialogueChoice + num3 = 1; + List list152 = new List(num3); + CollectionsMarshal.SetCount(list152, num3); + CollectionsMarshal.AsSpan(list152)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_000_117") @@ -471344,8 +387592,7 @@ public static class AssemblyQuestLoader reference112 = questStep9; obj104.Steps = list151; reference111 = obj104; - num++; - ref QuestSequence reference113 = ref span147[num]; + ref QuestSequence reference113 = ref span60[4]; QuestSequence obj105 = new QuestSequence { Sequence = 4 @@ -471353,33 +387600,27 @@ public static class AssemblyQuestLoader num2 = 1; List list153 = new List(num2); CollectionsMarshal.SetCount(list153, num2); - Span span153 = CollectionsMarshal.AsSpan(list153); - index2 = 0; - span153[index2] = new QuestStep(EInteractionType.UseItem, 2014879u, new Vector3(-31.18711f, 1.386986f, 14.38922f), 1299) + CollectionsMarshal.AsSpan(list153)[0] = new QuestStep(EInteractionType.UseItem, 2014879u, new Vector3(-31.18711f, 1.386986f, 14.38922f), 1299) { ItemId = 2003767u }; obj105.Steps = list153; reference113 = obj105; - num++; - ref QuestSequence reference114 = ref span147[num]; + ref QuestSequence reference114 = ref span60[5]; QuestSequence obj106 = new QuestSequence { Sequence = 5 }; - 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) + 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) { ItemId = 2003789u }; obj106.Steps = list154; reference114 = obj106; - num++; - ref QuestSequence reference115 = ref span147[num]; + ref QuestSequence reference115 = ref span60[6]; QuestSequence obj107 = new QuestSequence { Sequence = 6 @@ -471387,57 +387628,43 @@ public static class AssemblyQuestLoader num2 = 1; List list155 = new List(num2); CollectionsMarshal.SetCount(list155, num2); - Span span155 = CollectionsMarshal.AsSpan(list155); - index2 = 0; - span155[index2] = new QuestStep(EInteractionType.Interact, 1054888u, new Vector3(-9.079163f, 0.9997301f, -45.731323f), 1299); + CollectionsMarshal.AsSpan(list155)[0] = new QuestStep(EInteractionType.Interact, 1054888u, new Vector3(-9.079163f, 0.9997301f, -45.731323f), 1299); obj107.Steps = list155; reference115 = obj107; - num++; - ref QuestSequence reference116 = ref span147[num]; + ref QuestSequence reference116 = ref span60[7]; QuestSequence obj108 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list156 = new List(index2); - CollectionsMarshal.SetCount(list156, index2); - Span span156 = CollectionsMarshal.AsSpan(list156); - num2 = 0; - ref QuestStep reference117 = ref span156[num2]; + num2 = 1; + List list156 = new List(num2); + CollectionsMarshal.SetCount(list156, num2); + ref QuestStep reference117 = ref CollectionsMarshal.AsSpan(list156)[0]; 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); - Span span157 = CollectionsMarshal.AsSpan(list157); - index3 = 0; - span157[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list157)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI105_05368_SYSTEM_120_250") }; questStep10.DialogueChoices = list157; - 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; + 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; questStep10.PointMenuChoices = list158; reference117 = questStep10; obj108.Steps = list156; reference116 = obj108; - num++; - ref QuestSequence reference118 = ref span147[num]; + ref QuestSequence reference118 = ref span60[8]; QuestSequence obj109 = new QuestSequence { Sequence = 8 @@ -471445,30 +387672,24 @@ public static class AssemblyQuestLoader num2 = 1; List list159 = new List(num2); CollectionsMarshal.SetCount(list159, num2); - Span span159 = CollectionsMarshal.AsSpan(list159); - index2 = 0; - span159[index2] = new QuestStep(EInteractionType.UseItem, 2014881u, new Vector3(7.765003f, 1.296952f, 5.581435f), 1299) + CollectionsMarshal.AsSpan(list159)[0] = new QuestStep(EInteractionType.UseItem, 2014881u, new Vector3(7.765003f, 1.296952f, 5.581435f), 1299) { ItemId = 2003768u }; obj109.Steps = list159; reference118 = obj109; - num++; - ref QuestSequence reference119 = ref span147[num]; + ref QuestSequence reference119 = ref span60[9]; QuestSequence obj110 = new QuestSequence { Sequence = 9 }; - 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); + 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); obj110.Steps = list160; reference119 = obj110; - num++; - ref QuestSequence reference120 = ref span147[num]; + ref QuestSequence reference120 = ref span60[10]; QuestSequence obj111 = new QuestSequence { Sequence = 10 @@ -471476,30 +387697,24 @@ public static class AssemblyQuestLoader num2 = 1; List list161 = new List(num2); CollectionsMarshal.SetCount(list161, num2); - Span span161 = CollectionsMarshal.AsSpan(list161); - index2 = 0; - span161[index2] = new QuestStep(EInteractionType.Interact, 1054907u, new Vector3(43.289795f, 0.30650482f, 12.436096f), 1299); + CollectionsMarshal.AsSpan(list161)[0] = new QuestStep(EInteractionType.Interact, 1054907u, new Vector3(43.289795f, 0.30650482f, 12.436096f), 1299); obj111.Steps = list161; reference120 = obj111; - num++; - ref QuestSequence reference121 = ref span147[num]; + ref QuestSequence reference121 = ref span60[11]; QuestSequence obj112 = new QuestSequence { Sequence = 11 }; - index2 = 4; - List list162 = new List(index2); - CollectionsMarshal.SetCount(list162, index2); - Span span162 = CollectionsMarshal.AsSpan(list162); - num2 = 0; - ref QuestStep reference122 = ref span162[num2]; + num2 = 4; + List list162 = new List(num2); + CollectionsMarshal.SetCount(list162, num2); + Span span62 = CollectionsMarshal.AsSpan(list162); + ref QuestStep reference122 = ref span62[0]; 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); - Span span163 = CollectionsMarshal.AsSpan(list163); - index3 = 0; - span163[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list163)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -471507,15 +387722,12 @@ public static class AssemblyQuestLoader }; questStep11.DialogueChoices = list163; reference122 = questStep11; - num2++; - ref QuestStep reference123 = ref span162[num2]; + ref QuestStep reference123 = ref span62[1]; QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 2014885u, new Vector3(50.98755f, 0.7551f, 19.03446f), 1299); - index3 = 1; - List list164 = new List(index3); - CollectionsMarshal.SetCount(list164, index3); - Span span164 = CollectionsMarshal.AsSpan(list164); - num3 = 0; - span164[num3] = new DialogueChoice + num3 = 1; + List list164 = new List(num3); + CollectionsMarshal.SetCount(list164, num3); + CollectionsMarshal.AsSpan(list164)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -471523,15 +387735,12 @@ public static class AssemblyQuestLoader }; questStep12.DialogueChoices = list164; reference123 = questStep12; - num2++; - ref QuestStep reference124 = ref span162[num2]; + ref QuestStep reference124 = ref span62[2]; 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); - Span span165 = CollectionsMarshal.AsSpan(list165); - index3 = 0; - span165[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list165)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -471539,15 +387748,12 @@ public static class AssemblyQuestLoader }; questStep13.DialogueChoices = list165; reference124 = questStep13; - num2++; - ref QuestStep reference125 = ref span162[num2]; + ref QuestStep reference125 = ref span62[3]; QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014886u, new Vector3(44.9988f, 0.7551f, 25.03204f), 1299); - index3 = 1; - List list166 = new List(index3); - CollectionsMarshal.SetCount(list166, index3); - Span span166 = CollectionsMarshal.AsSpan(list166); - num3 = 0; - span166[num3] = new DialogueChoice + num3 = 1; + List list166 = new List(num3); + CollectionsMarshal.SetCount(list166, num3); + CollectionsMarshal.AsSpan(list166)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI105_05368_Q1_100_000"), @@ -471557,8 +387763,7 @@ public static class AssemblyQuestLoader reference125 = questStep14; obj112.Steps = list162; reference121 = obj112; - num++; - ref QuestSequence reference126 = ref span147[num]; + ref QuestSequence reference126 = ref span60[12]; QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue @@ -471566,9 +387771,7 @@ public static class AssemblyQuestLoader num2 = 1; List list167 = new List(num2); CollectionsMarshal.SetCount(list167, num2); - Span span167 = CollectionsMarshal.AsSpan(list167); - index2 = 0; - span167[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); + CollectionsMarshal.AsSpan(list167)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054916u, new Vector3(16.189758f, -1.8225983E-06f, 28.030762f), 1299); obj113.Steps = list167; reference126 = obj113; questRoot19.QuestSequence = list147; @@ -471578,30 +387781,24 @@ public static class AssemblyQuestLoader num = 1; List list168 = new List(num); CollectionsMarshal.SetCount(list168, num); - Span span168 = CollectionsMarshal.AsSpan(list168); - index = 0; - span168[index] = "liza"; + CollectionsMarshal.AsSpan(list168)[0] = "liza"; questRoot20.Author = list168; - index = 10; - List list169 = new List(index); - CollectionsMarshal.SetCount(list169, index); - Span span169 = CollectionsMarshal.AsSpan(list169); - num = 0; - ref QuestSequence reference127 = ref span169[num]; + num = 10; + List list169 = new List(num); + CollectionsMarshal.SetCount(list169, num); + Span span63 = CollectionsMarshal.AsSpan(list169); + ref QuestSequence reference127 = ref span63[0]; QuestSequence obj114 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj114.Steps = list170; reference127 = obj114; - num++; - ref QuestSequence reference128 = ref span169[num]; + ref QuestSequence reference128 = ref span63[1]; QuestSequence obj115 = new QuestSequence { Sequence = 1 @@ -471609,27 +387806,21 @@ public static class AssemblyQuestLoader num2 = 1; List list171 = new List(num2); CollectionsMarshal.SetCount(list171, num2); - Span span171 = CollectionsMarshal.AsSpan(list171); - index2 = 0; - span171[index2] = new QuestStep(EInteractionType.Interact, 2014889u, new Vector3(-6.637756f, 0.9917603f, 32.45593f), 1299); + CollectionsMarshal.AsSpan(list171)[0] = new QuestStep(EInteractionType.Interact, 2014889u, new Vector3(-6.637756f, 0.9917603f, 32.45593f), 1299); obj115.Steps = list171; reference128 = obj115; - num++; - ref QuestSequence reference129 = ref span169[num]; + ref QuestSequence reference129 = ref span63[2]; QuestSequence obj116 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj116.Steps = list172; reference129 = obj116; - num++; - ref QuestSequence reference130 = ref span169[num]; + ref QuestSequence reference130 = ref span63[3]; QuestSequence obj117 = new QuestSequence { Sequence = 3 @@ -471637,30 +387828,24 @@ public static class AssemblyQuestLoader num2 = 1; List list173 = new List(num2); CollectionsMarshal.SetCount(list173, num2); - Span span173 = CollectionsMarshal.AsSpan(list173); - index2 = 0; - span173[index2] = new QuestStep(EInteractionType.UseItem, 2014909u, new Vector3(5.5639f, 1.2989f, -7.7142f), 1299) + CollectionsMarshal.AsSpan(list173)[0] = new QuestStep(EInteractionType.UseItem, 2014909u, new Vector3(5.5639f, 1.2989f, -7.7142f), 1299) { ItemId = 2003769u }; obj117.Steps = list173; reference130 = obj117; - num++; - ref QuestSequence reference131 = ref span169[num]; + ref QuestSequence reference131 = ref span63[4]; QuestSequence obj118 = new QuestSequence { Sequence = 4 }; - 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); + 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); obj118.Steps = list174; reference131 = obj118; - num++; - ref QuestSequence reference132 = ref span169[num]; + ref QuestSequence reference132 = ref span63[5]; QuestSequence obj119 = new QuestSequence { Sequence = 5 @@ -471668,109 +387853,77 @@ public static class AssemblyQuestLoader num2 = 4; List list175 = new List(num2); CollectionsMarshal.SetCount(list175, num2); - Span span175 = CollectionsMarshal.AsSpan(list175); - index2 = 0; - ref QuestStep reference133 = ref span175[index2]; + Span span64 = CollectionsMarshal.AsSpan(list175); + ref QuestStep reference133 = ref span64[0]; 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 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); + 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); questStep15.CompletionQuestVariablesFlags = list176; reference133 = questStep15; - index2++; - ref QuestStep reference134 = ref span175[index2]; + ref QuestStep reference134 = ref span64[1]; QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2014891u, new Vector3(45.64126f, 0.9739f, -23.77144f), 1299); - 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); + 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); questStep16.CompletionQuestVariablesFlags = list177; reference134 = questStep16; - index2++; - ref QuestStep reference135 = ref span175[index2]; + ref QuestStep reference135 = ref span64[2]; 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 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); + 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); questStep17.CompletionQuestVariablesFlags = list178; reference135 = questStep17; - index2++; - ref QuestStep reference136 = ref span175[index2]; + ref QuestStep reference136 = ref span64[3]; QuestStep questStep18 = new QuestStep(EInteractionType.Interact, 2014892u, new Vector3(32.07058f, 0.8092833f, -9.735413f), 1299); - 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); + 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); questStep18.CompletionQuestVariablesFlags = list179; reference136 = questStep18; obj119.Steps = list175; reference132 = obj119; - num++; - ref QuestSequence reference137 = ref span169[num]; + ref QuestSequence reference137 = ref span63[6]; QuestSequence obj120 = new QuestSequence { Sequence = 6 }; - 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); + 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); obj120.Steps = list180; reference137 = obj120; - num++; - ref QuestSequence reference138 = ref span169[num]; + ref QuestSequence reference138 = ref span63[7]; QuestSequence obj121 = new QuestSequence { Sequence = 7 @@ -471778,9 +387931,8 @@ public static class AssemblyQuestLoader num2 = 4; List list181 = new List(num2); CollectionsMarshal.SetCount(list181, num2); - Span span181 = CollectionsMarshal.AsSpan(list181); - index2 = 0; - ref QuestStep reference139 = ref span181[index2]; + Span span69 = CollectionsMarshal.AsSpan(list181); + ref QuestStep reference139 = ref span69[0]; QuestStep obj122 = new QuestStep(EInteractionType.Interact, 1054935u, new Vector3(47.287598f, -8.0940923E-13f, -21.561035f), 1299) { SkipConditions = new SkipConditions @@ -471794,26 +387946,18 @@ public static class AssemblyQuestLoader num3 = 6; List list182 = new List(num3); CollectionsMarshal.SetCount(list182, num3); - 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; + 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; obj122.CompletionQuestVariablesFlags = list182; - index3 = 1; - List list183 = new List(index3); - CollectionsMarshal.SetCount(list183, index3); - Span span183 = CollectionsMarshal.AsSpan(list183); - num3 = 0; - span183[num3] = new DialogueChoice + num3 = 1; + List list183 = new List(num3); + CollectionsMarshal.SetCount(list183, num3); + CollectionsMarshal.AsSpan(list183)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q5_000_000"), @@ -471821,38 +387965,29 @@ public static class AssemblyQuestLoader }; obj122.DialogueChoices = list183; reference139 = obj122; - index2++; - ref QuestStep reference140 = ref span181[index2]; + ref QuestStep reference140 = ref span69[1]; 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 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; + 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; questStep19.CompletionQuestVariablesFlags = list184; - index3 = 2; - List list185 = new List(index3); - CollectionsMarshal.SetCount(list185, index3); - Span span185 = CollectionsMarshal.AsSpan(list185); - num3 = 0; - span185[num3] = new DialogueChoice + num3 = 2; + List list185 = new List(num3); + CollectionsMarshal.SetCount(list185, num3); + Span span72 = CollectionsMarshal.AsSpan(list185); + span72[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI106_05369_SYSTEM_000_350") }; - num3++; - span185[num3] = new DialogueChoice + span72[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q7_000_000"), @@ -471862,15 +387997,12 @@ public static class AssemblyQuestLoader num3 = 2; List list186 = new List(num3); CollectionsMarshal.SetCount(list186, num3); - Span span186 = CollectionsMarshal.AsSpan(list186); - index3 = 0; - span186[index3] = 3u; - index3++; - span186[index3] = 4u; + Span span73 = CollectionsMarshal.AsSpan(list186); + span73[0] = 3u; + span73[1] = 4u; questStep19.PointMenuChoices = list186; reference140 = questStep19; - index2++; - ref QuestStep reference141 = ref span181[index2]; + ref QuestStep reference141 = ref span69[2]; QuestStep obj123 = new QuestStep(EInteractionType.Interact, 1054931u, new Vector3(38.223755f, 0f, -13.443237f), 1299) { SkipConditions = new SkipConditions @@ -471881,29 +388013,21 @@ public static class AssemblyQuestLoader } } }; - 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; + 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; obj123.CompletionQuestVariablesFlags = list187; num3 = 1; List list188 = new List(num3); CollectionsMarshal.SetCount(list188, num3); - Span span188 = CollectionsMarshal.AsSpan(list188); - index3 = 0; - span188[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list188)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q6_000_000"), @@ -471911,29 +388035,25 @@ public static class AssemblyQuestLoader }; obj123.DialogueChoices = list188; reference141 = obj123; - index2++; - ref QuestStep reference142 = ref span181[index2]; + ref QuestStep reference142 = ref span69[3]; QuestStep questStep20 = new QuestStep(EInteractionType.Interact, 2014893u, new Vector3(43.16655f, 1.244391f, -18.57025f), 1299); - index3 = 3; - List list189 = new List(index3); - CollectionsMarshal.SetCount(list189, index3); - Span span189 = CollectionsMarshal.AsSpan(list189); - num3 = 0; - span189[num3] = new DialogueChoice + num3 = 3; + List list189 = new List(num3); + CollectionsMarshal.SetCount(list189, num3); + Span span75 = CollectionsMarshal.AsSpan(list189); + span75[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q8_000_000"), Answer = new ExcelRef("TEXT_KINGMI106_05369_A8_000_005") }; - num3++; - span189[num3] = new DialogueChoice + span75[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q9_000_000"), Answer = new ExcelRef("TEXT_KINGMI106_05369_A9_000_006") }; - num3++; - span189[num3] = new DialogueChoice + span75[2] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGMI106_05369_Q10_000_000"), @@ -471943,22 +388063,18 @@ public static class AssemblyQuestLoader reference142 = questStep20; obj121.Steps = list181; reference138 = obj121; - num++; - ref QuestSequence reference143 = ref span169[num]; + ref QuestSequence reference143 = ref span63[8]; QuestSequence obj124 = new QuestSequence { Sequence = 8 }; - 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); + 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); obj124.Steps = list190; reference143 = obj124; - num++; - ref QuestSequence reference144 = ref span169[num]; + ref QuestSequence reference144 = ref span63[9]; QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue @@ -471966,9 +388082,7 @@ public static class AssemblyQuestLoader num2 = 1; List list191 = new List(num2); CollectionsMarshal.SetCount(list191, num2); - Span span191 = CollectionsMarshal.AsSpan(list191); - index2 = 0; - span191[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054560u, new Vector3(-5.1118164f, -4.656613E-08f, 7.095398f), 1207); + CollectionsMarshal.AsSpan(list191)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054560u, new Vector3(-5.1118164f, -4.656613E-08f, 7.095398f), 1207); obj125.Steps = list191; reference144 = obj125; questRoot20.QuestSequence = list169; @@ -471978,30 +388092,24 @@ public static class AssemblyQuestLoader num = 1; List list192 = new List(num); CollectionsMarshal.SetCount(list192, num); - Span span192 = CollectionsMarshal.AsSpan(list192); - index = 0; - span192[index] = "liza"; + CollectionsMarshal.AsSpan(list192)[0] = "liza"; questRoot21.Author = list192; - index = 4; - List list193 = new List(index); - CollectionsMarshal.SetCount(list193, index); - Span span193 = CollectionsMarshal.AsSpan(list193); - num = 0; - ref QuestSequence reference145 = ref span193[num]; + num = 4; + List list193 = new List(num); + CollectionsMarshal.SetCount(list193, num); + Span span76 = CollectionsMarshal.AsSpan(list193); + ref QuestSequence reference145 = ref span76[0]; QuestSequence obj126 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj126.Steps = list194; reference145 = obj126; - num++; - ref QuestSequence reference146 = ref span193[num]; + ref QuestSequence reference146 = ref span76[1]; QuestSequence obj127 = new QuestSequence { Sequence = 1 @@ -472009,14 +388117,12 @@ public static class AssemblyQuestLoader num2 = 2; List list195 = new List(num2); CollectionsMarshal.SetCount(list195, num2); - Span span195 = CollectionsMarshal.AsSpan(list195); - index2 = 0; - span195[index2] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) + Span span77 = CollectionsMarshal.AsSpan(list195); + span77[0] = new QuestStep(EInteractionType.Interact, 2014102u, new Vector3(-0.015319824f, 0.99176025f, 16.03717f), 1207) { TargetTerritoryId = (ushort)1186 }; - index2++; - span195[index2] = new QuestStep(EInteractionType.Interact, 1054561u, new Vector3(20.58435f, 38.056595f, -388.20483f), 1186) + span77[1] = new QuestStep(EInteractionType.Interact, 1054561u, new Vector3(20.58435f, 38.056595f, -388.20483f), 1186) { AethernetShortcut = new AethernetShortcut { @@ -472026,22 +388132,18 @@ public static class AssemblyQuestLoader }; obj127.Steps = list195; reference146 = obj127; - num++; - ref QuestSequence reference147 = ref span193[num]; + ref QuestSequence reference147 = ref span76[2]; QuestSequence obj128 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj128.Steps = list196; reference147 = obj128; - num++; - ref QuestSequence reference148 = ref span193[num]; + ref QuestSequence reference148 = ref span76[3]; QuestSequence obj129 = new QuestSequence { Sequence = byte.MaxValue @@ -472049,9 +388151,7 @@ public static class AssemblyQuestLoader num2 = 1; List list197 = new List(num2); CollectionsMarshal.SetCount(list197, num2); - Span span197 = CollectionsMarshal.AsSpan(list197); - index2 = 0; - span197[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192) + CollectionsMarshal.AsSpan(list197)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054569u, new Vector3(-0.5340576f, 53.200012f, 768.27637f), 1192) { AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; @@ -472064,30 +388164,24 @@ public static class AssemblyQuestLoader num = 1; List list198 = new List(num); CollectionsMarshal.SetCount(list198, num); - Span span198 = CollectionsMarshal.AsSpan(list198); - index = 0; - span198[index] = "liza"; + CollectionsMarshal.AsSpan(list198)[0] = "liza"; questRoot22.Author = list198; - index = 8; - List list199 = new List(index); - CollectionsMarshal.SetCount(list199, index); - Span span199 = CollectionsMarshal.AsSpan(list199); - num = 0; - ref QuestSequence reference149 = ref span199[num]; + num = 8; + List list199 = new List(num); + CollectionsMarshal.SetCount(list199, num); + Span span78 = CollectionsMarshal.AsSpan(list199); + ref QuestSequence reference149 = ref span78[0]; QuestSequence obj130 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj130.Steps = list200; reference149 = obj130; - num++; - ref QuestSequence reference150 = ref span199[num]; + ref QuestSequence reference150 = ref span78[1]; QuestSequence obj131 = new QuestSequence { Sequence = 1 @@ -472095,26 +388189,21 @@ public static class AssemblyQuestLoader num2 = 1; List list201 = new List(num2); CollectionsMarshal.SetCount(list201, num2); - Span span201 = CollectionsMarshal.AsSpan(list201); - index2 = 0; - span201[index2] = new QuestStep(EInteractionType.Interact, 1054576u, new Vector3(-0.16790771f, 50.12495f, 364.8584f), 1192) + CollectionsMarshal.AsSpan(list201)[0] = new QuestStep(EInteractionType.Interact, 1054576u, new Vector3(-0.16790771f, 50.12495f, 364.8584f), 1192) { Fly = true }; obj131.Steps = list201; reference150 = obj131; - num++; - ref QuestSequence reference151 = ref span199[num]; + ref QuestSequence reference151 = ref span78[2]; QuestSequence obj132 = new QuestSequence { Sequence = 2 }; - 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) + num2 = 1; + List list202 = new List(num2); + CollectionsMarshal.SetCount(list202, num2); + CollectionsMarshal.AsSpan(list202)[0] = new QuestStep(EInteractionType.Duty, null, null, 1192) { DutyOptions = new DutyOptions { @@ -472123,13 +388212,11 @@ public static class AssemblyQuestLoader }; obj132.Steps = list202; reference151 = obj132; - num++; - span199[num] = new QuestSequence + span78[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference152 = ref span199[num]; + ref QuestSequence reference152 = ref span78[4]; QuestSequence obj133 = new QuestSequence { Sequence = 4 @@ -472137,9 +388224,7 @@ public static class AssemblyQuestLoader num2 = 1; List list203 = new List(num2); CollectionsMarshal.SetCount(list203, num2); - Span span203 = CollectionsMarshal.AsSpan(list203); - index2 = 0; - span203[index2] = new QuestStep(EInteractionType.Duty, null, null, 1312) + CollectionsMarshal.AsSpan(list203)[0] = new QuestStep(EInteractionType.Duty, null, null, 1312) { DutyOptions = new DutyOptions { @@ -472148,30 +388233,25 @@ public static class AssemblyQuestLoader }; obj133.Steps = list203; reference152 = obj133; - num++; - span199[num] = new QuestSequence + span78[5] = new QuestSequence { Sequence = 5 }; - num++; - ref QuestSequence reference153 = ref span199[num]; + ref QuestSequence reference153 = ref span78[6]; QuestSequence obj134 = new QuestSequence { Sequence = 6 }; - 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) + 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) { StopDistance = 5f }; obj134.Steps = list204; reference153 = obj134; - num++; - ref QuestSequence reference154 = ref span199[num]; + ref QuestSequence reference154 = ref span78[7]; QuestSequence obj135 = new QuestSequence { Sequence = byte.MaxValue @@ -472179,9 +388259,7 @@ public static class AssemblyQuestLoader num2 = 1; List list205 = new List(num2); CollectionsMarshal.SetCount(list205, num2); - Span span205 = CollectionsMarshal.AsSpan(list205); - index2 = 0; - span205[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191) + CollectionsMarshal.AsSpan(list205)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054604u, new Vector3(-145.06763f, 25.971825f, -495.38416f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundTheOutskirts @@ -472195,30 +388273,24 @@ public static class AssemblyQuestLoader num = 1; List list206 = new List(num); CollectionsMarshal.SetCount(list206, num); - Span span206 = CollectionsMarshal.AsSpan(list206); - index = 0; - span206[index] = "liza"; + CollectionsMarshal.AsSpan(list206)[0] = "liza"; questRoot23.Author = list206; - index = 6; - List list207 = new List(index); - CollectionsMarshal.SetCount(list207, index); - Span span207 = CollectionsMarshal.AsSpan(list207); - num = 0; - ref QuestSequence reference155 = ref span207[num]; + num = 6; + List list207 = new List(num); + CollectionsMarshal.SetCount(list207, num); + Span span79 = CollectionsMarshal.AsSpan(list207); + ref QuestSequence reference155 = ref span79[0]; QuestSequence obj136 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj136.Steps = list208; reference155 = obj136; - num++; - ref QuestSequence reference156 = ref span207[num]; + ref QuestSequence reference156 = ref span79[1]; QuestSequence obj137 = new QuestSequence { Sequence = 1 @@ -472226,33 +388298,27 @@ public static class AssemblyQuestLoader num2 = 1; List list209 = new List(num2); CollectionsMarshal.SetCount(list209, num2); - Span span209 = CollectionsMarshal.AsSpan(list209); - index2 = 0; - span209[index2] = new QuestStep(EInteractionType.Interact, 1055852u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191) + CollectionsMarshal.AsSpan(list209)[0] = new QuestStep(EInteractionType.Interact, 1055852u, new Vector3(-117.906494f, 28.995459f, -353.1701f), 1191) { Fly = true }; obj137.Steps = list209; reference156 = obj137; - num++; - ref QuestSequence reference157 = ref span207[num]; + ref QuestSequence reference157 = ref span79[2]; QuestSequence obj138 = new QuestSequence { Sequence = 2 }; - 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) + 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) { Fly = true }; obj138.Steps = list210; reference157 = obj138; - num++; - ref QuestSequence reference158 = ref span207[num]; + ref QuestSequence reference158 = ref span79[3]; QuestSequence obj139 = new QuestSequence { Sequence = 3 @@ -472260,33 +388326,27 @@ public static class AssemblyQuestLoader num2 = 1; List list211 = new List(num2); CollectionsMarshal.SetCount(list211, num2); - Span span211 = CollectionsMarshal.AsSpan(list211); - index2 = 0; - span211[index2] = new QuestStep(EInteractionType.Interact, 1054612u, new Vector3(-670.95447f, 52.96887f, -203.35706f), 1191) + CollectionsMarshal.AsSpan(list211)[0] = new QuestStep(EInteractionType.Interact, 1054612u, new Vector3(-670.95447f, 52.96887f, -203.35706f), 1191) { Fly = true }; obj139.Steps = list211; reference158 = obj139; - num++; - ref QuestSequence reference159 = ref span207[num]; + ref QuestSequence reference159 = ref span79[4]; QuestSequence obj140 = new QuestSequence { Sequence = 4 }; - 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) + 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) { StopDistance = 7f }; obj140.Steps = list212; reference159 = obj140; - num++; - ref QuestSequence reference160 = ref span207[num]; + ref QuestSequence reference160 = ref span79[5]; QuestSequence obj141 = new QuestSequence { Sequence = byte.MaxValue @@ -472294,9 +388354,8 @@ public static class AssemblyQuestLoader num2 = 2; List list213 = new List(num2); CollectionsMarshal.SetCount(list213, num2); - Span span213 = CollectionsMarshal.AsSpan(list213); - index2 = 0; - span213[index2] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) + Span span80 = CollectionsMarshal.AsSpan(list213); + span80[0] = new QuestStep(EInteractionType.Interact, 1048083u, new Vector3(302.05237f, 51.199978f, 205.0354f), 1186) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -472306,8 +388365,7 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - index2++; - span213[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); + span80[1] = new QuestStep(EInteractionType.CompleteQuest, 1054616u, new Vector3(-0.6256714f, -4.656613E-08f, 6.8512573f), 1207); obj141.Steps = list213; reference160 = obj141; questRoot23.QuestSequence = list207; @@ -472317,30 +388375,24 @@ public static class AssemblyQuestLoader num = 1; List list214 = new List(num); CollectionsMarshal.SetCount(list214, num); - Span span214 = CollectionsMarshal.AsSpan(list214); - index = 0; - span214[index] = "liza"; + CollectionsMarshal.AsSpan(list214)[0] = "liza"; questRoot24.Author = list214; - index = 5; - List list215 = new List(index); - CollectionsMarshal.SetCount(list215, index); - Span span215 = CollectionsMarshal.AsSpan(list215); - num = 0; - ref QuestSequence reference161 = ref span215[num]; + num = 5; + List list215 = new List(num); + CollectionsMarshal.SetCount(list215, num); + Span span81 = CollectionsMarshal.AsSpan(list215); + ref QuestSequence reference161 = ref span81[0]; QuestSequence obj142 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj142.Steps = list216; reference161 = obj142; - num++; - ref QuestSequence reference162 = ref span215[num]; + ref QuestSequence reference162 = ref span81[1]; QuestSequence obj143 = new QuestSequence { Sequence = 1 @@ -472348,16 +388400,12 @@ public static class AssemblyQuestLoader num2 = 1; List list217 = new List(num2); CollectionsMarshal.SetCount(list217, num2); - Span span217 = CollectionsMarshal.AsSpan(list217); - index2 = 0; - ref QuestStep reference163 = ref span217[index2]; + ref QuestStep reference163 = ref CollectionsMarshal.AsSpan(list217)[0]; 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); - Span span218 = CollectionsMarshal.AsSpan(list218); - index3 = 0; - span218[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list218)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGMI110_05373_SYSTEM_000_040") @@ -472366,25 +388414,21 @@ public static class AssemblyQuestLoader reference163 = questStep21; obj143.Steps = list217; reference162 = obj143; - num++; - ref QuestSequence reference164 = ref span215[num]; + ref QuestSequence reference164 = ref span81[2]; QuestSequence obj144 = new QuestSequence { Sequence = 2 }; - 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) + 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) { StopDistance = 7f }; obj144.Steps = list219; reference164 = obj144; - num++; - ref QuestSequence reference165 = ref span215[num]; + ref QuestSequence reference165 = ref span81[3]; QuestSequence obj145 = new QuestSequence { Sequence = 3 @@ -472392,9 +388436,7 @@ public static class AssemblyQuestLoader num2 = 1; List list220 = new List(num2); CollectionsMarshal.SetCount(list220, num2); - Span span220 = CollectionsMarshal.AsSpan(list220); - index2 = 0; - span220[index2] = new QuestStep(EInteractionType.Interact, 1054624u, new Vector3(-105.638245f, 100.04267f, -202.47198f), 1185) + CollectionsMarshal.AsSpan(list220)[0] = new QuestStep(EInteractionType.Interact, 1054624u, new Vector3(-105.638245f, 100.04267f, -202.47198f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -472405,18 +388447,15 @@ public static class AssemblyQuestLoader }; obj145.Steps = list220; reference165 = obj145; - num++; - ref QuestSequence reference166 = ref span215[num]; + ref QuestSequence reference166 = ref span81[4]; QuestSequence obj146 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -472434,16 +388473,13 @@ public static class AssemblyQuestLoader num = 1; List list222 = new List(num); CollectionsMarshal.SetCount(list222, num); - Span span222 = CollectionsMarshal.AsSpan(list222); - index = 0; - span222[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list222)[0] = "WigglyMuffin"; questRoot25.Author = list222; - index = 13; - List list223 = new List(index); - CollectionsMarshal.SetCount(list223, index); - Span span223 = CollectionsMarshal.AsSpan(list223); - num = 0; - ref QuestSequence reference167 = ref span223[num]; + num = 13; + List list223 = new List(num); + CollectionsMarshal.SetCount(list223, num); + Span span82 = CollectionsMarshal.AsSpan(list223); + ref QuestSequence reference167 = ref span82[0]; QuestSequence obj147 = new QuestSequence { Sequence = 0 @@ -472451,9 +388487,7 @@ public static class AssemblyQuestLoader num2 = 1; List list224 = new List(num2); CollectionsMarshal.SetCount(list224, num2); - Span span224 = CollectionsMarshal.AsSpan(list224); - index2 = 0; - span224[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) + CollectionsMarshal.AsSpan(list224)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054465u, new Vector3(0.1373291f, -14f, 106.21802f), 1185) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -472471,18 +388505,15 @@ public static class AssemblyQuestLoader }; obj147.Steps = list224; reference167 = obj147; - num++; - ref QuestSequence reference168 = ref span223[num]; + ref QuestSequence reference168 = ref span82[1]; QuestSequence obj148 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, SkipConditions = new SkipConditions @@ -472500,8 +388531,7 @@ public static class AssemblyQuestLoader }; obj148.Steps = list225; reference168 = obj148; - num++; - ref QuestSequence reference169 = ref span223[num]; + ref QuestSequence reference169 = ref span82[2]; QuestSequence obj149 = new QuestSequence { Sequence = 2 @@ -472509,30 +388539,24 @@ public static class AssemblyQuestLoader num2 = 1; List list226 = new List(num2); CollectionsMarshal.SetCount(list226, num2); - Span span226 = CollectionsMarshal.AsSpan(list226); - index2 = 0; - span226[index2] = new QuestStep(EInteractionType.Interact, 1054466u, new Vector3(420.37073f, -0.65818214f, 390.67664f), 1190); + CollectionsMarshal.AsSpan(list226)[0] = new QuestStep(EInteractionType.Interact, 1054466u, new Vector3(420.37073f, -0.65818214f, 390.67664f), 1190); obj149.Steps = list226; reference169 = obj149; - num++; - ref QuestSequence reference170 = ref span223[num]; + ref QuestSequence reference170 = ref span82[3]; QuestSequence obj150 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj150.Steps = list227; reference170 = obj150; - num++; - ref QuestSequence reference171 = ref span223[num]; + ref QuestSequence reference171 = ref span82[4]; QuestSequence obj151 = new QuestSequence { Sequence = 4 @@ -472540,33 +388564,27 @@ public static class AssemblyQuestLoader num2 = 1; List list228 = new List(num2); CollectionsMarshal.SetCount(list228, num2); - Span span228 = CollectionsMarshal.AsSpan(list228); - index2 = 0; - span228[index2] = new QuestStep(EInteractionType.Interact, 2014824u, new Vector3(349.813f, 7.1869507f, 220.78271f), 1190) + CollectionsMarshal.AsSpan(list228)[0] = new QuestStep(EInteractionType.Interact, 2014824u, new Vector3(349.813f, 7.1869507f, 220.78271f), 1190) { Fly = true }; obj151.Steps = list228; reference171 = obj151; - num++; - ref QuestSequence reference172 = ref span223[num]; + ref QuestSequence reference172 = ref span82[5]; QuestSequence obj152 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj152.Steps = list229; reference172 = obj152; - num++; - ref QuestSequence reference173 = ref span223[num]; + ref QuestSequence reference173 = ref span82[6]; QuestSequence obj153 = new QuestSequence { Sequence = 6 @@ -472574,16 +388592,12 @@ public static class AssemblyQuestLoader num2 = 1; List list230 = new List(num2); CollectionsMarshal.SetCount(list230, num2); - Span span230 = CollectionsMarshal.AsSpan(list230); - index2 = 0; - ref QuestStep reference174 = ref span230[index2]; + ref QuestStep reference174 = ref CollectionsMarshal.AsSpan(list230)[0]; QuestStep questStep22 = new QuestStep(EInteractionType.Interact, 1054467u, new Vector3(254.38306f, -7.9001174f, 465.17126f), 1190); - index3 = 1; - List list231 = new List(index3); - CollectionsMarshal.SetCount(list231, index3); - Span span231 = CollectionsMarshal.AsSpan(list231); - num3 = 0; - span231[num3] = new DialogueChoice + num3 = 1; + List list231 = new List(num3); + CollectionsMarshal.SetCount(list231, num3); + CollectionsMarshal.AsSpan(list231)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGYX901_05374_SYSTEM_000_301") @@ -472592,25 +388606,20 @@ public static class AssemblyQuestLoader reference174 = questStep22; obj153.Steps = list230; reference173 = obj153; - num++; - ref QuestSequence reference175 = ref span223[num]; + ref QuestSequence reference175 = ref span82[7]; QuestSequence obj154 = new QuestSequence { Sequence = 7 }; - index2 = 1; - List list232 = new List(index2); - CollectionsMarshal.SetCount(list232, index2); - Span span232 = CollectionsMarshal.AsSpan(list232); - num2 = 0; - ref QuestStep reference176 = ref span232[num2]; + num2 = 1; + List list232 = new List(num2); + CollectionsMarshal.SetCount(list232, num2); + ref QuestStep reference176 = ref CollectionsMarshal.AsSpan(list232)[0]; 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); - Span span233 = CollectionsMarshal.AsSpan(list233); - index3 = 0; - span233[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list233)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGYX901_05374_SYSTEM_200_402") @@ -472619,13 +388628,11 @@ public static class AssemblyQuestLoader reference176 = questStep23; obj154.Steps = list232; reference175 = obj154; - num++; - span223[num] = new QuestSequence + span82[8] = new QuestSequence { Sequence = 8 }; - num++; - ref QuestSequence reference177 = ref span223[num]; + ref QuestSequence reference177 = ref span82[9]; QuestSequence obj155 = new QuestSequence { Sequence = 9 @@ -472633,27 +388640,21 @@ public static class AssemblyQuestLoader num2 = 1; List list234 = new List(num2); CollectionsMarshal.SetCount(list234, num2); - Span span234 = CollectionsMarshal.AsSpan(list234); - index2 = 0; - span234[index2] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); + CollectionsMarshal.AsSpan(list234)[0] = new QuestStep(EInteractionType.Interact, 1054471u, new Vector3(23.056335f, 101f, 733.7604f), 1301); obj155.Steps = list234; reference177 = obj155; - num++; - ref QuestSequence reference178 = ref span223[num]; + ref QuestSequence reference178 = ref span82[10]; QuestSequence obj156 = new QuestSequence { Sequence = 10 }; - 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); + 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); obj156.Steps = list235; reference178 = obj156; - num++; - ref QuestSequence reference179 = ref span223[num]; + ref QuestSequence reference179 = ref span82[11]; QuestSequence obj157 = new QuestSequence { Sequence = 11 @@ -472661,9 +388662,7 @@ public static class AssemblyQuestLoader num2 = 1; List list236 = new List(num2); CollectionsMarshal.SetCount(list236, num2); - Span span236 = CollectionsMarshal.AsSpan(list236); - index2 = 0; - span236[index2] = new QuestStep(EInteractionType.Duty, null, null, 1301) + CollectionsMarshal.AsSpan(list236)[0] = new QuestStep(EInteractionType.Duty, null, null, 1301) { DutyOptions = new DutyOptions { @@ -472672,18 +388671,15 @@ public static class AssemblyQuestLoader }; obj157.Steps = list236; reference179 = obj157; - num++; - ref QuestSequence reference180 = ref span223[num]; + ref QuestSequence reference180 = ref span82[12]; QuestSequence obj158 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -472708,18 +388704,15 @@ public static class AssemblyQuestLoader num = 1; List list238 = new List(num); CollectionsMarshal.SetCount(list238, num); - Span span238 = CollectionsMarshal.AsSpan(list238); - index = 0; - span238[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list238)[0] = "WigglyMuffin"; questRoot26.Author = list238; questRoot26.IsSeasonalQuest = true; questRoot26.SeasonalQuestExpiry = new DateTime(2025, 11, 4, 14, 59, 0, DateTimeKind.Utc); - index = 9; - List list239 = new List(index); - CollectionsMarshal.SetCount(list239, index); - Span span239 = CollectionsMarshal.AsSpan(list239); - num = 0; - ref QuestSequence reference181 = ref span239[num]; + num = 9; + List list239 = new List(num); + CollectionsMarshal.SetCount(list239, num); + Span span83 = CollectionsMarshal.AsSpan(list239); + ref QuestSequence reference181 = ref span83[0]; QuestSequence obj159 = new QuestSequence { Sequence = 0 @@ -472727,9 +388720,7 @@ public static class AssemblyQuestLoader num2 = 1; List list240 = new List(num2); CollectionsMarshal.SetCount(list240, num2); - Span span240 = CollectionsMarshal.AsSpan(list240); - index2 = 0; - ref QuestStep reference182 = ref span240[index2]; + ref QuestStep reference182 = ref CollectionsMarshal.AsSpan(list240)[0]; QuestStep obj160 = new QuestStep(EInteractionType.AcceptQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -472741,14 +388732,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions11 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list241 = new List(num3); + CollectionsMarshal.SetCount(list241, num3); + Span span84 = CollectionsMarshal.AsSpan(list241); + span84[0] = 132; + span84[1] = 133; skipAetheryteCondition.InTerritory = list241; skipConditions11.AetheryteShortcutIf = skipAetheryteCondition; skipConditions11.AethernetShortcutIf = new SkipAetheryteCondition @@ -472759,25 +388748,20 @@ public static class AssemblyQuestLoader reference182 = obj160; obj159.Steps = list240; reference181 = obj159; - num++; - ref QuestSequence reference183 = ref span239[num]; + ref QuestSequence reference183 = ref span83[1]; QuestSequence obj161 = new QuestSequence { Sequence = 1 }; - index2 = 1; - List list242 = new List(index2); - CollectionsMarshal.SetCount(list242, index2); - Span span242 = CollectionsMarshal.AsSpan(list242); - num2 = 0; - ref QuestStep reference184 = ref span242[num2]; + num2 = 1; + List list242 = new List(num2); + CollectionsMarshal.SetCount(list242, num2); + ref QuestStep reference184 = ref CollectionsMarshal.AsSpan(list242)[0]; 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); - Span span243 = CollectionsMarshal.AsSpan(list243); - index3 = 0; - span243[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list243)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESHLX101_05375_EVENTAREA_WARP_000_031") @@ -472786,8 +388770,7 @@ public static class AssemblyQuestLoader reference184 = questStep24; obj161.Steps = list242; reference183 = obj161; - num++; - ref QuestSequence reference185 = ref span239[num]; + ref QuestSequence reference185 = ref span83[2]; QuestSequence obj162 = new QuestSequence { Sequence = 2 @@ -472795,48 +388778,36 @@ public static class AssemblyQuestLoader num2 = 1; List list244 = new List(num2); CollectionsMarshal.SetCount(list244, num2); - Span span244 = CollectionsMarshal.AsSpan(list244); - index2 = 0; - span244[index2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + CollectionsMarshal.AsSpan(list244)[0] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj162.Steps = list244; reference185 = obj162; - num++; - ref QuestSequence reference186 = ref span239[num]; + ref QuestSequence reference186 = ref span83[3]; QuestSequence obj163 = new QuestSequence { Sequence = 3 }; - index2 = 2; - List list245 = new List(index2); - CollectionsMarshal.SetCount(list245, index2); - Span span245 = CollectionsMarshal.AsSpan(list245); - num2 = 0; - ref QuestStep reference187 = ref span245[num2]; + num2 = 2; + List list245 = new List(num2); + CollectionsMarshal.SetCount(list245, num2); + Span span85 = CollectionsMarshal.AsSpan(list245); + ref QuestStep reference187 = ref span85[0]; QuestStep questStep25 = new QuestStep(EInteractionType.Interact, 1054486u, new Vector3(4.2266846f, 17f, 11.947815f), 1305); - 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); + 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); questStep25.CompletionQuestVariablesFlags = list246; reference187 = questStep25; - num2++; - span245[num2] = new QuestStep(EInteractionType.Interact, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305); + span85[1] = new QuestStep(EInteractionType.Interact, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305); obj163.Steps = list245; reference186 = obj163; - num++; - ref QuestSequence reference188 = ref span239[num]; + ref QuestSequence reference188 = ref span83[4]; QuestSequence obj164 = new QuestSequence { Sequence = 4 @@ -472844,9 +388815,8 @@ public static class AssemblyQuestLoader num2 = 3; List list247 = new List(num2); CollectionsMarshal.SetCount(list247, num2); - Span span247 = CollectionsMarshal.AsSpan(list247); - index2 = 0; - ref QuestStep reference189 = ref span247[index2]; + Span span87 = CollectionsMarshal.AsSpan(list247); + ref QuestStep reference189 = ref span87[0]; QuestStep obj165 = new QuestStep(EInteractionType.Interact, 1054488u, new Vector3(9.109558f, 0f, 100.02283f), 1305) { Mount = true @@ -472854,71 +388824,53 @@ public static class AssemblyQuestLoader num3 = 6; List list248 = new List(num3); CollectionsMarshal.SetCount(list248, num3); - 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); + 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); obj165.CompletionQuestVariablesFlags = list248; reference189 = obj165; - index2++; - ref QuestStep reference190 = ref span247[index2]; + ref QuestStep reference190 = ref span87[1]; QuestStep obj166 = new QuestStep(EInteractionType.Interact, 1054487u, new Vector3(-43.86969f, 0f, -5.8442383f), 1305) { Mount = true }; - 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); + 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); obj166.CompletionQuestVariablesFlags = list249; reference190 = obj166; - index2++; - span247[index2] = new QuestStep(EInteractionType.Interact, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) + span87[2] = new QuestStep(EInteractionType.Interact, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) { Mount = true }; obj164.Steps = list247; reference188 = obj164; - num++; - ref QuestSequence reference191 = ref span239[num]; + ref QuestSequence reference191 = ref span83[5]; QuestSequence obj167 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Mount = true }; obj167.Steps = list250; reference191 = obj167; - num++; - ref QuestSequence reference192 = ref span239[num]; + ref QuestSequence reference192 = ref span83[6]; QuestSequence obj168 = new QuestSequence { Sequence = 6 @@ -472926,9 +388878,7 @@ public static class AssemblyQuestLoader num2 = 1; List list251 = new List(num2); CollectionsMarshal.SetCount(list251, num2); - Span span251 = CollectionsMarshal.AsSpan(list251); - index2 = 0; - ref QuestStep reference193 = ref span251[index2]; + ref QuestStep reference193 = ref CollectionsMarshal.AsSpan(list251)[0]; QuestStep obj169 = new QuestStep(EInteractionType.Interact, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -472943,11 +388893,9 @@ public static class AssemblyQuestLoader num3 = 2; List list252 = new List(num3); CollectionsMarshal.SetCount(list252, num3); - Span span252 = CollectionsMarshal.AsSpan(list252); - index3 = 0; - span252[index3] = 132; - index3++; - span252[index3] = 133; + Span span90 = CollectionsMarshal.AsSpan(list252); + span90[0] = 132; + span90[1] = 133; skipAetheryteCondition2.InTerritory = list252; skipConditions12.AetheryteShortcutIf = skipAetheryteCondition2; skipConditions12.AethernetShortcutIf = new SkipAetheryteCondition @@ -472958,39 +388906,30 @@ public static class AssemblyQuestLoader reference193 = obj169; obj168.Steps = list251; reference192 = obj168; - num++; - ref QuestSequence reference194 = ref span239[num]; + ref QuestSequence reference194 = ref span83[7]; QuestSequence obj170 = new QuestSequence { Sequence = 7 }; - index2 = 2; - List list253 = new List(index2); - CollectionsMarshal.SetCount(list253, index2); - Span span253 = CollectionsMarshal.AsSpan(list253); - num2 = 0; - ref QuestStep reference195 = ref span253[num2]; + num2 = 2; + List list253 = new List(num2); + CollectionsMarshal.SetCount(list253, num2); + Span span91 = CollectionsMarshal.AsSpan(list253); + ref QuestStep reference195 = ref span91[0]; QuestStep questStep26 = new QuestStep(EInteractionType.Interact, 1054477u, new Vector3(-52.903076f, 6.8124895f, -123.39978f), 133); - 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); + 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); questStep26.CompletionQuestVariablesFlags = list254; reference195 = questStep26; - num2++; - ref QuestStep reference196 = ref span253[num2]; + ref QuestStep reference196 = ref span91[1]; QuestStep obj171 = new QuestStep(EInteractionType.Interact, 1054491u, new Vector3(-317.21985f, 7.3121967f, -200.763f), 133) { AethernetShortcut = new AethernetShortcut @@ -473002,25 +388941,18 @@ public static class AssemblyQuestLoader num3 = 6; List list255 = new List(num3); CollectionsMarshal.SetCount(list255, num3); - 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; + Span span93 = CollectionsMarshal.AsSpan(list255); + span93[0] = null; + span93[1] = null; + span93[2] = null; + span93[3] = null; + span93[4] = null; + span93[5] = null; obj171.CompletionQuestVariablesFlags = list255; reference196 = obj171; obj170.Steps = list253; reference194 = obj170; - num++; - ref QuestSequence reference197 = ref span239[num]; + ref QuestSequence reference197 = ref span83[8]; QuestSequence obj172 = new QuestSequence { Sequence = byte.MaxValue @@ -473028,9 +388960,7 @@ public static class AssemblyQuestLoader num2 = 1; List list256 = new List(num2); CollectionsMarshal.SetCount(list256, num2); - Span span256 = CollectionsMarshal.AsSpan(list256); - index2 = 0; - span256[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) + CollectionsMarshal.AsSpan(list256)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AethernetShortcut = new AethernetShortcut { @@ -473048,28 +388978,23 @@ public static class AssemblyQuestLoader num = 1; List list257 = new List(num); CollectionsMarshal.SetCount(list257, num); - Span span257 = CollectionsMarshal.AsSpan(list257); - index = 0; - span257[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list257)[0] = "WigglyMuffin"; questRoot27.Author = list257; questRoot27.IsSeasonalQuest = true; questRoot27.SeasonalQuestExpiry = new DateTime(2025, 11, 4, 14, 59, 0, DateTimeKind.Utc); - index = 7; - List list258 = new List(index); - CollectionsMarshal.SetCount(list258, index); - Span span258 = CollectionsMarshal.AsSpan(list258); - num = 0; - ref QuestSequence reference198 = ref span258[num]; + num = 7; + List list258 = new List(num); + CollectionsMarshal.SetCount(list258, num); + Span span94 = CollectionsMarshal.AsSpan(list258); + ref QuestSequence reference198 = ref span94[0]; QuestSequence obj173 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list259 = new List(num2); + CollectionsMarshal.SetCount(list259, num2); + ref QuestStep reference199 = ref CollectionsMarshal.AsSpan(list259)[0]; QuestStep obj174 = new QuestStep(EInteractionType.AcceptQuest, 1054483u, new Vector3(-50.003845f, 6.5f, -88.426025f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -473081,14 +389006,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions13 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition3 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list260 = new List(num3); + CollectionsMarshal.SetCount(list260, num3); + Span span95 = CollectionsMarshal.AsSpan(list260); + span95[0] = 132; + span95[1] = 133; skipAetheryteCondition3.InTerritory = list260; skipConditions13.AetheryteShortcutIf = skipAetheryteCondition3; skipConditions13.AethernetShortcutIf = new SkipAetheryteCondition @@ -473099,8 +389022,7 @@ public static class AssemblyQuestLoader reference199 = obj174; obj173.Steps = list259; reference198 = obj173; - num++; - ref QuestSequence reference200 = ref span258[num]; + ref QuestSequence reference200 = ref span94[1]; QuestSequence obj175 = new QuestSequence { Sequence = 1 @@ -473108,53 +389030,43 @@ public static class AssemblyQuestLoader num2 = 2; List list261 = new List(num2); CollectionsMarshal.SetCount(list261, num2); - Span span261 = CollectionsMarshal.AsSpan(list261); - index2 = 0; - ref QuestStep reference201 = ref span261[index2]; + Span span96 = CollectionsMarshal.AsSpan(list261); + ref QuestStep reference201 = ref span96[0]; 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); - Span span262 = CollectionsMarshal.AsSpan(list262); - index3 = 0; - span262[index3] = 1305; + CollectionsMarshal.AsSpan(list262)[0] = 1305; skipStepConditions11.InTerritory = list262; skipConditions14.StepIf = skipStepConditions11; questStep27.SkipConditions = skipConditions14; - index3 = 1; - List list263 = new List(index3); - CollectionsMarshal.SetCount(list263, index3); - Span span263 = CollectionsMarshal.AsSpan(list263); - num3 = 0; - span263[num3] = new DialogueChoice + num3 = 1; + List list263 = new List(num3); + CollectionsMarshal.SetCount(list263, num3); + CollectionsMarshal.AsSpan(list263)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_FESHLX102_05376_EVENTAREA_WARP_110_005") }; questStep27.DialogueChoices = list263; reference201 = questStep27; - index2++; - span261[index2] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); + span96[1] = new QuestStep(EInteractionType.Interact, 1054485u, new Vector3(68.436646f, 0f, -0.045776367f), 1305); obj175.Steps = list261; reference200 = obj175; - num++; - ref QuestSequence reference202 = ref span258[num]; + ref QuestSequence reference202 = ref span94[2]; QuestSequence obj176 = new QuestSequence { Sequence = 2 }; - 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); + 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); obj176.Steps = list264; reference202 = obj176; - num++; - ref QuestSequence reference203 = ref span258[num]; + ref QuestSequence reference203 = ref span94[3]; QuestSequence obj177 = new QuestSequence { Sequence = 3 @@ -473162,9 +389074,8 @@ public static class AssemblyQuestLoader num2 = 2; List list265 = new List(num2); CollectionsMarshal.SetCount(list265, num2); - Span span265 = CollectionsMarshal.AsSpan(list265); - index2 = 0; - ref QuestStep reference204 = ref span265[index2]; + Span span97 = CollectionsMarshal.AsSpan(list265); + ref QuestStep reference204 = ref span97[0]; QuestStep obj178 = new QuestStep(EInteractionType.Action, 1054486u, new Vector3(4.2266846f, 17f, 11.947815f), 1305) { Action = EAction.TreatersTrick @@ -473172,64 +389083,48 @@ public static class AssemblyQuestLoader num3 = 6; List list266 = new List(num3); CollectionsMarshal.SetCount(list266, num3); - 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); + 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); obj178.CompletionQuestVariablesFlags = list266; reference204 = obj178; - index2++; - span265[index2] = new QuestStep(EInteractionType.Action, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305) + span97[1] = new QuestStep(EInteractionType.Action, 1054489u, new Vector3(14.785889f, 17f, 105.85181f), 1305) { Action = EAction.TrickstersTreat }; obj177.Steps = list265; reference203 = obj177; - num++; - ref QuestSequence reference205 = ref span258[num]; + ref QuestSequence reference205 = ref span94[4]; QuestSequence obj179 = new QuestSequence { Sequence = 4 }; - index2 = 3; - List list267 = new List(index2); - CollectionsMarshal.SetCount(list267, index2); - Span span267 = CollectionsMarshal.AsSpan(list267); - num2 = 0; - ref QuestStep reference206 = ref span267[num2]; + num2 = 3; + List list267 = new List(num2); + CollectionsMarshal.SetCount(list267, num2); + Span span99 = CollectionsMarshal.AsSpan(list267); + ref QuestStep reference206 = ref span99[0]; QuestStep obj180 = new QuestStep(EInteractionType.Action, 1054488u, new Vector3(9.109558f, 0f, 100.02283f), 1305) { Action = EAction.TreatersTrick }; - 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); + 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); obj180.CompletionQuestVariablesFlags = list268; reference206 = obj180; - num2++; - ref QuestStep reference207 = ref span267[num2]; + ref QuestStep reference207 = ref span99[1]; QuestStep obj181 = new QuestStep(EInteractionType.Action, 1054487u, new Vector3(-43.86969f, 0f, -5.8442383f), 1305) { Action = EAction.TreatersTrick @@ -473237,30 +389132,22 @@ public static class AssemblyQuestLoader num3 = 6; List list269 = new List(num3); CollectionsMarshal.SetCount(list269, num3); - 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); + 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); obj181.CompletionQuestVariablesFlags = list269; reference207 = obj181; - num2++; - span267[num2] = new QuestStep(EInteractionType.Action, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) + span99[2] = new QuestStep(EInteractionType.Action, 1054490u, new Vector3(-54.795166f, 0f, -29.58728f), 1305) { Action = EAction.TrickstersTreat }; obj179.Steps = list267; reference205 = obj179; - num++; - ref QuestSequence reference208 = ref span258[num]; + ref QuestSequence reference208 = ref span94[5]; QuestSequence obj182 = new QuestSequence { Sequence = 5 @@ -473268,31 +389155,26 @@ public static class AssemblyQuestLoader num2 = 2; List list270 = new List(num2); CollectionsMarshal.SetCount(list270, num2); - Span span270 = CollectionsMarshal.AsSpan(list270); - index2 = 0; - span270[index2] = new QuestStep(EInteractionType.WalkTo, 1054794u, new Vector3(-50.278336f, 0f, -36.070293f), 1305) + Span span102 = CollectionsMarshal.AsSpan(list270); + span102[0] = new QuestStep(EInteractionType.WalkTo, 1054794u, new Vector3(-50.278336f, 0f, -36.070293f), 1305) { Mount = false }; - index2++; - span270[index2] = new QuestStep(EInteractionType.Interact, 1054794u, new Vector3(72.129395f, 0f, -0.5340576f), 1305) + span102[1] = new QuestStep(EInteractionType.Interact, 1054794u, new Vector3(72.129395f, 0f, -0.5340576f), 1305) { Mount = true }; obj182.Steps = list270; reference208 = obj182; - num++; - ref QuestSequence reference209 = ref span258[num]; + ref QuestSequence reference209 = ref span94[6]; QuestSequence obj183 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 1; - List list271 = new List(index2); - CollectionsMarshal.SetCount(list271, index2); - Span span271 = CollectionsMarshal.AsSpan(list271); - num2 = 0; - ref QuestStep reference210 = ref span271[num2]; + num2 = 1; + List list271 = new List(num2); + CollectionsMarshal.SetCount(list271, num2); + ref QuestStep reference210 = ref CollectionsMarshal.AsSpan(list271)[0]; QuestStep obj184 = new QuestStep(EInteractionType.CompleteQuest, 1054496u, new Vector3(-49.485046f, 6.4999943f, -90.836975f), 133) { AetheryteShortcut = EAetheryteLocation.Gridania, @@ -473304,14 +389186,12 @@ public static class AssemblyQuestLoader }; SkipConditions skipConditions15 = new SkipConditions(); SkipAetheryteCondition skipAetheryteCondition4 = new SkipAetheryteCondition(); - 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; + num3 = 2; + List list272 = new List(num3); + CollectionsMarshal.SetCount(list272, num3); + Span span103 = CollectionsMarshal.AsSpan(list272); + span103[0] = 132; + span103[1] = 133; skipAetheryteCondition4.InTerritory = list272; skipConditions15.AetheryteShortcutIf = skipAetheryteCondition4; skipConditions15.AethernetShortcutIf = new SkipAetheryteCondition @@ -473329,16 +389209,13 @@ public static class AssemblyQuestLoader num = 1; List list273 = new List(num); CollectionsMarshal.SetCount(list273, num); - Span span273 = CollectionsMarshal.AsSpan(list273); - index = 0; - span273[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list273)[0] = "WigglyMuffin"; questRoot28.Author = list273; - index = 8; - List list274 = new List(index); - CollectionsMarshal.SetCount(list274, index); - Span span274 = CollectionsMarshal.AsSpan(list274); - num = 0; - ref QuestSequence reference211 = ref span274[num]; + num = 8; + List list274 = new List(num); + CollectionsMarshal.SetCount(list274, num); + Span span104 = CollectionsMarshal.AsSpan(list274); + ref QuestSequence reference211 = ref span104[0]; QuestSequence obj185 = new QuestSequence { Sequence = 0 @@ -473346,9 +389223,7 @@ public static class AssemblyQuestLoader num2 = 1; List list275 = new List(num2); CollectionsMarshal.SetCount(list275, num2); - Span span275 = CollectionsMarshal.AsSpan(list275); - index2 = 0; - span275[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) + CollectionsMarshal.AsSpan(list275)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053655u, new Vector3(231.64722f, 50.749847f, 210.25403f), 1186) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -473366,20 +389241,17 @@ public static class AssemblyQuestLoader }; obj185.Steps = list275; reference211 = obj185; - num++; - ref QuestSequence reference212 = ref span274[num]; + ref QuestSequence reference212 = ref span104[1]; QuestSequence obj186 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -473390,8 +389262,7 @@ public static class AssemblyQuestLoader }; obj186.Steps = list276; reference212 = obj186; - num++; - ref QuestSequence reference213 = ref span274[num]; + ref QuestSequence reference213 = ref span104[2]; QuestSequence obj187 = new QuestSequence { Sequence = 2 @@ -473399,9 +389270,7 @@ public static class AssemblyQuestLoader num2 = 1; List list277 = new List(num2); CollectionsMarshal.SetCount(list277, num2); - Span span277 = CollectionsMarshal.AsSpan(list277); - index2 = 0; - span277[index2] = new QuestStep(EInteractionType.Interact, 1054753u, new Vector3(639.33765f, 146.06567f, 706.4773f), 1191) + CollectionsMarshal.AsSpan(list277)[0] = new QuestStep(EInteractionType.Interact, 1054753u, new Vector3(639.33765f, 146.06567f, 706.4773f), 1191) { Fly = true, AetheryteShortcut = EAetheryteLocation.HeritageFoundYyasulaniStation, @@ -473415,22 +389284,18 @@ public static class AssemblyQuestLoader }; obj187.Steps = list277; reference213 = obj187; - num++; - ref QuestSequence reference214 = ref span274[num]; + ref QuestSequence reference214 = ref span104[3]; QuestSequence obj188 = new QuestSequence { Sequence = 3 }; - 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); + 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); obj188.Steps = list278; reference214 = obj188; - num++; - ref QuestSequence reference215 = ref span274[num]; + ref QuestSequence reference215 = ref span104[4]; QuestSequence obj189 = new QuestSequence { Sequence = 4 @@ -473438,48 +389303,40 @@ public static class AssemblyQuestLoader num2 = 1; List list279 = new List(num2); CollectionsMarshal.SetCount(list279, num2); - Span span279 = CollectionsMarshal.AsSpan(list279); - index2 = 0; - span279[index2] = new QuestStep(EInteractionType.Interact, 1054760u, new Vector3(-277.27173f, 15.865601f, -195.36127f), 1190) + CollectionsMarshal.AsSpan(list279)[0] = new QuestStep(EInteractionType.Interact, 1054760u, new Vector3(-277.27173f, 15.865601f, -195.36127f), 1190) { Fly = true }; obj189.Steps = list279; reference215 = obj189; - num++; - ref QuestSequence reference216 = ref span274[num]; + ref QuestSequence reference216 = ref span104[5]; QuestSequence obj190 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Land = true }; - num2++; - span280[num2] = new QuestStep(EInteractionType.Interact, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190) + span106[1] = new QuestStep(EInteractionType.Interact, 1049374u, new Vector3(-345.2049f, 18.198153f, -163.50049f), 1190) { Fly = true }; - num2++; - span280[num2] = new QuestStep(EInteractionType.Interact, 1049384u, new Vector3(-321.98065f, 18.589752f, -114.39691f), 1190) + span106[2] = new QuestStep(EInteractionType.Interact, 1049384u, new Vector3(-321.98065f, 18.589752f, -114.39691f), 1190) { Fly = true }; - num2++; - span280[num2] = new QuestStep(EInteractionType.Interact, 1054763u, new Vector3(-282.12408f, 18.276659f, -87.296875f), 1190) + span106[3] = new QuestStep(EInteractionType.Interact, 1054763u, new Vector3(-282.12408f, 18.276659f, -87.296875f), 1190) { Fly = true }; obj190.Steps = list280; reference216 = obj190; - num++; - ref QuestSequence reference217 = ref span274[num]; + ref QuestSequence reference217 = ref span104[6]; QuestSequence obj191 = new QuestSequence { Sequence = 6 @@ -473487,23 +389344,18 @@ public static class AssemblyQuestLoader num2 = 1; List list281 = new List(num2); CollectionsMarshal.SetCount(list281, num2); - Span span281 = CollectionsMarshal.AsSpan(list281); - index2 = 0; - span281[index2] = new QuestStep(EInteractionType.Interact, 1054764u, new Vector3(-306.32483f, 18.195349f, -87.60205f), 1190); + CollectionsMarshal.AsSpan(list281)[0] = new QuestStep(EInteractionType.Interact, 1054764u, new Vector3(-306.32483f, 18.195349f, -87.60205f), 1190); obj191.Steps = list281; reference217 = obj191; - num++; - ref QuestSequence reference218 = ref span274[num]; + ref QuestSequence reference218 = ref span104[7]; QuestSequence obj192 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Fly = true, NextQuestId = new QuestId(5379) @@ -473517,16 +389369,13 @@ public static class AssemblyQuestLoader num = 1; List list283 = new List(num); CollectionsMarshal.SetCount(list283, num); - Span span283 = CollectionsMarshal.AsSpan(list283); - index = 0; - span283[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list283)[0] = "WigglyMuffin"; questRoot29.Author = list283; - index = 12; - List list284 = new List(index); - CollectionsMarshal.SetCount(list284, index); - Span span284 = CollectionsMarshal.AsSpan(list284); - num = 0; - ref QuestSequence reference219 = ref span284[num]; + num = 12; + List list284 = new List(num); + CollectionsMarshal.SetCount(list284, num); + Span span107 = CollectionsMarshal.AsSpan(list284); + ref QuestSequence reference219 = ref span107[0]; QuestSequence obj193 = new QuestSequence { Sequence = 0 @@ -473534,9 +389383,7 @@ public static class AssemblyQuestLoader num2 = 1; List list285 = new List(num2); CollectionsMarshal.SetCount(list285, num2); - Span span285 = CollectionsMarshal.AsSpan(list285); - index2 = 0; - span285[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054773u, new Vector3(-329.21344f, 18.02224f, -137.28546f), 1190) + CollectionsMarshal.AsSpan(list285)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054773u, new Vector3(-329.21344f, 18.02224f, -137.28546f), 1190) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniShesheneweziSprings, @@ -473550,25 +389397,21 @@ public static class AssemblyQuestLoader }; obj193.Steps = list285; reference219 = obj193; - num++; - ref QuestSequence reference220 = ref span284[num]; + ref QuestSequence reference220 = ref span107[1]; QuestSequence obj194 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Fly = true }; obj194.Steps = list286; reference220 = obj194; - num++; - ref QuestSequence reference221 = ref span284[num]; + ref QuestSequence reference221 = ref span107[2]; QuestSequence obj195 = new QuestSequence { Sequence = 2 @@ -473576,30 +389419,24 @@ public static class AssemblyQuestLoader num2 = 1; List list287 = new List(num2); CollectionsMarshal.SetCount(list287, num2); - Span span287 = CollectionsMarshal.AsSpan(list287); - index2 = 0; - span287[index2] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190); + CollectionsMarshal.AsSpan(list287)[0] = new QuestStep(EInteractionType.Interact, 1054775u, new Vector3(-236.13336f, -0.8372388f, 247.11987f), 1190); obj195.Steps = list287; reference221 = obj195; - num++; - ref QuestSequence reference222 = ref span284[num]; + ref QuestSequence reference222 = ref span107[3]; QuestSequence obj196 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj196.Steps = list288; reference222 = obj196; - num++; - ref QuestSequence reference223 = ref span284[num]; + ref QuestSequence reference223 = ref span107[4]; QuestSequence obj197 = new QuestSequence { Sequence = 4 @@ -473607,33 +389444,27 @@ public static class AssemblyQuestLoader num2 = 1; List list289 = new List(num2); CollectionsMarshal.SetCount(list289, num2); - Span span289 = CollectionsMarshal.AsSpan(list289); - index2 = 0; - span289[index2] = new QuestStep(EInteractionType.Interact, 1054778u, new Vector3(-127.6723f, 1.5186902f, 336.7207f), 1190) + CollectionsMarshal.AsSpan(list289)[0] = new QuestStep(EInteractionType.Interact, 1054778u, new Vector3(-127.6723f, 1.5186902f, 336.7207f), 1190) { Fly = true }; obj197.Steps = list289; reference223 = obj197; - num++; - ref QuestSequence reference224 = ref span284[num]; + ref QuestSequence reference224 = ref span107[5]; QuestSequence obj198 = new QuestSequence { Sequence = 5 }; - 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) + 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) { Fly = true }; obj198.Steps = list290; reference224 = obj198; - num++; - ref QuestSequence reference225 = ref span284[num]; + ref QuestSequence reference225 = ref span107[6]; QuestSequence obj199 = new QuestSequence { Sequence = 6 @@ -473641,26 +389472,22 @@ public static class AssemblyQuestLoader num2 = 1; List list291 = new List(num2); CollectionsMarshal.SetCount(list291, num2); - Span span291 = CollectionsMarshal.AsSpan(list291); - index2 = 0; - span291[index2] = new QuestStep(EInteractionType.Interact, 1054780u, new Vector3(-111.28406f, -7.4034004f, 529.9f), 1190) + CollectionsMarshal.AsSpan(list291)[0] = new QuestStep(EInteractionType.Interact, 1054780u, new Vector3(-111.28406f, -7.4034004f, 529.9f), 1190) { Fly = true }; obj199.Steps = list291; reference225 = obj199; - num++; - ref QuestSequence reference226 = ref span284[num]; + ref QuestSequence reference226 = ref span107[7]; QuestSequence obj200 = new QuestSequence { Sequence = 7 }; - index2 = 3; - List list292 = new List(index2); - CollectionsMarshal.SetCount(list292, index2); - Span span292 = CollectionsMarshal.AsSpan(list292); - num2 = 0; - ref QuestStep reference227 = ref span292[num2]; + num2 = 3; + List list292 = new List(num2); + CollectionsMarshal.SetCount(list292, num2); + Span span108 = CollectionsMarshal.AsSpan(list292); + ref QuestStep reference227 = ref span108[0]; QuestStep obj201 = new QuestStep(EInteractionType.Interact, 2014869u, new Vector3(-286.18298f, -45.91449f, 624.567f), 1190) { Fly = true @@ -473668,51 +389495,36 @@ public static class AssemblyQuestLoader num3 = 6; List list293 = new List(num3); CollectionsMarshal.SetCount(list293, num3); - 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); + 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); obj201.CompletionQuestVariablesFlags = list293; reference227 = obj201; - num2++; - ref QuestStep reference228 = ref span292[num2]; + ref QuestStep reference228 = ref span108[1]; QuestStep questStep28 = new QuestStep(EInteractionType.Interact, 2014868u, new Vector3(-273.82324f, -44.38855f, 627.25244f), 1190); - 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); + 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); questStep28.CompletionQuestVariablesFlags = list294; reference228 = questStep28; - num2++; - span292[num2] = new QuestStep(EInteractionType.Interact, 2014867u, new Vector3(-214.12988f, -39.871887f, 659.8153f), 1190) + span108[2] = new QuestStep(EInteractionType.Interact, 2014867u, new Vector3(-214.12988f, -39.871887f, 659.8153f), 1190) { Fly = true }; obj200.Steps = list292; reference226 = obj200; - num++; - ref QuestSequence reference229 = ref span284[num]; + ref QuestSequence reference229 = ref span107[8]; QuestSequence obj202 = new QuestSequence { Sequence = 8 @@ -473720,23 +389532,19 @@ public static class AssemblyQuestLoader num2 = 1; List list295 = new List(num2); CollectionsMarshal.SetCount(list295, num2); - Span span295 = CollectionsMarshal.AsSpan(list295); - index2 = 0; - span295[index2] = new QuestStep(EInteractionType.Interact, 1054782u, new Vector3(-186.69415f, -33.644463f, 658.50305f), 1190); + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Interact, 1054782u, new Vector3(-186.69415f, -33.644463f, 658.50305f), 1190); obj202.Steps = list295; reference229 = obj202; - num++; - ref QuestSequence reference230 = ref span284[num]; + ref QuestSequence reference230 = ref span107[9]; QuestSequence obj203 = new QuestSequence { Sequence = 9 }; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.ShaaloaniHhusatahwi, @@ -473753,12 +389561,10 @@ public static class AssemblyQuestLoader } } }; - num2++; - span296[num2] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); + span111[1] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); obj203.Steps = list296; reference230 = obj203; - num++; - ref QuestSequence reference231 = ref span284[num]; + ref QuestSequence reference231 = ref span107[10]; QuestSequence obj204 = new QuestSequence { Sequence = 10 @@ -473766,23 +389572,18 @@ public static class AssemblyQuestLoader num2 = 1; List list297 = new List(num2); CollectionsMarshal.SetCount(list297, num2); - Span span297 = CollectionsMarshal.AsSpan(list297); - index2 = 0; - span297[index2] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); + CollectionsMarshal.AsSpan(list297)[0] = new QuestStep(EInteractionType.Interact, 1051501u, new Vector3(488.0598f, 3.2202392f, 484.03137f), 1190); obj204.Steps = list297; reference231 = obj204; - num++; - ref QuestSequence reference232 = ref span284[num]; + ref QuestSequence reference232 = ref span107[11]; QuestSequence obj205 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -473807,16 +389608,13 @@ public static class AssemblyQuestLoader num = 1; List list299 = new List(num); CollectionsMarshal.SetCount(list299, num); - Span span299 = CollectionsMarshal.AsSpan(list299); - index = 0; - span299[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list299)[0] = "WigglyMuffin"; questRoot30.Author = list299; - index = 4; - List list300 = new List(index); - CollectionsMarshal.SetCount(list300, index); - Span span300 = CollectionsMarshal.AsSpan(list300); - num = 0; - ref QuestSequence reference233 = ref span300[num]; + num = 4; + List list300 = new List(num); + CollectionsMarshal.SetCount(list300, num); + Span span112 = CollectionsMarshal.AsSpan(list300); + ref QuestSequence reference233 = ref span112[0]; QuestSequence obj206 = new QuestSequence { Sequence = 0 @@ -473824,30 +389622,24 @@ public static class AssemblyQuestLoader num2 = 1; List list301 = new List(num2); CollectionsMarshal.SetCount(list301, num2); - Span span301 = CollectionsMarshal.AsSpan(list301); - index2 = 0; - span301[index2] = new QuestStep(EInteractionType.AcceptQuest, 1039457u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + CollectionsMarshal.AsSpan(list301)[0] = new QuestStep(EInteractionType.AcceptQuest, 1039457u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj206.Steps = list301; reference233 = obj206; - num++; - ref QuestSequence reference234 = ref span300[num]; + ref QuestSequence reference234 = ref span112[1]; QuestSequence obj207 = new QuestSequence { Sequence = 1 }; - 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) + 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) { Emote = EEmote.Doubt }; obj207.Steps = list302; reference234 = obj207; - num++; - ref QuestSequence reference235 = ref span300[num]; + ref QuestSequence reference235 = ref span112[2]; QuestSequence obj208 = new QuestSequence { Sequence = 2 @@ -473855,23 +389647,18 @@ public static class AssemblyQuestLoader num2 = 1; List list303 = new List(num2); CollectionsMarshal.SetCount(list303, num2); - Span span303 = CollectionsMarshal.AsSpan(list303); - index2 = 0; - span303[index2] = new QuestStep(EInteractionType.Interact, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); + CollectionsMarshal.AsSpan(list303)[0] = new QuestStep(EInteractionType.Interact, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278); obj208.Steps = list303; reference235 = obj208; - num++; - ref QuestSequence reference236 = ref span300[num]; + ref QuestSequence reference236 = ref span112[3]; QuestSequence obj209 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5381) }; @@ -473884,16 +389671,13 @@ public static class AssemblyQuestLoader num = 1; List list305 = new List(num); CollectionsMarshal.SetCount(list305, num); - Span span305 = CollectionsMarshal.AsSpan(list305); - index = 0; - span305[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list305)[0] = "WigglyMuffin"; questRoot31.Author = list305; - index = 3; - List list306 = new List(index); - CollectionsMarshal.SetCount(list306, index); - Span span306 = CollectionsMarshal.AsSpan(list306); - num = 0; - ref QuestSequence reference237 = ref span306[num]; + num = 3; + List list306 = new List(num); + CollectionsMarshal.SetCount(list306, num); + Span span113 = CollectionsMarshal.AsSpan(list306); + ref QuestSequence reference237 = ref span113[0]; QuestSequence obj210 = new QuestSequence { Sequence = 0 @@ -473901,27 +389685,21 @@ public static class AssemblyQuestLoader num2 = 1; List list307 = new List(num2); CollectionsMarshal.SetCount(list307, num2); - Span span307 = CollectionsMarshal.AsSpan(list307); - index2 = 0; - span307[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); + CollectionsMarshal.AsSpan(list307)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053906u, new Vector3(25.802979f, 0f, 13.38208f), 1278); obj210.Steps = list307; reference237 = obj210; - num++; - ref QuestSequence reference238 = ref span306[num]; + ref QuestSequence reference238 = ref span113[1]; QuestSequence obj211 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj211.Steps = list308; reference238 = obj211; - num++; - ref QuestSequence reference239 = ref span306[num]; + ref QuestSequence reference239 = ref span113[2]; QuestSequence obj212 = new QuestSequence { Sequence = byte.MaxValue @@ -473929,9 +389707,7 @@ public static class AssemblyQuestLoader num2 = 1; List list309 = new List(num2); CollectionsMarshal.SetCount(list309, num2); - Span span309 = CollectionsMarshal.AsSpan(list309); - index2 = 0; - span309[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278) + CollectionsMarshal.AsSpan(list309)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053908u, new Vector3(28.854736f, 0f, 13.351624f), 1278) { NextQuestId = new QuestId(5382) }; @@ -473944,33 +389720,26 @@ public static class AssemblyQuestLoader num = 1; List list310 = new List(num); CollectionsMarshal.SetCount(list310, num); - Span span310 = CollectionsMarshal.AsSpan(list310); - index = 0; - span310[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list310)[0] = "WigglyMuffin"; questRoot32.Author = list310; - index = 2; - List list311 = new List(index); - CollectionsMarshal.SetCount(list311, index); - Span span311 = CollectionsMarshal.AsSpan(list311); - num = 0; - ref QuestSequence reference240 = ref span311[num]; + num = 2; + List list311 = new List(num); + CollectionsMarshal.SetCount(list311, num); + Span span114 = CollectionsMarshal.AsSpan(list311); + ref QuestSequence reference240 = ref span114[0]; QuestSequence obj213 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list312 = new List(num2); + CollectionsMarshal.SetCount(list312, num2); + ref QuestStep reference241 = ref CollectionsMarshal.AsSpan(list312)[0]; 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); - Span span313 = CollectionsMarshal.AsSpan(list313); - index3 = 0; - span313[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list313)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGKW103_05382_Q1_000_000"), @@ -473981,8 +389750,7 @@ public static class AssemblyQuestLoader reference241 = questStep29; obj213.Steps = list312; reference240 = obj213; - num++; - ref QuestSequence reference242 = ref span311[num]; + ref QuestSequence reference242 = ref span114[1]; QuestSequence obj214 = new QuestSequence { Sequence = byte.MaxValue @@ -473990,9 +389758,7 @@ public static class AssemblyQuestLoader num2 = 1; List list314 = new List(num2); CollectionsMarshal.SetCount(list314, num2); - Span span314 = CollectionsMarshal.AsSpan(list314); - index2 = 0; - span314[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053905u, new Vector3(29.55664f, 0f, 10.788086f), 1278); + CollectionsMarshal.AsSpan(list314)[0] = new QuestStep(EInteractionType.CompleteQuest, 1053905u, new Vector3(29.55664f, 0f, 10.788086f), 1278); obj214.Steps = list314; reference242 = obj214; questRoot32.QuestSequence = list311; @@ -474006,16 +389772,13 @@ public static class AssemblyQuestLoader int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list)[0] = "WigglyMuffin"; questRoot.Author = list; - index = 6; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - ref QuestSequence reference = ref span2[num]; + num = 6; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + Span span = CollectionsMarshal.AsSpan(list2); + ref QuestSequence reference = ref span[0]; QuestSequence obj = new QuestSequence { Sequence = 0 @@ -474023,9 +389786,7 @@ public static class AssemblyQuestLoader int num2 = 1; List list3 = new List(num2); CollectionsMarshal.SetCount(list3, num2); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index2 = 0; - span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054946u, new Vector3(-44.38855f, 2.8244886f, -23.91095f), 819) + CollectionsMarshal.AsSpan(list3)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054946u, new Vector3(-44.38855f, 2.8244886f, -23.91095f), 819) { AetheryteShortcut = EAetheryteLocation.Crystarium, SkipConditions = new SkipConditions @@ -474038,18 +389799,16 @@ public static class AssemblyQuestLoader }; obj.Steps = list3; reference = obj; - num++; - ref QuestSequence reference2 = ref span2[num]; + ref QuestSequence reference2 = ref span[1]; QuestSequence obj2 = new QuestSequence { Sequence = 1 }; - 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) + 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) { StopDistance = 0.25f, AethernetShortcut = new AethernetShortcut @@ -474062,12 +389821,10 @@ public static class AssemblyQuestLoader Position = new Vector3(-109.03213f, 1.9211035f, -128.47693f) } }; - num2++; - span4[num2] = new QuestStep(EInteractionType.Interact, 1054948u, new Vector3(-106.126526f, -47.55987f, -136.0647f), 819); + span2[1] = new QuestStep(EInteractionType.Interact, 1054948u, new Vector3(-106.126526f, -47.55987f, -136.0647f), 819); obj2.Steps = list4; reference2 = obj2; - num++; - ref QuestSequence reference3 = ref span2[num]; + ref QuestSequence reference3 = ref span[2]; QuestSequence obj3 = new QuestSequence { Sequence = 2 @@ -474075,33 +389832,27 @@ public static class AssemblyQuestLoader num2 = 1; List list5 = new List(num2); CollectionsMarshal.SetCount(list5, num2); - Span span5 = CollectionsMarshal.AsSpan(list5); - index2 = 0; - span5[index2] = new QuestStep(EInteractionType.Interact, 1054949u, new Vector3(404.65393f, 85.387535f, -699.54987f), 816) + CollectionsMarshal.AsSpan(list5)[0] = new QuestStep(EInteractionType.Interact, 1054949u, new Vector3(404.65393f, 85.387535f, -699.54987f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf }; obj3.Steps = list5; reference3 = obj3; - num++; - ref QuestSequence reference4 = ref span2[num]; + ref QuestSequence reference4 = ref span[3]; QuestSequence obj4 = new QuestSequence { Sequence = 3 }; - 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) + 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) { Fly = true }; obj4.Steps = list6; reference4 = obj4; - num++; - ref QuestSequence reference5 = ref span2[num]; + ref QuestSequence reference5 = ref span[4]; QuestSequence obj5 = new QuestSequence { Sequence = 4 @@ -474109,26 +389860,21 @@ public static class AssemblyQuestLoader num2 = 1; List list7 = new List(num2); CollectionsMarshal.SetCount(list7, num2); - Span span7 = CollectionsMarshal.AsSpan(list7); - index2 = 0; - span7[index2] = new QuestStep(EInteractionType.Interact, 1054999u, new Vector3(418.44812f, 89.44323f, -777.0962f), 816) + CollectionsMarshal.AsSpan(list7)[0] = new QuestStep(EInteractionType.Interact, 1054999u, new Vector3(418.44812f, 89.44323f, -777.0962f), 816) { Fly = true }; obj5.Steps = list7; reference5 = obj5; - num++; - ref QuestSequence reference6 = ref span2[num]; + ref QuestSequence reference6 = ref span[5]; QuestSequence obj6 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj6.Steps = list8; reference6 = obj6; questRoot.QuestSequence = list2; @@ -474138,16 +389884,13 @@ public static class AssemblyQuestLoader num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - index = 0; - span9[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list9)[0] = "WigglyMuffin"; questRoot2.Author = list9; - index = 2; - List list10 = new List(index); - CollectionsMarshal.SetCount(list10, index); - Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - ref QuestSequence reference7 = ref span10[num]; + num = 2; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + Span span3 = CollectionsMarshal.AsSpan(list10); + ref QuestSequence reference7 = ref span3[0]; QuestSequence obj7 = new QuestSequence { Sequence = 0 @@ -474155,9 +389898,7 @@ public static class AssemblyQuestLoader num2 = 1; List list11 = new List(num2); CollectionsMarshal.SetCount(list11, num2); - Span span11 = CollectionsMarshal.AsSpan(list11); - index2 = 0; - span11[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + CollectionsMarshal.AsSpan(list11)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -474170,18 +389911,15 @@ public static class AssemblyQuestLoader }; obj7.Steps = list11; reference7 = obj7; - num++; - ref QuestSequence reference8 = ref span10[num]; + ref QuestSequence reference8 = ref span3[1]; QuestSequence obj8 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj8.Steps = list12; reference8 = obj8; questRoot2.QuestSequence = list10; @@ -474191,16 +389929,13 @@ public static class AssemblyQuestLoader num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - index = 0; - span13[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list13)[0] = "WigglyMuffin"; questRoot3.Author = list13; - index = 3; - List list14 = new List(index); - CollectionsMarshal.SetCount(list14, index); - Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - ref QuestSequence reference9 = ref span14[num]; + num = 3; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + Span span4 = CollectionsMarshal.AsSpan(list14); + ref QuestSequence reference9 = ref span4[0]; QuestSequence obj9 = new QuestSequence { Sequence = 0 @@ -474208,9 +389943,7 @@ public static class AssemblyQuestLoader num2 = 1; List list15 = new List(num2); CollectionsMarshal.SetCount(list15, num2); - Span span15 = CollectionsMarshal.AsSpan(list15); - index2 = 0; - span15[index2] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + CollectionsMarshal.AsSpan(list15)[0] = new QuestStep(EInteractionType.AcceptQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -474223,18 +389956,15 @@ public static class AssemblyQuestLoader }; obj9.Steps = list15; reference9 = obj9; - num++; - ref QuestSequence reference10 = ref span14[num]; + ref QuestSequence reference10 = ref span4[1]; QuestSequence obj10 = new QuestSequence { Sequence = 1 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -474247,8 +389977,7 @@ public static class AssemblyQuestLoader }; obj10.Steps = list16; reference10 = obj10; - num++; - ref QuestSequence reference11 = ref span14[num]; + ref QuestSequence reference11 = ref span4[2]; QuestSequence obj11 = new QuestSequence { Sequence = byte.MaxValue @@ -474256,9 +389985,7 @@ public static class AssemblyQuestLoader num2 = 1; List list17 = new List(num2); CollectionsMarshal.SetCount(list17, num2); - Span span17 = CollectionsMarshal.AsSpan(list17); - index2 = 0; - span17[index2] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) + CollectionsMarshal.AsSpan(list17)[0] = new QuestStep(EInteractionType.CompleteQuest, 1054945u, new Vector3(418.7533f, 89.46841f, -779.5682f), 816) { AetheryteShortcut = EAetheryteLocation.IlMhegWolekdorf, SkipConditions = new SkipConditions @@ -474278,30 +390005,24 @@ public static class AssemblyQuestLoader num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span18 = CollectionsMarshal.AsSpan(list18); - index = 0; - span18[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list18)[0] = "WigglyMuffin"; questRoot4.Author = list18; - index = 3; - List list19 = new List(index); - CollectionsMarshal.SetCount(list19, index); - Span span19 = CollectionsMarshal.AsSpan(list19); - num = 0; - ref QuestSequence reference12 = ref span19[num]; + num = 3; + List list19 = new List(num); + CollectionsMarshal.SetCount(list19, num); + Span span5 = CollectionsMarshal.AsSpan(list19); + ref QuestSequence reference12 = ref span5[0]; QuestSequence obj12 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj12.Steps = list20; reference12 = obj12; - num++; - ref QuestSequence reference13 = ref span19[num]; + ref QuestSequence reference13 = ref span5[1]; QuestSequence obj13 = new QuestSequence { Sequence = 1 @@ -474309,16 +390030,12 @@ public static class AssemblyQuestLoader num2 = 1; List list21 = new List(num2); CollectionsMarshal.SetCount(list21, num2); - Span span21 = CollectionsMarshal.AsSpan(list21); - index2 = 0; - ref QuestStep reference14 = ref span21[index2]; + ref QuestStep reference14 = ref CollectionsMarshal.AsSpan(list21)[0]; 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); - Span span22 = CollectionsMarshal.AsSpan(list22); - int index3 = 0; - span22[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list22)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK201_05409_SYSTEM_100_021") @@ -474327,18 +390044,15 @@ public static class AssemblyQuestLoader reference14 = questStep; obj13.Steps = list21; reference13 = obj13; - num++; - ref QuestSequence reference15 = ref span19[num]; + ref QuestSequence reference15 = ref span5[2]; QuestSequence obj14 = new QuestSequence { Sequence = byte.MaxValue }; - 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); + 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); obj14.Steps = list23; reference15 = obj14; questRoot4.QuestSequence = list19; @@ -474348,16 +390062,13 @@ public static class AssemblyQuestLoader num = 1; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span24 = CollectionsMarshal.AsSpan(list24); - index = 0; - span24[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list24)[0] = "WigglyMuffin"; questRoot5.Author = list24; - index = 7; - List list25 = new List(index); - CollectionsMarshal.SetCount(list25, index); - Span span25 = CollectionsMarshal.AsSpan(list25); - num = 0; - ref QuestSequence reference16 = ref span25[num]; + num = 7; + List list25 = new List(num); + CollectionsMarshal.SetCount(list25, num); + Span span6 = CollectionsMarshal.AsSpan(list25); + ref QuestSequence reference16 = ref span6[0]; QuestSequence obj15 = new QuestSequence { Sequence = 0 @@ -474365,27 +390076,21 @@ public static class AssemblyQuestLoader num2 = 1; List list26 = new List(num2); CollectionsMarshal.SetCount(list26, num2); - Span span26 = CollectionsMarshal.AsSpan(list26); - index2 = 0; - span26[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); + CollectionsMarshal.AsSpan(list26)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053219u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291); obj15.Steps = list26; reference16 = obj15; - num++; - ref QuestSequence reference17 = ref span25[num]; + ref QuestSequence reference17 = ref span6[1]; QuestSequence obj16 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj16.Steps = list27; reference17 = obj16; - num++; - ref QuestSequence reference18 = ref span25[num]; + ref QuestSequence reference18 = ref span6[2]; QuestSequence obj17 = new QuestSequence { Sequence = 2 @@ -474393,39 +390098,33 @@ public static class AssemblyQuestLoader num2 = 2; List list28 = new List(num2); CollectionsMarshal.SetCount(list28, num2); - 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) + 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) { StopDistance = 0.25f, Mount = false }; obj17.Steps = list28; reference18 = obj17; - num++; - ref QuestSequence reference19 = ref span25[num]; + ref QuestSequence reference19 = ref span6[3]; QuestSequence obj18 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f, Mount = false }; obj18.Steps = list29; reference19 = obj18; - num++; - ref QuestSequence reference20 = ref span25[num]; + ref QuestSequence reference20 = ref span6[4]; QuestSequence obj19 = new QuestSequence { Sequence = 4 @@ -474433,45 +390132,38 @@ public static class AssemblyQuestLoader num2 = 2; List list30 = new List(num2); CollectionsMarshal.SetCount(list30, num2); - 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) + 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) { StopDistance = 0.25f, Mount = false }; obj19.Steps = list30; reference20 = obj19; - num++; - ref QuestSequence reference21 = ref span25[num]; + ref QuestSequence reference21 = ref span6[5]; QuestSequence obj20 = new QuestSequence { Sequence = 5 }; - index2 = 1; - List list31 = new List(index2); - CollectionsMarshal.SetCount(list31, index2); - Span span31 = CollectionsMarshal.AsSpan(list31); - num2 = 0; - ref QuestStep reference22 = ref span31[num2]; + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref QuestStep reference22 = ref CollectionsMarshal.AsSpan(list31)[0]; 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" }; - index3 = 2; - List list32 = new List(index3); - CollectionsMarshal.SetCount(list32, index3); - Span span32 = CollectionsMarshal.AsSpan(list32); - num3 = 0; - span32[num3] = new DialogueChoice + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span10 = CollectionsMarshal.AsSpan(list32); + span10[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWK202_05410_Q2_000_000") }; - num3++; - span32[num3] = new DialogueChoice + span10[1] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWK202_05410_Q3_000_000"), @@ -474481,23 +390173,17 @@ public static class AssemblyQuestLoader num3 = 5; List list33 = new List(num3); CollectionsMarshal.SetCount(list33, num3); - 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; + Span span11 = CollectionsMarshal.AsSpan(list33); + span11[0] = 0u; + span11[1] = 1u; + span11[2] = 2u; + span11[3] = 3u; + span11[4] = 4u; obj21.PointMenuChoices = list33; reference22 = obj21; obj20.Steps = list31; reference21 = obj20; - num++; - ref QuestSequence reference23 = ref span25[num]; + ref QuestSequence reference23 = ref span6[6]; QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue @@ -474505,15 +390191,13 @@ public static class AssemblyQuestLoader num2 = 2; List list34 = new List(num2); CollectionsMarshal.SetCount(list34, num2); - Span span34 = CollectionsMarshal.AsSpan(list34); - index2 = 0; - span34[index2] = new QuestStep(EInteractionType.Action, null, null, 1291) + Span span12 = CollectionsMarshal.AsSpan(list34); + span12[0] = new QuestStep(EInteractionType.Action, null, null, 1291) { Comment = "Use Stellar Return to teleport back", Action = EAction.DutyAction1 }; - index2++; - span34[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053328u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291) + span12[1] = new QuestStep(EInteractionType.CompleteQuest, 1053328u, new Vector3(287.49524f, 52.00211f, -382.9862f), 1291) { NextQuestId = new QuestId(5411) }; @@ -474526,33 +390210,26 @@ public static class AssemblyQuestLoader num = 1; List list35 = new List(num); CollectionsMarshal.SetCount(list35, num); - Span span35 = CollectionsMarshal.AsSpan(list35); - index = 0; - span35[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list35)[0] = "WigglyMuffin"; questRoot6.Author = list35; - index = 3; - List list36 = new List(index); - CollectionsMarshal.SetCount(list36, index); - Span span36 = CollectionsMarshal.AsSpan(list36); - num = 0; - ref QuestSequence reference24 = ref span36[num]; + num = 3; + List list36 = new List(num); + CollectionsMarshal.SetCount(list36, num); + Span span13 = CollectionsMarshal.AsSpan(list36); + ref QuestSequence reference24 = ref span13[0]; QuestSequence obj23 = new QuestSequence { Sequence = 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]; + num2 = 1; + List list37 = new List(num2); + CollectionsMarshal.SetCount(list37, num2); + ref QuestStep reference25 = ref CollectionsMarshal.AsSpan(list37)[0]; QuestStep questStep2 = new QuestStep(EInteractionType.AcceptQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - index3 = 1; - List list38 = new List(index3); - CollectionsMarshal.SetCount(list38, index3); - Span span38 = CollectionsMarshal.AsSpan(list38); - num3 = 0; - span38[num3] = new DialogueChoice + num3 = 1; + List list38 = new List(num3); + CollectionsMarshal.SetCount(list38, num3); + CollectionsMarshal.AsSpan(list38)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ201_05411_Q1_000_000"), @@ -474562,8 +390239,7 @@ public static class AssemblyQuestLoader reference25 = questStep2; obj23.Steps = list37; reference24 = obj23; - num++; - ref QuestSequence reference26 = ref span36[num]; + ref QuestSequence reference26 = ref span13[1]; QuestSequence obj24 = new QuestSequence { Sequence = 1 @@ -474571,23 +390247,18 @@ public static class AssemblyQuestLoader num2 = 1; List list39 = new List(num2); CollectionsMarshal.SetCount(list39, num2); - Span span39 = CollectionsMarshal.AsSpan(list39); - index2 = 0; - span39[index2] = new QuestStep(EInteractionType.Interact, 1053332u, new Vector3(446.98242f, 59.965904f, -479.81995f), 1291); + CollectionsMarshal.AsSpan(list39)[0] = new QuestStep(EInteractionType.Interact, 1053332u, new Vector3(446.98242f, 59.965904f, -479.81995f), 1291); obj24.Steps = list39; reference26 = obj24; - num++; - ref QuestSequence reference27 = ref span36[num]; + ref QuestSequence reference27 = ref span13[2]; QuestSequence obj25 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5412) }; @@ -474600,16 +390271,13 @@ public static class AssemblyQuestLoader num = 1; List list41 = new List(num); CollectionsMarshal.SetCount(list41, num); - Span span41 = CollectionsMarshal.AsSpan(list41); - index = 0; - span41[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list41)[0] = "WigglyMuffin"; questRoot7.Author = list41; - index = 5; - List list42 = new List(index); - CollectionsMarshal.SetCount(list42, index); - Span span42 = CollectionsMarshal.AsSpan(list42); - num = 0; - ref QuestSequence reference28 = ref span42[num]; + num = 5; + List list42 = new List(num); + CollectionsMarshal.SetCount(list42, num); + Span span14 = CollectionsMarshal.AsSpan(list42); + ref QuestSequence reference28 = ref span14[0]; QuestSequence obj26 = new QuestSequence { Sequence = 0 @@ -474617,27 +390285,21 @@ public static class AssemblyQuestLoader num2 = 1; List list43 = new List(num2); CollectionsMarshal.SetCount(list43, num2); - Span span43 = CollectionsMarshal.AsSpan(list43); - index2 = 0; - span43[index2] = new QuestStep(EInteractionType.AcceptQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291); + CollectionsMarshal.AsSpan(list43)[0] = new QuestStep(EInteractionType.AcceptQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291); obj26.Steps = list43; reference28 = obj26; - num++; - ref QuestSequence reference29 = ref span42[num]; + ref QuestSequence reference29 = ref span14[1]; QuestSequence obj27 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj27.Steps = list44; reference29 = obj27; - num++; - ref QuestSequence reference30 = ref span42[num]; + ref QuestSequence reference30 = ref span14[2]; QuestSequence obj28 = new QuestSequence { Sequence = 2 @@ -474645,91 +390307,65 @@ public static class AssemblyQuestLoader num2 = 3; List list45 = new List(num2); CollectionsMarshal.SetCount(list45, num2); - Span span45 = CollectionsMarshal.AsSpan(list45); - index2 = 0; - ref QuestStep reference31 = ref span45[index2]; + Span span15 = CollectionsMarshal.AsSpan(list45); + ref QuestStep reference31 = ref span15[0]; 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 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); + 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); questStep3.CompletionQuestVariablesFlags = list46; reference31 = questStep3; - index2++; - ref QuestStep reference32 = ref span45[index2]; + ref QuestStep reference32 = ref span15[1]; QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014924u, new Vector3(-218.8908f, -8.711901f, -128.8406f), 1291); - 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); + 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); questStep4.CompletionQuestVariablesFlags = list47; reference32 = questStep4; - index2++; - ref QuestStep reference33 = ref span45[index2]; + ref QuestStep reference33 = ref span15[2]; 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 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; + 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; questStep5.CompletionQuestVariablesFlags = list48; reference33 = questStep5; obj28.Steps = list45; reference30 = obj28; - num++; - ref QuestSequence reference34 = ref span42[num]; + ref QuestSequence reference34 = ref span14[3]; QuestSequence obj29 = new QuestSequence { Sequence = 3 }; - index2 = 1; - List list49 = new List(index2); - CollectionsMarshal.SetCount(list49, index2); - Span span49 = CollectionsMarshal.AsSpan(list49); - num2 = 0; - ref QuestStep reference35 = ref span49[num2]; + num2 = 1; + List list49 = new List(num2); + CollectionsMarshal.SetCount(list49, num2); + ref QuestStep reference35 = ref CollectionsMarshal.AsSpan(list49)[0]; QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1053336u, new Vector3(-28.366577f, -10.3759985f, -113.206726f), 1291); - index3 = 1; - List list50 = new List(index3); - CollectionsMarshal.SetCount(list50, index3); - Span span50 = CollectionsMarshal.AsSpan(list50); - num3 = 0; - span50[num3] = new DialogueChoice + num3 = 1; + List list50 = new List(num3); + CollectionsMarshal.SetCount(list50, num3); + CollectionsMarshal.AsSpan(list50)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ202_05412_Q1_000_000"), @@ -474739,8 +390375,7 @@ public static class AssemblyQuestLoader reference35 = questStep6; obj29.Steps = list49; reference34 = obj29; - num++; - ref QuestSequence reference36 = ref span42[num]; + ref QuestSequence reference36 = ref span14[4]; QuestSequence obj30 = new QuestSequence { Sequence = byte.MaxValue @@ -474748,15 +390383,13 @@ public static class AssemblyQuestLoader num2 = 2; List list51 = new List(num2); CollectionsMarshal.SetCount(list51, num2); - Span span51 = CollectionsMarshal.AsSpan(list51); - index2 = 0; - span51[index2] = new QuestStep(EInteractionType.Action, null, null, 1291) + Span span19 = CollectionsMarshal.AsSpan(list51); + span19[0] = new QuestStep(EInteractionType.Action, null, null, 1291) { Comment = "Use Stellar Return to teleport back", Action = EAction.DutyAction1 }; - index2++; - span51[index2] = new QuestStep(EInteractionType.CompleteQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291) + span19[1] = new QuestStep(EInteractionType.CompleteQuest, 1053335u, new Vector3(383.65747f, 52.5f, -389.79175f), 1291) { NextQuestId = new QuestId(5413) }; @@ -474769,30 +390402,24 @@ public static class AssemblyQuestLoader num = 1; List list52 = new List(num); CollectionsMarshal.SetCount(list52, num); - Span span52 = CollectionsMarshal.AsSpan(list52); - index = 0; - span52[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list52)[0] = "WigglyMuffin"; questRoot8.Author = list52; - index = 3; - List list53 = new List(index); - CollectionsMarshal.SetCount(list53, index); - Span span53 = CollectionsMarshal.AsSpan(list53); - num = 0; - ref QuestSequence reference37 = ref span53[num]; + num = 3; + List list53 = new List(num); + CollectionsMarshal.SetCount(list53, num); + Span span20 = CollectionsMarshal.AsSpan(list53); + ref QuestSequence reference37 = ref span20[0]; QuestSequence obj31 = new QuestSequence { Sequence = 0 }; - 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); + 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); obj31.Steps = list54; reference37 = obj31; - num++; - ref QuestSequence reference38 = ref span53[num]; + ref QuestSequence reference38 = ref span20[1]; QuestSequence obj32 = new QuestSequence { Sequence = 1 @@ -474800,16 +390427,12 @@ public static class AssemblyQuestLoader num2 = 1; List list55 = new List(num2); CollectionsMarshal.SetCount(list55, num2); - Span span55 = CollectionsMarshal.AsSpan(list55); - index2 = 0; - ref QuestStep reference39 = ref span55[index2]; + ref QuestStep reference39 = ref CollectionsMarshal.AsSpan(list55)[0]; 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); - Span span56 = CollectionsMarshal.AsSpan(list56); - index3 = 0; - span56[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list56)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWZ203_05413_Q2_000_000") @@ -474818,18 +390441,15 @@ public static class AssemblyQuestLoader reference39 = questStep7; obj32.Steps = list55; reference38 = obj32; - num++; - ref QuestSequence reference40 = ref span53[num]; + ref QuestSequence reference40 = ref span20[2]; QuestSequence obj33 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5414) }; @@ -474842,16 +390462,13 @@ public static class AssemblyQuestLoader num = 1; List list58 = new List(num); CollectionsMarshal.SetCount(list58, num); - Span span58 = CollectionsMarshal.AsSpan(list58); - index = 0; - span58[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list58)[0] = "WigglyMuffin"; questRoot9.Author = list58; - index = 6; - List list59 = new List(index); - CollectionsMarshal.SetCount(list59, index); - Span span59 = CollectionsMarshal.AsSpan(list59); - num = 0; - ref QuestSequence reference41 = ref span59[num]; + num = 6; + List list59 = new List(num); + CollectionsMarshal.SetCount(list59, num); + Span span21 = CollectionsMarshal.AsSpan(list59); + ref QuestSequence reference41 = ref span21[0]; QuestSequence obj34 = new QuestSequence { Sequence = 0 @@ -474859,16 +390476,12 @@ public static class AssemblyQuestLoader num2 = 1; List list60 = new List(num2); CollectionsMarshal.SetCount(list60, num2); - Span span60 = CollectionsMarshal.AsSpan(list60); - index2 = 0; - ref QuestStep reference42 = ref span60[index2]; + ref QuestStep reference42 = ref CollectionsMarshal.AsSpan(list60)[0]; QuestStep questStep8 = new QuestStep(EInteractionType.AcceptQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); - index3 = 1; - List list61 = new List(index3); - CollectionsMarshal.SetCount(list61, index3); - Span span61 = CollectionsMarshal.AsSpan(list61); - num3 = 0; - span61[num3] = new DialogueChoice + num3 = 1; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + CollectionsMarshal.AsSpan(list61)[0] = new DialogueChoice { Type = EDialogChoiceType.List, Prompt = new ExcelRef("TEXT_KINGWZ204_05414_Q1_000_000"), @@ -474878,22 +390491,18 @@ public static class AssemblyQuestLoader reference42 = questStep8; obj34.Steps = list60; reference41 = obj34; - num++; - ref QuestSequence reference43 = ref span59[num]; + ref QuestSequence reference43 = ref span21[1]; QuestSequence obj35 = new QuestSequence { Sequence = 1 }; - 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); + 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); obj35.Steps = list62; reference43 = obj35; - num++; - ref QuestSequence reference44 = ref span59[num]; + ref QuestSequence reference44 = ref span21[2]; QuestSequence obj36 = new QuestSequence { Sequence = 2 @@ -474901,39 +390510,33 @@ public static class AssemblyQuestLoader num2 = 2; List list63 = new List(num2); CollectionsMarshal.SetCount(list63, num2); - 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) + 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) { StopDistance = 0.25f, Mount = false }; obj36.Steps = list63; reference44 = obj36; - num++; - ref QuestSequence reference45 = ref span59[num]; + ref QuestSequence reference45 = ref span21[3]; QuestSequence obj37 = new QuestSequence { Sequence = 3 }; - 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) + 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) { StopDistance = 0.25f, Mount = false }; obj37.Steps = list64; reference45 = obj37; - num++; - ref QuestSequence reference46 = ref span59[num]; + ref QuestSequence reference46 = ref span21[4]; QuestSequence obj38 = new QuestSequence { Sequence = 4 @@ -474941,16 +390544,12 @@ public static class AssemblyQuestLoader num2 = 1; List list65 = new List(num2); CollectionsMarshal.SetCount(list65, num2); - Span span65 = CollectionsMarshal.AsSpan(list65); - index2 = 0; - ref QuestStep reference47 = ref span65[index2]; + ref QuestStep reference47 = ref CollectionsMarshal.AsSpan(list65)[0]; 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); - Span span66 = CollectionsMarshal.AsSpan(list66); - index3 = 0; - span66[index3] = new DialogueChoice + CollectionsMarshal.AsSpan(list66)[0] = new DialogueChoice { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGWZ204_05414_Q9_000_000") @@ -474959,43 +390558,39 @@ public static class AssemblyQuestLoader reference47 = questStep9; obj38.Steps = list65; reference46 = obj38; - num++; - ref QuestSequence reference48 = ref span59[num]; + ref QuestSequence reference48 = ref span21[5]; QuestSequence obj39 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { Comment = "Use Stellar Return to teleport back", Action = EAction.DutyAction1 }; - num2++; - span67[num2] = new QuestStep(EInteractionType.CompleteQuest, 1053331u, new Vector3(350.5454f, 52.612267f, -438.40698f), 1291); + span24[1] = 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(5426); + QuestId questId10 = new QuestId(5425); QuestRoot questRoot10 = new QuestRoot(); num = 1; List list68 = new List(num); CollectionsMarshal.SetCount(list68, num); - Span span68 = CollectionsMarshal.AsSpan(list68); - index = 0; - span68[index] = "WigglyMuffin"; + CollectionsMarshal.AsSpan(list68)[0] = "WigglyMuffin"; questRoot10.Author = list68; - index = 5; - List list69 = new List(index); - CollectionsMarshal.SetCount(list69, index); - Span span69 = CollectionsMarshal.AsSpan(list69); - num = 0; - ref QuestSequence reference49 = ref span69[num]; + 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]; QuestSequence obj40 = new QuestSequence { Sequence = 0 @@ -475003,9 +390598,290 @@ public static class AssemblyQuestLoader num2 = 1; List list70 = new List(num2); CollectionsMarshal.SetCount(list70, num2); - Span span70 = CollectionsMarshal.AsSpan(list70); - index2 = 0; - span70[index2] = new QuestStep(EInteractionType.AcceptQuest, 1056011u, new Vector3(-22.568176f, 38.056595f, -389.05933f), 1186) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -475014,21 +390890,19 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineResolution } }; - obj40.Steps = list70; - reference49 = obj40; - num++; - ref QuestSequence reference50 = ref span69[num]; - QuestSequence obj41 = new QuestSequence + obj56.Steps = list89; + reference65 = obj56; + ref QuestSequence reference66 = ref span32[1]; + QuestSequence obj57 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1207, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -475038,46 +390912,38 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.SolutionNineNeonStein } }; - SkipConditions skipConditions = new SkipConditions(); + SkipConditions skipConditions3 = new SkipConditions(); SkipStepConditions skipStepConditions = new SkipStepConditions(); - 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 + 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 { InSameTerritory = true }; num3 = 1; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -475088,20 +390954,17 @@ public static class AssemblyQuestLoader } } }; - obj44.Steps = list74; - reference52 = obj44; - num++; - ref QuestSequence reference53 = ref span69[num]; - QuestSequence obj45 = new QuestSequence + obj60.Steps = list93; + reference68 = obj60; + ref QuestSequence reference69 = ref span32[3]; + QuestSequence obj61 = new QuestSequence { Sequence = 3 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -475112,20 +390975,17 @@ public static class AssemblyQuestLoader } } }; - obj45.Steps = list75; - reference53 = obj45; - num++; - ref QuestSequence reference54 = ref span69[num]; - QuestSequence obj46 = new QuestSequence + obj61.Steps = list94; + reference69 = obj61; + ref QuestSequence reference70 = ref span32[4]; + QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, SkipConditions = new SkipConditions @@ -475136,35 +390996,30 @@ public static class AssemblyQuestLoader } } }; - obj46.Steps = list76; - reference54 = obj46; - questRoot10.QuestSequence = list69; - AddQuest(questId10, questRoot10); - QuestId questId11 = new QuestId(5427); - QuestRoot questRoot11 = new QuestRoot(); + obj62.Steps = list95; + reference70 = obj62; + questRoot11.QuestSequence = list88; + AddQuest(questId11, questRoot11); + QuestId questId12 = new QuestId(5427); + QuestRoot questRoot12 = 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 + 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 }; - 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) + 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 @@ -475175,20 +391030,17 @@ public static class AssemblyQuestLoader } } }; - obj47.Steps = list79; - reference55 = obj47; - num++; - ref QuestSequence reference56 = ref span78[num]; - QuestSequence obj48 = new QuestSequence + obj63.Steps = list98; + reference71 = obj63; + ref QuestSequence reference72 = ref span34[1]; + QuestSequence obj64 = 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) + 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 @@ -475199,20 +391051,17 @@ public static class AssemblyQuestLoader } } }; - obj48.Steps = list80; - reference56 = obj48; - num++; - ref QuestSequence reference57 = ref span78[num]; - QuestSequence obj49 = new QuestSequence + obj64.Steps = list99; + reference72 = obj64; + ref QuestSequence reference73 = ref span34[2]; + QuestSequence obj65 = 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) + 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, @@ -475224,20 +391073,17 @@ public static class AssemblyQuestLoader } } }; - obj49.Steps = list81; - reference57 = obj49; - num++; - ref QuestSequence reference58 = ref span78[num]; - QuestSequence obj50 = new QuestSequence + obj65.Steps = list100; + reference73 = obj65; + ref QuestSequence reference74 = ref span34[3]; + QuestSequence obj66 = 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) + 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, @@ -475249,149 +391095,127 @@ public static class AssemblyQuestLoader } } }; - obj50.Steps = list82; - reference58 = obj50; - num++; - ref QuestSequence reference59 = ref span78[num]; - QuestSequence obj51 = new QuestSequence + obj66.Steps = list101; + reference74 = obj66; + ref QuestSequence reference75 = ref span34[4]; + QuestSequence obj67 = 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(5428); - QuestRoot questRoot12 = new QuestRoot(); + 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 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 + 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 { Sequence = 0 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions2 = new SkipConditions(); + SkipConditions skipConditions4 = new SkipConditions(); SkipStepConditions skipStepConditions2 = new SkipStepConditions(); - 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 + 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 { InSameTerritory = true }; num3 = 2; - 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 + 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 { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions3 = new SkipConditions(); + SkipConditions skipConditions5 = new SkipConditions(); SkipStepConditions skipStepConditions3 = new SkipStepConditions(); - 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 + 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 { InSameTerritory = true }; num3 = 2; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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) + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + CollectionsMarshal.AsSpan(list111)[0] = new QuestStep(EInteractionType.Duty, null, null, 1334) { DutyOptions = new DutyOptions { @@ -475399,415 +391223,96 @@ public static class AssemblyQuestLoader ContentFinderConditionId = 1064u } }; - obj58.Steps = list92; - reference64 = obj58; - num++; - span85[num] = new QuestSequence + obj74.Steps = list111; + reference80 = obj74; + span35[3] = new QuestSequence { Sequence = 3 }; - num++; - ref QuestSequence reference65 = ref span85[num]; - QuestSequence obj59 = new QuestSequence + ref QuestSequence reference81 = ref span35[4]; + QuestSequence obj75 = 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 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 skipStepConditions6 = new SkipStepConditions(); - num3 = 2; - 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 - }; - 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 skipStepConditions7 = new SkipStepConditions(); - num3 = 1; - 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) - { - ItemId = 2003793u - }; - 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 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 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]; + 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) { 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; + SkipConditions skipConditions6 = new SkipConditions(); + SkipStepConditions skipStepConditions4 = 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 { 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]; + 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) { 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); + SkipConditions skipConditions7 = new SkipConditions(); + SkipStepConditions skipStepConditions5 = new SkipStepConditions(); num3 = 1; - List list115 = new List(num3); + 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]; + 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 { - Sequence = 2 + Sequence = 5 }; - num2 = 5; + num2 = 3; List list116 = new List(num2); CollectionsMarshal.SetCount(list116, num2); - Span span116 = CollectionsMarshal.AsSpan(list116); - index2 = 0; - ref QuestStep reference82 = ref span116[index2]; + 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) { 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; + SkipConditions skipConditions8 = new SkipConditions(); + SkipStepConditions skipStepConditions6 = new SkipStepConditions(); + 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; SkipAetheryteCondition obj81 = new SkipAetheryteCondition { InSameTerritory = true @@ -475815,1997 +391320,1691 @@ public static class AssemblyQuestLoader num3 = 2; List list118 = new List(num3); CollectionsMarshal.SetCount(list118, num3); - Span span118 = CollectionsMarshal.AsSpan(list118); - index3 = 0; - span118[index3] = 1334; - index3++; - span118[index3] = 1332; + Span span47 = CollectionsMarshal.AsSpan(list118); + span47[0] = 1334; + span47[1] = 1332; obj81.InTerritory = list118; - skipConditions14.AetheryteShortcutIf = obj81; - obj80.SkipConditions = skipConditions14; - reference82 = obj80; - index2++; - ref QuestStep reference83 = ref span116[index2]; + skipConditions8.AetheryteShortcutIf = obj81; + obj80.SkipConditions = skipConditions8; + reference85 = obj80; + ref QuestStep reference86 = ref span45[1]; QuestStep obj82 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - 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); + 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 + }; obj79.Steps = list116; - reference81 = obj79; - num++; - ref QuestSequence reference86 = ref span106[num]; + reference84 = obj79; + ref QuestSequence reference87 = ref span35[6]; QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; - index2 = 3; - List list122 = new List(index2); - CollectionsMarshal.SetCount(list122, index2); - Span span122 = CollectionsMarshal.AsSpan(list122); - num2 = 0; - ref QuestStep reference87 = ref span122[num2]; + num2 = 3; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + Span span48 = CollectionsMarshal.AsSpan(list120); + ref QuestStep reference88 = ref span48[0]; 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 skipConditions16 = new SkipConditions(); - SkipStepConditions skipStepConditions16 = new SkipStepConditions(); + SkipConditions skipConditions10 = new SkipConditions(); + SkipStepConditions skipStepConditions8 = new SkipStepConditions(); num3 = 2; - 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; + 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; SkipAetheryteCondition obj85 = new SkipAetheryteCondition { InSameTerritory = true }; - 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]; + 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]; QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions17 = new SkipConditions(); - SkipStepConditions skipStepConditions17 = new SkipStepConditions(); + SkipConditions skipConditions11 = new SkipConditions(); + SkipStepConditions skipStepConditions9 = new SkipStepConditions(); num3 = 1; - 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; + 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; AddQuest(questId13, questRoot13); - QuestId questId14 = new QuestId(5430); + QuestId questId14 = new QuestId(5429); QuestRoot questRoot14 = new QuestRoot(); num = 1; - 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]; + 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]; QuestSequence obj87 = new QuestSequence { Sequence = 0 }; num2 = 3; - List list128 = new List(num2); - CollectionsMarshal.SetCount(list128, num2); - Span span128 = CollectionsMarshal.AsSpan(list128); - index2 = 0; - ref QuestStep reference90 = ref span128[index2]; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + Span span52 = CollectionsMarshal.AsSpan(list126); + ref QuestStep reference91 = ref span52[0]; 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 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; + 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; SkipAetheryteCondition obj89 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - 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]; + 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]; QuestStep obj90 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - 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]; + 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]; QuestSequence obj91 = new QuestSequence { Sequence = 1 }; - index2 = 3; - List list132 = new List(index2); - CollectionsMarshal.SetCount(list132, index2); - Span span132 = CollectionsMarshal.AsSpan(list132); - num2 = 0; - ref QuestStep reference93 = ref span132[num2]; + num2 = 3; + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + Span span55 = CollectionsMarshal.AsSpan(list130); + ref QuestStep reference94 = ref span55[0]; 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 skipConditions20 = new SkipConditions(); - SkipStepConditions skipStepConditions20 = new SkipStepConditions(); + SkipConditions skipConditions14 = new SkipConditions(); + SkipStepConditions skipStepConditions12 = new SkipStepConditions(); num3 = 2; - 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; + 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; SkipAetheryteCondition obj93 = new SkipAetheryteCondition { InSameTerritory = true }; - 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]; + 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]; QuestStep obj94 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions21 = new SkipConditions(); - SkipStepConditions skipStepConditions21 = new SkipStepConditions(); + SkipConditions skipConditions15 = new SkipConditions(); + SkipStepConditions skipStepConditions13 = new SkipStepConditions(); num3 = 1; - 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]; + 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]; QuestSequence obj95 = new QuestSequence { Sequence = 2 }; - num2 = 3; - List list136 = new List(num2); - CollectionsMarshal.SetCount(list136, num2); - Span span136 = CollectionsMarshal.AsSpan(list136); - index2 = 0; - ref QuestStep reference96 = ref span136[index2]; + num2 = 5; + List list135 = new List(num2); + CollectionsMarshal.SetCount(list135, num2); + Span span58 = CollectionsMarshal.AsSpan(list135); + ref QuestStep reference98 = ref span58[0]; 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 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; + 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; SkipAetheryteCondition obj97 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - 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]; + 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]; QuestStep obj98 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - 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]; + 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]; QuestSequence obj99 = new QuestSequence { - Sequence = 3 + Sequence = byte.MaxValue }; - index2 = 3; - List list140 = new List(index2); - CollectionsMarshal.SetCount(list140, index2); - Span span140 = CollectionsMarshal.AsSpan(list140); - num2 = 0; - ref QuestStep reference99 = ref span140[num2]; + num2 = 3; + List list141 = new List(num2); + CollectionsMarshal.SetCount(list141, num2); + Span span63 = CollectionsMarshal.AsSpan(list141); + ref QuestStep reference103 = ref span63[0]; 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 skipConditions24 = new SkipConditions(); - SkipStepConditions skipStepConditions24 = new SkipStepConditions(); + SkipConditions skipConditions18 = new SkipConditions(); + SkipStepConditions skipStepConditions16 = new SkipStepConditions(); num3 = 2; - 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; + 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; SkipAetheryteCondition obj101 = new SkipAetheryteCondition { InSameTerritory = true }; - 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]; + 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]; QuestStep obj102 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions25 = new SkipConditions(); - SkipStepConditions skipStepConditions25 = new SkipStepConditions(); + SkipConditions skipConditions19 = new SkipConditions(); + SkipStepConditions skipStepConditions17 = new SkipStepConditions(); num3 = 1; - 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]; + 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]; QuestSequence obj103 = new QuestSequence { - Sequence = 4 + Sequence = 0 }; num2 = 3; - List list144 = new List(num2); - CollectionsMarshal.SetCount(list144, num2); - Span span144 = CollectionsMarshal.AsSpan(list144); - index2 = 0; - ref QuestStep reference102 = ref span144[index2]; + List list147 = new List(num2); + CollectionsMarshal.SetCount(list147, num2); + Span span67 = CollectionsMarshal.AsSpan(list147); + ref QuestStep reference106 = ref span67[0]; 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 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; + 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; SkipAetheryteCondition obj105 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - 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]; + 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]; QuestStep obj106 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - 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]; + 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]; QuestSequence obj107 = new QuestSequence { - Sequence = 5 + Sequence = 1 }; - index2 = 3; - List list148 = new List(index2); - CollectionsMarshal.SetCount(list148, index2); - Span span148 = CollectionsMarshal.AsSpan(list148); - num2 = 0; - ref QuestStep reference105 = ref span148[num2]; + num2 = 3; + List list151 = new List(num2); + CollectionsMarshal.SetCount(list151, num2); + Span span70 = CollectionsMarshal.AsSpan(list151); + ref QuestStep reference109 = ref span70[0]; 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 skipConditions28 = new SkipConditions(); - SkipStepConditions skipStepConditions28 = new SkipStepConditions(); + SkipConditions skipConditions22 = new SkipConditions(); + SkipStepConditions skipStepConditions20 = new SkipStepConditions(); num3 = 2; - 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; + 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; SkipAetheryteCondition obj109 = new SkipAetheryteCondition { InSameTerritory = true }; - 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]; + 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]; QuestStep obj110 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions29 = new SkipConditions(); - SkipStepConditions skipStepConditions29 = new SkipStepConditions(); + SkipConditions skipConditions23 = new SkipConditions(); + SkipStepConditions skipStepConditions21 = new SkipStepConditions(); num3 = 1; - 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]; + 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]; QuestSequence obj111 = new QuestSequence { - Sequence = 6 + Sequence = 2 }; - num2 = 5; - List list152 = new List(num2); - CollectionsMarshal.SetCount(list152, num2); - Span span152 = CollectionsMarshal.AsSpan(list152); - index2 = 0; - ref QuestStep reference108 = ref span152[index2]; + num2 = 3; + List list155 = new List(num2); + CollectionsMarshal.SetCount(list155, num2); + Span span73 = CollectionsMarshal.AsSpan(list155); + ref QuestStep reference112 = ref span73[0]; 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 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; + 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; SkipAetheryteCondition obj113 = new SkipAetheryteCondition { InSameTerritory = true }; num3 = 2; - 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]; + 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]; 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 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) + 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 { - ItemId = 2003804u, - GroundTarget = true + Sequence = 6 }; - 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) + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; SkipConditions skipConditions32 = new SkipConditions(); - SkipStepConditions skipStepConditions32 = new SkipStepConditions(); + SkipStepConditions skipStepConditions30 = new SkipStepConditions(); num3 = 2; - 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 + 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 { InSameTerritory = true }; - 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) + 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) { TargetTerritoryId = (ushort)1332 }; SkipConditions skipConditions33 = new SkipConditions(); - SkipStepConditions skipStepConditions33 = new SkipStepConditions(); + SkipStepConditions skipStepConditions31 = new SkipStepConditions(); num3 = 1; - 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 - { - Sequence = 0 - }; - num2 = 3; - 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 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 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 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 = 1 - }; - 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 skipStepConditions36 = new SkipStepConditions(); - num3 = 2; - 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 - }; - 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 skipStepConditions37 = new SkipStepConditions(); - num3 = 1; - 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 = 2 - }; - num2 = 3; - 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 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 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) + 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) { - TargetTerritoryId = (ushort)1332 + ItemId = 2003804u, + GroundTarget = true }; - SkipConditions skipConditions39 = new SkipConditions(); - 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]; + 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 = 3 + Sequence = byte.MaxValue }; - index2 = 3; - List list176 = new List(index2); - CollectionsMarshal.SetCount(list176, index2); - Span span176 = CollectionsMarshal.AsSpan(list176); - num2 = 0; - ref QuestStep reference125 = ref span176[num2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions40 = new SkipConditions(); - SkipStepConditions skipStepConditions40 = new SkipStepConditions(); + SkipConditions skipConditions34 = new SkipConditions(); + SkipStepConditions skipStepConditions32 = new SkipStepConditions(); num3 = 2; - 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; + 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 { InSameTerritory = true }; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions41 = new SkipConditions(); - SkipStepConditions skipStepConditions41 = new SkipStepConditions(); + SkipConditions skipConditions35 = new SkipConditions(); + SkipStepConditions skipStepConditions33 = new SkipStepConditions(); num3 = 1; - 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]; + 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 { - Sequence = 4 + Sequence = 0 }; num2 = 3; - List list180 = new List(num2); - CollectionsMarshal.SetCount(list180, num2); - Span span180 = CollectionsMarshal.AsSpan(list180); - index2 = 0; - ref QuestStep reference128 = ref span180[index2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions42 = new SkipConditions(); - 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; + SkipConditions skipConditions36 = new SkipConditions(); + SkipStepConditions skipStepConditions34 = 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 { InSameTerritory = true }; num3 = 2; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions43 = new SkipConditions(); - 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]; + SkipConditions skipConditions37 = new SkipConditions(); + SkipStepConditions skipStepConditions35 = 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 { - Sequence = byte.MaxValue + Sequence = 1 }; - index2 = 3; - List list184 = new List(index2); - CollectionsMarshal.SetCount(list184, index2); - Span span184 = CollectionsMarshal.AsSpan(list184); - num2 = 0; - ref QuestStep reference131 = ref span184[num2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions44 = new SkipConditions(); - SkipStepConditions skipStepConditions44 = new SkipStepConditions(); + SkipConditions skipConditions38 = new SkipConditions(); + SkipStepConditions skipStepConditions36 = new SkipStepConditions(); num3 = 2; - 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; + 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 { InSameTerritory = true }; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions45 = new SkipConditions(); - SkipStepConditions skipStepConditions45 = new SkipStepConditions(); + SkipConditions skipConditions39 = new SkipConditions(); + SkipStepConditions skipStepConditions37 = new SkipStepConditions(); num3 = 1; - 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]; + 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 { - Sequence = 0 + Sequence = 2 }; num2 = 3; - List list190 = new List(num2); - CollectionsMarshal.SetCount(list190, num2); - Span span190 = CollectionsMarshal.AsSpan(list190); - index2 = 0; - ref QuestStep reference134 = ref span190[index2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions46 = new SkipConditions(); - 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; + SkipConditions skipConditions40 = new SkipConditions(); + SkipStepConditions skipStepConditions38 = 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 { InSameTerritory = true }; num3 = 2; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions47 = new SkipConditions(); - 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]; + SkipConditions skipConditions41 = new SkipConditions(); + SkipStepConditions skipStepConditions39 = 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 { - Sequence = 1 + Sequence = 3 }; - index2 = 3; - List list194 = new List(index2); - CollectionsMarshal.SetCount(list194, index2); - Span span194 = CollectionsMarshal.AsSpan(list194); - num2 = 0; - ref QuestStep reference137 = ref span194[num2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions48 = new SkipConditions(); - SkipStepConditions skipStepConditions48 = new SkipStepConditions(); + SkipConditions skipConditions42 = new SkipConditions(); + SkipStepConditions skipStepConditions40 = new SkipStepConditions(); num3 = 2; - 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; + 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 { InSameTerritory = true }; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions49 = new SkipConditions(); - SkipStepConditions skipStepConditions49 = new SkipStepConditions(); + SkipConditions skipConditions43 = new SkipConditions(); + SkipStepConditions skipStepConditions41 = new SkipStepConditions(); num3 = 1; - 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]; + 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 { - Sequence = 2 + Sequence = 4 }; num2 = 3; - List list198 = new List(num2); - CollectionsMarshal.SetCount(list198, num2); - Span span198 = CollectionsMarshal.AsSpan(list198); - index2 = 0; - ref QuestStep reference140 = ref span198[index2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions50 = new SkipConditions(); - 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; + SkipConditions skipConditions44 = new SkipConditions(); + SkipStepConditions skipStepConditions42 = 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 { InSameTerritory = true }; num3 = 2; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions51 = new SkipConditions(); - 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]; + SkipConditions skipConditions45 = new SkipConditions(); + SkipStepConditions skipStepConditions43 = 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 { Sequence = byte.MaxValue }; - index2 = 3; - List list202 = new List(index2); - CollectionsMarshal.SetCount(list202, index2); - Span span202 = CollectionsMarshal.AsSpan(list202); - num2 = 0; - ref QuestStep reference143 = ref span202[num2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions52 = new SkipConditions(); - SkipStepConditions skipStepConditions52 = new SkipStepConditions(); + SkipConditions skipConditions46 = new SkipConditions(); + SkipStepConditions skipStepConditions44 = new SkipStepConditions(); num3 = 2; - 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; + 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 { InSameTerritory = true }; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions53 = new SkipConditions(); - SkipStepConditions skipStepConditions53 = new SkipStepConditions(); + SkipConditions skipConditions47 = new SkipConditions(); + SkipStepConditions skipStepConditions45 = new SkipStepConditions(); num3 = 1; - 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; + 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(5433); + QuestId questId17 = new QuestId(5432); 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]; + 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 { Sequence = 0 }; num2 = 3; - List list208 = new List(num2); - CollectionsMarshal.SetCount(list208, num2); - Span span208 = CollectionsMarshal.AsSpan(list208); - index2 = 0; - ref QuestStep reference146 = ref span208[index2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions54 = new SkipConditions(); - 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; + SkipConditions skipConditions48 = new SkipConditions(); + SkipStepConditions skipStepConditions46 = 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 { InSameTerritory = true }; num3 = 2; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions55 = new SkipConditions(); - 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]; + SkipConditions skipConditions49 = new SkipConditions(); + SkipStepConditions skipStepConditions47 = 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 { Sequence = 1 }; - index2 = 3; - List list212 = new List(index2); - CollectionsMarshal.SetCount(list212, index2); - Span span212 = CollectionsMarshal.AsSpan(list212); - num2 = 0; - ref QuestStep reference149 = ref span212[num2]; + 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) { TargetTerritoryId = (ushort)1334, Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - SkipConditions skipConditions56 = new SkipConditions(); - SkipStepConditions skipStepConditions56 = new SkipStepConditions(); + SkipConditions skipConditions50 = new SkipConditions(); + SkipStepConditions skipStepConditions48 = new SkipStepConditions(); num3 = 2; - 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; + 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 { InSameTerritory = true }; - 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]; + 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) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions57 = new SkipConditions(); - SkipStepConditions skipStepConditions57 = new SkipStepConditions(); + SkipConditions skipConditions51 = new SkipConditions(); + SkipStepConditions skipStepConditions49 = new SkipStepConditions(); num3 = 1; - 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") - }; - questStep13.DialogueChoices = list216; - reference151 = questStep13; - obj165.Steps = list212; - reference148 = obj165; - num++; - span207[num] = new QuestSequence + 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 { Sequence = 2 }; - num++; - ref QuestSequence reference152 = ref span207[num]; - QuestSequence obj169 = new QuestSequence - { - Sequence = 3 - }; - num2 = 1; + num2 = 3; 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) + 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) { - DutyOptions = new DutyOptions - { - ContentFinderConditionId = 1076u - } + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; + SkipConditions skipConditions52 = new SkipConditions(); + SkipStepConditions skipStepConditions50 = 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 + { + 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) + { + TargetTerritoryId = (ushort)1332 + }; + SkipConditions skipConditions53 = new SkipConditions(); + SkipStepConditions skipStepConditions51 = 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; - reference152 = obj169; - num++; - span207[num] = new QuestSequence + reference155 = obj169; + ref QuestSequence reference158 = ref span112[3]; + QuestSequence obj173 = new QuestSequence { - Sequence = 4 + Sequence = byte.MaxValue }; - num++; - ref QuestSequence reference153 = ref span207[num]; - QuestSequence obj170 = new QuestSequence + 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) { - Sequence = 5 + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo }; - 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) + 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 + { + 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) + { + 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 + { + Sequence = 0 + }; + 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) + { + TargetTerritoryId = (ushort)1334, + Fly = true, + AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo + }; + SkipConditions skipConditions56 = new SkipConditions(); + SkipStepConditions skipStepConditions54 = 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 + { + 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) + { + 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 skipStepConditions58 = new SkipStepConditions(); + SkipStepConditions skipStepConditions56 = 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 + 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 }; - 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) + 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 skipStepConditions59 = new SkipStepConditions(); + SkipStepConditions skipStepConditions57 = 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 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 skipStepConditions60 = new SkipStepConditions(); - num3 = 2; - 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(); + 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 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 + List list235 = new List(num3); + CollectionsMarshal.SetCount(list235, num3); + CollectionsMarshal.AsSpan(list235)[0] = 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 { 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]; + ref QuestSequence reference168 = ref span125[3]; + QuestSequence obj185 = 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) + { + DutyOptions = new DutyOptions + { + ContentFinderConditionId = 1076u + } + }; + obj185.Steps = list236; + reference168 = obj185; + span125[4] = new QuestSequence + { + Sequence = 4 + }; + ref QuestSequence reference169 = ref span125[5]; + QuestSequence obj186 = new QuestSequence + { + Sequence = 5 + }; + 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) { 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; + SkipConditions skipConditions60 = new SkipConditions(); + SkipStepConditions skipStepConditions58 = 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; SkipAetheryteCondition obj188 = new SkipAetheryteCondition { InSameTerritory = true @@ -477813,49 +393012,298 @@ public static class AssemblyQuestLoader num3 = 2; List list239 = new List(num3); CollectionsMarshal.SetCount(list239, num3); - Span span239 = CollectionsMarshal.AsSpan(list239); - index3 = 0; - span239[index3] = 1334; - index3++; - span239[index3] = 1332; + Span span134 = CollectionsMarshal.AsSpan(list239); + span134[0] = 1334; + span134[1] = 1332; obj188.InTerritory = list239; - skipConditions66.AetheryteShortcutIf = obj188; - obj187.SkipConditions = skipConditions66; - reference167 = obj187; - num2++; - ref QuestStep reference168 = ref span237[num2]; + skipConditions60.AetheryteShortcutIf = obj188; + obj187.SkipConditions = skipConditions60; + reference170 = obj187; + ref QuestStep reference171 = ref span132[1]; QuestStep obj189 = new QuestStep(EInteractionType.Interact, 2014999u, new Vector3(1.124277f, 0.9640547f, -56.99698f), 1334) { TargetTerritoryId = (ushort)1332 }; - SkipConditions skipConditions67 = new SkipConditions(); - SkipStepConditions skipStepConditions67 = new SkipStepConditions(); - 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); + 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; - reference166 = obj186; - num++; - ref QuestSequence reference169 = ref span228[num]; + 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 { Sequence = 3 }; num2 = 1; - 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) + 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) { Fly = true, AetheryteShortcut = EAetheryteLocation.LivingMemoryLeynodeMnemo, @@ -477867,20 +393315,17 @@ public static class AssemblyQuestLoader } } }; - obj190.Steps = list241; - reference169 = obj190; - num++; - ref QuestSequence reference170 = ref span228[num]; - QuestSequence obj191 = new QuestSequence + obj206.Steps = list260; + reference185 = obj206; + ref QuestSequence reference186 = ref span138[4]; + QuestSequence obj207 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -477896,35 +393341,30 @@ public static class AssemblyQuestLoader } } }; - obj191.Steps = list242; - reference170 = obj191; - questRoot18.QuestSequence = list228; - AddQuest(questId18, questRoot18); - QuestId questId19 = new QuestId(5435); - QuestRoot questRoot19 = new QuestRoot(); + obj207.Steps = list261; + reference186 = obj207; + questRoot19.QuestSequence = list247; + AddQuest(questId19, questRoot19); + QuestId questId20 = new QuestId(5435); + QuestRoot questRoot20 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -477940,103 +393380,88 @@ public static class AssemblyQuestLoader } } }; - obj192.Steps = list245; - reference171 = obj192; - num++; - ref QuestSequence reference172 = ref span244[num]; - QuestSequence obj193 = new QuestSequence + obj208.Steps = list264; + reference187 = obj208; + ref QuestSequence reference188 = ref span148[1]; + QuestSequence obj209 = new QuestSequence { Sequence = 1 }; - 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) + 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) { TargetTerritoryId = (ushort)1223 }; - 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 + 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 { Sequence = 2 }; num2 = 1; - 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 + 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 { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)1224 }; - SkipConditions skipConditions68 = new SkipConditions(); + SkipConditions skipConditions70 = new SkipConditions(); SkipStepConditions skipStepConditions68 = new SkipStepConditions(); num3 = 1; - 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) + 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) { NextQuestId = new QuestId(5436) }; - obj195.Steps = list248; - reference174 = obj195; - questRoot19.QuestSequence = list244; - AddQuest(questId19, questRoot19); - QuestId questId20 = new QuestId(5436); - QuestRoot questRoot20 = new QuestRoot(); + obj211.Steps = list267; + reference190 = obj211; + questRoot20.QuestSequence = list263; + AddQuest(questId20, questRoot20); + QuestId questId21 = new QuestId(5436); + QuestRoot questRoot21 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478053,92 +393478,79 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 1 }; - 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) + num2 = 1; + List list272 = new List(num2); + CollectionsMarshal.SetCount(list272, num2); + CollectionsMarshal.AsSpan(list272)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1068u } }; - obj198.Steps = list253; - reference177 = obj198; - num++; - ref QuestSequence reference178 = ref span251[num]; - QuestSequence obj199 = new QuestSequence + obj214.Steps = list272; + reference193 = obj214; + ref QuestSequence reference194 = ref span151[2]; + QuestSequence obj215 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)1224 }; - SkipConditions skipConditions69 = new SkipConditions(); + SkipConditions skipConditions71 = new SkipConditions(); SkipStepConditions skipStepConditions69 = new SkipStepConditions(); - 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) + 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) { NextQuestId = new QuestId(5437) }; - obj199.Steps = list254; - reference178 = obj199; - questRoot20.QuestSequence = list251; - AddQuest(questId20, questRoot20); - QuestId questId21 = new QuestId(5437); - QuestRoot questRoot21 = new QuestRoot(); + obj215.Steps = list273; + reference194 = obj215; + questRoot21.QuestSequence = list270; + AddQuest(questId21, questRoot21); + QuestId questId22 = new QuestId(5437); + QuestRoot questRoot22 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478155,22 +393567,18 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.SolutionNine, AethernetShortcut = new AethernetShortcut @@ -478186,20 +393594,18 @@ public static class AssemblyQuestLoader } } }; - obj202.Steps = list259; - reference181 = obj202; - num++; - ref QuestSequence reference182 = ref span257[num]; - QuestSequence obj203 = new QuestSequence + obj218.Steps = list278; + reference197 = obj218; + ref QuestSequence reference198 = ref span154[2]; + QuestSequence obj219 = new QuestSequence { Sequence = 2 }; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478216,92 +393622,79 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 3 }; num2 = 1; - 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) + List list280 = new List(num2); + CollectionsMarshal.SetCount(list280, num2); + CollectionsMarshal.AsSpan(list280)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1070u } }; - obj204.Steps = list261; - reference183 = obj204; - num++; - ref QuestSequence reference184 = ref span257[num]; - QuestSequence obj205 = new QuestSequence + obj220.Steps = list280; + reference199 = obj220; + ref QuestSequence reference200 = ref span154[4]; + QuestSequence obj221 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { TargetTerritoryId = (ushort)1224 }; - SkipConditions skipConditions70 = new SkipConditions(); + SkipConditions skipConditions72 = new SkipConditions(); SkipStepConditions skipStepConditions70 = new SkipStepConditions(); num3 = 1; - 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) + 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) { NextQuestId = new QuestId(5438) }; - obj205.Steps = list262; - reference184 = obj205; - questRoot21.QuestSequence = list257; - AddQuest(questId21, questRoot21); - QuestId questId22 = new QuestId(5438); - QuestRoot questRoot22 = new QuestRoot(); + obj221.Steps = list281; + reference200 = obj221; + questRoot22.QuestSequence = list276; + AddQuest(questId22, questRoot22); + QuestId questId23 = new QuestId(5438); + QuestRoot questRoot23 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478318,143 +393711,113 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 1 }; - 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 + 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 { Sequence = 2 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)1186 }; - 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 + 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 { Sequence = 3 }; - 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); + 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); num3 = 6; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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) + 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) { NextQuestId = new QuestId(5439) }; - obj211.Steps = list272; - reference192 = obj211; - questRoot22.QuestSequence = list265; - AddQuest(questId22, questRoot22); - QuestId questId23 = new QuestId(5439); - QuestRoot questRoot23 = new QuestRoot(); + obj227.Steps = list291; + reference208 = obj227; + questRoot23.QuestSequence = list284; + AddQuest(questId23, questRoot23); + QuestId questId24 = new QuestId(5439); + QuestRoot questRoot24 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478471,79 +393834,67 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 1 }; num2 = 1; - 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) + List list295 = new List(num2); + CollectionsMarshal.SetCount(list295, num2); + CollectionsMarshal.AsSpan(list295)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1072u } }; - obj213.Steps = list276; - reference194 = obj213; - num++; - span274[num] = new QuestSequence + obj229.Steps = list295; + reference210 = obj229; + span164[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference195 = ref span274[num]; - QuestSequence obj214 = new QuestSequence + ref QuestSequence reference211 = ref span164[3]; + QuestSequence obj230 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5440) }; - obj214.Steps = list277; - reference195 = obj214; - questRoot23.QuestSequence = list274; - AddQuest(questId23, questRoot23); - QuestId questId24 = new QuestId(5440); - QuestRoot questRoot24 = new QuestRoot(); + obj230.Steps = list296; + reference211 = obj230; + questRoot24.QuestSequence = list293; + AddQuest(questId24, questRoot24); + QuestId questId25 = new QuestId(5440); + QuestRoot questRoot25 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 2; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478560,61 +393911,51 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Sequence = 1 }; - 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) + num2 = 1; + List list300 = new List(num2); + CollectionsMarshal.SetCount(list300, num2); + CollectionsMarshal.AsSpan(list300)[0] = new QuestStep(EInteractionType.Duty, null, null, 1224) { DutyOptions = new DutyOptions { ContentFinderConditionId = 1074u } }; - obj216.Steps = list281; - reference197 = obj216; - num++; - span279[num] = new QuestSequence + obj232.Steps = list300; + reference213 = obj232; + span166[2] = new QuestSequence { Sequence = 2 }; - num++; - ref QuestSequence reference198 = ref span279[num]; - QuestSequence obj217 = new QuestSequence + ref QuestSequence reference214 = ref span166[3]; + QuestSequence obj233 = new QuestSequence { Sequence = 3 }; num2 = 1; - 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 + 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 { Sequence = 4 }; - 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) + 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) { TargetTerritoryId = (ushort)1224, AetheryteShortcut = EAetheryteLocation.SolutionNine, @@ -478631,66 +393972,55 @@ public static class AssemblyQuestLoader } } }; - 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 + 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 { Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGRA306_05440_Q3_000_000") }; - questStep17.DialogueChoices = list284; - reference200 = questStep17; - obj218.Steps = list283; - reference199 = obj218; - num++; - ref QuestSequence reference201 = ref span279[num]; - QuestSequence obj219 = new QuestSequence + questStep19.DialogueChoices = list303; + reference216 = questStep19; + obj234.Steps = list302; + reference215 = obj234; + ref QuestSequence reference217 = ref span166[5]; + QuestSequence obj235 = new QuestSequence { Sequence = byte.MaxValue }; num2 = 1; - 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(); + 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(); num = 1; - 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 + 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 { Sequence = 0 }; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -478701,20 +394031,17 @@ public static class AssemblyQuestLoader } } }; - obj220.Steps = list288; - reference202 = obj220; - num++; - ref QuestSequence reference203 = ref span287[num]; - QuestSequence obj221 = new QuestSequence + obj236.Steps = list307; + reference218 = obj236; + ref QuestSequence reference219 = ref span169[1]; + QuestSequence obj237 = new QuestSequence { Sequence = 1 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -478725,246 +394052,201 @@ public static class AssemblyQuestLoader } } }; - obj221.Steps = list289; - reference203 = obj221; - num++; - ref QuestSequence reference204 = ref span287[num]; - QuestSequence obj222 = new QuestSequence + obj237.Steps = list308; + reference219 = obj237; + ref QuestSequence reference220 = ref span169[2]; + QuestSequence obj238 = new QuestSequence { Sequence = 2 }; - 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); + 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); num3 = 6; - 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 + 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 { Sequence = 3 }; num2 = 2; - 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 + 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 { Sequence = 4 }; - 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 + 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 { Sequence = 5 }; num2 = 1; - 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 + 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 { Sequence = 6 }; - 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 + 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 { Sequence = 7 }; num2 = 2; - 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) + 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) { IgnoreQuestMarker = true }; num3 = 3; - List list298 = new List(num3); - CollectionsMarshal.SetCount(list298, num3); - Span span298 = CollectionsMarshal.AsSpan(list298); - index3 = 0; - span298[index3] = new DialogueChoice + List list317 = new List(num3); + CollectionsMarshal.SetCount(list317, num3); + Span span175 = CollectionsMarshal.AsSpan(list317); + span175[0] = 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") }; - index3++; - span298[index3] = new DialogueChoice + span175[1] = 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") }; - index3++; - span298[index3] = new DialogueChoice + span175[2] = new DialogueChoice { Type = EDialogChoiceType.YesNo, ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951", Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_CONFIRM_100_004") }; - 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 + 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 { DataId = 18862u, Action = EAction.CheerRhythmYellow }; - num3++; - span299[num3] = new FateActionTarget + span176[1] = new FateActionTarget { DataId = 18860u, Action = EAction.CheerRhythmBlue }; - num3++; - span299[num3] = new FateActionTarget + span176[2] = new FateActionTarget { DataId = 18861u, Action = EAction.CheerRhythmGreen }; - num3++; - span299[num3] = new FateActionTarget + span176[3] = new FateActionTarget { DataId = 18859u, Action = EAction.CheerRhythmRed }; - questStep20.FateActionTargets = list299; - reference213 = questStep20; - obj227.Steps = list297; - reference211 = obj227; - num++; - ref QuestSequence reference214 = ref span287[num]; - QuestSequence obj229 = new QuestSequence + questStep22.FateActionTargets = list318; + reference229 = questStep22; + obj243.Steps = list316; + reference227 = obj243; + ref QuestSequence reference230 = ref span169[8]; + QuestSequence obj245 = new QuestSequence { Sequence = byte.MaxValue }; - 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) + 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) { NextQuestId = new QuestId(5445) }; - obj229.Steps = list300; - reference214 = obj229; - questRoot25.QuestSequence = list287; - AddQuest(questId25, questRoot25); - QuestId questId26 = new QuestId(5445); - QuestRoot questRoot26 = new QuestRoot(); + obj245.Steps = list319; + reference230 = obj245; + questRoot26.QuestSequence = list306; + AddQuest(questId26, questRoot26); + QuestId questId27 = new QuestId(5445); + QuestRoot questRoot27 = new QuestRoot(); num = 1; - 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 + 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 { Sequence = 0 }; num2 = 1; - 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) + 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) { AetheryteShortcut = EAetheryteLocation.Uldah, SkipConditions = new SkipConditions @@ -478975,37 +394257,31 @@ public static class AssemblyQuestLoader } } }; - obj230.Steps = list303; - reference215 = obj230; - num++; - ref QuestSequence reference216 = ref span302[num]; - QuestSequence obj231 = new QuestSequence + obj246.Steps = list322; + reference231 = obj246; + ref QuestSequence reference232 = ref span177[1]; + QuestSequence obj247 = new QuestSequence { Sequence = 1 }; - 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 + 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 { Sequence = byte.MaxValue }; num2 = 1; - 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); + 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); } } diff --git a/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs b/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs index ba2e070..1e42eaf 100644 --- a/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs +++ b/Questionable.Model/Questionable.Model.Common.Converter/StringListOrValueConverter.cs @@ -15,9 +15,7 @@ public sealed class StringListOrValueConverter : JsonConverter> int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = reader.GetString(); + CollectionsMarshal.AsSpan(list)[0] = 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 new file mode 100644 index 0000000..cff0f70 --- /dev/null +++ b/Questionable.Model/Questionable.Model.Common.Converter/VectorListConverter.cs @@ -0,0 +1,40 @@ +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 c3d4719..8476b03 100644 --- a/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs +++ b/Questionable.Model/Questionable.Model.Questing.Converter/ActionConverter.cs @@ -219,6 +219,18 @@ 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 4ec6c5e..50f443b 100644 --- a/Questionable.Model/Questionable.Model.Questing/EAction.cs +++ b/Questionable.Model/Questionable.Model.Questing/EAction.cs @@ -66,6 +66,9 @@ 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 1ae22d8..23acd5d 100644 --- a/Questionable.Model/Questionable.Model.Questing/QuestStep.cs +++ b/Questionable.Model/Questionable.Model.Questing/QuestStep.cs @@ -15,6 +15,11 @@ 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 new file mode 100644 index 0000000..f689404 --- /dev/null +++ b/Questionable.Model/Questionable.Model.Questing/SeasonalDutyDefinition.cs @@ -0,0 +1,43 @@ +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 d42f04a..1642148 100644 --- a/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs +++ b/Questionable/Questionable.Controller.GameUi/InteractionUiController.cs @@ -63,6 +63,8 @@ internal sealed class InteractionUiController : IDisposable private readonly FateController _fateController; + private readonly SeasonalDutyController _seasonalDutyController; + private readonly BossModIpc _bossModIpc; private readonly Configuration _configuration; @@ -79,7 +81,7 @@ internal sealed class InteractionUiController : IDisposable { get { - if (!_isInitialCheck && !_questController.IsRunning && !_fateController.IsRunning) + if (!_isInitialCheck && !_questController.IsRunning && !_fateController.IsRunning && !_seasonalDutyController.IsRunning) { return _territoryData.IsQuestBattleInstance(_clientState.TerritoryType); } @@ -87,7 +89,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, 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, SeasonalDutyController seasonalDutyController, BossModIpc bossModIpc, Configuration configuration, ILogger logger) { _addonLifecycle = addonLifecycle; _dataManager = dataManager; @@ -105,6 +107,7 @@ internal sealed class InteractionUiController : IDisposable _objectTable = objectTable; _shopController = shopController; _fateController = fateController; + _seasonalDutyController = seasonalDutyController; _bossModIpc = bossModIpc; _configuration = configuration; _logger = logger; @@ -118,6 +121,7 @@ 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); @@ -369,9 +373,7 @@ internal sealed class InteractionUiController : IDisposable int num = 1; List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - int index = 0; - span[index] = valueOrDefault; + CollectionsMarshal.AsSpan(list2)[0] = valueOrDefault; source = list2; } } @@ -466,6 +468,15 @@ 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"); @@ -658,24 +669,48 @@ internal sealed class InteractionUiController : IDisposable return; } QuestController.QuestProgress nextQuest = _questController.NextQuest; - if ((nextQuest != null && CheckQuestYesNo(addonSelectYesno, nextQuest, text, checkAllSteps)) || !_fateController.IsRunning) + if (nextQuest != null && CheckQuestYesNo(addonSelectYesno, nextQuest, text, checkAllSteps)) { return; } - List list = _fateController.CurrentFate?.TransformDialogueChoices; - if (list == null) + if (_fateController.IsRunning) { - return; - } - foreach (DialogueChoice item in list) - { - if (item.Type == EDialogChoiceType.YesNo) + List list = _fateController.CurrentFate?.TransformDialogueChoices; + if (list != null) { - StringOrRegex stringOrRegex = ResolveReference(null, item.ExcelSheet, item.Prompt, item.PromptIsRegularExpression); - if (stringOrRegex != null && IsMatch(text, stringOrRegex)) + foreach (DialogueChoice item in list) { - _logger.LogInformation("FATE: Returning {YesNo} for '{Prompt}'", item.Yes ? "Yes" : "No", text); - addonSelectYesno->AtkUnitBase.FireCallbackInt((!item.Yes) ? 1 : 0); + 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); break; } } @@ -1017,6 +1052,35 @@ internal sealed class InteractionUiController : IDisposable } } + private unsafe void EasterMowingResultPostSetup(AddonEvent type, AddonArgs args) + { + if (_seasonalDutyController.IsRunning) + { + _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) @@ -1040,6 +1104,7 @@ 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 24a2d6f..c8b5ab7 100644 --- a/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs +++ b/Questionable/Questionable.Controller.NavigationOverrides/MovementOverrideController.cs @@ -54,68 +54,37 @@ internal sealed class MovementOverrideController List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - 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)); + 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)); BlacklistedLocations = list; } } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/Action.cs b/Questionable/Questionable.Controller.Steps.Interactions/Action.cs index 72796f6..3522fcd 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Action.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Action.cs @@ -22,6 +22,10 @@ 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()) @@ -86,6 +90,9 @@ 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); @@ -104,11 +111,18 @@ internal static class Action if (base.Task.DataId.HasValue) { IGameObject gameObject = gameFunctions.FindObjectByDataId(base.Task.DataId.Value); - if (gameObject == null || !gameObject.IsTargetable) + if (gameObject == null) { return ETaskResult.StillRunning; } - _usedAction = gameFunctions.UseAction(gameObject, base.Task.Action); + if (gameObject.IsTargetable) + { + _usedAction = gameFunctions.UseAction(gameObject, base.Task.Action); + } + else + { + _usedAction = gameFunctions.UseAction(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 new file mode 100644 index 0000000..003a2da --- /dev/null +++ b/Questionable/Questionable.Controller.Steps.Interactions/ClearObjectsWithAction.cs @@ -0,0 +1,347 @@ +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 12aec3f..f7ad257 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Dive.cs @@ -130,10 +130,8 @@ internal static class Dive List> list = new List>(num); CollectionsMarshal.SetCount(list, num); Span> span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = GetKeysToPress(key, keyModifier); - num2++; - span[num2] = GetKeysToPress(key2, keyModifier2); + span[0] = GetKeysToPress(key, keyModifier); + span[1] = GetKeysToPress(key2, keyModifier2); List list2 = (from x in list where x != null select (x)).MinBy((List x) => x.Count); @@ -144,12 +142,12 @@ internal static class Dive foreach (nint item in list2) { _keysToPress.Enqueue((256u, item)); - for (int num3 = 0; num3 < 15; num3++) + for (int num2 = 0; num2 < 15; num2++) { _keysToPress.Enqueue((0u, 0)); } } - for (int num4 = 0; num4 < 5; num4++) + for (int num3 = 0; num3 < 5; num3++) { _keysToPress.Enqueue((0u, 0)); } diff --git a/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs b/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs index 76c9804..fb1603a 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/EquipItem.cs @@ -175,12 +175,10 @@ internal static class EquipItem case 10u: case 11u: { - 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); + int num = 1; + List list4 = new List(num); + CollectionsMarshal.SetCount(list4, num); + CollectionsMarshal.AsSpan(list4)[0] = (ushort)(item.Value.EquipSlotCategory.RowId - 1); return list4; } case 12u: @@ -188,21 +186,17 @@ internal static class EquipItem int num = 2; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index = 0; - span3[index] = 11; - index++; - span3[index] = 12; + Span span = CollectionsMarshal.AsSpan(list3); + span[0] = 11; + span[1] = 12; return list3; } case 13u: { - int index = 1; - List list2 = new List(index); - CollectionsMarshal.SetCount(list2, index); - Span span2 = CollectionsMarshal.AsSpan(list2); - int num = 0; - span2[num] = 0; + int num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = 0; return list2; } case 17u: @@ -210,9 +204,7 @@ internal static class EquipItem int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = 13; + CollectionsMarshal.AsSpan(list)[0] = 13; return list; } default: diff --git a/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs b/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs index e250642..8075e71 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/FateFarming.cs @@ -120,6 +120,8 @@ internal static class FateFarming private ushort _trackedFateId; + private bool _fateWasActive; + protected override bool Start() { _trackedFateId = gameFunctions.GetCurrentFateId(); @@ -138,6 +140,13 @@ 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(); @@ -156,8 +165,8 @@ internal static class FateFarming IGameObject gameObject = gameFunctions.FindObjectByDataId(target.DataId, null, warnIfMissing: false); if (gameObject != null && gameObject.IsTargetable) { - bool flag = gameFunctions.UseAction(gameObject, target.Action); - _nextActionAt = (flag ? DateTime.Now.AddSeconds(2.5) : DateTime.Now.AddSeconds(0.5)); + bool flag2 = gameFunctions.UseAction(gameObject, target.Action); + _nextActionAt = (flag2 ? 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 b05028b..13e2974 100644 --- a/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs +++ b/Questionable/Questionable.Controller.Steps.Interactions/Jump.cs @@ -67,9 +67,7 @@ internal static class Jump int num2 = 1; List list = new List(num2); CollectionsMarshal.SetCount(list, num2); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = base.Task.JumpDestination.Position; + CollectionsMarshal.AsSpan(list)[0] = 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 9ea2fcf..bbc96a0 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveExecutor.cs @@ -87,9 +87,7 @@ internal sealed class MoveExecutor : TaskExecutor, IToastAware, ITaskE int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = _destination; + CollectionsMarshal.AsSpan(list)[0] = _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 b44606b..b7919fc 100644 --- a/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveTo.cs @@ -18,6 +18,10 @@ 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); @@ -26,6 +30,10 @@ 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) @@ -38,13 +46,13 @@ internal static class MoveTo { valueOrDefault = aetheryte.GetValueOrDefault(); flag = true; - goto IL_00a3; + goto IL_00e2; } } } flag = false; - goto IL_00a3; - IL_00a3: + goto IL_00e2; + IL_00e2: if (flag) { return CreateMoveTasks(step, aetheryteData.Locations[valueOrDefault]); @@ -61,6 +69,16 @@ 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 new file mode 100644 index 0000000..9424935 --- /dev/null +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveToObject.cs @@ -0,0 +1,16 @@ +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 new file mode 100644 index 0000000..54b6e09 --- /dev/null +++ b/Questionable/Questionable.Controller.Steps.Movement/MoveToObjectExecutor.cs @@ -0,0 +1,127 @@ +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 6bd2b25..8071c56 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/AethernetShortcut.cs @@ -119,14 +119,10 @@ internal static class AethernetShortcut List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - 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); + 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); 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 ba92346..5a00a82 100644 --- a/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs +++ b/Questionable/Questionable.Controller.Steps.Shared/AetheryteShortcut.cs @@ -257,14 +257,10 @@ internal static class AetheryteShortcut List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - 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); + 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); dictionary.Add(EAetheryteLocation.SolutionNine, list); AetherytesToMoveFrom = dictionary; } diff --git a/Questionable/Questionable.Controller.Steps/TaskCreator.cs b/Questionable/Questionable.Controller.Steps/TaskCreator.cs index 77df5fa..3a77da0 100644 --- a/Questionable/Questionable.Controller.Steps/TaskCreator.cs +++ b/Questionable/Questionable.Controller.Steps/TaskCreator.cs @@ -43,19 +43,15 @@ internal sealed class TaskCreator int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = new WaitAtEnd.WaitNextStepOrSequence(); + CollectionsMarshal.AsSpan(list)[0] = new WaitAtEnd.WaitNextStepOrSequence(); list2 = list; } else if (step == null) { - 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(); + int num = 1; + List list3 = new List(num); + CollectionsMarshal.SetCount(list3, num); + CollectionsMarshal.AsSpan(list3)[0] = new WaitAtEnd.WaitNextStepOrSequence(); list2 = list3; } else diff --git a/Questionable/Questionable.Controller/CombatController.cs b/Questionable/Questionable.Controller/CombatController.cs index c2a2294..37f3875 100644 --- a/Questionable/Questionable.Controller/CombatController.cs +++ b/Questionable/Questionable.Controller/CombatController.cs @@ -515,9 +515,7 @@ internal sealed class CombatController : IDisposable int num4 = 1; List list = new List(num4); CollectionsMarshal.SetCount(list, num4); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = gameObject.Position; + CollectionsMarshal.AsSpan(list)[0] = 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 3fa5eff..e51b203 100644 --- a/Questionable/Questionable.Controller/CommandHandler.cs +++ b/Questionable/Questionable.Controller/CommandHandler.cs @@ -1,4 +1,5 @@ using System; +using System.Runtime.CompilerServices; using Dalamud.Game.Command; using Dalamud.Plugin.Services; using Questionable.Functions; @@ -36,8 +37,12 @@ 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; @@ -46,13 +51,14 @@ internal sealed class CommandHandler : IDisposable private readonly 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) + 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) { _commandManager = commandManager; _chatGui = chatGui; _questController = questController; _movementController = movementController; _fateController = fateController; + _seasonalDutyController = seasonalDutyController; _configWindow = configWindow; _oneTimeSetupWindow = oneTimeSetupWindow; _questWindow = questWindow; @@ -61,6 +67,7 @@ internal sealed class CommandHandler : IDisposable _journalProgressWindow = journalProgressWindow; _priorityWindow = priorityWindow; _fateSelectionWindow = fateSelectionWindow; + _seasonalDutySelectionWindow = seasonalDutySelectionWindow; _targetManager = targetManager; _clientState = clientState; _configuration = configuration; @@ -69,15 +76,15 @@ internal sealed class CommandHandler : IDisposable ICommandManager commandManager2 = _commandManager; CommandInfo commandInfo = new CommandInfo(ProcessCommand); string separator = Environment.NewLine + "\t"; - _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)); + 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)); commandManager2.AddHandler("/qst", commandInfo); } @@ -99,7 +106,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 - toggles the FATE farming window", "Questionable", 576); + _chatGui.Print("/qst fate / duty - toggles the farming window", "Questionable", 576); break; case "ha": case "help-all": @@ -116,7 +123,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 - toggles the FATE farming window", "Questionable", 576); + _chatGui.Print("/qst fate / duty - toggles the 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": @@ -135,6 +142,7 @@ internal sealed class CommandHandler : IDisposable _movementController.Stop(); _questController.Stop("Stop command"); _fateController.Stop("Stop command"); + _seasonalDutyController.Stop("Stop command"); break; case "reload": _questWindow.Reload(); @@ -158,6 +166,10 @@ 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 b29c8be..fca8f7a 100644 --- a/Questionable/Questionable.Controller/ContextMenuController.cs +++ b/Questionable/Questionable.Controller/ContextMenuController.cs @@ -200,9 +200,7 @@ internal sealed class ContextMenuController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = new GatheredItem + CollectionsMarshal.AsSpan(list)[0] = new GatheredItem { ItemId = itemId, ItemCount = quantity, diff --git a/Questionable/Questionable.Controller/MiniTaskController.cs b/Questionable/Questionable.Controller/MiniTaskController.cs index b69281a..3897001 100644 --- a/Questionable/Questionable.Controller/MiniTaskController.cs +++ b/Questionable/Questionable.Controller/MiniTaskController.cs @@ -179,9 +179,7 @@ internal abstract class MiniTaskController : IDisposable int num = 1; List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); - Span span = CollectionsMarshal.AsSpan(list2); - int index = 0; - span[index] = new WaitAtEnd.WaitDelay(); + CollectionsMarshal.AsSpan(list2)[0] = new WaitAtEnd.WaitDelay(); taskQueue.InterruptWith(list2); } LogTasksAfterInterruption(); @@ -196,9 +194,7 @@ internal abstract class MiniTaskController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = new WaitAtEnd.WaitDelay(); + CollectionsMarshal.AsSpan(list)[0] = new WaitAtEnd.WaitDelay(); taskQueue.InterruptWith(list); LogTasksAfterInterruption(); } diff --git a/Questionable/Questionable.Controller/MovementController.cs b/Questionable/Questionable.Controller/MovementController.cs index be5b48d..2296b8e 100644 --- a/Questionable/Questionable.Controller/MovementController.cs +++ b/Questionable/Questionable.Controller/MovementController.cs @@ -431,9 +431,7 @@ internal sealed class MovementController : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = destination.Position; + CollectionsMarshal.AsSpan(list)[0] = destination.Position; NavigateTo(EMovementType.None, dataId, list, fly: false, sprint: false, destination.StopDistance, destination.VerticalStopDistance); } diff --git a/Questionable/Questionable.Controller/SeasonalDutyController.cs b/Questionable/Questionable.Controller/SeasonalDutyController.cs new file mode 100644 index 0000000..1802777 --- /dev/null +++ b/Questionable/Questionable.Controller/SeasonalDutyController.cs @@ -0,0 +1,151 @@ +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.Model.Questing; + +namespace Questionable.Controller; + +internal sealed class SeasonalDutyController : MiniTaskController +{ + private readonly MovementController _movementController; + + 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, IClientState clientState) + : base(chatGui, condition, serviceProvider, interruptHandler, dataManager, logger) + { + _movementController = movementController; + _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) + { + SeasonalDutyDefinition currentDuty = _currentDuty; + _logger.LogInformation("Enqueuing seasonal duty cycle for {DutyName}", currentDuty.Name); + if (_clientState.TerritoryType != currentDuty.TerritoryId && _clientState.TerritoryType != currentDuty.DutyTerritoryId) + { + _taskQueue.Enqueue(new AetheryteShortcut.Task(null, null, currentDuty.Aetheryte, currentDuty.TerritoryId)); + } + if (currentDuty.AethernetShortcut != null) + { + _taskQueue.Enqueue(new AethernetShortcut.Task(currentDuty.AethernetShortcut.From, currentDuty.AethernetShortcut.To)); + } + _taskQueue.Enqueue(new MoveTask(currentDuty.TerritoryId, currentDuty.NpcPosition, null, 3f)); + _taskQueue.Enqueue(new Mount.UnmountTask()); + _taskQueue.Enqueue(new Interact.Task(currentDuty.NpcDataId, null, EInteractionType.Interact, SkipMarkerCheck: true)); + _taskQueue.Enqueue(new WaitCondition.Task(() => _clientState.TerritoryType == _currentDuty.DutyTerritoryId, $"Wait(territory: {currentDuty.DutyTerritoryId})")); + _taskQueue.Enqueue(new ClearObjectsWithAction.ClearTask(currentDuty.DataIds, currentDuty.Action, currentDuty.DutyTerritoryId, currentDuty.StopDistance, currentDuty.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 new file mode 100644 index 0000000..17259b5 --- /dev/null +++ b/Questionable/Questionable.Controller/SeasonalDutyDefinitionRegistry.cs @@ -0,0 +1,148 @@ +#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 1f2ffb1..9a14997 100644 --- a/Questionable/Questionable.Data/ChangelogData.cs +++ b/Questionable/Questionable.Data/ChangelogData.cs @@ -11,1347 +11,998 @@ internal static class ChangelogData static ChangelogData() { - int num = 62; + int num = 63; List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - 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); + ref ChangelogEntry reference = ref span[0]; + DateOnly releaseDate = new DateOnly(2026, 3, 24); + int num2 = 3; + List list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); 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.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"; + ref ChangeEntry reference2 = ref span2[0]; + int num3 = 1; + List list3 = new List(num3); + CollectionsMarshal.SetCount(list3, num3); + CollectionsMarshal.AsSpan(list3)[0] = "Add seasonal duty farming system (/qst duty)"; + reference2 = new ChangeEntry(EChangeCategory.Added, "New Features", list3); + ref ChangeEntry reference3 = ref span2[1]; + num3 = 1; + List list4 = new List(num3); + CollectionsMarshal.SetCount(list4, num3); + CollectionsMarshal.AsSpan(list4)[0] = "Add Hatching-tide 2026 quest"; + reference3 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list4); + ref ChangeEntry reference4 = ref span2[2]; + num3 = 1; + List list5 = new List(num3); + CollectionsMarshal.SetCount(list5, num3); + CollectionsMarshal.AsSpan(list5)[0] = "Quest path fixes"; 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); + reference = new ChangelogEntry("7.4.18", releaseDate, list2); + ref ChangelogEntry reference5 = ref span[1]; + DateOnly releaseDate2 = new DateOnly(2026, 3, 1); + num2 = 1; + List list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); + ref ChangeEntry reference6 = ref CollectionsMarshal.AsSpan(list6)[0]; num3 = 1; - List list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); - 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"; + List list7 = new List(num3); + CollectionsMarshal.SetCount(list7, num3); + CollectionsMarshal.AsSpan(list7)[0] = "Quest path fixes"; reference6 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list7); - 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); + reference5 = new ChangelogEntry("7.4.17", releaseDate2, list6); + 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]; num3 = 1; - List list11 = new List(num3); + List list9 = new List(num3); + CollectionsMarshal.SetCount(list9, num3); + CollectionsMarshal.AsSpan(list9)[0] = "Enable TextAdvance, PandorasBox, and Automaton IPC integration during FATE farming"; + reference8 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list9); + reference7 = new ChangelogEntry("7.4.16", releaseDate3, list8); + ref ChangelogEntry reference9 = ref span[3]; + DateOnly releaseDate4 = new DateOnly(2026, 2, 28); + num2 = 1; + List list10 = new List(num2); + CollectionsMarshal.SetCount(list10, num2); + ref ChangeEntry reference10 = ref CollectionsMarshal.AsSpan(list10)[0]; + num3 = 2; + List list11 = new List(num3); CollectionsMarshal.SetCount(list11, num3); - 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"; + Span span3 = CollectionsMarshal.AsSpan(list11); + span3[0] = "Fix FATE transform interact task never completing after NPC dialogue"; + span3[1] = "Fix FATE farming loop not detecting completion when NPCs persist after FATE ends"; + reference10 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list11); + reference9 = new ChangelogEntry("7.4.15", releaseDate4, list10); + ref ChangelogEntry reference11 = ref span[4]; + DateOnly releaseDate5 = new DateOnly(2026, 2, 27); + num2 = 2; + List list12 = new List(num2); + CollectionsMarshal.SetCount(list12, num2); + Span span4 = CollectionsMarshal.AsSpan(list12); + ref ChangeEntry reference12 = ref span4[0]; + num3 = 2; + List list13 = new List(num3); + CollectionsMarshal.SetCount(list13, num3); + Span span5 = CollectionsMarshal.AsSpan(list13); + span5[0] = "Added prerequisite quest requirement to FATE farming definitions"; + span5[1] = "Show active FATE in main quest UI and disable quest start during FATE farming"; + reference12 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list13); + ref ChangeEntry reference13 = ref span4[1]; + num3 = 1; + List list14 = new List(num3); + CollectionsMarshal.SetCount(list14, num3); + CollectionsMarshal.AsSpan(list14)[0] = "Fixed FATE farming buff expiry and added Curtain Call cleanup on stop"; + reference13 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list14); + reference11 = new ChangelogEntry("7.4.14", releaseDate5, list12); + ref ChangelogEntry reference14 = ref span[5]; + DateOnly releaseDate6 = new DateOnly(2026, 2, 27); + num2 = 1; + List list15 = new List(num2); + CollectionsMarshal.SetCount(list15, num2); + ref ChangeEntry reference15 = ref CollectionsMarshal.AsSpan(list15)[0]; + num3 = 1; + List list16 = new List(num3); + CollectionsMarshal.SetCount(list16, num3); + CollectionsMarshal.AsSpan(list16)[0] = "Fixed an issue where FATE actions were not performed during the Little Ladies Day (2026) FATE event"; reference15 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list16); - 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); + reference14 = new ChangelogEntry("7.4.13", releaseDate6, list15); + ref ChangelogEntry reference16 = ref span[6]; + DateOnly releaseDate7 = new DateOnly(2026, 2, 26); + num2 = 3; + List list17 = new List(num2); + CollectionsMarshal.SetCount(list17, num2); + Span span6 = CollectionsMarshal.AsSpan(list17); + ref ChangeEntry reference17 = ref span6[0]; num3 = 3; - List list23 = new List(num3); + List list18 = new List(num3); + CollectionsMarshal.SetCount(list18, num3); + Span span7 = CollectionsMarshal.AsSpan(list18); + span7[0] = "Add Saved Presets tab to quest priority window"; + span7[1] = "Add passive FATE handling and per npc ability handling"; + span7[2] = "Add FATE farming support"; + reference17 = new ChangeEntry(EChangeCategory.Added, "New Features", list18); + ref ChangeEntry reference18 = ref span6[1]; + num3 = 1; + List list19 = new List(num3); + CollectionsMarshal.SetCount(list19, num3); + CollectionsMarshal.AsSpan(list19)[0] = "Add Little Ladies' Day 2026 quests"; + reference18 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list19); + ref ChangeEntry reference19 = ref span6[2]; + num3 = 1; + List list20 = new List(num3); + CollectionsMarshal.SetCount(list20, num3); + CollectionsMarshal.AsSpan(list20)[0] = "Quest path fixes"; + reference19 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list20); + reference16 = new ChangelogEntry("7.4.12", releaseDate7, list17); + ref ChangelogEntry reference20 = ref span[7]; + DateOnly releaseDate8 = new DateOnly(2026, 2, 2); + num2 = 2; + List list21 = new List(num2); + CollectionsMarshal.SetCount(list21, num2); + Span span8 = CollectionsMarshal.AsSpan(list21); + ref ChangeEntry reference21 = ref span8[0]; + num3 = 1; + List list22 = new List(num3); + CollectionsMarshal.SetCount(list22, num3); + CollectionsMarshal.AsSpan(list22)[0] = "Add Valentione's Day 2026 quest (The Icing on the Cake)"; + reference21 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list22); + ref ChangeEntry reference22 = ref span8[1]; + num3 = 2; + 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); - 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); - 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); + Span span9 = CollectionsMarshal.AsSpan(list23); + span9[0] = "Updated Duty journal to include missing duty types"; + span9[1] = "Added various missing sequences to quests"; + reference22 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list23); + reference20 = new ChangelogEntry("7.4.11", releaseDate8, list21); + ref ChangelogEntry reference23 = ref span[8]; + DateOnly releaseDate9 = new DateOnly(2026, 1, 18); + num2 = 2; + List list24 = new List(num2); + CollectionsMarshal.SetCount(list24, num2); + Span span10 = CollectionsMarshal.AsSpan(list24); + ref ChangeEntry reference24 = ref span10[0]; + num3 = 5; + List list25 = new List(num3); + CollectionsMarshal.SetCount(list25, num3); + Span span11 = CollectionsMarshal.AsSpan(list25); + span11[0] = "Added quest blacklisting"; + span11[1] = "Added MSQ Priority config"; + span11[2] = "Added Quest priority persistence config"; + span11[3] = "Added Duties tab to Journal"; + span11[4] = "Added GC shop handling and chocobo naming for chocobo quests"; + reference24 = new ChangeEntry(EChangeCategory.Added, "Major Features", list25); + ref ChangeEntry reference25 = ref span10[1]; + num3 = 5; + List list26 = new List(num3); + CollectionsMarshal.SetCount(list26, num3); + Span span12 = CollectionsMarshal.AsSpan(list26); + span12[0] = "Removed PandorasBox dependency and added QTE handling"; + span12[1] = "Removed CBT dependency and added Snipe handling"; + span12[2] = "Added drag reordering to Stop condition quests"; + span12[3] = "Ignore item level requirements if using Unsync config"; + span12[4] = "Setting a Stop quest to Off no longer removes it from the list"; + reference25 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list26); + reference23 = new ChangelogEntry("7.4.10", releaseDate9, list24); + ref ChangelogEntry reference26 = ref span[9]; + DateOnly releaseDate10 = new DateOnly(2025, 12, 31); + num2 = 3; + List list27 = new List(num2); + CollectionsMarshal.SetCount(list27, num2); + Span span13 = CollectionsMarshal.AsSpan(list27); + ref ChangeEntry reference27 = ref span13[0]; + num3 = 1; + List list28 = new List(num3); + CollectionsMarshal.SetCount(list28, num3); + CollectionsMarshal.AsSpan(list28)[0] = "Add Heavensturn (2026) quests"; + reference27 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list28); + ref ChangeEntry reference28 = ref span13[1]; + num3 = 1; + 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); - 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); + CollectionsMarshal.AsSpan(list29)[0] = "Added missing quest sequences"; + reference28 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list29); + ref ChangeEntry reference29 = ref span13[2]; num3 = 1; - List list37 = new List(num3); + List list30 = new List(num3); + CollectionsMarshal.SetCount(list30, num3); + CollectionsMarshal.AsSpan(list30)[0] = "Fixed leveling mode not restarting properly"; + reference29 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list30); + reference26 = new ChangelogEntry("7.4.9", releaseDate10, list27); + ref ChangelogEntry reference30 = ref span[10]; + DateOnly releaseDate11 = new DateOnly(2025, 12, 29); + num2 = 1; + List list31 = new List(num2); + CollectionsMarshal.SetCount(list31, num2); + ref ChangeEntry reference31 = ref CollectionsMarshal.AsSpan(list31)[0]; + num3 = 2; + List list32 = new List(num3); + CollectionsMarshal.SetCount(list32, num3); + Span span14 = CollectionsMarshal.AsSpan(list32); + span14[0] = "Fixed infinite teleport loop when multiple quests compete for priority"; + span14[1] = "Fixed leveling mode enabling for quest duties"; + reference31 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list32); + reference30 = new ChangelogEntry("7.4.8", releaseDate11, list31); + ref ChangelogEntry reference32 = ref span[11]; + DateOnly releaseDate12 = new DateOnly(2025, 12, 28); + num2 = 4; + List list33 = new List(num2); + CollectionsMarshal.SetCount(list33, num2); + Span span15 = CollectionsMarshal.AsSpan(list33); + ref ChangeEntry reference33 = ref span15[0]; + num3 = 1; + List list34 = new List(num3); + CollectionsMarshal.SetCount(list34, num3); + CollectionsMarshal.AsSpan(list34)[0] = "Added leveling mode when underleveled for MSQ"; + reference33 = new ChangeEntry(EChangeCategory.Added, "Major Features", list34); + ref ChangeEntry reference34 = ref span15[1]; + num3 = 3; + List list35 = new List(num3); + CollectionsMarshal.SetCount(list35, num3); + Span span16 = CollectionsMarshal.AsSpan(list35); + span16[0] = "Added missing dungeons to Duties"; + span16[1] = "Added Normal Raids and Alliance Raids to duties tab"; + span16[2] = "Added Pause/Stop modes to stop conditions"; + reference34 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list35); + ref ChangeEntry reference35 = ref span15[2]; + num3 = 1; + List list36 = new List(num3); + CollectionsMarshal.SetCount(list36, num3); + CollectionsMarshal.AsSpan(list36)[0] = "Added leveling mode IPC: IsLevelingModeEnabled, SetLevelingModeEnabled, GetMsqLevelLockInfo, StartLevelingMode, StopLevelingMode"; + reference35 = new ChangeEntry(EChangeCategory.Added, "IPC Changes", list36); + ref ChangeEntry reference36 = ref span15[3]; + num3 = 1; + List list37 = new List(num3); CollectionsMarshal.SetCount(list37, num3); - 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"; + CollectionsMarshal.AsSpan(list37)[0] = "Fixed UI appearing in duties when debuff or interrupts occur"; + reference36 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list37); + reference32 = new ChangelogEntry("7.4.7", releaseDate12, list33); + ref ChangelogEntry reference37 = ref span[12]; + DateOnly releaseDate13 = new DateOnly(2025, 12, 23); + num2 = 2; + List list38 = new List(num2); + CollectionsMarshal.SetCount(list38, num2); + Span span17 = CollectionsMarshal.AsSpan(list38); + ref ChangeEntry reference38 = ref span17[0]; + num3 = 1; + List list39 = new List(num3); + CollectionsMarshal.SetCount(list39, num3); + CollectionsMarshal.AsSpan(list39)[0] = "Added Cinema Mode to not skip cutscenes"; + reference38 = new ChangeEntry(EChangeCategory.Added, "Major Features", list39); + ref ChangeEntry reference39 = ref span17[1]; + num3 = 2; + List list40 = new List(num3); + CollectionsMarshal.SetCount(list40, num3); + Span span18 = CollectionsMarshal.AsSpan(list40); + span18[0] = "Added handling for Unsync (Party) to Party Watchdog and configuration to disable if in party"; + span18[1] = "Stop conditions now act as a true stop"; 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 list42 = new List(num3); + reference37 = new ChangelogEntry("7.4.6", releaseDate13, list38); + ref ChangelogEntry reference40 = ref span[13]; + DateOnly releaseDate14 = new DateOnly(2025, 12, 22); + num2 = 1; + List list41 = new List(num2); + CollectionsMarshal.SetCount(list41, num2); + ref ChangeEntry reference41 = ref CollectionsMarshal.AsSpan(list41)[0]; + num3 = 2; + List list42 = new List(num3); CollectionsMarshal.SetCount(list42, num3); - 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); + Span span19 = CollectionsMarshal.AsSpan(list42); + span19[0] = "Dive adjustments"; + span19[1] = "Logging message adjustments"; + reference41 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list42); + reference40 = new ChangelogEntry("7.4.5", releaseDate14, list41); + ref ChangelogEntry reference42 = ref span[14]; + DateOnly releaseDate15 = new DateOnly(2025, 12, 21); + num2 = 2; + List list43 = new List(num2); + CollectionsMarshal.SetCount(list43, num2); + Span span20 = CollectionsMarshal.AsSpan(list43); + ref ChangeEntry reference43 = ref span20[0]; num3 = 1; - List list47 = new List(num3); + List list44 = new List(num3); + CollectionsMarshal.SetCount(list44, num3); + CollectionsMarshal.AsSpan(list44)[0] = "Changelog only shows once per update now"; + reference43 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list44); + ref ChangeEntry reference44 = ref span20[1]; + num3 = 1; + List list45 = new List(num3); + CollectionsMarshal.SetCount(list45, num3); + CollectionsMarshal.AsSpan(list45)[0] = "Fixed gathering paths loading"; + reference44 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list45); + reference42 = new ChangelogEntry("7.4.4", releaseDate15, list43); + ref ChangelogEntry reference45 = ref span[15]; + DateOnly releaseDate16 = new DateOnly(2025, 12, 21); + num2 = 1; + List list46 = new List(num2); + CollectionsMarshal.SetCount(list46, num2); + ref ChangeEntry reference46 = ref CollectionsMarshal.AsSpan(list46)[0]; + num3 = 1; + List list47 = new List(num3); CollectionsMarshal.SetCount(list47, num3); - 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.AsSpan(list47)[0] = "Fixed changelog version checks"; + reference46 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list47); + reference45 = new ChangelogEntry("7.4.3", releaseDate16, list46); + ref ChangelogEntry reference47 = ref span[16]; + DateOnly releaseDate17 = new DateOnly(2025, 12, 20); + num2 = 2; + List list48 = new List(num2); + CollectionsMarshal.SetCount(list48, num2); + Span span21 = CollectionsMarshal.AsSpan(list48); + ref ChangeEntry reference48 = ref span21[0]; + num3 = 1; + List list49 = new List(num3); + CollectionsMarshal.SetCount(list49, num3); + CollectionsMarshal.AsSpan(list49)[0] = "Add 7.4 Starlight Celebration (2025) quest"; + reference48 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list49); + ref ChangeEntry reference49 = ref span21[1]; + num3 = 1; + 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.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); + CollectionsMarshal.AsSpan(list50)[0] = "Fixed 7.4 MSQ"; + reference49 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list50); + reference47 = new ChangelogEntry("7.4.2", releaseDate17, list48); + ref ChangelogEntry reference50 = ref span[17]; + DateOnly releaseDate18 = new DateOnly(2025, 12, 19); + num2 = 1; + List list51 = new List(num2); + CollectionsMarshal.SetCount(list51, num2); + ref ChangeEntry reference51 = ref CollectionsMarshal.AsSpan(list51)[0]; num3 = 2; - List list56 = new List(num3); + List list52 = new List(num3); + CollectionsMarshal.SetCount(list52, num3); + Span span22 = CollectionsMarshal.AsSpan(list52); + span22[0] = "Add 7.4 MSQ"; + span22[1] = "Add 7.4 Arcadion Raid quests"; + reference51 = new ChangeEntry(EChangeCategory.QuestUpdates, "New Quest Paths", list52); + reference50 = new ChangelogEntry("7.4.1", releaseDate18, list51); + ref ChangelogEntry reference52 = ref span[18]; + DateOnly releaseDate19 = new DateOnly(2025, 12, 17); + num2 = 1; + List list53 = new List(num2); + CollectionsMarshal.SetCount(list53, num2); + CollectionsMarshal.AsSpan(list53)[0] = new ChangeEntry(EChangeCategory.Changed, "Api 14 update"); + reference52 = new ChangelogEntry("7.4.0", releaseDate19, list53); + ref ChangelogEntry reference53 = ref span[19]; + DateOnly releaseDate20 = new DateOnly(2025, 12, 6); + num2 = 2; + List list54 = new List(num2); + CollectionsMarshal.SetCount(list54, num2); + Span span23 = CollectionsMarshal.AsSpan(list54); + ref ChangeEntry reference54 = ref span23[0]; + num3 = 4; + List list55 = new List(num3); + CollectionsMarshal.SetCount(list55, num3); + Span span24 = CollectionsMarshal.AsSpan(list55); + span24[0] = "Added reloading and rebuilding to movement system"; + span24[1] = "Improved interrupts and refresh states to allow continuation of questing"; + span24[2] = "Added player input detection to stop automation when manually moving character"; + span24[3] = "Added various missing quest sequences"; + reference54 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list55); + ref ChangeEntry reference55 = ref span23[1]; + num3 = 1; + 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]; + CollectionsMarshal.AsSpan(list56)[0] = "Fixed reset task state to prevent stuck interactions after interruption"; + reference55 = new ChangeEntry(EChangeCategory.Fixed, "Fixes", list56); + reference53 = new ChangelogEntry("7.38.9", releaseDate20, list54); + ref ChangelogEntry reference56 = ref span[20]; + DateOnly releaseDate21 = new DateOnly(2025, 11, 29); + num2 = 2; + List list57 = new List(num2); + CollectionsMarshal.SetCount(list57, num2); + Span span25 = CollectionsMarshal.AsSpan(list57); + ref ChangeEntry reference57 = ref span25[0]; + num3 = 3; + List list58 = new List(num3); + CollectionsMarshal.SetCount(list58, num3); + Span span26 = CollectionsMarshal.AsSpan(list58); + span26[0] = "Movement update with automatic retrying if character can't reach target position"; + span26[1] = "Added Hunt mob data"; + span26[2] = "Refactored commands"; + reference57 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list58); + ref ChangeEntry reference58 = ref span25[1]; + num3 = 3; + List list59 = new List(num3); + CollectionsMarshal.SetCount(list59, num3); + Span span27 = CollectionsMarshal.AsSpan(list59); + span27[0] = "Fixed quest (Way of the Archer)"; + span27[1] = "Fixed quest (Spirithold Broken)"; + span27[2] = "Fixed quest (It's Probably Not Pirates)"; + reference58 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list59); + reference56 = new ChangelogEntry("7.38.8", releaseDate21, list57); + ref ChangelogEntry reference59 = ref span[21]; 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); - 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); + num2 = 2; + List list60 = new List(num2); + CollectionsMarshal.SetCount(list60, num2); + Span span28 = CollectionsMarshal.AsSpan(list60); + ref ChangeEntry reference60 = ref span28[0]; num3 = 2; - List list63 = new List(num3); - CollectionsMarshal.SetCount(list63, num3); - 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"; + List list61 = new List(num3); + CollectionsMarshal.SetCount(list61, num3); + Span span29 = CollectionsMarshal.AsSpan(list61); + span29[0] = "Added individual sequence stop condition for each quest"; + span29[1] = "Added Trials to Duties tab in config"; + reference60 = new ChangeEntry(EChangeCategory.Added, "Major features", list61); + ref ChangeEntry reference61 = ref span28[1]; + num3 = 1; + List list62 = new List(num3); + CollectionsMarshal.SetCount(list62, num3); + CollectionsMarshal.AsSpan(list62)[0] = "Added IPC for stop conditions: GetQuestSequenceStopCondition, SetQuestSequenceStopCondition, RemoveQuestSequenceStopCondition, GetAllQuestSequenceStopConditions"; + reference61 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list62); + reference59 = new ChangelogEntry("7.38.7", releaseDate22, list60); + ref ChangelogEntry reference62 = ref span[22]; + DateOnly releaseDate23 = new DateOnly(2025, 11, 25); + num2 = 3; + List list63 = new List(num2); + CollectionsMarshal.SetCount(list63, num2); + Span span30 = CollectionsMarshal.AsSpan(list63); + ref ChangeEntry reference63 = ref span30[0]; + num3 = 2; + List list64 = new List(num3); + CollectionsMarshal.SetCount(list64, num3); + Span span31 = CollectionsMarshal.AsSpan(list64); + span31[0] = "Updated Allied Society journal text"; + span31[1] = "Improved Allied Society rank handling"; + reference63 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list64); + ref ChangeEntry reference64 = ref span30[1]; + num3 = 1; + List list65 = new List(num3); + CollectionsMarshal.SetCount(list65, num3); + CollectionsMarshal.AsSpan(list65)[0] = "Added IPC for Allied Society: AddAlliedSocietyOptimalQuests, GetAlliedSocietyOptimalQuests"; 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); - 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); + ref ChangeEntry reference65 = ref span30[2]; + num3 = 1; + List list66 = new List(num3); + CollectionsMarshal.SetCount(list66, num3); + CollectionsMarshal.AsSpan(list66)[0] = "Fixed quest (We Come in Peace)"; + reference65 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list66); + reference62 = new ChangelogEntry("7.38.6", releaseDate23, list63); + ref ChangelogEntry reference66 = ref span[23]; + DateOnly releaseDate24 = new DateOnly(2025, 11, 24); + num2 = 2; + List list67 = new List(num2); + CollectionsMarshal.SetCount(list67, num2); + Span span32 = CollectionsMarshal.AsSpan(list67); + ref ChangeEntry reference67 = ref span32[0]; + num3 = 1; + List list68 = new List(num3); + CollectionsMarshal.SetCount(list68, num3); + CollectionsMarshal.AsSpan(list68)[0] = "Added Allied Society daily allowance tracker with bulk quest adding buttons"; + reference67 = new ChangeEntry(EChangeCategory.Added, "Major features", list68); + ref ChangeEntry reference68 = ref span32[1]; + num3 = 1; + 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); - 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)"; + CollectionsMarshal.AsSpan(list69)[0] = "Added IPC for Allied Society: GetRemainingAllowances, GetTimeUntilReset, GetAvailableQuestIds, GetAllAvailableQuestCounts, IsMaxRank, GetCurrentRank, GetSocietiesWithAvailableQuests"; + reference68 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list69); + reference66 = new ChangelogEntry("7.38.5", releaseDate24, list67); + ref ChangelogEntry reference69 = ref span[24]; + DateOnly releaseDate25 = new DateOnly(2025, 11, 23); + num2 = 2; + List list70 = new List(num2); + CollectionsMarshal.SetCount(list70, num2); + Span span33 = CollectionsMarshal.AsSpan(list70); + ref ChangeEntry reference70 = ref span33[0]; + num3 = 1; + List list71 = new List(num3); + CollectionsMarshal.SetCount(list71, num3); + CollectionsMarshal.AsSpan(list71)[0] = "Explicitly declare support for BMR singleplayer duty (The Rematch)"; + reference70 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list71); + ref ChangeEntry reference71 = ref span33[1]; + num3 = 8; + List list72 = new List(num3); + CollectionsMarshal.SetCount(list72, num3); + Span span34 = CollectionsMarshal.AsSpan(list72); + span34[0] = "Fixed quest (Microbrewing) to not get stuck near ramp"; + span34[1] = "Fixed quest (The Illuminated Land) where pathing would kill the player due to fall damage"; + span34[2] = "Fixed quest (It's Probably Not Pirates) improper pathing and removed unneeded step"; + span34[3] = "Fixed quest (The Black Wolf's Ultimatum) not exiting landing area"; + span34[4] = "Fixed quest (Magiteknical Failure) from not interacting with NPC due to being mounted"; + span34[5] = "Fixed quest (We Come in Peace) shortcut navigation"; + span34[6] = "Fixed quest (Poisoned Hearts) where incorrect pathing caused the player to die"; + span34[7] = "Fixed quests (Savage Snares) and (An Apple a Day) not detecting kills"; 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"; + reference69 = new ChangelogEntry("7.38.4", releaseDate25, list70); + ref ChangelogEntry reference72 = ref span[25]; + DateOnly releaseDate26 = new DateOnly(2025, 11, 23); + num2 = 3; + List list73 = new List(num2); + CollectionsMarshal.SetCount(list73, num2); + Span span35 = CollectionsMarshal.AsSpan(list73); + ref ChangeEntry reference73 = ref span35[0]; + num3 = 2; + List list74 = new List(num3); + CollectionsMarshal.SetCount(list74, num3); + Span span36 = CollectionsMarshal.AsSpan(list74); + span36[0] = "Added RequireHq to crafting InteractionType"; + span36[1] = "Mark GC quests as Locked if rank not achieved"; + reference73 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list74); + ref ChangeEntry reference74 = ref span35[1]; + num3 = 2; + List list75 = new List(num3); + CollectionsMarshal.SetCount(list75, num3); + Span span37 = CollectionsMarshal.AsSpan(list75); + span37[0] = "Added IPC for stop conditions: GetStopConditionsEnabled, SetStopConditionsEnabled, GetStopQuestList, AddStopQuest, RemoveStopQuest, ClearStopQuests, GetLevelStopCondition, SetLevelStopCondition, GetSequenceStopCondition, SetSequenceStopCondition"; + span37[1] = "Added IPC for priority quests: GetPriorityQuests, RemovePriorityQuest, ReorderPriorityQuest, GetAvailablePresets, GetPresetQuests, AddPresetToPriority, IsPresetAvailable, IsQuestInPriority, GetQuestPriorityIndex, HasAvailablePriorityQuests"; 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); + ref ChangeEntry reference75 = ref span35[2]; num3 = 3; - List list76 = new List(num3); + List list76 = new List(num3); CollectionsMarshal.SetCount(list76, num3); - 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 list84 = new List(num3); - CollectionsMarshal.SetCount(list84, num3); - 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); + Span span38 = CollectionsMarshal.AsSpan(list76); + span38[0] = "Fixed line breaks not working in dialog strings"; + span38[1] = "Fixed quest (Labor of Love)"; + span38[2] = "Fixed quest (Sea of Sorrow)"; + reference75 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list76); + reference72 = new ChangelogEntry("7.38.3", releaseDate26, list73); + ref ChangelogEntry reference76 = ref span[26]; + DateOnly releaseDate27 = new DateOnly(2025, 11, 18); + num2 = 3; + List list77 = new List(num2); + CollectionsMarshal.SetCount(list77, num2); + Span span39 = CollectionsMarshal.AsSpan(list77); + ref ChangeEntry reference77 = ref span39[0]; num3 = 2; - List list88 = new List(num3); - CollectionsMarshal.SetCount(list88, num3); - 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); - 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); + List list78 = new List(num3); + CollectionsMarshal.SetCount(list78, num3); + Span span40 = CollectionsMarshal.AsSpan(list78); + span40[0] = "Auto Duty unsync options for each duty (Duty Support, Unsync Solo, Unsync Party)"; + span40[1] = "Added Auto Duty unsync options to quest schema and updated quests using old unsync method"; + reference77 = new ChangeEntry(EChangeCategory.Added, "Major features", list78); + ref ChangeEntry reference78 = ref span39[1]; 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]; + List list79 = new List(num3); + CollectionsMarshal.SetCount(list79, num3); + Span span41 = CollectionsMarshal.AsSpan(list79); + span41[0] = "Added IPC for duty sync handling: GetDefaultDutyMode, SetDefaultDutyMode"; + span41[1] = "Added IPC for duty mode overrides: GetDutyModeOverride, SetDutyModeOverride"; + span41[2] = "Added IPC for clearing overrides: ClearDutyModeOverride, ClearAllDutyModeOverrides"; + reference78 = new ChangeEntry(EChangeCategory.Added, "IPC changes", list79); + span39[2] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest (Constant Cravings)"); + reference76 = new ChangelogEntry("7.38.2", releaseDate27, list77); + ref ChangelogEntry reference79 = ref span[27]; + DateOnly releaseDate28 = new DateOnly(2025, 11, 18); + num2 = 3; + List list80 = new List(num2); + CollectionsMarshal.SetCount(list80, num2); + Span span42 = CollectionsMarshal.AsSpan(list80); + ref ChangeEntry reference80 = ref span42[0]; + num3 = 1; + List list81 = new List(num3); + CollectionsMarshal.SetCount(list81, num3); + CollectionsMarshal.AsSpan(list81)[0] = "Added new fields to quest schema"; + reference80 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list81); + ref ChangeEntry reference81 = ref span42[1]; + num3 = 3; + List list82 = new List(num3); + CollectionsMarshal.SetCount(list82, num3); + Span span43 = CollectionsMarshal.AsSpan(list82); + span43[0] = "A Faerie Tale Come True"; + span43[1] = "Constant Cravings"; + span43[2] = "A Bridge Too Full"; + reference81 = new ChangeEntry(EChangeCategory.QuestUpdates, "Added new quest paths", list82); + ref ChangeEntry reference82 = ref span42[2]; + num3 = 3; + List list83 = new List(num3); + CollectionsMarshal.SetCount(list83, num3); + Span span44 = CollectionsMarshal.AsSpan(list83); + span44[0] = "Fixed various quest schemas"; + span44[1] = "Fixed changelog bullet point encoding"; + span44[2] = "Fixed item use to wait until item is used before next action"; + reference82 = new ChangeEntry(EChangeCategory.Fixed, "Bug fixes", list83); + reference79 = new ChangelogEntry("7.38.1", releaseDate28, list80); + ref ChangelogEntry reference83 = ref span[28]; + DateOnly releaseDate29 = new DateOnly(2025, 11, 17); + num2 = 5; + List list84 = new List(num2); + CollectionsMarshal.SetCount(list84, num2); + Span span45 = CollectionsMarshal.AsSpan(list84); + ref ChangeEntry reference84 = ref span45[0]; + num3 = 2; + List list85 = new List(num3); + CollectionsMarshal.SetCount(list85, num3); + Span span46 = CollectionsMarshal.AsSpan(list85); + span46[0] = "Quest sequence window to show expected sequences in each quest (with quest searching)"; + span46[1] = "Changelog"; + reference84 = new ChangeEntry(EChangeCategory.Added, "Major features", list85); + ref ChangeEntry reference85 = ref span45[1]; + num3 = 2; + List list86 = new List(num3); + CollectionsMarshal.SetCount(list86, num3); + Span span47 = CollectionsMarshal.AsSpan(list86); + span47[0] = "Updated quest schemas"; + span47[1] = "Added search bar to preferred mounts and capitalization to mirror game mount names"; + reference85 = new ChangeEntry(EChangeCategory.Changed, "Improvements", list86); + ref ChangeEntry reference86 = ref span45[2]; + num3 = 3; + List list87 = new List(num3); + CollectionsMarshal.SetCount(list87, num3); + Span span48 = CollectionsMarshal.AsSpan(list87); + span48[0] = "Renamed IsQuestCompleted → IsQuestComplete"; + span48[1] = "Renamed IsQuestAvailable → IsReadyToAcceptQuest"; + span48[2] = "Added GetCurrentTask IPC"; + reference86 = new ChangeEntry(EChangeCategory.Changed, "IPC changes", list87); + span45[3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added all Hildibrand quests"); + span45[4] = new ChangeEntry(EChangeCategory.Fixed, "Fixed credits/cutscenes playback"); + reference83 = new ChangelogEntry("7.38.0", releaseDate29, list84); + ref ChangelogEntry reference87 = ref span[29]; + DateOnly releaseDate30 = new DateOnly(2025, 11, 8); + num2 = 1; + List list88 = new List(num2); + CollectionsMarshal.SetCount(list88, num2); + CollectionsMarshal.AsSpan(list88)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Fall Guys quest (Just Crowning Around)"); + reference87 = new ChangelogEntry("6.38", releaseDate30, list88); + ref ChangelogEntry reference88 = ref span[30]; + DateOnly releaseDate31 = new DateOnly(2025, 11, 8); + num2 = 1; + List list89 = new List(num2); + CollectionsMarshal.SetCount(list89, num2); + CollectionsMarshal.AsSpan(list89)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Cosmic Exploration and various unlock quests"); + reference88 = new ChangelogEntry("6.37", releaseDate31, list89); + ref ChangelogEntry reference89 = ref span[31]; + DateOnly releaseDate32 = new DateOnly(2025, 11, 2); + num2 = 1; + List list90 = new List(num2); + CollectionsMarshal.SetCount(list90, num2); + CollectionsMarshal.AsSpan(list90)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 6 quest (With High Spirits)"); + reference89 = new ChangelogEntry("6.36", releaseDate32, list90); + ref ChangelogEntry reference90 = ref span[32]; + DateOnly releaseDate33 = new DateOnly(2025, 10, 28); + num2 = 1; + List list91 = new List(num2); + CollectionsMarshal.SetCount(list91, num2); + CollectionsMarshal.AsSpan(list91)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed level 3 MSQ handling if character started on non-XP buff world"); + reference90 = new ChangelogEntry("6.35", releaseDate33, list91); + ref ChangelogEntry reference91 = ref span[33]; + DateOnly releaseDate34 = new DateOnly(2025, 10, 23); + num2 = 2; + List list92 = new List(num2); + CollectionsMarshal.SetCount(list92, num2); + Span span49 = CollectionsMarshal.AsSpan(list92); + span49[0] = new ChangeEntry(EChangeCategory.Added, "Added clear priority quests on logout and on completion config settings"); + span49[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed priority quest importing to respect import order"); + reference91 = new ChangelogEntry("6.34", releaseDate34, list92); + ref ChangelogEntry reference92 = ref span[34]; + DateOnly releaseDate35 = new DateOnly(2025, 10, 23); + num2 = 1; + List list93 = new List(num2); + CollectionsMarshal.SetCount(list93, num2); + CollectionsMarshal.AsSpan(list93)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed RSR combat module"); + reference92 = new ChangelogEntry("6.33", releaseDate35, list93); + ref ChangelogEntry reference93 = ref span[35]; + DateOnly releaseDate36 = new DateOnly(2025, 10, 23); + num2 = 1; + List list94 = new List(num2); + CollectionsMarshal.SetCount(list94, num2); + CollectionsMarshal.AsSpan(list94)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy Rank 5 quest (Forged in Corn)"); + reference93 = new ChangelogEntry("6.32", releaseDate36, list94); + ref ChangelogEntry reference94 = ref span[36]; + DateOnly releaseDate37 = new DateOnly(2025, 10, 21); + num2 = 1; + List list95 = new List(num2); + CollectionsMarshal.SetCount(list95, num2); + CollectionsMarshal.AsSpan(list95)[0] = new ChangeEntry(EChangeCategory.Changed, "Added checks for moogle and allied society quests when using add all available quests"); + reference94 = new ChangelogEntry("6.31", releaseDate37, list95); + ref ChangelogEntry reference95 = ref span[37]; + DateOnly releaseDate38 = new DateOnly(2025, 10, 21); + num2 = 1; + List list96 = new List(num2); + CollectionsMarshal.SetCount(list96, num2); + CollectionsMarshal.AsSpan(list96)[0] = new ChangeEntry(EChangeCategory.Added, "Added button to journal that allows adding all available quests to priority"); + reference95 = new ChangelogEntry("6.30", releaseDate38, list96); + ref ChangelogEntry reference96 = ref span[38]; + DateOnly releaseDate39 = new DateOnly(2025, 10, 20); + num2 = 2; + List list97 = new List(num2); + CollectionsMarshal.SetCount(list97, num2); + Span span50 = CollectionsMarshal.AsSpan(list97); + ref ChangeEntry reference97 = ref span50[0]; + num3 = 2; + List list98 = new List(num3); + CollectionsMarshal.SetCount(list98, num3); + Span span51 = CollectionsMarshal.AsSpan(list98); + span51[0] = "Added item count to combat handling rework"; + span51[1] = "Updated Pandora conflicting features"; + reference97 = new ChangeEntry(EChangeCategory.Changed, "Combat handling improvements", list98); + span50[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest to purchase Gysahl Greens if not in inventory"); + reference96 = new ChangelogEntry("6.29", releaseDate39, list97); + ref ChangelogEntry reference98 = ref span[39]; + DateOnly releaseDate40 = new DateOnly(2025, 10, 19); + num2 = 1; + List list99 = new List(num2); + CollectionsMarshal.SetCount(list99, num2); + CollectionsMarshal.AsSpan(list99)[0] = new ChangeEntry(EChangeCategory.Changed, "Reworked kill count combat handling - combat and enemy kills are now processed instantly"); + reference98 = new ChangelogEntry("6.28", releaseDate40, list99); + ref ChangelogEntry reference99 = ref span[40]; + DateOnly releaseDate41 = new DateOnly(2025, 10, 18); + num2 = 2; + List list100 = new List(num2); + CollectionsMarshal.SetCount(list100, num2); + Span span52 = CollectionsMarshal.AsSpan(list100); + span52[0] = new ChangeEntry(EChangeCategory.Changed, "Improved Aether Current checking logic"); + span52[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Chocobo Taxi Stand CheckSkip error and Patch 7.3 Fantasia unlock quest date/time"); + reference99 = new ChangelogEntry("6.27", releaseDate41, list100); + ref ChangelogEntry reference100 = ref span[41]; + DateOnly releaseDate42 = new DateOnly(2025, 10, 18); + num2 = 1; + List list101 = new List(num2); + CollectionsMarshal.SetCount(list101, num2); + CollectionsMarshal.AsSpan(list101)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 4 quests"); + reference100 = new ChangelogEntry("6.26", releaseDate42, list101); + ref ChangelogEntry reference101 = ref span[42]; + DateOnly releaseDate43 = new DateOnly(2025, 10, 17); + num2 = 1; + List list102 = new List(num2); + CollectionsMarshal.SetCount(list102, num2); + CollectionsMarshal.AsSpan(list102)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added All Saints' Wake 2025 quests and 7.35 Yok Huy rank 4 quests"); + reference101 = new ChangelogEntry("6.25", releaseDate43, list102); + ref ChangelogEntry reference102 = ref span[43]; + DateOnly releaseDate44 = new DateOnly(2025, 10, 16); + 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 and Deep Dungeon quest"); + reference102 = new ChangelogEntry("6.24", releaseDate44, list103); + ref ChangelogEntry reference103 = ref span[44]; + DateOnly releaseDate45 = new DateOnly(2025, 10, 13); + num2 = 1; + List list104 = new List(num2); + CollectionsMarshal.SetCount(list104, num2); + CollectionsMarshal.AsSpan(list104)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quest (Larder Logistics)"); + reference103 = new ChangelogEntry("6.23", releaseDate45, list104); + ref ChangelogEntry reference104 = ref span[45]; 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 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]; + num2 = 3; + List list105 = new List(num2); + CollectionsMarshal.SetCount(list105, num2); + Span span53 = CollectionsMarshal.AsSpan(list105); + span53[0] = new ChangeEntry(EChangeCategory.Changed, "Prevent disabled or Locked quests from being started as 'Start as next quest'"); + span53[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); + span53[2] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Yok Huy quest and journal quest chain priority issues"); + reference104 = new ChangelogEntry("6.22", releaseDate46, list105); + ref ChangelogEntry reference105 = ref span[46]; + DateOnly releaseDate47 = new DateOnly(2025, 10, 12); + num2 = 2; + List list106 = new List(num2); + CollectionsMarshal.SetCount(list106, num2); + Span span54 = CollectionsMarshal.AsSpan(list106); + span54[0] = new ChangeEntry(EChangeCategory.Added, "Added expansion abbreviation to journal window"); + span54[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 3 quests"); + reference105 = new ChangelogEntry("6.21", releaseDate47, list106); + ref ChangelogEntry reference106 = ref span[47]; + DateOnly releaseDate48 = new DateOnly(2025, 10, 10); + num2 = 2; + List list107 = new List(num2); + CollectionsMarshal.SetCount(list107, num2); + Span span55 = CollectionsMarshal.AsSpan(list107); + span55[0] = new ChangeEntry(EChangeCategory.Changed, "Allow completed repeatable quests to be used with 'Add quest and requirements to priority' feature"); + span55[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 quest (A Work of Cart)"); + reference106 = new ChangelogEntry("6.20", releaseDate48, list107); + ref ChangelogEntry reference107 = ref span[48]; 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]; + num2 = 3; + List list108 = new List(num2); + CollectionsMarshal.SetCount(list108, num2); + Span span56 = CollectionsMarshal.AsSpan(list108); + span56[0] = new ChangeEntry(EChangeCategory.Added, "Added config to batch Allied Society quest turn-ins"); + span56[1] = new ChangeEntry(EChangeCategory.Changed, "Repeatable quests now show correct availability state in journal"); + span56[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 2 quests"); + reference107 = new ChangelogEntry("6.19", releaseDate49, list108); + ref ChangelogEntry reference108 = ref span[49]; + DateOnly releaseDate50 = new DateOnly(2025, 10, 9); + num2 = 2; + List list109 = new List(num2); + CollectionsMarshal.SetCount(list109, num2); + Span span57 = CollectionsMarshal.AsSpan(list109); + span57[0] = new ChangeEntry(EChangeCategory.Changed, "Show once completed quests with improved state display"); + span57[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy daily quest and improvements to various Yok Huy quests"); + reference108 = new ChangelogEntry("6.18", releaseDate50, list109); + ref ChangelogEntry reference109 = ref span[50]; 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]; + num2 = 1; + List list110 = new List(num2); + CollectionsMarshal.SetCount(list110, num2); + CollectionsMarshal.AsSpan(list110)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Yok Huy rank 1 and rank 2 quests"); + reference109 = new ChangelogEntry("6.17", releaseDate51, list110); + ref ChangelogEntry reference110 = ref span[51]; DateOnly releaseDate52 = new DateOnly(2025, 10, 8); - 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]; + num2 = 1; + List list111 = new List(num2); + CollectionsMarshal.SetCount(list111, num2); + CollectionsMarshal.AsSpan(list111)[0] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon quest (Faerie Tale)"); + reference110 = new ChangelogEntry("6.16", releaseDate52, list111); + ref ChangelogEntry reference111 = ref span[52]; DateOnly releaseDate53 = new DateOnly(2025, 10, 8); - 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]; + num2 = 2; + List list112 = new List(num2); + CollectionsMarshal.SetCount(list112, num2); + Span span58 = CollectionsMarshal.AsSpan(list112); + span58[0] = new ChangeEntry(EChangeCategory.Changed, "Dalamud cleanup"); + span58[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed quest level requirement check log spam"); + reference111 = new ChangelogEntry("6.15", releaseDate53, list112); + ref ChangelogEntry reference112 = ref span[53]; DateOnly releaseDate54 = new DateOnly(2025, 10, 8); - 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); + num2 = 1; + List list113 = new List(num2); + CollectionsMarshal.SetCount(list113, num2); + CollectionsMarshal.AsSpan(list113)[0] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check logic if quest were MSQ"); + reference112 = new ChangelogEntry("6.14", releaseDate54, list113); + ref ChangelogEntry reference113 = ref span[54]; + DateOnly releaseDate55 = new DateOnly(2025, 10, 8); + num2 = 2; + List list114 = new List(num2); + CollectionsMarshal.SetCount(list114, num2); + Span span59 = CollectionsMarshal.AsSpan(list114); + ref ChangeEntry reference114 = ref span59[0]; + num3 = 3; + List list115 = new List(num3); + CollectionsMarshal.SetCount(list115, num3); + Span span60 = CollectionsMarshal.AsSpan(list115); + span60[0] = "Context menu option to add required quests and their chain to priority list"; + span60[1] = "AetheryteShortcut to multiple quests"; + span60[2] = "Artisan as a recommended plugin/dependency"; + reference114 = new ChangeEntry(EChangeCategory.Added, "Quest improvements", list115); + span59[1] = new ChangeEntry(EChangeCategory.Fixed, "Fixed abandoned quest check and priority list issues"); + reference113 = new ChangelogEntry("6.13", releaseDate55, list114); + ref ChangelogEntry reference115 = ref span[55]; + DateOnly releaseDate56 = new DateOnly(2025, 10, 7); + num2 = 4; + List list116 = new List(num2); + CollectionsMarshal.SetCount(list116, num2); + Span span61 = CollectionsMarshal.AsSpan(list116); + ref ChangeEntry reference116 = ref span61[0]; num3 = 4; - 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); + List list117 = new List(num3); + CollectionsMarshal.SetCount(list117, num3); + Span span62 = CollectionsMarshal.AsSpan(list117); + span62[0] = "FATE combat handling with auto level syncing"; + span62[1] = "Start accepted quests from journal with 'Start as next quest'"; + span62[2] = "Update quest tracking when quests are hidden or prioritised in game"; + span62[3] = "QuestMap as a recommended plugin/dependency"; + reference116 = new ChangeEntry(EChangeCategory.Added, "FATE and quest tracking", list117); + ref ChangeEntry reference117 = ref span61[1]; + num3 = 3; + List list118 = new List(num3); + CollectionsMarshal.SetCount(list118, num3); + Span span63 = CollectionsMarshal.AsSpan(list118); + span63[0] = "Always prioritise next quest during teleportation/zone transitions"; + span63[1] = "Improved accepted quest logic with abandoned quest detection"; + span63[2] = "Show quests without quest paths as Locked"; + reference117 = new ChangeEntry(EChangeCategory.Changed, "Quest prioritisation improvements", list118); + span61[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.35 Deep Dungeon, Hildibrand, Yok Huy, Monster Hunter Wilds Collab, and Doman Enclave quests"); + span61[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed accepted/active quest display and Hildibrand quest issues"); + reference115 = new ChangelogEntry("6.12", releaseDate56, list116); + ref ChangelogEntry reference118 = ref span[56]; + DateOnly releaseDate57 = new DateOnly(2025, 10, 3); + num2 = 1; + List list119 = new List(num2); + CollectionsMarshal.SetCount(list119, num2); + CollectionsMarshal.AsSpan(list119)[0] = new ChangeEntry(EChangeCategory.Changed, "Added remaining checks for quest priority to prevent infinite teleport looping"); + reference118 = new ChangelogEntry("6.11", releaseDate57, list119); + ref ChangelogEntry reference119 = ref span[57]; + DateOnly releaseDate58 = new DateOnly(2025, 10, 2); + num2 = 1; + List list120 = new List(num2); + CollectionsMarshal.SetCount(list120, num2); + ref ChangeEntry reference120 = ref CollectionsMarshal.AsSpan(list120)[0]; num3 = 2; - List list126 = new List(num3); - CollectionsMarshal.SetCount(list126, num3); - 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]; + List list121 = new List(num3); + CollectionsMarshal.SetCount(list121, num3); + Span span64 = CollectionsMarshal.AsSpan(list121); + span64[0] = "Don't show quests as available if player doesn't meet level requirements"; + span64[1] = "Updated 'required for MSQ' text in Crystal Tower quest preset window"; + reference120 = new ChangeEntry(EChangeCategory.Changed, "Quest window improvements", list121); + reference119 = new ChangelogEntry("6.10", releaseDate58, list120); + ref ChangelogEntry reference121 = ref span[58]; + DateOnly releaseDate59 = new DateOnly(2025, 9, 21); + num2 = 5; + List list122 = new List(num2); + CollectionsMarshal.SetCount(list122, num2); + Span span65 = CollectionsMarshal.AsSpan(list122); + ref ChangeEntry reference122 = ref span65[0]; + num3 = 4; + List list123 = new List(num3); + CollectionsMarshal.SetCount(list123, num3); + Span span66 = CollectionsMarshal.AsSpan(list123); + span66[0] = "Reworked event quest handling - automatically displays when events are active"; + span66[1] = "Reworked journal system with improved filtering and display"; + span66[2] = "Reworked Priority Quests tab (Manual Priority and Quest Presets)"; + span66[3] = "Quest path viewer site (https://wigglymuffin.github.io/FFXIV-Tools/)"; + reference122 = new ChangeEntry(EChangeCategory.Added, "Major system reworks", list123); + ref ChangeEntry reference123 = ref span65[1]; + num3 = 4; + List list124 = new List(num3); + CollectionsMarshal.SetCount(list124, num3); + Span span67 = CollectionsMarshal.AsSpan(list124); + span67[0] = "Questionable.IsQuestCompleted"; + span67[1] = "Questionable.IsQuestAvailable"; + span67[2] = "Questionable.IsQuestAccepted"; + span67[3] = "Questionable.IsQuestUnobtainable"; + reference123 = new ChangeEntry(EChangeCategory.Added, "New IPC commands", list124); + ref ChangeEntry reference124 = ref span65[2]; + num3 = 5; + List list125 = new List(num3); + CollectionsMarshal.SetCount(list125, num3); + Span span68 = CollectionsMarshal.AsSpan(list125); + span68[0] = "Improved JSON quest validation with specific error reasons"; + span68[1] = "Added stop at sequence stop condition"; + span68[2] = "Improved Pandora plugin conflict detection"; + span68[3] = "Improved DialogueChoices regex matching"; + span68[4] = "Improved refresh checker for all quest states"; + reference124 = new ChangeEntry(EChangeCategory.Changed, "Various improvements", list125); + span65[3] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added 7.31 Occult Crescent quests"); + span65[4] = new ChangeEntry(EChangeCategory.Fixed, "Fixed cutscene crashes, Single Player Duty triggers, and various quest issues"); + reference121 = new ChangelogEntry("6.9", releaseDate59, list122); + ref ChangelogEntry reference125 = ref span[59]; + DateOnly releaseDate60 = new DateOnly(2025, 9, 2); + num2 = 4; + List list126 = new List(num2); + CollectionsMarshal.SetCount(list126, num2); + Span span69 = CollectionsMarshal.AsSpan(list126); + ref ChangeEntry reference126 = ref span69[0]; + num3 = 4; + List list127 = new List(num3); + CollectionsMarshal.SetCount(list127, num3); + Span span70 = CollectionsMarshal.AsSpan(list127); + span70[0] = "Help commands and priority quest command"; + span70[1] = "Prevent 'CompleteQuest' step setting"; + span70[2] = "Duty counts and controls in 'Quest Battles' tab"; + span70[3] = "'Refresh quest timer' setting (WIP)"; + reference126 = new ChangeEntry(EChangeCategory.Added, "Command and UI improvements", list127); + span69[1] = new ChangeEntry(EChangeCategory.Changed, "Improved 'Clear All' buttons to require CTRL being held"); + span69[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Zodiac quests and 7.31 Cosmic/Occult Crescent quests"); + span69[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed Fishing for Friendship and Cosmic Exploration quests"); + reference125 = new ChangelogEntry("6.8", releaseDate60, list126); + ref ChangelogEntry reference127 = ref span[60]; + DateOnly releaseDate61 = new DateOnly(2025, 8, 27); + num2 = 4; + List list128 = new List(num2); + CollectionsMarshal.SetCount(list128, num2); + Span span71 = CollectionsMarshal.AsSpan(list128); + ref ChangeEntry reference128 = ref span71[0]; + num3 = 2; + List list129 = new List(num3); + CollectionsMarshal.SetCount(list129, num3); + Span span72 = CollectionsMarshal.AsSpan(list129); + span72[0] = "Icon to 'Clear All' button in stop conditions"; + span72[1] = "Duty counts and 'Enable All' button in 'Duties' tab"; + reference128 = new ChangeEntry(EChangeCategory.Added, "UI improvements", list129); + span71[1] = new ChangeEntry(EChangeCategory.Changed, "Renamed 'Clear' button to 'Clear All' in priority window"); + span71[2] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added Rising 2025 Event Quests"); + span71[3] = new ChangeEntry(EChangeCategory.Fixed, "Fixed clipboard assigning blacklist to whitelist in 'Duties' tab"); + reference127 = new ChangelogEntry("6.7", releaseDate61, list128); + ref ChangelogEntry reference129 = ref span[61]; 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); + num2 = 2; + List list130 = new List(num2); + CollectionsMarshal.SetCount(list130, num2); + Span span73 = CollectionsMarshal.AsSpan(list130); + ref ChangeEntry reference130 = ref span73[0]; + num3 = 2; + List list131 = new List(num3); + CollectionsMarshal.SetCount(list131, num3); + Span span74 = CollectionsMarshal.AsSpan(list131); + span74[0] = "Missing emotes to schema and emote handler"; + span74[1] = "Improved stop conditions with 'Clear All' button"; + reference130 = new ChangeEntry(EChangeCategory.Added, "Emote support and stop conditions", list131); + span73[1] = new ChangeEntry(EChangeCategory.Changed, "Stop at level functionality"); + reference129 = new ChangelogEntry("6.6", 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 span75 = CollectionsMarshal.AsSpan(list132); + span75[0] = new ChangeEntry(EChangeCategory.Fixed, "Potential fix to single/solo duties softlocking"); + span75[1] = new ChangeEntry(EChangeCategory.QuestUpdates, "Added San d'Oria: The Second Walk and various side quests"); + reference131 = new ChangelogEntry("6.5", releaseDate63, list132); Changelogs = list; } } diff --git a/Questionable/Questionable.Data/QuestData.cs b/Questionable/Questionable.Data/QuestData.cs index c406f63..d7776c2 100644 --- a/Questionable/Questionable.Data/QuestData.cs +++ b/Questionable/Questionable.Data/QuestData.cs @@ -119,36 +119,21 @@ internal sealed class QuestData List list2 = new List(num); CollectionsMarshal.SetCount(list2, num); Span span = CollectionsMarshal.AsSpan(list2); - 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"); + 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"); List collection = list2; List collection2 = new List(); quests.AddRange(collection); @@ -335,12 +320,10 @@ internal sealed class QuestData throw new ArgumentOutOfRangeException("classJob"); case EClassJob.Gladiator: { - int num2 = 1; - List list43 = new List(num2); - CollectionsMarshal.SetCount(list43, num2); - Span span42 = CollectionsMarshal.AsSpan(list43); - int num = 0; - span42[num] = 63u; + int num = 1; + List list43 = new List(num); + CollectionsMarshal.SetCount(list43, num); + CollectionsMarshal.AsSpan(list43)[0] = 63u; list2 = list43; break; } @@ -349,24 +332,19 @@ internal sealed class QuestData int num = 3; List list42 = new List(num); CollectionsMarshal.SetCount(list42, num); - Span span41 = CollectionsMarshal.AsSpan(list42); - int num2 = 0; - span41[num2] = 72u; - num2++; - span41[num2] = 73u; - num2++; - span41[num2] = 74u; + Span span27 = CollectionsMarshal.AsSpan(list42); + span27[0] = 72u; + span27[1] = 73u; + span27[2] = 74u; list2 = list42; break; } case EClassJob.Marauder: { - int num2 = 1; - List list41 = new List(num2); - CollectionsMarshal.SetCount(list41, num2); - Span span40 = CollectionsMarshal.AsSpan(list41); - int num = 0; - span40[num] = 64u; + int num = 1; + List list41 = new List(num); + CollectionsMarshal.SetCount(list41, num); + CollectionsMarshal.AsSpan(list41)[0] = 64u; list2 = list41; break; } @@ -375,24 +353,19 @@ internal sealed class QuestData int num = 3; List list40 = new List(num); CollectionsMarshal.SetCount(list40, num); - Span span39 = CollectionsMarshal.AsSpan(list40); - int num2 = 0; - span39[num2] = 76u; - num2++; - span39[num2] = 77u; - num2++; - span39[num2] = 78u; + Span span26 = CollectionsMarshal.AsSpan(list40); + span26[0] = 76u; + span26[1] = 77u; + span26[2] = 78u; list2 = list40; break; } case EClassJob.Conjurer: { - int num2 = 1; - List list39 = new List(num2); - CollectionsMarshal.SetCount(list39, num2); - Span span38 = CollectionsMarshal.AsSpan(list39); - int num = 0; - span38[num] = 65u; + int num = 1; + List list39 = new List(num); + CollectionsMarshal.SetCount(list39, num); + CollectionsMarshal.AsSpan(list39)[0] = 65u; list2 = list39; break; } @@ -401,24 +374,19 @@ internal sealed class QuestData int num = 3; List list38 = new List(num); CollectionsMarshal.SetCount(list38, num); - Span span37 = CollectionsMarshal.AsSpan(list38); - int num2 = 0; - span37[num2] = 86u; - num2++; - span37[num2] = 87u; - num2++; - span37[num2] = 88u; + Span span25 = CollectionsMarshal.AsSpan(list38); + span25[0] = 86u; + span25[1] = 87u; + span25[2] = 88u; list2 = list38; break; } case EClassJob.Arcanist: { - int num2 = 1; - List list37 = new List(num2); - CollectionsMarshal.SetCount(list37, num2); - Span span36 = CollectionsMarshal.AsSpan(list37); - int num = 0; - span36[num] = 66u; + int num = 1; + List list37 = new List(num); + CollectionsMarshal.SetCount(list37, num); + CollectionsMarshal.AsSpan(list37)[0] = 66u; list2 = list37; break; } @@ -427,28 +395,22 @@ internal sealed class QuestData int num = 3; List list36 = new List(num); CollectionsMarshal.SetCount(list36, num); - Span span35 = CollectionsMarshal.AsSpan(list36); - int num2 = 0; - span35[num2] = 127u; - num2++; - span35[num2] = 128u; - num2++; - span35[num2] = 129u; + Span span24 = CollectionsMarshal.AsSpan(list36); + span24[0] = 127u; + span24[1] = 128u; + span24[2] = 129u; list2 = list36; break; } case EClassJob.Scholar: { - 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; + 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; list2 = list35; break; } @@ -457,24 +419,19 @@ internal sealed class QuestData int num = 1; List list34 = new List(num); CollectionsMarshal.SetCount(list34, num); - Span span33 = CollectionsMarshal.AsSpan(list34); - int num2 = 0; - span33[num2] = 67u; + CollectionsMarshal.AsSpan(list34)[0] = 67u; list2 = list34; break; } case EClassJob.Monk: { - 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; + 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; list2 = list33; break; } @@ -483,24 +440,19 @@ internal sealed class QuestData int num = 1; List list32 = new List(num); CollectionsMarshal.SetCount(list32, num); - Span span31 = CollectionsMarshal.AsSpan(list32); - int num2 = 0; - span31[num2] = 68u; + CollectionsMarshal.AsSpan(list32)[0] = 68u; list2 = list32; break; } case EClassJob.Dragoon: { - 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; + 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; list2 = list31; break; } @@ -509,24 +461,19 @@ internal sealed class QuestData int num = 1; List list30 = new List(num); CollectionsMarshal.SetCount(list30, num); - Span span29 = CollectionsMarshal.AsSpan(list30); - int num2 = 0; - span29[num2] = 69u; + CollectionsMarshal.AsSpan(list30)[0] = 69u; list2 = list30; break; } case EClassJob.Ninja: { - 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; + 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; list2 = list29; break; } @@ -535,24 +482,19 @@ internal sealed class QuestData int num = 1; List list28 = new List(num); CollectionsMarshal.SetCount(list28, num); - Span span27 = CollectionsMarshal.AsSpan(list28); - int num2 = 0; - span27[num2] = 70u; + CollectionsMarshal.AsSpan(list28)[0] = 70u; list2 = list28; break; } case EClassJob.Bard: { - 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; + 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; list2 = list27; break; } @@ -561,24 +503,19 @@ internal sealed class QuestData int num = 1; List list26 = new List(num); CollectionsMarshal.SetCount(list26, num); - Span span25 = CollectionsMarshal.AsSpan(list26); - int num2 = 0; - span25[num2] = 71u; + CollectionsMarshal.AsSpan(list26)[0] = 71u; list2 = list26; break; } case EClassJob.BlackMage: { - 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; + 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; list2 = list25; break; } @@ -587,28 +524,22 @@ internal sealed class QuestData int num = 3; List list24 = new List(num); CollectionsMarshal.SetCount(list24, num); - Span span23 = CollectionsMarshal.AsSpan(list24); - int num2 = 0; - span23[num2] = 80u; - num2++; - span23[num2] = 81u; - num2++; - span23[num2] = 82u; + Span span17 = CollectionsMarshal.AsSpan(list24); + span17[0] = 80u; + span17[1] = 81u; + span17[2] = 82u; list2 = list24; break; } case EClassJob.Astrologian: { - 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; + 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; list2 = list23; break; } @@ -617,26 +548,21 @@ internal sealed class QuestData int num = 3; List list22 = new List(num); CollectionsMarshal.SetCount(list22, num); - Span span21 = CollectionsMarshal.AsSpan(list22); - int num2 = 0; - span21[num2] = 117u; - num2++; - span21[num2] = 118u; - num2++; - span21[num2] = 119u; + Span span15 = CollectionsMarshal.AsSpan(list22); + span15[0] = 117u; + span15[1] = 118u; + span15[2] = 119u; list2 = list22; break; } case EClassJob.Samurai: { - 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; + int num = 2; + List list21 = new List(num); + CollectionsMarshal.SetCount(list21, num); + Span span14 = CollectionsMarshal.AsSpan(list21); + span14[0] = 110u; + span14[1] = 111u; list2 = list21; break; } @@ -645,28 +571,22 @@ internal sealed class QuestData int num = 2; List list20 = new List(num); CollectionsMarshal.SetCount(list20, num); - Span span19 = CollectionsMarshal.AsSpan(list20); - int num2 = 0; - span19[num2] = 131u; - num2++; - span19[num2] = 132u; + Span span13 = CollectionsMarshal.AsSpan(list20); + span13[0] = 131u; + span13[1] = 132u; list2 = list20; break; } case EClassJob.BlueMage: { - 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; + 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; list2 = list19; break; } @@ -675,20 +595,16 @@ internal sealed class QuestData int num = 1; List list18 = new List(num); CollectionsMarshal.SetCount(list18, num); - Span span17 = CollectionsMarshal.AsSpan(list18); - int num2 = 0; - span17[num2] = 84u; + CollectionsMarshal.AsSpan(list18)[0] = 84u; list2 = list18; break; } case EClassJob.Dancer: { - int num2 = 1; - List list17 = new List(num2); - CollectionsMarshal.SetCount(list17, num2); - Span span16 = CollectionsMarshal.AsSpan(list17); - int num = 0; - span16[num] = 121u; + int num = 1; + List list17 = new List(num); + CollectionsMarshal.SetCount(list17, num); + CollectionsMarshal.AsSpan(list17)[0] = 121u; list2 = list17; break; } @@ -697,20 +613,16 @@ internal sealed class QuestData int num = 1; List list16 = new List(num); CollectionsMarshal.SetCount(list16, num); - Span span15 = CollectionsMarshal.AsSpan(list16); - int num2 = 0; - span15[num2] = 152u; + CollectionsMarshal.AsSpan(list16)[0] = 152u; list2 = list16; break; } case EClassJob.Reaper: { - int num2 = 1; - List list15 = new List(num2); - CollectionsMarshal.SetCount(list15, num2); - Span span14 = CollectionsMarshal.AsSpan(list15); - int num = 0; - span14[num] = 153u; + int num = 1; + List list15 = new List(num); + CollectionsMarshal.SetCount(list15, num); + CollectionsMarshal.AsSpan(list15)[0] = 153u; list2 = list15; break; } @@ -719,20 +631,16 @@ internal sealed class QuestData int num = 1; List list14 = new List(num); CollectionsMarshal.SetCount(list14, num); - Span span13 = CollectionsMarshal.AsSpan(list14); - int num2 = 0; - span13[num2] = 176u; + CollectionsMarshal.AsSpan(list14)[0] = 176u; list2 = list14; break; } case EClassJob.Pictomancer: { - int num2 = 1; - List list13 = new List(num2); - CollectionsMarshal.SetCount(list13, num2); - Span span12 = CollectionsMarshal.AsSpan(list13); - int num = 0; - span12[num] = 177u; + int num = 1; + List list13 = new List(num); + CollectionsMarshal.SetCount(list13, num); + CollectionsMarshal.AsSpan(list13)[0] = 177u; list2 = list13; break; } @@ -742,27 +650,21 @@ internal sealed class QuestData List list12 = new List(num); CollectionsMarshal.SetCount(list12, num); Span span11 = CollectionsMarshal.AsSpan(list12); - int num2 = 0; - span11[num2] = 48u; - num2++; - span11[num2] = 49u; - num2++; - span11[num2] = 50u; + span11[0] = 48u; + span11[1] = 49u; + span11[2] = 50u; list2 = list12; break; } case EClassJob.Armorer: { - int num2 = 3; - List list11 = new List(num2); - CollectionsMarshal.SetCount(list11, num2); + int num = 3; + List list11 = new List(num); + CollectionsMarshal.SetCount(list11, num); Span span10 = CollectionsMarshal.AsSpan(list11); - int num = 0; - span10[num] = 36u; - num++; - span10[num] = 37u; - num++; - span10[num] = 38u; + span10[0] = 36u; + span10[1] = 37u; + span10[2] = 38u; list2 = list11; break; } @@ -772,27 +674,21 @@ internal sealed class QuestData List list10 = new List(num); CollectionsMarshal.SetCount(list10, num); Span span9 = CollectionsMarshal.AsSpan(list10); - int num2 = 0; - span9[num2] = 33u; - num2++; - span9[num2] = 34u; - num2++; - span9[num2] = 35u; + span9[0] = 33u; + span9[1] = 34u; + span9[2] = 35u; list2 = list10; break; } case EClassJob.Carpenter: { - int num2 = 3; - List list9 = new List(num2); - CollectionsMarshal.SetCount(list9, num2); + int num = 3; + List list9 = new List(num); + CollectionsMarshal.SetCount(list9, num); Span span8 = CollectionsMarshal.AsSpan(list9); - int num = 0; - span8[num] = 30u; - num++; - span8[num] = 31u; - num++; - span8[num] = 32u; + span8[0] = 30u; + span8[1] = 31u; + span8[2] = 32u; list2 = list9; break; } @@ -802,27 +698,21 @@ internal sealed class QuestData List list8 = new List(num); CollectionsMarshal.SetCount(list8, num); Span span7 = CollectionsMarshal.AsSpan(list8); - int num2 = 0; - span7[num2] = 51u; - num2++; - span7[num2] = 52u; - num2++; - span7[num2] = 53u; + span7[0] = 51u; + span7[1] = 52u; + span7[2] = 53u; list2 = list8; break; } case EClassJob.Goldsmith: { - int num2 = 3; - List list7 = new List(num2); - CollectionsMarshal.SetCount(list7, num2); + int num = 3; + List list7 = new List(num); + CollectionsMarshal.SetCount(list7, num); Span span6 = CollectionsMarshal.AsSpan(list7); - int num = 0; - span6[num] = 39u; - num++; - span6[num] = 40u; - num++; - span6[num] = 41u; + span6[0] = 39u; + span6[1] = 40u; + span6[2] = 41u; list2 = list7; break; } @@ -832,27 +722,21 @@ internal sealed class QuestData List list6 = new List(num); CollectionsMarshal.SetCount(list6, num); Span span5 = CollectionsMarshal.AsSpan(list6); - int num2 = 0; - span5[num2] = 42u; - num2++; - span5[num2] = 43u; - num2++; - span5[num2] = 44u; + span5[0] = 42u; + span5[1] = 43u; + span5[2] = 44u; list2 = list6; break; } case EClassJob.Weaver: { - int num2 = 3; - List list5 = new List(num2); - CollectionsMarshal.SetCount(list5, num2); + int num = 3; + List list5 = new List(num); + CollectionsMarshal.SetCount(list5, num); Span span4 = CollectionsMarshal.AsSpan(list5); - int num = 0; - span4[num] = 45u; - num++; - span4[num] = 46u; - num++; - span4[num] = 47u; + span4[0] = 45u; + span4[1] = 46u; + span4[2] = 47u; list2 = list5; break; } @@ -862,27 +746,21 @@ internal sealed class QuestData List list4 = new List(num); CollectionsMarshal.SetCount(list4, num); Span span3 = CollectionsMarshal.AsSpan(list4); - int num2 = 0; - span3[num2] = 54u; - num2++; - span3[num2] = 55u; - num2++; - span3[num2] = 56u; + span3[0] = 54u; + span3[1] = 55u; + span3[2] = 56u; list2 = list4; break; } case EClassJob.Botanist: { - int num2 = 3; - List list3 = new List(num2); - CollectionsMarshal.SetCount(list3, num2); + int num = 3; + List list3 = new List(num); + CollectionsMarshal.SetCount(list3, num); Span span2 = CollectionsMarshal.AsSpan(list3); - int num = 0; - span2[num] = 57u; - num++; - span2[num] = 58u; - num++; - span2[num] = 59u; + span2[0] = 57u; + span2[1] = 58u; + span2[2] = 59u; list2 = list3; break; } @@ -892,12 +770,9 @@ internal sealed class QuestData List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = 60u; - num2++; - span[num2] = 61u; - num2++; - span[num2] = 62u; + span[0] = 60u; + span[1] = 61u; + span[2] = 62u; list2 = list; break; } @@ -961,244 +836,188 @@ internal sealed class QuestData List> list = new List>(num); CollectionsMarshal.SetCount(list, num); Span> span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - ref List reference = ref span[num2]; + ref List reference = ref span[0]; List list2; if (eClassJob != EClassJob.Gladiator) { - int num3 = 2; - list2 = new List(num3); - CollectionsMarshal.SetCount(list2, num3); + int num2 = 2; + list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); Span span2 = CollectionsMarshal.AsSpan(list2); - int num4 = 0; - span2[num4] = 253; - num4++; - span2[num4] = 261; + span2[0] = 253; + span2[1] = 261; } else { - int num4 = 4; - list2 = new List(num4); - CollectionsMarshal.SetCount(list2, num4); + int num2 = 4; + list2 = new List(num2); + CollectionsMarshal.SetCount(list2, num2); Span span3 = CollectionsMarshal.AsSpan(list2); - int num3 = 0; - span3[num3] = 177; - num3++; - span3[num3] = 285; - num3++; - span3[num3] = 286; - num3++; - span3[num3] = 288; + span3[0] = 177; + span3[1] = 285; + span3[2] = 286; + span3[3] = 288; } reference = list2; - num2++; - ref List reference2 = ref span[num2]; + ref List reference2 = ref span[1]; List list3; if (eClassJob != EClassJob.Pugilist) { - int num3 = 2; - list3 = new List(num3); - CollectionsMarshal.SetCount(list3, num3); + int num2 = 2; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); Span span4 = CollectionsMarshal.AsSpan(list3); - int num4 = 0; - span4[num4] = 533; - num4++; - span4[num4] = 555; + span4[0] = 533; + span4[1] = 555; } else { - int num4 = 4; - list3 = new List(num4); - CollectionsMarshal.SetCount(list3, num4); + int num2 = 4; + list3 = new List(num2); + CollectionsMarshal.SetCount(list3, num2); Span span5 = CollectionsMarshal.AsSpan(list3); - int num3 = 0; - span5[num3] = 178; - num3++; - span5[num3] = 532; - num3++; - span5[num3] = 553; - num3++; - span5[num3] = 698; + span5[0] = 178; + span5[1] = 532; + span5[2] = 553; + span5[3] = 698; } reference2 = list3; - num2++; - ref List reference3 = ref span[num2]; + ref List reference3 = ref span[2]; List list4; if (eClassJob != EClassJob.Marauder) { - int num3 = 2; - list4 = new List(num3); - CollectionsMarshal.SetCount(list4, num3); + int num2 = 2; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); Span span6 = CollectionsMarshal.AsSpan(list4); - int num4 = 0; - span6[num4] = 311; - num4++; - span6[num4] = 314; + span6[0] = 311; + span6[1] = 314; } else { - int num4 = 4; - list4 = new List(num4); - CollectionsMarshal.SetCount(list4, num4); + int num2 = 4; + list4 = new List(num2); + CollectionsMarshal.SetCount(list4, num2); Span span7 = CollectionsMarshal.AsSpan(list4); - int num3 = 0; - span7[num3] = 179; - num3++; - span7[num3] = 310; - num3++; - span7[num3] = 312; - num3++; - span7[num3] = 315; + span7[0] = 179; + span7[1] = 310; + span7[2] = 312; + span7[3] = 315; } reference3 = list4; - num2++; - ref List reference4 = ref span[num2]; + ref List reference4 = ref span[3]; List list5; if (eClassJob != EClassJob.Lancer) { - int num3 = 2; - list5 = new List(num3); - CollectionsMarshal.SetCount(list5, num3); + int num2 = 2; + list5 = new List(num2); + CollectionsMarshal.SetCount(list5, num2); Span span8 = CollectionsMarshal.AsSpan(list5); - int num4 = 0; - span8[num4] = 23; - num4++; - span8[num4] = 35; + span8[0] = 23; + span8[1] = 35; } else { - int num4 = 4; - list5 = new List(num4); - CollectionsMarshal.SetCount(list5, num4); + int num2 = 4; + list5 = new List(num2); + CollectionsMarshal.SetCount(list5, num2); Span span9 = CollectionsMarshal.AsSpan(list5); - int num3 = 0; - span9[num3] = 180; - num3++; - span9[num3] = 132; - num3++; - span9[num3] = 218; - num3++; - span9[num3] = 143; + span9[0] = 180; + span9[1] = 132; + span9[2] = 218; + span9[3] = 143; } reference4 = list5; - num2++; - ref List reference5 = ref span[num2]; + ref List reference5 = ref span[4]; List list6; if (eClassJob != EClassJob.Archer) { - int num3 = 2; - list6 = new List(num3); - CollectionsMarshal.SetCount(list6, num3); + int num2 = 2; + list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); Span span10 = CollectionsMarshal.AsSpan(list6); - int num4 = 0; - span10[num4] = 21; - num4++; - span10[num4] = 67; + span10[0] = 21; + span10[1] = 67; } else { - int num4 = 4; - list6 = new List(num4); - CollectionsMarshal.SetCount(list6, num4); + int num2 = 4; + list6 = new List(num2); + CollectionsMarshal.SetCount(list6, num2); Span span11 = CollectionsMarshal.AsSpan(list6); - int num3 = 0; - span11[num3] = 181; - num3++; - span11[num3] = 131; - num3++; - span11[num3] = 219; - num3++; - span11[num3] = 134; + span11[0] = 181; + span11[1] = 131; + span11[2] = 219; + span11[3] = 134; } reference5 = list6; - num2++; - ref List reference6 = ref span[num2]; + ref List reference6 = ref span[5]; List list7; if (eClassJob != EClassJob.Conjurer) { - int num3 = 2; - list7 = new List(num3); - CollectionsMarshal.SetCount(list7, num3); + int num2 = 2; + list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); Span span12 = CollectionsMarshal.AsSpan(list7); - int num4 = 0; - span12[num4] = 22; - num4++; - span12[num4] = 91; + span12[0] = 22; + span12[1] = 91; } else { - int num4 = 4; - list7 = new List(num4); - CollectionsMarshal.SetCount(list7, num4); + int num2 = 4; + list7 = new List(num2); + CollectionsMarshal.SetCount(list7, num2); Span span13 = CollectionsMarshal.AsSpan(list7); - int num3 = 0; - span13[num3] = 182; - num3++; - span13[num3] = 133; - num3++; - span13[num3] = 211; - num3++; - span13[num3] = 147; + span13[0] = 182; + span13[1] = 133; + span13[2] = 211; + span13[3] = 147; } reference6 = list7; - num2++; - ref List reference7 = ref span[num2]; + ref List reference7 = ref span[6]; List list8; if (eClassJob != EClassJob.Thaumaturge) { - int num3 = 2; - list8 = new List(num3); - CollectionsMarshal.SetCount(list8, num3); + int num2 = 2; + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); Span span14 = CollectionsMarshal.AsSpan(list8); - int num4 = 0; - span14[num4] = 345; - num4++; - span14[num4] = 348; + span14[0] = 345; + span14[1] = 348; } else { - int num4 = 4; - list8 = new List(num4); - CollectionsMarshal.SetCount(list8, num4); + int num2 = 4; + list8 = new List(num2); + CollectionsMarshal.SetCount(list8, num2); Span span15 = CollectionsMarshal.AsSpan(list8); - int num3 = 0; - span15[num3] = 183; - num3++; - span15[num3] = 344; - num3++; - span15[num3] = 346; - num3++; - span15[num3] = 349; + span15[0] = 183; + span15[1] = 344; + span15[2] = 346; + span15[3] = 349; } reference7 = list8; - num2++; - ref List reference8 = ref span[num2]; + ref List reference8 = ref span[7]; List list9; if (eClassJob != EClassJob.Arcanist) { - int num3 = 2; - list9 = new List(num3); - CollectionsMarshal.SetCount(list9, num3); + int num2 = 2; + list9 = new List(num2); + CollectionsMarshal.SetCount(list9, num2); Span span16 = CollectionsMarshal.AsSpan(list9); - int num4 = 0; - span16[num4] = 453; - num4++; - span16[num4] = 456; + span16[0] = 453; + span16[1] = 456; } else { - int num4 = 4; - list9 = new List(num4); - CollectionsMarshal.SetCount(list9, num4); + int num2 = 4; + list9 = new List(num2); + CollectionsMarshal.SetCount(list9, num2); Span span17 = CollectionsMarshal.AsSpan(list9); - int num3 = 0; - span17[num3] = 451; - num3++; - span17[num3] = 452; - num3++; - span17[num3] = 454; - num3++; - span17[num3] = 457; + span17[0] = 451; + span17[1] = 452; + span17[2] = 454; + span17[3] = 457; } reference8 = list9; return (from x in list.SelectMany((List x) => x) @@ -1237,378 +1056,262 @@ internal sealed class QuestData List list = new List(num); CollectionsMarshal.SetCount(list, num); Span span = CollectionsMarshal.AsSpan(list); - int num2 = 0; - span[num2] = 1744; - num2++; - span[num2] = 1759; - num2++; - span[num2] = 1760; - num2++; - span[num2] = 2111; + span[0] = 1744; + span[1] = 1759; + span[2] = 1760; + span[3] = 2111; dictionary.Add(397u, list); - num2 = 4; - List list2 = new List(num2); - CollectionsMarshal.SetCount(list2, num2); + num = 4; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); Span span2 = CollectionsMarshal.AsSpan(list2); - num = 0; - span2[num] = 1771; - num++; - span2[num] = 1790; - num++; - span2[num] = 1797; - num++; - span2[num] = 1802; + span2[0] = 1771; + span2[1] = 1790; + span2[2] = 1797; + span2[3] = 1802; dictionary.Add(398u, list2); num = 4; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); Span span3 = CollectionsMarshal.AsSpan(list3); - num2 = 0; - span3[num2] = 1936; - num2++; - span3[num2] = 1945; - num2++; - span3[num2] = 1963; - num2++; - span3[num2] = 1966; + span3[0] = 1936; + span3[1] = 1945; + span3[2] = 1963; + span3[3] = 1966; dictionary.Add(399u, list3); - num2 = 4; - List list4 = new List(num2); - CollectionsMarshal.SetCount(list4, num2); + num = 4; + List list4 = new List(num); + CollectionsMarshal.SetCount(list4, num); Span span4 = CollectionsMarshal.AsSpan(list4); - num = 0; - span4[num] = 1819; - num++; - span4[num] = 1823; - num++; - span4[num] = 1828; - num++; - span4[num] = 1835; + span4[0] = 1819; + span4[1] = 1823; + span4[2] = 1828; + span4[3] = 1835; dictionary.Add(400u, list4); num = 4; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); Span span5 = CollectionsMarshal.AsSpan(list5); - num2 = 0; - span5[num2] = 1748; - num2++; - span5[num2] = 1874; - num2++; - span5[num2] = 1909; - num2++; - span5[num2] = 1910; + span5[0] = 1748; + span5[1] = 1874; + span5[2] = 1909; + span5[3] = 1910; dictionary.Add(401u, list5); - num2 = 4; - List list6 = new List(num2); - CollectionsMarshal.SetCount(list6, num2); + num = 4; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); Span span6 = CollectionsMarshal.AsSpan(list6); - num = 0; - span6[num] = 2639; - num++; - span6[num] = 2661; - num++; - span6[num] = 2816; - num++; - span6[num] = 2821; + span6[0] = 2639; + span6[1] = 2661; + span6[2] = 2816; + span6[3] = 2821; dictionary.Add(612u, list6); num = 4; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); Span span7 = CollectionsMarshal.AsSpan(list7); - num2 = 0; - span7[num2] = 2632; - num2++; - span7[num2] = 2673; - num2++; - span7[num2] = 2687; - num2++; - span7[num2] = 2693; + span7[0] = 2632; + span7[1] = 2673; + span7[2] = 2687; + span7[3] = 2693; dictionary.Add(613u, list7); - num2 = 4; - List list8 = new List(num2); - CollectionsMarshal.SetCount(list8, num2); + num = 4; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); Span span8 = CollectionsMarshal.AsSpan(list8); - num = 0; - span8[num] = 2724; - num++; - span8[num] = 2728; - num++; - span8[num] = 2730; - num++; - span8[num] = 2733; + span8[0] = 2724; + span8[1] = 2728; + span8[2] = 2730; + span8[3] = 2733; dictionary.Add(614u, list8); num = 4; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); Span span9 = CollectionsMarshal.AsSpan(list9); - num2 = 0; - span9[num2] = 2655; - num2++; - span9[num2] = 2842; - num2++; - span9[num2] = 2851; - num2++; - span9[num2] = 2860; + span9[0] = 2655; + span9[1] = 2842; + span9[2] = 2851; + span9[3] = 2860; dictionary.Add(620u, list9); - num2 = 4; - List list10 = new List(num2); - CollectionsMarshal.SetCount(list10, num2); + num = 4; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); Span span10 = CollectionsMarshal.AsSpan(list10); - num = 0; - span10[num] = 2877; - num++; - span10[num] = 2880; - num++; - span10[num] = 2881; - num++; - span10[num] = 2883; + span10[0] = 2877; + span10[1] = 2880; + span10[2] = 2881; + span10[3] = 2883; dictionary.Add(621u, list10); num = 4; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); Span span11 = CollectionsMarshal.AsSpan(list11); - num2 = 0; - span11[num2] = 2760; - num2++; - span11[num2] = 2771; - num2++; - span11[num2] = 2782; - num2++; - span11[num2] = 2791; + span11[0] = 2760; + span11[1] = 2771; + span11[2] = 2782; + span11[3] = 2791; dictionary.Add(622u, list11); - num2 = 4; - List list12 = new List(num2); - CollectionsMarshal.SetCount(list12, num2); + num = 4; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); Span span12 = CollectionsMarshal.AsSpan(list12); - num = 0; - span12[num] = 3380; - num++; - span12[num] = 3384; - num++; - span12[num] = 3385; - num++; - span12[num] = 3386; + span12[0] = 3380; + span12[1] = 3384; + span12[2] = 3385; + span12[3] = 3386; dictionary.Add(813u, list12); num = 4; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); Span span13 = CollectionsMarshal.AsSpan(list13); - num2 = 0; - span13[num2] = 3360; - num2++; - span13[num2] = 3371; - num2++; - span13[num2] = 3537; - num2++; - span13[num2] = 3556; + span13[0] = 3360; + span13[1] = 3371; + span13[2] = 3537; + span13[3] = 3556; dictionary.Add(814u, list13); - num2 = 4; - List list14 = new List(num2); - CollectionsMarshal.SetCount(list14, num2); + num = 4; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); Span span14 = CollectionsMarshal.AsSpan(list14); - num = 0; - span14[num] = 3375; - num++; - span14[num] = 3503; - num++; - span14[num] = 3511; - num++; - span14[num] = 3525; + span14[0] = 3375; + span14[1] = 3503; + span14[2] = 3511; + span14[3] = 3525; dictionary.Add(815u, list14); num = 4; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); Span span15 = CollectionsMarshal.AsSpan(list15); - num2 = 0; - span15[num2] = 3395; - num2++; - span15[num2] = 3398; - num2++; - span15[num2] = 3404; - num2++; - span15[num2] = 3427; + span15[0] = 3395; + span15[1] = 3398; + span15[2] = 3404; + span15[3] = 3427; dictionary.Add(816u, list15); - num2 = 4; - List list16 = new List(num2); - CollectionsMarshal.SetCount(list16, num2); + num = 4; + List list16 = new List(num); + CollectionsMarshal.SetCount(list16, num); Span span16 = CollectionsMarshal.AsSpan(list16); - num = 0; - span16[num] = 3444; - num++; - span16[num] = 3467; - num++; - span16[num] = 3478; - num++; - span16[num] = 3656; + span16[0] = 3444; + span16[1] = 3467; + span16[2] = 3478; + span16[3] = 3656; dictionary.Add(817u, list16); num = 4; List list17 = new List(num); CollectionsMarshal.SetCount(list17, num); Span span17 = CollectionsMarshal.AsSpan(list17); - num2 = 0; - span17[num2] = 3588; - num2++; - span17[num2] = 3592; - num2++; - span17[num2] = 3593; - num2++; - span17[num2] = 3594; + span17[0] = 3588; + span17[1] = 3592; + span17[2] = 3593; + span17[3] = 3594; dictionary.Add(818u, list17); - num2 = 4; - List list18 = new List(num2); - CollectionsMarshal.SetCount(list18, num2); + num = 4; + List list18 = new List(num); + CollectionsMarshal.SetCount(list18, num); Span span18 = CollectionsMarshal.AsSpan(list18); - num = 0; - span18[num] = 4320; - num++; - span18[num] = 4329; - num++; - span18[num] = 4480; - num++; - span18[num] = 4484; + span18[0] = 4320; + span18[1] = 4329; + span18[2] = 4480; + span18[3] = 4484; dictionary.Add(956u, list18); num = 4; List list19 = new List(num); CollectionsMarshal.SetCount(list19, num); Span span19 = CollectionsMarshal.AsSpan(list19); - num2 = 0; - span19[num2] = 4203; - num2++; - span19[num2] = 4257; - num2++; - span19[num2] = 4259; - num2++; - span19[num2] = 4489; + span19[0] = 4203; + span19[1] = 4257; + span19[2] = 4259; + span19[3] = 4489; dictionary.Add(957u, list19); - num2 = 4; - List list20 = new List(num2); - CollectionsMarshal.SetCount(list20, num2); + num = 4; + List list20 = new List(num); + CollectionsMarshal.SetCount(list20, num); Span span20 = CollectionsMarshal.AsSpan(list20); - num = 0; - span20[num] = 4216; - num++; - span20[num] = 4232; - num++; - span20[num] = 4498; - num++; - span20[num] = 4502; + span20[0] = 4216; + span20[1] = 4232; + span20[2] = 4498; + span20[3] = 4502; dictionary.Add(958u, list20); num = 4; List list21 = new List(num); CollectionsMarshal.SetCount(list21, num); Span span21 = CollectionsMarshal.AsSpan(list21); - num2 = 0; - span21[num2] = 4240; - num2++; - span21[num2] = 4241; - num2++; - span21[num2] = 4253; - num2++; - span21[num2] = 4516; + span21[0] = 4240; + span21[1] = 4241; + span21[2] = 4253; + span21[3] = 4516; dictionary.Add(959u, list21); - num2 = 4; - List list22 = new List(num2); - CollectionsMarshal.SetCount(list22, num2); + num = 4; + List list22 = new List(num); + CollectionsMarshal.SetCount(list22, num); Span span22 = CollectionsMarshal.AsSpan(list22); - num = 0; - span22[num] = 4342; - num++; - span22[num] = 4346; - num++; - span22[num] = 4354; - num++; - span22[num] = 4355; + span22[0] = 4342; + span22[1] = 4346; + span22[2] = 4354; + span22[3] = 4355; dictionary.Add(960u, list22); num = 4; List list23 = new List(num); CollectionsMarshal.SetCount(list23, num); Span span23 = CollectionsMarshal.AsSpan(list23); - num2 = 0; - span23[num2] = 4288; - num2++; - span23[num2] = 4313; - num2++; - span23[num2] = 4507; - num2++; - span23[num2] = 4511; + span23[0] = 4288; + span23[1] = 4313; + span23[2] = 4507; + span23[3] = 4511; dictionary.Add(961u, list23); - num2 = 4; - List list24 = new List(num2); - CollectionsMarshal.SetCount(list24, num2); + num = 4; + List list24 = new List(num); + CollectionsMarshal.SetCount(list24, num); Span span24 = CollectionsMarshal.AsSpan(list24); - num = 0; - span24[num] = 5039; - num++; - span24[num] = 5047; - num++; - span24[num] = 5051; - num++; - span24[num] = 5055; + span24[0] = 5039; + span24[1] = 5047; + span24[2] = 5051; + span24[3] = 5055; dictionary.Add(1187u, list24); num = 4; List list25 = new List(num); CollectionsMarshal.SetCount(list25, num); Span span25 = CollectionsMarshal.AsSpan(list25); - num2 = 0; - span25[num2] = 5064; - num2++; - span25[num2] = 5074; - num2++; - span25[num2] = 5081; - num2++; - span25[num2] = 5085; + span25[0] = 5064; + span25[1] = 5074; + span25[2] = 5081; + span25[3] = 5085; dictionary.Add(1188u, list25); - num2 = 4; - List list26 = new List(num2); - CollectionsMarshal.SetCount(list26, num2); + num = 4; + List list26 = new List(num); + CollectionsMarshal.SetCount(list26, num); Span span26 = CollectionsMarshal.AsSpan(list26); - num = 0; - span26[num] = 5094; - num++; - span26[num] = 5103; - num++; - span26[num] = 5110; - num++; - span26[num] = 5114; + span26[0] = 5094; + span26[1] = 5103; + span26[2] = 5110; + span26[3] = 5114; dictionary.Add(1189u, list26); num = 4; List list27 = new List(num); CollectionsMarshal.SetCount(list27, num); Span span27 = CollectionsMarshal.AsSpan(list27); - num2 = 0; - span27[num2] = 5130; - num2++; - span27[num2] = 5138; - num2++; - span27[num2] = 5140; - num2++; - span27[num2] = 5144; + span27[0] = 5130; + span27[1] = 5138; + span27[2] = 5140; + span27[3] = 5144; dictionary.Add(1190u, list27); - num2 = 4; - List list28 = new List(num2); - CollectionsMarshal.SetCount(list28, num2); + num = 4; + List list28 = new List(num); + CollectionsMarshal.SetCount(list28, num); Span span28 = CollectionsMarshal.AsSpan(list28); - num = 0; - span28[num] = 5153; - num++; - span28[num] = 5156; - num++; - span28[num] = 5159; - num++; - span28[num] = 5160; + span28[0] = 5153; + span28[1] = 5156; + span28[2] = 5159; + span28[3] = 5160; dictionary.Add(1191u, list28); num = 4; List list29 = new List(num); CollectionsMarshal.SetCount(list29, num); Span span29 = CollectionsMarshal.AsSpan(list29); - num2 = 0; - span29[num2] = 5174; - num2++; - span29[num2] = 5176; - num2++; - span29[num2] = 5178; - num2++; - span29[num2] = 5179; + span29[0] = 5174; + span29[1] = 5176; + span29[2] = 5178; + span29[3] = 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/QuestionableIpc.cs b/Questionable/Questionable.External/QuestionableIpc.cs index 3ff98d4..b598cb7 100644 --- a/Questionable/Questionable.External/QuestionableIpc.cs +++ b/Questionable/Questionable.External/QuestionableIpc.cs @@ -846,20 +846,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - int index = 0; - span15[index] = new AethernetId(1); + CollectionsMarshal.AsSpan(list15)[0] = new AethernetId(1); source = list15; break; } case "aethernet_gridania": { - 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); + int num = 1; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + CollectionsMarshal.AsSpan(list14)[0] = new AethernetId(2); source = list14; break; } @@ -868,20 +864,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - int index = 0; - span13[index] = new AethernetId(3); + CollectionsMarshal.AsSpan(list13)[0] = new AethernetId(3); source = list13; break; } case "aethernet_goldsaucer": { - 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); + int num = 1; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + CollectionsMarshal.AsSpan(list12)[0] = new AethernetId(4); source = list12; break; } @@ -890,20 +882,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - int index = 0; - span11[index] = new AethernetId(5); + CollectionsMarshal.AsSpan(list11)[0] = new AethernetId(5); source = list11; break; } case "aethernet_idyllshire": { - 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); + int num = 1; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + CollectionsMarshal.AsSpan(list10)[0] = new AethernetId(6); source = list10; break; } @@ -912,20 +900,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - int index = 0; - span9[index] = new AethernetId(7); + CollectionsMarshal.AsSpan(list9)[0] = new AethernetId(7); source = list9; break; } case "aethernet_kugane": { - 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); + int num = 1; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + CollectionsMarshal.AsSpan(list8)[0] = new AethernetId(8); source = list8; break; } @@ -934,20 +918,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - int index = 0; - span7[index] = new AethernetId(9); + CollectionsMarshal.AsSpan(list7)[0] = new AethernetId(9); source = list7; break; } case "aethernet_the_crystarium": { - 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); + int num = 1; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + CollectionsMarshal.AsSpan(list6)[0] = new AethernetId(10); source = list6; break; } @@ -956,20 +936,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index = 0; - span5[index] = new AethernetId(11); + CollectionsMarshal.AsSpan(list5)[0] = new AethernetId(11); source = list5; break; } case "aethernet_old_sharlayan": { - 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); + int num = 1; + List list4 = new List(num); + CollectionsMarshal.SetCount(list4, num); + CollectionsMarshal.AsSpan(list4)[0] = new AethernetId(12); source = list4; break; } @@ -978,20 +954,16 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index = 0; - span3[index] = new AethernetId(13); + CollectionsMarshal.AsSpan(list3)[0] = new AethernetId(13); source = list3; break; } case "aethernet_tuliyollal": { - 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); + int num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new AethernetId(14); source = list2; break; } @@ -1000,9 +972,7 @@ internal sealed class QuestionableIpc : IDisposable int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = new AethernetId(15); + CollectionsMarshal.AsSpan(list)[0] = new AethernetId(15); source = list; break; } diff --git a/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs b/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs index 56b62be..20b8fea 100644 --- a/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs +++ b/Questionable/Questionable.Functions/AlliedSocietyQuestFunctions.cs @@ -77,9 +77,7 @@ internal sealed class AlliedSocietyQuestFunctions int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = npcData; + CollectionsMarshal.AsSpan(list)[0] = npcData; questsByAlliedSociety[item] = list; } } diff --git a/Questionable/Questionable.Model/QuestEx.cs b/Questionable/Questionable.Model/QuestEx.cs index e57b319..0f247bc 100644 --- a/Questionable/Questionable.Model/QuestEx.cs +++ b/Questionable/Questionable.Model/QuestEx.cs @@ -1,5 +1,6 @@ using System; using System.CodeDom.Compiler; +using System.Runtime.CompilerServices; using Lumina.Excel; using Lumina.Excel.Sheets; using Lumina.Text.ReadOnly; @@ -184,10 +185,10 @@ public readonly struct QuestEx : IExcelRow { ExcelModule module = _003Cpage_003EP.Module; uint rowId = _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2712); - 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); + 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); } } @@ -199,10 +200,10 @@ public readonly struct QuestEx : IExcelRow { ExcelModule module = _003Cpage_003EP.Module; uint rowId = _003Cpage_003EP.ReadUInt32(_003Coffset_003EP + 2720); - 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); + 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); } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs index 1994dff..cb63d08 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/GeneralConfigComponent.cs @@ -480,16 +480,12 @@ internal sealed class GeneralConfigComponent : ConfigComponent int num = 1; List<(uint, string)> list = new List<(uint, string)>(num); CollectionsMarshal.SetCount(list, num); - Span<(uint, string)> span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = (0u, "Mount Roulette"); + CollectionsMarshal.AsSpan(list)[0] = (0u, "Mount Roulette"); DefaultMounts = list; - 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)"); + 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)"); DefaultClassJobs = list2; } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs index d8e30b9..ff24160 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/SinglePlayerDutyConfigComponent.cs @@ -898,16 +898,11 @@ 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); - 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"); + 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"); RoleQuestCategories = list; } } diff --git a/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs b/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs index 7d74247..e0b14c9 100644 --- a/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/ActiveQuestComponent.cs @@ -59,7 +59,7 @@ internal sealed class ActiveQuestComponent public event EventHandler? Reload; [GeneratedRegex("\\s\\s+", RegexOptions.IgnoreCase, "en-US")] - [GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.7603")] + [GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] private static Regex MultipleWhitespaceRegex() { return _003CRegexGenerator_g_003EFBB8301322196CF81C64F1652C2FA6E1D6BF3907141F781E9D97ABED51BF056C4__MultipleWhitespaceRegex_0.Instance; diff --git a/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs b/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs index 90ec00b..f52f5fe 100644 --- a/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs +++ b/Questionable/Questionable.Windows.QuestComponents/PresetBuilderComponent.cs @@ -615,19 +615,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list15 = new List(num); CollectionsMarshal.SetCount(list15, num); - Span span15 = CollectionsMarshal.AsSpan(list15); - int index = 0; - span15[index] = new AethernetId(1); + CollectionsMarshal.AsSpan(list15)[0] = new AethernetId(1); return list15; } case "Gridania": { - 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); + int num = 1; + List list14 = new List(num); + CollectionsMarshal.SetCount(list14, num); + CollectionsMarshal.AsSpan(list14)[0] = new AethernetId(2); return list14; } case "Uldah": @@ -635,19 +631,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list13 = new List(num); CollectionsMarshal.SetCount(list13, num); - Span span13 = CollectionsMarshal.AsSpan(list13); - int index = 0; - span13[index] = new AethernetId(3); + CollectionsMarshal.AsSpan(list13)[0] = new AethernetId(3); return list13; } case "GoldSaucer": { - 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); + int num = 1; + List list12 = new List(num); + CollectionsMarshal.SetCount(list12, num); + CollectionsMarshal.AsSpan(list12)[0] = new AethernetId(4); return list12; } case "Ishgard": @@ -655,19 +647,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list11 = new List(num); CollectionsMarshal.SetCount(list11, num); - Span span11 = CollectionsMarshal.AsSpan(list11); - int index = 0; - span11[index] = new AethernetId(5); + CollectionsMarshal.AsSpan(list11)[0] = new AethernetId(5); return list11; } case "Idyllshire": { - 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); + int num = 1; + List list10 = new List(num); + CollectionsMarshal.SetCount(list10, num); + CollectionsMarshal.AsSpan(list10)[0] = new AethernetId(6); return list10; } case "Rhalgr's Reach": @@ -675,19 +663,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list9 = new List(num); CollectionsMarshal.SetCount(list9, num); - Span span9 = CollectionsMarshal.AsSpan(list9); - int index = 0; - span9[index] = new AethernetId(7); + CollectionsMarshal.AsSpan(list9)[0] = new AethernetId(7); return list9; } case "Kugane": { - 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); + int num = 1; + List list8 = new List(num); + CollectionsMarshal.SetCount(list8, num); + CollectionsMarshal.AsSpan(list8)[0] = new AethernetId(8); return list8; } case "Doman Enclave": @@ -695,19 +679,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list7 = new List(num); CollectionsMarshal.SetCount(list7, num); - Span span7 = CollectionsMarshal.AsSpan(list7); - int index = 0; - span7[index] = new AethernetId(9); + CollectionsMarshal.AsSpan(list7)[0] = new AethernetId(9); return list7; } case "The Crystarium": { - 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); + int num = 1; + List list6 = new List(num); + CollectionsMarshal.SetCount(list6, num); + CollectionsMarshal.AsSpan(list6)[0] = new AethernetId(10); return list6; } case "Eulmore": @@ -715,19 +695,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list5 = new List(num); CollectionsMarshal.SetCount(list5, num); - Span span5 = CollectionsMarshal.AsSpan(list5); - int index = 0; - span5[index] = new AethernetId(11); + CollectionsMarshal.AsSpan(list5)[0] = new AethernetId(11); return list5; } case "Old Sharlayan": { - 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); + int num = 1; + List list4 = new List(num); + CollectionsMarshal.SetCount(list4, num); + CollectionsMarshal.AsSpan(list4)[0] = new AethernetId(12); return list4; } case "Radz-at-Han": @@ -735,19 +711,15 @@ internal sealed class PresetBuilderComponent int num = 1; List list3 = new List(num); CollectionsMarshal.SetCount(list3, num); - Span span3 = CollectionsMarshal.AsSpan(list3); - int index = 0; - span3[index] = new AethernetId(13); + CollectionsMarshal.AsSpan(list3)[0] = new AethernetId(13); return list3; } case "Tuliyollal": { - 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); + int num = 1; + List list2 = new List(num); + CollectionsMarshal.SetCount(list2, num); + CollectionsMarshal.AsSpan(list2)[0] = new AethernetId(14); return list2; } case "Solution Nine": @@ -755,9 +727,7 @@ internal sealed class PresetBuilderComponent int num = 1; List list = new List(num); CollectionsMarshal.SetCount(list, num); - Span span = CollectionsMarshal.AsSpan(list); - int index = 0; - span[index] = new AethernetId(15); + CollectionsMarshal.AsSpan(list)[0] = new AethernetId(15); return list; } default: diff --git a/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs b/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs new file mode 100644 index 0000000..d2c6789 --- /dev/null +++ b/Questionable/Questionable.Windows/SeasonalDutySelectionWindow.cs @@ -0,0 +1,424 @@ +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 6c9ad82..3b859d7 100644 --- a/Questionable/Questionable.csproj +++ b/Questionable/Questionable.csproj @@ -74,6 +74,9 @@ ..\..\GatheringPaths.dll + + ..\..\SeasonalDutyPaths.dll + ..\..\JsonPointer.Net.dll diff --git a/Questionable/Questionable/DalamudInitializer.cs b/Questionable/Questionable/DalamudInitializer.cs index f4850b4..154f2a9 100644 --- a/Questionable/Questionable/DalamudInitializer.cs +++ b/Questionable/Questionable/DalamudInitializer.cs @@ -35,17 +35,20 @@ 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, 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) + 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) { _pluginInterface = pluginInterface; _framework = framework; _questController = questController; _movementController = movementController; _fateController = fateController; + _seasonalDutyController = seasonalDutyController; _windowSystem = windowSystem; _oneTimeSetupWindow = oneTimeSetupWindow; _questWindow = questWindow; @@ -64,6 +67,7 @@ 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; @@ -79,6 +83,7 @@ internal sealed class DalamudInitializer : IDisposable _partyWatchdog.Update(); _questController.Update(); _fateController.Update(); + _seasonalDutyController.Update(); try { _movementController.Update(); @@ -87,6 +92,7 @@ internal sealed class DalamudInitializer : IDisposable { _questController.Stop("Pathfinding failed"); _fateController.Stop("Pathfinding failed"); + _seasonalDutyController.Stop("Pathfinding failed"); } } @@ -98,6 +104,8 @@ 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 e17788d..fa286be 100644 --- a/Questionable/Questionable/QuestionablePlugin.cs +++ b/Questionable/Questionable/QuestionablePlugin.cs @@ -148,6 +148,7 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskExecutor(); + serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); @@ -165,6 +166,7 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddTaskFactory(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); + serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskFactoryAndExecutor(); serviceCollection.AddTaskExecutor(); serviceCollection.AddTaskExecutor(); @@ -221,6 +223,8 @@ public sealed class QuestionablePlugin : IDalamudPlugin, IDisposable serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); + serviceCollection.AddSingleton(); + serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); serviceCollection.AddSingleton(); @@ -273,6 +277,7 @@ 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 0102111..38e6923 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.7603")] +[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] [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 db2066e..a6aa892 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.7603")] +[GeneratedCode("System.Text.RegularExpressions.Generator", "10.0.14.15411")] 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 new file mode 100644 index 0000000..ae5deeb --- /dev/null +++ b/SeasonalDutyPaths/Questionable.SeasonalDutyPaths.SeasonalDutyDefinitionSchema @@ -0,0 +1,104 @@ +{ + "$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 new file mode 100644 index 0000000..8b4fd19 --- /dev/null +++ b/SeasonalDutyPaths/Questionable.SeasonalDutyPaths/AssemblySeasonalDutyDefinitionLoader.cs @@ -0,0 +1,97 @@ +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 new file mode 100644 index 0000000..b873ef9 --- /dev/null +++ b/SeasonalDutyPaths/SeasonalDutyPaths.csproj @@ -0,0 +1,24 @@ + + + + SeasonalDutyPaths + False + netcoreapp1.0 + + + 12.0 + True + + + + + + + + + + + ..\..\Questionable.Model.dll + + + \ No newline at end of file